nolo-cli 0.228.0 → 0.228.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
- package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
- package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
- package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
- package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
- package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
- package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
- package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
- package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
- package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
- package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
- package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
- package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
- package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
- package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
- package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
- package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
- package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
- package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
- package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
- package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
- package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
- package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
- package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
- package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
- package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
- package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
- package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
- package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
- package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
- package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
- package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
- package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
- package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
- package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
- package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
- package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
- package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
- package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
- package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
- package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
- package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
- package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
- package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
- package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
- package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
- package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
- package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
- package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
- package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
- package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
- package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
- package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
- package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
- package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
- package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
- package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
- package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
- package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
- package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
- package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
- package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
- package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
- package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
- package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
- package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
- package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
- package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
- package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
- package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
- package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
- package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
- package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
- package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
- package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
- package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
- package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
- package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
- package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +2 -1
- package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
- package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
- package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
- package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
- package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
- package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
- package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
- package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
- package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
- package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
- package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/chunk-U5LOKQ2R.js +0 -176
- package/chunk-YDRRGVT5.js +0 -142
- package/chunk-YGDYYFRX.js +0 -86
- package/chunk-Z7KE4K3H.js +0 -758
- package/lib-62SWPXNF.js +0 -21042
- /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
|
@@ -1,133 +1,3 @@
|
|
|
1
|
-
// packages/cli/client/cliExitSync.ts
|
|
2
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
-
var scopes = new AsyncLocalStorage();
|
|
4
|
-
var KNOWN_SYNC_FAILURE_CODES = /* @__PURE__ */ new Set([
|
|
5
|
-
"owner_mismatch",
|
|
6
|
-
"owner_origin_mismatch",
|
|
7
|
-
"owner_grant_revoked",
|
|
8
|
-
"owner_oauth_unavailable",
|
|
9
|
-
"invalid_grant",
|
|
10
|
-
"auth_no_token",
|
|
11
|
-
"token_expired",
|
|
12
|
-
"user_batch_authority_controlled",
|
|
13
|
-
"tombstone_conflict"
|
|
14
|
-
]);
|
|
15
|
-
var SYNC_FAILURE_CODE_RE = /"(?:code|error|reason)"\s*:\s*"([A-Za-z0-9_.:-]{1,48})"/;
|
|
16
|
-
function classifyDialogSyncFailure(error) {
|
|
17
|
-
if (error instanceof Error && error.name === "AbortError") return "aborted";
|
|
18
|
-
if (error instanceof Error && error.name === "TimeoutError") return "timeout";
|
|
19
|
-
const match = error instanceof Error ? /^remote dialog evidence write failed: HTTP (\d{3})\b([\s\S]*)$/.exec(error.message) : null;
|
|
20
|
-
if (!match) return "transport_or_sync";
|
|
21
|
-
const candidate = SYNC_FAILURE_CODE_RE.exec(match[2] ?? "")?.[1]?.toLowerCase();
|
|
22
|
-
const code = candidate && KNOWN_SYNC_FAILURE_CODES.has(candidate) ? candidate : void 0;
|
|
23
|
-
return code ? `http_${match[1]}(${code})` : `http_${match[1]}`;
|
|
24
|
-
}
|
|
25
|
-
function startOwnedDialogSync(fetchImpl, start) {
|
|
26
|
-
const scope = scopes.getStore();
|
|
27
|
-
if (!scope) return start(fetchImpl);
|
|
28
|
-
if (scope.closed) return Promise.reject(new Error("dialog_sync_scope_closed"));
|
|
29
|
-
const entry = { watermark: scope.entries.length + 1, httpOkRecords: 0, controller: new AbortController(), state: "pending", done: Promise.resolve() };
|
|
30
|
-
scope.entries.push(entry);
|
|
31
|
-
const trackedFetch = async (url, init) => {
|
|
32
|
-
entry.controller.signal.throwIfAborted();
|
|
33
|
-
const signal = init?.signal ? AbortSignal.any([init.signal, entry.controller.signal]) : entry.controller.signal;
|
|
34
|
-
const response = await fetchImpl(url, { ...init, signal });
|
|
35
|
-
signal.throwIfAborted();
|
|
36
|
-
if (response.ok && String(url).includes("/api/v1/db/write/")) entry.httpOkRecords++;
|
|
37
|
-
return response;
|
|
38
|
-
};
|
|
39
|
-
entry.done = Promise.resolve().then(() => start(trackedFetch)).then((result) => {
|
|
40
|
-
if (entry.state === "pending") entry.state = "completed";
|
|
41
|
-
return result;
|
|
42
|
-
}, (error) => {
|
|
43
|
-
if (entry.state === "pending") {
|
|
44
|
-
entry.state = "failed";
|
|
45
|
-
entry.failureClass = classifyDialogSyncFailure(error);
|
|
46
|
-
}
|
|
47
|
-
throw error;
|
|
48
|
-
});
|
|
49
|
-
void entry.done.catch(() => {
|
|
50
|
-
});
|
|
51
|
-
return entry.done;
|
|
52
|
-
}
|
|
53
|
-
function drain(scope, unsafeRunner = false) {
|
|
54
|
-
if (scope.drain) return scope.drain;
|
|
55
|
-
scope.closed = true;
|
|
56
|
-
scope.drain = (async () => {
|
|
57
|
-
const entries = scope.entries.slice();
|
|
58
|
-
let timer;
|
|
59
|
-
const abortPending = (classification) => {
|
|
60
|
-
for (const entry of entries) if (entry.state === "pending") {
|
|
61
|
-
entry.state = "timeout";
|
|
62
|
-
entry.failureClass = classification;
|
|
63
|
-
entry.controller.abort(new Error("dialog_sync_drain_stopped"));
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
try {
|
|
67
|
-
if (unsafeRunner) abortPending("runner_not_stopped");
|
|
68
|
-
else if (entries.length) await Promise.race([
|
|
69
|
-
Promise.allSettled(entries.map((entry) => entry.done)),
|
|
70
|
-
new Promise((resolve) => {
|
|
71
|
-
timer = setTimeout(() => {
|
|
72
|
-
abortPending("timeout");
|
|
73
|
-
resolve();
|
|
74
|
-
}, scope.timeoutMs);
|
|
75
|
-
})
|
|
76
|
-
]);
|
|
77
|
-
} finally {
|
|
78
|
-
if (timer) clearTimeout(timer);
|
|
79
|
-
}
|
|
80
|
-
const failed = entries.filter((entry) => entry.state !== "completed");
|
|
81
|
-
for (const entry of failed) scope.output.write(`[nolo] dialog_sync ${entry.state}: watermark=${entry.watermark} httpOkRecords=${entry.httpOkRecords} class=${entry.failureClass ?? entry.state}; local history retained; remote sync incomplete.
|
|
82
|
-
`);
|
|
83
|
-
return failed.length === 0;
|
|
84
|
-
})();
|
|
85
|
-
return scope.drain;
|
|
86
|
-
}
|
|
87
|
-
function exitCliFromWatchdog(code, exit, stopRunner) {
|
|
88
|
-
const scope = scopes.getStore();
|
|
89
|
-
if (!scope) {
|
|
90
|
-
exit(code);
|
|
91
|
-
return Promise.resolve();
|
|
92
|
-
}
|
|
93
|
-
if (scope.watchdogExit) return scope.watchdogExit;
|
|
94
|
-
scope.closed = true;
|
|
95
|
-
scope.watchdogExit = (async () => {
|
|
96
|
-
let stopped = false;
|
|
97
|
-
try {
|
|
98
|
-
stopped = await stopRunner();
|
|
99
|
-
} catch {
|
|
100
|
-
}
|
|
101
|
-
if (!stopped) scope.output.write("[nolo] dialog_sync failed: class=runner_not_stopped; cancelling pending sync before hard exit.\n");
|
|
102
|
-
const complete = await drain(scope, !stopped);
|
|
103
|
-
exit(code === 0 || !complete ? 1 : code);
|
|
104
|
-
})();
|
|
105
|
-
return scope.watchdogExit;
|
|
106
|
-
}
|
|
107
|
-
async function runCliCommandWithSyncDrain(command, options) {
|
|
108
|
-
const timeoutMs = Number.isFinite(options.timeoutMs) && (options.timeoutMs ?? 0) > 0 ? options.timeoutMs : 15e3;
|
|
109
|
-
await scopes.run({ entries: [], closed: false, output: options.output, timeoutMs }, async () => {
|
|
110
|
-
const scope = scopes.getStore();
|
|
111
|
-
let code = 70;
|
|
112
|
-
let commandError;
|
|
113
|
-
let commandThrew = false;
|
|
114
|
-
try {
|
|
115
|
-
code = await command();
|
|
116
|
-
} catch (error) {
|
|
117
|
-
commandThrew = true;
|
|
118
|
-
commandError = error;
|
|
119
|
-
}
|
|
120
|
-
if (scope.watchdogExit) {
|
|
121
|
-
await scope.watchdogExit;
|
|
122
|
-
if (commandThrew) throw commandError;
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
const complete = await drain(scope);
|
|
126
|
-
if (commandThrew) throw commandError;
|
|
127
|
-
await options.exit(code === 0 && !complete ? 1 : code);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
|
|
131
1
|
// packages/cli/diagnostics/normalizeError.ts
|
|
132
2
|
var MAX_CAUSE_DEPTH = 4;
|
|
133
3
|
var MAX_AGGREGATE_ERRORS = 8;
|
|
@@ -904,10 +774,6 @@ function getLogger(component) {
|
|
|
904
774
|
}
|
|
905
775
|
|
|
906
776
|
export {
|
|
907
|
-
classifyDialogSyncFailure,
|
|
908
|
-
startOwnedDialogSync,
|
|
909
|
-
exitCliFromWatchdog,
|
|
910
|
-
runCliCommandWithSyncDrain,
|
|
911
777
|
normalizeError,
|
|
912
778
|
getProcessRingBuffer,
|
|
913
779
|
resolveDefaultLogPath,
|
|
@@ -243,7 +243,7 @@ var sessionStrings = {
|
|
|
243
243
|
" /compact Compact current dialog and fork a new one",
|
|
244
244
|
" /context Show workspace context and next actions",
|
|
245
245
|
" /credits Show session usage and platform credits (/credits debug for diagnostics)",
|
|
246
|
-
" /tools
|
|
246
|
+
" /tools [last] Show individual tool results (session, or latest turn)",
|
|
247
247
|
" /cd <path> Change the working directory (takes effect on the next turn)",
|
|
248
248
|
" /runtime <mode> Use auto, local, or server runtime",
|
|
249
249
|
" /agents Pick an agent interactively (/agents <name> to switch, list, builtin)",
|
|
@@ -288,7 +288,7 @@ var sessionStrings = {
|
|
|
288
288
|
" /compact \u538B\u7F29\u5F53\u524D\u5BF9\u8BDD\u5E76\u5206\u53C9\u51FA\u65B0\u5BF9\u8BDD",
|
|
289
289
|
" /context \u67E5\u770B\u5DE5\u4F5C\u533A\u4E0A\u4E0B\u6587\u4E0E\u540E\u7EED\u64CD\u4F5C",
|
|
290
290
|
" /credits \u67E5\u770B\u672C\u6B21\u4F1A\u8BDD\u7528\u91CF\u4E0E\u5E73\u53F0\u79EF\u5206\uFF08/credits debug \u67E5\u770B\u94FE\u8DEF\u8BCA\u65AD\uFF09",
|
|
291
|
-
" /tools
|
|
291
|
+
" /tools [last] \u5C55\u5F00\u9010\u6761\u5DE5\u5177\u8BE6\u60C5\uFF08\u5168\u90E8\u4F1A\u8BDD\u8BB0\u5F55\uFF0C\u6216\u6700\u8FD1\u4E00\u8F6E\uFF09",
|
|
292
292
|
" /cd <path> \u5207\u6362\u5DE5\u4F5C\u76EE\u5F55\uFF08\u4E0B\u4E2A turn \u751F\u6548\uFF09",
|
|
293
293
|
" /runtime <mode> \u5207\u6362 runtime\uFF1Aauto\u3001local\u3001server",
|
|
294
294
|
" /agents \u4EA4\u4E92\u5F0F\u9009\u62E9\u667A\u80FD\u4F53\uFF08/agents <name> \u76F4\u63A5\u5207\u6362\uFF0Clist \u5217\u8868\uFF0Cbuiltin \u5185\u7F6E\uFF09",
|
|
@@ -467,6 +467,22 @@ var toolStrings = {
|
|
|
467
467
|
en: "[nolo] Tool execution location: unknown",
|
|
468
468
|
zh: "[nolo] \u5DE5\u5177\u6267\u884C\u4F4D\u7F6E\uFF1A\u672A\u77E5"
|
|
469
469
|
},
|
|
470
|
+
runGroupHeader: {
|
|
471
|
+
en: "{0} commands (\u2713 {0}{1})",
|
|
472
|
+
zh: "\u8FDE\u7EED\u6267\u884C {0} \u6761\u547D\u4EE4\uFF08\u2713 {0}{1}\uFF09"
|
|
473
|
+
},
|
|
474
|
+
runGroupCollapsed: {
|
|
475
|
+
en: "{0} earlier collapsed (/tools for details)",
|
|
476
|
+
zh: "\u5DF2\u6298\u53E0\u524D {0} \u6761\uFF08/tools \u67E5\u770B\u5B8C\u6574\u547D\u4EE4\uFF09"
|
|
477
|
+
},
|
|
478
|
+
runGroupFinal: {
|
|
479
|
+
en: "{0} commands (\u2713 {0}{1} \xB7 /tools for details)",
|
|
480
|
+
zh: "\u672C\u8F6E\u6267\u884C {0} \u6761\u547D\u4EE4\uFF08\u2713 {0}{1} \xB7 /tools \u67E5\u770B\u8BE6\u60C5\uFF09"
|
|
481
|
+
},
|
|
482
|
+
runGroupTiming: {
|
|
483
|
+
en: ", {0}",
|
|
484
|
+
zh: "\uFF0C\u8017\u65F6 {0}"
|
|
485
|
+
},
|
|
470
486
|
exploreSummary: {
|
|
471
487
|
en: "Explored {0} \xB7 {1}",
|
|
472
488
|
zh: "\u5DF2\u63A2\u67E5 {0} \u9879 \xB7 {1}"
|
|
@@ -1779,6 +1795,23 @@ Options:
|
|
|
1779
1795
|
|
|
1780
1796
|
// packages/cli/i18n/strings/cliSurface.ts
|
|
1781
1797
|
var cliSurfaceStrings = {
|
|
1798
|
+
hostApprovalCancel: { en: "Cancel", zh: "\u53D6\u6D88" },
|
|
1799
|
+
hostApprovalAllowOnce: { en: "Allow once", zh: "\u4EC5\u5141\u8BB8\u4E00\u6B21" },
|
|
1800
|
+
hostApprovalKeys: {
|
|
1801
|
+
en: "Empty input only \xB7 \u2191/\u2193 move \xB7 Enter confirm \xB7 1/2 choose \xB7 Esc cancel",
|
|
1802
|
+
zh: "\u8F93\u5165\u4E3A\u7A7A\u65F6\u53EF\u64CD\u4F5C \xB7 \u2191/\u2193 \u79FB\u52A8 \xB7 Enter \u786E\u8BA4 \xB7 1/2 \u5FEB\u9009 \xB7 Esc \u53D6\u6D88"
|
|
1803
|
+
},
|
|
1804
|
+
hostApprovalMcpHeading: {
|
|
1805
|
+
en: "Call a read tool (callMcpTool)",
|
|
1806
|
+
zh: "\u8C03\u7528\u4E00\u4E2A\u53EA\u8BFB\u5DE5\u5177\uFF08callMcpTool\uFF09"
|
|
1807
|
+
},
|
|
1808
|
+
hostApprovalMcpImpact: {
|
|
1809
|
+
en: "A connected service will receive the shown arguments.",
|
|
1810
|
+
zh: "\u4E00\u4E2A\u5DF2\u8FDE\u63A5\u7684\u670D\u52A1\u4F1A\u6536\u5230\u4E0A\u9762\u663E\u793A\u7684\u53C2\u6570\u3002"
|
|
1811
|
+
},
|
|
1812
|
+
hostApprovalUnknownTool: { en: "Unknown tool", zh: "\u672A\u77E5\u5DE5\u5177" },
|
|
1813
|
+
hostApprovalConfirmHint: { en: "Enter confirms", zh: "Enter \u786E\u8BA4" },
|
|
1814
|
+
hostApprovalUnknownScope: { en: "Unknown scope", zh: "\u672A\u77E5\u8303\u56F4" },
|
|
1782
1815
|
"cliHelpTitle": {
|
|
1783
1816
|
"en": "nolo \u2014 Agent-first terminal workspace",
|
|
1784
1817
|
"zh": "nolo \u2014 \u4EE5 Agent \u4E3A\u6838\u5FC3\u7684\u7EC8\u7AEF\u5DE5\u4F5C\u7A7A\u95F4"
|
|
@@ -2935,6 +2968,8 @@ var TOOL_FAMILY_OVERRIDES = {
|
|
|
2935
2968
|
readPage: TOOL_FAMILIES.read,
|
|
2936
2969
|
readArtifact: TOOL_FAMILIES.read,
|
|
2937
2970
|
writeFile: TOOL_FAMILIES.write,
|
|
2971
|
+
materializeWorkspaceFile: TOOL_FAMILIES.write,
|
|
2972
|
+
commitSandboxArtifact: TOOL_FAMILIES.write,
|
|
2938
2973
|
editFile: TOOL_FAMILIES.write,
|
|
2939
2974
|
createDoc: TOOL_FAMILIES.write,
|
|
2940
2975
|
updateDoc: TOOL_FAMILIES.write,
|
|
@@ -2954,9 +2989,8 @@ var TOOL_FAMILY_OVERRIDES = {
|
|
|
2954
2989
|
notifyUser: TOOL_FAMILIES.interaction,
|
|
2955
2990
|
captureVisualState: TOOL_FAMILIES.capture,
|
|
2956
2991
|
loadSkill: TOOL_FAMILIES.skill,
|
|
2957
|
-
//
|
|
2958
|
-
//
|
|
2959
|
-
wereadGateway: TOOL_FAMILIES.read,
|
|
2992
|
+
// 名字不切出已知系列词的工具(`toolquery`):它是工具查询,属于读取族;
|
|
2993
|
+
// 精确钉住以免退到兜底 🔧。
|
|
2960
2994
|
toolquery: TOOL_FAMILIES.read
|
|
2961
2995
|
};
|
|
2962
2996
|
function toolNameWords(name) {
|
|
@@ -3011,14 +3045,14 @@ var TOOL_FAMILY_RULES = [
|
|
|
3011
3045
|
{ id: "delete", family: TOOL_FAMILIES.delete, test: startsWithWord("delete", "remove") },
|
|
3012
3046
|
// 写入类:write* / edit* / apply* / create* / update* / import* / export* / convert* / translate*
|
|
3013
3047
|
{ id: "write", family: TOOL_FAMILIES.write, test: startsWithWord("write", "edit", "apply", "create", "update", "import", "export", "convert", "translate") },
|
|
3014
|
-
// 读取/查询类:read* / query*(含
|
|
3048
|
+
// 读取/查询类:read* / query*(含 toolquery 这类带 query/read 的名字)
|
|
3015
3049
|
{ id: "read", family: TOOL_FAMILIES.read, test: hasWord("read", "query") },
|
|
3016
3050
|
// 列表类:list*(空间、对话、用户空间)
|
|
3017
3051
|
{ id: "list", family: TOOL_FAMILIES.list, test: startsWithWord("list") },
|
|
3018
3052
|
// 搜索类:search_workspace / search_all_spaces / searchDialogMessages …
|
|
3019
3053
|
{ id: "search", family: TOOL_FAMILIES.search, test: hasWord("search") },
|
|
3020
|
-
// 抓取类:fetchWebpage
|
|
3021
|
-
{ id: "fetch", family: TOOL_FAMILIES.fetch, test: startsWithWord("fetch"
|
|
3054
|
+
// 抓取类:fetchWebpage
|
|
3055
|
+
{ id: "fetch", family: TOOL_FAMILIES.fetch, test: startsWithWord("fetch") },
|
|
3022
3056
|
// 执行类:exec_shell / executeSql(shell 与本地诊断命令)
|
|
3023
3057
|
{ id: "run", family: TOOL_FAMILIES.run, test: startsWithWord("exec", "execute", "run") }
|
|
3024
3058
|
];
|
|
@@ -3141,6 +3175,10 @@ var COMMAND_DESCRIPTIONS = {
|
|
|
3141
3175
|
en: "Create or update the Marxists.org offline book agent",
|
|
3142
3176
|
zh: "\u521B\u5EFA\u6216\u66F4\u65B0 Marxists.org \u79BB\u7EBF\u56FE\u4E66\u667A\u80FD\u4F53"
|
|
3143
3177
|
},
|
|
3178
|
+
"agent setup-ebook-downloader": {
|
|
3179
|
+
en: "Create or update the ebook downloader agent",
|
|
3180
|
+
zh: "\u521B\u5EFA\u6216\u66F4\u65B0\u7535\u5B50\u4E66\u4E0B\u8F7D\u667A\u80FD\u4F53"
|
|
3181
|
+
},
|
|
3144
3182
|
"agent update": {
|
|
3145
3183
|
en: "Update agent fields",
|
|
3146
3184
|
zh: "\u66F4\u65B0\u667A\u80FD\u4F53\u5B57\u6BB5"
|
|
@@ -3502,13 +3540,9 @@ var COMMAND_DESCRIPTIONS = {
|
|
|
3502
3540
|
en: "Evaluate JS in a tab, user-approved per call (--tab <id> --expr <js> [--await] [--timeout-ms N]) (Compatibility alias of `nolo browser eval`)",
|
|
3503
3541
|
zh: "\u5728\u6807\u7B7E\u9875\u4E2D\u6267\u884C JS\uFF0C\u6BCF\u6B21\u8C03\u7528\u9700\u7528\u6237\u6279\u51C6\uFF08--tab <id> --expr <js> [--await] [--timeout-ms N]\uFF09\uFF08`nolo browser eval` \u7684\u517C\u5BB9\u522B\u540D\uFF09"
|
|
3504
3542
|
},
|
|
3505
|
-
"
|
|
3506
|
-
en: "
|
|
3507
|
-
zh: "\
|
|
3508
|
-
},
|
|
3509
|
-
"ci status": {
|
|
3510
|
-
en: "Show recent nolo-ci deploy jobs (alpha / main)",
|
|
3511
|
-
zh: "\u67E5\u770B\u6700\u8FD1\u7684 nolo-ci \u90E8\u7F72\u4EFB\u52A1\uFF08alpha / main\uFF09"
|
|
3543
|
+
"dialog trace": {
|
|
3544
|
+
en: "Trace one dialog: messages, token usage and subagent runs (--json)",
|
|
3545
|
+
zh: "\u8FFD\u8E2A\u5355\u4E2A\u5BF9\u8BDD\uFF1A\u6D88\u606F\u3001token \u7528\u91CF\u4E0E\u5B50\u4EE3\u7406\u8FD0\u884C\u8BB0\u5F55\uFF08--json\uFF09"
|
|
3512
3546
|
},
|
|
3513
3547
|
"dialog usage": {
|
|
3514
3548
|
en: "Show dialog tokens, recorded duration and speed by basis",
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
slateToRenderMarkdown
|
|
3
|
+
} from "./chunk-63W5N6P3.js";
|
|
4
4
|
import {
|
|
5
5
|
buildSkillSummaryMarker
|
|
6
6
|
} from "./chunk-VF4K2QE6.js";
|
|
7
|
+
import {
|
|
8
|
+
markdownToSlate
|
|
9
|
+
} from "./chunk-PHREU2KZ.js";
|
|
7
10
|
import {
|
|
8
11
|
createEmptyParagraph,
|
|
9
12
|
splitSlateTitleAndBody
|
|
10
13
|
} from "./chunk-AGIM7IMJ.js";
|
|
11
|
-
import {
|
|
12
|
-
slateToRenderMarkdown
|
|
13
|
-
} from "./chunk-63W5N6P3.js";
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
resolveCreationSpaceId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WD5547ZF.js";
|
|
18
18
|
import {
|
|
19
19
|
runtime_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EVHTYVD2.js";
|
|
21
21
|
import {
|
|
22
22
|
getCurrentSpaceId
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YN23INFZ.js";
|
|
24
24
|
import {
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ADYWV732.js";
|
|
27
27
|
import {
|
|
28
28
|
selectIdentityUserId
|
|
29
29
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-X4O7FJF5.js";
|
|
11
11
|
import {
|
|
12
12
|
getModelContextWindow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2FZVXOFX.js";
|
|
14
14
|
import {
|
|
15
15
|
isRecord
|
|
16
16
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isFireworksKimiModel,
|
|
22
22
|
isNoloHostedProvider,
|
|
23
23
|
resolvePlatformEffectiveModel
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JPXACKSW.js";
|
|
25
25
|
import {
|
|
26
26
|
asTrimmedLowercaseString
|
|
27
27
|
} from "./chunk-QSJ3HFEF.js";
|