nolo-cli 0.61.0-alpha.2 → 0.62.0

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 (60) hide show
  1. package/{_executeModel-CKT6RGTL.js → _executeModel-R26QYY66.js} +13 -12
  2. package/{agentDeleteCommand-VN7NPXQ4.js → agentDeleteCommand-6GNQA4J4.js} +1 -1
  3. package/{agentEmailCommands-F2TNAV4A.js → agentEmailCommands-HH67CYKD.js} +13 -12
  4. package/{agentListCommands-OSM2ANI3.js → agentListCommands-23XW3OPZ.js} +1 -1
  5. package/{agentMachineCommands-MTPWYVRV.js → agentMachineCommands-HXHASEWO.js} +2 -2
  6. package/{agentRecordCommands-VWAWTVVC.js → agentRecordCommands-UHTQJVGC.js} +13 -12
  7. package/{agentRunCommand-PLZOBNVK.js → agentRunCommand-OAMT77EX.js} +14 -13
  8. package/{agentRuntimeLocal-XCJLRWQE.js → agentRuntimeLocal-QBK4H3T2.js} +1 -1
  9. package/{agentSlice-F6DOP4IW.js → agentSlice-7XJH5WQF.js} +1 -1
  10. package/{appDeleteCommands-3BCFTRFJ.js → appDeleteCommands-AX2O6VDV.js} +1 -1
  11. package/{appDeployCommands-B4GMHCYA.js → appDeployCommands-L5ZR26CB.js} +1 -1
  12. package/{appDeployStatusCommands-4MN36WIG.js → appDeployStatusCommands-5HQHELRA.js} +1 -1
  13. package/{appGetCommands-4GJIEUAX.js → appGetCommands-HVSYOS57.js} +1 -1
  14. package/{appListCommands-CHU53GSX.js → appListCommands-XV2FPTWX.js} +1 -1
  15. package/{chatQueueReduxAdapter-HNSQXNIR.js → chatQueueReduxAdapter-F3R253JE.js} +2 -2
  16. package/{chunk-6HIGYUBQ.js → chunk-6XIE5ZGI.js} +1 -1
  17. package/{chunk-B7DXRX7F.js → chunk-7KELZLC2.js} +4 -4
  18. package/chunk-AETZ7AD6.js +274 -0
  19. package/{chunk-2HPRMEEZ.js → chunk-CQ2OZMLQ.js} +10 -10
  20. package/{chunk-ES6CVKVD.js → chunk-DWYSDNOH.js} +3 -3
  21. package/{chunk-DZZL7UBV.js → chunk-E3YVTQWT.js} +1 -1
  22. package/chunk-E4MARS3Q.js +114 -0
  23. package/{chunk-HQP7HJDL.js → chunk-F44FAXP2.js} +3 -3
  24. package/{chunk-7UF7CQ6B.js → chunk-GSXDRMDO.js} +2 -2
  25. package/{chunk-EY7V7REW.js → chunk-KHCLMKZZ.js} +6 -280
  26. package/{chunk-4C4ST2YE.js → chunk-KSCXMC6U.js} +3 -3
  27. package/{chunk-AVE2YR4F.js → chunk-N6HLMLKE.js} +1 -1
  28. package/{chunk-GAL47RNP.js → chunk-NO42UD73.js} +1 -1
  29. package/{chunk-HLU5Q2GV.js → chunk-NRRPKMM7.js} +1 -1
  30. package/{chunk-37QVS7BU.js → chunk-SKIRVYEI.js} +3 -3
  31. package/{chunk-3JWKQDA4.js → chunk-SYNKICCB.js} +1 -1
  32. package/{chunk-D5XKNNUV.js → chunk-TBHAHL33.js} +8 -8
  33. package/{chunk-IYCUMIYS.js → chunk-VAKVNHK5.js} +5 -5
  34. package/{chunk-HBPV76EK.js → chunk-VHO3TMQZ.js} +8 -8
  35. package/{chunk-7O7KH4X5.js → chunk-Z5MHFBJZ.js} +5 -5
  36. package/{codingSkills-VDXQYWX4.js → codingSkills-TKROLCBA.js} +3 -2
  37. package/{contentThunks-7YG2ZYQC.js → contentThunks-OZPK5B4Z.js} +3 -3
  38. package/{createAgentAutomationAction-PJQSCAIO.js → createAgentAutomationAction-LCIBGE5T.js} +3 -3
  39. package/{createDialogAction-SFEJX6SP.js → createDialogAction-JPJZMHJE.js} +6 -5
  40. package/{createPageAction-B7WRHOQO.js → createPageAction-6P2WLNHO.js} +5 -4
  41. package/{dialogCommands-VL2X22QC.js → dialogCommands-WAFKC3KK.js} +1 -1
  42. package/{dialogSlice-ANMACABO.js → dialogSlice-R5RZHFTU.js} +2 -2
  43. package/{docCreateCommands-ITLGZ5YI.js → docCreateCommands-GHGB42S7.js} +4 -3
  44. package/{docDeleteCommands-LH3YNL4C.js → docDeleteCommands-Y5I7ZEX4.js} +4 -3
  45. package/{docReadCommands-YAJ77F36.js → docReadCommands-BMXM6J7T.js} +4 -3
  46. package/{docStore-D4HGHPWI.js → docStore-DKWZ6XJ5.js} +1 -1
  47. package/{docUpdateCommands-DQBOMH2G.js → docUpdateCommands-QNABH3M2.js} +4 -3
  48. package/{handleSendMessageAction-DF2OABGW.js → handleSendMessageAction-UQGKM4UX.js} +2 -2
  49. package/index.js +40 -40
  50. package/{machineCommands-JXDYQ5LB.js → machineCommands-YDAIPYU5.js} +13 -12
  51. package/{machineWsRunDispatch-3QHI7JX5.js → machineWsRunDispatch-O6RM2ECT.js} +13 -12
  52. package/package.json +1 -1
  53. package/{readlineWorkspace-KVZTEAHB.js → readlineWorkspace-5DP3AJWN.js} +14 -13
  54. package/{runAgentClientLoop-KGTEL7ZP.js → runAgentClientLoop-Y6HWP2PT.js} +11 -10
  55. package/{skillDiscovery-NTRLM6KP.js → skillDiscovery-CYUCJMAG.js} +2 -1
  56. package/{spaceCommands-KNAYWMCZ.js → spaceCommands-CLN45IE3.js} +1 -1
  57. package/{streamAgentChatTurn-FLYPTXKZ.js → streamAgentChatTurn-6WFQJ4DY.js} +12 -11
  58. package/{tools-CVLUXK6P.js → tools-RR53D65Q.js} +9 -8
  59. package/{updateDialogTitleAction-HWJIZEIV.js → updateDialogTitleAction-WXS3AKOL.js} +3 -3
  60. package/chunk-AQMVUA7N.js +0 -2575
@@ -1,11 +1,4 @@
1
- import {
2
- asTrimmedNonEmptyStringArray
3
- } from "./chunk-I42VC5KR.js";
4
- import {
5
- asOptionalTrimmedString
6
- } from "./chunk-G3SUCT4W.js";
7
-
8
- // packages/ai/node_modules/js-yaml/dist/js-yaml.mjs
1
+ // node_modules/js-yaml/dist/js-yaml.mjs
9
2
  function getDefaultExportFromCjs(x) {
10
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11
4
  }
@@ -1283,21 +1276,16 @@ function requireLoader() {
1283
1276
  state.result += _result;
1284
1277
  }
1285
1278
  }
1286
- function chargeMergeWork(state) {
1287
- state.totalMergeKeys++;
1288
- if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1289
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1290
- }
1291
- }
1292
1279
  function mergeMappings(state, destination, source, overridableKeys) {
1293
1280
  if (!common2.isObject(source)) {
1294
1281
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1295
1282
  }
1296
- chargeMergeWork(state);
1297
1283
  const sourceKeys = Object.keys(source);
1298
1284
  for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1299
1285
  const key = sourceKeys[index];
1300
- chargeMergeWork(state);
1286
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1287
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1288
+ }
1301
1289
  if (!_hasOwnProperty.call(destination, key)) {
1302
1290
  setProperty(destination, key, source[key]);
1303
1291
  overridableKeys[key] = true;
@@ -1325,9 +1313,6 @@ function requireLoader() {
1325
1313
  }
1326
1314
  if (keyTag === "tag:yaml.org,2002:merge") {
1327
1315
  if (Array.isArray(valueNode)) {
1328
- if (valueNode.length > 100) {
1329
- throwError(state, "abnormal merge sequence size");
1330
- }
1331
1316
  for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1332
1317
  mergeMappings(state, _result, valueNode[index], overridableKeys);
1333
1318
  }
@@ -3071,266 +3056,7 @@ var {
3071
3056
  safeDump
3072
3057
  } = yaml;
3073
3058
 
3074
- // packages/ai/skills/skillDocProtocol.ts
3075
- var SKILL_DOC_ENUMS = {
3076
- triggerMode: ["explicit", "required", "recommended"],
3077
- // budgetTier 只服务 WorkflowReferenceConfig;skill 侧已移除(零读点)。
3078
- budgetTier: ["low", "medium", "high"],
3079
- modality: ["text", "image", "video", "audio", "3d"],
3080
- docKind: ["knowledge", "instruction", "skill"]
3081
- };
3082
- var SKILL_CONFIG_BLOCK = "skill-config";
3083
- var EVAL_CONFIG_BLOCK = "eval-config";
3084
- var WORKFLOW_CONFIG_BLOCK = "workflow-config";
3085
- var normalizeStringArray = (value) => {
3086
- if (!Array.isArray(value)) return void 0;
3087
- const items = [...new Set(asTrimmedNonEmptyStringArray(value))];
3088
- return items.length > 0 ? items : void 0;
3089
- };
3090
- var normalizeSkillEnumValue = (key, value) => typeof value === "string" && SKILL_DOC_ENUMS[key].includes(value) ? value : void 0;
3091
- var normalizeSkillModalities = (value) => {
3092
- const raw = normalizeStringArray(value);
3093
- if (!raw) return void 0;
3094
- const filtered = raw.flatMap((item) => {
3095
- const modality = normalizeSkillEnumValue("modality", item);
3096
- return modality ? [modality] : [];
3097
- });
3098
- return filtered.length > 0 ? Array.from(new Set(filtered)) : void 0;
3099
- };
3100
- var normalizeSkillConfig = (value, fallbackTools) => {
3101
- if (!value || typeof value !== "object") return void 0;
3102
- const record = value;
3103
- const name = asOptionalTrimmedString(record.name) ?? "";
3104
- const description = asOptionalTrimmedString(record.description) ?? "";
3105
- if (!name || !description) return void 0;
3106
- const triggerMode = normalizeSkillEnumValue("triggerMode", record.triggerMode);
3107
- const modalities = normalizeSkillModalities(record.modalities);
3108
- const toolNames = normalizeStringArray(record.toolNames) ?? normalizeStringArray(fallbackTools) ?? void 0;
3109
- return {
3110
- version: "0.1",
3111
- kind: "skill",
3112
- id: asOptionalTrimmedString(record.id),
3113
- name,
3114
- description,
3115
- triggerMode,
3116
- toolNames,
3117
- modalities,
3118
- requiredSkills: normalizeStringArray(record.requiredSkills),
3119
- recommendedSkills: normalizeStringArray(record.recommendedSkills),
3120
- promptPatch: asOptionalTrimmedString(record.promptPatch)
3121
- };
3122
- };
3123
- var normalizeEvalConfig = (value) => {
3124
- if (!value || typeof value !== "object") return void 0;
3125
- const record = value;
3126
- if (!Array.isArray(record.cases)) return void 0;
3127
- const cases = [];
3128
- for (const item of record.cases) {
3129
- if (!item || typeof item !== "object") continue;
3130
- const testCase = item;
3131
- const input = asOptionalTrimmedString(testCase.input) ?? "";
3132
- if (!input) continue;
3133
- cases.push({
3134
- input,
3135
- expectedTools: normalizeStringArray(testCase.expectedTools),
3136
- expectedSignals: normalizeStringArray(testCase.expectedSignals),
3137
- forbiddenSignals: normalizeStringArray(testCase.forbiddenSignals)
3138
- });
3139
- }
3140
- return cases.length > 0 ? {
3141
- version: "0.1",
3142
- cases
3143
- } : void 0;
3144
- };
3145
- var normalizeWorkflowConfig = (value) => {
3146
- if (!value || typeof value !== "object") return void 0;
3147
- const record = value;
3148
- const name = asOptionalTrimmedString(record.name) ?? "";
3149
- const description = asOptionalTrimmedString(record.description) ?? "";
3150
- if (!name || !description) return void 0;
3151
- const budgetTier = normalizeSkillEnumValue("budgetTier", record.budgetTier);
3152
- return {
3153
- version: "0.1",
3154
- kind: "workflow",
3155
- id: asOptionalTrimmedString(record.id),
3156
- name,
3157
- description,
3158
- defaultAgent: asOptionalTrimmedString(record.defaultAgent),
3159
- inputs: normalizeStringArray(record.inputs),
3160
- recommendedTools: normalizeStringArray(record.recommendedTools),
3161
- requiredTools: normalizeStringArray(record.requiredTools),
3162
- requiredOutputs: normalizeStringArray(record.requiredOutputs),
3163
- gates: normalizeStringArray(record.gates),
3164
- budgetTier,
3165
- contextStrategy: asOptionalTrimmedString(record.contextStrategy),
3166
- failureProtocol: asOptionalTrimmedString(record.failureProtocol)
3167
- };
3168
- };
3169
- var normalizePageSkillMetadata = (value, fallbackTools) => {
3170
- if (!value || typeof value !== "object") return void 0;
3171
- const record = value;
3172
- const kind = normalizeSkillEnumValue("docKind", record.kind);
3173
- const meta = {
3174
- kind,
3175
- requiredSkills: normalizeStringArray(record.requiredSkills),
3176
- recommendedSkills: normalizeStringArray(record.recommendedSkills),
3177
- skillConfig: normalizeSkillConfig(record.skillConfig, fallbackTools),
3178
- evalConfig: normalizeEvalConfig(record.evalConfig),
3179
- workflowConfig: normalizeWorkflowConfig(record.workflowConfig)
3180
- };
3181
- if (meta.skillConfig && !meta.kind) {
3182
- meta.kind = "skill";
3183
- }
3184
- if (meta.workflowConfig && !meta.kind) {
3185
- meta.kind = "instruction";
3186
- }
3187
- return meta.kind || meta.requiredSkills || meta.recommendedSkills || meta.skillConfig || meta.evalConfig || meta.workflowConfig ? meta : void 0;
3188
- };
3189
- var extractCommentBlock = (markdown, blockName) => {
3190
- if (!markdown) return void 0;
3191
- const matcher = new RegExp(
3192
- `<!--\\s*${blockName}\\s*\\n([\\s\\S]*?)-->`,
3193
- "i"
3194
- );
3195
- const match = markdown.match(matcher);
3196
- return asOptionalTrimmedString(match?.[1]);
3197
- };
3198
- var removeCommentBlock = (markdown, blockName) => markdown.replace(
3199
- new RegExp(`\\n?<!--\\s*${blockName}\\s*\\n[\\s\\S]*?-->\\s*`, "gi"),
3200
- "\n\n"
3201
- );
3202
- var parseYamlObject = (raw) => {
3203
- if (!raw) return void 0;
3204
- try {
3205
- const parsed = load(raw);
3206
- return parsed && typeof parsed === "object" ? parsed : void 0;
3207
- } catch {
3208
- return void 0;
3209
- }
3210
- };
3211
- var parseSkillDocProtocol = (markdown, existingMeta, fallbackTools) => {
3212
- const source = typeof markdown === "string" ? markdown : "";
3213
- const skillBlock = parseYamlObject(extractCommentBlock(source, SKILL_CONFIG_BLOCK));
3214
- const evalBlock = parseYamlObject(extractCommentBlock(source, EVAL_CONFIG_BLOCK));
3215
- const workflowBlock = parseYamlObject(extractCommentBlock(source, WORKFLOW_CONFIG_BLOCK));
3216
- const cleanedContent = removeCommentBlock(
3217
- removeCommentBlock(
3218
- removeCommentBlock(source, SKILL_CONFIG_BLOCK),
3219
- EVAL_CONFIG_BLOCK
3220
- ),
3221
- WORKFLOW_CONFIG_BLOCK
3222
- ).replace(/\n{3,}/g, "\n\n").trim();
3223
- const parsedMeta = normalizePageSkillMetadata(
3224
- {
3225
- ...existingMeta ?? {},
3226
- ...skillBlock ? {
3227
- kind: existingMeta?.kind === "skill" || skillBlock.kind === "skill" ? "skill" : existingMeta?.kind,
3228
- requiredSkills: skillBlock.requiredSkills ?? existingMeta?.requiredSkills,
3229
- recommendedSkills: skillBlock.recommendedSkills ?? existingMeta?.recommendedSkills,
3230
- skillConfig: skillBlock
3231
- } : {},
3232
- ...evalBlock ? { evalConfig: evalBlock } : {},
3233
- ...workflowBlock ? { workflowConfig: workflowBlock } : {}
3234
- },
3235
- fallbackTools
3236
- );
3237
- return {
3238
- content: cleanedContent,
3239
- meta: parsedMeta
3240
- };
3241
- };
3242
- var resolvePageSkillMetadata = (page) => {
3243
- if (!page) return void 0;
3244
- const existingMeta = normalizePageSkillMetadata(page.meta, page.tools);
3245
- return parseSkillDocProtocol(page.content ?? "", existingMeta, page.tools).meta;
3246
- };
3247
- var yamlBlock = (value) => dump(value, { lineWidth: 120, noRefs: true }).trim();
3248
- var buildSkillConfigComment = (config) => {
3249
- const payload = {
3250
- version: config.version,
3251
- kind: config.kind,
3252
- ...config.id ? { id: config.id } : {},
3253
- name: config.name,
3254
- description: config.description,
3255
- ...config.triggerMode ? { triggerMode: config.triggerMode } : {},
3256
- ...config.requiredSkills?.length ? { requiredSkills: config.requiredSkills } : {},
3257
- ...config.recommendedSkills?.length ? { recommendedSkills: config.recommendedSkills } : {},
3258
- ...config.toolNames?.length ? { toolNames: config.toolNames } : {},
3259
- ...config.modalities?.length ? { modalities: config.modalities } : {},
3260
- ...config.promptPatch ? { promptPatch: config.promptPatch } : {}
3261
- };
3262
- return `<!-- ${SKILL_CONFIG_BLOCK}
3263
- ${yamlBlock(payload)}
3264
- -->`;
3265
- };
3266
- var buildEvalConfigComment = (config) => `<!-- ${EVAL_CONFIG_BLOCK}
3267
- ${yamlBlock({
3268
- version: config.version,
3269
- cases: config.cases
3270
- })}
3271
- -->`;
3272
- var buildWorkflowConfigComment = (config) => `<!-- ${WORKFLOW_CONFIG_BLOCK}
3273
- ${yamlBlock({
3274
- version: config.version,
3275
- kind: config.kind,
3276
- ...config.id ? { id: config.id } : {},
3277
- name: config.name,
3278
- description: config.description,
3279
- ...config.defaultAgent ? { defaultAgent: config.defaultAgent } : {},
3280
- ...config.inputs?.length ? { inputs: config.inputs } : {},
3281
- ...config.recommendedTools?.length ? { recommendedTools: config.recommendedTools } : {},
3282
- ...config.requiredTools?.length ? { requiredTools: config.requiredTools } : {},
3283
- ...config.requiredOutputs?.length ? { requiredOutputs: config.requiredOutputs } : {},
3284
- ...config.gates?.length ? { gates: config.gates } : {},
3285
- ...config.budgetTier ? { budgetTier: config.budgetTier } : {},
3286
- ...config.contextStrategy ? { contextStrategy: config.contextStrategy } : {},
3287
- ...config.failureProtocol ? { failureProtocol: config.failureProtocol } : {}
3288
- })}
3289
- -->`;
3290
- var buildSkillDocMarkdown = (options) => {
3291
- const sections = [
3292
- asOptionalTrimmedString(options.body) ?? "",
3293
- buildSkillConfigComment(options.skillConfig),
3294
- options.evalConfig ? buildEvalConfigComment(options.evalConfig) : "",
3295
- options.workflowConfig ? buildWorkflowConfigComment(options.workflowConfig) : ""
3296
- ].filter(Boolean);
3297
- return sections.join("\n\n").trim();
3298
- };
3299
- var extractFrontmatter = (markdown) => {
3300
- const match = markdown.match(/^\s*---\s*\n([\s\S]*?)\n\s*---\s*\n?/);
3301
- if (!match) return { body: markdown.trim() };
3302
- const frontmatter = parseYamlObject(match[1]);
3303
- const body = markdown.slice(match[0].length).trim();
3304
- return { frontmatter, body };
3305
- };
3306
- var normalizeAllowedTools = (value) => {
3307
- if (Array.isArray(value)) {
3308
- return normalizeStringArray(value) ?? [];
3309
- }
3310
- if (typeof value === "string") {
3311
- return value.split(/\s+/).map((item) => item.trim()).filter(Boolean);
3312
- }
3313
- return [];
3314
- };
3315
- var parseExternalSkillMarkdown = (markdown) => {
3316
- const { frontmatter, body } = extractFrontmatter(markdown);
3317
- return {
3318
- name: asOptionalTrimmedString(frontmatter?.name),
3319
- description: asOptionalTrimmedString(frontmatter?.description),
3320
- compatibility: asOptionalTrimmedString(frontmatter?.compatibility),
3321
- allowedTools: normalizeAllowedTools(frontmatter?.["allowed-tools"]),
3322
- metadata: frontmatter?.metadata && typeof frontmatter.metadata === "object" ? Object.fromEntries(
3323
- Object.entries(frontmatter.metadata).filter(([, value]) => typeof value === "string").map(([key, value]) => [key, String(value)])
3324
- ) : void 0,
3325
- body
3326
- };
3327
- };
3328
-
3329
3059
  export {
3330
- normalizeStringArray,
3331
- normalizeSkillModalities,
3332
- parseSkillDocProtocol,
3333
- resolvePageSkillMetadata,
3334
- buildSkillDocMarkdown,
3335
- parseExternalSkillMarkdown
3060
+ load,
3061
+ dump
3336
3062
  };
@@ -19178,10 +19178,10 @@ function buildLoadSkillExecutor(args2) {
19178
19178
  metadata: { loadSkill: true, resolved: false }
19179
19179
  };
19180
19180
  }
19181
- const { resolveSkillByName } = await import("./skillDiscovery-NTRLM6KP.js");
19181
+ const { resolveSkillByName } = await import("./skillDiscovery-CYUCJMAG.js");
19182
19182
  const resolved = resolveSkillByName(args2.cwd, name);
19183
19183
  if (!resolved) {
19184
- const { resolveCodingBuiltinSlug, buildCodingSkillContentBySlug } = await import("./codingSkills-VDXQYWX4.js");
19184
+ const { resolveCodingBuiltinSlug, buildCodingSkillContentBySlug } = await import("./codingSkills-TKROLCBA.js");
19185
19185
  const builtinSlug = resolveCodingBuiltinSlug(name);
19186
19186
  if (builtinSlug) {
19187
19187
  const body = buildCodingSkillContentBySlug(builtinSlug);
@@ -19216,7 +19216,7 @@ ${body}`,
19216
19216
  };
19217
19217
  }
19218
19218
  async function formatUnknownSkillMessage(cwd, requestedName) {
19219
- const { discoverSkills } = await import("./skillDiscovery-NTRLM6KP.js");
19219
+ const { discoverSkills } = await import("./skillDiscovery-CYUCJMAG.js");
19220
19220
  let available = [];
19221
19221
  try {
19222
19222
  available = discoverSkills(cwd).map((s) => s.name);
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  deleteDialog,
8
8
  toast
9
- } from "./chunk-D5XKNNUV.js";
9
+ } from "./chunk-TBHAHL33.js";
10
10
  import {
11
11
  require_date_fns
12
12
  } from "./chunk-M76ECQRD.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-B7DXRX7F.js";
4
+ } from "./chunk-7KELZLC2.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-7O7KH4X5.js";
3
+ } from "./chunk-Z5MHFBJZ.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-RXX4GDIH.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-7O7KH4X5.js";
4
+ } from "./chunk-Z5MHFBJZ.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-2HPRMEEZ.js";
7
+ } from "./chunk-CQ2OZMLQ.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-4C4ST2YE.js";
10
+ } from "./chunk-KSCXMC6U.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
13
  } from "./chunk-RJ2SAFB5.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-2HPRMEEZ.js";
4
+ } from "./chunk-CQ2OZMLQ.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-O6OSWFZQ.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-AGGIDPCZ.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-HQP7HJDL.js";
16
+ } from "./chunk-F44FAXP2.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
19
  } from "./chunk-4NJEIGBQ.js";
@@ -2886,7 +2886,7 @@ var messageSlice = createSliceWithThunks({
2886
2886
  runtimeOptions: args.runtimeOptions
2887
2887
  });
2888
2888
  if (agentKeyToUse) {
2889
- const { streamAgentChatTurn } = await import("./agentSlice-F6DOP4IW.js");
2889
+ const { streamAgentChatTurn } = await import("./agentSlice-7XJH5WQF.js");
2890
2890
  await dispatch(
2891
2891
  streamAgentChatTurn({
2892
2892
  agentKey: agentKeyToUse,
@@ -4188,7 +4188,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4188
4188
  }
4189
4189
  if (isCurrentDialog) {
4190
4190
  await thunkApi.dispatch(resetMsgs());
4191
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ANMACABO.js");
4191
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-R5RZHFTU.js");
4192
4192
  dispatch(clearPendingAttachments2());
4193
4193
  }
4194
4194
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -4196,15 +4196,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4196
4196
 
4197
4197
  // packages/chat/dialog/dialogSlice.ts
4198
4198
  var runCreateDialogAction = async (args, thunkApi) => {
4199
- const { createDialogAction } = await import("./createDialogAction-SFEJX6SP.js");
4199
+ const { createDialogAction } = await import("./createDialogAction-JPJZMHJE.js");
4200
4200
  return createDialogAction(args, thunkApi);
4201
4201
  };
4202
4202
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
4203
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-PJQSCAIO.js");
4203
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-LCIBGE5T.js");
4204
4204
  return createAgentAutomationAction(args, thunkApi);
4205
4205
  };
4206
4206
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
4207
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-HWJIZEIV.js");
4207
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-WXS3AKOL.js");
4208
4208
  return updateDialogTitleAction(args, thunkApi);
4209
4209
  };
4210
4210
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -4228,7 +4228,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
4228
4228
  return setDialogExtraReferencesAction(args, thunkApi);
4229
4229
  };
4230
4230
  var runHandleSendMessageAction = async (args, thunkApi) => {
4231
- const { handleSendMessageAction } = await import("./handleSendMessageAction-DF2OABGW.js");
4231
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-UQGKM4UX.js");
4232
4232
  return handleSendMessageAction(args, thunkApi);
4233
4233
  };
4234
4234
  function clearDialogState() {
@@ -4241,7 +4241,7 @@ var createPageAndAddReference = createAsyncThunk(
4241
4241
  async (payload, { dispatch, getState, rejectWithValue }) => {
4242
4242
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
4243
4243
  try {
4244
- const { createDocState } = await import("./docStore-D4HGHPWI.js");
4244
+ const { createDocState } = await import("./docStore-DKWZ6XJ5.js");
4245
4245
  const pageKey = await createDocState(
4246
4246
  { slateData, title },
4247
4247
  { dispatch, getState }
@@ -5,14 +5,14 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-3JWKQDA4.js";
8
+ } from "./chunk-SYNKICCB.js";
9
9
  import {
10
10
  INVALID_TOOL_ARGS_REPLACEMENT,
11
11
  buildInvalidToolCallSelfHealResult,
12
12
  parseToolCallArguments,
13
13
  performFetchRequest,
14
14
  sanitizeOutboundMessages
15
- } from "./chunk-B7DXRX7F.js";
15
+ } from "./chunk-7KELZLC2.js";
16
16
  import {
17
17
  createSSEParser,
18
18
  createToolRunId,
@@ -23,7 +23,7 @@ import {
23
23
  toolRunSetPending,
24
24
  toolRunStarted,
25
25
  toolRunSucceeded
26
- } from "./chunk-2HPRMEEZ.js";
26
+ } from "./chunk-CQ2OZMLQ.js";
27
27
  import {
28
28
  getPublicImageAgentMode
29
29
  } from "./chunk-VIDPVFP3.js";
@@ -35,10 +35,10 @@ import {
35
35
  messageStreamEnd,
36
36
  messageStreaming,
37
37
  updateToolMessage
38
- } from "./chunk-D5XKNNUV.js";
38
+ } from "./chunk-TBHAHL33.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-HQP7HJDL.js";
41
+ } from "./chunk-F44FAXP2.js";
42
42
  import {
43
43
  addActiveController,
44
44
  removeActiveController,
@@ -27,7 +27,7 @@ import {
27
27
  resolveLocalUserId,
28
28
  t,
29
29
  toolLabel
30
- } from "./chunk-7O7KH4X5.js";
30
+ } from "./chunk-Z5MHFBJZ.js";
31
31
  import {
32
32
  createRunActivityTracker,
33
33
  popSingleQueueMessage,
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-LTRXGFMS.js";
64
64
  import {
65
65
  formatAgentListCard
66
- } from "./chunk-2HPRMEEZ.js";
66
+ } from "./chunk-CQ2OZMLQ.js";
67
67
  import {
68
68
  isTransientFetchError
69
69
  } from "./chunk-5XTOKQLW.js";
@@ -84,12 +84,12 @@ import {
84
84
  chooseMemoryOwners,
85
85
  loadMemoryCandidatesFromDb,
86
86
  resolveAgentMemoryPolicy
87
- } from "./chunk-ES6CVKVD.js";
87
+ } from "./chunk-DWYSDNOH.js";
88
88
  import {
89
89
  API_REPORTED_COST_MULTIPLIER,
90
90
  normalizeUsage,
91
91
  parseUiAskChoiceContent
92
- } from "./chunk-D5XKNNUV.js";
92
+ } from "./chunk-TBHAHL33.js";
93
93
  import {
94
94
  isOAuthApiKeyRef
95
95
  } from "./chunk-YYLHWIW6.js";
@@ -103,16 +103,16 @@ import {
103
103
  } from "./chunk-C3FZR5EC.js";
104
104
  import {
105
105
  buildSkillDiscoveryContextLayer
106
- } from "./chunk-AQMVUA7N.js";
106
+ } from "./chunk-E4MARS3Q.js";
107
107
  import {
108
108
  parseExternalSkillMarkdown,
109
109
  parseSkillDocProtocol
110
- } from "./chunk-EY7V7REW.js";
110
+ } from "./chunk-AETZ7AD6.js";
111
111
  import {
112
112
  LOCAL_AGENT_CONFIG_MISSING_CODE,
113
113
  LOCAL_TURN_ABORTED_CODE,
114
114
  readActionGate
115
- } from "./chunk-4C4ST2YE.js";
115
+ } from "./chunk-KSCXMC6U.js";
116
116
  import {
117
117
  resolveAgentRuntimeConfigFromRecord
118
118
  } from "./chunk-XOKOSO35.js";
@@ -5176,7 +5176,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
5176
5176
  // packages/cli/client/agentRun.ts
5177
5177
  import { ulid } from "ulid";
5178
5178
  async function loadRunLocalAgentTurn() {
5179
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XCJLRWQE.js");
5179
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-QBK4H3T2.js");
5180
5180
  return runLocalAgentTurn;
5181
5181
  }
5182
5182
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -55,7 +55,7 @@ import {
55
55
  import {
56
56
  inlineImageUrlsForCustomProvider,
57
57
  prepareTools
58
- } from "./chunk-3JWKQDA4.js";
58
+ } from "./chunk-SYNKICCB.js";
59
59
  import {
60
60
  getServerProviderSecret
61
61
  } from "./chunk-HS7MLR74.js";
@@ -72,7 +72,7 @@ import {
72
72
  rememberMemoryFunctionSchema,
73
73
  resolveAgentRequiredPackIds,
74
74
  setTodoListFunc
75
- } from "./chunk-2HPRMEEZ.js";
75
+ } from "./chunk-CQ2OZMLQ.js";
76
76
  import {
77
77
  fetchWithTransientRetry,
78
78
  isTransientFetchError
@@ -95,13 +95,13 @@ import {
95
95
  prepareTokenUsageData,
96
96
  resolveBuiltinPlatformAgentConfig,
97
97
  runKeyed
98
- } from "./chunk-D5XKNNUV.js";
98
+ } from "./chunk-TBHAHL33.js";
99
99
  import {
100
100
  BUILTIN_TITLE_LLM_CONFIG
101
101
  } from "./chunk-EVBFYPDC.js";
102
102
  import {
103
103
  fetchServerSyncedCredential
104
- } from "./chunk-HQP7HJDL.js";
104
+ } from "./chunk-F44FAXP2.js";
105
105
  import {
106
106
  require_date_fns
107
107
  } from "./chunk-M76ECQRD.js";
@@ -153,7 +153,7 @@ import {
153
153
  resolveOpenAiCompatibleProviderConfig,
154
154
  shouldUseGeminiNativeToolRoute,
155
155
  summarizeToolArguments
156
- } from "./chunk-4C4ST2YE.js";
156
+ } from "./chunk-KSCXMC6U.js";
157
157
  import {
158
158
  PlatformStreamInterruptedError,
159
159
  buildPlatformChatCompletionRequest,
@@ -17,9 +17,10 @@ import {
17
17
  compileCodingEffectiveTools,
18
18
  resolveCodingBuiltinSlug,
19
19
  resolveCodingEffectiveTools
20
- } from "./chunk-DZZL7UBV.js";
20
+ } from "./chunk-E3YVTQWT.js";
21
21
  import "./chunk-ZRSJ3JEH.js";
22
- import "./chunk-EY7V7REW.js";
22
+ import "./chunk-AETZ7AD6.js";
23
+ import "./chunk-KHCLMKZZ.js";
23
24
  import "./chunk-O6OSWFZQ.js";
24
25
  import "./chunk-UZ6XXCVR.js";
25
26
  import "./chunk-I42VC5KR.js";
@@ -7,14 +7,14 @@ import {
7
7
  updateContentPinned,
8
8
  updateContentTitle,
9
9
  uploadAndAddFileToSpace
10
- } from "./chunk-AVE2YR4F.js";
10
+ } from "./chunk-N6HLMLKE.js";
11
11
  import "./chunk-ZJ7UHBJS.js";
12
- import "./chunk-D5XKNNUV.js";
12
+ import "./chunk-TBHAHL33.js";
13
13
  import "./chunk-EVBFYPDC.js";
14
14
  import "./chunk-HQUORJTM.js";
15
15
  import "./chunk-YYLHWIW6.js";
16
16
  import "./chunk-AGGIDPCZ.js";
17
- import "./chunk-HQP7HJDL.js";
17
+ import "./chunk-F44FAXP2.js";
18
18
  import "./chunk-4NJEIGBQ.js";
19
19
  import "./chunk-5RGU3J7P.js";
20
20
  import "./chunk-6YTOJY35.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-AVE2YR4F.js";
3
+ } from "./chunk-N6HLMLKE.js";
4
4
  import "./chunk-ZJ7UHBJS.js";
5
- import "./chunk-D5XKNNUV.js";
5
+ import "./chunk-TBHAHL33.js";
6
6
  import "./chunk-EVBFYPDC.js";
7
7
  import "./chunk-HQUORJTM.js";
8
8
  import "./chunk-YYLHWIW6.js";
9
9
  import "./chunk-AGGIDPCZ.js";
10
- import "./chunk-HQP7HJDL.js";
10
+ import "./chunk-F44FAXP2.js";
11
11
  import "./chunk-4NJEIGBQ.js";
12
12
  import "./chunk-5RGU3J7P.js";
13
13
  import "./chunk-6YTOJY35.js";