@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,22 +1,22 @@
|
|
|
1
1
|
import { _ as warn, a as fmtDate, c as ok, d as scaffoldProjectDirs, f as shortenPath, i as err, l as renderTable, n as dim, o as header, p as slugFromPath, r as encodeDir, s as now, t as bold, u as resolvePath } from "./utils-J2b9y8PC.mjs";
|
|
2
2
|
import { u as claudeProjectsDir } from "./runtime-paths-WsO9sJFc.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { i as ledgerPath, u as workersLogDir } from "./paths-
|
|
5
|
-
import { M as trustProjectPath } from "./pool-
|
|
6
|
-
import { a as unregistrableReason } from "./registrable-
|
|
7
|
-
import { n as ensurePaiMarker } from "./pai-marker-
|
|
3
|
+
import { Et as appendLedger, M as readWorkersSection, b as nativeOrchestratorModel, bt as stripModelVariant, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
|
|
4
|
+
import { i as ledgerPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
5
|
+
import { M as trustProjectPath } from "./pool-BZ94nFuq.mjs";
|
|
6
|
+
import { a as unregistrableReason } from "./registrable-CXBBpUcz.mjs";
|
|
7
|
+
import { n as ensurePaiMarker } from "./pai-marker-DLKJ9Yr5.mjs";
|
|
8
8
|
import { t as STOP_WORDS } from "./stop-words-DSEYQdNe.mjs";
|
|
9
|
-
import { dn as
|
|
9
|
+
import { dn as getProfile, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV, xt as routeVerdictLine } from "./routing-BlD_tKjW.mjs";
|
|
10
10
|
import { n as OPT, t as CliError } from "./define-CjJsmq-6.mjs";
|
|
11
|
-
import { i as getRegistryBackend } from "./factory-
|
|
12
|
-
import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-
|
|
13
|
-
import { a as getSessionCount, c as upsertTag$1, i as getProjectTags, n as getProject$1, o as requireProject, r as getProjectAliases, s as resolveIdentifier, t as getLastSessionDate } from "./helpers-
|
|
14
|
-
import { a as resolveHome, n as loadScanConfig } from "./scan-
|
|
15
|
-
import { n as buildLaunchPlan, o as launchableProviderNames, s as maskLaunchEnv, t as LaunchError } from "./launch-
|
|
16
|
-
import { a as colorEnabled, f as renderTable$1, i as saveBudgetSnapshot, n as readBudget, o as makeStyle, r as readBudgetSnapshot, t as providerHealth } from "./health-
|
|
17
|
-
import { d as printExitDir, i as probeResume, u as transcriptModelFor } from "./launch-
|
|
11
|
+
import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
|
|
12
|
+
import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-CHuxFrLy.mjs";
|
|
13
|
+
import { a as getSessionCount, c as upsertTag$1, i as getProjectTags, n as getProject$1, o as requireProject, r as getProjectAliases, s as resolveIdentifier, t as getLastSessionDate } from "./helpers-CvbYEKoD.mjs";
|
|
14
|
+
import { a as resolveHome, n as loadScanConfig } from "./scan-C3uotg_f.mjs";
|
|
15
|
+
import { n as buildLaunchPlan, o as launchableProviderNames, s as maskLaunchEnv, t as LaunchError } from "./launch-DpQPZGsT.mjs";
|
|
16
|
+
import { a as colorEnabled, f as renderTable$1, i as saveBudgetSnapshot, n as readBudget, o as makeStyle, r as readBudgetSnapshot, t as providerHealth } from "./health-kufVIf6i.mjs";
|
|
17
|
+
import { d as printExitDir, i as probeResume, u as transcriptModelFor } from "./launch-UPQBoW2q.mjs";
|
|
18
18
|
import { n as fetchLiveSessions } from "./aibroker-client-CQPGqLxL.mjs";
|
|
19
|
-
import { a as resolveSessionByNameOrId, s as scanSessions, t as fmtAge } from "./session-scan-
|
|
19
|
+
import { a as resolveSessionByNameOrId, s as scanSessions, t as fmtAge } from "./session-scan-BmnjSReu.mjs";
|
|
20
20
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { basename, dirname, join, resolve } from "node:path";
|
|
22
22
|
import chalk from "chalk";
|
|
@@ -1066,7 +1066,7 @@ async function getSessionTags(registryBackend, sessionId) {
|
|
|
1066
1066
|
* Session CRUD commands: list, info, rename, slug, tag, route, active, auto-route.
|
|
1067
1067
|
*/
|
|
1068
1068
|
async function cmdList(projectSlug, opts) {
|
|
1069
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1069
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1070
1070
|
const registryBackend = await getRegistryBackend();
|
|
1071
1071
|
const limit = parseInt(opts.limit ?? "20", 10);
|
|
1072
1072
|
let project;
|
|
@@ -1131,7 +1131,7 @@ async function cmdList(projectSlug, opts) {
|
|
|
1131
1131
|
console.log(dim(` ${rows.length} session(s) shown (limit: ${limit})`));
|
|
1132
1132
|
}
|
|
1133
1133
|
async function cmdInfo(projectSlug, sessionNumber) {
|
|
1134
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1134
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1135
1135
|
const registryBackend = await getRegistryBackend();
|
|
1136
1136
|
const project = await getProject(registryBackend, projectSlug);
|
|
1137
1137
|
if (!project) {
|
|
@@ -1155,7 +1155,7 @@ async function cmdInfo(projectSlug, sessionNumber) {
|
|
|
1155
1155
|
console.log();
|
|
1156
1156
|
}
|
|
1157
1157
|
async function cmdRename(projectSlug, numberOrLatest, newSlug) {
|
|
1158
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1158
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1159
1159
|
await cmdRenameWith(await getRegistryBackend(), projectSlug, numberOrLatest, newSlug);
|
|
1160
1160
|
}
|
|
1161
1161
|
/** Strips path separators and ".." so a title can never leave the notes dir. */
|
|
@@ -1242,7 +1242,7 @@ async function cmdRenameWith(registryBackend, projectSlug, numberOrLatest, newSl
|
|
|
1242
1242
|
console.log();
|
|
1243
1243
|
}
|
|
1244
1244
|
async function cmdSlug(projectSlug, numberOrLatest, opts) {
|
|
1245
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1245
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1246
1246
|
const registryBackend = await getRegistryBackend();
|
|
1247
1247
|
const project = await getProject(registryBackend, projectSlug);
|
|
1248
1248
|
if (!project) {
|
|
@@ -1272,7 +1272,7 @@ async function cmdSlug(projectSlug, numberOrLatest, opts) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
async function cmdTag(projectSlug, sessionNumber, rawTags) {
|
|
1275
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1275
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1276
1276
|
const registryBackend = await getRegistryBackend();
|
|
1277
1277
|
const project = await getProject(registryBackend, projectSlug);
|
|
1278
1278
|
if (!project) {
|
|
@@ -1312,7 +1312,7 @@ async function cmdTag(projectSlug, sessionNumber, rawTags) {
|
|
|
1312
1312
|
console.log();
|
|
1313
1313
|
}
|
|
1314
1314
|
async function cmdRoute(projectSlug, sessionNumber, targetProjectSlug, opts) {
|
|
1315
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1315
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1316
1316
|
const registryBackend = await getRegistryBackend();
|
|
1317
1317
|
const project = await getProject(registryBackend, projectSlug);
|
|
1318
1318
|
if (!project) {
|
|
@@ -1354,7 +1354,7 @@ async function cmdRoute(projectSlug, sessionNumber, targetProjectSlug, opts) {
|
|
|
1354
1354
|
console.log();
|
|
1355
1355
|
}
|
|
1356
1356
|
async function cmdActive(opts) {
|
|
1357
|
-
const { getRegistryBackend } = await import("./factory-
|
|
1357
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1358
1358
|
const registryBackend = await getRegistryBackend();
|
|
1359
1359
|
const minutes = parseInt(opts.minutes ?? "60", 10);
|
|
1360
1360
|
const cutoff = Date.now() - minutes * 60 * 1e3;
|
|
@@ -1441,9 +1441,9 @@ async function cmdActive(opts) {
|
|
|
1441
1441
|
], rows));
|
|
1442
1442
|
}
|
|
1443
1443
|
async function cmdAutoRoute(opts) {
|
|
1444
|
-
const { autoRoute, formatAutoRouteJson } = await import("./auto-route-
|
|
1445
|
-
const { getRegistryBackend, createStorageBackend } = await import("./factory-
|
|
1446
|
-
const { loadConfig } = await import("./config-
|
|
1444
|
+
const { autoRoute, formatAutoRouteJson } = await import("./auto-route-DWYK_0i0.mjs");
|
|
1445
|
+
const { getRegistryBackend, createStorageBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
1446
|
+
const { loadConfig } = await import("./config-Dv3t7xnT.mjs");
|
|
1447
1447
|
const config = loadConfig();
|
|
1448
1448
|
const registryBackend = await getRegistryBackend();
|
|
1449
1449
|
const federation = await createStorageBackend(config);
|
|
@@ -1854,7 +1854,7 @@ const newCommand = {
|
|
|
1854
1854
|
const name = ctx.opts.name;
|
|
1855
1855
|
const withSetup = ctx.opts.with;
|
|
1856
1856
|
if (withSetup) {
|
|
1857
|
-
const { runNewWith } = await import("./root-
|
|
1857
|
+
const { runNewWith } = await import("./root-Bfb1zgwE.mjs");
|
|
1858
1858
|
return runNewWith({
|
|
1859
1859
|
dir,
|
|
1860
1860
|
with: withSetup,
|
|
@@ -1960,4 +1960,4 @@ const renameTop = {
|
|
|
1960
1960
|
|
|
1961
1961
|
//#endregion
|
|
1962
1962
|
export { cmdAdd as A, cmdRebind as B, assertAvailable as C, execHarness as D, dryRunText as E, cmdEdit as F, cmdUnarchive as H, cmdGo as I, cmdInfo$1 as L, cmdArchive as M, cmdConsolidate as N, looksLikePath as O, cmdDetect as P, cmdList$1 as R, legacy as S, buildHarness as T, findMovedPath as U, cmdTag$1 as V, cmdList as _, newTop as a, cmdSlug as b, planOpen as c, runNewDefault as d, sessionCommand as f, cmdInfo as g, cmdAutoRoute as h, lsCommand as i, cmdAlias as j, prepareDir as k, renameTop as l, cmdActive as m, collectRows as n, oneLine as o, sessionDir as p, collectView as r, openTop as s, applyProfileChat as t, rowsTable as u, cmdRename as v, modelFor as w, cmdTag as x, cmdRoute as y, cmdMove as z };
|
|
1963
|
-
//# sourceMappingURL=session-
|
|
1963
|
+
//# sourceMappingURL=session-BAfypQb9.mjs.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { a as newTop, c as planOpen, d as runNewDefault, f as sessionCommand, i as lsCommand, l as renameTop, n as collectRows, o as oneLine, p as sessionDir, r as collectView, s as openTop, t as applyProfileChat, u as rowsTable } from "./session-BAfypQb9.mjs";
|
|
30
|
+
import "./launch-DpQPZGsT.mjs";
|
|
31
|
+
import "./health-kufVIf6i.mjs";
|
|
32
|
+
import "./launch-UPQBoW2q.mjs";
|
|
33
|
+
import "./session-scan-BmnjSReu.mjs";
|
|
34
|
+
|
|
35
|
+
export { runNewDefault };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h as smartDecodeDir } from "./utils-J2b9y8PC.mjs";
|
|
2
2
|
import { _ as resolvePaiFile, f as legacyConfigDir, g as paiHomePath, l as claudeHomeDir, m as migratePaiFile, u as claudeProjectsDir } from "./runtime-paths-WsO9sJFc.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { u as workersLogDir } from "./paths-
|
|
3
|
+
import { M as readWorkersSection } from "./config-CST2uq1v.mjs";
|
|
4
|
+
import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
5
5
|
import { t as fmtAge$1 } from "./fmt-age-ByDkvkoU.mjs";
|
|
6
|
-
import { i as itermUuid, l as sessionMapPath, t as AIBROKER_REGISTRY } from "./scope-
|
|
6
|
+
import { i as itermUuid, l as sessionMapPath, t as AIBROKER_REGISTRY } from "./scope-D8HK6vU7.mjs";
|
|
7
7
|
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { basename, join } from "node:path";
|
|
9
9
|
|
|
@@ -137,7 +137,7 @@ function loadBrokerNames(registryPath = AIBROKER_REGISTRY, mapPath) {
|
|
|
137
137
|
/** Build encoded_dir → root_path map from PAI registry (authoritative cwd). */
|
|
138
138
|
async function buildRegistryRootPathMap() {
|
|
139
139
|
try {
|
|
140
|
-
const { getRegistryBackend } = await import("./factory-
|
|
140
|
+
const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
|
|
141
141
|
const projects = await (await getRegistryBackend()).listProjects();
|
|
142
142
|
const map = /* @__PURE__ */ new Map();
|
|
143
143
|
for (const p of projects) if (p.encoded_dir) map.set(p.encoded_dir, p.root_path);
|
|
@@ -870,4 +870,4 @@ function transcriptCustomTitle(claudeSessionId, projectsDir = CLAUDE_PROJECTS_DI
|
|
|
870
870
|
|
|
871
871
|
//#endregion
|
|
872
872
|
export { resolveSessionByNameOrId as a, transcriptCustomTitle as c, resolveFriendlyName as i, loadBrokerNames as n, scanCacheFilePath as o, migrateSessionScanCache as r, scanSessions as s, fmtAge as t };
|
|
873
|
-
//# sourceMappingURL=session-scan-
|
|
873
|
+
//# sourceMappingURL=session-scan-BmnjSReu.mjs.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./utils-J2b9y8PC.mjs";
|
|
2
|
+
import "./config-CST2uq1v.mjs";
|
|
3
|
+
import "./config-DYbyEe4-.mjs";
|
|
4
|
+
import "./paths-DS5VQKoR.mjs";
|
|
5
|
+
import "./status-COtzewKV.mjs";
|
|
6
|
+
import "./scope-D8HK6vU7.mjs";
|
|
7
|
+
import { a as resolveSessionByNameOrId, c as transcriptCustomTitle, i as resolveFriendlyName, n as loadBrokerNames, o as scanCacheFilePath, r as migrateSessionScanCache, s as scanSessions, t as fmtAge } from "./session-scan-BmnjSReu.mjs";
|
|
8
|
+
|
|
9
|
+
export { loadBrokerNames, transcriptCustomTitle };
|
|
@@ -1,6 +1,121 @@
|
|
|
1
|
+
import { rt as workersYamlPath } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { u as paiConfigFilePath, w as readDualFormatConfigRaw, x as userWorkersYamlRaw } from "./config-DYbyEe4-.mjs";
|
|
1
3
|
import { createReadStream, existsSync, readFileSync } from "node:fs";
|
|
2
4
|
import { createInterface } from "node:readline";
|
|
3
5
|
|
|
6
|
+
//#region src/workers/config-shadow.ts
|
|
7
|
+
/**
|
|
8
|
+
* config-shadow.ts — where each `workers` setting is really read from.
|
|
9
|
+
*
|
|
10
|
+
* Merge order (readWorkersSection in config.ts):
|
|
11
|
+
* 1. shipped defaults/workers.yaml `workers:` block (defaultWorkersConfig)
|
|
12
|
+
* 2. config.yaml `workers:` block over it (parseWorkersConfig)
|
|
13
|
+
* 3. workers.yaml supplies ONLY the routing tables: providers, tiers,
|
|
14
|
+
* capabilities, active, classes, mcp_sets — it replaces what config.yaml
|
|
15
|
+
* holds for those keys.
|
|
16
|
+
* So a non-provider setting (pool, pane, routing, …) has exactly one source,
|
|
17
|
+
* config.yaml; anything else in workers.yaml is never read. And the routing
|
|
18
|
+
* tables have exactly one source, workers.yaml. This module reports every
|
|
19
|
+
* key written in the wrong file (or nowhere read) so validate can name it.
|
|
20
|
+
*/
|
|
21
|
+
/** Top-level workers.yaml keys the runtime reads from the user file. */
|
|
22
|
+
const WORKERS_YAML_READ_KEYS = [
|
|
23
|
+
"providers",
|
|
24
|
+
"tiers",
|
|
25
|
+
"capabilities",
|
|
26
|
+
"active",
|
|
27
|
+
"classes",
|
|
28
|
+
"mcp_sets",
|
|
29
|
+
"local_launcher",
|
|
30
|
+
"local_tiers",
|
|
31
|
+
"prices"
|
|
32
|
+
];
|
|
33
|
+
/** config.yaml `workers.<key>` entries that workers.yaml replaces when it exists. */
|
|
34
|
+
const MAIN_SHADOWED_BY_YAML = [
|
|
35
|
+
"providers",
|
|
36
|
+
"tiers",
|
|
37
|
+
"capabilities",
|
|
38
|
+
"active",
|
|
39
|
+
"classes",
|
|
40
|
+
"mcpSets"
|
|
41
|
+
];
|
|
42
|
+
const isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
43
|
+
function leaves(v, prefix, out) {
|
|
44
|
+
if (isObj(v) && Object.keys(v).length) for (const [k, x] of Object.entries(v)) leaves(x, prefix ? `${prefix}.${k}` : k, out);
|
|
45
|
+
else if (prefix) out.set(prefix, v);
|
|
46
|
+
}
|
|
47
|
+
function getPath(root, path) {
|
|
48
|
+
let cur = root;
|
|
49
|
+
for (const seg of path.split(".")) {
|
|
50
|
+
if (!isObj(cur)) return void 0;
|
|
51
|
+
cur = cur[seg];
|
|
52
|
+
}
|
|
53
|
+
return cur;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Shadowed / unused keys given the two files as written. `workersRaw` null =
|
|
57
|
+
* no workers.yaml on disk (nothing in it to shadow, nothing shadowing config.yaml).
|
|
58
|
+
*/
|
|
59
|
+
function workersConfigShadows(mainRaw, workersRaw) {
|
|
60
|
+
const out = [];
|
|
61
|
+
const mainWorkers = isObj(mainRaw.workers) ? mainRaw.workers : {};
|
|
62
|
+
if (workersRaw) {
|
|
63
|
+
const l = /* @__PURE__ */ new Map();
|
|
64
|
+
leaves(workersRaw.workers, "", l);
|
|
65
|
+
for (const [path, value] of l) {
|
|
66
|
+
const full = `workers.${path}`;
|
|
67
|
+
const inMain = getPath(mainWorkers, path) !== void 0;
|
|
68
|
+
out.push({
|
|
69
|
+
file: "workers.yaml",
|
|
70
|
+
key: full,
|
|
71
|
+
effective: `config.yaml:${full}`,
|
|
72
|
+
value,
|
|
73
|
+
message: `workers.yaml:${full} is ignored — the runtime reads ${full} from config.yaml${inMain ? " (which also sets it and wins)" : ""}; set it there (pai config set ${full} <value>)`
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
for (const [k, value] of Object.entries(workersRaw)) {
|
|
77
|
+
if (k === "workers" || WORKERS_YAML_READ_KEYS.includes(k)) continue;
|
|
78
|
+
out.push({
|
|
79
|
+
file: "workers.yaml",
|
|
80
|
+
key: k,
|
|
81
|
+
effective: "(none)",
|
|
82
|
+
value,
|
|
83
|
+
message: `workers.yaml:${k} is unused — nothing reads a top-level "${k}" block${k === "pool" ? "; the session pool is config.yaml:workers.pool (enabled, maxSlots, idleSecs, …)" : ""}`
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
for (const k of MAIN_SHADOWED_BY_YAML) {
|
|
87
|
+
if (mainWorkers[k] === void 0) continue;
|
|
88
|
+
const yk = k === "mcpSets" ? "mcp_sets" : k;
|
|
89
|
+
out.push({
|
|
90
|
+
file: "config.yaml",
|
|
91
|
+
key: `workers.${k}`,
|
|
92
|
+
effective: `workers.yaml:${yk}`,
|
|
93
|
+
value: mainWorkers[k],
|
|
94
|
+
message: `config.yaml:workers.${k} is shadowed by workers.yaml — the routing tables are read from workers.yaml:${yk}`
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return out;
|
|
99
|
+
}
|
|
100
|
+
/** The live pair of files (paths resolve like the runtime's). Unreadable config.yaml counts as empty. */
|
|
101
|
+
function liveWorkersConfigShadows(mainPath = paiConfigFilePath(), yamlPath = workersYamlPath()) {
|
|
102
|
+
let main = {};
|
|
103
|
+
try {
|
|
104
|
+
main = readDualFormatConfigRaw(mainPath);
|
|
105
|
+
} catch {}
|
|
106
|
+
return workersConfigShadows(main, existsSync(yamlPath) ? userWorkersYamlRaw(yamlPath) : null);
|
|
107
|
+
}
|
|
108
|
+
let loggedOnce = false;
|
|
109
|
+
/** Daemon start: one stderr line per shadowed key, at most once per process. */
|
|
110
|
+
function logWorkersConfigShadowsOnce(write = (l) => process.stderr.write(l)) {
|
|
111
|
+
if (loggedOnce) return;
|
|
112
|
+
loggedOnce = true;
|
|
113
|
+
try {
|
|
114
|
+
for (const s of liveWorkersConfigShadows()) write(`[pai-daemon] config warning: ${s.message}\n`);
|
|
115
|
+
} catch {}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//#endregion
|
|
4
119
|
//#region src/audit/session-usage.ts
|
|
5
120
|
/**
|
|
6
121
|
* session-usage.ts — parse the usage numbers out of a Claude Code session
|
|
@@ -218,5 +333,5 @@ function totalUsageTokens(totals) {
|
|
|
218
333
|
}
|
|
219
334
|
|
|
220
335
|
//#endregion
|
|
221
|
-
export { totalUsageTokens as i, isRealUserPrompt as n, parseSessionUsage as r, extractUserPromptText as t };
|
|
222
|
-
//# sourceMappingURL=session-usage-
|
|
336
|
+
export { liveWorkersConfigShadows as a, totalUsageTokens as i, isRealUserPrompt as n, logWorkersConfigShadowsOnce as o, parseSessionUsage as r, workersConfigShadows as s, extractUserPromptText as t };
|
|
337
|
+
//# sourceMappingURL=session-usage-oycSdiD3.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as readMainConfigRaw } from "./config-
|
|
2
|
-
import { l as statusPath } from "./paths-
|
|
1
|
+
import { f as readMainConfigRaw } from "./config-DYbyEe4-.mjs";
|
|
2
|
+
import { l as statusPath } from "./paths-DS5VQKoR.mjs";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -921,4 +921,4 @@ function describeTool(name, inp) {
|
|
|
921
921
|
|
|
922
922
|
//#endregion
|
|
923
923
|
export { isFlagToken as $, setWorkerLabel as A, loadStatusConfig as B, nowStamp as C, pidAlive as D, parseSleepSecs as E, ForgeError as F, writeSectionToForge as G, setClaim as H, PROJECT_CONFIG_REL as I, loadPreamble as J, PREAMBLE_MAX_BYTES as K, formatStale as L, spawnTimeOf as M, statusTmpPath as N, reconcileStatuses as O, waitForTerminalStatus as P, appendSystemPromptArgs as Q, listClaims as R, newWorkerId as S, ownsPidCached as T, upsertSection as U, parseStatusConfig as V, writeContinueToForge as W, preambleLine as X, preambleBlock as Y, projectRoot as Z, isTerminal as _, UNLABELED as a, loadStatusesCached as b, contextFooter as c, describeTool as d, longInlinePromptHint as et, elapsedOf as f, isLive as g, isChatPane as h, TERMINAL_RECHECK_MS as i, setWorkerNote as j, saveStatus as k, contextLabel as l, fmtTokens as m, OWNS_TTL_MS as n, shortText as nt, ageOf as o, fmtContextK as p, PREAMBLE_REL as q, SLEEP_FLOOR_SECS as r, stripPromptValues as rt, alive as s, LOST_GRACE_MS as t, parseRunnerArgs as tt, contextPercent as u, loadStatus as v, ownsPid as w, markStartFailed as x, loadStatuses as y, listStale as z };
|
|
924
|
-
//# sourceMappingURL=status-
|
|
924
|
+
//# sourceMappingURL=status-COtzewKV.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./paths-
|
|
4
|
-
import { A as setWorkerLabel, C as nowStamp, D as pidAlive, E as parseSleepSecs, M as spawnTimeOf, N as statusTmpPath, O as reconcileStatuses, P as waitForTerminalStatus, S as newWorkerId, T as ownsPidCached, _ as isTerminal, a as UNLABELED, b as loadStatusesCached, c as contextFooter, d as describeTool, f as elapsedOf, g as isLive, h as isChatPane, i as TERMINAL_RECHECK_MS, j as setWorkerNote, k as saveStatus, l as contextLabel, m as fmtTokens, n as OWNS_TTL_MS, o as ageOf, p as fmtContextK, r as SLEEP_FLOOR_SECS, s as alive, t as LOST_GRACE_MS, u as contextPercent, v as loadStatus, w as ownsPid, x as markStartFailed, y as loadStatuses } from "./status-
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import { A as setWorkerLabel, C as nowStamp, D as pidAlive, E as parseSleepSecs, M as spawnTimeOf, N as statusTmpPath, O as reconcileStatuses, P as waitForTerminalStatus, S as newWorkerId, T as ownsPidCached, _ as isTerminal, a as UNLABELED, b as loadStatusesCached, c as contextFooter, d as describeTool, f as elapsedOf, g as isLive, h as isChatPane, i as TERMINAL_RECHECK_MS, j as setWorkerNote, k as saveStatus, l as contextLabel, m as fmtTokens, n as OWNS_TTL_MS, o as ageOf, p as fmtContextK, r as SLEEP_FLOOR_SECS, s as alive, t as LOST_GRACE_MS, u as contextPercent, v as loadStatus, w as ownsPid, x as markStartFailed, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
5
5
|
|
|
6
6
|
export { loadStatus };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./paths-
|
|
4
|
-
import "./status-
|
|
5
|
-
import { C as toolErrorSigTag, E as toolErrorsPath, S as summarizeToolInput, T as toolErrorText, _ as lastCommand, a as SAME_WORKER_WINDOW_MS, b as readToolErrors, c as classifyToolError, d as detectToolErrors, f as errorsTable, g as isBenignBash, h as harnessToolErrorTexts, i as SAME_WORKER_MIN, l as clipRaw, m as groupToolErrors, n as CROSS_WORKER_WINDOW_MS, o as TOOL_ERRORS_FILE, p as grantedToolNames, r as RESEND_MS, s as benignNote, t as CROSS_WORKER_MIN, u as detectRunningWorkerErrors, v as normalizeError, w as toolErrorSummary, x as recordToolError, y as parseSince } from "./tool-errors-
|
|
6
|
-
import "./wait-
|
|
1
|
+
import "./config-CST2uq1v.mjs";
|
|
2
|
+
import "./config-DYbyEe4-.mjs";
|
|
3
|
+
import "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import "./status-COtzewKV.mjs";
|
|
5
|
+
import { C as toolErrorSigTag, E as toolErrorsPath, S as summarizeToolInput, T as toolErrorText, _ as lastCommand, a as SAME_WORKER_WINDOW_MS, b as readToolErrors, c as classifyToolError, d as detectToolErrors, f as errorsTable, g as isBenignBash, h as harnessToolErrorTexts, i as SAME_WORKER_MIN, l as clipRaw, m as groupToolErrors, n as CROSS_WORKER_WINDOW_MS, o as TOOL_ERRORS_FILE, p as grantedToolNames, r as RESEND_MS, s as benignNote, t as CROSS_WORKER_MIN, u as detectRunningWorkerErrors, v as normalizeError, w as toolErrorSummary, x as recordToolError, y as parseSince } from "./tool-errors-DXJ70-sr.mjs";
|
|
6
|
+
import "./wait-ChpHKJZV.mjs";
|
|
7
7
|
|
|
8
8
|
export { errorsTable, groupToolErrors, parseSince, readToolErrors };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as maxOf } from "./min-max-DrSRUaWQ.mjs";
|
|
2
|
-
import { n as bashExitCode, r as isExpectedWaitExit } from "./wait-
|
|
2
|
+
import { n as bashExitCode, r as isExpectedWaitExit } from "./wait-ChpHKJZV.mjs";
|
|
3
3
|
import { appendFileSync, closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, statSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
|
|
@@ -589,4 +589,4 @@ function errorsTable(groups) {
|
|
|
589
589
|
|
|
590
590
|
//#endregion
|
|
591
591
|
export { toolErrorSigTag as C, toolErrorsPath as E, summarizeToolInput as S, toolErrorText as T, lastCommand as _, SAME_WORKER_WINDOW_MS as a, readToolErrors as b, classifyToolError as c, detectToolErrors as d, errorsTable as f, isBenignBash as g, harnessToolErrorTexts as h, SAME_WORKER_MIN as i, clipRaw as l, groupToolErrors as m, CROSS_WORKER_WINDOW_MS as n, TOOL_ERRORS_FILE as o, grantedToolNames as p, RESEND_MS as r, benignNote as s, CROSS_WORKER_MIN as t, detectRunningWorkerErrors as u, normalizeError as v, toolErrorSummary as w, recordToolError as x, parseSince as y };
|
|
592
|
-
//# sourceMappingURL=tool-errors-
|
|
592
|
+
//# sourceMappingURL=tool-errors-DXJ70-sr.mjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as ledgerPath, r as eventsPath } from "./paths-
|
|
3
|
-
import { T as worktreesStats, l as formatWorktreesStats } from "./worktree-
|
|
4
|
-
import { O as reconcileStatuses, _ as isTerminal, g as isLive, h as isChatPane, v as loadStatus, w as ownsPid, y as loadStatuses } from "./status-
|
|
5
|
-
import { a as ownerSessionName, f as workerInScope, n as currentTabKey, o as resolveSession } from "./scope-
|
|
6
|
-
import { _ as lastCommand } from "./tool-errors-
|
|
7
|
-
import { M as waitingLine, O as parseWaitOn, i as isWaitPollCommand } from "./wait-
|
|
8
|
-
import { a as buildsDir, l as listBuildsSync, p as renderBuildQueue, v as poolSlots } from "./caller-identity-
|
|
1
|
+
import { Et as appendLedger } from "./config-CST2uq1v.mjs";
|
|
2
|
+
import { i as ledgerPath, r as eventsPath } from "./paths-DS5VQKoR.mjs";
|
|
3
|
+
import { T as worktreesStats, l as formatWorktreesStats } from "./worktree-BY--Rgmy.mjs";
|
|
4
|
+
import { O as reconcileStatuses, _ as isTerminal, g as isLive, h as isChatPane, v as loadStatus, w as ownsPid, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
5
|
+
import { a as ownerSessionName, f as workerInScope, n as currentTabKey, o as resolveSession } from "./scope-D8HK6vU7.mjs";
|
|
6
|
+
import { _ as lastCommand } from "./tool-errors-DXJ70-sr.mjs";
|
|
7
|
+
import { M as waitingLine, O as parseWaitOn, i as isWaitPollCommand } from "./wait-ChpHKJZV.mjs";
|
|
8
|
+
import { a as buildsDir, l as listBuildsSync, p as renderBuildQueue, v as poolSlots } from "./caller-identity-Bim8JT-D.mjs";
|
|
9
9
|
import { l as schedLine, o as readSchedFile } from "./scheduler-CtUyWJ3O.mjs";
|
|
10
|
-
import { Bt as chatTickerRow, Ft as chatEnter, Ht as parseChatLine, It as chatInsertLine, K as renderPlanLines, Lt as chatLeave, Nt as CHAT_HELP, Pt as chatBlankRow, Rt as chatPromptRow, Ut as wrapText, V as loadPlanStatuses, Vt as holdAutoExit, _t as paneTitle, i as localIdleLine, n as markControlsHeld, qt as readInbox, s as readLocalIdle, t as clickrControlsArgv, tt as closeOwnPane, vt as writePaneTitle, yt as psTable, zt as chatScrollRegion } from "./controls-
|
|
11
|
-
import { a as endLabel } from "./endreason-
|
|
12
|
-
import { C as denialLines, _ as renderTable, b as tickerTool, c as headerLine, f as paneStatusRow, g as renderStatusLine, h as renderEvent, i as dayOf, l as intentOf, r as contextMeter, s as gutterFor, t as blankBetween, u as makeColor, y as tickerText } from "./render-
|
|
13
|
-
import { r as sayToWorker } from "./operator-
|
|
14
|
-
import { a as readAudit, d as loadPaneRunStatuses, p as renderPaneRunLines } from "./pane-audit-
|
|
10
|
+
import { Bt as chatTickerRow, Ft as chatEnter, Ht as parseChatLine, It as chatInsertLine, K as renderPlanLines, Lt as chatLeave, Nt as CHAT_HELP, Pt as chatBlankRow, Rt as chatPromptRow, Ut as wrapText, V as loadPlanStatuses, Vt as holdAutoExit, _t as paneTitle, i as localIdleLine, n as markControlsHeld, qt as readInbox, s as readLocalIdle, t as clickrControlsArgv, tt as closeOwnPane, vt as writePaneTitle, yt as psTable, zt as chatScrollRegion } from "./controls-OiVVbe-f.mjs";
|
|
11
|
+
import { a as endLabel } from "./endreason-BqyyU7BH.mjs";
|
|
12
|
+
import { C as denialLines, _ as renderTable, b as tickerTool, c as headerLine, f as paneStatusRow, g as renderStatusLine, h as renderEvent, i as dayOf, l as intentOf, r as contextMeter, s as gutterFor, t as blankBetween, u as makeColor, y as tickerText } from "./render-Cz3BWIBO.mjs";
|
|
13
|
+
import { r as sayToWorker } from "./operator-DrwWItVt.mjs";
|
|
14
|
+
import { a as readAudit, d as loadPaneRunStatuses, p as renderPaneRunLines } from "./pane-audit-wv9UkyCe.mjs";
|
|
15
15
|
import { closeSync, existsSync, openSync, readFileSync, readSync } from "node:fs";
|
|
16
16
|
import { spawn } from "node:child_process";
|
|
17
17
|
import { createInterface } from "node:readline";
|
|
@@ -909,4 +909,4 @@ function statusLineOutput(logDir, term, _cwd, claudeSession = "", now = /* @__PU
|
|
|
909
909
|
|
|
910
910
|
//#endregion
|
|
911
911
|
export { followTailOutput as a, inboxCounts as c, psOutput as d, replayOutput as f, workerEnded as g, strayWorkerProcesses as h, backfillLines as i, initialFollowState as l, statusLineOutput as m, FOLLOW_TAIL_ENTRIES as n, followWorkers as o, resumeArgv as p, applyEvent as r, gutterBody as s, BACKFILL_EVENTS as t, makeOperatorInput as u };
|
|
912
|
-
//# sourceMappingURL=viewer-
|
|
912
|
+
//# sourceMappingURL=viewer-BgGRqXfD.mjs.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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 "./tool-errors-DXJ70-sr.mjs";
|
|
9
|
+
import "./wait-ChpHKJZV.mjs";
|
|
10
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
11
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
12
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
13
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
14
|
+
import "./controls-OiVVbe-f.mjs";
|
|
15
|
+
import "./endreason-BqyyU7BH.mjs";
|
|
16
|
+
import "./render-Cz3BWIBO.mjs";
|
|
17
|
+
import "./operator-DrwWItVt.mjs";
|
|
18
|
+
import "./kill-tree-CcpsRLCZ.mjs";
|
|
19
|
+
import "./pane-audit-wv9UkyCe.mjs";
|
|
20
|
+
import { a as followTailOutput, c as inboxCounts, d as psOutput, f as replayOutput, g as workerEnded, h as strayWorkerProcesses, i as backfillLines, l as initialFollowState, m as statusLineOutput, n as FOLLOW_TAIL_ENTRIES, o as followWorkers, p as resumeArgv, r as applyEvent, s as gutterBody, t as BACKFILL_EVENTS, u as makeOperatorInput } from "./viewer-BgGRqXfD.mjs";
|
|
21
|
+
|
|
22
|
+
export { applyEvent, initialFollowState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as eventsPath } from "./paths-
|
|
2
|
-
import { D as pidAlive, O as reconcileStatuses, k as saveStatus, nt as shortText, v as loadStatus, y as loadStatuses } from "./status-
|
|
1
|
+
import { r as eventsPath } from "./paths-DS5VQKoR.mjs";
|
|
2
|
+
import { D as pidAlive, O as reconcileStatuses, k as saveStatus, nt as shortText, v as loadStatus, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
3
3
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
4
4
|
import { isAbsolute, relative, resolve } from "node:path";
|
|
5
5
|
import { execFileSync } from "node:child_process";
|
|
@@ -1274,4 +1274,4 @@ async function runWait(logDir, ids, o, out, errOut) {
|
|
|
1274
1274
|
|
|
1275
1275
|
//#endregion
|
|
1276
1276
|
export { waitOnCallLine as A, statusMarker as C, fmtElapsed as D, detachedLine as E, waitingLine as M, parseWaitOn as O, realDeps as S, waitOn as T, workerContractPrompt as _, runWait as a, killProcessTree as b, checkProof as c, parseWorkerReport as d, promptTrailer as f, verifyReportChanges as g, verifyFailNote as h, isWaitPollCommand as i, waitOnResultLine as j, realWaitDeps as k, newUntracked as l, untrackedPaths as m, bashExitCode as n, AG2_REASK_TEXT as o, renderReport as p, isExpectedWaitExit as r, OPERATOR_MARK as s, WAIT_EXIT_STILL_RUNNING as t, noteTokenSentence as u, repairAndValidateAg2 as v, statusQueue as w, processTree as x, validateAg2 as y };
|
|
1277
|
-
//# sourceMappingURL=wait-
|
|
1277
|
+
//# sourceMappingURL=wait-ChpHKJZV.mjs.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./utils-J2b9y8PC.mjs";
|
|
2
|
+
import "./config-CST2uq1v.mjs";
|
|
3
|
+
import "./config-DYbyEe4-.mjs";
|
|
4
|
+
import "./paths-DS5VQKoR.mjs";
|
|
5
|
+
import "./worktree-BY--Rgmy.mjs";
|
|
6
|
+
import "./status-COtzewKV.mjs";
|
|
7
|
+
import "./pool-BZ94nFuq.mjs";
|
|
8
|
+
import "./helpers-CRuBUas3.mjs";
|
|
9
|
+
import "./scope-D8HK6vU7.mjs";
|
|
10
|
+
import "./routing-BlD_tKjW.mjs";
|
|
11
|
+
import "./tool-errors-DXJ70-sr.mjs";
|
|
12
|
+
import "./wait-ChpHKJZV.mjs";
|
|
13
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
14
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
15
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
16
|
+
import "./local-instances-bdCNNSsL.mjs";
|
|
17
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
18
|
+
import "./factory-BV0MQA3T.mjs";
|
|
19
|
+
import "./postgres-C-T5OWer.mjs";
|
|
20
|
+
import "./embedding-gate-CTAk8STe.mjs";
|
|
21
|
+
import "./embeddings-BVq3esBF.mjs";
|
|
22
|
+
import "./router-CQSc3lk3.mjs";
|
|
23
|
+
import "./launch-DpQPZGsT.mjs";
|
|
24
|
+
import "./health-kufVIf6i.mjs";
|
|
25
|
+
import "./run-AZVwceiU.mjs";
|
|
26
|
+
import "./controls-OiVVbe-f.mjs";
|
|
27
|
+
import "./endreason-BqyyU7BH.mjs";
|
|
28
|
+
import "./render-Cz3BWIBO.mjs";
|
|
29
|
+
import "./operator-DrwWItVt.mjs";
|
|
30
|
+
import "./kill-tree-CcpsRLCZ.mjs";
|
|
31
|
+
import "./pool-cli-B1eKySeN.mjs";
|
|
32
|
+
import "./pane-audit-wv9UkyCe.mjs";
|
|
33
|
+
import "./fallback-Bj2cyVk_.mjs";
|
|
34
|
+
import "./providers-Dzx5GAUI.mjs";
|
|
35
|
+
import { A as workerMcpCommand, C as workerBenchCommand, D as workerFallbackCommand, E as workerControlsCommand, F as workerProvidersCommand, I as workerProxyCommand, L as workerRolesCommand, M as workerOnCommand, N as workerPolicyCommand, O as workerInstallCommand, P as workerPoolCommand, R as workerRouteCommand, S as stopInstance, T as workerConfigCommand, _ as portOpen, a as collectEnv, b as startTier, c as currentInstances, d as isUp, f as killInstance, g as portListeners, h as parseCostTier, i as cliInflight, j as workerOffCommand, k as workerLocalCommand, l as fail, m as listServers, n as WORKER_CONFIG_COMMANDS, o as collectTags, p as launchDetached, r as buildClassTarget, s as controlsArgv, t as PROVIDER_EDIT_COMMANDS, u as healthOk, v as serverLine, w as workerClassesCommand, x as stopAll, y as startInstance } from "./worker-config-DgdT0iTB.mjs";
|
|
36
|
+
import "./main-config-ops-BYsK3BxM.mjs";
|
|
37
|
+
import "./cockpit-actions-BTA1njMO.mjs";
|
|
38
|
+
import "./ipc-client-CnYEF31R.mjs";
|
|
39
|
+
import "./embed-pass-DtVF2fOV.mjs";
|
|
40
|
+
import "./session-usage-oycSdiD3.mjs";
|
|
41
|
+
|
|
42
|
+
export { currentInstances, startInstance, startTier, stopAll, stopInstance };
|