@fantasticit/sumi 0.0.0-stage → 0.5.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 +81 -2
- package/dist/adapters.d.ts +86 -0
- package/dist/adapters.js +469 -0
- package/dist/adapters.js.map +1 -0
- package/dist/agent-hooks.d.ts +15 -0
- package/dist/agent-hooks.js +63 -0
- package/dist/agent-hooks.js.map +1 -0
- package/dist/agents.d.ts +1 -0
- package/dist/agents.js +139 -0
- package/dist/agents.js.map +1 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +21 -0
- package/dist/bin.js.map +1 -0
- package/dist/build-identity.d.ts +7 -0
- package/dist/build-identity.js +55 -0
- package/dist/build-identity.js.map +1 -0
- package/dist/cli.d.ts +19 -0
- package/dist/cli.js +150 -0
- package/dist/cli.js.map +1 -0
- package/dist/context.d.ts +1 -0
- package/dist/context.js +117 -0
- package/dist/context.js.map +1 -0
- package/dist/fix.d.ts +1 -0
- package/dist/fix.js +51 -0
- package/dist/fix.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/instructions.d.ts +31 -0
- package/dist/instructions.js +150 -0
- package/dist/instructions.js.map +1 -0
- package/dist/launcher-entry.d.ts +1 -0
- package/dist/launcher-entry.js +8 -0
- package/dist/launcher-entry.js.map +1 -0
- package/dist/launcher.cjs +10606 -0
- package/dist/launcher.d.ts +3 -0
- package/dist/launcher.js +117 -0
- package/dist/launcher.js.map +1 -0
- package/dist/runtime-manifest.d.ts +29 -0
- package/dist/runtime-manifest.js +75 -0
- package/dist/runtime-manifest.js.map +1 -0
- package/dist/runtime-package.d.ts +10 -0
- package/dist/runtime-package.js +66 -0
- package/dist/runtime-package.js.map +1 -0
- package/dist/scaffold-commands.d.ts +3 -0
- package/dist/scaffold-commands.js +214 -0
- package/dist/scaffold-commands.js.map +1 -0
- package/dist/vendor.d.ts +1 -0
- package/dist/vendor.js +260 -0
- package/dist/vendor.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@sumi/create/README.md +77 -0
- package/node_modules/@sumi/create/dist/index.d.ts +1 -0
- package/node_modules/@sumi/create/dist/index.js +2 -0
- package/node_modules/@sumi/create/dist/index.js.map +1 -0
- package/node_modules/@sumi/create/dist/scaffold.d.ts +29 -0
- package/node_modules/@sumi/create/dist/scaffold.js +134 -0
- package/node_modules/@sumi/create/dist/scaffold.js.map +1 -0
- package/node_modules/@sumi/create/package.json +22 -0
- package/node_modules/@sumi/create/template/.gitattributes +1 -0
- package/node_modules/@sumi/create/template/.prettierignore +5 -0
- package/node_modules/@sumi/create/template/.prettierrc +1 -0
- package/node_modules/@sumi/create/template/AGENTS.md +28 -0
- package/node_modules/@sumi/create/template/control/baselines/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/control/config.yaml +59 -0
- package/node_modules/@sumi/create/template/control/decisions/0001-config-module.md +15 -0
- package/node_modules/@sumi/create/template/control/flows/change.flow.yaml +14 -0
- package/node_modules/@sumi/create/template/control/flows/check.flow.yaml +25 -0
- package/node_modules/@sumi/create/template/control/plugins/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/control/rubrics/architecture.yaml +14 -0
- package/node_modules/@sumi/create/template/eslint.config.mjs +9 -0
- package/node_modules/@sumi/create/template/gitignore +4 -0
- package/node_modules/@sumi/create/template/init/AGENTS.md +27 -0
- package/node_modules/@sumi/create/template/init/control/baselines/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/init/control/flows/check.flow.yaml +20 -0
- package/node_modules/@sumi/create/template/init/control/plugins/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/init/control/rubrics/architecture.yaml +14 -0
- package/node_modules/@sumi/create/template/init/openspec/changes/archive/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/init/openspec/config.yaml +1 -0
- package/node_modules/@sumi/create/template/init/openspec/specs/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/init/precedents/registry.yaml +1 -0
- package/node_modules/@sumi/create/template/openspec/changes/archive/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/openspec/config.yaml +1 -0
- package/node_modules/@sumi/create/template/openspec/specs/.gitkeep +0 -0
- package/node_modules/@sumi/create/template/package.json +21 -0
- package/node_modules/@sumi/create/template/precedents/no-env-in-business/check.mjs +36 -0
- package/node_modules/@sumi/create/template/precedents/no-env-in-business/fixtures/compliant/src/a.ts +3 -0
- package/node_modules/@sumi/create/template/precedents/no-env-in-business/fixtures/violating/src/a.ts +1 -0
- package/node_modules/@sumi/create/template/precedents/no-env-in-business/precedent.yaml +9 -0
- package/node_modules/@sumi/create/template/precedents/registry.yaml +3 -0
- package/node_modules/@sumi/create/template/src/config.ts +4 -0
- package/node_modules/@sumi/create/template/src/index.test.ts +6 -0
- package/node_modules/@sumi/create/template/src/index.ts +5 -0
- package/node_modules/@sumi/create/template/tsconfig.json +12 -0
- package/node_modules/@sumi/kernel/README.md +128 -0
- package/node_modules/@sumi/kernel/dist/brief.d.ts +41 -0
- package/node_modules/@sumi/kernel/dist/brief.js +82 -0
- package/node_modules/@sumi/kernel/dist/brief.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/config.d.ts +40 -0
- package/node_modules/@sumi/kernel/dist/config.js +94 -0
- package/node_modules/@sumi/kernel/dist/config.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/engine.d.ts +33 -0
- package/node_modules/@sumi/kernel/dist/engine.js +242 -0
- package/node_modules/@sumi/kernel/dist/engine.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/errors.d.ts +5 -0
- package/node_modules/@sumi/kernel/dist/errors.js +9 -0
- package/node_modules/@sumi/kernel/dist/errors.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/flow.d.ts +37 -0
- package/node_modules/@sumi/kernel/dist/flow.js +132 -0
- package/node_modules/@sumi/kernel/dist/flow.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/index.d.ts +10 -0
- package/node_modules/@sumi/kernel/dist/index.js +11 -0
- package/node_modules/@sumi/kernel/dist/index.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/plan.d.ts +21 -0
- package/node_modules/@sumi/kernel/dist/plan.js +68 -0
- package/node_modules/@sumi/kernel/dist/plan.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/record.d.ts +31 -0
- package/node_modules/@sumi/kernel/dist/record.js +54 -0
- package/node_modules/@sumi/kernel/dist/record.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/registry.d.ts +32 -0
- package/node_modules/@sumi/kernel/dist/registry.js +126 -0
- package/node_modules/@sumi/kernel/dist/registry.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/runner.d.ts +15 -0
- package/node_modules/@sumi/kernel/dist/runner.js +101 -0
- package/node_modules/@sumi/kernel/dist/runner.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/scope.d.ts +31 -0
- package/node_modules/@sumi/kernel/dist/scope.js +136 -0
- package/node_modules/@sumi/kernel/dist/scope.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/testing.d.ts +7 -0
- package/node_modules/@sumi/kernel/dist/testing.js +32 -0
- package/node_modules/@sumi/kernel/dist/testing.js.map +1 -0
- package/node_modules/@sumi/kernel/dist/windows-process.d.ts +1 -0
- package/node_modules/@sumi/kernel/dist/windows-process.js +90 -0
- package/node_modules/@sumi/kernel/dist/windows-process.js.map +1 -0
- package/node_modules/@sumi/kernel/package.json +20 -0
- package/node_modules/@sumi/kernel/test/fixtures/fake-plugin.mjs +44 -0
- package/node_modules/@sumi/kernel/test/fixtures/py-plugin.py +3 -0
- package/node_modules/@sumi/plugin-sdk/README.md +144 -0
- package/node_modules/@sumi/plugin-sdk/dist/env.d.ts +5 -0
- package/node_modules/@sumi/plugin-sdk/dist/env.js +30 -0
- package/node_modules/@sumi/plugin-sdk/dist/env.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/git.d.ts +7 -0
- package/node_modules/@sumi/plugin-sdk/dist/git.js +19 -0
- package/node_modules/@sumi/plugin-sdk/dist/git.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/index.d.ts +9 -0
- package/node_modules/@sumi/plugin-sdk/dist/index.js +10 -0
- package/node_modules/@sumi/plugin-sdk/dist/index.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/process.d.ts +7 -0
- package/node_modules/@sumi/plugin-sdk/dist/process.js +13 -0
- package/node_modules/@sumi/plugin-sdk/dist/process.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/project.d.ts +9 -0
- package/node_modules/@sumi/plugin-sdk/dist/project.js +55 -0
- package/node_modules/@sumi/plugin-sdk/dist/project.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/protocol.d.ts +200 -0
- package/node_modules/@sumi/plugin-sdk/dist/protocol.js +36 -0
- package/node_modules/@sumi/plugin-sdk/dist/protocol.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/rules.d.ts +17 -0
- package/node_modules/@sumi/plugin-sdk/dist/rules.js +16 -0
- package/node_modules/@sumi/plugin-sdk/dist/rules.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/sdk.d.ts +12 -0
- package/node_modules/@sumi/plugin-sdk/dist/sdk.js +51 -0
- package/node_modules/@sumi/plugin-sdk/dist/sdk.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/tool-batches.d.ts +11 -0
- package/node_modules/@sumi/plugin-sdk/dist/tool-batches.js +41 -0
- package/node_modules/@sumi/plugin-sdk/dist/tool-batches.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/dist/validate.d.ts +8 -0
- package/node_modules/@sumi/plugin-sdk/dist/validate.js +221 -0
- package/node_modules/@sumi/plugin-sdk/dist/validate.js.map +1 -0
- package/node_modules/@sumi/plugin-sdk/package.json +18 -0
- package/node_modules/@sumi/plugins-core/README.md +148 -0
- package/node_modules/@sumi/plugins-core/dist/baseline.d.ts +34 -0
- package/node_modules/@sumi/plugins-core/dist/baseline.js +54 -0
- package/node_modules/@sumi/plugins-core/dist/baseline.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/commands/adopt.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/commands/adopt.js +182 -0
- package/node_modules/@sumi/plugins-core/dist/commands/adopt.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/commands/baseline.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/commands/baseline.js +56 -0
- package/node_modules/@sumi/plugins-core/dist/commands/baseline.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/fix/format.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/fix/format.js +4 -0
- package/node_modules/@sumi/plugins-core/dist/fix/format.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/fix/lint.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/fix/lint.js +4 -0
- package/node_modules/@sumi/plugins-core/dist/fix/lint.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/index.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/index.js +2 -0
- package/node_modules/@sumi/plugins-core/dist/index.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/lib.d.ts +34 -0
- package/node_modules/@sumi/plugins-core/dist/lib.js +113 -0
- package/node_modules/@sumi/plugins-core/dist/lib.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/agent-drift.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/agent-drift.js +32 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/agent-drift.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/control-docs.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/control-docs.js +109 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/control-docs.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/coverage.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/coverage.js +107 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/coverage.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/exec.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/exec.js +69 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/exec.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/format.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/format.js +41 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/format.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/layer-boundary.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/layer-boundary.js +87 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/layer-boundary.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/lint.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/lint.js +91 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/lint.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/ratchet.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/ratchet.js +83 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/ratchet.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/test-affected.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/test-affected.js +283 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/test-affected.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/typecheck.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/typecheck.js +31 -0
- package/node_modules/@sumi/plugins-core/dist/plugins/typecheck.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/test-scope.d.ts +77 -0
- package/node_modules/@sumi/plugins-core/dist/test-scope.js +175 -0
- package/node_modules/@sumi/plugins-core/dist/test-scope.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/testing.d.ts +13 -0
- package/node_modules/@sumi/plugins-core/dist/testing.js +47 -0
- package/node_modules/@sumi/plugins-core/dist/testing.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/tool-batches.d.ts +11 -0
- package/node_modules/@sumi/plugins-core/dist/tool-batches.js +41 -0
- package/node_modules/@sumi/plugins-core/dist/tool-batches.js.map +1 -0
- package/node_modules/@sumi/plugins-core/dist/vitest-runner.d.ts +1 -0
- package/node_modules/@sumi/plugins-core/dist/vitest-runner.js +126 -0
- package/node_modules/@sumi/plugins-core/dist/vitest-runner.js.map +1 -0
- package/node_modules/@sumi/plugins-core/instructions/adopt.md +37 -0
- package/node_modules/@sumi/plugins-core/package.json +25 -0
- package/node_modules/@sumi/plugins-core/sumi-plugins.yaml +80 -0
- package/node_modules/@sumi/plugins-governance/README.md +159 -0
- package/node_modules/@sumi/plugins-governance/dist/checkout.d.ts +45 -0
- package/node_modules/@sumi/plugins-governance/dist/checkout.js +138 -0
- package/node_modules/@sumi/plugins-governance/dist/checkout.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/approve.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/approve.js +27 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/approve.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/gate.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/gate.js +177 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/gate.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/guard.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/guard.js +27 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/guard.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/pr-report-check.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/pr-report-check.js +8 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/pr-report-check.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/pr-report.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/pr-report.js +128 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/pr-report.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/unlock.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/unlock.js +21 -0
- package/node_modules/@sumi/plugins-governance/dist/commands/unlock.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/guard.d.ts +19 -0
- package/node_modules/@sumi/plugins-governance/dist/guard.js +173 -0
- package/node_modules/@sumi/plugins-governance/dist/guard.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/index.d.ts +4 -0
- package/node_modules/@sumi/plugins-governance/dist/index.js +5 -0
- package/node_modules/@sumi/plugins-governance/dist/index.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/plugins/protected-paths.d.ts +1 -0
- package/node_modules/@sumi/plugins-governance/dist/plugins/protected-paths.js +31 -0
- package/node_modules/@sumi/plugins-governance/dist/plugins/protected-paths.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-base.d.ts +19 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-base.js +49 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-base.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-report-markers.d.ts +4 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-report-markers.js +11 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-report-markers.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-report-status.d.ts +14 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-report-status.js +97 -0
- package/node_modules/@sumi/plugins-governance/dist/pr-report-status.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/protected.d.ts +22 -0
- package/node_modules/@sumi/plugins-governance/dist/protected.js +65 -0
- package/node_modules/@sumi/plugins-governance/dist/protected.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/push-base.d.ts +9 -0
- package/node_modules/@sumi/plugins-governance/dist/push-base.js +42 -0
- package/node_modules/@sumi/plugins-governance/dist/push-base.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/semantic.d.ts +5 -0
- package/node_modules/@sumi/plugins-governance/dist/semantic.js +105 -0
- package/node_modules/@sumi/plugins-governance/dist/semantic.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/dist/state.d.ts +48 -0
- package/node_modules/@sumi/plugins-governance/dist/state.js +155 -0
- package/node_modules/@sumi/plugins-governance/dist/state.js.map +1 -0
- package/node_modules/@sumi/plugins-governance/instructions/push.md +20 -0
- package/node_modules/@sumi/plugins-governance/package.json +25 -0
- package/node_modules/@sumi/plugins-governance/sumi-plugins.yaml +23 -0
- package/node_modules/@sumi/plugins-openspec/README.md +80 -0
- package/node_modules/@sumi/plugins-openspec/dist/index.d.ts +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/index.js +2 -0
- package/node_modules/@sumi/plugins-openspec/dist/index.js.map +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/openspec.d.ts +21 -0
- package/node_modules/@sumi/plugins-openspec/dist/openspec.js +59 -0
- package/node_modules/@sumi/plugins-openspec/dist/openspec.js.map +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/change-tasks.d.ts +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/change-tasks.js +85 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/change-tasks.js.map +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/planner.d.ts +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/planner.js +16 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/planner.js.map +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/validate.d.ts +1 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/validate.js +45 -0
- package/node_modules/@sumi/plugins-openspec/dist/plugins/validate.js.map +1 -0
- package/node_modules/@sumi/plugins-openspec/package.json +22 -0
- package/node_modules/@sumi/plugins-openspec/sumi-plugins.yaml +20 -0
- package/node_modules/@sumi/plugins-precedent/README.md +162 -0
- package/node_modules/@sumi/plugins-precedent/dist/candidates.d.ts +17 -0
- package/node_modules/@sumi/plugins-precedent/dist/candidates.js +18 -0
- package/node_modules/@sumi/plugins-precedent/dist/candidates.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/commands/context.d.ts +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/commands/context.js +23 -0
- package/node_modules/@sumi/plugins-precedent/dist/commands/context.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/commands/promote.d.ts +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/commands/promote.js +89 -0
- package/node_modules/@sumi/plugins-precedent/dist/commands/promote.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/index.d.ts +2 -0
- package/node_modules/@sumi/plugins-precedent/dist/index.js +3 -0
- package/node_modules/@sumi/plugins-precedent/dist/index.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/model.d.ts +65 -0
- package/node_modules/@sumi/plugins-precedent/dist/model.js +150 -0
- package/node_modules/@sumi/plugins-precedent/dist/model.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/checker.d.ts +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/checker.js +32 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/checker.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/harvest.d.ts +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/harvest.js +174 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/harvest.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/planner.d.ts +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/planner.js +103 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/planner.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/selftest.d.ts +1 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/selftest.js +220 -0
- package/node_modules/@sumi/plugins-precedent/dist/plugins/selftest.js.map +1 -0
- package/node_modules/@sumi/plugins-precedent/instructions/distill.md +12 -0
- package/node_modules/@sumi/plugins-precedent/package.json +26 -0
- package/node_modules/@sumi/plugins-precedent/sumi-plugins.yaml +33 -0
- package/node_modules/@sumi/plugins-review/README.md +131 -0
- package/node_modules/@sumi/plugins-review/dist/commands/context.d.ts +1 -0
- package/node_modules/@sumi/plugins-review/dist/commands/context.js +32 -0
- package/node_modules/@sumi/plugins-review/dist/commands/context.js.map +1 -0
- package/node_modules/@sumi/plugins-review/dist/commands/submit.d.ts +1 -0
- package/node_modules/@sumi/plugins-review/dist/commands/submit.js +46 -0
- package/node_modules/@sumi/plugins-review/dist/commands/submit.js.map +1 -0
- package/node_modules/@sumi/plugins-review/dist/index.d.ts +1 -0
- package/node_modules/@sumi/plugins-review/dist/index.js +2 -0
- package/node_modules/@sumi/plugins-review/dist/index.js.map +1 -0
- package/node_modules/@sumi/plugins-review/dist/plugins/rubric.d.ts +1 -0
- package/node_modules/@sumi/plugins-review/dist/plugins/rubric.js +116 -0
- package/node_modules/@sumi/plugins-review/dist/plugins/rubric.js.map +1 -0
- package/node_modules/@sumi/plugins-review/dist/review.d.ts +64 -0
- package/node_modules/@sumi/plugins-review/dist/review.js +104 -0
- package/node_modules/@sumi/plugins-review/dist/review.js.map +1 -0
- package/node_modules/@sumi/plugins-review/package.json +25 -0
- package/node_modules/@sumi/plugins-review/sumi-plugins.yaml +13 -0
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +69 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +64 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +743 -0
- package/node_modules/picomatch/index.js +17 -0
- package/node_modules/picomatch/lib/constants.js +184 -0
- package/node_modules/picomatch/lib/parse.js +1425 -0
- package/node_modules/picomatch/lib/picomatch.js +361 -0
- package/node_modules/picomatch/lib/scan.js +403 -0
- package/node_modules/picomatch/lib/utils.js +72 -0
- package/node_modules/picomatch/package.json +83 -0
- package/node_modules/picomatch/posix.js +3 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/README.md +1233 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/header.js +348 -0
- package/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/list.js +153 -0
- package/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +604 -0
- package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts +92 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/header.js +311 -0
- package/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/list.js +113 -0
- package/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/esm/options.d.ts +604 -0
- package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.d.ts +92 -0
- package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/parse.js +651 -0
- package/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pax.js +178 -0
- package/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/esm/types.d.ts +16 -0
- package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/tar/package.json +298 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/README.md +205 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +68 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +120 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/package.json +44 -4
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join, normalize } from 'node:path';
|
|
3
|
+
import { configFile, definePlugin, gitPaths, result } from '@sumi/plugin-sdk';
|
|
4
|
+
import picomatch from 'picomatch';
|
|
5
|
+
import { filterByExt, JS_EXTS, readProjectConfig } from '../lib.js';
|
|
6
|
+
const IMPORT_RE = /(?:import|export)\s[^'"]*?from\s*['"]([^'"]+)['"]|import\s*\(?\s*['"]([^'"]+)['"]|require\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
7
|
+
/** 层边界:每个文件必须归属某个区域或中立区;business 区不得导入 control 区与 precedent 区的模块。 */
|
|
8
|
+
await definePlugin((ctx) => {
|
|
9
|
+
const config = readProjectConfig(ctx.repoRoot);
|
|
10
|
+
const zones = config.zones ?? {};
|
|
11
|
+
const owned = picomatch([...Object.values(zones).flat(), ...(config.neutral ?? [])], { dot: true });
|
|
12
|
+
const inZone = (name) => picomatch(zones[name] ?? [], { dot: true });
|
|
13
|
+
const isBusiness = inZone('business');
|
|
14
|
+
const isGuarded = (f) => inZone('control')(f) || inZone('precedent')(f);
|
|
15
|
+
// 始终使用内核给出的文件列表(全量时为全仓减去排除路径)。
|
|
16
|
+
const files = ctx.files;
|
|
17
|
+
const findings = [];
|
|
18
|
+
for (const file of files) {
|
|
19
|
+
if (!owned(file)) {
|
|
20
|
+
findings.push({
|
|
21
|
+
id: `F${findings.length + 1}`,
|
|
22
|
+
rule: 'unowned-file',
|
|
23
|
+
severity: 'error',
|
|
24
|
+
message: `${file} 不属于任何区域`,
|
|
25
|
+
file,
|
|
26
|
+
subject: file,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
for (const file of filterByExt(files, JS_EXTS).filter((f) => isBusiness(f))) {
|
|
31
|
+
const full = join(ctx.repoRoot, file);
|
|
32
|
+
if (!existsSync(full))
|
|
33
|
+
continue;
|
|
34
|
+
const lines = readFileSync(full, 'utf8').split('\n');
|
|
35
|
+
lines.forEach((line, i) => {
|
|
36
|
+
for (const m of line.matchAll(IMPORT_RE)) {
|
|
37
|
+
const spec = m[1] ?? m[2] ?? m[3];
|
|
38
|
+
if (!spec.startsWith('.'))
|
|
39
|
+
continue;
|
|
40
|
+
const target = normalize(join(dirname(file), spec));
|
|
41
|
+
if (isGuarded(target) || isGuarded(`${target}/`)) {
|
|
42
|
+
findings.push({
|
|
43
|
+
id: `F${findings.length + 1}`,
|
|
44
|
+
rule: 'business-imports-control',
|
|
45
|
+
severity: 'error',
|
|
46
|
+
message: `business 区不得导入 ${target}`,
|
|
47
|
+
file,
|
|
48
|
+
line: i + 1,
|
|
49
|
+
subject: target,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// control 区与 precedent 区的文件被 git 忽略时只存在于本机:克隆后流程会引用不存在的插件、判例或规则。
|
|
56
|
+
// 依赖目录(node_modules)是安装产物,不算在内。
|
|
57
|
+
const ignored = gitPaths(ctx.repoRoot, ['ls-files', '--others', '--ignored', '--exclude-standard', '--directory']).filter((f) => !/(^|\/)node_modules\/?$/.test(f) && (isGuarded(f) || isGuarded(`${f}x`)));
|
|
58
|
+
// --directory 在目录内容全部被忽略时也会列出上级目录,只保留最深的条目
|
|
59
|
+
for (const file of ignored.filter((f) => !ignored.some((other) => other !== f && other.startsWith(f)))) {
|
|
60
|
+
findings.push({
|
|
61
|
+
id: `F${findings.length + 1}`,
|
|
62
|
+
rule: 'ignored-control-file',
|
|
63
|
+
severity: 'error',
|
|
64
|
+
message: `${file} 被 .gitignore 忽略,只存在于本机,克隆后不存在;请改名或在 .gitignore 中加例外`,
|
|
65
|
+
file,
|
|
66
|
+
subject: file,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const unowned = findings.some((f) => f.rule === 'unowned-file');
|
|
70
|
+
return result({
|
|
71
|
+
status: findings.length ? 'fail' : 'pass',
|
|
72
|
+
summary: findings.length ? `${findings.length} 处层边界问题` : '层边界正确',
|
|
73
|
+
findings,
|
|
74
|
+
checked: ctx.all ? 'all' : ctx.files,
|
|
75
|
+
next: unowned
|
|
76
|
+
? [
|
|
77
|
+
{
|
|
78
|
+
type: 'edit',
|
|
79
|
+
file: configFile(ctx.repoRoot) ?? 'control/config.yaml',
|
|
80
|
+
intent: '把未归属的路径声明到某个区域(zones)或中立区(neutral)',
|
|
81
|
+
why: '每个文件都必须归属一层',
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
: undefined,
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=layer-boundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-boundary.js","sourceRoot":"","sources":["../../src/plugins/layer-boundary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAgB,MAAM,kBAAkB,CAAC;AAC5F,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEpE,MAAM,SAAS,GAAG,sHAAsH,CAAC;AAEzI,qEAAqE;AACrE,MAAM,YAAY,CAAC,CAAC,GAAG,EAAE,EAAE;IACzB,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,QAAQ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gBACE;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,qBAAqB;oBACvD,MAAM,EAAE,oCAAoC;oBAC5C,GAAG,EAAE,aAAa;iBACnB;aACF;YACH,CAAC,CAAC,SAAS;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { definePlugin, result, writeEvidence } from '@sumi/plugin-sdk';
|
|
2
|
+
import { filterByExt, findTool, gitShow, JS_EXTS, runFileTool, runTool, toRepoPath } from '../lib.js';
|
|
3
|
+
function parseOutput(stdout) {
|
|
4
|
+
try {
|
|
5
|
+
return JSON.parse(stdout);
|
|
6
|
+
}
|
|
7
|
+
catch {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/** 按 规则+消息 统计某文件的告警,用于计算相对基准的新增量。 */
|
|
12
|
+
function countWarnings(messages) {
|
|
13
|
+
const counts = new Map();
|
|
14
|
+
for (const m of messages.filter((x) => x.severity === 1)) {
|
|
15
|
+
const key = `${m.ruleId}\0${m.message}`;
|
|
16
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
17
|
+
}
|
|
18
|
+
return counts;
|
|
19
|
+
}
|
|
20
|
+
/** lint 检查:error 级为 finding 并失败;warning 计入指标 warnings(全量为绝对值,改动范围为新增量)。 */
|
|
21
|
+
await definePlugin((ctx) => {
|
|
22
|
+
const eslint = findTool(ctx, 'eslint');
|
|
23
|
+
if (!eslint)
|
|
24
|
+
return result({ status: 'skipped', summary: '未找到 eslint,请在项目中安装' });
|
|
25
|
+
// 始终使用内核给出的文件列表(全量时为全仓减去排除路径),不让工具自行扫描。
|
|
26
|
+
const files = filterByExt(ctx.files, JS_EXTS);
|
|
27
|
+
if (files.length === 0) {
|
|
28
|
+
return result({ status: 'pass', summary: '没有需要检查的文件', checked: [], metrics: [{ name: 'warnings', value: 0, added: 0 }] });
|
|
29
|
+
}
|
|
30
|
+
// eslint 9 起才有 --no-warn-ignored;eslint 8(旧配置格式)不能传这个参数。
|
|
31
|
+
const major = Number(/(\d+)\./.exec(runTool(ctx, eslint, ['--version']).stdout)?.[1] ?? 9);
|
|
32
|
+
const execution = runFileTool(ctx, eslint, ['--format', 'json', ...(major >= 9 ? ['--no-warn-ignored'] : [])], files);
|
|
33
|
+
const stderr = [...execution.runs.map((run) => run.stderr), execution.error ?? ''].filter(Boolean).join('\n');
|
|
34
|
+
const reports = execution.runs.map((run) => parseOutput(run.stdout));
|
|
35
|
+
const report = reports.every((batch) => batch !== null) ? reports.flat() : null;
|
|
36
|
+
const evidence = [
|
|
37
|
+
writeEvidence(ctx, 'eslint.json', report ? JSON.stringify(report) : execution.runs.map((run) => run.stdout).join('\n')),
|
|
38
|
+
writeEvidence(ctx, 'eslint.stderr', stderr),
|
|
39
|
+
];
|
|
40
|
+
if (execution.error)
|
|
41
|
+
return result({ status: 'blocked', summary: execution.error, evidence });
|
|
42
|
+
const failedRun = execution.runs.find((run) => run.status === null || run.status > 1);
|
|
43
|
+
if (failedRun) {
|
|
44
|
+
return result({ status: 'blocked', summary: `eslint 运行出错:${failedRun.stderr.split('\n')[0] ?? ''}`, evidence });
|
|
45
|
+
}
|
|
46
|
+
if (!report)
|
|
47
|
+
return result({ status: 'blocked', summary: 'eslint 输出无法解析', evidence });
|
|
48
|
+
const findings = [];
|
|
49
|
+
let warnings = 0;
|
|
50
|
+
let added = 0;
|
|
51
|
+
for (const file of report) {
|
|
52
|
+
const rel = toRepoPath(ctx.repoRoot, file.filePath);
|
|
53
|
+
for (const m of file.messages) {
|
|
54
|
+
if (m.severity === 2) {
|
|
55
|
+
findings.push({
|
|
56
|
+
id: `F${findings.length + 1}`,
|
|
57
|
+
rule: m.ruleId ?? 'eslint',
|
|
58
|
+
severity: 'error',
|
|
59
|
+
message: m.message,
|
|
60
|
+
file: rel,
|
|
61
|
+
line: m.line,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
else
|
|
65
|
+
warnings++;
|
|
66
|
+
}
|
|
67
|
+
if (!ctx.all) {
|
|
68
|
+
const current = countWarnings(file.messages);
|
|
69
|
+
const before = gitShow(ctx, rel);
|
|
70
|
+
let previous = new Map();
|
|
71
|
+
if (before !== null) {
|
|
72
|
+
const old = parseOutput(runTool(ctx, eslint, ['--format', 'json', '--stdin', '--stdin-filename', rel], before).stdout);
|
|
73
|
+
previous = countWarnings(old?.[0]?.messages ?? []);
|
|
74
|
+
}
|
|
75
|
+
for (const [key, n] of current)
|
|
76
|
+
added += Math.max(0, n - (previous.get(key) ?? 0));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return result({
|
|
80
|
+
status: findings.length ? 'fail' : 'pass',
|
|
81
|
+
summary: findings.length ? `${findings.length} 个 lint 错误` : `lint 通过(${warnings} 个告警)`,
|
|
82
|
+
findings,
|
|
83
|
+
checked: ctx.all ? 'all' : files,
|
|
84
|
+
evidence,
|
|
85
|
+
metrics: [{ name: 'warnings', value: warnings, ...(ctx.all ? {} : { added }) }],
|
|
86
|
+
next: findings.length
|
|
87
|
+
? [{ type: 'run', argv: ['sumi', 'fix', ctx.stepId], effects: ['writes-worktree'], why: '部分问题可自动修复' }]
|
|
88
|
+
: undefined,
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=lint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../../src/plugins/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAatG,SAAS,WAAW,CAAC,MAAc;IAC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C,MAAM,YAAY,CAAC,CAAC,CAAC,WAAW,QAAQ,OAAO;QACtF,QAAQ;QACR,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;QAChC,QAAQ;QACR,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC/E,IAAI,EAAE,QAAQ,CAAC,MAAM;YACnB,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;YACtG,CAAC,CAAC,SAAS;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { compareMetric, definePlugin, result } from '@sumi/plugin-sdk';
|
|
4
|
+
import { readBaselines, readPlan } from '../baseline.js';
|
|
5
|
+
/**
|
|
6
|
+
* 指标棘轮:读取本次运行中各步骤的指标与基线比较。
|
|
7
|
+
* 全仓范围运行的步骤比较绝对值;改动范围运行的步骤只比较新增量(预算默认 0)。
|
|
8
|
+
*/
|
|
9
|
+
await definePlugin((ctx) => {
|
|
10
|
+
const plan = readPlan(ctx.runDir);
|
|
11
|
+
const self = plan.steps.findIndex((s) => s.id === ctx.stepId);
|
|
12
|
+
const baselines = readBaselines(ctx.repoRoot);
|
|
13
|
+
const budgets = ctx.config.budgets ?? {};
|
|
14
|
+
const findings = [];
|
|
15
|
+
const next = [];
|
|
16
|
+
let status = 'pass';
|
|
17
|
+
const fail = (rule, message, severity = 'error') => {
|
|
18
|
+
findings.push({ id: `F${findings.length + 1}`, rule, severity, message, subject: message });
|
|
19
|
+
if (severity === 'error' && status === 'pass')
|
|
20
|
+
status = 'fail';
|
|
21
|
+
};
|
|
22
|
+
const late = plan.steps.slice(self + 1).filter((s) => s.metrics.length > 0);
|
|
23
|
+
if (late.length) {
|
|
24
|
+
return result({ status: 'blocked', summary: `棘轮必须排在产出指标的步骤之后:${late.map((s) => s.id).join('、')}` });
|
|
25
|
+
}
|
|
26
|
+
let improved = false;
|
|
27
|
+
for (const step of plan.steps.slice(0, self).filter((s) => s.metrics.length > 0)) {
|
|
28
|
+
const path = join(ctx.runDir, step.id, 'result.json');
|
|
29
|
+
if (!existsSync(path))
|
|
30
|
+
continue;
|
|
31
|
+
const record = JSON.parse(readFileSync(path, 'utf8'));
|
|
32
|
+
if (record.state === 'not-applicable' || record.state === 'skipped' || record.state === 'pending')
|
|
33
|
+
continue;
|
|
34
|
+
if (record.state === 'blocked') {
|
|
35
|
+
status = 'blocked';
|
|
36
|
+
findings.push({
|
|
37
|
+
id: `F${findings.length + 1}`,
|
|
38
|
+
rule: 'source-blocked',
|
|
39
|
+
severity: 'error',
|
|
40
|
+
message: `${step.id} 受阻,无法比较其指标`,
|
|
41
|
+
});
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
for (const decl of step.metrics) {
|
|
45
|
+
const key = `${step.id}:${decl.name}`;
|
|
46
|
+
const metric = record.metrics.find((m) => m.name === decl.name);
|
|
47
|
+
if (!metric) {
|
|
48
|
+
fail('metric-missing', `${step.id} 未输出声明的指标 ${decl.name}`);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (record.checked === 'all') {
|
|
52
|
+
const base = baselines[key];
|
|
53
|
+
if (base === undefined)
|
|
54
|
+
continue;
|
|
55
|
+
const { worse, better } = compareMetric(decl, metric.value, base);
|
|
56
|
+
const tol = decl.tolerance ? `(容差 ${decl.tolerance})` : '';
|
|
57
|
+
if (worse)
|
|
58
|
+
fail('metric-regressed', `${key} 变差:基线 ${base},当前 ${metric.value}${tol}`);
|
|
59
|
+
if (better)
|
|
60
|
+
improved = true;
|
|
61
|
+
}
|
|
62
|
+
else if (decl.direction === 'lower-is-better') {
|
|
63
|
+
if (metric.added === undefined) {
|
|
64
|
+
fail('metric-missing', `${step.id} 未输出 ${decl.name} 的新增量`);
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
const budget = budgets[key] ?? 0;
|
|
68
|
+
if (metric.added > budget)
|
|
69
|
+
fail('metric-added', `${key} 新增 ${metric.added},超出预算 ${budget}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (improved)
|
|
74
|
+
next.push({ type: 'run', argv: ['sumi', 'baseline', 'tighten'], effects: ['writes-control'], why: '指标变好,可以收紧基线' });
|
|
75
|
+
return result({
|
|
76
|
+
status,
|
|
77
|
+
summary: findings.length ? `${findings.length} 项指标问题` : '指标未变差',
|
|
78
|
+
findings,
|
|
79
|
+
checked: 'all',
|
|
80
|
+
next: next.length ? next : undefined,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=ratchet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ratchet.js","sourceRoot":"","sources":["../../src/plugins/ratchet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAA8C,MAAM,kBAAkB,CAAC;AACnH,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAuB,MAAM,gBAAgB,CAAC;AAE9E;;;GAGG;AACH,MAAM,YAAY,CAAC,CAAC,GAAG,EAAE,EAAE;IACzB,MAAM,IA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CAAC;QACH,CAAC;IACH,CAAC;IACD,IAAI,QAAQ;QACV,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC;IACrH,OAAO,MAAM,CAAC;QACZ,MAAM;QACN,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,QAAQ,CAAC,CAAC,CAAC,OAAO;QAC/D,QAAQ;QACR,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
import { existsSync, readFileSync, realpathSync } from 'node:fs';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
4
|
+
import { dirname, join } from 'node:path';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
import { definePlugin, gitPaths, result, spawnCommandSync, writeEvidence, } from '@sumi/plugin-sdk';
|
|
7
|
+
import { toRepoPath } from '../lib.js';
|
|
8
|
+
import { classifyChanges, DEFAULT_IGNORE, decideTestModes, owningPackage, packageManager, readWorkspace, rootTestScript, wholeRunReason, } from '../test-scope.js';
|
|
9
|
+
const RUNNER = fileURLToPath(new URL('../vitest-runner.js', import.meta.url));
|
|
10
|
+
const FALLBACK_EXIT = 3;
|
|
11
|
+
const INCOMPATIBLE_EXIT = 4;
|
|
12
|
+
/**
|
|
13
|
+
* 从目录向上查找项目安装的 vitest(vitest/node 入口);找不到时返回 null。
|
|
14
|
+
* 只认项目的 node_modules:Node 解析会读取 NODE_PATH(包管理器的命令垫片会设置它),可能解析到 Sumi 自己依赖里的 vitest。
|
|
15
|
+
*/
|
|
16
|
+
function resolveVitest(dir) {
|
|
17
|
+
for (let at = dir;; at = dirname(at)) {
|
|
18
|
+
const manifest = join(at, 'node_modules', 'vitest', 'package.json');
|
|
19
|
+
if (existsSync(manifest)) {
|
|
20
|
+
try {
|
|
21
|
+
return createRequire(manifest).resolve('vitest/node');
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (dirname(at) === at)
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 受影响测试:用 vitest Node API 运行与改动相关的测试(含规划器注入的测试文件),vitest related 追不到的改动改为全部运行;
|
|
33
|
+
* with.workspaces 为 true 时按 workspace 包逐包判定 related、整包或跳过。
|
|
34
|
+
* 被注入的具名测试义务逐项回执:跳过、待办、未执行都不算 passed。
|
|
35
|
+
*/
|
|
36
|
+
await definePlugin((ctx) => {
|
|
37
|
+
const ignore = Array.isArray(ctx.config.ignore) ? ctx.config.ignore : DEFAULT_IGNORE;
|
|
38
|
+
const deleted = !ctx.all && ctx.base ? gitPaths(ctx.repoRoot, ['diff', '--name-only', '--diff-filter=D', '--no-renames', ctx.base]) : [];
|
|
39
|
+
const changes = classifyChanges([...ctx.files.map((path) => ({ path, deleted: false })), ...deleted.map((path) => ({ path, deleted: true }))], ignore);
|
|
40
|
+
const workspace = ctx.config.workspaces === true;
|
|
41
|
+
const vitest = resolveVitest(ctx.repoRoot);
|
|
42
|
+
if (!workspace && !vitest)
|
|
43
|
+
return result({ status: 'skipped', summary: '未找到 vitest,请在项目中安装' });
|
|
44
|
+
if (!ctx.all && changes.length === 0)
|
|
45
|
+
return result({ status: 'pass', summary: '没有受影响的测试', checked: [] });
|
|
46
|
+
const logs = [];
|
|
47
|
+
const evidence = [];
|
|
48
|
+
let seq = 0;
|
|
49
|
+
/** 在 cwd 运行 vitest:files 为 null 时全部运行。related 求图失败时回退全部运行。 */
|
|
50
|
+
const runVitest = (label, cwd, entry, files) => {
|
|
51
|
+
const once = (list) => {
|
|
52
|
+
const tag = seq === 0 ? `vitest` : `vitest-${seq}`;
|
|
53
|
+
seq++;
|
|
54
|
+
const input = join(ctx.evidenceDir, `${tag}.input.json`);
|
|
55
|
+
const report = join(ctx.evidenceDir, `${tag}.json`);
|
|
56
|
+
const resultFile = join(ctx.evidenceDir, `${tag}.result.json`);
|
|
57
|
+
writeEvidence(ctx, `${tag}.input.json`, JSON.stringify({ vitest: entry, files: list, report, result: resultFile }));
|
|
58
|
+
const r = spawnSync(process.execPath, [RUNNER, input], { cwd, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, windowsHide: true });
|
|
59
|
+
logs.push(`## ${label}${list ? '(related)' : '(全部)'}\n${r.stdout ?? ''}${r.stderr ?? ''}${r.error ? `\n无法启动:${r.error.message}` : ''}`);
|
|
60
|
+
const info = existsSync(resultFile)
|
|
61
|
+
? JSON.parse(readFileSync(resultFile, 'utf8'))
|
|
62
|
+
: undefined;
|
|
63
|
+
if (existsSync(report))
|
|
64
|
+
evidence.push(report);
|
|
65
|
+
return {
|
|
66
|
+
status: r.status,
|
|
67
|
+
info,
|
|
68
|
+
report: existsSync(report) ? JSON.parse(readFileSync(report, 'utf8')) : undefined,
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
let r = once(files);
|
|
72
|
+
let fallback = '';
|
|
73
|
+
if (files && r.status === FALLBACK_EXIT) {
|
|
74
|
+
fallback = 'related 无法运行,回退全部运行;';
|
|
75
|
+
r = once(null);
|
|
76
|
+
}
|
|
77
|
+
const note = `${fallback}${r.info?.whole ? `${r.info.whole},全部运行;` : ''}选中 ${r.info?.selected ?? '?'} 个测试文件`;
|
|
78
|
+
if (r.status === INCOMPATIBLE_EXIT)
|
|
79
|
+
return { label, note, blocked: r.info?.incompatible ?? '项目的 vitest 缺少所需 API,需要 vitest >= 3.0' };
|
|
80
|
+
if (r.status === FALLBACK_EXIT)
|
|
81
|
+
return { label, note, blocked: 'vitest 无法启动' };
|
|
82
|
+
if (!r.report)
|
|
83
|
+
return { label, note, blocked: 'vitest 未产出报告' };
|
|
84
|
+
if (r.status !== 0 && r.status !== 1)
|
|
85
|
+
return { label, note, report: r.report, blocked: `vitest 退出码 ${r.status}` };
|
|
86
|
+
if (r.status === 1 && r.report.numFailedTests === 0)
|
|
87
|
+
return { label, note, report: r.report, blocked: 'vitest 失败但没有失败的测试,见日志' };
|
|
88
|
+
return { label, note, report: r.report, selected: r.info?.selected };
|
|
89
|
+
};
|
|
90
|
+
/** 以项目包管理器运行目录下的 test 脚本(测试命令不是单纯 vitest run 时)。 */
|
|
91
|
+
const runScript = (label, cwd, manifest) => {
|
|
92
|
+
const pm = packageManager(ctx.repoRoot);
|
|
93
|
+
const r = spawnCommandSync(pm, ['run', 'test'], { cwd, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, windowsHide: true });
|
|
94
|
+
logs.push(`## ${label}(${pm} run test)\n${r.stdout ?? ''}${r.stderr ?? ''}${r.error ? `\n无法启动:${r.error.message}` : ''}`);
|
|
95
|
+
if (r.error)
|
|
96
|
+
return { label, note: `${pm} run test`, blocked: `无法启动 ${pm}:${r.error.message}` };
|
|
97
|
+
return { label, note: `${pm} run test`, scriptFailure: r.status === 0 ? undefined : { file: manifest, status: r.status } };
|
|
98
|
+
};
|
|
99
|
+
const outcomes = [];
|
|
100
|
+
const lines = [];
|
|
101
|
+
if (!workspace) {
|
|
102
|
+
const reason = ctx.all ? '全量运行' : wholeRunReason(changes);
|
|
103
|
+
const realRoot = realpathSync(ctx.repoRoot);
|
|
104
|
+
const related = changes.filter((c) => c.kind === 'code').map((c) => join(realRoot, c.path));
|
|
105
|
+
if (!reason && related.length === 0)
|
|
106
|
+
return result({ status: 'pass', summary: '没有受影响的测试', checked: ctx.files });
|
|
107
|
+
const run = runVitest('项目', realRoot, vitest, reason ? null : related);
|
|
108
|
+
outcomes.push(run);
|
|
109
|
+
lines.push(reason ? `全部运行(${reason},${run.note})` : `related(输入 ${related.length} 个文件,${run.note})`);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
runWorkspace(ctx, changes, { runVitest, runScript, outcomes, lines });
|
|
113
|
+
}
|
|
114
|
+
evidence.unshift(writeEvidence(ctx, 'vitest.log', logs.join('\n')));
|
|
115
|
+
return summarize(ctx, outcomes, lines, evidence);
|
|
116
|
+
});
|
|
117
|
+
/** workspace 模式:改动归属到包,按依赖求下游,逐包判定并运行;最后按 runRoot 运行仓库根自己的测试。 */
|
|
118
|
+
function runWorkspace(ctx, changes, runners) {
|
|
119
|
+
const { outcomes, lines } = runners;
|
|
120
|
+
const rootTest = rootTestScript(ctx.repoRoot);
|
|
121
|
+
const ws = readWorkspace(ctx.repoRoot);
|
|
122
|
+
if ('error' in ws) {
|
|
123
|
+
lines.push(`全部运行(${ws.error})`);
|
|
124
|
+
outcomes.push(rootTest
|
|
125
|
+
? runWhole(ctx.repoRoot, '仓库根', rootTest, 'package.json', runners)
|
|
126
|
+
: { label: '仓库根', note: '', blocked: rootTest === null ? '根 package.json 不存在' : '根 package.json 没有 test 脚本' });
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const { packages } = ws;
|
|
130
|
+
const byPackage = new Map();
|
|
131
|
+
let outside;
|
|
132
|
+
for (const change of changes) {
|
|
133
|
+
if (change.kind === 'ignored')
|
|
134
|
+
continue;
|
|
135
|
+
const pkg = owningPackage(packages, change.path);
|
|
136
|
+
if (!pkg) {
|
|
137
|
+
outside ??= change.path;
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
const rel = change.path.slice(pkg.rel.length + 1);
|
|
141
|
+
byPackage.set(pkg.name, [...(byPackage.get(pkg.name) ?? []), { ...change, rel, abs: join(pkg.dir, rel) }]);
|
|
142
|
+
}
|
|
143
|
+
const wholeAll = ctx.all ? '全量运行' : outside ? `改动 ${outside} 不属于任何包` : undefined;
|
|
144
|
+
const decisions = decideTestModes(packages, byPackage, {
|
|
145
|
+
wholePackages: wholePackages(ctx.config.wholePackages),
|
|
146
|
+
sourceGuards: ctx.config.sourceGuards ?? {},
|
|
147
|
+
wholeAll,
|
|
148
|
+
});
|
|
149
|
+
writeEvidence(ctx, 'modes.json', JSON.stringify(decisions, null, 2));
|
|
150
|
+
const byName = new Map(packages.map((p) => [p.name, p]));
|
|
151
|
+
for (const d of decisions)
|
|
152
|
+
lines.push(runPackage(byName.get(d.name), d, runners));
|
|
153
|
+
const line = runRoot(ctx.repoRoot, rootTest, wholeAll, outside, byPackage, runners);
|
|
154
|
+
if (line)
|
|
155
|
+
lines.push(line);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* 仓库根自己的测试(宁可多跑:根配置若也扫描子包测试,这些测试会再运行一次)。
|
|
159
|
+
* 包外改动或全量运行:整体运行根 test 脚本。只有包内改动时:根 test 是 vitest run 则在根上以全部包内改动运行一次 related
|
|
160
|
+
* (有配置、删除或非 JS/TS 改动时整体运行);根 test 不是单纯 vitest run(带参数、多份配置、pnpm -r 等)时无法按文件选择,整体运行。
|
|
161
|
+
*/
|
|
162
|
+
function runRoot(root, rootTest, wholeAll, outside, byPackage, runners) {
|
|
163
|
+
const changes = [...byPackage.values()].flat();
|
|
164
|
+
if (!rootTest)
|
|
165
|
+
return outside ? '仓库根:根没有 test 脚本,包外改动未运行根测试' : undefined;
|
|
166
|
+
const whole = (reason) => {
|
|
167
|
+
runners.outcomes.push(runWhole(root, '仓库根', rootTest, 'package.json', runners));
|
|
168
|
+
return `仓库根:整包(${reason})`;
|
|
169
|
+
};
|
|
170
|
+
if (wholeAll)
|
|
171
|
+
return whole(wholeAll);
|
|
172
|
+
if (changes.length === 0)
|
|
173
|
+
return undefined;
|
|
174
|
+
const entry = resolveVitest(root);
|
|
175
|
+
if (rootTest.trim() === 'vitest run' && entry) {
|
|
176
|
+
const reason = wholeRunReason(changes);
|
|
177
|
+
if (reason)
|
|
178
|
+
return whole(reason);
|
|
179
|
+
const files = changes.map((c) => c.abs);
|
|
180
|
+
const run = runners.runVitest('仓库根', realpathSync(root), entry, files);
|
|
181
|
+
runners.outcomes.push(run);
|
|
182
|
+
return `仓库根:related(输入 ${files.length} 个包内改动文件,${run.note})`;
|
|
183
|
+
}
|
|
184
|
+
return whole(rootTest.trim() === 'vitest run' ? '未找到 vitest' : 'test 脚本不是 vitest run');
|
|
185
|
+
}
|
|
186
|
+
/** 整包运行:test 脚本是 vitest run 时由运行器全部运行(保留逐条结果),否则以包管理器运行 test 脚本。 */
|
|
187
|
+
function runWhole(dir, label, test, manifest, { runVitest, runScript }) {
|
|
188
|
+
const entry = resolveVitest(dir);
|
|
189
|
+
return entry && test?.trim() === 'vitest run' ? runVitest(label, dir, entry, null) : runScript(label, dir, manifest);
|
|
190
|
+
}
|
|
191
|
+
function runPackage(pkg, d, runners) {
|
|
192
|
+
if (d.mode === 'skip')
|
|
193
|
+
return `${d.name}:跳过(${d.reason})`;
|
|
194
|
+
const entry = resolveVitest(pkg.dir);
|
|
195
|
+
if (d.mode === 'related' && entry) {
|
|
196
|
+
const run = runners.runVitest(d.name, pkg.dir, entry, d.files);
|
|
197
|
+
if (run.selected === 0 && !d.own)
|
|
198
|
+
return `${d.name}:跳过(related 没有选中测试)`;
|
|
199
|
+
runners.outcomes.push(run);
|
|
200
|
+
return `${d.name}:related(${d.reason},${run.note})`;
|
|
201
|
+
}
|
|
202
|
+
runners.outcomes.push(runWhole(pkg.dir, d.name, pkg.test, `${pkg.rel}/package.json`, runners));
|
|
203
|
+
return `${d.name}:整包(${d.mode === 'related' ? '未找到 vitest' : d.reason})`;
|
|
204
|
+
}
|
|
205
|
+
/** with.wholePackages:包名列表,或包名 → 原因。 */
|
|
206
|
+
function wholePackages(value) {
|
|
207
|
+
if (Array.isArray(value))
|
|
208
|
+
return new Map(value.map((name) => [String(name), '']));
|
|
209
|
+
if (value && typeof value === 'object')
|
|
210
|
+
return new Map(Object.entries(value).map(([k, v]) => [k, String(v ?? '')]));
|
|
211
|
+
return new Map();
|
|
212
|
+
}
|
|
213
|
+
function summarize(ctx, outcomes, lines, evidence) {
|
|
214
|
+
const findings = [];
|
|
215
|
+
const executed = new Map();
|
|
216
|
+
let total = 0;
|
|
217
|
+
for (const outcome of outcomes) {
|
|
218
|
+
for (const file of outcome.report?.testResults ?? []) {
|
|
219
|
+
const rel = toRepoPath(ctx.repoRoot, file.name);
|
|
220
|
+
executed.set(rel, [...(executed.get(rel) ?? []), ...file.assertionResults]);
|
|
221
|
+
total += file.assertionResults.length;
|
|
222
|
+
for (const a of file.assertionResults.filter((x) => x.status === 'failed')) {
|
|
223
|
+
findings.push({
|
|
224
|
+
id: `F${findings.length + 1}`,
|
|
225
|
+
rule: 'test-failed',
|
|
226
|
+
severity: 'error',
|
|
227
|
+
message: `${a.fullName}:${(a.failureMessages?.[0] ?? '').split('\n')[0]}`,
|
|
228
|
+
file: rel,
|
|
229
|
+
subject: a.fullName,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
// 测试文件本身加载失败(语法错误、导入失败)时没有失败的断言,按文件报告
|
|
233
|
+
if (file.status === 'failed' && !file.assertionResults.some((x) => x.status === 'failed')) {
|
|
234
|
+
findings.push({
|
|
235
|
+
id: `F${findings.length + 1}`,
|
|
236
|
+
rule: 'test-failed',
|
|
237
|
+
severity: 'error',
|
|
238
|
+
message: `测试文件失败:${(file.message ?? '').split('\n')[0]}`,
|
|
239
|
+
file: rel,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if (outcome.scriptFailure) {
|
|
244
|
+
findings.push({
|
|
245
|
+
id: `F${findings.length + 1}`,
|
|
246
|
+
rule: 'test-failed',
|
|
247
|
+
severity: 'error',
|
|
248
|
+
message: `${outcome.label} 的 test 脚本失败(退出码 ${outcome.scriptFailure.status}),见 vitest.log`,
|
|
249
|
+
file: outcome.scriptFailure.file,
|
|
250
|
+
subject: outcome.label,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const receipts = ctx.obligations.map((o) => {
|
|
255
|
+
const file = String(o.target.file ?? '');
|
|
256
|
+
const name = String(o.target.name ?? '');
|
|
257
|
+
const match = (executed.get(file) ?? []).find((a) => a.title === name || a.fullName === name);
|
|
258
|
+
if (!match)
|
|
259
|
+
return { id: o.id, outcome: 'not-executed', detail: `未执行 ${file} 中的 ${name}` };
|
|
260
|
+
if (match.status === 'passed')
|
|
261
|
+
return { id: o.id, outcome: 'passed' };
|
|
262
|
+
if (match.status === 'failed')
|
|
263
|
+
return { id: o.id, outcome: 'failed' };
|
|
264
|
+
return { id: o.id, outcome: 'skipped', detail: `测试状态为 ${match.status}` };
|
|
265
|
+
});
|
|
266
|
+
const blocked = outcomes.filter((o) => o.blocked).map((o) => `${o.label}:${o.blocked}`);
|
|
267
|
+
const verdict = findings.length > 0
|
|
268
|
+
? `${findings.length} 个测试失败`
|
|
269
|
+
: blocked.length > 0
|
|
270
|
+
? blocked.join(';')
|
|
271
|
+
: outcomes.length === 0
|
|
272
|
+
? '没有需要运行的测试'
|
|
273
|
+
: `测试通过(${total} 个)`;
|
|
274
|
+
return result({
|
|
275
|
+
status: findings.length > 0 ? 'fail' : blocked.length > 0 ? 'blocked' : 'pass',
|
|
276
|
+
summary: [...lines, verdict].join(';'),
|
|
277
|
+
findings,
|
|
278
|
+
checked: ctx.all ? 'all' : ctx.files,
|
|
279
|
+
evidence,
|
|
280
|
+
obligations: receipts,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=test-affected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-affected.js","sourceRoot":"","sources":["../../src/plugins/test-affected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,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