nolo-cli 0.243.0-alpha.1 → 0.243.0-alpha.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 (73) hide show
  1. package/{_executeModel-QLKALBXT.js → _executeModel-OO3WNJZJ.js} +13 -13
  2. package/{agentDeleteCommand-AUYYX4MU.js → agentDeleteCommand-XLYICAHH.js} +16 -16
  3. package/{agentEmailCommands-TZPXTTII.js → agentEmailCommands-Q4LFOXQC.js} +16 -16
  4. package/{agentListCommands-7Z74VVSY.js → agentListCommands-B2GNRH2Z.js} +6 -6
  5. package/{agentMachineCommands-7JQ45EPE.js → agentMachineCommands-7QQM6RU6.js} +5 -5
  6. package/{agentRecordCommands-OGOEBWLK.js → agentRecordCommands-FXP672SS.js} +16 -16
  7. package/{agentRunCommand-ZKTHUSE5.js → agentRunCommand-FGEYVKIG.js} +16 -16
  8. package/{agentRuntimeLocal-ODDHRQ3M.js → agentRuntimeLocal-AMQJ3DDY.js} +3 -3
  9. package/{agentSlice-ITLJEJAW.js → agentSlice-R6BN2FOL.js} +2 -2
  10. package/{appDeleteCommands-QM6AWGQ5.js → appDeleteCommands-YNA5MDFB.js} +6 -6
  11. package/{appDeployCommands-6XA2ONV6.js → appDeployCommands-G4AZK4SE.js} +6 -6
  12. package/{appDeployStatusCommands-E75X542I.js → appDeployStatusCommands-EGXAYHGY.js} +6 -6
  13. package/{appGetCommands-VKC2FHBH.js → appGetCommands-IU2EM4WN.js} +6 -6
  14. package/{appListCommands-CICA4AQI.js → appListCommands-2T366VJ2.js} +6 -6
  15. package/{chunk-7Y3L3IDA.js → chunk-2HZWYJ4G.js} +1 -1
  16. package/{chunk-Z5C2EICZ.js → chunk-37NO3AYF.js} +3 -3
  17. package/{chunk-VNALJT32.js → chunk-53AEDFBL.js} +1 -1
  18. package/{chunk-DHRYMWMY.js → chunk-7AI3MC6I.js} +2 -2
  19. package/{chunk-I27WRAPF.js → chunk-7DVJO4J5.js} +5 -5
  20. package/{chunk-TT4JI6QR.js → chunk-7N4O3VUH.js} +1 -1
  21. package/{chunk-GFBBHM53.js → chunk-AGQ6WAB2.js} +4 -4
  22. package/{chunk-MAURG3J4.js → chunk-AUBXID4I.js} +8 -8
  23. package/{chunk-WDDZCQ6V.js → chunk-BH6FBRQE.js} +2 -2
  24. package/{chunk-YDWMJOCW.js → chunk-BRZFJQTW.js} +11 -11
  25. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  26. package/{chunk-6ZQXUJGM.js → chunk-FUG2L353.js} +2 -2
  27. package/{chunk-NCJZUXRA.js → chunk-G3Y56RZA.js} +2 -2
  28. package/{chunk-X66UVBL3.js → chunk-GKZGOSZE.js} +1 -1
  29. package/{chunk-VF7F3ADU.js → chunk-GKZHJD7O.js} +2 -2
  30. package/{chunk-5UY2WQJ6.js → chunk-GRVQJNSR.js} +9 -9
  31. package/{chunk-Q25LWFGP.js → chunk-IUK5NHLN.js} +1 -1
  32. package/{chunk-ZCFOIOZ6.js → chunk-LADIVKVA.js} +1 -1
  33. package/{chunk-DOCK6V3Z.js → chunk-LCPP65AH.js} +2 -2
  34. package/{chunk-BEM6LPD2.js → chunk-LHCGKAFO.js} +18 -13
  35. package/{chunk-DM323UA6.js → chunk-ONXCCILE.js} +8 -8
  36. package/{chunk-76OIOVDN.js → chunk-OPZBKP4X.js} +2 -2
  37. package/{chunk-3S52WBJS.js → chunk-QE6U2BKG.js} +3 -3
  38. package/{chunk-K3GJXP2N.js → chunk-SSTQPNS5.js} +3 -3
  39. package/{chunk-JHHAIL34.js → chunk-SYWYGUPT.js} +1 -1
  40. package/{chunk-ORVM574D.js → chunk-TCY22W2Y.js} +2 -2
  41. package/{chunk-CYAEPGKY.js → chunk-U3PDJ6EI.js} +6 -6
  42. package/{chunk-XBWZ3SPO.js → chunk-UEMUDUHP.js} +1 -1
  43. package/{chunk-JVJ53XCH.js → chunk-VEVLLBFK.js} +1 -1
  44. package/{chunk-VTDC64JY.js → chunk-XMSAOVF3.js} +2 -2
  45. package/{cliLocalAgentRecordReader-SQCTHOXC.js → cliLocalAgentRecordReader-V6CTIXXV.js} +4 -4
  46. package/{commandRegistry-6P4GP7SY.js → commandRegistry-GBAVYSJE.js} +42 -42
  47. package/{contentThunks-74IO72TZ.js → contentThunks-IRJERA32.js} +4 -4
  48. package/{createAgentAutomationAction-KRNQVWCA.js → createAgentAutomationAction-EKJMTIUX.js} +4 -4
  49. package/{createDialogAction-TWFKJNUJ.js → createDialogAction-SI5EKEF6.js} +5 -5
  50. package/{createPageAction-2O2RMNQH.js → createPageAction-OAQ2Z73C.js} +5 -5
  51. package/{dialogCommands-OILEFOMW.js → dialogCommands-BL4F6CUD.js} +6 -6
  52. package/{dialogSlice-BZKPV4FB.js → dialogSlice-PRXHSZKA.js} +3 -3
  53. package/{docCreateCommands-43U55CVY.js → docCreateCommands-V7WKJK6O.js} +5 -5
  54. package/{docDeleteCommands-BFTJFJAV.js → docDeleteCommands-2OQMG3A2.js} +6 -6
  55. package/{docReadCommands-PU3VWGCG.js → docReadCommands-FVABF2BU.js} +5 -5
  56. package/{docStore-JTAXVIUB.js → docStore-ISD6RJ4Q.js} +1 -1
  57. package/{docUpdateCommands-7JRDXTSJ.js → docUpdateCommands-H2AZNG2G.js} +5 -5
  58. package/{handleSendMessageAction-BCNWPO3U.js → handleSendMessageAction-53ZRMHZI.js} +9 -9
  59. package/{hostCredentialCreate-LKNAX2SV.js → hostCredentialCreate-CE7VH3QY.js} +16 -16
  60. package/index.js +3 -3
  61. package/{localRuntimeAdapter-I5HVICYM.js → localRuntimeAdapter-HFSSPXSN.js} +15 -15
  62. package/{machineCommands-PUOM4XEL.js → machineCommands-RD3VAUXS.js} +16 -16
  63. package/{machineWsRunDispatch-SOAAV7PQ.js → machineWsRunDispatch-4F57JVF5.js} +16 -16
  64. package/{mcpLocalAuthorizeCommand-TMBUP7FX.js → mcpLocalAuthorizeCommand-BDSRBFJB.js} +3 -3
  65. package/package.json +1 -1
  66. package/{projectArchive-3V5DIVKP.js → projectArchive-NSWHU25G.js} +5 -5
  67. package/{readlineWorkspace-NHVNU4DY.js → readlineWorkspace-5DBAVNUP.js} +52 -32
  68. package/{runAgentClientLoop-EWZ4UOXT.js → runAgentClientLoop-RJ7KEUWO.js} +11 -11
  69. package/{secretCommands-36BCE3UE.js → secretCommands-LH7QTJO2.js} +2 -2
  70. package/{spaceCommands-SRICYK6S.js → spaceCommands-GFDX7H5J.js} +5 -5
  71. package/{streamAgentChatTurn-GHPLOX5L.js → streamAgentChatTurn-FRPZ7DE2.js} +13 -13
  72. package/{tools-ZSQGRWKI.js → tools-7JMKOJPW.js} +8 -8
  73. package/{updateDialogTitleAction-MEKAI3YO.js → updateDialogTitleAction-BQH24I5O.js} +4 -4
@@ -5,19 +5,19 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-Q25LWFGP.js";
8
+ } from "./chunk-IUK5NHLN.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-7Y3L3IDA.js";
12
+ } from "./chunk-2HZWYJ4G.js";
13
13
  import "./chunk-VF4K2QE6.js";
14
14
  import "./chunk-UAD2WT54.js";
15
15
  import "./chunk-LKZPX6YH.js";
16
- import "./chunk-VTDC64JY.js";
16
+ import "./chunk-XMSAOVF3.js";
17
17
  import "./chunk-OXFJWWOT.js";
18
18
  import "./chunk-VCU5GV42.js";
19
- import "./chunk-JHHAIL34.js";
20
- import "./chunk-BEM6LPD2.js";
19
+ import "./chunk-SYWYGUPT.js";
20
+ import "./chunk-LHCGKAFO.js";
21
21
  import "./chunk-ZNFJWEN4.js";
22
22
  import "./chunk-KV5FDJOD.js";
23
23
  import "./chunk-ANUP75N2.js";
@@ -50,7 +50,7 @@ import "./chunk-UKZX3NHN.js";
50
50
  import "./chunk-SR4FE5VD.js";
51
51
  import "./chunk-5MMAK75Q.js";
52
52
  import "./chunk-USGHJSGO.js";
53
- import "./chunk-OQHIVPG4.js";
53
+ import "./chunk-E6A5NHDH.js";
54
54
  import "./chunk-KX6YBIHG.js";
55
55
  import "./chunk-TB5KTLNB.js";
56
56
  import "./chunk-EWQ3HGNZ.js";
@@ -5,19 +5,19 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-Q25LWFGP.js";
8
+ } from "./chunk-IUK5NHLN.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-7Y3L3IDA.js";
12
+ } from "./chunk-2HZWYJ4G.js";
13
13
  import "./chunk-VF4K2QE6.js";
14
14
  import "./chunk-UAD2WT54.js";
15
15
  import "./chunk-LKZPX6YH.js";
16
- import "./chunk-VTDC64JY.js";
16
+ import "./chunk-XMSAOVF3.js";
17
17
  import "./chunk-OXFJWWOT.js";
18
18
  import "./chunk-VCU5GV42.js";
19
- import "./chunk-JHHAIL34.js";
20
- import "./chunk-BEM6LPD2.js";
19
+ import "./chunk-SYWYGUPT.js";
20
+ import "./chunk-LHCGKAFO.js";
21
21
  import "./chunk-ZNFJWEN4.js";
22
22
  import "./chunk-KV5FDJOD.js";
23
23
  import "./chunk-ANUP75N2.js";
@@ -50,7 +50,7 @@ import "./chunk-UKZX3NHN.js";
50
50
  import "./chunk-SR4FE5VD.js";
51
51
  import "./chunk-5MMAK75Q.js";
52
52
  import "./chunk-USGHJSGO.js";
53
- import "./chunk-OQHIVPG4.js";
53
+ import "./chunk-E6A5NHDH.js";
54
54
  import "./chunk-KX6YBIHG.js";
55
55
  import "./chunk-TB5KTLNB.js";
56
56
  import "./chunk-EWQ3HGNZ.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  readDbRecord,
9
9
  writeAgentRecord
10
- } from "./chunk-VTDC64JY.js";
10
+ } from "./chunk-XMSAOVF3.js";
11
11
  import {
12
12
  parseUserIdFromAuthToken,
13
13
  readOption,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-76OIOVDN.js";
6
+ } from "./chunk-OPZBKP4X.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-GFBBHM53.js";
9
+ } from "./chunk-AGQ6WAB2.js";
10
10
  import {
11
11
  buildIdentityBlock,
12
12
  buildPlatformStaticContextLayers,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-YTYVSOY4.js";
32
32
  import {
33
33
  createFileCredentialBroker
34
- } from "./chunk-OQHIVPG4.js";
34
+ } from "./chunk-E6A5NHDH.js";
35
35
  import {
36
36
  MEMORY_USE_GUIDANCE,
37
37
  buildUserResponseLanguageContext
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-2BSLGODA.js";
5
5
  import {
6
6
  createStrictHostCredentialBroker
7
- } from "./chunk-BEM6LPD2.js";
7
+ } from "./chunk-LHCGKAFO.js";
8
8
  import {
9
9
  parseMcpCallToolInput,
10
10
  parseMcpConnectionWrite,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-DLT2DN4M.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-YDWMJOCW.js";
9
+ } from "./chunk-BRZFJQTW.js";
10
10
  import {
11
11
  readCredentialAvailability
12
12
  } from "./chunk-WWTSEBDF.js";
@@ -25,7 +25,7 @@ import {
25
25
  resolveAgentRecordFromHybridStore,
26
26
  sanitizeAgentRecordForCliOutput,
27
27
  writeAgentRecord
28
- } from "./chunk-VTDC64JY.js";
28
+ } from "./chunk-XMSAOVF3.js";
29
29
  import {
30
30
  resolveCliAgentKeyInput
31
31
  } from "./chunk-BR3GT6MR.js";
@@ -3,22 +3,22 @@ import {
3
3
  mergeReferences,
4
4
  resolveReferenceAssets,
5
5
  resolveToolsFromKeys
6
- } from "./chunk-76OIOVDN.js";
6
+ } from "./chunk-OPZBKP4X.js";
7
7
  import {
8
8
  UI_CARD_ENVELOPE_MAX_BYTES,
9
9
  getAllToolRuns,
10
10
  parseUiCard,
11
11
  uiCardFallback
12
- } from "./chunk-K3GJXP2N.js";
12
+ } from "./chunk-SSTQPNS5.js";
13
13
  import {
14
14
  getDocState
15
- } from "./chunk-NCJZUXRA.js";
15
+ } from "./chunk-G3Y56RZA.js";
16
16
  import {
17
17
  getTableState
18
- } from "./chunk-X66UVBL3.js";
18
+ } from "./chunk-GKZGOSZE.js";
19
19
  import {
20
20
  selectAllMsgs
21
- } from "./chunk-DM323UA6.js";
21
+ } from "./chunk-ONXCCILE.js";
22
22
  import {
23
23
  getCurrentSpaceIdRaw,
24
24
  getViewMode
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  localDialogMessageRecordToRuntimeMessage,
13
13
  orderDialogHistory
14
- } from "./chunk-JHHAIL34.js";
14
+ } from "./chunk-SYWYGUPT.js";
15
15
  import {
16
16
  resolveAgentRuntimeConfigFromRecord
17
17
  } from "./chunk-AERVJIZ2.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-USGHJSGO.js";
20
20
  import {
21
21
  createFileCredentialBroker
22
- } from "./chunk-OQHIVPG4.js";
22
+ } from "./chunk-E6A5NHDH.js";
23
23
  import {
24
24
  asRecordOrEmpty
25
25
  } from "./chunk-KX6YBIHG.js";
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-QLKALBXT.js");
461
+ const { _executeModel } = await import("./_executeModel-OO3WNJZJ.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-EWZ4UOXT.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-RJ7KEUWO.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-GHPLOX5L.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-FRPZ7DE2.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -33,7 +33,7 @@ import {
33
33
  resolveServerUrl,
34
34
  validateInstaboxWorkspaceSelection,
35
35
  writeUsage
36
- } from "./chunk-YDWMJOCW.js";
36
+ } from "./chunk-BRZFJQTW.js";
37
37
  import {
38
38
  boxGlyphs,
39
39
  displayWidth,
@@ -86,14 +86,14 @@ import {
86
86
  } from "./chunk-S73EPYNC.js";
87
87
  import {
88
88
  resolveCliLocalRuntimeKeyCapability
89
- } from "./chunk-5UY2WQJ6.js";
89
+ } from "./chunk-GRVQJNSR.js";
90
90
  import {
91
91
  extractGoogleValidationLink
92
92
  } from "./chunk-BMQ2MJUK.js";
93
93
  import {
94
94
  parseUiCard,
95
95
  uiCardFallback
96
- } from "./chunk-K3GJXP2N.js";
96
+ } from "./chunk-SSTQPNS5.js";
97
97
  import {
98
98
  isGatewayHttpStatus
99
99
  } from "./chunk-NF64D32W.js";
@@ -104,7 +104,7 @@ import {
104
104
  loadOwnerItemsFromDb,
105
105
  parseUiAskChoiceContent,
106
106
  resolveAgentMemoryPolicy
107
- } from "./chunk-ORVM574D.js";
107
+ } from "./chunk-TCY22W2Y.js";
108
108
  import {
109
109
  API_REPORTED_COST_MULTIPLIER,
110
110
  estimateMessagesTokens,
@@ -113,14 +113,14 @@ import {
113
113
  resolveAgentContextWindow,
114
114
  resolveOccupancy,
115
115
  resolveOccupancyWindow
116
- } from "./chunk-DM323UA6.js";
116
+ } from "./chunk-ONXCCILE.js";
117
117
  import {
118
118
  parsePositiveFiniteNumberOrFallback
119
119
  } from "./chunk-Y5GCAMGP.js";
120
120
  import {
121
121
  readDbRecord,
122
122
  resolveAgentRecordFromHybridStore
123
- } from "./chunk-VTDC64JY.js";
123
+ } from "./chunk-XMSAOVF3.js";
124
124
  import {
125
125
  isTransientFetchError
126
126
  } from "./chunk-DXWGFL2Z.js";
@@ -174,7 +174,7 @@ import {
174
174
  markCliUserBatchPhase,
175
175
  readActionGate,
176
176
  readAgentsMdLayerFromDisk
177
- } from "./chunk-JHHAIL34.js";
177
+ } from "./chunk-SYWYGUPT.js";
178
178
  import {
179
179
  resolveAgentRuntimeConfigFromRecord
180
180
  } from "./chunk-AERVJIZ2.js";
@@ -12724,7 +12724,7 @@ function isBalanceExhaustedError(error) {
12724
12724
 
12725
12725
  // packages/cli/client/agentRun.ts
12726
12726
  async function loadRunLocalAgentTurn() {
12727
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-ODDHRQ3M.js");
12727
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-AMQJ3DDY.js");
12728
12728
  return runLocalAgentTurn;
12729
12729
  }
12730
12730
  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();
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  listUserRecordsFromServers,
6
6
  readLiveDbRecordAfterTombstoneMerge
7
- } from "./chunk-ZCFOIOZ6.js";
7
+ } from "./chunk-LADIVKVA.js";
8
8
  import {
9
9
  agentRecordHasConfiguredCredential
10
- } from "./chunk-VTDC64JY.js";
10
+ } from "./chunk-XMSAOVF3.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-BV3FLP2L.js";
@@ -7,7 +7,7 @@ import {
7
7
  parsePendingApprovalResult,
8
8
  runConnectorToolWithHostApproval,
9
9
  withHostApprovalRequest
10
- } from "./chunk-VNALJT32.js";
10
+ } from "./chunk-53AEDFBL.js";
11
11
  import {
12
12
  BROWSER_SHELL_BRIDGE_ENV
13
13
  } from "./chunk-2YGBI2XB.js";
@@ -72,7 +72,7 @@ import {
72
72
  import {
73
73
  inlineImageUrlsForCustomProvider,
74
74
  prepareTools
75
- } from "./chunk-VF7F3ADU.js";
75
+ } from "./chunk-GKZHJD7O.js";
76
76
  import {
77
77
  getServerProviderSecret
78
78
  } from "./chunk-HS7MLR74.js";
@@ -95,7 +95,7 @@ import {
95
95
  resolveCliLocalSpawnDispatch,
96
96
  resolveRunContextFacts,
97
97
  resolveStartAgentRunCwd
98
- } from "./chunk-5UY2WQJ6.js";
98
+ } from "./chunk-GRVQJNSR.js";
99
99
  import {
100
100
  deriveCredentialGroup,
101
101
  deriveCustomProviderCredentialGroup
@@ -109,11 +109,11 @@ import {
109
109
  } from "./chunk-6PXFEPHL.js";
110
110
  import {
111
111
  validateAskChoiceInput
112
- } from "./chunk-ORVM574D.js";
112
+ } from "./chunk-TCY22W2Y.js";
113
113
  import {
114
114
  prepareTokenUsageData,
115
115
  runKeyed
116
- } from "./chunk-DM323UA6.js";
116
+ } from "./chunk-ONXCCILE.js";
117
117
  import {
118
118
  applyTokenUsageToDayStats,
119
119
  require_format
@@ -124,7 +124,7 @@ import {
124
124
  } from "./chunk-523DITKR.js";
125
125
  import {
126
126
  fetchServerSyncedCredential
127
- } from "./chunk-GFBBHM53.js";
127
+ } from "./chunk-AGQ6WAB2.js";
128
128
  import {
129
129
  defaultLoopbackRequest,
130
130
  loadLocalRunChildDialogIds
@@ -133,7 +133,7 @@ import {
133
133
  CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
134
134
  OAUTH_PROVIDER_REFS,
135
135
  getSharedSessionCredentialBroker
136
- } from "./chunk-VTDC64JY.js";
136
+ } from "./chunk-XMSAOVF3.js";
137
137
  import {
138
138
  fetchWithTransientRetry,
139
139
  isTransientFetchError
@@ -189,7 +189,7 @@ import {
189
189
  readDialogMessageRecords,
190
190
  readDialogMessages,
191
191
  resolveBuiltinLocalCliAgentConfig
192
- } from "./chunk-TT4JI6QR.js";
192
+ } from "./chunk-7N4O3VUH.js";
193
193
  import {
194
194
  applyPublicAgentCatalogOverride
195
195
  } from "./chunk-GEY2UH2I.js";
@@ -246,11 +246,11 @@ import {
246
246
  runExecShellGates,
247
247
  validateConfiguredRootExecutionLease,
248
248
  verifyOwnerRouteAck
249
- } from "./chunk-JHHAIL34.js";
249
+ } from "./chunk-SYWYGUPT.js";
250
250
  import {
251
251
  createHostCredentialBrokerChain,
252
252
  createStrictHostCredentialBroker
253
- } from "./chunk-BEM6LPD2.js";
253
+ } from "./chunk-LHCGKAFO.js";
254
254
  import {
255
255
  accumulateGeminiChunks,
256
256
  buildGeminiGenerateContentRequest,
@@ -377,7 +377,7 @@ import {
377
377
  } from "./chunk-USGHJSGO.js";
378
378
  import {
379
379
  createFileCredentialBroker
380
- } from "./chunk-OQHIVPG4.js";
380
+ } from "./chunk-E6A5NHDH.js";
381
381
  import {
382
382
  asRecordOrEmpty
383
383
  } from "./chunk-KX6YBIHG.js";
@@ -11,6 +11,7 @@ import {
11
11
  import {
12
12
  chmodSync,
13
13
  existsSync,
14
+ lstatSync,
14
15
  mkdirSync,
15
16
  readFileSync,
16
17
  unlinkSync,
@@ -79,7 +80,9 @@ function migrateApiKeyCredentialIfNeeded(ref, homeDir, migration) {
79
80
  }
80
81
  function readApiKeyCredential(ref, homeDir, migration) {
81
82
  migrateApiKeyCredentialIfNeeded(ref, homeDir, migration);
82
- const path = getApiKeyCredentialPath(ref, homeDir);
83
+ return readApiKeyCredentialFile(getApiKeyCredentialPath(ref, homeDir));
84
+ }
85
+ function readApiKeyCredentialFile(path) {
83
86
  if (!existsSync(path)) return null;
84
87
  try {
85
88
  const raw = readFileSync(path, "utf8");
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-76OIOVDN.js";
4
+ } from "./chunk-OPZBKP4X.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-DM323UA6.js";
7
+ } from "./chunk-ONXCCILE.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-U35UUM5K.js";
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
335
335
  ).unwrap();
336
336
  if (dbSpaceId) {
337
337
  try {
338
- const { updateContentTitle } = await import("./contentThunks-74IO72TZ.js");
338
+ const { updateContentTitle } = await import("./contentThunks-IRJERA32.js");
339
339
  await dispatch(
340
340
  updateContentTitle({
341
341
  spaceId: dbSpaceId,
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
378
378
  }
379
379
  }
380
380
  async function createDocState(args, thunkApi) {
381
- const { createPageAction } = await import("./createPageAction-2O2RMNQH.js");
381
+ const { createPageAction } = await import("./createPageAction-OAQ2Z73C.js");
382
382
  return createPageAction(args, thunkApi);
383
383
  }
384
384
  function subscribe(listener) {
@@ -2,7 +2,7 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-DM323UA6.js";
5
+ } from "./chunk-ONXCCILE.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-5UY2WQJ6.js";
3
+ } from "./chunk-GRVQJNSR.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-DM323UA6.js";
6
+ } from "./chunk-ONXCCILE.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-YLAHYLDQ.js";
@@ -38,7 +38,7 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-K3GJXP2N.js";
41
+ } from "./chunk-SSTQPNS5.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-6PXFEPHL.js";
48
48
  import {
49
49
  createDocState
50
- } from "./chunk-NCJZUXRA.js";
50
+ } from "./chunk-G3Y56RZA.js";
51
51
  import {
52
52
  readDocFunc,
53
53
  readDocFunctionSchema,
@@ -59,7 +59,7 @@ import {
59
59
  createDialogAction,
60
60
  uiAskChoiceFunc,
61
61
  uiAskChoiceFunctionSchema
62
- } from "./chunk-ORVM574D.js";
62
+ } from "./chunk-TCY22W2Y.js";
63
63
  import {
64
64
  DEFAULT_COLLAPSED_CATEGORIES,
65
65
  addContentToSpace,
@@ -76,7 +76,7 @@ import {
76
76
  updateContentCategory,
77
77
  updateContentTitle,
78
78
  writeStoredCollapsedCategories
79
- } from "./chunk-X66UVBL3.js";
79
+ } from "./chunk-GKZGOSZE.js";
80
80
  import {
81
81
  buildDatabaseFileContentUrl,
82
82
  deleteDialog,
@@ -85,14 +85,14 @@ import {
85
85
  selectCurrentDialogConfig,
86
86
  selectCurrentDialogId,
87
87
  selectMsgById
88
- } from "./chunk-DM323UA6.js";
88
+ } from "./chunk-ONXCCILE.js";
89
89
  import {
90
90
  createAgent,
91
91
  deleteServerSyncedCredential,
92
92
  runLlm,
93
93
  streamAgentChatTurn,
94
94
  updateAgent
95
- } from "./chunk-GFBBHM53.js";
95
+ } from "./chunk-AGQ6WAB2.js";
96
96
  import {
97
97
  addMemberSpace,
98
98
  getAllMemberSpaces,
@@ -249,7 +249,7 @@ import {
249
249
  } from "./chunk-5MMAK75Q.js";
250
250
  import {
251
251
  createFileCredentialBroker
252
- } from "./chunk-OQHIVPG4.js";
252
+ } from "./chunk-E6A5NHDH.js";
253
253
  import {
254
254
  asRecordOrEmpty
255
255
  } from "./chunk-KX6YBIHG.js";
@@ -4012,7 +4012,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4012
4012
  const deletedDialogIds = [];
4013
4013
  const deletedDialogKeys = [];
4014
4014
  const failures = [];
4015
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-BZKPV4FB.js");
4015
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-PRXHSZKA.js");
4016
4016
  for (const target of targets) {
4017
4017
  try {
4018
4018
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -19389,7 +19389,7 @@ async function updateDocFunc(args, thunkApi) {
19389
19389
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
19390
19390
  };
19391
19391
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
19392
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-JTAXVIUB.js");
19392
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-ISD6RJ4Q.js");
19393
19393
  if (getDocState().pageKey === id) {
19394
19394
  applyExternalDocUpdate({
19395
19395
  slateData: finalSlateData,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-7Y3L3IDA.js";
3
+ } from "./chunk-2HZWYJ4G.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-BIDSIRTS.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-VTDC64JY.js";
5
+ } from "./chunk-XMSAOVF3.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";
@@ -14,10 +14,10 @@ import {
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-X66UVBL3.js";
17
+ } from "./chunk-GKZGOSZE.js";
18
18
  import {
19
19
  runtime_default
20
- } from "./chunk-DM323UA6.js";
20
+ } from "./chunk-ONXCCILE.js";
21
21
  import {
22
22
  getCurrentSpaceId
23
23
  } from "./chunk-WXZZQRAH.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertCredentialRef
3
- } from "./chunk-OQHIVPG4.js";
3
+ } from "./chunk-E6A5NHDH.js";
4
4
  import {
5
5
  asTrimmedString
6
6
  } from "./chunk-3EUW3WEO.js";
@@ -9,6 +9,7 @@ import {
9
9
  import { spawn } from "node:child_process";
10
10
  var LINUX_SECRET_SERVICE_ATTRIBUTE = "nolo-credential";
11
11
  var SECRET_TOOL_NO_MATCH_EXIT = 1;
12
+ var isGenuineNoMatch = (result) => result.exitCode === SECRET_TOOL_NO_MATCH_EXIT && result.stderr.trim() === "";
12
13
  var DEFAULT_SECRET_TOOL_BIN = "secret-tool";
13
14
  function safeCredentialRef(ref) {
14
15
  try {
@@ -76,7 +77,7 @@ function createLinuxSecretServiceCredentialBroker(options = {}) {
76
77
  async get(ref) {
77
78
  const safeRef = safeCredentialRef(ref);
78
79
  const result = await lookup(safeRef);
79
- if (result.exitCode === SECRET_TOOL_NO_MATCH_EXIT) return null;
80
+ if (isGenuineNoMatch(result)) return null;
80
81
  if (result.exitCode !== 0) brokerFailure("get");
81
82
  const secret = result.stdout.replace(/\n$/, "");
82
83
  return secret.length > 0 ? secret : null;
@@ -111,7 +112,7 @@ function createLinuxSecretServiceCredentialBroker(options = {}) {
111
112
  } catch {
112
113
  brokerFailure("delete");
113
114
  }
114
- if (result.exitCode === 0 || result.exitCode === SECRET_TOOL_NO_MATCH_EXIT) {
115
+ if (result.exitCode === 0 || isGenuineNoMatch(result)) {
115
116
  return;
116
117
  }
117
118
  brokerFailure("delete");
@@ -119,7 +120,7 @@ function createLinuxSecretServiceCredentialBroker(options = {}) {
119
120
  async has(ref) {
120
121
  const safeRef = safeCredentialRef(ref);
121
122
  const result = await lookup(safeRef);
122
- if (result.exitCode === SECRET_TOOL_NO_MATCH_EXIT) return false;
123
+ if (isGenuineNoMatch(result)) return false;
123
124
  if (result.exitCode !== 0) brokerFailure("has");
124
125
  return true;
125
126
  }
@@ -716,17 +717,21 @@ function createStrictHostCredentialBroker(options = {}) {
716
717
  if (override === "file") {
717
718
  return createClosedCredentialBroker("credential_store_file_not_allowed");
718
719
  }
719
- if (platform === "darwin" || override === "keychain") {
720
- return options.keychainBroker ?? (options.createKeychainBroker ?? (() => createMacOsKeychainCredentialBroker()))();
721
- }
722
- if (platform === "win32" || override === "credman") {
723
- return options.windowsCredentialBroker ?? (options.createWindowsCredentialBroker ?? (() => createWindowsCredentialManagerBroker()))();
724
- }
725
- if (platform === "linux" || override === "secret-service") {
726
- return options.linuxSecretServiceBroker ?? (options.createLinuxSecretServiceBroker ?? (() => createLinuxSecretServiceCredentialBroker()))();
727
- }
720
+ if (platform === "darwin" || override === "keychain") return createSystemStoreBroker("keychain", options);
721
+ if (platform === "win32" || override === "credman") return createSystemStoreBroker("credman", options);
722
+ if (platform === "linux" || override === "secret-service") return createSystemStoreBroker("secret-service", options);
728
723
  return createClosedCredentialBroker("credential_store_unsupported");
729
724
  }
725
+ function createSystemStoreBroker(mode, options) {
726
+ switch (mode) {
727
+ case "keychain":
728
+ return options.keychainBroker ?? options.createKeychainBroker?.() ?? createMacOsKeychainCredentialBroker();
729
+ case "credman":
730
+ return options.windowsCredentialBroker ?? options.createWindowsCredentialBroker?.() ?? createWindowsCredentialManagerBroker();
731
+ case "secret-service":
732
+ return options.linuxSecretServiceBroker ?? options.createLinuxSecretServiceBroker?.() ?? createLinuxSecretServiceCredentialBroker();
733
+ }
734
+ }
730
735
 
731
736
  export {
732
737
  createHostCredentialBrokerChain,