@meridian-flow/mars-schema 0.23.4 → 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"op":"select-version","tags":[],"constraints":[["mars.toml","dev"],["a","dev"]]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"op":"parse-tag","input":"0.5.2-rc.1"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
null
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"op":"parse-tag","input":"vv1.0.0"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
null
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"op":"parse-tag","input":"nightly-2024"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
null
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"op":"parse-tag","input":"v1.2"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"op":"parse-tag","input":"v1.2.3"}
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
"ask_user": {
|
|
624
624
|
"kind": "tools",
|
|
625
625
|
"tools": [
|
|
626
|
-
"
|
|
626
|
+
"ask_user"
|
|
627
627
|
]
|
|
628
628
|
},
|
|
629
629
|
"edit": {
|
|
@@ -633,10 +633,7 @@
|
|
|
633
633
|
]
|
|
634
634
|
},
|
|
635
635
|
"glob": {
|
|
636
|
-
"kind": "
|
|
637
|
-
"tools": [
|
|
638
|
-
"glob"
|
|
639
|
-
]
|
|
636
|
+
"kind": "absent"
|
|
640
637
|
},
|
|
641
638
|
"grep": {
|
|
642
639
|
"kind": "tools",
|
package/index.d.ts
CHANGED
|
@@ -10,6 +10,33 @@ export type JsonValue =
|
|
|
10
10
|
| JsonValue[]
|
|
11
11
|
| { [key: string]: JsonValue };
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* What every export throws: an `Error` whose `code` says which failure, so a caller maps codes
|
|
15
|
+
* and never reads messages. `input.invalid` is an argument that is not the shape the export
|
|
16
|
+
* documents (a missing, misspelled or unknown key included). The rest come from the crate's
|
|
17
|
+
* error types: `read.unrecognized-path`, `tree.invalid-path`, `edit.*`
|
|
18
|
+
* (`integer-too-large`, `duplicate-key`, `key-too-long`), `input.lone-surrogate`,
|
|
19
|
+
* `filter.inconsistent`, and `VersionErrorCode`.
|
|
20
|
+
*/
|
|
21
|
+
export interface MarsSchemaError extends Error {
|
|
22
|
+
code: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Codes of the version exports: `selectVersion`, `satisfies` and `satisfiesRequirement`. */
|
|
26
|
+
export type VersionErrorCode =
|
|
27
|
+
/** No tag meets every constraint; the message names each requirement and the versions there are. */
|
|
28
|
+
| "version.no-satisfying"
|
|
29
|
+
/** Two different branch or commit pins. */
|
|
30
|
+
| "version.pins-differ"
|
|
31
|
+
/** A branch or commit pin beside a semver range. */
|
|
32
|
+
| "version.pin-beside-range"
|
|
33
|
+
/** A `version` argument that is not semver. */
|
|
34
|
+
| "version.invalid-version"
|
|
35
|
+
/** A `requires-mars` that is not a requirement. */
|
|
36
|
+
| "version.invalid-requirement"
|
|
37
|
+
/** A `locked` entry that is not a version tag. */
|
|
38
|
+
| "version.invalid-tag";
|
|
39
|
+
|
|
13
40
|
/** Build-time version of the schema crate. */
|
|
14
41
|
export function version(): string;
|
|
15
42
|
|
|
@@ -119,8 +146,41 @@ export interface ManifestFields {
|
|
|
119
146
|
"requires-meridian"?: string;
|
|
120
147
|
}
|
|
121
148
|
|
|
149
|
+
/**
|
|
150
|
+
* A `[dependencies]` or `[local-dependencies]` entry, in the file's spellings. Exactly one of
|
|
151
|
+
* `url` and `path` is set; a bare `host/path` URL comes back as `https://host/path`. A key Mars
|
|
152
|
+
* does not read is passed through, so a caller can warn.
|
|
153
|
+
*/
|
|
154
|
+
export interface DependencyEntry {
|
|
155
|
+
url?: string;
|
|
156
|
+
path?: string;
|
|
157
|
+
subpath?: string;
|
|
158
|
+
version?: string;
|
|
159
|
+
dialect?: Dialect;
|
|
160
|
+
plugin?: string;
|
|
161
|
+
agents?: string[];
|
|
162
|
+
skills?: string[];
|
|
163
|
+
exclude?: string[];
|
|
164
|
+
rename?: { [from: string]: string };
|
|
165
|
+
only_skills?: boolean;
|
|
166
|
+
only_agents?: boolean;
|
|
167
|
+
[unknown: string]: JsonValue | undefined;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The reading of `mars.toml`: the `[package]` table as any definition reading, and the
|
|
172
|
+
* dependencies the package declares in declaration order, one `selectVersion` call per entry. A
|
|
173
|
+
* table is omitted when empty, and both when `fields` is `null`. An entry that breaks a rule is
|
|
174
|
+
* left out with a `dependency.*` diagnostic (an error in `[dependencies]`, a warning in
|
|
175
|
+
* `[local-dependencies]`, which a dependent never installs from).
|
|
176
|
+
*/
|
|
177
|
+
export interface ManifestRead extends DefinitionRead<ManifestFields> {
|
|
178
|
+
dependencies?: { [name: string]: DependencyEntry };
|
|
179
|
+
"local-dependencies"?: { [name: string]: DependencyEntry };
|
|
180
|
+
}
|
|
181
|
+
|
|
122
182
|
export type Reading =
|
|
123
|
-
|
|
|
183
|
+
| ManifestRead
|
|
124
184
|
| DefinitionRead<AgentFields>
|
|
125
185
|
| DefinitionRead<SkillFields>;
|
|
126
186
|
|
|
@@ -128,7 +188,7 @@ export type Reading =
|
|
|
128
188
|
* Read one file; the package-relative `path` picks the reader. Any path other than
|
|
129
189
|
* `mars.toml`, `agents/<slug>.md` or `skills/<slug>/SKILL.md` throws.
|
|
130
190
|
*/
|
|
131
|
-
export function read(path: "mars.toml", text: string):
|
|
191
|
+
export function read(path: "mars.toml", text: string): ManifestRead;
|
|
132
192
|
export function read(path: `agents/${string}.md`, text: string): DefinitionRead<AgentFields>;
|
|
133
193
|
export function read(path: `skills/${string}/SKILL.md`, text: string): DefinitionRead<SkillFields>;
|
|
134
194
|
export function read(path: string, text: string): Reading;
|
|
@@ -220,7 +280,7 @@ export interface PreparedManifest {
|
|
|
220
280
|
source_path?: string;
|
|
221
281
|
output_path: string;
|
|
222
282
|
normalized_bytes: Uint8Array;
|
|
223
|
-
reading:
|
|
283
|
+
reading: ManifestRead;
|
|
224
284
|
change: ChangeRecord;
|
|
225
285
|
}
|
|
226
286
|
|
|
@@ -236,11 +296,28 @@ export type PreparedDefinition = {
|
|
|
236
296
|
| { kind: "skill"; reading: DefinitionRead<SkillFields> }
|
|
237
297
|
);
|
|
238
298
|
|
|
299
|
+
/**
|
|
300
|
+
* An MCP server translated from a foreign plugin, written as `mcp/<name>/mcp.toml`. The staged
|
|
301
|
+
* `mcp/<name>/mcp.toml`, not this list, is what `mars sync` installs from.
|
|
302
|
+
*/
|
|
303
|
+
export interface PreparedMcpServer {
|
|
304
|
+
name: string;
|
|
305
|
+
/** The file that declared it (`.mcp.json`, `.claude-plugin/plugin.json`). */
|
|
306
|
+
source_path: string;
|
|
307
|
+
output_path: string;
|
|
308
|
+
/** The rendered `mcp.toml`. */
|
|
309
|
+
normalized_bytes: Uint8Array;
|
|
310
|
+
}
|
|
311
|
+
|
|
239
312
|
export interface Prepared {
|
|
240
313
|
classification: Classification;
|
|
241
314
|
manifest?: PreparedManifest;
|
|
242
315
|
definitions: PreparedDefinition[];
|
|
316
|
+
/** A Claude plugin's `.mcp.json` and `plugin.json` servers, translated (`mcp.*` diagnostics report the rest). Absent when empty. */
|
|
317
|
+
mcp_servers?: PreparedMcpServer[];
|
|
243
318
|
payload: { source_path: string; output_path: string }[];
|
|
319
|
+
/** What `selectItems` reads of this package; pass this result to it whole. */
|
|
320
|
+
selection: SelectionFacts;
|
|
244
321
|
/**
|
|
245
322
|
* Package-level findings by source path: what discovery and translation met and could not
|
|
246
323
|
* convert (`skill.*`, `agent.*`, `import.*`). A file's own reading diagnostics are on its
|
|
@@ -422,3 +499,139 @@ export function normalize(input: {
|
|
|
422
499
|
hint?: Hint;
|
|
423
500
|
selection?: Selection;
|
|
424
501
|
}): Normalized;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Whether `version` meets a dependency entry's `version` text: `null` or `"latest"` is any
|
|
505
|
+
* version, `v2` is `>=2.0.0, <3.0.0`, a bare `0.20` is `^0.20`, and a branch or commit pin is
|
|
506
|
+
* met by none. `version` that is not semver throws.
|
|
507
|
+
*/
|
|
508
|
+
export function satisfies(constraint: string | null, version: string): boolean;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Whether `version` meets a package's `requires-mars` / `requires-meridian`, where a bare
|
|
512
|
+
* `0.20` means `>=0.20.0` (not the caret range `satisfies` reads). A requirement that is not
|
|
513
|
+
* one, or a `version` that is not semver, throws.
|
|
514
|
+
*/
|
|
515
|
+
export function satisfiesRequirement(requirement: string, version: string): boolean;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Which ref a package ends at, from every constraint on it and the repository's tags. Settles
|
|
519
|
+
* first (one branch or commit pin wins; two pins, or a pin beside a semver range, throw), then
|
|
520
|
+
* keeps `locked` (`{ locked: true }`) when it meets every range, even if `available` no longer
|
|
521
|
+
* lists its tag (only an upgrade moves a lock), else chooses the newest tag in `available` that
|
|
522
|
+
* meets them. A `latest` (or `null`) constraint allows any tag and makes the newest win over
|
|
523
|
+
* `locked`. A tag that is not a version (`nightly`) is ignored, and with none left the result is
|
|
524
|
+
* `untagged`: the default branch. Constraints are `[requester, version | null]` as the manifests spell them
|
|
525
|
+
* (`v2`, `^1.2`, `>=0.5`, a branch, `latest`); see `satisfies` for the grammar.
|
|
526
|
+
*/
|
|
527
|
+
export function selectVersion(input: {
|
|
528
|
+
available: string[];
|
|
529
|
+
constraints: [requester: string, version: string | null][];
|
|
530
|
+
locked?: string;
|
|
531
|
+
}): { pin: string } | { locked: true } | { tag: string } | { untagged: true };
|
|
532
|
+
|
|
533
|
+
/** An entry's filter, as `requests` take it. `rename` is not here: selection ignores it, so it is refused. */
|
|
534
|
+
export interface FilterConfig {
|
|
535
|
+
agents?: string[];
|
|
536
|
+
skills?: string[];
|
|
537
|
+
exclude?: string[];
|
|
538
|
+
only_skills?: boolean;
|
|
539
|
+
only_agents?: boolean;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/** `selectItems` decides only agents, skills and bootstrap documents; the caller selects hooks and MCP servers, and an `mcp-server` in `extra_items` throws. */
|
|
543
|
+
export type ItemKind = "agent" | "skill" | "hook" | "mcp-server" | "bootstrap-doc";
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* An item `prepare` does not read (a bootstrap document, a hook), found by the caller.
|
|
547
|
+
*/
|
|
548
|
+
export interface ExtraItem {
|
|
549
|
+
kind: ItemKind;
|
|
550
|
+
slug: string;
|
|
551
|
+
/** Package-relative, `/`-separated. */
|
|
552
|
+
path: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/** The part of a prepared package that selection reads (`Prepared.selection`). */
|
|
556
|
+
export interface SelectionFacts {
|
|
557
|
+
definitions: { kind: "agent" | "skill"; slug: string; output_path: string; skills: string[] }[];
|
|
558
|
+
/** The manifest's `[dependencies]` entries in declaration order, never `[local-dependencies]`. */
|
|
559
|
+
edges: { name: string; filter: SelectionFilter }[];
|
|
560
|
+
uses_providers: string[];
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export type SelectionFilter =
|
|
564
|
+
| "all"
|
|
565
|
+
| { include: { agents: string[]; skills: string[] } }
|
|
566
|
+
| { exclude: string[] }
|
|
567
|
+
| "only-skills"
|
|
568
|
+
| "only-agents";
|
|
569
|
+
|
|
570
|
+
export interface SelectionPackage {
|
|
571
|
+
/** The result of `prepare` for this package, as it returned it. */
|
|
572
|
+
prepared: Prepared;
|
|
573
|
+
extra_items?: ExtraItem[];
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export type Requester =
|
|
577
|
+
/** An entry of the consumer or of `root`, an item of `root`, or one of the root's Agents' skill refs. */
|
|
578
|
+
| { by: "consumer" }
|
|
579
|
+
/** An unfiltered entry of this dependency's manifest, reached through unfiltered entries only. */
|
|
580
|
+
| { by: "package"; package: string }
|
|
581
|
+
/** A skill ref of this Agent. */
|
|
582
|
+
| { by: "item"; package: string; kind: ItemKind; slug: string };
|
|
583
|
+
|
|
584
|
+
export interface SelectedItem {
|
|
585
|
+
/** The package it is from; `null` for an item of `root`. */
|
|
586
|
+
package: string | null;
|
|
587
|
+
kind: ItemKind;
|
|
588
|
+
slug: string;
|
|
589
|
+
/** An Agent's file, a skill's directory (`.` for a flat skill), a document's or hook's directory. */
|
|
590
|
+
path: string;
|
|
591
|
+
required_by: Requester[];
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/** A skill ref that no package ships. */
|
|
595
|
+
export interface MissingSkill {
|
|
596
|
+
skill: string;
|
|
597
|
+
/** The Agent that names it. */
|
|
598
|
+
agent: string;
|
|
599
|
+
/** Its package; `null` for the root. */
|
|
600
|
+
package: string | null;
|
|
601
|
+
/** The packages looked in, sorted; the root is not among them. */
|
|
602
|
+
searched: string[];
|
|
603
|
+
/** For a name shaped like a provider's, when no package declares that provider. */
|
|
604
|
+
hint: string | null;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export interface SelectionResult {
|
|
608
|
+
/** In registry order (below), the root first, then each package's own item order. */
|
|
609
|
+
items: SelectedItem[];
|
|
610
|
+
missing_skills: MissingSkill[];
|
|
611
|
+
/** `selection.duplicate-slug`: two packages (the root counts) install the same Agent or skill slug. */
|
|
612
|
+
diagnostics: Diagnostic[];
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* The Agents, skills and bootstrap documents an install of `root` and its dependencies
|
|
617
|
+
* yields, and why each is selected. Hooks and MCP servers are selected by `mars sync` (visibility
|
|
618
|
+
* and depth), so Flow and sync are guaranteed to agree only on these three kinds. `{ root, packages }` is the whole call for an
|
|
619
|
+
* imported package: `root` is selected whole, and its manifest entries (`[dependencies]`, with
|
|
620
|
+
* their filters and `exclude`) are applied as the consumer's own requests, so a filtered
|
|
621
|
+
* dependency contributes what its filter names plus the skills the selected Agents name.
|
|
622
|
+
* `requests` holds further consumer entries, in order, for a project whose configuration is not
|
|
623
|
+
* in `root`'s manifest.
|
|
624
|
+
*
|
|
625
|
+
* Pass each package's `prepare` result whole (selection reads `selection`). `packages` holds the
|
|
626
|
+
* dependencies by name in any order; the registry order that skill refs resolve in is computed
|
|
627
|
+
* here (depth first from `root`, then each request, descending manifest entries in declaration
|
|
628
|
+
* order). A package nothing reaches is never selected from. Installed names (renames, collision
|
|
629
|
+
* suffixes) are the caller's.
|
|
630
|
+
*
|
|
631
|
+
* Unknown keys throw `input.invalid`, at the top level, in a package and in a request.
|
|
632
|
+
*/
|
|
633
|
+
export function selectItems(input: {
|
|
634
|
+
requests?: ({ name: string } & FilterConfig)[];
|
|
635
|
+
packages: { [name: string]: SelectionPackage };
|
|
636
|
+
root?: SelectionPackage;
|
|
637
|
+
}): SelectionResult;
|
|
@@ -10,14 +10,14 @@ export function emitValue(value: any, indent: number): string;
|
|
|
10
10
|
* What a repository is: `{tree: Map<path, Uint8Array>, hint?}` to an `Inspection`. Reads
|
|
11
11
|
* manifests, listings and definitions, never payload bytes.
|
|
12
12
|
*/
|
|
13
|
-
export function inspect(
|
|
13
|
+
export function inspect(argument: any): any;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Schema v1 packages for a selection: `{tree, source?, hint?, selection?}` to a `Normalized`.
|
|
17
17
|
* A remote marketplace plugin is fetched by the caller and normalized as its own tree, with
|
|
18
18
|
* `hint.plugin` set to the plugin's entry.
|
|
19
19
|
*/
|
|
20
|
-
export function normalize(
|
|
20
|
+
export function normalize(argument: any): any;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Prepare one root from
|
|
@@ -25,7 +25,7 @@ export function normalize(input: any): any;
|
|
|
25
25
|
* its own right: `normalize` is this plus a selection, a generated manifest and provenance. An
|
|
26
26
|
* unrecognized `context` or `declaredDialect` throws.
|
|
27
27
|
*/
|
|
28
|
-
export function prepare(
|
|
28
|
+
export function prepare(argument: any): any;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Read one schema file. `path` is package-relative and picks the reader: `mars.toml`,
|
|
@@ -38,6 +38,39 @@ export function read(path: string, text: string): any;
|
|
|
38
38
|
*/
|
|
39
39
|
export function rewriteBlock(frontmatter: any): string;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Whether `version` meets a dependency entry's `version` text (`null` or `"latest"` is any
|
|
43
|
+
* version; a branch or commit pin is met by none). A `version` that is not semver throws.
|
|
44
|
+
*/
|
|
45
|
+
export function satisfies(constraint: string | null | undefined, version: string): boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether `version` meets a package's `requires-mars` / `requires-meridian`. A requirement that
|
|
49
|
+
* is not one, or a `version` that is not semver, throws.
|
|
50
|
+
*/
|
|
51
|
+
export function satisfiesRequirement(requirement: string, version: string): boolean;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The items a graph installs: `{requests, packages, root?}` to a `SelectionResult`. `packages` is
|
|
55
|
+
* `{name: {prepared, extra_items?}}` with each `prepared` the result of `prepare` as it
|
|
56
|
+
* returned it (selection reads its `selection`). `root` is the package being selected for,
|
|
57
|
+
* shaped the same: it is selected whole and its manifest entries are the consumer's requests, so
|
|
58
|
+
* `{root, packages}` is the whole call and `requests` is for entries the root does not hold (a
|
|
59
|
+
* project's consumer configuration). A request is `{name, agents?, skills?, exclude?,
|
|
60
|
+
* only_skills?, only_agents?}`; any other key, `rename` included, throws.
|
|
61
|
+
*/
|
|
62
|
+
export function selectItems(argument: any): any;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Which ref a package ends at: `{available, constraints, locked?}` to
|
|
66
|
+
* `{pin} | {locked: true} | {tag} | {untagged: true}`. `available` is the repository's tags; one
|
|
67
|
+
* that is not a version (`nightly`) is ignored. `constraints` is every `[requester, version |
|
|
68
|
+
* null]` on the package, as the manifests spell them; `locked` is kept (`{locked: true}`, even
|
|
69
|
+
* if `available` no longer lists it) when it meets every range and no constraint is `latest`,
|
|
70
|
+
* else the newest allowed version is chosen. A refusal throws with a `version.*` code.
|
|
71
|
+
*/
|
|
72
|
+
export function selectVersion(argument: any): any;
|
|
73
|
+
|
|
41
74
|
/**
|
|
42
75
|
* Returns the Mars schema package version.
|
|
43
76
|
*/
|
package/node/mars_schema_wasm.js
CHANGED
|
@@ -35,13 +35,13 @@ exports.emitValue = emitValue;
|
|
|
35
35
|
/**
|
|
36
36
|
* What a repository is: `{tree: Map<path, Uint8Array>, hint?}` to an `Inspection`. Reads
|
|
37
37
|
* manifests, listings and definitions, never payload bytes.
|
|
38
|
-
* @param {any}
|
|
38
|
+
* @param {any} argument
|
|
39
39
|
* @returns {any}
|
|
40
40
|
*/
|
|
41
|
-
function inspect(
|
|
41
|
+
function inspect(argument) {
|
|
42
42
|
try {
|
|
43
43
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
44
|
-
wasm.inspect(retptr, addHeapObject(
|
|
44
|
+
wasm.inspect(retptr, addHeapObject(argument));
|
|
45
45
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
46
46
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
47
47
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -59,13 +59,13 @@ exports.inspect = inspect;
|
|
|
59
59
|
* Schema v1 packages for a selection: `{tree, source?, hint?, selection?}` to a `Normalized`.
|
|
60
60
|
* A remote marketplace plugin is fetched by the caller and normalized as its own tree, with
|
|
61
61
|
* `hint.plugin` set to the plugin's entry.
|
|
62
|
-
* @param {any}
|
|
62
|
+
* @param {any} argument
|
|
63
63
|
* @returns {any}
|
|
64
64
|
*/
|
|
65
|
-
function normalize(
|
|
65
|
+
function normalize(argument) {
|
|
66
66
|
try {
|
|
67
67
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
68
|
-
wasm.normalize(retptr, addHeapObject(
|
|
68
|
+
wasm.normalize(retptr, addHeapObject(argument));
|
|
69
69
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
70
70
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
71
71
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -84,13 +84,13 @@ exports.normalize = normalize;
|
|
|
84
84
|
* `{files: Map<path, Uint8Array>, context?, declaredDialect?, migrate?}`. A supported export in
|
|
85
85
|
* its own right: `normalize` is this plus a selection, a generated manifest and provenance. An
|
|
86
86
|
* unrecognized `context` or `declaredDialect` throws.
|
|
87
|
-
* @param {any}
|
|
87
|
+
* @param {any} argument
|
|
88
88
|
* @returns {any}
|
|
89
89
|
*/
|
|
90
|
-
function prepare(
|
|
90
|
+
function prepare(argument) {
|
|
91
91
|
try {
|
|
92
92
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
93
|
-
wasm.prepare(retptr, addHeapObject(
|
|
93
|
+
wasm.prepare(retptr, addHeapObject(argument));
|
|
94
94
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
95
95
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
96
96
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -163,6 +163,117 @@ function rewriteBlock(frontmatter) {
|
|
|
163
163
|
}
|
|
164
164
|
exports.rewriteBlock = rewriteBlock;
|
|
165
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Whether `version` meets a dependency entry's `version` text (`null` or `"latest"` is any
|
|
168
|
+
* version; a branch or commit pin is met by none). A `version` that is not semver throws.
|
|
169
|
+
* @param {string | null | undefined} constraint
|
|
170
|
+
* @param {string} version
|
|
171
|
+
* @returns {boolean}
|
|
172
|
+
*/
|
|
173
|
+
function satisfies(constraint, version) {
|
|
174
|
+
try {
|
|
175
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
176
|
+
var ptr0 = isLikeNone(constraint) ? 0 : passStringToWasm0(constraint, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
177
|
+
var len0 = WASM_VECTOR_LEN;
|
|
178
|
+
const ptr1 = passStringToWasm0(version, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
179
|
+
const len1 = WASM_VECTOR_LEN;
|
|
180
|
+
wasm.satisfies(retptr, ptr0, len0, ptr1, len1);
|
|
181
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
182
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
183
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
184
|
+
if (r2) {
|
|
185
|
+
throw takeObject(r1);
|
|
186
|
+
}
|
|
187
|
+
return r0 !== 0;
|
|
188
|
+
} finally {
|
|
189
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
exports.satisfies = satisfies;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Whether `version` meets a package's `requires-mars` / `requires-meridian`. A requirement that
|
|
196
|
+
* is not one, or a `version` that is not semver, throws.
|
|
197
|
+
* @param {string} requirement
|
|
198
|
+
* @param {string} version
|
|
199
|
+
* @returns {boolean}
|
|
200
|
+
*/
|
|
201
|
+
function satisfiesRequirement(requirement, version) {
|
|
202
|
+
try {
|
|
203
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
204
|
+
const ptr0 = passStringToWasm0(requirement, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
205
|
+
const len0 = WASM_VECTOR_LEN;
|
|
206
|
+
const ptr1 = passStringToWasm0(version, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
207
|
+
const len1 = WASM_VECTOR_LEN;
|
|
208
|
+
wasm.satisfiesRequirement(retptr, ptr0, len0, ptr1, len1);
|
|
209
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
210
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
211
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
212
|
+
if (r2) {
|
|
213
|
+
throw takeObject(r1);
|
|
214
|
+
}
|
|
215
|
+
return r0 !== 0;
|
|
216
|
+
} finally {
|
|
217
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
exports.satisfiesRequirement = satisfiesRequirement;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The items a graph installs: `{requests, packages, root?}` to a `SelectionResult`. `packages` is
|
|
224
|
+
* `{name: {prepared, extra_items?}}` with each `prepared` the result of `prepare` as it
|
|
225
|
+
* returned it (selection reads its `selection`). `root` is the package being selected for,
|
|
226
|
+
* shaped the same: it is selected whole and its manifest entries are the consumer's requests, so
|
|
227
|
+
* `{root, packages}` is the whole call and `requests` is for entries the root does not hold (a
|
|
228
|
+
* project's consumer configuration). A request is `{name, agents?, skills?, exclude?,
|
|
229
|
+
* only_skills?, only_agents?}`; any other key, `rename` included, throws.
|
|
230
|
+
* @param {any} argument
|
|
231
|
+
* @returns {any}
|
|
232
|
+
*/
|
|
233
|
+
function selectItems(argument) {
|
|
234
|
+
try {
|
|
235
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
236
|
+
wasm.selectItems(retptr, addHeapObject(argument));
|
|
237
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
238
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
239
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
240
|
+
if (r2) {
|
|
241
|
+
throw takeObject(r1);
|
|
242
|
+
}
|
|
243
|
+
return takeObject(r0);
|
|
244
|
+
} finally {
|
|
245
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.selectItems = selectItems;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Which ref a package ends at: `{available, constraints, locked?}` to
|
|
252
|
+
* `{pin} | {locked: true} | {tag} | {untagged: true}`. `available` is the repository's tags; one
|
|
253
|
+
* that is not a version (`nightly`) is ignored. `constraints` is every `[requester, version |
|
|
254
|
+
* null]` on the package, as the manifests spell them; `locked` is kept (`{locked: true}`, even
|
|
255
|
+
* if `available` no longer lists it) when it meets every range and no constraint is `latest`,
|
|
256
|
+
* else the newest allowed version is chosen. A refusal throws with a `version.*` code.
|
|
257
|
+
* @param {any} argument
|
|
258
|
+
* @returns {any}
|
|
259
|
+
*/
|
|
260
|
+
function selectVersion(argument) {
|
|
261
|
+
try {
|
|
262
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
263
|
+
wasm.selectVersion(retptr, addHeapObject(argument));
|
|
264
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
265
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
266
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
267
|
+
if (r2) {
|
|
268
|
+
throw takeObject(r1);
|
|
269
|
+
}
|
|
270
|
+
return takeObject(r0);
|
|
271
|
+
} finally {
|
|
272
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
exports.selectVersion = selectVersion;
|
|
276
|
+
|
|
166
277
|
/**
|
|
167
278
|
* Returns the Mars schema package version.
|
|
168
279
|
* @returns {string}
|
|
@@ -398,6 +509,10 @@ function __wbg_get_imports() {
|
|
|
398
509
|
const ret = getObject(arg0).length;
|
|
399
510
|
return ret;
|
|
400
511
|
},
|
|
512
|
+
__wbg_new_50bb5ebeecef71a8: function(arg0, arg1) {
|
|
513
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
514
|
+
return addHeapObject(ret);
|
|
515
|
+
},
|
|
401
516
|
__wbg_new_578aeef4b6b94378: function(arg0) {
|
|
402
517
|
const ret = new Uint8Array(getObject(arg0));
|
|
403
518
|
return addHeapObject(ret);
|
|
@@ -432,6 +547,10 @@ function __wbg_get_imports() {
|
|
|
432
547
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
433
548
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
434
549
|
},
|
|
550
|
+
__wbg_set_6e30c9374c26414c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
551
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
552
|
+
return ret;
|
|
553
|
+
}, arguments); },
|
|
435
554
|
__wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
|
|
436
555
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
437
556
|
},
|
|
@@ -439,6 +558,10 @@ function __wbg_get_imports() {
|
|
|
439
558
|
const ret = getObject(arg0).value;
|
|
440
559
|
return addHeapObject(ret);
|
|
441
560
|
},
|
|
561
|
+
__wbg_values_6bb3b9a103c3a665: function(arg0) {
|
|
562
|
+
const ret = Object.values(getObject(arg0));
|
|
563
|
+
return addHeapObject(ret);
|
|
564
|
+
},
|
|
442
565
|
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
443
566
|
// Cast intrinsic for `F64 -> Externref`.
|
|
444
567
|
const ret = arg0;
|
|
Binary file
|
|
@@ -7,6 +7,10 @@ export const normalize: (a: number, b: number) => void;
|
|
|
7
7
|
export const prepare: (a: number, b: number) => void;
|
|
8
8
|
export const read: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9
9
|
export const rewriteBlock: (a: number, b: number) => void;
|
|
10
|
+
export const satisfies: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
11
|
+
export const satisfiesRequirement: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
12
|
+
export const selectItems: (a: number, b: number) => void;
|
|
13
|
+
export const selectVersion: (a: number, b: number) => void;
|
|
10
14
|
export const version: (a: number) => void;
|
|
11
15
|
export const vocabulary: (a: number) => void;
|
|
12
16
|
export const __wbindgen_export: (a: number, b: number) => number;
|