nolo-cli 0.31.0-alpha.8 → 0.31.0-alpha.9

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 (62) hide show
  1. package/{_executeModel-LTMSIBS4.js → _executeModel-6FRIQJJC.js} +14 -14
  2. package/{agentDeleteCommand-D3MYZK6E.js → agentDeleteCommand-MD3266WY.js} +11 -11
  3. package/{agentEmailCommands-4NZYNLYF.js → agentEmailCommands-P4Z57QRY.js} +16 -16
  4. package/{agentListCommands-SF3HEUTT.js → agentListCommands-S4J6EYVS.js} +13 -13
  5. package/{agentMachineCommands-5RFLYQ6Q.js → agentMachineCommands-IMWA26SD.js} +11 -11
  6. package/{agentRecordCommands-GCXQBTWG.js → agentRecordCommands-KEA6IXKP.js} +16 -16
  7. package/{agentRunCommand-44S7TSQO.js → agentRunCommand-JECNTAJA.js} +16 -16
  8. package/{agentRuntimeLocal-ATGJY6WC.js → agentRuntimeLocal-HKJKTCW4.js} +8 -8
  9. package/{agentSlice-4XWW344Y.js → agentSlice-7ELXNOJA.js} +1 -1
  10. package/{appDeleteCommands-63JO7RXS.js → appDeleteCommands-EZRWLQSL.js} +12 -12
  11. package/{appDeployCommands-Y7EWYUGM.js → appDeployCommands-G3JQ5UXL.js} +12 -12
  12. package/{appDeployStatusCommands-ZBEY3DWB.js → appDeployStatusCommands-ZADWE6HA.js} +12 -12
  13. package/{appGetCommands-QSSOSEYL.js → appGetCommands-G6YN7F2Z.js} +12 -12
  14. package/{appListCommands-PH3XWNDX.js → appListCommands-E3TGPLEB.js} +12 -12
  15. package/{chunk-3FCNXC2J.js → chunk-2UFKPJJI.js} +2 -2
  16. package/{chunk-DLWCWUNW.js → chunk-2UX66SH3.js} +3 -3
  17. package/{chunk-TA6EA2A3.js → chunk-3K55GMMW.js} +2 -2
  18. package/{chunk-MITD7CON.js → chunk-5LZTGR74.js} +9 -9
  19. package/{chunk-3UGKATZQ.js → chunk-7I44EILD.js} +2 -2
  20. package/{chunk-V42OE5HT.js → chunk-7RP2PSIN.js} +1 -1
  21. package/{chunk-ODS2MVMU.js → chunk-AROB24VV.js} +3 -3
  22. package/{chunk-VVEH6XUE.js → chunk-AWKR4MMR.js} +1 -1
  23. package/{chunk-BTSNLYKW.js → chunk-CNTHYPHP.js} +107 -101
  24. package/{chunk-BQ3MI344.js → chunk-GPKB5TIJ.js} +2 -2
  25. package/{chunk-4KFW6HK3.js → chunk-ILQALSPF.js} +7 -7
  26. package/{chunk-EEF23OOK.js → chunk-JNU5ISIG.js} +2 -2
  27. package/{chunk-XDHHF73Q.js → chunk-NBWOCRU3.js} +1 -1
  28. package/{chunk-UOJRKY5J.js → chunk-NXLUGU6X.js} +2 -2
  29. package/{chunk-RXVX5LFR.js → chunk-OFGTZ35R.js} +1 -1
  30. package/{chunk-3GZT3L6F.js → chunk-OYACR5WZ.js} +8 -8
  31. package/{chunk-53J7CH53.js → chunk-PKB24CKO.js} +4 -4
  32. package/{chunk-Q76I4SXI.js → chunk-Q6U2SGFX.js} +1 -1
  33. package/{chunk-O5OMJPPF.js → chunk-RZN2YWPC.js} +3 -3
  34. package/{chunk-D2BPX6DQ.js → chunk-THJJUY7I.js} +3 -3
  35. package/{chunk-W367V5CH.js → chunk-TVBDE6LJ.js} +5 -5
  36. package/{chunk-RH53LMEJ.js → chunk-VQREJRUO.js} +2 -2
  37. package/{chunk-AYMOSAHE.js → chunk-WCZ6NCQN.js} +10 -8
  38. package/{chunk-TEYN42N3.js → chunk-Z6V33HCT.js} +1 -1
  39. package/{chunk-OWHNFZNW.js → chunk-ZLMXXZVX.js} +1 -1
  40. package/{chunk-O3JR45Q2.js → chunk-ZW6KKTYZ.js} +8 -8
  41. package/{createAgentAutomationAction-WLRNE7C4.js → createAgentAutomationAction-ZLJRVATF.js} +3 -3
  42. package/{createDialogAction-Y6YV64QB.js → createDialogAction-CFYGC6NF.js} +4 -4
  43. package/{createPageAction-7YROVZ3W.js → createPageAction-Y2H5GYJU.js} +3 -3
  44. package/{dialogCommands-XLO5CAHZ.js → dialogCommands-4DYAWH6L.js} +12 -12
  45. package/{dialogSlice-N4HPG6HM.js → dialogSlice-23SPNP3O.js} +2 -2
  46. package/{docCreateCommands-GRA5BHSA.js → docCreateCommands-OXEKIA6S.js} +11 -11
  47. package/{docDeleteCommands-ONIJM5MD.js → docDeleteCommands-P3PR6NS7.js} +12 -12
  48. package/{docReadCommands-H55VQ2US.js → docReadCommands-MS2WXJIA.js} +11 -11
  49. package/{docStore-B5AHDNW5.js → docStore-2DWKYPQO.js} +4 -4
  50. package/{docUpdateCommands-ZQIQVGC2.js → docUpdateCommands-N54A2KBE.js} +11 -11
  51. package/{handleSendMessageAction-IN5XX5U7.js → handleSendMessageAction-RL25MK5X.js} +2 -2
  52. package/index.js +40 -40
  53. package/{machineCommands-VEODP2TD.js → machineCommands-DVMG4LQ2.js} +15 -15
  54. package/{machineWsRunDispatch-V67NWOCY.js → machineWsRunDispatch-5R4FV3HQ.js} +15 -15
  55. package/package.json +1 -1
  56. package/{readlineWorkspace-JDZZXXNA.js → readlineWorkspace-3BJXQE3S.js} +19 -19
  57. package/{runAgentClientLoop-H7U53QB6.js → runAgentClientLoop-GNDHLSYM.js} +11 -11
  58. package/{spaceCommands-7VVKJBDV.js → spaceCommands-BXG3LHG4.js} +11 -11
  59. package/{spaceSlice-T6YK6D34.js → spaceSlice-4JKOTPHQ.js} +3 -3
  60. package/{streamAgentChatTurn-RQ63QFQ7.js → streamAgentChatTurn-VJ4JB3MV.js} +13 -13
  61. package/{tools-KYZX3BGO.js → tools-ISIPHXWB.js} +8 -8
  62. package/{updateDialogTitleAction-BBDSWHNG.js → updateDialogTitleAction-HRSMYRLK.js} +3 -3
@@ -4,38 +4,38 @@ import {
4
4
  outputResult,
5
5
  printCliError,
6
6
  resolveCliContext
7
- } from "./chunk-RXVX5LFR.js";
7
+ } from "./chunk-OFGTZ35R.js";
8
8
  import {
9
9
  hasFlag,
10
10
  hasHelpArg
11
- } from "./chunk-OWHNFZNW.js";
12
- import "./chunk-V42OE5HT.js";
13
- import "./chunk-VVEH6XUE.js";
11
+ } from "./chunk-ZLMXXZVX.js";
12
+ import "./chunk-7RP2PSIN.js";
13
+ import "./chunk-AWKR4MMR.js";
14
14
  import "./chunk-K6QEHQZ3.js";
15
- import "./chunk-DLWCWUNW.js";
15
+ import "./chunk-2UX66SH3.js";
16
16
  import "./chunk-ZNFJWEN4.js";
17
17
  import "./chunk-7S54ZGF6.js";
18
18
  import "./chunk-OIQPORYI.js";
19
19
  import "./chunk-T27IEBNQ.js";
20
- import "./chunk-AYMOSAHE.js";
20
+ import "./chunk-WCZ6NCQN.js";
21
21
  import "./chunk-N7J63Q6C.js";
22
22
  import "./chunk-DOISARTV.js";
23
- import "./chunk-3UGKATZQ.js";
23
+ import "./chunk-7I44EILD.js";
24
24
  import "./chunk-D34RI6NI.js";
25
25
  import "./chunk-UDA3ZYLW.js";
26
26
  import "./chunk-XFG3BAKN.js";
27
27
  import "./chunk-2MBTWINN.js";
28
- import "./chunk-D2BPX6DQ.js";
29
- import "./chunk-EEF23OOK.js";
28
+ import "./chunk-THJJUY7I.js";
29
+ import "./chunk-JNU5ISIG.js";
30
30
  import "./chunk-SWYMCHM7.js";
31
31
  import "./chunk-44HACRCK.js";
32
32
  import "./chunk-DCDL3GC4.js";
33
33
  import "./chunk-E3APEOIM.js";
34
- import "./chunk-3FCNXC2J.js";
35
- import "./chunk-3GZT3L6F.js";
34
+ import "./chunk-2UFKPJJI.js";
35
+ import "./chunk-OYACR5WZ.js";
36
36
  import "./chunk-BGTUGS3T.js";
37
37
  import "./chunk-ATK5WJOA.js";
38
- import "./chunk-ODS2MVMU.js";
38
+ import "./chunk-AROB24VV.js";
39
39
  import "./chunk-JZPBVBIY.js";
40
40
  import "./chunk-5RGU3J7P.js";
41
41
  import "./chunk-M76ECQRD.js";
@@ -5,38 +5,38 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-RXVX5LFR.js";
8
+ } from "./chunk-OFGTZ35R.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-OWHNFZNW.js";
13
- import "./chunk-V42OE5HT.js";
14
- import "./chunk-VVEH6XUE.js";
12
+ } from "./chunk-ZLMXXZVX.js";
13
+ import "./chunk-7RP2PSIN.js";
14
+ import "./chunk-AWKR4MMR.js";
15
15
  import "./chunk-K6QEHQZ3.js";
16
- import "./chunk-DLWCWUNW.js";
16
+ import "./chunk-2UX66SH3.js";
17
17
  import "./chunk-ZNFJWEN4.js";
18
18
  import "./chunk-7S54ZGF6.js";
19
19
  import "./chunk-OIQPORYI.js";
20
20
  import "./chunk-T27IEBNQ.js";
21
- import "./chunk-AYMOSAHE.js";
21
+ import "./chunk-WCZ6NCQN.js";
22
22
  import "./chunk-N7J63Q6C.js";
23
23
  import "./chunk-DOISARTV.js";
24
- import "./chunk-3UGKATZQ.js";
24
+ import "./chunk-7I44EILD.js";
25
25
  import "./chunk-D34RI6NI.js";
26
26
  import "./chunk-UDA3ZYLW.js";
27
27
  import "./chunk-XFG3BAKN.js";
28
28
  import "./chunk-2MBTWINN.js";
29
- import "./chunk-D2BPX6DQ.js";
30
- import "./chunk-EEF23OOK.js";
29
+ import "./chunk-THJJUY7I.js";
30
+ import "./chunk-JNU5ISIG.js";
31
31
  import "./chunk-SWYMCHM7.js";
32
32
  import "./chunk-44HACRCK.js";
33
33
  import "./chunk-DCDL3GC4.js";
34
34
  import "./chunk-E3APEOIM.js";
35
- import "./chunk-3FCNXC2J.js";
36
- import "./chunk-3GZT3L6F.js";
35
+ import "./chunk-2UFKPJJI.js";
36
+ import "./chunk-OYACR5WZ.js";
37
37
  import "./chunk-BGTUGS3T.js";
38
38
  import "./chunk-ATK5WJOA.js";
39
- import "./chunk-ODS2MVMU.js";
39
+ import "./chunk-AROB24VV.js";
40
40
  import "./chunk-JZPBVBIY.js";
41
41
  import "./chunk-5RGU3J7P.js";
42
42
  import "./chunk-M76ECQRD.js";
@@ -5,38 +5,38 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-RXVX5LFR.js";
8
+ } from "./chunk-OFGTZ35R.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-OWHNFZNW.js";
13
- import "./chunk-V42OE5HT.js";
14
- import "./chunk-VVEH6XUE.js";
12
+ } from "./chunk-ZLMXXZVX.js";
13
+ import "./chunk-7RP2PSIN.js";
14
+ import "./chunk-AWKR4MMR.js";
15
15
  import "./chunk-K6QEHQZ3.js";
16
- import "./chunk-DLWCWUNW.js";
16
+ import "./chunk-2UX66SH3.js";
17
17
  import "./chunk-ZNFJWEN4.js";
18
18
  import "./chunk-7S54ZGF6.js";
19
19
  import "./chunk-OIQPORYI.js";
20
20
  import "./chunk-T27IEBNQ.js";
21
- import "./chunk-AYMOSAHE.js";
21
+ import "./chunk-WCZ6NCQN.js";
22
22
  import "./chunk-N7J63Q6C.js";
23
23
  import "./chunk-DOISARTV.js";
24
- import "./chunk-3UGKATZQ.js";
24
+ import "./chunk-7I44EILD.js";
25
25
  import "./chunk-D34RI6NI.js";
26
26
  import "./chunk-UDA3ZYLW.js";
27
27
  import "./chunk-XFG3BAKN.js";
28
28
  import "./chunk-2MBTWINN.js";
29
- import "./chunk-D2BPX6DQ.js";
30
- import "./chunk-EEF23OOK.js";
29
+ import "./chunk-THJJUY7I.js";
30
+ import "./chunk-JNU5ISIG.js";
31
31
  import "./chunk-SWYMCHM7.js";
32
32
  import "./chunk-44HACRCK.js";
33
33
  import "./chunk-DCDL3GC4.js";
34
34
  import "./chunk-E3APEOIM.js";
35
- import "./chunk-3FCNXC2J.js";
36
- import "./chunk-3GZT3L6F.js";
35
+ import "./chunk-2UFKPJJI.js";
36
+ import "./chunk-OYACR5WZ.js";
37
37
  import "./chunk-BGTUGS3T.js";
38
38
  import "./chunk-ATK5WJOA.js";
39
- import "./chunk-ODS2MVMU.js";
39
+ import "./chunk-AROB24VV.js";
40
40
  import "./chunk-JZPBVBIY.js";
41
41
  import "./chunk-5RGU3J7P.js";
42
42
  import "./chunk-M76ECQRD.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  deleteDialog,
3
3
  toast
4
- } from "./chunk-3GZT3L6F.js";
4
+ } from "./chunk-OYACR5WZ.js";
5
5
  import {
6
6
  createFileCredentialBroker,
7
7
  deleteServerSyncedCredential
8
- } from "./chunk-ODS2MVMU.js";
8
+ } from "./chunk-AROB24VV.js";
9
9
  import {
10
10
  require_date_fns
11
11
  } from "./chunk-M76ECQRD.js";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  parseToolArgumentsJson,
13
13
  resolveHistoricalToolContentCap
14
- } from "./chunk-AYMOSAHE.js";
14
+ } from "./chunk-WCZ6NCQN.js";
15
15
  import {
16
16
  createThinkParserState,
17
17
  createToolCallAccumulator,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  requiresBareImageUrl,
24
24
  toBareImageUrlMessages
25
- } from "./chunk-3UGKATZQ.js";
25
+ } from "./chunk-7I44EILD.js";
26
26
  import {
27
27
  shouldStripReasoningContentForOutbound,
28
28
  toOpenAiCompatibleMessages
@@ -39,7 +39,7 @@ import {
39
39
  buildNoloWorkspaceCommandArgs,
40
40
  noloStringArg,
41
41
  parseNoloWorkspaceToolArguments
42
- } from "./chunk-D2BPX6DQ.js";
42
+ } from "./chunk-THJJUY7I.js";
43
43
  import {
44
44
  toErrorMessage
45
45
  } from "./chunk-HNMXYYJR.js";
@@ -3,12 +3,12 @@ import {
3
3
  } from "./chunk-DCDL3GC4.js";
4
4
  import {
5
5
  addContentToSpace
6
- } from "./chunk-3FCNXC2J.js";
6
+ } from "./chunk-2UFKPJJI.js";
7
7
  import {
8
8
  prepareAndPersistMessage,
9
9
  uiAskChoiceFunc,
10
10
  uiAskChoiceFunctionSchema
11
- } from "./chunk-3GZT3L6F.js";
11
+ } from "./chunk-OYACR5WZ.js";
12
12
  import {
13
13
  require_date_fns
14
14
  } from "./chunk-M76ECQRD.js";
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  sortSafeAgentSummaries,
19
19
  toSafeAgentSummary
20
- } from "./chunk-TEYN42N3.js";
20
+ } from "./chunk-Z6V33HCT.js";
21
21
  import {
22
22
  getUserDataItemTimestamp,
23
23
  mergeAndDedupUserData
@@ -43,10 +43,10 @@ import {
43
43
  resolveNoloDialogInput,
44
44
  toolRunUpdated,
45
45
  verifyNoloDialogSubjectRefQuery
46
- } from "./chunk-D2BPX6DQ.js";
46
+ } from "./chunk-THJJUY7I.js";
47
47
  import {
48
48
  createDocState
49
- } from "./chunk-EEF23OOK.js";
49
+ } from "./chunk-JNU5ISIG.js";
50
50
  import {
51
51
  setDialogExtraReferencesAction
52
52
  } from "./chunk-43EPBPZ2.js";
@@ -69,7 +69,7 @@ import {
69
69
  } from "./chunk-44HACRCK.js";
70
70
  import {
71
71
  createDialogAction
72
- } from "./chunk-TA6EA2A3.js";
72
+ } from "./chunk-3K55GMMW.js";
73
73
  import {
74
74
  markdownToSlate
75
75
  } from "./chunk-3LY4F7SV.js";
@@ -89,7 +89,7 @@ import {
89
89
  selectCurrentSpaceId,
90
90
  updateContentCategory,
91
91
  updateContentTitle
92
- } from "./chunk-3FCNXC2J.js";
92
+ } from "./chunk-2UFKPJJI.js";
93
93
  import {
94
94
  incrementFailedSteps,
95
95
  incrementStepsExecuted,
@@ -103,7 +103,7 @@ import {
103
103
  uiAskChoiceFunc,
104
104
  uiAskChoiceFunctionSchema,
105
105
  updateStep
106
- } from "./chunk-3GZT3L6F.js";
106
+ } from "./chunk-OYACR5WZ.js";
107
107
  import {
108
108
  buildDatabaseFileContentUrl
109
109
  } from "./chunk-BGTUGS3T.js";
@@ -112,7 +112,7 @@ import {
112
112
  runLlm,
113
113
  streamAgentChatTurn,
114
114
  updateAgent
115
- } from "./chunk-ODS2MVMU.js";
115
+ } from "./chunk-AROB24VV.js";
116
116
  import {
117
117
  toErrorMessage
118
118
  } from "./chunk-HNMXYYJR.js";
@@ -13929,7 +13929,7 @@ async function deleteDialogsFunc(args, thunkApi) {
13929
13929
  const deletedDialogIds = [];
13930
13930
  const deletedDialogKeys = [];
13931
13931
  const failures = [];
13932
- const { deleteDialog } = await import("./dialogSlice-N4HPG6HM.js");
13932
+ const { deleteDialog } = await import("./dialogSlice-23SPNP3O.js");
13933
13933
  for (const target of targets) {
13934
13934
  try {
13935
13935
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -25684,7 +25684,7 @@ async function updateDocFunc(args, thunkApi) {
25684
25684
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25685
25685
  };
25686
25686
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25687
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-B5AHDNW5.js");
25687
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-2DWKYPQO.js");
25688
25688
  if (getDocState().pageKey === id) {
25689
25689
  applyExternalDocUpdate({
25690
25690
  slateData: finalSlateData,
@@ -7,13 +7,13 @@ import {
7
7
  import {
8
8
  clipMultilineText,
9
9
  fetchAndSerializeTable
10
- } from "./chunk-D2BPX6DQ.js";
10
+ } from "./chunk-THJJUY7I.js";
11
11
  import {
12
12
  slateToSimplifiedMarkdown
13
13
  } from "./chunk-SWYMCHM7.js";
14
14
  import {
15
15
  fetchAndCacheMessages
16
- } from "./chunk-3GZT3L6F.js";
16
+ } from "./chunk-OYACR5WZ.js";
17
17
  import {
18
18
  estimateTokenCount
19
19
  } from "./chunk-BGTUGS3T.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
3
  shouldReadAgentKeyRemotely
4
- } from "./chunk-VVEH6XUE.js";
4
+ } from "./chunk-AWKR4MMR.js";
5
5
  import {
6
6
  resolveCliAgentKeyInput
7
7
  } from "./chunk-K6QEHQZ3.js";
@@ -583,7 +583,7 @@ var slice = createSliceWithThunks({
583
583
  const overrides = {};
584
584
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
585
585
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
586
- const { _executeModel } = await import("./_executeModel-LTMSIBS4.js");
586
+ const { _executeModel } = await import("./_executeModel-6FRIQJJC.js");
587
587
  return _executeModel(
588
588
  {
589
589
  isStreaming: args.isStreaming ?? false,
@@ -604,7 +604,7 @@ var slice = createSliceWithThunks({
604
604
  * - 循环直到无工具调用或触发其他运行时停止条件
605
605
  */
606
606
  runAgent: create.asyncThunk(async (args, thunkApi) => {
607
- const { runAgentClientLoop } = await import("./runAgentClientLoop-H7U53QB6.js");
607
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-GNDHLSYM.js");
608
608
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
609
609
  {
610
610
  agentKey: args.agentKey,
@@ -620,7 +620,7 @@ var slice = createSliceWithThunks({
620
620
  * 聊天轮次流式 Agent 调用
621
621
  */
622
622
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
623
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-RQ63QFQ7.js");
623
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-VJ4JB3MV.js");
624
624
  return streamAgentChatTurnHandler(args, thunkApi);
625
625
  }),
626
626
  /**
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-D2BPX6DQ.js";
4
+ } from "./chunk-THJJUY7I.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-Q3CSL43H.js";
28
28
  import {
29
29
  buildLocalAgentLookupKeys
30
- } from "./chunk-VVEH6XUE.js";
30
+ } from "./chunk-AWKR4MMR.js";
31
31
  import {
32
32
  LOCAL_CODEX_AGENT_ID,
33
33
  LOCAL_CODEX_AGENT_KEY,
@@ -54,7 +54,7 @@ import {
54
54
  readOpenAiCompatibleSseCompletion,
55
55
  resolveAgentNextAvailableAt,
56
56
  resolveOpenAiCompatibleProviderConfig
57
- } from "./chunk-DLWCWUNW.js";
57
+ } from "./chunk-2UX66SH3.js";
58
58
  import {
59
59
  buildPlatformChatCompletionRequest,
60
60
  canUsePlatformChatProvider,
@@ -74,12 +74,12 @@ import {
74
74
  import {
75
75
  inlineImageUrlsForCustomProvider,
76
76
  prepareTools
77
- } from "./chunk-XDHHF73Q.js";
77
+ } from "./chunk-NBWOCRU3.js";
78
78
  import {
79
79
  inferCaptureIntent,
80
80
  resolveHistoricalToolContentCap,
81
81
  summarizeToolArguments
82
- } from "./chunk-AYMOSAHE.js";
82
+ } from "./chunk-WCZ6NCQN.js";
83
83
  import {
84
84
  getAntigravityUserAgent,
85
85
  isAntigravityOAuthAgent,
@@ -104,7 +104,7 @@ import {
104
104
  readXhsProfileFunctionSchema,
105
105
  rememberMemoryFunctionSchema,
106
106
  setTodoListFunc
107
- } from "./chunk-MITD7CON.js";
107
+ } from "./chunk-5LZTGR74.js";
108
108
  import {
109
109
  createDrainExhaustedResponse,
110
110
  isCoreDrainingBody,
@@ -128,13 +128,13 @@ import {
128
128
  parseNoloWorkspaceToolArguments,
129
129
  resolveAgentRequiredPackIds,
130
130
  resolveRuntimeToolSurfaceForAgent
131
- } from "./chunk-D2BPX6DQ.js";
131
+ } from "./chunk-THJJUY7I.js";
132
132
  import {
133
133
  applyTokenUsageToDayStats,
134
134
  prepareTokenUsageData,
135
135
  resolveBuiltinPlatformAgentConfig,
136
136
  runKeyed
137
- } from "./chunk-3GZT3L6F.js";
137
+ } from "./chunk-OYACR5WZ.js";
138
138
  import {
139
139
  BUILTIN_TITLE_LLM_CONFIG,
140
140
  clipCompactText
@@ -145,7 +145,7 @@ import {
145
145
  resolveCurrentRunRuntimeToolPolicy,
146
146
  resolveLocalWorkspaceExecutorOptionsFromPolicy,
147
147
  resolveRequestedRuntimeToolNames
148
- } from "./chunk-ODS2MVMU.js";
148
+ } from "./chunk-AROB24VV.js";
149
149
  import {
150
150
  createOAuthTokenStore,
151
151
  isTokenExpired,
@@ -10660,8 +10660,24 @@ function createConcurrencyLimiter(maxConcurrent) {
10660
10660
 
10661
10661
  // packages/cli/client/localRuntimeDialog.ts
10662
10662
  var import_date_fns = __toESM(require_date_fns(), 1);
10663
- var titlePatchLimiter = createConcurrencyLimiter(2);
10664
- var remoteSyncLimiter = createConcurrencyLimiter(3);
10663
+ var MAX_TITLE_PATCH_CONCURRENT = 2;
10664
+ var MAX_REMOTE_SYNC_CONCURRENT = 3;
10665
+ var titlePatchLimiter = createConcurrencyLimiter(MAX_TITLE_PATCH_CONCURRENT);
10666
+ var remoteSyncLimiter = createConcurrencyLimiter(MAX_REMOTE_SYNC_CONCURRENT);
10667
+ function createPerfTracker(env) {
10668
+ const enabled = env?.NOLO_CLI_PERF === "1";
10669
+ const t0 = enabled ? performance.now() : 0;
10670
+ return {
10671
+ enabled,
10672
+ mark(label, since) {
10673
+ if (!enabled) return;
10674
+ const ms = (performance.now() - (since ?? t0)).toFixed(1);
10675
+ process.stderr.write(`[nolo-perf] writeDialog ${label}: ${ms}ms
10676
+ `);
10677
+ },
10678
+ t0
10679
+ };
10680
+ }
10665
10681
  async function resolveStore(deps) {
10666
10682
  if (deps.store) return deps.store;
10667
10683
  return createCliHybridRecordStore({
@@ -10726,6 +10742,66 @@ function createLocalDialogTitleGenerator(deps, ctx) {
10726
10742
  return result.source === "llm" ? result.title : null;
10727
10743
  };
10728
10744
  }
10745
+ function patchDialogTitleInBackground(args) {
10746
+ return args.titlePromise.then(async (resolvedTitle) => {
10747
+ if (!resolvedTitle) return;
10748
+ const limiter = args.limiter ?? titlePatchLimiter;
10749
+ await limiter.run(async () => {
10750
+ try {
10751
+ const existing = await args.store.read(args.dialogKey);
10752
+ if (!existing || typeof existing !== "object") return;
10753
+ if (existing?.titleSource === "manual") return;
10754
+ const existingTitleUpdatedAtMs = parseTitleUpdatedAtMs(existing);
10755
+ if (existingTitleUpdatedAtMs > args.nowMs) return;
10756
+ await args.store.write(args.dialogKey, {
10757
+ ...existing,
10758
+ title: resolvedTitle,
10759
+ titleSource: "auto",
10760
+ titleUpdatedAt: new Date(args.nowMs).toISOString()
10761
+ });
10762
+ } catch {
10763
+ }
10764
+ });
10765
+ });
10766
+ }
10767
+ function syncDialogEvidence(args) {
10768
+ const syncArgs = {
10769
+ env: args.env,
10770
+ fetchImpl: args.fetchImpl,
10771
+ input: args.input,
10772
+ ops: args.ops,
10773
+ output: args.output,
10774
+ userId: args.userId
10775
+ };
10776
+ if (args.hasSubjectRefs) {
10777
+ return (async () => {
10778
+ const syncResult = await syncLocalDialogEvidenceToRemote(syncArgs);
10779
+ if (!syncResult.attempted) {
10780
+ args.output?.write(
10781
+ "[nolo] Local dialog evidence is local-only; set NOLO_SERVER and AUTH_TOKEN to make subjectRefs remotely queryable.\n"
10782
+ );
10783
+ }
10784
+ })();
10785
+ }
10786
+ const limiter = args.limiter ?? remoteSyncLimiter;
10787
+ return limiter.run(() => syncLocalDialogEvidenceToRemote(syncArgs)).catch((error) => {
10788
+ args.output?.write(
10789
+ `[nolo] Remote dialog evidence sync failed; local dialog only: ${toErrorMessage(error)}
10790
+ `
10791
+ );
10792
+ });
10793
+ }
10794
+ function shouldRegenerateTitle(existingDialog, nowMs) {
10795
+ const existingTitle = typeof existingDialog?.title === "string" ? existingDialog.title.trim() : "";
10796
+ const existingTitleSource = existingDialog?.titleSource;
10797
+ if (existingTitleSource === "manual") return false;
10798
+ if (!existingTitle) return true;
10799
+ const titleUpdatedAtMs = parseTitleUpdatedAtMs(existingDialog);
10800
+ if (titleUpdatedAtMs > 0) {
10801
+ return nowMs - titleUpdatedAtMs >= 30 * 60 * 1e3;
10802
+ }
10803
+ return false;
10804
+ }
10729
10805
  async function writeLocalTokenRecord(args) {
10730
10806
  const usageRecords = args.input.usageRecords?.length ? args.input.usageRecords : args.input.result.usage ? [{
10731
10807
  callId: typeof args.input.result.usage?.provider_call_id === "string" && args.input.result.usage.provider_call_id.trim() ? args.input.result.usage.provider_call_id.trim() : args.createId(),
@@ -10794,36 +10870,15 @@ async function writeLocalTokenRecord(args) {
10794
10870
  return ops;
10795
10871
  }
10796
10872
  async function writeDialog(args) {
10797
- const __perfEnabled = args.env?.NOLO_CLI_PERF === "1";
10798
- const __perfT0 = __perfEnabled ? performance.now() : 0;
10873
+ const perf = createPerfTracker(args.env);
10799
10874
  let existingDialog = null;
10800
10875
  if (args.input.continueDialogId) {
10801
10876
  const dialogKey = `dialog-${args.userId}-${args.input.continueDialogId}`;
10802
10877
  existingDialog = await args.store.read(dialogKey, { remote: false });
10803
10878
  }
10804
- if (__perfEnabled) {
10805
- const ms = (performance.now() - __perfT0).toFixed(1);
10806
- process.stderr.write(`[nolo-perf] writeDialog A:read-dialog: ${ms}ms
10807
- `);
10808
- }
10879
+ perf.mark("A:read-dialog");
10809
10880
  const nowMs = args.now();
10810
- const existingTitle = typeof existingDialog?.title === "string" ? existingDialog.title.trim() : "";
10811
- const existingTitleSource = existingDialog?.titleSource;
10812
- let needsTitleUpdate = false;
10813
- if (existingTitleSource === "manual") {
10814
- needsTitleUpdate = false;
10815
- } else if (!existingTitle) {
10816
- needsTitleUpdate = true;
10817
- } else {
10818
- const titleUpdatedAtMs = parseTitleUpdatedAtMs(existingDialog);
10819
- if (titleUpdatedAtMs > 0) {
10820
- if (nowMs - titleUpdatedAtMs >= 30 * 60 * 1e3) {
10821
- needsTitleUpdate = true;
10822
- }
10823
- } else {
10824
- needsTitleUpdate = false;
10825
- }
10826
- }
10881
+ const needsTitleUpdate = shouldRegenerateTitle(existingDialog, nowMs);
10827
10882
  let titlePromise;
10828
10883
  if (needsTitleUpdate && args.titleGenerator) {
10829
10884
  const rawLastUserText = extractLastUserText(args.input.messages);
@@ -10839,11 +10894,7 @@ async function writeDialog(args) {
10839
10894
  cwd: args.cwd
10840
10895
  });
10841
10896
  await args.store.batch(plan.ops);
10842
- if (__perfEnabled) {
10843
- const ms = (performance.now() - __perfT0).toFixed(1);
10844
- process.stderr.write(`[nolo-perf] writeDialog C:store-batch (cumulative): ${ms}ms
10845
- `);
10846
- }
10897
+ perf.mark("C:store-batch (cumulative)");
10847
10898
  let tokenOps = [];
10848
10899
  try {
10849
10900
  tokenOps = await writeLocalTokenRecord({
@@ -10861,78 +10912,33 @@ async function writeDialog(args) {
10861
10912
  `
10862
10913
  );
10863
10914
  }
10864
- if (__perfEnabled) {
10865
- const ms = (performance.now() - __perfT0).toFixed(1);
10866
- process.stderr.write(`[nolo-perf] writeDialog D:token-record (cumulative): ${ms}ms
10867
- `);
10868
- }
10915
+ perf.mark("D:token-record (cumulative)");
10869
10916
  const hasSubjectRefs = localTurnHasSubjectRefs(args.input);
10870
10917
  const isLocalUser = args.userId === "local";
10871
10918
  let remoteSyncPromise;
10872
10919
  if (!isLocalUser) {
10873
- if (hasSubjectRefs) {
10874
- remoteSyncPromise = (async () => {
10875
- const syncResult = await syncLocalDialogEvidenceToRemote({
10876
- env: args.env,
10877
- fetchImpl: args.fetchImpl,
10878
- input: args.input,
10879
- ops: [...plan.ops, ...tokenOps],
10880
- output: args.output,
10881
- userId: args.userId
10882
- });
10883
- if (!syncResult.attempted) {
10884
- args.output?.write(
10885
- "[nolo] Local dialog evidence is local-only; set NOLO_SERVER and AUTH_TOKEN to make subjectRefs remotely queryable.\n"
10886
- );
10887
- }
10888
- })();
10889
- await remoteSyncPromise;
10890
- } else {
10891
- remoteSyncPromise = remoteSyncLimiter.run(
10892
- () => syncLocalDialogEvidenceToRemote({
10893
- env: args.env,
10894
- fetchImpl: args.fetchImpl,
10895
- input: args.input,
10896
- ops: [...plan.ops, ...tokenOps],
10897
- output: args.output,
10898
- userId: args.userId
10899
- })
10900
- ).catch((error) => {
10901
- args.output?.write(
10902
- `[nolo] Remote dialog evidence sync failed; local dialog only: ${toErrorMessage(error)}
10903
- `
10904
- );
10905
- });
10906
- }
10920
+ remoteSyncPromise = syncDialogEvidence({
10921
+ env: args.env,
10922
+ fetchImpl: args.fetchImpl,
10923
+ input: args.input,
10924
+ ops: [...plan.ops, ...tokenOps],
10925
+ output: args.output,
10926
+ userId: args.userId,
10927
+ hasSubjectRefs
10928
+ });
10929
+ if (hasSubjectRefs) await remoteSyncPromise;
10907
10930
  }
10908
10931
  let titlePatchPromise;
10909
10932
  if (titlePromise) {
10910
10933
  const dialogKey = `dialog-${args.userId}-${plan.dialogId}`;
10911
- titlePatchPromise = titlePromise.then(async (resolvedTitle) => {
10912
- if (!resolvedTitle) return;
10913
- await titlePatchLimiter.run(async () => {
10914
- try {
10915
- const existing = await args.store.read(dialogKey);
10916
- if (!existing || typeof existing !== "object") return;
10917
- if (existing?.titleSource === "manual") return;
10918
- const existingTitleUpdatedAtMs = parseTitleUpdatedAtMs(existing);
10919
- if (existingTitleUpdatedAtMs > nowMs) return;
10920
- await args.store.write(dialogKey, {
10921
- ...existing,
10922
- title: resolvedTitle,
10923
- titleSource: "auto",
10924
- titleUpdatedAt: new Date(nowMs).toISOString()
10925
- });
10926
- } catch {
10927
- }
10928
- });
10934
+ titlePatchPromise = patchDialogTitleInBackground({
10935
+ store: args.store,
10936
+ dialogKey,
10937
+ titlePromise,
10938
+ nowMs
10929
10939
  });
10930
10940
  }
10931
- if (__perfEnabled) {
10932
- const ms = (performance.now() - __perfT0).toFixed(1);
10933
- process.stderr.write(`[nolo-perf] writeDialog total (blocking): ${ms}ms
10934
- `);
10935
- }
10941
+ perf.mark("total (blocking)");
10936
10942
  return { dialogId: plan.dialogId, title: plan.title, titlePatchPromise, remoteSyncPromise };
10937
10943
  }
10938
10944
  function resolveCliDialogRecordKey(userId, dialogId) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-BTSNLYKW.js";
3
+ } from "./chunk-CNTHYPHP.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-6YABCOFU.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-V42OE5HT.js";
15
+ } from "./chunk-7RP2PSIN.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-K6QEHQZ3.js";