nolo-cli 0.219.0 → 0.220.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/{_executeModel-WW57SJN4.js → _executeModel-BNEMFCAO.js} +74 -74
- package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
- package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
- package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-7QTQNFCO.js} +114 -115
- package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-I7SHOSD6.js} +115 -116
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-GUGMORTK.js} +84 -70
- package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-UMDKILU3.js} +56 -55
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
- package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-YTAMTHOY.js} +102 -103
- package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-DBM6YNO6.js} +113 -112
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
- package/{agentSlice-ACZGTZVW.js → agentSlice-DPG7Q7IA.js} +16 -16
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
- package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
- package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
- package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
- package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
- package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
- package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-QWYFFHCJ.js → chunk-3NNXR7EH.js} +10 -10
- package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
- package/{chunk-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-KAVGK4ES.js → chunk-44J7Z5AQ.js} +18 -18
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
- package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
- package/{chunk-FVZW66K4.js → chunk-53MFERZ3.js} +177 -94
- package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
- package/{chunk-N7HVLYOY.js → chunk-5WKDR7HS.js} +3 -3
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
- package/{chunk-N3J4VDGV.js → chunk-6RDBLXVQ.js} +15 -15
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
- package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
- package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
- package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
- package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
- package/{chunk-7UH3DGV6.js → chunk-AWIL6EHN.js} +7 -7
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
- package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
- package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
- package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
- package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
- package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
- package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
- package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
- package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
- package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
- package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
- package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
- package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
- package/{chunk-65XXHYZ5.js → chunk-GV6PRJBU.js} +3 -3
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
- package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
- package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
- package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
- package/{chunk-S7SB7L2I.js → chunk-JJMR2EA3.js} +19 -19
- package/{chunk-3ESU44FG.js → chunk-JLAMNSBC.js} +3 -3
- package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
- package/{chunk-MKQ2UTTX.js → chunk-KHVFJSVE.js} +22 -19
- package/{chunk-7WPAI5JJ.js → chunk-KRI6N5QZ.js} +14 -14
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-3N4ASIP6.js → chunk-LMRRCEDE.js} +11 -11
- package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
- package/{chunk-VHPAA6MT.js → chunk-MSMHU36U.js} +6 -6
- package/{chunk-F3TQURKK.js → chunk-MXKWTPUM.js} +19 -19
- package/{chunk-XFJ4ZPFC.js → chunk-MXRUXMZ3.js} +25 -25
- package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
- package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
- package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
- package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
- package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
- package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
- package/{chunk-652XYZGP.js → chunk-R44TU3MZ.js} +8 -3
- package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
- package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
- package/{chunk-T3O6BLYU.js → chunk-S5NA3C52.js} +147 -115
- package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-KO63FPG3.js → chunk-SZVMASJ2.js} +750 -2523
- package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
- package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
- package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
- package/{chunk-O2CYENYJ.js → chunk-XTETTSKN.js} +2107 -1092
- package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
- package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
- package/chunk-ZOHO6MOF.js +376 -0
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
- package/{commandRegistry-SDSYBKMC.js → commandRegistry-T3UBK6OA.js} +93 -93
- package/{contentThunks-G3TRPEAU.js → contentThunks-YEPZAHXU.js} +36 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
- package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-TBIIO5WT.js} +36 -35
- package/{createDialogAction-KWSBNAPJ.js → createDialogAction-KBKMYFTQ.js} +37 -36
- package/{createPageAction-HXKJ7OFG.js → createPageAction-3FGAPLJO.js} +37 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
- package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
- package/{dialogSlice-HXPKFGRL.js → dialogSlice-DP2WTMNO.js} +34 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
- package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
- package/{docStore-A2B3GH33.js → docStore-NDY3K3PK.js} +12 -12
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-IUGVVJ43.js} +65 -65
- package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-X2ZFRXDR.js} +102 -103
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-KAG3T4LF.js} +109 -110
- package/{machineCommands-WFWV25IR.js → machineCommands-6NIQJE2A.js} +111 -112
- package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-RA5NOSGG.js} +100 -101
- package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-ULJDLUA6.js → projectArchive-OIUP63MV.js} +42 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
- package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
- package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-ZGC4KSXG.js} +3946 -4393
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
- package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-NKUW2DSJ.js} +71 -67
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
- package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-FJTUUXHJ.js} +89 -128
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
- package/{tools-JVOJ5HC4.js → tools-ZXHIAOSP.js} +58 -58
- package/tuiRestart-2IL37YIB.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
- package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
- package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-JMKLKL4P.js} +36 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-KEPOVMF4.js +0 -91
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -2,11 +2,7 @@ import {
|
|
|
2
2
|
DEVIN_CONNECT_URL,
|
|
3
3
|
parseSseDataLineJson,
|
|
4
4
|
parseSseDataLineObject
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
evaluateFileWritePolicy,
|
|
8
|
-
summarizeToolArguments
|
|
9
|
-
} from "./chunk-CHOZJMJS.js";
|
|
5
|
+
} from "./chunk-2NPD3FTX.js";
|
|
10
6
|
import {
|
|
11
7
|
EXECUTION_BACKEND_KINDS
|
|
12
8
|
} from "./chunk-PWTNI4N7.js";
|
|
@@ -22,18 +18,22 @@ import {
|
|
|
22
18
|
flushChatCompletionStream,
|
|
23
19
|
providerHttpFailure,
|
|
24
20
|
throwIfChatCompletionStreamFailed
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HSSBDZLD.js";
|
|
26
22
|
import {
|
|
27
23
|
readSseFrames
|
|
28
24
|
} from "./chunk-HNUWUO75.js";
|
|
29
25
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
evaluateFileWritePolicy,
|
|
27
|
+
summarizeToolArguments
|
|
28
|
+
} from "./chunk-CHOZJMJS.js";
|
|
32
29
|
import {
|
|
33
30
|
evaluateRequestBudget,
|
|
34
31
|
hasImageInRuntimeMessages,
|
|
35
32
|
stripImagePartsFromMessages
|
|
36
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GUXZK7SE.js";
|
|
34
|
+
import {
|
|
35
|
+
resolveToolExecutionContract
|
|
36
|
+
} from "./chunk-LKA64WH4.js";
|
|
37
37
|
import {
|
|
38
38
|
clipToolText,
|
|
39
39
|
resolveHistoricalToolContentCap,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
resolveAgentImageInputSupport,
|
|
44
44
|
resolveToolImagePolicy
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DUUDXSLX.js";
|
|
46
46
|
import {
|
|
47
47
|
applyShapingCounts,
|
|
48
48
|
attachProjectionFacts,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
projectUserPartForModel,
|
|
54
54
|
resolveOutboundDiagnosticSink,
|
|
55
55
|
writeThinkingFacts
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-QYB23WUH.js";
|
|
57
57
|
import {
|
|
58
58
|
createThinkParserState,
|
|
59
59
|
createToolCallAccumulator,
|
|
@@ -79,25 +79,7 @@ import {
|
|
|
79
79
|
hashStablePrefixContent,
|
|
80
80
|
resolveResponseGuidelines,
|
|
81
81
|
resolveToolGuidedSections
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import {
|
|
84
|
-
BRIDGE_STREAM_MAX_CHARS,
|
|
85
|
-
CLI_NOLO_WORKSPACE_TOOL_NAMES,
|
|
86
|
-
DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
|
|
87
|
-
NOLO_WORKSPACE_TOOL_NAMES,
|
|
88
|
-
buildDialogReadEnvelope,
|
|
89
|
-
buildNoloWorkspaceCommandArgs,
|
|
90
|
-
buildNoloWorkspaceOpenAiTools,
|
|
91
|
-
createStreamingDialogReadProjector,
|
|
92
|
-
noloPositiveIntegerString,
|
|
93
|
-
noloStringArg,
|
|
94
|
-
parseNoloWorkspaceToolArguments,
|
|
95
|
-
readTextStreamUpToChars,
|
|
96
|
-
resolveNoloDialogInput
|
|
97
|
-
} from "./chunk-C4VAR65S.js";
|
|
98
|
-
import {
|
|
99
|
-
applyToolSurfaceConstraints
|
|
100
|
-
} from "./chunk-SOF4OWDM.js";
|
|
82
|
+
} from "./chunk-AGYPUBFW.js";
|
|
101
83
|
import {
|
|
102
84
|
classifyUnparsableToolArgs,
|
|
103
85
|
collectStablePromptPrefix,
|
|
@@ -121,7 +103,7 @@ import {
|
|
|
121
103
|
toOpenAiCompatibleMessages,
|
|
122
104
|
toResponsesTools,
|
|
123
105
|
transferDowngradedToolTurnOrigin
|
|
124
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-EEOOBRA7.js";
|
|
125
107
|
import {
|
|
126
108
|
TOOL_HAD_IMAGES,
|
|
127
109
|
TOOL_IMAGES,
|
|
@@ -134,13 +116,31 @@ import {
|
|
|
134
116
|
toolImageDelivery,
|
|
135
117
|
toolImages,
|
|
136
118
|
withoutToolImages
|
|
137
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-X4O7FJF5.js";
|
|
120
|
+
import {
|
|
121
|
+
BRIDGE_STREAM_MAX_CHARS,
|
|
122
|
+
CLI_NOLO_WORKSPACE_TOOL_NAMES,
|
|
123
|
+
DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
|
|
124
|
+
NOLO_WORKSPACE_TOOL_NAMES,
|
|
125
|
+
buildDialogReadEnvelope,
|
|
126
|
+
buildNoloWorkspaceCommandArgs,
|
|
127
|
+
buildNoloWorkspaceOpenAiTools,
|
|
128
|
+
createStreamingDialogReadProjector,
|
|
129
|
+
noloPositiveIntegerString,
|
|
130
|
+
noloStringArg,
|
|
131
|
+
parseNoloWorkspaceToolArguments,
|
|
132
|
+
readTextStreamUpToChars,
|
|
133
|
+
resolveNoloDialogInput
|
|
134
|
+
} from "./chunk-RYOLWYBK.js";
|
|
135
|
+
import {
|
|
136
|
+
applyToolSurfaceConstraints
|
|
137
|
+
} from "./chunk-VS276URX.js";
|
|
138
138
|
import {
|
|
139
139
|
isQuotaExhaustedError
|
|
140
140
|
} from "./chunk-TLE77UJ5.js";
|
|
141
141
|
import {
|
|
142
142
|
isAgentSkillDisabled
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-FJSNBZXR.js";
|
|
144
144
|
import {
|
|
145
145
|
buildDialogFallbackTitleFromUserInput
|
|
146
146
|
} from "./chunk-2MBTWINN.js";
|
|
@@ -152,12 +152,13 @@ import {
|
|
|
152
152
|
resolveEmptyAssistantFallbackMessage,
|
|
153
153
|
resolveEmptyAssistantOutcome,
|
|
154
154
|
resolveTruncatedReasoningTailLog
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-QRGDJA4B.js";
|
|
156
156
|
import {
|
|
157
157
|
COMPACTION_SUMMARY_SCHEMA_VERSION,
|
|
158
158
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
159
159
|
buildBoundedCompactionRequest,
|
|
160
160
|
buildCompactionMetricsFromPlan,
|
|
161
|
+
buildSummarySourceDiagnostics,
|
|
161
162
|
classifySummaryError,
|
|
162
163
|
computeSummarySourceMetadata,
|
|
163
164
|
createSummaryBudget,
|
|
@@ -175,7 +176,7 @@ import {
|
|
|
175
176
|
sha256Hex,
|
|
176
177
|
summaryCompletionTokens,
|
|
177
178
|
truncateToolOutputForContext
|
|
178
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-L32W3PRP.js";
|
|
179
180
|
import {
|
|
180
181
|
createProviderCallTimingTracker,
|
|
181
182
|
finalizeProviderCallTiming,
|
|
@@ -191,39 +192,22 @@ import {
|
|
|
191
192
|
} from "./chunk-KX6YBIHG.js";
|
|
192
193
|
import {
|
|
193
194
|
assertCredentialRef
|
|
194
|
-
} from "./chunk-
|
|
195
|
-
import {
|
|
196
|
-
isLevelNotFoundError
|
|
197
|
-
} from "./chunk-OW765XBU.js";
|
|
195
|
+
} from "./chunk-OQHIVPG4.js";
|
|
198
196
|
import {
|
|
199
197
|
isAbortError
|
|
200
198
|
} from "./chunk-7DPNBQSV.js";
|
|
201
199
|
import {
|
|
202
|
-
|
|
203
|
-
} from "./chunk-
|
|
204
|
-
import {
|
|
205
|
-
canonicalizeToolName,
|
|
206
|
-
canonicalizeToolNames
|
|
207
|
-
} from "./chunk-6OVNSQHN.js";
|
|
208
|
-
import {
|
|
209
|
-
dialogMessageKey,
|
|
210
|
-
dialogMessageRange
|
|
211
|
-
} from "./chunk-OJKUU3LP.js";
|
|
212
|
-
import {
|
|
213
|
-
asTrimmedNonEmptyStringArray
|
|
214
|
-
} from "./chunk-I42VC5KR.js";
|
|
215
|
-
import {
|
|
216
|
-
buildDialogSummaryLayer
|
|
217
|
-
} from "./chunk-JWXITTQB.js";
|
|
218
|
-
import {
|
|
219
|
-
buildUserResponseLanguageContext
|
|
220
|
-
} from "./chunk-L5I543VB.js";
|
|
200
|
+
isLevelNotFoundError
|
|
201
|
+
} from "./chunk-OW765XBU.js";
|
|
221
202
|
import {
|
|
203
|
+
TOOL_OUTPUT_SPILL_BYTES,
|
|
204
|
+
TOOL_OUTPUT_SPILL_LINES,
|
|
222
205
|
buildInteractiveCommandBlockedResult,
|
|
223
206
|
buildProcessTaskResultCapsule,
|
|
224
207
|
buildWorkspaceShellCommand,
|
|
225
208
|
buildWorkspaceShellEscapeBlockedResult,
|
|
226
209
|
buildWorkspaceShellPlan,
|
|
210
|
+
countLines,
|
|
227
211
|
createGlob,
|
|
228
212
|
deriveLabel,
|
|
229
213
|
extractActivity,
|
|
@@ -242,14 +226,40 @@ import {
|
|
|
242
226
|
spillToolOutput,
|
|
243
227
|
toProcessTaskView,
|
|
244
228
|
truncateToolOutput
|
|
245
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-VMJVAJ6W.js";
|
|
246
230
|
import {
|
|
247
231
|
estimateTokenCount
|
|
248
232
|
} from "./chunk-PSCNXBYA.js";
|
|
233
|
+
import {
|
|
234
|
+
resolveNoloStateDir
|
|
235
|
+
} from "./chunk-6UBGXX2W.js";
|
|
236
|
+
import {
|
|
237
|
+
WORKTREE_ISOLATION_PRELUDE
|
|
238
|
+
} from "./chunk-G7IUT2V3.js";
|
|
239
|
+
import {
|
|
240
|
+
canonicalizeToolName,
|
|
241
|
+
canonicalizeToolNames
|
|
242
|
+
} from "./chunk-6OVNSQHN.js";
|
|
243
|
+
import {
|
|
244
|
+
dialogMessageKey,
|
|
245
|
+
dialogMessageRange
|
|
246
|
+
} from "./chunk-OJKUU3LP.js";
|
|
247
|
+
import {
|
|
248
|
+
asTrimmedNonEmptyStringArray
|
|
249
|
+
} from "./chunk-I42VC5KR.js";
|
|
250
|
+
import {
|
|
251
|
+
asOptionalPositiveFiniteNumber
|
|
252
|
+
} from "./chunk-U6VC4MU4.js";
|
|
253
|
+
import {
|
|
254
|
+
buildDialogSummaryLayer
|
|
255
|
+
} from "./chunk-3P54D2E4.js";
|
|
256
|
+
import {
|
|
257
|
+
buildUserResponseLanguageContext
|
|
258
|
+
} from "./chunk-BNMPUQW6.js";
|
|
249
259
|
import {
|
|
250
260
|
buildProviderAuthHeaders,
|
|
251
261
|
buildProviderExecutionPlan
|
|
252
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-RTHFJZ6M.js";
|
|
253
263
|
import {
|
|
254
264
|
toErrorMessage
|
|
255
265
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -259,15 +269,6 @@ import {
|
|
|
259
269
|
import {
|
|
260
270
|
isRecord
|
|
261
271
|
} from "./chunk-KUG52IAP.js";
|
|
262
|
-
import {
|
|
263
|
-
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
264
|
-
} from "./chunk-VALBGPM6.js";
|
|
265
|
-
import {
|
|
266
|
-
asTrimmedLowercaseString
|
|
267
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
268
|
-
import {
|
|
269
|
-
asOptionalPositiveFiniteNumber
|
|
270
|
-
} from "./chunk-U6VC4MU4.js";
|
|
271
272
|
import {
|
|
272
273
|
asOptionalTrimmedString
|
|
273
274
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -275,8 +276,11 @@ import {
|
|
|
275
276
|
normalizeServerOrigin
|
|
276
277
|
} from "./chunk-CF7PE763.js";
|
|
277
278
|
import {
|
|
278
|
-
|
|
279
|
-
} from "./chunk-
|
|
279
|
+
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
280
|
+
} from "./chunk-OBSEKCVK.js";
|
|
281
|
+
import {
|
|
282
|
+
asTrimmedLowercaseString
|
|
283
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
280
284
|
import {
|
|
281
285
|
__export
|
|
282
286
|
} from "./chunk-U67V476Y.js";
|
|
@@ -323,6 +327,36 @@ function readTitleParams(value) {
|
|
|
323
327
|
return Object.fromEntries(entries);
|
|
324
328
|
}
|
|
325
329
|
|
|
330
|
+
// packages/agent-runtime/dialogHistoryOrder.ts
|
|
331
|
+
import { decodeTime } from "ulid";
|
|
332
|
+
function orderDialogHistory(messages) {
|
|
333
|
+
const time = (message) => {
|
|
334
|
+
if (Number.isFinite(message.cliHistoryOrder)) return message.cliHistoryOrder;
|
|
335
|
+
const id = message.id ?? message.cliMessageId;
|
|
336
|
+
if (!id) return Infinity;
|
|
337
|
+
const timestamp = /^(\d+)-/.exec(id);
|
|
338
|
+
if (timestamp) return Number(timestamp[1]);
|
|
339
|
+
if (/^[0-9A-HJKMNP-TV-Z]{26}$/.test(id)) {
|
|
340
|
+
try {
|
|
341
|
+
return decodeTime(id);
|
|
342
|
+
} catch {
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return Number.isFinite(message.createdAt) ? message.createdAt : -Infinity;
|
|
346
|
+
};
|
|
347
|
+
const identity2 = (message) => message.id ?? message.cliMessageId;
|
|
348
|
+
return messages.map((message, index) => ({ message, index, time: time(message) })).sort((a, b) => {
|
|
349
|
+
if (a.time !== b.time) return a.time < b.time ? -1 : 1;
|
|
350
|
+
const left = identity2(a.message), right = identity2(b.message);
|
|
351
|
+
if (left && right && left !== right) return left < right ? -1 : 1;
|
|
352
|
+
return a.index - b.index;
|
|
353
|
+
}).map(({ message }) => message);
|
|
354
|
+
}
|
|
355
|
+
function dialogTurnUserMessageId(turnId, index) {
|
|
356
|
+
if (typeof turnId !== "string" || !/^turn-[0-9A-HJKMNP-TV-Z]{26}$/.test(turnId)) return void 0;
|
|
357
|
+
return `${decodeTime(turnId.slice(5))}-${String(index + 1).padStart(3, "0")}-${turnId}`;
|
|
358
|
+
}
|
|
359
|
+
|
|
326
360
|
// packages/agent-runtime/contextRefusal.ts
|
|
327
361
|
var machineIdentifier = (value) => value && /^[A-Z][A-Z0-9_]{0,63}$/.test(value) ? value : void 0;
|
|
328
362
|
function classifyContextRefusal(args2) {
|
|
@@ -16026,7 +16060,7 @@ function buildReadWorkspaceParameters() {
|
|
|
16026
16060
|
const path = buildWorkspacePathProperty();
|
|
16027
16061
|
const lines = {
|
|
16028
16062
|
type: "string",
|
|
16029
|
-
description: 'Line slice: "40-120" (range, 1-based, inclusive), "120-" (from line to end), "-50" (tail N lines), "50" (head N lines). Omit to read
|
|
16063
|
+
description: 'Line slice: "40-120" (range, 1-based, inclusive), "120-" (from line to end), "-50" (tail N lines), "50" (head N lines). Omit to read from the start; large results return a bounded window. Continue from metadata endLine + 1.'
|
|
16030
16064
|
};
|
|
16031
16065
|
const force = {
|
|
16032
16066
|
type: "boolean",
|
|
@@ -16815,7 +16849,6 @@ function readExpectedReplacementCount(args2) {
|
|
|
16815
16849
|
}
|
|
16816
16850
|
return value;
|
|
16817
16851
|
}
|
|
16818
|
-
var READ_FILE_SLICE_FALLBACK_LINES = 200;
|
|
16819
16852
|
function isAbsentArg(value) {
|
|
16820
16853
|
return value === void 0 || value === null;
|
|
16821
16854
|
}
|
|
@@ -16887,17 +16920,9 @@ function parseLinesArg(value) {
|
|
|
16887
16920
|
return { slice: { startLine, endLine } };
|
|
16888
16921
|
}
|
|
16889
16922
|
function readFileSliceArgs(args2) {
|
|
16890
|
-
|
|
16891
|
-
const withFallback = (slice2, invalidLines) => {
|
|
16892
|
-
warnings.push(
|
|
16893
|
-
`No usable line range remained; returned the first ${READ_FILE_SLICE_FALLBACK_LINES} lines instead of the whole file.`
|
|
16894
|
-
);
|
|
16895
|
-
return { ...slice2, maxLines: READ_FILE_SLICE_FALLBACK_LINES, warnings, invalidLines };
|
|
16896
|
-
};
|
|
16897
|
-
if (isAbsentArg(args2.lines)) return { warnings, invalidLines: void 0 };
|
|
16923
|
+
if (isAbsentArg(args2.lines) || args2.lines === "") return {};
|
|
16898
16924
|
const { slice, warning } = parseLinesArg(args2.lines);
|
|
16899
|
-
|
|
16900
|
-
return slice ? { ...slice, warnings, invalidLines: void 0 } : withFallback({}, describeRejectedArgValue(args2.lines));
|
|
16925
|
+
return slice ? { slice } : { error: clipMarkerValue(warning ?? "Invalid line range", 240) };
|
|
16901
16926
|
}
|
|
16902
16927
|
function buildReadFileSliceHint(totalLines) {
|
|
16903
16928
|
return `File has ${totalLines} lines. Use lines: ${LINES_ARG_SYNTAX}, or omit it for the whole file.`;
|
|
@@ -17166,7 +17191,15 @@ var READ_FILE_LEDGER_MAX_KEYS = 256;
|
|
|
17166
17191
|
async function readFileTool(args2) {
|
|
17167
17192
|
const parsed = parseWorkspaceToolArguments(args2.call.arguments);
|
|
17168
17193
|
const requestedPath = requireWorkspaceToolPath(parsed);
|
|
17169
|
-
const
|
|
17194
|
+
const parsedSlice = readFileSliceArgs(parsed);
|
|
17195
|
+
if (parsedSlice.error) {
|
|
17196
|
+
return {
|
|
17197
|
+
content: `[readFile] Invalid lines: ${parsedSlice.error} No file content was read. Use lines: ${LINES_ARG_SYNTAX}, or omit lines.`,
|
|
17198
|
+
metadata: { status: "invalid-arguments", tool: "readFile" }
|
|
17199
|
+
};
|
|
17200
|
+
}
|
|
17201
|
+
const sliceArgs = parsedSlice.slice ?? {};
|
|
17202
|
+
const warnings = [];
|
|
17170
17203
|
const approval = await resolveLocalWorkspaceToolApproval({
|
|
17171
17204
|
workspaceRoot: args2.workspaceRoot,
|
|
17172
17205
|
requestedPath,
|
|
@@ -17182,45 +17215,89 @@ async function readFileTool(args2) {
|
|
|
17182
17215
|
content,
|
|
17183
17216
|
...sliceArgs
|
|
17184
17217
|
});
|
|
17185
|
-
const truncatedRead = defensivelyTruncateReadFile({
|
|
17186
|
-
content: sliced.content,
|
|
17187
|
-
totalLines: sliced.totalLines
|
|
17188
|
-
});
|
|
17189
|
-
const invalidLinesMarker = invalidLines !== void 0 ? `[readFile] lines=${clipMarkerValue(invalidLines)} was rejected (only ONE range: ${LINES_ARG_SYNTAX}); returned lines ${sliced.startLine}-${sliced.endLine} instead. Fix the argument before relying on this window.
|
|
17190
|
-
` : "";
|
|
17191
|
-
const finalRead = invalidLinesMarker.length > 0 ? defensivelyTruncateReadFile({
|
|
17192
|
-
content: truncatedRead.content,
|
|
17193
|
-
totalLines: sliced.totalLines,
|
|
17194
|
-
limit: Math.max(1, READ_FILE_MAX_CHAR_LIMIT - invalidLinesMarker.length)
|
|
17195
|
-
}) : truncatedRead;
|
|
17196
|
-
const finalContent = invalidLinesMarker + finalRead.content;
|
|
17197
|
-
const truncatedByCharLimit = truncatedRead.truncatedByCharLimit || finalRead.truncatedByCharLimit;
|
|
17198
|
-
const isTruncated = sliced.truncated || truncatedByCharLimit;
|
|
17199
17218
|
const relativePath = normalizeWorkspaceRelativePath({
|
|
17200
17219
|
workspaceRoot: resolve4(args2.workspaceRoot),
|
|
17201
17220
|
targetPath: absolutePath
|
|
17202
17221
|
});
|
|
17222
|
+
const cap = resolveHistoricalToolContentCap("readFile", 0);
|
|
17223
|
+
const selectedLines = splitTextLines(sliced.content);
|
|
17224
|
+
const makeMetadata = (body, endLine, windowed2, partialLine) => ({
|
|
17225
|
+
path: relativePath,
|
|
17226
|
+
bytes: Buffer.byteLength(body),
|
|
17227
|
+
totalBytes: Buffer.byteLength(originalContent),
|
|
17228
|
+
...projection.projected ? {
|
|
17229
|
+
projection: "run-result-observations",
|
|
17230
|
+
projectedTotalBytes: Buffer.byteLength(content),
|
|
17231
|
+
rawReadHint: "readFile raw:true reads original evidence; line numbers are unchanged."
|
|
17232
|
+
} : {},
|
|
17233
|
+
startLine: sliced.startLine,
|
|
17234
|
+
...partialLine ? { partialLine: true } : { endLine },
|
|
17235
|
+
totalLines: sliced.totalLines,
|
|
17236
|
+
truncated: sliced.truncated || windowed2,
|
|
17237
|
+
...windowed2 ? { truncatedByByteLimit: true, truncatedByCharLimit: true } : {},
|
|
17238
|
+
...sliceArgs.maxLines ? { maxLines: sliceArgs.maxLines } : {},
|
|
17239
|
+
...sliceArgs.tailLines ? { tailLines: sliceArgs.tailLines } : {},
|
|
17240
|
+
...activity ? { activity } : {}
|
|
17241
|
+
});
|
|
17242
|
+
const fits = (body, endLine, windowed2) => {
|
|
17243
|
+
if (Buffer.byteLength(body) > TOOL_OUTPUT_SPILL_BYTES || countLines(body) > TOOL_OUTPUT_SPILL_LINES) return false;
|
|
17244
|
+
const metadata2 = makeMetadata(body, endLine, windowed2, false);
|
|
17245
|
+
return formatToolMessageContent({ toolName: "readFile", content: body, metadata: metadata2 }).length <= cap;
|
|
17246
|
+
};
|
|
17247
|
+
let deliveredCount = selectedLines.length;
|
|
17248
|
+
let finalContent = sliced.content;
|
|
17249
|
+
let windowed = false;
|
|
17250
|
+
if (!fits(finalContent, sliced.endLine, false)) {
|
|
17251
|
+
let low = 0;
|
|
17252
|
+
let high = selectedLines.length;
|
|
17253
|
+
while (low < high) {
|
|
17254
|
+
const mid = Math.ceil((low + high) / 2);
|
|
17255
|
+
const candidate = selectedLines.slice(0, mid).join("\n");
|
|
17256
|
+
if (fits(candidate, sliced.startLine + mid - 1, true)) low = mid;
|
|
17257
|
+
else high = mid - 1;
|
|
17258
|
+
}
|
|
17259
|
+
deliveredCount = low;
|
|
17260
|
+
windowed = true;
|
|
17261
|
+
finalContent = selectedLines.slice(0, deliveredCount).join("\n");
|
|
17262
|
+
}
|
|
17263
|
+
const oversizedLine = windowed && deliveredCount === 0;
|
|
17264
|
+
if (oversizedLine) {
|
|
17265
|
+
let low = 0;
|
|
17266
|
+
let high = Math.min(sliced.content.length, cap);
|
|
17267
|
+
while (low < high) {
|
|
17268
|
+
const mid = Math.ceil((low + high) / 2);
|
|
17269
|
+
const candidate = defensivelyTruncateReadFile({ content: sliced.content, totalLines: sliced.totalLines, limit: mid }).content;
|
|
17270
|
+
const metadata2 = makeMetadata(candidate, sliced.startLine, true, true);
|
|
17271
|
+
const fitsPreview = Buffer.byteLength(candidate) <= TOOL_OUTPUT_SPILL_BYTES && countLines(candidate) <= TOOL_OUTPUT_SPILL_LINES && formatToolMessageContent({ toolName: "readFile", content: candidate, metadata: metadata2 }).length <= cap;
|
|
17272
|
+
if (fitsPreview) low = mid;
|
|
17273
|
+
else high = mid - 1;
|
|
17274
|
+
}
|
|
17275
|
+
finalContent = low > 0 ? defensivelyTruncateReadFile({ content: sliced.content, totalLines: sliced.totalLines, limit: low }).content : "[readFile] Line exceeds the delivery budget; use codeSearch or another tool to inspect it.";
|
|
17276
|
+
}
|
|
17277
|
+
const deliveredEndLine = windowed && !oversizedLine ? sliced.startLine + deliveredCount - 1 : sliced.endLine;
|
|
17278
|
+
const metadata = makeMetadata(finalContent, deliveredEndLine, windowed, oversizedLine);
|
|
17203
17279
|
const force = parsed.force === true;
|
|
17204
17280
|
const ledger = args2.readLedger;
|
|
17205
|
-
const
|
|
17281
|
+
const deliveredRange = { startLine: sliced.startLine, endLine: deliveredEndLine };
|
|
17206
17282
|
const fingerprint = createHash3("sha1").update(originalContent).update(parsed.raw === true ? "\0raw" : "\0default").digest("hex").slice(0, 20);
|
|
17207
17283
|
let entry = ledger?.get(relativePath);
|
|
17208
17284
|
if (entry && entry.fingerprint !== fingerprint) {
|
|
17209
17285
|
entry = void 0;
|
|
17210
17286
|
ledger?.delete(relativePath);
|
|
17211
17287
|
}
|
|
17212
|
-
if (!force && entry && ledger) {
|
|
17288
|
+
if (!force && entry && ledger && !oversizedLine) {
|
|
17213
17289
|
const retainedCap = resolveHistoricalToolContentCap("readFile", 0);
|
|
17214
17290
|
const retained = filterRetainedLedgerRecords(entry.records, retainedCap);
|
|
17215
|
-
if (retained.length > 0 && isLineRangeCovered(
|
|
17291
|
+
if (retained.length > 0 && isLineRangeCovered(deliveredRange, retained)) {
|
|
17216
17292
|
ledger.delete(relativePath);
|
|
17217
17293
|
ledger.set(relativePath, entry);
|
|
17218
17294
|
return {
|
|
17219
|
-
content: `[readFile] ${relativePath} lines ${
|
|
17295
|
+
content: `[readFile] ${relativePath} lines ${deliveredRange.startLine}-${deliveredRange.endLine} were already delivered earlier and the file is unchanged; not resending. Pass force:true to refetch.` + (windowed ? ` Continue with lines=${deliveredEndLine + 1}-.` : ""),
|
|
17220
17296
|
metadata: {
|
|
17221
17297
|
path: relativePath,
|
|
17222
|
-
startLine:
|
|
17223
|
-
endLine:
|
|
17298
|
+
startLine: deliveredRange.startLine,
|
|
17299
|
+
endLine: deliveredRange.endLine,
|
|
17300
|
+
...windowed ? { truncated: true } : {},
|
|
17224
17301
|
totalLines: sliced.totalLines,
|
|
17225
17302
|
deduped: true,
|
|
17226
17303
|
...warnings.length ? { warnings: [...warnings, buildReadFileSliceHint(sliced.totalLines)] } : {},
|
|
@@ -17229,29 +17306,10 @@ async function readFileTool(args2) {
|
|
|
17229
17306
|
};
|
|
17230
17307
|
}
|
|
17231
17308
|
}
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
bytes: Buffer.byteLength(finalContent),
|
|
17235
|
-
totalBytes: Buffer.byteLength(originalContent),
|
|
17236
|
-
...projection.projected ? {
|
|
17237
|
-
projection: "run-result-observations",
|
|
17238
|
-
projectedTotalBytes: Buffer.byteLength(content),
|
|
17239
|
-
rawReadHint: "readFile raw:true reads original evidence; line numbers are unchanged."
|
|
17240
|
-
} : {},
|
|
17241
|
-
startLine: sliced.startLine,
|
|
17242
|
-
endLine: sliced.endLine,
|
|
17243
|
-
totalLines: sliced.totalLines,
|
|
17244
|
-
truncated: isTruncated,
|
|
17245
|
-
...truncatedByCharLimit ? { truncatedByByteLimit: true, truncatedByCharLimit: true } : {},
|
|
17246
|
-
...sliceArgs.maxLines ? { maxLines: sliceArgs.maxLines } : {},
|
|
17247
|
-
...sliceArgs.tailLines ? { tailLines: sliceArgs.tailLines } : {},
|
|
17248
|
-
...warnings.length ? { warnings: [...warnings, buildReadFileSliceHint(sliced.totalLines)] } : {},
|
|
17249
|
-
...activity ? { activity } : {}
|
|
17250
|
-
};
|
|
17251
|
-
if (!isTruncated && ledger) {
|
|
17252
|
-
const persistedChars = finalContent.length + "\n\n[tool metadata]\n".length + JSON.stringify(metadata).length;
|
|
17309
|
+
if (!oversizedLine && ledger) {
|
|
17310
|
+
const persistedChars = formatToolMessageContent({ toolName: "readFile", content: finalContent, metadata }).length;
|
|
17253
17311
|
const records = entry?.records ?? [];
|
|
17254
|
-
records.push({ ...
|
|
17312
|
+
records.push({ ...deliveredRange, chars: persistedChars });
|
|
17255
17313
|
ledger.delete(relativePath);
|
|
17256
17314
|
ledger.set(relativePath, {
|
|
17257
17315
|
fingerprint,
|
|
@@ -19185,42 +19243,7 @@ function createTurnUsageLedger(args2) {
|
|
|
19185
19243
|
}
|
|
19186
19244
|
|
|
19187
19245
|
// packages/agent-runtime/leafFinalHandoff.ts
|
|
19188
|
-
var LEAF_FINAL_HANDOFF_INSTRUCTIONS = `Leaf subtask final: return only the result, blockers/findings, and minimal evidence the parent needs. Do not narrate your process or restate the task. Keep success
|
|
19189
|
-
|
|
19190
|
-
// packages/agent-runtime/taskExecutionContract.ts
|
|
19191
|
-
var present = (value) => typeof value === "string" && value.trim().length > 0;
|
|
19192
|
-
function evaluateTaskExecutionContract(contract, outcome = {}) {
|
|
19193
|
-
if (!contract) return void 0;
|
|
19194
|
-
const result4 = (status, ...reasons) => ({ taskId: contract.taskId, status, reasons });
|
|
19195
|
-
if (outcome.stopped) return result4("blocked", "stopped");
|
|
19196
|
-
if (!present(contract.taskId) || !["owner", "implementation-leaf"].includes(contract.role) || !["active", "paused", "revoked"].includes(contract.authorization) || !["pending", "waived", "accepted", "unknown"].includes(contract.acceptance) || !["complete", "incomplete", "unknown"].includes(contract.implementation) || !["changed", "unchanged", "unknown"].includes(contract.changes)) {
|
|
19197
|
-
return result4("blocked", "invalid_contract");
|
|
19198
|
-
}
|
|
19199
|
-
if (contract.authorization === "revoked") return result4("blocked", "authorization_revoked");
|
|
19200
|
-
if (contract.authorization === "paused") return result4("blocked", "authorization_paused");
|
|
19201
|
-
if (outcome.executionFailed) return result4("blocked", "execution_failed");
|
|
19202
|
-
if (outcome.budgetExhausted) return result4("incomplete", "budget_exhausted");
|
|
19203
|
-
if (contract.implementation !== "complete") return result4("incomplete", "implementation_incomplete");
|
|
19204
|
-
if (contract.acceptance === "pending") return result4("waiting", "acceptance_pending");
|
|
19205
|
-
if (contract.acceptance === "unknown") return result4("blocked", "acceptance_unknown");
|
|
19206
|
-
if (contract.changes === "unknown") return result4("incomplete", "changes_unknown");
|
|
19207
|
-
if (contract.role === "implementation-leaf" || contract.changes === "unchanged") return result4("completed");
|
|
19208
|
-
if (!present(contract.revision)) return result4("incomplete", "revision_missing");
|
|
19209
|
-
const review = contract.review;
|
|
19210
|
-
if (!review || !present(review.evidenceRef)) return result4("incomplete", "review_missing");
|
|
19211
|
-
if (review.revision !== contract.revision) return result4("incomplete", "review_stale");
|
|
19212
|
-
if (!present(contract.authorInstanceId) || !present(review.reviewerInstanceId) || review.reviewerInstanceId === contract.authorInstanceId) return result4("blocked", "review_not_independent");
|
|
19213
|
-
if (review.verdict !== "APPROVE" || review.hasCriticalOrHigh !== false) return result4("blocked", "review_rejected");
|
|
19214
|
-
const commit = contract.commit;
|
|
19215
|
-
if (!commit || !present(commit.commitId) || !present(commit.evidenceRef)) return result4("incomplete", "commit_missing");
|
|
19216
|
-
if (commit.revision !== contract.revision) return result4("incomplete", "commit_stale");
|
|
19217
|
-
const merge4 = contract.localMerge;
|
|
19218
|
-
if (!merge4 || !present(merge4.targetBranch) || !present(merge4.mergeCommitId) || !present(merge4.evidenceRef)) {
|
|
19219
|
-
return result4("incomplete", "local_merge_missing");
|
|
19220
|
-
}
|
|
19221
|
-
if (merge4.sourceCommitId !== commit.commitId) return result4("incomplete", "local_merge_mismatch");
|
|
19222
|
-
return result4("completed");
|
|
19223
|
-
}
|
|
19246
|
+
var LEAF_FINAL_HANDOFF_INSTRUCTIONS = `Leaf subtask final: return only the result, blockers/findings, and minimal evidence the parent needs. Do not narrate your process or restate the task. Keep success concise without dropping the current delivery scope, unresolved blockers or evidence references; on failure include the blocker, severity when relevant, and an evidence reference (file:line, test command, commit, artifact, or run/dialog). If the task explicitly requires a long-form deliverable (document, translation, dataset, code, or other artifact), provide that deliverable in full and keep only the handoff around it concise. During execution, follow the brief as given: keep progress updates incremental to the brief; the final report must stand alone with the complete current delivery scope, unresolved blockers and evidence references, including on continuation; only when new evidence would materially change the goal, risk, irreversibility, or DoD should you surface it as a blocker/finding \u2014 do not silently expand scope or re-litigate the settled direction. Own investigation, implementation, related checks and failure fixes within the brief\u2019s scope and budget; leave goals and critical decisions to the parent. For required DoD checks, include the worktree, checked version (including uncommitted change scope), command, check scope, pass/fail and original-output reference; explicitly mark checks not run or evidence unavailable. Reuse valid same-version evidence; additional checks are warranted for version changes, missing/conflicting evidence or integration risk. Do not invent version metadata. Process done/exit 0 and assistant claims do not establish passing tests, user acceptance, independent review approval, integration or release; runtime acceptance is observations only and unknown remains unknown. Preserve a requested reviewer JSON/checkVerdict format; do not wrap it in another report. Keep success concise without omitting required evidence.`;
|
|
19224
19247
|
|
|
19225
19248
|
// packages/agent-runtime/contextBlockScope.ts
|
|
19226
19249
|
var isContextBlockScope = (value) => {
|
|
@@ -19283,6 +19306,16 @@ function findSummaryAnchorIndex(bridged, anchorId) {
|
|
|
19283
19306
|
const index = Number(legacy[1]);
|
|
19284
19307
|
return Number.isSafeInteger(index) && index < bridged.length ? index : -1;
|
|
19285
19308
|
}
|
|
19309
|
+
function logSummarySourceDiagnostics(phase, dialogId, history, anchor) {
|
|
19310
|
+
const sourceHash = hashSummarySourceSlice(history, anchor)?.slice(0, 16);
|
|
19311
|
+
const rows = buildSummarySourceDiagnostics(toPlanCompressionMessages(history), anchor);
|
|
19312
|
+
for (const row of rows) console.log(`[compaction-source] ${JSON.stringify({
|
|
19313
|
+
phase,
|
|
19314
|
+
dialogId,
|
|
19315
|
+
sourceHash,
|
|
19316
|
+
...row
|
|
19317
|
+
})}`);
|
|
19318
|
+
}
|
|
19286
19319
|
function hashSummarySourceSlice(history, summarizedBeforeId) {
|
|
19287
19320
|
if (!summarizedBeforeId) return void 0;
|
|
19288
19321
|
const bridged = toPlanCompressionMessages(history);
|
|
@@ -19494,6 +19527,7 @@ async function maybeAutoCompactLocalHistory(args2) {
|
|
|
19494
19527
|
storedHashPrefix: typeof invalidStored?.sourceHash === "string" && invalidStored.sourceHash ? invalidStored.sourceHash.slice(0, 8) : null
|
|
19495
19528
|
}
|
|
19496
19529
|
);
|
|
19530
|
+
logSummarySourceDiagnostics("invalidated", dialogId, history, invalidStored?.summarizedBeforeId);
|
|
19497
19531
|
stored = null;
|
|
19498
19532
|
}
|
|
19499
19533
|
const existingSummary = typeof stored?.summary === "string" ? stored.summary : "";
|
|
@@ -19951,6 +19985,7 @@ async function maybeAutoCompactLocalHistory(args2) {
|
|
|
19951
19985
|
)
|
|
19952
19986
|
});
|
|
19953
19987
|
saveElapsedMs = Date.now() - saveT0;
|
|
19988
|
+
logSummarySourceDiagnostics("saved", dialogId, history, bounded3.summarizedBeforeId);
|
|
19954
19989
|
console.log(formatCompactionMetricsLog(metrics));
|
|
19955
19990
|
logCompactionTiming("success", {
|
|
19956
19991
|
model: result4?.model ?? args2.model ?? null,
|
|
@@ -20517,10 +20552,6 @@ function attachUsageRecordsToError(error, usageRecords) {
|
|
|
20517
20552
|
}
|
|
20518
20553
|
async function persistFailedLocalTurn(args2) {
|
|
20519
20554
|
const errorMessage = toErrorMessage(args2.error);
|
|
20520
|
-
const businessCompletion = evaluateTaskExecutionContract(args2.input.taskExecutionContract, {
|
|
20521
|
-
stopped: args2.input.abortSignal?.aborted || args2.error instanceof Error && args2.error.code === LOCAL_TURN_ABORTED_CODE,
|
|
20522
|
-
executionFailed: true
|
|
20523
|
-
});
|
|
20524
20555
|
try {
|
|
20525
20556
|
const saved = await args2.adapter.saveTurn({
|
|
20526
20557
|
agentKey: args2.agentKey,
|
|
@@ -20531,7 +20562,6 @@ async function persistFailedLocalTurn(args2) {
|
|
|
20531
20562
|
toolCallCount: args2.toolCallCount ?? 0,
|
|
20532
20563
|
error: true,
|
|
20533
20564
|
errorMessage,
|
|
20534
|
-
...businessCompletion ? { businessCompletion } : {},
|
|
20535
20565
|
...args2.usage ? { usage: args2.usage } : {}
|
|
20536
20566
|
},
|
|
20537
20567
|
...args2.accountingUsage ? { accountingUsage: args2.accountingUsage } : {},
|
|
@@ -20821,13 +20851,16 @@ async function runLocalAgentTurn(input) {
|
|
|
20821
20851
|
summaryFallback: input.compactionSummaryFallback ?? readHostCompactionSummaryFallback(input.adapter),
|
|
20822
20852
|
boundary: observationBoundary,
|
|
20823
20853
|
getContextUsage: () => usageLedger.lastContextUsage(),
|
|
20824
|
-
getCanonicalCompactionHistory: () => [
|
|
20854
|
+
getCanonicalCompactionHistory: () => orderDialogHistory([
|
|
20825
20855
|
...canonicalHistory,
|
|
20826
20856
|
...transcript.persisted(
|
|
20827
20857
|
sanitizedPersistedInput,
|
|
20828
20858
|
input.persistedInputReference
|
|
20829
|
-
)
|
|
20830
|
-
|
|
20859
|
+
).map((message) => {
|
|
20860
|
+
const receipt = message.cliMessageId;
|
|
20861
|
+
return receipt ? { ...message, id: receipt } : message;
|
|
20862
|
+
})
|
|
20863
|
+
]),
|
|
20831
20864
|
getWorkingPrefix: () => transcript.working().slice(0, prefixCount),
|
|
20832
20865
|
onSelectedSummary: (summary) => {
|
|
20833
20866
|
selectedSummary = summary;
|
|
@@ -20880,6 +20913,11 @@ async function runLocalAgentTurn(input) {
|
|
|
20880
20913
|
})));
|
|
20881
20914
|
messages.splice(currentInputStart, messages.length - currentInputStart, ...sanitizedUsers);
|
|
20882
20915
|
}
|
|
20916
|
+
if (!input.userMessages?.length && input.adapter.host === "cli") {
|
|
20917
|
+
const userIndex = builtMessages.prefixCount + history.length;
|
|
20918
|
+
const id = dialogTurnUserMessageId(input.runtimeContext?.turnId, 0);
|
|
20919
|
+
if (id && messages[userIndex]?.role === "user") messages[userIndex] = { ...messages[userIndex], id };
|
|
20920
|
+
}
|
|
20883
20921
|
const acceptToolImages = createToolImageLedger();
|
|
20884
20922
|
const transcript = createTurnTranscript({
|
|
20885
20923
|
initialWorking: messages,
|
|
@@ -20929,7 +20967,8 @@ async function runLocalAgentTurn(input) {
|
|
|
20929
20967
|
transcript.push({
|
|
20930
20968
|
role: "user",
|
|
20931
20969
|
content,
|
|
20932
|
-
...message.cliMessageId ? { cliMessageId: message.cliMessageId } : {}
|
|
20970
|
+
...message.cliMessageId ? { cliMessageId: message.cliMessageId } : {},
|
|
20971
|
+
...Number.isFinite(message.cliHistoryOrder) ? { cliHistoryOrder: message.cliHistoryOrder } : {}
|
|
20933
20972
|
});
|
|
20934
20973
|
}
|
|
20935
20974
|
pendingInjectionCommits.push({ commit: entry.commit, rollback: entry.rollback, messages: entry.messages });
|
|
@@ -21525,12 +21564,6 @@ ${reasoningTailLog}
|
|
|
21525
21564
|
...result4,
|
|
21526
21565
|
stopReason: input.abortSignal?.aborted ? "aborted" : result4.error || result4.runtimeProviderFailure || result4.emptyAssistantFallbackReason ? "error" : stopReason
|
|
21527
21566
|
};
|
|
21528
|
-
delete result4.businessCompletion;
|
|
21529
|
-
const businessCompletion = evaluateTaskExecutionContract(input.taskExecutionContract, {
|
|
21530
|
-
stopped: input.abortSignal?.aborted,
|
|
21531
|
-
executionFailed: result4.error === true || !!result4.runtimeProviderFailure || !!result4.emptyAssistantFallbackReason
|
|
21532
|
-
});
|
|
21533
|
-
if (businessCompletion) result4.businessCompletion = businessCompletion;
|
|
21534
21567
|
if (!skipFinalAppend) {
|
|
21535
21568
|
const truncatedReasoningTailLog = resolveTruncatedReasoningTailLog(
|
|
21536
21569
|
result4.emptyAssistantFallbackReason,
|
|
@@ -23265,6 +23298,7 @@ function dialogMessageRecordToAgentRuntimeMessage(record2) {
|
|
|
23265
23298
|
return {
|
|
23266
23299
|
...typeof record2.id === "string" ? { id: record2.id } : {},
|
|
23267
23300
|
role: record2.role,
|
|
23301
|
+
...Number.isFinite(record2.metadata?.cliHistoryOrder) ? { cliHistoryOrder: record2.metadata.cliHistoryOrder } : {},
|
|
23268
23302
|
content: record2.content ?? "",
|
|
23269
23303
|
...record2.contextReference !== void 0 ? { context_reference: record2.contextReference } : {},
|
|
23270
23304
|
...typeof record2.reasoning_content === "string" ? { reasoning_content: record2.reasoning_content } : {},
|
|
@@ -23968,7 +24002,7 @@ async function registerDialogOwner(args2) {
|
|
|
23968
24002
|
// packages/cli/client/localDialogRecords.ts
|
|
23969
24003
|
var localDialogMessageRecordToRuntimeMessage = dialogMessageRecordToAgentRuntimeMessage;
|
|
23970
24004
|
function buildLocalDialogWritePlan(args2) {
|
|
23971
|
-
|
|
24005
|
+
const plan = buildAgentRuntimeDialogWritePlan({
|
|
23972
24006
|
input: args2.input,
|
|
23973
24007
|
userId: args2.userId,
|
|
23974
24008
|
now: args2.now,
|
|
@@ -23980,6 +24014,21 @@ function buildLocalDialogWritePlan(args2) {
|
|
|
23980
24014
|
},
|
|
23981
24015
|
...args2.titleOverride ? { titleOverride: args2.titleOverride } : {}
|
|
23982
24016
|
});
|
|
24017
|
+
const turnId = args2.input.runtimeContext?.turnId;
|
|
24018
|
+
const captureUserMessageIds = [];
|
|
24019
|
+
if (typeof turnId === "string" && /^turn-[0-9A-HJKMNP-TV-Z]{26}$/.test(turnId)) {
|
|
24020
|
+
const messages = args2.input.messages.filter((message) => message.role !== "system");
|
|
24021
|
+
for (const [index, message] of messages.entries()) {
|
|
24022
|
+
if (message.role !== "user" || message.cliMessageId) continue;
|
|
24023
|
+
const op = plan.ops[index + 1];
|
|
24024
|
+
const id = dialogTurnUserMessageId(turnId, index);
|
|
24025
|
+
const key = `dialog-${plan.dialogId}-msg-${id}`;
|
|
24026
|
+
op.key = key;
|
|
24027
|
+
op.value = { ...op.value, id, dbKey: key };
|
|
24028
|
+
captureUserMessageIds.push(id);
|
|
24029
|
+
}
|
|
24030
|
+
}
|
|
24031
|
+
return { ...plan, captureUserMessageIds };
|
|
23983
24032
|
}
|
|
23984
24033
|
async function saveCliPendingUserMessages(args2) {
|
|
23985
24034
|
const dialogKey = `dialog-${args2.userId}-${args2.dialogId}`;
|
|
@@ -24026,7 +24075,7 @@ async function saveCliPendingUserMessages(args2) {
|
|
|
24026
24075
|
if (ops.length) await args2.store.batch(ops);
|
|
24027
24076
|
}
|
|
24028
24077
|
async function readCliPendingUserMessages(store, dialogId) {
|
|
24029
|
-
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-
|
|
24078
|
+
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-M3F76NIP.js");
|
|
24030
24079
|
const rows = await readDialogMessageRecords({ store, dialogId });
|
|
24031
24080
|
const uncertain = rows.filter(({ record: record2 }) => record2.metadata?.cliBatchPhase === "requested" && !record2.metadata?.cliBatchResolution);
|
|
24032
24081
|
const recovery = uncertain.length ? {
|
|
@@ -24075,6 +24124,8 @@ async function markCliUserBatchPhase(store, dialogId, messageId, phase, messageI
|
|
|
24075
24124
|
metadata: {
|
|
24076
24125
|
...message.metadata,
|
|
24077
24126
|
queueState: "accepted",
|
|
24127
|
+
cliBatchId: messageId,
|
|
24128
|
+
...Number.isFinite(prepared?.cliHistoryOrder) ? { cliHistoryOrder: prepared.cliHistoryOrder } : {},
|
|
24078
24129
|
...id === messageId ? { cliBatchPhase: phase, acceptedUserMessageIds: [...messageIds] } : {}
|
|
24079
24130
|
}
|
|
24080
24131
|
} });
|
|
@@ -24089,6 +24140,8 @@ async function rollbackCliUserBatchPhase(store, dialogId, batchId, messageIds) {
|
|
|
24089
24140
|
if (!record2) continue;
|
|
24090
24141
|
const metadata = { ...record2.metadata };
|
|
24091
24142
|
delete metadata.cliBatchPhase;
|
|
24143
|
+
delete metadata.cliBatchId;
|
|
24144
|
+
delete metadata.acceptedUserMessageIds;
|
|
24092
24145
|
metadata.queueState = "pending";
|
|
24093
24146
|
ops.push({ type: "put", key, value: { ...record2, metadata } });
|
|
24094
24147
|
}
|
|
@@ -24129,7 +24182,7 @@ async function runNoloWorkspaceCliTool(call, args2) {
|
|
|
24129
24182
|
cmd,
|
|
24130
24183
|
stdout: "pipe",
|
|
24131
24184
|
stderr: "pipe",
|
|
24132
|
-
env: args2.env
|
|
24185
|
+
env: call.name === "listAgents" ? { ...process.env, ...args2.env, NOLO_PLANNING_CALLER: JSON.stringify(args2.planningCaller ?? {}) } : args2.env
|
|
24133
24186
|
});
|
|
24134
24187
|
const [stdout, stderr, exitCode] = await Promise.all([
|
|
24135
24188
|
readNoloProcessStream(proc.stdout),
|
|
@@ -24237,10 +24290,10 @@ function buildLoadSkillExecutor(args2) {
|
|
|
24237
24290
|
metadata: { loadSkill: true, resolved: false }
|
|
24238
24291
|
};
|
|
24239
24292
|
}
|
|
24240
|
-
const { resolveSkillByName } = await import("./skillDiscovery-
|
|
24293
|
+
const { resolveSkillByName } = await import("./skillDiscovery-I37M5KJC.js");
|
|
24241
24294
|
const resolved = resolveSkillByName(args2.cwd, name);
|
|
24242
24295
|
if (!resolved) {
|
|
24243
|
-
const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-
|
|
24296
|
+
const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-BAE2LDXF.js");
|
|
24244
24297
|
const builtin = resolveBuiltinSkillByName(name);
|
|
24245
24298
|
if (builtin) {
|
|
24246
24299
|
const denied = await rejectDisabledBuiltin(args2.agentSkillSource, builtin.slug, name, args2.resolveAgentSkillSource);
|
|
@@ -24319,7 +24372,7 @@ async function loadPreciseSkill(cwd, parsed, agentSkillSource, resolveAgentSkill
|
|
|
24319
24372
|
if (!nonEmpty(parsed.slug) || has2("projectBinding") || has2("relativePath")) {
|
|
24320
24373
|
return reject("builtin requires only an exact slug.");
|
|
24321
24374
|
}
|
|
24322
|
-
const { listBuiltinSkills } = await import("./builtinSkillRegistry-
|
|
24375
|
+
const { listBuiltinSkills } = await import("./builtinSkillRegistry-BAE2LDXF.js");
|
|
24323
24376
|
const builtin = listBuiltinSkills().find((entry) => entry.slug === parsed.slug);
|
|
24324
24377
|
if (!builtin) return reject("builtin slug not found.");
|
|
24325
24378
|
const denied = await rejectDisabledBuiltin(agentSkillSource, builtin.slug, builtin.slug, resolveAgentSkillSource);
|
|
@@ -24385,7 +24438,7 @@ ${body}`,
|
|
|
24385
24438
|
}
|
|
24386
24439
|
}
|
|
24387
24440
|
async function formatUnknownSkillMessage(cwd, requestedName) {
|
|
24388
|
-
const { discoverSkills } = await import("./skillDiscovery-
|
|
24441
|
+
const { discoverSkills } = await import("./skillDiscovery-I37M5KJC.js");
|
|
24389
24442
|
let available = [];
|
|
24390
24443
|
try {
|
|
24391
24444
|
available = discoverSkills(cwd).map((s) => s.name);
|
|
@@ -25028,6 +25081,7 @@ export {
|
|
|
25028
25081
|
createStrictHostCredentialBroker,
|
|
25029
25082
|
readCommandActionGatePayload,
|
|
25030
25083
|
readActionGate,
|
|
25084
|
+
orderDialogHistory,
|
|
25031
25085
|
Option_exports,
|
|
25032
25086
|
Duration_exports,
|
|
25033
25087
|
Exit_exports,
|
|
@@ -25058,7 +25112,6 @@ export {
|
|
|
25058
25112
|
runExecShellGates,
|
|
25059
25113
|
executeLocalToolWithPolicy,
|
|
25060
25114
|
LOCAL_TURN_ABORTED_CODE,
|
|
25061
|
-
evaluateTaskExecutionContract,
|
|
25062
25115
|
projectContextProvenance,
|
|
25063
25116
|
hashToolDefinitions,
|
|
25064
25117
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|