@agntcms/next 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/handlers.cjs CHANGED
@@ -708,7 +708,7 @@ var createAgentBridge = (options) => {
708
708
  channelPort = 4819,
709
709
  channelHost = "127.0.0.1",
710
710
  callbackUrl = "http://localhost:3000/api/agntcms/mcp",
711
- taskAckTimeoutMs = 15e3
711
+ taskAckTimeoutMs = 12e4
712
712
  } = options;
713
713
  const fetchFn = options.fetch ?? globalThis.fetch;
714
714
  const setTimeoutFn = options.setTimeoutFn ?? ((cb, ms) => setTimeout(cb, ms));
@@ -93,7 +93,16 @@ interface CreateAgentBridgeOptions {
93
93
  * How long to wait, after the HTTP POST to the channel server has
94
94
  * returned 200, for the agent to acknowledge via `report_task_progress`
95
95
  * or `report_task_done` before failing the task with
96
- * `TASK_ACK_TIMEOUT_MESSAGE`. Default 15000 ms.
96
+ * `TASK_ACK_TIMEOUT_MESSAGE`. Default 120000 ms (2 minutes).
97
+ *
98
+ * This watchdog exists to detect the "agent is not listening at all"
99
+ * case — typically, Claude Code was launched without
100
+ * `--dangerously-load-development-channels`, so the channel plugin's
101
+ * `mcp.notification(...)` resolves successfully but no agent ever
102
+ * receives the message. It is NOT a deadline for slow-but-working
103
+ * tasks: real agent work routinely takes 30–90+ seconds (skill load,
104
+ * file reads, edits) without emitting any progress event, since
105
+ * `report_task_progress` is optional. Hence the generous default.
97
106
  *
98
107
  * Set to 0 to disable the watchdog (useful for tests that drive the
99
108
  * store manually).
@@ -93,7 +93,16 @@ interface CreateAgentBridgeOptions {
93
93
  * How long to wait, after the HTTP POST to the channel server has
94
94
  * returned 200, for the agent to acknowledge via `report_task_progress`
95
95
  * or `report_task_done` before failing the task with
96
- * `TASK_ACK_TIMEOUT_MESSAGE`. Default 15000 ms.
96
+ * `TASK_ACK_TIMEOUT_MESSAGE`. Default 120000 ms (2 minutes).
97
+ *
98
+ * This watchdog exists to detect the "agent is not listening at all"
99
+ * case — typically, Claude Code was launched without
100
+ * `--dangerously-load-development-channels`, so the channel plugin's
101
+ * `mcp.notification(...)` resolves successfully but no agent ever
102
+ * receives the message. It is NOT a deadline for slow-but-working
103
+ * tasks: real agent work routinely takes 30–90+ seconds (skill load,
104
+ * file reads, edits) without emitting any progress event, since
105
+ * `report_task_progress` is optional. Hence the generous default.
97
106
  *
98
107
  * Set to 0 to disable the watchdog (useful for tests that drive the
99
108
  * store manually).
package/dist/handlers.mjs CHANGED
@@ -661,7 +661,7 @@ var createAgentBridge = (options) => {
661
661
  channelPort = 4819,
662
662
  channelHost = "127.0.0.1",
663
663
  callbackUrl = "http://localhost:3000/api/agntcms/mcp",
664
- taskAckTimeoutMs = 15e3
664
+ taskAckTimeoutMs = 12e4
665
665
  } = options;
666
666
  const fetchFn = options.fetch ?? globalThis.fetch;
667
667
  const setTimeoutFn = options.setTimeoutFn ?? ((cb, ms) => setTimeout(cb, ms));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agntcms/next",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "agntcms runtime for Next.js: domain model, storage adapters, React components",
5
5
  "type": "module",
6
6
  "private": false,