nolo-cli 0.8.0-alpha.23 → 0.8.0-alpha.25

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 (114) hide show
  1. package/{_executeModel-YXTTYRXS.js → _executeModel-IYPAOWQQ.js} +48 -48
  2. package/{action-QM2ONPYZ.js → action-UAHWPMZB.js} +7 -8
  3. package/{addContentAction-UXY3GM53.js → addContentAction-PFIP76LT.js} +6 -8
  4. package/{addDialogAgentAction-MUBYOG65.js → addDialogAgentAction-LWDAIDEU.js} +8 -9
  5. package/{agentDeleteCommand-4NO7Y6UI.js → agentDeleteCommand-M6KIV6ZZ.js} +36 -27
  6. package/{agentEmailCommands-NPP5TGZV.js → agentEmailCommands-JGAZ26N2.js} +60 -59
  7. package/{agentListCommands-IP5BNB5W.js → agentListCommands-3TQWUC4W.js} +120 -28
  8. package/{agentMachineCommands-24NFTIKY.js → agentMachineCommands-EBCDKO4T.js} +36 -26
  9. package/{agentRecordCommands-7AWSR46F.js → agentRecordCommands-ZKOLGEMX.js} +53 -52
  10. package/{agentRunCommand-P46WCJ6P.js → agentRunCommand-L6A3DKTB.js} +56 -57
  11. package/{agentRuntimeLocal-V5UV7S4R.js → agentRuntimeLocal-6Q4CEFXY.js} +27 -14
  12. package/{agentSlice-3CVAZZOP.js → agentSlice-XRG5ODYW.js} +7 -8
  13. package/{authCommand-B6P2XYLN.js → authCommand-ELPMOABY.js} +13 -13
  14. package/{authCommands-4YKA4GTU.js → authCommands-PUQRVHHW.js} +5 -5
  15. package/{chunk-AFON4QUU.js → chunk-3QKO4EHV.js} +3 -3
  16. package/{chunk-D55DXHXL.js → chunk-4GBNEA5B.js} +1 -1
  17. package/{chunk-PXZAAB4L.js → chunk-4LG74DRG.js} +4 -4
  18. package/{chunk-RBCNBU2A.js → chunk-524BDL33.js} +1 -0
  19. package/{chunk-HAC6GPRE.js → chunk-5EUAXXSV.js} +2 -2
  20. package/{chunk-P7GAHW32.js → chunk-5LDYVJXY.js} +191 -40
  21. package/{chunk-DSNLHTP3.js → chunk-66DXKPRS.js} +9 -2
  22. package/{chunk-5NYGMN4O.js → chunk-67Z375LK.js} +17 -17
  23. package/{chunk-6OHYC4BY.js → chunk-6PXKSN2M.js} +4 -3
  24. package/{chunk-LFFATN2M.js → chunk-ALEDPZVP.js} +94 -54
  25. package/{chunk-ZAUDEKML.js → chunk-DW75SYWV.js} +95 -2327
  26. package/{chunk-A4MYG3TR.js → chunk-EEUWELOX.js} +15 -15
  27. package/chunk-GVQT3FIB.js +2286 -0
  28. package/chunk-I2HCZWJU.js +144 -0
  29. package/{chunk-LBUTKV7S.js → chunk-IG2EZS3N.js} +67 -20
  30. package/chunk-IKXL2HZ3.js +70 -0
  31. package/{chunk-2CVZSC5L.js → chunk-IVAOVLM7.js} +1 -1
  32. package/{chunk-L3KWEH3V.js → chunk-KPFGD3YA.js} +43 -12
  33. package/{chunk-4VA3UQRF.js → chunk-KRMH46UV.js} +10 -10
  34. package/{chunk-MIQOUMSN.js → chunk-LFETMU66.js} +8 -8
  35. package/{chunk-RBB43B5W.js → chunk-LWYCA4ZT.js} +307 -43
  36. package/{chunk-EUN3SYY7.js → chunk-MMCDCZM4.js} +6 -6
  37. package/{chunk-YOCHZD7D.js → chunk-NCGFB7NN.js} +5 -3
  38. package/{chunk-KLOCUWKZ.js → chunk-OCDEWRE2.js} +1 -1
  39. package/{chunk-LJCH34R2.js → chunk-OOOKLEJ7.js} +6 -6
  40. package/{chunk-C4FTUXVF.js → chunk-QLUFR47U.js} +11 -1
  41. package/{chunk-RYMUT5JO.js → chunk-RB43SIIG.js} +32 -26
  42. package/{chunk-RQPZX6KP.js → chunk-S37OTGU7.js} +2 -2
  43. package/{chunk-AOKWJZ5N.js → chunk-S3UTETIC.js} +3 -2
  44. package/{chunk-ZJS64PZJ.js → chunk-SCBYSC74.js} +1 -1
  45. package/{chunk-AWY2AFHN.js → chunk-TSKWE74T.js} +53 -7
  46. package/{chunk-UBSKX3LP.js → chunk-UZZCXRHF.js} +6 -6
  47. package/{chunk-Q2WC4KGQ.js → chunk-V6ICY2YU.js} +5 -5
  48. package/{chunk-6KRA6AWI.js → chunk-VNGCTQ32.js} +1 -1
  49. package/{chunk-BB2PII22.js → chunk-WKWEV6K4.js} +1 -1
  50. package/{chunk-LW6FJFCT.js → chunk-WO6IG6YT.js} +146 -50
  51. package/{chunk-JTINRTBT.js → chunk-WPHL6ALY.js} +1 -1
  52. package/{chunk-KTHLAJEY.js → chunk-WZF7M6GX.js} +1 -1
  53. package/{chunk-LTH6AVG7.js → chunk-XDXO65DS.js} +3 -3
  54. package/{chunk-BFDWXLFF.js → chunk-XGMCGPEA.js} +64 -5
  55. package/{chunk-WESWWEVA.js → chunk-XGOTQ6ZG.js} +1 -1
  56. package/{chunk-VBKJTOAW.js → chunk-XHQWJUW4.js} +2 -2
  57. package/{chunk-O7VS7JLJ.js → chunk-XIZIRGXB.js} +15 -15
  58. package/{chunk-PTT6KSYQ.js → chunk-Y7QCVJ73.js} +239 -90
  59. package/{chunk-6UUD2WES.js → chunk-ZR4VHQ5D.js} +14 -13
  60. package/{createAgentAutomationAction-DYQOGAVE.js → createAgentAutomationAction-HZJ4LPCW.js} +23 -25
  61. package/{createDialogAction-ETB3KQQE.js → createDialogAction-KICYAHEQ.js} +25 -27
  62. package/{createPageAction-UF2RHA63.js → createPageAction-VWBZOQPP.js} +25 -27
  63. package/{dbSlice-R5EJKZBW.js → dbSlice-V4H2JFNB.js} +5 -6
  64. package/{deleteFile-WPWVZE4B.js → deleteFile-M7UNIUOO.js} +3 -3
  65. package/{dialogCommands-LYYC7XHF.js → dialogCommands-UMT7AOOR.js} +31 -22
  66. package/{dialogSlice-IFBZ4IT2.js → dialogSlice-G3WPGLY5.js} +23 -25
  67. package/{docCreateCommands-I66OI374.js → docCreateCommands-MAZSFQQ5.js} +34 -25
  68. package/{docDeleteCommands-OVRBCHMF.js → docDeleteCommands-DOTLD7HA.js} +34 -26
  69. package/{docReadCommands-YLWUMEH7.js → docReadCommands-PH255AKZ.js} +34 -25
  70. package/{docStore-65WO7U36.js → docStore-K7U47JYV.js} +22 -24
  71. package/{docUpdateCommands-NSICS4IN.js → docUpdateCommands-RLRID2K7.js} +34 -25
  72. package/fetchMessages-KTNM7QAR.js +1 -1
  73. package/{getPricing-7PUT44ZS.js → getPricing-6TOZXPAU.js} +4 -4
  74. package/{handleSendMessageAction-T76HEDOP.js → handleSendMessageAction-UAI2ZOGG.js} +27 -29
  75. package/index.js +62 -62
  76. package/{localDialogRead-YSKFFRTT.js → localDialogRead-2VRI24F4.js} +1 -1
  77. package/{machineCommands-4HQY6UVZ.js → machineCommands-FE5HOJWR.js} +58 -57
  78. package/{machineWsRunDispatch-7YW2M4FS.js → machineWsRunDispatch-J56M67NJ.js} +52 -51
  79. package/{models-MFXNI3TF.js → models-LSCRJJ6P.js} +2 -2
  80. package/package.json +1 -1
  81. package/{read-5ZMY7FKP.js → read-2MIMRBZ2.js} +3 -3
  82. package/{readDocTool-2NXDK32S.js → readDocTool-QHVGQHUJ.js} +1 -1
  83. package/{readlineWorkspace-FLQWOAUR.js → readlineWorkspace-GK33VXX2.js} +196 -123
  84. package/{removeDialogAgentAction-KOLQ2R5W.js → removeDialogAgentAction-7GO2PRVQ.js} +12 -13
  85. package/{runAgentClientLoop-IUV2TR3X.js → runAgentClientLoop-EEC3BHWI.js} +45 -46
  86. package/{setDialogExtraReferencesAction-OMTEO7X6.js → setDialogExtraReferencesAction-ZIDAVJSZ.js} +8 -9
  87. package/{setPrimaryDialogAgentAction-DOCIS6V4.js → setPrimaryDialogAgentAction-LK35C2D7.js} +12 -13
  88. package/{settingSlice-UWZJYDOA.js → settingSlice-PRRC6IJ7.js} +6 -7
  89. package/{skillDiscovery-UGSQGX2U.js → skillDiscovery-ZYHSX7VD.js} +3 -3
  90. package/{spaceCommands-BDDAT4VU.js → spaceCommands-XE4PS24W.js} +36 -29
  91. package/{spaceSlice-HH633ZA4.js → spaceSlice-OE57MB22.js} +21 -23
  92. package/{streamAgentChatTurn-UBZOVFKV.js → streamAgentChatTurn-CI6VMD2Y.js} +208 -101
  93. package/{toolApiClient-C7P7YSE4.js → toolApiClient-QI3YBNWB.js} +2 -2
  94. package/{tools-OQZ34KCU.js → tools-I5VPDJHG.js} +32 -33
  95. package/{tuiSummaryLlmCaller-42AEL3LL.js → tuiSummaryLlmCaller-TXLF4MEI.js} +5 -5
  96. package/{updateDialogTitleAction-A3OOMSDO.js → updateDialogTitleAction-BKXHTAYL.js} +27 -28
  97. package/chunk-5MMAK75Q.js +0 -15
  98. package/chunk-AZPCASRE.js +0 -36
  99. package/chunk-RBCENBG7.js +0 -36
  100. package/chunk-UAD2WT54.js +0 -64
  101. package/{agentPullCommand-N6UWRTVL.js → agentPullCommand-LHFBA5EI.js} +6 -6
  102. package/{chunk-JK7VW2FN.js → chunk-5MIDPSSK.js} +3 -3
  103. package/{chunk-VC6OZXO5.js → chunk-6WWHKODG.js} +4 -4
  104. package/{chunk-BT37DVDA.js → chunk-7VKWMOSI.js} +9 -9
  105. package/{chunk-3QAF2LTL.js → chunk-DZ3XJVET.js} +3 -3
  106. package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
  107. package/{chunk-5MMZUWSG.js → chunk-TOILAPLH.js} +5 -5
  108. package/{chunk-DVRHHFEA.js → chunk-TSUJOM6N.js} +3 -3
  109. package/{db-6QED3ZVO.js → db-HCJ5PRB5.js} +3 -3
  110. package/{memoryCommands-HG4WKTU7.js → memoryCommands-HGNEENIN.js} +3 -3
  111. package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
  112. package/{runtimeDoctorCommands-UWR5UDSM.js → runtimeDoctorCommands-4YVMXBQP.js} +5 -5
  113. package/{tableCommands-M3DJUETS.js → tableCommands-LV2PPHNY.js} +6 -6
  114. package/{understanding-ZOESBLF3.js → understanding-3CUQQ6SV.js} +3 -3
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-UBSKX3LP.js";
4
+ } from "./chunk-UZZCXRHF.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -16,7 +16,7 @@ import {
16
16
  noloWriteRequest,
17
17
  selectIdentityUser,
18
18
  selectIdentityUserId
19
- } from "./chunk-DVRHHFEA.js";
19
+ } from "./chunk-TSUJOM6N.js";
20
20
  import {
21
21
  normalizeTimeFields
22
22
  } from "./chunk-OOSFSFMA.js";
@@ -15,7 +15,7 @@ import {
15
15
  platformHostedModels,
16
16
  xaiModels,
17
17
  zaiModels
18
- } from "./chunk-RBCNBU2A.js";
18
+ } from "./chunk-524BDL33.js";
19
19
  import {
20
20
  __export
21
21
  } from "./chunk-4VNS5WPM.js";
@@ -4774,7 +4774,8 @@ var API_ENDPOINTS = {
4774
4774
  default: "https://api.x.ai/v1/chat/completions"
4775
4775
  },
4776
4776
  deepseek: {
4777
- default: "https://api.deepseek.com/chat/completions"
4777
+ default: "https://api.deepseek.com/chat/completions",
4778
+ responses: "https://api.deepseek.com/v1/responses"
4778
4779
  },
4779
4780
  deepinfra: {
4780
4781
  default: "https://api.deepinfra.com/v1/openai/chat/completions"
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-LBUTKV7S.js";
4
+ } from "./chunk-IG2EZS3N.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-AOKWJZ5N.js";
3
+ } from "./chunk-S3UTETIC.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
7
- import {
8
- asTrimmedString
9
- } from "./chunk-3EUW3WEO.js";
10
7
  import {
11
8
  isRecord
12
9
  } from "./chunk-KUG52IAP.js";
10
+ import {
11
+ asTrimmedString
12
+ } from "./chunk-3EUW3WEO.js";
13
13
  import {
14
14
  normalizeServerOrigin
15
15
  } from "./chunk-CF7PE763.js";
@@ -29,8 +29,35 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
29
29
  };
30
30
  }
31
31
 
32
+ // packages/agent-runtime/openAiCompatibleMessages.ts
33
+ function preserveAgentStateFields(source, target) {
34
+ const mutableTarget = target;
35
+ if (source.role === "assistant") {
36
+ if (typeof source.reasoning_content === "string") {
37
+ mutableTarget.reasoning_content = source.reasoning_content;
38
+ }
39
+ if (Array.isArray(source.tool_calls)) {
40
+ mutableTarget.tool_calls = source.tool_calls;
41
+ }
42
+ }
43
+ if (source.role === "tool") {
44
+ const toolCallId = typeof source.tool_call_id === "string" ? source.tool_call_id.trim() : typeof source.toolCallId === "string" ? source.toolCallId.trim() : "";
45
+ if (toolCallId) mutableTarget.tool_call_id = toolCallId;
46
+ }
47
+ return target;
48
+ }
49
+ function toOpenAiCompatibleMessages(messages) {
50
+ return messages.map(
51
+ (message) => preserveAgentStateFields(message, {
52
+ role: message.role,
53
+ content: message.content ?? ""
54
+ })
55
+ );
56
+ }
57
+
32
58
  // packages/agent-runtime/platformProviderEndpoints.ts
33
59
  var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
60
+ var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/v1/responses";
34
61
  var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
35
62
  deepinfra: "https://api.deepinfra.com/v1/openai/chat/completions",
36
63
  deepseek: "https://api.deepseek.com/chat/completions",
@@ -47,7 +74,11 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
47
74
  nolo: "https://ollama.com/v1/chat/completions"
48
75
  };
49
76
  function isOpenAiResponsesModel(args) {
50
- if (asTrimmedLowercaseString(args.provider) !== "openai") return false;
77
+ const provider = asTrimmedLowercaseString(args.provider);
78
+ if (provider === "deepseek") {
79
+ return asTrimmedLowercaseString(args.model) === "deepseek-v4-flash";
80
+ }
81
+ if (provider !== "openai") return false;
51
82
  if (args.endpointKey === "responses") return true;
52
83
  if (!args.model) return false;
53
84
  try {
@@ -56,6 +87,16 @@ function isOpenAiResponsesModel(args) {
56
87
  return false;
57
88
  }
58
89
  }
90
+ function resolvePlatformResponsesEndpoint(provider) {
91
+ switch (asTrimmedLowercaseString(provider)) {
92
+ case "openai":
93
+ return OPENAI_RESPONSES_ENDPOINT;
94
+ case "deepseek":
95
+ return DEEPSEEK_RESPONSES_ENDPOINT;
96
+ default:
97
+ return void 0;
98
+ }
99
+ }
59
100
  var PLATFORM_PROVIDER_ENDPOINT_ALIASES = {
60
101
  "ollama-cloud": "nolo"
61
102
  };
@@ -81,7 +122,7 @@ function resolvePlatformProviderEndpoint(agentConfig) {
81
122
  model: agentConfig.model,
82
123
  endpointKey: agentConfig.endpointKey
83
124
  })) {
84
- return OPENAI_RESPONSES_ENDPOINT;
125
+ return resolvePlatformResponsesEndpoint(provider) ?? "";
85
126
  }
86
127
  const endpoint = resolvePlatformChatCompletionsEndpoint(provider);
87
128
  if (!endpoint) {
@@ -411,6 +452,9 @@ var convertMessagesToResponsesInput = (messages) => {
411
452
  continue;
412
453
  }
413
454
  const role = message.role;
455
+ if (role === "assistant" && typeof message.reasoning_content === "string" && message.reasoning_content) {
456
+ input.push({ type: "reasoning", content: message.reasoning_content });
457
+ }
414
458
  const contentParts = normalizeMessageParts(message.content, role);
415
459
  if (contentParts.length > 0) {
416
460
  input.push({
@@ -521,8 +565,10 @@ var extractToolCallsFromResponseOutput = (response) => {
521
565
 
522
566
  export {
523
567
  pickAgentRuntimeInferenceOptions,
524
- OPENAI_RESPONSES_ENDPOINT,
568
+ preserveAgentStateFields,
569
+ toOpenAiCompatibleMessages,
525
570
  isOpenAiResponsesModel,
571
+ resolvePlatformResponsesEndpoint,
526
572
  resolvePlatformChatCompletionsEndpoint,
527
573
  trimTrailingSlash,
528
574
  resolvePlatformServerUrl,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  parsePositiveFiniteNumberOrFallback
3
3
  } from "./chunk-Y5GCAMGP.js";
4
+ import {
5
+ asRecordOrEmpty
6
+ } from "./chunk-KX6YBIHG.js";
4
7
  import {
5
8
  patch,
6
9
  readAndWait,
7
10
  toTimestampMs,
8
11
  upsert,
9
12
  write
10
- } from "./chunk-L3KWEH3V.js";
11
- import {
12
- asRecordOrEmpty
13
- } from "./chunk-KX6YBIHG.js";
13
+ } from "./chunk-KPFGD3YA.js";
14
14
  import {
15
15
  createUserKey,
16
16
  createUserPreferenceKey,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-QSJ3HFEF.js";
22
22
  import {
23
23
  BUILTIN_NOLO_AGENT_KEY
24
- } from "./chunk-VBKJTOAW.js";
24
+ } from "./chunk-XHQWJUW4.js";
25
25
  import {
26
26
  asyncThunkCreator,
27
27
  buildCreateSlice,
@@ -29,7 +29,7 @@ import {
29
29
  createAsyncThunk,
30
30
  createSelector,
31
31
  selectIdentityUserId
32
- } from "./chunk-DVRHHFEA.js";
32
+ } from "./chunk-TSUJOM6N.js";
33
33
  import {
34
34
  getAllServers,
35
35
  getIsDesktopApp,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-P7GAHW32.js";
3
+ } from "./chunk-5LDYVJXY.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-W4NVOSFF.js";
@@ -12,17 +12,17 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-EUN3SYY7.js";
15
+ } from "./chunk-MMCDCZM4.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
19
+ import {
20
+ toErrorMessage
21
+ } from "./chunk-HNMXYYJR.js";
19
22
  import {
20
23
  parseUserIdFromAuthToken,
21
24
  resolveAuthToken
22
25
  } from "./chunk-AVMJVOQY.js";
23
- import {
24
- toErrorMessage
25
- } from "./chunk-HNMXYYJR.js";
26
26
 
27
27
  // packages/cli/agentRecordCommands.ts
28
28
  async function runAgentReadCommand(args, deps = {}) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  canonicalizeToolNames
3
- } from "./chunk-6OHYC4BY.js";
3
+ } from "./chunk-6PXKSN2M.js";
4
4
  import {
5
5
  asTrimmedString
6
6
  } from "./chunk-3EUW3WEO.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-EUN3SYY7.js";
5
+ } from "./chunk-MMCDCZM4.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -1,85 +1,84 @@
1
1
  import {
2
2
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
3
3
  isAntigravityOAuthAgent
4
- } from "./chunk-D55DXHXL.js";
4
+ } from "./chunk-4GBNEA5B.js";
5
5
  import {
6
6
  clipMultilineText,
7
7
  fetchAndSerializeTable
8
- } from "./chunk-PTT6KSYQ.js";
8
+ } from "./chunk-Y7QCVJ73.js";
9
9
  import {
10
10
  normalizeNonNegativeMs,
11
11
  parseRetryAfterHeaderMs
12
12
  } from "./chunk-GAKEBQD6.js";
13
13
  import {
14
14
  slateToSimplifiedMarkdown
15
- } from "./chunk-2CVZSC5L.js";
15
+ } from "./chunk-IVAOVLM7.js";
16
16
  import {
17
17
  extractCategorizedMentions
18
18
  } from "./chunk-VP4WJWKW.js";
19
19
  import {
20
20
  resolvePageSkillMetadata
21
- } from "./chunk-VC6OZXO5.js";
21
+ } from "./chunk-6WWHKODG.js";
22
22
  import {
23
- estimateTokenCount,
24
23
  fetchAndCacheMessages,
25
24
  shouldUseServerProxy
26
- } from "./chunk-ZAUDEKML.js";
25
+ } from "./chunk-DW75SYWV.js";
27
26
  import {
28
27
  fetchServerSyncedCredential
29
- } from "./chunk-4VA3UQRF.js";
30
- import {
31
- createSpaceKey
32
- } from "./chunk-UAD2WT54.js";
33
- import {
34
- read
35
- } from "./chunk-L3KWEH3V.js";
36
- import {
37
- MEMORY_USE_GUIDANCE,
38
- wrapHistoricalSummaryWithReplayGuard
39
- } from "./chunk-KKY4B2Q2.js";
28
+ } from "./chunk-KRMH46UV.js";
40
29
  import {
41
30
  buildCurrentTimeBlock,
42
31
  buildIdentityBlock,
43
32
  buildRuntimeGuidanceBlocks
44
- } from "./chunk-6KRA6AWI.js";
33
+ } from "./chunk-VNGCTQ32.js";
45
34
  import {
46
- OPENAI_RESPONSES_ENDPOINT,
47
35
  buildProviderAuthHeaders,
48
36
  convertMessagesToResponsesInput,
49
37
  isOpenAiResponsesModel,
50
- resolvePlatformChatCompletionsEndpoint
51
- } from "./chunk-AWY2AFHN.js";
38
+ preserveAgentStateFields,
39
+ resolvePlatformChatCompletionsEndpoint,
40
+ resolvePlatformResponsesEndpoint
41
+ } from "./chunk-TSKWE74T.js";
52
42
  import {
53
43
  canonicalizeToolNames
54
- } from "./chunk-6OHYC4BY.js";
44
+ } from "./chunk-6PXKSN2M.js";
45
+ import {
46
+ estimateTokenCount
47
+ } from "./chunk-GVQT3FIB.js";
55
48
  import {
56
49
  clampReasoningEffort,
57
50
  getModelConfig,
58
51
  isModelSupportReasoningEffort
59
- } from "./chunk-AOKWJZ5N.js";
52
+ } from "./chunk-S3UTETIC.js";
60
53
  import {
61
54
  createFileCredentialBroker
62
- } from "./chunk-5CS33IBL.js";
55
+ } from "./chunk-PDL2AV3E.js";
56
+ import {
57
+ extractCustomId
58
+ } from "./chunk-DFFIZ25G.js";
59
+ import {
60
+ toErrorMessage
61
+ } from "./chunk-HNMXYYJR.js";
63
62
  import {
64
63
  isDeepInfraKimiModel,
65
64
  isFireworksKimiModel,
66
65
  resolveFireworksKimiModel
67
- } from "./chunk-RBCNBU2A.js";
66
+ } from "./chunk-524BDL33.js";
67
+ import {
68
+ createSpaceKey
69
+ } from "./chunk-XGMCGPEA.js";
70
+ import {
71
+ read
72
+ } from "./chunk-KPFGD3YA.js";
68
73
  import {
69
74
  asNonEmptyStringArray
70
75
  } from "./chunk-I42VC5KR.js";
71
- import {
72
- extractCustomId
73
- } from "./chunk-DFFIZ25G.js";
74
76
  import {
75
77
  asTrimmedLowercaseString
76
78
  } from "./chunk-QSJ3HFEF.js";
77
- import {
78
- toErrorMessage
79
- } from "./chunk-HNMXYYJR.js";
80
79
  import {
81
80
  getRuntimeServerContext
82
- } from "./chunk-DVRHHFEA.js";
81
+ } from "./chunk-TSUJOM6N.js";
83
82
  import {
84
83
  isAbortError
85
84
  } from "./chunk-OOSFSFMA.js";
@@ -95,6 +94,10 @@ import {
95
94
  import {
96
95
  asOptionalTrimmedString
97
96
  } from "./chunk-G3SUCT4W.js";
97
+ import {
98
+ MEMORY_USE_GUIDANCE,
99
+ wrapHistoricalSummaryWithReplayGuard
100
+ } from "./chunk-KKY4B2Q2.js";
98
101
 
99
102
  // packages/ai/skills/referenceRuntime.ts
100
103
  var joinUniqueStrings = (...groups) => Array.from(new Set(groups.flatMap((items) => asNonEmptyStringArray(items))));
@@ -407,6 +410,45 @@ var resolveToolsFromKeys = async (keys, dispatch, preloaded) => {
407
410
  };
408
411
  };
409
412
 
413
+ // packages/agent-runtime/responsesConversationState.ts
414
+ function supportsResponsesConversationState(agent) {
415
+ return normalizeIdentityPart(agent.provider) === "openai";
416
+ }
417
+ var normalizeIdentityPart = (value) => typeof value === "string" ? value.trim().toLowerCase() : "";
418
+ function normalizeResponsesConversationState(value) {
419
+ if (!value || typeof value !== "object") return null;
420
+ const raw = value;
421
+ const provider = normalizeIdentityPart(raw.provider);
422
+ const model = normalizeIdentityPart(raw.model);
423
+ const responseId = typeof raw.responseId === "string" ? raw.responseId.trim() : "";
424
+ if (!provider || !model || !responseId) return null;
425
+ return { provider, model, responseId };
426
+ }
427
+ function selectResponsesConversationState(value, agent) {
428
+ if (!supportsResponsesConversationState(agent)) return null;
429
+ const state = normalizeResponsesConversationState(value);
430
+ if (!state) return null;
431
+ if (state.provider !== normalizeIdentityPart(agent.provider)) return null;
432
+ if (state.model !== normalizeIdentityPart(agent.model)) return null;
433
+ return state;
434
+ }
435
+ function updateResponsesConversationState(agent, responseId) {
436
+ if (!supportsResponsesConversationState(agent)) return null;
437
+ const provider = normalizeIdentityPart(agent.provider);
438
+ const model = normalizeIdentityPart(agent.model);
439
+ const normalizedResponseId = typeof responseId === "string" ? responseId.trim() : "";
440
+ if (!provider || !model || !normalizedResponseId) return null;
441
+ return { provider, model, responseId: normalizedResponseId };
442
+ }
443
+ function isResponsesConversationStateRejection(status, responseBody) {
444
+ if (![400, 404, 409].includes(status)) return false;
445
+ const text = typeof responseBody === "string" ? responseBody.trim().toLowerCase() : "";
446
+ if (!text) return false;
447
+ const mentionsResponseState = /previous[\s_-]*response/.test(text) || /response[\s_-]*(?:id|state)/.test(text);
448
+ const rejectsState = /not[\s_-]*found/.test(text) || /does not exist/.test(text) || /invalid/.test(text) || /expired/.test(text) || /unknown/.test(text);
449
+ return mentionsResponseState && rejectsState;
450
+ }
451
+
410
452
  // packages/agent-runtime/agentCallPlan.ts
411
453
  var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
412
454
  var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
@@ -522,7 +564,7 @@ function resolveAgentCallPlan(agentConfig, _env) {
522
564
  endpointKey: agentConfig.endpointKey
523
565
  });
524
566
  const upstreamWire = useResponses ? "responses" : "chat.completions";
525
- const endpoint = useResponses ? OPENAI_RESPONSES_ENDPOINT : resolvePlatformChatCompletionsEndpoint(provider) ?? "";
567
+ const endpoint = useResponses ? resolvePlatformResponsesEndpoint(provider) ?? "" : resolvePlatformChatCompletionsEndpoint(provider) ?? "";
526
568
  return {
527
569
  authMethod: { kind: "platform-key" },
528
570
  transport,
@@ -661,7 +703,7 @@ function createHash(_algo) {
661
703
  };
662
704
  }
663
705
  var hasLayerContent = (layer) => Boolean(layer.content);
664
- var estimateContextTokens = (content) => Math.ceil(content.length / 4);
706
+ var estimateContextTokens = (content) => estimateTokenCount(content);
665
707
  var compileContextLayers = (layers) => {
666
708
  const compiledLayers = [];
667
709
  for (const layer of layers) {
@@ -710,9 +752,12 @@ var CONTEXT_USAGE_INSTRUCTIONS = `\u53C2\u8003\u8D44\u6599\u4F7F\u7528\u8BF4\u66
710
752
  - \u5F53\u901A\u7528\u6307\u4EE4\u4E0E\u66F4\u5177\u4F53\u7684"\u6309 Agent / \u6309\u6587\u6863"\u7684\u89C4\u5219\u53D1\u751F\u51B2\u7A81\u65F6\uFF0C\u5FC5\u987B\u4F18\u5148\u9075\u5B88\u66F4\u5177\u4F53\u3001\u4F18\u5148\u7EA7\u66F4\u9AD8\u7684\u89C4\u5219\u3002`;
711
753
  var AGENT_ORCHESTRATION_RUN_INSTRUCTIONS = `--- \u591A Agent \u7F16\u6392\uFF08\u540E\u53F0 Run\uFF09 ---
712
754
  \u4F60\u53EF\u7528 startAgentRun \u540E\u53F0\u542F\u52A8\u5B50 Agent\uFF08fork+exec\uFF0C\u8FD4\u56DE runId\uFF09\uFF0C\u7528 controlAgentRun \u89C2\u5BDF/\u505C\u6B62\uFF08wait+signal+proc\uFF09\u3002\u6838\u5FC3\u7EAA\u5F8B\uFF08\u53CD\u9762\u6559\u6750\uFF1A\u5B50\u4EE3\u7406\u5D29\u6E83/\u6302\u8D77\u800C\u7F16\u6392\u5668\u6BEB\u65E0\u5BDF\u89C9\uFF09\uFF1A
713
- 1. \u6D3E\u53D1\u540E\u5FC5\u987B\u8F6E\u8BE2\u3002startAgentRun \u62FF\u5230 runId \u540E\uFF0C\u7528 controlAgentRun(action:"status", runId, tailLines:30) \u8F6E\u8BE2\uFF08\u5EFA\u8BAE 5\u201310s \u4E00\u6B21\uFF09\uFF0C\u4E0D\u8981\u53EA\u9760\u804A\u5929\u590D\u8FF0\u7ED3\u679C\u3002\u4E0D\u8F6E\u8BE2 = \u6CA1\u7F16\u6392\u3002
714
- 2. \u8BFB\u65E5\u5FD7\u786E\u8BA4\u8FDB\u5C55\u3002tailLines>0 \u8BFB\u5B9E\u9645\u8F93\u51FA/\u5DE5\u5177\u8C03\u7528\uFF0C\u4E0D\u53EA\u770B status=running\u2014\u2014\u540E\u53F0\u76D1\u89C6\u5668\u53EF\u80FD\u7A7A\u8F6C\u3002
715
- 3. stop \u524D\u5148\u770B\u65E5\u5FD7\u3002\u7528 status \u5224\u65AD\u662F\u771F\u5361\u6B7B\u8FD8\u662F\u6B63\u5E38\u8DD1\uFF0C\u786E\u8BA4\u9700\u8981\u53EB\u505C\u518D controlAgentRun(action:"stop", runId)\uFF1B\u7528 list/status \u786E\u8BA4 run \u771F\u5B9E\u5B58\u5728\u4E14\u975E\u7EC8\u6001\uFF0C\u522B\u5047\u8BBE"\u6D3E\u53D1\u4E86\u5C31\u5728\u8DD1"\u3002
755
+ 1. \u5148\u53D1\u73B0\u518D\u6D3E\u53D1\u3002\u8C03\u7528 listAgents \u8BFB\u53D6\u5B89\u5168\u6458\u8981\uFF1B\u5728\u80DC\u4EFB\u5019\u9009\u4E2D\u4F18\u5148 isFavorite\uFF0C\u518D\u7ED3\u5408 introduction\u3001modelAbility.passAt1/benchmarkScore\u3001inputPrice/outputPrice \u548C\u7279\u5B9A\u5DE5\u5177\u80FD\u529B\u9009\u62E9\u3002\u4E0D\u8981\u67E5\u6307\u6D3E\u8868\uFF0C\u4E0D\u8981\u6C42 recommendedFor\uFF0C\u4E5F\u4E0D\u8981\u6839\u636E\u6A21\u578B\u540D\u79F0\u81C6\u9020\u80FD\u529B\u7B49\u7EA7\u3002
756
+ 2. coding \u662F\u9ED8\u8BA4\u80FD\u529B\u3002tools \u53EA\u7528\u4E8E\u6D4F\u89C8\u5668\u3001\u56FE\u7247\u3001\u8868\u683C\u3001\u90AE\u4EF6\u3001\u6570\u636E\u5E93\u7B49\u7279\u5B9A\u5DE5\u5177\u4EFB\u52A1\uFF1B\u4E0D\u8981\u56E0\u4E3A coding agent \u7684 tools \u6458\u8981\u4E3A\u7A7A\u5C31\u6DD8\u6C70\u5B83\u3002
757
+ 3. listAgents \u8FD4\u56DE\u7684 id\u3001publicKey\u3001handle \u53EA\u662F\u5019\u9009\u6807\u8BC6\u3002\u9009\u4E2D\u540E\u4F18\u5148\u8C03\u7528 readAgent \u89E3\u6790\u53EF\u8FD0\u884C\u7684 agentKey\uFF0C\u518D\u628A\u8BE5 agentKey \u4F20\u7ED9 startAgentRun\uFF1B\u4E0D\u8981\u51ED\u5C55\u793A\u540D\u79F0\u6216 id \u731C key\uFF0C\u4E5F\u4E0D\u8981\u7D22\u53D6 prompt\u3001\u5BC6\u94A5\u6216\u6570\u636E\u5E93 key \u6765\u9009\u4EBA\u3002\u6CA1\u6709 readAgent \u65F6\u53EA\u80FD\u4F7F\u7528\u5DF2\u6709\u4E0A\u4E0B\u6587\u4E2D\u660E\u786E\u7684 agentKey\u3002
758
+ 4. \u6D3E\u53D1\u540E\u5FC5\u987B\u8F6E\u8BE2\u3002startAgentRun \u62FF\u5230 runId \u540E\uFF0C\u7528 controlAgentRun(action:"status", runId, tailLines:30) \u8F6E\u8BE2\uFF08\u5EFA\u8BAE 5\u201310s \u4E00\u6B21\uFF09\uFF0C\u4E0D\u8981\u53EA\u9760\u804A\u5929\u590D\u8FF0\u7ED3\u679C\u3002\u4E0D\u8F6E\u8BE2 = \u6CA1\u7F16\u6392\u3002
759
+ 5. \u8BFB\u65E5\u5FD7\u786E\u8BA4\u8FDB\u5C55\u3002tailLines>0 \u8BFB\u5B9E\u9645\u8F93\u51FA/\u5DE5\u5177\u8C03\u7528\uFF0C\u4E0D\u53EA\u770B status=running\u2014\u2014\u540E\u53F0\u76D1\u89C6\u5668\u53EF\u80FD\u7A7A\u8F6C\u3002
760
+ 6. stop \u524D\u5148\u770B\u65E5\u5FD7\u3002\u7528 status \u5224\u65AD\u662F\u771F\u5361\u6B7B\u8FD8\u662F\u6B63\u5E38\u8DD1\uFF0C\u786E\u8BA4\u9700\u8981\u53EB\u505C\u518D controlAgentRun(action:"stop", runId)\uFF1B\u7528 list/status \u786E\u8BA4 run \u771F\u5B9E\u5B58\u5728\u4E14\u975E\u7EC8\u6001\uFF0C\u522B\u5047\u8BBE"\u6D3E\u53D1\u4E86\u5C31\u5728\u8DD1"\u3002
716
761
  \u5DE5\u5177\u9009\u62E9\uFF1A\u5B50\u4EFB\u52A1 <100s \u4E14\u8981\u7ACB\u5373\u62FF\u7ED3\u679C \u2192 callAgent\uFF08\u540C\u6B65\uFF09\uFF1B\u957F\u4EFB\u52A1 / \u5E76\u884C / \u9700\u8981\u89C2\u5BDF\u6216\u53EB\u505C \u2192 startAgentRun\uFF08\u672C\u6BB5\uFF09\u3002`;
717
762
  var MENU_USAGE_INSTRUCTIONS = `--- \u4EA4\u4E92\u8BF4\u660E ---
718
763
  \u6240\u6709\u7528\u6237\u8F93\u5165\u5747\u4E3A\u7EAF\u6587\u672C\u6D88\u606F\uFF0C\u76F4\u63A5\u7406\u89E3\u5373\u53EF\uFF0C\u4E0D\u8981\u5728\u56DE\u590D\u4E2D\u63D0\u53CA\u6309\u94AE\u3001\u83DC\u5355\u3001\u754C\u9762\u7B49 UI \u5143\u7D20\u3002
@@ -1032,6 +1077,8 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
1032
1077
  };
1033
1078
 
1034
1079
  // packages/integrations/openai/providerBodyCompatibility.ts
1080
+ var MOONSHOT_KIMI_K3_MODEL = "kimi-k3";
1081
+ var isMoonshotKimiK3 = (provider, model) => asTrimmedLowercaseString(provider) === "moonshot" && asTrimmedLowercaseString(model) === MOONSHOT_KIMI_K3_MODEL;
1035
1082
  var normalizeChatCompletionsBodyForProvider = ({
1036
1083
  body,
1037
1084
  provider,
@@ -1043,6 +1090,16 @@ var normalizeChatCompletionsBodyForProvider = ({
1043
1090
  delete nextBody.reasoning;
1044
1091
  delete nextBody.reasoning_effort;
1045
1092
  }
1093
+ if (isMoonshotKimiK3(provider, model)) {
1094
+ delete nextBody.temperature;
1095
+ delete nextBody.top_p;
1096
+ delete nextBody.frequency_penalty;
1097
+ delete nextBody.presence_penalty;
1098
+ if (typeof nextBody.max_tokens === "number") {
1099
+ nextBody.max_completion_tokens = nextBody.max_tokens;
1100
+ delete nextBody.max_tokens;
1101
+ }
1102
+ }
1046
1103
  return nextBody;
1047
1104
  };
1048
1105
 
@@ -1107,15 +1164,7 @@ var sanitizeChatCompletionsMessage = (message) => {
1107
1164
  };
1108
1165
  const name = asOptionalTrimmedString(message.name);
1109
1166
  if (name) sanitized.name = name;
1110
- const toolCallId = asOptionalTrimmedString(message.tool_call_id);
1111
- if (toolCallId) sanitized.tool_call_id = toolCallId;
1112
- if (Array.isArray(message.tool_calls)) {
1113
- sanitized.tool_calls = message.tool_calls;
1114
- }
1115
- if (message.role === "assistant" && typeof message.reasoning_content === "string" && message.reasoning_content) {
1116
- sanitized.reasoning_content = message.reasoning_content;
1117
- }
1118
- return sanitized;
1167
+ return preserveAgentStateFields(message, sanitized);
1119
1168
  };
1120
1169
  var buildRequestBody = (options) => {
1121
1170
  const {
@@ -1221,9 +1270,32 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
1221
1270
  };
1222
1271
 
1223
1272
  // packages/integrations/openai/generateResponseRequestBody.ts
1224
- function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemPrompt = true) {
1273
+ var DEFAULT_RESPONSES_COMPACTION_THRESHOLD = 2e5;
1274
+ function resolveResponsesCompactionThreshold(agentConfig) {
1275
+ const configured = Number(
1276
+ agentConfig.responsesCompactionThreshold ?? agentConfig.responses_compaction_threshold
1277
+ );
1278
+ return Number.isFinite(configured) && configured > 0 ? Math.floor(configured) : DEFAULT_RESPONSES_COMPACTION_THRESHOLD;
1279
+ }
1280
+ function selectResponsesContinuationMessages(msgs) {
1281
+ let lastAssistantIndex = -1;
1282
+ for (let index = msgs.length - 1; index >= 0; index -= 1) {
1283
+ if (msgs[index]?.role === "assistant") {
1284
+ lastAssistantIndex = index;
1285
+ break;
1286
+ }
1287
+ }
1288
+ const candidates = lastAssistantIndex >= 0 ? msgs.slice(lastAssistantIndex + 1) : msgs;
1289
+ return candidates.filter((message) => message.role !== "system");
1290
+ }
1291
+ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemPrompt = true, responsesState) {
1225
1292
  const language = typeof navigator !== "undefined" && navigator.language ? navigator.language : "zh-CN";
1226
- const input = convertMessagesToResponsesInput(msgs);
1293
+ const state = responsesState !== void 0 ? responsesState : selectResponsesConversationState(agentConfig.responsesState, agentConfig);
1294
+ const supportsServerState = supportsResponsesConversationState(agentConfig);
1295
+ const stateful = supportsServerState && state && agentConfig.store !== false ? state : null;
1296
+ const input = convertMessagesToResponsesInput(
1297
+ stateful ? selectResponsesContinuationMessages(msgs) : msgs
1298
+ );
1227
1299
  const body = {
1228
1300
  model: agentConfig.model,
1229
1301
  input,
@@ -1259,6 +1331,25 @@ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemP
1259
1331
  if (agentConfig.metadata !== void 0) {
1260
1332
  body.metadata = agentConfig.metadata;
1261
1333
  }
1334
+ if (stateful) {
1335
+ body.previous_response_id = stateful.responseId;
1336
+ if (agentConfig.context_management === void 0) {
1337
+ body.context_management = [
1338
+ {
1339
+ type: "compaction",
1340
+ compact_threshold: resolveResponsesCompactionThreshold(agentConfig)
1341
+ }
1342
+ ];
1343
+ }
1344
+ } else if (supportsServerState && responsesState === void 0 && agentConfig.previous_response_id !== void 0) {
1345
+ body.previous_response_id = agentConfig.previous_response_id;
1346
+ }
1347
+ if (supportsServerState && agentConfig.store !== void 0) {
1348
+ body.store = agentConfig.store;
1349
+ }
1350
+ if (supportsServerState && agentConfig.context_management !== void 0) {
1351
+ body.context_management = agentConfig.context_management;
1352
+ }
1262
1353
  return body;
1263
1354
  }
1264
1355
 
@@ -1333,7 +1424,8 @@ var generateRequestBody = ({
1333
1424
  messages,
1334
1425
  contexts,
1335
1426
  stableMessages,
1336
- prependSystemPrompt = true
1427
+ prependSystemPrompt = true,
1428
+ responsesState
1337
1429
  }) => {
1338
1430
  const provider = (agentConfig.provider || "").toLowerCase();
1339
1431
  const imageSettings = getImageOutputSettings(agentConfig, provider);
@@ -1349,7 +1441,8 @@ var generateRequestBody = ({
1349
1441
  agentConfigForRequest,
1350
1442
  [...stableMessages ?? [], ...messages],
1351
1443
  contexts,
1352
- prependSystemPrompt
1444
+ prependSystemPrompt,
1445
+ responsesState
1353
1446
  );
1354
1447
  }
1355
1448
  const baseBody = generateOpenAIRequestBody(
@@ -1909,6 +2002,9 @@ export {
1909
2002
  mergeReferences,
1910
2003
  resolveReferenceAssets,
1911
2004
  resolveToolsFromKeys,
2005
+ selectResponsesConversationState,
2006
+ updateResponsesConversationState,
2007
+ isResponsesConversationStateRejection,
1912
2008
  resolveClientWire,
1913
2009
  resolveAgentCallPlan,
1914
2010
  generateRequestBody,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-DVRHHFEA.js";
4
+ } from "./chunk-TSUJOM6N.js";
5
5
  import {
6
6
  fetchFromClientDb
7
7
  } from "./chunk-OOSFSFMA.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_AGENT_BASE_POLICY,
3
3
  DEFAULT_USER_PREFERENCE_PROFILE
4
- } from "./chunk-UBSKX3LP.js";
4
+ } from "./chunk-UZZCXRHF.js";
5
5
 
6
6
  // packages/ai/policy/runtimePolicy.ts
7
7
  var clampLevel = (value, fallback) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-UBSKX3LP.js";
3
+ } from "./chunk-UZZCXRHF.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-L3KWEH3V.js";
6
+ } from "./chunk-KPFGD3YA.js";
7
7
  import {
8
8
  selectIdentityToken
9
- } from "./chunk-DVRHHFEA.js";
9
+ } from "./chunk-TSUJOM6N.js";
10
10
  import {
11
11
  getIsDesktopApp
12
12
  } from "./chunk-OOSFSFMA.js";