@mesh-tech/mesh-cli 0.40.9 → 0.40.11
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.auth-preflight-AUFQ2FGD.js → mesh.auth-preflight-BGI5LPLN.js} +1 -1
- package/dist/bin/{mesh.chunk-7HTKSUWR.js → mesh.chunk-3WJGDNHA.js} +86 -33
- package/dist/bin/mesh.chunk-3WJGDNHA.js.map +6 -0
- package/dist/bin/{mesh.chunk-6SSOVZOI.js → mesh.chunk-4XX62O6Z.js} +1 -1
- package/dist/bin/{mesh.chunk-HJGMOEUG.js → mesh.chunk-DYWR76EO.js} +1 -1
- package/dist/bin/{mesh.chunk-YE2WIY3Y.js → mesh.chunk-EHLBX24J.js} +1 -1
- package/dist/bin/{mesh.chunk-HYXH4YMU.js → mesh.chunk-GLG5JBI7.js} +23 -24
- package/dist/bin/mesh.chunk-GLG5JBI7.js.map +6 -0
- package/dist/bin/{mesh.chunk-F44A3ACW.js → mesh.chunk-O5CP4NPZ.js} +2 -2
- package/dist/bin/{mesh.chunk-QPGAPLPU.js → mesh.chunk-O677AU5E.js} +1 -1
- package/dist/bin/{mesh.chunk-NSQJEX36.js → mesh.chunk-WT27GBE4.js} +1 -1
- package/dist/bin/{mesh.chunk-6AIG5OJM.js → mesh.chunk-YKW256CK.js} +3 -3
- package/dist/bin/{mesh.create-app-Z3RKSTBO.js → mesh.create-app-GQIGCZNI.js} +3 -3
- package/dist/bin/{mesh.dev-token-server-XG26C6IQ.js → mesh.dev-token-server-IJUVRBWI.js} +2 -2
- package/dist/bin/mesh.js +9 -9
- package/dist/bin/{mesh.login-3AWVGPCM.js → mesh.login-N5LPLRRX.js} +2 -2
- package/dist/bin/{mesh.platform-setup-2ZDMHRCI.js → mesh.platform-setup-PCDLE2EI.js} +1 -1
- package/dist/bin/{mesh.program-UKPDHRVX.js → mesh.program-WSFVQU7P.js} +9 -9
- package/dist/bin/{mesh.registry-JLQYFUNN.js → mesh.registry-5U4L6256.js} +4 -4
- package/dist/bin/{mesh.registry-identity-3AR27UGO.js → mesh.registry-identity-6UPUHKO2.js} +3 -3
- package/dist/bin/{mesh.review-command-LUVZQN2T.js → mesh.review-command-MLBWVHF7.js} +3 -3
- package/dist/bin/{mesh.start-OU2V6C7B.js → mesh.start-24YIFB4O.js} +2 -2
- package/dist/bin/{mesh.wizard-FCTT55KI.js → mesh.wizard-6HMOBC5L.js} +7 -7
- package/dist/build-info.json +2 -2
- package/dist/src/commands/local/index.js +5 -7
- package/dist/src/commands/local/seed-zitadel.d.ts +18 -0
- package/dist/src/commands/local/seed-zitadel.js +53 -19
- package/dist/src/commands/temporal.js +15 -6
- package/dist/src/commands/temporal.js.map +1 -1
- package/dist/src/utils/temporal-auth.d.ts +9 -1
- package/dist/src/utils/temporal-auth.js +16 -6
- package/fragments/base/index.ts.hbs +5 -2
- package/package.json +3 -3
- package/stack/docker-compose.hub.yml +6 -1
- package/templates/api-auth/index.ts.hbs +2 -1
- package/templates/api-role-gating/index.ts.hbs +2 -1
- package/dist/bin/mesh.chunk-7HTKSUWR.js.map +0 -6
- package/dist/bin/mesh.chunk-HYXH4YMU.js.map +0 -6
- /package/dist/bin/{mesh.auth-preflight-AUFQ2FGD.js.map → mesh.auth-preflight-BGI5LPLN.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-6SSOVZOI.js.map → mesh.chunk-4XX62O6Z.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-HJGMOEUG.js.map → mesh.chunk-DYWR76EO.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-YE2WIY3Y.js.map → mesh.chunk-EHLBX24J.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-F44A3ACW.js.map → mesh.chunk-O5CP4NPZ.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-QPGAPLPU.js.map → mesh.chunk-O677AU5E.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-NSQJEX36.js.map → mesh.chunk-WT27GBE4.js.map} +0 -0
- /package/dist/bin/{mesh.chunk-6AIG5OJM.js.map → mesh.chunk-YKW256CK.js.map} +0 -0
- /package/dist/bin/{mesh.create-app-Z3RKSTBO.js.map → mesh.create-app-GQIGCZNI.js.map} +0 -0
- /package/dist/bin/{mesh.dev-token-server-XG26C6IQ.js.map → mesh.dev-token-server-IJUVRBWI.js.map} +0 -0
- /package/dist/bin/{mesh.login-3AWVGPCM.js.map → mesh.login-N5LPLRRX.js.map} +0 -0
- /package/dist/bin/{mesh.platform-setup-2ZDMHRCI.js.map → mesh.platform-setup-PCDLE2EI.js.map} +0 -0
- /package/dist/bin/{mesh.program-UKPDHRVX.js.map → mesh.program-WSFVQU7P.js.map} +0 -0
- /package/dist/bin/{mesh.registry-JLQYFUNN.js.map → mesh.registry-5U4L6256.js.map} +0 -0
- /package/dist/bin/{mesh.registry-identity-3AR27UGO.js.map → mesh.registry-identity-6UPUHKO2.js.map} +0 -0
- /package/dist/bin/{mesh.review-command-LUVZQN2T.js.map → mesh.review-command-MLBWVHF7.js.map} +0 -0
- /package/dist/bin/{mesh.start-OU2V6C7B.js.map → mesh.start-24YIFB4O.js.map} +0 -0
- /package/dist/bin/{mesh.wizard-FCTT55KI.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-
|
|
110
|
+
const { readRegistrySession } = await import("./mesh.registry-identity-6UPUHKO2.js");
|
|
111
111
|
session = readRegistrySession();
|
|
112
112
|
} catch {
|
|
113
113
|
}
|
|
@@ -7,22 +7,22 @@ import {
|
|
|
7
7
|
parseInstanceIndex,
|
|
8
8
|
resolveSecretsContext,
|
|
9
9
|
setCommand
|
|
10
|
-
} from "./mesh.chunk-
|
|
10
|
+
} from "./mesh.chunk-EHLBX24J.js";
|
|
11
11
|
import {
|
|
12
12
|
cliReferenceStaleness,
|
|
13
13
|
resolveCliRuntime,
|
|
14
14
|
runPortalCommand
|
|
15
|
-
} from "./mesh.chunk-
|
|
15
|
+
} from "./mesh.chunk-O677AU5E.js";
|
|
16
16
|
import {
|
|
17
17
|
registerAppCommands,
|
|
18
18
|
registerCreateAppCommand
|
|
19
|
-
} from "./mesh.chunk-
|
|
19
|
+
} from "./mesh.chunk-O5CP4NPZ.js";
|
|
20
20
|
import {
|
|
21
21
|
PLATFORM_SETUP_DEFAULTS
|
|
22
|
-
} from "./mesh.chunk-
|
|
22
|
+
} from "./mesh.chunk-WT27GBE4.js";
|
|
23
23
|
import {
|
|
24
24
|
registerRegistryCommands
|
|
25
|
-
} from "./mesh.chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 = {
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
}
|