@seanmars/tospec 0.11.0 → 0.12.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/dist/core/init.d.ts.map +1 -1
- package/dist/core/init.js +2 -3
- package/dist/core/init.js.map +1 -1
- package/dist/core/shared/index.d.ts +1 -1
- package/dist/core/shared/index.d.ts.map +1 -1
- package/dist/core/shared/index.js +1 -1
- package/dist/core/shared/index.js.map +1 -1
- package/dist/core/shared/skill-generation.d.ts +7 -0
- package/dist/core/shared/skill-generation.d.ts.map +1 -1
- package/dist/core/shared/skill-generation.js +13 -1
- package/dist/core/shared/skill-generation.js.map +1 -1
- package/dist/core/templates/fragments/interview.d.ts +10 -0
- package/dist/core/templates/fragments/interview.d.ts.map +1 -0
- package/dist/core/templates/fragments/interview.js +13 -0
- package/dist/core/templates/fragments/interview.js.map +1 -0
- package/dist/core/templates/fragments/next-step.d.ts +14 -0
- package/dist/core/templates/fragments/next-step.d.ts.map +1 -0
- package/dist/core/templates/fragments/next-step.js +14 -0
- package/dist/core/templates/fragments/next-step.js.map +1 -0
- package/dist/core/templates/fragments/verify.d.ts +19 -0
- package/dist/core/templates/fragments/verify.d.ts.map +1 -0
- package/dist/core/templates/{workflows → fragments}/verify.js +25 -4
- package/dist/core/templates/fragments/verify.js.map +1 -0
- package/dist/core/templates/types.d.ts +6 -0
- package/dist/core/templates/types.d.ts.map +1 -1
- package/dist/core/templates/workflows/apply.d.ts.map +1 -1
- package/dist/core/templates/workflows/apply.js +29 -23
- package/dist/core/templates/workflows/apply.js.map +1 -1
- package/dist/core/templates/workflows/archive.d.ts.map +1 -1
- package/dist/core/templates/workflows/archive.js +3 -5
- package/dist/core/templates/workflows/archive.js.map +1 -1
- package/dist/core/templates/workflows/decision.d.ts.map +1 -1
- package/dist/core/templates/workflows/decision.js +11 -8
- package/dist/core/templates/workflows/decision.js.map +1 -1
- package/dist/core/templates/workflows/explore.d.ts +6 -3
- package/dist/core/templates/workflows/explore.d.ts.map +1 -1
- package/dist/core/templates/workflows/explore.js +27 -31
- package/dist/core/templates/workflows/explore.js.map +1 -1
- package/dist/core/templates/workflows/grill.d.ts.map +1 -1
- package/dist/core/templates/workflows/grill.js +14 -21
- package/dist/core/templates/workflows/grill.js.map +1 -1
- package/dist/core/templates/workflows/issue.js +2 -2
- package/dist/core/templates/workflows/issue.js.map +1 -1
- package/dist/core/templates/workflows/propose.js +1 -1
- package/dist/core/templates/workflows/propose.js.map +1 -1
- package/dist/core/templates/workflows/sync.js +2 -2
- package/dist/core/templates/workflows/sync.js.map +1 -1
- package/dist/core/templates/workflows/update.d.ts.map +1 -1
- package/dist/core/templates/workflows/update.js +18 -28
- package/dist/core/templates/workflows/update.js.map +1 -1
- package/dist/core/update.d.ts.map +1 -1
- package/dist/core/update.js +2 -3
- package/dist/core/update.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/templates/workflows/verify.d.ts +0 -9
- package/dist/core/templates/workflows/verify.d.ts.map +0 -1
- package/dist/core/templates/workflows/verify.js.map +0 -1
package/dist/core/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/core/init.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAaF,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAU;IAC7C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAS;gBAE9B,OAAO,GAAE,kBAAuB;IAOtC,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAmDlC,QAAQ;IAatB,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,sBAAsB;YAgBhB,gBAAgB;IAmG9B,OAAO,CAAC,eAAe;IA+DvB,OAAO,CAAC,aAAa;YAsCP,wBAAwB;YAmCxB,yBAAyB;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/core/init.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAaF,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAU;IAC7C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAS;gBAE9B,OAAO,GAAE,kBAAuB;IAOtC,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAmDlC,QAAQ;IAatB,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,sBAAsB;YAgBhB,gBAAgB;IAmG9B,OAAO,CAAC,eAAe;IA+DvB,OAAO,CAAC,aAAa;YAsCP,wBAAwB;YAmCxB,yBAAyB;YAwFzB,YAAY;IAwB1B,OAAO,CAAC,qBAAqB;IAiF7B,OAAO,CAAC,YAAY;YASN,oBAAoB;CAqBnC"}
|
package/dist/core/init.js
CHANGED
|
@@ -11,7 +11,7 @@ import { AI_TOOLS, TOSPEC_DIR_NAME, } from './config.js';
|
|
|
11
11
|
import { isInteractive } from '../utils/interactive.js';
|
|
12
12
|
import { serializeConfig } from './config-prompts.js';
|
|
13
13
|
import { copyDir } from '../utils/link.js';
|
|
14
|
-
import { removeLegacySkillDirs, removeLegacyToolSkillLayout, getToolsWithSkillsDir, getToolStates, getSkillTemplates,
|
|
14
|
+
import { removeLegacySkillDirs, removeLegacyToolSkillLayout, getToolsWithSkillsDir, getToolStates, getSkillTemplates, writeSkillDir, writeToolCommands, writeToolRules, } from './shared/index.js';
|
|
15
15
|
import { getGlobalConfig } from './global-config.js';
|
|
16
16
|
import { getProfileWorkflows, ALL_WORKFLOWS } from './profiles.js';
|
|
17
17
|
import { getAvailableTools } from './available-tools.js';
|
|
@@ -289,8 +289,7 @@ export class InitCommand {
|
|
|
289
289
|
// can't (see the per-tool loop's comments).
|
|
290
290
|
const agentsSkillsDir = path.join(projectPath, '.agents', 'skills');
|
|
291
291
|
for (const { template, dirName } of skillTemplates) {
|
|
292
|
-
|
|
293
|
-
await FileSystemUtils.writeFile(path.join(agentsSkillsDir, dirName, 'SKILL.md'), skillContent);
|
|
292
|
+
await writeSkillDir(agentsSkillsDir, dirName, template, TOSPEC_VERSION);
|
|
294
293
|
}
|
|
295
294
|
await removeLegacySkillDirs(agentsSkillsDir);
|
|
296
295
|
removedCommandCount += await this.removeLegacyCommands(projectPath);
|
package/dist/core/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/core/init.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,QAAQ,EACR,eAAe,GAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC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ACnE,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,oBAAoB,CAAC,WAAmB;QACpD,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,+DAA+D;QAC/D,4EAA4E;QAC5E,8DAA8D;QAC9D,MAAM,WAAW,GAAG;YAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC;YACvD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC;YACvD,oEAAoE;YACpE,mEAAmE;YACnE,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,QAAQ,KAAK,CAAC,CAAC;SAC3G,CAAC;QAEF,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACrC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC9B,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;gBACnE,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Common code shared between init and update commands.
|
|
5
5
|
*/
|
|
6
6
|
export { SKILL_NAMES, LEGACY_SKILL_DIRS, type ToolSkillStatus, type ToolVersionStatus, removeLegacySkillDirs, removeLegacyToolSkillLayout, getToolsWithSkillsDir, getToolSkillStatus, getToolStates, extractGeneratedByVersion, getToolVersionStatus, getConfiguredTools, getAllToolVersionStatus, } from './tool-detection.js';
|
|
7
|
-
export { type SkillTemplateEntry, type CommandTemplateEntry, getSkillTemplates, getCommandTemplates, getCommandContents, generateSkillContent, writeToolCommands, } from './skill-generation.js';
|
|
7
|
+
export { type SkillTemplateEntry, type CommandTemplateEntry, getSkillTemplates, getCommandTemplates, getCommandContents, generateSkillContent, writeSkillDir, writeToolCommands, } from './skill-generation.js';
|
|
8
8
|
export { writeToolRules } from './rules-generation.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Common code shared between init and update commands.
|
|
5
5
|
*/
|
|
6
6
|
export { SKILL_NAMES, LEGACY_SKILL_DIRS, removeLegacySkillDirs, removeLegacyToolSkillLayout, getToolsWithSkillsDir, getToolSkillStatus, getToolStates, extractGeneratedByVersion, getToolVersionStatus, getConfiguredTools, getAllToolVersionStatus, } from './tool-detection.js';
|
|
7
|
-
export { getSkillTemplates, getCommandTemplates, getCommandContents, generateSkillContent, writeToolCommands, } from './skill-generation.js';
|
|
7
|
+
export { getSkillTemplates, getCommandTemplates, getCommandContents, generateSkillContent, writeSkillDir, writeToolCommands, } from './skill-generation.js';
|
|
8
8
|
export { writeToolRules } from './rules-generation.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EAGjB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EAGjB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -91,6 +91,13 @@ export declare function getCommandContents(workflowFilter?: readonly string[]):
|
|
|
91
91
|
* @param transformInstructions - Optional callback to transform the instructions content
|
|
92
92
|
*/
|
|
93
93
|
export declare function generateSkillContent(template: SkillTemplate, generatedByVersion: string, transformInstructions?: (instructions: string) => string): string;
|
|
94
|
+
/**
|
|
95
|
+
* Writes one skill directory: `SKILL.md` plus any `extraFiles` the template
|
|
96
|
+
* discloses beside it. The single writer for `.agents/skills/<dir>/`, shared by
|
|
97
|
+
* `init`, `update`, and the `pnpm skills` dump so a new sibling file can never
|
|
98
|
+
* reach one path and miss another.
|
|
99
|
+
*/
|
|
100
|
+
export declare function writeSkillDir(skillsDir: string, dirName: string, template: SkillTemplate, generatedByVersion: string): Promise<void>;
|
|
94
101
|
/**
|
|
95
102
|
* Writes slash-command files for a tool that has a registered command adapter
|
|
96
103
|
* (Claude Code writes `.claude/commands/tosx/<id>.md`, invocable as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-generation.d.ts","sourceRoot":"","sources":["../../../src/core/shared/skill-generation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,2BAA2B,EAC3B,kCAAkC,EAClC,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,gCAAgC,EAChC,8BAA8B,EAC9B,6BAA6B,EAC7B,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CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,oBAAoB,EAAE,CAM9F;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,cAAc,EAAE,CAUvF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,aAAa,EACvB,kBAAkB,EAAE,MAAM,EAC1B,qBAAqB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,GACvD,MAAM,CAyBR;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,aAAa,EACvB,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,GACjC,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
|
@@ -96,13 +96,25 @@ license: ${escapeYamlValue(template.license || 'MIT')}
|
|
|
96
96
|
compatibility: ${escapeYamlValue(template.compatibility || 'Requires tospec CLI.')}
|
|
97
97
|
${allowedToolsLine}${disableInvocationLine}metadata:
|
|
98
98
|
author: ${escapeYamlValue(template.metadata?.author || 'tospec')}
|
|
99
|
-
version: "${template.metadata?.version || '1.0'}"
|
|
100
99
|
generatedBy: "${generatedByVersion}"
|
|
101
100
|
---
|
|
102
101
|
|
|
103
102
|
${instructions}
|
|
104
103
|
`;
|
|
105
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Writes one skill directory: `SKILL.md` plus any `extraFiles` the template
|
|
107
|
+
* discloses beside it. The single writer for `.agents/skills/<dir>/`, shared by
|
|
108
|
+
* `init`, `update`, and the `pnpm skills` dump so a new sibling file can never
|
|
109
|
+
* reach one path and miss another.
|
|
110
|
+
*/
|
|
111
|
+
export async function writeSkillDir(skillsDir, dirName, template, generatedByVersion) {
|
|
112
|
+
const dir = path.join(skillsDir, dirName);
|
|
113
|
+
await FileSystemUtils.writeFile(path.join(dir, 'SKILL.md'), generateSkillContent(template, generatedByVersion));
|
|
114
|
+
for (const [fileName, content] of Object.entries(template.extraFiles ?? {})) {
|
|
115
|
+
await FileSystemUtils.writeFile(path.join(dir, fileName), content);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
106
118
|
/**
|
|
107
119
|
* Writes slash-command files for a tool that has a registered command adapter
|
|
108
120
|
* (Claude Code writes `.claude/commands/tosx/<id>.md`, invocable as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-generation.js","sourceRoot":"","sources":["../../../src/core/shared/skill-generation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,2BAA2B,EAC3B,kCAAkC,EAClC,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,gCAAgC,EAChC,8BAA8B,EAC9B,6BAA6B,EAC7B,oCAAoC,EACpC,4BAA4B,EAC5B,+BAA+B,GAEhC,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAEL,aAAa,EACb,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,gFAAgF;AAChF,4EAA4E;AAC5E,8EAA8E;AAC9E,2EAA2E;AAC3E,gFAAgF;AAEhF,MAAM,a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OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnE,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,UAAU,EAAE,CAAC;QACjD,MAAM,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,QAAQ,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/E,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC7F,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interview mechanics — shared by the two interrogation workflows.
|
|
3
|
+
*
|
|
4
|
+
* `tospec-explore` (converge something not yet written) and `tospec-grill`
|
|
5
|
+
* (pressure-test something already on the table) ask questions differently but
|
|
6
|
+
* obey the same mechanics. They lived as two hand-maintained copies until a
|
|
7
|
+
* one-line rule change had to be made twice; this is the single source of truth.
|
|
8
|
+
*/
|
|
9
|
+
export declare const INTERVIEW_MECHANICS = "- **Batch independent questions; sequence dependent ones.** Ask unrelated questions together in a single turn (use `AskUserQuestion` \u2014 up to 4 at once). A question whose answer depends on another still-open question isn't independent \u2014 hold it for a later turn, once the question it hangs off is settled.\n- **Every question carries a suggested answer** and the reasoning behind it, so the user can confirm instead of writing an essay.\n- **Look up what's checkable; ask what's a decision.** Factual questions (\"does X already exist\", \"what does Y currently do\") are yours to answer from the codebase \u2014 never ask the user something you can verify yourself. Decisions (behavior, scope, trade-offs) are always the user's: ask, and wait for the answer before proceeding.\n- **Probe every answer for its hidden premise.** After each answer, ask what it implies that hasn't been said yet. Don't stop at the first plausible answer; keep pulling the thread until it stops giving new information.";
|
|
10
|
+
//# sourceMappingURL=interview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interview.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/fragments/interview.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,mBAAmB,o/BAG4L,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interview mechanics — shared by the two interrogation workflows.
|
|
3
|
+
*
|
|
4
|
+
* `tospec-explore` (converge something not yet written) and `tospec-grill`
|
|
5
|
+
* (pressure-test something already on the table) ask questions differently but
|
|
6
|
+
* obey the same mechanics. They lived as two hand-maintained copies until a
|
|
7
|
+
* one-line rule change had to be made twice; this is the single source of truth.
|
|
8
|
+
*/
|
|
9
|
+
export const INTERVIEW_MECHANICS = `- **Batch independent questions; sequence dependent ones.** Ask unrelated questions together in a single turn (use \`AskUserQuestion\` — up to 4 at once). A question whose answer depends on another still-open question isn't independent — hold it for a later turn, once the question it hangs off is settled.
|
|
10
|
+
- **Every question carries a suggested answer** and the reasoning behind it, so the user can confirm instead of writing an essay.
|
|
11
|
+
- **Look up what's checkable; ask what's a decision.** Factual questions ("does X already exist", "what does Y currently do") are yours to answer from the codebase — never ask the user something you can verify yourself. Decisions (behavior, scope, trade-offs) are always the user's: ask, and wait for the answer before proceeding.
|
|
12
|
+
- **Probe every answer for its hidden premise.** After each answer, ask what it implies that hasn't been said yet. Don't stop at the first plausible answer; keep pulling the thread until it stops giving new information.`;
|
|
13
|
+
//# sourceMappingURL=interview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interview.js","sourceRoot":"","sources":["../../../../src/core/templates/fragments/interview.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;4NAGyL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next-step option labels — shared by every workflow that hands off.
|
|
3
|
+
*
|
|
4
|
+
* explore, grill, decision and update all end by putting the next action to the
|
|
5
|
+
* user, and all four word their option labels the same way: context-derived
|
|
6
|
+
* prose plus a fixed keyword. Only the source of the prose and the keyword set
|
|
7
|
+
* differ, so those are the parameters and the rule itself lives here once.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @param from Where the label's wording comes from, e.g. "the situation you just explored".
|
|
11
|
+
* @param keywords The allowed keyword literals, e.g. "\`(propose)\`/\`(issue)\`, \`(apply)\`".
|
|
12
|
+
*/
|
|
13
|
+
export declare const nextStepLabelRule: (from: string, keywords: string) => string;
|
|
14
|
+
//# sourceMappingURL=next-step.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-step.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/fragments/next-step.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,MACwR,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next-step option labels — shared by every workflow that hands off.
|
|
3
|
+
*
|
|
4
|
+
* explore, grill, decision and update all end by putting the next action to the
|
|
5
|
+
* user, and all four word their option labels the same way: context-derived
|
|
6
|
+
* prose plus a fixed keyword. Only the source of the prose and the keyword set
|
|
7
|
+
* differ, so those are the parameters and the rule itself lives here once.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @param from Where the label's wording comes from, e.g. "the situation you just explored".
|
|
11
|
+
* @param keywords The allowed keyword literals, e.g. "\`(propose)\`/\`(issue)\`, \`(apply)\`".
|
|
12
|
+
*/
|
|
13
|
+
export const nextStepLabelRule = (from, keywords) => `Write each option label from ${from} — a short, conversational phrase naming the concrete next action — then append the fixed action keyword in parentheses. The keyword is constant (${keywords}); the words before it are not — they must describe *this* action in *this* context, never a canned phrase, and never the raw \`tospec-*\` skill name.`;
|
|
14
|
+
//# sourceMappingURL=next-step.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-step.js","sourceRoot":"","sources":["../../../../src/core/templates/fragments/next-step.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAU,EAAE,CAC1E,gCAAgC,IAAI,qJAAqJ,QAAQ,wJAAwJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verify methodology — apply's automatic final step.
|
|
3
|
+
*
|
|
4
|
+
* verify is not a standalone skill/command; it runs at the end of both apply
|
|
5
|
+
* variants. The methodology is long enough that leaving it inline puts ~45
|
|
6
|
+
* lines of end-of-run review in front of an agent that is still on task 1 of N,
|
|
7
|
+
* so the skill form discloses it to a sibling `VERIFY.md` and keeps only a
|
|
8
|
+
* pointer. The command form has no sibling file, so it inlines the same text.
|
|
9
|
+
* Either way this module is the single source of truth.
|
|
10
|
+
*/
|
|
11
|
+
/** The review protocol itself — shared by the disclosed file and the command. */
|
|
12
|
+
export declare const VERIFY_METHODOLOGY = "Two-axis review of the implementation, run as **independent parallel subagents** so neither pollutes or reranks the other's findings \u2014 a change can pass one axis and fail the other, and reporting them separately is what keeps that visible.\n\n**Scope \u2014 two subagents, one pass each, and that is the whole review.** The subject under review is always the *code diff*, never another review's output. Do not spawn a third agent to grade the two axes' findings, do not re-review a report you have already written, do not audit the audit. Right-sized review beats deep review: enough eyes to catch real problems, no recursion for its own sake.\n\n**Steps**\n\n1. **Gather context**\n ```bash\n tospec status --change \"<name>\" --json\n ```\n Note `schemaName` (sdd \u2192 compare against `specs/`; issue \u2192 compare against `task.md`) and the files this change touched (from `tasks.md`/`task.md`, or `git diff` against the commit before the change started).\n\n2. **Spawn both axes in parallel** \u2014 a single message with two `Agent` tool calls, both `general-purpose`:\n\n **Standards axis prompt** \u2014 include the diff and the brief: \"Report every place the diff violates this repo's documented conventions (cite the file/rule), plus any of Fowler's code smells you spot (Mysterious Name, Duplicated Code, Feature Envy, Data Clumps, Primitive Obsession, Repeated Switches, Shotgun Surgery, Divergent Change, Speculative Generality, Message Chains, Middle Man, Refused Bequest) \u2014 name the smell, quote the hunk, and treat documented repo conventions as overriding the baseline. Distinguish hard violations from judgement calls. Skip anything tooling already enforces.\"\n\n **Spec axis prompt** \u2014 include the diff plus, for sdd, the relevant `specs/<capability>/spec.md` delta content (`tospec show \"<name>\" --json`) and `design.md`'s decisions; for issue, `task.md`'s root cause and fix plan. Brief: \"Report (a) requirements/task items that are missing or partially implemented; (b) behavior in the diff that wasn't asked for (scope creep); (c) requirements that look implemented but the implementation looks wrong, or that deviate from design.md's stated decisions. Quote the spec/task line for each finding.\"\n\n3. **Run the full test suite.** This is a hard gate alongside both axes \u2014 a change with green axes but red tests isn't verified.\n\n4. **Re-validate artifacts**\n ```bash\n tospec validate \"<name>\" --json\n ```\n If validation reports an artifact-format or structural problem, fix that artifact and re-run the command until it passes. A review is not complete while artifact validation is red.\n\n5. **Aggregate \u2014 do not merge or rerank**\n\n Present the two reports under `## Standards` and `## Spec` headings. End with one line per axis: total findings and the worst issue within that axis. Do not pick a single overall verdict across axes.\n\n This is a **mechanical collation you do yourself** \u2014 collect, label, count. It is not another review pass and not a job for a subagent: nothing reviews these two reports.\n\n**Verify output**\n\nReport the two-axis result plus test suite status. If both axes are clean and tests are green, the change is verified \u2014 tell the user it's ready for `tospec-archive`. If either axis has a blocking finding or tests are red, do **not** treat apply as done: fix the issue here (this is still apply) and re-run **only the affected axis against the fixed code** until it's clean \u2014 you are re-reviewing the changed code, not the previous report, and a passing axis is done, so don't re-run it \"to be sure\".\n\n**Verify guardrails**\n- Standards and Spec axes are independent \u2014 never let one axis's findings influence the other's report\n- Full test suite must be green; a clean review with red tests is not verified\n- Quote the specific spec/task line or hunk for every finding \u2014 no unsupported claims\n- **One review pass per axis \u2014 never review the review.** No agent audits another agent's findings, no re-reviewing a report you already wrote; a re-run after a fix targets the changed code, and a clean axis is not re-run for extra confidence";
|
|
13
|
+
/** Contents of the `VERIFY.md` shipped beside each apply skill's `SKILL.md`. */
|
|
14
|
+
export declare const VERIFY_DOC = "# Verify \u2014 apply's final step\n\nRun this once every task in the tracks file is checked off and `tospec validate` passes. It is the last step of `tospec-apply`, not a separate command the user invokes.\n\nTwo-axis review of the implementation, run as **independent parallel subagents** so neither pollutes or reranks the other's findings \u2014 a change can pass one axis and fail the other, and reporting them separately is what keeps that visible.\n\n**Scope \u2014 two subagents, one pass each, and that is the whole review.** The subject under review is always the *code diff*, never another review's output. Do not spawn a third agent to grade the two axes' findings, do not re-review a report you have already written, do not audit the audit. Right-sized review beats deep review: enough eyes to catch real problems, no recursion for its own sake.\n\n**Steps**\n\n1. **Gather context**\n ```bash\n tospec status --change \"<name>\" --json\n ```\n Note `schemaName` (sdd \u2192 compare against `specs/`; issue \u2192 compare against `task.md`) and the files this change touched (from `tasks.md`/`task.md`, or `git diff` against the commit before the change started).\n\n2. **Spawn both axes in parallel** \u2014 a single message with two `Agent` tool calls, both `general-purpose`:\n\n **Standards axis prompt** \u2014 include the diff and the brief: \"Report every place the diff violates this repo's documented conventions (cite the file/rule), plus any of Fowler's code smells you spot (Mysterious Name, Duplicated Code, Feature Envy, Data Clumps, Primitive Obsession, Repeated Switches, Shotgun Surgery, Divergent Change, Speculative Generality, Message Chains, Middle Man, Refused Bequest) \u2014 name the smell, quote the hunk, and treat documented repo conventions as overriding the baseline. Distinguish hard violations from judgement calls. Skip anything tooling already enforces.\"\n\n **Spec axis prompt** \u2014 include the diff plus, for sdd, the relevant `specs/<capability>/spec.md` delta content (`tospec show \"<name>\" --json`) and `design.md`'s decisions; for issue, `task.md`'s root cause and fix plan. Brief: \"Report (a) requirements/task items that are missing or partially implemented; (b) behavior in the diff that wasn't asked for (scope creep); (c) requirements that look implemented but the implementation looks wrong, or that deviate from design.md's stated decisions. Quote the spec/task line for each finding.\"\n\n3. **Run the full test suite.** This is a hard gate alongside both axes \u2014 a change with green axes but red tests isn't verified.\n\n4. **Re-validate artifacts**\n ```bash\n tospec validate \"<name>\" --json\n ```\n If validation reports an artifact-format or structural problem, fix that artifact and re-run the command until it passes. A review is not complete while artifact validation is red.\n\n5. **Aggregate \u2014 do not merge or rerank**\n\n Present the two reports under `## Standards` and `## Spec` headings. End with one line per axis: total findings and the worst issue within that axis. Do not pick a single overall verdict across axes.\n\n This is a **mechanical collation you do yourself** \u2014 collect, label, count. It is not another review pass and not a job for a subagent: nothing reviews these two reports.\n\n**Verify output**\n\nReport the two-axis result plus test suite status. If both axes are clean and tests are green, the change is verified \u2014 tell the user it's ready for `tospec-archive`. If either axis has a blocking finding or tests are red, do **not** treat apply as done: fix the issue here (this is still apply) and re-run **only the affected axis against the fixed code** until it's clean \u2014 you are re-reviewing the changed code, not the previous report, and a passing axis is done, so don't re-run it \"to be sure\".\n\n**Verify guardrails**\n- Standards and Spec axes are independent \u2014 never let one axis's findings influence the other's report\n- Full test suite must be green; a clean review with red tests is not verified\n- Quote the specific spec/task line or hunk for every finding \u2014 no unsupported claims\n- **One review pass per axis \u2014 never review the review.** No agent audits another agent's findings, no re-reviewing a report you already wrote; a re-run after a fix targets the changed code, and a clean axis is not re-run for extra confidence\n";
|
|
15
|
+
/** The pointer that replaces the methodology inside the apply skills. */
|
|
16
|
+
export declare const VERIFY_POINTER = "## Verify (automatic \u2014 apply's final step)\n\nOnce every task is checked off and `tospec validate` passes, **read `VERIFY.md` in this skill's directory and run it in full.** It is apply's last step, not a separate command the user has to invoke. The change stays unfinished \u2014 and must not go to `tospec-archive` \u2014 until that review comes back clean and the full test suite is green.";
|
|
17
|
+
/** The same block for the command form, which has no sibling file to point at. */
|
|
18
|
+
export declare const VERIFY_INLINE = "## Verify (automatic \u2014 apply's final step)\n\nOnce every task is checked off and `tospec validate` passes, run the two-axis review **automatically**. This is not a separate command the user has to invoke \u2014 verify is folded into apply and runs here as its last step, before the change is handed to `tospec-archive`.\n\nTwo-axis review of the implementation, run as **independent parallel subagents** so neither pollutes or reranks the other's findings \u2014 a change can pass one axis and fail the other, and reporting them separately is what keeps that visible.\n\n**Scope \u2014 two subagents, one pass each, and that is the whole review.** The subject under review is always the *code diff*, never another review's output. Do not spawn a third agent to grade the two axes' findings, do not re-review a report you have already written, do not audit the audit. Right-sized review beats deep review: enough eyes to catch real problems, no recursion for its own sake.\n\n**Steps**\n\n1. **Gather context**\n ```bash\n tospec status --change \"<name>\" --json\n ```\n Note `schemaName` (sdd \u2192 compare against `specs/`; issue \u2192 compare against `task.md`) and the files this change touched (from `tasks.md`/`task.md`, or `git diff` against the commit before the change started).\n\n2. **Spawn both axes in parallel** \u2014 a single message with two `Agent` tool calls, both `general-purpose`:\n\n **Standards axis prompt** \u2014 include the diff and the brief: \"Report every place the diff violates this repo's documented conventions (cite the file/rule), plus any of Fowler's code smells you spot (Mysterious Name, Duplicated Code, Feature Envy, Data Clumps, Primitive Obsession, Repeated Switches, Shotgun Surgery, Divergent Change, Speculative Generality, Message Chains, Middle Man, Refused Bequest) \u2014 name the smell, quote the hunk, and treat documented repo conventions as overriding the baseline. Distinguish hard violations from judgement calls. Skip anything tooling already enforces.\"\n\n **Spec axis prompt** \u2014 include the diff plus, for sdd, the relevant `specs/<capability>/spec.md` delta content (`tospec show \"<name>\" --json`) and `design.md`'s decisions; for issue, `task.md`'s root cause and fix plan. Brief: \"Report (a) requirements/task items that are missing or partially implemented; (b) behavior in the diff that wasn't asked for (scope creep); (c) requirements that look implemented but the implementation looks wrong, or that deviate from design.md's stated decisions. Quote the spec/task line for each finding.\"\n\n3. **Run the full test suite.** This is a hard gate alongside both axes \u2014 a change with green axes but red tests isn't verified.\n\n4. **Re-validate artifacts**\n ```bash\n tospec validate \"<name>\" --json\n ```\n If validation reports an artifact-format or structural problem, fix that artifact and re-run the command until it passes. A review is not complete while artifact validation is red.\n\n5. **Aggregate \u2014 do not merge or rerank**\n\n Present the two reports under `## Standards` and `## Spec` headings. End with one line per axis: total findings and the worst issue within that axis. Do not pick a single overall verdict across axes.\n\n This is a **mechanical collation you do yourself** \u2014 collect, label, count. It is not another review pass and not a job for a subagent: nothing reviews these two reports.\n\n**Verify output**\n\nReport the two-axis result plus test suite status. If both axes are clean and tests are green, the change is verified \u2014 tell the user it's ready for `tospec-archive`. If either axis has a blocking finding or tests are red, do **not** treat apply as done: fix the issue here (this is still apply) and re-run **only the affected axis against the fixed code** until it's clean \u2014 you are re-reviewing the changed code, not the previous report, and a passing axis is done, so don't re-run it \"to be sure\".\n\n**Verify guardrails**\n- Standards and Spec axes are independent \u2014 never let one axis's findings influence the other's report\n- Full test suite must be green; a clean review with red tests is not verified\n- Quote the specific spec/task line or hunk for every finding \u2014 no unsupported claims\n- **One review pass per axis \u2014 never review the review.** No agent audits another agent's findings, no re-reviewing a report you already wrote; a re-run after a fix targets the changed code, and a clean axis is not re-run for extra confidence";
|
|
19
|
+
//# sourceMappingURL=verify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/fragments/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,ymIAwCoN,CAAC;AAEpP,gFAAgF;AAChF,eAAO,MAAM,UAAU,6zIAKtB,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,cAAc,kZAE4T,CAAC;AAExV,kFAAkF;AAClF,eAAO,MAAM,aAAa,i7IAIJ,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Verify methodology
|
|
2
|
+
* Verify methodology — apply's automatic final step.
|
|
3
3
|
*
|
|
4
|
-
* verify is
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* verify is not a standalone skill/command; it runs at the end of both apply
|
|
5
|
+
* variants. The methodology is long enough that leaving it inline puts ~45
|
|
6
|
+
* lines of end-of-run review in front of an agent that is still on task 1 of N,
|
|
7
|
+
* so the skill form discloses it to a sibling `VERIFY.md` and keeps only a
|
|
8
|
+
* pointer. The command form has no sibling file, so it inlines the same text.
|
|
9
|
+
* Either way this module is the single source of truth.
|
|
7
10
|
*/
|
|
11
|
+
/** The review protocol itself — shared by the disclosed file and the command. */
|
|
8
12
|
export const VERIFY_METHODOLOGY = `Two-axis review of the implementation, run as **independent parallel subagents** so neither pollutes or reranks the other's findings — a change can pass one axis and fail the other, and reporting them separately is what keeps that visible.
|
|
9
13
|
|
|
10
14
|
**Scope — two subagents, one pass each, and that is the whole review.** The subject under review is always the *code diff*, never another review's output. Do not spawn a third agent to grade the two axes' findings, do not re-review a report you have already written, do not audit the audit. Right-sized review beats deep review: enough eyes to catch real problems, no recursion for its own sake.
|
|
@@ -46,4 +50,21 @@ Report the two-axis result plus test suite status. If both axes are clean and te
|
|
|
46
50
|
- Full test suite must be green; a clean review with red tests is not verified
|
|
47
51
|
- Quote the specific spec/task line or hunk for every finding — no unsupported claims
|
|
48
52
|
- **One review pass per axis — never review the review.** No agent audits another agent's findings, no re-reviewing a report you already wrote; a re-run after a fix targets the changed code, and a clean axis is not re-run for extra confidence`;
|
|
53
|
+
/** Contents of the `VERIFY.md` shipped beside each apply skill's `SKILL.md`. */
|
|
54
|
+
export const VERIFY_DOC = `# Verify — apply's final step
|
|
55
|
+
|
|
56
|
+
Run this once every task in the tracks file is checked off and \`tospec validate\` passes. It is the last step of \`tospec-apply\`, not a separate command the user invokes.
|
|
57
|
+
|
|
58
|
+
${VERIFY_METHODOLOGY}
|
|
59
|
+
`;
|
|
60
|
+
/** The pointer that replaces the methodology inside the apply skills. */
|
|
61
|
+
export const VERIFY_POINTER = `## Verify (automatic — apply's final step)
|
|
62
|
+
|
|
63
|
+
Once every task is checked off and \`tospec validate\` passes, **read \`VERIFY.md\` in this skill's directory and run it in full.** It is apply's last step, not a separate command the user has to invoke. The change stays unfinished — and must not go to \`tospec-archive\` — until that review comes back clean and the full test suite is green.`;
|
|
64
|
+
/** The same block for the command form, which has no sibling file to point at. */
|
|
65
|
+
export const VERIFY_INLINE = `## Verify (automatic — apply's final step)
|
|
66
|
+
|
|
67
|
+
Once every task is checked off and \`tospec validate\` passes, run the two-axis review **automatically**. This is not a separate command the user has to invoke — verify is folded into apply and runs here as its last step, before the change is handed to \`tospec-archive\`.
|
|
68
|
+
|
|
69
|
+
${VERIFY_METHODOLOGY}`;
|
|
49
70
|
//# sourceMappingURL=verify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../../src/core/templates/fragments/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mPAwCiN,CAAC;AAEpP,gFAAgF;AAChF,MAAM,CAAC,MAAM,UAAU,GAAG;;;;EAIxB,kBAAkB;CACnB,CAAC;AAEF,yEAAyE;AACzE,MAAM,CAAC,MAAM,cAAc,GAAG;;uVAEyT,CAAC;AAExV,kFAAkF;AAClF,MAAM,CAAC,MAAM,aAAa,GAAG;;;;EAI3B,kBAAkB,EAAE,CAAC"}
|
|
@@ -11,6 +11,12 @@ export interface SkillTemplate {
|
|
|
11
11
|
allowedTools?: string[];
|
|
12
12
|
/** When true, emits `disable-model-invocation: true` so the skill only runs when explicitly invoked (e.g. via its slash command), never auto-triggered. */
|
|
13
13
|
disableModelInvocation?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Extra files written beside `SKILL.md` in the skill directory, keyed by
|
|
16
|
+
* filename. Used for progressive disclosure: reference the skill points at
|
|
17
|
+
* but shouldn't carry inline (e.g. apply's `VERIFY.md`).
|
|
18
|
+
*/
|
|
19
|
+
extraFiles?: Record<string, string>;
|
|
14
20
|
}
|
|
15
21
|
export interface CommandTemplate {
|
|
16
22
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/templates/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,2JAA2J;IAC3J,sBAAsB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/templates/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,2JAA2J;IAC3J,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/workflows/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/workflows/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAsHlE,wBAAgB,2BAA2B,IAAI,aAAa,CAe3D;AAED,wBAAgB,6BAA6B,IAAI,eAAe,CAY/D;AA+BD,wBAAgB,kCAAkC,IAAI,aAAa,CAelE;AAED,wBAAgB,oCAAoC,IAAI,eAAe,CAYtE"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VERIFY_DOC, VERIFY_POINTER, VERIFY_INLINE } from '../fragments/verify.js';
|
|
2
|
+
/**
|
|
3
|
+
* @param verifySection Skills pass `VERIFY_POINTER` (methodology disclosed to a
|
|
4
|
+
* sibling `VERIFY.md`); commands pass `VERIFY_INLINE`, having no sibling file.
|
|
5
|
+
*/
|
|
2
6
|
// ponytail: one parameterized template literal, not a template engine.
|
|
3
|
-
function buildApplyBody(v) {
|
|
7
|
+
function buildApplyBody(v, verifySection) {
|
|
4
8
|
return `**Task tracking is file-based only.** The tracks file's checkboxes (\`- [ ]\` / \`- [x]\`) are the single source of truth for progress. Never use a built-in todo or task-tracking tool — editing the checkbox in the file is the only way progress gets recorded.
|
|
5
9
|
|
|
6
10
|
**Steps**
|
|
@@ -32,7 +36,7 @@ function buildApplyBody(v) {
|
|
|
32
36
|
|
|
33
37
|
5. **Work the tracks file one item at a time**
|
|
34
38
|
|
|
35
|
-
The tracks file is \`tasks.md\` (sdd) or \`task.md\` (issue). ${v.
|
|
39
|
+
The tracks file is \`tasks.md\` (sdd) or \`task.md\` (issue). ${v.checkOffRule} Never batch multiple items into one pass.
|
|
36
40
|
|
|
37
41
|
Before starting an item, re-read the parts of design/specs that cover its scope — don't rely on memory from earlier in the conversation, context may have been compressed since.
|
|
38
42
|
|
|
@@ -50,11 +54,7 @@ ${v.issueBranch}
|
|
|
50
54
|
\`\`\`
|
|
51
55
|
Implementation sometimes touches tasks.md/specs directly (adding a discovered edge case, correcting an estimate) — confirm the change's artifacts are still structurally valid before handing off. Fix and re-run until it passes.
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Once every task is checked off and \`tospec validate\` passes, run the two-axis review **automatically**. This is not a separate command the user has to invoke — verify is folded into apply and runs here as its last step, before the change is handed to \`tospec-archive\`.
|
|
56
|
-
|
|
57
|
-
${VERIFY_METHODOLOGY}
|
|
57
|
+
${verifySection}
|
|
58
58
|
|
|
59
59
|
**Output**
|
|
60
60
|
|
|
@@ -73,8 +73,8 @@ ${v.guardrailsHead}
|
|
|
73
73
|
// -----------------------------------------------------------------------------
|
|
74
74
|
// Default apply — implement per slice; tests are optional, not mandated
|
|
75
75
|
// -----------------------------------------------------------------------------
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
const APPLY_VARIANT = {
|
|
77
|
+
checkOffRule: 'Take the next unchecked item, implement it, confirm it works against its specs, check it off (\`- [ ]\` → \`- [x]\`), then move to the next.',
|
|
78
78
|
sddBranch: `### sdd branch — implement per slice
|
|
79
79
|
|
|
80
80
|
For each tracer-bullet slice in \`tasks.md\`:
|
|
@@ -82,20 +82,22 @@ For each tracer-bullet slice in \`tasks.md\`:
|
|
|
82
82
|
2. Verify the result matches the behavior the slice's specs describe, and that the existing test suite still passes.
|
|
83
83
|
3. Check off the slice, then move to the next one — one slice per cycle. Refactoring is not part of this loop; it belongs to the verify step at the end of this workflow.
|
|
84
84
|
|
|
85
|
-
Writing a new test is **not required** in this loop — add one when it earns its keep. If you do, put it at the seam \`design.md\` named and don't test internals or add implementation-coupled assertions (mocking internal collaborators, reaching into private state, checking the database instead of the interface)
|
|
85
|
+
Writing a new test is **not required** in this loop — add one when it earns its keep. If you do, put it at the seam \`design.md\` named and don't test internals or add implementation-coupled assertions (mocking internal collaborators, reaching into private state, checking the database instead of the interface).`,
|
|
86
86
|
issueBranch: `### issue branch — fix root cause
|
|
87
87
|
|
|
88
88
|
Read \`task.md\`'s feedback loop, then fix the root cause, not the symptom — if the same defect is reachable through multiple callers of a shared function, the fix belongs in the shared function, not patched into just the caller the ticket named (grep every caller of the function you're touching). Confirm the fix with \`task.md\`'s feedback loop and keep the existing suite green.
|
|
89
89
|
|
|
90
|
-
A regression test is **not required** here — add one when the bug is likely to recur, extending the existing test if there's one at the right seam
|
|
90
|
+
A regression test is **not required** here — add one when the bug is likely to recur, extending the existing test if there's one at the right seam.`,
|
|
91
91
|
guardrailsHead: `- One slice/task at a time — no batching
|
|
92
92
|
- Tests are optional in this loop — write one when it earns its keep, and never let a missing test block progress; \`tospec-apply-with-tdd\` is the variant that mandates them
|
|
93
93
|
- Never delete, skip, or weaken an existing test to get to green — fix the code instead`,
|
|
94
|
-
}
|
|
94
|
+
};
|
|
95
|
+
const APPLY_BODY = buildApplyBody(APPLY_VARIANT, VERIFY_POINTER);
|
|
96
|
+
const APPLY_BODY_COMMAND = buildApplyBody(APPLY_VARIANT, VERIFY_INLINE);
|
|
95
97
|
export function getTospecApplySkillTemplate() {
|
|
96
98
|
return {
|
|
97
99
|
name: 'tospec-apply',
|
|
98
|
-
description:
|
|
100
|
+
description: "Implement a tospec change's tasks slice by slice (tests optional), auto-verifying at the end. Use when the user wants to start or continue implementing a change.",
|
|
99
101
|
instructions: `Implement a change's tasks one slice at a time, branching by schema, then automatically run the two-axis verify review — ready for \`tospec-archive\` when done.
|
|
100
102
|
|
|
101
103
|
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
@@ -103,8 +105,9 @@ export function getTospecApplySkillTemplate() {
|
|
|
103
105
|
${APPLY_BODY}`,
|
|
104
106
|
license: 'MIT',
|
|
105
107
|
compatibility: 'Requires tospec CLI.',
|
|
106
|
-
metadata: { author: 'tospec'
|
|
107
|
-
allowedTools: ['Bash
|
|
108
|
+
metadata: { author: 'tospec' },
|
|
109
|
+
allowedTools: ['Bash', 'Read', 'Write', 'Edit', 'Grep', 'Glob', 'Agent', 'AskUserQuestion'],
|
|
110
|
+
extraFiles: { 'VERIFY.md': VERIFY_DOC },
|
|
108
111
|
};
|
|
109
112
|
}
|
|
110
113
|
export function getTospecApplyCommandTemplate() {
|
|
@@ -117,14 +120,14 @@ export function getTospecApplyCommandTemplate() {
|
|
|
117
120
|
|
|
118
121
|
**Input**: Optionally specify a change name after \`tospec-apply\` (e.g., \`tospec-apply add-auth\`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
119
122
|
|
|
120
|
-
${
|
|
123
|
+
${APPLY_BODY_COMMAND}`,
|
|
121
124
|
};
|
|
122
125
|
}
|
|
123
126
|
// -----------------------------------------------------------------------------
|
|
124
127
|
// TDD apply — strict red → green per slice
|
|
125
128
|
// -----------------------------------------------------------------------------
|
|
126
|
-
const
|
|
127
|
-
|
|
129
|
+
const APPLY_TDD_VARIANT = {
|
|
130
|
+
checkOffRule: 'Take the next unchecked item, implement it, check it off (\`- [ ]\` → \`- [x]\`) only once its test is green, then move to the next.',
|
|
128
131
|
sddBranch: `### sdd branch — TDD per slice
|
|
129
132
|
|
|
130
133
|
For each tracer-bullet slice in \`tasks.md\`:
|
|
@@ -142,7 +145,9 @@ Read \`task.md\`'s feedback loop. Then:
|
|
|
142
145
|
Fix root cause, not symptom — if the same defect is reachable through multiple callers of a shared function, the fix belongs in the shared function, not patched into just the caller the ticket named.`,
|
|
143
146
|
guardrailsHead: `- Red before green, always — never write the implementation before its failing test
|
|
144
147
|
- One slice/task at a time — no batching`,
|
|
145
|
-
}
|
|
148
|
+
};
|
|
149
|
+
const APPLY_TDD_BODY = buildApplyBody(APPLY_TDD_VARIANT, VERIFY_POINTER);
|
|
150
|
+
const APPLY_TDD_BODY_COMMAND = buildApplyBody(APPLY_TDD_VARIANT, VERIFY_INLINE);
|
|
146
151
|
export function getTospecApplyWithTDDSkillTemplate() {
|
|
147
152
|
return {
|
|
148
153
|
name: 'tospec-apply-with-tdd',
|
|
@@ -154,8 +159,9 @@ export function getTospecApplyWithTDDSkillTemplate() {
|
|
|
154
159
|
${APPLY_TDD_BODY}`,
|
|
155
160
|
license: 'MIT',
|
|
156
161
|
compatibility: 'Requires tospec CLI.',
|
|
157
|
-
metadata: { author: 'tospec'
|
|
158
|
-
allowedTools: ['Bash
|
|
162
|
+
metadata: { author: 'tospec' },
|
|
163
|
+
allowedTools: ['Bash', 'Read', 'Write', 'Edit', 'Grep', 'Glob', 'Agent', 'AskUserQuestion'],
|
|
164
|
+
extraFiles: { 'VERIFY.md': VERIFY_DOC },
|
|
159
165
|
};
|
|
160
166
|
}
|
|
161
167
|
export function getTospecApplyWithTDDCommandTemplate() {
|
|
@@ -168,7 +174,7 @@ export function getTospecApplyWithTDDCommandTemplate() {
|
|
|
168
174
|
|
|
169
175
|
**Input**: Optionally specify a change name after \`tospec-apply-with-tdd\` (e.g., \`tospec-apply-with-tdd add-auth\`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
170
176
|
|
|
171
|
-
${
|
|
177
|
+
${APPLY_TDD_BODY_COMMAND}`,
|
|
172
178
|
};
|
|
173
179
|
}
|
|
174
180
|
//# sourceMappingURL=apply.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../../src/core/templates/workflows/apply.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../../src/core/templates/workflows/apply.ts"],"names":[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/core/templates/workflows/archive.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/workflows/archive.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAiDlE,wBAAgB,6BAA6B,IAAI,aAAa,CAc7D;AAED,wBAAgB,+BAA+B,IAAI,eAAe,CAYjE"}
|