@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
|
@@ -7819,6 +7819,7 @@ var DEFAULT_TREE = {
|
|
|
7819
7819
|
maxChildren: 4
|
|
7820
7820
|
};
|
|
7821
7821
|
var DEFAULT_CACHE_KEEPALIVE_SECS = 0;
|
|
7822
|
+
var DEFAULT_MAX_MINUTES = 60;
|
|
7822
7823
|
var DEFAULT_MCP_SETS = {
|
|
7823
7824
|
desktop: ["clickr"]
|
|
7824
7825
|
};
|
|
@@ -7835,6 +7836,8 @@ function defaultWorkersConfig() {
|
|
|
7835
7836
|
routing: { ...DEFAULT_ROUTING2, order: [] },
|
|
7836
7837
|
tree: { ...DEFAULT_TREE },
|
|
7837
7838
|
cacheKeepaliveSecs: DEFAULT_CACHE_KEEPALIVE_SECS,
|
|
7839
|
+
defaultMaxMinutes: DEFAULT_MAX_MINUTES,
|
|
7840
|
+
noBrowserByDefault: false,
|
|
7838
7841
|
caveman: false,
|
|
7839
7842
|
fallback: null,
|
|
7840
7843
|
nativeModels: { ...NATIVE_ANTHROPIC_MODELS }
|
|
@@ -8196,6 +8199,17 @@ function parseWorkersConfig(raw) {
|
|
|
8196
8199
|
}
|
|
8197
8200
|
cacheKeepaliveSecs = w.cacheKeepaliveSecs;
|
|
8198
8201
|
}
|
|
8202
|
+
let defaultMaxMinutes = DEFAULT_MAX_MINUTES;
|
|
8203
|
+
if (w.defaultMaxMinutes !== void 0) {
|
|
8204
|
+
if (typeof w.defaultMaxMinutes !== "number" || !Number.isInteger(w.defaultMaxMinutes) || w.defaultMaxMinutes < 0) {
|
|
8205
|
+
bad(".defaultMaxMinutes", "must be a non-negative integer (minutes, 0 = no limit)");
|
|
8206
|
+
}
|
|
8207
|
+
defaultMaxMinutes = w.defaultMaxMinutes;
|
|
8208
|
+
}
|
|
8209
|
+
if (w.noBrowserByDefault !== void 0 && typeof w.noBrowserByDefault !== "boolean") {
|
|
8210
|
+
bad(".noBrowserByDefault", "must be true or false");
|
|
8211
|
+
}
|
|
8212
|
+
const noBrowserByDefault = w.noBrowserByDefault === true;
|
|
8199
8213
|
if (w.caveman !== void 0 && typeof w.caveman !== "boolean") {
|
|
8200
8214
|
bad(".caveman", "must be true or false");
|
|
8201
8215
|
}
|
|
@@ -8248,6 +8262,8 @@ function parseWorkersConfig(raw) {
|
|
|
8248
8262
|
routing,
|
|
8249
8263
|
tree,
|
|
8250
8264
|
cacheKeepaliveSecs,
|
|
8265
|
+
defaultMaxMinutes,
|
|
8266
|
+
noBrowserByDefault,
|
|
8251
8267
|
caveman,
|
|
8252
8268
|
fallback,
|
|
8253
8269
|
nativeModels: { ...NATIVE_ANTHROPIC_MODELS }
|
|
@@ -8584,6 +8600,7 @@ function fullContractPrompt(format) {
|
|
|
8584
8600
|
"116 s). Ending your turn ends this process, so a background job gets no later wake-up here:",
|
|
8585
8601
|
"run_in_background is denied. Run the long command in the FOREGROUND with a Bash timeout up to 600000 ms",
|
|
8586
8602
|
"and split longer jobs into steps that each fit it.",
|
|
8603
|
+
"Kill only processes you started, by PID (`cmd & echo $! > /tmp/x.pid`, then `kill $(cat /tmp/x.pid)`); never `pkill`/`killall`/`kill $(pgrep ...)` \u2014 other workers' command lines contain your spec text.",
|
|
8587
8604
|
...fileNotInlineBlock(),
|
|
8588
8605
|
"",
|
|
8589
8606
|
`Operator messages: a user turn starting with ${OPERATOR_MARK} was typed by the operator while you`,
|