nolo-cli 0.245.0-alpha.1 → 0.247.0-alpha.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-OO6SN7M7.js → _executeModel-GIFVXKDT.js} +35 -35
- package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
- package/{action-R2EIXR7I.js → action-WZTKEF5H.js} +5 -5
- package/{addContentAction-W6JVLQ6H.js → addContentAction-MLI6GOBV.js} +8 -8
- package/{addDialogAgentAction-LVNKMXKZ.js → addDialogAgentAction-ARGQM22H.js} +7 -7
- package/{agentDeleteCommand-NEKF5OEM.js → agentDeleteCommand-MEJNOUQB.js} +53 -53
- package/{agentEmailCommands-4KEJPLEE.js → agentEmailCommands-RBQXQLVY.js} +53 -53
- package/{agentListCommands-GDHBLDRV.js → agentListCommands-U436UABA.js} +15 -15
- package/{agentMachineCommands-NE34FAX6.js → agentMachineCommands-R6WKJ622.js} +11 -11
- package/{agentPullCommand-QQQZSC6S.js → agentPullCommand-4EQZYHU4.js} +1 -1
- package/{agentRecordCommands-CKPX4I7D.js → agentRecordCommands-5MAINXNS.js} +52 -52
- package/{agentRunCommand-H7ZFCCGQ.js → agentRunCommand-DNBAO4PN.js} +52 -52
- package/{agentRunControl-CSMSJFFB.js → agentRunControl-RN2P6AOD.js} +2 -2
- package/{agentRuntimeLocal-J64NEF4X.js → agentRuntimeLocal-4Y47ZSIP.js} +7 -7
- package/{agentSlice-PRSWXIK3.js → agentSlice-ZGMOH6TE.js} +8 -8
- package/{appDeleteCommands-32M4NTHK.js → appDeleteCommands-KTYELLHJ.js} +12 -12
- package/{appDeployCommands-7DSA4N6M.js → appDeployCommands-HH4ZVRIS.js} +12 -12
- package/{appDeployStatusCommands-IPLQKNYA.js → appDeployStatusCommands-KSIDBUL2.js} +12 -12
- package/{appGetCommands-B26E4N3X.js → appGetCommands-N5E5L24Z.js} +12 -12
- package/{appListCommands-MLZPVLGF.js → appListCommands-7QC63Y6R.js} +12 -12
- package/{authCommand-PVZ45QRO.js → authCommand-3C3RN4OU.js} +7 -7
- package/{authCommands-6AUYO65N.js → authCommands-ZMVEDCQD.js} +3 -3
- package/{builtinSkillRegistry-LRVAQCPW.js → builtinSkillRegistry-VRCMQ77Q.js} +1 -1
- package/{chromeCommands-S7AW3AOD.js → chromeCommands-O4IIKTBD.js} +1 -1
- package/{chromeOpsCommands-TBPM6MR4.js → chromeOpsCommands-NZITLHWO.js} +3 -3
- package/{chunk-CUKLAFB3.js → chunk-2BKNICGK.js} +1 -1
- package/{chunk-6R4RGCPD.js → chunk-3DJJ4CFG.js} +4 -4
- package/{chunk-NUUVI2YB.js → chunk-3UPWX4NA.js} +3 -3
- package/{chunk-JVBLTZDJ.js → chunk-45L3GRIE.js} +171 -55
- package/{chunk-QIVE5WJE.js → chunk-4IQN6FWY.js} +1 -1
- package/{chunk-EH52A3UU.js → chunk-6CXQ3YNJ.js} +10 -10
- package/{chunk-TKE4OJ4B.js → chunk-6MTVACLN.js} +90 -12
- package/{chunk-XGWRH3OF.js → chunk-6TVYUQRM.js} +22 -6
- package/{chunk-QOURTDZL.js → chunk-6XVPMGXK.js} +1 -1
- package/{chunk-MEDPR36J.js → chunk-73PZD7JZ.js} +2 -2
- package/{chunk-NRDGAMC3.js → chunk-7IEJYF7U.js} +4 -4
- package/{chunk-JUW5ECKD.js → chunk-ABG4QNBR.js} +371 -49
- package/{chunk-VEVLLBFK.js → chunk-ADOOL3PG.js} +1 -1
- package/{chunk-XKV53E4E.js → chunk-AEZBAFC6.js} +21 -6
- package/{chunk-AVSZ6PBM.js → chunk-ARFCL53U.js} +3 -3
- package/{chunk-MECW2HJG.js → chunk-BAH3BAUZ.js} +4 -4
- package/{chunk-LELADM5Q.js → chunk-BFKJ2RS3.js} +1 -1
- package/{chunk-56O2J2Y4.js → chunk-BVEDT6DM.js} +2 -2
- package/{chunk-IFWXH7LH.js → chunk-CD64YXRB.js} +1 -1
- package/{chunk-EQZZASCD.js → chunk-CIGCTSBF.js} +1 -1
- package/{chunk-6MZMUZVR.js → chunk-CIUZXD5D.js} +2 -2
- package/{chunk-TB5KTLNB.js → chunk-CTIEJRTP.js} +25 -1
- package/{chunk-DLT2DN4M.js → chunk-D25ONVOH.js} +1 -1
- package/{chunk-OGZE6BZG.js → chunk-E5RYFR7E.js} +29 -16
- package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
- package/{chunk-RXTZB2DH.js → chunk-FFFKAOJN.js} +1 -1
- package/{chunk-ZJ3253MU.js → chunk-FTWAOKFU.js} +29 -29
- package/{chunk-YYRCIDK3.js → chunk-HCCQEMTK.js} +9 -9
- package/{chunk-PDAXMBLW.js → chunk-HZDK56EK.js} +7 -7
- package/{chunk-FZIZTODU.js → chunk-IIOSZAJX.js} +2 -2
- package/{chunk-UJUDZCJ7.js → chunk-IJZC2KIJ.js} +1 -1
- package/{chunk-2DWSICJH.js → chunk-ITBX27W6.js} +1 -1
- package/{chunk-R73TPODO.js → chunk-J2VIGDJN.js} +3 -3
- package/{chunk-WHEVIYHU.js → chunk-JEWMQR6J.js} +1 -1
- package/{chunk-KMDHRVS7.js → chunk-JFRJEPFI.js} +2 -2
- package/{chunk-VVCLWOAG.js → chunk-JU7VN4LF.js} +6 -6
- package/{chunk-7E3ZWTRX.js → chunk-K4CHT35N.js} +102 -61
- package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
- package/{chunk-5QX6DBZP.js → chunk-KLAMJNKQ.js} +2 -2
- package/{chunk-JRRDP7EB.js → chunk-KXOPLLFP.js} +16 -0
- package/{chunk-6HNHHRB4.js → chunk-KZ5OD2MO.js} +2 -2
- package/{chunk-JN5FHTGU.js → chunk-LMGFVH65.js} +10 -10
- package/{chunk-76HAJUOJ.js → chunk-MTM4LRVG.js} +2 -2
- package/{chunk-T53F52YF.js → chunk-N74XL3NI.js} +6 -6
- package/{chunk-SF4GMDZO.js → chunk-OAZP4TSA.js} +1 -1
- package/{chunk-DEEYTDV6.js → chunk-ODBYGVO2.js} +4 -4
- package/{chunk-SESKIWB4.js → chunk-OLGFIQN2.js} +1 -1
- package/{chunk-F26GAEH3.js → chunk-OYUMJMC5.js} +5 -0
- package/{chunk-4TVOZGOS.js → chunk-PBPXXMWZ.js} +1 -1
- package/{chunk-2M6XS5HX.js → chunk-QMNVV3YM.js} +8 -8
- package/{chunk-T23G6PXQ.js → chunk-RHBD22LV.js} +1 -1
- package/{chunk-ZTTKOZQV.js → chunk-RR3MB26M.js} +2 -2
- package/{chunk-WBKUBX3E.js → chunk-S4UP27EG.js} +2 -2
- package/{chunk-KC2QVCI7.js → chunk-SPU3L3OR.js} +5 -4
- package/{chunk-QLUYDJST.js → chunk-TMRJGSK2.js} +1 -1
- package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
- package/{chunk-KB5RQRSJ.js → chunk-UF6J7NXV.js} +1 -1
- package/{chunk-6PXFEPHL.js → chunk-UOUMPHS5.js} +5 -5
- package/{chunk-CJQBWHNM.js → chunk-V4IYI3SB.js} +2 -2
- package/{chunk-H67WJ6JL.js → chunk-VKCPKCSS.js} +4 -4
- package/{chunk-2BSLGODA.js → chunk-W6T4FNZP.js} +1 -1
- package/{chunk-FMYNIAI6.js → chunk-WQDTSK5U.js} +2 -2
- package/{chunk-JIT5NMXZ.js → chunk-X22AUZKL.js} +9 -9
- package/{chunk-2IPR4PBB.js → chunk-X3OZ655T.js} +2 -2
- package/{chunk-VX5ABJWX.js → chunk-XCA4WHX5.js} +1 -1
- package/{chunk-LC5CVWP2.js → chunk-XJSEST7D.js} +3 -3
- package/{chunk-NJJK3PDA.js → chunk-XSRSAU3O.js} +3 -3
- package/{chunk-3IAIGS6N.js → chunk-Y4NPF2UN.js} +3 -3
- package/{chunk-JV5FHHF7.js → chunk-YDRRGVT5.js} +1 -1
- package/{chunk-VBKHKUB5.js → chunk-YFW4H6DL.js} +20 -20
- package/{chunk-5PASH2MB.js → chunk-YHNUDTU4.js} +4 -3
- package/{chunk-WBSJAIZP.js → chunk-YJPK35HB.js} +5 -0
- package/{chunk-RGANFHQO.js → chunk-Z7KE4K3H.js} +2 -2
- package/{chunk-5VVP7DW3.js → chunk-ZM5AZTQG.js} +2 -2
- package/{cliLocalAgentRecordReader-VSD6XTZS.js → cliLocalAgentRecordReader-LWMGOH3X.js} +9 -9
- package/{commandRegistry-7QPM63UU.js → commandRegistry-ZZUPMMTU.js} +86 -86
- package/{contentThunks-IOAU2PUW.js → contentThunks-SPXTX5U2.js} +14 -14
- package/{cooldownCommands-QL6DWGVU.js → cooldownCommands-TIFCHCUN.js} +1 -1
- package/{createAgentAutomationAction-BBKHUTSM.js → createAgentAutomationAction-KUQKCOXB.js} +14 -14
- package/{createDialogAction-RBSCOSW3.js → createDialogAction-HJN5U3XS.js} +15 -15
- package/{createPageAction-WYC37RBB.js → createPageAction-ZAHRDOAU.js} +15 -15
- package/{db-6NRZLEW2.js → db-CMUTP3W5.js} +2 -2
- package/{dbSlice-5MQ3ELID.js → dbSlice-656PMWR2.js} +7 -7
- package/{deleteFile-VCCHS72Y.js → deleteFile-ZCQESEEQ.js} +5 -5
- package/{dialogCommands-2BN4RK6W.js → dialogCommands-2JL3C5A3.js} +16 -16
- package/{dialogSlice-G77LC4NX.js → dialogSlice-BXIERQHO.js} +12 -12
- package/{dialogUsageCommand-BZPKR3DW.js → dialogUsageCommand-6RW2FY6K.js} +1 -1
- package/{docCreateCommands-L27KPSIL.js → docCreateCommands-CZOVKJM5.js} +11 -11
- package/{docDeleteCommands-ZD5C5I2W.js → docDeleteCommands-WOVJXKOC.js} +12 -12
- package/{docReadCommands-DKLSJSPU.js → docReadCommands-ZHBKTJLT.js} +11 -11
- package/{docStore-QQMKHKAF.js → docStore-FZ75HWP2.js} +8 -8
- package/{docUpdateCommands-D7DDA2DB.js → docUpdateCommands-UYXQNOU7.js} +11 -11
- package/{handleSendMessageAction-JGXBAJZH.js → handleSendMessageAction-KP6GGBFY.js} +26 -26
- package/{hostCredentialCreate-LNYCVHL7.js → hostCredentialCreate-6UGOSRDR.js} +52 -52
- package/index.js +8 -8
- package/{localDialogRead-3T2KMCRC.js → localDialogRead-CIOTQM5T.js} +1 -1
- package/{localRuntimeAdapter-KQRN4NYX.js → localRuntimeAdapter-R25LKDEH.js} +50 -50
- package/{localRuntimeAuthority-7DKIT7UH.js → localRuntimeAuthority-TYHQCTZN.js} +2 -2
- package/{localRuntimeDb-5WZ4RJJO.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
- package/{machineCommands-DCWRWBG2.js → machineCommands-CNIN7M4X.js} +51 -51
- package/{machineWsRunDispatch-AI5BNSLG.js → machineWsRunDispatch-GLJGQSXX.js} +51 -51
- package/{mcpLocalAuthorizeCommand-DA6DT6B6.js → mcpLocalAuthorizeCommand-TI656UWC.js} +4 -4
- package/{memberThunks-KC3WJGL3.js → memberThunks-JFYC4Z5L.js} +9 -9
- package/package.json +1 -1
- package/{projectArchive-YXYBSSLF.js → projectArchive-NU2Z5HOR.js} +15 -15
- package/{read-T7VU2IMO.js → read-BRZHXUJ6.js} +5 -5
- package/{readDocTool-BPQ3QJSD.js → readDocTool-N7RVFQEE.js} +1 -1
- package/{readlineWorkspace-REGKKDAE.js → readlineWorkspace-RZCJAWF7.js} +586 -216
- package/{removeDialogAgentAction-FEUUVMYC.js → removeDialogAgentAction-J7XU7OUX.js} +9 -9
- package/{runAgentClientLoop-22324RL4.js → runAgentClientLoop-O2GRCGRZ.js} +33 -33
- package/{runtimeDoctorCommands-XQD4MN4I.js → runtimeDoctorCommands-RDRJXMXC.js} +2 -2
- package/{secretCommands-LH7QTJO2.js → secretCommands-2FEMRUFM.js} +2 -2
- package/{setDialogExtraReferencesAction-JSTQJPXL.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +8 -8
- package/{setPrimaryDialogAgentAction-Z2BQE3IY.js → setPrimaryDialogAgentAction-742H5S6T.js} +9 -9
- package/{settingThunks-C2YWCNYI.js → settingThunks-T4FXSV6M.js} +11 -11
- package/{spaceCommands-BRY25UNP.js → spaceCommands-C4UE2TNV.js} +11 -11
- package/{streamAgentChatTurn-AN66RJDM.js → streamAgentChatTurn-OWDJMU5E.js} +36 -36
- package/{switchDialogAgentAction-G7XVAOGH.js → switchDialogAgentAction-HLDLHRRA.js} +7 -7
- package/{tableCommands-UHEA5QNL.js → tableCommands-44GC4N6J.js} +2 -2
- package/{tools-YNGRZIHJ.js → tools-O7SGGVA3.js} +29 -29
- package/{tuiRestart-3J7LRMPR.js → tuiRestart-EOGC2BYY.js} +3 -3
- package/{tuiSummaryLlmCaller-2J6NG53N.js → tuiSummaryLlmCaller-TM5BU73J.js} +2 -2
- package/{updateCommands-5OYND6EF.js → updateCommands-FBYA5WVG.js} +3 -3
- package/{updateDialogTitleAction-N53JXNKY.js → updateDialogTitleAction-EXSZGTLL.js} +14 -14
- package/{usageCommand-SK7JTEPC.js → usageCommand-L4OFWXEU.js} +2 -2
- package/{usageRebuildCommand-DF3HUP6F.js → usageRebuildCommand-7JR33UHS.js} +2 -2
- package/{windowsSelfUpdate-HIYNL3VR.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-S25VJYXV.js";
|
|
6
6
|
import {
|
|
7
7
|
findPowerShellExecutable
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CTIEJRTP.js";
|
|
9
9
|
import {
|
|
10
10
|
AUTH_ERROR_PATTERNS
|
|
11
11
|
} from "./chunk-EWQ3HGNZ.js";
|
|
@@ -2781,10 +2781,13 @@ function releaseUnspawnedLocalWriterClaim(runId, deps) {
|
|
|
2781
2781
|
}, { strict: true });
|
|
2782
2782
|
if (!released) throw new Error(`[local-writer-resource] release lock busy: ${runId}`);
|
|
2783
2783
|
}
|
|
2784
|
+
var startupPhaseOrder = { spawn: 0, initializing: 1, protocol_validated: 2, model: 3 };
|
|
2784
2785
|
async function recordRunStartup(runId, phase, deps = {}) {
|
|
2785
2786
|
const attempt = () => withRunRecordLock(runId, deps, () => {
|
|
2786
2787
|
const record = readRunRecord(runId, deps);
|
|
2787
2788
|
if (!record || isRunTerminalStatus(record.status)) return true;
|
|
2789
|
+
if (record.pid != null && record.pid !== process.pid) return true;
|
|
2790
|
+
if (record.startup && startupPhaseOrder[record.startup.phase] >= startupPhaseOrder[phase]) return true;
|
|
2788
2791
|
record.startup = { protocol: AGENT_RUN_PROTOCOL, phase };
|
|
2789
2792
|
writeRunRecord(record, deps);
|
|
2790
2793
|
return true;
|
|
@@ -3201,6 +3204,9 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
|
|
|
3201
3204
|
const settled = withRunRecordLock(runId, deps, () => {
|
|
3202
3205
|
const record2 = readRunRecord(runId, deps);
|
|
3203
3206
|
if (!record2) return { kind: "not_found" };
|
|
3207
|
+
if (options.expectedPid != null && record2.pid != null && record2.pid !== options.expectedPid) {
|
|
3208
|
+
return { kind: "kept", record: record2 };
|
|
3209
|
+
}
|
|
3204
3210
|
const orphanCorrection = options.allowOverOrphaned === true && record2.status === "orphaned" && (update.status === "done" || update.status === "failed");
|
|
3205
3211
|
if (isAgentRunTerminalStatus(record2.status) && !orphanCorrection) {
|
|
3206
3212
|
if (update.processExit) {
|
|
@@ -3349,8 +3355,11 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
|
|
|
3349
3355
|
}
|
|
3350
3356
|
var AUTHORITATIVE_SETTLE_MAX_ATTEMPTS = 4;
|
|
3351
3357
|
var AUTHORITATIVE_SETTLE_RETRY_DELAY_MS = 15;
|
|
3352
|
-
async function settleRunTerminalAuthoritatively(runId, update, deps = {}, transition = transitionRunToTerminal) {
|
|
3353
|
-
const attempt = () => transition(runId, update, deps, {
|
|
3358
|
+
async function settleRunTerminalAuthoritatively(runId, update, deps = {}, transition = transitionRunToTerminal, options = {}) {
|
|
3359
|
+
const attempt = () => transition(runId, update, deps, {
|
|
3360
|
+
allowOverOrphaned: true,
|
|
3361
|
+
...options.expectedPid != null ? { expectedPid: options.expectedPid } : {}
|
|
3362
|
+
});
|
|
3354
3363
|
let result = attempt();
|
|
3355
3364
|
for (let attemptNo = 1; result?.kind === "contended" && attemptNo < AUTHORITATIVE_SETTLE_MAX_ATTEMPTS; attemptNo += 1) {
|
|
3356
3365
|
await (deps.sleep ?? defaultSleep)(AUTHORITATIVE_SETTLE_RETRY_DELAY_MS);
|
|
@@ -3361,9 +3370,15 @@ async function settleRunTerminalAuthoritatively(runId, update, deps = {}, transi
|
|
|
3361
3370
|
`[nolo] authoritative settlement for run ${runId} lost the record lock ${AUTHORITATIVE_SETTLE_MAX_ATTEMPTS} times; durable record still ${result.record.status} \u2014 terminal status pending reconcile, child outcome (exitCode/dialogId/credits/DoD) may be lost`
|
|
3362
3371
|
);
|
|
3363
3372
|
} else if (result?.kind === "kept" && result.record.status !== update.status) {
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3373
|
+
if (options.expectedPid != null && result.record.pid != null && result.record.pid !== options.expectedPid) {
|
|
3374
|
+
console.warn(
|
|
3375
|
+
`[nolo] run ${runId} belongs to PID ${result.record.pid}, not ${options.expectedPid}; keeping the durable record (${result.record.status}) over intended ${update.status}`
|
|
3376
|
+
);
|
|
3377
|
+
} else {
|
|
3378
|
+
console.warn(
|
|
3379
|
+
`[nolo] run ${runId} already terminal (${result.record.status}); keeping the durable outcome over intended ${update.status}`
|
|
3380
|
+
);
|
|
3381
|
+
}
|
|
3367
3382
|
}
|
|
3368
3383
|
return result ?? { kind: "not_found" };
|
|
3369
3384
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
patch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HZDK56EK.js";
|
|
4
4
|
import {
|
|
5
5
|
selectCurrentServer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MTM4LRVG.js";
|
|
7
7
|
import {
|
|
8
8
|
getIsDesktopApp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YHNUDTU4.js";
|
|
10
10
|
import {
|
|
11
11
|
selectIdentityToken
|
|
12
12
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SPU3L3OR.js";
|
|
4
4
|
import {
|
|
5
5
|
generateCloudflareEmailRoutingToken,
|
|
6
6
|
parseFlagWithOptionalValue,
|
|
7
7
|
runCloudflareOAuthLogin,
|
|
8
8
|
upsertEnvVariable
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UF6J7NXV.js";
|
|
10
10
|
import {
|
|
11
11
|
ANTHROPIC_OAUTH_AUTHORIZE_URL,
|
|
12
12
|
ANTHROPIC_OAUTH_CALLBACK_PORT,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
startCallbackServer,
|
|
51
51
|
validateXAIEndpoint,
|
|
52
52
|
xaiOAuthDiscovery
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6TVYUQRM.js";
|
|
54
54
|
import {
|
|
55
55
|
extractGoogleValidationLink
|
|
56
56
|
} from "./chunk-BMQ2MJUK.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-R5GO3YZP.js";
|
|
75
75
|
import {
|
|
76
76
|
t
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-E5RYFR7E.js";
|
|
78
78
|
import {
|
|
79
79
|
toErrorMessage
|
|
80
80
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
17
|
-
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-
|
|
17
|
+
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-TYHQCTZN.js");
|
|
18
18
|
return getAuthorityBackedDb(options);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-YNIYE47Z.js";
|
|
37
37
|
import {
|
|
38
38
|
getDefaultCliLocalRuntimeDb
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BFKJ2RS3.js";
|
|
40
40
|
import {
|
|
41
41
|
createTokenStatsKey
|
|
42
42
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11658
11658
|
const output = deps.output ?? process.stdout;
|
|
11659
11659
|
const errorOutput = deps.errorOutput ?? process.stderr;
|
|
11660
11660
|
if (args[0] === "rebuild") {
|
|
11661
|
-
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-
|
|
11661
|
+
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-7JR33UHS.js");
|
|
11662
11662
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
11663
11663
|
}
|
|
11664
11664
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -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-BRZHXUJ6.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`);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
buildLocalAgentLookupKeys,
|
|
6
6
|
shouldReadAgentKeyRemotely
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IJZC2KIJ.js";
|
|
8
8
|
import {
|
|
9
9
|
createHostCredentialBrokerChain,
|
|
10
10
|
createStrictHostCredentialBroker
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
formatInvalidAgentSkillModeMessage,
|
|
15
15
|
formatInvalidAgentSkillModesFieldMessage,
|
|
16
16
|
isAgentSkillModesFieldShapeValid
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YDRRGVT5.js";
|
|
18
18
|
import {
|
|
19
19
|
buildAgentApiKeyCredentialRef,
|
|
20
20
|
migrateAgentSecrets
|
|
@@ -1106,6 +1106,29 @@ var shellChildEnvironment = new AsyncLocalStorage();
|
|
|
1106
1106
|
function withShellChildEnvironment(env, run) {
|
|
1107
1107
|
return shellChildEnvironment.run(env, run);
|
|
1108
1108
|
}
|
|
1109
|
+
var STRIPPED_WORKSPACE_CHILD_ENV_KEYS = [
|
|
1110
|
+
"NOLO_AGENT_RUN_ID",
|
|
1111
|
+
"NOLO_AGENT_RUN_PROTOCOL",
|
|
1112
|
+
"NOLO_AGENT_RUN_CONTENT_IDENTITY",
|
|
1113
|
+
"NOLO_WRITER_LAUNCH_ATTEMPT"
|
|
1114
|
+
];
|
|
1115
|
+
var STRIPPED_WORKSPACE_CHILD_ENV_UPPER = new Set(STRIPPED_WORKSPACE_CHILD_ENV_KEYS);
|
|
1116
|
+
function workspaceChildEnv(env = process.env, platform = process.platform) {
|
|
1117
|
+
const child = { ...env };
|
|
1118
|
+
if (platform === "win32") {
|
|
1119
|
+
const asciiUpper = (value) => value.replace(/[a-z]/g, (ch) => ch.toUpperCase());
|
|
1120
|
+
for (const key of Object.keys(child)) {
|
|
1121
|
+
if (STRIPPED_WORKSPACE_CHILD_ENV_UPPER.has(asciiUpper(key))) {
|
|
1122
|
+
delete child[key];
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
} else {
|
|
1126
|
+
for (const key of STRIPPED_WORKSPACE_CHILD_ENV_KEYS) {
|
|
1127
|
+
delete child[key];
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return child;
|
|
1131
|
+
}
|
|
1109
1132
|
var EXEC_SHELL_TIMEOUT_ENV = "NOLO_EXEC_SHELL_TIMEOUT_MS";
|
|
1110
1133
|
var EXEC_SHELL_DETACH_ENV = "NOLO_EXEC_SHELL_DETACH_MS";
|
|
1111
1134
|
var DEFAULT_EXEC_SHELL_DETACH_MS = 12e4;
|
|
@@ -1767,7 +1790,7 @@ async function runWorkspaceCommand(args) {
|
|
|
1767
1790
|
const spawnedAt = Date.now();
|
|
1768
1791
|
const proc = spawnChildProcess(command[0] ?? "", command.slice(1), {
|
|
1769
1792
|
cwd: resolve2(args.workspaceRoot),
|
|
1770
|
-
env: { ...process.env, ...shellChildEnvironment.getStore() },
|
|
1793
|
+
env: workspaceChildEnv({ ...process.env, ...shellChildEnvironment.getStore() }),
|
|
1771
1794
|
stdio: [
|
|
1772
1795
|
args.stdin === void 0 ? "ignore" : "pipe",
|
|
1773
1796
|
"pipe",
|
|
@@ -2098,6 +2121,7 @@ export {
|
|
|
2098
2121
|
getProcessRegistry,
|
|
2099
2122
|
buildProcessTaskResultCapsule,
|
|
2100
2123
|
withShellChildEnvironment,
|
|
2124
|
+
workspaceChildEnv,
|
|
2101
2125
|
extractActivity,
|
|
2102
2126
|
findPowerShellExecutable,
|
|
2103
2127
|
buildWorkspaceShellPlan,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-BO7IVWAZ.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -2493,8 +2493,15 @@ var commonStrings = {
|
|
|
2493
2493
|
zh: "\u672C\u4F1A\u8BDD\u8FD8\u6CA1\u6709\u51FA\u73B0\u94FE\u63A5\u3002"
|
|
2494
2494
|
},
|
|
2495
2495
|
conversationLinksCopyHint: {
|
|
2496
|
-
en: "
|
|
2497
|
-
zh: "\
|
|
2496
|
+
en: "Ctrl + left-click a URL to open it in your browser. If that doesn't work, select and copy the full URL into your browser.",
|
|
2497
|
+
zh: "\u6309\u4F4F Ctrl \u518D\u5DE6\u952E\u70B9\u51FB\u5730\u5740\uFF0C\u5373\u53EF\u7528\u6D4F\u89C8\u5668\u6253\u5F00\u3002\u5982\u679C\u6CA1\u53CD\u5E94\uFF0C\u9009\u4E2D\u5E76\u590D\u5236\u5B8C\u6574\u5730\u5740\uFF0C\u518D\u7C98\u8D34\u5230\u6D4F\u89C8\u5668\u3002"
|
|
2498
|
+
},
|
|
2499
|
+
// 直写输出通道(管道/脚本,以及任何不进 transcript 的瞬时输出)没有
|
|
2500
|
+
// Ctrl+左键(只命中 transcript 历史可见行),也没有 TUI 内置选区复制
|
|
2501
|
+
// (鼠标跟踪开着,原生拖选不保证可用),所以这里不承诺快捷键。
|
|
2502
|
+
conversationLinksCopyHintPipe: {
|
|
2503
|
+
en: "To open one, copy its full URL into your browser's address bar.",
|
|
2504
|
+
zh: "\u6253\u5F00\u65B9\u5F0F\uFF1A\u590D\u5236\u5B8C\u6574\u5730\u5740\uFF0C\u7C98\u8D34\u5230\u6D4F\u89C8\u5668\u5730\u5740\u680F\u3002"
|
|
2498
2505
|
},
|
|
2499
2506
|
conversationLinksShowing: {
|
|
2500
2507
|
en: "Links in this conversation (showing first {0} of {1}):",
|
|
@@ -2835,6 +2842,7 @@ function t(key, ...params) {
|
|
|
2835
2842
|
var TOOL_LABELS = {
|
|
2836
2843
|
// Local workspace tools (packages/agent-runtime/localWorkspaceTools.ts)
|
|
2837
2844
|
readFile: { en: "Read", zh: "\u8BFB\u53D6" },
|
|
2845
|
+
read_image: { en: "Image", zh: "\u770B\u56FE" },
|
|
2838
2846
|
writeFile: { en: "Write", zh: "\u5199\u5165" },
|
|
2839
2847
|
editFile: { en: "Edit", zh: "\u7F16\u8F91" },
|
|
2840
2848
|
codeSearch: { en: "Search", zh: "\u641C\u7D22" },
|
|
@@ -2896,30 +2904,31 @@ var family = (id, icon, en, zh) => ({ id, icon, en, zh });
|
|
|
2896
2904
|
var TOOL_FAMILIES = {
|
|
2897
2905
|
read: family("read", "<", "Read", "\u8BFB\u53D6"),
|
|
2898
2906
|
write: family("write", "+", "Write", "\u5199\u5165"),
|
|
2899
|
-
run: family("run", "$", "Run", "\
|
|
2900
|
-
search: family("search", "?", "
|
|
2901
|
-
fetch: family("fetch", "^", "Fetch", "\
|
|
2907
|
+
run: family("run", "$", "Run", "\u547D\u4EE4"),
|
|
2908
|
+
search: family("search", "?", "Find", "\u641C\u7D22"),
|
|
2909
|
+
fetch: family("fetch", "^", "Fetch", "\u7F51\u9875"),
|
|
2902
2910
|
list: family("list", "=", "List", "\u5217\u8868"),
|
|
2903
|
-
memory: family("memory", "~", "
|
|
2911
|
+
memory: family("memory", "~", "Mem", "\u8BB0\u5FC6"),
|
|
2904
2912
|
agent: family("agent", "@", "Agent", "\u667A\u80FD\u4F53"),
|
|
2905
2913
|
skill: family("skill", "*", "Skill", "\u6280\u80FD"),
|
|
2906
|
-
interaction: family("interaction", ":", "
|
|
2914
|
+
interaction: family("interaction", ":", "Ask", "\u4EA4\u4E92"),
|
|
2907
2915
|
table: family("table", "#", "Table", "\u8868\u683C"),
|
|
2908
|
-
capture: family("capture", "|", "
|
|
2909
|
-
delete: family("delete", "-", "
|
|
2910
|
-
mcp: family("mcp", "%", "
|
|
2916
|
+
capture: family("capture", "|", "Shot", "\u622A\u5C4F"),
|
|
2917
|
+
delete: family("delete", "-", "Del", "\u5220\u9664"),
|
|
2918
|
+
mcp: family("mcp", "%", "MCP", "\u63D2\u4EF6"),
|
|
2911
2919
|
app: family("app", ";", "App", "\u5E94\u7528"),
|
|
2912
|
-
browser: family("browser", ">", "
|
|
2920
|
+
browser: family("browser", ">", "Web", "\u6D4F\u89C8\u5668"),
|
|
2913
2921
|
cloud: family("cloud", "/", "Cloud", "\u4E91"),
|
|
2914
|
-
process: family("process", "&", "
|
|
2915
|
-
email: family("email", "\xBB", "
|
|
2922
|
+
process: family("process", "&", "Proc", "\u8FDB\u7A0B"),
|
|
2923
|
+
email: family("email", "\xBB", "Mail", "\u90AE\u4EF6"),
|
|
2916
2924
|
scrape: family("scrape", "\xAB", "Scrape", "\u91C7\u96C6"),
|
|
2917
|
-
media: family("media", "\u2206", "
|
|
2925
|
+
media: family("media", "\u2206", "Image", "\u770B\u56FE"),
|
|
2918
2926
|
default: family("default", "\u25CA", "Tool", "\u5DE5\u5177")
|
|
2919
2927
|
};
|
|
2920
2928
|
var DEFAULT_TOOL_ICON = TOOL_FAMILIES.default.icon;
|
|
2921
2929
|
var TOOL_FAMILY_OVERRIDES = {
|
|
2922
2930
|
readFile: TOOL_FAMILIES.read,
|
|
2931
|
+
read_image: TOOL_FAMILIES.media,
|
|
2923
2932
|
readDoc: TOOL_FAMILIES.read,
|
|
2924
2933
|
readDialog: TOOL_FAMILIES.read,
|
|
2925
2934
|
readSpace: TOOL_FAMILIES.read,
|
|
@@ -3014,7 +3023,11 @@ var TOOL_FAMILY_RULES = [
|
|
|
3014
3023
|
{ id: "run", family: TOOL_FAMILIES.run, test: startsWithWord("exec", "execute", "run") }
|
|
3015
3024
|
];
|
|
3016
3025
|
var TOOL_FAMILY_BY_ICON = Object.fromEntries(
|
|
3017
|
-
Object.values(TOOL_FAMILIES).
|
|
3026
|
+
Object.values(TOOL_FAMILIES).flatMap((fam) => [
|
|
3027
|
+
[fam.icon, fam],
|
|
3028
|
+
[fam.en, fam],
|
|
3029
|
+
[fam.zh, fam]
|
|
3030
|
+
])
|
|
3018
3031
|
);
|
|
3019
3032
|
function toolFamilyOf(name) {
|
|
3020
3033
|
const override = TOOL_FAMILY_OVERRIDES[name];
|
|
@@ -3023,7 +3036,7 @@ function toolFamilyOf(name) {
|
|
|
3023
3036
|
return rule ? rule.family : TOOL_FAMILIES.default;
|
|
3024
3037
|
}
|
|
3025
3038
|
function toolIcon(name) {
|
|
3026
|
-
return toolFamilyOf(name)
|
|
3039
|
+
return toolFamilyOf(name)[getCliLocale()];
|
|
3027
3040
|
}
|
|
3028
3041
|
function toolFamilyOfIcon(icon) {
|
|
3029
3042
|
return TOOL_FAMILY_BY_ICON[icon] ?? null;
|
|
@@ -20,7 +20,17 @@ async function requestBrowserShellAction(args) {
|
|
|
20
20
|
if (!result) throw new Error("Browser host rejected original action");
|
|
21
21
|
if (result.code !== "USER_APPROVAL_PENDING") return result;
|
|
22
22
|
const decision = await send({ approvalId: result.approvalId, browser: args.browser });
|
|
23
|
-
if (decision.status !== "retry_once")
|
|
23
|
+
if (decision.status !== "retry_once") {
|
|
24
|
+
const code = typeof decision.code === "string" && decision.code ? decision.code : "USER_APPROVAL_DENIED";
|
|
25
|
+
const outcome = typeof decision.outcome === "string" && decision.outcome ? decision.outcome : "denied";
|
|
26
|
+
return {
|
|
27
|
+
...result,
|
|
28
|
+
ok: false,
|
|
29
|
+
code,
|
|
30
|
+
outcome,
|
|
31
|
+
message: "Host approval was not granted; action not executed."
|
|
32
|
+
};
|
|
33
|
+
}
|
|
24
34
|
return args.execute(args.action, { ...payload, approvalId: result.approvalId, hostApproval: true });
|
|
25
35
|
}
|
|
26
36
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveDiscoveryScope,
|
|
7
7
|
resolvePaginationArgs,
|
|
8
8
|
toDiscoverySafeAgentSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XCA4WHX5.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeTopicKey
|
|
12
12
|
} from "./chunk-MVOZ22RZ.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
normalizeAgentUpdateFieldList,
|
|
20
20
|
normalizeSystemBuiltinSkills,
|
|
21
21
|
normalizeUiPlugins
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OAZP4TSA.js";
|
|
23
23
|
import {
|
|
24
24
|
applyFetchSpaceFulfilled,
|
|
25
25
|
fetchAuthoritativeRemoteSpace,
|
|
26
26
|
selectSpaceRemoteAuth
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JFRJEPFI.js";
|
|
28
28
|
import {
|
|
29
29
|
ToolResultError,
|
|
30
30
|
clipMultilineText,
|
|
@@ -38,28 +38,28 @@ import {
|
|
|
38
38
|
toolRunUpdated,
|
|
39
39
|
uiCardFallback,
|
|
40
40
|
waitForAbortableDelay
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LMGFVH65.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-NF64D32W.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveUserEnabledSkills
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UOUMPHS5.js";
|
|
48
48
|
import {
|
|
49
49
|
createDocState
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-J2VIGDJN.js";
|
|
51
51
|
import {
|
|
52
52
|
readDocFunc,
|
|
53
53
|
readDocFunctionSchema,
|
|
54
54
|
readPageFunc,
|
|
55
55
|
readPageFunctionSchema,
|
|
56
56
|
resolvePageReadMarkdown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-CD64YXRB.js";
|
|
58
58
|
import {
|
|
59
59
|
createDialogAction,
|
|
60
60
|
uiAskChoiceFunc,
|
|
61
61
|
uiAskChoiceFunctionSchema
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ODBYGVO2.js";
|
|
63
63
|
import {
|
|
64
64
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
65
65
|
addContentToSpace,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
updateContentCategory,
|
|
77
77
|
updateContentTitle,
|
|
78
78
|
writeStoredCollapsedCategories
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-HCCQEMTK.js";
|
|
80
80
|
import {
|
|
81
81
|
buildDatabaseFileContentUrl,
|
|
82
82
|
deleteDialog,
|
|
@@ -85,14 +85,14 @@ import {
|
|
|
85
85
|
selectCurrentDialogConfig,
|
|
86
86
|
selectCurrentDialogId,
|
|
87
87
|
selectMsgById
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YFW4H6DL.js";
|
|
89
89
|
import {
|
|
90
90
|
createAgent,
|
|
91
91
|
deleteServerSyncedCredential,
|
|
92
92
|
runLlm,
|
|
93
93
|
streamAgentChatTurn,
|
|
94
94
|
updateAgent
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-N74XL3NI.js";
|
|
96
96
|
import {
|
|
97
97
|
addMemberSpace,
|
|
98
98
|
getAllMemberSpaces,
|
|
@@ -109,12 +109,12 @@ import {
|
|
|
109
109
|
setViewMode,
|
|
110
110
|
updateCurrentSpaceIfMatch,
|
|
111
111
|
updateMemberSpaceName
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-FFFKAOJN.js";
|
|
113
113
|
import {
|
|
114
114
|
UNCATEGORIZED_ID,
|
|
115
115
|
addContentAction,
|
|
116
116
|
checkSpaceMembership
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-V4IYI3SB.js";
|
|
118
118
|
import {
|
|
119
119
|
createSpaceKey,
|
|
120
120
|
normalizeSpaceId
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
selectEntities,
|
|
131
131
|
toTimestampMs,
|
|
132
132
|
write
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-HZDK56EK.js";
|
|
134
134
|
import {
|
|
135
135
|
resolveDefaultReasoningEffort
|
|
136
136
|
} from "./chunk-FGHEF6WI.js";
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
} from "./chunk-RD3QLZQV.js";
|
|
180
180
|
import {
|
|
181
181
|
readAction
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-ZM5AZTQG.js";
|
|
183
183
|
import {
|
|
184
184
|
DEVICE_LOCAL_OWNER_ID,
|
|
185
185
|
getRuntimeServerContext,
|
|
@@ -189,23 +189,23 @@ import {
|
|
|
189
189
|
resolveEffectiveSpaceActorId,
|
|
190
190
|
resolveRecordOwnerUserId,
|
|
191
191
|
selectRuntimeSnapshot
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-WQDTSK5U.js";
|
|
193
193
|
import {
|
|
194
194
|
shareResourceAction
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-XJSEST7D.js";
|
|
196
196
|
import {
|
|
197
197
|
selectCurrentServer,
|
|
198
198
|
selectSyncServers
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-MTM4LRVG.js";
|
|
200
200
|
import {
|
|
201
201
|
createAsyncThunk,
|
|
202
202
|
createSelector,
|
|
203
203
|
noloWriteRequest
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-6XVPMGXK.js";
|
|
205
205
|
import {
|
|
206
206
|
googleSessionRequestToken,
|
|
207
207
|
isGoogleAuthoritySession
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-YHNUDTU4.js";
|
|
209
209
|
import {
|
|
210
210
|
getSessionSnapshotForState,
|
|
211
211
|
selectIdentityToken,
|
|
@@ -234,12 +234,12 @@ import {
|
|
|
234
234
|
normalizeNoloSpaceInput,
|
|
235
235
|
resolveNoloDialogInput,
|
|
236
236
|
verifyNoloDialogSubjectRefQuery
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-ITBX27W6.js";
|
|
238
238
|
import {
|
|
239
239
|
MCP_CALL_TOOL_INPUT_SCHEMA,
|
|
240
240
|
MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
|
|
241
241
|
MCP_LIST_TOOLS_INPUT_SCHEMA
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-KXOPLLFP.js";
|
|
243
243
|
import {
|
|
244
244
|
mergeAvailabilityDeadline,
|
|
245
245
|
resolveCredentialKeyWithFallback
|
|
@@ -270,7 +270,7 @@ import {
|
|
|
270
270
|
PLUGIN_MANAGEMENT_TOOL_NAMES,
|
|
271
271
|
managementFailure,
|
|
272
272
|
parsePluginManagementInput
|
|
273
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-6MTVACLN.js";
|
|
274
274
|
import {
|
|
275
275
|
buildSkillDocMarkdown,
|
|
276
276
|
normalizeSkillModalities,
|
|
@@ -4012,7 +4012,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
4012
4012
|
const deletedDialogIds = [];
|
|
4013
4013
|
const deletedDialogKeys = [];
|
|
4014
4014
|
const failures = [];
|
|
4015
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
4015
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-BXIERQHO.js");
|
|
4016
4016
|
for (const target of targets) {
|
|
4017
4017
|
try {
|
|
4018
4018
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4450,7 +4450,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4450
4450
|
}
|
|
4451
4451
|
};
|
|
4452
4452
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4453
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4453
|
+
const { buildReadDocResult } = await import("./readDocTool-N7RVFQEE.js");
|
|
4454
4454
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4455
4455
|
if (typeof id !== "string" || !id.trim()) {
|
|
4456
4456
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -5389,7 +5389,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
5389
5389
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
5390
5390
|
const readSpace = async (dbKey) => {
|
|
5391
5391
|
try {
|
|
5392
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
5392
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-656PMWR2.js");
|
|
5393
5393
|
const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
|
|
5394
5394
|
return await withTimeout(readPromise);
|
|
5395
5395
|
} catch {
|
|
@@ -12085,7 +12085,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
12085
12085
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
12086
12086
|
async function addImageContentToSpace(input) {
|
|
12087
12087
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
12088
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
12088
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-MLI6GOBV.js")).addContentAction;
|
|
12089
12089
|
await addContentAction2(
|
|
12090
12090
|
{
|
|
12091
12091
|
spaceId: input.spaceId,
|
|
@@ -19396,7 +19396,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
19396
19396
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
19397
19397
|
};
|
|
19398
19398
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
19399
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
19399
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-FZ75HWP2.js");
|
|
19400
19400
|
if (getDocState().pageKey === id) {
|
|
19401
19401
|
applyExternalDocUpdate({
|
|
19402
19402
|
slateData: finalSlateData,
|
|
@@ -19421,7 +19421,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
19421
19421
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
19422
19422
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
19423
19423
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
19424
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
19424
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-T4FXSV6M.js")).setSettings;
|
|
19425
19425
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
19426
19426
|
}
|
|
19427
19427
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
deleteDialog,
|
|
3
3
|
runtime_default,
|
|
4
4
|
toast
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YFW4H6DL.js";
|
|
6
6
|
import {
|
|
7
7
|
getAllMemberSpaces,
|
|
8
8
|
getCurrentSpaceId,
|
|
9
9
|
getCurrentSpaceIdRaw,
|
|
10
10
|
updateCurrentSpaceIfMatch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FFFKAOJN.js";
|
|
12
12
|
import {
|
|
13
13
|
require_formatISO
|
|
14
14
|
} from "./chunk-UVLYNWIE.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
patchIndividualContentRecord,
|
|
24
24
|
readContentRecordForSpaceSync,
|
|
25
25
|
syncContentRecordSpaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-V4IYI3SB.js";
|
|
27
27
|
import {
|
|
28
28
|
createSpaceKey,
|
|
29
29
|
normalizeSpaceId
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
uploadFileAction,
|
|
37
37
|
upsertSSREntity,
|
|
38
38
|
write
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HZDK56EK.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveFileCategory
|
|
42
42
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
resolveReplicationServers,
|
|
51
51
|
scheduleDeleteReplication,
|
|
52
52
|
scheduleWriteReplication
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-WQDTSK5U.js";
|
|
54
54
|
import {
|
|
55
55
|
createAsyncThunk
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-6XVPMGXK.js";
|
|
57
57
|
import {
|
|
58
58
|
getIsDesktopApp
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-YHNUDTU4.js";
|
|
60
60
|
import {
|
|
61
61
|
createClientLogger
|
|
62
62
|
} from "./chunk-QQ56R7KS.js";
|
|
@@ -1513,11 +1513,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1513
1513
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1514
1514
|
},
|
|
1515
1515
|
file: async (key, { thunkAPI }) => {
|
|
1516
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1516
|
+
const { deleteFileAction } = await import("./deleteFile-ZCQESEEQ.js");
|
|
1517
1517
|
await deleteFileAction(key, thunkAPI);
|
|
1518
1518
|
},
|
|
1519
1519
|
image: async (key, { thunkAPI }) => {
|
|
1520
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1520
|
+
const { deleteFileAction } = await import("./deleteFile-ZCQESEEQ.js");
|
|
1521
1521
|
await deleteFileAction(key, thunkAPI);
|
|
1522
1522
|
},
|
|
1523
1523
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|