dsh-science-plugin 0.14.0 → 0.14.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/README.md +37 -9
- package/agents/_README.md +5 -5
- package/agents/figure-expert.md +35 -35
- package/agents/presentation.md +78 -78
- package/agents/simulator.md +30 -30
- package/agents/topic-designer.md +26 -26
- package/agents/trainer.md +36 -36
- package/client/client.js +154 -177
- package/client/client.js.map +2 -2
- package/cordis.patch.yml +11 -12
- package/lib/action-cards.js +7 -4
- package/lib/db.js +386 -386
- package/lib/httpdata-auth.js +12 -21
- package/lib/httpdata.js +41 -45
- package/lib/index.js +3 -2
- package/lib/project-experts.js +94 -0
- package/lib/router.js +1 -1
- package/lib/skillmenu.js +87 -52
- package/lib/ssh.js +66 -20
- package/lib/store.js +50 -50
- package/lib/team.js +19 -11
- package/package.json +74 -71
- package/skills/sci-autoresearch/SKILL.md +41 -41
- package/skills/sci-hypothesis/SKILL.md +31 -31
- package/skills/sci-polish/SKILL.md +28 -28
- package/skills/sci-slides/SKILL.md +73 -73
- package/skills/sci-writing/SKILL.md +33 -33
- package/docs/DEVLOG.md +0 -864
- package/docs/SPEC.md +0 -452
- package/docs/research/2026-11-12-academic-figure-skill-/350/257/204/344/274/260.md +0 -33
- package/docs/research/2026-11-12-/347/247/221/347/240/224/347/273/230/345/233/276/345/274/200/346/272/220/346/226/271/346/241/210/350/260/203/347/240/224.md +0 -52
- package/docs/research/2026-11-13-/345/257/271/350/257/235/351/251/261/345/212/250/347/247/221/347/240/224/345/267/245/344/275/234/345/217/260/344/272/247/345/223/201/347/255/226/347/225/245/350/260/203/347/240/224.md +0 -319
- package/docs/research/2026-11-13-/350/267/257/347/272/277B/346/212/200/346/234/257/345/217/257/350/241/214/346/200/247/344/270/216/344/275/216/347/274/272/351/231/267/350/256/276/350/256/241/350/260/203/347/240/224.md +0 -65
- package/docs/superpowers/specs/2026-11-12-/347/247/221/347/240/224/345/267/245/344/275/234/345/217/260/351/207/215/346/236/204/350/256/276/350/256/241.md +0 -364
- package/docs/superpowers/specs/2026-11-13-/345/257/271/350/257/235/344/274/230/345/205/210/347/247/221/347/240/224/345/215/241/347/211/207/345/267/245/344/275/234/345/217/260/351/207/215/346/236/204/350/256/276/350/256/241.md +0 -607
package/cordis.patch.yml
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
- insert:
|
|
2
|
-
- id: dsh-science
|
|
3
|
-
name: dsh-science
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- id: dsh-science-
|
|
10
|
-
name: '@deepseek-ai/dsh-action-cards'
|
|
11
|
-
|
|
12
|
-
name: '@deepseek-ai/dsh-client-ui-action-cards'
|
|
1
|
+
- insert:
|
|
2
|
+
- id: dsh-science
|
|
3
|
+
name: dsh-science-plugin
|
|
4
|
+
# Older Web profiles lack one or both card entries. Honor any host-configured
|
|
5
|
+
# entry (including disabled entries) and only supply the missing component.
|
|
6
|
+
- id: dsh-science-legacy-cards-host
|
|
7
|
+
name: '@deepseek-ai/dsh-action-cards'
|
|
8
|
+
disabled: !!js "ctx[Symbol.for('cordis.entry')].parent.data.some(row => row.name === '@deepseek-ai/dsh-action-cards' && row.id !== 'dsh-science-legacy-cards-host')"
|
|
9
|
+
- id: dsh-science-legacy-cards-client
|
|
10
|
+
name: '@deepseek-ai/dsh-client-ui-action-cards'
|
|
11
|
+
disabled: !!js "ctx[Symbol.for('cordis.entry')].parent.data.some(row => row.name === '@deepseek-ai/dsh-client-ui-action-cards' && row.id !== 'dsh-science-legacy-cards-client')"
|
package/lib/action-cards.js
CHANGED
|
@@ -64,6 +64,9 @@ export function scienceConfirmKind({ store, actionCards }) {
|
|
|
64
64
|
if (!gate.ok) {
|
|
65
65
|
return { status: 'refused', reason: '当前会话没有论文写权限(成员只能提交提案)' }
|
|
66
66
|
}
|
|
67
|
+
const id = proposal.cardId ?? proposal.callId
|
|
68
|
+
if (typeof id !== 'string' || !id) return { status: 'refused', reason: '确认卡缺少宿主标识' }
|
|
69
|
+
const identity = proposal.cardId ? { cardId: id } : { callId: id }
|
|
67
70
|
const details = proposal.details
|
|
68
71
|
if (!details.expectedHash) {
|
|
69
72
|
return { status: 'refused', reason: '卡片缺少对象内容哈希(expectedHash),请让队长基于最新状态重新发起确认' }
|
|
@@ -71,7 +74,7 @@ export function scienceConfirmKind({ store, actionCards }) {
|
|
|
71
74
|
if (verb === 'reject') {
|
|
72
75
|
// T4:退回不写入论文语义,只记录一条可追溯 decision;用户入口回到对话说明修改意见。
|
|
73
76
|
const decision = {
|
|
74
|
-
|
|
77
|
+
...identity,
|
|
75
78
|
action: SCIENCE_CONFIRM_ACTION,
|
|
76
79
|
phase: 'rejected',
|
|
77
80
|
data: {
|
|
@@ -90,7 +93,7 @@ export function scienceConfirmKind({ store, actionCards }) {
|
|
|
90
93
|
}
|
|
91
94
|
// 卡片携带用户实际看到的项目 revision:先按它做一次项目级 CAS;若仅无关对象变化导致
|
|
92
95
|
// 项目 revision 前进,则重读目标对象后允许(对象 revision+hash 未变);目标变化仍拒绝。
|
|
93
|
-
const cardOptions = { mutationId: `card-${
|
|
96
|
+
const cardOptions = { mutationId: `card-${id}`, source: 'action-card' }
|
|
94
97
|
let result = confirmObjectRevision(store, ref, {
|
|
95
98
|
objectId: details.objectId,
|
|
96
99
|
expectedObjectRevision: details.objectRevision,
|
|
@@ -106,7 +109,7 @@ export function scienceConfirmKind({ store, actionCards }) {
|
|
|
106
109
|
if (result.kind === 'applied') {
|
|
107
110
|
// L6:仅在真正应用时记录 decision——already-applied 重放不追加重复回执
|
|
108
111
|
const decision = {
|
|
109
|
-
|
|
112
|
+
...identity,
|
|
110
113
|
action: SCIENCE_CONFIRM_ACTION,
|
|
111
114
|
phase: 'confirmed',
|
|
112
115
|
data: {
|
|
@@ -124,7 +127,7 @@ export function scienceConfirmKind({ store, actionCards }) {
|
|
|
124
127
|
return {
|
|
125
128
|
status: 'settled',
|
|
126
129
|
decision: {
|
|
127
|
-
|
|
130
|
+
...identity,
|
|
128
131
|
action: SCIENCE_CONFIRM_ACTION,
|
|
129
132
|
phase: 'confirmed',
|
|
130
133
|
data: {
|