@tekmidian/pai 1.0.4 → 1.0.6
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/{aibroker-client-CQPGqLxL.mjs → aibroker-client-CXsyC7A8.mjs} +2 -2
- package/dist/aibroker-client-ChB7gSxV.mjs +3 -0
- package/dist/auto-route-Bc8xP6TQ.mjs +11 -0
- package/dist/{auto-route-21GdHL70.mjs → auto-route-YaEGVrFl.mjs} +2 -2
- package/dist/budget-DEiebT2A.mjs +15 -0
- package/dist/{caller-identity-yLFb7CKq.mjs → caller-identity-C6Nc96iM.mjs} +4 -4
- package/dist/{capacity-DEveQdFV.mjs → capacity-B2PgKAg4.mjs} +69 -6
- package/dist/{chain-D7PFur8Y.mjs → chain-CtK49-Ma.mjs} +5 -5
- package/dist/cli/index.mjs +2126 -290
- package/dist/{cockpit-actions-BfRMr2sm.mjs → cockpit-actions-C73mJAJ8.mjs} +18 -18
- package/dist/{cockpit-actions-OodH_vx_.mjs → cockpit-actions-D1OPP6Es.mjs} +30 -26
- package/dist/cockpit-memory-CLHZD64W.mjs +20 -0
- package/dist/config/defaults/config.yaml +21 -1
- package/dist/{config-XpZWOYOG.mjs → config-Bz8pAU5Q.mjs} +30 -5
- package/dist/{config-DtENJ6cL.mjs → config-DHgPx3ER.mjs} +1 -1
- package/dist/config-DLmyEK2q.mjs +4 -0
- package/dist/{config-Bu1_vbY8.mjs → config-SlZ-Z52i.mjs} +4 -3
- package/dist/{controls-JLm6g0yP.mjs → controls-rIItFeIJ.mjs} +59 -66
- package/dist/daemon/index.mjs +40 -39
- package/dist/daemon-176qA79N.mjs +46 -0
- package/dist/{daemon-nXanenDM.mjs → daemon-SoUvPUOf.mjs} +80 -30
- package/dist/daemon-mcp/index.mjs +49 -38
- package/dist/detect-C8nFP-kR.mjs +10 -0
- package/dist/{detect-BLKsUOgG.mjs → detect-DLjeYwnt.mjs} +2 -2
- package/dist/{embed-pass-e64AwDCa.mjs → embed-pass-CN1D8MXl.mjs} +5 -5
- package/dist/{embedding-gate-Cnk4YCyX.mjs → embedding-gate-BVQvUmox.mjs} +2 -2
- package/dist/{embedding-gate-6rZrWRXa.mjs → embedding-gate-iq0oQEkF.mjs} +3 -3
- package/dist/{endreason-BC-v05H_.mjs → endreason-C2-hYK0_.mjs} +4 -4
- package/dist/{factory-B7nv75rC.mjs → factory-CYwa0jYj.mjs} +6 -6
- package/dist/factory-DFwez99M.mjs +9 -0
- package/dist/{fallback-CBWpp2F2.mjs → fallback-CwPSCrX8.mjs} +9 -231
- package/dist/{health-C4FQmkJn.mjs → health-D0mUAVdw.mjs} +5 -5
- package/dist/{helpers-DSNK_1KP.mjs → helpers-Dj2nY56t.mjs} +2 -2
- package/dist/{helpers-Dz7mjTSw.mjs → helpers-DyHKAwrW.mjs} +6 -6
- package/dist/hooks/block-sleep-poll.mjs +1 -1
- package/dist/hooks/capture-all-events.mjs +68 -3
- package/dist/hooks/capture-tool-output.mjs +68 -3
- package/dist/hooks/handoff-link.mjs +128 -0
- package/dist/hooks/load-project-context.mjs +8 -8
- 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 +842 -90
- package/dist/hooks/supervision-banner.mjs +186 -48
- package/dist/hooks/worker-edit-repair.mjs +2 -2
- package/dist/hooks/worker-guard.mjs +65 -9
- package/dist/hooks/worker-note.mjs +70 -5
- package/dist/hooks/worker-pool-host.mjs +1518 -265
- package/dist/hooks/worker-proxy.mjs +1 -1
- package/dist/hooks/worker-status-line.mjs +225 -86
- package/dist/hooks/worker-supervision.mjs +1 -1
- package/dist/hooks/worker-tool-name-repair.mjs +2 -2
- package/dist/index.mjs +9 -9
- package/dist/{ipc-client-CnYEF31R.mjs → ipc-client-CmagIFLh.mjs} +2 -2
- package/dist/{ipc-client-DN7EvoVo.mjs → ipc-client-DmbSIBUK.mjs} +1 -1
- package/dist/{kill-tree-DleMNZX3.mjs → kill-tree-DPiMscaY.mjs} +8 -8
- package/dist/kill-tree-Dxei6qlR.mjs +10 -0
- package/dist/{launch-DlZTKE3u.mjs → launch-BZT3JDoZ.mjs} +3 -3
- package/dist/{launch-Di7N-J5X.mjs → launch-Bn2Zf90h.mjs} +3 -3
- package/dist/{indexer-backend-BdjeL4P8.mjs → lessons-CFVU0cwA.mjs} +262 -43
- package/dist/{local-candidate-DLdwQt0s.mjs → local-candidate-DFd4pp-w.mjs} +3 -3
- package/dist/{local-instances-DOxSgT_L.mjs → local-instances-DhF4_sV2.mjs} +2 -2
- package/dist/{local-instances-ZeRkkuS5.mjs → local-instances-KTh8IeOT.mjs} +4 -4
- package/dist/{local-tiers-BE4jGaMa.mjs → local-tiers-CqwGUcEn.mjs} +3 -3
- package/dist/{local-tiers-DNMI5W86.mjs → local-tiers-DSlIYvvm.mjs} +3 -3
- package/dist/{main-config-ops-kTXR8Pyv.mjs → main-config-ops-rda08BCD.mjs} +3 -3
- package/dist/{main-resolver-yp_puSSb.mjs → main-resolver-BKwI0I6H.mjs} +18 -18
- package/dist/{migrate-DrA_OwlZ.mjs → migrate-C2z1YmWC.mjs} +2 -2
- package/dist/{model-inventory-h6Z9fN_o.mjs → model-inventory-BXv15B0d.mjs} +13 -13
- package/dist/{models-add-TVni3A7V.mjs → models-add-5yXTyz3g.mjs} +38 -37
- package/dist/operator-Bmv5tiHQ.mjs +7 -0
- package/dist/{operator-CyuB3aVw.mjs → operator-Br6GeswF.mjs} +2 -2
- package/dist/{pai-marker-BcZyJguM.mjs → pai-marker-D6OoVbM_.mjs} +2 -2
- package/dist/{pane-audit-Lqy9N_Ki.mjs → pane-audit-DLYy9-4g.mjs} +13 -23
- package/dist/{paths-CHifubDh.mjs → paths-CypxFTfn.mjs} +4 -4
- package/dist/{paths-CFHTloSe.mjs → paths-DIOwNcj-.mjs} +3 -3
- package/dist/{planner-j77ndkBf.mjs → planner-BzZ_2lc-.mjs} +29 -29
- package/dist/{pool-Dh-q3iJi.mjs → pool-9EsbKD-U.mjs} +2 -2
- package/dist/{pool-cli-DQ6OzRy2.mjs → pool-cli-Cy5mlycP.mjs} +6 -6
- package/dist/{pool-cli-BggU8GRp.mjs → pool-cli-Db0uDwB9.mjs} +5 -5
- package/dist/{postgres-BK4FP9Zg.mjs → postgres-B1B80bcj.mjs} +3 -3
- package/dist/{postgres-DNIOQijl.mjs → postgres-BL5oBBgY.mjs} +3 -3
- package/dist/{project-setup-CBRtFFh0.mjs → project-setup-DHxdJjEc.mjs} +24 -25
- package/dist/providers-BH6hQYbU.mjs +16 -0
- package/dist/{providers-C9QC0TtO.mjs → providers-BNV7CzC-.mjs} +6 -6
- package/dist/{query-feedback-DN52N9C5.mjs → query-feedback-BWl2HRwN.mjs} +2 -2
- package/dist/registrable-BwFiqazy.mjs +9 -0
- package/dist/{registrable-DpyTtajg.mjs → registrable-Dxs4oKIj.mjs} +4 -4
- package/dist/render-DVGXpfaT.mjs +13 -0
- package/dist/render-jPpMrudf.mjs +2240 -0
- package/dist/root-C8cxhdn9.mjs +36 -0
- package/dist/{root-C4oXlXS_.mjs → root-DmOzMeSv.mjs} +10 -10
- package/dist/route-table-COAmc1nB.mjs +15 -0
- package/dist/{router-CQSc3lk3.mjs → router-D2476pOp.mjs} +2 -2
- package/dist/{router-DwHJRgG9.mjs → router-ghujlEFb.mjs} +1 -1
- package/dist/{routing-f2zulGwD.mjs → routing-B_cg1_Xx.mjs} +13 -13
- package/dist/{routing-DmkheCRH.mjs → routing-aJKMIagQ.mjs} +16 -16
- package/dist/{run-BwZKBJZZ.mjs → run-DE9Q0ldN.mjs} +55 -31
- package/dist/{runtime-paths-WsO9sJFc.mjs → runtime-paths-twfV23YL.mjs} +2 -2
- package/dist/{scan-BBGvU5EB.mjs → scan-CNMcltOX.mjs} +7 -7
- package/dist/{scope-D-h6F6DN.mjs → scope-BTWstJ1B.mjs} +4 -4
- package/dist/session-DgZifjLx.mjs +35 -0
- package/dist/{session-Dn5OJXlg.mjs → session-HBYOABWU.mjs} +28 -28
- package/dist/session-scan-BZxnYN1v.mjs +9 -0
- package/dist/{session-scan-DUn10MBd.mjs → session-scan-CX3MKCNg.mjs} +6 -6
- package/dist/{session-usage-CPvXvSkw.mjs → session-usage-CCmPFFa6.mjs} +117 -2
- package/dist/{status-ggJ7lgVg.mjs → status-Cecau8Ps.mjs} +9 -5
- package/dist/status-D52xC_i0.mjs +6 -0
- package/dist/{tool-errors-7E13StWd.mjs → tool-errors-BFw1gv-z.mjs} +2 -2
- package/dist/{tool-errors-CJWODvlo.mjs → tool-errors-COM2JGEr.mjs} +6 -6
- package/dist/viewer-Ce-Xa9L3.mjs +22 -0
- package/dist/{viewer-wfKnvnrI.mjs → viewer-DvBg6N22.mjs} +16 -14
- package/dist/{wait-ByV0OyMZ.mjs → wait-C5iWILj_.mjs} +3 -3
- package/dist/worker-config-BmcJ9R0U.mjs +42 -0
- package/dist/{worker-config-eY5Qy4vl.mjs → worker-config-DkONNk_H.mjs} +164 -107
- package/dist/workers-config-DwzrtdYu.mjs +4 -0
- package/dist/{worktree-CRs2gyg0.mjs → worktree-O_kU6Q3y.mjs} +164 -8
- package/dist/{zettelkasten-tpCRBYvH.mjs → zettelkasten-BH8AdNh8.mjs} +4 -4
- package/dist/{zettelkasten-_h_tUm2T.mjs → zettelkasten-FFhQFESJ.mjs} +2 -2
- package/docs/commands/README.md +33 -2
- package/docs/commands/audit.md +34 -3
- package/docs/commands/backup.md +1 -1
- package/docs/commands/build.md +4 -4
- package/docs/commands/cd.md +1 -1
- package/docs/commands/clear-names.md +1 -1
- package/docs/commands/cockpit.md +1 -1
- package/docs/commands/config.md +21 -1
- package/docs/commands/daemon.md +1 -1
- package/docs/commands/db.md +1 -1
- package/docs/commands/doc.md +1 -1
- package/docs/commands/end.md +1 -1
- package/docs/commands/find.md +1 -1
- package/docs/commands/git.md +110 -0
- package/docs/commands/handoff.md +70 -0
- package/docs/commands/harness.md +74 -0
- package/docs/commands/help.md +1 -1
- package/docs/commands/home.md +1 -1
- package/docs/commands/hooks-db.md +1 -1
- package/docs/commands/identity.md +1 -1
- package/docs/commands/install.md +1 -1
- package/docs/commands/issue.md +1 -1
- package/docs/commands/kg.md +1 -1
- package/docs/commands/launch.md +1 -1
- package/docs/commands/lessons.md +201 -0
- package/docs/commands/list.md +1 -1
- package/docs/commands/ls.md +1 -1
- package/docs/commands/mcp.md +1 -1
- package/docs/commands/memory.md +1 -1
- package/docs/commands/models.md +1 -1
- package/docs/commands/more.md +1 -1
- package/docs/commands/new.md +1 -1
- package/docs/commands/notes.md +1 -1
- package/docs/commands/notify.md +1 -1
- package/docs/commands/observation.md +1 -1
- package/docs/commands/obsidian.md +1 -1
- package/docs/commands/open.md +1 -1
- package/docs/commands/pane.md +1 -1
- package/docs/commands/pause.md +1 -1
- package/docs/commands/plan.md +1 -1
- package/docs/commands/project.md +1 -1
- package/docs/commands/projects.md +1 -1
- package/docs/commands/providers.md +1 -1
- package/docs/commands/queue.md +1 -1
- package/docs/commands/registry.md +1 -1
- package/docs/commands/reload.md +1 -1
- package/docs/commands/rename.md +1 -1
- package/docs/commands/restore.md +1 -1
- package/docs/commands/resume.md +1 -1
- package/docs/commands/router.md +1 -1
- package/docs/commands/rules.md +70 -0
- package/docs/commands/session.md +1 -1
- package/docs/commands/sessions.md +1 -1
- package/docs/commands/setup.md +1 -1
- package/docs/commands/setups.md +1 -1
- package/docs/commands/shell-init.md +1 -1
- package/docs/commands/skill.md +1 -1
- package/docs/commands/task.md +1 -1
- package/docs/commands/tasks.md +1 -1
- package/docs/commands/topic.md +1 -1
- package/docs/commands/update.md +1 -1
- package/docs/commands/worker.md +1 -1
- package/docs/commands/zettel.md +1 -1
- package/docs/concepts/panes.md +3 -2
- package/gemini-extension.json +1 -1
- package/package.json +2 -2
- 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/src/hooks/ts/lib/loop-guard.ts +3 -5
- package/src/hooks/ts/lib/rules/builtin/base64-decode-to-shell.rule.yaml +13 -0
- package/src/hooks/ts/lib/rules/builtin/chmod-world-writable.rule.yaml +13 -0
- package/src/hooks/ts/lib/rules/builtin/chmod-zero.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/credential-file-read.rule.yaml +13 -0
- package/src/hooks/ts/lib/rules/builtin/credential-read-then-network.rule.yaml +29 -0
- package/src/hooks/ts/lib/rules/builtin/crontab-persistence.rule.yaml +10 -0
- package/src/hooks/ts/lib/rules/builtin/curl-piped-to-shell.rule.yaml +15 -0
- package/src/hooks/ts/lib/rules/builtin/download-then-execute.rule.yaml +30 -0
- package/src/hooks/ts/lib/rules/builtin/find-root-delete.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/git-push-force.rule.yaml +24 -0
- package/src/hooks/ts/lib/rules/builtin/git-push-plus-refspec.rule.yaml +12 -0
- package/src/hooks/ts/lib/rules/builtin/git-reset-hard.rule.yaml +12 -0
- package/src/hooks/ts/lib/rules/builtin/injection-then-tool.rule.yaml +30 -0
- package/src/hooks/ts/lib/rules/builtin/instruction-override-disregard.rule.yaml +12 -0
- package/src/hooks/ts/lib/rules/builtin/instruction-override-ignore.rule.yaml +13 -0
- package/src/hooks/ts/lib/rules/builtin/launchagents-write-persistence.rule.yaml +12 -0
- package/src/hooks/ts/lib/rules/builtin/launchctl-load-persistence.rule.yaml +10 -0
- package/src/hooks/ts/lib/rules/builtin/reverse-shell-dev-tcp.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/reverse-shell-interactive-bash.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/rm-recursive-parent.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/rm-recursive-relative.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/rm-recursive-root.rule.yaml +24 -0
- package/src/hooks/ts/lib/rules/builtin/rm-trailing-tilde.rule.yaml +11 -0
- package/src/hooks/ts/lib/rules/builtin/sudoers-nopasswd.rule.yaml +15 -0
- package/src/hooks/ts/lib/rules/builtin.generated.ts +530 -0
- package/src/hooks/ts/lib/rules/eval.ts +74 -0
- package/src/hooks/ts/lib/rules/lint.ts +102 -0
- package/src/hooks/ts/lib/rules/load.ts +229 -0
- package/src/hooks/ts/lib/rules/types.ts +56 -0
- package/src/hooks/ts/pre-tool-use/security-validator.ts +27 -96
- package/src/hooks/ts/user-prompt/handoff-link.ts +34 -0
- package/dist/aibroker-client-BxzeEHPF.mjs +0 -3
- 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/factory-Bs9imVMq.mjs +0 -9
- 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/render-C84BqQRC.mjs +0 -903
- 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/status-Dm4dYciN.mjs +0 -6
- package/dist/viewer-DEySE4c_.mjs +0 -22
- package/dist/worker-config-CO5FXLAT.mjs +0 -41
- package/dist/workers-config-f8KrkY4L.mjs +0 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { _ as warn, c as ok, i as err, l as renderTable, n as dim, o as header } from "./utils-J2b9y8PC.mjs";
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./config-
|
|
4
|
-
import "./paths-
|
|
5
|
-
import "./status-
|
|
6
|
-
import { d as terminalHasName } from "./scope-
|
|
7
|
-
import "./routing-
|
|
8
|
-
import "./tool-errors-
|
|
9
|
-
import "./wait-
|
|
10
|
-
import "./local-tiers-
|
|
11
|
-
import "./caller-identity-
|
|
12
|
-
import "./capacity-
|
|
13
|
-
import "./local-instances-
|
|
14
|
-
import "./local-candidate-
|
|
15
|
-
import { c as resumeOfferBlock, l as resumeRouteFor, n as launchInDir } from "./launch-
|
|
16
|
-
import { i as switchToSession, n as fetchLiveSessions } from "./aibroker-client-
|
|
17
|
-
import { s as scanSessions, t as fmtAge } from "./session-scan-
|
|
2
|
+
import "./config-Bz8pAU5Q.mjs";
|
|
3
|
+
import "./config-SlZ-Z52i.mjs";
|
|
4
|
+
import "./paths-CypxFTfn.mjs";
|
|
5
|
+
import "./status-Cecau8Ps.mjs";
|
|
6
|
+
import { d as terminalHasName } from "./scope-BTWstJ1B.mjs";
|
|
7
|
+
import "./routing-aJKMIagQ.mjs";
|
|
8
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
9
|
+
import "./wait-C5iWILj_.mjs";
|
|
10
|
+
import "./local-tiers-CqwGUcEn.mjs";
|
|
11
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
12
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
13
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
14
|
+
import "./local-candidate-DFd4pp-w.mjs";
|
|
15
|
+
import { c as resumeOfferBlock, l as resumeRouteFor, n as launchInDir } from "./launch-BZT3JDoZ.mjs";
|
|
16
|
+
import { i as switchToSession, n as fetchLiveSessions } from "./aibroker-client-CXsyC7A8.mjs";
|
|
17
|
+
import { s as scanSessions, t as fmtAge } from "./session-scan-CX3MKCNg.mjs";
|
|
18
18
|
import { createReadStream, existsSync, realpathSync } from "node:fs";
|
|
19
19
|
import { basename, join } from "node:path";
|
|
20
20
|
import chalk from "chalk";
|
|
@@ -600,7 +600,7 @@ async function openMatch(entry, allSessions, dryRun, resume, auto) {
|
|
|
600
600
|
}
|
|
601
601
|
async function getRegisteredProjects(all = false) {
|
|
602
602
|
try {
|
|
603
|
-
const { getRegistryBackend } = await import("./factory-
|
|
603
|
+
const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
|
|
604
604
|
return await (await getRegistryBackend()).listProjectsWithSessionStats(all ? {} : { status: "active" });
|
|
605
605
|
} catch {
|
|
606
606
|
return [];
|
|
@@ -784,4 +784,4 @@ async function cmdMain(query, pickN, opts) {
|
|
|
784
784
|
|
|
785
785
|
//#endregion
|
|
786
786
|
export { cmdMain };
|
|
787
|
-
//# sourceMappingURL=main-resolver-
|
|
787
|
+
//# sourceMappingURL=main-resolver-BKwI0I6H.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as smartDecodeDir } from "./utils-J2b9y8PC.mjs";
|
|
2
|
-
import { l as claudeHomeDir } from "./runtime-paths-
|
|
2
|
+
import { l as claudeHomeDir } from "./runtime-paths-twfV23YL.mjs";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -243,4 +243,4 @@ async function migrateFromJson(backend, registryPath = join(claudeHomeDir(), "se
|
|
|
243
243
|
|
|
244
244
|
//#endregion
|
|
245
245
|
export { slugify as a, parseSessionFilename as i, decodeEncodedDir as n, migrateFromJson as r, buildEncodedDirMap as t };
|
|
246
|
-
//# sourceMappingURL=migrate-
|
|
246
|
+
//# sourceMappingURL=migrate-C2z1YmWC.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./paths-
|
|
4
|
-
import "./status-
|
|
5
|
-
import "./scope-
|
|
6
|
-
import { $ as parseFootprint, B as MODEL_INVENTORY_MAX_AGE_MS, G as fmtMem, H as ProbeHold, J as inventoryRows, K as fmtMemMapped, Q as modelLabel, R as DOWN_AFTER_MISSES, U as computeInventory, V as MODEL_INVENTORY_REFRESH_MS, W as currentInventory, X as liveDeps, Y as inventoryText, Z as modelKind, at as readInventoryInput, ct as writeInventory, et as parseSizeMb, it as readInventory, nt as processTreeMemory, ot as readModelLabels, q as inventoryPath, rt as processTreeRssMb, st as startInventoryRefresh, tt as parseTable, z as INVENTORY_HEADERS } 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-Bz8pAU5Q.mjs";
|
|
2
|
+
import "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import "./paths-CypxFTfn.mjs";
|
|
4
|
+
import "./status-Cecau8Ps.mjs";
|
|
5
|
+
import "./scope-BTWstJ1B.mjs";
|
|
6
|
+
import { $ as parseFootprint, B as MODEL_INVENTORY_MAX_AGE_MS, G as fmtMem, H as ProbeHold, J as inventoryRows, K as fmtMemMapped, Q as modelLabel, R as DOWN_AFTER_MISSES, U as computeInventory, V as MODEL_INVENTORY_REFRESH_MS, W as currentInventory, X as liveDeps, Y as inventoryText, Z as modelKind, at as readInventoryInput, ct as writeInventory, et as parseSizeMb, it as readInventory, nt as processTreeMemory, ot as readModelLabels, q as inventoryPath, rt as processTreeRssMb, st as startInventoryRefresh, tt as parseTable, z as INVENTORY_HEADERS } from "./routing-aJKMIagQ.mjs";
|
|
7
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
8
|
+
import "./wait-C5iWILj_.mjs";
|
|
9
|
+
import "./local-tiers-CqwGUcEn.mjs";
|
|
10
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
11
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
12
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
13
|
+
import "./local-candidate-DFd4pp-w.mjs";
|
|
14
14
|
|
|
15
15
|
export { computeInventory, currentInventory, processTreeRssMb, readInventoryInput, writeInventory };
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import "./utils-J2b9y8PC.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "./config-
|
|
4
|
-
import "./paths-
|
|
5
|
-
import "./worktree-
|
|
6
|
-
import "./status-
|
|
7
|
-
import "./pool-
|
|
2
|
+
import { rt as workersYamlPath } from "./config-Bz8pAU5Q.mjs";
|
|
3
|
+
import "./config-SlZ-Z52i.mjs";
|
|
4
|
+
import "./paths-CypxFTfn.mjs";
|
|
5
|
+
import "./worktree-O_kU6Q3y.mjs";
|
|
6
|
+
import "./status-Cecau8Ps.mjs";
|
|
7
|
+
import "./pool-9EsbKD-U.mjs";
|
|
8
8
|
import "./helpers-CRuBUas3.mjs";
|
|
9
|
-
import "./scope-
|
|
10
|
-
import "./routing-
|
|
11
|
-
import "./tool-errors-
|
|
12
|
-
import "./wait-
|
|
13
|
-
import { g as planStart, m as parseLocalConfig, o as defaultLauncher, y as shellQuote } from "./local-tiers-
|
|
14
|
-
import "./caller-identity-
|
|
15
|
-
import "./capacity-
|
|
16
|
-
import "./local-instances-
|
|
17
|
-
import "./local-candidate-
|
|
18
|
-
import "./factory-
|
|
19
|
-
import "./postgres-
|
|
20
|
-
import "./embedding-gate-
|
|
9
|
+
import "./scope-BTWstJ1B.mjs";
|
|
10
|
+
import "./routing-aJKMIagQ.mjs";
|
|
11
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
12
|
+
import "./wait-C5iWILj_.mjs";
|
|
13
|
+
import { g as planStart, m as parseLocalConfig, o as defaultLauncher, y as shellQuote } from "./local-tiers-CqwGUcEn.mjs";
|
|
14
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
15
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
16
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
17
|
+
import "./local-candidate-DFd4pp-w.mjs";
|
|
18
|
+
import "./factory-CYwa0jYj.mjs";
|
|
19
|
+
import "./postgres-BL5oBBgY.mjs";
|
|
20
|
+
import "./embedding-gate-iq0oQEkF.mjs";
|
|
21
21
|
import "./embeddings-BVq3esBF.mjs";
|
|
22
|
-
import "./router-
|
|
23
|
-
import "./launch-
|
|
24
|
-
import "./health-
|
|
25
|
-
import "./run-
|
|
26
|
-
import "./controls-
|
|
27
|
-
import "./endreason-
|
|
28
|
-
import "./render-
|
|
29
|
-
import "./operator-
|
|
30
|
-
import "./kill-tree-
|
|
31
|
-
import "./pool-cli-
|
|
32
|
-
import "./pane-audit-
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
22
|
+
import "./router-D2476pOp.mjs";
|
|
23
|
+
import "./launch-Bn2Zf90h.mjs";
|
|
24
|
+
import "./health-D0mUAVdw.mjs";
|
|
25
|
+
import "./run-DE9Q0ldN.mjs";
|
|
26
|
+
import "./controls-rIItFeIJ.mjs";
|
|
27
|
+
import "./endreason-C2-hYK0_.mjs";
|
|
28
|
+
import "./render-jPpMrudf.mjs";
|
|
29
|
+
import "./operator-Br6GeswF.mjs";
|
|
30
|
+
import "./kill-tree-DPiMscaY.mjs";
|
|
31
|
+
import "./pool-cli-Db0uDwB9.mjs";
|
|
32
|
+
import "./pane-audit-DLYy9-4g.mjs";
|
|
33
|
+
import "./providers-BNV7CzC-.mjs";
|
|
34
|
+
import { H as canBind, U as sizeOnDiskGb, V as allocatePort, at as defaultRegistryCtx, f as killInstance, g as portListeners, ot as hashText, p as launchDetached, st as saveRegistry, u as healthOk } from "./worker-config-DkONNk_H.mjs";
|
|
35
|
+
import "./main-config-ops-rda08BCD.mjs";
|
|
36
|
+
import "./cockpit-actions-D1OPP6Es.mjs";
|
|
37
|
+
import "./ipc-client-CmagIFLh.mjs";
|
|
38
|
+
import "./embed-pass-CN1D8MXl.mjs";
|
|
39
|
+
import "./session-usage-CCmPFFa6.mjs";
|
|
40
|
+
import "./fallback-CwPSCrX8.mjs";
|
|
40
41
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
41
42
|
import { basename, join } from "node:path";
|
|
42
43
|
import { homedir } from "node:os";
|
|
@@ -332,4 +333,4 @@ async function smokeTest(cfg, name, d = {}) {
|
|
|
332
333
|
|
|
333
334
|
//#endregion
|
|
334
335
|
export { addModel };
|
|
335
|
-
//# sourceMappingURL=models-add-
|
|
336
|
+
//# sourceMappingURL=models-add-5yXTyz3g.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import "./paths-CypxFTfn.mjs";
|
|
4
|
+
import "./status-Cecau8Ps.mjs";
|
|
5
|
+
import { n as operatorSocketPath, r as sayToWorker, t as createOperatorServer } from "./operator-Br6GeswF.mjs";
|
|
6
|
+
|
|
7
|
+
export { sayToWorker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as isLive, v as loadStatus } from "./status-
|
|
1
|
+
import { g as isLive, v as loadStatus } from "./status-Cecau8Ps.mjs";
|
|
2
2
|
import { existsSync, unlinkSync } from "node:fs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -95,4 +95,4 @@ function sayToWorker(logDir, id, text, timeoutMs = 4e3) {
|
|
|
95
95
|
|
|
96
96
|
//#endregion
|
|
97
97
|
export { operatorSocketPath as n, sayToWorker as r, createOperatorServer as t };
|
|
98
|
-
//# sourceMappingURL=operator-
|
|
98
|
+
//# sourceMappingURL=operator-Br6GeswF.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
|
|
2
|
-
import { s as worktreeReason } from "./registrable-
|
|
2
|
+
import { s as worktreeReason } from "./registrable-Dxs4oKIj.mjs";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
5
|
import { homedir } from "node:os";
|
|
@@ -228,4 +228,4 @@ function discoverPaiMarkers(searchDirs) {
|
|
|
228
228
|
|
|
229
229
|
//#endregion
|
|
230
230
|
export { ensurePaiMarker as n, readPaiMarker as r, discoverPaiMarkers as t };
|
|
231
|
-
//# sourceMappingURL=pai-marker-
|
|
231
|
+
//# sourceMappingURL=pai-marker-D6OoVbM_.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as ledgerPath } from "./paths-
|
|
4
|
-
import { C as nowStamp,
|
|
5
|
-
import { i as itermUuid } from "./scope-
|
|
6
|
-
import {
|
|
7
|
-
import { s as requestKill, t as appendStopEvent } from "./endreason-
|
|
8
|
-
import { i as killTree } from "./kill-tree-
|
|
1
|
+
import { _ as paiHomePath } from "./runtime-paths-twfV23YL.mjs";
|
|
2
|
+
import { Et as appendLedger } from "./config-Bz8pAU5Q.mjs";
|
|
3
|
+
import { i as ledgerPath } from "./paths-CypxFTfn.mjs";
|
|
4
|
+
import { C as nowStamp, N as spawnTimeOf, T as ownsPidCached, b as loadStatusesCached, g as isLive, h as isChatPane, v as loadStatus, w as ownsPid } from "./status-Cecau8Ps.mjs";
|
|
5
|
+
import { i as itermUuid } from "./scope-BTWstJ1B.mjs";
|
|
6
|
+
import { Dt as recordPath, Et as readRecord, L as fmtElapsed, St as listRecords, Tt as readExit, V as loadPlanStatuses, _t as paneTitle, bt as PANE_EXEC_PID_ENV, dt as osascript, kt as panePolicy, mt as realPaneOps, nt as closePaneForWorker, st as loadRegistry, tt as closeOwnPane, vt as writePaneTitle, wt as pidAlive, xt as exitFilePath, yt as PANE_EXEC_ENV } from "./controls-rIItFeIJ.mjs";
|
|
7
|
+
import { s as requestKill, t as appendStopEvent } from "./endreason-C2-hYK0_.mjs";
|
|
8
|
+
import { i as killTree } from "./kill-tree-DPiMscaY.mjs";
|
|
9
9
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { execFileSync, spawn } from "node:child_process";
|
|
@@ -278,15 +278,11 @@ async function runInPane(o) {
|
|
|
278
278
|
* (auditLaunches: a pane-exec whose child is gone while the pane lives, or the reverse, has its orphan side
|
|
279
279
|
* killed / closed; a running worker that bypassed the launcher is noted) and the pane marks (judged from the
|
|
280
280
|
* pane registry and the iTerm listing: ok, NO PANE, WRONG TAB, HOST UNKNOWN, STILL OPEN, plus the shown-only
|
|
281
|
-
*
|
|
281
|
+
* NOT SELECTED / MINIMISED). The daemon runs it every 30 s and writes <logDir>/pane-audit.json for
|
|
282
282
|
* `ps` and the cockpit.
|
|
283
283
|
*/
|
|
284
284
|
/** Marks that are shown, never alarmed: the pane runs, only its visibility falls short. */
|
|
285
|
-
const SHOWN_ONLY = [
|
|
286
|
-
"SMALL",
|
|
287
|
-
"NOT SELECTED",
|
|
288
|
-
"MINIMISED"
|
|
289
|
-
];
|
|
285
|
+
const SHOWN_ONLY = ["NOT SELECTED", "MINIMISED"];
|
|
290
286
|
const norm = (id) => itermUuid(id) || id;
|
|
291
287
|
const stampMs = (t, utc) => t ? Date.parse(t.replace(" ", "T") + (utc ? "Z" : "")) : NaN;
|
|
292
288
|
function auditPanes(procs, registry, tabs, nowMs, sizes) {
|
|
@@ -351,13 +347,6 @@ function auditPanes(procs, registry, tabs, nowMs, sizes) {
|
|
|
351
347
|
why: `pane ${e.session} sits in ${tab}, the starting session in ${hostTab}`
|
|
352
348
|
};
|
|
353
349
|
const size = sizes?.get(norm(e.session));
|
|
354
|
-
if (size && (size.cols < panePolicy().minCols || size.rows < panePolicy().minRows)) return {
|
|
355
|
-
...v,
|
|
356
|
-
mark: "SMALL",
|
|
357
|
-
tab,
|
|
358
|
-
hostTab,
|
|
359
|
-
why: `pane ${e.session} is ${size.cols}x${size.rows}, under ${panePolicy().minCols}x${panePolicy().minRows}`
|
|
360
|
-
};
|
|
361
350
|
if (size?.mark) return {
|
|
362
351
|
...v,
|
|
363
352
|
mark: size.mark,
|
|
@@ -456,7 +445,8 @@ const readTold = (logDir) => readJson(toldFile(logDir));
|
|
|
456
445
|
/**
|
|
457
446
|
* One audit round: judge, persist, and record each new violation once, in the ledger only (PANE-VIOLATION).
|
|
458
447
|
* Since the pane owns the process (pane-exec.ts) a missing pane cannot happen by construction; what is left
|
|
459
|
-
* is a bug detector: the launcher audit (auditLaunches) and the visibility marks.
|
|
448
|
+
* is a bug detector: the launcher audit (auditLaunches) and the visibility marks. A small pane is never a
|
|
449
|
+
* violation: the operator does not care about pane size. Nothing is sent to a session
|
|
460
450
|
* or to PAILot, nothing is reopened.
|
|
461
451
|
*/
|
|
462
452
|
async function auditTick(logDir, _msg, deps = {}) {
|
|
@@ -761,4 +751,4 @@ function renderPaneAudit(verdicts) {
|
|
|
761
751
|
|
|
762
752
|
//#endregion
|
|
763
753
|
export { readAudit as a, followPaneRun as c, loadPaneRunStatuses as d, paneRunRows as f, listItermTabs as i, isPaneRunId as l, runInPane as m, auditTick as n, renderPaneAudit as o, renderPaneRunLines as p, closeFinishedPanes as r, runningProcs as s, auditPanes as t, loadPaneRunStatus as u };
|
|
764
|
-
//# sourceMappingURL=pane-audit-
|
|
754
|
+
//# sourceMappingURL=pane-audit-DLYy9-4g.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { d as defaultWorkersConfig } from "./config-
|
|
3
|
-
import { o as expandHome } from "./config-
|
|
1
|
+
import { _ as paiHomePath, v as resolvePaiFile } from "./runtime-paths-twfV23YL.mjs";
|
|
2
|
+
import { d as defaultWorkersConfig } from "./config-Bz8pAU5Q.mjs";
|
|
3
|
+
import { o as expandHome } from "./config-SlZ-Z52i.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
|
|
@@ -65,4 +65,4 @@ function slotCurrentPath(logDir, slot) {
|
|
|
65
65
|
|
|
66
66
|
//#endregion
|
|
67
67
|
export { noMcpConfigPath as a, slotCurrentPath as c, ledgerPath as i, statusPath as l, ensureNoMcpConfig as n, panesDir as o, eventsPath as r, routingStatePath as s, WORKER_ID_RE as t, workersLogDir as u };
|
|
68
|
-
//# sourceMappingURL=paths-
|
|
68
|
+
//# sourceMappingURL=paths-CypxFTfn.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import { a as noMcpConfigPath, c as slotCurrentPath, i as ledgerPath, l as statusPath, n as ensureNoMcpConfig, o as panesDir, r as eventsPath, s as routingStatePath, t as WORKER_ID_RE, u as workersLogDir } from "./paths-
|
|
1
|
+
import "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import { a as noMcpConfigPath, c as slotCurrentPath, i as ledgerPath, l as statusPath, n as ensureNoMcpConfig, o as panesDir, r as eventsPath, s as routingStatePath, t as WORKER_ID_RE, u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
4
4
|
|
|
5
5
|
export { WORKER_ID_RE, ensureNoMcpConfig, eventsPath, ledgerPath, noMcpConfigPath, panesDir, routingStatePath, slotCurrentPath, statusPath, workersLogDir };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./config-
|
|
3
|
-
import { i as ledgerPath, u as workersLogDir } from "./paths-
|
|
4
|
-
import { g as mergeWorker, n as MergeConflictError } from "./worktree-
|
|
5
|
-
import { S as newWorkerId, nt as
|
|
6
|
-
import "./pool-
|
|
1
|
+
import { Et as appendLedger, M as readWorkersSection } from "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import { i as ledgerPath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
4
|
+
import { g as mergeWorker, n as MergeConflictError } from "./worktree-O_kU6Q3y.mjs";
|
|
5
|
+
import { S as newWorkerId, nt as parseRunnerArgs, rt as shortText, v as loadStatus } from "./status-Cecau8Ps.mjs";
|
|
6
|
+
import "./pool-9EsbKD-U.mjs";
|
|
7
7
|
import "./helpers-CRuBUas3.mjs";
|
|
8
|
-
import "./scope-
|
|
9
|
-
import "./routing-
|
|
10
|
-
import "./tool-errors-
|
|
11
|
-
import "./wait-
|
|
12
|
-
import "./local-tiers-
|
|
13
|
-
import "./caller-identity-
|
|
14
|
-
import "./capacity-
|
|
15
|
-
import "./local-instances-
|
|
16
|
-
import "./local-candidate-
|
|
17
|
-
import "./factory-
|
|
18
|
-
import "./postgres-
|
|
19
|
-
import "./embedding-gate-
|
|
8
|
+
import "./scope-BTWstJ1B.mjs";
|
|
9
|
+
import "./routing-aJKMIagQ.mjs";
|
|
10
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
11
|
+
import "./wait-C5iWILj_.mjs";
|
|
12
|
+
import "./local-tiers-CqwGUcEn.mjs";
|
|
13
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
14
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
15
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
16
|
+
import "./local-candidate-DFd4pp-w.mjs";
|
|
17
|
+
import "./factory-CYwa0jYj.mjs";
|
|
18
|
+
import "./postgres-BL5oBBgY.mjs";
|
|
19
|
+
import "./embedding-gate-iq0oQEkF.mjs";
|
|
20
20
|
import "./embeddings-BVq3esBF.mjs";
|
|
21
|
-
import "./router-
|
|
22
|
-
import "./launch-
|
|
23
|
-
import { V as printResult, t as runWorker } from "./run-
|
|
24
|
-
import "./controls-
|
|
25
|
-
import "./endreason-
|
|
26
|
-
import "./render-
|
|
27
|
-
import "./operator-
|
|
28
|
-
import "./kill-tree-
|
|
29
|
-
import "./pool-cli-
|
|
30
|
-
import { n as swapPromptArg } from "./chain-
|
|
21
|
+
import "./router-D2476pOp.mjs";
|
|
22
|
+
import "./launch-Bn2Zf90h.mjs";
|
|
23
|
+
import { V as printResult, t as runWorker } from "./run-DE9Q0ldN.mjs";
|
|
24
|
+
import "./controls-rIItFeIJ.mjs";
|
|
25
|
+
import "./endreason-C2-hYK0_.mjs";
|
|
26
|
+
import "./render-jPpMrudf.mjs";
|
|
27
|
+
import "./operator-Br6GeswF.mjs";
|
|
28
|
+
import "./kill-tree-DPiMscaY.mjs";
|
|
29
|
+
import "./pool-cli-Db0uDwB9.mjs";
|
|
30
|
+
import { n as swapPromptArg } from "./chain-CtK49-Ma.mjs";
|
|
31
31
|
import { existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
32
32
|
import { join } from "node:path";
|
|
33
33
|
|
|
@@ -307,4 +307,4 @@ function printPlannerSummary(logDir, plannerId, results, merged, conflicted, fmt
|
|
|
307
307
|
|
|
308
308
|
//#endregion
|
|
309
309
|
export { runPlanner };
|
|
310
|
-
//# sourceMappingURL=planner-
|
|
310
|
+
//# sourceMappingURL=planner-BzZ_2lc-.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ot as parseLedger, R as LOOPBACK_HOST, c as WorkersConfigError, d as defaultWorkersConfig, i as DEFAULT_POOL_PORT, t as ANTHROPIC_NATIVE } from "./config-Bz8pAU5Q.mjs";
|
|
2
2
|
import { t as assertTestWriteAllowed } from "./test-isolation-lqSmYxr0.mjs";
|
|
3
3
|
import { appendFileSync, copyFileSync, existsSync, mkdirSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -629,4 +629,4 @@ function spareStats(ledgerText) {
|
|
|
629
629
|
|
|
630
630
|
//#endregion
|
|
631
631
|
export { readClaudeJson as A, describeMcp as C, readMcpServers as D, mcpServersFromToolGrants as E, trustProjectPath as M, writeClaudeJson as N, writeMcpConfig as O, inputSideTokens as S, grantsChrome as T, readPoolMetrics as _, formatCarryByProvider as a, spareStats as b, poolHostAlive as c, poolIneligibleReason as d, poolMetricsPath as f, postTaskToPool as g, poolSettings as h, bundleBuildStamp as i, registerMcpScript as j, mcpEntryRunsScript as k, poolHostProbe as l, poolPort as m, SLOT_TOOLS as n, poolCarry as o, poolPidPath as p, UNIT_MARKER as r, poolDir as s, SHARED_MARKER as t, poolHostStale as u, readPoolState as v, expandMcpNames as w, warmOrCold as x, reloadInProgress as y };
|
|
632
|
-
//# sourceMappingURL=pool-
|
|
632
|
+
//# sourceMappingURL=pool-9EsbKD-U.mjs.map
|
|
@@ -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-Bz8pAU5Q.mjs";
|
|
2
|
+
import "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import "./paths-CypxFTfn.mjs";
|
|
4
|
+
import "./status-Cecau8Ps.mjs";
|
|
5
|
+
import "./pool-9EsbKD-U.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-Db0uDwB9.mjs";
|
|
7
7
|
|
|
8
8
|
export { poolOff, poolOn, poolStatusText };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Et as
|
|
2
|
-
import { i as ledgerPath } from "./paths-
|
|
3
|
-
import { m as fmtTokens } from "./status-
|
|
4
|
-
import { _ as readPoolMetrics, a as formatCarryByProvider, b as spareStats, c as poolHostAlive, f as poolMetricsPath, h as poolSettings, i as bundleBuildStamp, l as poolHostProbe, m as poolPort, o as poolCarry, p as poolPidPath, s as poolDir, u as poolHostStale, v as readPoolState, y as reloadInProgress } from "./pool-
|
|
1
|
+
import { Et as appendLedger, L as writeWorkersSection, M as readWorkersSection, Ot as parseLedger, R as LOOPBACK_HOST } from "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import { i as ledgerPath } from "./paths-CypxFTfn.mjs";
|
|
3
|
+
import { m as fmtTokens } from "./status-Cecau8Ps.mjs";
|
|
4
|
+
import { _ as readPoolMetrics, a as formatCarryByProvider, b as spareStats, c as poolHostAlive, f as poolMetricsPath, h as poolSettings, i as bundleBuildStamp, l as poolHostProbe, m as poolPort, o as poolCarry, p as poolPidPath, s as poolDir, u as poolHostStale, v as readPoolState, y as reloadInProgress } from "./pool-9EsbKD-U.mjs";
|
|
5
5
|
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
7
7
|
import { spawn } from "node:child_process";
|
|
@@ -313,4 +313,4 @@ function spareStatusLines(state, logDir) {
|
|
|
313
313
|
|
|
314
314
|
//#endregion
|
|
315
315
|
export { poolOff as a, poolStatusText as c, spareStatusLines as d, standalonePoolHostPath as f, hostBuildText as i, reloadPoolHost as l, diskBundleMtime as n, poolOn as o, ensurePoolHost as r, poolReloadLive as s, POOL_HEAL_GAP_MS as t, skipReasonLine as u };
|
|
316
|
-
//# sourceMappingURL=pool-cli-
|
|
316
|
+
//# sourceMappingURL=pool-cli-Db0uDwB9.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-SlZ-Z52i.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-BL5oBBgY.mjs";
|
|
4
|
+
import "./embedding-gate-iq0oQEkF.mjs";
|
|
5
5
|
import "./embeddings-BVq3esBF.mjs";
|
|
6
6
|
|
|
7
7
|
export { PostgresBackend };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as DEFAULT_PG_CONNECTION_TIMEOUT_MS, N as postgresConnectionString } from "./config-SlZ-Z52i.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-iq0oQEkF.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-BL5oBBgY.mjs.map
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { c as ok, i as err, n as dim } from "./utils-J2b9y8PC.mjs";
|
|
2
|
-
import {
|
|
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
|
|
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,
|
|
12
|
-
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-
|
|
2
|
+
import { _ as paiHomePath, l as claudeHomeDir } from "./runtime-paths-twfV23YL.mjs";
|
|
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-Bz8pAU5Q.mjs";
|
|
4
|
+
import { i as ledgerPath, r as eventsPath, u as workersLogDir } from "./paths-CypxFTfn.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-O_kU6Q3y.mjs";
|
|
6
|
+
import { B as listStale, C as nowStamp, G as writeContinueToForge, H as parseStatusConfig, I as ForgeError, J as PREAMBLE_REL, L as PROJECT_CONFIG_REL, M as setWorkerNote, Q as projectRoot, U as setClaim, V as loadStatusConfig, a as UNLABELED, g as isLive, k as saveStatus, nt as parseRunnerArgs, o as ageOf, q as PREAMBLE_MAX_BYTES, s as alive, tt as longInlinePromptHint, v as loadStatus, w as ownsPid, y as loadStatuses, z as listClaims } from "./status-Cecau8Ps.mjs";
|
|
7
|
+
import { p as currentWorkerId } from "./scope-BTWstJ1B.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-aJKMIagQ.mjs";
|
|
9
|
+
import { C as statusMarker, S as realDeps, T as waitOn, a as runWait, w as statusQueue } from "./wait-C5iWILj_.mjs";
|
|
10
|
+
import { n as breakStaleMutex } from "./caller-identity-C6Nc96iM.mjs";
|
|
11
|
+
import { a as liveQueue, g as sessionOf, o as providerCap, p as reorderQueue, s as queueRows, t as admitCap } from "./capacity-B2PgKAg4.mjs";
|
|
12
|
+
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-DFd4pp-w.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
|
|
17
|
-
import {
|
|
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
|
|
24
|
-
import { _ as unsetCapabilityPreference, a as describeCapabilities, c as modelPrefsText, d as setCapabilityPreference, h as setProviderModel, o as describeModels, u as resolveProviderName } from "./providers-C9QC0TtO.mjs";
|
|
14
|
+
import { c as resolveFromModule } from "./postgres-BL5oBBgY.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-DE9Q0ldN.mjs";
|
|
16
|
+
import { $ as checkPaneForWorker, A as tail, Gt as LOCAL_FAILURE_LIMIT, H as planLogTail, Ht as handoffFromInside, J as queueLockPath, Jt as routeLine, Kt as classifyRoute, N as filesOverlap, R as followPlanLog, W as planRunEnded, Z as withRunLock, c as setMuted, ct as openFollowPane, et as closeEndedPanes, ft as paneBackend, gt as workerEnded, ht as resolveHostSession, lt as openPaneForWorker, pt as paneMayClose, qt as localFailures, st as loadRegistry } from "./controls-rIItFeIJ.mjs";
|
|
17
|
+
import { G as commandToRun, K as runProbed, W as DEFAULT_IDLE_SECS, et as parentFromEnv } from "./render-jPpMrudf.mjs";
|
|
18
|
+
import { r as sayToWorker } from "./operator-Br6GeswF.mjs";
|
|
19
|
+
import { i as killTree } from "./kill-tree-DPiMscaY.mjs";
|
|
20
|
+
import { t as runChain } from "./chain-CtK49-Ma.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-DLYy9-4g.mjs";
|
|
22
|
+
import { a as followTailOutput, d as psOutput, f as replayOutput, m as statusLineOutput, o as followWorkers } from "./viewer-DvBg6N22.mjs";
|
|
23
|
+
import { _ as unsetCapabilityPreference, a as describeCapabilities, c as modelPrefsText, d as setCapabilityPreference, h as setProviderModel, o as describeModels, u as resolveProviderName } from "./providers-BNV7CzC-.mjs";
|
|
25
24
|
import { appendFileSync, copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, renameSync, rmSync, rmdirSync, statSync, writeFileSync } from "node:fs";
|
|
26
25
|
import { createHash, randomBytes } from "node:crypto";
|
|
27
26
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1466,7 +1465,7 @@ const errorsCommand = {
|
|
|
1466
1465
|
examples: ["pai worker errors", "pai worker errors --since 2h"],
|
|
1467
1466
|
seeAlso: ["pai worker log"],
|
|
1468
1467
|
run: (ctx) => guard("pai worker errors --since 24h", async () => {
|
|
1469
|
-
const { errorsTable, groupToolErrors, parseSince, readToolErrors } = await import("./tool-errors-
|
|
1468
|
+
const { errorsTable, groupToolErrors, parseSince, readToolErrors } = await import("./tool-errors-COM2JGEr.mjs");
|
|
1470
1469
|
const since = str(ctx.opts.since) ?? "24h";
|
|
1471
1470
|
const ms = parseSince(since);
|
|
1472
1471
|
if (ms === null) throw new Error(`bad --since "${since}" (use 30m, 2h, 1d)`);
|
|
@@ -3012,7 +3011,7 @@ async function projectChecks(cwd, d = {}) {
|
|
|
3012
3011
|
}
|
|
3013
3012
|
async function realDaemonStart() {
|
|
3014
3013
|
try {
|
|
3015
|
-
const [{ PaiClient }, { loadConfig }] = await Promise.all([import("./ipc-client-
|
|
3014
|
+
const [{ PaiClient }, { loadConfig }] = await Promise.all([import("./ipc-client-DmbSIBUK.mjs"), import("./config-DHgPx3ER.mjs")]);
|
|
3016
3015
|
const s = await new PaiClient(loadConfig().socketPath).status();
|
|
3017
3016
|
return Date.now() - Number(s.uptime) * 1e3;
|
|
3018
3017
|
} catch {
|
|
@@ -3029,4 +3028,4 @@ function realBuildTime() {
|
|
|
3029
3028
|
|
|
3030
3029
|
//#endregion
|
|
3031
3030
|
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-
|
|
3031
|
+
//# sourceMappingURL=project-setup-DHxdJjEc.mjs.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import "./paths-CypxFTfn.mjs";
|
|
4
|
+
import "./status-Cecau8Ps.mjs";
|
|
5
|
+
import "./scope-BTWstJ1B.mjs";
|
|
6
|
+
import "./routing-aJKMIagQ.mjs";
|
|
7
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
8
|
+
import "./wait-C5iWILj_.mjs";
|
|
9
|
+
import "./local-tiers-CqwGUcEn.mjs";
|
|
10
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
11
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
12
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
13
|
+
import "./local-candidate-DFd4pp-w.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-BNV7CzC-.mjs";
|
|
15
|
+
|
|
16
|
+
export { setProviderEnabled, useProvider };
|
|
@@ -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 {
|
|
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-Bz8pAU5Q.mjs";
|
|
2
|
+
import { n as CONFIG_FILE, o as expandHome, s as homeRel } from "./config-SlZ-Z52i.mjs";
|
|
3
|
+
import { u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
4
|
+
import { a as clearCooldown, d as probeQuota, hn as LOCAL_MECHANISM_LINE, p as quotaSkipThreshold, pt as isLoopbackProvider } from "./routing-aJKMIagQ.mjs";
|
|
5
|
+
import { h as resolveCap, t as admitCap } from "./capacity-B2PgKAg4.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-BNV7CzC-.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as paiHomePath, m as migratePaiDir, v as resolvePaiFile } from "./runtime-paths-twfV23YL.mjs";
|
|
2
2
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -85,4 +85,4 @@ function saveQueryResult(record) {
|
|
|
85
85
|
|
|
86
86
|
//#endregion
|
|
87
87
|
export { queriesDirPath as n, saveQueryResult as r, migrateQueriesDir as t };
|
|
88
|
-
//# sourceMappingURL=query-feedback-
|
|
88
|
+
//# sourceMappingURL=query-feedback-BWl2HRwN.mjs.map
|