@namzu/cli 38.2.0 → 39.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -50
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-JU4DX3RK.js → acp-7MS4QWHQ.js} +40 -37
- package/dist/chunks/acp-7MS4QWHQ.js.map +6 -0
- package/dist/chunks/{activity-command-TERANSMO.js → activity-command-ZLQTSOOT.js} +11 -11
- package/dist/chunks/{add-MZ6KIHY3.js → add-I77S5XFR.js} +17 -17
- package/dist/chunks/{agent-JZFFS4IP.js → agent-CD2IIXPD.js} +29 -28
- package/dist/chunks/agent-session-6F55DYFA.js +53 -0
- package/dist/chunks/{archive-SXYHKL3H.js → archive-JRJTOPHL.js} +9 -9
- package/dist/chunks/{bin-main-TFKZQ7NF.js → bin-main-KTQUVYIP.js} +3 -3
- package/dist/chunks/{browser-3U3YBKL6.js → browser-OKCFCNCP.js} +6 -6
- package/dist/chunks/{chat-37QA7HHN.js → chat-LTGXH6SR.js} +14 -14
- package/dist/chunks/{chunk-B5344NIV.js → chunk-24FWPXME.js} +3 -3
- package/dist/chunks/{chunk-U75JG2RT.js → chunk-2GO7AWHX.js} +2 -2
- package/dist/chunks/{chunk-LBPM46OY.js → chunk-2TEGJRBM.js} +2 -2
- package/dist/chunks/{chunk-7O4X4GYL.js → chunk-44JEVSTR.js} +7 -7
- package/dist/chunks/{chunk-EUHPTASG.js → chunk-4UYGMFWB.js} +2 -2
- package/dist/chunks/{chunk-EKMOETAY.js → chunk-5BULAR3C.js} +2 -2
- package/dist/chunks/{chunk-FI7TIM5P.js → chunk-5CKCYCPL.js} +2 -2
- package/dist/chunks/{chunk-UQZNYNX7.js → chunk-5GVYGWMK.js} +2 -2
- package/dist/chunks/{chunk-Q6SF7T77.js → chunk-64WCX6UV.js} +3 -3
- package/dist/chunks/{chunk-Z4LTK3HY.js → chunk-67YTCGFQ.js} +4 -4
- package/dist/chunks/{chunk-LH6J5QQ7.js → chunk-6A5BVWEI.js} +2 -2
- package/dist/chunks/{chunk-GTXD263T.js → chunk-6AH52DNV.js} +2 -2
- package/dist/chunks/{chunk-LLZ32DHS.js → chunk-6MRGH7S5.js} +860 -253
- package/dist/chunks/chunk-6MRGH7S5.js.map +6 -0
- package/dist/chunks/{chunk-6A7P3I3N.js → chunk-7K7VDUT3.js} +29 -28
- package/dist/chunks/{chunk-6A7P3I3N.js.map → chunk-7K7VDUT3.js.map} +1 -1
- package/dist/chunks/{chunk-ICBHR27I.js → chunk-A7F56OV6.js} +16 -13
- package/dist/chunks/{chunk-ICBHR27I.js.map → chunk-A7F56OV6.js.map} +1 -1
- package/dist/chunks/{chunk-TCXFKEYW.js → chunk-B73OIFL6.js} +4 -4
- package/dist/chunks/{chunk-TCXFKEYW.js.map → chunk-B73OIFL6.js.map} +1 -1
- package/dist/chunks/{chunk-PETRJVXF.js → chunk-BGI5U5XL.js} +4 -4
- package/dist/chunks/{chunk-3NIZKJJG.js → chunk-BYJ4AGMC.js} +2 -2
- package/dist/chunks/chunk-CDYUGK7F.js +70 -0
- package/dist/chunks/chunk-CDYUGK7F.js.map +6 -0
- package/dist/chunks/{chunk-N57QO3AA.js → chunk-CI3SKMXQ.js} +2 -2
- package/dist/chunks/{chunk-IG4O4UAL.js → chunk-CL475F3V.js} +2 -2
- package/dist/chunks/{chunk-DQICYFIG.js → chunk-CYGNCTMI.js} +2 -2
- package/dist/chunks/{chunk-5PDW6VPO.js → chunk-D7UUTTLG.js} +3 -3
- package/dist/chunks/{chunk-2UUBILYI.js → chunk-DCAKHMT4.js} +4 -4
- package/dist/chunks/{chunk-D5SIC3SF.js → chunk-DXQQSQQ3.js} +9 -9
- package/dist/chunks/{chunk-KG2YA6TI.js → chunk-ECO3KP5U.js} +3 -3
- package/dist/chunks/{chunk-WLHI2QSC.js → chunk-ERSRQ6QN.js} +3 -3
- package/dist/chunks/{chunk-WLHI2QSC.js.map → chunk-ERSRQ6QN.js.map} +1 -1
- package/dist/chunks/{chunk-LC5VGZO2.js → chunk-EXL2ALVX.js} +2 -2
- package/dist/chunks/{chunk-A64X23MU.js → chunk-FTZT4UAB.js} +485 -57
- package/dist/chunks/chunk-FTZT4UAB.js.map +6 -0
- package/dist/chunks/{chunk-Z56MZ7UW.js → chunk-GQBSRXFY.js} +4 -4
- package/dist/chunks/{chunk-2SVXX5QK.js → chunk-H2SFQIVZ.js} +5 -5
- package/dist/chunks/{chunk-2UT6U22B.js → chunk-HYJTH4L6.js} +2 -2
- package/dist/chunks/{chunk-7MLTWXEW.js → chunk-HZH2LZR3.js} +2 -2
- package/dist/chunks/{chunk-XNHYUV6G.js → chunk-IAA2O76K.js} +2 -2
- package/dist/chunks/{chunk-U3JIZFOS.js → chunk-IE5XIE4W.js} +2 -2
- package/dist/chunks/{chunk-CZVHXYGD.js → chunk-IYPP6HSK.js} +4 -32
- package/dist/chunks/chunk-IYPP6HSK.js.map +6 -0
- package/dist/chunks/{chunk-FOGCQUIH.js → chunk-JBYO5UWH.js} +11 -23
- package/dist/chunks/chunk-JBYO5UWH.js.map +6 -0
- package/dist/chunks/{chunk-JN6M424Z.js → chunk-JDS4SYAJ.js} +2 -2
- package/dist/chunks/{chunk-V2VHVH5S.js → chunk-L5EE2M32.js} +3 -3
- package/dist/chunks/{chunk-2WHVZCLT.js → chunk-M3TJHQF7.js} +18 -2
- package/dist/chunks/{chunk-2WHVZCLT.js.map → chunk-M3TJHQF7.js.map} +1 -1
- package/dist/chunks/{chunk-XEOZYKPJ.js → chunk-MBGTDQFF.js} +3 -3
- package/dist/chunks/{chunk-ZJHOWWXZ.js → chunk-NFCBNDBG.js} +12 -12
- package/dist/chunks/{chunk-3PBSWF6X.js → chunk-NNSCLV6S.js} +3 -3
- package/dist/chunks/{chunk-KUNQW3N3.js → chunk-NXLK7UAG.js} +4 -4
- package/dist/chunks/{chunk-S5U4BG57.js → chunk-PAJTVGYM.js} +3 -52
- package/dist/chunks/chunk-PAJTVGYM.js.map +6 -0
- package/dist/chunks/{chunk-2T7TZDUE.js → chunk-PWO4HKDQ.js} +2 -2
- package/dist/chunks/{chunk-M2EJQU3F.js → chunk-QFAZWIVS.js} +4 -4
- package/dist/chunks/{chunk-XIURI2PQ.js → chunk-QX6YDLUD.js} +7 -7
- package/dist/chunks/{chunk-LPYWPRIF.js → chunk-QYIY7Q5R.js} +4 -4
- package/dist/chunks/{chunk-FMJCN6JZ.js → chunk-RI5G5NS3.js} +90 -6
- package/dist/chunks/chunk-RI5G5NS3.js.map +6 -0
- package/dist/chunks/{chunk-HOOY63EB.js → chunk-SVTNQGLN.js} +15 -15
- package/dist/chunks/{chunk-XKEMUEI5.js → chunk-SYMXDX7F.js} +2 -2
- package/dist/chunks/{chunk-VFBIR3UC.js → chunk-UB6WVOKM.js} +4 -4
- package/dist/chunks/{chunk-ZJMUPGWD.js → chunk-VIRFJSX6.js} +8 -8
- package/dist/chunks/{chunk-CLIP7QVU.js → chunk-VMJWG5TF.js} +3 -3
- package/dist/chunks/{chunk-CK4TOW2N.js → chunk-VUBQ6IRM.js} +2 -2
- package/dist/chunks/{chunk-AHVF22PV.js → chunk-WICKQJR4.js} +5 -5
- package/dist/chunks/{chunk-5G3VKTLZ.js → chunk-WUBN6DXH.js} +2 -2
- package/dist/chunks/{chunk-CDZT7WGY.js → chunk-X62U63KJ.js} +3 -3
- package/dist/chunks/{chunk-TNTP3CNT.js → chunk-XLPUR46F.js} +2 -2
- package/dist/chunks/{chunk-7S5UB6DX.js → chunk-XOIV3R6O.js} +6 -6
- package/dist/chunks/{chunk-OA5772RG.js → chunk-YH7CW765.js} +4 -4
- package/dist/chunks/{chunk-KONWJQLM.js → chunk-YVJTVJN4.js} +2 -2
- package/dist/chunks/{cli-runtime-PRG53LL6.js → cli-runtime-KLGRRAPC.js} +13 -13
- package/dist/chunks/{commands-QMF4AHAY.js → commands-UQGS6244.js} +5 -5
- package/dist/chunks/{crash-report-BSZ6SUOF.js → crash-report-F3CLYQ6A.js} +6 -6
- package/dist/chunks/{dist-GNI4DIHI.js → dist-BF3HQ6PJ.js} +3 -3
- package/dist/chunks/{dist-XDA5OMB2.js → dist-BYIBYB4E.js} +3 -3
- package/dist/chunks/{dist-JDUOF4K7.js → dist-FE7KZYMC.js} +2 -2
- package/dist/chunks/{dist-QSOTJL6Z.js → dist-FFM3ZZQ4.js} +2 -2
- package/dist/chunks/{dist-HRWBXBF3.js → dist-MMWDBT7P.js} +2 -2
- package/dist/chunks/{dist-SO6XBKFN.js → dist-SGU5HCLT.js} +2 -2
- package/dist/chunks/{dist-MYWLKPXK.js → dist-TZU45EHB.js} +2 -2
- package/dist/chunks/{doctor-5MS7V3JB.js → doctor-6ZZOTVMF.js} +10 -10
- package/dist/chunks/{drain-YGGEC4UE.js → drain-XK5PA7E5.js} +10 -10
- package/dist/chunks/{eval-GWP6MISH.js → eval-RPKIJFAB.js} +2 -2
- package/dist/chunks/{exec-YDIFQY7C.js → exec-DJ4ECSDD.js} +42 -30
- package/dist/chunks/{exec-YDIFQY7C.js.map → exec-DJ4ECSDD.js.map} +1 -1
- package/dist/chunks/{home-IZ2H7PM3.js → home-ZAIMBEH7.js} +3 -3
- package/dist/chunks/{host-queries-UCVJBJXU.js → host-queries-AMSRIPNG.js} +14 -14
- package/dist/chunks/{lifecycle-U52Z5ZMZ.js → lifecycle-L4E6FPYN.js} +25 -25
- package/dist/chunks/{list-SVKI2XOL.js → list-2QTHV4YO.js} +11 -11
- package/dist/chunks/{login-MNDG4XIT.js → login-QMOTL6Y5.js} +10 -10
- package/dist/chunks/{logs-M7RCXYPY.js → logs-JIQJGYVR.js} +4 -4
- package/dist/chunks/{mcp-KEQMYKDA.js → mcp-ZCRO5DB3.js} +18 -18
- package/dist/chunks/{message-command-FZ6VEUK5.js → message-command-2SCMXO4D.js} +35 -34
- package/dist/chunks/message-command-2SCMXO4D.js.map +6 -0
- package/dist/chunks/{operator-tools-C57ZIYRG.js → operator-tools-23FYQ5OE.js} +12 -12
- package/dist/chunks/{output-schema-IYQRSIUA.js → output-schema-RTXHP2NW.js} +3 -3
- package/dist/chunks/{pal-NXMTLY6Z.js → pal-AC73MLO6.js} +13 -13
- package/dist/chunks/{providers-TZBRQDXE.js → providers-SUXIFNA4.js} +8 -8
- package/dist/chunks/{resident-DBIZBLOV.js → resident-VFEZDABF.js} +20 -20
- package/dist/chunks/resume-I3YLV7D3.js +22 -0
- package/dist/chunks/{resume-command-36S3HXPO.js → resume-command-PZ3NLBOR.js} +4 -4
- package/dist/chunks/{schedule-UR54S44B.js → schedule-4KYTYQML.js} +8 -8
- package/dist/chunks/{service-VMXEAJCI.js → service-NI46RYPW.js} +24 -24
- package/dist/chunks/session-step-IR57BRZX.js +29 -0
- package/dist/chunks/{skills-RXYS26H3.js → skills-OYRPNK3I.js} +8 -8
- package/dist/chunks/{state-NS47IVWW.js → state-ULVIHH2M.js} +2 -2
- package/dist/chunks/{store-GNFHH2LZ.js → store-3LVJZEHS.js} +4 -4
- package/dist/chunks/{store-TO65IAIZ.js → store-EOHDDBM7.js} +6 -6
- package/dist/chunks/{store-3U2GZAZS.js → store-W2VNXICH.js} +9 -9
- package/dist/chunks/{tui-STU5UZBC.js → tui-GEHRYWRG.js} +2026 -1118
- package/dist/chunks/tui-GEHRYWRG.js.map +6 -0
- package/dist/chunks/{upgrade-USIXROFG.js → upgrade-LSB2KNDF.js} +4 -3
- package/dist/chunks/upgrade-LSB2KNDF.js.map +6 -0
- package/dist/chunks/{worktree-AYI5VJ5H.js → worktree-PZU6IAUF.js} +11 -11
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/desktop-model-catalogue.d.ts +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/resume.d.ts +1 -1
- package/dist/config/load.d.ts +1 -2
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +20 -3
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/context/doctrine.d.ts +4 -4
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/index.js +14 -14
- package/dist/integrations/harness/codex-protocol.d.ts +1 -1
- package/dist/integrations/harness/codex-protocol.d.ts.map +1 -1
- package/dist/integrations/mcp/tool-search.d.ts +3 -4
- package/dist/integrations/mcp/tool-search.d.ts.map +1 -1
- package/dist/integrations/notifications/idle.d.ts +2 -2
- package/dist/integrations/notifications/idle.d.ts.map +1 -1
- package/dist/integrations/providers/identity.d.ts +1 -1
- package/dist/integrations/resident/runner-worker.js +20 -20
- package/dist/integrations/subagents/activity.d.ts +4 -0
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/label-ledger.d.ts +2 -3
- package/dist/integrations/subagents/label-ledger.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +40 -6
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/workflow-assignment.d.ts +13 -0
- package/dist/integrations/subagents/workflow-assignment.d.ts.map +1 -0
- package/dist/integrations/workflows/doctrine.d.ts +4 -3
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/host.d.ts +5 -0
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +9 -27
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/size.d.ts +51 -0
- package/dist/integrations/workflows/size.d.ts.map +1 -0
- package/dist/permissions/live-mode.d.ts +1 -2
- package/dist/permissions/live-mode.d.ts.map +1 -1
- package/dist/permissions/local-settings.d.ts +4 -4
- package/dist/permissions/mode.d.ts +1 -1
- package/dist/permissions/rules.d.ts +1 -2
- package/dist/permissions/rules.d.ts.map +1 -1
- package/dist/permissions/session-allow.d.ts +12 -12
- package/dist/permissions/session-allow.d.ts.map +1 -1
- package/dist/plan/approval.d.ts +1 -2
- package/dist/plan/approval.d.ts.map +1 -1
- package/dist/reminders/frame.d.ts +1 -1
- package/dist/reminders/frame.d.ts.map +1 -1
- package/dist/reminders/hypermode.d.ts +31 -0
- package/dist/reminders/hypermode.d.ts.map +1 -0
- package/dist/reminders/index.d.ts +7 -1
- package/dist/reminders/index.d.ts.map +1 -1
- package/dist/reminders/plan-mode.d.ts +1 -1
- package/dist/reminders/task-nudge.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +25 -6
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts +10 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundAgentRows.d.ts +13 -0
- package/dist/tui/BackgroundAgentRows.d.ts.map +1 -0
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +8 -4
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ComposerFrame.d.ts +1 -1
- package/dist/tui/EffortSlider.d.ts +4 -4
- package/dist/tui/EffortSlider.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts +1 -1
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts +10 -3
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/PlanApprovalOverlay.d.ts +2 -2
- package/dist/tui/QuestionDialog.d.ts +1 -1
- package/dist/tui/StatusBar.d.ts +6 -3
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +5 -6
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/agent-stop-all.d.ts +11 -0
- package/dist/tui/agent-stop-all.d.ts.map +1 -1
- package/dist/tui/agent-transcript-rows.d.ts +28 -15
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent-view-commands.d.ts +3 -5
- package/dist/tui/agent-view-commands.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +26 -12
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/background-agents.d.ts +46 -0
- package/dist/tui/background-agents.d.ts.map +1 -0
- package/dist/tui/choice-selection.d.ts +3 -1
- package/dist/tui/choice-selection.d.ts.map +1 -1
- package/dist/tui/composer-hints.d.ts +26 -0
- package/dist/tui/composer-hints.d.ts.map +1 -0
- package/dist/tui/context-meter.d.ts +1 -1
- package/dist/tui/diff-rows.d.ts +30 -18
- package/dist/tui/diff-rows.d.ts.map +1 -1
- package/dist/tui/diff-view.d.ts +99 -0
- package/dist/tui/diff-view.d.ts.map +1 -0
- package/dist/tui/hint-counts.d.ts +7 -0
- package/dist/tui/hint-counts.d.ts.map +1 -0
- package/dist/tui/hypermode.d.ts +20 -26
- package/dist/tui/hypermode.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/live-window.d.ts +1 -1
- package/dist/tui/live-window.d.ts.map +1 -1
- package/dist/tui/markdown-table.d.ts +1 -2
- package/dist/tui/markdown-table.d.ts.map +1 -1
- package/dist/tui/paste-chips.d.ts +22 -0
- package/dist/tui/paste-chips.d.ts.map +1 -0
- package/dist/tui/permission-review.d.ts +75 -18
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/placeholder-examples.d.ts +5 -0
- package/dist/tui/placeholder-examples.d.ts.map +1 -0
- package/dist/tui/restored-rows.d.ts +3 -1
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/schedule/source-deliveries.d.ts +1 -1
- package/dist/tui/schedule/source-deliveries.d.ts.map +1 -1
- package/dist/tui/shell-cell.d.ts +15 -0
- package/dist/tui/shell-cell.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/status-line/StatusLineRows.d.ts +1 -2
- package/dist/tui/status-line/StatusLineRows.d.ts.map +1 -1
- package/dist/tui/status-line/controller.d.ts +1 -1
- package/dist/tui/status-line/output.d.ts +2 -2
- package/dist/tui/status-line/payload.d.ts +2 -2
- package/dist/tui/status-line/run-command.d.ts +1 -1
- package/dist/tui/system-rows.d.ts +8 -0
- package/dist/tui/system-rows.d.ts.map +1 -1
- package/dist/tui/terminal-choice-text.d.ts +7 -0
- package/dist/tui/terminal-choice-text.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +21 -0
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +9 -1
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/tool-failure-text.d.ts +13 -0
- package/dist/tui/tool-failure-text.d.ts.map +1 -0
- package/dist/tui/triggers/context-text.d.ts +3 -3
- package/dist/tui/triggers/context-text.d.ts.map +1 -1
- package/dist/tui/triggers/copy.d.ts +7 -11
- package/dist/tui/triggers/copy.d.ts.map +1 -1
- package/dist/tui/triggers/registry.d.ts +2 -3
- package/dist/tui/triggers/registry.d.ts.map +1 -1
- package/dist/tui/typed-input.d.ts +14 -0
- package/dist/tui/typed-input.d.ts.map +1 -0
- package/dist/tui/types.d.ts +7 -5
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/user-text-view.d.ts +25 -0
- package/dist/tui/user-text-view.d.ts.map +1 -0
- package/dist/tui/workflow-runs.d.ts.map +1 -1
- package/dist/tui/workspace-diff.d.ts +3 -4
- package/dist/tui/workspace-diff.d.ts.map +1 -1
- package/package.json +6 -5
- package/dist/chunks/acp-JU4DX3RK.js.map +0 -6
- package/dist/chunks/agent-session-YS3JWF6Z.js +0 -52
- package/dist/chunks/chunk-A64X23MU.js.map +0 -6
- package/dist/chunks/chunk-CZVHXYGD.js.map +0 -6
- package/dist/chunks/chunk-FMJCN6JZ.js.map +0 -6
- package/dist/chunks/chunk-FOGCQUIH.js.map +0 -6
- package/dist/chunks/chunk-LLZ32DHS.js.map +0 -6
- package/dist/chunks/chunk-S5U4BG57.js.map +0 -6
- package/dist/chunks/message-command-FZ6VEUK5.js.map +0 -6
- package/dist/chunks/resume-GG6RMJXQ.js +0 -22
- package/dist/chunks/session-step-VJCHKPWD.js +0 -29
- package/dist/chunks/tui-STU5UZBC.js.map +0 -6
- package/dist/chunks/upgrade-USIXROFG.js.map +0 -6
- package/dist/integrations/subagents/failure-text.d.ts +0 -13
- package/dist/integrations/subagents/failure-text.d.ts.map +0 -1
- /package/dist/chunks/{activity-command-TERANSMO.js.map → activity-command-ZLQTSOOT.js.map} +0 -0
- /package/dist/chunks/{add-MZ6KIHY3.js.map → add-I77S5XFR.js.map} +0 -0
- /package/dist/chunks/{agent-JZFFS4IP.js.map → agent-CD2IIXPD.js.map} +0 -0
- /package/dist/chunks/{agent-session-YS3JWF6Z.js.map → agent-session-6F55DYFA.js.map} +0 -0
- /package/dist/chunks/{archive-SXYHKL3H.js.map → archive-JRJTOPHL.js.map} +0 -0
- /package/dist/chunks/{bin-main-TFKZQ7NF.js.map → bin-main-KTQUVYIP.js.map} +0 -0
- /package/dist/chunks/{browser-3U3YBKL6.js.map → browser-OKCFCNCP.js.map} +0 -0
- /package/dist/chunks/{chat-37QA7HHN.js.map → chat-LTGXH6SR.js.map} +0 -0
- /package/dist/chunks/{chunk-B5344NIV.js.map → chunk-24FWPXME.js.map} +0 -0
- /package/dist/chunks/{chunk-U75JG2RT.js.map → chunk-2GO7AWHX.js.map} +0 -0
- /package/dist/chunks/{chunk-LBPM46OY.js.map → chunk-2TEGJRBM.js.map} +0 -0
- /package/dist/chunks/{chunk-7O4X4GYL.js.map → chunk-44JEVSTR.js.map} +0 -0
- /package/dist/chunks/{chunk-EUHPTASG.js.map → chunk-4UYGMFWB.js.map} +0 -0
- /package/dist/chunks/{chunk-EKMOETAY.js.map → chunk-5BULAR3C.js.map} +0 -0
- /package/dist/chunks/{chunk-FI7TIM5P.js.map → chunk-5CKCYCPL.js.map} +0 -0
- /package/dist/chunks/{chunk-UQZNYNX7.js.map → chunk-5GVYGWMK.js.map} +0 -0
- /package/dist/chunks/{chunk-Q6SF7T77.js.map → chunk-64WCX6UV.js.map} +0 -0
- /package/dist/chunks/{chunk-Z4LTK3HY.js.map → chunk-67YTCGFQ.js.map} +0 -0
- /package/dist/chunks/{chunk-LH6J5QQ7.js.map → chunk-6A5BVWEI.js.map} +0 -0
- /package/dist/chunks/{chunk-GTXD263T.js.map → chunk-6AH52DNV.js.map} +0 -0
- /package/dist/chunks/{chunk-PETRJVXF.js.map → chunk-BGI5U5XL.js.map} +0 -0
- /package/dist/chunks/{chunk-3NIZKJJG.js.map → chunk-BYJ4AGMC.js.map} +0 -0
- /package/dist/chunks/{chunk-N57QO3AA.js.map → chunk-CI3SKMXQ.js.map} +0 -0
- /package/dist/chunks/{chunk-IG4O4UAL.js.map → chunk-CL475F3V.js.map} +0 -0
- /package/dist/chunks/{chunk-DQICYFIG.js.map → chunk-CYGNCTMI.js.map} +0 -0
- /package/dist/chunks/{chunk-5PDW6VPO.js.map → chunk-D7UUTTLG.js.map} +0 -0
- /package/dist/chunks/{chunk-2UUBILYI.js.map → chunk-DCAKHMT4.js.map} +0 -0
- /package/dist/chunks/{chunk-D5SIC3SF.js.map → chunk-DXQQSQQ3.js.map} +0 -0
- /package/dist/chunks/{chunk-KG2YA6TI.js.map → chunk-ECO3KP5U.js.map} +0 -0
- /package/dist/chunks/{chunk-LC5VGZO2.js.map → chunk-EXL2ALVX.js.map} +0 -0
- /package/dist/chunks/{chunk-Z56MZ7UW.js.map → chunk-GQBSRXFY.js.map} +0 -0
- /package/dist/chunks/{chunk-2SVXX5QK.js.map → chunk-H2SFQIVZ.js.map} +0 -0
- /package/dist/chunks/{chunk-2UT6U22B.js.map → chunk-HYJTH4L6.js.map} +0 -0
- /package/dist/chunks/{chunk-7MLTWXEW.js.map → chunk-HZH2LZR3.js.map} +0 -0
- /package/dist/chunks/{chunk-XNHYUV6G.js.map → chunk-IAA2O76K.js.map} +0 -0
- /package/dist/chunks/{chunk-U3JIZFOS.js.map → chunk-IE5XIE4W.js.map} +0 -0
- /package/dist/chunks/{chunk-JN6M424Z.js.map → chunk-JDS4SYAJ.js.map} +0 -0
- /package/dist/chunks/{chunk-V2VHVH5S.js.map → chunk-L5EE2M32.js.map} +0 -0
- /package/dist/chunks/{chunk-XEOZYKPJ.js.map → chunk-MBGTDQFF.js.map} +0 -0
- /package/dist/chunks/{chunk-ZJHOWWXZ.js.map → chunk-NFCBNDBG.js.map} +0 -0
- /package/dist/chunks/{chunk-3PBSWF6X.js.map → chunk-NNSCLV6S.js.map} +0 -0
- /package/dist/chunks/{chunk-KUNQW3N3.js.map → chunk-NXLK7UAG.js.map} +0 -0
- /package/dist/chunks/{chunk-2T7TZDUE.js.map → chunk-PWO4HKDQ.js.map} +0 -0
- /package/dist/chunks/{chunk-M2EJQU3F.js.map → chunk-QFAZWIVS.js.map} +0 -0
- /package/dist/chunks/{chunk-XIURI2PQ.js.map → chunk-QX6YDLUD.js.map} +0 -0
- /package/dist/chunks/{chunk-LPYWPRIF.js.map → chunk-QYIY7Q5R.js.map} +0 -0
- /package/dist/chunks/{chunk-HOOY63EB.js.map → chunk-SVTNQGLN.js.map} +0 -0
- /package/dist/chunks/{chunk-XKEMUEI5.js.map → chunk-SYMXDX7F.js.map} +0 -0
- /package/dist/chunks/{chunk-VFBIR3UC.js.map → chunk-UB6WVOKM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZJMUPGWD.js.map → chunk-VIRFJSX6.js.map} +0 -0
- /package/dist/chunks/{chunk-CLIP7QVU.js.map → chunk-VMJWG5TF.js.map} +0 -0
- /package/dist/chunks/{chunk-CK4TOW2N.js.map → chunk-VUBQ6IRM.js.map} +0 -0
- /package/dist/chunks/{chunk-AHVF22PV.js.map → chunk-WICKQJR4.js.map} +0 -0
- /package/dist/chunks/{chunk-5G3VKTLZ.js.map → chunk-WUBN6DXH.js.map} +0 -0
- /package/dist/chunks/{chunk-CDZT7WGY.js.map → chunk-X62U63KJ.js.map} +0 -0
- /package/dist/chunks/{chunk-TNTP3CNT.js.map → chunk-XLPUR46F.js.map} +0 -0
- /package/dist/chunks/{chunk-7S5UB6DX.js.map → chunk-XOIV3R6O.js.map} +0 -0
- /package/dist/chunks/{chunk-OA5772RG.js.map → chunk-YH7CW765.js.map} +0 -0
- /package/dist/chunks/{chunk-KONWJQLM.js.map → chunk-YVJTVJN4.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-PRG53LL6.js.map → cli-runtime-KLGRRAPC.js.map} +0 -0
- /package/dist/chunks/{commands-QMF4AHAY.js.map → commands-UQGS6244.js.map} +0 -0
- /package/dist/chunks/{crash-report-BSZ6SUOF.js.map → crash-report-F3CLYQ6A.js.map} +0 -0
- /package/dist/chunks/{dist-GNI4DIHI.js.map → dist-BF3HQ6PJ.js.map} +0 -0
- /package/dist/chunks/{dist-XDA5OMB2.js.map → dist-BYIBYB4E.js.map} +0 -0
- /package/dist/chunks/{dist-JDUOF4K7.js.map → dist-FE7KZYMC.js.map} +0 -0
- /package/dist/chunks/{dist-QSOTJL6Z.js.map → dist-FFM3ZZQ4.js.map} +0 -0
- /package/dist/chunks/{dist-HRWBXBF3.js.map → dist-MMWDBT7P.js.map} +0 -0
- /package/dist/chunks/{dist-SO6XBKFN.js.map → dist-SGU5HCLT.js.map} +0 -0
- /package/dist/chunks/{dist-MYWLKPXK.js.map → dist-TZU45EHB.js.map} +0 -0
- /package/dist/chunks/{doctor-5MS7V3JB.js.map → doctor-6ZZOTVMF.js.map} +0 -0
- /package/dist/chunks/{drain-YGGEC4UE.js.map → drain-XK5PA7E5.js.map} +0 -0
- /package/dist/chunks/{eval-GWP6MISH.js.map → eval-RPKIJFAB.js.map} +0 -0
- /package/dist/chunks/{home-IZ2H7PM3.js.map → home-ZAIMBEH7.js.map} +0 -0
- /package/dist/chunks/{host-queries-UCVJBJXU.js.map → host-queries-AMSRIPNG.js.map} +0 -0
- /package/dist/chunks/{lifecycle-U52Z5ZMZ.js.map → lifecycle-L4E6FPYN.js.map} +0 -0
- /package/dist/chunks/{list-SVKI2XOL.js.map → list-2QTHV4YO.js.map} +0 -0
- /package/dist/chunks/{login-MNDG4XIT.js.map → login-QMOTL6Y5.js.map} +0 -0
- /package/dist/chunks/{logs-M7RCXYPY.js.map → logs-JIQJGYVR.js.map} +0 -0
- /package/dist/chunks/{mcp-KEQMYKDA.js.map → mcp-ZCRO5DB3.js.map} +0 -0
- /package/dist/chunks/{operator-tools-C57ZIYRG.js.map → operator-tools-23FYQ5OE.js.map} +0 -0
- /package/dist/chunks/{output-schema-IYQRSIUA.js.map → output-schema-RTXHP2NW.js.map} +0 -0
- /package/dist/chunks/{pal-NXMTLY6Z.js.map → pal-AC73MLO6.js.map} +0 -0
- /package/dist/chunks/{providers-TZBRQDXE.js.map → providers-SUXIFNA4.js.map} +0 -0
- /package/dist/chunks/{resident-DBIZBLOV.js.map → resident-VFEZDABF.js.map} +0 -0
- /package/dist/chunks/{resume-GG6RMJXQ.js.map → resume-I3YLV7D3.js.map} +0 -0
- /package/dist/chunks/{resume-command-36S3HXPO.js.map → resume-command-PZ3NLBOR.js.map} +0 -0
- /package/dist/chunks/{schedule-UR54S44B.js.map → schedule-4KYTYQML.js.map} +0 -0
- /package/dist/chunks/{service-VMXEAJCI.js.map → service-NI46RYPW.js.map} +0 -0
- /package/dist/chunks/{session-step-VJCHKPWD.js.map → session-step-IR57BRZX.js.map} +0 -0
- /package/dist/chunks/{skills-RXYS26H3.js.map → skills-OYRPNK3I.js.map} +0 -0
- /package/dist/chunks/{state-NS47IVWW.js.map → state-ULVIHH2M.js.map} +0 -0
- /package/dist/chunks/{store-3U2GZAZS.js.map → store-3LVJZEHS.js.map} +0 -0
- /package/dist/chunks/{store-GNFHH2LZ.js.map → store-EOHDDBM7.js.map} +0 -0
- /package/dist/chunks/{store-TO65IAIZ.js.map → store-W2VNXICH.js.map} +0 -0
- /package/dist/chunks/{worktree-AYI5VJ5H.js.map → worktree-PZU6IAUF.js.map} +0 -0
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* and namzu spins up a fresh sub-agent with that role at runtime, no
|
|
5
5
|
* pre-registered definition needed. Omit `role` for a general-purpose one.
|
|
6
6
|
* The call waits for a final result unless background execution is requested
|
|
7
|
-
* or operator input releases the wait.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* or operator input releases the wait. With `backgroundByDefault` (an operator
|
|
8
|
+
* is watching) background is the default and the turn ends without waiting: the
|
|
9
|
+
* child outlives the turn, and its end is reported through
|
|
10
|
+
* `onBackgroundCompletion`. Otherwise the child stays owned by the parent turn
|
|
11
|
+
* and its completion reaches the same query's inbox.
|
|
10
12
|
*
|
|
11
13
|
* The runtime is fully self-contained: a dedicated in-memory session/thread
|
|
12
14
|
* store backs the AgentManager, so sub-agent bookkeeping never touches the
|
|
@@ -16,6 +18,7 @@
|
|
|
16
18
|
* (`saved-agents.ts`) reads those records back as evidence, never as execution
|
|
17
19
|
* authority.
|
|
18
20
|
*/
|
|
21
|
+
import { WORKFLOW_STEP_ASSIGNMENT } from './workflow-assignment.js';
|
|
19
22
|
import { type AgentFileDefinition, type AuthorizationGateConfig, CompletionInbox, type LLMProvider, type Project, type ProjectInstructionContext, type ReasoningEffort, type ResumeHandler, type SandboxProvider, type SessionEvent, type SessionId, type SessionPaths, type SessionTokenBudgetStore, type TaskScheduler, type ToolContext, type ToolDefinition, type Toolset, type Topic, type TurnId } from '@namzu/sdk';
|
|
20
23
|
import type { TurnLimitsConfig } from '../../config/schema.js';
|
|
21
24
|
import type { SideLedger } from '../small-model/side-model.js';
|
|
@@ -33,8 +36,7 @@ import { type SavedAgentHistory } from './saved-agents.js';
|
|
|
33
36
|
* sentence rather than an error.
|
|
34
37
|
*/
|
|
35
38
|
export declare const NARRATION_TOOL_NAME = "narrate_work";
|
|
36
|
-
|
|
37
|
-
export declare const WORKFLOW_STEP_ASSIGNMENT = "This step is your assigned job. The person who started this workflow approved the script that gives it to you, so carry it out and report what you found or did; do not decline it or skip it.";
|
|
39
|
+
export { WORKFLOW_STEP_ASSIGNMENT };
|
|
38
40
|
export declare const GENERAL_PURPOSE_SUBAGENT = "general-purpose";
|
|
39
41
|
/**
|
|
40
42
|
* The kernel's read-only delegate, with this application's doctrine under
|
|
@@ -53,6 +55,15 @@ export interface DelegatedModel {
|
|
|
53
55
|
readonly effort?: ReasoningEffort;
|
|
54
56
|
}
|
|
55
57
|
export interface SubagentRuntimeOptions {
|
|
58
|
+
/**
|
|
59
|
+
* An operator is watching and the turn must not wait for its agents: `Agent`
|
|
60
|
+
* runs in the background unless the call says `run_in_background: false`, a
|
|
61
|
+
* turn ends when the model has answered while background agents run on, and
|
|
62
|
+
* each one that ends later is reported through
|
|
63
|
+
* {@link SubagentRuntime.onBackgroundCompletion}. Headless callers leave it
|
|
64
|
+
* off and keep the turn waiting for what it launched.
|
|
65
|
+
*/
|
|
66
|
+
readonly backgroundByDefault?: boolean;
|
|
56
67
|
/**
|
|
57
68
|
* Tools every child gets beside its roster, whatever that roster was
|
|
58
69
|
* narrowed to. Set by the runtime itself, never by a host: a file's
|
|
@@ -209,6 +220,19 @@ export interface SubagentMessageReceipt {
|
|
|
209
220
|
readonly parentNotice: string;
|
|
210
221
|
readonly auditWarning?: string;
|
|
211
222
|
}
|
|
223
|
+
/** A background agent that ended after the turn that launched it was over. */
|
|
224
|
+
export interface SubagentCompletion {
|
|
225
|
+
readonly parentSessionId: string;
|
|
226
|
+
readonly taskId: string;
|
|
227
|
+
readonly viewId?: string;
|
|
228
|
+
readonly agentId: string;
|
|
229
|
+
readonly description: string;
|
|
230
|
+
readonly state: 'completed' | 'failed' | 'cancelled';
|
|
231
|
+
/** Who stopped it, when it was stopped: the operator's own stop is not news. */
|
|
232
|
+
readonly stoppedBy?: 'user' | 'parent';
|
|
233
|
+
/** The result as the model reads it: the same envelope a task notification carries. */
|
|
234
|
+
readonly text: string;
|
|
235
|
+
}
|
|
212
236
|
/** A message a running child sent to the main conversation. */
|
|
213
237
|
export interface SubagentMessage {
|
|
214
238
|
readonly parentSessionId: string;
|
|
@@ -225,11 +249,21 @@ export interface SubagentRuntime {
|
|
|
225
249
|
* cannot show or deliver it never promises a child it will.
|
|
226
250
|
*/
|
|
227
251
|
onChildMessage(listener: (message: SubagentMessage) => void): () => void;
|
|
252
|
+
/**
|
|
253
|
+
* Hear a background agent that ends after its turn did. While the turn that
|
|
254
|
+
* launched it is still running, the turn's own inbox delivers the result and
|
|
255
|
+
* nothing is said here. Only with `backgroundByDefault`.
|
|
256
|
+
*/
|
|
257
|
+
onBackgroundCompletion(listener: (completion: SubagentCompletion) => void): () => void;
|
|
228
258
|
/** One immutable scheduler context per actual parent turn. */
|
|
229
259
|
gatewayForTurn(turnId: TurnId): Promise<TaskScheduler>;
|
|
230
260
|
/** The same inbox the parent query drains after a delegation yields. */
|
|
231
261
|
completionInboxForTurn(turnId: TurnId): Promise<CompletionInbox>;
|
|
232
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Release a settled parent turn's bookkeeping. Children it still owns are
|
|
264
|
+
* cancelled, except background ones under `backgroundByDefault`: those keep
|
|
265
|
+
* running until they end or the session closes.
|
|
266
|
+
*/
|
|
233
267
|
releaseTurn(turnId: TurnId): Promise<void>;
|
|
234
268
|
/**
|
|
235
269
|
* Where requests beside the conversation (a title, the answer `web_fetch`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/integrations/subagents/runtime.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/integrations/subagents/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,OAAO,EAGN,KAAK,mBAAmB,EAIxB,KAAK,uBAAuB,EAI5B,eAAe,EAWf,KAAK,WAAW,EAEhB,KAAK,OAAO,EACZ,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,SAAS,E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AA;IAC/B,mFAAmF;IACnF,YAAY,CACX,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,GACjB,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAClC;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,cAAc,CAAA;IAC5C,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAA;IAClC,6DAA6D;IAC7D,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAA;IACxC,QAAQ,CAAC,iBAAiB,EAAE,cAAc,CAAA;IAC1C,kEAAkE;IAClE,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAA;IACxC,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAA;IACxC;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAA;IACtC,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3C;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;IAC9C,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAA;IACzC;;;;OAIG;IACH,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAC9E,uEAAuE;IACvE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB;AA0DD;;;GAGG;AACH,wBAAsB,qBAAqB,CAC1C,KAAK,EAAE,sBAAsB,GAC3B,OAAO,CAAC,eAAe,CAAC,CAgtD1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sentence that opens every workflow agent's prompt, kept apart from the
|
|
3
|
+
* runtime so the activity record can leave it out of what the person reads.
|
|
4
|
+
*/
|
|
5
|
+
/** Opens every workflow agent's prompt: the step is the job, so a note about authority cannot read as a reason to skip it. */
|
|
6
|
+
export declare const WORKFLOW_STEP_ASSIGNMENT = "This step is your assigned job. The person who started this workflow approved the script that gives it to you, so carry it out and report what you found or did; do not decline it or skip it.";
|
|
7
|
+
/**
|
|
8
|
+
* The prompt as the person should see it: the step task only. The assignment
|
|
9
|
+
* sentence is for the model; shown as the person's prompt it reads as raw
|
|
10
|
+
* instructions they never wrote.
|
|
11
|
+
*/
|
|
12
|
+
export declare function stepTaskOnly(prompt: string): string;
|
|
13
|
+
//# sourceMappingURL=workflow-assignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-assignment.d.ts","sourceRoot":"","sources":["../../../src/integrations/subagents/workflow-assignment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8HAA8H;AAC9H,eAAO,MAAM,wBAAwB,mMAC4J,CAAA;AAEjM;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGnD"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What the model is told
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* What the model is told, beside the delegation doctrine, whenever the
|
|
3
|
+
* `workflow` tool is in its list. The tool is listed on every turn of a host
|
|
4
|
+
* that can run one, so this is the opt-in rule: stable text, so it does not
|
|
5
|
+
* change the cached prefix from one message to the next.
|
|
5
6
|
*/
|
|
6
7
|
export declare const WORKFLOW_DOCTRINE: string;
|
|
7
8
|
//# sourceMappingURL=doctrine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctrine.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/doctrine.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"doctrine.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/doctrine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAQlB,CAAA"}
|
|
@@ -37,6 +37,11 @@ export interface WorkflowHostOptions {
|
|
|
37
37
|
readonly refusal: (turnId: TurnId) => string | undefined;
|
|
38
38
|
/** Register the run with the delegation path under a turn id of its own. */
|
|
39
39
|
readonly openRunTurn: (originTurnId: TurnId, runId: string) => WorkflowRunTurn;
|
|
40
|
+
/**
|
|
41
|
+
* The size advice paragraph for the tool description (see `workflowSizeAdvice`),
|
|
42
|
+
* fixed for the session. Absent or empty adds nothing.
|
|
43
|
+
*/
|
|
44
|
+
readonly sizeAdvice?: string;
|
|
40
45
|
/** Limits the run is held to, from the turn that started it. */
|
|
41
46
|
readonly limitsFor?: (turnId: TurnId) => WorkflowLimits | undefined;
|
|
42
47
|
/** Called once when a run ends (the conversation line and the model's message). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/host.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAGN,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,cAAc,EAMnB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAG9D,OAAO,EAAE,KAAK,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAExE,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,SAAU,CAAA;AAChD,yDAAyD;AACzD,eAAO,MAAM,uBAAuB,QAAS,CAAA;AAI7C,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAqB,GAAG,MAAM,CAa1F;AAED,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,kDAAkD;IAClD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACxB;AAED,MAAM,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,mFAAmF;IACnF,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAA;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACvC;AAED,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAA;IACtC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;CAC7B;AAED,UAAU,iBAAiB;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAMD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAatD;AAoCD,kHAAkH;AAClH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAa9E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY,CA0L7E"}
|
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `workflow` tool: its name, the text
|
|
3
|
+
* the model reads, and who may start a run.
|
|
3
4
|
*
|
|
4
|
-
* A workflow is a lot of work started on one decision, so the
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* A workflow is a lot of work started on one decision, so the model is told
|
|
6
|
+
* when it may call the tool; the tool itself is listed on every turn of a host
|
|
7
|
+
* that can run one (the model is gated by wording, not by the list).
|
|
8
|
+
* The opt-in is the operator's keyword (`hypermode`, shown as a tag and
|
|
9
|
+
* dropped with Alt+W), hypermode being on, or their own words. Pure.
|
|
9
10
|
*/
|
|
10
11
|
export declare const WORKFLOW_TOOL_NAME = "workflow";
|
|
11
12
|
/** The line under a workflow's launch row in the conversation. */
|
|
12
13
|
export declare const WORKFLOW_BACKGROUND_NOTE = "Running in the background (\u2193 to manage)";
|
|
13
|
-
/**
|
|
14
|
-
* Whether a message is the one `/workflow` composes. The bare word in a
|
|
15
|
-
* message the operator typed is not a request by itself: it goes through the
|
|
16
|
-
* composer-trigger matcher (`tui/triggers/`), which shows a tag and lets
|
|
17
|
-
* Alt+W drop it.
|
|
18
|
-
*/
|
|
19
|
-
export declare function isWorkflowCommandPrompt(text: string): boolean;
|
|
20
|
-
export interface WorkflowOffering {
|
|
21
|
-
/** The session's hypermode. */
|
|
22
|
-
readonly hypermode: boolean;
|
|
23
|
-
/** The operator's `workflow` trigger is armed for this turn. */
|
|
24
|
-
readonly workflow: boolean;
|
|
25
|
-
/** The text of the operator's latest message. */
|
|
26
|
-
readonly userText: string;
|
|
27
|
-
}
|
|
28
|
-
export declare function workflowOffered(input: WorkflowOffering): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The `/workflow <task>` command, as the message the model receives: the
|
|
31
|
-
* operator's task, plus the words that make the request explicit.
|
|
32
|
-
*/
|
|
33
|
-
export declare function workflowCommandPrompt(task: string): string;
|
|
34
14
|
/** The tool's description, as the model reads it. */
|
|
35
15
|
export declare const WORKFLOW_TOOL_DESCRIPTION: string;
|
|
16
|
+
/** The tool's description with the session's size advice (if any) after it. */
|
|
17
|
+
export declare function workflowToolDescription(sizeAdvice?: string): string;
|
|
36
18
|
/**
|
|
37
19
|
* Why a turn may not start a workflow, or `undefined` when it may.
|
|
38
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offering.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/offering.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"offering.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/offering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,iDAA4C,CAAA;AAEjF,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,QAqB1B,CAAA;AAEZ,+EAA+E;AAC/E,wBAAgB,uBAAuB,CAAC,UAAU,SAAK,GAAG,MAAM,CAI/D;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE;IACrC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB,GAAG,MAAM,GAAG,SAAS,CAGrB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow size: the advisory guideline the model reads, the "+500k" token
|
|
3
|
+
* target the person can type, and the large-run warning on the rail. Pure.
|
|
4
|
+
*
|
|
5
|
+
* The guideline is advice, never a limit; the target is a ceiling that
|
|
6
|
+
* `budget.total` carries into the script; the warning fires above 25 agents
|
|
7
|
+
* or 1.5M tokens unless the standing hypermode is on.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WORKFLOW_SIZE_GUIDELINES: readonly ["unrestricted", "small", "medium", "large"];
|
|
10
|
+
export type WorkflowSizeGuideline = (typeof WORKFLOW_SIZE_GUIDELINES)[number];
|
|
11
|
+
/** The guideline when none is configured. */
|
|
12
|
+
export declare const DEFAULT_WORKFLOW_SIZE_GUIDELINE: WorkflowSizeGuideline;
|
|
13
|
+
export declare function isWorkflowSizeGuideline(value: unknown): value is WorkflowSizeGuideline;
|
|
14
|
+
/** The agent count a guideline stays under, or undefined for `unrestricted`. */
|
|
15
|
+
export declare function guidelineAgents(guideline: WorkflowSizeGuideline): number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The advisory paragraph appended to the tool description, or '' for
|
|
18
|
+
* `unrestricted`. `configured` is false when the guideline is the default.
|
|
19
|
+
*/
|
|
20
|
+
export declare function workflowSizeAdvice(guideline: WorkflowSizeGuideline, configured: boolean): string;
|
|
21
|
+
/**
|
|
22
|
+
* The token target in a message the person typed: a standalone `+500k`,
|
|
23
|
+
* `+1.5m` or `+2b` (case-insensitive; the k, m or b suffix is required, so a
|
|
24
|
+
* bare number such as `+5000` in prose or a diff is never a target). The last
|
|
25
|
+
* one wins. Returns undefined when there is none. Call it only with the
|
|
26
|
+
* person's own text, never with model output or tool results.
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseTokenTarget(text: string): number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The token ceiling a workflow runs under: the smaller of the turn's own
|
|
31
|
+
* budget (when positive) and the typed target, or undefined for neither.
|
|
32
|
+
*/
|
|
33
|
+
export declare function workflowTokenCeiling(turnBudget: number | undefined, typedTarget: number | undefined): number | undefined;
|
|
34
|
+
export interface LargeRunInput {
|
|
35
|
+
/** Agents the script asked for so far, queued ones included. */
|
|
36
|
+
readonly scheduledAgents: number;
|
|
37
|
+
/** Agents that started. */
|
|
38
|
+
readonly startedAgents: number;
|
|
39
|
+
readonly totalTokens: number;
|
|
40
|
+
/** The standing hypermode is on: the person already asked for scale. */
|
|
41
|
+
readonly hypermode: boolean;
|
|
42
|
+
/** The guideline only when the person configured one. */
|
|
43
|
+
readonly configuredGuideline?: WorkflowSizeGuideline;
|
|
44
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
45
|
+
}
|
|
46
|
+
/** Whether a running workflow is big enough to warn about. */
|
|
47
|
+
export declare function isLargeRun(input: LargeRunInput): boolean;
|
|
48
|
+
/** The rail row's warning, long form and short form. */
|
|
49
|
+
export declare const LARGE_WORKFLOW_WARNING = "Large workflow \u00B7 /workflows to stop";
|
|
50
|
+
export declare const LARGE_WORKFLOW_WARNING_SHORT = "Large workflow";
|
|
51
|
+
//# sourceMappingURL=size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../src/integrations/workflows/size.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,wBAAwB,uDAAwD,CAAA;AAC7F,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CA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,7 @@ import { type PermissionMode } from './mode.js';
|
|
|
5
5
|
*
|
|
6
6
|
* The mode used to be fixed when a turn began, so the interactive terminal
|
|
7
7
|
* refused to change it until the turn ended ("Permissions were not changed.
|
|
8
|
-
* Finish or stop the current work first.").
|
|
9
|
-
* opposite: Shift+Tab takes effect at once, mid-turn, and only its footer
|
|
8
|
+
* Finish or stop the current work first."). Shift+Tab takes effect at once, mid-turn, and only its footer
|
|
10
9
|
* changes. This is the half of that which decides tool calls.
|
|
11
10
|
*
|
|
12
11
|
* The rules, and why each is the safe one:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-mode.d.ts","sourceRoot":"","sources":["../../src/permissions/live-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAA2B,MAAM,YAAY,CAAA;AAEpG,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,WAAW,CAAA;AAEpE
|
|
1
|
+
{"version":3,"file":"live-mode.d.ts","sourceRoot":"","sources":["../../src/permissions/live-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAA2B,MAAM,YAAY,CAAA;AAEpG,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,WAAW,CAAA;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,eAAe;IAC/B,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAA;IAChC,uFAAuF;IACvF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,cAAc,CAAA;IACpC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAA;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,aAAa,CAAA;CAC5D;AAED,MAAM,WAAW,eAAe;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,oEAAoE;IACpE,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAA;IACpC,mDAAmD;IACnD,OAAO,IAAI,cAAc,CAAA;IACzB;;;;;;;OAOG;IACH,kBAAkB,IAAI,OAAO,CAAA;IAC7B,mEAAmE;IACnE,MAAM,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAAA;IACxC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3D;AAED,sFAAsF;AACtF,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,KAAK,GAAG,eAAe,GAC3B,MAAM,CASR;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,GAAG,eAAe,CAwD/E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Where a "don't ask again" answer is written.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* file, which git does not track, and keeps git
|
|
4
|
+
* An allow rule is written to the project's local settings
|
|
5
|
+
* file, which git does not track, and Namzu keeps git
|
|
6
6
|
* from tracking it by adding `**` + the file's name to the person's GLOBAL
|
|
7
7
|
* git ignore (`core.excludesFile`, else `$XDG_CONFIG_HOME/git/ignore`, else
|
|
8
8
|
* `~/.config/git/ignore`) the first time it writes one, when the folder is in
|
|
@@ -46,8 +46,8 @@ export type IgnoreOutcome = {
|
|
|
46
46
|
readonly reason: string;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
|
-
* Make git ignore the local config in every repository
|
|
50
|
-
*
|
|
49
|
+
* Make git ignore the local config in every repository: one `**` + name line in the global ignore
|
|
50
|
+
* file, only when the
|
|
51
51
|
* folder is in a git work tree and git does not ignore the file already.
|
|
52
52
|
* Never throws; the answer was remembered either way.
|
|
53
53
|
*/
|
|
@@ -59,7 +59,7 @@ export interface ModeAvailability {
|
|
|
59
59
|
/** The cycle with every stop on it. */
|
|
60
60
|
export declare const FULL_AVAILABILITY: ModeAvailability;
|
|
61
61
|
/**
|
|
62
|
-
* The mode Shift+Tab moves to. The
|
|
62
|
+
* The mode Shift+Tab moves to. The cycle runs default, accept
|
|
63
63
|
* edits, plan, then bypass and auto when the session may use them, then back
|
|
64
64
|
* to default. `strict` is not on it, and neither is the kernel's unattended
|
|
65
65
|
* `auto`: leaving either goes back to `prompt`.
|
|
@@ -169,8 +169,7 @@ export declare function permissionLayersOf(config: {
|
|
|
169
169
|
*
|
|
170
170
|
* Each layer decides on its own, by the rules it always had: first match, the
|
|
171
171
|
* most specific pattern first, a narrower allow beating a broader deny of the
|
|
172
|
-
* same table. The layers are then combined
|
|
173
|
-
* combines its sources: a layer that denies the call denies it, else a layer
|
|
172
|
+
* same table. The layers are then combined this way: a layer that denies the call denies it, else a layer
|
|
174
173
|
* that asks asks, else a layer that allows allows, and no layer's word is lost
|
|
175
174
|
* because a higher one wrote a table of its own. Which layer is higher does
|
|
176
175
|
* not matter to the outcome, so a managed table adds to the rules below it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/permissions/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAGN,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAIX,MAAM,YAAY,CAAA;AAInB,OAAO,EAAE,KAAK,sBAAsB,EAA0B,MAAM,aAAa,CAAA;AAEjF,6DAA6D;AAC7D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;AAIvD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAA;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MAAM,EAAE;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IACxC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAA;CACxD,GAAG,SAAS,iBAAiB,EAAE,CAG/B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,SAAS,CAAC,iBAAiB,GAAG,SAAS,CAAC,EAAE,EAClD,MAAM,CAAC,EAAE,sBAAsB,GAC7B,mBAAmB,CAiDrB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What a "don't ask again" answer remembers.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* applies and
|
|
4
|
+
* Each answer is offered as a permission suggestion that "yes"
|
|
5
|
+
* applies and that is written to the project's local settings file. This is the
|
|
6
6
|
* Namzu side of that: an allow the operator gave at a prompt, written to the
|
|
7
7
|
* project's `namzu.config.local.json` (see `local-settings.ts`), where the next
|
|
8
8
|
* session reads it back as the local layer of the config cascade, and held in
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* kernel escalation (a sandbox escape, a path outside the roots, a protected
|
|
13
13
|
* path, a catastrophic removal) is reviewed whatever any rule says.
|
|
14
14
|
*
|
|
15
|
-
* A command is remembered
|
|
15
|
+
* A command is remembered as its first two
|
|
16
16
|
* words and a star (`git commit *`) when the second word is a plain
|
|
17
17
|
* subcommand and the first is not a shell or a wrapper; the exact command
|
|
18
18
|
* otherwise. A compound line gets one rule per command in it.
|
|
@@ -52,31 +52,31 @@ export interface AllowableCall {
|
|
|
52
52
|
readonly escalation?: unknown;
|
|
53
53
|
}
|
|
54
54
|
export declare const WEB_FETCH_TOOL = "web_fetch";
|
|
55
|
-
/** Rules one answer may write;
|
|
55
|
+
/** Rules one answer may write; a compound line stops at five. */
|
|
56
56
|
export declare const MAX_RULES_PER_ANSWER = 5;
|
|
57
57
|
/** Tools whose command line is one argument; `bash` today. */
|
|
58
58
|
export type CommandArguments = ReadonlyMap<string, string>;
|
|
59
59
|
/**
|
|
60
|
-
* The first two words of a command, when
|
|
60
|
+
* The first two words of a command, when they would be offered as a
|
|
61
61
|
* rule: at least two words, the first not a shell or a wrapper, the second a
|
|
62
62
|
* plain subcommand. `git commit -m x` gives `git commit`; `git -C dir status`,
|
|
63
63
|
* `bash -c x`, `sudo ls` and `ls -la` give nothing.
|
|
64
64
|
*
|
|
65
|
-
* A line that starts with a variable assignment gives nothing either.
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
65
|
+
* A line that starts with a variable assignment gives nothing either. Namzu does not strip safe
|
|
66
|
+
* assignments: a rule is matched against the
|
|
67
|
+
* command as written, assignments included, so the prefix would never match
|
|
68
|
+
* the line it was offered for.
|
|
69
69
|
*/
|
|
70
70
|
export declare function twoWordPrefix(command: string): string | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* The allows a "don't ask again" answer would remember for one call, or none.
|
|
73
73
|
*
|
|
74
74
|
* One plain command gives one rule. A compound line gives one rule per command
|
|
75
|
-
* in it,
|
|
75
|
+
* in it, up to five; the rules only help together, so a
|
|
76
76
|
* line any of whose commands has no rule form (a glob, a substitution, a
|
|
77
77
|
* redirection) gives none. A line that spans several lines, or carries a
|
|
78
|
-
* here-document, gives none either: the
|
|
79
|
-
*
|
|
78
|
+
* here-document, gives none either: the first line's prefix would cover
|
|
79
|
+
* whatever follows it, and a Namzu rule is
|
|
80
80
|
* matched command by command.
|
|
81
81
|
*/
|
|
82
82
|
export declare function allowsFor(call: AllowableCall, commands: CommandArguments): readonly SessionAllow[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-allow.d.ts","sourceRoot":"","sources":["../../src/permissions/session-allow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAGN,KAAK,iBAAiB,EAGtB,MAAM,YAAY,CAAA;AAGnB,OAAO,EAEN,wBA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SAAS,CAAC,CAAA;IAClD,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,gBAAgB,CAAA;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,wBAAwB,CAAA;CACtD;AAED,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,gBAAgB,EAC3B,OAAO,GAAE,oBAAyB,GAChC,aAAa,CAwDf"}
|
package/dist/plan/approval.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import type { PermissionMode } from '../permissions/mode.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* The approval the person gives a plan.
|
|
4
4
|
*
|
|
5
|
-
* Rows and order
|
|
6
|
-
* context" row is configured: the first row leaves plan mode for auto-accepting
|
|
5
|
+
* Rows and order, when no "clear the context" row is configured: the first row leaves plan mode for auto-accepting
|
|
7
6
|
* edits (or, when the session may run without asking, for that), the second for
|
|
8
7
|
* asking before each edit, and the last is a text row, "keep planning", whose
|
|
9
8
|
* typed words go back to the model. Approving keeps the conversation as it is.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../src/plan/approval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAE5D
|
|
1
|
+
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../src/plan/approval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IACnC,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,8BAA8B;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,gFAAgF;IAChF,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CACjC;AAED,MAAM,MAAM,kBAAkB;AAC7B,oFAAoF;AAClF;IACA,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CACzB;AACH,+FAA+F;GAC7F;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEjE,8GAA8G;AAC9G,MAAM,MAAM,cAAc,GAAG,CAC5B,OAAO,EAAE,mBAAmB,EAC5B,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAEhC,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,EAAE,EAAE,cAAc,GAAG,sBAAsB,GAAG,aAAa,GAAG,eAAe,CAAA;IACtF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,CAAA;CAC9B;AAED,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AAEpE,yDAAyD;AACzD,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,eAAe,EAAE,CAoBrF;AAED,eAAO,MAAM,wBAAwB,mBAAmB,CAAA"}
|
|
@@ -7,7 +7,7 @@ import type { Message } from '@namzu/sdk';
|
|
|
7
7
|
* it has already sent: the conversation is the only record, so a resumed or
|
|
8
8
|
* compacted conversation needs no counter of its own.
|
|
9
9
|
*/
|
|
10
|
-
export type ReminderKind = 'plan-mode' | 'plan-reentry' | 'plan-exit' | 'task-nudge';
|
|
10
|
+
export type ReminderKind = 'plan-mode' | 'plan-reentry' | 'plan-exit' | 'task-nudge' | 'hypermode-on' | 'hypermode-exit';
|
|
11
11
|
export declare function frameReminder(kind: ReminderKind, text: string, form?: 'full' | 'sparse'): string;
|
|
12
12
|
/** Which of this terminal's reminders a message is, or `undefined` for any other message. */
|
|
13
13
|
export declare function reminderKindOf(message: Message): ReminderKind | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../src/reminders/frame.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGzC;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../src/reminders/frame.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGzC;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GACrB,WAAW,GACX,cAAc,GACd,WAAW,GACX,YAAY,GACZ,cAAc,GACd,gBAAgB,CAAA;AAInB,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAKhG;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAWzE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAQxD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Message } from '@namzu/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* What the model is told about the standing hypermode, turn by turn.
|
|
4
|
+
*
|
|
5
|
+
* - on, and the last thing said was not "on": the full text;
|
|
6
|
+
* - on, said, and {@link HYPERMODE_REMINDER_EVERY} operator messages have
|
|
7
|
+
* passed since: the sparse text;
|
|
8
|
+
* - off, and the last thing said was "on": the exit text, once.
|
|
9
|
+
*
|
|
10
|
+
* Like the plan-mode reminders, the count runs over the conversation: what was
|
|
11
|
+
* said is the reminders already in it. A resumed conversation therefore does
|
|
12
|
+
* not hear the full text again, and one whose history was compacted away
|
|
13
|
+
* hears it once more.
|
|
14
|
+
*/
|
|
15
|
+
export declare const HYPERMODE_REMINDER_EVERY = 10;
|
|
16
|
+
export interface HypermodeReminderInput {
|
|
17
|
+
readonly messages: readonly Message[];
|
|
18
|
+
/** Whether hypermode is on for the request about to be made. */
|
|
19
|
+
readonly on: boolean;
|
|
20
|
+
/** Whether the `workflow` tool is in this request's tool list. */
|
|
21
|
+
readonly toolListed: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Whether the latest thing said about hypermode in this conversation was
|
|
25
|
+
* "on", so the exit text is still owed when the mode is off now. A host
|
|
26
|
+
* that does not otherwise feed reminders uses it to make a source anyway.
|
|
27
|
+
*/
|
|
28
|
+
export declare function hypermodeExitOwed(messages: readonly Message[]): boolean;
|
|
29
|
+
/** The reminders to append before the next request; empty when there is nothing to say. */
|
|
30
|
+
export declare function hypermodeReminders(input: HypermodeReminderInput): string[];
|
|
31
|
+
//# sourceMappingURL=hypermode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hypermode.d.ts","sourceRoot":"","sources":["../../src/reminders/hypermode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAIzC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAA;AAe1C,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAA;IACpB,kEAAkE;IAClE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;CAC5B;AAiBD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAEvE;AAED,2FAA2F;AAC3F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,EAAE,CAkB1E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReminderSource, Task } from '@namzu/sdk';
|
|
2
2
|
import type { PermissionMode } from '../permissions/mode.js';
|
|
3
3
|
export { frameReminder, reminderKindOf } from './frame.js';
|
|
4
|
+
export { HYPERMODE_REMINDER_EVERY, hypermodeExitOwed, hypermodeReminders } from './hypermode.js';
|
|
4
5
|
export { planModeReminders } from './plan-mode.js';
|
|
5
6
|
export { taskNudge } from './task-nudge.js';
|
|
6
7
|
export interface CliReminderOptions {
|
|
@@ -12,11 +13,16 @@ export interface CliReminderOptions {
|
|
|
12
13
|
readonly canAsk?: boolean;
|
|
13
14
|
/** The session's tasks, when it has task tools; absent means no nudge. */
|
|
14
15
|
readonly tasks?: () => Promise<readonly Pick<Task, 'id' | 'status' | 'subject'>[]>;
|
|
16
|
+
/** Whether hypermode is on, and whether the `workflow` tool is listed; absent means no hypermode reminders. */
|
|
17
|
+
readonly hypermode?: () => {
|
|
18
|
+
readonly on: boolean;
|
|
19
|
+
readonly toolListed: boolean;
|
|
20
|
+
};
|
|
15
21
|
/** Whether the plan file exists; defaults to the filesystem. */
|
|
16
22
|
readonly planExists?: (path: string) => boolean;
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
|
-
* The reminders this terminal feeds a turn: plan mode's, then the task nudge.
|
|
25
|
+
* The reminders this terminal feeds a turn: plan mode's, hypermode's, then the task nudge.
|
|
20
26
|
* Both read the conversation they are handed, so there is nothing to carry
|
|
21
27
|
* between requests.
|
|
22
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reminders/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reminders/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,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on and none has been sent in the last 5 operator
|
|
5
5
|
* turns; the first of a stretch is the full text, and so is every 5th after it
|
|
6
6
|
* (1st, 6th, 11th …); the ones between are one short line. Leaving plan mode
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Message, Task } from '@namzu/sdk';
|
|
2
2
|
/**
|
|
3
|
-
* The task-list nudge
|
|
3
|
+
* The task-list nudge: after 10 model
|
|
4
4
|
* turns without a task tool, and no more than once per 10 model turns, the
|
|
5
5
|
* model is reminded the list exists and shown its current contents.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fire.d.ts","sourceRoot":"","sources":["../../../src/schedule/fire/fire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAeH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAsB7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAOhD,OAAO,EACN,KAAK,WAAW,EAGhB,KAAK,kBAAkB,EAEvB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAyB,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAQhF,eAAO,MAAM,WAAW,uDAAuD,CAAA;AAC/E,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAA;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GA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