Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ jobs:
with:
node-version-file: 'package.json'
cache: 'pnpm'
# TODO: Remove once @posthog/warlock is published to npm
Copy link
Copy Markdown
Collaborator Author

@sarahxsanders sarahxsanders May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repeating this over and over STINKS but will be removed once we publish <3

- name: Generate token for private dependencies
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_APP_ID }}
private-key: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_PRIVATE_KEY }}
repositories: warlock
- name: Configure git auth for private deps
env:
APP_TOKEN: ${{ steps.app-token.outputs.token }}
run: git config --global url."https://x-access-token:${APP_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Clone and build warlock
run: git clone https://github.com/PostHog/warlock.git ../warlock && cd ../warlock && pnpm install && pnpm build
- name: Install dependencies with pnpm
run: pnpm install --frozen-lockfile
- name: Build
Expand Down Expand Up @@ -53,6 +67,20 @@ jobs:
with:
node-version-file: 'package.json'
cache: 'pnpm'
# TODO: Remove once @posthog/warlock is published to npm
- name: Generate token for private dependencies
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_APP_ID }}
private-key: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_PRIVATE_KEY }}
repositories: warlock
- name: Configure git auth for private deps
env:
APP_TOKEN: ${{ steps.app-token.outputs.token }}
run: git config --global url."https://x-access-token:${APP_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Clone and build warlock
run: git clone https://github.com/PostHog/warlock.git ../warlock && cd ../warlock && pnpm install && pnpm build
- name: Install dependencies with pnpm
run: pnpm install --frozen-lockfile
- name: Run Linter
Expand All @@ -79,6 +107,20 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
# TODO: Remove once @posthog/warlock is published to npm
- name: Generate token for private dependencies
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_APP_ID }}
private-key: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_PRIVATE_KEY }}
repositories: warlock
- name: Configure git auth for private deps
env:
APP_TOKEN: ${{ steps.app-token.outputs.token }}
run: git config --global url."https://x-access-token:${APP_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Clone and build warlock
run: git clone https://github.com/PostHog/warlock.git ../warlock && cd ../warlock && pnpm install && pnpm build
- name: Install dependencies with pnpm
run: pnpm install --frozen-lockfile
- name: Run Unit Tests
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@ jobs:
- name: Install pnpm
run: npm install -g pnpm

# TODO: Remove once @posthog/warlock is published to npm
- name: Generate token for private dependencies
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_APP_ID }}
private-key: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_PRIVATE_KEY }}
repositories: warlock
- name: Configure git auth for private deps
env:
APP_TOKEN: ${{ steps.app-token.outputs.token }}
run: git config --global url."https://x-access-token:${APP_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Clone and build warlock
run: git clone https://github.com/PostHog/warlock.git ../warlock && cd ../warlock && pnpm install && pnpm build
- name: Install package.json dependencies with pnpm
run: pnpm install --frozen-lockfile

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ jobs:
node-version-file: 'package.json'
cache: 'pnpm'

# TODO: Remove once @posthog/warlock is published to npm
- name: Generate token for private dependencies
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_APP_ID }}
private-key: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_PRIVATE_KEY }}
repositories: warlock
- name: Configure git auth for private deps
env:
APP_TOKEN: ${{ steps.app-token.outputs.token }}
run: git config --global url."https://x-access-token:${APP_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Clone and build warlock
run: git clone https://github.com/PostHog/warlock.git ../warlock && cd ../warlock && pnpm install && pnpm build
- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ plugins
e2e-tests/fixtures/.tracking/*

# Generated at build time by scripts/generate-version.js
src/lib/version.ts
src/lib/version.ts
local.properties
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@anthropic-ai/claude-agent-sdk": "0.2.73",
"@inkjs/ui": "^2.0.0",
"@langchain/core": "^0.3.40",
"@posthog/warlock": "link:../warlock",
"axios": "1.7.4",
"fast-glob": "^3.3.3",
"glob": "9.3.5",
Expand Down Expand Up @@ -126,7 +127,8 @@
],
"transform": {
"^.+\\.tsx?$": "ts-jest",
"node_modules/.+\\.js$": "babel-jest"
"node_modules/.+\\.js$": "babel-jest",
".+/warlock/.+\\.js$": "babel-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
Expand All @@ -148,7 +150,7 @@
],
"testEnvironment": "node",
"transformIgnorePatterns": [
"node_modules/(?!(.pnpm/nanostores|nanostores))"
"node_modules/(?!(.pnpm/nanostores|nanostores|@posthog/warlock))"
],
"moduleNameMapper": {
"^@anthropic-ai/claude-agent-sdk$": "<rootDir>/__mocks__/@anthropic-ai/claude-agent-sdk.ts",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
onlyBuiltDependencies:
- esbuild
- msw
- "@posthog/warlock"
minimumReleaseAge: 1440
blockExoticSubdeps: true
trustPolicy: no-downgrade
Expand Down
1 change: 0 additions & 1 deletion src/lib/__tests__/agent-interface.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe('runAgent', () => {
ci: false,
menu: false,
benchmark: false,
yaraReport: false,
};

const defaultAgentConfig = {
Expand Down
Loading
Loading