dsh-superagent-inbox 0.1.1 → 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.
Files changed (2) hide show
  1. package/lib/index.js +5 -1
  2. package/package.json +28 -28
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.1.1",
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-tool-pwsh": ">=0.2.1-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0",
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/dsh-agent": "^0.2.1-alpha.2",
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",