nolo-cli 0.228.0 → 0.228.1
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/{_executeModel-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
- package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
- package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
- package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
- package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
- package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
- package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
- package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
- package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
- package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
- package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
- package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
- package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
- package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
- package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
- package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
- package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
- package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
- package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
- package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
- package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
- package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
- package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
- package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
- package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
- package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
- package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
- package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
- package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
- package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
- package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
- package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
- package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
- package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
- package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
- package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
- package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
- package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
- package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
- package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
- package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
- package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
- package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
- package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
- package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
- package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
- package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
- package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
- package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
- package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
- package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
- package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
- package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
- package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
- package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
- package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
- package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
- package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
- package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
- package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
- package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
- package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
- package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
- package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
- package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
- package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
- package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
- package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
- package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
- package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
- package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
- package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
- package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
- package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
- package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
- package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
- package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
- package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
- package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +2 -1
- package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
- package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
- package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
- package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
- package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
- package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
- package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
- package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
- package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
- package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
- package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/chunk-U5LOKQ2R.js +0 -176
- package/chunk-YDRRGVT5.js +0 -142
- package/chunk-YGDYYFRX.js +0 -86
- package/chunk-Z7KE4K3H.js +0 -758
- package/lib-62SWPXNF.js +0 -21042
- /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-KG6INYUT.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// packages/agent-runtime/memoryUseGuidance.ts
|
|
2
|
+
var MEMORY_USE_GUIDANCE = `--- \u8BB0\u5FC6\u4F7F\u7528\u65B9\u5F0F ---
|
|
3
|
+
- \u4F18\u5148\u7EA7\uFF1A\u8BB0\u5FC6\u662F\u4E2A\u6027\u5316\u589E\u5F3A\u5C42\uFF0C\u4F4E\u4E8E\u5F53\u524D\u8F93\u5165/\u5BF9\u8BDD/\u7CFB\u7EDF\u89C4\u5219/prompt/skill/\u5168\u5C40\u504F\u597D\u3002\u5F53\u524D\u8F93\u5165\u7ED9\u51FA\u65B0\u8BED\u8A00\u3001\u6280\u672F\u6808\u3001\u6570\u503C\u3001\u7EA6\u675F\u6216\u660E\u786E\u8986\u76D6\u65E7\u504F\u597D\u65F6\uFF0C\u91C7\u7528\u5F53\u524D\u8F93\u5165\uFF0C\u4E0D\u8981\u628A\u65E7\u8BB0\u5FC6\u5F53\u66F4\u9AD8\u771F\u503C\u3002
|
|
4
|
+
- \u5448\u73B0\u4E0E\u5B9A\u4F4D\uFF1A\u8EAB\u4EFD/\u504F\u597D/\u80CC\u666F\u5728\u76F8\u5173\u5904\u81EA\u7136\u4F53\u73B0\uFF08\u5F00\u573A\u79F0\u547C\u3001\u4E0A\u4E0B\u6587\u786E\u8BA4\u3001\u56DE\u7B54\u7ED3\u6784\u3001\u53D6\u820D\u6807\u51C6\uFF09\uFF0C\u4E0D\u8981\u6BCF\u53E5\u673A\u68B0\u79F0\u547C\u7528\u6237\uFF1B\u201C\u4E0A\u6B21/\u7EE7\u7EED/\u8FD9\u4E2A\u9879\u76EE\u201D\u4F18\u5148\u6309\u5F53\u524D dialog/space/project/agent/sourceDialog \u7B49 KV \u8DEF\u5F84\u548C\u65F6\u95F4\u7EBF\u5B9A\u4F4D\uFF0C\u4E0D\u8981\u53EA\u6309\u8BED\u4E49\u76F8\u4F3C\u5EA6\u635E\u4E00\u6761\u3002
|
|
5
|
+
- \u63A8\u65AD\u4E0E\u504F\u597D\u6F14\u5316\uFF1A\u63A8\u65AD\u578B\u8BB0\u5FC6\uFF08inferred\uFF09\u53EA\u7528\u4E8E\u628A\u63E1\u8BED\u6C14\u3001\u72B6\u6001\u548C\u672A\u5B8C\u6210\u4E8B\u9879\uFF0C\u4E0D\u8981\u8BF4\u6210\u201C\u4F60\u660E\u786E\u544A\u8BC9\u8FC7\u6211\u201D\uFF0C\u51B2\u7A81\u65F6\u8BF4\u660E\u4F9D\u636E\u6216\u786E\u8BA4\uFF1B\u8DE8\u4F1A\u8BDD\u660E\u786E\u504F\u597D\u8BB0 stated\uFF0C\u53CD\u590D\u89C2\u5BDF\u53EF\u8BB0 inferred\uFF0C\u4E00\u6B21\u6027\u63AA\u8F9E\u4E0D\u56FA\u5316\uFF1B\u7B80\u6D01/\u8BED\u6C14\u504F\u597D\u4E0D\u7701\u7565\u5FC5\u8981\u4E8B\u5B9E\u3001\u98CE\u9669\u6216\u6743\u9650\u8FB9\u754C\u3002\u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0E\u5220\u9664\u8FB9\u754C\u4EE5\u5DE5\u5177 schema \u4E3A\u51C6\u3002
|
|
6
|
+
- \u5DE5\u4F5C\u63A5\u7EED\uFF08\u975E\u957F\u671F\u504F\u597D\uFF0C\u4EA6\u975E\u6267\u884C\u771F\u6E90\uFF09\uFF1A\u662F\u5F85\u6838\u5B9E\u7D22\u5F15\uFF0C\u4E0D\u4E0E\u504F\u597D\u6DF7\u5199\u3002\u72B6\u6001\uFF08active/paused/completed/cancelled\uFF09\u53EA\u662F\u5199\u5165\u65F6\u5224\u65AD\uFF0C\u975E\u6388\u6743\u6216\u9A8C\u6536\uFF1Bcompleted \u53EF\u6838\u5B9E\u56DE\u6539 active\uFF0Cpaused/cancelled \u4E0D\u81EA\u52A8\u6062\u590D\u4E5F\u4E0D\u5F97\u62D2\u7528\u6237\u7EE7\u7EED\uFF0C\u5F53\u524D\u6307\u4EE4\u4F18\u5148\u3002\u4EC5\u5728\u589E\u91CF\u4E8B\u4EF6\uFF08\u4EA4\u529E/\u53D8\u66F4/\u5173\u952E\u7ED3\u679C/\u72B6\u6001\u53D8\u5316\uFF09\u66F4\u65B0\u3001\u91CD\u8BD5\u590D\u7528\u540C\u6761\u4E0D\u9020\u526F\u672C\uFF1B\u884C\u52A8\u524D\u6309\u6765\u6E90\u6838\u5B9E\u73B0\u72B6\uFF0C\u201C\u505A\u5B8C\u4E86\u201D\u987B\u6709\u53EF\u6838\u5B9E\u8303\u56F4\u3002
|
|
7
|
+
- \u5DE5\u5177\u4E0E\u53EF\u9760\u6027\uFF1A\u4EC5\u5728\u5DE5\u5177\u63D0\u4F9B\u5DE5\u4F5C\u63A5\u7EED\u5206\u652F\u65F6\u4F7F\u7528\uFF0C\u53C2\u6570\u4EE5\u5DE5\u5177 schema \u4E3A\u51C6\uFF0C\u4E0D\u865A\u6784\u63A5\u53E3\uFF1B\u8BFB\u5199\u5931\u8D25\u5982\u5B9E\u62A5\u544A\u3001\u4E0D\u8C0E\u62A5\u4E5F\u4E0D\u4E2D\u65AD\u5BF9\u8BDD\uFF0C\u672C\u5730\u4F18\u5148\u4E0D\u627F\u8BFA\u79BB\u7EBF\u8DE8\u7AEF\u540C\u6B65\u3002
|
|
8
|
+
- \u8DE8\u4F1A\u8BDD\u6253\u6270\u504F\u597D\uFF08\u975E\u4E00\u6B21\u6027\u8981\u6C42\uFF09\u7528 rememberMemory \u8BB0\u4E3A\u7528\u6237\u504F\u597D\uFF0C\u6309\u5176\u8C03\u6574 ignore/FYI/important \u8BE6\u7565\uFF0C\u4F46\u7EDD\u4E0D\u9759\u9ED8 decision/blocked/failed\u3002`;
|
|
9
|
+
|
|
10
|
+
// packages/agent-runtime/userResponseLanguage.ts
|
|
11
|
+
var LANGUAGE_NAMES = {
|
|
12
|
+
en: "English",
|
|
13
|
+
"en-US": "English",
|
|
14
|
+
"en-GB": "English",
|
|
15
|
+
zh: "Simplified Chinese",
|
|
16
|
+
"zh-CN": "Simplified Chinese",
|
|
17
|
+
"zh-TW": "Traditional Chinese",
|
|
18
|
+
"zh-HK": "Traditional Chinese",
|
|
19
|
+
ja: "Japanese",
|
|
20
|
+
"ja-JP": "Japanese",
|
|
21
|
+
ko: "Korean",
|
|
22
|
+
"ko-KR": "Korean",
|
|
23
|
+
fr: "French",
|
|
24
|
+
de: "German",
|
|
25
|
+
es: "Spanish",
|
|
26
|
+
pt: "Portuguese",
|
|
27
|
+
ru: "Russian"
|
|
28
|
+
};
|
|
29
|
+
var LANGUAGE_DISPLAY_NAMES = new Intl.DisplayNames(["en"], {
|
|
30
|
+
type: "language"
|
|
31
|
+
});
|
|
32
|
+
var asLocale = (value) => typeof value === "string" ? value.trim().split(".", 1)[0]?.replace(/_/g, "-") ?? "" : "";
|
|
33
|
+
var normalizeLocale = (value) => {
|
|
34
|
+
if (!value) return "en-US";
|
|
35
|
+
let locale;
|
|
36
|
+
try {
|
|
37
|
+
locale = new Intl.Locale(value);
|
|
38
|
+
} catch {
|
|
39
|
+
return "en-US";
|
|
40
|
+
}
|
|
41
|
+
const language = locale.language.toLowerCase();
|
|
42
|
+
const region = locale.region?.toUpperCase();
|
|
43
|
+
const script = locale.script;
|
|
44
|
+
if (language === "zh") {
|
|
45
|
+
if (script === "Hant" || region === "TW" || region === "HK" || region === "MO") {
|
|
46
|
+
return "zh-TW";
|
|
47
|
+
}
|
|
48
|
+
return "zh-CN";
|
|
49
|
+
}
|
|
50
|
+
if (language === "en") return region === "GB" ? "en-GB" : "en-US";
|
|
51
|
+
if (region) return `${language}-${region}`;
|
|
52
|
+
return language;
|
|
53
|
+
};
|
|
54
|
+
var resolveUserResponseLanguage = (input = {}) => {
|
|
55
|
+
const raw = asLocale(input.language) || "en-US";
|
|
56
|
+
const locale = normalizeLocale(raw);
|
|
57
|
+
return {
|
|
58
|
+
locale,
|
|
59
|
+
languageName: LANGUAGE_NAMES[locale] ?? LANGUAGE_NAMES[locale.split("-")[0]] ?? LANGUAGE_DISPLAY_NAMES.of(locale) ?? locale
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
var buildUserResponseLanguageContext = (input = {}) => {
|
|
63
|
+
const { locale, languageName } = resolveUserResponseLanguage(input);
|
|
64
|
+
return [
|
|
65
|
+
"--- \u5E73\u53F0\u56DE\u590D\u8BED\u8A00\u7B56\u7565 ---",
|
|
66
|
+
`\u7528\u6237\u5BA2\u6237\u7AEF\u8BED\u8A00\uFF1A${languageName}\uFF08${locale}\uFF09`,
|
|
67
|
+
"\u9ED8\u8BA4\u4F7F\u7528\u7528\u6237\u5BA2\u6237\u7AEF\u8BED\u8A00\u56DE\u590D\u3002",
|
|
68
|
+
"\u7528\u6237\u5728\u5F53\u524D\u5BF9\u8BDD\u4E2D\u660E\u786E\u8981\u6C42\u4F7F\u7528\u5176\u4ED6\u8BED\u8A00\u65F6\uFF0C\u9075\u5FAA\u7528\u6237\u7684\u660E\u786E\u8981\u6C42\u3002",
|
|
69
|
+
"\u5355\u4E2A\u901A\u7528\u8BCD\u6216\u77ED\u8BED\uFF08\u4F8B\u5982 hi\u3001ok\u3001thanks\uFF09\u4E0D\u6539\u53D8\u5DF2\u7ECF\u5EFA\u7ACB\u7684\u4EA4\u6D41\u8BED\u8A00\u3002",
|
|
70
|
+
"Agent \u7684\u89D2\u8272\u3001skill\u3001model \u4E0D\u5F97\u81EA\u884C\u8986\u76D6\u8FD9\u6761\u5E73\u53F0\u56DE\u590D\u8BED\u8A00\u7B56\u7565\u3002"
|
|
71
|
+
].join("\n");
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
MEMORY_USE_GUIDANCE,
|
|
76
|
+
buildUserResponseLanguageContext
|
|
77
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultReasoningEffort
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PNLDLUMO.js";
|
|
4
4
|
import {
|
|
5
5
|
buildLocalAgentLookupKeys,
|
|
6
6
|
shouldReadAgentKeyRemotely
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SA356NGW.js";
|
|
8
8
|
import {
|
|
9
9
|
createHostCredentialBrokerChain,
|
|
10
10
|
createStrictHostCredentialBroker
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EHFBP6IK.js";
|
|
12
12
|
import {
|
|
13
13
|
collectInvalidAgentSkillModes,
|
|
14
14
|
formatInvalidAgentSkillModeMessage,
|
|
15
15
|
formatInvalidAgentSkillModesFieldMessage,
|
|
16
16
|
isAgentSkillModesFieldShapeValid
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VH7UO6E5.js";
|
|
18
18
|
import {
|
|
19
19
|
buildAgentApiKeyCredentialRef,
|
|
20
20
|
migrateAgentSecrets
|
|
@@ -766,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
766
766
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
767
767
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
768
768
|
if (args.parsed.presetId) {
|
|
769
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
769
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-NTJUINI6.js");
|
|
770
770
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
771
771
|
if (fields.kind === "manual") {
|
|
772
772
|
throw new Error(
|
|
@@ -166,6 +166,7 @@ function mintTaskId(pid) {
|
|
|
166
166
|
var ProcessRegistry = class {
|
|
167
167
|
processes = /* @__PURE__ */ new Map();
|
|
168
168
|
byTaskId = /* @__PURE__ */ new Map();
|
|
169
|
+
liveOutputs = /* @__PURE__ */ new Map();
|
|
169
170
|
eventLog;
|
|
170
171
|
terminalListeners = /* @__PURE__ */ new Set();
|
|
171
172
|
backgroundListeners = /* @__PURE__ */ new Set();
|
|
@@ -233,6 +234,12 @@ var ProcessRegistry = class {
|
|
|
233
234
|
transient: proc.transient ?? false,
|
|
234
235
|
owner: proc.owner ?? null
|
|
235
236
|
};
|
|
237
|
+
const existing = this.processes.get(proc.pid);
|
|
238
|
+
if (existing && existing.taskId !== record.taskId) {
|
|
239
|
+
this.byTaskId.delete(existing.taskId);
|
|
240
|
+
this.liveOutputs.get(existing.taskId)?.markClosed();
|
|
241
|
+
this.liveOutputs.delete(existing.taskId);
|
|
242
|
+
}
|
|
236
243
|
this.processes.set(proc.pid, record);
|
|
237
244
|
this.byTaskId.set(record.taskId, proc.pid);
|
|
238
245
|
this.eventLog.append({ taskId: record.taskId, pid: proc.pid, type: "started" });
|
|
@@ -262,7 +269,21 @@ var ProcessRegistry = class {
|
|
|
262
269
|
}
|
|
263
270
|
getByTaskId(taskId) {
|
|
264
271
|
const pid = this.byTaskId.get(taskId);
|
|
265
|
-
|
|
272
|
+
if (pid === void 0) return void 0;
|
|
273
|
+
const item = this.processes.get(pid);
|
|
274
|
+
if (!item || item.taskId !== taskId) return void 0;
|
|
275
|
+
return { ...item };
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Attach a live stdout/stderr output handle to a tracked task (kept outside
|
|
279
|
+
* RegisteredProcess so list()/get() clones and JSON views stay payload-free).
|
|
280
|
+
*/
|
|
281
|
+
attachLiveOutput(taskId, liveOutput) {
|
|
282
|
+
if (!this.byTaskId.has(taskId)) return;
|
|
283
|
+
this.liveOutputs.set(taskId, liveOutput);
|
|
284
|
+
}
|
|
285
|
+
getLiveOutput(taskId) {
|
|
286
|
+
return this.liveOutputs.get(taskId);
|
|
266
287
|
}
|
|
267
288
|
/** Append-only lifecycle events of a task with `seq > cursor` (ascending). */
|
|
268
289
|
getTaskEvents(taskId, cursor = 0) {
|
|
@@ -324,6 +345,7 @@ var ProcessRegistry = class {
|
|
|
324
345
|
}
|
|
325
346
|
item.status = "stopped";
|
|
326
347
|
item.endedAt = Date.now();
|
|
348
|
+
this.liveOutputs.get(item.taskId)?.markClosed();
|
|
327
349
|
if (!item.transient) this.emitBackgroundChange();
|
|
328
350
|
this.eventLog.append({ taskId: item.taskId, pid, type: "killed" });
|
|
329
351
|
this.emitTerminal({
|
|
@@ -356,6 +378,7 @@ var ProcessRegistry = class {
|
|
|
356
378
|
}
|
|
357
379
|
item.status = "stopped";
|
|
358
380
|
item.endedAt = Date.now();
|
|
381
|
+
this.liveOutputs.get(item.taskId)?.markClosed();
|
|
359
382
|
if (!item.transient) this.emitBackgroundChange();
|
|
360
383
|
this.eventLog.append({ taskId: item.taskId, pid: item.pid, type: "killed" });
|
|
361
384
|
this.emitTerminal({
|
|
@@ -369,13 +392,17 @@ var ProcessRegistry = class {
|
|
|
369
392
|
}
|
|
370
393
|
}
|
|
371
394
|
}
|
|
372
|
-
markExited(pid, exitCode, resultCapsule) {
|
|
395
|
+
markExited(pid, exitCode, resultCapsule, expectedTaskId) {
|
|
373
396
|
const item = this.processes.get(pid);
|
|
397
|
+
if (expectedTaskId !== void 0 && item !== void 0 && item.taskId !== expectedTaskId) {
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
374
400
|
if (item && item.status === "running") {
|
|
375
401
|
item.exitCode = exitCode;
|
|
376
402
|
if (resultCapsule) item.resultCapsule = resultCapsule;
|
|
377
403
|
item.status = exitCode === 0 ? "exited" : "failed";
|
|
378
404
|
item.endedAt = Date.now();
|
|
405
|
+
this.liveOutputs.get(item.taskId)?.markClosed();
|
|
379
406
|
if (!item.transient) this.emitBackgroundChange();
|
|
380
407
|
this.eventLog.append({
|
|
381
408
|
taskId: item.taskId,
|
|
@@ -406,6 +433,8 @@ var ProcessRegistry = class {
|
|
|
406
433
|
const item = this.processes.get(pid);
|
|
407
434
|
if (!item || item.promoted) return;
|
|
408
435
|
this.eventLog.append({ taskId: item.taskId, pid, type: "exited", exitCode });
|
|
436
|
+
this.liveOutputs.get(item.taskId)?.markClosed();
|
|
437
|
+
this.liveOutputs.delete(item.taskId);
|
|
409
438
|
this.processes.delete(pid);
|
|
410
439
|
this.byTaskId.delete(item.taskId);
|
|
411
440
|
}
|
|
@@ -413,12 +442,18 @@ var ProcessRegistry = class {
|
|
|
413
442
|
remove(pid) {
|
|
414
443
|
const item = this.processes.get(pid);
|
|
415
444
|
if (!item) return false;
|
|
445
|
+
this.liveOutputs.get(item.taskId)?.markClosed();
|
|
446
|
+
this.liveOutputs.delete(item.taskId);
|
|
416
447
|
this.processes.delete(pid);
|
|
417
448
|
this.byTaskId.delete(item.taskId);
|
|
418
449
|
if (!item.transient) this.emitBackgroundChange();
|
|
419
450
|
return true;
|
|
420
451
|
}
|
|
421
452
|
clear() {
|
|
453
|
+
for (const liveOutput of this.liveOutputs.values()) {
|
|
454
|
+
liveOutput.markClosed();
|
|
455
|
+
}
|
|
456
|
+
this.liveOutputs.clear();
|
|
422
457
|
this.processes.clear();
|
|
423
458
|
this.byTaskId.clear();
|
|
424
459
|
this.eventLog.clear();
|
|
@@ -1102,6 +1137,7 @@ function buildProcessTaskResultCapsule(args) {
|
|
|
1102
1137
|
}
|
|
1103
1138
|
|
|
1104
1139
|
// packages/agent-runtime/workspaceShell.ts
|
|
1140
|
+
var confidentialShell = new AsyncLocalStorage();
|
|
1105
1141
|
var shellChildEnvironment = new AsyncLocalStorage();
|
|
1106
1142
|
function withShellChildEnvironment(env, run) {
|
|
1107
1143
|
return shellChildEnvironment.run(env, run);
|
|
@@ -1610,6 +1646,10 @@ function readNodeStream(stream, maxBytesOrOptions = DEFAULT_MAX_STREAM_BUFFER_BY
|
|
|
1610
1646
|
if (captureResolved) return;
|
|
1611
1647
|
await settleSpillRetention();
|
|
1612
1648
|
if (captureResolved) return;
|
|
1649
|
+
if (options.suppressIncomplete && (!sourceEnded || truncatedNow)) {
|
|
1650
|
+
resolveCapture("[incomplete confidential output withheld]");
|
|
1651
|
+
return;
|
|
1652
|
+
}
|
|
1613
1653
|
let text = baseText;
|
|
1614
1654
|
if (truncatedNow && spillRetainedPath && sourceEnded && options.maxLines !== void 0) {
|
|
1615
1655
|
resolveCapture(formatSpilledToolOutput({
|
|
@@ -1679,9 +1719,11 @@ function readNodeStream(stream, maxBytesOrOptions = DEFAULT_MAX_STREAM_BUFFER_BY
|
|
|
1679
1719
|
markSpillFailed(new Error(reason));
|
|
1680
1720
|
void settleSpillRetention();
|
|
1681
1721
|
}
|
|
1682
|
-
resolveCapture(
|
|
1722
|
+
resolveCapture(
|
|
1723
|
+
options.suppressIncomplete ? "[incomplete confidential output withheld]" : `${snapshot}
|
|
1683
1724
|
|
|
1684
|
-
[${reason}]`
|
|
1725
|
+
[${reason}]`
|
|
1726
|
+
);
|
|
1685
1727
|
};
|
|
1686
1728
|
capture?.stopSignal.addEventListener("abort", stopCapture, { once: true });
|
|
1687
1729
|
if (capture?.stopSignal.aborted) stopCapture();
|
|
@@ -1788,13 +1830,15 @@ async function runWorkspaceCommand(args) {
|
|
|
1788
1830
|
...args.command
|
|
1789
1831
|
];
|
|
1790
1832
|
const spawnedAt = Date.now();
|
|
1833
|
+
const confidential = confidentialShell.getStore();
|
|
1791
1834
|
const proc = spawnChildProcess(command[0] ?? "", command.slice(1), {
|
|
1792
1835
|
cwd: resolve2(args.workspaceRoot),
|
|
1793
1836
|
env: workspaceChildEnv({ ...process.env, ...shellChildEnvironment.getStore() }),
|
|
1794
1837
|
stdio: [
|
|
1795
1838
|
args.stdin === void 0 ? "ignore" : "pipe",
|
|
1796
1839
|
"pipe",
|
|
1797
|
-
"pipe"
|
|
1840
|
+
"pipe",
|
|
1841
|
+
...confidential ? ["pipe"] : []
|
|
1798
1842
|
],
|
|
1799
1843
|
detached,
|
|
1800
1844
|
// Windows: a child spawned from a console-less parent (e.g. a detached run) would
|
|
@@ -1805,6 +1849,13 @@ async function runWorkspaceCommand(args) {
|
|
|
1805
1849
|
proc.stdin.write(args.stdin);
|
|
1806
1850
|
proc.stdin.end();
|
|
1807
1851
|
}
|
|
1852
|
+
if (confidential) {
|
|
1853
|
+
const fd = proc.stdio[3];
|
|
1854
|
+
fd.on("error", () => {
|
|
1855
|
+
proc.kill();
|
|
1856
|
+
});
|
|
1857
|
+
fd.end(confidential.bwrapArgs);
|
|
1858
|
+
}
|
|
1808
1859
|
const label = args.label?.trim() || deriveLabel(args.command.join(" "));
|
|
1809
1860
|
const registry2 = getProcessRegistry();
|
|
1810
1861
|
if (typeof proc.pid === "number") {
|
|
@@ -1846,36 +1897,33 @@ async function runWorkspaceCommand(args) {
|
|
|
1846
1897
|
process.removeListener("SIGINT", cleanupChildOnHostSignal);
|
|
1847
1898
|
};
|
|
1848
1899
|
const captureCutoff = new AbortController();
|
|
1900
|
+
const captureOptions = (suffix) => ({
|
|
1901
|
+
maxBytes: TOOL_OUTPUT_SPILL_BYTES,
|
|
1902
|
+
maxLines: TOOL_OUTPUT_SPILL_LINES,
|
|
1903
|
+
...confidential ? { suppressIncomplete: true } : {
|
|
1904
|
+
spillPath: join3(tmpdir(), `nolo-stream-${randomUUID2()}${suffix}.log`),
|
|
1905
|
+
spillRetention: "promote",
|
|
1906
|
+
spillWorkspaceRoot: args.workspaceRoot
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1849
1909
|
let stdoutIncomplete;
|
|
1850
1910
|
let stderrIncomplete;
|
|
1851
1911
|
const stdoutCapture = stdoutPromiseResult(
|
|
1852
|
-
readNodeStream(proc.stdout, {
|
|
1853
|
-
maxBytes: TOOL_OUTPUT_SPILL_BYTES,
|
|
1854
|
-
maxLines: TOOL_OUTPUT_SPILL_LINES,
|
|
1855
|
-
spillPath: join3(tmpdir(), `nolo-stream-${randomUUID2()}.log`),
|
|
1856
|
-
spillRetention: "promote",
|
|
1857
|
-
spillWorkspaceRoot: args.workspaceRoot
|
|
1858
|
-
}, {
|
|
1912
|
+
readNodeStream(proc.stdout, captureOptions(""), {
|
|
1859
1913
|
stopSignal: captureCutoff.signal,
|
|
1860
1914
|
onIncomplete: (reason) => {
|
|
1861
1915
|
stdoutIncomplete = reason;
|
|
1862
1916
|
}
|
|
1863
1917
|
})
|
|
1864
|
-
).then((result) => ({ ...result, error: result.error || stdoutIncomplete }));
|
|
1918
|
+
).then((result) => ({ ...result, value: confidential ? confidential.redact(result.value) : result.value, error: result.error || stdoutIncomplete }));
|
|
1865
1919
|
const stderrCapture = stdoutPromiseResult(
|
|
1866
|
-
readNodeStream(proc.stderr, {
|
|
1867
|
-
maxBytes: TOOL_OUTPUT_SPILL_BYTES,
|
|
1868
|
-
maxLines: TOOL_OUTPUT_SPILL_LINES,
|
|
1869
|
-
spillPath: join3(tmpdir(), `nolo-stream-${randomUUID2()}-stderr.log`),
|
|
1870
|
-
spillRetention: "promote",
|
|
1871
|
-
spillWorkspaceRoot: args.workspaceRoot
|
|
1872
|
-
}, {
|
|
1920
|
+
readNodeStream(proc.stderr, captureOptions("-stderr"), {
|
|
1873
1921
|
stopSignal: captureCutoff.signal,
|
|
1874
1922
|
onIncomplete: (reason) => {
|
|
1875
1923
|
stderrIncomplete = reason;
|
|
1876
1924
|
}
|
|
1877
1925
|
})
|
|
1878
|
-
).then((result) => ({ ...result, error: result.error || stderrIncomplete }));
|
|
1926
|
+
).then((result) => ({ ...result, value: confidential ? confidential.redact(result.value) : result.value, error: result.error || stderrIncomplete }));
|
|
1879
1927
|
const exitPromise = processExitPromise.then(async (code) => {
|
|
1880
1928
|
const drainTimer = setTimeout(() => captureCutoff.abort(), 2e3);
|
|
1881
1929
|
try {
|
|
@@ -2059,7 +2107,11 @@ Use listProcesses to inspect or stop it.`,
|
|
|
2059
2107
|
label,
|
|
2060
2108
|
taskId,
|
|
2061
2109
|
status: "running",
|
|
2062
|
-
...immediate ? { reason: "long-running-command" } : {}
|
|
2110
|
+
...immediate ? { reason: "long-running-command" } : {},
|
|
2111
|
+
// 近场行动约束:这条回执正好出现在模型决定「继续还是收尾」的位置。
|
|
2112
|
+
// 同类规则在静态提示词里已重复 5 处(并行块/工具描述/工具指引/回复准则),
|
|
2113
|
+
// 但都沉在数万 token 之前,容易被「回执已收到、先汇报」的局部惯性盖过。
|
|
2114
|
+
turnAction: "This task is tracked. Do NOT end this turn to wait if any other independent authorized work remains \u2014 invoke tools for it now. End the turn only when no independent work is left."
|
|
2063
2115
|
})
|
|
2064
2116
|
};
|
|
2065
2117
|
}
|
|
@@ -2105,13 +2157,6 @@ ${stderr.trim()}` : "",
|
|
|
2105
2157
|
}
|
|
2106
2158
|
|
|
2107
2159
|
export {
|
|
2108
|
-
countLines,
|
|
2109
|
-
spillToolOutput,
|
|
2110
|
-
formatToolOverflowMarker,
|
|
2111
|
-
TOOL_OUTPUT_SPILL_BYTES,
|
|
2112
|
-
TOOL_OUTPUT_SPILL_LINES,
|
|
2113
|
-
isSpilledToolOutput,
|
|
2114
|
-
spillLargeToolOutput,
|
|
2115
2160
|
resolveExecutableOnPath,
|
|
2116
2161
|
createGlob,
|
|
2117
2162
|
spawnToWebStreams,
|
|
@@ -2119,6 +2164,13 @@ export {
|
|
|
2119
2164
|
reportedTaskStatus,
|
|
2120
2165
|
toProcessTaskView,
|
|
2121
2166
|
getProcessRegistry,
|
|
2167
|
+
countLines,
|
|
2168
|
+
spillToolOutput,
|
|
2169
|
+
formatToolOverflowMarker,
|
|
2170
|
+
TOOL_OUTPUT_SPILL_BYTES,
|
|
2171
|
+
TOOL_OUTPUT_SPILL_LINES,
|
|
2172
|
+
isSpilledToolOutput,
|
|
2173
|
+
spillLargeToolOutput,
|
|
2122
2174
|
buildProcessTaskResultCapsule,
|
|
2123
2175
|
withShellChildEnvironment,
|
|
2124
2176
|
workspaceChildEnv,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAccountOnDemandWorkflowSkill,
|
|
3
3
|
resolveUserEnabledSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R3FZHW4Q.js";
|
|
5
5
|
import {
|
|
6
6
|
collectAgentSkillConfigIssues,
|
|
7
7
|
describeAgentSkillModeValue,
|
|
8
8
|
isAgentSkillDisabled,
|
|
9
9
|
resolveAgentSkillConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VH7UO6E5.js";
|
|
11
11
|
import {
|
|
12
12
|
dedupeSkillPromptPatches,
|
|
13
13
|
resolveBuiltinSkillEntry,
|
|
14
14
|
resolveBuiltinSkillPage,
|
|
15
15
|
resolveSkillGraphFromRoots
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WC3J5SL2.js";
|
|
17
17
|
import {
|
|
18
18
|
parseSkillDocProtocol
|
|
19
19
|
} from "./chunk-AETZ7AD6.js";
|