@shundoo-ai/dsh-cosmic 1.0.18 → 1.0.19

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/cordis.patch.yml CHANGED
@@ -33,11 +33,13 @@
33
33
  # ── identity ────────────────────────────────────────────────────────────────
34
34
 
35
35
  # The preset's own persona, shadowing the deployment default for this agent.
36
- # `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
36
+ # Only `{{model}}` is a registered prompt variable (dsh 0.2.1 registers exactly
37
+ # `provider` and `model`); `{{cwd}}` was REMOVED upstream — an unregistered name
38
+ # fails the whole turn with `unknown prompt variable`, so do not reintroduce it.
39
+ # The working directory still reaches the model through the runtime context.
37
40
  - id: persona
38
41
  name: '@deepseek-ai/dsh-persona'
39
42
  config:
40
- suffix: Your working directory is {{cwd}}.
41
43
  prefix: >-
42
44
  You are 苍穹助手 (Cosmic Assistant), the 金蝶云星空 (Kingdee Cloud Cosmic) 开发与数据分析 agent, powered by the {{model}} model. Two capabilities: (1) 苍穹开发 — build and modify 苍穹 apps, menus, forms, entities, fields, plugins, APIs, workflows, and scheduling; follow the cosmic-dev-best-practices and app-build skills for that work. (2) 数据分析 — answer business-data questions through the 苍穹 OpenAPI, analyze with Python (pandas/plotly), and deliver markdown tables in chat plus interactive HTML reports; load the erp-analysis skill before any data query (its SKILL.md is the authority for the workflow and report format). Match the user's intent to the right capability and load the appropriate skill.
43
45
 
@@ -46,6 +48,10 @@
46
48
  config:
47
49
  maxBytes: 65536
48
50
 
51
+ # Current time context (official standard row): lets the model see the clock.
52
+ - id: time-context
53
+ name: '@deepseek-ai/dsh-time-context'
54
+
49
55
  # ── shell ───────────────────────────────────────────────────────────────────
50
56
 
51
57
  # `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
@@ -87,6 +93,10 @@
87
93
  - id: tool-jobs
88
94
  name: '@deepseek-ai/dsh-tool-jobs'
89
95
 
96
+ # Scheduling (official standard row): the model-facing schedule tool.
97
+ - id: tool-schedule
98
+ name: '@deepseek-ai/dsh-tool-schedule'
99
+
90
100
  # ── skills ──────────────────────────────────────────────────────────────────
91
101
 
92
102
  # The skill REGISTRY lives in the host composition and is layered per scope:
@@ -128,7 +138,7 @@
128
138
  name: '@deepseek-ai/dsh-plan-mode'
129
139
  config:
130
140
  section: |
131
- You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
141
+ You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
132
142
 
133
143
  Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
134
144
 
@@ -200,40 +210,16 @@
200
210
  provider: spawn
201
211
  toolName: subagent
202
212
  modelSelectionSettings: true
203
- backgroundMode: continuable
204
213
 
205
214
  # Fork omits model selection so provider/model stay equal to the parent and
206
- # the inherited history remains eligible for KV Cache reuse. This preset
207
- # keeps fork continuable; parent and child inherit the same messaging tool,
208
- # while the parent id and return guidance follow the inherited history.
215
+ # the inherited history remains eligible for KV Cache reuse. Parent and child
216
+ # inherit the same messaging tool, while the parent id and return guidance
217
+ # follow the inherited history.
209
218
  - id: tool-subagent-fork
210
219
  name: '@deepseek-ai/dsh-tool-subagent'
211
220
  config:
212
221
  provider: fork
213
222
  toolName: subagent_fork
214
- backgroundMode: continuable
215
-
216
- # Production dsh does not install these optional providers. Install the
217
- # matching Bundle in this Profile and restart the Host, then copy this
218
- # preset and remove `disabled` from the matching tool row. Host availability
219
- # alone grants no tool.
220
- - id: tool-subagent-codex
221
- name: '@deepseek-ai/dsh-tool-subagent'
222
- disabled: true
223
- config:
224
- provider: codex
225
- toolName: subagent_codex
226
- backgroundMode: one-shot
227
- maxDepth: provider-managed
228
-
229
- - id: tool-subagent-claude-code
230
- name: '@deepseek-ai/dsh-tool-subagent'
231
- disabled: true
232
- config:
233
- provider: claude-code
234
- toolName: subagent_claude_code
235
- backgroundMode: one-shot
236
- maxDepth: provider-managed
237
223
 
238
224
  - id: workflow-ptc
239
225
  name: '@deepseek-ai/dsh-workflow-ptc'
@@ -243,19 +229,6 @@
243
229
  - id: tool-workflow
244
230
  name: '@deepseek-ai/dsh-tool-workflow'
245
231
 
246
- # Off by default with the base row it mirrors: the tool description
247
- # restricts `ralph` to runs the human explicitly asked for, and completion
248
- # is a worker self-report, not an independent evaluation. Preset files take
249
- # no patches, so a session that wants it duplicates this preset under a new
250
- # id and drops `disabled`; the shipped root shadows a copy that reuses this
251
- # id.
252
- - id: tool-ralph
253
- name: '@deepseek-ai/dsh-tool-ralph'
254
- disabled: true
255
- config:
256
- subagentProvider: spawn
257
- maxRounds: 64
258
-
259
232
  # ── remaining model-facing rows ─────────────────────────────────────────────
260
233
 
261
234
  - id: tool-ask-user
@@ -280,3 +253,8 @@
280
253
  - id: tool-plugin-manager
281
254
  name: '@deepseek-ai/dsh-plugin-manager/tools'
282
255
  disabled: true
256
+
257
+ # Plugin market (official standard row). Off by default, like the row above.
258
+ - id: tool-plugin-market
259
+ name: '@deepseek-ai/dsh-plugin-market/tools'
260
+ disabled: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shundoo-ai/dsh-cosmic",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "苍穹助手:金蝶云苍穹ERP的开发与数据分析,涵盖表单元数据建模、插件开发与热部署、数据可视化报告。",
5
5
  "keywords": [
6
6
  "dsh",
@@ -22,7 +22,11 @@
22
22
  # - 工作区专属技能放 <工作区>/.dsh/skills 或 .agents/skills(原生自动扫描叠加),
23
23
  # 不要写进本文件。
24
24
 
25
- # persona:工作区 ACP 会话的助手身份({{model}}/{{cwd}} 启动时自动替换,必须保留)
25
+ # persona:工作区 ACP 会话的助手身份({{model}} 启动时自动替换,必须保留)
26
+ #
27
+ # ⚠️ 不要用 {{cwd}}:dsh 0.2.1 起注册的提示词变量只有 provider / model,
28
+ # 未注册的变量会让**整轮**报 `unknown prompt variable`(不是静默忽略)。
29
+ # 工作目录由运行时上下文注入,无需在 persona 里重复。
26
30
  #
27
31
  # ⚠️ 键名必须是 personaPrefix / personaSuffix —— dsh-system-prompt 的 Config 是
28
32
  # z.object({...})(**无 .strict()**)⇒ 写错的键会被【静默剥离】、不报错也不生效。
@@ -32,7 +36,6 @@
32
36
  config:
33
37
  personaPrefix: >-
34
38
  You are 苍穹助手 (Cosmic Assistant), the 金蝶云星空 (Kingdee Cloud Cosmic) 开发与数据分析 agent, powered by the {{model}} model. Two capabilities: (1) 苍穹开发 — build and modify 苍穹 apps, menus, forms, entities, fields, plugins, APIs, workflows, and scheduling; follow the cosmic-dev-best-practices and app-build skills for that work. (2) 数据分析 — answer business-data questions through the 苍穹 OpenAPI, analyze with Python (pandas/plotly), and deliver markdown tables in chat plus interactive HTML reports; load the erp-analysis skill before any data query (its SKILL.md is the authority for the workflow and report format). Match the user's intent to the right capability and load the appropriate skill.
35
- personaSuffix: Your working directory is {{cwd}}.
36
39
 
37
40
  # 技能常驻目录:cosmic 技能基座($DSH_HOME/.agent-presets/cosmic/skills,动态解析)
38
41
  - id: skill-filesystem