@carljia/omd-dsh 0.1.7 → 0.1.8

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.
@@ -1,55 +1,50 @@
1
- /**
2
- * @module @carljia/omd-dsh/ulw
3
- *
4
- * omd-ulw: human-facing `/ulw` command — the "ultrawork" trigger. It arms a
5
- * goal for the task; goal auto-continuation then drives the agent to
6
- * completion without further input.
7
- */
8
- /** Cordis plugin name. */
9
- const name = "omd-ulw";
10
- /** The goal domain is already required by tool-goal in the same preset. */
11
- const inject = ["goals"];
12
- /** Execute one /ulw invocation through the goal domain. */
1
+ // lib/ulw.js
2
+ var name = "omd-ulw";
3
+ var inject = ["goals"];
13
4
  function executeUlw(ctx, invocation) {
14
- const task = invocation.rawInput.trim();
15
- if (task.length === 0) {
16
- return {
17
- kind: "error",
18
- text: "Usage: /ulw <task> — arm a goal and work on it autonomously until done.",
19
- };
20
- }
21
- try {
22
- const current = ctx.goals.get(invocation.agent);
23
- if (current !== undefined && current.phase !== "complete") {
24
- return {
25
- kind: "error",
26
- text: `A goal is already ${current.phase}. Run /goal clear first, then /ulw <task>.`,
27
- };
28
- }
29
- ctx.goals.create(invocation.agent, { objective: task });
30
- return {
31
- kind: "success",
32
- text: `Ultrawork armed — working to completion.\nObjective: ${task}`,
33
- };
34
- }
35
- catch (error) {
36
- return {
37
- kind: "error",
38
- text: `ulw failed: ${error instanceof Error ? error.message : String(error)}`,
39
- };
5
+ const task = invocation.rawInput.trim();
6
+ if (task.length === 0) {
7
+ return {
8
+ kind: "error",
9
+ text: "Usage: /ulw <task> \u2014 arm a goal and work on it autonomously until done."
10
+ };
11
+ }
12
+ try {
13
+ const current = ctx.goals.get(invocation.agent);
14
+ if (current !== void 0 && current.phase !== "complete") {
15
+ return {
16
+ kind: "error",
17
+ text: `A goal is already ${current.phase}. Run /goal clear first, then /ulw <task>.`
18
+ };
40
19
  }
20
+ ctx.goals.create(invocation.agent, { objective: task });
21
+ return {
22
+ kind: "success",
23
+ text: `Ultrawork armed \u2014 working to completion.
24
+ Objective: ${task}`
25
+ };
26
+ } catch (error) {
27
+ return {
28
+ kind: "error",
29
+ text: `ulw failed: ${error instanceof Error ? error.message : String(error)}`
30
+ };
31
+ }
41
32
  }
42
33
  function apply(ctx) {
43
- ctx.inject(["commands"], (commandCtx) => {
44
- commandCtx.commands.register({
45
- name: "ulw",
46
- description: "ultrawork: arm a goal for a task and work on it autonomously until done",
47
- input: {
48
- hint: "<task>",
49
- images: false,
50
- },
51
- handler: (invocation) => executeUlw(ctx, invocation),
52
- });
34
+ ctx.inject(["commands"], (commandCtx) => {
35
+ commandCtx.commands.register({
36
+ name: "ulw",
37
+ description: "ultrawork: arm a goal for a task and work on it autonomously until done",
38
+ input: {
39
+ hint: "<task>",
40
+ images: false
41
+ },
42
+ handler: (invocation) => executeUlw(ctx, invocation)
53
43
  });
44
+ });
54
45
  }
55
- export { apply, inject, name };
46
+ export {
47
+ apply,
48
+ inject,
49
+ name
50
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carljia/omd-dsh",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "OMD 理念的 DeepSeek Harness 插件:模式能力边界 + 按模式配模型 + tier 差异化子代理委派",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -60,16 +60,17 @@
60
60
  "license": "MIT",
61
61
  "peerDependencies": {
62
62
  "@deepseek-ai/cordis": "^4.0.1",
63
- "@deepseek-ai/schemastery": "^3.18.1",
63
+ "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
64
64
  "@deepseek-ai/dsh-scope": "^0.1.1-rc.2",
65
65
  "@deepseek-ai/dsh-subagent": "^0.1.1-rc.2",
66
+ "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
66
67
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
67
- "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
68
- "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2"
68
+ "@deepseek-ai/schemastery": "^3.18.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@types/node": "^24.0.0",
72
71
  "@deepseek-ai/schemastery": "^3.18.1",
72
+ "@types/node": "^24.0.0",
73
+ "esbuild": "^0.28.2",
73
74
  "typescript": "^5.6.0",
74
75
  "vitest": "^3.0.0"
75
76
  },