dsh-embedded-workbench 0.8.12 → 0.9.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.en-US.md +29 -9
- package/README.md +29 -9
- package/cordis.patch.yml +4 -0
- package/lib/index.js +200 -211
- package/lib/types/index.d.ts +53 -51
- package/package.json +13 -9
- package/skills/embedded-workbench/SKILL.md +63 -78
- package/skills/embedded-workbench/references/platform-tool-mapping.md +59 -22
- package/skills/embedded-workbench/references/proactive-suggestions.md +27 -0
- package/src/index.ts +20 -31
package/lib/index.js
CHANGED
|
@@ -1,215 +1,204 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* embedded-workbench — DeepSeek Harness native plugin for the Embedded
|
|
3
|
-
* Workbench toolbox.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
//
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
1
|
+
/**
|
|
2
|
+
* embedded-workbench — DeepSeek Harness native plugin for the Embedded
|
|
3
|
+
* Workbench toolbox. The 8 skills ship in this package's `skills/` directory
|
|
4
|
+
* and are registered at apply time into dsh's `ctx.skills` registry through
|
|
5
|
+
* the standard filesystem provider, so they appear in every session catalog
|
|
6
|
+
* without a manual copy step. The plugin also folds a short gate text into the
|
|
7
|
+
* first model step of every agent session, mirroring the SessionStart hook the
|
|
8
|
+
* Claude Code plugin installs.
|
|
9
|
+
*
|
|
10
|
+
* Injection listens on agent/pre-step and appends the gate to the FIRST
|
|
11
|
+
* model step that runs, once per session (guarded by the session's durable
|
|
12
|
+
* history). Session-start inbox injection was dropped: a blank-session preset
|
|
13
|
+
* switch (agentPreset.select -> recompose) can clear the inbox before the
|
|
14
|
+
* first step, losing the gate for the whole session. The pre-step decision is
|
|
15
|
+
* the durable path - anchored/bootstrap presets that strip first-step injected
|
|
16
|
+
* reminders (skill catalog, AGENTS.md, gate plugins) simply defer this message
|
|
17
|
+
* to the first step after their promotion, and the history guard re-injects it
|
|
18
|
+
* there. The default gate text is the dsh-native adaptation of
|
|
19
|
+
* `hooks/session-start-content.md`: the behavior rules stay in sync (the Plan
|
|
20
|
+
* Verification Gate and the context-budget rule), while presentation is adapted
|
|
21
|
+
* to dsh's native skill catalog — no roster table (the model sees skills in its
|
|
22
|
+
* catalog) and no install instructions (those live in `.dsh/INSTALL.md`). The
|
|
23
|
+
* payload is deliberately small: it carries the verification gate and the
|
|
24
|
+
* budget rule, not the 1% Rule / Red Flags enforcement scaffolding, which
|
|
25
|
+
* measurably pushes capable models into rigid phases and unnecessary fan-out.
|
|
26
|
+
* Deployments override via Config.
|
|
27
|
+
*
|
|
28
|
+
* @module embedded-workbench-dsh
|
|
29
|
+
*/
|
|
30
|
+
import { fileURLToPath } from 'node:url';
|
|
31
|
+
import z from '@deepseek-ai/schemastery';
|
|
32
|
+
import { createUserMessage } from '@deepseek-ai/dsh-llm';
|
|
33
|
+
import { FileSystemSkillProvider } from '@deepseek-ai/dsh-skill-filesystem';
|
|
34
|
+
export const name = 'embedded-workbench';
|
|
35
|
+
// Skills are contributed through the registry service, which dsh-base always
|
|
36
|
+
// mounts before bundle rows such as this one apply.
|
|
37
|
+
export const inject = ['skills'];
|
|
38
|
+
// Absolute path of the package's shipped skills directory. `lib/index.js`
|
|
39
|
+
// lives one level below the package root, so `../skills` from the module URL
|
|
40
|
+
// lands on `<package>/skills` regardless of where the package was installed.
|
|
41
|
+
const SKILLS_DIR = fileURLToPath(new URL('../skills', import.meta.url));
|
|
42
|
+
const GATE_PLUGIN_ID = 'embedded-workbench';
|
|
43
|
+
/** Producer-owned message source kind declared in `MessageSourceMap` above. */
|
|
44
|
+
const GATE_SOURCE_KIND = 'plugin:embedded-workbench';
|
|
43
45
|
const DEFAULT_GATE_CONTENT = `<EXTREMELY_IMPORTANT>
|
|
44
|
-
Plugin embedded-workbench is active
|
|
46
|
+
Plugin embedded-workbench is active: embedded C/C++ firmware development skills are in your skill catalog. Load the one whose "Use when" matches before substantial work, with the skill tool.
|
|
45
47
|
|
|
46
|
-
**
|
|
48
|
+
**Plan Verification Gate**: before calling exit_plan_mode (or presenting a plan for approval), load the logicprobe skill — or the built-in fact-check skill when logicprobe is not installed — and append a "## Plan Verification" block to the plan. If you verify with neither, tell the user the plan is unverified before asking for approval; a silent skip is not an option. "This change is too small to check" and "I already read the code, the paths are right" are the two rationalizations this gate exists to catch.
|
|
47
49
|
|
|
48
|
-
**
|
|
50
|
+
**Context budget**: no token meter is visible to you, so never guess one. Act on what you can see — a pruned or spilled tool result means stop pulling it in whole, and a compaction checkpoint means move durable state into files. When a large step (many sources, a long sweep, several independent areas) shows no such signal, ask the user what to spend context on rather than deciding silently. If nobody can answer, take the reversible option and say so. When you do delegate, prefer \`subagent_fork\` over \`subagent\` if the sub-agent needs context you already built — its summary still lands here.
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
//
|
|
161
|
-
//
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
function gateInHistory(session) {
|
|
204
|
-
return readSessionEvents(session).some((event) => {
|
|
205
|
-
if (event.type !== 'user/message')
|
|
206
|
-
return false;
|
|
207
|
-
const source = event.data?.source;
|
|
208
|
-
if (source === undefined)
|
|
209
|
-
return false;
|
|
210
|
-
// The v4 producer-owned kind, plus the pre-v4 wrapper this bundle wrote
|
|
211
|
-
// before DSH 0.1.7-alpha.1 retired it.
|
|
212
|
-
return source.kind === GATE_SOURCE_KIND
|
|
213
|
-
|| (source.kind === 'plugin' && source.plugin === GATE_PLUGIN_ID);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
52
|
+
To load the workflows and engineering policies behind these skills: load the embedded-workbench skill.
|
|
53
|
+
</EXTREMELY_IMPORTANT>`;
|
|
54
|
+
export const Config = z.object({
|
|
55
|
+
// On by default, but deliberately small: the payload carries the verification
|
|
56
|
+
// gate and the context-budget rule only, so leaving it on costs a few hundred
|
|
57
|
+
// tokens once per session rather than the ~900 of the previous payload.
|
|
58
|
+
enabled: z.boolean().default(true),
|
|
59
|
+
gateContent: z.string().default(DEFAULT_GATE_CONTENT),
|
|
60
|
+
});
|
|
61
|
+
function gateMessage(text) {
|
|
62
|
+
return createUserMessage({
|
|
63
|
+
content: [{ type: 'text', text }],
|
|
64
|
+
// `form` omitted — an undeclared context is the documented default.
|
|
65
|
+
source: { kind: GATE_SOURCE_KIND },
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function readSessionEvents(session) {
|
|
69
|
+
const source = session;
|
|
70
|
+
if (typeof source.snapshotEvents === 'function') {
|
|
71
|
+
const snapshot = source.snapshotEvents();
|
|
72
|
+
if (Array.isArray(snapshot))
|
|
73
|
+
return snapshot;
|
|
74
|
+
}
|
|
75
|
+
if (Array.isArray(source.events))
|
|
76
|
+
return source.events;
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Model-visible catalog entry (cordis_inspect_list / cordis_inspect_query):
|
|
81
|
+
* lets the model read this plugin's runtime status without guessing. Mirrors
|
|
82
|
+
* the registration pattern of the official dsh-tool-cordis host providers.
|
|
83
|
+
*/
|
|
84
|
+
function inspectProvider(config) {
|
|
85
|
+
return {
|
|
86
|
+
manifest: {
|
|
87
|
+
id: 'embedded-workbench',
|
|
88
|
+
description: 'Session-start gate injection for the Embedded Workbench toolbox — folds the Plan Verification Gate and the context-budget rule into the first model step of every agent session.',
|
|
89
|
+
methods: [
|
|
90
|
+
{
|
|
91
|
+
name: 'status',
|
|
92
|
+
description: 'Read whether the gate injection is active and how large the injected gate text is.',
|
|
93
|
+
inputSchema: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
properties: {},
|
|
96
|
+
additionalProperties: false,
|
|
97
|
+
},
|
|
98
|
+
outputSchema: {
|
|
99
|
+
type: 'object',
|
|
100
|
+
description: 'Gate-injection plugin status.',
|
|
101
|
+
properties: {
|
|
102
|
+
enabled: { type: 'boolean', description: 'Whether the gate folds into the first model step.' },
|
|
103
|
+
gateContentLength: { type: 'integer', description: 'Length in characters of the injected gate text.' },
|
|
104
|
+
},
|
|
105
|
+
required: ['enabled', 'gateContentLength'],
|
|
106
|
+
additionalProperties: false,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
query: async (method) => {
|
|
112
|
+
if (method === 'status') {
|
|
113
|
+
return {
|
|
114
|
+
enabled: config.enabled,
|
|
115
|
+
gateContentLength: config.gateContent.length,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export function apply(ctx, config) {
|
|
123
|
+
// Catalog visibility is optional: register only when the inspect registry
|
|
124
|
+
// service is mounted, so headless assemblies without it keep the gate
|
|
125
|
+
// injection working. The registry may be provided AFTER this row applies
|
|
126
|
+
// (base-bundle rows can mount later), so registration is retried on the
|
|
127
|
+
// first agent/session-start — by then the app is fully booted.
|
|
128
|
+
let providerRegistered = false;
|
|
129
|
+
const registerProvider = () => {
|
|
130
|
+
if (providerRegistered)
|
|
131
|
+
return;
|
|
132
|
+
const inspect = ctx.get('cordisInspect');
|
|
133
|
+
if (inspect === undefined)
|
|
134
|
+
return;
|
|
135
|
+
try {
|
|
136
|
+
ctx.effect(() => inspect.register(inspectProvider(config)), 'embedded-workbench: inspect provider');
|
|
137
|
+
providerRegistered = true;
|
|
138
|
+
}
|
|
139
|
+
catch (err) {
|
|
140
|
+
console.warn('[embedded-workbench] inspect provider registration failed', err);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
registerProvider();
|
|
144
|
+
// Ship the bundled skills through the registry: reuse the standard
|
|
145
|
+
// filesystem provider over this package's own `skills/` directory, so
|
|
146
|
+
// catalog discovery, frontmatter parsing, and SKILL.md loading behave
|
|
147
|
+
// exactly like project/user skills while the plugin stays self-contained.
|
|
148
|
+
// Registration lands in the global registry layer (this row mounts at the
|
|
149
|
+
// profile root), so every agent preset sees the skills. `registerProvider`
|
|
150
|
+
// returns the effect disposer; its teardown unregisters and invalidates.
|
|
151
|
+
ctx.skills.registerProvider((control) => {
|
|
152
|
+
return new FileSystemSkillProvider(ctx, control, {
|
|
153
|
+
providerName: 'embedded-workbench',
|
|
154
|
+
includeDefaultRoots: false,
|
|
155
|
+
customSkillDirs: [SKILLS_DIR],
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
if (!config.enabled)
|
|
159
|
+
return;
|
|
160
|
+
// Inject the gate once per session on the FIRST model step that runs,
|
|
161
|
+
// instead of at session-start: session-start injection lands in the agent's
|
|
162
|
+
// inbox, which a blank-session preset switch (agentPreset.select ->
|
|
163
|
+
// recompose) can clear before the first step - the gate would then be lost
|
|
164
|
+
// for the whole session. The pre-step decision is the durable path a
|
|
165
|
+
// first-step injection takes: the gate is appended to the first step's
|
|
166
|
+
// decision and enters session history there, so every later step (and a
|
|
167
|
+
// resume) skips it. Anchored/bootstrap presets that strip first-step
|
|
168
|
+
// injected reminders (skill catalog, AGENTS.md, gate plugins) simply defer
|
|
169
|
+
// this message to the first step after their promotion - the history guard
|
|
170
|
+
// re-injects it there, so the gate still lands exactly once per session.
|
|
171
|
+
ctx.on('agent/pre-step', async ({ agent }, next) => {
|
|
172
|
+
const decision = await next();
|
|
173
|
+
if (decision.kind === 'reject')
|
|
174
|
+
return decision;
|
|
175
|
+
registerProvider();
|
|
176
|
+
if (gateInHistory(agent.session))
|
|
177
|
+
return decision;
|
|
178
|
+
return {
|
|
179
|
+
kind: 'enter',
|
|
180
|
+
messages: [...decision.messages, gateMessage(config.gateContent)],
|
|
181
|
+
};
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Whether the gate already entered this session's durable history. The
|
|
186
|
+
* pre-step listener re-appends the gate until it does; once a step committed
|
|
187
|
+
* it, every later step (and a resume of a session that kept it) skips the
|
|
188
|
+
* injection. A session whose gate was dropped before any step ran (e.g. an
|
|
189
|
+
* inbox cleared by a blank-session preset switch) simply re-injects on the
|
|
190
|
+
* first step that runs.
|
|
191
|
+
*/
|
|
192
|
+
function gateInHistory(session) {
|
|
193
|
+
return readSessionEvents(session).some((event) => {
|
|
194
|
+
if (event.type !== 'user/message')
|
|
195
|
+
return false;
|
|
196
|
+
const source = event.data?.source;
|
|
197
|
+
if (source === undefined)
|
|
198
|
+
return false;
|
|
199
|
+
// The v4 producer-owned kind, plus the pre-v4 wrapper this bundle wrote
|
|
200
|
+
// before DSH 0.1.7-alpha.1 retired it.
|
|
201
|
+
return source.kind === GATE_SOURCE_KIND
|
|
202
|
+
|| (source.kind === 'plugin' && source.plugin === GATE_PLUGIN_ID);
|
|
203
|
+
});
|
|
204
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* embedded-workbench — DeepSeek Harness native plugin for the Embedded
|
|
3
|
-
* Workbench toolbox.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
import type {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
/**
|
|
2
|
+
* embedded-workbench — DeepSeek Harness native plugin for the Embedded
|
|
3
|
+
* Workbench toolbox. The 8 skills ship in this package's `skills/` directory
|
|
4
|
+
* and are registered at apply time into dsh's `ctx.skills` registry through
|
|
5
|
+
* the standard filesystem provider, so they appear in every session catalog
|
|
6
|
+
* without a manual copy step. The plugin also folds a short gate text into the
|
|
7
|
+
* first model step of every agent session, mirroring the SessionStart hook the
|
|
8
|
+
* Claude Code plugin installs.
|
|
9
|
+
*
|
|
10
|
+
* Injection listens on agent/pre-step and appends the gate to the FIRST
|
|
11
|
+
* model step that runs, once per session (guarded by the session's durable
|
|
12
|
+
* history). Session-start inbox injection was dropped: a blank-session preset
|
|
13
|
+
* switch (agentPreset.select -> recompose) can clear the inbox before the
|
|
14
|
+
* first step, losing the gate for the whole session. The pre-step decision is
|
|
15
|
+
* the durable path - anchored/bootstrap presets that strip first-step injected
|
|
16
|
+
* reminders (skill catalog, AGENTS.md, gate plugins) simply defer this message
|
|
17
|
+
* to the first step after their promotion, and the history guard re-injects it
|
|
18
|
+
* there. The default gate text is the dsh-native adaptation of
|
|
19
|
+
* `hooks/session-start-content.md`: the behavior rules stay in sync (the Plan
|
|
20
|
+
* Verification Gate and the context-budget rule), while presentation is adapted
|
|
21
|
+
* to dsh's native skill catalog — no roster table (the model sees skills in its
|
|
22
|
+
* catalog) and no install instructions (those live in `.dsh/INSTALL.md`). The
|
|
23
|
+
* payload is deliberately small: it carries the verification gate and the
|
|
24
|
+
* budget rule, not the 1% Rule / Red Flags enforcement scaffolding, which
|
|
25
|
+
* measurably pushes capable models into rigid phases and unnecessary fan-out.
|
|
26
|
+
* Deployments override via Config.
|
|
27
|
+
*
|
|
28
|
+
* @module embedded-workbench-dsh
|
|
29
|
+
*/
|
|
30
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
31
|
+
import z from '@deepseek-ai/schemastery';
|
|
32
|
+
import type { ContextFormed } from '@deepseek-ai/dsh-llm';
|
|
33
|
+
declare module '@deepseek-ai/dsh-llm' {
|
|
34
|
+
interface MessageSourceMap {
|
|
35
|
+
'plugin:embedded-workbench': {
|
|
36
|
+
kind: 'plugin:embedded-workbench';
|
|
37
|
+
} & ContextFormed;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export declare const name = "embedded-workbench";
|
|
41
|
+
export declare const inject: string[];
|
|
42
|
+
export interface Config {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
gateContent: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
47
|
+
enabled: z<boolean, boolean, "defined">;
|
|
48
|
+
gateContent: z<string, string, "defined">;
|
|
49
|
+
}>>, Schemastery.ObjectT<NoInfer<{
|
|
50
|
+
enabled: z<boolean, boolean, "defined">;
|
|
51
|
+
gateContent: z<string, string, "defined">;
|
|
52
|
+
}>>, "plain">;
|
|
53
|
+
export declare function apply(ctx: Context, config: Config): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-embedded-workbench",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Embedded C/C++ firmware development toolbox — 4 agents, 8 skills covering FreeRTOS, ISR, NVM storage, Keil MDK, ARMCLANG, HardFault, state machines, architecture, LVGL patterns, and claim fact-checking. Ships a native DeepSeek Harness (dsh) bundle that
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Embedded C/C++ firmware development toolbox — 4 agents, 8 skills covering FreeRTOS, ISR, NVM storage, Keil MDK, ARMCLANG, HardFault, state machines, architecture, LVGL patterns, and claim fact-checking. Ships a native DeepSeek Harness (dsh) bundle that folds a short gate — the Plan Verification Gate plus a context-budget rule — into the first model step.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"patch": "./cordis.patch.yml"
|
|
33
33
|
},
|
|
34
34
|
"compatibility": {
|
|
35
|
-
"dsh": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.2-alpha.3 || ^0.1.2-alpha.4 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.3-alpha.1 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1 || ^0.1.5-rc.1 || ^0.1.5-alpha.2 || ^0.1.5-rc.2 || ^0.1.6-alpha.1 || ^0.1.6-alpha.2 || ^0.1.7-alpha.1",
|
|
35
|
+
"dsh": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.2-alpha.3 || ^0.1.2-alpha.4 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.3-alpha.1 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1 || ^0.1.5-rc.1 || ^0.1.5-alpha.2 || ^0.1.5-rc.2 || ^0.1.5-rc.3 || ^0.1.6-alpha.1 || ^0.1.6-alpha.2 || ^0.1.7-alpha.1 || ^0.1.7-alpha.2 || ^0.1.7-rc.1 || ^0.1.7-rc.2",
|
|
36
36
|
"dshReleases": {
|
|
37
37
|
"0.1.0-rc.7": "compatible",
|
|
38
38
|
"0.1.0-rc.8": "compatible",
|
|
@@ -49,9 +49,13 @@
|
|
|
49
49
|
"0.1.5-alpha.2": "compatible",
|
|
50
50
|
"0.1.5-rc.1": "compatible",
|
|
51
51
|
"0.1.5-rc.2": "compatible",
|
|
52
|
+
"0.1.5-rc.3": "compatible",
|
|
52
53
|
"0.1.6-alpha.1": "compatible",
|
|
53
54
|
"0.1.6-alpha.2": "compatible",
|
|
54
|
-
"0.1.7-alpha.1": "compatible"
|
|
55
|
+
"0.1.7-alpha.1": "compatible",
|
|
56
|
+
"0.1.7-alpha.2": "compatible",
|
|
57
|
+
"0.1.7-rc.1": "compatible",
|
|
58
|
+
"0.1.7-rc.2": "compatible"
|
|
55
59
|
},
|
|
56
60
|
"profiles": [
|
|
57
61
|
"headless"
|
|
@@ -64,15 +68,15 @@
|
|
|
64
68
|
"bump": "node scripts/bump-version.mjs"
|
|
65
69
|
},
|
|
66
70
|
"peerDependencies": {
|
|
67
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
71
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
68
72
|
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
|
|
69
73
|
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
|
|
70
74
|
"@deepseek-ai/dsh-session": "^0.1.0-rc.6",
|
|
71
75
|
"@deepseek-ai/dsh-skill-filesystem": "^0.1.0-rc.8",
|
|
72
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
76
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
73
77
|
},
|
|
74
78
|
"devDependencies": {
|
|
75
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
79
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
76
80
|
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
|
|
77
81
|
"@deepseek-ai/dsh-cordis-host-runner": "^0.1.0-rc.8",
|
|
78
82
|
"@deepseek-ai/dsh-home-paths": "^0.1.0-rc.8",
|
|
@@ -82,8 +86,8 @@
|
|
|
82
86
|
"@deepseek-ai/dsh-skill": "^0.1.0-rc.8",
|
|
83
87
|
"@deepseek-ai/dsh-skill-filesystem": "^0.1.0-rc.8",
|
|
84
88
|
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.1",
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
89
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
90
|
+
"@types/node": "^26.6.2",
|
|
87
91
|
"typescript": "^7.0.2"
|
|
88
92
|
},
|
|
89
93
|
"author": {
|