@mesh-tech/mesh-cli 0.20.2 → 0.20.4
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/bin/mesh.d.ts +0 -12
- package/dist/bin/mesh.js +15 -13
- package/dist/bin/mesh.js.map +1 -2
- package/dist/build-info.json +2 -2
- package/dist/src/commands/agent-api-client.d.ts +0 -70
- package/dist/src/commands/agent-api-client.js +0 -80
- package/dist/src/commands/app-check.d.ts +0 -56
- package/dist/src/commands/app-check.js +0 -72
- package/dist/src/commands/artifacts.d.ts +0 -11
- package/dist/src/commands/artifacts.js +0 -33
- package/dist/src/commands/cluster.d.ts +0 -39
- package/dist/src/commands/cluster.js +0 -73
- package/dist/src/commands/conversations.d.ts +0 -36
- package/dist/src/commands/conversations.js +0 -59
- package/dist/src/commands/create-app.d.ts +0 -98
- package/dist/src/commands/create-app.js +1 -163
- package/dist/src/commands/db/connect.d.ts +0 -7
- package/dist/src/commands/db/connect.js +0 -9
- package/dist/src/commands/db/credentials.d.ts +0 -7
- package/dist/src/commands/db/credentials.js +0 -10
- package/dist/src/commands/db/env.d.ts +0 -6
- package/dist/src/commands/db/env.js +0 -14
- package/dist/src/commands/db/exec.d.ts +0 -43
- package/dist/src/commands/db/exec.js +0 -69
- package/dist/src/commands/db/index.d.ts +0 -10
- package/dist/src/commands/db/index.js +0 -10
- package/dist/src/commands/db/psql.d.ts +0 -7
- package/dist/src/commands/db/psql.js +0 -18
- package/dist/src/commands/deploy.d.ts +0 -38
- package/dist/src/commands/deploy.js +1 -76
- package/dist/src/commands/dev-doctor.d.ts +0 -82
- package/dist/src/commands/dev-doctor.js +3 -132
- package/dist/src/commands/dev-launch.d.ts +0 -52
- package/dist/src/commands/dev-launch.js +0 -56
- package/dist/src/commands/dev-token-server.d.ts +0 -18
- package/dist/src/commands/dev-token-server.js +1 -24
- package/dist/src/commands/dev.d.ts +0 -246
- package/dist/src/commands/dev.js +5 -963
- package/dist/src/commands/docs.d.ts +0 -1
- package/dist/src/commands/docs.js +0 -12
- package/dist/src/commands/hub/index.d.ts +0 -60
- package/dist/src/commands/hub/index.js +2 -139
- package/dist/src/commands/init/wizard.d.ts +0 -128
- package/dist/src/commands/init/wizard.js +0 -109
- package/dist/src/commands/init.d.ts +0 -55
- package/dist/src/commands/init.js +0 -70
- package/dist/src/commands/install-shim.d.ts +0 -23
- package/dist/src/commands/install-shim.js +2 -29
- package/dist/src/commands/local/auth-provision.d.ts +0 -80
- package/dist/src/commands/local/auth-provision.js +0 -109
- package/dist/src/commands/local/dev-local.d.ts +0 -91
- package/dist/src/commands/local/dev-local.js +0 -147
- package/dist/src/commands/local/docker-runner.d.ts +0 -22
- package/dist/src/commands/local/docker-runner.js +2 -35
- package/dist/src/commands/local/helpers.d.ts +0 -14
- package/dist/src/commands/local/helpers.js +0 -13
- package/dist/src/commands/local/hub-local.d.ts +0 -96
- package/dist/src/commands/local/hub-local.js +0 -111
- package/dist/src/commands/local/index.d.ts +0 -14
- package/dist/src/commands/local/index.js +0 -86
- package/dist/src/commands/local/mocks.d.ts +0 -269
- package/dist/src/commands/local/mocks.js +1 -274
- package/dist/src/commands/local/seed-hub-catalog.d.ts +0 -25
- package/dist/src/commands/local/seed-hub-catalog.js +0 -41
- package/dist/src/commands/local/seed-zitadel.d.ts +0 -82
- package/dist/src/commands/local/seed-zitadel.js +0 -158
- package/dist/src/commands/local/seed.d.ts +0 -64
- package/dist/src/commands/local/seed.js +0 -78
- package/dist/src/commands/local/stack.d.ts +0 -141
- package/dist/src/commands/local/stack.js +0 -153
- package/dist/src/commands/login.d.ts +0 -265
- package/dist/src/commands/login.js +4 -418
- package/dist/src/commands/peer-addressing.d.ts +0 -39
- package/dist/src/commands/peer-addressing.js +0 -37
- package/dist/src/commands/port-ownership.d.ts +0 -44
- package/dist/src/commands/port-ownership.js +0 -47
- package/dist/src/commands/registry-publish.d.ts +0 -1
- package/dist/src/commands/registry-publish.js +0 -46
- package/dist/src/commands/registry.d.ts +4 -237
- package/dist/src/commands/registry.js +2 -316
- package/dist/src/commands/secrets/exec.d.ts +0 -16
- package/dist/src/commands/secrets/exec.js +0 -24
- package/dist/src/commands/secrets/index.d.ts +0 -9
- package/dist/src/commands/secrets/index.js +0 -10
- package/dist/src/commands/secrets/migrate-config.d.ts +0 -17
- package/dist/src/commands/secrets/migrate-config.js +0 -40
- package/dist/src/commands/secrets/reindex.d.ts +0 -38
- package/dist/src/commands/secrets/reindex.js +0 -39
- package/dist/src/commands/secrets/set.d.ts +0 -47
- package/dist/src/commands/secrets/set.js +0 -107
- package/dist/src/commands/site.d.ts +0 -1
- package/dist/src/commands/site.js +0 -61
- package/dist/src/commands/skills.d.ts +0 -61
- package/dist/src/commands/skills.js +0 -83
- package/dist/src/commands/stack.d.ts +0 -15
- package/dist/src/commands/stack.js +1 -128
- package/dist/src/commands/temporal.d.ts +0 -30
- package/dist/src/commands/temporal.js +3 -1
- package/dist/src/commands/temporal.js.map +1 -2
- package/dist/src/commands/tenant.d.ts +0 -31
- package/dist/src/commands/tenant.js +0 -55
- package/dist/src/commands/tunnel/index.d.ts +0 -40
- package/dist/src/commands/tunnel/index.js +0 -141
- package/dist/src/commands/vcs/clone.d.ts +0 -1
- package/dist/src/commands/vcs/clone.js +0 -4
- package/dist/src/commands/vcs/common.d.ts +0 -32
- package/dist/src/commands/vcs/common.js +0 -41
- package/dist/src/commands/vcs/drafts.d.ts +0 -1
- package/dist/src/commands/vcs/drafts.js +0 -1
- package/dist/src/commands/vcs/get.d.ts +0 -1
- package/dist/src/commands/vcs/get.js +0 -11
- package/dist/src/commands/vcs/index.d.ts +0 -1
- package/dist/src/commands/vcs/index.js +0 -1
- package/dist/src/commands/vcs/propose.d.ts +0 -26
- package/dist/src/commands/vcs/propose.js +3 -34
- package/dist/src/commands/vcs/review.d.ts +0 -1
- package/dist/src/commands/vcs/review.js +0 -1
- package/dist/src/commands/vcs/rm.d.ts +0 -11
- package/dist/src/commands/vcs/rm.js +0 -14
- package/dist/src/commands/vcs-enrich.d.ts +0 -12
- package/dist/src/commands/vcs-enrich.js +0 -12
- package/dist/src/commands/vpn/index.d.ts +0 -17
- package/dist/src/commands/vpn/index.js +0 -102
- package/dist/src/commands/vpn/tunnel.d.ts +0 -9
- package/dist/src/commands/vpn/tunnel.js +0 -37
- package/dist/src/commands/workflow.d.ts +0 -22
- package/dist/src/commands/workflow.js +0 -80
- package/dist/src/docs/assemble.d.ts +0 -117
- package/dist/src/docs/assemble.js +0 -142
- package/dist/src/docs/cli-reference.d.ts +0 -58
- package/dist/src/docs/cli-reference.js +0 -77
- package/dist/src/docs/discover.d.ts +0 -40
- package/dist/src/docs/discover.js +2 -60
- package/dist/src/docs/portal.d.ts +0 -44
- package/dist/src/docs/portal.js +0 -49
- package/dist/src/docs/registry-docs.d.ts +0 -29
- package/dist/src/docs/registry-docs.js +0 -40
- package/dist/src/docs/schema.d.ts +0 -36
- package/dist/src/docs/schema.js +0 -52
- package/dist/src/docs/serve.d.ts +0 -18
- package/dist/src/docs/serve.js +2 -30
- package/dist/src/docs/start.d.ts +0 -42
- package/dist/src/docs/start.js +0 -70
- package/dist/src/eval/agent-eval.d.mts +0 -12
- package/dist/src/eval/agent-eval.mjs +0 -22
- package/dist/src/index.d.ts +0 -6
- package/dist/src/index.js.map +0 -1
- package/dist/src/program.d.ts +0 -20
- package/dist/src/program.js +0 -24
- package/dist/src/utils/auth-preflight.d.ts +0 -137
- package/dist/src/utils/auth-preflight.js +0 -149
- package/dist/src/utils/aws-auth.d.ts +0 -163
- package/dist/src/utils/aws-auth.js +3 -232
- package/dist/src/utils/bastion.d.ts +0 -27
- package/dist/src/utils/bastion.js +0 -28
- package/dist/src/utils/build-info.d.ts +0 -22
- package/dist/src/utils/build-info.js +0 -27
- package/dist/src/utils/cache-home.d.ts +0 -23
- package/dist/src/utils/cache-home.js +0 -25
- package/dist/src/utils/capture-history.d.ts +0 -54
- package/dist/src/utils/capture-history.js +1 -55
- package/dist/src/utils/context.d.ts +0 -23
- package/dist/src/utils/context.js +0 -43
- package/dist/src/utils/credentials.d.ts +0 -38
- package/dist/src/utils/credentials.js +0 -39
- package/dist/src/utils/deploy-preflight.d.ts +0 -38
- package/dist/src/utils/deploy-preflight.js +1 -71
- package/dist/src/utils/errors.d.ts +0 -53
- package/dist/src/utils/errors.js +0 -49
- package/dist/src/utils/first-party-contexts.d.ts +0 -38
- package/dist/src/utils/first-party-contexts.js +0 -44
- package/dist/src/utils/index.d.ts +0 -4
- package/dist/src/utils/index.js +0 -4
- package/dist/src/utils/kubeconfig.d.ts +0 -40
- package/dist/src/utils/kubeconfig.js +0 -44
- package/dist/src/utils/log.d.ts +0 -20
- package/dist/src/utils/log.js +0 -20
- package/dist/src/utils/mesh-json.d.ts +0 -46
- package/dist/src/utils/mesh-json.js +0 -39
- package/dist/src/utils/pid.d.ts +0 -42
- package/dist/src/utils/pid.js +0 -48
- package/dist/src/utils/pulumi-run.d.ts +0 -14
- package/dist/src/utils/pulumi-run.js +0 -42
- package/dist/src/utils/pulumi.d.ts +0 -34
- package/dist/src/utils/pulumi.js +0 -38
- package/dist/src/utils/reachability.d.ts +0 -27
- package/dist/src/utils/reachability.js +0 -40
- package/dist/src/utils/recover-conversation.d.ts +0 -110
- package/dist/src/utils/recover-conversation.js +0 -108
- package/dist/src/utils/registry-broker.d.ts +5 -84
- package/dist/src/utils/registry-broker.js +0 -62
- package/dist/src/utils/registry-identity.d.ts +0 -149
- package/dist/src/utils/registry-identity.js +0 -143
- package/dist/src/utils/scaffold-versions.d.ts +0 -41
- package/dist/src/utils/scaffold-versions.js +0 -42
- package/dist/src/utils/socks-forward.d.ts +0 -24
- package/dist/src/utils/socks-forward.js +2 -25
- package/dist/src/utils/stack-flag.d.ts +0 -13
- package/dist/src/utils/stack-flag.js +0 -21
- package/dist/src/utils/tailscale-targets.d.ts +0 -37
- package/dist/src/utils/tailscale-targets.js +0 -33
- package/dist/src/utils/tailscale.d.ts +0 -177
- package/dist/src/utils/tailscale.js +6 -337
- package/dist/src/utils/temporal-auth.d.ts +0 -41
- package/dist/src/utils/temporal-auth.js +0 -52
- package/dist/src/utils/temporal-codec.d.ts +0 -89
- package/dist/src/utils/temporal-codec.js.map +0 -1
- package/dist/src/utils/tunnel-ownership.d.ts +0 -79
- package/dist/src/utils/tunnel-ownership.js +0 -74
- package/dist/src/utils/vpn-join.d.ts +0 -16
- package/dist/src/utils/vpn-join.js +0 -17
- package/dist/src/utils/vpn.d.ts +0 -42
- package/dist/src/utils/vpn.js +0 -52
- package/dist/src/utils/workflow-fingerprint.d.ts +0 -39
- package/dist/src/utils/workflow-fingerprint.js +1 -63
- package/dist/src/utils/worktree-identity.d.ts +0 -62
- package/dist/src/utils/worktree-identity.js +0 -88
- package/package.json +2 -2
- package/skills/core/SKILL.md +9 -10
- package/templates/api-auth/api/src/index.ts.hbs +1 -1
- package/templates/api-auth/api/src/spicedb-http-provider.ts.hbs +2 -2
- package/templates/api-role-gating/api/src/authn.ts.hbs +2 -2
- package/templates/api-role-gating/index.ts.hbs +1 -1
- package/templates/api-role-gating/skills/develop/SKILL.md.hbs +1 -1
- package/templates/platform-repo/core/Pulumi.{{tenant}}-{{env}}.yaml.hbs +2 -2
- package/templates/platform-repo/platform/index.ts +1 -1
- package/dist/bin/mesh.d.ts.map +0 -1
- package/dist/src/commands/agent-api-client.d.ts.map +0 -1
- package/dist/src/commands/agent-api-client.js.map +0 -1
- package/dist/src/commands/app-check.d.ts.map +0 -1
- package/dist/src/commands/app-check.js.map +0 -1
- package/dist/src/commands/artifacts.d.ts.map +0 -1
- package/dist/src/commands/artifacts.js.map +0 -1
- package/dist/src/commands/cluster.d.ts.map +0 -1
- package/dist/src/commands/cluster.js.map +0 -1
- package/dist/src/commands/conversations.d.ts.map +0 -1
- package/dist/src/commands/conversations.js.map +0 -1
- package/dist/src/commands/create-app.d.ts.map +0 -1
- package/dist/src/commands/create-app.js.map +0 -1
- package/dist/src/commands/db/connect.d.ts.map +0 -1
- package/dist/src/commands/db/connect.js.map +0 -1
- package/dist/src/commands/db/credentials.d.ts.map +0 -1
- package/dist/src/commands/db/credentials.js.map +0 -1
- package/dist/src/commands/db/env.d.ts.map +0 -1
- package/dist/src/commands/db/env.js.map +0 -1
- package/dist/src/commands/db/exec.d.ts.map +0 -1
- package/dist/src/commands/db/exec.js.map +0 -1
- package/dist/src/commands/db/index.d.ts.map +0 -1
- package/dist/src/commands/db/index.js.map +0 -1
- package/dist/src/commands/db/psql.d.ts.map +0 -1
- package/dist/src/commands/db/psql.js.map +0 -1
- package/dist/src/commands/deploy.d.ts.map +0 -1
- package/dist/src/commands/deploy.js.map +0 -1
- package/dist/src/commands/dev-doctor.d.ts.map +0 -1
- package/dist/src/commands/dev-doctor.js.map +0 -1
- package/dist/src/commands/dev-launch.d.ts.map +0 -1
- package/dist/src/commands/dev-launch.js.map +0 -1
- package/dist/src/commands/dev-token-server.d.ts.map +0 -1
- package/dist/src/commands/dev-token-server.js.map +0 -1
- package/dist/src/commands/dev.d.ts.map +0 -1
- package/dist/src/commands/dev.js.map +0 -1
- package/dist/src/commands/docs.d.ts.map +0 -1
- package/dist/src/commands/docs.js.map +0 -1
- package/dist/src/commands/hub/index.d.ts.map +0 -1
- package/dist/src/commands/hub/index.js.map +0 -1
- package/dist/src/commands/init/wizard.d.ts.map +0 -1
- package/dist/src/commands/init/wizard.js.map +0 -1
- package/dist/src/commands/init.d.ts.map +0 -1
- package/dist/src/commands/init.js.map +0 -1
- package/dist/src/commands/install-shim.d.ts.map +0 -1
- package/dist/src/commands/install-shim.js.map +0 -1
- package/dist/src/commands/local/auth-provision.d.ts.map +0 -1
- package/dist/src/commands/local/auth-provision.js.map +0 -1
- package/dist/src/commands/local/dev-local.d.ts.map +0 -1
- package/dist/src/commands/local/dev-local.js.map +0 -1
- package/dist/src/commands/local/docker-runner.d.ts.map +0 -1
- package/dist/src/commands/local/docker-runner.js.map +0 -1
- package/dist/src/commands/local/helpers.d.ts.map +0 -1
- package/dist/src/commands/local/helpers.js.map +0 -1
- package/dist/src/commands/local/hub-local.d.ts.map +0 -1
- package/dist/src/commands/local/hub-local.js.map +0 -1
- package/dist/src/commands/local/index.d.ts.map +0 -1
- package/dist/src/commands/local/index.js.map +0 -1
- package/dist/src/commands/local/mocks.d.ts.map +0 -1
- package/dist/src/commands/local/mocks.js.map +0 -1
- package/dist/src/commands/local/seed-hub-catalog.d.ts.map +0 -1
- package/dist/src/commands/local/seed-hub-catalog.js.map +0 -1
- package/dist/src/commands/local/seed-zitadel.d.ts.map +0 -1
- package/dist/src/commands/local/seed-zitadel.js.map +0 -1
- package/dist/src/commands/local/seed.d.ts.map +0 -1
- package/dist/src/commands/local/seed.js.map +0 -1
- package/dist/src/commands/local/stack.d.ts.map +0 -1
- package/dist/src/commands/local/stack.js.map +0 -1
- package/dist/src/commands/login.d.ts.map +0 -1
- package/dist/src/commands/login.js.map +0 -1
- package/dist/src/commands/peer-addressing.d.ts.map +0 -1
- package/dist/src/commands/peer-addressing.js.map +0 -1
- package/dist/src/commands/port-ownership.d.ts.map +0 -1
- package/dist/src/commands/port-ownership.js.map +0 -1
- package/dist/src/commands/registry-publish.d.ts.map +0 -1
- package/dist/src/commands/registry-publish.js.map +0 -1
- package/dist/src/commands/registry.d.ts.map +0 -1
- package/dist/src/commands/registry.js.map +0 -1
- package/dist/src/commands/secrets/exec.d.ts.map +0 -1
- package/dist/src/commands/secrets/exec.js.map +0 -1
- package/dist/src/commands/secrets/index.d.ts.map +0 -1
- package/dist/src/commands/secrets/index.js.map +0 -1
- package/dist/src/commands/secrets/migrate-config.d.ts.map +0 -1
- package/dist/src/commands/secrets/migrate-config.js.map +0 -1
- package/dist/src/commands/secrets/reindex.d.ts.map +0 -1
- package/dist/src/commands/secrets/reindex.js.map +0 -1
- package/dist/src/commands/secrets/set.d.ts.map +0 -1
- package/dist/src/commands/secrets/set.js.map +0 -1
- package/dist/src/commands/site.d.ts.map +0 -1
- package/dist/src/commands/site.js.map +0 -1
- package/dist/src/commands/skills.d.ts.map +0 -1
- package/dist/src/commands/skills.js.map +0 -1
- package/dist/src/commands/stack.d.ts.map +0 -1
- package/dist/src/commands/stack.js.map +0 -1
- package/dist/src/commands/temporal.d.ts.map +0 -1
- package/dist/src/commands/tenant.d.ts.map +0 -1
- package/dist/src/commands/tenant.js.map +0 -1
- package/dist/src/commands/tunnel/index.d.ts.map +0 -1
- package/dist/src/commands/tunnel/index.js.map +0 -1
- package/dist/src/commands/vcs/clone.d.ts.map +0 -1
- package/dist/src/commands/vcs/clone.js.map +0 -1
- package/dist/src/commands/vcs/common.d.ts.map +0 -1
- package/dist/src/commands/vcs/common.js.map +0 -1
- package/dist/src/commands/vcs/drafts.d.ts.map +0 -1
- package/dist/src/commands/vcs/drafts.js.map +0 -1
- package/dist/src/commands/vcs/get.d.ts.map +0 -1
- package/dist/src/commands/vcs/get.js.map +0 -1
- package/dist/src/commands/vcs/index.d.ts.map +0 -1
- package/dist/src/commands/vcs/index.js.map +0 -1
- package/dist/src/commands/vcs/propose.d.ts.map +0 -1
- package/dist/src/commands/vcs/propose.js.map +0 -1
- package/dist/src/commands/vcs/review.d.ts.map +0 -1
- package/dist/src/commands/vcs/review.js.map +0 -1
- package/dist/src/commands/vcs/rm.d.ts.map +0 -1
- package/dist/src/commands/vcs/rm.js.map +0 -1
- package/dist/src/commands/vcs-enrich.d.ts.map +0 -1
- package/dist/src/commands/vcs-enrich.js.map +0 -1
- package/dist/src/commands/vpn/index.d.ts.map +0 -1
- package/dist/src/commands/vpn/index.js.map +0 -1
- package/dist/src/commands/vpn/tunnel.d.ts.map +0 -1
- package/dist/src/commands/vpn/tunnel.js.map +0 -1
- package/dist/src/commands/workflow.d.ts.map +0 -1
- package/dist/src/commands/workflow.js.map +0 -1
- package/dist/src/docs/assemble.d.ts.map +0 -1
- package/dist/src/docs/assemble.js.map +0 -1
- package/dist/src/docs/cli-reference.d.ts.map +0 -1
- package/dist/src/docs/cli-reference.js.map +0 -1
- package/dist/src/docs/discover.d.ts.map +0 -1
- package/dist/src/docs/discover.js.map +0 -1
- package/dist/src/docs/portal.d.ts.map +0 -1
- package/dist/src/docs/portal.js.map +0 -1
- package/dist/src/docs/registry-docs.d.ts.map +0 -1
- package/dist/src/docs/registry-docs.js.map +0 -1
- package/dist/src/docs/schema.d.ts.map +0 -1
- package/dist/src/docs/schema.js.map +0 -1
- package/dist/src/docs/serve.d.ts.map +0 -1
- package/dist/src/docs/serve.js.map +0 -1
- package/dist/src/docs/start.d.ts.map +0 -1
- package/dist/src/docs/start.js.map +0 -1
- package/dist/src/eval/agent-eval.d.mts.map +0 -1
- package/dist/src/eval/agent-eval.mjs.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/program.d.ts.map +0 -1
- package/dist/src/program.js.map +0 -1
- package/dist/src/utils/auth-preflight.d.ts.map +0 -1
- package/dist/src/utils/auth-preflight.js.map +0 -1
- package/dist/src/utils/aws-auth.d.ts.map +0 -1
- package/dist/src/utils/aws-auth.js.map +0 -1
- package/dist/src/utils/bastion.d.ts.map +0 -1
- package/dist/src/utils/bastion.js.map +0 -1
- package/dist/src/utils/build-info.d.ts.map +0 -1
- package/dist/src/utils/build-info.js.map +0 -1
- package/dist/src/utils/cache-home.d.ts.map +0 -1
- package/dist/src/utils/cache-home.js.map +0 -1
- package/dist/src/utils/capture-history.d.ts.map +0 -1
- package/dist/src/utils/capture-history.js.map +0 -1
- package/dist/src/utils/context.d.ts.map +0 -1
- package/dist/src/utils/context.js.map +0 -1
- package/dist/src/utils/credentials.d.ts.map +0 -1
- package/dist/src/utils/credentials.js.map +0 -1
- package/dist/src/utils/deploy-preflight.d.ts.map +0 -1
- package/dist/src/utils/deploy-preflight.js.map +0 -1
- package/dist/src/utils/errors.d.ts.map +0 -1
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/first-party-contexts.d.ts.map +0 -1
- package/dist/src/utils/first-party-contexts.js.map +0 -1
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/index.js.map +0 -1
- package/dist/src/utils/kubeconfig.d.ts.map +0 -1
- package/dist/src/utils/kubeconfig.js.map +0 -1
- package/dist/src/utils/log.d.ts.map +0 -1
- package/dist/src/utils/log.js.map +0 -1
- package/dist/src/utils/mesh-json.d.ts.map +0 -1
- package/dist/src/utils/mesh-json.js.map +0 -1
- package/dist/src/utils/pid.d.ts.map +0 -1
- package/dist/src/utils/pid.js.map +0 -1
- package/dist/src/utils/pulumi-run.d.ts.map +0 -1
- package/dist/src/utils/pulumi-run.js.map +0 -1
- package/dist/src/utils/pulumi.d.ts.map +0 -1
- package/dist/src/utils/pulumi.js.map +0 -1
- package/dist/src/utils/reachability.d.ts.map +0 -1
- package/dist/src/utils/reachability.js.map +0 -1
- package/dist/src/utils/recover-conversation.d.ts.map +0 -1
- package/dist/src/utils/recover-conversation.js.map +0 -1
- package/dist/src/utils/registry-broker.d.ts.map +0 -1
- package/dist/src/utils/registry-broker.js.map +0 -1
- package/dist/src/utils/registry-identity.d.ts.map +0 -1
- package/dist/src/utils/registry-identity.js.map +0 -1
- package/dist/src/utils/scaffold-versions.d.ts.map +0 -1
- package/dist/src/utils/scaffold-versions.js.map +0 -1
- package/dist/src/utils/socks-forward.d.ts.map +0 -1
- package/dist/src/utils/socks-forward.js.map +0 -1
- package/dist/src/utils/stack-flag.d.ts.map +0 -1
- package/dist/src/utils/stack-flag.js.map +0 -1
- package/dist/src/utils/tailscale-targets.d.ts.map +0 -1
- package/dist/src/utils/tailscale-targets.js.map +0 -1
- package/dist/src/utils/tailscale.d.ts.map +0 -1
- package/dist/src/utils/tailscale.js.map +0 -1
- package/dist/src/utils/temporal-auth.d.ts.map +0 -1
- package/dist/src/utils/temporal-auth.js.map +0 -1
- package/dist/src/utils/temporal-codec.d.ts.map +0 -1
- package/dist/src/utils/tunnel-ownership.d.ts.map +0 -1
- package/dist/src/utils/tunnel-ownership.js.map +0 -1
- package/dist/src/utils/vpn-join.d.ts.map +0 -1
- package/dist/src/utils/vpn-join.js.map +0 -1
- package/dist/src/utils/vpn.d.ts.map +0 -1
- package/dist/src/utils/vpn.js.map +0 -1
- package/dist/src/utils/workflow-fingerprint.d.ts.map +0 -1
- package/dist/src/utils/workflow-fingerprint.js.map +0 -1
- package/dist/src/utils/worktree-identity.d.ts.map +0 -1
- package/dist/src/utils/worktree-identity.js.map +0 -1
|
@@ -1,306 +1,73 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* mesh registry — Manage npm registry authentication for @mesh-tech packages.
|
|
3
|
-
*
|
|
4
|
-
* Handles CodeArtifact token refresh and project .npmrc setup so that
|
|
5
|
-
* `pnpm install` can resolve @mesh-tech/* packages from the private registry.
|
|
6
|
-
*
|
|
7
|
-
* The registry is ONE global identity (`utils/registry-identity.ts`), so the
|
|
8
|
-
* read path needs no platform context: `mesh registry login` resolves the
|
|
9
|
-
* registry, signs in to its issuer if there is no cached session, asks the
|
|
10
|
-
* Zitadel-gated `registry-auth` broker for a token, and writes `~/.npmrc` —
|
|
11
|
-
* one command, one browser round-trip, no AWS anything on the machine.
|
|
12
|
-
*
|
|
13
|
-
* Credential resolution, in order:
|
|
14
|
-
* 0. The registry-auth BROKER, authenticated with the registry session.
|
|
15
|
-
* This is the path a brand-new developer takes.
|
|
16
|
-
* 1. Existing AWS credentials in environment (CI/CD) → use directly
|
|
17
|
-
* 2. Zitadel JWT from `mesh login <context>` → AssumeRoleWithWebIdentity
|
|
18
|
-
* 3. AWS SSO / current profile → use directly
|
|
19
|
-
*
|
|
20
|
-
* Paths 1–3 all shell out to the AWS CLI, so they require it to be installed
|
|
21
|
-
* and credentialed. Path 0 requires only a Mesh account, which is the whole
|
|
22
|
-
* point (design: registry-access-without-aws-sso).
|
|
23
|
-
*
|
|
24
|
-
* Usage:
|
|
25
|
-
* mesh registry login — broker first (signs in if needed), then the AWS paths
|
|
26
|
-
* mesh registry login --device — same, device-code sign-in (headless / SSH)
|
|
27
|
-
* mesh registry login --ci — CI mode: AWS chain only, skip .npmrc creation
|
|
28
|
-
* mesh registry login --no-broker — skip the broker, force the AWS paths
|
|
29
|
-
* mesh registry login --profile p — a deployer's AWS profile (skips the broker)
|
|
30
|
-
* mesh registry logout — forget the registry session
|
|
31
|
-
* mesh registry status — show current auth state
|
|
32
|
-
*/
|
|
33
1
|
import { Command } from "commander";
|
|
34
2
|
import { MeshCliError } from "../utils/errors.js";
|
|
35
3
|
import type { RegistryTokenState } from "../utils/auth-preflight.js";
|
|
36
4
|
import { type RegistryBrokerFailure, type RegistryGrant } from "../utils/registry-broker.js";
|
|
37
5
|
import { readRegistrySession } from "../utils/registry-identity.js";
|
|
38
|
-
/**
|
|
39
|
-
* Run `aws codeartifact login` to set the auth token in ~/.npmrc.
|
|
40
|
-
*/
|
|
41
6
|
export declare function codeartifactLogin(env?: Record<string, string>): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Resolve the publisher role ARN to assume for `--publish`.
|
|
44
|
-
*
|
|
45
|
-
* Precedence: explicit --role-arn flag wins, then the registry's SSM export
|
|
46
|
-
* (publisherRoleArn, Task 2 of MESH-2168). Throws an actionable error if
|
|
47
|
-
* neither is available — there's no safe default to fall back to since
|
|
48
|
-
* publishing is an opt-in privileged path (DEFAULT_REGISTRY_ROLE stays null).
|
|
49
|
-
*/
|
|
50
7
|
export declare function resolvePublisherRoleArn({ roleArnFlag, ssmArn, }: {
|
|
51
8
|
roleArnFlag?: string;
|
|
52
9
|
ssmArn?: string;
|
|
53
10
|
}): string;
|
|
54
|
-
/**
|
|
55
|
-
* Resolve AWS credentials for registry access.
|
|
56
|
-
*
|
|
57
|
-
* Returns env var overrides (or empty object if current env is fine).
|
|
58
|
-
*/
|
|
59
11
|
export declare function resolveCredentials(context?: string, roleArn?: string): Record<string, string>;
|
|
60
|
-
/**
|
|
61
|
-
* Write a broker-issued grant into ~/.npmrc: the scoped registry line and the
|
|
62
|
-
* endpoint's auth token, in exactly the shape `aws codeartifact login
|
|
63
|
-
* --namespace @mesh-tech` would have written.
|
|
64
|
-
*
|
|
65
|
-
* Byte-compatibility with the AWS CLI's output is the requirement, not a nicety:
|
|
66
|
-
* `mesh registry status`, the `mesh start` preflight and the dev doctor all
|
|
67
|
-
* parse ~/.npmrc for that pair, and a machine that gets its token from the
|
|
68
|
-
* broker has to look identical to one that got it from AWS.
|
|
69
|
-
*/
|
|
70
12
|
export declare function applyGrantToUserNpmrc(grant: RegistryGrant, npmrcPath?: string): {
|
|
71
13
|
path: string;
|
|
72
14
|
};
|
|
73
|
-
/**
|
|
74
|
-
* Human-facing explanation of a failed broker attempt, plus whether the AWS
|
|
75
|
-
* fallback chain is worth running.
|
|
76
|
-
*
|
|
77
|
-
* `not-authorized` is the one case we do NOT fall through on: the caller has a
|
|
78
|
-
* working Mesh account that simply lacks the grant, and quietly trying AWS next
|
|
79
|
-
* would either succeed (masking a missing grant with an AWS account we're
|
|
80
|
-
* trying to stop requiring) or fail with an unrelated AWS error that buries the
|
|
81
|
-
* real answer. Its text ends by naming the re-run — the bare command, which
|
|
82
|
-
* re-mints the session so a role granted after the sign-in reaches the broker;
|
|
83
|
-
* a sign-out is the fallback for a session the issuer will not re-mint.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* describeBrokerFailure({ kind: "unavailable", detail: "ECONNREFUSED" }).fatal; // → false
|
|
87
|
-
*/
|
|
88
15
|
export declare function describeBrokerFailure(failure: RegistryBrokerFailure): {
|
|
89
16
|
message: string;
|
|
90
17
|
hint?: string;
|
|
91
18
|
fatal: boolean;
|
|
92
19
|
};
|
|
93
|
-
/**
|
|
94
|
-
* A valid Mesh account that lacks the registry role. Its own class so a
|
|
95
|
-
* caller that runs the login in-process (the `mesh init` wizard) can tell
|
|
96
|
-
* "ask for a grant" from every other failure structurally, not by parsing
|
|
97
|
-
* the sentence.
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* try {
|
|
101
|
-
* await runRegistryLogin(undefined, {});
|
|
102
|
-
* } catch (err) {
|
|
103
|
-
* if (err instanceof RegistryNotAuthorizedError) markStepFailedAndContinue(err);
|
|
104
|
-
* else throw err;
|
|
105
|
-
* }
|
|
106
|
-
*/
|
|
107
20
|
export declare class RegistryNotAuthorizedError extends MeshCliError {
|
|
108
21
|
constructor(message: string);
|
|
109
22
|
}
|
|
110
|
-
/**
|
|
111
|
-
* Whether this run may start a sign-in: always with `--device` (the device
|
|
112
|
-
* code works anywhere the output can be read), otherwise only when there is
|
|
113
|
-
* a terminal to print a code to or open a browser from. Which sign-in runs
|
|
114
|
-
* is the login flow's choice — browser PKCE on a laptop, device code over
|
|
115
|
-
* SSH or in a container. A run with no TTY and no `--device` never starts a
|
|
116
|
-
* device-code poll nobody can complete — it falls to the AWS chain, which
|
|
117
|
-
* is what a CI runner with ambient credentials expects.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* registrySignInAllowed({}, false); // → false (CI runner, no --device)
|
|
121
|
-
* registrySignInAllowed({ device: true }, false); // → true
|
|
122
|
-
* registrySignInAllowed({}, true); // → true (a laptop, or an SSH session with a TTY)
|
|
123
|
-
*/
|
|
124
23
|
export declare function registrySignInAllowed(opts: Pick<RegistryLoginOptions, "device">, hasTty?: boolean): boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Whether a broker refusal is worth one re-mint of the session before it is
|
|
127
|
-
* reported.
|
|
128
|
-
*
|
|
129
|
-
* `not-authorized` and only `not-authorized`. It is the single refusal a token
|
|
130
|
-
* minted a moment later can answer differently, because Zitadel writes project
|
|
131
|
-
* roles into a token when it issues it and a grant that lands afterwards is
|
|
132
|
-
* absent from every token already held. Every other failure is about the
|
|
133
|
-
* broker or the session itself, which a re-mint does not change — and paying
|
|
134
|
-
* for one there only delays the AWS fallback those failures are meant to reach.
|
|
135
|
-
*
|
|
136
|
-
* Exported so the policy is asserted by a test rather than promised by the one
|
|
137
|
-
* call site that holds it.
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* shouldRemintAfter({ kind: "unavailable", detail: "ETIMEDOUT" }); // → false
|
|
141
|
-
*/
|
|
142
24
|
export declare function shouldRemintAfter(failure: RegistryBrokerFailure): boolean;
|
|
143
|
-
/** The closing line of the not-authorized text: what to run once the role is granted. */
|
|
144
25
|
export declare const NOT_AUTHORIZED_RERUN = "Once granted, run: mesh registry login (it re-mints your sign-in; still refused? mesh registry logout && mesh registry login)";
|
|
145
|
-
/** Printed when the read path is given a context it no longer needs. */
|
|
146
26
|
export declare const CONTEXT_IGNORED_NOTICE = "The registry is global \u2014 the context argument is no longer needed (ignored).";
|
|
147
|
-
|
|
148
|
-
* Why the broker did not produce a grant — the fact the final AWS-chain error
|
|
149
|
-
* message is built from, so it can only ever cite something that was actually
|
|
150
|
-
* printed.
|
|
151
|
-
*/
|
|
152
|
-
export type BrokerOutcome =
|
|
153
|
-
/** `--profile` — an explicit AWS-identity instruction; the broker was never tried. */
|
|
154
|
-
{
|
|
27
|
+
export type BrokerOutcome = {
|
|
155
28
|
kind: "skipped-profile";
|
|
156
29
|
profile: string;
|
|
157
|
-
}
|
|
158
|
-
/** `--no-broker`, `--ci` or `--publish` — the AWS chain was asked for by name. */
|
|
159
|
-
| {
|
|
30
|
+
} | {
|
|
160
31
|
kind: "skipped-flag";
|
|
161
32
|
flag: string;
|
|
162
|
-
}
|
|
163
|
-
/** The broker was tried and could not answer (discovery failed, 5xx, timeout). */
|
|
164
|
-
| {
|
|
33
|
+
} | {
|
|
165
34
|
kind: "unavailable";
|
|
166
35
|
detail: string;
|
|
167
|
-
}
|
|
168
|
-
/** No registry session and no way to sign in on this run (headless, no `--device`). */
|
|
169
|
-
| {
|
|
36
|
+
} | {
|
|
170
37
|
kind: "no-session";
|
|
171
38
|
detail: string;
|
|
172
39
|
};
|
|
173
|
-
/**
|
|
174
|
-
* Whether this `mesh registry login` invocation may rewrite ~/.npmrc.
|
|
175
|
-
*
|
|
176
|
-
* The self-heal is a **laptop** fix. CI pipelines run the unscoped
|
|
177
|
-
* `aws codeartifact login` DELIBERATELY — a host-scoped token is what lets
|
|
178
|
-
* pnpm pull upstream-cached public packages through CodeArtifact — so in a
|
|
179
|
-
* runner the "hijack" line is load-bearing and deleting it would break the
|
|
180
|
-
* install we were asked not to touch. `--ci` is the one signal that says so.
|
|
181
|
-
*
|
|
182
|
-
* Extracted (and tested) rather than left inline because "this changes no CI
|
|
183
|
-
* behaviour" is a promise about the code, not about the workflow files we
|
|
184
|
-
* happen not to have edited.
|
|
185
|
-
*/
|
|
186
40
|
export declare function shouldRepairUserNpmrc(opts: Pick<RegistryLoginOptions, "ci">): boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Repair a hijacked ~/.npmrc: remove an unscoped `registry=<codeartifact>`
|
|
189
|
-
* line if one is present, after taking a timestamped backup.
|
|
190
|
-
*
|
|
191
|
-
* `aws codeartifact login` run WITHOUT `--namespace @mesh-tech` writes that
|
|
192
|
-
* line, and nothing in this CLI used to remove it — so one bare login made
|
|
193
|
-
* CodeArtifact the default registry forever, and every public `npm install`
|
|
194
|
-
* started failing with E401 12 hours later when the token expired. We write
|
|
195
|
-
* the correct (scoped) state; this is the missing repair of the wrong state.
|
|
196
|
-
*
|
|
197
|
-
* Never throws — a repair failure must not fail an otherwise-good login.
|
|
198
|
-
*/
|
|
199
41
|
export declare function repairUnscopedRegistry(npmrcPath?: string): {
|
|
200
42
|
removed: string | null;
|
|
201
43
|
backupPath?: string;
|
|
202
44
|
error?: string;
|
|
203
45
|
};
|
|
204
|
-
/**
|
|
205
|
-
* Check that ~/.npmrc is in a working state for @mesh-tech installs: a
|
|
206
|
-
* CodeArtifact token that the registry actually accepts, and no unscoped
|
|
207
|
-
* `registry=` hijacking public npm.
|
|
208
|
-
*
|
|
209
|
-
* A substring match on the file (the old check) reported "valid" for an
|
|
210
|
-
* expired token AND for a hijacked default registry — precisely the state
|
|
211
|
-
* `mesh registry status` exists to catch.
|
|
212
|
-
*/
|
|
213
46
|
export interface RegistryTokenCheck {
|
|
214
|
-
/** Token accepted by the registry AND no unscoped `registry=` hijack. */
|
|
215
47
|
valid: boolean;
|
|
216
|
-
/** The probe's verdict, so callers can tell "broken" from "unverifiable". */
|
|
217
48
|
state: RegistryTokenState;
|
|
218
49
|
endpoint?: string;
|
|
219
50
|
reason?: string;
|
|
220
51
|
hijackLine?: string;
|
|
221
52
|
}
|
|
222
|
-
/**
|
|
223
|
-
* The `Registry session:` line of `mesh registry status`. Pure; exported for
|
|
224
|
-
* the message test.
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* renderRegistrySessionLine(null); // → "No registry session — run: mesh registry login"
|
|
228
|
-
*/
|
|
229
53
|
export declare function renderRegistrySessionLine(session: {
|
|
230
54
|
email: string;
|
|
231
55
|
expiresAt: string;
|
|
232
56
|
} | null, now?: number): string;
|
|
233
57
|
export declare function checkExistingToken(): Promise<RegistryTokenCheck>;
|
|
234
|
-
/**
|
|
235
|
-
* `mesh registry status` — returns the process exit code instead of calling
|
|
236
|
-
* `process.exit`, so the "broken" vs "unverifiable" distinction is testable.
|
|
237
|
-
*
|
|
238
|
-
* Exit 1 is for faults the user can act on right now: a missing or expired
|
|
239
|
-
* token, or an unscoped CodeArtifact `registry=` line (locally detectable, and
|
|
240
|
-
* broken regardless of the network). An **unreachable** registry is neither —
|
|
241
|
-
* it warns and exits 0, because the remediation we'd print (`mesh registry
|
|
242
|
-
* login`) cannot work offline either, and the same rule already governs the
|
|
243
|
-
* `mesh init` doctor.
|
|
244
|
-
*/
|
|
245
58
|
export declare function runRegistryStatus(opts?: {
|
|
246
|
-
/** Test seam — defaults to the real ~/.npmrc + live registry probe. */
|
|
247
59
|
check?: () => Promise<RegistryTokenCheck>;
|
|
248
|
-
/** Test seam — defaults to the cached registry session. */
|
|
249
60
|
session?: ReturnType<typeof readRegistrySession>;
|
|
250
61
|
}): Promise<number>;
|
|
251
62
|
export interface RegistryLoginOptions {
|
|
252
63
|
role?: string;
|
|
253
64
|
ci?: boolean;
|
|
254
65
|
skipNpmrc?: boolean;
|
|
255
|
-
/** AWS SSO profile (e.g. mesh-dev) — auto-runs `aws sso login` when stale */
|
|
256
66
|
profile?: string;
|
|
257
|
-
/** Assume the registry's publisher role (from --role or the registry's SSM export) */
|
|
258
67
|
publish?: boolean;
|
|
259
|
-
/**
|
|
260
|
-
* Try the Zitadel-gated registry broker before the AWS paths. Default true.
|
|
261
|
-
* `--no-broker` forces the AWS chain (commander sets this to false).
|
|
262
|
-
*/
|
|
263
68
|
broker?: boolean;
|
|
264
|
-
/** Sign in with the device-code flow instead of the browser callback (headless / SSH). */
|
|
265
69
|
device?: boolean;
|
|
266
70
|
}
|
|
267
|
-
/**
|
|
268
|
-
* The full registry-auth sequence (CodeArtifact token → ~/.npmrc → project
|
|
269
|
-
* .npmrc). `context` matters only to `--publish` (the publisher role comes
|
|
270
|
-
* from that context's SSM export) and to the explicit AWS chain
|
|
271
|
-
* (`--no-broker` / `--ci`, where a cached platform session can assume a
|
|
272
|
-
* role); on the default read path it is ignored, because the registry is
|
|
273
|
-
* global.
|
|
274
|
-
*
|
|
275
|
-
* Fails by throwing `MeshCliError` rather than exiting, so a caller that runs
|
|
276
|
-
* this in-process (the `mesh init` wizard, the app-tenant doctor's `--fix`)
|
|
277
|
-
* can report the outcome and carry on.
|
|
278
|
-
*
|
|
279
|
-
* @example
|
|
280
|
-
* await runRegistryLogin(undefined, {}); // a laptop: broker, browser if needed
|
|
281
|
-
* await runRegistryLogin(undefined, { ci: true }); // a runner: ambient AWS creds only
|
|
282
|
-
*/
|
|
283
71
|
export declare function runRegistryLogin(context: string | undefined, opts: RegistryLoginOptions): Promise<void>;
|
|
284
|
-
/**
|
|
285
|
-
* The error for a failed `aws codeartifact login`, built from WHY the AWS
|
|
286
|
-
* chain was the path taken — so the text can only ever describe something
|
|
287
|
-
* that actually happened on this run.
|
|
288
|
-
*
|
|
289
|
-
* Three shapes:
|
|
290
|
-
*
|
|
291
|
-
* - `--profile`: the profile's AWS identity cannot read the registry. That
|
|
292
|
-
* flag is for deployers whose account is allowed to; anyone else should drop
|
|
293
|
-
* it and take the broker path, which needs no AWS at all.
|
|
294
|
-
* - broker unavailable / no session: the broker was tried and printed a
|
|
295
|
-
* warning; this names that warning and the two ways forward.
|
|
296
|
-
* - an explicit AWS flag (`--no-broker`, `--ci`, `--publish`): the caller asked
|
|
297
|
-
* for the AWS chain, so the fix is the AWS credentials, not the broker.
|
|
298
|
-
*
|
|
299
|
-
* Pure; exported for the message tests.
|
|
300
|
-
*
|
|
301
|
-
* @example
|
|
302
|
-
* describeAwsChainFailure({ kind: "skipped-profile", profile: "ctdev" }); // "AWS profile 'ctdev' cannot read…"
|
|
303
|
-
*/
|
|
304
72
|
export declare function describeAwsChainFailure(outcome: BrokerOutcome): string;
|
|
305
73
|
export declare function registerRegistryCommands(program: Command): void;
|
|
306
|
-
//# sourceMappingURL=registry.d.ts.map
|