@devtrack-solution/codesdd 1.2.3 → 1.2.4-rc3
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/.sdd/skills/curated/devtrack-api/SKILL.md +12 -5
- package/.sdd/skills/curated/devtrack-api/agents/claude-code.yaml +8 -0
- package/.sdd/skills/curated/devtrack-api/agents/codex.yaml +8 -0
- package/.sdd/skills/curated/devtrack-api/agents/cursor.yaml +8 -0
- package/.sdd/skills/curated/devtrack-api/agents/gemini.yaml +8 -0
- package/.sdd/skills/curated/devtrack-api/agents/kimi.yaml +8 -0
- package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +4 -2
- package/.sdd/skills/curated/devtrack-api/agents/opencode.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +2 -2
- package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +55 -0
- package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +13 -13
- package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +2 -3
- package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +1 -1
- package/.sdd/skills/curated/devtrack-api/references/portable-agent-contract.md +41 -0
- package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +7 -9
- package/README.md +159 -5
- package/dist/applications/sdd/index.d.ts +16 -0
- package/dist/applications/sdd/index.js +16 -0
- package/dist/commands/config.js +171 -10
- package/dist/commands/sdd/execution.js +345 -15
- package/dist/commands/sdd/plugin.js +5 -0
- package/dist/commands/sdd/shared.d.ts +1 -0
- package/dist/commands/sdd/shared.js +10 -0
- package/dist/commands/sdd.js +38 -3
- package/dist/core/cli/command-matrix.js +9 -0
- package/dist/core/cli-command-quality.js +9 -0
- package/dist/core/completions/command-registry.js +45 -0
- package/dist/core/config-schema.d.ts +18 -1
- package/dist/core/config-schema.js +48 -5
- package/dist/core/global-config.d.ts +16 -0
- package/dist/core/sdd/agent-binding.d.ts +10 -10
- package/dist/core/sdd/agent-runtime-contract.d.ts +204 -0
- package/dist/core/sdd/agent-runtime-contract.js +200 -0
- package/dist/core/sdd/check.d.ts +2 -0
- package/dist/core/sdd/check.js +40 -2
- package/dist/core/sdd/coordination/coordination-adapters.d.ts +15 -8
- package/dist/core/sdd/coordination/coordination-adapters.js +43 -15
- package/dist/core/sdd/coordination/index.d.ts +1 -0
- package/dist/core/sdd/coordination/index.js +1 -0
- package/dist/core/sdd/coordination/redis-runtime.d.ts +131 -0
- package/dist/core/sdd/coordination/redis-runtime.js +698 -0
- package/dist/core/sdd/deepagent-contracts.d.ts +98 -4
- package/dist/core/sdd/deepagent-contracts.js +62 -0
- package/dist/core/sdd/default-bootstrap-files.d.ts +2 -2
- package/dist/core/sdd/default-bootstrap-files.js +14 -8
- package/dist/core/sdd/default-skills.js +108 -4
- package/dist/core/sdd/devtrack-api-appliance.d.ts +8 -1
- package/dist/core/sdd/devtrack-api-appliance.js +46 -23
- package/dist/core/sdd/docs-sync.js +21 -15
- package/dist/core/sdd/domain/capability-diff.d.ts +63 -0
- package/dist/core/sdd/domain/capability-diff.js +200 -0
- package/dist/core/sdd/domain/change-safety-guardrails.d.ts +74 -0
- package/dist/core/sdd/domain/change-safety-guardrails.js +333 -0
- package/dist/core/sdd/domain/semantic-intent-classifier.d.ts +29 -0
- package/dist/core/sdd/domain/semantic-intent-classifier.js +117 -0
- package/dist/core/sdd/foundation-artifact-map-validator.d.ts +16 -0
- package/dist/core/sdd/foundation-artifact-map-validator.js +71 -0
- package/dist/core/sdd/foundation-layer-manifest.d.ts +24 -0
- package/dist/core/sdd/foundation-layer-manifest.js +117 -0
- package/dist/core/sdd/intent-guard.d.ts +22 -0
- package/dist/core/sdd/intent-guard.js +67 -0
- package/dist/core/sdd/json-schema.js +9 -1
- package/dist/core/sdd/legacy-operations.js +76 -1
- package/dist/core/sdd/migrate-workspace.js +39 -0
- package/dist/core/sdd/package-security-gates.d.ts +21 -0
- package/dist/core/sdd/package-security-gates.js +119 -0
- package/dist/core/sdd/package-structure-gate.js +3 -8
- package/dist/core/sdd/parallel-feat-automation.d.ts +181 -3
- package/dist/core/sdd/parallel-feat-automation.js +212 -0
- package/dist/core/sdd/plugin-broker.d.ts +223 -4
- package/dist/core/sdd/plugin-broker.js +10 -0
- package/dist/core/sdd/plugin-cli.d.ts +30 -0
- package/dist/core/sdd/plugin-cli.js +70 -3
- package/dist/core/sdd/plugin-evidence.d.ts +73 -0
- package/dist/core/sdd/plugin-manifest.d.ts +69 -1
- package/dist/core/sdd/plugin-manifest.js +10 -0
- package/dist/core/sdd/plugin-policy-pack.d.ts +1 -1
- package/dist/core/sdd/plugin-registry.d.ts +141 -5
- package/dist/core/sdd/plugin-sdk-contract.d.ts +363 -0
- package/dist/core/sdd/plugin-sdk-contract.js +268 -0
- package/dist/core/sdd/plugin-skill-binding.d.ts +1 -1
- package/dist/core/sdd/quality-validation.d.ts +84 -11
- package/dist/core/sdd/release-readiness.d.ts +19 -0
- package/dist/core/sdd/release-readiness.js +472 -0
- package/dist/core/sdd/runtime-boundary-contract.d.ts +45 -0
- package/dist/core/sdd/runtime-boundary-contract.js +90 -0
- package/dist/core/sdd/sdk-agent-plugin-quality-gates.d.ts +150 -0
- package/dist/core/sdd/sdk-agent-plugin-quality-gates.js +258 -0
- package/dist/core/sdd/services/agent-run.service.d.ts +38 -6
- package/dist/core/sdd/services/agent-run.service.js +73 -1
- package/dist/core/sdd/services/capability-diff.service.d.ts +18 -0
- package/dist/core/sdd/services/capability-diff.service.js +26 -0
- package/dist/core/sdd/services/change-safety-preflight.service.d.ts +17 -0
- package/dist/core/sdd/services/change-safety-preflight.service.js +17 -0
- package/dist/core/sdd/services/context.service.d.ts +43 -340
- package/dist/core/sdd/services/context.service.js +323 -9
- package/dist/core/sdd/services/finalize.service.d.ts +25 -0
- package/dist/core/sdd/services/finalize.service.js +178 -16
- package/dist/core/sdd/services/frontend-impact.service.d.ts +1 -1
- package/dist/core/sdd/services/semantic-intent-classifier.service.d.ts +6 -0
- package/dist/core/sdd/services/semantic-intent-classifier.service.js +7 -0
- package/dist/core/sdd/state.d.ts +1 -0
- package/dist/core/sdd/state.js +251 -29
- package/dist/core/sdd/store/sdd-stores.js +2 -2
- package/dist/core/sdd/structural-health.d.ts +13 -13
- package/dist/core/sdd/types.d.ts +27 -12
- package/dist/core/sdd/types.js +4 -0
- package/dist/core/sdd/views.js +17 -0
- package/dist/core/sdd/workspace-schemas.d.ts +387 -7
- package/dist/core/sdd/workspace-schemas.js +196 -64
- package/dist/domains/sdd/index.d.ts +6 -0
- package/dist/domains/sdd/index.js +6 -0
- package/dist/infrastructures/sdd/index.d.ts +7 -0
- package/dist/infrastructures/sdd/index.js +6 -0
- package/dist/presentations/cli/sdd/index.d.ts +3 -0
- package/dist/presentations/cli/sdd/index.js +3 -0
- package/dist/shared/sdd/index.d.ts +3 -0
- package/dist/shared/sdd/index.js +2 -0
- package/package.json +9 -6
- package/schemas/sdd/2-plan.schema.json +207 -2
- package/schemas/sdd/5-quality.schema.json +281 -25
- package/schemas/sdd/agent-runtime-command-plan.schema.json +212 -0
- package/schemas/sdd/agent-runtime-opencode-run-evidence.schema.json +270 -0
- package/schemas/sdd/codesdd-plugin.schema.json +171 -0
- package/schemas/sdd/deepagent-run-request.schema.json +316 -0
- package/schemas/sdd/parallel-feat-automation-plan.schema.json +89 -0
- package/schemas/sdd/parallel-feat-scheduler-request.schema.json +116 -0
- package/schemas/sdd/parallel-feat-scheduler-result.schema.json +404 -0
- package/schemas/sdd/plugin-artifact-manifest.schema.json +109 -0
- package/schemas/sdd/plugin-artifact-map.schema.json +223 -0
- package/schemas/sdd/plugin-evidence-manifest.schema.json +109 -0
- package/schemas/sdd/plugin-language-runtime.schema.json +103 -0
- package/schemas/sdd/plugin-package-governance.schema.json +74 -0
- package/schemas/sdd/plugin-registry.schema.json +171 -0
- package/schemas/sdd/plugin-runtime-invocation-plan.schema.json +109 -0
- package/schemas/sdd/quality-evidence-bundle.schema.json +109 -0
- package/schemas/sdd/sdk-agent-plugin-quality-gate-input.schema.json +168 -0
- package/schemas/sdd/sdk-agent-plugin-quality-gate-report.schema.json +160 -0
- package/schemas/sdd/workspace-catalog.schema.json +3776 -398
|
@@ -24,8 +24,8 @@ export declare const deepagentEnvContractSchema: z.ZodObject<{
|
|
|
24
24
|
sandbox_passthrough_rules: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
25
|
network_mode: z.ZodDefault<z.ZodEnum<{
|
|
26
26
|
disabled: "disabled";
|
|
27
|
-
restricted: "restricted";
|
|
28
27
|
enabled: "enabled";
|
|
28
|
+
restricted: "restricted";
|
|
29
29
|
}>>;
|
|
30
30
|
blocked_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
31
31
|
masked_config_fingerprint: z.ZodString;
|
|
@@ -51,8 +51,8 @@ export declare const deepagentRunRequestSchema: z.ZodObject<{
|
|
|
51
51
|
network_policy: z.ZodObject<{
|
|
52
52
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
53
53
|
disabled: "disabled";
|
|
54
|
-
restricted: "restricted";
|
|
55
54
|
enabled: "enabled";
|
|
55
|
+
restricted: "restricted";
|
|
56
56
|
}>>;
|
|
57
57
|
allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
58
58
|
}, z.core.$strip>;
|
|
@@ -81,8 +81,8 @@ export declare const deepagentRunRequestSchema: z.ZodObject<{
|
|
|
81
81
|
sandbox_passthrough_rules: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
82
82
|
network_mode: z.ZodDefault<z.ZodEnum<{
|
|
83
83
|
disabled: "disabled";
|
|
84
|
-
restricted: "restricted";
|
|
85
84
|
enabled: "enabled";
|
|
85
|
+
restricted: "restricted";
|
|
86
86
|
}>>;
|
|
87
87
|
blocked_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
88
88
|
masked_config_fingerprint: z.ZodString;
|
|
@@ -93,6 +93,100 @@ export declare const deepagentRunRequestSchema: z.ZodObject<{
|
|
|
93
93
|
capability: z.ZodString;
|
|
94
94
|
version: z.ZodString;
|
|
95
95
|
}, z.core.$strip>>>;
|
|
96
|
+
change_safety: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
explicit_modification_intent: z.ZodObject<{
|
|
98
|
+
operation: z.ZodEnum<{
|
|
99
|
+
replace: "replace";
|
|
100
|
+
add: "add";
|
|
101
|
+
modify: "modify";
|
|
102
|
+
remove: "remove";
|
|
103
|
+
refactor: "refactor";
|
|
104
|
+
optimize: "optimize";
|
|
105
|
+
}>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
context_lock: z.ZodDefault<z.ZodObject<{
|
|
108
|
+
allowed_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
109
|
+
forbidden_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
110
|
+
protected_core: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
change_budget: z.ZodDefault<z.ZodObject<{
|
|
113
|
+
max_files_changed: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
max_new_files: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
max_deleted_files: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
governed_override: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
feature_id: z.ZodString;
|
|
119
|
+
intent: z.ZodEnum<{
|
|
120
|
+
replace: "replace";
|
|
121
|
+
add: "add";
|
|
122
|
+
modify: "modify";
|
|
123
|
+
remove: "remove";
|
|
124
|
+
refactor: "refactor";
|
|
125
|
+
optimize: "optimize";
|
|
126
|
+
}>;
|
|
127
|
+
rationale: z.ZodString;
|
|
128
|
+
write_scope: z.ZodArray<z.ZodString>;
|
|
129
|
+
expected_deletions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
130
|
+
rollback_plan: z.ZodString;
|
|
131
|
+
compensating_control: z.ZodString;
|
|
132
|
+
approver: z.ZodString;
|
|
133
|
+
expires_at: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
planned_file_changes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
137
|
+
path: z.ZodString;
|
|
138
|
+
operation: z.ZodEnum<{
|
|
139
|
+
replace: "replace";
|
|
140
|
+
rename: "rename";
|
|
141
|
+
create: "create";
|
|
142
|
+
delete: "delete";
|
|
143
|
+
modify: "modify";
|
|
144
|
+
}>;
|
|
145
|
+
previous_path: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>>>;
|
|
147
|
+
capability_inventory_before: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
148
|
+
kind: z.ZodEnum<{
|
|
149
|
+
event: "event";
|
|
150
|
+
schema: "schema";
|
|
151
|
+
route: "route";
|
|
152
|
+
page: "page";
|
|
153
|
+
cli_command: "cli_command";
|
|
154
|
+
public_contract: "public_contract";
|
|
155
|
+
core_flow: "core_flow";
|
|
156
|
+
governance_state: "governance_state";
|
|
157
|
+
}>;
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
path: z.ZodOptional<z.ZodString>;
|
|
160
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
161
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
}, z.core.$strip>>>;
|
|
163
|
+
capability_inventory_after: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
164
|
+
kind: z.ZodEnum<{
|
|
165
|
+
event: "event";
|
|
166
|
+
schema: "schema";
|
|
167
|
+
route: "route";
|
|
168
|
+
page: "page";
|
|
169
|
+
cli_command: "cli_command";
|
|
170
|
+
public_contract: "public_contract";
|
|
171
|
+
core_flow: "core_flow";
|
|
172
|
+
governance_state: "governance_state";
|
|
173
|
+
}>;
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
path: z.ZodOptional<z.ZodString>;
|
|
176
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
177
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
178
|
+
}, z.core.$strip>>>;
|
|
179
|
+
capability_inventory_required: z.ZodDefault<z.ZodBoolean>;
|
|
180
|
+
capability_required_kinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
181
|
+
event: "event";
|
|
182
|
+
schema: "schema";
|
|
183
|
+
route: "route";
|
|
184
|
+
page: "page";
|
|
185
|
+
cli_command: "cli_command";
|
|
186
|
+
public_contract: "public_contract";
|
|
187
|
+
core_flow: "core_flow";
|
|
188
|
+
governance_state: "governance_state";
|
|
189
|
+
}>>>;
|
|
96
190
|
reversa_scope: z.ZodObject<{
|
|
97
191
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
98
192
|
objective: z.ZodOptional<z.ZodString>;
|
|
@@ -157,8 +251,8 @@ export declare const deepagentToolCallEvidenceSchema: z.ZodObject<{
|
|
|
157
251
|
}>;
|
|
158
252
|
policy_gate: z.ZodString;
|
|
159
253
|
hitl_decision: z.ZodDefault<z.ZodEnum<{
|
|
160
|
-
edit: "edit";
|
|
161
254
|
none: "none";
|
|
255
|
+
edit: "edit";
|
|
162
256
|
approve: "approve";
|
|
163
257
|
reject: "reject";
|
|
164
258
|
respond: "respond";
|
|
@@ -10,6 +10,18 @@ const deepagentModeSchema = z.enum([
|
|
|
10
10
|
const deepagentStatusSchema = z.enum(['allowed', 'blocked', 'running', 'completed', 'failed']);
|
|
11
11
|
const deepagentNetworkModeSchema = z.enum(['disabled', 'restricted', 'enabled']);
|
|
12
12
|
const deepagentRuntimeModeSchema = z.enum(['disabled', 'fake', 'deepagents-js']);
|
|
13
|
+
const changeSafetyOperationSchema = z.enum(['add', 'modify', 'remove', 'replace', 'refactor', 'optimize']);
|
|
14
|
+
const plannedFileOperationSchema = z.enum(['create', 'modify', 'delete', 'rename', 'replace']);
|
|
15
|
+
const capabilityKindSchema = z.enum([
|
|
16
|
+
'route',
|
|
17
|
+
'page',
|
|
18
|
+
'cli_command',
|
|
19
|
+
'public_contract',
|
|
20
|
+
'schema',
|
|
21
|
+
'event',
|
|
22
|
+
'core_flow',
|
|
23
|
+
'governance_state',
|
|
24
|
+
]);
|
|
13
25
|
const deepagentExecutionLimitsSchema = z.object({
|
|
14
26
|
max_iterations: z.number().int().positive().optional(),
|
|
15
27
|
max_subagents: z.number().int().positive().optional(),
|
|
@@ -20,6 +32,50 @@ const deepagentEvidenceRefSchema = z.object({
|
|
|
20
32
|
ref: z.string().min(1),
|
|
21
33
|
path: z.string().min(1).optional(),
|
|
22
34
|
});
|
|
35
|
+
const changeSafetyContractSchema = z.object({
|
|
36
|
+
explicit_modification_intent: z.object({
|
|
37
|
+
operation: changeSafetyOperationSchema,
|
|
38
|
+
}),
|
|
39
|
+
context_lock: z
|
|
40
|
+
.object({
|
|
41
|
+
allowed_paths: z.array(z.string().min(1)).default([]),
|
|
42
|
+
forbidden_paths: z.array(z.string().min(1)).default([]),
|
|
43
|
+
protected_core: z.array(z.string().min(1)).default([]),
|
|
44
|
+
})
|
|
45
|
+
.default({ allowed_paths: [], forbidden_paths: [], protected_core: [] }),
|
|
46
|
+
change_budget: z
|
|
47
|
+
.object({
|
|
48
|
+
max_files_changed: z.number().int().nonnegative().optional(),
|
|
49
|
+
max_new_files: z.number().int().nonnegative().optional(),
|
|
50
|
+
max_deleted_files: z.number().int().nonnegative().optional(),
|
|
51
|
+
})
|
|
52
|
+
.default({}),
|
|
53
|
+
governed_override: z
|
|
54
|
+
.object({
|
|
55
|
+
feature_id: z.string().regex(FEATURE_REF_PATTERN),
|
|
56
|
+
intent: changeSafetyOperationSchema,
|
|
57
|
+
rationale: z.string().min(1),
|
|
58
|
+
write_scope: z.array(z.string().min(1)).min(1),
|
|
59
|
+
expected_deletions: z.array(z.string().min(1)).default([]),
|
|
60
|
+
rollback_plan: z.string().min(1),
|
|
61
|
+
compensating_control: z.string().min(1),
|
|
62
|
+
approver: z.string().min(1),
|
|
63
|
+
expires_at: z.string().datetime(),
|
|
64
|
+
})
|
|
65
|
+
.optional(),
|
|
66
|
+
});
|
|
67
|
+
const plannedFileChangeSchema = z.object({
|
|
68
|
+
path: z.string().min(1),
|
|
69
|
+
operation: plannedFileOperationSchema,
|
|
70
|
+
previous_path: z.string().min(1).optional(),
|
|
71
|
+
});
|
|
72
|
+
const capabilityInventoryItemSchema = z.object({
|
|
73
|
+
kind: capabilityKindSchema,
|
|
74
|
+
id: z.string().min(1),
|
|
75
|
+
path: z.string().min(1).optional(),
|
|
76
|
+
fingerprint: z.string().min(1).optional(),
|
|
77
|
+
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
78
|
+
});
|
|
23
79
|
const deepagentRiskSchema = z.object({
|
|
24
80
|
id: z.string().min(1),
|
|
25
81
|
severity: z.enum(['low', 'medium', 'high', 'critical']),
|
|
@@ -70,6 +126,12 @@ export const deepagentRunRequestSchema = z.object({
|
|
|
70
126
|
version: z.string().min(1),
|
|
71
127
|
}))
|
|
72
128
|
.default([]),
|
|
129
|
+
change_safety: changeSafetyContractSchema.optional(),
|
|
130
|
+
planned_file_changes: z.array(plannedFileChangeSchema).default([]),
|
|
131
|
+
capability_inventory_before: z.array(capabilityInventoryItemSchema).default([]),
|
|
132
|
+
capability_inventory_after: z.array(capabilityInventoryItemSchema).default([]),
|
|
133
|
+
capability_inventory_required: z.boolean().default(false),
|
|
134
|
+
capability_required_kinds: z.array(capabilityKindSchema).default([]),
|
|
73
135
|
reversa_scope: z.object({
|
|
74
136
|
enabled: z.boolean().default(false),
|
|
75
137
|
objective: z.string().min(1).optional(),
|
|
@@ -10,10 +10,10 @@ export interface SddReadmeFolders {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function buildSddInternalReadme(memoryDir?: string, folders?: SddReadmeFolders): string;
|
|
12
12
|
export declare const PROMPTS_README_MD = "# Recommended SDD Prompts\n\nUse these prompts to speed up agent workflows without losing the SDD standard.\n\n## Recommended Order For Raw Material\n1. `00-start-here.md`\n2. `01-source-intake.md`\n3. `02-normalize-planning.md`\n4. `03-feature-execution.md`\n5. `04-finalize-consolidation.md`\n\nRule: prompts guide the agent, but the canonical state remains in `.sdd/state/*.yaml`.\nDo not persist project memory, workflow state, backlog, or handoff in external context stores.\n";
|
|
13
|
-
export declare const PROMPT_00_COMECE_POR_AQUI_MD = "# Start Here (First Use)\n\nIf you have never used CodeSDD, follow this order.\n\n## 1) Install And Initialize The Project\n\nIn the terminal, from your project directory:\n\n```bash\ncodesdd install --tools none --lang en-US --layout en-US\ncodesdd sdd init --frontend --lang en-US --layout en-US\ncodesdd sdd init-context --frontend --lang en-US --layout en-US\ncodesdd sdd check --render\ncodesdd sdd rebuild --from-disk --dry-run\ncodesdd sdd dedup --apply --dry-run\ncodesdd sdd onboard system\ncodesdd reload --tools none --lang en-US --layout en-US\n```\n\n## 2) Understand The Main Folders\n\n- `.sdd/sources/`: raw material such as PRDs, wireframes, stories, and references.\n- `.sdd/state/`: canonical YAML source of truth.\n- `.sdd/core/`: generated human-readable system overview.\n- `.sdd/planning/`: backlog, progress, and finalize queue.\n- `.sdd/active/`: active FEAT workspaces.\n- `.sdd/archived/`: finalized workspaces.\n\nCodeSDD is the only operational memory for the project. Do not use external context, memory, workflow, backlog, scratchpad, or handoff stores as active project state.\n\n## 3) I Have PRDs, Wireframes, Or Stories. What Now?\n\n1. Place the files under `.sdd/sources/` in the appropriate subfolders.\n2. Run:\n\n```bash\ncodesdd sdd ingest-deposito --source-dir .sdd/sources --title \"Initial system planning\"\n```\n\n3. Review:\n\n```bash\ncodesdd sdd check --render\ncodesdd sdd next\n```\n\nExpected result:\n- sources indexed in `.sdd/state/source-index.yaml`\n- EPIC created or reused\n- FEATs generated in the backlog\n- first ready FEAT started automatically when possible\n\n## 4) Execute A Feature\n\n```bash\ncodesdd sdd start FEAT-0001 --flow-mode standard\ncodesdd sdd context FEAT-0001\ncodesdd sdd frontend-impact FEAT-0001 --status required --reason \"New route and UI components\"\n```\n\nImplement and update the FEAT package:\n- `1-spec.yaml`\n- `2-plan.yaml`\n- `5-quality.yaml`\n- `3-tasks.yaml`\n- `4-changelog.yaml`\n\n## 5) Finalize Without Losing Context\n\n```bash\ncodesdd sdd finalize --ref FEAT-0001\ncodesdd sdd check --render\ncodesdd sdd onboard system\n```\n\nGolden rule:\n- A FEAT is only truly complete after documentation consolidation.\n\n## 6) Short Usage Story\n\nThe team placed a PRD and a wireframe in `.sdd/sources/`.\nThey ran `codesdd sdd ingest-deposito --source-dir .sdd/sources` and got an EPIC plus ready FEATs.\nThey started the priority FEAT with `codesdd sdd start FEAT-0001`.\nBefore coding, they ran `codesdd sdd context FEAT-0001`.\nAfter implementation, they ran `codesdd sdd finalize --ref FEAT-0001`.\nResult: backlog updated, docs synchronized, and the next FEAT released without guesswork.\n\n## 7) Essential Commands\n\n- `codesdd sdd onboard system`: understand the current state.\n- `codesdd sdd ingest-deposito --source-dir .sdd/sources`: turn raw material into an executable trail.\n- `codesdd sdd rebuild --from-disk --dry-run`: preview state reconciliation from disk artifacts.\n- `codesdd sdd audit --json`: persist an audit snapshot in `.sdd/state/audit-history.yaml`.\n- `codesdd sdd metrics --since 7d`: inspect lead time, aging, and throughput.\n- `codesdd sdd dedup --apply --dry-run`: preview historical warning_links reconciliation.\n- `codesdd sdd lint feature FEAT-0001`: inspect feature scope before execution.\n- `codesdd sdd next`: see what can start now.\n- `codesdd sdd start FEAT-0001`: open feature execution.\n- `codesdd sdd context FEAT-0001`: generate focused context.\n- `codesdd sdd frontend-impact FEAT-0001 --status required|none --reason \"...\"`: declare frontend impact.\n- `codesdd sdd finalize --ref FEAT-0001`: consolidate memory and close.\n";
|
|
13
|
+
export declare const PROMPT_00_COMECE_POR_AQUI_MD = "# Start Here (First Use)\n\nIf you have never used CodeSDD, follow this order.\n\n## 1) Install And Initialize The Project\n\nIn the terminal, from your project directory:\n\n```bash\ncodesdd install --tools none --lang en-US --layout en-US\ncodesdd sdd init --frontend --lang en-US --layout en-US\ncodesdd sdd init-context --frontend --lang en-US --layout en-US\ncodesdd sdd check --render\ncodesdd sdd rebuild --from-disk --dry-run\ncodesdd sdd dedup --apply --dry-run\ncodesdd sdd onboard system\ncodesdd reload --tools none --lang en-US --layout en-US\n```\n\n## 2) Understand The Main Folders\n\n- `.sdd/sources/`: raw material such as PRDs, wireframes, stories, and references.\n- `.sdd/state/`: canonical YAML source of truth.\n- `.sdd/core/`: generated human-readable system overview.\n- `.sdd/planning/`: backlog, progress, and finalize queue.\n- `.sdd/active/`: active FEAT workspaces.\n- `.sdd/archived/`: finalized workspaces.\n\nCodeSDD is the only operational memory for the project. Do not use external context, memory, workflow, backlog, scratchpad, or handoff stores as active project state.\nIn initialized CodeSDD repositories, requests that imply implementation, edits, validation, execution, or finalize implicitly require CodeSDD planning unless explicitly marked read-only or outside CodeSDD.\n\n## 3) I Have PRDs, Wireframes, Or Stories. What Now?\n\n1. Place the files under `.sdd/sources/` in the appropriate subfolders.\n2. Run:\n\n```bash\ncodesdd sdd ingest-deposito --source-dir .sdd/sources --title \"Initial system planning\"\n```\n\n3. Review:\n\n```bash\ncodesdd sdd check --render\ncodesdd sdd next\n```\n\nExpected result:\n- sources indexed in `.sdd/state/source-index.yaml`\n- EPIC created or reused\n- FEATs generated in the backlog\n- first ready FEAT started automatically when possible\n\n## 4) Execute A Feature\n\n```bash\ncodesdd sdd start FEAT-0001 --flow-mode standard\ncodesdd sdd context FEAT-0001\ncodesdd sdd frontend-impact FEAT-0001 --status required --reason \"New route and UI components\"\n```\n\nImplement and update the FEAT package:\n- `1-spec.yaml`\n- `2-plan.yaml`\n- `5-quality.yaml`\n- `3-tasks.yaml`\n- `4-changelog.yaml`\n\n## 5) Finalize Without Losing Context\n\n```bash\ncodesdd sdd finalize --ref FEAT-0001\ncodesdd sdd check --render\ncodesdd sdd onboard system\n```\n\nGolden rule:\n- A FEAT is only truly complete after documentation consolidation.\n\n## 6) Short Usage Story\n\nThe team placed a PRD and a wireframe in `.sdd/sources/`.\nThey ran `codesdd sdd ingest-deposito --source-dir .sdd/sources` and got an EPIC plus ready FEATs.\nThey started the priority FEAT with `codesdd sdd start FEAT-0001`.\nBefore coding, they ran `codesdd sdd context FEAT-0001`.\nAfter implementation, they ran `codesdd sdd finalize --ref FEAT-0001`.\nResult: backlog updated, docs synchronized, and the next FEAT released without guesswork.\n\n## 7) Essential Commands\n\n- `codesdd sdd onboard system`: understand the current state.\n- `codesdd sdd ingest-deposito --source-dir .sdd/sources`: turn raw material into an executable trail.\n- `codesdd sdd rebuild --from-disk --dry-run`: preview state reconciliation from disk artifacts.\n- `codesdd sdd audit --json`: persist an audit snapshot in `.sdd/state/audit-history.yaml`.\n- `codesdd sdd metrics --since 7d`: inspect lead time, aging, and throughput.\n- `codesdd sdd dedup --apply --dry-run`: preview historical warning_links reconciliation.\n- `codesdd sdd lint feature FEAT-0001`: inspect feature scope before execution.\n- `codesdd sdd next`: see what can start now.\n- `codesdd sdd start FEAT-0001`: open feature execution.\n- `codesdd sdd context FEAT-0001`: generate focused context.\n- `codesdd sdd frontend-impact FEAT-0001 --status required|none --reason \"...\"`: declare frontend impact.\n- `codesdd sdd finalize --ref FEAT-0001`: consolidate memory and close.\n";
|
|
14
14
|
export declare const PROMPT_01_INGESTAO_DEPOSITO_MD = "# Prompt: Source Intake\n\nUse the skills:\n- source-intake-sdd\n- business-extractor-sdd\n- frontend-extractor-sdd\n- planning-normalizer-sdd\n\nObjective:\n1. Scan `.sdd/sources/`.\n2. Update `.sdd/state/source-index.yaml`.\n3. Consolidate canonical context (`architecture`, `service-catalog`, `tech-stack`, `integration-contracts`, and frontend when enabled).\n4. Generate an executable trail (EPIC plus FEATs) with source traceability.\n\nRequired output:\n- summary of sources read;\n- IDs created or updated (EPIC/FEAT/FGAP/INS when ambiguity exists);\n- recommended next CLI commands.\n";
|
|
15
15
|
export declare const PROMPT_02_NORMALIZAR_PLANEJAMENTO_MD = "# Prompt: Normalize Planning\n\nObjective:\nTurn consolidated material into an executable plan with clear dependencies.\n\nInstructions:\n1. Start from `.sdd/state/source-index.yaml` and `.sdd/core/*.md`.\n2. Propose EPICs and FEATs with clear English names.\n3. Define dependencies (`blocked_by`) and conflicts (`lock_domains`).\n4. List what can run in parallel.\n5. End with a documentation consolidation checklist per feature.\n";
|
|
16
|
-
export declare const PROMPT_03_EXECUCAO_FEATURE_MD = "# Prompt: Feature Execution\n\nObjective:\nExecute a FEAT without losing traceability.\n\nInstructions:\n1. Run `codesdd sdd context FEAT-0001`.\
|
|
16
|
+
export declare const PROMPT_03_EXECUCAO_FEATURE_MD = "# Prompt: Feature Execution\n\nObjective:\nExecute a FEAT without losing traceability.\n\nInstructions:\n1. Treat implementation, edit, validation, execution, and finalize requests as requiring CodeSDD planning unless the user explicitly marks the request as read-only or outside CodeSDD.\n2. Run `codesdd sdd next` and bind the work to the active or ready FEAT returned by CodeSDD.\n3. Run `codesdd sdd context FEAT-0001`.\n4. Update `.sdd/active/FEAT-0001/` (spec, plan, tasks, changelog).\n5. Implement.\n6. Update `.sdd/active/FEAT-0001/5-quality.yaml` with evidence or a formal exception; quality contracts are blocking by default.\n7. Update affected canonical docs.\n8. Declare frontend impact with `codesdd sdd frontend-impact FEAT-0001 ...`.\n9. Ensure architectural-impact FEATs have an ADR before finalize.\n10. Finish with `codesdd sdd finalize --ref FEAT-0001`.\n";
|
|
17
17
|
export declare const PROMPT_04_CONSOLIDACAO_FINALIZE_MD = "# Prompt: Consolidation And Finalize\n\nObjective:\nClose a feature with complete operational memory.\n\nChecklist:\n1. Review the FEAT technical diff.\n2. Update central documentation (`README.md`, `.sdd/AGENT.md`, `.sdd/core/*.md`, `AGENTS.md`, `AGENT.md`).\n3. Ensure frontend gaps or decisions are recorded when applicable.\n4. Declare frontend impact with `codesdd sdd frontend-impact FEAT-0001 --status required|none --reason \"...\"`.\n5. Run `codesdd sdd check --render`.\n6. Run `codesdd sdd finalize --ref FEAT-0001` and report updated docs.\n";
|
|
18
18
|
export declare const TEMPLATE_1_SPEC_MD = "schema_version: 1\nfeature_id: FEAT-0001\ntitle: Example workspace specification\norigin:\n type: direct\n ref: FEAT-0001\nobjective: This YAML specification records the feature objective with enough detail for agents to understand the expected implementation scope, user or system value, dependencies, and validation intent before source changes begin.\nexpected_outcome: The feature reaches a verifiable done state with its implementation, documentation, and quality evidence synchronized in CodeSDD.\nsystem_impact: The workspace keeps canonical state, generated views, and operational handoff aligned with the implementation.\nacceptance_refs:\n - FEAT-0001\ngates:\n proposta:\n status: rascunho\n planejamento:\n status: rascunho\n tarefas:\n status: rascunho\ncompliance_context:\n jurisdictions:\n - BR-LGPD\n data_classes:\n - personal_data\n source_refs:\n - SRC-0001\n legal_review_required: false\n legal_review_notes: \"\"\ncreated_at: 2026-01-01T00:00:00.000Z\nupdated_at: 2026-01-01T00:00:00.000Z\n";
|
|
19
19
|
export declare const TEMPLATE_2_PLAN_MD: string;
|
|
@@ -25,6 +25,8 @@ This directory stores the project's operational memory.
|
|
|
25
25
|
10. \`${memoryDir}/core/frontend-decisions.md\` (when frontend is enabled)
|
|
26
26
|
|
|
27
27
|
## How To Operate
|
|
28
|
+
CodeSDD is the official planner for initialized repositories. Any request that implies implementation, file edits, validation, execution, or finalize implicitly requires the CodeSDD flow unless the user explicitly marks it as read-only or outside CodeSDD.
|
|
29
|
+
|
|
28
30
|
1. Run \`${CLI_NAME} sdd onboard system\` to understand current state.
|
|
29
31
|
2. Run \`${CLI_NAME} sdd next\` to see what can start now.
|
|
30
32
|
3. Run \`${CLI_NAME} sdd start <FEAT-ID>\` only when the item is not already active.
|
|
@@ -50,6 +52,7 @@ This directory stores the project's operational memory.
|
|
|
50
52
|
- \`state/*.yaml\` is the only canonical operational state for planning, dependencies, blockers, progress, quality, and handoff.
|
|
51
53
|
- \`core/*.md\` and \`${planning}/*.md\` are operational views derived from canonical state.
|
|
52
54
|
- External context, memory, workflow, backlog, scratchpad, or handoff stores are not authoritative.
|
|
55
|
+
- Agent-native plans and other planners may only refine execution after \`${CLI_NAME} sdd next\` and \`${CLI_NAME} sdd context <FEAT-ID>\` bind the request to a CodeSDD FEAT.
|
|
53
56
|
|
|
54
57
|
## Operational Rule
|
|
55
58
|
Every completed feature must update relevant documentation before \`finalize\`.
|
|
@@ -98,6 +101,7 @@ codesdd reload --tools none --lang en-US --layout en-US
|
|
|
98
101
|
- \`.sdd/archived/\`: finalized workspaces.
|
|
99
102
|
|
|
100
103
|
CodeSDD is the only operational memory for the project. Do not use external context, memory, workflow, backlog, scratchpad, or handoff stores as active project state.
|
|
104
|
+
In initialized CodeSDD repositories, requests that imply implementation, edits, validation, execution, or finalize implicitly require CodeSDD planning unless explicitly marked read-only or outside CodeSDD.
|
|
101
105
|
|
|
102
106
|
## 3) I Have PRDs, Wireframes, Or Stories. What Now?
|
|
103
107
|
|
|
@@ -208,14 +212,16 @@ Objective:
|
|
|
208
212
|
Execute a FEAT without losing traceability.
|
|
209
213
|
|
|
210
214
|
Instructions:
|
|
211
|
-
1.
|
|
212
|
-
2.
|
|
213
|
-
3.
|
|
214
|
-
4. Update \`.sdd/active/FEAT-0001
|
|
215
|
-
5.
|
|
216
|
-
6.
|
|
217
|
-
7.
|
|
218
|
-
8.
|
|
215
|
+
1. Treat implementation, edit, validation, execution, and finalize requests as requiring CodeSDD planning unless the user explicitly marks the request as read-only or outside CodeSDD.
|
|
216
|
+
2. Run \`codesdd sdd next\` and bind the work to the active or ready FEAT returned by CodeSDD.
|
|
217
|
+
3. Run \`codesdd sdd context FEAT-0001\`.
|
|
218
|
+
4. Update \`.sdd/active/FEAT-0001/\` (spec, plan, tasks, changelog).
|
|
219
|
+
5. Implement.
|
|
220
|
+
6. Update \`.sdd/active/FEAT-0001/5-quality.yaml\` with evidence or a formal exception; quality contracts are blocking by default.
|
|
221
|
+
7. Update affected canonical docs.
|
|
222
|
+
8. Declare frontend impact with \`codesdd sdd frontend-impact FEAT-0001 ...\`.
|
|
223
|
+
9. Ensure architectural-impact FEATs have an ADR before finalize.
|
|
224
|
+
10. Finish with \`codesdd sdd finalize --ref FEAT-0001\`.
|
|
219
225
|
`;
|
|
220
226
|
export const PROMPT_04_CONSOLIDACAO_FINALIZE_MD = `# Prompt: Consolidation And Finalize
|
|
221
227
|
|
|
@@ -5,11 +5,50 @@ import { fileURLToPath } from 'node:url';
|
|
|
5
5
|
import { CLI_NAME } from '../branding.js';
|
|
6
6
|
import { DEVTRACK_API_APPLIANCE_PLUGIN_ID } from './devtrack-api-appliance.js';
|
|
7
7
|
const DEFAULT_TOOLS = ['codex', 'cursor', 'claude', 'gemini'];
|
|
8
|
+
const DEVTRACK_PORTABLE_TOOLS = ['codex', 'cursor', 'claude', 'gemini', 'kimi', 'opencode'];
|
|
9
|
+
const DEVTRACK_API_DOMAINS = ['architecture', 'backend', 'api', 'nestjs', 'typeorm', 'devtrack', 'foundation'];
|
|
10
|
+
const DEVTRACK_ANGULAR_DOMAINS = [
|
|
11
|
+
'admin',
|
|
12
|
+
'angular-admin',
|
|
13
|
+
'backoffice',
|
|
14
|
+
'operational-ui',
|
|
15
|
+
'dashboard',
|
|
16
|
+
'crud',
|
|
17
|
+
'data-grid',
|
|
18
|
+
'admin-forms',
|
|
19
|
+
'admin-formly',
|
|
20
|
+
'admin-state',
|
|
21
|
+
'ngxs-admin',
|
|
22
|
+
'permissions',
|
|
23
|
+
'reports',
|
|
24
|
+
'workflow',
|
|
25
|
+
'admin-realtime',
|
|
26
|
+
'admin-chat',
|
|
27
|
+
];
|
|
28
|
+
const DEVTRACK_FLUTTER_DOMAINS = [
|
|
29
|
+
'flutter',
|
|
30
|
+
'dart',
|
|
31
|
+
'cross-platform',
|
|
32
|
+
'flutter-ui',
|
|
33
|
+
'flutter-layout',
|
|
34
|
+
'flutter-routing',
|
|
35
|
+
'flutter-l10n',
|
|
36
|
+
'flutter-http',
|
|
37
|
+
'flutter-json',
|
|
38
|
+
'widget-preview',
|
|
39
|
+
'widget-test',
|
|
40
|
+
'integration-test',
|
|
41
|
+
'go-router',
|
|
42
|
+
'arb',
|
|
43
|
+
'l10n',
|
|
44
|
+
];
|
|
8
45
|
const DEFAULT_SOURCE_REPO = 'https://github.com/sickn33/antigravity-awesome-skills';
|
|
9
46
|
const PACKAGE_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../');
|
|
10
47
|
const LOCAL_SDD_SKILL_PATHS = {
|
|
11
48
|
'api-clean-flask-langgraph': '.sdd/skills/curated/api-clean-flask-langgraph/SKILL.md',
|
|
12
49
|
'devtrack-api': '.sdd/skills/curated/devtrack-api/SKILL.md',
|
|
50
|
+
'devtrack-angular': '.sdd/skills/curated/devtrack-angular/SKILL.md',
|
|
51
|
+
'devtrack-flutter': '.sdd/skills/curated/devtrack-flutter/SKILL.md',
|
|
13
52
|
'source-intake-sdd': '.sdd/skills/curated/source-intake-sdd/SKILL.md',
|
|
14
53
|
'business-extractor-sdd': '.sdd/skills/curated/business-extractor-sdd/SKILL.md',
|
|
15
54
|
'frontend-extractor-sdd': '.sdd/skills/curated/frontend-extractor-sdd/SKILL.md',
|
|
@@ -37,6 +76,14 @@ const SKILL_METADATA_OVERRIDES = {
|
|
|
37
76
|
title: 'DevTrack API',
|
|
38
77
|
description: 'Model-agnostic backend engineering and governance skill for DevTrack APIs using NestJS, TypeORM, DDD/Clean Architecture boundaries, evidence-based validation, and safe operational delivery.',
|
|
39
78
|
},
|
|
79
|
+
'devtrack-angular': {
|
|
80
|
+
title: 'DevTrack Angular Admin',
|
|
81
|
+
description: 'Portable Angular Admin engineering and governance skill for DevTrack backoffice surfaces using pages-first architecture, standalone components, lazy admin routes, official Angular skills mapping, Formly, NGXS, data grids, permissions, adapters, accessibility, and multi-agent delivery.',
|
|
82
|
+
},
|
|
83
|
+
'devtrack-flutter': {
|
|
84
|
+
title: 'DevTrack Flutter',
|
|
85
|
+
description: 'Portable Flutter/Dart engineering and governance skill for DevTrack apps using layered architecture, MVVM/ViewModels, repositories, services, go_router, ARB/l10n, http, JSON mapping, responsive layout, previews, tests, and multi-agent delivery.',
|
|
86
|
+
},
|
|
40
87
|
};
|
|
41
88
|
const CURATED_BUNDLES = [
|
|
42
89
|
{
|
|
@@ -101,6 +148,8 @@ const CURATED_BUNDLES = [
|
|
|
101
148
|
domains: ['frontend', 'product'],
|
|
102
149
|
phases: ['plan', 'execute', 'verify'],
|
|
103
150
|
skillIds: [
|
|
151
|
+
'devtrack-angular',
|
|
152
|
+
'devtrack-flutter',
|
|
104
153
|
'frontend-design',
|
|
105
154
|
'react-best-practices',
|
|
106
155
|
'react-patterns',
|
|
@@ -214,6 +263,12 @@ function priorityForIndex(index) {
|
|
|
214
263
|
const priority = 10 - index;
|
|
215
264
|
return priority < 6 ? 6 : priority;
|
|
216
265
|
}
|
|
266
|
+
function priorityForSkill(skillId, index) {
|
|
267
|
+
if (skillId === 'devtrack-api' || skillId === 'devtrack-angular' || skillId === 'devtrack-flutter') {
|
|
268
|
+
return 10;
|
|
269
|
+
}
|
|
270
|
+
return priorityForIndex(index);
|
|
271
|
+
}
|
|
217
272
|
export function normalizeSkillManifestContent(content) {
|
|
218
273
|
return content
|
|
219
274
|
.replaceAll('.sdd/deposito', '.sdd/sources')
|
|
@@ -253,11 +308,28 @@ function seedIntegrityHash(entry) {
|
|
|
253
308
|
}
|
|
254
309
|
return computeSkillManifestSha256(fallbackSkillMarkdown(entry));
|
|
255
310
|
}
|
|
311
|
+
function toolsForSkill(skillId) {
|
|
312
|
+
return skillId === 'devtrack-api' || skillId === 'devtrack-angular' || skillId === 'devtrack-flutter'
|
|
313
|
+
? DEVTRACK_PORTABLE_TOOLS
|
|
314
|
+
: DEFAULT_TOOLS;
|
|
315
|
+
}
|
|
316
|
+
function domainsForSkill(bundle, skillId) {
|
|
317
|
+
if (skillId === 'devtrack-api') {
|
|
318
|
+
return DEVTRACK_API_DOMAINS;
|
|
319
|
+
}
|
|
320
|
+
if (skillId === 'devtrack-angular') {
|
|
321
|
+
return DEVTRACK_ANGULAR_DOMAINS;
|
|
322
|
+
}
|
|
323
|
+
if (skillId === 'devtrack-flutter') {
|
|
324
|
+
return DEVTRACK_FLUTTER_DOMAINS;
|
|
325
|
+
}
|
|
326
|
+
return bundle.domains;
|
|
327
|
+
}
|
|
256
328
|
function buildSkillEntry(bundle, skillId, index) {
|
|
257
329
|
const localSourcePath = LOCAL_SDD_SKILL_PATHS[skillId];
|
|
258
330
|
const isLocalSkill = Boolean(localSourcePath);
|
|
259
331
|
const metadata = SKILL_METADATA_OVERRIDES[skillId] || {};
|
|
260
|
-
const sourceRepo = isLocalSkill ? 'local://
|
|
332
|
+
const sourceRepo = isLocalSkill ? 'local://CodeSDD/sdd' : DEFAULT_SOURCE_REPO;
|
|
261
333
|
const sourcePath = isLocalSkill ? localSourcePath : `skills/${skillId}/SKILL.md`;
|
|
262
334
|
const deterministicPair = skillId === 'devtrack-api'
|
|
263
335
|
? { plugin_id: DEVTRACK_API_APPLIANCE_PLUGIN_ID, capability: 'scaffold.project' }
|
|
@@ -271,10 +343,10 @@ function buildSkillEntry(bundle, skillId, index) {
|
|
|
271
343
|
? `Native SDD skill for ${bundle.title.toLowerCase()}.`
|
|
272
344
|
: `Curated skill for ${bundle.title.toLowerCase()} in the SDD flow.`),
|
|
273
345
|
phases: bundle.phases,
|
|
274
|
-
domains: bundle
|
|
275
|
-
tools:
|
|
346
|
+
domains: domainsForSkill(bundle, skillId),
|
|
347
|
+
tools: toolsForSkill(skillId),
|
|
276
348
|
bundle_ids: [bundle.id],
|
|
277
|
-
priority:
|
|
349
|
+
priority: priorityForSkill(skillId, index),
|
|
278
350
|
token_budget: {
|
|
279
351
|
input_max: 12000,
|
|
280
352
|
output_max: 4000,
|
|
@@ -486,6 +558,24 @@ export function buildCuratedBundlesCurationData(layout = 'en-US') {
|
|
|
486
558
|
'Operational default: API/backend work uses devtrack-api unless an explicit skill/profile overrides it; Python/Flask API work uses api-clean-flask-langgraph.',
|
|
487
559
|
],
|
|
488
560
|
},
|
|
561
|
+
{
|
|
562
|
+
skill_id: 'devtrack-angular',
|
|
563
|
+
bundle_id: 'frontend-product',
|
|
564
|
+
canonical_path: '.sdd/skills/curated/devtrack-angular/',
|
|
565
|
+
notes: [
|
|
566
|
+
'Canonical directory for the DevTrack Angular Admin skill; includes agents/ and references/.',
|
|
567
|
+
'Operational default: Angular Admin/backoffice work that names admin pages, dashboards, CRUD, data grids, admin Formly, admin NGXS/state, official Angular framework patterns, permissions, reports, workflow, admin realtime, or admin chat should use devtrack-angular unless an explicit skill/profile overrides it.',
|
|
568
|
+
],
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
skill_id: 'devtrack-flutter',
|
|
572
|
+
bundle_id: 'frontend-product',
|
|
573
|
+
canonical_path: '.sdd/skills/curated/devtrack-flutter/',
|
|
574
|
+
notes: [
|
|
575
|
+
'Canonical directory for the DevTrack Flutter skill; includes agents/ and references/.',
|
|
576
|
+
'Operational default: Flutter/Dart work that names Flutter apps, widgets, routing, localization, responsive layout, JSON, HTTP, previews, widget tests, integration tests, go_router, ARB, or l10n should use devtrack-flutter unless an explicit skill/profile overrides it.',
|
|
577
|
+
],
|
|
578
|
+
},
|
|
489
579
|
];
|
|
490
580
|
const operational_rule = layout === 'en-US'
|
|
491
581
|
? [
|
|
@@ -531,6 +621,12 @@ export function buildCuratedBundlesMarkdown() {
|
|
|
531
621
|
lines.push('- `devtrack-api` belongs to bundle `architecture-backend`.');
|
|
532
622
|
lines.push('- Canonical directory: `.sdd/skills/curated/devtrack-api/` (includes `agents/` and `references/`).');
|
|
533
623
|
lines.push('- Operational default: API/backend work uses `devtrack-api` unless an explicit skill/profile overrides it; Python/Flask API work uses `api-clean-flask-langgraph`.');
|
|
624
|
+
lines.push('- `devtrack-angular` belongs to bundle `frontend-product` as the Angular Admin/backoffice skill.');
|
|
625
|
+
lines.push('- Canonical directory: `.sdd/skills/curated/devtrack-angular/` (includes `agents/` and `references/`).');
|
|
626
|
+
lines.push('- Operational default: Angular Admin/backoffice work that names admin pages, dashboards, CRUD, data grids, admin Formly, admin NGXS/state, official Angular framework patterns, permissions, reports, workflow, admin realtime, or admin chat should use `devtrack-angular` unless an explicit skill/profile overrides it.');
|
|
627
|
+
lines.push('- `devtrack-flutter` belongs to bundle `frontend-product` as the Flutter/Dart product skill.');
|
|
628
|
+
lines.push('- Canonical directory: `.sdd/skills/curated/devtrack-flutter/` (includes `agents/` and `references/`).');
|
|
629
|
+
lines.push('- Operational default: Flutter/Dart work that names Flutter apps, widgets, routing, localization, responsive layout, JSON, HTTP, previews, widget tests, integration tests, go_router, ARB, or l10n should use `devtrack-flutter` unless an explicit skill/profile overrides it.');
|
|
534
630
|
lines.push('');
|
|
535
631
|
lines.push('## Canonical Source');
|
|
536
632
|
lines.push('- `.sdd/state/skill-catalog.yaml`');
|
|
@@ -599,5 +695,13 @@ export const BUILT_IN_SDD_SKILLS = {
|
|
|
599
695
|
kind: 'source-tree',
|
|
600
696
|
sourceRoot: '.sdd/skills/curated/devtrack-api',
|
|
601
697
|
},
|
|
698
|
+
'devtrack-angular': {
|
|
699
|
+
kind: 'source-tree',
|
|
700
|
+
sourceRoot: '.sdd/skills/curated/devtrack-angular',
|
|
701
|
+
},
|
|
702
|
+
'devtrack-flutter': {
|
|
703
|
+
kind: 'source-tree',
|
|
704
|
+
sourceRoot: '.sdd/skills/curated/devtrack-flutter',
|
|
705
|
+
},
|
|
602
706
|
};
|
|
603
707
|
//# sourceMappingURL=default-skills.js.map
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { type PluginArtifactManifest, type PluginRuntimeInvocationPlan } from './plugin-broker.js';
|
|
2
2
|
import { type PluginManifest } from './plugin-manifest.js';
|
|
3
|
+
import type { PluginArtifactKind, PluginArtifactMapEntry, PluginArtifactRole } from './plugin-sdk-contract.js';
|
|
3
4
|
export declare const DEVTRACK_API_APPLIANCE_PLUGIN_ID = "codesdd-plugin-devtrack-api";
|
|
4
5
|
export declare const DEVTRACK_API_APPLIANCE_CAPABILITIES: readonly ["scaffold.project", "generate.domain", "generate.crud", "validate.structure", "evidence.emit"];
|
|
5
6
|
declare const DEVTRACK_API_SCAFFOLD_CAPABILITY = "scaffold.project";
|
|
6
|
-
type DevTrackApiScaffoldLayer = 'root' | 'application' | 'domain' | 'infrastructure' | 'presentation' | 'shared' | 'tests' | 'docs';
|
|
7
|
+
type DevTrackApiScaffoldLayer = 'root' | 'application' | 'domain' | 'infrastructure' | 'presentation' | 'shared' | 'tests' | 'docs' | 'config' | 'sdd' | 'assets';
|
|
7
8
|
export interface DevTrackApiScaffoldArtifact {
|
|
8
9
|
path: string;
|
|
9
10
|
layer: DevTrackApiScaffoldLayer;
|
|
10
11
|
operation: 'planned';
|
|
12
|
+
artifact_kind: PluginArtifactKind;
|
|
13
|
+
role: PluginArtifactRole;
|
|
11
14
|
content_type: string;
|
|
12
15
|
reason: string;
|
|
13
16
|
source_reference: string;
|
|
17
|
+
language?: PluginArtifactMapEntry['language'];
|
|
18
|
+
implementation: PluginArtifactMapEntry['implementation'];
|
|
19
|
+
decision_refs: string[];
|
|
20
|
+
tags: string[];
|
|
14
21
|
}
|
|
15
22
|
export interface DevTrackApiScaffoldDryRunInput {
|
|
16
23
|
feature_ref: string;
|
|
@@ -107,6 +107,14 @@ export function buildDevTrackApiScaffoldDryRunPlan(manifest, input) {
|
|
|
107
107
|
operation: artifact.operation,
|
|
108
108
|
reason: artifact.reason,
|
|
109
109
|
content_type: artifact.content_type,
|
|
110
|
+
artifact_kind: artifact.artifact_kind,
|
|
111
|
+
role: artifact.role,
|
|
112
|
+
layer: artifact.layer,
|
|
113
|
+
language: artifact.language,
|
|
114
|
+
implementation: artifact.implementation,
|
|
115
|
+
decision_refs: artifact.decision_refs,
|
|
116
|
+
source_refs: [artifact.source_reference],
|
|
117
|
+
tags: artifact.tags,
|
|
110
118
|
})),
|
|
111
119
|
validation_evidence: parsed.validation.commands.map((command) => ({
|
|
112
120
|
command,
|
|
@@ -210,37 +218,52 @@ function buildEvidenceManifest(input) {
|
|
|
210
218
|
}
|
|
211
219
|
function buildScaffoldArtifacts() {
|
|
212
220
|
return [
|
|
213
|
-
artifact('package.json', 'root', 'application/json', 'Foundation-compatible package metadata, scripts, and dependencies.'),
|
|
214
|
-
artifact('tsconfig.json', '
|
|
215
|
-
artifact('nest-cli.json', '
|
|
216
|
-
artifact('eslint.config.mjs', '
|
|
217
|
-
artifact('docs/foundation-backend-reference-structure.md', 'docs', 'text/markdown', 'Derived Foundation package structure reference for maintainers.'),
|
|
218
|
-
artifact('src/main.ts', 'root', 'text/typescript', 'NestJS bootstrap entrypoint.'),
|
|
219
|
-
artifact('src/app.module.ts', 'root', 'text/typescript', 'Root module composing application, infrastructure, and presentation layers.'),
|
|
220
|
-
artifact('src/application/application.module.ts', 'application', 'text/typescript', 'Application layer module boundary.'),
|
|
221
|
-
artifact('src/application/runtime-settings.ts', 'application', 'text/typescript', 'Application runtime settings boundary.'),
|
|
222
|
-
artifact('src/domain/auth/api-keys.
|
|
223
|
-
artifact('src/
|
|
224
|
-
artifact('src/infrastructure/
|
|
225
|
-
artifact('src/
|
|
226
|
-
artifact('src/
|
|
227
|
-
artifact('src/presentation/
|
|
228
|
-
artifact('src/presentation/
|
|
229
|
-
artifact('src/presentation/
|
|
230
|
-
artifact('src/
|
|
231
|
-
artifact('src/
|
|
232
|
-
artifact('
|
|
233
|
-
artifact('
|
|
221
|
+
artifact('package.json', 'root', 'package-metadata', 'manifest', 'application/json', 'Foundation-compatible package metadata, scripts, and dependencies.'),
|
|
222
|
+
artifact('tsconfig.json', 'config', 'configuration', 'manifest', 'application/json', 'TypeScript path aliases and compiler settings aligned to Foundation API.'),
|
|
223
|
+
artifact('nest-cli.json', 'config', 'configuration', 'manifest', 'application/json', 'Nest CLI configuration with Swagger plugin support.'),
|
|
224
|
+
artifact('eslint.config.mjs', 'config', 'configuration', 'policy', 'text/javascript', 'Foundation-compatible lint rules and import-boundary checks.'),
|
|
225
|
+
artifact('docs/foundation-backend-reference-structure.md', 'docs', 'documentation', 'documentation', 'text/markdown', 'Derived Foundation package structure reference for maintainers.'),
|
|
226
|
+
artifact('src/main.ts', 'root', 'source', 'implementation', 'text/typescript', 'NestJS bootstrap entrypoint.'),
|
|
227
|
+
artifact('src/app.module.ts', 'root', 'source', 'module', 'text/typescript', 'Root module composing application, infrastructure, and presentation layers.'),
|
|
228
|
+
artifact('src/application/application.module.ts', 'application', 'source', 'module', 'text/typescript', 'Application layer module boundary.'),
|
|
229
|
+
artifact('src/application/runtime-settings.ts', 'application', 'source', 'type', 'text/typescript', 'Application runtime settings boundary.'),
|
|
230
|
+
artifact('src/domain/auth/business-objects/api-keys.bo.ts', 'domain', 'source', 'business-object', 'text/typescript', 'Initial BO-pattern domain object example from Foundation API.'),
|
|
231
|
+
artifact('src/application/business/auth/ports/out/api-key-repository.port.ts', 'application', 'source', 'repository-port', 'text/typescript', 'BO-pattern repository port owned by application ports/out.'),
|
|
232
|
+
artifact('src/infrastructure/infrastructure.module.ts', 'infrastructure', 'source', 'module', 'text/typescript', 'Infrastructure layer module boundary.'),
|
|
233
|
+
artifact('src/infrastructure/settings/app-configuration.ts', 'infrastructure', 'source', 'implementation', 'text/typescript', 'Typed application configuration source.'),
|
|
234
|
+
artifact('src/infrastructure/adapters/orm/entities/api-key.orm-entity.ts', 'infrastructure', 'source', 'entity', 'text/typescript', 'TypeORM persistence entity kept in the centralized orm subsystem.'),
|
|
235
|
+
artifact('src/presentation/presentation.module.ts', 'presentation', 'source', 'module', 'text/typescript', 'Presentation layer module boundary.'),
|
|
236
|
+
artifact('src/presentation/rest/rest.presentation.module.ts', 'presentation', 'source', 'module', 'text/typescript', 'REST channel module boundary.'),
|
|
237
|
+
artifact('src/presentation/graphql/graphql.presentation.module.ts', 'presentation', 'source', 'module', 'text/typescript', 'GraphQL channel module boundary.'),
|
|
238
|
+
artifact('src/presentation/cli/cli.presentation.module.ts', 'presentation', 'source', 'module', 'text/typescript', 'CLI channel module boundary.'),
|
|
239
|
+
artifact('src/presentation/websocket/websocket.module.ts', 'presentation', 'source', 'module', 'text/typescript', 'WebSocket channel module boundary.'),
|
|
240
|
+
artifact('src/shared/domain/generic-business-object.ts', 'shared', 'source', 'abstraction', 'text/typescript', 'Shared domain primitive used by Foundation packages.'),
|
|
241
|
+
artifact('src/shared/presentation/generic-controller.ts', 'shared', 'source', 'abstraction', 'text/typescript', 'Shared presentation primitive used by REST controllers.'),
|
|
242
|
+
artifact('tests/app.e2e-spec.ts', 'tests', 'test', 'test', 'text/typescript', 'Initial E2E smoke test for the generated API scaffold.'),
|
|
243
|
+
artifact('tests/jest-e2e.json', 'tests', 'configuration', 'manifest', 'application/json', 'Jest E2E configuration for the scaffold.'),
|
|
234
244
|
];
|
|
235
245
|
}
|
|
236
|
-
function artifact(artifactPath, layer, contentType, reason) {
|
|
237
|
-
|
|
246
|
+
function artifact(artifactPath, layer, artifactKind, role, contentType, reason) {
|
|
247
|
+
const mapEntry = {
|
|
238
248
|
path: artifactPath,
|
|
239
249
|
layer,
|
|
240
250
|
operation: 'planned',
|
|
251
|
+
artifact_kind: artifactKind,
|
|
252
|
+
role,
|
|
241
253
|
content_type: contentType,
|
|
242
254
|
reason,
|
|
255
|
+
language: contentType.includes('typescript') || contentType.includes('javascript') ? 'typescript' : undefined,
|
|
256
|
+
implementation: role === 'interface' || role === 'repository-port' ? 'contract' : 'generated',
|
|
257
|
+
decision_refs: ['EPIC-0075'],
|
|
258
|
+
source_refs: [`${DEVTRACK_API_REFERENCE_ROOT}/${artifactPath}`],
|
|
259
|
+
tags: ['devtrack-api', 'foundation-api'],
|
|
260
|
+
metadata: {},
|
|
261
|
+
};
|
|
262
|
+
return {
|
|
263
|
+
...mapEntry,
|
|
243
264
|
source_reference: `${DEVTRACK_API_REFERENCE_ROOT}/${artifactPath}`,
|
|
265
|
+
decision_refs: mapEntry.decision_refs,
|
|
266
|
+
tags: mapEntry.tags,
|
|
244
267
|
};
|
|
245
268
|
}
|
|
246
269
|
function normalizePackageName(value) {
|