dsh-collab-pair 1.3.0 → 1.3.1
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 +4 -0
- package/client.js +12 -0
- package/index.js +1 -1
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> A DSH plugin for large projects: link one project-manager conversation to one or more worker conversations. Dispatch each round once from the manager instead of repeating prompts across conversations; results come back automatically, and unattended runs keep moving.
|
|
4
4
|
|
|
5
|
+
[**GitHub**](https://github.com/awa1231/dsh-collab-pair) · [Give it a star ★](https://github.com/awa1231/dsh-collab-pair)
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -225,6 +227,8 @@ One record per worker lives in `$DSH_HOME/storages/collab_pair.json` (storage-do
|
|
|
225
227
|
|
|
226
228
|
> DSH 插件:一个项目经理对话管理多个员工对话,任务自动流转,并提供全部任务看板。
|
|
227
229
|
|
|
230
|
+
[**GitHub**](https://github.com/awa1231/dsh-collab-pair) · [给个 Star ★](https://github.com/awa1231/dsh-collab-pair)
|
|
231
|
+
|
|
228
232
|
## 安装
|
|
229
233
|
|
|
230
234
|
```bash
|
package/client.js
CHANGED
|
@@ -35,6 +35,7 @@ window.__ModuleLoader__.load({
|
|
|
35
35
|
modePermShort: '永久',
|
|
36
36
|
projectLabel: '项目',
|
|
37
37
|
remoteLabel: '远程',
|
|
38
|
+
starLabel: '在 GitHub 上给个 Star ★',
|
|
38
39
|
projectUnnamed: '未命名项目',
|
|
39
40
|
projectSave: '保存项目名',
|
|
40
41
|
projectSaved: '项目名已更新',
|
|
@@ -98,6 +99,7 @@ window.__ModuleLoader__.load({
|
|
|
98
99
|
modePermShort: 'Permanent',
|
|
99
100
|
projectLabel: 'Project',
|
|
100
101
|
remoteLabel: 'remote',
|
|
102
|
+
starLabel: 'Star it on GitHub ★',
|
|
101
103
|
projectUnnamed: 'Unnamed project',
|
|
102
104
|
projectSave: 'Save project name',
|
|
103
105
|
projectSaved: 'Project name updated',
|
|
@@ -147,6 +149,7 @@ window.__ModuleLoader__.load({
|
|
|
147
149
|
input: { width: '100%', boxSizing: 'border-box', padding: '8px 10px', borderRadius: 8, border: '1px solid var(--dsw-alias-border-l1)', background: 'var(--dsw-alias-bg-base)', color: 'var(--dsw-alias-label-primary)', fontSize: 13, fontFamily: 'inherit' },
|
|
148
150
|
primary: { padding: '8px 14px', borderRadius: 8, border: '1px solid transparent', background: 'var(--dsw-alias-brand-primary)', color: '#fff', fontSize: 13, cursor: 'pointer' },
|
|
149
151
|
secondary: { padding: '6px 12px', borderRadius: 8, border: '1px solid var(--dsw-alias-border-l2)', background: 'transparent', color: 'var(--dsw-alias-label-primary)', fontSize: 12, cursor: 'pointer' },
|
|
152
|
+
starLink: { display: 'inline-flex', alignItems: 'center', gap: 6, padding: '5px 12px', borderRadius: 999, border: '1px solid var(--dsw-alias-border-l2)', color: 'var(--dsw-alias-label-secondary)', fontSize: 12, textDecoration: 'none' },
|
|
150
153
|
danger: { padding: '6px 12px', borderRadius: 8, border: '1px solid var(--dsw-alias-state-error-primary)', background: 'transparent', color: 'var(--dsw-alias-state-error-primary)', fontSize: 12, cursor: 'pointer' },
|
|
151
154
|
badge: { display: 'inline-flex', alignItems: 'center', padding: '2px 8px', borderRadius: 999, fontSize: 11, fontWeight: 600, background: 'var(--dsw-alias-bg-layer-2)', whiteSpace: 'nowrap' },
|
|
152
155
|
mono: { fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize: 11, color: 'var(--dsw-alias-label-secondary)', wordBreak: 'break-all' },
|
|
@@ -571,12 +574,21 @@ window.__ModuleLoader__.load({
|
|
|
571
574
|
}
|
|
572
575
|
|
|
573
576
|
const workTitle = sessions.find((row) => row.id === workId)?.title
|
|
577
|
+
const starRow = h('div', { style: { display: 'flex', justifyContent: 'center', padding: '2px 0 6px' } },
|
|
578
|
+
h('a', {
|
|
579
|
+
href: 'https://github.com/awa1231/dsh-collab-pair',
|
|
580
|
+
target: '_blank',
|
|
581
|
+
rel: 'noreferrer noopener',
|
|
582
|
+
style: S.starLink,
|
|
583
|
+
}, t('starLabel')),
|
|
584
|
+
)
|
|
574
585
|
return h('div', { style: S.page },
|
|
575
586
|
header,
|
|
576
587
|
feedback,
|
|
577
588
|
h('h3', { style: S.cardTitle }, workTitle === undefined ? t('currentTitle') : `${t('currentTitle')} · ${workTitle}`),
|
|
578
589
|
currentCard,
|
|
579
590
|
boardCard,
|
|
591
|
+
starRow,
|
|
580
592
|
)
|
|
581
593
|
}
|
|
582
594
|
|
package/index.js
CHANGED
|
@@ -41,7 +41,7 @@ const DONE = 'done'
|
|
|
41
41
|
const STOPPED = 'stopped'
|
|
42
42
|
const REPORTS = new Set(['done', 'partial', 'blocked'])
|
|
43
43
|
const PROMPT_TIMEOUT_MS = 180000
|
|
44
|
-
const ENGINE = 'collab-pair/1.3.
|
|
44
|
+
const ENGINE = 'collab-pair/1.3.1'
|
|
45
45
|
|
|
46
46
|
/** A recoverable failure whose message is meant for the model. */
|
|
47
47
|
class CollabError extends Error {}
|
package/package.json
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-collab-pair",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "For large projects: link a project-manager conversation with local or remote workers across devices (temporary links unbind when done, permanent links stay until unlinked), group managers and workers by project, dispatch each round from the manager instead of repeating prompts, relay results automatically, and keep unattended runs moving with a visual task board. Includes a small relay hub for cross-device runs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"author": "awa1231",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/awa1231/dsh-collab-pair.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/awa1231/dsh-collab-pair#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/awa1231/dsh-collab-pair/issues"
|
|
15
|
+
},
|
|
7
16
|
"scripts": {
|
|
8
17
|
"prepack": "node ../sync.mjs"
|
|
9
18
|
},
|