xkzoom 1.5.3 → 1.5.5

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 (150) hide show
  1. package/README.md +59 -0
  2. package/dist/{chunk-LJF6JSJB.mjs → chunk-2NBVNRMZ.mjs} +1 -1
  3. package/dist/{chunk-DB4XTPJF.mjs → chunk-3K6WOVYD.mjs} +2 -2
  4. package/dist/{chunk-T5ZCLYLJ.mjs → chunk-4BCLMOYG.mjs} +1 -1
  5. package/dist/{chunk-I7O5UR24.mjs → chunk-5IAQOOZ2.mjs} +5 -5
  6. package/dist/{chunk-KI7AMK7P.mjs → chunk-64QYTQH7.mjs} +2 -2
  7. package/dist/{chunk-SQHTVHQ7.mjs → chunk-6VSIGHGI.mjs} +7 -7
  8. package/dist/{chunk-QADC4VKT.mjs → chunk-CRYBNNZU.mjs} +10 -10
  9. package/dist/{chunk-FKCGJ3BF.mjs → chunk-DZDEUZD2.mjs} +12 -12
  10. package/dist/{chunk-QSQ274C6.mjs → chunk-EBVVOJVN.mjs} +2 -2
  11. package/dist/{chunk-W7OJPFTN.mjs → chunk-FAB2ZZYB.mjs} +2 -2
  12. package/dist/{chunk-Q33JD64H.mjs → chunk-FCK6QFJB.mjs} +1 -1
  13. package/dist/{chunk-RZW4EEPW.mjs → chunk-G4JWJKD7.mjs} +13 -13
  14. package/dist/{chunk-MVKCMXBY.mjs → chunk-H7DNHHNA.mjs} +1 -1
  15. package/dist/{chunk-ESYRDWFO.mjs → chunk-HVDIL2V7.mjs} +1 -1
  16. package/dist/{chunk-PJKLQF3K.mjs → chunk-INFZEMQK.mjs} +1 -1
  17. package/dist/{chunk-WNI5ZPQY.mjs → chunk-JK5ZK32E.mjs} +3 -3
  18. package/dist/{chunk-AJNXWGX2.mjs → chunk-LJ6RMHC6.mjs} +1 -1
  19. package/dist/{chunk-WGLYR2YT.mjs → chunk-LKHL3NCW.mjs} +1 -1
  20. package/dist/{chunk-PS6X3CND.mjs → chunk-LKSRZTSL.mjs} +1 -0
  21. package/dist/{chunk-FAJHYXNU.mjs → chunk-LMIEVEGA.mjs} +1 -1
  22. package/dist/{chunk-COYZO24J.mjs → chunk-MCD5TOFD.mjs} +1 -1
  23. package/dist/{chunk-MI6GFOCU.mjs → chunk-MFIBP6MD.mjs} +3 -3
  24. package/dist/{chunk-THN36GA5.mjs → chunk-MLHV7EMJ.mjs} +32 -32
  25. package/dist/{chunk-ZMQ3UOGP.mjs → chunk-MMWLRPKT.mjs} +13 -1
  26. package/dist/{chunk-I4LMW3IM.mjs → chunk-MTRG3ZME.mjs} +11 -11
  27. package/dist/{chunk-6LKZYMIW.mjs → chunk-N6VFFREI.mjs} +28 -28
  28. package/dist/{chunk-5VR6UOGC.mjs → chunk-ND44D2ZA.mjs} +1 -1
  29. package/dist/{chunk-3EV63LAA.mjs → chunk-O7MFL7L4.mjs} +7 -7
  30. package/dist/{chunk-QYXYVBTO.mjs → chunk-OMLMLZUY.mjs} +1 -1
  31. package/dist/{chunk-B4YKXZ5W.mjs → chunk-OQMIECO2.mjs} +1 -1
  32. package/dist/{chunk-IVR74IXK.mjs → chunk-P4WX5RWE.mjs} +14 -14
  33. package/dist/{chunk-6EI5MFLD.mjs → chunk-PN6I6DTV.mjs} +1 -1
  34. package/dist/{chunk-LSQ47CLM.mjs → chunk-QEED7NAG.mjs} +27 -27
  35. package/dist/{chunk-QSHIFD37.mjs → chunk-SKQOHRBI.mjs} +2 -2
  36. package/dist/{chunk-WV6OKJ4J.mjs → chunk-SLBCSYGP.mjs} +1 -1
  37. package/dist/{chunk-PBBRBETA.mjs → chunk-TNBK63NV.mjs} +1 -1
  38. package/dist/{chunk-3FF266OG.mjs → chunk-U6ONSC6B.mjs} +1 -1
  39. package/dist/{chunk-CQAQRU4P.mjs → chunk-UAUV2GYH.mjs} +61 -61
  40. package/dist/{chunk-VWAUDB4X.mjs → chunk-UFURP7VS.mjs} +1 -1
  41. package/dist/{chunk-LXEKUNXI.mjs → chunk-UPD527M4.mjs} +1 -1
  42. package/dist/{chunk-M6VHS3HQ.mjs → chunk-W6JEB555.mjs} +2 -2
  43. package/dist/{chunk-3LR4CLDE.mjs → chunk-WOHFGPTL.mjs} +1 -1
  44. package/dist/{chunk-X7P6B2LK.mjs → chunk-XADONCIM.mjs} +1 -1
  45. package/dist/{chunk-DBYEZK64.mjs → chunk-XDR276NG.mjs} +1 -1
  46. package/dist/{chunk-37LYF6K2.mjs → chunk-YFKOQIA7.mjs} +1 -1
  47. package/dist/{chunk-BN273XTH.mjs → chunk-YKACMPVT.mjs} +1 -1
  48. package/dist/{chunk-D3N7EHB2.mjs → chunk-YSLLUNNZ.mjs} +9 -9
  49. package/dist/chunk-YTBKWX7J.mjs +102 -0
  50. package/dist/{chunk-C5VQPAOA.mjs → chunk-YW5STVWH.mjs} +1 -1
  51. package/dist/{chunk-WRRJFJ2N.mjs → chunk-ZE6GJFY7.mjs} +1 -1
  52. package/dist/index.js +262 -162
  53. package/dist/index.mjs +104 -103
  54. package/dist/mobile/action-planner.mjs +55 -55
  55. package/dist/mobile/agent-capabilities.mjs +55 -55
  56. package/dist/mobile/agents-watch.js +346 -0
  57. package/dist/mobile/agents-watch.mjs +13 -0
  58. package/dist/mobile/anthropic-messages-turn-runner.mjs +65 -65
  59. package/dist/mobile/anthropic-owned-tool-executor.mjs +64 -64
  60. package/dist/mobile/api.mjs +28 -28
  61. package/dist/mobile/auth.mjs +1 -1
  62. package/dist/mobile/bucket-events/emit-bucket-frame.js +327 -0
  63. package/dist/mobile/bucket-events/emit-bucket-frame.mjs +8 -3
  64. package/dist/mobile/bucket-events/register-bucket-gateway-bridge.js +320 -3
  65. package/dist/mobile/bucket-events/register-bucket-gateway-bridge.mjs +9 -4
  66. package/dist/mobile/channel.mjs +2 -2
  67. package/dist/mobile/context-compact/compact-artifact-enrich.mjs +4 -4
  68. package/dist/mobile/context-compact/compact-artifact-writer.mjs +1 -1
  69. package/dist/mobile/context-compact/compact-engine-artifacts.mjs +2 -2
  70. package/dist/mobile/context-compact/compact-memory-distill-job.mjs +2 -2
  71. package/dist/mobile/context-compact/compact-orchestrator.mjs +11 -11
  72. package/dist/mobile/context-compact/compact-resume-prefetch.mjs +1 -1
  73. package/dist/mobile/context-compact/compact-summarizer-engine-artifact.mjs +5 -5
  74. package/dist/mobile/context-compact/compact-summarizer.mjs +3 -3
  75. package/dist/mobile/context-compact/runtime-compact-hook.mjs +59 -59
  76. package/dist/mobile/group/conductor-plan-llm.mjs +3 -3
  77. package/dist/mobile/group/execution-plan.mjs +2 -2
  78. package/dist/mobile/group/floor-state-store.mjs +3 -3
  79. package/dist/mobile/group/group-api-handlers.mjs +16 -16
  80. package/dist/mobile/group/group-session.mjs +4 -4
  81. package/dist/mobile/group/index.mjs +13 -13
  82. package/dist/mobile/group/orchestrator.mjs +9 -9
  83. package/dist/mobile/group/plan-runtime.mjs +5 -5
  84. package/dist/mobile/group/runtime-integration.mjs +14 -14
  85. package/dist/mobile/index.js +277 -155
  86. package/dist/mobile/index.mjs +101 -100
  87. package/dist/mobile/memory-runtime-v2/eval-runner.mjs +6 -6
  88. package/dist/mobile/memory-runtime-v2/evidence-plan.mjs +9 -9
  89. package/dist/mobile/memory-runtime-v2/index.mjs +31 -31
  90. package/dist/mobile/memory-runtime-v2/memory-control-plane.mjs +9 -9
  91. package/dist/mobile/memory-runtime-v2/memory-readiness.mjs +9 -9
  92. package/dist/mobile/memory-runtime-v2/orchestrator.mjs +4 -4
  93. package/dist/mobile/memory-runtime-v2/public-api.mjs +12 -12
  94. package/dist/mobile/native-reply-system-prompt-layers.mjs +56 -56
  95. package/dist/mobile/openai-completions-turn-runner.mjs +65 -65
  96. package/dist/mobile/reply-dispatch-warmup.mjs +3 -3
  97. package/dist/mobile/runtime.js +160 -39
  98. package/dist/mobile/runtime.mjs +100 -99
  99. package/dist/mobile/session-dispatch/mobile-session-agent-event-bridge.mjs +1 -1
  100. package/dist/mobile/stream-inbound/mobile-text-stream-pipeline.mjs +4 -4
  101. package/dist/mobile/tool-use-input-normalize.mjs +58 -58
  102. package/dist/mobile/tools/mobile-compact-tool-bridge.mjs +58 -58
  103. package/dist/mobile/types.js +1 -0
  104. package/dist/mobile/types.mjs +1 -1
  105. package/dist/mobile/websocket.js +327 -0
  106. package/dist/mobile/websocket.mjs +7 -2
  107. package/dist/owned-tools/agents-list.mjs +1 -1
  108. package/dist/owned-tools/ceo-decision.mjs +4 -4
  109. package/dist/owned-tools/ceo-redirect.mjs +15 -15
  110. package/dist/owned-tools/compact/execute.mjs +56 -56
  111. package/dist/owned-tools/compact/gateway-tool-factory.mjs +57 -57
  112. package/dist/owned-tools/compact/registry.mjs +55 -55
  113. package/dist/owned-tools/context-compact.mjs +24 -24
  114. package/dist/owned-tools/groups-history.mjs +1 -1
  115. package/dist/owned-tools/handoff.mjs +4 -4
  116. package/dist/owned-tools/media-asset-library.mjs +1 -1
  117. package/dist/owned-tools/memory-control.mjs +11 -11
  118. package/dist/owned-tools/memory-runtime-eval.mjs +10 -10
  119. package/dist/owned-tools/message.mjs +3 -3
  120. package/dist/owned-tools/owned-reply.mjs +1 -1
  121. package/dist/owned-tools/providers/minimax-files.mjs +2 -2
  122. package/dist/owned-tools/providers/minimax-video-generate.mjs +3 -3
  123. package/dist/owned-tools/providers/minimax-voice.mjs +3 -3
  124. package/dist/owned-tools/register-owned-providers.mjs +5 -5
  125. package/dist/owned-tools/registry.mjs +54 -54
  126. package/dist/owned-tools/router.mjs +55 -55
  127. package/dist/owned-tools/runtime-bridge.mjs +56 -56
  128. package/dist/owned-tools/runtime-data.mjs +1 -1
  129. package/dist/owned-tools/session-status.mjs +1 -1
  130. package/dist/owned-tools/sessions-history-resolver.mjs +1 -1
  131. package/dist/owned-tools/sessions-history.mjs +1 -1
  132. package/dist/owned-tools/sessions-list.mjs +1 -1
  133. package/dist/owned-tools/sessions-send.mjs +1 -1
  134. package/dist/owned-tools/skills-create.mjs +1 -1
  135. package/dist/owned-tools/subagents.mjs +1 -1
  136. package/dist/owned-tools/tool-contract-prompt.mjs +55 -55
  137. package/dist/owned-tools/tool-result-envelope.mjs +57 -57
  138. package/dist/owned-tools/tool-usage-guide.mjs +54 -54
  139. package/dist/owned-tools/tts.mjs +1 -1
  140. package/dist/project-pipeline/handlers.mjs +15 -15
  141. package/dist/project-pipeline/index.mjs +15 -15
  142. package/package.json +2 -2
  143. package/gateway-core/README.md +0 -6
  144. package/dist/{chunk-IGJFAE72.mjs → chunk-2PWU4VN6.mjs} +3 -3
  145. package/dist/{chunk-H6LMX5G5.mjs → chunk-522D52FC.mjs} +3 -3
  146. package/dist/{chunk-QSUD6TNR.mjs → chunk-5U4JST47.mjs} +4 -4
  147. package/dist/{chunk-PX55IRYL.mjs → chunk-F5KN3REF.mjs} +4 -4
  148. package/dist/{chunk-N3YQ5IL6.mjs → chunk-NUXJHSSQ.mjs} +11 -11
  149. package/dist/{chunk-7MOQ462O.mjs → chunk-WQFYA2BW.mjs} +3 -3
  150. package/dist/{chunk-J74WVZGF.mjs → chunk-XNQJRIGR.mjs} +9 -9
@@ -1,44 +1,44 @@
1
1
  import {
2
- MobileSessionAgentEventBridge
3
- } from "./chunk-JDHB2EC6.mjs";
2
+ MobileTextStreamPipeline
3
+ } from "./chunk-XNQJRIGR.mjs";
4
4
  import {
5
- dispatchNontextReplyFromExtracted
6
- } from "./chunk-TKW3XDFP.mjs";
5
+ buildRuntimeTextDeliverPayload
6
+ } from "./chunk-WMKSZMB7.mjs";
7
7
  import {
8
- MobileTextStreamPipeline
9
- } from "./chunk-J74WVZGF.mjs";
8
+ MobileSessionAgentEventBridge
9
+ } from "./chunk-JDHB2EC6.mjs";
10
10
  import {
11
11
  MobileStreamRoundToolFlight
12
12
  } from "./chunk-6B2OT7ND.mjs";
13
13
  import {
14
- buildRuntimeTextDeliverPayload
15
- } from "./chunk-WMKSZMB7.mjs";
14
+ dispatchNontextReplyFromExtracted
15
+ } from "./chunk-TKW3XDFP.mjs";
16
+ import {
17
+ callConductorPlanLlm
18
+ } from "./chunk-OMLMLZUY.mjs";
16
19
  import {
17
20
  buildDirectChatGroupContextBlock
18
21
  } from "./chunk-LGNLS7ZN.mjs";
22
+ import {
23
+ createFinalTraceLogger,
24
+ previewFinalTraceText
25
+ } from "./chunk-5PZJDP37.mjs";
26
+ import {
27
+ inferMobileUpstreamDispatchFailureMeta
28
+ } from "./chunk-7L46MOG4.mjs";
19
29
  import {
20
30
  callPostAgentIntentLlm
21
31
  } from "./chunk-VHRFLCMY.mjs";
22
- import {
23
- callConductorPlanLlm
24
- } from "./chunk-QYXYVBTO.mjs";
25
32
  import {
26
33
  buildRunningSummaryContextBlock
27
34
  } from "./chunk-42NDWKUN.mjs";
28
35
  import {
29
36
  detectCompactDoneFromAssistantText,
30
37
  evaluateAndMaybeRunContextCompact
31
- } from "./chunk-DB4XTPJF.mjs";
32
- import {
33
- createFinalTraceLogger,
34
- previewFinalTraceText
35
- } from "./chunk-5PZJDP37.mjs";
36
- import {
37
- inferMobileUpstreamDispatchFailureMeta
38
- } from "./chunk-7L46MOG4.mjs";
38
+ } from "./chunk-3K6WOVYD.mjs";
39
39
  import {
40
40
  registerXreBucketGatewayBridge
41
- } from "./chunk-PJKLQF3K.mjs";
41
+ } from "./chunk-INFZEMQK.mjs";
42
42
  import {
43
43
  resolveDefaultFileToolScopeForTurn
44
44
  } from "./chunk-NIV5GVCE.mjs";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-BIEZNK2B.mjs";
56
56
  import {
57
57
  getMobileWebSocketServer
58
- } from "./chunk-ZMQ3UOGP.mjs";
58
+ } from "./chunk-MMWLRPKT.mjs";
59
59
  import {
60
60
  resolveWorkspaceStartupBlock,
61
61
  shouldAttachWorkspaceStartup
@@ -83,17 +83,24 @@ import {
83
83
  import {
84
84
  ensureReplyDispatchWarmupComplete,
85
85
  startReplyDispatchWarmup
86
- } from "./chunk-COYZO24J.mjs";
86
+ } from "./chunk-MCD5TOFD.mjs";
87
87
  import {
88
88
  resolveWebchatSendSessionKeyFromSessions
89
89
  } from "./chunk-BD3VJKX4.mjs";
90
+ import {
91
+ composeNativeReplySystemPrompt
92
+ } from "./chunk-3STOFADV.mjs";
90
93
  import {
91
94
  appendMobileOfflineBatchGatewayTranscriptMaybe,
92
95
  offlineSyncPartToGatewayPlainText
93
96
  } from "./chunk-CYVEZZL5.mjs";
94
97
  import {
95
98
  runNativeOpenAiCompletionsTurnToDispatcher
96
- } from "./chunk-WV6OKJ4J.mjs";
99
+ } from "./chunk-SLBCSYGP.mjs";
100
+ import {
101
+ isMobileSuppressFinalBlockAssistTextDeliverEnabled,
102
+ shouldSuppressAssistTextFromNativeDeliver
103
+ } from "./chunk-ZJEZUSIG.mjs";
97
104
  import {
98
105
  promoteExactOutboundPathTextToNativeReply
99
106
  } from "./chunk-IWVFK6JY.mjs";
@@ -109,20 +116,13 @@ import {
109
116
  buildNativeOpenAiTurnToolBlocks,
110
117
  buildNativeReplyRuntimeContextBlocks,
111
118
  buildOwnedNativeReplyChildTurnBlocks
112
- } from "./chunk-LJF6JSJB.mjs";
113
- import {
114
- composeNativeReplySystemPrompt
115
- } from "./chunk-3STOFADV.mjs";
119
+ } from "./chunk-2NBVNRMZ.mjs";
116
120
  import {
117
121
  buildMobileReasoningReplyOptions
118
122
  } from "./chunk-46TY43IV.mjs";
119
123
  import {
120
124
  formatNativeAnthropicTurnUserMessage
121
125
  } from "./chunk-EE3NRJLQ.mjs";
122
- import {
123
- isMobileSuppressFinalBlockAssistTextDeliverEnabled,
124
- shouldSuppressAssistTextFromNativeDeliver
125
- } from "./chunk-ZJEZUSIG.mjs";
126
126
  import {
127
127
  buildMemoryContractR3StrongDeliveryHint,
128
128
  buildR3AuditNote,
@@ -135,6 +135,16 @@ import {
135
135
  import {
136
136
  MOBILE_PLUGIN_HTTP_ROUTE_DEFS
137
137
  } from "./chunk-VMM5GYS2.mjs";
138
+ import {
139
+ buildInterruptedTurnResumeContextBlock,
140
+ classifyTurnTimeoutKind,
141
+ createInterruptedTurnSnapshot,
142
+ extractLastToolNameFromError,
143
+ extractTurnMetricFromError,
144
+ findActiveInterruptedTurnSnapshotBefore,
145
+ hasInterruptedTurnRecoveryEvidence,
146
+ isInterruptedTurnResumeRequest
147
+ } from "./chunk-ULXTQSV6.mjs";
138
148
  import {
139
149
  expandMediaUrlWildcards
140
150
  } from "./chunk-RXRZEWNK.mjs";
@@ -145,6 +155,9 @@ import {
145
155
  buildMemoryContractR1ExtraSystemPrompt,
146
156
  shouldAttachMemoryContractR1Prompt
147
157
  } from "./chunk-6MOIFLPP.mjs";
158
+ import {
159
+ tryExtractContextUsageRatioFromDeliverPayload
160
+ } from "./chunk-OCARTQYW.mjs";
148
161
  import {
149
162
  extractMobileReplyPayload
150
163
  } from "./chunk-4OUQZDQG.mjs";
@@ -183,30 +196,21 @@ import {
183
196
  tryInlineLocalMediaAsDataUrl
184
197
  } from "./chunk-5HQXZCIX.mjs";
185
198
  import {
186
- buildInterruptedTurnResumeContextBlock,
187
- classifyTurnTimeoutKind,
188
- createInterruptedTurnSnapshot,
189
- extractLastToolNameFromError,
190
- extractTurnMetricFromError,
191
- findActiveInterruptedTurnSnapshotBefore,
192
- hasInterruptedTurnRecoveryEvidence,
193
- isInterruptedTurnResumeRequest
194
- } from "./chunk-ULXTQSV6.mjs";
199
+ createEmptyMobileBodyHuntRoundTrace,
200
+ formatBodyHuntPreview
201
+ } from "./chunk-3T3BHHE7.mjs";
195
202
  import {
196
203
  MOBILE_CHANNEL_ID,
197
204
  isMobileChannelEnabled,
198
205
  resolveMobileInboundIdentity,
199
206
  resolveMobileRouteAgent
200
- } from "./chunk-B4YKXZ5W.mjs";
207
+ } from "./chunk-OQMIECO2.mjs";
201
208
  import {
202
209
  mergeComposerContextUsageForFinalize
203
210
  } from "./chunk-37TO75LW.mjs";
204
- import {
205
- tryExtractContextUsageRatioFromDeliverPayload
206
- } from "./chunk-OCARTQYW.mjs";
207
211
  import {
208
212
  createMobileApiRequestHandler
209
- } from "./chunk-MI6GFOCU.mjs";
213
+ } from "./chunk-MFIBP6MD.mjs";
210
214
  import {
211
215
  consumeInboundMobileUploadRef,
212
216
  looksLikeXkzoomMediaRefV1
@@ -214,21 +218,17 @@ import {
214
218
  import {
215
219
  resolveMobileAuthConfig
216
220
  } from "./chunk-FU5NWQEP.mjs";
217
- import {
218
- createEmptyMobileBodyHuntRoundTrace,
219
- formatBodyHuntPreview
220
- } from "./chunk-3T3BHHE7.mjs";
221
221
  import {
222
222
  buildAgentCapabilities
223
- } from "./chunk-FAJHYXNU.mjs";
223
+ } from "./chunk-LMIEVEGA.mjs";
224
224
  import {
225
225
  runNativeAnthropicMessagesTurnToDispatcher
226
- } from "./chunk-QSQ274C6.mjs";
226
+ } from "./chunk-EBVVOJVN.mjs";
227
227
  import {
228
228
  OWNED_TURN_TOOL_NAMES,
229
229
  buildOwnedToolsCatalog,
230
230
  buildOwnedTurnToolSchemas
231
- } from "./chunk-THN36GA5.mjs";
231
+ } from "./chunk-MLHV7EMJ.mjs";
232
232
  import {
233
233
  buildSessionTranscriptMeterFromMessages
234
234
  } from "./chunk-4IWTTXQE.mjs";
@@ -249,6 +249,9 @@ import {
249
249
  import {
250
250
  runNativeAnthropicMessagesStreamToDispatcher
251
251
  } from "./chunk-FZ7NLBVP.mjs";
252
+ import {
253
+ enforceR2Write
254
+ } from "./chunk-GU4CQC5I.mjs";
252
255
  import {
253
256
  enforceR6IndexAfterWrite
254
257
  } from "./chunk-GOSSEVA6.mjs";
@@ -261,9 +264,6 @@ import {
261
264
  isMemoryContractRuntimeEnforceEnabled,
262
265
  logMemoryContractR6Deferred
263
266
  } from "./chunk-XQFQO4EA.mjs";
264
- import {
265
- enforceR2Write
266
- } from "./chunk-GU4CQC5I.mjs";
267
267
  import {
268
268
  buildRecentDiaryContextBlock,
269
269
  buildRecentDiaryInjectSummary
@@ -272,7 +272,7 @@ import {
272
272
  dispatchGroupSessionMessage,
273
273
  forceStopGroupFloorState,
274
274
  initGroupCollaborationEngine
275
- } from "./chunk-3EV63LAA.mjs";
275
+ } from "./chunk-O7MFL7L4.mjs";
276
276
  import {
277
277
  buildGroupPeerTranscriptProjection
278
278
  } from "./chunk-BSG6WLML.mjs";
@@ -285,7 +285,7 @@ import {
285
285
  } from "./chunk-4POYX4AW.mjs";
286
286
  import {
287
287
  buildContextPackForTurn
288
- } from "./chunk-N3YQ5IL6.mjs";
288
+ } from "./chunk-NUXJHSSQ.mjs";
289
289
  import {
290
290
  maybeCheckpointRunLedger
291
291
  } from "./chunk-EL6TOIFZ.mjs";
@@ -304,6 +304,9 @@ import {
304
304
  import {
305
305
  getMobileChatStore
306
306
  } from "./chunk-CVXJ45WI.mjs";
307
+ import {
308
+ registerMobileOutboundBridge
309
+ } from "./chunk-LCR7EVVU.mjs";
307
310
  import {
308
311
  SessionIdAgentConflictError
309
312
  } from "./chunk-KPJOJH6H.mjs";
@@ -312,9 +315,6 @@ import {
312
315
  buildNativeReplyTranscriptMessages,
313
316
  findFirstVisibleUserMessage
314
317
  } from "./chunk-6ZVXCJTG.mjs";
315
- import {
316
- registerMobileOutboundBridge
317
- } from "./chunk-LCR7EVVU.mjs";
318
318
  import {
319
319
  extractLegacyDeliveryConversationIdFromSessionKey
320
320
  } from "./chunk-GEXTQELG.mjs";
@@ -322,7 +322,7 @@ import {
322
322
  GATEWAY_WEBCHAT_CHANNEL_ID,
323
323
  MOBILE_SOURCE,
324
324
  XKZOOM_CHAT_CHANNEL_ID
325
- } from "./chunk-PS6X3CND.mjs";
325
+ } from "./chunk-LKSRZTSL.mjs";
326
326
  import {
327
327
  runNativeOpenAiTextStreamToDispatcher
328
328
  } from "./chunk-BHT6B2TV.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  XKZOOM_CHAT_CHANNEL_ID,
13
13
  mapXkzoomChatChannelToLegacyTransport
14
- } from "./chunk-PS6X3CND.mjs";
14
+ } from "./chunk-LKSRZTSL.mjs";
15
15
 
16
16
  // src/owned-tools/message.ts
17
17
  init_workspace_fs();
@@ -9,7 +9,7 @@ import {
9
9
  tryKickPipelinePostCloseRound,
10
10
  tryRedirectPipelineFloor,
11
11
  tryStopPipelineAfterTerminalDecision
12
- } from "./chunk-3EV63LAA.mjs";
12
+ } from "./chunk-O7MFL7L4.mjs";
13
13
  import {
14
14
  isOrgProjectPipelineEnabled
15
15
  } from "./chunk-AZVEPDT6.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  buildMemoryReadinessReport,
4
4
  readLastMemoryReadinessGate,
5
5
  readLastMemoryReadinessReport
6
- } from "./chunk-I4LMW3IM.mjs";
6
+ } from "./chunk-MTRG3ZME.mjs";
7
7
  import {
8
8
  buildMemorySoakEvidenceSummary,
9
9
  completeMemorySoakSession,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  readLastMemoryRuntimeEvalReport,
24
24
  runMemoryRuntimeV2SelfEval
25
- } from "./chunk-IVR74IXK.mjs";
25
+ } from "./chunk-P4WX5RWE.mjs";
26
26
  import {
27
27
  buildSkillRegistryReport,
28
28
  formatSkillRegistryBlock,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isCompactOwnedToolName
3
- } from "./chunk-5VR6UOGC.mjs";
3
+ } from "./chunk-ND44D2ZA.mjs";
4
4
  import {
5
5
  handleDiarySearchTool,
6
6
  handleNotesGetTool,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getGroupFloorState,
9
9
  setGroupFloorState
10
- } from "./chunk-AJNXWGX2.mjs";
10
+ } from "./chunk-LJ6RMHC6.mjs";
11
11
  import {
12
12
  GROUP_FLOOR_PLAN_SCHEDULING_REASON
13
13
  } from "./chunk-INHFVKZY.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mergeRunningSummary
3
- } from "./chunk-QSUD6TNR.mjs";
3
+ } from "./chunk-5U4JST47.mjs";
4
4
 
5
5
  // src/mobile/context-compact/compact-artifact-enrich.ts
6
6
  function normalizeForCompare(text) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  executeCompactOwnedTool
3
- } from "./chunk-3LR4CLDE.mjs";
3
+ } from "./chunk-WOHFGPTL.mjs";
4
4
 
5
5
  // src/mobile/tools/mobile-compact-tool-bridge.ts
6
6
  async function executeMobileCompactTool(params) {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KWQEFCOY.mjs";
5
5
  import {
6
6
  OWNED_TURN_TOOL_BY_NAME
7
- } from "./chunk-THN36GA5.mjs";
7
+ } from "./chunk-MLHV7EMJ.mjs";
8
8
 
9
9
  // src/mobile/action-planner.ts
10
10
  function validatePlannedToolAction(action) {
@@ -1,3 +1,12 @@
1
+ import {
2
+ init_minimax_video_generate,
3
+ minimaxVideoGenerate
4
+ } from "./chunk-CRYBNNZU.mjs";
5
+ import {
6
+ init_minimax_voice,
7
+ minimaxVoiceClone,
8
+ minimaxVoiceDesign
9
+ } from "./chunk-5IAQOOZ2.mjs";
1
10
  import {
2
11
  init_minimax_web_search,
3
12
  minimaxWebSearch
@@ -26,15 +35,6 @@ import {
26
35
  init_minimax_music_generate,
27
36
  minimaxMusicGenerate
28
37
  } from "./chunk-YUB67QUF.mjs";
29
- import {
30
- init_minimax_video_generate,
31
- minimaxVideoGenerate
32
- } from "./chunk-QADC4VKT.mjs";
33
- import {
34
- init_minimax_voice,
35
- minimaxVoiceClone,
36
- minimaxVoiceDesign
37
- } from "./chunk-I7O5UR24.mjs";
38
38
  import {
39
39
  braveWebSearch,
40
40
  init_brave_web_search
@@ -0,0 +1,102 @@
1
+ import {
2
+ init_resolver,
3
+ standardPaths
4
+ } from "./chunk-73YFGE5V.mjs";
5
+ import {
6
+ getXkRootPath,
7
+ init_root
8
+ } from "./chunk-LMB7TNJB.mjs";
9
+
10
+ // src/mobile/agents-watch.ts
11
+ init_root();
12
+ init_resolver();
13
+ import { watch, existsSync } from "fs";
14
+ var DEBOUNCE_MS = 400;
15
+ var agentsDirWatcher = null;
16
+ var stateRootWatcher = null;
17
+ var debounceTimer = null;
18
+ var started = false;
19
+ function normalizeRel(filename) {
20
+ return (filename ?? "").replace(/\\/g, "/");
21
+ }
22
+ function isRelevantAgentsPath(filename) {
23
+ const rel = normalizeRel(filename);
24
+ if (!rel) {
25
+ return true;
26
+ }
27
+ if (!rel.includes("/")) {
28
+ return true;
29
+ }
30
+ return rel.endsWith("/IDENTITY.md");
31
+ }
32
+ function startAgentsChangeWatch(onChange) {
33
+ if (started) {
34
+ return;
35
+ }
36
+ started = true;
37
+ const fire = () => {
38
+ if (debounceTimer) {
39
+ clearTimeout(debounceTimer);
40
+ }
41
+ debounceTimer = setTimeout(() => {
42
+ debounceTimer = null;
43
+ try {
44
+ onChange();
45
+ } catch {
46
+ }
47
+ }, DEBOUNCE_MS);
48
+ };
49
+ try {
50
+ const agentsDir = standardPaths.agents();
51
+ if (existsSync(agentsDir)) {
52
+ agentsDirWatcher = watch(agentsDir, { recursive: true }, (_event, filename) => {
53
+ if (isRelevantAgentsPath(filename)) {
54
+ fire();
55
+ }
56
+ });
57
+ agentsDirWatcher.on("error", () => {
58
+ });
59
+ agentsDirWatcher.unref();
60
+ }
61
+ } catch {
62
+ agentsDirWatcher = null;
63
+ }
64
+ try {
65
+ const stateRoot = getXkRootPath();
66
+ if (existsSync(stateRoot)) {
67
+ stateRootWatcher = watch(stateRoot, { recursive: false }, (_event, filename) => {
68
+ const rel = normalizeRel(filename);
69
+ if (!rel || rel === "xkzoom.json") {
70
+ fire();
71
+ }
72
+ });
73
+ stateRootWatcher.on("error", () => {
74
+ });
75
+ stateRootWatcher.unref();
76
+ }
77
+ } catch {
78
+ stateRootWatcher = null;
79
+ }
80
+ }
81
+ function stopAgentsChangeWatch() {
82
+ started = false;
83
+ if (debounceTimer) {
84
+ clearTimeout(debounceTimer);
85
+ debounceTimer = null;
86
+ }
87
+ try {
88
+ agentsDirWatcher?.close();
89
+ } catch {
90
+ }
91
+ try {
92
+ stateRootWatcher?.close();
93
+ } catch {
94
+ }
95
+ agentsDirWatcher = null;
96
+ stateRootWatcher = null;
97
+ }
98
+
99
+ export {
100
+ startAgentsChangeWatch,
101
+ stopAgentsChangeWatch
102
+ };
@@ -3,7 +3,7 @@ import {
3
3
  isOwnedRoutableToolName,
4
4
  resolveOwnedToolMode,
5
5
  routeOwnedToolCall
6
- } from "./chunk-LSQ47CLM.mjs";
6
+ } from "./chunk-QEED7NAG.mjs";
7
7
  import {
8
8
  resolveOwnedSessionsHistory
9
9
  } from "./chunk-KLQSTA6K.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  forceStopGroupFloorState,
3
3
  tryRedirectPipelineFloor
4
- } from "./chunk-3EV63LAA.mjs";
4
+ } from "./chunk-O7MFL7L4.mjs";
5
5
  import {
6
6
  defineTool
7
7
  } from "./chunk-DFJFMZX6.mjs";