nolo-cli 0.102.1 → 0.102.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/{_executeModel-WLFACVFR.js → _executeModel-B6SS2ISV.js} +32 -32
  2. package/{action-PNPQLJHG.js → action-C4KMTCJF.js} +2 -2
  3. package/{addContentAction-RBOUD7SJ.js → addContentAction-7TNIOVZI.js} +6 -6
  4. package/{addDialogAgentAction-IODCR6TB.js → addDialogAgentAction-O47J3MVW.js} +5 -5
  5. package/{agentDeleteCommand-XHHDYJ3U.js → agentDeleteCommand-MEKEAJS6.js} +36 -36
  6. package/{agentEmailCommands-GJ2TE3CV.js → agentEmailCommands-NCQSCDX7.js} +36 -36
  7. package/{agentListCommands-B3YHJQNM.js → agentListCommands-VLNQH2BR.js} +19 -19
  8. package/{agentMachineCommands-KQLRJF5O.js → agentMachineCommands-ZYKZGX65.js} +17 -17
  9. package/{agentRecordCommands-LXDIXYQM.js → agentRecordCommands-2INKPT2O.js} +36 -36
  10. package/{agentRunCommand-P2KLVSYL.js → agentRunCommand-2SZBC7BP.js} +36 -36
  11. package/{agentRuntimeLocal-SXYAKX3A.js → agentRuntimeLocal-7VIX3R3R.js} +14 -14
  12. package/{agentSlice-WBSSBKBB.js → agentSlice-4JIT2XG4.js} +7 -7
  13. package/{appDeleteCommands-4EX37I4K.js → appDeleteCommands-YLCAVP4I.js} +18 -18
  14. package/{appDeployCommands-SDBR3J75.js → appDeployCommands-7PQPIIEL.js} +18 -18
  15. package/{appDeployStatusCommands-764PQNYN.js → appDeployStatusCommands-Z3YBCYU3.js} +18 -18
  16. package/{appGetCommands-BBCN3XJC.js → appGetCommands-MCY6JLD3.js} +18 -18
  17. package/{appListCommands-OGTABCS3.js → appListCommands-O6QDXYKT.js} +18 -18
  18. package/{authCommand-NHDLY3IB.js → authCommand-I6LVUQKM.js} +2 -2
  19. package/{authCommands-UDBJVSZU.js → authCommands-LWLOZETU.js} +2 -2
  20. package/{builtinSkillRegistry-MAR5LPAC.js → builtinSkillRegistry-GFY77VRN.js} +4 -4
  21. package/{chunk-UM4PH574.js → chunk-22RVE2PC.js} +1 -1
  22. package/{chunk-XFUBXRVI.js → chunk-2H6SEVDS.js} +1 -1
  23. package/{chunk-PCF3QU5Q.js → chunk-2K4TM6AW.js} +1 -1
  24. package/{chunk-5LTAPGPV.js → chunk-2K54PIZY.js} +2 -2
  25. package/{chunk-VEYL5MO5.js → chunk-4G4C5SXT.js} +3 -3
  26. package/{chunk-WCGC6S77.js → chunk-4HTMUQIZ.js} +2 -2
  27. package/{chunk-4FFUDT6D.js → chunk-56HJ2LAA.js} +17 -7
  28. package/{chunk-E73ON47R.js → chunk-5EPHWMP5.js} +2 -2
  29. package/{chunk-DNHENQ3T.js → chunk-5UQRASYE.js} +5 -5
  30. package/{chunk-7EPXUZOX.js → chunk-6UEJDFF7.js} +2 -2
  31. package/{chunk-5OA5HMTL.js → chunk-7JWCVINR.js} +1 -1
  32. package/{chunk-4YSOUKUR.js → chunk-7KWFIKKK.js} +1 -1
  33. package/{chunk-6O4IK4V2.js → chunk-CUF4MYKI.js} +1 -1
  34. package/{chunk-PTDYOADJ.js → chunk-D2GQE6AF.js} +1 -1
  35. package/{chunk-OYPMWCIQ.js → chunk-DLXHN5XZ.js} +9 -9
  36. package/{chunk-KLUBZL6X.js → chunk-ERFIIS4C.js} +1 -1
  37. package/{chunk-46Y5D2BZ.js → chunk-EV235ILT.js} +1 -1
  38. package/{chunk-HRYFI64G.js → chunk-F6DFZLO4.js} +3 -3
  39. package/{chunk-FJ5BGMNM.js → chunk-FBTNYNAL.js} +1 -1
  40. package/{chunk-EHER73LN.js → chunk-GCTKWVLU.js} +1 -1
  41. package/{chunk-U6IGAJT4.js → chunk-GJ647AYV.js} +7 -7
  42. package/{chunk-SEB5HAUU.js → chunk-HD3S2F7U.js} +1 -1
  43. package/{chunk-LKERWYPX.js → chunk-IRZTHHNM.js} +2 -2
  44. package/{chunk-V5OWQOJZ.js → chunk-K4URP6NQ.js} +1 -1
  45. package/{chunk-7TKWCTSY.js → chunk-KNVDNYH7.js} +2 -2
  46. package/{chunk-7MMSLEPA.js → chunk-LB5A6JTU.js} +3 -3
  47. package/{chunk-TVCAR26G.js → chunk-MSFZ7FMO.js} +1 -1
  48. package/{chunk-XIRXOUBV.js → chunk-NGO72MN2.js} +6 -6
  49. package/{chunk-CJN5OERD.js → chunk-NMMU6M4Z.js} +22 -22
  50. package/{chunk-UJXNKP5V.js → chunk-O7SVKKLY.js} +129 -14
  51. package/{chunk-SNMQMOD2.js → chunk-Q7O72MF5.js} +1 -1
  52. package/{chunk-GARACBQB.js → chunk-RILRSUGC.js} +1 -1
  53. package/{chunk-AOJB5QYD.js → chunk-S7HQBOEA.js} +10 -10
  54. package/{chunk-CHNCM7EF.js → chunk-TAPMD4SO.js} +7 -7
  55. package/{chunk-SEA64CDY.js → chunk-TSXNDTXL.js} +1 -1
  56. package/{chunk-GUYEMTRK.js → chunk-TTMNMJVI.js} +45 -32
  57. package/{chunk-W72ISAKC.js → chunk-UNAOTLKO.js} +1 -1
  58. package/{chunk-PH275YDS.js → chunk-V3R3UZ4F.js} +24 -17
  59. package/{chunk-N4QIAW6W.js → chunk-V6YASAZR.js} +1 -1
  60. package/{chunk-AUDNYVRC.js → chunk-VLGL7FOL.js} +1 -1
  61. package/{chunk-ODTDLPBV.js → chunk-VPNDYFUB.js} +3 -3
  62. package/{chunk-NTDEBTK5.js → chunk-XMUZHRSB.js} +6 -6
  63. package/{chunk-Z56IK6UT.js → chunk-XTM4WSXT.js} +8 -8
  64. package/{chunk-ADBZWMFB.js → chunk-YDO5ERB4.js} +1 -1
  65. package/{chunk-U7XXEI5R.js → chunk-YGCJITP3.js} +2 -2
  66. package/{chunk-YXZYNMYK.js → chunk-Z5X5MD6D.js} +2 -2
  67. package/{chunk-G53AA7RW.js → chunk-ZQZZJIQI.js} +63 -14
  68. package/{commandRegistry-TDXN5OP7.js → commandRegistry-X7FA6WJQ.js} +50 -50
  69. package/{contentThunks-F2BNWOZV.js → contentThunks-CH5Z3XAD.js} +15 -15
  70. package/{createAgentAutomationAction-5N2NRNR7.js → createAgentAutomationAction-4MV3MWVE.js} +15 -15
  71. package/{createDialogAction-DSEG4L5Y.js → createDialogAction-BYCJKWFY.js} +18 -18
  72. package/{createPageAction-K32FYQPE.js → createPageAction-XWDTQHFL.js} +16 -16
  73. package/{dbSlice-Q25STFGJ.js → dbSlice-QOLNF5GN.js} +5 -5
  74. package/{deleteFile-AJ2EZMHT.js → deleteFile-KESP65GC.js} +2 -2
  75. package/{dialogCommands-ODG2OKLO.js → dialogCommands-NNSKMYZR.js} +19 -19
  76. package/{dialogSlice-4GBOUTGL.js → dialogSlice-LUUVLJKZ.js} +14 -14
  77. package/{docCreateCommands-Q6FQUHUF.js → docCreateCommands-BKCYZTJW.js} +19 -19
  78. package/{docDeleteCommands-N224CFZL.js → docDeleteCommands-AJDU5BUV.js} +20 -20
  79. package/{docReadCommands-CJWAEAB4.js → docReadCommands-PPI2UAIW.js} +19 -19
  80. package/{docStore-ZTYSP3YE.js → docStore-RRAGFCNQ.js} +6 -6
  81. package/{docUpdateCommands-OPG6ZY4H.js → docUpdateCommands-62WIRKAN.js} +19 -19
  82. package/{fetchMessages-I5ICDDHM.js → fetchMessages-5L7OVM5Y.js} +2 -2
  83. package/{handleSendMessageAction-XFZH2TQS.js → handleSendMessageAction-CW5HSH4E.js} +14 -14
  84. package/index.js +3 -3
  85. package/{localDialogRead-ZHZ3KXDM.js → localDialogRead-O5A26FDK.js} +1 -1
  86. package/{machineCommands-KMU3D5I5.js → machineCommands-FG6HBFB7.js} +35 -35
  87. package/{machineWsRunDispatch-6GJ5YOSW.js → machineWsRunDispatch-7JCANNGT.js} +35 -35
  88. package/{memberThunks-R75S3RWP.js → memberThunks-25K6DDRA.js} +6 -6
  89. package/package.json +1 -1
  90. package/{read-SRQMNO26.js → read-PJIT2YEJ.js} +2 -2
  91. package/{readDocTool-RC3JUNJ2.js → readDocTool-DRSXHGNL.js} +1 -1
  92. package/{readlineWorkspace-EXCG3IFX.js → readlineWorkspace-HISW3JNJ.js} +40 -40
  93. package/{removeDialogAgentAction-46XQV5Q7.js → removeDialogAgentAction-VIWJL6MX.js} +6 -6
  94. package/{runAgentClientLoop-URRDZ5WG.js → runAgentClientLoop-4XIIPXH3.js} +30 -30
  95. package/{setDialogExtraReferencesAction-J4V5ADQF.js → setDialogExtraReferencesAction-A7VA3NFM.js} +6 -6
  96. package/{setPrimaryDialogAgentAction-UHHV2QZW.js → setPrimaryDialogAgentAction-B4P7YQX2.js} +6 -6
  97. package/{settingThunks-PPZZZOWN.js → settingThunks-KOYSAT65.js} +5 -5
  98. package/{spaceCommands-7CLUNI2I.js → spaceCommands-BBEY2U7J.js} +17 -17
  99. package/{streamAgentChatTurn-YPUYKXDX.js → streamAgentChatTurn-WRLQAWTW.js} +32 -32
  100. package/{switchDialogAgentAction-A2TMVGAE.js → switchDialogAgentAction-3VYWHZKH.js} +5 -5
  101. package/{tools-M5ENXZRJ.js → tools-NPSZ3DTN.js} +27 -27
  102. package/{tuiSummaryLlmCaller-Q65IBDGO.js → tuiSummaryLlmCaller-O3DZKOHE.js} +8 -8
  103. package/{updateDialogTitleAction-7PNUE23W.js → updateDialogTitleAction-DBW4OTMM.js} +15 -15
  104. /package/{chunk-3AH7LNUB.js → chunk-ODAPITXL.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-SEA64CDY.js";
4
+ } from "./chunk-TSXNDTXL.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-7EPXUZOX.js";
7
+ } from "./chunk-6UEJDFF7.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-U7XXEI5R.js";
10
+ } from "./chunk-YGCJITP3.js";
11
11
  import {
12
12
  PUBLIC_AGENT_KEY_PREFIX,
13
13
  ownedAgentKey,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-UAD2WT54.js";
8
8
  import {
9
9
  toTimestampMs
10
- } from "./chunk-4FFUDT6D.js";
10
+ } from "./chunk-56HJ2LAA.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-7EPXUZOX.js";
4
+ } from "./chunk-6UEJDFF7.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -7,7 +7,7 @@ import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-CJN5OERD.js";
10
+ } from "./chunk-NMMU6M4Z.js";
11
11
  import {
12
12
  formatISO
13
13
  } from "./chunk-ZRAU6T47.js";
@@ -25,7 +25,7 @@ import {
25
25
  addContentAction,
26
26
  checkSpaceMembership,
27
27
  localSpaceAuthorityPatchStamp
28
- } from "./chunk-E73ON47R.js";
28
+ } from "./chunk-5EPHWMP5.js";
29
29
  import {
30
30
  createSpaceKey,
31
31
  normalizeSpaceId
@@ -39,7 +39,7 @@ import {
39
39
  uploadFileAction,
40
40
  upsertSSREntity,
41
41
  write
42
- } from "./chunk-4FFUDT6D.js";
42
+ } from "./chunk-56HJ2LAA.js";
43
43
  import {
44
44
  DEVICE_LOCAL_OWNER_ID,
45
45
  getRuntimeServerContext,
@@ -47,7 +47,7 @@ import {
47
47
  resolveReplicationServers,
48
48
  scheduleDeleteReplication,
49
49
  scheduleWriteReplication
50
- } from "./chunk-UJXNKP5V.js";
50
+ } from "./chunk-O7SVKKLY.js";
51
51
  import {
52
52
  buildTombstoneRecord
53
53
  } from "./chunk-D2MDMY2M.js";
@@ -68,7 +68,7 @@ import {
68
68
  rowKey,
69
69
  splitKey,
70
70
  ulid
71
- } from "./chunk-3AH7LNUB.js";
71
+ } from "./chunk-ODAPITXL.js";
72
72
  import {
73
73
  asOptionalFiniteNumber
74
74
  } from "./chunk-WWC7I6TA.js";
@@ -1434,11 +1434,11 @@ var ENTITY_DELETE_STRATEGIES = {
1434
1434
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1435
1435
  },
1436
1436
  file: async (key, { thunkAPI }) => {
1437
- const { deleteFileAction } = await import("./deleteFile-AJ2EZMHT.js");
1437
+ const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
1438
1438
  await deleteFileAction(key, thunkAPI);
1439
1439
  },
1440
1440
  image: async (key, { thunkAPI }) => {
1441
- const { deleteFileAction } = await import("./deleteFile-AJ2EZMHT.js");
1441
+ const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
1442
1442
  await deleteFileAction(key, thunkAPI);
1443
1443
  },
1444
1444
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-LKERWYPX.js";
6
+ } from "./chunk-IRZTHHNM.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTimingMs
3
- } from "./chunk-7MMSLEPA.js";
3
+ } from "./chunk-LB5A6JTU.js";
4
4
  import {
5
5
  MODEL_LOOKUP_MAP
6
6
  } from "./chunk-3BXNTXYI.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-BNGW5ASC.js";
13
13
  import {
14
14
  asTrimmedNonEmptyStringArray
15
- } from "./chunk-3AH7LNUB.js";
15
+ } from "./chunk-ODAPITXL.js";
16
16
  import {
17
17
  asOptionalFiniteNumber
18
18
  } from "./chunk-WWC7I6TA.js";
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  isMeaningfulChatCompletionOutput,
34
34
  isMeaningfulResponsesOutput
35
- } from "./chunk-7MMSLEPA.js";
35
+ } from "./chunk-LB5A6JTU.js";
36
36
  import {
37
37
  clipCompactText
38
38
  } from "./chunk-5MMAK75Q.js";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-M7VLQGQP.js";
5
5
  import {
6
6
  AGENT_SELECTION_PRIORITY_INSTRUCTIONS
7
- } from "./chunk-4YSOUKUR.js";
7
+ } from "./chunk-7KWFIKKK.js";
8
8
  import {
9
9
  getModelContextWindow
10
- } from "./chunk-LKERWYPX.js";
10
+ } from "./chunk-IRZTHHNM.js";
11
11
  import {
12
12
  estimateTokenCount
13
13
  } from "./chunk-PSCNXBYA.js";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-PSCNXBYA.js";
4
4
  import {
5
5
  addContentAction
6
- } from "./chunk-E73ON47R.js";
6
+ } from "./chunk-5EPHWMP5.js";
7
7
  import {
8
8
  upload
9
- } from "./chunk-4FFUDT6D.js";
9
+ } from "./chunk-56HJ2LAA.js";
10
10
  import {
11
11
  getRuntimeServerContext
12
- } from "./chunk-UJXNKP5V.js";
12
+ } from "./chunk-O7SVKKLY.js";
13
13
  import {
14
14
  API_ENDPOINTS
15
15
  } from "./chunk-LCBAMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-4YSOUKUR.js";
4
+ } from "./chunk-7KWFIKKK.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-PH275YDS.js";
4
+ } from "./chunk-V3R3UZ4F.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-GUYEMTRK.js";
7
+ } from "./chunk-TTMNMJVI.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-G53AA7RW.js";
10
+ } from "./chunk-ZQZZJIQI.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-4YSOUKUR.js";
13
+ } from "./chunk-7KWFIKKK.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
- } from "./chunk-XFUBXRVI.js";
16
+ } from "./chunk-2H6SEVDS.js";
17
17
  import {
18
18
  asRecordOrEmpty
19
19
  } from "./chunk-KX6YBIHG.js";
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-KUG52IAP.js";
39
39
  import {
40
40
  asTrimmedNonEmptyStringArray
41
- } from "./chunk-3AH7LNUB.js";
41
+ } from "./chunk-ODAPITXL.js";
42
42
  import {
43
43
  asOptionalPositiveFiniteNumber
44
44
  } from "./chunk-U6VC4MU4.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  buildDialogAttachmentPlan,
6
6
  extractFileContentIds
7
- } from "./chunk-6O4IK4V2.js";
7
+ } from "./chunk-CUF4MYKI.js";
8
8
  import {
9
9
  BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
10
10
  BUILTIN_SUMMARY_LLM_CONFIG
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-AGGIDPCZ.js";
15
15
  import {
16
16
  runLlm
17
- } from "./chunk-CHNCM7EF.js";
17
+ } from "./chunk-TAPMD4SO.js";
18
18
  import {
19
19
  cleanupCliSessionForDialog
20
- } from "./chunk-PCF3QU5Q.js";
20
+ } from "./chunk-2K4TM6AW.js";
21
21
  import {
22
22
  getActiveDialogAgentId,
23
23
  getDialogAgentIds,
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-YDH3FDFQ.js";
49
49
  import {
50
50
  fetchMessages
51
- } from "./chunk-ADBZWMFB.js";
51
+ } from "./chunk-YDO5ERB4.js";
52
52
  import {
53
53
  nolotusId
54
54
  } from "./chunk-A4SQRTZ6.js";
@@ -64,7 +64,7 @@ import {
64
64
  getModelInfo,
65
65
  normalizeUsage,
66
66
  resolveAutoExecutionProfile
67
- } from "./chunk-LKERWYPX.js";
67
+ } from "./chunk-IRZTHHNM.js";
68
68
  import {
69
69
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
70
70
  buildCompactionMetricsFromPlan,
@@ -75,7 +75,7 @@ import {
75
75
  normalizeAssistantContentBuffer,
76
76
  planCompression,
77
77
  serializeMessageContent
78
- } from "./chunk-7MMSLEPA.js";
78
+ } from "./chunk-LB5A6JTU.js";
79
79
  import {
80
80
  asRecordOrEmpty
81
81
  } from "./chunk-KX6YBIHG.js";
@@ -85,7 +85,7 @@ import {
85
85
  remove,
86
86
  selectById,
87
87
  write
88
- } from "./chunk-4FFUDT6D.js";
88
+ } from "./chunk-56HJ2LAA.js";
89
89
  import {
90
90
  findModelConfig,
91
91
  getModelConfig
@@ -109,7 +109,7 @@ import {
109
109
  getRuntimeServerContext,
110
110
  parseOwnerUserIdFromDbKey,
111
111
  scheduleDeleteReplication
112
- } from "./chunk-UJXNKP5V.js";
112
+ } from "./chunk-O7SVKKLY.js";
113
113
  import {
114
114
  getRecordTimestamp,
115
115
  getTombstoneTimestamp,
@@ -140,7 +140,7 @@ import {
140
140
  isDialogRecordKey,
141
141
  isPageKey,
142
142
  isTableMetaKey
143
- } from "./chunk-3AH7LNUB.js";
143
+ } from "./chunk-ODAPITXL.js";
144
144
  import {
145
145
  asOptionalFiniteNumber
146
146
  } from "./chunk-WWC7I6TA.js";
@@ -10528,7 +10528,7 @@ var messageSlice = createSliceWithThunks({
10528
10528
  runtimeOptions: args.runtimeOptions
10529
10529
  });
10530
10530
  if (agentKeyToUse) {
10531
- const { streamAgentChatTurn } = await import("./agentSlice-WBSSBKBB.js");
10531
+ const { streamAgentChatTurn } = await import("./agentSlice-4JIT2XG4.js");
10532
10532
  await dispatch(
10533
10533
  streamAgentChatTurn({
10534
10534
  agentKey: agentKeyToUse,
@@ -13211,7 +13211,7 @@ var deleteOwnedDialogAttachments = async (args) => {
13211
13211
  metadataReadFailures
13212
13212
  });
13213
13213
  if (!plan.deleteCandidates.length) return plan;
13214
- const { deleteFileAction } = await import("./deleteFile-AJ2EZMHT.js");
13214
+ const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
13215
13215
  for (const candidate of plan.deleteCandidates) {
13216
13216
  if (candidate.fileDbKey) {
13217
13217
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -13273,7 +13273,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13273
13273
  }
13274
13274
  if (isCurrentDialog) {
13275
13275
  await thunkApi.dispatch(resetMsgs());
13276
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-4GBOUTGL.js");
13276
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LUUVLJKZ.js");
13277
13277
  dispatch(clearPendingAttachments2());
13278
13278
  }
13279
13279
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13281,39 +13281,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13281
13281
 
13282
13282
  // packages/chat/dialog/dialogSlice.ts
13283
13283
  var runCreateDialogAction = async (args, thunkApi) => {
13284
- const { createDialogAction } = await import("./createDialogAction-DSEG4L5Y.js");
13284
+ const { createDialogAction } = await import("./createDialogAction-BYCJKWFY.js");
13285
13285
  return createDialogAction(args, thunkApi);
13286
13286
  };
13287
13287
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13288
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-5N2NRNR7.js");
13288
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-4MV3MWVE.js");
13289
13289
  return createAgentAutomationAction(args, thunkApi);
13290
13290
  };
13291
13291
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13292
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-7PNUE23W.js");
13292
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-DBW4OTMM.js");
13293
13293
  return updateDialogTitleAction(args, thunkApi);
13294
13294
  };
13295
13295
  var runAddDialogAgentAction = async (args, thunkApi) => {
13296
- const { addDialogAgentAction } = await import("./addDialogAgentAction-IODCR6TB.js");
13296
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-O47J3MVW.js");
13297
13297
  return addDialogAgentAction(args, thunkApi);
13298
13298
  };
13299
13299
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
13300
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-46XQV5Q7.js");
13300
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-VIWJL6MX.js");
13301
13301
  return removeDialogAgentAction(args, thunkApi);
13302
13302
  };
13303
13303
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
13304
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-UHHV2QZW.js");
13304
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-B4P7YQX2.js");
13305
13305
  return setPrimaryDialogAgentAction(args, thunkApi);
13306
13306
  };
13307
13307
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
13308
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-A2TMVGAE.js");
13308
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-3VYWHZKH.js");
13309
13309
  return switchDialogAgentAction(args, thunkApi);
13310
13310
  };
13311
13311
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13312
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-J4V5ADQF.js");
13312
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-A7VA3NFM.js");
13313
13313
  return setDialogExtraReferencesAction(args, thunkApi);
13314
13314
  };
13315
13315
  var runHandleSendMessageAction = async (args, thunkApi) => {
13316
- const { handleSendMessageAction } = await import("./handleSendMessageAction-XFZH2TQS.js");
13316
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-CW5HSH4E.js");
13317
13317
  return handleSendMessageAction(args, thunkApi);
13318
13318
  };
13319
13319
  function clearDialogState() {
@@ -13326,7 +13326,7 @@ var createPageAndAddReference = createAsyncThunk(
13326
13326
  async (payload, { dispatch, getState, rejectWithValue }) => {
13327
13327
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13328
13328
  try {
13329
- const { createDocState } = await import("./docStore-ZTYSP3YE.js");
13329
+ const { createDocState } = await import("./docStore-RRAGFCNQ.js");
13330
13330
  const pageKey = await createDocState(
13331
13331
  { slateData, title },
13332
13332
  { dispatch, getState }
@@ -410,6 +410,80 @@ var resolveRecordOwnerUserId = (record) => {
410
410
  return fromKey;
411
411
  };
412
412
 
413
+ // packages/database/actions/writeAck.ts
414
+ var ACK_ENTRY_RETENTION_MS = 1e4;
415
+ var ACK_ENTRY_MAX = 256;
416
+ var replicationTargetKey = (server) => normalizeKnownServerOrigin(server) ?? normalizeServerOrigin(server);
417
+ var ackEntries = /* @__PURE__ */ new Map();
418
+ var sweepAckEntries = () => {
419
+ const wallClock = Date.now();
420
+ for (const [key, entry] of ackEntries) {
421
+ if (entry.settledAt !== null && wallClock - entry.settledAt > ACK_ENTRY_RETENTION_MS) {
422
+ ackEntries.delete(key);
423
+ }
424
+ }
425
+ while (ackEntries.size > ACK_ENTRY_MAX) {
426
+ const oldest = ackEntries.keys().next().value;
427
+ if (oldest === void 0) break;
428
+ ackEntries.delete(oldest);
429
+ }
430
+ };
431
+ var isReplicationAckHandle = (value) => {
432
+ if (!value || typeof value !== "object") return false;
433
+ const handle = value;
434
+ return typeof handle.primary?.then === "function" && handle.targets instanceof Map;
435
+ };
436
+ var asAckStatus = (ack) => ack.then(
437
+ (ok) => ok ? "acked" : "failed",
438
+ () => "failed"
439
+ );
440
+ var beginWriteAck = (dbKey) => {
441
+ let resolveOutcome = () => {
442
+ };
443
+ const promise = new Promise((resolve) => {
444
+ resolveOutcome = resolve;
445
+ });
446
+ const entry = {
447
+ promise,
448
+ settledAt: null,
449
+ servers: [],
450
+ primaryTargetKey: null,
451
+ planRegistered: false,
452
+ targetAcks: /* @__PURE__ */ new Map(),
453
+ settle: (status) => {
454
+ entry.settledAt = Date.now();
455
+ resolveOutcome(status);
456
+ }
457
+ };
458
+ ackEntries.set(dbKey, entry);
459
+ sweepAckEntries();
460
+ return {
461
+ settleWithReplication: (replication) => {
462
+ if (isReplicationAckHandle(replication)) {
463
+ entry.planRegistered = true;
464
+ entry.servers = [...replication.servers];
465
+ entry.primaryTargetKey = replicationTargetKey(replication.servers[0]);
466
+ for (const [key, ack] of replication.targets) {
467
+ entry.targetAcks.set(key, asAckStatus(ack));
468
+ }
469
+ void asAckStatus(replication.primary).then(
470
+ (status) => entry.settle(status)
471
+ );
472
+ return;
473
+ }
474
+ if (replication && typeof replication.then === "function") {
475
+ void asAckStatus(replication).then(
476
+ (status) => entry.settle(status)
477
+ );
478
+ return;
479
+ }
480
+ entry.settle("not-replicated");
481
+ },
482
+ markNotReplicated: () => entry.settle("not-replicated"),
483
+ markAborted: () => entry.settle("aborted")
484
+ };
485
+ };
486
+
413
487
  // packages/database/actions/replication.ts
414
488
  var isReadonlyPublicRecordKey = (dbKey) => dbKey.startsWith("agent-pub-");
415
489
  var normalizeCurrentUserId = (state) => {
@@ -447,26 +521,66 @@ var resolveAuthorityReplicationServers = ({
447
521
  });
448
522
  };
449
523
  var scheduleWriteReplication = (servers, request, state) => {
450
- if (servers.length === 0) return;
451
- Promise.resolve().then(async () => {
452
- const [primaryServer, ...backupServers] = servers;
453
- const primarySucceeded = await noloWriteRequest(primaryServer, request, state);
524
+ if (servers.length === 0) return null;
525
+ const [primaryServer, ...backupServers] = servers;
526
+ const targets = /* @__PURE__ */ new Map();
527
+ const settleTarget = /* @__PURE__ */ new Map();
528
+ for (const server of servers) {
529
+ const key = replicationTargetKey(server);
530
+ if (!key || targets.has(key)) continue;
531
+ targets.set(
532
+ key,
533
+ new Promise((resolve) => {
534
+ settleTarget.set(key, resolve);
535
+ })
536
+ );
537
+ }
538
+ const settleTargetFor = (server, ok) => {
539
+ const key = replicationTargetKey(server);
540
+ const resolve = settleTarget.get(key);
541
+ if (!resolve) return;
542
+ settleTarget.delete(key);
543
+ resolve(ok);
544
+ };
545
+ const primaryAck = Promise.resolve().then(async () => {
546
+ let primarySucceeded = false;
547
+ try {
548
+ primarySucceeded = await noloWriteRequest(primaryServer, request, state);
549
+ } finally {
550
+ settleTargetFor(primaryServer, primarySucceeded);
551
+ }
454
552
  if (!primarySucceeded) {
455
553
  console.warn(`Primary write sync failed for ${request.customKey} on ${primaryServer}`);
456
554
  }
457
555
  if (backupServers.length === 0) {
458
- return;
556
+ return primarySucceeded;
459
557
  }
460
- syncWithServers(
461
- backupServers,
462
- (server, requestConfig, requestState, signal) => noloWriteRequest(server, requestConfig, requestState, signal, {
463
- failureLogLevel: "info"
464
- }),
465
- `Backup write sync failed for ${request.customKey} on`,
466
- request,
467
- state
468
- );
558
+ try {
559
+ syncWithServers(
560
+ backupServers,
561
+ (server, requestConfig, requestState, signal) => noloWriteRequest(server, requestConfig, requestState, signal, {
562
+ failureLogLevel: "info"
563
+ }).then(
564
+ (ok) => {
565
+ settleTargetFor(server, ok);
566
+ return ok;
567
+ },
568
+ (error) => {
569
+ settleTargetFor(server, false);
570
+ throw error;
571
+ }
572
+ ),
573
+ `Backup write sync failed for ${request.customKey} on`,
574
+ request,
575
+ state
576
+ );
577
+ } catch (error) {
578
+ for (const server of backupServers) settleTargetFor(server, false);
579
+ throw error;
580
+ }
581
+ return primarySucceeded;
469
582
  });
583
+ return { servers: [...servers], primary: primaryAck, targets };
470
584
  };
471
585
  var resolveTenantReplicationServers = ({
472
586
  currentServer,
@@ -742,6 +856,7 @@ export {
742
856
  isDeviceLocalSpaceBody,
743
857
  resolveRecordOwnerUserId,
744
858
  resolveRecordAuthority,
859
+ beginWriteAck,
745
860
  partitionReadServers,
746
861
  compareRemoteRecordsByComparableTime,
747
862
  pickBestSettledRemoteRecord,
@@ -29,7 +29,7 @@ import {
29
29
  createMemoryOwnerIndexKey,
30
30
  createMemorySubjectKindIndexKey,
31
31
  memoryOwnerRange
32
- } from "./chunk-3AH7LNUB.js";
32
+ } from "./chunk-ODAPITXL.js";
33
33
  import {
34
34
  asTrimmedString
35
35
  } from "./chunk-3EUW3WEO.js";
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
206
206
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
207
207
  }
208
208
  try {
209
- const { readAction } = await import("./read-SRQMNO26.js");
209
+ const { readAction } = await import("./read-PJIT2YEJ.js");
210
210
  const pageData = await readAction({ dbKey: id }, thunkApi);
211
211
  if (!pageData) {
212
212
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -28,7 +28,7 @@ import {
28
28
  t,
29
29
  toolLabel,
30
30
  toolLabelVariants
31
- } from "./chunk-PH275YDS.js";
31
+ } from "./chunk-V3R3UZ4F.js";
32
32
  import {
33
33
  clearCredentialAvailability,
34
34
  readCredentialEntry,
@@ -54,7 +54,7 @@ import {
54
54
  import {
55
55
  readDbRecord,
56
56
  resolveAgentRecordFromHybridStore
57
- } from "./chunk-7EPXUZOX.js";
57
+ } from "./chunk-6UEJDFF7.js";
58
58
  import {
59
59
  isLocalCliAgentKey
60
60
  } from "./chunk-SV5IJK6K.js";
@@ -83,7 +83,7 @@ import {
83
83
  chooseMemoryOwners,
84
84
  loadMemoryCandidatesFromDb,
85
85
  resolveAgentMemoryPolicy
86
- } from "./chunk-DNHENQ3T.js";
86
+ } from "./chunk-5UQRASYE.js";
87
87
  import {
88
88
  createRunActivityTracker,
89
89
  popSingleQueueMessage,
@@ -113,7 +113,7 @@ import {
113
113
  import {
114
114
  API_REPORTED_COST_MULTIPLIER,
115
115
  parseUiAskChoiceContent
116
- } from "./chunk-CJN5OERD.js";
116
+ } from "./chunk-NMMU6M4Z.js";
117
117
  import {
118
118
  isOAuthApiKeyRef
119
119
  } from "./chunk-YYLHWIW6.js";
@@ -123,15 +123,15 @@ import {
123
123
  import {
124
124
  parseExternalSkillMarkdown,
125
125
  parseSkillDocProtocol
126
- } from "./chunk-AUDNYVRC.js";
126
+ } from "./chunk-VLGL7FOL.js";
127
127
  import {
128
128
  LOCAL_AGENT_CONFIG_MISSING_CODE,
129
129
  LOCAL_TURN_ABORTED_CODE,
130
130
  readActionGate
131
- } from "./chunk-G53AA7RW.js";
131
+ } from "./chunk-ZQZZJIQI.js";
132
132
  import {
133
133
  resolveAgentRuntimeConfigFromRecord
134
- } from "./chunk-SEB5HAUU.js";
134
+ } from "./chunk-HD3S2F7U.js";
135
135
  import {
136
136
  createThinkParserState,
137
137
  flushThinkParser,
@@ -149,7 +149,7 @@ import {
149
149
  DEFAULT_CONTEXT_WINDOW,
150
150
  getModelContextWindow,
151
151
  normalizeUsage
152
- } from "./chunk-LKERWYPX.js";
152
+ } from "./chunk-IRZTHHNM.js";
153
153
  import {
154
154
  clipCompactText
155
155
  } from "./chunk-5MMAK75Q.js";
@@ -205,7 +205,7 @@ import {
205
205
  import {
206
206
  createMemoryKey,
207
207
  ulid
208
- } from "./chunk-3AH7LNUB.js";
208
+ } from "./chunk-ODAPITXL.js";
209
209
  import {
210
210
  asTrimmedString
211
211
  } from "./chunk-3EUW3WEO.js";
@@ -10722,7 +10722,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
10722
10722
  // packages/cli/client/agentRun.ts
10723
10723
  import { ulid as ulid2 } from "ulid";
10724
10724
  async function loadRunLocalAgentTurn() {
10725
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-SXYAKX3A.js");
10725
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-7VIX3R3R.js");
10726
10726
  return runLocalAgentTurn;
10727
10727
  }
10728
10728
  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();