nolo-cli 0.199.0-alpha.5 → 0.200.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/{_executeModel-PACAYSHL.js → _executeModel-HSRCREYE.js} +14 -14
  2. package/{agentDeleteCommand-UVYX5GQW.js → agentDeleteCommand-WD4L6CHD.js} +13 -14
  3. package/{agentEmailCommands-T4SMCD7B.js → agentEmailCommands-RCRARCX6.js} +15 -16
  4. package/{agentListCommands-IDKMCTFZ.js → agentListCommands-AW4KBRKW.js} +1 -1
  5. package/{agentMachineCommands-CEWOXRZG.js → agentMachineCommands-DG75JJMT.js} +2 -2
  6. package/{agentRecordCommands-QPT6XNWL.js → agentRecordCommands-DBJ7PFHU.js} +14 -15
  7. package/{agentRunCommand-WWWLS7AJ.js → agentRunCommand-LW4STOVS.js} +15 -16
  8. package/{agentRuntimeLocal-FZQTLBN6.js → agentRuntimeLocal-HEDYPH5T.js} +1 -1
  9. package/{agentSlice-3MHPRAGD.js → agentSlice-AKONYC2X.js} +1 -1
  10. package/{appDeleteCommands-TUCRDFU2.js → appDeleteCommands-YFJCM52Z.js} +1 -1
  11. package/{appDeployCommands-BQCYEC3R.js → appDeployCommands-2KFLY3FW.js} +1 -1
  12. package/{appDeployStatusCommands-SX26DRSV.js → appDeployStatusCommands-E2AECP3M.js} +1 -1
  13. package/{appGetCommands-CDFTFOOZ.js → appGetCommands-6R3KDUOD.js} +1 -1
  14. package/{appListCommands-7ARRUYU3.js → appListCommands-ULFSD4YR.js} +1 -1
  15. package/{builtinSkillRegistry-36WIAYXB.js → builtinSkillRegistry-7RAJP7FD.js} +1 -1
  16. package/{chunk-OJGZ2YQA.js → chunk-26FOK6BM.js} +8 -8
  17. package/{chunk-TS2LLPTD.js → chunk-2SHLT6JB.js} +55 -3
  18. package/{chunk-ORBOSTB6.js → chunk-2WWLRUH6.js} +15 -19
  19. package/{chunk-ZPLNQ247.js → chunk-4JJTTYHM.js} +3 -3
  20. package/{chunk-PFT6XFSE.js → chunk-54CGZKEH.js} +2 -2
  21. package/{chunk-4BBAP7E4.js → chunk-57IPIXV6.js} +1 -1
  22. package/{chunk-VPYPZFTW.js → chunk-7UVMTDNQ.js} +8 -8
  23. package/{chunk-NFJRJUXP.js → chunk-BUCI6WU4.js} +18 -4
  24. package/{chunk-UXKMBX4C.js → chunk-CJTDTUBE.js} +3 -3
  25. package/{chunk-XFM4TX77.js → chunk-D3G4IT62.js} +1 -1
  26. package/{chunk-ZONJXJ5S.js → chunk-DDIAU5M2.js} +3 -3
  27. package/{chunk-X6LEAM54.js → chunk-JXR5T3IY.js} +7 -7
  28. package/{chunk-O2H2Z7U4.js → chunk-O5V7QQAF.js} +74 -26
  29. package/{chunk-CF7YHEB7.js → chunk-PIIXNP43.js} +2 -2
  30. package/{chunk-BROD7MPO.js → chunk-PMKV3GBE.js} +2 -2
  31. package/{chunk-5JFLYKNV.js → chunk-QHISAEGJ.js} +35 -24
  32. package/{chunk-76OXA55E.js → chunk-QYOB7RVA.js} +80 -2
  33. package/{chunk-KTM3RYQE.js → chunk-SJNMVC4C.js} +1 -1
  34. package/{chunk-INBKVXYL.js → chunk-WOIO46PT.js} +2 -2
  35. package/{chunk-FRRAM6QM.js → chunk-WOKS3DR3.js} +11 -11
  36. package/{chunk-S4PLQODI.js → chunk-XU3J27U3.js} +3 -3
  37. package/{chunk-RHUYPTQX.js → chunk-XXA3W2BH.js} +1 -1
  38. package/{commandRegistry-N7ILYIWH.js → commandRegistry-4LBX2PFC.js} +40 -40
  39. package/{contentThunks-DNE7T3BJ.js → contentThunks-XICRS36V.js} +3 -3
  40. package/{createAgentAutomationAction-WW2P2SDU.js → createAgentAutomationAction-BBUBGJYJ.js} +3 -3
  41. package/{createDialogAction-TWA3N246.js → createDialogAction-B2CBYLGL.js} +4 -4
  42. package/{createPageAction-X6X6CCZC.js → createPageAction-QUJICPHK.js} +3 -3
  43. package/{dialogCommands-VPPMDS7O.js → dialogCommands-W5ONKM73.js} +1 -1
  44. package/{dialogSlice-7ILOCV7V.js → dialogSlice-UYSJR5HB.js} +2 -2
  45. package/{docCreateCommands-RBSXLMXE.js → docCreateCommands-CALJFHEG.js} +1 -1
  46. package/{docDeleteCommands-KNDHZJ5P.js → docDeleteCommands-BY3XHNKC.js} +1 -1
  47. package/{docReadCommands-WOPIYED3.js → docReadCommands-VCYVD633.js} +1 -1
  48. package/{docStore-VTS7RTIZ.js → docStore-3IQO66KQ.js} +1 -1
  49. package/{docUpdateCommands-4QEUPC27.js → docUpdateCommands-7VYCALGI.js} +1 -1
  50. package/{handleSendMessageAction-S725V5PQ.js → handleSendMessageAction-VYVYTTSM.js} +17 -13
  51. package/index.js +3 -3
  52. package/{localRuntimeAdapter-HNFTR3ER.js → localRuntimeAdapter-5PR2IUYX.js} +13 -14
  53. package/{machineCommands-4O3RCS2B.js → machineCommands-5GTYQIF5.js} +14 -15
  54. package/{machineWsRunDispatch-DQCUOPTO.js → machineWsRunDispatch-R4ECVI3J.js} +14 -15
  55. package/package.json +1 -1
  56. package/{readlineWorkspace-KFLQTF4B.js → readlineWorkspace-OEMBKJGV.js} +15 -16
  57. package/{runAgentClientLoop-J2INBHIC.js → runAgentClientLoop-DEL7A5UI.js} +12 -12
  58. package/{settingThunks-MH2OF52M.js → settingThunks-YRYNPWJM.js} +17 -5
  59. package/{spaceCommands-E7DW3KLI.js → spaceCommands-QEZXY2QU.js} +1 -1
  60. package/{streamAgentChatTurn-J3G5PF4P.js → streamAgentChatTurn-HXJLARMT.js} +27 -21
  61. package/{tools-U4K7BZDP.js → tools-SHEXSRPR.js} +9 -9
  62. package/{updateDialogTitleAction-354326I3.js → updateDialogTitleAction-44JI43PI.js} +3 -3
  63. package/chunk-TYQAGKPR.js +0 -57
@@ -55,15 +55,13 @@ import {
55
55
  buildCliPrompt
56
56
  } from "./chunk-ATNTHIZI.js";
57
57
  import {
58
- inferCaptureIntent
59
- } from "./chunk-TS2LLPTD.js";
60
- import {
61
- resolveUserPromptSkillPatches
62
- } from "./chunk-TYQAGKPR.js";
58
+ inferCaptureIntent,
59
+ resolveUserSkillRuntime
60
+ } from "./chunk-2SHLT6JB.js";
63
61
  import {
64
62
  inlineImageUrlsForCustomProvider,
65
63
  prepareTools
66
- } from "./chunk-PFT6XFSE.js";
64
+ } from "./chunk-54CGZKEH.js";
67
65
  import {
68
66
  getServerProviderSecret
69
67
  } from "./chunk-HS7MLR74.js";
@@ -85,7 +83,7 @@ import {
85
83
  resolveCliLocalRuntimeKeyCapability,
86
84
  resolveCliLocalSpawnDispatch,
87
85
  resolveStartAgentRunCwd
88
- } from "./chunk-FRRAM6QM.js";
86
+ } from "./chunk-WOKS3DR3.js";
89
87
  import {
90
88
  fetchWithTransientRetry,
91
89
  isTransientFetchError
@@ -95,8 +93,9 @@ import {
95
93
  deriveCustomProviderCredentialGroup
96
94
  } from "./chunk-BBGYSMUE.js";
97
95
  import {
98
- resolveAgentRequiredPackIds
99
- } from "./chunk-76OXA55E.js";
96
+ resolveAgentRequiredPackIds,
97
+ resolveUserEnabledSkills
98
+ } from "./chunk-QYOB7RVA.js";
100
99
  import {
101
100
  applyBuiltinAgentRuntimeOverride,
102
101
  applyTokenUsageToDayStats,
@@ -105,14 +104,14 @@ import {
105
104
  resolveBuiltinPlatformAgentConfig,
106
105
  runKeyed,
107
106
  validateAskChoiceInput
108
- } from "./chunk-VPYPZFTW.js";
107
+ } from "./chunk-7UVMTDNQ.js";
109
108
  import {
110
109
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
111
110
  BUILTIN_TITLE_LLM_CONFIG
112
111
  } from "./chunk-523DITKR.js";
113
112
  import {
114
113
  fetchServerSyncedCredential
115
- } from "./chunk-UXKMBX4C.js";
114
+ } from "./chunk-CJTDTUBE.js";
116
115
  import {
117
116
  getDefaultCliLocalRuntimeDb
118
117
  } from "./chunk-P64WRQYV.js";
@@ -172,7 +171,7 @@ import {
172
171
  runExecShellGates,
173
172
  validateConfiguredRootExecutionLease,
174
173
  verifyOwnerRouteAck
175
- } from "./chunk-4BBAP7E4.js";
174
+ } from "./chunk-57IPIXV6.js";
176
175
  import {
177
176
  accumulateGeminiChunks,
178
177
  buildGeminiGenerateContentRequest,
@@ -1107,9 +1106,7 @@ function buildPreparedAgentCacheKey(args) {
1107
1106
  const systemBuiltinSkillsKey = args.systemBuiltinSkills ? JSON.stringify(
1108
1107
  Object.keys(args.systemBuiltinSkills).sort().map((key) => [key, args.systemBuiltinSkills?.[key]])
1109
1108
  ) : "default";
1110
- const promptSkillsKey = JSON.stringify(
1111
- Array.isArray(args.enabledPromptSkills) && args.enabledPromptSkills.includes("ub-mode") ? ["ub-mode"] : []
1112
- );
1109
+ const userSkillsKey = JSON.stringify(resolveUserEnabledSkills(args).sort());
1113
1110
  const wakeKey = args.wake !== void 0 ? args.wake ? "wake:1" : "wake:0" : "";
1114
1111
  const policyKey = JSON.stringify([
1115
1112
  args.env?.NOLO_LOCAL_WORKSPACE_TOOLSET ?? "",
@@ -1119,7 +1116,7 @@ function buildPreparedAgentCacheKey(args) {
1119
1116
  args.env?.NOLO_LOCAL_ALLOWED_TOOLS ?? "",
1120
1117
  args.env?.NOLO_LOCAL_ALLOW_UNDECLARED_TOOLS ?? ""
1121
1118
  ]);
1122
- return `${policyKey}\0${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}\0${promptSkillsKey}${wakeKey ? `\0${wakeKey}` : ""}`;
1119
+ return `${policyKey}\0${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}\0${userSkillsKey}${wakeKey ? `\0${wakeKey}` : ""}`;
1123
1120
  }
1124
1121
  function clearCliLocalRuntimePreparedAgentCache() {
1125
1122
  preparedAgentRuntimeCache.clear();
@@ -12842,7 +12839,7 @@ function createCliLocalRuntimeAdapter(deps) {
12842
12839
  credentialBroker,
12843
12840
  loadAgentConfig: async (agentRef) => {
12844
12841
  let systemBuiltinSkills = null;
12845
- let enabledPromptSkills = [];
12842
+ let skillPreferences = {};
12846
12843
  const sharedStore = await getOrCreateSharedStore(deps);
12847
12844
  if (userId) {
12848
12845
  try {
@@ -12850,17 +12847,23 @@ function createCliLocalRuntimeAdapter(deps) {
12850
12847
  createUserKey.settings(userId),
12851
12848
  { remote: false }
12852
12849
  );
12853
- enabledPromptSkills = settingsRecord && typeof settingsRecord === "object" ? settingsRecord.enabledPromptSkills ?? [] : [];
12850
+ if (settingsRecord && typeof settingsRecord === "object") {
12851
+ skillPreferences = {
12852
+ ...Object.prototype.hasOwnProperty.call(settingsRecord, "enabledSkills") ? { enabledSkills: settingsRecord.enabledSkills } : {},
12853
+ enabledPromptSkills: settingsRecord.enabledPromptSkills
12854
+ };
12855
+ }
12854
12856
  systemBuiltinSkills = settingsRecord && typeof settingsRecord === "object" ? settingsRecord.systemBuiltinSkills ?? null : null;
12855
12857
  } catch {
12856
12858
  }
12857
12859
  }
12860
+ const enabledSkills = resolveUserEnabledSkills(skillPreferences).sort();
12858
12861
  const cacheKey = `${buildPreparedAgentCacheKey({
12859
12862
  userId,
12860
12863
  agentRef,
12861
12864
  cwd: normalizeRuntimeCacheCwd(workspaceRoot),
12862
12865
  systemBuiltinSkills,
12863
- enabledPromptSkills,
12866
+ enabledSkills,
12864
12867
  wake: hasRunWakeChannel(deps.env),
12865
12868
  env: deps.env
12866
12869
  })}:${dockerRuntimeEnabled ? "docker" : instaboxRuntimeEnabled ? "instabox" : "host"}`;
@@ -12877,15 +12880,23 @@ function createCliLocalRuntimeAdapter(deps) {
12877
12880
  userId
12878
12881
  });
12879
12882
  const fallbackLocalCliAgentConfig = storedAgentConfig ? null : resolveBuiltinLocalCliAgentConfig(agentRef, userId);
12883
+ const sourceAgentConfig = storedAgentConfig ?? fallbackLocalCliAgentConfig;
12884
+ const userSkills = await resolveUserSkillRuntime(sourceAgentConfig, {
12885
+ enabledSkills,
12886
+ enabledPromptSkills: skillPreferences.enabledPromptSkills
12887
+ });
12880
12888
  const baseAgentConfig = withResolvedRuntimeToolSurface(
12881
- storedAgentConfig ?? fallbackLocalCliAgentConfig,
12889
+ sourceAgentConfig && {
12890
+ ...sourceAgentConfig,
12891
+ toolNames: [.../* @__PURE__ */ new Set([
12892
+ ...sourceAgentConfig.toolNames ?? [],
12893
+ ...userSkills.requiredTools
12894
+ ])]
12895
+ },
12882
12896
  deps.env
12883
12897
  );
12884
12898
  const packAgentConfig = baseAgentConfig ? withRuntimeEnabledPacksAndPrompt(baseAgentConfig) : baseAgentConfig;
12885
- const userPromptPatches = resolveUserPromptSkillPatches(
12886
- packAgentConfig?.rawRecord ?? packAgentConfig,
12887
- enabledPromptSkills
12888
- );
12899
+ const userPromptPatches = userSkills.skillPromptPatches;
12889
12900
  const agentConfig = packAgentConfig && userPromptPatches.length ? {
12890
12901
  ...packAgentConfig,
12891
12902
  prompt: [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveBuiltinCapability,
3
3
  resolveBuiltinSkillEntry
4
- } from "./chunk-O2H2Z7U4.js";
4
+ } from "./chunk-O5V7QQAF.js";
5
5
  import {
6
6
  noloAgentId
7
7
  } from "./chunk-Y6ORVLSS.js";
@@ -149,6 +149,80 @@ var defaultSkillTitleLookup = (slug) => {
149
149
  };
150
150
  var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
151
151
 
152
+ // packages/ai/skills/userPromptSkills.ts
153
+ var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
154
+ var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
155
+ RECOMMENDED_PROMPT_SKILL_SLUGS
156
+ );
157
+ function normalizeEnabledPromptSkills(value) {
158
+ if (!Array.isArray(value)) {
159
+ return [];
160
+ }
161
+ const result = [];
162
+ const seen = /* @__PURE__ */ new Set();
163
+ for (const item of value) {
164
+ if (typeof item !== "string") {
165
+ continue;
166
+ }
167
+ const trimmed = item.trim();
168
+ if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
169
+ seen.add(trimmed);
170
+ result.push(trimmed);
171
+ }
172
+ }
173
+ return result;
174
+ }
175
+
176
+ // packages/ai/skills/userSkills.ts
177
+ var SUPPORTED_USER_SKILL_SLUGS = [
178
+ "ub-mode",
179
+ "auto-review",
180
+ "code-style",
181
+ "worktree-isolation",
182
+ "systematic-investigation",
183
+ "show-me",
184
+ "caveman",
185
+ "secrets-manager",
186
+ "skill-creator",
187
+ "code-planning",
188
+ "coding",
189
+ "coding-review"
190
+ ];
191
+ var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
192
+ SUPPORTED_USER_SKILL_SLUGS
193
+ );
194
+ function normalizeEnabledSkills(value) {
195
+ if (!Array.isArray(value)) {
196
+ return [];
197
+ }
198
+ const result = [];
199
+ const seen = /* @__PURE__ */ new Set();
200
+ for (const item of value) {
201
+ if (typeof item !== "string") {
202
+ continue;
203
+ }
204
+ const trimmed = item.trim();
205
+ if (SUPPORTED_USER_SKILL_SLUG_SET.has(trimmed) && !seen.has(trimmed)) {
206
+ seen.add(trimmed);
207
+ result.push(trimmed);
208
+ }
209
+ }
210
+ return result;
211
+ }
212
+ function resolveUserEnabledSkills(preferences) {
213
+ if (!preferences || typeof preferences !== "object") {
214
+ return [];
215
+ }
216
+ if (Object.prototype.hasOwnProperty.call(preferences, "enabledSkills")) {
217
+ return normalizeEnabledSkills(preferences.enabledSkills);
218
+ }
219
+ if (Object.prototype.hasOwnProperty.call(preferences, "enabledPromptSkills")) {
220
+ const legacy = normalizeEnabledPromptSkills(preferences.enabledPromptSkills);
221
+ return legacy.filter((slug) => SUPPORTED_USER_SKILL_SLUG_SET.has(slug));
222
+ }
223
+ return [];
224
+ }
225
+
152
226
  // packages/ai/policy/selfUpdateFields.ts
153
227
  var AGENT_UPDATE_FIELD_NAMES = [
154
228
  "name",
@@ -193,6 +267,7 @@ var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SEL
193
267
  };
194
268
 
195
269
  export {
270
+ resolveAgentSkillConfig,
196
271
  resolveAgentRequiredPackIds,
197
272
  resolveAgentRecommendedSkillNames,
198
273
  isAgentSkillDisabled,
@@ -209,5 +284,8 @@ export {
209
284
  normalizePolicyLevelSetting,
210
285
  resolveDefaultAgentIdSetting,
211
286
  omitKeys,
212
- normalizeSystemBuiltinSkills
287
+ normalizeSystemBuiltinSkills,
288
+ normalizeEnabledPromptSkills,
289
+ normalizeEnabledSkills,
290
+ resolveUserEnabledSkills
213
291
  };
@@ -7,7 +7,7 @@ import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-VPYPZFTW.js";
10
+ } from "./chunk-7UVMTDNQ.js";
11
11
  import {
12
12
  UNCATEGORIZED_ID,
13
13
  addContentAction,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-KTM3RYQE.js";
3
+ } from "./chunk-SJNMVC4C.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-VPYPZFTW.js";
9
+ } from "./chunk-7UVMTDNQ.js";
10
10
  import {
11
11
  formatISO
12
12
  } from "./chunk-ZRAU6T47.js";
@@ -38,7 +38,7 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-NFJRJUXP.js";
41
+ } from "./chunk-BUCI6WU4.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
@@ -53,10 +53,10 @@ import {
53
53
  AGENT_UPDATE_FIELD_NAMES,
54
54
  isAgentSkillDisabled,
55
55
  normalizeAgentUpdateFieldList
56
- } from "./chunk-76OXA55E.js";
56
+ } from "./chunk-QYOB7RVA.js";
57
57
  import {
58
58
  createDocState
59
- } from "./chunk-BROD7MPO.js";
59
+ } from "./chunk-PMKV3GBE.js";
60
60
  import {
61
61
  ToolApiError,
62
62
  buildToolRequestHeaders,
@@ -83,7 +83,7 @@ import {
83
83
  } from "./chunk-63W5N6P3.js";
84
84
  import {
85
85
  createDialogAction
86
- } from "./chunk-INBKVXYL.js";
86
+ } from "./chunk-WOIO46PT.js";
87
87
  import {
88
88
  DEFAULT_COLLAPSED_CATEGORIES,
89
89
  addContentToSpace,
@@ -100,7 +100,7 @@ import {
100
100
  updateContentCategory,
101
101
  updateContentTitle,
102
102
  writeStoredCollapsedCategories
103
- } from "./chunk-KTM3RYQE.js";
103
+ } from "./chunk-SJNMVC4C.js";
104
104
  import {
105
105
  getCurrentSpaceId,
106
106
  getCurrentSpaceIdRaw,
@@ -123,14 +123,14 @@ import {
123
123
  selectMsgById,
124
124
  uiAskChoiceFunc,
125
125
  uiAskChoiceFunctionSchema
126
- } from "./chunk-VPYPZFTW.js";
126
+ } from "./chunk-7UVMTDNQ.js";
127
127
  import {
128
128
  createAgent,
129
129
  deleteServerSyncedCredential,
130
130
  runLlm,
131
131
  streamAgentChatTurn,
132
132
  updateAgent
133
- } from "./chunk-UXKMBX4C.js";
133
+ } from "./chunk-CJTDTUBE.js";
134
134
  import {
135
135
  buildMediaToolConfirmation,
136
136
  normalizeMediaConfirmExecutionRevision
@@ -200,7 +200,7 @@ import {
200
200
  import {
201
201
  listBuiltinSkills,
202
202
  resolveBuiltinSkillByName
203
- } from "./chunk-O2H2Z7U4.js";
203
+ } from "./chunk-O5V7QQAF.js";
204
204
  import {
205
205
  CAPABILITY_PACKS
206
206
  } from "./chunk-6OEPWZV7.js";
@@ -3896,7 +3896,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3896
3896
  const deletedDialogIds = [];
3897
3897
  const deletedDialogKeys = [];
3898
3898
  const failures = [];
3899
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-7ILOCV7V.js");
3899
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-UYSJR5HB.js");
3900
3900
  for (const target of targets) {
3901
3901
  try {
3902
3902
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -18650,7 +18650,7 @@ async function updateDocFunc(args, thunkApi) {
18650
18650
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18651
18651
  };
18652
18652
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18653
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-VTS7RTIZ.js");
18653
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-3IQO66KQ.js");
18654
18654
  if (getDocState().pageKey === id) {
18655
18655
  applyExternalDocUpdate({
18656
18656
  slateData: finalSlateData,
@@ -18675,7 +18675,7 @@ async function updateDocFunc(args, thunkApi) {
18675
18675
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
18676
18676
  async function dispatchSetSettings(thunkApi, changes) {
18677
18677
  const injectedSetSettings = thunkApi?.extra?.setSettings;
18678
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-MH2OF52M.js")).setSettings;
18678
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-YRYNPWJM.js")).setSettings;
18679
18679
  await thunkApi.dispatch(setSettings(changes)).unwrap();
18680
18680
  }
18681
18681
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-5JFLYKNV.js";
4
+ } from "./chunk-QHISAEGJ.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-NFJRJUXP.js";
7
+ } from "./chunk-BUCI6WU4.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-4BBAP7E4.js";
10
+ } from "./chunk-57IPIXV6.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
13
  } from "./chunk-NABJEYPJ.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-6WZQGT5X.js";
17
17
  import {
18
18
  clearCliLocalRuntimePreparedAgentCache
19
- } from "./chunk-5JFLYKNV.js";
19
+ } from "./chunk-QHISAEGJ.js";
20
20
  import {
21
21
  readCredentialAvailability
22
22
  } from "./chunk-HAB2UDLT.js";
@@ -111,7 +111,7 @@ function createDaemonShortcutCommand(path, description, command) {
111
111
  // packages/cli/agentInternalCommandEntries.ts
112
112
  function getAgentInternalCommandEntries() {
113
113
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
114
- const { runAgentRunCommand } = await import("./agentRunCommand-WWWLS7AJ.js");
114
+ const { runAgentRunCommand } = await import("./agentRunCommand-LW4STOVS.js");
115
115
  return runAgentRunCommand(args, {
116
116
  env: ctx.env,
117
117
  scriptDir: ctx.scriptDir,
@@ -123,11 +123,11 @@ function getAgentInternalCommandEntries() {
123
123
  createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
124
124
  createAgentRunCommand(["chat"], "Chat with an agent"),
125
125
  createEnvCommand(["agent", "list"], "List owned agents", async (args, deps) => {
126
- const { runAgentListCommand } = await import("./agentListCommands-IDKMCTFZ.js");
126
+ const { runAgentListCommand } = await import("./agentListCommands-AW4KBRKW.js");
127
127
  return runAgentListCommand(args, deps);
128
128
  }),
129
129
  createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
130
- const { runAgentCreateCommand } = await import("./agentRecordCommands-QPT6XNWL.js");
130
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-DBJ7PFHU.js");
131
131
  return runAgentCreateCommand(args, deps);
132
132
  }),
133
133
  createEnvCommand(["agent", "models"], "List models: --preset <id> (server discovery, exit 1 on static fallback) or --url <base> --api-key <key> (OpenAI-compatible /models)", async (args, deps) => {
@@ -143,7 +143,7 @@ function getAgentInternalCommandEntries() {
143
143
  return runAgentPullCommand(args, deps);
144
144
  }),
145
145
  createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
146
- const { runAgentReadCommand } = await import("./agentRecordCommands-QPT6XNWL.js");
146
+ const { runAgentReadCommand } = await import("./agentRecordCommands-DBJ7PFHU.js");
147
147
  return runAgentReadCommand(args, deps);
148
148
  }),
149
149
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -172,31 +172,31 @@ function getAgentInternalCommandEntries() {
172
172
  return runSetupOfflineMarxistsAgentCommand(args, deps);
173
173
  }),
174
174
  createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
175
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-QPT6XNWL.js");
175
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-DBJ7PFHU.js");
176
176
  return runAgentUpdateCommand(args, deps);
177
177
  }),
178
178
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
179
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-T4SMCD7B.js");
179
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-RCRARCX6.js");
180
180
  return runAgentEmailProvisionCommand(args, deps);
181
181
  }),
182
182
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
183
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-T4SMCD7B.js");
183
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-RCRARCX6.js");
184
184
  return runAgentEmailBindCommand(args, deps);
185
185
  }),
186
186
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
187
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-T4SMCD7B.js");
187
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-RCRARCX6.js");
188
188
  return runAgentEmailTransferCommand(args, deps);
189
189
  }),
190
190
  createEnvCommand(
191
191
  ["agent", "email", "create-and-provision"],
192
192
  "Create an agent and provision its controlled inbox",
193
193
  async (args, deps) => {
194
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-T4SMCD7B.js");
194
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-RCRARCX6.js");
195
195
  return runAgentEmailCreateAndProvisionCommand(args, deps);
196
196
  }
197
197
  ),
198
198
  createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
199
- const { runAgentDeleteCommand } = await import("./agentDeleteCommand-UVYX5GQW.js");
199
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-WD4L6CHD.js");
200
200
  return runAgentDeleteCommand(args, deps);
201
201
  }),
202
202
  createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
@@ -216,15 +216,15 @@ function getAgentInternalCommandEntries() {
216
216
  return runAgentRevokeGrantCommand(args, deps);
217
217
  }),
218
218
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
219
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-CEWOXRZG.js");
219
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-DG75JJMT.js");
220
220
  return runAgentBindCurrentCommand(args, deps);
221
221
  }),
222
222
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
223
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-CEWOXRZG.js");
223
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-DG75JJMT.js");
224
224
  return runAgentSmokeCurrentCommand(args, deps);
225
225
  }),
226
226
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
227
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-CEWOXRZG.js");
227
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-DG75JJMT.js");
228
228
  return runAgentRuntimeDoctorCommand(args, deps);
229
229
  }),
230
230
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -235,23 +235,23 @@ function getAgentInternalCommandEntries() {
235
235
  function getAppInternalCommandEntries() {
236
236
  return [
237
237
  createEnvCommand(["app", "list"], "List your apps", async (args, deps) => {
238
- const { runAppListCommand } = await import("./appListCommands-7ARRUYU3.js");
238
+ const { runAppListCommand } = await import("./appListCommands-ULFSD4YR.js");
239
239
  return runAppListCommand(args, deps);
240
240
  }),
241
241
  createEnvCommand(["app", "get"], "Get app details", async (args, deps) => {
242
- const { runAppGetCommand } = await import("./appGetCommands-CDFTFOOZ.js");
242
+ const { runAppGetCommand } = await import("./appGetCommands-6R3KDUOD.js");
243
243
  return runAppGetCommand(args, deps);
244
244
  }),
245
245
  createEnvCommand(["app", "deploy"], "Deploy an app", async (args, deps) => {
246
- const { runAppDeployCommand } = await import("./appDeployCommands-BQCYEC3R.js");
246
+ const { runAppDeployCommand } = await import("./appDeployCommands-2KFLY3FW.js");
247
247
  return runAppDeployCommand(args, deps);
248
248
  }),
249
249
  createEnvCommand(["app", "deploy", "status"], "Check app deploy status", async (args, deps) => {
250
- const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-SX26DRSV.js");
250
+ const { runAppDeployStatusCommand } = await import("./appDeployStatusCommands-E2AECP3M.js");
251
251
  return runAppDeployStatusCommand(args, deps);
252
252
  }),
253
253
  createEnvCommand(["app", "delete"], "Delete an app", async (args, deps) => {
254
- const { runAppDeleteCommand } = await import("./appDeleteCommands-TUCRDFU2.js");
254
+ const { runAppDeleteCommand } = await import("./appDeleteCommands-YFJCM52Z.js");
255
255
  return runAppDeleteCommand(args, deps);
256
256
  })
257
257
  ];
@@ -387,27 +387,27 @@ function getCiInternalCommandEntries() {
387
387
  function getDialogInternalCommandEntries() {
388
388
  return [
389
389
  createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
390
- const { runDialogSearchCommand } = await import("./dialogCommands-VPPMDS7O.js");
390
+ const { runDialogSearchCommand } = await import("./dialogCommands-W5ONKM73.js");
391
391
  return runDialogSearchCommand(args, deps);
392
392
  }),
393
393
  createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
394
- const { runDialogListCommand } = await import("./dialogCommands-VPPMDS7O.js");
394
+ const { runDialogListCommand } = await import("./dialogCommands-W5ONKM73.js");
395
395
  return runDialogListCommand(args, deps);
396
396
  }),
397
397
  createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
398
- const { runDialogDeleteCommand } = await import("./dialogCommands-VPPMDS7O.js");
398
+ const { runDialogDeleteCommand } = await import("./dialogCommands-W5ONKM73.js");
399
399
  return runDialogDeleteCommand(args, deps);
400
400
  }),
401
401
  createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
402
- const { runDialogQueryCommand } = await import("./dialogCommands-VPPMDS7O.js");
402
+ const { runDialogQueryCommand } = await import("./dialogCommands-W5ONKM73.js");
403
403
  return runDialogQueryCommand(args, deps);
404
404
  }),
405
405
  createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
406
- const { runDialogReadCommand } = await import("./dialogCommands-VPPMDS7O.js");
406
+ const { runDialogReadCommand } = await import("./dialogCommands-W5ONKM73.js");
407
407
  return runDialogReadCommand(args, deps);
408
408
  }),
409
409
  createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
410
- const { runDialogStatusCommand } = await import("./dialogCommands-VPPMDS7O.js");
410
+ const { runDialogStatusCommand } = await import("./dialogCommands-W5ONKM73.js");
411
411
  return runDialogStatusCommand(args, deps);
412
412
  })
413
413
  ];
@@ -417,39 +417,39 @@ function getDialogInternalCommandEntries() {
417
417
  function getDocInternalCommandEntries() {
418
418
  return [
419
419
  createEnvCommand(["doc", "create"], "Create a normal doc", async (args, deps) => {
420
- const { runDocCreateCommand } = await import("./docCreateCommands-RBSXLMXE.js");
420
+ const { runDocCreateCommand } = await import("./docCreateCommands-CALJFHEG.js");
421
421
  return runDocCreateCommand(args, deps);
422
422
  }),
423
423
  createEnvCommand(["doc", "read"], "Read a normal doc", async (args, deps) => {
424
- const { runDocReadCommand } = await import("./docReadCommands-WOPIYED3.js");
424
+ const { runDocReadCommand } = await import("./docReadCommands-VCYVD633.js");
425
425
  return runDocReadCommand(args, deps);
426
426
  }),
427
427
  createEnvCommand(["doc", "update"], "Update a normal doc", async (args, deps) => {
428
- const { runDocUpdateCommand } = await import("./docUpdateCommands-4QEUPC27.js");
428
+ const { runDocUpdateCommand } = await import("./docUpdateCommands-7VYCALGI.js");
429
429
  return runDocUpdateCommand(args, deps);
430
430
  }),
431
431
  createEnvCommand(["doc", "delete"], "Delete a normal doc", async (args, deps) => {
432
- const { runDocDeleteCommand } = await import("./docDeleteCommands-KNDHZJ5P.js");
432
+ const { runDocDeleteCommand } = await import("./docDeleteCommands-BY3XHNKC.js");
433
433
  return runDocDeleteCommand(args, deps);
434
434
  }),
435
435
  createEnvCommand(["skill-doc", "create"], "Create a skill-backed doc", async (args, deps) => {
436
- const { runSkillDocCreateCommand } = await import("./docCreateCommands-RBSXLMXE.js");
436
+ const { runSkillDocCreateCommand } = await import("./docCreateCommands-CALJFHEG.js");
437
437
  return runSkillDocCreateCommand(args, deps);
438
438
  }),
439
439
  createEnvCommand(["skill", "create-doc"], "Create a skill-backed doc", async (args, deps) => {
440
- const { runSkillDocCreateCommand } = await import("./docCreateCommands-RBSXLMXE.js");
440
+ const { runSkillDocCreateCommand } = await import("./docCreateCommands-CALJFHEG.js");
441
441
  return runSkillDocCreateCommand(args, deps);
442
442
  }),
443
443
  createEnvCommand(["skill-doc", "read"], "Read a skill doc", async (args, deps) => {
444
- const { runSkillDocReadCommand } = await import("./docReadCommands-WOPIYED3.js");
444
+ const { runSkillDocReadCommand } = await import("./docReadCommands-VCYVD633.js");
445
445
  return runSkillDocReadCommand(args, deps);
446
446
  }),
447
447
  createEnvCommand(["skill-doc", "update"], "Update a skill doc", async (args, deps) => {
448
- const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-4QEUPC27.js");
448
+ const { runSkillDocUpdateCommand } = await import("./docUpdateCommands-7VYCALGI.js");
449
449
  return runSkillDocUpdateCommand(args, deps);
450
450
  }),
451
451
  createEnvCommand(["skill-doc", "delete"], "Delete a skill doc", async (args, deps) => {
452
- const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-KNDHZJ5P.js");
452
+ const { runSkillDocDeleteCommand } = await import("./docDeleteCommands-BY3XHNKC.js");
453
453
  return runSkillDocDeleteCommand(args, deps);
454
454
  })
455
455
  ];
@@ -477,19 +477,19 @@ function getMemoryInternalCommandEntries() {
477
477
  function getSpaceInternalCommandEntries() {
478
478
  return [
479
479
  createEnvCommand(["space", "create"], "Create a space", async (args, deps) => {
480
- const { runSpaceCreateCommand } = await import("./spaceCommands-E7DW3KLI.js");
480
+ const { runSpaceCreateCommand } = await import("./spaceCommands-QEZXY2QU.js");
481
481
  return runSpaceCreateCommand(args, deps);
482
482
  }),
483
483
  createEnvCommand(["space", "invite"], "Invite an existing user to a space", async (args, deps) => {
484
- const { runSpaceInviteCommand } = await import("./spaceCommands-E7DW3KLI.js");
484
+ const { runSpaceInviteCommand } = await import("./spaceCommands-QEZXY2QU.js");
485
485
  return runSpaceInviteCommand(args, deps);
486
486
  }),
487
487
  createEnvCommand(["space", "accept-invite"], "Accept a space invite", async (args, deps) => {
488
- const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-E7DW3KLI.js");
488
+ const { runSpaceAcceptInviteCommand } = await import("./spaceCommands-QEZXY2QU.js");
489
489
  return runSpaceAcceptInviteCommand(args, deps);
490
490
  }),
491
491
  createEnvCommand(["space", "upload"], "Upload a file to a space", async (args, deps) => {
492
- const { runSpaceUploadCommand } = await import("./spaceCommands-E7DW3KLI.js");
492
+ const { runSpaceUploadCommand } = await import("./spaceCommands-QEZXY2QU.js");
493
493
  return runSpaceUploadCommand(args, deps);
494
494
  })
495
495
  ];
@@ -547,15 +547,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
547
547
  return runWhoamiCommand({ args, env: ctx.env });
548
548
  }),
549
549
  createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
550
- const { runMachineConnectCommand } = await import("./machineCommands-4O3RCS2B.js");
550
+ const { runMachineConnectCommand } = await import("./machineCommands-5GTYQIF5.js");
551
551
  return runMachineConnectCommand(args, deps);
552
552
  }),
553
553
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
554
- const { runMachineConnectCommand } = await import("./machineCommands-4O3RCS2B.js");
554
+ const { runMachineConnectCommand } = await import("./machineCommands-5GTYQIF5.js");
555
555
  return runMachineConnectCommand(args, deps);
556
556
  }),
557
557
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
558
- const { runMachineStatusCommand } = await import("./machineCommands-4O3RCS2B.js");
558
+ const { runMachineStatusCommand } = await import("./machineCommands-5GTYQIF5.js");
559
559
  return runMachineStatusCommand(args, deps);
560
560
  }),
561
561
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
@@ -8,13 +8,13 @@ import {
8
8
  updateContentPinned,
9
9
  updateContentTitle,
10
10
  uploadAndAddFileToSpace
11
- } from "./chunk-KTM3RYQE.js";
11
+ } from "./chunk-SJNMVC4C.js";
12
12
  import "./chunk-5XBUWM6I.js";
13
- import "./chunk-VPYPZFTW.js";
13
+ import "./chunk-7UVMTDNQ.js";
14
14
  import "./chunk-TZXPT53C.js";
15
15
  import "./chunk-LEC5ALIN.js";
16
16
  import "./chunk-523DITKR.js";
17
- import "./chunk-UXKMBX4C.js";
17
+ import "./chunk-CJTDTUBE.js";
18
18
  import "./chunk-BYXBJQAS.js";
19
19
  import "./chunk-QYPE3TS3.js";
20
20
  import "./chunk-T3U2KQF4.js";