nolo-cli 0.33.0-alpha.3 → 0.33.0-alpha.30
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-RWPVI3YV.js → _executeModel-G2YBBSYF.js} +53 -53
- package/{action-SMLG6OTB.js → action-4KWNL4XI.js} +10 -10
- package/{addContentAction-SFO244QN.js → addContentAction-SUL5AFLY.js} +8 -8
- package/{addDialogAgentAction-W44ZCEHB.js → addDialogAgentAction-T645TULN.js} +7 -7
- package/{agentDeleteCommand-KU2RXQPP.js → agentDeleteCommand-DZPB57QC.js} +47 -43
- package/{agentEmailCommands-MPCMDENS.js → agentEmailCommands-5UPJMRRT.js} +79 -75
- package/{agentListCommands-EPD4N6FX.js → agentListCommands-FHWEJ56M.js} +47 -42
- package/{agentMachineCommands-AF7C3YRT.js → agentMachineCommands-FNVJTZ3J.js} +44 -40
- package/agentProviderCommands-65ZC2WB4.js +122 -0
- package/{agentPullCommand-YH5GEBK4.js → agentPullCommand-NYHSK6EW.js} +3 -3
- package/{agentRecordCommands-EYE6MZZG.js → agentRecordCommands-JN2L5AMM.js} +70 -66
- package/{agentRunCommand-LL22SGTN.js → agentRunCommand-R57HN7XZ.js} +76 -71
- package/{agentRuntimeLocal-JX34G47Z.js → agentRuntimeLocal-MXIGYCZW.js} +32 -29
- package/{agentSlice-TNMFQQOV.js → agentSlice-L3S542FP.js} +10 -10
- package/{appDeleteCommands-43K5VXQB.js → appDeleteCommands-LF6HKT65.js} +39 -35
- package/{appDeployCommands-FEEJSVDZ.js → appDeployCommands-S5M2FFQS.js} +39 -35
- package/{appDeployStatusCommands-H76CG45R.js → appDeployStatusCommands-AVT2B5LY.js} +39 -35
- package/{appGetCommands-MDZYFTYZ.js → appGetCommands-ACH4E3F4.js} +39 -35
- package/{appListCommands-TUJJXPWG.js → appListCommands-LKI2VES7.js} +39 -35
- package/{authCommand-T7UK4CWS.js → authCommand-AECKBG65.js} +21 -20
- package/{authCommands-EAPFGNHN.js → authCommands-W74NRPA6.js} +6 -6
- package/{chatQueueReduxAdapter-LVQXC4ZY.js → chatQueueReduxAdapter-WJXO2JCG.js} +23 -22
- package/{chunk-HDKRSRYU.js → chunk-326E2B5C.js} +289 -93
- package/{chunk-2UECQ7RE.js → chunk-3AOLVADY.js} +1 -1
- package/{chunk-M2YMQOLC.js → chunk-3CPL3LU2.js} +11 -11
- package/chunk-3Z32AD6X.js +22 -0
- package/{chunk-HUCT7HID.js → chunk-42IF53CR.js} +1 -1
- package/{chunk-5SBK2MTI.js → chunk-64M2WCLT.js} +23 -70
- package/{chunk-LOD75GOS.js → chunk-674FTH5U.js} +3751 -1557
- package/{chunk-AOXVOC6D.js → chunk-6O5DMZOS.js} +3 -3
- package/{chunk-GMXWYXAF.js → chunk-7AXGPKX5.js} +3 -3
- package/{chunk-FMEVI5TG.js → chunk-7CH6U3FL.js} +1 -1
- package/{chunk-OR2HNLVO.js → chunk-7EPNNOL4.js} +6 -6
- package/{chunk-DFUPZE6V.js → chunk-7SLMYTSF.js} +1 -1
- package/{chunk-BQXOGBFN.js → chunk-A2YCVTV6.js} +1 -1
- package/{chunk-UK5JGQVU.js → chunk-A3UZKNUI.js} +13 -18
- package/{chunk-3GZXL6FM.js → chunk-AOWETAXX.js} +1 -1
- package/{chunk-B2BSG6QQ.js → chunk-ASWSPCJH.js} +18 -18
- package/{chunk-CLP2K7U4.js → chunk-BP3FSWKY.js} +6 -6
- package/{chunk-IHEC7VBF.js → chunk-BW7JSRVT.js} +1 -1
- package/{chunk-AAGCMVFT.js → chunk-BYXLXABD.js} +495 -148
- package/{chunk-MPZJVZDC.js → chunk-CDSTQJIJ.js} +27 -27
- package/{chunk-2H3XIBY4.js → chunk-D2CTCWWG.js} +4 -82
- package/{chunk-OIQPORYI.js → chunk-ECHNSF4H.js} +178 -2
- package/{chunk-TFPUAELY.js → chunk-EIWIUEOH.js} +2 -2
- package/{chunk-JTSGWTYZ.js → chunk-EMKX4VZW.js} +2 -2
- package/{chunk-6HYVJV7B.js → chunk-ESHYE7WU.js} +2 -1
- package/{chunk-ZURFOV5J.js → chunk-FS5VNMPF.js} +3 -3
- package/{chunk-U4TRT5V4.js → chunk-GEPHJJW4.js} +1 -1
- package/{chunk-5CS33IBL.js → chunk-GKAQBXBO.js} +11 -12
- package/{chunk-M4NC7NF6.js → chunk-GMSUMWFO.js} +2 -2
- package/{chunk-JMPYDFHY.js → chunk-HLXJXFXN.js} +21 -8
- package/{chunk-I6N2UVVY.js → chunk-JZUS5GOM.js} +1 -1
- package/{chunk-RAZOLMJR.js → chunk-KVRWX6K7.js} +2 -2
- package/{chunk-VH2F7ZB6.js → chunk-L4O5JAIW.js} +1 -1
- package/{chunk-57QJXIB6.js → chunk-L7EJWFAP.js} +9 -9
- package/{chunk-DPMBNHOJ.js → chunk-LAZTMWIU.js} +1 -1
- package/{chunk-ADLYMQB6.js → chunk-MBUNBGBE.js} +127 -0
- package/{chunk-Q5ITEGIN.js → chunk-N4XRDM26.js} +1 -1
- package/{chunk-7E72JMBB.js → chunk-N543Q3VR.js} +57 -16
- package/{chunk-WHD6BG7M.js → chunk-NEG2ROC2.js} +45 -41
- package/{chunk-2IVEXF7P.js → chunk-NMB23CNE.js} +2 -9
- package/{chunk-XCCGU6QB.js → chunk-NQWDSCDT.js} +1 -1
- package/{chunk-FSSX3XRY.js → chunk-NTOLFNU3.js} +1 -1
- package/chunk-OH4Q4VVA.js +38 -0
- package/{chunk-37V5LNEQ.js → chunk-OOG3PQCH.js} +1 -1
- package/{chunk-3WXRAHCG.js → chunk-OPSKBBSX.js} +3 -3
- package/{chunk-AFV4FOT2.js → chunk-OQVRTSZ5.js} +4 -91
- package/{chunk-GTYM4HKV.js → chunk-OXLUSM42.js} +5 -5
- package/{chunk-YDTYDA5W.js → chunk-PAW3XFD3.js} +8 -6
- package/{chunk-PREQU5QV.js → chunk-PECRHVNK.js} +1 -1
- package/{chunk-O6GEBMIY.js → chunk-PVJS353C.js} +8861 -8608
- package/{chunk-JZPBVBIY.js → chunk-QTZD6HBK.js} +18 -8
- package/chunk-TVXJEOU2.js +78 -0
- package/{chunk-3VAQHAXT.js → chunk-UFMFWBSG.js} +26 -26
- package/{chunk-73GINUCW.js → chunk-UGWIRZO6.js} +129 -50
- package/{chunk-NUO3QFWD.js → chunk-UNHKVD2N.js} +1 -1
- package/{chunk-GE6IWA5N.js → chunk-UNZDCI3O.js} +126 -1
- package/chunk-UOLENXLQ.js +1132 -0
- package/{chunk-FXFGNOT2.js → chunk-VFVCYIRQ.js} +1 -1
- package/chunk-VIRTYWWE.js +97 -0
- package/{chunk-6SXC35F4.js → chunk-VMAK5YKS.js} +12 -12
- package/{chunk-ZJMME4DS.js → chunk-W6NT2FW3.js} +6 -6
- package/{chunk-2QTEYCR7.js → chunk-X65PIFJI.js} +17 -7
- package/{chunk-JZ5AMMXU.js → chunk-XBNLE3MR.js} +3 -3
- package/{chunk-WLH5BAKX.js → chunk-YYTTDOWA.js} +2 -2
- package/{chunk-X2DAEZ3X.js → chunk-ZFGAPMSF.js} +1 -1
- package/{chunk-IL545V3E.js → chunk-ZJVSRWOP.js} +7 -7
- package/{cliExecutor-DW3PHGEL.js → cliExecutor-BBUVQU4L.js} +2 -2
- package/{codingSkills-DY5MINPG.js → codingSkills-5VOV3JVB.js} +3 -3
- package/{createAgentAutomationAction-INQT23LX.js → createAgentAutomationAction-RMKFWLA3.js} +24 -23
- package/{createDialogAction-LDCPDI73.js → createDialogAction-BLNYPWJ6.js} +27 -26
- package/{createPageAction-5YXOG2M4.js → createPageAction-MSJTHWS7.js} +28 -27
- package/{dbSlice-3SD5L5H2.js → dbSlice-YBUD2NZB.js} +7 -7
- package/{deleteFile-XQXPBFFB.js → deleteFile-74VF4EAJ.js} +4 -4
- package/{dialogCommands-CHJO47AX.js → dialogCommands-JI6X34PB.js} +38 -34
- package/{dialogSlice-DOWKOILN.js → dialogSlice-MJAX2T2X.js} +23 -22
- package/{docCreateCommands-OVZARUFX.js → docCreateCommands-KNLITDCK.js} +40 -36
- package/{docDeleteCommands-E2XJ62LD.js → docDeleteCommands-6SBOU75S.js} +41 -37
- package/{docReadCommands-I7OSREPJ.js → docReadCommands-NX77P5X4.js} +40 -36
- package/{docStore-UAWSKZ2Y.js → docStore-472FHNNN.js} +25 -24
- package/{docUpdateCommands-X4Z26VJM.js → docUpdateCommands-IHWNHH4O.js} +43 -39
- package/emscripten-module-EDQBMDVK.js +576 -0
- package/emscripten-module-LCBQ7VWY.js +1506 -0
- package/emscripten-module-OFHQ7EL3.js +482 -0
- package/emscripten-module-XM7NDJQA.js +4536 -0
- package/fetchMessages-7QRCCRYK.js +1 -1
- package/ffi-6ZSX3QJ4.js +80 -0
- package/ffi-742Y76PE.js +92 -0
- package/ffi-AEYWSYLM.js +80 -0
- package/ffi-KQC27OUM.js +92 -0
- package/{getPricing-L2ENXWHV.js → getPricing-J4VXWR5B.js} +4 -4
- package/{handleSendMessageAction-C3TSDWKH.js → handleSendMessageAction-V3SKWOOV.js} +26 -25
- package/index.js +78 -74
- package/{localRuntimeAuthority-E3R24J4T.js → localRuntimeAuthority-S77B5QVB.js} +6 -2
- package/{localRuntimeDb-DDZCJFQZ.js → localRuntimeDb-N3H3HQ7G.js} +1 -1
- package/{machineCommands-BUOIYJAD.js → machineCommands-ZDULQKUU.js} +80 -76
- package/{machineInfo-M6KB6HZN.js → machineInfo-66ZFUMLE.js} +1 -1
- package/{machineWsRunDispatch-7CRWAA6O.js → machineWsRunDispatch-XX2LNRJT.js} +68 -64
- package/{models-OX2S5C6Q.js → models-FM7YJ47W.js} +2 -2
- package/module-ES6BEMUI-AFCVSBMS.js +14 -0
- package/module-asyncify-2EFITU5U-DEP2F2QP.js +9 -0
- package/package.json +1 -1
- package/{read-6G73BMEY.js → read-7SIURKBF.js} +5 -5
- package/{readDocTool-DK4EI2GA.js → readDocTool-NWQFQ4IG.js} +1 -1
- package/{readlineWorkspace-ZDWEASJV.js → readlineWorkspace-NXB4IBLM.js} +3886 -3344
- package/{removeDialogAgentAction-E7H557UO.js → removeDialogAgentAction-S3LYHK4M.js} +11 -11
- package/{runAgentClientLoop-U7HYA3O5.js → runAgentClientLoop-TNETRJFJ.js} +50 -49
- package/{runtimeDoctorCommands-KIKM6BIO.js → runtimeDoctorCommands-HT4O2PXL.js} +6 -6
- package/{setDialogExtraReferencesAction-RMMGBR5F.js → setDialogExtraReferencesAction-L5ET3HEX.js} +8 -8
- package/{setPrimaryDialogAgentAction-FWBKKLVA.js → setPrimaryDialogAgentAction-ZZJOZQEM.js} +11 -11
- package/{settingSlice-73PV4KG4.js → settingSlice-ZFOZPBI2.js} +9 -9
- package/{skillDiscovery-KLLKXPUO.js → skillDiscovery-6YSTRCQ7.js} +3 -3
- package/{spaceCommands-GEWZXGHM.js → spaceCommands-CAWUGXJS.js} +44 -40
- package/{spaceSlice-B6MOVY4N.js → spaceSlice-J5D3LTMO.js} +24 -23
- package/{streamAgentChatTurn-T527EQTT.js → streamAgentChatTurn-YI5O3T4X.js} +104 -114
- package/{switchDialogAgentAction-US6QNL3N.js → switchDialogAgentAction-ZWCYLWVK.js} +7 -7
- package/{tableCommands-QE47K72R.js → tableCommands-5OKD2DKN.js} +8 -8
- package/{tools-XMWCVMPM.js → tools-HI4U6J6S.js} +39 -38
- package/{tuiSummaryLlmCaller-NCAJSVSD.js → tuiSummaryLlmCaller-3RC6WWRV.js} +15 -14
- package/{updateCommands-AK2RDOFR.js → updateCommands-MNDUIKN7.js} +2 -2
- package/{updateDialogTitleAction-XPJZRJEL.js → updateDialogTitleAction-V5H4LWFR.js} +30 -29
- package/chunk-6PO2SYCS.js +0 -1800
- package/{agentGrantCommands-2LEZDADN.js → agentGrantCommands-OPIGFRDO.js} +2 -2
- package/{chunk-ZHYK3N56.js → chunk-G7HTVVFL.js} +3 -3
- package/{chunk-SAQQLJZ5.js → chunk-JDSUTNYY.js} +3 -3
- package/{chunk-X664KVEV.js → chunk-QM6EN2ES.js} +3 -3
- package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-HDIQVGKN.js} +3 -3
|
@@ -7,14 +7,24 @@ import {
|
|
|
7
7
|
unlinkSync,
|
|
8
8
|
writeFileSync
|
|
9
9
|
} from "node:fs";
|
|
10
|
+
import { join as join2 } from "node:path";
|
|
11
|
+
|
|
12
|
+
// packages/agent-runtime/noloStateDir.ts
|
|
10
13
|
import { homedir } from "node:os";
|
|
11
14
|
import { join } from "node:path";
|
|
15
|
+
function resolveNoloStateDir(name, homeDir) {
|
|
16
|
+
if (homeDir) return join(homeDir, ".nolo", name);
|
|
17
|
+
const noloHome = process.env.NOLO_HOME?.trim();
|
|
18
|
+
return noloHome ? join(noloHome, name) : join(homedir(), ".nolo", name);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// packages/agent-runtime/oauthTokenStore.ts
|
|
12
22
|
var DEFAULT_REFRESH_SKEW_MS = 5 * 60 * 1e3;
|
|
13
|
-
function getCredentialsDir(homeDir
|
|
14
|
-
return
|
|
23
|
+
function getCredentialsDir(homeDir) {
|
|
24
|
+
return resolveNoloStateDir("credentials", homeDir);
|
|
15
25
|
}
|
|
16
|
-
function getCredentialPath(provider, homeDir
|
|
17
|
-
return
|
|
26
|
+
function getCredentialPath(provider, homeDir) {
|
|
27
|
+
return join2(getCredentialsDir(homeDir), `${provider}.json`);
|
|
18
28
|
}
|
|
19
29
|
function ensurePrivateDir(dir) {
|
|
20
30
|
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
@@ -30,7 +40,7 @@ function writePrivateFile(path, body) {
|
|
|
30
40
|
} catch {
|
|
31
41
|
}
|
|
32
42
|
}
|
|
33
|
-
function readOAuthCredential(provider, homeDir
|
|
43
|
+
function readOAuthCredential(provider, homeDir) {
|
|
34
44
|
const path = getCredentialPath(provider, homeDir);
|
|
35
45
|
if (!existsSync(path)) return null;
|
|
36
46
|
const raw = readFileSync(path, "utf8");
|
|
@@ -42,18 +52,18 @@ function readOAuthCredential(provider, homeDir = homedir()) {
|
|
|
42
52
|
return null;
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
|
-
function writeOAuthCredential(provider, credential, homeDir
|
|
55
|
+
function writeOAuthCredential(provider, credential, homeDir) {
|
|
46
56
|
const path = getCredentialPath(provider, homeDir);
|
|
47
57
|
ensurePrivateDir(getCredentialsDir(homeDir));
|
|
48
58
|
writePrivateFile(path, `${JSON.stringify(credential, null, 2)}
|
|
49
59
|
`);
|
|
50
60
|
}
|
|
51
|
-
function removeOAuthCredential(provider, homeDir
|
|
61
|
+
function removeOAuthCredential(provider, homeDir) {
|
|
52
62
|
const path = getCredentialPath(provider, homeDir);
|
|
53
63
|
if (!existsSync(path)) return;
|
|
54
64
|
unlinkSync(path);
|
|
55
65
|
}
|
|
56
|
-
function createOAuthTokenStore(homeDir
|
|
66
|
+
function createOAuthTokenStore(homeDir) {
|
|
57
67
|
return {
|
|
58
68
|
read(provider) {
|
|
59
69
|
return readOAuthCredential(provider, homeDir);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Lifetime,
|
|
3
|
+
QuickJSContext,
|
|
4
|
+
QuickJSNotImplemented,
|
|
5
|
+
QuickJSRuntime,
|
|
6
|
+
QuickJSWASMModule,
|
|
7
|
+
Scope,
|
|
8
|
+
applyBaseRuntimeOptions,
|
|
9
|
+
applyModuleEvalRuntimeOptions,
|
|
10
|
+
evalOptionsToFlags,
|
|
11
|
+
intrinsicsToFlags
|
|
12
|
+
} from "./chunk-UOLENXLQ.js";
|
|
13
|
+
|
|
14
|
+
// node_modules/quickjs-emscripten-core/dist/chunk-TAV5CUKK.mjs
|
|
15
|
+
var QuickJSAsyncContext = class extends QuickJSContext {
|
|
16
|
+
async evalCodeAsync(code, filename = "eval.js", options) {
|
|
17
|
+
let detectModule = options === void 0 ? 1 : 0, flags = evalOptionsToFlags(options), resultPtr = 0;
|
|
18
|
+
try {
|
|
19
|
+
resultPtr = await this.memory.newHeapCharPointer(code).consume((charHandle) => this.ffi.QTS_Eval_MaybeAsync(this.ctx.value, charHandle.value.ptr, charHandle.value.strlen, filename, detectModule, flags));
|
|
20
|
+
} catch (error) {
|
|
21
|
+
throw this.runtime.debugLog("QTS_Eval_MaybeAsync threw", error), error;
|
|
22
|
+
}
|
|
23
|
+
let errorPtr = this.ffi.QTS_ResolveException(this.ctx.value, resultPtr);
|
|
24
|
+
return errorPtr ? (this.ffi.QTS_FreeValuePointer(this.ctx.value, resultPtr), this.fail(this.memory.heapValueHandle(errorPtr))) : this.success(this.memory.heapValueHandle(resultPtr));
|
|
25
|
+
}
|
|
26
|
+
newAsyncifiedFunction(name, fn) {
|
|
27
|
+
return this.newFunction(name, fn);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var QuickJSAsyncRuntime = class extends QuickJSRuntime {
|
|
31
|
+
constructor(args) {
|
|
32
|
+
super(args);
|
|
33
|
+
}
|
|
34
|
+
newContext(options = {}) {
|
|
35
|
+
let intrinsics = intrinsicsToFlags(options.intrinsics), ctx = new Lifetime(this.ffi.QTS_NewContext(this.rt.value, intrinsics), void 0, (ctx_ptr) => {
|
|
36
|
+
this.contextMap.delete(ctx_ptr), this.callbacks.deleteContext(ctx_ptr), this.ffi.QTS_FreeContext(ctx_ptr);
|
|
37
|
+
}), context = new QuickJSAsyncContext({ module: this.module, ctx, ffi: this.ffi, rt: this.rt, ownedLifetimes: [], runtime: this, callbacks: this.callbacks });
|
|
38
|
+
return this.contextMap.set(ctx.value, context), context;
|
|
39
|
+
}
|
|
40
|
+
setModuleLoader(moduleLoader, moduleNormalizer) {
|
|
41
|
+
super.setModuleLoader(moduleLoader, moduleNormalizer);
|
|
42
|
+
}
|
|
43
|
+
setMaxStackSize(stackSize) {
|
|
44
|
+
return super.setMaxStackSize(stackSize);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var QuickJSAsyncWASMModule = class extends QuickJSWASMModule {
|
|
48
|
+
constructor(module, ffi) {
|
|
49
|
+
super(module, ffi);
|
|
50
|
+
this.ffi = ffi, this.module = module;
|
|
51
|
+
}
|
|
52
|
+
newRuntime(options = {}) {
|
|
53
|
+
let rt = new Lifetime(this.ffi.QTS_NewRuntime(), void 0, (rt_ptr) => {
|
|
54
|
+
this.callbacks.deleteRuntime(rt_ptr), this.ffi.QTS_FreeRuntime(rt_ptr);
|
|
55
|
+
}), runtime = new QuickJSAsyncRuntime({ module: this.module, ffi: this.ffi, rt, callbacks: this.callbacks });
|
|
56
|
+
return applyBaseRuntimeOptions(runtime, options), options.moduleLoader && runtime.setModuleLoader(options.moduleLoader), runtime;
|
|
57
|
+
}
|
|
58
|
+
newContext(options = {}) {
|
|
59
|
+
let runtime = this.newRuntime(), lifetimes = options.ownedLifetimes ? options.ownedLifetimes.concat([runtime]) : [runtime], context = runtime.newContext({ ...options, ownedLifetimes: lifetimes });
|
|
60
|
+
return runtime.context = context, context;
|
|
61
|
+
}
|
|
62
|
+
evalCode() {
|
|
63
|
+
throw new QuickJSNotImplemented("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead");
|
|
64
|
+
}
|
|
65
|
+
evalCodeAsync(code, options) {
|
|
66
|
+
return Scope.withScopeAsync(async (scope) => {
|
|
67
|
+
let vm = scope.manage(this.newContext());
|
|
68
|
+
applyModuleEvalRuntimeOptions(vm.runtime, options);
|
|
69
|
+
let result = await vm.evalCodeAsync(code, "eval.js");
|
|
70
|
+
if (options.memoryLimitBytes !== void 0 && vm.runtime.setMemoryLimit(-1), result.error) throw vm.dump(scope.manage(result.error));
|
|
71
|
+
return vm.dump(scope.manage(result.value));
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
QuickJSAsyncWASMModule
|
|
78
|
+
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getPublicImageAgentMode
|
|
3
|
-
} from "./chunk-VIDPVFP3.js";
|
|
4
1
|
import {
|
|
5
2
|
clipHeadAndTail
|
|
6
3
|
} from "./chunk-JEXVIMYZ.js";
|
|
@@ -8,10 +5,10 @@ import {
|
|
|
8
5
|
inlineImageUrlsForCustomProvider,
|
|
9
6
|
prepareTools,
|
|
10
7
|
shouldInlineImageUrlsForAgent
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GMSUMWFO.js";
|
|
12
9
|
import {
|
|
13
10
|
performFetchRequest
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NEG2ROC2.js";
|
|
15
12
|
import {
|
|
16
13
|
createSSEParser,
|
|
17
14
|
createToolRunId,
|
|
@@ -22,22 +19,30 @@ import {
|
|
|
22
19
|
toolRunSetPending,
|
|
23
20
|
toolRunStarted,
|
|
24
21
|
toolRunSucceeded
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-326E2B5C.js";
|
|
23
|
+
import {
|
|
24
|
+
getPublicImageAgentMode
|
|
25
|
+
} from "./chunk-VIDPVFP3.js";
|
|
26
26
|
import {
|
|
27
27
|
getCurrentSpaceId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CDSTQJIJ.js";
|
|
29
29
|
import {
|
|
30
30
|
addToolMessage,
|
|
31
31
|
messageStreamEnd,
|
|
32
32
|
messageStreaming,
|
|
33
33
|
updateToolMessage
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UGWIRZO6.js";
|
|
35
35
|
import {
|
|
36
36
|
streamAgentChatTurn
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-W6NT2FW3.js";
|
|
38
|
+
import {
|
|
39
|
+
addActiveController,
|
|
40
|
+
removeActiveController,
|
|
41
|
+
tokenUsageLiveUpdate
|
|
42
|
+
} from "./chunk-MRWGHF56.js";
|
|
38
43
|
import {
|
|
39
44
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
40
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OH4Q4VVA.js";
|
|
41
46
|
import {
|
|
42
47
|
accumulateToolCallDelta,
|
|
43
48
|
createThinkParserState,
|
|
@@ -49,45 +54,40 @@ import {
|
|
|
49
54
|
} from "./chunk-N7J63Q6C.js";
|
|
50
55
|
import {
|
|
51
56
|
getModelInfo
|
|
52
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-D2CTCWWG.js";
|
|
53
58
|
import {
|
|
54
59
|
getApiEndpoint
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
addActiveController,
|
|
58
|
-
removeActiveController,
|
|
59
|
-
tokenUsageLiveUpdate
|
|
60
|
-
} from "./chunk-MRWGHF56.js";
|
|
60
|
+
} from "./chunk-7SLMYTSF.js";
|
|
61
61
|
import {
|
|
62
62
|
toErrorMessage
|
|
63
63
|
} from "./chunk-HNMXYYJR.js";
|
|
64
64
|
import {
|
|
65
65
|
selectCurrentServer
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-BP3FSWKY.js";
|
|
67
67
|
import {
|
|
68
68
|
write
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-L7EJWFAP.js";
|
|
70
70
|
import {
|
|
71
71
|
createDialogMessageKeyAndId,
|
|
72
72
|
dialogMessageKey,
|
|
73
73
|
toTrimmedString
|
|
74
74
|
} from "./chunk-KMSZPTM6.js";
|
|
75
|
+
import {
|
|
76
|
+
extractCustomId
|
|
77
|
+
} from "./chunk-BJIRLHJR.js";
|
|
75
78
|
import {
|
|
76
79
|
createAsyncThunk,
|
|
77
80
|
selectIdentityToken
|
|
78
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-QM6EN2ES.js";
|
|
79
82
|
import {
|
|
80
83
|
isAbortError
|
|
81
84
|
} from "./chunk-WJSW43QZ.js";
|
|
82
|
-
import {
|
|
83
|
-
asTrimmedString
|
|
84
|
-
} from "./chunk-3EUW3WEO.js";
|
|
85
|
-
import {
|
|
86
|
-
extractCustomId
|
|
87
|
-
} from "./chunk-BJIRLHJR.js";
|
|
88
85
|
import {
|
|
89
86
|
isRecord
|
|
90
87
|
} from "./chunk-KUG52IAP.js";
|
|
88
|
+
import {
|
|
89
|
+
asTrimmedString
|
|
90
|
+
} from "./chunk-3EUW3WEO.js";
|
|
91
91
|
import {
|
|
92
92
|
asOptionalTrimmedString
|
|
93
93
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
isOAuthApiKeyRef
|
|
10
10
|
} from "./chunk-YYLHWIW6.js";
|
|
11
|
+
import {
|
|
12
|
+
runLlm
|
|
13
|
+
} from "./chunk-W6NT2FW3.js";
|
|
11
14
|
import {
|
|
12
15
|
getApproxPricePerImage
|
|
13
16
|
} from "./chunk-CWMSB67P.js";
|
|
14
|
-
import {
|
|
15
|
-
runLlm
|
|
16
|
-
} from "./chunk-ZJMME4DS.js";
|
|
17
17
|
import {
|
|
18
18
|
cleanupCliSessionForDialog
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XBNLE3MR.js";
|
|
20
20
|
import {
|
|
21
21
|
getActiveDialogAgentId,
|
|
22
22
|
getDialogAgentIds,
|
|
@@ -26,16 +26,27 @@ import {
|
|
|
26
26
|
require_date_fns
|
|
27
27
|
} from "./chunk-M76ECQRD.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
abortActiveControllers,
|
|
30
|
+
addPageReferenceToRuntime,
|
|
31
|
+
applyClearDialogStateRuntime,
|
|
32
|
+
applyUpdateTokensFulfilled,
|
|
33
|
+
clearActiveControllers,
|
|
34
|
+
deleteDialogRuntime,
|
|
35
|
+
getActiveDialogKey,
|
|
36
|
+
getDialogRuntimeTokens,
|
|
37
|
+
require_react,
|
|
38
|
+
resetDialogRuntimeSessionState,
|
|
39
|
+
selectCurrentDialogKey,
|
|
40
|
+
setActiveDialogKey,
|
|
41
|
+
setDialogConfigError
|
|
42
|
+
} from "./chunk-MRWGHF56.js";
|
|
31
43
|
import {
|
|
32
44
|
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
33
45
|
DEFAULT_CONTEXT_WINDOW,
|
|
34
46
|
getModelContextWindow,
|
|
35
47
|
getModelInfo,
|
|
36
|
-
resolveAutoExecutionProfile
|
|
37
|
-
|
|
38
|
-
} from "./chunk-2H3XIBY4.js";
|
|
48
|
+
resolveAutoExecutionProfile
|
|
49
|
+
} from "./chunk-D2CTCWWG.js";
|
|
39
50
|
import {
|
|
40
51
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
41
52
|
buildCompactionMetricsFromPlan,
|
|
@@ -47,36 +58,24 @@ import {
|
|
|
47
58
|
normalizeAssistantContentBuffer,
|
|
48
59
|
planCompression,
|
|
49
60
|
serializeMessageContent
|
|
50
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6O5DMZOS.js";
|
|
51
62
|
import {
|
|
52
63
|
findModelConfig,
|
|
53
64
|
getModelConfig
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import {
|
|
56
|
-
abortActiveControllers,
|
|
57
|
-
addPageReferenceToRuntime,
|
|
58
|
-
applyClearDialogStateRuntime,
|
|
59
|
-
applyUpdateTokensFulfilled,
|
|
60
|
-
clearActiveControllers,
|
|
61
|
-
deleteDialogRuntime,
|
|
62
|
-
getActiveDialogKey,
|
|
63
|
-
getDialogRuntimeTokens,
|
|
64
|
-
require_react,
|
|
65
|
-
resetDialogRuntimeSessionState,
|
|
66
|
-
selectCurrentDialogKey,
|
|
67
|
-
setActiveDialogKey,
|
|
68
|
-
setDialogConfigError
|
|
69
|
-
} from "./chunk-MRWGHF56.js";
|
|
65
|
+
} from "./chunk-7SLMYTSF.js";
|
|
70
66
|
import {
|
|
71
67
|
toErrorMessage
|
|
72
68
|
} from "./chunk-HNMXYYJR.js";
|
|
69
|
+
import {
|
|
70
|
+
fetchMessages
|
|
71
|
+
} from "./chunk-KSRFVP36.js";
|
|
73
72
|
import {
|
|
74
73
|
getPlatformHostedDeepSeekV4Price,
|
|
75
74
|
isPlatformHostedDeepSeekV4Model
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-7EPNNOL4.js";
|
|
77
76
|
import {
|
|
78
77
|
nolotusId
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-BP3FSWKY.js";
|
|
80
79
|
import {
|
|
81
80
|
asRecordOrEmpty
|
|
82
81
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -86,7 +85,7 @@ import {
|
|
|
86
85
|
remove,
|
|
87
86
|
selectById,
|
|
88
87
|
write
|
|
89
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-L7EJWFAP.js";
|
|
90
89
|
import {
|
|
91
90
|
buildDialogAgentListIndexDeleteOps,
|
|
92
91
|
createDialogMessageKeyAndId,
|
|
@@ -107,6 +106,17 @@ import {
|
|
|
107
106
|
import {
|
|
108
107
|
asTrimmedLowercaseString
|
|
109
108
|
} from "./chunk-QSJ3HFEF.js";
|
|
109
|
+
import {
|
|
110
|
+
builtinAgentCatalogEntryById,
|
|
111
|
+
builtinRuntimeFallbackEntries,
|
|
112
|
+
isBuiltinPlatformAgentKey
|
|
113
|
+
} from "./chunk-A3UZKNUI.js";
|
|
114
|
+
import {
|
|
115
|
+
extractCustomId,
|
|
116
|
+
extractUserId,
|
|
117
|
+
parsePublicAgentId,
|
|
118
|
+
publicAgentKey
|
|
119
|
+
} from "./chunk-BJIRLHJR.js";
|
|
110
120
|
import {
|
|
111
121
|
asyncThunkCreator,
|
|
112
122
|
buildCreateSlice,
|
|
@@ -117,7 +127,7 @@ import {
|
|
|
117
127
|
parseOwnerUserIdFromDbKey,
|
|
118
128
|
scheduleDeleteReplication,
|
|
119
129
|
selectIdentityUserId
|
|
120
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-QM6EN2ES.js";
|
|
121
131
|
import {
|
|
122
132
|
createClientLogger,
|
|
123
133
|
isAbortError
|
|
@@ -126,16 +136,12 @@ import {
|
|
|
126
136
|
isTombstoneRecord,
|
|
127
137
|
shouldReplaceWithNextRecord
|
|
128
138
|
} from "./chunk-GBRG75BQ.js";
|
|
129
|
-
import {
|
|
130
|
-
asTrimmedString
|
|
131
|
-
} from "./chunk-3EUW3WEO.js";
|
|
132
|
-
import {
|
|
133
|
-
extractCustomId,
|
|
134
|
-
extractUserId
|
|
135
|
-
} from "./chunk-BJIRLHJR.js";
|
|
136
139
|
import {
|
|
137
140
|
isRecord
|
|
138
141
|
} from "./chunk-KUG52IAP.js";
|
|
142
|
+
import {
|
|
143
|
+
asTrimmedString
|
|
144
|
+
} from "./chunk-3EUW3WEO.js";
|
|
139
145
|
import {
|
|
140
146
|
asOptionalTrimmedString
|
|
141
147
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -1643,6 +1649,76 @@ var buildPersonalizationDialogPolicyContext = () => [
|
|
|
1643
1649
|
"\u9664\u975E\u7528\u6237\u660E\u786E\u8981\u6C42\uFF0C\u5426\u5219\u4E0D\u8981\u521B\u5EFA\u6587\u6863\uFF0C\u4E0D\u8981\u521B\u5EFA\u6216\u4FEE\u6539\u4EFB\u4F55 agent\u3002"
|
|
1644
1650
|
].join("\n");
|
|
1645
1651
|
|
|
1652
|
+
// packages/agent-runtime/builtinPlatformAgentRoute.ts
|
|
1653
|
+
function resolveBuiltinAgentRuntimeFields(agentKey) {
|
|
1654
|
+
if (!isBuiltinPlatformAgentKey(agentKey)) return null;
|
|
1655
|
+
const entry = builtinAgentCatalogEntryById(parsePublicAgentId(agentKey));
|
|
1656
|
+
if (!entry) return null;
|
|
1657
|
+
return { provider: entry.provider, model: entry.model };
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
// packages/agent-runtime/builtinPlatformAgentConfigs.ts
|
|
1661
|
+
function buildConfig(e) {
|
|
1662
|
+
const key = publicAgentKey(e.id);
|
|
1663
|
+
const rawRecord = {
|
|
1664
|
+
dbKey: key,
|
|
1665
|
+
isPublic: true,
|
|
1666
|
+
provider: e.provider,
|
|
1667
|
+
model: e.model,
|
|
1668
|
+
apiSource: e.apiSource ?? "platform",
|
|
1669
|
+
useServerProxy: e.useServerProxy ?? true
|
|
1670
|
+
};
|
|
1671
|
+
if (e.hasImageOutput) rawRecord.hasImageOutput = true;
|
|
1672
|
+
if (e.imageModel) rawRecord.imageModel = e.imageModel;
|
|
1673
|
+
if (e.imageWorkflow) rawRecord.imageWorkflow = e.imageWorkflow;
|
|
1674
|
+
if (e.imageConfig) rawRecord.imageConfig = e.imageConfig;
|
|
1675
|
+
return {
|
|
1676
|
+
key,
|
|
1677
|
+
name: e.name,
|
|
1678
|
+
provider: e.provider,
|
|
1679
|
+
model: e.model,
|
|
1680
|
+
apiSource: e.apiSource ?? "platform",
|
|
1681
|
+
useServerProxy: e.useServerProxy ?? true,
|
|
1682
|
+
rawRecord
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
var BUILTIN_PLATFORM_AGENT_CONFIGS = Object.fromEntries(
|
|
1686
|
+
builtinRuntimeFallbackEntries().map((e) => [publicAgentKey(e.id), buildConfig(e)])
|
|
1687
|
+
);
|
|
1688
|
+
function resolveBuiltinPlatformAgentConfig(agentRef) {
|
|
1689
|
+
return BUILTIN_PLATFORM_AGENT_CONFIGS[agentRef] ?? null;
|
|
1690
|
+
}
|
|
1691
|
+
function resolveBuiltinPlatformAgentRecord(agentRef) {
|
|
1692
|
+
const config = resolveBuiltinPlatformAgentConfig(agentRef);
|
|
1693
|
+
if (!config) return null;
|
|
1694
|
+
return {
|
|
1695
|
+
...config.rawRecord,
|
|
1696
|
+
dbKey: agentRef,
|
|
1697
|
+
...config.name ? { name: config.name } : {}
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
function applyBuiltinAgentRuntimeOverride(agentKey, record) {
|
|
1701
|
+
const fields = resolveBuiltinAgentRuntimeFields(agentKey);
|
|
1702
|
+
if (!fields) return record;
|
|
1703
|
+
const current = record;
|
|
1704
|
+
const rawNeedsOverride = current.rawRecord != null && (current.rawRecord.provider !== fields.provider || current.rawRecord.model !== fields.model);
|
|
1705
|
+
if (current.provider === fields.provider && current.model === fields.model && !rawNeedsOverride) {
|
|
1706
|
+
return record;
|
|
1707
|
+
}
|
|
1708
|
+
return {
|
|
1709
|
+
...record,
|
|
1710
|
+
provider: fields.provider,
|
|
1711
|
+
model: fields.model,
|
|
1712
|
+
...current.rawRecord ? {
|
|
1713
|
+
rawRecord: {
|
|
1714
|
+
...current.rawRecord,
|
|
1715
|
+
provider: fields.provider,
|
|
1716
|
+
model: fields.model
|
|
1717
|
+
}
|
|
1718
|
+
} : {}
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1646
1722
|
// packages/chat/dialog/dialogAgentPolicy.ts
|
|
1647
1723
|
var resolveDialogAgentMode = (dialog) => {
|
|
1648
1724
|
if (dialog?.agentMode === "auto") return "auto";
|
|
@@ -3444,7 +3520,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
3444
3520
|
runtimeOptions: args.runtimeOptions
|
|
3445
3521
|
});
|
|
3446
3522
|
if (agentKeyToUse) {
|
|
3447
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
3523
|
+
const { streamAgentChatTurn } = await import("./agentSlice-L3S542FP.js");
|
|
3448
3524
|
await dispatch(
|
|
3449
3525
|
streamAgentChatTurn({
|
|
3450
3526
|
agentKey: agentKeyToUse,
|
|
@@ -4641,7 +4717,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
4641
4717
|
metadataReadFailures
|
|
4642
4718
|
});
|
|
4643
4719
|
if (!plan.deleteCandidates.length) return plan;
|
|
4644
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
4720
|
+
const { deleteFileAction } = await import("./deleteFile-74VF4EAJ.js");
|
|
4645
4721
|
for (const candidate of plan.deleteCandidates) {
|
|
4646
4722
|
if (candidate.fileDbKey) {
|
|
4647
4723
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -4703,7 +4779,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4703
4779
|
}
|
|
4704
4780
|
if (isCurrentDialog) {
|
|
4705
4781
|
await thunkApi.dispatch(resetMsgs());
|
|
4706
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
4782
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-MJAX2T2X.js");
|
|
4707
4783
|
dispatch(clearPendingAttachments2());
|
|
4708
4784
|
clearWorkflow();
|
|
4709
4785
|
}
|
|
@@ -4712,39 +4788,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4712
4788
|
|
|
4713
4789
|
// packages/chat/dialog/dialogSlice.ts
|
|
4714
4790
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
4715
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
4791
|
+
const { createDialogAction } = await import("./createDialogAction-BLNYPWJ6.js");
|
|
4716
4792
|
return createDialogAction(args, thunkApi);
|
|
4717
4793
|
};
|
|
4718
4794
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
4719
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
4795
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-RMKFWLA3.js");
|
|
4720
4796
|
return createAgentAutomationAction(args, thunkApi);
|
|
4721
4797
|
};
|
|
4722
4798
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
4723
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
4799
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-V5H4LWFR.js");
|
|
4724
4800
|
return updateDialogTitleAction(args, thunkApi);
|
|
4725
4801
|
};
|
|
4726
4802
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
4727
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
4803
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-T645TULN.js");
|
|
4728
4804
|
return addDialogAgentAction(args, thunkApi);
|
|
4729
4805
|
};
|
|
4730
4806
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
4731
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
4807
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-S3LYHK4M.js");
|
|
4732
4808
|
return removeDialogAgentAction(args, thunkApi);
|
|
4733
4809
|
};
|
|
4734
4810
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
4735
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
4811
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-ZZJOZQEM.js");
|
|
4736
4812
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
4737
4813
|
};
|
|
4738
4814
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
4739
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
4815
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-ZWCYLWVK.js");
|
|
4740
4816
|
return switchDialogAgentAction(args, thunkApi);
|
|
4741
4817
|
};
|
|
4742
4818
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
4743
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
4819
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-L5ET3HEX.js");
|
|
4744
4820
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
4745
4821
|
};
|
|
4746
4822
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
4747
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
4823
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-V3SKWOOV.js");
|
|
4748
4824
|
return handleSendMessageAction(args, thunkApi);
|
|
4749
4825
|
};
|
|
4750
4826
|
function clearDialogState() {
|
|
@@ -4757,7 +4833,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
4757
4833
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
4758
4834
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
4759
4835
|
try {
|
|
4760
|
-
const { createDocState } = await import("./docStore-
|
|
4836
|
+
const { createDocState } = await import("./docStore-472FHNNN.js");
|
|
4761
4837
|
const pageKey = await createDocState(
|
|
4762
4838
|
{ slateData, title },
|
|
4763
4839
|
{ dispatch, getState }
|
|
@@ -4927,6 +5003,9 @@ export {
|
|
|
4927
5003
|
parseUiAskChoiceContent,
|
|
4928
5004
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
4929
5005
|
buildPersonalizationDialogPolicyContext,
|
|
5006
|
+
resolveBuiltinPlatformAgentConfig,
|
|
5007
|
+
resolveBuiltinPlatformAgentRecord,
|
|
5008
|
+
applyBuiltinAgentRuntimeOverride,
|
|
4930
5009
|
resolveDialogRuntimeAgentKey,
|
|
4931
5010
|
resolveHandleSendMessageContext,
|
|
4932
5011
|
estimateMissingUsage,
|
|
@@ -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-N3H3HQ7G.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|