@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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./utils-J2b9y8PC.mjs";
|
|
2
|
+
import "./migrate-C2z1YmWC.mjs";
|
|
3
|
+
import "./config-Bz8pAU5Q.mjs";
|
|
4
|
+
import "./config-SlZ-Z52i.mjs";
|
|
5
|
+
import "./paths-CypxFTfn.mjs";
|
|
6
|
+
import "./worktree-O_kU6Q3y.mjs";
|
|
7
|
+
import "./status-Cecau8Ps.mjs";
|
|
8
|
+
import "./pool-9EsbKD-U.mjs";
|
|
9
|
+
import "./registrable-Dxs4oKIj.mjs";
|
|
10
|
+
import "./pai-marker-D6OoVbM_.mjs";
|
|
11
|
+
import "./helpers-CRuBUas3.mjs";
|
|
12
|
+
import "./scope-BTWstJ1B.mjs";
|
|
13
|
+
import "./routing-aJKMIagQ.mjs";
|
|
14
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
15
|
+
import "./wait-C5iWILj_.mjs";
|
|
16
|
+
import "./local-tiers-CqwGUcEn.mjs";
|
|
17
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
18
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
19
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
20
|
+
import "./local-candidate-DFd4pp-w.mjs";
|
|
21
|
+
import "./factory-CYwa0jYj.mjs";
|
|
22
|
+
import "./postgres-BL5oBBgY.mjs";
|
|
23
|
+
import "./embedding-gate-iq0oQEkF.mjs";
|
|
24
|
+
import "./embeddings-BVq3esBF.mjs";
|
|
25
|
+
import "./router-D2476pOp.mjs";
|
|
26
|
+
import "./detect-DLjeYwnt.mjs";
|
|
27
|
+
import "./helpers-Dj2nY56t.mjs";
|
|
28
|
+
import "./scan-CNMcltOX.mjs";
|
|
29
|
+
import "./session-HBYOABWU.mjs";
|
|
30
|
+
import "./launch-Bn2Zf90h.mjs";
|
|
31
|
+
import "./health-D0mUAVdw.mjs";
|
|
32
|
+
import "./launch-BZT3JDoZ.mjs";
|
|
33
|
+
import { _ as setupsTable, a as lastSetup, b as truncate, c as localState, d as pickerOpts, f as plainTable, g as runRoot, h as runNewWith, i as lastOnLabel, l as matchRows, m as rootCommand, n as ago, o as launchKey, p as resolveSetup, r as finishCd, s as launchScreen, t as CANCELLED, u as pickerLayout, v as startSession, y as systemTerm } from "./root-DmOzMeSv.mjs";
|
|
34
|
+
import "./session-scan-CX3MKCNg.mjs";
|
|
35
|
+
|
|
36
|
+
export { runNewWith };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as workersLogDir } from "./paths-
|
|
3
|
-
import { d as terminalHasName } from "./scope-
|
|
4
|
-
import { An as
|
|
1
|
+
import { M as readWorkersSection, b as nativeOrchestratorModel, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import { u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
3
|
+
import { d as terminalHasName } from "./scope-BTWstJ1B.mjs";
|
|
4
|
+
import { An as httpModelsCheck, Cn as resolveLocalProvider, Dn as allSetups, Fn as setupWorkersLabel, Ln as shortModel, Mn as orchestratorLabel, On as downLocalProviders, Pn as setupProfile, Rn as workersLabel, dn as getProfile, jn as loadSaved, kn as findSetup, mn as updateProfile, o as cooldownRemaining, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV } from "./routing-aJKMIagQ.mjs";
|
|
5
5
|
import { n as OPT, t as CliError } from "./define-CjJsmq-6.mjs";
|
|
6
|
-
import { C as assertAvailable, D as execHarness, E as dryRunText, O as looksLikePath, T as buildHarness, k as prepareDir, r as collectView, w as modelFor } from "./session-
|
|
7
|
-
import { o as launchableProviderNames, t as LaunchError } from "./launch-
|
|
8
|
-
import { a as colorEnabled, f as renderTable, n as readBudget, o as makeStyle, p as suggest, t as providerHealth } from "./health-
|
|
9
|
-
import { i as probeResume } from "./launch-
|
|
6
|
+
import { C as assertAvailable, D as execHarness, E as dryRunText, O as looksLikePath, T as buildHarness, k as prepareDir, r as collectView, w as modelFor } from "./session-HBYOABWU.mjs";
|
|
7
|
+
import { o as launchableProviderNames, t as LaunchError } from "./launch-Bn2Zf90h.mjs";
|
|
8
|
+
import { a as colorEnabled, f as renderTable, n as readBudget, o as makeStyle, p as suggest, t as providerHealth } from "./health-D0mUAVdw.mjs";
|
|
9
|
+
import { i as probeResume } from "./launch-BZT3JDoZ.mjs";
|
|
10
10
|
import { writeFileSync } from "node:fs";
|
|
11
11
|
import { basename } from "node:path";
|
|
12
12
|
import { emitKeypressEvents } from "node:readline";
|
|
@@ -683,7 +683,7 @@ async function runRoot(args, term = systemTerm()) {
|
|
|
683
683
|
with: args.with,
|
|
684
684
|
dryRun: args.dryRun
|
|
685
685
|
}, term);
|
|
686
|
-
return (await import("./session-
|
|
686
|
+
return (await import("./session-DgZifjLx.mjs")).runNewDefault({
|
|
687
687
|
dir: args.name,
|
|
688
688
|
dryRun: args.dryRun
|
|
689
689
|
});
|
|
@@ -791,4 +791,4 @@ const rootCommand = {
|
|
|
791
791
|
|
|
792
792
|
//#endregion
|
|
793
793
|
export { setupsTable as _, lastSetup as a, truncate as b, localState as c, pickerOpts as d, plainTable as f, runRoot as g, runNewWith as h, lastOnLabel as i, matchRows as l, rootCommand as m, ago as n, launchKey as o, resolveSetup as p, finishCd as r, launchScreen as s, CANCELLED as t, pickerLayout as u, startSession as v, systemTerm as y };
|
|
794
|
-
//# sourceMappingURL=root-
|
|
794
|
+
//# sourceMappingURL=root-DmOzMeSv.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { Bt as resolveSelector, Ft as clearSessionRoute, Gt as servingChip, Ht as routeChoices, It as configuredLocal, Jt as setRoute, Kt as sessionRoutesPatch, Lt as entryLabel, Nt as TIGHT_PERCENT, Pt as applyPolicyToRoutes, Rt as flowText, Ut as routeRows, Vt as resolveSessionArg, Wt as routeText, Xt as tierFlow, Yt as setSessionRoute, Zt as validateRoute, qt as sessionStartTarget, zt as parseSelector } from "./routing-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
|
+
|
|
15
|
+
export { setRoute };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as aibrokerSocketPath } from "./runtime-paths-
|
|
1
|
+
import { n as aibrokerSocketPath } from "./runtime-paths-twfV23YL.mjs";
|
|
2
2
|
import { n as isTestRunner } from "./test-isolation-lqSmYxr0.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
@@ -278,4 +278,4 @@ async function routeNotification(payload, config) {
|
|
|
278
278
|
|
|
279
279
|
//#endregion
|
|
280
280
|
export { routeNotification as n, recordedNotifications as t };
|
|
281
|
-
//# sourceMappingURL=router-
|
|
281
|
+
//# sourceMappingURL=router-D2476pOp.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./paths-
|
|
4
|
-
import "./status-
|
|
5
|
-
import "./scope-
|
|
6
|
-
import { _ as resolveTarget, a as clearCooldown, c as exclusionReason, d as probeQuota, f as quotaExceeded, g as resolveCapabilityRun, h as recordBudgetCooldowns, i as capabilityForRun, l as isQuotaFailure, m as readRoutingState, n as NoProviderError, o as cooldownRemaining, p as quotaSkipThreshold, r as autoOrder, s as entryModel, t as BUDGET_COOLDOWN_MIN, u as nextAutoProvider, v as setCooldown, y as writeRoutingState } from "./routing-
|
|
7
|
-
import "./tool-errors-
|
|
8
|
-
import "./wait-
|
|
9
|
-
import "./local-tiers-
|
|
10
|
-
import "./caller-identity-
|
|
11
|
-
import "./capacity-
|
|
12
|
-
import "./local-instances-
|
|
13
|
-
import "./local-candidate-
|
|
1
|
+
import "./config-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 resolveTarget, a as clearCooldown, c as exclusionReason, d as probeQuota, f as quotaExceeded, g as resolveCapabilityRun, h as recordBudgetCooldowns, i as capabilityForRun, l as isQuotaFailure, m as readRoutingState, n as NoProviderError, o as cooldownRemaining, p as quotaSkipThreshold, r as autoOrder, s as entryModel, t as BUDGET_COOLDOWN_MIN, u as nextAutoProvider, v as setCooldown, y as writeRoutingState } from "./routing-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 { BUDGET_COOLDOWN_MIN, NoProviderError, autoOrder, capabilityForRun, clearCooldown, cooldownRemaining, entryModel, exclusionReason, isQuotaFailure, nextAutoProvider, probeQuota, quotaExceeded, quotaSkipThreshold, readRoutingState, recordBudgetCooldowns, resolveCapabilityRun, resolveTarget, setCooldown, writeRoutingState };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as paiHomePath, g as paiHomeDir } from "./runtime-paths-twfV23YL.mjs";
|
|
2
2
|
import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
|
|
3
|
-
import { A as providerQuotaSkipAt,
|
|
4
|
-
import { c as loadConfig, f as readMainConfigRaw } from "./config-
|
|
5
|
-
import { s as routingStatePath, u as workersLogDir } from "./paths-
|
|
6
|
-
import { g as isLive, v as loadStatus, y as loadStatuses } from "./status-
|
|
7
|
-
import { o as resolveSession, p as currentWorkerId, t as AIBROKER_REGISTRY } from "./scope-
|
|
8
|
-
import { x as recordToolError } from "./tool-errors-
|
|
9
|
-
import { _ as readLocalConfig, d as installedModelDirs, p as logPathFor } from "./local-tiers-
|
|
10
|
-
import { a as buildsDir, l as listBuildsSync, t as callerIdentity } from "./caller-identity-
|
|
3
|
+
import { A as providerQuotaSkipAt, B as isLoopbackUrl$1, F as resolveProviderKey, L as writeWorkersSection, M as readWorkersSection, N as resolveCapability, O as providerCostTier, P as resolveModelCapability, R as LOOPBACK_HOST, V as loopbackUrl$1, b as nativeOrchestratorModel, bt as stripModelVariant, c as WorkersConfigError, dt as findTier, ft as listForPolicy, gt as targetList, ht as sessionTier, lt as classRoute, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, pt as migrateSessionRoutes, rt as workersYamlPath, s as WORKER_CLASSES, st as MAX_ROUTE_MODELS, t as ANTHROPIC_NATIVE, u as classModelCapability, ut as entryProvider, y as nativeAnthropicProvider, z as isLoopbackHostname } from "./config-Bz8pAU5Q.mjs";
|
|
4
|
+
import { c as loadConfig, f as readMainConfigRaw } from "./config-SlZ-Z52i.mjs";
|
|
5
|
+
import { s as routingStatePath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
6
|
+
import { g as isLive, v as loadStatus, y as loadStatuses } from "./status-Cecau8Ps.mjs";
|
|
7
|
+
import { o as resolveSession, p as currentWorkerId, t as AIBROKER_REGISTRY } from "./scope-BTWstJ1B.mjs";
|
|
8
|
+
import { x as recordToolError } from "./tool-errors-BFw1gv-z.mjs";
|
|
9
|
+
import { _ as readLocalConfig, d as installedModelDirs, p as logPathFor } from "./local-tiers-CqwGUcEn.mjs";
|
|
10
|
+
import { a as buildsDir, l as listBuildsSync, t as callerIdentity } from "./caller-identity-C6Nc96iM.mjs";
|
|
11
11
|
import { a as newPrefill, c as schedEnabled, f as sharedScheduler } from "./scheduler-CtUyWJ3O.mjs";
|
|
12
|
-
import { i as effectiveCap } from "./capacity-
|
|
13
|
-
import { i as instanceNumber, l as readInstances, r as instanceEngineKey, s as pickInstance, t as endpointRegistry, u as readLiveInstances } from "./local-instances-
|
|
14
|
-
import { c as writeLocalStatus, n as tierProviderNames, r as LOCAL_STATUS_REFRESH_MS, s as readLocalStatus, t as isLocalCandidate } from "./local-candidate-
|
|
12
|
+
import { i as effectiveCap } from "./capacity-B2PgKAg4.mjs";
|
|
13
|
+
import { i as instanceNumber, l as readInstances, r as instanceEngineKey, s as pickInstance, t as endpointRegistry, u as readLiveInstances } from "./local-instances-DhF4_sV2.mjs";
|
|
14
|
+
import { c as writeLocalStatus, n as tierProviderNames, r as LOCAL_STATUS_REFRESH_MS, s as readLocalStatus, t as isLocalCandidate } from "./local-candidate-DFd4pp-w.mjs";
|
|
15
15
|
import { n as TAILSCALE_STATUS_TIMEOUT_MS, t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
|
|
16
16
|
import { appendFileSync, chmodSync, closeSync, existsSync, fstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
17
17
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1664,7 +1664,7 @@ function currentSessionName(env = process.env) {
|
|
|
1664
1664
|
*/
|
|
1665
1665
|
async function registryProjectName(cwd) {
|
|
1666
1666
|
try {
|
|
1667
|
-
const { detectProject } = await import("./detect-
|
|
1667
|
+
const { detectProject } = await import("./detect-C8nFP-kR.mjs");
|
|
1668
1668
|
return (await detectProject(cwd))?.display_name || void 0;
|
|
1669
1669
|
} catch {
|
|
1670
1670
|
return;
|
|
@@ -1690,7 +1690,7 @@ async function detectSessionName(env = process.env, deps = {}) {
|
|
|
1690
1690
|
let name;
|
|
1691
1691
|
const registry = deps.registryPath ?? AIBROKER_REGISTRY;
|
|
1692
1692
|
const claudeId = env.CLAUDE_CODE_SESSION_ID?.trim();
|
|
1693
|
-
const { loadBrokerNames, transcriptCustomTitle } = await import("./session-scan-
|
|
1693
|
+
const { loadBrokerNames, transcriptCustomTitle } = await import("./session-scan-BZxnYN1v.mjs");
|
|
1694
1694
|
name = resolveSession(env.ITERM_SESSION_ID ?? "", registry)?.name ?? (claudeId ? loadBrokerNames(registry, deps.mapPath).get(claudeId) ?? transcriptCustomTitle(claudeId, deps.projectsDir) : void 0) ?? await (deps.projectName ?? registryProjectName)(cwd);
|
|
1695
1695
|
cached = {
|
|
1696
1696
|
key,
|
|
@@ -6025,5 +6025,5 @@ function resolveCapabilityRun(config, capability) {
|
|
|
6025
6025
|
}
|
|
6026
6026
|
|
|
6027
6027
|
//#endregion
|
|
6028
|
-
export { parseFootprint as $,
|
|
6029
|
-
//# sourceMappingURL=routing-
|
|
6028
|
+
export { parseFootprint as $, usageLogFile as $n, clearPolicy as $t, budgetSkipReason as A, httpModelsCheck as An, resolveBindAddress as At, MODEL_INVENTORY_MAX_AGE_MS as B, setParkConfigSource as Bn, resolveSelector as Bt, detectSessionProvider as C, resolveLocalProvider as Cn, removeRunSettings as Ct, budgetExceeded as D, allSetups as Dn, routerPort as Dt, budgetCache as E, PORT_TIMEOUT_MS as En, routerHandler as Et, LimitsCache as F, setupWorkersLabel as Fn, clearSessionRoute as Ft, fmtMem as G, appendUsage as Gn, servingChip as Gt, ProbeHold as H, recordDuration as Hn, routeChoices as Ht, buildSpeed as I, setupsPath as In, configuredLocal as It, inventoryRows as J, isTimeOrdered as Jn, setRoute as Jt, fmtMemMapped as K, formatSessionStats as Kn, sessionRoutesPatch as Kt, percentile as L, shortModel as Ln, entryLabel as Lt, budgetWall as M, orchestratorLabel as Mn, loopbackRefusal as Mt, fetchBudgetReading as N, saveSetup as Nn, TIGHT_PERCENT as Nt, budgetFresh as O, downLocalProviders as On, defaultV1Guard as Ot, pickBudgetWindow as P, setupProfile as Pn, applyPolicyToRoutes as Pt, modelLabel as Q, splitBySessionKind as Qn, POLICY_MODES as Qt, DOWN_AFTER_MISSES as R, workersLabel as Rn, flowText as Rt, applySessionProviderEnv as S, providerHostPort as Sn, gcSettingsFiles as St, BudgetCache as T, startLocalStatusRefresh as Tn, duplicateModelIds as Tt, computeInventory as U, aggregate as Un, routeRows as Ut, MODEL_INVENTORY_REFRESH_MS as V, sharedParker as Vn, resolveSessionArg as Vt, currentInventory as W, aggregateBySession as Wn, routeText as Wt, liveDeps as X, parseSince as Xn, tierFlow as Xt, inventoryText as Y, markTimeOrdered as Yn, setSessionRoute as Yt, modelKind as Z, readUsage as Zn, validateRoute as Zt, resolveTarget as _, currentLocalStatus as _n, nativeRoutePreflight as _t, clearCooldown as a, readPolicy as an, readInventoryInput as at, SESSION_PROVIDER_ENV as b, pickLocal as bn, routeLoopbackViaRouter as bt, exclusionReason as c, detectSessionName as cn, writeInventory as ct, probeQuota as d, getProfile as dn, claudeCommand as dt, committedFallThrough as en, parseSizeMb as et, quotaExceeded as f, profilesPath as fn, claudeSettingsExtra as ft, resolveCapabilityRun as g, NoLocalServerError as gn, nativeLaunchSettingsArgs as gt, recordBudgetCooldowns as h, LOCAL_MECHANISM_LINE as hn, nativeLaunchEnv as ht, capabilityForRun as i, parseDuration as in, readInventory as it, budgetUntilLabel as j, loadSaved as jn, isTailnetOrLocalName as jt, budgetFull as k, findSetup as kn, displayHost as kt, isQuotaFailure as l, BATCH_ENV as ln, addSchedulingHeaders as lt, readRoutingState as m, updateProfile as mn, loopbackRouterChoice as mt, NoProviderError as n, findLocal as nn, processTreeMemory as nt, cooldownRemaining as o, routeRun as on, readModelLabels as ot, quotaSkipThreshold as p, readProfiles as pn, isLoopbackProvider as pt, inventoryPath as q, formatStats as qn, sessionStartTarget as qt, autoOrder as r, onBattery as rn, processTreeRssMb as rt, entryModel as s, writePolicy as sn, startInventoryRefresh as st, BUDGET_COOLDOWN_MIN as t, fallThroughReason as tn, parseTable as tt, nextAutoProvider as u, SESSION_NAME_ENV as un, buildRunEnv as ut, setCooldown as v, localProviderForDelegation as vn, pinnedSettings as vt, BUDGET_TTL_MS as w, resolveRunnerProvider as wn, writePrivateFile as wt, SESSION_WORKER_PROVIDER_ENV as x, probeLoopback as xn, routeVerdictLine as xt, writeRoutingState as y, localTierOrder as yn, pinnedSettingsArgs as yt, INVENTORY_HEADERS as z, parkConfigFrom as zn, parseSelector as zt };
|
|
6029
|
+
//# sourceMappingURL=routing-aJKMIagQ.mjs.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ct as
|
|
3
|
-
import { _ as effectiveWorkersYamlRaw } from "./config-
|
|
4
|
-
import { i as ledgerPath, n as ensureNoMcpConfig, r as eventsPath, u as workersLogDir } from "./paths-
|
|
5
|
-
import { A as applyScratchEnv, C as worktreeWanted, S as worktreeSystemPrompt, _ as ownedTree, a as archiveEmptyResult, f as gcWorktreesThrottled, h as markResumed, i as adoptTree, j as scratchPromptLine, o as commitLines, p as inPlaceSystemPrompt, r as addWorktree, t as GATE_MARK, v as recordWorktree, w as worktreesDir, x as worktreeRefusesStart, y as salvageOnExit } from "./worktree-
|
|
6
|
-
import { C as nowStamp, D as pidAlive, E as parseSleepSecs,
|
|
7
|
-
import { D as readMcpServers, E as mcpServersFromToolGrants, O as writeMcpConfig, S as inputSideTokens, T as grantsChrome, d as poolIneligibleReason, g as postTaskToPool, h as poolSettings, n as SLOT_TOOLS, r as UNIT_MARKER, t as SHARED_MARKER, w as expandMcpNames, y as reloadInProgress } from "./pool-
|
|
8
|
-
import { i as itermUuid, o as resolveSession, s as resolveSpawnerSession } from "./scope-
|
|
9
|
-
import {
|
|
1
|
+
import { _ as paiHomePath, l as claudeHomeDir } from "./runtime-paths-twfV23YL.mjs";
|
|
2
|
+
import { Ct as planEscalation, Et as appendLedger, F as resolveProviderKey, M as readWorkersSection, P as resolveModelCapability, R as LOOPBACK_HOST, St as ledgerEscalate, Tt as withSummary, c as WorkersConfigError, ct as applyRouteOverrides, f as escalationCloud, h as isModelCapability, j as readWorkersCached, k as providerKeyPath, l as assertProviderRunnable, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, rt as workersYamlPath, t as ANTHROPIC_NATIVE, u as classModelCapability, v as nativeAnthropicModels, vt as certainContextWindow, wt as sessionNote } from "./config-Bz8pAU5Q.mjs";
|
|
3
|
+
import { _ as effectiveWorkersYamlRaw } from "./config-SlZ-Z52i.mjs";
|
|
4
|
+
import { i as ledgerPath, n as ensureNoMcpConfig, r as eventsPath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
5
|
+
import { A as applyScratchEnv, C as worktreeWanted, S as worktreeSystemPrompt, _ as ownedTree, a as archiveEmptyResult, f as gcWorktreesThrottled, h as markResumed, i as adoptTree, j as scratchPromptLine, o as commitLines, p as inPlaceSystemPrompt, r as addWorktree, t as GATE_MARK, v as recordWorktree, w as worktreesDir, x as worktreeRefusesStart, y as salvageOnExit } from "./worktree-O_kU6Q3y.mjs";
|
|
6
|
+
import { $ as appendSystemPromptArgs, A as selfProcStart, C as nowStamp, D as pidAlive, E as parseSleepSecs, Q as projectRoot, S as newWorkerId, X as preambleBlock, Y as loadPreamble, Z as preambleLine, a as UNLABELED, d as describeTool, g as isLive, it as stripPromptValues, k as saveStatus, nt as parseRunnerArgs, rt as shortText, v as loadStatus, x as markStartFailed, y as loadStatuses } from "./status-Cecau8Ps.mjs";
|
|
7
|
+
import { D as readMcpServers, E as mcpServersFromToolGrants, O as writeMcpConfig, S as inputSideTokens, T as grantsChrome, d as poolIneligibleReason, g as postTaskToPool, h as poolSettings, n as SLOT_TOOLS, r as UNIT_MARKER, t as SHARED_MARKER, w as expandMcpNames, y as reloadInProgress } from "./pool-9EsbKD-U.mjs";
|
|
8
|
+
import { i as itermUuid, o as resolveSession, s as resolveSpawnerSession } from "./scope-BTWstJ1B.mjs";
|
|
9
|
+
import { An as httpModelsCheck, Cn as resolveLocalProvider, Ct as removeRunSettings, Dt as routerPort, E as budgetCache, En as PORT_TIMEOUT_MS, S as applySessionProviderEnv, Sn as providerHostPort, _ as resolveTarget, bt as routeLoopbackViaRouter, cn as detectSessionName, dn as getProfile, dt as claudeCommand, en as committedFallThrough, ft as claudeSettingsExtra, g as resolveCapabilityRun, gn as NoLocalServerError, h as recordBudgetCooldowns, hn as LOCAL_MECHANISM_LINE, i as capabilityForRun, k as budgetFull, l as isQuotaFailure, ln as BATCH_ENV, lt as addSchedulingHeaders, n as NoProviderError, o as cooldownRemaining, on as routeRun, pt as isLoopbackProvider, r as autoOrder, tn as fallThroughReason, u as nextAutoProvider, ut as buildRunEnv, v as setCooldown, vt as pinnedSettings, wn as resolveRunnerProvider, wt as writePrivateFile, x as SESSION_WORKER_PROVIDER_ENV, xn as probeLoopback } from "./routing-aJKMIagQ.mjs";
|
|
10
10
|
import { t as maxOf } from "./min-max-DrSRUaWQ.mjs";
|
|
11
|
-
import { b as readToolErrors, h as harnessToolErrorTexts, p as grantedToolNames, x as recordToolError } from "./tool-errors-
|
|
12
|
-
import { _ as workerContractPrompt, b as killProcessTree, c as checkProof, d as parseWorkerReport, f as promptTrailer, g as verifyReportChanges, h as verifyFailNote, l as newUntracked, m as untrackedPaths, o as AG2_REASK_TEXT, s as OPERATOR_MARK, u as noteTokenSentence, v as repairAndValidateAg2, x as processTree, y as validateAg2 } from "./wait-
|
|
13
|
-
import { a as buildsDir, d as releaseBuildsOf } from "./caller-identity-
|
|
14
|
-
import {
|
|
15
|
-
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-
|
|
11
|
+
import { b as readToolErrors, h as harnessToolErrorTexts, p as grantedToolNames, x as recordToolError } from "./tool-errors-BFw1gv-z.mjs";
|
|
12
|
+
import { _ as workerContractPrompt, b as killProcessTree, c as checkProof, d as parseWorkerReport, f as promptTrailer, g as verifyReportChanges, h as verifyFailNote, l as newUntracked, m as untrackedPaths, o as AG2_REASK_TEXT, s as OPERATOR_MARK, u as noteTokenSentence, v as repairAndValidateAg2, x as processTree, y as validateAg2 } from "./wait-C5iWILj_.mjs";
|
|
13
|
+
import { a as buildsDir, d as releaseBuildsOf } from "./caller-identity-C6Nc96iM.mjs";
|
|
14
|
+
import { _ as sessionScopeKey, b as staggerGate, h as resolveCap, n as capacityGate, r as capacityOf, t as admitCap, u as queuedText, y as recordWarmup } from "./capacity-B2PgKAg4.mjs";
|
|
15
|
+
import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-DFd4pp-w.mjs";
|
|
16
16
|
import { t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
|
|
17
|
-
import { i as getRegistryBackend } from "./factory-
|
|
18
|
-
import { c as ensureProxyRunning, i as detectCurrentModel, l as proxyPort } from "./launch-
|
|
19
|
-
import { A as tail,
|
|
20
|
-
import { i as endFields, o as parentInfo, r as decideEndReason, t as appendStopEvent } from "./endreason-
|
|
21
|
-
import { A as resolveLimit, E as armDeadline,
|
|
22
|
-
import { t as createOperatorServer } from "./operator-
|
|
23
|
-
import { i as killTree } from "./kill-tree-
|
|
24
|
-
import { r as ensurePoolHost } from "./pool-cli-
|
|
17
|
+
import { i as getRegistryBackend } from "./factory-CYwa0jYj.mjs";
|
|
18
|
+
import { c as ensureProxyRunning, i as detectCurrentModel, l as proxyPort } from "./launch-Bn2Zf90h.mjs";
|
|
19
|
+
import { A as tail, Ct as openOwnedPane, Q as NoTerminalError, Ut as isHandoffMessage, Vt as deliverHandoff, _ as troublePolicy, _t as paneTitle, at as headlessAllowed, d as aibrokerMessenger, f as detachRun, h as originFromEnv, ht as resolveHostSession, it as followCommand, m as markRunDone, mt as realPaneOps, nt as closePaneForWorker, o as ownerOf, p as eventLine, qt as localFailures, r as returnControlsIfHeld, ut as openVerifiedPane, v as appendRunLog, z as gatePhaseName } from "./controls-rIItFeIJ.mjs";
|
|
20
|
+
import { i as endFields, o as parentInfo, r as decideEndReason, t as appendStopEvent } from "./endreason-C2-hYK0_.mjs";
|
|
21
|
+
import { $ as launchParent, A as resolveLimit, E as armDeadline, I as scanWorkerRun, M as blockedMsOf, O as deadlinePromptLine, Q as isWorkerId, T as recordDenial, X as assertChildAllowed, Z as checkOrphanedChildren, k as extendLimit, w as parseDenialText } from "./render-jPpMrudf.mjs";
|
|
22
|
+
import { t as createOperatorServer } from "./operator-Br6GeswF.mjs";
|
|
23
|
+
import { i as killTree } from "./kill-tree-DPiMscaY.mjs";
|
|
24
|
+
import { r as ensurePoolHost } from "./pool-cli-Db0uDwB9.mjs";
|
|
25
25
|
import { closeSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, realpathSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
|
|
26
26
|
import { createHash, randomBytes } from "node:crypto";
|
|
27
27
|
import { dirname, join, resolve, sep } from "node:path";
|
|
@@ -1087,6 +1087,7 @@ async function finaliseRun(f) {
|
|
|
1087
1087
|
...endFields(end)
|
|
1088
1088
|
});
|
|
1089
1089
|
if (f.worktree) status = recordWorktree(logDir, status, f.worktree, ok);
|
|
1090
|
+
await scanWorkerRun(logDir, status).catch(() => void 0);
|
|
1090
1091
|
const reviewed = f.worktree ? committedFallThrough(f.fallThroughWhy?.(status, report) ?? null, commitLines(f.worktree.dir, f.worktree.base)) : null;
|
|
1091
1092
|
if (reviewed) {
|
|
1092
1093
|
process.stderr.write(`pai worker: ${wid} ended badly but committed — kept for review, no cloud re-run\n`);
|
|
@@ -1281,7 +1282,10 @@ async function tryEscalate(a, wid, st, report, resultText, commits, failureWhy,
|
|
|
1281
1282
|
const p0 = parseRunnerArgs(a.opts.claudeArgs).prompt;
|
|
1282
1283
|
let swapped = false;
|
|
1283
1284
|
return (a.runner ?? runWorker$1)({
|
|
1284
|
-
...relaunchOptions(a.opts, {
|
|
1285
|
+
...relaunchOptions(a.opts, {
|
|
1286
|
+
localFlag: void 0,
|
|
1287
|
+
localName: void 0
|
|
1288
|
+
}),
|
|
1285
1289
|
providerFlag: o.providerFlag,
|
|
1286
1290
|
modelFlag: o.modelFlag,
|
|
1287
1291
|
label: o.label,
|
|
@@ -1299,7 +1303,7 @@ async function tryEscalate(a, wid, st, report, resultText, commits, failureWhy,
|
|
|
1299
1303
|
notifySession: async (text) => {
|
|
1300
1304
|
const target = st.session?.id || st.session?.name || st.sessionKey;
|
|
1301
1305
|
if (!target) return;
|
|
1302
|
-
const { sendToSession } = await import("./aibroker-client-
|
|
1306
|
+
const { sendToSession } = await import("./aibroker-client-ChB7gSxV.mjs");
|
|
1303
1307
|
await sendToSession(target, text, void 0, { noReply: true });
|
|
1304
1308
|
}
|
|
1305
1309
|
});
|
|
@@ -3426,10 +3430,10 @@ function resolveWorkers(args, ctx) {
|
|
|
3426
3430
|
/** The live context: config, this session's profile, fresh budget readings (warmed best effort) and recorded cooldowns. */
|
|
3427
3431
|
async function liveResolveCtx(env = process.env, warm = true) {
|
|
3428
3432
|
const [{ readWorkersSection }, { budgetCache }, { readRoutingState }, { workersLogDir }] = await Promise.all([
|
|
3429
|
-
import("./config-
|
|
3430
|
-
import("./budget-
|
|
3431
|
-
import("./routing-
|
|
3432
|
-
import("./paths-
|
|
3433
|
+
import("./config-DLmyEK2q.mjs"),
|
|
3434
|
+
import("./budget-DEiebT2A.mjs"),
|
|
3435
|
+
import("./routing-B_cg1_Xx.mjs"),
|
|
3436
|
+
import("./paths-DIOwNcj-.mjs")
|
|
3433
3437
|
]);
|
|
3434
3438
|
const { workers } = readWorkersSection();
|
|
3435
3439
|
const profile = getProfile(await detectSessionName(env));
|
|
@@ -3729,6 +3733,13 @@ async function tryPoolRun(a) {
|
|
|
3729
3733
|
if (!a.quiet) printResult(a.parsed.outputFormat, resp.resultEvent ?? null, rc, a.logDir, wid, report);
|
|
3730
3734
|
return rc;
|
|
3731
3735
|
}
|
|
3736
|
+
/** The pane's queue file content from a gate poll: the run's place in line, its label last. */
|
|
3737
|
+
function queuedOf(q, label) {
|
|
3738
|
+
return label ? {
|
|
3739
|
+
...q,
|
|
3740
|
+
label
|
|
3741
|
+
} : q;
|
|
3742
|
+
}
|
|
3732
3743
|
/**
|
|
3733
3744
|
* Capacity gate, then stagger gate, for one headless run — the single place
|
|
3734
3745
|
* both the pooled and the fresh-spawn path pass through. `status` is the
|
|
@@ -3744,6 +3755,14 @@ async function runGates(a, wid, status) {
|
|
|
3744
3755
|
provider: target.providerName
|
|
3745
3756
|
},
|
|
3746
3757
|
cap: admitCap(target.provider.maxConcurrent, target.provider.conversationSlots, isLocalProvider(target.provider.baseUrl)),
|
|
3758
|
+
capOf: () => {
|
|
3759
|
+
try {
|
|
3760
|
+
const p = readWorkersCached().providers[target.providerName] ?? target.provider;
|
|
3761
|
+
return admitCap(p.maxConcurrent, p.conversationSlots, isLocalProvider(p.baseUrl), capacityOf(config.capacity));
|
|
3762
|
+
} catch {
|
|
3763
|
+
return;
|
|
3764
|
+
}
|
|
3765
|
+
},
|
|
3747
3766
|
config: config.capacity,
|
|
3748
3767
|
disabled: a.noQueue,
|
|
3749
3768
|
priority: a.priority,
|
|
@@ -3777,7 +3796,8 @@ async function runGates(a, wid, status) {
|
|
|
3777
3796
|
status.last = saved;
|
|
3778
3797
|
}
|
|
3779
3798
|
saveStatus(logDir, status);
|
|
3780
|
-
}
|
|
3799
|
+
},
|
|
3800
|
+
onQueued: (line) => paneHandles.get(wid)?.setQueued(line === null ? null : queuedOf(line, a.label))
|
|
3781
3801
|
};
|
|
3782
3802
|
const max = status.sessionKey ? getProfile(status.sessionKey)?.max_parallel : void 0;
|
|
3783
3803
|
if (status.sessionKey && max) {
|
|
@@ -3838,6 +3858,7 @@ async function gateStart(a) {
|
|
|
3838
3858
|
id: wid,
|
|
3839
3859
|
pid: process.pid,
|
|
3840
3860
|
runPid: process.pid,
|
|
3861
|
+
procStart: selfProcStart(),
|
|
3841
3862
|
label: a.label,
|
|
3842
3863
|
cwd: a.cwd ?? process.cwd(),
|
|
3843
3864
|
term: "",
|
|
@@ -3906,6 +3927,7 @@ async function foldRun(a, p) {
|
|
|
3906
3927
|
id: wid,
|
|
3907
3928
|
pid: process.pid,
|
|
3908
3929
|
runPid: process.pid,
|
|
3930
|
+
procStart: selfProcStart(),
|
|
3909
3931
|
...parentInfo(),
|
|
3910
3932
|
label,
|
|
3911
3933
|
cwd,
|
|
@@ -4451,6 +4473,7 @@ async function executeImageRun(a) {
|
|
|
4451
4473
|
id: wid,
|
|
4452
4474
|
pid: process.pid,
|
|
4453
4475
|
runPid: process.pid,
|
|
4476
|
+
procStart: selfProcStart(),
|
|
4454
4477
|
label,
|
|
4455
4478
|
cwd,
|
|
4456
4479
|
term,
|
|
@@ -4577,6 +4600,7 @@ async function executeCodexRun(a) {
|
|
|
4577
4600
|
id: wid,
|
|
4578
4601
|
pid: process.pid,
|
|
4579
4602
|
runPid: process.pid,
|
|
4603
|
+
procStart: selfProcStart(),
|
|
4580
4604
|
...parentInfo(),
|
|
4581
4605
|
label,
|
|
4582
4606
|
cwd,
|
|
@@ -4896,7 +4920,7 @@ async function runWorker(opts) {
|
|
|
4896
4920
|
if (gc?.length) process.stderr.write(`pai worker: archived ${gc.length} leftover worktree(s) (pai worker gc)\n`);
|
|
4897
4921
|
} catch {}
|
|
4898
4922
|
if (opts.className === "plan" && !opts._planner) {
|
|
4899
|
-
const { runPlanner } = await import("./planner-
|
|
4923
|
+
const { runPlanner } = await import("./planner-BzZ_2lc-.mjs");
|
|
4900
4924
|
return runPlanner(opts);
|
|
4901
4925
|
}
|
|
4902
4926
|
const parent = launchParent(opts.parent);
|
|
@@ -5120,4 +5144,4 @@ setRunWorker(runWorker);
|
|
|
5120
5144
|
|
|
5121
5145
|
//#endregion
|
|
5122
5146
|
export { routerPidFile as A, usageContextTokens as B, workerUsage as C, routerHandoverFile as D, probeRouter as E, startHandover as F, testProvider as H, paneWaiver as I, launchPane as L, routerSwapArgs as M, runRouterTick as N, routerIsStale as O, spawnRouter as P, noTerminalReasons as R, usageJson as S, projectLaunchConfig as T, endProcesses as U, printResult as V, findWorktreeOrphans as W, stopLaunchedWorkers as _, resolveWorkers as a, renderUsage as b, reportOriginWithHost as c, capture as d, dirtyPaths as f, realRunnerDeps as g, realCommitsAhead as h, liveResolveCtx as i, routerRunningPid as j, routerLogFile as k, runMessenger as l, mergeBranch as m, LocalProviderRefusedError as n, sessionWorkersLine as o, launchWorker as p, PoolRefusedError as r, finishDetached as s, runWorker as t, startDetached as u, parseWhen as v, pinNotices as w, transcriptUsage as x, priceTableText as y, recordSystemJobStart as z };
|
|
5123
|
-
//# sourceMappingURL=run-
|
|
5147
|
+
//# sourceMappingURL=run-DE9Q0ldN.mjs.map
|
|
@@ -251,5 +251,5 @@ function paiCacheDir() {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
//#endregion
|
|
254
|
-
export {
|
|
255
|
-
//# sourceMappingURL=runtime-paths-
|
|
254
|
+
export { paiHomePath as _, paiCacheDir as a, PaiFileMigrationError as c, defaultPaiHomeDir as d, legacyConfigDir as f, paiHomeDir as g, migratePaiFile as h, daemonPidPath as i, claudeHomeDir as l, migratePaiDir as m, aibrokerSocketPath as n, paiSocketPath as o, legacyPaiHomeDir as p, daemonLogPath as r, schedulerLogPath as s, aibrokerHomeDir as t, claudeProjectsDir as u, resolvePaiFile as v };
|
|
255
|
+
//# sourceMappingURL=runtime-paths-twfV23YL.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as warn, c as ok, i as err, n as dim, r as encodeDir, s as now, t as bold } from "./utils-J2b9y8PC.mjs";
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as slugify, i as parseSessionFilename, n as decodeEncodedDir, t as buildEncodedDirMap } from "./migrate-
|
|
4
|
-
import {
|
|
5
|
-
import { a as unregistrableReason, o as workerWorktreesRoot, r as pruneWorktreeProjects } from "./registrable-
|
|
6
|
-
import { n as ensurePaiMarker, t as discoverPaiMarkers } from "./pai-marker-
|
|
7
|
-
import { i as getRegistryBackend } from "./factory-
|
|
2
|
+
import { _ as paiHomePath, d as defaultPaiHomeDir, h as migratePaiFile, u as claudeProjectsDir$1, v as resolvePaiFile } from "./runtime-paths-twfV23YL.mjs";
|
|
3
|
+
import { a as slugify, i as parseSessionFilename, n as decodeEncodedDir, t as buildEncodedDirMap } from "./migrate-C2z1YmWC.mjs";
|
|
4
|
+
import { O as readJsonStrict, k as writeJsonAtomic, o as expandHome } from "./config-SlZ-Z52i.mjs";
|
|
5
|
+
import { a as unregistrableReason, o as workerWorktreesRoot, r as pruneWorktreeProjects } from "./registrable-Dxs4oKIj.mjs";
|
|
6
|
+
import { n as ensurePaiMarker, t as discoverPaiMarkers } from "./pai-marker-D6OoVbM_.mjs";
|
|
7
|
+
import { i as getRegistryBackend } from "./factory-CYwa0jYj.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, join, resolve } from "node:path";
|
|
10
10
|
import { homedir } from "node:os";
|
|
@@ -718,4 +718,4 @@ async function cmdScan(opts = {}) {
|
|
|
718
718
|
|
|
719
719
|
//#endregion
|
|
720
720
|
export { resolveHome as a, upsertSession as c, scanTranscriptFolders as d, transcriptFiles as f, performScan as i, claudeProjectsDir as l, loadScanConfig as n, saveScanConfig as o, migrateScanConfig as r, upsertProject as s, cmdScan as t, findMovedProjects as u };
|
|
721
|
-
//# sourceMappingURL=scan-
|
|
721
|
+
//# sourceMappingURL=scan-CNMcltOX.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as slotCurrentPath, u as workersLogDir } from "./paths-
|
|
3
|
-
import { _ as isTerminal, v as loadStatus } from "./status-
|
|
1
|
+
import { M as readWorkersSection } from "./config-Bz8pAU5Q.mjs";
|
|
2
|
+
import { c as slotCurrentPath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
|
|
3
|
+
import { _ as isTerminal, v as loadStatus } from "./status-Cecau8Ps.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { homedir } from "node:os";
|
|
@@ -221,4 +221,4 @@ function terminalHasName(name, term, registryPath = AIBROKER_REGISTRY) {
|
|
|
221
221
|
|
|
222
222
|
//#endregion
|
|
223
223
|
export { ownerSessionName as a, scopeKey as c, terminalHasName as d, workerInScope as f, itermUuid as i, sessionMapPath as l, currentTabKey as n, resolveSession as o, currentWorkerId as p, itermForClaudeSession as r, resolveSpawnerSession as s, AIBROKER_REGISTRY as t, sessionTag as u };
|
|
224
|
-
//# sourceMappingURL=scope-
|
|
224
|
+
//# sourceMappingURL=scope-BTWstJ1B.mjs.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "./utils-J2b9y8PC.mjs";
|
|
2
|
+
import "./migrate-C2z1YmWC.mjs";
|
|
3
|
+
import "./config-Bz8pAU5Q.mjs";
|
|
4
|
+
import "./config-SlZ-Z52i.mjs";
|
|
5
|
+
import "./paths-CypxFTfn.mjs";
|
|
6
|
+
import "./worktree-O_kU6Q3y.mjs";
|
|
7
|
+
import "./status-Cecau8Ps.mjs";
|
|
8
|
+
import "./pool-9EsbKD-U.mjs";
|
|
9
|
+
import "./registrable-Dxs4oKIj.mjs";
|
|
10
|
+
import "./pai-marker-D6OoVbM_.mjs";
|
|
11
|
+
import "./helpers-CRuBUas3.mjs";
|
|
12
|
+
import "./scope-BTWstJ1B.mjs";
|
|
13
|
+
import "./routing-aJKMIagQ.mjs";
|
|
14
|
+
import "./tool-errors-BFw1gv-z.mjs";
|
|
15
|
+
import "./wait-C5iWILj_.mjs";
|
|
16
|
+
import "./local-tiers-CqwGUcEn.mjs";
|
|
17
|
+
import "./caller-identity-C6Nc96iM.mjs";
|
|
18
|
+
import "./capacity-B2PgKAg4.mjs";
|
|
19
|
+
import "./local-instances-DhF4_sV2.mjs";
|
|
20
|
+
import "./local-candidate-DFd4pp-w.mjs";
|
|
21
|
+
import "./factory-CYwa0jYj.mjs";
|
|
22
|
+
import "./postgres-BL5oBBgY.mjs";
|
|
23
|
+
import "./embedding-gate-iq0oQEkF.mjs";
|
|
24
|
+
import "./embeddings-BVq3esBF.mjs";
|
|
25
|
+
import "./router-D2476pOp.mjs";
|
|
26
|
+
import "./detect-DLjeYwnt.mjs";
|
|
27
|
+
import "./helpers-Dj2nY56t.mjs";
|
|
28
|
+
import "./scan-CNMcltOX.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-HBYOABWU.mjs";
|
|
30
|
+
import "./launch-Bn2Zf90h.mjs";
|
|
31
|
+
import "./health-D0mUAVdw.mjs";
|
|
32
|
+
import "./launch-BZT3JDoZ.mjs";
|
|
33
|
+
import "./session-scan-CX3MKCNg.mjs";
|
|
34
|
+
|
|
35
|
+
export { runNewDefault };
|