@tekmidian/pai 1.0.4 → 1.0.5
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/.claude-plugin/plugin.json +1 -1
- package/dist/{auto-route-21GdHL70.mjs → auto-route-DUYr57rs.mjs} +2 -2
- package/dist/auto-route-DWYK_0i0.mjs +11 -0
- package/dist/budget-DX-VIWGf.mjs +15 -0
- package/dist/{caller-identity-yLFb7CKq.mjs → caller-identity-Bim8JT-D.mjs} +3 -3
- package/dist/{capacity-DEveQdFV.mjs → capacity-CsZMkVyg.mjs} +7 -4
- package/dist/{chain-D7PFur8Y.mjs → chain-Dzz6xcKH.mjs} +5 -5
- package/dist/cli/index.mjs +107 -91
- package/dist/{cockpit-actions-OodH_vx_.mjs → cockpit-actions-BTA1njMO.mjs} +27 -23
- package/dist/{cockpit-actions-BfRMr2sm.mjs → cockpit-actions-BgsiNcUY.mjs} +17 -17
- package/dist/cockpit-memory-DIrNs4xr.mjs +20 -0
- package/dist/config/defaults/config.yaml +3 -0
- package/dist/{config-XpZWOYOG.mjs → config-CST2uq1v.mjs} +29 -4
- package/dist/{config-Bu1_vbY8.mjs → config-DYbyEe4-.mjs} +2 -2
- package/dist/{config-DtENJ6cL.mjs → config-Dv3t7xnT.mjs} +1 -1
- package/dist/config-h5qK3fst.mjs +4 -0
- package/dist/{controls-JLm6g0yP.mjs → controls-OiVVbe-f.mjs} +15 -15
- package/dist/daemon/index.mjs +37 -36
- package/dist/{daemon-nXanenDM.mjs → daemon-C1dycZ3W.mjs} +28 -26
- package/dist/daemon-ieo0lnpq.mjs +46 -0
- package/dist/daemon-mcp/index.mjs +34 -34
- package/dist/detect-C0ZBXqDL.mjs +10 -0
- package/dist/{detect-BLKsUOgG.mjs → detect-CHuxFrLy.mjs} +2 -2
- package/dist/{embed-pass-e64AwDCa.mjs → embed-pass-DtVF2fOV.mjs} +4 -4
- package/dist/{embedding-gate-Cnk4YCyX.mjs → embedding-gate-B98PK_wz.mjs} +2 -2
- package/dist/{embedding-gate-6rZrWRXa.mjs → embedding-gate-CTAk8STe.mjs} +2 -2
- package/dist/{endreason-BC-v05H_.mjs → endreason-BqyyU7BH.mjs} +4 -4
- package/dist/{factory-B7nv75rC.mjs → factory-BV0MQA3T.mjs} +4 -4
- package/dist/{factory-Bs9imVMq.mjs → factory-DeASMV7Z.mjs} +4 -4
- package/dist/{fallback-CBWpp2F2.mjs → fallback-Bj2cyVk_.mjs} +6 -6
- package/dist/{health-C4FQmkJn.mjs → health-kufVIf6i.mjs} +4 -4
- package/dist/{helpers-DSNK_1KP.mjs → helpers-CvbYEKoD.mjs} +2 -2
- package/dist/{helpers-Dz7mjTSw.mjs → helpers-WV8tdQHM.mjs} +5 -5
- package/dist/hooks/block-sleep-poll.mjs +1 -1
- package/dist/hooks/load-project-context.mjs +7 -7
- package/dist/hooks/local-model-hint.mjs +1 -1
- package/dist/hooks/route-agents-to-worker.mjs +1 -1
- package/dist/hooks/security-validator.mjs +2 -2
- package/dist/hooks/worker-edit-repair.mjs +2 -2
- package/dist/hooks/worker-guard.mjs +8 -8
- package/dist/hooks/worker-note.mjs +2 -2
- package/dist/hooks/worker-pool-host.mjs +106 -46
- package/dist/hooks/worker-proxy.mjs +1 -1
- package/dist/hooks/worker-status-line.mjs +16 -16
- package/dist/hooks/worker-supervision.mjs +1 -1
- package/dist/hooks/worker-tool-name-repair.mjs +2 -2
- package/dist/index.mjs +8 -8
- package/dist/{indexer-backend-BdjeL4P8.mjs → indexer-backend-B2vtFl38.mjs} +13 -13
- package/dist/kill-tree-CXZ0WfVf.mjs +10 -0
- package/dist/{kill-tree-DleMNZX3.mjs → kill-tree-CcpsRLCZ.mjs} +7 -7
- package/dist/{launch-Di7N-J5X.mjs → launch-DpQPZGsT.mjs} +3 -3
- package/dist/{launch-DlZTKE3u.mjs → launch-UPQBoW2q.mjs} +3 -3
- package/dist/{local-candidate-DLdwQt0s.mjs → local-candidate-Cp_bw4kK.mjs} +3 -3
- package/dist/{local-instances-ZeRkkuS5.mjs → local-instances-B-c-CxzP.mjs} +4 -4
- package/dist/{local-instances-DOxSgT_L.mjs → local-instances-bdCNNSsL.mjs} +2 -2
- package/dist/{local-tiers-BE4jGaMa.mjs → local-tiers-BtdEEe5n.mjs} +2 -2
- package/dist/{local-tiers-DNMI5W86.mjs → local-tiers-OBqAAfOg.mjs} +3 -3
- package/dist/{main-config-ops-kTXR8Pyv.mjs → main-config-ops-BYsK3BxM.mjs} +3 -3
- package/dist/{main-resolver-yp_puSSb.mjs → main-resolver-CAC3xfZM.mjs} +17 -17
- package/dist/{model-inventory-h6Z9fN_o.mjs → model-inventory-BuTpi9a6.mjs} +13 -13
- package/dist/{models-add-TVni3A7V.mjs → models-add-CJx2YAwh.mjs} +36 -35
- package/dist/operator-Bpxq_WB5.mjs +7 -0
- package/dist/{operator-CyuB3aVw.mjs → operator-DrwWItVt.mjs} +2 -2
- package/dist/{pai-marker-BcZyJguM.mjs → pai-marker-DLKJ9Yr5.mjs} +2 -2
- package/dist/{pane-audit-Lqy9N_Ki.mjs → pane-audit-wv9UkyCe.mjs} +8 -8
- package/dist/{paths-CFHTloSe.mjs → paths-DBd78I7Z.mjs} +3 -3
- package/dist/{paths-CHifubDh.mjs → paths-DS5VQKoR.mjs} +3 -3
- package/dist/{planner-j77ndkBf.mjs → planner-K0mFrCpL.mjs} +28 -28
- package/dist/{pool-Dh-q3iJi.mjs → pool-BZ94nFuq.mjs} +2 -2
- package/dist/{pool-cli-BggU8GRp.mjs → pool-cli-B1eKySeN.mjs} +5 -5
- package/dist/{pool-cli-DQ6OzRy2.mjs → pool-cli-BjYQDfx6.mjs} +6 -6
- package/dist/{postgres-DNIOQijl.mjs → postgres-C-T5OWer.mjs} +3 -3
- package/dist/{postgres-BK4FP9Zg.mjs → postgres-CBHY5PIi.mjs} +3 -3
- package/dist/{project-setup-CBRtFFh0.mjs → project-setup-pIPHZaXf.mjs} +24 -24
- package/dist/{providers-C9QC0TtO.mjs → providers-Dzx5GAUI.mjs} +6 -6
- package/dist/providers-QJzpaNhX.mjs +16 -0
- package/dist/{registrable-DpyTtajg.mjs → registrable-CXBBpUcz.mjs} +4 -4
- package/dist/registrable-Drn8wIDO.mjs +9 -0
- package/dist/render-C4KR8qQ8.mjs +13 -0
- package/dist/{render-C84BqQRC.mjs → render-Cz3BWIBO.mjs} +8 -8
- package/dist/root-Bfb1zgwE.mjs +36 -0
- package/dist/{root-C4oXlXS_.mjs → root-bG48WVpW.mjs} +10 -10
- package/dist/route-table-ZVMNBsy7.mjs +15 -0
- package/dist/{routing-DmkheCRH.mjs → routing-BlD_tKjW.mjs} +15 -15
- package/dist/{routing-f2zulGwD.mjs → routing-D27jxj9x.mjs} +13 -13
- package/dist/{run-BwZKBJZZ.mjs → run-AZVwceiU.mjs} +35 -27
- package/dist/{scan-BBGvU5EB.mjs → scan-C3uotg_f.mjs} +5 -5
- package/dist/{scope-D-h6F6DN.mjs → scope-D8HK6vU7.mjs} +4 -4
- package/dist/{session-Dn5OJXlg.mjs → session-BAfypQb9.mjs} +26 -26
- package/dist/session-BcnhepLZ.mjs +35 -0
- package/dist/{session-scan-DUn10MBd.mjs → session-scan-BmnjSReu.mjs} +5 -5
- package/dist/session-scan-CqUQdCac.mjs +9 -0
- package/dist/{session-usage-CPvXvSkw.mjs → session-usage-oycSdiD3.mjs} +117 -2
- package/dist/{status-ggJ7lgVg.mjs → status-COtzewKV.mjs} +3 -3
- package/dist/{status-Dm4dYciN.mjs → status-D_SWmOlH.mjs} +4 -4
- package/dist/{tool-errors-CJWODvlo.mjs → tool-errors-B2LnIqR0.mjs} +6 -6
- package/dist/{tool-errors-7E13StWd.mjs → tool-errors-DXJ70-sr.mjs} +2 -2
- package/dist/{viewer-wfKnvnrI.mjs → viewer-BgGRqXfD.mjs} +14 -14
- package/dist/viewer-CbGN2Ri4.mjs +22 -0
- package/dist/{wait-ByV0OyMZ.mjs → wait-ChpHKJZV.mjs} +3 -3
- package/dist/worker-config-D1KVAMp4.mjs +42 -0
- package/dist/{worker-config-eY5Qy4vl.mjs → worker-config-DgdT0iTB.mjs} +139 -33
- package/dist/workers-config-BhZBrR-Q.mjs +4 -0
- package/dist/{worktree-CRs2gyg0.mjs → worktree-BY--Rgmy.mjs} +5 -5
- package/dist/{zettelkasten-tpCRBYvH.mjs → zettelkasten-BHVx5zj-.mjs} +3 -3
- package/dist/{zettelkasten-_h_tUm2T.mjs → zettelkasten-LoH9RBiN.mjs} +2 -2
- package/docs/commands/README.md +1 -0
- package/docs/commands/config.md +20 -0
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/pai-plugin.json +1 -1
- package/plugins/context-preservation/plugin.json +1 -1
- package/plugins/core/plugin.json +1 -1
- package/plugins/creative/plugin.json +1 -1
- package/plugins/observability/plugin.json +1 -1
- package/plugins/productivity/plugin.json +1 -1
- package/plugins/semantic-search/plugin.json +1 -1
- package/plugins/ui/plugin.json +1 -1
- package/plugins/zettelkasten/plugin.json +1 -1
- package/dist/auto-route-C3S2W3Bc.mjs +0 -11
- package/dist/budget-BrloTOZW.mjs +0 -15
- package/dist/cockpit-memory-teG9M8bG.mjs +0 -20
- package/dist/config-Cxi-aBf4.mjs +0 -4
- package/dist/daemon-DeYImF1F.mjs +0 -45
- package/dist/detect-Rrimh0xc.mjs +0 -10
- package/dist/kill-tree-SV6hrIa3.mjs +0 -10
- package/dist/operator-BTqvTIc8.mjs +0 -7
- package/dist/providers-FvCLzFge.mjs +0 -16
- package/dist/registrable-BzH4TObg.mjs +0 -9
- package/dist/render-B35bQTE-.mjs +0 -13
- package/dist/root-DD1xx_Vu.mjs +0 -36
- package/dist/route-table-FEfDuhIV.mjs +0 -15
- package/dist/session-BAhtXdxj.mjs +0 -35
- package/dist/session-scan-B57dNuA4.mjs +0 -9
- package/dist/viewer-DEySE4c_.mjs +0 -22
- package/dist/worker-config-CO5FXLAT.mjs +0 -41
- package/dist/workers-config-f8KrkY4L.mjs +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./paths-
|
|
4
|
-
import "./status-
|
|
5
|
-
import "./pool-
|
|
6
|
-
import { a as poolOff, c as poolStatusText, d as spareStatusLines, f as standalonePoolHostPath, i as hostBuildText, l as reloadPoolHost, n as diskBundleMtime, o as poolOn, r as ensurePoolHost, s as poolReloadLive, t as POOL_HEAL_GAP_MS, u as skipReasonLine } from "./pool-cli-
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./status-COtzewKV.mjs";
|
|
5
|
+
import "./pool-BZ94nFuq.mjs";
|
|
6
|
+
import { a as poolOff, c as poolStatusText, d as spareStatusLines, f as standalonePoolHostPath, i as hostBuildText, l as reloadPoolHost, n as diskBundleMtime, o as poolOn, r as ensurePoolHost, s as poolReloadLive, t as POOL_HEAL_GAP_MS, u as skipReasonLine } from "./pool-cli-B1eKySeN.mjs";
|
|
7
7
|
|
|
8
8
|
export { poolOff, poolOn, poolStatusText };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as DEFAULT_PG_CONNECTION_TIMEOUT_MS, N as postgresConnectionString } from "./config-DYbyEe4-.mjs";
|
|
2
2
|
import { a as parseSessionTitleChunk, c as yieldToEventLoop, f as fileContentHash, h as sha256File, i as isPathTooBroadForContentScan, m as sha256, n as chunkId, o as walkContentFiles, r as detectTier, s as walkMdFiles, t as INDEX_YIELD_EVERY, u as chunkMarkdown } from "./helpers-CRuBUas3.mjs";
|
|
3
3
|
import { t as STOP_WORDS } from "./stop-words-DSEYQdNe.mjs";
|
|
4
|
-
import { p as LEGACY_EMBEDDING_BINDING, r as gateBackend } from "./embedding-gate-
|
|
4
|
+
import { p as LEGACY_EMBEDDING_BINDING, r as gateBackend } from "./embedding-gate-CTAk8STe.mjs";
|
|
5
5
|
import { s as serializeEmbedding } from "./embeddings-BVq3esBF.mjs";
|
|
6
6
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
@@ -2319,4 +2319,4 @@ function rowToKgEntity(row) {
|
|
|
2319
2319
|
|
|
2320
2320
|
//#endregion
|
|
2321
2321
|
export { entityContentId as a, resolveFromModule as c, retryTransient as i, embedChunksWithBackend as n, buildPgTsQuery as o, indexProjectWithBackend as r, packageRoot as s, PostgresBackend as t };
|
|
2322
|
-
//# sourceMappingURL=postgres-
|
|
2322
|
+
//# sourceMappingURL=postgres-C-T5OWer.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-DYbyEe4-.mjs";
|
|
2
2
|
import "./helpers-CRuBUas3.mjs";
|
|
3
|
-
import { o as buildPgTsQuery, t as PostgresBackend } from "./postgres-
|
|
4
|
-
import "./embedding-gate-
|
|
3
|
+
import { o as buildPgTsQuery, t as PostgresBackend } from "./postgres-C-T5OWer.mjs";
|
|
4
|
+
import "./embedding-gate-CTAk8STe.mjs";
|
|
5
5
|
import "./embeddings-BVq3esBF.mjs";
|
|
6
6
|
|
|
7
7
|
export { PostgresBackend };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { c as ok, i as err, n as dim } from "./utils-J2b9y8PC.mjs";
|
|
2
2
|
import { g as paiHomePath, l as claudeHomeDir } from "./runtime-paths-WsO9sJFc.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { i as ledgerPath, r as eventsPath, u as workersLogDir } from "./paths-
|
|
5
|
-
import { D as formatPending, O as pendingGate, b as verifyWorker, c as formatKnowledge, d as gcWorktrees, g as mergeWorker, k as pendingResults, m as leftoverWorktrees, s as discardWorker, u as gcPoolWorktrees } from "./worktree-
|
|
6
|
-
import { B as loadStatusConfig, C as nowStamp, F as ForgeError, H as setClaim, I as PROJECT_CONFIG_REL, K as PREAMBLE_MAX_BYTES, R as listClaims, V as parseStatusConfig, W as writeContinueToForge, Z as projectRoot, a as UNLABELED, et as longInlinePromptHint, g as isLive, j as setWorkerNote, k as saveStatus, o as ageOf, q as PREAMBLE_REL, s as alive, tt as parseRunnerArgs, v as loadStatus, w as ownsPid, y as loadStatuses, z as listStale } from "./status-
|
|
7
|
-
import { p as currentWorkerId } from "./scope-
|
|
8
|
-
import { C as detectSessionProvider,
|
|
9
|
-
import { C as statusMarker, S as realDeps, T as waitOn, a as runWait, w as statusQueue } from "./wait-
|
|
10
|
-
import { n as breakStaleMutex } from "./caller-identity-
|
|
11
|
-
import { a as liveQueue, f as sessionOf, l as reorderQueue, o as providerCap, s as queueRows, t as admitCap } from "./capacity-
|
|
12
|
-
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-
|
|
3
|
+
import { M as readWorkersSection, Q as readMergeVerify, c as WorkersConfigError, f as escalationCloud, h as isModelCapability, m as isLocalProvider, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
|
|
4
|
+
import { i as ledgerPath, r as eventsPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
5
|
+
import { D as formatPending, O as pendingGate, b as verifyWorker, c as formatKnowledge, d as gcWorktrees, g as mergeWorker, k as pendingResults, m as leftoverWorktrees, s as discardWorker, u as gcPoolWorktrees } from "./worktree-BY--Rgmy.mjs";
|
|
6
|
+
import { B as loadStatusConfig, C as nowStamp, F as ForgeError, H as setClaim, I as PROJECT_CONFIG_REL, K as PREAMBLE_MAX_BYTES, R as listClaims, V as parseStatusConfig, W as writeContinueToForge, Z as projectRoot, a as UNLABELED, et as longInlinePromptHint, g as isLive, j as setWorkerNote, k as saveStatus, o as ageOf, q as PREAMBLE_REL, s as alive, tt as parseRunnerArgs, v as loadStatus, w as ownsPid, y as loadStatuses, z as listStale } from "./status-COtzewKV.mjs";
|
|
7
|
+
import { p as currentWorkerId } from "./scope-D8HK6vU7.mjs";
|
|
8
|
+
import { C as detectSessionProvider, Cn as resolveLocalProvider, St as gcSettingsFiles, cn as detectSessionName, hn as LOCAL_MECHANISM_LINE, ln as BATCH_ENV, pt as isLoopbackProvider, wn as resolveRunnerProvider, xn as probeLoopback } from "./routing-BlD_tKjW.mjs";
|
|
9
|
+
import { C as statusMarker, S as realDeps, T as waitOn, a as runWait, w as statusQueue } from "./wait-ChpHKJZV.mjs";
|
|
10
|
+
import { n as breakStaleMutex } from "./caller-identity-Bim8JT-D.mjs";
|
|
11
|
+
import { a as liveQueue, f as sessionOf, l as reorderQueue, o as providerCap, s as queueRows, t as admitCap } from "./capacity-CsZMkVyg.mjs";
|
|
12
|
+
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-Cp_bw4kK.mjs";
|
|
13
13
|
import { n as OPT, t as CliError } from "./define-CjJsmq-6.mjs";
|
|
14
|
-
import { c as resolveFromModule } from "./postgres-
|
|
15
|
-
import { C as workerUsage, S as usageJson, U as endProcesses, W as findWorktreeOrphans, _ as stopLaunchedWorkers, a as resolveWorkers, b as renderUsage, d as capture, h as realCommitsAhead, i as liveResolveCtx, m as mergeBranch, n as LocalProviderRefusedError, p as launchWorker, r as PoolRefusedError, t as runWorker, v as parseWhen } from "./run-
|
|
16
|
-
import { $ as checkPaneForWorker, A as tail, Gt as handoffFromInside, H as planLogTail, J as queueLockPath, Jt as LOCAL_FAILURE_LIMIT, N as filesOverlap, R as followPlanLog, W as planRunEnded, Xt as localFailures, Yt as classifyRoute, Z as withRunLock, Zt as routeLine, c as setMuted, ct as openFollowPane, et as closeEndedPanes, ft as paneBackend, gt as workerEnded, ht as resolveHostSession, lt as openPaneForWorker, pt as paneMayClose, st as loadRegistry } from "./controls-
|
|
17
|
-
import { R as parentFromEnv } from "./render-
|
|
18
|
-
import { r as sayToWorker } from "./operator-
|
|
19
|
-
import { i as killTree } from "./kill-tree-
|
|
20
|
-
import { t as runChain } from "./chain-
|
|
21
|
-
import { c as followPaneRun, i as listItermTabs, l as isPaneRunId, o as renderPaneAudit, s as runningProcs, t as auditPanes, u as loadPaneRunStatus } from "./pane-audit-
|
|
22
|
-
import { a as followTailOutput, d as psOutput, f as replayOutput, m as statusLineOutput, o as followWorkers } from "./viewer-
|
|
23
|
-
import { a as DEFAULT_IDLE_SECS, o as commandToRun, s as runProbed } from "./fallback-
|
|
24
|
-
import { _ as unsetCapabilityPreference, a as describeCapabilities, c as modelPrefsText, d as setCapabilityPreference, h as setProviderModel, o as describeModels, u as resolveProviderName } from "./providers-
|
|
14
|
+
import { c as resolveFromModule } from "./postgres-C-T5OWer.mjs";
|
|
15
|
+
import { C as workerUsage, S as usageJson, U as endProcesses, W as findWorktreeOrphans, _ as stopLaunchedWorkers, a as resolveWorkers, b as renderUsage, d as capture, h as realCommitsAhead, i as liveResolveCtx, m as mergeBranch, n as LocalProviderRefusedError, p as launchWorker, r as PoolRefusedError, t as runWorker, v as parseWhen } from "./run-AZVwceiU.mjs";
|
|
16
|
+
import { $ as checkPaneForWorker, A as tail, Gt as handoffFromInside, H as planLogTail, J as queueLockPath, Jt as LOCAL_FAILURE_LIMIT, N as filesOverlap, R as followPlanLog, W as planRunEnded, Xt as localFailures, Yt as classifyRoute, Z as withRunLock, Zt as routeLine, c as setMuted, ct as openFollowPane, et as closeEndedPanes, ft as paneBackend, gt as workerEnded, ht as resolveHostSession, lt as openPaneForWorker, pt as paneMayClose, st as loadRegistry } from "./controls-OiVVbe-f.mjs";
|
|
17
|
+
import { R as parentFromEnv } from "./render-Cz3BWIBO.mjs";
|
|
18
|
+
import { r as sayToWorker } from "./operator-DrwWItVt.mjs";
|
|
19
|
+
import { i as killTree } from "./kill-tree-CcpsRLCZ.mjs";
|
|
20
|
+
import { t as runChain } from "./chain-Dzz6xcKH.mjs";
|
|
21
|
+
import { c as followPaneRun, i as listItermTabs, l as isPaneRunId, o as renderPaneAudit, s as runningProcs, t as auditPanes, u as loadPaneRunStatus } from "./pane-audit-wv9UkyCe.mjs";
|
|
22
|
+
import { a as followTailOutput, d as psOutput, f as replayOutput, m as statusLineOutput, o as followWorkers } from "./viewer-BgGRqXfD.mjs";
|
|
23
|
+
import { a as DEFAULT_IDLE_SECS, o as commandToRun, s as runProbed } from "./fallback-Bj2cyVk_.mjs";
|
|
24
|
+
import { _ as unsetCapabilityPreference, a as describeCapabilities, c as modelPrefsText, d as setCapabilityPreference, h as setProviderModel, o as describeModels, u as resolveProviderName } from "./providers-Dzx5GAUI.mjs";
|
|
25
25
|
import { appendFileSync, copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, renameSync, rmSync, rmdirSync, statSync, writeFileSync } from "node:fs";
|
|
26
26
|
import { createHash, randomBytes } from "node:crypto";
|
|
27
27
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1466,7 +1466,7 @@ const errorsCommand = {
|
|
|
1466
1466
|
examples: ["pai worker errors", "pai worker errors --since 2h"],
|
|
1467
1467
|
seeAlso: ["pai worker log"],
|
|
1468
1468
|
run: (ctx) => guard("pai worker errors --since 24h", async () => {
|
|
1469
|
-
const { errorsTable, groupToolErrors, parseSince, readToolErrors } = await import("./tool-errors-
|
|
1469
|
+
const { errorsTable, groupToolErrors, parseSince, readToolErrors } = await import("./tool-errors-B2LnIqR0.mjs");
|
|
1470
1470
|
const since = str(ctx.opts.since) ?? "24h";
|
|
1471
1471
|
const ms = parseSince(since);
|
|
1472
1472
|
if (ms === null) throw new Error(`bad --since "${since}" (use 30m, 2h, 1d)`);
|
|
@@ -3012,7 +3012,7 @@ async function projectChecks(cwd, d = {}) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
async function realDaemonStart() {
|
|
3014
3014
|
try {
|
|
3015
|
-
const [{ PaiClient }, { loadConfig }] = await Promise.all([import("./ipc-client-DN7EvoVo.mjs"), import("./config-
|
|
3015
|
+
const [{ PaiClient }, { loadConfig }] = await Promise.all([import("./ipc-client-DN7EvoVo.mjs"), import("./config-Dv3t7xnT.mjs")]);
|
|
3016
3016
|
const s = await new PaiClient(loadConfig().socketPath).status();
|
|
3017
3017
|
return Date.now() - Number(s.uptime) * 1e3;
|
|
3018
3018
|
} catch {
|
|
@@ -3029,4 +3029,4 @@ function realBuildTime() {
|
|
|
3029
3029
|
|
|
3030
3030
|
//#endregion
|
|
3031
3031
|
export { schedulerLines as C, resolveSpecPath as E, withTarget as S, readSpecPrompt as T, issueClaims as _, branchDiff as a, workerCommand as b, runQueue as c, loadSettings as d, move as f, issueClaim as g, renderReview as h, projectChecks as i, QueueStore as l, renderList as m, initProject as n, realQueueDeps as o, queueStatePath as p, isGitProject as r, acceptItems as s, formatCheck as t, again as u, issueStale as v, schedulerView as w, resolveTarget as x, providerCaps as y };
|
|
3032
|
-
//# sourceMappingURL=project-setup-
|
|
3032
|
+
//# sourceMappingURL=project-setup-pIPHZaXf.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as CONFIG_FILE, o as expandHome, s as homeRel } from "./config-
|
|
3
|
-
import { u as workersLogDir } from "./paths-
|
|
4
|
-
import { a as clearCooldown, d as probeQuota,
|
|
5
|
-
import { d as resolveCap, t as admitCap } from "./capacity-
|
|
1
|
+
import { L as writeWorkersSection, M as readWorkersSection, N as resolveCapability, O as providerCostTier, _ as maskKey, a as MODEL_CAPABILITIES, c as WorkersConfigError, d as defaultWorkersConfig, g as keysDir, h as isModelCapability, o as PROVIDER_TAGS, p as getProviderOrNative, rt as workersYamlPath, t as ANTHROPIC_NATIVE, y as nativeAnthropicProvider } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { n as CONFIG_FILE, o as expandHome, s as homeRel } from "./config-DYbyEe4-.mjs";
|
|
3
|
+
import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import { a as clearCooldown, d as probeQuota, hn as LOCAL_MECHANISM_LINE, p as quotaSkipThreshold, pt as isLoopbackProvider } from "./routing-BlD_tKjW.mjs";
|
|
5
|
+
import { d as resolveCap, t as admitCap } from "./capacity-CsZMkVyg.mjs";
|
|
6
6
|
import { chmodSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
7
7
|
|
|
8
8
|
//#region src/workers/providers.ts
|
|
@@ -387,4 +387,4 @@ function describeCapabilities(workers) {
|
|
|
387
387
|
|
|
388
388
|
//#endregion
|
|
389
389
|
export { unsetCapabilityPreference as _, describeCapabilities as a, useProvider as b, modelPrefsText as c, setCapabilityPreference as d, setClass as f, setWorkersEnabled as g, setProviderModel as h, describeCap as i, removeProvider as l, setProviderEnabled as m, capText as n, describeModels as o, setProviderCap as p, classTargetText as r, describeProviders as s, addProvider as t, resolveProviderName as u, unsetClass as v, updateProvider as y };
|
|
390
|
-
//# sourceMappingURL=providers-
|
|
390
|
+
//# sourceMappingURL=providers-Dzx5GAUI.mjs.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./status-COtzewKV.mjs";
|
|
5
|
+
import "./scope-D8HK6vU7.mjs";
|
|
6
|
+
import "./routing-BlD_tKjW.mjs";
|
|
7
|
+
import "./tool-errors-DXJ70-sr.mjs";
|
|
8
|
+
import "./wait-ChpHKJZV.mjs";
|
|
9
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
10
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
11
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
12
|
+
import "./local-instances-bdCNNSsL.mjs";
|
|
13
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
14
|
+
import { _ as unsetCapabilityPreference, a as describeCapabilities, b as useProvider, c as modelPrefsText, d as setCapabilityPreference, f as setClass, g as setWorkersEnabled, h as setProviderModel, i as describeCap, l as removeProvider, m as setProviderEnabled, n as capText, o as describeModels, p as setProviderCap, r as classTargetText, s as describeProviders, t as addProvider, u as resolveProviderName, v as unsetClass, y as updateProvider } from "./providers-Dzx5GAUI.mjs";
|
|
15
|
+
|
|
16
|
+
export { setProviderEnabled, useProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as workersLogDir } from "./paths-
|
|
3
|
-
import { w as worktreesDir } from "./worktree-
|
|
1
|
+
import { M as readWorkersSection } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
3
|
+
import { w as worktreesDir } from "./worktree-BY--Rgmy.mjs";
|
|
4
4
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
5
5
|
import { dirname, resolve, sep } from "node:path";
|
|
6
6
|
|
|
@@ -140,4 +140,4 @@ async function reportUnregistrable(backend, worktreesRoot = workerWorktreesRoot(
|
|
|
140
140
|
|
|
141
141
|
//#endregion
|
|
142
142
|
export { unregistrableReason as a, reportUnregistrable as i, mainRepoOf as n, workerWorktreesRoot as o, pruneWorktreeProjects as r, worktreeReason as s, isLinkedWorktree as t };
|
|
143
|
-
//# sourceMappingURL=registrable-
|
|
143
|
+
//# sourceMappingURL=registrable-CXBBpUcz.mjs.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./worktree-BY--Rgmy.mjs";
|
|
5
|
+
import "./status-COtzewKV.mjs";
|
|
6
|
+
import "./pool-BZ94nFuq.mjs";
|
|
7
|
+
import { a as unregistrableReason, i as reportUnregistrable, n as mainRepoOf, o as workerWorktreesRoot, r as pruneWorktreeProjects, s as worktreeReason, t as isLinkedWorktree } from "./registrable-CXBBpUcz.mjs";
|
|
8
|
+
|
|
9
|
+
export { reportUnregistrable };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./worktree-BY--Rgmy.mjs";
|
|
5
|
+
import "./status-COtzewKV.mjs";
|
|
6
|
+
import "./pool-BZ94nFuq.mjs";
|
|
7
|
+
import "./scope-D8HK6vU7.mjs";
|
|
8
|
+
import { D as fmtElapsed } from "./wait-ChpHKJZV.mjs";
|
|
9
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
10
|
+
import "./endreason-BqyyU7BH.mjs";
|
|
11
|
+
import { S as warmupText, _ as renderTable, a as fullLines, b as tickerTool, c as headerLine, d as paneRunStatusRow, f as paneStatusRow, g as renderStatusLine, h as renderEvent, i as dayOf, l as intentOf, m as relPath, n as clockOf, o as goalOf, p as providerTag, r as contextMeter, s as gutterFor, t as blankBetween, u as makeColor, v as shortModel, x as unifiedDiffLines, y as tickerText } from "./render-Cz3BWIBO.mjs";
|
|
12
|
+
|
|
13
|
+
export { makeColor };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as ownedTree } from "./worktree-
|
|
3
|
-
import { a as UNLABELED, c as contextFooter, f as elapsedOf, g as isLive, h as isChatPane, k as saveStatus, l as contextLabel, nt as shortText, o as ageOf, u as contextPercent, v as loadStatus, y as loadStatuses } from "./status-
|
|
4
|
-
import { p as currentWorkerId, u as sessionTag } from "./scope-
|
|
5
|
-
import { A as waitOnCallLine, E as detachedLine, M as waitingLine, d as parseWorkerReport, j as waitOnResultLine, k as realWaitDeps, n as bashExitCode, p as renderReport, t as WAIT_EXIT_STILL_RUNNING } from "./wait-
|
|
6
|
-
import { c as queuedText, f as sessionOf } from "./capacity-
|
|
7
|
-
import { a as endLabel } from "./endreason-
|
|
1
|
+
import { M as readWorkersSection, p as getProviderOrNative, t as ANTHROPIC_NATIVE, v as nativeAnthropicModels } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { _ as ownedTree } from "./worktree-BY--Rgmy.mjs";
|
|
3
|
+
import { a as UNLABELED, c as contextFooter, f as elapsedOf, g as isLive, h as isChatPane, k as saveStatus, l as contextLabel, nt as shortText, o as ageOf, u as contextPercent, v as loadStatus, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
4
|
+
import { p as currentWorkerId, u as sessionTag } from "./scope-D8HK6vU7.mjs";
|
|
5
|
+
import { A as waitOnCallLine, E as detachedLine, M as waitingLine, d as parseWorkerReport, j as waitOnResultLine, k as realWaitDeps, n as bashExitCode, p as renderReport, t as WAIT_EXIT_STILL_RUNNING } from "./wait-ChpHKJZV.mjs";
|
|
6
|
+
import { c as queuedText, f as sessionOf } from "./capacity-CsZMkVyg.mjs";
|
|
7
|
+
import { a as endLabel } from "./endreason-BqyyU7BH.mjs";
|
|
8
8
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, join, relative } from "node:path";
|
|
10
10
|
|
|
@@ -900,4 +900,4 @@ function paneRunStatusRow(label, startedMs, now = /* @__PURE__ */ new Date()) {
|
|
|
900
900
|
|
|
901
901
|
//#endregion
|
|
902
902
|
export { resolveLimit as A, denialLines as C, deadlineLabel as D, armDeadline as E, checkOrphanedChildren as F, isWorkerId as I, launchParent as L, blockedMsOf as M, endBuildWait as N, deadlinePromptLine as O, assertChildAllowed as P, parentFromEnv as R, warmupText as S, recordDenial as T, renderTable as _, fullLines as a, tickerTool as b, headerLine as c, paneRunStatusRow as d, paneStatusRow as f, renderStatusLine as g, renderEvent as h, dayOf as i, beginBuildWait as j, extendLimit as k, intentOf as l, relPath as m, clockOf as n, goalOf as o, providerTag as p, contextMeter as r, gutterFor as s, blankBetween as t, makeColor as u, shortModel as v, parseDenialText as w, unifiedDiffLines as x, tickerText as y };
|
|
903
|
-
//# sourceMappingURL=render-
|
|
903
|
+
//# sourceMappingURL=render-Cz3BWIBO.mjs.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./utils-J2b9y8PC.mjs";
|
|
2
|
+
import "./migrate-DrA_OwlZ.mjs";
|
|
3
|
+
import "./config-CST2uq1v.mjs";
|
|
4
|
+
import "./config-DYbyEe4-.mjs";
|
|
5
|
+
import "./paths-DS5VQKoR.mjs";
|
|
6
|
+
import "./worktree-BY--Rgmy.mjs";
|
|
7
|
+
import "./status-COtzewKV.mjs";
|
|
8
|
+
import "./pool-BZ94nFuq.mjs";
|
|
9
|
+
import "./registrable-CXBBpUcz.mjs";
|
|
10
|
+
import "./pai-marker-DLKJ9Yr5.mjs";
|
|
11
|
+
import "./helpers-CRuBUas3.mjs";
|
|
12
|
+
import "./scope-D8HK6vU7.mjs";
|
|
13
|
+
import "./routing-BlD_tKjW.mjs";
|
|
14
|
+
import "./tool-errors-DXJ70-sr.mjs";
|
|
15
|
+
import "./wait-ChpHKJZV.mjs";
|
|
16
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
17
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
18
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
19
|
+
import "./local-instances-bdCNNSsL.mjs";
|
|
20
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
21
|
+
import "./factory-BV0MQA3T.mjs";
|
|
22
|
+
import "./postgres-C-T5OWer.mjs";
|
|
23
|
+
import "./embedding-gate-CTAk8STe.mjs";
|
|
24
|
+
import "./embeddings-BVq3esBF.mjs";
|
|
25
|
+
import "./router-CQSc3lk3.mjs";
|
|
26
|
+
import "./detect-CHuxFrLy.mjs";
|
|
27
|
+
import "./helpers-CvbYEKoD.mjs";
|
|
28
|
+
import "./scan-C3uotg_f.mjs";
|
|
29
|
+
import "./session-BAfypQb9.mjs";
|
|
30
|
+
import "./launch-DpQPZGsT.mjs";
|
|
31
|
+
import "./health-kufVIf6i.mjs";
|
|
32
|
+
import "./launch-UPQBoW2q.mjs";
|
|
33
|
+
import { _ as setupsTable, a as lastSetup, b as truncate, c as localState, d as pickerOpts, f as plainTable, g as runRoot, h as runNewWith, i as lastOnLabel, l as matchRows, m as rootCommand, n as ago, o as launchKey, p as resolveSetup, r as finishCd, s as launchScreen, t as CANCELLED, u as pickerLayout, v as startSession, y as systemTerm } from "./root-bG48WVpW.mjs";
|
|
34
|
+
import "./session-scan-BmnjSReu.mjs";
|
|
35
|
+
|
|
36
|
+
export { runNewWith };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as workersLogDir } from "./paths-
|
|
3
|
-
import { d as terminalHasName } from "./scope-
|
|
4
|
-
import { An as
|
|
1
|
+
import { M as readWorkersSection, b as nativeOrchestratorModel, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
3
|
+
import { d as terminalHasName } from "./scope-D8HK6vU7.mjs";
|
|
4
|
+
import { An as httpModelsCheck, Cn as resolveLocalProvider, Dn as allSetups, Fn as setupWorkersLabel, Ln as shortModel, Mn as orchestratorLabel, On as downLocalProviders, Pn as setupProfile, Rn as workersLabel, dn as getProfile, jn as loadSaved, kn as findSetup, mn as updateProfile, o as cooldownRemaining, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV } from "./routing-BlD_tKjW.mjs";
|
|
5
5
|
import { n as OPT, t as CliError } from "./define-CjJsmq-6.mjs";
|
|
6
|
-
import { C as assertAvailable, D as execHarness, E as dryRunText, O as looksLikePath, T as buildHarness, k as prepareDir, r as collectView, w as modelFor } from "./session-
|
|
7
|
-
import { o as launchableProviderNames, t as LaunchError } from "./launch-
|
|
8
|
-
import { a as colorEnabled, f as renderTable, n as readBudget, o as makeStyle, p as suggest, t as providerHealth } from "./health-
|
|
9
|
-
import { i as probeResume } from "./launch-
|
|
6
|
+
import { C as assertAvailable, D as execHarness, E as dryRunText, O as looksLikePath, T as buildHarness, k as prepareDir, r as collectView, w as modelFor } from "./session-BAfypQb9.mjs";
|
|
7
|
+
import { o as launchableProviderNames, t as LaunchError } from "./launch-DpQPZGsT.mjs";
|
|
8
|
+
import { a as colorEnabled, f as renderTable, n as readBudget, o as makeStyle, p as suggest, t as providerHealth } from "./health-kufVIf6i.mjs";
|
|
9
|
+
import { i as probeResume } from "./launch-UPQBoW2q.mjs";
|
|
10
10
|
import { writeFileSync } from "node:fs";
|
|
11
11
|
import { basename } from "node:path";
|
|
12
12
|
import { emitKeypressEvents } from "node:readline";
|
|
@@ -683,7 +683,7 @@ async function runRoot(args, term = systemTerm()) {
|
|
|
683
683
|
with: args.with,
|
|
684
684
|
dryRun: args.dryRun
|
|
685
685
|
}, term);
|
|
686
|
-
return (await import("./session-
|
|
686
|
+
return (await import("./session-BcnhepLZ.mjs")).runNewDefault({
|
|
687
687
|
dir: args.name,
|
|
688
688
|
dryRun: args.dryRun
|
|
689
689
|
});
|
|
@@ -791,4 +791,4 @@ const rootCommand = {
|
|
|
791
791
|
|
|
792
792
|
//#endregion
|
|
793
793
|
export { setupsTable as _, lastSetup as a, truncate as b, localState as c, pickerOpts as d, plainTable as f, runRoot as g, runNewWith as h, lastOnLabel as i, matchRows as l, rootCommand as m, ago as n, launchKey as o, resolveSetup as p, finishCd as r, launchScreen as s, CANCELLED as t, pickerLayout as u, startSession as v, systemTerm as y };
|
|
794
|
-
//# sourceMappingURL=root-
|
|
794
|
+
//# sourceMappingURL=root-bG48WVpW.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./status-COtzewKV.mjs";
|
|
5
|
+
import "./scope-D8HK6vU7.mjs";
|
|
6
|
+
import { Bt as resolveSelector, Ft as clearSessionRoute, Gt as servingChip, Ht as routeChoices, It as configuredLocal, Jt as setRoute, Kt as sessionRoutesPatch, Lt as entryLabel, Nt as TIGHT_PERCENT, Pt as applyPolicyToRoutes, Rt as flowText, Ut as routeRows, Vt as resolveSessionArg, Wt as routeText, Xt as tierFlow, Yt as setSessionRoute, Zt as validateRoute, qt as sessionStartTarget, zt as parseSelector } from "./routing-BlD_tKjW.mjs";
|
|
7
|
+
import "./tool-errors-DXJ70-sr.mjs";
|
|
8
|
+
import "./wait-ChpHKJZV.mjs";
|
|
9
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
10
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
11
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
12
|
+
import "./local-instances-bdCNNSsL.mjs";
|
|
13
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
14
|
+
|
|
15
|
+
export { setRoute };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { g as paiHomePath, h as paiHomeDir } from "./runtime-paths-WsO9sJFc.mjs";
|
|
2
2
|
import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
|
|
3
|
-
import { A as providerQuotaSkipAt,
|
|
4
|
-
import { c as loadConfig, f as readMainConfigRaw } from "./config-
|
|
5
|
-
import { s as routingStatePath, u as workersLogDir } from "./paths-
|
|
6
|
-
import { g as isLive, v as loadStatus, y as loadStatuses } from "./status-
|
|
7
|
-
import { o as resolveSession, p as currentWorkerId, t as AIBROKER_REGISTRY } from "./scope-
|
|
8
|
-
import { x as recordToolError } from "./tool-errors-
|
|
9
|
-
import { _ as readLocalConfig, d as installedModelDirs, p as logPathFor } from "./local-tiers-
|
|
10
|
-
import { a as buildsDir, l as listBuildsSync, t as callerIdentity } from "./caller-identity-
|
|
3
|
+
import { A as providerQuotaSkipAt, B as isLoopbackUrl$1, F as resolveProviderKey, L as writeWorkersSection, M as readWorkersSection, N as resolveCapability, O as providerCostTier, P as resolveModelCapability, R as LOOPBACK_HOST, V as loopbackUrl$1, b as nativeOrchestratorModel, bt as stripModelVariant, c as WorkersConfigError, dt as findTier, ft as listForPolicy, gt as targetList, ht as sessionTier, lt as classRoute, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, pt as migrateSessionRoutes, rt as workersYamlPath, s as WORKER_CLASSES, st as MAX_ROUTE_MODELS, t as ANTHROPIC_NATIVE, u as classModelCapability, ut as entryProvider, y as nativeAnthropicProvider, z as isLoopbackHostname } from "./config-CST2uq1v.mjs";
|
|
4
|
+
import { c as loadConfig, f as readMainConfigRaw } from "./config-DYbyEe4-.mjs";
|
|
5
|
+
import { s as routingStatePath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
6
|
+
import { g as isLive, v as loadStatus, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
7
|
+
import { o as resolveSession, p as currentWorkerId, t as AIBROKER_REGISTRY } from "./scope-D8HK6vU7.mjs";
|
|
8
|
+
import { x as recordToolError } from "./tool-errors-DXJ70-sr.mjs";
|
|
9
|
+
import { _ as readLocalConfig, d as installedModelDirs, p as logPathFor } from "./local-tiers-BtdEEe5n.mjs";
|
|
10
|
+
import { a as buildsDir, l as listBuildsSync, t as callerIdentity } from "./caller-identity-Bim8JT-D.mjs";
|
|
11
11
|
import { a as newPrefill, c as schedEnabled, f as sharedScheduler } from "./scheduler-CtUyWJ3O.mjs";
|
|
12
|
-
import { i as effectiveCap } from "./capacity-
|
|
13
|
-
import { i as instanceNumber, l as readInstances, r as instanceEngineKey, s as pickInstance, t as endpointRegistry, u as readLiveInstances } from "./local-instances-
|
|
14
|
-
import { c as writeLocalStatus, n as tierProviderNames, r as LOCAL_STATUS_REFRESH_MS, s as readLocalStatus, t as isLocalCandidate } from "./local-candidate-
|
|
12
|
+
import { i as effectiveCap } from "./capacity-CsZMkVyg.mjs";
|
|
13
|
+
import { i as instanceNumber, l as readInstances, r as instanceEngineKey, s as pickInstance, t as endpointRegistry, u as readLiveInstances } from "./local-instances-bdCNNSsL.mjs";
|
|
14
|
+
import { c as writeLocalStatus, n as tierProviderNames, r as LOCAL_STATUS_REFRESH_MS, s as readLocalStatus, t as isLocalCandidate } from "./local-candidate-Cp_bw4kK.mjs";
|
|
15
15
|
import { n as TAILSCALE_STATUS_TIMEOUT_MS, t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
|
|
16
16
|
import { appendFileSync, chmodSync, closeSync, existsSync, fstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
17
17
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1664,7 +1664,7 @@ function currentSessionName(env = process.env) {
|
|
|
1664
1664
|
*/
|
|
1665
1665
|
async function registryProjectName(cwd) {
|
|
1666
1666
|
try {
|
|
1667
|
-
const { detectProject } = await import("./detect-
|
|
1667
|
+
const { detectProject } = await import("./detect-C0ZBXqDL.mjs");
|
|
1668
1668
|
return (await detectProject(cwd))?.display_name || void 0;
|
|
1669
1669
|
} catch {
|
|
1670
1670
|
return;
|
|
@@ -1690,7 +1690,7 @@ async function detectSessionName(env = process.env, deps = {}) {
|
|
|
1690
1690
|
let name;
|
|
1691
1691
|
const registry = deps.registryPath ?? AIBROKER_REGISTRY;
|
|
1692
1692
|
const claudeId = env.CLAUDE_CODE_SESSION_ID?.trim();
|
|
1693
|
-
const { loadBrokerNames, transcriptCustomTitle } = await import("./session-scan-
|
|
1693
|
+
const { loadBrokerNames, transcriptCustomTitle } = await import("./session-scan-CqUQdCac.mjs");
|
|
1694
1694
|
name = resolveSession(env.ITERM_SESSION_ID ?? "", registry)?.name ?? (claudeId ? loadBrokerNames(registry, deps.mapPath).get(claudeId) ?? transcriptCustomTitle(claudeId, deps.projectsDir) : void 0) ?? await (deps.projectName ?? registryProjectName)(cwd);
|
|
1695
1695
|
cached = {
|
|
1696
1696
|
key,
|
|
@@ -6025,5 +6025,5 @@ function resolveCapabilityRun(config, capability) {
|
|
|
6025
6025
|
}
|
|
6026
6026
|
|
|
6027
6027
|
//#endregion
|
|
6028
|
-
export { parseFootprint as $,
|
|
6029
|
-
//# sourceMappingURL=routing-
|
|
6028
|
+
export { parseFootprint as $, usageLogFile as $n, clearPolicy as $t, budgetSkipReason as A, httpModelsCheck as An, resolveBindAddress as At, MODEL_INVENTORY_MAX_AGE_MS as B, setParkConfigSource as Bn, resolveSelector as Bt, detectSessionProvider as C, resolveLocalProvider as Cn, removeRunSettings as Ct, budgetExceeded as D, allSetups as Dn, routerPort as Dt, budgetCache as E, PORT_TIMEOUT_MS as En, routerHandler as Et, LimitsCache as F, setupWorkersLabel as Fn, clearSessionRoute as Ft, fmtMem as G, appendUsage as Gn, servingChip as Gt, ProbeHold as H, recordDuration as Hn, routeChoices as Ht, buildSpeed as I, setupsPath as In, configuredLocal as It, inventoryRows as J, isTimeOrdered as Jn, setRoute as Jt, fmtMemMapped as K, formatSessionStats as Kn, sessionRoutesPatch as Kt, percentile as L, shortModel as Ln, entryLabel as Lt, budgetWall as M, orchestratorLabel as Mn, loopbackRefusal as Mt, fetchBudgetReading as N, saveSetup as Nn, TIGHT_PERCENT as Nt, budgetFresh as O, downLocalProviders as On, defaultV1Guard as Ot, pickBudgetWindow as P, setupProfile as Pn, applyPolicyToRoutes as Pt, modelLabel as Q, splitBySessionKind as Qn, POLICY_MODES as Qt, DOWN_AFTER_MISSES as R, workersLabel as Rn, flowText as Rt, applySessionProviderEnv as S, providerHostPort as Sn, gcSettingsFiles as St, BudgetCache as T, startLocalStatusRefresh as Tn, duplicateModelIds as Tt, computeInventory as U, aggregate as Un, routeRows as Ut, MODEL_INVENTORY_REFRESH_MS as V, sharedParker as Vn, resolveSessionArg as Vt, currentInventory as W, aggregateBySession as Wn, routeText as Wt, liveDeps as X, parseSince as Xn, tierFlow as Xt, inventoryText as Y, markTimeOrdered as Yn, setSessionRoute as Yt, modelKind as Z, readUsage as Zn, validateRoute as Zt, resolveTarget as _, currentLocalStatus as _n, nativeRoutePreflight as _t, clearCooldown as a, readPolicy as an, readInventoryInput as at, SESSION_PROVIDER_ENV as b, pickLocal as bn, routeLoopbackViaRouter as bt, exclusionReason as c, detectSessionName as cn, writeInventory as ct, probeQuota as d, getProfile as dn, claudeCommand as dt, committedFallThrough as en, parseSizeMb as et, quotaExceeded as f, profilesPath as fn, claudeSettingsExtra as ft, resolveCapabilityRun as g, NoLocalServerError as gn, nativeLaunchSettingsArgs as gt, recordBudgetCooldowns as h, LOCAL_MECHANISM_LINE as hn, nativeLaunchEnv as ht, capabilityForRun as i, parseDuration as in, readInventory as it, budgetUntilLabel as j, loadSaved as jn, isTailnetOrLocalName as jt, budgetFull as k, findSetup as kn, displayHost as kt, isQuotaFailure as l, BATCH_ENV as ln, addSchedulingHeaders as lt, readRoutingState as m, updateProfile as mn, loopbackRouterChoice as mt, NoProviderError as n, findLocal as nn, processTreeMemory as nt, cooldownRemaining as o, routeRun as on, readModelLabels as ot, quotaSkipThreshold as p, readProfiles as pn, isLoopbackProvider as pt, inventoryPath as q, formatStats as qn, sessionStartTarget as qt, autoOrder as r, onBattery as rn, processTreeRssMb as rt, entryModel as s, writePolicy as sn, startInventoryRefresh as st, BUDGET_COOLDOWN_MIN as t, fallThroughReason as tn, parseTable as tt, nextAutoProvider as u, SESSION_NAME_ENV as un, buildRunEnv as ut, setCooldown as v, localProviderForDelegation as vn, pinnedSettings as vt, BUDGET_TTL_MS as w, resolveRunnerProvider as wn, writePrivateFile as wt, SESSION_WORKER_PROVIDER_ENV as x, probeLoopback as xn, routeVerdictLine as xt, writeRoutingState as y, localTierOrder as yn, pinnedSettingsArgs as yt, INVENTORY_HEADERS as z, parkConfigFrom as zn, parseSelector as zt };
|
|
6029
|
+
//# sourceMappingURL=routing-BlD_tKjW.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./paths-
|
|
4
|
-
import "./status-
|
|
5
|
-
import "./scope-
|
|
6
|
-
import { _ as resolveTarget, a as clearCooldown, c as exclusionReason, d as probeQuota, f as quotaExceeded, g as resolveCapabilityRun, h as recordBudgetCooldowns, i as capabilityForRun, l as isQuotaFailure, m as readRoutingState, n as NoProviderError, o as cooldownRemaining, p as quotaSkipThreshold, r as autoOrder, s as entryModel, t as BUDGET_COOLDOWN_MIN, u as nextAutoProvider, v as setCooldown, y as writeRoutingState } from "./routing-
|
|
7
|
-
import "./tool-errors-
|
|
8
|
-
import "./wait-
|
|
9
|
-
import "./local-tiers-
|
|
10
|
-
import "./caller-identity-
|
|
11
|
-
import "./capacity-
|
|
12
|
-
import "./local-instances-
|
|
13
|
-
import "./local-candidate-
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./status-COtzewKV.mjs";
|
|
5
|
+
import "./scope-D8HK6vU7.mjs";
|
|
6
|
+
import { _ as resolveTarget, a as clearCooldown, c as exclusionReason, d as probeQuota, f as quotaExceeded, g as resolveCapabilityRun, h as recordBudgetCooldowns, i as capabilityForRun, l as isQuotaFailure, m as readRoutingState, n as NoProviderError, o as cooldownRemaining, p as quotaSkipThreshold, r as autoOrder, s as entryModel, t as BUDGET_COOLDOWN_MIN, u as nextAutoProvider, v as setCooldown, y as writeRoutingState } from "./routing-BlD_tKjW.mjs";
|
|
7
|
+
import "./tool-errors-DXJ70-sr.mjs";
|
|
8
|
+
import "./wait-ChpHKJZV.mjs";
|
|
9
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
10
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
11
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
12
|
+
import "./local-instances-bdCNNSsL.mjs";
|
|
13
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
14
14
|
|
|
15
15
|
export { BUDGET_COOLDOWN_MIN, NoProviderError, autoOrder, capabilityForRun, clearCooldown, cooldownRemaining, entryModel, exclusionReason, isQuotaFailure, nextAutoProvider, probeQuota, quotaExceeded, quotaSkipThreshold, readRoutingState, recordBudgetCooldowns, resolveCapabilityRun, resolveTarget, setCooldown, writeRoutingState };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { g as paiHomePath, l as claudeHomeDir } from "./runtime-paths-WsO9sJFc.mjs";
|
|
2
|
-
import { Ct as
|
|
3
|
-
import { _ as effectiveWorkersYamlRaw } from "./config-
|
|
4
|
-
import { i as ledgerPath, n as ensureNoMcpConfig, r as eventsPath, u as workersLogDir } from "./paths-
|
|
5
|
-
import { A as applyScratchEnv, C as worktreeWanted, S as worktreeSystemPrompt, _ as ownedTree, a as archiveEmptyResult, f as gcWorktreesThrottled, h as markResumed, i as adoptTree, j as scratchPromptLine, o as commitLines, p as inPlaceSystemPrompt, r as addWorktree, t as GATE_MARK, v as recordWorktree, w as worktreesDir, x as worktreeRefusesStart, y as salvageOnExit } from "./worktree-
|
|
6
|
-
import { C as nowStamp, D as pidAlive, E as parseSleepSecs, J as loadPreamble, Q as appendSystemPromptArgs, S as newWorkerId, X as preambleLine, Y as preambleBlock, Z as projectRoot, a as UNLABELED, d as describeTool, g as isLive, k as saveStatus, nt as shortText, rt as stripPromptValues, tt as parseRunnerArgs, v as loadStatus, x as markStartFailed, y as loadStatuses } from "./status-
|
|
7
|
-
import { D as readMcpServers, E as mcpServersFromToolGrants, O as writeMcpConfig, S as inputSideTokens, T as grantsChrome, d as poolIneligibleReason, g as postTaskToPool, h as poolSettings, n as SLOT_TOOLS, r as UNIT_MARKER, t as SHARED_MARKER, w as expandMcpNames, y as reloadInProgress } from "./pool-
|
|
8
|
-
import { i as itermUuid, o as resolveSession, s as resolveSpawnerSession } from "./scope-
|
|
9
|
-
import {
|
|
2
|
+
import { Ct as planEscalation, Et as appendLedger, F as resolveProviderKey, M as readWorkersSection, P as resolveModelCapability, R as LOOPBACK_HOST, St as ledgerEscalate, Tt as withSummary, c as WorkersConfigError, ct as applyRouteOverrides, f as escalationCloud, h as isModelCapability, j as readWorkersCached, k as providerKeyPath, l as assertProviderRunnable, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, rt as workersYamlPath, t as ANTHROPIC_NATIVE, u as classModelCapability, v as nativeAnthropicModels, vt as certainContextWindow, wt as sessionNote } from "./config-CST2uq1v.mjs";
|
|
3
|
+
import { _ as effectiveWorkersYamlRaw } from "./config-DYbyEe4-.mjs";
|
|
4
|
+
import { i as ledgerPath, n as ensureNoMcpConfig, r as eventsPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
5
|
+
import { A as applyScratchEnv, C as worktreeWanted, S as worktreeSystemPrompt, _ as ownedTree, a as archiveEmptyResult, f as gcWorktreesThrottled, h as markResumed, i as adoptTree, j as scratchPromptLine, o as commitLines, p as inPlaceSystemPrompt, r as addWorktree, t as GATE_MARK, v as recordWorktree, w as worktreesDir, x as worktreeRefusesStart, y as salvageOnExit } from "./worktree-BY--Rgmy.mjs";
|
|
6
|
+
import { C as nowStamp, D as pidAlive, E as parseSleepSecs, J as loadPreamble, Q as appendSystemPromptArgs, S as newWorkerId, X as preambleLine, Y as preambleBlock, Z as projectRoot, a as UNLABELED, d as describeTool, g as isLive, k as saveStatus, nt as shortText, rt as stripPromptValues, tt as parseRunnerArgs, v as loadStatus, x as markStartFailed, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
7
|
+
import { D as readMcpServers, E as mcpServersFromToolGrants, O as writeMcpConfig, S as inputSideTokens, T as grantsChrome, d as poolIneligibleReason, g as postTaskToPool, h as poolSettings, n as SLOT_TOOLS, r as UNIT_MARKER, t as SHARED_MARKER, w as expandMcpNames, y as reloadInProgress } from "./pool-BZ94nFuq.mjs";
|
|
8
|
+
import { i as itermUuid, o as resolveSession, s as resolveSpawnerSession } from "./scope-D8HK6vU7.mjs";
|
|
9
|
+
import { An as httpModelsCheck, Cn as resolveLocalProvider, Ct as removeRunSettings, Dt as routerPort, E as budgetCache, En as PORT_TIMEOUT_MS, S as applySessionProviderEnv, Sn as providerHostPort, _ as resolveTarget, bt as routeLoopbackViaRouter, cn as detectSessionName, dn as getProfile, dt as claudeCommand, en as committedFallThrough, ft as claudeSettingsExtra, g as resolveCapabilityRun, gn as NoLocalServerError, h as recordBudgetCooldowns, hn as LOCAL_MECHANISM_LINE, i as capabilityForRun, k as budgetFull, l as isQuotaFailure, ln as BATCH_ENV, lt as addSchedulingHeaders, n as NoProviderError, o as cooldownRemaining, on as routeRun, pt as isLoopbackProvider, r as autoOrder, tn as fallThroughReason, u as nextAutoProvider, ut as buildRunEnv, v as setCooldown, vt as pinnedSettings, wn as resolveRunnerProvider, wt as writePrivateFile, x as SESSION_WORKER_PROVIDER_ENV, xn as probeLoopback } from "./routing-BlD_tKjW.mjs";
|
|
10
10
|
import { t as maxOf } from "./min-max-DrSRUaWQ.mjs";
|
|
11
|
-
import { b as readToolErrors, h as harnessToolErrorTexts, p as grantedToolNames, x as recordToolError } from "./tool-errors-
|
|
12
|
-
import { _ as workerContractPrompt, b as killProcessTree, c as checkProof, d as parseWorkerReport, f as promptTrailer, g as verifyReportChanges, h as verifyFailNote, l as newUntracked, m as untrackedPaths, o as AG2_REASK_TEXT, s as OPERATOR_MARK, u as noteTokenSentence, v as repairAndValidateAg2, x as processTree, y as validateAg2 } from "./wait-
|
|
13
|
-
import { a as buildsDir, d as releaseBuildsOf } from "./caller-identity-
|
|
14
|
-
import { c as queuedText, d as resolveCap, h as staggerGate, m as recordWarmup, n as capacityGate, p as sessionScopeKey, t as admitCap } from "./capacity-
|
|
15
|
-
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-
|
|
11
|
+
import { b as readToolErrors, h as harnessToolErrorTexts, p as grantedToolNames, x as recordToolError } from "./tool-errors-DXJ70-sr.mjs";
|
|
12
|
+
import { _ as workerContractPrompt, b as killProcessTree, c as checkProof, d as parseWorkerReport, f as promptTrailer, g as verifyReportChanges, h as verifyFailNote, l as newUntracked, m as untrackedPaths, o as AG2_REASK_TEXT, s as OPERATOR_MARK, u as noteTokenSentence, v as repairAndValidateAg2, x as processTree, y as validateAg2 } from "./wait-ChpHKJZV.mjs";
|
|
13
|
+
import { a as buildsDir, d as releaseBuildsOf } from "./caller-identity-Bim8JT-D.mjs";
|
|
14
|
+
import { c as queuedText, d as resolveCap, h as staggerGate, m as recordWarmup, n as capacityGate, p as sessionScopeKey, r as capacityOf, t as admitCap } from "./capacity-CsZMkVyg.mjs";
|
|
15
|
+
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-Cp_bw4kK.mjs";
|
|
16
16
|
import { t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
|
|
17
|
-
import { i as getRegistryBackend } from "./factory-
|
|
18
|
-
import { c as ensureProxyRunning, i as detectCurrentModel, l as proxyPort } from "./launch-
|
|
19
|
-
import { A as tail, Et as openOwnedPane, Kt as isHandoffMessage, Q as NoTerminalError, Wt as deliverHandoff, Xt as localFailures, _ as troublePolicy, _t as paneTitle, at as headlessAllowed, d as aibrokerMessenger, f as detachRun, h as originFromEnv, ht as resolveHostSession, it as followCommand, m as markRunDone, mt as realPaneOps, nt as closePaneForWorker, o as ownerOf, p as eventLine, r as returnControlsIfHeld, ut as openVerifiedPane, v as appendRunLog, z as gatePhaseName } from "./controls-
|
|
20
|
-
import { i as endFields, o as parentInfo, r as decideEndReason, t as appendStopEvent } from "./endreason-
|
|
21
|
-
import { A as resolveLimit, E as armDeadline, F as checkOrphanedChildren, I as isWorkerId, L as launchParent, M as blockedMsOf, O as deadlinePromptLine, P as assertChildAllowed, T as recordDenial, k as extendLimit, w as parseDenialText } from "./render-
|
|
22
|
-
import { t as createOperatorServer } from "./operator-
|
|
23
|
-
import { i as killTree } from "./kill-tree-
|
|
24
|
-
import { r as ensurePoolHost } from "./pool-cli-
|
|
17
|
+
import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
|
|
18
|
+
import { c as ensureProxyRunning, i as detectCurrentModel, l as proxyPort } from "./launch-DpQPZGsT.mjs";
|
|
19
|
+
import { A as tail, Et as openOwnedPane, Kt as isHandoffMessage, Q as NoTerminalError, Wt as deliverHandoff, Xt as localFailures, _ as troublePolicy, _t as paneTitle, at as headlessAllowed, d as aibrokerMessenger, f as detachRun, h as originFromEnv, ht as resolveHostSession, it as followCommand, m as markRunDone, mt as realPaneOps, nt as closePaneForWorker, o as ownerOf, p as eventLine, r as returnControlsIfHeld, ut as openVerifiedPane, v as appendRunLog, z as gatePhaseName } from "./controls-OiVVbe-f.mjs";
|
|
20
|
+
import { i as endFields, o as parentInfo, r as decideEndReason, t as appendStopEvent } from "./endreason-BqyyU7BH.mjs";
|
|
21
|
+
import { A as resolveLimit, E as armDeadline, F as checkOrphanedChildren, I as isWorkerId, L as launchParent, M as blockedMsOf, O as deadlinePromptLine, P as assertChildAllowed, T as recordDenial, k as extendLimit, w as parseDenialText } from "./render-Cz3BWIBO.mjs";
|
|
22
|
+
import { t as createOperatorServer } from "./operator-DrwWItVt.mjs";
|
|
23
|
+
import { i as killTree } from "./kill-tree-CcpsRLCZ.mjs";
|
|
24
|
+
import { r as ensurePoolHost } from "./pool-cli-B1eKySeN.mjs";
|
|
25
25
|
import { closeSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, realpathSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
|
|
26
26
|
import { createHash, randomBytes } from "node:crypto";
|
|
27
27
|
import { dirname, join, resolve, sep } from "node:path";
|
|
@@ -3426,10 +3426,10 @@ function resolveWorkers(args, ctx) {
|
|
|
3426
3426
|
/** The live context: config, this session's profile, fresh budget readings (warmed best effort) and recorded cooldowns. */
|
|
3427
3427
|
async function liveResolveCtx(env = process.env, warm = true) {
|
|
3428
3428
|
const [{ readWorkersSection }, { budgetCache }, { readRoutingState }, { workersLogDir }] = await Promise.all([
|
|
3429
|
-
import("./config-
|
|
3430
|
-
import("./budget-
|
|
3431
|
-
import("./routing-
|
|
3432
|
-
import("./paths-
|
|
3429
|
+
import("./config-h5qK3fst.mjs"),
|
|
3430
|
+
import("./budget-DX-VIWGf.mjs"),
|
|
3431
|
+
import("./routing-D27jxj9x.mjs"),
|
|
3432
|
+
import("./paths-DBd78I7Z.mjs")
|
|
3433
3433
|
]);
|
|
3434
3434
|
const { workers } = readWorkersSection();
|
|
3435
3435
|
const profile = getProfile(await detectSessionName(env));
|
|
@@ -3744,6 +3744,14 @@ async function runGates(a, wid, status) {
|
|
|
3744
3744
|
provider: target.providerName
|
|
3745
3745
|
},
|
|
3746
3746
|
cap: admitCap(target.provider.maxConcurrent, target.provider.conversationSlots, isLocalProvider(target.provider.baseUrl)),
|
|
3747
|
+
capOf: () => {
|
|
3748
|
+
try {
|
|
3749
|
+
const p = readWorkersCached().providers[target.providerName] ?? target.provider;
|
|
3750
|
+
return admitCap(p.maxConcurrent, p.conversationSlots, isLocalProvider(p.baseUrl), capacityOf(config.capacity));
|
|
3751
|
+
} catch {
|
|
3752
|
+
return;
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3747
3755
|
config: config.capacity,
|
|
3748
3756
|
disabled: a.noQueue,
|
|
3749
3757
|
priority: a.priority,
|
|
@@ -4896,7 +4904,7 @@ async function runWorker(opts) {
|
|
|
4896
4904
|
if (gc?.length) process.stderr.write(`pai worker: archived ${gc.length} leftover worktree(s) (pai worker gc)\n`);
|
|
4897
4905
|
} catch {}
|
|
4898
4906
|
if (opts.className === "plan" && !opts._planner) {
|
|
4899
|
-
const { runPlanner } = await import("./planner-
|
|
4907
|
+
const { runPlanner } = await import("./planner-K0mFrCpL.mjs");
|
|
4900
4908
|
return runPlanner(opts);
|
|
4901
4909
|
}
|
|
4902
4910
|
const parent = launchParent(opts.parent);
|
|
@@ -5120,4 +5128,4 @@ setRunWorker(runWorker);
|
|
|
5120
5128
|
|
|
5121
5129
|
//#endregion
|
|
5122
5130
|
export { routerPidFile as A, usageContextTokens as B, workerUsage as C, routerHandoverFile as D, probeRouter as E, startHandover as F, testProvider as H, paneWaiver as I, launchPane as L, routerSwapArgs as M, runRouterTick as N, routerIsStale as O, spawnRouter as P, noTerminalReasons as R, usageJson as S, projectLaunchConfig as T, endProcesses as U, printResult as V, findWorktreeOrphans as W, stopLaunchedWorkers as _, resolveWorkers as a, renderUsage as b, reportOriginWithHost as c, capture as d, dirtyPaths as f, realRunnerDeps as g, realCommitsAhead as h, liveResolveCtx as i, routerRunningPid as j, routerLogFile as k, runMessenger as l, mergeBranch as m, LocalProviderRefusedError as n, sessionWorkersLine as o, launchWorker as p, PoolRefusedError as r, finishDetached as s, runWorker as t, startDetached as u, parseWhen as v, pinNotices as w, transcriptUsage as x, priceTableText as y, recordSystemJobStart as z };
|
|
5123
|
-
//# sourceMappingURL=run-
|
|
5131
|
+
//# sourceMappingURL=run-AZVwceiU.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as warn, c as ok, i as err, n as dim, r as encodeDir, s as now, t as bold } from "./utils-J2b9y8PC.mjs";
|
|
2
2
|
import { _ as resolvePaiFile, d as defaultPaiHomeDir, g as paiHomePath, m as migratePaiFile, u as claudeProjectsDir$1 } from "./runtime-paths-WsO9sJFc.mjs";
|
|
3
3
|
import { a as slugify, i as parseSessionFilename, n as decodeEncodedDir, t as buildEncodedDirMap } from "./migrate-DrA_OwlZ.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { a as unregistrableReason, o as workerWorktreesRoot, r as pruneWorktreeProjects } from "./registrable-
|
|
6
|
-
import { n as ensurePaiMarker, t as discoverPaiMarkers } from "./pai-marker-
|
|
7
|
-
import { i as getRegistryBackend } from "./factory-
|
|
4
|
+
import { O as readJsonStrict, k as writeJsonAtomic, o as expandHome } from "./config-DYbyEe4-.mjs";
|
|
5
|
+
import { a as unregistrableReason, o as workerWorktreesRoot, r as pruneWorktreeProjects } from "./registrable-CXBBpUcz.mjs";
|
|
6
|
+
import { n as ensurePaiMarker, t as discoverPaiMarkers } from "./pai-marker-DLKJ9Yr5.mjs";
|
|
7
|
+
import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, join, resolve } from "node:path";
|
|
10
10
|
import { homedir } from "node:os";
|
|
@@ -718,4 +718,4 @@ async function cmdScan(opts = {}) {
|
|
|
718
718
|
|
|
719
719
|
//#endregion
|
|
720
720
|
export { resolveHome as a, upsertSession as c, scanTranscriptFolders as d, transcriptFiles as f, performScan as i, claudeProjectsDir as l, loadScanConfig as n, saveScanConfig as o, migrateScanConfig as r, upsertProject as s, cmdScan as t, findMovedProjects as u };
|
|
721
|
-
//# sourceMappingURL=scan-
|
|
721
|
+
//# sourceMappingURL=scan-C3uotg_f.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as slotCurrentPath, u as workersLogDir } from "./paths-
|
|
3
|
-
import { _ as isTerminal, v as loadStatus } from "./status-
|
|
1
|
+
import { M as readWorkersSection } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { c as slotCurrentPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
3
|
+
import { _ as isTerminal, v as loadStatus } from "./status-COtzewKV.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { homedir } from "node:os";
|
|
@@ -221,4 +221,4 @@ function terminalHasName(name, term, registryPath = AIBROKER_REGISTRY) {
|
|
|
221
221
|
|
|
222
222
|
//#endregion
|
|
223
223
|
export { ownerSessionName as a, scopeKey as c, terminalHasName as d, workerInScope as f, itermUuid as i, sessionMapPath as l, currentTabKey as n, resolveSession as o, currentWorkerId as p, itermForClaudeSession as r, resolveSpawnerSession as s, AIBROKER_REGISTRY as t, sessionTag as u };
|
|
224
|
-
//# sourceMappingURL=scope-
|
|
224
|
+
//# sourceMappingURL=scope-D8HK6vU7.mjs.map
|