@boyingliu01/dsh-plugin-xp-gate 0.31.4 → 0.32.2
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.md +51 -2
- package/lib/client.js +760 -0
- package/lib/command.d.ts +11 -5
- package/lib/command.d.ts.map +1 -1
- package/lib/command.js +19 -13
- package/lib/command.js.map +1 -1
- package/lib/credentials.d.ts +39 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +57 -0
- package/lib/credentials.js.map +1 -0
- package/lib/delphi-config.d.ts +34 -3
- package/lib/delphi-config.d.ts.map +1 -1
- package/lib/delphi-config.js +117 -48
- package/lib/delphi-config.js.map +1 -1
- package/lib/delphi-run.d.ts +1 -1
- package/lib/delphi-run.d.ts.map +1 -1
- package/lib/delphi-run.js +24 -3
- package/lib/delphi-run.js.map +1 -1
- package/lib/delphi-settings.d.ts +52 -0
- package/lib/delphi-settings.d.ts.map +1 -0
- package/lib/delphi-settings.js +76 -0
- package/lib/delphi-settings.js.map +1 -0
- package/lib/delphi.d.ts +6 -0
- package/lib/delphi.d.ts.map +1 -1
- package/lib/delphi.js +101 -55
- package/lib/delphi.js.map +1 -1
- package/lib/evidence.d.ts +70 -0
- package/lib/evidence.d.ts.map +1 -0
- package/lib/evidence.js +92 -0
- package/lib/evidence.js.map +1 -0
- package/lib/gate-runner.d.ts +33 -2
- package/lib/gate-runner.d.ts.map +1 -1
- package/lib/gate-runner.js +53 -4
- package/lib/gate-runner.js.map +1 -1
- package/lib/git-context.d.ts +26 -0
- package/lib/git-context.d.ts.map +1 -0
- package/lib/git-context.js +30 -0
- package/lib/git-context.js.map +1 -0
- package/lib/hooks.d.ts +55 -0
- package/lib/hooks.d.ts.map +1 -0
- package/lib/hooks.js +152 -0
- package/lib/hooks.js.map +1 -0
- package/lib/index.d.ts +79 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +385 -12
- package/lib/index.js.map +1 -1
- package/lib/skill-provider.d.ts +15 -0
- package/lib/skill-provider.d.ts.map +1 -0
- package/lib/skill-provider.js +205 -0
- package/lib/skill-provider.js.map +1 -0
- package/lib/sprint.d.ts +60 -0
- package/lib/sprint.d.ts.map +1 -0
- package/lib/sprint.js +92 -0
- package/lib/sprint.js.map +1 -0
- package/package.json +26 -10
- package/skills/delphi-review/AGENTS.md +3 -3
- package/skills/sprint-flow/AGENTS.md +3 -3
- package/skills/test-specification-alignment/AGENTS.md +3 -3
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { readdirSync, readFileSync } from "node:fs";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { BUNDLED_SKILL_RANK } from "@deepseek-ai/dsh-skill";
|
|
5
|
+
/**
|
|
6
|
+
* Provider label surfaced to the model alongside each skill.
|
|
7
|
+
* Matches the plugin name so a loaded skill is attributable.
|
|
8
|
+
*/
|
|
9
|
+
const PROVIDER_NAME = "xp-gate";
|
|
10
|
+
/** Files a skill directory must contain to be loadable. */
|
|
11
|
+
const SKILL_FILE = "SKILL.md";
|
|
12
|
+
/** The `---` line that opens and closes a SKILL.md YAML frontmatter block. */
|
|
13
|
+
const FRONTMATTER_FENCE = "---";
|
|
14
|
+
/** Offset just past the opening fence, and past the closing fence plus its newline. */
|
|
15
|
+
const FRONTMATTER_START = FRONTMATTER_FENCE.length;
|
|
16
|
+
const FRONTMATTER_END_OFFSET = FRONTMATTER_FENCE.length + 1;
|
|
17
|
+
/**
|
|
18
|
+
* Unfold a YAML block scalar (`key: >` / `key: |`) body into one line.
|
|
19
|
+
* Folded blocks join on spaces, literal blocks on newlines.
|
|
20
|
+
*/
|
|
21
|
+
function unfoldBlock(lines, literal) {
|
|
22
|
+
const trimmed = lines.map((line) => line.trim());
|
|
23
|
+
if (literal)
|
|
24
|
+
return trimmed.filter((line) => line.length > 0).join("\n");
|
|
25
|
+
return trimmed.filter((line) => line.length > 0).join(" ");
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Extract `name` and `description` from a SKILL.md frontmatter block.
|
|
29
|
+
*
|
|
30
|
+
* Two description shapes ship in this repository: folded blocks
|
|
31
|
+
* (`description: >`) used by delphi-review and sprint-flow, and one-line quoted
|
|
32
|
+
* or plain values used by the rest. A parser handling only one shape yields an
|
|
33
|
+
* empty description for the other, which makes those skills unroutable — the
|
|
34
|
+
* model never picks a skill it cannot see described.
|
|
35
|
+
*/
|
|
36
|
+
function parseSkill(raw, file) {
|
|
37
|
+
if (!raw.startsWith(FRONTMATTER_FENCE)) {
|
|
38
|
+
throw new Error(`${file}: missing YAML frontmatter`);
|
|
39
|
+
}
|
|
40
|
+
const end = raw.indexOf(`\n${FRONTMATTER_FENCE}`, FRONTMATTER_START);
|
|
41
|
+
if (end === -1) {
|
|
42
|
+
throw new Error(`${file}: unterminated YAML frontmatter`);
|
|
43
|
+
}
|
|
44
|
+
const frontmatter = raw.slice(FRONTMATTER_START, end);
|
|
45
|
+
const content = raw.slice(end + FRONTMATTER_END_OFFSET).replace(/^\r?\n/, "");
|
|
46
|
+
const lines = frontmatter.split(/\r?\n/);
|
|
47
|
+
let name = "";
|
|
48
|
+
let description = "";
|
|
49
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
50
|
+
const line = lines[index] ?? "";
|
|
51
|
+
const keyed = /^([A-Za-z_][A-Za-z0-9_-]*):(.*)$/.exec(line);
|
|
52
|
+
if (!keyed)
|
|
53
|
+
continue;
|
|
54
|
+
const key = keyed[1];
|
|
55
|
+
const rest = (keyed[2] ?? "").trim();
|
|
56
|
+
// Collect the indented continuation lines of a block scalar.
|
|
57
|
+
const blockMatch = /^([>|])([+-]?)$/.exec(rest);
|
|
58
|
+
if (blockMatch) {
|
|
59
|
+
const block = [];
|
|
60
|
+
let cursor = index + 1;
|
|
61
|
+
while (cursor < lines.length) {
|
|
62
|
+
const next = lines[cursor] ?? "";
|
|
63
|
+
if (next.trim().length > 0 && !/^\s/.test(next))
|
|
64
|
+
break;
|
|
65
|
+
block.push(next);
|
|
66
|
+
cursor += 1;
|
|
67
|
+
}
|
|
68
|
+
index = cursor - 1;
|
|
69
|
+
const value = unfoldBlock(block, blockMatch[1] === "|");
|
|
70
|
+
if (key === "name")
|
|
71
|
+
name = value;
|
|
72
|
+
if (key === "description")
|
|
73
|
+
description = value;
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (key !== "name" && key !== "description")
|
|
77
|
+
continue;
|
|
78
|
+
// Strip a matching pair of surrounding quotes without touching inner ones.
|
|
79
|
+
const unquoted = /^(['"])(.*)\1$/.exec(rest)?.[2] ?? rest;
|
|
80
|
+
if (key === "name")
|
|
81
|
+
name = unquoted;
|
|
82
|
+
if (key === "description")
|
|
83
|
+
description = unquoted;
|
|
84
|
+
}
|
|
85
|
+
if (!name)
|
|
86
|
+
throw new Error(`${file}: frontmatter carries no name`);
|
|
87
|
+
if (!description)
|
|
88
|
+
throw new Error(`${file}: frontmatter carries no description`);
|
|
89
|
+
return { name, description, content };
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Scan `root` for skill directories without loading their bodies.
|
|
93
|
+
*
|
|
94
|
+
* The catalog is fixed at package build time, so scanning once at apply() is
|
|
95
|
+
* enough; bodies stay on disk and are read per `get()`. A missing root yields
|
|
96
|
+
* an empty catalog rather than throwing: a plugin whose skills directory was
|
|
97
|
+
* stripped during packaging must still load its tools.
|
|
98
|
+
*/
|
|
99
|
+
function scanSkills(root) {
|
|
100
|
+
let entries;
|
|
101
|
+
try {
|
|
102
|
+
entries = readdirSync(root, { withFileTypes: true })
|
|
103
|
+
.filter((entry) => entry.isDirectory())
|
|
104
|
+
.map((entry) => entry.name);
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
return [];
|
|
108
|
+
}
|
|
109
|
+
const listed = [];
|
|
110
|
+
for (const entry of entries.sort()) {
|
|
111
|
+
const directory = join(root, entry);
|
|
112
|
+
const file = join(directory, SKILL_FILE);
|
|
113
|
+
let raw;
|
|
114
|
+
try {
|
|
115
|
+
raw = readFileSync(file, "utf8");
|
|
116
|
+
}
|
|
117
|
+
catch {
|
|
118
|
+
// A directory without SKILL.md is not a skill; skip it silently so a
|
|
119
|
+
// stray file in the package cannot break the whole catalog.
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
const parsed = parseSkill(raw, file);
|
|
123
|
+
listed.push({
|
|
124
|
+
name: parsed.name,
|
|
125
|
+
description: parsed.description,
|
|
126
|
+
directory,
|
|
127
|
+
file,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
return listed;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Build the DSH skill candidates for every skill bundled under `root`.
|
|
134
|
+
* Exposed for tests and for callers that need the catalog without a provider.
|
|
135
|
+
*/
|
|
136
|
+
export function listBundledSkills(root) {
|
|
137
|
+
return scanSkills(root).map((skill) => ({
|
|
138
|
+
name: skill.name,
|
|
139
|
+
description: skill.description,
|
|
140
|
+
invocation: { modelInvocable: true, userInvocable: true },
|
|
141
|
+
provider: PROVIDER_NAME,
|
|
142
|
+
source: "bundled",
|
|
143
|
+
rank: BUNDLED_SKILL_RANK,
|
|
144
|
+
// 8 of the 12 skills reference references/*.md and templates/*; without a
|
|
145
|
+
// directory base those relative paths have nothing to resolve against.
|
|
146
|
+
resourceBase: { kind: "directory", path: skill.directory },
|
|
147
|
+
locator: skill.file,
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Load one candidate's body from disk.
|
|
152
|
+
*
|
|
153
|
+
* Separated from the provider literal so the lookup/read/decorate steps sit at the
|
|
154
|
+
* same nesting level instead of inside an object method's promise chain.
|
|
155
|
+
*/
|
|
156
|
+
async function loadSkill(candidate, options, byName) {
|
|
157
|
+
// A candidate carries the absolute SKILL.md path it was listed from, so loading
|
|
158
|
+
// works even if the scanned catalog is stale; fall back to the catalog for
|
|
159
|
+
// hand-built candidates in tests.
|
|
160
|
+
const locator = typeof candidate.locator === "string" ? candidate.locator : "";
|
|
161
|
+
const target = locator.length > 0 ? locator : byName.get(candidate.name)?.file;
|
|
162
|
+
if (!target)
|
|
163
|
+
return undefined;
|
|
164
|
+
let raw;
|
|
165
|
+
try {
|
|
166
|
+
raw = await readFile(target, { encoding: "utf8", signal: options.signal });
|
|
167
|
+
}
|
|
168
|
+
catch {
|
|
169
|
+
// A skill deleted after listing is no longer loadable; the registry treats
|
|
170
|
+
// undefined as "gone" and invalidates its cached entry.
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
const parsed = parseSkill(raw, target);
|
|
174
|
+
// Built field by field rather than by spreading and dropping the extras: `rank`
|
|
175
|
+
// and `locator` describe the catalog entry and are not part of a definition, and
|
|
176
|
+
// naming what belongs here keeps that boundary visible.
|
|
177
|
+
return {
|
|
178
|
+
name: candidate.name,
|
|
179
|
+
description: candidate.description,
|
|
180
|
+
invocation: candidate.invocation,
|
|
181
|
+
source: candidate.source,
|
|
182
|
+
provider: candidate.provider,
|
|
183
|
+
path: candidate.path,
|
|
184
|
+
resourceBase: candidate.resourceBase,
|
|
185
|
+
whenToUse: candidate.whenToUse,
|
|
186
|
+
content: parsed.content,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Create the XP-Gate skill provider for a given skills root.
|
|
191
|
+
*
|
|
192
|
+
* Mirrors the shape of the official `@deepseek-ai/dsh-skill-office` provider:
|
|
193
|
+
* candidates are scanned once, bodies are re-read on every `get()` so editing a
|
|
194
|
+
* skill takes effect without restarting the host.
|
|
195
|
+
*/
|
|
196
|
+
export function createSkillProvider(root) {
|
|
197
|
+
const byName = new Map(scanSkills(root).map((skill) => [skill.name, skill]));
|
|
198
|
+
const candidates = listBundledSkills(root);
|
|
199
|
+
return {
|
|
200
|
+
name: PROVIDER_NAME,
|
|
201
|
+
list: () => Promise.resolve(candidates),
|
|
202
|
+
get: (candidate, options) => loadSkill(candidate, options, byName),
|
|
203
|
+
};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FAAiF;IACjF,wDAAwD;IACxD,OAAO;QACL,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,UAAU,EAAE,SAAS,CAAC,UAAU;QAChC,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,YAAY,EAAE,SAAS,CAAC,YAAY;QACpC,SAAS,EAAE,SAAS,CAAC,SAAS;QAC9B,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAA;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;IAC5E,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAE1C,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;QACvC,GAAG,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;KACnE,CAAA;AACH,CAAC"}
|
package/lib/sprint.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sprint-flow subcommands the model may run.
|
|
3
|
+
*
|
|
4
|
+
* @test REQ-DSH-013 sprint-flow subcommands are callable from the model
|
|
5
|
+
* @intent Expose the sprint state commands the sprint-flow skill instructs the model
|
|
6
|
+
* to run, without opening a passthrough to the whole CLI.
|
|
7
|
+
* @covers AC-DSH-013-01
|
|
8
|
+
*
|
|
9
|
+
* The skill references these commands by name, so before this module existed a model
|
|
10
|
+
* following the skill could read the instruction and had no way to carry it out.
|
|
11
|
+
*
|
|
12
|
+
* The whitelist is the security boundary, not a convenience: a passthrough tool would
|
|
13
|
+
* turn one tool call into arbitrary CLI invocation, which is a far larger surface than
|
|
14
|
+
* the four gate tools it sits beside. Enumerating both the subcommand and the
|
|
15
|
+
* phase-transition status keeps every user-influenced token inside a known set.
|
|
16
|
+
*/
|
|
17
|
+
import { type ShellDialect } from "./dialect.js";
|
|
18
|
+
/**
|
|
19
|
+
* Subcommands in scope. Deliberately excludes anything destructive or
|
|
20
|
+
* environment-mutating (`uninstall`, `init`, `migrate`, `setup-global`) even though
|
|
21
|
+
* they are the same CLI.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SPRINT_SUBCOMMANDS: readonly ["sprint-status", "phase-transition", "retro", "ui-review", "sprint-init", "sprint-audit", "next-sprint"];
|
|
24
|
+
export type SprintSubcommand = (typeof SPRINT_SUBCOMMANDS)[number];
|
|
25
|
+
/** The only status values `phase-transition` documents. */
|
|
26
|
+
export declare const PHASE_STATUSES: readonly ["in_progress", "completed", "skipped", "failed", "paused"];
|
|
27
|
+
export type PhaseStatus = (typeof PHASE_STATUSES)[number];
|
|
28
|
+
/** Options a caller may pass. Every field is either enumerated or quoted. */
|
|
29
|
+
export interface SprintCommandOptions {
|
|
30
|
+
/** phase-transition phase number, 1-6. */
|
|
31
|
+
readonly phase?: string;
|
|
32
|
+
/** phase-transition status. */
|
|
33
|
+
readonly status?: string;
|
|
34
|
+
/** Project directory, quoted as a single argument. */
|
|
35
|
+
readonly dir?: string;
|
|
36
|
+
/** Emit JSON where the subcommand supports it. */
|
|
37
|
+
readonly json?: boolean;
|
|
38
|
+
/** `retro`: look back N days. */
|
|
39
|
+
readonly days?: number;
|
|
40
|
+
/** `retro`: cover every sprint. */
|
|
41
|
+
readonly all?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** Type guard for the subcommand whitelist. */
|
|
44
|
+
export declare function isSprintSubcommand(value: string): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Validate a subcommand, throwing rather than returning a sentinel.
|
|
47
|
+
*
|
|
48
|
+
* A caller that ignores a boolean would fall through to "run nothing" or, worse, to a
|
|
49
|
+
* default subcommand; throwing makes the rejection impossible to overlook.
|
|
50
|
+
*/
|
|
51
|
+
export declare function assertSprintSubcommand(value: string): asserts value is SprintSubcommand;
|
|
52
|
+
/**
|
|
53
|
+
* Build the command line for a whitelisted subcommand.
|
|
54
|
+
*
|
|
55
|
+
* User-influenced values reach the shell in exactly two ways: enumerated membership
|
|
56
|
+
* (subcommand, phase, status) or shell quoting (paths). Nothing is interpolated raw,
|
|
57
|
+
* which is what keeps this from becoming the injection surface a passthrough would be.
|
|
58
|
+
*/
|
|
59
|
+
export declare function buildSprintCommand(subcommand: string, options?: SprintCommandOptions, dialect?: ShellDialect): string;
|
|
60
|
+
//# sourceMappingURL=sprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../src/sprint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,cAAc,CAAA;AAE5D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,oHAQrB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAElE,2DAA2D;AAC3D,eAAO,MAAM,cAAc,sEAAuE,CAAA;AAElG,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzD,6EAA6E;AAC7E,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,sDAAsD;IACtD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,mCAAmC;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CACvB;AAKD,+CAA+C;AAC/C,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,gBAAgB,CAMvF;AA2BD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,oBAAyB,EAClC,OAAO,GAAE,YAAsB,GAC9B,MAAM,CAMR"}
|
package/lib/sprint.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sprint-flow subcommands the model may run.
|
|
3
|
+
*
|
|
4
|
+
* @test REQ-DSH-013 sprint-flow subcommands are callable from the model
|
|
5
|
+
* @intent Expose the sprint state commands the sprint-flow skill instructs the model
|
|
6
|
+
* to run, without opening a passthrough to the whole CLI.
|
|
7
|
+
* @covers AC-DSH-013-01
|
|
8
|
+
*
|
|
9
|
+
* The skill references these commands by name, so before this module existed a model
|
|
10
|
+
* following the skill could read the instruction and had no way to carry it out.
|
|
11
|
+
*
|
|
12
|
+
* The whitelist is the security boundary, not a convenience: a passthrough tool would
|
|
13
|
+
* turn one tool call into arbitrary CLI invocation, which is a far larger surface than
|
|
14
|
+
* the four gate tools it sits beside. Enumerating both the subcommand and the
|
|
15
|
+
* phase-transition status keeps every user-influenced token inside a known set.
|
|
16
|
+
*/
|
|
17
|
+
import { shellQuote } from "./dialect.js";
|
|
18
|
+
/**
|
|
19
|
+
* Subcommands in scope. Deliberately excludes anything destructive or
|
|
20
|
+
* environment-mutating (`uninstall`, `init`, `migrate`, `setup-global`) even though
|
|
21
|
+
* they are the same CLI.
|
|
22
|
+
*/
|
|
23
|
+
export const SPRINT_SUBCOMMANDS = [
|
|
24
|
+
"sprint-status",
|
|
25
|
+
"phase-transition",
|
|
26
|
+
"retro",
|
|
27
|
+
"ui-review",
|
|
28
|
+
"sprint-init",
|
|
29
|
+
"sprint-audit",
|
|
30
|
+
"next-sprint",
|
|
31
|
+
];
|
|
32
|
+
/** The only status values `phase-transition` documents. */
|
|
33
|
+
export const PHASE_STATUSES = ["in_progress", "completed", "skipped", "failed", "paused"];
|
|
34
|
+
/** Phase numbers the CLI accepts. */
|
|
35
|
+
const PHASE_NUMBERS = ["1", "2", "3", "4", "5", "6"];
|
|
36
|
+
/** Type guard for the subcommand whitelist. */
|
|
37
|
+
export function isSprintSubcommand(value) {
|
|
38
|
+
return SPRINT_SUBCOMMANDS.includes(value);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Validate a subcommand, throwing rather than returning a sentinel.
|
|
42
|
+
*
|
|
43
|
+
* A caller that ignores a boolean would fall through to "run nothing" or, worse, to a
|
|
44
|
+
* default subcommand; throwing makes the rejection impossible to overlook.
|
|
45
|
+
*/
|
|
46
|
+
export function assertSprintSubcommand(value) {
|
|
47
|
+
if (!isSprintSubcommand(value)) {
|
|
48
|
+
throw new Error(`Unknown sprint subcommand "${value}". Allowed: ${SPRINT_SUBCOMMANDS.join(", ")}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/** Validate the two positional arguments phase-transition requires. */
|
|
52
|
+
function phaseTokens(options) {
|
|
53
|
+
const phase = options.phase ?? "";
|
|
54
|
+
if (!PHASE_NUMBERS.includes(phase)) {
|
|
55
|
+
throw new Error(`phase must be one of ${PHASE_NUMBERS.join(", ")}; got "${phase}"`);
|
|
56
|
+
}
|
|
57
|
+
const status = options.status ?? "";
|
|
58
|
+
if (!PHASE_STATUSES.includes(status)) {
|
|
59
|
+
throw new Error(`status must be one of ${PHASE_STATUSES.join(", ")}; got "${status}"`);
|
|
60
|
+
}
|
|
61
|
+
return [phase, status];
|
|
62
|
+
}
|
|
63
|
+
/** Append the flags shared by several subcommands. */
|
|
64
|
+
function sharedFlags(options, dialect) {
|
|
65
|
+
const flags = [];
|
|
66
|
+
if (options.json)
|
|
67
|
+
flags.push("--json");
|
|
68
|
+
if (options.all)
|
|
69
|
+
flags.push("--all");
|
|
70
|
+
if (options.days !== undefined && Number.isInteger(options.days) && options.days > 0) {
|
|
71
|
+
flags.push("--days", String(options.days));
|
|
72
|
+
}
|
|
73
|
+
if (options.dir !== undefined)
|
|
74
|
+
flags.push("--dir", shellQuote(options.dir, dialect));
|
|
75
|
+
return flags;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Build the command line for a whitelisted subcommand.
|
|
79
|
+
*
|
|
80
|
+
* User-influenced values reach the shell in exactly two ways: enumerated membership
|
|
81
|
+
* (subcommand, phase, status) or shell quoting (paths). Nothing is interpolated raw,
|
|
82
|
+
* which is what keeps this from becoming the injection surface a passthrough would be.
|
|
83
|
+
*/
|
|
84
|
+
export function buildSprintCommand(subcommand, options = {}, dialect = "posix") {
|
|
85
|
+
assertSprintSubcommand(subcommand);
|
|
86
|
+
const tokens = ["xp-gate", subcommand];
|
|
87
|
+
if (subcommand === "phase-transition")
|
|
88
|
+
tokens.push(...phaseTokens(options));
|
|
89
|
+
tokens.push(...sharedFlags(options, dialect));
|
|
90
|
+
return tokens.join(" ");
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=sprint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprint.js","sourceRoot":"","sources":["../src/sprint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAqB,UAAU,EAAE,MAAM,cAAc,CAAA;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,eAAe;IACf,kBAAkB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
{
|
|
2
2
|
"name": "@boyingliu01/dsh-plugin-xp-gate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.2",
|
|
4
4
|
"description": "XP-Gate deterministic quality gates + AI workflow skills as a DeepSeek Harness (DSH) native plugin: gate-check / gate-principles / gate-arch tools + 12 SKILL.md skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"import": "./lib/index.js",
|
|
12
12
|
"default": "./lib/index.js"
|
|
13
13
|
},
|
|
14
|
-
"./package.json": "./package.json"
|
|
14
|
+
"./package.json": "./package.json",
|
|
15
|
+
"./client": {
|
|
16
|
+
"default": "./lib/client.js"
|
|
17
|
+
}
|
|
15
18
|
},
|
|
16
19
|
"repository": {
|
|
17
20
|
"type": "git",
|
|
@@ -21,6 +24,13 @@
|
|
|
21
24
|
"dsh": {
|
|
22
25
|
"bundle": {
|
|
23
26
|
"patch": "./cordis.patch.yml"
|
|
27
|
+
},
|
|
28
|
+
"client": {
|
|
29
|
+
"inject": [
|
|
30
|
+
"@deepseek-ai/dsh-client-locale",
|
|
31
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
32
|
+
],
|
|
33
|
+
"platform": "web"
|
|
24
34
|
}
|
|
25
35
|
},
|
|
26
36
|
"publishConfig": {
|
|
@@ -34,7 +44,7 @@
|
|
|
34
44
|
"README.md"
|
|
35
45
|
],
|
|
36
46
|
"scripts": {
|
|
37
|
-
"build": "tsc -p tsconfig.build.json",
|
|
47
|
+
"build": "tsc -p tsconfig.build.json && node scripts/copy-client.cjs",
|
|
38
48
|
"check": "tsc -p tsconfig.json",
|
|
39
49
|
"test": "vitest run",
|
|
40
50
|
"prepare-skills": "node scripts/prepack.cjs",
|
|
@@ -42,15 +52,21 @@
|
|
|
42
52
|
},
|
|
43
53
|
"peerDependencies": {
|
|
44
54
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
55
|
+
"@deepseek-ai/dsh-credentials": ">=0.2.0-rc.2 <0.3.0-0",
|
|
56
|
+
"@deepseek-ai/dsh-llm": ">=0.2.0-rc.2 <0.3.0-0",
|
|
57
|
+
"@deepseek-ai/dsh-shell": ">=0.2.0-rc.2 <0.3.0-0",
|
|
58
|
+
"@deepseek-ai/dsh-skill": ">=0.2.0-rc.2 <0.3.0-0",
|
|
59
|
+
"@deepseek-ai/dsh-tools": ">=0.2.0-rc.2 <0.3.0-0",
|
|
60
|
+
"@deepseek-ai/schemastery": "^3.18.5"
|
|
48
61
|
},
|
|
49
62
|
"devDependencies": {
|
|
50
|
-
"@deepseek-ai/cordis": "4.0.
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/dsh-
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
63
|
+
"@deepseek-ai/cordis": "4.0.4",
|
|
64
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-shell": "0.2.0-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-skill": "0.2.0-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
69
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
54
70
|
"@types/node": "^25.6.0",
|
|
55
71
|
"typescript": "^5.9.3",
|
|
56
72
|
"vitest": "^1.6.1",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-30
|
|
4
|
+
**Commit:** 78786c3f
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.
|
|
6
|
+
**Version:** 0.32.2.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-30
|
|
4
|
+
**Commit:** 78786c3f
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.
|
|
6
|
+
**Version:** 0.32.2.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-30
|
|
4
|
+
**Commit:** 78786c3f
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.
|
|
6
|
+
**Version:** 0.32.2.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|