@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
package/dist/teams-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teams-api.js","sourceRoot":"","sources":["../src/teams-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,0BAA0B,EAE1B,sBAAsB,EAGtB,oBAAoB,EAEpB,6BAA6B,EAE7B,kBAAkB,EAElB,2BAA2B,EAE3B,sBAAsB,EAEtB,+BAA+B,EAE/B,gBAAgB,EAEhB,yBAAyB,EAEzB,sBAAsB,EAGtB,sBAAsB,EAEtB,0BAA0B,EAE1B,4BAA4B,EAE5B,yBAAyB,EAEzB,4BAA4B,EAE5B,oBAAoB,EAEpB,sBAAsB,EAEtB,eAAe,EAEf,2BAA2B,EAE3B,8BAA8B,EAE9B,cAAc,EAEd,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,eAAe,GAChB,MAAM,UAAU,CAAC;AAgDlB,MAAM,UAAU,SAAS,CACvB,IAAY,EACZ,WAAmB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G,WAAW,EACT,uIAAuI;IACzI,mBAAmB,EACjB,iEAAiE;IACnE,mBAAmB,EACjB,+EAA+E;IACjF,YAAY,EACV,wGAAwG;IAC1G,aAAa,EACX,4GAA4G;IAC9G,WAAW,EACT,+FAA+F;IACjG,eAAe,EACb,oGAAoG;IACtG,2BAA2B,EACzB,+HAA+H;CAClI,CAAC;AAEF,KAAK,UAAU,gBAAgB,CAC7B,QAAkB;IAElB,IAAI,CAAC;QACH,MAAM,MAAM,GAAY,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI;YAClD,CAAC,CAAE,MAAkC;YACrC,CAAC,CAAC,EAAE,CAAC;IACT,CAAC;eAAO,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC","sourcesContent":["import {\n type AudienceCreateRequest,\n type AudienceListResponse,\n AudienceListResponseSchema,\n type AudienceResponse,\n AudienceResponseSchema,\n type AudienceUpdateRequest,\n type MemberAudience,\n MemberAudienceSchema,\n type MemberAudienceSetResult,\n MemberAudienceSetResultSchema,\n type TeamAudience,\n TeamAudienceSchema,\n type TeamAudienceSetResult,\n TeamAudienceSetResultSchema,\n type ProductScopeList,\n ProductScopeListSchema,\n type ProductScopeProductChange,\n ProductScopeProductChangeSchema,\n type TeamScopes,\n TeamScopesSchema,\n type TeamScopesSetResult,\n TeamScopesSetResultSchema,\n type TeamAppSetResult,\n TeamAppSetResultSchema,\n type TeamCreateRequest,\n type TeamCreateResult,\n TeamCreateResultSchema,\n type TeamDisconnectResult,\n TeamDisconnectResultSchema,\n type TeamMemberChangeResult,\n TeamMemberChangeResultSchema,\n type TeamMemberAddResult,\n TeamMemberAddResultSchema,\n type TeamMemberInviteResult,\n TeamMemberInviteResultSchema,\n type TeamMemberList,\n TeamMemberListSchema,\n type TeamRenameResult,\n TeamRenameResultSchema,\n type TeamRoles,\n TeamRolesSchema,\n type TeamIntegrationStatus,\n TeamIntegrationStatusSchema,\n type TeamIntegrationEventList,\n TeamIntegrationEventListSchema,\n type TeamList,\n TeamListSchema,\n type TeamWebhookMintResult,\n TeamWebhookMintResultSchema,\n} from '@ekanos/integration-schema';\nimport type { z } from 'zod';\n\nimport { request } from './auth/ekanos-api';\nimport {\n authRequiredError,\n CliError,\n forbiddenError,\n invalidStateError,\n networkError,\n notFoundError,\n usageError,\n validationError,\n} from './errors';\n\n/**\n * The CLI's client for a Source's teams and their integration setup — the\n * team-level counterpart of `apps-api.ts`.\n *\n * GET /api/partner/teams?source=<slug> → TeamList\n * GET /api/partner/teams/<team>/integrations/<product>?source=<slug> → TeamIntegrationStatus\n * PUT …/integrations/<product>/app?source=<slug> { connectionId?, fields }\n * → TeamAppSetResult\n * POST …/integrations/<product>/webhooks/<id>?source=<slug> → TeamWebhookMintResult\n * DELETE /api/partner/teams/<team>/integrations/<product>?source=<slug> → TeamDisconnectResult\n * POST /api/partner/teams?source=<slug> { name, slug?, ownerEmail? } → TeamCreateResult\n * PATCH /api/partner/teams/<team>?source=<slug> { name } → TeamRenameResult\n * GET /api/partner/teams/<team>/members?source=<slug> → TeamMemberList\n * POST …/<team>/members?source=<slug> { email, role } → TeamMemberInviteResult\n * PATCH …/<team>/members/<email>?source=<slug> { role } → TeamMemberChangeResult\n * DELETE …/<team>/members/<email>?source=<slug> → TeamMemberChangeResult\n * GET /api/partner/teams/<team>/roles?source=<slug> → TeamRoles\n * GET /api/partner/teams/<team>/events?source=<slug>[&product=<slug>]\n * [&since=<iso>][&limit=<n>] → TeamIntegrationEventList\n * GET /api/partner/scopes?source=<slug> → ProductScopeList\n * PUT | DELETE /api/partner/scopes/<scope>/products/<product>?source=<slug>\n * → ProductScopeProductChange\n * GET /api/partner/audiences?source=<slug> → AudienceListResponse\n * GET | PATCH /api/partner/audiences/<audience>?source=<slug> → AudienceResponse\n * POST /api/partner/audiences?source=<slug> { name, … } → AudienceResponse\n * GET | PUT /api/partner/teams/<team>/audience?source=<slug> { audienceId }\n * → TeamAudience | TeamAudienceSetResult\n * GET | PUT …/<team>/members/<email>/audience?source=<slug> { audienceId | null }\n * → MemberAudience | MemberAudienceSetResult\n * GET /api/partner/teams/<team>/scopes?source=<slug> → TeamScopes\n * PUT /api/partner/teams/<team>/scopes?source=<slug> { scopes } → TeamScopesSetResult\n *\n * → 401 / 3xx refresh once and retry\n * → 403 { code: \"SOURCE_ADMIN_REQUIRED\" | \"MFA_REQUIRED\" | \"FORBIDDEN\" }\n * → 404 { code: \"TEAM_NOT_FOUND\" | \"PRODUCT_NOT_ENTITLED\" | \"WEBHOOK_NOT_FOUND\"\n * | \"CONNECTION_NOT_FOUND\" | \"SOURCE_NOT_FOUND\" }\n * | \"MEMBER_NOT_FOUND\" }\n * → 409 { code: \"NO_TEAM_APP\" | \"SLUG_TAKEN\" | \"TEAM_ACCOUNTS_DISABLED\"\n * | \"ALREADY_MEMBER\" | \"ALREADY_INVITED\" | \"PRIMARY_OWNER\" }\n * → 400 { code: \"INVALID_FIELDS\" | \"INVALID_REQUEST\" | \"UNKNOWN_ROLE\" }\n */\n\nexport type TeamsApiResult<T> =\n | { status: 'ok'; data: T }\n | { status: 'unauthorized' };\n\nexport function listTeams(\n host: string,\n accessToken: string,\n source: string,\n): Promise<TeamsApiResult<TeamList>> {\n return call(host, accessToken, TeamListSchema, {\n method: 'GET',\n path: '/api/partner/teams',\n source,\n });\n}\n\nexport function showTeamIntegration(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string },\n): Promise<TeamsApiResult<TeamIntegrationStatus>> {\n return call(host, accessToken, TeamIntegrationStatusSchema, {\n method: 'GET',\n path: integrationPath(target),\n source: target.source,\n });\n}\n\nexport function setTeamApp(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string },\n body: {\n connectionId?: string;\n fields: Record<string, string>;\n clear?: string[];\n },\n): Promise<TeamsApiResult<TeamAppSetResult>> {\n return call(host, accessToken, TeamAppSetResultSchema, {\n method: 'PUT',\n path: `${integrationPath(target)}/app`,\n source: target.source,\n body,\n });\n}\n\nexport function mintTeamWebhook(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string },\n webhookId: string,\n): Promise<TeamsApiResult<TeamWebhookMintResult>> {\n return call(host, accessToken, TeamWebhookMintResultSchema, {\n method: 'POST',\n path: `${integrationPath(target)}/webhooks/${encodeURIComponent(webhookId)}`,\n source: target.source,\n });\n}\n\nexport function disconnectTeamIntegration(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string; mine?: boolean },\n): Promise<TeamsApiResult<TeamDisconnectResult>> {\n return call(host, accessToken, TeamDisconnectResultSchema, {\n method: 'DELETE',\n // `--mine`: the caller's own personal connection, never another's.\n path: `${integrationPath(target)}${target.mine ? '/mine' : ''}`,\n source: target.source,\n });\n}\n\nexport function createTeam(\n host: string,\n accessToken: string,\n source: string,\n body: TeamCreateRequest,\n): Promise<TeamsApiResult<TeamCreateResult>> {\n return call(host, accessToken, TeamCreateResultSchema, {\n method: 'POST',\n path: '/api/partner/teams',\n source,\n body,\n });\n}\n\nexport function renameTeam(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n name: string,\n): Promise<TeamsApiResult<TeamRenameResult>> {\n return call(host, accessToken, TeamRenameResultSchema, {\n method: 'PATCH',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}`,\n source: target.source,\n body: { name },\n });\n}\n\nexport function listTeamMembers(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamMemberList>> {\n return call(host, accessToken, TeamMemberListSchema, {\n method: 'GET',\n path: membersPath(target.team),\n source: target.source,\n });\n}\n\nexport function inviteTeamMember(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n body: { email: string; role: string },\n): Promise<TeamsApiResult<TeamMemberInviteResult>> {\n return call(host, accessToken, TeamMemberInviteResultSchema, {\n method: 'POST',\n path: membersPath(target.team),\n source: target.source,\n body,\n });\n}\n\n/** `teams members add`: a member now, no invitation email (`PUT`). */\nexport function addTeamMember(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n body: { self: true; role?: string } | { email: string; role?: string },\n): Promise<TeamsApiResult<TeamMemberAddResult>> {\n return call(host, accessToken, TeamMemberAddResultSchema, {\n method: 'PUT',\n path: membersPath(target.team),\n source: target.source,\n body,\n });\n}\n\nexport function setTeamMemberRole(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n role: string,\n): Promise<TeamsApiResult<TeamMemberChangeResult>> {\n return call(host, accessToken, TeamMemberChangeResultSchema, {\n method: 'PATCH',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}`,\n source: target.source,\n body: { role },\n });\n}\n\nexport function removeTeamMember(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n): Promise<TeamsApiResult<TeamMemberChangeResult>> {\n return call(host, accessToken, TeamMemberChangeResultSchema, {\n method: 'DELETE',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}`,\n source: target.source,\n });\n}\n\nexport function listProductScopes(\n host: string,\n accessToken: string,\n source: string,\n): Promise<TeamsApiResult<ProductScopeList>> {\n return call(host, accessToken, ProductScopeListSchema, {\n method: 'GET',\n path: '/api/partner/scopes',\n source,\n });\n}\n\nexport function setScopeProduct(\n host: string,\n accessToken: string,\n target: { source: string; scope: string; product: string },\n included: boolean,\n): Promise<TeamsApiResult<ProductScopeProductChange>> {\n return call(host, accessToken, ProductScopeProductChangeSchema, {\n method: included ? 'PUT' : 'DELETE',\n path: `/api/partner/scopes/${encodeURIComponent(target.scope)}/products/${encodeURIComponent(target.product)}`,\n source: target.source,\n });\n}\n\nexport function showTeamScopes(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamScopes>> {\n return call(host, accessToken, TeamScopesSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/scopes`,\n source: target.source,\n });\n}\n\nexport function setTeamScopes(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n scopes: string[],\n): Promise<TeamsApiResult<TeamScopesSetResult>> {\n return call(host, accessToken, TeamScopesSetResultSchema, {\n method: 'PUT',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/scopes`,\n source: target.source,\n body: { scopes },\n });\n}\n\nexport function listAudiences(\n host: string,\n accessToken: string,\n source: string,\n): Promise<TeamsApiResult<AudienceListResponse>> {\n return call(host, accessToken, AudienceListResponseSchema, {\n method: 'GET',\n path: '/api/partner/audiences',\n source,\n });\n}\n\nexport function showAudience(\n host: string,\n accessToken: string,\n target: { source: string; audience: string },\n): Promise<TeamsApiResult<AudienceResponse>> {\n return call(host, accessToken, AudienceResponseSchema, {\n method: 'GET',\n path: `/api/partner/audiences/${encodeURIComponent(target.audience)}`,\n source: target.source,\n });\n}\n\nexport function createAudience(\n host: string,\n accessToken: string,\n source: string,\n body: AudienceCreateRequest,\n): Promise<TeamsApiResult<AudienceResponse>> {\n return call(host, accessToken, AudienceResponseSchema, {\n method: 'POST',\n path: '/api/partner/audiences',\n source,\n body,\n });\n}\n\nexport function updateAudience(\n host: string,\n accessToken: string,\n target: { source: string; audience: string },\n body: AudienceUpdateRequest,\n): Promise<TeamsApiResult<AudienceResponse>> {\n return call(host, accessToken, AudienceResponseSchema, {\n method: 'PATCH',\n path: `/api/partner/audiences/${encodeURIComponent(target.audience)}`,\n source: target.source,\n body,\n });\n}\n\nexport function showTeamAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamAudience>> {\n return call(host, accessToken, TeamAudienceSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/audience`,\n source: target.source,\n });\n}\n\nexport function setTeamAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n audienceId: string,\n): Promise<TeamsApiResult<TeamAudienceSetResult>> {\n return call(host, accessToken, TeamAudienceSetResultSchema, {\n method: 'PUT',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/audience`,\n source: target.source,\n body: { audienceId },\n });\n}\n\nexport function showMemberAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n): Promise<TeamsApiResult<MemberAudience>> {\n return call(host, accessToken, MemberAudienceSchema, {\n method: 'GET',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}/audience`,\n source: target.source,\n });\n}\n\n/** `audienceId: null` clears the member's own audience. */\nexport function setMemberAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n audienceId: string | null,\n): Promise<TeamsApiResult<MemberAudienceSetResult>> {\n return call(host, accessToken, MemberAudienceSetResultSchema, {\n method: 'PUT',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}/audience`,\n source: target.source,\n body: { audienceId },\n });\n}\n\nexport function listTeamRoles(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamRoles>> {\n return call(host, accessToken, TeamRolesSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/roles`,\n source: target.source,\n });\n}\n\nexport function listTeamEvents(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n filters: { product?: string; since?: string; limit?: number },\n): Promise<TeamsApiResult<TeamIntegrationEventList>> {\n const query = new URLSearchParams();\n if (filters.product) query.set('product', filters.product);\n if (filters.since) query.set('since', filters.since);\n if (filters.limit !== undefined) query.set('limit', String(filters.limit));\n const encoded = query.toString();\n const suffix = encoded ? `?${encoded}` : '';\n return call(host, accessToken, TeamIntegrationEventListSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/events${suffix}`,\n source: target.source,\n });\n}\n\nfunction membersPath(team: string): string {\n return `/api/partner/teams/${encodeURIComponent(team)}/members`;\n}\n\nfunction integrationPath(target: { team: string; product: string }): string {\n return `/api/partner/teams/${encodeURIComponent(target.team)}/integrations/${encodeURIComponent(target.product)}`;\n}\n\ntype CallInit = {\n method: 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE';\n path: string;\n source: string;\n body?: unknown;\n};\n\n/**\n * One partner teams call; shared by the team-agent clients\n * (`team-agents-api.ts`). A refusal's hint names its commands with the team\n * and product this call was about, read from the path, rather than\n * `<team>` and `<product>`, so an agent can run the hint as it stands.\n */\nexport async function call<T>(\n host: string,\n accessToken: string,\n schema: z.ZodType<T>,\n init: CallInit,\n): Promise<TeamsApiResult<T>> {\n try {\n return await callUnfilled(host, accessToken, schema, init);\n } catch (error) {\n if (!(error instanceof CliError)) throw error;\n const hint = fillHintPlaceholders(error.hint, init.path);\n if (hint === error.hint) throw error;\n throw new CliError({\n code: error.code,\n exitCode: error.exitCode,\n message: error.message,\n hint,\n docs: error.docs,\n });\n }\n}\n\n/** `<team>` and `<product>` in a hint, from a `/api/partner/teams/<team>[/integrations/<product>]` path. */\nexport function fillHintPlaceholders(hint: string, path: string): string {\n const match =\n /^\\/api\\/partner\\/teams\\/([^/?]+)(?:\\/integrations\\/([^/?]+))?/.exec(path);\n if (!match) return hint;\n const team = decodeURIComponent(match[1]!);\n const product = match[2] ? decodeURIComponent(match[2]) : null;\n let filled = hint.replaceAll('<team>', team);\n if (product) filled = filled.replaceAll('<product>', product);\n return filled;\n}\n\nasync function callUnfilled<T>(\n host: string,\n accessToken: string,\n schema: z.ZodType<T>,\n init: CallInit,\n): Promise<TeamsApiResult<T>> {\n const response = await request(\n `${host}${init.path}${init.path.includes('?') ? '&' : '?'}${new URLSearchParams({ source: init.source })}`,\n {\n method: init.method,\n headers: {\n accept: 'application/json',\n authorization: `Bearer ${accessToken}`,\n ...(init.body === undefined\n ? {}\n : { 'content-type': 'application/json' }),\n },\n body: init.body === undefined ? undefined : JSON.stringify(init.body),\n },\n );\n\n if (\n response.status === 401 ||\n (response.status >= 300 && response.status < 400)\n ) {\n return { status: 'unauthorized' };\n }\n\n const body = await readOptionalJson(response);\n const code = typeof body.code === 'string' ? body.code : null;\n const message =\n typeof body.error === 'string' && body.error ? body.error : null;\n\n if (response.status === 403 && code === 'MFA_REQUIRED') {\n throw authRequiredError(\n message ?? `${host} requires multi-factor authentication.`,\n 'Complete MFA in the browser, then run \"ekanos login\" again.',\n );\n }\n if (response.status === 403) {\n throw forbiddenError(\n message ?? 'Not permitted on this Source.',\n code === 'SOURCE_ADMIN_REQUIRED'\n ? \"Only a Source admin manages its teams' integrations. Ask one to run it.\"\n : code === 'CONFIRM_NOT_PERMITTED'\n ? \"Only a Source admin of the team's Source, or someone who manages the team's agents, confirms what an agent may use.\"\n : code === 'PERSONAL_AGENT_CREATOR_ONLY'\n ? 'A personal agent acts with its creator\\'s own connections, so only they change it, run it, decide its approvals or cancel its runs. \"ekanos teams agents list <team>\" shows whose each agent is.'\n : code === 'NOT_A_TEAM_MEMBER'\n ? 'Add yourself to the team first (\"ekanos teams members add <team> --self\"), then run this again.'\n : code === 'AGENTS_MANAGE_REQUIRED'\n ? 'Take a role on the team that holds agents.manage (\"ekanos teams roles list <team>\"), or make it your own agent with --personal.'\n : code === 'PERSONAL_AGENT_CHANNEL_TRIGGER'\n ? 'Add a schedule or a webhook trigger instead: \"ekanos teams triggers add <team> <key> schedule|webhook --prompt ...\".'\n : 'Run \"ekanos sources\" to list the sources you hold a seat on.',\n );\n }\n if (response.status === 404) {\n throw notFoundError(\n message ?? 'Not found.',\n (code ? LIFECYCLE_HINTS[code] : undefined) ??\n (code === 'TEAM_NOT_FOUND'\n ? 'Run \"ekanos teams list\" to see the teams on this Source.'\n : code === 'PRODUCT_NOT_ENTITLED'\n ? '\"ekanos sources products\" shows what this Source has. A Source admin enables an integration the Source built or a global release with \"ekanos sources products enable <product>\"; Ekanos enables anything else.'\n : code === 'SCOPE_NOT_FOUND' || code === 'PRODUCT_NOT_IN_SCOPE'\n ? 'Run \"ekanos sources scopes\" to see the Source\\'s product scopes and their products.'\n : code === 'WEBHOOK_NOT_FOUND' || code === 'CONNECTION_NOT_FOUND'\n ? 'Run \"ekanos teams show <team> <product>\" to see its team apps and webhooks.'\n : code === 'MEMBER_NOT_FOUND'\n ? 'Run \"ekanos teams members list <team>\" to see its members and invitations.'\n : code === 'NOT_A_SOURCE_USER'\n ? 'Invite them instead, by email: \"ekanos teams members invite <team> <email> --role <role>\".'\n : code === 'SKILL_NOT_FOUND'\n ? 'Run \"ekanos skills list --team <team>\" (and \"ekanos skills list\") to see the skills this team can use.'\n : code?.startsWith('AGENT_') ||\n code === 'TEMPLATE_NOT_FOUND'\n ? 'Run \"ekanos teams agents list <team>\" to see the team\\'s agents.'\n : /^(TRIGGER|LINK|MCP)_/.test(code ?? '')\n ? 'List them first: \"ekanos teams triggers|links|mcp list <team> ...\"'\n : 'Run \"ekanos sources\" to list the sources you hold a seat on.'),\n );\n }\n if (response.status === 409 && code === 'NO_TEAM_APP') {\n throw invalidStateError(\n message ?? 'This integration takes no team app.',\n 'Teams connect through the Source\\'s app: \"ekanos apps show <product>\".',\n );\n }\n if (response.status === 409 || response.status === 422) {\n throw invalidStateError(\n message ?? 'The host refused the change.',\n (code ? LIFECYCLE_HINTS[code] : undefined) ??\n (code === 'AUDIENCE_SET_ON_TEAM'\n ? 'Set the team’s instead: \"ekanos teams audience <team> <audience>\". A person’s groups narrow it.'\n : code === 'SLUG_TAKEN'\n ? 'Pick another with --slug, or run \"ekanos teams list\" to see the teams.'\n : code === 'AGENT_VERSION_CHANGED'\n ? 'A newer version was published since it was shown to you. Review it with \"ekanos teams agents show <team> <key>\", then run \"ekanos teams agents confirm\" again.'\n : code === 'ROLE_NEEDS_ACCEPTANCE'\n ? 'Add them with a lower role (--role admin), or invite them to the top role so they accept it: \"ekanos teams members invite <team> <email> --role owner\".'\n : code === 'AGENT_VERSION_CONFLICT'\n ? `Review it with \"ekanos teams agents show <team> <key>\", then apply with --base-version ${typeof body.latestVersion === 'number' ? body.latestVersion : '<its version>'} (or --overwrite to replace it anyway).`\n : code === 'ALREADY_MEMBER' || code === 'ALREADY_INVITED'\n ? 'Run \"ekanos teams members list <team>\"; change a role with \"ekanos teams members role <team> <email> <role>\".'\n : code === 'PRIMARY_OWNER'\n ? \"The primary owner's ownership is transferred in the app (team Settings → Members).\"\n : code === 'TEAM_ACCOUNTS_DISABLED'\n ? 'Team accounts are a Source setting only an Ekanos super admin switches on; ask Ekanos, naming the Source.'\n : code === 'PERSONAL_CONNECTION'\n ? 'Each member disconnects their own: \"ekanos teams disconnect <team> <product> --mine\".'\n : code === 'MCP_SERVER_FROM_TEMPLATE'\n ? 'It stays while the agent template declares it: change the template, apply and publish.'\n : code === 'PRODUCT_NOT_ENTITLED'\n ? '\"ekanos sources products\" shows what this Source has; only those can be in its scopes.'\n : code === 'TEMPLATE_ARCHIVED'\n ? 'Unarchive it first: \"ekanos agents unarchive <key>\".'\n : 'See \"ekanos teams --help\".'),\n );\n }\n if (response.status === 400 && code === 'INVALID_AGENT') {\n const issues = Array.isArray(body.issues)\n ? body.issues.flatMap((issue: unknown) =>\n typeof issue === 'object' &&\n issue !== null &&\n typeof (issue as { message?: unknown }).message === 'string'\n ? [\n ` ${String((issue as { path?: unknown }).path ?? '(root)')}: ${(issue as { message: string }).message}`,\n ]\n : [],\n )\n : [];\n throw validationError(\n [message ?? 'The agent is not valid.', ...issues].join('\\n'),\n 'Fix agent.json and run it again.',\n );\n }\n if (response.status === 400 && code === 'UNKNOWN_ROLE') {\n throw validationError(\n message ?? 'No such role.',\n 'Run \"ekanos teams roles list <team>\" for the roles this Source uses.',\n );\n }\n if (response.status === 400 && code === 'INVALID_FIELDS') {\n throw validationError(\n message ?? 'The host refused the fields.',\n 'Run \"ekanos teams app set <team> <product>\" again.',\n );\n }\n if (response.status === 400 && code === 'SECRET_AS_ARGUMENT') {\n throw usageError(\n message ?? 'A secret was passed as an argument.',\n 'Leave that field out of --set: pass it with --set-secret <field>=env:<NAME>|file:<path>|stdin or --browser, or run the command at your terminal, which asks for it hidden.',\n );\n }\n if (response.status === 400) {\n throw usageError(\n message ?? 'The host refused the request.',\n 'See \"ekanos teams --help\".',\n );\n }\n if (response.status >= 500 && code && message) {\n throw networkError(message, 'The host could not finish it; retry shortly.');\n }\n if (!response.ok) {\n throw networkError(\n `${host}${init.path} responded ${response.status}.`,\n response.status >= 500\n ? 'The Ekanos deployment returned a server error. Retry shortly.'\n : 'Confirm the host runs a build that includes the teams routes.',\n );\n }\n\n const parsed = schema.safeParse(body.data);\n if (!parsed.success) {\n throw networkError(\n `${host}/api/partner/teams answered in a shape this CLI does not read.`,\n 'Run \"ekanos upgrade\" — the CLI and the host disagree on the teams contract.',\n );\n }\n return { status: 'ok', data: parsed.data };\n}\n\n/** Next steps for the refusals of the team lifecycle, roles and groups calls. */\nconst LIFECYCLE_HINTS: Record<string, string> = {\n TEMPLATE_NOT_PUBLISHED:\n 'Publish the template first (\"ekanos agents publish <key>\", a Source admin), or try the draft on this team with --draft.',\n AGENT_NOT_READY:\n 'Add instructions to its agent.json, then \"ekanos teams agents apply <team> <dir>\".',\n AGENT_ALREADY_ON:\n 'Run \"ekanos teams agents list <team>\": a team has one live agent per template, so archive the other first.',\n AGENT_ARCHIVED:\n 'An archived agent keeps its key: pick another key, or run \"ekanos teams agents list <team>\".',\n AGENT_PROVIDED:\n 'A Source agent template provides it: change the template (\"ekanos agents apply <dir>\", then \"ekanos agents publish <key>\"), or pick another key.',\n AGENT_NOT_PROVIDED:\n 'A team or personal agent runs as its creator and has no versions: drop --as, --draft and --version, or run \"ekanos teams agents show <team> <key>\".',\n AGENT_OWNERSHIP_FIXED:\n 'Whether an agent is the team’s or personal is set when it is created: create a new agent with another key instead.',\n AGENT_CREATOR_GONE:\n 'The person it runs as left the team: create a new agent instead (\"ekanos teams agents apply <team> <dir>\" with another key).',\n AGENT_CHANGED:\n 'It changed while you worked: review it with \"ekanos teams agents show <team> <key>\", then run the command again.',\n AGENT_VERSION_NOT_FOUND:\n 'Run \"ekanos agents show <key>\" to see its published versions.',\n AGENT_SKILLS_TEMPLATE_OWNED:\n 'Set teamCustomization.skills to true in the template\\'s agent.json, then \"ekanos agents apply <dir>\" and \"ekanos agents publish <key>\".',\n AGENT_MCP_TEMPLATE_OWNED:\n 'Set teamCustomization.mcpServers to true in the template\\'s agent.json, then \"ekanos agents apply <dir>\" and \"ekanos agents publish <key>\".',\n AGENT_POLICY_TEMPLATE_OWNED:\n 'Its tool policy follows the template: change it there, or allow team overrides with \"ekanos agents overrides <key> enable policy\".',\n AGENT_AREA_TEMPLATE_OWNED:\n 'That part follows the template: change it there, or allow team overrides with \"ekanos agents overrides <key> enable policy|triggers|links\".',\n GROUP_NOT_FOUND:\n 'Run \"ekanos teams groups list <team>\" to see its groups (name one by name or id).',\n GROUP_AMBIGUOUS:\n 'Run \"ekanos teams groups list <team> --json\" and name the group by its id.',\n GROUP_EXISTS:\n 'Pick another name, or change that group: \"ekanos teams groups update <team> <group> …\".',\n GROUP_IMPLICIT:\n 'Everyone holds each member in no other group, so it is not edited and has no members to add or remove: add them to another group instead (\"ekanos teams groups list <team>\").',\n GROUP_PREDEFINED:\n 'A predefined group belongs to the team’s business type and is removed with the Source’s audiences, not from one team. Change its products or members here, or delete a team group instead.',\n PRODUCT_NOT_IN_BUSINESS_TYPE:\n 'A group picks only within the team’s audience: \"ekanos teams audience <team>\" names it, \"ekanos audiences show <audience>\" lists its products, and \"ekanos audiences set <audience> --products …\" adds one.',\n ROLE_NOT_FOUND: 'Run \"ekanos sources roles list\" to see the Source\\'s roles.',\n ROLE_EXISTS:\n 'Change it instead: \"ekanos sources roles update <role> …\", or pick another name.',\n SYSTEM_ROLE:\n 'Owner, admin and member are fixed; create a custom role with \"ekanos sources roles create <name> …\".',\n ROLE_IN_USE:\n 'Give its members another role first: \"ekanos teams members role <team> <email> <role>\"; \"ekanos sources people\" shows who holds what.',\n WORKSPACE_NOT_FOUND:\n 'Run \"ekanos teams workspace list <team>\" to see its workspaces.',\n WORKSPACES_DISABLED:\n 'Workspaces are a Source Flag (enable_workspaces) only a super-admin switches.',\n NOT_A_MEMBER:\n 'Run \"ekanos teams members list <team>\" to see who is on it; you leave only a team you are a member of.',\n NOT_CONNECTED:\n 'Connect it first: \"ekanos teams connect <team> <product>\"; \"ekanos teams health <team>\" lists what it has.',\n USER_SCOPED:\n 'Each person connects it for themselves and checks it on their own Integrations → Health page.',\n NO_HEALTH_CHECK:\n 'The product has no package on this deployment; \"ekanos sources products\" shows what is registered.',\n PRODUCT_NOT_VISIBLE_TO_TEAM:\n 'Run \"ekanos teams audience <team>\" for the team’s audience, and \"ekanos audiences show <audience>\" for the products it shows.',\n};\n\nasync function readOptionalJson(\n response: Response,\n): Promise<Record<string, unknown>> {\n try {\n const parsed: unknown = await response.json();\n return typeof parsed === 'object' && parsed !== null\n ? (parsed as Record<string, unknown>)\n : {};\n } catch {\n return {};\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"teams-api.js","sourceRoot":"","sources":["../src/teams-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,0BAA0B,EAE1B,sBAAsB,EAGtB,oBAAoB,EAEpB,6BAA6B,EAE7B,kBAAkB,EAElB,2BAA2B,EAE3B,sBAAsB,EAEtB,+BAA+B,EAE/B,gBAAgB,EAEhB,yBAAyB,EAEzB,sBAAsB,EAGtB,sBAAsB,EAEtB,0BAA0B,EAE1B,4BAA4B,EAE5B,yBAAyB,EAEzB,4BAA4B,EAE5B,oBAAoB,EAEpB,sBAAsB,EAEtB,eAAe,EAEf,2BAA2B,EAE3B,8BAA8B,EAE9B,cAAc,EAEd,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,eAAe,GAChB,MAAM,UAAU,CAAC;AAMlB,MAAM,UAAU,SAAS,CACvB,IAAY,EACZ,WAAmB,EACnB,MAAc;IAEd,OAAO,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE;QAC7C,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AA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AAK,UAAU,gBAAgB,CAC7B,QAAkB;IAElB,IAAI,CAAC;QACH,MAAM,MAAM,GAAY,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI;YAClD,CAAC,CAAE,MAAkC;YACrC,CAAC,CAAC,EAAE,CAAC;IACT,CAAC;eAAO,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC","sourcesContent":["import {\n type AudienceCreateRequest,\n type AudienceListResponse,\n AudienceListResponseSchema,\n type AudienceResponse,\n AudienceResponseSchema,\n type AudienceUpdateRequest,\n type MemberAudience,\n MemberAudienceSchema,\n type MemberAudienceSetResult,\n MemberAudienceSetResultSchema,\n type TeamAudience,\n TeamAudienceSchema,\n type TeamAudienceSetResult,\n TeamAudienceSetResultSchema,\n type ProductScopeList,\n ProductScopeListSchema,\n type ProductScopeProductChange,\n ProductScopeProductChangeSchema,\n type TeamScopes,\n TeamScopesSchema,\n type TeamScopesSetResult,\n TeamScopesSetResultSchema,\n type TeamAppSetResult,\n TeamAppSetResultSchema,\n type TeamCreateRequest,\n type TeamCreateResult,\n TeamCreateResultSchema,\n type TeamDisconnectResult,\n TeamDisconnectResultSchema,\n type TeamMemberChangeResult,\n TeamMemberChangeResultSchema,\n type TeamMemberAddResult,\n TeamMemberAddResultSchema,\n type TeamMemberInviteResult,\n TeamMemberInviteResultSchema,\n type TeamMemberList,\n TeamMemberListSchema,\n type TeamRenameResult,\n TeamRenameResultSchema,\n type TeamRoles,\n TeamRolesSchema,\n type TeamIntegrationStatus,\n TeamIntegrationStatusSchema,\n type TeamIntegrationEventList,\n TeamIntegrationEventListSchema,\n type TeamList,\n TeamListSchema,\n type TeamWebhookMintResult,\n TeamWebhookMintResultSchema,\n} from '@ekanos/integration-schema';\nimport type { z } from 'zod';\n\nimport { request } from './auth/ekanos-api';\nimport {\n authRequiredError,\n CliError,\n forbiddenError,\n invalidStateError,\n networkError,\n notFoundError,\n usageError,\n validationError,\n} from './errors';\n\nexport type TeamsApiResult<T> =\n | { status: 'ok'; data: T }\n | { status: 'unauthorized' };\n\nexport function listTeams(\n host: string,\n accessToken: string,\n source: string,\n): Promise<TeamsApiResult<TeamList>> {\n return call(host, accessToken, TeamListSchema, {\n method: 'GET',\n path: '/api/partner/teams',\n source,\n });\n}\n\nexport function showTeamIntegration(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string },\n): Promise<TeamsApiResult<TeamIntegrationStatus>> {\n return call(host, accessToken, TeamIntegrationStatusSchema, {\n method: 'GET',\n path: integrationPath(target),\n source: target.source,\n });\n}\n\nexport function setTeamApp(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string },\n body: {\n connectionId?: string;\n fields: Record<string, string>;\n clear?: string[];\n },\n): Promise<TeamsApiResult<TeamAppSetResult>> {\n return call(host, accessToken, TeamAppSetResultSchema, {\n method: 'PUT',\n path: `${integrationPath(target)}/app`,\n source: target.source,\n body,\n });\n}\n\nexport function mintTeamWebhook(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string },\n webhookId: string,\n): Promise<TeamsApiResult<TeamWebhookMintResult>> {\n return call(host, accessToken, TeamWebhookMintResultSchema, {\n method: 'POST',\n path: `${integrationPath(target)}/webhooks/${encodeURIComponent(webhookId)}`,\n source: target.source,\n });\n}\n\nexport function disconnectTeamIntegration(\n host: string,\n accessToken: string,\n target: { source: string; team: string; product: string; mine?: boolean },\n): Promise<TeamsApiResult<TeamDisconnectResult>> {\n return call(host, accessToken, TeamDisconnectResultSchema, {\n method: 'DELETE',\n path: `${integrationPath(target)}${target.mine ? '/mine' : ''}`,\n source: target.source,\n });\n}\n\nexport function createTeam(\n host: string,\n accessToken: string,\n source: string,\n body: TeamCreateRequest,\n): Promise<TeamsApiResult<TeamCreateResult>> {\n return call(host, accessToken, TeamCreateResultSchema, {\n method: 'POST',\n path: '/api/partner/teams',\n source,\n body,\n });\n}\n\nexport function renameTeam(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n name: string,\n): Promise<TeamsApiResult<TeamRenameResult>> {\n return call(host, accessToken, TeamRenameResultSchema, {\n method: 'PATCH',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}`,\n source: target.source,\n body: { name },\n });\n}\n\nexport function listTeamMembers(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamMemberList>> {\n return call(host, accessToken, TeamMemberListSchema, {\n method: 'GET',\n path: membersPath(target.team),\n source: target.source,\n });\n}\n\nexport function inviteTeamMember(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n body: { email: string; role: string },\n): Promise<TeamsApiResult<TeamMemberInviteResult>> {\n return call(host, accessToken, TeamMemberInviteResultSchema, {\n method: 'POST',\n path: membersPath(target.team),\n source: target.source,\n body,\n });\n}\n\nexport function addTeamMember(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n body: { self: true; role?: string } | { email: string; role?: string },\n): Promise<TeamsApiResult<TeamMemberAddResult>> {\n return call(host, accessToken, TeamMemberAddResultSchema, {\n method: 'PUT',\n path: membersPath(target.team),\n source: target.source,\n body,\n });\n}\n\nexport function setTeamMemberRole(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n role: string,\n): Promise<TeamsApiResult<TeamMemberChangeResult>> {\n return call(host, accessToken, TeamMemberChangeResultSchema, {\n method: 'PATCH',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}`,\n source: target.source,\n body: { role },\n });\n}\n\nexport function removeTeamMember(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n): Promise<TeamsApiResult<TeamMemberChangeResult>> {\n return call(host, accessToken, TeamMemberChangeResultSchema, {\n method: 'DELETE',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}`,\n source: target.source,\n });\n}\n\nexport function listProductScopes(\n host: string,\n accessToken: string,\n source: string,\n): Promise<TeamsApiResult<ProductScopeList>> {\n return call(host, accessToken, ProductScopeListSchema, {\n method: 'GET',\n path: '/api/partner/scopes',\n source,\n });\n}\n\nexport function setScopeProduct(\n host: string,\n accessToken: string,\n target: { source: string; scope: string; product: string },\n included: boolean,\n): Promise<TeamsApiResult<ProductScopeProductChange>> {\n return call(host, accessToken, ProductScopeProductChangeSchema, {\n method: included ? 'PUT' : 'DELETE',\n path: `/api/partner/scopes/${encodeURIComponent(target.scope)}/products/${encodeURIComponent(target.product)}`,\n source: target.source,\n });\n}\n\nexport function showTeamScopes(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamScopes>> {\n return call(host, accessToken, TeamScopesSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/scopes`,\n source: target.source,\n });\n}\n\nexport function setTeamScopes(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n scopes: string[],\n): Promise<TeamsApiResult<TeamScopesSetResult>> {\n return call(host, accessToken, TeamScopesSetResultSchema, {\n method: 'PUT',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/scopes`,\n source: target.source,\n body: { scopes },\n });\n}\n\nexport function listAudiences(\n host: string,\n accessToken: string,\n source: string,\n): Promise<TeamsApiResult<AudienceListResponse>> {\n return call(host, accessToken, AudienceListResponseSchema, {\n method: 'GET',\n path: '/api/partner/audiences',\n source,\n });\n}\n\nexport function showAudience(\n host: string,\n accessToken: string,\n target: { source: string; audience: string },\n): Promise<TeamsApiResult<AudienceResponse>> {\n return call(host, accessToken, AudienceResponseSchema, {\n method: 'GET',\n path: `/api/partner/audiences/${encodeURIComponent(target.audience)}`,\n source: target.source,\n });\n}\n\nexport function createAudience(\n host: string,\n accessToken: string,\n source: string,\n body: AudienceCreateRequest,\n): Promise<TeamsApiResult<AudienceResponse>> {\n return call(host, accessToken, AudienceResponseSchema, {\n method: 'POST',\n path: '/api/partner/audiences',\n source,\n body,\n });\n}\n\nexport function updateAudience(\n host: string,\n accessToken: string,\n target: { source: string; audience: string },\n body: AudienceUpdateRequest,\n): Promise<TeamsApiResult<AudienceResponse>> {\n return call(host, accessToken, AudienceResponseSchema, {\n method: 'PATCH',\n path: `/api/partner/audiences/${encodeURIComponent(target.audience)}`,\n source: target.source,\n body,\n });\n}\n\nexport function showTeamAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamAudience>> {\n return call(host, accessToken, TeamAudienceSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/audience`,\n source: target.source,\n });\n}\n\nexport function setTeamAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n audienceId: string,\n): Promise<TeamsApiResult<TeamAudienceSetResult>> {\n return call(host, accessToken, TeamAudienceSetResultSchema, {\n method: 'PUT',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/audience`,\n source: target.source,\n body: { audienceId },\n });\n}\n\nexport function showMemberAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n): Promise<TeamsApiResult<MemberAudience>> {\n return call(host, accessToken, MemberAudienceSchema, {\n method: 'GET',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}/audience`,\n source: target.source,\n });\n}\n\nexport function setMemberAudience(\n host: string,\n accessToken: string,\n target: { source: string; team: string; email: string },\n audienceId: string | null,\n): Promise<TeamsApiResult<MemberAudienceSetResult>> {\n return call(host, accessToken, MemberAudienceSetResultSchema, {\n method: 'PUT',\n path: `${membersPath(target.team)}/${encodeURIComponent(target.email)}/audience`,\n source: target.source,\n body: { audienceId },\n });\n}\n\nexport function listTeamRoles(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n): Promise<TeamsApiResult<TeamRoles>> {\n return call(host, accessToken, TeamRolesSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/roles`,\n source: target.source,\n });\n}\n\nexport function listTeamEvents(\n host: string,\n accessToken: string,\n target: { source: string; team: string },\n filters: { product?: string; since?: string; limit?: number },\n): Promise<TeamsApiResult<TeamIntegrationEventList>> {\n const query = new URLSearchParams();\n if (filters.product) query.set('product', filters.product);\n if (filters.since) query.set('since', filters.since);\n if (filters.limit !== undefined) query.set('limit', String(filters.limit));\n const encoded = query.toString();\n const suffix = encoded ? `?${encoded}` : '';\n return call(host, accessToken, TeamIntegrationEventListSchema, {\n method: 'GET',\n path: `/api/partner/teams/${encodeURIComponent(target.team)}/events${suffix}`,\n source: target.source,\n });\n}\n\nfunction membersPath(team: string): string {\n return `/api/partner/teams/${encodeURIComponent(team)}/members`;\n}\n\nfunction integrationPath(target: { team: string; product: string }): string {\n return `/api/partner/teams/${encodeURIComponent(target.team)}/integrations/${encodeURIComponent(target.product)}`;\n}\n\ntype CallInit = {\n method: 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE';\n path: string;\n source: string;\n body?: unknown;\n};\n\nexport async function call<T>(\n host: string,\n accessToken: string,\n schema: z.ZodType<T>,\n init: CallInit,\n): Promise<TeamsApiResult<T>> {\n try {\n return await callUnfilled(host, accessToken, schema, init);\n } catch (error) {\n if (!(error instanceof CliError)) throw error;\n const hint = fillHintPlaceholders(error.hint, init.path);\n if (hint === error.hint) throw error;\n throw new CliError({\n code: error.code,\n exitCode: error.exitCode,\n message: error.message,\n hint,\n docs: error.docs,\n });\n }\n}\n\nexport function fillHintPlaceholders(hint: string, path: string): string {\n const match =\n /^\\/api\\/partner\\/teams\\/([^/?]+)(?:\\/integrations\\/([^/?]+))?/.exec(path);\n if (!match) return hint;\n const team = decodeURIComponent(match[1]!);\n const product = match[2] ? decodeURIComponent(match[2]) : null;\n let filled = hint.replaceAll('<team>', team);\n if (product) filled = filled.replaceAll('<product>', product);\n return filled;\n}\n\nasync function callUnfilled<T>(\n host: string,\n accessToken: string,\n schema: z.ZodType<T>,\n init: CallInit,\n): Promise<TeamsApiResult<T>> {\n const response = await request(\n `${host}${init.path}${init.path.includes('?') ? '&' : '?'}${new URLSearchParams({ source: init.source })}`,\n {\n method: init.method,\n headers: {\n accept: 'application/json',\n authorization: `Bearer ${accessToken}`,\n ...(init.body === undefined\n ? {}\n : { 'content-type': 'application/json' }),\n },\n body: init.body === undefined ? undefined : JSON.stringify(init.body),\n },\n );\n\n if (\n response.status === 401 ||\n (response.status >= 300 && response.status < 400)\n ) {\n return { status: 'unauthorized' };\n }\n\n const body = await readOptionalJson(response);\n const code = typeof body.code === 'string' ? body.code : null;\n const message =\n typeof body.error === 'string' && body.error ? body.error : null;\n\n if (response.status === 403 && code === 'MFA_REQUIRED') {\n throw authRequiredError(\n message ?? `${host} requires multi-factor authentication.`,\n 'Complete MFA in the browser, then run \"ekanos login\" again.',\n );\n }\n if (response.status === 403) {\n throw forbiddenError(\n message ?? 'Not permitted on this Source.',\n code === 'SOURCE_ADMIN_REQUIRED'\n ? \"Only a Source admin manages its teams' integrations. Ask one to run it.\"\n : code === 'CONFIRM_NOT_PERMITTED'\n ? \"Only a Source admin of the team's Source, or someone who manages the team's agents, confirms what an agent may use.\"\n : code === 'PERSONAL_AGENT_CREATOR_ONLY'\n ? 'A personal agent acts with its creator\\'s own connections, so only they change it, run it, decide its approvals or cancel its runs. \"ekanos teams agents list <team>\" shows whose each agent is.'\n : code === 'NOT_A_TEAM_MEMBER'\n ? 'Add yourself to the team first (\"ekanos teams members add <team> --self\"), then run this again.'\n : code === 'AGENTS_MANAGE_REQUIRED'\n ? 'Take a role on the team that holds agents.manage (\"ekanos teams roles list <team>\"), or make it your own agent with --personal.'\n : code === 'PERSONAL_AGENT_CHANNEL_TRIGGER'\n ? 'Add a schedule or a webhook trigger instead: \"ekanos teams triggers add <team> <key> schedule|webhook --prompt ...\".'\n : 'Run \"ekanos sources\" to list the sources you hold a seat on.',\n );\n }\n if (response.status === 404) {\n throw notFoundError(\n message ?? 'Not found.',\n (code ? LIFECYCLE_HINTS[code] : undefined) ??\n (code === 'TEAM_NOT_FOUND'\n ? 'Run \"ekanos teams list\" to see the teams on this Source.'\n : code === 'PRODUCT_NOT_ENTITLED'\n ? '\"ekanos sources products\" shows what this Source has. A Source admin enables an integration the Source built or a global release with \"ekanos sources products enable <product>\"; Ekanos enables anything else.'\n : code === 'SCOPE_NOT_FOUND' || code === 'PRODUCT_NOT_IN_SCOPE'\n ? 'Run \"ekanos sources scopes\" to see the Source\\'s product scopes and their products.'\n : code === 'WEBHOOK_NOT_FOUND' || code === 'CONNECTION_NOT_FOUND'\n ? 'Run \"ekanos teams show <team> <product>\" to see its team apps and webhooks.'\n : code === 'MEMBER_NOT_FOUND'\n ? 'Run \"ekanos teams members list <team>\" to see its members and invitations.'\n : code === 'NOT_A_SOURCE_USER'\n ? 'Invite them instead, by email: \"ekanos teams members invite <team> <email> --role <role>\".'\n : code === 'SKILL_NOT_FOUND'\n ? 'Run \"ekanos skills list --team <team>\" (and \"ekanos skills list\") to see the skills this team can use.'\n : code?.startsWith('AGENT_') ||\n code === 'TEMPLATE_NOT_FOUND'\n ? 'Run \"ekanos teams agents list <team>\" to see the team\\'s agents.'\n : /^(TRIGGER|LINK|MCP)_/.test(code ?? '')\n ? 'List them first: \"ekanos teams triggers|links|mcp list <team> ...\"'\n : 'Run \"ekanos sources\" to list the sources you hold a seat on.'),\n );\n }\n if (response.status === 409 && code === 'NO_TEAM_APP') {\n throw invalidStateError(\n message ?? 'This integration takes no team app.',\n 'Teams connect through the Source\\'s app: \"ekanos apps show <product>\".',\n );\n }\n if (response.status === 409 || response.status === 422) {\n throw invalidStateError(\n message ?? 'The host refused the change.',\n (code ? LIFECYCLE_HINTS[code] : undefined) ??\n (code === 'AUDIENCE_SET_ON_TEAM'\n ? 'Set the team’s instead: \"ekanos teams audience <team> <audience>\". A person’s groups narrow it.'\n : code === 'SLUG_TAKEN'\n ? 'Pick another with --slug, or run \"ekanos teams list\" to see the teams.'\n : code === 'AGENT_VERSION_CHANGED'\n ? 'A newer version was published since it was shown to you. Review it with \"ekanos teams agents show <team> <key>\", then run \"ekanos teams agents confirm\" again.'\n : code === 'ROLE_NEEDS_ACCEPTANCE'\n ? 'Add them with a lower role (--role admin), or invite them to the top role so they accept it: \"ekanos teams members invite <team> <email> --role owner\".'\n : code === 'AGENT_VERSION_CONFLICT'\n ? `Review it with \"ekanos teams agents show <team> <key>\", then apply with --base-version ${typeof body.latestVersion === 'number' ? body.latestVersion : '<its version>'} (or --overwrite to replace it anyway).`\n : code === 'ALREADY_MEMBER' || code === 'ALREADY_INVITED'\n ? 'Run \"ekanos teams members list <team>\"; change a role with \"ekanos teams members role <team> <email> <role>\".'\n : code === 'PRIMARY_OWNER'\n ? \"The primary owner's ownership is transferred in the app (team Settings → Members).\"\n : code === 'TEAM_ACCOUNTS_DISABLED'\n ? 'Team accounts are a Source setting only an Ekanos super admin switches on; ask Ekanos, naming the Source.'\n : code === 'PERSONAL_CONNECTION'\n ? 'Each member disconnects their own: \"ekanos teams disconnect <team> <product> --mine\".'\n : code === 'MCP_SERVER_FROM_TEMPLATE'\n ? 'It stays while the agent template declares it: change the template, apply and publish.'\n : code === 'PRODUCT_NOT_ENTITLED'\n ? '\"ekanos sources products\" shows what this Source has; only those can be in its scopes.'\n : code === 'TEMPLATE_ARCHIVED'\n ? 'Unarchive it first: \"ekanos agents unarchive <key>\".'\n : 'See \"ekanos teams --help\".'),\n );\n }\n if (response.status === 400 && code === 'INVALID_AGENT') {\n const issues = Array.isArray(body.issues)\n ? body.issues.flatMap((issue: unknown) =>\n typeof issue === 'object' &&\n issue !== null &&\n typeof (issue as { message?: unknown }).message === 'string'\n ? [\n ` ${String((issue as { path?: unknown }).path ?? '(root)')}: ${(issue as { message: string }).message}`,\n ]\n : [],\n )\n : [];\n throw validationError(\n [message ?? 'The agent is not valid.', ...issues].join('\\n'),\n 'Fix agent.json and run it again.',\n );\n }\n if (response.status === 400 && code === 'UNKNOWN_ROLE') {\n throw validationError(\n message ?? 'No such role.',\n 'Run \"ekanos teams roles list <team>\" for the roles this Source uses.',\n );\n }\n if (response.status === 400 && code === 'INVALID_FIELDS') {\n throw validationError(\n message ?? 'The host refused the fields.',\n 'Run \"ekanos teams app set <team> <product>\" again.',\n );\n }\n if (response.status === 400 && code === 'SECRET_AS_ARGUMENT') {\n throw usageError(\n message ?? 'A secret was passed as an argument.',\n 'Leave that field out of --set: pass it with --set-secret <field>=env:<NAME>|file:<path>|stdin or --browser, or run the command at your terminal, which asks for it hidden.',\n );\n }\n if (response.status === 400) {\n throw usageError(\n message ?? 'The host refused the request.',\n 'See \"ekanos teams --help\".',\n );\n }\n if (response.status >= 500 && code && message) {\n throw networkError(message, 'The host could not finish it; retry shortly.');\n }\n if (!response.ok) {\n throw networkError(\n `${host}${init.path} responded ${response.status}.`,\n response.status >= 500\n ? 'The Ekanos deployment returned a server error. Retry shortly.'\n : 'Confirm the host runs a build that includes the teams routes.',\n );\n }\n\n const parsed = schema.safeParse(body.data);\n if (!parsed.success) {\n throw networkError(\n `${host}/api/partner/teams answered in a shape this CLI does not read.`,\n 'Run \"ekanos upgrade\" — the CLI and the host disagree on the teams contract.',\n );\n }\n return { status: 'ok', data: parsed.data };\n}\n\nconst LIFECYCLE_HINTS: Record<string, string> = {\n TEMPLATE_NOT_PUBLISHED:\n 'Publish the template first (\"ekanos agents publish <key>\", a Source admin), or try the draft on this team with --draft.',\n AGENT_NOT_READY:\n 'Add instructions to its agent.json, then \"ekanos teams agents apply <team> <dir>\".',\n AGENT_ALREADY_ON:\n 'Run \"ekanos teams agents list <team>\": a team has one live agent per template, so archive the other first.',\n AGENT_ARCHIVED:\n 'An archived agent keeps its key: pick another key, or run \"ekanos teams agents list <team>\".',\n AGENT_PROVIDED:\n 'A Source agent template provides it: change the template (\"ekanos agents apply <dir>\", then \"ekanos agents publish <key>\"), or pick another key.',\n AGENT_NOT_PROVIDED:\n 'A team or personal agent runs as its creator and has no versions: drop --as, --draft and --version, or run \"ekanos teams agents show <team> <key>\".',\n AGENT_OWNERSHIP_FIXED:\n 'Whether an agent is the team’s or personal is set when it is created: create a new agent with another key instead.',\n AGENT_CREATOR_GONE:\n 'The person it runs as left the team: create a new agent instead (\"ekanos teams agents apply <team> <dir>\" with another key).',\n AGENT_CHANGED:\n 'It changed while you worked: review it with \"ekanos teams agents show <team> <key>\", then run the command again.',\n AGENT_VERSION_NOT_FOUND:\n 'Run \"ekanos agents show <key>\" to see its published versions.',\n AGENT_SKILLS_TEMPLATE_OWNED:\n 'Set teamCustomization.skills to true in the template\\'s agent.json, then \"ekanos agents apply <dir>\" and \"ekanos agents publish <key>\".',\n AGENT_MCP_TEMPLATE_OWNED:\n 'Set teamCustomization.mcpServers to true in the template\\'s agent.json, then \"ekanos agents apply <dir>\" and \"ekanos agents publish <key>\".',\n AGENT_POLICY_TEMPLATE_OWNED:\n 'Its tool policy follows the template: change it there, or allow team overrides with \"ekanos agents overrides <key> enable policy\".',\n AGENT_AREA_TEMPLATE_OWNED:\n 'That part follows the template: change it there, or allow team overrides with \"ekanos agents overrides <key> enable policy|triggers|links\".',\n GROUP_NOT_FOUND:\n 'Run \"ekanos teams groups list <team>\" to see its groups (name one by name or id).',\n GROUP_AMBIGUOUS:\n 'Run \"ekanos teams groups list <team> --json\" and name the group by its id.',\n GROUP_EXISTS:\n 'Pick another name, or change that group: \"ekanos teams groups update <team> <group> …\".',\n GROUP_IMPLICIT:\n 'Everyone holds each member in no other group, so it is not edited and has no members to add or remove: add them to another group instead (\"ekanos teams groups list <team>\").',\n GROUP_PREDEFINED:\n 'A predefined group belongs to the team’s business type and is removed with the Source’s audiences, not from one team. Change its products or members here, or delete a team group instead.',\n PRODUCT_NOT_IN_BUSINESS_TYPE:\n 'A group picks only within the team’s audience: \"ekanos teams audience <team>\" names it, \"ekanos audiences show <audience>\" lists its products, and \"ekanos audiences set <audience> --products …\" adds one.',\n ROLE_NOT_FOUND: 'Run \"ekanos sources roles list\" to see the Source\\'s roles.',\n ROLE_EXISTS:\n 'Change it instead: \"ekanos sources roles update <role> …\", or pick another name.',\n SYSTEM_ROLE:\n 'Owner, admin and member are fixed; create a custom role with \"ekanos sources roles create <name> …\".',\n ROLE_IN_USE:\n 'Give its members another role first: \"ekanos teams members role <team> <email> <role>\"; \"ekanos sources people\" shows who holds what.',\n WORKSPACE_NOT_FOUND:\n 'Run \"ekanos teams workspace list <team>\" to see its workspaces.',\n WORKSPACES_DISABLED:\n 'Workspaces are a Source Flag (enable_workspaces) only a super-admin switches.',\n NOT_A_MEMBER:\n 'Run \"ekanos teams members list <team>\" to see who is on it; you leave only a team you are a member of.',\n NOT_CONNECTED:\n 'Connect it first: \"ekanos teams connect <team> <product>\"; \"ekanos teams health <team>\" lists what it has.',\n USER_SCOPED:\n 'Each person connects it for themselves and checks their own: \"ekanos teams health <team> <product> --mine [--run]\".',\n TEAM_CONNECTION:\n 'Only the team connects it, so there is no connection of your own: \"ekanos teams health <team> <product>\" shows the team\\'s.',\n NO_HEALTH_CHECK:\n 'The product has no package on this deployment; \"ekanos sources products\" shows what is registered.',\n PRODUCT_NOT_VISIBLE_TO_TEAM:\n 'Run \"ekanos teams audience <team>\" for the team’s audience, and \"ekanos audiences show <audience>\" for the products it shows.',\n};\n\nasync function readOptionalJson(\n response: Response,\n): Promise<Record<string, unknown>> {\n try {\n const parsed: unknown = await response.json();\n return typeof parsed === 'object' && parsed !== null\n ? (parsed as Record<string, unknown>)\n : {};\n } catch {\n return {};\n }\n}\n"]}
|
package/dist/templates.d.ts
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The bundled `templates/` directory, resolved relative to the compiled module
|
|
3
|
-
* so it works from `dist/` and from `src/` alike. `package.json#files` ships
|
|
4
|
-
* `templates` next to `dist`, so the `../..` hop is the same either way.
|
|
5
|
-
*/
|
|
6
1
|
export declare function templatesDir(): string;
|
|
7
|
-
/**
|
|
8
|
-
* The one substitution mechanism the CLI has: `__TOKEN__` placeholders,
|
|
9
|
-
* replaced literally. Deliberately not a template engine — a scaffolded file
|
|
10
|
-
* must be readable as-is in the repo, and every placeholder must be greppable.
|
|
11
|
-
* An unknown `__TOKEN__` left in a template is a bug, so this throws rather
|
|
12
|
-
* than shipping a placeholder into a partner's project.
|
|
13
|
-
*/
|
|
14
2
|
export declare function renderTemplate(source: string, vars: Readonly<Record<string, string>>): string;
|
|
15
|
-
/**
|
|
16
|
-
* The raw, unrendered source of a bundled template. Used for the compatibility
|
|
17
|
-
* fingerprint, which must not vary with the slug it would be rendered for.
|
|
18
|
-
*/
|
|
19
3
|
export declare function readTemplateSource(relativePath: string): string;
|
|
20
|
-
/** Read a bundled template and render it in one step. */
|
|
21
4
|
export declare function readTemplate(relativePath: string, vars: Readonly<Record<string, string>>): string;
|
|
22
|
-
/** "acme-crm" → "Acme Crm". */
|
|
23
5
|
export declare function toDisplayName(slug: string): string;
|
package/dist/templates.js
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import * as fs from 'node:fs';
|
|
2
2
|
import * as path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
|
-
/**
|
|
5
|
-
* The bundled `templates/` directory, resolved relative to the compiled module
|
|
6
|
-
* so it works from `dist/` and from `src/` alike. `package.json#files` ships
|
|
7
|
-
* `templates` next to `dist`, so the `../..` hop is the same either way.
|
|
8
|
-
*/
|
|
9
4
|
export function templatesDir() {
|
|
10
5
|
return fileURLToPath(new URL('../templates', import.meta.url));
|
|
11
6
|
}
|
|
12
|
-
/**
|
|
13
|
-
* The one substitution mechanism the CLI has: `__TOKEN__` placeholders,
|
|
14
|
-
* replaced literally. Deliberately not a template engine — a scaffolded file
|
|
15
|
-
* must be readable as-is in the repo, and every placeholder must be greppable.
|
|
16
|
-
* An unknown `__TOKEN__` left in a template is a bug, so this throws rather
|
|
17
|
-
* than shipping a placeholder into a partner's project.
|
|
18
|
-
*/
|
|
19
7
|
export function renderTemplate(source, vars) {
|
|
20
8
|
let rendered = source;
|
|
21
9
|
for (const [name, value] of Object.entries(vars)) {
|
|
@@ -28,18 +16,12 @@ export function renderTemplate(source, vars) {
|
|
|
28
16
|
}
|
|
29
17
|
return rendered;
|
|
30
18
|
}
|
|
31
|
-
/**
|
|
32
|
-
* The raw, unrendered source of a bundled template. Used for the compatibility
|
|
33
|
-
* fingerprint, which must not vary with the slug it would be rendered for.
|
|
34
|
-
*/
|
|
35
19
|
export function readTemplateSource(relativePath) {
|
|
36
20
|
return fs.readFileSync(path.join(templatesDir(), relativePath), 'utf8');
|
|
37
21
|
}
|
|
38
|
-
/** Read a bundled template and render it in one step. */
|
|
39
22
|
export function readTemplate(relativePath, vars) {
|
|
40
23
|
return renderTemplate(readTemplateSource(relativePath), vars);
|
|
41
24
|
}
|
|
42
|
-
/** "acme-crm" → "Acme Crm". */
|
|
43
25
|
export function toDisplayName(slug) {
|
|
44
26
|
return slug
|
|
45
27
|
.split('-')
|
package/dist/templates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,YAAY;IAC1B,OAAO,aAAa,CAAC,IAAI,GAAG,CAAC,cAAc,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,MAAc,EACd,IAAsC;IAEtC,IAAI,QAAQ,GAAG,MAAM,CAAC;IACtB,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACjD,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,QAAQ,GAAG,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtD,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,yBAAyB,QAAQ,CAAC,CAAC,CAAC,mCAAmC;YACrE,kEAAkE,CACrE,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,YAAoB;IACrD,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,YAAoB,EACpB,IAAsC;IAEtC,OAAO,cAAc,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACpE,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC","sourcesContent":["import * as fs from 'node:fs';\nimport * as path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nexport function templatesDir(): string {\n return fileURLToPath(new URL('../templates', import.meta.url));\n}\n\nexport function renderTemplate(\n source: string,\n vars: Readonly<Record<string, string>>,\n): string {\n let rendered = source;\n for (const [name, value] of Object.entries(vars)) {\n rendered = rendered.split(`__${name}__`).join(value);\n }\n\n const leftover = /__[A-Z][A-Z0-9_]*__/.exec(rendered);\n if (leftover) {\n throw new Error(\n `Template placeholder \"${leftover[0]}\" was not substituted. This is a ` +\n 'bug in @ekanos/cli — the template and its variable set disagree.',\n );\n }\n\n return rendered;\n}\n\nexport function readTemplateSource(relativePath: string): string {\n return fs.readFileSync(path.join(templatesDir(), relativePath), 'utf8');\n}\n\nexport function readTemplate(\n relativePath: string,\n vars: Readonly<Record<string, string>>,\n): string {\n return renderTemplate(readTemplateSource(relativePath), vars);\n}\n\nexport function toDisplayName(slug: string): string {\n return slug\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join(' ');\n}\n"]}
|
package/dist/test-report.d.ts
CHANGED
|
@@ -1,32 +1,16 @@
|
|
|
1
1
|
import type { RenderableFinding } from './findings-renderer.js';
|
|
2
|
-
|
|
2
|
+
interface TestSummary {
|
|
3
3
|
passed: number;
|
|
4
4
|
failed: number;
|
|
5
5
|
files: number;
|
|
6
6
|
}
|
|
7
7
|
export interface ParsedTestReport {
|
|
8
|
-
/** One finding per failing test, grouped (via `check`) per test FILE. */
|
|
9
8
|
findings: RenderableFinding[];
|
|
10
|
-
/** Relative paths of files with at least one failure, first-seen order. */
|
|
11
9
|
failingFiles: string[];
|
|
12
10
|
summary: TestSummary | null;
|
|
13
11
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Whether the project's OWN `test` script names vitest — the one signal
|
|
16
|
-
* used to decide whether to inject the JSON reporter at all. Deliberately
|
|
17
|
-
* conservative: a jest project, a custom node runner, or a shell wrapper is
|
|
18
|
-
* left completely alone, with no reporter flags appended and no report
|
|
19
|
-
* parsed — `ekanos test` behaves exactly as it did before this feature.
|
|
20
|
-
*/
|
|
21
12
|
export declare function projectTestScriptUsesVitest(projectDir: string): boolean;
|
|
22
|
-
/** A fresh, unique path for the JSON report — one per invocation. The caller owns cleanup. */
|
|
23
13
|
export declare function newReportPath(): string;
|
|
24
|
-
/** The extra argv that makes vitest ALSO emit a JSON report alongside its normal terminal output. */
|
|
25
14
|
export declare function reporterArgs(outputFilePath: string): string[];
|
|
26
|
-
/**
|
|
27
|
-
* Reads and parses `reportPath` end to end. `null` on ANY failure (missing
|
|
28
|
-
* file — vitest crashed before writing it; malformed JSON; a shape this
|
|
29
|
-
* function doesn't recognize) so the caller falls back to the raw runner
|
|
30
|
-
* output instead of the curated appendix, and never to a crash.
|
|
31
|
-
*/
|
|
32
15
|
export declare function parseTestReport(reportPath: string, projectDir: string): ParsedTestReport | null;
|
|
16
|
+
export {};
|
package/dist/test-report.js
CHANGED
|
@@ -2,35 +2,10 @@ import * as crypto from 'node:crypto';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import * as os from 'node:os';
|
|
4
4
|
import * as path from 'node:path';
|
|
5
|
-
/**
|
|
6
|
-
* Parses vitest's `--reporter=json` output into the curated-failures
|
|
7
|
-
* appendix `ekanos test` renders locally, giving a partner the same
|
|
8
|
-
* per-test intelligence the server-side gate already has.
|
|
9
|
-
*
|
|
10
|
-
* This is a DELIBERATE, small duplication of the parsing the host's own
|
|
11
|
-
* gate uses to grade a submission's test run — not an import. `@ekanos/
|
|
12
|
-
* checks` is never published and never a dependency of a partner's project
|
|
13
|
-
* or of this CLI; keep the two in sync by eye if vitest's JSON reporter
|
|
14
|
-
* shape ever changes.
|
|
15
|
-
*
|
|
16
|
-
* Every entry point here is defensive end to end: a missing report file,
|
|
17
|
-
* malformed JSON, or an unrecognized shape all resolve to `null` rather than
|
|
18
|
-
* throwing. A partner's toolchain misbehaving must never crash `ekanos
|
|
19
|
-
* test` — it can only mean the curated appendix is unavailable, with the
|
|
20
|
-
* command falling back to exactly today's raw-passthrough behavior.
|
|
21
|
-
*/
|
|
22
|
-
/** Cap on assertion-diff lines shown per finding — see `extractDiff`. */
|
|
23
5
|
const MAX_DIFF_LINES = 10;
|
|
24
6
|
function isRecord(value) {
|
|
25
7
|
return typeof value === 'object' && value !== null;
|
|
26
8
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Whether the project's OWN `test` script names vitest — the one signal
|
|
29
|
-
* used to decide whether to inject the JSON reporter at all. Deliberately
|
|
30
|
-
* conservative: a jest project, a custom node runner, or a shell wrapper is
|
|
31
|
-
* left completely alone, with no reporter flags appended and no report
|
|
32
|
-
* parsed — `ekanos test` behaves exactly as it did before this feature.
|
|
33
|
-
*/
|
|
34
9
|
export function projectTestScriptUsesVitest(projectDir) {
|
|
35
10
|
const manifestPath = path.join(projectDir, 'package.json');
|
|
36
11
|
try {
|
|
@@ -44,11 +19,9 @@ export function projectTestScriptUsesVitest(projectDir) {
|
|
|
44
19
|
return false;
|
|
45
20
|
}
|
|
46
21
|
}
|
|
47
|
-
/** A fresh, unique path for the JSON report — one per invocation. The caller owns cleanup. */
|
|
48
22
|
export function newReportPath() {
|
|
49
23
|
return path.join(os.tmpdir(), `ekanos-test-vitest-${crypto.randomUUID()}.json`);
|
|
50
24
|
}
|
|
51
|
-
/** The extra argv that makes vitest ALSO emit a JSON report alongside its normal terminal output. */
|
|
52
25
|
export function reporterArgs(outputFilePath) {
|
|
53
26
|
return [
|
|
54
27
|
'--reporter=default',
|
|
@@ -56,8 +29,6 @@ export function reporterArgs(outputFilePath) {
|
|
|
56
29
|
`--outputFile=${outputFilePath}`,
|
|
57
30
|
];
|
|
58
31
|
}
|
|
59
|
-
/** The first non-empty line of a vitest failure message/stack — the
|
|
60
|
-
* assertion or thrown error itself, not the frames beneath it. */
|
|
61
32
|
function firstMeaningfulLine(text) {
|
|
62
33
|
const line = text
|
|
63
34
|
.split('\n')
|
|
@@ -65,41 +36,11 @@ function firstMeaningfulLine(text) {
|
|
|
65
36
|
.find((entry) => entry.length > 0);
|
|
66
37
|
return line !== null && line !== void 0 ? line : 'Test failed with no error message.';
|
|
67
38
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Vitest's failure stacks always include the absolute test file path at
|
|
70
|
-
* least once — at the failure site itself — with the frames beneath it
|
|
71
|
-
* being the runner's own internals. The FIRST occurrence is the line that
|
|
72
|
-
* matters.
|
|
73
|
-
*/
|
|
74
39
|
function lineForFile(stack, absoluteFile) {
|
|
75
40
|
const escaped = absoluteFile.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
76
41
|
const match = new RegExp(`${escaped}:(\\d+):\\d+`).exec(stack);
|
|
77
42
|
return match ? Number(match[1]) : undefined;
|
|
78
43
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Up to `MAX_DIFF_LINES` lines of an expected/received diff block from one
|
|
81
|
-
* vitest failure message, or `null` when the message doesn't carry one.
|
|
82
|
-
*
|
|
83
|
-
* NOTE (found via manual end-to-end verification, not a hypothetical):
|
|
84
|
-
* vitest's OWN `toBe`/`toEqual`-family matchers never put this in the JSON
|
|
85
|
-
* reporter's `failureMessages` — the pretty "- Expected / + Received" block
|
|
86
|
-
* is a terminal-only rendering vitest's default reporter computes live from
|
|
87
|
-
* the error's `expected`/`actual`, and is never serialized into the report
|
|
88
|
-
* (checked vitest 3.2.7 and 4.1.10; `message`/`stack` is all that ships).
|
|
89
|
-
* This function still earns its place: a thrown `AssertionError` whose
|
|
90
|
-
* `.message` already embeds diff-formatted text — a custom matcher, a
|
|
91
|
-
* different assertion library layered on top of vitest, a hand-built
|
|
92
|
-
* `expect.extend` — DOES carry it verbatim in `failureMessages`, and this is
|
|
93
|
-
* what picks it up. It is intentionally a no-op for the common case rather
|
|
94
|
-
* than reconstructing a diff ourselves (a real diff needs the actual/expected
|
|
95
|
-
* values, which the JSON reporter doesn't expose, and computing one would
|
|
96
|
-
* mean a new dependency, and this package deliberately keeps its runtime
|
|
97
|
-
* dependency set to picocolors + @clack/prompts only).
|
|
98
|
-
*
|
|
99
|
-
* The diff sits between the failure's own title line and the stack frames
|
|
100
|
-
* (`at ...`) beneath it; within that span, only unified-diff-style `-`/`+`
|
|
101
|
-
* lines are kept — the jest-diff format such a message would use.
|
|
102
|
-
*/
|
|
103
44
|
function extractDiff(failureMessage) {
|
|
104
45
|
const lines = failureMessage
|
|
105
46
|
.split('\n')
|
|
@@ -118,10 +59,6 @@ function extractDiff(failureMessage) {
|
|
|
118
59
|
}
|
|
119
60
|
return capped.join('\n');
|
|
120
61
|
}
|
|
121
|
-
/** `path.relative` against the project root, falling back to the raw
|
|
122
|
-
* absolute path if the two disagree on realpath-vs-given-path (a symlinked
|
|
123
|
-
* temp dir resolving differently between this process and the child)
|
|
124
|
-
* rather than emitting a `../../../`-laden mess. */
|
|
125
62
|
function archiveRelative(projectDir, absoluteFile) {
|
|
126
63
|
const direct = path.relative(projectDir, absoluteFile);
|
|
127
64
|
if (!direct.startsWith('..'))
|
|
@@ -132,20 +69,9 @@ function archiveRelative(projectDir, absoluteFile) {
|
|
|
132
69
|
if (!viaRealpath.startsWith('..'))
|
|
133
70
|
return viaRealpath;
|
|
134
71
|
}
|
|
135
|
-
catch (_a) {
|
|
136
|
-
// realpathSync failing (e.g. the directory was already torn down) just
|
|
137
|
-
// means we fall through to the direct (if imperfect) relative path.
|
|
138
|
-
}
|
|
72
|
+
catch (_a) { }
|
|
139
73
|
return direct;
|
|
140
74
|
}
|
|
141
|
-
/**
|
|
142
|
-
* Turns a parsed `--reporter=json` report into one `ParsedFailure` per
|
|
143
|
-
* failed test, across every test file in the run. Returns `null` — not
|
|
144
|
-
* `[]` — for anything that isn't recognizably a vitest JSON report at all,
|
|
145
|
-
* so the caller can tell "a real report with zero structured failures"
|
|
146
|
-
* apart from "not a report" (the latter falls back to the raw runner
|
|
147
|
-
* output; the former is a genuinely clean, if unexpected, run).
|
|
148
|
-
*/
|
|
149
75
|
function extractFailures(report) {
|
|
150
76
|
var _a;
|
|
151
77
|
if (!isRecord(report) || !Array.isArray(report.testResults))
|
|
@@ -188,7 +114,6 @@ function extractFailures(report) {
|
|
|
188
114
|
}
|
|
189
115
|
return failures;
|
|
190
116
|
}
|
|
191
|
-
/** `null` unless the report carries vitest's own aggregate pass/fail counts. */
|
|
192
117
|
function extractSummary(report) {
|
|
193
118
|
if (!isRecord(report) || !Array.isArray(report.testResults))
|
|
194
119
|
return null;
|
|
@@ -198,12 +123,6 @@ function extractSummary(report) {
|
|
|
198
123
|
return null;
|
|
199
124
|
return { passed, failed, files: report.testResults.length };
|
|
200
125
|
}
|
|
201
|
-
/**
|
|
202
|
-
* Reads and parses `reportPath` end to end. `null` on ANY failure (missing
|
|
203
|
-
* file — vitest crashed before writing it; malformed JSON; a shape this
|
|
204
|
-
* function doesn't recognize) so the caller falls back to the raw runner
|
|
205
|
-
* output instead of the curated appendix, and never to a crash.
|
|
206
|
-
*/
|
|
207
126
|
export function parseTestReport(reportPath, projectDir) {
|
|
208
127
|
let raw;
|
|
209
128
|
try {
|
|
@@ -235,9 +154,6 @@ export function parseTestReport(reportPath, projectDir) {
|
|
|
235
154
|
? `${failure.suite} > ${failure.title}`
|
|
236
155
|
: failure.title;
|
|
237
156
|
const finding = {
|
|
238
|
-
// Grouping by test FILE (not by suite/title) is deliberate — the
|
|
239
|
-
// shared renderer groups by `check`, so this makes the group header
|
|
240
|
-
// show the file once with every failing test beneath it.
|
|
241
157
|
check: `tests/${relFile}`,
|
|
242
158
|
severity: 'error',
|
|
243
159
|
file: relFile,
|
package/dist/test-report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-report.js","sourceRoot":"","sources":["../src/test-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC;;;;;;;;;;;;;;;;GAgBG;AAEH,yEAAyE;AACzE,MAAM,cAAc,GAAG,EAAE,CAAC;AA0B1B,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CAAC,UAAkB;IAC5D,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,C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'node:os';\nimport * as path from 'node:path';\n\nimport type { RenderableFinding } from './findings-renderer';\n\n/**\n * Parses vitest's `--reporter=json` output into the curated-failures\n * appendix `ekanos test` renders locally, giving a partner the same\n * per-test intelligence the server-side gate already has.\n *\n * This is a DELIBERATE, small duplication of the parsing the host's own\n * gate uses to grade a submission's test run — not an import. `@ekanos/\n * checks` is never published and never a dependency of a partner's project\n * or of this CLI; keep the two in sync by eye if vitest's JSON reporter\n * shape ever changes.\n *\n * Every entry point here is defensive end to end: a missing report file,\n * malformed JSON, or an unrecognized shape all resolve to `null` rather than\n * throwing. A partner's toolchain misbehaving must never crash `ekanos\n * test` — it can only mean the curated appendix is unavailable, with the\n * command falling back to exactly today's raw-passthrough behavior.\n */\n\n/** Cap on assertion-diff lines shown per finding — see `extractDiff`. */\nconst MAX_DIFF_LINES = 10;\n\nexport interface TestSummary {\n passed: number;\n failed: number;\n files: number;\n}\n\nexport interface ParsedTestReport {\n /** One finding per failing test, grouped (via `check`) per test FILE. */\n findings: RenderableFinding[];\n /** Relative paths of files with at least one failure, first-seen order. */\n failingFiles: string[];\n summary: TestSummary | null;\n}\n\ninterface ParsedFailure {\n /** Absolute path, exactly as vitest reported it. */\n file: string;\n suite: string;\n title: string;\n message: string;\n line?: number;\n detail?: string;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * Whether the project's OWN `test` script names vitest — the one signal\n * used to decide whether to inject the JSON reporter at all. Deliberately\n * conservative: a jest project, a custom node runner, or a shell wrapper is\n * left completely alone, with no reporter flags appended and no report\n * parsed — `ekanos test` behaves exactly as it did before this feature.\n */\nexport function projectTestScriptUsesVitest(projectDir: string): boolean {\n const manifestPath = path.join(projectDir, 'package.json');\n\n try {\n const manifest: unknown = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));\n if (!isRecord(manifest) || !isRecord(manifest.scripts)) return false;\n\n const script = manifest.scripts.test;\n return typeof script === 'string' && script.includes('vitest');\n } catch {\n return false;\n }\n}\n\n/** A fresh, unique path for the JSON report — one per invocation. The caller owns cleanup. */\nexport function newReportPath(): string {\n return path.join(\n os.tmpdir(),\n `ekanos-test-vitest-${crypto.randomUUID()}.json`,\n );\n}\n\n/** The extra argv that makes vitest ALSO emit a JSON report alongside its normal terminal output. */\nexport function reporterArgs(outputFilePath: string): string[] {\n return [\n '--reporter=default',\n '--reporter=json',\n `--outputFile=${outputFilePath}`,\n ];\n}\n\n/** The first non-empty line of a vitest failure message/stack — the\n * assertion or thrown error itself, not the frames beneath it. */\nfunction firstMeaningfulLine(text: string): string {\n const line = text\n .split('\\n')\n .map((entry) => entry.trim())\n .find((entry) => entry.length > 0);\n return line ?? 'Test failed with no error message.';\n}\n\n/**\n * Vitest's failure stacks always include the absolute test file path at\n * least once — at the failure site itself — with the frames beneath it\n * being the runner's own internals. The FIRST occurrence is the line that\n * matters.\n */\nfunction lineForFile(stack: string, absoluteFile: string): number | undefined {\n const escaped = absoluteFile.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n const match = new RegExp(`${escaped}:(\\\\d+):\\\\d+`).exec(stack);\n return match ? Number(match[1]) : undefined;\n}\n\n/**\n * Up to `MAX_DIFF_LINES` lines of an expected/received diff block from one\n * vitest failure message, or `null` when the message doesn't carry one.\n *\n * NOTE (found via manual end-to-end verification, not a hypothetical):\n * vitest's OWN `toBe`/`toEqual`-family matchers never put this in the JSON\n * reporter's `failureMessages` — the pretty \"- Expected / + Received\" block\n * is a terminal-only rendering vitest's default reporter computes live from\n * the error's `expected`/`actual`, and is never serialized into the report\n * (checked vitest 3.2.7 and 4.1.10; `message`/`stack` is all that ships).\n * This function still earns its place: a thrown `AssertionError` whose\n * `.message` already embeds diff-formatted text — a custom matcher, a\n * different assertion library layered on top of vitest, a hand-built\n * `expect.extend` — DOES carry it verbatim in `failureMessages`, and this is\n * what picks it up. It is intentionally a no-op for the common case rather\n * than reconstructing a diff ourselves (a real diff needs the actual/expected\n * values, which the JSON reporter doesn't expose, and computing one would\n * mean a new dependency, and this package deliberately keeps its runtime\n * dependency set to picocolors + @clack/prompts only).\n *\n * The diff sits between the failure's own title line and the stack frames\n * (`at ...`) beneath it; within that span, only unified-diff-style `-`/`+`\n * lines are kept — the jest-diff format such a message would use.\n */\nfunction extractDiff(failureMessage: string): string | null {\n const lines = failureMessage\n .split('\\n')\n .map((line) => line.replace(/\\r$/, ''));\n const stackStart = lines.findIndex((line) => /^\\s*at\\s/.test(line));\n const body = stackStart === -1 ? lines.slice(1) : lines.slice(1, stackStart);\n\n const diffLines = body.filter(\n (line) =>\n /^\\s*[-+]/.test(line) &&\n !line.startsWith('---') &&\n !line.startsWith('+++'),\n );\n if (diffLines.length === 0) return null;\n\n const capped = diffLines.slice(0, MAX_DIFF_LINES);\n const overflow = diffLines.length - capped.length;\n if (overflow > 0) {\n capped.push(`… and ${overflow} more diff line${overflow === 1 ? '' : 's'}`);\n }\n return capped.join('\\n');\n}\n\n/** `path.relative` against the project root, falling back to the raw\n * absolute path if the two disagree on realpath-vs-given-path (a symlinked\n * temp dir resolving differently between this process and the child)\n * rather than emitting a `../../../`-laden mess. */\nfunction archiveRelative(projectDir: string, absoluteFile: string): string {\n const direct = path.relative(projectDir, absoluteFile);\n if (!direct.startsWith('..')) return direct;\n try {\n const realProjectDir = fs.realpathSync(projectDir);\n const viaRealpath = path.relative(realProjectDir, absoluteFile);\n if (!viaRealpath.startsWith('..')) return viaRealpath;\n } catch {\n // realpathSync failing (e.g. the directory was already torn down) just\n // means we fall through to the direct (if imperfect) relative path.\n }\n return direct;\n}\n\n/**\n * Turns a parsed `--reporter=json` report into one `ParsedFailure` per\n * failed test, across every test file in the run. Returns `null` — not\n * `[]` — for anything that isn't recognizably a vitest JSON report at all,\n * so the caller can tell \"a real report with zero structured failures\"\n * apart from \"not a report\" (the latter falls back to the raw runner\n * output; the former is a genuinely clean, if unexpected, run).\n */\nfunction extractFailures(report: unknown): ParsedFailure[] | null {\n if (!isRecord(report) || !Array.isArray(report.testResults)) return null;\n\n const failures: ParsedFailure[] = [];\n for (const fileResult of report.testResults as unknown[]) {\n if (!isRecord(fileResult)) continue;\n const file = fileResult.name;\n const assertionResults = fileResult.assertionResults;\n if (typeof file !== 'string' || !Array.isArray(assertionResults)) continue;\n\n for (const assertion of assertionResults as unknown[]) {\n if (!isRecord(assertion) || assertion.status !== 'failed') continue;\n\n const ancestorTitles = Array.isArray(assertion.ancestorTitles)\n ? assertion.ancestorTitles.filter(\n (entry): entry is string => typeof entry === 'string',\n )\n : [];\n const title =\n typeof assertion.title === 'string'\n ? assertion.title\n : '(unnamed test)';\n const failureMessages = Array.isArray(assertion.failureMessages)\n ? assertion.failureMessages.filter(\n (entry): entry is string => typeof entry === 'string',\n )\n : [];\n const firstError = failureMessages[0] ?? '';\n\n const failure: ParsedFailure = {\n file,\n suite: ancestorTitles.join(' > '),\n title,\n message: firstMeaningfulLine(firstError),\n };\n const line = lineForFile(firstError, file);\n if (line !== undefined) failure.line = line;\n const detail = extractDiff(firstError);\n if (detail !== null) failure.detail = detail;\n\n failures.push(failure);\n }\n }\n return failures;\n}\n\n/** `null` unless the report carries vitest's own aggregate pass/fail counts. */\nfunction extractSummary(report: unknown): TestSummary | null {\n if (!isRecord(report) || !Array.isArray(report.testResults)) return null;\n\n const passed = report.numPassedTests;\n const failed = report.numFailedTests;\n if (typeof passed !== 'number' || typeof failed !== 'number') return null;\n\n return { passed, failed, files: report.testResults.length };\n}\n\n/**\n * Reads and parses `reportPath` end to end. `null` on ANY failure (missing\n * file — vitest crashed before writing it; malformed JSON; a shape this\n * function doesn't recognize) so the caller falls back to the raw runner\n * output instead of the curated appendix, and never to a crash.\n */\nexport function parseTestReport(\n reportPath: string,\n projectDir: string,\n): ParsedTestReport | null {\n let raw: string;\n try {\n raw = fs.readFileSync(reportPath, 'utf8');\n } catch {\n return null;\n }\n\n let report: unknown;\n try {\n report = JSON.parse(raw);\n } catch {\n return null;\n }\n\n const failures = extractFailures(report);\n if (failures === null) return null;\n\n const findings: RenderableFinding[] = [];\n const failingFiles: string[] = [];\n const seenFiles = new Set<string>();\n\n for (const failure of failures) {\n const relFile = archiveRelative(projectDir, failure.file);\n if (!seenFiles.has(relFile)) {\n seenFiles.add(relFile);\n failingFiles.push(relFile);\n }\n\n const label = failure.suite\n ? `${failure.suite} > ${failure.title}`\n : failure.title;\n const finding: RenderableFinding = {\n // Grouping by test FILE (not by suite/title) is deliberate — the\n // shared renderer groups by `check`, so this makes the group header\n // show the file once with every failing test beneath it.\n check: `tests/${relFile}`,\n severity: 'error',\n file: relFile,\n message: `${label}: ${failure.message}`,\n hint: 'Fix the failing assertion, then re-run \"ekanos test\".',\n };\n if (failure.line !== undefined) finding.line = failure.line;\n if (failure.detail !== undefined) finding.detail = failure.detail;\n findings.push(finding);\n }\n\n return { findings, failingFiles, summary: extractSummary(report) };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"test-report.js","sourceRoot":"","sources":["../src/test-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,MAAM,cAAc,GAAG,EAAE,CAAC;AAuB1B,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,UAAkB;IAC5D,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAE3D,IAAI,CAAC;QACH,MAAM,QAAQ,GAAY,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;QAC5E,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAA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,CAAC,CAAC;QAC7B,CAAC;QAED,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK;YACzB,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,MAAM,OAAO,CAAC,KAAK,EAAE;YACvC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAClB,MAAM,OAAO,GAAsB;YACjC,KAAK,EAAE,SAAS,OAAO,EAAE;YACzB,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,GAAG,KAAK,KAAK,OAAO,CAAC,OAAO,EAAE;YACvC,IAAI,EAAE,uDAAuD;SAC9D,CAAC;QACF,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;YAAE,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC5D,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAClE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;AACrE,CAAC","sourcesContent":["import * as crypto from 'node:crypto';\nimport * as fs from 'node:fs';\nimport * as os from 'node:os';\nimport * as path from 'node:path';\n\nimport type { RenderableFinding } from './findings-renderer';\n\nconst MAX_DIFF_LINES = 10;\n\ninterface TestSummary {\n passed: number;\n failed: number;\n files: number;\n}\n\nexport interface ParsedTestReport {\n findings: RenderableFinding[];\n failingFiles: string[];\n summary: TestSummary | null;\n}\n\ninterface ParsedFailure {\n file: string;\n suite: string;\n title: string;\n message: string;\n line?: number;\n detail?: string;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nexport function projectTestScriptUsesVitest(projectDir: string): boolean {\n const manifestPath = path.join(projectDir, 'package.json');\n\n try {\n const manifest: unknown = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));\n if (!isRecord(manifest) || !isRecord(manifest.scripts)) return false;\n\n const script = manifest.scripts.test;\n return typeof script === 'string' && script.includes('vitest');\n } catch {\n return false;\n }\n}\n\nexport function newReportPath(): string {\n return path.join(\n os.tmpdir(),\n `ekanos-test-vitest-${crypto.randomUUID()}.json`,\n );\n}\n\nexport function reporterArgs(outputFilePath: string): string[] {\n return [\n '--reporter=default',\n '--reporter=json',\n `--outputFile=${outputFilePath}`,\n ];\n}\n\nfunction firstMeaningfulLine(text: string): string {\n const line = text\n .split('\\n')\n .map((entry) => entry.trim())\n .find((entry) => entry.length > 0);\n return line ?? 'Test failed with no error message.';\n}\n\nfunction lineForFile(stack: string, absoluteFile: string): number | undefined {\n const escaped = absoluteFile.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n const match = new RegExp(`${escaped}:(\\\\d+):\\\\d+`).exec(stack);\n return match ? Number(match[1]) : undefined;\n}\n\nfunction extractDiff(failureMessage: string): string | null {\n const lines = failureMessage\n .split('\\n')\n .map((line) => line.replace(/\\r$/, ''));\n const stackStart = lines.findIndex((line) => /^\\s*at\\s/.test(line));\n const body = stackStart === -1 ? lines.slice(1) : lines.slice(1, stackStart);\n\n const diffLines = body.filter(\n (line) =>\n /^\\s*[-+]/.test(line) &&\n !line.startsWith('---') &&\n !line.startsWith('+++'),\n );\n if (diffLines.length === 0) return null;\n\n const capped = diffLines.slice(0, MAX_DIFF_LINES);\n const overflow = diffLines.length - capped.length;\n if (overflow > 0) {\n capped.push(`… and ${overflow} more diff line${overflow === 1 ? '' : 's'}`);\n }\n return capped.join('\\n');\n}\n\nfunction archiveRelative(projectDir: string, absoluteFile: string): string {\n const direct = path.relative(projectDir, absoluteFile);\n if (!direct.startsWith('..')) return direct;\n try {\n const realProjectDir = fs.realpathSync(projectDir);\n const viaRealpath = path.relative(realProjectDir, absoluteFile);\n if (!viaRealpath.startsWith('..')) return viaRealpath;\n } catch {}\n return direct;\n}\n\nfunction extractFailures(report: unknown): ParsedFailure[] | null {\n if (!isRecord(report) || !Array.isArray(report.testResults)) return null;\n\n const failures: ParsedFailure[] = [];\n for (const fileResult of report.testResults as unknown[]) {\n if (!isRecord(fileResult)) continue;\n const file = fileResult.name;\n const assertionResults = fileResult.assertionResults;\n if (typeof file !== 'string' || !Array.isArray(assertionResults)) continue;\n\n for (const assertion of assertionResults as unknown[]) {\n if (!isRecord(assertion) || assertion.status !== 'failed') continue;\n\n const ancestorTitles = Array.isArray(assertion.ancestorTitles)\n ? assertion.ancestorTitles.filter(\n (entry): entry is string => typeof entry === 'string',\n )\n : [];\n const title =\n typeof assertion.title === 'string'\n ? assertion.title\n : '(unnamed test)';\n const failureMessages = Array.isArray(assertion.failureMessages)\n ? assertion.failureMessages.filter(\n (entry): entry is string => typeof entry === 'string',\n )\n : [];\n const firstError = failureMessages[0] ?? '';\n\n const failure: ParsedFailure = {\n file,\n suite: ancestorTitles.join(' > '),\n title,\n message: firstMeaningfulLine(firstError),\n };\n const line = lineForFile(firstError, file);\n if (line !== undefined) failure.line = line;\n const detail = extractDiff(firstError);\n if (detail !== null) failure.detail = detail;\n\n failures.push(failure);\n }\n }\n return failures;\n}\n\nfunction extractSummary(report: unknown): TestSummary | null {\n if (!isRecord(report) || !Array.isArray(report.testResults)) return null;\n\n const passed = report.numPassedTests;\n const failed = report.numFailedTests;\n if (typeof passed !== 'number' || typeof failed !== 'number') return null;\n\n return { passed, failed, files: report.testResults.length };\n}\n\nexport function parseTestReport(\n reportPath: string,\n projectDir: string,\n): ParsedTestReport | null {\n let raw: string;\n try {\n raw = fs.readFileSync(reportPath, 'utf8');\n } catch {\n return null;\n }\n\n let report: unknown;\n try {\n report = JSON.parse(raw);\n } catch {\n return null;\n }\n\n const failures = extractFailures(report);\n if (failures === null) return null;\n\n const findings: RenderableFinding[] = [];\n const failingFiles: string[] = [];\n const seenFiles = new Set<string>();\n\n for (const failure of failures) {\n const relFile = archiveRelative(projectDir, failure.file);\n if (!seenFiles.has(relFile)) {\n seenFiles.add(relFile);\n failingFiles.push(relFile);\n }\n\n const label = failure.suite\n ? `${failure.suite} > ${failure.title}`\n : failure.title;\n const finding: RenderableFinding = {\n check: `tests/${relFile}`,\n severity: 'error',\n file: relFile,\n message: `${label}: ${failure.message}`,\n hint: 'Fix the failing assertion, then re-run \"ekanos test\".',\n };\n if (failure.line !== undefined) finding.line = failure.line;\n if (failure.detail !== undefined) finding.detail = failure.detail;\n findings.push(finding);\n }\n\n return { findings, failingFiles, summary: extractSummary(report) };\n}\n"]}
|