dsh-super-code 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,9 +20,9 @@ It selects research, design, development, verification, and optimization methods
20
20
 
21
21
  ## 在 DeepSeek Harness 中安装 · Installation
22
22
 
23
- 要求 DeepSeek Harness 0.1.5-rc.2 或更高版本。
23
+ 要求 DeepSeek Harness 0.1.5-alpha.1 或更高版本。
24
24
 
25
- Requires DeepSeek Harness 0.1.5-rc.2 or later.
25
+ Requires DeepSeek Harness 0.1.5-alpha.1 or later.
26
26
 
27
27
  ```bash
28
28
  dsh plugin --profile web add dsh-super-code
@@ -32,6 +32,12 @@ dsh plugin --profile web add dsh-super-code
32
32
 
33
33
  After installation, select `super-code` in "Settings" - "Agent Presets" in Harness; models, permissions, and tools use the Harness configuration.
34
34
 
35
+ 若安装后找不到预设,插件会在首次加载时尝试安装一份用户预设。也可打开“设置”→“插件”→“插件配置”中的 **Super Code** 查看状态并手动安装;名称冲突时换个名称即可,已有预设不会被覆盖。用户副本不会自动更新,删除后也不会在重启时自动重装。
36
+
37
+ If the preset is missing, the plugin attempts a one-time user-preset installation on first load. Open **Super Code** under “Settings” → “Plugins” → “Plugin configuration” to check its status or install manually. Choose another name if it is taken. Existing presets are preserved; user copies are not automatically updated or reinstalled after deletion.
38
+
39
+ [版本记录 · Changelog](docs/CHANGELOG.md)
40
+
35
41
  [![Super Code 配置入口 · Super Code settings](docs/images/preset-settings-preview.png)](docs/images/preset-settings.png)
36
42
 
37
43
  当前版本不使用三模型池,也不需要单独配置插件模型。在 Harness“设置”→“模型”中配置提供方,再从对话输入框下方选择模型和推理等级;已有可用配置时直接沿用。插件跟随当前会话的模型,子 Agent 在未单独覆盖时继承父 Agent 的选择。
package/client/index.js CHANGED
@@ -9,11 +9,26 @@
9
9
  ;(globalThis.window || globalThis).__ModuleLoader__.load({ id: 'dsh-super-code', factory: (require) => {
10
10
  const React = require('react')
11
11
  const { useEffect, useLayoutEffect, useRef, useMemo, useState, useSyncExternalStore } = React
12
- const { IconRefreshOutline16 } = require('@deepseek-ai/dsh-client-ui-primitives')
12
+ const { IconChevronDownOutline14, IconRefreshOutline16 } = require('@deepseek-ai/dsh-client-ui-primitives')
13
13
  const { SessionEventStream } = require('@deepseek-ai/dsh-api-session-controller')
14
14
 
15
15
  const LOCALE_NS = 'dshSuperCode'
16
16
  const zh = {
17
+ 'preset.title': 'Super Code 模式', 'usage.cacheUnknown': '缓存 —',
18
+ 'preset.description': '更快、更省、更聪明的编码模式。', 'preset.refresh': '刷新状态', 'preset.expand': '展开设置', 'preset.collapse': '收起设置',
19
+ 'preset.state.available': '预设可用', 'preset.state.installed': '用户预设已安装', 'preset.state.conflict': '已有同名预设',
20
+ 'preset.state.missing': '尚未安装', 'preset.state.broken': '预设不可用',
21
+ 'preset.availableHint': '可在新对话中选择此预设。用户副本不会自动覆盖或更新。',
22
+ 'preset.installHint': '安装一份用户预设;已有内容会保留,重名时请换个名称。',
23
+ 'preset.userConflict': '用户目录中已有同名预设,已保留。可换名安装独立副本。',
24
+ 'preset.readonly': '此宿主未提供用户预设目录,无法安装副本。',
25
+ 'preset.name': '预设名称', 'preset.nameHint': '使用小写字母、数字和连字符,最多 64 个字符。安装后在新对话中选择。',
26
+ 'preset.install': '安装用户预设', 'preset.working': '处理中…',
27
+ 'preset.error.invalid-name': '名称格式不正确,请使用小写字母、数字和连字符。',
28
+ 'preset.error.name-taken': '该名称已被占用,原预设未改动。请换个名称。',
29
+ 'preset.error.no-user-root': '此宿主没有可写的用户预设目录。',
30
+ 'preset.error.install-failed': '安装未完成,请检查预设目录的写入权限后重试。',
31
+ 'preset.error.connection': '暂时无法读取预设状态,请刷新重试。',
17
32
  'task.memory': '任务档案', 'task.other': '其他任务', 'task.history': '任务记录',
18
33
  'status.active': '进行中', 'status.paused': '已暂停', 'status.completed': '已完成', 'status.cancelled': '已取消',
19
34
  'next': '下一步:', 'tree.title': '协作执行', 'tree.count': '显示 {shown} / {total} · 运行中 {running}',
@@ -28,6 +43,21 @@ const zh = {
28
43
  'detail.path': 'Agent 路径', 'detail.title': 'Agent 详情', 'detail.refresh': '刷新对话详情', 'detail.task': '任务', 'detail.agent': 'Agent', 'detail.interrupted': 'Agent · 已中断', 'detail.error': '执行错误', 'detail.incomplete': '执行未完成,请稍后重试。', 'detail.input': '输入', 'detail.output': '输出', 'detail.cacheRead': '缓存读取', 'detail.cacheWrite': '缓存写入', 'detail.total': 'Token 总量', 'detail.hitRate': '缓存命中率', 'detail.moreUsage': '用量详情', 'detail.unavailable': '未提供', 'detail.reading': '正在读取对话…', 'detail.read': '读取中…', 'detail.older': '加载更早记录', 'detail.latest': '回到最新', 'detail.empty': '暂无执行内容', 'detail.new': '有新内容 · 查看最新', 'detail.loadError': '对话详情读取失败', 'detail.connection': '连接中断,正在重连', 'detail.historyError': '历史记录读取失败', 'detail.open': '展开全文', 'detail.noAccess': '无法打开详情,请重试', 'tree.loadError': '部分执行记录读取失败,请刷新重试', 'detail.unknown': '用量未知', 'main.agent': '主 Agent', 'tree.open': '点击查看详情', 'tree.expand': '展开', 'tree.collapse': '收起', 'image': '[图片]'
29
44
  }
30
45
  const en = {
46
+ 'preset.title': 'Super Code', 'usage.cacheUnknown': 'Cache —',
47
+ 'preset.description': 'A faster, more efficient, smarter coding mode.', 'preset.refresh': 'Refresh status', 'preset.expand': 'Show settings', 'preset.collapse': 'Hide settings',
48
+ 'preset.state.available': 'Preset available', 'preset.state.installed': 'User preset installed', 'preset.state.conflict': 'Preset name already exists',
49
+ 'preset.state.missing': 'Not installed', 'preset.state.broken': 'Preset unavailable',
50
+ 'preset.availableHint': 'Select this preset in a new conversation. User copies are never overwritten or updated automatically.',
51
+ 'preset.installHint': 'Install a user copy. Existing content is preserved; choose another name if it is taken.',
52
+ 'preset.userConflict': 'A user preset with this name already exists and was preserved. Choose another name for a separate copy.',
53
+ 'preset.readonly': 'This host does not provide a user preset directory.',
54
+ 'preset.name': 'Preset name', 'preset.nameHint': 'Lowercase letters, digits and hyphens, up to 64 characters. Select it in a new conversation after installing.',
55
+ 'preset.install': 'Install user preset', 'preset.working': 'Working…',
56
+ 'preset.error.invalid-name': 'Use lowercase letters, digits and hyphens for the name.',
57
+ 'preset.error.name-taken': 'This name is taken. The existing preset was preserved. Choose another name.',
58
+ 'preset.error.no-user-root': 'This host has no writable user preset directory.',
59
+ 'preset.error.install-failed': 'Installation failed. Check directory write permissions and retry.',
60
+ 'preset.error.connection': 'Preset status is unavailable. Refresh to try again.',
31
61
  'task.memory': 'Task memory', 'task.other': 'Other tasks', 'task.history': 'Task history',
32
62
  'status.active': 'Active', 'status.paused': 'Paused', 'status.completed': 'Completed', 'status.cancelled': 'Cancelled', 'next': 'Next: ',
33
63
  'tree.title': 'Collaborative execution', 'tree.count': 'Showing {shown} / {total} · Running {running}', 'tree.refresh': 'Refresh execution records', 'tree.legend.active': 'Running', 'tree.legend.idle': 'Idle', 'tree.legend.stopped': 'Stopped', 'tree.legend.unavailable': 'Unavailable', 'tree.empty': 'No sessions', 'tree.zoom.out': 'Zoom out', 'tree.zoom.in': 'Zoom in', 'tree.fit': 'Fit to window', 'tree.organize': 'Organize automatically', 'tree.collapsed': '{count} collapsed', 'tree.more': 'Show more', 'tree.canvas': 'Drag to pan, scroll to zoom, double-click empty space to fit', 'tree.aria': 'Agent execution tree', 'tree.status': 'Status colors', 'tree.usage': 'This node and all known descendants. {partial}Tokens {tokens}; cache reads {cache}; {agents} agents', 'usage.unknown': 'Usage —', 'usage.cache': 'Cache {value}%', 'usage.partial': 'partial', 'usage.incomplete': 'Some records or usage are unavailable; showing known values only.',
@@ -176,7 +206,6 @@ function agentTreeTotals(view, catalogs = {}) {
176
206
  }
177
207
 
178
208
  const historyRowHeight = 56
179
- const historyCollator = new Intl.Collator('zh-CN', { numeric: true, sensitivity: 'base' })
180
209
 
181
210
  function agentHistoryRange(range, from = '', to = '', now = Date.now()) {
182
211
  const today = new Date(now)
@@ -200,6 +229,7 @@ function agentHistoryRange(range, from = '', to = '', now = Date.now()) {
200
229
  }
201
230
 
202
231
  function agentHistoryRows(view, hidden, totals, options = {}) {
232
+ const historyCollator = new Intl.Collator(localeCode(options.t || (key => zh[key] || key)), { numeric: true, sensitivity: 'base' })
203
233
  const query = (options.query || '').trim().toLocaleLowerCase()
204
234
  const range = agentHistoryRange(options.range || 'all', options.from, options.to, options.now)
205
235
  if (!range.valid) return []
@@ -238,7 +268,8 @@ function AgentHistory({ view, hidden, totals, open, t = key => zh[key] || key })
238
268
  const [scroll, setScroll] = useState({ top: 0, height: 168 })
239
269
  const viewport = useRef(null), focusTarget = useRef('')
240
270
  const records = useMemo(() => agentHistoryRows(view, hidden, totals, { ...filters, t }), [view, hidden, totals, filters, t])
241
- const dateFormat = useMemo(() => new Intl.DateTimeFormat(localeCode(t), { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' }), [t])
271
+ const language = localeCode(t)
272
+ const dateFormat = useMemo(() => new Intl.DateTimeFormat(language, { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' }), [language])
242
273
  const window = agentHistoryWindow(records.length, scroll.top, scroll.height)
243
274
  const range = agentHistoryRange(filters.range, filters.from, filters.to)
244
275
  const change = (key, value) => setFilters(previous => ({ ...previous, [key]: value }))
@@ -292,7 +323,7 @@ function AgentHistory({ view, hidden, totals, open, t = key => zh[key] || key })
292
323
  return React.createElement('div', { key: record.id, role: 'listitem', 'aria-posinset': index + 1, 'aria-setsize': records.length,
293
324
  style: { position: 'absolute', top: index * historyRowHeight, height: historyRowHeight, width: '100%' } },
294
325
  React.createElement('button', { type: 'button', 'data-history-id': record.id, onClick: () => open(record.node), onKeyDown: event => keyDown(event, index),
295
- title: `${record.title} · ${record.parent} · ${record.time < 0 ? date : new Date(record.time).toLocaleString()} · ${record.tokens < 0 ? text(t, 'history.unknownUsage') : record.tokens + ' Token' + (record.partial ? ' (' + text(t, 'usage.partial') + ')' : '')}`,
326
+ title: `${record.title} · ${record.parent} · ${record.time < 0 ? date : new Date(record.time).toLocaleString(localeCode(t))} · ${record.tokens < 0 ? text(t, 'history.unknownUsage') : record.tokens + ' Token' + (record.partial ? ' (' + text(t, 'usage.partial') + ')' : '')}`,
296
327
  'aria-label': text(t, 'history.view', { title: record.title }) },
297
328
  React.createElement('i', { className: 'dsh-super-code-circle ' + status.tone, 'aria-hidden': true }),
298
329
  React.createElement('span', null, React.createElement('strong', null, record.title), React.createElement('small', null, `${status.label} · ${date} · ${record.parent}`)),
@@ -428,12 +459,12 @@ function AgentTreeBody({ state, view, saved, openDetail, refresh, watchCatalog,
428
459
  ...Object.keys(catalogs).filter(id => view.nodes.has(id))])]
429
460
  const open = node => {
430
461
  setError('')
431
- Promise.resolve().then(() => openDetail(node)).catch(() => setError(text(t, 'detail.noAccess')))
462
+ Promise.resolve().then(() => openDetail(node)).catch(() => setError('detail.noAccess'))
432
463
  }
433
464
  const reload = async () => {
434
465
  setBusy(true); setError('')
435
466
  try { await Promise.all([...new Set([view.root, ...watched])].filter(Boolean).map(id => refresh(id))) }
436
- catch { setError(text(t, 'tree.loadError')) }
467
+ catch { setError('tree.loadError') }
437
468
  finally { setBusy(false) }
438
469
  }
439
470
  const keyDown = (event, row) => {
@@ -467,7 +498,7 @@ function AgentTreeBody({ state, view, saved, openDetail, refresh, watchCatalog,
467
498
  React.createElement('strong', null, text(t, 'tree.title')),
468
499
  React.createElement('span', { className: 'dsh-super-code-tree-count' }, text(t, 'tree.count', { shown: rows.length, total: view.nodes.size, running }))),
469
500
  React.createElement('button', { type: 'button', className: 'dsh-super-code-icon-button', disabled: busy || !view.root, onClick: reload, title: text(t, 'tree.refresh'), 'aria-label': text(t, 'tree.refresh') }, React.createElement(IconRefreshOutline16))),
470
- (error || catalogError) && React.createElement('p', { role: 'alert', className: 'dsh-super-code-tree-error' }, error || text(t, 'tree.loadError')),
501
+ (error || catalogError) && React.createElement('p', { role: 'alert', className: 'dsh-super-code-tree-error' }, text(t, error || 'tree.loadError')),
471
502
  React.createElement('div', { className: 'dsh-super-code-graph-legend', 'aria-label': text(t, 'tree.status') },
472
503
  ['tree.legend.active', 'tree.legend.idle', 'tree.legend.stopped', 'tree.legend.unavailable'].map((key, index) => React.createElement('span', { key },
473
504
  React.createElement('i', { className: 'dsh-super-code-circle ' + ['active', 'idle', 'stopped', 'unavailable'][index], 'aria-hidden': true }), text(t, key)))),
@@ -530,9 +561,9 @@ function AgentTreeBody({ state, view, saved, openDetail, refresh, watchCatalog,
530
561
  React.createElement('span', { className: 'dsh-super-code-circle ' + tone, 'aria-hidden': true }, row.id === view.root ? text(t, 'main.agent').slice(0, 1) : String(rows.findIndex(item => item.id === row.id))),
531
562
  React.createElement('span', { className: 'dsh-super-code-tree-content' },
532
563
  React.createElement('span', { className: 'dsh-super-code-tree-title' }, title),
533
- React.createElement('span', { className: 'dsh-super-code-tree-usage', title: text(t, 'tree.usage', { partial: partial ? text(t, 'usage.incomplete') : '', tokens: usage.tokens.toLocaleString(), cache: usage.cache.toLocaleString(), agents: usage.agents }) },
564
+ React.createElement('span', { className: 'dsh-super-code-tree-usage', title: text(t, 'tree.usage', { partial: partial ? text(t, 'usage.incomplete') : '', tokens: usage.tokens.toLocaleString(localeCode(t)), cache: usage.cache.toLocaleString(localeCode(t)), agents: usage.agents }) },
534
565
  React.createElement('span', null, usage.known ? `${number(usage.tokens)} token` : text(t, 'usage.unknown')),
535
- React.createElement('span', null, usage.known ? text(t, 'usage.cache', { value: usage.input ? Math.round(usage.cache / usage.input * 100) : 0 }) + (partial ? ` · ${text(t, 'usage.partial')}` : '') : 'Cache —')))),
566
+ React.createElement('span', null, usage.known ? text(t, 'usage.cache', { value: usage.input ? Math.round(usage.cache / usage.input * 100) : 0 }) + (partial ? ` · ${text(t, 'usage.partial')}` : '') : text(t, 'usage.cacheUnknown'))))),
536
567
  hasChildren && React.createElement('button', { type: 'button', className: 'dsh-super-code-branch-toggle',
537
568
  style: { left: row.x + 21, top: row.y + 25 }, 'aria-label': `${collapsed.has(row.id) || !isExpanded ? text(t, 'tree.expand') : text(t, 'tree.collapse')} ${title}`,
538
569
  title: text(t, 'tree.organize'), onClick: () => toggleBranch(row.id) },
@@ -572,10 +603,10 @@ function agentPath(view, id) {
572
603
  return path
573
604
  }
574
605
 
575
- function contentText(blocks) {
606
+ function contentText(blocks, t) {
576
607
  return (blocks || []).map(block => {
577
608
  if (block.type === 'text' && typeof block.text === 'string') return block.text
578
- if (block.type === 'image') return '[图片]'
609
+ if (block.type === 'image') return text(t, 'image')
579
610
  return ''
580
611
  }).filter(Boolean).join('\n\n')
581
612
  }
@@ -583,12 +614,12 @@ function contentText(blocks) {
583
614
  function detailRecord(entry, t = key => zh[key] || key) {
584
615
  const event = entry.event, data = event?.data
585
616
  if (!data) return { kind: 'skip' }
586
- const base = { seq: event.seq, time: event.time }
617
+ const base = { seq: event.seq, time: event.time, entry }
587
618
  if (event.type === 'user/message') {
588
619
  if (data.source?.kind !== 'user') return { kind: 'skip' }
589
- return { ...base, kind: 'message', label: text(t, 'detail.task'), text: contentText(data.content) }
620
+ return { ...base, kind: 'message', label: text(t, 'detail.task'), text: contentText(data.content, t) }
590
621
  }
591
- if (event.type === 'assistant/message') return { ...base, kind: 'message', label: data.interrupted ? text(t, 'detail.interrupted') : text(t, 'detail.agent'), text: contentText(data.message?.content) }
622
+ if (event.type === 'assistant/message') return { ...base, kind: 'message', label: data.interrupted ? text(t, 'detail.interrupted') : text(t, 'detail.agent'), text: contentText(data.message?.content, t) }
592
623
  if (event.type === 'turn/error') return { ...base, kind: 'error', label: text(t, 'detail.error'), text: data.message || text(t, 'detail.incomplete') }
593
624
  return { kind: 'skip' }
594
625
  }
@@ -626,7 +657,7 @@ function createAgentInspector(createStream, address, readPage, initial, t = key
626
657
  cursor: change.entries.at(-1)?.event.seq ?? -1,
627
658
  projections: change.page.projections?.values || {}, error: '' })
628
659
  } else if (change.type === 'append' && !snapshot.earlier) {
629
- const item = detailRecord(change.entry)
660
+ const item = detailRecord(change.entry, t)
630
661
  cursor = change.entry.event.seq
631
662
  if (item.kind !== 'skip' && item.text) {
632
663
  const items = [...snapshot.items, item]
@@ -635,13 +666,13 @@ function createAgentInspector(createStream, address, readPage, initial, t = key
635
666
  }
636
667
  }
637
668
  },
638
- carrierFailed: () => publish({ error: text(t, 'detail.connection') }),
639
- failed: () => publish({ status: 'error', error: text(t, 'detail.loadError') }),
669
+ carrierFailed: () => publish({ error: 'detail.connection' }),
670
+ failed: () => publish({ status: 'error', error: 'detail.loadError' }),
640
671
  })
641
672
  return {
642
673
  getSnapshot: () => snapshot,
643
674
  subscribe: listener => { listeners.add(listener); return () => listeners.delete(listener) },
644
- start: () => { stream.open({ maxMessages: 40 }).catch(() => publish({ status: 'error', error: text(t, 'detail.loadError') })) },
675
+ start: () => { stream.open({ maxMessages: 40 }).catch(() => publish({ status: 'error', error: 'detail.loadError' })) },
645
676
  older: async () => {
646
677
  if (snapshot.status === 'paging' || !snapshot.hasMore) return
647
678
  publish({ status: 'paging', error: '' })
@@ -654,7 +685,7 @@ function createAgentInspector(createStream, address, readPage, initial, t = key
654
685
  firstSeq: items.length > 200 ? visible[0].seq : result.value.records[0]?.event.seq ?? 0,
655
686
  hasMore: result.value.hasMore || items.length > 200 })
656
687
  }
657
- catch { publish({ status: 'error', error: text(t, 'detail.historyError') }) }
688
+ catch { publish({ status: 'error', error: 'detail.historyError' }) }
658
689
  },
659
690
  dispose: () => { disposed = true; listeners.clear(); void stream.dispose() },
660
691
  }
@@ -743,24 +774,90 @@ function AgentDetail({ useTabInfo, useSessions, createInspector, detailStates, t
743
774
  saved.following = !snapshot.earlier && element.scrollHeight - element.clientHeight - element.scrollTop < 32
744
775
  if (saved.following) markUnread(false)
745
776
  } },
746
- snapshot.error && React.createElement('p', { role: 'alert' }, snapshot.error),
777
+ snapshot.error && React.createElement('p', { role: 'alert' }, text(t, snapshot.error)),
747
778
  snapshot.status === 'loading' && React.createElement('p', { role: 'status' }, text(t, 'detail.reading')),
748
779
  snapshot.hasMore && React.createElement('button', { type: 'button', disabled: snapshot.status === 'paging', onClick: inspector.older }, snapshot.status === 'paging' ? text(t, 'detail.read') : text(t, 'detail.older')),
749
780
  (snapshot.earlier || snapshot.truncated) && React.createElement('button', { type: 'button', onClick: latest }, text(t, 'detail.latest')),
750
781
  snapshot.status === 'ready' && !snapshot.items.length && React.createElement('p', null, text(t, 'detail.empty')),
751
- snapshot.items.map(item => React.createElement('article', { key: item.seq, className: 'dsh-super-code-detail-entry ' + item.kind },
782
+ snapshot.items.map(record => {
783
+ const item = record.entry ? detailRecord(record.entry, t) : record
784
+ return React.createElement('article', { key: item.seq, className: 'dsh-super-code-detail-entry ' + item.kind },
752
785
  item.collapsed ? React.createElement('details', { open: saved.open.has(item.seq), onToggle: event => { if (event.currentTarget.open) saved.open.add(item.seq); else saved.open.delete(item.seq) } },
753
786
  React.createElement('summary', null, item.label),
754
787
  React.createElement(DetailText, { text: item.text, t }))
755
788
  : React.createElement(React.Fragment, null,
756
789
  React.createElement('div', { className: 'dsh-super-code-detail-entry-label' }, item.label,
757
790
  React.createElement('time', null, new Date(item.time).toLocaleTimeString(localeCode(t), { hour12: false }))),
758
- React.createElement(DetailText, { text: item.text, t })))) ),
791
+ React.createElement(DetailText, { text: item.text, t })))
792
+ }) ),
759
793
  unread && React.createElement('button', { type: 'button', className: 'dsh-super-code-new-content', onClick: () => {
760
794
  saved.following = true; log.current.scrollTop = log.current.scrollHeight; markUnread(false)
761
795
  } }, text(t, 'detail.new')))
762
796
  }
763
797
 
798
+ // Explicit public Remote contribution; no model tools or private transport hooks.
799
+ const presetRemoteContribution = {
800
+ package: 'dsh-super-code',
801
+ descriptors: ['status', 'installPreset'].map(method => ({
802
+ id: `dsh-super-code:superCodePresets/${method}`, service: 'superCodePresets',
803
+ namespace: 'superCodePresets', method, invocation: { kind: 'direct' },
804
+ parameters: method === 'installPreset' ? [{ name: 'id', wire: 'id', source: 'json', codec: { mode: 'strict', typeSymbol: 'dsh-super-code#PresetId', schema: { parse(value) {
805
+ if (typeof value !== 'string' || !/^[a-z0-9][a-z0-9-]{0,63}$/.test(value)) throw new Error('Invalid preset name')
806
+ return value
807
+ } } } }] : [],
808
+ result: { mode: 'src-json' },
809
+ })),
810
+ }
811
+
812
+ function PresetSettings({ api, t }) {
813
+ const [status, setStatus] = useState(null), [name, setName] = useState('super-code')
814
+ const [busy, setBusy] = useState(true), [error, setError] = useState(''), [open, setOpen] = useState(false)
815
+ const alive = useRef(false), pending = useRef(false)
816
+ const run = async install => {
817
+ if (pending.current) return
818
+ pending.current = true; setBusy(true); setError('')
819
+ try {
820
+ const response = install ? await api.installPreset(name.trim()) : await api.status()
821
+ if (!response.ok) throw new Error('Remote unavailable')
822
+ if (!alive.current) return
823
+ const value = response.value
824
+ setStatus(install ? value.status : value)
825
+ if (install && !value.ok) setError(`preset.error.${value.error}`)
826
+ } catch {
827
+ if (alive.current) setError('preset.error.connection')
828
+ } finally {
829
+ pending.current = false
830
+ if (alive.current) setBusy(false)
831
+ }
832
+ }
833
+ useEffect(() => { alive.current = true; run(false); return () => { alive.current = false } }, [api])
834
+ const available = status && ['available', 'installed'].includes(status.state)
835
+ return React.createElement('li', { className: `dsh-super-code-settings${open ? ' dsh-super-code-settings-open' : ''}` },
836
+ React.createElement('button', { type: 'button', className: 'dsh-super-code-settings-header', 'aria-expanded': open,
837
+ 'aria-label': `${t(open ? 'preset.collapse' : 'preset.expand')}: ${t('preset.title')}`, onClick: () => setOpen(!open) },
838
+ React.createElement('span', { className: 'dsh-super-code-settings-head-text' },
839
+ React.createElement('span', { className: 'dsh-super-code-settings-name' }, t('preset.title')),
840
+ React.createElement('span', { className: 'dsh-super-code-settings-description' }, t('preset.description'))),
841
+ React.createElement(IconChevronDownOutline14, { className: `dsh-super-code-settings-chevron${open ? ' dsh-super-code-settings-chevron-open' : ''}`, 'aria-hidden': true })),
842
+ open && React.createElement('div', { className: 'dsh-super-code-settings-body' },
843
+ React.createElement('div', { className: 'dsh-super-code-settings-actions' },
844
+ React.createElement('button', { type: 'button', disabled: busy, onClick: () => run(false), 'aria-label': t('preset.refresh') }, t('preset.refresh'))),
845
+ status && React.createElement('p', { className: 'dsh-super-code-preset-status', role: 'status', 'data-available': available },
846
+ React.createElement('span', { 'aria-hidden': true }, '●'), ' ', t(`preset.state.${status.state}`), ' · ', status.id),
847
+ status && React.createElement('p', null, t(available ? 'preset.availableHint' : 'preset.installHint')),
848
+ status?.userConflict && status.state !== 'conflict' && React.createElement('p', null, t('preset.userConflict')),
849
+ status && !status.authorable && React.createElement('p', { role: 'note' }, t('preset.readonly')),
850
+ status?.authorable && React.createElement('form', { onSubmit: event => { event.preventDefault(); run(true) } },
851
+ React.createElement('label', { htmlFor: 'super-code-preset-name' }, t('preset.name')),
852
+ React.createElement('div', { className: 'dsh-super-code-install-row' },
853
+ React.createElement('input', { id: 'super-code-preset-name', value: name, maxLength: 64, disabled: busy,
854
+ pattern: '[a-z0-9][a-z0-9\\-]{0,63}', required: true, autoComplete: 'off', spellCheck: false,
855
+ 'aria-describedby': 'super-code-preset-name-hint', onChange: event => setName(event.target.value) }),
856
+ React.createElement('button', { type: 'submit', disabled: busy || !/^[a-z0-9][a-z0-9-]{0,63}$/.test(name.trim()) }, t(busy ? 'preset.working' : 'preset.install'))),
857
+ React.createElement('small', { id: 'super-code-preset-name-hint' }, t('preset.nameHint'))),
858
+ error && React.createElement('p', { role: 'alert' }, t(error))))
859
+ }
860
+
764
861
  const inject = [
765
862
  'slots', 'remote', 'remote.session', 'sessions', 'locale',
766
863
  'sidebarRightTabs', 'sidebarRight',
@@ -770,10 +867,33 @@ function apply(ctx) {
770
867
  const locale = ctx.locale || { register: () => () => {}, bind: () => key => zh[key] || key }
771
868
  ctx.effect(() => locale.register(LOCALE_NS, { zh, en }), 'dsh-super-code: dictionaries')
772
869
  const t = locale.bind(LOCALE_NS)
870
+ ctx.effect(async () => {
871
+ const owner = ctx
872
+ await owner.remote.$mount(presetRemoteContribution)
873
+ owner.inject(['remote.superCodePresets'], ready => ready.slots.inject('settings.plugin.item', () => ready.slots.register({
874
+ name: 'settings.plugin.item', key: 'super-code', locale: LOCALE_NS,
875
+ inject: () => ({ api: ready.remote.superCodePresets }),
876
+ }, PresetSettings)))
877
+ })
773
878
  ctx.effect(() => {
774
879
  const style = document.createElement('style')
775
880
  style.dataset.dshSuperCode = 'true'
776
881
  style.textContent = `
882
+ .dsh-super-code-settings{list-style:none;border:.5px solid var(--dsw-alias-border-l4,#dedfe3);border-radius:16px;background:var(--dsw-alias-bg-layer-3,transparent);line-height:1.6;font-size:13px;transition:border-color .16s,background .16s}
883
+ .dsh-super-code-settings:hover{border-color:var(--dsw-alias-label-dimmed,#a8abb2)}.dsh-super-code-settings-open{background:var(--dsw-alias-bg-layer-2,transparent);border-color:var(--dsw-alias-label-dimmed,#a8abb2)}
884
+ .dsh-super-code-settings-header{width:100%;appearance:none;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:12px}
885
+ .dsh-super-code-settings-head-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.dsh-super-code-settings-name{font-size:15px;font-weight:600;line-height:1.4;color:var(--dsw-alias-label-primary,inherit)}
886
+ .dsh-super-code-settings-description{font-size:13px;line-height:1.5;color:var(--dsw-alias-label-tertiary,#70757d)}.dsh-super-code-settings-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#70757d);transition:transform .16s}.dsh-super-code-settings-chevron-open{transform:rotate(180deg)}
887
+ .dsh-super-code-settings-body{border-top:.5px solid var(--dsw-alias-border-l2,#dedfe3);margin:0 16px;padding:12px 0 14px}.dsh-super-code-settings-actions{display:flex;justify-content:flex-end}
888
+ .dsh-super-code-settings p{margin:8px 0;color:var(--dsw-alias-label-secondary,#70757d)}
889
+ .dsh-super-code-settings-body button,.dsh-super-code-settings input{font:inherit;color:inherit;border:1px solid var(--dsw-alias-border-l1,#dedfe3);border-radius:7px;background:transparent;padding:7px 10px;min-height:34px}
890
+ .dsh-super-code-settings button{cursor:pointer;white-space:nowrap}.dsh-super-code-settings button:disabled{opacity:.45;cursor:default}
891
+ .dsh-super-code-settings form{margin-top:16px}.dsh-super-code-settings label{display:block;margin-bottom:6px}
892
+ .dsh-super-code-install-row{display:flex;gap:8px;flex-wrap:wrap}.dsh-super-code-install-row input{flex:1;min-width:140px}
893
+ .dsh-super-code-settings small{display:block;margin-top:6px;color:var(--dsw-alias-label-secondary,#70757d)}
894
+ .dsh-super-code-settings .dsh-super-code-preset-status{color:inherit}.dsh-super-code-preset-status span{color:#b87716}.dsh-super-code-preset-status[data-available=true] span{color:#008b78}
895
+ .dsh-super-code-settings [role=alert]{color:var(--dsw-color-text-error,#bd423b)}.dsh-super-code-settings :focus-visible{outline:2px solid var(--dsw-color-primary,#3276dc);outline-offset:2px}
896
+
777
897
  .dsh-super-code-tree{--agent-muted:var(--dsw-alias-label-secondary,#70757d);--agent-line:var(--dsw-alias-border-l1,#dedfe3);height:100%;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto;font-size:13px;letter-spacing:0;color:inherit}
778
898
  .dsh-super-code-tree>header,.dsh-super-code-tree>.dsh-super-code-graph-controls,.dsh-super-code-tree>.dsh-super-code-graph-legend,.dsh-super-code-tree>.dsh-super-code-history-controls{flex-shrink:0}
779
899
  .dsh-super-code-tree-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 18px 16px}
@@ -933,13 +1053,13 @@ function apply(ctx) {
933
1053
  (target, options) => new SessionEventStream(ctx.remote, target, options), address,
934
1054
  (request, signal) => ctx.remote.session.page(request, signal), initial, t) }
935
1055
  ctx.slots.inject('sidebar.right.pane.tab', () => ctx.slots.register({
936
- name: 'sidebar.right.pane.tab', key: 'dsh-super-code-detail', inject: () => ({ ...detailActions, t }),
1056
+ name: 'sidebar.right.pane.tab', key: 'dsh-super-code-detail', locale: LOCALE_NS, inject: () => ({ ...detailActions }),
937
1057
  }, AgentDetail))
938
1058
  ctx.slots.inject('sidebar.right.pane.tab', () => ctx.slots.register({
939
1059
  // Keyed tab bodies dispatch by the definition id, while `kind` is the
940
1060
  // page/content discriminator used by the Sidebar controller.
941
- name: 'sidebar.right.pane.tab', key: treeId,
942
- inject: () => ({ ...treeActions, t }),
1061
+ name: 'sidebar.right.pane.tab', key: treeId, locale: LOCALE_NS,
1062
+ inject: () => ({ ...treeActions }),
943
1063
  }, AgentTree))
944
1064
  ctx.effect(() => disposeTreeType, 'super-code: Agent tree tab')
945
1065
  ctx.effect(() => disposeDetailType, 'super-code: Agent detail tab')
@@ -6,5 +6,5 @@ export interface GuidedRoute {
6
6
  /** Exact deployment policy, not a guess about capability from a model name. */
7
7
  export declare function createGuidanceSelector(routes?: readonly GuidedRoute[]): (provider: unknown, model: unknown) => GuidanceMode;
8
8
  /** Only selected routes pay for concrete reminders; standards remain identical. */
9
- export declare const GUIDED_INSTRUCTIONS = "Inspect definitions and working callers for uncertain APIs; do not add aliases to satisfy imagined tests. A cause remains unconfirmed until an observation distinguishes it. Run the relevant check and inspect the result: a started command, exit code alone, zero tests or a teammate's claim does not establish acceptance. Before calling a failure pre-existing or environmental, compare the same check on the baseline; otherwise report it as unresolved. Never assume hidden tests will fix a failure. When stuck, change the hypothesis or reduce the reproduction, not the agent count. Use only necessary checks; no mandatory checklist or extra narration.";
9
+ export declare const GUIDED_INSTRUCTIONS = "For uncertain APIs, inspect definitions and working callers. State the observed mismatch before editing; choose a check that distinguishes competing causes. For a changed state transition, test its relevant entry condition (e.g. saved in-progress state for restart), not only a fresh success. Match the final diff to the user's requested behaviors. A started command, exit code alone, zero tests or a teammate's claim is not acceptance. Keep a failing check unresolved until it passes or baseline evidence/an explicit contract change explains it; never predict that replacement tests will fix it. When stuck, reduce the reproduction or change the hypothesis, not the agent count. Reuse evidence already present; no extra checklist or narration.";
10
10
  //# sourceMappingURL=guidance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guidance.d.ts","sourceRoot":"","sources":["../../src/core/guidance.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAA;AAChD,MAAM,WAAW,WAAW;IAAG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAOlF,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,MAAM,GAAE,SAAS,WAAW,EAAO,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,KAAK,YAAY,CAK/H;AAED,mFAAmF;AACnF,eAAO,MAAM,mBAAmB,8oBAA8oB,CAAA"}
1
+ {"version":3,"file":"guidance.d.ts","sourceRoot":"","sources":["../../src/core/guidance.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAA;AAChD,MAAM,WAAW,WAAW;IAAG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAOlF,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,MAAM,GAAE,SAAS,WAAW,EAAO,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,KAAK,YAAY,CAK/H;AAED,mFAAmF;AACnF,eAAO,MAAM,mBAAmB,6uBAA6uB,CAAA"}
@@ -12,5 +12,5 @@ export function createGuidanceSelector(routes = []) {
12
12
  return (provider, model) => typeof provider === 'string' && typeof model === 'string' && keys.has(JSON.stringify([provider, model])) ? 'guided' : 'standard';
13
13
  }
14
14
  /** Only selected routes pay for concrete reminders; standards remain identical. */
15
- export const GUIDED_INSTRUCTIONS = `Inspect definitions and working callers for uncertain APIs; do not add aliases to satisfy imagined tests. A cause remains unconfirmed until an observation distinguishes it. Run the relevant check and inspect the result: a started command, exit code alone, zero tests or a teammate's claim does not establish acceptance. Before calling a failure pre-existing or environmental, compare the same check on the baseline; otherwise report it as unresolved. Never assume hidden tests will fix a failure. When stuck, change the hypothesis or reduce the reproduction, not the agent count. Use only necessary checks; no mandatory checklist or extra narration.`;
15
+ export const GUIDED_INSTRUCTIONS = `For uncertain APIs, inspect definitions and working callers. State the observed mismatch before editing; choose a check that distinguishes competing causes. For a changed state transition, test its relevant entry condition (e.g. saved in-progress state for restart), not only a fresh success. Match the final diff to the user's requested behaviors. A started command, exit code alone, zero tests or a teammate's claim is not acceptance. Keep a failing check unresolved until it passes or baseline evidence/an explicit contract change explains it; never predict that replacement tests will fix it. When stuck, reduce the reproduction or change the hypothesis, not the agent count. Reuse evidence already present; no extra checklist or narration.`;
16
16
  //# sourceMappingURL=guidance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"guidance.js","sourceRoot":"","sources":["../../src/core/guidance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACzC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAErB,+EAA+E;AAC/E,MAAM,UAAU,sBAAsB,CAAC,SAAiC,EAAE;IACxE,MAAM,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACnD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,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C,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5F,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;IACpF,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAA;AAC9J,CAAC;AAED,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,0uBAA0uB,CAAA"}
@@ -13,7 +13,7 @@ export type MethodName = 'investigation' | 'product' | 'bugfix' | 'architecture'
13
13
  export declare const METHODS: Readonly<Record<MethodName, string>>;
14
14
  export declare const TEAMS: Readonly<Record<TeamName, TeamDefinition>>;
15
15
  /** Stable, compact instructions; the host logs selected methods as tool results. */
16
- export declare const SUPER_CODE_INSTRUCTIONS = "You are super-code, responsible for completing the user's coding work.\nChoose by deliverable: research (facts), design (plan), develop (code), verify (checks), optimize (measured gains). Teams are specialties, not stages or resident agents. Use super_code_method only for missing expertise. No routing call or mandatory reflection loop.\nExplanation/design does not authorize edits; methods/teammates grant no permission. Ask only for decisions affecting correctness or scope. Finish and validate by risk; distinguish delivery, validation limits and blockers. Diagnosis is not a fix; stop without unrelated additions.\nFor long/interleaved work, use super_code_task for user-sourced requirements, acceptance, decisions/evidence and next dependency. Record material changes before switching/compaction, not every action. Preserve unaffected constraints; user corrections outrank old records. Never truncate hard requirements. Resume from current context; read only missing details and recheck mutable evidence. Focus/status questions do not cancel work.\nParallelize independent tools first. Delegate independent deliverables only for clear time or verification value. Reuse members only for related scope with valid context; never delegate recursively. Continue locally; one writer per file or isolated workspaces. For recorded tasks, delegate binds scope/ownership/versions; validate_member precedes lead review. Neither starts workers nor enforces runtime token budgets. Check key evidence, reject stale returns, count all attempts; unknown-stop is not success.\nResolve unclear APIs from requirements and callers, not guessed test names or aliases. Attribute failures to the environment only with baseline evidence; never assume later tests repair them. For hard problems, use a discriminating experiment, smaller reproduction or independent reference before expanding scope.\nMinimize total request cost. Reuse valid context; batch independent reads; avoid round trips for tiny savings. Keep required checks; inspect scaling and resource release. Report artifacts, actual checks and gaps briefly; no forced format or unmeasured gains.";
16
+ export declare const SUPER_CODE_INSTRUCTIONS = "You are super-code, completing the user's authorized coding work.\nChoose by deliverable: research, design, develop, verify, optimize. Teams are specialties, not stages. Use super_code_method when causes remain indistinguishable, failures repeat or state/recovery behavior is unclear; reuse loaded guidance. No mandatory routing or reflection loop.\nExplanation/design does not authorize edits; methods/teammates grant no permission. Ask only for decisions affecting correctness or scope. Diagnosis is not a fix.\nFor long/interleaved work, use super_code_task to preserve user-sourced requirements, acceptance, decisions/evidence and next dependency before switching or compaction, not each action. Corrections replace affected constraints only. Never truncate hard requirements. Resume from current context; read missing details and recheck mutable evidence. Status questions do not cancel work.\nBatch independent tools first. Delegate independent deliverables for time or verification value; reuse members for related scope, never recursively. Continue locally; one writer per file or isolated workspaces. For recorded tasks, delegate binds ownership/versions; validate_member precedes lead review. Neither starts workers nor enforces token budgets. Reject stale returns; count all attempts; unknown-stop is not success.\nResolve APIs from visible contracts and callers, never guessed tests or aliases. Before finishing, compare the diff with requirements and affected existing behavior. Check changed recovery/state paths, not just the happy path. An unresolved failure stays unresolved unless baseline evidence or an explicit contract change explains it; future tests cannot establish success. When stuck, change the hypothesis or reduce the reproduction before expanding scope.\nMinimize request cost: reuse context, read targeted ranges, batch independent checks. Keep full verbose logs in task files; report exit status, executed test counts, failure context and file references. Do not hide errors or skip required checks to save tokens. Inspect scaling and resource release. Report delivery, checks and gaps; no unmeasured gains.";
17
17
  /** Read exactly the selected team/method; caller chooses using task meaning. */
18
18
  export declare function readTeamMethod(team: TeamName, method?: MethodName): string;
19
19
  //# sourceMappingURL=teams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../src/core/teams.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,UAAU,kEAAmE,CAAA;AAC1F,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;AAChD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAA;CACxC;AAED,sFAAsF;AACtF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,SAAS,CAAA;AACtJ,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAU9C,CAAA;AAEX,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,CAM3D,CAAA;AAEF,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,gmEAM+N,CAAA;AAEnQ,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAM1E"}
1
+ {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../src/core/teams.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,UAAU,kEAAmE,CAAA;AAC1F,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;AAChD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAA;CACxC;AAED,sFAAsF;AACtF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,SAAS,CAAA;AACtJ,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAU9C,CAAA;AAEX,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,CAM3D,CAAA;AAEF,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,imEAM+T,CAAA;AAEnW,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAM1E"}
package/lib/core/teams.js CHANGED
@@ -3,10 +3,10 @@ export const TEAM_NAMES = ['research', 'design', 'develop', 'verify', 'optimize'
3
3
  export const METHODS = Object.freeze({
4
4
  investigation: 'Start from the exact question, revision and observed failure. For competing causes, predict different observable outcomes and run the cheapest discriminating check; a result compatible with both proves neither. Use a minimal reproduction for broad failures, a matched good/bad run for regressions, and bisection only with a reliable pass/fail signal. Hold other conditions fixed and trace the first divergence through callers and data flow. If a check disproves the cause, change the hypothesis rather than expanding the patch. Stop at supported facts or explicit missing evidence; diagnosis alone does not authorize edits.',
5
5
  product: 'Turn the requested outcome into a small end-to-end usable slice and verify it before expanding. Check actual users, inputs, normal/empty/error/cancel paths, persistence and existing conventions. Design interactions around user decisions, not internal machinery. Use existing interfaces and include only adjacent cases necessary for the outcome. Ask only when a missing product decision changes correctness or scope.',
6
- bugfix: 'Reproduce the failing input and locate the first incorrect state before editing. Compare the same failing check on the baseline before attributing it to the environment. For async bugs, trace creation, update, invalidation, cancellation, late results and resource release. Control completion order with barriers instead of sleeps; test a late result after cancellation or replacement. Add a regression that fails before the fix at the causal boundary. If the patch expands, revisit the cause. Check affected callers and preserve unaffected behavior. Deliver the fix and actual checks, or name a concrete blocker; a passing mock is not live evidence.',
6
+ bugfix: 'Reproduce the failing input and locate the first incorrect state before editing. For recovery bugs, start from persisted in-progress state, not only a fresh run. Compare the same failing check on the baseline before attributing it to the environment. For async bugs, trace creation, update, invalidation, cancellation, late results and resource release. Control completion order with barriers instead of sleeps; test a late result after cancellation or replacement. Add a regression that fails before the fix at the causal boundary. If the patch expands, revisit the cause. Check affected callers and preserve unaffected behavior. Deliver the fix and actual checks, or name a concrete blocker; a passing mock is not live evidence.',
7
7
  architecture: 'Map responsibilities, contracts, ownership, data lifetime and failure propagation. Choose the simplest boundary that resolves the demonstrated problem. Follow changed return types to callers, changed state to serialization/defaults/restoration, and changed async ownership to cancellation/cleanup. Search actual consumers; avoid building a repository-wide dependency graph for a local change. State migration/rollback costs and verify affected boundaries. Refactor only authorized scope; fewer lines or new abstractions do not prove improvement.',
8
8
  algorithm: 'State input size, invariants, objective and correctness argument. Examine asymptotic time/space, numerical stability and adversarial cases. When correctness is hard to inspect, compare a simple reference on exhaustive small inputs or deterministic generated cases, then test representative large inputs. Minimize mismatches into regressions. A reference must be independent of the candidate, not the same algorithm copied twice. Prefer better algorithms/data structures before tuning constants; constant-factor gains do not prove better complexity. Report quality/accuracy tradeoffs.',
9
- testing: 'Derive checks from behavior and the actual diff, not implementation text. Prioritize changed contracts and their callers, persisted state and restoration, async cancellation/late completion, or algorithm boundaries and scale. Cover relevant empty/invalid input, duplicates and failures. A regression must fail on the broken behavior and pass on the fix; use an independent reference for tricky algorithms. Confirm intended tests executed on the changed workspace: unchanged HEAD does not imply unchanged files; zero or entirely skipped tests are not passing evidence. Report commands and limits; no extra reviewer unless risk warrants it.',
9
+ testing: 'Compare the actual diff with requested behavior and affected existing contracts. Derive checks from these contracts, not implementation text. For changed stateful behavior, probe the relevant initialization, failure or restart boundary; a normal run does not verify recovery. Prioritize changed contracts and their callers, persisted state and restoration, async cancellation/late completion, or algorithm boundaries and scale. Cover relevant empty/invalid input, duplicates and failures. A regression must fail on the broken behavior and pass on the fix; use an independent reference for tricky algorithms. Confirm intended tests executed on the changed workspace: unchanged HEAD does not imply unchanged files; zero or entirely skipped tests are not passing evidence. Report commands and limits; no extra reviewer unless risk warrants it.',
10
10
  performance: 'Measure a comparable baseline and locate the bottleneck before changing code. Fix workload, versions, resource allocation and warm/cold conditions. Inspect CPU, I/O, allocations, algorithmic scaling and contention. Compare repeated measurements and tail behavior, preserving correctness and recovery. Keep benchmarks isolated from competing jobs. Without comparable measurements, report a hypothesis, not a speedup. Stop at the target/budget or when no supported hypothesis remains.',
11
11
  integration: 'Confirm the actual entry point, loaded package/build, deployed versions and effective configuration before diagnosing an integration. Inspect both sides of the contract: serialization, errors, timeouts, idempotency, cancellation and permissions. Verify one bounded end-to-end slice through the real entry point; source edits or a passing mock do not prove the installed artifact works. Distinguish local, mocked and live evidence, and name unavailable dependencies. Retain a recovery path for schema/data migrations; external writes still require authorization.',
12
12
  quality: 'Define a fixed, representative evaluation set and acceptance criteria before candidates. Bind results to data, model/code and evaluator versions. Count failed attempts and all member/tool costs. Compare matched samples; investigate category regressions and hard cases. Do not tune against hidden tests, cherry-pick best runs or relax gates after observing failure.',
@@ -19,13 +19,13 @@ export const TEAMS = Object.freeze({
19
19
  optimize: { outcome: 'Demonstrated improvement and an adoption or rollback recommendation.', approach: 'Select goals separately from methods: latency, throughput, memory, cost, quality or maintainability.', evidence: 'Matched baseline/candidate measurements plus non-regression checks and stopping criteria.', methods: ['performance', 'algorithm', 'architecture', 'quality'] },
20
20
  });
21
21
  /** Stable, compact instructions; the host logs selected methods as tool results. */
22
- export const SUPER_CODE_INSTRUCTIONS = `You are super-code, responsible for completing the user's coding work.
23
- Choose by deliverable: research (facts), design (plan), develop (code), verify (checks), optimize (measured gains). Teams are specialties, not stages or resident agents. Use super_code_method only for missing expertise. No routing call or mandatory reflection loop.
24
- Explanation/design does not authorize edits; methods/teammates grant no permission. Ask only for decisions affecting correctness or scope. Finish and validate by risk; distinguish delivery, validation limits and blockers. Diagnosis is not a fix; stop without unrelated additions.
25
- For long/interleaved work, use super_code_task for user-sourced requirements, acceptance, decisions/evidence and next dependency. Record material changes before switching/compaction, not every action. Preserve unaffected constraints; user corrections outrank old records. Never truncate hard requirements. Resume from current context; read only missing details and recheck mutable evidence. Focus/status questions do not cancel work.
26
- Parallelize independent tools first. Delegate independent deliverables only for clear time or verification value. Reuse members only for related scope with valid context; never delegate recursively. Continue locally; one writer per file or isolated workspaces. For recorded tasks, delegate binds scope/ownership/versions; validate_member precedes lead review. Neither starts workers nor enforces runtime token budgets. Check key evidence, reject stale returns, count all attempts; unknown-stop is not success.
27
- Resolve unclear APIs from requirements and callers, not guessed test names or aliases. Attribute failures to the environment only with baseline evidence; never assume later tests repair them. For hard problems, use a discriminating experiment, smaller reproduction or independent reference before expanding scope.
28
- Minimize total request cost. Reuse valid context; batch independent reads; avoid round trips for tiny savings. Keep required checks; inspect scaling and resource release. Report artifacts, actual checks and gaps briefly; no forced format or unmeasured gains.`;
22
+ export const SUPER_CODE_INSTRUCTIONS = `You are super-code, completing the user's authorized coding work.
23
+ Choose by deliverable: research, design, develop, verify, optimize. Teams are specialties, not stages. Use super_code_method when causes remain indistinguishable, failures repeat or state/recovery behavior is unclear; reuse loaded guidance. No mandatory routing or reflection loop.
24
+ Explanation/design does not authorize edits; methods/teammates grant no permission. Ask only for decisions affecting correctness or scope. Diagnosis is not a fix.
25
+ For long/interleaved work, use super_code_task to preserve user-sourced requirements, acceptance, decisions/evidence and next dependency before switching or compaction, not each action. Corrections replace affected constraints only. Never truncate hard requirements. Resume from current context; read missing details and recheck mutable evidence. Status questions do not cancel work.
26
+ Batch independent tools first. Delegate independent deliverables for time or verification value; reuse members for related scope, never recursively. Continue locally; one writer per file or isolated workspaces. For recorded tasks, delegate binds ownership/versions; validate_member precedes lead review. Neither starts workers nor enforces token budgets. Reject stale returns; count all attempts; unknown-stop is not success.
27
+ Resolve APIs from visible contracts and callers, never guessed tests or aliases. Before finishing, compare the diff with requirements and affected existing behavior. Check changed recovery/state paths, not just the happy path. An unresolved failure stays unresolved unless baseline evidence or an explicit contract change explains it; future tests cannot establish success. When stuck, change the hypothesis or reduce the reproduction before expanding scope.
28
+ Minimize request cost: reuse context, read targeted ranges, batch independent checks. Keep full verbose logs in task files; report exit status, executed test counts, failure context and file references. Do not hide errors or skip required checks to save tokens. Inspect scaling and resource release. Report delivery, checks and gaps; no unmeasured gains.`;
29
29
  /** Read exactly the selected team/method; caller chooses using task meaning. */
30
30
  export function readTeamMethod(team, method) {
31
31
  const definition = TEAMS[team];
@@ -1 +1 @@
1
- {"version":3,"file":"teams.js","sourceRoot":"","sources":["../../src/core/teams.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAA;AAa1F,MAAM,CAAC,MAAM,OAAO,GAAyC,MAAM,CAAC,MAAM,CAAC;IACzE,aAAa,EAAE,inBAAinB;IAChoB,OAAO,EAAE,iaAAia;IAC1a,MAAM,EAAE,2oBAA2oB;IACnpB,YAAY,EAAE,miBAAmiB;IACjjB,SAAS,EAAE,ykBAAykB;IACplB,OAAO,EAAE,goBAAgoB;IACzoB,WAAW,EAAE,oeAAoe;IACjf,WAAW,EAAE,mjBAAmjB;IAChkB,OAAO,EAAE,8WAA8W;CAC/W,CAAC,CAAA;AAEX,MAAM,CAAC,MAAM,KAAK,GA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UAAU,CAAC,QAAQ,eAAe,UAAU,CAAC,QAAQ,cAAc,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA;AAC9I,CAAC"}
@@ -1,4 +1,3 @@
1
- /** Host-scoped projections only; execution and model selection belong to Harness. */
2
1
  import type { Context } from '@deepseek-ai/cordis';
3
2
  export declare const name = "super-code";
4
3
  export declare function apply(ctx: Context): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAIlD,eAAO,MAAM,IAAI,eAAe,CAAA;AAEhC,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAKxC;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAIlD,eAAO,MAAM,IAAI,eAAe,CAAA;AAEhC,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAMxC;AAED,eAAe,KAAK,CAAA"}
package/lib/dsh/index.js CHANGED
@@ -1,7 +1,10 @@
1
+ /** Host projections and preset installation; execution belongs to Harness. */
2
+ import { applyPresetInstallation } from './preset-installation.js';
1
3
  import { superAgentUsageProjectionDefinition } from '../super-agent-usage.js';
2
4
  import { taskMemoryProjection } from '../task-memory-projection.js';
3
5
  export const name = 'super-code';
4
6
  export function apply(ctx) {
7
+ applyPresetInstallation(ctx);
5
8
  ctx.inject(['sessionProjections'], projectionCtx => {
6
9
  projectionCtx.sessionProjections.register(superAgentUsageProjectionDefinition);
7
10
  projectionCtx.sessionProjections.register(taskMemoryProjection);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAA;AAEhC,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,GAAG,CAAC,MAAM,CAAC,CAAC,oBAAoB,CAAC,EAAE,aAAa,CAAC,EAAE;QACjD,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;QAC9E,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAElE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAA;AAEhC,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,uBAAuB,CAAC,GAAG,CAAC,CAAA;IAC5B,GAAG,CAAC,MAAM,CAAC,CAAC,oBAAoB,CAAC,EAAE,aAAa,CAAC,EAAE;QACjD,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;QAC9E,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,43 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import { type AgentPresets } from '@deepseek-ai/dsh-agent-presets';
3
+ import type { SettingsScope } from '@deepseek-ai/dsh-settings';
4
+ import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
5
+ interface InstallationSettings {
6
+ checked: boolean;
7
+ installedId: string;
8
+ }
9
+ export interface PresetInstallationStatus {
10
+ state: 'available' | 'installed' | 'conflict' | 'missing' | 'broken';
11
+ id: string;
12
+ authorable: boolean;
13
+ userConflict: boolean;
14
+ }
15
+ export interface PresetInstallationResult {
16
+ ok: boolean;
17
+ status: PresetInstallationStatus;
18
+ error?: 'invalid-name' | 'name-taken' | 'no-user-root' | 'install-failed';
19
+ }
20
+ /** Serialized writes protect double clicks; mkdir claims only an unoccupied name. */
21
+ export declare class PresetInstaller {
22
+ private readonly roster;
23
+ private readonly settings;
24
+ private readonly bundledRoot;
25
+ private readonly baseUrl;
26
+ private tail;
27
+ constructor(roster: Pick<AgentPresets, 'list' | 'roots'>, settings: SettingsScope<InstallationSettings>, bundledRoot?: string, baseUrl?: string);
28
+ status(): Promise<PresetInstallationStatus>;
29
+ initialize(): Promise<void>;
30
+ install(id: unknown): Promise<PresetInstallationResult>;
31
+ private occupied;
32
+ private installNow;
33
+ private enqueue;
34
+ }
35
+ export declare class SuperCodePresets extends TypertRemoteService {
36
+ private readonly installer;
37
+ constructor(ctx: Context, installer: PresetInstaller);
38
+ status(): Promise<PresetInstallationStatus>;
39
+ installPreset(id: unknown): Promise<PresetInstallationResult>;
40
+ }
41
+ export declare function applyPresetInstallation(ctx: Context): void;
42
+ export {};
43
+ //# sourceMappingURL=preset-installation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-installation.d.ts","sourceRoot":"","sources":["../../src/dsh/preset-installation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAkD,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAClH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAU,mBAAm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AAM,IAAI,OAAO,CAAC,wBAAwB,CAAC;IAE3C,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAC9D;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAY1D"}
@@ -0,0 +1,193 @@
1
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
2
+ var useValue = arguments.length > 2;
3
+ for (var i = 0; i < initializers.length; i++) {
4
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
5
+ }
6
+ return useValue ? value : void 0;
7
+ };
8
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
9
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
10
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
11
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
12
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
13
+ var _, done = false;
14
+ for (var i = decorators.length - 1; i >= 0; i--) {
15
+ var context = {};
16
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
17
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
18
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
19
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
20
+ if (kind === "accessor") {
21
+ if (result === void 0) continue;
22
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
23
+ if (_ = accept(result.get)) descriptor.get = _;
24
+ if (_ = accept(result.set)) descriptor.set = _;
25
+ if (_ = accept(result.init)) initializers.unshift(_);
26
+ }
27
+ else if (_ = accept(result)) {
28
+ if (kind === "field") initializers.unshift(_);
29
+ else descriptor[key] = _;
30
+ }
31
+ }
32
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
33
+ done = true;
34
+ };
35
+ /** Host-only preset discovery repair; never part of a model's tool surface. */
36
+ import { cp, lstat, mkdir, mkdtemp, readdir, rm } from 'node:fs/promises';
37
+ import { join, resolve } from 'node:path';
38
+ import { fileURLToPath, pathToFileURL } from 'node:url';
39
+ import s from '@deepseek-ai/schemastery';
40
+ import { copyComposition, discoverPresets, writableRoot } from '@deepseek-ai/dsh-agent-presets';
41
+ import { Remote, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
42
+ const sourceRoot = fileURLToPath(new URL('../../presets/', import.meta.url));
43
+ const validId = /^[a-z0-9][a-z0-9-]{0,63}$/;
44
+ async function exists(path) {
45
+ try {
46
+ await lstat(path);
47
+ return true;
48
+ }
49
+ catch (error) {
50
+ if (error.code === 'ENOENT')
51
+ return false;
52
+ throw error;
53
+ }
54
+ }
55
+ /** Serialized writes protect double clicks; mkdir claims only an unoccupied name. */
56
+ export class PresetInstaller {
57
+ roster;
58
+ settings;
59
+ bundledRoot;
60
+ baseUrl;
61
+ tail = Promise.resolve();
62
+ constructor(roster, settings, bundledRoot = sourceRoot, baseUrl = pathToFileURL(bundledRoot).href) {
63
+ this.roster = roster;
64
+ this.settings = settings;
65
+ this.bundledRoot = bundledRoot;
66
+ this.baseUrl = baseUrl;
67
+ }
68
+ async status() {
69
+ const savedId = this.settings.get().installedId;
70
+ const id = validId.test(savedId) ? savedId : 'super-code';
71
+ const presets = await this.roster.list();
72
+ const preset = presets.find(row => row.id === id);
73
+ const authorable = this.roster.roots.some(root => root.trust === 'user');
74
+ const occupied = await this.occupied(id);
75
+ const userConflict = occupied && this.settings.get().installedId !== id;
76
+ if (preset) {
77
+ const owned = preset.trust === 'system' && resolve(preset.path) === join(this.bundledRoot, 'super-code', 'agent.cordis.yml');
78
+ return { id, authorable, userConflict, state: preset.broken ? 'broken' : owned ? 'available'
79
+ : preset.trust === 'user' && this.settings.get().installedId === id ? 'installed' : 'conflict' };
80
+ }
81
+ return { id, authorable, userConflict, state: occupied ? 'conflict' : 'missing' };
82
+ }
83
+ async initialize() {
84
+ await this.enqueue(async () => {
85
+ if (this.settings.get().checked)
86
+ return;
87
+ const status = await this.status();
88
+ // Persist intent first: a failure or subsequent user deletion must not
89
+ // trigger a new filesystem write on every host restart.
90
+ await this.settings.update({ checked: true });
91
+ if (status.state === 'missing' && status.authorable)
92
+ await this.installNow('super-code');
93
+ });
94
+ }
95
+ async install(id) {
96
+ return await this.enqueue(() => this.installNow(id));
97
+ }
98
+ async occupied(id) {
99
+ for (const root of this.roster.roots.filter(root => root.trust === 'user')) {
100
+ if (await exists(join(writableRoot([root], id), id)))
101
+ return true;
102
+ }
103
+ return false;
104
+ }
105
+ async installNow(value) {
106
+ const reject = async (error) => ({ ok: false, error, status: await this.status() });
107
+ if (typeof value !== 'string' || !validId.test(value))
108
+ return reject('invalid-name');
109
+ const id = value;
110
+ if (!this.roster.roots.some(root => root.trust === 'user'))
111
+ return reject('no-user-root');
112
+ if ((await this.roster.list()).some(row => row.id === id) || await this.occupied(id))
113
+ return reject('name-taken');
114
+ let staging = '';
115
+ let claimed = false;
116
+ const target = join(writableRoot(this.roster.roots, id), id);
117
+ try {
118
+ const source = (await discoverPresets([{ path: this.bundledRoot, trust: 'system' }], this.baseUrl))
119
+ .find(preset => preset.id === 'super-code' && !preset.broken);
120
+ if (!source)
121
+ throw new Error('Bundled super-code preset unavailable');
122
+ const root = writableRoot(this.roster.roots, id);
123
+ await mkdir(root, { recursive: true, mode: 0o700 });
124
+ staging = await mkdtemp(join(root, '.super-code-install-'));
125
+ // The host copy helper can clean up its destination on failure. Isolate
126
+ // it from user-owned paths, then exclusively claim the final directory.
127
+ const prepared = await copyComposition([{ path: staging, trust: 'user' }], source, id, id);
128
+ await mkdir(target, { mode: 0o700 });
129
+ claimed = true;
130
+ for (const entry of await readdir(prepared)) {
131
+ await cp(join(prepared, entry), join(target, entry), { recursive: true, force: false, errorOnExist: true });
132
+ }
133
+ await this.settings.update({ checked: true, installedId: id });
134
+ claimed = false;
135
+ return { ok: true, status: await this.status() };
136
+ }
137
+ catch (error) {
138
+ if (claimed)
139
+ await rm(target, { recursive: true, force: true });
140
+ return reject(error.code === 'EEXIST' ? 'name-taken' : 'install-failed');
141
+ }
142
+ finally {
143
+ if (staging)
144
+ await rm(staging, { recursive: true, force: true });
145
+ }
146
+ }
147
+ enqueue(run) {
148
+ const next = this.tail.then(run);
149
+ this.tail = next.catch(() => { });
150
+ return next;
151
+ }
152
+ }
153
+ let SuperCodePresets = (() => {
154
+ let _classSuper = TypertRemoteService;
155
+ let _instanceExtraInitializers = [];
156
+ let _status_decorators;
157
+ let _installPreset_decorators;
158
+ return class SuperCodePresets extends _classSuper {
159
+ static {
160
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
161
+ _status_decorators = [Remote];
162
+ _installPreset_decorators = [Remote];
163
+ __esDecorate(this, null, _status_decorators, { kind: "method", name: "status", static: false, private: false, access: { has: obj => "status" in obj, get: obj => obj.status }, metadata: _metadata }, null, _instanceExtraInitializers);
164
+ __esDecorate(this, null, _installPreset_decorators, { kind: "method", name: "installPreset", static: false, private: false, access: { has: obj => "installPreset" in obj, get: obj => obj.installPreset }, metadata: _metadata }, null, _instanceExtraInitializers);
165
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
166
+ }
167
+ installer = __runInitializers(this, _instanceExtraInitializers);
168
+ constructor(ctx, installer) {
169
+ super(ctx, 'superCodePresets');
170
+ this.installer = installer;
171
+ }
172
+ status() { return this.installer.status(); }
173
+ installPreset(id) { return this.installer.install(id); }
174
+ };
175
+ })();
176
+ export { SuperCodePresets };
177
+ export function applyPresetInstallation(ctx) {
178
+ ctx.inject(['agentPresets', 'settings'], async (owner) => {
179
+ const settings = owner.settings.register('super-code', s.object({
180
+ checked: s.boolean().default(false),
181
+ installedId: s.string().default(''),
182
+ }));
183
+ const installer = new PresetInstaller(owner.agentPresets, settings, sourceRoot, owner.baseUrl);
184
+ new SuperCodePresets(owner, installer);
185
+ try {
186
+ await installer.initialize();
187
+ }
188
+ catch {
189
+ owner.logger.warn('Super Code preset installation unavailable; retry in plugin settings.');
190
+ }
191
+ });
192
+ }
193
+ //# sourceMappingURL=preset-installation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-installation.js","sourceRoot":"","sources":["../../src/dsh/preset-installation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+E;AAC/E,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEvD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAqB,MAAM,gCAAgC,CAAA;AAElH,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAiB9E,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAC5E,MAAM,OAAO,GAAG,2BAA2B,CAAA;AAE3C,KAAK,UAAU,MAAM,CAAC,IAAY;IAChC,IAAI,CAAC;QAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;QAAC,OAAO,IAAI,CAAA;IAAC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACpD,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAA;QACpE,MAAM,KAAK,CAAA;IACb,CAAC;AACH,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AAC,GAAG,EAAE,kBAAkB,CAAC,CAAA;YAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC5B,CAAC;QAED,MAAM,KAAwC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAA,CAAC,CAAC;QAE9E,aAAa,CAAC,EAAW,IAAuC,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC;;;SATxF,gBAAgB;AAY7B,MAAM,UAAU,uBAAuB,CAAC,GAAY;IAClD,GAAG,CAAC,MAAM,CAAC,CAAC,cAAc,EAAE,UAAU,CAAC,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;QACrD,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;YAC9D,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;YACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;SACpC,CAAC,CAAC,CAAA;QACH,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;QAC9F,IAAI,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;QACtC,IAAI,CAAC;YAAC,MAAM,SAAS,CAAC,UAAU,EAAE,CAAA;QAAC,CAAC;QAAC,MAAM,CAAC;YAC1C,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAA;QAC5F,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -89,7 +89,7 @@ export function apply(ctx, config = {}) {
89
89
  } });
90
90
  ctx.tools.register(defineTool({
91
91
  name: 'super_code_method',
92
- description: 'Read missing expertise, not a routine prerequisite. Select a known method directly; omit method only to inspect a team. Reuse guidance in context; batch with independent reads when useful.',
92
+ description: 'Read expertise when causes remain indistinguishable, failures repeat or recovery/state behavior is unclear. Select a method directly; omit it only to inspect a team. Reuse loaded guidance; batch with independent reads. Not a routine prerequisite.',
93
93
  parameters: { team: { type: 'string', enum: TEAM_NAMES, required: true }, method: { type: 'string', enum: Object.keys(METHODS) },
94
94
  recipe: { type: 'string', enum: EXPERIMENT_RECIPES, description: 'Optional runnable Shell example for a hard problem: failure reduction, differential oracle, controlled async interleavings or contract relation. Omit when unnecessary.' } },
95
95
  output: { schema: { type: 'string' }, render: (_args, value) => [{ type: 'text', text: value }] },
@@ -1 +1 @@
1
- {"version":3,"file":"super-code.js","sourceRoot":"","sources":["../../src/dsh/super-code.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAGrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAE/F,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACxF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE9L,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,EAAE,CAAC,IAAI,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AA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AAC,CAAC,CAAA;AACL,CAAC;AAED,MAAM,MAAM,GAA4H,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AACvK,eAAe,MAAM,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-super-code",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "One super-code preset with specialist teams and durable task memory for DeepSeek Harness.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -46,21 +46,20 @@
46
46
  "zod": "^4.4.3"
47
47
  },
48
48
  "peerDependencies": {
49
- "@deepseek-ai/dsh-agent": "^0.1.5-rc.2",
50
- "@deepseek-ai/dsh-agent-presets": "^0.1.5-rc.2",
49
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
50
+ "@deepseek-ai/dsh-agent-presets": "^0.1.5-alpha.1",
51
51
  "@deepseek-ai/cordis": "^4.0.2",
52
- "@deepseek-ai/dsh-llm": "^0.1.5-rc.2",
53
- "@deepseek-ai/dsh-session": "^0.1.5-rc.2",
54
- "@deepseek-ai/dsh-session-projection": "^0.1.5-rc.2",
55
- "@deepseek-ai/dsh-scope": "^0.1.5-rc.2",
56
- "@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.2",
57
- "@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
58
- "@deepseek-ai/schemastery": "^3.18.2"
52
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
53
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
54
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
55
+ "@deepseek-ai/dsh-scope": "^0.1.5-alpha.1",
56
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1",
57
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
58
+ "@deepseek-ai/schemastery": "^3.18.2",
59
+ "@deepseek-ai/dsh-settings": "^0.1.5-alpha.1",
60
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.1"
59
61
  },
60
62
  "peerDependenciesMeta": {
61
- "@deepseek-ai/dsh-agent-presets": {
62
- "optional": true
63
- },
64
63
  "@deepseek-ai/cordis": {
65
64
  "optional": true
66
65
  },
@@ -1,3 +1,3 @@
1
1
  name: Super Code
2
- description: Coding with on-demand research, design, development, testing and optimization expertise.
2
+ description: A faster, more efficient, smarter coding mode.
3
3
  order: 10