odai-dsh-agent 0.0.2 → 0.0.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.
Files changed (37) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +86 -86
  3. package/bin/odai-dsh-agent.mjs +86 -87
  4. package/package.json +68 -68
  5. package/preset/odai/agent.cordis.yml +260 -260
  6. package/preset/odai/preset.yml +3 -3
  7. package/preset/odai/runtime/governance.mjs +120 -120
  8. package/preset/odai/runtime/index.mjs +584 -584
  9. package/preset/odai/runtime/router.mjs +290 -290
  10. package/preset/odai/runtime/routing-config.mjs +322 -322
  11. package/preset/odai/skills/odai/SKILL.md +65 -65
  12. package/preset/odai/skills/odai/agents/openai.yaml +4 -4
  13. package/preset/odai/skills/odai/assets/claude-agents/agent.md +11 -11
  14. package/preset/odai/skills/odai/assets/codex-agents/config.toml +11 -11
  15. package/preset/odai/skills/odai/assets/codex-agents/role.toml +5 -5
  16. package/preset/odai/skills/odai/assets/copilot-agents/agent.md +13 -13
  17. package/preset/odai/skills/odai/assets/hooks-policy.example.json +24 -24
  18. package/preset/odai/skills/odai/assets/routing-roles/controller.md +15 -15
  19. package/preset/odai/skills/odai/assets/routing-roles/executor.md +11 -11
  20. package/preset/odai/skills/odai/assets/routing-roles/planner.md +29 -29
  21. package/preset/odai/skills/odai/assets/routing-roles/reviewer.md +11 -11
  22. package/preset/odai/skills/odai/assets/task-state.md +12 -12
  23. package/preset/odai/skills/odai/references/craft.md +53 -53
  24. package/preset/odai/skills/odai/references/dao.md +30 -30
  25. package/preset/odai/skills/odai/references/leverage.md +45 -45
  26. package/preset/odai/skills/odai/references/support.md +36 -36
  27. package/preset/odai/skills/odai/references/verification.md +23 -23
  28. package/preset/odai/skills/odai/scripts/build-hooks.mjs +273 -273
  29. package/preset/odai/skills/odai/scripts/build-routing.mjs +239 -239
  30. package/preset/odai/skills/odai/scripts/install-routing.mjs +375 -375
  31. package/preset/odai/skills/odai/scripts/odai-hook.mjs +457 -457
  32. package/preset/odai/skills/odai/scripts/run-role.mjs +336 -336
  33. package/preset/odai/skills/odai/scripts/run-routing.mjs +1154 -1154
  34. package/preset/odai/skills/odai/scripts/verify-routing.mjs +103 -103
  35. package/scripts/verify-agent-load.mjs +218 -217
  36. package/src/dsh-version.mjs +20 -0
  37. package/src/installer.mjs +270 -270
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 orziz
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 orziz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,86 +1,86 @@
1
- # odai dsh agent
2
-
3
- `odai-dsh-agent` installs a selectable, session-scoped Odai Agent preset for DeepSeek Harness (`dsh`). It is independent from the profile-wide `odai-dsh-plugin`: installing this package does not edit any DSH profile or activate a global bundle.
4
-
5
- The installed preset is self-contained:
6
-
7
- ```text
8
- $DSH_HOME/.agent-presets/odai/
9
- agent.cordis.yml
10
- preset.yml
11
- runtime/*.mjs
12
- skills/odai/**
13
- .odai-agent.json
14
- ```
15
-
16
- The composition preserves every capability row and setting from the `standard` agent surface in `@deepseek-ai/dsh@0.1.0-rc.6`, then adds the scoped Odai runtime in default `auto` mode. Release verification compares the complete derived composition against that exact DSH Standard source; a missing, added, reordered, or changed Standard row fails the probe. Host-owned persistence, sandbox, approval, registries, and base controller selection remain in the selected DSH profile. Ordinary requests stay on that controller. A complete contextual high-impact decision gap upgrades the same turn only when a planner mapping exists; the controller's durable `request/header` proves the actual route. Explicit independent planning/review requests still start a verified child when their mappings exist. `execute` remains an explicit all-delegation comparison mode. `observe` changes no model and starts no child; it injects a local evidence-and-decision protocol and makes an unresolved high-impact turn read-only.
17
-
18
- ## Install
19
-
20
- With DSH already installed, run the single Agent package command below. The package already contains the canonical skill and shared runtime; it does not require the Plugin or a separate skill installation:
21
-
22
- ```sh
23
- npx odai-dsh-agent install
24
- ```
25
-
26
- The installer checks `dsh -V` and currently requires exactly `0.1.0-rc.6`; a preset built from one developer-preview composition is not silently installed into another version.
27
-
28
- `DSH_HOME` is honored. An explicit location can be supplied without changing the environment:
29
-
30
- ```sh
31
- npx odai-dsh-agent install --dsh-home /path/to/dsh-home
32
- ```
33
-
34
- Open a new DSH session and select `Odai` from the Agent preset picker. Existing sessions retain the preset they were composed with.
35
-
36
- In `dsh@0.1.0-rc.6`, the one-shot `--profile headless` driver creates a global agent directly and neither mounts nor accepts a session Agent preset. Automated Agent runs must create a Web session with `agentPreset: odai`; use the profile-wide Plugin for one-shot headless tasks.
37
-
38
- The installer copies through a mode-tightened staging directory and atomically publishes the preset. Updates verify every previously managed file first, refuse to overwrite local edits, and always change the composition generation key so new sessions in a running DSH process do not reuse stale runtime code.
39
-
40
- DSH classifies this as a `trust: user` preset. User presets have the same privileges as shell access, so install only reviewed package versions; the installer repeats this trust notice in both plain and JSON output.
41
-
42
- ## Responsibility models
43
-
44
- The Agent ships no planner, executor, or reviewer model mapping. It stays quiet when an unconfigured responsibility is not needed. If a real task gap needs one, Odai says which responsibility is missing, confirms that no route ran, and asks for the provider, model, and optional reasoning effort in natural language. For example:
45
-
46
- ```text
47
- 规划用 provider-x/model-plan,推理档 high。
48
- 执行模型设为 provider-x/model-y。
49
- 验收改用 provider-z/model-review,推理档 max。
50
- ```
51
-
52
- The controller calls `odai_routing_config` to persist that explicit choice. The user does not edit Agent files, YAML, or JSON and does not add trigger terms to later tasks. Mappings live in `$DSH_HOME/odai/routing.json`, outside the managed preset, so installer updates do not report them as drift. Changes apply from the next user turn. If reasoning effort is omitted, the target provider/model uses its own default rather than inheriting the source controller's setting. Plugin and Agent read the same store when both are deliberately present.
53
-
54
- Planner, executor, and reviewer are independent optional responsibilities. If any needed one has no mapping, high-impact work fails closed and remains read-only; lower-impact work continues only where it does not depend on the missing independent responsibility. Odai never chooses a model on the user's behalf.
55
-
56
- ## Status and uninstall
57
-
58
- ```sh
59
- npx odai-dsh-agent status
60
- npx odai-dsh-agent status --json
61
- npx odai-dsh-agent uninstall
62
- ```
63
-
64
- `status` reports `absent`, `installed`, or `drifted`. Update and uninstall fail closed when managed files were changed or unmanaged files were added. Uninstall also refuses while `agent-presets.default` still names `odai`; select another default first so the next session cannot fail on a missing preset.
65
-
66
- ## Plugin versus Agent
67
-
68
- Use only the surface that matches the desired scope:
69
-
70
- - `odai-dsh-plugin`: profile-wide governance for every preset in that profile.
71
- - `odai-dsh-agent`: selectable Odai governance for only sessions using this preset.
72
- - both: supported only for a deliberate combination of profile-wide and Agent-scoped behavior; normally redundant, so it is not the default recommendation.
73
-
74
- When both are deliberate, durable tool and route evidence is deduplicated and denials remain monotonic. Neither package installs or changes the provider-neutral `odai-cli`.
75
-
76
- ## Development
77
-
78
- `dsh/runtime/` and `skills/odai/` remain the only editable sources. `npm pack` generates the preset's `runtime/` and `skills/` directories and removes them immediately afterward:
79
-
80
- ```sh
81
- npm --prefix dsh/agent test
82
- npm --prefix dsh/agent run verify:dsh
83
- npm --prefix dsh/agent run pack:dry-run
84
- ```
85
-
86
- The DSH verification uses a temporary home and one isolated Web process. It creates standard and Odai sessions, proves the canonical prompt appears only for Odai, dispatches `odai_routing_config` through the live Odai session and checks its persisted mapping, and proves the child write guard does not leak into the standard preset.
1
+ # odai dsh agent
2
+
3
+ `odai-dsh-agent` installs a selectable, session-scoped Odai Agent preset for DeepSeek Harness (`dsh`). It is independent from the profile-wide `odai-dsh-plugin`: installing this package does not edit any DSH profile or activate a global bundle.
4
+
5
+ The installed preset is self-contained:
6
+
7
+ ```text
8
+ $DSH_HOME/.agent-presets/odai/
9
+ agent.cordis.yml
10
+ preset.yml
11
+ runtime/*.mjs
12
+ skills/odai/**
13
+ .odai-agent.json
14
+ ```
15
+
16
+ The composition preserves every capability row and setting from the `standard` agent surface in `@deepseek-ai/dsh@0.1.0-rc.6`, then adds the scoped Odai runtime in default `auto` mode. Release verification compares the complete derived composition against that exact DSH Standard source; a missing, added, reordered, or changed Standard row fails the probe. Host-owned persistence, sandbox, approval, registries, and base controller selection remain in the selected DSH profile. Ordinary requests stay on that controller. A complete contextual high-impact decision gap upgrades the same turn only when a planner mapping exists; the controller's durable `request/header` proves the actual route. Explicit independent planning/review requests still start a verified child when their mappings exist. `execute` remains an explicit all-delegation comparison mode. `observe` changes no model and starts no child; it injects a local evidence-and-decision protocol and makes an unresolved high-impact turn read-only.
17
+
18
+ ## Install
19
+
20
+ With DSH already installed, run the single Agent package command below. The package already contains the canonical skill and shared runtime; it does not require the Plugin or a separate skill installation:
21
+
22
+ ```sh
23
+ npx odai-dsh-agent install
24
+ ```
25
+
26
+ The installer checks `dsh -V` and currently requires exactly `0.1.0-rc.6`; a preset built from one developer-preview composition is not silently installed into another version.
27
+
28
+ `DSH_HOME` is honored. An explicit location can be supplied without changing the environment:
29
+
30
+ ```sh
31
+ npx odai-dsh-agent install --dsh-home /path/to/dsh-home
32
+ ```
33
+
34
+ Open a new DSH session and select `Odai` from the Agent preset picker. Existing sessions retain the preset they were composed with.
35
+
36
+ In `dsh@0.1.0-rc.6`, the one-shot `--profile headless` driver creates a global agent directly and neither mounts nor accepts a session Agent preset. Automated Agent runs must create a Web session with `agentPreset: odai`; use the profile-wide Plugin for one-shot headless tasks.
37
+
38
+ The installer copies through a mode-tightened staging directory and atomically publishes the preset. Updates verify every previously managed file first, refuse to overwrite local edits, and always change the composition generation key so new sessions in a running DSH process do not reuse stale runtime code.
39
+
40
+ DSH classifies this as a `trust: user` preset. User presets have the same privileges as shell access, so install only reviewed package versions; the installer repeats this trust notice in both plain and JSON output.
41
+
42
+ ## Responsibility models
43
+
44
+ The Agent ships no planner, executor, or reviewer model mapping. It stays quiet when an unconfigured responsibility is not needed. If a real task gap needs one, Odai says which responsibility is missing, confirms that no route ran, and asks for the provider, model, and optional reasoning effort in natural language. For example:
45
+
46
+ ```text
47
+ 规划用 provider-x/model-plan,推理档 high。
48
+ 执行模型设为 provider-x/model-y。
49
+ 验收改用 provider-z/model-review,推理档 max。
50
+ ```
51
+
52
+ The controller calls `odai_routing_config` to persist that explicit choice. The user does not edit Agent files, YAML, or JSON and does not add trigger terms to later tasks. Mappings live in `$DSH_HOME/odai/routing.json`, outside the managed preset, so installer updates do not report them as drift. Changes apply from the next user turn. If reasoning effort is omitted, the target provider/model uses its own default rather than inheriting the source controller's setting. Plugin and Agent read the same store when both are deliberately present.
53
+
54
+ Planner, executor, and reviewer are independent optional responsibilities. If any needed one has no mapping, high-impact work fails closed and remains read-only; lower-impact work continues only where it does not depend on the missing independent responsibility. Odai never chooses a model on the user's behalf.
55
+
56
+ ## Status and uninstall
57
+
58
+ ```sh
59
+ npx odai-dsh-agent status
60
+ npx odai-dsh-agent status --json
61
+ npx odai-dsh-agent uninstall
62
+ ```
63
+
64
+ `status` reports `absent`, `installed`, or `drifted`. Update and uninstall fail closed when managed files were changed or unmanaged files were added. Uninstall also refuses while `agent-presets.default` still names `odai`; select another default first so the next session cannot fail on a missing preset.
65
+
66
+ ## Plugin versus Agent
67
+
68
+ Use only the surface that matches the desired scope:
69
+
70
+ - `odai-dsh-plugin`: profile-wide governance for every preset in that profile.
71
+ - `odai-dsh-agent`: selectable Odai governance for only sessions using this preset.
72
+ - both: supported only for a deliberate combination of profile-wide and Agent-scoped behavior; normally redundant, so it is not the default recommendation.
73
+
74
+ When both are deliberate, durable tool and route evidence is deduplicated and denials remain monotonic. Neither package installs or changes the provider-neutral `odai-cli`.
75
+
76
+ ## Development
77
+
78
+ `dsh/runtime/` and `skills/odai/` remain the only editable sources. `npm pack` generates the preset's `runtime/` and `skills/` directories and removes them immediately afterward:
79
+
80
+ ```sh
81
+ npm --prefix dsh/agent test
82
+ npm --prefix dsh/agent run verify:dsh
83
+ npm --prefix dsh/agent run pack:dry-run
84
+ ```
85
+
86
+ The DSH verification uses a temporary home and one isolated Web process. It creates standard and Odai sessions, proves the canonical prompt appears only for Odai, dispatches `odai_routing_config` through the live Odai session and checks its persisted mapping, and proves the child write guard does not leak into the standard preset.
@@ -1,87 +1,86 @@
1
- #!/usr/bin/env node
2
-
3
- import { execFileSync } from "node:child_process";
4
-
5
- import {
6
- inspectAgentInstallation,
7
- installAgentPreset,
8
- SUPPORTED_DSH_VERSION,
9
- uninstallAgentPreset,
10
- } from "../src/installer.mjs";
11
-
12
- const HELP = `Usage: odai-dsh-agent <command> [options]
13
-
14
- Commands:
15
- install Install or update the managed Odai preset
16
- status Inspect the managed Odai preset
17
- uninstall Remove the preset when its managed files are unchanged
18
-
19
- Options:
20
- --dsh-home <path> Override DSH_HOME
21
- --json Print JSON
22
- -h, --help Show this help
23
- `;
24
-
25
- try {
26
- const args = parseArgs(process.argv.slice(2));
27
- if (args.help) {
28
- process.stdout.write(HELP);
29
- } else if (args.command === "install") {
30
- assertDshVersion();
31
- print(await installAgentPreset({ dshHome: args.dshHome }), args.json);
32
- } else if (args.command === "status") {
33
- const result = await inspectAgentInstallation({ dshHome: args.dshHome });
34
- print(result, args.json);
35
- if (result.status === "drifted") process.exitCode = 2;
36
- } else if (args.command === "uninstall") {
37
- print(await uninstallAgentPreset({ dshHome: args.dshHome }), args.json);
38
- } else {
39
- throw new Error("a command is required\n\n" + HELP);
40
- }
41
- } catch (error) {
42
- process.stderr.write(`odai-dsh-agent: ${error instanceof Error ? error.message : String(error)}\n`);
43
- process.exitCode = 1;
44
- }
45
-
46
- function assertDshVersion() {
47
- const dsh = process.env.DSH_BIN ?? "dsh";
48
- let actual;
49
- try {
50
- actual = execFileSync(dsh, ["-V"], { encoding: "utf8" }).trim();
51
- } catch (error) {
52
- throw new Error(`cannot run ${dsh} -V; install DSH ${SUPPORTED_DSH_VERSION} before installing the preset`);
53
- }
54
- if (actual !== SUPPORTED_DSH_VERSION) {
55
- throw new Error(`unsupported DSH version ${actual || "<empty>"}; expected ${SUPPORTED_DSH_VERSION}`);
56
- }
57
- }
58
-
59
- function parseArgs(argv) {
60
- const parsed = { command: undefined, dshHome: undefined, json: false, help: false };
61
- for (let index = 0; index < argv.length; index += 1) {
62
- const arg = argv[index];
63
- if (arg === "-h" || arg === "--help") parsed.help = true;
64
- else if (arg === "--json") parsed.json = true;
65
- else if (arg === "--dsh-home") parsed.dshHome = argv[++index];
66
- else if (!parsed.command && ["install", "status", "uninstall"].includes(arg)) parsed.command = arg;
67
- else throw new Error(`unknown argument: ${arg}`);
68
- }
69
- if (parsed.dshHome !== undefined && (typeof parsed.dshHome !== "string" || parsed.dshHome.trim() === "")) {
70
- throw new Error("--dsh-home requires a non-empty path");
71
- }
72
- return parsed;
73
- }
74
-
75
- function print(result, json) {
76
- if (json) {
77
- process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
78
- return;
79
- }
80
- if (result.status) {
81
- process.stdout.write(`${result.status}: ${result.target}\n`);
82
- for (const issue of result.issues ?? []) process.stdout.write(`- ${issue}\n`);
83
- return;
84
- }
85
- process.stdout.write(`${result.operation}: ${result.target}\n`);
86
- if (result.security) process.stdout.write(`security: ${result.security}\n`);
87
- }
1
+ #!/usr/bin/env node
2
+
3
+ import { readDshVersion } from "../src/dsh-version.mjs";
4
+ import {
5
+ inspectAgentInstallation,
6
+ installAgentPreset,
7
+ SUPPORTED_DSH_VERSION,
8
+ uninstallAgentPreset,
9
+ } from "../src/installer.mjs";
10
+
11
+ const HELP = `Usage: odai-dsh-agent <command> [options]
12
+
13
+ Commands:
14
+ install Install or update the managed Odai preset
15
+ status Inspect the managed Odai preset
16
+ uninstall Remove the preset when its managed files are unchanged
17
+
18
+ Options:
19
+ --dsh-home <path> Override DSH_HOME
20
+ --json Print JSON
21
+ -h, --help Show this help
22
+ `;
23
+
24
+ try {
25
+ const args = parseArgs(process.argv.slice(2));
26
+ if (args.help) {
27
+ process.stdout.write(HELP);
28
+ } else if (args.command === "install") {
29
+ assertDshVersion();
30
+ print(await installAgentPreset({ dshHome: args.dshHome }), args.json);
31
+ } else if (args.command === "status") {
32
+ const result = await inspectAgentInstallation({ dshHome: args.dshHome });
33
+ print(result, args.json);
34
+ if (result.status === "drifted") process.exitCode = 2;
35
+ } else if (args.command === "uninstall") {
36
+ print(await uninstallAgentPreset({ dshHome: args.dshHome }), args.json);
37
+ } else {
38
+ throw new Error("a command is required\n\n" + HELP);
39
+ }
40
+ } catch (error) {
41
+ process.stderr.write(`odai-dsh-agent: ${error instanceof Error ? error.message : String(error)}\n`);
42
+ process.exitCode = 1;
43
+ }
44
+
45
+ function assertDshVersion() {
46
+ const dsh = process.env.DSH_BIN ?? "dsh";
47
+ let actual;
48
+ try {
49
+ actual = readDshVersion({ dsh });
50
+ } catch (error) {
51
+ throw new Error(`cannot run ${dsh} -V; install DSH ${SUPPORTED_DSH_VERSION} before installing the preset`);
52
+ }
53
+ if (actual !== SUPPORTED_DSH_VERSION) {
54
+ throw new Error(`unsupported DSH version ${actual || "<empty>"}; expected ${SUPPORTED_DSH_VERSION}`);
55
+ }
56
+ }
57
+
58
+ function parseArgs(argv) {
59
+ const parsed = { command: undefined, dshHome: undefined, json: false, help: false };
60
+ for (let index = 0; index < argv.length; index += 1) {
61
+ const arg = argv[index];
62
+ if (arg === "-h" || arg === "--help") parsed.help = true;
63
+ else if (arg === "--json") parsed.json = true;
64
+ else if (arg === "--dsh-home") parsed.dshHome = argv[++index];
65
+ else if (!parsed.command && ["install", "status", "uninstall"].includes(arg)) parsed.command = arg;
66
+ else throw new Error(`unknown argument: ${arg}`);
67
+ }
68
+ if (parsed.dshHome !== undefined && (typeof parsed.dshHome !== "string" || parsed.dshHome.trim() === "")) {
69
+ throw new Error("--dsh-home requires a non-empty path");
70
+ }
71
+ return parsed;
72
+ }
73
+
74
+ function print(result, json) {
75
+ if (json) {
76
+ process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
77
+ return;
78
+ }
79
+ if (result.status) {
80
+ process.stdout.write(`${result.status}: ${result.target}\n`);
81
+ for (const issue of result.issues ?? []) process.stdout.write(`- ${issue}\n`);
82
+ return;
83
+ }
84
+ process.stdout.write(`${result.operation}: ${result.target}\n`);
85
+ if (result.security) process.stdout.write(`security: ${result.security}\n`);
86
+ }
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "odai-dsh-agent",
3
- "version": "0.0.2",
4
- "description": "完整继承 DSH Standard 全部能力的 Odai Agent preset。",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/orziz/odai.git",
9
- "directory": "dsh/agent"
10
- },
11
- "homepage": "https://github.com/orziz/odai#readme",
12
- "bugs": {
13
- "url": "https://github.com/orziz/odai/issues"
14
- },
15
- "type": "module",
16
- "main": "./src/installer.mjs",
17
- "exports": {
18
- ".": "./src/installer.mjs",
19
- "./package.json": "./package.json"
20
- },
21
- "bin": {
22
- "odai-dsh-agent": "./bin/odai-dsh-agent.mjs"
23
- },
24
- "publishConfig": {
25
- "registry": "https://registry.npmjs.org/",
26
- "access": "public"
27
- },
28
- "files": [
29
- "bin",
30
- "src",
31
- "scripts/verify-agent-load.mjs",
32
- "preset",
33
- "README.md",
34
- "LICENSE"
35
- ],
36
- "scripts": {
37
- "check": "find bin src scripts tests -name '*.mjs' -print0 | xargs -0 -n1 node --check",
38
- "prepare:artifact": "node ../../scripts/package-odai-artifact.mjs prepare --skill-root preset/odai/skills --runtime-root preset/odai/runtime",
39
- "clean:artifact": "node ../../scripts/package-odai-artifact.mjs clean --skill-root preset/odai/skills --runtime-root preset/odai/runtime",
40
- "prepare": "npm run prepare:artifact",
41
- "prepack": "node ../../scripts/validate-odai-skill.mjs",
42
- "postpack": "npm run clean:artifact",
43
- "pack:dry-run": "node ../../scripts/run-package-pack.mjs --clean preset/odai/runtime --clean preset/odai/skills -- --dry-run",
44
- "test": "node --test ./tests/*.test.mjs",
45
- "verify:dsh": "node ./scripts/verify-agent-load.mjs"
46
- },
47
- "dependencies": {
48
- "yaml": "^2.8.1"
49
- },
50
- "peerDependencies": {
51
- "@deepseek-ai/dsh": "0.1.0-rc.6"
52
- },
53
- "peerDependenciesMeta": {
54
- "@deepseek-ai/dsh": {
55
- "optional": true
56
- }
57
- },
58
- "engines": {
59
- "node": ">=20"
60
- },
61
- "keywords": [
62
- "agent",
63
- "deepseek-harness",
64
- "dsh",
65
- "odai",
66
- "preset"
67
- ]
68
- }
1
+ {
2
+ "name": "odai-dsh-agent",
3
+ "version": "0.0.3",
4
+ "description": "完整继承 DSH Standard 全部能力的 Odai Agent preset。",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/orziz/odai.git",
9
+ "directory": "dsh/agent"
10
+ },
11
+ "homepage": "https://github.com/orziz/odai#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/orziz/odai/issues"
14
+ },
15
+ "type": "module",
16
+ "main": "./src/installer.mjs",
17
+ "exports": {
18
+ ".": "./src/installer.mjs",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "bin": {
22
+ "odai-dsh-agent": "./bin/odai-dsh-agent.mjs"
23
+ },
24
+ "publishConfig": {
25
+ "registry": "https://registry.npmjs.org/",
26
+ "access": "public"
27
+ },
28
+ "files": [
29
+ "bin",
30
+ "src",
31
+ "scripts/verify-agent-load.mjs",
32
+ "preset",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "check": "find bin src scripts tests -name '*.mjs' -print0 | xargs -0 -n1 node --check",
38
+ "prepare:artifact": "node ../../scripts/package-odai-artifact.mjs prepare --skill-root preset/odai/skills --runtime-root preset/odai/runtime",
39
+ "clean:artifact": "node ../../scripts/package-odai-artifact.mjs clean --skill-root preset/odai/skills --runtime-root preset/odai/runtime",
40
+ "prepare": "npm run prepare:artifact",
41
+ "prepack": "node ../../scripts/validate-odai-skill.mjs",
42
+ "postpack": "npm run clean:artifact",
43
+ "pack:dry-run": "node ../../scripts/run-package-pack.mjs --clean preset/odai/runtime --clean preset/odai/skills -- --dry-run",
44
+ "test": "node --test ./tests/*.test.mjs",
45
+ "verify:dsh": "node ./scripts/verify-agent-load.mjs"
46
+ },
47
+ "dependencies": {
48
+ "yaml": "^2.8.1"
49
+ },
50
+ "peerDependencies": {
51
+ "@deepseek-ai/dsh": "0.1.0-rc.6"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "@deepseek-ai/dsh": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "engines": {
59
+ "node": ">=20"
60
+ },
61
+ "keywords": [
62
+ "agent",
63
+ "deepseek-harness",
64
+ "dsh",
65
+ "odai",
66
+ "preset"
67
+ ]
68
+ }