@tekmidian/pai 0.57.0 → 0.59.0
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-OzYgALdx.mjs → chain-Cltx0NjY.mjs} +4 -4
- package/dist/{chain-OzYgALdx.mjs.map → chain-Cltx0NjY.mjs.map} +1 -1
- package/dist/cli/index.mjs +9 -9
- package/dist/cli/program.mjs +9 -9
- package/dist/{context-handover-cache-k2kWbE6G.mjs → context-handover-cache-Dt4HW1Ro.mjs} +3 -3
- package/dist/{context-handover-cache-k2kWbE6G.mjs.map → context-handover-cache-Dt4HW1Ro.mjs.map} +1 -1
- package/dist/daemon/index.mjs +7 -7
- package/dist/{daemon-D8zXReoA.mjs → daemon-B6hx1Ysz.mjs} +7 -7
- package/dist/{daemon-Caxrq2iQ.mjs → daemon-CmqJfeb9.mjs} +24 -14
- package/dist/daemon-CmqJfeb9.mjs.map +1 -0
- package/dist/daemon-mcp/index.mjs +5 -5
- package/dist/{fallback-CiG573uw.mjs → fallback-B_2ozQHw.mjs} +4 -4
- package/dist/{fallback-CiG573uw.mjs.map → fallback-B_2ozQHw.mjs.map} +1 -1
- package/dist/hooks/worker-status-line.mjs +3 -1
- package/dist/hooks/worker-status-line.mjs.map +2 -2
- package/dist/{main-resolver-Dx-pxic1.mjs → main-resolver-DYNxxNwJ.mjs} +166 -12
- package/dist/main-resolver-DYNxxNwJ.mjs.map +1 -0
- package/dist/{main-resolver-uDtK9p6e.mjs → main-resolver-Df65bPAi.mjs} +2 -2
- package/dist/{planner-s1iQQsjj.mjs → planner-DsZZEZCA.mjs} +5 -5
- package/dist/{planner-s1iQQsjj.mjs.map → planner-DsZZEZCA.mjs.map} +1 -1
- package/dist/{program-COHW5ZtV.mjs → program-B5miXqQa.mjs} +70 -74
- package/dist/program-B5miXqQa.mjs.map +1 -0
- package/dist/{run-9HbO1gTM.mjs → run-XaA-UPdW.mjs} +14 -10
- package/dist/run-XaA-UPdW.mjs.map +1 -0
- package/dist/{config-B93YS8tP.mjs → run-env-DyTWgZC9.mjs} +112 -3
- package/dist/run-env-DyTWgZC9.mjs.map +1 -0
- package/dist/{server-CGuZFOeR.mjs → server-CzqHGbKt.mjs} +4 -113
- package/dist/server-CzqHGbKt.mjs.map +1 -0
- package/dist/{session-keepalive-Dg3wiiFJ.mjs → session-keepalive-DDsEo81Q.mjs} +4 -4
- package/dist/{session-keepalive-Dg3wiiFJ.mjs.map → session-keepalive-DDsEo81Q.mjs.map} +1 -1
- package/dist/{work-queue-worker-DEbWsrDQ.mjs → work-queue-worker-BY7xn4pw.mjs} +4 -4
- package/dist/{work-queue-worker-DufMOtrL.mjs → work-queue-worker-DL9lu8sN.mjs} +2 -2
- package/dist/{work-queue-worker-DufMOtrL.mjs.map → work-queue-worker-DL9lu8sN.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/config-B93YS8tP.mjs.map +0 -1
- package/dist/daemon-Caxrq2iQ.mjs.map +0 -1
- package/dist/main-resolver-Dx-pxic1.mjs.map +0 -1
- package/dist/program-COHW5ZtV.mjs.map +0 -1
- package/dist/run-9HbO1gTM.mjs.map +0 -1
- package/dist/server-CGuZFOeR.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as getRegistryBackend } from "./factory-DiuntvwG.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
2
|
+
import { D as resolveModelCapability, O as resolveProviderKey, T as readWorkersSection, h as classModelCapability, m as assertProviderRunnable, n as claudeCommand, p as WorkersConfigError, t as buildRunEnv, w as providerKeyPath, y as isModelCapability } from "./run-env-DyTWgZC9.mjs";
|
|
3
|
+
import { _ as statusPath, d as resolveTarget, f as setCooldown, g as panesDir, h as ledgerPath, i as capabilityForRun, m as eventsPath, n as ensureProxyRunning, o as isQuotaFailure, p as ensureNoMcpConfig, s as nextAutoProvider, t as DEFAULT_PROXY_PORT, u as resolveCapabilityRun, v as workersLogDir } from "./server-CzqHGbKt.mjs";
|
|
4
4
|
import { appendFileSync, closeSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
6
6
|
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -468,12 +468,14 @@ function elapsedOf(ts, now = /* @__PURE__ */ new Date()) {
|
|
|
468
468
|
}
|
|
469
469
|
/** Shorter sleeps are legitimate polling — not worth a supervision event. */
|
|
470
470
|
const SLEEP_FLOOR_SECS = 60;
|
|
471
|
-
const SLEEP_RE = /^\s*sleep\s+([0-9]+(?:\.[0-9]+)?)([smhd]?)\s
|
|
471
|
+
const SLEEP_RE = /^\s*sleep\s+([0-9]+(?:\.[0-9]+)?)([smhd]?)\s*(?:$|[;&|])/;
|
|
472
472
|
/**
|
|
473
|
-
* Seconds of a
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
473
|
+
* Seconds of a `sleep N` (N plain or with an s/m/h/d suffix) that stands alone
|
|
474
|
+
* or leads a compound command (`sleep 150; cat f`, `sleep 2m && tail f`,
|
|
475
|
+
* `sleep 90 || true`, `sleep 60 &`), or null when no long sleep leads: anchored
|
|
476
|
+
* to the start of the command, so a filename containing "sleep" or an
|
|
477
|
+
* `echo sleep 500` never trips it, and floored at SLEEP_FLOOR_SECS so ordinary
|
|
478
|
+
* polling stays invisible.
|
|
477
479
|
*/
|
|
478
480
|
function parseSleepSecs(command) {
|
|
479
481
|
const m = command.match(SLEEP_RE);
|
|
@@ -2426,7 +2428,9 @@ function fullContractPrompt(format) {
|
|
|
2426
2428
|
"will pick something up later, never leave a background command as your final action. Finish, then",
|
|
2427
2429
|
"report.",
|
|
2428
2430
|
"No narration, no timestamps, no greetings, no summaries of what you read; act, verify, then stop.",
|
|
2429
|
-
"Never sleep
|
|
2431
|
+
"Never sleep-poll: no `sleep N` over 60 seconds, standalone or leading a compound command.",
|
|
2432
|
+
"Long builds and tests run in background with no arbitrary `timeout` — the task notification",
|
|
2433
|
+
"wakes you; read the output then. Wait on a bounded timeout or event instead.",
|
|
2430
2434
|
...fileNotInlineBlock(),
|
|
2431
2435
|
"",
|
|
2432
2436
|
`Operator messages: a user turn starting with ${OPERATOR_MARK} was typed by the operator while you`,
|
|
@@ -3037,7 +3041,7 @@ async function runWorker(opts) {
|
|
|
3037
3041
|
const logDir = workersLogDir(config);
|
|
3038
3042
|
mkdirSync(logDir, { recursive: true });
|
|
3039
3043
|
if (opts.className === "plan" && !opts._planner) {
|
|
3040
|
-
const { runPlanner } = await import("./planner-
|
|
3044
|
+
const { runPlanner } = await import("./planner-DsZZEZCA.mjs");
|
|
3041
3045
|
return runPlanner(opts);
|
|
3042
3046
|
}
|
|
3043
3047
|
const parent = launchParent(opts.parent);
|
|
@@ -4126,4 +4130,4 @@ function resultFromOutput(out) {
|
|
|
4126
4130
|
|
|
4127
4131
|
//#endregion
|
|
4128
4132
|
export { contextLabel as A, saveStatus as B, mergeWorker as C, UNLABELED as D, ledgerSummary as E, loadStatus as F, shortText as G, waitForTerminalStatus as H, loadStatuses as I, describeMcp as K, newWorkerId as L, elapsedOf as M, isChatPane as N, ageOf as O, isLive as P, nowStamp as R, discardWorker as S, appendLedger as T, longInlinePromptHint as U, setWorkerLabel as V, parseRunnerArgs as W, itermUuid as _, projectLaunchConfig as a, sessionTag as b, handoffFromInside as c, workerDepth as d, checkPaneForWorker as f, itermForClaudeSession as g, currentTabKey as h, usageContextTokens as i, contextPercent as j, alive as k, readInbox as l, openPaneForWorker as m, runWorker as n, parseWorkerReport as o, openFollowPane as p, expandMcpNames as q, testProvider as r, renderReport as s, printResult as t, sayToWorker as u, resolveSession as v, worktreesDir as w, workerInScope as x, sessionMapPath as y, ownsPid as z };
|
|
4129
|
-
//# sourceMappingURL=run-
|
|
4133
|
+
//# sourceMappingURL=run-XaA-UPdW.mjs.map
|