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

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 (165) hide show
  1. package/{_executeModel-55PHWQWB.js → _executeModel-D6G3B45S.js} +44 -44
  2. package/{action-WZTKEF5H.js → action-QQOQ2LP3.js} +3 -3
  3. package/{addContentAction-LBVAQUF7.js → addContentAction-MB22YIDV.js} +6 -6
  4. package/{addDialogAgentAction-6WAUSUSZ.js → addDialogAgentAction-KNTBVVGY.js} +5 -5
  5. package/{agentDeleteCommand-KEO3KDK3.js → agentDeleteCommand-YCWDGJSF.js} +66 -65
  6. package/{agentEmailCommands-RWJQQRNT.js → agentEmailCommands-DTWD5FWC.js} +66 -65
  7. package/{agentListCommands-L3TLPLNH.js → agentListCommands-JTOONLYL.js} +224 -37
  8. package/{agentMachineCommands-EZWWXWDH.js → agentMachineCommands-25X7OTLQ.js} +29 -27
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentRecordCommands-7W2CGHJJ.js → agentRecordCommands-SXE3WV2X.js} +65 -64
  11. package/{agentRunCommand-POL6B6BO.js → agentRunCommand-QSIED54S.js} +65 -64
  12. package/{agentRunControl-FKSXBUAF.js → agentRunControl-KNNDEEDI.js} +8 -6
  13. package/{agentRuntimeLocal-WSHWNIMF.js → agentRuntimeLocal-HVJJMB4W.js} +24 -23
  14. package/{agentSlice-3G2YLTA4.js → agentSlice-NBUJJVRI.js} +6 -6
  15. package/{appDeleteCommands-DZZQCVYH.js → appDeleteCommands-YU6TT6VN.js} +31 -29
  16. package/{appDeployCommands-NJJBVNH5.js → appDeployCommands-4DEIX7YP.js} +31 -29
  17. package/{appDeployStatusCommands-GBOAFEYG.js → appDeployStatusCommands-3VKS6GBQ.js} +31 -29
  18. package/{appGetCommands-GOOKYMKO.js → appGetCommands-22FNNROT.js} +31 -29
  19. package/{appListCommands-OBCGUG3S.js → appListCommands-FVGMLHVU.js} +31 -29
  20. package/{authCommand-77CRN332.js → authCommand-5DC3ES4Q.js} +12 -12
  21. package/{chromeOpsCommands-6RLEBBJJ.js → chromeOpsCommands-AA555ANS.js} +1 -1
  22. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  23. package/chunk-2GAUJDA5.js +594 -0
  24. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  25. package/{chunk-222CJNC2.js → chunk-2LANL4B5.js} +3 -3
  26. package/{chunk-PKMDYRAM.js → chunk-2PB653F5.js} +171 -237
  27. package/{chunk-GMWZRXRM.js → chunk-3272HU62.js} +1 -1
  28. package/{chunk-3ZWJVKFB.js → chunk-3N3JPQBQ.js} +82 -38
  29. package/{chunk-LXKK7QFI.js → chunk-4HAOOY6G.js} +53 -23
  30. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  31. package/{chunk-T4V6C3J3.js → chunk-52M4RYVP.js} +1 -1
  32. package/{chunk-6UNJ6JGR.js → chunk-5IN2NBDX.js} +4 -4
  33. package/{chunk-OQCAHPDQ.js → chunk-5QEOTC35.js} +4 -4
  34. package/{chunk-R7D5SRAZ.js → chunk-5UYDG6HP.js} +17 -0
  35. package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
  36. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  37. package/{chunk-UCMUXZJV.js → chunk-7XO73H5X.js} +111 -1
  38. package/{chunk-N3SEV3CG.js → chunk-7ZOVFB2H.js} +79 -30
  39. package/{chunk-UR4ZMRV3.js → chunk-A5F6DYP2.js} +1 -1
  40. package/{chunk-FAFDIQJG.js → chunk-A6VIMCWI.js} +3 -3
  41. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  42. package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
  43. package/{chunk-IFJ6OTI6.js → chunk-CO2NXG2J.js} +32 -10
  44. package/{chunk-D3E5MYXO.js → chunk-CYGFNMCH.js} +1 -1
  45. package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
  46. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  47. package/{chunk-PLS2MJVW.js → chunk-DU3DJYVA.js} +4 -4
  48. package/{chunk-MTS5DCL2.js → chunk-EG3JTV7H.js} +2 -2
  49. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  50. package/{chunk-CD64YXRB.js → chunk-F6Q64KRV.js} +1 -1
  51. package/{chunk-L5HV76QT.js → chunk-FRC2DNTN.js} +1 -1
  52. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  53. package/{chunk-D35TOEMM.js → chunk-FZI2P64R.js} +137 -53
  54. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  55. package/{chunk-CUYFRVJF.js → chunk-GO7UC5VH.js} +5 -5
  56. package/{chunk-KZVRPCOR.js → chunk-GVH2IP2M.js} +4 -4
  57. package/{chunk-KGOBJAWC.js → chunk-GWS2X7TX.js} +206 -93
  58. package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
  59. package/{chunk-Q5KZ6F55.js → chunk-HMREADP6.js} +19 -17
  60. package/{chunk-X337N4D6.js → chunk-ITCOQAHS.js} +3 -3
  61. package/{chunk-BQ4CZEVZ.js → chunk-ITMBFT35.js} +1 -1
  62. package/chunk-IVK2KT3H.js +209 -0
  63. package/{chunk-IXAGRTAR.js → chunk-JAYPSNGR.js} +1 -1
  64. package/{chunk-LOXR4TQN.js → chunk-JF5QT3YY.js} +2 -2
  65. package/{chunk-QLGL43SI.js → chunk-JKALGWDL.js} +2 -2
  66. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  67. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  68. package/{chunk-3KWJPTVP.js → chunk-LAQC5FAP.js} +4 -4
  69. package/{chunk-NTNX77FI.js → chunk-LNIA5JVX.js} +6 -6
  70. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  71. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  72. package/{chunk-ZSRR6HCH.js → chunk-N2ZAY2DK.js} +1 -1
  73. package/{chunk-MTM4LRVG.js → chunk-NNUIVAC2.js} +1 -1
  74. package/{chunk-HD5EKSLF.js → chunk-NPUHKEOB.js} +2 -2
  75. package/{chunk-OARYOLF3.js → chunk-O6LPLIRS.js} +11 -11
  76. package/{chunk-HQLCYPL4.js → chunk-OB4FBZXJ.js} +4 -4
  77. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  78. package/{chunk-IZWGO2ZS.js → chunk-OMIXG25B.js} +1 -1
  79. package/{chunk-CJ2BP6V7.js → chunk-OOV5JN25.js} +2 -2
  80. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  81. package/{chunk-K5CIMK3R.js → chunk-P6HMEKLL.js} +114 -56
  82. package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
  83. package/{chunk-WZPG63Q4.js → chunk-PIVTQRX6.js} +43 -13
  84. package/{chunk-KJDN2YRH.js → chunk-QMKWSKWA.js} +4 -4
  85. package/{chunk-XC5RPSXK.js → chunk-QV32GSVO.js} +2 -2
  86. package/{chunk-XJSEST7D.js → chunk-SMCKJJXI.js} +2 -2
  87. package/{chunk-KRAPKTAS.js → chunk-SMZFWEMX.js} +1 -1
  88. package/{chunk-43VT5PLM.js → chunk-T4VVQHSE.js} +1 -1
  89. package/{chunk-W2N4OAKM.js → chunk-TDI7ARZO.js} +3 -3
  90. package/{chunk-TGKAUEV3.js → chunk-TDLZA6LJ.js} +13 -10
  91. package/{chunk-LMMRWGGJ.js → chunk-TTUIM3PJ.js} +2 -2
  92. package/{chunk-5IKKSJYX.js → chunk-TTWNTFTO.js} +35 -2
  93. package/{chunk-ZM5AZTQG.js → chunk-U7BP25PE.js} +18 -6
  94. package/{chunk-X3OZ655T.js → chunk-UI3Z3HDK.js} +1 -1
  95. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  96. package/{chunk-U2OWDHDE.js → chunk-VH7AQEEF.js} +2 -2
  97. package/{chunk-ZKKJZBNO.js → chunk-WAOHK3NJ.js} +9 -9
  98. package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
  99. package/{chunk-JUYI2D7J.js → chunk-WNIBQBOR.js} +1 -1
  100. package/{chunk-SLUZ6FBJ.js → chunk-XBCADGK2.js} +1 -1
  101. package/{chunk-6XVPMGXK.js → chunk-YB5D2GK4.js} +9 -3
  102. package/{chunk-QJ5YDTEF.js → chunk-YQYYYATY.js} +42 -24
  103. package/{chunk-WQDTSK5U.js → chunk-ZMFA2TLE.js} +1 -1
  104. package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
  105. package/{chunk-A55E2OCP.js → chunk-ZNOXY73P.js} +632 -124
  106. package/{cliAgentConfigHelpers-N6LTB7UY.js → cliAgentConfigHelpers-FKBPFPKR.js} +6 -6
  107. package/{cliLocalAgentRecordReader-NFNGYOOW.js → cliLocalAgentRecordReader-DWU3LBO2.js} +28 -27
  108. package/{commandRegistry-OM5DU4DS.js → commandRegistry-7FVATZS2.js} +70 -70
  109. package/{contentThunks-7URM43ET.js → contentThunks-25XCB7VY.js} +18 -18
  110. package/{cooldownCommands-JEEV75B7.js → cooldownCommands-PT5L4LNB.js} +3 -3
  111. package/{createAgentAutomationAction-GGEXIKMC.js → createAgentAutomationAction-FC5RI2LW.js} +18 -18
  112. package/{createDialogAction-IXXEMFRQ.js → createDialogAction-IL3ISSQQ.js} +19 -19
  113. package/{createPageAction-IXIVLIOO.js → createPageAction-RVYBEYZV.js} +19 -19
  114. package/{db-J5KE7XRI.js → db-JMGVD4TB.js} +2 -1
  115. package/{dbSlice-IE4ADINL.js → dbSlice-WG3ZG6PZ.js} +5 -5
  116. package/{deleteFile-ZCQESEEQ.js → deleteFile-4TIG54YN.js} +3 -3
  117. package/{dialogCommands-RPBHOZB6.js → dialogCommands-VUJISJZF.js} +33 -31
  118. package/{dialogNotifyCommand-ECKI5MMA.js → dialogNotifyCommand-JKYVSR6K.js} +7 -7
  119. package/{dialogSlice-5FQB2TNN.js → dialogSlice-UMP55UAW.js} +16 -16
  120. package/{docCreateCommands-XJ2X57DW.js → docCreateCommands-S46F6GKP.js} +30 -28
  121. package/{docDeleteCommands-45WGFFEB.js → docDeleteCommands-LJG4NK6J.js} +31 -29
  122. package/{docReadCommands-LRRVDS46.js → docReadCommands-YPAYGHNM.js} +30 -28
  123. package/{docStore-SUAVM24F.js → docStore-VK3MVJ5Q.js} +6 -6
  124. package/{docUpdateCommands-QUYX6BVR.js → docUpdateCommands-MPTM6267.js} +30 -28
  125. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  126. package/{handleSendMessageAction-FDIWBQUB.js → handleSendMessageAction-VPKVNKBU.js} +33 -33
  127. package/{hostCredentialCreate-CEXQHYT4.js → hostCredentialCreate-K56HWPNY.js} +65 -64
  128. package/index.js +8 -8
  129. package/{localDialogRead-USDZXKIL.js → localDialogRead-NXILOV3T.js} +1 -1
  130. package/{localRuntimeAdapter-O3JBRK6S.js → localRuntimeAdapter-KVU72FWT.js} +64 -63
  131. package/{machineCommands-I3YA7TNC.js → machineCommands-C3O5RKNJ.js} +65 -64
  132. package/{machineWsRunDispatch-E5CIE2OJ.js → machineWsRunDispatch-ZLART7ZA.js} +65 -64
  133. package/{mcpLocalAuthorizeCommand-K5J2VMG6.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +6 -6
  134. package/{memberThunks-T7EAZE6A.js → memberThunks-7DNR6DRD.js} +7 -7
  135. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  136. package/package.json +1 -1
  137. package/{projectArchive-A7E65AZO.js → projectArchive-UBJFYRL7.js} +19 -19
  138. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  139. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  140. package/{read-BRZHXUJ6.js → read-Z2JOK6F6.js} +3 -3
  141. package/{readDocTool-N7RVFQEE.js → readDocTool-3QYSVWBT.js} +1 -1
  142. package/{readlineWorkspace-2O65NBFG.js → readlineWorkspace-TSIYF7C6.js} +610 -206
  143. package/{removeDialogAgentAction-GRT72HLK.js → removeDialogAgentAction-LRKDU4RI.js} +7 -7
  144. package/{runAgentClientLoop-NWCZIXCG.js → runAgentClientLoop-YAHGOWXN.js} +41 -41
  145. package/{runtimeDoctorCommands-26HYHFTK.js → runtimeDoctorCommands-QGZSKNSE.js} +5 -5
  146. package/{secretCommands-XR72SHLK.js → secretCommands-BXAQEOES.js} +2 -2
  147. package/{setDialogExtraReferencesAction-CBG3X46B.js → setDialogExtraReferencesAction-KIITOCFP.js} +6 -6
  148. package/{setPrimaryDialogAgentAction-EWTDZOAX.js → setPrimaryDialogAgentAction-Y36PKFFB.js} +7 -7
  149. package/{settingThunks-X4PT66J2.js → settingThunks-YQNG5L6K.js} +5 -5
  150. package/{spaceCommands-EVSNTGRS.js → spaceCommands-P644AAZZ.js} +29 -27
  151. package/{streamAgentChatTurn-SYP3OEM5.js → streamAgentChatTurn-5CSYAUAY.js} +54 -50
  152. package/{switchDialogAgentAction-YHPZ7K6E.js → switchDialogAgentAction-U2VLPPVO.js} +5 -5
  153. package/{tools-2AO2SK4L.js → tools-UZ3CDIR2.js} +34 -34
  154. package/{tuiRestart-HBQDF4AE.js → tuiRestart-GF4DGAAN.js} +7 -7
  155. package/{tuiSummaryLlmCaller-Q2PNR63K.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
  156. package/{updateCommands-6SI7NWVC.js → updateCommands-BZ4YDHNM.js} +3 -3
  157. package/{updateDialogTitleAction-MWVMBIPZ.js → updateDialogTitleAction-53XCCDK2.js} +18 -18
  158. package/{usageCommand-D44AOTMH.js → usageCommand-XVJ7ZUTM.js} +1 -1
  159. package/{usageRebuildCommand-IRIMKDI5.js → usageRebuildCommand-NK6S3D4J.js} +2 -2
  160. package/{windowsSelfUpdate-BJIJKKIS.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
  161. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
  162. package/chunk-FGHEF6WI.js +0 -34
  163. package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
  164. package/{chunk-CDIRKCPD.js → chunk-6HL6E7ZD.js} +152 -152
  165. package/{dialogUsageCommand-TBIA2QAF.js → dialogUsageCommand-IHAXS7DW.js} +3 -3
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveDefaultReasoningEffort
3
- } from "./chunk-FGHEF6WI.js";
3
+ } from "./chunk-2GAUJDA5.js";
4
4
  import {
5
5
  buildLocalAgentLookupKeys,
6
6
  shouldReadAgentKeyRemotely
7
- } from "./chunk-Z7A2ZQ5X.js";
7
+ } from "./chunk-64ACTEAE.js";
8
8
  import {
9
9
  createHostCredentialBrokerChain,
10
10
  createStrictHostCredentialBroker
@@ -14,7 +14,7 @@ import {
14
14
  formatInvalidAgentSkillModeMessage,
15
15
  formatInvalidAgentSkillModesFieldMessage,
16
16
  isAgentSkillModesFieldShapeValid
17
- } from "./chunk-CDIRKCPD.js";
17
+ } from "./chunk-6HL6E7ZD.js";
18
18
  import {
19
19
  buildAgentApiKeyCredentialRef,
20
20
  migrateAgentSecrets
@@ -766,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
766
766
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
767
767
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
768
768
  if (args.parsed.presetId) {
769
- const { resolveProviderPresetFields } = await import("./providerPresetApply-4H7YP5D7.js");
769
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-NTJUINI6.js");
770
770
  const fields = resolveProviderPresetFields(args.parsed.presetId);
771
771
  if (fields.kind === "manual") {
772
772
  throw new Error(
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-R5GO3YZP.js";
8
8
  import {
9
9
  getCliLocale
10
- } from "./chunk-R7D5SRAZ.js";
10
+ } from "./chunk-5UYDG6HP.js";
11
11
  import {
12
12
  ANTIGRAVITY_AUTH_URL,
13
13
  ANTIGRAVITY_CALLBACK_PATH,
@@ -21,7 +21,7 @@ import {
21
21
  getAntigravityUserAgent,
22
22
  normalizeAntigravityTokenPayload,
23
23
  refreshAntigravityToken
24
- } from "./chunk-CTWCZKNS.js";
24
+ } from "./chunk-6SOWMEAY.js";
25
25
  import {
26
26
  toErrorMessage
27
27
  } from "./chunk-HNMXYYJR.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-MTM4LRVG.js";
4
+ } from "./chunk-NNUIVAC2.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
- } from "./chunk-6XVPMGXK.js";
8
+ } from "./chunk-YB5D2GK4.js";
9
9
  import {
10
10
  normalizeTimeFields
11
11
  } from "./chunk-YHNUDTU4.js";
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-IXAGRTAR.js";
5
+ } from "./chunk-JAYPSNGR.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  patch,
6
6
  selectById
7
- } from "./chunk-IFJ6OTI6.js";
7
+ } from "./chunk-CO2NXG2J.js";
8
8
  import {
9
9
  getActiveDialogKey
10
10
  } from "./chunk-U35UUM5K.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-CUYFRVJF.js";
4
+ } from "./chunk-GO7UC5VH.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-A55E2OCP.js";
7
+ } from "./chunk-ZNOXY73P.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-U35UUM5K.js";
@@ -12,7 +12,7 @@ import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,
14
14
  extractToolCallsFromResponseOutput
15
- } from "./chunk-W3HSD32M.js";
15
+ } from "./chunk-FXEPZKNJ.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -2,13 +2,13 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-A55E2OCP.js";
5
+ } from "./chunk-ZNOXY73P.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,
9
9
  getCurrentSpaceIdRaw,
10
10
  updateCurrentSpaceIfMatch
11
- } from "./chunk-IXAGRTAR.js";
11
+ } from "./chunk-JAYPSNGR.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-QLGL43SI.js";
26
+ } from "./chunk-JKALGWDL.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-IFJ6OTI6.js";
39
+ } from "./chunk-CO2NXG2J.js";
40
40
  import {
41
41
  resolveFileCategory
42
42
  } from "./chunk-3PVYUPXK.js";
@@ -50,10 +50,10 @@ import {
50
50
  resolveReplicationServers,
51
51
  scheduleDeleteReplication,
52
52
  scheduleWriteReplication
53
- } from "./chunk-WQDTSK5U.js";
53
+ } from "./chunk-ZMFA2TLE.js";
54
54
  import {
55
55
  createAsyncThunk
56
- } from "./chunk-6XVPMGXK.js";
56
+ } from "./chunk-YB5D2GK4.js";
57
57
  import {
58
58
  getIsDesktopApp
59
59
  } from "./chunk-YHNUDTU4.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-ZCQESEEQ.js");
1516
+ const { deleteFileAction } = await import("./deleteFile-4TIG54YN.js");
1517
1517
  await deleteFileAction(key, thunkAPI);
1518
1518
  },
1519
1519
  image: async (key, { thunkAPI }) => {
1520
- const { deleteFileAction } = await import("./deleteFile-ZCQESEEQ.js");
1520
+ const { deleteFileAction } = await import("./deleteFile-4TIG54YN.js");
1521
1521
  await deleteFileAction(key, thunkAPI);
1522
1522
  },
1523
1523
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -2439,7 +2439,11 @@ var uploadOnce = async (payload, thunkAPI, userId) => {
2439
2439
  fileName: file.name
2440
2440
  });
2441
2441
  const fileMetadata = await uploadFileAction(
2442
- { file, customKey: dbKey, userId },
2442
+ // 这是「上传为 Space 资产」,不是「把个人文件收录进 Space」:
2443
+ // 明确声明 Space 归属,服务端校验成员身份后落库
2444
+ // `ownerType:"space"` + `ownerId:<spaceId>`,其他成员据此可读原件。
2445
+ // 声明只是请求,服务端(uploadOwnership.ts)才是归属权威。
2446
+ { file, customKey: dbKey, userId, ownerType: "space", spaceId },
2443
2447
  thunkAPI
2444
2448
  );
2445
2449
  if (!fileMetadata) {
@@ -2476,7 +2480,6 @@ var uploadOnce = async (payload, thunkAPI, userId) => {
2476
2480
  title,
2477
2481
  spaceId,
2478
2482
  fileCategory,
2479
- mimeType: file.type || void 0,
2480
2483
  fileSize,
2481
2484
  originalName: file.name
2482
2485
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveAgentImageInputSupport
3
- } from "./chunk-SX6AWTNK.js";
3
+ } from "./chunk-BZLGPM5B.js";
4
4
  import {
5
5
  TOOL_HAD_IMAGES,
6
6
  hadToolImages
@@ -9,7 +9,7 @@ import {
9
9
  isCompleteInstructionOutput,
10
10
  sanitizeToolOutputText,
11
11
  scrubSecrets
12
- } from "./chunk-CDIRKCPD.js";
12
+ } from "./chunk-6HL6E7ZD.js";
13
13
  import {
14
14
  asTrimmedString
15
15
  } from "./chunk-3EUW3WEO.js";
@@ -8,6 +8,9 @@ import {
8
8
  Level,
9
9
  createLevelAuthorityStore
10
10
  } from "./chunk-R3MV2GII.js";
11
+ import {
12
+ Mutex
13
+ } from "./chunk-IVK2KT3H.js";
11
14
  import {
12
15
  asTrimmedLowercaseString
13
16
  } from "./chunk-QSJ3HFEF.js";
@@ -55,6 +58,36 @@ var SERVER_DB_ROLE_VIOLATION_MESSAGE = "\u5F53\u524D\u8FDB\u7A0B\u89D2\u8272\u4E
55
58
  import fs from "fs";
56
59
  import path from "path";
57
60
 
61
+ // packages/database-engine/publicationBatch.ts
62
+ function withPublicationBatch(store) {
63
+ const lock = new Mutex();
64
+ const wrapped = {
65
+ get location() {
66
+ return store.location;
67
+ },
68
+ get status() {
69
+ return store.status;
70
+ },
71
+ open: () => store.open(),
72
+ close: () => lock.runExclusive(() => store.close()),
73
+ get: (key) => store.get(key),
74
+ 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)),
78
+ createBatch: () => {
79
+ const batch = store.createBatch();
80
+ return {
81
+ put: (key, value) => batch.put(key, value),
82
+ del: (key) => batch.del(key),
83
+ write: () => lock.runExclusive(() => batch.write())
84
+ };
85
+ },
86
+ runPublicationBatch: (task) => lock.runExclusive(() => task(store))
87
+ };
88
+ return wrapped;
89
+ }
90
+
58
91
  // packages/database-engine/memoryAuthorityStore.ts
59
92
  var createNotFoundError = () => {
60
93
  const error = new Error("NotFound");
@@ -396,10 +429,10 @@ function getOrCreateServerStoreRuntime(dbPath, options = {}) {
396
429
  );
397
430
  }
398
431
  if (!globalScope.__serverAuthorityStore) {
399
- globalScope.__serverAuthorityStore = createAuthorityStoreForDriver(
432
+ globalScope.__serverAuthorityStore = withPublicationBatch(createAuthorityStoreForDriver(
400
433
  driver,
401
434
  dbPath
402
- );
435
+ ));
403
436
  globalScope.__serverAuthorityStoreDriver = driver;
404
437
  } else if (!cachedDriver) {
405
438
  globalScope.__serverAuthorityStoreDriver = driver;
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-WQDTSK5U.js";
10
+ } from "./chunk-ZMFA2TLE.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
@@ -192,6 +192,8 @@ var saveRemoteDataToClientDb = async (clientDb, dbKey, remoteData, serverOrigin)
192
192
  } catch (err) {
193
193
  }
194
194
  };
195
+ var REJECTED_RECORD = Symbol("rejected read record");
196
+ var hasRejectedRecord = (results) => results.some((result) => result.status === "fulfilled" && result.value === REJECTED_RECORD);
195
197
  var processRemoteDataInBackground = async (clientDb, dbKey, remotePromises, remoteServers, localData, replicationContext) => {
196
198
  if (!clientDb) return;
197
199
  try {
@@ -214,7 +216,7 @@ var processRemoteDataInBackground = async (clientDb, dbKey, remotePromises, remo
214
216
  localData
215
217
  );
216
218
  }
217
- if (shouldReplicateLocalRecord({
219
+ if (!hasRejectedRecord(settledResults) && shouldReplicateLocalRecord({
218
220
  localData,
219
221
  remoteData: validRemoteData,
220
222
  remoteTargetCount: remotePromises.length
@@ -251,10 +253,16 @@ var readAction = async (payload, thunkApi) => {
251
253
  userAuthorityRegistry
252
254
  } = getRuntimeServerContext(state, preferredServerOrigin);
253
255
  const allServers = resolveAgentReadServers({ dbKey, configuredServers });
254
- const fetchScopedFromServer = (server, key, token, signal2) => fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal2);
256
+ const { validateRecord } = payload;
257
+ const fetchScopedFromServer = async (server, key, token, signal2) => {
258
+ const record = await fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal2);
259
+ return record && validateRecord && !validateRecord(record, "remote") ? REJECTED_RECORD : record;
260
+ };
255
261
  const isLoggedIn = !!currentToken;
256
262
  const now = Date.now();
257
- const localData = await fetchFromClientDb(clientDb, dbKey);
263
+ const rawLocalData = await fetchFromClientDb(clientDb, dbKey);
264
+ const localRejected = !!rawLocalData && !!validateRecord && !validateRecord(rawLocalData, "local");
265
+ const localData = localRejected ? null : rawLocalData;
258
266
  if (isDialogKey) {
259
267
  console.info("[readAction-perf] dialog local-read", {
260
268
  dbKey,
@@ -316,6 +324,7 @@ var readAction = async (payload, thunkApi) => {
316
324
  }
317
325
  return normalizeReadRecord(dbKey, localData);
318
326
  }
327
+ if (localRejected) return null;
319
328
  readRequestManager.markMiss(dbKey, now);
320
329
  throw new Error(
321
330
  `Failed to fetch data for key "${dbKey}" because network is offline and no local data is available.`
@@ -363,6 +372,7 @@ var readAction = async (payload, thunkApi) => {
363
372
  preferredServer = authoritativeServerOrigin;
364
373
  fallbackServers = [];
365
374
  }
375
+ let preferredRejected = false;
366
376
  if (preferredServer) {
367
377
  try {
368
378
  const preferredRemoteData = await fetchScopedFromServer(
@@ -371,7 +381,8 @@ var readAction = async (payload, thunkApi) => {
371
381
  isLoggedIn ? currentToken : void 0,
372
382
  signal
373
383
  );
374
- if (preferredRemoteData) {
384
+ preferredRejected = preferredRemoteData === REJECTED_RECORD;
385
+ if (preferredRemoteData && !preferredRejected) {
375
386
  await saveRemoteDataToClientDb(
376
387
  clientDb,
377
388
  dbKey,
@@ -439,12 +450,13 @@ var readAction = async (payload, thunkApi) => {
439
450
  const remoteData = serverOrigin ? { ...validRemoteData, dbKey, serverOrigin } : { ...validRemoteData, dbKey };
440
451
  return normalizeReadRecord(dbKey, remoteData);
441
452
  }
453
+ if (localRejected || preferredRejected || hasRejectedRecord(settledResults)) return null;
442
454
  readRequestManager.markMiss(dbKey, Date.now());
443
455
  throw new Error(
444
456
  `Failed to fetch data for key "${dbKey}" from all sources.`
445
457
  );
446
458
  };
447
- const canDedup = !signal;
459
+ const canDedup = !signal && !payload.validateRecord;
448
460
  if (canDedup) {
449
461
  const existing = readRequestManager.getInFlight(dbKey);
450
462
  if (existing) return existing;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-WQDTSK5U.js";
4
+ } from "./chunk-ZMFA2TLE.js";
5
5
  import {
6
6
  fetchFromClientDb
7
7
  } from "./chunk-YHNUDTU4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-K26XPZRB.js";
3
+ } from "./chunk-LVZVSLKO.js";
4
4
 
5
5
  // packages/cli/client/localRuntimeHelpers.ts
6
6
  var REMOTE_DIALOG_SYNC_TIMEOUT_MS = 1e4;
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
11658
11658
  const output = deps.output ?? process.stdout;
11659
11659
  const errorOutput = deps.errorOutput ?? process.stderr;
11660
11660
  if (args[0] === "rebuild") {
11661
- const { runUsageRebuildCommand } = await import("./usageRebuildCommand-IRIMKDI5.js");
11661
+ const { runUsageRebuildCommand } = await import("./usageRebuildCommand-NK6S3D4J.js");
11662
11662
  return runUsageRebuildCommand(args.slice(1), deps);
11663
11663
  }
11664
11664
  if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
11729
11729
  return 0;
11730
11730
  }
11731
11731
  async function resolveUsageUserId(env) {
11732
- const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-N6LTB7UY.js");
11732
+ const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-FKBPFPKR.js");
11733
11733
  return resolveLocalUserId(env);
11734
11734
  }
11735
11735
  function isLocalDbMissingError(error) {
@@ -3,34 +3,34 @@ import {
3
3
  } from "./chunk-VF4K2QE6.js";
4
4
  import {
5
5
  setDialogExtraReferencesAction
6
- } from "./chunk-43VT5PLM.js";
6
+ } from "./chunk-T4VVQHSE.js";
7
7
  import {
8
8
  fetchAndCacheTableRows
9
- } from "./chunk-TGKAUEV3.js";
9
+ } from "./chunk-TDLZA6LJ.js";
10
10
  import {
11
11
  resolveDialogRuntimeAgentKey
12
- } from "./chunk-A55E2OCP.js";
12
+ } from "./chunk-ZNOXY73P.js";
13
13
  import {
14
14
  createSpaceKey
15
15
  } from "./chunk-UAD2WT54.js";
16
16
  import {
17
17
  selectById
18
- } from "./chunk-IFJ6OTI6.js";
18
+ } from "./chunk-CO2NXG2J.js";
19
19
  import {
20
20
  require_react
21
21
  } from "./chunk-RD3QLZQV.js";
22
22
  import {
23
23
  selectRuntimeSnapshot
24
- } from "./chunk-WQDTSK5U.js";
24
+ } from "./chunk-ZMFA2TLE.js";
25
25
  import {
26
26
  createAsyncThunk
27
- } from "./chunk-6XVPMGXK.js";
27
+ } from "./chunk-YB5D2GK4.js";
28
28
  import {
29
29
  selectIdentityUserId
30
30
  } from "./chunk-PXYBUFDB.js";
31
31
  import {
32
32
  isAgentSkillDisabled
33
- } from "./chunk-CDIRKCPD.js";
33
+ } from "./chunk-6HL6E7ZD.js";
34
34
  import {
35
35
  listBuiltinSkills,
36
36
  resolveBuiltinSkillByName
@@ -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-2AO2SK4L.js");
794
+ const { findToolExecutor } = await import("./tools-UZ3CDIR2.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-T7EAZE6A.js");
818
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-7DNR6DRD.js");
819
819
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
820
820
  }
821
821
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  describeAttachmentForModel
3
- } from "./chunk-LTVEOOZL.js";
3
+ } from "./chunk-CIAV4WK2.js";
4
4
 
5
5
  // packages/ai/attachments/projectUserPart.ts
6
6
  var isRecord = (value) => typeof value === "object" && value !== null;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isPidGone
3
- } from "./chunk-UCMUXZJV.js";
3
+ } from "./chunk-7XO73H5X.js";
4
4
 
5
5
  // packages/cli/tui/tuiRestart.ts
6
6
  import { realpathSync } from "node:fs";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  readDbRecord,
9
9
  writeAgentRecord
10
- } from "./chunk-KJDN2YRH.js";
10
+ } from "./chunk-QMKWSKWA.js";
11
11
  import {
12
12
  parseUserIdFromAuthToken,
13
13
  readOption,
@@ -2384,7 +2384,7 @@ var xhrUploadRequest = (url, formData, state, onProgress, signal) => new Promise
2384
2384
  xhr.send(formData);
2385
2385
  });
2386
2386
  var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress) => {
2387
- const { file, metadata, customKey, userId } = uploadConfig;
2387
+ const { file, metadata, customKey, userId, ownerType, spaceId } = uploadConfig;
2388
2388
  const googleSession = isGoogleAuthoritySession(selectIdentityToken(state));
2389
2389
  try {
2390
2390
  googleSessionRequestToken(selectIdentityToken(state) ?? void 0, server);
@@ -2413,6 +2413,12 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
2413
2413
  if (userId) {
2414
2414
  formData.append("userId", userId);
2415
2415
  }
2416
+ if (ownerType) {
2417
+ formData.append("ownerType", ownerType);
2418
+ }
2419
+ if (spaceId) {
2420
+ formData.append("spaceId", spaceId);
2421
+ }
2416
2422
  if (onProgress && !googleSession && typeof XMLHttpRequest !== "undefined") {
2417
2423
  const result = await xhrUploadRequest(
2418
2424
  server + `${API_ENDPOINTS.DATABASE}/upload`,
@@ -2423,7 +2429,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
2423
2429
  );
2424
2430
  if (!result.ok) {
2425
2431
  console.error(
2426
- `Upload request failed for ${customKey} on ${server}: HTTP ${result.status}`
2432
+ `Upload request failed for ${customKey} on ${server}: HTTP ${result.status}` + (ownerType === "space" ? " (space ownership claim rejected: the Space may not be synced to this server, or you are not a member there)" : "")
2427
2433
  );
2428
2434
  }
2429
2435
  return result.ok;
@@ -2443,7 +2449,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
2443
2449
  );
2444
2450
  if (!response.ok) {
2445
2451
  console.error(
2446
- `Upload request failed for ${customKey} on ${server}: HTTP ${response.status}`
2452
+ `Upload request failed for ${customKey} on ${server}: HTTP ${response.status}` + (ownerType === "space" ? " (space ownership claim rejected: the Space may not be synced to this server, or you are not a member there)" : "")
2447
2453
  );
2448
2454
  }
2449
2455
  if (response.ok && googleSession && onProgress) onProgress(file.size, file.size);