nolo-cli 0.252.0-alpha.1 → 0.252.0-alpha.3

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 (124) hide show
  1. package/{_executeModel-D6G3B45S.js → _executeModel-RXHY2BDR.js} +31 -31
  2. package/{action-QQOQ2LP3.js → action-4MADDU52.js} +5 -5
  3. package/{addContentAction-MB22YIDV.js → addContentAction-F4XO3VRF.js} +8 -8
  4. package/{addDialogAgentAction-KNTBVVGY.js → addDialogAgentAction-NSCVHTZJ.js} +7 -7
  5. package/{agentDeleteCommand-YCWDGJSF.js → agentDeleteCommand-OKR6IDGK.js} +40 -40
  6. package/{agentEmailCommands-DTWD5FWC.js → agentEmailCommands-UKPURCCI.js} +39 -39
  7. package/{agentListCommands-JTOONLYL.js → agentListCommands-CTY7WAMN.js} +11 -11
  8. package/{agentMachineCommands-25X7OTLQ.js → agentMachineCommands-WTCQHXHZ.js} +10 -10
  9. package/{agentPullCommand-6OCNLVGC.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  10. package/{agentRecordCommands-SXE3WV2X.js → agentRecordCommands-IM2WIFKB.js} +39 -39
  11. package/{agentRunCommand-QSIED54S.js → agentRunCommand-7MCCRUJY.js} +39 -39
  12. package/{agentRuntimeLocal-HVJJMB4W.js → agentRuntimeLocal-EOW6FFXL.js} +6 -6
  13. package/{agentSlice-NBUJJVRI.js → agentSlice-PVFGBJXB.js} +8 -8
  14. package/{appDeleteCommands-YU6TT6VN.js → appDeleteCommands-3VCRRWUX.js} +10 -10
  15. package/{appDeployCommands-4DEIX7YP.js → appDeployCommands-XN6IEMYK.js} +10 -10
  16. package/{appDeployStatusCommands-3VKS6GBQ.js → appDeployStatusCommands-ZSJJXMVR.js} +10 -10
  17. package/{appGetCommands-22FNNROT.js → appGetCommands-DJ7YQCEE.js} +10 -10
  18. package/{appListCommands-FVGMLHVU.js → appListCommands-4KU5CV5H.js} +10 -10
  19. package/{authCommand-5DC3ES4Q.js → authCommand-HBO5G6RL.js} +3 -3
  20. package/{authCommands-BLXNAUF4.js → authCommands-T5FODCEG.js} +2 -2
  21. package/{builtinSkillRegistry-PFTTFPWW.js → builtinSkillRegistry-PQWEXSFW.js} +1 -1
  22. package/{chunk-JF5QT3YY.js → chunk-25GCVHBZ.js} +1 -1
  23. package/{chunk-ZNOXY73P.js → chunk-26KL6533.js} +26 -20
  24. package/{chunk-GO7UC5VH.js → chunk-2HF6DINU.js} +6 -6
  25. package/{chunk-T4VVQHSE.js → chunk-3LL5HRIJ.js} +1 -1
  26. package/{chunk-GVH2IP2M.js → chunk-4KBKOG2L.js} +3 -3
  27. package/{chunk-5QEOTC35.js → chunk-6AJIU6OC.js} +1 -1
  28. package/{chunk-2LANL4B5.js → chunk-BLBGVSLB.js} +2 -2
  29. package/{chunk-U7BP25PE.js → chunk-BTQU2PRC.js} +2 -2
  30. package/{chunk-YQYYYATY.js → chunk-BVCCRSGK.js} +6 -6
  31. package/{chunk-2GAUJDA5.js → chunk-CGSIW2KI.js} +1 -1
  32. package/{chunk-HMREADP6.js → chunk-CSTCYYCR.js} +11 -11
  33. package/{chunk-FZI2P64R.js → chunk-EPBEZKYK.js} +2 -2
  34. package/{chunk-QMKWSKWA.js → chunk-EQJK6LSN.js} +2 -2
  35. package/{chunk-5IN2NBDX.js → chunk-FJPVVLP3.js} +4 -4
  36. package/{chunk-CO2NXG2J.js → chunk-GJ4UTSAW.js} +7 -7
  37. package/{chunk-WAOHK3NJ.js → chunk-GUFTHWDO.js} +10 -10
  38. package/{chunk-EFM2IPZR.js → chunk-HQUGB2HM.js} +1 -1
  39. package/{chunk-NMXGIRSG.js → chunk-HSBHS6KT.js} +1 -1
  40. package/{chunk-TDI7ARZO.js → chunk-IQXMWBI6.js} +2 -2
  41. package/{chunk-7RYODZDD.js → chunk-J55F3IEZ.js} +1 -1
  42. package/{chunk-LUPZLKXL.js → chunk-JLZJL3WC.js} +31 -3
  43. package/{chunk-6HL6E7ZD.js → chunk-JX2IG37T.js} +1 -1
  44. package/{chunk-TDLZA6LJ.js → chunk-K7RWY7JH.js} +9 -9
  45. package/{chunk-TTWNTFTO.js → chunk-KHYSFS3W.js} +47 -6
  46. package/{chunk-P6HMEKLL.js → chunk-KO6JNZCF.js} +4 -4
  47. package/{chunk-SMCKJJXI.js → chunk-KQBGXCKM.js} +3 -3
  48. package/{chunk-NPUHKEOB.js → chunk-MDWHMQON.js} +3 -3
  49. package/{chunk-ITCOQAHS.js → chunk-MOAVLCCM.js} +4 -4
  50. package/{chunk-O6LPLIRS.js → chunk-N2MDL5AZ.js} +9 -9
  51. package/{chunk-UI3Z3HDK.js → chunk-N7UXTVAR.js} +2 -2
  52. package/{chunk-3N3JPQBQ.js → chunk-NWZRCUHM.js} +25 -25
  53. package/{chunk-HZD5HXUO.js → chunk-OQFOE4SJ.js} +1 -1
  54. package/{chunk-LAQC5FAP.js → chunk-OQOXDQLB.js} +2 -2
  55. package/{chunk-4HAOOY6G.js → chunk-OTNPEE4G.js} +1 -1
  56. package/{chunk-TTUIM3PJ.js → chunk-OTOPQXP5.js} +1 -1
  57. package/{chunk-VH7AQEEF.js → chunk-OWXOXKH7.js} +2 -2
  58. package/{chunk-XBCADGK2.js → chunk-Q5M27DUE.js} +1 -1
  59. package/{chunk-DU3DJYVA.js → chunk-RE32BIKY.js} +3 -3
  60. package/{chunk-ZMFA2TLE.js → chunk-REINTCQF.js} +8 -2
  61. package/{chunk-GWS2X7TX.js → chunk-RGWYRTSY.js} +16 -16
  62. package/{chunk-JAYPSNGR.js → chunk-SBBSUBY3.js} +1 -1
  63. package/{chunk-NNUIVAC2.js → chunk-SCY2O7CU.js} +2 -2
  64. package/{chunk-7ZOVFB2H.js → chunk-SE7UURHT.js} +12 -12
  65. package/{chunk-A6VIMCWI.js → chunk-U3ZK2MXG.js} +3 -3
  66. package/{chunk-2PB653F5.js → chunk-UDQZ5JT7.js} +9 -9
  67. package/{chunk-A5F6DYP2.js → chunk-UGHNYYOE.js} +2 -2
  68. package/{chunk-LNIA5JVX.js → chunk-V644LXPC.js} +4 -4
  69. package/{chunk-JKALGWDL.js → chunk-VZWYP7LD.js} +2 -2
  70. package/{chunk-YB5D2GK4.js → chunk-W4S5FQWQ.js} +1 -1
  71. package/{chunk-SMZFWEMX.js → chunk-WJOC3AEM.js} +2 -2
  72. package/{chunk-ITMBFT35.js → chunk-YWLMUFZ5.js} +1 -1
  73. package/{chunk-F6Q64KRV.js → chunk-Z47UZT27.js} +1 -1
  74. package/{chunk-75TXQ4GY.js → chunk-ZMWDHPNG.js} +15 -29
  75. package/{chunk-SSZHE2RK.js → chunk-ZYPXOQS2.js} +1 -1
  76. package/{cliAuthorityBrokerProcess-IUCB4XA6.js → cliAuthorityBrokerProcess-5ZFBTHLB.js} +1 -1
  77. package/{cliLocalAgentRecordReader-DWU3LBO2.js → cliLocalAgentRecordReader-OHAC4JTY.js} +7 -7
  78. package/{commandRegistry-7FVATZS2.js → commandRegistry-YSV6ZWPO.js} +66 -66
  79. package/{contentThunks-25XCB7VY.js → contentThunks-GSMUNWBA.js} +14 -14
  80. package/{createAgentAutomationAction-FC5RI2LW.js → createAgentAutomationAction-RMADR4LG.js} +14 -14
  81. package/{createDialogAction-IL3ISSQQ.js → createDialogAction-CM5CBQVH.js} +15 -15
  82. package/{createPageAction-RVYBEYZV.js → createPageAction-JMGVMCTH.js} +15 -15
  83. package/{db-JMGVD4TB.js → db-VR74ADGC.js} +4 -1
  84. package/{dbSlice-WG3ZG6PZ.js → dbSlice-Q637QR4L.js} +7 -7
  85. package/{deleteFile-4TIG54YN.js → deleteFile-TP6MKFUX.js} +10 -5
  86. package/{dialogCommands-VUJISJZF.js → dialogCommands-IZSD4CQM.js} +12 -12
  87. package/{dialogSlice-UMP55UAW.js → dialogSlice-ARQKXXTD.js} +12 -12
  88. package/{dialogUsageCommand-IHAXS7DW.js → dialogUsageCommand-3JMINURR.js} +1 -1
  89. package/{docCreateCommands-S46F6GKP.js → docCreateCommands-ZJFHCZV4.js} +9 -9
  90. package/{docDeleteCommands-LJG4NK6J.js → docDeleteCommands-LY5MF2BI.js} +10 -10
  91. package/{docReadCommands-YPAYGHNM.js → docReadCommands-4X2DHCNZ.js} +9 -9
  92. package/{docStore-VK3MVJ5Q.js → docStore-QWRVKIRI.js} +8 -8
  93. package/{docUpdateCommands-MPTM6267.js → docUpdateCommands-5TIT7DAJ.js} +9 -9
  94. package/{handleSendMessageAction-VPKVNKBU.js → handleSendMessageAction-TVR55KVT.js} +25 -25
  95. package/{hostCredentialCreate-K56HWPNY.js → hostCredentialCreate-T33O7WLA.js} +39 -39
  96. package/index.js +5 -5
  97. package/{localDialogRead-NXILOV3T.js → localDialogRead-BJJT3TF5.js} +1 -1
  98. package/{localRuntimeAdapter-KVU72FWT.js → localRuntimeAdapter-CNFP7ZEP.js} +37 -37
  99. package/{localRuntimeAuthority-QKWTPBQQ.js → localRuntimeAuthority-UF2DAQ3F.js} +2 -2
  100. package/{localRuntimeDb-3CIC4SKC.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  101. package/{machineCommands-C3O5RKNJ.js → machineCommands-TGA5EH2G.js} +38 -38
  102. package/{machineWsRunDispatch-ZLART7ZA.js → machineWsRunDispatch-LMJPGTTZ.js} +38 -38
  103. package/{mcpLocalAuthorizeCommand-LO7E4VQ5.js → mcpLocalAuthorizeCommand-Y3SOZFXT.js} +3 -3
  104. package/{memberThunks-7DNR6DRD.js → memberThunks-IGYRMEQC.js} +9 -9
  105. package/package.json +1 -1
  106. package/{projectArchive-UBJFYRL7.js → projectArchive-Q46BYZQ6.js} +15 -15
  107. package/{read-Z2JOK6F6.js → read-MPPXZHAO.js} +10 -5
  108. package/{readDocTool-3QYSVWBT.js → readDocTool-PKZ35PCR.js} +1 -1
  109. package/{readlineWorkspace-TSIYF7C6.js → readlineWorkspace-HA6DWK4N.js} +47 -47
  110. package/{removeDialogAgentAction-LRKDU4RI.js → removeDialogAgentAction-H6S7VLNA.js} +9 -9
  111. package/{runAgentClientLoop-YAHGOWXN.js → runAgentClientLoop-WZJ4HXOH.js} +29 -29
  112. package/{runtimeDoctorCommands-QGZSKNSE.js → runtimeDoctorCommands-V3M3JTUV.js} +2 -2
  113. package/{setDialogExtraReferencesAction-KIITOCFP.js → setDialogExtraReferencesAction-CARUTAWS.js} +8 -8
  114. package/{setPrimaryDialogAgentAction-Y36PKFFB.js → setPrimaryDialogAgentAction-VRV56MLG.js} +9 -9
  115. package/{settingThunks-YQNG5L6K.js → settingThunks-4FC4HXGN.js} +7 -7
  116. package/{spaceCommands-P644AAZZ.js → spaceCommands-27Z5JAU3.js} +9 -9
  117. package/{streamAgentChatTurn-5CSYAUAY.js → streamAgentChatTurn-JKMBFM2O.js} +33 -33
  118. package/{switchDialogAgentAction-U2VLPPVO.js → switchDialogAgentAction-O236K6HB.js} +7 -7
  119. package/{tableCommands-44GC4N6J.js → tableCommands-C3P2HHKK.js} +2 -2
  120. package/{tools-UZ3CDIR2.js → tools-4RFLNHUW.js} +25 -25
  121. package/{updateDialogTitleAction-53XCCDK2.js → updateDialogTitleAction-F3ONQM3N.js} +14 -14
  122. package/{usageCommand-XVJ7ZUTM.js → usageCommand-HVCMX7BG.js} +2 -2
  123. package/{usageRebuildCommand-NK6S3D4J.js → usageRebuildCommand-VMPIZ2ME.js} +2 -2
  124. package/{chunk-YHNUDTU4.js → chunk-VYRTLHIT.js} +3 -3
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-FZI2P64R.js";
8
+ } from "./chunk-EPBEZKYK.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,11 +14,11 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-P6HMEKLL.js";
17
+ } from "./chunk-KO6JNZCF.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-3N3JPQBQ.js";
21
+ } from "./chunk-NWZRCUHM.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,7 +27,7 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-WAOHK3NJ.js";
30
+ } from "./chunk-GUFTHWDO.js";
31
31
  import {
32
32
  addToolMessage,
33
33
  messageStreamEnd,
@@ -35,19 +35,19 @@ import {
35
35
  toast,
36
36
  toolResultNeedsUserConfirmation,
37
37
  updateToolMessage
38
- } from "./chunk-ZNOXY73P.js";
38
+ } from "./chunk-26KL6533.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-YQYYYATY.js";
41
+ } from "./chunk-BVCCRSGK.js";
42
42
  import {
43
43
  getCurrentSpaceId
44
- } from "./chunk-JAYPSNGR.js";
44
+ } from "./chunk-SBBSUBY3.js";
45
45
  import {
46
46
  selectCurrentServer
47
- } from "./chunk-NNUIVAC2.js";
47
+ } from "./chunk-SCY2O7CU.js";
48
48
  import {
49
49
  write
50
- } from "./chunk-CO2NXG2J.js";
50
+ } from "./chunk-GJ4UTSAW.js";
51
51
  import {
52
52
  addActiveController,
53
53
  getActiveDialogKey,
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-RD3QLZQV.js";
60
60
  import {
61
61
  createAsyncThunk
62
- } from "./chunk-YB5D2GK4.js";
62
+ } from "./chunk-W4S5FQWQ.js";
63
63
  import {
64
64
  selectIdentityToken
65
65
  } from "./chunk-PXYBUFDB.js";
@@ -93,7 +93,7 @@ import {
93
93
  isCompleteInstructionOutput,
94
94
  sanitizeToolOutputText,
95
95
  scrubSecrets
96
- } from "./chunk-6HL6E7ZD.js";
96
+ } from "./chunk-JX2IG37T.js";
97
97
  import {
98
98
  EMPTY_ASSISTANT_REPAIR_PROMPT
99
99
  } from "./chunk-CIAV4WK2.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-3N3JPQBQ.js";
3
+ } from "./chunk-NWZRCUHM.js";
4
4
  import {
5
5
  INLINE_IMAGE_MAX_BYTES,
6
6
  INLINE_IMAGE_TOTAL_MAX_BYTES,
7
7
  runtime_default
8
- } from "./chunk-ZNOXY73P.js";
8
+ } from "./chunk-26KL6533.js";
9
9
  import {
10
10
  canonicalizeToolNames
11
11
  } from "./chunk-YLAHYLDQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveDefaultReasoningEffort
3
- } from "./chunk-2GAUJDA5.js";
3
+ } from "./chunk-CGSIW2KI.js";
4
4
  import {
5
5
  buildLocalAgentLookupKeys,
6
6
  shouldReadAgentKeyRemotely
@@ -14,7 +14,7 @@ import {
14
14
  formatInvalidAgentSkillModeMessage,
15
15
  formatInvalidAgentSkillModesFieldMessage,
16
16
  isAgentSkillModesFieldShapeValid
17
- } from "./chunk-6HL6E7ZD.js";
17
+ } from "./chunk-JX2IG37T.js";
18
18
  import {
19
19
  buildAgentApiKeyCredentialRef,
20
20
  migrateAgentSecrets
@@ -14,16 +14,16 @@ import {
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-TDLZA6LJ.js";
17
+ } from "./chunk-K7RWY7JH.js";
18
18
  import {
19
19
  runtime_default
20
- } from "./chunk-ZNOXY73P.js";
20
+ } from "./chunk-26KL6533.js";
21
21
  import {
22
22
  getCurrentSpaceId
23
- } from "./chunk-JAYPSNGR.js";
23
+ } from "./chunk-SBBSUBY3.js";
24
24
  import {
25
25
  write
26
- } from "./chunk-CO2NXG2J.js";
26
+ } from "./chunk-GJ4UTSAW.js";
27
27
  import {
28
28
  selectIdentityUserId
29
29
  } from "./chunk-PXYBUFDB.js";
@@ -6,12 +6,12 @@ import {
6
6
  loadFileFromIndexedDb,
7
7
  removeAction,
8
8
  saveFileToIndexedDb
9
- } from "./chunk-UI3Z3HDK.js";
9
+ } from "./chunk-N7UXTVAR.js";
10
10
  import {
11
11
  readAction,
12
12
  readRequestManager,
13
13
  resolveAgentReadServers
14
- } from "./chunk-U7BP25PE.js";
14
+ } from "./chunk-BTQU2PRC.js";
15
15
  import {
16
16
  beginWriteAck,
17
17
  compareRemoteRecordsByComparableTime,
@@ -29,13 +29,13 @@ import {
29
29
  shouldReplaceLocalWithRemoteRecord,
30
30
  shouldReplicateLocalRecord,
31
31
  uploadToCurrentServer
32
- } from "./chunk-ZMFA2TLE.js";
32
+ } from "./chunk-REINTCQF.js";
33
33
  import {
34
34
  asyncThunkCreator,
35
35
  buildCreateSlice,
36
36
  createEntityAdapter,
37
37
  noloDeleteRequest
38
- } from "./chunk-YB5D2GK4.js";
38
+ } from "./chunk-W4S5FQWQ.js";
39
39
  import {
40
40
  fetchFromClientDb,
41
41
  fetchFromServer,
@@ -44,7 +44,7 @@ import {
44
44
  logger,
45
45
  normalizeTimeFields,
46
46
  scopeGoogleSessionServers
47
- } from "./chunk-YHNUDTU4.js";
47
+ } from "./chunk-VYRTLHIT.js";
48
48
  import {
49
49
  isTombstoneRecord
50
50
  } from "./chunk-BV3FLP2L.js";
@@ -1516,7 +1516,7 @@ var dbSlice = createSliceWithThunks({
1516
1516
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
1517
1517
  read: create.asyncThunk(
1518
1518
  async (payload, thunkApi) => {
1519
- const { readAction: readAction2 } = await import("./read-Z2JOK6F6.js");
1519
+ const { readAction: readAction2 } = await import("./read-MPPXZHAO.js");
1520
1520
  return readAction2(payload, thunkApi);
1521
1521
  },
1522
1522
  {
@@ -1590,7 +1590,7 @@ var dbSlice = createSliceWithThunks({
1590
1590
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
1591
1591
  share: create.asyncThunk(
1592
1592
  async (config, thunkApi) => {
1593
- const { shareResourceAction } = await import("./action-QQOQ2LP3.js");
1593
+ const { shareResourceAction } = await import("./action-4MADDU52.js");
1594
1594
  return shareResourceAction(config, thunkApi);
1595
1595
  }
1596
1596
  ),
@@ -3,38 +3,38 @@ import {
3
3
  } from "./chunk-VF4K2QE6.js";
4
4
  import {
5
5
  setDialogExtraReferencesAction
6
- } from "./chunk-T4VVQHSE.js";
6
+ } from "./chunk-3LL5HRIJ.js";
7
7
  import {
8
8
  fetchAndCacheTableRows
9
- } from "./chunk-TDLZA6LJ.js";
9
+ } from "./chunk-K7RWY7JH.js";
10
10
  import {
11
11
  resolveDialogRuntimeAgentKey
12
- } from "./chunk-ZNOXY73P.js";
12
+ } from "./chunk-26KL6533.js";
13
13
  import {
14
14
  createSpaceKey
15
15
  } from "./chunk-UAD2WT54.js";
16
16
  import {
17
17
  selectById
18
- } from "./chunk-CO2NXG2J.js";
18
+ } from "./chunk-GJ4UTSAW.js";
19
19
  import {
20
20
  require_react
21
21
  } from "./chunk-RD3QLZQV.js";
22
22
  import {
23
23
  selectRuntimeSnapshot
24
- } from "./chunk-ZMFA2TLE.js";
24
+ } from "./chunk-REINTCQF.js";
25
25
  import {
26
26
  createAsyncThunk
27
- } from "./chunk-YB5D2GK4.js";
27
+ } from "./chunk-W4S5FQWQ.js";
28
28
  import {
29
29
  selectIdentityUserId
30
30
  } from "./chunk-PXYBUFDB.js";
31
31
  import {
32
32
  isAgentSkillDisabled
33
- } from "./chunk-6HL6E7ZD.js";
33
+ } from "./chunk-JX2IG37T.js";
34
34
  import {
35
35
  listBuiltinSkills,
36
36
  resolveBuiltinSkillByName
37
- } from "./chunk-75TXQ4GY.js";
37
+ } from "./chunk-ZMWDHPNG.js";
38
38
  import {
39
39
  parseSkillDocProtocol
40
40
  } from "./chunk-AETZ7AD6.js";
@@ -791,7 +791,7 @@ var executeToolRun = createAsyncThunk(
791
791
  if (!executionInput) {
792
792
  throw new Error(`ToolRun ${id} has no input to execute with.`);
793
793
  }
794
- const { findToolExecutor } = await import("./tools-UZ3CDIR2.js");
794
+ const { findToolExecutor } = await import("./tools-4RFLNHUW.js");
795
795
  const { executor } = findToolExecutor(run.toolName);
796
796
  toolRunStarted({
797
797
  id: run.id,
@@ -815,7 +815,7 @@ var executeToolRun = createAsyncThunk(
815
815
  const latestState = thunkApi.getState();
816
816
  const userId = selectIdentityUserId(latestState);
817
817
  if (userId) {
818
- const { fetchUserSpaceMemberships } = await import("./memberThunks-7DNR6DRD.js");
818
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-IGYRMEQC.js");
819
819
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
820
820
  }
821
821
  }
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-S73EPYNC.js";
11
11
  import {
12
12
  getDefaultCliLocalRuntimeDb
13
- } from "./chunk-7RYODZDD.js";
13
+ } from "./chunk-J55F3IEZ.js";
14
14
  import {
15
15
  gBase64,
16
16
  isExternalSessionKind
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCliLocalMcpConnectionRevisionWriter,
3
3
  getDefaultCliLocalRuntimeAuthority
4
- } from "./chunk-HZD5HXUO.js";
4
+ } from "./chunk-OQFOE4SJ.js";
5
5
  import {
6
6
  createStrictHostCredentialBroker
7
7
  } from "./chunk-LHCGKAFO.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-GO7UC5VH.js";
4
+ } from "./chunk-2HF6DINU.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-ZNOXY73P.js";
7
+ } from "./chunk-26KL6533.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-U35UUM5K.js";
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-QKWTPBQQ.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-UF2DAQ3F.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -780,6 +780,12 @@ function getOrCreateCliAuthorityBrokerServer(options) {
780
780
  }
781
781
 
782
782
  // packages/cli/cliAuthorityBrokerProcess.ts
783
+ var testOwnedBroker = () => process.env.NOLO_TEST_AUTHORITY_BROKER_LIFETIME === "1";
784
+ function stopOnParentExit(stop) {
785
+ process.stdin.once("end", stop);
786
+ process.stdin.once("error", stop);
787
+ process.stdin.resume();
788
+ }
783
789
  function describeFailure(error, depth = 0) {
784
790
  if (!(error instanceof Error)) return { message: String(error) };
785
791
  const { message, code, ownerPid, cause } = error;
@@ -799,6 +805,7 @@ async function launchBroker(options, detached) {
799
805
  if (!dbPath || !metadataPath || !healthPath) throw new Error("Missing authority broker paths");
800
806
  const entrypoint = isCompiledBinary() ? [] : [resolveCliEntrypointPath(import.meta.url)];
801
807
  const { PATH, HOME, USERPROFILE, LOCALAPPDATA, SystemRoot, TMPDIR, TEMP, TMP } = process.env;
808
+ const testOwned = testOwnedBroker();
802
809
  const child = spawn(getHostRuntimeExecutable(), [
803
810
  ...entrypoint,
804
811
  detached ? "__authority-broker-supervise" : "__authority-broker",
@@ -810,8 +817,22 @@ async function launchBroker(options, detached) {
810
817
  ], {
811
818
  detached,
812
819
  windowsHide: true,
813
- stdio: ["ignore", "pipe", "ignore"],
814
- env: { PATH, HOME, USERPROFILE, LOCALAPPDATA, SystemRoot, TMPDIR, TEMP, TMP, NOLO_HOME: dirname(dirname(resolve(dbPath))) }
820
+ // Only tests hold a lifetime pipe. Production deliberately outlives its launcher.
821
+ stdio: [testOwned ? "pipe" : "ignore", "pipe", "ignore"],
822
+ env: {
823
+ PATH,
824
+ HOME,
825
+ USERPROFILE,
826
+ LOCALAPPDATA,
827
+ SystemRoot,
828
+ TMPDIR,
829
+ TEMP,
830
+ TMP,
831
+ NOLO_HOME: dirname(dirname(resolve(dbPath))),
832
+ ...testOwned ? { NOLO_TEST_AUTHORITY_BROKER_LIFETIME: "1" } : {}
833
+ }
834
+ });
835
+ child.stdin?.on("error", () => {
815
836
  });
816
837
  const output = child.stdout;
817
838
  try {
@@ -847,6 +868,7 @@ async function launchBroker(options, detached) {
847
868
  });
848
869
  return child;
849
870
  } catch (error) {
871
+ child.stdin?.end();
850
872
  child.unref();
851
873
  throw error;
852
874
  } finally {
@@ -861,6 +883,7 @@ async function superviseCliAuthorityBrokerProcess(args) {
861
883
  const requestStop = () => stop.abort();
862
884
  process.once("SIGTERM", requestStop);
863
885
  process.once("SIGINT", requestStop);
886
+ if (testOwnedBroker()) stopOnParentExit(requestStop);
864
887
  process.stdout.on("error", () => {
865
888
  });
866
889
  let ready = false;
@@ -894,9 +917,11 @@ async function superviseCliAuthorityBrokerProcess(args) {
894
917
  logger.warn("Authority broker storage probe failed", error, { endpoint, workerPid: child.pid, failures });
895
918
  }
896
919
  }
920
+ invoke.close?.();
897
921
  if (child.exitCode === null && child.signalCode === null) {
898
922
  if (!stop.signal.aborted) logger.warn("Restarting unresponsive authority broker worker", { endpoint, workerPid: child.pid });
899
- child.kill("SIGTERM");
923
+ if (child.stdin) child.stdin.end();
924
+ else child.kill("SIGTERM");
900
925
  const killed = await Promise.race([exited.then(() => true), delay(5e3, false, { ref: false })]);
901
926
  if (!killed) {
902
927
  child.kill("SIGKILL");
@@ -914,6 +939,7 @@ async function superviseCliAuthorityBrokerProcess(args) {
914
939
  } finally {
915
940
  process.off("SIGTERM", requestStop);
916
941
  process.off("SIGINT", requestStop);
942
+ if (testOwnedBroker()) process.stdin.destroy();
917
943
  }
918
944
  }
919
945
  async function runCliAuthorityBrokerProcess(args) {
@@ -938,6 +964,7 @@ async function runCliAuthorityBrokerProcess(args) {
938
964
  createStore: () => createLevelAuthorityStore(dbPath)
939
965
  });
940
966
  const close = () => {
967
+ if (testOwnedBroker()) process.stdin.destroy();
941
968
  void broker.close().catch((error) => {
942
969
  getLogger("cli.authorityBroker").error("Authority broker worker shutdown failed", error);
943
970
  process.exit(1);
@@ -945,6 +972,7 @@ async function runCliAuthorityBrokerProcess(args) {
945
972
  };
946
973
  process.once("SIGTERM", close);
947
974
  process.once("SIGINT", close);
975
+ if (testOwnedBroker()) stopOnParentExit(close);
948
976
  process.stdout.write('{"ok":true}\n');
949
977
  } catch (error) {
950
978
  process.exitCode = 1;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveBuiltinCapability,
3
3
  resolveBuiltinSkillEntry
4
- } from "./chunk-75TXQ4GY.js";
4
+ } from "./chunk-ZMWDHPNG.js";
5
5
  import {
6
6
  asTrimmedNonEmptyStringArray
7
7
  } from "./chunk-I42VC5KR.js";
@@ -2,13 +2,13 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-ZNOXY73P.js";
5
+ } from "./chunk-26KL6533.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,
9
9
  getCurrentSpaceIdRaw,
10
10
  updateCurrentSpaceIfMatch
11
- } from "./chunk-JAYPSNGR.js";
11
+ } from "./chunk-SBBSUBY3.js";
12
12
  import {
13
13
  require_formatISO
14
14
  } from "./chunk-UVLYNWIE.js";
@@ -23,7 +23,7 @@ import {
23
23
  patchIndividualContentRecord,
24
24
  readContentRecordForSpaceSync,
25
25
  syncContentRecordSpaceId
26
- } from "./chunk-JKALGWDL.js";
26
+ } from "./chunk-VZWYP7LD.js";
27
27
  import {
28
28
  createSpaceKey,
29
29
  normalizeSpaceId
@@ -36,7 +36,7 @@ import {
36
36
  uploadFileAction,
37
37
  upsertSSREntity,
38
38
  write
39
- } from "./chunk-CO2NXG2J.js";
39
+ } from "./chunk-GJ4UTSAW.js";
40
40
  import {
41
41
  resolveFileCategory
42
42
  } from "./chunk-3PVYUPXK.js";
@@ -50,13 +50,13 @@ import {
50
50
  resolveReplicationServers,
51
51
  scheduleDeleteReplication,
52
52
  scheduleWriteReplication
53
- } from "./chunk-ZMFA2TLE.js";
53
+ } from "./chunk-REINTCQF.js";
54
54
  import {
55
55
  createAsyncThunk
56
- } from "./chunk-YB5D2GK4.js";
56
+ } from "./chunk-W4S5FQWQ.js";
57
57
  import {
58
58
  getIsDesktopApp
59
- } from "./chunk-YHNUDTU4.js";
59
+ } from "./chunk-VYRTLHIT.js";
60
60
  import {
61
61
  createClientLogger
62
62
  } from "./chunk-QQ56R7KS.js";
@@ -1513,11 +1513,11 @@ var ENTITY_DELETE_STRATEGIES = {
1513
1513
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1514
1514
  },
1515
1515
  file: async (key, { thunkAPI }) => {
1516
- const { deleteFileAction } = await import("./deleteFile-4TIG54YN.js");
1516
+ const { deleteFileAction } = await import("./deleteFile-TP6MKFUX.js");
1517
1517
  await deleteFileAction(key, thunkAPI);
1518
1518
  },
1519
1519
  image: async (key, { thunkAPI }) => {
1520
- const { deleteFileAction } = await import("./deleteFile-4TIG54YN.js");
1520
+ const { deleteFileAction } = await import("./deleteFile-TP6MKFUX.js");
1521
1521
  await deleteFileAction(key, thunkAPI);
1522
1522
  },
1523
1523
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -11,6 +11,9 @@ import {
11
11
  import {
12
12
  Mutex
13
13
  } from "./chunk-IVK2KT3H.js";
14
+ import {
15
+ isDialogRecordKey
16
+ } from "./chunk-OJKUU3LP.js";
14
17
  import {
15
18
  asTrimmedLowercaseString
16
19
  } from "./chunk-QSJ3HFEF.js";
@@ -58,9 +61,41 @@ var SERVER_DB_ROLE_VIOLATION_MESSAGE = "\u5F53\u524D\u8FDB\u7A0B\u89D2\u8272\u4E
58
61
  import fs from "fs";
59
62
  import path from "path";
60
63
 
64
+ // packages/database-engine/activeDialogRunIndex.ts
65
+ var ACTIVE_DIALOG_RUN_PREFIX = "active-dialog-run-";
66
+ var DEPLOYMENT_DIALOG_RUN_PREFIX = "deployment-dialog-run-";
67
+ var DEPLOYMENT_DIALOG_CANCEL_MESSAGE = "Cancelled by deployment (will auto-recover)";
68
+ function dialogRunIndexPrefix(value) {
69
+ if (!value || typeof value !== "object") return;
70
+ const { status, errorMessage } = value;
71
+ if (status === "pending" || status === "running") return ACTIVE_DIALOG_RUN_PREFIX;
72
+ if (status === "cancelled" && errorMessage === DEPLOYMENT_DIALOG_CANCEL_MESSAGE) {
73
+ return DEPLOYMENT_DIALOG_RUN_PREFIX;
74
+ }
75
+ }
76
+ function dialogRunIndexOps(op) {
77
+ if (!isDialogRecordKey(op.key)) return [];
78
+ const member = op.type === "put" ? dialogRunIndexPrefix(op.value) : void 0;
79
+ return [ACTIVE_DIALOG_RUN_PREFIX, DEPLOYMENT_DIALOG_RUN_PREFIX].map((prefix) => {
80
+ const key = prefix + op.key;
81
+ return member === prefix ? { type: "put", key, value: true } : { type: "del", key };
82
+ });
83
+ }
84
+
61
85
  // packages/database-engine/publicationBatch.ts
62
86
  function withPublicationBatch(store) {
63
87
  const lock = new Mutex();
88
+ const batchWrite = (ops) => store.batchWrite(ops.flatMap((op) => [op, ...dialogRunIndexOps(op)]));
89
+ const put = (key, value) => {
90
+ const op = { type: "put", key, value };
91
+ const indexOps = dialogRunIndexOps(op);
92
+ return indexOps.length ? store.batchWrite([op, ...indexOps]) : store.put(key, value);
93
+ };
94
+ const del = (key) => {
95
+ const op = { type: "del", key };
96
+ const indexOps = dialogRunIndexOps(op);
97
+ return indexOps.length ? store.batchWrite([op, ...indexOps]) : store.del(key);
98
+ };
64
99
  const wrapped = {
65
100
  get location() {
66
101
  return store.location;
@@ -72,18 +107,24 @@ function withPublicationBatch(store) {
72
107
  close: () => lock.runExclusive(() => store.close()),
73
108
  get: (key) => store.get(key),
74
109
  iterator: (options) => store.iterator(options),
75
- put: (key, value) => lock.runExclusive(() => store.put(key, value)),
76
- del: (key) => lock.runExclusive(() => store.del(key)),
77
- batchWrite: (ops) => lock.runExclusive(() => store.batchWrite(ops)),
110
+ put: (key, value) => lock.runExclusive(() => put(key, value)),
111
+ del: (key) => lock.runExclusive(() => del(key)),
112
+ batchWrite: (ops) => lock.runExclusive(() => batchWrite(ops)),
78
113
  createBatch: () => {
79
114
  const batch = store.createBatch();
115
+ const stage = (op) => {
116
+ for (const entry of [op, ...dialogRunIndexOps(op)]) {
117
+ if (entry.type === "put") batch.put(entry.key, entry.value);
118
+ else batch.del(entry.key);
119
+ }
120
+ };
80
121
  return {
81
- put: (key, value) => batch.put(key, value),
82
- del: (key) => batch.del(key),
122
+ put: (key, value) => stage({ type: "put", key, value }),
123
+ del: (key) => stage({ type: "del", key }),
83
124
  write: () => lock.runExclusive(() => batch.write())
84
125
  };
85
126
  },
86
- runPublicationBatch: (task) => lock.runExclusive(() => task(store))
127
+ runPublicationBatch: (task) => lock.runExclusive(() => task({ get: wrapped.get, batchWrite }))
87
128
  };
88
129
  return wrapped;
89
130
  }
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-KZ4A7EIV.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-GO7UC5VH.js";
6
+ } from "./chunk-2HF6DINU.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-YQYYYATY.js";
9
+ } from "./chunk-BVCCRSGK.js";
10
10
  import {
11
11
  buildIdentityBlock,
12
12
  buildPlatformStaticContextLayers,
@@ -15,7 +15,7 @@ import {
15
15
  compileContextLayers,
16
16
  detectDispatchIntentFromMessages,
17
17
  resolveToolGuidedSections
18
- } from "./chunk-4HAOOY6G.js";
18
+ } from "./chunk-OTNPEE4G.js";
19
19
  import {
20
20
  convertMessagesToResponsesInput,
21
21
  getUsageRequestOptions,
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-2SXN7LAY.js";
46
46
  import {
47
47
  buildSkillGuidancePromptBlock
48
- } from "./chunk-75TXQ4GY.js";
48
+ } from "./chunk-ZMWDHPNG.js";
49
49
  import {
50
50
  canonicalizeToolNames
51
51
  } from "./chunk-YLAHYLDQ.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-NNUIVAC2.js";
4
+ } from "./chunk-SCY2O7CU.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
- } from "./chunk-YB5D2GK4.js";
8
+ } from "./chunk-W4S5FQWQ.js";
9
9
  import {
10
10
  normalizeTimeFields
11
- } from "./chunk-YHNUDTU4.js";
11
+ } from "./chunk-VYRTLHIT.js";
12
12
  import {
13
13
  selectIdentityUser,
14
14
  selectIdentityUserId
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-NNUIVAC2.js";
3
+ } from "./chunk-SCY2O7CU.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-CO2NXG2J.js";
6
+ } from "./chunk-GJ4UTSAW.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-YHNUDTU4.js";
9
+ } from "./chunk-VYRTLHIT.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-TDLZA6LJ.js";
3
+ } from "./chunk-K7RWY7JH.js";
4
4
  import {
5
5
  prepareAndPersistMessage
6
- } from "./chunk-ZNOXY73P.js";
6
+ } from "./chunk-26KL6533.js";
7
7
  import {
8
8
  require_format
9
9
  } from "./chunk-BUDVRYES.js";
@@ -16,10 +16,10 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-CO2NXG2J.js";
19
+ } from "./chunk-GJ4UTSAW.js";
20
20
  import {
21
21
  isDevelopment
22
- } from "./chunk-YHNUDTU4.js";
22
+ } from "./chunk-VYRTLHIT.js";
23
23
  import {
24
24
  selectIdentityUserId
25
25
  } from "./chunk-PXYBUFDB.js";