nolo-cli 0.29.1 → 0.29.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 (87) hide show
  1. package/{_executeModel-TN7FW73L.js → _executeModel-BFVTGZXE.js} +23 -23
  2. package/{action-6BM26ZYM.js → action-LG32A6DJ.js} +5 -5
  3. package/{addContentAction-HLTFX56O.js → addContentAction-MPGMBJTQ.js} +4 -4
  4. package/{addDialogAgentAction-Q2TYWDO6.js → addDialogAgentAction-ZH23WDID.js} +3 -3
  5. package/{agentDeleteCommand-VP4VLCMG.js → agentDeleteCommand-4S4STG42.js} +11 -11
  6. package/{agentEmailCommands-N32KWVCX.js → agentEmailCommands-3F4IP4DI.js} +26 -26
  7. package/{agentListCommands-MXITEBUS.js → agentListCommands-JCRV2XF6.js} +13 -13
  8. package/{agentMachineCommands-47Y2XEZZ.js → agentMachineCommands-KYXPYSFP.js} +11 -11
  9. package/{agentRecordCommands-AK6ZRJLD.js → agentRecordCommands-UADUPIXO.js} +26 -26
  10. package/{agentRunCommand-24SNVDNC.js → agentRunCommand-MJWSR53W.js} +26 -26
  11. package/{agentRuntimeLocal-VI3NHLDU.js → agentRuntimeLocal-PC5RRRPT.js} +12 -12
  12. package/{agentSlice-D666DABC.js → agentSlice-C5OYLNBT.js} +4 -4
  13. package/{appDeleteCommands-SF2V6QYZ.js → appDeleteCommands-ZXODZ5AD.js} +12 -12
  14. package/{appDeployCommands-3EPVR545.js → appDeployCommands-AWC6JPZH.js} +12 -12
  15. package/{appDeployStatusCommands-O65Y747J.js → appDeployStatusCommands-74NXMDAI.js} +12 -12
  16. package/{appGetCommands-AHDOF4SS.js → appGetCommands-6YGIAP5L.js} +12 -12
  17. package/{appListCommands-Y7YCXODU.js → appListCommands-DZWBHMNK.js} +12 -12
  18. package/{chunk-4MCHUZUI.js → chunk-32ZM6HVI.js} +1 -1
  19. package/{chunk-XISENOC2.js → chunk-4BDPDTJU.js} +2 -2
  20. package/{chunk-GVYU3EVI.js → chunk-5ZXNLOAG.js} +3 -3
  21. package/{chunk-WPRSBZYN.js → chunk-6HTWA77J.js} +1 -1
  22. package/{chunk-YRMUYZ5H.js → chunk-BBGRJB5E.js} +2 -2
  23. package/{chunk-MHHYH3JA.js → chunk-DF7SMWEV.js} +1 -1
  24. package/{chunk-WNENLKKI.js → chunk-FVOSIYXM.js} +8 -8
  25. package/{chunk-JYSXE6LE.js → chunk-G2BZ43DV.js} +3 -3
  26. package/{chunk-BOPFLKHA.js → chunk-GC34RRTQ.js} +1 -1
  27. package/{chunk-7CP4UOUV.js → chunk-GMJS5AYP.js} +3 -3
  28. package/{chunk-XMAMUPXU.js → chunk-H5S4XUGI.js} +11 -11
  29. package/{chunk-FVY6KI5A.js → chunk-HEXXIS77.js} +1 -1
  30. package/{chunk-STRCGEC6.js → chunk-HRJEPMZY.js} +11 -7
  31. package/{chunk-Z3LLUGD5.js → chunk-HRPWRVBI.js} +1 -1
  32. package/{chunk-PMSG3OGF.js → chunk-HYSJHRWD.js} +4 -4
  33. package/{chunk-INWBJPQC.js → chunk-IC7W63RM.js} +2 -2
  34. package/{chunk-DBUNOYLF.js → chunk-JSB4N6NU.js} +1 -1
  35. package/{chunk-33K2M3AU.js → chunk-KEF5OBOZ.js} +2 -15
  36. package/{chunk-NWT2WUCY.js → chunk-L6RBX4L4.js} +1 -1
  37. package/{chunk-YBHJZVWO.js → chunk-NXMJ55RU.js} +15 -8
  38. package/{chunk-SNMJPH7J.js → chunk-OEWEE4VW.js} +1 -1
  39. package/{chunk-Y52E3TIS.js → chunk-OLWMGSW2.js} +10 -10
  40. package/{chunk-PB7G5MAM.js → chunk-OMP5L5NF.js} +1 -1
  41. package/{chunk-F7S2SH5C.js → chunk-Q5RXHXKU.js} +9 -9
  42. package/{chunk-I5TJCJQP.js → chunk-QC6ZWDSV.js} +1 -1
  43. package/{chunk-STOUEEBU.js → chunk-R3JSTDQO.js} +1 -1
  44. package/{chunk-ENUJPSZN.js → chunk-R7LOFGRE.js} +2 -2
  45. package/{chunk-MUI34IA2.js → chunk-RJBTU7AS.js} +4 -4
  46. package/{chunk-GFVFYNL7.js → chunk-TOGGHWHI.js} +2 -2
  47. package/{chunk-SLOGKB7M.js → chunk-TOW4E763.js} +9 -1
  48. package/{chunk-PFTK5SEB.js → chunk-UEOPA6MV.js} +22 -1
  49. package/{chunk-RD6AOXQI.js → chunk-UFL6WHHJ.js} +21 -21
  50. package/{chunk-BPZSJH5X.js → chunk-VKBTAQWT.js} +3 -3
  51. package/{chunk-3LJ4RSSF.js → chunk-W2LZV5GE.js} +1 -1
  52. package/{chunk-2AX4ZWSG.js → chunk-WMB7GVPN.js} +26 -25
  53. package/{chunk-P6TB7JIA.js → chunk-Z54ZAZZC.js} +2 -2
  54. package/{createAgentAutomationAction-VK3N263U.js → createAgentAutomationAction-BK4UZJKU.js} +9 -9
  55. package/{createDialogAction-KWZ74S2G.js → createDialogAction-MJJUI2MK.js} +10 -10
  56. package/{createPageAction-3CIZL5ZL.js → createPageAction-YMZ7K363.js} +9 -9
  57. package/{db-W5UHK4P3.js → db-IPCJ43PW.js} +10 -6
  58. package/{dbSlice-GOKRGQ47.js → dbSlice-6QJYQUBV.js} +3 -3
  59. package/{dialogCommands-N4XKI6ZU.js → dialogCommands-OKH45ASS.js} +12 -12
  60. package/{dialogSlice-TKYB6VLO.js → dialogSlice-UDOKNDHB.js} +9 -9
  61. package/{docCreateCommands-DTDKANXX.js → docCreateCommands-MCLMR4TE.js} +11 -11
  62. package/{docDeleteCommands-U4NB6OHK.js → docDeleteCommands-ONDHI7JV.js} +12 -12
  63. package/{docReadCommands-SDVQM3BH.js → docReadCommands-FCXBMISW.js} +11 -11
  64. package/{docStore-E5QAM75M.js → docStore-N66O4CGH.js} +10 -10
  65. package/{docUpdateCommands-O2O644FV.js → docUpdateCommands-T3XN6XOX.js} +11 -11
  66. package/{handleSendMessageAction-7OVC2SVU.js → handleSendMessageAction-KC4AYUZP.js} +9 -9
  67. package/index.js +40 -40
  68. package/localDialogRead-UFLBS6OT.js +38 -0
  69. package/{machineCommands-6GNFKAVC.js → machineCommands-DIMRFA3Y.js} +25 -25
  70. package/{machineWsRunDispatch-2DCHVG3U.js → machineWsRunDispatch-2DYJZI6Z.js} +25 -25
  71. package/package.json +1 -1
  72. package/{read-A23NKT3O.js → read-C7Y6LSBM.js} +2 -2
  73. package/{readDocTool-JAM5BI5Q.js → readDocTool-TOHRYJHP.js} +1 -1
  74. package/{readlineWorkspace-KELDMUNZ.js → readlineWorkspace-HUPHMLDG.js} +29 -29
  75. package/{removeDialogAgentAction-K4HOWFHO.js → removeDialogAgentAction-WZXPOH5S.js} +5 -5
  76. package/{runAgentClientLoop-R3S7YN6Z.js → runAgentClientLoop-5TGSUKHV.js} +20 -20
  77. package/{setDialogExtraReferencesAction-JD7J7JM4.js → setDialogExtraReferencesAction-INZY2ENI.js} +4 -4
  78. package/{setPrimaryDialogAgentAction-YWSA5XEU.js → setPrimaryDialogAgentAction-WCVLPYCF.js} +5 -5
  79. package/{settingSlice-22GTX6CA.js → settingSlice-IDUM4LWU.js} +4 -4
  80. package/{spaceCommands-WM6W3WMQ.js → spaceCommands-XSSDB3YK.js} +11 -11
  81. package/{spaceSlice-RC2APBOD.js → spaceSlice-BXDCO6PT.js} +9 -9
  82. package/{streamAgentChatTurn-Q655CCVP.js → streamAgentChatTurn-HRFMVSVC.js} +23 -23
  83. package/{switchDialogAgentAction-6JKFBJVR.js → switchDialogAgentAction-YBFFCBOD.js} +3 -3
  84. package/{toolApiClient-ISM4ZQX4.js → toolApiClient-WVTUYOFM.js} +2 -2
  85. package/{tools-A6MUIA3Q.js → tools-5V6FHWQU.js} +18 -18
  86. package/{updateDialogTitleAction-DQYY564Y.js → updateDialogTitleAction-W62C4W4K.js} +9 -9
  87. package/localDialogRead-JXTAHW2E.js +0 -26
@@ -7,7 +7,7 @@ import {
7
7
  fetchAndSerializeTable,
8
8
  resolveBuiltinSkillPage,
9
9
  waitForAbortableDelay
10
- } from "./chunk-2AX4ZWSG.js";
10
+ } from "./chunk-WMB7GVPN.js";
11
11
  import {
12
12
  createDrainExhaustedResponse,
13
13
  isCoreDrainingBody,
@@ -17,16 +17,16 @@ import {
17
17
  } from "./chunk-RQSOAMPJ.js";
18
18
  import {
19
19
  slateToSimplifiedMarkdown
20
- } from "./chunk-BOPFLKHA.js";
20
+ } from "./chunk-GC34RRTQ.js";
21
21
  import {
22
22
  extractCategorizedMentions
23
23
  } from "./chunk-VP4WJWKW.js";
24
24
  import {
25
25
  fetchAndCacheMessages
26
- } from "./chunk-RD6AOXQI.js";
26
+ } from "./chunk-UFL6WHHJ.js";
27
27
  import {
28
28
  fetchServerSyncedCredential
29
- } from "./chunk-MUI34IA2.js";
29
+ } from "./chunk-RJBTU7AS.js";
30
30
  import {
31
31
  shouldUseServerProxy
32
32
  } from "./chunk-YYLHWIW6.js";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-XS7UPVR7.js";
56
56
  import {
57
57
  estimateTokenCount
58
- } from "./chunk-PMSG3OGF.js";
58
+ } from "./chunk-HYSJHRWD.js";
59
59
  import {
60
60
  createFileCredentialBroker
61
61
  } from "./chunk-5CS33IBL.js";
@@ -81,10 +81,10 @@ import {
81
81
  } from "./chunk-YTA2QOEE.js";
82
82
  import {
83
83
  createSpaceKey
84
- } from "./chunk-DBUNOYLF.js";
84
+ } from "./chunk-JSB4N6NU.js";
85
85
  import {
86
86
  read
87
- } from "./chunk-JYSXE6LE.js";
87
+ } from "./chunk-G2BZ43DV.js";
88
88
  import {
89
89
  asTrimmedLowercaseString
90
90
  } from "./chunk-QSJ3HFEF.js";
@@ -99,7 +99,7 @@ import {
99
99
  } from "./chunk-3EUW3WEO.js";
100
100
  import {
101
101
  extractCustomId
102
- } from "./chunk-SLOGKB7M.js";
102
+ } from "./chunk-TOW4E763.js";
103
103
  import {
104
104
  API_ENDPOINTS
105
105
  } from "./chunk-LCBAMY2M.js";
@@ -12,7 +12,7 @@ import {
12
12
  readAction,
13
13
  readRequestManager,
14
14
  resolveAgentReadServers
15
- } from "./chunk-NWT2WUCY.js";
15
+ } from "./chunk-L6RBX4L4.js";
16
16
  import {
17
17
  asyncThunkCreator,
18
18
  buildCreateSlice,
@@ -704,7 +704,7 @@ var dbSlice = createSliceWithThunks({
704
704
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
705
705
  read: create.asyncThunk(
706
706
  async (payload, thunkApi) => {
707
- const { readAction: readAction2 } = await import("./read-A23NKT3O.js");
707
+ const { readAction: readAction2 } = await import("./read-C7Y6LSBM.js");
708
708
  return readAction2(payload, thunkApi);
709
709
  },
710
710
  {
@@ -778,7 +778,7 @@ var dbSlice = createSliceWithThunks({
778
778
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
779
779
  share: create.asyncThunk(
780
780
  async (config, thunkApi) => {
781
- const { shareResourceAction } = await import("./action-6BM26ZYM.js");
781
+ const { shareResourceAction } = await import("./action-LG32A6DJ.js");
782
782
  return shareResourceAction(config, thunkApi);
783
783
  }
784
784
  ),
@@ -199,7 +199,7 @@ async function readDocFunc(args, thunkApi) {
199
199
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
200
200
  }
201
201
  try {
202
- const { readAction } = await import("./read-A23NKT3O.js");
202
+ const { readAction } = await import("./read-C7Y6LSBM.js");
203
203
  const pageData = await readAction({ dbKey: id }, thunkApi);
204
204
  if (!pageData) {
205
205
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -3,7 +3,7 @@ import {
3
3
  prepareAndPersistMessage,
4
4
  uiAskChoiceFunc,
5
5
  uiAskChoiceFunctionSchema
6
- } from "./chunk-RD6AOXQI.js";
6
+ } from "./chunk-UFL6WHHJ.js";
7
7
  import {
8
8
  require_date_fns
9
9
  } from "./chunk-M76ECQRD.js";
@@ -24,7 +24,7 @@ import {
24
24
  removeCachedEntity,
25
25
  upsertSSREntity,
26
26
  write
27
- } from "./chunk-JYSXE6LE.js";
27
+ } from "./chunk-G2BZ43DV.js";
28
28
  import {
29
29
  createAgentKey,
30
30
  createDialogKey,
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-U6VC4MU4.js";
49
49
  import {
50
50
  extractCustomId
51
- } from "./chunk-SLOGKB7M.js";
51
+ } from "./chunk-TOW4E763.js";
52
52
  import {
53
53
  isRecord
54
54
  } from "./chunk-KUG52IAP.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-WX3ZOSTL.js";
8
8
  import {
9
9
  buildLocalAgentLookupKeys
10
- } from "./chunk-STOUEEBU.js";
10
+ } from "./chunk-R3JSTDQO.js";
11
11
  import {
12
12
  LOCAL_CODEX_AGENT_ID,
13
13
  LOCAL_CODEX_AGENT_KEY,
@@ -16,11 +16,11 @@ import {
16
16
  } from "./chunk-VHBWHNVT.js";
17
17
  import {
18
18
  inferCaptureIntent
19
- } from "./chunk-3LJ4RSSF.js";
19
+ } from "./chunk-W2LZV5GE.js";
20
20
  import {
21
21
  inlineImageUrlsForCustomProvider,
22
22
  prepareTools
23
- } from "./chunk-4MCHUZUI.js";
23
+ } from "./chunk-32ZM6HVI.js";
24
24
  import {
25
25
  getAntigravityUserAgent,
26
26
  isAntigravityOAuthAgent,
@@ -35,7 +35,7 @@ import {
35
35
  rememberMemoryFunctionSchema,
36
36
  resolveAgentRequiredPackIds,
37
37
  setTodoListFunc
38
- } from "./chunk-2AX4ZWSG.js";
38
+ } from "./chunk-WMB7GVPN.js";
39
39
  import {
40
40
  createDrainExhaustedResponse,
41
41
  isCoreDrainingBody,
@@ -49,13 +49,13 @@ import {
49
49
  applyTokenUsageToDayStats,
50
50
  prepareTokenUsageData,
51
51
  runKeyed
52
- } from "./chunk-RD6AOXQI.js";
52
+ } from "./chunk-UFL6WHHJ.js";
53
53
  import {
54
54
  BUILTIN_TITLE_LLM_CONFIG
55
55
  } from "./chunk-XOIF2TNF.js";
56
56
  import {
57
57
  fetchServerSyncedCredential
58
- } from "./chunk-MUI34IA2.js";
58
+ } from "./chunk-RJBTU7AS.js";
59
59
  import {
60
60
  require_date_fns
61
61
  } from "./chunk-M76ECQRD.js";
@@ -89,7 +89,7 @@ import {
89
89
  readOpenAiCompatibleSseCompletion,
90
90
  resolveAgentNextAvailableAt,
91
91
  resolveOpenAiCompatibleProviderConfig
92
- } from "./chunk-33K2M3AU.js";
92
+ } from "./chunk-KEF5OBOZ.js";
93
93
  import {
94
94
  buildPlatformChatCompletionRequest,
95
95
  canUsePlatformChatProvider,
@@ -106,7 +106,7 @@ import {
106
106
  import {
107
107
  resolveHistoricalToolContentCap,
108
108
  summarizeToolArguments
109
- } from "./chunk-P6TB7JIA.js";
109
+ } from "./chunk-Z54ZAZZC.js";
110
110
  import {
111
111
  convertMessagesToResponsesInput,
112
112
  toResponsesTools
@@ -118,14 +118,14 @@ import {
118
118
  buildNoloWorkspaceOpenAiTools,
119
119
  parseNoloWorkspaceToolArguments,
120
120
  resolveRuntimeToolSurfaceForAgent
121
- } from "./chunk-PFTK5SEB.js";
121
+ } from "./chunk-UEOPA6MV.js";
122
122
  import {
123
123
  buildDialogFallbackTitleFromUserInput,
124
124
  normalizeDialogTitle
125
125
  } from "./chunk-2MBTWINN.js";
126
126
  import {
127
127
  resolveBuiltinPlatformAgentConfig
128
- } from "./chunk-PMSG3OGF.js";
128
+ } from "./chunk-HYSJHRWD.js";
129
129
  import {
130
130
  clipCompactText
131
131
  } from "./chunk-5MMAK75Q.js";
@@ -202,7 +202,7 @@ import {
202
202
  } from "./chunk-QSJ3HFEF.js";
203
203
  import {
204
204
  isSystemBuiltinTrustedAgentKey
205
- } from "./chunk-NWT2WUCY.js";
205
+ } from "./chunk-L6RBX4L4.js";
206
206
  import {
207
207
  isRecord
208
208
  } from "./chunk-KUG52IAP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-YRMUYZ5H.js";
3
+ } from "./chunk-BBGRJB5E.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -4,6 +4,11 @@ import {
4
4
  import {
5
5
  getModelAbility
6
6
  } from "./chunk-L3QFIBZG.js";
7
+ import {
8
+ isOwnedAgentKey,
9
+ ownedAgentKey,
10
+ publicAgentKey
11
+ } from "./chunk-TOW4E763.js";
7
12
 
8
13
  // packages/ai/agent/safeAgentSummary.ts
9
14
  function parseTimestamp(val) {
@@ -49,9 +54,9 @@ function resolveFavoriteStatus(record, options) {
49
54
  if (typeof record?.publicKey === "string" && record.publicKey) candidateKeys.push(record.publicKey);
50
55
  if (typeof record?.id === "string" && record.id) {
51
56
  candidateKeys.push(record.id);
52
- candidateKeys.push(`agent-pub-${record.id}`);
57
+ candidateKeys.push(publicAgentKey(record.id));
53
58
  if (options?.userId) {
54
- candidateKeys.push(`agent-${options.userId}-${record.id}`);
59
+ candidateKeys.push(ownedAgentKey(options.userId, record.id));
55
60
  }
56
61
  }
57
62
  let matched = false;
@@ -90,7 +95,7 @@ function toSafeAgentSummary(record, options) {
90
95
  if (typeof record?.publicKey === "string" && record.publicKey && !publicRecordDenied) {
91
96
  publicKey = record.publicKey;
92
97
  } else if (publicRecordConfirmed && id) {
93
- publicKey = `agent-pub-${id}`;
98
+ publicKey = publicAgentKey(id);
94
99
  }
95
100
  const name = typeof record?.name === "string" && record.name ? record.name : "(unnamed)";
96
101
  const handle = typeof record?.handle === "string" && record.handle ? record.handle : null;
@@ -109,16 +114,15 @@ function toSafeAgentSummary(record, options) {
109
114
  const nextAvailableAt = typeof record?.nextAvailableAt === "number" && Number.isFinite(record.nextAvailableAt) ? record.nextAvailableAt : void 0;
110
115
  const currentUserId = options?.userId;
111
116
  const isOwnedByRecord = Boolean(currentUserId) && (typeof record?.userId === "string" && record.userId === currentUserId || typeof record?.ownerId === "string" && record.ownerId === currentUserId);
112
- const ownKeyPrefix = currentUserId ? `agent-${currentUserId}-` : "";
113
- const ownedKey = ownKeyPrefix ? [record?.dbKey, record?.privateKey].find(
114
- (key) => typeof key === "string" && key.startsWith(ownKeyPrefix)
117
+ const ownedKey = currentUserId ? [record?.dbKey, record?.privateKey].find(
118
+ (key) => isOwnedAgentKey(key, currentUserId)
115
119
  ) : void 0;
116
120
  const isOwned = isOwnedByRecord || Boolean(ownedKey);
117
121
  const isOAuth = isOAuthApiKeyRef(record?.apiKeyRef);
118
122
  let agentKey;
119
123
  if (currentUserId) {
120
124
  if (isOwned) {
121
- agentKey = ownedKey ?? (id ? id.startsWith(ownKeyPrefix) ? id : `${ownKeyPrefix}${id}` : void 0);
125
+ agentKey = ownedKey ?? (id ? ownedAgentKey(currentUserId, id) : void 0);
122
126
  } else if (publicKey) {
123
127
  agentKey = publicKey;
124
128
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-ENUJPSZN.js";
4
+ } from "./chunk-R7LOFGRE.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -6,21 +6,21 @@ import {
6
6
  } from "./chunk-L3QFIBZG.js";
7
7
  import {
8
8
  addContentAction
9
- } from "./chunk-DBUNOYLF.js";
9
+ } from "./chunk-JSB4N6NU.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-JYSXE6LE.js";
12
+ } from "./chunk-G2BZ43DV.js";
13
13
  import {
14
14
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
15
15
  PUBLIC_KIMI_K26_IMAGE_AGENT_KEY,
16
16
  builtinRuntimeFallbackEntries
17
- } from "./chunk-NWT2WUCY.js";
17
+ } from "./chunk-L6RBX4L4.js";
18
18
  import {
19
19
  getRuntimeServerContext
20
20
  } from "./chunk-XMLRJUU5.js";
21
21
  import {
22
22
  publicAgentKey
23
- } from "./chunk-SLOGKB7M.js";
23
+ } from "./chunk-TOW4E763.js";
24
24
  import {
25
25
  API_ENDPOINTS
26
26
  } from "./chunk-LCBAMY2M.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-ENUJPSZN.js";
3
+ } from "./chunk-R7LOFGRE.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-JYSXE6LE.js";
6
+ } from "./chunk-G2BZ43DV.js";
7
7
  import {
8
8
  selectIdentityToken
9
9
  } from "./chunk-XMLRJUU5.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  patch,
3
3
  read
4
- } from "./chunk-JYSXE6LE.js";
4
+ } from "./chunk-G2BZ43DV.js";
5
5
  import {
6
6
  DEVICE_LOCAL_OWNER_ID,
7
7
  isDeviceLocalSpaceBody,
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  parseToolArgumentsJson,
10
10
  resolveHistoricalToolContentCap
11
- } from "./chunk-P6TB7JIA.js";
11
+ } from "./chunk-Z54ZAZZC.js";
12
12
  import {
13
13
  createThinkParserState,
14
14
  createToolCallAccumulator,
@@ -33,7 +33,7 @@ import {
33
33
  buildNoloWorkspaceCommandArgs,
34
34
  noloStringArg,
35
35
  parseNoloWorkspaceToolArguments
36
- } from "./chunk-PFTK5SEB.js";
36
+ } from "./chunk-UEOPA6MV.js";
37
37
  import {
38
38
  buildDialogFallbackTitleFromUserInput
39
39
  } from "./chunk-2MBTWINN.js";
@@ -446,17 +446,6 @@ public class NoloCredNative {
446
446
  }
447
447
  `.trim();
448
448
 
449
- // packages/agent-runtime/agentRecordKeys.ts
450
- function buildAgentRuntimeAgentLookupKeys(args) {
451
- if (/^agent(-pub)?-/.test(args.agentRef)) {
452
- return [args.agentRef];
453
- }
454
- return [`agent-${args.userId}-${args.agentRef}`, `agent-pub-${args.agentRef}`];
455
- }
456
- function shouldFetchAgentRuntimeRecordRemotely(dbKey) {
457
- return /^agent(-pub)?-/.test(dbKey);
458
- }
459
-
460
449
  // packages/agent-runtime/dialogMessageRecord.ts
461
450
  function dialogMessageRecordToAgentRuntimeMessage(record) {
462
451
  if (!record || typeof record !== "object") return null;
@@ -4154,8 +4143,6 @@ export {
4154
4143
  readOpenAiCompatibleSseCompletion,
4155
4144
  executeOpenAiCompatibleChatCompletion,
4156
4145
  resolveOpenAiCompatibleProviderConfig,
4157
- buildAgentRuntimeAgentLookupKeys,
4158
- shouldFetchAgentRuntimeRecordRemotely,
4159
4146
  dialogMessageRecordToAgentRuntimeMessage,
4160
4147
  buildAgentRuntimeDialogWritePlan,
4161
4148
  shouldCacheHybridRemoteRecord,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-GBRG75BQ.js";
21
21
  import {
22
22
  publicAgentKey
23
- } from "./chunk-SLOGKB7M.js";
23
+ } from "./chunk-TOW4E763.js";
24
24
  import {
25
25
  NOLO_CLUSTER_SERVERS,
26
26
  normalizeKnownServerOrigin
@@ -1,13 +1,20 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-MHHYH3JA.js";
4
+ } from "./chunk-DF7SMWEV.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-I5TJCJQP.js";
7
+ } from "./chunk-QC6ZWDSV.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
- } from "./chunk-STRCGEC6.js";
10
+ } from "./chunk-HRJEPMZY.js";
11
+ import {
12
+ PUBLIC_AGENT_KEY_PREFIX,
13
+ isOwnedAgentKey,
14
+ ownedAgentKey,
15
+ parseOwnedAgentId,
16
+ publicAgentKey
17
+ } from "./chunk-TOW4E763.js";
11
18
 
12
19
  // packages/cli/agentListHelpers.ts
13
20
  function parseAgentRecordId(privateKey, explicitId) {
@@ -17,15 +24,15 @@ function parseAgentRecordId(privateKey, explicitId) {
17
24
  }
18
25
  function buildCompanionKeys(rawId, userId) {
19
26
  return {
20
- privateKey: `agent-${userId}-${rawId}`,
21
- publicKey: `agent-pub-${rawId}`
27
+ privateKey: ownedAgentKey(userId, rawId),
28
+ publicKey: publicAgentKey(rawId)
22
29
  };
23
30
  }
24
31
  function normalizeListedAgent(record) {
25
32
  const privateKey = typeof record?.dbKey === "string" ? record.dbKey : "";
26
33
  const explicitId = typeof record?.id === "string" && record.id ? record.id : void 0;
27
34
  const ownerUserId = typeof record?.userId === "string" ? record.userId : "";
28
- const rawId = explicitId || (ownerUserId && privateKey.startsWith(`agent-${ownerUserId}-`) ? privateKey.slice(`agent-${ownerUserId}-`.length) : parseAgentRecordId(privateKey, explicitId));
35
+ const rawId = explicitId || (ownerUserId ? parseOwnedAgentId(privateKey, ownerUserId) : null) || parseAgentRecordId(privateKey, explicitId);
29
36
  if (!privateKey || !rawId || !ownerUserId) return null;
30
37
  const keys = buildCompanionKeys(rawId, ownerUserId);
31
38
  const credentialConfigured = agentRecordHasConfiguredCredential(record);
@@ -83,11 +90,11 @@ async function listLocalCachedAgents(args) {
83
90
  const publicKeys = /* @__PURE__ */ new Set();
84
91
  for await (const [key, value] of args.db.iterator({ gte: "", lte: "\uFFFF" })) {
85
92
  if (typeof key !== "string" || !value || typeof value !== "object") continue;
86
- if (key.startsWith(`agent-${args.userId}-`)) {
93
+ if (isOwnedAgentKey(key, args.userId)) {
87
94
  privateRecords.set(key, { ...value, dbKey: key });
88
95
  continue;
89
96
  }
90
- if (key.startsWith("agent-pub-")) {
97
+ if (key.startsWith(PUBLIC_AGENT_KEY_PREFIX)) {
91
98
  publicKeys.add(key);
92
99
  }
93
100
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-WNENLKKI.js";
4
+ } from "./chunk-FVOSIYXM.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -5,10 +5,10 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-4MCHUZUI.js";
8
+ } from "./chunk-32ZM6HVI.js";
9
9
  import {
10
10
  performFetchRequest
11
- } from "./chunk-WNENLKKI.js";
11
+ } from "./chunk-FVOSIYXM.js";
12
12
  import {
13
13
  createSSEParser,
14
14
  createToolRunId,
@@ -19,7 +19,7 @@ import {
19
19
  toolRunSetPending,
20
20
  toolRunStarted,
21
21
  toolRunSucceeded
22
- } from "./chunk-2AX4ZWSG.js";
22
+ } from "./chunk-WMB7GVPN.js";
23
23
  import {
24
24
  getPublicImageAgentMode
25
25
  } from "./chunk-VIDPVFP3.js";
@@ -29,13 +29,13 @@ import {
29
29
  messageStreaming,
30
30
  selectCurrentSpaceId,
31
31
  updateToolMessage
32
- } from "./chunk-RD6AOXQI.js";
32
+ } from "./chunk-UFL6WHHJ.js";
33
33
  import {
34
34
  streamAgentChatTurn
35
- } from "./chunk-MUI34IA2.js";
35
+ } from "./chunk-RJBTU7AS.js";
36
36
  import {
37
37
  EMPTY_ASSISTANT_REPAIR_PROMPT
38
- } from "./chunk-P6TB7JIA.js";
38
+ } from "./chunk-Z54ZAZZC.js";
39
39
  import {
40
40
  accumulateToolCallDelta,
41
41
  createThinkParserState,
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-N7J63Q6C.js";
48
48
  import {
49
49
  getModelInfo
50
- } from "./chunk-PMSG3OGF.js";
50
+ } from "./chunk-HYSJHRWD.js";
51
51
  import {
52
52
  getApiEndpoint
53
53
  } from "./chunk-GT3GG2H7.js";
@@ -61,10 +61,10 @@ import {
61
61
  } from "./chunk-HNMXYYJR.js";
62
62
  import {
63
63
  selectCurrentServer
64
- } from "./chunk-ENUJPSZN.js";
64
+ } from "./chunk-R7LOFGRE.js";
65
65
  import {
66
66
  write
67
- } from "./chunk-JYSXE6LE.js";
67
+ } from "./chunk-G2BZ43DV.js";
68
68
  import {
69
69
  createDialogMessageKeyAndId,
70
70
  dialogMessageKey,
@@ -82,7 +82,7 @@ import {
82
82
  } from "./chunk-3EUW3WEO.js";
83
83
  import {
84
84
  extractCustomId
85
- } from "./chunk-SLOGKB7M.js";
85
+ } from "./chunk-TOW4E763.js";
86
86
  import {
87
87
  isRecord
88
88
  } from "./chunk-KUG52IAP.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-QSJ3HFEF.js";
10
10
  import {
11
11
  extractCustomId
12
- } from "./chunk-SLOGKB7M.js";
12
+ } from "./chunk-TOW4E763.js";
13
13
  import {
14
14
  isRecord
15
15
  } from "./chunk-KUG52IAP.js";
@@ -19,7 +19,7 @@ import {
19
19
  parseAgentRunEvent,
20
20
  t,
21
21
  toolLabel
22
- } from "./chunk-XMAMUPXU.js";
22
+ } from "./chunk-H5S4XUGI.js";
23
23
  import {
24
24
  getReadableCliDb
25
25
  } from "./chunk-WFHXMLHZ.js";
@@ -27,7 +27,7 @@ import {
27
27
  normalizeAgentHandle,
28
28
  readDbRecord,
29
29
  resolveAgentRecordFromHybridStore
30
- } from "./chunk-I5TJCJQP.js";
30
+ } from "./chunk-QC6ZWDSV.js";
31
31
  import {
32
32
  NOLO_PROJECT_MANAGER_AGENT_KEY,
33
33
  isLocalCliAgentKey
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-LTRXGFMS.js";
39
39
  import {
40
40
  formatAgentListCard
41
- } from "./chunk-2AX4ZWSG.js";
41
+ } from "./chunk-WMB7GVPN.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-RQSOAMPJ.js";
@@ -50,12 +50,12 @@ import {
50
50
  chooseMemoryOwners,
51
51
  loadMemoryCandidatesFromDb,
52
52
  resolveAgentMemoryPolicy
53
- } from "./chunk-7CP4UOUV.js";
53
+ } from "./chunk-GMJS5AYP.js";
54
54
  import {
55
55
  API_REPORTED_COST_MULTIPLIER,
56
56
  normalizeUsage,
57
57
  parseUiAskChoiceContent
58
- } from "./chunk-RD6AOXQI.js";
58
+ } from "./chunk-UFL6WHHJ.js";
59
59
  import {
60
60
  buildSkillDiscoveryContextLayer
61
61
  } from "./chunk-ZVZMT3EA.js";
@@ -71,7 +71,7 @@ import {
71
71
  LOCAL_TURN_ABORTED_CODE,
72
72
  readActionGate,
73
73
  readCommandActionGatePayload
74
- } from "./chunk-P6TB7JIA.js";
74
+ } from "./chunk-Z54ZAZZC.js";
75
75
  import {
76
76
  createThinkParserState,
77
77
  flushThinkParser,
@@ -83,7 +83,7 @@ import {
83
83
  import {
84
84
  DEFAULT_CONTEXT_WINDOW,
85
85
  getModelContextWindow
86
- } from "./chunk-PMSG3OGF.js";
86
+ } from "./chunk-HYSJHRWD.js";
87
87
  import {
88
88
  clipCompactText
89
89
  } from "./chunk-5MMAK75Q.js";
@@ -141,7 +141,7 @@ import {
141
141
  BUILTIN_NOLO_AGENT_KEY,
142
142
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
143
143
  PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
144
- } from "./chunk-NWT2WUCY.js";
144
+ } from "./chunk-L6RBX4L4.js";
145
145
  import {
146
146
  asTrimmedString
147
147
  } from "./chunk-3EUW3WEO.js";
@@ -3483,7 +3483,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
3483
3483
  // packages/cli/client/agentRun.ts
3484
3484
  import { ulid } from "ulid";
3485
3485
  async function loadRunLocalAgentTurn() {
3486
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-VI3NHLDU.js");
3486
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-PC5RRRPT.js");
3487
3487
  return runLocalAgentTurn;
3488
3488
  }
3489
3489
  async function resolveCurrentMachineId(options) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
3
  shouldReadAgentKeyRemotely
4
- } from "./chunk-STOUEEBU.js";
4
+ } from "./chunk-R3JSTDQO.js";
5
5
  import {
6
6
  resolveCliAgentKeyInput
7
7
  } from "./chunk-VHBWHNVT.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-33K2M3AU.js";
4
+ } from "./chunk-UEOPA6MV.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -13,7 +13,7 @@ import {
13
13
  toTimestampMs,
14
14
  upsert,
15
15
  write
16
- } from "./chunk-JYSXE6LE.js";
16
+ } from "./chunk-G2BZ43DV.js";
17
17
  import {
18
18
  createUserKey,
19
19
  createUserPreferenceKey,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-QSJ3HFEF.js";
25
25
  import {
26
26
  BUILTIN_NOLO_AGENT_KEY
27
- } from "./chunk-NWT2WUCY.js";
27
+ } from "./chunk-L6RBX4L4.js";
28
28
  import {
29
29
  asyncThunkCreator,
30
30
  buildCreateSlice,