@xiangyixie/dsh-superagent 0.14.2 → 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/lib/workspace.js CHANGED
@@ -179,7 +179,7 @@ export function createWorkspaceManager({
179
179
  if (probed) return probed
180
180
  const unavailable = reason => ({ ok: false, base: null, baseDir, root: null, reason })
181
181
  if (typeof baseDir !== 'string' || !baseDir.trim()) {
182
- return unavailable('no workspace directory is configured (set workspaceRoot to the repository the workers should edit)')
182
+ return unavailable('no workspace directory is configured (open the session inside the repository, or set workspaceRoot with workspaceBase: \'config\')')
183
183
  }
184
184
  let inside
185
185
  try {
@@ -188,7 +188,7 @@ export function createWorkspaceManager({
188
188
  return unavailable(error?.message ?? String(error))
189
189
  }
190
190
  if (!inside.ok || inside.stdout.trim() !== 'true') {
191
- return unavailable(`${baseDir} is not a git working tree, so a per-worker worktree cannot be created`)
191
+ return unavailable(`${baseDir} is not a git working tree, so a per-worker worktree cannot be created (open the session inside a git repository, or set workspaceRoot with workspaceBase: 'config')`)
192
192
  }
193
193
  const toplevel = await run(baseDir, ['rev-parse', '--show-toplevel'])
194
194
  if (!toplevel.ok) {
@@ -472,6 +472,9 @@ export function describeWorkspace(workspace) {
472
472
  if (workspace.deferred) {
473
473
  lines.push(`workspace: not merged — ${workspace.deferred}`)
474
474
  }
475
+ if (workspace.baseNote) {
476
+ lines.push(`workspace warning: ${workspace.baseNote}`)
477
+ }
475
478
  for (const failure of Array.isArray(workspace.failures) ? workspace.failures : []) {
476
479
  lines.push(`workspace: [${failure.index}] could not get its own checkout — ${failure.reason}; it ran in the shared directory`)
477
480
  }
@@ -487,7 +490,11 @@ export function describeWorkspace(workspace) {
487
490
  + `Resolve with: git -C ${quote(workspace.base)} merge ${merge.branch}`,
488
491
  )
489
492
  } else {
490
- lines.push(`workspace: [${merge.index}] not merged (${merge.status}) — ${merge.detail ?? 'no detail'}${merge.branch ? `; branch ${merge.branch} kept` : ''}`)
493
+ lines.push(
494
+ `workspace: [${merge.index}] not merged (${merge.status}) — ${merge.detail ?? 'no detail'}`
495
+ + `${merge.branch ? `; branch ${merge.branch} kept${merge.dir ? ` at ${merge.dir}` : ''}` : ''}`
496
+ + `${merge.branch ? `. Finish with: git -C ${quote(workspace.base)} merge --no-ff ${merge.branch}` : ''}`,
497
+ )
491
498
  }
492
499
  }
493
500
  return lines
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiangyixie/dsh-superagent",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "长周期自主执行插件:一个目标拆成可并行的子任务,交付一份合并报告,重启后仍可继续。",
5
5
  "author": "Admire (LittleChenLiya)",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/LittleChenLiya/dsh-superagent/issues"
14
14
  },
15
- "main": "lib/index.js",
15
+ "main": "lib/entry.js",
16
16
  "icon": "./icon.svg",
17
17
  "bin": {
18
18
  "dsh-superagent-watch": "bin/watch.js",
@@ -23,7 +23,8 @@
23
23
  "dsh-superagent-workbench": "bin/workbench.js"
24
24
  },
25
25
  "exports": {
26
- ".": "./lib/index.js",
26
+ ".": "./lib/entry.js",
27
+ "./client": "./lib/client.js",
27
28
  "./icon": "./icon.svg",
28
29
  "./locale/*.json": "./locale/*.json",
29
30
  "./cordis.patch.yml": "./cordis.patch.yml",
@@ -36,7 +37,9 @@
36
37
  "files": [
37
38
  "icon.svg",
38
39
  "locale/*.json",
39
- "lib/index.js",
40
+ "lib/index.js",
41
+ "lib/entry.js",
42
+ "lib/client.js",
40
43
  "lib/orchestrator.js",
41
44
  "lib/store.js",
42
45
  "lib/errors.js",
@@ -59,6 +62,9 @@
59
62
  "lib/sync.js",
60
63
  "lib/workbench.js",
61
64
  "lib/console.js",
65
+ "lib/wizard.js",
66
+ "lib/board.js",
67
+ "lib/board-messages.js",
62
68
  "lib/watch.js",
63
69
  "lib/report.js",
64
70
  "lib/workspace.js",
@@ -74,6 +80,7 @@
74
80
  "bin/workbench.js",
75
81
  "public/workbench.html",
76
82
  "public/console.html",
83
+ "public/board.html",
77
84
  "cordis.patch.yml",
78
85
  "docs/policy.example.json",
79
86
  "docs/DETAIL.md",
@@ -89,7 +96,7 @@
89
96
  "dsh": ">=0.2.2-rc.1 <0.3.0-0"
90
97
  },
91
98
  "scripts": {
92
- "test": "node --test test/orchestrator.test.mjs test/direct-and-queue.test.mjs test/dialog.test.mjs test/workspace.test.mjs test/store.test.mjs test/errors.test.mjs test/plugin.test.mjs test/guard.test.mjs test/goal.test.mjs test/cron.test.mjs test/schedule.test.mjs test/audit.test.mjs test/inject.test.mjs test/sync.test.mjs test/workbench.test.mjs test/usage.test.mjs test/cost.test.mjs test/ledger.test.mjs test/control.test.mjs test/watch.test.mjs test/report.test.mjs test/memory.test.mjs test/user-memory.test.mjs test/notify.test.mjs test/templates.test.mjs test/archive.test.mjs test/doctor.test.mjs test/pack.test.mjs test/runtime-control.test.mjs test/console.test.mjs",
99
+ "test": "node --test test/orchestrator.test.mjs test/direct-and-queue.test.mjs test/dialog.test.mjs test/workspace.test.mjs test/store.test.mjs test/errors.test.mjs test/plugin.test.mjs test/guard.test.mjs test/goal.test.mjs test/cron.test.mjs test/schedule.test.mjs test/audit.test.mjs test/inject.test.mjs test/sync.test.mjs test/workbench.test.mjs test/usage.test.mjs test/cost.test.mjs test/ledger.test.mjs test/control.test.mjs test/watch.test.mjs test/report.test.mjs test/memory.test.mjs test/user-memory.test.mjs test/notify.test.mjs test/templates.test.mjs test/archive.test.mjs test/doctor.test.mjs test/pack.test.mjs test/runtime-control.test.mjs test/console.test.mjs test/client-bundle.test.mjs test/wizard.test.mjs test/board.test.mjs",
93
100
  "check-pack": "node scripts/check-pack.mjs"
94
101
  },
95
102
  "keywords": [
@@ -105,6 +112,9 @@
105
112
  "dsh": {
106
113
  "bundle": {
107
114
  "patch": "./cordis.patch.yml"
115
+ },
116
+ "client": {
117
+ "platform": "web"
108
118
  }
109
119
  }
110
120
  }