dsh-aris-panel 0.1.1 → 0.1.3
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/dsh/client.js +55 -1
- package/package.json +1 -1
package/dsh/client.js
CHANGED
|
@@ -221,6 +221,53 @@ function inferStage(ov) {
|
|
|
221
221
|
return 1
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
const WORKFLOW_CHIPS = [
|
|
225
|
+
{ num: 'W1', label: 'Idea Discovery 想法发现', entry: 'idea-discovery', desc: '文献→头脑风暴→新颖性→GPU试跑→排名' },
|
|
226
|
+
{ num: 'W1.5', label: 'Experiment Bridge 实验桥接', entry: 'experiment-bridge', desc: '计划→实现→审代码→部署→收集' },
|
|
227
|
+
{ num: 'W2', label: 'Auto Review Loop 自动审稿', entry: 'auto-review-loop', desc: '审→修→再审直到≥6分或4轮' },
|
|
228
|
+
{ num: 'W3', label: 'Paper Writing 论文写作', entry: 'paper-writing', desc: '叙事→大纲→图表→LaTeX→PDF→外部审' },
|
|
229
|
+
{ num: 'W4', label: 'Rebuttal 回复审稿', entry: 'rebuttal', desc: '解析意见→策略→起草→压力测试' },
|
|
230
|
+
{ num: 'W5', label: 'Resubmit 换会重投', entry: 'resubmit-pipeline', desc: '硬约束重投,不加实验不改bib' },
|
|
231
|
+
{ num: 'W6', label: 'Conference Talk 会议演讲', entry: 'paper-talk', desc: '论文→Beamer+PPTX+讲稿' },
|
|
232
|
+
]
|
|
233
|
+
const AUDIT_CHIPS = [
|
|
234
|
+
{ label: '实验诚实度审计', skill: 'experiment-audit', desc: 'eval代码是否诚实(假GT/自归一化/幻影结果)' },
|
|
235
|
+
{ label: '结果→声明判定', skill: 'result-to-claim', desc: '结果是否科学地支持声明' },
|
|
236
|
+
{ label: '论文数字核对', skill: 'paper-claim-audit', desc: '论文报告的数字是否与原始结果一致' },
|
|
237
|
+
{ label: '引用真实性审计', skill: 'citation-audit', desc: '每个引用是否存在且上下文正确' },
|
|
238
|
+
{ label: '最强拒稿模拟', skill: 'kill-argument', desc: '200词最强拒稿+独立裁决' },
|
|
239
|
+
]
|
|
240
|
+
const MEMORY_CHIPS = [
|
|
241
|
+
{ label: 'research-wiki 知识库', skill: 'research-wiki', desc: '论文/想法/实验/声明跨会话沉淀' },
|
|
242
|
+
{ label: 'wiki 补全', skill: 'wiki-enrich', desc: '填充paper页面的TODO区' },
|
|
243
|
+
{ label: 'meta-optimize 自我优化', skill: 'meta-optimize', desc: '分析使用日志改进ARIS自身' },
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
function WbChipRow(props) {
|
|
247
|
+
return h('div', { className: 'wb-chip-row' },
|
|
248
|
+
props.items.map(function (it) {
|
|
249
|
+
return h('button', {
|
|
250
|
+
key: it.skill || it.entry,
|
|
251
|
+
className: 'wb-pano-chip',
|
|
252
|
+
onClick: function () { props.onPick(it.skill || it.entry) },
|
|
253
|
+
title: it.desc || '',
|
|
254
|
+
},
|
|
255
|
+
it.num ? h('span', { className: 'wb-pano-num' }, it.num) : null,
|
|
256
|
+
h('span', null, it.label))
|
|
257
|
+
}))
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function WbPanorama(props) {
|
|
261
|
+
return h('div', { className: 'wb-panorama' },
|
|
262
|
+
h('div', { className: 'wb-guide-title' }, '功能全景:7 个工作流 + 审计链 + 记忆(点击选项卡填充到下方技能触发)'),
|
|
263
|
+
h('div', { className: 'wb-pano-group' }, h('span', { className: 'wb-pano-group-label' }, '工作流'),
|
|
264
|
+
h(WbChipRow, { items: WORKFLOW_CHIPS, onPick: props.onPick })),
|
|
265
|
+
h('div', { className: 'wb-pano-group' }, h('span', { className: 'wb-pano-group-label' }, '审计链'),
|
|
266
|
+
h(WbChipRow, { items: AUDIT_CHIPS, onPick: props.onPick })),
|
|
267
|
+
h('div', { className: 'wb-pano-group' }, h('span', { className: 'wb-pano-group-label' }, '记忆'),
|
|
268
|
+
h(WbChipRow, { items: MEMORY_CHIPS, onPick: props.onPick })))
|
|
269
|
+
}
|
|
270
|
+
|
|
224
271
|
function WbGuide(props) {
|
|
225
272
|
const stage = props.stage
|
|
226
273
|
const onPick = props.onPick
|
|
@@ -483,6 +530,7 @@ function ArisWorkbenchView(props) {
|
|
|
483
530
|
if (error) children.push(h('div', { className: 'wb-error', key: 'err' }, error))
|
|
484
531
|
if (sessionId === undefined && workspaces === undefined) children.push(wbNote('正在连接工作区…'))
|
|
485
532
|
if (sessionId !== undefined) {
|
|
533
|
+
children.push(h(WbPanorama, { key: 'pano', onPick: function (name) { setSkill(name) } }))
|
|
486
534
|
children.push(h(WbGuide, { key: 'guide', stage: stage, onPick: function (name) { setSkill(name) } }))
|
|
487
535
|
children.push(h(WbTrigger, { key: 'trigger', connection: connection, sessionId: sessionId, skills: skills, skill: skill, args: args, skillError: skillError, onSkill: setSkill, onArgs: setArgs }))
|
|
488
536
|
}
|
|
@@ -568,7 +616,13 @@ const WB_CSS = `.wb-overlay { position: fixed; inset: 0; z-index: 9999; backgrou
|
|
|
568
616
|
.wb-trigger-row { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
|
|
569
617
|
.wb-skill-select { flex: 1 1 420px; background: #ffffff; color: #1f1f1f; border: 1px solid #c8c8c8; border-radius: 4px; padding: 6px 10px; font-size: 12px; min-width: 260px; }
|
|
570
618
|
.wb-args { flex: 1 1 280px; background: #ffffff; color: #1f1f1f; border: 1px solid #c8c8c8; border-radius: 4px; padding: 6px 10px; font-size: 12px; min-width: 200px; }
|
|
571
|
-
.wb-status { font-size: 12px; color: #107c10; margin-top: 4px; }
|
|
619
|
+
.wb-status { font-size: 12px; color: #107c10; margin-top: 4px; }.wb-panorama { margin-bottom: 18px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px 16px; background: #f7f7f7; }
|
|
620
|
+
.wb-pano-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
|
|
621
|
+
.wb-pano-group-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; font-weight: 700; flex: 0 0 44px; }
|
|
622
|
+
.wb-chip-row { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
|
|
623
|
+
.wb-pano-chip { background: #ffffff; color: #1f1f1f; border: 1px solid #d0d0d0; border-radius: 14px; padding: 3px 12px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
|
|
624
|
+
.wb-pano-chip:hover { border-color: #007acc; color: #007acc; background: #eef4fb; }
|
|
625
|
+
.wb-pano-num { font-weight: 800; color: #007acc; font-size: 11px; }`
|
|
572
626
|
|
|
573
627
|
const CSS = `
|
|
574
628
|
.aris-view { padding: 16px 20px; overflow-y: auto; font-size: 13px; line-height: 1.6; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-aris-panel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "ARIS research-workflow skills + interactive workbench panel for DeepSeek Harness (user fork of dsh-aris: 82 skills, cross-model Codex review, idea/workflow launcher, research status board).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|