@tekmidian/pai 0.66.0 → 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-D4PuQ2c-.mjs → chain-CZfKIEq9.mjs} +2 -2
- package/dist/{chain-D4PuQ2c-.mjs.map → chain-CZfKIEq9.mjs.map} +1 -1
- package/dist/cli/index.mjs +5 -5
- package/dist/cli/program.mjs +5 -5
- package/dist/daemon/index.mjs +3 -3
- package/dist/{daemon-BEoVgVfJ.mjs → daemon-DXlaVCkw.mjs} +3 -3
- package/dist/{daemon-BEoVgVfJ.mjs.map → daemon-DXlaVCkw.mjs.map} +1 -1
- package/dist/{daemon-DPAYU9hp.mjs → daemon-DyORmxZu.mjs} +3 -3
- package/dist/daemon-mcp/index.mjs +6 -4
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/{fallback-B5svk75f.mjs → fallback-CIiq2Raw.mjs} +6 -4
- 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.map +2 -2
- package/dist/hooks/worker-guard.mjs +5 -0
- package/dist/hooks/worker-guard.mjs.map +2 -2
- package/dist/hooks/worker-status-line.mjs +1 -0
- package/dist/hooks/worker-status-line.mjs.map +2 -2
- package/dist/{planner-EJPZnnif.mjs → planner-Dm5Acyo1.mjs} +3 -3
- package/dist/{planner-EJPZnnif.mjs.map → planner-Dm5Acyo1.mjs.map} +1 -1
- package/dist/{program-DSETzrWg.mjs → program-JJ0TwSHI.mjs} +9 -6
- package/dist/{program-DSETzrWg.mjs.map → program-JJ0TwSHI.mjs.map} +1 -1
- package/dist/{run-Z4akoa8G.mjs → run-BCpbxqA5.mjs} +168 -6
- package/dist/run-BCpbxqA5.mjs.map +1 -0
- package/dist/{session-keepalive-BDhytXEo.mjs → session-keepalive-DxjTHGcK.mjs} +2 -2
- package/dist/{session-keepalive-BDhytXEo.mjs.map → session-keepalive-DxjTHGcK.mjs.map} +1 -1
- package/package.json +1 -1
- package/src/hooks/ts/lib/worker-guard.test.ts +12 -0
- package/src/hooks/ts/lib/worker-guard.ts +9 -0
- package/dist/fallback-B5svk75f.mjs.map +0 -1
- package/dist/run-Z4akoa8G.mjs.map +0 -1
|
@@ -5,13 +5,13 @@ import "./wakeup-D8n33hYV.mjs";
|
|
|
5
5
|
import "./context-handover-cache-pkHzmL3c.mjs";
|
|
6
6
|
import "./config-BbLFD7Uf.mjs";
|
|
7
7
|
import "./run-env-DRcp7A8K.mjs";
|
|
8
|
-
import "./run-
|
|
8
|
+
import "./run-BCpbxqA5.mjs";
|
|
9
9
|
import "./server-DgmAHyFK.mjs";
|
|
10
10
|
import "./state-HyjqTihC.mjs";
|
|
11
11
|
import "./aibroker-client-C5Fw7DNz.mjs";
|
|
12
|
-
import "./session-keepalive-
|
|
12
|
+
import "./session-keepalive-DxjTHGcK.mjs";
|
|
13
13
|
import "./embeddings-Bx3q0QOY.mjs";
|
|
14
|
-
import { t as serve } from "./daemon-
|
|
14
|
+
import { t as serve } from "./daemon-DXlaVCkw.mjs";
|
|
15
15
|
import "./router-a5G7q8_3.mjs";
|
|
16
16
|
import "./tools-BcOKPBtg.mjs";
|
|
17
17
|
import "./work-queue-worker-4tLa5gpQ.mjs";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../factory-CNpPQQ-5.mjs";
|
|
3
3
|
import { p as MainConfigError, s as loadConfig } from "../config-BbLFD7Uf.mjs";
|
|
4
4
|
import { D as readWorkersSection, b as getProviderOrNative, d as MODEL_CAPABILITIES, i as CAPABILITY_NAME_RE } from "../run-env-DRcp7A8K.mjs";
|
|
5
|
-
import { F as
|
|
5
|
+
import { F as ledgerSummary, G as loadStatuses, R as alive, W as loadStatus, X as setWorkerLabel, a as deadlineLabel, c as handoffFromInside, l as readInbox, n as runWorker, r as testProvider, u as sayToWorker, v as endLabel } from "../run-BCpbxqA5.mjs";
|
|
6
6
|
import { t as PaiClient } from "../ipc-client-D16Xw6Uo.mjs";
|
|
7
|
-
import { A as getConfigValueOp, C as setWorkersEnabled, D as useProvider, E as updateProvider, M as setConfigValueOp, N as unsetConfigValueOp, O as MainConfigOpsError, S as setProviderModel, T as unsetClass, _ as removeProvider, b as setClass, d as addProvider, f as classTargetText, g as modelPrefsText, h as describeProviders, i as fallbackStatusText, j as listConfigOp, l as readSpecPrompt, m as describeModels, n as fallbackOn, o as psOutput, p as describeCapabilities, r as fallbackStatus, s as replayOutput, t as fallbackOff, u as resolveSpecPath, v as resolveProviderName, w as unsetCapabilityPreference, x as setProviderEnabled, y as setCapabilityPreference } from "../fallback-
|
|
7
|
+
import { A as getConfigValueOp, C as setWorkersEnabled, D as useProvider, E as updateProvider, M as setConfigValueOp, N as unsetConfigValueOp, O as MainConfigOpsError, S as setProviderModel, T as unsetClass, _ as removeProvider, b as setClass, d as addProvider, f as classTargetText, g as modelPrefsText, h as describeProviders, i as fallbackStatusText, j as listConfigOp, l as readSpecPrompt, m as describeModels, n as fallbackOn, o as psOutput, p as describeCapabilities, r as fallbackStatus, s as replayOutput, t as fallbackOff, u as resolveSpecPath, v as resolveProviderName, w as unsetCapabilityPreference, x as setProviderEnabled, y as setCapabilityPreference } from "../fallback-CIiq2Raw.mjs";
|
|
8
8
|
import { h as ledgerPath, v as workersLogDir } from "../server-DgmAHyFK.mjs";
|
|
9
|
-
import { t as runChain } from "../chain-
|
|
9
|
+
import { t as runChain } from "../chain-CZfKIEq9.mjs";
|
|
10
10
|
import { t as dropItermBundleId } from "../env-JNEIrQWg.mjs";
|
|
11
11
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
12
12
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -5992,8 +5992,10 @@ async function startShim() {
|
|
|
5992
5992
|
const runningLines = running.length ? [
|
|
5993
5993
|
"",
|
|
5994
5994
|
`running (${running.length}):`,
|
|
5995
|
-
...running.map((w) => ` ${w.id} ${w.label}${w.parent ? ` (sub-worker of ${w.parent})` : ""} · ${w.last}` + (deadlineLabel(w) ? ` · ${deadlineLabel(w)}` : "") + (readInbox(logDir, w.id).length ? ` · ◆${readInbox(logDir, w.id).length}` : ""))
|
|
5995
|
+
...running.map((w) => ` ${w.id} ${w.label}${w.parent ? ` (sub-worker of ${w.parent})` : ""} · ${w.last}` + (deadlineLabel(w) ? ` · ${deadlineLabel(w)}` : "") + (w.parentComm ? ` · parent: ${w.parentComm}` : "") + (readInbox(logDir, w.id).length ? ` · ◆${readInbox(logDir, w.id).length}` : ""))
|
|
5996
5996
|
] : [];
|
|
5997
|
+
const ended = loadStatuses(logDir).filter((w) => w.state !== "running" && w.endReason).slice(-5);
|
|
5998
|
+
if (ended.length) runningLines.push("", "recently ended:", ...ended.map((w) => ` ${w.id} ${w.state} · ${endLabel(w)}${w.endNote ? ` (${w.endNote})` : ""}`));
|
|
5997
5999
|
return workerText([
|
|
5998
6000
|
`workers: ${workers.enabled ? "on" : "off"}`,
|
|
5999
6001
|
`active provider: ${workers.active ?? "(none)"}`,
|