@tekmidian/pai 0.65.2 → 0.66.1
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/{chain-CT3SI-3z.mjs → chain-CZfKIEq9.mjs} +4 -4
- package/dist/{chain-CT3SI-3z.mjs.map → chain-CZfKIEq9.mjs.map} +1 -1
- package/dist/cli/index.mjs +9 -9
- package/dist/cli/program.mjs +9 -9
- package/dist/{context-handover-cache-CRSFdkNi.mjs → context-handover-cache-pkHzmL3c.mjs} +3 -3
- package/dist/{context-handover-cache-CRSFdkNi.mjs.map → context-handover-cache-pkHzmL3c.mjs.map} +1 -1
- package/dist/daemon/index.mjs +7 -7
- package/dist/{daemon-SaPnmoyg.mjs → daemon-DXlaVCkw.mjs} +9 -9
- package/dist/{daemon-SaPnmoyg.mjs.map → daemon-DXlaVCkw.mjs.map} +1 -1
- package/dist/{daemon-DoTVK9z6.mjs → daemon-DyORmxZu.mjs} +7 -7
- package/dist/daemon-mcp/index.mjs +8 -6
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/{fallback-vHjFZP0Y.mjs → fallback-CIiq2Raw.mjs} +18 -8
- package/dist/fallback-CIiq2Raw.mjs.map +1 -0
- package/dist/hooks/block-sleep-poll.mjs.map +2 -2
- package/dist/hooks/load-project-context.mjs +16 -0
- package/dist/hooks/load-project-context.mjs.map +2 -2
- package/dist/hooks/route-agents-to-worker.mjs +16 -0
- package/dist/hooks/route-agents-to-worker.mjs.map +2 -2
- package/dist/hooks/security-validator.mjs +16 -0
- package/dist/hooks/security-validator.mjs.map +2 -2
- package/dist/hooks/worker-guard.mjs +15 -0
- package/dist/hooks/worker-guard.mjs.map +3 -3
- package/dist/hooks/worker-proxy.mjs +16 -0
- package/dist/hooks/worker-proxy.mjs.map +2 -2
- package/dist/hooks/worker-status-line.mjs +17 -0
- package/dist/hooks/worker-status-line.mjs.map +2 -2
- package/dist/hooks/worker-supervision.mjs +16 -0
- package/dist/hooks/worker-supervision.mjs.map +2 -2
- package/dist/{main-resolver-VSM5ytnA.mjs → main-resolver-BKz_OuEh.mjs} +2 -2
- package/dist/{main-resolver-CKNGux1B.mjs → main-resolver-DPPwHNtn.mjs} +2 -2
- package/dist/{main-resolver-CKNGux1B.mjs.map → main-resolver-DPPwHNtn.mjs.map} +1 -1
- package/dist/{planner-Dzs9-8AS.mjs → planner-Dm5Acyo1.mjs} +5 -5
- package/dist/{planner-Dzs9-8AS.mjs.map → planner-Dm5Acyo1.mjs.map} +1 -1
- package/dist/{program-DK0mRRlf.mjs → program-JJ0TwSHI.mjs} +59 -16
- package/dist/program-JJ0TwSHI.mjs.map +1 -0
- package/dist/{run-DMaCpvMW.mjs → run-BCpbxqA5.mjs} +490 -26
- package/dist/run-BCpbxqA5.mjs.map +1 -0
- package/dist/{run-env-BHWnXqle.mjs → run-env-DRcp7A8K.mjs} +16 -2
- package/dist/run-env-DRcp7A8K.mjs.map +1 -0
- package/dist/{server-DlL1QI2k.mjs → server-DgmAHyFK.mjs} +2 -2
- package/dist/{server-DlL1QI2k.mjs.map → server-DgmAHyFK.mjs.map} +1 -1
- package/dist/{session-keepalive-DVZ9-7qg.mjs → session-keepalive-DxjTHGcK.mjs} +4 -4
- package/dist/{session-keepalive-DVZ9-7qg.mjs.map → session-keepalive-DxjTHGcK.mjs.map} +1 -1
- package/dist/{work-queue-worker-DZiEMvBQ.mjs → work-queue-worker-4tLa5gpQ.mjs} +2 -2
- package/dist/{work-queue-worker-DZiEMvBQ.mjs.map → work-queue-worker-4tLa5gpQ.mjs.map} +1 -1
- package/dist/{work-queue-worker-D7GHuj2I.mjs → work-queue-worker-rFZvTO3p.mjs} +4 -4
- package/docs/commands/README.md +1 -0
- package/docs/commands/worker.md +30 -0
- package/package.json +1 -1
- package/src/hooks/ts/lib/worker-guard.test.ts +12 -0
- package/src/hooks/ts/lib/worker-guard.ts +13 -0
- package/dist/fallback-vHjFZP0Y.mjs.map +0 -1
- package/dist/program-DK0mRRlf.mjs.map +0 -1
- package/dist/run-DMaCpvMW.mjs.map +0 -1
- package/dist/run-env-BHWnXqle.mjs.map +0 -1
|
@@ -7986,6 +7986,7 @@ var DEFAULT_TREE = {
|
|
|
7986
7986
|
maxChildren: 4
|
|
7987
7987
|
};
|
|
7988
7988
|
var DEFAULT_CACHE_KEEPALIVE_SECS = 0;
|
|
7989
|
+
var DEFAULT_MAX_MINUTES = 60;
|
|
7989
7990
|
var DEFAULT_MCP_SETS = {
|
|
7990
7991
|
desktop: ["clickr"]
|
|
7991
7992
|
};
|
|
@@ -8002,6 +8003,8 @@ function defaultWorkersConfig() {
|
|
|
8002
8003
|
routing: { ...DEFAULT_ROUTING2, order: [] },
|
|
8003
8004
|
tree: { ...DEFAULT_TREE },
|
|
8004
8005
|
cacheKeepaliveSecs: DEFAULT_CACHE_KEEPALIVE_SECS,
|
|
8006
|
+
defaultMaxMinutes: DEFAULT_MAX_MINUTES,
|
|
8007
|
+
noBrowserByDefault: false,
|
|
8005
8008
|
caveman: false,
|
|
8006
8009
|
fallback: null,
|
|
8007
8010
|
nativeModels: { ...NATIVE_ANTHROPIC_MODELS }
|
|
@@ -8363,6 +8366,17 @@ function parseWorkersConfig(raw) {
|
|
|
8363
8366
|
}
|
|
8364
8367
|
cacheKeepaliveSecs = w.cacheKeepaliveSecs;
|
|
8365
8368
|
}
|
|
8369
|
+
let defaultMaxMinutes = DEFAULT_MAX_MINUTES;
|
|
8370
|
+
if (w.defaultMaxMinutes !== void 0) {
|
|
8371
|
+
if (typeof w.defaultMaxMinutes !== "number" || !Number.isInteger(w.defaultMaxMinutes) || w.defaultMaxMinutes < 0) {
|
|
8372
|
+
bad(".defaultMaxMinutes", "must be a non-negative integer (minutes, 0 = no limit)");
|
|
8373
|
+
}
|
|
8374
|
+
defaultMaxMinutes = w.defaultMaxMinutes;
|
|
8375
|
+
}
|
|
8376
|
+
if (w.noBrowserByDefault !== void 0 && typeof w.noBrowserByDefault !== "boolean") {
|
|
8377
|
+
bad(".noBrowserByDefault", "must be true or false");
|
|
8378
|
+
}
|
|
8379
|
+
const noBrowserByDefault = w.noBrowserByDefault === true;
|
|
8366
8380
|
if (w.caveman !== void 0 && typeof w.caveman !== "boolean") {
|
|
8367
8381
|
bad(".caveman", "must be true or false");
|
|
8368
8382
|
}
|
|
@@ -8415,6 +8429,8 @@ function parseWorkersConfig(raw) {
|
|
|
8415
8429
|
routing,
|
|
8416
8430
|
tree,
|
|
8417
8431
|
cacheKeepaliveSecs,
|
|
8432
|
+
defaultMaxMinutes,
|
|
8433
|
+
noBrowserByDefault,
|
|
8418
8434
|
caveman,
|
|
8419
8435
|
fallback,
|
|
8420
8436
|
nativeModels: { ...NATIVE_ANTHROPIC_MODELS }
|