@agentxm/client-core 0.2.0 → 0.3.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/dist/src/unstable/commands/operations/disable.d.ts +2 -2
- package/dist/src/unstable/commands/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/enable.d.ts +2 -2
- package/dist/src/unstable/commands/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/install.d.ts +1 -1
- package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/new-command.d.ts +2 -2
- package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/publish.d.ts +1 -1
- package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/uninstall.d.ts +1 -1
- package/dist/src/unstable/commands/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/extensions/operations.d.ts +1 -1
- package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/index.d.ts +39 -0
- package/dist/src/unstable/lint/catalog/index.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/index.js +49 -0
- package/dist/src/unstable/lint/catalog/index.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +31 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +41 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +18 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js +41 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +26 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +34 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +61 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +46 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/platform.d.ts +53 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/platform.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/platform.js +90 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/platform.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.d.ts +60 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.js +85 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack.d.ts +37 -0
- package/dist/src/unstable/lint/catalog/pack.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/pack.js +47 -0
- package/dist/src/unstable/lint/catalog/pack.js.map +1 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.d.ts +59 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +99 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.d.ts +31 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.js +151 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.d.ts +26 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js +41 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +18 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js +46 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.d.ts +22 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.js +37 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.d.ts +17 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.js +38 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.d.ts +65 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.js +50 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/platform.d.ts +52 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/platform.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/platform.js +89 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/platform.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +58 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +83 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.js.map +1 -0
- package/dist/src/unstable/lint/catalog/skill.d.ts +38 -0
- package/dist/src/unstable/lint/catalog/skill.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/skill.js +52 -0
- package/dist/src/unstable/lint/catalog/skill.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-detected-declared.d.ts +23 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-detected-declared.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-detected-declared.js +75 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-detected-declared.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-recognized.d.ts +23 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-recognized.js +76 -0
- package/dist/src/unstable/lint/catalog/workspace/agents-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/empty.d.ts +18 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/empty.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/empty.js +16 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/empty.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/install-ops.d.ts +133 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/install-ops.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/install-ops.js +149 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/install-ops.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts +25 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js +30 -0
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/initialized.d.ts +22 -0
- package/dist/src/unstable/lint/catalog/workspace/initialized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/initialized.js +55 -0
- package/dist/src/unstable/lint/catalog/workspace/initialized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/lockfile-valid.d.ts +33 -0
- package/dist/src/unstable/lint/catalog/workspace/lockfile-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/lockfile-valid.js +125 -0
- package/dist/src/unstable/lint/catalog/workspace/lockfile-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-declarations-valid.d.ts +19 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-declarations-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-declarations-valid.js +145 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-declarations-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.d.ts +17 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js +107 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-members-retained.d.ts +22 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-members-retained.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-members-retained.js +163 -0
- package/dist/src/unstable/lint/catalog/workspace/packs-members-retained.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/settings-schema-valid.d.ts +28 -0
- package/dist/src/unstable/lint/catalog/workspace/settings-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/settings-schema-valid.js +67 -0
- package/dist/src/unstable/lint/catalog/workspace/settings-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-clean.d.ts +30 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-clean.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-clean.js +232 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-clean.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.d.ts +26 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.js +129 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-declarations-valid.d.ts +26 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-declarations-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-declarations-valid.js +151 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-declarations-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-integrity-valid.d.ts +29 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-integrity-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-integrity-valid.js +149 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-integrity-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.d.ts +29 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js +242 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/contexts.d.ts +141 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/contexts.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/contexts.js +123 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/contexts.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/interpret-ops.d.ts +38 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/interpret-ops.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/interpret-ops.js +311 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/interpret-ops.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/platform.d.ts +60 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/platform.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/platform.js +201 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/platform.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/test-state.d.ts +65 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/test-state.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/test-state.js +95 -0
- package/dist/src/unstable/lint/catalog/workspace-accessor/test-state.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace.d.ts +47 -0
- package/dist/src/unstable/lint/catalog/workspace.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace.js +80 -0
- package/dist/src/unstable/lint/catalog/workspace.js.map +1 -0
- package/dist/src/unstable/lint/cli.d.ts +297 -0
- package/dist/src/unstable/lint/cli.d.ts.map +1 -0
- package/dist/src/unstable/lint/cli.js +388 -0
- package/dist/src/unstable/lint/cli.js.map +1 -0
- package/dist/src/unstable/lint/compose-path.d.ts +27 -0
- package/dist/src/unstable/lint/compose-path.d.ts.map +1 -0
- package/dist/src/unstable/lint/compose-path.js +61 -0
- package/dist/src/unstable/lint/compose-path.js.map +1 -0
- package/dist/src/unstable/lint/config.d.ts +103 -0
- package/dist/src/unstable/lint/config.d.ts.map +1 -0
- package/dist/src/unstable/lint/config.js +137 -0
- package/dist/src/unstable/lint/config.js.map +1 -0
- package/dist/src/unstable/lint/context.d.ts +265 -0
- package/dist/src/unstable/lint/context.d.ts.map +1 -0
- package/dist/src/unstable/lint/context.js +21 -0
- package/dist/src/unstable/lint/context.js.map +1 -0
- package/dist/src/unstable/lint/evaluate.d.ts +68 -0
- package/dist/src/unstable/lint/evaluate.d.ts.map +1 -0
- package/dist/src/unstable/lint/evaluate.js +147 -0
- package/dist/src/unstable/lint/evaluate.js.map +1 -0
- package/dist/src/unstable/lint/index.d.ts +28 -0
- package/dist/src/unstable/lint/index.d.ts.map +1 -0
- package/dist/src/unstable/lint/index.js +35 -0
- package/dist/src/unstable/lint/index.js.map +1 -0
- package/dist/src/unstable/lint/issues-to-findings.d.ts +35 -0
- package/dist/src/unstable/lint/issues-to-findings.d.ts.map +1 -0
- package/dist/src/unstable/lint/issues-to-findings.js +97 -0
- package/dist/src/unstable/lint/issues-to-findings.js.map +1 -0
- package/dist/src/unstable/lint/rule.d.ts +139 -0
- package/dist/src/unstable/lint/rule.d.ts.map +1 -0
- package/dist/src/unstable/lint/rule.js +25 -0
- package/dist/src/unstable/lint/rule.js.map +1 -0
- package/dist/src/unstable/mcp-servers/operations/install.d.ts +1 -1
- package/dist/src/unstable/mcp-servers/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.d.ts +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/uninstall.d.ts +1 -1
- package/dist/src/unstable/mcp-servers/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/add-to-pack.d.ts +2 -2
- package/dist/src/unstable/packs/operations/add-to-pack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/install.d.ts +2 -2
- package/dist/src/unstable/packs/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/new-pack.d.ts +2 -2
- package/dist/src/unstable/packs/operations/new-pack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/publish.d.ts +2 -2
- package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/remove-from-pack.d.ts +2 -2
- package/dist/src/unstable/packs/operations/remove-from-pack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/uninstall.d.ts +2 -2
- package/dist/src/unstable/packs/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/unpack.d.ts +2 -2
- package/dist/src/unstable/packs/operations/unpack.d.ts.map +1 -1
- package/dist/src/unstable/{workspace → plan}/apply-plan.d.ts +9 -0
- package/dist/src/unstable/plan/apply-plan.d.ts.map +1 -0
- package/dist/src/unstable/{workspace → plan}/apply-plan.js +10 -1
- package/dist/src/unstable/plan/apply-plan.js.map +1 -0
- package/dist/src/unstable/plan/index.d.ts +24 -0
- package/dist/src/unstable/plan/index.d.ts.map +1 -0
- package/dist/src/unstable/plan/index.js +28 -0
- package/dist/src/unstable/plan/index.js.map +1 -0
- package/dist/src/unstable/{workspace → plan}/plan.d.ts +6 -0
- package/dist/src/unstable/plan/plan.d.ts.map +1 -0
- package/dist/src/unstable/{workspace → plan}/plan.js +6 -0
- package/dist/src/unstable/plan/plan.js.map +1 -0
- package/dist/src/unstable/{workspace → plan}/resolve-plan.d.ts +30 -2
- package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -0
- package/dist/src/unstable/{workspace → plan}/resolve-plan.js +37 -6
- package/dist/src/unstable/plan/resolve-plan.js.map +1 -0
- package/dist/src/unstable/publish/manifest-policy.d.ts +8 -8
- package/dist/src/unstable/settings/index.d.ts +2 -0
- package/dist/src/unstable/settings/index.d.ts.map +1 -1
- package/dist/src/unstable/settings/index.js +1 -0
- package/dist/src/unstable/settings/index.js.map +1 -1
- package/dist/src/unstable/settings/schema.d.ts +3 -0
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +3 -0
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/settings/settings.d.ts +10 -0
- package/dist/src/unstable/settings/settings.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/copy.d.ts +2 -2
- package/dist/src/unstable/skills/operations/copy.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/disable.d.ts +2 -2
- package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/enable.d.ts +2 -2
- package/dist/src/unstable/skills/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/install.d.ts +2 -2
- package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/new-skill.d.ts +2 -2
- package/dist/src/unstable/skills/operations/new-skill.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/publish.d.ts +2 -2
- package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/rename.d.ts +2 -2
- package/dist/src/unstable/skills/operations/rename.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/uninstall.d.ts +2 -2
- package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/disable.d.ts +2 -2
- package/dist/src/unstable/subagents/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.d.ts +2 -2
- package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.d.ts +2 -2
- package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/workflows/install-command/workflow.d.ts +1 -1
- package/dist/src/unstable/workflows/install-command/workflow.d.ts.map +1 -1
- package/dist/src/unstable/workflows/install-command/workflow.js +1 -1
- package/dist/src/unstable/workflows/install-command/workflow.js.map +1 -1
- package/dist/src/unstable/workflows/uninstall-command/workflow.d.ts +1 -1
- package/dist/src/unstable/workflows/uninstall-command/workflow.d.ts.map +1 -1
- package/dist/src/unstable/workflows/uninstall-command/workflow.js +1 -1
- package/dist/src/unstable/workflows/uninstall-command/workflow.js.map +1 -1
- package/dist/src/unstable/workspace/augment-plan.d.ts +1 -1
- package/dist/src/unstable/workspace/augment-plan.d.ts.map +1 -1
- package/dist/src/unstable/workspace/display-plan.d.ts +1 -1
- package/dist/src/unstable/workspace/display-plan.d.ts.map +1 -1
- package/dist/src/unstable/workspace/display-plan.js.map +1 -1
- package/dist/src/unstable/workspace/index.d.ts +0 -5
- package/dist/src/unstable/workspace/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/index.js +3 -7
- package/dist/src/unstable/workspace/index.js.map +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +15 -0
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/paths.d.ts +0 -18
- package/dist/src/unstable/workspace/paths.d.ts.map +1 -1
- package/dist/src/unstable/workspace/paths.js +12 -2
- package/dist/src/unstable/workspace/paths.js.map +1 -1
- package/dist/src/unstable/workspace/reconciliation.d.ts +1 -1
- package/dist/src/unstable/workspace/reconciliation.d.ts.map +1 -1
- package/dist/src/unstable/workspace/scan-plan-readiness.d.ts +1 -1
- package/dist/src/unstable/workspace/scan-plan-readiness.d.ts.map +1 -1
- package/dist/src/unstable/workspace/settings-validation/types.d.ts +11 -1
- package/dist/src/unstable/workspace/settings-validation/types.d.ts.map +1 -1
- package/package.json +10 -2
- package/dist/src/unstable/workspace/apply-plan.d.ts.map +0 -1
- package/dist/src/unstable/workspace/apply-plan.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/check-def.d.ts +0 -29
- package/dist/src/unstable/workspace/doctor/check-def.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/check-def.js +0 -17
- package/dist/src/unstable/workspace/doctor/check-def.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/agents-configured.d.ts +0 -5
- package/dist/src/unstable/workspace/doctor/checks/agents-configured.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/agents-configured.js +0 -170
- package/dist/src/unstable/workspace/doctor/checks/agents-configured.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/extensions-active.d.ts +0 -4
- package/dist/src/unstable/workspace/doctor/checks/extensions-active.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/extensions-active.js +0 -238
- package/dist/src/unstable/workspace/doctor/checks/extensions-active.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/extensions-current.d.ts +0 -18
- package/dist/src/unstable/workspace/doctor/checks/extensions-current.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/extensions-current.js +0 -92
- package/dist/src/unstable/workspace/doctor/checks/extensions-current.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/extensions-installed.d.ts +0 -5
- package/dist/src/unstable/workspace/doctor/checks/extensions-installed.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/extensions-installed.js +0 -472
- package/dist/src/unstable/workspace/doctor/checks/extensions-installed.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/workspace-ready.d.ts +0 -5
- package/dist/src/unstable/workspace/doctor/checks/workspace-ready.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/checks/workspace-ready.js +0 -201
- package/dist/src/unstable/workspace/doctor/checks/workspace-ready.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/diagnose.d.ts +0 -49
- package/dist/src/unstable/workspace/doctor/diagnose.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/diagnose.js +0 -78
- package/dist/src/unstable/workspace/doctor/diagnose.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/index.d.ts +0 -8
- package/dist/src/unstable/workspace/doctor/index.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/index.js +0 -6
- package/dist/src/unstable/workspace/doctor/index.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/rollup.d.ts +0 -4
- package/dist/src/unstable/workspace/doctor/rollup.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/rollup.js +0 -28
- package/dist/src/unstable/workspace/doctor/rollup.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/runner.d.ts +0 -6
- package/dist/src/unstable/workspace/doctor/runner.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/runner.js +0 -179
- package/dist/src/unstable/workspace/doctor/runner.js.map +0 -1
- package/dist/src/unstable/workspace/doctor/types.d.ts +0 -127
- package/dist/src/unstable/workspace/doctor/types.d.ts.map +0 -1
- package/dist/src/unstable/workspace/doctor/types.js +0 -60
- package/dist/src/unstable/workspace/doctor/types.js.map +0 -1
- package/dist/src/unstable/workspace/plan.d.ts.map +0 -1
- package/dist/src/unstable/workspace/plan.js.map +0 -1
- package/dist/src/unstable/workspace/resolve-plan.d.ts.map +0 -1
- package/dist/src/unstable/workspace/resolve-plan.js.map +0 -1
- package/dist/src/unstable/workspace/sync.d.ts +0 -17
- package/dist/src/unstable/workspace/sync.d.ts.map +0 -1
- package/dist/src/unstable/workspace/sync.js +0 -142
- package/dist/src/unstable/workspace/sync.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/unstable/lint/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA8D3E,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAKnC,EAAmC,EAAE,CACpC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAClD;QACE,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC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YAAY,EAAE,CAAC;YACrC,SAAS;QACX,CAAC;QACD,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACrC,IAAI,OAAO,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;gBACnC,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;YAClE,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,gFAAgF;AAChF,uDAAuD;AACvD,gFAAgF;AAEhF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `composePath` — render a display path from a rule context's `displayRoot`
|
|
3
|
+
* and a finding's accessor-relative `location.file`.
|
|
4
|
+
*
|
|
5
|
+
* Rules emit accessor-relative `location.file` values only; messages carry no
|
|
6
|
+
* paths or coordinates. The format-time composition here lets the same rule
|
|
7
|
+
* render different paths for publish (`displayRoot: ""`), registry-installed
|
|
8
|
+
* skills, external skills, and workspace-scope findings.
|
|
9
|
+
*
|
|
10
|
+
* The rendered path is posix, prefixed with `./` so logs are unambiguous
|
|
11
|
+
* about relative-ness. `location.line` / `location.column` append as
|
|
12
|
+
* `:line:column` when present.
|
|
13
|
+
*
|
|
14
|
+
* @experimental This API is unstable and may change without notice.
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
import type { FindingLocation } from "./rule.js";
|
|
18
|
+
/**
|
|
19
|
+
* Compose the rendered path for a finding.
|
|
20
|
+
*
|
|
21
|
+
* @param displayRoot - Context-supplied posix-relative root (or `""`).
|
|
22
|
+
* @param location - Accessor-relative file + optional coordinates.
|
|
23
|
+
*
|
|
24
|
+
* @experimental This API is unstable and may change without notice.
|
|
25
|
+
*/
|
|
26
|
+
export declare const composePath: (displayRoot: string, location: FindingLocation | undefined) => string;
|
|
27
|
+
//# sourceMappingURL=compose-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compose-path.d.ts","sourceRoot":"","sources":["../../../../src/unstable/lint/compose-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAMjD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,aAAa,MAAM,EAAE,UAAU,eAAe,GAAG,SAAS,KAAG,MAOxF,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `composePath` — render a display path from a rule context's `displayRoot`
|
|
3
|
+
* and a finding's accessor-relative `location.file`.
|
|
4
|
+
*
|
|
5
|
+
* Rules emit accessor-relative `location.file` values only; messages carry no
|
|
6
|
+
* paths or coordinates. The format-time composition here lets the same rule
|
|
7
|
+
* render different paths for publish (`displayRoot: ""`), registry-installed
|
|
8
|
+
* skills, external skills, and workspace-scope findings.
|
|
9
|
+
*
|
|
10
|
+
* The rendered path is posix, prefixed with `./` so logs are unambiguous
|
|
11
|
+
* about relative-ness. `location.line` / `location.column` append as
|
|
12
|
+
* `:line:column` when present.
|
|
13
|
+
*
|
|
14
|
+
* @experimental This API is unstable and may change without notice.
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
// -----------------------------------------------------------------------------
|
|
18
|
+
// composePath
|
|
19
|
+
// -----------------------------------------------------------------------------
|
|
20
|
+
/**
|
|
21
|
+
* Compose the rendered path for a finding.
|
|
22
|
+
*
|
|
23
|
+
* @param displayRoot - Context-supplied posix-relative root (or `""`).
|
|
24
|
+
* @param location - Accessor-relative file + optional coordinates.
|
|
25
|
+
*
|
|
26
|
+
* @experimental This API is unstable and may change without notice.
|
|
27
|
+
*/
|
|
28
|
+
export const composePath = (displayRoot, location) => {
|
|
29
|
+
const base = joinPosix(displayRoot, location?.file ?? "");
|
|
30
|
+
const withPrefix = base === "" ? "." : base.startsWith("./") ? base : `./${base}`;
|
|
31
|
+
if (location === undefined) {
|
|
32
|
+
return withPrefix;
|
|
33
|
+
}
|
|
34
|
+
return appendCoordinates(withPrefix, location);
|
|
35
|
+
};
|
|
36
|
+
const joinPosix = (left, right) => {
|
|
37
|
+
const l = stripTrailingSlash(left);
|
|
38
|
+
const r = stripLeadingSlash(right);
|
|
39
|
+
if (l === "" && r === "") {
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
42
|
+
if (l === "") {
|
|
43
|
+
return r;
|
|
44
|
+
}
|
|
45
|
+
if (r === "") {
|
|
46
|
+
return l;
|
|
47
|
+
}
|
|
48
|
+
return `${l}/${r}`;
|
|
49
|
+
};
|
|
50
|
+
const stripTrailingSlash = (s) => (s.endsWith("/") ? s.slice(0, -1) : s);
|
|
51
|
+
const stripLeadingSlash = (s) => (s.startsWith("/") ? s.slice(1) : s);
|
|
52
|
+
const appendCoordinates = (path, location) => {
|
|
53
|
+
if (location.line === undefined) {
|
|
54
|
+
return path;
|
|
55
|
+
}
|
|
56
|
+
if (location.column === undefined) {
|
|
57
|
+
return `${path}:${location.line}`;
|
|
58
|
+
}
|
|
59
|
+
return `${path}:${location.line}:${location.column}`;
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=compose-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compose-path.js","sourceRoot":"","sources":["../../../../src/unstable/lint/compose-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,QAAqC,EAAU,EAAE;IAChG,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IAC1D,MAAM,UAAU,GAAG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,CAAC,IAAY,EAAE,QAAyB,EAAU,EAAE;IAC5E,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,GAAG,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;IACD,OAAO,GAAG,IAAI,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `LintConfig` — workspace-settings-level lint configuration.
|
|
3
|
+
*
|
|
4
|
+
* Workspace `.axm/settings.json` carries a `lint` section whose `rules` map
|
|
5
|
+
* binds rule ids to `"off" | "info" | "warn" | "error"`. The registry publish
|
|
6
|
+
* gate ignores workspace overrides; this config affects `axm lint` only.
|
|
7
|
+
*
|
|
8
|
+
* Keys are **exact** rule ids (`<namespace>/<name>`). No glob, wildcard, or
|
|
9
|
+
* regex syntax is accepted in v1. The accepted-key set is built at schema
|
|
10
|
+
* construction time from rule ids registered via `registerLintRuleIds` — the
|
|
11
|
+
* three v1 catalogs (`skill/*`, `pack/*`, `workspace/*`) each register their
|
|
12
|
+
* ids so adding a catalog in a later phase extends the set by construction.
|
|
13
|
+
*
|
|
14
|
+
* @experimental This API is unstable and may change without notice.
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
import * as Schema from "effect/Schema";
|
|
18
|
+
/**
|
|
19
|
+
* Accepted values for a `lint.rules` entry.
|
|
20
|
+
*
|
|
21
|
+
* Note: `"warn"` is the config surface for `Severity` `"warning"`; mirror's
|
|
22
|
+
* ESLint convention. The evaluator treats `"warn"` as equivalent to `warning`
|
|
23
|
+
* severity; `"off"` suppresses emission.
|
|
24
|
+
*
|
|
25
|
+
* @experimental This API is unstable and may change without notice.
|
|
26
|
+
*/
|
|
27
|
+
export declare const LintRuleSeveritySchema: Schema.Literals<readonly ["off", "info", "warn", "error"]>;
|
|
28
|
+
/**
|
|
29
|
+
* Effective severity of a `lint.rules` entry.
|
|
30
|
+
*
|
|
31
|
+
* @experimental This API is unstable and may change without notice.
|
|
32
|
+
*/
|
|
33
|
+
export type LintRuleSeverity = Schema.Schema.Type<typeof LintRuleSeveritySchema>;
|
|
34
|
+
/**
|
|
35
|
+
* Register one or more rule ids into the config allowlist.
|
|
36
|
+
*
|
|
37
|
+
* Each v1 rule catalog calls this once at module-load to extend the set of
|
|
38
|
+
* accepted `lint.rules` keys. Calls are additive and idempotent — registering
|
|
39
|
+
* an id twice is a no-op. A rule id that isn't registered will cause
|
|
40
|
+
* `SettingsSchema` decode to fail at the `lint.rules` key, surfacing the
|
|
41
|
+
* unknown id in the error path.
|
|
42
|
+
*
|
|
43
|
+
* Consumers (Phases 3a/3b/3c) should register from the catalog module by
|
|
44
|
+
* iterating the catalog's own rule array: no copy-paste of rule ids into this
|
|
45
|
+
* file.
|
|
46
|
+
*
|
|
47
|
+
* @experimental This API is unstable and may change without notice.
|
|
48
|
+
*/
|
|
49
|
+
export declare const registerLintRuleIds: (ids: Iterable<string>) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Read-only view of the currently-registered rule ids.
|
|
52
|
+
*
|
|
53
|
+
* Mainly useful for tests and snapshots; production callers should not depend
|
|
54
|
+
* on ordering.
|
|
55
|
+
*
|
|
56
|
+
* @experimental This API is unstable and may change without notice.
|
|
57
|
+
*/
|
|
58
|
+
export declare const registeredLintRuleIds: () => ReadonlySet<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Record of `<namespace>/<name>` ids to severity overrides.
|
|
61
|
+
*
|
|
62
|
+
* Unknown / wildcard / regex keys are rejected at decode by the filter — the
|
|
63
|
+
* filter walks the decoded record's keys and checks every key against the
|
|
64
|
+
* registered rule-id set. Wildcard patterns like `"skill/*"` fail the filter
|
|
65
|
+
* because they are not registered ids.
|
|
66
|
+
*
|
|
67
|
+
* @experimental This API is unstable and may change without notice.
|
|
68
|
+
*/
|
|
69
|
+
export declare const LintRulesMapSchema: Schema.$Record<Schema.String, Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
|
|
70
|
+
/**
|
|
71
|
+
* Inferred type for `LintRulesMap`.
|
|
72
|
+
*
|
|
73
|
+
* @experimental This API is unstable and may change without notice.
|
|
74
|
+
*/
|
|
75
|
+
export type LintRulesMap = Schema.Schema.Type<typeof LintRulesMapSchema>;
|
|
76
|
+
/**
|
|
77
|
+
* `lint` section of `.axm/settings.json`.
|
|
78
|
+
*
|
|
79
|
+
* Today only `rules` is defined; future fields (per-rule options, reporter
|
|
80
|
+
* selection) extend this struct. The schema rejects excess top-level keys so
|
|
81
|
+
* typos surface at decode.
|
|
82
|
+
*
|
|
83
|
+
* @experimental This API is unstable and may change without notice.
|
|
84
|
+
*/
|
|
85
|
+
export declare const LintConfigSchema: Schema.Struct<{
|
|
86
|
+
readonly rules: Schema.optional<Schema.$Record<Schema.String, Schema.Literals<readonly ["off", "info", "warn", "error"]>>>;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Inferred type for `LintConfig`.
|
|
90
|
+
*
|
|
91
|
+
* @experimental This API is unstable and may change without notice.
|
|
92
|
+
*/
|
|
93
|
+
export type LintConfig = Schema.Schema.Type<typeof LintConfigSchema>;
|
|
94
|
+
/**
|
|
95
|
+
* The platform-canonical `LintConfig` — empty rules, no overrides.
|
|
96
|
+
*
|
|
97
|
+
* Registry publish uses this config; it carries no overrides so every rule
|
|
98
|
+
* fires at its catalog severity.
|
|
99
|
+
*
|
|
100
|
+
* @experimental This API is unstable and may change without notice.
|
|
101
|
+
*/
|
|
102
|
+
export declare const platformCanonicalLintConfig: LintConfig;
|
|
103
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/unstable/lint/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,4DAKjC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAiBjF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,GAAI,KAAK,QAAQ,CAAC,MAAM,CAAC,KAAG,IAI3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,QAAO,WAAW,CAAC,MAAM,CAAsB,CAAC;AAqBlF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,2FAM3B,CAAC;AAEL;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAMzE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;EAM3B,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,EAAE,UAA0B,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `LintConfig` — workspace-settings-level lint configuration.
|
|
3
|
+
*
|
|
4
|
+
* Workspace `.axm/settings.json` carries a `lint` section whose `rules` map
|
|
5
|
+
* binds rule ids to `"off" | "info" | "warn" | "error"`. The registry publish
|
|
6
|
+
* gate ignores workspace overrides; this config affects `axm lint` only.
|
|
7
|
+
*
|
|
8
|
+
* Keys are **exact** rule ids (`<namespace>/<name>`). No glob, wildcard, or
|
|
9
|
+
* regex syntax is accepted in v1. The accepted-key set is built at schema
|
|
10
|
+
* construction time from rule ids registered via `registerLintRuleIds` — the
|
|
11
|
+
* three v1 catalogs (`skill/*`, `pack/*`, `workspace/*`) each register their
|
|
12
|
+
* ids so adding a catalog in a later phase extends the set by construction.
|
|
13
|
+
*
|
|
14
|
+
* @experimental This API is unstable and may change without notice.
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
import * as Schema from "effect/Schema";
|
|
18
|
+
// -----------------------------------------------------------------------------
|
|
19
|
+
// Config value schema
|
|
20
|
+
// -----------------------------------------------------------------------------
|
|
21
|
+
/**
|
|
22
|
+
* Accepted values for a `lint.rules` entry.
|
|
23
|
+
*
|
|
24
|
+
* Note: `"warn"` is the config surface for `Severity` `"warning"`; mirror's
|
|
25
|
+
* ESLint convention. The evaluator treats `"warn"` as equivalent to `warning`
|
|
26
|
+
* severity; `"off"` suppresses emission.
|
|
27
|
+
*
|
|
28
|
+
* @experimental This API is unstable and may change without notice.
|
|
29
|
+
*/
|
|
30
|
+
export const LintRuleSeveritySchema = Schema.Literals(["off", "info", "warn", "error"]).annotate({
|
|
31
|
+
identifier: "LintRuleSeverity",
|
|
32
|
+
title: "Lint Rule Severity",
|
|
33
|
+
description: "Severity override for a lint rule: 'off' silences it, 'info'/'warn'/'error' raise or lower severity.",
|
|
34
|
+
});
|
|
35
|
+
// -----------------------------------------------------------------------------
|
|
36
|
+
// Registered rule-id allowlist
|
|
37
|
+
// -----------------------------------------------------------------------------
|
|
38
|
+
/**
|
|
39
|
+
* Internal mutable registry of accepted rule ids, populated at module-load
|
|
40
|
+
* time by each rule catalog's side-effecting `registerLintRuleIds` call.
|
|
41
|
+
*
|
|
42
|
+
* The registry is module-local so callers in other packages can't extend it
|
|
43
|
+
* without going through `registerLintRuleIds`; the v1 catalogs register from
|
|
44
|
+
* `./catalog/skill.ts`, `./catalog/pack.ts`, and `./catalog/workspace.ts` in
|
|
45
|
+
* Phases 3a/3b/3c.
|
|
46
|
+
*/
|
|
47
|
+
const registeredRuleIds = new Set();
|
|
48
|
+
/**
|
|
49
|
+
* Register one or more rule ids into the config allowlist.
|
|
50
|
+
*
|
|
51
|
+
* Each v1 rule catalog calls this once at module-load to extend the set of
|
|
52
|
+
* accepted `lint.rules` keys. Calls are additive and idempotent — registering
|
|
53
|
+
* an id twice is a no-op. A rule id that isn't registered will cause
|
|
54
|
+
* `SettingsSchema` decode to fail at the `lint.rules` key, surfacing the
|
|
55
|
+
* unknown id in the error path.
|
|
56
|
+
*
|
|
57
|
+
* Consumers (Phases 3a/3b/3c) should register from the catalog module by
|
|
58
|
+
* iterating the catalog's own rule array: no copy-paste of rule ids into this
|
|
59
|
+
* file.
|
|
60
|
+
*
|
|
61
|
+
* @experimental This API is unstable and may change without notice.
|
|
62
|
+
*/
|
|
63
|
+
export const registerLintRuleIds = (ids) => {
|
|
64
|
+
for (const id of ids) {
|
|
65
|
+
registeredRuleIds.add(id);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Read-only view of the currently-registered rule ids.
|
|
70
|
+
*
|
|
71
|
+
* Mainly useful for tests and snapshots; production callers should not depend
|
|
72
|
+
* on ordering.
|
|
73
|
+
*
|
|
74
|
+
* @experimental This API is unstable and may change without notice.
|
|
75
|
+
*/
|
|
76
|
+
export const registeredLintRuleIds = () => registeredRuleIds;
|
|
77
|
+
// -----------------------------------------------------------------------------
|
|
78
|
+
// Rules map schema
|
|
79
|
+
// -----------------------------------------------------------------------------
|
|
80
|
+
const ruleIdKeyFilter = Schema.makeFilter((input) => {
|
|
81
|
+
const invalid = [];
|
|
82
|
+
for (const key of Object.keys(input)) {
|
|
83
|
+
if (!registeredRuleIds.has(key)) {
|
|
84
|
+
invalid.push(key);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (invalid.length === 0) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
return `Unknown lint rule id(s) in lint.rules: ${invalid.join(", ")}. Keys must be exact <namespace>/<name> ids; wildcards and globs are not supported.`;
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Record of `<namespace>/<name>` ids to severity overrides.
|
|
94
|
+
*
|
|
95
|
+
* Unknown / wildcard / regex keys are rejected at decode by the filter — the
|
|
96
|
+
* filter walks the decoded record's keys and checks every key against the
|
|
97
|
+
* registered rule-id set. Wildcard patterns like `"skill/*"` fail the filter
|
|
98
|
+
* because they are not registered ids.
|
|
99
|
+
*
|
|
100
|
+
* @experimental This API is unstable and may change without notice.
|
|
101
|
+
*/
|
|
102
|
+
export const LintRulesMapSchema = Schema.Record(Schema.String, LintRuleSeveritySchema)
|
|
103
|
+
.check(ruleIdKeyFilter)
|
|
104
|
+
.annotate({
|
|
105
|
+
identifier: "LintRulesMap",
|
|
106
|
+
title: "Lint Rules Map",
|
|
107
|
+
description: "Map of exact <namespace>/<name> rule ids to severity overrides for `axm lint`.",
|
|
108
|
+
});
|
|
109
|
+
// -----------------------------------------------------------------------------
|
|
110
|
+
// LintConfig schema
|
|
111
|
+
// -----------------------------------------------------------------------------
|
|
112
|
+
/**
|
|
113
|
+
* `lint` section of `.axm/settings.json`.
|
|
114
|
+
*
|
|
115
|
+
* Today only `rules` is defined; future fields (per-rule options, reporter
|
|
116
|
+
* selection) extend this struct. The schema rejects excess top-level keys so
|
|
117
|
+
* typos surface at decode.
|
|
118
|
+
*
|
|
119
|
+
* @experimental This API is unstable and may change without notice.
|
|
120
|
+
*/
|
|
121
|
+
export const LintConfigSchema = Schema.Struct({
|
|
122
|
+
rules: Schema.optional(LintRulesMapSchema),
|
|
123
|
+
}).annotate({
|
|
124
|
+
identifier: "LintConfig",
|
|
125
|
+
title: "Lint Config",
|
|
126
|
+
description: "Workspace lint configuration under `lint` in `.axm/settings.json`.",
|
|
127
|
+
});
|
|
128
|
+
/**
|
|
129
|
+
* The platform-canonical `LintConfig` — empty rules, no overrides.
|
|
130
|
+
*
|
|
131
|
+
* Registry publish uses this config; it carries no overrides so every rule
|
|
132
|
+
* fires at its catalog severity.
|
|
133
|
+
*
|
|
134
|
+
* @experimental This API is unstable and may change without notice.
|
|
135
|
+
*/
|
|
136
|
+
export const platformCanonicalLintConfig = { rules: {} };
|
|
137
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/unstable/lint/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,gFAAgF;AAChF,sBAAsB;AACtB,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC/F,UAAU,EAAE,kBAAkB;IAC9B,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,sGAAsG;CACzG,CAAC,CAAC;AASH,gFAAgF;AAChF,+BAA+B;AAC/B,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;AAE5C;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAqB,EAAQ,EAAE;IACjE,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC;QACrB,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;AACH,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAwB,EAAE,CAAC,iBAAiB,CAAC;AAElF,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CACvC,CAAC,KAAwC,EAAsB,EAAE;IAC/D,MAAM,OAAO,GAAkB,EAAE,CAAC;IAClC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,0CAA0C,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,qFAAqF,CAAC;AAC3J,CAAC,CACF,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC;KACnF,KAAK,CAAC,eAAe,CAAC;KACtB,QAAQ,CAAC;IACR,UAAU,EAAE,cAAc;IAC1B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,gFAAgF;CAC9F,CAAC,CAAC;AASL,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,oEAAoE;CAClF,CAAC,CAAC;AASH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAe,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rule-context types and narrow accessors.
|
|
3
|
+
*
|
|
4
|
+
* Each rule-context type bundles a caller-decoded `subject` with a narrow
|
|
5
|
+
* caller-bound accessor and a `displayRoot` used for path rendering. Rules
|
|
6
|
+
* consume accessors as ordinary property access (no Layer wiring); tests pass
|
|
7
|
+
* literal fakes.
|
|
8
|
+
*
|
|
9
|
+
* Phase 2 pins the context shapes and accessor interfaces. Phases 3a, 3b, and
|
|
10
|
+
* 3c land the concrete `subject` decoders and VFT-/platform-backed accessor
|
|
11
|
+
* implementations.
|
|
12
|
+
*
|
|
13
|
+
* Accessor surfaces are intentionally minimal — rules SHALL see only the
|
|
14
|
+
* methods the v1 catalog requires. Extending a surface is a Phase 3a/3b/3c
|
|
15
|
+
* action with a documented rule consumer, not a free action.
|
|
16
|
+
*
|
|
17
|
+
* @experimental This API is unstable and may change without notice.
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
20
|
+
import type * as Effect from "effect/Effect";
|
|
21
|
+
import type * as Option from "effect/Option";
|
|
22
|
+
import type { AgentDescriptor, AgentId } from "../agents/types.js";
|
|
23
|
+
/**
|
|
24
|
+
* Tagged error surfaced by `SkillFileAccessor` / `PackFileAccessor` when a
|
|
25
|
+
* read fails for reasons other than "file not found" (which is represented
|
|
26
|
+
* by `exists -> false`).
|
|
27
|
+
*
|
|
28
|
+
* Concrete implementations live in Phases 3a/3b; this interface fixes the
|
|
29
|
+
* error shape rules can rely on.
|
|
30
|
+
*
|
|
31
|
+
* @experimental This API is unstable and may change without notice.
|
|
32
|
+
*/
|
|
33
|
+
export interface FileAccessError {
|
|
34
|
+
readonly _tag: "FileAccessError";
|
|
35
|
+
/** Accessor-relative posix path that failed. */
|
|
36
|
+
readonly path: string;
|
|
37
|
+
/** Machine-readable reason. */
|
|
38
|
+
readonly reason: "path-escape" | "read-error" | "io-error";
|
|
39
|
+
/** Human-readable detail; no rendered display path. */
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Narrow skill-rooted file accessor.
|
|
44
|
+
*
|
|
45
|
+
* Root is the directory containing `SKILL.md`. Paths are posix and relative
|
|
46
|
+
* to the root; implementations MUST reject path-traversal attempts (`..`,
|
|
47
|
+
* absolute paths, symlink escapes) by returning `false` from `exists` or
|
|
48
|
+
* failing `readBytes` with `FileAccessError { reason: "path-escape" }`.
|
|
49
|
+
*
|
|
50
|
+
* @experimental This API is unstable and may change without notice.
|
|
51
|
+
*/
|
|
52
|
+
export interface SkillFileAccessor {
|
|
53
|
+
readonly exists: (path: string) => Effect.Effect<boolean>;
|
|
54
|
+
readonly readBytes: (path: string) => Effect.Effect<Uint8Array, FileAccessError>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Narrow pack-rooted file accessor.
|
|
58
|
+
*
|
|
59
|
+
* Root is the directory containing `extension-pack.json`. Same traversal
|
|
60
|
+
* constraints as `SkillFileAccessor`.
|
|
61
|
+
*
|
|
62
|
+
* @experimental This API is unstable and may change without notice.
|
|
63
|
+
*/
|
|
64
|
+
export interface PackFileAccessor {
|
|
65
|
+
readonly exists: (path: string) => Effect.Effect<boolean>;
|
|
66
|
+
readonly readBytes: (path: string) => Effect.Effect<Uint8Array, FileAccessError>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Raw workspace `settings.json` document as returned by the accessor.
|
|
70
|
+
*
|
|
71
|
+
* The accessor parses JSON but does NOT decode via `SettingsSchema` — the
|
|
72
|
+
* decode arm is the job of `workspace/settings-schema-valid`. Rules that
|
|
73
|
+
* need a typed shape call `Schema.decodeUnknown(SettingsSchema)` locally;
|
|
74
|
+
* those decodes produce no findings because `workspace/settings-schema-valid`
|
|
75
|
+
* already emits them.
|
|
76
|
+
*
|
|
77
|
+
* A `SettingsReadError` on the accessor's `settings` Effect means the bytes
|
|
78
|
+
* were unreadable or failed JSON.parse. Absence of the file surfaces via
|
|
79
|
+
* `exists(".axm/settings.json") -> false` and is owned by
|
|
80
|
+
* `workspace/initialized`.
|
|
81
|
+
*
|
|
82
|
+
* @experimental This API is unstable and may change without notice.
|
|
83
|
+
*/
|
|
84
|
+
export type SettingsDocument = unknown;
|
|
85
|
+
/**
|
|
86
|
+
* Raw workspace `axm-lock.yaml` document as returned by the accessor.
|
|
87
|
+
*
|
|
88
|
+
* The accessor parses YAML but does NOT decode via `LockfileSchema` — the
|
|
89
|
+
* decode arm is the job of `workspace/lockfile-valid`. Rules that need a
|
|
90
|
+
* typed shape call `Schema.decodeUnknown(LockfileSchema)` locally; those
|
|
91
|
+
* decodes produce no findings because `workspace/lockfile-valid` already
|
|
92
|
+
* emits them.
|
|
93
|
+
*
|
|
94
|
+
* @experimental This API is unstable and may change without notice.
|
|
95
|
+
*/
|
|
96
|
+
export type LockfileDocument = unknown;
|
|
97
|
+
/**
|
|
98
|
+
* Tagged error surfaced by workspace-level reads.
|
|
99
|
+
*
|
|
100
|
+
* @experimental This API is unstable and may change without notice.
|
|
101
|
+
*/
|
|
102
|
+
export interface SettingsReadError {
|
|
103
|
+
readonly _tag: "SettingsReadError";
|
|
104
|
+
readonly message: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Tagged error surfaced by workspace lockfile reads.
|
|
108
|
+
*
|
|
109
|
+
* @experimental This API is unstable and may change without notice.
|
|
110
|
+
*/
|
|
111
|
+
export interface LockfileReadError {
|
|
112
|
+
readonly _tag: "LockfileReadError";
|
|
113
|
+
readonly message: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A detected-but-not-declared coding agent surfaced by
|
|
117
|
+
* `WorkspaceLintAccessor.detectAgents`. Phase 3c refines this if the detector
|
|
118
|
+
* lands additional probe metadata.
|
|
119
|
+
*
|
|
120
|
+
* @experimental This API is unstable and may change without notice.
|
|
121
|
+
*/
|
|
122
|
+
export interface AgentDetection {
|
|
123
|
+
readonly id: AgentId;
|
|
124
|
+
/** Path (posix, accessor-relative) that led to the detection. */
|
|
125
|
+
readonly markerPath: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Narrow workspace-rooted accessor.
|
|
129
|
+
*
|
|
130
|
+
* Exposes only the methods the v1 workspace catalog consumes; see `lint-engine`
|
|
131
|
+
* spec "Workspace accessor exposes only v1 methods." Extending this interface
|
|
132
|
+
* requires a concrete rule that needs the added method.
|
|
133
|
+
*
|
|
134
|
+
* @experimental This API is unstable and may change without notice.
|
|
135
|
+
*/
|
|
136
|
+
export interface WorkspaceLintAccessor {
|
|
137
|
+
readonly settings: Effect.Effect<SettingsDocument, SettingsReadError>;
|
|
138
|
+
readonly lockfile: Effect.Effect<Option.Option<LockfileDocument>, LockfileReadError>;
|
|
139
|
+
readonly installedSkills: Effect.Effect<ReadonlyArray<SkillRuleContext>>;
|
|
140
|
+
readonly installedPacks: Effect.Effect<ReadonlyArray<PackRuleContext>>;
|
|
141
|
+
readonly knownAgents: Effect.Effect<ReadonlyArray<AgentDescriptor>>;
|
|
142
|
+
readonly detectAgents: (scope: "project" | "user") => Effect.Effect<ReadonlyArray<AgentDetection>>;
|
|
143
|
+
readonly exists: (path: string) => Effect.Effect<boolean>;
|
|
144
|
+
readonly isWritable: (path: string) => Effect.Effect<boolean>;
|
|
145
|
+
readonly list: (path: string) => Effect.Effect<ReadonlyArray<string>, FileAccessError>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Context passed to `skill/*` rules.
|
|
149
|
+
*
|
|
150
|
+
* `subject` is the caller-decoded skill content (SKILL.md frontmatter +
|
|
151
|
+
* optional skill.json). Phase 3a refines the `subject` type to the concrete
|
|
152
|
+
* `SkillContent` shape; Phase 2 leaves it structurally open so the rule
|
|
153
|
+
* primitives don't need a circular dependency on the skill module.
|
|
154
|
+
*
|
|
155
|
+
* `displayRoot` is posix and relative; `""` means the accessor root is the
|
|
156
|
+
* rendering base. See `./compose-path.ts` for the four documented cases.
|
|
157
|
+
*
|
|
158
|
+
* @experimental This API is unstable and may change without notice.
|
|
159
|
+
*/
|
|
160
|
+
export interface SkillRuleContext<S = SkillContent> {
|
|
161
|
+
readonly subject: S;
|
|
162
|
+
readonly files: SkillFileAccessor;
|
|
163
|
+
readonly displayRoot: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Concrete subject shape passed to `skill/*` rules.
|
|
167
|
+
*
|
|
168
|
+
* Rules read `SKILL.md` bytes through `context.files` (the authoritative
|
|
169
|
+
* source shared across publish and `axm lint`). The `subject` carries only
|
|
170
|
+
* what rules can't efficiently re-derive from bytes:
|
|
171
|
+
*
|
|
172
|
+
* - `isNative` — whether the caller expects this skill to carry a
|
|
173
|
+
* `skill.json` manifest. Native (registry-installed) skills set this to
|
|
174
|
+
* `true`; non-native (managed external) skills set it to `false`. Rules
|
|
175
|
+
* that depend on `skill.json` (`skill/manifest-present`,
|
|
176
|
+
* `skill/manifest-schema-valid`, `skill/manifest-keys-recognized`)
|
|
177
|
+
* early-return `[]` when `isNative === false`, so the same catalog covers
|
|
178
|
+
* both.
|
|
179
|
+
* - `skillJson` — the already-decoded `skill.json` contents when present
|
|
180
|
+
* (caller decodes once, rules don't re-read + re-parse). `undefined` when
|
|
181
|
+
* the file is absent. Schema-valid rules pipe this into
|
|
182
|
+
* `Schema.decodeUnknownResult(SkillManifestSchema)`; keys-recognized
|
|
183
|
+
* enumerates top-level keys after narrowing to `Record<string, unknown>`.
|
|
184
|
+
*
|
|
185
|
+
* Phase 3b and 3c consumers build `SkillContent` via
|
|
186
|
+
* `buildSkillRuleContexts` (this phase) against the `WorkspaceIndex`
|
|
187
|
+
* surface; publish (Phase 4, this-repo) builds one `SkillContent` per
|
|
188
|
+
* incoming archive.
|
|
189
|
+
*
|
|
190
|
+
* @experimental This API is unstable and may change without notice.
|
|
191
|
+
*/
|
|
192
|
+
export interface SkillContent {
|
|
193
|
+
readonly isNative: boolean;
|
|
194
|
+
readonly skillJson: unknown;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Context passed to `pack/*` rules.
|
|
198
|
+
*
|
|
199
|
+
* `subject` is the caller-decoded pack content — concrete `PackContent` shape
|
|
200
|
+
* defined below. Packs are registry-only at v1 (no non-native arm), so the
|
|
201
|
+
* subject carries only the already-decoded manifest and rules read
|
|
202
|
+
* `extension-pack.json` bytes through `context.files` as needed.
|
|
203
|
+
*
|
|
204
|
+
* @experimental This API is unstable and may change without notice.
|
|
205
|
+
*/
|
|
206
|
+
export interface PackRuleContext<S = PackContent> {
|
|
207
|
+
readonly subject: S;
|
|
208
|
+
readonly files: PackFileAccessor;
|
|
209
|
+
readonly displayRoot: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Concrete subject shape passed to `pack/*` rules.
|
|
213
|
+
*
|
|
214
|
+
* Rules read `extension-pack.json` bytes through `context.files` (the
|
|
215
|
+
* authoritative source shared across publish and `axm lint`). The `subject`
|
|
216
|
+
* carries only what rules can't efficiently re-derive from bytes:
|
|
217
|
+
*
|
|
218
|
+
* - `packJson` — the already-decoded `extension-pack.json` contents when
|
|
219
|
+
* present (caller decodes once, rules don't re-read + re-parse).
|
|
220
|
+
* `undefined` when the file is absent. Schema-valid rules pipe this into
|
|
221
|
+
* `Schema.decodeUnknownResult(ExtensionPackManifestSchema)`;
|
|
222
|
+
* keys-recognized enumerates top-level keys after narrowing to
|
|
223
|
+
* `Record<string, unknown>`.
|
|
224
|
+
*
|
|
225
|
+
* Unlike `SkillContent`, there is no `isNative` discriminator — packs are
|
|
226
|
+
* registry-only and every pack context is expected to expose a manifest.
|
|
227
|
+
* The presence rule (`pack/manifest-present`) owns the absence arm.
|
|
228
|
+
*
|
|
229
|
+
* Phase 3c consumers build `PackContent` via `buildPackRuleContexts`
|
|
230
|
+
* against the `WorkspaceIndex` surface; publish (Phase 4, this-repo) builds
|
|
231
|
+
* one `PackContent` per incoming archive.
|
|
232
|
+
*
|
|
233
|
+
* @experimental This API is unstable and may change without notice.
|
|
234
|
+
*/
|
|
235
|
+
export interface PackContent {
|
|
236
|
+
readonly packJson: unknown;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Context passed to `workspace/*` rules.
|
|
240
|
+
*
|
|
241
|
+
* `subject.scope` is `"project"` (default) or `"user"` (user-level `.axm/`).
|
|
242
|
+
* Rules whose invariants apply at only one scope early-return `[]` via the
|
|
243
|
+
* `check` body.
|
|
244
|
+
*
|
|
245
|
+
* `subject.root` is an absolute filesystem path pinning the workspace root;
|
|
246
|
+
* typed as `string` in Phase 2 so the rule primitives don't depend on a
|
|
247
|
+
* platform-specific path brand.
|
|
248
|
+
*
|
|
249
|
+
* @experimental This API is unstable and may change without notice.
|
|
250
|
+
*/
|
|
251
|
+
export interface WorkspaceRuleContext {
|
|
252
|
+
readonly subject: WorkspaceSubject;
|
|
253
|
+
readonly workspace: WorkspaceLintAccessor;
|
|
254
|
+
readonly displayRoot: string;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Workspace subject: the rule-addressable identity of the workspace under lint.
|
|
258
|
+
*
|
|
259
|
+
* @experimental This API is unstable and may change without notice.
|
|
260
|
+
*/
|
|
261
|
+
export interface WorkspaceSubject {
|
|
262
|
+
readonly root: string;
|
|
263
|
+
readonly scope: "project" | "user";
|
|
264
|
+
}
|
|
265
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/unstable/lint/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAMnE;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,YAAY,GAAG,UAAU,CAAC;IAC3D,uDAAuD;IACvD,QAAQ,CAAC,OAAO,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AO,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,WAAW;IAC9C,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;CACpC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rule-context types and narrow accessors.
|
|
3
|
+
*
|
|
4
|
+
* Each rule-context type bundles a caller-decoded `subject` with a narrow
|
|
5
|
+
* caller-bound accessor and a `displayRoot` used for path rendering. Rules
|
|
6
|
+
* consume accessors as ordinary property access (no Layer wiring); tests pass
|
|
7
|
+
* literal fakes.
|
|
8
|
+
*
|
|
9
|
+
* Phase 2 pins the context shapes and accessor interfaces. Phases 3a, 3b, and
|
|
10
|
+
* 3c land the concrete `subject` decoders and VFT-/platform-backed accessor
|
|
11
|
+
* implementations.
|
|
12
|
+
*
|
|
13
|
+
* Accessor surfaces are intentionally minimal — rules SHALL see only the
|
|
14
|
+
* methods the v1 catalog requires. Extending a surface is a Phase 3a/3b/3c
|
|
15
|
+
* action with a documented rule consumer, not a free action.
|
|
16
|
+
*
|
|
17
|
+
* @experimental This API is unstable and may change without notice.
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=context.js.map
|