nolo-cli 0.223.0-alpha.1 → 0.224.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-4GGQQHOB.js → _executeModel-4WBUORCW.js} +40 -39
- package/{addContentAction-GDHDOF4U.js → addContentAction-EQXMFNPR.js} +4 -4
- package/{addDialogAgentAction-CAKRU3ZT.js → addDialogAgentAction-RSDZDASD.js} +3 -3
- package/{agentDeleteCommand-BPV2XZL7.js → agentDeleteCommand-BB6KU5AO.js} +58 -57
- package/{agentEmailCommands-EJOS75YL.js → agentEmailCommands-KMHPL6OH.js} +55 -54
- package/{agentListCommands-HIZODBF3.js → agentListCommands-5UNM7CGG.js} +27 -27
- package/{agentMachineCommands-ZMQ2CY7Y.js → agentMachineCommands-OC5D4YZW.js} +23 -23
- package/{agentProviderCommands-WKJOAWBP.js → agentProviderCommands-ZCH37KAL.js} +2 -2
- package/{agentRecordCommands-OMXVDLDX.js → agentRecordCommands-S2IVVEES.js} +54 -53
- package/{agentRunCommand-CB34YWMV.js → agentRunCommand-M22Y3D5U.js} +55 -53
- package/{agentRunControl-JNONH3RP.js → agentRunControl-QDFW5P2T.js} +6 -6
- package/{agentRuntimeLocal-QZPFWMLG.js → agentRuntimeLocal-SD7U2EGY.js} +21 -21
- package/{agentSlice-RD2CDU7T.js → agentSlice-AJPMMBOP.js} +4 -4
- package/{appDeleteCommands-QCCFDIEQ.js → appDeleteCommands-NE3NQQJL.js} +24 -24
- package/{appDeployCommands-V2T7TNMQ.js → appDeployCommands-2BAHY522.js} +24 -24
- package/{appDeployStatusCommands-6PGH7ZCG.js → appDeployStatusCommands-JTW6LZNC.js} +24 -24
- package/{appGetCommands-3L7WWJA6.js → appGetCommands-WKFEJO6A.js} +24 -24
- package/{appListCommands-ENJCK4PO.js → appListCommands-HNAZZLFX.js} +24 -24
- package/{authCommand-6V47SYGK.js → authCommand-VQP625QS.js} +16 -12
- package/{authCommands-GAJ3NIXO.js → authCommands-PAKU3CJZ.js} +5 -1
- package/{builtinSkillRegistry-2ECA42FC.js → builtinSkillRegistry-PXH7EGQB.js} +3 -3
- package/{chunk-AN74ON4G.js → chunk-2KTUDBG7.js} +1 -1
- package/{chunk-I7WBYGBP.js → chunk-2OLYKYNY.js} +2 -2
- package/{chunk-BGP2EDFG.js → chunk-4A2JIXR2.js} +1 -1
- package/{chunk-ON37YXGX.js → chunk-53X6PS42.js} +8 -8
- package/{chunk-2CI3ZFWD.js → chunk-5OZC7R7Y.js} +4 -4
- package/{chunk-5CHGAKRT.js → chunk-5R63B62U.js} +4 -4
- package/{chunk-ODJ7BVSI.js → chunk-652XYZGP.js} +3 -3
- package/{chunk-6WU5572L.js → chunk-6D7NVU66.js} +3 -3
- package/{chunk-DVQH4BTR.js → chunk-6E2NWYT4.js} +5 -1
- package/{chunk-27PCUMJI.js → chunk-6NKA6RKF.js} +1 -1
- package/{chunk-I4EADJ4P.js → chunk-6RQFZCKH.js} +16 -16
- package/{chunk-MYHNBEXD.js → chunk-AFHOCBSP.js} +1 -1
- package/{chunk-44X52WOJ.js → chunk-AVHRSJUH.js} +2 -2
- package/{chunk-SQYIK6HO.js → chunk-BGGHA5DV.js} +1 -1
- package/chunk-BJF2MHJ3.js +118 -0
- package/{chunk-B4GOW4MT.js → chunk-BKJSRO66.js} +26 -26
- package/{chunk-4DESLZTK.js → chunk-CXDPIPZ4.js} +2 -2
- package/{chunk-QNWG52I4.js → chunk-DJSTBAOU.js} +4 -4
- package/{chunk-WJVYAO6P.js → chunk-EGXPAWLG.js} +1 -1
- package/{chunk-SVT62ULE.js → chunk-EK7PGVPY.js} +13 -13
- package/{chunk-FS2XP5D7.js → chunk-EOWLBDY6.js} +1 -1
- package/{chunk-GYVCJABP.js → chunk-EVYGYDPG.js} +5 -5
- package/{chunk-EIAI3PPH.js → chunk-FRSBYNWI.js} +2 -2
- package/{chunk-MDLS23JK.js → chunk-G2EJ7NL4.js} +2 -2
- package/{chunk-UB3D4TRQ.js → chunk-GGKNJ42M.js} +2 -2
- package/{chunk-DNKTQ3IN.js → chunk-GIABSSWQ.js} +1 -1
- package/{chunk-PJCIP64Z.js → chunk-GNHMRBYZ.js} +1 -1
- package/{chunk-AD5EWDFD.js → chunk-GVGOEMNV.js} +1 -1
- package/{chunk-XWVCYUUU.js → chunk-H5LWB3D3.js} +7 -117
- package/{chunk-AIHYNKGV.js → chunk-H7R3365N.js} +3 -3
- package/{chunk-RDH5CQ4T.js → chunk-HCJFGH6Y.js} +3 -3
- package/{chunk-O6J3OTOP.js → chunk-HJAGA3GR.js} +3 -3
- package/{chunk-3LMUPOHG.js → chunk-IWH5SOU4.js} +2 -2
- package/{chunk-FJK526XH.js → chunk-IWQAOW2X.js} +2 -2
- package/{chunk-F3GRJO4Z.js → chunk-J6T25AJ6.js} +1 -1
- package/{chunk-SY3C4SQ7.js → chunk-JC5XLWZK.js} +3 -3
- package/{chunk-HYIETXA6.js → chunk-JVRQ6YVK.js} +1 -1
- package/{chunk-2GJKRKI6.js → chunk-K5FNYHZC.js} +1 -1
- package/{chunk-7ET2U67U.js → chunk-KN3HEZIQ.js} +1 -1
- package/{chunk-7EEZJ6BS.js → chunk-KOXKKHFE.js} +1 -1
- package/{chunk-LVL6GFCM.js → chunk-KPAFQHRT.js} +3 -3
- package/{chunk-2UCBGYO4.js → chunk-LE6LGAJE.js} +1 -1
- package/{chunk-X7UF53VA.js → chunk-ME4XUFTD.js} +3 -3
- package/{chunk-MBG66ZBH.js → chunk-MOMR7NMG.js} +1 -1
- package/{chunk-AQZ6BMRK.js → chunk-OGHP3CTL.js} +1 -1
- package/{chunk-DWX2HEVC.js → chunk-OK4MZRJ6.js} +14 -14
- package/{chunk-7JLY4WYF.js → chunk-OOF7XDZF.js} +2 -2
- package/{chunk-34J5K2YA.js → chunk-OXKUPBAQ.js} +2 -2
- package/{chunk-MAIITKBT.js → chunk-PFJNLBRU.js} +2 -2
- package/{chunk-JA3ICVJY.js → chunk-PVZY6P3S.js} +1 -1
- package/{chunk-IILMY4W4.js → chunk-PYIMOZSX.js} +3 -3
- package/{chunk-CIRB724Q.js → chunk-Q6HOUF4O.js} +1 -1
- package/{chunk-FYF2TONJ.js → chunk-Q7WP5RPC.js} +1 -1
- package/{chunk-YWWDC3O7.js → chunk-QG3USDTD.js} +5 -5
- package/{chunk-WAE3GFCJ.js → chunk-QLFCTYRH.js} +1 -1
- package/{chunk-NWP2OYOX.js → chunk-RXJ26SQW.js} +4 -4
- package/{chunk-MZLE5HQ3.js → chunk-S7RA7A4X.js} +26 -25
- package/{chunk-YU4ZPWVF.js → chunk-SASHAZ67.js} +1 -1
- package/chunk-SH3IKNCG.js +100 -0
- package/{chunk-MS4NZNKI.js → chunk-SJYK3LLP.js} +4 -4
- package/{chunk-OBWT45ZU.js → chunk-SRL56PI2.js} +3 -3
- package/{chunk-T6DXNI6Z.js → chunk-SYQR7FQS.js} +2 -2
- package/{chunk-WKGQSYTB.js → chunk-TRWT3EE3.js} +1 -1
- package/{chunk-Z2PITYZN.js → chunk-TVFRV3UQ.js} +16 -16
- package/{chunk-3IK6ILVW.js → chunk-UJKTI5PG.js} +6 -6
- package/{chunk-P5ZJRTCH.js → chunk-ULK35M44.js} +30 -30
- package/{chunk-KQSYAIZR.js → chunk-UMRI2IRY.js} +3 -3
- package/{chunk-CKG3PRZ7.js → chunk-VALBGPM6.js} +106 -50
- package/{chunk-WI67URFP.js → chunk-WOIURUUV.js} +4 -4
- package/{chunk-WUUH4LWZ.js → chunk-XUJZYUIM.js} +9 -9
- package/{chunk-NIZ2BXFD.js → chunk-XWGDCWXY.js} +2 -2
- package/{chunk-PJVKMGPZ.js → chunk-ZLNHUFOF.js} +133 -106
- package/{chunk-CMZ3Z5PT.js → chunk-ZLOSGVCQ.js} +3 -3
- package/{cliAgentConfigHelpers-TKYL43MT.js → cliAgentConfigHelpers-PO3MVDME.js} +7 -7
- package/{cliLocalAgentRecordReader-MHHD4T7R.js → cliLocalAgentRecordReader-Z7CH4K4R.js} +25 -25
- package/{commandRegistry-5DA5UP7S.js → commandRegistry-3JVE76K2.js} +61 -61
- package/{contentThunks-5GUQ7FWJ.js → contentThunks-SRKUHSBR.js} +17 -17
- package/{createAgentAutomationAction-UCLTHQRI.js → createAgentAutomationAction-B4BQV46J.js} +17 -17
- package/{createDialogAction-UPN774AF.js → createDialogAction-IONSKZIX.js} +19 -18
- package/{createPageAction-JRQ2TA4O.js → createPageAction-K75KBQOO.js} +18 -18
- package/{dbSlice-WNON7TOL.js → dbSlice-ZJPDIFER.js} +3 -3
- package/{dialogCommands-VRI7VCXH.js → dialogCommands-6KQEBHSG.js} +26 -26
- package/{dialogNotifyCommand-6TMCX4D2.js → dialogNotifyCommand-WIZFFEY3.js} +8 -8
- package/{dialogSlice-LFNVUSAN.js → dialogSlice-GPALSBQM.js} +15 -15
- package/{docCreateCommands-AMPXMOX3.js → docCreateCommands-XZOLWBRC.js} +23 -23
- package/{docDeleteCommands-I5WFAEHP.js → docDeleteCommands-ZSO4LGWE.js} +24 -24
- package/{docReadCommands-X53ELNIE.js → docReadCommands-TTMXCDER.js} +23 -23
- package/{docStore-2VAWVLWH.js → docStore-O43KOHIX.js} +4 -4
- package/{docUpdateCommands-6QPNDC7M.js → docUpdateCommands-PRG6WOXL.js} +23 -23
- package/{getPricing-MB2GBXOK.js → getPricing-YH3VMSVU.js} +3 -3
- package/{handleSendMessageAction-AAJOHXOB.js → handleSendMessageAction-I2GHUSHZ.js} +34 -34
- package/{hostCredentialCreate-GLMJ22M6.js → hostCredentialCreate-V775SKCE.js} +54 -53
- package/index.js +4 -4
- package/{localRuntimeAdapter-BMP57P42.js → localRuntimeAdapter-SAMUDW5S.js} +53 -52
- package/{machineCommands-3MLIAK5Q.js → machineCommands-ZXZWGMFE.js} +54 -53
- package/{machineWsRunDispatch-FKIGROQF.js → machineWsRunDispatch-3ZEI4BEC.js} +54 -53
- package/{memberThunks-ZGLZ36PK.js → memberThunks-JRYNONYV.js} +5 -5
- package/{models-ULVWLSQ6.js → models-CXINDUJA.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-HK63GMF4.js → projectArchive-V7EYBAX6.js} +18 -18
- package/{providerPresetApply-OIFQ73LH.js → providerPresetApply-SHT2SUVB.js} +5 -5
- package/{providerRegistry-KZ3SDZ3D.js → providerRegistry-TA7EGCVZ.js} +5 -5
- package/{read-MRQHJMJ2.js → read-Q7GOHGNP.js} +2 -2
- package/{readDocTool-4BGTXTXA.js → readDocTool-Z5OQ6422.js} +1 -1
- package/{readlineWorkspace-AKAHSCNY.js → readlineWorkspace-S4VRNWYG.js} +65 -63
- package/{removeDialogAgentAction-B6H7DXFM.js → removeDialogAgentAction-U3F2MNAY.js} +4 -4
- package/{runAgentClientLoop-UVAWGEON.js → runAgentClientLoop-MQLOUDF5.js} +37 -36
- package/{runtimeDoctorCommands-FW6XKDUG.js → runtimeDoctorCommands-I47JN4HS.js} +5 -5
- package/{setDialogExtraReferencesAction-EVCY3TRW.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +4 -4
- package/{setPrimaryDialogAgentAction-KPFVPHCJ.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +4 -4
- package/{settingThunks-ENOAK2WV.js → settingThunks-AXTBX3Q5.js} +7 -7
- package/{spaceCommands-DTTNAS2L.js → spaceCommands-IB6FKWIC.js} +23 -23
- package/{streamAgentChatTurn-R5UY25VB.js → streamAgentChatTurn-GMNIKJVL.js} +45 -44
- package/{switchDialogAgentAction-SZ44XDRY.js → switchDialogAgentAction-UOFIAGPL.js} +3 -3
- package/{tools-HWFG6GMJ.js → tools-MWIF3S4T.js} +31 -30
- package/{tuiSummaryLlmCaller-HQQZAMYF.js → tuiSummaryLlmCaller-7LWYTHLM.js} +12 -12
- package/{updateDialogTitleAction-KNPOAMVS.js → updateDialogTitleAction-ZXHMZFSX.js} +17 -17
- package/{usageCommand-FWZCB7AM.js → usageCommand-RVKHEPLU.js} +1 -1
- package/{usageRebuildCommand-SP2BLNJU.js → usageRebuildCommand-GRAFOZF2.js} +2 -2
- package/{workloadLifecycle-DYNEYHV5.js → workloadLifecycle-O2I3NZ2Q.js} +3 -3
|
@@ -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-GRAFOZF2.js");
|
|
11662
11662
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
11663
11663
|
}
|
|
11664
11664
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11729
11729
|
return 0;
|
|
11730
11730
|
}
|
|
11731
11731
|
async function resolveUsageUserId(env) {
|
|
11732
|
-
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-
|
|
11732
|
+
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-PO3MVDME.js");
|
|
11733
11733
|
return resolveLocalUserId(env);
|
|
11734
11734
|
}
|
|
11735
11735
|
function isLocalDbMissingError(error) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SRL56PI2.js";
|
|
7
7
|
import {
|
|
8
8
|
accumulateToolCallDelta,
|
|
9
9
|
createThinkParserState,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
stablePromptCacheKey,
|
|
32
32
|
toOpenAiCompatibleMessages,
|
|
33
33
|
toResponsesTools
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PFJNLBRU.js";
|
|
35
35
|
import {
|
|
36
36
|
isMeaningfulChatCompletionOutput,
|
|
37
37
|
isMeaningfulResponsesOutput
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
resolvePlatformAuthToken,
|
|
52
52
|
resolvePlatformServerUrl,
|
|
53
53
|
resolveProviderTransportDecision
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2OLYKYNY.js";
|
|
55
55
|
import {
|
|
56
56
|
isRecord
|
|
57
57
|
} from "./chunk-KUG52IAP.js";
|
|
58
58
|
import {
|
|
59
59
|
NOLO_CLIENT_VERSION_HEADER,
|
|
60
60
|
isPlatformMimoProviderModel
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-VALBGPM6.js";
|
|
62
62
|
|
|
63
63
|
// packages/ai/token/sseUsageExtract.ts
|
|
64
64
|
var TOKEN_FIELDS = [
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HJAGA3GR.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XUJZYUIM.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BKJSRO66.js";
|
|
22
22
|
import {
|
|
23
23
|
createSSEParser,
|
|
24
24
|
createToolRunId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
toolRunSetPending,
|
|
28
28
|
toolRunStarted,
|
|
29
29
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-53X6PS42.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-S7RA7A4X.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RXJ26SQW.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MOMR7NMG.js";
|
|
45
45
|
import {
|
|
46
46
|
addActiveController,
|
|
47
47
|
getActiveDialogKey,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
} from "./chunk-VREDDN25.js";
|
|
57
57
|
import {
|
|
58
58
|
write
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-AVHRSJUH.js";
|
|
60
60
|
import {
|
|
61
61
|
createAsyncThunk
|
|
62
62
|
} from "./chunk-7Z6EW7AH.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
projectUserPartForModel,
|
|
71
71
|
resolveOutboundDiagnosticSink,
|
|
72
72
|
resolveOutboundWire
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-4A2JIXR2.js";
|
|
74
74
|
import {
|
|
75
75
|
accumulateToolCallDelta,
|
|
76
76
|
createThinkParserState,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from "./chunk-56GBUMO5.js";
|
|
83
83
|
import {
|
|
84
84
|
normalizeChatCompletionsBodyForProvider
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-PFJNLBRU.js";
|
|
86
86
|
import {
|
|
87
87
|
classifyApiError,
|
|
88
88
|
classifyGenerationError,
|
|
@@ -90,10 +90,10 @@ import {
|
|
|
90
90
|
} from "./chunk-TLE77UJ5.js";
|
|
91
91
|
import {
|
|
92
92
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-XWGDCWXY.js";
|
|
94
94
|
import {
|
|
95
95
|
getModelInfo
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-HCJFGH6Y.js";
|
|
97
97
|
import {
|
|
98
98
|
isAbortError
|
|
99
99
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
} from "./chunk-3EUW3WEO.js";
|
|
119
119
|
import {
|
|
120
120
|
getApiEndpoint
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-LE6LGAJE.js";
|
|
122
122
|
import {
|
|
123
123
|
isRecord
|
|
124
124
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-53X6PS42.js";
|
|
6
6
|
import {
|
|
7
7
|
isGatewayHttpStatus
|
|
8
8
|
} from "./chunk-NF64D32W.js";
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
resolvePageReadMarkdown,
|
|
20
20
|
slateToSimplifiedMarkdown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BGGHA5DV.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchAndCacheMessages
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-S7RA7A4X.js";
|
|
25
25
|
import {
|
|
26
26
|
createSpaceKey
|
|
27
27
|
} from "./chunk-UAD2WT54.js";
|
|
28
28
|
import {
|
|
29
29
|
read
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AVHRSJUH.js";
|
|
31
31
|
import {
|
|
32
32
|
getRuntimeServerContext
|
|
33
33
|
} from "./chunk-2VUZSVAS.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
extractRuntimePageCapabilities,
|
|
42
42
|
resolveBuiltinSkillPage,
|
|
43
43
|
resolveSkillGraphFromRoots
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GNHMRBYZ.js";
|
|
45
45
|
import {
|
|
46
46
|
extractCustomId
|
|
47
47
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-6OVNSQHN.js";
|
|
7
7
|
import {
|
|
8
8
|
BUILTIN_AGENT_CATALOG
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UJKTI5PG.js";
|
|
10
10
|
import {
|
|
11
11
|
publicAgentKey
|
|
12
12
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-3EUW3WEO.js";
|
|
19
19
|
import {
|
|
20
20
|
getModelConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LE6LGAJE.js";
|
|
22
22
|
import {
|
|
23
23
|
asTrimmedLowercaseString
|
|
24
24
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LE6LGAJE.js";
|
|
4
4
|
import {
|
|
5
5
|
isPlatformHostedDeepseekModel,
|
|
6
6
|
isPlatformHostedOpenAIImageModel,
|
|
7
7
|
resolvePlatformHostedRouting
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VALBGPM6.js";
|
|
9
9
|
import {
|
|
10
10
|
asTrimmedLowercaseString
|
|
11
11
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WORKFLOW_GUIDANCE_SKILL_SLUGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GNHMRBYZ.js";
|
|
4
4
|
import {
|
|
5
5
|
noloAgentId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KN3HEZIQ.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeServerOrigin
|
|
9
9
|
} from "./chunk-CF7PE763.js";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chooseMemoryOwners,
|
|
3
|
+
loadMemoryCandidatesFromDb
|
|
4
|
+
} from "./chunk-BJF2MHJ3.js";
|
|
1
5
|
import {
|
|
2
6
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QG3USDTD.js";
|
|
4
8
|
import {
|
|
5
9
|
prepareAndPersistMessage,
|
|
6
10
|
uiAskChoiceFunc,
|
|
7
11
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-S7RA7A4X.js";
|
|
9
13
|
import {
|
|
10
14
|
require_format
|
|
11
15
|
} from "./chunk-BUDVRYES.js";
|
|
@@ -18,7 +22,7 @@ import {
|
|
|
18
22
|
removeCachedEntity,
|
|
19
23
|
upsertSSREntity,
|
|
20
24
|
write
|
|
21
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AVHRSJUH.js";
|
|
22
26
|
import {
|
|
23
27
|
isDevelopment
|
|
24
28
|
} from "./chunk-AGP3YSEC.js";
|
|
@@ -28,11 +32,6 @@ import {
|
|
|
28
32
|
import {
|
|
29
33
|
extractCustomId
|
|
30
34
|
} from "./chunk-M2EJHDJP.js";
|
|
31
|
-
import {
|
|
32
|
-
createMemoryKey,
|
|
33
|
-
memoryOwnerRange,
|
|
34
|
-
memorySubjectKindRange
|
|
35
|
-
} from "./chunk-SYTHYBMI.js";
|
|
36
35
|
import {
|
|
37
36
|
createDialogKey,
|
|
38
37
|
dialogMessageRange
|
|
@@ -262,113 +261,6 @@ var mergeGreetingWithRelationshipRecap = (input) => {
|
|
|
262
261
|
\u5982\u679C\u4F60\u8FD8\u60F3\u63A5\u7740\u90A3\u4E2A\u70B9\u7EE7\u7EED\uFF0C\u6211\u4EEC\u53EF\u4EE5\u4ECE\u90A3\u91CC\u5F80\u4E0B\u8D70\uFF1B\u5982\u679C\u60F3\u6362\u4E2A\u65B9\u5411\u4E5F\u53EF\u4EE5\u3002`;
|
|
263
262
|
};
|
|
264
263
|
|
|
265
|
-
// packages/ai/memory/queryShared.ts
|
|
266
|
-
var chooseMemoryOwners = (input) => {
|
|
267
|
-
const owners = [];
|
|
268
|
-
if (input.userId) {
|
|
269
|
-
owners.push({ ownerType: "user", ownerId: input.userId });
|
|
270
|
-
}
|
|
271
|
-
if (input.spaceId) {
|
|
272
|
-
owners.push({ ownerType: "space", ownerId: input.spaceId });
|
|
273
|
-
}
|
|
274
|
-
return owners;
|
|
275
|
-
};
|
|
276
|
-
var loadOwnerItemsFromDb = async (db, owner, limit) => {
|
|
277
|
-
const range = memoryOwnerRange(owner.ownerType, owner.ownerId);
|
|
278
|
-
const refs = [];
|
|
279
|
-
for await (const [, value] of db.iterator({
|
|
280
|
-
gte: range.start,
|
|
281
|
-
lte: range.end,
|
|
282
|
-
reverse: true
|
|
283
|
-
})) {
|
|
284
|
-
refs.push(value ?? {});
|
|
285
|
-
if (refs.length >= limit) break;
|
|
286
|
-
}
|
|
287
|
-
const items = await Promise.all(
|
|
288
|
-
refs.map(
|
|
289
|
-
(ref) => typeof ref?.memoryId === "string" ? db.get(createMemoryKey(owner.ownerType, owner.ownerId, ref.memoryId)).catch(() => null) : Promise.resolve(null)
|
|
290
|
-
)
|
|
291
|
-
);
|
|
292
|
-
return items.filter((item) => !!item);
|
|
293
|
-
};
|
|
294
|
-
var loadSubjectKindItemsFromDb = async (db, subject, kind, limit) => {
|
|
295
|
-
const range = memorySubjectKindRange(subject.subjectType, subject.subjectId, kind);
|
|
296
|
-
const refs = [];
|
|
297
|
-
for await (const [, value] of db.iterator({
|
|
298
|
-
gte: range.start,
|
|
299
|
-
lte: range.end,
|
|
300
|
-
reverse: true
|
|
301
|
-
})) {
|
|
302
|
-
refs.push(value ?? {});
|
|
303
|
-
if (refs.length >= limit) break;
|
|
304
|
-
}
|
|
305
|
-
const items = await Promise.all(
|
|
306
|
-
refs.map(
|
|
307
|
-
(ref) => typeof ref?.memoryKey === "string" ? db.get(ref.memoryKey).catch(() => null) : Promise.resolve(null)
|
|
308
|
-
)
|
|
309
|
-
);
|
|
310
|
-
return items.filter((item) => !!item);
|
|
311
|
-
};
|
|
312
|
-
var loadMemoryCandidatesFromDb = async (db, input) => {
|
|
313
|
-
const kinds = input.kinds ?? ["episodic", "semantic", "procedural"];
|
|
314
|
-
const ownerLimit = input.ownerLimit ?? 12;
|
|
315
|
-
const ownerFallback = input.ownerFallback ?? "onSubjectMiss";
|
|
316
|
-
const reserve = Math.max(0, input.corroboratedProceduralReserve ?? 0);
|
|
317
|
-
const ownerKeySet = new Set(
|
|
318
|
-
input.owners.filter((owner) => owner.ownerId).map((owner) => `${owner.ownerType}:${owner.ownerId}`)
|
|
319
|
-
);
|
|
320
|
-
const subjects = input.subjects.filter(
|
|
321
|
-
(subject) => !!subject.subjectId
|
|
322
|
-
);
|
|
323
|
-
const subjectResults = subjects.length > 0 ? await Promise.all(
|
|
324
|
-
subjects.flatMap(
|
|
325
|
-
(subject) => kinds.map(
|
|
326
|
-
(kind) => loadSubjectKindItemsFromDb(db, subject, kind, ownerLimit)
|
|
327
|
-
)
|
|
328
|
-
)
|
|
329
|
-
) : [];
|
|
330
|
-
const subjectHitCount = subjectResults.reduce((sum, items) => sum + items.length, 0);
|
|
331
|
-
const shouldLoadOwnerFallback = ownerFallback !== "never" && (subjects.length === 0 || subjectHitCount === 0 || ownerFallback === "always");
|
|
332
|
-
const results = shouldLoadOwnerFallback ? await Promise.all(
|
|
333
|
-
[
|
|
334
|
-
...subjectResults,
|
|
335
|
-
...input.owners.map((owner) => loadOwnerItemsFromDb(db, owner, ownerLimit))
|
|
336
|
-
]
|
|
337
|
-
) : subjectResults;
|
|
338
|
-
if (reserve > 0 && kinds.includes("procedural")) {
|
|
339
|
-
const probeLimit = ownerLimit * 2;
|
|
340
|
-
const reserveResults = await Promise.all(
|
|
341
|
-
subjects.map(
|
|
342
|
-
(subject) => loadSubjectKindItemsFromDb(db, subject, "procedural", probeLimit)
|
|
343
|
-
)
|
|
344
|
-
);
|
|
345
|
-
const corroborated = reserveResults.flat().filter((item) => item && item.recurrenceEvidence).sort((a, b) => b.createdAt.localeCompare(a.createdAt)).slice(0, reserve);
|
|
346
|
-
for (const item of corroborated) {
|
|
347
|
-
results.push([item]);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
const kindSet = new Set(kinds);
|
|
351
|
-
const seen = /* @__PURE__ */ new Set();
|
|
352
|
-
const merged = [];
|
|
353
|
-
for (const items of results) {
|
|
354
|
-
for (const item of items) {
|
|
355
|
-
if (seen.has(item.id)) continue;
|
|
356
|
-
if (!kindSet.has(item.kind)) continue;
|
|
357
|
-
if (ownerKeySet.size > 0 && !ownerKeySet.has(`${item.ownerType}:${item.ownerId}`)) {
|
|
358
|
-
continue;
|
|
359
|
-
}
|
|
360
|
-
if (!shouldLoadOwnerFallback && subjects.length > 0 && !subjects.some(
|
|
361
|
-
(subject) => subject.subjectType === item.subjectType && subject.subjectId === item.subjectId
|
|
362
|
-
)) {
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
seen.add(item.id);
|
|
366
|
-
merged.push(item);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
return merged;
|
|
370
|
-
};
|
|
371
|
-
|
|
372
264
|
// packages/ai/memory/understandingGreeting.ts
|
|
373
265
|
var UNDERSTANDING_TAG = "understanding-memory";
|
|
374
266
|
var facetPriority = {
|
|
@@ -854,8 +746,6 @@ var createDialogAction = async (args, thunkApi) => {
|
|
|
854
746
|
export {
|
|
855
747
|
resolveAgentMemoryPolicy,
|
|
856
748
|
buildMemorySubjectsForAgent,
|
|
857
|
-
chooseMemoryOwners,
|
|
858
|
-
loadMemoryCandidatesFromDb,
|
|
859
749
|
isLocalOwnerDialogAgents,
|
|
860
750
|
createDialogAction
|
|
861
751
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AFHOCBSP.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6D7NVU66.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OXKUPBAQ.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-BV3FLP2L.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-7DPNBQSV.js";
|
|
7
7
|
import {
|
|
8
8
|
ALL_MODELS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TRWT3EE3.js";
|
|
10
10
|
import {
|
|
11
11
|
asTrimmedNonEmptyStringArray
|
|
12
12
|
} from "./chunk-I42VC5KR.js";
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
} from "./chunk-PSCNXBYA.js";
|
|
16
16
|
import {
|
|
17
17
|
MODEL_LOOKUP_MAP
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LE6LGAJE.js";
|
|
19
19
|
import {
|
|
20
20
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
21
21
|
isPlatformManagedProvider,
|
|
22
22
|
resolvePlatformEffectiveModel
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VALBGPM6.js";
|
|
24
24
|
import {
|
|
25
25
|
asOptionalFiniteNumber
|
|
26
26
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BKJSRO66.js";
|
|
4
4
|
import {
|
|
5
5
|
runtime_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S7RA7A4X.js";
|
|
7
7
|
import {
|
|
8
8
|
canonicalizeToolNames
|
|
9
9
|
} from "./chunk-6OVNSQHN.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-KUG52IAP.js";
|
|
13
13
|
import {
|
|
14
14
|
isNoloHostedProvider
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VALBGPM6.js";
|
|
16
16
|
import {
|
|
17
17
|
asTrimmedLowercaseString
|
|
18
18
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SRL56PI2.js";
|
|
7
7
|
import {
|
|
8
8
|
projectOpenAiToolImages
|
|
9
9
|
} from "./chunk-E2BESSAW.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getAntigravityUserAgent,
|
|
12
12
|
readAntigravityProjectId,
|
|
13
13
|
resolveAntigravityCloudCodeBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JC5XLWZK.js";
|
|
15
15
|
import {
|
|
16
16
|
asOptionalTrimmedString
|
|
17
17
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-4JH2UMJR.js";
|
|
7
7
|
import {
|
|
8
8
|
getModelConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LE6LGAJE.js";
|
|
10
10
|
import {
|
|
11
11
|
isPlatformHostedImageModel,
|
|
12
12
|
isPlatformManagedProvider,
|
|
13
13
|
resolvePlatformEffectiveModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VALBGPM6.js";
|
|
15
15
|
import {
|
|
16
16
|
asOptionalPositiveFiniteNumber
|
|
17
17
|
} from "./chunk-U6VC4MU4.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trimTrailingSlash
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2OLYKYNY.js";
|
|
4
4
|
import {
|
|
5
5
|
toErrorMessage
|
|
6
6
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
qwenTokenPlanModels,
|
|
15
15
|
stepfunModels,
|
|
16
16
|
stepfunStepPlanModels
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LE6LGAJE.js";
|
|
18
18
|
import {
|
|
19
19
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
|
|
20
20
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
|
|
21
21
|
PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
|
|
22
22
|
PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VALBGPM6.js";
|
|
24
24
|
import {
|
|
25
25
|
asTrimmedLowercaseString
|
|
26
26
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EVYGYDPG.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S7RA7A4X.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-S2NTVGA2.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
extractReasoningFromResponseOutput,
|
|
13
13
|
extractTextFromResponseOutput,
|
|
14
14
|
extractToolCallsFromResponseOutput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PFJNLBRU.js";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
18
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ULK35M44.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-53X6PS42.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TVFRV3UQ.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
13
|
} from "./chunk-SOF4OWDM.js";
|