nolo-cli 0.188.0-alpha.2 → 0.188.0

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 (100) hide show
  1. package/{_executeModel-7GFCTOFY.js → _executeModel-WQ7BV3G7.js} +22 -22
  2. package/{action-HQXK4ZT4.js → action-BHWB4MOK.js} +2 -2
  3. package/{addContentAction-3WAN3OWY.js → addContentAction-BY375D35.js} +3 -3
  4. package/{addDialogAgentAction-WNQBFR5G.js → addDialogAgentAction-HOZYOCWC.js} +2 -2
  5. package/{agentDeleteCommand-GETUDKX4.js → agentDeleteCommand-4DK6X4S4.js} +24 -24
  6. package/{agentEmailCommands-2EB4DJSA.js → agentEmailCommands-CYPIYPOK.js} +25 -25
  7. package/agentFavoriteCommands-GAFEXKKP.js +187 -0
  8. package/{agentListCommands-6RONL2YO.js → agentListCommands-MAG736RU.js} +8 -8
  9. package/{agentMachineCommands-J6SX7CPR.js → agentMachineCommands-7VTOWHHD.js} +6 -6
  10. package/{agentRecordCommands-UXFGQXD6.js → agentRecordCommands-VK3NEK5G.js} +24 -24
  11. package/{agentRunCommand-QTK73QMM.js → agentRunCommand-7MFVUHWX.js} +25 -25
  12. package/{agentRuntimeLocal-G4KEXO5D.js → agentRuntimeLocal-NAAYNHCW.js} +4 -4
  13. package/{agentSlice-STUDWJJZ.js → agentSlice-TZRLTBEJ.js} +3 -3
  14. package/{appDeleteCommands-6L6PTB6G.js → appDeleteCommands-VDHCDVBF.js} +8 -8
  15. package/{appDeployCommands-PLXIHXN3.js → appDeployCommands-V6UTKVXR.js} +8 -8
  16. package/{appDeployStatusCommands-VGYYEBTV.js → appDeployStatusCommands-4UIFSEPC.js} +8 -8
  17. package/{appGetCommands-NAANWNTG.js → appGetCommands-XKDXLC3C.js} +8 -8
  18. package/{appListCommands-ZT5YE2IX.js → appListCommands-BELRVX2Y.js} +8 -8
  19. package/{authCommand-NVTKI7QU.js → authCommand-RV5MQDWN.js} +3 -3
  20. package/{authCommands-RFLKIPBT.js → authCommands-MZUXPRYJ.js} +2 -2
  21. package/{builtinSkillRegistry-2VN6JG4U.js → builtinSkillRegistry-7MBUY5EY.js} +3 -3
  22. package/{chromeOpsCommands-DOFY2OCF.js → chromeOpsCommands-C46BXHEE.js} +1 -1
  23. package/{chunk-5LVGXDSL.js → chunk-2NAE7IVE.js} +1 -1
  24. package/{chunk-FGIJLPZ3.js → chunk-4MYCKDSI.js} +2 -2
  25. package/{chunk-3QFOYFJW.js → chunk-5DIFZFYF.js} +4 -4
  26. package/{chunk-KOIGM3KU.js → chunk-5DPVRMSY.js} +1 -1
  27. package/{chunk-GSX7Z46F.js → chunk-5HAPEKNH.js} +1 -1
  28. package/{chunk-RBVR7P3M.js → chunk-63JHZKGZ.js} +18 -18
  29. package/{chunk-JOOWHDGM.js → chunk-A5BLRE3G.js} +1 -1
  30. package/{chunk-VECM2WX3.js → chunk-ABMBNULR.js} +2 -2
  31. package/{chunk-HVV4B6OL.js → chunk-ADTJJVDJ.js} +210 -43
  32. package/{chunk-Y2ZDNW2H.js → chunk-B2N5GZBU.js} +2 -2
  33. package/{chunk-7SJG5ZNX.js → chunk-B6EZB6DW.js} +1 -1
  34. package/{chunk-H6FUDBS3.js → chunk-CGKSIL4D.js} +5 -5
  35. package/{chunk-CLGAGPEM.js → chunk-CNMQATUF.js} +1 -1
  36. package/{chunk-ER4UTWWS.js → chunk-DFF6B7P7.js} +1 -1
  37. package/{chunk-WMHWFFTE.js → chunk-ECX3NKRD.js} +46 -0
  38. package/{chunk-R6AJKHEU.js → chunk-EVF6F3QU.js} +3 -3
  39. package/{chunk-7N6C3IHF.js → chunk-EXSR7DXT.js} +2 -2
  40. package/{chunk-WBCYL63M.js → chunk-GYVLAHA4.js} +1 -1
  41. package/{chunk-RKLQVXUE.js → chunk-HTLIKE5U.js} +2 -2
  42. package/{chunk-4OTMONZL.js → chunk-IOIPWEL4.js} +9 -9
  43. package/{chunk-RANCLEEC.js → chunk-JG6IWEAW.js} +10 -10
  44. package/{chunk-LOQYQUM2.js → chunk-JGJVDP2W.js} +17 -17
  45. package/{chunk-S4W4GV3B.js → chunk-K6TZSON4.js} +1 -1
  46. package/{chunk-VH7PE33C.js → chunk-KDBKEYUW.js} +36 -11
  47. package/{chunk-A43QYPYN.js → chunk-NMDAOZRN.js} +12 -12
  48. package/{chunk-ZIOYHDYW.js → chunk-OUSUFO5W.js} +2 -2
  49. package/{chunk-PCPQWTXJ.js → chunk-PD2YRFAI.js} +1 -1
  50. package/{chunk-OXOXPREC.js → chunk-SM56M7N7.js} +1 -1
  51. package/{chunk-2RHDAHFX.js → chunk-TFSMPRAY.js} +4 -4
  52. package/{chunk-Q54QGYRW.js → chunk-TZLPJRNO.js} +4 -4
  53. package/{chunk-6G5V4Y3V.js → chunk-UC5RISH3.js} +65 -41
  54. package/{chunk-IFN7MHWL.js → chunk-UGCQKKXW.js} +1 -1
  55. package/{chunk-YO3O7H2X.js → chunk-UNOILAZP.js} +14 -0
  56. package/{chunk-YUZIPPER.js → chunk-UVWBGWBO.js} +8 -2
  57. package/{chunk-MMOISK6N.js → chunk-V62MBA65.js} +3 -3
  58. package/{chunk-IIGDVODZ.js → chunk-WAZ6BTSC.js} +1 -1
  59. package/{chunk-O2MBTX37.js → chunk-WVGVGT44.js} +4 -4
  60. package/{chunk-RGTPR57U.js → chunk-YARN6MCX.js} +4 -4
  61. package/{chunk-PVZ3GB25.js → chunk-YHNZZIAH.js} +5 -5
  62. package/{commandRegistry-MTKBHP45.js → commandRegistry-RM2Z2DVF.js} +65 -61
  63. package/{contentThunks-E4DHXF3M.js → contentThunks-RP4BYNUC.js} +8 -8
  64. package/{cooldownCommands-IUU3ZH3L.js → cooldownCommands-4XKJFEBW.js} +1 -1
  65. package/{createAgentAutomationAction-2P2II7B3.js → createAgentAutomationAction-AYFAMQ5D.js} +8 -8
  66. package/{createDialogAction-MFZGE5EO.js → createDialogAction-NV5TEAIN.js} +10 -10
  67. package/{createPageAction-SBU2YCNR.js → createPageAction-FJGDX55N.js} +8 -8
  68. package/{dbSlice-2O3YBVPP.js → dbSlice-QAUXABCC.js} +2 -2
  69. package/{dialogCommands-AWGFKOGS.js → dialogCommands-4BGV6DPD.js} +8 -8
  70. package/{dialogSlice-GKPCUQWM.js → dialogSlice-ZUYNLTF6.js} +7 -7
  71. package/{dialogUsageCommand-44XMU6DD.js → dialogUsageCommand-QTG6ILEJ.js} +58 -5
  72. package/{docCreateCommands-4JEKXNST.js → docCreateCommands-3CW75UF2.js} +7 -7
  73. package/{docDeleteCommands-Q5K4UJPQ.js → docDeleteCommands-NL4ZYMN5.js} +8 -8
  74. package/{docReadCommands-ZZ7HMGPV.js → docReadCommands-HXCNVDPQ.js} +7 -7
  75. package/{docStore-DOZVBVKZ.js → docStore-EPAZ4HLD.js} +3 -3
  76. package/{docUpdateCommands-NUFXB6BD.js → docUpdateCommands-RMVBAMDE.js} +7 -7
  77. package/{fetchMessages-QLW7INJJ.js → fetchMessages-HWBVATSE.js} +1 -1
  78. package/{handleSendMessageAction-FY4RBJEA.js → handleSendMessageAction-5UH3DA6V.js} +15 -15
  79. package/index.js +6 -6
  80. package/{keys-N6HQICY5.js → keys-P4ZDOVJW.js} +11 -1
  81. package/{localDialogRead-55YDVPNU.js → localDialogRead-CT5HGDMC.js} +1 -1
  82. package/{localRuntimeAdapter-KCS5Y4T6.js → localRuntimeAdapter-LVPGHOJK.js} +22 -22
  83. package/{machineCommands-E3HMAMLA.js → machineCommands-O6RDJGLV.js} +23 -23
  84. package/{machineWsRunDispatch-MGDBTLDX.js → machineWsRunDispatch-GVDQO742.js} +23 -23
  85. package/{memberThunks-VXT36MZP.js → memberThunks-QWAAGQBS.js} +155 -52
  86. package/package.json +1 -1
  87. package/{readlineWorkspace-IWWKZK3F.js → readlineWorkspace-I5XZFI2E.js} +87 -41
  88. package/{removeDialogAgentAction-PK24DJ2J.js → removeDialogAgentAction-YEPO5AYI.js} +3 -3
  89. package/{runAgentClientLoop-CFIM6MXT.js → runAgentClientLoop-LV2HYQPH.js} +20 -20
  90. package/{secretCommands-UZV7CPJY.js → secretCommands-N6CMCJDZ.js} +1 -1
  91. package/{setDialogExtraReferencesAction-BN4IBUO6.js → setDialogExtraReferencesAction-EH5GWDAJ.js} +3 -3
  92. package/{setPrimaryDialogAgentAction-JR5SMLZY.js → setPrimaryDialogAgentAction-PNWRK6IY.js} +3 -3
  93. package/{settingThunks-RJZQHL7H.js → settingThunks-7VCWB6P7.js} +2 -2
  94. package/{spaceCommands-BI3TRIAK.js → spaceCommands-ZUI4CTSO.js} +6 -6
  95. package/{streamAgentChatTurn-3BS7IAFR.js → streamAgentChatTurn-ZCHIQR35.js} +22 -22
  96. package/{switchDialogAgentAction-TSIXBNRH.js → switchDialogAgentAction-23BFWJMV.js} +2 -2
  97. package/{tools-PCTUYG54.js → tools-2DZDJWHZ.js} +17 -17
  98. package/{updateCommands-Y6CKFKIF.js → updateCommands-KE6LP3QX.js} +3 -3
  99. package/{updateDialogTitleAction-ZHFIMEQL.js → updateDialogTitleAction-QZWVKVVW.js} +8 -8
  100. package/{windowsSelfUpdate-XV2MMQAC.js → windowsSelfUpdate-26TSFXEZ.js} +2 -2
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-Y2ZDNW2H.js";
10
+ } from "./chunk-B2N5GZBU.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-E4DHXF3M.js");
336
+ const { updateContentTitle } = await import("./contentThunks-RP4BYNUC.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-SBU2YCNR.js");
375
+ const { createPageAction } = await import("./createPageAction-FJGDX55N.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-3QFOYFJW.js";
4
+ } from "./chunk-5DIFZFYF.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-RBVR7P3M.js";
7
+ } from "./chunk-63JHZKGZ.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-Y6ROFCZO.js";
24
24
  import {
25
25
  createAgentKey
26
- } from "./chunk-WMHWFFTE.js";
26
+ } from "./chunk-ECX3NKRD.js";
27
27
 
28
28
  // packages/cli/agentRecordHelpers.ts
29
29
  import { readFileSync } from "node:fs";
@@ -15,10 +15,10 @@ import {
15
15
  } from "./chunk-Y6ROFCZO.js";
16
16
  import {
17
17
  scheduleWindowsSelfUpdate
18
- } from "./chunk-IIGDVODZ.js";
18
+ } from "./chunk-WAZ6BTSC.js";
19
19
  import {
20
20
  t
21
- } from "./chunk-YO3O7H2X.js";
21
+ } from "./chunk-UNOILAZP.js";
22
22
 
23
23
  // packages/cli/updateCommands.ts
24
24
  import { existsSync, readFileSync, accessSync, constants } from "node:fs";
@@ -7,7 +7,7 @@ import {
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-3QFOYFJW.js";
10
+ } from "./chunk-5DIFZFYF.js";
11
11
  import {
12
12
  UI_CARD_ENVELOPE_MAX_BYTES,
13
13
  getAllToolRuns,
@@ -20,10 +20,10 @@ import {
20
20
  selectSpaceContextLevel,
21
21
  selectUserTonePreset,
22
22
  uiCardFallback
23
- } from "./chunk-O2MBTX37.js";
23
+ } from "./chunk-WVGVGT44.js";
24
24
  import {
25
25
  getDocState
26
- } from "./chunk-R6AJKHEU.js";
26
+ } from "./chunk-EVF6F3QU.js";
27
27
  import {
28
28
  resolveToolBaseUrl
29
29
  } from "./chunk-MYOH447Z.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-ZBCBFOWC.js";
36
36
  import {
37
37
  getTableState
38
- } from "./chunk-RGTPR57U.js";
38
+ } from "./chunk-YARN6MCX.js";
39
39
  import {
40
40
  getCurrentSpaceIdRaw,
41
41
  getViewMode
@@ -44,14 +44,14 @@ import {
44
44
  PERSONALIZATION_DIALOG_CATEGORY,
45
45
  buildPersonalizationDialogPolicyContext,
46
46
  selectAllMsgs
47
- } from "./chunk-RBVR7P3M.js";
47
+ } from "./chunk-63JHZKGZ.js";
48
48
  import {
49
49
  selectPendingFiles
50
50
  } from "./chunk-OWYYDMGJ.js";
51
51
  import {
52
52
  read,
53
53
  selectById
54
- } from "./chunk-Y2ZDNW2H.js";
54
+ } from "./chunk-B2N5GZBU.js";
55
55
  import {
56
56
  getSessionSnapshotForState,
57
57
  selectIdentityUserBalance,
@@ -66,7 +66,7 @@ import {
66
66
  expandEnabledPackPromptPatches,
67
67
  expandEnabledPacks,
68
68
  resolveEffectiveEnabledPacks
69
- } from "./chunk-OXOXPREC.js";
69
+ } from "./chunk-SM56M7N7.js";
70
70
  import {
71
71
  projectToolMessageContent
72
72
  } from "./chunk-2WZXXAQD.js";
@@ -76,7 +76,7 @@ import {
76
76
  } from "./chunk-WJZOQR2J.js";
77
77
  import {
78
78
  extractReferenceKeysFromMessage
79
- } from "./chunk-S4W4GV3B.js";
79
+ } from "./chunk-K6TZSON4.js";
80
80
  import {
81
81
  getModelContextWindow,
82
82
  planContextUsage
@@ -110,7 +110,7 @@ import {
110
110
  } from "./chunk-KUG52IAP.js";
111
111
  import {
112
112
  metaKey
113
- } from "./chunk-WMHWFFTE.js";
113
+ } from "./chunk-ECX3NKRD.js";
114
114
  import {
115
115
  asNonEmptyStringArray
116
116
  } from "./chunk-I42VC5KR.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-ZIOYHDYW.js";
8
+ } from "./chunk-OUSUFO5W.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-MMOISK6N.js";
17
+ } from "./chunk-V62MBA65.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-6G5V4Y3V.js";
21
+ } from "./chunk-UC5RISH3.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-3QFOYFJW.js";
26
+ } from "./chunk-5DIFZFYF.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-O2MBTX37.js";
35
+ } from "./chunk-WVGVGT44.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -45,10 +45,10 @@ import {
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-RBVR7P3M.js";
48
+ } from "./chunk-63JHZKGZ.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-PVZ3GB25.js";
51
+ } from "./chunk-YHNZZIAH.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-32ZKZET7.js";
60
60
  import {
61
61
  write
62
- } from "./chunk-Y2ZDNW2H.js";
62
+ } from "./chunk-B2N5GZBU.js";
63
63
  import {
64
64
  createAsyncThunk
65
65
  } from "./chunk-WRCZXJ4N.js";
@@ -88,7 +88,7 @@ import {
88
88
  } from "./chunk-OHRDHS4N.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-S4W4GV3B.js";
91
+ } from "./chunk-K6TZSON4.js";
92
92
  import {
93
93
  getModelInfo
94
94
  } from "./chunk-JIFYXQRD.js";
@@ -109,7 +109,7 @@ import {
109
109
  } from "./chunk-KUG52IAP.js";
110
110
  import {
111
111
  toTrimmedString
112
- } from "./chunk-WMHWFFTE.js";
112
+ } from "./chunk-ECX3NKRD.js";
113
113
  import {
114
114
  createDialogMessageKeyAndId,
115
115
  dialogMessageKey
@@ -1,3 +1,7 @@
1
+ import {
2
+ getCurrentSpaceIdRaw,
3
+ setCurrentSpaceBoth
4
+ } from "./chunk-5XBUWM6I.js";
1
5
  import {
2
6
  createSpaceKey,
3
7
  normalizeSpaceId
@@ -7,7 +11,7 @@ import {
7
11
  } from "./chunk-YDH3FDFQ.js";
8
12
  import {
9
13
  toTimestampMs
10
- } from "./chunk-Y2ZDNW2H.js";
14
+ } from "./chunk-B2N5GZBU.js";
11
15
  import {
12
16
  fetchFromServer,
13
17
  getAllServers
@@ -59,9 +63,6 @@ function dedupeMemberSpacesById(memberSpaces) {
59
63
  });
60
64
  return Array.from(membershipMap.values());
61
65
  }
62
- function getMemberSpaces() {
63
- return state.memberSpaces;
64
- }
65
66
  function getAllMemberSpaces() {
66
67
  const memberSpaces = dedupeMemberSpacesById(state.memberSpaces || []);
67
68
  return [...memberSpaces].sort((a, b) => {
@@ -93,15 +94,6 @@ function setMembershipRejected(errorMessage, isRemoteUnavailable) {
93
94
  };
94
95
  notify();
95
96
  }
96
- function hydrateMemberSpacesFromLocal(spaces) {
97
- if (state.memberSpaces !== null || spaces.length === 0) return;
98
- state = {
99
- ...state,
100
- memberSpaces: dedupeMemberSpacesById(spaces),
101
- loading: false
102
- };
103
- notify();
104
- }
105
97
  function appendRecoveredMemberships(recovered) {
106
98
  if (!recovered || recovered.length === 0) return;
107
99
  if (state.memberSpaces === null) {
@@ -279,6 +271,16 @@ var fetchAuthoritativeRemoteSpace = async ({
279
271
  return null;
280
272
  };
281
273
 
274
+ // packages/create/space/applyFetchSpaceFulfilled.ts
275
+ function applyFetchSpaceFulfilled(payload) {
276
+ const { spaceId, spaceData } = payload;
277
+ const currentSpaceId = getCurrentSpaceIdRaw();
278
+ if (!currentSpaceId || currentSpaceId === spaceId) {
279
+ setCurrentSpaceBoth(spaceId, spaceData);
280
+ setSpaceInitialized();
281
+ }
282
+ }
283
+
282
284
  export {
283
285
  selectSpaceRemoteAuth,
284
286
  spaceListsUser,
@@ -286,16 +288,14 @@ export {
286
288
  fetchRemoteUserSpaceMemberships,
287
289
  fetchRemoteSpace,
288
290
  fetchAuthoritativeRemoteSpace,
289
- getMemberSpaces,
290
291
  getAllMemberSpaces,
291
292
  setMemberSpaces,
292
293
  setMembershipLoading,
293
294
  setMembershipRejected,
294
- hydrateMemberSpacesFromLocal,
295
295
  appendRecoveredMemberships,
296
- setSpaceInitialized,
297
296
  setMembershipLoaded,
298
297
  addMemberSpace,
299
298
  removeMemberSpace,
300
- updateMemberSpaceName
299
+ updateMemberSpaceName,
300
+ applyFetchSpaceFulfilled
301
301
  };
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  isPageKey,
18
18
  isTableMetaKey
19
- } from "./chunk-WMHWFFTE.js";
19
+ } from "./chunk-ECX3NKRD.js";
20
20
  import {
21
21
  isDialogRecordKey
22
22
  } from "./chunk-XJWWBO34.js";
@@ -60,7 +60,7 @@ import {
60
60
  import {
61
61
  inlineImageUrlsForCustomProvider,
62
62
  prepareTools
63
- } from "./chunk-ZIOYHDYW.js";
63
+ } from "./chunk-OUSUFO5W.js";
64
64
  import {
65
65
  getServerProviderSecret
66
66
  } from "./chunk-HS7MLR74.js";
@@ -82,7 +82,7 @@ import {
82
82
  resolveCliLocalRuntimeKeyCapability,
83
83
  resolveCliLocalSpawnDispatch,
84
84
  resolveStartAgentRunCwd
85
- } from "./chunk-6G5V4Y3V.js";
85
+ } from "./chunk-UC5RISH3.js";
86
86
  import {
87
87
  fetchWithTransientRetry,
88
88
  isTransientFetchError
@@ -93,7 +93,7 @@ import {
93
93
  } from "./chunk-53RSTB7T.js";
94
94
  import {
95
95
  resolveAgentRequiredPackIds
96
- } from "./chunk-O2MBTX37.js";
96
+ } from "./chunk-WVGVGT44.js";
97
97
  import {
98
98
  applyBuiltinAgentRuntimeOverride,
99
99
  applyTokenUsageToDayStats,
@@ -102,14 +102,14 @@ import {
102
102
  resolveBuiltinPlatformAgentConfig,
103
103
  runKeyed,
104
104
  validateAskChoiceInput
105
- } from "./chunk-RBVR7P3M.js";
105
+ } from "./chunk-63JHZKGZ.js";
106
106
  import {
107
107
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
108
108
  BUILTIN_TITLE_LLM_CONFIG
109
109
  } from "./chunk-523DITKR.js";
110
110
  import {
111
111
  fetchServerSyncedCredential
112
- } from "./chunk-PVZ3GB25.js";
112
+ } from "./chunk-YHNZZIAH.js";
113
113
  import {
114
114
  getDefaultCliLocalRuntimeDb
115
115
  } from "./chunk-P64WRQYV.js";
@@ -125,7 +125,7 @@ import {
125
125
  applySystemBuiltinSkillFilter,
126
126
  expandEnabledPacks,
127
127
  resolveEffectiveEnabledPacks
128
- } from "./chunk-OXOXPREC.js";
128
+ } from "./chunk-SM56M7N7.js";
129
129
  import {
130
130
  DEFAULT_HYBRID_READ_TIMEOUT_MS,
131
131
  Duration_exports,
@@ -169,7 +169,7 @@ import {
169
169
  runExecShellGates,
170
170
  validateConfiguredRootExecutionLease,
171
171
  verifyOwnerRouteAck
172
- } from "./chunk-HVV4B6OL.js";
172
+ } from "./chunk-ADTJJVDJ.js";
173
173
  import {
174
174
  accumulateGeminiChunks,
175
175
  buildGeminiGenerateContentRequest,
@@ -242,7 +242,7 @@ import {
242
242
  } from "./chunk-2MBTWINN.js";
243
243
  import {
244
244
  normalizeUsage
245
- } from "./chunk-S4W4GV3B.js";
245
+ } from "./chunk-K6TZSON4.js";
246
246
  import {
247
247
  isDevinOAuthAgent
248
248
  } from "./chunk-5ZUL4CUO.js";
@@ -378,12 +378,13 @@ import {
378
378
  import {
379
379
  agentRunCardLabels,
380
380
  t
381
- } from "./chunk-YO3O7H2X.js";
381
+ } from "./chunk-UNOILAZP.js";
382
382
  import {
383
+ createTokenDialogIndexKey,
383
384
  createTokenKey,
384
385
  createTokenStatsKey,
385
386
  createUserKey
386
- } from "./chunk-WMHWFFTE.js";
387
+ } from "./chunk-ECX3NKRD.js";
387
388
  import {
388
389
  dialogMessageKey,
389
390
  dialogMessagePrefix,
@@ -11817,6 +11818,22 @@ function isRemoteAuthEndpoint(endpoint) {
11817
11818
  return false;
11818
11819
  }
11819
11820
 
11821
+ // packages/ai/token/tokenDialogIndex.ts
11822
+ function buildTokenDialogIndexOps(args) {
11823
+ const userId = (args.userId ?? "").trim();
11824
+ const dialogId = (args.dialogId ?? "").trim();
11825
+ const callId = (args.callId ?? "").trim();
11826
+ const recordKey = (args.recordKey ?? "").trim();
11827
+ if (!userId || !dialogId || !callId || !recordKey) return [];
11828
+ return [
11829
+ {
11830
+ type: "put",
11831
+ key: createTokenDialogIndexKey(userId, dialogId, callId),
11832
+ value: { userId, dialogId, callId, recordKey }
11833
+ }
11834
+ ];
11835
+ }
11836
+
11820
11837
  // packages/cli/client/localRuntimeDialog.ts
11821
11838
  import { appendFileSync, mkdirSync as mkdirSync3 } from "fs";
11822
11839
  import { homedir } from "os";
@@ -12008,7 +12025,15 @@ async function writeLocalTokenRecord(args) {
12008
12025
  type: "token",
12009
12026
  ...prepared.tokenData
12010
12027
  };
12011
- await args.store.write(recordKey, tokenRecord);
12028
+ await args.store.batch([
12029
+ { type: "put", key: recordKey, value: tokenRecord },
12030
+ ...buildTokenDialogIndexOps({
12031
+ userId: args.userId,
12032
+ dialogId: typeof prepared.tokenData.dialogId === "string" ? prepared.tokenData.dialogId : "",
12033
+ callId,
12034
+ recordKey
12035
+ })
12036
+ ]);
12012
12037
  ops.push({ type: "put", key: recordKey, value: tokenRecord });
12013
12038
  const dateKey = format(timestamp, "yyyy-MM-dd");
12014
12039
  const statsKey = createTokenStatsKey(args.userId, dateKey);
@@ -9,7 +9,7 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-5LVGXDSL.js";
12
+ } from "./chunk-2NAE7IVE.js";
13
13
  import {
14
14
  parsePositiveFiniteNumberOrFallback
15
15
  } from "./chunk-Y5GCAMGP.js";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  readDbRecord,
21
21
  resolveAgentRecordFromHybridStore
22
- } from "./chunk-WBCYL63M.js";
22
+ } from "./chunk-GYVLAHA4.js";
23
23
  import {
24
24
  INSTABOX_RUN_CONFIG_ENV,
25
25
  createCliLocalRuntimeAdapter,
@@ -38,7 +38,7 @@ import {
38
38
  resolveFileWriteGateEnabled,
39
39
  resolveLocalUserId,
40
40
  validateInstaboxWorkspaceSelection
41
- } from "./chunk-VH7PE33C.js";
41
+ } from "./chunk-KDBKEYUW.js";
42
42
  import {
43
43
  clearCredentialAvailability,
44
44
  readEffectiveCredentialEntry,
@@ -72,14 +72,14 @@ import {
72
72
  } from "./chunk-BMQ2MJUK.js";
73
73
  import {
74
74
  resolveCliLocalRuntimeKeyCapability
75
- } from "./chunk-6G5V4Y3V.js";
75
+ } from "./chunk-UC5RISH3.js";
76
76
  import {
77
77
  isTransientFetchError
78
78
  } from "./chunk-KFHREHUQ.js";
79
79
  import {
80
80
  parseUiCard,
81
81
  uiCardFallback
82
- } from "./chunk-O2MBTX37.js";
82
+ } from "./chunk-WVGVGT44.js";
83
83
  import {
84
84
  isGatewayHttpStatus
85
85
  } from "./chunk-NF64D32W.js";
@@ -88,7 +88,7 @@ import {
88
88
  chooseMemoryOwners,
89
89
  loadMemoryCandidatesFromDb,
90
90
  resolveAgentMemoryPolicy
91
- } from "./chunk-H6FUDBS3.js";
91
+ } from "./chunk-CGKSIL4D.js";
92
92
  import {
93
93
  API_REPORTED_COST_MULTIPLIER,
94
94
  estimateMessagesTokens,
@@ -96,7 +96,7 @@ import {
96
96
  resolveAgentContextWindow,
97
97
  resolveOccupancy,
98
98
  resolveOccupancyWindow
99
- } from "./chunk-RBVR7P3M.js";
99
+ } from "./chunk-63JHZKGZ.js";
100
100
  import {
101
101
  isCliAuthorityBrokerProtocolError,
102
102
  isCliAuthorityBrokerTimeoutError,
@@ -116,7 +116,7 @@ import {
116
116
  LOCAL_AGENT_CONFIG_MISSING_CODE,
117
117
  LOCAL_TURN_ABORTED_CODE,
118
118
  readActionGate
119
- } from "./chunk-HVV4B6OL.js";
119
+ } from "./chunk-ADTJJVDJ.js";
120
120
  import {
121
121
  resolveAgentRuntimeConfigFromRecord
122
122
  } from "./chunk-N7E3LQ4A.js";
@@ -144,7 +144,7 @@ import {
144
144
  } from "./chunk-WJZOQR2J.js";
145
145
  import {
146
146
  normalizeUsage
147
- } from "./chunk-S4W4GV3B.js";
147
+ } from "./chunk-K6TZSON4.js";
148
148
  import {
149
149
  isOAuthApiKeyRef
150
150
  } from "./chunk-UKZX3NHN.js";
@@ -228,10 +228,10 @@ import {
228
228
  t,
229
229
  toolLabel,
230
230
  toolLabelVariants
231
- } from "./chunk-YO3O7H2X.js";
231
+ } from "./chunk-UNOILAZP.js";
232
232
  import {
233
233
  createMemoryKey
234
- } from "./chunk-WMHWFFTE.js";
234
+ } from "./chunk-ECX3NKRD.js";
235
235
  import {
236
236
  ulid
237
237
  } from "./chunk-XJWWBO34.js";
@@ -11378,7 +11378,7 @@ function isBalanceExhaustedError(error) {
11378
11378
 
11379
11379
  // packages/cli/client/agentRun.ts
11380
11380
  async function loadRunLocalAgentTurn() {
11381
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-G4KEXO5D.js");
11381
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-NAAYNHCW.js");
11382
11382
  return runLocalAgentTurn;
11383
11383
  }
11384
11384
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-6G5V4Y3V.js";
3
+ } from "./chunk-UC5RISH3.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-RBVR7P3M.js";
6
+ } from "./chunk-63JHZKGZ.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-AKE53VMW.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-WBCYL63M.js";
4
+ } from "./chunk-GYVLAHA4.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-ZC3CMUKU.js";
11
11
  import {
12
12
  createKey
13
- } from "./chunk-WMHWFFTE.js";
13
+ } from "./chunk-ECX3NKRD.js";
14
14
 
15
15
  // packages/ai/tools/codeWorkDiscipline.ts
16
16
  var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\uFF09
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-KOIGM3KU.js";
10
+ } from "./chunk-5DPVRMSY.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
@@ -69,7 +69,7 @@ import {
69
69
  } from "./chunk-4SN6J65J.js";
70
70
  import {
71
71
  t
72
- } from "./chunk-YO3O7H2X.js";
72
+ } from "./chunk-UNOILAZP.js";
73
73
  import {
74
74
  asNonEmptyStringArray,
75
75
  asTrimmedNonEmptyStringArray
@@ -780,7 +780,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
780
780
  return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
781
781
  }
782
782
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
783
- const reader = readLocalDialog ?? (await import("./localDialogRead-55YDVPNU.js")).readDialogFromLocalDb;
783
+ const reader = readLocalDialog ?? (await import("./localDialogRead-CT5HGDMC.js")).readDialogFromLocalDb;
784
784
  const result = await reader({ dialogKey, dialogId, limit });
785
785
  return {
786
786
  ...result,
@@ -795,7 +795,7 @@ async function readLocalDialogAtDbPathDefault(args) {
795
795
  );
796
796
  }
797
797
  const db = await getDefaultCliLocalRuntimeDb();
798
- const { readDialogFromLocalDb: reader } = await import("./localDialogRead-55YDVPNU.js");
798
+ const { readDialogFromLocalDb: reader } = await import("./localDialogRead-CT5HGDMC.js");
799
799
  return reader({ ...args, db });
800
800
  }
801
801
  async function readDialogFromLocalDbWithFallback(args) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-VH7PE33C.js";
4
+ } from "./chunk-KDBKEYUW.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-O2MBTX37.js";
7
+ } from "./chunk-WVGVGT44.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-HVV4B6OL.js";
10
+ } from "./chunk-ADTJJVDJ.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
13
  } from "./chunk-UBLITLAZ.js";
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-Y6ROFCZO.js";
39
39
  import {
40
40
  t
41
- } from "./chunk-YO3O7H2X.js";
41
+ } from "./chunk-UNOILAZP.js";
42
42
  import {
43
43
  asTrimmedNonEmptyStringArray
44
44
  } from "./chunk-I42VC5KR.js";