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
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveRuntimeAuthToken,
|
|
3
3
|
resolveRuntimeServerUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2X7WFDT6.js";
|
|
5
5
|
import {
|
|
6
6
|
isAgentRunTerminalStatus,
|
|
7
7
|
normalizeRunTitle,
|
|
8
8
|
shortAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OOJNQK6V.js";
|
|
10
10
|
import {
|
|
11
11
|
findPowerShellExecutable
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VMJVAJ6W.js";
|
|
13
13
|
import {
|
|
14
14
|
AUTH_ERROR_PATTERNS
|
|
15
15
|
} from "./chunk-EWQ3HGNZ.js";
|
|
16
|
+
import {
|
|
17
|
+
AGENT_RUN_PROTOCOL,
|
|
18
|
+
HOST_RUNTIME_CONTENT_IDENTITY,
|
|
19
|
+
RuntimeVersionMismatchError,
|
|
20
|
+
getHostRuntimeExecutable,
|
|
21
|
+
isCompiledBinary,
|
|
22
|
+
resolveCliEntrypointPath,
|
|
23
|
+
resolveExactRuntimeEntrypoint
|
|
24
|
+
} from "./chunk-BIDSIRTS.js";
|
|
16
25
|
import {
|
|
17
26
|
isRecord
|
|
18
27
|
} from "./chunk-KUG52IAP.js";
|
|
19
|
-
import {
|
|
20
|
-
isCompiledBinary,
|
|
21
|
-
resolveCliEntrypointPath
|
|
22
|
-
} from "./chunk-2THCNKE4.js";
|
|
23
28
|
|
|
24
29
|
// packages/cli/client/originShellApprovalTransport.ts
|
|
25
30
|
import { realpathSync } from "node:fs";
|
|
@@ -1152,11 +1157,6 @@ ${lines.join("\n")}
|
|
|
1152
1157
|
function buildResultFileContent(input, body) {
|
|
1153
1158
|
return `${buildResultFrontMatter(input)}${body}`;
|
|
1154
1159
|
}
|
|
1155
|
-
var RESULT_FRONT_MATTER_RE = /^---\nrunId: [^\n]*\n(?:[^\n]*\n)*?---\n/;
|
|
1156
|
-
function stripResultFrontMatter(text) {
|
|
1157
|
-
const match = RESULT_FRONT_MATTER_RE.exec(text);
|
|
1158
|
-
return match ? text.slice(match[0].length) : text;
|
|
1159
|
-
}
|
|
1160
1160
|
|
|
1161
1161
|
// packages/ai/tools/agent/runFailureClass.ts
|
|
1162
1162
|
function isHistoryIntegrityFailure(message) {
|
|
@@ -2027,6 +2027,34 @@ function listRunRecords(deps = {}) {
|
|
|
2027
2027
|
(a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime()
|
|
2028
2028
|
);
|
|
2029
2029
|
}
|
|
2030
|
+
async function listRunRecordsAsync(deps = {}) {
|
|
2031
|
+
const dir = resolveRunsDir(deps.env, deps.homedir);
|
|
2032
|
+
let entries;
|
|
2033
|
+
try {
|
|
2034
|
+
entries = await nodeFs2.promises.readdir(dir);
|
|
2035
|
+
} catch {
|
|
2036
|
+
return [];
|
|
2037
|
+
}
|
|
2038
|
+
const records = new Array(entries.length);
|
|
2039
|
+
let next = 0;
|
|
2040
|
+
const readNext = async () => {
|
|
2041
|
+
while (next < entries.length) {
|
|
2042
|
+
const index = next++;
|
|
2043
|
+
const entry = entries[index];
|
|
2044
|
+
if (!entry.endsWith(".json")) continue;
|
|
2045
|
+
const path = resolveRunRecordPath(entry.slice(0, -5), deps.env, deps.homedir);
|
|
2046
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
2047
|
+
try {
|
|
2048
|
+
records[index] = JSON.parse(await nodeFs2.promises.readFile(path, "utf8"));
|
|
2049
|
+
break;
|
|
2050
|
+
} catch {
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
await Promise.all(Array.from({ length: Math.min(16, entries.length) }, readNext));
|
|
2056
|
+
return records.filter((record) => Boolean(record)).sort((a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime());
|
|
2057
|
+
}
|
|
2030
2058
|
function findRunRecordByPid(pid, deps = {}) {
|
|
2031
2059
|
return listRunRecords(deps).find((record) => record.pid === pid);
|
|
2032
2060
|
}
|
|
@@ -2220,38 +2248,22 @@ function rewriteMsgFileArg(args, messagePath) {
|
|
|
2220
2248
|
return result;
|
|
2221
2249
|
}
|
|
2222
2250
|
function resolveValidCliEntrypoint(cliEntrypointPath, fs = nodeFs2) {
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
const fallback = resolveCliEntrypointPath();
|
|
2227
|
-
if (fs.existsSync(fallback)) {
|
|
2228
|
-
return fallback;
|
|
2229
|
-
}
|
|
2230
|
-
const candidates = [
|
|
2231
|
-
join2(dirname(fallback), "cli", "index.ts"),
|
|
2232
|
-
join2(dirname(fallback), "cli", "index.js"),
|
|
2233
|
-
join2(dirname(fallback), "..", "packages", "cli", "index.ts"),
|
|
2234
|
-
join2(dirname(fallback), "..", "packages", "cli", "index.js"),
|
|
2235
|
-
join2(dirname(fallback), "..", "index.js")
|
|
2236
|
-
];
|
|
2237
|
-
for (const cand of candidates) {
|
|
2238
|
-
if (fs.existsSync(cand)) {
|
|
2239
|
-
return cand;
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
return fallback;
|
|
2251
|
+
const entrypoint = cliEntrypointPath ?? resolveCliEntrypointPath();
|
|
2252
|
+
if (!fs.existsSync(entrypoint)) throw new RuntimeVersionMismatchError("runtime entrypoint missing");
|
|
2253
|
+
return fs === nodeFs2 ? resolveExactRuntimeEntrypoint(entrypoint) : String(fs.realpathSync?.(entrypoint) ?? entrypoint);
|
|
2243
2254
|
}
|
|
2244
2255
|
function buildAgentRunChildCommand(options, deps = {}) {
|
|
2245
2256
|
const fs = deps.fs ?? nodeFs2;
|
|
2246
|
-
const execPath =
|
|
2257
|
+
const execPath = getHostRuntimeExecutable();
|
|
2247
2258
|
const commandParts = options.commandPath ?? [];
|
|
2248
2259
|
let strippedArgs = stripBackgroundFlag(options.rawArgs);
|
|
2249
2260
|
if (options.messagePath) {
|
|
2250
2261
|
strippedArgs = rewriteMsgFileArg(strippedArgs, options.messagePath);
|
|
2251
2262
|
}
|
|
2252
2263
|
strippedArgs = absolutizeSkillArgs(strippedArgs);
|
|
2253
|
-
if (isCompiledBinary() || options.cliEntrypointPath === execPath) {
|
|
2254
|
-
|
|
2264
|
+
if (isCompiledBinary() || options.cliEntrypointPath === process.execPath || options.cliEntrypointPath === execPath) {
|
|
2265
|
+
const fixed = resolveValidCliEntrypoint(isCompiledBinary() ? execPath : options.cliEntrypointPath ?? execPath, fs);
|
|
2266
|
+
return { execPath: fixed, childArgs: [...commandParts, ...strippedArgs] };
|
|
2255
2267
|
}
|
|
2256
2268
|
const entrypoint = resolveValidCliEntrypoint(options.cliEntrypointPath, fs);
|
|
2257
2269
|
if (entrypoint === execPath) {
|
|
@@ -2539,6 +2551,48 @@ function releaseUnspawnedLocalWriterClaim(runId, deps) {
|
|
|
2539
2551
|
}, { strict: true });
|
|
2540
2552
|
if (!released) throw new Error(`[local-writer-resource] release lock busy: ${runId}`);
|
|
2541
2553
|
}
|
|
2554
|
+
async function recordRunStartup(runId, phase, deps = {}) {
|
|
2555
|
+
const attempt = () => withRunRecordLock(runId, deps, () => {
|
|
2556
|
+
const record = readRunRecord(runId, deps);
|
|
2557
|
+
if (!record || isRunTerminalStatus(record.status)) return true;
|
|
2558
|
+
record.startup = { protocol: AGENT_RUN_PROTOCOL, phase };
|
|
2559
|
+
writeRunRecord(record, deps);
|
|
2560
|
+
return true;
|
|
2561
|
+
}, { strict: true });
|
|
2562
|
+
const deadline = Date.now() + 2e3;
|
|
2563
|
+
while (!attempt()) {
|
|
2564
|
+
if (Date.now() >= deadline) throw new Error(`Startup evidence lock busy: ${runId}`);
|
|
2565
|
+
await new Promise((resolve2) => setTimeout(resolve2, 20));
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
async function settleBackgroundProcessExit(runId, code, signal, deps = {}) {
|
|
2569
|
+
const deadline = Date.now() + 2e3;
|
|
2570
|
+
while (true) {
|
|
2571
|
+
const settled = withRunRecordLock(runId, deps, () => {
|
|
2572
|
+
const record = readRunRecord(runId, deps);
|
|
2573
|
+
if (!record) return true;
|
|
2574
|
+
if (isRunTerminalStatus(record.status)) {
|
|
2575
|
+
record.processExit = { code, signal };
|
|
2576
|
+
writeRunRecord(record, deps);
|
|
2577
|
+
return true;
|
|
2578
|
+
}
|
|
2579
|
+
return false;
|
|
2580
|
+
}, { strict: true });
|
|
2581
|
+
if (settled === true) return;
|
|
2582
|
+
if (settled === false) {
|
|
2583
|
+
const result = transitionRunToTerminal(runId, {
|
|
2584
|
+
status: signal === "SIGTERM" || signal === "SIGKILL" ? "killed" : "failed",
|
|
2585
|
+
exitCode: code ?? 1,
|
|
2586
|
+
processExit: { code, signal },
|
|
2587
|
+
failureReason: signal === "SIGTERM" || signal === "SIGKILL" ? "cancelled" : "startup_failed",
|
|
2588
|
+
note: `Child exited without terminal result (code=${code}, signal=${signal})`
|
|
2589
|
+
}, deps);
|
|
2590
|
+
if (result.kind !== "contended") return;
|
|
2591
|
+
}
|
|
2592
|
+
if (Date.now() >= deadline) throw new Error(`Process exit settlement lock busy: ${runId}`);
|
|
2593
|
+
await (deps.sleep ?? defaultSleep)(20);
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2542
2596
|
async function spawnLocalBackgroundRun(input, deps = {}) {
|
|
2543
2597
|
const homedir = deps.homedir ?? nodeHomedir;
|
|
2544
2598
|
const env = deps.env ?? (deps.homedir ? { ...process.env, NOLO_HOME: join2(homedir(), ".nolo") } : process.env);
|
|
@@ -2611,6 +2665,7 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
|
|
|
2611
2665
|
...input.evidenceScope ? { evidenceScope: input.evidenceScope } : {},
|
|
2612
2666
|
...input.dispatchSpeedProvenance ? { dispatchSpeedProvenance: input.dispatchSpeedProvenance } : {},
|
|
2613
2667
|
runId,
|
|
2668
|
+
startup: { protocol: AGENT_RUN_PROTOCOL, phase: "spawn" },
|
|
2614
2669
|
agentKey: input.agentKey,
|
|
2615
2670
|
agentName: input.agentName?.trim() || shortAgentKey(input.agentKey),
|
|
2616
2671
|
...title ? { title } : {},
|
|
@@ -2641,17 +2696,32 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
|
|
|
2641
2696
|
const rawArgsWithQueue = (input.rawArgs ?? []).some(
|
|
2642
2697
|
(arg) => arg === "--queue-file" || arg.startsWith("--queue-file=")
|
|
2643
2698
|
) ? input.rawArgs : [...input.rawArgs ?? [], "--queue-file", queuePath];
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2699
|
+
let childCommand;
|
|
2700
|
+
try {
|
|
2701
|
+
childCommand = buildAgentRunChildCommand(
|
|
2702
|
+
{
|
|
2703
|
+
rawArgs: rawArgsWithQueue,
|
|
2704
|
+
commandPath: input.commandPath,
|
|
2705
|
+
cliEntrypointPath: input.cliEntrypointPath,
|
|
2706
|
+
messagePath
|
|
2707
|
+
},
|
|
2708
|
+
deps
|
|
2709
|
+
);
|
|
2710
|
+
} catch (error) {
|
|
2711
|
+
const result = await settleRunTerminalAuthoritatively(runId, {
|
|
2712
|
+
status: "failed",
|
|
2713
|
+
exitCode: 1,
|
|
2714
|
+
failureReason: error instanceof RuntimeVersionMismatchError ? "runtime_version_mismatch" : "startup_failed",
|
|
2715
|
+
note: String(error)
|
|
2716
|
+
}, resolvedDeps, (id, update, d) => transitionRunToTerminal(id, update, d));
|
|
2717
|
+
if (result.kind === "contended") throw new Error(`Startup settlement lock busy: ${runId}; ${error}`);
|
|
2718
|
+
throw error;
|
|
2719
|
+
}
|
|
2720
|
+
const { execPath, childArgs } = childCommand;
|
|
2653
2721
|
const childEnv = {
|
|
2654
2722
|
...env,
|
|
2723
|
+
NOLO_AGENT_RUN_PROTOCOL: AGENT_RUN_PROTOCOL,
|
|
2724
|
+
NOLO_AGENT_RUN_CONTENT_IDENTITY: HOST_RUNTIME_CONTENT_IDENTITY,
|
|
2655
2725
|
NOLO_AGENT_RUN_CHILD: "1",
|
|
2656
2726
|
NOLO_AGENT_RUN_ID: runId,
|
|
2657
2727
|
...record.writerLaunch ? { NOLO_WRITER_LAUNCH_ATTEMPT: record.writerLaunch.attemptId } : {}
|
|
@@ -2704,24 +2774,42 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
|
|
|
2704
2774
|
reservation?.release("spawn_sync_failed");
|
|
2705
2775
|
if (input.claimLocalWrites) releaseUnspawnedLocalWriterClaim(runId, resolvedDeps);
|
|
2706
2776
|
} finally {
|
|
2707
|
-
finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, resolvedDeps);
|
|
2777
|
+
finalizeRunRecord(runId, { status: "failed", exitCode: 1, failureReason: error instanceof RuntimeVersionMismatchError ? "runtime_version_mismatch" : "startup_failed", note: String(error) }, resolvedDeps);
|
|
2708
2778
|
}
|
|
2709
2779
|
throw error;
|
|
2710
2780
|
} finally {
|
|
2711
2781
|
fs.closeSync?.(logFd);
|
|
2712
2782
|
}
|
|
2713
2783
|
proc.once?.("error", (error) => {
|
|
2784
|
+
let note = String(error);
|
|
2714
2785
|
try {
|
|
2715
2786
|
reservation.release("child_error");
|
|
2716
2787
|
} catch (releaseError) {
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2788
|
+
note += `; reservation release failed: ${releaseError}`;
|
|
2789
|
+
}
|
|
2790
|
+
void settleRunTerminalAuthoritatively(runId, {
|
|
2791
|
+
status: "failed",
|
|
2792
|
+
exitCode: 1,
|
|
2793
|
+
failureReason: "startup_failed",
|
|
2794
|
+
note
|
|
2795
|
+
}, resolvedDeps, (id, update, d) => transitionRunToTerminal(id, update, d)).then((result) => {
|
|
2796
|
+
if (result.kind === "contended") throw new Error(`Startup settlement lock busy: ${runId}`);
|
|
2797
|
+
}).catch((error2) => {
|
|
2798
|
+
input.output?.write(`[nolo] background error settlement failed: ${error2}
|
|
2799
|
+
`);
|
|
2800
|
+
});
|
|
2801
|
+
});
|
|
2802
|
+
proc.once?.("exit", (code, signal) => {
|
|
2803
|
+
void settleBackgroundProcessExit(runId, code, signal, resolvedDeps).catch((error) => {
|
|
2804
|
+
input.output?.write(`[nolo] background exit settlement failed: ${error}
|
|
2805
|
+
`);
|
|
2806
|
+
});
|
|
2807
|
+
try {
|
|
2808
|
+
reservation.release("child_exit");
|
|
2809
|
+
} catch (error) {
|
|
2810
|
+
input.output?.write(`[nolo] reservation release failed: ${error}
|
|
2811
|
+
`);
|
|
2723
2812
|
}
|
|
2724
|
-
finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, resolvedDeps);
|
|
2725
2813
|
});
|
|
2726
2814
|
const hostMemoryNotice = emitHostMemoryNotice(hostMemory, input.output);
|
|
2727
2815
|
if (typeof proc.pid === "number") {
|
|
@@ -2876,10 +2964,15 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
|
|
|
2876
2964
|
if (!record2) return { kind: "not_found" };
|
|
2877
2965
|
const orphanCorrection = options.allowOverOrphaned === true && record2.status === "orphaned" && (update.status === "done" || update.status === "failed");
|
|
2878
2966
|
if (isAgentRunTerminalStatus(record2.status) && !orphanCorrection) {
|
|
2967
|
+
if (update.processExit) {
|
|
2968
|
+
record2.processExit = update.processExit;
|
|
2969
|
+
writeRunRecord(record2, deps);
|
|
2970
|
+
}
|
|
2879
2971
|
return { kind: "kept", record: record2 };
|
|
2880
2972
|
}
|
|
2881
2973
|
const now = deps.now ?? (() => /* @__PURE__ */ new Date());
|
|
2882
2974
|
record2.status = update.status;
|
|
2975
|
+
if (update.processExit) record2.processExit = update.processExit;
|
|
2883
2976
|
if (typeof update.exitCode === "number") record2.exitCode = update.exitCode;
|
|
2884
2977
|
if (update.dialogId) record2.dialogId = update.dialogId;
|
|
2885
2978
|
if (typeof update.credits === "number" && Number.isFinite(update.credits)) {
|
|
@@ -2933,7 +3026,7 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
|
|
|
2933
3026
|
};
|
|
2934
3027
|
record2.resultArtifacts = [...(record2.resultArtifacts ?? []).filter((a) => a.path !== path), artifact];
|
|
2935
3028
|
};
|
|
2936
|
-
if (typeof update.lastAssistantText === "string" && update.lastAssistantText || update.acceptance?.checks.observations?.length) {
|
|
3029
|
+
if (typeof update.lastAssistantText === "string" && update.lastAssistantText || update.acceptance?.checks.observations?.length || update.failureReason === "startup_failed" || update.failureReason === "runtime_protocol_mismatch" || update.failureReason === "runtime_version_mismatch") {
|
|
2937
3030
|
try {
|
|
2938
3031
|
const fs = deps.fs ?? nodeFs2;
|
|
2939
3032
|
const resultFile = join2(resolveRunsDir(deps.env, deps.homedir), `${runId}.result.md`);
|
|
@@ -3646,7 +3739,6 @@ export {
|
|
|
3646
3739
|
recordRunResultHeaderMeta,
|
|
3647
3740
|
getRunResultHeaderMeta,
|
|
3648
3741
|
serverOriginForDialog,
|
|
3649
|
-
stripResultFrontMatter,
|
|
3650
3742
|
isHistoryIntegrityFailure,
|
|
3651
3743
|
RUN_TERMINAL_STATUSES,
|
|
3652
3744
|
isRunTerminalStatus,
|
|
@@ -3684,6 +3776,7 @@ export {
|
|
|
3684
3776
|
readRunRecord,
|
|
3685
3777
|
backfillRunRecordParentDialog,
|
|
3686
3778
|
listRunRecords,
|
|
3779
|
+
listRunRecordsAsync,
|
|
3687
3780
|
findRunRecordByPid,
|
|
3688
3781
|
findRunRecord,
|
|
3689
3782
|
DEFAULT_LIST_LIMIT,
|
|
@@ -3701,6 +3794,8 @@ export {
|
|
|
3701
3794
|
awaitLocalWriterChild,
|
|
3702
3795
|
resolveLocalContinuation,
|
|
3703
3796
|
registerLocalForegroundWriter,
|
|
3797
|
+
recordRunStartup,
|
|
3798
|
+
settleBackgroundProcessExit,
|
|
3704
3799
|
spawnLocalBackgroundRun,
|
|
3705
3800
|
ackRunRecord,
|
|
3706
3801
|
DEFAULT_ACK_LEASE_TTL_MS,
|
|
@@ -79,14 +79,17 @@ function mergeWindow(into, win) {
|
|
|
79
79
|
existing.source = win.source;
|
|
80
80
|
}
|
|
81
81
|
function parseQuotaWindowScope(scope) {
|
|
82
|
-
const matched = /^(gemini|3p)-(.+)$/.exec(scope);
|
|
82
|
+
const matched = /^(gemini|3p|hydrogen|argon)-(.+)$/.exec(scope);
|
|
83
83
|
return matched ? { family: matched[1], period: matched[2] } : { period: scope };
|
|
84
84
|
}
|
|
85
85
|
function resolveQuotaWindowFamily(model) {
|
|
86
86
|
if (typeof model !== "string" || !model.trim()) return void 0;
|
|
87
|
+
if (/(?:^|[/-])gemini-[^/]*hydrogen(?:-|$)/i.test(model)) return "hydrogen";
|
|
88
|
+
if (/(?:^|[/-])gemini-[^/]*argon(?:-|$)/i.test(model)) return "argon";
|
|
87
89
|
return /gemini/i.test(model) ? "gemini" : "3p";
|
|
88
90
|
}
|
|
89
|
-
function isQuotaWindowRelevantToFamily(scope, family) {
|
|
91
|
+
function isQuotaWindowRelevantToFamily(scope, family, source) {
|
|
92
|
+
if (scope === "gemini-5h" && source?.endsWith(":fetchAvailableModels")) return false;
|
|
90
93
|
if (typeof scope !== "string") return true;
|
|
91
94
|
const scopeFamily = parseQuotaWindowScope(scope).family;
|
|
92
95
|
return scopeFamily === void 0 || family === void 0 || scopeFamily === family;
|
|
@@ -95,7 +98,7 @@ function selectQuotaWindowsForModel(quota, now, model) {
|
|
|
95
98
|
if (!quota || !Array.isArray(quota.windows)) return [];
|
|
96
99
|
const family = resolveQuotaWindowFamily(model);
|
|
97
100
|
return quota.windows.filter(
|
|
98
|
-
(window) => !isQuotaWindowExpired(window, now) && isQuotaWindowRelevantToFamily(window?.scope, family)
|
|
101
|
+
(window) => !isQuotaWindowExpired(window, now) && isQuotaWindowRelevantToFamily(window?.scope, family, window?.source)
|
|
99
102
|
);
|
|
100
103
|
}
|
|
101
104
|
function isQuotaWindowExpired(window, now) {
|
|
@@ -373,7 +376,7 @@ function shouldClearCooldownFromQuota(entry, quota, now, options) {
|
|
|
373
376
|
if (!quota || !(quota.observedAt > entry.markedAt)) return false;
|
|
374
377
|
const family = resolveQuotaWindowFamily(options?.model);
|
|
375
378
|
const relevantWindows = quota.windows.filter(
|
|
376
|
-
(window) => isQuotaWindowRelevantToFamily(window.scope, family)
|
|
379
|
+
(window) => isQuotaWindowRelevantToFamily(window.scope, family, window.source)
|
|
377
380
|
);
|
|
378
381
|
const subscriptionWindows = relevantWindows.filter(isSubscriptionPeriodWindow);
|
|
379
382
|
if (subscriptionWindows.length === 0) return false;
|
|
@@ -409,7 +412,7 @@ function resolveAgentAvailability(agent, now = Date.now()) {
|
|
|
409
412
|
const hasObservedAt = Boolean(quota) && typeof quota?.observedAt === "number" && Number.isFinite(quota.observedAt);
|
|
410
413
|
const family = resolveQuotaWindowFamily(agent?.model);
|
|
411
414
|
const relevantWindows = (quota?.windows ?? []).filter(
|
|
412
|
-
(window) => isQuotaWindowRelevantToFamily(window?.scope, family)
|
|
415
|
+
(window) => isQuotaWindowRelevantToFamily(window?.scope, family, window?.source)
|
|
413
416
|
);
|
|
414
417
|
const hasWindows = relevantWindows.length > 0;
|
|
415
418
|
const hasValidQuota = isAdmissible && hasWindows;
|
|
@@ -647,6 +650,7 @@ function resolveCredentialCandidateKeys(key) {
|
|
|
647
650
|
if (!key) return [];
|
|
648
651
|
const trimmed = key.trim();
|
|
649
652
|
if (!trimmed) return [];
|
|
653
|
+
if (/\|quota:(?:gemini|3p|hydrogen|argon)$/.test(trimmed)) return [trimmed];
|
|
650
654
|
const candidates = [trimmed];
|
|
651
655
|
const atIndex = trimmed.lastIndexOf("@");
|
|
652
656
|
if (atIndex > 0) {
|
|
@@ -677,7 +681,21 @@ function resolveCredentialKey(agent) {
|
|
|
677
681
|
function resolveCredentialKeyWithFallback(agent) {
|
|
678
682
|
if (isPublicOrSystemAgentRecord(agent)) return void 0;
|
|
679
683
|
const byRef = resolveCredentialKey(agent);
|
|
680
|
-
if (byRef)
|
|
684
|
+
if (byRef) {
|
|
685
|
+
const ref = byRef.split("@")[0]?.trim().toLowerCase();
|
|
686
|
+
const provider = agent?.provider;
|
|
687
|
+
let cloudCode = false;
|
|
688
|
+
try {
|
|
689
|
+
const host = new URL(String(agent?.customProviderUrl ?? "")).hostname;
|
|
690
|
+
cloudCode = /^(?:daily-|daily-sandbox-)?cloudcode-pa\.googleapis\.com$/.test(host);
|
|
691
|
+
} catch {
|
|
692
|
+
}
|
|
693
|
+
if (ref === "antigravity" || ref === "gemini" || provider === "google-antigravity" || cloudCode) {
|
|
694
|
+
const family = resolveQuotaWindowFamily(typeof agent?.model === "string" ? agent.model : void 0);
|
|
695
|
+
if (family) return `${byRef}|quota:${family}`;
|
|
696
|
+
}
|
|
697
|
+
return byRef;
|
|
698
|
+
}
|
|
681
699
|
if (!agent || typeof agent !== "object") return void 0;
|
|
682
700
|
const endpoint = agent.customProviderUrl;
|
|
683
701
|
if (typeof endpoint === "string") {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZUL4CUO.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelContextWindow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L32W3PRP.js";
|
|
7
7
|
import {
|
|
8
8
|
BUILTIN_NOLO_AGENT_KEY
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ILHQ2AXT.js";
|
|
10
10
|
import {
|
|
11
11
|
isPageKey,
|
|
12
12
|
isTableMetaKey
|
|
@@ -493,13 +493,6 @@ function resolveTruncatedReasoningTailLog(reason, reasoning_content) {
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
export {
|
|
496
|
-
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
497
|
-
resolveAutoExecutionProfile,
|
|
498
|
-
ATTACHMENT_PART_TYPE,
|
|
499
|
-
ATTACHMENT_PART_VERSION,
|
|
500
|
-
normalizeAttachmentPart,
|
|
501
|
-
attachmentKind,
|
|
502
|
-
describeAttachmentForModel,
|
|
503
496
|
isCodexOAuthAgent,
|
|
504
497
|
resolveCodexOAuthEffectiveModel,
|
|
505
498
|
CODEX_OAUTH_CATALOG_TTL_MS,
|
|
@@ -511,6 +504,13 @@ export {
|
|
|
511
504
|
codexOAuthCatalogWindow,
|
|
512
505
|
devinChannelContextWindow,
|
|
513
506
|
resolveAgentContextWindow,
|
|
507
|
+
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
508
|
+
resolveAutoExecutionProfile,
|
|
509
|
+
ATTACHMENT_PART_TYPE,
|
|
510
|
+
ATTACHMENT_PART_VERSION,
|
|
511
|
+
normalizeAttachmentPart,
|
|
512
|
+
attachmentKind,
|
|
513
|
+
describeAttachmentForModel,
|
|
514
514
|
asOptionalJsonRecord,
|
|
515
515
|
extractReferenceKeysFromMessage,
|
|
516
516
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
4
4
|
isAccountOnDemandWorkflowSkill,
|
|
5
5
|
resolveUserEnabledSkills
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RBPUNSG5.js";
|
|
7
7
|
import {
|
|
8
8
|
collectAgentSkillConfigIssues,
|
|
9
9
|
describeAgentSkillModeValue,
|
|
10
10
|
isAgentSkillDisabled,
|
|
11
11
|
resolveAgentSkillConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FJSNBZXR.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveBuiltinSkillEntry,
|
|
15
15
|
resolveBuiltinSkillPage,
|
|
16
16
|
resolveSkillGraphFromRoots
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-G7IUT2V3.js";
|
|
18
18
|
import {
|
|
19
19
|
parseSkillDocProtocol
|
|
20
20
|
} from "./chunk-W6RFEDN4.js";
|
|
@@ -61,7 +61,12 @@ var buildAgentSkillPreferenceDiagnostic = (input) => {
|
|
|
61
61
|
};
|
|
62
62
|
var DIAGNOSTIC_PREFIX = "[nolo.skill.diagnostics] ";
|
|
63
63
|
var seenSignatures = /* @__PURE__ */ new Set();
|
|
64
|
+
function skillDiagnosticsEnabled(env = process.env) {
|
|
65
|
+
const flag = env.NOLO_SKILL_DIAGNOSTICS?.trim();
|
|
66
|
+
return flag === "1" || flag === "true";
|
|
67
|
+
}
|
|
64
68
|
var reportAgentSkillPreferenceDiagnostic = (diagnostic, sink) => {
|
|
69
|
+
if (!sink && !skillDiagnosticsEnabled()) return false;
|
|
65
70
|
const signature = JSON.stringify(diagnostic);
|
|
66
71
|
if (seenSignatures.has(signature)) return false;
|
|
67
72
|
seenSignatures.add(signature);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
getAllServers,
|
|
14
14
|
getIsDesktopApp
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4N6G2CKP.js";
|
|
16
16
|
import {
|
|
17
17
|
selectIdentityToken,
|
|
18
18
|
selectIdentityUser,
|
|
@@ -21,12 +21,6 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
isTombstoneRecord
|
|
23
23
|
} from "./chunk-BV3FLP2L.js";
|
|
24
|
-
import {
|
|
25
|
-
asTrimmedString
|
|
26
|
-
} from "./chunk-3EUW3WEO.js";
|
|
27
|
-
import {
|
|
28
|
-
isRecord
|
|
29
|
-
} from "./chunk-KUG52IAP.js";
|
|
30
24
|
import {
|
|
31
25
|
asOptionalPositiveFiniteNumber
|
|
32
26
|
} from "./chunk-U6VC4MU4.js";
|
|
@@ -34,6 +28,12 @@ import {
|
|
|
34
28
|
SERVERS,
|
|
35
29
|
normalizeKnownServerOrigin
|
|
36
30
|
} from "./chunk-LCBAMY2M.js";
|
|
31
|
+
import {
|
|
32
|
+
asTrimmedString
|
|
33
|
+
} from "./chunk-3EUW3WEO.js";
|
|
34
|
+
import {
|
|
35
|
+
isRecord
|
|
36
|
+
} from "./chunk-KUG52IAP.js";
|
|
37
37
|
import {
|
|
38
38
|
asOptionalTrimmedString
|
|
39
39
|
} from "./chunk-G3SUCT4W.js";
|