@ekanos/cli 0.33.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents-api.d.ts +0 -24
- package/dist/agents-api.js.map +1 -1
- package/dist/apps-api.d.ts +0 -14
- package/dist/apps-api.js.map +1 -1
- package/dist/auth/credential-store.d.ts +0 -60
- package/dist/auth/credential-store.js +2 -72
- package/dist/auth/credential-store.js.map +1 -1
- package/dist/auth/device-flow.d.ts +0 -35
- package/dist/auth/device-flow.js +0 -45
- package/dist/auth/device-flow.js.map +1 -1
- package/dist/auth/ekanos-api.d.ts +0 -54
- package/dist/auth/ekanos-api.js +2 -174
- package/dist/auth/ekanos-api.js.map +1 -1
- package/dist/auth/host-trust.d.ts +0 -35
- package/dist/auth/host-trust.js +2 -34
- package/dist/auth/host-trust.js.map +1 -1
- package/dist/auth/session.d.ts +0 -63
- package/dist/auth/session.js +0 -68
- package/dist/auth/session.js.map +1 -1
- package/dist/banner.d.ts +0 -22
- package/dist/banner.js +0 -25
- package/dist/banner.js.map +1 -1
- package/dist/bin.js +0 -15
- package/dist/bin.js.map +1 -1
- package/dist/catalog-api.d.ts +0 -23
- package/dist/catalog-api.js +0 -6
- package/dist/catalog-api.js.map +1 -1
- package/dist/claude-docs.d.ts +1 -23
- package/dist/claude-docs.js +0 -8
- package/dist/claude-docs.js.map +1 -1
- package/dist/commands/add.js +0 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/agents-edit.d.ts +1 -19
- package/dist/commands/agents-edit.js +2 -10
- package/dist/commands/agents-edit.js.map +1 -1
- package/dist/commands/agents-init.d.ts +0 -21
- package/dist/commands/agents-init.js +3 -16
- package/dist/commands/agents-init.js.map +1 -1
- package/dist/commands/agents.d.ts +0 -40
- package/dist/commands/agents.js +3 -50
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/apps.d.ts +0 -43
- package/dist/commands/apps.js +4 -59
- package/dist/commands/apps.js.map +1 -1
- package/dist/commands/audiences.d.ts +0 -21
- package/dist/commands/audiences.js +0 -21
- package/dist/commands/audiences.js.map +1 -1
- package/dist/commands/catalog.d.ts +0 -15
- package/dist/commands/catalog.js +0 -34
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/contract.d.ts +0 -16
- package/dist/commands/contract.js +1 -9
- package/dist/commands/contract.js.map +1 -1
- package/dist/commands/dev.d.ts +0 -36
- package/dist/commands/dev.js +1 -95
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.d.ts +0 -18
- package/dist/commands/doctor.js +0 -20
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/feedback.d.ts +0 -17
- package/dist/commands/feedback.js +0 -22
- package/dist/commands/feedback.js.map +1 -1
- package/dist/commands/index-experience.d.ts +2 -13
- package/dist/commands/index-experience.js +0 -4
- package/dist/commands/index-experience.js.map +1 -1
- package/dist/commands/init.d.ts +0 -85
- package/dist/commands/init.js +1 -124
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/knowledge.d.ts +0 -37
- package/dist/commands/knowledge.js +4 -42
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/login.d.ts +0 -31
- package/dist/commands/login.js +1 -49
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +0 -21
- package/dist/commands/logout.js +0 -40
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/names.d.ts +0 -8
- package/dist/commands/names.js +1 -7
- package/dist/commands/names.js.map +1 -1
- package/dist/commands/publish.d.ts +1 -130
- package/dist/commands/publish.js +2 -187
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/reviewers.d.ts +0 -10
- package/dist/commands/reviewers.js +1 -8
- package/dist/commands/reviewers.js.map +1 -1
- package/dist/commands/routes.d.ts +0 -12
- package/dist/commands/routes.js +1 -11
- package/dist/commands/routes.js.map +1 -1
- package/dist/commands/runs.d.ts +0 -30
- package/dist/commands/runs.js +2 -46
- package/dist/commands/runs.js.map +1 -1
- package/dist/commands/scope-notice.d.ts +0 -16
- package/dist/commands/scope-notice.js +0 -18
- package/dist/commands/scope-notice.js.map +1 -1
- package/dist/commands/skills.d.ts +0 -22
- package/dist/commands/skills.js +3 -28
- package/dist/commands/skills.js.map +1 -1
- package/dist/commands/sources-roles.js +0 -17
- package/dist/commands/sources-roles.js.map +1 -1
- package/dist/commands/sources.d.ts +0 -19
- package/dist/commands/sources.js +0 -38
- package/dist/commands/sources.js.map +1 -1
- package/dist/commands/status.d.ts +2 -102
- package/dist/commands/status.js +50 -171
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +0 -10
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/team-agent-access.d.ts +2 -16
- package/dist/commands/team-agent-access.js +18 -19
- package/dist/commands/team-agent-access.js.map +1 -1
- package/dist/commands/team-agent-readiness.d.ts +2 -38
- package/dist/commands/team-agent-readiness.js +1 -27
- package/dist/commands/team-agent-readiness.js.map +1 -1
- package/dist/commands/team-agents-agents.d.ts +0 -29
- package/dist/commands/team-agents-agents.js +8 -73
- package/dist/commands/team-agents-agents.js.map +1 -1
- package/dist/commands/team-agents-define.d.ts +0 -27
- package/dist/commands/team-agents-define.js +1 -29
- package/dist/commands/team-agents-define.js.map +1 -1
- package/dist/commands/team-agents-mcp.js +0 -26
- package/dist/commands/team-agents-mcp.js.map +1 -1
- package/dist/commands/team-agents-triggers.d.ts +0 -7
- package/dist/commands/team-agents-triggers.js +0 -45
- package/dist/commands/team-agents-triggers.js.map +1 -1
- package/dist/commands/team-agents.d.ts +0 -17
- package/dist/commands/team-agents.js +0 -16
- package/dist/commands/team-agents.js.map +1 -1
- package/dist/commands/team-llm-key.d.ts +0 -10
- package/dist/commands/team-llm-key.js +0 -12
- package/dist/commands/team-llm-key.js.map +1 -1
- package/dist/commands/teams-audience.d.ts +0 -17
- package/dist/commands/teams-audience.js +1 -22
- package/dist/commands/teams-audience.js.map +1 -1
- package/dist/commands/teams-channel-install.d.ts +0 -13
- package/dist/commands/teams-channel-install.js +0 -13
- package/dist/commands/teams-channel-install.js.map +1 -1
- package/dist/commands/teams-connect.d.ts +0 -60
- package/dist/commands/teams-connect.js +1 -86
- package/dist/commands/teams-connect.js.map +1 -1
- package/dist/commands/teams-events.d.ts +0 -7
- package/dist/commands/teams-events.js +0 -8
- package/dist/commands/teams-events.js.map +1 -1
- package/dist/commands/teams-lifecycle.d.ts +0 -25
- package/dist/commands/teams-lifecycle.js +1 -24
- package/dist/commands/teams-lifecycle.js.map +1 -1
- package/dist/commands/teams-onboard.d.ts +0 -10
- package/dist/commands/teams-onboard.js +0 -7
- package/dist/commands/teams-onboard.js.map +1 -1
- package/dist/commands/teams-overview.d.ts +0 -7
- package/dist/commands/teams-overview.js +0 -15
- package/dist/commands/teams-overview.js.map +1 -1
- package/dist/commands/teams-scope.d.ts +0 -6
- package/dist/commands/teams-scope.js +0 -6
- package/dist/commands/teams-scope.js.map +1 -1
- package/dist/commands/teams.d.ts +0 -49
- package/dist/commands/teams.js +3 -48
- package/dist/commands/teams.js.map +1 -1
- package/dist/commands/test.d.ts +0 -29
- package/dist/commands/test.js +1 -41
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/upgrade.d.ts +0 -17
- package/dist/commands/upgrade.js +3 -142
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/commands/use.d.ts +0 -12
- package/dist/commands/use.js +0 -12
- package/dist/commands/use.js.map +1 -1
- package/dist/commands/validate.d.ts +0 -15
- package/dist/commands/validate.js +0 -41
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/whoami.d.ts +0 -18
- package/dist/commands/whoami.js +0 -17
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflows.d.ts +0 -11
- package/dist/commands/workflows.js +2 -14
- package/dist/commands/workflows.js.map +1 -1
- package/dist/compatibility.d.ts +0 -108
- package/dist/compatibility.js +0 -109
- package/dist/compatibility.js.map +1 -1
- package/dist/connect-fields.d.ts +0 -19
- package/dist/connect-fields.js +0 -21
- package/dist/connect-fields.js.map +1 -1
- package/dist/connections-api.d.ts +4 -7
- package/dist/connections-api.js +1 -14
- package/dist/connections-api.js.map +1 -1
- package/dist/context.d.ts +0 -80
- package/dist/context.js +0 -71
- package/dist/context.js.map +1 -1
- package/dist/contract-verification.d.ts +0 -10
- package/dist/contract-verification.js +0 -10
- package/dist/contract-verification.js.map +1 -1
- package/dist/contracts-api.d.ts +0 -16
- package/dist/contracts-api.js.map +1 -1
- package/dist/copy-tree.d.ts +0 -38
- package/dist/copy-tree.js +0 -17
- package/dist/copy-tree.js.map +1 -1
- package/dist/delegate.d.ts +0 -18
- package/dist/delegate.js +0 -59
- package/dist/delegate.js.map +1 -1
- package/dist/design-findings.d.ts +0 -20
- package/dist/design-findings.js +0 -20
- package/dist/design-findings.js.map +1 -1
- package/dist/dev-experience.d.ts +0 -36
- package/dist/dev-experience.js +1 -30
- package/dist/dev-experience.js.map +1 -1
- package/dist/did-you-mean.d.ts +0 -32
- package/dist/did-you-mean.js +1 -53
- package/dist/did-you-mean.js.map +1 -1
- package/dist/docs-links.d.ts +0 -15
- package/dist/docs-links.js +0 -15
- package/dist/docs-links.js.map +1 -1
- package/dist/doctor-api.d.ts +0 -22
- package/dist/doctor-api.js +0 -2
- package/dist/doctor-api.js.map +1 -1
- package/dist/errors.d.ts +0 -23
- package/dist/errors.js +0 -22
- package/dist/errors.js.map +1 -1
- package/dist/exit-codes.d.ts +0 -12
- package/dist/exit-codes.js +0 -12
- package/dist/exit-codes.js.map +1 -1
- package/dist/experience/boundary.d.ts +0 -9
- package/dist/experience/boundary.js +4 -15
- package/dist/experience/boundary.js.map +1 -1
- package/dist/experience/build.d.ts +0 -9
- package/dist/experience/build.js +5 -14
- package/dist/experience/build.js.map +1 -1
- package/dist/experience/checks.d.ts +0 -11
- package/dist/experience/checks.js +3 -9
- package/dist/experience/checks.js.map +1 -1
- package/dist/experience/clean-room.d.ts +5 -29
- package/dist/experience/clean-room.js +19 -45
- package/dist/experience/clean-room.js.map +1 -1
- package/dist/experience/contract-sources.d.ts +1 -23
- package/dist/experience/contract-sources.js +5 -15
- package/dist/experience/contract-sources.js.map +1 -1
- package/dist/experience/definition-checks.d.ts +0 -22
- package/dist/experience/definition-checks.js +2 -27
- package/dist/experience/definition-checks.js.map +1 -1
- package/dist/experience/definition-shape.d.ts +3 -11
- package/dist/experience/definition-shape.js.map +1 -1
- package/dist/experience/host-contract-source.d.ts +0 -17
- package/dist/experience/host-contract-source.js +0 -16
- package/dist/experience/host-contract-source.js.map +1 -1
- package/dist/experience/host-npm.d.ts +12 -0
- package/dist/experience/host-npm.js +40 -0
- package/dist/experience/host-npm.js.map +1 -0
- package/dist/experience/init.d.ts +0 -1
- package/dist/experience/init.js +0 -3
- package/dist/experience/init.js.map +1 -1
- package/dist/experience/integrations-codegen.d.ts +0 -8
- package/dist/experience/integrations-codegen.js +1 -7
- package/dist/experience/integrations-codegen.js.map +1 -1
- package/dist/experience/json-schema-to-ts.js.map +1 -1
- package/dist/experience/load-experience.d.ts +0 -11
- package/dist/experience/load-experience.js +0 -22
- package/dist/experience/load-experience.js.map +1 -1
- package/dist/experience/overrides.d.ts +0 -6
- package/dist/experience/overrides.js +0 -6
- package/dist/experience/overrides.js.map +1 -1
- package/dist/experience/pin-integration.d.ts +0 -2
- package/dist/experience/pin-integration.js +0 -3
- package/dist/experience/pin-integration.js.map +1 -1
- package/dist/experience/pin-ops.d.ts +1 -9
- package/dist/experience/pin-ops.js +0 -7
- package/dist/experience/pin-ops.js.map +1 -1
- package/dist/experience/pins.d.ts +0 -23
- package/dist/experience/pins.js +2 -18
- package/dist/experience/pins.js.map +1 -1
- package/dist/experience/project.d.ts +0 -30
- package/dist/experience/project.js +4 -33
- package/dist/experience/project.js.map +1 -1
- package/dist/experience/publish.d.ts +0 -47
- package/dist/experience/publish.js +20 -61
- package/dist/experience/publish.js.map +1 -1
- package/dist/experience/regenerate.d.ts +0 -3
- package/dist/experience/regenerate.js +1 -5
- package/dist/experience/regenerate.js.map +1 -1
- package/dist/experience/report.d.ts +0 -5
- package/dist/experience/report.js +0 -5
- package/dist/experience/report.js.map +1 -1
- package/dist/feedback-api.d.ts +0 -20
- package/dist/feedback-api.js +0 -5
- package/dist/feedback-api.js.map +1 -1
- package/dist/feedback-context.d.ts +0 -19
- package/dist/feedback-context.js +2 -37
- package/dist/feedback-context.js.map +1 -1
- package/dist/feedback-updates.d.ts +0 -4
- package/dist/feedback-updates.js +5 -34
- package/dist/feedback-updates.js.map +1 -1
- package/dist/findings-renderer.d.ts +0 -37
- package/dist/findings-renderer.js +0 -49
- package/dist/findings-renderer.js.map +1 -1
- package/dist/harness-scaffold.d.ts +3 -212
- package/dist/harness-scaffold.js +11 -230
- package/dist/harness-scaffold.js.map +1 -1
- package/dist/host-snapshots.d.ts +0 -36
- package/dist/host-snapshots.js +1 -41
- package/dist/host-snapshots.js.map +1 -1
- package/dist/http-trace.d.ts +0 -10
- package/dist/http-trace.js +0 -11
- package/dist/http-trace.js.map +1 -1
- package/dist/icon-findings.d.ts +0 -16
- package/dist/icon-findings.js +0 -28
- package/dist/icon-findings.js.map +1 -1
- package/dist/index.d.ts +0 -46
- package/dist/index.js +17 -146
- package/dist/index.js.map +1 -1
- package/dist/invocation.d.ts +0 -26
- package/dist/invocation.js +0 -27
- package/dist/invocation.js.map +1 -1
- package/dist/knowledge-api.d.ts +0 -29
- package/dist/knowledge-api.js +0 -30
- package/dist/knowledge-api.js.map +1 -1
- package/dist/last-error.d.ts +0 -3
- package/dist/last-error.js +1 -16
- package/dist/last-error.js.map +1 -1
- package/dist/load-definition.d.ts +0 -10
- package/dist/load-definition.js +0 -29
- package/dist/load-definition.js.map +1 -1
- package/dist/lockfile-instances.d.ts +6 -41
- package/dist/lockfile-instances.js +3 -32
- package/dist/lockfile-instances.js.map +1 -1
- package/dist/merge-manifest.d.ts +0 -27
- package/dist/merge-manifest.js +0 -47
- package/dist/merge-manifest.js.map +1 -1
- package/dist/names-api.d.ts +4 -30
- package/dist/names-api.js +3 -3
- package/dist/names-api.js.map +1 -1
- package/dist/open-url.d.ts +0 -12
- package/dist/open-url.js +1 -27
- package/dist/open-url.js.map +1 -1
- package/dist/pack-hygiene.d.ts +0 -6
- package/dist/pack-hygiene.js +0 -8
- package/dist/pack-hygiene.js.map +1 -1
- package/dist/pack.d.ts +0 -7
- package/dist/pack.js +6 -79
- package/dist/pack.js.map +1 -1
- package/dist/package-manager.d.ts +2 -50
- package/dist/package-manager.js +0 -48
- package/dist/package-manager.js.map +1 -1
- package/dist/parse-argv.d.ts +2 -21
- package/dist/parse-argv.js +0 -7
- package/dist/parse-argv.js.map +1 -1
- package/dist/pnpm-builds.d.ts +0 -32
- package/dist/pnpm-builds.js +0 -45
- package/dist/pnpm-builds.js.map +1 -1
- package/dist/product-kinds.d.ts +0 -7
- package/dist/product-kinds.js +0 -7
- package/dist/product-kinds.js.map +1 -1
- package/dist/product-slug.d.ts +0 -6
- package/dist/product-slug.js +0 -6
- package/dist/product-slug.js.map +1 -1
- package/dist/project-checks.d.ts +0 -80
- package/dist/project-checks.js +2 -104
- package/dist/project-checks.js.map +1 -1
- package/dist/project.d.ts +1 -46
- package/dist/project.js +1 -122
- package/dist/project.js.map +1 -1
- package/dist/publish-api.d.ts +2 -120
- package/dist/publish-api.js +1 -95
- package/dist/publish-api.js.map +1 -1
- package/dist/pull-write.d.ts +0 -15
- package/dist/pull-write.js +0 -5
- package/dist/pull-write.js.map +1 -1
- package/dist/repo/publish.d.ts +0 -34
- package/dist/repo/publish.js +1 -18
- package/dist/repo/publish.js.map +1 -1
- package/dist/repo/scaffold.d.ts +0 -9
- package/dist/repo/scaffold.js +2 -14
- package/dist/repo/scaffold.js.map +1 -1
- package/dist/reviewers-api.d.ts +0 -16
- package/dist/reviewers-api.js.map +1 -1
- package/dist/routes-api.d.ts +0 -10
- package/dist/routes-api.js +0 -24
- package/dist/routes-api.js.map +1 -1
- package/dist/runs-api.d.ts +0 -11
- package/dist/runs-api.js.map +1 -1
- package/dist/safe-fs.d.ts +0 -57
- package/dist/safe-fs.js +0 -61
- package/dist/safe-fs.js.map +1 -1
- package/dist/schema-skew.d.ts +0 -68
- package/dist/schema-skew.js +2 -75
- package/dist/schema-skew.js.map +1 -1
- package/dist/seats.d.ts +1 -11
- package/dist/seats.js.map +1 -1
- package/dist/secret-file.d.ts +0 -8
- package/dist/secret-file.js +1 -17
- package/dist/secret-file.js.map +1 -1
- package/dist/secret-form.d.ts +1 -37
- package/dist/secret-form.js +7 -10
- package/dist/secret-form.js.map +1 -1
- package/dist/secret-input.d.ts +0 -59
- package/dist/secret-input.js +2 -20
- package/dist/secret-input.js.map +1 -1
- package/dist/setup-api.d.ts +8 -0
- package/dist/setup-api.js +25 -0
- package/dist/setup-api.js.map +1 -0
- package/dist/skills-api.d.ts +0 -21
- package/dist/skills-api.js +0 -1
- package/dist/skills-api.js.map +1 -1
- package/dist/source-locator.d.ts +0 -50
- package/dist/source-locator.js +0 -77
- package/dist/source-locator.js.map +1 -1
- package/dist/source-products-api.d.ts +2 -1
- package/dist/source-products-api.js +1 -25
- package/dist/source-products-api.js.map +1 -1
- package/dist/source-target.d.ts +0 -6
- package/dist/source-target.js +0 -6
- package/dist/source-target.js.map +1 -1
- package/dist/sources-api.d.ts +1 -31
- package/dist/sources-api.js +0 -6
- package/dist/sources-api.js.map +1 -1
- package/dist/team-connect-api.d.ts +1 -20
- package/dist/team-connect-api.js +1 -32
- package/dist/team-connect-api.js.map +1 -1
- package/dist/team-lifecycle-api.d.ts +3 -4
- package/dist/team-lifecycle-api.js +3 -26
- package/dist/team-lifecycle-api.js.map +1 -1
- package/dist/teams-api.d.ts +0 -50
- package/dist/teams-api.js +2 -12
- package/dist/teams-api.js.map +1 -1
- package/dist/templates.d.ts +0 -18
- package/dist/templates.js +0 -18
- package/dist/templates.js.map +1 -1
- package/dist/test-report.d.ts +2 -18
- package/dist/test-report.js +1 -85
- package/dist/test-report.js.map +1 -1
- package/dist/toolchain-api.d.ts +4 -60
- package/dist/toolchain-api.js +5 -6
- package/dist/toolchain-api.js.map +1 -1
- package/dist/toolchain-resolve.d.ts +0 -3
- package/dist/toolchain-resolve.js +0 -27
- package/dist/toolchain-resolve.js.map +1 -1
- package/dist/toolchain-snapshot.d.ts +0 -16
- package/dist/toolchain-snapshot.js +0 -20
- package/dist/toolchain-snapshot.js.map +1 -1
- package/dist/toolchain.d.ts +0 -9
- package/dist/toolchain.js +0 -16
- package/dist/toolchain.js.map +1 -1
- package/dist/ui.d.ts +6 -62
- package/dist/ui.js +0 -23
- package/dist/ui.js.map +1 -1
- package/dist/unknown-command.d.ts +0 -13
- package/dist/unknown-command.js +0 -14
- package/dist/unknown-command.js.map +1 -1
- package/dist/update-notice.d.ts +0 -26
- package/dist/update-notice.js +1 -74
- package/dist/update-notice.js.map +1 -1
- package/dist/validate-findings.d.ts +0 -39
- package/dist/validate-findings.js +0 -56
- package/dist/validate-findings.js.map +1 -1
- package/dist/wizard.d.ts +2 -63
- package/dist/wizard.js +0 -38
- package/dist/wizard.js.map +1 -1
- package/dist/workflows-api.d.ts +1 -19
- package/dist/workflows-api.js.map +1 -1
- package/dist/workspace-root.d.ts +0 -15
- package/dist/workspace-root.js +1 -17
- package/dist/workspace-root.js.map +1 -1
- package/node_modules/@gar/promise-retry/LICENSE +20 -0
- package/node_modules/@gar/promise-retry/lib/index.js +62 -0
- package/node_modules/@gar/promise-retry/lib/retry.js +109 -0
- package/node_modules/@gar/promise-retry/package.json +45 -0
- package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -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/@isaacs/string-locale-compare/LICENSE +15 -0
- package/node_modules/@isaacs/string-locale-compare/index.js +42 -0
- package/node_modules/@isaacs/string-locale-compare/package.json +28 -0
- package/node_modules/@npmcli/agent/lib/agents.js +258 -0
- package/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/node_modules/@npmcli/agent/lib/options.js +90 -0
- package/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/node_modules/@npmcli/agent/package.json +62 -0
- package/node_modules/@npmcli/arborist/LICENSE.md +20 -0
- package/node_modules/@npmcli/arborist/README.md +315 -0
- package/node_modules/@npmcli/arborist/bin/actual.js +19 -0
- package/node_modules/@npmcli/arborist/bin/audit.js +51 -0
- package/node_modules/@npmcli/arborist/bin/funding.js +38 -0
- package/node_modules/@npmcli/arborist/bin/ideal.js +14 -0
- package/node_modules/@npmcli/arborist/bin/index.js +112 -0
- package/node_modules/@npmcli/arborist/bin/lib/logging.js +77 -0
- package/node_modules/@npmcli/arborist/bin/lib/options.js +123 -0
- package/node_modules/@npmcli/arborist/bin/lib/print-tree.js +4 -0
- package/node_modules/@npmcli/arborist/bin/lib/timers.js +33 -0
- package/node_modules/@npmcli/arborist/bin/license.js +48 -0
- package/node_modules/@npmcli/arborist/bin/prune.js +48 -0
- package/node_modules/@npmcli/arborist/bin/reify.js +48 -0
- package/node_modules/@npmcli/arborist/bin/shrinkwrap.js +7 -0
- package/node_modules/@npmcli/arborist/bin/virtual.js +14 -0
- package/node_modules/@npmcli/arborist/lib/add-rm-pkg-deps.js +143 -0
- package/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js +1706 -0
- package/node_modules/@npmcli/arborist/lib/arborist/index.js +322 -0
- package/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js +513 -0
- package/node_modules/@npmcli/arborist/lib/arborist/load-actual.js +491 -0
- package/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js +311 -0
- package/node_modules/@npmcli/arborist/lib/arborist/rebuild.js +426 -0
- package/node_modules/@npmcli/arborist/lib/arborist/reify.js +2023 -0
- package/node_modules/@npmcli/arborist/lib/audit-report.js +389 -0
- package/node_modules/@npmcli/arborist/lib/calc-dep-flags.js +123 -0
- package/node_modules/@npmcli/arborist/lib/can-place-dep.js +449 -0
- package/node_modules/@npmcli/arborist/lib/case-insensitive-map.js +50 -0
- package/node_modules/@npmcli/arborist/lib/consistent-resolve.js +44 -0
- package/node_modules/@npmcli/arborist/lib/debug.js +32 -0
- package/node_modules/@npmcli/arborist/lib/deepest-nesting-target.js +18 -0
- package/node_modules/@npmcli/arborist/lib/dep-valid.js +179 -0
- package/node_modules/@npmcli/arborist/lib/diff.js +330 -0
- package/node_modules/@npmcli/arborist/lib/edge.js +364 -0
- package/node_modules/@npmcli/arborist/lib/from-path.js +30 -0
- package/node_modules/@npmcli/arborist/lib/gather-dep-set.js +43 -0
- package/node_modules/@npmcli/arborist/lib/index.js +6 -0
- package/node_modules/@npmcli/arborist/lib/install-scripts.js +114 -0
- package/node_modules/@npmcli/arborist/lib/inventory.js +137 -0
- package/node_modules/@npmcli/arborist/lib/isolated-classes.js +148 -0
- package/node_modules/@npmcli/arborist/lib/link.js +162 -0
- package/node_modules/@npmcli/arborist/lib/node.js +1632 -0
- package/node_modules/@npmcli/arborist/lib/optional-set.js +32 -0
- package/node_modules/@npmcli/arborist/lib/override-resolves.js +11 -0
- package/node_modules/@npmcli/arborist/lib/override-set.js +304 -0
- package/node_modules/@npmcli/arborist/lib/packument-cache.js +77 -0
- package/node_modules/@npmcli/arborist/lib/peer-entry-sets.js +77 -0
- package/node_modules/@npmcli/arborist/lib/place-dep.js +570 -0
- package/node_modules/@npmcli/arborist/lib/printable.js +198 -0
- package/node_modules/@npmcli/arborist/lib/query-selector-all.js +961 -0
- package/node_modules/@npmcli/arborist/lib/realpath.js +95 -0
- package/node_modules/@npmcli/arborist/lib/release-age-exclude.js +45 -0
- package/node_modules/@npmcli/arborist/lib/relpath.js +3 -0
- package/node_modules/@npmcli/arborist/lib/reset-dep-flags.js +11 -0
- package/node_modules/@npmcli/arborist/lib/retire-path.js +19 -0
- package/node_modules/@npmcli/arborist/lib/script-allowed.js +384 -0
- package/node_modules/@npmcli/arborist/lib/shrinkwrap.js +1231 -0
- package/node_modules/@npmcli/arborist/lib/signal-handling.js +74 -0
- package/node_modules/@npmcli/arborist/lib/signals.js +58 -0
- package/node_modules/@npmcli/arborist/lib/spec-from-lock.js +34 -0
- package/node_modules/@npmcli/arborist/lib/tracker.js +86 -0
- package/node_modules/@npmcli/arborist/lib/tree-check.js +155 -0
- package/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js +101 -0
- package/node_modules/@npmcli/arborist/lib/version-from-tgz.js +47 -0
- package/node_modules/@npmcli/arborist/lib/vuln.js +218 -0
- package/node_modules/@npmcli/arborist/lib/yarn-lock.js +377 -0
- package/node_modules/@npmcli/arborist/package.json +99 -0
- package/node_modules/@npmcli/config/LICENSE +15 -0
- package/node_modules/@npmcli/config/README.md +226 -0
- package/node_modules/@npmcli/config/lib/definitions/definition.js +255 -0
- package/node_modules/@npmcli/config/lib/definitions/definitions.js +2711 -0
- package/node_modules/@npmcli/config/lib/definitions/index.js +88 -0
- package/node_modules/@npmcli/config/lib/env-replace.js +16 -0
- package/node_modules/@npmcli/config/lib/errors.js +23 -0
- package/node_modules/@npmcli/config/lib/index.js +1034 -0
- package/node_modules/@npmcli/config/lib/nerf-dart.js +18 -0
- package/node_modules/@npmcli/config/lib/parse-allow-scripts-list.js +23 -0
- package/node_modules/@npmcli/config/lib/parse-field.js +86 -0
- package/node_modules/@npmcli/config/lib/set-envs.js +113 -0
- package/node_modules/@npmcli/config/lib/type-defs.js +61 -0
- package/node_modules/@npmcli/config/lib/type-description.js +21 -0
- package/node_modules/@npmcli/config/lib/umask.js +35 -0
- package/node_modules/@npmcli/config/package.json +57 -0
- package/node_modules/@npmcli/fs/LICENSE.md +20 -0
- package/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
- package/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/node_modules/@npmcli/fs/lib/index.js +13 -0
- package/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/node_modules/@npmcli/fs/package.json +54 -0
- package/node_modules/@npmcli/git/LICENSE +15 -0
- package/node_modules/@npmcli/git/lib/clone.js +172 -0
- package/node_modules/@npmcli/git/lib/errors.js +36 -0
- package/node_modules/@npmcli/git/lib/find.js +15 -0
- package/node_modules/@npmcli/git/lib/index.js +9 -0
- package/node_modules/@npmcli/git/lib/is-clean.js +6 -0
- package/node_modules/@npmcli/git/lib/is.js +4 -0
- package/node_modules/@npmcli/git/lib/lines-to-revs.js +147 -0
- package/node_modules/@npmcli/git/lib/make-error.js +33 -0
- package/node_modules/@npmcli/git/lib/opts.js +57 -0
- package/node_modules/@npmcli/git/lib/revs.js +22 -0
- package/node_modules/@npmcli/git/lib/spawn.js +44 -0
- package/node_modules/@npmcli/git/lib/utils.js +3 -0
- package/node_modules/@npmcli/git/lib/which.js +18 -0
- package/node_modules/@npmcli/git/package.json +58 -0
- package/node_modules/@npmcli/installed-package-contents/LICENSE +15 -0
- package/node_modules/@npmcli/installed-package-contents/README.md +109 -0
- package/node_modules/@npmcli/installed-package-contents/bin/index.js +44 -0
- package/node_modules/@npmcli/installed-package-contents/lib/index.js +181 -0
- package/node_modules/@npmcli/installed-package-contents/package.json +52 -0
- package/node_modules/@npmcli/map-workspaces/LICENSE.md +20 -0
- package/node_modules/@npmcli/map-workspaces/lib/index.js +226 -0
- package/node_modules/@npmcli/map-workspaces/package.json +61 -0
- package/node_modules/@npmcli/metavuln-calculator/LICENSE +15 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/advisory.js +435 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js +15 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/hash.js +5 -0
- package/node_modules/@npmcli/metavuln-calculator/lib/index.js +128 -0
- package/node_modules/@npmcli/metavuln-calculator/package.json +62 -0
- package/node_modules/@npmcli/name-from-folder/LICENSE +15 -0
- package/node_modules/@npmcli/name-from-folder/lib/index.js +7 -0
- package/node_modules/@npmcli/name-from-folder/package.json +45 -0
- package/node_modules/@npmcli/node-gyp/LICENSE +7 -0
- package/node_modules/@npmcli/node-gyp/lib/index.js +14 -0
- package/node_modules/@npmcli/node-gyp/package.json +50 -0
- package/node_modules/@npmcli/package-json/LICENSE +18 -0
- package/node_modules/@npmcli/package-json/lib/index.js +296 -0
- package/node_modules/@npmcli/package-json/lib/license.js +27 -0
- package/node_modules/@npmcli/package-json/lib/normalize-data.js +254 -0
- package/node_modules/@npmcli/package-json/lib/normalize.js +614 -0
- package/node_modules/@npmcli/package-json/lib/read-package.js +39 -0
- package/node_modules/@npmcli/package-json/lib/sort.js +101 -0
- package/node_modules/@npmcli/package-json/lib/update-dependencies.js +75 -0
- package/node_modules/@npmcli/package-json/lib/update-scripts.js +29 -0
- package/node_modules/@npmcli/package-json/lib/update-workspaces.js +26 -0
- package/node_modules/@npmcli/package-json/package.json +59 -0
- package/node_modules/@npmcli/promise-spawn/LICENSE +15 -0
- package/node_modules/@npmcli/promise-spawn/lib/escape.js +67 -0
- package/node_modules/@npmcli/promise-spawn/lib/index.js +218 -0
- package/node_modules/@npmcli/promise-spawn/package.json +51 -0
- package/node_modules/@npmcli/query/LICENSE +20 -0
- package/node_modules/@npmcli/query/lib/index.js +255 -0
- package/node_modules/@npmcli/query/package.json +64 -0
- package/node_modules/@npmcli/redact/LICENSE +21 -0
- package/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
- package/node_modules/@npmcli/redact/lib/error.js +28 -0
- package/node_modules/@npmcli/redact/lib/index.js +44 -0
- package/node_modules/@npmcli/redact/lib/matchers.js +88 -0
- package/node_modules/@npmcli/redact/lib/server.js +59 -0
- package/node_modules/@npmcli/redact/lib/utils.js +202 -0
- package/node_modules/@npmcli/redact/package.json +52 -0
- package/node_modules/@npmcli/run-script/LICENSE +15 -0
- package/node_modules/@npmcli/run-script/lib/is-server-package.js +11 -0
- package/node_modules/@npmcli/run-script/lib/make-spawn-args.js +53 -0
- package/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp +2 -0
- package/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp.cmd +1 -0
- package/node_modules/@npmcli/run-script/lib/package-envs.js +29 -0
- package/node_modules/@npmcli/run-script/lib/run-script-pkg.js +114 -0
- package/node_modules/@npmcli/run-script/lib/run-script.js +15 -0
- package/node_modules/@npmcli/run-script/lib/set-path.js +53 -0
- package/node_modules/@npmcli/run-script/lib/signal-manager.js +50 -0
- package/node_modules/@npmcli/run-script/lib/validate-options.js +39 -0
- package/node_modules/@npmcli/run-script/package.json +53 -0
- package/node_modules/@sigstore/bundle/LICENSE +202 -0
- package/node_modules/@sigstore/bundle/dist/build.js +100 -0
- package/node_modules/@sigstore/bundle/dist/bundle.js +24 -0
- package/node_modules/@sigstore/bundle/dist/error.js +25 -0
- package/node_modules/@sigstore/bundle/dist/index.js +43 -0
- package/node_modules/@sigstore/bundle/dist/serialized.js +49 -0
- package/node_modules/@sigstore/bundle/dist/utility.js +2 -0
- package/node_modules/@sigstore/bundle/dist/validate.js +199 -0
- package/node_modules/@sigstore/bundle/package.json +35 -0
- package/node_modules/@sigstore/core/LICENSE +202 -0
- package/node_modules/@sigstore/core/dist/asn1/error.js +24 -0
- package/node_modules/@sigstore/core/dist/asn1/index.js +20 -0
- package/node_modules/@sigstore/core/dist/asn1/length.js +62 -0
- package/node_modules/@sigstore/core/dist/asn1/obj.js +155 -0
- package/node_modules/@sigstore/core/dist/asn1/parse.js +124 -0
- package/node_modules/@sigstore/core/dist/asn1/tag.js +89 -0
- package/node_modules/@sigstore/core/dist/crypto.js +69 -0
- package/node_modules/@sigstore/core/dist/dsse.js +29 -0
- package/node_modules/@sigstore/core/dist/encoding.js +27 -0
- package/node_modules/@sigstore/core/dist/index.js +66 -0
- package/node_modules/@sigstore/core/dist/json.js +60 -0
- package/node_modules/@sigstore/core/dist/oid.js +20 -0
- package/node_modules/@sigstore/core/dist/pem.js +43 -0
- package/node_modules/@sigstore/core/dist/rfc3161/error.js +21 -0
- package/node_modules/@sigstore/core/dist/rfc3161/index.js +20 -0
- package/node_modules/@sigstore/core/dist/rfc3161/timestamp.js +212 -0
- package/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js +72 -0
- package/node_modules/@sigstore/core/dist/stream.js +117 -0
- package/node_modules/@sigstore/core/dist/x509/cert.js +245 -0
- package/node_modules/@sigstore/core/dist/x509/ext.js +146 -0
- package/node_modules/@sigstore/core/dist/x509/index.js +23 -0
- package/node_modules/@sigstore/core/dist/x509/sct.js +158 -0
- package/node_modules/@sigstore/core/package.json +31 -0
- package/node_modules/@sigstore/protobuf-specs/LICENSE +202 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js +59 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js +174 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js +141 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js +35 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js +2179 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js +29 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.js +55 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.js +81 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.js +56 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.js +74 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js +103 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js +612 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js +137 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js +284 -0
- package/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js +281 -0
- package/node_modules/@sigstore/protobuf-specs/dist/index.js +37 -0
- package/node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.js +35 -0
- package/node_modules/@sigstore/protobuf-specs/package.json +35 -0
- package/node_modules/@sigstore/sign/LICENSE +202 -0
- package/node_modules/@sigstore/sign/dist/bundler/base.js +52 -0
- package/node_modules/@sigstore/sign/dist/bundler/bundle.js +81 -0
- package/node_modules/@sigstore/sign/dist/bundler/dsse.js +47 -0
- package/node_modules/@sigstore/sign/dist/bundler/index.js +7 -0
- package/node_modules/@sigstore/sign/dist/bundler/message.js +30 -0
- package/node_modules/@sigstore/sign/dist/config.js +143 -0
- package/node_modules/@sigstore/sign/dist/error.js +41 -0
- package/node_modules/@sigstore/sign/dist/external/error.js +28 -0
- package/node_modules/@sigstore/sign/dist/external/fetch.js +98 -0
- package/node_modules/@sigstore/sign/dist/external/fulcio.js +42 -0
- package/node_modules/@sigstore/sign/dist/external/rekor-v2.js +45 -0
- package/node_modules/@sigstore/sign/dist/external/rekor.js +81 -0
- package/node_modules/@sigstore/sign/dist/external/tsa.js +44 -0
- package/node_modules/@sigstore/sign/dist/identity/ci.js +74 -0
- package/node_modules/@sigstore/sign/dist/identity/index.js +20 -0
- package/node_modules/@sigstore/sign/dist/identity/provider.js +2 -0
- package/node_modules/@sigstore/sign/dist/index.js +19 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js +60 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js +43 -0
- package/node_modules/@sigstore/sign/dist/signer/fulcio/index.js +90 -0
- package/node_modules/@sigstore/sign/dist/signer/index.js +22 -0
- package/node_modules/@sigstore/sign/dist/signer/signer.js +17 -0
- package/node_modules/@sigstore/sign/dist/types/fetch.js +2 -0
- package/node_modules/@sigstore/sign/dist/util/index.js +59 -0
- package/node_modules/@sigstore/sign/dist/util/oidc.js +35 -0
- package/node_modules/@sigstore/sign/dist/util/ua.js +32 -0
- package/node_modules/@sigstore/sign/dist/witness/index.js +24 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/client.js +92 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/entry.js +197 -0
- package/node_modules/@sigstore/sign/dist/witness/tlog/index.js +97 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/client.js +47 -0
- package/node_modules/@sigstore/sign/dist/witness/tsa/index.js +45 -0
- package/node_modules/@sigstore/sign/dist/witness/witness.js +2 -0
- package/node_modules/@sigstore/sign/package.json +45 -0
- package/node_modules/@sigstore/tuf/LICENSE +202 -0
- package/node_modules/@sigstore/tuf/dist/appdata.js +43 -0
- package/node_modules/@sigstore/tuf/dist/client.js +116 -0
- package/node_modules/@sigstore/tuf/dist/error.js +14 -0
- package/node_modules/@sigstore/tuf/dist/index.js +56 -0
- package/node_modules/@sigstore/tuf/dist/target.js +79 -0
- package/node_modules/@sigstore/tuf/package.json +41 -0
- package/node_modules/@sigstore/tuf/seeds.json +1 -0
- package/node_modules/@sigstore/verify/dist/bundle/dsse.js +44 -0
- package/node_modules/@sigstore/verify/dist/bundle/index.js +59 -0
- package/node_modules/@sigstore/verify/dist/bundle/message.js +54 -0
- package/node_modules/@sigstore/verify/dist/error.js +34 -0
- package/node_modules/@sigstore/verify/dist/index.js +28 -0
- package/node_modules/@sigstore/verify/dist/key/certificate.js +216 -0
- package/node_modules/@sigstore/verify/dist/key/index.js +75 -0
- package/node_modules/@sigstore/verify/dist/key/sct.js +78 -0
- package/node_modules/@sigstore/verify/dist/policy.js +50 -0
- package/node_modules/@sigstore/verify/dist/shared.types.js +2 -0
- package/node_modules/@sigstore/verify/dist/timestamp/index.js +24 -0
- package/node_modules/@sigstore/verify/dist/timestamp/tsa.js +63 -0
- package/node_modules/@sigstore/verify/dist/tlog/checkpoint.js +154 -0
- package/node_modules/@sigstore/verify/dist/tlog/dsse.js +106 -0
- package/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js +94 -0
- package/node_modules/@sigstore/verify/dist/tlog/index.js +92 -0
- package/node_modules/@sigstore/verify/dist/tlog/intoto.js +62 -0
- package/node_modules/@sigstore/verify/dist/tlog/merkle.js +104 -0
- package/node_modules/@sigstore/verify/dist/tlog/set.js +60 -0
- package/node_modules/@sigstore/verify/dist/trust/filter.js +23 -0
- package/node_modules/@sigstore/verify/dist/trust/index.js +90 -0
- package/node_modules/@sigstore/verify/dist/trust/trust.types.js +2 -0
- package/node_modules/@sigstore/verify/dist/verifier.js +160 -0
- package/node_modules/@sigstore/verify/package.json +36 -0
- package/node_modules/@tufjs/canonical-json/LICENSE +21 -0
- package/node_modules/@tufjs/canonical-json/lib/index.js +64 -0
- package/node_modules/@tufjs/canonical-json/package.json +35 -0
- package/node_modules/@tufjs/models/LICENSE +21 -0
- package/node_modules/@tufjs/models/dist/base.js +96 -0
- package/node_modules/@tufjs/models/dist/delegations.js +119 -0
- package/node_modules/@tufjs/models/dist/error.js +27 -0
- package/node_modules/@tufjs/models/dist/file.js +191 -0
- package/node_modules/@tufjs/models/dist/index.js +24 -0
- package/node_modules/@tufjs/models/dist/key.js +90 -0
- package/node_modules/@tufjs/models/dist/metadata.js +165 -0
- package/node_modules/@tufjs/models/dist/role.js +310 -0
- package/node_modules/@tufjs/models/dist/root.js +119 -0
- package/node_modules/@tufjs/models/dist/signature.js +40 -0
- package/node_modules/@tufjs/models/dist/snapshot.js +72 -0
- package/node_modules/@tufjs/models/dist/targets.js +94 -0
- package/node_modules/@tufjs/models/dist/timestamp.js +59 -0
- package/node_modules/@tufjs/models/dist/utils/guard.js +32 -0
- package/node_modules/@tufjs/models/dist/utils/index.js +38 -0
- package/node_modules/@tufjs/models/dist/utils/key.js +142 -0
- package/node_modules/@tufjs/models/dist/utils/oid.js +26 -0
- package/node_modules/@tufjs/models/dist/utils/types.js +2 -0
- package/node_modules/@tufjs/models/dist/utils/verify.js +13 -0
- package/node_modules/@tufjs/models/package.json +37 -0
- package/node_modules/abbrev/LICENSE +46 -0
- package/node_modules/abbrev/lib/index.js +53 -0
- package/node_modules/abbrev/package.json +41 -0
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/index.js +105 -0
- package/node_modules/aproba/package.json +35 -0
- package/node_modules/archy/LICENSE +18 -0
- package/node_modules/archy/examples/beep.js +24 -0
- package/node_modules/archy/examples/multi_line.js +25 -0
- package/node_modules/archy/index.js +35 -0
- package/node_modules/archy/package.json +40 -0
- package/node_modules/archy/test/beep.js +40 -0
- package/node_modules/archy/test/multi_line.js +45 -0
- package/node_modules/archy/test/non_unicode.js +40 -0
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/bin-links/LICENSE +15 -0
- package/node_modules/bin-links/lib/bin-target.js +9 -0
- package/node_modules/bin-links/lib/check-bin.js +78 -0
- package/node_modules/bin-links/lib/check-bins.js +18 -0
- package/node_modules/bin-links/lib/fix-bin.js +42 -0
- package/node_modules/bin-links/lib/get-node-modules.js +19 -0
- package/node_modules/bin-links/lib/get-paths.js +42 -0
- package/node_modules/bin-links/lib/get-prefix.js +3 -0
- package/node_modules/bin-links/lib/index.js +44 -0
- package/node_modules/bin-links/lib/is-windows.js +2 -0
- package/node_modules/bin-links/lib/link-bin.js +9 -0
- package/node_modules/bin-links/lib/link-bins.js +23 -0
- package/node_modules/bin-links/lib/link-gently.js +96 -0
- package/node_modules/bin-links/lib/link-mans.js +53 -0
- package/node_modules/bin-links/lib/man-target.js +6 -0
- package/node_modules/bin-links/lib/shim-bin.js +87 -0
- package/node_modules/bin-links/package.json +63 -0
- package/node_modules/binary-extensions/binary-extensions.json +264 -0
- package/node_modules/binary-extensions/index.js +3 -0
- package/node_modules/binary-extensions/license +10 -0
- package/node_modules/binary-extensions/package.json +45 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.js +285 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/cacache/LICENSE.md +16 -0
- package/node_modules/cacache/lib/content/path.js +29 -0
- package/node_modules/cacache/lib/content/read.js +165 -0
- package/node_modules/cacache/lib/content/rm.js +18 -0
- package/node_modules/cacache/lib/content/write.js +206 -0
- package/node_modules/cacache/lib/entry-index.js +336 -0
- package/node_modules/cacache/lib/get.js +170 -0
- package/node_modules/cacache/lib/index.js +42 -0
- package/node_modules/cacache/lib/memoization.js +72 -0
- package/node_modules/cacache/lib/put.js +80 -0
- package/node_modules/cacache/lib/rm.js +31 -0
- package/node_modules/cacache/lib/util/glob.js +7 -0
- package/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/node_modules/cacache/lib/util/tmp.js +32 -0
- package/node_modules/cacache/lib/verify.js +258 -0
- package/node_modules/cacache/package.json +81 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +83 -0
- package/node_modules/chalk/source/index.js +225 -0
- package/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +69 -0
- package/node_modules/ci-info/LICENSE +21 -0
- package/node_modules/ci-info/index.js +104 -0
- package/node_modules/ci-info/package.json +54 -0
- package/node_modules/ci-info/vendors.json +363 -0
- package/node_modules/cidr-regex/LICENSE +22 -0
- package/node_modules/cidr-regex/dist/index.js +21 -0
- package/node_modules/cidr-regex/package.json +51 -0
- package/node_modules/cmd-shim/LICENSE +15 -0
- package/node_modules/cmd-shim/lib/index.js +247 -0
- package/node_modules/cmd-shim/lib/to-batch-syntax.js +49 -0
- package/node_modules/cmd-shim/package.json +48 -0
- package/node_modules/common-ancestor-path/LICENSE.md +55 -0
- package/node_modules/common-ancestor-path/dist/commonjs/index.js +20 -0
- package/node_modules/common-ancestor-path/dist/commonjs/package.json +3 -0
- package/node_modules/common-ancestor-path/dist/esm/index.js +16 -0
- package/node_modules/common-ancestor-path/dist/esm/package.json +3 -0
- package/node_modules/common-ancestor-path/package.json +60 -0
- package/node_modules/cssesc/LICENSE-MIT.txt +20 -0
- package/node_modules/cssesc/README.md +201 -0
- package/node_modules/cssesc/bin/cssesc +116 -0
- package/node_modules/cssesc/cssesc.js +110 -0
- package/node_modules/cssesc/man/cssesc.1 +70 -0
- package/node_modules/cssesc/package.json +51 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/diff/CONTRIBUTING.md +28 -0
- package/node_modules/diff/LICENSE +29 -0
- package/node_modules/diff/dist/diff.js +1782 -0
- package/node_modules/diff/dist/diff.min.js +1 -0
- package/node_modules/diff/eslint.config.mjs +182 -0
- package/node_modules/diff/libcjs/convert/dmp.js +24 -0
- package/node_modules/diff/libcjs/convert/xml.js +34 -0
- package/node_modules/diff/libcjs/diff/array.js +40 -0
- package/node_modules/diff/libcjs/diff/base.js +265 -0
- package/node_modules/diff/libcjs/diff/character.js +31 -0
- package/node_modules/diff/libcjs/diff/css.js +34 -0
- package/node_modules/diff/libcjs/diff/json.js +105 -0
- package/node_modules/diff/libcjs/diff/line.js +89 -0
- package/node_modules/diff/libcjs/diff/sentence.js +67 -0
- package/node_modules/diff/libcjs/diff/word.js +312 -0
- package/node_modules/diff/libcjs/index.js +64 -0
- package/node_modules/diff/libcjs/package.json +1 -0
- package/node_modules/diff/libcjs/patch/apply.js +267 -0
- package/node_modules/diff/libcjs/patch/create.js +251 -0
- package/node_modules/diff/libcjs/patch/line-endings.js +61 -0
- package/node_modules/diff/libcjs/patch/parse.js +150 -0
- package/node_modules/diff/libcjs/patch/reverse.js +37 -0
- package/node_modules/diff/libcjs/types.js +2 -0
- package/node_modules/diff/libcjs/util/array.js +21 -0
- package/node_modules/diff/libcjs/util/distance-iterator.js +40 -0
- package/node_modules/diff/libcjs/util/params.js +17 -0
- package/node_modules/diff/libcjs/util/string.js +200 -0
- package/node_modules/diff/libesm/convert/dmp.js +21 -0
- package/node_modules/diff/libesm/convert/xml.js +31 -0
- package/node_modules/diff/libesm/diff/array.js +16 -0
- package/node_modules/diff/libesm/diff/base.js +253 -0
- package/node_modules/diff/libesm/diff/character.js +7 -0
- package/node_modules/diff/libesm/diff/css.js +10 -0
- package/node_modules/diff/libesm/diff/json.js +78 -0
- package/node_modules/diff/libesm/diff/line.js +65 -0
- package/node_modules/diff/libesm/diff/sentence.js +43 -0
- package/node_modules/diff/libesm/diff/word.js +281 -0
- package/node_modules/diff/libesm/index.js +30 -0
- package/node_modules/diff/libesm/package.json +1 -0
- package/node_modules/diff/libesm/patch/apply.js +257 -0
- package/node_modules/diff/libesm/patch/create.js +228 -0
- package/node_modules/diff/libesm/patch/line-endings.js +44 -0
- package/node_modules/diff/libesm/patch/parse.js +147 -0
- package/node_modules/diff/libesm/patch/reverse.js +23 -0
- package/node_modules/diff/libesm/types.js +1 -0
- package/node_modules/diff/libesm/util/array.js +17 -0
- package/node_modules/diff/libesm/util/distance-iterator.js +37 -0
- package/node_modules/diff/libesm/util/params.js +14 -0
- package/node_modules/diff/libesm/util/string.js +184 -0
- package/node_modules/diff/package.json +130 -0
- package/node_modules/diff/release-notes.md +432 -0
- package/node_modules/env-paths/index.js +74 -0
- package/node_modules/env-paths/license +9 -0
- package/node_modules/env-paths/package.json +45 -0
- package/node_modules/exponential-backoff/LICENSE +202 -0
- package/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/node_modules/exponential-backoff/dist/options.js +31 -0
- package/node_modules/exponential-backoff/package.json +62 -0
- package/node_modules/fastest-levenshtein/LICENSE.md +21 -0
- package/node_modules/fastest-levenshtein/bench.js +96 -0
- package/node_modules/fastest-levenshtein/esm/mod.js +138 -0
- package/node_modules/fastest-levenshtein/mod.js +142 -0
- package/node_modules/fastest-levenshtein/package.json +72 -0
- package/node_modules/fastest-levenshtein/test.js +55 -0
- package/node_modules/fdir/LICENSE +7 -0
- package/node_modules/fdir/dist/index.cjs +588 -0
- package/node_modules/fdir/dist/index.d.cts +155 -0
- package/node_modules/fdir/dist/index.d.mts +155 -0
- package/node_modules/fdir/dist/index.mjs +570 -0
- package/node_modules/fdir/package.json +103 -0
- package/node_modules/fs-minipass/LICENSE +15 -0
- package/node_modules/fs-minipass/lib/index.js +443 -0
- package/node_modules/fs-minipass/package.json +54 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/hosted-git-info/LICENSE +13 -0
- package/node_modules/hosted-git-info/lib/from-url.js +122 -0
- package/node_modules/hosted-git-info/lib/hosts.js +229 -0
- package/node_modules/hosted-git-info/lib/index.js +227 -0
- package/node_modules/hosted-git-info/lib/parse-url.js +81 -0
- package/node_modules/hosted-git-info/package.json +57 -0
- package/node_modules/http-cache-semantics/LICENSE +9 -0
- package/node_modules/http-cache-semantics/index.js +928 -0
- package/node_modules/http-cache-semantics/package.json +22 -0
- package/node_modules/http-proxy-agent/LICENSE +22 -0
- package/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/node_modules/http-proxy-agent/package.json +47 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/node_modules/https-proxy-agent/package.json +50 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/ignore-walk/LICENSE +15 -0
- package/node_modules/ignore-walk/lib/index.js +310 -0
- package/node_modules/ignore-walk/package.json +64 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/lib/ini.js +280 -0
- package/node_modules/ini/package.json +45 -0
- package/node_modules/init-package-json/LICENSE.md +18 -0
- package/node_modules/init-package-json/lib/default-input.js +286 -0
- package/node_modules/init-package-json/lib/init-package-json.js +147 -0
- package/node_modules/init-package-json/package.json +66 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/common.js +106 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ipv4.js +505 -0
- package/node_modules/ip-address/dist/ipv6.js +1353 -0
- package/node_modules/ip-address/dist/v4/constants.js +12 -0
- package/node_modules/ip-address/dist/v6/constants.js +82 -0
- package/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/package.json +90 -0
- package/node_modules/is-cidr/LICENSE +22 -0
- package/node_modules/is-cidr/dist/index.js +11 -0
- package/node_modules/is-cidr/package.json +41 -0
- package/node_modules/isexe/LICENSE.md +55 -0
- package/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/node_modules/isexe/dist/esm/index.js +16 -0
- package/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/node_modules/isexe/dist/esm/options.js +2 -0
- package/node_modules/isexe/dist/esm/package.json +3 -0
- package/node_modules/isexe/dist/esm/posix.js +62 -0
- package/node_modules/isexe/dist/esm/win32.js +58 -0
- package/node_modules/isexe/package.json +78 -0
- package/node_modules/json-parse-even-better-errors/LICENSE.md +25 -0
- package/node_modules/json-parse-even-better-errors/lib/index.js +137 -0
- package/node_modules/json-parse-even-better-errors/package.json +50 -0
- package/node_modules/json-stringify-nice/LICENSE +15 -0
- package/node_modules/json-stringify-nice/index.js +38 -0
- package/node_modules/json-stringify-nice/package.json +40 -0
- package/node_modules/jsonparse/LICENSE +24 -0
- package/node_modules/jsonparse/bench.js +26 -0
- package/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- package/node_modules/jsonparse/jsonparse.js +413 -0
- package/node_modules/jsonparse/package.json +22 -0
- package/node_modules/jsonparse/samplejson/basic.json +167 -0
- package/node_modules/jsonparse/samplejson/basic2.json +180 -0
- package/node_modules/jsonparse/test/big-token.js +24 -0
- package/node_modules/jsonparse/test/boundary.js +110 -0
- package/node_modules/jsonparse/test/offset.js +67 -0
- package/node_modules/jsonparse/test/primitives.js +57 -0
- package/node_modules/jsonparse/test/surrogate.js +26 -0
- package/node_modules/jsonparse/test/unvalid.js +15 -0
- package/node_modules/jsonparse/test/utf8.js +38 -0
- package/node_modules/just-diff/LICENSE +21 -0
- package/node_modules/just-diff/index.cjs +230 -0
- package/node_modules/just-diff/index.mjs +227 -0
- package/node_modules/just-diff/package.json +33 -0
- package/node_modules/just-diff/rollup.config.js +3 -0
- package/node_modules/just-diff-apply/LICENSE +21 -0
- package/node_modules/just-diff-apply/index.cjs +161 -0
- package/node_modules/just-diff-apply/index.mjs +158 -0
- package/node_modules/just-diff-apply/package.json +34 -0
- package/node_modules/just-diff-apply/rollup.config.js +3 -0
- package/node_modules/libnpmaccess/LICENSE +13 -0
- package/node_modules/libnpmaccess/README.md +93 -0
- package/node_modules/libnpmaccess/lib/index.js +140 -0
- package/node_modules/libnpmaccess/package.json +53 -0
- package/node_modules/libnpmdiff/LICENSE +15 -0
- package/node_modules/libnpmdiff/README.md +103 -0
- package/node_modules/libnpmdiff/lib/format-diff.js +118 -0
- package/node_modules/libnpmdiff/lib/index.js +65 -0
- package/node_modules/libnpmdiff/lib/should-print-patch.js +22 -0
- package/node_modules/libnpmdiff/lib/tarball.js +38 -0
- package/node_modules/libnpmdiff/lib/untar.js +96 -0
- package/node_modules/libnpmdiff/package.json +70 -0
- package/node_modules/libnpmexec/LICENSE +15 -0
- package/node_modules/libnpmexec/README.md +47 -0
- package/node_modules/libnpmexec/lib/file-exists.js +33 -0
- package/node_modules/libnpmexec/lib/get-bin-from-manifest.js +22 -0
- package/node_modules/libnpmexec/lib/index.js +332 -0
- package/node_modules/libnpmexec/lib/is-windows.js +1 -0
- package/node_modules/libnpmexec/lib/no-tty.js +1 -0
- package/node_modules/libnpmexec/lib/run-script.js +75 -0
- package/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js +40 -0
- package/node_modules/libnpmexec/lib/with-lock.js +177 -0
- package/node_modules/libnpmexec/package.json +81 -0
- package/node_modules/libnpmfund/LICENSE +15 -0
- package/node_modules/libnpmfund/README.md +131 -0
- package/node_modules/libnpmfund/lib/index.js +210 -0
- package/node_modules/libnpmfund/package.json +65 -0
- package/node_modules/libnpmorg/LICENSE +13 -0
- package/node_modules/libnpmorg/README.md +148 -0
- package/node_modules/libnpmorg/lib/index.js +64 -0
- package/node_modules/libnpmorg/package.json +62 -0
- package/node_modules/libnpmpack/LICENSE +13 -0
- package/node_modules/libnpmpack/README.md +55 -0
- package/node_modules/libnpmpack/lib/index.js +67 -0
- package/node_modules/libnpmpack/package.json +59 -0
- package/node_modules/libnpmpublish/LICENSE +13 -0
- package/node_modules/libnpmpublish/README.md +127 -0
- package/node_modules/libnpmpublish/lib/index.js +4 -0
- package/node_modules/libnpmpublish/lib/provenance.js +245 -0
- package/node_modules/libnpmpublish/lib/publish.js +231 -0
- package/node_modules/libnpmpublish/lib/unpublish.js +119 -0
- package/node_modules/libnpmpublish/package.json +64 -0
- package/node_modules/libnpmsearch/LICENSE +13 -0
- package/node_modules/libnpmsearch/README.md +173 -0
- package/node_modules/libnpmsearch/lib/index.js +71 -0
- package/node_modules/libnpmsearch/package.json +58 -0
- package/node_modules/libnpmteam/LICENSE +13 -0
- package/node_modules/libnpmteam/README.md +172 -0
- package/node_modules/libnpmteam/lib/index.js +92 -0
- package/node_modules/libnpmteam/package.json +52 -0
- package/node_modules/libnpmversion/LICENSE +15 -0
- package/node_modules/libnpmversion/README.md +166 -0
- package/node_modules/libnpmversion/lib/commit.js +17 -0
- package/node_modules/libnpmversion/lib/enforce-clean.js +32 -0
- package/node_modules/libnpmversion/lib/index.js +38 -0
- package/node_modules/libnpmversion/lib/read-json.js +6 -0
- package/node_modules/libnpmversion/lib/retrieve-tag.js +13 -0
- package/node_modules/libnpmversion/lib/tag.js +30 -0
- package/node_modules/libnpmversion/lib/version.js +136 -0
- package/node_modules/libnpmversion/lib/write-json.js +15 -0
- package/node_modules/libnpmversion/package.json +55 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/lru-cache/package.json +154 -0
- package/node_modules/make-fetch-happen/LICENSE +16 -0
- package/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/node_modules/make-fetch-happen/lib/remote.js +134 -0
- package/node_modules/make-fetch-happen/package.json +75 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minipass-collect/LICENSE +15 -0
- package/node_modules/minipass-collect/index.js +71 -0
- package/node_modules/minipass-collect/package.json +30 -0
- package/node_modules/minipass-fetch/LICENSE +28 -0
- package/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/node_modules/minipass-fetch/lib/body.js +360 -0
- package/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/node_modules/minipass-fetch/lib/index.js +376 -0
- package/node_modules/minipass-fetch/lib/request.js +282 -0
- package/node_modules/minipass-fetch/lib/response.js +90 -0
- package/node_modules/minipass-fetch/package.json +70 -0
- package/node_modules/minipass-flush/LICENSE.md +55 -0
- package/node_modules/minipass-flush/index.js +39 -0
- package/node_modules/minipass-flush/package.json +39 -0
- package/node_modules/minipass-pipeline/LICENSE +15 -0
- package/node_modules/minipass-pipeline/index.js +128 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/LICENSE +15 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/iterator.js +8 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/package.json +29 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/node_modules/yallist/yallist.js +426 -0
- package/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/node_modules/minipass-pipeline/package.json +29 -0
- package/node_modules/minipass-sized/LICENSE +15 -0
- package/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
- package/node_modules/minipass-sized/dist/commonjs/package.json +3 -0
- package/node_modules/minipass-sized/dist/esm/index.js +64 -0
- package/node_modules/minipass-sized/dist/esm/package.json +3 -0
- package/node_modules/minipass-sized/package.json +69 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/mute-stream/LICENSE +15 -0
- package/node_modules/mute-stream/lib/index.js +142 -0
- package/node_modules/mute-stream/package.json +54 -0
- package/node_modules/negotiator/HISTORY.md +114 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +205 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +43 -0
- package/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/node_modules/node-gyp/CHANGELOG.md +1240 -0
- package/node_modules/node-gyp/CODE_OF_CONDUCT.md +4 -0
- package/node_modules/node-gyp/CONTRIBUTING.md +44 -0
- package/node_modules/node-gyp/LICENSE +24 -0
- package/node_modules/node-gyp/README.md +290 -0
- package/node_modules/node-gyp/SECURITY.md +2 -0
- package/node_modules/node-gyp/addon.gypi +204 -0
- package/node_modules/node-gyp/bin/node-gyp.js +145 -0
- package/node_modules/node-gyp/eslint.config.js +3 -0
- package/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/node_modules/node-gyp/gyp/docs/GypVsCMake.md +116 -0
- package/node_modules/node-gyp/gyp/docs/Hacking.md +46 -0
- package/node_modules/node-gyp/gyp/docs/InputFormatReference.md +1083 -0
- package/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +430 -0
- package/node_modules/node-gyp/gyp/docs/README.md +27 -0
- package/node_modules/node-gyp/gyp/docs/Testing.md +450 -0
- package/node_modules/node-gyp/gyp/docs/UserDocumentation.md +965 -0
- package/node_modules/node-gyp/gyp/gyp +8 -0
- package/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +607 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +706 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +77 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/node_modules/node-gyp/gyp/pyproject.toml +116 -0
- package/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/node_modules/node-gyp/lib/build.js +230 -0
- package/node_modules/node-gyp/lib/clean.js +15 -0
- package/node_modules/node-gyp/lib/configure.js +328 -0
- package/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/node_modules/node-gyp/lib/download.js +86 -0
- package/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/node_modules/node-gyp/lib/find-python.js +304 -0
- package/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
- package/node_modules/node-gyp/lib/install.js +411 -0
- package/node_modules/node-gyp/lib/list.js +26 -0
- package/node_modules/node-gyp/lib/log.js +168 -0
- package/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/node_modules/node-gyp/lib/process-release.js +144 -0
- package/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/node_modules/node-gyp/lib/remove.js +43 -0
- package/node_modules/node-gyp/lib/util.js +81 -0
- package/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/node_modules/node-gyp/package.json +52 -0
- package/node_modules/node-gyp/release-please-config.json +40 -0
- package/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/node_modules/nopt/LICENSE +15 -0
- package/node_modules/nopt/README.md +214 -0
- package/node_modules/nopt/bin/nopt.js +29 -0
- package/node_modules/nopt/lib/debug.js +5 -0
- package/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/node_modules/nopt/lib/nopt.js +34 -0
- package/node_modules/nopt/lib/type-defs.js +91 -0
- package/node_modules/nopt/package.json +52 -0
- package/node_modules/npm/LICENSE +235 -0
- package/node_modules/npm/README.md +53 -0
- package/node_modules/npm/bin/node-gyp-bin/node-gyp +6 -0
- package/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +5 -0
- package/node_modules/npm/bin/npm +65 -0
- package/node_modules/npm/bin/npm-cli.js +2 -0
- package/node_modules/npm/bin/npm-prefix.js +30 -0
- package/node_modules/npm/bin/npm.cmd +20 -0
- package/node_modules/npm/bin/npm.ps1 +50 -0
- package/node_modules/npm/bin/npx +65 -0
- package/node_modules/npm/bin/npx-cli.js +130 -0
- package/node_modules/npm/bin/npx.cmd +20 -0
- package/node_modules/npm/bin/npx.ps1 +50 -0
- package/node_modules/npm/docs/content/commands/npm-access.md +95 -0
- package/node_modules/npm/docs/content/commands/npm-adduser.md +87 -0
- package/node_modules/npm/docs/content/commands/npm-approve-scripts.md +142 -0
- package/node_modules/npm/docs/content/commands/npm-audit.md +449 -0
- package/node_modules/npm/docs/content/commands/npm-bugs.md +106 -0
- package/node_modules/npm/docs/content/commands/npm-cache.md +100 -0
- package/node_modules/npm/docs/content/commands/npm-ci.md +446 -0
- package/node_modules/npm/docs/content/commands/npm-completion.md +36 -0
- package/node_modules/npm/docs/content/commands/npm-config.md +176 -0
- package/node_modules/npm/docs/content/commands/npm-dedupe.md +389 -0
- package/node_modules/npm/docs/content/commands/npm-deny-scripts.md +110 -0
- package/node_modules/npm/docs/content/commands/npm-deprecate.md +85 -0
- package/node_modules/npm/docs/content/commands/npm-diff.md +282 -0
- package/node_modules/npm/docs/content/commands/npm-dist-tag.md +138 -0
- package/node_modules/npm/docs/content/commands/npm-docs.md +106 -0
- package/node_modules/npm/docs/content/commands/npm-doctor.md +98 -0
- package/node_modules/npm/docs/content/commands/npm-edit.md +41 -0
- package/node_modules/npm/docs/content/commands/npm-exec.md +368 -0
- package/node_modules/npm/docs/content/commands/npm-explain.md +101 -0
- package/node_modules/npm/docs/content/commands/npm-explore.md +46 -0
- package/node_modules/npm/docs/content/commands/npm-find-dupes.md +253 -0
- package/node_modules/npm/docs/content/commands/npm-fund.md +136 -0
- package/node_modules/npm/docs/content/commands/npm-get.md +32 -0
- package/node_modules/npm/docs/content/commands/npm-help-search.md +38 -0
- package/node_modules/npm/docs/content/commands/npm-help.md +44 -0
- package/node_modules/npm/docs/content/commands/npm-init.md +348 -0
- package/node_modules/npm/docs/content/commands/npm-install-ci-test.md +400 -0
- package/node_modules/npm/docs/content/commands/npm-install-scripts.md +166 -0
- package/node_modules/npm/docs/content/commands/npm-install-test.md +593 -0
- package/node_modules/npm/docs/content/commands/npm-install.md +976 -0
- package/node_modules/npm/docs/content/commands/npm-link.md +456 -0
- package/node_modules/npm/docs/content/commands/npm-ll.md +230 -0
- package/node_modules/npm/docs/content/commands/npm-login.md +93 -0
- package/node_modules/npm/docs/content/commands/npm-logout.md +72 -0
- package/node_modules/npm/docs/content/commands/npm-ls.md +260 -0
- package/node_modules/npm/docs/content/commands/npm-org.md +113 -0
- package/node_modules/npm/docs/content/commands/npm-outdated.md +247 -0
- package/node_modules/npm/docs/content/commands/npm-owner.md +104 -0
- package/node_modules/npm/docs/content/commands/npm-pack.md +135 -0
- package/node_modules/npm/docs/content/commands/npm-ping.md +46 -0
- package/node_modules/npm/docs/content/commands/npm-pkg.md +244 -0
- package/node_modules/npm/docs/content/commands/npm-prefix.md +58 -0
- package/node_modules/npm/docs/content/commands/npm-profile.md +115 -0
- package/node_modules/npm/docs/content/commands/npm-prune.md +191 -0
- package/node_modules/npm/docs/content/commands/npm-publish.md +247 -0
- package/node_modules/npm/docs/content/commands/npm-query.md +354 -0
- package/node_modules/npm/docs/content/commands/npm-rebuild.md +224 -0
- package/node_modules/npm/docs/content/commands/npm-repo.md +99 -0
- package/node_modules/npm/docs/content/commands/npm-restart.md +68 -0
- package/node_modules/npm/docs/content/commands/npm-root.md +51 -0
- package/node_modules/npm/docs/content/commands/npm-run.md +231 -0
- package/node_modules/npm/docs/content/commands/npm-sbom.md +317 -0
- package/node_modules/npm/docs/content/commands/npm-search.md +154 -0
- package/node_modules/npm/docs/content/commands/npm-set.md +58 -0
- package/node_modules/npm/docs/content/commands/npm-shrinkwrap.md +29 -0
- package/node_modules/npm/docs/content/commands/npm-stage.md +253 -0
- package/node_modules/npm/docs/content/commands/npm-star.md +79 -0
- package/node_modules/npm/docs/content/commands/npm-stars.md +38 -0
- package/node_modules/npm/docs/content/commands/npm-start.md +76 -0
- package/node_modules/npm/docs/content/commands/npm-stop.md +71 -0
- package/node_modules/npm/docs/content/commands/npm-team.md +144 -0
- package/node_modules/npm/docs/content/commands/npm-test.md +69 -0
- package/node_modules/npm/docs/content/commands/npm-token.md +203 -0
- package/node_modules/npm/docs/content/commands/npm-trust.md +176 -0
- package/node_modules/npm/docs/content/commands/npm-undeprecate.md +61 -0
- package/node_modules/npm/docs/content/commands/npm-uninstall.md +151 -0
- package/node_modules/npm/docs/content/commands/npm-unpublish.md +126 -0
- package/node_modules/npm/docs/content/commands/npm-unstar.md +73 -0
- package/node_modules/npm/docs/content/commands/npm-update.md +576 -0
- package/node_modules/npm/docs/content/commands/npm-version.md +256 -0
- package/node_modules/npm/docs/content/commands/npm-view.md +258 -0
- package/node_modules/npm/docs/content/commands/npm-whoami.md +38 -0
- package/node_modules/npm/docs/content/commands/npm.md +148 -0
- package/node_modules/npm/docs/content/commands/npx.md +139 -0
- package/node_modules/npm/docs/content/configuring-npm/folders.md +172 -0
- package/node_modules/npm/docs/content/configuring-npm/install.md +53 -0
- package/node_modules/npm/docs/content/configuring-npm/npm-shrinkwrap-json.md +25 -0
- package/node_modules/npm/docs/content/configuring-npm/npmrc.md +193 -0
- package/node_modules/npm/docs/content/configuring-npm/package-json.md +1210 -0
- package/node_modules/npm/docs/content/configuring-npm/package-lock-json.md +182 -0
- package/node_modules/npm/docs/content/using-npm/config.md +2411 -0
- package/node_modules/npm/docs/content/using-npm/dependency-selectors.md +247 -0
- package/node_modules/npm/docs/content/using-npm/developers.md +233 -0
- package/node_modules/npm/docs/content/using-npm/logging.md +99 -0
- package/node_modules/npm/docs/content/using-npm/orgs.md +98 -0
- package/node_modules/npm/docs/content/using-npm/package-spec.md +92 -0
- package/node_modules/npm/docs/content/using-npm/registry.md +61 -0
- package/node_modules/npm/docs/content/using-npm/removal.md +55 -0
- package/node_modules/npm/docs/content/using-npm/scope.md +123 -0
- package/node_modules/npm/docs/content/using-npm/scripts.md +373 -0
- package/node_modules/npm/docs/content/using-npm/workspaces.md +219 -0
- package/node_modules/npm/docs/output/commands/npm-access.html +280 -0
- package/node_modules/npm/docs/output/commands/npm-adduser.html +271 -0
- package/node_modules/npm/docs/output/commands/npm-approve-scripts.html +319 -0
- package/node_modules/npm/docs/output/commands/npm-audit.html +528 -0
- package/node_modules/npm/docs/output/commands/npm-bugs.html +293 -0
- package/node_modules/npm/docs/output/commands/npm-cache.html +300 -0
- package/node_modules/npm/docs/output/commands/npm-ci.html +549 -0
- package/node_modules/npm/docs/output/commands/npm-completion.html +234 -0
- package/node_modules/npm/docs/output/commands/npm-config.html +331 -0
- package/node_modules/npm/docs/output/commands/npm-dedupe.html +500 -0
- package/node_modules/npm/docs/output/commands/npm-deny-scripts.html +291 -0
- package/node_modules/npm/docs/output/commands/npm-deprecate.html +267 -0
- package/node_modules/npm/docs/output/commands/npm-diff.html +415 -0
- package/node_modules/npm/docs/output/commands/npm-dist-tag.html +318 -0
- package/node_modules/npm/docs/output/commands/npm-docs.html +293 -0
- package/node_modules/npm/docs/output/commands/npm-doctor.html +282 -0
- package/node_modules/npm/docs/output/commands/npm-edit.html +238 -0
- package/node_modules/npm/docs/output/commands/npm-exec.html +477 -0
- package/node_modules/npm/docs/output/commands/npm-explain.html +291 -0
- package/node_modules/npm/docs/output/commands/npm-explore.html +240 -0
- package/node_modules/npm/docs/output/commands/npm-find-dupes.html +400 -0
- package/node_modules/npm/docs/output/commands/npm-fund.html +311 -0
- package/node_modules/npm/docs/output/commands/npm-get.html +231 -0
- package/node_modules/npm/docs/output/commands/npm-help-search.html +235 -0
- package/node_modules/npm/docs/output/commands/npm-help.html +241 -0
- package/node_modules/npm/docs/output/commands/npm-init.html +467 -0
- package/node_modules/npm/docs/output/commands/npm-install-ci-test.html +514 -0
- package/node_modules/npm/docs/output/commands/npm-install-scripts.html +341 -0
- package/node_modules/npm/docs/output/commands/npm-install-test.html +657 -0
- package/node_modules/npm/docs/output/commands/npm-install.html +963 -0
- package/node_modules/npm/docs/output/commands/npm-link.html +546 -0
- package/node_modules/npm/docs/output/commands/npm-ll.html +382 -0
- package/node_modules/npm/docs/output/commands/npm-login.html +274 -0
- package/node_modules/npm/docs/output/commands/npm-logout.html +259 -0
- package/node_modules/npm/docs/output/commands/npm-ls.html +404 -0
- package/node_modules/npm/docs/output/commands/npm-org.html +283 -0
- package/node_modules/npm/docs/output/commands/npm-outdated.html +407 -0
- package/node_modules/npm/docs/output/commands/npm-owner.html +294 -0
- package/node_modules/npm/docs/output/commands/npm-pack.html +314 -0
- package/node_modules/npm/docs/output/commands/npm-ping.html +242 -0
- package/node_modules/npm/docs/output/commands/npm-pkg.html +389 -0
- package/node_modules/npm/docs/output/commands/npm-prefix.html +252 -0
- package/node_modules/npm/docs/output/commands/npm-profile.html +309 -0
- package/node_modules/npm/docs/output/commands/npm-prune.html +352 -0
- package/node_modules/npm/docs/output/commands/npm-publish.html +397 -0
- package/node_modules/npm/docs/output/commands/npm-query.html +500 -0
- package/node_modules/npm/docs/output/commands/npm-rebuild.html +384 -0
- package/node_modules/npm/docs/output/commands/npm-repo.html +286 -0
- package/node_modules/npm/docs/output/commands/npm-restart.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-root.html +248 -0
- package/node_modules/npm/docs/output/commands/npm-run.html +376 -0
- package/node_modules/npm/docs/output/commands/npm-sbom.html +490 -0
- package/node_modules/npm/docs/output/commands/npm-search.html +320 -0
- package/node_modules/npm/docs/output/commands/npm-set.html +255 -0
- package/node_modules/npm/docs/output/commands/npm-shrinkwrap.html +232 -0
- package/node_modules/npm/docs/output/commands/npm-stage.html +609 -0
- package/node_modules/npm/docs/output/commands/npm-star.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-stars.html +236 -0
- package/node_modules/npm/docs/output/commands/npm-start.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-stop.html +260 -0
- package/node_modules/npm/docs/output/commands/npm-team.html +314 -0
- package/node_modules/npm/docs/output/commands/npm-test.html +259 -0
- package/node_modules/npm/docs/output/commands/npm-token.html +351 -0
- package/node_modules/npm/docs/output/commands/npm-trust.html +552 -0
- package/node_modules/npm/docs/output/commands/npm-undeprecate.html +252 -0
- package/node_modules/npm/docs/output/commands/npm-uninstall.html +323 -0
- package/node_modules/npm/docs/output/commands/npm-unpublish.html +310 -0
- package/node_modules/npm/docs/output/commands/npm-unstar.html +258 -0
- package/node_modules/npm/docs/output/commands/npm-update.html +635 -0
- package/node_modules/npm/docs/output/commands/npm-version.html +404 -0
- package/node_modules/npm/docs/output/commands/npm-view.html +383 -0
- package/node_modules/npm/docs/output/commands/npm-whoami.html +235 -0
- package/node_modules/npm/docs/output/commands/npm.html +323 -0
- package/node_modules/npm/docs/output/commands/npx.html +308 -0
- package/node_modules/npm/docs/output/configuring-npm/folders.html +331 -0
- package/node_modules/npm/docs/output/configuring-npm/install.html +249 -0
- package/node_modules/npm/docs/output/configuring-npm/npm-global.html +331 -0
- package/node_modules/npm/docs/output/configuring-npm/npm-json.html +1097 -0
- package/node_modules/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html +229 -0
- package/node_modules/npm/docs/output/configuring-npm/npmrc.html +347 -0
- package/node_modules/npm/docs/output/configuring-npm/package-json.html +1097 -0
- package/node_modules/npm/docs/output/configuring-npm/package-lock-json.html +391 -0
- package/node_modules/npm/docs/output/using-npm/config.html +1956 -0
- package/node_modules/npm/docs/output/using-npm/dependency-selectors.html +425 -0
- package/node_modules/npm/docs/output/using-npm/developers.html +389 -0
- package/node_modules/npm/docs/output/using-npm/logging.html +284 -0
- package/node_modules/npm/docs/output/using-npm/orgs.html +294 -0
- package/node_modules/npm/docs/output/using-npm/package-spec.html +295 -0
- package/node_modules/npm/docs/output/using-npm/registry.html +255 -0
- package/node_modules/npm/docs/output/using-npm/removal.html +245 -0
- package/node_modules/npm/docs/output/using-npm/scope.html +290 -0
- package/node_modules/npm/docs/output/using-npm/scripts.html +539 -0
- package/node_modules/npm/docs/output/using-npm/workspaces.html +352 -0
- package/node_modules/npm/index.js +5 -0
- package/node_modules/npm/lib/arborist-cmd.js +49 -0
- package/node_modules/npm/lib/base-cmd.js +437 -0
- package/node_modules/npm/lib/cli/entry.js +72 -0
- package/node_modules/npm/lib/cli/exit-handler.js +168 -0
- package/node_modules/npm/lib/cli/update-notifier.js +115 -0
- package/node_modules/npm/lib/cli/validate-engines.js +43 -0
- package/node_modules/npm/lib/cli.js +12 -0
- package/node_modules/npm/lib/commands/access.js +226 -0
- package/node_modules/npm/lib/commands/adduser.js +50 -0
- package/node_modules/npm/lib/commands/approve-scripts.js +10 -0
- package/node_modules/npm/lib/commands/audit.js +138 -0
- package/node_modules/npm/lib/commands/bugs.js +34 -0
- package/node_modules/npm/lib/commands/cache.js +363 -0
- package/node_modules/npm/lib/commands/ci.js +138 -0
- package/node_modules/npm/lib/commands/completion.js +329 -0
- package/node_modules/npm/lib/commands/config.js +414 -0
- package/node_modules/npm/lib/commands/dedupe.js +57 -0
- package/node_modules/npm/lib/commands/deny-scripts.js +10 -0
- package/node_modules/npm/lib/commands/deprecate.js +86 -0
- package/node_modules/npm/lib/commands/diff.js +280 -0
- package/node_modules/npm/lib/commands/dist-tag.js +207 -0
- package/node_modules/npm/lib/commands/docs.js +21 -0
- package/node_modules/npm/lib/commands/doctor.js +343 -0
- package/node_modules/npm/lib/commands/edit.js +64 -0
- package/node_modules/npm/lib/commands/exec.js +119 -0
- package/node_modules/npm/lib/commands/explain.js +128 -0
- package/node_modules/npm/lib/commands/explore.js +70 -0
- package/node_modules/npm/lib/commands/find-dupes.js +27 -0
- package/node_modules/npm/lib/commands/fund.js +215 -0
- package/node_modules/npm/lib/commands/get.js +21 -0
- package/node_modules/npm/lib/commands/help-search.js +194 -0
- package/node_modules/npm/lib/commands/help.js +113 -0
- package/node_modules/npm/lib/commands/init.js +240 -0
- package/node_modules/npm/lib/commands/install-ci-test.js +13 -0
- package/node_modules/npm/lib/commands/install-scripts.js +53 -0
- package/node_modules/npm/lib/commands/install-test.js +13 -0
- package/node_modules/npm/lib/commands/install.js +184 -0
- package/node_modules/npm/lib/commands/link.js +205 -0
- package/node_modules/npm/lib/commands/ll.js +13 -0
- package/node_modules/npm/lib/commands/login.js +50 -0
- package/node_modules/npm/lib/commands/logout.js +50 -0
- package/node_modules/npm/lib/commands/ls.js +572 -0
- package/node_modules/npm/lib/commands/org.js +148 -0
- package/node_modules/npm/lib/commands/outdated.js +294 -0
- package/node_modules/npm/lib/commands/owner.js +244 -0
- package/node_modules/npm/lib/commands/pack.js +98 -0
- package/node_modules/npm/lib/commands/ping.js +30 -0
- package/node_modules/npm/lib/commands/pkg.js +127 -0
- package/node_modules/npm/lib/commands/prefix.js +14 -0
- package/node_modules/npm/lib/commands/profile.js +366 -0
- package/node_modules/npm/lib/commands/prune.js +36 -0
- package/node_modules/npm/lib/commands/publish.js +314 -0
- package/node_modules/npm/lib/commands/query.js +164 -0
- package/node_modules/npm/lib/commands/rebuild.js +123 -0
- package/node_modules/npm/lib/commands/repo.js +55 -0
- package/node_modules/npm/lib/commands/restart.js +13 -0
- package/node_modules/npm/lib/commands/root.js +14 -0
- package/node_modules/npm/lib/commands/run.js +222 -0
- package/node_modules/npm/lib/commands/sbom.js +130 -0
- package/node_modules/npm/lib/commands/search.js +70 -0
- package/node_modules/npm/lib/commands/set.js +24 -0
- package/node_modules/npm/lib/commands/shrinkwrap.js +70 -0
- package/node_modules/npm/lib/commands/stage/approve.js +35 -0
- package/node_modules/npm/lib/commands/stage/download.js +70 -0
- package/node_modules/npm/lib/commands/stage/index.js +25 -0
- package/node_modules/npm/lib/commands/stage/list.js +72 -0
- package/node_modules/npm/lib/commands/stage/publish.js +13 -0
- package/node_modules/npm/lib/commands/stage/reject.js +37 -0
- package/node_modules/npm/lib/commands/stage/view.js +34 -0
- package/node_modules/npm/lib/commands/star.js +72 -0
- package/node_modules/npm/lib/commands/stars.js +39 -0
- package/node_modules/npm/lib/commands/start.js +13 -0
- package/node_modules/npm/lib/commands/stop.js +13 -0
- package/node_modules/npm/lib/commands/team.js +158 -0
- package/node_modules/npm/lib/commands/test.js +13 -0
- package/node_modules/npm/lib/commands/token.js +285 -0
- package/node_modules/npm/lib/commands/trust/circleci.js +178 -0
- package/node_modules/npm/lib/commands/trust/github.js +107 -0
- package/node_modules/npm/lib/commands/trust/gitlab.js +108 -0
- package/node_modules/npm/lib/commands/trust/index.js +25 -0
- package/node_modules/npm/lib/commands/trust/list.js +50 -0
- package/node_modules/npm/lib/commands/trust/revoke.js +52 -0
- package/node_modules/npm/lib/commands/undeprecate.js +13 -0
- package/node_modules/npm/lib/commands/uninstall.js +57 -0
- package/node_modules/npm/lib/commands/unpublish.js +163 -0
- package/node_modules/npm/lib/commands/unstar.js +8 -0
- package/node_modules/npm/lib/commands/update.js +77 -0
- package/node_modules/npm/lib/commands/version.js +152 -0
- package/node_modules/npm/lib/commands/view.js +488 -0
- package/node_modules/npm/lib/commands/whoami.js +20 -0
- package/node_modules/npm/lib/lifecycle-cmd.js +20 -0
- package/node_modules/npm/lib/npm.js +526 -0
- package/node_modules/npm/lib/package-url-cmd.js +63 -0
- package/node_modules/npm/lib/trust-cmd.js +345 -0
- package/node_modules/npm/lib/utils/allow-scripts-cmd.js +403 -0
- package/node_modules/npm/lib/utils/allow-scripts-prune.js +47 -0
- package/node_modules/npm/lib/utils/allow-scripts-remediation.js +9 -0
- package/node_modules/npm/lib/utils/allow-scripts-writer.js +362 -0
- package/node_modules/npm/lib/utils/audit-error.js +40 -0
- package/node_modules/npm/lib/utils/auth.js +108 -0
- package/node_modules/npm/lib/utils/check-allow-scripts.js +27 -0
- package/node_modules/npm/lib/utils/cmd-list.js +183 -0
- package/node_modules/npm/lib/utils/completion.fish +40 -0
- package/node_modules/npm/lib/utils/completion.sh +70 -0
- package/node_modules/npm/lib/utils/did-you-mean.js +33 -0
- package/node_modules/npm/lib/utils/display.js +558 -0
- package/node_modules/npm/lib/utils/error-message.js +453 -0
- package/node_modules/npm/lib/utils/explain-dep.js +116 -0
- package/node_modules/npm/lib/utils/explain-eresolve.js +64 -0
- package/node_modules/npm/lib/utils/format-bytes.js +29 -0
- package/node_modules/npm/lib/utils/format-search-stream.js +175 -0
- package/node_modules/npm/lib/utils/format.js +56 -0
- package/node_modules/npm/lib/utils/get-identity.js +25 -0
- package/node_modules/npm/lib/utils/get-workspaces.js +54 -0
- package/node_modules/npm/lib/utils/installed-deep.js +45 -0
- package/node_modules/npm/lib/utils/installed-shallow.js +19 -0
- package/node_modules/npm/lib/utils/is-windows.js +4 -0
- package/node_modules/npm/lib/utils/key-values.js +42 -0
- package/node_modules/npm/lib/utils/log-file.js +247 -0
- package/node_modules/npm/lib/utils/npm-usage.js +74 -0
- package/node_modules/npm/lib/utils/oidc.js +177 -0
- package/node_modules/npm/lib/utils/open-url.js +97 -0
- package/node_modules/npm/lib/utils/output-error.js +30 -0
- package/node_modules/npm/lib/utils/ping.js +6 -0
- package/node_modules/npm/lib/utils/queryable.js +292 -0
- package/node_modules/npm/lib/utils/read-user-info.js +69 -0
- package/node_modules/npm/lib/utils/reify-finish.js +25 -0
- package/node_modules/npm/lib/utils/reify-output.js +291 -0
- package/node_modules/npm/lib/utils/resolve-allow-scripts.js +181 -0
- package/node_modules/npm/lib/utils/sbom-cyclonedx.js +210 -0
- package/node_modules/npm/lib/utils/sbom-spdx.js +211 -0
- package/node_modules/npm/lib/utils/strict-allow-scripts-preflight.js +76 -0
- package/node_modules/npm/lib/utils/tar.js +110 -0
- package/node_modules/npm/lib/utils/timers.js +89 -0
- package/node_modules/npm/lib/utils/update-workspaces.js +37 -0
- package/node_modules/npm/lib/utils/validate-lockfile.js +29 -0
- package/node_modules/npm/lib/utils/validate-uuid.js +10 -0
- package/node_modules/npm/lib/utils/verify-signatures.js +397 -0
- package/node_modules/npm/lib/utils/warn-workspace-allow-scripts.js +40 -0
- package/node_modules/npm/man/man1/npm-access.1 +105 -0
- package/node_modules/npm/man/man1/npm-adduser.1 +93 -0
- package/node_modules/npm/man/man1/npm-approve-scripts.1 +117 -0
- package/node_modules/npm/man/man1/npm-audit.1 +466 -0
- package/node_modules/npm/man/man1/npm-bugs.1 +115 -0
- package/node_modules/npm/man/man1/npm-cache.1 +95 -0
- package/node_modules/npm/man/man1/npm-ci.1 +377 -0
- package/node_modules/npm/man/man1/npm-completion.1 +35 -0
- package/node_modules/npm/man/man1/npm-config.1 +186 -0
- package/node_modules/npm/man/man1/npm-dedupe.1 +340 -0
- package/node_modules/npm/man/man1/npm-deny-scripts.1 +99 -0
- package/node_modules/npm/man/man1/npm-deprecate.1 +85 -0
- package/node_modules/npm/man/man1/npm-diff.1 +310 -0
- package/node_modules/npm/man/man1/npm-dist-tag.1 +144 -0
- package/node_modules/npm/man/man1/npm-docs.1 +113 -0
- package/node_modules/npm/man/man1/npm-doctor.1 +82 -0
- package/node_modules/npm/man/man1/npm-edit.1 +43 -0
- package/node_modules/npm/man/man1/npm-exec.1 +388 -0
- package/node_modules/npm/man/man1/npm-explain.1 +118 -0
- package/node_modules/npm/man/man1/npm-explore.1 +49 -0
- package/node_modules/npm/man/man1/npm-find-dupes.1 +227 -0
- package/node_modules/npm/man/man1/npm-fund.1 +142 -0
- package/node_modules/npm/man/man1/npm-get.1 +31 -0
- package/node_modules/npm/man/man1/npm-help-search.1 +37 -0
- package/node_modules/npm/man/man1/npm-help.1 +47 -0
- package/node_modules/npm/man/man1/npm-init.1 +393 -0
- package/node_modules/npm/man/man1/npm-install-ci-test.1 +327 -0
- package/node_modules/npm/man/man1/npm-install-scripts.1 +133 -0
- package/node_modules/npm/man/man1/npm-install-test.1 +497 -0
- package/node_modules/npm/man/man1/npm-install.1 +941 -0
- package/node_modules/npm/man/man1/npm-link.1 +405 -0
- package/node_modules/npm/man/man1/npm-ll.1 +231 -0
- package/node_modules/npm/man/man1/npm-login.1 +97 -0
- package/node_modules/npm/man/man1/npm-logout.1 +75 -0
- package/node_modules/npm/man/man1/npm-ls.1 +271 -0
- package/node_modules/npm/man/man1/npm-org.1 +125 -0
- package/node_modules/npm/man/man1/npm-outdated.1 +247 -0
- package/node_modules/npm/man/man1/npm-owner.1 +110 -0
- package/node_modules/npm/man/man1/npm-pack.1 +142 -0
- package/node_modules/npm/man/man1/npm-ping.1 +52 -0
- package/node_modules/npm/man/man1/npm-pkg.1 +286 -0
- package/node_modules/npm/man/man1/npm-prefix.1 +63 -0
- package/node_modules/npm/man/man1/npm-profile.1 +126 -0
- package/node_modules/npm/man/man1/npm-prune.1 +184 -0
- package/node_modules/npm/man/man1/npm-publish.1 +263 -0
- package/node_modules/npm/man/man1/npm-query.1 +344 -0
- package/node_modules/npm/man/man1/npm-rebuild.1 +216 -0
- package/node_modules/npm/man/man1/npm-repo.1 +103 -0
- package/node_modules/npm/man/man1/npm-restart.1 +84 -0
- package/node_modules/npm/man/man1/npm-root.1 +56 -0
- package/node_modules/npm/man/man1/npm-run.1 +234 -0
- package/node_modules/npm/man/man1/npm-sbom.1 +314 -0
- package/node_modules/npm/man/man1/npm-search.1 +156 -0
- package/node_modules/npm/man/man1/npm-set.1 +61 -0
- package/node_modules/npm/man/man1/npm-shrinkwrap.1 +32 -0
- package/node_modules/npm/man/man1/npm-stage.1 +178 -0
- package/node_modules/npm/man/man1/npm-star.1 +76 -0
- package/node_modules/npm/man/man1/npm-stars.1 +41 -0
- package/node_modules/npm/man/man1/npm-start.1 +79 -0
- package/node_modules/npm/man/man1/npm-stop.1 +75 -0
- package/node_modules/npm/man/man1/npm-team.1 +148 -0
- package/node_modules/npm/man/man1/npm-test.1 +73 -0
- package/node_modules/npm/man/man1/npm-token.1 +200 -0
- package/node_modules/npm/man/man1/npm-trust.1 +143 -0
- package/node_modules/npm/man/man1/npm-undeprecate.1 +57 -0
- package/node_modules/npm/man/man1/npm-uninstall.1 +159 -0
- package/node_modules/npm/man/man1/npm-unpublish.1 +137 -0
- package/node_modules/npm/man/man1/npm-unstar.1 +70 -0
- package/node_modules/npm/man/man1/npm-update.1 +509 -0
- package/node_modules/npm/man/man1/npm-version.1 +259 -0
- package/node_modules/npm/man/man1/npm-view.1 +284 -0
- package/node_modules/npm/man/man1/npm-whoami.1 +39 -0
- package/node_modules/npm/man/man1/npm.1 +131 -0
- package/node_modules/npm/man/man1/npx.1 +158 -0
- package/node_modules/npm/man/man5/folders.5 +147 -0
- package/node_modules/npm/man/man5/install.5 +54 -0
- package/node_modules/npm/man/man5/npm-global.5 +147 -0
- package/node_modules/npm/man/man5/npm-json.5 +1269 -0
- package/node_modules/npm/man/man5/npm-shrinkwrap-json.5 +23 -0
- package/node_modules/npm/man/man5/npmrc.5 +195 -0
- package/node_modules/npm/man/man5/package-json.5 +1269 -0
- package/node_modules/npm/man/man5/package-lock-json.5 +166 -0
- package/node_modules/npm/man/man7/config.7 +2379 -0
- package/node_modules/npm/man/man7/dependency-selectors.7 +331 -0
- package/node_modules/npm/man/man7/developers.7 +251 -0
- package/node_modules/npm/man/man7/logging.7 +108 -0
- package/node_modules/npm/man/man7/orgs.7 +145 -0
- package/node_modules/npm/man/man7/package-spec.7 +126 -0
- package/node_modules/npm/man/man7/registry.7 +49 -0
- package/node_modules/npm/man/man7/removal.7 +54 -0
- package/node_modules/npm/man/man7/scope.7 +113 -0
- package/node_modules/npm/man/man7/scripts.7 +467 -0
- package/node_modules/npm/man/man7/workspaces.7 +236 -0
- package/node_modules/npm/package.json +259 -0
- package/node_modules/npm-audit-report/LICENSE +16 -0
- package/node_modules/npm-audit-report/lib/colors.js +22 -0
- package/node_modules/npm-audit-report/lib/exit-code.js +14 -0
- package/node_modules/npm-audit-report/lib/index.js +41 -0
- package/node_modules/npm-audit-report/lib/reporters/detail.js +86 -0
- package/node_modules/npm-audit-report/lib/reporters/install.js +75 -0
- package/node_modules/npm-audit-report/lib/reporters/json.js +1 -0
- package/node_modules/npm-audit-report/lib/reporters/quiet.js +1 -0
- package/node_modules/npm-audit-report/package.json +62 -0
- package/node_modules/npm-bundled/LICENSE +15 -0
- package/node_modules/npm-bundled/lib/index.js +254 -0
- package/node_modules/npm-bundled/package.json +49 -0
- package/node_modules/npm-install-checks/LICENSE +27 -0
- package/node_modules/npm-install-checks/lib/current-env.js +91 -0
- package/node_modules/npm-install-checks/lib/dev-engines.js +145 -0
- package/node_modules/npm-install-checks/lib/index.js +90 -0
- package/node_modules/npm-install-checks/package.json +52 -0
- package/node_modules/npm-normalize-package-bin/LICENSE +15 -0
- package/node_modules/npm-normalize-package-bin/lib/index.js +64 -0
- package/node_modules/npm-normalize-package-bin/package.json +45 -0
- package/node_modules/npm-package-arg/LICENSE +15 -0
- package/node_modules/npm-package-arg/lib/npa.js +479 -0
- package/node_modules/npm-package-arg/package.json +60 -0
- package/node_modules/npm-packlist/LICENSE +15 -0
- package/node_modules/npm-packlist/lib/index.js +464 -0
- package/node_modules/npm-packlist/package.json +62 -0
- package/node_modules/npm-pick-manifest/LICENSE.md +16 -0
- package/node_modules/npm-pick-manifest/lib/index.js +219 -0
- package/node_modules/npm-pick-manifest/package.json +58 -0
- package/node_modules/npm-profile/LICENSE.md +20 -0
- package/node_modules/npm-profile/lib/index.js +305 -0
- package/node_modules/npm-profile/package.json +52 -0
- package/node_modules/npm-registry-fetch/LICENSE.md +20 -0
- package/node_modules/npm-registry-fetch/lib/auth.js +181 -0
- package/node_modules/npm-registry-fetch/lib/check-response.js +108 -0
- package/node_modules/npm-registry-fetch/lib/default-opts.js +19 -0
- package/node_modules/npm-registry-fetch/lib/errors.js +80 -0
- package/node_modules/npm-registry-fetch/lib/index.js +248 -0
- package/node_modules/npm-registry-fetch/lib/json-stream.js +223 -0
- package/node_modules/npm-registry-fetch/package.json +68 -0
- package/node_modules/npm-user-validate/LICENSE +27 -0
- package/node_modules/npm-user-validate/lib/index.js +61 -0
- package/node_modules/npm-user-validate/package.json +50 -0
- package/node_modules/p-map/index.js +283 -0
- package/node_modules/p-map/license +9 -0
- package/node_modules/p-map/package.json +57 -0
- package/node_modules/pacote/LICENSE +15 -0
- package/node_modules/pacote/README.md +251 -0
- package/node_modules/pacote/bin/index.js +158 -0
- package/node_modules/pacote/lib/dir.js +105 -0
- package/node_modules/pacote/lib/fetcher.js +519 -0
- package/node_modules/pacote/lib/file.js +94 -0
- package/node_modules/pacote/lib/git.js +329 -0
- package/node_modules/pacote/lib/index.js +23 -0
- package/node_modules/pacote/lib/registry.js +373 -0
- package/node_modules/pacote/lib/remote.js +89 -0
- package/node_modules/pacote/lib/util/add-git-sha.js +18 -0
- package/node_modules/pacote/lib/util/cache-dir.js +15 -0
- package/node_modules/pacote/lib/util/is-package-bin.js +25 -0
- package/node_modules/pacote/lib/util/npm.js +14 -0
- package/node_modules/pacote/lib/util/protected.js +5 -0
- package/node_modules/pacote/lib/util/tar-create-options.js +31 -0
- package/node_modules/pacote/lib/util/trailing-slashes.js +10 -0
- package/node_modules/pacote/package.json +80 -0
- package/node_modules/parse-conflict-json/LICENSE.md +20 -0
- package/node_modules/parse-conflict-json/lib/index.js +104 -0
- package/node_modules/parse-conflict-json/package.json +51 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/picomatch/LICENSE +21 -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 +1386 -0
- package/node_modules/picomatch/lib/picomatch.js +349 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +72 -0
- package/node_modules/picomatch/package.json +82 -0
- package/node_modules/picomatch/posix.js +3 -0
- package/node_modules/postcss-selector-parser/API.md +874 -0
- package/node_modules/postcss-selector-parser/LICENSE-MIT +22 -0
- package/node_modules/postcss-selector-parser/dist/index.js +44 -0
- package/node_modules/postcss-selector-parser/dist/parser.js +1105 -0
- package/node_modules/postcss-selector-parser/dist/processor.js +153 -0
- package/node_modules/postcss-selector-parser/dist/selectors/attribute.js +440 -0
- package/node_modules/postcss-selector-parser/dist/selectors/className.js +59 -0
- package/node_modules/postcss-selector-parser/dist/selectors/combinator.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/comment.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/constructors.js +43 -0
- package/node_modules/postcss-selector-parser/dist/selectors/container.js +433 -0
- package/node_modules/postcss-selector-parser/dist/selectors/guards.js +61 -0
- package/node_modules/postcss-selector-parser/dist/selectors/id.js +36 -0
- package/node_modules/postcss-selector-parser/dist/selectors/index.js +20 -0
- package/node_modules/postcss-selector-parser/dist/selectors/namespace.js +96 -0
- package/node_modules/postcss-selector-parser/dist/selectors/nesting.js +34 -0
- package/node_modules/postcss-selector-parser/dist/selectors/node.js +195 -0
- package/node_modules/postcss-selector-parser/dist/selectors/pseudo.js +45 -0
- package/node_modules/postcss-selector-parser/dist/selectors/root.js +56 -0
- package/node_modules/postcss-selector-parser/dist/selectors/selector.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/string.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/tag.js +33 -0
- package/node_modules/postcss-selector-parser/dist/selectors/types.js +16 -0
- package/node_modules/postcss-selector-parser/dist/selectors/universal.js +34 -0
- package/node_modules/postcss-selector-parser/dist/sortAscending.js +7 -0
- package/node_modules/postcss-selector-parser/dist/tokenTypes.js +37 -0
- package/node_modules/postcss-selector-parser/dist/tokenize.js +301 -0
- package/node_modules/postcss-selector-parser/dist/util/ensureObject.js +17 -0
- package/node_modules/postcss-selector-parser/dist/util/getProp.js +18 -0
- package/node_modules/postcss-selector-parser/dist/util/index.js +18 -0
- package/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js +25 -0
- package/node_modules/postcss-selector-parser/dist/util/stripComments.js +20 -0
- package/node_modules/postcss-selector-parser/dist/util/unesc.js +72 -0
- package/node_modules/postcss-selector-parser/package.json +63 -0
- package/node_modules/proc-log/LICENSE +15 -0
- package/node_modules/proc-log/lib/index.js +158 -0
- package/node_modules/proc-log/package.json +46 -0
- package/node_modules/proggy/LICENSE +15 -0
- package/node_modules/proggy/lib/client.js +114 -0
- package/node_modules/proggy/lib/index.js +15 -0
- package/node_modules/proggy/lib/tracker.js +68 -0
- package/node_modules/proggy/package.json +50 -0
- package/node_modules/promise-all-reject-late/LICENSE +15 -0
- package/node_modules/promise-all-reject-late/index.js +27 -0
- package/node_modules/promise-all-reject-late/package.json +22 -0
- package/node_modules/promise-all-reject-late/test/index.js +88 -0
- package/node_modules/promise-call-limit/LICENSE +15 -0
- package/node_modules/promise-call-limit/dist/commonjs/index.js +87 -0
- package/node_modules/promise-call-limit/dist/commonjs/package.json +3 -0
- package/node_modules/promise-call-limit/dist/esm/index.js +60 -0
- package/node_modules/promise-call-limit/dist/esm/package.json +3 -0
- package/node_modules/promise-call-limit/package.json +68 -0
- package/node_modules/promzard/LICENSE +15 -0
- package/node_modules/promzard/lib/index.js +176 -0
- package/node_modules/promzard/package.json +50 -0
- package/node_modules/qrcode-terminal/.travis.yml +3 -0
- package/node_modules/qrcode-terminal/LICENSE +222 -0
- package/node_modules/qrcode-terminal/README.md +82 -0
- package/node_modules/qrcode-terminal/bin/qrcode-terminal.js +101 -0
- package/node_modules/qrcode-terminal/example/basic.js +2 -0
- package/node_modules/qrcode-terminal/example/basic.png +0 -0
- package/node_modules/qrcode-terminal/example/callback.js +4 -0
- package/node_modules/qrcode-terminal/example/small-qrcode.js +6 -0
- package/node_modules/qrcode-terminal/lib/main.js +100 -0
- package/node_modules/qrcode-terminal/package.json +37 -0
- package/node_modules/qrcode-terminal/test/main.js +63 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js +22 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js +38 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js +7 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js +10 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRMath.js +44 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js +6 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js +66 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js +298 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js +272 -0
- package/node_modules/qrcode-terminal/vendor/QRCode/index.js +462 -0
- package/node_modules/read/LICENSE +15 -0
- package/node_modules/read/dist/commonjs/package.json +3 -0
- package/node_modules/read/dist/commonjs/read.js +94 -0
- package/node_modules/read/dist/esm/package.json +3 -0
- package/node_modules/read/dist/esm/read.js +88 -0
- package/node_modules/read/package.json +88 -0
- package/node_modules/read-cmd-shim/LICENSE +14 -0
- package/node_modules/read-cmd-shim/lib/index.js +75 -0
- package/node_modules/read-cmd-shim/package.json +48 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/node_modules/signal-exit/package.json +106 -0
- package/node_modules/sigstore/LICENSE +202 -0
- package/node_modules/sigstore/dist/config.js +126 -0
- package/node_modules/sigstore/dist/index.js +34 -0
- package/node_modules/sigstore/dist/sigstore.js +112 -0
- package/node_modules/sigstore/package.json +47 -0
- package/node_modules/smart-buffer/LICENSE +20 -0
- package/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/node_modules/smart-buffer/build/utils.js +108 -0
- package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
- package/node_modules/smart-buffer/package.json +79 -0
- package/node_modules/socks/LICENSE +20 -0
- package/node_modules/socks/build/client/socksclient.js +793 -0
- package/node_modules/socks/build/common/constants.js +108 -0
- package/node_modules/socks/build/common/helpers.js +167 -0
- package/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/node_modules/socks/build/common/util.js +25 -0
- package/node_modules/socks/build/index.js +18 -0
- package/node_modules/socks/docs/examples/index.md +17 -0
- package/node_modules/socks/docs/examples/javascript/associateExample.md +90 -0
- package/node_modules/socks/docs/examples/javascript/bindExample.md +83 -0
- package/node_modules/socks/docs/examples/javascript/connectExample.md +258 -0
- package/node_modules/socks/docs/examples/typescript/associateExample.md +93 -0
- package/node_modules/socks/docs/examples/typescript/bindExample.md +86 -0
- package/node_modules/socks/docs/examples/typescript/connectExample.md +265 -0
- package/node_modules/socks/docs/index.md +5 -0
- package/node_modules/socks/docs/migratingFromV1.md +86 -0
- package/node_modules/socks/package.json +58 -0
- package/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/node_modules/socks-proxy-agent/package.json +142 -0
- package/node_modules/spdx-exceptions/deprecated.json +3 -0
- package/node_modules/spdx-exceptions/index.json +68 -0
- package/node_modules/spdx-exceptions/package.json +19 -0
- package/node_modules/spdx-expression-parse/AUTHORS +4 -0
- package/node_modules/spdx-expression-parse/LICENSE +22 -0
- package/node_modules/spdx-expression-parse/index.js +8 -0
- package/node_modules/spdx-expression-parse/package.json +39 -0
- package/node_modules/spdx-expression-parse/parse.js +138 -0
- package/node_modules/spdx-expression-parse/scan.js +131 -0
- package/node_modules/spdx-license-ids/deprecated.json +28 -0
- package/node_modules/spdx-license-ids/index.json +697 -0
- package/node_modules/spdx-license-ids/package.json +29 -0
- package/node_modules/ssri/LICENSE.md +16 -0
- package/node_modules/ssri/lib/index.js +550 -0
- package/node_modules/ssri/package.json +66 -0
- package/node_modules/supports-color/browser.js +35 -0
- package/node_modules/supports-color/index.js +202 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +64 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/header.js +348 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/list.js +153 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/header.js +311 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/list.js +113 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.js +651 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/pax.js +178 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/package.json +298 -0
- package/node_modules/text-table/LICENSE +18 -0
- package/node_modules/text-table/example/align.js +8 -0
- package/node_modules/text-table/example/center.js +8 -0
- package/node_modules/text-table/example/dotalign.js +9 -0
- package/node_modules/text-table/example/doubledot.js +11 -0
- package/node_modules/text-table/example/table.js +6 -0
- package/node_modules/text-table/index.js +86 -0
- package/node_modules/text-table/package.json +44 -0
- package/node_modules/text-table/test/align.js +18 -0
- package/node_modules/text-table/test/ansi-colors.js +32 -0
- package/node_modules/text-table/test/center.js +18 -0
- package/node_modules/text-table/test/dotalign.js +20 -0
- package/node_modules/text-table/test/doubledot.js +24 -0
- package/node_modules/text-table/test/table.js +14 -0
- package/node_modules/tiny-relative-date/LICENSE.md +21 -0
- package/node_modules/tiny-relative-date/lib/factory.js +100 -0
- package/node_modules/tiny-relative-date/lib/index.js +18 -0
- package/node_modules/tiny-relative-date/package.json +39 -0
- package/node_modules/tiny-relative-date/src/factory.js +112 -0
- package/node_modules/tiny-relative-date/src/index.js +4 -0
- package/node_modules/tiny-relative-date/translations/da.js +31 -0
- package/node_modules/tiny-relative-date/translations/de.js +31 -0
- package/node_modules/tiny-relative-date/translations/en-short.js +31 -0
- package/node_modules/tiny-relative-date/translations/en.js +31 -0
- package/node_modules/tiny-relative-date/translations/es.js +31 -0
- package/node_modules/tiny-relative-date/translations/fa.js +31 -0
- package/node_modules/tiny-relative-date/translations/ne.js +31 -0
- package/node_modules/tinyglobby/LICENSE +21 -0
- package/node_modules/tinyglobby/dist/index.cjs +335 -0
- package/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/node_modules/tinyglobby/dist/index.mjs +307 -0
- package/node_modules/tinyglobby/package.json +70 -0
- package/node_modules/treeverse/LICENSE +15 -0
- package/node_modules/treeverse/lib/breadth.js +67 -0
- package/node_modules/treeverse/lib/depth-descent.js +88 -0
- package/node_modules/treeverse/lib/depth.js +76 -0
- package/node_modules/treeverse/lib/index.js +4 -0
- package/node_modules/treeverse/package.json +51 -0
- package/node_modules/tuf-js/LICENSE +21 -0
- package/node_modules/tuf-js/dist/config.js +16 -0
- package/node_modules/tuf-js/dist/error.js +49 -0
- package/node_modules/tuf-js/dist/fetcher.js +92 -0
- package/node_modules/tuf-js/dist/index.js +9 -0
- package/node_modules/tuf-js/dist/store.js +219 -0
- package/node_modules/tuf-js/dist/updater.js +373 -0
- package/node_modules/tuf-js/dist/utils/tmpfile.js +25 -0
- package/node_modules/tuf-js/dist/utils/url.js +13 -0
- package/node_modules/tuf-js/package.json +43 -0
- package/node_modules/undici/LICENSE +21 -0
- package/node_modules/undici/docs/docs/api/Agent.md +80 -0
- package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/undici/docs/docs/api/Client.md +277 -0
- package/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +204 -0
- package/node_modules/undici/docs/docs/api/DispatchInterceptor.md +60 -0
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1347 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +162 -0
- package/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +52 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +540 -0
- package/node_modules/undici/docs/docs/api/MockClient.md +77 -0
- package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/undici/docs/docs/api/MockPool.md +547 -0
- package/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +131 -0
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +96 -0
- package/node_modules/undici/docs/docs/api/RetryAgent.md +45 -0
- package/node_modules/undici/docs/docs/api/RetryHandler.md +117 -0
- package/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/undici/docs/docs/api/WebSocket.md +51 -0
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +136 -0
- package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +20 -0
- package/node_modules/undici/index-fetch.js +35 -0
- package/node_modules/undici/index.js +169 -0
- package/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/node_modules/undici/lib/api/api-connect.js +108 -0
- package/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/node_modules/undici/lib/api/api-request.js +214 -0
- package/node_modules/undici/lib/api/api-stream.js +220 -0
- package/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/undici/lib/api/readable.js +385 -0
- package/node_modules/undici/lib/api/util.js +93 -0
- package/node_modules/undici/lib/core/connect.js +240 -0
- package/node_modules/undici/lib/core/constants.js +118 -0
- package/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/node_modules/undici/lib/core/errors.js +425 -0
- package/node_modules/undici/lib/core/request.js +416 -0
- package/node_modules/undici/lib/core/symbols.js +67 -0
- package/node_modules/undici/lib/core/tree.js +152 -0
- package/node_modules/undici/lib/core/util.js +719 -0
- package/node_modules/undici/lib/dispatcher/agent.js +129 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/node_modules/undici/lib/dispatcher/client-h1.js +1496 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
- package/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/undici/lib/global.js +32 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/node_modules/undici/lib/handler/retry-handler.js +408 -0
- package/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/node_modules/undici/lib/util/timers.js +423 -0
- package/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/node_modules/undici/lib/web/cookies/parse.js +310 -0
- package/node_modules/undici/lib/web/cookies/util.js +352 -0
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +513 -0
- package/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/node_modules/undici/lib/web/websocket/websocket.js +595 -0
- package/node_modules/undici/package.json +160 -0
- package/node_modules/undici/scripts/strip-comments.js +8 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/validate-npm-package-name/LICENSE +6 -0
- package/node_modules/validate-npm-package-name/lib/builtin-modules.json +1 -0
- package/node_modules/validate-npm-package-name/lib/index.js +114 -0
- package/node_modules/validate-npm-package-name/package.json +59 -0
- package/node_modules/walk-up-path/LICENSE +15 -0
- package/node_modules/walk-up-path/dist/commonjs/index.js +18 -0
- package/node_modules/walk-up-path/dist/commonjs/package.json +3 -0
- package/node_modules/walk-up-path/dist/esm/index.js +14 -0
- package/node_modules/walk-up-path/dist/esm/package.json +3 -0
- package/node_modules/walk-up-path/package.json +71 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +51 -0
- package/node_modules/which/bin/which.js +52 -0
- package/node_modules/which/lib/index.js +111 -0
- package/node_modules/which/package.json +52 -0
- package/node_modules/write-file-atomic/LICENSE.md +6 -0
- package/node_modules/write-file-atomic/lib/index.js +269 -0
- package/node_modules/write-file-atomic/package.json +57 -0
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +68 -0
- package/package.json +7 -3
- package/templates/experience/package.json.tmpl +4 -4
- package/templates/package.json.tmpl +4 -4
- package/templates/skills/build-agent/SKILL.md +1 -1
- package/templates/skills/ekanos-platform/SKILL.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-room.js","sourceRoot":"","sources":["../../src/experience/clean-room.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAGzB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG/D,uGAAuG;AACvG,MAAM,CAAC,MAAM,cAAc,GAAG,2BAA2B,CAAC;AAC1D,kFAAkF;AAClF,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAiB5C,MAAM,aAAa,GAAG,CAAC,kBAAkB,EAAE,YAAY,EAAE,WAAW,CAAU,CAAC;AAE/E,kEAAkE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ErD,CAAC;QACF,IACE,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ;YAClC,MAAM,CAAC,OAAO,KAAK,IAAI;YACvB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACtC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EACpC,CAAC;YACD,MAAM,eAAe,CACnB,4EAA4E,EAC5E,8BAA8B,OAAO,CAAC,KAAK,yBAAyB,CACrE,CAAC;QACJ,CAAC;QAED,OAAO;YACL,MAAM;YACN,QAAQ;YACR,cAAc;YACd,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC;SAChE,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;AACH,CAAC","sourcesContent":["import {\n EXPERIENCE_BUNDLE_OPTIONS,\n type ExperienceSurfaces,\n type SurfacesDefinitionInput,\n buildExperienceSurfaces,\n experienceExternals,\n} from '@ekanos/integration-schema';\nimport { build } from 'esbuild';\nimport { execFileSync } from 'node:child_process';\nimport * as fs from 'node:fs';\nimport * as os from 'node:os';\nimport * as path from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nimport { preconditionError, validationError } from '../errors';\nimport type { ExperienceProject } from './project';\n\n/** Set to `off` to skip the clean-room build (offline work, tests); the host's gate still rebuilds. */\nexport const CLEAN_ROOM_ENV = 'EKANOS_PUBLISH_CLEAN_ROOM';\n/** The npm binary the clean room runs. Defaults to `npm`; overridden by tests. */\nexport const NPM_BIN_ENV = 'EKANOS_NPM_BIN';\n\nexport type LockfileSource =\n | 'package-lock'\n | 'npm-shrinkwrap'\n | 'generated-from-pnpm';\n\nexport interface CleanRoomBuild {\n /** `dist/experience.js` exactly as the host's gate will rebuild it. */\n bundle: string;\n /** The standalone lockfile the bundle was built against; ships as npm-shrinkwrap.json. */\n lockfile: string;\n lockfileSource: LockfileSource;\n /** `dist/surfaces.json` as the rebuilt bundle's own definition declares it. */\n surfaces: ExperienceSurfaces;\n}\n\nconst LOCKFILE_ARGS = ['--ignore-scripts', '--no-audit', '--no-fund'] as const;\n\n/** The lockfile the project itself carries, if it carries one. */\nfunction ownLockfile(\n dir: string,\n): { file: string; source: 'package-lock' | 'npm-shrinkwrap' } | null {\n for (const [name, source] of [\n ['npm-shrinkwrap.json', 'npm-shrinkwrap'],\n ['package-lock.json', 'package-lock'],\n ] as const) {\n const file = path.join(dir, name);\n if (fs.existsSync(file)) return { file, source };\n }\n\n return null;\n}\n\n/** A `pnpm-lock.yaml` at or above the project: it lives in a pnpm workspace. */\nexport function findPnpmLockfile(dir: string): string | null {\n let current = path.resolve(dir);\n for (;;) {\n const candidate = path.join(current, 'pnpm-lock.yaml');\n if (fs.existsSync(candidate)) return candidate;\n const parent = path.dirname(current);\n if (parent === current) return null;\n current = parent;\n }\n}\n\n/** Whether the project has a lockfile of either kind to build from. */\nexport function hasBuildableLockfile(dir: string): boolean {\n return ownLockfile(dir) !== null || findPnpmLockfile(dir) !== null;\n}\n\nfunction npm(\n bin: string,\n args: readonly string[],\n cwd: string,\n what: string,\n): void {\n try {\n execFileSync(bin, [...args], {\n cwd,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'pipe'],\n });\n } catch (error) {\n const detail =\n error instanceof Error && 'stderr' in error\n ? String((error as { stderr: unknown }).stderr)\n .trim()\n .slice(-1500)\n : String(error);\n throw preconditionError(\n `${what} failed in the clean room: ${detail}`,\n 'The host rebuilds your package the same way, from the public registry; fix the dependency problem and re-run.',\n );\n }\n}\n\nfunction copyIfExists(from: string, to: string): void {\n if (fs.existsSync(from)) fs.cpSync(from, to, { recursive: true });\n}\n\n/**\n * Builds the experience bundle the way the host's gate will, so the bytes match\n * by construction: in a temp directory holding only what ships (package.json,\n * tsconfig, `src/`), with dependencies installed by `npm ci --ignore-scripts`\n * from a standalone lockfile, and the shared bundle options.\n *\n * The lockfile is the project's own `package-lock.json`/`npm-shrinkwrap.json`\n * when it has one. A project inside a pnpm workspace (a `pnpm-lock.yaml` at the\n * repo root, no per-package npm lockfile) gets one generated for just its\n * `package.json` (`npm install`), and that generated file\n * is what ships, so the host resolves the dependencies the bundle was built\n * with. It resolves the declared ranges from the registry, which can differ from\n * the versions the workspace's pnpm lockfile pins; the bundle you ship is the\n * one built from the shipped lockfile, not from your workspace's tree.\n *\n * The surfaces are recomputed from the rebuilt bundle's own definition (the host\n * does the same), so a project whose local tree declares something else is\n * caught here instead of at the gate.\n */\nexport async function buildInCleanRoom(\n project: ExperienceProject,\n env: Record<string, string | undefined> = {},\n): Promise<CleanRoomBuild> {\n const npmBin = env[NPM_BIN_ENV] ?? 'npm';\n const own = ownLockfile(project.dir);\n const pnpm = own ? null : findPnpmLockfile(project.dir);\n\n if (!own && !pnpm) {\n throw preconditionError(\n 'There is no lockfile to build from: no package-lock.json, npm-shrinkwrap.json or pnpm-lock.yaml.',\n 'Run \"npm install --package-lock-only\" in the project (or install with pnpm in a workspace) and commit the lockfile.',\n );\n }\n\n const room = fs.mkdtempSync(path.join(os.tmpdir(), 'ekanos-exp-room-'));\n try {\n fs.copyFileSync(\n path.join(project.dir, 'package.json'),\n path.join(room, 'package.json'),\n );\n copyIfExists(path.join(project.dir, 'src'), path.join(room, 'src'));\n for (const name of fs.readdirSync(project.dir)) {\n if (/^tsconfig[^/]*\\.json$/.test(name)) {\n fs.copyFileSync(path.join(project.dir, name), path.join(room, name));\n }\n }\n\n let lockfileSource: LockfileSource;\n if (own) {\n fs.copyFileSync(own.file, path.join(room, 'package-lock.json'));\n lockfileSource = own.source;\n } else {\n const manifest = fs.readFileSync(path.join(room, 'package.json'), 'utf8');\n if (/\"(?:workspace|catalog|link|file):/.test(manifest)) {\n throw validationError(\n 'package.json depends on a workspace:, catalog:, link: or file: package, which a standalone lockfile cannot resolve.',\n 'An experience reaches integrations through pinned operations, not packages; publish a package that depends only on registry versions.',\n );\n }\n // A real install, twice, not `--package-lock-only`: npm resolving an\n // empty tree writes lockfiles that `npm ci` then rejects as out of sync\n // (a peer range resolved two ways), and a first install over a fresh tree\n // can too (seen with eslint's ajv). The second install reconciles the\n // tree against its own lockfile; the `npm ci` below, after the tree is\n // thrown away, is the install the host will repeat and proves it did.\n for (let pass = 0; pass < 2; pass += 1) {\n npm(\n npmBin,\n ['install', ...LOCKFILE_ARGS],\n room,\n 'generating a standalone lockfile from package.json',\n );\n }\n fs.rmSync(path.join(room, 'node_modules'), {\n recursive: true,\n force: true,\n });\n lockfileSource = 'generated-from-pnpm';\n }\n\n const lockfile = fs.readFileSync(\n path.join(room, 'package-lock.json'),\n 'utf8',\n );\n npm(npmBin, ['ci', ...LOCKFILE_ARGS], room, '`npm ci`');\n\n const built = await build({\n ...EXPERIENCE_BUNDLE_OPTIONS,\n entryPoints: [path.join(room, project.entry)],\n absWorkingDir: room,\n external: experienceExternals(project.ekanos.allowImports),\n });\n const bundle = built.outputFiles[0]?.text ?? '';\n\n const file = path.join(room, '.clean-room-experience.mjs');\n fs.writeFileSync(file, bundle);\n const loaded = (await import(pathToFileURL(file).href)) as {\n default?: SurfacesDefinitionInput;\n };\n if (\n typeof loaded.default !== 'object' ||\n loaded.default === null ||\n !Array.isArray(loaded.default.widgets) ||\n !Array.isArray(loaded.default.pages)\n ) {\n throw validationError(\n 'The rebuilt bundle does not export a defineExperience() result as default.',\n `Export the definition from ${project.entry} as the default export.`,\n );\n }\n\n return {\n bundle,\n lockfile,\n lockfileSource,\n surfaces: buildExperienceSurfaces(project.slug, loaded.default),\n };\n } finally {\n fs.rmSync(room, { recursive: true, force: true });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"clean-room.js","sourceRoot":"","sources":["../../src/experience/clean-room.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,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AED,OAAO;YACL,MAAM;YACN,QAAQ;YACR,cAAc;YACd,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC;SAChE,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;AACH,CAAC","sourcesContent":["import {\n EXPERIENCE_BUNDLE_OPTIONS,\n HOST_LOCKFILE_FIX_COMMAND,\n HOST_NPM_VERSION,\n type ExperienceSurfaces,\n type SurfacesDefinitionInput,\n buildExperienceSurfaces,\n experienceExternals,\n isLockfileOutOfSync,\n} from '@ekanos/integration-schema';\nimport { build } from 'esbuild';\nimport { execFileSync } from 'node:child_process';\nimport * as fs from 'node:fs';\nimport * as os from 'node:os';\nimport * as path from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nimport { preconditionError, validationError } from '../errors';\nimport { hostNpmCommand } from './host-npm';\nimport type { ExperienceProject } from './project';\n\nexport const CLEAN_ROOM_ENV = 'EKANOS_PUBLISH_CLEAN_ROOM';\n\ntype LockfileSource = 'package-lock' | 'npm-shrinkwrap' | 'generated-from-pnpm';\n\nexport interface CleanRoomBuild {\n bundle: string;\n lockfile: string;\n lockfileSource: LockfileSource;\n surfaces: ExperienceSurfaces;\n}\n\nconst LOCKFILE_ARGS = ['--ignore-scripts', '--no-audit', '--no-fund'] as const;\n\nfunction ownLockfile(\n dir: string,\n): { file: string; source: 'package-lock' | 'npm-shrinkwrap' } | null {\n for (const [name, source] of [\n ['npm-shrinkwrap.json', 'npm-shrinkwrap'],\n ['package-lock.json', 'package-lock'],\n ] as const) {\n const file = path.join(dir, name);\n if (fs.existsSync(file)) return { file, source };\n }\n\n return null;\n}\n\nexport function findPnpmLockfile(dir: string): string | null {\n let current = path.resolve(dir);\n for (;;) {\n const candidate = path.join(current, 'pnpm-lock.yaml');\n if (fs.existsSync(candidate)) return candidate;\n const parent = path.dirname(current);\n if (parent === current) return null;\n current = parent;\n }\n}\n\nexport function hasBuildableLockfile(dir: string): boolean {\n return ownLockfile(dir) !== null || findPnpmLockfile(dir) !== null;\n}\n\nfunction npm(\n override: string | undefined,\n args: readonly string[],\n cwd: string,\n what: string,\n ownLockfile = false,\n): void {\n const run = override\n ? { command: override, args: [...args] }\n : hostNpmCommand(args);\n try {\n execFileSync(run.command, run.args, {\n cwd,\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'pipe'],\n });\n } catch (error) {\n const stderr =\n error instanceof Error && 'stderr' in error\n ? String((error as { stderr: unknown }).stderr).trim()\n : String(error);\n if (ownLockfile && isLockfileOutOfSync(stderr)) {\n throw preconditionError(\n `Your lockfile and package.json do not pass \\`npm ci\\` with npm ${HOST_NPM_VERSION}, the npm the host rebuilds with: ${stderr.slice(-1500)}`,\n `Another npm wrote the lockfile, or package.json changed after it. In the package, run \"${HOST_LOCKFILE_FIX_COMMAND}\", review the lockfile diff (it changes versions only where package.json asks for different ones), commit it and re-run.`,\n );\n }\n throw preconditionError(\n `${what} (npm ${HOST_NPM_VERSION}) failed in the clean room: ${stderr.slice(-1500)}`,\n 'The host rebuilds your package the same way, from the public registry; fix the dependency problem and re-run.',\n );\n }\n}\n\nfunction copyIfExists(from: string, to: string): void {\n if (fs.existsSync(from)) fs.cpSync(from, to, { recursive: true });\n}\n\nexport async function buildInCleanRoom(\n project: ExperienceProject,\n options: { npmBin?: string } = {},\n): Promise<CleanRoomBuild> {\n const npmOverride = options.npmBin;\n const own = ownLockfile(project.dir);\n const pnpm = own ? null : findPnpmLockfile(project.dir);\n\n if (!own && !pnpm) {\n throw preconditionError(\n 'There is no lockfile to build from: no package-lock.json, npm-shrinkwrap.json or pnpm-lock.yaml.',\n 'Run \"npm install --package-lock-only\" in the project (or install with pnpm in a workspace) and commit the lockfile.',\n );\n }\n\n const room = fs.mkdtempSync(path.join(os.tmpdir(), 'ekanos-exp-room-'));\n try {\n fs.copyFileSync(\n path.join(project.dir, 'package.json'),\n path.join(room, 'package.json'),\n );\n copyIfExists(path.join(project.dir, 'src'), path.join(room, 'src'));\n for (const name of fs.readdirSync(project.dir)) {\n if (/^tsconfig[^/]*\\.json$/.test(name)) {\n fs.copyFileSync(path.join(project.dir, name), path.join(room, name));\n }\n }\n\n let lockfileSource: LockfileSource;\n if (own) {\n fs.copyFileSync(own.file, path.join(room, 'package-lock.json'));\n lockfileSource = own.source;\n } else {\n const manifest = fs.readFileSync(path.join(room, 'package.json'), 'utf8');\n if (/\"(?:workspace|catalog|link|file):/.test(manifest)) {\n throw validationError(\n 'package.json depends on a workspace:, catalog:, link: or file: package, which a standalone lockfile cannot resolve.',\n 'An experience reaches integrations through pinned operations, not packages; publish a package that depends only on registry versions.',\n );\n }\n for (let pass = 0; pass < 2; pass += 1) {\n npm(\n npmOverride,\n ['install', ...LOCKFILE_ARGS],\n room,\n 'generating a standalone lockfile from package.json',\n );\n }\n fs.rmSync(path.join(room, 'node_modules'), {\n recursive: true,\n force: true,\n });\n lockfileSource = 'generated-from-pnpm';\n }\n\n const lockfile = fs.readFileSync(\n path.join(room, 'package-lock.json'),\n 'utf8',\n );\n npm(\n npmOverride,\n ['ci', ...LOCKFILE_ARGS],\n room,\n '`npm ci`',\n lockfileSource !== 'generated-from-pnpm',\n );\n\n const built = await build({\n ...EXPERIENCE_BUNDLE_OPTIONS,\n entryPoints: [path.join(room, project.entry)],\n absWorkingDir: room,\n external: experienceExternals(project.ekanos.allowImports),\n });\n const bundle = built.outputFiles[0]?.text ?? '';\n\n const file = path.join(room, '.clean-room-experience.mjs');\n fs.writeFileSync(file, bundle);\n const loaded = (await import(pathToFileURL(file).href)) as {\n default?: SurfacesDefinitionInput;\n };\n if (\n typeof loaded.default !== 'object' ||\n loaded.default === null ||\n !Array.isArray(loaded.default.widgets) ||\n !Array.isArray(loaded.default.pages)\n ) {\n throw validationError(\n 'The rebuilt bundle does not export a defineExperience() result as default.',\n `Export the definition from ${project.entry} as the default export.`,\n );\n }\n\n return {\n bundle,\n lockfile,\n lockfileSource,\n surfaces: buildExperienceSurfaces(project.slug, loaded.default),\n };\n } finally {\n fs.rmSync(room, { recursive: true, force: true });\n }\n}\n"]}
|
|
@@ -1,41 +1,19 @@
|
|
|
1
|
-
import { type Contract
|
|
1
|
+
import { type Contract } from '@ekanos/integration-schema';
|
|
2
2
|
import type { ExperienceProject } from './project.js';
|
|
3
|
-
/** Where an integration's contract came from, for messages and `sync` bookkeeping. */
|
|
4
3
|
export interface ResolvedContract {
|
|
5
4
|
contract: Contract;
|
|
6
5
|
origin: string;
|
|
7
6
|
kind: 'dir' | 'path' | 'snapshot';
|
|
8
7
|
}
|
|
9
|
-
/**
|
|
10
|
-
* A pluggable contract source. The dir/path/snapshot sources below are the
|
|
11
|
-
* offline defaults; the harness resolver (catalog, published packages) plugs
|
|
12
|
-
* in here as another source, so `add`/`sync` never learn where contracts live.
|
|
13
|
-
*/
|
|
14
8
|
export interface ContractSource {
|
|
15
9
|
name: string;
|
|
16
10
|
resolve(integration: string, line: string): Promise<ResolvedContract | null> | ResolvedContract | null;
|
|
17
11
|
}
|
|
18
12
|
export interface SourceOptions {
|
|
19
|
-
/** A directory of `*.contract.json` (the monorepo contracts folder or a registry mirror). */
|
|
20
13
|
fromDir?: string;
|
|
21
|
-
/** An integration project directory; its `contract.json` is read. */
|
|
22
14
|
fromPath?: string;
|
|
23
15
|
env?: Record<string, string | undefined>;
|
|
24
16
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Every `*.contract.json` of `dir` for `integration` (a reference: `slug` or
|
|
27
|
-
* `ns/slug`; files are named by its token), highest contract version within
|
|
28
|
-
* `line` first. A namespaced reference never matches a global file of the same
|
|
29
|
-
* slug, nor the reverse.
|
|
30
|
-
*/
|
|
31
|
-
export declare function contractsInDir(dir: string, integration: string, line: string): Contract[];
|
|
32
|
-
export declare function dirSource(dir: string): ContractSource;
|
|
33
|
-
export declare function pathSource(projectPath: string): ContractSource;
|
|
34
|
-
/** The committed pin: `<contractsDir>/<token>@<version>.contract.json`, always flat. */
|
|
35
17
|
export declare function snapshotFile(project: ExperienceProject, integration: string, line: string): string;
|
|
36
|
-
export declare function snapshotSource(project: ExperienceProject): ContractSource;
|
|
37
|
-
/** Sources in resolution order: explicit flags, env, then (optionally) the snapshot. */
|
|
38
18
|
export declare function defaultSources(project: ExperienceProject, options: SourceOptions, extra?: readonly ContractSource[], includeSnapshot?: boolean): ContractSource[];
|
|
39
19
|
export declare function resolveContract(sources: readonly ContractSource[], integration: string, line: string): Promise<ResolvedContract>;
|
|
40
|
-
/** Line for a package version, re-exported so callers need no schema import. */
|
|
41
|
-
export { compatLine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { compareSemver,
|
|
1
|
+
import { compareSemver, contractMatchesRef, integrationRefToken, snapshotFileName, verifyContract, } from '@ekanos/integration-schema';
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import * as path from 'node:path';
|
|
4
4
|
import { notFoundError, validationError } from '../errors.js';
|
|
@@ -17,13 +17,7 @@ function readContractFile(file) {
|
|
|
17
17
|
}
|
|
18
18
|
return verified.contract;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
* Every `*.contract.json` of `dir` for `integration` (a reference: `slug` or
|
|
22
|
-
* `ns/slug`; files are named by its token), highest contract version within
|
|
23
|
-
* `line` first. A namespaced reference never matches a global file of the same
|
|
24
|
-
* slug, nor the reverse.
|
|
25
|
-
*/
|
|
26
|
-
export function contractsInDir(dir, integration, line) {
|
|
20
|
+
function contractsInDir(dir, integration, line) {
|
|
27
21
|
const token = integrationRefToken(integration);
|
|
28
22
|
if (token === null)
|
|
29
23
|
return [];
|
|
@@ -48,7 +42,7 @@ export function contractsInDir(dir, integration, line) {
|
|
|
48
42
|
}
|
|
49
43
|
return found.sort((a, b) => compareSemver(b.contractVersion, a.contractVersion));
|
|
50
44
|
}
|
|
51
|
-
|
|
45
|
+
function dirSource(dir) {
|
|
52
46
|
return {
|
|
53
47
|
name: `dir ${dir}`,
|
|
54
48
|
resolve(integration, line) {
|
|
@@ -57,7 +51,7 @@ export function dirSource(dir) {
|
|
|
57
51
|
},
|
|
58
52
|
};
|
|
59
53
|
}
|
|
60
|
-
|
|
54
|
+
function pathSource(projectPath) {
|
|
61
55
|
return {
|
|
62
56
|
name: `path ${projectPath}`,
|
|
63
57
|
resolve(integration, line) {
|
|
@@ -75,11 +69,10 @@ export function pathSource(projectPath) {
|
|
|
75
69
|
},
|
|
76
70
|
};
|
|
77
71
|
}
|
|
78
|
-
/** The committed pin: `<contractsDir>/<token>@<version>.contract.json`, always flat. */
|
|
79
72
|
export function snapshotFile(project, integration, line) {
|
|
80
73
|
return path.join(project.contractsDir, snapshotFileName(integration, line));
|
|
81
74
|
}
|
|
82
|
-
|
|
75
|
+
function snapshotSource(project) {
|
|
83
76
|
return {
|
|
84
77
|
name: 'committed snapshot',
|
|
85
78
|
resolve(integration, line) {
|
|
@@ -89,7 +82,6 @@ export function snapshotSource(project) {
|
|
|
89
82
|
},
|
|
90
83
|
};
|
|
91
84
|
}
|
|
92
|
-
/** Sources in resolution order: explicit flags, env, then (optionally) the snapshot. */
|
|
93
85
|
export function defaultSources(project, options, extra = [], includeSnapshot = true) {
|
|
94
86
|
var _a;
|
|
95
87
|
const sources = [];
|
|
@@ -113,6 +105,4 @@ export async function resolveContract(sources, integration, line) {
|
|
|
113
105
|
}
|
|
114
106
|
throw notFoundError(`No contract for ${integration}@${line} (looked in: ${sources.map((s) => s.name).join(', ') || 'nothing'}).`, 'Pass --from-dir <contracts folder> or --from-path <integration project>, or set EKANOS_CONTRACTS_DIR.');
|
|
115
107
|
}
|
|
116
|
-
/** Line for a package version, re-exported so callers need no schema import. */
|
|
117
|
-
export { compatLine };
|
|
118
108
|
//# sourceMappingURL=contract-sources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-sources.js","sourceRoot":"","sources":["../../src/experience/contract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AAC;QACpD,IAAI,GAAG;YAAE,OAAO,GAAG,CAAC;IACtB,CAAC;IAED,MAAM,aAAa,CACjB,mBAAmB,WAAW,IAAI,IAAI,gBAAgB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,SAAS,IAAI,EAC5G,uGAAuG,CACxG,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import {\n type Contract,\n compareSemver,\n compatLine,\n contractMatchesRef,\n integrationRefToken,\n snapshotFileName,\n verifyContract,\n} from '@ekanos/integration-schema';\nimport * as fs from 'node:fs';\nimport * as path from 'node:path';\n\nimport { notFoundError, validationError } from '../errors';\nimport type { ExperienceProject } from './project';\n\n/** Where an integration's contract came from, for messages and `sync` bookkeeping. */\nexport interface ResolvedContract {\n contract: Contract;\n origin: string;\n kind: 'dir' | 'path' | 'snapshot';\n}\n\n/**\n * A pluggable contract source. The dir/path/snapshot sources below are the\n * offline defaults; the harness resolver (catalog, published packages) plugs\n * in here as another source, so `add`/`sync` never learn where contracts live.\n */\nexport interface ContractSource {\n name: string;\n resolve(\n integration: string,\n line: string,\n ): Promise<ResolvedContract | null> | ResolvedContract | null;\n}\n\nexport interface SourceOptions {\n /** A directory of `*.contract.json` (the monorepo contracts folder or a registry mirror). */\n fromDir?: string;\n /** An integration project directory; its `contract.json` is read. */\n fromPath?: string;\n env?: Record<string, string | undefined>;\n}\n\nfunction readContractFile(file: string): Contract | null {\n let json: unknown;\n try {\n json = JSON.parse(fs.readFileSync(file, 'utf8'));\n } catch {\n return null;\n }\n const verified = verifyContract(json);\n if (!verified.contract || verified.problems.length > 0) {\n const first = verified.problems[0];\n throw validationError(\n `${file} is not a valid contract: ${first ? `${first.rule}: ${first.message}` : 'unreadable'}`,\n 'Regenerate it with \"ekanos contract\" in the integration, or point at a valid contracts directory.',\n );\n }\n\n return verified.contract;\n}\n\n/**\n * Every `*.contract.json` of `dir` for `integration` (a reference: `slug` or\n * `ns/slug`; files are named by its token), highest contract version within\n * `line` first. A namespaced reference never matches a global file of the same\n * slug, nor the reverse.\n */\nexport function contractsInDir(\n dir: string,\n integration: string,\n line: string,\n): Contract[] {\n const token = integrationRefToken(integration);\n if (token === null) return [];\n let names: string[];\n try {\n names = fs.readdirSync(dir).filter((n) => n.endsWith('.contract.json'));\n } catch {\n return [];\n }\n const found: Contract[] = [];\n for (const name of names) {\n if (!name.startsWith(`${token}@`) && !name.startsWith(`${token}.`)) {\n continue;\n }\n const contract = readContractFile(path.join(dir, name));\n if (\n contract &&\n contractMatchesRef(contract, integration) &&\n contract.compatLine === line\n ) {\n found.push(contract);\n }\n }\n\n return found.sort((a, b) =>\n compareSemver(b.contractVersion, a.contractVersion),\n );\n}\n\nexport function dirSource(dir: string): ContractSource {\n return {\n name: `dir ${dir}`,\n resolve(integration, line) {\n const [best] = contractsInDir(dir, integration, line);\n\n return best ? { contract: best, origin: dir, kind: 'dir' } : null;\n },\n };\n}\n\nexport function pathSource(projectPath: string): ContractSource {\n return {\n name: `path ${projectPath}`,\n resolve(integration, line) {\n const file = path.join(path.resolve(projectPath), 'contract.json');\n if (!fs.existsSync(file)) {\n throw notFoundError(\n `${file} does not exist.`,\n 'Run \"ekanos contract\" in that integration to derive its contract.json.',\n );\n }\n const contract = readContractFile(file);\n if (\n !contract ||\n !contractMatchesRef(contract, integration) ||\n contract.compatLine !== line\n ) {\n return null;\n }\n\n return { contract, origin: file, kind: 'path' };\n },\n };\n}\n\n/** The committed pin: `<contractsDir>/<token>@<version>.contract.json`, always flat. */\nexport function snapshotFile(\n project: ExperienceProject,\n integration: string,\n line: string,\n): string {\n return path.join(project.contractsDir, snapshotFileName(integration, line));\n}\n\nexport function snapshotSource(project: ExperienceProject): ContractSource {\n return {\n name: 'committed snapshot',\n resolve(integration, line) {\n const file = snapshotFile(project, integration, line);\n const contract = fs.existsSync(file) ? readContractFile(file) : null;\n\n return contract ? { contract, origin: file, kind: 'snapshot' } : null;\n },\n };\n}\n\n/** Sources in resolution order: explicit flags, env, then (optionally) the snapshot. */\nexport function defaultSources(\n project: ExperienceProject,\n options: SourceOptions,\n extra: readonly ContractSource[] = [],\n includeSnapshot = true,\n): ContractSource[] {\n const sources: ContractSource[] = [];\n if (options.fromPath) sources.push(pathSource(options.fromPath));\n if (options.fromDir) sources.push(dirSource(path.resolve(options.fromDir)));\n const envDir = options.env?.EKANOS_CONTRACTS_DIR;\n if (!options.fromDir && envDir) sources.push(dirSource(path.resolve(envDir)));\n sources.push(...extra);\n if (includeSnapshot) sources.push(snapshotSource(project));\n\n return sources;\n}\n\nexport async function resolveContract(\n sources: readonly ContractSource[],\n integration: string,\n line: string,\n): Promise<ResolvedContract> {\n for (const source of sources) {\n const hit = await source.resolve(integration, line);\n if (hit) return hit;\n }\n\n throw notFoundError(\n `No contract for ${integration}@${line} (looked in: ${sources.map((s) => s.name).join(', ') || 'nothing'}).`,\n 'Pass --from-dir <contracts folder> or --from-path <integration project>, or set EKANOS_CONTRACTS_DIR.',\n );\n}\n\n/** Line for a package version, re-exported so callers need no schema import. */\nexport { compatLine };\n"]}
|
|
1
|
+
{"version":3,"file":"contract-sources.js","sourceRoot":"","sources":["../../src/experience/contract-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAuB3D,SAAS,gBAAgB,CAAC,IAAY;IACpC,IAAI,IAAa,CAAC;IAClB,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EA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,IAAI,OAAO,CAAC,OAAO;QAAE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAG,MAAA,OAAO,CAAC,GAAG,0CAAE,oBAAoB,CAAC;IACjD,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;IACvB,IAAI,eAAe;QAAE,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAkC,EAClC,WAAmB,EACnB,IAAY;IAEZ,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACpD,IAAI,GAAG;YAAE,OAAO,GAAG,CAAC;IACtB,CAAC;IAED,MAAM,aAAa,CACjB,mBAAmB,WAAW,IAAI,IAAI,gBAAgB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,SAAS,IAAI,EAC5G,uGAAuG,CACxG,CAAC;AACJ,CAAC","sourcesContent":["import {\n type Contract,\n compareSemver,\n contractMatchesRef,\n integrationRefToken,\n snapshotFileName,\n verifyContract,\n} from '@ekanos/integration-schema';\nimport * as fs from 'node:fs';\nimport * as path from 'node:path';\n\nimport { notFoundError, validationError } from '../errors';\nimport type { ExperienceProject } from './project';\n\nexport interface ResolvedContract {\n contract: Contract;\n origin: string;\n kind: 'dir' | 'path' | 'snapshot';\n}\n\nexport interface ContractSource {\n name: string;\n resolve(\n integration: string,\n line: string,\n ): Promise<ResolvedContract | null> | ResolvedContract | null;\n}\n\nexport interface SourceOptions {\n fromDir?: string;\n fromPath?: string;\n env?: Record<string, string | undefined>;\n}\n\nfunction readContractFile(file: string): Contract | null {\n let json: unknown;\n try {\n json = JSON.parse(fs.readFileSync(file, 'utf8'));\n } catch {\n return null;\n }\n const verified = verifyContract(json);\n if (!verified.contract || verified.problems.length > 0) {\n const first = verified.problems[0];\n throw validationError(\n `${file} is not a valid contract: ${first ? `${first.rule}: ${first.message}` : 'unreadable'}`,\n 'Regenerate it with \"ekanos contract\" in the integration, or point at a valid contracts directory.',\n );\n }\n\n return verified.contract;\n}\n\nfunction contractsInDir(\n dir: string,\n integration: string,\n line: string,\n): Contract[] {\n const token = integrationRefToken(integration);\n if (token === null) return [];\n let names: string[];\n try {\n names = fs.readdirSync(dir).filter((n) => n.endsWith('.contract.json'));\n } catch {\n return [];\n }\n const found: Contract[] = [];\n for (const name of names) {\n if (!name.startsWith(`${token}@`) && !name.startsWith(`${token}.`)) {\n continue;\n }\n const contract = readContractFile(path.join(dir, name));\n if (\n contract &&\n contractMatchesRef(contract, integration) &&\n contract.compatLine === line\n ) {\n found.push(contract);\n }\n }\n\n return found.sort((a, b) =>\n compareSemver(b.contractVersion, a.contractVersion),\n );\n}\n\nfunction dirSource(dir: string): ContractSource {\n return {\n name: `dir ${dir}`,\n resolve(integration, line) {\n const [best] = contractsInDir(dir, integration, line);\n\n return best ? { contract: best, origin: dir, kind: 'dir' } : null;\n },\n };\n}\n\nfunction pathSource(projectPath: string): ContractSource {\n return {\n name: `path ${projectPath}`,\n resolve(integration, line) {\n const file = path.join(path.resolve(projectPath), 'contract.json');\n if (!fs.existsSync(file)) {\n throw notFoundError(\n `${file} does not exist.`,\n 'Run \"ekanos contract\" in that integration to derive its contract.json.',\n );\n }\n const contract = readContractFile(file);\n if (\n !contract ||\n !contractMatchesRef(contract, integration) ||\n contract.compatLine !== line\n ) {\n return null;\n }\n\n return { contract, origin: file, kind: 'path' };\n },\n };\n}\n\nexport function snapshotFile(\n project: ExperienceProject,\n integration: string,\n line: string,\n): string {\n return path.join(project.contractsDir, snapshotFileName(integration, line));\n}\n\nfunction snapshotSource(project: ExperienceProject): ContractSource {\n return {\n name: 'committed snapshot',\n resolve(integration, line) {\n const file = snapshotFile(project, integration, line);\n const contract = fs.existsSync(file) ? readContractFile(file) : null;\n\n return contract ? { contract, origin: file, kind: 'snapshot' } : null;\n },\n };\n}\n\nexport function defaultSources(\n project: ExperienceProject,\n options: SourceOptions,\n extra: readonly ContractSource[] = [],\n includeSnapshot = true,\n): ContractSource[] {\n const sources: ContractSource[] = [];\n if (options.fromPath) sources.push(pathSource(options.fromPath));\n if (options.fromDir) sources.push(dirSource(path.resolve(options.fromDir)));\n const envDir = options.env?.EKANOS_CONTRACTS_DIR;\n if (!options.fromDir && envDir) sources.push(dirSource(path.resolve(envDir)));\n sources.push(...extra);\n if (includeSnapshot) sources.push(snapshotSource(project));\n\n return sources;\n}\n\nexport async function resolveContract(\n sources: readonly ContractSource[],\n integration: string,\n line: string,\n): Promise<ResolvedContract> {\n for (const source of sources) {\n const hit = await source.resolve(integration, line);\n if (hit) return hit;\n }\n\n throw notFoundError(\n `No contract for ${integration}@${line} (looked in: ${sources.map((s) => s.name).join(', ') || 'nothing'}).`,\n 'Pass --from-dir <contracts folder> or --from-path <integration project>, or set EKANOS_CONTRACTS_DIR.',\n );\n}\n"]}
|
|
@@ -2,36 +2,14 @@ import { type ExperienceManifest, type ExperienceSurfaces, type Finding, type Wo
|
|
|
2
2
|
import type { LoadedExperienceDefinition, LoadedExperienceModule } from './definition-shape.js';
|
|
3
3
|
import { type PinnedIntegration } from './pins.js';
|
|
4
4
|
import type { ExperienceProject } from './project.js';
|
|
5
|
-
export declare const DEFINITION_CHECK = "checks/experience-definition";
|
|
6
|
-
export declare const SURFACES_CHECK: "checks/experience-surfaces";
|
|
7
5
|
export interface DefinitionAnalysis {
|
|
8
6
|
findings: Finding[];
|
|
9
7
|
workflows: WorkflowTemplate[];
|
|
10
8
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Cross-check the loaded definition against `ekanos.json` and the pinned
|
|
13
|
-
* contracts: every integration a widget, page, review section or workflow step names
|
|
14
|
-
* must be declared, every operation must be in that integration's allowlist, the
|
|
15
|
-
* review queue reads only, and each template serializes to the engine's DSL.
|
|
16
|
-
*/
|
|
17
9
|
export declare function analyzeDefinition(project: ExperienceProject, loaded: LoadedExperienceModule, pinned: readonly PinnedIntegration[]): DefinitionAnalysis;
|
|
18
|
-
/**
|
|
19
|
-
* The surfaces contract: page kinds, canvas widgets, routes and the suggested
|
|
20
|
-
* layout must be well formed and refer only to what the experience declares.
|
|
21
|
-
* The same rules `defineExperience` enforces, re-run on the loaded definition
|
|
22
|
-
* so a definition built by an older SDK, or by hand, cannot slip past.
|
|
23
|
-
*/
|
|
24
10
|
export declare function checkSurfaces(project: ExperienceProject, definition: LoadedExperienceDefinition): Finding[];
|
|
25
|
-
/**
|
|
26
|
-
* The dashboard reads a widget's `size`, `layouts.lg.w` and `layouts.lg.maxHeight`
|
|
27
|
-
* and nothing else. `x`, `y` and `h` are required by the layout type, so their
|
|
28
|
-
* presence says nothing; a `md` or `sm` box is optional and is never read, so
|
|
29
|
-
* declaring one is a finding.
|
|
30
|
-
*/
|
|
31
11
|
export declare function checkWidgetLayouts(project: ExperienceProject, definition: LoadedExperienceDefinition): Finding[];
|
|
32
|
-
/** `dist/surfaces.json`: the surfaces and suggested layout as data, no code. */
|
|
33
12
|
export declare function buildSurfaces(project: ExperienceProject, definition: LoadedExperienceDefinition): ExperienceSurfaces;
|
|
34
|
-
/** `fixtures/<integration>/<kind>-<name>.<variant>.json` must satisfy the pinned output schema. */
|
|
35
13
|
export declare function checkFixtures(project: ExperienceProject, pinned: readonly PinnedIntegration[]): Finding[];
|
|
36
14
|
export declare function buildManifest(input: {
|
|
37
15
|
project: ExperienceProject;
|
|
@@ -3,18 +3,12 @@ import * as fs from 'node:fs';
|
|
|
3
3
|
import * as path from 'node:path';
|
|
4
4
|
import { declaredOperationKeys } from './integrations-codegen.js';
|
|
5
5
|
import { effectLookup } from './pins.js';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const DEFINITION_CHECK = 'checks/experience-definition';
|
|
7
|
+
const SURFACES_CHECK = EKANOS_CHECK_STAGE_IDS.experienceSurfaces;
|
|
8
8
|
const err = (message, hint, file) => (Object.assign({ check: DEFINITION_CHECK, severity: 'error', message,
|
|
9
9
|
hint }, (file ? { file } : {})));
|
|
10
10
|
const warn = (message, hint, file) => (Object.assign({ check: DEFINITION_CHECK, severity: 'warn', message,
|
|
11
11
|
hint }, (file ? { file } : {})));
|
|
12
|
-
/**
|
|
13
|
-
* Cross-check the loaded definition against `ekanos.json` and the pinned
|
|
14
|
-
* contracts: every integration a widget, page, review section or workflow step names
|
|
15
|
-
* must be declared, every operation must be in that integration's allowlist, the
|
|
16
|
-
* review queue reads only, and each template serializes to the engine's DSL.
|
|
17
|
-
*/
|
|
18
12
|
export function analyzeDefinition(project, loaded, pinned) {
|
|
19
13
|
var _a, _b, _c, _d, _e;
|
|
20
14
|
var _f, _g, _h;
|
|
@@ -128,13 +122,6 @@ export function analyzeDefinition(project, loaded, pinned) {
|
|
|
128
122
|
}
|
|
129
123
|
return { findings, workflows };
|
|
130
124
|
}
|
|
131
|
-
// ─── surfaces ───────────────────────────────────────────────────────────────
|
|
132
|
-
/**
|
|
133
|
-
* The surfaces contract: page kinds, canvas widgets, routes and the suggested
|
|
134
|
-
* layout must be well formed and refer only to what the experience declares.
|
|
135
|
-
* The same rules `defineExperience` enforces, re-run on the loaded definition
|
|
136
|
-
* so a definition built by an older SDK, or by hand, cannot slip past.
|
|
137
|
-
*/
|
|
138
125
|
export function checkSurfaces(project, definition) {
|
|
139
126
|
const built = buildSurfaces(project, definition);
|
|
140
127
|
const parsed = ExperienceSurfacesSchema.safeParse(built);
|
|
@@ -148,12 +135,6 @@ export function checkSurfaces(project, definition) {
|
|
|
148
135
|
file: project.entry,
|
|
149
136
|
}));
|
|
150
137
|
}
|
|
151
|
-
/**
|
|
152
|
-
* The dashboard reads a widget's `size`, `layouts.lg.w` and `layouts.lg.maxHeight`
|
|
153
|
-
* and nothing else. `x`, `y` and `h` are required by the layout type, so their
|
|
154
|
-
* presence says nothing; a `md` or `sm` box is optional and is never read, so
|
|
155
|
-
* declaring one is a finding.
|
|
156
|
-
*/
|
|
157
138
|
export function checkWidgetLayouts(project, definition) {
|
|
158
139
|
return definition.widgets.flatMap((widget) => {
|
|
159
140
|
const unused = ['md', 'sm'].filter((breakpoint) => { var _a; return ((_a = widget.layouts) === null || _a === void 0 ? void 0 : _a[breakpoint]) !== undefined; });
|
|
@@ -164,13 +145,10 @@ export function checkWidgetLayouts(project, definition) {
|
|
|
164
145
|
];
|
|
165
146
|
});
|
|
166
147
|
}
|
|
167
|
-
/** `dist/surfaces.json`: the surfaces and suggested layout as data, no code. */
|
|
168
148
|
export function buildSurfaces(project, definition) {
|
|
169
149
|
return buildExperienceSurfaces(project.slug, definition);
|
|
170
150
|
}
|
|
171
|
-
// ─── fixtures ───────────────────────────────────────────────────────────────
|
|
172
151
|
const FIXTURE_NAME = /^(tool|action)-(.+)\.(default|empty|error)\.json$/;
|
|
173
|
-
/** `fixtures/<integration>/<kind>-<name>.<variant>.json` must satisfy the pinned output schema. */
|
|
174
152
|
export function checkFixtures(project, pinned) {
|
|
175
153
|
const findings = [];
|
|
176
154
|
const root = path.join(project.dir, 'fixtures');
|
|
@@ -194,8 +172,6 @@ export function checkFixtures(project, pinned) {
|
|
|
194
172
|
continue;
|
|
195
173
|
}
|
|
196
174
|
if (variant === 'error') {
|
|
197
|
-
// An error variant is a refusal, not output: it is never held to the
|
|
198
|
-
// output schema, only to the refusal reasons the executor can give.
|
|
199
175
|
let authored;
|
|
200
176
|
try {
|
|
201
177
|
authored = JSON.parse(fs.readFileSync(path.join(dir, name), 'utf8'));
|
|
@@ -228,7 +204,6 @@ export function checkFixtures(project, pinned) {
|
|
|
228
204
|
}
|
|
229
205
|
return findings;
|
|
230
206
|
}
|
|
231
|
-
// ─── manifest ───────────────────────────────────────────────────────────────
|
|
232
207
|
export function buildManifest(input) {
|
|
233
208
|
const { project, definition, pinned } = input;
|
|
234
209
|
const body = Object.assign(Object.assign(Object.assign({ schemaVersion: 1, slug: project.slug, form: 'composed', version: input.version, sdk: input.sdk, integrations: project.integrations, contractRefs: pinned.map(({ use, contract }) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition-checks.js","sourceRoot":"","sources":["../../src/experience/definition-checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EAGxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAMlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAA0B,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,8BAA8B,CAAC;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC,kBAAkB,CAAC;AAExE,MAAM,GAAG,GAAG,CAAC,OAAe,EAAE,IAAY,EAAE,IAAa,EAAW,EAAE,CAAC,iBACrE,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,OAAO,EACjB,OAAO;IACP,IAAI,IACD,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACzB,CAAC;AAEH,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,IAAY,EAAE,IA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,CAAC,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,GAC5D,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YACjC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE;YACrE,CAAC,CAAC,EAAE,CAAC,EACP,GAAA,CAAC,EACH,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,EACrC,iBAAiB,EAAE,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,KACpC,CAAC,UAAU,CAAC,WAAW;QACxB,CAAC,CAAC;YACE,WAAW,EAAE;gBACX,SAAS,EAAE,IAAa;gBACxB,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBACpD,EAAE,EAAE,CAAC,CAAC,EAAE;oBACR,WAAW,EAAE,CAAC,CAAC,WAAW;oBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI;iBACb,CAAC,CAAC;aACJ;SACF;QACH,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;IAEF,uCACK,IAAI,KACP,MAAM,EAAE,UAAU,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,IAClD;AACJ,CAAC","sourcesContent":["import {\n type ExperienceManifest,\n type ExperienceSurfaces,\n ExperienceSurfacesSchema,\n type Finding,\n type WorkflowTemplate,\n WorkflowTemplateSchema,\n EKANOS_CHECK_STAGE_IDS,\n buildExperienceSurfaces,\n canonicalJson,\n interpretErrorFixture,\n sha256Hex,\n validateAgainstSchema,\n workflowTemplateProblems,\n} from '@ekanos/integration-schema';\nimport * as fs from 'node:fs';\nimport * as path from 'node:path';\n\nimport type {\n LoadedExperienceDefinition,\n LoadedExperienceModule,\n} from './definition-shape';\nimport { declaredOperationKeys } from './integrations-codegen';\nimport { type PinnedIntegration, effectLookup } from './pins';\nimport type { ExperienceProject } from './project';\n\nexport const DEFINITION_CHECK = 'checks/experience-definition';\nexport const SURFACES_CHECK = EKANOS_CHECK_STAGE_IDS.experienceSurfaces;\n\nconst err = (message: string, hint: string, file?: string): Finding => ({\n check: DEFINITION_CHECK,\n severity: 'error',\n message,\n hint,\n ...(file ? { file } : {}),\n});\n\nconst warn = (message: string, hint: string, file?: string): Finding => ({\n check: DEFINITION_CHECK,\n severity: 'warn',\n message,\n hint,\n ...(file ? { file } : {}),\n});\n\nexport interface DefinitionAnalysis {\n findings: Finding[];\n workflows: WorkflowTemplate[];\n}\n\n/**\n * Cross-check the loaded definition against `ekanos.json` and the pinned\n * contracts: every integration a widget, page, review section or workflow step names\n * must be declared, every operation must be in that integration's allowlist, the\n * review queue reads only, and each template serializes to the engine's DSL.\n */\nexport function analyzeDefinition(\n project: ExperienceProject,\n loaded: LoadedExperienceModule,\n pinned: readonly PinnedIntegration[],\n): DefinitionAnalysis {\n const { definition } = loaded;\n const findings: Finding[] = [];\n const workflows: WorkflowTemplate[] = [];\n const declaredIntegrations = new Map(\n project.integrations.map((u) => [u.name, u]),\n );\n const declared = new Map(\n project.integrations.map((u) => [\n u.name,\n new Set(declaredOperationKeys(u)),\n ]),\n );\n const contractOps = new Map(\n pinned.map(({ use, contract }) => [\n use.name,\n new Map(contract.operations.map((op) => [`${op.kind}/${op.name}`, op])),\n ]),\n );\n\n if (definition.slug !== project.slug) {\n findings.push(\n err(\n `the definition's slug \"${definition.slug}\" differs from ekanos.json \"${project.slug}\".`,\n 'Make them equal.',\n project.entry,\n ),\n );\n }\n\n const checkIntegration = (integration: string, owner: string) => {\n if (!declaredIntegrations.has(integration)) {\n findings.push(\n err(\n `${owner} uses integration \"${integration}\", which ekanos.json \"integrations\" does not declare.`,\n `Add it with \"ekanos add ${integration}@<version>\".`,\n project.entry,\n ),\n );\n\n return false;\n }\n\n return true;\n };\n\n for (const widget of definition.widgets) {\n for (const integration of widget.integrations)\n checkIntegration(integration, `widget \"${widget.id}\"`);\n }\n for (const page of definition.pages) {\n for (const integration of page.integrations ?? [])\n checkIntegration(integration, `page \"${page.id}\"`);\n }\n\n findings.push(...checkSurfaces(project, definition));\n findings.push(...checkWidgetLayouts(project, definition));\n\n for (const section of definition.reviewQueue?.sections ?? []) {\n if (\n !checkIntegration(section.integration, `review section \"${section.id}\"`)\n )\n continue;\n if (!declared.get(section.integration)?.has(section.read)) {\n findings.push(\n err(\n `review section \"${section.id}\" reads ${section.read}, which integration \"${section.integration}\" does not declare.`,\n 'Add the operation to the integration in ekanos.json, or read another one.',\n project.entry,\n ),\n );\n } else if (\n contractOps.get(section.integration)?.get(section.read)?.effect !== 'read'\n ) {\n findings.push(\n err(\n `review section \"${section.id}\" reads ${section.read}, which is not a read operation.`,\n 'The review queue is reads-only; writes belong behind a workflow approval.',\n project.entry,\n ),\n );\n }\n }\n\n const effectOf = effectLookup(pinned);\n for (const template of definition.workflows) {\n const where = `workflow \"${template.id}\"`;\n let steps: ReturnType<typeof template.build>;\n try {\n steps = template.build();\n } catch (error) {\n findings.push(\n err(\n `${where}: build() threw: ${error instanceof Error ? error.message : String(error)}`,\n 'Fix the template.',\n project.entry,\n ),\n );\n continue;\n }\n\n let stepsOk = true;\n for (const step of steps) {\n if (step.type !== 'tool' || !step.integration || !step.op) continue;\n if (!checkIntegration(step.integration, `${where} step \"${step.id}\"`)) {\n stepsOk = false;\n } else if (!declared.get(step.integration)?.has(step.op)) {\n stepsOk = false;\n findings.push(\n err(\n `${where} step \"${step.id}\" calls ${step.integration} ${step.op}, which the integration does not declare.`,\n 'Add the operation to the integration\\'s \"operations\" in ekanos.json (ekanos add --ops).',\n project.entry,\n ),\n );\n }\n }\n if (!stepsOk) continue;\n\n let dsl: unknown;\n try {\n dsl = loaded.serializeWorkflowTemplate(template, {\n effectOf,\n experience: project.slug,\n });\n } catch (error) {\n findings.push(\n err(\n `${where}: ${error instanceof Error ? error.message : String(error)}`,\n 'Fix the template.',\n project.entry,\n ),\n );\n continue;\n }\n const parsed = WorkflowTemplateSchema.safeParse(dsl);\n if (!parsed.success) {\n findings.push(\n err(\n `${where} does not serialize to a valid workflow: ${parsed.error.issues.map((i) => `${i.path.join('.')}: ${i.message}`).join('; ')}`,\n 'Fix the step definitions.',\n project.entry,\n ),\n );\n continue;\n }\n for (const problem of workflowTemplateProblems(parsed.data)) {\n findings.push(\n err(`${where}: ${problem}.`, 'Fix the template.', project.entry),\n );\n }\n\n const gated = new Set<string>();\n const preds = new Map<string, string[]>();\n for (const e of parsed.data.edges)\n preds.set(e.to, [...(preds.get(e.to) ?? []), e.from]);\n const hasGate = (id: string, seen = new Set<string>()): boolean => {\n if (seen.has(id)) return false;\n seen.add(id);\n\n return (preds.get(id) ?? []).some(\n (p) =>\n parsed.data.steps.find((s) => s.id === p)?.type === 'approval_gate' ||\n hasGate(p, seen),\n );\n };\n for (const s of parsed.data.steps) {\n if (s.type === 'fusion_tool' && s.effect === 'write' && !hasGate(s.id)) {\n gated.add(s.id);\n }\n }\n for (const id of gated) {\n findings.push(\n warn(\n `${where}: write step \"${id}\" has no approval gate upstream.`,\n 'Put step.approval(...) before a write so a person confirms it.',\n project.entry,\n ),\n );\n }\n\n workflows.push(parsed.data);\n }\n\n return { findings, workflows };\n}\n\n// ─── surfaces ───────────────────────────────────────────────────────────────\n\n/**\n * The surfaces contract: page kinds, canvas widgets, routes and the suggested\n * layout must be well formed and refer only to what the experience declares.\n * The same rules `defineExperience` enforces, re-run on the loaded definition\n * so a definition built by an older SDK, or by hand, cannot slip past.\n */\nexport function checkSurfaces(\n project: ExperienceProject,\n definition: LoadedExperienceDefinition,\n): Finding[] {\n const built = buildSurfaces(project, definition);\n const parsed = ExperienceSurfacesSchema.safeParse(built);\n if (parsed.success) return [];\n\n return parsed.error.issues.map((issue) => ({\n check: SURFACES_CHECK,\n severity: 'error' as const,\n message: `${issue.path.length > 0 ? `${issue.path.join('.')}: ` : ''}${issue.message}`,\n hint: 'Fix the page kinds, canvas widgets or suggestedLayout in the experience definition.',\n file: project.entry,\n }));\n}\n\n/**\n * The dashboard reads a widget's `size`, `layouts.lg.w` and `layouts.lg.maxHeight`\n * and nothing else. `x`, `y` and `h` are required by the layout type, so their\n * presence says nothing; a `md` or `sm` box is optional and is never read, so\n * declaring one is a finding.\n */\nexport function checkWidgetLayouts(\n project: ExperienceProject,\n definition: LoadedExperienceDefinition,\n): Finding[] {\n return definition.widgets.flatMap((widget) => {\n const unused = (['md', 'sm'] as const).filter(\n (breakpoint) => widget.layouts?.[breakpoint] !== undefined,\n );\n\n if (unused.length === 0) return [];\n\n return [\n warn(\n `widget \"${widget.id}\" declares layouts.${unused.join(' and layouts.')}, which the dashboard does not read.`,\n 'Only size, layouts.lg.w and layouts.lg.maxHeight take effect. Delete the unused box, or keep it knowing it changes nothing.',\n project.entry,\n ),\n ];\n });\n}\n\n/** `dist/surfaces.json`: the surfaces and suggested layout as data, no code. */\nexport function buildSurfaces(\n project: ExperienceProject,\n definition: LoadedExperienceDefinition,\n): ExperienceSurfaces {\n return buildExperienceSurfaces(project.slug, definition);\n}\n\n// ─── fixtures ───────────────────────────────────────────────────────────────\n\nconst FIXTURE_NAME = /^(tool|action)-(.+)\\.(default|empty|error)\\.json$/;\n\n/** `fixtures/<integration>/<kind>-<name>.<variant>.json` must satisfy the pinned output schema. */\nexport function checkFixtures(\n project: ExperienceProject,\n pinned: readonly PinnedIntegration[],\n): Finding[] {\n const findings: Finding[] = [];\n const root = path.join(project.dir, 'fixtures');\n if (!fs.existsSync(root)) return findings;\n\n for (const { use, contract } of pinned) {\n const dir = path.join(root, use.name);\n if (!fs.existsSync(dir)) continue;\n for (const name of fs.readdirSync(dir)) {\n const rel = `fixtures/${use.name}/${name}`;\n const match = FIXTURE_NAME.exec(name);\n if (!match) {\n findings.push(\n warn(\n `${rel} is not <kind>-<name>.<default|empty|error>.json.`,\n 'Rename it so the harness can find it.',\n rel,\n ),\n );\n continue;\n }\n const [, kind, op, variant] = match;\n const operation = contract.operations.find(\n (o) => o.kind === kind && o.name === op,\n );\n if (!operation) {\n findings.push(\n err(\n `${rel}: ${use.name}@${use.version} has no ${kind}/${op}.`,\n 'Delete the fixture or fix its name.',\n rel,\n ),\n );\n continue;\n }\n if (variant === 'error') {\n // An error variant is a refusal, not output: it is never held to the\n // output schema, only to the refusal reasons the executor can give.\n let authored: unknown;\n try {\n authored = JSON.parse(fs.readFileSync(path.join(dir, name), 'utf8'));\n } catch {\n findings.push(\n err(`${rel} is not valid JSON.`, 'Fix the syntax.', rel),\n );\n continue;\n }\n const error = interpretErrorFixture(authored);\n if (error.kind === 'invalid') {\n findings.push(\n err(\n `${rel}: ${error.problem}`,\n 'An error fixture is { \"reason\": \"<refusal reason>\", \"message\": \"<optional detail>\" }.',\n rel,\n ),\n );\n }\n continue;\n }\n if (operation.opaque.output) continue;\n let value: unknown;\n try {\n value = JSON.parse(fs.readFileSync(path.join(dir, name), 'utf8'));\n } catch {\n findings.push(err(`${rel} is not valid JSON.`, 'Fix the syntax.', rel));\n continue;\n }\n const problems = validateAgainstSchema(operation.output, value);\n if (problems.length > 0) {\n findings.push(\n err(\n `${rel} violates the pinned output schema: ${problems[0]}`,\n 'A fixture must satisfy the contract, or the harness would show data the integration can never return.',\n rel,\n ),\n );\n }\n }\n }\n\n return findings;\n}\n\n// ─── manifest ───────────────────────────────────────────────────────────────\n\nexport function buildManifest(input: {\n project: ExperienceProject;\n definition: LoadedExperienceDefinition;\n pinned: readonly PinnedIntegration[];\n workflows: readonly WorkflowTemplate[];\n version: string;\n sdk: string;\n surfaces: ExperienceSurfaces;\n}): ExperienceManifest {\n const { project, definition, pinned } = input;\n const body = {\n schemaVersion: 1 as const,\n slug: project.slug,\n form: 'composed' as const,\n version: input.version,\n sdk: input.sdk,\n integrations: project.integrations,\n contractRefs: pinned.map(({ use, contract }) => ({\n integration: use.name,\n version: use.version,\n contractVersion: contract.contractVersion,\n digest: contract.digest,\n })),\n ...(definition.sidebar ? { sidebar: definition.sidebar } : {}),\n widgets: definition.widgets.map((w) => ({\n id: w.id,\n title: w.title,\n integrations: [...w.integrations],\n ...(w.width ? { width: w.width } : {}),\n ...(w.size ? { size: w.size } : {}),\n ...(w.layouts ? { layouts: w.layouts } : {}),\n ...(w.isCollapsible === undefined\n ? {}\n : { isCollapsible: w.isCollapsible }),\n ...(w.aiFooterEnabled === undefined\n ? {}\n : { aiFooterEnabled: w.aiFooterEnabled }),\n })),\n pages: definition.pages.map((p) => ({\n id: p.id,\n ...(p.path === undefined ? {} : { path: p.path }),\n title: p.title,\n integrations: [...(p.integrations ?? [])],\n ...(p.kind === undefined ? {} : { kind: p.kind }),\n ...(p.widgets === undefined ? {} : { widgets: [...p.widgets] }),\n ...(p.routes && p.routes.length > 0\n ? { routes: p.routes.map((r) => ({ path: r.path, title: r.title })) }\n : {}),\n })),\n surfacesDigest: input.surfaces.digest,\n workflowTemplates: [...input.workflows],\n ...(definition.reviewQueue\n ? {\n reviewQueue: {\n readsOnly: true as const,\n sections: definition.reviewQueue.sections.map((s) => ({\n id: s.id,\n integration: s.integration,\n read: s.read,\n })),\n },\n }\n : {}),\n };\n\n return {\n ...body,\n digest: `sha256:${sha256Hex(canonicalJson(body))}`,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"definition-checks.js","sourceRoot":"","sources":["../../src/experience/definition-checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EAGxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,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E,CAAC,CAAC,WAAW;oBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI;iBACb,CAAC,CAAC;aACJ;SACF;QACH,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;IAEF,uCACK,IAAI,KACP,MAAM,EAAE,UAAU,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,IAClD;AACJ,CAAC","sourcesContent":["import {\n type ExperienceManifest,\n type ExperienceSurfaces,\n ExperienceSurfacesSchema,\n type Finding,\n type WorkflowTemplate,\n WorkflowTemplateSchema,\n EKANOS_CHECK_STAGE_IDS,\n buildExperienceSurfaces,\n canonicalJson,\n interpretErrorFixture,\n sha256Hex,\n validateAgainstSchema,\n workflowTemplateProblems,\n} from '@ekanos/integration-schema';\nimport * as fs from 'node:fs';\nimport * as path from 'node:path';\n\nimport type {\n LoadedExperienceDefinition,\n LoadedExperienceModule,\n} from './definition-shape';\nimport { declaredOperationKeys } from './integrations-codegen';\nimport { type PinnedIntegration, effectLookup } from './pins';\nimport type { ExperienceProject } from './project';\n\nconst DEFINITION_CHECK = 'checks/experience-definition';\nconst SURFACES_CHECK = EKANOS_CHECK_STAGE_IDS.experienceSurfaces;\n\nconst err = (message: string, hint: string, file?: string): Finding => ({\n check: DEFINITION_CHECK,\n severity: 'error',\n message,\n hint,\n ...(file ? { file } : {}),\n});\n\nconst warn = (message: string, hint: string, file?: string): Finding => ({\n check: DEFINITION_CHECK,\n severity: 'warn',\n message,\n hint,\n ...(file ? { file } : {}),\n});\n\nexport interface DefinitionAnalysis {\n findings: Finding[];\n workflows: WorkflowTemplate[];\n}\n\nexport function analyzeDefinition(\n project: ExperienceProject,\n loaded: LoadedExperienceModule,\n pinned: readonly PinnedIntegration[],\n): DefinitionAnalysis {\n const { definition } = loaded;\n const findings: Finding[] = [];\n const workflows: WorkflowTemplate[] = [];\n const declaredIntegrations = new Map(\n project.integrations.map((u) => [u.name, u]),\n );\n const declared = new Map(\n project.integrations.map((u) => [\n u.name,\n new Set(declaredOperationKeys(u)),\n ]),\n );\n const contractOps = new Map(\n pinned.map(({ use, contract }) => [\n use.name,\n new Map(contract.operations.map((op) => [`${op.kind}/${op.name}`, op])),\n ]),\n );\n\n if (definition.slug !== project.slug) {\n findings.push(\n err(\n `the definition's slug \"${definition.slug}\" differs from ekanos.json \"${project.slug}\".`,\n 'Make them equal.',\n project.entry,\n ),\n );\n }\n\n const checkIntegration = (integration: string, owner: string) => {\n if (!declaredIntegrations.has(integration)) {\n findings.push(\n err(\n `${owner} uses integration \"${integration}\", which ekanos.json \"integrations\" does not declare.`,\n `Add it with \"ekanos add ${integration}@<version>\".`,\n project.entry,\n ),\n );\n\n return false;\n }\n\n return true;\n };\n\n for (const widget of definition.widgets) {\n for (const integration of widget.integrations)\n checkIntegration(integration, `widget \"${widget.id}\"`);\n }\n for (const page of definition.pages) {\n for (const integration of page.integrations ?? [])\n checkIntegration(integration, `page \"${page.id}\"`);\n }\n\n findings.push(...checkSurfaces(project, definition));\n findings.push(...checkWidgetLayouts(project, definition));\n\n for (const section of definition.reviewQueue?.sections ?? []) {\n if (\n !checkIntegration(section.integration, `review section \"${section.id}\"`)\n )\n continue;\n if (!declared.get(section.integration)?.has(section.read)) {\n findings.push(\n err(\n `review section \"${section.id}\" reads ${section.read}, which integration \"${section.integration}\" does not declare.`,\n 'Add the operation to the integration in ekanos.json, or read another one.',\n project.entry,\n ),\n );\n } else if (\n contractOps.get(section.integration)?.get(section.read)?.effect !== 'read'\n ) {\n findings.push(\n err(\n `review section \"${section.id}\" reads ${section.read}, which is not a read operation.`,\n 'The review queue is reads-only; writes belong behind a workflow approval.',\n project.entry,\n ),\n );\n }\n }\n\n const effectOf = effectLookup(pinned);\n for (const template of definition.workflows) {\n const where = `workflow \"${template.id}\"`;\n let steps: ReturnType<typeof template.build>;\n try {\n steps = template.build();\n } catch (error) {\n findings.push(\n err(\n `${where}: build() threw: ${error instanceof Error ? error.message : String(error)}`,\n 'Fix the template.',\n project.entry,\n ),\n );\n continue;\n }\n\n let stepsOk = true;\n for (const step of steps) {\n if (step.type !== 'tool' || !step.integration || !step.op) continue;\n if (!checkIntegration(step.integration, `${where} step \"${step.id}\"`)) {\n stepsOk = false;\n } else if (!declared.get(step.integration)?.has(step.op)) {\n stepsOk = false;\n findings.push(\n err(\n `${where} step \"${step.id}\" calls ${step.integration} ${step.op}, which the integration does not declare.`,\n 'Add the operation to the integration\\'s \"operations\" in ekanos.json (ekanos add --ops).',\n project.entry,\n ),\n );\n }\n }\n if (!stepsOk) continue;\n\n let dsl: unknown;\n try {\n dsl = loaded.serializeWorkflowTemplate(template, {\n effectOf,\n experience: project.slug,\n });\n } catch (error) {\n findings.push(\n err(\n `${where}: ${error instanceof Error ? error.message : String(error)}`,\n 'Fix the template.',\n project.entry,\n ),\n );\n continue;\n }\n const parsed = WorkflowTemplateSchema.safeParse(dsl);\n if (!parsed.success) {\n findings.push(\n err(\n `${where} does not serialize to a valid workflow: ${parsed.error.issues.map((i) => `${i.path.join('.')}: ${i.message}`).join('; ')}`,\n 'Fix the step definitions.',\n project.entry,\n ),\n );\n continue;\n }\n for (const problem of workflowTemplateProblems(parsed.data)) {\n findings.push(\n err(`${where}: ${problem}.`, 'Fix the template.', project.entry),\n );\n }\n\n const gated = new Set<string>();\n const preds = new Map<string, string[]>();\n for (const e of parsed.data.edges)\n preds.set(e.to, [...(preds.get(e.to) ?? []), e.from]);\n const hasGate = (id: string, seen = new Set<string>()): boolean => {\n if (seen.has(id)) return false;\n seen.add(id);\n\n return (preds.get(id) ?? []).some(\n (p) =>\n parsed.data.steps.find((s) => s.id === p)?.type === 'approval_gate' ||\n hasGate(p, seen),\n );\n };\n for (const s of parsed.data.steps) {\n if (s.type === 'fusion_tool' && s.effect === 'write' && !hasGate(s.id)) {\n gated.add(s.id);\n }\n }\n for (const id of gated) {\n findings.push(\n warn(\n `${where}: write step \"${id}\" has no approval gate upstream.`,\n 'Put step.approval(...) before a write so a person confirms it.',\n project.entry,\n ),\n );\n }\n\n workflows.push(parsed.data);\n }\n\n return { findings, workflows };\n}\n\nexport function checkSurfaces(\n project: ExperienceProject,\n definition: LoadedExperienceDefinition,\n): Finding[] {\n const built = buildSurfaces(project, definition);\n const parsed = ExperienceSurfacesSchema.safeParse(built);\n if (parsed.success) return [];\n\n return parsed.error.issues.map((issue) => ({\n check: SURFACES_CHECK,\n severity: 'error' as const,\n message: `${issue.path.length > 0 ? `${issue.path.join('.')}: ` : ''}${issue.message}`,\n hint: 'Fix the page kinds, canvas widgets or suggestedLayout in the experience definition.',\n file: project.entry,\n }));\n}\n\nexport function checkWidgetLayouts(\n project: ExperienceProject,\n definition: LoadedExperienceDefinition,\n): Finding[] {\n return definition.widgets.flatMap((widget) => {\n const unused = (['md', 'sm'] as const).filter(\n (breakpoint) => widget.layouts?.[breakpoint] !== undefined,\n );\n\n if (unused.length === 0) return [];\n\n return [\n warn(\n `widget \"${widget.id}\" declares layouts.${unused.join(' and layouts.')}, which the dashboard does not read.`,\n 'Only size, layouts.lg.w and layouts.lg.maxHeight take effect. Delete the unused box, or keep it knowing it changes nothing.',\n project.entry,\n ),\n ];\n });\n}\n\nexport function buildSurfaces(\n project: ExperienceProject,\n definition: LoadedExperienceDefinition,\n): ExperienceSurfaces {\n return buildExperienceSurfaces(project.slug, definition);\n}\n\nconst FIXTURE_NAME = /^(tool|action)-(.+)\\.(default|empty|error)\\.json$/;\n\nexport function checkFixtures(\n project: ExperienceProject,\n pinned: readonly PinnedIntegration[],\n): Finding[] {\n const findings: Finding[] = [];\n const root = path.join(project.dir, 'fixtures');\n if (!fs.existsSync(root)) return findings;\n\n for (const { use, contract } of pinned) {\n const dir = path.join(root, use.name);\n if (!fs.existsSync(dir)) continue;\n for (const name of fs.readdirSync(dir)) {\n const rel = `fixtures/${use.name}/${name}`;\n const match = FIXTURE_NAME.exec(name);\n if (!match) {\n findings.push(\n warn(\n `${rel} is not <kind>-<name>.<default|empty|error>.json.`,\n 'Rename it so the harness can find it.',\n rel,\n ),\n );\n continue;\n }\n const [, kind, op, variant] = match;\n const operation = contract.operations.find(\n (o) => o.kind === kind && o.name === op,\n );\n if (!operation) {\n findings.push(\n err(\n `${rel}: ${use.name}@${use.version} has no ${kind}/${op}.`,\n 'Delete the fixture or fix its name.',\n rel,\n ),\n );\n continue;\n }\n if (variant === 'error') {\n let authored: unknown;\n try {\n authored = JSON.parse(fs.readFileSync(path.join(dir, name), 'utf8'));\n } catch {\n findings.push(\n err(`${rel} is not valid JSON.`, 'Fix the syntax.', rel),\n );\n continue;\n }\n const error = interpretErrorFixture(authored);\n if (error.kind === 'invalid') {\n findings.push(\n err(\n `${rel}: ${error.problem}`,\n 'An error fixture is { \"reason\": \"<refusal reason>\", \"message\": \"<optional detail>\" }.',\n rel,\n ),\n );\n }\n continue;\n }\n if (operation.opaque.output) continue;\n let value: unknown;\n try {\n value = JSON.parse(fs.readFileSync(path.join(dir, name), 'utf8'));\n } catch {\n findings.push(err(`${rel} is not valid JSON.`, 'Fix the syntax.', rel));\n continue;\n }\n const problems = validateAgainstSchema(operation.output, value);\n if (problems.length > 0) {\n findings.push(\n err(\n `${rel} violates the pinned output schema: ${problems[0]}`,\n 'A fixture must satisfy the contract, or the harness would show data the integration can never return.',\n rel,\n ),\n );\n }\n }\n }\n\n return findings;\n}\n\nexport function buildManifest(input: {\n project: ExperienceProject;\n definition: LoadedExperienceDefinition;\n pinned: readonly PinnedIntegration[];\n workflows: readonly WorkflowTemplate[];\n version: string;\n sdk: string;\n surfaces: ExperienceSurfaces;\n}): ExperienceManifest {\n const { project, definition, pinned } = input;\n const body = {\n schemaVersion: 1 as const,\n slug: project.slug,\n form: 'composed' as const,\n version: input.version,\n sdk: input.sdk,\n integrations: project.integrations,\n contractRefs: pinned.map(({ use, contract }) => ({\n integration: use.name,\n version: use.version,\n contractVersion: contract.contractVersion,\n digest: contract.digest,\n })),\n ...(definition.sidebar ? { sidebar: definition.sidebar } : {}),\n widgets: definition.widgets.map((w) => ({\n id: w.id,\n title: w.title,\n integrations: [...w.integrations],\n ...(w.width ? { width: w.width } : {}),\n ...(w.size ? { size: w.size } : {}),\n ...(w.layouts ? { layouts: w.layouts } : {}),\n ...(w.isCollapsible === undefined\n ? {}\n : { isCollapsible: w.isCollapsible }),\n ...(w.aiFooterEnabled === undefined\n ? {}\n : { aiFooterEnabled: w.aiFooterEnabled }),\n })),\n pages: definition.pages.map((p) => ({\n id: p.id,\n ...(p.path === undefined ? {} : { path: p.path }),\n title: p.title,\n integrations: [...(p.integrations ?? [])],\n ...(p.kind === undefined ? {} : { kind: p.kind }),\n ...(p.widgets === undefined ? {} : { widgets: [...p.widgets] }),\n ...(p.routes && p.routes.length > 0\n ? { routes: p.routes.map((r) => ({ path: r.path, title: r.title })) }\n : {}),\n })),\n surfacesDigest: input.surfaces.digest,\n workflowTemplates: [...input.workflows],\n ...(definition.reviewQueue\n ? {\n reviewQueue: {\n readsOnly: true as const,\n sections: definition.reviewQueue.sections.map((s) => ({\n id: s.id,\n integration: s.integration,\n read: s.read,\n })),\n },\n }\n : {}),\n };\n\n return {\n ...body,\n digest: `sha256:${sha256Hex(canonicalJson(body))}`,\n };\n}\n"]}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { WidgetLayouts } from '@ekanos/integration-schema';
|
|
2
|
-
|
|
3
|
-
* The structural slice of an `ExperienceDefinition` the CLI reads. The CLI does
|
|
4
|
-
* not depend on `@ekanos/sdk`: the definition is produced by whichever SDK the
|
|
5
|
-
* project installed, and anything the CLI needs computed (workflow
|
|
6
|
-
* serialization) is obtained from that same SDK at load time.
|
|
7
|
-
*/
|
|
8
|
-
export interface LoadedWorkflowTemplate {
|
|
2
|
+
interface LoadedWorkflowTemplate {
|
|
9
3
|
id: string;
|
|
10
4
|
name: string;
|
|
11
5
|
build(): ReadonlyArray<{
|
|
@@ -38,7 +32,6 @@ export interface LoadedExperienceDefinition {
|
|
|
38
32
|
}>;
|
|
39
33
|
pages: ReadonlyArray<{
|
|
40
34
|
id: string;
|
|
41
|
-
/** The SDK sets it; a definition from before page kinds has none (custom). */
|
|
42
35
|
kind?: 'overview' | 'canvas' | 'custom';
|
|
43
36
|
path?: string;
|
|
44
37
|
title: string;
|
|
@@ -70,14 +63,13 @@ export interface LoadedExperienceDefinition {
|
|
|
70
63
|
}>;
|
|
71
64
|
};
|
|
72
65
|
}
|
|
73
|
-
|
|
66
|
+
interface SerializedWorkflowOptions {
|
|
74
67
|
effectOf: (integration: string, op: string) => 'read' | 'write' | undefined;
|
|
75
|
-
/** Read by SDK 0.22 and later; an older SDK ignores it and emits the placeholder installation id. */
|
|
76
68
|
experience?: string;
|
|
77
69
|
}
|
|
78
70
|
export interface LoadedExperienceModule {
|
|
79
71
|
definition: LoadedExperienceDefinition;
|
|
80
|
-
/** The project's own SDK serializer, so the output matches the SDK that authored it. */
|
|
81
72
|
serializeWorkflowTemplate(template: LoadedWorkflowTemplate, options: SerializedWorkflowOptions): unknown;
|
|
82
73
|
slotsUsedBy(definition: LoadedExperienceDefinition): string[];
|
|
83
74
|
}
|
|
75
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition-shape.js","sourceRoot":"","sources":["../../src/experience/definition-shape.ts"],"names":[],"mappings":"","sourcesContent":["import type { WidgetLayouts } from '@ekanos/integration-schema';\n\
|
|
1
|
+
{"version":3,"file":"definition-shape.js","sourceRoot":"","sources":["../../src/experience/definition-shape.ts"],"names":[],"mappings":"","sourcesContent":["import type { WidgetLayouts } from '@ekanos/integration-schema';\n\ninterface LoadedWorkflowTemplate {\n id: string;\n name: string;\n build(): ReadonlyArray<{\n type: string;\n id: string;\n integration?: string;\n op?: string;\n }>;\n}\n\nexport interface LoadedExperienceDefinition {\n kind: 'experience';\n slug: string;\n name: string;\n description?: string;\n sidebar?: { section: string; icon: string; label: string };\n widgets: ReadonlyArray<{\n id: string;\n title: string;\n integrations: readonly string[];\n width?: 'compact' | 'half' | 'full';\n size?: 'compact' | 'half' | 'full';\n layouts?: WidgetLayouts;\n isCollapsible?: boolean;\n isPinnable?: boolean;\n aiFooterEnabled?: boolean;\n }>;\n pages: ReadonlyArray<{\n id: string;\n kind?: 'overview' | 'canvas' | 'custom';\n path?: string;\n title: string;\n integrations?: readonly string[];\n widgets?: readonly string[];\n routes?: ReadonlyArray<{ path: string; title: string }>;\n }>;\n suggestedLayout?: {\n workspaces: ReadonlyArray<{\n slug: string;\n name: string;\n icon?: string;\n items: ReadonlyArray<{ ref: string; audiences?: readonly string[] }>;\n }>;\n };\n workflows: readonly LoadedWorkflowTemplate[];\n reviewQueue?: {\n readsOnly: true;\n sections: ReadonlyArray<{ id: string; integration: string; read: string }>;\n };\n}\n\ninterface SerializedWorkflowOptions {\n effectOf: (integration: string, op: string) => 'read' | 'write' | undefined;\n experience?: string;\n}\n\nexport interface LoadedExperienceModule {\n definition: LoadedExperienceDefinition;\n serializeWorkflowTemplate(\n template: LoadedWorkflowTemplate,\n options: SerializedWorkflowOptions,\n ): unknown;\n slotsUsedBy(definition: LoadedExperienceDefinition): string[];\n}\n"]}
|
|
@@ -3,33 +3,16 @@ import type { CliContext } from '../context.js';
|
|
|
3
3
|
import { fetchHostContract } from '../contracts-api.js';
|
|
4
4
|
import { resolveSourceTarget } from '../source-target.js';
|
|
5
5
|
import type { ContractSource } from './contract-sources.js';
|
|
6
|
-
/** The network calls, injectable for tests. */
|
|
7
6
|
export interface HostContractDeps {
|
|
8
7
|
resolveAuthEnvironment: typeof resolveAuthEnvironment;
|
|
9
8
|
resolveSourceTarget: typeof resolveSourceTarget;
|
|
10
9
|
refreshStoredSession: typeof refreshStoredSession;
|
|
11
10
|
fetchHostContract: typeof fetchHostContract;
|
|
12
11
|
}
|
|
13
|
-
/**
|
|
14
|
-
* The host as a contract source: the contract of any integration the
|
|
15
|
-
* developer's Source may see (global, its own, or shared with it), which is
|
|
16
|
-
* how an experience builds on a package its Source does not own. Never
|
|
17
|
-
* throws for being offline, logged out or without a Source: it answers null
|
|
18
|
-
* and says why in its name, so the next source in the chain is tried and the
|
|
19
|
-
* final "no contract" message explains this one.
|
|
20
|
-
*/
|
|
21
12
|
export declare function hostContractSource(params: {
|
|
22
13
|
ctx: CliContext;
|
|
23
14
|
env: Record<string, string | undefined>;
|
|
24
15
|
projectDir: string;
|
|
25
16
|
deps?: Partial<HostContractDeps>;
|
|
26
17
|
}): ContractSource;
|
|
27
|
-
/**
|
|
28
|
-
* The chain `add` and `sync` resolve through: the project's harness first (a
|
|
29
|
-
* package of the same repo, the Source's own published package, an explicit
|
|
30
|
-
* contracts directory), then the host, and only then the committed snapshot
|
|
31
|
-
* the harness falls back to. A stale snapshot never wins over the host's
|
|
32
|
-
* contract, and the host never overrides a package being developed in the
|
|
33
|
-
* repo.
|
|
34
|
-
*/
|
|
35
18
|
export declare function withHostBeforeSnapshots(harness: readonly ContractSource[], host: ContractSource): ContractSource[];
|
|
@@ -8,14 +8,6 @@ const DEFAULT_DEPS = {
|
|
|
8
8
|
refreshStoredSession,
|
|
9
9
|
fetchHostContract,
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
12
|
-
* The host as a contract source: the contract of any integration the
|
|
13
|
-
* developer's Source may see (global, its own, or shared with it), which is
|
|
14
|
-
* how an experience builds on a package its Source does not own. Never
|
|
15
|
-
* throws for being offline, logged out or without a Source: it answers null
|
|
16
|
-
* and says why in its name, so the next source in the chain is tried and the
|
|
17
|
-
* final "no contract" message explains this one.
|
|
18
|
-
*/
|
|
19
11
|
export function hostContractSource(params) {
|
|
20
12
|
const deps = Object.assign(Object.assign({}, DEFAULT_DEPS), params.deps);
|
|
21
13
|
let connection;
|
|
@@ -86,14 +78,6 @@ export function hostContractSource(params) {
|
|
|
86
78
|
},
|
|
87
79
|
};
|
|
88
80
|
}
|
|
89
|
-
/**
|
|
90
|
-
* The chain `add` and `sync` resolve through: the project's harness first (a
|
|
91
|
-
* package of the same repo, the Source's own published package, an explicit
|
|
92
|
-
* contracts directory), then the host, and only then the committed snapshot
|
|
93
|
-
* the harness falls back to. A stale snapshot never wins over the host's
|
|
94
|
-
* contract, and the host never overrides a package being developed in the
|
|
95
|
-
* repo.
|
|
96
|
-
*/
|
|
97
81
|
export function withHostBeforeSnapshots(harness, host) {
|
|
98
82
|
if (harness.length === 0)
|
|
99
83
|
return [host];
|