diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ba607955..ea1c615a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,18 +48,6 @@ jobs: - name: Install dependencies run: pnpm install - - name: Validate agents patch applied - run: | - echo "🔍 Checking if agents patch was applied..." - - # Check patch hash exists (proof of patch application) - if find node_modules -path "*agents*" -name "agents" -type d | grep -q "patch_hash"; then - echo "✅ Patch successfully applied!" - else - echo "❌ Patch not applied" - exit 1 - fi - - name: Build run: pnpm build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62d1d4e4..6c679716 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,18 +37,6 @@ jobs: - name: Install dependencies run: pnpm install --no-frozen-lockfile - - - name: Validate agents patch applied - run: | - echo "🔍 Checking if agents patch was applied..." - - # Check patch hash exists (proof of patch application) - if find node_modules -path "*agents*" -name "agents" -type d | grep -q "patch_hash"; then - echo "✅ Patch successfully applied!" - else - echo "❌ Patch not applied" - exit 1 - fi - name: Run build run: pnpm build diff --git a/package.json b/package.json index e1c47aed..527da33d 100644 --- a/package.json +++ b/package.json @@ -68,9 +68,6 @@ "sharp", "simple-git-hooks", "workerd" - ], - "patchedDependencies": { - "agents": "patches/agents.patch" - } + ] } } diff --git a/patches/agents.patch b/patches/agents.patch deleted file mode 100644 index 25ad85f5..00000000 --- a/patches/agents.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/src/index.ts b/src/index.ts -index da4881fa3ec784f13f62cd71b05e2e65fdfc51dd..41c08d45cd788fdb373da5f1ece3ce2d4add5911 100644 ---- a/src/index.ts -+++ b/src/index.ts -@@ -313,7 +313,7 @@ export class Agent extends Server { - */ - static options = { - /** Whether the Agent should hibernate when inactive */ -- hibernate: true, // default to hibernate -+ hibernate: false, // default to hibernate - }; - - /** -@@ -831,9 +831,9 @@ export class Agent extends Server { - private async _scheduleNextAlarm() { - // Find the next schedule that needs to be executed - const result = this.sql` -- SELECT time FROM cf_agents_schedules -+ SELECT time FROM cf_agents_schedules - WHERE time > ${Math.floor(Date.now() / 1000)} -- ORDER BY time ASC -+ ORDER BY time ASC - LIMIT 1 - `; - if (!result) return; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 726bb593..881303d5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -169,11 +169,6 @@ catalogs: specifier: ^3.25.67 version: 3.25.72 -patchedDependencies: - agents: - hash: ecdd563676ee1b0e7c7689be121beebb43bdfae06888ef108149fad8fe090e04 - path: patches/agents.patch - importers: .: @@ -246,7 +241,7 @@ importers: version: 9.34.0(react@19.1.0) agents: specifier: 'catalog:' - version: 0.0.101(patch_hash=ecdd563676ee1b0e7c7689be121beebb43bdfae06888ef108149fad8fe090e04)(@cloudflare/workers-types@4.20250704.0)(react@19.1.0) + version: 0.0.101(@cloudflare/workers-types@4.20250704.0)(react@19.1.0) ai: specifier: 'catalog:' version: 4.3.16(react@19.1.0)(zod@3.25.72) @@ -4459,46 +4454,6 @@ packages: yaml: optional: true - vite@7.0.2: - resolution: {integrity: sha512-hxdyZDY1CM6SNpKI4w4lcUc3Mtkd9ej4ECWVHSMrOdSinVc2zYOAppHeGc/hzmRo3pxM5blMzkuWHOJA/3NiFw==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - '@types/node': ^20.19.0 || >=22.12.0 - jiti: '>=1.21.0' - less: ^4.0.0 - lightningcss: ^1.21.0 - sass: ^1.70.0 - sass-embedded: ^1.70.0 - stylus: '>=0.54.8' - sugarss: ^5.0.0 - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - '@types/node': - optional: true - jiti: - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - tsx: - optional: true - yaml: - optional: true - vitest-evals@0.3.0: resolution: {integrity: sha512-pZm7+/n4htjgsSXW6aEsaD8tz+O8LxFbFYsjryzluVqkeN3S8RGug2vh913e8GrAJXIxDBkXUO5xcHmn0gzphg==} peerDependencies: @@ -6304,23 +6259,23 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(msw@2.10.2(@types/node@22.16.0)(typescript@5.8.3))(vite@7.0.2(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/mocker@3.2.4(msw@2.10.2(@types/node@22.16.0)(typescript@5.8.3))(vite@6.3.5(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: msw: 2.10.2(@types/node@22.16.0)(typescript@5.8.3) - vite: 7.0.2(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) - '@vitest/mocker@3.2.4(msw@2.10.2(@types/node@24.0.10)(typescript@5.8.3))(vite@7.0.2(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/mocker@3.2.4(msw@2.10.2(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: msw: 2.10.2(@types/node@24.0.10)(typescript@5.8.3) - vite: 7.0.2(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) '@vitest/pretty-format@3.2.4': dependencies: @@ -6369,7 +6324,7 @@ snapshots: transitivePeerDependencies: - supports-color - agents@0.0.101(patch_hash=ecdd563676ee1b0e7c7689be121beebb43bdfae06888ef108149fad8fe090e04)(@cloudflare/workers-types@4.20250704.0)(react@19.1.0): + agents@0.0.101(@cloudflare/workers-types@4.20250704.0)(react@19.1.0): dependencies: '@modelcontextprotocol/sdk': 1.15.0 ai: 4.3.16(react@19.1.0)(zod@3.25.72) @@ -8910,7 +8865,7 @@ snapshots: debug: 4.4.1 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.0.2(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - '@types/node' - jiti @@ -8931,7 +8886,7 @@ snapshots: debug: 4.4.1 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.0.2(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - '@types/node' - jiti @@ -8946,23 +8901,7 @@ snapshots: - tsx - yaml - vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0): - dependencies: - esbuild: 0.25.5 - fdir: 6.4.6(picomatch@4.0.2) - picomatch: 4.0.2 - postcss: 8.5.6 - rollup: 4.44.1 - tinyglobby: 0.2.14 - optionalDependencies: - '@types/node': 24.0.10 - fsevents: 2.3.3 - jiti: 2.4.2 - lightningcss: 1.30.1 - tsx: 4.20.3 - yaml: 2.8.0 - - vite@7.0.2(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0): + vite@6.3.5(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: esbuild: 0.25.5 fdir: 6.4.6(picomatch@4.0.2) @@ -8978,7 +8917,7 @@ snapshots: tsx: 4.20.3 yaml: 2.8.0 - vite@7.0.2(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0): + vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: esbuild: 0.25.5 fdir: 6.4.6(picomatch@4.0.2) @@ -9003,7 +8942,7 @@ snapshots: dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.10.2(@types/node@22.16.0)(typescript@5.8.3))(vite@7.0.2(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0)) + '@vitest/mocker': 3.2.4(msw@2.10.2(@types/node@22.16.0)(typescript@5.8.3))(vite@6.3.5(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -9021,7 +8960,7 @@ snapshots: tinyglobby: 0.2.14 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.0.2(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) vite-node: 3.2.4(@types/node@22.16.0)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) why-is-node-running: 2.3.0 optionalDependencies: @@ -9045,7 +8984,7 @@ snapshots: dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.10.2(@types/node@24.0.10)(typescript@5.8.3))(vite@7.0.2(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0)) + '@vitest/mocker': 3.2.4(msw@2.10.2(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -9063,7 +9002,7 @@ snapshots: tinyglobby: 0.2.14 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.0.2(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) vite-node: 3.2.4(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(tsx@4.20.3)(yaml@2.8.0) why-is-node-running: 2.3.0 optionalDependencies: