@orbit-build/cli 0.3.6 → 0.3.7

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 (3) hide show
  1. package/README.md +5 -3
  2. package/dist/index.js +336 -202
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -37,7 +37,8 @@ Review this codebase, fix the highest-impact problem, and verify it.
37
37
  ```
38
38
 
39
39
  `/webui` does not open a browser automatically. It presents an authenticated,
40
- clickable local URL beside the terminal's completed message.
40
+ clickable local URL beside the terminal's completed message before any optional
41
+ remote model refresh, so provider latency cannot block local startup.
41
42
 
42
43
  ## Other entry points
43
44
 
@@ -63,8 +64,9 @@ failure, `4` for provider startup failure, and `130` for abort.
63
64
  - Browser image input, project switching, queued follow-ups, task and delegated
64
65
  agent visibility, paginated long-chat history, responsive layouts, and
65
66
  English/简体中文/繁體中文 controls.
66
- - Guided Skills and workflows with templates, validation, invocation preview,
67
- editable input hints, enable/disable controls, and portable catalog export.
67
+ - Guided Skills and workflows with localized inline validation, activation
68
+ visibility, failed-save recovery, invocation preview, editable input hints,
69
+ enable/disable controls, and portable catalog export.
68
70
  - Secure provider profiles and authenticated model catalogs without storing
69
71
  credentials in project sessions or support data.
70
72
 
package/dist/index.js CHANGED
@@ -252954,7 +252954,31 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
252954
252954
  ? (state.capabilityKind === 'workflow' ? '/' : '$') + name + (argumentHint ? ' ' + argumentHint : ' ')
252955
252955
  : '—';
252956
252956
  }
252957
+ function clearCapabilityError() {
252958
+ elements.capabilityFormError.hidden = true;
252959
+ elements.capabilityFormError.textContent = '';
252960
+ [
252961
+ elements.capabilityName,
252962
+ elements.capabilityDescription,
252963
+ elements.capabilityInstructions,
252964
+ elements.capabilitySkills,
252965
+ ].forEach((field) => {
252966
+ field.removeAttribute('aria-invalid');
252967
+ field.removeAttribute('aria-describedby');
252968
+ });
252969
+ }
252970
+ function showCapabilityError(message, field) {
252971
+ clearCapabilityError();
252972
+ elements.capabilityFormError.textContent = message;
252973
+ elements.capabilityFormError.hidden = false;
252974
+ if (field) {
252975
+ field.setAttribute('aria-invalid', 'true');
252976
+ field.setAttribute('aria-describedby', 'capabilityFormError');
252977
+ field.focus();
252978
+ }
252979
+ }
252957
252980
  function applyCapabilityTemplate(template) {
252981
+ clearCapabilityError();
252958
252982
  if (template === 'blank' || !capabilityTemplates[template]) {
252959
252983
  elements.capabilityName.value = '';
252960
252984
  elements.capabilityDescription.value = '';
@@ -252976,6 +253000,7 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
252976
253000
  elements.capabilityCreator.hidden = true;
252977
253001
  elements.addCapabilityButton.setAttribute('aria-expanded', 'false');
252978
253002
  elements.capabilityCreator.reset();
253003
+ clearCapabilityError();
252979
253004
  setCapabilityKind('skill');
252980
253005
  updateCapabilityPreview();
252981
253006
  };
@@ -252983,7 +253008,10 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
252983
253008
  const opening = elements.capabilityCreator.hidden;
252984
253009
  elements.capabilityCreator.hidden = !opening;
252985
253010
  elements.addCapabilityButton.setAttribute('aria-expanded', opening ? 'true' : 'false');
252986
- if (opening) elements.capabilityName.focus();
253011
+ if (opening) {
253012
+ clearCapabilityError();
253013
+ elements.capabilityName.focus();
253014
+ }
252987
253015
  });
252988
253016
  elements.cancelCapabilityButton.addEventListener('click', closeCapabilityCreator);
252989
253017
  elements.capabilityKind.querySelectorAll('[data-capability-kind]').forEach((button) => {
@@ -252992,7 +253020,13 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
252992
253020
  elements.capabilityTemplate.addEventListener('change', () => {
252993
253021
  applyCapabilityTemplate(elements.capabilityTemplate.value);
252994
253022
  });
252995
- elements.capabilityName.addEventListener('input', updateCapabilityPreview);
253023
+ elements.capabilityName.addEventListener('input', () => {
253024
+ clearCapabilityError();
253025
+ updateCapabilityPreview();
253026
+ });
253027
+ elements.capabilityDescription.addEventListener('input', clearCapabilityError);
253028
+ elements.capabilityInstructions.addEventListener('input', clearCapabilityError);
253029
+ elements.capabilitySkills.addEventListener('input', clearCapabilityError);
252996
253030
  elements.capabilityArgumentHint.addEventListener('input', updateCapabilityPreview);
252997
253031
  elements.activityFilters.addEventListener('click', (event) => {
252998
253032
  const button = event.target.closest('[data-activity-filter]');
@@ -253033,23 +253067,44 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
253033
253067
  const description = elements.capabilityDescription.value.trim();
253034
253068
  const instructions = elements.capabilityInstructions.value.trim();
253035
253069
  if (!/^[a-z0-9][a-z0-9-]{0,47}$/.test(name)) {
253036
- elements.capabilityName.focus();
253070
+ showCapabilityError(copy.capabilityNameInvalid, elements.capabilityName);
253037
253071
  return;
253038
253072
  }
253039
253073
  if (!description) {
253040
- elements.capabilityDescription.focus();
253074
+ showCapabilityError(copy.capabilityDescriptionRequired, elements.capabilityDescription);
253041
253075
  return;
253042
253076
  }
253043
253077
  if (!instructions) {
253044
- elements.capabilityInstructions.focus();
253078
+ showCapabilityError(copy.capabilityInstructionsRequired, elements.capabilityInstructions);
253045
253079
  return;
253046
253080
  }
253047
253081
  const payload = { kind: state.capabilityKind, name, description, instructions };
253048
253082
  if (state.capabilityKind === 'workflow') {
253049
- payload.skills = elements.capabilitySkills.value.split(',')
253083
+ const requestedSkills = elements.capabilitySkills.value.split(',')
253050
253084
  .map((skill) => skill.trim().toLowerCase())
253051
- .filter((skill, index, all) => /^[a-z0-9][a-z0-9-]{0,47}$/.test(skill) && all.indexOf(skill) === index)
253052
- .slice(0, 8);
253085
+ .filter(Boolean);
253086
+ if (requestedSkills.some((skill) => !/^[a-z0-9][a-z0-9-]{0,47}$/.test(skill))) {
253087
+ showCapabilityError(copy.capabilitySkillsInvalid, elements.capabilitySkills);
253088
+ return;
253089
+ }
253090
+ const uniqueSkills = requestedSkills
253091
+ .filter((skill, index, all) => all.indexOf(skill) === index);
253092
+ if (uniqueSkills.length > 8) {
253093
+ showCapabilityError(copy.capabilitySkillsLimit, elements.capabilitySkills);
253094
+ return;
253095
+ }
253096
+ payload.skills = uniqueSkills;
253097
+ const knownSkills = new Set(
253098
+ (state.skills && state.skills.skills || []).map((skill) => skill.name),
253099
+ );
253100
+ const missingSkills = payload.skills.filter((skill) => !knownSkills.has(skill));
253101
+ if (missingSkills.length) {
253102
+ showCapabilityError(
253103
+ copy.capabilitySkillsMissing + missingSkills.join(', '),
253104
+ elements.capabilitySkills,
253105
+ );
253106
+ return;
253107
+ }
253053
253108
  const argumentHint = elements.capabilityArgumentHint.value.trim();
253054
253109
  if (argumentHint) payload.argumentHint = argumentHint;
253055
253110
  }
@@ -253064,6 +253119,7 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
253064
253119
  await Promise.all([loadSkills(true), loadSlashCommands()]);
253065
253120
  showToast(copy.capabilityCreated, 'success');
253066
253121
  } catch (error) {
253122
+ showCapabilityError(error.message || String(error));
253067
253123
  showToast(error.message || String(error), 'error');
253068
253124
  } finally {
253069
253125
  elements.createCapabilityButton.disabled = false;
@@ -253078,7 +253134,9 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
253078
253134
  applySettings({ skillsMaxActive: Number(elements.skillsMaxActive.value) }, true).catch(() => {});
253079
253135
  });
253080
253136
  elements.refreshSkills.addEventListener('click', () => {
253081
- loadSkills(true).catch((error) => showToast(error.message || String(error), 'error'));
253137
+ loadSkills(true)
253138
+ .then(() => showToast(copy.skillsRefreshed, 'success'))
253139
+ .catch((error) => showToast(error.message || String(error), 'error'));
253082
253140
  });
253083
253141
 
253084
253142
  document.querySelectorAll('[data-theme-value]').forEach((button) => {
@@ -253179,6 +253237,166 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
253179
253237
  initialize();
253180
253238
  `;
253181
253239
 
253240
+ // src/runtime/webui/WebUiClientCapabilities.ts
253241
+ var WEB_UI_CLIENT_CAPABILITIES_SCRIPT = String.raw` function syncSkillControls(enabled) {
253242
+ elements.skillControls.classList.toggle('is-disabled', !enabled);
253243
+ elements.skillControls.setAttribute('aria-disabled', enabled ? 'false' : 'true');
253244
+ elements.skillsMaxActive.disabled = !enabled || state.busy;
253245
+ elements.skillActivationSegments.querySelectorAll('button').forEach((button) => {
253246
+ button.disabled = !enabled || state.busy;
253247
+ });
253248
+ elements.skillList.querySelectorAll('input').forEach((input) => {
253249
+ input.disabled = !enabled || state.busy;
253250
+ });
253251
+ elements.skillList.querySelectorAll('.skill-use').forEach((button) => {
253252
+ button.disabled =
253253
+ !enabled || state.busy || button.dataset.skillDisabled === 'true';
253254
+ });
253255
+ }
253256
+
253257
+ function renderSkills(data) {
253258
+ state.skills = data;
253259
+ const skills = Array.isArray(data.skills) ? data.skills : [];
253260
+ const workflows = Array.isArray(data.workflows) ? data.workflows : [];
253261
+ const diagnostics = Array.isArray(data.diagnostics) ? data.diagnostics : [];
253262
+ const enabledCount = skills.filter((skill) => !skill.disabled).length;
253263
+ elements.skillSummary.textContent = language !== 'en'
253264
+ ? String(enabledCount) + chinese(' 个启用 · ', ' 個啟用 · ') + String(skills.length) + chinese(' 个已发现', ' 個已找到')
253265
+ : String(enabledCount) + ' enabled · ' + String(skills.length) + ' discovered';
253266
+ elements.skillList.replaceChildren();
253267
+ if (!skills.length) {
253268
+ const empty = document.createElement('p');
253269
+ empty.className = 'review-empty';
253270
+ empty.textContent = language !== 'en' ? chinese('配置目录中尚未发现有效 Skill。', '設定目錄中尚未找到有效 Skill。') : 'No valid skills found in configured directories.';
253271
+ elements.skillList.append(empty);
253272
+ }
253273
+ for (const skill of skills) {
253274
+ const row = document.createElement('article');
253275
+ row.className = 'skill-row' + (skill.disabled ? ' is-disabled' : '');
253276
+ const copyBlock = document.createElement('span');
253277
+ copyBlock.className = 'skill-row-copy';
253278
+ const title = document.createElement('strong');
253279
+ title.textContent = skill.displayName || skill.name;
253280
+ const description = document.createElement('span');
253281
+ description.textContent = skill.shortDescription || skill.description;
253282
+ const path = document.createElement('small');
253283
+ const activation = skill.allowImplicitInvocation ? copy.skillAuto : copy.skillExplicit;
253284
+ path.textContent = '$' + skill.name + ' · ' + activation + ' · ' + skill.path + (skill.truncated ? (language !== 'en' ? chinese(' · 已截断', ' · 已截斷') : ' · truncated') : '');
253285
+ copyBlock.append(title, description, path);
253286
+ const actions = document.createElement('span');
253287
+ actions.className = 'skill-row-actions';
253288
+ const use = document.createElement('button');
253289
+ use.type = 'button';
253290
+ use.className = 'skill-use';
253291
+ use.textContent = copy.useSkill;
253292
+ use.setAttribute('aria-label', copy.useSkill + ': ' + (skill.displayName || skill.name));
253293
+ use.dataset.skillDisabled = String(Boolean(skill.disabled));
253294
+ use.disabled = skill.disabled || !data.enabled;
253295
+ use.addEventListener('click', () => {
253296
+ setComposerValue(skill.defaultPrompt || ('$' + skill.name + ' '));
253297
+ setInspector(false);
253298
+ });
253299
+ const toggle = document.createElement('label');
253300
+ toggle.className = 'switch';
253301
+ const input = document.createElement('input');
253302
+ input.type = 'checkbox';
253303
+ input.checked = !skill.disabled;
253304
+ input.setAttribute('aria-label', (skill.displayName || skill.name) + ': ' + (language !== 'en' ? chinese('启用', '啟用') : 'enabled'));
253305
+ input.addEventListener('change', () => {
253306
+ const disabled = new Set(
253307
+ (state.skills.skills || []).filter((item) => item.disabled).map((item) => item.name),
253308
+ );
253309
+ if (input.checked) disabled.delete(skill.name);
253310
+ else disabled.add(skill.name);
253311
+ input.disabled = true;
253312
+ applySettings({ skillsDisabled: Array.from(disabled) })
253313
+ .catch(() => {})
253314
+ .finally(() => {
253315
+ if (input.isConnected) input.disabled = state.busy || !Boolean(state.skills && state.skills.enabled);
253316
+ });
253317
+ });
253318
+ const track = document.createElement('span');
253319
+ track.className = 'switch-track';
253320
+ track.setAttribute('aria-hidden', 'true');
253321
+ toggle.append(input, track);
253322
+ actions.append(use, toggle);
253323
+ row.append(copyBlock, actions);
253324
+ elements.skillList.append(row);
253325
+ }
253326
+ elements.workflowList.replaceChildren();
253327
+ elements.workflowCount.textContent = String(workflows.length);
253328
+ if (!workflows.length) {
253329
+ const empty = document.createElement('p');
253330
+ empty.className = 'review-empty';
253331
+ empty.textContent = language !== 'en'
253332
+ ? chinese('当前工程还没有工作流。', '目前專案尚無工作流程。')
253333
+ : 'No project workflows yet.';
253334
+ elements.workflowList.append(empty);
253335
+ }
253336
+ for (const workflow of workflows) {
253337
+ const row = document.createElement('article');
253338
+ row.className = 'workflow-row';
253339
+ const content = document.createElement('span');
253340
+ content.className = 'skill-row-copy';
253341
+ const title = document.createElement('strong');
253342
+ title.textContent = '/' + workflow.name;
253343
+ const description = document.createElement('span');
253344
+ description.textContent = workflow.description;
253345
+ const path = document.createElement('small');
253346
+ path.textContent = workflow.argumentHint
253347
+ ? workflow.argumentHint + ' · ' + workflow.path
253348
+ : workflow.path;
253349
+ content.append(title, description, path);
253350
+ const use = document.createElement('button');
253351
+ use.type = 'button';
253352
+ use.className = 'skill-use';
253353
+ use.textContent = copy.useWorkflow;
253354
+ use.setAttribute('aria-label', copy.useWorkflow + ': ' + workflow.name);
253355
+ use.addEventListener('click', () => {
253356
+ setComposerValue('/' + workflow.name + ' ');
253357
+ setInspector(false);
253358
+ });
253359
+ row.append(content, use);
253360
+ elements.workflowList.append(row);
253361
+ }
253362
+ elements.skillDiagnostics.replaceChildren();
253363
+ for (const diagnostic of diagnostics) {
253364
+ const item = document.createElement('div');
253365
+ item.className = 'skill-diagnostic is-' + diagnostic.severity;
253366
+ item.textContent = diagnostic.message + ' · ' + diagnostic.path;
253367
+ elements.skillDiagnostics.append(item);
253368
+ }
253369
+ syncSkillControls(Boolean(data.enabled));
253370
+ }
253371
+
253372
+ async function loadSkills(force) {
253373
+ if (state.skillsPromise && !force) return state.skillsPromise;
253374
+ const requestId = ++state.skillRequestId;
253375
+ elements.refreshSkills.disabled = true;
253376
+ elements.refreshSkills.setAttribute('aria-busy', 'true');
253377
+ elements.skillList.setAttribute('aria-busy', 'true');
253378
+ const request = api('/api/skills')
253379
+ .then((data) => {
253380
+ if (requestId === state.skillRequestId) renderSkills(data);
253381
+ return data;
253382
+ })
253383
+ .catch((error) => {
253384
+ if (requestId !== state.skillRequestId) return state.skills;
253385
+ throw error;
253386
+ })
253387
+ .finally(() => {
253388
+ if (requestId !== state.skillRequestId) return;
253389
+ state.skillsPromise = null;
253390
+ elements.refreshSkills.disabled = state.busy;
253391
+ elements.refreshSkills.removeAttribute('aria-busy');
253392
+ elements.skillList.removeAttribute('aria-busy');
253393
+ });
253394
+ state.skillsPromise = request;
253395
+ return request;
253396
+ }
253397
+
253398
+ `;
253399
+
253182
253400
  // src/runtime/webui/WebUiClientApproval.ts
253183
253401
  var WEB_UI_CLIENT_APPROVAL_SCRIPT = String.raw` function renderPendingApproval(approval) {
253184
253402
  state.pendingApproval = approval && approval.id ? approval : null;
@@ -253668,6 +253886,13 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
253668
253886
  diffCopied: '补丁已复制',
253669
253887
  catalogExported: '能力清单已导出',
253670
253888
  capabilityCreated: '能力已添加',
253889
+ skillsRefreshed: 'Skill 列表已刷新',
253890
+ capabilityNameInvalid: '名称必须以小写字母或数字开头,只能包含小写字母、数字和连字符。',
253891
+ capabilityDescriptionRequired: '请填写能力说明。',
253892
+ capabilityInstructionsRequired: '请填写执行说明。',
253893
+ capabilitySkillsInvalid: '组合 Skill 名称只能包含小写字母、数字和连字符。',
253894
+ capabilitySkillsLimit: '一个工作流最多组合 8 个 Skill。',
253895
+ capabilitySkillsMissing: '未发现这些 Skill:',
253671
253896
  openActivity: '打开任务活动',
253672
253897
  openChanges: '打开改动审阅',
253673
253898
  openSettings: '打开设置',
@@ -253691,7 +253916,7 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
253691
253916
  attachmentLimit: '每次最多添加 4 张图片,每张不超过 5 MB。',
253692
253917
  sessionRecovered: '已安全恢复上次异常中断的会话',
253693
253918
  compactContext: '压缩当前上下文',
253694
- recentSession: '最近会话',
253919
+ recentSession: '最近会话',
253695
253920
  switchModel: '切换模型',
253696
253921
  switchMode: '切换权限模式',
253697
253922
  action: '操作',
@@ -253701,7 +253926,7 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
253701
253926
  modeStrict: '严格',
253702
253927
  modeNormal: '标准',
253703
253928
  modeAuto: '自动',
253704
- modePlan: '规划',
253929
+ modePlan: '规划',
253705
253930
  }
253706
253931
  : {
253707
253932
  connected: 'Connected',
@@ -253783,6 +254008,13 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
253783
254008
  diffCopied: 'Patch copied',
253784
254009
  catalogExported: 'Capability catalog exported',
253785
254010
  capabilityCreated: 'Capability added',
254011
+ skillsRefreshed: 'Skill catalog refreshed',
254012
+ capabilityNameInvalid: 'Use a lowercase name that starts with a letter or number and contains only letters, numbers, and hyphens.',
254013
+ capabilityDescriptionRequired: 'Add a capability description.',
254014
+ capabilityInstructionsRequired: 'Add execution instructions.',
254015
+ capabilitySkillsInvalid: 'Composed Skill names may contain only lowercase letters, numbers, and hyphens.',
254016
+ capabilitySkillsLimit: 'A Workflow can compose at most 8 Skills.',
254017
+ capabilitySkillsMissing: 'These Skills were not found: ',
253786
254018
  openActivity: 'Open task activity',
253787
254019
  openChanges: 'Open change review',
253788
254020
  openSettings: 'Open settings',
@@ -253816,7 +254048,7 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
253816
254048
  modeStrict: 'Strict',
253817
254049
  modeNormal: 'Normal',
253818
254050
  modeAuto: 'Auto',
253819
- modePlan: 'Plan',
254051
+ modePlan: 'Plan',
253820
254052
  };
253821
254053
 
253822
254054
  if (language === 'zh-TW') {
@@ -253873,6 +254105,13 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
253873
254105
  diffCopied: '補丁已複製',
253874
254106
  catalogExported: '能力清單已匯出',
253875
254107
  capabilityCreated: '能力已新增',
254108
+ skillsRefreshed: 'Skill 清單已重新整理',
254109
+ capabilityNameInvalid: '名稱須以小寫字母或數字開頭,且只能包含小寫字母、數字與連字號。',
254110
+ capabilityDescriptionRequired: '請填寫能力說明。',
254111
+ capabilityInstructionsRequired: '請填寫執行說明。',
254112
+ capabilitySkillsInvalid: '組合 Skill 名稱只能包含小寫字母、數字與連字號。',
254113
+ capabilitySkillsLimit: '一個工作流程最多組合 8 個 Skill。',
254114
+ capabilitySkillsMissing: '找不到這些 Skill:',
253876
254115
  });
253877
254116
  }
253878
254117
 
@@ -254016,6 +254255,7 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
254016
254255
  capabilityArgumentHint: byId('capabilityArgumentHint'),
254017
254256
  capabilitySkills: byId('capabilitySkills'),
254018
254257
  capabilityPreview: byId('capabilityPreview'),
254258
+ capabilityFormError: byId('capabilityFormError'),
254019
254259
  cancelCapabilityButton: byId('cancelCapabilityButton'),
254020
254260
  createCapabilityButton: byId('createCapabilityButton'),
254021
254261
  skillControls: byId('skillControls'),
@@ -254086,6 +254326,7 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
254086
254326
  settingsPromise: null,
254087
254327
  skills: null,
254088
254328
  skillsPromise: null,
254329
+ skillRequestId: 0,
254089
254330
  controlTurnId: null,
254090
254331
  controlPrompt: '',
254091
254332
  controlTurns: new Map(),
@@ -254174,6 +254415,8 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
254174
254415
  const toast = document.createElement('div');
254175
254416
  toast.className = 'toast' + (kind ? ' is-' + kind : '');
254176
254417
  toast.dataset.message = text;
254418
+ toast.setAttribute('role', kind === 'error' ? 'alert' : 'status');
254419
+ toast.setAttribute('aria-atomic', 'true');
254177
254420
  const body = document.createElement('div');
254178
254421
  body.textContent = text;
254179
254422
  const close = document.createElement('button');
@@ -256584,143 +256827,6 @@ var WEB_UI_CLIENT_SESSION_SCRIPT = String.raw` const controlCommands = ${WEB_UI
256584
256827
  elements.searchMax.disabled = disabled;
256585
256828
  }
256586
256829
 
256587
- function syncSkillControls(enabled) {
256588
- elements.skillControls.classList.toggle('is-disabled', !enabled);
256589
- elements.skillControls.setAttribute('aria-disabled', enabled ? 'false' : 'true');
256590
- elements.skillsMaxActive.disabled = !enabled || state.busy;
256591
- elements.skillActivationSegments.querySelectorAll('button').forEach((button) => {
256592
- button.disabled = !enabled || state.busy;
256593
- });
256594
- elements.skillList.querySelectorAll('input').forEach((input) => {
256595
- input.disabled = !enabled || state.busy;
256596
- });
256597
- elements.skillList.querySelectorAll('.skill-use').forEach((button) => {
256598
- button.disabled =
256599
- !enabled || state.busy || button.dataset.skillDisabled === 'true';
256600
- });
256601
- }
256602
-
256603
- function renderSkills(data) {
256604
- state.skills = data;
256605
- const skills = Array.isArray(data.skills) ? data.skills : [];
256606
- const workflows = Array.isArray(data.workflows) ? data.workflows : [];
256607
- const diagnostics = Array.isArray(data.diagnostics) ? data.diagnostics : [];
256608
- const enabledCount = skills.filter((skill) => !skill.disabled).length;
256609
- elements.skillSummary.textContent = language !== 'en'
256610
- ? String(enabledCount) + chinese(' 个启用 · ', ' 個啟用 · ') + String(skills.length) + chinese(' 个已发现', ' 個已找到')
256611
- : String(enabledCount) + ' enabled · ' + String(skills.length) + ' discovered';
256612
- elements.skillList.replaceChildren();
256613
- if (!skills.length) {
256614
- const empty = document.createElement('p');
256615
- empty.className = 'review-empty';
256616
- empty.textContent = language !== 'en' ? chinese('配置目录中尚未发现有效 Skill。', '設定目錄中尚未找到有效 Skill。') : 'No valid skills found in configured directories.';
256617
- elements.skillList.append(empty);
256618
- }
256619
- for (const skill of skills) {
256620
- const row = document.createElement('article');
256621
- row.className = 'skill-row' + (skill.disabled ? ' is-disabled' : '');
256622
- const copyBlock = document.createElement('span');
256623
- copyBlock.className = 'skill-row-copy';
256624
- const title = document.createElement('strong');
256625
- title.textContent = skill.displayName || skill.name;
256626
- const description = document.createElement('span');
256627
- description.textContent = skill.shortDescription || skill.description;
256628
- const path = document.createElement('small');
256629
- path.textContent = '$' + skill.name + ' · ' + skill.path + (skill.truncated ? (language !== 'en' ? chinese(' · 已截断', ' · 已截斷') : ' · truncated') : '');
256630
- copyBlock.append(title, description, path);
256631
- const actions = document.createElement('span');
256632
- actions.className = 'skill-row-actions';
256633
- const use = document.createElement('button');
256634
- use.type = 'button';
256635
- use.className = 'skill-use';
256636
- use.textContent = copy.useSkill;
256637
- use.setAttribute('aria-label', copy.useSkill + ': ' + (skill.displayName || skill.name));
256638
- use.dataset.skillDisabled = String(Boolean(skill.disabled));
256639
- use.disabled = skill.disabled || !data.enabled;
256640
- use.addEventListener('click', () => {
256641
- setComposerValue(skill.defaultPrompt || ('$' + skill.name + ' '));
256642
- setInspector(false);
256643
- });
256644
- const toggle = document.createElement('label');
256645
- toggle.className = 'switch';
256646
- const input = document.createElement('input');
256647
- input.type = 'checkbox';
256648
- input.checked = !skill.disabled;
256649
- input.setAttribute('aria-label', (skill.displayName || skill.name) + ': ' + (language !== 'en' ? chinese('启用', '啟用') : 'enabled'));
256650
- input.addEventListener('change', () => {
256651
- const disabled = new Set(
256652
- (state.skills.skills || []).filter((item) => item.disabled).map((item) => item.name),
256653
- );
256654
- if (input.checked) disabled.delete(skill.name);
256655
- else disabled.add(skill.name);
256656
- applySettings({ skillsDisabled: Array.from(disabled) }).catch(() => {});
256657
- });
256658
- const track = document.createElement('span');
256659
- track.className = 'switch-track';
256660
- track.setAttribute('aria-hidden', 'true');
256661
- toggle.append(input, track);
256662
- actions.append(use, toggle);
256663
- row.append(copyBlock, actions);
256664
- elements.skillList.append(row);
256665
- }
256666
- elements.workflowList.replaceChildren();
256667
- elements.workflowCount.textContent = String(workflows.length);
256668
- if (!workflows.length) {
256669
- const empty = document.createElement('p');
256670
- empty.className = 'review-empty';
256671
- empty.textContent = language !== 'en'
256672
- ? chinese('当前工程还没有工作流。', '目前專案尚無工作流程。')
256673
- : 'No project workflows yet.';
256674
- elements.workflowList.append(empty);
256675
- }
256676
- for (const workflow of workflows) {
256677
- const row = document.createElement('article');
256678
- row.className = 'workflow-row';
256679
- const content = document.createElement('span');
256680
- content.className = 'skill-row-copy';
256681
- const title = document.createElement('strong');
256682
- title.textContent = '/' + workflow.name;
256683
- const description = document.createElement('span');
256684
- description.textContent = workflow.description;
256685
- const path = document.createElement('small');
256686
- path.textContent = workflow.argumentHint
256687
- ? workflow.argumentHint + ' · ' + workflow.path
256688
- : workflow.path;
256689
- content.append(title, description, path);
256690
- const use = document.createElement('button');
256691
- use.type = 'button';
256692
- use.className = 'skill-use';
256693
- use.textContent = copy.useWorkflow;
256694
- use.setAttribute('aria-label', copy.useWorkflow + ': ' + workflow.name);
256695
- use.addEventListener('click', () => {
256696
- setComposerValue('/' + workflow.name + ' ');
256697
- setInspector(false);
256698
- });
256699
- row.append(content, use);
256700
- elements.workflowList.append(row);
256701
- }
256702
- elements.skillDiagnostics.replaceChildren();
256703
- for (const diagnostic of diagnostics) {
256704
- const item = document.createElement('div');
256705
- item.className = 'skill-diagnostic is-' + diagnostic.severity;
256706
- item.textContent = diagnostic.message + ' · ' + diagnostic.path;
256707
- elements.skillDiagnostics.append(item);
256708
- }
256709
- syncSkillControls(Boolean(data.enabled));
256710
- }
256711
-
256712
- async function loadSkills(force) {
256713
- if (state.skillsPromise && !force) return state.skillsPromise;
256714
- const request = api('/api/skills').then((data) => {
256715
- renderSkills(data);
256716
- return data;
256717
- }).finally(() => {
256718
- if (state.skillsPromise === request) state.skillsPromise = null;
256719
- });
256720
- state.skillsPromise = request;
256721
- return request;
256722
- }
256723
-
256724
256830
  function reconcileStatus() {
256725
256831
  if (state.statusRefresh) return state.statusRefresh;
256726
256832
  const refresh = loadStatus()
@@ -256794,25 +256900,30 @@ var WEB_UI_CLIENT_SESSION_SCRIPT = String.raw` const controlCommands = ${WEB_UI
256794
256900
  }
256795
256901
 
256796
256902
  async function applySettings(patch, quiet) {
256903
+ const previousRequest = state.settingsPromise;
256904
+ const touchesSkills = Object.keys(patch).some((key) => key.startsWith('skills'));
256797
256905
  const request = (async () => {
256798
- await api('/api/settings', {
256799
- method: 'POST',
256800
- headers: { 'Content-Type': 'application/json' },
256801
- body: JSON.stringify(patch),
256802
- });
256803
- await loadStatus();
256804
- if (Object.keys(patch).some((key) => key.startsWith('skills'))) {
256805
- await loadSkills(true);
256906
+ if (previousRequest) await previousRequest.catch(() => {});
256907
+ try {
256908
+ await api('/api/settings', {
256909
+ method: 'POST',
256910
+ headers: { 'Content-Type': 'application/json' },
256911
+ body: JSON.stringify(patch),
256912
+ });
256913
+ await loadStatus();
256914
+ if (touchesSkills) await loadSkills(true);
256915
+ if (!quiet) showToast(copy.settingsSaved, 'success');
256916
+ } catch (error) {
256917
+ const recovery = [loadStatus().catch(() => {})];
256918
+ if (touchesSkills) recovery.push(loadSkills(true).catch(() => {}));
256919
+ await Promise.all(recovery);
256920
+ showToast(error.message || String(error), 'error');
256921
+ throw error;
256806
256922
  }
256807
- if (!quiet) showToast(copy.settingsSaved, 'success');
256808
256923
  })();
256809
256924
  state.settingsPromise = request;
256810
256925
  try {
256811
256926
  await request;
256812
- } catch (error) {
256813
- await loadStatus().catch(() => {});
256814
- showToast(error.message || String(error), 'error');
256815
- throw error;
256816
256927
  } finally {
256817
256928
  if (state.settingsPromise === request) state.settingsPromise = null;
256818
256929
  }
@@ -257498,6 +257609,7 @@ var WEB_UI_CLIENT_SCRIPT = [
257498
257609
  WEB_UI_CLIENT_CONTEXT_SCRIPT,
257499
257610
  WEB_UI_CLIENT_MESSAGES_SCRIPT,
257500
257611
  WEB_UI_CLIENT_HISTORY_SCRIPT,
257612
+ WEB_UI_CLIENT_CAPABILITIES_SCRIPT,
257501
257613
  WEB_UI_CLIENT_SESSION_SCRIPT,
257502
257614
  WEB_UI_CLIENT_SLASH_COMMANDS_SCRIPT,
257503
257615
  WEB_UI_CLIENT_PALETTE_SCRIPT,
@@ -258764,6 +258876,7 @@ var BASE_COPY = {
258764
258876
  noRecentTasks: "No chats yet",
258765
258877
  archivedTasks: "Archived chats",
258766
258878
  noArchivedTasks: "No archived chats",
258879
+ messages: "Conversation",
258767
258880
  deleteChatTitle: "Delete this chat?",
258768
258881
  deleteChatBody: "This permanently removes the conversation and cannot be undone.",
258769
258882
  cancel: "Cancel",
@@ -258872,6 +258985,8 @@ var BASE_COPY = {
258872
258985
  skillMaxActive: "Maximum active",
258873
258986
  refresh: "Refresh",
258874
258987
  noSkills: "No valid skills found in configured directories.",
258988
+ capabilities: "Capabilities",
258989
+ capabilitiesDescription: "Create reusable Skills or one-click Workflows for this project.",
258875
258990
  workflows: "Workflows",
258876
258991
  workflowsDescription: "One-click prompt entry points that can compose several Skills.",
258877
258992
  noWorkflows: "No project workflows yet.",
@@ -258930,6 +259045,7 @@ var BASE_COPY = {
258930
259045
  noRecentTasks: "\u8FD8\u6CA1\u6709\u5BF9\u8BDD",
258931
259046
  archivedTasks: "\u5DF2\u5F52\u6863\u5BF9\u8BDD",
258932
259047
  noArchivedTasks: "\u6CA1\u6709\u5DF2\u5F52\u6863\u5BF9\u8BDD",
259048
+ messages: "\u5BF9\u8BDD",
258933
259049
  deleteChatTitle: "\u5220\u9664\u8FD9\u4E2A\u5BF9\u8BDD\uFF1F",
258934
259050
  deleteChatBody: "\u6B64\u64CD\u4F5C\u4F1A\u6C38\u4E45\u5220\u9664\u8BE5\u5BF9\u8BDD\uFF0C\u5E76\u4E14\u65E0\u6CD5\u64A4\u9500\u3002",
258935
259051
  cancel: "\u53D6\u6D88",
@@ -259038,6 +259154,8 @@ var BASE_COPY = {
259038
259154
  skillMaxActive: "\u6700\u5927\u6FC0\u6D3B\u6570",
259039
259155
  refresh: "\u5237\u65B0",
259040
259156
  noSkills: "\u914D\u7F6E\u76EE\u5F55\u4E2D\u5C1A\u672A\u53D1\u73B0\u6709\u6548 Skill\u3002",
259157
+ capabilities: "\u80FD\u529B",
259158
+ capabilitiesDescription: "\u4E3A\u5F53\u524D\u5DE5\u7A0B\u521B\u5EFA\u53EF\u590D\u7528 Skill \u6216\u4E00\u952E\u5DE5\u4F5C\u6D41\u3002",
259041
259159
  workflows: "\u5DE5\u4F5C\u6D41",
259042
259160
  workflowsDescription: "\u53EF\u4E00\u952E\u542F\u52A8\uFF0C\u5E76\u80FD\u7EC4\u5408\u591A\u4E2A Skill \u7684\u63D0\u793A\u8BCD\u5165\u53E3\u3002",
259043
259161
  noWorkflows: "\u5F53\u524D\u5DE5\u7A0B\u8FD8\u6CA1\u6709\u5DE5\u4F5C\u6D41\u3002",
@@ -259099,6 +259217,7 @@ var COPY = {
259099
259217
  noRecentTasks: "\u5C1A\u672A\u6709\u5C0D\u8A71",
259100
259218
  archivedTasks: "\u5DF2\u5C01\u5B58\u5C0D\u8A71",
259101
259219
  noArchivedTasks: "\u6C92\u6709\u5DF2\u5C01\u5B58\u5C0D\u8A71",
259220
+ messages: "\u5C0D\u8A71",
259102
259221
  deleteChatTitle: "\u522A\u9664\u9019\u500B\u5C0D\u8A71\uFF1F",
259103
259222
  deleteChatBody: "\u6B64\u64CD\u4F5C\u6703\u6C38\u4E45\u522A\u9664\u8A72\u5C0D\u8A71\uFF0C\u4E14\u7121\u6CD5\u5FA9\u539F\u3002",
259104
259223
  untitledTask: "\u672A\u547D\u540D\u4EFB\u52D9",
@@ -259176,6 +259295,8 @@ var COPY = {
259176
259295
  skillMaxActive: "\u6700\u5927\u555F\u7528\u6578",
259177
259296
  refresh: "\u91CD\u65B0\u6574\u7406",
259178
259297
  noSkills: "\u8A2D\u5B9A\u76EE\u9304\u4E2D\u5C1A\u672A\u627E\u5230\u6709\u6548 Skill\u3002",
259298
+ capabilities: "\u80FD\u529B",
259299
+ capabilitiesDescription: "\u70BA\u76EE\u524D\u5C08\u6848\u5EFA\u7ACB\u53EF\u91CD\u7528 Skill \u6216\u4E00\u9375\u5DE5\u4F5C\u6D41\u7A0B\u3002",
259179
259300
  workflows: "\u5DE5\u4F5C\u6D41\u7A0B",
259180
259301
  workflowsDescription: "\u53EF\u4E00\u9375\u555F\u52D5\uFF0C\u4E26\u80FD\u7D44\u5408\u591A\u500B Skill \u7684\u63D0\u793A\u8A5E\u5165\u53E3\u3002",
259181
259302
  noWorkflows: "\u76EE\u524D\u5C08\u6848\u5C1A\u7121\u5DE5\u4F5C\u6D41\u7A0B\u3002",
@@ -259479,7 +259600,7 @@ function renderWebUiPage(language) {
259479
259600
 
259480
259601
  <main class="conversation" id="conversation">
259481
259602
  <div class="message-scroll" id="messageScroll">
259482
- <div class="message-column" id="messages" aria-live="polite"></div>
259603
+ <div class="message-column" id="messages" role="log" aria-live="off" aria-relevant="additions" aria-label="${copy.messages}"></div>
259483
259604
  <section class="empty-state" id="emptyState">
259484
259605
  <p class="eyebrow">${renderOrbitMark("eyebrow-mark")}<span>${copy.emptyEyebrow}</span></p>
259485
259606
  <h1>${copy.emptyTitle}</h1>
@@ -259671,12 +259792,12 @@ function renderWebUiPage(language) {
259671
259792
  <div class="skill-controls" id="skillControls">
259672
259793
  <div class="capability-toolbar">
259673
259794
  <div>
259674
- <strong>${copy.workflows}</strong>
259675
- <span>${copy.workflowsDescription}</span>
259795
+ <strong>${copy.capabilities}</strong>
259796
+ <span>${copy.capabilitiesDescription}</span>
259676
259797
  </div>
259677
259798
  <button class="secondary-button capability-add-button" id="addCapabilityButton" type="button" aria-expanded="false" aria-controls="capabilityCreator">${copy.addCapability}</button>
259678
259799
  </div>
259679
- <form class="capability-creator" id="capabilityCreator" hidden>
259800
+ <form class="capability-creator" id="capabilityCreator" novalidate hidden>
259680
259801
  <div class="segmented capability-kind" id="capabilityKind">
259681
259802
  <button type="button" data-capability-kind="skill" aria-pressed="true">${copy.addSkill}</button>
259682
259803
  <button type="button" data-capability-kind="workflow" aria-pressed="false">${copy.addWorkflow}</button>
@@ -259704,6 +259825,7 @@ function renderWebUiPage(language) {
259704
259825
  <span class="field-label">${copy.capabilityPreview}</span>
259705
259826
  <code id="capabilityPreview">\u2014</code>
259706
259827
  </div>
259828
+ <p class="capability-form-error" id="capabilityFormError" role="alert" hidden></p>
259707
259829
  <div class="capability-creator-actions">
259708
259830
  <button class="text-button" id="cancelCapabilityButton" type="button">${copy.cancel}</button>
259709
259831
  <button class="secondary-button" id="createCapabilityButton" type="submit">${copy.create}</button>
@@ -259788,7 +259910,7 @@ function renderWebUiPage(language) {
259788
259910
  </div>
259789
259911
  </section>
259790
259912
  </div>
259791
- <div class="toast-region" id="toasts" aria-live="assertive" aria-atomic="true"></div>
259913
+ <div class="toast-region" id="toasts" aria-live="polite" aria-relevant="additions"></div>
259792
259914
  </body>
259793
259915
  </html>`;
259794
259916
  }
@@ -259812,7 +259934,7 @@ var WEB_UI_COMPOSER_STYLES = String.raw`
259812
259934
 
259813
259935
  .empty-composer-slot {
259814
259936
  width: 100%;
259815
- margin-top: 30px;
259937
+ margin-top: 24px;
259816
259938
  }
259817
259939
 
259818
259940
  .empty-composer-slot .composer-dock {
@@ -260016,7 +260138,7 @@ var WEB_UI_COMPOSER_STYLES = String.raw`
260016
260138
  }
260017
260139
 
260018
260140
  .empty-composer-slot #prompt {
260019
- min-height: clamp(54px, 7vh, 74px);
260141
+ min-height: clamp(46px, 5vh, 58px);
260020
260142
  font-size: 15px;
260021
260143
  }
260022
260144
 
@@ -261712,14 +261834,14 @@ var WEB_UI_CONVERSATION_STYLES = String.raw`
261712
261834
  }
261713
261835
 
261714
261836
  .empty-state {
261715
- width: min(880px, calc(100% - clamp(40px, 7vw, 96px)));
261837
+ width: min(var(--composer-width), calc(100% - clamp(40px, 7vw, 96px)));
261716
261838
  min-height: 100%;
261717
261839
  display: flex;
261718
261840
  flex-direction: column;
261719
261841
  align-items: stretch;
261720
261842
  justify-content: flex-start;
261721
261843
  margin: 0 auto;
261722
- padding: clamp(66px, 10vh, 112px) 0 clamp(44px, 8vh, 86px);
261844
+ padding: clamp(52px, 7.5vh, 84px) 0 clamp(36px, 6vh, 64px);
261723
261845
  text-align: left;
261724
261846
  }
261725
261847
 
@@ -261753,10 +261875,10 @@ var WEB_UI_CONVERSATION_STYLES = String.raw`
261753
261875
  }
261754
261876
 
261755
261877
  .empty-state h1 {
261756
- max-width: 16ch;
261878
+ max-width: 24ch;
261757
261879
  margin: 0;
261758
261880
  color: var(--ink-strong);
261759
- font-size: clamp(38px, 3.1vw, 54px);
261881
+ font-size: clamp(36px, 2.75vw, 48px);
261760
261882
  font-weight: 720;
261761
261883
  letter-spacing: -0.045em;
261762
261884
  line-height: 1.08;
@@ -261764,7 +261886,7 @@ var WEB_UI_CONVERSATION_STYLES = String.raw`
261764
261886
 
261765
261887
  .empty-description {
261766
261888
  max-width: 600px;
261767
- margin: 14px 0 0;
261889
+ margin: 10px 0 0;
261768
261890
  color: var(--muted);
261769
261891
  font-size: 14.5px;
261770
261892
  line-height: 1.65;
@@ -261848,7 +261970,7 @@ var WEB_UI_CONVERSATION_STYLES = String.raw`
261848
261970
  display: grid;
261849
261971
  grid-template-columns: repeat(2, minmax(0, 1fr));
261850
261972
  gap: 11px;
261851
- margin-top: 18px;
261973
+ margin-top: 14px;
261852
261974
  text-align: left;
261853
261975
  }
261854
261976
 
@@ -262803,6 +262925,21 @@ var WEB_UI_INSPECTOR_STYLES = String.raw`
262803
262925
  white-space: nowrap;
262804
262926
  }
262805
262927
 
262928
+ .capability-form-error {
262929
+ margin: 1px 0 0;
262930
+ padding: 8px 9px;
262931
+ color: var(--danger);
262932
+ background: color-mix(in srgb, var(--danger-soft) 72%, var(--surface-subtle));
262933
+ border: 1px solid color-mix(in srgb, var(--danger) 20%, var(--border));
262934
+ border-radius: 8px;
262935
+ font-size: 10px;
262936
+ line-height: 1.45;
262937
+ }
262938
+
262939
+ .capability-form-error[hidden] {
262940
+ display: none;
262941
+ }
262942
+
262806
262943
  .capability-subheading {
262807
262944
  margin-top: 4px;
262808
262945
  padding-top: 10px;
@@ -262847,6 +262984,11 @@ var WEB_UI_INSPECTOR_STYLES = String.raw`
262847
262984
  font: 10px/1.4 var(--font-mono);
262848
262985
  }
262849
262986
 
262987
+ #refreshSkills[aria-busy="true"] {
262988
+ cursor: progress;
262989
+ opacity: 0.66;
262990
+ }
262991
+
262850
262992
  .skill-list,
262851
262993
  .skill-diagnostics {
262852
262994
  display: grid;
@@ -264169,7 +264311,7 @@ var WEB_UI_RESPONSIVE_STYLES = String.raw`
264169
264311
  }
264170
264312
 
264171
264313
  .empty-state {
264172
- width: min(920px, calc(100% - 128px));
264314
+ width: min(var(--composer-width), calc(100% - 128px));
264173
264315
  }
264174
264316
 
264175
264317
  .empty-state h1 {
@@ -264194,11 +264336,6 @@ var WEB_UI_RESPONSIVE_STYLES = String.raw`
264194
264336
  min-height: 6px;
264195
264337
  }
264196
264338
 
264197
- .recent-sessions,
264198
- .archived-sessions {
264199
- max-height: 150px;
264200
- }
264201
-
264202
264339
  .empty-state {
264203
264340
  justify-content: flex-start;
264204
264341
  padding-top: 38px;
@@ -265342,29 +265479,10 @@ var WEB_UI_SHELL_STYLES = String.raw`
265342
265479
  .recent-sessions,
265343
265480
  .archived-sessions {
265344
265481
  min-height: 0;
265345
- max-height: min(230px, 27vh);
265346
265482
  display: grid;
265347
265483
  gap: 2px;
265348
- overflow-y: auto;
265484
+ overflow: visible;
265349
265485
  padding: 2px;
265350
- scrollbar-width: thin;
265351
- scrollbar-color: var(--sidebar-border) transparent;
265352
- }
265353
-
265354
- .recent-sessions::-webkit-scrollbar,
265355
- .archived-sessions::-webkit-scrollbar {
265356
- width: 6px;
265357
- }
265358
-
265359
- .recent-sessions::-webkit-scrollbar-thumb,
265360
- .archived-sessions::-webkit-scrollbar-thumb {
265361
- background: transparent;
265362
- border-radius: 6px;
265363
- }
265364
-
265365
- .recent-sessions:hover::-webkit-scrollbar-thumb,
265366
- .archived-sessions:hover::-webkit-scrollbar-thumb {
265367
- background: color-mix(in srgb, var(--sidebar-faint) 35%, transparent);
265368
265486
  }
265369
265487
 
265370
265488
  .session-row {
@@ -265497,7 +265615,7 @@ var WEB_UI_SHELL_STYLES = String.raw`
265497
265615
  }
265498
265616
 
265499
265617
  .archived-sessions {
265500
- max-height: min(150px, 18vh);
265618
+ overflow: visible;
265501
265619
  }
265502
265620
 
265503
265621
  .session-list-empty {
@@ -266673,6 +266791,22 @@ var OrbitWebUiRuntime = class {
266673
266791
  }
266674
266792
  try {
266675
266793
  const request = CapabilityCreateSchema.parse(await readJsonBody(req));
266794
+ if (request.kind === "workflow" && request.skills.length > 0) {
266795
+ const catalog = await collectWebUiSkills(options);
266796
+ const availableSkills = new Set(
266797
+ catalog.skills.map((skill) => skill.name)
266798
+ );
266799
+ const missingSkills = request.skills.filter(
266800
+ (skill) => !availableSkills.has(skill)
266801
+ );
266802
+ if (missingSkills.length > 0) {
266803
+ sendJson(res, 400, {
266804
+ ok: false,
266805
+ message: `Unknown Skill${missingSkills.length === 1 ? "" : "s"}: ${missingSkills.join(", ")}`
266806
+ });
266807
+ return;
266808
+ }
266809
+ }
266676
266810
  const created = await createProjectCapability(options.cwd, request);
266677
266811
  this.invalidateCompletionCandidates();
266678
266812
  options.invalidateSkills?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbit-build/cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Local-first AI coding agent CLI, TUI, Web UI, diagnostics, and LSP runtime",
5
5
  "keywords": [
6
6
  "ai",