nolo-cli 0.54.0 → 0.61.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.
Files changed (154) hide show
  1. package/README.md +3 -3
  2. package/{_executeModel-OPTKYHJA.js → _executeModel-CKT6RGTL.js} +48 -45
  3. package/{action-ORXWW2ZG.js → action-76JX3JX3.js} +7 -6
  4. package/{addContentAction-53BZ34AE.js → addContentAction-V3NAZRTJ.js} +6 -5
  5. package/{addDialogAgentAction-JRYUS54Y.js → addDialogAgentAction-RZOAF46K.js} +5 -4
  6. package/{agentDeleteCommand-FJIWU2BS.js → agentDeleteCommand-VN7NPXQ4.js} +30 -27
  7. package/{agentEmailCommands-CE32L43B.js → agentEmailCommands-F2TNAV4A.js} +59 -56
  8. package/{agentGrantCommands-2LEZDADN.js → agentGrantCommands-R3VQEZJR.js} +1 -1
  9. package/{agentListCommands-VJNKULIK.js → agentListCommands-OSM2ANI3.js} +61 -31
  10. package/{agentMachineCommands-HCJ3WQXL.js → agentMachineCommands-MTPWYVRV.js} +31 -28
  11. package/{agentPullCommand-M552CYSI.js → agentPullCommand-N7L2CT7L.js} +2 -2
  12. package/{agentRecordCommands-QFWERED4.js → agentRecordCommands-VWAWTVVC.js} +57 -54
  13. package/{agentRunCommand-G3GQMUNN.js → agentRunCommand-PLZOBNVK.js} +61 -58
  14. package/{agentRunControl-INKFDXDA.js → agentRunControl-WECMOO6O.js} +11 -6
  15. package/{agentRuntimeLocal-K327ELSL.js → agentRuntimeLocal-XCJLRWQE.js} +26 -23
  16. package/{agentSlice-ODKF4J6M.js → agentSlice-F6DOP4IW.js} +8 -7
  17. package/{appDeleteCommands-XUXMFDI4.js → appDeleteCommands-3BCFTRFJ.js} +30 -27
  18. package/{appDeployCommands-37F4GPCU.js → appDeployCommands-B4GMHCYA.js} +30 -27
  19. package/{appDeployStatusCommands-WSPU7TUK.js → appDeployStatusCommands-4MN36WIG.js} +30 -27
  20. package/{appGetCommands-YLOBA3EM.js → appGetCommands-4GJIEUAX.js} +30 -27
  21. package/{appListCommands-UD62R5ME.js → appListCommands-CHU53GSX.js} +30 -27
  22. package/{authCommand-OK6HLHGS.js → authCommand-WOTWLJNF.js} +35 -29
  23. package/{authCommands-2DUIUEMT.js → authCommands-ILTBI6JV.js} +7 -5
  24. package/{chatQueueReduxAdapter-TV2TUOQS.js → chatQueueReduxAdapter-HNSQXNIR.js} +20 -18
  25. package/{chunk-HPW5MNDQ.js → chunk-22BTGNSP.js} +113 -57
  26. package/{chunk-TR4DXUYX.js → chunk-2HPRMEEZ.js} +1180 -736
  27. package/{chunk-UNZDCI3O.js → chunk-2KDR4CWE.js} +35 -4
  28. package/{chunk-3ZTR7ZO4.js → chunk-2PGGC63K.js} +1 -1
  29. package/{chunk-JXIP6ZWH.js → chunk-37QVS7BU.js} +18 -5
  30. package/{chunk-EA5OYZVD.js → chunk-37XDGCY7.js} +1 -1
  31. package/chunk-3BLB7QKO.js +433 -0
  32. package/{chunk-CS6TCJ7E.js → chunk-3JQ2NRYU.js} +30 -7
  33. package/{chunk-RHMDMTDK.js → chunk-3JWKQDA4.js} +2 -2
  34. package/{chunk-3LKZRP7E.js → chunk-3QGUVVX5.js} +2 -2
  35. package/{chunk-SSXTSPSG.js → chunk-45YO6H7P.js} +71 -30
  36. package/{chunk-EJE33XNR.js → chunk-4C4ST2YE.js} +1521 -565
  37. package/{chunk-YLCUU3WM.js → chunk-4NJEIGBQ.js} +5 -5
  38. package/{chunk-K4NISKOR.js → chunk-5ZYA4JJ3.js} +47 -17
  39. package/{chunk-3Y2K5O2R.js → chunk-7A3RRUCQ.js} +125 -40
  40. package/{chunk-5FCIPEKT.js → chunk-7O7KH4X5.js} +1051 -926
  41. package/{chunk-6HDYSFLO.js → chunk-7UF7CQ6B.js} +3 -3
  42. package/{chunk-SUEIAK5N.js → chunk-AQMVUA7N.js} +1 -0
  43. package/{chunk-WQHGJHAL.js → chunk-AVE2YR4F.js} +732 -726
  44. package/{chunk-6COJEAYH.js → chunk-B7DXRX7F.js} +44 -37
  45. package/chunk-BFU6C242.js +66 -0
  46. package/{chunk-IA3A5373.js → chunk-C3FZR5EC.js} +1 -1
  47. package/{chunk-IWUMSAQF.js → chunk-CJCJF5XB.js} +26 -3
  48. package/{chunk-UGBHDMHI.js → chunk-CP7VIDZ7.js} +1 -1
  49. package/{chunk-JON2PHYT.js → chunk-CTCW7U7N.js} +1 -1
  50. package/{chunk-YBFJQC2M.js → chunk-D5XKNNUV.js} +65 -42
  51. package/{chunk-7NYDJAQ7.js → chunk-DNNSCSA2.js} +5 -5
  52. package/{chunk-NI2BS6UD.js → chunk-DWUCB2A3.js} +1 -1
  53. package/{chunk-AA564GBL.js → chunk-DZZL7UBV.js} +1 -1
  54. package/{chunk-75MSWWUE.js → chunk-E6RGHPDR.js} +5 -3
  55. package/chunk-EDKF7RX4.js +30 -0
  56. package/{chunk-FJHMLRDQ.js → chunk-ES6CVKVD.js} +21 -27
  57. package/{chunk-SYYUU7EV.js → chunk-FHAGENAS.js} +2 -3
  58. package/{chunk-NJUQBYFJ.js → chunk-FKFMIBTT.js} +3 -1
  59. package/{chunk-INZZJSQF.js → chunk-FZGV4FGK.js} +24 -12
  60. package/{chunk-YQBXOHE6.js → chunk-GAL47RNP.js} +1 -1
  61. package/{chunk-UOWXD4VN.js → chunk-HBPV76EK.js} +335 -243
  62. package/{chunk-MLEZPE3U.js → chunk-HLU5Q2GV.js} +4 -4
  63. package/{chunk-TC6P4NDR.js → chunk-HQP7HJDL.js} +6 -6
  64. package/{chunk-7FAS3NEF.js → chunk-IYCUMIYS.js} +19 -15
  65. package/{chunk-AUVFJGPC.js → chunk-JX5PJCWS.js} +7 -5
  66. package/{chunk-LYGNQHUW.js → chunk-JYYZCK2Z.js} +2 -4
  67. package/{chunk-XOJRZUPF.js → chunk-KWSQR2KK.js} +14 -29
  68. package/{chunk-2WBFJHQA.js → chunk-L7B47JXR.js} +34 -39
  69. package/{chunk-EICIFHVS.js → chunk-LAFC3B2I.js} +1 -1
  70. package/{chunk-N4JKMCY3.js → chunk-LJKICKVC.js} +2 -2
  71. package/chunk-M3JEW6N6.js +193 -0
  72. package/{chunk-LRGKOI5Y.js → chunk-MBOEV4L2.js} +7 -3
  73. package/{chunk-SVDMVX4G.js → chunk-MMZ6ZTVO.js} +112 -73
  74. package/{chunk-JDSUTNYY.js → chunk-MP64VFGD.js} +2 -2
  75. package/{chunk-NFLA6GSU.js → chunk-MXUDQZXQ.js} +44 -5
  76. package/chunk-N4G4PKQ6.js +23 -0
  77. package/{chunk-KXKQO4Q6.js → chunk-NTW5GWDM.js} +58 -1
  78. package/chunk-ONXOABJR.js +215 -0
  79. package/{chunk-TY3ADTX5.js → chunk-OZX2IPKM.js} +7 -2
  80. package/{chunk-Q4XZVZPN.js → chunk-P7OOB7QP.js} +1 -1
  81. package/{chunk-XIJZOCSP.js → chunk-PEZJEQAO.js} +1 -1
  82. package/{chunk-SWJGJMTW.js → chunk-PQDIDWGX.js} +1 -1
  83. package/chunk-PSCNXBYA.js +11 -0
  84. package/{chunk-BY2FF2C4.js → chunk-QEFJJS2I.js} +55 -73
  85. package/{chunk-BG7J6Y5X.js → chunk-QEW2MFDQ.js} +1 -1
  86. package/{chunk-KLIBF3BY.js → chunk-RDBARW6T.js} +8 -3
  87. package/{chunk-ZVOHVJI3.js → chunk-RJ2SAFB5.js} +82 -35
  88. package/{chunk-MYMBBB6Q.js → chunk-RVWRKFUB.js} +5 -3
  89. package/{chunk-43CXXVJD.js → chunk-RXX4GDIH.js} +1 -1
  90. package/chunk-SEJ5OS6F.js +49 -0
  91. package/{chunk-SAJSBPI2.js → chunk-SOJM57FX.js} +5 -2
  92. package/{chunk-EKLRRZIN.js → chunk-SPAQ4PVV.js} +0 -5
  93. package/{chunk-L7NG2M6H.js → chunk-TRV2MIDW.js} +89 -74
  94. package/{chunk-5UAYZEXO.js → chunk-UZPQSVM6.js} +1 -1
  95. package/{chunk-SVC3GGUA.js → chunk-VMWYBIXG.js} +7 -5
  96. package/{chunk-ZHXJ6M7T.js → chunk-W7XHHYWM.js} +4 -0
  97. package/{chunk-UR66XPVF.js → chunk-XAVSS3KE.js} +21 -3
  98. package/{chunk-A65UV3M5.js → chunk-XOKOSO35.js} +10 -19
  99. package/{chunk-VZMUOPYG.js → chunk-XTJTN3RW.js} +46 -3
  100. package/{chunk-T5HJEUQN.js → chunk-YCDWJX45.js} +1 -1
  101. package/{chunk-BBTN4NQD.js → chunk-Z4QSJILV.js} +85 -13
  102. package/{chunk-O5FLGN2L.js → chunk-ZRSJ3JEH.js} +6 -2
  103. package/{cliExecutor-BBUVQU4L.js → cliExecutor-HG3S345O.js} +1 -1
  104. package/{codingSkills-BCQXRZOI.js → codingSkills-VDXQYWX4.js} +2 -2
  105. package/{contentThunks-KNI6VXLT.js → contentThunks-7YG2ZYQC.js} +21 -19
  106. package/{cooldownCommands-GI5NNWGL.js → cooldownCommands-BSCH2W7P.js} +2 -2
  107. package/{createAgentAutomationAction-OK4L33KF.js → createAgentAutomationAction-PJQSCAIO.js} +23 -21
  108. package/{createDialogAction-JDSMY4AY.js → createDialogAction-SFEJX6SP.js} +23 -21
  109. package/{createPageAction-T7RA3HCG.js → createPageAction-B7WRHOQO.js} +24 -22
  110. package/{dbSlice-TVX6SN2T.js → dbSlice-IBVOBVMS.js} +5 -4
  111. package/{deleteFile-JYKRT7C3.js → deleteFile-FWP2PSBG.js} +3 -2
  112. package/{dialogCommands-UQZYWOOV.js → dialogCommands-VL2X22QC.js} +30 -27
  113. package/{dialogSlice-TYW2G7IL.js → dialogSlice-ANMACABO.js} +20 -18
  114. package/{docCreateCommands-OA6HZBWO.js → docCreateCommands-ITLGZ5YI.js} +29 -26
  115. package/{docDeleteCommands-KBB3YQI2.js → docDeleteCommands-LH3YNL4C.js} +30 -27
  116. package/{docReadCommands-ZLMFVC67.js → docReadCommands-YAJ77F36.js} +29 -26
  117. package/{docStore-2URPBVCS.js → docStore-D4HGHPWI.js} +6 -5
  118. package/{docUpdateCommands-HMH5KUON.js → docUpdateCommands-DQBOMH2G.js} +29 -26
  119. package/{getPricing-RFOPUWHY.js → getPricing-NM3NUTAS.js} +4 -4
  120. package/handleSendMessageAction-DF2OABGW.js +675 -0
  121. package/index.js +79 -88
  122. package/{lib-2ZTNRXR4.js → lib-FRRS27KN.js} +63 -28
  123. package/{localRuntimeAuthority-KQDAE64E.js → localRuntimeAuthority-R5UBODT3.js} +6 -4
  124. package/{localRuntimeDb-PF7CFKDL.js → localRuntimeDb-P37ZTX55.js} +1 -1
  125. package/{machineCommands-RK6L7ZWL.js → machineCommands-JXDYQ5LB.js} +296 -79
  126. package/{machineWsRunDispatch-3X64DW2Z.js → machineWsRunDispatch-3QHI7JX5.js} +55 -52
  127. package/{memberThunks-THZYZFSN.js → memberThunks-VZI6G7YZ.js} +10 -8
  128. package/{models-JVKUEER5.js → models-FAMINFZ7.js} +2 -2
  129. package/package.json +3 -2
  130. package/{read-K4JU4MQC.js → read-2BYWW7AA.js} +3 -2
  131. package/{readDocTool-LQGR6FUN.js → readDocTool-LC3A7QTB.js} +1 -1
  132. package/{readlineWorkspace-XUFJV3RS.js → readlineWorkspace-KVZTEAHB.js} +4365 -2795
  133. package/{removeDialogAgentAction-ECHCFB7N.js → removeDialogAgentAction-SFYZXHNK.js} +8 -7
  134. package/{runAgentClientLoop-24GQ2AW6.js → runAgentClientLoop-KGTEL7ZP.js} +49 -45
  135. package/{runtimeDoctorCommands-JKTTN723.js → runtimeDoctorCommands-CROTMULY.js} +7 -5
  136. package/{setDialogExtraReferencesAction-KCVJNGMB.js → setDialogExtraReferencesAction-Q32RGFTA.js} +6 -5
  137. package/{setPrimaryDialogAgentAction-VDOBOMKC.js → setPrimaryDialogAgentAction-BFYJHUJS.js} +8 -7
  138. package/{settingSlice-VR2IJSXC.js → settingSlice-IRUU4VFB.js} +6 -5
  139. package/{skillDiscovery-2QTZINON.js → skillDiscovery-NTRLM6KP.js} +1 -1
  140. package/{spaceCommands-S5YJJXL7.js → spaceCommands-KNAYWMCZ.js} +33 -215
  141. package/{streamAgentChatTurn-QHKP3ABO.js → streamAgentChatTurn-FLYPTXKZ.js} +105 -73
  142. package/{switchDialogAgentAction-5L4UP7VI.js → switchDialogAgentAction-L2KOKCGG.js} +5 -4
  143. package/{tableCommands-R6WFRDYF.js → tableCommands-SUNTHAYX.js} +1 -1
  144. package/{toolApiClient-53U4UDFF.js → toolApiClient-VGYUB4P5.js} +2 -1
  145. package/{tools-SSXSTC3O.js → tools-CVLUXK6P.js} +37 -34
  146. package/{tuiSummaryLlmCaller-URFJHFC5.js → tuiSummaryLlmCaller-F3DPFFZM.js} +15 -13
  147. package/{updateCommands-IYKLF3JX.js → updateCommands-AJYSD73Y.js} +2 -2
  148. package/{updateDialogTitleAction-YFYAEW3T.js → updateDialogTitleAction-HWJIZEIV.js} +23 -21
  149. package/agentSuperviseCommands-5AR3DKNN.js +0 -640
  150. package/chunk-6IGD47IC.js +0 -19
  151. package/chunk-FD36SCCD.js +0 -105
  152. package/chunk-GRFK2XP4.js +0 -230
  153. package/chunk-HJTAGT3W.js +0 -370
  154. package/handleSendMessageAction-GO53TY7U.js +0 -409
@@ -1,19 +1,14 @@
1
1
  import {
2
2
  buildResponseGuidelines
3
- } from "./chunk-6IGD47IC.js";
3
+ } from "./chunk-EDKF7RX4.js";
4
4
  import {
5
5
  getLocalProviderSecret
6
6
  } from "./chunk-HS7MLR74.js";
7
- import {
8
- ANTIGRAVITY_CLOUD_CODE_BASE_URL,
9
- isAntigravityOAuthAgent
10
- } from "./chunk-BG7J6Y5X.js";
11
7
  import {
12
8
  clipMultilineText,
13
9
  fetchAndSerializeTable,
14
- resolveBuiltinSkillPage,
15
- waitForAbortableDelay
16
- } from "./chunk-TR4DXUYX.js";
10
+ resolveBuiltinSkillPage
11
+ } from "./chunk-2HPRMEEZ.js";
17
12
  import {
18
13
  isGatewayHttpStatus
19
14
  } from "./chunk-NF64D32W.js";
@@ -25,56 +20,63 @@ import {
25
20
  } from "./chunk-3L2WKC3W.js";
26
21
  import {
27
22
  slateToSimplifiedMarkdown
28
- } from "./chunk-3ZTR7ZO4.js";
23
+ } from "./chunk-2PGGC63K.js";
24
+ import {
25
+ waitForAbortableDelay
26
+ } from "./chunk-N4G4PKQ6.js";
29
27
  import {
30
28
  extractCategorizedMentions
31
29
  } from "./chunk-MEYIRKDN.js";
32
30
  import {
33
31
  fetchAndCacheMessages
34
- } from "./chunk-YBFJQC2M.js";
32
+ } from "./chunk-D5XKNNUV.js";
35
33
  import {
36
34
  shouldUseServerProxy
37
35
  } from "./chunk-YYLHWIW6.js";
38
36
  import {
39
37
  fetchServerSyncedCredential
40
- } from "./chunk-TC6P4NDR.js";
38
+ } from "./chunk-HQP7HJDL.js";
41
39
  import {
42
40
  buildSkillGuidancePromptBlock,
43
41
  extractRuntimePageCapabilities,
44
42
  resolveSkillGraphFromRoots
45
- } from "./chunk-AA564GBL.js";
43
+ } from "./chunk-DZZL7UBV.js";
46
44
  import {
47
- buildCurrentTimeBlock,
48
45
  buildIdentityBlock,
49
46
  buildRuntimeGuidanceBlocks,
50
47
  compileContextLayers,
51
48
  normalizeChatCompletionsBodyForProvider,
52
49
  resolveToolGuidedSections
53
- } from "./chunk-BY2FF2C4.js";
50
+ } from "./chunk-QEFJJS2I.js";
54
51
  import {
55
52
  convertMessagesToResponsesInput,
56
53
  getUsageRequestOptions,
57
- preserveAgentStateFields
58
- } from "./chunk-VZMUOPYG.js";
54
+ preserveAgentStateFields,
55
+ stablePromptCacheKey
56
+ } from "./chunk-XTJTN3RW.js";
59
57
  import {
60
- buildProviderAuthHeaders
61
- } from "./chunk-KLIBF3BY.js";
58
+ ANTIGRAVITY_CLOUD_CODE_BASE_URL,
59
+ isAntigravityOAuthAgent
60
+ } from "./chunk-QEW2MFDQ.js";
62
61
  import {
63
- estimateTokenCount
64
- } from "./chunk-BBTN4NQD.js";
62
+ buildProviderAuthHeaders
63
+ } from "./chunk-RDBARW6T.js";
65
64
  import {
66
65
  isOpenAiResponsesModel,
67
66
  resolvePlatformChatCompletionsEndpoint,
68
67
  resolvePlatformResponsesEndpoint
69
- } from "./chunk-N4JKMCY3.js";
68
+ } from "./chunk-LJKICKVC.js";
69
+ import {
70
+ estimateTokenCount
71
+ } from "./chunk-PSCNXBYA.js";
70
72
  import {
71
73
  clampReasoningEffort,
72
74
  getModelConfig,
73
75
  isModelSupportReasoningEffort
74
- } from "./chunk-SVDMVX4G.js";
76
+ } from "./chunk-MMZ6ZTVO.js";
75
77
  import {
76
78
  createFileCredentialBroker
77
- } from "./chunk-CS6TCJ7E.js";
79
+ } from "./chunk-3JQ2NRYU.js";
78
80
  import {
79
81
  toErrorMessage
80
82
  } from "./chunk-HNMXYYJR.js";
@@ -90,13 +92,13 @@ import {
90
92
  isDeepInfraKimiModel,
91
93
  isFireworksKimiModel,
92
94
  resolveFireworksKimiModel
93
- } from "./chunk-HPW5MNDQ.js";
95
+ } from "./chunk-22BTGNSP.js";
94
96
  import {
95
97
  createSpaceKey
96
98
  } from "./chunk-UAD2WT54.js";
97
99
  import {
98
100
  read
99
- } from "./chunk-7NYDJAQ7.js";
101
+ } from "./chunk-DNNSCSA2.js";
100
102
  import {
101
103
  asTrimmedLowercaseString
102
104
  } from "./chunk-QSJ3HFEF.js";
@@ -105,7 +107,7 @@ import {
105
107
  } from "./chunk-BJIRLHJR.js";
106
108
  import {
107
109
  getRuntimeServerContext
108
- } from "./chunk-XOJRZUPF.js";
110
+ } from "./chunk-KWSQR2KK.js";
109
111
  import {
110
112
  isAbortError
111
113
  } from "./chunk-QOKAKDPE.js";
@@ -477,8 +479,8 @@ function resolveAgentCallPlan(agentConfig, _env) {
477
479
  model: agentConfig.model,
478
480
  endpointKey: agentConfig.endpointKey
479
481
  });
480
- const upstreamWire = provider === "nolo" && agentConfig.model === "deepseek-v4-pro" ? "chat.completions" : useResponses ? "responses" : "chat.completions";
481
- const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
482
+ const upstreamWire = useResponses ? "responses" : "chat.completions";
483
+ const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider, agentConfig.model) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
482
484
  return {
483
485
  authMethod: { kind: "platform-key" },
484
486
  transport,
@@ -635,6 +637,7 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
635
637
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
636
638
  { id: "core-persona", owner: "agent", cacheScope: "session", content: corePersonaSection },
637
639
  { id: "tool-round-economy", owner: "platform", cacheScope: "session", content: toolSections.toolRoundEconomy },
640
+ { id: "privilege-escalation", owner: "platform", cacheScope: "session", content: toolSections.privilegeEscalation },
638
641
  { id: "agent-orchestration", owner: "platform", cacheScope: "session", content: toolSections.agentOrchestration },
639
642
  { id: "agent-collaboration", owner: "platform", cacheScope: "session", content: toolSections.agentCollaboration },
640
643
  { id: "web-access", owner: "platform", cacheScope: "session", content: toolSections.webAccess },
@@ -659,13 +662,7 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
659
662
  { id: "memory-overlay", owner: "runtime", cacheScope: "turn", content: memoryOverlaySection },
660
663
  { id: "app-working-memory", owner: "runtime", cacheScope: "turn", content: appWorkingMemorySection },
661
664
  { id: "dialog-summary", owner: "runtime", cacheScope: "turn", content: dialogSummarySection },
662
- { id: "editing-context", owner: "runtime", cacheScope: "turn", content: editingContextSection },
663
- {
664
- id: "current-time",
665
- owner: "platform",
666
- cacheScope: "turn",
667
- content: buildCurrentTimeBlock(now, timeZone)
668
- }
665
+ { id: "editing-context", owner: "runtime", cacheScope: "turn", content: editingContextSection }
669
666
  ]);
670
667
  };
671
668
 
@@ -836,7 +833,8 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
836
833
  return normalizeChatCompletionsBodyForProvider({
837
834
  body: requestBody,
838
835
  provider: providerName,
839
- model: requestBody.model
836
+ model: requestBody.model,
837
+ endpoint: agentConfig.customProviderUrl
840
838
  });
841
839
  };
842
840
 
@@ -1008,13 +1006,22 @@ var generateRequestBody = ({
1008
1006
  resolveAgentCallPlan(agentConfigForRequest, {})
1009
1007
  );
1010
1008
  if (clientWire === "responses") {
1011
- return generateResponseRequestBody(
1009
+ const body = generateResponseRequestBody(
1012
1010
  agentConfigForRequest,
1013
1011
  [...stableMessages ?? [], ...messages],
1014
1012
  contexts,
1015
1013
  prependSystemPrompt,
1016
1014
  responsesState
1017
1015
  );
1016
+ body.prompt_cache_key ??= stablePromptCacheKey(
1017
+ [
1018
+ agentConfigForRequest.model,
1019
+ agentConfigForRequest.dbKey ?? "",
1020
+ agentConfigForRequest.prompt ?? ""
1021
+ ],
1022
+ "nolo-openai"
1023
+ );
1024
+ return body;
1018
1025
  }
1019
1026
  const baseBody = generateOpenAIRequestBody(
1020
1027
  agentConfigForRequest,
@@ -0,0 +1,66 @@
1
+ import {
2
+ resolveNoloHome
3
+ } from "./chunk-GLKOYSRU.js";
4
+
5
+ // packages/database-engine/cliAuthorityStoreDriver.ts
6
+ import path from "node:path";
7
+ function readCliAuthorityDriver(env) {
8
+ const value = env.NOLO_CLI_AUTHORITY_DRIVER?.trim();
9
+ if (value === "broker") {
10
+ return { driver: "broker", invalidDriver: null };
11
+ }
12
+ return {
13
+ driver: "broker",
14
+ invalidDriver: value ? value : null
15
+ };
16
+ }
17
+ function resolveCliAuthorityRunDir(options = {}) {
18
+ return path.join(resolveNoloHome({
19
+ ...options,
20
+ env: options.env ?? process.env
21
+ }), "run");
22
+ }
23
+ function hashString(value) {
24
+ let hash = 0;
25
+ for (let index = 0; index < value.length; index += 1) {
26
+ hash = (hash << 5) - hash + value.charCodeAt(index) | 0;
27
+ }
28
+ return Math.abs(hash);
29
+ }
30
+ function resolveCliAuthorityBrokerPort(options = {}) {
31
+ const envPort = options.env?.NOLO_CLI_AUTHORITY_BROKER_PORT?.trim();
32
+ if (envPort) {
33
+ const port = Number(envPort);
34
+ if (Number.isInteger(port) && port > 0 && port < 65536) return port;
35
+ }
36
+ const noloHome = resolveNoloHome({
37
+ ...options,
38
+ env: options.env ?? {}
39
+ });
40
+ return 47e3 + hashString(noloHome) % 2e3;
41
+ }
42
+ function resolveCliAuthorityStoreDriver(options = {}) {
43
+ return readCliAuthorityDriver(options.env ?? {}).driver;
44
+ }
45
+ function resolveCliAuthorityBrokerSocketPath(options) {
46
+ return path.join(resolveCliAuthorityRunDir(options), "authority-store-broker.sock");
47
+ }
48
+ function resolveCliAuthorityBrokerEndpoint(options) {
49
+ if (options.transport === "tcp") {
50
+ return `tcp://127.0.0.1:${resolveCliAuthorityBrokerPort(options)}`;
51
+ }
52
+ return `unix://${resolveCliAuthorityBrokerSocketPath(options)}`;
53
+ }
54
+ function resolveCliAuthorityBrokerMetadataPath(options) {
55
+ return path.join(resolveCliAuthorityRunDir(options), "authority-store-broker.json");
56
+ }
57
+ function resolveCliAuthorityBrokerHealthPath(options) {
58
+ return path.join(resolveCliAuthorityRunDir(options), "authority-store-broker.health.json");
59
+ }
60
+
61
+ export {
62
+ resolveCliAuthorityStoreDriver,
63
+ resolveCliAuthorityBrokerEndpoint,
64
+ resolveCliAuthorityBrokerMetadataPath,
65
+ resolveCliAuthorityBrokerHealthPath
66
+ };
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-KQDAE64E.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-R5UBODT3.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -2,6 +2,8 @@
2
2
  var QUOTA_ERROR_PATTERNS = [
3
3
  /429/,
4
4
  /quota/i,
5
+ /access_terminated_error/i,
6
+ /(?:weekly|monthly)\s*(?:\([^)]*\)\s*)?usage\s+limit/i,
5
7
  /rate\s*limit/i,
6
8
  /too\s*many\s*requests/i,
7
9
  /额度/,
@@ -24,11 +26,24 @@ function isQuotaExhaustedError(error) {
24
26
  return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(error));
25
27
  }
26
28
  const maybeStatus = error.status;
27
- if (typeof maybeStatus === "number" && maybeStatus === 429) return true;
28
29
  const maybeStatusCode = error.statusCode;
29
- if (typeof maybeStatusCode === "number" && maybeStatusCode === 429) return true;
30
+ const status = typeof maybeStatus === "number" ? maybeStatus : maybeStatusCode;
31
+ if (status === 429) return true;
32
+ if (status === 403) {
33
+ const message = extractMessage(error);
34
+ return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(message));
35
+ }
30
36
  return false;
31
37
  }
38
+ function extractMessage(error) {
39
+ if (typeof error === "string") return error;
40
+ if (error instanceof Error) return error.message;
41
+ if (error && typeof error === "object") {
42
+ const m = error.message;
43
+ return typeof m === "string" ? m : "";
44
+ }
45
+ return "";
46
+ }
32
47
  function parseResetsInMs(text) {
33
48
  if (!text) return void 0;
34
49
  const unitMs = (n, unit) => {
@@ -114,7 +129,11 @@ function parseResetAtText(value, now) {
114
129
  return Number.isFinite(parsed) && parsed > now ? parsed : void 0;
115
130
  }
116
131
  function matchesPeriodicUsageLimitText(text) {
117
- return /weekly usage limit|monthly usage limit/i.test(text);
132
+ return /(?:weekly|monthly)\s*(?:\([^)]*\)\s*)?usage\s+limit/i.test(text);
133
+ }
134
+ function isQuotaLimited403Body(body) {
135
+ const text = typeof body === "string" ? body : JSON.stringify(body ?? "");
136
+ return matchesPeriodicUsageLimitText(text) || /access_terminated_error/i.test(text) || /(?:quota|usage)\s+(?:is\s+)?(?:exhausted|depleted|used\s+up|reached)/i.test(text) || /(?:quota|usage).{0,40}\b(?:reset|resets)\s+at\b/i.test(text);
118
137
  }
119
138
  function resolveNextAvailableAt(body, now, headers) {
120
139
  const headerRetryAfter = headers && typeof headers.get === "function" ? headers.get("retry-after") : headers?.["retry-after"] ?? headers?.["Retry-After"];
@@ -132,6 +151,9 @@ function resolveNextAvailableAt(body, now, headers) {
132
151
  return clampCooldownDeadline(parsed, now);
133
152
  }
134
153
  function resolveAvailabilityAction(status, body, now, headers) {
154
+ if (status === 403 && isQuotaLimited403Body(body)) {
155
+ return { kind: "mark", nextAvailableAt: resolveNextAvailableAt(body, now, headers) };
156
+ }
135
157
  if (status >= 200 && status < 300) return { kind: "clear" };
136
158
  if (status === 429) {
137
159
  return { kind: "mark", nextAvailableAt: resolveNextAvailableAt(body, now, headers) };
@@ -161,6 +183,7 @@ export {
161
183
  QUOTA_ERROR_PATTERNS,
162
184
  isQuotaExhaustedError,
163
185
  isAgentUnavailableNow,
186
+ isQuotaLimited403Body,
164
187
  resolveAvailabilityAction,
165
188
  mergeAvailabilityDeadline,
166
189
  resolveCooldownGate
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-7NYDJAQ7.js";
10
+ } from "./chunk-DNNSCSA2.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-4VNS5WPM.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-ZVOHVJI3.js";
4
+ } from "./chunk-RJ2SAFB5.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-AGGIDPCZ.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-TC6P4NDR.js";
16
+ } from "./chunk-HQP7HJDL.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
- } from "./chunk-YLCUU3WM.js";
19
+ } from "./chunk-4NJEIGBQ.js";
20
20
  import {
21
21
  getActiveDialogAgentId,
22
22
  getDialogAgentIds,
@@ -55,23 +55,26 @@ import {
55
55
  readCacheCreationInputTokens,
56
56
  readCacheReadInputTokens,
57
57
  resolveAutoExecutionProfile
58
- } from "./chunk-K4NISKOR.js";
58
+ } from "./chunk-5ZYA4JJ3.js";
59
59
  import {
60
60
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
61
61
  buildCompactionMetricsFromPlan,
62
62
  buildCompactionUserContent,
63
- estimateTokenCount,
64
63
  formatCompactionMetricsLog,
65
64
  formatFileOperationsFromMessages,
66
65
  formatMessagesForSummaryWithTruncation,
67
66
  normalizeAssistantContentBuffer,
67
+ normalizeTimingMs,
68
68
  planCompression,
69
69
  serializeMessageContent
70
- } from "./chunk-BBTN4NQD.js";
70
+ } from "./chunk-Z4QSJILV.js";
71
+ import {
72
+ estimateTokenCount
73
+ } from "./chunk-PSCNXBYA.js";
71
74
  import {
72
75
  findModelConfig,
73
76
  getModelConfig
74
- } from "./chunk-SVDMVX4G.js";
77
+ } from "./chunk-MMZ6ZTVO.js";
75
78
  import {
76
79
  toErrorMessage
77
80
  } from "./chunk-HNMXYYJR.js";
@@ -79,6 +82,7 @@ import {
79
82
  fetchMessages
80
83
  } from "./chunk-BYEJ7K2Z.js";
81
84
  import {
85
+ PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
82
86
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
83
87
  PLATFORM_HOSTED_GLM_53_FLASH_MODEL,
84
88
  getPlatformHostedDeepSeekV4Price,
@@ -86,10 +90,10 @@ import {
86
90
  isPlatformHostedDeepSeekV4Model,
87
91
  isPlatformHostedImageModel,
88
92
  isPlatformHostedOpenAIImageModel
89
- } from "./chunk-HPW5MNDQ.js";
93
+ } from "./chunk-22BTGNSP.js";
90
94
  import {
91
95
  nolotusId
92
- } from "./chunk-SVC3GGUA.js";
96
+ } from "./chunk-VMWYBIXG.js";
93
97
  import {
94
98
  asRecordOrEmpty
95
99
  } from "./chunk-KX6YBIHG.js";
@@ -99,7 +103,7 @@ import {
99
103
  remove,
100
104
  selectById,
101
105
  write
102
- } from "./chunk-7NYDJAQ7.js";
106
+ } from "./chunk-DNNSCSA2.js";
103
107
  import {
104
108
  buildDialogAgentListIndexDeleteOps,
105
109
  createDialogMessageKeyAndId,
@@ -124,7 +128,7 @@ import {
124
128
  builtinAgentCatalogEntryById,
125
129
  builtinRuntimeFallbackEntries,
126
130
  isBuiltinPlatformAgentKey
127
- } from "./chunk-2WBFJHQA.js";
131
+ } from "./chunk-L7B47JXR.js";
128
132
  import {
129
133
  extractCustomId,
130
134
  extractUserId,
@@ -139,13 +143,17 @@ import {
139
143
  createSelector,
140
144
  getRuntimeServerContext,
141
145
  parseOwnerUserIdFromDbKey,
142
- scheduleDeleteReplication,
143
- selectIdentityUserId
144
- } from "./chunk-XOJRZUPF.js";
146
+ scheduleDeleteReplication
147
+ } from "./chunk-KWSQR2KK.js";
145
148
  import {
146
149
  createClientLogger,
147
150
  isAbortError
148
151
  } from "./chunk-QOKAKDPE.js";
152
+ import {
153
+ selectIdentityToken,
154
+ selectIdentityUser,
155
+ selectIdentityUserId
156
+ } from "./chunk-SEJ5OS6F.js";
149
157
  import {
150
158
  isTombstoneRecord,
151
159
  shouldReplaceWithNextRecord
@@ -206,7 +214,7 @@ var addReferenceKeysAction = createAsyncThunk(
206
214
  // packages/chat/messages/toolPresentation.ts
207
215
  var SUMMARY_EMOJI_PREFIX = new RegExp("^(\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\[[vx!]\\])\\s*", "u");
208
216
 
209
- // packages/chat/messages/web/assistantReplyPendingState.ts
217
+ // packages/chat/messages/assistantMessageFacts.ts
210
218
  var isAssistantToolStub = (msg) => msg?.role === "assistant" && (msg.content == null || typeof msg.content === "string" && msg.content.trim().length === 0 || Array.isArray(msg.content) && msg.content.length === 0) && Array.isArray(msg?.tool_calls) && msg.tool_calls.length > 0;
211
219
 
212
220
  // packages/chat/messages/messageDeleteCascade.ts
@@ -1176,6 +1184,12 @@ function applyMessageStreamingUpsert(existing, chunk) {
1176
1184
  ...chunk
1177
1185
  };
1178
1186
  merged.isStreaming = true;
1187
+ if (existing && existing.role === "assistant" && merged.role === "assistant" && typeof existing.content === "string" && existing.content.length > 0 && typeof merged.content === "string" && merged.content.length < existing.content.length && existing.content.startsWith(merged.content)) {
1188
+ merged.content = existing.content;
1189
+ }
1190
+ if (existing && existing.role === "assistant" && merged.role === "assistant" && typeof existing.thinkContent === "string" && existing.thinkContent.length > 0 && typeof merged.thinkContent === "string" && merged.thinkContent.length < existing.thinkContent.length && existing.thinkContent.startsWith(merged.thinkContent)) {
1191
+ merged.thinkContent = existing.thinkContent;
1192
+ }
1179
1193
  return merged;
1180
1194
  }
1181
1195
 
@@ -1930,7 +1944,7 @@ async function captureUnderstandingFromCompletedUiTurn(input) {
1930
1944
  const latestUserInput = getLatestUserInputFromMessages(input.messages);
1931
1945
  if (!latestUserInput) return;
1932
1946
  const state = input.state;
1933
- const token = typeof state?.auth?.currentToken === "string" ? state.auth.currentToken : null;
1947
+ const token = selectIdentityToken(state) ?? null;
1934
1948
  const baseUrl = resolveMemoryCaptureBaseUrl(state);
1935
1949
  if (!token || !baseUrl) return;
1936
1950
  const dialog = input.dialogKey ? selectById(state, input.dialogKey) : void 0;
@@ -2872,7 +2886,7 @@ var messageSlice = createSliceWithThunks({
2872
2886
  runtimeOptions: args.runtimeOptions
2873
2887
  });
2874
2888
  if (agentKeyToUse) {
2875
- const { streamAgentChatTurn } = await import("./agentSlice-ODKF4J6M.js");
2889
+ const { streamAgentChatTurn } = await import("./agentSlice-F6DOP4IW.js");
2876
2890
  await dispatch(
2877
2891
  streamAgentChatTurn({
2878
2892
  agentKey: agentKeyToUse,
@@ -3052,10 +3066,6 @@ var saveTokenRecord = async (tokenData, record, thunkApi, callId) => {
3052
3066
  }
3053
3067
  };
3054
3068
 
3055
- // packages/identity/actions.local.ts
3056
- var NOOP_ACTION = { type: "identity/noop" };
3057
- var deductBalance = (_amount) => NOOP_ACTION;
3058
-
3059
3069
  // packages/ai/token/calculatePrice.ts
3060
3070
  var sanitizeCost = (raw) => {
3061
3071
  const rounded = Number(raw.toFixed(6));
@@ -3379,7 +3389,7 @@ var calculatePrice = ({
3379
3389
  return { cost: sanitizeCost(adjusted.charge), pay: pay3 };
3380
3390
  }
3381
3391
  if ((provider === "nolo" || provider === "deepseek") && isPlatformHostedDeepSeekV4Model(modelName)) {
3382
- const hostedModel = getModelConfig("nolo", modelName);
3392
+ const hostedModel = getModelConfig("nolo", PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL);
3383
3393
  const costs3 = calculateBasicCost(
3384
3394
  hostedModel,
3385
3395
  usage,
@@ -3500,6 +3510,12 @@ var normalizeUsage = (usage) => {
3500
3510
  const providerRequestIds = normalizeStringArray(
3501
3511
  usage.provider_request_ids
3502
3512
  );
3513
+ const firstOutputMs = normalizeTimingMs(
3514
+ readFiniteNumberField(usage, "firstOutputMs") ?? readFiniteNumberField(usage, "firstTokenMs")
3515
+ );
3516
+ const callDurationMs = normalizeTimingMs(
3517
+ readFiniteNumberField(usage, "callDurationMs") ?? readFiniteNumberField(usage, "durationMs")
3518
+ );
3503
3519
  return {
3504
3520
  input_tokens: inputTokens,
3505
3521
  output_tokens: outputTokens,
@@ -3516,7 +3532,9 @@ var normalizeUsage = (usage) => {
3516
3532
  ...billingEstimated ? { billing_estimated: true } : {},
3517
3533
  ...serverBilled ? { server_billed: true } : {},
3518
3534
  ...providerCallId ? { provider_call_id: providerCallId } : {},
3519
- ...xaiTicks !== void 0 ? { cost_in_usd_ticks: xaiTicks } : {}
3535
+ ...xaiTicks !== void 0 ? { cost_in_usd_ticks: xaiTicks } : {},
3536
+ ...firstOutputMs !== void 0 ? { firstOutputMs } : {},
3537
+ ...callDurationMs !== void 0 ? { callDurationMs } : {}
3520
3538
  };
3521
3539
  };
3522
3540
 
@@ -3562,7 +3580,16 @@ function resolveTokenUsagePricing(args) {
3562
3580
  const billedProvider = billingTarget.provider;
3563
3581
  const billedModel = billingTarget.model;
3564
3582
  const billedServiceTier = billingTarget.serviceTier;
3565
- const hasExternalPrice = agentConfig.inputPrice !== void 0 && agentConfig.inputPrice > 0 || agentConfig.outputPrice !== void 0 && agentConfig.outputPrice > 0;
3583
+ const canonicalAgentId = args.agentId?.trim();
3584
+ const isCodeOwnedBuiltin = isBuiltinPlatformAgentKey(canonicalAgentId);
3585
+ const isPlatformBilled = agentConfig.apiSource === "platform";
3586
+ const hasPersistedPrices = agentConfig.inputPrice !== void 0 && agentConfig.inputPrice > 0 || agentConfig.outputPrice !== void 0 && agentConfig.outputPrice > 0;
3587
+ if (isPlatformBilled && !isCodeOwnedBuiltin && hasPersistedPrices) {
3588
+ console.warn(
3589
+ `[billing] platform agent ignored persisted prices (input=${agentConfig.inputPrice}, output=${agentConfig.outputPrice}); canonical key missing or not in builtin set: "${canonicalAgentId || ""}"`
3590
+ );
3591
+ }
3592
+ const hasExternalPrice = !isCodeOwnedBuiltin && !isPlatformBilled && hasPersistedPrices;
3566
3593
  const { cost, pay } = calculatePrice({
3567
3594
  provider: billedProvider,
3568
3595
  modelName: billedModel,
@@ -3624,14 +3651,10 @@ var prepareTokenUsageData = ({
3624
3651
  entry_path
3625
3652
  }) => {
3626
3653
  const resolvedAgentId = typeof agentId === "string" && agentId.trim() || typeof cybotId === "string" && cybotId.trim() || "";
3627
- if (!resolvedAgentId) {
3628
- throw new Error(
3629
- "prepareTokenUsageData requires a non-empty agentId or cybotId"
3630
- );
3631
- }
3632
3654
  const { usage, billedProvider, billedModel, billedServiceTier, cost, pay, hasExternalPrice } = resolveTokenUsagePricing({
3633
3655
  rawUsage,
3634
3656
  agentConfig,
3657
+ agentId: resolvedAgentId,
3635
3658
  nowMs: timestamp
3636
3659
  });
3637
3660
  const recordProvider = billedProvider ?? agentConfig.provider ?? "unknown";
@@ -3930,7 +3953,7 @@ var saveTokenUsage = async (data, thunkApi) => {
3930
3953
  };
3931
3954
  var updateTokensAction = async ({ dialogId, dialogKey, usage: legacyUsage, usageRecord, agentConfig }, thunkApi) => {
3932
3955
  const state = thunkApi.getState();
3933
- const { currentUser } = state.auth;
3956
+ const currentUser = selectIdentityUser(state);
3934
3957
  const dialogConfig = dialogKey ? selectById(state, dialogKey) : null;
3935
3958
  const dialogConfigUserId = dialogConfig?.userId;
3936
3959
  const ownerUserId = resolveMessageOwner({
@@ -3990,7 +4013,7 @@ var updateTokensAction = async ({ dialogId, dialogKey, usage: legacyUsage, usage
3990
4013
  }
3991
4014
  await saveTokenUsage(persistedTokenData, thunkApi);
3992
4015
  if (persistedTokenData.billable === true || persistedTokenData.billable === void 0 && result.cost > 0) {
3993
- thunkApi.dispatch(deductBalance(result.cost));
4016
+ thunkApi.extra?.accountSession?.deductBalance(result.cost);
3994
4017
  }
3995
4018
  if (dialogKey) {
3996
4019
  await queueDialogTokenPatch(dialogKey, async () => {
@@ -4103,7 +4126,7 @@ var deleteOwnedDialogAttachments = async (args) => {
4103
4126
  metadataReadFailures
4104
4127
  });
4105
4128
  if (!plan.deleteCandidates.length) return plan;
4106
- const { deleteFileAction } = await import("./deleteFile-JYKRT7C3.js");
4129
+ const { deleteFileAction } = await import("./deleteFile-FWP2PSBG.js");
4107
4130
  for (const candidate of plan.deleteCandidates) {
4108
4131
  if (candidate.fileDbKey) {
4109
4132
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -4165,7 +4188,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4165
4188
  }
4166
4189
  if (isCurrentDialog) {
4167
4190
  await thunkApi.dispatch(resetMsgs());
4168
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-TYW2G7IL.js");
4191
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ANMACABO.js");
4169
4192
  dispatch(clearPendingAttachments2());
4170
4193
  }
4171
4194
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -4173,39 +4196,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4173
4196
 
4174
4197
  // packages/chat/dialog/dialogSlice.ts
4175
4198
  var runCreateDialogAction = async (args, thunkApi) => {
4176
- const { createDialogAction } = await import("./createDialogAction-JDSMY4AY.js");
4199
+ const { createDialogAction } = await import("./createDialogAction-SFEJX6SP.js");
4177
4200
  return createDialogAction(args, thunkApi);
4178
4201
  };
4179
4202
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
4180
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-OK4L33KF.js");
4203
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-PJQSCAIO.js");
4181
4204
  return createAgentAutomationAction(args, thunkApi);
4182
4205
  };
4183
4206
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
4184
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-YFYAEW3T.js");
4207
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-HWJIZEIV.js");
4185
4208
  return updateDialogTitleAction(args, thunkApi);
4186
4209
  };
4187
4210
  var runAddDialogAgentAction = async (args, thunkApi) => {
4188
- const { addDialogAgentAction } = await import("./addDialogAgentAction-JRYUS54Y.js");
4211
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-RZOAF46K.js");
4189
4212
  return addDialogAgentAction(args, thunkApi);
4190
4213
  };
4191
4214
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
4192
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-ECHCFB7N.js");
4215
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-SFYZXHNK.js");
4193
4216
  return removeDialogAgentAction(args, thunkApi);
4194
4217
  };
4195
4218
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
4196
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-VDOBOMKC.js");
4219
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-BFYJHUJS.js");
4197
4220
  return setPrimaryDialogAgentAction(args, thunkApi);
4198
4221
  };
4199
4222
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
4200
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-5L4UP7VI.js");
4223
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-L2KOKCGG.js");
4201
4224
  return switchDialogAgentAction(args, thunkApi);
4202
4225
  };
4203
4226
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
4204
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-KCVJNGMB.js");
4227
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-Q32RGFTA.js");
4205
4228
  return setDialogExtraReferencesAction(args, thunkApi);
4206
4229
  };
4207
4230
  var runHandleSendMessageAction = async (args, thunkApi) => {
4208
- const { handleSendMessageAction } = await import("./handleSendMessageAction-GO53TY7U.js");
4231
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-DF2OABGW.js");
4209
4232
  return handleSendMessageAction(args, thunkApi);
4210
4233
  };
4211
4234
  function clearDialogState() {
@@ -4218,7 +4241,7 @@ var createPageAndAddReference = createAsyncThunk(
4218
4241
  async (payload, { dispatch, getState, rejectWithValue }) => {
4219
4242
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
4220
4243
  try {
4221
- const { createDocState } = await import("./docStore-2URPBVCS.js");
4244
+ const { createDocState } = await import("./docStore-D4HGHPWI.js");
4222
4245
  const pageKey = await createDocState(
4223
4246
  { slateData, title },
4224
4247
  { dispatch, getState }