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
@@ -1,6 +1,3 @@
1
- import {
2
- normalizeEnabledPromptSkills
3
- } from "./chunk-TYQAGKPR.js";
4
1
  import {
5
2
  DEFAULT_USER_PREFERENCE_PROFILE,
6
3
  SYSTEM_DEFAULT_AGENT_ID,
@@ -8,12 +5,14 @@ import {
8
5
  normalizeAgentUpdateFieldList,
9
6
  normalizeAuthorityHomeServerSetting,
10
7
  normalizeDefaultAgentIdSetting,
8
+ normalizeEnabledPromptSkills,
9
+ normalizeEnabledSkills,
11
10
  normalizePolicyLevelSetting,
12
11
  normalizeSystemBuiltinSkills,
13
12
  normalizeTonePresetSetting,
14
13
  omitKeys,
15
14
  resolveDefaultAgentIdSetting
16
- } from "./chunk-76OXA55E.js";
15
+ } from "./chunk-QYOB7RVA.js";
17
16
  import {
18
17
  require_react
19
18
  } from "./chunk-YDH3FDFQ.js";
@@ -45,7 +44,7 @@ import {
45
44
  selectIdentityUserId
46
45
  } from "./chunk-PXYBUFDB.js";
47
46
  import "./chunk-D2MDMY2M.js";
48
- import "./chunk-O2H2Z7U4.js";
47
+ import "./chunk-O5V7QQAF.js";
49
48
  import {
50
49
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
51
50
  } from "./chunk-6OEPWZV7.js";
@@ -322,6 +321,14 @@ var normalizeSettingChanges = (changes) => {
322
321
  )
323
322
  };
324
323
  }
324
+ if (hasOwn(normalizedChanges, "enabledSkills")) {
325
+ normalizedChanges = {
326
+ ...normalizedChanges,
327
+ enabledSkills: normalizeEnabledSkills(
328
+ normalizedChanges.enabledSkills
329
+ )
330
+ };
331
+ }
325
332
  return normalizedChanges;
326
333
  };
327
334
  var LOCAL_APPEARANCE_KEY_NAMES = [
@@ -393,14 +400,19 @@ var hydrateStoredSettings = ({
393
400
  );
394
401
  const userAuthorityRegistry = userId && normalizedAuthorityHome ? { ...existingRegistry, [userId]: normalizedAuthorityHome } : existingRegistry;
395
402
  const userAuthorityRegistryIsEmpty = Object.keys(userAuthorityRegistry).length === 0;
403
+ const hasRecordEnabledSkills = hasOwn(record, "enabledSkills");
396
404
  const hydratedSettings = {
397
405
  ...baseSettings,
398
406
  enabledPromptSkills: resolvedEnabledPromptSkills,
407
+ ...hasRecordEnabledSkills ? { enabledSkills: normalizeEnabledSkills(record.enabledSkills) } : {},
399
408
  // 服务端独占字段:只读回显(缺失时沿用初始值 0,非法值按 0)
400
409
  ...hasOwn(record, "autoApproveCredits") ? { autoApproveCredits: typeof record.autoApproveCredits === "number" && Number.isFinite(record.autoApproveCredits) && record.autoApproveCredits >= 0 ? record.autoApproveCredits : 0 } : {},
401
410
  ...userAuthorityRegistryIsEmpty ? {} : { userAuthorityRegistry },
402
411
  defaultAgentId: resolvedDefaultAgentId
403
412
  };
413
+ if (!hasRecordEnabledSkills && "enabledSkills" in hydratedSettings) {
414
+ delete hydratedSettings.enabledSkills;
415
+ }
404
416
  return Object.keys(hydratedSettings).length > 0 ? hydratedSettings : null;
405
417
  };
406
418
  var SERVER_AUTHORITATIVE_SETTINGS_KEYS = [
@@ -20,7 +20,7 @@ import {
20
20
  resolveFileCategory
21
21
  } from "./chunk-3PVYUPXK.js";
22
22
  import "./chunk-D2MDMY2M.js";
23
- import "./chunk-4BBAP7E4.js";
23
+ import "./chunk-57IPIXV6.js";
24
24
  import "./chunk-ZNFJWEN4.js";
25
25
  import "./chunk-IIX6VWLW.js";
26
26
  import "./chunk-NVOYW6H4.js";
@@ -18,9 +18,10 @@ import {
18
18
  resolveTurnToolContext,
19
19
  trimMessagesWithSummary,
20
20
  validateAccessAndBalance
21
- } from "./chunk-ORBOSTB6.js";
22
- import "./chunk-TS2LLPTD.js";
23
- import "./chunk-TYQAGKPR.js";
21
+ } from "./chunk-2WWLRUH6.js";
22
+ import {
23
+ resolveUserSkillRuntime
24
+ } from "./chunk-2SHLT6JB.js";
24
25
  import {
25
26
  filterAndCleanMessages,
26
27
  handleToolCalls,
@@ -28,11 +29,11 @@ import {
28
29
  readStreamChunk,
29
30
  sendOpenAICompletionsRequest,
30
31
  updateTotalUsage
31
- } from "./chunk-X6LEAM54.js";
32
+ } from "./chunk-JXR5T3IY.js";
32
33
  import "./chunk-JEXVIMYZ.js";
33
34
  import {
34
35
  prepareTools
35
- } from "./chunk-PFT6XFSE.js";
36
+ } from "./chunk-54CGZKEH.js";
36
37
  import {
37
38
  INVALID_TOOL_ARGS_REPLACEMENT,
38
39
  buildInvalidToolCallSelfHealResult,
@@ -43,9 +44,9 @@ import {
43
44
  sanitizeOutboundResponsesInput,
44
45
  selectResponsesConversationState,
45
46
  updateResponsesConversationState
46
- } from "./chunk-ZPLNQ247.js";
47
+ } from "./chunk-4JJTTYHM.js";
47
48
  import "./chunk-HS7MLR74.js";
48
- import "./chunk-FRRAM6QM.js";
49
+ import "./chunk-WOKS3DR3.js";
49
50
  import "./chunk-KFHREHUQ.js";
50
51
  import {
51
52
  isOwnedAgentRecord,
@@ -59,16 +60,16 @@ import {
59
60
  isContextOverflowText,
60
61
  parseApiError,
61
62
  performServerProxyFetchWithRetry
62
- } from "./chunk-ZONJXJ5S.js";
63
+ } from "./chunk-DDIAU5M2.js";
63
64
  import {
64
65
  createSSEParser,
65
66
  selectMaxExecutionTime,
66
67
  waitForAbortableDelay
67
- } from "./chunk-NFJRJUXP.js";
68
+ } from "./chunk-BUCI6WU4.js";
68
69
  import "./chunk-NF64D32W.js";
69
70
  import "./chunk-3L2WKC3W.js";
70
- import "./chunk-76OXA55E.js";
71
- import "./chunk-BROD7MPO.js";
71
+ import "./chunk-QYOB7RVA.js";
72
+ import "./chunk-PMKV3GBE.js";
72
73
  import "./chunk-MYOH447Z.js";
73
74
  import "./chunk-RXUKDHS5.js";
74
75
  import "./chunk-WYKMOZTW.js";
@@ -79,8 +80,8 @@ import {
79
80
  getPublicImageAgentMode
80
81
  } from "./chunk-VIDPVFP3.js";
81
82
  import "./chunk-63W5N6P3.js";
82
- import "./chunk-INBKVXYL.js";
83
- import "./chunk-KTM3RYQE.js";
83
+ import "./chunk-WOIO46PT.js";
84
+ import "./chunk-SJNMVC4C.js";
84
85
  import {
85
86
  getCurrentSpaceId
86
87
  } from "./chunk-5XBUWM6I.js";
@@ -101,11 +102,11 @@ import {
101
102
  toast,
102
103
  updateTokens,
103
104
  updateToolMessage
104
- } from "./chunk-VPYPZFTW.js";
105
+ } from "./chunk-7UVMTDNQ.js";
105
106
  import "./chunk-TZXPT53C.js";
106
107
  import "./chunk-LEC5ALIN.js";
107
108
  import "./chunk-523DITKR.js";
108
- import "./chunk-UXKMBX4C.js";
109
+ import "./chunk-CJTDTUBE.js";
109
110
  import "./chunk-BYXBJQAS.js";
110
111
  import "./chunk-QYPE3TS3.js";
111
112
  import {
@@ -162,7 +163,7 @@ import {
162
163
  } from "./chunk-PXYBUFDB.js";
163
164
  import "./chunk-ZSO5B6SW.js";
164
165
  import "./chunk-D2MDMY2M.js";
165
- import "./chunk-O2H2Z7U4.js";
166
+ import "./chunk-O5V7QQAF.js";
166
167
  import "./chunk-6OEPWZV7.js";
167
168
  import "./chunk-AETZ7AD6.js";
168
169
  import "./chunk-Y6ORVLSS.js";
@@ -3205,11 +3206,16 @@ ${info.actionHint}` : streamError;
3205
3206
  };
3206
3207
  const initialRawMsgs = selectAllMsgs(state, dialogId);
3207
3208
  const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
3208
- const agentConfigWithTools = mergeAgentToolsWithRuntime(
3209
- agentConfigWithReferences,
3210
- [...contextTools, ...attachmentTools],
3211
- mentionedTools,
3212
- runtimeOptions,
3209
+ const accountSkillRuntime = agentConfigWithReferences.runtimePromptAlreadyInMessages ? null : await resolveUserSkillRuntime(agentConfigWithReferences, state.settings);
3210
+ const agentConfigWithTools = resolveWebAgentRuntimeToolSurface(
3211
+ mergeAgentToolsWithRuntime(
3212
+ agentConfigWithReferences,
3213
+ [...contextTools, ...attachmentTools],
3214
+ mentionedTools,
3215
+ runtimeOptions,
3216
+ state,
3217
+ accountSkillRuntime
3218
+ ),
3213
3219
  state
3214
3220
  );
3215
3221
  const agentConfigForCall = applyImageConfigRuntimeOverride(
@@ -8,31 +8,31 @@ import {
8
8
  toolQueryFunc,
9
9
  toolQueryFunctionSchema,
10
10
  toolRegistry
11
- } from "./chunk-FRRAM6QM.js";
11
+ } from "./chunk-WOKS3DR3.js";
12
12
  import "./chunk-KFHREHUQ.js";
13
13
  import "./chunk-BBGYSMUE.js";
14
14
  import "./chunk-OXME3PEE.js";
15
15
  import "./chunk-KSTEXKL6.js";
16
16
  import "./chunk-VF4K2QE6.js";
17
17
  import "./chunk-Z3MQYKRN.js";
18
- import "./chunk-NFJRJUXP.js";
18
+ import "./chunk-BUCI6WU4.js";
19
19
  import "./chunk-NF64D32W.js";
20
20
  import "./chunk-3L2WKC3W.js";
21
- import "./chunk-76OXA55E.js";
22
- import "./chunk-BROD7MPO.js";
21
+ import "./chunk-QYOB7RVA.js";
22
+ import "./chunk-PMKV3GBE.js";
23
23
  import "./chunk-MYOH447Z.js";
24
24
  import "./chunk-RXUKDHS5.js";
25
25
  import "./chunk-WYKMOZTW.js";
26
26
  import "./chunk-AGIM7IMJ.js";
27
27
  import "./chunk-63W5N6P3.js";
28
- import "./chunk-INBKVXYL.js";
29
- import "./chunk-KTM3RYQE.js";
28
+ import "./chunk-WOIO46PT.js";
29
+ import "./chunk-SJNMVC4C.js";
30
30
  import "./chunk-5XBUWM6I.js";
31
- import "./chunk-VPYPZFTW.js";
31
+ import "./chunk-7UVMTDNQ.js";
32
32
  import "./chunk-TZXPT53C.js";
33
33
  import "./chunk-LEC5ALIN.js";
34
34
  import "./chunk-523DITKR.js";
35
- import "./chunk-UXKMBX4C.js";
35
+ import "./chunk-CJTDTUBE.js";
36
36
  import "./chunk-BYXBJQAS.js";
37
37
  import "./chunk-QYPE3TS3.js";
38
38
  import "./chunk-T3U2KQF4.js";
@@ -59,7 +59,7 @@ import "./chunk-OW765XBU.js";
59
59
  import "./chunk-PXYBUFDB.js";
60
60
  import "./chunk-ZSO5B6SW.js";
61
61
  import "./chunk-D2MDMY2M.js";
62
- import "./chunk-O2H2Z7U4.js";
62
+ import "./chunk-O5V7QQAF.js";
63
63
  import {
64
64
  TOOL_PACKS,
65
65
  addDefaultLightWebToolsForConfiguredAgents,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-KTM3RYQE.js";
3
+ } from "./chunk-SJNMVC4C.js";
4
4
  import "./chunk-5XBUWM6I.js";
5
5
  import {
6
6
  format,
7
7
  isAssistantToolStub,
8
8
  selectAllMsgs
9
- } from "./chunk-VPYPZFTW.js";
9
+ } from "./chunk-7UVMTDNQ.js";
10
10
  import "./chunk-TZXPT53C.js";
11
11
  import "./chunk-LEC5ALIN.js";
12
12
  import {
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-523DITKR.js";
16
16
  import {
17
17
  runLlm
18
- } from "./chunk-UXKMBX4C.js";
18
+ } from "./chunk-CJTDTUBE.js";
19
19
  import "./chunk-BYXBJQAS.js";
20
20
  import "./chunk-QYPE3TS3.js";
21
21
  import "./chunk-T3U2KQF4.js";
package/chunk-TYQAGKPR.js DELETED
@@ -1,57 +0,0 @@
1
- import {
2
- isAgentSkillDisabled
3
- } from "./chunk-76OXA55E.js";
4
- import {
5
- resolveBuiltinSkillEntry
6
- } from "./chunk-O2H2Z7U4.js";
7
-
8
- // packages/ai/skills/userPromptSkills.ts
9
- var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
10
- var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
11
- RECOMMENDED_PROMPT_SKILL_SLUGS
12
- );
13
- function normalizeEnabledPromptSkills(value) {
14
- if (!Array.isArray(value)) {
15
- return [];
16
- }
17
- const result = [];
18
- const seen = /* @__PURE__ */ new Set();
19
- for (const item of value) {
20
- if (typeof item !== "string") {
21
- continue;
22
- }
23
- const trimmed = item.trim();
24
- if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
25
- seen.add(trimmed);
26
- result.push(trimmed);
27
- }
28
- }
29
- return result;
30
- }
31
- function resolveUserPromptSkillPatches(agentConfig, enabledPromptSkills) {
32
- const normalized = normalizeEnabledPromptSkills(enabledPromptSkills);
33
- if (normalized.length === 0) {
34
- return [];
35
- }
36
- const effectiveConfig = agentConfig && typeof agentConfig === "object" ? "rawRecord" in agentConfig && agentConfig.rawRecord && typeof agentConfig.rawRecord === "object" ? agentConfig.rawRecord : agentConfig : null;
37
- const patches = [];
38
- for (const slug of normalized) {
39
- if (isAgentSkillDisabled(effectiveConfig, slug)) {
40
- continue;
41
- }
42
- const entry = resolveBuiltinSkillEntry(slug);
43
- if (!entry) {
44
- continue;
45
- }
46
- const content = entry.content?.trim();
47
- if (content) {
48
- patches.push(content);
49
- }
50
- }
51
- return patches;
52
- }
53
-
54
- export {
55
- normalizeEnabledPromptSkills,
56
- resolveUserPromptSkillPatches
57
- };