@namzu/cli 41.0.0 → 41.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 +21 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-CLFVQCFH.js → acp-PHHX4X7I.js} +40 -35
- package/dist/chunks/acp-PHHX4X7I.js.map +6 -0
- package/dist/chunks/{activity-command-XULXEUGH.js → activity-command-VZYEOBGH.js} +12 -11
- package/dist/chunks/activity-command-VZYEOBGH.js.map +6 -0
- package/dist/chunks/{add-BALM5DGZ.js → add-7C455H4M.js} +20 -19
- package/dist/chunks/add-7C455H4M.js.map +6 -0
- package/dist/chunks/{agent-CLYE4KWV.js → agent-DWDNEJ4O.js} +31 -26
- package/dist/chunks/agent-session-6VKAI3MW.js +59 -0
- package/dist/chunks/{archive-FWXFWMZJ.js → archive-64TMFN4V.js} +10 -9
- package/dist/chunks/archive-64TMFN4V.js.map +6 -0
- package/dist/chunks/{bin-main-HO4CMSMY.js → bin-main-FHIEKDBH.js} +3 -3
- package/dist/chunks/{browser-Z46YPGWH.js → browser-S5FSWWNV.js} +6 -6
- package/dist/chunks/{chat-NOXE5RTE.js → chat-DNBIXT2D.js} +15 -14
- package/dist/chunks/chat-DNBIXT2D.js.map +6 -0
- package/dist/chunks/{chunk-PDZZ64IH.js → chunk-3K52E4DA.js} +26 -201
- package/dist/chunks/chunk-3K52E4DA.js.map +6 -0
- package/dist/chunks/{chunk-M5RW7JBV.js → chunk-3SODK62W.js} +9 -9
- package/dist/chunks/{chunk-CBL2FUHG.js → chunk-42I6K42A.js} +2 -2
- package/dist/chunks/{chunk-WQRBEQ2P.js → chunk-44B2CZ55.js} +2 -2
- package/dist/chunks/{chunk-O6JILDEY.js → chunk-52R5A75N.js} +6 -6
- package/dist/chunks/{chunk-B2RMIYPZ.js → chunk-57ECSVZJ.js} +4 -4
- package/dist/chunks/{chunk-AOHJCFG3.js → chunk-5U7CJV4T.js} +2 -2
- package/dist/chunks/{chunk-XWLQH2NW.js → chunk-6WWEY6KW.js} +19 -19
- package/dist/chunks/{chunk-WV7XGYNQ.js → chunk-75FRF5SV.js} +5 -5
- package/dist/chunks/{chunk-AUZB4LKS.js → chunk-75XGHRMM.js} +4 -4
- package/dist/chunks/{chunk-5OVI35QS.js → chunk-76XQC54X.js} +3 -3
- package/dist/chunks/{chunk-V2NG7LLL.js → chunk-7QKWJGLX.js} +9 -50
- package/dist/chunks/chunk-7QKWJGLX.js.map +6 -0
- package/dist/chunks/{chunk-AX4Z3H7N.js → chunk-AN5NBDDK.js} +2 -2
- package/dist/chunks/{chunk-PSZ44BRO.js → chunk-ARZVX6H7.js} +4 -4
- package/dist/chunks/{chunk-B6BQ5ULO.js → chunk-ATB6MDK6.js} +2 -2
- package/dist/chunks/{chunk-4JQUY3DT.js → chunk-BL6HR7T6.js} +2 -2
- package/dist/chunks/{chunk-65CAAE7I.js → chunk-CRZSMG4A.js} +4 -4
- package/dist/chunks/{chunk-O6FOUL5S.js → chunk-DFBRAOJJ.js} +4 -4
- package/dist/chunks/{chunk-SE5UKEXD.js → chunk-DFOMCWXC.js} +2 -2
- package/dist/chunks/{chunk-WLAVNIFG.js → chunk-DVAUMW53.js} +3 -3
- package/dist/chunks/{chunk-3WAQN6DX.js → chunk-DZQ5B6TK.js} +2 -2
- package/dist/chunks/{chunk-OUQEMJ26.js → chunk-FFZEVYXE.js} +3 -3
- package/dist/chunks/chunk-GDQZHSMZ.js +403 -0
- package/dist/chunks/chunk-GDQZHSMZ.js.map +6 -0
- package/dist/chunks/{chunk-YXZBHG5N.js → chunk-GZCTJ23H.js} +292 -24
- package/dist/chunks/chunk-GZCTJ23H.js.map +6 -0
- package/dist/chunks/{chunk-SPZWLMZY.js → chunk-HV4AV3CS.js} +3 -3
- package/dist/chunks/{chunk-4GJSW2KC.js → chunk-HXB37QQT.js} +18 -18
- package/dist/chunks/{chunk-4GJSW2KC.js.map → chunk-HXB37QQT.js.map} +2 -2
- package/dist/chunks/{chunk-P3JHLZH4.js → chunk-IBYZTDHR.js} +2 -2
- package/dist/chunks/{chunk-SEYEOYMT.js → chunk-JBAEWQ5I.js} +4 -4
- package/dist/chunks/{chunk-6RNVFKSZ.js → chunk-KHWP5BUX.js} +3 -3
- package/dist/chunks/chunk-KV6EVTR7.js +406 -0
- package/dist/chunks/chunk-KV6EVTR7.js.map +6 -0
- package/dist/chunks/chunk-L7T37IYT.js +197 -0
- package/dist/chunks/chunk-L7T37IYT.js.map +6 -0
- package/dist/chunks/chunk-LCGXWCVU.js +28 -0
- package/dist/chunks/chunk-LCGXWCVU.js.map +6 -0
- package/dist/chunks/{chunk-PPZKCA6K.js → chunk-LJIEV5UP.js} +2 -2
- package/dist/chunks/{chunk-QY77MJS4.js → chunk-LQGQJMT7.js} +4 -4
- package/dist/chunks/{chunk-YGV3VBYL.js → chunk-LZHSDCZS.js} +2 -2
- package/dist/chunks/{chunk-MZI4TLFB.js → chunk-MCZVTGKV.js} +22 -20
- package/dist/chunks/chunk-MCZVTGKV.js.map +6 -0
- package/dist/chunks/{chunk-NQGMYAXK.js → chunk-MIKVWIFY.js} +3 -3
- package/dist/chunks/{chunk-IR3AZZFJ.js → chunk-NU4R7BC5.js} +13 -13
- package/dist/chunks/{chunk-QSDPQR3F.js → chunk-OP6TJ65Q.js} +3 -3
- package/dist/chunks/{chunk-WZPN6PWE.js → chunk-OZ7SAUC5.js} +7 -7
- package/dist/chunks/{chunk-37S7MY2T.js → chunk-Q3M7HIXS.js} +69 -4
- package/dist/chunks/chunk-Q3M7HIXS.js.map +6 -0
- package/dist/chunks/{chunk-EL6GXINV.js → chunk-Q56NJHND.js} +2 -2
- package/dist/chunks/{chunk-6CCX6DPQ.js → chunk-QE4S3AAB.js} +2 -2
- package/dist/chunks/{chunk-XRX3DHEW.js → chunk-QW2UWIGL.js} +4 -4
- package/dist/chunks/{chunk-PTJI2QA4.js → chunk-S4MAWWPH.js} +3 -3
- package/dist/chunks/{chunk-K5OXOYM5.js → chunk-S6DQAA2W.js} +1840 -1097
- package/dist/chunks/chunk-S6DQAA2W.js.map +6 -0
- package/dist/chunks/{chunk-FLYE25VX.js → chunk-SAIL2BFW.js} +2 -2
- package/dist/chunks/chunk-TK24NCDI.js +609 -0
- package/dist/chunks/chunk-TK24NCDI.js.map +6 -0
- package/dist/chunks/{chunk-RWOPUQNS.js → chunk-UAW426OS.js} +2 -2
- package/dist/chunks/chunk-UOM2WQWT.js +56 -0
- package/dist/chunks/chunk-UOM2WQWT.js.map +6 -0
- package/dist/chunks/{chunk-SMR6TQN2.js → chunk-VJEJ4MDH.js} +2 -2
- package/dist/chunks/{chunk-JSGZ4V7Y.js → chunk-VP7VGACS.js} +2 -2
- package/dist/chunks/{chunk-PKLBJMCY.js → chunk-W7Z6CXGV.js} +4 -4
- package/dist/chunks/{chunk-BPRT5LV7.js → chunk-X5FPHIJV.js} +2 -2
- package/dist/chunks/{chunk-V2ZSQXYQ.js → chunk-XD6I2JWS.js} +8 -8
- package/dist/chunks/{chunk-MDG3THRR.js → chunk-XEAQL6XT.js} +2 -2
- package/dist/chunks/{chunk-AGN45S6D.js → chunk-XXJTG3PY.js} +2 -2
- package/dist/chunks/{chunk-VUZYMKPD.js → chunk-Y7XE2FKY.js} +7 -7
- package/dist/chunks/{chunk-KD4Q2INM.js → chunk-YCZU2AAH.js} +2 -2
- package/dist/chunks/{chunk-DMPPM3IA.js → chunk-YEM2A2EP.js} +3 -3
- package/dist/chunks/{chunk-G4LCCGQR.js → chunk-YGGGLNOK.js} +2 -2
- package/dist/chunks/{chunk-HE7K6IZ2.js → chunk-YRYBG2IN.js} +50 -30
- package/dist/chunks/chunk-YRYBG2IN.js.map +6 -0
- package/dist/chunks/{chunk-V4PHIKLW.js → chunk-ZGLV3FQF.js} +2 -2
- package/dist/chunks/{chunk-MNDFPZVQ.js → chunk-ZR7NIUZ5.js} +3 -3
- package/dist/chunks/{cli-runtime-5H7CTXF2.js → cli-runtime-TFMBNVCM.js} +11 -10
- package/dist/chunks/cli-runtime-TFMBNVCM.js.map +6 -0
- package/dist/chunks/{commands-XC67PG6L.js → commands-D63UCDXO.js} +5 -5
- package/dist/chunks/{crash-report-UE423ET4.js → crash-report-DA6SPZFQ.js} +6 -6
- package/dist/chunks/{dist-SY7OYS74.js → dist-2S22UD3L.js} +2 -2
- package/dist/chunks/{dist-SN7QXPO2.js → dist-BX53YVW2.js} +2 -2
- package/dist/chunks/{dist-YZRXSX7C.js → dist-CIOAMQ5V.js} +2 -2
- package/dist/chunks/{dist-OXUHOXCU.js → dist-CS6PGGNY.js} +2 -2
- package/dist/chunks/{dist-DSK2VZQB.js → dist-YMNLOZFF.js} +2 -2
- package/dist/chunks/{dist-DCOPEJDN.js → dist-ZOXEFXEG.js} +2 -2
- package/dist/chunks/{dist-4ACX6FL7.js → dist-ZQNCDMNT.js} +2 -2
- package/dist/chunks/{doctor-VCCIYKNL.js → doctor-NXTO5W7O.js} +9 -9
- package/dist/chunks/{drain-QKEXEMCO.js → drain-AN6TSG5Z.js} +10 -10
- package/dist/chunks/{eval-K47YMZVT.js → eval-IQVUB53L.js} +2 -2
- package/dist/chunks/{exec-K3LRQU6R.js → exec-A24HU7YF.js} +30 -27
- package/dist/chunks/exec-A24HU7YF.js.map +6 -0
- package/dist/chunks/{home-OSHELFKX.js → home-OHK7HIRS.js} +3 -3
- package/dist/chunks/{host-queries-TV3XH3YV.js → host-queries-2MVXFXFU.js} +15 -14
- package/dist/chunks/host-queries-2MVXFXFU.js.map +6 -0
- package/dist/chunks/learn-F6SCIXWV.js +92 -0
- package/dist/chunks/learn-F6SCIXWV.js.map +6 -0
- package/dist/chunks/learn-builtin-K6MBTXBD.js +235 -0
- package/dist/chunks/learn-builtin-K6MBTXBD.js.map +6 -0
- package/dist/chunks/{lifecycle-R3QWZ664.js → lifecycle-SZCCUZSZ.js} +26 -24
- package/dist/chunks/{list-L5QFDBPX.js → list-JN6UR3ZE.js} +21 -20
- package/dist/chunks/list-JN6UR3ZE.js.map +6 -0
- package/dist/chunks/{login-N4EO2F45.js → login-6OWXZOWM.js} +8 -8
- package/dist/chunks/{logs-264INNUN.js → logs-DHUCKQZI.js} +4 -4
- package/dist/chunks/{mcp-7H3G3KLD.js → mcp-RBFXGNP4.js} +17 -16
- package/dist/chunks/mcp-RBFXGNP4.js.map +6 -0
- package/dist/chunks/{message-command-JOQ24TAL.js → message-command-N4X3OTTG.js} +37 -32
- package/dist/chunks/message-command-N4X3OTTG.js.map +6 -0
- package/dist/chunks/{operator-tools-O2MDVMJP.js → operator-tools-P6GFP2RK.js} +13 -12
- package/dist/chunks/operator-tools-P6GFP2RK.js.map +6 -0
- package/dist/chunks/{output-schema-LKM35JS4.js → output-schema-JKO3QUVC.js} +3 -3
- package/dist/chunks/{pal-N56IUOUP.js → pal-5GFCH4E5.js} +11 -11
- package/dist/chunks/{providers-B352G4OM.js → providers-22W6AUTI.js} +6 -6
- package/dist/chunks/{resident-SMWDKMJP.js → resident-G6R4DZLL.js} +50 -335
- package/dist/chunks/resident-G6R4DZLL.js.map +6 -0
- package/dist/chunks/resume-MGFWNJ6Q.js +23 -0
- package/dist/chunks/{resume-command-OHQBIY5P.js → resume-command-R6QPISLR.js} +4 -4
- package/dist/chunks/{schedule-VHP2VGEF.js → schedule-QDEIY4QB.js} +8 -8
- package/dist/chunks/{service-RHWPRJJO.js → service-ZF3TPBH5.js} +31 -29
- package/dist/chunks/service-ZF3TPBH5.js.map +6 -0
- package/dist/chunks/session-step-X6LLEFHX.js +30 -0
- package/dist/chunks/{skills-JS3FQPHU.js → skills-YAMIRCHY.js} +8 -8
- package/dist/chunks/{state-A56X2FGB.js → state-3ACU54IM.js} +2 -2
- package/dist/chunks/{store-IMV6NZTT.js → store-7RLXPZE2.js} +10 -9
- package/dist/chunks/{store-WJEK5ZI2.js → store-AR4ZFSJ4.js} +6 -6
- package/dist/chunks/{store-SEPPZ7H6.js → store-OXXJMFPP.js} +4 -4
- package/dist/chunks/{tui-BP7MYQG2.js → tui-3NJA6ZKY.js} +115 -68
- package/dist/chunks/tui-3NJA6ZKY.js.map +6 -0
- package/dist/chunks/{upgrade-2A7CIVAY.js → upgrade-IEU2FN3F.js} +2 -2
- package/dist/chunks/{worktree-ERUU4NVZ.js → worktree-R7GZ3TZV.js} +12 -11
- package/dist/chunks/worktree-R7GZ3TZV.js.map +6 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/learn-builtin.d.ts +8 -0
- package/dist/commands/learn-builtin.d.ts.map +1 -0
- package/dist/commands/learn.d.ts +9 -0
- package/dist/commands/learn.d.ts.map +1 -0
- package/dist/commands/learning.d.ts +6 -0
- package/dist/commands/learning.d.ts.map +1 -0
- package/dist/commands/manifest.d.ts +2 -0
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/resident.d.ts +2 -0
- package/dist/commands/resident.d.ts.map +1 -1
- package/dist/config/learning-generator.d.ts +13 -0
- package/dist/config/learning-generator.d.ts.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +23 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.js +14 -13
- package/dist/integrations/learning/generator-run.d.ts +43 -0
- package/dist/integrations/learning/generator-run.d.ts.map +1 -0
- package/dist/integrations/learning/generator-settings.d.ts +25 -0
- package/dist/integrations/learning/generator-settings.d.ts.map +1 -0
- package/dist/integrations/learning/generator-state.d.ts +28 -0
- package/dist/integrations/learning/generator-state.d.ts.map +1 -0
- package/dist/integrations/learning/generator-trigger.d.ts +58 -0
- package/dist/integrations/learning/generator-trigger.d.ts.map +1 -0
- package/dist/integrations/learning/guidance-history.d.ts +45 -0
- package/dist/integrations/learning/guidance-history.d.ts.map +1 -0
- package/dist/integrations/learning/learned-notice.d.ts +11 -0
- package/dist/integrations/learning/learned-notice.d.ts.map +1 -0
- package/dist/integrations/learning/learning-model.d.ts +26 -0
- package/dist/integrations/learning/learning-model.d.ts.map +1 -0
- package/dist/integrations/learning/project-guidance.d.ts +11 -0
- package/dist/integrations/learning/project-guidance.d.ts.map +1 -0
- package/dist/integrations/learning/scenario-evaluator.d.ts +84 -0
- package/dist/integrations/learning/scenario-evaluator.d.ts.map +1 -0
- package/dist/integrations/learning/scenarios.d.ts +42 -0
- package/dist/integrations/learning/scenarios.d.ts.map +1 -0
- package/dist/integrations/learning/session-feed.d.ts +110 -0
- package/dist/integrations/learning/session-feed.d.ts.map +1 -0
- package/dist/integrations/learning/session-store.d.ts +22 -0
- package/dist/integrations/learning/session-store.d.ts.map +1 -0
- package/dist/integrations/learning/sources.d.ts +4 -0
- package/dist/integrations/learning/sources.d.ts.map +1 -0
- package/dist/integrations/resident/learning-storage.d.ts +2 -2
- package/dist/integrations/resident/learning-storage.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +22 -19
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/resident/session-step.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +31 -0
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/types.d.ts +5 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/chunks/acp-CLFVQCFH.js.map +0 -6
- package/dist/chunks/activity-command-XULXEUGH.js.map +0 -6
- package/dist/chunks/add-BALM5DGZ.js.map +0 -6
- package/dist/chunks/agent-session-2MVAYKJC.js +0 -54
- package/dist/chunks/archive-FWXFWMZJ.js.map +0 -6
- package/dist/chunks/chat-NOXE5RTE.js.map +0 -6
- package/dist/chunks/chunk-37S7MY2T.js.map +0 -6
- package/dist/chunks/chunk-HE7K6IZ2.js.map +0 -6
- package/dist/chunks/chunk-K5OXOYM5.js.map +0 -6
- package/dist/chunks/chunk-MZI4TLFB.js.map +0 -6
- package/dist/chunks/chunk-PDZZ64IH.js.map +0 -6
- package/dist/chunks/chunk-V2NG7LLL.js.map +0 -6
- package/dist/chunks/chunk-YXZBHG5N.js.map +0 -6
- package/dist/chunks/cli-runtime-5H7CTXF2.js.map +0 -6
- package/dist/chunks/exec-K3LRQU6R.js.map +0 -6
- package/dist/chunks/host-queries-TV3XH3YV.js.map +0 -6
- package/dist/chunks/list-L5QFDBPX.js.map +0 -6
- package/dist/chunks/mcp-7H3G3KLD.js.map +0 -6
- package/dist/chunks/message-command-JOQ24TAL.js.map +0 -6
- package/dist/chunks/operator-tools-O2MDVMJP.js.map +0 -6
- package/dist/chunks/resident-SMWDKMJP.js.map +0 -6
- package/dist/chunks/resume-EXHKGQII.js +0 -22
- package/dist/chunks/service-RHWPRJJO.js.map +0 -6
- package/dist/chunks/session-step-NJRR3Q2L.js +0 -30
- package/dist/chunks/tui-BP7MYQG2.js.map +0 -6
- package/dist/chunks/worktree-ERUU4NVZ.js.map +0 -6
- package/dist/commands/resident-learning.d.ts +0 -6
- package/dist/commands/resident-learning.d.ts.map +0 -1
- package/dist/integrations/resident/learning-sources.d.ts +0 -4
- package/dist/integrations/resident/learning-sources.d.ts.map +0 -1
- /package/dist/chunks/{agent-CLYE4KWV.js.map → agent-DWDNEJ4O.js.map} +0 -0
- /package/dist/chunks/{agent-session-2MVAYKJC.js.map → agent-session-6VKAI3MW.js.map} +0 -0
- /package/dist/chunks/{bin-main-HO4CMSMY.js.map → bin-main-FHIEKDBH.js.map} +0 -0
- /package/dist/chunks/{browser-Z46YPGWH.js.map → browser-S5FSWWNV.js.map} +0 -0
- /package/dist/chunks/{chunk-M5RW7JBV.js.map → chunk-3SODK62W.js.map} +0 -0
- /package/dist/chunks/{chunk-CBL2FUHG.js.map → chunk-42I6K42A.js.map} +0 -0
- /package/dist/chunks/{chunk-WQRBEQ2P.js.map → chunk-44B2CZ55.js.map} +0 -0
- /package/dist/chunks/{chunk-O6JILDEY.js.map → chunk-52R5A75N.js.map} +0 -0
- /package/dist/chunks/{chunk-B2RMIYPZ.js.map → chunk-57ECSVZJ.js.map} +0 -0
- /package/dist/chunks/{chunk-AOHJCFG3.js.map → chunk-5U7CJV4T.js.map} +0 -0
- /package/dist/chunks/{chunk-XWLQH2NW.js.map → chunk-6WWEY6KW.js.map} +0 -0
- /package/dist/chunks/{chunk-WV7XGYNQ.js.map → chunk-75FRF5SV.js.map} +0 -0
- /package/dist/chunks/{chunk-AUZB4LKS.js.map → chunk-75XGHRMM.js.map} +0 -0
- /package/dist/chunks/{chunk-5OVI35QS.js.map → chunk-76XQC54X.js.map} +0 -0
- /package/dist/chunks/{chunk-AX4Z3H7N.js.map → chunk-AN5NBDDK.js.map} +0 -0
- /package/dist/chunks/{chunk-PSZ44BRO.js.map → chunk-ARZVX6H7.js.map} +0 -0
- /package/dist/chunks/{chunk-B6BQ5ULO.js.map → chunk-ATB6MDK6.js.map} +0 -0
- /package/dist/chunks/{chunk-4JQUY3DT.js.map → chunk-BL6HR7T6.js.map} +0 -0
- /package/dist/chunks/{chunk-65CAAE7I.js.map → chunk-CRZSMG4A.js.map} +0 -0
- /package/dist/chunks/{chunk-O6FOUL5S.js.map → chunk-DFBRAOJJ.js.map} +0 -0
- /package/dist/chunks/{chunk-SE5UKEXD.js.map → chunk-DFOMCWXC.js.map} +0 -0
- /package/dist/chunks/{chunk-WLAVNIFG.js.map → chunk-DVAUMW53.js.map} +0 -0
- /package/dist/chunks/{chunk-3WAQN6DX.js.map → chunk-DZQ5B6TK.js.map} +0 -0
- /package/dist/chunks/{chunk-OUQEMJ26.js.map → chunk-FFZEVYXE.js.map} +0 -0
- /package/dist/chunks/{chunk-SPZWLMZY.js.map → chunk-HV4AV3CS.js.map} +0 -0
- /package/dist/chunks/{chunk-P3JHLZH4.js.map → chunk-IBYZTDHR.js.map} +0 -0
- /package/dist/chunks/{chunk-SEYEOYMT.js.map → chunk-JBAEWQ5I.js.map} +0 -0
- /package/dist/chunks/{chunk-6RNVFKSZ.js.map → chunk-KHWP5BUX.js.map} +0 -0
- /package/dist/chunks/{chunk-PPZKCA6K.js.map → chunk-LJIEV5UP.js.map} +0 -0
- /package/dist/chunks/{chunk-QY77MJS4.js.map → chunk-LQGQJMT7.js.map} +0 -0
- /package/dist/chunks/{chunk-YGV3VBYL.js.map → chunk-LZHSDCZS.js.map} +0 -0
- /package/dist/chunks/{chunk-NQGMYAXK.js.map → chunk-MIKVWIFY.js.map} +0 -0
- /package/dist/chunks/{chunk-IR3AZZFJ.js.map → chunk-NU4R7BC5.js.map} +0 -0
- /package/dist/chunks/{chunk-QSDPQR3F.js.map → chunk-OP6TJ65Q.js.map} +0 -0
- /package/dist/chunks/{chunk-WZPN6PWE.js.map → chunk-OZ7SAUC5.js.map} +0 -0
- /package/dist/chunks/{chunk-EL6GXINV.js.map → chunk-Q56NJHND.js.map} +0 -0
- /package/dist/chunks/{chunk-6CCX6DPQ.js.map → chunk-QE4S3AAB.js.map} +0 -0
- /package/dist/chunks/{chunk-XRX3DHEW.js.map → chunk-QW2UWIGL.js.map} +0 -0
- /package/dist/chunks/{chunk-PTJI2QA4.js.map → chunk-S4MAWWPH.js.map} +0 -0
- /package/dist/chunks/{chunk-FLYE25VX.js.map → chunk-SAIL2BFW.js.map} +0 -0
- /package/dist/chunks/{chunk-RWOPUQNS.js.map → chunk-UAW426OS.js.map} +0 -0
- /package/dist/chunks/{chunk-SMR6TQN2.js.map → chunk-VJEJ4MDH.js.map} +0 -0
- /package/dist/chunks/{chunk-JSGZ4V7Y.js.map → chunk-VP7VGACS.js.map} +0 -0
- /package/dist/chunks/{chunk-PKLBJMCY.js.map → chunk-W7Z6CXGV.js.map} +0 -0
- /package/dist/chunks/{chunk-BPRT5LV7.js.map → chunk-X5FPHIJV.js.map} +0 -0
- /package/dist/chunks/{chunk-V2ZSQXYQ.js.map → chunk-XD6I2JWS.js.map} +0 -0
- /package/dist/chunks/{chunk-MDG3THRR.js.map → chunk-XEAQL6XT.js.map} +0 -0
- /package/dist/chunks/{chunk-AGN45S6D.js.map → chunk-XXJTG3PY.js.map} +0 -0
- /package/dist/chunks/{chunk-VUZYMKPD.js.map → chunk-Y7XE2FKY.js.map} +0 -0
- /package/dist/chunks/{chunk-KD4Q2INM.js.map → chunk-YCZU2AAH.js.map} +0 -0
- /package/dist/chunks/{chunk-DMPPM3IA.js.map → chunk-YEM2A2EP.js.map} +0 -0
- /package/dist/chunks/{chunk-G4LCCGQR.js.map → chunk-YGGGLNOK.js.map} +0 -0
- /package/dist/chunks/{chunk-V4PHIKLW.js.map → chunk-ZGLV3FQF.js.map} +0 -0
- /package/dist/chunks/{chunk-MNDFPZVQ.js.map → chunk-ZR7NIUZ5.js.map} +0 -0
- /package/dist/chunks/{commands-XC67PG6L.js.map → commands-D63UCDXO.js.map} +0 -0
- /package/dist/chunks/{crash-report-UE423ET4.js.map → crash-report-DA6SPZFQ.js.map} +0 -0
- /package/dist/chunks/{dist-SY7OYS74.js.map → dist-2S22UD3L.js.map} +0 -0
- /package/dist/chunks/{dist-SN7QXPO2.js.map → dist-BX53YVW2.js.map} +0 -0
- /package/dist/chunks/{dist-YZRXSX7C.js.map → dist-CIOAMQ5V.js.map} +0 -0
- /package/dist/chunks/{dist-OXUHOXCU.js.map → dist-CS6PGGNY.js.map} +0 -0
- /package/dist/chunks/{dist-DSK2VZQB.js.map → dist-YMNLOZFF.js.map} +0 -0
- /package/dist/chunks/{dist-DCOPEJDN.js.map → dist-ZOXEFXEG.js.map} +0 -0
- /package/dist/chunks/{dist-4ACX6FL7.js.map → dist-ZQNCDMNT.js.map} +0 -0
- /package/dist/chunks/{doctor-VCCIYKNL.js.map → doctor-NXTO5W7O.js.map} +0 -0
- /package/dist/chunks/{drain-QKEXEMCO.js.map → drain-AN6TSG5Z.js.map} +0 -0
- /package/dist/chunks/{eval-K47YMZVT.js.map → eval-IQVUB53L.js.map} +0 -0
- /package/dist/chunks/{home-OSHELFKX.js.map → home-OHK7HIRS.js.map} +0 -0
- /package/dist/chunks/{lifecycle-R3QWZ664.js.map → lifecycle-SZCCUZSZ.js.map} +0 -0
- /package/dist/chunks/{login-N4EO2F45.js.map → login-6OWXZOWM.js.map} +0 -0
- /package/dist/chunks/{logs-264INNUN.js.map → logs-DHUCKQZI.js.map} +0 -0
- /package/dist/chunks/{output-schema-LKM35JS4.js.map → output-schema-JKO3QUVC.js.map} +0 -0
- /package/dist/chunks/{pal-N56IUOUP.js.map → pal-5GFCH4E5.js.map} +0 -0
- /package/dist/chunks/{providers-B352G4OM.js.map → providers-22W6AUTI.js.map} +0 -0
- /package/dist/chunks/{resume-EXHKGQII.js.map → resume-MGFWNJ6Q.js.map} +0 -0
- /package/dist/chunks/{resume-command-OHQBIY5P.js.map → resume-command-R6QPISLR.js.map} +0 -0
- /package/dist/chunks/{schedule-VHP2VGEF.js.map → schedule-QDEIY4QB.js.map} +0 -0
- /package/dist/chunks/{session-step-NJRR3Q2L.js.map → session-step-X6LLEFHX.js.map} +0 -0
- /package/dist/chunks/{skills-JS3FQPHU.js.map → skills-YAMIRCHY.js.map} +0 -0
- /package/dist/chunks/{state-A56X2FGB.js.map → state-3ACU54IM.js.map} +0 -0
- /package/dist/chunks/{store-IMV6NZTT.js.map → store-7RLXPZE2.js.map} +0 -0
- /package/dist/chunks/{store-SEPPZ7H6.js.map → store-AR4ZFSJ4.js.map} +0 -0
- /package/dist/chunks/{store-WJEK5ZI2.js.map → store-OXXJMFPP.js.map} +0 -0
- /package/dist/chunks/{upgrade-2A7CIVAY.js.map → upgrade-IEU2FN3F.js.map} +0 -0
|
@@ -2,13 +2,13 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openManagedWorktrees
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
createSessionSkillCatalog
|
|
8
|
-
} from "./chunk-SPZWLMZY.js";
|
|
5
|
+
} from "./chunk-57ECSVZJ.js";
|
|
9
6
|
import {
|
|
10
7
|
createBrowserControl
|
|
11
8
|
} from "./chunk-WHODOMXA.js";
|
|
9
|
+
import {
|
|
10
|
+
createSessionSkillCatalog
|
|
11
|
+
} from "./chunk-HV4AV3CS.js";
|
|
12
12
|
import {
|
|
13
13
|
SAVE_SKILL_TOOL_NAME,
|
|
14
14
|
attachAgentView,
|
|
@@ -25,13 +25,22 @@ import {
|
|
|
25
25
|
theme,
|
|
26
26
|
viewFromJournal,
|
|
27
27
|
workingDirectoryProblem
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CRZSMG4A.js";
|
|
29
|
+
import {
|
|
30
|
+
runGeneratorCycle
|
|
31
|
+
} from "./chunk-TK24NCDI.js";
|
|
32
|
+
import {
|
|
33
|
+
createSessionLearningFeed,
|
|
34
|
+
openLearningTarget,
|
|
35
|
+
readProjectGuidance,
|
|
36
|
+
withSessionLearningFeed
|
|
37
|
+
} from "./chunk-KV6EVTR7.js";
|
|
29
38
|
import {
|
|
30
39
|
connectMcpServers
|
|
31
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-DFBRAOJJ.js";
|
|
32
41
|
import {
|
|
33
42
|
openInBrowser
|
|
34
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VP7VGACS.js";
|
|
35
44
|
import {
|
|
36
45
|
CredentialRefreshRejectedError,
|
|
37
46
|
CredentialWithdrawnError,
|
|
@@ -39,7 +48,7 @@ import {
|
|
|
39
48
|
ensureFreshStoredCodexCredential,
|
|
40
49
|
readSubscriptionCredential,
|
|
41
50
|
sameOAuthCredential
|
|
42
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ARZVX6H7.js";
|
|
43
52
|
import {
|
|
44
53
|
debugRequested
|
|
45
54
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -51,16 +60,19 @@ import {
|
|
|
51
60
|
sessionWorkflowSizeAdvice,
|
|
52
61
|
unmatchedPassthroughTools,
|
|
53
62
|
workflowTokenCeiling
|
|
54
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-Q3M7HIXS.js";
|
|
55
64
|
import {
|
|
56
65
|
formatSize,
|
|
57
66
|
homePath,
|
|
58
67
|
plural,
|
|
59
68
|
productName
|
|
60
69
|
} from "./chunk-XPS3W7FC.js";
|
|
70
|
+
import {
|
|
71
|
+
resolveGeneratorSettings
|
|
72
|
+
} from "./chunk-LCGXWCVU.js";
|
|
61
73
|
import {
|
|
62
74
|
createLazyCodeAnalysis
|
|
63
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-Q56NJHND.js";
|
|
64
76
|
import {
|
|
65
77
|
canSelectModel,
|
|
66
78
|
chainCapabilityDisagreements,
|
|
@@ -85,7 +97,7 @@ import {
|
|
|
85
97
|
requiresCredentialForModel,
|
|
86
98
|
resolveChainCapabilities,
|
|
87
99
|
unresolvedMembers
|
|
88
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-NU4R7BC5.js";
|
|
89
101
|
import {
|
|
90
102
|
PROVIDER_REGISTRY,
|
|
91
103
|
missingCredentialMessage,
|
|
@@ -94,12 +106,15 @@ import {
|
|
|
94
106
|
import {
|
|
95
107
|
isPermissionMode,
|
|
96
108
|
permissionModeLabel
|
|
97
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-UAW426OS.js";
|
|
98
110
|
import {
|
|
99
111
|
conversationLogPath,
|
|
100
112
|
ensureSessionStarted,
|
|
101
113
|
openConversationLog
|
|
102
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-7QKWJGLX.js";
|
|
115
|
+
import {
|
|
116
|
+
readIdentity
|
|
117
|
+
} from "./chunk-UOM2WQWT.js";
|
|
103
118
|
import {
|
|
104
119
|
INSTRUCTIONS_FILENAME,
|
|
105
120
|
MAX_CHARS_PER_FILE,
|
|
@@ -110,10 +125,10 @@ import {
|
|
|
110
125
|
import {
|
|
111
126
|
compilePermissions,
|
|
112
127
|
isPermissionEffect
|
|
113
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-76XQC54X.js";
|
|
114
129
|
import {
|
|
115
130
|
cliLogger
|
|
116
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-XEAQL6XT.js";
|
|
117
132
|
import {
|
|
118
133
|
stringWidth
|
|
119
134
|
} from "./chunk-U5UV2YRE.js";
|
|
@@ -126,13 +141,13 @@ import {
|
|
|
126
141
|
} from "./chunk-IE5XIE4W.js";
|
|
127
142
|
import {
|
|
128
143
|
ensurePrivateStateDirectory
|
|
129
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-ZGLV3FQF.js";
|
|
130
145
|
import {
|
|
131
146
|
restrictToOwner
|
|
132
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-SAIL2BFW.js";
|
|
133
148
|
import {
|
|
134
149
|
namzuHomePath
|
|
135
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-5U7CJV4T.js";
|
|
136
151
|
import {
|
|
137
152
|
AgentManager,
|
|
138
153
|
AgentRegistry,
|
|
@@ -298,7 +313,7 @@ import {
|
|
|
298
313
|
windowsShellNotice,
|
|
299
314
|
withProviderFallback,
|
|
300
315
|
wrapUntrusted
|
|
301
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-S6DQAA2W.js";
|
|
302
317
|
import {
|
|
303
318
|
__name
|
|
304
319
|
} from "./chunk-76FLAFCG.js";
|
|
@@ -5006,6 +5021,202 @@ function resolveAutoDefault(config, isAvailable) {
|
|
|
5006
5021
|
}
|
|
5007
5022
|
__name(resolveAutoDefault, "resolveAutoDefault");
|
|
5008
5023
|
|
|
5024
|
+
// src/integrations/learning/generator-trigger.ts
|
|
5025
|
+
function createQuestionGate() {
|
|
5026
|
+
let open3 = false;
|
|
5027
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
5028
|
+
return {
|
|
5029
|
+
isOpen: /* @__PURE__ */ __name(() => open3, "isOpen"),
|
|
5030
|
+
set(next) {
|
|
5031
|
+
if (next === open3) return;
|
|
5032
|
+
open3 = next;
|
|
5033
|
+
for (const listener of [...listeners]) listener();
|
|
5034
|
+
},
|
|
5035
|
+
subscribe(listener) {
|
|
5036
|
+
listeners.add(listener);
|
|
5037
|
+
return () => {
|
|
5038
|
+
listeners.delete(listener);
|
|
5039
|
+
};
|
|
5040
|
+
}
|
|
5041
|
+
};
|
|
5042
|
+
}
|
|
5043
|
+
__name(createQuestionGate, "createQuestionGate");
|
|
5044
|
+
var CHECK_EVERY_MS = 10 * 60 * 1e3;
|
|
5045
|
+
function createBackgroundLearning(options) {
|
|
5046
|
+
const now = options.now ?? Date.now;
|
|
5047
|
+
const controller = new AbortController();
|
|
5048
|
+
let active = 0;
|
|
5049
|
+
let running = null;
|
|
5050
|
+
let lastCheck = Number.NEGATIVE_INFINITY;
|
|
5051
|
+
let waiters = [];
|
|
5052
|
+
const release = /* @__PURE__ */ __name(() => {
|
|
5053
|
+
const ready = waiters;
|
|
5054
|
+
waiters = [];
|
|
5055
|
+
for (const resolve14 of ready) resolve14();
|
|
5056
|
+
}, "release");
|
|
5057
|
+
const quiet = /* @__PURE__ */ __name(() => active === 0 && !options.questions?.isOpen(), "quiet");
|
|
5058
|
+
const untilIdle = /* @__PURE__ */ __name((signal) => new Promise((resolve14, reject) => {
|
|
5059
|
+
if (signal.aborted) return reject(signal.reason);
|
|
5060
|
+
if (quiet()) return resolve14();
|
|
5061
|
+
const onAbort = /* @__PURE__ */ __name(() => {
|
|
5062
|
+
waiters = waiters.filter((w) => w !== done);
|
|
5063
|
+
reject(signal.reason);
|
|
5064
|
+
}, "onAbort");
|
|
5065
|
+
const done = /* @__PURE__ */ __name(() => {
|
|
5066
|
+
signal.removeEventListener("abort", onAbort);
|
|
5067
|
+
resolve14();
|
|
5068
|
+
}, "done");
|
|
5069
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
5070
|
+
waiters.push(done);
|
|
5071
|
+
}), "untilIdle");
|
|
5072
|
+
const model = /* @__PURE__ */ __name(async (request) => {
|
|
5073
|
+
for (; ; ) {
|
|
5074
|
+
await untilIdle(request.signal);
|
|
5075
|
+
if (quiet()) return options.learning.model(request);
|
|
5076
|
+
}
|
|
5077
|
+
}, "model");
|
|
5078
|
+
const check = /* @__PURE__ */ __name(async () => {
|
|
5079
|
+
const target = options.openTarget();
|
|
5080
|
+
if (!target) return;
|
|
5081
|
+
await options.flushObservations();
|
|
5082
|
+
const outcome = await (options.run ?? runGeneratorCycle)({
|
|
5083
|
+
target,
|
|
5084
|
+
model,
|
|
5085
|
+
route: /* @__PURE__ */ __name(() => options.learning.route(controller.signal), "route"),
|
|
5086
|
+
settings: options.settings,
|
|
5087
|
+
mode: "automatic",
|
|
5088
|
+
signal: controller.signal,
|
|
5089
|
+
now
|
|
5090
|
+
});
|
|
5091
|
+
if (outcome.status === "ran") options.onOutcome?.(outcome);
|
|
5092
|
+
}, "check");
|
|
5093
|
+
const maybeStart = /* @__PURE__ */ __name(() => {
|
|
5094
|
+
if (!options.settings.enabled || controller.signal.aborted || running) return;
|
|
5095
|
+
if (!quiet() || now() - lastCheck < CHECK_EVERY_MS) return;
|
|
5096
|
+
lastCheck = now();
|
|
5097
|
+
running = check().catch(() => {
|
|
5098
|
+
}).finally(() => {
|
|
5099
|
+
running = null;
|
|
5100
|
+
});
|
|
5101
|
+
}, "maybeStart");
|
|
5102
|
+
const unsubscribe = options.questions?.subscribe(() => {
|
|
5103
|
+
if (!options.questions?.isOpen()) release();
|
|
5104
|
+
});
|
|
5105
|
+
return {
|
|
5106
|
+
turnStarted() {
|
|
5107
|
+
active++;
|
|
5108
|
+
},
|
|
5109
|
+
turnEnded() {
|
|
5110
|
+
active = Math.max(0, active - 1);
|
|
5111
|
+
if (active === 0) release();
|
|
5112
|
+
maybeStart();
|
|
5113
|
+
},
|
|
5114
|
+
async stop() {
|
|
5115
|
+
controller.abort(new Error("The session closed."));
|
|
5116
|
+
unsubscribe?.();
|
|
5117
|
+
release();
|
|
5118
|
+
await running;
|
|
5119
|
+
}
|
|
5120
|
+
};
|
|
5121
|
+
}
|
|
5122
|
+
__name(createBackgroundLearning, "createBackgroundLearning");
|
|
5123
|
+
function withBackgroundLearning(session, learning) {
|
|
5124
|
+
const watch = /* @__PURE__ */ __name((open3) => (...args) => (async function* () {
|
|
5125
|
+
learning.turnStarted();
|
|
5126
|
+
try {
|
|
5127
|
+
yield* open3(...args);
|
|
5128
|
+
} finally {
|
|
5129
|
+
learning.turnEnded();
|
|
5130
|
+
}
|
|
5131
|
+
})(), "watch");
|
|
5132
|
+
return Object.create(session, {
|
|
5133
|
+
send: { value: watch(session.send.bind(session)), enumerable: true },
|
|
5134
|
+
resumePaused: {
|
|
5135
|
+
value: watch(session.resumePaused.bind(session)),
|
|
5136
|
+
enumerable: true
|
|
5137
|
+
},
|
|
5138
|
+
...session.close ? {
|
|
5139
|
+
close: {
|
|
5140
|
+
value: /* @__PURE__ */ __name(async (...args) => {
|
|
5141
|
+
await learning.stop();
|
|
5142
|
+
return session.close(...args);
|
|
5143
|
+
}, "value"),
|
|
5144
|
+
enumerable: true
|
|
5145
|
+
}
|
|
5146
|
+
} : {}
|
|
5147
|
+
});
|
|
5148
|
+
}
|
|
5149
|
+
__name(withBackgroundLearning, "withBackgroundLearning");
|
|
5150
|
+
|
|
5151
|
+
// src/integrations/learning/learned-notice.ts
|
|
5152
|
+
import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
|
|
5153
|
+
var MAX_CHARS = 110;
|
|
5154
|
+
function describeLearned(outcome) {
|
|
5155
|
+
if (outcome.cycle.status !== "activated") return null;
|
|
5156
|
+
if (outcome.proposal?.status !== "proposed") return null;
|
|
5157
|
+
const chars = Array.from(
|
|
5158
|
+
stripVTControlCharacters2(outcome.proposal.candidate.description).replace(/[\p{Cc}\p{Cf}]/gu, " ").replace(/\s+/g, " ").trim()
|
|
5159
|
+
);
|
|
5160
|
+
const learned = chars.length > MAX_CHARS ? `${chars.slice(0, MAX_CHARS - 1).join("").trimEnd()}\u2026` : chars.join("");
|
|
5161
|
+
if (!learned) return null;
|
|
5162
|
+
return `Namzu learned something for this folder: ${learned} Undo with \`namzu learn --undo\`.`;
|
|
5163
|
+
}
|
|
5164
|
+
__name(describeLearned, "describeLearned");
|
|
5165
|
+
|
|
5166
|
+
// src/integrations/learning/learning-model.ts
|
|
5167
|
+
function createLearningLedger() {
|
|
5168
|
+
let last;
|
|
5169
|
+
return {
|
|
5170
|
+
async chargeNow(input) {
|
|
5171
|
+
const { value, usage } = await input.request();
|
|
5172
|
+
last = usage;
|
|
5173
|
+
return value;
|
|
5174
|
+
},
|
|
5175
|
+
async chargeLater() {
|
|
5176
|
+
},
|
|
5177
|
+
take() {
|
|
5178
|
+
const usage = last;
|
|
5179
|
+
last = void 0;
|
|
5180
|
+
return usage;
|
|
5181
|
+
}
|
|
5182
|
+
};
|
|
5183
|
+
}
|
|
5184
|
+
__name(createLearningLedger, "createLearningLedger");
|
|
5185
|
+
function createSideLearningModel(options) {
|
|
5186
|
+
let queue = Promise.resolve();
|
|
5187
|
+
const model = /* @__PURE__ */ __name((request) => {
|
|
5188
|
+
const run2 = /* @__PURE__ */ __name(async () => {
|
|
5189
|
+
request.signal.throwIfAborted();
|
|
5190
|
+
options.ledger.take();
|
|
5191
|
+
const text2 = await options.side.ask({
|
|
5192
|
+
sessionId: options.sessionId,
|
|
5193
|
+
turnId: generateTurnId(),
|
|
5194
|
+
instruction: request.system,
|
|
5195
|
+
body: request.prompt,
|
|
5196
|
+
maxTokens: request.maxTokens,
|
|
5197
|
+
signal: request.signal,
|
|
5198
|
+
timing: "in-turn"
|
|
5199
|
+
});
|
|
5200
|
+
const usage = options.ledger.take();
|
|
5201
|
+
request.signal.throwIfAborted();
|
|
5202
|
+
if (text2 === void 0) throw new Error("The model did not answer the learning request.");
|
|
5203
|
+
return { text: text2, tokens: usage ? usage.totalTokens : null, costUsd: null };
|
|
5204
|
+
}, "run");
|
|
5205
|
+
const next = queue.then(run2, run2);
|
|
5206
|
+
queue = next.catch(() => {
|
|
5207
|
+
});
|
|
5208
|
+
return next;
|
|
5209
|
+
}, "model");
|
|
5210
|
+
return {
|
|
5211
|
+
model,
|
|
5212
|
+
route: /* @__PURE__ */ __name(async (signal) => {
|
|
5213
|
+
const route = await options.side.route(options.sessionId, signal);
|
|
5214
|
+
return `${route.providerId}/${route.model}`;
|
|
5215
|
+
}, "route")
|
|
5216
|
+
};
|
|
5217
|
+
}
|
|
5218
|
+
__name(createSideLearningModel, "createSideLearningModel");
|
|
5219
|
+
|
|
5009
5220
|
// src/integrations/mcp/tool-search.ts
|
|
5010
5221
|
var MCP_TOOL_SEARCH_PERCENT = 10;
|
|
5011
5222
|
var CHARS_PER_TOKEN = 2.5;
|
|
@@ -12683,10 +12894,10 @@ function clipRequestContext(prompt, limit, kind) {
|
|
|
12683
12894
|
__name(clipRequestContext, "clipRequestContext");
|
|
12684
12895
|
async function createAgentSession(prefs, detected, options = {}) {
|
|
12685
12896
|
if (options.palEnvironment) {
|
|
12686
|
-
const { createPalAgentSession } = await import("./agent-session-
|
|
12897
|
+
const { createPalAgentSession } = await import("./agent-session-6VKAI3MW.js");
|
|
12687
12898
|
return createPalAgentSession(prefs, detected, options);
|
|
12688
12899
|
}
|
|
12689
|
-
const { palAtWorkspace } = await import("./store-
|
|
12900
|
+
const { palAtWorkspace } = await import("./store-AR4ZFSJ4.js");
|
|
12690
12901
|
if (palAtWorkspace(options.cwd ?? process.cwd()))
|
|
12691
12902
|
throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
|
|
12692
12903
|
const commandArguments = builtinCommandArguments();
|
|
@@ -12771,6 +12982,14 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
12771
12982
|
);
|
|
12772
12983
|
}
|
|
12773
12984
|
const scope2 = options.scope ?? mintScope(projectId, options.sessionId);
|
|
12985
|
+
const learningFeed = options.learningObservations === true && !options.ephemeral ? createSessionLearningFeed({
|
|
12986
|
+
paths,
|
|
12987
|
+
// The installation's own tenant, so `namzu learning --sessions` finds it again.
|
|
12988
|
+
tenantId: readIdentity(paths.home)?.tenantId ?? scope2.tenantId,
|
|
12989
|
+
projectId,
|
|
12990
|
+
sessionId: String(scope2.sessionId)
|
|
12991
|
+
}) : void 0;
|
|
12992
|
+
const projectGuidance = options.ephemeral ? null : await readProjectGuidance(paths, readIdentity(paths.home)?.tenantId ?? scope2.tenantId);
|
|
12774
12993
|
const primary = primaryProvider(prefs);
|
|
12775
12994
|
const entry = PROVIDER_REGISTRY[primary.id];
|
|
12776
12995
|
if (!entry) {
|
|
@@ -13251,6 +13470,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
13251
13470
|
toolsets.push(toolset("web-search", [webSearchTool]));
|
|
13252
13471
|
}
|
|
13253
13472
|
let sideModel;
|
|
13473
|
+
let learning;
|
|
13254
13474
|
const webCapability = options.web?.fetch ? {
|
|
13255
13475
|
// A page may be ten mebibytes; the guard's own
|
|
13256
13476
|
// default is two.
|
|
@@ -13531,6 +13751,26 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
13531
13751
|
ledger: sub.sideLedger,
|
|
13532
13752
|
debug: /* @__PURE__ */ __name((message2, error) => cliLogger().debug(message2, exceptionAttributes(error)), "debug")
|
|
13533
13753
|
});
|
|
13754
|
+
const learningLedger = createLearningLedger();
|
|
13755
|
+
learning = createSideLearningModel({
|
|
13756
|
+
side: createSideModel({
|
|
13757
|
+
active: /* @__PURE__ */ __name(() => ({
|
|
13758
|
+
providerId: turnRouteTarget?.provider ?? primary.id,
|
|
13759
|
+
model: turnRouteTarget?.model ?? model
|
|
13760
|
+
}), "active"),
|
|
13761
|
+
configured: options.smallModel,
|
|
13762
|
+
isKnownProvider: /* @__PURE__ */ __name((id) => findDetected(detected, id) != null, "isKnownProvider"),
|
|
13763
|
+
buildProvider: /* @__PURE__ */ __name((sessionId, target) => providerForModel(sessionId, target.providerId, target.model), "buildProvider"),
|
|
13764
|
+
offerable: /* @__PURE__ */ __name((providerId, listed) => {
|
|
13765
|
+
const found = findDetected(detected, providerId);
|
|
13766
|
+
return found != null && canSelectModel(found.entry, found.apiKey, listed.id) && isOfferableModel(providerId, listed.id);
|
|
13767
|
+
}, "offerable"),
|
|
13768
|
+
ledger: learningLedger,
|
|
13769
|
+
debug: /* @__PURE__ */ __name((message2, error) => cliLogger().debug(message2, exceptionAttributes(error)), "debug")
|
|
13770
|
+
}),
|
|
13771
|
+
ledger: learningLedger,
|
|
13772
|
+
sessionId: scope2.sessionId
|
|
13773
|
+
});
|
|
13534
13774
|
const agentToolsets = [toolset("agents", [sub.agentTool, sub.waitForTaskTool])];
|
|
13535
13775
|
if (sub.modelCatalogueTool)
|
|
13536
13776
|
agentToolsets.push(toolset("agents:model-catalogue", [sub.modelCatalogueTool]));
|
|
@@ -13768,7 +14008,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
13768
14008
|
);
|
|
13769
14009
|
toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
|
|
13770
14010
|
}
|
|
13771
|
-
const operatorPals = await import("./operator-tools-
|
|
14011
|
+
const operatorPals = await import("./operator-tools-P6GFP2RK.js");
|
|
13772
14012
|
toolsets.push(
|
|
13773
14013
|
readyWhen(
|
|
13774
14014
|
toolset(
|
|
@@ -14324,7 +14564,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14324
14564
|
if (failure) yield { kind: "error", message: failure.message };
|
|
14325
14565
|
})();
|
|
14326
14566
|
}, "resumePausedStream");
|
|
14327
|
-
|
|
14567
|
+
const agentSession = {
|
|
14328
14568
|
hasProvider: true,
|
|
14329
14569
|
autoMode: {
|
|
14330
14570
|
available: sessionClassifier !== void 0,
|
|
@@ -14532,6 +14772,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14532
14772
|
}))(workflowHost)
|
|
14533
14773
|
} : {},
|
|
14534
14774
|
...sideModel ? { sideModel } : {},
|
|
14775
|
+
...learning ? { learning } : {},
|
|
14535
14776
|
...subagentRuntime ? {
|
|
14536
14777
|
subagents: subagentRuntime.activity,
|
|
14537
14778
|
onSubagentReport: /* @__PURE__ */ __name((listener) => {
|
|
@@ -14900,6 +15141,12 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14900
15141
|
}, "render")
|
|
14901
15142
|
});
|
|
14902
15143
|
}
|
|
15144
|
+
if (projectGuidance)
|
|
15145
|
+
promptContributions.register({
|
|
15146
|
+
id: "namzu.learning.project-guidance",
|
|
15147
|
+
placement: "context",
|
|
15148
|
+
render: /* @__PURE__ */ __name(() => projectGuidance, "render")
|
|
15149
|
+
});
|
|
14903
15150
|
promptContributions.register({
|
|
14904
15151
|
id: "namzu.turn-snapshot",
|
|
14905
15152
|
placement: "context",
|
|
@@ -15219,6 +15466,26 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15219
15466
|
});
|
|
15220
15467
|
}), "abandonTurn")
|
|
15221
15468
|
};
|
|
15469
|
+
const watched = learningFeed ? withSessionLearningFeed(agentSession, learningFeed) : agentSession;
|
|
15470
|
+
const background = options.backgroundLearning;
|
|
15471
|
+
if (!background || !learningFeed || !learning) return watched;
|
|
15472
|
+
const generator = resolveGeneratorSettings(background.config);
|
|
15473
|
+
if (!generator.enabled) return watched;
|
|
15474
|
+
const tenantId = readIdentity(paths.home)?.tenantId ?? scope2.tenantId;
|
|
15475
|
+
return withBackgroundLearning(
|
|
15476
|
+
watched,
|
|
15477
|
+
createBackgroundLearning({
|
|
15478
|
+
settings: generator,
|
|
15479
|
+
openTarget: /* @__PURE__ */ __name(() => openLearningTarget(paths, tenantId, projectId), "openTarget"),
|
|
15480
|
+
learning,
|
|
15481
|
+
...background.questions ? { questions: background.questions } : {},
|
|
15482
|
+
flushObservations: /* @__PURE__ */ __name(() => learningFeed.flush(), "flushObservations"),
|
|
15483
|
+
onOutcome: /* @__PURE__ */ __name((outcome) => {
|
|
15484
|
+
const line = describeLearned(outcome);
|
|
15485
|
+
if (line) background.onLearned?.(line);
|
|
15486
|
+
}, "onOutcome")
|
|
15487
|
+
})
|
|
15488
|
+
);
|
|
15222
15489
|
}
|
|
15223
15490
|
__name(createAgentSession, "createAgentSession");
|
|
15224
15491
|
function planFallbacks(members, detected) {
|
|
@@ -16582,6 +16849,7 @@ export {
|
|
|
16582
16849
|
AGENT_LAUNCH_TOOL,
|
|
16583
16850
|
visibleProjectInstructionPath,
|
|
16584
16851
|
DEFERRED_TOOL_GUIDANCE,
|
|
16852
|
+
createQuestionGate,
|
|
16585
16853
|
sessionLogCheckpointView,
|
|
16586
16854
|
DEFAULT_AGENT_WORKFLOW,
|
|
16587
16855
|
DEFAULT_AGENT_PHASE,
|
|
@@ -16642,4 +16910,4 @@ export {
|
|
|
16642
16910
|
RESULT_SUMMARY_WHOLE_MAX,
|
|
16643
16911
|
resultSummaryLine
|
|
16644
16912
|
};
|
|
16645
|
-
//# sourceMappingURL=chunk-
|
|
16913
|
+
//# sourceMappingURL=chunk-GZCTJ23H.js.map
|