@dsalazardev/ai-hub-cli 0.1.0 → 0.3.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.md +63 -4
- package/dist/backup/snapshots.js +12 -0
- package/dist/catalog.d.ts +83 -0
- package/dist/catalog.js +350 -0
- package/dist/cli/args.js +1 -0
- package/dist/cli/context.js +5 -0
- package/dist/cli/doctor.js +105 -14
- package/dist/cli/items.d.ts +1 -1
- package/dist/cli/items.js +1 -1
- package/dist/cli/maintenance.js +105 -51
- package/dist/cli/memory.js +9 -0
- package/dist/cli/onboarding.d.ts +33 -1
- package/dist/cli/onboarding.js +450 -54
- package/dist/cli/run.d.ts +3 -1
- package/dist/cli/run.js +10 -7
- package/dist/cli/types.d.ts +3 -0
- package/dist/concurrency.d.ts +5 -0
- package/dist/concurrency.js +23 -0
- package/dist/engine/engine.d.ts +19 -1
- package/dist/engine/engine.js +52 -0
- package/dist/engine/gates.d.ts +16 -0
- package/dist/engine/gates.js +154 -15
- package/dist/harness/memory/ledger.d.ts +6 -0
- package/dist/harness/memory/ledger.js +44 -2
- package/dist/manifest/manifest.d.ts +20 -1
- package/dist/manifest/manifest.js +35 -11
- package/dist/presets/materialize.d.ts +14 -1
- package/dist/presets/materialize.js +132 -11
- package/dist/speckit/binding.d.ts +15 -0
- package/dist/speckit/binding.js +66 -0
- package/dist/speckit/commands.d.ts +46 -0
- package/dist/speckit/commands.js +131 -0
- package/dist/speckit/doctor.d.ts +14 -0
- package/dist/speckit/doctor.js +103 -0
- package/dist/speckit/runner.d.ts +19 -0
- package/dist/speckit/runner.js +22 -0
- package/dist/speckit/seal.d.ts +12 -0
- package/dist/speckit/seal.js +47 -0
- package/dist/speckit/settings.d.ts +36 -0
- package/dist/speckit/settings.js +75 -0
- package/dist/speckit/state.d.ts +59 -0
- package/dist/speckit/state.js +279 -0
- package/dist/speckit/version.d.ts +8 -0
- package/dist/speckit/version.js +53 -0
- package/dist/sync/config.js +3 -2
- package/dist/sync/render.js +35 -1
- package/dist/sync/sync.d.ts +4 -0
- package/dist/sync/sync.js +68 -25
- package/dist/sync/targets.d.ts +13 -0
- package/dist/sync/targets.js +5 -0
- package/engine/engine.yaml +65 -31
- package/manifest.json +28 -47
- package/package.json +2 -1
- package/presets/angular-express/preset.yaml +2 -4
- package/presets/base/preset.yaml +1 -3
- package/presets/generic-ts/preset.yaml +1 -3
- package/presets/python/preset.yaml +1 -3
- package/rules/skill-quality/skill-behavior-rubric.md +63 -0
- package/rules/skill-quality/skill-harden-rubric.md +102 -0
- package/rules/skill-quality/skill-migration-brief.md +200 -0
- package/rules/skill-quality/skill-rubric.md +40 -0
- package/schema/engine.schema.json +22 -3
- package/schema/manifest.schema.json +22 -0
- package/skills/shared/analyze/SKILL.md +2 -1
- package/skills/shared/clarify/SKILL.md +2 -1
- package/skills/shared/implement/SKILL.md +2 -1
- package/skills/shared/plan/SKILL.md +2 -1
- package/skills/shared/review/SKILL.md +2 -1
- package/skills/shared/sdd/SKILL.md +2 -1
- package/skills/shared/sdd-init/SKILL.md +2 -1
- package/skills/shared/ship/SKILL.md +2 -1
- package/skills/shared/specify/SKILL.md +2 -1
- package/skills/shared/tasks/SKILL.md +2 -1
- package/skills/shared/verify/SKILL.md +2 -1
- package/skills/shared/speckit-analyze/SKILL.md +0 -35
- package/skills/shared/speckit-assess-decide/SKILL.md +0 -36
- package/skills/shared/speckit-assess-define/SKILL.md +0 -36
- package/skills/shared/speckit-assess-intake/SKILL.md +0 -38
- package/skills/shared/speckit-assess-research/SKILL.md +0 -36
- package/skills/shared/speckit-assess-shape/SKILL.md +0 -36
- package/skills/shared/speckit-bug-assess/SKILL.md +0 -38
- package/skills/shared/speckit-bug-fix/SKILL.md +0 -37
- package/skills/shared/speckit-bug-test/SKILL.md +0 -37
- package/skills/shared/speckit-checklist/SKILL.md +0 -35
- package/skills/shared/speckit-clarify/SKILL.md +0 -32
- package/skills/shared/speckit-constitution/SKILL.md +0 -35
- package/skills/shared/speckit-converge/SKILL.md +0 -36
- package/skills/shared/speckit-implement/SKILL.md +0 -32
- package/skills/shared/speckit-plan/SKILL.md +0 -37
- package/skills/shared/speckit-specify/SKILL.md +0 -36
- package/skills/shared/speckit-tasks/SKILL.md +0 -34
package/dist/sync/sync.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { mapLimit } from '../concurrency.js';
|
|
3
4
|
import { isEngineCheckout } from '../source-checkout.js';
|
|
4
5
|
import { loadSyncConfig, resolveSourcePath } from './config.js';
|
|
6
|
+
import { ownedBySpeckit, readSpeckitState, speckitOwnedPaths } from '../speckit/state.js';
|
|
5
7
|
import { normalize, renderAll } from './render.js';
|
|
6
8
|
import { GENERATOR_VERSION, readLock, sha256, writeLock, } from './lock.js';
|
|
7
9
|
export class SyncSourceError extends Error {
|
|
@@ -14,6 +16,16 @@ export class SyncSourceError extends Error {
|
|
|
14
16
|
this.name = 'SyncSourceError';
|
|
15
17
|
}
|
|
16
18
|
}
|
|
19
|
+
export class SpeckitOwnershipError extends Error {
|
|
20
|
+
paths;
|
|
21
|
+
constructor(paths) {
|
|
22
|
+
super(`colisión de propiedad con Spec Kit: ${paths.join(', ')}\n` +
|
|
23
|
+
'Esas rutas pertenecen a Spec Kit (sus manifiestos de integración, sus extensiones o el espacio speckit-*/speckit.*); ' +
|
|
24
|
+
'ai-hub no las escribe. No se escribió ningún archivo ni el lock.');
|
|
25
|
+
this.paths = paths;
|
|
26
|
+
this.name = 'SpeckitOwnershipError';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
17
29
|
export class SyncSourceCheckoutError extends Error {
|
|
18
30
|
root;
|
|
19
31
|
constructor(root) {
|
|
@@ -33,16 +45,28 @@ export async function runSync(root, options) {
|
|
|
33
45
|
const rendered = await renderAll(root, config);
|
|
34
46
|
const previous = await readLock(root);
|
|
35
47
|
const result = { written: [], removed: [], problems: [] };
|
|
48
|
+
// Un dueño por archivo: lo que reclama Spec Kit no se escribe ni se borra desde aquí.
|
|
49
|
+
const speckitPresent = (await readSpeckitState(root)).present;
|
|
50
|
+
const owned = await speckitOwnedPaths(root, config.tools);
|
|
51
|
+
const isSpeckit = (rel) => ownedBySpeckit(rel, owned, config.tools, speckitPresent);
|
|
52
|
+
const collisions = [...rendered.keys()].filter(isSpeckit).sort();
|
|
53
|
+
if (collisions.length > 0) {
|
|
54
|
+
if (options.check) {
|
|
55
|
+
result.problems.push(...collisions.map((rel) => `colisión con Spec Kit: ${rel}`));
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
throw new SpeckitOwnershipError(collisions);
|
|
59
|
+
}
|
|
36
60
|
const symlinks = await findSymlinks(root, config, rendered);
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
: [];
|
|
61
|
+
const previousEntries = previous ? Object.keys(previous.files).filter((rel) => !rendered.has(rel)) : [];
|
|
62
|
+
// Entradas que pasaron a Spec Kit: se sueltan del lock sin tocar el archivo de su nuevo dueño.
|
|
63
|
+
const transferred = previousEntries.filter(isSpeckit).sort();
|
|
64
|
+
const obsolete = previousEntries.filter((rel) => !isSpeckit(rel)).sort();
|
|
42
65
|
if (options.check) {
|
|
43
66
|
result.problems.push(...(await checkCopies(root, rendered, previous)));
|
|
44
67
|
result.problems.push(...symlinks.map((rel) => `enlace simbólico no permitido: ${rel}`));
|
|
45
68
|
result.problems.push(...obsolete.map((rel) => `destino obsoleto: ${rel}`));
|
|
69
|
+
result.problems.push(...transferred.map((rel) => `propiedad transferida a Spec Kit (ejecuta ai-hub sync): ${rel}`));
|
|
46
70
|
return result;
|
|
47
71
|
}
|
|
48
72
|
const nextLock = await buildLock(root, rendered);
|
|
@@ -54,16 +78,21 @@ export async function runSync(root, options) {
|
|
|
54
78
|
await fs.rm(path.join(root, rel), { force: true });
|
|
55
79
|
result.removed.push(rel);
|
|
56
80
|
}
|
|
57
|
-
|
|
81
|
+
// Un destino obsoleto no deja su carpeta vacía (p. ej. `.github/skills/speckit-plan/` tras 0.2.x).
|
|
82
|
+
for (const dir of [...new Set(obsolete.map((rel) => path.posix.dirname(rel)))].sort((a, b) => b.length - a.length)) {
|
|
83
|
+
await pruneEmptyDirs(root, dir);
|
|
84
|
+
}
|
|
85
|
+
const written = await mapLimit(sortedEntries(rendered), 24, async ([rel, file]) => {
|
|
58
86
|
const abs = path.join(root, rel);
|
|
59
87
|
const current = await readCopy(abs);
|
|
60
88
|
if (current === file.content) {
|
|
61
|
-
|
|
89
|
+
return null;
|
|
62
90
|
}
|
|
63
91
|
await fs.mkdir(path.dirname(abs), { recursive: true });
|
|
64
92
|
await fs.writeFile(abs, file.content, 'utf8');
|
|
65
|
-
|
|
66
|
-
}
|
|
93
|
+
return rel;
|
|
94
|
+
});
|
|
95
|
+
result.written.push(...written.filter((rel) => rel !== null));
|
|
67
96
|
await writeLock(root, nextLock);
|
|
68
97
|
return result;
|
|
69
98
|
}
|
|
@@ -73,26 +102,24 @@ function sourceDescription(source) {
|
|
|
73
102
|
: `fuente: ${source}`;
|
|
74
103
|
}
|
|
75
104
|
async function checkCopies(root, rendered, previous) {
|
|
76
|
-
const problems = []
|
|
77
|
-
for (const [rel, file] of sortedEntries(rendered)) {
|
|
105
|
+
const problems = await mapLimit(sortedEntries(rendered), 24, async ([rel, file]) => {
|
|
78
106
|
const current = await readCopy(path.join(root, rel));
|
|
79
107
|
if (current === null) {
|
|
80
|
-
|
|
108
|
+
return `falta ${rel} (${sourceDescription(file.source)})`;
|
|
81
109
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (registered && sha256(current) !== registered.sha256) {
|
|
85
|
-
const hint = file.source.startsWith('@engine/')
|
|
86
|
-
? 'viene del motor; actualiza el paquete'
|
|
87
|
-
: `edita la fuente: ${file.source}`;
|
|
88
|
-
problems.push(`editado a mano: ${rel} (${hint}; luego ejecuta ai-hub sync)`);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
problems.push(`desactualizado: ${rel} (${sourceDescription(file.source)})`);
|
|
92
|
-
}
|
|
110
|
+
if (current === file.content) {
|
|
111
|
+
return null;
|
|
93
112
|
}
|
|
94
|
-
|
|
95
|
-
|
|
113
|
+
const registered = previous?.files[rel];
|
|
114
|
+
if (registered && sha256(current) !== registered.sha256) {
|
|
115
|
+
const hint = file.source.startsWith('@engine/')
|
|
116
|
+
? 'viene del motor; actualiza el paquete'
|
|
117
|
+
: `edita la fuente: ${file.source}`;
|
|
118
|
+
return `editado a mano: ${rel} (${hint}; luego ejecuta ai-hub sync)`;
|
|
119
|
+
}
|
|
120
|
+
return `desactualizado: ${rel} (${sourceDescription(file.source)})`;
|
|
121
|
+
});
|
|
122
|
+
return problems.filter((problem) => problem !== null);
|
|
96
123
|
}
|
|
97
124
|
export async function buildLock(root, rendered) {
|
|
98
125
|
const sources = {};
|
|
@@ -138,6 +165,9 @@ function categoryOf(source) {
|
|
|
138
165
|
if (source === '@engine/engine/preflight.md' || source === 'engine/preflight.md') {
|
|
139
166
|
return 'preflight';
|
|
140
167
|
}
|
|
168
|
+
if (source === '@engine/engine/engine.yaml') {
|
|
169
|
+
return 'rules';
|
|
170
|
+
}
|
|
141
171
|
if (source.startsWith('@engine/skills/') || source.includes('/skills/')) {
|
|
142
172
|
return 'skills';
|
|
143
173
|
}
|
|
@@ -276,6 +306,19 @@ async function collectSymlinks(root, relDir, found) {
|
|
|
276
306
|
}
|
|
277
307
|
}
|
|
278
308
|
}
|
|
309
|
+
/** Borra `rel` y sus padres mientras estén vacíos, sin salir de `root`. */
|
|
310
|
+
async function pruneEmptyDirs(root, rel) {
|
|
311
|
+
let current = rel;
|
|
312
|
+
while (current !== '.' && current !== '' && !current.startsWith('..')) {
|
|
313
|
+
const abs = path.join(root, current);
|
|
314
|
+
const entries = await fs.readdir(abs).catch(() => null);
|
|
315
|
+
if (entries === null || entries.length > 0) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
await fs.rmdir(abs).catch(() => undefined);
|
|
319
|
+
current = path.posix.dirname(current);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
279
322
|
async function readCopy(abs) {
|
|
280
323
|
const text = await fs.readFile(abs, 'utf8').catch(() => null);
|
|
281
324
|
return text === null ? null : normalize(text);
|
package/dist/sync/targets.d.ts
CHANGED
|
@@ -3,6 +3,17 @@ export type ToolId = (typeof TOOL_IDS)[number];
|
|
|
3
3
|
export type SkillShape = 'dir' | 'file';
|
|
4
4
|
export type RuleShape = 'md' | 'mdc' | 'instructions';
|
|
5
5
|
export type HookKind = 'markdown' | 'cursor-mdc' | 'copilot-instructions';
|
|
6
|
+
/**
|
|
7
|
+
* Integración de Spec Kit que sirve a un destino. `commandsDir` es donde Spec Kit escribe
|
|
8
|
+
* sus comandos y delimita el espacio de nombres reservado `speckit-*` / `speckit.*`.
|
|
9
|
+
* `skill-dir` escribe `<dir>/speckit-plan/SKILL.md`; `command-file` escribe `<dir>/speckit.plan.md`.
|
|
10
|
+
*/
|
|
11
|
+
export interface SpeckitTarget {
|
|
12
|
+
integration: string;
|
|
13
|
+
separator: '-' | '.';
|
|
14
|
+
commandsDir: string;
|
|
15
|
+
layout: 'skill-dir' | 'command-file';
|
|
16
|
+
}
|
|
6
17
|
export interface ToolTargets {
|
|
7
18
|
skills: string;
|
|
8
19
|
agents: string | null;
|
|
@@ -11,6 +22,8 @@ export interface ToolTargets {
|
|
|
11
22
|
skillShape: SkillShape;
|
|
12
23
|
ruleShape: RuleShape;
|
|
13
24
|
hookKind: HookKind;
|
|
25
|
+
/** `null`: el destino no recibe Spec Kit (Copilot). */
|
|
26
|
+
speckit: SpeckitTarget | null;
|
|
14
27
|
}
|
|
15
28
|
/**
|
|
16
29
|
* Declarative destination table. Adding a tool means adding one row and one id
|
package/dist/sync/targets.js
CHANGED
|
@@ -12,6 +12,7 @@ export const TARGETS = {
|
|
|
12
12
|
skillShape: 'dir',
|
|
13
13
|
ruleShape: 'md',
|
|
14
14
|
hookKind: 'markdown',
|
|
15
|
+
speckit: { integration: 'claude', separator: '-', commandsDir: '.claude/skills', layout: 'skill-dir' },
|
|
15
16
|
},
|
|
16
17
|
opencode: {
|
|
17
18
|
skills: '.opencode/skills',
|
|
@@ -21,6 +22,7 @@ export const TARGETS = {
|
|
|
21
22
|
skillShape: 'dir',
|
|
22
23
|
ruleShape: 'md',
|
|
23
24
|
hookKind: 'markdown',
|
|
25
|
+
speckit: { integration: 'opencode', separator: '.', commandsDir: '.opencode/commands', layout: 'command-file' },
|
|
24
26
|
},
|
|
25
27
|
pi: {
|
|
26
28
|
skills: '.pi/skills',
|
|
@@ -30,6 +32,7 @@ export const TARGETS = {
|
|
|
30
32
|
skillShape: 'dir',
|
|
31
33
|
ruleShape: 'md',
|
|
32
34
|
hookKind: 'markdown',
|
|
35
|
+
speckit: { integration: 'pi', separator: '.', commandsDir: '.pi/prompts', layout: 'command-file' },
|
|
33
36
|
},
|
|
34
37
|
cursor: {
|
|
35
38
|
skills: '.cursor/rules',
|
|
@@ -39,6 +42,7 @@ export const TARGETS = {
|
|
|
39
42
|
skillShape: 'file',
|
|
40
43
|
ruleShape: 'mdc',
|
|
41
44
|
hookKind: 'cursor-mdc',
|
|
45
|
+
speckit: { integration: 'cursor-agent', separator: '-', commandsDir: '.cursor/skills', layout: 'skill-dir' },
|
|
42
46
|
},
|
|
43
47
|
copilot: {
|
|
44
48
|
skills: '.github/skills',
|
|
@@ -48,6 +52,7 @@ export const TARGETS = {
|
|
|
48
52
|
skillShape: 'dir',
|
|
49
53
|
ruleShape: 'instructions',
|
|
50
54
|
hookKind: 'copilot-instructions',
|
|
55
|
+
speckit: null,
|
|
51
56
|
},
|
|
52
57
|
};
|
|
53
58
|
export function isToolId(value) {
|
package/engine/engine.yaml
CHANGED
|
@@ -113,87 +113,87 @@ commands:
|
|
|
113
113
|
name: /speckit-assess-intake
|
|
114
114
|
lane: assessment
|
|
115
115
|
artifacts: [intake.md]
|
|
116
|
-
exit: [
|
|
116
|
+
exit: [DONE, BLOCKED]
|
|
117
117
|
role: spec-explorer
|
|
118
|
-
|
|
118
|
+
speckit: speckit.assess.intake
|
|
119
119
|
- id: assess-research
|
|
120
120
|
name: /speckit-assess-research
|
|
121
121
|
lane: assessment
|
|
122
122
|
artifacts: [research.md]
|
|
123
|
-
exit: [
|
|
123
|
+
exit: [DONE, BLOCKED]
|
|
124
124
|
role: spec-explorer
|
|
125
|
-
|
|
125
|
+
speckit: speckit.assess.research
|
|
126
126
|
- id: assess-define
|
|
127
127
|
name: /speckit-assess-define
|
|
128
128
|
lane: assessment
|
|
129
129
|
artifacts: [problem.md]
|
|
130
|
-
exit: [
|
|
130
|
+
exit: [DONE, BLOCKED]
|
|
131
131
|
role: spec-explorer
|
|
132
|
-
|
|
132
|
+
speckit: speckit.assess.define
|
|
133
133
|
- id: assess-shape
|
|
134
134
|
name: /speckit-assess-shape
|
|
135
135
|
lane: assessment
|
|
136
136
|
artifacts: [concept.md]
|
|
137
|
-
exit: [
|
|
137
|
+
exit: [DONE, BLOCKED]
|
|
138
138
|
role: spec-explorer
|
|
139
|
-
|
|
139
|
+
speckit: speckit.assess.shape
|
|
140
140
|
- id: assess-decide
|
|
141
141
|
name: /speckit-assess-decide
|
|
142
142
|
lane: assessment
|
|
143
143
|
artifacts: [decision.md]
|
|
144
|
-
exit: [GO,
|
|
144
|
+
exit: [GO, NEEDS_CLARIFICATION, KILL]
|
|
145
145
|
role: spec-explorer
|
|
146
|
-
|
|
146
|
+
speckit: speckit.assess.decide
|
|
147
147
|
|
|
148
148
|
- id: constitution
|
|
149
149
|
name: /speckit.constitution
|
|
150
150
|
lane: feature
|
|
151
151
|
artifacts: [constitution.md]
|
|
152
|
-
exit: [
|
|
152
|
+
exit: [DONE, BLOCKED]
|
|
153
153
|
role: spec-author
|
|
154
|
-
|
|
154
|
+
speckit: speckit.constitution
|
|
155
155
|
- id: specify
|
|
156
156
|
name: /speckit.specify
|
|
157
157
|
lane: feature
|
|
158
158
|
artifacts: [spec.md]
|
|
159
|
-
exit: [
|
|
159
|
+
exit: [DONE, BLOCKED]
|
|
160
160
|
role: spec-author
|
|
161
|
-
|
|
161
|
+
speckit: speckit.specify
|
|
162
162
|
- id: clarify
|
|
163
163
|
name: /speckit.clarify
|
|
164
164
|
lane: feature
|
|
165
165
|
artifacts: [spec.md]
|
|
166
|
-
exit: [
|
|
166
|
+
exit: [DONE, BLOCKED]
|
|
167
167
|
role: spec-author
|
|
168
|
-
|
|
168
|
+
speckit: speckit.clarify
|
|
169
169
|
- id: plan
|
|
170
170
|
name: /speckit.plan
|
|
171
171
|
lane: feature
|
|
172
172
|
artifacts: [plan.md]
|
|
173
|
-
exit: [
|
|
173
|
+
exit: [DONE, BLOCKED]
|
|
174
174
|
role: spec-author
|
|
175
|
-
|
|
175
|
+
speckit: speckit.plan
|
|
176
176
|
- id: checklist
|
|
177
177
|
name: /speckit.checklist
|
|
178
178
|
lane: feature
|
|
179
179
|
artifacts: [checklist.md]
|
|
180
|
-
exit: [
|
|
180
|
+
exit: [DONE, BLOCKED]
|
|
181
181
|
role: spec-author
|
|
182
|
-
|
|
182
|
+
speckit: speckit.checklist
|
|
183
183
|
- id: tasks
|
|
184
184
|
name: /speckit.tasks
|
|
185
185
|
lane: feature
|
|
186
186
|
artifacts: [tasks.md]
|
|
187
|
-
exit: [
|
|
187
|
+
exit: [DONE, BLOCKED]
|
|
188
188
|
role: spec-author
|
|
189
|
-
|
|
189
|
+
speckit: speckit.tasks
|
|
190
190
|
- id: analyze
|
|
191
191
|
name: /speckit.analyze
|
|
192
192
|
lane: feature
|
|
193
193
|
artifacts: [analysis.md]
|
|
194
|
-
exit: [
|
|
194
|
+
exit: [DONE, BLOCKED]
|
|
195
195
|
role: spec-author
|
|
196
|
-
|
|
196
|
+
speckit: speckit.analyze
|
|
197
197
|
- id: implement
|
|
198
198
|
name: /speckit.implement
|
|
199
199
|
lane: feature
|
|
@@ -201,37 +201,57 @@ commands:
|
|
|
201
201
|
exit: [DONE, BLOCKED]
|
|
202
202
|
role: implementer-frontend
|
|
203
203
|
co_roles: [implementer-backend]
|
|
204
|
-
|
|
204
|
+
speckit: speckit.implement
|
|
205
205
|
- id: converge
|
|
206
206
|
name: /speckit.converge
|
|
207
207
|
lane: feature
|
|
208
208
|
artifacts: [convergence.md]
|
|
209
209
|
exit: [CONVERGED, NEEDS_WORK]
|
|
210
210
|
role: reviewer-architecture
|
|
211
|
-
|
|
211
|
+
speckit: speckit.converge
|
|
212
212
|
|
|
213
213
|
- id: bug-assess
|
|
214
214
|
name: /speckit-bug-assess
|
|
215
215
|
lane: bug
|
|
216
216
|
artifacts: [assessment.md]
|
|
217
|
-
exit: [
|
|
217
|
+
exit: [VALID, NEEDS_REPRODUCTION, INVALID]
|
|
218
218
|
role: reviewer-architecture
|
|
219
|
-
|
|
219
|
+
speckit: speckit.bug.assess
|
|
220
220
|
- id: bug-fix
|
|
221
221
|
name: /speckit-bug-fix
|
|
222
222
|
lane: bug
|
|
223
223
|
artifacts: [fix.md]
|
|
224
|
-
exit: [
|
|
224
|
+
exit: [APPLIED, PARTIAL, NOT_APPLIED]
|
|
225
225
|
role: implementer-backend
|
|
226
226
|
co_roles: [implementer-frontend]
|
|
227
|
-
|
|
227
|
+
speckit: speckit.bug.fix
|
|
228
228
|
- id: bug-test
|
|
229
229
|
name: /speckit-bug-test
|
|
230
230
|
lane: bug
|
|
231
231
|
artifacts: [test.md]
|
|
232
232
|
exit: [VERIFIED, PARTIAL, FAILED]
|
|
233
233
|
role: reviewer-tests
|
|
234
|
-
|
|
234
|
+
speckit: speckit.bug.test
|
|
235
|
+
|
|
236
|
+
# Efecto de cada estado de salida sobre las etiquetas ai::* (tabla única, design D2.6).
|
|
237
|
+
# Ningún agente mueve una etiqueta: hermes-control aplica o propone el cambio y un humano confirma
|
|
238
|
+
# las propuestas de cierre (KILL, INVALID).
|
|
239
|
+
exit_effects:
|
|
240
|
+
GO: mantiene ai::in-spec; Spec-Author empieza la autoría de la feature
|
|
241
|
+
NEEDS_CLARIFICATION: mantiene ai::in-spec; se repite la etapa indicada
|
|
242
|
+
KILL: propone ai::done; hermes-control propone el cierre y un humano lo confirma
|
|
243
|
+
DONE: sin cambio de etiqueta; el artefacto declarado existe y el carril continúa
|
|
244
|
+
BLOCKED: ai::blocked con motivo y evidencia
|
|
245
|
+
CONVERGED: ai::in-review
|
|
246
|
+
NEEDS_WORK: mantiene ai::in-dev; las tareas pendientes se añaden a tasks.md
|
|
247
|
+
VALID: sin cambio de etiqueta; el bug pasa a bug-fix
|
|
248
|
+
NEEDS_REPRODUCTION: ai::blocked; faltan datos para reproducir
|
|
249
|
+
INVALID: propone ai::done; hermes-control propone el cierre y un humano lo confirma
|
|
250
|
+
APPLIED: ai::in-review
|
|
251
|
+
PARTIAL: mantiene ai::in-dev
|
|
252
|
+
NOT_APPLIED: ai::blocked con motivo y evidencia
|
|
253
|
+
VERIFIED: ai::done a través de la revisión
|
|
254
|
+
FAILED: ai::blocked con motivo y evidencia
|
|
235
255
|
|
|
236
256
|
labels:
|
|
237
257
|
- ai::todo
|
|
@@ -248,3 +268,17 @@ targets:
|
|
|
248
268
|
- pi
|
|
249
269
|
- cursor
|
|
250
270
|
- copilot
|
|
271
|
+
|
|
272
|
+
# Spec Kit: dependencia de runtime fijada por el paquete. Un proyecto solo puede
|
|
273
|
+
# restringirla desde el bloque `speckit` de manifest.yaml, nunca ampliarla.
|
|
274
|
+
speckit:
|
|
275
|
+
package: specify-cli
|
|
276
|
+
pin: 1.2.3
|
|
277
|
+
supported: '>=1.2.3 <1.3.0'
|
|
278
|
+
# Fecha --exclude-newer de uvx: valor provisional; se fija el día de la publicación de 0.3.0.
|
|
279
|
+
# Moverla es una decisión de release, nunca automática. Es la única copia de esta fecha.
|
|
280
|
+
excludeNewer: '2026-10-27'
|
|
281
|
+
script: sh
|
|
282
|
+
extensions:
|
|
283
|
+
assess: 1.0.1
|
|
284
|
+
bug: 1.0.1
|
package/manifest.json
CHANGED
|
@@ -29,103 +29,103 @@
|
|
|
29
29
|
"id": "analyze",
|
|
30
30
|
"lane": "feature",
|
|
31
31
|
"role": "spec-author",
|
|
32
|
-
"
|
|
32
|
+
"speckit": "speckit.analyze"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"id": "assess-decide",
|
|
36
36
|
"lane": "assessment",
|
|
37
37
|
"role": "spec-explorer",
|
|
38
|
-
"
|
|
38
|
+
"speckit": "speckit.assess.decide"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"id": "assess-define",
|
|
42
42
|
"lane": "assessment",
|
|
43
43
|
"role": "spec-explorer",
|
|
44
|
-
"
|
|
44
|
+
"speckit": "speckit.assess.define"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"id": "assess-intake",
|
|
48
48
|
"lane": "assessment",
|
|
49
49
|
"role": "spec-explorer",
|
|
50
|
-
"
|
|
50
|
+
"speckit": "speckit.assess.intake"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"id": "assess-research",
|
|
54
54
|
"lane": "assessment",
|
|
55
55
|
"role": "spec-explorer",
|
|
56
|
-
"
|
|
56
|
+
"speckit": "speckit.assess.research"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"id": "assess-shape",
|
|
60
60
|
"lane": "assessment",
|
|
61
61
|
"role": "spec-explorer",
|
|
62
|
-
"
|
|
62
|
+
"speckit": "speckit.assess.shape"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"id": "bug-assess",
|
|
66
66
|
"lane": "bug",
|
|
67
67
|
"role": "reviewer-architecture",
|
|
68
|
-
"
|
|
68
|
+
"speckit": "speckit.bug.assess"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"id": "bug-fix",
|
|
72
72
|
"lane": "bug",
|
|
73
73
|
"role": "implementer-backend",
|
|
74
|
-
"
|
|
74
|
+
"speckit": "speckit.bug.fix"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"id": "bug-test",
|
|
78
78
|
"lane": "bug",
|
|
79
79
|
"role": "reviewer-tests",
|
|
80
|
-
"
|
|
80
|
+
"speckit": "speckit.bug.test"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"id": "checklist",
|
|
84
84
|
"lane": "feature",
|
|
85
85
|
"role": "spec-author",
|
|
86
|
-
"
|
|
86
|
+
"speckit": "speckit.checklist"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"id": "clarify",
|
|
90
90
|
"lane": "feature",
|
|
91
91
|
"role": "spec-author",
|
|
92
|
-
"
|
|
92
|
+
"speckit": "speckit.clarify"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"id": "constitution",
|
|
96
96
|
"lane": "feature",
|
|
97
97
|
"role": "spec-author",
|
|
98
|
-
"
|
|
98
|
+
"speckit": "speckit.constitution"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"id": "converge",
|
|
102
102
|
"lane": "feature",
|
|
103
103
|
"role": "reviewer-architecture",
|
|
104
|
-
"
|
|
104
|
+
"speckit": "speckit.converge"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"id": "implement",
|
|
108
108
|
"lane": "feature",
|
|
109
109
|
"role": "implementer-frontend",
|
|
110
|
-
"
|
|
110
|
+
"speckit": "speckit.implement"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"id": "plan",
|
|
114
114
|
"lane": "feature",
|
|
115
115
|
"role": "spec-author",
|
|
116
|
-
"
|
|
116
|
+
"speckit": "speckit.plan"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"id": "specify",
|
|
120
120
|
"lane": "feature",
|
|
121
121
|
"role": "spec-author",
|
|
122
|
-
"
|
|
122
|
+
"speckit": "speckit.specify"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"id": "tasks",
|
|
126
126
|
"lane": "feature",
|
|
127
127
|
"role": "spec-author",
|
|
128
|
-
"
|
|
128
|
+
"speckit": "speckit.tasks"
|
|
129
129
|
}
|
|
130
130
|
],
|
|
131
131
|
"labels": [
|
|
@@ -144,6 +144,15 @@
|
|
|
144
144
|
"opencode",
|
|
145
145
|
"pi"
|
|
146
146
|
],
|
|
147
|
+
"selection": {
|
|
148
|
+
"skills": "full",
|
|
149
|
+
"agents": "full",
|
|
150
|
+
"rules": "custom"
|
|
151
|
+
},
|
|
152
|
+
"catalog": {
|
|
153
|
+
"version": "0.3.0",
|
|
154
|
+
"hash": "9605441252114d0ccd1e03a433420d7645618f8956c71bd16634d35e8b427f66"
|
|
155
|
+
},
|
|
147
156
|
"agents": [
|
|
148
157
|
"cpp-build-resolver",
|
|
149
158
|
"cpp-reviewer",
|
|
@@ -186,7 +195,6 @@
|
|
|
186
195
|
"accessibility",
|
|
187
196
|
"agent-eval",
|
|
188
197
|
"agent-safety",
|
|
189
|
-
"analyze",
|
|
190
198
|
"angular",
|
|
191
199
|
"api-connector-builder",
|
|
192
200
|
"api-design",
|
|
@@ -199,7 +207,6 @@
|
|
|
199
207
|
"building-agents",
|
|
200
208
|
"chatbot",
|
|
201
209
|
"chrome-extension",
|
|
202
|
-
"clarify",
|
|
203
210
|
"clickhouse-analytics",
|
|
204
211
|
"cloudflare",
|
|
205
212
|
"code-review",
|
|
@@ -263,7 +270,6 @@
|
|
|
263
270
|
"htmx",
|
|
264
271
|
"huggingface",
|
|
265
272
|
"idea-refinement",
|
|
266
|
-
"implement",
|
|
267
273
|
"init",
|
|
268
274
|
"java",
|
|
269
275
|
"knowledge-ops",
|
|
@@ -291,7 +297,6 @@
|
|
|
291
297
|
"performance",
|
|
292
298
|
"phoenix",
|
|
293
299
|
"php",
|
|
294
|
-
"plan",
|
|
295
300
|
"planetscale",
|
|
296
301
|
"planning-with-files",
|
|
297
302
|
"postgresdb",
|
|
@@ -307,39 +312,17 @@
|
|
|
307
312
|
"render",
|
|
308
313
|
"replicate",
|
|
309
314
|
"research-ops",
|
|
310
|
-
"review",
|
|
311
315
|
"ruby",
|
|
312
316
|
"runpod",
|
|
313
317
|
"rust",
|
|
314
318
|
"scaling",
|
|
315
|
-
"sdd",
|
|
316
|
-
"sdd-init",
|
|
317
319
|
"secure-coding",
|
|
318
320
|
"security-scan",
|
|
319
|
-
"ship",
|
|
320
321
|
"shopify",
|
|
321
322
|
"simplify-code",
|
|
322
323
|
"skill-scout",
|
|
323
324
|
"solid-js",
|
|
324
325
|
"source-grounded-development",
|
|
325
|
-
"specify",
|
|
326
|
-
"speckit-analyze",
|
|
327
|
-
"speckit-assess-decide",
|
|
328
|
-
"speckit-assess-define",
|
|
329
|
-
"speckit-assess-intake",
|
|
330
|
-
"speckit-assess-research",
|
|
331
|
-
"speckit-assess-shape",
|
|
332
|
-
"speckit-bug-assess",
|
|
333
|
-
"speckit-bug-fix",
|
|
334
|
-
"speckit-bug-test",
|
|
335
|
-
"speckit-checklist",
|
|
336
|
-
"speckit-clarify",
|
|
337
|
-
"speckit-constitution",
|
|
338
|
-
"speckit-converge",
|
|
339
|
-
"speckit-implement",
|
|
340
|
-
"speckit-plan",
|
|
341
|
-
"speckit-specify",
|
|
342
|
-
"speckit-tasks",
|
|
343
326
|
"spreadsheet-ops",
|
|
344
327
|
"spring-boot",
|
|
345
328
|
"sql",
|
|
@@ -349,7 +332,6 @@
|
|
|
349
332
|
"supabase",
|
|
350
333
|
"svelte",
|
|
351
334
|
"swift-ios",
|
|
352
|
-
"tasks",
|
|
353
335
|
"tauri",
|
|
354
336
|
"technical-writing",
|
|
355
337
|
"testing-go",
|
|
@@ -367,7 +349,6 @@
|
|
|
367
349
|
"variant-explorer",
|
|
368
350
|
"vector-db",
|
|
369
351
|
"vercel",
|
|
370
|
-
"verify",
|
|
371
352
|
"vllm",
|
|
372
353
|
"vue-nuxt",
|
|
373
354
|
"webhooks",
|
|
@@ -375,7 +356,7 @@
|
|
|
375
356
|
"worktrees"
|
|
376
357
|
],
|
|
377
358
|
"rules": [
|
|
378
|
-
"core",
|
|
359
|
+
"engine-core",
|
|
379
360
|
"skill-quality/skill-behavior-rubric",
|
|
380
361
|
"skill-quality/skill-harden-rubric",
|
|
381
362
|
"skill-quality/skill-migration-brief",
|
|
@@ -387,7 +368,7 @@
|
|
|
387
368
|
"labels": 7,
|
|
388
369
|
"targets": 5,
|
|
389
370
|
"agents": 35,
|
|
390
|
-
"skills":
|
|
371
|
+
"skills": 163,
|
|
391
372
|
"rules": 5
|
|
392
373
|
}
|
|
393
374
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsalazardev/ai-hub-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"author": "Daner Alejandro Salazar Colorado",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"manifest.json",
|
|
32
32
|
"engine",
|
|
33
33
|
"presets",
|
|
34
|
+
"rules",
|
|
34
35
|
"agents",
|
|
35
36
|
"skills",
|
|
36
37
|
"LICENSE",
|