@tekmidian/pai 0.65.2 → 0.66.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-CT3SI-3z.mjs → chain-D4PuQ2c-.mjs} +4 -4
- package/dist/{chain-CT3SI-3z.mjs.map → chain-D4PuQ2c-.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-BEoVgVfJ.mjs} +9 -9
- package/dist/{daemon-SaPnmoyg.mjs.map → daemon-BEoVgVfJ.mjs.map} +1 -1
- package/dist/{daemon-DoTVK9z6.mjs → daemon-DPAYU9hp.mjs} +7 -7
- package/dist/daemon-mcp/index.mjs +6 -6
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/{fallback-vHjFZP0Y.mjs → fallback-B5svk75f.mjs} +15 -7
- package/dist/fallback-B5svk75f.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 +10 -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 +16 -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-EJPZnnif.mjs} +5 -5
- package/dist/{planner-Dzs9-8AS.mjs.map → planner-EJPZnnif.mjs.map} +1 -1
- package/dist/{program-DK0mRRlf.mjs → program-DSETzrWg.mjs} +56 -16
- package/dist/{program-DK0mRRlf.mjs.map → program-DSETzrWg.mjs.map} +1 -1
- package/dist/{run-DMaCpvMW.mjs → run-Z4akoa8G.mjs} +325 -23
- package/dist/run-Z4akoa8G.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-BDhytXEo.mjs} +4 -4
- package/dist/{session-keepalive-DVZ9-7qg.mjs.map → session-keepalive-BDhytXEo.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.ts +4 -0
- package/dist/fallback-vHjFZP0Y.mjs.map +0 -1
- package/dist/run-DMaCpvMW.mjs.map +0 -1
- package/dist/run-env-BHWnXqle.mjs.map +0 -1
|
@@ -2,18 +2,18 @@ import "./utils-C9HsYDpO.mjs";
|
|
|
2
2
|
import "./migrate-BD7D8EEh.mjs";
|
|
3
3
|
import "./factory-CNpPQQ-5.mjs";
|
|
4
4
|
import "./wakeup-D8n33hYV.mjs";
|
|
5
|
-
import "./context-handover-cache-
|
|
5
|
+
import "./context-handover-cache-pkHzmL3c.mjs";
|
|
6
6
|
import "./config-BbLFD7Uf.mjs";
|
|
7
|
-
import "./run-env-
|
|
8
|
-
import "./run-
|
|
9
|
-
import "./server-
|
|
7
|
+
import "./run-env-DRcp7A8K.mjs";
|
|
8
|
+
import "./run-Z4akoa8G.mjs";
|
|
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-BDhytXEo.mjs";
|
|
13
13
|
import "./embeddings-Bx3q0QOY.mjs";
|
|
14
|
-
import { t as serve } from "./daemon-
|
|
14
|
+
import { t as serve } from "./daemon-BEoVgVfJ.mjs";
|
|
15
15
|
import "./router-a5G7q8_3.mjs";
|
|
16
16
|
import "./tools-BcOKPBtg.mjs";
|
|
17
|
-
import "./work-queue-worker-
|
|
17
|
+
import "./work-queue-worker-4tLa5gpQ.mjs";
|
|
18
18
|
|
|
19
19
|
export { serve };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "../factory-CNpPQQ-5.mjs";
|
|
3
3
|
import { p as MainConfigError, s as loadConfig } from "../config-BbLFD7Uf.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 alive, H as loadStatuses, M as ledgerSummary, V as loadStatus, a as deadlineLabel, c as handoffFromInside, l as readInbox, n as runWorker, q as setWorkerLabel, r as testProvider, u as sayToWorker } from "../run-Z4akoa8G.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-
|
|
8
|
-
import { h as ledgerPath, v as workersLogDir } from "../server-
|
|
9
|
-
import { t as runChain } from "../chain-
|
|
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-B5svk75f.mjs";
|
|
8
|
+
import { h as ledgerPath, v as workersLogDir } from "../server-DgmAHyFK.mjs";
|
|
9
|
+
import { t as runChain } from "../chain-D4PuQ2c-.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,7 +5992,7 @@ 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}` + (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)}` : "") + (readInbox(logDir, w.id).length ? ` · ◆${readInbox(logDir, w.id).length}` : ""))
|
|
5996
5996
|
] : [];
|
|
5997
5997
|
return workerText([
|
|
5998
5998
|
`workers: ${workers.enabled ? "on" : "off"}`,
|