mirror of
https://github.com/tiennm99/claude-code-routine-trigger.git
synced 2026-10-16 18:15:31 +00:00
Compare commits
2
Commits
5c5463057e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcb86bd09b | ||
|
|
5bb38fb220 |
No files matched your search
+4
-5
@@ -10,13 +10,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: pnpm/action-setup@v6
|
|
||||||
- uses: actions/setup-node@v7
|
- uses: actions/setup-node@v7
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
cache: 'pnpm'
|
cache: 'npm'
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: npm ci
|
||||||
- run: pnpm test
|
- run: npm test
|
||||||
- run: pnpm exec wrangler deploy --dry-run
|
- run: npx wrangler deploy --dry-run
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: dummy
|
CLOUDFLARE_API_TOKEN: dummy
|
||||||
@@ -63,7 +63,7 @@ Each fire shows up in *History* with status code and response body — open `cla
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/tiennm99/claude-code-routine-trigger
|
git clone https://github.com/tiennm99/claude-code-routine-trigger
|
||||||
cd claude-code-routine-trigger/cloudflare-worker
|
cd claude-code-routine-trigger/cloudflare-worker
|
||||||
pnpm install
|
npm install
|
||||||
|
|
||||||
# Upload secrets (from Anthropic routine editor → API trigger)
|
# Upload secrets (from Anthropic routine editor → API trigger)
|
||||||
echo -n 'https://api.anthropic.com/v1/claude_code/routines/trig_.../fire' \
|
echo -n 'https://api.anthropic.com/v1/claude_code/routines/trig_.../fire' \
|
||||||
@@ -153,7 +153,7 @@ curl "http://localhost:8787/__scheduled?cron=*+*+*+*+*"
|
|||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm test
|
npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
Vitest runs in the Workers runtime via `@cloudflare/vitest-pool-workers`. Tests mock `fetch`, so they consume no Anthropic quota.
|
Vitest runs in the Workers runtime via `@cloudflare/vitest-pool-workers`. Tests mock `fetch`, so they consume no Anthropic quota.
|
||||||
|
|||||||
Generated
+2974
File diff suppressed because it is too large.
Load diff
@@ -5,20 +5,24 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "pnpm@11.1.1",
|
|
||||||
"main": "worker.js",
|
"main": "worker.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "wrangler dev",
|
"dev": "wrangler dev",
|
||||||
"deploy": "wrangler deploy",
|
"deploy": "wrangler deploy",
|
||||||
"test": "vitest run"
|
"test": "vitest run"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
|
||||||
"onlyBuiltDependencies": ["esbuild", "sharp", "workerd"]
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/vitest-pool-workers": "^0.18.8",
|
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
||||||
"vite": "^8.0.14",
|
"vite": "^8.3.2",
|
||||||
"vitest": "^4.1.10",
|
"vitest": "^4.1.11",
|
||||||
"wrangler": "^4.114.0"
|
"wrangler": "^4.147.0"
|
||||||
|
},
|
||||||
|
"allowScripts": {
|
||||||
|
"esbuild": true,
|
||||||
|
"workerd": true
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"sharp": "^0.35.5",
|
||||||
|
"undici": "^7.30.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
-1643
File diff suppressed because it is too large.
Load diff
@@ -1,8 +0,0 @@
|
|||||||
allowBuilds:
|
|
||||||
esbuild: true
|
|
||||||
sharp: true
|
|
||||||
workerd: true
|
|
||||||
onlyBuiltDependencies:
|
|
||||||
- esbuild
|
|
||||||
- sharp
|
|
||||||
- workerd
|
|
||||||
Reference in new issue
Block a user