@jstn-sdk/ma 0.1.13 → 0.14.1
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/.agents/plugins/marketplace.json +0 -0
- package/.codex/agents/Architect.toml +1 -0
- package/.codex/agents/Auditor.toml +1 -0
- package/.codex/agents/Builder.toml +1 -0
- package/.codex/agents/Flow.toml +1 -0
- package/.codex/agents/Sage.toml +1 -0
- package/.codex/agents/Vibe.toml +1 -0
- package/.codex/hooks.json +12 -2
- package/.codex/prompts/enforcement.md +0 -0
- package/.codex/prompts/onboarding.md +6 -1
- package/.codex/prompts/release-rules.md +0 -0
- package/.codex/prompts/skill-contract.md +0 -0
- package/COVERAGE.md +9 -9
- package/DEMO.md +15 -6
- package/LICENSE +0 -0
- package/README.md +127 -784
- package/bin/ma.js +591 -105
- package/data/clone-data.ledger.json +0 -0
- package/data/clone-data.proof.json +0 -0
- package/data/clone-data.rvf +0 -0
- package/docs/README.md +8 -2
- package/docs/assets/banner.png +0 -0
- package/docs/autonomous-tasks.md +46 -0
- package/docs/codex-integration.md +16 -0
- package/docs/getting-started.md +32 -8
- package/docs/installed-sdk.md +0 -0
- package/docs/mcp-setup.md +30 -1
- package/docs/qa/{release-issue-gates-0.1.13.json → release-issue-gates-0.14.1.json} +77 -77
- package/docs/qa/release-readiness-0.1.5.md +0 -0
- package/docs/qa/{release-readiness-0.1.13.md → release-readiness-0.14.1.md} +12 -12
- package/docs/quality.md +24 -0
- package/docs/reference/native-engineering-patterns.md +0 -0
- package/docs/reference/native-security-playbooks.md +0 -0
- package/docs/reference/native-source-selection.md +0 -0
- package/docs/reference/native-style-and-deslop.md +0 -0
- package/docs/release-spec.md +27 -14
- package/docs/skills.md +1 -1
- package/docs/vendor-plugin-publishing.md +49 -0
- package/index.js +73 -0
- package/mcp/collections.json +0 -0
- package/mcp/fallback.json +0 -0
- package/mcp/local/code-intel.js +185 -41
- package/mcp/local/context.js +180 -0
- package/mcp/local/memory.js +17 -6
- package/mcp/local/playbooks.js +0 -0
- package/mcp/local/quality.js +39 -0
- package/mcp/local/state.js +7 -3
- package/mcp/local/team-run.js +8 -3
- package/mcp/local/trace.js +0 -0
- package/mcp/local-capabilities.json +9 -0
- package/mcp/native-playbooks.json +0 -0
- package/mcp/servers.json +0 -0
- package/package.json +37 -6
- package/plugins/meta-architect/.app.json +1 -1
- package/plugins/meta-architect/.claude-plugin/plugin.json +12 -0
- package/plugins/meta-architect/.codex-plugin/plugin.json +1 -1
- package/plugins/meta-architect/.mcp.json +1 -1
- package/plugins/meta-architect/README.md +14 -2
- package/plugins/meta-architect/obsidian/main.js +137 -4
- package/plugins/meta-architect/obsidian/manifest.json +1 -1
- package/plugins/meta-architect/obsidian/styles.css +0 -0
- package/plugins/meta-architect/skills/align/SKILL.md +0 -0
- package/plugins/meta-architect/skills/align/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/align/references/shared-language.md +0 -0
- package/plugins/meta-architect/skills/arch/SKILL.md +0 -0
- package/plugins/meta-architect/skills/arch/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/build/SKILL.md +0 -0
- package/plugins/meta-architect/skills/build/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/cleanup/SKILL.md +0 -0
- package/plugins/meta-architect/skills/cleanup/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/cleanup/references/style-and-deslop.md +0 -0
- package/plugins/meta-architect/skills/diagnose/SKILL.md +0 -0
- package/plugins/meta-architect/skills/diagnose/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/flow/SKILL.md +0 -0
- package/plugins/meta-architect/skills/flow/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/maestro/SKILL.md +17 -1
- package/plugins/meta-architect/skills/maestro/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/maestro/references/core-release-rules.md +2 -2
- package/plugins/meta-architect/skills/maestro/references/native-ingest-map.md +0 -0
- package/plugins/meta-architect/skills/sage/SKILL.md +0 -0
- package/plugins/meta-architect/skills/sage/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/sage/references/source-selection.md +0 -0
- package/plugins/meta-architect/skills/tdd/SKILL.md +0 -0
- package/plugins/meta-architect/skills/tdd/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/vet/SKILL.md +0 -0
- package/plugins/meta-architect/skills/vet/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/vet/references/security-playbooks.md +0 -0
- package/plugins/meta-architect/skills/vibe/SKILL.md +0 -0
- package/plugins/meta-architect/skills/vibe/agents/openai.yaml +0 -0
- package/schemas/autonomous-task-queue.schema.json +58 -0
- package/schemas/handoff-packet.schema.json +36 -0
- package/schemas/setup-receipt.schema.json +28 -0
- package/schemas/skill-frontmatter.schema.json +20 -0
- package/schemas/support-bundle.schema.json +37 -0
- package/schemas/task-contract.schema.json +31 -0
- package/scripts/active-autonomy-hook.mjs +141 -11
- package/scripts/biome-staged.js +0 -0
- package/scripts/build-linux-packages.mjs +7 -3
- package/scripts/cleanup-test-fixtures.sh +55 -0
- package/scripts/context-hydration-hook.mjs +89 -0
- package/scripts/demo-smoke.js +285 -0
- package/scripts/doctor.js +10 -8
- package/scripts/install.sh +33 -4
- package/scripts/install.sh.sha256 +1 -0
- package/scripts/linux-package-lib.mjs +0 -0
- package/scripts/linux-package-smoke.mjs +2 -2
- package/scripts/package-size-check.mjs +26 -0
- package/scripts/plugin-build.js +314 -0
- package/scripts/plugin-publish.js +77 -0
- package/scripts/plugin-sync.js +83 -17
- package/scripts/prepack.js +9 -0
- package/scripts/ralph/prompt.md +0 -0
- package/scripts/release-metadata.js +0 -0
- package/scripts/release-sync.js +83 -7
- package/scripts/release-verify.js +131 -7
- package/scripts/setup-npmrc.js +48 -23
- package/scripts/skills-install.js +9 -2
- package/scripts/skills-manifest.js +2 -21
- package/scripts/skills-pack.js +2 -2
- package/scripts/skills-validate.js +5 -55
- package/skills/align/SKILL.md +0 -0
- package/skills/align/agents/openai.yaml +0 -0
- package/skills/align/references/shared-language.md +0 -0
- package/skills/arch/SKILL.md +0 -0
- package/skills/arch/agents/openai.yaml +0 -0
- package/skills/build/SKILL.md +0 -0
- package/skills/build/agents/openai.yaml +0 -0
- package/skills/cleanup/SKILL.md +0 -0
- package/skills/cleanup/agents/openai.yaml +0 -0
- package/skills/cleanup/references/style-and-deslop.md +0 -0
- package/skills/diagnose/SKILL.md +0 -0
- package/skills/diagnose/agents/openai.yaml +0 -0
- package/skills/flow/SKILL.md +0 -0
- package/skills/flow/agents/openai.yaml +0 -0
- package/skills/index.json +0 -0
- package/skills/maestro/SKILL.md +17 -1
- package/skills/maestro/agents/openai.yaml +0 -0
- package/skills/maestro/references/core-release-rules.md +2 -2
- package/skills/maestro/references/native-ingest-map.md +0 -0
- package/skills/sage/SKILL.md +0 -0
- package/skills/sage/agents/openai.yaml +0 -0
- package/skills/sage/references/source-selection.md +0 -0
- package/skills/tdd/SKILL.md +0 -0
- package/skills/tdd/agents/openai.yaml +0 -0
- package/skills/vet/SKILL.md +0 -0
- package/skills/vet/agents/openai.yaml +0 -0
- package/skills/vet/references/security-playbooks.md +0 -0
- package/skills/vibe/SKILL.md +0 -0
- package/skills/vibe/agents/openai.yaml +0 -0
- package/sprint/00-idea.md +0 -0
- package/sprint/01-architecture.md +0 -0
- package/sprint/02-oss-evidence.md +0 -0
- package/sprint/03-logic.md +0 -0
- package/sprint/04-security.md +0 -0
- package/sprint/05-dx-ux.md +0 -0
- package/sprint/06-build-plan.md +0 -0
- package/sprint/07-release.md +2 -2
- package/src/agents.js +281 -0
- package/src/bootstrap.js +272 -65
- package/src/build-gate.js +0 -0
- package/src/codex-app-server.js +291 -0
- package/src/decision-log.js +0 -0
- package/src/fs-utils.js +175 -4
- package/src/launcher.js +26 -23
- package/src/mcp-config.js +9 -1
- package/src/mcp-live-client.js +141 -8
- package/src/paths.js +6 -1
- package/src/policy.js +2 -2
- package/src/prelaunch.js +223 -0
- package/src/process-utils.js +62 -0
- package/src/quality/ai-quality-orchestrator.js +328 -0
- package/src/release-issue-gates.js +62 -0
- package/src/release-operations.js +72 -0
- package/src/release-state.js +0 -0
- package/src/runtime/active-autonomy-core.js +0 -0
- package/src/runtime/agent-compat.js +31 -0
- package/src/runtime/alignment-sentinel.js +0 -0
- package/src/runtime/architect-review.js +249 -11
- package/src/runtime/autonomous-tasks.js +585 -0
- package/src/runtime/build-readiness.js +0 -0
- package/src/runtime/code-graph-rehearse.js +0 -0
- package/src/runtime/codeburn-core.js +118 -0
- package/src/runtime/context-authority.js +40 -0
- package/src/runtime/context-economy-core.js +40 -0
- package/src/runtime/continuity-graph.js +201 -0
- package/src/runtime/continuity-notes.js +71 -26
- package/src/runtime/core-source-ingest.js +2 -2
- package/src/runtime/detached-provider.js +90 -13
- package/src/runtime/doctor-report.js +18 -0
- package/src/runtime/environment-awareness-core.js +0 -0
- package/src/runtime/exposure-catalog.js +0 -0
- package/src/runtime/graphify-core.js +167 -0
- package/src/runtime/guidance-stack.js +9 -2
- package/src/runtime/handoff-packets.js +92 -0
- package/src/runtime/headroom-core.js +104 -0
- package/src/runtime/helper-orchestration-core.js +0 -0
- package/src/runtime/hook-profiles.js +20 -0
- package/src/runtime/learning-loop-core.js +110 -4
- package/src/runtime/live-agent-verification.js +122 -0
- package/src/runtime/maestro-events.js +0 -0
- package/src/runtime/maestro-manager.js +0 -0
- package/src/runtime/maestro-output.js +58 -0
- package/src/runtime/maestro-state.js +0 -0
- package/src/runtime/managed-markdown.js +29 -0
- package/src/runtime/mcp-authority.js +147 -0
- package/src/runtime/mcp-policy.js +0 -0
- package/src/runtime/obsidian-integration-core.js +255 -17
- package/src/runtime/obsidian-plugin-bridge.js +344 -38
- package/src/runtime/orchestrator.js +0 -0
- package/src/runtime/pi-maestro-core.js +89 -0
- package/src/runtime/preferences.js +79 -0
- package/src/runtime/project-context.js +636 -0
- package/src/runtime/prompt-strategy-core.js +0 -0
- package/src/runtime/quorum-review.js +0 -0
- package/src/runtime/ralph-execution-core.js +0 -0
- package/src/runtime/redaction-gateway.js +218 -19
- package/src/runtime/runtime-state.js +94 -2
- package/src/runtime/schema-migrations.js +162 -0
- package/src/runtime/semantic-recording-core.js +0 -0
- package/src/runtime/signal-hooks.js +13 -0
- package/src/runtime/skills-registry-export.js +96 -8
- package/src/runtime/startup-path.js +0 -0
- package/src/runtime/task-contracts.js +83 -0
- package/src/runtime/universal-plugin-broker-core.js +373 -50
- package/src/runtime/workspace-intelligence-runtime.js +0 -0
- package/src/runtime/workspace-virtualizer.js +0 -0
- package/src/runtime/workspaces.js +0 -0
- package/src/runtime-artifacts.js +0 -0
- package/src/setup-lifecycle.js +359 -0
- package/src/skill-frontmatter.js +78 -0
- package/src/skill-installer.js +226 -71
- package/src/skills.js +309 -31
- package/src/state-sync.js +0 -0
- package/src/test-fixtures.js +543 -0
- package/src/tui/grid.js +67 -0
- package/src/tui/status-grid.js +23 -0
- package/support-bundle.json +114 -0
- package/templates/AGENTS.md +6 -2
- package/templates/catalog-manifest.json +0 -0
- package/templates/model-instructions/core.md +0 -0
- package/templates/model-instructions/release.md +0 -0
- package/templates/model-instructions/security.md +0 -0
- package/templates/quality/ai-quality-rules.yml +37 -0
- package/docs/assets/image/Screenshot(1).png +0 -0
- package/docs/assets/image/Screenshot(2).png +0 -0
- package/docs/assets/image/Screenshot(3).png +0 -0
- package/docs/assets/image/Screenshot(4).png +0 -0
- package/docs/assets/image/Screenshot(5).png +0 -0
- package/docs/assets/image/Screenshot(6).png +0 -0
- package/docs/assets/image/Screenshot(7).png +0 -0
- package/docs/assets/image/Screenshot(8).png +0 -0
- package/docs/assets/image/Screenshot(9).png +0 -0
- package/docs/assets/meta-architect-logo.png +0 -0
- package/docs/assets/meta-architect-logo.svg +0 -8
- package/docs/onboarding.md +0 -81
- package/docs/prompt-guidance-contract.md +0 -17
- package/docs/prompt-guidance-fragments/active-autonomy-core.md +0 -7
- package/docs/skills-publishing.md +0 -255
- package/scripts/postinstall.js +0 -23
package/docs/onboarding.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# Onboarding
|
|
2
|
-
|
|
3
|
-
This is the shortest entrypoint for the real first-run Meta-Architect path.
|
|
4
|
-
|
|
5
|
-
## Read first
|
|
6
|
-
|
|
7
|
-
1. `README.md`
|
|
8
|
-
2. `docs/getting-started.md`
|
|
9
|
-
3. `example/usage-workflow.md`
|
|
10
|
-
4. `docs/release-spec.md`
|
|
11
|
-
5. `docs/skills-publishing.md`
|
|
12
|
-
|
|
13
|
-
## Canonical install and start
|
|
14
|
-
|
|
15
|
-
Recommended CLI install for macOS, Linux, WSL, and Git-Bash:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# One-line install (POSIX shells only; use WSL/Git-Bash on Windows)
|
|
19
|
-
curl -fsSL https://cdn.jsdelivr.net/gh/JustineDevs/meta-architect@main/scripts/install.sh | sh
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
The installer uses jsDelivr to fetch this repo's POSIX install script and runs the canonical npm install path.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Install
|
|
26
|
-
npm i -g @openai/codex@latest @jstn-sdk/ma@latest
|
|
27
|
-
|
|
28
|
-
# Start Codex context if needed
|
|
29
|
-
ma --madmax --high
|
|
30
|
-
|
|
31
|
-
# Remove Meta-Architect only
|
|
32
|
-
npm uninstall -g @jstn-sdk/ma
|
|
33
|
-
|
|
34
|
-
# Remove Meta-Architect and Codex
|
|
35
|
-
npm uninstall -g @jstn-sdk/ma @openai/codex
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## First runtime action
|
|
39
|
-
|
|
40
|
-
Start with `$maestro` when you want MA to choose and drive the next safe lane:
|
|
41
|
-
|
|
42
|
-
```text
|
|
43
|
-
$maestro
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Use the structured `$arch` prompt from [example/usage-workflow.md](../example/usage-workflow.md) when you already know the project brief and want to begin directly with architecture:
|
|
47
|
-
|
|
48
|
-
```text
|
|
49
|
-
$arch I want to build: [PROJECT IDEA]
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Then continue through:
|
|
53
|
-
- `$sage`
|
|
54
|
-
- `$flow`
|
|
55
|
-
- `$vet`
|
|
56
|
-
- `$vibe`
|
|
57
|
-
- `$build`
|
|
58
|
-
|
|
59
|
-
## Secondary helper path
|
|
60
|
-
|
|
61
|
-
Only use this when you need local repo scaffolding or scripted validation:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
ma setup
|
|
65
|
-
ma
|
|
66
|
-
ma idea "Prepare Meta-Architect v0.1.13 for a production package release with real install docs, Obsidian brain-context support, learning-loop reliability, and package proof artifacts."
|
|
67
|
-
ma run '$maestro'
|
|
68
|
-
ma run '$arch'
|
|
69
|
-
ma run '$sage'
|
|
70
|
-
ma run '$flow'
|
|
71
|
-
ma run '$vet'
|
|
72
|
-
ma run '$vibe'
|
|
73
|
-
ma run '$build'
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## First safety rules
|
|
77
|
-
|
|
78
|
-
- Do not commit runtime `.ma` state.
|
|
79
|
-
- Do not bypass gates by editing status files manually.
|
|
80
|
-
- Do not assume a release channel succeeded without evidence.
|
|
81
|
-
- Do not treat fallback MCP docs mode as normal verified evidence.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Prompt Guidance Contract
|
|
2
|
-
|
|
3
|
-
Meta-Architect prompt surfaces must preserve the Active Autonomy Core contract.
|
|
4
|
-
|
|
5
|
-
## Required Patterns
|
|
6
|
-
|
|
7
|
-
1. `AUTO-CONTINUE` and `ASK` must be named explicitly.
|
|
8
|
-
2. The `ASK` list is closed: destructive, irreversible, credential-gated, external-production, materially scope-changing, or missing authority.
|
|
9
|
-
3. Permission-handoff phrasing is banned on AUTO-CONTINUE branches.
|
|
10
|
-
4. Skills and role prompts must describe completion as a loop with explicit stop conditions.
|
|
11
|
-
5. Workflow terminal replies must name an outcome: `finished`, `blocked`, `failed`, `cancelled`, or `askuserQuestion`.
|
|
12
|
-
6. Completion claims require fresh verification evidence or an explicit validation gap.
|
|
13
|
-
7. Runtime hook policy must include stall-pattern coverage for passive permission handoffs.
|
|
14
|
-
|
|
15
|
-
## Contributor Rule
|
|
16
|
-
|
|
17
|
-
Do not weaken the anti-passive contract when editing prompts, skills, hooks, or exported host payloads. If a prompt surface cannot execute safely, it must name the exact closed-list ASK reason instead of asking a vague permission question.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<!-- ACTIVE AUTONOMY CORE - DO NOT REMOVE -->
|
|
2
|
-
- AUTO-CONTINUE: clear, already-requested, local/workspace-scoped, low-risk, reversible, non-destructive work with an available verification path. Continue executing, inspecting, editing, testing, and verifying without permission handoff.
|
|
3
|
-
- ASK only for destructive, irreversible, credential-gated, external-production, materially scope-changing actions, or when missing authority blocks progress.
|
|
4
|
-
- On AUTO-CONTINUE branches, do not say "Should I proceed?", "Would you like me to continue?", "If you want, I can ...", or equivalent permission-handoff phrasing. State the next action or evidence-backed result.
|
|
5
|
-
- Do not instruct humans to perform ordinary safe reversible workspace actions; execute them through MA/runtime tools and report evidence.
|
|
6
|
-
- Completion requires a terminal outcome (`finished`, `blocked`, `failed`, `cancelled`, or `askuserQuestion`) plus fresh verification evidence or an explicit validation gap.
|
|
7
|
-
<!-- END ACTIVE AUTONOMY CORE -->
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
# Skills Publishing
|
|
2
|
-
|
|
3
|
-
Meta-Architect ships skills through a deliberate source-to-package pipeline. This repository treats publishable skills as product artifacts, not as raw markdown files.
|
|
4
|
-
|
|
5
|
-
## Two skill surfaces
|
|
6
|
-
|
|
7
|
-
### 1. Internal runtime surface
|
|
8
|
-
|
|
9
|
-
Location:
|
|
10
|
-
- `.ma/skills/`
|
|
11
|
-
|
|
12
|
-
Purpose:
|
|
13
|
-
- local runtime behavior
|
|
14
|
-
- internal command contracts
|
|
15
|
-
- generated or seeded operator surfaces
|
|
16
|
-
|
|
17
|
-
### 2. Publishable skill surface
|
|
18
|
-
|
|
19
|
-
Location:
|
|
20
|
-
- `skills/`
|
|
21
|
-
|
|
22
|
-
Purpose:
|
|
23
|
-
- installable Codex skill folders
|
|
24
|
-
- UI metadata via `agents/openai.yaml`
|
|
25
|
-
- versionable public skill contract
|
|
26
|
-
|
|
27
|
-
Do not confuse these two layers. The repo publishes `skills/`, not `.ma/`.
|
|
28
|
-
|
|
29
|
-
## Published surface types
|
|
30
|
-
|
|
31
|
-
The publishable `skills/` surface contains:
|
|
32
|
-
- one umbrella autonomous manager: `$maestro`
|
|
33
|
-
- fixed gated lanes: `$arch`, `$sage`, `$flow`, `$vet`, `$vibe`, `$build`
|
|
34
|
-
- non-gating helper skills: `$align`, `$diagnose`, `$tdd`, `$cleanup`
|
|
35
|
-
|
|
36
|
-
Only `$maestro` is the umbrella surface. Helper skills are intentionally publishable but non-gating.
|
|
37
|
-
The `ma` terminal helper command is part of the npm package surface, not the publishable skill contract.
|
|
38
|
-
|
|
39
|
-
## Canonical packaging flow
|
|
40
|
-
|
|
41
|
-
### Generate manifest
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
npm run skills:manifest
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Expected effect:
|
|
48
|
-
- writes `skills/index.json`
|
|
49
|
-
- manifest entries should match the actual skill directories
|
|
50
|
-
|
|
51
|
-
### Validate skills
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
npm run skills:validate
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Expected effect:
|
|
58
|
-
- every skill folder passes the validator
|
|
59
|
-
- missing or invalid frontmatter should fail the command
|
|
60
|
-
- missing or structurally incomplete `agents/openai.yaml` should fail the command
|
|
61
|
-
|
|
62
|
-
### Sync plugin mirror
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
npm run plugin:sync
|
|
66
|
-
npm run plugin:verify
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Expected effect:
|
|
70
|
-
- `plugins/meta-architect/skills/` mirrors the canonical `skills/` surface
|
|
71
|
-
- the local marketplace and plugin bundle remain aligned with the package skill contract
|
|
72
|
-
- plugin drift fails verification instead of surviving into release artifacts
|
|
73
|
-
|
|
74
|
-
### Create bundle
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
npm run skills:pack
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Expected effect:
|
|
81
|
-
- creates `dist/meta-architect-skills.tgz`
|
|
82
|
-
- bundle should be non-empty
|
|
83
|
-
|
|
84
|
-
### Smoke-test install
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npm run skills:install -- --path ./dist/installed-skills
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Expected effect:
|
|
91
|
-
- all publishable skill folders are copied to the target install path
|
|
92
|
-
- install target should contain:
|
|
93
|
-
- `align`
|
|
94
|
-
- `maestro`
|
|
95
|
-
- `arch`
|
|
96
|
-
- `sage`
|
|
97
|
-
- `flow`
|
|
98
|
-
- `diagnose`
|
|
99
|
-
- `tdd`
|
|
100
|
-
- `cleanup`
|
|
101
|
-
- `vet`
|
|
102
|
-
- `vibe`
|
|
103
|
-
- `build`
|
|
104
|
-
- install target should not contain:
|
|
105
|
-
- `meta-architect`
|
|
106
|
-
|
|
107
|
-
## Expected outputs
|
|
108
|
-
|
|
109
|
-
### `skills/index.json`
|
|
110
|
-
|
|
111
|
-
Should contain:
|
|
112
|
-
- schema version
|
|
113
|
-
- skill names
|
|
114
|
-
- repo-local path mapping
|
|
115
|
-
- descriptions
|
|
116
|
-
- only native Meta-Architect skill identities
|
|
117
|
-
- a `maestro` description that matches the bounded autonomous-manager contract
|
|
118
|
-
|
|
119
|
-
### `dist/meta-architect-skills.tgz`
|
|
120
|
-
|
|
121
|
-
Should contain:
|
|
122
|
-
- `skills/`
|
|
123
|
-
- each skill folder
|
|
124
|
-
- each `SKILL.md`
|
|
125
|
-
- each `agents/openai.yaml`
|
|
126
|
-
- any intended references/assets
|
|
127
|
-
|
|
128
|
-
It should **not** rely on hidden runtime state.
|
|
129
|
-
|
|
130
|
-
Important:
|
|
131
|
-
- `npm run skills:pack` creates the **skills bundle tarball only**
|
|
132
|
-
- it is not the same thing as the broader npm package tarball from `npm pack`
|
|
133
|
-
- the npm package surface is controlled separately by `package.json > files`
|
|
134
|
-
|
|
135
|
-
## Source vs package contents
|
|
136
|
-
|
|
137
|
-
The npm package and tarball should stay explicit.
|
|
138
|
-
|
|
139
|
-
Current package intent:
|
|
140
|
-
- package name: `@jstn-sdk/ma`
|
|
141
|
-
- public publish config
|
|
142
|
-
- explicit `files` list in `package.json`
|
|
143
|
-
|
|
144
|
-
The publishable package should include:
|
|
145
|
-
- `bin/`
|
|
146
|
-
- `skills/`
|
|
147
|
-
- `docs/`
|
|
148
|
-
- `scripts/`
|
|
149
|
-
- `index.js`
|
|
150
|
-
- `README.md`
|
|
151
|
-
- `LICENSE`
|
|
152
|
-
|
|
153
|
-
It should not include:
|
|
154
|
-
- runtime `.ma` state
|
|
155
|
-
- local logs
|
|
156
|
-
- temp install targets
|
|
157
|
-
- generated local caches
|
|
158
|
-
|
|
159
|
-
The `skills:pack` tarball is narrower than the npm package:
|
|
160
|
-
- `skills:pack` => `skills/` distribution bundle
|
|
161
|
-
- `npm pack` => public npm package with the explicit `files` list
|
|
162
|
-
|
|
163
|
-
## Release and dist-tag discipline
|
|
164
|
-
|
|
165
|
-
Meta-Architect release behavior is lane-aware:
|
|
166
|
-
- stable versions publish to npm `latest`
|
|
167
|
-
- prerelease versions publish to explicit lanes such as `next`, `beta`, or `canary`
|
|
168
|
-
- prereleases must use `npm publish --tag <lane>`
|
|
169
|
-
- stable releases keep the default `latest` behavior and public scoped access
|
|
170
|
-
|
|
171
|
-
Before publish:
|
|
172
|
-
1. bump version with `npm version <version> --no-git-tag-version`
|
|
173
|
-
2. update changelog and release docs
|
|
174
|
-
3. run `npm run release:verify`
|
|
175
|
-
4. run `npm run release:check`
|
|
176
|
-
5. create and push tag `v<version>`
|
|
177
|
-
6. publish the package with the correct lane behavior
|
|
178
|
-
- preferred: run `.github/workflows/npm-publish.yml` on a supported cloud runner so provenance can be generated
|
|
179
|
-
- local fallback: omit `--provenance` and publish with `npm publish --access public` or `npm publish --access public --tag <lane>`
|
|
180
|
-
7. verify the resulting dist-tags with `npm view @jstn-sdk/ma version dist-tags time --json`
|
|
181
|
-
|
|
182
|
-
## Plugin relation
|
|
183
|
-
|
|
184
|
-
The plugin bundle in:
|
|
185
|
-
- `plugins/meta-architect/`
|
|
186
|
-
|
|
187
|
-
is related but not identical to the npm/package skill bundle.
|
|
188
|
-
|
|
189
|
-
Relationship:
|
|
190
|
-
- `skills/` is the canonical publishable skill source
|
|
191
|
-
- `plugins/meta-architect/` is the plugin-installable consumer-facing bundle
|
|
192
|
-
- both should remain aligned in behavior and version intent
|
|
193
|
-
- `.agents/plugins/marketplace.json` advertises the local plugin source for discovery
|
|
194
|
-
- `plugins/meta-architect/.codex-plugin/plugin.json` is the plugin contract entrypoint
|
|
195
|
-
- the umbrella in-session entry point is `$maestro`; there is no separately shipped `$meta-architect` skill
|
|
196
|
-
- `$maestro` is the bounded autonomous manager, not a second terminal runtime
|
|
197
|
-
- helper skills remain publishable mirrors, but they do not add release gates or alternate umbrella entry points
|
|
198
|
-
|
|
199
|
-
If a skill contract changes:
|
|
200
|
-
1. update `skills/`
|
|
201
|
-
2. regenerate manifest
|
|
202
|
-
3. sync the plugin mirror
|
|
203
|
-
4. validate skills
|
|
204
|
-
5. ensure plugin-facing bundle still reflects the same product contract
|
|
205
|
-
|
|
206
|
-
## Real commands for a release-minded flow
|
|
207
|
-
|
|
208
|
-
```bash
|
|
209
|
-
npm run skills:manifest
|
|
210
|
-
npm run plugin:sync
|
|
211
|
-
npm run skills:validate
|
|
212
|
-
npm run plugin:verify
|
|
213
|
-
npm run skills:pack
|
|
214
|
-
npm run skills:install -- --path ./dist/installed-skills
|
|
215
|
-
npm run pack:inspect
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
## Expected failure modes
|
|
219
|
-
|
|
220
|
-
- manifest drift:
|
|
221
|
-
- `skills/index.json` does not match actual skill directories
|
|
222
|
-
- invalid skill:
|
|
223
|
-
- malformed frontmatter
|
|
224
|
-
- missing `SKILL.md`
|
|
225
|
-
- invalid `agents/openai.yaml`
|
|
226
|
-
- package drift:
|
|
227
|
-
- tarball includes files not intended for public distribution
|
|
228
|
-
- plugin drift:
|
|
229
|
-
- plugin bundle no longer matches the published skill contract
|
|
230
|
-
|
|
231
|
-
## Release artifact expectations
|
|
232
|
-
|
|
233
|
-
Before a release is considered real:
|
|
234
|
-
- `skills/index.json` must be current
|
|
235
|
-
- `dist/meta-architect-skills.tgz` must exist
|
|
236
|
-
- `dist/meta-architect_<version>_all.deb` must exist for the Debian-family release lane
|
|
237
|
-
- `dist/meta-architect-<version>-1-any.pkg.tar.xz` must exist for the Arch-family release lane
|
|
238
|
-
- `dist/meta-architect-<version>-1.noarch.rpm` must exist for the Fedora/openSUSE-style release lane
|
|
239
|
-
- install smoke test must pass
|
|
240
|
-
- package inspection must be sane
|
|
241
|
-
- docs must match the published behavior
|
|
242
|
-
|
|
243
|
-
## Related surfaces
|
|
244
|
-
|
|
245
|
-
- [README.md](../README.md)
|
|
246
|
-
- [docs/skills.md](./skills.md)
|
|
247
|
-
- [plugins/meta-architect/README.md](../plugins/meta-architect/README.md)
|
|
248
|
-
- [plugins/meta-architect/.codex-plugin/plugin.json](../plugins/meta-architect/.codex-plugin/plugin.json)
|
|
249
|
-
- [../.agents/plugins/marketplace.json](../.agents/plugins/marketplace.json)
|
|
250
|
-
- [package.json](../package.json)
|
|
251
|
-
- [scripts/skills-manifest.js](../scripts/skills-manifest.js)
|
|
252
|
-
- [scripts/plugin-sync.js](../scripts/plugin-sync.js)
|
|
253
|
-
- [scripts/skills-validate.js](../scripts/skills-validate.js)
|
|
254
|
-
- [scripts/skills-pack.js](../scripts/skills-pack.js)
|
|
255
|
-
- [scripts/skills-install.js](../scripts/skills-install.js)
|
package/scripts/postinstall.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import process from "node:process";
|
|
4
|
-
import { installSkills, installSupportBundle } from "../src/skill-installer.js";
|
|
5
|
-
|
|
6
|
-
async function main() {
|
|
7
|
-
if (process.env.MA_SKIP_AUTO_INSTALL === "1") {
|
|
8
|
-
console.log("meta-architect: skipped Codex skill auto-install");
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const [
|
|
13
|
-
{ targetRoot: skillRoot, installed: skills },
|
|
14
|
-
{ targetRoot: bundleRoot, installed: assets },
|
|
15
|
-
] = await Promise.all([installSkills(), installSupportBundle()]);
|
|
16
|
-
console.log(`meta-architect: installed ${skills.length} Codex skills into ${skillRoot}`);
|
|
17
|
-
console.log(`meta-architect: installed ${assets.length} support assets into ${bundleRoot}`);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
main().catch((error) => {
|
|
21
|
-
console.error(`meta-architect: failed to install Codex skills: ${error.message}`);
|
|
22
|
-
process.exitCode = 1;
|
|
23
|
-
});
|