nolo-cli 0.97.4 → 0.97.6

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.
Files changed (140) hide show
  1. package/{_executeModel-GWED52PB.js → _executeModel-E64QIKWF.js} +69 -67
  2. package/action-PNPQLJHG.js +20 -0
  3. package/{addContentAction-B2DRF7P6.js → addContentAction-DX6T34JR.js} +13 -12
  4. package/{addDialogAgentAction-T3I7IXPK.js → addDialogAgentAction-6SGG37BF.js} +17 -16
  5. package/{agentDeleteCommand-FH462XO5.js → agentDeleteCommand-76VXVM3N.js} +40 -39
  6. package/{agentEmailCommands-6UNG6QKI.js → agentEmailCommands-URGNKPPJ.js} +79 -77
  7. package/{agentListCommands-7QQZXKMN.js → agentListCommands-62NGDFOS.js} +50 -49
  8. package/{agentMachineCommands-DCBE3CPT.js → agentMachineCommands-SDIABR4D.js} +38 -37
  9. package/{agentProviderCommands-EMZCM6VA.js → agentProviderCommands-SG535ZMY.js} +1 -1
  10. package/{agentPullCommand-HF4A42D4.js → agentPullCommand-5DOL6RGF.js} +1 -1
  11. package/{agentRecordCommands-TNOVFCQ3.js → agentRecordCommands-ZICUGEEH.js} +73 -71
  12. package/{agentRunCommand-PAUTLE6D.js → agentRunCommand-66NCRPQ7.js} +76 -74
  13. package/{agentRunControl-2TTTUTSW.js → agentRunControl-3HWA2LLQ.js} +2 -2
  14. package/{agentRuntimeLocal-AY6YNUAL.js → agentRuntimeLocal-EZPUCRMS.js} +35 -34
  15. package/{agentSlice-FRLSN5HD.js → agentSlice-V2EDVUXC.js} +15 -14
  16. package/{appDeleteCommands-DFA4W66A.js → appDeleteCommands-7WLUFWPE.js} +35 -34
  17. package/{appDeployCommands-RDTG2IGP.js → appDeployCommands-NK22AMAW.js} +35 -34
  18. package/{appDeployStatusCommands-43XL5KEM.js → appDeployStatusCommands-PIWSMQET.js} +35 -34
  19. package/{appGetCommands-AKEAHGIG.js → appGetCommands-J3H6IHUT.js} +35 -34
  20. package/{appListCommands-F2H37K7K.js → appListCommands-CF4NYHRY.js} +35 -34
  21. package/{authCommand-2YPMMIJN.js → authCommand-T6UO5KPG.js} +20 -20
  22. package/{authCommands-FFDS4FVX.js → authCommands-KTIUCVVG.js} +4 -4
  23. package/{builtinSkillRegistry-CALVIJTX.js → builtinSkillRegistry-MAR5LPAC.js} +7 -6
  24. package/{chunk-4J3Q2KJL.js → chunk-2LM7XUCX.js} +10 -8
  25. package/{chunk-EKS2APRJ.js → chunk-2TYM4V33.js} +2 -2
  26. package/{chunk-O26PCYLS.js → chunk-2WJ57RJA.js} +6 -6
  27. package/{chunk-XVLDUNF7.js → chunk-3PELUSVV.js} +4 -4
  28. package/{chunk-C53ZG23R.js → chunk-4XYBLM4D.js} +4 -4
  29. package/{chunk-ZOVKKMF6.js → chunk-74D5HEDI.js} +1 -1
  30. package/{chunk-UQNS32WZ.js → chunk-7MTCBOOS.js} +1 -1
  31. package/chunk-A4SQRTZ6.js +15 -0
  32. package/chunk-AGIM7IMJ.js +147 -0
  33. package/{chunk-7WCQEMPB.js → chunk-ANRWQGOV.js} +27 -27
  34. package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
  35. package/{chunk-4HXY5QQG.js → chunk-APVTZ66V.js} +1 -1
  36. package/{chunk-OTEMQQZI.js → chunk-BFWQ65IZ.js} +1 -1
  37. package/{chunk-QMX4FNL4.js → chunk-BS7YHAQP.js} +84 -84
  38. package/{chunk-6D2JFXLY.js → chunk-BZ7NPA6G.js} +0 -2
  39. package/{chunk-34TW5T2M.js → chunk-CERE5KFG.js} +1 -1
  40. package/{chunk-TU5NE4U3.js → chunk-CV366NXM.js} +7 -7
  41. package/{chunk-KLMW4NNN.js → chunk-DBOMSOYX.js} +1 -1
  42. package/{chunk-AWF3WO5R.js → chunk-DHA6B3LS.js} +7 -7
  43. package/chunk-DZ7R5V3Y.js +164 -0
  44. package/{chunk-I3QNET24.js → chunk-E3YWHWCR.js} +20 -1
  45. package/{chunk-Z4CSIXYP.js → chunk-ELIMCKNX.js} +5 -5
  46. package/{chunk-CTUQJVQM.js → chunk-EMQZSES6.js} +1 -1
  47. package/{chunk-RSEEDUMS.js → chunk-EPCAQM3U.js} +2 -2
  48. package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
  49. package/{chunk-DCLMZ5TX.js → chunk-HP57OUJO.js} +5 -5
  50. package/{chunk-WILHZY7K.js → chunk-JNXHAQPJ.js} +4 -4
  51. package/{chunk-AZRHIN5B.js → chunk-K6U4NKFJ.js} +1 -1
  52. package/{chunk-3R7EAVTC.js → chunk-KFJ7ZWBF.js} +38 -38
  53. package/{chunk-PQ3B6KI6.js → chunk-LYKHXIQC.js} +92 -92
  54. package/{chunk-HYZIYH2H.js → chunk-NVRC52JS.js} +22 -20
  55. package/chunk-NWENLDMM.js +42 -0
  56. package/{chunk-YXXI6MJ2.js → chunk-OCZQEXMX.js} +56 -60
  57. package/{chunk-P6GMCCAT.js → chunk-OW4APERY.js} +1 -1
  58. package/{chunk-RJK4MLDC.js → chunk-OXEHLZNH.js} +18 -20
  59. package/{chunk-DSSTTEKI.js → chunk-PQ6BKMXB.js} +2 -2
  60. package/{chunk-VN45QM57.js → chunk-QNTL2KFU.js} +76 -76
  61. package/{chunk-QJC7X767.js → chunk-RJYTVNWD.js} +1 -1
  62. package/{chunk-CPUFH46E.js → chunk-ROFPWC4X.js} +12 -12
  63. package/{chunk-IAESIMK7.js → chunk-RX4HD4H7.js} +8 -8
  64. package/{chunk-7AEF6ZXP.js → chunk-SBFHKTI7.js} +7 -7
  65. package/{chunk-VVXRRZXE.js → chunk-SESH42J6.js} +3 -3
  66. package/{chunk-DDBBIUXZ.js → chunk-SH7KLR4U.js} +20 -20
  67. package/{chunk-DAWDCRIG.js → chunk-TAWF7YAW.js} +1 -1
  68. package/{chunk-ZYWQNCBN.js → chunk-TVCAR26G.js} +1 -1
  69. package/{chunk-APMUYAPK.js → chunk-U3C3IA32.js} +1 -1
  70. package/chunk-UJXNKP5V.js +760 -0
  71. package/{chunk-O2OWEFII.js → chunk-VCAQFMVN.js} +1 -1
  72. package/{chunk-KCDUTE5V.js → chunk-VEYL5MO5.js} +4 -4
  73. package/{chunk-WIWM4FE3.js → chunk-VY6VFGKR.js} +7 -746
  74. package/{chunk-XAYSAKSS.js → chunk-VZZUQTBR.js} +2 -2
  75. package/{chunk-CU3QB4HW.js → chunk-W72ISAKC.js} +3 -3
  76. package/{chunk-QKUMVP3O.js → chunk-WCGC6S77.js} +4 -4
  77. package/{chunk-SEZZCP3H.js → chunk-WGPKQLZO.js} +27 -27
  78. package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
  79. package/{chunk-6ZWMH6TJ.js → chunk-WS2VEVHS.js} +4 -5
  80. package/{chunk-7CHC4W22.js → chunk-XBIYSBSG.js} +5 -5
  81. package/{chunk-NR4IWY23.js → chunk-YWLAWZYQ.js} +40 -260
  82. package/{chunk-R5VLGKMK.js → chunk-Z7A2EDGT.js} +15 -15
  83. package/{chunk-VFWN2MLE.js → chunk-ZGNDLCYH.js} +170 -153
  84. package/{commandRegistry-PUSRUY6V.js → commandRegistry-N47CRDOH.js} +70 -70
  85. package/{contentThunks-JFPH7ZGN.js → contentThunks-RRD2XMWB.js} +32 -32
  86. package/{createAgentAutomationAction-AYUD3TVG.js → createAgentAutomationAction-OW4WEVHP.js} +35 -35
  87. package/{createDialogAction-5EJGAQL5.js → createDialogAction-L3WMTD5Z.js} +36 -35
  88. package/{createPageAction-OJVJJSAD.js → createPageAction-PWG3K3K7.js} +43 -42
  89. package/{dbSlice-DQ32LYTJ.js → dbSlice-BUB77DHH.js} +12 -11
  90. package/{deleteFile-NX6QHCWZ.js → deleteFile-HG4BF3CS.js} +8 -7
  91. package/{dialogCommands-TQ2EYOO3.js → dialogCommands-CNXJGME5.js} +38 -38
  92. package/{dialogSlice-L5SA2HCW.js → dialogSlice-M7ZWTW5D.js} +31 -31
  93. package/{docCreateCommands-YGTVED6F.js → docCreateCommands-U2TEDZHS.js} +34 -33
  94. package/{docDeleteCommands-Y2K6UBU5.js → docDeleteCommands-K4ME6F6S.js} +35 -34
  95. package/{docReadCommands-JSJTTCVY.js → docReadCommands-ZUAVR3HH.js} +34 -33
  96. package/{docStore-DAAP4WFC.js → docStore-IX7ASJUP.js} +13 -12
  97. package/{docUpdateCommands-X2ZC37D3.js → docUpdateCommands-UKEOVRTF.js} +34 -33
  98. package/{fetchMessages-67MEFPZR.js → fetchMessages-N2BW2L62.js} +4 -4
  99. package/getPricing-NMMFT3YI.js +1 -1
  100. package/{handleSendMessageAction-NCZABULQ.js → handleSendMessageAction-KMPC6UD4.js} +36 -36
  101. package/index.js +3 -3
  102. package/{localDialogRead-EBRS242U.js → localDialogRead-3FHUPYAR.js} +1 -1
  103. package/{localRuntimeDb-3LRMNLCM.js → localRuntimeDb-AXJREE2T.js} +1 -1
  104. package/{machineCommands-GRIO3LQG.js → machineCommands-U4RRZGU6.js} +79 -77
  105. package/{machineWsRunDispatch-65IU4CLA.js → machineWsRunDispatch-V3IOP2P2.js} +71 -69
  106. package/{memberThunks-5ZXPR63F.js → memberThunks-LEUNURN2.js} +21 -19
  107. package/package.json +1 -1
  108. package/{providerPresetApply-76AVU3HD.js → providerPresetApply-76AHT34P.js} +4 -4
  109. package/{providerRegistry-Z62NC45X.js → providerRegistry-6HAQAQXB.js} +4 -4
  110. package/{read-EPTJRAEF.js → read-TBK4DFHP.js} +8 -7
  111. package/{readDocTool-W4NDXNEX.js → readDocTool-TJFCZ3ND.js} +1 -1
  112. package/{readlineWorkspace-6F27WVAV.js → readlineWorkspace-QTCU2BC4.js} +327 -110
  113. package/{removeDialogAgentAction-BVAWQKXE.js → removeDialogAgentAction-CT5HGRZH.js} +20 -22
  114. package/{runAgentClientLoop-CKC7RYAK.js → runAgentClientLoop-4VOARXQF.js} +65 -63
  115. package/{runtimeDoctorCommands-3USD722U.js → runtimeDoctorCommands-EQJA4MGD.js} +2 -2
  116. package/{setDialogExtraReferencesAction-LYY45IAD.js → setDialogExtraReferencesAction-JOENKFTX.js} +14 -13
  117. package/{setPrimaryDialogAgentAction-73IL7DLU.js → setPrimaryDialogAgentAction-MHWOGXP3.js} +20 -22
  118. package/{chunk-SONWNI3L.js → settingThunks-KLPZNA6L.js} +104 -921
  119. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  120. package/{spaceCommands-JZO2QK77.js → spaceCommands-ZESRWSTC.js} +36 -35
  121. package/{streamAgentChatTurn-4PBF5RK5.js → streamAgentChatTurn-VDAVK7N3.js} +110 -108
  122. package/{switchDialogAgentAction-UUXDSQ6X.js → switchDialogAgentAction-JHA4JEYA.js} +14 -13
  123. package/{tableCommands-G7RV3RU3.js → tableCommands-6U4BMLRR.js} +7 -7
  124. package/{toolApiClient-INIQCPGY.js → toolApiClient-EJT6TMFG.js} +4 -4
  125. package/{tools-BQ375D2L.js → tools-VJ3L5V6D.js} +53 -51
  126. package/{tuiSummaryLlmCaller-74NRRLVW.js → tuiSummaryLlmCaller-QUCBFGZK.js} +18 -17
  127. package/{updateDialogTitleAction-DTREH6RR.js → updateDialogTitleAction-GBUSLAQR.js} +39 -39
  128. package/action-GI44T4DR.js +0 -31
  129. package/browser-image-compression-MFDTD7K6.js +0 -1763
  130. package/chatQueueReduxAdapter-B3PSJ3GC.js +0 -187
  131. package/chunk-MEYIRKDN.js +0 -8967
  132. package/chunk-Y5GCAMGP.js +0 -9
  133. package/chunk-YPREESF4.js +0 -225
  134. package/settingSlice-Q6EKL7EQ.js +0 -204
  135. package/syncMapping-N6RGXGBW.js +0 -437
  136. package/{chunk-6PHKBY2Q.js → chunk-4YSOUKUR.js} +8 -8
  137. package/{chunk-S5XGT6GB.js → chunk-UA324D4O.js} +3 -3
  138. package/{chunk-MX574M24.js → chunk-V4UYSDTH.js} +3 -3
  139. package/{chunk-ESRMFY7G.js → chunk-XFUBXRVI.js} +5 -5
  140. package/{localRuntimeAuthority-5W6IJRAD.js → localRuntimeAuthority-AENMRPGX.js} +5 -5
@@ -0,0 +1,147 @@
1
+ // packages/create/editor/utils/slateUtils.ts
2
+ var slateNodeToString = (node) => {
3
+ if (typeof node?.text === "string") return node.text;
4
+ const children = Array.isArray(node?.children) ? node.children : [];
5
+ return children.map(slateNodeToString).join("");
6
+ };
7
+ var createEmptyParagraph = () => ({
8
+ type: "paragraph",
9
+ children: [{ text: "" }]
10
+ });
11
+ var ensureEditorContent = (slateData) => Array.isArray(slateData) && slateData.length > 0 ? slateData : [createEmptyParagraph()];
12
+ var deepEqual = (a, b) => {
13
+ if (a === b) return true;
14
+ if (a == null || b == null) return false;
15
+ if (typeof a !== "object" || typeof b !== "object") return false;
16
+ const isArrayA = Array.isArray(a);
17
+ const isArrayB = Array.isArray(b);
18
+ if (isArrayA || isArrayB) {
19
+ if (!isArrayA || !isArrayB) return false;
20
+ if (a.length !== b.length) return false;
21
+ for (let i = 0; i < a.length; i++) {
22
+ if (!deepEqual(a[i], b[i])) return false;
23
+ }
24
+ return true;
25
+ }
26
+ const keysA = Object.keys(a);
27
+ const keysB = Object.keys(b);
28
+ if (keysA.length !== keysB.length) return false;
29
+ for (const key of keysA) {
30
+ if (!Object.prototype.hasOwnProperty.call(b, key)) return false;
31
+ if (!deepEqual(a[key], b[key])) return false;
32
+ }
33
+ return true;
34
+ };
35
+ var compareSlateContent = (newContent, oldContent) => {
36
+ if (newContent === oldContent) return false;
37
+ if (!newContent || !oldContent) return true;
38
+ if (newContent.length !== oldContent.length) return true;
39
+ return !deepEqual(newContent, oldContent);
40
+ };
41
+ var extractTitleFromSlate = (slateData) => {
42
+ if (!Array.isArray(slateData) || slateData.length === 0) return "\u65B0\u9875\u9762";
43
+ const titleNode = slateData.find((node) => node.type === "heading-one");
44
+ if (titleNode) {
45
+ const text = slateNodeToString(titleNode).trim();
46
+ if (text) {
47
+ return text;
48
+ }
49
+ }
50
+ for (const node of slateData) {
51
+ const text = slateNodeToString(node).trim();
52
+ if (text) {
53
+ return text.length > 30 ? `${text.substring(0, 30)}...` : text;
54
+ }
55
+ }
56
+ return "\u65B0\u9875\u9762";
57
+ };
58
+ var splitSlateTitleAndBody = (slateData, explicitTitle) => {
59
+ const content = ensureEditorContent(slateData);
60
+ const firstNode = content[0];
61
+ const hasExplicitTitle = explicitTitle !== void 0 && explicitTitle !== null;
62
+ const normalizedExplicitTitle = hasExplicitTitle ? explicitTitle.trim() : null;
63
+ const firstNonEmptyText = content.map((node) => slateNodeToString(node).trim()).find(Boolean);
64
+ if (firstNode?.type === "heading-one") {
65
+ const firstText = slateNodeToString(firstNode).trim();
66
+ const shouldTreatAsTitle = !!firstText && (normalizedExplicitTitle == null || normalizedExplicitTitle === firstText);
67
+ if (shouldTreatAsTitle) {
68
+ const body = content.slice(1);
69
+ return {
70
+ title: firstText,
71
+ body: ensureEditorContent(body)
72
+ };
73
+ }
74
+ }
75
+ return {
76
+ title: normalizedExplicitTitle ?? (firstNonEmptyText || ""),
77
+ body: content
78
+ };
79
+ };
80
+ var extractMentionsFromSlate = (slateData) => {
81
+ const tools = /* @__PURE__ */ new Set();
82
+ const traverse = (nodes) => {
83
+ for (const node of nodes) {
84
+ if (node.type === "mention" && node.resourceId) {
85
+ if (node.resourceType === "tool") {
86
+ tools.add(node.resourceId);
87
+ }
88
+ }
89
+ if (node.children && Array.isArray(node.children)) {
90
+ traverse(node.children);
91
+ }
92
+ }
93
+ };
94
+ if (Array.isArray(slateData)) {
95
+ traverse(slateData);
96
+ }
97
+ return Array.from(tools);
98
+ };
99
+ var extractCategorizedMentions = (slateData) => {
100
+ const result = {
101
+ tools: [],
102
+ pages: [],
103
+ agents: [],
104
+ spaces: []
105
+ };
106
+ const traverse = (nodes) => {
107
+ for (const node of nodes) {
108
+ if (node.type === "mention" && node.resourceId && node.resourceType) {
109
+ switch (node.resourceType) {
110
+ case "tool":
111
+ result.tools.push(node.resourceId);
112
+ break;
113
+ case "page":
114
+ result.pages.push(node.resourceId);
115
+ break;
116
+ case "agent":
117
+ result.agents.push(node.resourceId);
118
+ break;
119
+ case "space":
120
+ result.spaces.push(node.resourceId);
121
+ break;
122
+ }
123
+ }
124
+ if (node.children && Array.isArray(node.children)) {
125
+ traverse(node.children);
126
+ }
127
+ }
128
+ };
129
+ if (Array.isArray(slateData)) {
130
+ traverse(slateData);
131
+ }
132
+ result.tools = [...new Set(result.tools)];
133
+ result.pages = [...new Set(result.pages)];
134
+ result.agents = [...new Set(result.agents)];
135
+ result.spaces = [...new Set(result.spaces)];
136
+ return result;
137
+ };
138
+
139
+ export {
140
+ createEmptyParagraph,
141
+ ensureEditorContent,
142
+ compareSlateContent,
143
+ extractTitleFromSlate,
144
+ splitSlateTitleAndBody,
145
+ extractMentionsFromSlate,
146
+ extractCategorizedMentions
147
+ };
@@ -2,7 +2,7 @@ import {
2
2
  DEVIN_CONNECT_URL,
3
3
  parseSseDataLineJson,
4
4
  parseSseDataLineObject
5
- } from "./chunk-P6GMCCAT.js";
5
+ } from "./chunk-OW4APERY.js";
6
6
  import {
7
7
  applyChatCompletionDelta,
8
8
  applyResponsesToolEvent,
@@ -11,7 +11,7 @@ import {
11
11
  flushChatCompletionStream,
12
12
  providerHttpFailure,
13
13
  throwIfChatCompletionStreamFailed
14
- } from "./chunk-TU5NE4U3.js";
14
+ } from "./chunk-CV366NXM.js";
15
15
  import {
16
16
  readSseFrames
17
17
  } from "./chunk-GMZLP5DV.js";
@@ -27,16 +27,13 @@ import {
27
27
  resolveHistoricalToolContentCap,
28
28
  resolveToolOutputProfile,
29
29
  stripImagePartsFromMessages
30
- } from "./chunk-C53ZG23R.js";
30
+ } from "./chunk-4XYBLM4D.js";
31
31
  import {
32
32
  downgradeUnparsableToolCalls,
33
33
  hasParsableObjectArguments,
34
34
  repairTruncatedToolArguments,
35
35
  sanitizeForOutbound
36
36
  } from "./chunk-CQ3WA2NE.js";
37
- import {
38
- buildDialogFallbackTitleFromUserInput
39
- } from "./chunk-2MBTWINN.js";
40
37
  import {
41
38
  createThinkParserState,
42
39
  createToolCallAccumulator,
@@ -57,7 +54,7 @@ import {
57
54
  requiresBareImageUrl,
58
55
  resolveToolGuidedSections,
59
56
  toBareImageUrlMessages
60
- } from "./chunk-EKS2APRJ.js";
57
+ } from "./chunk-2TYM4V33.js";
61
58
  import {
62
59
  convertMessagesToResponsesInput,
63
60
  extractReasoningFromResponseOutput,
@@ -82,11 +79,10 @@ import {
82
79
  parseNoloWorkspaceToolArguments,
83
80
  readTextStreamUpToChars,
84
81
  resolveNoloDialogInput
85
- } from "./chunk-6PHKBY2Q.js";
82
+ } from "./chunk-4YSOUKUR.js";
86
83
  import {
87
- buildProviderAuthHeaders,
88
- buildProviderExecutionPlan
89
- } from "./chunk-27ONFIEY.js";
84
+ buildDialogFallbackTitleFromUserInput
85
+ } from "./chunk-2MBTWINN.js";
90
86
  import {
91
87
  EMPTY_ASSISTANT_REPAIR_PROMPT,
92
88
  getModelContextWindow,
@@ -97,7 +93,7 @@ import {
97
93
  resolveEmptyAssistantFallbackMessage,
98
94
  resolveEmptyAssistantOutcome,
99
95
  resolveTruncatedReasoningTailLog
100
- } from "./chunk-WILHZY7K.js";
96
+ } from "./chunk-JNXHAQPJ.js";
101
97
  import {
102
98
  COMPACTION_SUMMARY_SCHEMA_VERSION,
103
99
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
@@ -115,16 +111,16 @@ import {
115
111
  resolveCompressionTriggerRatio,
116
112
  truncateToolOutputForContext,
117
113
  withProviderCallTimingFields
118
- } from "./chunk-6ZWMH6TJ.js";
114
+ } from "./chunk-WS2VEVHS.js";
119
115
  import {
120
116
  clipCompactText
121
117
  } from "./chunk-5MMAK75Q.js";
118
+ import {
119
+ asRecordOrEmpty
120
+ } from "./chunk-KX6YBIHG.js";
122
121
  import {
123
122
  estimateTokenCount
124
123
  } from "./chunk-PSCNXBYA.js";
125
- import {
126
- toErrorMessage
127
- } from "./chunk-HNMXYYJR.js";
128
124
  import {
129
125
  resolveNoloStateDir
130
126
  } from "./chunk-HNGRBWYF.js";
@@ -139,8 +135,18 @@ import {
139
135
  canonicalizeToolNames
140
136
  } from "./chunk-XUWRURDF.js";
141
137
  import {
142
- asRecordOrEmpty
143
- } from "./chunk-KX6YBIHG.js";
138
+ buildProviderAuthHeaders,
139
+ buildProviderExecutionPlan
140
+ } from "./chunk-27ONFIEY.js";
141
+ import {
142
+ toErrorMessage
143
+ } from "./chunk-HNMXYYJR.js";
144
+ import {
145
+ asTrimmedLowercaseString
146
+ } from "./chunk-QSJ3HFEF.js";
147
+ import {
148
+ isRecord
149
+ } from "./chunk-KUG52IAP.js";
144
150
  import {
145
151
  asTrimmedNonEmptyStringArray,
146
152
  dialogMessageKey,
@@ -150,17 +156,11 @@ import {
150
156
  asOptionalFiniteNumber
151
157
  } from "./chunk-WWC7I6TA.js";
152
158
  import {
153
- asTrimmedLowercaseString
154
- } from "./chunk-QSJ3HFEF.js";
155
- import {
156
- isRecord
157
- } from "./chunk-KUG52IAP.js";
159
+ asOptionalPositiveFiniteNumber
160
+ } from "./chunk-U6VC4MU4.js";
158
161
  import {
159
162
  asTrimmedString
160
163
  } from "./chunk-3EUW3WEO.js";
161
- import {
162
- asOptionalPositiveFiniteNumber
163
- } from "./chunk-U6VC4MU4.js";
164
164
  import {
165
165
  normalizeServerOrigin
166
166
  } from "./chunk-CF7PE763.js";
@@ -19990,7 +19990,7 @@ function buildLoadSkillExecutor(args2) {
19990
19990
  const { resolveSkillByName } = await import("./skillDiscovery-ZBU76COE.js");
19991
19991
  const resolved = resolveSkillByName(args2.cwd, name);
19992
19992
  if (!resolved) {
19993
- const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-CALVIJTX.js");
19993
+ const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-MAR5LPAC.js");
19994
19994
  const builtin = resolveBuiltinSkillByName(name);
19995
19995
  if (builtin) {
19996
19996
  return {
@@ -11,6 +11,12 @@ import {
11
11
  isLoopbackHostname
12
12
  } from "./chunk-4SN6J65J.js";
13
13
 
14
+ // packages/core/positiveFiniteNumberOrFallback.ts
15
+ function parsePositiveFiniteNumberOrFallback(value, fallback) {
16
+ const parsed = Number(value);
17
+ return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
18
+ }
19
+
14
20
  // packages/core/fetchWithTransientRetry.ts
15
21
  var TRANSIENT_FETCH_MAX_ATTEMPTS = 3;
16
22
  var TRANSIENT_FETCH_RETRY_BASE_DELAY_MS = 250;
@@ -120,6 +126,7 @@ async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
120
126
  }
121
127
 
122
128
  export {
129
+ parsePositiveFiniteNumberOrFallback,
123
130
  isTransientFetchError,
124
131
  fetchWithTransientRetry
125
132
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-XAYSAKSS.js";
4
+ } from "./chunk-VZZUQTBR.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-ESHYE7WU.js";
8
8
  import {
9
9
  getDefaultCliLocalRuntimeDb
10
- } from "./chunk-ZOVKKMF6.js";
10
+ } from "./chunk-74D5HEDI.js";
11
11
  import {
12
12
  resolveAuthTokenFromEnv
13
13
  } from "./chunk-A7GB5UGH.js";
@@ -1,7 +1,3 @@
1
- import {
2
- BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
3
- BUILTIN_SUMMARY_LLM_CONFIG
4
- } from "./chunk-523DITKR.js";
5
1
  import {
6
2
  isOAuthApiKeyRef
7
3
  } from "./chunk-YYLHWIW6.js";
@@ -9,23 +5,24 @@ import {
9
5
  buildDialogAttachmentPlan,
10
6
  extractFileContentIds
11
7
  } from "./chunk-6O4IK4V2.js";
8
+ import {
9
+ BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
10
+ BUILTIN_SUMMARY_LLM_CONFIG
11
+ } from "./chunk-523DITKR.js";
12
+ import {
13
+ getApproxPricePerImage
14
+ } from "./chunk-AGGIDPCZ.js";
12
15
  import {
13
16
  runLlm
14
- } from "./chunk-4J3Q2KJL.js";
17
+ } from "./chunk-2LM7XUCX.js";
15
18
  import {
16
19
  cleanupCliSessionForDialog
17
- } from "./chunk-Z4CSIXYP.js";
20
+ } from "./chunk-ELIMCKNX.js";
18
21
  import {
19
22
  getActiveDialogAgentId,
20
23
  getDialogAgentIds,
21
24
  getPrimaryDialogAgentId
22
25
  } from "./chunk-5RGU3J7P.js";
23
- import {
24
- _typeof,
25
- addLeadingZeros,
26
- requiredArgs,
27
- toDate
28
- } from "./chunk-4LCOCOR5.js";
29
26
  import {
30
27
  abortActiveControllers,
31
28
  addPageReferenceToRuntime,
@@ -39,16 +36,22 @@ import {
39
36
  selectCurrentDialogKey,
40
37
  setActiveDialogKey,
41
38
  setDialogConfigError
42
- } from "./chunk-6D2JFXLY.js";
39
+ } from "./chunk-BZ7NPA6G.js";
40
+ import {
41
+ _typeof,
42
+ addLeadingZeros,
43
+ requiredArgs,
44
+ toDate
45
+ } from "./chunk-4LCOCOR5.js";
43
46
  import {
44
47
  require_react
45
48
  } from "./chunk-YDH3FDFQ.js";
46
49
  import {
47
50
  fetchMessages
48
- } from "./chunk-MX574M24.js";
51
+ } from "./chunk-V4UYSDTH.js";
49
52
  import {
50
- getApproxPricePerImage
51
- } from "./chunk-AGGIDPCZ.js";
53
+ nolotusId
54
+ } from "./chunk-A4SQRTZ6.js";
52
55
  import {
53
56
  DEFAULT_AUTO_EXECUTION_PROFILE,
54
57
  DEFAULT_CONTEXT_WINDOW,
@@ -61,7 +64,7 @@ import {
61
64
  getModelInfo,
62
65
  normalizeUsage,
63
66
  resolveAutoExecutionProfile
64
- } from "./chunk-WILHZY7K.js";
67
+ } from "./chunk-JNXHAQPJ.js";
65
68
  import {
66
69
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
67
70
  buildCompactionMetricsFromPlan,
@@ -72,14 +75,24 @@ import {
72
75
  normalizeAssistantContentBuffer,
73
76
  planCompression,
74
77
  serializeMessageContent
75
- } from "./chunk-6ZWMH6TJ.js";
78
+ } from "./chunk-WS2VEVHS.js";
76
79
  import {
77
- toErrorMessage
78
- } from "./chunk-HNMXYYJR.js";
80
+ asRecordOrEmpty
81
+ } from "./chunk-KX6YBIHG.js";
82
+ import {
83
+ patch,
84
+ read,
85
+ remove,
86
+ selectById,
87
+ write
88
+ } from "./chunk-NVRC52JS.js";
79
89
  import {
80
90
  findModelConfig,
81
91
  getModelConfig
82
92
  } from "./chunk-3BXNTXYI.js";
93
+ import {
94
+ toErrorMessage
95
+ } from "./chunk-HNMXYYJR.js";
83
96
  import {
84
97
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
85
98
  PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
@@ -90,18 +103,31 @@ import {
90
103
  isPlatformHostedOpenAIImageModel
91
104
  } from "./chunk-Y3PMXGLH.js";
92
105
  import {
93
- nolotusId
94
- } from "./chunk-QDSINZM3.js";
106
+ asTrimmedLowercaseString
107
+ } from "./chunk-QSJ3HFEF.js";
95
108
  import {
96
- asRecordOrEmpty
97
- } from "./chunk-KX6YBIHG.js";
109
+ getRuntimeServerContext,
110
+ parseOwnerUserIdFromDbKey,
111
+ scheduleDeleteReplication
112
+ } from "./chunk-UJXNKP5V.js";
98
113
  import {
99
- patch,
100
- read,
101
- remove,
102
- selectById,
103
- write
104
- } from "./chunk-HYZIYH2H.js";
114
+ isTombstoneRecord,
115
+ shouldReplaceWithNextRecord
116
+ } from "./chunk-GBRG75BQ.js";
117
+ import {
118
+ builtinAgentCatalogEntryById,
119
+ builtinRuntimeFallbackEntries,
120
+ isBuiltinPlatformAgentKey
121
+ } from "./chunk-BNGW5ASC.js";
122
+ import {
123
+ extractCustomId,
124
+ extractUserId,
125
+ parsePublicAgentId,
126
+ publicAgentKey
127
+ } from "./chunk-M2EJHDJP.js";
128
+ import {
129
+ isRecord
130
+ } from "./chunk-KUG52IAP.js";
105
131
  import {
106
132
  buildDialogAgentListIndexDeleteOps,
107
133
  createDialogMessageKeyAndId,
@@ -116,46 +142,22 @@ import {
116
142
  import {
117
143
  asOptionalFiniteNumber
118
144
  } from "./chunk-WWC7I6TA.js";
119
- import {
120
- asTrimmedLowercaseString
121
- } from "./chunk-QSJ3HFEF.js";
122
145
  import {
123
146
  asyncThunkCreator,
124
147
  buildCreateSlice,
125
148
  createAsyncThunk,
126
149
  createEntityAdapter,
127
- createSelector,
128
- getRuntimeServerContext,
129
- parseOwnerUserIdFromDbKey,
130
- scheduleDeleteReplication
131
- } from "./chunk-WIWM4FE3.js";
150
+ createSelector
151
+ } from "./chunk-VY6VFGKR.js";
132
152
  import {
133
153
  createClientLogger,
134
154
  isAbortError
135
- } from "./chunk-QOKAKDPE.js";
155
+ } from "./chunk-HIM3FCLF.js";
136
156
  import {
137
157
  selectIdentityToken,
138
158
  selectIdentityUser,
139
159
  selectIdentityUserId
140
160
  } from "./chunk-SEJ5OS6F.js";
141
- import {
142
- isTombstoneRecord,
143
- shouldReplaceWithNextRecord
144
- } from "./chunk-GBRG75BQ.js";
145
- import {
146
- isRecord
147
- } from "./chunk-KUG52IAP.js";
148
- import {
149
- builtinAgentCatalogEntryById,
150
- builtinRuntimeFallbackEntries,
151
- isBuiltinPlatformAgentKey
152
- } from "./chunk-BNGW5ASC.js";
153
- import {
154
- extractCustomId,
155
- extractUserId,
156
- parsePublicAgentId,
157
- publicAgentKey
158
- } from "./chunk-M2EJHDJP.js";
159
161
  import {
160
162
  asTrimmedString
161
163
  } from "./chunk-3EUW3WEO.js";
@@ -10330,7 +10332,7 @@ var messageSlice = createSliceWithThunks({
10330
10332
  runtimeOptions: args.runtimeOptions
10331
10333
  });
10332
10334
  if (agentKeyToUse) {
10333
- const { streamAgentChatTurn } = await import("./agentSlice-FRLSN5HD.js");
10335
+ const { streamAgentChatTurn } = await import("./agentSlice-V2EDVUXC.js");
10334
10336
  await dispatch(
10335
10337
  streamAgentChatTurn({
10336
10338
  agentKey: agentKeyToUse,
@@ -13013,7 +13015,7 @@ var deleteOwnedDialogAttachments = async (args) => {
13013
13015
  metadataReadFailures
13014
13016
  });
13015
13017
  if (!plan.deleteCandidates.length) return plan;
13016
- const { deleteFileAction } = await import("./deleteFile-NX6QHCWZ.js");
13018
+ const { deleteFileAction } = await import("./deleteFile-HG4BF3CS.js");
13017
13019
  for (const candidate of plan.deleteCandidates) {
13018
13020
  if (candidate.fileDbKey) {
13019
13021
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -13075,7 +13077,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13075
13077
  }
13076
13078
  if (isCurrentDialog) {
13077
13079
  await thunkApi.dispatch(resetMsgs());
13078
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-L5SA2HCW.js");
13080
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-M7ZWTW5D.js");
13079
13081
  dispatch(clearPendingAttachments2());
13080
13082
  }
13081
13083
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13083,39 +13085,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13083
13085
 
13084
13086
  // packages/chat/dialog/dialogSlice.ts
13085
13087
  var runCreateDialogAction = async (args, thunkApi) => {
13086
- const { createDialogAction } = await import("./createDialogAction-5EJGAQL5.js");
13088
+ const { createDialogAction } = await import("./createDialogAction-L3WMTD5Z.js");
13087
13089
  return createDialogAction(args, thunkApi);
13088
13090
  };
13089
13091
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13090
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-AYUD3TVG.js");
13092
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-OW4WEVHP.js");
13091
13093
  return createAgentAutomationAction(args, thunkApi);
13092
13094
  };
13093
13095
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13094
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-DTREH6RR.js");
13096
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-GBUSLAQR.js");
13095
13097
  return updateDialogTitleAction(args, thunkApi);
13096
13098
  };
13097
13099
  var runAddDialogAgentAction = async (args, thunkApi) => {
13098
- const { addDialogAgentAction } = await import("./addDialogAgentAction-T3I7IXPK.js");
13100
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-6SGG37BF.js");
13099
13101
  return addDialogAgentAction(args, thunkApi);
13100
13102
  };
13101
13103
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
13102
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-BVAWQKXE.js");
13104
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-CT5HGRZH.js");
13103
13105
  return removeDialogAgentAction(args, thunkApi);
13104
13106
  };
13105
13107
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
13106
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-73IL7DLU.js");
13108
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-MHWOGXP3.js");
13107
13109
  return setPrimaryDialogAgentAction(args, thunkApi);
13108
13110
  };
13109
13111
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
13110
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-UUXDSQ6X.js");
13112
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-JHA4JEYA.js");
13111
13113
  return switchDialogAgentAction(args, thunkApi);
13112
13114
  };
13113
13115
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13114
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-LYY45IAD.js");
13116
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-JOENKFTX.js");
13115
13117
  return setDialogExtraReferencesAction(args, thunkApi);
13116
13118
  };
13117
13119
  var runHandleSendMessageAction = async (args, thunkApi) => {
13118
- const { handleSendMessageAction } = await import("./handleSendMessageAction-NCZABULQ.js");
13120
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-KMPC6UD4.js");
13119
13121
  return handleSendMessageAction(args, thunkApi);
13120
13122
  };
13121
13123
  function clearDialogState() {
@@ -13128,7 +13130,7 @@ var createPageAndAddReference = createAsyncThunk(
13128
13130
  async (payload, { dispatch, getState, rejectWithValue }) => {
13129
13131
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13130
13132
  try {
13131
- const { createDocState } = await import("./docStore-DAAP4WFC.js");
13133
+ const { createDocState } = await import("./docStore-IX7ASJUP.js");
13132
13134
  const pageKey = await createDocState(
13133
13135
  { slateData, title },
13134
13136
  { dispatch, getState }
@@ -13291,28 +13293,21 @@ export {
13291
13293
  uiAskChoiceFunctionSchema,
13292
13294
  uiAskChoiceFunc,
13293
13295
  parseUiAskChoiceContent,
13296
+ API_REPORTED_COST_MULTIPLIER,
13297
+ runtime_default,
13294
13298
  isAssistantToolStub,
13295
13299
  fetchAndCacheMessages,
13296
13300
  toast,
13297
- instance,
13298
- i18nBaseConfig,
13299
- runtime_default,
13301
+ extractReferenceKeysFromMessage,
13302
+ normalizeAppRouteId,
13303
+ PERSONALIZATION_DIALOG_CATEGORY,
13304
+ buildPersonalizationDialogPolicyContext,
13300
13305
  resolveBuiltinPlatformAgentConfig,
13301
13306
  resolveBuiltinPlatformAgentRecord,
13302
13307
  applyBuiltinAgentRuntimeOverride,
13303
13308
  resolveDialogRuntimeAgentKey,
13304
- format,
13305
- normalizeAppRouteId,
13306
- API_REPORTED_COST_MULTIPLIER,
13307
- prepareTokenUsageData,
13308
- applyTokenUsageToDayStats,
13309
- runKeyed,
13310
- updateTokensAction,
13311
- extractReferenceKeysFromMessage,
13312
- PERSONALIZATION_DIALOG_CATEGORY,
13313
- buildPersonalizationDialogPolicyContext,
13314
- estimateMissingUsage,
13315
13309
  resolveHandleSendMessageContext,
13310
+ estimateMissingUsage,
13316
13311
  selectCurrentDialogId,
13317
13312
  selectAllMsgs,
13318
13313
  selectMsgById,
@@ -13325,6 +13320,11 @@ export {
13325
13320
  messageStreamEnd,
13326
13321
  addToolMessage,
13327
13322
  updateToolMessage,
13323
+ format,
13324
+ prepareTokenUsageData,
13325
+ applyTokenUsageToDayStats,
13326
+ runKeyed,
13327
+ updateTokensAction,
13328
13328
  clearDialogState,
13329
13329
  createPageAndAddReference,
13330
13330
  deleteDialog,
@@ -364,8 +364,6 @@ export {
364
364
  deleteDialogRuntime,
365
365
  abortActiveControllers,
366
366
  getDialogRuntimeTokens,
367
- getPendingUserInputQueue,
368
- getLoopStopReason,
369
367
  selectDialogRuntimeByKey,
370
368
  selectPendingFiles,
371
369
  selectActiveControllers,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-3R7EAVTC.js";
4
+ } from "./chunk-KFJ7ZWBF.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {