@polymorphism-tech/morph-spec 10.1.1 → 10.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/bin/morph-spec.js +10 -41
- package/claude-plugin.json +1 -1
- package/docs/CHEATSHEET.md +1 -4
- package/docs/QUICKSTART.md +1 -1
- package/framework/MORPH.md +1 -1
- package/framework/agents.json +1 -2
- package/framework/commands/morph-archive.md +1 -1
- package/framework/commands/morph-preflight.md +3 -4
- package/framework/docs/CLI.md +45 -22
- package/framework/evals/review-checklist.md +5 -5
- package/framework/hooks/README.md +2 -2
- package/framework/hooks/claude-code/core/heavy-gate.js +21 -2
- package/framework/hooks/claude-code/core/validate-completion.js +0 -35
- package/framework/hooks/shared/e2e-check.js +44 -7
- package/framework/hooks/shared/heavy-command.js +12 -1
- package/framework/hooks/shared/heavy-config.js +12 -0
- package/framework/hooks/shared/host-services.js +9 -6
- package/framework/hooks/shared/next-step.js +12 -8
- package/framework/phases.json +4 -4
- package/framework/rules/plan-grammar.md +4 -1
- package/framework/schemas/config.schema.json +59 -1
- package/framework/schemas/feature.schema.json +15 -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 +8 -5
- package/framework/skills/core/morph-apply/references/hotfix.md +1 -1
- package/framework/skills/core/morph-apply/references/machine.md +3 -2
- package/framework/skills/core/morph-apply/references/review.md +9 -7
- package/framework/skills/core/morph-plan/SKILL.md +7 -6
- package/framework/skills/core/morph-plan/references/critique.md +1 -1
- package/framework/skills/core/morph-uiux/SKILL.md +2 -2
- package/framework/templates/IDE-SNIPPETS.md +262 -262
- package/framework/templates/code/dotnet/abstractions/api-endpoint.cs +7 -7
- package/framework/templates/code/dotnet/feature/request.cs.hbs +4 -4
- package/framework/templates/code/dotnet/feature/response.cs.hbs +4 -4
- package/framework/templates/code/sql/ai-agents/pgvector-embeddings-migration.sql.template +91 -91
- package/framework/templates/docs/plan.md +2 -1
- package/framework/templates/examples/design-system-examples.md +0 -3
- package/framework/templates/frontend/nextjs/client-component.tsx.hbs +26 -26
- package/framework/templates/frontend/nextjs/tsconfig.json.hbs +26 -26
- package/framework/templates/infrastructure/docker/Dockerfile.template +58 -58
- package/framework/templates/infrastructure/docker/dockerfile-api.dockerfile +38 -38
- package/framework/templates/infrastructure/docker/dockerfile-web.dockerfile +48 -48
- package/framework/templates/infrastructure/github/actions/docker-build-push/action.yml.hbs +45 -45
- package/framework/templates/infrastructure/github/actions/health-check/action.yml.hbs +27 -27
- package/framework/templates/infrastructure/github/workflows/docker-build-push.yml.hbs +59 -59
- package/framework/templates/infrastructure/github/workflows/dotnet-build.yml.hbs +39 -39
- package/framework/templates/state.template.json +17 -17
- package/framework/templates/ui/design-system.css +226 -226
- package/package.json +1 -1
- package/src/commands/project/doctor.js +0 -1
- package/src/commands/project/heavy.js +13 -0
- package/src/commands/state/approve.js +9 -109
- package/src/commands/state/report-check.js +44 -2
- package/src/commands/validation/verify.js +57 -7
- package/src/core/state/state-manager.js +0 -24
- package/src/dashboard/app/main.jsx +13 -13
- package/src/dashboard/vite.config.js +24 -24
- package/src/lib/heavy/cleanup.js +8 -2
- package/src/lib/heavy/gate.js +24 -1
- package/src/lib/heavy/reclaim.js +107 -0
- package/src/lib/heavy/watchdog.js +46 -0
- package/src/lib/next-step.js +1 -0
- package/src/lib/plan/checks.js +1 -1
- package/src/lib/plan/critique.js +23 -3
- package/src/lib/procs/prune.js +23 -1
- package/src/lib/review-confirmation.js +67 -0
- package/src/lib/review-reports.js +1 -0
- package/src/lib/risk-detector.js +2 -2
- package/src/lib/tasks/test-nodes.js +10 -0
- package/src/lib/tasks/test-runner.js +37 -43
- package/src/lib/telemetry/telemetry-reader.js +1 -2
- package/src/lib/telemetry/verify-event.js +7 -0
- package/src/lib/validators/verify-cache.js +63 -0
- package/src/lib/validators/verify-runner.js +131 -26
- package/src/lib/verify/affected.js +141 -0
- package/src/lib/verify/detached.js +154 -0
- package/src/utils/agents-installer.js +2 -2
- package/src/utils/hooks-installer.js +0 -20
- package/bin/validate.js +0 -212
- package/framework/hooks/claude-code/__pycache__/statusline.cpython-313.pyc +0 -0
- package/framework/templates/.idea/morph-templates.xml +0 -92
- package/framework/templates/.vscode/morph-templates.code-snippets +0 -186
- package/src/commands/observability/telemetry.js +0 -60
- package/src/commands/validation/validate-feature.js +0 -337
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
name: 'Build & Push Docker Image'
|
|
2
|
-
description: 'Build multi-stage Docker image and push to registry'
|
|
3
|
-
inputs:
|
|
4
|
-
registry:
|
|
5
|
-
description: 'Docker registry URL'
|
|
6
|
-
required: true
|
|
7
|
-
image-name:
|
|
8
|
-
description: 'Docker image name'
|
|
9
|
-
required: true
|
|
10
|
-
dockerfile-path:
|
|
11
|
-
description: 'Path to Dockerfile'
|
|
12
|
-
required: false
|
|
13
|
-
default: 'Dockerfile'
|
|
14
|
-
build-context:
|
|
15
|
-
description: 'Docker build context'
|
|
16
|
-
required: false
|
|
17
|
-
default: '.'
|
|
18
|
-
outputs:
|
|
19
|
-
image-tag:
|
|
20
|
-
description: 'Full image tag with registry'
|
|
21
|
-
value: ${{{{ steps.build.outputs.tags }}}}
|
|
22
|
-
|
|
23
|
-
runs:
|
|
24
|
-
using: 'composite'
|
|
25
|
-
steps:
|
|
26
|
-
- name: Set up Docker Buildx
|
|
27
|
-
uses: docker/setup-buildx-action@v3
|
|
28
|
-
|
|
29
|
-
- name: Login to Registry
|
|
30
|
-
uses: docker/login-action@v3
|
|
31
|
-
with:
|
|
32
|
-
registry: ${{{{ inputs.registry }}}}
|
|
33
|
-
username: ${{{{ secrets.REGISTRY_USERNAME }}}}
|
|
34
|
-
password: ${{{{ secrets.REGISTRY_PASSWORD }}}}
|
|
35
|
-
|
|
36
|
-
- name: Build and push
|
|
37
|
-
id: build
|
|
38
|
-
uses: docker/build-push-action@v5
|
|
39
|
-
with:
|
|
40
|
-
context: ${{{{ inputs.build-context }}}}
|
|
41
|
-
file: ${{{{ inputs.dockerfile-path }}}}
|
|
42
|
-
push: true
|
|
43
|
-
tags: ${{{{ inputs.registry }}}}/${{{{ inputs.image-name }}}}:${{{{ github.sha }}}}
|
|
44
|
-
cache-from: type=gha
|
|
45
|
-
cache-to: type=gha,mode=max
|
|
1
|
+
name: 'Build & Push Docker Image'
|
|
2
|
+
description: 'Build multi-stage Docker image and push to registry'
|
|
3
|
+
inputs:
|
|
4
|
+
registry:
|
|
5
|
+
description: 'Docker registry URL'
|
|
6
|
+
required: true
|
|
7
|
+
image-name:
|
|
8
|
+
description: 'Docker image name'
|
|
9
|
+
required: true
|
|
10
|
+
dockerfile-path:
|
|
11
|
+
description: 'Path to Dockerfile'
|
|
12
|
+
required: false
|
|
13
|
+
default: 'Dockerfile'
|
|
14
|
+
build-context:
|
|
15
|
+
description: 'Docker build context'
|
|
16
|
+
required: false
|
|
17
|
+
default: '.'
|
|
18
|
+
outputs:
|
|
19
|
+
image-tag:
|
|
20
|
+
description: 'Full image tag with registry'
|
|
21
|
+
value: ${{{{ steps.build.outputs.tags }}}}
|
|
22
|
+
|
|
23
|
+
runs:
|
|
24
|
+
using: 'composite'
|
|
25
|
+
steps:
|
|
26
|
+
- name: Set up Docker Buildx
|
|
27
|
+
uses: docker/setup-buildx-action@v3
|
|
28
|
+
|
|
29
|
+
- name: Login to Registry
|
|
30
|
+
uses: docker/login-action@v3
|
|
31
|
+
with:
|
|
32
|
+
registry: ${{{{ inputs.registry }}}}
|
|
33
|
+
username: ${{{{ secrets.REGISTRY_USERNAME }}}}
|
|
34
|
+
password: ${{{{ secrets.REGISTRY_PASSWORD }}}}
|
|
35
|
+
|
|
36
|
+
- name: Build and push
|
|
37
|
+
id: build
|
|
38
|
+
uses: docker/build-push-action@v5
|
|
39
|
+
with:
|
|
40
|
+
context: ${{{{ inputs.build-context }}}}
|
|
41
|
+
file: ${{{{ inputs.dockerfile-path }}}}
|
|
42
|
+
push: true
|
|
43
|
+
tags: ${{{{ inputs.registry }}}}/${{{{ inputs.image-name }}}}:${{{{ github.sha }}}}
|
|
44
|
+
cache-from: type=gha
|
|
45
|
+
cache-to: type=gha,mode=max
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
name: 'Health Check'
|
|
2
|
-
description: 'Poll health endpoint until ready'
|
|
3
|
-
inputs:
|
|
4
|
-
url:
|
|
5
|
-
description: 'Health check URL'
|
|
6
|
-
required: true
|
|
7
|
-
timeout:
|
|
8
|
-
description: 'Timeout in seconds'
|
|
9
|
-
required: false
|
|
10
|
-
default: '300'
|
|
11
|
-
interval:
|
|
12
|
-
description: 'Polling interval in seconds'
|
|
13
|
-
required: false
|
|
14
|
-
default: '5'
|
|
15
|
-
|
|
16
|
-
runs:
|
|
17
|
-
using: 'composite'
|
|
18
|
-
steps:
|
|
19
|
-
- name: Wait for health
|
|
20
|
-
shell: bash
|
|
21
|
-
run: |
|
|
22
|
-
RETRIES=$(($${{{{ inputs.timeout }}}} / ${{{{ inputs.interval }}}}))
|
|
23
|
-
curl --retry $RETRIES \
|
|
24
|
-
--retry-delay ${{{{ inputs.interval }}}} \
|
|
25
|
-
--retry-connrefused \
|
|
26
|
-
--fail \
|
|
27
|
-
${{{{ inputs.url }}}}
|
|
1
|
+
name: 'Health Check'
|
|
2
|
+
description: 'Poll health endpoint until ready'
|
|
3
|
+
inputs:
|
|
4
|
+
url:
|
|
5
|
+
description: 'Health check URL'
|
|
6
|
+
required: true
|
|
7
|
+
timeout:
|
|
8
|
+
description: 'Timeout in seconds'
|
|
9
|
+
required: false
|
|
10
|
+
default: '300'
|
|
11
|
+
interval:
|
|
12
|
+
description: 'Polling interval in seconds'
|
|
13
|
+
required: false
|
|
14
|
+
default: '5'
|
|
15
|
+
|
|
16
|
+
runs:
|
|
17
|
+
using: 'composite'
|
|
18
|
+
steps:
|
|
19
|
+
- name: Wait for health
|
|
20
|
+
shell: bash
|
|
21
|
+
run: |
|
|
22
|
+
RETRIES=$(($${{{{ inputs.timeout }}}} / ${{{{ inputs.interval }}}}))
|
|
23
|
+
curl --retry $RETRIES \
|
|
24
|
+
--retry-delay ${{{{ inputs.interval }}}} \
|
|
25
|
+
--retry-connrefused \
|
|
26
|
+
--fail \
|
|
27
|
+
${{{{ inputs.url }}}}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
name: Build & Push Docker Image
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_call:
|
|
5
|
-
inputs:
|
|
6
|
-
registry:
|
|
7
|
-
required: true
|
|
8
|
-
type: string
|
|
9
|
-
image-name:
|
|
10
|
-
required: true
|
|
11
|
-
type: string
|
|
12
|
-
dockerfile-path:
|
|
13
|
-
required: false
|
|
14
|
-
type: string
|
|
15
|
-
default: 'Dockerfile'
|
|
16
|
-
build-context:
|
|
17
|
-
required: false
|
|
18
|
-
type: string
|
|
19
|
-
default: '.'
|
|
20
|
-
outputs:
|
|
21
|
-
image-tag:
|
|
22
|
-
value: ${{{{ jobs.docker.outputs.tag }}}}
|
|
23
|
-
|
|
24
|
-
jobs:
|
|
25
|
-
docker:
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
outputs:
|
|
28
|
-
tag: ${{{{ steps.meta.outputs.tags }}}}
|
|
29
|
-
steps:
|
|
30
|
-
- uses: actions/checkout@v4
|
|
31
|
-
|
|
32
|
-
- name: Set up Docker Buildx
|
|
33
|
-
uses: docker/setup-buildx-action@v3
|
|
34
|
-
|
|
35
|
-
- name: Login to Registry
|
|
36
|
-
uses: docker/login-action@v3
|
|
37
|
-
with:
|
|
38
|
-
registry: ${{{{ inputs.registry }}}}
|
|
39
|
-
username: ${{{{ secrets.REGISTRY_USERNAME }}}}
|
|
40
|
-
password: ${{{{ secrets.REGISTRY_PASSWORD }}}}
|
|
41
|
-
|
|
42
|
-
- name: Docker metadata
|
|
43
|
-
id: meta
|
|
44
|
-
uses: docker/metadata-action@v5
|
|
45
|
-
with:
|
|
46
|
-
images: ${{{{ inputs.registry }}}}/${{{{ inputs.image-name }}}}
|
|
47
|
-
tags: |
|
|
48
|
-
type=ref,event=branch
|
|
49
|
-
type=sha,prefix=${{{{ inputs.image-name }}}}-
|
|
50
|
-
|
|
51
|
-
- name: Build and push
|
|
52
|
-
uses: docker/build-push-action@v5
|
|
53
|
-
with:
|
|
54
|
-
context: ${{{{ inputs.build-context }}}}
|
|
55
|
-
file: ${{{{ inputs.dockerfile-path }}}}
|
|
56
|
-
push: true
|
|
57
|
-
tags: ${{{{ steps.meta.outputs.tags }}}}
|
|
58
|
-
cache-from: type=gha
|
|
59
|
-
cache-to: type=gha,mode=max
|
|
1
|
+
name: Build & Push Docker Image
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
registry:
|
|
7
|
+
required: true
|
|
8
|
+
type: string
|
|
9
|
+
image-name:
|
|
10
|
+
required: true
|
|
11
|
+
type: string
|
|
12
|
+
dockerfile-path:
|
|
13
|
+
required: false
|
|
14
|
+
type: string
|
|
15
|
+
default: 'Dockerfile'
|
|
16
|
+
build-context:
|
|
17
|
+
required: false
|
|
18
|
+
type: string
|
|
19
|
+
default: '.'
|
|
20
|
+
outputs:
|
|
21
|
+
image-tag:
|
|
22
|
+
value: ${{{{ jobs.docker.outputs.tag }}}}
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
docker:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
outputs:
|
|
28
|
+
tag: ${{{{ steps.meta.outputs.tags }}}}
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
|
|
32
|
+
- name: Set up Docker Buildx
|
|
33
|
+
uses: docker/setup-buildx-action@v3
|
|
34
|
+
|
|
35
|
+
- name: Login to Registry
|
|
36
|
+
uses: docker/login-action@v3
|
|
37
|
+
with:
|
|
38
|
+
registry: ${{{{ inputs.registry }}}}
|
|
39
|
+
username: ${{{{ secrets.REGISTRY_USERNAME }}}}
|
|
40
|
+
password: ${{{{ secrets.REGISTRY_PASSWORD }}}}
|
|
41
|
+
|
|
42
|
+
- name: Docker metadata
|
|
43
|
+
id: meta
|
|
44
|
+
uses: docker/metadata-action@v5
|
|
45
|
+
with:
|
|
46
|
+
images: ${{{{ inputs.registry }}}}/${{{{ inputs.image-name }}}}
|
|
47
|
+
tags: |
|
|
48
|
+
type=ref,event=branch
|
|
49
|
+
type=sha,prefix=${{{{ inputs.image-name }}}}-
|
|
50
|
+
|
|
51
|
+
- name: Build and push
|
|
52
|
+
uses: docker/build-push-action@v5
|
|
53
|
+
with:
|
|
54
|
+
context: ${{{{ inputs.build-context }}}}
|
|
55
|
+
file: ${{{{ inputs.dockerfile-path }}}}
|
|
56
|
+
push: true
|
|
57
|
+
tags: ${{{{ steps.meta.outputs.tags }}}}
|
|
58
|
+
cache-from: type=gha
|
|
59
|
+
cache-to: type=gha,mode=max
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
name: Build .NET Application
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_call:
|
|
5
|
-
inputs:
|
|
6
|
-
dotnet-version:
|
|
7
|
-
required: false
|
|
8
|
-
type: string
|
|
9
|
-
default: '{{DOTNET_VERSION}}'
|
|
10
|
-
build-configuration:
|
|
11
|
-
required: false
|
|
12
|
-
type: string
|
|
13
|
-
default: 'Release'
|
|
14
|
-
run-tests:
|
|
15
|
-
required: false
|
|
16
|
-
type: boolean
|
|
17
|
-
default: true
|
|
18
|
-
|
|
19
|
-
jobs:
|
|
20
|
-
build:
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v4
|
|
24
|
-
|
|
25
|
-
- name: Setup .NET
|
|
26
|
-
uses: actions/setup-dotnet@v4
|
|
27
|
-
with:
|
|
28
|
-
dotnet-version: ${{{{ inputs.dotnet-version }}}}
|
|
29
|
-
|
|
30
|
-
- name: Restore dependencies
|
|
31
|
-
run: dotnet restore
|
|
32
|
-
|
|
33
|
-
- name: Build
|
|
34
|
-
run: dotnet build --configuration ${{{{ inputs.build-configuration }}}} --no-restore
|
|
35
|
-
|
|
36
|
-
{{#if run-tests}}
|
|
37
|
-
- name: Test
|
|
38
|
-
run: dotnet test --configuration ${{{{ inputs.build-configuration }}}} --no-build --verbosity normal
|
|
39
|
-
{{/if}}
|
|
1
|
+
name: Build .NET Application
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
dotnet-version:
|
|
7
|
+
required: false
|
|
8
|
+
type: string
|
|
9
|
+
default: '{{DOTNET_VERSION}}'
|
|
10
|
+
build-configuration:
|
|
11
|
+
required: false
|
|
12
|
+
type: string
|
|
13
|
+
default: 'Release'
|
|
14
|
+
run-tests:
|
|
15
|
+
required: false
|
|
16
|
+
type: boolean
|
|
17
|
+
default: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
build:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: Setup .NET
|
|
26
|
+
uses: actions/setup-dotnet@v4
|
|
27
|
+
with:
|
|
28
|
+
dotnet-version: ${{{{ inputs.dotnet-version }}}}
|
|
29
|
+
|
|
30
|
+
- name: Restore dependencies
|
|
31
|
+
run: dotnet restore
|
|
32
|
+
|
|
33
|
+
- name: Build
|
|
34
|
+
run: dotnet build --configuration ${{{{ inputs.build-configuration }}}} --no-restore
|
|
35
|
+
|
|
36
|
+
{{#if run-tests}}
|
|
37
|
+
- name: Test
|
|
38
|
+
run: dotnet test --configuration ${{{{ inputs.build-configuration }}}} --no-build --verbosity normal
|
|
39
|
+
{{/if}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0.0",
|
|
3
|
-
"project": {
|
|
4
|
-
"name": "{{PROJECT_NAME}}",
|
|
5
|
-
"type": "{{PROJECT_TYPE}}",
|
|
6
|
-
"createdAt": "{{TIMESTAMP}}",
|
|
7
|
-
"updatedAt": "{{TIMESTAMP}}"
|
|
8
|
-
},
|
|
9
|
-
"features": {},
|
|
10
|
-
"threads": {},
|
|
11
|
-
"metadata": {
|
|
12
|
-
"totalFeatures": 0,
|
|
13
|
-
"completedFeatures": 0,
|
|
14
|
-
"totalTimeSpent": 0,
|
|
15
|
-
"lastUpdated": "{{TIMESTAMP}}"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": "3.0.0",
|
|
3
|
+
"project": {
|
|
4
|
+
"name": "{{PROJECT_NAME}}",
|
|
5
|
+
"type": "{{PROJECT_TYPE}}",
|
|
6
|
+
"createdAt": "{{TIMESTAMP}}",
|
|
7
|
+
"updatedAt": "{{TIMESTAMP}}"
|
|
8
|
+
},
|
|
9
|
+
"features": {},
|
|
10
|
+
"threads": {},
|
|
11
|
+
"metadata": {
|
|
12
|
+
"totalFeatures": 0,
|
|
13
|
+
"completedFeatures": 0,
|
|
14
|
+
"totalTimeSpent": 0,
|
|
15
|
+
"lastUpdated": "{{TIMESTAMP}}"
|
|
16
|
+
}
|
|
17
|
+
}
|