@mesh-tech/mesh-cli 0.20.1 → 0.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/bin/mesh.d.ts +0 -12
- package/dist/bin/mesh.js +99 -50
- package/dist/bin/mesh.js.map +2 -3
- 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 +4 -88
- package/dist/src/commands/create-app.js +16 -155
- 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 +5 -116
- package/dist/src/commands/init/wizard.js +42 -110
- 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.map +0 -1
- 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 +1 -1
- package/skills/core/SKILL.md +10 -11
- 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,34 +1,12 @@
|
|
|
1
1
|
import { execFile } from "node:child_process";
|
|
2
2
|
import { promisify } from "node:util";
|
|
3
3
|
export const execFileAsync = promisify(execFile);
|
|
4
|
-
/** Strip a bearer token out of an error before it is surfaced.
|
|
5
|
-
*
|
|
6
|
-
* The vcs git calls authenticate by putting the token in argv
|
|
7
|
-
* (`-c http.extraHeader=Authorization: Bearer <jwt>`), and `execFile` puts the
|
|
8
|
-
* whole argv into the message it throws. So an ordinary mistake — a wrong repo
|
|
9
|
-
* name, a typo'd host — prints a live credential into the terminal, the CI log,
|
|
10
|
-
* or an agent transcript — a `mesh vcs clone` against a mistyped host would
|
|
11
|
-
* otherwise emit the full JWT.
|
|
12
|
-
*
|
|
13
|
-
* Folds `stderr` into the message on the way, because that is where git's
|
|
14
|
-
* actual reason lives ("repository not found", "Authentication failed") and it
|
|
15
|
-
* can carry the token too.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* try {
|
|
19
|
-
* await execFileAsync("git", ["-c", `http.extraHeader=Authorization: Bearer ${token}`, "clone", url]);
|
|
20
|
-
* } catch (err) {
|
|
21
|
-
* throw redactToken(err, token); // the JWT reads as `<redacted-token>`
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
4
|
export function redactToken(err, token) {
|
|
25
5
|
const base = err instanceof Error ? err.message : String(err);
|
|
26
6
|
const stderr = typeof err?.stderr === "string"
|
|
27
7
|
? err.stderr.trim()
|
|
28
8
|
: "";
|
|
29
9
|
const combined = stderr && !base.includes(stderr) ? `${base}\n${stderr}` : base;
|
|
30
|
-
// Guard: splitting on "" inserts the marker between every character, turning
|
|
31
|
-
// a token-free failure into unreadable confetti.
|
|
32
10
|
const message = token ? combined.split(token).join("<redacted-token>") : combined;
|
|
33
11
|
const out = new Error(message);
|
|
34
12
|
const code = err?.code;
|
|
@@ -36,15 +14,6 @@ export function redactToken(err, token) {
|
|
|
36
14
|
out.code = code;
|
|
37
15
|
return out;
|
|
38
16
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Run git with a bearer token in argv, redacting it from any failure.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* const { stdout } = await gitWithAuth(
|
|
44
|
-
* ["-c", `http.extraHeader=Authorization: Bearer ${token}`, "ls-remote", url],
|
|
45
|
-
* token,
|
|
46
|
-
* );
|
|
47
|
-
*/
|
|
48
17
|
export async function gitWithAuth(args, token, cwd) {
|
|
49
18
|
try {
|
|
50
19
|
return await execFileAsync("git", args, cwd ? { cwd } : {});
|
|
@@ -53,18 +22,11 @@ export async function gitWithAuth(args, token, cwd) {
|
|
|
53
22
|
throw redactToken(err, token);
|
|
54
23
|
}
|
|
55
24
|
}
|
|
56
|
-
/** https://host/git/<repo> (origin remote) → { baseUrl: https://host, repo }. */
|
|
57
25
|
export function parseRemote(remoteUrl) {
|
|
58
26
|
const m = remoteUrl.trim().match(/^(https?:\/\/[^/]+)\/git\/([^/]+?)(?:\.git)?$/);
|
|
59
27
|
return m ? { baseUrl: m[1], repo: m[2] } : null;
|
|
60
28
|
}
|
|
61
29
|
export async function resolveTarget(opts) {
|
|
62
|
-
// An explicit base URL (flag or env) overrides only the BASE URL — it must
|
|
63
|
-
// not suppress origin-derived repo resolution. Commands like `propose` carry
|
|
64
|
-
// no repo argument and rely on the clone's origin remote; returning early
|
|
65
|
-
// here with `repo: undefined` (the prior behaviour) broke them whenever
|
|
66
|
-
// VCS_URL/--url was set. So resolve the repo independently: explicit repo →
|
|
67
|
-
// origin-derived → undefined.
|
|
68
30
|
const explicitBase = opts.url ?? process.env.VCS_URL;
|
|
69
31
|
let originTarget = null;
|
|
70
32
|
try {
|
|
@@ -74,7 +36,6 @@ export async function resolveTarget(opts) {
|
|
|
74
36
|
originTarget = parseRemote(stdout);
|
|
75
37
|
}
|
|
76
38
|
catch {
|
|
77
|
-
// not in a clone
|
|
78
39
|
}
|
|
79
40
|
const baseUrl = (explicitBase ?? originTarget?.baseUrl)?.replace(/\/$/, "");
|
|
80
41
|
if (!baseUrl) {
|
|
@@ -95,7 +56,6 @@ export async function resolveToken(opts) {
|
|
|
95
56
|
}
|
|
96
57
|
throw new Error("no token: pass --token, set VCS_TOKEN, or pass --context <platform-context> (after mesh login)");
|
|
97
58
|
}
|
|
98
|
-
/** Minimal authenticated JSON call against the vcs API. */
|
|
99
59
|
export async function vcsApi(baseUrl, token, path, method = "GET", body) {
|
|
100
60
|
const res = await fetch(`${baseUrl}${path}`, {
|
|
101
61
|
method,
|
|
@@ -111,4 +71,3 @@ export async function vcsApi(baseUrl, token, path, method = "GET", body) {
|
|
|
111
71
|
}
|
|
112
72
|
return data;
|
|
113
73
|
}
|
|
114
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -10,4 +10,3 @@ export declare function draftsSubmitCommand(repo: string, draftId: string, opts:
|
|
|
10
10
|
note?: string;
|
|
11
11
|
}): Promise<void>;
|
|
12
12
|
export declare function draftsDiscardCommand(repo: string, draftId: string, opts: CommonOpts): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=drafts.d.ts.map
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `mesh vcs get <repo> <path>` — read a SPECIFIC path (a file or subtree) from
|
|
3
|
-
* a repo, never the whole repo. The discretionary doc-pull the conversation
|
|
4
|
-
* `references[]` catalog points at: a `pull` bundle lists which repos/docs a
|
|
5
|
-
* conversation touched, and this fetches just the ones the agent/user wants.
|
|
6
|
-
*
|
|
7
|
-
* Resolves the vcs service either from an agent target (`--target`, via the
|
|
8
|
-
* shared agent-targets registry → derived `vcs.<baseDomain>` + mesh-login
|
|
9
|
-
* token) or directly (`--url` + `--token`/`--context`).
|
|
10
|
-
*/
|
|
11
1
|
import { writeFile, mkdir } from "node:fs/promises";
|
|
12
2
|
import { join, dirname } from "node:path";
|
|
13
3
|
import { createVcsFolderReader, deriveVcsBaseUrl } from "@mesh-tech/agent-targets";
|
|
@@ -58,4 +48,3 @@ export async function getCommand(repo, path, opts) {
|
|
|
58
48
|
await reader.cleanup();
|
|
59
49
|
}
|
|
60
50
|
}
|
|
61
|
-
//# sourceMappingURL=get.js.map
|
|
@@ -61,4 +61,3 @@ export function registerVcsCommands(program) {
|
|
|
61
61
|
.option("--note <note>", "note to reviewers")).action(draftsSubmitCommand);
|
|
62
62
|
withCommon(drafts.command("discard <repo> <id>").description("Discard a draft")).action(draftsDiscardCommand);
|
|
63
63
|
}
|
|
64
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -3,32 +3,7 @@ export interface FileChange {
|
|
|
3
3
|
status: string;
|
|
4
4
|
path: string;
|
|
5
5
|
}
|
|
6
|
-
/** Parse `git status --porcelain -z` output into adds/modifies/deletes.
|
|
7
|
-
*
|
|
8
|
-
* Porcelain -z format: records are NUL-terminated. Normal record: `XY PATH`.
|
|
9
|
-
* Rename/copy record (X or Y is R/C): `XY PATH\0ORIGPATH` — the FOLLOWING NUL
|
|
10
|
-
* field is the source/original path. Renames expand to a delete of the old path
|
|
11
|
-
* plus a write of the new path. Copies only emit a write of the new path (the
|
|
12
|
-
* source still exists on disk). This stateful walk avoids mis-parsing the bare
|
|
13
|
-
* orig-path token as a status-prefixed record.
|
|
14
|
-
*/
|
|
15
6
|
export declare function parseStatus(out: string): FileChange[];
|
|
16
|
-
/** Build one write operation, choosing an encoding by what the bytes actually are.
|
|
17
|
-
*
|
|
18
|
-
* The test is a UTF-8 round trip, not a file-extension list: a file is text
|
|
19
|
-
* precisely when decoding and re-encoding reproduces it byte for byte. Reading
|
|
20
|
-
* everything as `"utf8"` does not fail on a PNG — it replaces every invalid byte
|
|
21
|
-
* with U+FFFD and proposes a corrupt file that looks perfectly normal in the
|
|
22
|
-
* diff.
|
|
23
|
-
*
|
|
24
|
-
* Text files send a plain UTF-8 string; binary files send base64.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* await writeOp(process.cwd(), "docs/note.md");
|
|
28
|
-
* // → { op: "write", path: "docs/note.md", content: "# Note\n" }
|
|
29
|
-
* await writeOp(process.cwd(), "img/logo.png");
|
|
30
|
-
* // → { op: "write", path: "img/logo.png", content: "iVBORw0…", encoding: "base64" }
|
|
31
|
-
*/
|
|
32
7
|
export declare function writeOp(cwd: string, path: string): Promise<{
|
|
33
8
|
op: "write";
|
|
34
9
|
path: string;
|
|
@@ -42,4 +17,3 @@ export interface ProposeOpts extends CommonOpts {
|
|
|
42
17
|
mergeParent?: string;
|
|
43
18
|
}
|
|
44
19
|
export declare function proposeCommand(opts: ProposeOpts): Promise<void>;
|
|
45
|
-
//# sourceMappingURL=propose.d.ts.map
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { execFileAsync, resolveTarget, resolveToken, vcsApi, } from "./common.js";
|
|
4
|
-
/** Parse `git status --porcelain -z` output into adds/modifies/deletes.
|
|
5
|
-
*
|
|
6
|
-
* Porcelain -z format: records are NUL-terminated. Normal record: `XY PATH`.
|
|
7
|
-
* Rename/copy record (X or Y is R/C): `XY PATH\0ORIGPATH` — the FOLLOWING NUL
|
|
8
|
-
* field is the source/original path. Renames expand to a delete of the old path
|
|
9
|
-
* plus a write of the new path. Copies only emit a write of the new path (the
|
|
10
|
-
* source still exists on disk). This stateful walk avoids mis-parsing the bare
|
|
11
|
-
* orig-path token as a status-prefixed record.
|
|
12
|
-
*/
|
|
13
4
|
export function parseStatus(out) {
|
|
14
5
|
const tokens = out.split("\0");
|
|
15
6
|
const changes = [];
|
|
@@ -18,15 +9,15 @@ export function parseStatus(out) {
|
|
|
18
9
|
const entry = tokens[i];
|
|
19
10
|
if (!entry) {
|
|
20
11
|
i++;
|
|
21
|
-
continue;
|
|
12
|
+
continue;
|
|
22
13
|
}
|
|
23
|
-
const status = entry.slice(0, 2);
|
|
14
|
+
const status = entry.slice(0, 2);
|
|
24
15
|
const newPath = entry.slice(3);
|
|
25
16
|
const isRename = status[0] === "R" || status[1] === "R";
|
|
26
17
|
const isCopy = !isRename && (status[0] === "C" || status[1] === "C");
|
|
27
18
|
if (isRename || isCopy) {
|
|
28
19
|
const origPath = tokens[i + 1] ?? "";
|
|
29
|
-
i += 2;
|
|
20
|
+
i += 2;
|
|
30
21
|
if (isRename && origPath && !origPath.endsWith("/")) {
|
|
31
22
|
changes.push({ status: "D", path: origPath });
|
|
32
23
|
}
|
|
@@ -42,22 +33,6 @@ export function parseStatus(out) {
|
|
|
42
33
|
}
|
|
43
34
|
return changes;
|
|
44
35
|
}
|
|
45
|
-
/** Build one write operation, choosing an encoding by what the bytes actually are.
|
|
46
|
-
*
|
|
47
|
-
* The test is a UTF-8 round trip, not a file-extension list: a file is text
|
|
48
|
-
* precisely when decoding and re-encoding reproduces it byte for byte. Reading
|
|
49
|
-
* everything as `"utf8"` does not fail on a PNG — it replaces every invalid byte
|
|
50
|
-
* with U+FFFD and proposes a corrupt file that looks perfectly normal in the
|
|
51
|
-
* diff.
|
|
52
|
-
*
|
|
53
|
-
* Text files send a plain UTF-8 string; binary files send base64.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* await writeOp(process.cwd(), "docs/note.md");
|
|
57
|
-
* // → { op: "write", path: "docs/note.md", content: "# Note\n" }
|
|
58
|
-
* await writeOp(process.cwd(), "img/logo.png");
|
|
59
|
-
* // → { op: "write", path: "img/logo.png", content: "iVBORw0…", encoding: "base64" }
|
|
60
|
-
*/
|
|
61
36
|
export async function writeOp(cwd, path) {
|
|
62
37
|
const buf = await readFile(join(cwd, path));
|
|
63
38
|
const asUtf8 = buf.toString("utf8");
|
|
@@ -73,9 +48,6 @@ export async function proposeCommand(opts) {
|
|
|
73
48
|
throw new Error("could not determine repo from the origin remote (pass --url from a clone)");
|
|
74
49
|
}
|
|
75
50
|
const token = await resolveToken(opts);
|
|
76
|
-
// --untracked-files=all: a brand-new directory otherwise collapses to a
|
|
77
|
-
// single "?? dir/" entry, which parseStatus skips — silently dropping the
|
|
78
|
-
// new files inside it from the proposal.
|
|
79
51
|
const { stdout: statusOut } = await execFileAsync("git", ["status", "--porcelain", "-z", "--untracked-files=all"], { cwd });
|
|
80
52
|
const changes = parseStatus(statusOut);
|
|
81
53
|
if (changes.length === 0) {
|
|
@@ -85,8 +57,6 @@ export async function proposeCommand(opts) {
|
|
|
85
57
|
const operations = await Promise.all(changes.map(async (c) => c.status.startsWith("D")
|
|
86
58
|
? { op: "delete", path: c.path }
|
|
87
59
|
: await writeOp(cwd, c.path)));
|
|
88
|
-
// New proposals diff against the clone's HEAD; revisions against the
|
|
89
|
-
// proposal's current head (the author proposed from this clone).
|
|
90
60
|
let baseCommit;
|
|
91
61
|
if (opts.revise) {
|
|
92
62
|
const state = (await vcsApi(target.baseUrl, token, `/v1/repos/${target.repo}/proposals/${opts.revise}`));
|
|
@@ -111,4 +81,3 @@ export async function proposeCommand(opts) {
|
|
|
111
81
|
const data = (await vcsApi(target.baseUrl, token, path, "POST", body));
|
|
112
82
|
console.log(`proposal ${data.proposalId} @ ${data.sha.slice(0, 8)} — review: mesh vcs show ${target.repo} ${data.proposalId} --url ${target.baseUrl}`);
|
|
113
83
|
}
|
|
114
|
-
//# sourceMappingURL=propose.js.map
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import { type CommonOpts } from "./common.js";
|
|
2
|
-
/** Resolve the caller's paths against the repo's actual file list.
|
|
3
|
-
*
|
|
4
|
-
* A path may name a file or a directory. Directory matches are taken on a path
|
|
5
|
-
* SEGMENT boundary — `products/foo` must not sweep in `products/foo-v2/`, which
|
|
6
|
-
* is what a bare `startsWith` would do and is not recoverable once merged.
|
|
7
|
-
*
|
|
8
|
-
* A path that matches nothing throws rather than being skipped: a delete that
|
|
9
|
-
* silently drops one of its arguments is worse than one that refuses, because
|
|
10
|
-
* the proposal still looks successful.
|
|
11
|
-
*/
|
|
12
2
|
export declare function expandPathsToDeletions(repoFiles: string[], requested: string[]): string[];
|
|
13
3
|
export interface RmOpts extends CommonOpts {
|
|
14
4
|
message?: string;
|
|
15
5
|
dryRun?: boolean;
|
|
16
6
|
}
|
|
17
7
|
export declare function rmCommand(repo: string, paths: string[], opts: RmOpts): Promise<void>;
|
|
18
|
-
//# sourceMappingURL=rm.d.ts.map
|
|
@@ -2,20 +2,9 @@ import { mkdtemp, rm as rmrf } from "node:fs/promises";
|
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { gitWithAuth, resolveToken, vcsApi } from "./common.js";
|
|
5
|
-
/** Strip the cosmetic bits git and shells add: `./` prefix, trailing slashes. */
|
|
6
5
|
function normalize(p) {
|
|
7
6
|
return p.trim().replace(/^\.\//, "").replace(/\/+$/, "");
|
|
8
7
|
}
|
|
9
|
-
/** Resolve the caller's paths against the repo's actual file list.
|
|
10
|
-
*
|
|
11
|
-
* A path may name a file or a directory. Directory matches are taken on a path
|
|
12
|
-
* SEGMENT boundary — `products/foo` must not sweep in `products/foo-v2/`, which
|
|
13
|
-
* is what a bare `startsWith` would do and is not recoverable once merged.
|
|
14
|
-
*
|
|
15
|
-
* A path that matches nothing throws rather than being skipped: a delete that
|
|
16
|
-
* silently drops one of its arguments is worse than one that refuses, because
|
|
17
|
-
* the proposal still looks successful.
|
|
18
|
-
*/
|
|
19
8
|
export function expandPathsToDeletions(repoFiles, requested) {
|
|
20
9
|
const out = new Set();
|
|
21
10
|
for (const raw of requested) {
|
|
@@ -44,8 +33,6 @@ export async function rmCommand(repo, paths, opts) {
|
|
|
44
33
|
if (!baseUrl)
|
|
45
34
|
throw new Error("rm requires --url or VCS_URL");
|
|
46
35
|
const token = await resolveToken(opts);
|
|
47
|
-
// Blobless + no checkout: we only need the tree listing and HEAD's sha, so
|
|
48
|
-
// don't pay for file contents we are about to delete.
|
|
49
36
|
const dir = await mkdtemp(join(tmpdir(), "mesh-vcs-rm-"));
|
|
50
37
|
try {
|
|
51
38
|
const git = (args, cwd) => gitWithAuth(args, token, cwd);
|
|
@@ -85,4 +72,3 @@ export async function rmCommand(repo, paths, opts) {
|
|
|
85
72
|
await rmrf(dir, { recursive: true, force: true });
|
|
86
73
|
}
|
|
87
74
|
}
|
|
88
|
-
//# sourceMappingURL=rm.js.map
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds the `enrichVcs` dep for `mesh conversations pull` by resolving a
|
|
3
|
-
* token + vcs URL for the target, then delegating to the shared
|
|
4
|
-
* `createVcsFolderReader` in `@mesh-tech/agent-targets` (same folder logic the
|
|
5
|
-
* MCP `agent_pull_conversation` tool uses).
|
|
6
|
-
*/
|
|
7
1
|
import { type VcsFolderReader } from "@mesh-tech/agent-targets";
|
|
8
2
|
import type { AgentApiTarget } from "./agent-api-client.js";
|
|
9
|
-
/**
|
|
10
|
-
* Resolve a token + vcs base URL for `target`, returning a `VcsFolderReader`
|
|
11
|
-
* ({ enrichVcs, cleanup }) or `undefined` (with a warning) when no token or vcs
|
|
12
|
-
* URL can be derived — so the pull proceeds IR-only rather than failing.
|
|
13
|
-
*/
|
|
14
3
|
export declare function buildVcsEnricher(target: AgentApiTarget): Promise<VcsFolderReader | undefined>;
|
|
15
|
-
//# sourceMappingURL=vcs-enrich.d.ts.map
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds the `enrichVcs` dep for `mesh conversations pull` by resolving a
|
|
3
|
-
* token + vcs URL for the target, then delegating to the shared
|
|
4
|
-
* `createVcsFolderReader` in `@mesh-tech/agent-targets` (same folder logic the
|
|
5
|
-
* MCP `agent_pull_conversation` tool uses).
|
|
6
|
-
*/
|
|
7
1
|
import { createVcsFolderReader, deriveVcsBaseUrl } from "@mesh-tech/agent-targets";
|
|
8
2
|
import { getValidToken } from "./login.js";
|
|
9
3
|
import { logWarn } from "../utils/log.js";
|
|
10
|
-
/**
|
|
11
|
-
* Resolve a token + vcs base URL for `target`, returning a `VcsFolderReader`
|
|
12
|
-
* ({ enrichVcs, cleanup }) or `undefined` (with a warning) when no token or vcs
|
|
13
|
-
* URL can be derived — so the pull proceeds IR-only rather than failing.
|
|
14
|
-
*/
|
|
15
4
|
export async function buildVcsEnricher(target) {
|
|
16
5
|
const vcsBaseUrl = deriveVcsBaseUrl(target.apiBaseUrl);
|
|
17
6
|
if (!vcsBaseUrl) {
|
|
@@ -25,4 +14,3 @@ export async function buildVcsEnricher(target) {
|
|
|
25
14
|
}
|
|
26
15
|
return createVcsFolderReader({ vcsBaseUrl, token });
|
|
27
16
|
}
|
|
28
|
-
//# sourceMappingURL=vcs-enrich.js.map
|
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* mesh vpn — Headscale VPN management commands
|
|
3
|
-
*
|
|
4
|
-
* Commands:
|
|
5
|
-
* mesh vpn connect <context> Connect to VPN via Tailscale + OIDC
|
|
6
|
-
* mesh vpn disconnect Disconnect from VPN
|
|
7
|
-
* mesh vpn status Show VPN control plane status
|
|
8
|
-
* mesh vpn api-key Create a Headscale API key
|
|
9
|
-
* mesh vpn pre-auth-key Create a pre-authentication key for a user
|
|
10
|
-
* mesh vpn users List registered VPN users
|
|
11
|
-
*
|
|
12
|
-
* All commands shell out to kubectl. The user must have kubeconfig
|
|
13
|
-
* configured for the target cluster (e.g., via `aws eks update-kubeconfig`).
|
|
14
|
-
*/
|
|
15
1
|
import { Command } from "commander";
|
|
16
|
-
/** Split a platform context ("mesh.dev") into its tenant + env. Pure. */
|
|
17
2
|
export declare function parseContextTenantEnv(context: string): {
|
|
18
3
|
tenant: string;
|
|
19
4
|
env: string;
|
|
20
5
|
};
|
|
21
|
-
/** Return Tailscale's BackendState, or null if tailscale is not running. */
|
|
22
6
|
export declare function tailscaleBackendState(): string | null;
|
|
23
7
|
export declare function registerVpnCommands(program: Command): void;
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|