nolo-cli 0.95.1 → 0.95.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 (62) hide show
  1. package/{_executeModel-2A5AFVBG.js → _executeModel-FHVKWYM6.js} +12 -11
  2. package/{agentDeleteCommand-QYCCUQ35.js → agentDeleteCommand-DOLMLJZY.js} +2 -2
  3. package/{agentEmailCommands-IX6COKHS.js → agentEmailCommands-VCSJEPS5.js} +12 -11
  4. package/{agentListCommands-JDU7V3M5.js → agentListCommands-KDUUK43W.js} +5 -4
  5. package/{agentMachineCommands-W36VFO5M.js → agentMachineCommands-T4S2SKM7.js} +2 -2
  6. package/{agentProviderCommands-YK2BIIXZ.js → agentProviderCommands-EMZCM6VA.js} +1 -1
  7. package/{agentRecordCommands-JGOTOBTW.js → agentRecordCommands-KWYFBGGM.js} +12 -11
  8. package/{agentRunCommand-LJBG6YF2.js → agentRunCommand-TSJYA3FG.js} +12 -11
  9. package/{agentSlice-FZ7GGQM2.js → agentSlice-TAN3VE3F.js} +1 -1
  10. package/{appDeleteCommands-IP22BHZE.js → appDeleteCommands-NP3I5YYM.js} +3 -3
  11. package/{appDeployCommands-5ZTQL6UL.js → appDeployCommands-IYN5MAGE.js} +3 -3
  12. package/{appDeployStatusCommands-G6EMAT75.js → appDeployStatusCommands-OYXWAOZY.js} +3 -3
  13. package/{appGetCommands-UXBDAYEM.js → appGetCommands-REZRXL5C.js} +3 -3
  14. package/{appListCommands-J274GTVP.js → appListCommands-BWBQVCHS.js} +3 -3
  15. package/{chatQueueReduxAdapter-PRP4YQP7.js → chatQueueReduxAdapter-LUITNDHM.js} +2 -2
  16. package/{chunk-LVITW736.js → chunk-45LEXXBA.js} +1 -1
  17. package/{chunk-WIU4KIBL.js → chunk-46QN2LLF.js} +2 -2
  18. package/{chunk-K5UOP7AI.js → chunk-5HA43UJR.js} +2 -2
  19. package/{chunk-2QZTQEW4.js → chunk-73UI35ZR.js} +8 -8
  20. package/{chunk-BJJL5DZF.js → chunk-747P46PX.js} +1 -1
  21. package/{chunk-67HHBCFJ.js → chunk-7IJ3GSRH.js} +1 -1
  22. package/{chunk-RQNHAVSR.js → chunk-BOXCA27H.js} +1 -1
  23. package/{chunk-ALFH24P3.js → chunk-DAWDCRIG.js} +26 -1
  24. package/{chunk-RS4XOX6Y.js → chunk-DSGNKZJQ.js} +3 -3
  25. package/{chunk-4MPGAOXS.js → chunk-GTOC7LZK.js} +3 -3
  26. package/{chunk-6RDFAKG7.js → chunk-HFVB2C5R.js} +2 -2
  27. package/{chunk-5B7XS6UO.js → chunk-HP2HV7RZ.js} +7 -0
  28. package/{chunk-BVWTQJAA.js → chunk-JHIBHYFI.js} +5 -5
  29. package/{chunk-LYS4T7MY.js → chunk-JQ3LMOON.js} +5 -5
  30. package/{chunk-4RTK7EHT.js → chunk-NZI2ZYHG.js} +5 -5
  31. package/{chunk-M3LRSBOX.js → chunk-QXWGM7NK.js} +1 -1
  32. package/{chunk-QYFBT4CV.js → chunk-QZIMXTVA.js} +2 -2
  33. package/{chunk-IUVCUGQR.js → chunk-SDAPKV2N.js} +1 -1
  34. package/{chunk-67T7O467.js → chunk-SN2U5EE7.js} +1 -1
  35. package/{chunk-4B4DAAFV.js → chunk-WMWWWEOD.js} +3 -3
  36. package/{chunk-HZH7RULB.js → chunk-ZB74UNQO.js} +9 -9
  37. package/{chunk-RKGKDQGJ.js → chunk-ZGESTNDD.js} +6 -3
  38. package/{commandRegistry-ESFYIRF4.js → commandRegistry-QOHT7JSU.js} +42 -42
  39. package/{contentThunks-ECQ6KK3I.js → contentThunks-IZNZSYYA.js} +3 -3
  40. package/{createAgentAutomationAction-6EES5YQO.js → createAgentAutomationAction-CXAH6ILC.js} +3 -3
  41. package/{createDialogAction-JTKMM4VG.js → createDialogAction-SWNFDMW7.js} +4 -4
  42. package/{createPageAction-WQZTMGAG.js → createPageAction-FLSNADKO.js} +3 -3
  43. package/{dialogCommands-XXZH5K6U.js → dialogCommands-HGPLTR7F.js} +3 -3
  44. package/{dialogSlice-I6GN3I5B.js → dialogSlice-YQYHIFM2.js} +2 -2
  45. package/{docCreateCommands-FLNUDWG6.js → docCreateCommands-JF7ESYW4.js} +2 -2
  46. package/{docDeleteCommands-74OURFAB.js → docDeleteCommands-AW73ITQG.js} +3 -3
  47. package/{docReadCommands-QENWDQVH.js → docReadCommands-EBDXJIOQ.js} +2 -2
  48. package/{docStore-B2ZM4PCR.js → docStore-L53U56P2.js} +1 -1
  49. package/{docUpdateCommands-J4HWJ5JO.js → docUpdateCommands-CWY6K7MV.js} +2 -2
  50. package/{handleSendMessageAction-BAUWHASB.js → handleSendMessageAction-KRJ6MAIU.js} +2 -2
  51. package/index.js +2 -2
  52. package/{machineCommands-SG3QGVOP.js → machineCommands-7APHQRKW.js} +11 -10
  53. package/{machineWsRunDispatch-RTFT3ZDL.js → machineWsRunDispatch-NB4P2AAX.js} +11 -10
  54. package/package.json +1 -1
  55. package/{providerPresetApply-DD6NGWW6.js → providerPresetApply-76AVU3HD.js} +1 -1
  56. package/{providerRegistry-XDRLMYGJ.js → providerRegistry-Z62NC45X.js} +5 -1
  57. package/{readlineWorkspace-MCNBLA56.js → readlineWorkspace-BMLSOADY.js} +15 -14
  58. package/{runAgentClientLoop-XDPBFXV2.js → runAgentClientLoop-AWNTP65H.js} +10 -9
  59. package/{spaceCommands-BYDGOMW7.js → spaceCommands-RGR6F3DS.js} +2 -2
  60. package/{streamAgentChatTurn-BBH3QDEZ.js → streamAgentChatTurn-2ESML36B.js} +11 -10
  61. package/{tools-OQWSBQJA.js → tools-EPBZAWEI.js} +8 -7
  62. package/{updateDialogTitleAction-E25IG3J3.js → updateDialogTitleAction-N2HDHPVN.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-LYS4T7MY.js";
3
+ } from "./chunk-JQ3LMOON.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-CTUQJVQM.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-M3LRSBOX.js";
15
+ } from "./chunk-QXWGM7NK.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-SV5IJK6K.js";
@@ -212,7 +212,7 @@ async function runAgentCreateCommand(args, deps = {}) {
212
212
  clearCliLocalRuntimePreparedAgentCache();
213
213
  let verifyResult;
214
214
  if (parsed.verify) {
215
- const { verifyCustomProvider } = await import("./agentProviderCommands-YK2BIIXZ.js");
215
+ const { verifyCustomProvider } = await import("./agentProviderCommands-EMZCM6VA.js");
216
216
  const rec = built.nextRecord;
217
217
  verifyResult = await verifyCustomProvider({
218
218
  providerUrl: rec.customProviderUrl,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  clipMultilineText,
9
9
  fetchAndSerializeTable
10
- } from "./chunk-HZH7RULB.js";
10
+ } from "./chunk-ZB74UNQO.js";
11
11
  import {
12
12
  isGatewayHttpStatus
13
13
  } from "./chunk-NF64D32W.js";
@@ -29,13 +29,13 @@ import {
29
29
  } from "./chunk-MEYIRKDN.js";
30
30
  import {
31
31
  fetchAndCacheMessages
32
- } from "./chunk-2QZTQEW4.js";
32
+ } from "./chunk-73UI35ZR.js";
33
33
  import {
34
34
  shouldUseServerProxy
35
35
  } from "./chunk-YYLHWIW6.js";
36
36
  import {
37
37
  fetchServerSyncedCredential
38
- } from "./chunk-4B4DAAFV.js";
38
+ } from "./chunk-WMWWWEOD.js";
39
39
  import {
40
40
  buildSkillGuidancePromptBlock,
41
41
  extractRuntimePageCapabilities,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-HZH7RULB.js";
3
+ } from "./chunk-ZB74UNQO.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-2QZTQEW4.js";
6
+ } from "./chunk-73UI35ZR.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-XUWRURDF.js";
@@ -1,3 +1,7 @@
1
+ import {
2
+ isSubscriptionEndpoint,
3
+ isSubscriptionOAuthCredential
4
+ } from "./chunk-DAWDCRIG.js";
1
5
  import {
2
6
  isOAuthApiKeyRef
3
7
  } from "./chunk-YYLHWIW6.js";
@@ -39,6 +43,9 @@ function resolveBillingSource(candidate) {
39
43
  }
40
44
  if (candidate?.isOAuth === true || candidate?.billingSource === "user_subscription" || candidate?.apiSource === "oauth" || isOAuthApiKeyRef(candidate?.apiKeyRef)) return "user_subscription";
41
45
  if (candidate?.apiSource === "custom" || candidate?.billingSource === "user_api") {
46
+ if (isSubscriptionEndpoint(candidate?.customProviderUrl) || isSubscriptionOAuthCredential(candidate?.apiKeyRef)) {
47
+ return "user_subscription";
48
+ }
42
49
  return "user_api";
43
50
  }
44
51
  return "platform_credits";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-6RDFAKG7.js";
8
+ } from "./chunk-HFVB2C5R.js";
9
9
  import {
10
10
  parseApiError
11
11
  } from "./chunk-OCZKATRC.js";
@@ -15,7 +15,7 @@ import {
15
15
  parseToolCallArguments,
16
16
  performFetchRequest,
17
17
  sanitizeOutboundMessages
18
- } from "./chunk-4MPGAOXS.js";
18
+ } from "./chunk-GTOC7LZK.js";
19
19
  import {
20
20
  createSSEParser,
21
21
  createToolRunId,
@@ -26,7 +26,7 @@ import {
26
26
  toolRunSetPending,
27
27
  toolRunStarted,
28
28
  toolRunSucceeded
29
- } from "./chunk-HZH7RULB.js";
29
+ } from "./chunk-ZB74UNQO.js";
30
30
  import {
31
31
  getCurrentSpaceId
32
32
  } from "./chunk-ZJ7UHBJS.js";
@@ -35,10 +35,10 @@ import {
35
35
  messageStreamEnd,
36
36
  messageStreaming,
37
37
  updateToolMessage
38
- } from "./chunk-2QZTQEW4.js";
38
+ } from "./chunk-73UI35ZR.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-4B4DAAFV.js";
41
+ } from "./chunk-WMWWWEOD.js";
42
42
  import {
43
43
  addActiveController,
44
44
  removeActiveController,
@@ -66,7 +66,7 @@ import {
66
66
  import {
67
67
  inlineImageUrlsForCustomProvider,
68
68
  prepareTools
69
- } from "./chunk-6RDFAKG7.js";
69
+ } from "./chunk-HFVB2C5R.js";
70
70
  import {
71
71
  getServerProviderSecret
72
72
  } from "./chunk-HS7MLR74.js";
@@ -84,11 +84,11 @@ import {
84
84
  rememberMemoryFunctionSchema,
85
85
  resolveAgentRequiredPackIds,
86
86
  setTodoListFunc
87
- } from "./chunk-HZH7RULB.js";
87
+ } from "./chunk-ZB74UNQO.js";
88
88
  import {
89
89
  deriveCredentialGroup,
90
90
  deriveCustomProviderCredentialGroup
91
- } from "./chunk-5B7XS6UO.js";
91
+ } from "./chunk-HP2HV7RZ.js";
92
92
  import {
93
93
  fetchWithTransientRetry,
94
94
  isTransientFetchError
@@ -112,14 +112,14 @@ import {
112
112
  prepareTokenUsageData,
113
113
  resolveBuiltinPlatformAgentConfig,
114
114
  runKeyed
115
- } from "./chunk-2QZTQEW4.js";
115
+ } from "./chunk-73UI35ZR.js";
116
116
  import {
117
117
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
118
118
  BUILTIN_TITLE_LLM_CONFIG
119
119
  } from "./chunk-523DITKR.js";
120
120
  import {
121
121
  fetchServerSyncedCredential
122
- } from "./chunk-4B4DAAFV.js";
122
+ } from "./chunk-WMWWWEOD.js";
123
123
  import {
124
124
  getModelPricing
125
125
  } from "./chunk-4DPP773Q.js";
@@ -28,7 +28,7 @@ import {
28
28
  t,
29
29
  toolLabel,
30
30
  toolLabelVariants
31
- } from "./chunk-LYS4T7MY.js";
31
+ } from "./chunk-JQ3LMOON.js";
32
32
  import {
33
33
  clearCredentialAvailability,
34
34
  readCredentialEntry,
@@ -57,7 +57,7 @@ import {
57
57
  import {
58
58
  readDbRecord,
59
59
  resolveAgentRecordFromHybridStore
60
- } from "./chunk-M3LRSBOX.js";
60
+ } from "./chunk-QXWGM7NK.js";
61
61
  import {
62
62
  isLocalCliAgentKey
63
63
  } from "./chunk-SV5IJK6K.js";
@@ -89,7 +89,7 @@ import {
89
89
  } from "./chunk-LTRXGFMS.js";
90
90
  import {
91
91
  formatAgentListCard
92
- } from "./chunk-HZH7RULB.js";
92
+ } from "./chunk-ZB74UNQO.js";
93
93
  import {
94
94
  isGatewayHttpStatus
95
95
  } from "./chunk-NF64D32W.js";
@@ -110,11 +110,11 @@ import {
110
110
  chooseMemoryOwners,
111
111
  loadMemoryCandidatesFromDb,
112
112
  resolveAgentMemoryPolicy
113
- } from "./chunk-K5UOP7AI.js";
113
+ } from "./chunk-5HA43UJR.js";
114
114
  import {
115
115
  API_REPORTED_COST_MULTIPLIER,
116
116
  parseUiAskChoiceContent
117
- } from "./chunk-2QZTQEW4.js";
117
+ } from "./chunk-73UI35ZR.js";
118
118
  import {
119
119
  isOAuthApiKeyRef
120
120
  } from "./chunk-YYLHWIW6.js";
@@ -523,7 +523,7 @@ async function buildCreatedAgentRecord(args) {
523
523
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
524
524
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
525
525
  if (args.parsed.presetId) {
526
- const { resolveProviderPresetFields } = await import("./providerPresetApply-DD6NGWW6.js");
526
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-76AVU3HD.js");
527
527
  const fields = resolveProviderPresetFields(args.parsed.presetId);
528
528
  if (fields.kind === "manual") {
529
529
  throw new Error(
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-LYS4T7MY.js";
4
+ } from "./chunk-JQ3LMOON.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-HZH7RULB.js";
7
+ } from "./chunk-ZB74UNQO.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
10
  } from "./chunk-6IHBIRPK.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-M3LRSBOX.js";
4
+ } from "./chunk-QXWGM7NK.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-LVITW736.js";
10
+ } from "./chunk-45LEXXBA.js";
11
11
  import {
12
12
  isLevelLockError
13
13
  } from "./chunk-URMS4XY2.js";
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
304
304
  const overrides = {};
305
305
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
306
306
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
307
- const { _executeModel } = await import("./_executeModel-2A5AFVBG.js");
307
+ const { _executeModel } = await import("./_executeModel-FHVKWYM6.js");
308
308
  return _executeModel(
309
309
  {
310
310
  isStreaming: args.isStreaming ?? false,
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
325
325
  * - 循环直到无工具调用或触发其他运行时停止条件
326
326
  */
327
327
  runAgent: create.asyncThunk(async (args, thunkApi) => {
328
- const { runAgentClientLoop } = await import("./runAgentClientLoop-XDPBFXV2.js");
328
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-AWNTP65H.js");
329
329
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
330
330
  {
331
331
  agentKey: args.agentKey,
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
341
341
  * 聊天轮次流式 Agent 调用
342
342
  */
343
343
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
344
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-BBH3QDEZ.js");
344
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-2ESML36B.js");
345
345
  return streamAgentChatTurnHandler(args, thunkApi);
346
346
  }),
347
347
  /**
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  assembleAgentDiscoveryResult,
6
6
  resolveDiscoveryScope
7
- } from "./chunk-5B7XS6UO.js";
7
+ } from "./chunk-HP2HV7RZ.js";
8
8
  import {
9
9
  fetchWithTransientRetry
10
10
  } from "./chunk-5UTFL4QJ.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-I3QNET24.js";
36
36
  import {
37
37
  createDialogAction
38
- } from "./chunk-K5UOP7AI.js";
38
+ } from "./chunk-5HA43UJR.js";
39
39
  import {
40
40
  addMemberSpace,
41
41
  fetchAuthoritativeRemoteSpace,
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-VF4K2QE6.js";
60
60
  import {
61
61
  createDocState
62
- } from "./chunk-WIU4KIBL.js";
62
+ } from "./chunk-46QN2LLF.js";
63
63
  import {
64
64
  setDialogExtraReferencesAction
65
65
  } from "./chunk-DSSTTEKI.js";
@@ -98,7 +98,7 @@ import {
98
98
  updateContentCategory,
99
99
  updateContentTitle,
100
100
  writeStoredCollapsedCategories
101
- } from "./chunk-RQNHAVSR.js";
101
+ } from "./chunk-BOXCA27H.js";
102
102
  import {
103
103
  getCurrentSpaceId,
104
104
  getCurrentSpaceIdRaw,
@@ -120,14 +120,14 @@ import {
120
120
  selectMsgById,
121
121
  uiAskChoiceFunc,
122
122
  uiAskChoiceFunctionSchema
123
- } from "./chunk-2QZTQEW4.js";
123
+ } from "./chunk-73UI35ZR.js";
124
124
  import {
125
125
  createAgent,
126
126
  deleteServerSyncedCredential,
127
127
  runLlm,
128
128
  streamAgentChatTurn,
129
129
  updateAgent
130
- } from "./chunk-4B4DAAFV.js";
130
+ } from "./chunk-WMWWWEOD.js";
131
131
  import {
132
132
  getActiveDialogKey,
133
133
  selectCurrentDialogKey,
@@ -3983,7 +3983,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3983
3983
  const deletedDialogIds = [];
3984
3984
  const deletedDialogKeys = [];
3985
3985
  const failures = [];
3986
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-I6GN3I5B.js");
3986
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-YQYHIFM2.js");
3987
3987
  for (const target of targets) {
3988
3988
  try {
3989
3989
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -14893,7 +14893,7 @@ var executeToolRun = createAsyncThunk(
14893
14893
  if (!executionInput) {
14894
14894
  throw new Error(`ToolRun ${id} has no input to execute with.`);
14895
14895
  }
14896
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-OQWSBQJA.js");
14896
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-EPBZAWEI.js");
14897
14897
  const { executor } = findToolExecutor2(run.toolName);
14898
14898
  toolRunStarted({
14899
14899
  id: run.id,
@@ -17400,7 +17400,7 @@ async function updateDocFunc(args, thunkApi) {
17400
17400
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
17401
17401
  };
17402
17402
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
17403
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-B2ZM4PCR.js");
17403
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-L53U56P2.js");
17404
17404
  if (getDocState().pageKey === id) {
17405
17405
  applyExternalDocUpdate({
17406
17406
  slateData: finalSlateData,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-LVITW736.js";
4
+ } from "./chunk-45LEXXBA.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-M3LRSBOX.js";
7
+ } from "./chunk-QXWGM7NK.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-5B7XS6UO.js";
10
+ } from "./chunk-HP2HV7RZ.js";
11
11
  import {
12
12
  PUBLIC_AGENT_KEY_PREFIX,
13
13
  ownedAgentKey,
@@ -51,6 +51,9 @@ function normalizeListedAgent(record) {
51
51
  ...typeof record?.handle === "string" && record.handle ? { handle: record.handle } : {},
52
52
  ...typeof record?.introduction === "string" && record.introduction ? { introduction: record.introduction } : typeof record?.description === "string" && record.description ? { introduction: record.description } : {},
53
53
  ...typeof record?.provider === "string" && record.provider ? { provider: record.provider } : {},
54
+ // 仅供 resolveBillingSource 判定订阅端点(Step Plan / OpenCode Go 等),
55
+ // safe 投影不输出它。缺了它本地 agent list 会把订阅端点全报成 user_api。
56
+ ...typeof record?.customProviderUrl === "string" && record.customProviderUrl ? { customProviderUrl: record.customProviderUrl } : {},
54
57
  ...typeof record?.inputPrice === "number" && Number.isFinite(record.inputPrice) ? { inputPrice: record.inputPrice } : {},
55
58
  ...typeof record?.outputPrice === "number" && Number.isFinite(record.outputPrice) ? { outputPrice: record.outputPrice } : {},
56
59
  updatedAt: typeof record?.updatedAt === "string" || typeof record?.updatedAt === "number" ? record.updatedAt : typeof record?.createdAt === "string" || typeof record?.createdAt === "number" ? record.createdAt : typeof record?.created === "string" || typeof record?.created === "number" ? record.created : null,
@@ -103,7 +103,7 @@ function createDaemonShortcutCommand(path, description, command) {
103
103
  // packages/cli/agentInternalCommandEntries.ts
104
104
  function getAgentInternalCommandEntries() {
105
105
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
106
- const { runAgentRunCommand } = await import("./agentRunCommand-LJBG6YF2.js");
106
+ const { runAgentRunCommand } = await import("./agentRunCommand-TSJYA3FG.js");
107
107
  return runAgentRunCommand(args, {
108
108
  env: ctx.env,
109
109
  scriptDir: ctx.scriptDir,
@@ -115,19 +115,19 @@ function getAgentInternalCommandEntries() {
115
115
  createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
116
116
  createAgentRunCommand(["chat"], "Chat with an agent"),
117
117
  createEnvCommand(["agent", "list"], "List owned agents", async (args, deps) => {
118
- const { runAgentListCommand } = await import("./agentListCommands-JDU7V3M5.js");
118
+ const { runAgentListCommand } = await import("./agentListCommands-KDUUK43W.js");
119
119
  return runAgentListCommand(args, deps);
120
120
  }),
121
121
  createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
122
- const { runAgentCreateCommand } = await import("./agentRecordCommands-JGOTOBTW.js");
122
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-KWYFBGGM.js");
123
123
  return runAgentCreateCommand(args, deps);
124
124
  }),
125
125
  createEnvCommand(["agent", "models"], "List models available on an OpenAI-compatible provider", async (args, deps) => {
126
- const { runAgentModelsCommand } = await import("./agentProviderCommands-YK2BIIXZ.js");
126
+ const { runAgentModelsCommand } = await import("./agentProviderCommands-EMZCM6VA.js");
127
127
  return runAgentModelsCommand(args, deps);
128
128
  }),
129
129
  createEnvCommand(["agent", "providers"], "List agent-creation provider presets (subscription / metered / oauth)", async (args, deps) => {
130
- const { runAgentProvidersCommand } = await import("./agentProviderCommands-YK2BIIXZ.js");
130
+ const { runAgentProvidersCommand } = await import("./agentProviderCommands-EMZCM6VA.js");
131
131
  return runAgentProvidersCommand(args, deps);
132
132
  }),
133
133
  createEnvCommand(["agent", "pull"], "Cache an agent for local runs", async (args, deps) => {
@@ -135,7 +135,7 @@ function getAgentInternalCommandEntries() {
135
135
  return runAgentPullCommand(args, deps);
136
136
  }),
137
137
  createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
138
- const { runAgentReadCommand } = await import("./agentRecordCommands-JGOTOBTW.js");
138
+ const { runAgentReadCommand } = await import("./agentRecordCommands-KWYFBGGM.js");
139
139
  return runAgentReadCommand(args, deps);
140
140
  }),
141
141
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -164,31 +164,31 @@ function getAgentInternalCommandEntries() {
164
164
  return runSetupOfflineMarxistsAgentCommand(args, deps);
165
165
  }),
166
166
  createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
167
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-JGOTOBTW.js");
167
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-KWYFBGGM.js");
168
168
  return runAgentUpdateCommand(args, deps);
169
169
  }),
170
170
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
171
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-IX6COKHS.js");
171
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-VCSJEPS5.js");
172
172
  return runAgentEmailProvisionCommand(args, deps);
173
173
  }),
174
174
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
175
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-IX6COKHS.js");
175
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-VCSJEPS5.js");
176
176
  return runAgentEmailBindCommand(args, deps);
177
177
  }),
178
178
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
179
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-IX6COKHS.js");
179
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-VCSJEPS5.js");
180
180
  return runAgentEmailTransferCommand(args, deps);
181
181
  }),
182
182
  createEnvCommand(
183
183
  ["agent", "email", "create-and-provision"],
184
184
  "Create an agent and provision its controlled inbox",
185
185
  async (args, deps) => {
186
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-IX6COKHS.js");
186
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-VCSJEPS5.js");
187
187
  return runAgentEmailCreateAndProvisionCommand(args, deps);
188
188
  }
189
189
  ),
190
190
  createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
191
- const { runAgentDeleteCommand } = await import("./agentDeleteCommand-QYCCUQ35.js");
191
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-DOLMLJZY.js");
192
192
  return runAgentDeleteCommand(args, deps);
193
193
  }),
194
194
  createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
@@ -204,15 +204,15 @@ function getAgentInternalCommandEntries() {
204
204
  return runAgentRevokeGrantCommand(args, deps);
205
205
  }),
206
206
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
207
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-W36VFO5M.js");
207
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-T4S2SKM7.js");
208
208
  return runAgentBindCurrentCommand(args, deps);
209
209
  }),
210
210
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
211
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-W36VFO5M.js");
211
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-T4S2SKM7.js");
212
212
  return runAgentSmokeCurrentCommand(args, deps);
213
213
  }),
214
214
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
215
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-W36VFO5M.js");
215
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-T4S2SKM7.js");
216
216
  return runAgentRuntimeDoctorCommand(args, deps);
217
217
  }),
218
218
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -223,23 +223,23 @@ function getAgentInternalCommandEntries() {
223
223
  function getAppInternalCommandEntries() {
224
224
  return [
225
225
  createEnvCommand(["app", "list"], "List your apps", async (args, deps) => {
226
- const { runAppListCommand } = await import("./appListCommands-J274GTVP.js");
226
+ const { runAppListCommand } = await import("./appListCommands-BWBQVCHS.js");
227
227
  return runAppListCommand(args, deps);
228
228
  }),
229
229
  createEnvCommand(["app", "get"], "Get app details", async (args, deps) => {
230
- const { runAppGetCommand } = await import("./appGetCommands-UXBDAYEM.js");
230
+ const { runAppGetCommand } = await import("./appGetCommands-REZRXL5C.js");
231
231
  return runAppGetCommand(args, deps);
232
232
  }),
233
233
  createEnvCommand(["app", "deploy"], "Deploy an app", async (args, deps) => {
234
- const { runAppDeployCommand } = await import("./appDeployCommands-5ZTQL6UL.js");
234
+ const { runAppDeployCommand } = await import("./appDeployCommands-IYN5MAGE.js");
235
235
  return runAppDeployCommand(args, deps);
236
236
  }),
237
237
  createEnvCommand(["app", "deploy", "status"], "Check app deploy status", async (args, deps) => {
238
- const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-G6EMAT75.js");
238
+ const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-OYXWAOZY.js");
239
239
  return runAppDeployStatusCommand(args, deps);
240
240
  }),
241
241
  createEnvCommand(["app", "delete"], "Delete an app", async (args, deps) => {
242
- const { runAppDeleteCommand } = await import("./appDeleteCommands-IP22BHZE.js");
242
+ const { runAppDeleteCommand } = await import("./appDeleteCommands-NP3I5YYM.js");
243
243
  return runAppDeleteCommand(args, deps);
244
244
  })
245
245
  ];
@@ -317,27 +317,27 @@ function getChromeInternalCommandEntries() {
317
317
  function getDialogInternalCommandEntries() {
318
318
  return [
319
319
  createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
320
- const { runDialogSearchCommand } = await import("./dialogCommands-XXZH5K6U.js");
320
+ const { runDialogSearchCommand } = await import("./dialogCommands-HGPLTR7F.js");
321
321
  return runDialogSearchCommand(args, deps);
322
322
  }),
323
323
  createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
324
- const { runDialogListCommand } = await import("./dialogCommands-XXZH5K6U.js");
324
+ const { runDialogListCommand } = await import("./dialogCommands-HGPLTR7F.js");
325
325
  return runDialogListCommand(args, deps);
326
326
  }),
327
327
  createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
328
- const { runDialogDeleteCommand } = await import("./dialogCommands-XXZH5K6U.js");
328
+ const { runDialogDeleteCommand } = await import("./dialogCommands-HGPLTR7F.js");
329
329
  return runDialogDeleteCommand(args, deps);
330
330
  }),
331
331
  createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
332
- const { runDialogQueryCommand } = await import("./dialogCommands-XXZH5K6U.js");
332
+ const { runDialogQueryCommand } = await import("./dialogCommands-HGPLTR7F.js");
333
333
  return runDialogQueryCommand(args, deps);
334
334
  }),
335
335
  createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
336
- const { runDialogReadCommand } = await import("./dialogCommands-XXZH5K6U.js");
336
+ const { runDialogReadCommand } = await import("./dialogCommands-HGPLTR7F.js");
337
337
  return runDialogReadCommand(args, deps);
338
338
  }),
339
339
  createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
340
- const { runDialogStatusCommand } = await import("./dialogCommands-XXZH5K6U.js");
340
+ const { runDialogStatusCommand } = await import("./dialogCommands-HGPLTR7F.js");
341
341
  return runDialogStatusCommand(args, deps);
342
342
  })
343
343
  ];
@@ -347,39 +347,39 @@ function getDialogInternalCommandEntries() {
347
347
  function getDocInternalCommandEntries() {
348
348
  return [
349
349
  createEnvCommand(["doc", "create"], "Create a normal doc", async (args, deps) => {
350
- const { runDocCreateCommand } = await import("./docCreateCommands-FLNUDWG6.js");
350
+ const { runDocCreateCommand } = await import("./docCreateCommands-JF7ESYW4.js");
351
351
  return runDocCreateCommand(args, deps);
352
352
  }),
353
353
  createEnvCommand(["doc", "read"], "Read a normal doc", async (args, deps) => {
354
- const { runDocReadCommand } = await import("./docReadCommands-QENWDQVH.js");
354
+ const { runDocReadCommand } = await import("./docReadCommands-EBDXJIOQ.js");
355
355
  return runDocReadCommand(args, deps);
356
356
  }),
357
357
  createEnvCommand(["doc", "update"], "Update a normal doc", async (args, deps) => {
358
- const { runDocUpdateCommand } = await import("./docUpdateCommands-J4HWJ5JO.js");
358
+ const { runDocUpdateCommand } = await import("./docUpdateCommands-CWY6K7MV.js");
359
359
  return runDocUpdateCommand(args, deps);
360
360
  }),
361
361
  createEnvCommand(["doc", "delete"], "Delete a normal doc", async (args, deps) => {
362
- const { runDocDeleteCommand } = await import("./docDeleteCommands-74OURFAB.js");
362
+ const { runDocDeleteCommand } = await import("./docDeleteCommands-AW73ITQG.js");
363
363
  return runDocDeleteCommand(args, deps);
364
364
  }),
365
365
  createEnvCommand(["skill-doc", "create"], "Create a skill-backed doc", async (args, deps) => {
366
- const { runSkillDocCreateCommand } = await import("./docCreateCommands-FLNUDWG6.js");
366
+ const { runSkillDocCreateCommand } = await import("./docCreateCommands-JF7ESYW4.js");
367
367
  return runSkillDocCreateCommand(args, deps);
368
368
  }),
369
369
  createEnvCommand(["skill", "create-doc"], "Create a skill-backed doc", async (args, deps) => {
370
- const { runSkillDocCreateCommand } = await import("./docCreateCommands-FLNUDWG6.js");
370
+ const { runSkillDocCreateCommand } = await import("./docCreateCommands-JF7ESYW4.js");
371
371
  return runSkillDocCreateCommand(args, deps);
372
372
  }),
373
373
  createEnvCommand(["skill-doc", "read"], "Read a skill doc", async (args, deps) => {
374
- const { runSkillDocReadCommand } = await import("./docReadCommands-QENWDQVH.js");
374
+ const { runSkillDocReadCommand } = await import("./docReadCommands-EBDXJIOQ.js");
375
375
  return runSkillDocReadCommand(args, deps);
376
376
  }),
377
377
  createEnvCommand(["skill-doc", "update"], "Update a skill doc", async (args, deps) => {
378
- const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-J4HWJ5JO.js");
378
+ const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-CWY6K7MV.js");
379
379
  return runSkillDocUpdateCommand(args, deps);
380
380
  }),
381
381
  createEnvCommand(["skill-doc", "delete"], "Delete a skill doc", async (args, deps) => {
382
- const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-74OURFAB.js");
382
+ const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-AW73ITQG.js");
383
383
  return runSkillDocDeleteCommand(args, deps);
384
384
  })
385
385
  ];
@@ -407,19 +407,19 @@ function getMemoryInternalCommandEntries() {
407
407
  function getSpaceInternalCommandEntries() {
408
408
  return [
409
409
  createEnvCommand(["space", "create"], "Create a space", async (args, deps) => {
410
- const { runSpaceCreateCommand } = await import("./spaceCommands-BYDGOMW7.js");
410
+ const { runSpaceCreateCommand } = await import("./spaceCommands-RGR6F3DS.js");
411
411
  return runSpaceCreateCommand(args, deps);
412
412
  }),
413
413
  createEnvCommand(["space", "invite"], "Invite an existing user to a space", async (args, deps) => {
414
- const { runSpaceInviteCommand } = await import("./spaceCommands-BYDGOMW7.js");
414
+ const { runSpaceInviteCommand } = await import("./spaceCommands-RGR6F3DS.js");
415
415
  return runSpaceInviteCommand(args, deps);
416
416
  }),
417
417
  createEnvCommand(["space", "accept-invite"], "Accept a space invite", async (args, deps) => {
418
- const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-BYDGOMW7.js");
418
+ const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-RGR6F3DS.js");
419
419
  return runSpaceAcceptInviteCommand(args, deps);
420
420
  }),
421
421
  createEnvCommand(["space", "upload"], "Upload a file to a space", async (args, deps) => {
422
- const { runSpaceUploadCommand } = await import("./spaceCommands-BYDGOMW7.js");
422
+ const { runSpaceUploadCommand } = await import("./spaceCommands-RGR6F3DS.js");
423
423
  return runSpaceUploadCommand(args, deps);
424
424
  })
425
425
  ];
@@ -473,15 +473,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
473
473
  return runWhoamiCommand({ args, env: ctx.env });
474
474
  }),
475
475
  createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
476
- const { runMachineConnectCommand } = await import("./machineCommands-SG3QGVOP.js");
476
+ const { runMachineConnectCommand } = await import("./machineCommands-7APHQRKW.js");
477
477
  return runMachineConnectCommand(args, deps);
478
478
  }),
479
479
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
480
- const { runMachineConnectCommand } = await import("./machineCommands-SG3QGVOP.js");
480
+ const { runMachineConnectCommand } = await import("./machineCommands-7APHQRKW.js");
481
481
  return runMachineConnectCommand(args, deps);
482
482
  }),
483
483
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
484
- const { runMachineStatusCommand } = await import("./machineCommands-SG3QGVOP.js");
484
+ const { runMachineStatusCommand } = await import("./machineCommands-7APHQRKW.js");
485
485
  return runMachineStatusCommand(args, deps);
486
486
  }),
487
487
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {