dsh-superagent-inbox 0.1.0 → 0.2.0
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 +2 -12
- package/cordis.patch.yml +5 -3
- package/lib/index.js +5 -1
- package/package.json +28 -28
package/README.md
CHANGED
|
@@ -91,18 +91,8 @@ cd dsh-superagent-inbox
|
|
|
91
91
|
pnpm install && pnpm check # typecheck + 全部测试 + 构建 lib/
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
1.
|
|
95
|
-
2.
|
|
96
|
-
|
|
97
|
-
```yaml
|
|
98
|
-
- id: dsh-superagent
|
|
99
|
-
config:
|
|
100
|
-
stateDir: /home/me/.dsh/state/superagent
|
|
101
|
-
- id: dsh-superagent-inbox
|
|
102
|
-
disabled: false
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
3. 重启 Harness,打开 **Superagent 侧边栏面板 → Sources → Local inbox**,配置:
|
|
94
|
+
1. 插件安装后**零配置即可启动**:bundle 自带默认 `stateDir`(`~/.dsh/superagent-state`,跨平台自动计算;可用环境变量 `DSH_SUPERAGENT_STATE_DIR` 或在 profile 层覆盖)。
|
|
95
|
+
2. 重启 Harness,打开 **Superagent 侧边栏面板**完成部署引导(仓库、GitHub 账号——Worker 提交 PR 用),然后在 **Sources → Local inbox** 配置:
|
|
106
96
|
- `root`:收件箱根目录(绝对路径)
|
|
107
97
|
- `conversations`:至少一个对话,如 `{ id: "ops", listen: "mentions" }`
|
|
108
98
|
4. **Eval → On each Source → Local inbox**:把你自己(`from` 的值)加入 allowed 名单。
|
package/cordis.patch.yml
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
# dsh-superagent bundle layer: inserts the plugins
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# dsh-superagent bundle layer: inserts the plugins with a zero-config default stateDir, and the agent presets its Sessions run
|
|
2
|
+
# under. The default lands under the user's home (override per machine with DSH_SUPERAGENT_STATE_DIR, or set `stateDir` in the
|
|
3
|
+
# profile layer, as docs/006-deployment.md and examples/profile.cordis.patch.yml describe; a profile entry always wins).
|
|
4
4
|
- insert:
|
|
5
5
|
- id: dsh-superagent
|
|
6
6
|
name: dsh-superagent-inbox
|
|
7
|
+
config:
|
|
8
|
+
stateDir: !!js process.env.DSH_SUPERAGENT_STATE_DIR || ((process.platform === 'win32' ? process.env.USERPROFILE : process.env.HOME) + '/.dsh/superagent-state')
|
|
7
9
|
- id: dsh-superagent-github
|
|
8
10
|
name: dsh-superagent-inbox/github-watch
|
|
9
11
|
# Optional Feishu Source; requires configuring a bot CLI after enabling.
|
package/lib/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { _ as settled, b as waitsForPerson, c as key, d as latestAssignment, f a
|
|
|
2
2
|
import { C as writeEnvironment, D as SetupError, O as LIMITS, S as workerBin, T as Commands, _ as applyEnvironment, b as verifyEnvironment, d as machineOf, f as resolveDeployment, g as agentVariables, h as WORKER_COMMANDS, m as workerProbe, o as KV, p as resolveFeishuBot, s as Config, u as SETUP_FIELDS, v as runAsWorker, x as withoutDirectory, y as verifyDirectory } from "./poll-BNESIoHV.js";
|
|
3
3
|
import { i as pullOf, m as readRepositoryPath, o as readPull, p as readGithub, r as pullEndNotices, t as claimPull } from "./github-pull-D7TShMcu.js";
|
|
4
4
|
import { b as feishuTriggerId, d as feishuChatLink, f as feishuRead, g as feishuRef, m as readFeishuLink, p as feishuReferences, r as feishuSettings } from "./feishu-OpOhUnrd.js";
|
|
5
|
-
import { Service } from "@deepseek-ai/cordis";
|
|
6
5
|
import { chmodSync, existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
6
|
+
import { Service } from "@deepseek-ai/cordis";
|
|
7
7
|
import { basename, dirname, join } from "node:path";
|
|
8
8
|
import { lockSync } from "proper-lockfile";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -10591,6 +10591,7 @@ var Runtime = class extends Service {
|
|
|
10591
10591
|
};
|
|
10592
10592
|
//#endregion
|
|
10593
10593
|
//#region src/index.ts
|
|
10594
|
+
/** Main plugin entry: mounts the Runtime and provides its restart callback for deployment account changes. */
|
|
10594
10595
|
const name = "dsh-superagent";
|
|
10595
10596
|
const inject = [
|
|
10596
10597
|
"agents",
|
|
@@ -10607,6 +10608,9 @@ const inject = [
|
|
|
10607
10608
|
];
|
|
10608
10609
|
async function apply(ctx, config) {
|
|
10609
10610
|
const machine = machineOf(config);
|
|
10611
|
+
try {
|
|
10612
|
+
mkdirSync(machine.stateDir, { recursive: true });
|
|
10613
|
+
} catch {}
|
|
10610
10614
|
ctx.inject(["settings"], (child) => {
|
|
10611
10615
|
child.effect(() => child.settings.configure({ auto: false }, ctx.fiber));
|
|
10612
10616
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-superagent-inbox",
|
|
3
3
|
"author": "DeepSeek Harness Team <team@dsh.dev>",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"description": "dsh-superagent + 本地收件箱 Source: drives the DeepSeek Harness super-agent from a plain folder of message files. File-inbox Source for the dsh-superagent prototype.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "lib/index.js",
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
"packageManager": "pnpm@11.7.0",
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"proper-lockfile": "4.1.2",
|
|
60
|
-
"zod": "4.4.3"
|
|
61
|
-
},
|
|
62
|
-
"peerDependencies": {
|
|
60
|
+
"zod": "4.4.3",
|
|
63
61
|
"@deepseek-ai/dsh-agent-instructions": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
64
62
|
"@deepseek-ai/dsh-agent-preset": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
65
63
|
"@deepseek-ai/dsh-bash-sandbox": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
@@ -73,35 +71,37 @@
|
|
|
73
71
|
"@deepseek-ai/dsh-tool-fs": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
74
72
|
"@deepseek-ai/dsh-tool-fs-search": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
75
73
|
"@deepseek-ai/dsh-tool-jobs": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
76
|
-
"@deepseek-ai/dsh-
|
|
77
|
-
"@deepseek-ai/dsh-tool-skill": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
74
|
+
"@deepseek-ai/dsh-skill": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
78
75
|
"@deepseek-ai/dsh-tool-subagent": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
79
76
|
"@deepseek-ai/dsh-tool-subagent-control": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
80
77
|
"@deepseek-ai/dsh-tool-todo": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
81
78
|
"@deepseek-ai/dsh-tool-web": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
79
|
+
"@deepseek-ai/dsh-tool-pwsh": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@deepseek-ai/dsh-agent": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
83
|
+
"@deepseek-ai/dsh-api-session-controller": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
84
|
+
"@deepseek-ai/dsh-attachment": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
85
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-workspace": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
92
|
+
"@deepseek-ai/dsh-host-webserver": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
93
|
+
"@deepseek-ai/dsh-llm": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
94
|
+
"@deepseek-ai/dsh-permission-presets": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
95
|
+
"@deepseek-ai/dsh-scope": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
96
|
+
"@deepseek-ai/dsh-session": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
97
|
+
"@deepseek-ai/dsh-session-persistence": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
98
|
+
"@deepseek-ai/dsh-skill": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
99
|
+
"@deepseek-ai/dsh-subprocess": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
100
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
101
|
+
"@deepseek-ai/dsh-tools": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
102
|
+
"@deepseek-ai/dsh-workspace": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
|
|
82
103
|
"@deepseek-ai/cordis": "~4.0.5",
|
|
83
|
-
"@deepseek-ai/
|
|
84
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-alpha.2",
|
|
85
|
-
"@deepseek-ai/dsh-attachment": "^0.2.1-alpha.2",
|
|
86
|
-
"@deepseek-ai/dsh-client-locale": "^0.2.1-alpha.2",
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-layout": "^0.2.1-alpha.2",
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.1-alpha.2",
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.2.1-alpha.2",
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.1-alpha.2",
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-alpha.2",
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-workspace": "^0.2.1-alpha.2",
|
|
93
|
-
"@deepseek-ai/dsh-host-webserver": "^0.2.1-alpha.2",
|
|
94
|
-
"@deepseek-ai/dsh-llm": "^0.2.1-alpha.2",
|
|
95
|
-
"@deepseek-ai/dsh-permission-presets": "^0.2.1-alpha.2",
|
|
96
|
-
"@deepseek-ai/dsh-scope": "^0.2.1-alpha.2",
|
|
97
|
-
"@deepseek-ai/dsh-session": "^0.2.1-alpha.2",
|
|
98
|
-
"@deepseek-ai/dsh-session-persistence": "^0.2.1-alpha.2",
|
|
99
|
-
"@deepseek-ai/dsh-skill": "^0.2.1-alpha.2",
|
|
100
|
-
"@deepseek-ai/dsh-subprocess": "^0.2.1-alpha.2",
|
|
101
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.1-alpha.2",
|
|
102
|
-
"@deepseek-ai/dsh-tools": "^0.2.1-alpha.2",
|
|
103
|
-
"@deepseek-ai/dsh-workspace": "^0.2.1-alpha.2",
|
|
104
|
-
"@deepseek-ai/schemastery": "3.18.5-alpha.1"
|
|
104
|
+
"@deepseek-ai/schemastery": "3.18.5"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@deepseek-ai/cordis": "~4.0.5",
|