nolo-cli 0.227.0-alpha.1 → 0.228.0-alpha.2
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-JKQGZ3HU.js → _executeModel-VYCHHZVT.js} +78 -77
- package/{action-CK64LS6S.js → action-GDZDXPMB.js} +9 -9
- package/{addContentAction-CARFID6E.js → addContentAction-7RO4AMRI.js} +14 -14
- package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-EVYBGTXB.js} +16 -16
- package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-QWQKT54A.js} +116 -115
- package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-EISMBIRE.js} +119 -118
- package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
- package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
- package/{agentListCommands-C65UESYM.js → agentListCommands-4WLG32IW.js} +79 -470
- package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-DC6NKWTU.js} +59 -57
- package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-STI3DQ6A.js} +7 -7
- package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-KHV4EELF.js} +6 -6
- package/{agentRecordCommands-6RCJS2EY.js → agentRecordCommands-IZYUVHME.js} +107 -106
- package/{agentRunCommand-P3GRKXKS.js → agentRunCommand-QM7ETUTX.js} +113 -112
- package/{agentRunControl-SNZZ5XP4.js → agentRunControl-MBG4U6SL.js} +23 -17
- package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-HOXKWCYO.js} +46 -45
- package/{agentSlice-N7H2FRJA.js → agentSlice-UG76KEBH.js} +17 -17
- package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-WWCC6WA5.js} +54 -52
- package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-AU4IUN33.js} +54 -52
- package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-STUW7WXL.js} +54 -52
- package/{appGetCommands-NAKVDVD4.js → appGetCommands-BGTLIQ4K.js} +54 -52
- package/{appListCommands-KL56RN73.js → appListCommands-CUCPRUXW.js} +54 -52
- package/{authCommand-AUN5MXV2.js → authCommand-OZ2KTP4Z.js} +30 -31
- package/{authCommands-D2IPS6ES.js → authCommands-55OGQGCR.js} +12 -13
- package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
- package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-WAA45NCS.js} +8 -8
- package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
- package/{chunk-UN7HIYMH.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-CVERLOJM.js → chunk-3QIYD3VM.js} +639 -513
- package/{chunk-RU6DULV4.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-IAJJYHIB.js → chunk-3VZLEKV2.js} +7 -7
- package/{chunk-JWXITTQB.js → chunk-42OKN2LI.js} +1 -1
- package/{chunk-UAPNPNSG.js → chunk-45CAVC35.js} +1072 -859
- package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
- package/{chunk-SW6OD4KE.js → chunk-4QYJPWHH.js} +123 -12
- package/{chunk-PLPLH2XZ.js → chunk-4ZGPHFLE.js} +2 -2
- package/{chunk-NO3VBWTL.js → chunk-547ENH5T.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-5YMA6DDZ.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-XZODOEKU.js → chunk-6QHKRARD.js} +2 -2
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-PVAWNHP5.js → chunk-7BCG67EI.js} +295 -102
- package/{chunk-VZW34YUL.js → chunk-7FEP5USX.js} +8 -5
- package/{chunk-VPAZ6BEN.js → chunk-7JGMNKKG.js} +18 -14
- package/{chunk-5HL4KC4A.js → chunk-ALAES342.js} +57 -86
- package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-UCFPVYP7.js → chunk-BP5ZJ6B4.js} +1 -1
- package/{chunk-2G3YSVO6.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-KYH7XW3K.js → chunk-CD3RU7XL.js} +16 -1
- package/{chunk-SFTTXGPM.js → chunk-CMMI3DAT.js} +16 -16
- package/{chunk-VIHDJ3FK.js → chunk-CNMY2XM6.js} +14 -14
- package/{chunk-UVUVQVZ6.js → chunk-DBUR22G5.js} +2 -2
- package/{chunk-G6HJUMST.js → chunk-DEA37IUY.js} +2 -2
- package/{chunk-5RKRXQ2H.js → chunk-DGYCDA6W.js} +2 -2
- package/{chunk-FKEZOMIF.js → chunk-DLXMMTGM.js} +523 -202
- package/{chunk-3HTP4WZQ.js → chunk-DUUDXSLX.js} +21 -7
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-TOKPHZ55.js → chunk-EEOOBRA7.js} +5 -5
- package/{chunk-ZI5SZ3MV.js → chunk-EGHP7KOY.js} +20 -20
- package/{chunk-OXA5GWHU.js → chunk-F6Z6ZCUV.js} +2 -2
- package/{chunk-X2KRQP7V.js → chunk-FJSNBZXR.js} +1 -1
- package/{chunk-3VFYQH3I.js → chunk-FPBJM2BW.js} +17 -39
- package/{chunk-KRRE4A7D.js → chunk-G7IUT2V3.js} +3 -2
- package/{chunk-LXTC53TN.js → chunk-GAYNXB6T.js} +184 -153
- package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
- package/{chunk-GRXSJR2Z.js → chunk-HF7BLF3F.js} +21 -21
- package/{chunk-T5N6NHAT.js → chunk-HHFGE2WF.js} +3 -3
- package/{chunk-IX2BXN2K.js → chunk-HSSBDZLD.js} +3 -3
- package/{chunk-TINJKQSO.js → chunk-HXB4VDGK.js} +20 -20
- package/{chunk-MWHOH4RJ.js → chunk-HYLRQDEE.js} +4 -4
- package/{chunk-L5I543VB.js → chunk-JQZRSXS5.js} +23 -23
- package/{chunk-T2BEPTAG.js → chunk-L32W3PRP.js} +47 -17
- package/{chunk-LA7JYAKF.js → chunk-LYD6C7OU.js} +3 -3
- package/{chunk-PHOSZT3E.js → chunk-M3OZRQNH.js} +1 -1
- package/{chunk-M3Y4IBIR.js → chunk-M4SFKP5L.js} +4 -4
- package/{chunk-7Z3WUZ4Q.js → chunk-MJI3UAXN.js} +52 -28
- package/{chunk-YOT437BH.js → chunk-MNEZUL5S.js} +137 -118
- package/{chunk-GOLPOTG5.js → chunk-MZG5CETE.js} +3 -3
- package/{chunk-KJAAPGBE.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-CLCXHIBS.js → chunk-OJ45MEEI.js} +1 -1
- package/{chunk-AXYH4734.js → chunk-OOJNQK6V.js} +13 -13
- package/{chunk-2SKTCNWO.js → chunk-OTKSESZR.js} +2 -2
- package/{chunk-XIEYGCN6.js → chunk-OWKNSIXL.js} +149 -48
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-YQETUZ5V.js → chunk-QRGDJA4B.js} +11 -11
- package/{chunk-ULAQPRHX.js → chunk-QYB23WUH.js} +1 -1
- package/{chunk-CSW7IPVD.js → chunk-R6Z5S5GA.js} +11 -11
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-GUVXQSFZ.js → chunk-RBPUNSG5.js} +1 -1
- package/{chunk-GOQ6ZVTN.js → chunk-RG2DGNL6.js} +3 -3
- package/{chunk-F5AY2UZL.js → chunk-RRDRQOEC.js} +515 -9
- package/{chunk-6EDAMVG6.js → chunk-RTHFJZ6M.js} +10 -10
- package/{chunk-WJP4TH6U.js → chunk-S6FDXXZV.js} +1 -1
- package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
- package/{chunk-KMRKZNGT.js → chunk-TCZ2VJZQ.js} +13 -12
- package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
- package/{chunk-5LQDHFBN.js → chunk-TQEKUOTI.js} +14 -11
- package/{chunk-SRG5CNLC.js → chunk-TSPMLCWI.js} +6 -6
- package/{chunk-YGILMZ7N.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-YPPKC6FL.js → chunk-U2HBB7RS.js} +17 -17
- package/{chunk-HVUDBOQG.js → chunk-VMJVAJ6W.js} +9 -6
- package/{chunk-CQVGR3MX.js → chunk-VQ5N5GSV.js} +8 -8
- package/{chunk-ABGULE7H.js → chunk-WCFFRBL5.js} +12 -12
- package/{chunk-NAOO4PVX.js → chunk-WFDNADFX.js} +16 -16
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-JHF6VLVL.js → chunk-X3E6EHJW.js} +32 -31
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-C2B7M567.js → chunk-XAG3FWBE.js} +15 -4
- package/{chunk-4OKTPFNX.js → chunk-XFXFPUO7.js} +105 -37
- package/{chunk-HYKGIXNO.js → chunk-XSW4EXQV.js} +85 -21
- package/{chunk-ZADGPNTV.js → chunk-XTJKU3Z4.js} +29 -29
- package/{chunk-T43K75CK.js → chunk-YKY4OVOX.js} +15 -15
- package/{chunk-ZYA2YDB6.js → chunk-YVFH2MFB.js} +16 -16
- package/{chunk-L42CBKBZ.js → chunk-ZEVQHCLM.js} +3 -3
- package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
- package/chunk-ZOHO6MOF.js +376 -0
- package/{chunk-PXKF5CV4.js → chunk-ZXF6D3I6.js} +10 -8
- package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-BTRHMPW2.js} +14 -14
- package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-SPKAJYME.js → cliLocalAgentRecordReader-H3HYQRRR.js} +48 -47
- package/{commandRegistry-TKR6OWXP.js → commandRegistry-FVYPE2IN.js} +93 -93
- package/{contentThunks-BQWRPCTM.js → contentThunks-GNFPG32S.js} +36 -35
- package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-YB5H5BBK.js} +3 -3
- package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-PB4QIFQ4.js} +36 -35
- package/{createDialogAction-MMBIHFFU.js → createDialogAction-EVTOPY7A.js} +37 -37
- package/{createPageAction-EEYUE5FB.js → createPageAction-2UYF2IDZ.js} +39 -38
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-X4Z4E4QU.js → dbSlice-XRUZOGSU.js} +13 -13
- package/{deleteFile-QOOP2UK7.js → deleteFile-6URDHYRB.js} +9 -9
- package/{dialogCommands-OXBQ73DD.js → dialogCommands-6SZD4TYP.js} +58 -57
- package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-SHGPCU22.js} +17 -17
- package/{dialogSlice-KGYIABDY.js → dialogSlice-5EQ2A6LY.js} +34 -33
- package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-W2WCSGKF.js} +6 -6
- package/{docCreateCommands-LS32VKY3.js → docCreateCommands-25E6PGN3.js} +53 -51
- package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-F7ZVGEHW.js} +55 -53
- package/{docReadCommands-E5LTVKWN.js → docReadCommands-JY2E5XEN.js} +53 -51
- package/{docStore-TVS2FNER.js → docStore-OKKIKLT3.js} +15 -15
- package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-OZ4CUSIQ.js} +53 -51
- package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
- package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +6 -6
- package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-LNT7SZND.js} +68 -67
- package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-XUU2CSHI.js} +107 -106
- package/index.js +54 -16
- package/keys-RWF7UCB4.js +1 -1
- package/{localDialogRead-V36DX2Q2.js → localDialogRead-CCOCVGAP.js} +2 -2
- package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-IBSTMSX7.js} +114 -113
- package/{machineCommands-3LROJZDK.js → machineCommands-HSQHDHOT.js} +135 -119
- package/{machineWsRunDispatch-BUUJRUUB.js → machineWsRunDispatch-L6H7J66T.js} +105 -104
- package/{memberThunks-CFEPHAND.js → memberThunks-7Y3OYSJQ.js} +17 -17
- package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
- package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-3X54XFVN.js → projectArchive-FQO654Z3.js} +44 -43
- package/{providerPresetApply-FO36N5TX.js → providerPresetApply-WHAMP2D5.js} +9 -9
- package/{providerRegistry-U2BSFE6K.js → providerRegistry-ZI2KORJ7.js} +9 -9
- package/{read-KA3L2V7O.js → read-TYMBGEXO.js} +9 -9
- package/{readDocTool-AMAZAPAW.js → readDocTool-SKQVHBLO.js} +1 -1
- package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-7U272DSA.js} +4398 -4165
- package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-F5QE2O2B.js} +19 -19
- package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-AF4JQIJ7.js} +72 -71
- package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-RRKPBGVO.js} +16 -16
- package/{secretCommands-GGUAWAE7.js → secretCommands-KZWBZIYS.js} +2 -2
- package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-72L27ERM.js} +15 -15
- package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +19 -19
- package/{settingThunks-E6N7RSSS.js → settingThunks-ZRGWVGZD.js} +18 -18
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-BHHPCUHZ.js} +3 -3
- package/{spaceCommands-DB5DKC2J.js → spaceCommands-5VNWMDBE.js} +55 -53
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-YSPEFY4K.js} +97 -95
- package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-IIJBPND3.js} +16 -16
- package/{tableCommands-VNSXHAMG.js → tableCommands-FTAOCBTX.js} +12 -12
- package/{tools-6JD36D6K.js → tools-M35PTIFB.js} +61 -60
- package/tuiRestart-2IL37YIB.js +41 -0
- package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-W2QN4VAC.js} +21 -21
- package/{updateCommands-KZ54HCU5.js → updateCommands-CPATDG6J.js} +8 -6
- package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-IMIRJRQQ.js} +36 -35
- package/{usageCommand-KFVV6UL3.js → usageCommand-2BF74MKF.js} +2 -2
- package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-UHB55BQM.js} +3 -3
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-PMDVQBGA.js +0 -100
- package/chunk-WACI5I6V.js +0 -147
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
- package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
- package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
- package/{chunk-IC2I373Q.js → chunk-VS276URX.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
- package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isPidGone
|
|
3
|
+
} from "./chunk-OWKNSIXL.js";
|
|
4
|
+
|
|
5
|
+
// packages/cli/tui/tuiRestart.ts
|
|
6
|
+
import { realpathSync } from "node:fs";
|
|
7
|
+
import { isAbsolute, resolve } from "node:path";
|
|
8
|
+
function getRestartBlocker(state, checks) {
|
|
9
|
+
if (!checks.supported) return "\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u539F\u5730\u91CD\u542F\u3002";
|
|
10
|
+
if (checks.activeProcesses || checks.activeRuns) return "\u540E\u53F0\u4EFB\u52A1\u4ECD\u5728\u8FD0\u884C\u6216\u72B6\u6001\u672A\u786E\u8BA4\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u7B49\u5F85\u4EFB\u52A1\u7ED3\u675F\u3002";
|
|
11
|
+
if (state.attachedImages.length || state.attachedDocs.length || state.attachedSkills.length || state.pendingCwdNotice || state.pendingTranscripts?.length || state.pendingChildRunNotices?.length || state.pendingProcessNotices?.length) {
|
|
12
|
+
return "\u6709\u672A\u53D1\u9001\u9644\u4EF6\u6216\u5F85\u5904\u7406\u901A\u77E5\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u5148\u5904\u7406\u3002";
|
|
13
|
+
}
|
|
14
|
+
return void 0;
|
|
15
|
+
}
|
|
16
|
+
function buildRestartEnv(env, state) {
|
|
17
|
+
return {
|
|
18
|
+
...env,
|
|
19
|
+
// Override the startup snapshot, including an empty value after revocation.
|
|
20
|
+
// Omitting the key would let the next process inherit stale grants.
|
|
21
|
+
NOLO_PERMISSION_GRANTS: ["local", "remote"].filter((bucket) => state.permissionGrants?.[bucket] === true).join(","),
|
|
22
|
+
NOLO_CWD: state.cwd,
|
|
23
|
+
NOLO_AGENT: state.agentKey,
|
|
24
|
+
NOLO_AGENT_NAME: state.agentName,
|
|
25
|
+
NOLO_SERVER: state.serverUrl,
|
|
26
|
+
NOLO_RUNTIME_MODE: state.runtimeMode,
|
|
27
|
+
NOLO_DIALOG_ID: state.dialogId ?? "",
|
|
28
|
+
NOLO_DIALOG_KEY: state.dialogKey ?? "",
|
|
29
|
+
NOLO_DIALOG: state.dialogLabel,
|
|
30
|
+
NOLO_TUI_RESTART: "1"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function hasRestartBlockingRuns(records, pidGone = isPidGone) {
|
|
34
|
+
return records.some((run) => run.status === "running" && (typeof run.pid !== "number" || run.pid <= 0 || !pidGone(run.pid)));
|
|
35
|
+
}
|
|
36
|
+
function buildRestartArgv(args) {
|
|
37
|
+
return args.compiled ? [args.executable, "tui"] : [args.executable, ...args.execArgv, args.entrypoint, "tui"];
|
|
38
|
+
}
|
|
39
|
+
function replaceTuiProcess(executable, argv, env, execve = process.execve) {
|
|
40
|
+
try {
|
|
41
|
+
execve(executable, argv, env);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
throw new Error(`\u539F\u5730\u91CD\u542F\u5931\u8D25\uFF1B\u672A\u542F\u52A8\u65B0\u8FDB\u7A0B\u3002\u5BF9\u8BDD ${env.NOLO_DIALOG_ID || "(new)"}\uFF1Bcwd ${env.NOLO_CWD}\uFF1B${String(error)}`, { cause: error });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function captureRestartExecutable(executable, invocation, lookup = (name) => Bun.which(name), realpath = realpathSync) {
|
|
47
|
+
const candidate = isAbsolute(invocation) ? invocation : invocation.includes("/") ? resolve(invocation) : lookup(invocation);
|
|
48
|
+
try {
|
|
49
|
+
if (candidate && realpath(candidate) === realpath(executable)) return candidate;
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
return executable;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
getRestartBlocker,
|
|
57
|
+
buildRestartEnv,
|
|
58
|
+
hasRestartBlockingRuns,
|
|
59
|
+
buildRestartArgv,
|
|
60
|
+
replaceTuiProcess,
|
|
61
|
+
captureRestartExecutable
|
|
62
|
+
};
|
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-TYMBGEXO.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolvePlatformAuthToken
|
|
3
|
-
} from "./chunk-6EDAMVG6.js";
|
|
4
1
|
import {
|
|
5
2
|
getCredentialsDir
|
|
6
3
|
} from "./chunk-G7Y4GXTY.js";
|
|
4
|
+
import {
|
|
5
|
+
resolvePlatformAuthToken
|
|
6
|
+
} from "./chunk-RTHFJZ6M.js";
|
|
7
7
|
|
|
8
8
|
// packages/cli/client/authGuidance.ts
|
|
9
9
|
import { readdirSync } from "node:fs";
|
|
@@ -3027,6 +3027,15 @@ function getCachedOpenRouterModelReasoning(modelId) {
|
|
|
3027
3027
|
var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
|
|
3028
3028
|
var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
|
|
3029
3029
|
var MODEL_REASONING_OVERRIDES = [
|
|
3030
|
+
// Platform GPT models accept medium even though the nolo provider fallback
|
|
3031
|
+
// describes DeepSeek's narrower low/high/max scale.
|
|
3032
|
+
...["gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
|
|
3033
|
+
providers: ["openai"],
|
|
3034
|
+
prefix,
|
|
3035
|
+
exact: true,
|
|
3036
|
+
efforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
3037
|
+
note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
|
|
3038
|
+
})),
|
|
3030
3039
|
// ---- OpenAI ----
|
|
3031
3040
|
{
|
|
3032
3041
|
providers: ["openai"],
|
|
@@ -3228,6 +3237,8 @@ function resolveModelReasoningCapabilityWithCache(provider, model) {
|
|
|
3228
3237
|
// packages/ai/llm/reasoningModels.ts
|
|
3229
3238
|
var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
3230
3239
|
"deepseek-flash",
|
|
3240
|
+
"deepseek-v4-flash",
|
|
3241
|
+
"deepseek-v4.1-flash",
|
|
3231
3242
|
"deepseek-v4-pro",
|
|
3232
3243
|
"gemini-3.7-flash",
|
|
3233
3244
|
"gemini-3.8-flash",
|
|
@@ -3266,7 +3277,10 @@ var isModelSupportReasoningEffort = (model, provider) => {
|
|
|
3266
3277
|
if (provider && provider.toLowerCase() === "openrouter") {
|
|
3267
3278
|
return true;
|
|
3268
3279
|
}
|
|
3269
|
-
|
|
3280
|
+
const p = provider?.toLowerCase();
|
|
3281
|
+
const base = model.toLowerCase().split("/").pop() ?? "";
|
|
3282
|
+
const deepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(base);
|
|
3283
|
+
return REASONING_MODEL_NAMES.has(model) || deepseekFlash && ["commandcode", "opendesign", "ollama-cloud", "lithosai"].includes(p ?? "");
|
|
3270
3284
|
};
|
|
3271
3285
|
var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
|
|
3272
3286
|
var EFFORT_ORDER = [
|
|
@@ -3612,6 +3626,7 @@ export {
|
|
|
3612
3626
|
commandCodeModels,
|
|
3613
3627
|
opencodeGoModels,
|
|
3614
3628
|
DEFAULT_REASONING_EFFORT,
|
|
3629
|
+
resolveModelReasoningCapability,
|
|
3615
3630
|
resolveModelReasoningCapabilityWithCache,
|
|
3616
3631
|
isModelSupportReasoningEffort,
|
|
3617
3632
|
clampReasoningEffort,
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
isMediaFile,
|
|
3
3
|
resolveFileCategory
|
|
4
4
|
} from "./chunk-3PVYUPXK.js";
|
|
5
|
-
import {
|
|
6
|
-
loadFileFromIndexedDb,
|
|
7
|
-
removeAction,
|
|
8
|
-
saveFileToIndexedDb
|
|
9
|
-
} from "./chunk-PLPLH2XZ.js";
|
|
10
5
|
import {
|
|
11
6
|
readAction,
|
|
12
7
|
readRequestManager,
|
|
13
8
|
resolveAgentReadServers
|
|
14
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DGYCDA6W.js";
|
|
10
|
+
import {
|
|
11
|
+
loadFileFromIndexedDb,
|
|
12
|
+
removeAction,
|
|
13
|
+
saveFileToIndexedDb
|
|
14
|
+
} from "./chunk-4ZGPHFLE.js";
|
|
15
15
|
import {
|
|
16
16
|
beginWriteAck,
|
|
17
17
|
compareRemoteRecordsByComparableTime,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
shouldReplaceLocalWithRemoteRecord,
|
|
30
30
|
shouldReplicateLocalRecord,
|
|
31
31
|
uploadToCurrentServer
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
33
33
|
import {
|
|
34
34
|
asyncThunkCreator,
|
|
35
35
|
buildCreateSlice,
|
|
@@ -41,16 +41,10 @@ import {
|
|
|
41
41
|
fetchFromServer,
|
|
42
42
|
logger,
|
|
43
43
|
normalizeTimeFields
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-4N6G2CKP.js";
|
|
45
45
|
import {
|
|
46
46
|
isTombstoneRecord
|
|
47
47
|
} from "./chunk-BV3FLP2L.js";
|
|
48
|
-
import {
|
|
49
|
-
isRecord
|
|
50
|
-
} from "./chunk-KUG52IAP.js";
|
|
51
|
-
import {
|
|
52
|
-
API_ENDPOINTS
|
|
53
|
-
} from "./chunk-LCBAMY2M.js";
|
|
54
48
|
import {
|
|
55
49
|
fileKey,
|
|
56
50
|
getFileIdFromKey
|
|
@@ -58,6 +52,12 @@ import {
|
|
|
58
52
|
import {
|
|
59
53
|
ulid
|
|
60
54
|
} from "./chunk-OJKUU3LP.js";
|
|
55
|
+
import {
|
|
56
|
+
API_ENDPOINTS
|
|
57
|
+
} from "./chunk-LCBAMY2M.js";
|
|
58
|
+
import {
|
|
59
|
+
isRecord
|
|
60
|
+
} from "./chunk-KUG52IAP.js";
|
|
61
61
|
|
|
62
62
|
// packages/database/protectedRecordProtocol.ts
|
|
63
63
|
var PROTECTED_RECORD_PROTOCOL_VERSION = 1;
|
|
@@ -1487,7 +1487,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
1487
1487
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
1488
1488
|
read: create.asyncThunk(
|
|
1489
1489
|
async (payload, thunkApi) => {
|
|
1490
|
-
const { readAction: readAction2 } = await import("./read-
|
|
1490
|
+
const { readAction: readAction2 } = await import("./read-TYMBGEXO.js");
|
|
1491
1491
|
return readAction2(payload, thunkApi);
|
|
1492
1492
|
},
|
|
1493
1493
|
{
|
|
@@ -1561,7 +1561,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
1561
1561
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
1562
1562
|
share: create.asyncThunk(
|
|
1563
1563
|
async (config, thunkApi) => {
|
|
1564
|
-
const { shareResourceAction } = await import("./action-
|
|
1564
|
+
const { shareResourceAction } = await import("./action-GDZDXPMB.js");
|
|
1565
1565
|
return shareResourceAction(config, thunkApi);
|
|
1566
1566
|
}
|
|
1567
1567
|
),
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
refreshSubscriptionQuotas
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TUSTONB3.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
6
|
} from "./chunk-YFLVRVYK.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DLXMMTGM.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WWTSEBDF.js";
|
|
13
|
+
import {
|
|
14
|
+
BIGMODEL_PROVIDER_TARGET,
|
|
15
|
+
buildCredentialUseGrant,
|
|
16
|
+
verifyCredentialUseGrant
|
|
17
|
+
} from "./chunk-XFYFMTOM.js";
|
|
13
18
|
import {
|
|
14
19
|
buildCreatedAgentRecord,
|
|
15
20
|
buildUpdatedAgentRecord,
|
|
@@ -20,22 +25,17 @@ import {
|
|
|
20
25
|
resolveAgentRecordFromHybridStore,
|
|
21
26
|
sanitizeAgentRecordForCliOutput,
|
|
22
27
|
writeAgentRecord
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
BIGMODEL_PROVIDER_TARGET,
|
|
26
|
-
buildCredentialUseGrant,
|
|
27
|
-
verifyCredentialUseGrant
|
|
28
|
-
} from "./chunk-XFYFMTOM.js";
|
|
28
|
+
} from "./chunk-TQEKUOTI.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveCliAgentKeyInput
|
|
31
31
|
} from "./chunk-BR3GT6MR.js";
|
|
32
|
-
import {
|
|
33
|
-
toErrorMessage
|
|
34
|
-
} from "./chunk-HNMXYYJR.js";
|
|
35
32
|
import {
|
|
36
33
|
parseUserIdFromAuthToken,
|
|
37
34
|
resolveAuthToken
|
|
38
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BIDSIRTS.js";
|
|
36
|
+
import {
|
|
37
|
+
toErrorMessage
|
|
38
|
+
} from "./chunk-HNMXYYJR.js";
|
|
39
39
|
|
|
40
40
|
// packages/cli/agentRecordCommands.ts
|
|
41
41
|
async function runAgentReadCommand(args, deps = {}) {
|
|
@@ -256,7 +256,7 @@ async function runAgentCreateCommand(args, deps = {}) {
|
|
|
256
256
|
let verifyResult;
|
|
257
257
|
if (parsed.verify) {
|
|
258
258
|
try {
|
|
259
|
-
const { verifyCustomProvider } = await import("./agentProviderCommands-
|
|
259
|
+
const { verifyCustomProvider } = await import("./agentProviderCommands-STI3DQ6A.js");
|
|
260
260
|
const rec = built.nextRecord;
|
|
261
261
|
const verifyCredentialRef = typeof rec.credentialRef === "string" && rec.credentialRef.trim() ? rec.credentialRef.trim() : "";
|
|
262
262
|
if (verifyCredentialRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelPricing
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SRCCSTIM.js";
|
|
4
4
|
import {
|
|
5
5
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
|
|
6
6
|
PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-M2EJHDJP.js";
|
|
24
24
|
import {
|
|
25
25
|
getModelConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CD3RU7XL.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
patch,
|
|
7
7
|
read
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CMMI3DAT.js";
|
|
9
9
|
import {
|
|
10
10
|
DEVICE_LOCAL_OWNER_ID,
|
|
11
11
|
isDeviceLocalSpaceBody
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
13
13
|
import {
|
|
14
14
|
selectIdentityUserId
|
|
15
15
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
scheduleExistingRecordReplication,
|
|
8
8
|
shouldReplaceLocalWithRemoteRecord,
|
|
9
9
|
shouldReplicateLocalRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
11
11
|
import {
|
|
12
12
|
fetchFromClientDb,
|
|
13
13
|
fetchFromServer,
|
|
14
14
|
isReadTimeoutError,
|
|
15
15
|
logger
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4N6G2CKP.js";
|
|
17
17
|
import {
|
|
18
18
|
shouldReplaceWithNextRecord
|
|
19
19
|
} from "./chunk-BV3FLP2L.js";
|