@meridian-flow/mars-schema 0.23.3 → 0.24.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 +26 -1
- package/fixtures/normalize/agent-skills-standard/normalized.json +18 -0
- package/fixtures/normalize/agent-translation/normalized.json +36 -0
- package/fixtures/normalize/anthropics-skills/normalized.json +30 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/mcp/extra/mcp.toml +2 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/mcp/github/mcp.toml +3 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/mcp/indexer/mcp.toml +4 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/mcp/replaced/mcp.toml +2 -0
- package/fixtures/normalize/claude-plugin-default/input/.claude-plugin/plugin.json +1 -1
- package/fixtures/normalize/claude-plugin-default/input/.mcp.json +15 -1
- package/fixtures/normalize/claude-plugin-default/input/config/more-mcp.json +1 -0
- package/fixtures/normalize/claude-plugin-default/input/mcp/docs/mcp.toml +1 -0
- package/fixtures/normalize/claude-plugin-default/normalized.json +168 -3
- package/fixtures/normalize/declared-claude-over-codex-container/normalized.json +12 -0
- package/fixtures/normalize/declared-codex-convention/normalized.json +12 -0
- package/fixtures/normalize/declared-mars-native/normalized.json +18 -0
- package/fixtures/normalize/duplicate-slug/normalized.json +24 -0
- package/fixtures/normalize/empty/normalized.json +5 -0
- package/fixtures/normalize/generated-plugin-tree/normalized.json +12 -0
- package/fixtures/normalize/invalid-plugin-json/normalized.json +5 -0
- package/fixtures/normalize/marketplace-selection/normalized.json +12 -0
- package/fixtures/normalize/marketplace-sources/normalized.json +12 -0
- package/fixtures/normalize/marketplace-sources/remote-normalized.json +24 -0
- package/fixtures/normalize/marketplace-strict-table/normalized.json +65 -0
- package/fixtures/normalize/mars-manifest-wins/normalized.json +12 -0
- package/fixtures/normalize/mars-source-with-built-plugin/normalized.json +18 -0
- package/fixtures/normalize/mattpocock-skills/normalized.json +30 -0
- package/fixtures/normalize/mixed-claude-and-mars/normalized.json +18 -0
- package/fixtures/normalize/nested-declared-skills/normalized.json +12 -0
- package/fixtures/normalize/obra-superpowers/normalized.json +24 -0
- package/fixtures/normalize/opencode-agent/normalized.json +12 -0
- package/fixtures/normalize/opencode-predicted/normalized.json +12 -0
- package/fixtures/normalize/opencode-with-standard-skill/normalized.json +24 -0
- package/fixtures/normalize/plugin-list-paths/normalized.json +18 -0
- package/fixtures/normalize/pre-v1-mars-permission/normalized.json +12 -0
- package/fixtures/normalize/pre-v1-mars-predicted/normalized.json +18 -0
- package/fixtures/normalize/root-skill/normalized.json +12 -0
- package/fixtures/normalize/root-skill-fallback-name/normalized.json +12 -0
- package/fixtures/normalize/shared-slug-across-kinds/normalized.json +18 -0
- package/fixtures/normalize/skill-references/normalized.json +20 -2
- package/fixtures/normalize/skill-translation/normalized.json +42 -0
- package/fixtures/normalize/skill-tree-walk/normalized.json +18 -0
- package/fixtures/normalize/subpath/normalized.json +12 -0
- package/fixtures/prepare/agent-structural-raw/expected.json +12 -0
- package/fixtures/prepare/authored-local-current/expected.json +12 -0
- package/fixtures/prepare/authored-local-legacy/expected.json +12 -0
- package/fixtures/prepare/bom/expected.json +12 -0
- package/fixtures/prepare/claude-network-lost/expected.json +12 -0
- package/fixtures/prepare/claude-reserved-keys/expected.json +18 -0
- package/fixtures/prepare/declared-dialect/expected.json +12 -0
- package/fixtures/prepare/flat-root-skill/expected.json +12 -0
- package/fixtures/prepare/foreign-vendored-payload/expected.json +12 -0
- package/fixtures/prepare/generated-plugin-skipped/expected.json +12 -0
- package/fixtures/prepare/hidden-container-dialect/expected.json +5 -0
- package/fixtures/prepare/invalid-toml/expected.json +5 -0
- package/fixtures/prepare/legacy-changed/expected.json +12 -0
- package/fixtures/prepare/legacy-definition-unchanged/expected.json +12 -0
- package/fixtures/prepare/manifest-free-skill-tree/expected.json +12 -0
- package/fixtures/prepare/manifest-without-package/expected.json +5 -0
- package/fixtures/prepare/opencode-agent/expected.json +12 -0
- package/fixtures/prepare/opencode-commands-dropped/expected.json +12 -0
- package/fixtures/prepare/pre-v1-old-host-namespaces/expected.json +12 -0
- package/fixtures/prepare/schema-1/expected.json +12 -0
- package/fixtures/prepare/schema-1-both-host-namespaces/expected.json +12 -0
- package/fixtures/prepare/schema-1-meridian-keys/expected.json +12 -0
- package/fixtures/prepare/schema-1-old-host-namespaces/expected.json +12 -0
- package/fixtures/prepare/schema-1-vendored-payload/expected.json +12 -0
- package/fixtures/prepare/schema-newer/expected.json +5 -0
- package/fixtures/prepare/skill-payload-and-nested/expected.json +18 -0
- package/fixtures/read/manifest-dependencies/expected.json +57 -0
- package/fixtures/read/manifest-dependencies/mars.toml +25 -0
- package/fixtures/read/manifest-dependency-errors/expected.json +87 -0
- package/fixtures/read/manifest-dependency-errors/mars.toml +31 -0
- package/fixtures/read/manifest-dependency-filter-conflict/expected.json +74 -0
- package/fixtures/read/manifest-dependency-filter-conflict/mars.toml +19 -0
- package/fixtures/selection/all-takes-everything/expected.json +39 -0
- package/fixtures/selection/all-takes-everything/packages/p/agents/coder.md +5 -0
- package/fixtures/selection/all-takes-everything/packages/p/mars.toml +4 -0
- package/fixtures/selection/all-takes-everything/packages/p/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/all-takes-everything/request.json +16 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/expected.json +45 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/packages/a/agents/coder.md +6 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/packages/a/mars.toml +8 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/packages/b/mars.toml +4 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/packages/b/skills/other/SKILL.md +5 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/packages/b/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/bootstrap-doc-respects-consumer-exclude/request.json +22 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/expected.json +32 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/packages/a/agents/top.md +5 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/packages/a/mars.toml +7 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/packages/b/mars.toml +4 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/packages/b/skills/x/SKILL.md +5 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/packages/b/skills/y/SKILL.md +5 -0
- package/fixtures/selection/consumer-exclude-beats-unfiltered-edge/request.json +6 -0
- package/fixtures/selection/consumer-exclude-blocks-skill-ref/expected.json +17 -0
- package/fixtures/selection/consumer-exclude-blocks-skill-ref/packages/a/agents/coder.md +6 -0
- package/fixtures/selection/consumer-exclude-blocks-skill-ref/packages/a/mars.toml +4 -0
- package/fixtures/selection/consumer-exclude-blocks-skill-ref/packages/a/skills/forbidden/SKILL.md +5 -0
- package/fixtures/selection/consumer-exclude-blocks-skill-ref/request.json +10 -0
- package/fixtures/selection/cws-v0.6.1/expected.json +917 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/brainstormer.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/character-sim.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/continuity-checker.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/critic.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/editor.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/muse.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/outliner.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/reader-sim.md +7 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/style-creator.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/web-researcher.md +7 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/agents/writer.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/mars.toml +62 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/character-sim/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/creative-research/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/creative-writing-craft/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/creative-writing-modes/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/creative-writing-muse/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/project-setup/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/reader-sim/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/story-memory/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/story-planning/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/story-review/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/writing-principles/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/creative-writing-skills/skills/writing-staffing/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/agents/cold-reader.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/agents/explorer.md +6 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/agents/kb-lead.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/agents/kb-maintainer.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/agents/session-miner.md +8 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/agents/subagent.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/mars.toml +147 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/correct/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/explore-and-engage/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/goal-writing/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/grill/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/grill-with-docs/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/grill-with-evidence/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/handoff/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/information-hierarchy/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/intent-modeling/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/knowledge-layers/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/llm-writing/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/md-validation/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/qi-layer/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/qi-maintenance/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/reflect/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/shared-dao/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/shared-workspace/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/structured-artifact/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/work-artifacts/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/meridian-base/skills/zoom-out/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/packages/writing-sync/mars.toml +13 -0
- package/fixtures/selection/cws-v0.6.1/packages/writing-sync/skills/writing-sync/SKILL.md +5 -0
- package/fixtures/selection/cws-v0.6.1/request.json +36 -0
- package/fixtures/selection/cws-v0.6.1-as-root/expected.json +607 -0
- package/fixtures/selection/cws-v0.6.1-as-root/request.json +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/expected.json +65 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/a/agents/a1.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/a/mars.toml +10 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/b/agents/b1.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/b/agents/b2.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/b/mars.toml +7 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/d1/agents/d1.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/d1/mars.toml +8 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/d2/agents/d2.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/d2/mars.toml +7 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/x/agents/x1.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/x/mars.toml +7 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/y/agents/y1.md +5 -0
- package/fixtures/selection/diamond-through-filtered-entry/packages/y/mars.toml +4 -0
- package/fixtures/selection/diamond-through-filtered-entry/request.json +7 -0
- package/fixtures/selection/duplicate-slug-reported/expected.json +35 -0
- package/fixtures/selection/duplicate-slug-reported/packages/a/agents/coder.md +5 -0
- package/fixtures/selection/duplicate-slug-reported/packages/a/mars.toml +4 -0
- package/fixtures/selection/duplicate-slug-reported/packages/b/agents/coder.md +5 -0
- package/fixtures/selection/duplicate-slug-reported/packages/b/mars.toml +4 -0
- package/fixtures/selection/duplicate-slug-reported/request.json +10 -0
- package/fixtures/selection/exclude-by-slug-or-path/expected.json +28 -0
- package/fixtures/selection/exclude-by-slug-or-path/packages/p/agents/coder.md +5 -0
- package/fixtures/selection/exclude-by-slug-or-path/packages/p/agents/reviewer.md +5 -0
- package/fixtures/selection/exclude-by-slug-or-path/packages/p/mars.toml +4 -0
- package/fixtures/selection/exclude-by-slug-or-path/packages/p/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/exclude-by-slug-or-path/packages/p/skills/review/SKILL.md +5 -0
- package/fixtures/selection/exclude-by-slug-or-path/request.json +11 -0
- package/fixtures/selection/exclude-path-is-compared-as-written/expected.json +17 -0
- package/fixtures/selection/exclude-path-is-compared-as-written/packages/p/agents/coder.md +5 -0
- package/fixtures/selection/exclude-path-is-compared-as-written/packages/p/mars.toml +4 -0
- package/fixtures/selection/exclude-path-is-compared-as-written/request.json +10 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/expected.json +17 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/packages/p/agents/other.md +5 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/packages/p/agents/top.md +5 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/packages/p/mars.toml +7 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/packages/q/agents/qa.md +5 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/packages/q/mars.toml +4 -0
- package/fixtures/selection/filtered-request-does-not-open-dependencies/request.json +10 -0
- package/fixtures/selection/include-by-kind/expected.json +17 -0
- package/fixtures/selection/include-by-kind/packages/p/agents/foo.md +5 -0
- package/fixtures/selection/include-by-kind/packages/p/mars.toml +4 -0
- package/fixtures/selection/include-by-kind/packages/p/skills/foo/SKILL.md +5 -0
- package/fixtures/selection/include-by-kind/request.json +10 -0
- package/fixtures/selection/include-closes-over-agent-skills/expected.json +31 -0
- package/fixtures/selection/include-closes-over-agent-skills/packages/p/agents/coder.md +6 -0
- package/fixtures/selection/include-closes-over-agent-skills/packages/p/mars.toml +4 -0
- package/fixtures/selection/include-closes-over-agent-skills/packages/p/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/include-closes-over-agent-skills/packages/p/skills/review/SKILL.md +5 -0
- package/fixtures/selection/include-closes-over-agent-skills/request.json +10 -0
- package/fixtures/selection/include-selects-bootstrap-docs/expected.json +28 -0
- package/fixtures/selection/include-selects-bootstrap-docs/packages/p/agents/bar.md +5 -0
- package/fixtures/selection/include-selects-bootstrap-docs/packages/p/agents/foo.md +5 -0
- package/fixtures/selection/include-selects-bootstrap-docs/packages/p/mars.toml +4 -0
- package/fixtures/selection/include-selects-bootstrap-docs/packages/p/skills/baz/SKILL.md +5 -0
- package/fixtures/selection/include-selects-bootstrap-docs/request.json +24 -0
- package/fixtures/selection/only-agents-closes-over-skills/expected.json +42 -0
- package/fixtures/selection/only-agents-closes-over-skills/packages/p/agents/a.md +6 -0
- package/fixtures/selection/only-agents-closes-over-skills/packages/p/agents/b.md +5 -0
- package/fixtures/selection/only-agents-closes-over-skills/packages/p/mars.toml +4 -0
- package/fixtures/selection/only-agents-closes-over-skills/packages/p/skills/s1/SKILL.md +5 -0
- package/fixtures/selection/only-agents-closes-over-skills/packages/p/skills/s2/SKILL.md +5 -0
- package/fixtures/selection/only-agents-closes-over-skills/request.json +8 -0
- package/fixtures/selection/only-skills/expected.json +28 -0
- package/fixtures/selection/only-skills/packages/p/agents/coder.md +6 -0
- package/fixtures/selection/only-skills/packages/p/mars.toml +4 -0
- package/fixtures/selection/only-skills/packages/p/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/only-skills/packages/p/skills/review/SKILL.md +5 -0
- package/fixtures/selection/only-skills/request.json +8 -0
- package/fixtures/selection/root-agent-refs-resolve-like-a-dependencys/expected.json +38 -0
- package/fixtures/selection/root-agent-refs-resolve-like-a-dependencys/packages/lib/mars.toml +4 -0
- package/fixtures/selection/root-agent-refs-resolve-like-a-dependencys/packages/lib/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/root-agent-refs-resolve-like-a-dependencys/packages/project/agents/coder.md +6 -0
- package/fixtures/selection/root-agent-refs-resolve-like-a-dependencys/packages/project/mars.toml +7 -0
- package/fixtures/selection/root-agent-refs-resolve-like-a-dependencys/request.json +8 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/expected.json +46 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/packages/lib/mars.toml +4 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/packages/lib/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/packages/lib/skills/shared/SKILL.md +5 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/packages/project/agents/coder.md +6 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/packages/project/mars.toml +8 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/packages/project/skills/shared/SKILL.md +5 -0
- package/fixtures/selection/root-entries-are-the-consumers-requests/request.json +4 -0
- package/fixtures/selection/skill-names-no-skills/expected.json +17 -0
- package/fixtures/selection/skill-names-no-skills/packages/a/mars.toml +4 -0
- package/fixtures/selection/skill-names-no-skills/packages/a/skills/inner/SKILL.md +5 -0
- package/fixtures/selection/skill-names-no-skills/packages/a/skills/outer/SKILL.md +6 -0
- package/fixtures/selection/skill-names-no-skills/request.json +10 -0
- package/fixtures/selection/skill-ref-deferred-to-declared-provider/expected.json +17 -0
- package/fixtures/selection/skill-ref-deferred-to-declared-provider/packages/a/agents/coder.md +6 -0
- package/fixtures/selection/skill-ref-deferred-to-declared-provider/packages/a/mars.toml +5 -0
- package/fixtures/selection/skill-ref-deferred-to-declared-provider/request.json +7 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/expected.json +31 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/packages/first/mars.toml +4 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/packages/first/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/packages/requester/agents/coder.md +6 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/packages/requester/mars.toml +4 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/packages/second/mars.toml +4 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/packages/second/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-falls-back-to-depth-first-order/request.json +19 -0
- package/fixtures/selection/skill-ref-missing/expected.json +36 -0
- package/fixtures/selection/skill-ref-missing/packages/a/agents/coder.md +6 -0
- package/fixtures/selection/skill-ref-missing/packages/a/mars.toml +4 -0
- package/fixtures/selection/skill-ref-missing/request.json +7 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/expected.json +53 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/packages/my-dep/mars.toml +4 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/packages/my-dep/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/packages/requester/agents/coder.md +6 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/packages/requester/mars.toml +7 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/packages/sibling/mars.toml +4 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/packages/sibling/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-prefers-dependency-closure/request.json +10 -0
- package/fixtures/selection/skill-ref-prefers-own-package/expected.json +31 -0
- package/fixtures/selection/skill-ref-prefers-own-package/packages/my-dep/mars.toml +4 -0
- package/fixtures/selection/skill-ref-prefers-own-package/packages/my-dep/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-prefers-own-package/packages/requester/agents/coder.md +6 -0
- package/fixtures/selection/skill-ref-prefers-own-package/packages/requester/mars.toml +7 -0
- package/fixtures/selection/skill-ref-prefers-own-package/packages/requester/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-prefers-own-package/request.json +10 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/expected.json +45 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/packages/a/agents/coder.md +6 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/packages/a/mars.toml +8 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/packages/b/mars.toml +4 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/packages/b/skills/other/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/packages/b/skills/planning/SKILL.md +5 -0
- package/fixtures/selection/skill-ref-pulls-bootstrap-docs/request.json +16 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/expected.json +31 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/packages/p3/agents/top.md +6 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/packages/p3/mars.toml +8 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/packages/q/mars.toml +4 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/packages/q/skills/qx/SKILL.md +5 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/packages/q/skills/qy/SKILL.md +5 -0
- package/fixtures/selection/transitive-exclude-blocks-nothing/request.json +7 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/expected.json +17 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/packages/p2/agents/top.md +5 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/packages/p2/mars.toml +8 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/packages/q/agents/qa.md +5 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/packages/q/agents/qb.md +5 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/packages/q/mars.toml +4 -0
- package/fixtures/selection/transitive-filtered-entry-seeds-nothing/request.json +7 -0
- package/fixtures/version/constraint-bare-minor-is-caret/expected.json +3 -0
- package/fixtures/version/constraint-bare-minor-is-caret/input.json +1 -0
- package/fixtures/version/constraint-branch-is-ref-pin/expected.json +3 -0
- package/fixtures/version/constraint-branch-is-ref-pin/input.json +1 -0
- package/fixtures/version/constraint-exact-v/expected.json +3 -0
- package/fixtures/version/constraint-exact-v/input.json +1 -0
- package/fixtures/version/constraint-huge-major-is-ref-pin/expected.json +3 -0
- package/fixtures/version/constraint-huge-major-is-ref-pin/input.json +1 -0
- package/fixtures/version/constraint-huge-minor-is-ref-pin/expected.json +3 -0
- package/fixtures/version/constraint-huge-minor-is-ref-pin/input.json +1 -0
- package/fixtures/version/constraint-latest-any-case/expected.json +3 -0
- package/fixtures/version/constraint-latest-any-case/input.json +1 -0
- package/fixtures/version/constraint-major-v/expected.json +3 -0
- package/fixtures/version/constraint-major-v/input.json +1 -0
- package/fixtures/version/constraint-minor-v/expected.json +3 -0
- package/fixtures/version/constraint-minor-v/input.json +1 -0
- package/fixtures/version/constraint-none/expected.json +3 -0
- package/fixtures/version/constraint-none/input.json +1 -0
- package/fixtures/version/constraint-range/expected.json +3 -0
- package/fixtures/version/constraint-range/input.json +1 -0
- package/fixtures/version/constraint-tilde/expected.json +3 -0
- package/fixtures/version/constraint-tilde/input.json +1 -0
- package/fixtures/version/constraint-v-prefix-garbage-is-ref-pin/expected.json +3 -0
- package/fixtures/version/constraint-v-prefix-garbage-is-ref-pin/input.json +1 -0
- package/fixtures/version/requirement-bare-is-floor/expected.json +3 -0
- package/fixtures/version/requirement-bare-is-floor/input.json +1 -0
- package/fixtures/version/requirement-bare-is-floor-below/expected.json +3 -0
- package/fixtures/version/requirement-bare-is-floor-below/input.json +1 -0
- package/fixtures/version/requirement-invalid/expected.json +6 -0
- package/fixtures/version/requirement-invalid/input.json +1 -0
- package/fixtures/version/requirement-range/expected.json +3 -0
- package/fixtures/version/requirement-range/input.json +1 -0
- package/fixtures/version/satisfies-caret-zero-minor/expected.json +3 -0
- package/fixtures/version/satisfies-caret-zero-minor/input.json +1 -0
- package/fixtures/version/satisfies-caret-zero-minor-excludes-next-minor/expected.json +3 -0
- package/fixtures/version/satisfies-caret-zero-minor-excludes-next-minor/input.json +1 -0
- package/fixtures/version/satisfies-latest/expected.json +3 -0
- package/fixtures/version/satisfies-latest/input.json +1 -0
- package/fixtures/version/satisfies-ref-pin-never/expected.json +3 -0
- package/fixtures/version/satisfies-ref-pin-never/input.json +1 -0
- package/fixtures/version/satisfies-v-minor-range/expected.json +3 -0
- package/fixtures/version/satisfies-v-minor-range/input.json +1 -0
- package/fixtures/version/select-equal-versions-later-tag-wins/expected.json +3 -0
- package/fixtures/version/select-equal-versions-later-tag-wins/input.json +1 -0
- package/fixtures/version/select-excluded-version-skipped/expected.json +3 -0
- package/fixtures/version/select-excluded-version-skipped/input.json +1 -0
- package/fixtures/version/select-intersects-constraints/expected.json +3 -0
- package/fixtures/version/select-intersects-constraints/input.json +1 -0
- package/fixtures/version/select-latest-beside-range-picks-newest/expected.json +3 -0
- package/fixtures/version/select-latest-beside-range-picks-newest/input.json +1 -0
- package/fixtures/version/select-latest-constraint-ignores-lock/expected.json +3 -0
- package/fixtures/version/select-latest-constraint-ignores-lock/input.json +1 -0
- package/fixtures/version/select-latest-only-ignores-lock/expected.json +3 -0
- package/fixtures/version/select-latest-only-ignores-lock/input.json +1 -0
- package/fixtures/version/select-lock-excluded-picks-newest/expected.json +3 -0
- package/fixtures/version/select-lock-excluded-picks-newest/input.json +1 -0
- package/fixtures/version/select-lock-no-tags-keeps-lock/expected.json +3 -0
- package/fixtures/version/select-lock-no-tags-keeps-lock/input.json +1 -0
- package/fixtures/version/select-lock-outside-constraints-falls-to-newest/expected.json +3 -0
- package/fixtures/version/select-lock-outside-constraints-falls-to-newest/input.json +1 -0
- package/fixtures/version/select-lock-tag-deleted-keeps-lock/expected.json +3 -0
- package/fixtures/version/select-lock-tag-deleted-keeps-lock/input.json +1 -0
- package/fixtures/version/select-newest-ignores-tag-order/expected.json +3 -0
- package/fixtures/version/select-newest-ignores-tag-order/input.json +1 -0
- package/fixtures/version/select-no-satisfying-lists-sorted/expected.json +6 -0
- package/fixtures/version/select-no-satisfying-lists-sorted/input.json +1 -0
- package/fixtures/version/select-no-version-tags-is-untagged/expected.json +3 -0
- package/fixtures/version/select-no-version-tags-is-untagged/input.json +1 -0
- package/fixtures/version/select-non-version-tags-are-skipped/expected.json +3 -0
- package/fixtures/version/select-non-version-tags-are-skipped/input.json +1 -0
- package/fixtures/version/select-pin-beside-tags-wins/expected.json +3 -0
- package/fixtures/version/select-pin-beside-tags-wins/input.json +1 -0
- package/fixtures/version/select-prefers-lock/expected.json +3 -0
- package/fixtures/version/select-prefers-lock/input.json +1 -0
- package/fixtures/version/select-prerelease-needs-opt-in/expected.json +3 -0
- package/fixtures/version/select-prerelease-needs-opt-in/input.json +1 -0
- package/fixtures/version/settle-different-pins-refuse/expected.json +6 -0
- package/fixtures/version/settle-different-pins-refuse/input.json +1 -0
- package/fixtures/version/settle-latest-beside-pin-holds/expected.json +3 -0
- package/fixtures/version/settle-latest-beside-pin-holds/input.json +1 -0
- package/fixtures/version/settle-pin-beside-range-refuses/expected.json +6 -0
- package/fixtures/version/settle-pin-beside-range-refuses/input.json +1 -0
- package/fixtures/version/settle-same-pin-agrees/expected.json +3 -0
- package/fixtures/version/settle-same-pin-agrees/input.json +1 -0
- package/fixtures/version/tag-bare/expected.json +3 -0
- package/fixtures/version/tag-bare/input.json +1 -0
- package/fixtures/version/tag-double-v/expected.json +1 -0
- package/fixtures/version/tag-double-v/input.json +1 -0
- package/fixtures/version/tag-not-semver/expected.json +1 -0
- package/fixtures/version/tag-not-semver/input.json +1 -0
- package/fixtures/version/tag-partial/expected.json +1 -0
- package/fixtures/version/tag-partial/input.json +1 -0
- package/fixtures/version/tag-v-prefixed/expected.json +3 -0
- package/fixtures/version/tag-v-prefixed/input.json +1 -0
- package/fixtures/vocabulary/expected.json +2 -5
- package/index.d.ts +216 -3
- package/node/mars_schema_wasm.d.ts +36 -3
- package/node/mars_schema_wasm.js +132 -9
- package/node/mars_schema_wasm_bg.wasm +0 -0
- package/node/mars_schema_wasm_bg.wasm.d.ts +4 -0
- package/package.json +1 -1
- package/web/mars_schema_wasm.d.ts +40 -3
- package/web/mars_schema_wasm.js +128 -9
- package/web/mars_schema_wasm_bg.wasm +0 -0
- package/web/mars_schema_wasm_bg.wasm.d.ts +4 -0
package/README.md
CHANGED
|
@@ -25,13 +25,17 @@ await init();
|
|
|
25
25
|
|
|
26
26
|
| Function | Does |
|
|
27
27
|
|---|---|
|
|
28
|
-
| `read(path, text)` | Reads one file. The package-relative `path` picks the reader: `mars.toml`, `agents/<slug>.md` or `skills/<slug>/SKILL.md`. Any other path throws. |
|
|
28
|
+
| `read(path, text)` | Reads one file. The package-relative `path` picks the reader: `mars.toml`, `agents/<slug>.md` or `skills/<slug>/SKILL.md`. Any other path throws `read.unrecognized-path`. |
|
|
29
29
|
| `emitValue(value, indent)` | YAML for one value, to splice after a key. |
|
|
30
30
|
| `rewriteBlock(frontmatter)` | The whole frontmatter block between the `---` fences for ordered `[key, value]` pairs. |
|
|
31
31
|
| `vocabulary()` | The tool capabilities, their aliases, and the native tools of each host. |
|
|
32
32
|
| `prepare({files, context?, declaredDialect?, migrate?})` | Reads one root held in memory: classifies it, upgrades or translates it, and returns each definition's normalized bytes, typed reading and change record. `migrate` adds `mars migrate`'s repair: a removed Agent key whose replacement is a `harness-overrides` key moves there. |
|
|
33
33
|
| `inspect({tree, hint?})` | Reports what a repository is: a marketplace's plugins, a plugin's or skill tree's items, the dialect and the evidence for it. |
|
|
34
34
|
| `normalize({tree, source?, hint?, selection?})` | Turns a selection into schema v1 packages with a generated `mars.toml` and provenance. |
|
|
35
|
+
| `satisfies(constraint, version)` | Whether a version meets a dependency entry's `version` (`^1.2`, `v2`, a bare `0.20` as `^0.20`, `latest`; a branch or commit pin is met by none). |
|
|
36
|
+
| `satisfiesRequirement(requirement, version)` | Whether a version meets a package's `requires-mars` or `requires-meridian`, where a bare `0.20` means `>=0.20.0`. |
|
|
37
|
+
| `selectVersion({available, constraints, locked?})` | Which ref a package ends at, from every `[requester, version \| null]` on it and the repository's tags: `{pin}` (a branch or commit), `{locked: true}` (the locked version still meets every semver range, whether or not the repository still has its tag), `{tag}` (the newest that meets every semver range) or `{untagged: true}` (no version tags). Throws when none qualifies. |
|
|
38
|
+
| `selectItems({packages, root?, requests?})` | Which Agents, skills and bootstrap documents an install of `root` and its dependencies yields, and why. Takes each package's `prepare` result. |
|
|
35
39
|
| `version()` | The version of the schema crate this build was made from. |
|
|
36
40
|
|
|
37
41
|
A tree is a `Map<string, Uint8Array>` from `/`-separated relative paths to bytes. `prepare`, `inspect` and `normalize` read manifests, definitions and directory listings, never the bytes of a skill's other files.
|
|
@@ -97,6 +101,25 @@ natives["meridian-flow"].work; // { kind: "tools", tools: ["work
|
|
|
97
101
|
|
|
98
102
|
Marketplace fields are untrusted input: a marketplace is third-party text, and an entry's repository and ref reach `git` as arguments. The crate checks them when it reads the entry, and an entry that fails comes back as `source.kind === "unsupported"` with a `reason` (and `refused` on the plugin), never as `remote`. A repository must be an `https://` or `ssh://` URL or a `user@host:path` address; a local repository (`file://`, an absolute path), `ext::`, `git://`, `http://` and the like are refused. A repository or ref that is empty, starts with `-` or holds whitespace or a control character is refused, and so is a `sha` that is not a full 40-character commit (it is never read as an unpinned checkout). A plugin name must be letters, digits, `-`, `_` and `.`, starting with a letter or digit (`is_plugin_name`); an entry that fails it is left out with `marketplace.plugin-name-invalid`, and a `plugin.json` name that fails it is ignored with `plugin.name-invalid`. The crate does not check that a repository exists, is reachable, or is on a host you allow: restricting hosts (GitHub only, say) is the caller's policy. The Claude rules (a plugin's `skills` list adds to the default folder, its `agents` list replaces it, commands are reported and not imported) are applied here; see [Dialect](https://github.com/haowjy/mars-agents/blob/main/docs/config/mars-toml.md#dialect).
|
|
99
103
|
|
|
104
|
+
### Versions and selection
|
|
105
|
+
|
|
106
|
+
The version functions are the rules `mars sync` applies, so a caller that resolves its own dependencies agrees with it. `selectVersion` is the whole decision for one package: it settles the constraints first (one pin wins; two pins, or a pin beside a range, throw), ignores tags that are not versions (`latest`, `nightly-2024`), treats `latest` and `null` constraints as any version, and with no version tag left answers `{untagged: true}`. Tags are strings (`v1.2.3` or `1.2.3`).
|
|
107
|
+
|
|
108
|
+
Every export throws an `Error` with a `code` (`MarsSchemaError` in `index.d.ts`), so a caller maps failures by code and never by message.
|
|
109
|
+
|
|
110
|
+
`selectItems` runs the pass that decides what an install yields. Prepare each package of the graph, then pass the results unchanged. For a package you import, `root` is the package and `packages` its dependencies; the root's `[dependencies]` entries apply with their filters and `exclude`, as the consumer's own requests:
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
const result = selectItems({
|
|
114
|
+
requests: [],
|
|
115
|
+
root: { prepared: prepare({ files: rootFiles, migrate: true }) },
|
|
116
|
+
packages: { base: { prepared: prepare({ files: baseFiles, migrate: true }) } },
|
|
117
|
+
});
|
|
118
|
+
// result.items: [{package, kind, slug, path, required_by}], result.missing_skills, result.diagnostics
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Each package's edges and `uses-providers` are read from `prepared.selection`, so nothing is derived twice. A filtered entry of a dependency's manifest seeds nothing; only the root's or the consumer's own `exclude` blocks. A skill an Agent names resolves to a package in its own, then its dependencies, then any other package in registry order, which `selectItems` computes from `root` and `requests`; `packages` is a set. Items of `root` have `package: null`, and a slug that `root` and a dependency both install is a `selection.duplicate-slug` diagnostic. `missing_skills` lists refs no package ships. `kind` values are `agent`, `skill`, `hook`, `mcp-server` and `bootstrap-doc`; `selectItems` decides only Agents, skills and bootstrap documents; an `mcp-server` in `extra_items` throws `input.invalid`. Hooks and MCP servers are selected by the binary (visibility and depth), so Flow and `mars sync` are guaranteed to agree only on those three kinds. Input keys are snake_case; an unknown key (a misspelled filter, `rename`) throws `input.invalid`.
|
|
122
|
+
|
|
100
123
|
## Fixtures
|
|
101
124
|
|
|
102
125
|
`fixtures/` holds the cases the package is tested with, one directory per case:
|
|
@@ -109,6 +132,8 @@ Marketplace fields are untrusted input: a marketplace is third-party text, and a
|
|
|
109
132
|
| `prepare` | `input/`, `request.json`, `expected.json` | classifying and reading one root, and with `"migrate": true` the repair `mars migrate` writes back |
|
|
110
133
|
| `normalize` | `input/`, `request.json`, `inspection.json`, `normalized.json`, `expected/` | reading a foreign repository |
|
|
111
134
|
| `vocabulary` | `expected.json` | the capabilities, aliases and native tools |
|
|
135
|
+
| `version` | `input.json`, `expected.json` | `satisfies`, `satisfiesRequirement` and `selectVersion`, with the `code` of each refusal (the Rust leg also pins `parse-constraint` and `parse-tag`, which are not exported) |
|
|
136
|
+
| `selection` | `request.json`, `packages/` (or `packages_from`: a sibling case's), `expected.json` | `selectItems` over packages prepared from `packages/` |
|
|
112
137
|
|
|
113
138
|
`node crates/mars-schema-wasm/run-fixtures.mjs` in the Mars repository runs every case against this package and compares results deeply, key order included. Run the same cases against the version you pin; a change to a pinned reader that changes a result is a change to the contract.
|
|
114
139
|
|
|
@@ -134,6 +134,24 @@
|
|
|
134
134
|
"output_path": "skills/pdf/agents/openai.yaml"
|
|
135
135
|
}
|
|
136
136
|
],
|
|
137
|
+
"selection": {
|
|
138
|
+
"definitions": [
|
|
139
|
+
{
|
|
140
|
+
"kind": "skill",
|
|
141
|
+
"slug": "notes",
|
|
142
|
+
"output_path": "skills/notes/SKILL.md",
|
|
143
|
+
"skills": []
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "skill",
|
|
147
|
+
"slug": "pdf",
|
|
148
|
+
"output_path": "skills/pdf/SKILL.md",
|
|
149
|
+
"skills": []
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"edges": [],
|
|
153
|
+
"uses_providers": []
|
|
154
|
+
},
|
|
137
155
|
"diagnostics": {}
|
|
138
156
|
}
|
|
139
157
|
}
|
|
@@ -459,6 +459,42 @@
|
|
|
459
459
|
}
|
|
460
460
|
],
|
|
461
461
|
"payload": [],
|
|
462
|
+
"selection": {
|
|
463
|
+
"definitions": [
|
|
464
|
+
{
|
|
465
|
+
"kind": "agent",
|
|
466
|
+
"slug": "denies-only",
|
|
467
|
+
"output_path": "agents/denies-only.md",
|
|
468
|
+
"skills": []
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "agent",
|
|
472
|
+
"slug": "everything",
|
|
473
|
+
"output_path": "agents/everything.md",
|
|
474
|
+
"skills": []
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"kind": "agent",
|
|
478
|
+
"slug": "list",
|
|
479
|
+
"output_path": "agents/list.md",
|
|
480
|
+
"skills": []
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"kind": "agent",
|
|
484
|
+
"slug": "spaced",
|
|
485
|
+
"output_path": "agents/spaced.md",
|
|
486
|
+
"skills": []
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"kind": "agent",
|
|
490
|
+
"slug": "untouched",
|
|
491
|
+
"output_path": "agents/untouched.md",
|
|
492
|
+
"skills": []
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"edges": [],
|
|
496
|
+
"uses_providers": []
|
|
497
|
+
},
|
|
462
498
|
"diagnostics": {
|
|
463
499
|
"agents/everything.md": [
|
|
464
500
|
{
|
|
@@ -142,6 +142,24 @@
|
|
|
142
142
|
"output_path": "skills/pdf/scripts/extract.py"
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
+
"selection": {
|
|
146
|
+
"definitions": [
|
|
147
|
+
{
|
|
148
|
+
"kind": "skill",
|
|
149
|
+
"slug": "pdf",
|
|
150
|
+
"output_path": "skills/pdf/SKILL.md",
|
|
151
|
+
"skills": []
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"kind": "skill",
|
|
155
|
+
"slug": "xlsx",
|
|
156
|
+
"output_path": "skills/xlsx/SKILL.md",
|
|
157
|
+
"skills": []
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"edges": [],
|
|
161
|
+
"uses_providers": []
|
|
162
|
+
},
|
|
145
163
|
"diagnostics": {}
|
|
146
164
|
}
|
|
147
165
|
},
|
|
@@ -249,6 +267,18 @@
|
|
|
249
267
|
"output_path": "skills/skill-creator/references/schema.md"
|
|
250
268
|
}
|
|
251
269
|
],
|
|
270
|
+
"selection": {
|
|
271
|
+
"definitions": [
|
|
272
|
+
{
|
|
273
|
+
"kind": "skill",
|
|
274
|
+
"slug": "skill-creator",
|
|
275
|
+
"output_path": "skills/skill-creator/SKILL.md",
|
|
276
|
+
"skills": []
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"edges": [],
|
|
280
|
+
"uses_providers": []
|
|
281
|
+
},
|
|
252
282
|
"diagnostics": {}
|
|
253
283
|
}
|
|
254
284
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "toolbox", "version": "1.2.0", "description": "Daily tools"}
|
|
1
|
+
{"name": "toolbox", "version": "1.2.0", "description": "Daily tools", "mcpServers": [{"replaced": {"type": "streamable-http", "url": "https://new.invalid/mcp"}}, "./config/more-mcp.json", "./bundle.mcpb"]}
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"github": {"type": "http", "url": "https://example.invalid/mcp", "headers": {"Authorization": "Bearer ${GITHUB_TOKEN}", "X-Region": "eu"}},
|
|
4
|
+
"replaced": {"type": "http", "url": "https://old.invalid/mcp"},
|
|
5
|
+
"docs": {"type": "http", "url": "https://docs.invalid/mcp"},
|
|
6
|
+
"indexer": {"command": "npx", "args": ["-y", "indexer"], "env": {"INDEX_KEY": "${INDEX_KEY}"}, "timeout": 30},
|
|
7
|
+
"events": {"type": "sse", "url": "https://events.invalid/sse"},
|
|
8
|
+
"rooted": {"command": "${CLAUDE_PLUGIN_ROOT}/bin/server", "args": ["--data", "${CLAUDE_PLUGIN_DATA}"]},
|
|
9
|
+
"defaulted": {"type": "http", "url": "https://${HOST:-example.invalid}/mcp"},
|
|
10
|
+
"literal": {"command": "tool", "env": {"MODE": "fast", "TOKEN": "${TOKEN}"}},
|
|
11
|
+
"untyped": {"url": "https://untyped.invalid/mcp"},
|
|
12
|
+
"helper": {"type": "http", "url": "https://helper.invalid/mcp", "headersHelper": "./auth.sh", "oauth": {"clientId": "abc"}},
|
|
13
|
+
"bad name": {"command": "tool"}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"extra": {"type": "http", "url": "https://extra.invalid/mcp"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
url = "https://authored.invalid/mcp"
|
|
@@ -250,19 +250,184 @@
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
],
|
|
253
|
+
"mcp_servers": [
|
|
254
|
+
{
|
|
255
|
+
"name": "extra",
|
|
256
|
+
"source_path": "config/more-mcp.json",
|
|
257
|
+
"output_path": "mcp/extra/mcp.toml"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "github",
|
|
261
|
+
"source_path": ".mcp.json",
|
|
262
|
+
"output_path": "mcp/github/mcp.toml"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "indexer",
|
|
266
|
+
"source_path": ".mcp.json",
|
|
267
|
+
"output_path": "mcp/indexer/mcp.toml"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "replaced",
|
|
271
|
+
"source_path": ".claude-plugin/plugin.json",
|
|
272
|
+
"output_path": "mcp/replaced/mcp.toml"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
253
275
|
"payload": [
|
|
254
276
|
{
|
|
255
277
|
"source_path": "skills/review/checklist.md",
|
|
256
278
|
"output_path": "skills/review/checklist.md"
|
|
257
279
|
}
|
|
258
280
|
],
|
|
281
|
+
"selection": {
|
|
282
|
+
"definitions": [
|
|
283
|
+
{
|
|
284
|
+
"kind": "agent",
|
|
285
|
+
"slug": "helper",
|
|
286
|
+
"output_path": "agents/helper.md",
|
|
287
|
+
"skills": []
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"kind": "agent",
|
|
291
|
+
"slug": "plan",
|
|
292
|
+
"output_path": "agents/plan.md",
|
|
293
|
+
"skills": []
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "skill",
|
|
297
|
+
"slug": "plan",
|
|
298
|
+
"output_path": "skills/plan/SKILL.md",
|
|
299
|
+
"skills": []
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"kind": "skill",
|
|
303
|
+
"slug": "review",
|
|
304
|
+
"output_path": "skills/review/SKILL.md",
|
|
305
|
+
"skills": []
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"edges": [],
|
|
309
|
+
"uses_providers": []
|
|
310
|
+
},
|
|
259
311
|
"diagnostics": {
|
|
312
|
+
".claude-plugin/plugin.json": [
|
|
313
|
+
{
|
|
314
|
+
"code": "mcp.manifest-entry-unsupported",
|
|
315
|
+
"severity": "warning",
|
|
316
|
+
"path": [
|
|
317
|
+
"mcpServers",
|
|
318
|
+
2
|
|
319
|
+
],
|
|
320
|
+
"message": "`mcpServers` entry `./bundle.mcpb` is not a JSON file inside the plugin (a `.mcpb` bundle or a URL cannot be imported), so it was left out"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
260
323
|
".mcp.json": [
|
|
261
324
|
{
|
|
262
|
-
"code": "
|
|
325
|
+
"code": "mcp.name-invalid",
|
|
263
326
|
"severity": "warning",
|
|
264
|
-
"path": [
|
|
265
|
-
|
|
327
|
+
"path": [
|
|
328
|
+
"mcpServers",
|
|
329
|
+
"bad name"
|
|
330
|
+
],
|
|
331
|
+
"message": "MCP server `bad name` was not imported: its name becomes a directory, so it may use only letters, digits, `-`, `_` and `.`, starting with a letter or digit"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"code": "mcp.default-value",
|
|
335
|
+
"severity": "warning",
|
|
336
|
+
"path": [
|
|
337
|
+
"mcpServers",
|
|
338
|
+
"defaulted",
|
|
339
|
+
"url"
|
|
340
|
+
],
|
|
341
|
+
"message": "MCP server `defaulted` was not imported: it uses a `${VAR:-default}` in `url`; Mars passes an environment variable by name, with no default"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"code": "mcp.shadowed-by-authored",
|
|
345
|
+
"severity": "warning",
|
|
346
|
+
"path": [
|
|
347
|
+
"mcpServers",
|
|
348
|
+
"docs"
|
|
349
|
+
],
|
|
350
|
+
"message": "MCP server `docs` was not imported: the plugin also ships `mcp/docs/`, which is used instead"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"code": "mcp.transport-unsupported",
|
|
354
|
+
"severity": "warning",
|
|
355
|
+
"path": [
|
|
356
|
+
"mcpServers",
|
|
357
|
+
"events",
|
|
358
|
+
"type"
|
|
359
|
+
],
|
|
360
|
+
"message": "MCP server `events` was not imported: it uses transport `sse`; Mars imports `stdio` and `http`"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"code": "mcp.field-unsupported",
|
|
364
|
+
"severity": "warning",
|
|
365
|
+
"path": [
|
|
366
|
+
"mcpServers",
|
|
367
|
+
"helper",
|
|
368
|
+
"headersHelper"
|
|
369
|
+
],
|
|
370
|
+
"message": "MCP server `helper` was not imported: it sets `headersHelper`, which runs a command to produce request headers; Mars passes headers by value or environment variable"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"code": "mcp.field-unsupported",
|
|
374
|
+
"severity": "warning",
|
|
375
|
+
"path": [
|
|
376
|
+
"mcpServers",
|
|
377
|
+
"helper",
|
|
378
|
+
"oauth"
|
|
379
|
+
],
|
|
380
|
+
"message": "MCP server `helper` was not imported: it sets `oauth`, which pre-registers an OAuth client; each harness runs its own OAuth flow"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"code": "mcp.field-dropped",
|
|
384
|
+
"severity": "warning",
|
|
385
|
+
"path": [
|
|
386
|
+
"mcpServers",
|
|
387
|
+
"indexer",
|
|
388
|
+
"timeout"
|
|
389
|
+
],
|
|
390
|
+
"message": "MCP server `indexer`: `timeout` has no equivalent and was dropped"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"code": "mcp.literal-env",
|
|
394
|
+
"severity": "warning",
|
|
395
|
+
"path": [
|
|
396
|
+
"mcpServers",
|
|
397
|
+
"literal",
|
|
398
|
+
"env.MODE"
|
|
399
|
+
],
|
|
400
|
+
"message": "MCP server `literal` was not imported: it sets `env.MODE` to a literal value; Mars passes only a reference to an environment variable, `${VAR}`"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"code": "mcp.plugin-variable",
|
|
404
|
+
"severity": "warning",
|
|
405
|
+
"path": [
|
|
406
|
+
"mcpServers",
|
|
407
|
+
"rooted",
|
|
408
|
+
"command"
|
|
409
|
+
],
|
|
410
|
+
"message": "MCP server `rooted` was not imported: it uses `${CLAUDE_PLUGIN_ROOT}` in `command`, which names the plugin's install location or settings and has no equivalent here"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"code": "mcp.plugin-variable",
|
|
414
|
+
"severity": "warning",
|
|
415
|
+
"path": [
|
|
416
|
+
"mcpServers",
|
|
417
|
+
"rooted",
|
|
418
|
+
"args"
|
|
419
|
+
],
|
|
420
|
+
"message": "MCP server `rooted` was not imported: it uses `${CLAUDE_PLUGIN_DATA}` in `args`, which names the plugin's install location or settings and has no equivalent here"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"code": "mcp.url-without-type",
|
|
424
|
+
"severity": "warning",
|
|
425
|
+
"path": [
|
|
426
|
+
"mcpServers",
|
|
427
|
+
"untyped",
|
|
428
|
+
"url"
|
|
429
|
+
],
|
|
430
|
+
"message": "MCP server `untyped` was not imported: it has a `url` and no `type`; Claude reads that as invalid. Set `\"type\": \"http\"`"
|
|
266
431
|
}
|
|
267
432
|
],
|
|
268
433
|
"commands": [
|
|
@@ -80,6 +80,18 @@
|
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"payload": [],
|
|
83
|
+
"selection": {
|
|
84
|
+
"definitions": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "skill",
|
|
87
|
+
"slug": "visible",
|
|
88
|
+
"output_path": "skills/visible/SKILL.md",
|
|
89
|
+
"skills": []
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"edges": [],
|
|
93
|
+
"uses_providers": []
|
|
94
|
+
},
|
|
83
95
|
"diagnostics": {}
|
|
84
96
|
}
|
|
85
97
|
}
|
|
@@ -80,6 +80,18 @@
|
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"payload": [],
|
|
83
|
+
"selection": {
|
|
84
|
+
"definitions": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "skill",
|
|
87
|
+
"slug": "found",
|
|
88
|
+
"output_path": "skills/found/SKILL.md",
|
|
89
|
+
"skills": []
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"edges": [],
|
|
93
|
+
"uses_providers": []
|
|
94
|
+
},
|
|
83
95
|
"diagnostics": {}
|
|
84
96
|
}
|
|
85
97
|
}
|
|
@@ -155,6 +155,24 @@
|
|
|
155
155
|
}
|
|
156
156
|
],
|
|
157
157
|
"payload": [],
|
|
158
|
+
"selection": {
|
|
159
|
+
"definitions": [
|
|
160
|
+
{
|
|
161
|
+
"kind": "agent",
|
|
162
|
+
"slug": "planner",
|
|
163
|
+
"output_path": "agents/planner.md",
|
|
164
|
+
"skills": []
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"kind": "skill",
|
|
168
|
+
"slug": "plan",
|
|
169
|
+
"output_path": "skills/plan/SKILL.md",
|
|
170
|
+
"skills": []
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"edges": [],
|
|
174
|
+
"uses_providers": []
|
|
175
|
+
},
|
|
158
176
|
"diagnostics": {}
|
|
159
177
|
}
|
|
160
178
|
}
|
|
@@ -20,6 +20,30 @@
|
|
|
20
20
|
},
|
|
21
21
|
"definitions": [],
|
|
22
22
|
"payload": [],
|
|
23
|
+
"selection": {
|
|
24
|
+
"definitions": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "agent",
|
|
27
|
+
"slug": "review",
|
|
28
|
+
"output_path": "agents/review.md",
|
|
29
|
+
"skills": []
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"kind": "skill",
|
|
33
|
+
"slug": "review",
|
|
34
|
+
"output_path": "skills/review/SKILL.md",
|
|
35
|
+
"skills": []
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "skill",
|
|
39
|
+
"slug": "review",
|
|
40
|
+
"output_path": "skills/review/SKILL.md",
|
|
41
|
+
"skills": []
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"edges": [],
|
|
45
|
+
"uses_providers": []
|
|
46
|
+
},
|
|
23
47
|
"diagnostics": {
|
|
24
48
|
"two/review/SKILL.md": [
|
|
25
49
|
{
|
|
@@ -80,6 +80,18 @@
|
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"payload": [],
|
|
83
|
+
"selection": {
|
|
84
|
+
"definitions": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "skill",
|
|
87
|
+
"slug": "authored",
|
|
88
|
+
"output_path": "skills/authored/SKILL.md",
|
|
89
|
+
"skills": []
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"edges": [],
|
|
93
|
+
"uses_providers": []
|
|
94
|
+
},
|
|
83
95
|
"diagnostics": {
|
|
84
96
|
"dist-plugin/.mars-plugin.json": [
|
|
85
97
|
{
|
|
@@ -87,6 +87,18 @@
|
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
"payload": [],
|
|
90
|
+
"selection": {
|
|
91
|
+
"definitions": [
|
|
92
|
+
{
|
|
93
|
+
"kind": "skill",
|
|
94
|
+
"slug": "a",
|
|
95
|
+
"output_path": "skills/a/SKILL.md",
|
|
96
|
+
"skills": []
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"edges": [],
|
|
100
|
+
"uses_providers": []
|
|
101
|
+
},
|
|
90
102
|
"diagnostics": {}
|
|
91
103
|
}
|
|
92
104
|
}
|
|
@@ -91,6 +91,18 @@
|
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
93
|
"payload": [],
|
|
94
|
+
"selection": {
|
|
95
|
+
"definitions": [
|
|
96
|
+
{
|
|
97
|
+
"kind": "skill",
|
|
98
|
+
"slug": "here",
|
|
99
|
+
"output_path": "skills/here/SKILL.md",
|
|
100
|
+
"skills": []
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"edges": [],
|
|
104
|
+
"uses_providers": []
|
|
105
|
+
},
|
|
94
106
|
"diagnostics": {}
|
|
95
107
|
}
|
|
96
108
|
}
|
|
@@ -108,6 +108,18 @@
|
|
|
108
108
|
}
|
|
109
109
|
],
|
|
110
110
|
"payload": [],
|
|
111
|
+
"selection": {
|
|
112
|
+
"definitions": [
|
|
113
|
+
{
|
|
114
|
+
"kind": "skill",
|
|
115
|
+
"slug": "remote-skill",
|
|
116
|
+
"output_path": "skills/remote-skill/SKILL.md",
|
|
117
|
+
"skills": []
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"edges": [],
|
|
121
|
+
"uses_providers": []
|
|
122
|
+
},
|
|
111
123
|
"diagnostics": {}
|
|
112
124
|
}
|
|
113
125
|
}
|
|
@@ -222,6 +234,18 @@
|
|
|
222
234
|
}
|
|
223
235
|
],
|
|
224
236
|
"payload": [],
|
|
237
|
+
"selection": {
|
|
238
|
+
"definitions": [
|
|
239
|
+
{
|
|
240
|
+
"kind": "skill",
|
|
241
|
+
"slug": "deep",
|
|
242
|
+
"output_path": "skills/deep/SKILL.md",
|
|
243
|
+
"skills": []
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"edges": [],
|
|
247
|
+
"uses_providers": []
|
|
248
|
+
},
|
|
225
249
|
"diagnostics": {}
|
|
226
250
|
}
|
|
227
251
|
}
|