@mesh-tech/mesh-cli 0.40.10 → 0.40.12

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.
Files changed (54) hide show
  1. package/dist/bin/{mesh.auth-preflight-RCZH7V34.js → mesh.auth-preflight-BGI5LPLN.js} +1 -1
  2. package/dist/bin/{mesh.chunk-TFOKVJ34.js → mesh.chunk-3WJGDNHA.js} +71 -27
  3. package/dist/bin/mesh.chunk-3WJGDNHA.js.map +6 -0
  4. package/dist/bin/{mesh.chunk-SEIVILJR.js → mesh.chunk-4XX62O6Z.js} +1 -1
  5. package/dist/bin/{mesh.chunk-SOX2CJMU.js → mesh.chunk-DYWR76EO.js} +1 -1
  6. package/dist/bin/{mesh.chunk-N55Y3YII.js → mesh.chunk-EHLBX24J.js} +1 -1
  7. package/dist/bin/{mesh.chunk-M23VKWSF.js → mesh.chunk-GLG5JBI7.js} +23 -24
  8. package/dist/bin/mesh.chunk-GLG5JBI7.js.map +6 -0
  9. package/dist/bin/{mesh.chunk-TG4FBJK3.js → mesh.chunk-O5CP4NPZ.js} +2 -2
  10. package/dist/bin/{mesh.chunk-NT2NPR7J.js → mesh.chunk-O677AU5E.js} +1 -1
  11. package/dist/bin/{mesh.chunk-CA4LI762.js → mesh.chunk-WT27GBE4.js} +1 -1
  12. package/dist/bin/{mesh.chunk-CN6PMHQ5.js → mesh.chunk-YKW256CK.js} +3 -3
  13. package/dist/bin/{mesh.create-app-QRAZVRA3.js → mesh.create-app-GQIGCZNI.js} +3 -3
  14. package/dist/bin/{mesh.dev-token-server-DIECW5KC.js → mesh.dev-token-server-IJUVRBWI.js} +2 -2
  15. package/dist/bin/mesh.js +9 -9
  16. package/dist/bin/{mesh.login-J3QPALUS.js → mesh.login-N5LPLRRX.js} +2 -2
  17. package/dist/bin/{mesh.platform-setup-SNIAJTWJ.js → mesh.platform-setup-PCDLE2EI.js} +1 -1
  18. package/dist/bin/{mesh.program-T57YYRF5.js → mesh.program-WSFVQU7P.js} +9 -9
  19. package/dist/bin/{mesh.registry-UTIC3OY2.js → mesh.registry-5U4L6256.js} +4 -4
  20. package/dist/bin/{mesh.registry-identity-Y4Y5WFQ3.js → mesh.registry-identity-6UPUHKO2.js} +3 -3
  21. package/dist/bin/{mesh.review-command-LYTUNZ5G.js → mesh.review-command-MLBWVHF7.js} +3 -3
  22. package/dist/bin/{mesh.start-OWIKVKN6.js → mesh.start-24YIFB4O.js} +2 -2
  23. package/dist/bin/{mesh.wizard-QL5SQ47K.js → mesh.wizard-6HMOBC5L.js} +7 -7
  24. package/dist/build-info.json +2 -2
  25. package/dist/src/commands/local/index.js +5 -7
  26. package/dist/src/commands/local/seed-zitadel.d.ts +18 -0
  27. package/dist/src/commands/local/seed-zitadel.js +53 -19
  28. package/dist/src/commands/temporal.js.map +1 -1
  29. package/fragments/base/index.ts.hbs +5 -2
  30. package/package.json +3 -3
  31. package/stack/docker-compose.hub.yml +6 -1
  32. package/templates/api-auth/index.ts.hbs +2 -1
  33. package/templates/api-role-gating/index.ts.hbs +2 -1
  34. package/templates/apps-repo/npmrc.hbs +5 -0
  35. package/dist/bin/mesh.chunk-M23VKWSF.js.map +0 -6
  36. package/dist/bin/mesh.chunk-TFOKVJ34.js.map +0 -6
  37. /package/dist/bin/{mesh.auth-preflight-RCZH7V34.js.map → mesh.auth-preflight-BGI5LPLN.js.map} +0 -0
  38. /package/dist/bin/{mesh.chunk-SEIVILJR.js.map → mesh.chunk-4XX62O6Z.js.map} +0 -0
  39. /package/dist/bin/{mesh.chunk-SOX2CJMU.js.map → mesh.chunk-DYWR76EO.js.map} +0 -0
  40. /package/dist/bin/{mesh.chunk-N55Y3YII.js.map → mesh.chunk-EHLBX24J.js.map} +0 -0
  41. /package/dist/bin/{mesh.chunk-TG4FBJK3.js.map → mesh.chunk-O5CP4NPZ.js.map} +0 -0
  42. /package/dist/bin/{mesh.chunk-NT2NPR7J.js.map → mesh.chunk-O677AU5E.js.map} +0 -0
  43. /package/dist/bin/{mesh.chunk-CA4LI762.js.map → mesh.chunk-WT27GBE4.js.map} +0 -0
  44. /package/dist/bin/{mesh.chunk-CN6PMHQ5.js.map → mesh.chunk-YKW256CK.js.map} +0 -0
  45. /package/dist/bin/{mesh.create-app-QRAZVRA3.js.map → mesh.create-app-GQIGCZNI.js.map} +0 -0
  46. /package/dist/bin/{mesh.dev-token-server-DIECW5KC.js.map → mesh.dev-token-server-IJUVRBWI.js.map} +0 -0
  47. /package/dist/bin/{mesh.login-J3QPALUS.js.map → mesh.login-N5LPLRRX.js.map} +0 -0
  48. /package/dist/bin/{mesh.platform-setup-SNIAJTWJ.js.map → mesh.platform-setup-PCDLE2EI.js.map} +0 -0
  49. /package/dist/bin/{mesh.program-T57YYRF5.js.map → mesh.program-WSFVQU7P.js.map} +0 -0
  50. /package/dist/bin/{mesh.registry-UTIC3OY2.js.map → mesh.registry-5U4L6256.js.map} +0 -0
  51. /package/dist/bin/{mesh.registry-identity-Y4Y5WFQ3.js.map → mesh.registry-identity-6UPUHKO2.js.map} +0 -0
  52. /package/dist/bin/{mesh.review-command-LYTUNZ5G.js.map → mesh.review-command-MLBWVHF7.js.map} +0 -0
  53. /package/dist/bin/{mesh.start-OWIKVKN6.js.map → mesh.start-24YIFB4O.js.map} +0 -0
  54. /package/dist/bin/{mesh.wizard-QL5SQ47K.js.map → mesh.wizard-6HMOBC5L.js.map} +0 -0
@@ -107,7 +107,7 @@ async function registryPreflight(opts) {
107
107
  const probe = await probeRegistryToken(opts);
108
108
  let session = null;
109
109
  try {
110
- const { readRegistrySession } = await import("./mesh.registry-identity-Y4Y5WFQ3.js");
110
+ const { readRegistrySession } = await import("./mesh.registry-identity-6UPUHKO2.js");
111
111
  session = readRegistrySession();
112
112
  } catch {
113
113
  }
@@ -15,7 +15,7 @@ import {
15
15
  runLoginFlow,
16
16
  tokenStillValid,
17
17
  writeContextConfig
18
- } from "./mesh.chunk-TFOKVJ34.js";
18
+ } from "./mesh.chunk-3WJGDNHA.js";
19
19
  import {
20
20
  logInfo
21
21
  } from "./mesh.chunk-WFFDF346.js";
@@ -5,7 +5,7 @@ import {
5
5
  readStackConfig,
6
6
  resolveAwsCredentials,
7
7
  resolveStackOption
8
- } from "./mesh.chunk-TFOKVJ34.js";
8
+ } from "./mesh.chunk-3WJGDNHA.js";
9
9
  import {
10
10
  isAwsErrorCode
11
11
  } from "./mesh.chunk-MCBMHWXP.js";
@@ -7,22 +7,22 @@ import {
7
7
  parseInstanceIndex,
8
8
  resolveSecretsContext,
9
9
  setCommand
10
- } from "./mesh.chunk-N55Y3YII.js";
10
+ } from "./mesh.chunk-EHLBX24J.js";
11
11
  import {
12
12
  cliReferenceStaleness,
13
13
  resolveCliRuntime,
14
14
  runPortalCommand
15
- } from "./mesh.chunk-NT2NPR7J.js";
15
+ } from "./mesh.chunk-O677AU5E.js";
16
16
  import {
17
17
  registerAppCommands,
18
18
  registerCreateAppCommand
19
- } from "./mesh.chunk-TG4FBJK3.js";
19
+ } from "./mesh.chunk-O5CP4NPZ.js";
20
20
  import {
21
21
  PLATFORM_SETUP_DEFAULTS
22
- } from "./mesh.chunk-CA4LI762.js";
22
+ } from "./mesh.chunk-WT27GBE4.js";
23
23
  import {
24
24
  registerRegistryCommands
25
- } from "./mesh.chunk-CN6PMHQ5.js";
25
+ } from "./mesh.chunk-YKW256CK.js";
26
26
  import {
27
27
  registerSkillsCommands,
28
28
  resolveTargetRoot,
@@ -49,6 +49,7 @@ import {
49
49
  getDatabaseUrl,
50
50
  getPlatformBastionInfo,
51
51
  getValidToken,
52
+ hubAuthComposeEnv,
52
53
  idpEndpoints,
53
54
  mockIdpComposeEnv,
54
55
  pickLaunchHostEnv,
@@ -77,7 +78,7 @@ import {
77
78
  waitForPort,
78
79
  worktreeStackName,
79
80
  writeEnvFile
80
- } from "./mesh.chunk-TFOKVJ34.js";
81
+ } from "./mesh.chunk-3WJGDNHA.js";
81
82
  import {
82
83
  COMPOSE_PROJECT,
83
84
  DEFAULT_HUB_PORT,
@@ -126,7 +127,7 @@ import {
126
127
  homeNpmrcPath,
127
128
  isNpmAuthError,
128
129
  probeRegistryToken
129
- } from "./mesh.chunk-SEIVILJR.js";
130
+ } from "./mesh.chunk-4XX62O6Z.js";
130
131
  import {
131
132
  createVcsFolderReader,
132
133
  deriveVcsBaseUrl,
@@ -1541,7 +1542,7 @@ var DOCS_PREVIEW_PORT = "4410";
1541
1542
  var CLI_REFERENCE_PATH = "docs/portal/generated/cli-reference.md";
1542
1543
  async function renderCliReference() {
1543
1544
  const [{ createProgram: createProgram2 }, { extractCliReference, renderCliReferenceMarkdown }] = await Promise.all([
1544
- import("./mesh.program-T57YYRF5.js"),
1545
+ import("./mesh.program-WSFVQU7P.js"),
1545
1546
  import("./mesh.cli-reference-H3TOPIET.js")
1546
1547
  ]);
1547
1548
  return renderCliReferenceMarkdown(extractCliReference(createProgram2()));
@@ -1613,7 +1614,7 @@ function registerDocsCommand(program) {
1613
1614
  "Serve the Mesh docs locally \u2014 detached in a tmux session by default; the working tree in a mesh-platform checkout, or the published @mesh-tech/docs artifact (role-gated registry) anywhere else"
1614
1615
  ).option("-v, --version <version>", "docs version to serve (== the @mesh-tech/* baseline it describes); default: latest", void 0).option("-p, --port <port>", "port to serve on (0 picks a free one)", "4400").option("--dev", "in a checkout: run the Zudoku dev server (HMR) in the foreground, for authoring", false).option("--foreground", "serve in the foreground (the agent/CI path; automatic when not a TTY)", false).action(
1615
1616
  (opts) => guarded(async () => {
1616
- const { runDocsStart } = await import("./mesh.start-OWIKVKN6.js");
1617
+ const { runDocsStart } = await import("./mesh.start-24YIFB4O.js");
1617
1618
  await runDocsStart({
1618
1619
  repoRoot: findRepoRoot(process.cwd()),
1619
1620
  version: opts.version,
@@ -1625,13 +1626,13 @@ function registerDocsCommand(program) {
1625
1626
  );
1626
1627
  docs.command("stop").description(`Stop the detached docs server (the tmux session "${"mesh-docs"}")`).action(
1627
1628
  () => guarded(async () => {
1628
- const { runDocsStop } = await import("./mesh.start-OWIKVKN6.js");
1629
+ const { runDocsStop } = await import("./mesh.start-24YIFB4O.js");
1629
1630
  runDocsStop();
1630
1631
  })()
1631
1632
  );
1632
1633
  docs.command("serve-static", { hidden: true }).option("--root <dir>", "built site root", "").option("--port <port>", "port", "4400").action(
1633
1634
  (opts) => guarded(async () => {
1634
- const { runDocsServeStatic } = await import("./mesh.start-OWIKVKN6.js");
1635
+ const { runDocsServeStatic } = await import("./mesh.start-24YIFB4O.js");
1635
1636
  await runDocsServeStatic(opts);
1636
1637
  })()
1637
1638
  );
@@ -1674,7 +1675,7 @@ function registerDocsCommand(program) {
1674
1675
  );
1675
1676
  docs.command("list").description("List the published docs versions (each is an @mesh-tech/* baseline)").action(
1676
1677
  () => guarded(async () => {
1677
- const { runDocsList } = await import("./mesh.start-OWIKVKN6.js");
1678
+ const { runDocsList } = await import("./mesh.start-24YIFB4O.js");
1678
1679
  await runDocsList();
1679
1680
  })()
1680
1681
  );
@@ -2197,7 +2198,7 @@ async function registryChecks(args) {
2197
2198
  const { fix, profile } = args;
2198
2199
  const probe = args.probe ?? probeRegistryToken;
2199
2200
  const login = args.login ?? (async () => {
2200
- const { runRegistryLogin } = await import("./mesh.registry-UTIC3OY2.js");
2201
+ const { runRegistryLogin } = await import("./mesh.registry-5U4L6256.js");
2201
2202
  await runRegistryLogin(void 0, profile ? { profile } : {});
2202
2203
  });
2203
2204
  const REGISTRY_FIX = registryFixCommand(profile);
@@ -2353,7 +2354,7 @@ function registerInitCommands(program) {
2353
2354
  `nothing deployed yet \u2014 scaffold a tenant platform repo for \`<tenant>.<env>\` (default env: ${PLATFORM_SETUP_DEFAULTS.env}) and print its deploy sequence`
2354
2355
  ).option("--region <region>", `--new-platform: AWS region (default: ${PLATFORM_SETUP_DEFAULTS.region})`).option("--domain <domain>", "--new-platform: base public domain you control; the core stack creates the zone {env}.{domain} and stops at the mesh-gateway Ingress until you delegate its NS records. No default \u2014 a placeholder scaffolds a zone that can never validate").option("--state-bucket <bucket>", "--new-platform: Pulumi state S3 bucket (default: {tenant}-mesh-platform-pulumi-state)").option("--create-state-bucket", "--new-platform: create the state bucket (versioned) if it does not exist").option("--no-create-state-bucket", "--new-platform: never create the state bucket; print the aws command instead").option("--dir <path>", "--new-platform: where to scaffold the platform repo (default: ./{tenant}-mesh-platform)").option("--device", "device-code sign-in for the registry and platform steps (headless / SSH)").option("--profile <aws-profile>", "AWS profile this machine uses: read the registry without the broker (deployers only), and the profile a --new-platform stack config references").option("--skip-repo", "do not bootstrap, check or record anything in the current repo", false).option("--yes", "accept every default and never prompt", false).option("--json", "one JSON document on stdout ({tenant, mode, steps, next}); human output on stderr", false).action(
2355
2356
  async (opts) => {
2356
- const { runInitWizard } = await import("./mesh.wizard-QL5SQ47K.js");
2357
+ const { runInitWizard } = await import("./mesh.wizard-6HMOBC5L.js");
2357
2358
  const code = await runInitWizard(opts);
2358
2359
  if (code !== 0) process.exitCode = code;
2359
2360
  }
@@ -2369,7 +2370,7 @@ function registerInitCommands(program) {
2369
2370
  throw new MeshCliError(`Invalid tenant name '${tenant}' (lowercase alphanumeric + dashes).`);
2370
2371
  }
2371
2372
  const interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY);
2372
- const { resolvePlatformSetup, scaffoldPlatformRepo, ensureStateBucket, renderPlatformNextSteps } = await import("./mesh.platform-setup-SNIAJTWJ.js");
2373
+ const { resolvePlatformSetup, scaffoldPlatformRepo, ensureStateBucket, renderPlatformNextSteps } = await import("./mesh.platform-setup-PCDLE2EI.js");
2373
2374
  const setup = await resolvePlatformSetup(tenant, opts, {
2374
2375
  prompts: interactive && !opts.yes ? await setupPrompts() : void 0,
2375
2376
  interactive
@@ -3209,12 +3210,10 @@ Re-running start from here may recreate shared containers with this checkout's c
3209
3210
  );
3210
3211
  }
3211
3212
  ensureHubAuthImage();
3212
- const hubEnv = { MESH_HUB_VERSION: hubVersion };
3213
- if (hubAuth) {
3214
- hubEnv.MESH_HUB_OAUTH2_CLIENT_ID = hubAuth.clientId;
3215
- hubEnv.MESH_HUB_OAUTH2_CLIENT_SECRET = hubAuth.clientSecret;
3216
- hubEnv.MESH_HUB_OAUTH2_COOKIE_SECRET = hubAuth.cookieSecret;
3217
- }
3213
+ const hubEnv = {
3214
+ MESH_HUB_VERSION: hubVersion,
3215
+ ...hubAuth ? hubAuthComposeEnv(hubAuth) : {}
3216
+ };
3218
3217
  await composeStreamed(["up", "-d"], {
3219
3218
  hub: true,
3220
3219
  idps: opts.withIdps,
@@ -3373,7 +3372,7 @@ function registerMcpCommands(program) {
3373
3372
  "--secret <id>",
3374
3373
  "Secrets Manager secret holding the Integration credential (default: the deployed ExternalService's own secret)"
3375
3374
  ).action(async (manifest, opts) => {
3376
- const { runMcpReviewCommand } = await import("./mesh.review-command-LYTUNZ5G.js");
3375
+ const { runMcpReviewCommand } = await import("./mesh.review-command-MLBWVHF7.js");
3377
3376
  try {
3378
3377
  await runMcpReviewCommand(manifest, opts);
3379
3378
  } catch (error) {
@@ -3408,7 +3407,7 @@ function registerMcpCommands(program) {
3408
3407
  `No pnpm-workspace.yaml above ${serveDir}: the worker image installs this package from a pnpm workspace, so it must be in one.`
3409
3408
  );
3410
3409
  } else if (!membership.member && membership.suggestedGlob) {
3411
- const { ensureWorkspaceGlobs } = await import("./mesh.create-app-QRAZVRA3.js");
3410
+ const { ensureWorkspaceGlobs } = await import("./mesh.create-app-GQIGCZNI.js");
3412
3411
  const added = ensureWorkspaceGlobs(path9.dirname(membership.workspaceFile), [
3413
3412
  membership.suggestedGlob
3414
3413
  ]);
@@ -6401,7 +6400,7 @@ async function resolveToken(opts) {
6401
6400
  if (opts.token) return opts.token;
6402
6401
  if (process.env.VCS_TOKEN) return process.env.VCS_TOKEN;
6403
6402
  if (opts.context) {
6404
- const { getValidToken: getValidToken2 } = await import("./mesh.login-J3QPALUS.js");
6403
+ const { getValidToken: getValidToken2 } = await import("./mesh.login-N5LPLRRX.js");
6405
6404
  const token = await getValidToken2(opts.context);
6406
6405
  if (token) return token;
6407
6406
  }