@meridian-flow/mars-schema 0.0.0-stage → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -2
- package/fixtures/emit/empty-list/expected.txt +1 -0
- package/fixtures/emit/empty-list/value.json +1 -0
- package/fixtures/emit/empty-map/expected.txt +1 -0
- package/fixtures/emit/empty-map/value.json +1 -0
- package/fixtures/emit/false/expected.txt +1 -0
- package/fixtures/emit/false/value.json +1 -0
- package/fixtures/emit/float/expected.txt +1 -0
- package/fixtures/emit/float/value.json +1 -0
- package/fixtures/emit/float-1e16/expected.txt +1 -0
- package/fixtures/emit/float-1e16/value.json +1 -0
- package/fixtures/emit/float-1e21/expected.txt +1 -0
- package/fixtures/emit/float-1e21/value.json +1 -0
- package/fixtures/emit/float-1e300/expected.txt +1 -0
- package/fixtures/emit/float-1e300/value.json +1 -0
- package/fixtures/emit/float-2pow53/expected.txt +1 -0
- package/fixtures/emit/float-2pow53/value.json +1 -0
- package/fixtures/emit/float-big-fraction/expected.txt +1 -0
- package/fixtures/emit/float-big-fraction/value.json +1 -0
- package/fixtures/emit/float-in-map/expected.txt +5 -0
- package/fixtures/emit/float-in-map/value.json +1 -0
- package/fixtures/emit/float-neg-1e300/expected.txt +1 -0
- package/fixtures/emit/float-neg-1e300/value.json +1 -0
- package/fixtures/emit/float-small/expected.txt +1 -0
- package/fixtures/emit/float-small/value.json +1 -0
- package/fixtures/emit/float-tiny/expected.txt +1 -0
- package/fixtures/emit/float-tiny/value.json +1 -0
- package/fixtures/emit/int-max-safe/expected.txt +1 -0
- package/fixtures/emit/int-max-safe/value.json +1 -0
- package/fixtures/emit/int-neg-max-safe/expected.txt +1 -0
- package/fixtures/emit/int-neg-max-safe/value.json +1 -0
- package/fixtures/emit/int-negative/expected.txt +1 -0
- package/fixtures/emit/int-negative/value.json +1 -0
- package/fixtures/emit/int-one/expected.txt +1 -0
- package/fixtures/emit/int-one/value.json +1 -0
- package/fixtures/emit/int-zero/expected.txt +1 -0
- package/fixtures/emit/int-zero/value.json +1 -0
- package/fixtures/emit/key-1000-chars/expected.txt +2 -0
- package/fixtures/emit/key-1000-chars/value.json +1 -0
- package/fixtures/emit/list-nested/expected.txt +10 -0
- package/fixtures/emit/list-nested/value.json +1 -0
- package/fixtures/emit/list-strings/expected.txt +5 -0
- package/fixtures/emit/list-strings/value.json +1 -0
- package/fixtures/emit/list-top-level-key/expected.txt +3 -0
- package/fixtures/emit/list-top-level-key/value.json +1 -0
- package/fixtures/emit/map-allowlist/expected.txt +3 -0
- package/fixtures/emit/map-allowlist/value.json +1 -0
- package/fixtures/emit/map-allowlist-flow-namespace/expected.txt +3 -0
- package/fixtures/emit/map-allowlist-flow-namespace/value.json +1 -0
- package/fixtures/emit/map-key-classes/expected.txt +30 -0
- package/fixtures/emit/map-key-classes/value.json +1 -0
- package/fixtures/emit/map-key-classes-top-level/expected.txt +30 -0
- package/fixtures/emit/map-key-classes-top-level/value.json +1 -0
- package/fixtures/emit/map-key-integer-like/expected.txt +4 -0
- package/fixtures/emit/map-key-integer-like/value.json +1 -0
- package/fixtures/emit/map-mixed-scalars/expected.txt +8 -0
- package/fixtures/emit/map-mixed-scalars/value.json +1 -0
- package/fixtures/emit/map-multiline-values/expected.txt +5 -0
- package/fixtures/emit/map-multiline-values/value.json +1 -0
- package/fixtures/emit/map-nested/expected.txt +8 -0
- package/fixtures/emit/map-nested/value.json +1 -0
- package/fixtures/emit/map-nested-order/expected.txt +8 -0
- package/fixtures/emit/map-nested-order/value.json +1 -0
- package/fixtures/emit/map-nested-top-level/expected.txt +8 -0
- package/fixtures/emit/map-nested-top-level/value.json +1 -0
- package/fixtures/emit/null/expected.txt +1 -0
- package/fixtures/emit/null/value.json +1 -0
- package/fixtures/emit/refuse-in-collection/expected-error.txt +1 -0
- package/fixtures/emit/refuse-in-collection/value.json +1 -0
- package/fixtures/emit/refuse-int-2pow53/expected-error.txt +1 -0
- package/fixtures/emit/refuse-int-2pow53/value.json +1 -0
- package/fixtures/emit/refuse-int-neg-too-large/expected-error.txt +1 -0
- package/fixtures/emit/refuse-int-neg-too-large/value.json +1 -0
- package/fixtures/emit/refuse-int-too-large/expected-error.txt +1 -0
- package/fixtures/emit/refuse-int-too-large/value.json +1 -0
- package/fixtures/emit/refuse-key-too-long/expected-error.txt +1 -0
- package/fixtures/emit/refuse-key-too-long/value.json +1 -0
- package/fixtures/emit/refuse-key-too-long-top-level/expected-error.txt +1 -0
- package/fixtures/emit/refuse-key-too-long-top-level/value.json +1 -0
- package/fixtures/emit/string-00/expected.txt +1 -0
- package/fixtures/emit/string-00/value.json +1 -0
- package/fixtures/emit/string-01/expected.txt +1 -0
- package/fixtures/emit/string-01/value.json +1 -0
- package/fixtures/emit/string-02/expected.txt +1 -0
- package/fixtures/emit/string-02/value.json +1 -0
- package/fixtures/emit/string-03/expected.txt +1 -0
- package/fixtures/emit/string-03/value.json +1 -0
- package/fixtures/emit/string-04/expected.txt +1 -0
- package/fixtures/emit/string-04/value.json +1 -0
- package/fixtures/emit/string-05/expected.txt +1 -0
- package/fixtures/emit/string-05/value.json +1 -0
- package/fixtures/emit/string-06/expected.txt +1 -0
- package/fixtures/emit/string-06/value.json +1 -0
- package/fixtures/emit/string-07/expected.txt +1 -0
- package/fixtures/emit/string-07/value.json +1 -0
- package/fixtures/emit/string-08/expected.txt +1 -0
- package/fixtures/emit/string-08/value.json +1 -0
- package/fixtures/emit/string-09/expected.txt +1 -0
- package/fixtures/emit/string-09/value.json +1 -0
- package/fixtures/emit/string-10/expected.txt +1 -0
- package/fixtures/emit/string-10/value.json +1 -0
- package/fixtures/emit/string-11/expected.txt +1 -0
- package/fixtures/emit/string-11/value.json +1 -0
- package/fixtures/emit/string-12/expected.txt +1 -0
- package/fixtures/emit/string-12/value.json +1 -0
- package/fixtures/emit/string-13/expected.txt +1 -0
- package/fixtures/emit/string-13/value.json +1 -0
- package/fixtures/emit/string-14/expected.txt +1 -0
- package/fixtures/emit/string-14/value.json +1 -0
- package/fixtures/emit/string-15/expected.txt +1 -0
- package/fixtures/emit/string-15/value.json +1 -0
- package/fixtures/emit/string-16/expected.txt +1 -0
- package/fixtures/emit/string-16/value.json +1 -0
- package/fixtures/emit/string-17/expected.txt +1 -0
- package/fixtures/emit/string-17/value.json +1 -0
- package/fixtures/emit/string-18/expected.txt +1 -0
- package/fixtures/emit/string-18/value.json +1 -0
- package/fixtures/emit/string-19/expected.txt +1 -0
- package/fixtures/emit/string-19/value.json +1 -0
- package/fixtures/emit/string-20/expected.txt +1 -0
- package/fixtures/emit/string-20/value.json +1 -0
- package/fixtures/emit/string-21/expected.txt +1 -0
- package/fixtures/emit/string-21/value.json +1 -0
- package/fixtures/emit/string-22/expected.txt +1 -0
- package/fixtures/emit/string-22/value.json +1 -0
- package/fixtures/emit/string-23/expected.txt +1 -0
- package/fixtures/emit/string-23/value.json +1 -0
- package/fixtures/emit/string-24/expected.txt +1 -0
- package/fixtures/emit/string-24/value.json +1 -0
- package/fixtures/emit/string-25/expected.txt +1 -0
- package/fixtures/emit/string-25/value.json +1 -0
- package/fixtures/emit/string-26/expected.txt +1 -0
- package/fixtures/emit/string-26/value.json +1 -0
- package/fixtures/emit/string-27/expected.txt +1 -0
- package/fixtures/emit/string-27/value.json +1 -0
- package/fixtures/emit/string-28/expected.txt +1 -0
- package/fixtures/emit/string-28/value.json +1 -0
- package/fixtures/emit/string-29/expected.txt +1 -0
- package/fixtures/emit/string-29/value.json +1 -0
- package/fixtures/emit/string-30/expected.txt +1 -0
- package/fixtures/emit/string-30/value.json +1 -0
- package/fixtures/emit/string-31/expected.txt +1 -0
- package/fixtures/emit/string-31/value.json +1 -0
- package/fixtures/emit/string-32/expected.txt +1 -0
- package/fixtures/emit/string-32/value.json +1 -0
- package/fixtures/emit/string-33/expected.txt +1 -0
- package/fixtures/emit/string-33/value.json +1 -0
- package/fixtures/emit/string-34/expected.txt +1 -0
- package/fixtures/emit/string-34/value.json +1 -0
- package/fixtures/emit/string-35/expected.txt +1 -0
- package/fixtures/emit/string-35/value.json +1 -0
- package/fixtures/emit/string-36/expected.txt +1 -0
- package/fixtures/emit/string-36/value.json +1 -0
- package/fixtures/emit/string-37/expected.txt +1 -0
- package/fixtures/emit/string-37/value.json +1 -0
- package/fixtures/emit/string-38/expected.txt +1 -0
- package/fixtures/emit/string-38/value.json +1 -0
- package/fixtures/emit/string-39/expected.txt +1 -0
- package/fixtures/emit/string-39/value.json +1 -0
- package/fixtures/emit/string-40/expected.txt +1 -0
- package/fixtures/emit/string-40/value.json +1 -0
- package/fixtures/emit/string-41/expected.txt +1 -0
- package/fixtures/emit/string-41/value.json +1 -0
- package/fixtures/emit/string-42/expected.txt +1 -0
- package/fixtures/emit/string-42/value.json +1 -0
- package/fixtures/emit/string-43/expected.txt +1 -0
- package/fixtures/emit/string-43/value.json +1 -0
- package/fixtures/emit/string-44/expected.txt +1 -0
- package/fixtures/emit/string-44/value.json +1 -0
- package/fixtures/emit/string-45/expected.txt +1 -0
- package/fixtures/emit/string-45/value.json +1 -0
- package/fixtures/emit/string-46/expected.txt +1 -0
- package/fixtures/emit/string-46/value.json +1 -0
- package/fixtures/emit/string-47/expected.txt +1 -0
- package/fixtures/emit/string-47/value.json +1 -0
- package/fixtures/emit/string-48/expected.txt +1 -0
- package/fixtures/emit/string-48/value.json +1 -0
- package/fixtures/emit/string-49/expected.txt +1 -0
- package/fixtures/emit/string-49/value.json +1 -0
- package/fixtures/emit/string-50/expected.txt +1 -0
- package/fixtures/emit/string-50/value.json +1 -0
- package/fixtures/emit/string-51/expected.txt +1 -0
- package/fixtures/emit/string-51/value.json +1 -0
- package/fixtures/emit/string-52/expected.txt +1 -0
- package/fixtures/emit/string-52/value.json +1 -0
- package/fixtures/emit/string-53/expected.txt +1 -0
- package/fixtures/emit/string-53/value.json +1 -0
- package/fixtures/emit/string-54/expected.txt +1 -0
- package/fixtures/emit/string-54/value.json +1 -0
- package/fixtures/emit/string-55/expected.txt +1 -0
- package/fixtures/emit/string-55/value.json +1 -0
- package/fixtures/emit/string-56/expected.txt +1 -0
- package/fixtures/emit/string-56/value.json +1 -0
- package/fixtures/emit/string-57/expected.txt +1 -0
- package/fixtures/emit/string-57/value.json +1 -0
- package/fixtures/emit/string-58/expected.txt +1 -0
- package/fixtures/emit/string-58/value.json +1 -0
- package/fixtures/emit/string-59/expected.txt +1 -0
- package/fixtures/emit/string-59/value.json +1 -0
- package/fixtures/emit/string-60/expected.txt +1 -0
- package/fixtures/emit/string-60/value.json +1 -0
- package/fixtures/emit/string-61/expected.txt +1 -0
- package/fixtures/emit/string-61/value.json +1 -0
- package/fixtures/emit/string-62/expected.txt +1 -0
- package/fixtures/emit/string-62/value.json +1 -0
- package/fixtures/emit/string-63/expected.txt +1 -0
- package/fixtures/emit/string-63/value.json +1 -0
- package/fixtures/emit/string-64/expected.txt +1 -0
- package/fixtures/emit/string-64/value.json +1 -0
- package/fixtures/emit/string-65/expected.txt +1 -0
- package/fixtures/emit/string-65/value.json +1 -0
- package/fixtures/emit/string-66/expected.txt +1 -0
- package/fixtures/emit/string-66/value.json +1 -0
- package/fixtures/emit/string-67/expected.txt +1 -0
- package/fixtures/emit/string-67/value.json +1 -0
- package/fixtures/emit/string-68/expected.txt +1 -0
- package/fixtures/emit/string-68/value.json +1 -0
- package/fixtures/emit/string-69/expected.txt +1 -0
- package/fixtures/emit/string-69/value.json +1 -0
- package/fixtures/emit/string-70/expected.txt +1 -0
- package/fixtures/emit/string-70/value.json +1 -0
- package/fixtures/emit/string-71/expected.txt +1 -0
- package/fixtures/emit/string-71/value.json +1 -0
- package/fixtures/emit/string-72/expected.txt +1 -0
- package/fixtures/emit/string-72/value.json +1 -0
- package/fixtures/emit/string-73/expected.txt +1 -0
- package/fixtures/emit/string-73/value.json +1 -0
- package/fixtures/emit/string-74/expected.txt +1 -0
- package/fixtures/emit/string-74/value.json +1 -0
- package/fixtures/emit/string-75/expected.txt +1 -0
- package/fixtures/emit/string-75/value.json +1 -0
- package/fixtures/emit/string-76/expected.txt +1 -0
- package/fixtures/emit/string-76/value.json +1 -0
- package/fixtures/emit/string-77/expected.txt +1 -0
- package/fixtures/emit/string-77/value.json +1 -0
- package/fixtures/emit/string-78/expected.txt +1 -0
- package/fixtures/emit/string-78/value.json +1 -0
- package/fixtures/emit/string-79/expected.txt +1 -0
- package/fixtures/emit/string-79/value.json +1 -0
- package/fixtures/emit/string-deep/expected.txt +1 -0
- package/fixtures/emit/string-deep/value.json +1 -0
- package/fixtures/emit/string-top-level-key/expected.txt +1 -0
- package/fixtures/emit/string-top-level-key/value.json +1 -0
- package/fixtures/emit/true/expected.txt +1 -0
- package/fixtures/emit/true/value.json +1 -0
- package/fixtures/normalize/agent-skills-standard/expected/package/mars.toml +3 -0
- package/fixtures/normalize/agent-skills-standard/expected/package/skills/notes/SKILL.md +5 -0
- package/fixtures/normalize/agent-skills-standard/expected/package/skills/pdf/SKILL.md +9 -0
- package/fixtures/normalize/agent-skills-standard/input/skills/notes/SKILL.md +5 -0
- package/fixtures/normalize/agent-skills-standard/input/skills/pdf/SKILL.md +9 -0
- package/fixtures/normalize/agent-skills-standard/input/skills/pdf/agents/openai.yaml +2 -0
- package/fixtures/normalize/agent-skills-standard/inspection.json +40 -0
- package/fixtures/normalize/agent-skills-standard/normalized.json +142 -0
- package/fixtures/normalize/agent-translation/expected/package/agents/denies-only.md +7 -0
- package/fixtures/normalize/agent-translation/expected/package/agents/everything.md +24 -0
- package/fixtures/normalize/agent-translation/expected/package/agents/list.md +10 -0
- package/fixtures/normalize/agent-translation/expected/package/agents/spaced.md +9 -0
- package/fixtures/normalize/agent-translation/expected/package/agents/untouched.md +6 -0
- package/fixtures/normalize/agent-translation/expected/package/mars.toml +3 -0
- package/fixtures/normalize/agent-translation/input/agents/denies-only.md +6 -0
- package/fixtures/normalize/agent-translation/input/agents/everything.md +17 -0
- package/fixtures/normalize/agent-translation/input/agents/list.md +9 -0
- package/fixtures/normalize/agent-translation/input/agents/spaced.md +7 -0
- package/fixtures/normalize/agent-translation/input/agents/untouched.md +6 -0
- package/fixtures/normalize/agent-translation/inspection.json +49 -0
- package/fixtures/normalize/agent-translation/normalized.json +486 -0
- package/fixtures/normalize/anthropics-skills/expected/document-skills/mars.toml +4 -0
- package/fixtures/normalize/anthropics-skills/expected/document-skills/skills/pdf/SKILL.md +6 -0
- package/fixtures/normalize/anthropics-skills/expected/document-skills/skills/xlsx/SKILL.md +6 -0
- package/fixtures/normalize/anthropics-skills/expected/example-skills/mars.toml +4 -0
- package/fixtures/normalize/anthropics-skills/expected/example-skills/skills/skill-creator/SKILL.md +5 -0
- package/fixtures/normalize/anthropics-skills/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/anthropics-skills/input/skills/pdf/SKILL.md +6 -0
- package/fixtures/normalize/anthropics-skills/input/skills/pdf/scripts/extract.py +1 -0
- package/fixtures/normalize/anthropics-skills/input/skills/skill-creator/SKILL.md +5 -0
- package/fixtures/normalize/anthropics-skills/input/skills/skill-creator/agents/analyzer.md +1 -0
- package/fixtures/normalize/anthropics-skills/input/skills/skill-creator/references/schema.md +1 -0
- package/fixtures/normalize/anthropics-skills/input/skills/xlsx/SKILL.md +6 -0
- package/fixtures/normalize/anthropics-skills/input/template/SKILL.md +5 -0
- package/fixtures/normalize/anthropics-skills/inspection.json +77 -0
- package/fixtures/normalize/anthropics-skills/normalized.json +266 -0
- package/fixtures/normalize/anthropics-skills/request.json +5 -0
- package/fixtures/normalize/catalog-of-built-plugin/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/catalog-of-built-plugin/input/plugin/.mars-plugin.json +1 -0
- package/fixtures/normalize/catalog-of-built-plugin/input/plugin/claude/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/catalog-of-built-plugin/input/plugin/claude/skills/authored/SKILL.md +5 -0
- package/fixtures/normalize/catalog-of-built-plugin/inspection.json +21 -0
- package/fixtures/normalize/catalog-of-built-plugin/normalized.json +14 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/agents/helper.md +9 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/agents/plan.md +5 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/mars.toml +5 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/skills/plan/SKILL.md +5 -0
- package/fixtures/normalize/claude-plugin-default/expected/toolbox/skills/review/SKILL.md +6 -0
- package/fixtures/normalize/claude-plugin-default/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/claude-plugin-default/input/.mcp.json +1 -0
- package/fixtures/normalize/claude-plugin-default/input/README.md +1 -0
- package/fixtures/normalize/claude-plugin-default/input/agents/helper.md +7 -0
- package/fixtures/normalize/claude-plugin-default/input/agents/plan.md +5 -0
- package/fixtures/normalize/claude-plugin-default/input/commands/deploy.md +4 -0
- package/fixtures/normalize/claude-plugin-default/input/hooks/hooks.json +1 -0
- package/fixtures/normalize/claude-plugin-default/input/skills/plan/SKILL.md +5 -0
- package/fixtures/normalize/claude-plugin-default/input/skills/review/SKILL.md +6 -0
- package/fixtures/normalize/claude-plugin-default/input/skills/review/checklist.md +1 -0
- package/fixtures/normalize/claude-plugin-default/inspection.json +54 -0
- package/fixtures/normalize/claude-plugin-default/normalized.json +289 -0
- package/fixtures/normalize/claude-plugin-default/request.json +8 -0
- package/fixtures/normalize/declared-claude-over-codex-container/expected/package/mars.toml +3 -0
- package/fixtures/normalize/declared-claude-over-codex-container/expected/package/skills/visible/SKILL.md +5 -0
- package/fixtures/normalize/declared-claude-over-codex-container/input/.codex/skills/hidden/SKILL.md +5 -0
- package/fixtures/normalize/declared-claude-over-codex-container/input/skills/visible/SKILL.md +5 -0
- package/fixtures/normalize/declared-claude-over-codex-container/inspection.json +30 -0
- package/fixtures/normalize/declared-claude-over-codex-container/normalized.json +88 -0
- package/fixtures/normalize/declared-claude-over-codex-container/request.json +5 -0
- package/fixtures/normalize/declared-codex-convention/expected/package/mars.toml +3 -0
- package/fixtures/normalize/declared-codex-convention/expected/package/skills/found/SKILL.md +5 -0
- package/fixtures/normalize/declared-codex-convention/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/declared-codex-convention/input/listed/SKILL.md +5 -0
- package/fixtures/normalize/declared-codex-convention/input/skills/found/SKILL.md +7 -0
- package/fixtures/normalize/declared-codex-convention/inspection.json +30 -0
- package/fixtures/normalize/declared-codex-convention/normalized.json +88 -0
- package/fixtures/normalize/declared-codex-convention/request.json +5 -0
- package/fixtures/normalize/declared-mars-native/expected/native-dep/agents/planner.md +8 -0
- package/fixtures/normalize/declared-mars-native/expected/native-dep/mars.toml +3 -0
- package/fixtures/normalize/declared-mars-native/expected/native-dep/skills/plan/SKILL.md +7 -0
- package/fixtures/normalize/declared-mars-native/input/agents/planner.md +7 -0
- package/fixtures/normalize/declared-mars-native/input/skills/plan/SKILL.md +7 -0
- package/fixtures/normalize/declared-mars-native/inspection.json +21 -0
- package/fixtures/normalize/declared-mars-native/normalized.json +163 -0
- package/fixtures/normalize/declared-mars-native/request.json +4 -0
- package/fixtures/normalize/duplicate-slug/input/agents/review.md +5 -0
- package/fixtures/normalize/duplicate-slug/input/one/review/SKILL.md +5 -0
- package/fixtures/normalize/duplicate-slug/input/two/review/SKILL.md +5 -0
- package/fixtures/normalize/duplicate-slug/inspection.json +44 -0
- package/fixtures/normalize/duplicate-slug/normalized.json +37 -0
- package/fixtures/normalize/empty/input/README.md +1 -0
- package/fixtures/normalize/empty/input/src/main.rs +1 -0
- package/fixtures/normalize/empty/inspection.json +7 -0
- package/fixtures/normalize/empty/normalized.json +22 -0
- package/fixtures/normalize/generated-plugin-tree/expected/package/mars.toml +3 -0
- package/fixtures/normalize/generated-plugin-tree/expected/package/skills/authored/SKILL.md +5 -0
- package/fixtures/normalize/generated-plugin-tree/input/dist-plugin/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/generated-plugin-tree/input/dist-plugin/.mars-plugin.json +1 -0
- package/fixtures/normalize/generated-plugin-tree/input/dist-plugin/agents/generated.md +5 -0
- package/fixtures/normalize/generated-plugin-tree/input/dist-plugin/skills/built/SKILL.md +5 -0
- package/fixtures/normalize/generated-plugin-tree/input/skills/authored/SKILL.md +5 -0
- package/fixtures/normalize/generated-plugin-tree/inspection.json +31 -0
- package/fixtures/normalize/generated-plugin-tree/normalized.json +97 -0
- package/fixtures/normalize/invalid-plugin-json/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/invalid-plugin-json/input/skills/a/SKILL.md +5 -0
- package/fixtures/normalize/invalid-plugin-json/inspection.json +16 -0
- package/fixtures/normalize/invalid-plugin-json/normalized.json +31 -0
- package/fixtures/normalize/marketplace-selection/expected/one/mars.toml +3 -0
- package/fixtures/normalize/marketplace-selection/expected/one/skills/a/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-selection/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/marketplace-selection/input/one/skills/a/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-selection/input/one/skills/b/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-selection/input/two/skills/c/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-selection/inspection.json +72 -0
- package/fixtures/normalize/marketplace-selection/normalized.json +104 -0
- package/fixtures/normalize/marketplace-selection/request.json +13 -0
- package/fixtures/normalize/marketplace-sources/expected/gh/mars.toml +5 -0
- package/fixtures/normalize/marketplace-sources/expected/gh/skills/remote-skill/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-sources/expected/local/mars.toml +3 -0
- package/fixtures/normalize/marketplace-sources/expected/local/skills/here/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-sources/expected/subdir/mars.toml +3 -0
- package/fixtures/normalize/marketplace-sources/expected/subdir/skills/deep/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-sources/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/marketplace-sources/input/plugins/local/skills/here/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-sources/inspection.json +254 -0
- package/fixtures/normalize/marketplace-sources/normalized.json +216 -0
- package/fixtures/normalize/marketplace-sources/remote/gh/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/marketplace-sources/remote/gh/skills/remote-skill/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-sources/remote/market/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/marketplace-sources/remote/subdir/skills/deep/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-sources/remote-inspections.json +69 -0
- package/fixtures/normalize/marketplace-sources/remote-normalized.json +231 -0
- package/fixtures/normalize/marketplace-sources/request.json +34 -0
- package/fixtures/normalize/marketplace-strict-table/expected/appended/mars.toml +3 -0
- package/fixtures/normalize/marketplace-strict-table/expected/appended/skills/default/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/expected/appended/skills/more/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/expected/appended/skills/own/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/expected/entry-is-manifest/agents/one.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/expected/entry-is-manifest/mars.toml +3 -0
- package/fixtures/normalize/marketplace-strict-table/expected/entry-is-manifest/skills/default/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/expected/entry-is-manifest/skills/listed/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/expected/manifest-only/mars.toml +3 -0
- package/fixtures/normalize/marketplace-strict-table/expected/manifest-only/skills/solo/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/marketplace-strict-table/input/appended/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/marketplace-strict-table/input/appended/extra/more/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/appended/extra/own/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/appended/skills/default/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/conflicting/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/marketplace-strict-table/input/conflicting/skills/clash/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/entry-only/agents/one.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/entry-only/agents/two.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/entry-only/listed/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/entry-only/skills/default/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/input/manifest-only/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/marketplace-strict-table/input/manifest-only/skills/solo/SKILL.md +5 -0
- package/fixtures/normalize/marketplace-strict-table/inspection.json +151 -0
- package/fixtures/normalize/marketplace-strict-table/normalized.json +464 -0
- package/fixtures/normalize/mars-manifest-wins/expected/native/mars.toml +4 -0
- package/fixtures/normalize/mars-manifest-wins/expected/native/skills/native/SKILL.md +5 -0
- package/fixtures/normalize/mars-manifest-wins/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/mars-manifest-wins/input/elsewhere/SKILL.md +5 -0
- package/fixtures/normalize/mars-manifest-wins/input/mars.toml +4 -0
- package/fixtures/normalize/mars-manifest-wins/input/skills/native/SKILL.md +5 -0
- package/fixtures/normalize/mars-manifest-wins/inspection.json +15 -0
- package/fixtures/normalize/mars-manifest-wins/normalized.json +87 -0
- package/fixtures/normalize/mars-manifest-wins/request.json +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/expected/example/agents/helper.md +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/expected/example/mars.toml +7 -0
- package/fixtures/normalize/mars-source-with-built-plugin/expected/example/skills/authored/SKILL.md +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/agents/helper.md +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/mars.toml +7 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/plugin/.mars-plugin.json +1 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/plugin/claude/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/plugin/claude/agents/helper.md +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/plugin/claude/skills/authored/SKILL.md +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/input/skills/authored/SKILL.md +5 -0
- package/fixtures/normalize/mars-source-with-built-plugin/inspection.json +21 -0
- package/fixtures/normalize/mars-source-with-built-plugin/normalized.json +134 -0
- package/fixtures/normalize/mattpocock-skills/expected/mattpocock-skills/mars.toml +5 -0
- package/fixtures/normalize/mattpocock-skills/expected/mattpocock-skills/skills/diagnose/SKILL.md +6 -0
- package/fixtures/normalize/mattpocock-skills/expected/mattpocock-skills/skills/git-guardrails/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/expected/mattpocock-skills/skills/grill-me/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/expected/mattpocock-skills/skills/tdd/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/mattpocock-skills/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/mattpocock-skills/input/README.md +1 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/engineering/diagnose/SKILL.md +6 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/engineering/diagnose/scripts/trace.sh +2 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/engineering/tdd/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/in-progress/draft/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/misc/git-guardrails/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/misc/git-guardrails/scripts/guard.sh +1 -0
- package/fixtures/normalize/mattpocock-skills/input/skills/productivity/grill-me/SKILL.md +5 -0
- package/fixtures/normalize/mattpocock-skills/inspection.json +57 -0
- package/fixtures/normalize/mattpocock-skills/normalized.json +230 -0
- package/fixtures/normalize/mattpocock-skills/request.json +5 -0
- package/fixtures/normalize/mixed-claude-and-mars/expected/mixed-dep/agents/reader.md +10 -0
- package/fixtures/normalize/mixed-claude-and-mars/expected/mixed-dep/mars.toml +3 -0
- package/fixtures/normalize/mixed-claude-and-mars/expected/mixed-dep/skills/notes/SKILL.md +6 -0
- package/fixtures/normalize/mixed-claude-and-mars/input/agents/reader.md +6 -0
- package/fixtures/normalize/mixed-claude-and-mars/input/skills/notes/SKILL.md +6 -0
- package/fixtures/normalize/mixed-claude-and-mars/inspection.json +28 -0
- package/fixtures/normalize/mixed-claude-and-mars/normalized.json +171 -0
- package/fixtures/normalize/mixed-claude-and-mars/request.json +3 -0
- package/fixtures/normalize/nested-declared-skills/expected/nest/mars.toml +3 -0
- package/fixtures/normalize/nested-declared-skills/expected/nest/skills/parent/SKILL.md +5 -0
- package/fixtures/normalize/nested-declared-skills/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/nested-declared-skills/input/skills/parent/SKILL.md +5 -0
- package/fixtures/normalize/nested-declared-skills/input/skills/parent/child/SKILL.md +5 -0
- package/fixtures/normalize/nested-declared-skills/input/skills/parent/child/data.txt +1 -0
- package/fixtures/normalize/nested-declared-skills/input/skills/parent/guide.md +1 -0
- package/fixtures/normalize/nested-declared-skills/inspection.json +38 -0
- package/fixtures/normalize/nested-declared-skills/normalized.json +95 -0
- package/fixtures/normalize/nested-declared-skills/request.json +9 -0
- package/fixtures/normalize/obra-superpowers/expected/superpowers/mars.toml +5 -0
- package/fixtures/normalize/obra-superpowers/expected/superpowers/skills/brainstorming/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/expected/superpowers/skills/test-driven-development/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/expected/superpowers/skills/using-git-worktrees/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/input/.claude-plugin/marketplace.json +1 -0
- package/fixtures/normalize/obra-superpowers/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/obra-superpowers/input/.codex-plugin/plugin.json +1 -0
- package/fixtures/normalize/obra-superpowers/input/.cursor-plugin/plugin.json +1 -0
- package/fixtures/normalize/obra-superpowers/input/.opencode/skills/tdd/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/input/hooks/hooks.json +1 -0
- package/fixtures/normalize/obra-superpowers/input/skills/brainstorming/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/input/skills/brainstorming/scripts/server.cjs +1 -0
- package/fixtures/normalize/obra-superpowers/input/skills/test-driven-development/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/input/skills/test-driven-development/references/tips.md +1 -0
- package/fixtures/normalize/obra-superpowers/input/skills/using-git-worktrees/SKILL.md +5 -0
- package/fixtures/normalize/obra-superpowers/inspection.json +73 -0
- package/fixtures/normalize/obra-superpowers/normalized.json +193 -0
- package/fixtures/normalize/obra-superpowers/request.json +5 -0
- package/fixtures/normalize/opencode-agent/expected/opencode-dep/agents/review.md +19 -0
- package/fixtures/normalize/opencode-agent/expected/opencode-dep/mars.toml +3 -0
- package/fixtures/normalize/opencode-agent/input/agents/review.md +17 -0
- package/fixtures/normalize/opencode-agent/inspection.json +21 -0
- package/fixtures/normalize/opencode-agent/normalized.json +174 -0
- package/fixtures/normalize/opencode-agent/request.json +4 -0
- package/fixtures/normalize/opencode-predicted/expected/opencode-dep/agents/review.md +13 -0
- package/fixtures/normalize/opencode-predicted/expected/opencode-dep/mars.toml +3 -0
- package/fixtures/normalize/opencode-predicted/input/agents/review.md +11 -0
- package/fixtures/normalize/opencode-predicted/inspection.json +23 -0
- package/fixtures/normalize/opencode-predicted/normalized.json +152 -0
- package/fixtures/normalize/opencode-predicted/request.json +3 -0
- package/fixtures/normalize/opencode-with-standard-skill/expected/mixed-opencode/agents/reviewer.md +11 -0
- package/fixtures/normalize/opencode-with-standard-skill/expected/mixed-opencode/mars.toml +3 -0
- package/fixtures/normalize/opencode-with-standard-skill/expected/mixed-opencode/skills/fmt/SKILL.md +5 -0
- package/fixtures/normalize/opencode-with-standard-skill/expected/mixed-opencode/skills/lint/SKILL.md +6 -0
- package/fixtures/normalize/opencode-with-standard-skill/input/agents/reviewer.md +9 -0
- package/fixtures/normalize/opencode-with-standard-skill/input/skills/fmt/SKILL.md +6 -0
- package/fixtures/normalize/opencode-with-standard-skill/input/skills/lint/SKILL.md +6 -0
- package/fixtures/normalize/opencode-with-standard-skill/inspection.json +37 -0
- package/fixtures/normalize/opencode-with-standard-skill/normalized.json +223 -0
- package/fixtures/normalize/opencode-with-standard-skill/request.json +3 -0
- package/fixtures/normalize/plugin-list-paths/expected/lists/agents/real.md +5 -0
- package/fixtures/normalize/plugin-list-paths/expected/lists/mars.toml +3 -0
- package/fixtures/normalize/plugin-list-paths/expected/lists/skills/a/SKILL.md +5 -0
- package/fixtures/normalize/plugin-list-paths/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/normalize/plugin-list-paths/input/agents/dir/inner.md +5 -0
- package/fixtures/normalize/plugin-list-paths/input/agents/real.md +5 -0
- package/fixtures/normalize/plugin-list-paths/input/agents/skipped-default.md +5 -0
- package/fixtures/normalize/plugin-list-paths/input/cmds/x.md +1 -0
- package/fixtures/normalize/plugin-list-paths/input/commands/default.md +1 -0
- package/fixtures/normalize/plugin-list-paths/input/skills/a/SKILL.md +5 -0
- package/fixtures/normalize/plugin-list-paths/inspection.json +79 -0
- package/fixtures/normalize/plugin-list-paths/normalized.json +188 -0
- package/fixtures/normalize/pre-v1-mars-permission/expected/mars-dep/agents/reader.md +12 -0
- package/fixtures/normalize/pre-v1-mars-permission/expected/mars-dep/mars.toml +3 -0
- package/fixtures/normalize/pre-v1-mars-permission/input/agents/reader.md +7 -0
- package/fixtures/normalize/pre-v1-mars-permission/inspection.json +21 -0
- package/fixtures/normalize/pre-v1-mars-permission/normalized.json +140 -0
- package/fixtures/normalize/pre-v1-mars-permission/request.json +3 -0
- package/fixtures/normalize/pre-v1-mars-predicted/expected/legacy-dep/agents/old.md +11 -0
- package/fixtures/normalize/pre-v1-mars-predicted/expected/legacy-dep/mars.toml +3 -0
- package/fixtures/normalize/pre-v1-mars-predicted/expected/legacy-dep/skills/review/SKILL.md +8 -0
- package/fixtures/normalize/pre-v1-mars-predicted/input/agents/old.md +10 -0
- package/fixtures/normalize/pre-v1-mars-predicted/input/skills/review/SKILL.md +7 -0
- package/fixtures/normalize/pre-v1-mars-predicted/inspection.json +28 -0
- package/fixtures/normalize/pre-v1-mars-predicted/normalized.json +201 -0
- package/fixtures/normalize/pre-v1-mars-predicted/request.json +3 -0
- package/fixtures/normalize/root-skill/expected/Some Repo/mars.toml +3 -0
- package/fixtures/normalize/root-skill/expected/Some Repo/skills/my-skill/SKILL.md +5 -0
- package/fixtures/normalize/root-skill/input/SKILL.md +5 -0
- package/fixtures/normalize/root-skill/input/notes.md +1 -0
- package/fixtures/normalize/root-skill/input/scripts/run.sh +1 -0
- package/fixtures/normalize/root-skill/inspection.json +26 -0
- package/fixtures/normalize/root-skill/normalized.json +99 -0
- package/fixtures/normalize/root-skill/request.json +5 -0
- package/fixtures/normalize/root-skill-fallback-name/expected/Some Repo/mars.toml +3 -0
- package/fixtures/normalize/root-skill-fallback-name/expected/Some Repo/skills/some-repo/SKILL.md +5 -0
- package/fixtures/normalize/root-skill-fallback-name/input/SKILL.md +5 -0
- package/fixtures/normalize/root-skill-fallback-name/inspection.json +22 -0
- package/fixtures/normalize/root-skill-fallback-name/normalized.json +101 -0
- package/fixtures/normalize/root-skill-fallback-name/request.json +5 -0
- package/fixtures/normalize/shared-slug-across-kinds/expected/package/agents/review.md +5 -0
- package/fixtures/normalize/shared-slug-across-kinds/expected/package/mars.toml +3 -0
- package/fixtures/normalize/shared-slug-across-kinds/expected/package/skills/review/SKILL.md +5 -0
- package/fixtures/normalize/shared-slug-across-kinds/input/agents/review.md +5 -0
- package/fixtures/normalize/shared-slug-across-kinds/input/skills/review/SKILL.md +5 -0
- package/fixtures/normalize/shared-slug-across-kinds/inspection.json +28 -0
- package/fixtures/normalize/shared-slug-across-kinds/normalized.json +135 -0
- package/fixtures/normalize/skill-references/expected/package/mars.toml +3 -0
- package/fixtures/normalize/skill-references/expected/package/skills/main/SKILL.md +9 -0
- package/fixtures/normalize/skill-references/expected/package/skills/shared/SKILL.md +5 -0
- package/fixtures/normalize/skill-references/input/scripts/build.sh +1 -0
- package/fixtures/normalize/skill-references/input/skills/dropped/SKILL.md +5 -0
- package/fixtures/normalize/skill-references/input/skills/main/SKILL.md +9 -0
- package/fixtures/normalize/skill-references/input/skills/main/guide.md +1 -0
- package/fixtures/normalize/skill-references/input/skills/shared/README.md +1 -0
- package/fixtures/normalize/skill-references/input/skills/shared/SKILL.md +5 -0
- package/fixtures/normalize/skill-references/inspection.json +42 -0
- package/fixtures/normalize/skill-references/normalized.json +157 -0
- package/fixtures/normalize/skill-references/request.json +10 -0
- package/fixtures/normalize/skill-translation/expected/package/mars.toml +3 -0
- package/fixtures/normalize/skill-translation/expected/package/skills/badname/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/expected/package/skills/broken/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/expected/package/skills/colon/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/expected/package/skills/everything/SKILL.md +20 -0
- package/fixtures/normalize/skill-translation/expected/package/skills/mismatch/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/expected/package/skills/plain/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/input/skills/badname/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/input/skills/broken/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/input/skills/colon/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/input/skills/everything/SKILL.md +21 -0
- package/fixtures/normalize/skill-translation/input/skills/everything/scripts/go.sh +1 -0
- package/fixtures/normalize/skill-translation/input/skills/mismatch/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/input/skills/plain/SKILL.md +5 -0
- package/fixtures/normalize/skill-translation/inspection.json +62 -0
- package/fixtures/normalize/skill-translation/normalized.json +372 -0
- package/fixtures/normalize/skill-tree-walk/expected/package/mars.toml +3 -0
- package/fixtures/normalize/skill-tree-walk/expected/package/skills/shallow/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/expected/package/skills/tdd/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/.hidden/skills/ghost/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/docs/guides/a/b/c/too-deep/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/docs/guides/a/b/shallow/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/node_modules/pkg/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/skills/engineering/tdd/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/skills/engineering/tdd/examples/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/input/skills/engineering/tdd/notes.md +1 -0
- package/fixtures/normalize/skill-tree-walk/input/vendor/out/.mars-plugin.json +1 -0
- package/fixtures/normalize/skill-tree-walk/input/vendor/out/skills/built/SKILL.md +5 -0
- package/fixtures/normalize/skill-tree-walk/inspection.json +50 -0
- package/fixtures/normalize/skill-tree-walk/normalized.json +147 -0
- package/fixtures/normalize/subpath/expected/mono/tools/pkg/mars.toml +3 -0
- package/fixtures/normalize/subpath/expected/mono/tools/pkg/skills/inside/SKILL.md +5 -0
- package/fixtures/normalize/subpath/input/docs/readme.md +1 -0
- package/fixtures/normalize/subpath/input/skills/outside/SKILL.md +5 -0
- package/fixtures/normalize/subpath/input/tools/pkg/skills/inside/SKILL.md +5 -0
- package/fixtures/normalize/subpath/inspection.json +22 -0
- package/fixtures/normalize/subpath/normalized.json +91 -0
- package/fixtures/normalize/subpath/request.json +9 -0
- package/fixtures/prepare/agent-structural-raw/expected.json +79 -0
- package/fixtures/prepare/agent-structural-raw/input/agents/anchored.md +6 -0
- package/fixtures/prepare/agent-structural-raw/request.json +3 -0
- package/fixtures/prepare/authored-local-current/expected.json +41 -0
- package/fixtures/prepare/authored-local-current/input/skills/current/SKILL.md +5 -0
- package/fixtures/prepare/authored-local-current/request.json +3 -0
- package/fixtures/prepare/authored-local-legacy/expected/agents/local.md +6 -0
- package/fixtures/prepare/authored-local-legacy/expected.json +67 -0
- package/fixtures/prepare/authored-local-legacy/input/agents/local.md +6 -0
- package/fixtures/prepare/authored-local-legacy/request.json +3 -0
- package/fixtures/prepare/bom/expected.json +85 -0
- package/fixtures/prepare/bom/input/agents/bom.md +5 -0
- package/fixtures/prepare/bom/input/mars.toml +4 -0
- package/fixtures/prepare/bom/request.json +3 -0
- package/fixtures/prepare/claude-network-lost/expected/agents/n.md +12 -0
- package/fixtures/prepare/claude-network-lost/expected.json +118 -0
- package/fixtures/prepare/claude-network-lost/input/agents/n.md +8 -0
- package/fixtures/prepare/claude-network-lost/request.json +4 -0
- package/fixtures/prepare/claude-reserved-keys/expected/agents/g.md +12 -0
- package/fixtures/prepare/claude-reserved-keys/expected/skills/lint/SKILL.md +5 -0
- package/fixtures/prepare/claude-reserved-keys/expected.json +182 -0
- package/fixtures/prepare/claude-reserved-keys/input/agents/g.md +13 -0
- package/fixtures/prepare/claude-reserved-keys/input/skills/lint/SKILL.md +7 -0
- package/fixtures/prepare/claude-reserved-keys/request.json +4 -0
- package/fixtures/prepare/declared-dialect/expected/agents/native.md +9 -0
- package/fixtures/prepare/declared-dialect/expected.json +84 -0
- package/fixtures/prepare/declared-dialect/input/agents/native.md +6 -0
- package/fixtures/prepare/declared-dialect/request.json +4 -0
- package/fixtures/prepare/flat-root-skill/expected.json +51 -0
- package/fixtures/prepare/flat-root-skill/input/SKILL.md +5 -0
- package/fixtures/prepare/flat-root-skill/input/notes.md +1 -0
- package/fixtures/prepare/flat-root-skill/request.json +3 -0
- package/fixtures/prepare/foreign-vendored-payload/expected.json +46 -0
- package/fixtures/prepare/foreign-vendored-payload/input/skills/s/SKILL.md +5 -0
- package/fixtures/prepare/foreign-vendored-payload/input/skills/s/node_modules/m/i.js +1 -0
- package/fixtures/prepare/foreign-vendored-payload/request.json +4 -0
- package/fixtures/prepare/generated-plugin-skipped/expected.json +55 -0
- package/fixtures/prepare/generated-plugin-skipped/input/skills/kept/SKILL.md +5 -0
- package/fixtures/prepare/generated-plugin-skipped/input/vendor/out/.mars-plugin.json +1 -0
- package/fixtures/prepare/generated-plugin-skipped/input/vendor/out/agents/generated.md +5 -0
- package/fixtures/prepare/generated-plugin-skipped/request.json +3 -0
- package/fixtures/prepare/hidden-container-dialect/expected.json +15 -0
- package/fixtures/prepare/hidden-container-dialect/input/.codex/skills/hidden/SKILL.md +5 -0
- package/fixtures/prepare/hidden-container-dialect/request.json +3 -0
- package/fixtures/prepare/invalid-toml/expected.json +28 -0
- package/fixtures/prepare/invalid-toml/input/agents/ignored.md +5 -0
- package/fixtures/prepare/invalid-toml/input/mars.toml +2 -0
- package/fixtures/prepare/invalid-toml/request.json +3 -0
- package/fixtures/prepare/legacy-changed/expected/agents/coder.md +6 -0
- package/fixtures/prepare/legacy-changed/expected/mars.toml +4 -0
- package/fixtures/prepare/legacy-changed/expected.json +103 -0
- package/fixtures/prepare/legacy-changed/input/agents/coder.md +6 -0
- package/fixtures/prepare/legacy-changed/input/mars.toml +3 -0
- package/fixtures/prepare/legacy-changed/request.json +3 -0
- package/fixtures/prepare/legacy-definition-unchanged/expected/mars.toml +4 -0
- package/fixtures/prepare/legacy-definition-unchanged/expected.json +77 -0
- package/fixtures/prepare/legacy-definition-unchanged/input/mars.toml +3 -0
- package/fixtures/prepare/legacy-definition-unchanged/input/skills/steady/SKILL.md +5 -0
- package/fixtures/prepare/legacy-definition-unchanged/request.json +3 -0
- package/fixtures/prepare/manifest-free-skill-tree/expected.json +51 -0
- package/fixtures/prepare/manifest-free-skill-tree/input/skills/demo/SKILL.md +5 -0
- package/fixtures/prepare/manifest-free-skill-tree/input/skills/demo/script.py +1 -0
- package/fixtures/prepare/manifest-free-skill-tree/request.json +3 -0
- package/fixtures/prepare/manifest-without-package/expected.json +30 -0
- package/fixtures/prepare/manifest-without-package/input/mars.toml +2 -0
- package/fixtures/prepare/manifest-without-package/input/skills/ignored/SKILL.md +5 -0
- package/fixtures/prepare/manifest-without-package/request.json +3 -0
- package/fixtures/prepare/opencode-agent/expected/agents/review.md +19 -0
- package/fixtures/prepare/opencode-agent/expected.json +130 -0
- package/fixtures/prepare/opencode-agent/input/agents/review.md +17 -0
- package/fixtures/prepare/opencode-agent/request.json +4 -0
- package/fixtures/prepare/opencode-commands-dropped/expected/agents/review.md +7 -0
- package/fixtures/prepare/opencode-commands-dropped/expected.json +83 -0
- package/fixtures/prepare/opencode-commands-dropped/input/agents/review.md +7 -0
- package/fixtures/prepare/opencode-commands-dropped/input/commands/ship.md +3 -0
- package/fixtures/prepare/opencode-commands-dropped/request.json +3 -0
- package/fixtures/prepare/schema-1/expected.json +85 -0
- package/fixtures/prepare/schema-1/input/agents/coder.md +5 -0
- package/fixtures/prepare/schema-1/input/mars.toml +4 -0
- package/fixtures/prepare/schema-1/request.json +3 -0
- package/fixtures/prepare/schema-1-vendored-payload/expected.json +76 -0
- package/fixtures/prepare/schema-1-vendored-payload/input/mars.toml +4 -0
- package/fixtures/prepare/schema-1-vendored-payload/input/skills/s/SKILL.md +5 -0
- package/fixtures/prepare/schema-1-vendored-payload/input/skills/s/node_modules/m/i.js +1 -0
- package/fixtures/prepare/schema-1-vendored-payload/request.json +3 -0
- package/fixtures/prepare/schema-newer/expected.json +32 -0
- package/fixtures/prepare/schema-newer/input/agents/future.md +5 -0
- package/fixtures/prepare/schema-newer/input/mars.toml +4 -0
- package/fixtures/prepare/schema-newer/request.json +3 -0
- package/fixtures/prepare/skill-payload-and-nested/expected.json +89 -0
- package/fixtures/prepare/skill-payload-and-nested/input/.claude-plugin/plugin.json +1 -0
- package/fixtures/prepare/skill-payload-and-nested/input/skills/outer/SKILL.md +5 -0
- package/fixtures/prepare/skill-payload-and-nested/input/skills/outer/guide.md +1 -0
- package/fixtures/prepare/skill-payload-and-nested/input/skills/outer/nested/SKILL.md +5 -0
- package/fixtures/prepare/skill-payload-and-nested/input/skills/outer/nested/assets/data.bin +0 -0
- package/fixtures/prepare/skill-payload-and-nested/request.json +3 -0
- package/fixtures/read/agent-anchor/agent.md +6 -0
- package/fixtures/read/agent-anchor/expected.json +56 -0
- package/fixtures/read/agent-approval/agent.md +4 -0
- package/fixtures/read/agent-approval/expected.json +33 -0
- package/fixtures/read/agent-approval-yolo/agent.md +3 -0
- package/fixtures/read/agent-approval-yolo/expected.json +42 -0
- package/fixtures/read/agent-bom/agent.md +4 -0
- package/fixtures/read/agent-bom/expected.json +33 -0
- package/fixtures/read/agent-collection-validation/agent.md +7 -0
- package/fixtures/read/agent-collection-validation/expected.json +124 -0
- package/fixtures/read/agent-description/agent.md +4 -0
- package/fixtures/read/agent-description/expected.json +33 -0
- package/fixtures/read/agent-effort/agent.md +4 -0
- package/fixtures/read/agent-effort/expected.json +33 -0
- package/fixtures/read/agent-effort-xhigh/agent.md +4 -0
- package/fixtures/read/agent-effort-xhigh/expected.json +33 -0
- package/fixtures/read/agent-field-type/agent.md +3 -0
- package/fixtures/read/agent-field-type/expected.json +42 -0
- package/fixtures/read/agent-harness/agent.md +4 -0
- package/fixtures/read/agent-harness/expected.json +33 -0
- package/fixtures/read/agent-harness-overrides/agent.md +4 -0
- package/fixtures/read/agent-harness-overrides/expected.json +41 -0
- package/fixtures/read/agent-integer-range/agent.md +8 -0
- package/fixtures/read/agent-integer-range/expected.json +76 -0
- package/fixtures/read/agent-mode/agent.md +4 -0
- package/fixtures/read/agent-mode/expected.json +33 -0
- package/fixtures/read/agent-model/agent.md +4 -0
- package/fixtures/read/agent-model/expected.json +33 -0
- package/fixtures/read/agent-model-invocable/agent.md +4 -0
- package/fixtures/read/agent-model-invocable/expected.json +33 -0
- package/fixtures/read/agent-model-policies/agent.md +4 -0
- package/fixtures/read/agent-model-policies/expected.json +51 -0
- package/fixtures/read/agent-model-policy-index/agent.md +4 -0
- package/fixtures/read/agent-model-policy-index/expected.json +54 -0
- package/fixtures/read/agent-model-policy-network/agent.md +4 -0
- package/fixtures/read/agent-model-policy-network/expected.json +53 -0
- package/fixtures/read/agent-model-policy-network-hosts/agent.md +12 -0
- package/fixtures/read/agent-model-policy-network-hosts/expected.json +115 -0
- package/fixtures/read/agent-model-policy-when/agent.md +12 -0
- package/fixtures/read/agent-model-policy-when/expected.json +96 -0
- package/fixtures/read/agent-name/agent.md +4 -0
- package/fixtures/read/agent-name/expected.json +33 -0
- package/fixtures/read/agent-nested-order/agent.md +17 -0
- package/fixtures/read/agent-nested-order/expected.json +117 -0
- package/fixtures/read/agent-network/agent.md +6 -0
- package/fixtures/read/agent-network/expected.json +55 -0
- package/fixtures/read/agent-network-allow-replace/agent.md +5 -0
- package/fixtures/read/agent-network-allow-replace/expected.json +45 -0
- package/fixtures/read/agent-network-invalid/agent.md +7 -0
- package/fixtures/read/agent-network-invalid/expected.json +140 -0
- package/fixtures/read/agent-proto-key/agent.md +10 -0
- package/fixtures/read/agent-proto-key/expected.json +67 -0
- package/fixtures/read/agent-removed-autocompact/agent.md +3 -0
- package/fixtures/read/agent-removed-autocompact/expected.json +42 -0
- package/fixtures/read/agent-removed-autocompact-pct/agent.md +3 -0
- package/fixtures/read/agent-removed-autocompact-pct/expected.json +42 -0
- package/fixtures/read/agent-removed-disallowed-tools/agent.md +3 -0
- package/fixtures/read/agent-removed-disallowed-tools/expected.json +44 -0
- package/fixtures/read/agent-removed-fanout/agent.md +3 -0
- package/fixtures/read/agent-removed-fanout/expected.json +42 -0
- package/fixtures/read/agent-removed-mcp-tools/agent.md +3 -0
- package/fixtures/read/agent-removed-mcp-tools/expected.json +44 -0
- package/fixtures/read/agent-removed-model-invocable/agent.md +3 -0
- package/fixtures/read/agent-removed-model-invocable/expected.json +42 -0
- package/fixtures/read/agent-removed-models/agent.md +3 -0
- package/fixtures/read/agent-removed-models/expected.json +44 -0
- package/fixtures/read/agent-removed-permission/agent.md +3 -0
- package/fixtures/read/agent-removed-permission/expected.json +42 -0
- package/fixtures/read/agent-removed-user-invocable/agent.md +3 -0
- package/fixtures/read/agent-removed-user-invocable/expected.json +42 -0
- package/fixtures/read/agent-sandbox/agent.md +4 -0
- package/fixtures/read/agent-sandbox/expected.json +33 -0
- package/fixtures/read/agent-skills/agent.md +4 -0
- package/fixtures/read/agent-skills/expected.json +44 -0
- package/fixtures/read/agent-subagents/agent.md +4 -0
- package/fixtures/read/agent-subagents/expected.json +37 -0
- package/fixtures/read/agent-tools/agent.md +4 -0
- package/fixtures/read/agent-tools/expected.json +41 -0
- package/fixtures/read/agent-tools-list/agent.md +3 -0
- package/fixtures/read/agent-tools-list/expected.json +44 -0
- package/fixtures/read/agent-unknown/agent.md +3 -0
- package/fixtures/read/agent-unknown/expected.json +42 -0
- package/fixtures/read/agent-user-invocable/agent.md +4 -0
- package/fixtures/read/agent-user-invocable/expected.json +33 -0
- package/fixtures/read/frontmatter-not-mapping/agent.md +3 -0
- package/fixtures/read/frontmatter-not-mapping/expected.json +13 -0
- package/fixtures/read/frontmatter-unclosed/agent.md +2 -0
- package/fixtures/read/frontmatter-unclosed/expected.json +13 -0
- package/fixtures/read/manifest-invalid-description/expected.json +32 -0
- package/fixtures/read/manifest-invalid-description/mars.toml +5 -0
- package/fixtures/read/manifest-kept/expected.json +66 -0
- package/fixtures/read/manifest-kept/mars.toml +11 -0
- package/fixtures/read/manifest-missing-version/expected.json +34 -0
- package/fixtures/read/manifest-missing-version/mars.toml +4 -0
- package/fixtures/read/manifest-order/expected.json +160 -0
- package/fixtures/read/manifest-order/mars.toml +15 -0
- package/fixtures/read/manifest-provider-name/expected.json +57 -0
- package/fixtures/read/manifest-provider-name/mars.toml +5 -0
- package/fixtures/read/manifest-removed-visibility/expected.json +37 -0
- package/fixtures/read/manifest-removed-visibility/mars.toml +5 -0
- package/fixtures/read/manifest-schema-type/expected.json +29 -0
- package/fixtures/read/manifest-schema-type/mars.toml +4 -0
- package/fixtures/read/manifest-unknown/expected.json +37 -0
- package/fixtures/read/manifest-unknown/mars.toml +5 -0
- package/fixtures/read/skill-anchor/expected.json +42 -0
- package/fixtures/read/skill-anchor/skill.md +6 -0
- package/fixtures/read/skill-compatibility/expected.json +36 -0
- package/fixtures/read/skill-compatibility/skill.md +4 -0
- package/fixtures/read/skill-description/expected.json +28 -0
- package/fixtures/read/skill-description/skill.md +4 -0
- package/fixtures/read/skill-field-type/expected.json +44 -0
- package/fixtures/read/skill-field-type/skill.md +3 -0
- package/fixtures/read/skill-license/expected.json +36 -0
- package/fixtures/read/skill-license/skill.md +4 -0
- package/fixtures/read/skill-metadata/expected.json +40 -0
- package/fixtures/read/skill-metadata/skill.md +4 -0
- package/fixtures/read/skill-metadata-type/expected.json +41 -0
- package/fixtures/read/skill-metadata-type/skill.md +6 -0
- package/fixtures/read/skill-model-invocable/expected.json +36 -0
- package/fixtures/read/skill-model-invocable/skill.md +4 -0
- package/fixtures/read/skill-name/expected.json +28 -0
- package/fixtures/read/skill-name/skill.md +4 -0
- package/fixtures/read/skill-removed-allow-implicit-invocation/expected.json +44 -0
- package/fixtures/read/skill-removed-allow-implicit-invocation/skill.md +3 -0
- package/fixtures/read/skill-removed-allowed-tools/expected.json +44 -0
- package/fixtures/read/skill-removed-allowed-tools/skill.md +3 -0
- package/fixtures/read/skill-removed-disable-model-invocation/expected.json +44 -0
- package/fixtures/read/skill-removed-disable-model-invocation/skill.md +3 -0
- package/fixtures/read/skill-removed-disallowed-tools/expected.json +46 -0
- package/fixtures/read/skill-removed-disallowed-tools/skill.md +3 -0
- package/fixtures/read/skill-removed-invocation/expected.json +44 -0
- package/fixtures/read/skill-removed-invocation/skill.md +3 -0
- package/fixtures/read/skill-removed-model-invocable-alias/expected.json +44 -0
- package/fixtures/read/skill-removed-model-invocable-alias/skill.md +3 -0
- package/fixtures/read/skill-removed-tools/expected.json +46 -0
- package/fixtures/read/skill-removed-tools/skill.md +3 -0
- package/fixtures/read/skill-removed-type/expected.json +44 -0
- package/fixtures/read/skill-removed-type/skill.md +3 -0
- package/fixtures/read/skill-removed-user-invocable-alias/expected.json +44 -0
- package/fixtures/read/skill-removed-user-invocable-alias/skill.md +3 -0
- package/fixtures/read/skill-removed-when-to-use/expected.json +44 -0
- package/fixtures/read/skill-removed-when-to-use/skill.md +3 -0
- package/fixtures/read/skill-unknown/expected.json +44 -0
- package/fixtures/read/skill-unknown/skill.md +3 -0
- package/fixtures/read/skill-user-invocable/expected.json +36 -0
- package/fixtures/read/skill-user-invocable/skill.md +4 -0
- package/fixtures/read/yaml-anchor/agent.md +4 -0
- package/fixtures/read/yaml-anchor/expected.json +48 -0
- package/fixtures/read/yaml-document-end/agent.md +4 -0
- package/fixtures/read/yaml-document-end/expected.json +40 -0
- package/fixtures/read/yaml-duplicate-key/agent.md +4 -0
- package/fixtures/read/yaml-duplicate-key/expected.json +13 -0
- package/fixtures/read/yaml-scalar-punctuation/agent.md +8 -0
- package/fixtures/read/yaml-scalar-punctuation/expected.json +37 -0
- package/fixtures/upgrade/agent-approval-yolo/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-approval-yolo/expected.md +4 -0
- package/fixtures/upgrade/agent-approval-yolo/input.md +4 -0
- package/fixtures/upgrade/agent-approval-yolo/kind.txt +1 -0
- package/fixtures/upgrade/agent-bom/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-bom/expected.md +4 -0
- package/fixtures/upgrade/agent-bom/input.md +5 -0
- package/fixtures/upgrade/agent-bom/kind.txt +1 -0
- package/fixtures/upgrade/agent-claude-keys-conflict/expected-diagnostics.json +4 -0
- package/fixtures/upgrade/agent-claude-keys-conflict/expected.md +9 -0
- package/fixtures/upgrade/agent-claude-keys-conflict/input.md +11 -0
- package/fixtures/upgrade/agent-claude-keys-conflict/kind.txt +1 -0
- package/fixtures/upgrade/agent-claude-keys-unmoved/expected-diagnostics.json +3 -0
- package/fixtures/upgrade/agent-claude-keys-unmoved/expected.md +6 -0
- package/fixtures/upgrade/agent-claude-keys-unmoved/input.md +6 -0
- package/fixtures/upgrade/agent-claude-keys-unmoved/kind.txt +1 -0
- package/fixtures/upgrade/agent-disallowed-tools/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-disallowed-tools/expected.md +6 -0
- package/fixtures/upgrade/agent-disallowed-tools/input.md +5 -0
- package/fixtures/upgrade/agent-disallowed-tools/kind.txt +1 -0
- package/fixtures/upgrade/agent-effort-adaptive/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-effort-adaptive/expected.md +4 -0
- package/fixtures/upgrade/agent-effort-adaptive/input.md +4 -0
- package/fixtures/upgrade/agent-effort-adaptive/kind.txt +1 -0
- package/fixtures/upgrade/agent-effort-disabled/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-effort-disabled/expected.md +4 -0
- package/fixtures/upgrade/agent-effort-disabled/input.md +4 -0
- package/fixtures/upgrade/agent-effort-disabled/kind.txt +1 -0
- package/fixtures/upgrade/agent-fallback-bom-no-trailing-newline/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-fallback-bom-no-trailing-newline/expected.md +5 -0
- package/fixtures/upgrade/agent-fallback-bom-no-trailing-newline/fully-rewritten.txt +2 -0
- package/fixtures/upgrade/agent-fallback-bom-no-trailing-newline/input.md +4 -0
- package/fixtures/upgrade/agent-fallback-bom-no-trailing-newline/kind.txt +1 -0
- package/fixtures/upgrade/agent-fallback-mixed-body/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-fallback-mixed-body/expected.md +6 -0
- package/fixtures/upgrade/agent-fallback-mixed-body/fully-rewritten.txt +2 -0
- package/fixtures/upgrade/agent-fallback-mixed-body/input.md +5 -0
- package/fixtures/upgrade/agent-fallback-mixed-body/kind.txt +1 -0
- package/fixtures/upgrade/agent-flow-top-level-fallback/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-flow-top-level-fallback/expected.md +4 -0
- package/fixtures/upgrade/agent-flow-top-level-fallback/fully-rewritten.txt +1 -0
- package/fixtures/upgrade/agent-flow-top-level-fallback/input.md +3 -0
- package/fixtures/upgrade/agent-flow-top-level-fallback/kind.txt +1 -0
- package/fixtures/upgrade/agent-invocability-aliases/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-invocability-aliases/expected.md +5 -0
- package/fixtures/upgrade/agent-invocability-aliases/input.md +5 -0
- package/fixtures/upgrade/agent-invocability-aliases/kind.txt +1 -0
- package/fixtures/upgrade/agent-minimal-comments/expected-diagnostics.json +3 -0
- package/fixtures/upgrade/agent-minimal-comments/expected.md +8 -0
- package/fixtures/upgrade/agent-minimal-comments/input.md +10 -0
- package/fixtures/upgrade/agent-minimal-comments/kind.txt +1 -0
- package/fixtures/upgrade/agent-model-policy-removed/expected-diagnostics.json +5 -0
- package/fixtures/upgrade/agent-model-policy-removed/expected.md +8 -0
- package/fixtures/upgrade/agent-model-policy-removed/input.md +10 -0
- package/fixtures/upgrade/agent-model-policy-removed/kind.txt +1 -0
- package/fixtures/upgrade/agent-network-both-spellings/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-network-both-spellings/expected.md +11 -0
- package/fixtures/upgrade/agent-network-both-spellings/input.md +8 -0
- package/fixtures/upgrade/agent-network-both-spellings/kind.txt +1 -0
- package/fixtures/upgrade/agent-network-kept/expected-diagnostics.json +3 -0
- package/fixtures/upgrade/agent-network-kept/expected.md +10 -0
- package/fixtures/upgrade/agent-network-kept/input.md +8 -0
- package/fixtures/upgrade/agent-network-kept/kind.txt +1 -0
- package/fixtures/upgrade/agent-permission/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-permission/expected.md +8 -0
- package/fixtures/upgrade/agent-permission/input.md +7 -0
- package/fixtures/upgrade/agent-permission/kind.txt +1 -0
- package/fixtures/upgrade/agent-removed-keys/expected-diagnostics.json +7 -0
- package/fixtures/upgrade/agent-removed-keys/expected.md +3 -0
- package/fixtures/upgrade/agent-removed-keys/input.md +8 -0
- package/fixtures/upgrade/agent-removed-keys/kind.txt +1 -0
- package/fixtures/upgrade/agent-tools-list/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/agent-tools-list/expected.md +7 -0
- package/fixtures/upgrade/agent-tools-list/input.md +5 -0
- package/fixtures/upgrade/agent-tools-list/kind.txt +1 -0
- package/fixtures/upgrade/agent-unreadable-values/expected-diagnostics.json +8 -0
- package/fixtures/upgrade/agent-unreadable-values/expected.md +5 -0
- package/fixtures/upgrade/agent-unreadable-values/input.md +13 -0
- package/fixtures/upgrade/agent-unreadable-values/kind.txt +1 -0
- package/fixtures/upgrade/manifest-crlf/expected-diagnostics.json +3 -0
- package/fixtures/upgrade/manifest-crlf/expected.toml +6 -0
- package/fixtures/upgrade/manifest-crlf/input.toml +6 -0
- package/fixtures/upgrade/manifest-crlf/kind.txt +1 -0
- package/fixtures/upgrade/manifest-schema-visibility/expected-diagnostics.json +3 -0
- package/fixtures/upgrade/manifest-schema-visibility/expected.toml +7 -0
- package/fixtures/upgrade/manifest-schema-visibility/input.toml +7 -0
- package/fixtures/upgrade/manifest-schema-visibility/kind.txt +1 -0
- package/fixtures/upgrade/manifest-v1-idempotent/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/manifest-v1-idempotent/expected.toml +5 -0
- package/fixtures/upgrade/manifest-v1-idempotent/input.toml +5 -0
- package/fixtures/upgrade/manifest-v1-idempotent/kind.txt +1 -0
- package/fixtures/upgrade/skill-crlf/expected-diagnostics.json +3 -0
- package/fixtures/upgrade/skill-crlf/expected.md +7 -0
- package/fixtures/upgrade/skill-crlf/input.md +7 -0
- package/fixtures/upgrade/skill-crlf/kind.txt +1 -0
- package/fixtures/upgrade/skill-tools-dropped/expected-diagnostics.json +5 -0
- package/fixtures/upgrade/skill-tools-dropped/expected.md +3 -0
- package/fixtures/upgrade/skill-tools-dropped/input.md +6 -0
- package/fixtures/upgrade/skill-tools-dropped/kind.txt +1 -0
- package/fixtures/upgrade/skill-type-when-to-use/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/skill-type-when-to-use/expected.md +10 -0
- package/fixtures/upgrade/skill-type-when-to-use/input.md +7 -0
- package/fixtures/upgrade/skill-type-when-to-use/kind.txt +1 -0
- package/fixtures/upgrade/supporting-markdown/expected-diagnostics.json +1 -0
- package/fixtures/upgrade/supporting-markdown/expected.md +4 -0
- package/fixtures/upgrade/supporting-markdown/input.md +4 -0
- package/fixtures/upgrade/supporting-markdown/kind.txt +1 -0
- package/fixtures/vocabulary/expected.json +926 -0
- package/index.d.ts +418 -0
- package/index.web.d.ts +7 -0
- package/node/mars_schema_wasm.d.ts +45 -0
- package/node/mars_schema_wasm.js +672 -0
- package/node/mars_schema_wasm_bg.wasm +0 -0
- package/node/mars_schema_wasm_bg.wasm.d.ts +16 -0
- package/package.json +34 -4
- package/web/mars_schema_wasm.d.ts +86 -0
- package/web/mars_schema_wasm.js +759 -0
- package/web/mars_schema_wasm_bg.wasm +0 -0
- package/web/mars_schema_wasm_bg.wasm.d.ts +16 -0
- package/web/package.json +1 -0
|
@@ -0,0 +1,672 @@
|
|
|
1
|
+
/* @ts-self-types="./mars_schema_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* YAML for the value of the key at column `indent`; see `index.d.ts`.
|
|
5
|
+
* @param {any} value
|
|
6
|
+
* @param {number} indent
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
function emitValue(value, indent) {
|
|
10
|
+
let deferred2_0;
|
|
11
|
+
let deferred2_1;
|
|
12
|
+
try {
|
|
13
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14
|
+
wasm.emitValue(retptr, addHeapObject(value), indent);
|
|
15
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
19
|
+
var ptr1 = r0;
|
|
20
|
+
var len1 = r1;
|
|
21
|
+
if (r3) {
|
|
22
|
+
ptr1 = 0; len1 = 0;
|
|
23
|
+
throw takeObject(r2);
|
|
24
|
+
}
|
|
25
|
+
deferred2_0 = ptr1;
|
|
26
|
+
deferred2_1 = len1;
|
|
27
|
+
return getStringFromWasm0(ptr1, len1);
|
|
28
|
+
} finally {
|
|
29
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
30
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.emitValue = emitValue;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* What a repository is: `{tree: Map<path, Uint8Array>, hint?}` to an `Inspection`. Reads
|
|
37
|
+
* manifests, listings and definitions, never payload bytes.
|
|
38
|
+
* @param {any} input
|
|
39
|
+
* @returns {any}
|
|
40
|
+
*/
|
|
41
|
+
function inspect(input) {
|
|
42
|
+
try {
|
|
43
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
44
|
+
wasm.inspect(retptr, addHeapObject(input));
|
|
45
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
46
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
47
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
48
|
+
if (r2) {
|
|
49
|
+
throw takeObject(r1);
|
|
50
|
+
}
|
|
51
|
+
return takeObject(r0);
|
|
52
|
+
} finally {
|
|
53
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.inspect = inspect;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Schema v1 packages for a selection: `{tree, source?, hint?, selection?}` to a `Normalized`.
|
|
60
|
+
* A remote marketplace plugin is fetched by the caller and normalized as its own tree, with
|
|
61
|
+
* `hint.plugin` set to the plugin's entry.
|
|
62
|
+
* @param {any} input
|
|
63
|
+
* @returns {any}
|
|
64
|
+
*/
|
|
65
|
+
function normalize(input) {
|
|
66
|
+
try {
|
|
67
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
68
|
+
wasm.normalize(retptr, addHeapObject(input));
|
|
69
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
70
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
71
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
72
|
+
if (r2) {
|
|
73
|
+
throw takeObject(r1);
|
|
74
|
+
}
|
|
75
|
+
return takeObject(r0);
|
|
76
|
+
} finally {
|
|
77
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.normalize = normalize;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Prepare one root from `{files: Map<path, Uint8Array>, context?, declaredDialect?}`. A supported
|
|
84
|
+
* export in its own right: `normalize` is this plus a selection, a generated manifest and
|
|
85
|
+
* provenance. An unrecognized `context` or `declaredDialect` throws.
|
|
86
|
+
* @param {any} input
|
|
87
|
+
* @returns {any}
|
|
88
|
+
*/
|
|
89
|
+
function prepare(input) {
|
|
90
|
+
try {
|
|
91
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
92
|
+
wasm.prepare(retptr, addHeapObject(input));
|
|
93
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
94
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
95
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
96
|
+
if (r2) {
|
|
97
|
+
throw takeObject(r1);
|
|
98
|
+
}
|
|
99
|
+
return takeObject(r0);
|
|
100
|
+
} finally {
|
|
101
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.prepare = prepare;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Read one schema file. `path` is package-relative and picks the reader: `mars.toml`,
|
|
108
|
+
* `agents/<slug>.md` or `skills/<slug>/SKILL.md`. Any other path throws.
|
|
109
|
+
* @param {string} path
|
|
110
|
+
* @param {string} text
|
|
111
|
+
* @returns {any}
|
|
112
|
+
*/
|
|
113
|
+
function read(path, text) {
|
|
114
|
+
try {
|
|
115
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
116
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
117
|
+
const len0 = WASM_VECTOR_LEN;
|
|
118
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
119
|
+
const len1 = WASM_VECTOR_LEN;
|
|
120
|
+
wasm.read(retptr, ptr0, len0, ptr1, len1);
|
|
121
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
122
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
123
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
124
|
+
if (r2) {
|
|
125
|
+
throw takeObject(r1);
|
|
126
|
+
}
|
|
127
|
+
return takeObject(r0);
|
|
128
|
+
} finally {
|
|
129
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.read = read;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The full frontmatter block for `[key, value][]`, ending in exactly one newline.
|
|
136
|
+
* @param {any} frontmatter
|
|
137
|
+
* @returns {string}
|
|
138
|
+
*/
|
|
139
|
+
function rewriteBlock(frontmatter) {
|
|
140
|
+
let deferred2_0;
|
|
141
|
+
let deferred2_1;
|
|
142
|
+
try {
|
|
143
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
144
|
+
wasm.rewriteBlock(retptr, addHeapObject(frontmatter));
|
|
145
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
146
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
147
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
148
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
149
|
+
var ptr1 = r0;
|
|
150
|
+
var len1 = r1;
|
|
151
|
+
if (r3) {
|
|
152
|
+
ptr1 = 0; len1 = 0;
|
|
153
|
+
throw takeObject(r2);
|
|
154
|
+
}
|
|
155
|
+
deferred2_0 = ptr1;
|
|
156
|
+
deferred2_1 = len1;
|
|
157
|
+
return getStringFromWasm0(ptr1, len1);
|
|
158
|
+
} finally {
|
|
159
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
160
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
exports.rewriteBlock = rewriteBlock;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Returns the Mars schema package version.
|
|
167
|
+
* @returns {string}
|
|
168
|
+
*/
|
|
169
|
+
function version() {
|
|
170
|
+
let deferred1_0;
|
|
171
|
+
let deferred1_1;
|
|
172
|
+
try {
|
|
173
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
174
|
+
wasm.version(retptr);
|
|
175
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
176
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
177
|
+
deferred1_0 = r0;
|
|
178
|
+
deferred1_1 = r1;
|
|
179
|
+
return getStringFromWasm0(r0, r1);
|
|
180
|
+
} finally {
|
|
181
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
182
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.version = version;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @returns {any}
|
|
189
|
+
*/
|
|
190
|
+
function vocabulary() {
|
|
191
|
+
try {
|
|
192
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
193
|
+
wasm.vocabulary(retptr);
|
|
194
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
195
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
196
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
197
|
+
if (r2) {
|
|
198
|
+
throw takeObject(r1);
|
|
199
|
+
}
|
|
200
|
+
return takeObject(r0);
|
|
201
|
+
} finally {
|
|
202
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.vocabulary = vocabulary;
|
|
206
|
+
function __wbg_get_imports() {
|
|
207
|
+
const import0 = {
|
|
208
|
+
__proto__: null,
|
|
209
|
+
__wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
|
|
210
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
211
|
+
return addHeapObject(ret);
|
|
212
|
+
},
|
|
213
|
+
__wbg_Number_6b506e6536831eaa: function(arg0) {
|
|
214
|
+
const ret = Number(getObject(arg0));
|
|
215
|
+
return ret;
|
|
216
|
+
},
|
|
217
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
218
|
+
const ret = String(getObject(arg1));
|
|
219
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
220
|
+
const len1 = WASM_VECTOR_LEN;
|
|
221
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
222
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
223
|
+
},
|
|
224
|
+
__wbg___wbindgen_bigint_get_as_i64_38130e98eecd467d: function(arg0, arg1) {
|
|
225
|
+
const v = getObject(arg1);
|
|
226
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
227
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
228
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
229
|
+
},
|
|
230
|
+
__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9: function(arg0) {
|
|
231
|
+
const v = getObject(arg0);
|
|
232
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
233
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
234
|
+
},
|
|
235
|
+
__wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
|
|
236
|
+
const ret = debugString(getObject(arg1));
|
|
237
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
238
|
+
const len1 = WASM_VECTOR_LEN;
|
|
239
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
240
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
241
|
+
},
|
|
242
|
+
__wbg___wbindgen_in_70a403a56e771704: function(arg0, arg1) {
|
|
243
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
244
|
+
return ret;
|
|
245
|
+
},
|
|
246
|
+
__wbg___wbindgen_is_bigint_6ffd6468a9bc44b9: function(arg0) {
|
|
247
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
248
|
+
return ret;
|
|
249
|
+
},
|
|
250
|
+
__wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
|
|
251
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
252
|
+
return ret;
|
|
253
|
+
},
|
|
254
|
+
__wbg___wbindgen_is_object_56732c2bc353f41d: function(arg0) {
|
|
255
|
+
const val = getObject(arg0);
|
|
256
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
257
|
+
return ret;
|
|
258
|
+
},
|
|
259
|
+
__wbg___wbindgen_is_string_c236cabd84a4d769: function(arg0) {
|
|
260
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
261
|
+
return ret;
|
|
262
|
+
},
|
|
263
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
264
|
+
const ret = getObject(arg0) === undefined;
|
|
265
|
+
return ret;
|
|
266
|
+
},
|
|
267
|
+
__wbg___wbindgen_jsval_eq_1068e624fa87f6ab: function(arg0, arg1) {
|
|
268
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
269
|
+
return ret;
|
|
270
|
+
},
|
|
271
|
+
__wbg___wbindgen_jsval_loose_eq_2c56564c75129511: function(arg0, arg1) {
|
|
272
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
273
|
+
return ret;
|
|
274
|
+
},
|
|
275
|
+
__wbg___wbindgen_number_get_9bb1761122181af2: function(arg0, arg1) {
|
|
276
|
+
const obj = getObject(arg1);
|
|
277
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
278
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
279
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
280
|
+
},
|
|
281
|
+
__wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
|
|
282
|
+
const obj = getObject(arg1);
|
|
283
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
284
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
285
|
+
var len1 = WASM_VECTOR_LEN;
|
|
286
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
287
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
288
|
+
},
|
|
289
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
290
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
291
|
+
},
|
|
292
|
+
__wbg_call_8a89609d89f6608a: function() { return handleError(function (arg0, arg1) {
|
|
293
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
294
|
+
return addHeapObject(ret);
|
|
295
|
+
}, arguments); },
|
|
296
|
+
__wbg_charCodeAt_464da5455a6116e4: function(arg0, arg1) {
|
|
297
|
+
const ret = getObject(arg0).charCodeAt(arg1 >>> 0);
|
|
298
|
+
return ret;
|
|
299
|
+
},
|
|
300
|
+
__wbg_done_60cf307fcc680536: function(arg0) {
|
|
301
|
+
const ret = getObject(arg0).done;
|
|
302
|
+
return ret;
|
|
303
|
+
},
|
|
304
|
+
__wbg_entries_04b37a02507f1713: function(arg0) {
|
|
305
|
+
const ret = Object.entries(getObject(arg0));
|
|
306
|
+
return addHeapObject(ret);
|
|
307
|
+
},
|
|
308
|
+
__wbg_from_d300fe49deab18f5: function(arg0) {
|
|
309
|
+
const ret = Array.from(getObject(arg0));
|
|
310
|
+
return addHeapObject(ret);
|
|
311
|
+
},
|
|
312
|
+
__wbg_get_1f8f054ddbaa7db2: function() { return handleError(function (arg0, arg1) {
|
|
313
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
314
|
+
return addHeapObject(ret);
|
|
315
|
+
}, arguments); },
|
|
316
|
+
__wbg_get_2b48c7d0d006a781: function(arg0, arg1) {
|
|
317
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
318
|
+
return addHeapObject(ret);
|
|
319
|
+
},
|
|
320
|
+
__wbg_get_de6a0f7d4d18a304: function() { return handleError(function (arg0, arg1) {
|
|
321
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
322
|
+
return addHeapObject(ret);
|
|
323
|
+
}, arguments); },
|
|
324
|
+
__wbg_get_unchecked_33f6e5c9e2f2d6b2: function(arg0, arg1) {
|
|
325
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
326
|
+
return addHeapObject(ret);
|
|
327
|
+
},
|
|
328
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
329
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
330
|
+
return addHeapObject(ret);
|
|
331
|
+
},
|
|
332
|
+
__wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
|
|
333
|
+
let result;
|
|
334
|
+
try {
|
|
335
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
336
|
+
} catch (_) {
|
|
337
|
+
result = false;
|
|
338
|
+
}
|
|
339
|
+
const ret = result;
|
|
340
|
+
return ret;
|
|
341
|
+
},
|
|
342
|
+
__wbg_instanceof_Map_9fc06d9a951bcee6: function(arg0) {
|
|
343
|
+
let result;
|
|
344
|
+
try {
|
|
345
|
+
result = getObject(arg0) instanceof Map;
|
|
346
|
+
} catch (_) {
|
|
347
|
+
result = false;
|
|
348
|
+
}
|
|
349
|
+
const ret = result;
|
|
350
|
+
return ret;
|
|
351
|
+
},
|
|
352
|
+
__wbg_instanceof_Object_873c13f9f41aec78: function(arg0) {
|
|
353
|
+
let result;
|
|
354
|
+
try {
|
|
355
|
+
result = getObject(arg0) instanceof Object;
|
|
356
|
+
} catch (_) {
|
|
357
|
+
result = false;
|
|
358
|
+
}
|
|
359
|
+
const ret = result;
|
|
360
|
+
return ret;
|
|
361
|
+
},
|
|
362
|
+
__wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
|
|
363
|
+
let result;
|
|
364
|
+
try {
|
|
365
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
366
|
+
} catch (_) {
|
|
367
|
+
result = false;
|
|
368
|
+
}
|
|
369
|
+
const ret = result;
|
|
370
|
+
return ret;
|
|
371
|
+
},
|
|
372
|
+
__wbg_isArray_67c2c9c4313f4448: function(arg0) {
|
|
373
|
+
const ret = Array.isArray(getObject(arg0));
|
|
374
|
+
return ret;
|
|
375
|
+
},
|
|
376
|
+
__wbg_isSafeInteger_66acec27e09e99a7: function(arg0) {
|
|
377
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
378
|
+
return ret;
|
|
379
|
+
},
|
|
380
|
+
__wbg_iterator_8732428d309e270e: function() {
|
|
381
|
+
const ret = Symbol.iterator;
|
|
382
|
+
return addHeapObject(ret);
|
|
383
|
+
},
|
|
384
|
+
__wbg_keys_19cb80412a6f5349: function(arg0) {
|
|
385
|
+
const ret = Object.keys(getObject(arg0));
|
|
386
|
+
return addHeapObject(ret);
|
|
387
|
+
},
|
|
388
|
+
__wbg_length_4a591ecaa01354d9: function(arg0) {
|
|
389
|
+
const ret = getObject(arg0).length;
|
|
390
|
+
return ret;
|
|
391
|
+
},
|
|
392
|
+
__wbg_length_521edf73d0cf740d: function(arg0) {
|
|
393
|
+
const ret = getObject(arg0).length;
|
|
394
|
+
return ret;
|
|
395
|
+
},
|
|
396
|
+
__wbg_length_66f1a4b2e9026940: function(arg0) {
|
|
397
|
+
const ret = getObject(arg0).length;
|
|
398
|
+
return ret;
|
|
399
|
+
},
|
|
400
|
+
__wbg_new_578aeef4b6b94378: function(arg0) {
|
|
401
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
402
|
+
return addHeapObject(ret);
|
|
403
|
+
},
|
|
404
|
+
__wbg_new_622fc80556be2e26: function() {
|
|
405
|
+
const ret = new Map();
|
|
406
|
+
return addHeapObject(ret);
|
|
407
|
+
},
|
|
408
|
+
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
409
|
+
const ret = new Object();
|
|
410
|
+
return addHeapObject(ret);
|
|
411
|
+
},
|
|
412
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
413
|
+
const ret = new Array();
|
|
414
|
+
return addHeapObject(ret);
|
|
415
|
+
},
|
|
416
|
+
__wbg_next_9e03acdf51c4960d: function(arg0) {
|
|
417
|
+
const ret = getObject(arg0).next;
|
|
418
|
+
return addHeapObject(ret);
|
|
419
|
+
},
|
|
420
|
+
__wbg_next_eb8ca7351fa27906: function() { return handleError(function (arg0) {
|
|
421
|
+
const ret = getObject(arg0).next();
|
|
422
|
+
return addHeapObject(ret);
|
|
423
|
+
}, arguments); },
|
|
424
|
+
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
425
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
426
|
+
},
|
|
427
|
+
__wbg_set_52b1e1eb5bed906a: function(arg0, arg1, arg2) {
|
|
428
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
429
|
+
return addHeapObject(ret);
|
|
430
|
+
},
|
|
431
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
432
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
433
|
+
},
|
|
434
|
+
__wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
|
|
435
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
436
|
+
},
|
|
437
|
+
__wbg_value_f3625092ee4b37f4: function(arg0) {
|
|
438
|
+
const ret = getObject(arg0).value;
|
|
439
|
+
return addHeapObject(ret);
|
|
440
|
+
},
|
|
441
|
+
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
442
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
443
|
+
const ret = arg0;
|
|
444
|
+
return addHeapObject(ret);
|
|
445
|
+
},
|
|
446
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
447
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
448
|
+
const ret = arg0;
|
|
449
|
+
return addHeapObject(ret);
|
|
450
|
+
},
|
|
451
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
452
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
453
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
454
|
+
return addHeapObject(ret);
|
|
455
|
+
},
|
|
456
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
457
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
458
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
459
|
+
return addHeapObject(ret);
|
|
460
|
+
},
|
|
461
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
462
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
463
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
464
|
+
return addHeapObject(ret);
|
|
465
|
+
},
|
|
466
|
+
__wbindgen_object_clone_ref: function(arg0) {
|
|
467
|
+
const ret = getObject(arg0);
|
|
468
|
+
return addHeapObject(ret);
|
|
469
|
+
},
|
|
470
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
471
|
+
takeObject(arg0);
|
|
472
|
+
},
|
|
473
|
+
};
|
|
474
|
+
return {
|
|
475
|
+
__proto__: null,
|
|
476
|
+
"./mars_schema_wasm_bg.js": import0,
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
function addHeapObject(obj) {
|
|
481
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
482
|
+
const idx = heap_next;
|
|
483
|
+
heap_next = heap[idx];
|
|
484
|
+
|
|
485
|
+
heap[idx] = obj;
|
|
486
|
+
return idx;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
function debugString(val) {
|
|
490
|
+
// primitive types
|
|
491
|
+
const type = typeof val;
|
|
492
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
493
|
+
return `${val}`;
|
|
494
|
+
}
|
|
495
|
+
if (type == 'string') {
|
|
496
|
+
return `"${val}"`;
|
|
497
|
+
}
|
|
498
|
+
if (type == 'symbol') {
|
|
499
|
+
const description = val.description;
|
|
500
|
+
if (description == null) {
|
|
501
|
+
return 'Symbol';
|
|
502
|
+
} else {
|
|
503
|
+
return `Symbol(${description})`;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
if (type == 'function') {
|
|
507
|
+
const name = val.name;
|
|
508
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
509
|
+
return `Function(${name})`;
|
|
510
|
+
} else {
|
|
511
|
+
return 'Function';
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
// objects
|
|
515
|
+
if (Array.isArray(val)) {
|
|
516
|
+
const length = val.length;
|
|
517
|
+
let debug = '[';
|
|
518
|
+
if (length > 0) {
|
|
519
|
+
debug += debugString(val[0]);
|
|
520
|
+
}
|
|
521
|
+
for(let i = 1; i < length; i++) {
|
|
522
|
+
debug += ', ' + debugString(val[i]);
|
|
523
|
+
}
|
|
524
|
+
debug += ']';
|
|
525
|
+
return debug;
|
|
526
|
+
}
|
|
527
|
+
// Test for built-in
|
|
528
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
529
|
+
let className;
|
|
530
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
531
|
+
className = builtInMatches[1];
|
|
532
|
+
} else {
|
|
533
|
+
// Failed to match the standard '[object ClassName]'
|
|
534
|
+
return toString.call(val);
|
|
535
|
+
}
|
|
536
|
+
if (className == 'Object') {
|
|
537
|
+
// we're a user defined class or Object
|
|
538
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
539
|
+
// easier than looping through ownProperties of `val`.
|
|
540
|
+
try {
|
|
541
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
542
|
+
} catch (_) {
|
|
543
|
+
return 'Object';
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
// errors
|
|
547
|
+
if (val instanceof Error) {
|
|
548
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
549
|
+
}
|
|
550
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
551
|
+
return className;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
function dropObject(idx) {
|
|
555
|
+
if (idx < 1028) return;
|
|
556
|
+
heap[idx] = heap_next;
|
|
557
|
+
heap_next = idx;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
561
|
+
ptr = ptr >>> 0;
|
|
562
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
let cachedDataViewMemory0 = null;
|
|
566
|
+
function getDataViewMemory0() {
|
|
567
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
568
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
569
|
+
}
|
|
570
|
+
return cachedDataViewMemory0;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
function getStringFromWasm0(ptr, len) {
|
|
574
|
+
return decodeText(ptr >>> 0, len);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
let cachedUint8ArrayMemory0 = null;
|
|
578
|
+
function getUint8ArrayMemory0() {
|
|
579
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
580
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
581
|
+
}
|
|
582
|
+
return cachedUint8ArrayMemory0;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
function getObject(idx) { return heap[idx]; }
|
|
586
|
+
|
|
587
|
+
function handleError(f, args) {
|
|
588
|
+
try {
|
|
589
|
+
return f.apply(this, args);
|
|
590
|
+
} catch (e) {
|
|
591
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
let heap = new Array(1024).fill(undefined);
|
|
596
|
+
heap.push(undefined, null, true, false);
|
|
597
|
+
|
|
598
|
+
let heap_next = heap.length;
|
|
599
|
+
|
|
600
|
+
function isLikeNone(x) {
|
|
601
|
+
return x === undefined || x === null;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
605
|
+
if (realloc === undefined) {
|
|
606
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
607
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
608
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
609
|
+
WASM_VECTOR_LEN = buf.length;
|
|
610
|
+
return ptr;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
let len = arg.length;
|
|
614
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
615
|
+
|
|
616
|
+
const mem = getUint8ArrayMemory0();
|
|
617
|
+
|
|
618
|
+
let offset = 0;
|
|
619
|
+
|
|
620
|
+
for (; offset < len; offset++) {
|
|
621
|
+
const code = arg.charCodeAt(offset);
|
|
622
|
+
if (code > 0x7F) break;
|
|
623
|
+
mem[ptr + offset] = code;
|
|
624
|
+
}
|
|
625
|
+
if (offset !== len) {
|
|
626
|
+
if (offset !== 0) {
|
|
627
|
+
arg = arg.slice(offset);
|
|
628
|
+
}
|
|
629
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
630
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
631
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
632
|
+
|
|
633
|
+
offset += ret.written;
|
|
634
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
WASM_VECTOR_LEN = offset;
|
|
638
|
+
return ptr;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
function takeObject(idx) {
|
|
642
|
+
const ret = getObject(idx);
|
|
643
|
+
dropObject(idx);
|
|
644
|
+
return ret;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
648
|
+
cachedTextDecoder.decode();
|
|
649
|
+
function decodeText(ptr, len) {
|
|
650
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
const cachedTextEncoder = new TextEncoder();
|
|
654
|
+
|
|
655
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
656
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
657
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
658
|
+
view.set(buf);
|
|
659
|
+
return {
|
|
660
|
+
read: arg.length,
|
|
661
|
+
written: buf.length
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
let WASM_VECTOR_LEN = 0;
|
|
667
|
+
|
|
668
|
+
const wasmPath = `${__dirname}/mars_schema_wasm_bg.wasm`;
|
|
669
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
670
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
671
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
672
|
+
let wasm = wasmInstance.exports;
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const emitValue: (a: number, b: number, c: number) => void;
|
|
5
|
+
export const inspect: (a: number, b: number) => void;
|
|
6
|
+
export const normalize: (a: number, b: number) => void;
|
|
7
|
+
export const prepare: (a: number, b: number) => void;
|
|
8
|
+
export const read: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9
|
+
export const rewriteBlock: (a: number, b: number) => void;
|
|
10
|
+
export const version: (a: number) => void;
|
|
11
|
+
export const vocabulary: (a: number) => void;
|
|
12
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
13
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
14
|
+
export const __wbindgen_export3: (a: number) => void;
|
|
15
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
16
|
+
export const __wbindgen_export4: (a: number, b: number, c: number) => void;
|