@polymorphism-tech/morph-spec 11.1.1 → 11.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 +3 -2
- package/bin/morph-spec.js +13 -23
- package/docs/CHEATSHEET.md +3 -3
- package/docs/QUICKSTART.md +1 -1
- package/framework/CLAUDE.md +3 -1
- package/framework/MORPH.md +8 -3
- package/framework/agents.json +4 -4
- package/framework/docs/CLI.md +28 -18
- package/framework/evals/review-checklist.md +35 -18
- package/framework/hooks/README.md +18 -11
- package/framework/hooks/claude-code/core/README.md +2 -2
- package/framework/hooks/claude-code/core/chain.js +9 -25
- package/framework/hooks/claude-code/core/comment-guard.js +3 -9
- package/framework/hooks/claude-code/core/conventional-commit.js +3 -3
- package/framework/hooks/claude-code/core/graph-refresh-kick.js +6 -6
- package/framework/hooks/claude-code/core/masked-exit.js +4 -3
- package/framework/hooks/claude-code/core/pre-bash-denylist.js +2 -2
- package/framework/hooks/claude-code/core/protect-spec-files.js +2 -4
- package/framework/hooks/claude-code/core/stack-changed.js +5 -4
- package/framework/hooks/claude-code/core/validate-completion.js +15 -12
- package/framework/hooks/shared/contract.js +22 -1
- package/framework/hooks/shared/git-paths.js +6 -0
- package/framework/hooks/shared/graph-freshness.js +3 -3
- package/framework/hooks/shared/graph-refresh.js +5 -10
- package/framework/hooks/shared/hook-response.js +1 -18
- package/framework/hooks/shared/payload-utils.js +12 -1
- package/framework/hooks/shared/phase-utils.js +4 -52
- package/framework/hooks/shared/report-progress.js +1 -1
- package/framework/mcp/registry.json +16 -32
- package/framework/rules/ai-agents-standards.md +9 -1
- package/framework/rules/dotnet-templates.md +32 -33
- package/framework/rules/gsap-standards.md +8 -0
- package/framework/rules/infrastructure-standards.md +9 -9
- package/framework/rules/mcp-standards.md +10 -0
- package/framework/rules/neon-standards.md +4 -4
- package/framework/rules/nextjs-templates.md +10 -11
- package/framework/rules/ui-design.md +2 -2
- package/framework/schemas/config.schema.json +11 -0
- package/framework/skills/core/create-umbraco-lp/SKILL.md +1 -1
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +1 -1
- package/framework/skills/core/morph-apply/SKILL.md +6 -4
- package/framework/skills/core/morph-plan/SKILL.md +1 -1
- package/framework/skills/core/morph-uiux/SKILL.md +5 -5
- package/framework/standards/STANDARDS.json +8 -4
- package/framework/standards/STANDARDS.meta.json +1 -1
- package/framework/standards/ai-agents/agent-archetypes.md +1 -1
- package/framework/standards/ai-agents/middleware-patterns.md +0 -2
- package/framework/standards/ai-agents/prompt-sources.md +2 -2
- package/framework/standards/ai-agents/providers/model-registry.md +9 -12
- package/framework/standards/ai-agents/rag-custom-pgvector.md +2 -9
- package/framework/standards/frontend/design-system/ai-image-generation.md +1 -1
- package/framework/standards/infrastructure/docker/local-compose-isolation.md +2 -2
- package/framework/standards/integration/mcp/mcp-tools.md +125 -267
- package/framework/templates/README.md +52 -82
- package/framework/templates/REGISTRY.json +1 -281
- package/framework/templates/code/sql/ai-agents/agent-prompts-migration.sql.template +3 -4
- package/framework/templates/context/design-system.md +1 -1
- package/framework/templates/docs/plan.md +2 -2
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Providers/model-registry.v2.json +1 -1
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaDisclosureTests.cs +1 -1
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Morph.AiKit.Tests.csproj +3 -5
- package/framework/templates/frontend/nextjs/gsap-scroll-section.tsx.hbs +13 -17
- package/framework/templates/infrastructure/docker/docker-compose.template.yml +15 -16
- package/framework/templates/infrastructure/github/README.md +10 -13
- package/package.json +7 -16
- package/src/commands/graph/build.js +2 -2
- package/src/commands/mcp/manual-setup.js +95 -0
- package/src/commands/mcp/mcp-setup.js +26 -192
- package/src/commands/project/doctor.js +48 -142
- package/src/commands/project/env.js +2 -1
- package/src/commands/project/init-contract.js +2 -2
- package/src/commands/project/init.js +34 -294
- package/src/commands/project/stack-scan.js +6 -14
- package/src/commands/project/stack-set.js +3 -1
- package/src/commands/project/standards.js +1 -2
- package/src/commands/project/update.js +87 -205
- package/src/commands/scaffold/scaffold.js +43 -5
- package/src/commands/validation/check.js +12 -10
- package/src/commands/validation/prove-red.js +61 -22
- package/src/core/paths/output-schema.js +8 -27
- package/src/core/templates/template-registry.js +8 -43
- package/src/core/templates/template-renderer.js +3 -200
- package/src/lib/ai/ai-checks.js +1 -1
- package/src/lib/ai/ai-project-scan.js +2 -5
- package/src/lib/ai/code-audit.js +3 -8
- package/src/lib/ai/registry-audit.js +2 -1
- package/src/lib/check/signals.js +25 -7
- package/src/lib/config/project-config.js +3 -2
- package/src/lib/contract/apply.js +2 -1
- package/src/lib/contract/defaults.js +2 -2
- package/src/lib/contract/merge.js +1 -0
- package/src/lib/contract/scan.js +5 -5
- package/src/lib/detectors/claude-config-detector.js +44 -98
- package/src/lib/detectors/mcp-config.js +2 -1
- package/src/lib/diff/diff-lines.js +4 -9
- package/src/lib/generators/scaffold-generator.js +5 -17
- package/src/lib/git/default-branch.js +5 -13
- package/src/lib/graph/graph-health.js +1 -1
- package/src/lib/graph/graph-loader.js +2 -1
- package/src/lib/graph/graphifyignore.js +5 -5
- package/src/lib/graph/sanitize.js +2 -2
- package/src/lib/installers/effects.js +0 -13
- package/src/lib/installers/install-manifest.js +56 -0
- package/src/lib/installers/mcp-installer.js +16 -19
- package/src/lib/installers/memory-installer.js +5 -8
- package/src/lib/installers/rules-installer.js +9 -15
- package/src/lib/installers/stack-assets.js +54 -7
- package/src/lib/installers/stack-sync.js +16 -16
- package/src/lib/installers/stack-tooling.js +4 -3
- package/src/lib/json-file.js +9 -0
- package/src/lib/plan/artifact-vocabulary.js +1 -1
- package/src/lib/plan/checks.js +4 -3
- package/src/lib/plan/media.js +6 -6
- package/src/lib/plan/plan-parser.js +6 -11
- package/src/lib/review-reports.js +13 -18
- package/src/lib/scan/worktree-dirs.js +1 -3
- package/src/lib/specs/adr-index.js +4 -4
- package/src/lib/specs/revocations.js +3 -3
- package/src/lib/stack/stack-scan.js +4 -4
- package/src/lib/standards/registry.js +1 -1
- package/src/lib/standards/verified-against.js +3 -3
- package/src/lib/tests-audit/audit.js +3 -3
- package/src/lib/text.js +5 -0
- package/src/scripts/global-install.js +41 -19
- package/src/scripts/setup-infra.js +68 -187
- package/src/utils/agents-installer.js +21 -60
- package/src/utils/claude-md-injector.js +16 -50
- package/src/utils/claude-settings-manager.js +29 -27
- package/src/utils/file-copier.js +3 -4
- package/src/utils/hooks-installer.js +83 -62
- package/src/utils/skills-installer.js +18 -78
- package/src/utils/version-checker.js +2 -31
- package/CLAUDE.md +0 -118
- package/framework/commands/create-umbraco-lp.md +0 -37
- package/framework/commands/migrate-lp-to-umbraco.md +0 -35
- package/framework/commands/morph-apply.md +0 -14
- package/framework/hooks/shared/spawn-command.js +0 -23
- package/framework/templates/CLAUDE.md.core.guide.md +0 -29
- package/framework/templates/CLAUDE.md.core.template +0 -22
- package/framework/templates/IDE-SNIPPETS.md +0 -262
- package/framework/templates/code/dotnet/ai-agents/AgentBootstrap.cs.template +0 -26
- package/framework/templates/code/dotnet/ai-agents/EmbeddingService.cs.template +0 -28
- package/framework/templates/code/dotnet/ai-agents/ModelRegistry.cs.template +0 -99
- package/framework/templates/code/dotnet/ai-agents/ResilientToolMiddleware.cs.template +0 -40
- package/framework/templates/code/dotnet/ai-agents/VectorSearchTool.cs.template +0 -54
- package/framework/templates/code/dotnet/ai-agents/model-registry.json.template +0 -53
- package/framework/templates/code/dotnet/contracts/README.md +0 -74
- package/framework/templates/code/dotnet/database/vector-entity.cs +0 -49
- package/framework/templates/code/sql/ai-agents/pgvector-embeddings-migration.sql.template +0 -91
- package/framework/templates/code/sql/postgresql-migration.template.sql +0 -108
- package/framework/templates/code/typescript/contracts.ts +0 -140
- package/framework/templates/context/ARCHITECTURE.md +0 -106
- package/framework/templates/examples/design-system-examples.md +0 -354
- package/framework/templates/infrastructure/docker/Dockerfile.template +0 -58
- package/framework/templates/infrastructure/github/actions/docker-build-push/action.yml.hbs +0 -45
- package/framework/templates/infrastructure/github/actions/health-check/action.yml.hbs +0 -27
- package/framework/templates/integrations/asaas-client.cs +0 -332
- package/framework/templates/integrations/asaas-webhook.cs +0 -290
- package/framework/templates/integrations/neon-auth-config.cs +0 -170
- package/framework/templates/ui/design-system.css +0 -226
- package/src/commands/context/context-refresh.js +0 -63
- package/src/lib/detectors/index.js +0 -178
- package/src/lib/generators/architecture-scanner.js +0 -543
- package/src/lib/generators/settings-generator.js +0 -97
- package/src/lib/graph/god-nodes.js +0 -65
- package/src/lib/installers/templates-reconcile.js +0 -26
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"version": "2.0.0",
|
|
4
4
|
"description": "Template Registry for MORPH-SPEC Framework - Technology-based organization for multi-stack reusability",
|
|
5
5
|
"kinds": {
|
|
6
|
-
"template": "Rendered to an output file. Rich shape: id, name, path, category,
|
|
6
|
+
"template": "Rendered to an output file. Rich shape: id, name, path, category, outputName (+ placeholders).",
|
|
7
7
|
"fragment": "A reference snippet read as an example, never rendered. Minimal shape: id, path, category, stack, description.",
|
|
8
8
|
"project": "A whole compilable project registered as ONE unit — its files are not consumable one by one. Minimal shape: id, path, category, stack, description; `path` ends in \"/\" because it is a DIRECTORY. Every tracked file under it counts as registered (validate-framework.js Check 12), and a project directory with no tracked file is an error."
|
|
9
9
|
},
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"name": "Feature Plan",
|
|
15
15
|
"path": "docs/plan.md",
|
|
16
16
|
"category": "documentation",
|
|
17
|
-
"phase": "plan",
|
|
18
17
|
"description": "Single source of a feature: problem, scenarios (Cn with proof), decisions (ADRs), reuse, slices (Fn) and errata — parsed by morph-spec plan-check into checks.json",
|
|
19
18
|
"outputName": "plan.md",
|
|
20
19
|
"placeholders": [
|
|
@@ -23,39 +22,12 @@
|
|
|
23
22
|
"deprecated": false,
|
|
24
23
|
"validatePlaceholders": true
|
|
25
24
|
},
|
|
26
|
-
{
|
|
27
|
-
"id": "architecture",
|
|
28
|
-
"kind": "template",
|
|
29
|
-
"name": "Architecture Context",
|
|
30
|
-
"path": "context/ARCHITECTURE.md",
|
|
31
|
-
"category": "context",
|
|
32
|
-
"phase": "plan",
|
|
33
|
-
"description": "Auto-scanned architecture context with entities, endpoints, pages, components, integrations, database tables, and package versions",
|
|
34
|
-
"outputName": "ARCHITECTURE.md",
|
|
35
|
-
"placeholders": [],
|
|
36
|
-
"deprecated": false,
|
|
37
|
-
"validatePlaceholders": true
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "design-system-examples",
|
|
41
|
-
"kind": "template",
|
|
42
|
-
"name": "Design System Examples",
|
|
43
|
-
"path": "examples/design-system-examples.md",
|
|
44
|
-
"category": "examples",
|
|
45
|
-
"phase": null,
|
|
46
|
-
"description": "Example design system definitions",
|
|
47
|
-
"outputName": null,
|
|
48
|
-
"placeholders": [],
|
|
49
|
-
"deprecated": false,
|
|
50
|
-
"validatePlaceholders": true
|
|
51
|
-
},
|
|
52
25
|
{
|
|
53
26
|
"id": "dotnet-backend-test",
|
|
54
27
|
"kind": "template",
|
|
55
28
|
"name": ".NET Unit Test",
|
|
56
29
|
"path": "code/dotnet/test.cs",
|
|
57
30
|
"category": "code",
|
|
58
|
-
"phase": "implement",
|
|
59
31
|
"description": "xUnit test template with AAA pattern",
|
|
60
32
|
"outputName": "{FeatureName}Tests.cs",
|
|
61
33
|
"placeholders": [],
|
|
@@ -68,7 +40,6 @@
|
|
|
68
40
|
"name": "EF Core Migration",
|
|
69
41
|
"path": "code/dotnet/database/migration.cs",
|
|
70
42
|
"category": "code",
|
|
71
|
-
"phase": "implement",
|
|
72
43
|
"description": "EF Core migration template with Up/Down methods",
|
|
73
44
|
"outputName": "{Timestamp}_{FeatureName}.cs",
|
|
74
45
|
"placeholders": [
|
|
@@ -83,7 +54,6 @@
|
|
|
83
54
|
"name": "Hangfire Background Job",
|
|
84
55
|
"path": "code/dotnet/jobs/job.cs",
|
|
85
56
|
"category": "code",
|
|
86
|
-
"phase": "implement",
|
|
87
57
|
"description": "Hangfire background job template with retry logic",
|
|
88
58
|
"outputName": "{FeatureName}Job.cs",
|
|
89
59
|
"placeholders": [],
|
|
@@ -96,7 +66,6 @@
|
|
|
96
66
|
"name": "MS Agent Framework Agent",
|
|
97
67
|
"path": "code/dotnet/jobs/agent.cs",
|
|
98
68
|
"category": "code",
|
|
99
|
-
"phase": "implement",
|
|
100
69
|
"description": "Microsoft Agent Framework agent template with prompt engineering",
|
|
101
70
|
"outputName": "{FeatureName}Agent.cs",
|
|
102
71
|
"placeholders": [
|
|
@@ -105,26 +74,12 @@
|
|
|
105
74
|
"deprecated": false,
|
|
106
75
|
"validatePlaceholders": true
|
|
107
76
|
},
|
|
108
|
-
{
|
|
109
|
-
"id": "dotnet-contracts-readme",
|
|
110
|
-
"kind": "template",
|
|
111
|
-
"name": "Contracts README",
|
|
112
|
-
"path": "code/dotnet/contracts/README.md",
|
|
113
|
-
"category": "documentation",
|
|
114
|
-
"phase": "implement",
|
|
115
|
-
"description": "Documentation for contract patterns and usage",
|
|
116
|
-
"outputName": "README.md",
|
|
117
|
-
"placeholders": [],
|
|
118
|
-
"deprecated": false,
|
|
119
|
-
"validatePlaceholders": true
|
|
120
|
-
},
|
|
121
77
|
{
|
|
122
78
|
"id": "dotnet-contracts-vsa",
|
|
123
79
|
"kind": "template",
|
|
124
80
|
"name": "Vertical Slice Architecture Contracts",
|
|
125
81
|
"path": "code/dotnet/contracts/contracts-vsa.cs",
|
|
126
82
|
"category": "code",
|
|
127
|
-
"phase": "implement",
|
|
128
83
|
"description": "Feature slice completo: Abstractions, Entity, Errors, e um slice de operação (Request, Response, Validator, Handler, Endpoint). Padrão KanaiyaKatarmal (.NET 10, Minimal APIs, EF Core 10, FluentValidation 12, Scrutor 7).",
|
|
129
84
|
"outputName": "contracts.cs",
|
|
130
85
|
"placeholders": [
|
|
@@ -135,29 +90,12 @@
|
|
|
135
90
|
"deprecated": false,
|
|
136
91
|
"validatePlaceholders": true
|
|
137
92
|
},
|
|
138
|
-
{
|
|
139
|
-
"id": "typescript-contracts",
|
|
140
|
-
"kind": "template",
|
|
141
|
-
"name": "TypeScript Contracts",
|
|
142
|
-
"path": "code/typescript/contracts.ts",
|
|
143
|
-
"category": "code",
|
|
144
|
-
"phase": "implement",
|
|
145
|
-
"description": "TypeScript type definitions and interfaces",
|
|
146
|
-
"outputName": "contracts.ts",
|
|
147
|
-
"placeholders": [
|
|
148
|
-
"DATE",
|
|
149
|
-
"FEATURE_NAME"
|
|
150
|
-
],
|
|
151
|
-
"deprecated": false,
|
|
152
|
-
"validatePlaceholders": true
|
|
153
|
-
},
|
|
154
93
|
{
|
|
155
94
|
"id": "sql-postgresql-migration",
|
|
156
95
|
"kind": "template",
|
|
157
96
|
"name": "PostgreSQL Migration",
|
|
158
97
|
"path": "code/sql/postgresql-migration.sql",
|
|
159
98
|
"category": "code",
|
|
160
|
-
"phase": "implement",
|
|
161
99
|
"description": "PostgreSQL migration template (basic)",
|
|
162
100
|
"outputName": "{timestamp}_{feature_name}.sql",
|
|
163
101
|
"placeholders": [
|
|
@@ -167,31 +105,12 @@
|
|
|
167
105
|
"deprecated": false,
|
|
168
106
|
"validatePlaceholders": true
|
|
169
107
|
},
|
|
170
|
-
{
|
|
171
|
-
"id": "sql-postgresql-migration-enhanced",
|
|
172
|
-
"kind": "template",
|
|
173
|
-
"name": "PostgreSQL Migration (Enhanced)",
|
|
174
|
-
"path": "code/sql/postgresql-migration.template.sql",
|
|
175
|
-
"category": "code",
|
|
176
|
-
"phase": "implement",
|
|
177
|
-
"description": "Enhanced PostgreSQL migration with RLS and indexes",
|
|
178
|
-
"outputName": "{timestamp}_{feature_name}_enhanced.sql",
|
|
179
|
-
"placeholders": [
|
|
180
|
-
"DATE",
|
|
181
|
-
"DESCRIPTION",
|
|
182
|
-
"FEATURE_NAME_HUMAN",
|
|
183
|
-
"TABLE_NAME"
|
|
184
|
-
],
|
|
185
|
-
"deprecated": false,
|
|
186
|
-
"validatePlaceholders": true
|
|
187
|
-
},
|
|
188
108
|
{
|
|
189
109
|
"id": "sql-rls-policy",
|
|
190
110
|
"kind": "template",
|
|
191
111
|
"name": "Row-Level Security Policy",
|
|
192
112
|
"path": "code/sql/postgresql-rls-policy.sql",
|
|
193
113
|
"category": "code",
|
|
194
|
-
"phase": "implement",
|
|
195
114
|
"description": "Row-level security policy template for PostgreSQL (Neon)",
|
|
196
115
|
"outputName": "{table_name}_rls_policies.sql",
|
|
197
116
|
"placeholders": [
|
|
@@ -211,7 +130,6 @@
|
|
|
211
130
|
"name": "Dockerfile (.NET API)",
|
|
212
131
|
"path": "infrastructure/docker/dockerfile-api.dockerfile",
|
|
213
132
|
"category": "infrastructure",
|
|
214
|
-
"phase": "implement",
|
|
215
133
|
"description": ".NET API Dockerfile for Coolify/Docker",
|
|
216
134
|
"outputName": "Dockerfile.api",
|
|
217
135
|
"placeholders": [],
|
|
@@ -224,33 +142,18 @@
|
|
|
224
142
|
"name": "Dockerfile (Next.js Web)",
|
|
225
143
|
"path": "infrastructure/docker/dockerfile-web.dockerfile",
|
|
226
144
|
"category": "infrastructure",
|
|
227
|
-
"phase": "implement",
|
|
228
145
|
"description": "Next.js web Dockerfile for Coolify/Docker",
|
|
229
146
|
"outputName": "Dockerfile.web",
|
|
230
147
|
"placeholders": [],
|
|
231
148
|
"deprecated": false,
|
|
232
149
|
"validatePlaceholders": true
|
|
233
150
|
},
|
|
234
|
-
{
|
|
235
|
-
"id": "docker-dockerfile-generic",
|
|
236
|
-
"kind": "template",
|
|
237
|
-
"name": "Dockerfile (Generic)",
|
|
238
|
-
"path": "infrastructure/docker/Dockerfile.template",
|
|
239
|
-
"category": "infrastructure",
|
|
240
|
-
"phase": "implement",
|
|
241
|
-
"description": "Generic multi-stage Dockerfile template",
|
|
242
|
-
"outputName": "Dockerfile",
|
|
243
|
-
"placeholders": [],
|
|
244
|
-
"deprecated": false,
|
|
245
|
-
"validatePlaceholders": true
|
|
246
|
-
},
|
|
247
151
|
{
|
|
248
152
|
"id": "docker-compose",
|
|
249
153
|
"kind": "template",
|
|
250
154
|
"name": "Docker Compose",
|
|
251
155
|
"path": "infrastructure/docker/docker-compose.template.yml",
|
|
252
156
|
"category": "infrastructure",
|
|
253
|
-
"phase": "implement",
|
|
254
157
|
"description": "Docker Compose for local development — one isolated stack per worktree (ports from the block, no container_name)",
|
|
255
158
|
"outputName": "docker-compose.yml",
|
|
256
159
|
"placeholders": [],
|
|
@@ -263,7 +166,6 @@
|
|
|
263
166
|
"name": "Coolify Configuration",
|
|
264
167
|
"path": "infrastructure/docker/coolify.template.json",
|
|
265
168
|
"category": "infrastructure",
|
|
266
|
-
"phase": "implement",
|
|
267
169
|
"description": "Coolify deployment configuration — accessed via SSH + API, no MCP/CLI",
|
|
268
170
|
"outputName": "coolify.json",
|
|
269
171
|
"placeholders": [
|
|
@@ -273,67 +175,12 @@
|
|
|
273
175
|
"deprecated": false,
|
|
274
176
|
"validatePlaceholders": true
|
|
275
177
|
},
|
|
276
|
-
{
|
|
277
|
-
"id": "integration-asaas-client",
|
|
278
|
-
"kind": "template",
|
|
279
|
-
"name": "Asaas Financial Client",
|
|
280
|
-
"path": "integrations/asaas-client.cs",
|
|
281
|
-
"category": "integration",
|
|
282
|
-
"phase": "implement",
|
|
283
|
-
"description": "Asaas financial API client implementation",
|
|
284
|
-
"outputName": "AsaasClient.cs",
|
|
285
|
-
"placeholders": [],
|
|
286
|
-
"deprecated": false,
|
|
287
|
-
"validatePlaceholders": true
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"id": "integration-asaas-webhook",
|
|
291
|
-
"kind": "template",
|
|
292
|
-
"name": "Asaas Webhook Handler",
|
|
293
|
-
"path": "integrations/asaas-webhook.cs",
|
|
294
|
-
"category": "integration",
|
|
295
|
-
"phase": "implement",
|
|
296
|
-
"description": "Asaas webhook handler for payment events",
|
|
297
|
-
"outputName": "AsaasWebhookHandler.cs",
|
|
298
|
-
"placeholders": [],
|
|
299
|
-
"deprecated": false,
|
|
300
|
-
"validatePlaceholders": true
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"id": "integration-neon-auth",
|
|
304
|
-
"kind": "template",
|
|
305
|
-
"name": "Neon Auth Configuration",
|
|
306
|
-
"path": "integrations/neon-auth-config.cs",
|
|
307
|
-
"category": "integration",
|
|
308
|
-
"phase": "implement",
|
|
309
|
-
"description": "Neon Auth (Better Auth) EdDSA/Ed25519 JWT validation for .NET via BouncyCastle — cached JWKS provider + manual SignatureValidator (no OIDC discovery available)",
|
|
310
|
-
"outputName": "NeonAuthConfig.cs",
|
|
311
|
-
"placeholders": [
|
|
312
|
-
"Namespace"
|
|
313
|
-
],
|
|
314
|
-
"deprecated": false,
|
|
315
|
-
"validatePlaceholders": true
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"id": "ui-design-system-css",
|
|
319
|
-
"kind": "template",
|
|
320
|
-
"name": "Design System CSS",
|
|
321
|
-
"path": "ui/design-system.css",
|
|
322
|
-
"category": "ui",
|
|
323
|
-
"phase": "uiux",
|
|
324
|
-
"description": "CSS design tokens and variables (colors, spacing, typography)",
|
|
325
|
-
"outputName": "design-system.css",
|
|
326
|
-
"placeholders": [],
|
|
327
|
-
"deprecated": false,
|
|
328
|
-
"validatePlaceholders": true
|
|
329
|
-
},
|
|
330
178
|
{
|
|
331
179
|
"id": "github-workflow-dotnet-build",
|
|
332
180
|
"kind": "template",
|
|
333
181
|
"name": "GitHub Actions - .NET Build Workflow",
|
|
334
182
|
"path": "infrastructure/github/workflows/dotnet-build.yml.hbs",
|
|
335
183
|
"category": "infrastructure",
|
|
336
|
-
"phase": "implement",
|
|
337
184
|
"description": "Reusable workflow for building .NET applications with restore, build, test, coverage",
|
|
338
185
|
"outputName": "dotnet-build.yml",
|
|
339
186
|
"placeholders": [
|
|
@@ -348,7 +195,6 @@
|
|
|
348
195
|
"name": "GitHub Actions - Docker Build & Push",
|
|
349
196
|
"path": "infrastructure/github/workflows/docker-build-push.yml.hbs",
|
|
350
197
|
"category": "infrastructure",
|
|
351
|
-
"phase": "implement",
|
|
352
198
|
"description": "Reusable workflow for building and pushing Docker images to registry",
|
|
353
199
|
"outputName": "docker-build-push.yml",
|
|
354
200
|
"placeholders": [],
|
|
@@ -361,39 +207,12 @@
|
|
|
361
207
|
"name": "GitHub Actions - Deploy to Coolify",
|
|
362
208
|
"path": "infrastructure/github/workflows/deploy-coolify.yml.hbs",
|
|
363
209
|
"category": "infrastructure",
|
|
364
|
-
"phase": "implement",
|
|
365
210
|
"description": "Reusable workflow for deploying to Coolify via SSH (API is not publicly exposed)",
|
|
366
211
|
"outputName": "deploy-coolify.yml",
|
|
367
212
|
"placeholders": [],
|
|
368
213
|
"deprecated": false,
|
|
369
214
|
"validatePlaceholders": true
|
|
370
215
|
},
|
|
371
|
-
{
|
|
372
|
-
"id": "github-action-docker-build-push",
|
|
373
|
-
"kind": "template",
|
|
374
|
-
"name": "GitHub Composite Action - Docker Build & Push",
|
|
375
|
-
"path": "infrastructure/github/actions/docker-build-push/action.yml.hbs",
|
|
376
|
-
"category": "infrastructure",
|
|
377
|
-
"phase": "implement",
|
|
378
|
-
"description": "Composite action for building and pushing Docker images",
|
|
379
|
-
"outputName": "action.yml",
|
|
380
|
-
"placeholders": [],
|
|
381
|
-
"deprecated": false,
|
|
382
|
-
"validatePlaceholders": true
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
"id": "github-action-health-check",
|
|
386
|
-
"kind": "template",
|
|
387
|
-
"name": "GitHub Composite Action - Health Check",
|
|
388
|
-
"path": "infrastructure/github/actions/health-check/action.yml.hbs",
|
|
389
|
-
"category": "infrastructure",
|
|
390
|
-
"phase": "implement",
|
|
391
|
-
"description": "Composite action for polling health endpoint until ready",
|
|
392
|
-
"outputName": "action.yml",
|
|
393
|
-
"placeholders": [],
|
|
394
|
-
"deprecated": false,
|
|
395
|
-
"validatePlaceholders": true
|
|
396
|
-
},
|
|
397
216
|
{
|
|
398
217
|
"id": "dotnet-abstractions-handler",
|
|
399
218
|
"kind": "fragment",
|
|
@@ -563,35 +382,10 @@
|
|
|
563
382
|
"description": "Scroll-animated section using GSAP ScrollTrigger with useGSAP hook and reduced-motion check",
|
|
564
383
|
"name": "GSAP Scroll Section",
|
|
565
384
|
"deprecated": false,
|
|
566
|
-
"phase": null,
|
|
567
385
|
"outputName": null,
|
|
568
386
|
"placeholders": [],
|
|
569
387
|
"validatePlaceholders": true
|
|
570
388
|
},
|
|
571
|
-
{
|
|
572
|
-
"id": "maf-agent-bootstrap",
|
|
573
|
-
"kind": "fragment",
|
|
574
|
-
"path": "code/dotnet/ai-agents/AgentBootstrap.cs.template",
|
|
575
|
-
"category": "ai-agents",
|
|
576
|
-
"stack": "dotnet",
|
|
577
|
-
"description": "DI extension method to register ModelRegistry + a default MAF agent"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"id": "maf-embedding-service",
|
|
581
|
-
"kind": "fragment",
|
|
582
|
-
"path": "code/dotnet/ai-agents/EmbeddingService.cs.template",
|
|
583
|
-
"category": "ai-agents",
|
|
584
|
-
"stack": "dotnet",
|
|
585
|
-
"description": "Generates embeddings for RAG indexing and query via IEmbeddingGenerator"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
"id": "maf-model-registry",
|
|
589
|
-
"kind": "fragment",
|
|
590
|
-
"path": "code/dotnet/ai-agents/ModelRegistry.cs.template",
|
|
591
|
-
"category": "ai-agents",
|
|
592
|
-
"stack": "dotnet",
|
|
593
|
-
"description": "Reads config/model-registry.json at startup, exposes IChatClient by alias"
|
|
594
|
-
},
|
|
595
389
|
{
|
|
596
390
|
"id": "maf-prompt-repository",
|
|
597
391
|
"kind": "fragment",
|
|
@@ -600,22 +394,6 @@
|
|
|
600
394
|
"stack": "dotnet",
|
|
601
395
|
"description": "Loads agent system prompts from the agent_prompts table, with caching"
|
|
602
396
|
},
|
|
603
|
-
{
|
|
604
|
-
"id": "maf-resilient-tool-middleware",
|
|
605
|
-
"kind": "fragment",
|
|
606
|
-
"path": "code/dotnet/ai-agents/ResilientToolMiddleware.cs.template",
|
|
607
|
-
"category": "ai-agents",
|
|
608
|
-
"stack": "dotnet",
|
|
609
|
-
"description": "Function-calling middleware: retry/rate-limit resilience + arg validation"
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"id": "maf-vector-search-tool",
|
|
613
|
-
"kind": "fragment",
|
|
614
|
-
"path": "code/dotnet/ai-agents/VectorSearchTool.cs.template",
|
|
615
|
-
"category": "ai-agents",
|
|
616
|
-
"stack": "dotnet",
|
|
617
|
-
"description": "Typed MAF tool retrieving relevant chunks from the pgvector knowledge base"
|
|
618
|
-
},
|
|
619
397
|
{
|
|
620
398
|
"id": "ai-kit",
|
|
621
399
|
"kind": "project",
|
|
@@ -624,14 +402,6 @@
|
|
|
624
402
|
"stack": "dotnet",
|
|
625
403
|
"description": "Morph.AiKit — solucao .NET compilavel que prova os standards ai-agents contra framework/ai-pin.json"
|
|
626
404
|
},
|
|
627
|
-
{
|
|
628
|
-
"id": "maf-model-registry-config",
|
|
629
|
-
"kind": "fragment",
|
|
630
|
-
"path": "code/dotnet/ai-agents/model-registry.json.template",
|
|
631
|
-
"category": "ai-agents",
|
|
632
|
-
"stack": "dotnet",
|
|
633
|
-
"description": "config/model-registry.json — single source of truth for model selection"
|
|
634
|
-
},
|
|
635
405
|
{
|
|
636
406
|
"id": "maf-agent-prompts-migration",
|
|
637
407
|
"kind": "fragment",
|
|
@@ -640,29 +410,12 @@
|
|
|
640
410
|
"stack": "dotnet",
|
|
641
411
|
"description": "SQL migration: agent_prompts table for versioned, runtime-editable prompts"
|
|
642
412
|
},
|
|
643
|
-
{
|
|
644
|
-
"id": "maf-pgvector-embeddings-migration",
|
|
645
|
-
"kind": "fragment",
|
|
646
|
-
"path": "code/sql/ai-agents/pgvector-embeddings-migration.sql.template",
|
|
647
|
-
"category": "code",
|
|
648
|
-
"stack": "dotnet",
|
|
649
|
-
"description": "SQL migration: kb_embeddings table for custom RAG chunk storage with pgvector"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"id": "dotnet-database-vector-entity",
|
|
653
|
-
"kind": "fragment",
|
|
654
|
-
"path": "code/dotnet/database/vector-entity.cs",
|
|
655
|
-
"category": "code",
|
|
656
|
-
"stack": "dotnet",
|
|
657
|
-
"description": "pgvector entity + EF Core configuration template"
|
|
658
|
-
},
|
|
659
413
|
{
|
|
660
414
|
"id": "nextjs-page",
|
|
661
415
|
"kind": "template",
|
|
662
416
|
"name": "Next.js Feature Page",
|
|
663
417
|
"path": "frontend/nextjs/page.tsx.hbs",
|
|
664
418
|
"category": "ui",
|
|
665
|
-
"phase": null,
|
|
666
419
|
"outputName": null,
|
|
667
420
|
"description": "Server component page for a dashboard feature route",
|
|
668
421
|
"deprecated": false,
|
|
@@ -675,7 +428,6 @@
|
|
|
675
428
|
"name": "Next.js Client Component",
|
|
676
429
|
"path": "frontend/nextjs/client-component.tsx.hbs",
|
|
677
430
|
"category": "ui",
|
|
678
|
-
"phase": null,
|
|
679
431
|
"outputName": null,
|
|
680
432
|
"description": "Client component listing feature records",
|
|
681
433
|
"deprecated": false,
|
|
@@ -688,7 +440,6 @@
|
|
|
688
440
|
"name": "Next.js Feature Form",
|
|
689
441
|
"path": "frontend/nextjs/feature-form.tsx.hbs",
|
|
690
442
|
"category": "ui",
|
|
691
|
-
"phase": null,
|
|
692
443
|
"outputName": null,
|
|
693
444
|
"description": "Client form component for creating a feature record",
|
|
694
445
|
"deprecated": false,
|
|
@@ -701,7 +452,6 @@
|
|
|
701
452
|
"name": "Next.js Feature Hook",
|
|
702
453
|
"path": "frontend/nextjs/use-feature.ts.hbs",
|
|
703
454
|
"category": "ui",
|
|
704
|
-
"phase": null,
|
|
705
455
|
"outputName": null,
|
|
706
456
|
"description": "Data-fetching hook for a feature",
|
|
707
457
|
"deprecated": false,
|
|
@@ -714,7 +464,6 @@
|
|
|
714
464
|
"name": "Next.js Dockerfile",
|
|
715
465
|
"path": "frontend/nextjs/Dockerfile.nextjs.hbs",
|
|
716
466
|
"category": "infrastructure",
|
|
717
|
-
"phase": null,
|
|
718
467
|
"outputName": null,
|
|
719
468
|
"description": "Multi-stage Dockerfile for a Next.js standalone build",
|
|
720
469
|
"deprecated": false,
|
|
@@ -727,7 +476,6 @@
|
|
|
727
476
|
"name": "Next.js Env Schema",
|
|
728
477
|
"path": "frontend/nextjs/env.mjs.hbs",
|
|
729
478
|
"category": "ui",
|
|
730
|
-
"phase": null,
|
|
731
479
|
"outputName": null,
|
|
732
480
|
"description": "Type-safe environment variable schema (env.mjs)",
|
|
733
481
|
"deprecated": false,
|
|
@@ -740,7 +488,6 @@
|
|
|
740
488
|
"name": "Next.js tsconfig",
|
|
741
489
|
"path": "frontend/nextjs/tsconfig.json.hbs",
|
|
742
490
|
"category": "ui",
|
|
743
|
-
"phase": null,
|
|
744
491
|
"outputName": null,
|
|
745
492
|
"description": "TypeScript configuration for a Next.js project",
|
|
746
493
|
"deprecated": false,
|
|
@@ -753,38 +500,11 @@
|
|
|
753
500
|
"name": "Design System Context",
|
|
754
501
|
"path": "context/design-system.md",
|
|
755
502
|
"category": "context",
|
|
756
|
-
"phase": null,
|
|
757
503
|
"outputName": null,
|
|
758
504
|
"description": "Design system context document — copy to .morph/context/design-system.md",
|
|
759
505
|
"deprecated": false,
|
|
760
506
|
"placeholders": [],
|
|
761
507
|
"validatePlaceholders": true
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"id": "claude-md-core",
|
|
765
|
-
"kind": "template",
|
|
766
|
-
"name": "CLAUDE.md (core)",
|
|
767
|
-
"path": "CLAUDE.md.core.template",
|
|
768
|
-
"category": "documentation",
|
|
769
|
-
"phase": null,
|
|
770
|
-
"outputName": null,
|
|
771
|
-
"description": "CLAUDE.md project-instructions template for a new morph-spec project",
|
|
772
|
-
"deprecated": false,
|
|
773
|
-
"placeholders": [],
|
|
774
|
-
"validatePlaceholders": true
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"id": "claude-md-core-guide",
|
|
778
|
-
"kind": "template",
|
|
779
|
-
"name": "CLAUDE.md Authoring Guide",
|
|
780
|
-
"path": "CLAUDE.md.core.guide.md",
|
|
781
|
-
"category": "documentation",
|
|
782
|
-
"phase": null,
|
|
783
|
-
"outputName": null,
|
|
784
|
-
"description": "Authoring guide explaining how to fill in the CLAUDE.md core template",
|
|
785
|
-
"deprecated": false,
|
|
786
|
-
"placeholders": [],
|
|
787
|
-
"validatePlaceholders": true
|
|
788
508
|
}
|
|
789
509
|
]
|
|
790
510
|
}
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
-- READS STANDARD: ai-agents-prompt-sources
|
|
4
4
|
-- PLACEHOLDERS:
|
|
5
5
|
-- {{SCHEMA}} — target schema (default: public)
|
|
6
|
-
-- LAST-VERIFIED: 2026-05-19
|
|
7
6
|
|
|
8
7
|
-- ============================================================
|
|
9
8
|
-- 1. TABLE
|
|
10
9
|
-- ============================================================
|
|
11
10
|
|
|
12
11
|
CREATE TABLE {{SCHEMA}}.agent_prompts (
|
|
13
|
-
id uuid PRIMARY KEY
|
|
12
|
+
id uuid PRIMARY KEY, -- set by the app (Guid.CreateVersion7()), never a column default
|
|
14
13
|
agent_key text NOT NULL,
|
|
15
14
|
version int NOT NULL,
|
|
16
15
|
content text NOT NULL,
|
|
@@ -48,8 +47,8 @@ CREATE UNIQUE INDEX ix_agent_prompts_agent_key_version
|
|
|
48
47
|
-- 3. SEED (optional — remove if managed via backoffice)
|
|
49
48
|
-- ============================================================
|
|
50
49
|
|
|
51
|
-
-- INSERT INTO {{SCHEMA}}.agent_prompts (agent_key, version, content, is_active)
|
|
52
|
-
-- VALUES ('my-agent', 1, 'You are a helpful assistant.', true);
|
|
50
|
+
-- INSERT INTO {{SCHEMA}}.agent_prompts (id, agent_key, version, content, is_active)
|
|
51
|
+
-- VALUES (:'new_id', 'my-agent', 1, 'You are a helpful assistant.', true);
|
|
53
52
|
|
|
54
53
|
-- ============================================================
|
|
55
54
|
-- ROLLBACK
|
|
@@ -16,7 +16,7 @@ Living document. All agents read this before any UI work. All design decisions l
|
|
|
16
16
|
- **Motion Personality**: spring-based, purposeful /* CUSTOMIZE */
|
|
17
17
|
- **Visual Density**: balanced /* CUSTOMIZE */
|
|
18
18
|
- **Composition**: [TODO: Layout approach — see Domain Patterns below for guidance]
|
|
19
|
-
- **Selected Trends**: [TODO: Fill from
|
|
19
|
+
- **Selected Trends**: [TODO: Fill from the trend research — e.g., Bento Grid, Glassmorphism]
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Plano — {{FEATURE_NAME}}
|
|
2
2
|
|
|
3
3
|
<!-- Fonte única da feature. `morph-spec plan-check {{FEATURE_NAME}}` lê este arquivo e grava 2-plan/checks.json.
|
|
4
|
-
|
|
4
|
+
Gravado o `checks.json`, o corpo congela: fato errado sobre o código vai em ## Errata (append-only). -->
|
|
5
5
|
|
|
6
6
|
## Resumo
|
|
7
7
|
|
|
@@ -44,7 +44,7 @@ Resultado buscado: <o estado depois: o que muda, para quem, como se percebe.>
|
|
|
44
44
|
`prova: teste` exige `risco:` regra | dinheiro | contrato | concorrência | dado | regressão; sem risco, `leitura`.
|
|
45
45
|
`degrau:` migrar | irreversível quando um revert não desfaz (toda migration é migrar); sem a linha, refazer.
|
|
46
46
|
Cenário que fala de arquivo, grep ou texto exige a linha "> Por que artefato:" logo abaixo.
|
|
47
|
-
`título:` é o nome do cenário para o dono (
|
|
47
|
+
`título:` é o nome do cenário para o dono (conversa, report, PR): até dez palavras, linguagem de quem usa, sem identificador de código. -->
|
|
48
48
|
|
|
49
49
|
- **C1** — Dado <estado>, quando <ação>, então <resultado observável>.
|
|
50
50
|
título: <o que passa a funcionar>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// LIDO POR: Morph.AiKit.Providers.ModelRegistry.FromJson
|
|
3
3
|
// STANDARD: ai-agents-providers-model-registry
|
|
4
4
|
//
|
|
5
|
-
// O que a v2 acrescenta a v1
|
|
5
|
+
// O que a v2 acrescenta a v1:
|
|
6
6
|
//
|
|
7
7
|
// api: protocolo POR ALIAS. Omitido = "responses" (a decisao da casa).
|
|
8
8
|
// "chat" e opt-in explicito: alguem tem de escrever, e assumir.
|
|
@@ -49,7 +49,7 @@ public sealed class MediaDisclosureTests
|
|
|
49
49
|
Assert.False(
|
|
50
50
|
result.IsSuccess,
|
|
51
51
|
"publicar sem marcacao e o caminho que a obrigacao legal existe para fechar; " +
|
|
52
|
-
"se ele existe, a prova de midia
|
|
52
|
+
"se ele existe, a prova de midia da revisao esta presa so por prosa");
|
|
53
53
|
Assert.Equal(MediaErrorCode.InvalidTransition, result.Error!.Code);
|
|
54
54
|
Assert.Contains("marcacao", result.Error.Message, StringComparison.OrdinalIgnoreCase);
|
|
55
55
|
}
|
|
@@ -19,14 +19,13 @@
|
|
|
19
19
|
pelo menos um: uma execucao verde de menos de N casos sai 9. ZERO casos
|
|
20
20
|
continua saindo 8 (ZeroTests) — o piso NAO supera o veredito 8; a ordem
|
|
21
21
|
medida e ZeroTests antes da politica (duas vezes em 2026-09-14, com piso
|
|
22
|
-
275 e com piso 1
|
|
23
|
-
morph-spec). Medido em 2026‑09‑08 contra o SDK .NET 10:
|
|
22
|
+
275 e com piso 1). Medido em 2026‑09‑08 contra o SDK .NET 10:
|
|
24
23
|
piso 221 → 221 aprovados, exit 0
|
|
25
24
|
piso 9999 → 115 aprovados, exit 9
|
|
26
25
|
|
|
27
26
|
Mora AQUI, e nao no passo do workflow, de proposito: assim o piso viaja com
|
|
28
27
|
o kit e vale para TODA invocacao de `dotnet test` — CI, maquina do dev e o
|
|
29
|
-
|
|
28
|
+
`morph-spec check` do projeto — em vez de proteger so os dois arquivos
|
|
30
29
|
de workflow. Uma unica verdade: nenhum chamador repassa a flag na linha de
|
|
31
30
|
comando, porque repassa-la duplicaria a opcao.
|
|
32
31
|
|
|
@@ -45,8 +44,7 @@
|
|
|
45
44
|
VSTest. Medido nos dois locales em 2026-09-08. Um parser escrito so para
|
|
46
45
|
VSTest (que procure uma linha COMECANDO em "Aprovado!"/"Passed!" e
|
|
47
46
|
contendo "Total de testes:"/"Total:") nao consegue contar os testes deste
|
|
48
|
-
projeto; o `
|
|
49
|
-
issue #115 (antes, a contagem deste projeto voltava desconhecida). O piso
|
|
47
|
+
projeto; o `morph-spec check` nao le o sumario, julga pelo exit code. O piso
|
|
50
48
|
acima garante por conta propria que uma descoberta parcial saia com
|
|
51
49
|
codigo 9 — o eixo que ESTE arquivo controla.
|
|
52
50
|
-->
|
|
@@ -13,23 +13,19 @@ export function {{pascalCase sectionName}}Section() {
|
|
|
13
13
|
const containerRef = useRef<HTMLDivElement>(null);
|
|
14
14
|
|
|
15
15
|
useGSAP(() => {
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
trigger: containerRef.current,
|
|
30
|
-
start: 'top 80%',
|
|
31
|
-
toggleActions: 'play none none none',
|
|
32
|
-
},
|
|
16
|
+
gsap.matchMedia().add('(prefers-reduced-motion: no-preference)', () => {
|
|
17
|
+
gsap.from('.{{kebabCase sectionName}}-item', {
|
|
18
|
+
y: 40,
|
|
19
|
+
autoAlpha: 0,
|
|
20
|
+
stagger: 0.1,
|
|
21
|
+
duration: durations.base,
|
|
22
|
+
ease: 'power2.out',
|
|
23
|
+
scrollTrigger: {
|
|
24
|
+
trigger: containerRef.current,
|
|
25
|
+
start: 'top 80%',
|
|
26
|
+
toggleActions: 'play none none none',
|
|
27
|
+
},
|
|
28
|
+
});
|
|
33
29
|
});
|
|
34
30
|
}, { scope: containerRef });
|
|
35
31
|
|