@mesh-tech/mesh-cli 0.34.0 → 0.34.2
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 +3 -2
- package/assets/intent/intent-claude-gate.mjs +1 -1
- package/dist/bin/mesh.js +268 -257
- package/dist/bin/mesh.js.map +3 -3
- package/dist/build-info.json +2 -2
- package/dist/src/commands/dev.js +2 -1
- package/dist/src/commands/init/platform-setup.js +3 -3
- package/dist/src/commands/init.js +2 -2
- package/dist/src/commands/local/helpers.js +2 -1
- package/dist/src/commands/local/seed.js +2 -2
- package/dist/src/commands/secrets/migrate-config.js +4 -11
- package/dist/src/commands/secrets/set.js +2 -6
- package/dist/src/commands/temporal.js +103 -95
- package/dist/src/commands/temporal.js.map +2 -2
- package/dist/src/docs/assemble.js +1 -1
- package/dist/src/docs/cli-reference.js +1 -1
- package/dist/src/index.js +9 -9
- package/dist/src/utils/aws-errors.d.ts +1 -0
- package/dist/src/utils/aws-errors.js +8 -0
- package/dist/src/utils/temporal-codec.js +3 -3
- package/fragments/base/index.ts.hbs +4 -0
- package/package.json +4 -4
- package/skills/core/SKILL.md +10 -7
- package/skills/pull-remote-agent-context/SKILL.md +1 -1
- package/templates/platform-repo/README.md.hbs +3 -2
- package/templates/platform-repo/core/Pulumi.{{tenant}}-{{env}}.yaml.hbs +22 -3
package/dist/bin/mesh.js
CHANGED
|
@@ -9,7 +9,7 @@ var __export = (target, all) => {
|
|
|
9
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
//
|
|
12
|
+
// packages/mesh-cli/src/utils/errors.ts
|
|
13
13
|
import chalk from "chalk";
|
|
14
14
|
function renderErrorBody(err) {
|
|
15
15
|
const message = err instanceof Error ? err.message : String(err);
|
|
@@ -53,7 +53,7 @@ function handleCliError(err) {
|
|
|
53
53
|
}
|
|
54
54
|
var MeshCliError, jsonPayloadEmitted;
|
|
55
55
|
var init_errors = __esm({
|
|
56
|
-
"
|
|
56
|
+
"packages/mesh-cli/src/utils/errors.ts"() {
|
|
57
57
|
"use strict";
|
|
58
58
|
MeshCliError = class extends Error {
|
|
59
59
|
remediation;
|
|
@@ -69,7 +69,7 @@ var init_errors = __esm({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
//
|
|
72
|
+
// packages/mesh-cli/src/utils/log.ts
|
|
73
73
|
import chalk2 from "chalk";
|
|
74
74
|
function logPrefix(opts) {
|
|
75
75
|
const enabled = opts.envFlag === "1" || opts.envFlag !== "0" && !opts.isTTY;
|
|
@@ -121,12 +121,12 @@ function startHeartbeat(label, intervalMs = 15e3) {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
var init_log = __esm({
|
|
124
|
-
"
|
|
124
|
+
"packages/mesh-cli/src/utils/log.ts"() {
|
|
125
125
|
"use strict";
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
//
|
|
129
|
+
// packages/mesh-cli/src/utils/mesh-json.ts
|
|
130
130
|
import * as fs from "fs";
|
|
131
131
|
import * as path from "path";
|
|
132
132
|
function isValidTenantName(value) {
|
|
@@ -170,13 +170,13 @@ function writeMeshJson(rootDir, data) {
|
|
|
170
170
|
}
|
|
171
171
|
var MESH_JSON;
|
|
172
172
|
var init_mesh_json = __esm({
|
|
173
|
-
"
|
|
173
|
+
"packages/mesh-cli/src/utils/mesh-json.ts"() {
|
|
174
174
|
"use strict";
|
|
175
175
|
MESH_JSON = "mesh.json";
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
//
|
|
179
|
+
// packages/mesh-cli/src/utils/context.ts
|
|
180
180
|
import * as fs2 from "fs";
|
|
181
181
|
import * as path2 from "path";
|
|
182
182
|
function findFileUpwardInRepo(filename, startDir = process.cwd()) {
|
|
@@ -488,7 +488,7 @@ function detectContext(stageArg, options = {}) {
|
|
|
488
488
|
return { tenant, stage, platformEnv, detectedTenant };
|
|
489
489
|
}
|
|
490
490
|
var init_context = __esm({
|
|
491
|
-
"
|
|
491
|
+
"packages/mesh-cli/src/utils/context.ts"() {
|
|
492
492
|
"use strict";
|
|
493
493
|
init_errors();
|
|
494
494
|
init_log();
|
|
@@ -496,7 +496,7 @@ var init_context = __esm({
|
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
|
|
499
|
-
//
|
|
499
|
+
// packages/mesh-cli/src/utils/bastion.ts
|
|
500
500
|
import { SSMClient, GetParameterCommand } from "@aws-sdk/client-ssm";
|
|
501
501
|
async function getPlatformBastionInfo(tenant, platformEnv, region) {
|
|
502
502
|
const ssm = new SSMClient(region ? { region } : {});
|
|
@@ -568,13 +568,13 @@ async function getPlatformBastionInfo(tenant, platformEnv, region) {
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
var init_bastion = __esm({
|
|
571
|
-
"
|
|
571
|
+
"packages/mesh-cli/src/utils/bastion.ts"() {
|
|
572
572
|
"use strict";
|
|
573
573
|
init_log();
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
576
|
|
|
577
|
-
//
|
|
577
|
+
// packages/mesh-cli/src/utils/credentials.ts
|
|
578
578
|
import {
|
|
579
579
|
SecretsManagerClient,
|
|
580
580
|
GetSecretValueCommand
|
|
@@ -633,13 +633,13 @@ function rewriteDatabaseUrl(url, options) {
|
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
var init_credentials = __esm({
|
|
636
|
-
"
|
|
636
|
+
"packages/mesh-cli/src/utils/credentials.ts"() {
|
|
637
637
|
"use strict";
|
|
638
638
|
init_log();
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
641
|
|
|
642
|
-
//
|
|
642
|
+
// packages/mesh-cli/src/utils/pulumi.ts
|
|
643
643
|
import { execFileSync } from "child_process";
|
|
644
644
|
import * as path3 from "path";
|
|
645
645
|
import * as fs3 from "fs";
|
|
@@ -705,12 +705,12 @@ function pulumiStackOutput(appRoot, key, extraArgs, env) {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
var init_pulumi = __esm({
|
|
708
|
-
"
|
|
708
|
+
"packages/mesh-cli/src/utils/pulumi.ts"() {
|
|
709
709
|
"use strict";
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
//
|
|
713
|
+
// packages/mesh-cli/src/utils/vpn.ts
|
|
714
714
|
import { execFile, execFileSync as execFileSync2 } from "node:child_process";
|
|
715
715
|
import { existsSync as existsSync4 } from "node:fs";
|
|
716
716
|
async function isVpnConnected() {
|
|
@@ -842,7 +842,7 @@ function unregisterDnsRecords(cfg, suffix) {
|
|
|
842
842
|
}
|
|
843
843
|
var TAILSCALE_PATHS, TAILSCALE_SOCKET_PATHS;
|
|
844
844
|
var init_vpn = __esm({
|
|
845
|
-
"
|
|
845
|
+
"packages/mesh-cli/src/utils/vpn.ts"() {
|
|
846
846
|
"use strict";
|
|
847
847
|
TAILSCALE_PATHS = [
|
|
848
848
|
"tailscale",
|
|
@@ -852,9 +852,9 @@ var init_vpn = __esm({
|
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
854
|
|
|
855
|
-
//
|
|
855
|
+
// packages/mesh-cli/src/utils/index.ts
|
|
856
856
|
var init_utils = __esm({
|
|
857
|
-
"
|
|
857
|
+
"packages/mesh-cli/src/utils/index.ts"() {
|
|
858
858
|
"use strict";
|
|
859
859
|
init_errors();
|
|
860
860
|
init_log();
|
|
@@ -866,7 +866,7 @@ var init_utils = __esm({
|
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
//
|
|
869
|
+
// packages/mesh-cli/src/commands/local/seed.ts
|
|
870
870
|
function localAwsEnv() {
|
|
871
871
|
return {
|
|
872
872
|
AWS_ENDPOINT_URL: LOCAL_AWS_ENDPOINT,
|
|
@@ -972,7 +972,7 @@ async function verifyFabric() {
|
|
|
972
972
|
`Local AWS fabric failed the ${payload.length}-byte Advanced-tier SSM round-trip (got ${roundTrip.Parameter?.Value?.length ?? 0} bytes back).`,
|
|
973
973
|
{
|
|
974
974
|
remediation: {
|
|
975
|
-
docs: "
|
|
975
|
+
docs: "packages/mesh-cli/stack/docker-compose.yml \u2014 swap the ministack image for motoserver/moto (design \xA72.5 fallback)"
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
);
|
|
@@ -987,7 +987,7 @@ async function verifyFabric() {
|
|
|
987
987
|
`Local AWS fabric's GetParametersByPath missed child parameter(s): ${missing.join(", ")} (splitKeys exports would not resolve).`,
|
|
988
988
|
{
|
|
989
989
|
remediation: {
|
|
990
|
-
docs: "
|
|
990
|
+
docs: "packages/mesh-cli/stack/docker-compose.yml \u2014 swap the ministack image for motoserver/moto (design \xA72.5 fallback)"
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
);
|
|
@@ -1071,7 +1071,7 @@ async function seedLocalPlatform() {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
var LOCAL_TENANT, LOCAL_ENV, LOCAL_AWS_ENDPOINT, LOCAL_AWS_REGION, ARTIFACTS_BUCKET, DATA_BUCKET, APP_TENANTS_PARAM, DATA_BUCKET_SEEDS, LOCAL_AWS_CONFIG, AWS_CONFIG, FABRIC_CHECK_PATH, TEMPORAL_NAMESPACE, TEMPORAL_ADDRESS;
|
|
1073
1073
|
var init_seed = __esm({
|
|
1074
|
-
"
|
|
1074
|
+
"packages/mesh-cli/src/commands/local/seed.ts"() {
|
|
1075
1075
|
"use strict";
|
|
1076
1076
|
init_log();
|
|
1077
1077
|
init_errors();
|
|
@@ -1110,7 +1110,18 @@ var init_seed = __esm({
|
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
1112
|
|
|
1113
|
-
//
|
|
1113
|
+
// packages/mesh-cli/src/utils/aws-errors.ts
|
|
1114
|
+
function isAwsErrorCode(err, code) {
|
|
1115
|
+
const e = err;
|
|
1116
|
+
return e?.name === code || e?.__type === code || e?.Code === code || e?.code === code || typeof e?.message === "string" && e.message.includes(code);
|
|
1117
|
+
}
|
|
1118
|
+
var init_aws_errors = __esm({
|
|
1119
|
+
"packages/mesh-cli/src/utils/aws-errors.ts"() {
|
|
1120
|
+
"use strict";
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
|
|
1124
|
+
// packages/mesh-cli/src/commands/local/helpers.ts
|
|
1114
1125
|
import * as net from "net";
|
|
1115
1126
|
import { execFileSync as execFileSync3 } from "child_process";
|
|
1116
1127
|
async function upsertLocalSecret(secretId, value, client) {
|
|
@@ -1120,7 +1131,7 @@ async function upsertLocalSecret(secretId, value, client) {
|
|
|
1120
1131
|
try {
|
|
1121
1132
|
await sm.send(new CreateSecretCommand4({ Name: secretId, SecretString: secretString }));
|
|
1122
1133
|
} catch (err) {
|
|
1123
|
-
if (err
|
|
1134
|
+
if (isAwsErrorCode(err, "ResourceExistsException")) {
|
|
1124
1135
|
await sm.send(new PutSecretValueCommand4({ SecretId: secretId, SecretString: secretString }));
|
|
1125
1136
|
} else {
|
|
1126
1137
|
throw err;
|
|
@@ -1199,9 +1210,10 @@ function describePortConflicts(conflicts, moveHints = /* @__PURE__ */ new Map())
|
|
|
1199
1210
|
}
|
|
1200
1211
|
var defaultPortConflictIo;
|
|
1201
1212
|
var init_helpers = __esm({
|
|
1202
|
-
"
|
|
1213
|
+
"packages/mesh-cli/src/commands/local/helpers.ts"() {
|
|
1203
1214
|
"use strict";
|
|
1204
1215
|
init_seed();
|
|
1216
|
+
init_aws_errors();
|
|
1205
1217
|
defaultPortConflictIo = {
|
|
1206
1218
|
dockerPs: () => {
|
|
1207
1219
|
try {
|
|
@@ -1230,7 +1242,7 @@ var init_helpers = __esm({
|
|
|
1230
1242
|
}
|
|
1231
1243
|
});
|
|
1232
1244
|
|
|
1233
|
-
//
|
|
1245
|
+
// packages/mesh-cli/src/utils/cache-home.ts
|
|
1234
1246
|
import fs4 from "node:fs";
|
|
1235
1247
|
import os from "node:os";
|
|
1236
1248
|
import path4 from "node:path";
|
|
@@ -1243,12 +1255,12 @@ function meshCacheDir(...segments) {
|
|
|
1243
1255
|
return dir;
|
|
1244
1256
|
}
|
|
1245
1257
|
var init_cache_home = __esm({
|
|
1246
|
-
"
|
|
1258
|
+
"packages/mesh-cli/src/utils/cache-home.ts"() {
|
|
1247
1259
|
"use strict";
|
|
1248
1260
|
}
|
|
1249
1261
|
});
|
|
1250
1262
|
|
|
1251
|
-
//
|
|
1263
|
+
// packages/mesh-cli/src/commands/local/stack.ts
|
|
1252
1264
|
var stack_exports = {};
|
|
1253
1265
|
__export(stack_exports, {
|
|
1254
1266
|
BASE_COMPOSE_FILE: () => BASE_COMPOSE_FILE,
|
|
@@ -1585,7 +1597,7 @@ async function probeEndpoint(endpoint) {
|
|
|
1585
1597
|
}
|
|
1586
1598
|
var COMPOSE_PROJECT, STACK_ENDPOINTS, DEFAULT_HUB_PORT, BASE_COMPOSE_FILE, HUB_OVERLAY_FILE, IDPS_OVERLAY_FILE, overlayServicesCache, ONE_SHOT_SERVICES;
|
|
1587
1599
|
var init_stack = __esm({
|
|
1588
|
-
"
|
|
1600
|
+
"packages/mesh-cli/src/commands/local/stack.ts"() {
|
|
1589
1601
|
"use strict";
|
|
1590
1602
|
init_helpers();
|
|
1591
1603
|
init_cache_home();
|
|
@@ -1696,7 +1708,7 @@ var init_stack = __esm({
|
|
|
1696
1708
|
}
|
|
1697
1709
|
});
|
|
1698
1710
|
|
|
1699
|
-
//
|
|
1711
|
+
// packages/mesh-cli/src/commands/skills.ts
|
|
1700
1712
|
var skills_exports = {};
|
|
1701
1713
|
__export(skills_exports, {
|
|
1702
1714
|
INTENT_RANGE: () => INTENT_RANGE,
|
|
@@ -1996,7 +2008,7 @@ function registerSkillsCommands(program2) {
|
|
|
1996
2008
|
}
|
|
1997
2009
|
var MANAGED_MARKER, FENCE_START, HOOK_RELATIVE, INTENT_RANGE, BASE_SKILL_PACKAGE;
|
|
1998
2010
|
var init_skills = __esm({
|
|
1999
|
-
"
|
|
2011
|
+
"packages/mesh-cli/src/commands/skills.ts"() {
|
|
2000
2012
|
"use strict";
|
|
2001
2013
|
init_log();
|
|
2002
2014
|
init_errors();
|
|
@@ -2009,7 +2021,7 @@ var init_skills = __esm({
|
|
|
2009
2021
|
}
|
|
2010
2022
|
});
|
|
2011
2023
|
|
|
2012
|
-
//
|
|
2024
|
+
// packages/mesh-cli/src/commands/app-check-resolve.ts
|
|
2013
2025
|
import * as fs7 from "node:fs";
|
|
2014
2026
|
import * as path7 from "node:path";
|
|
2015
2027
|
import { builtinModules } from "node:module";
|
|
@@ -2237,7 +2249,7 @@ function resolveProgramImports(appDir, options = {}) {
|
|
|
2237
2249
|
}
|
|
2238
2250
|
var CONDITIONS, EXTENSIONS, SCOPE, FILE_BUDGET, BUILTINS;
|
|
2239
2251
|
var init_app_check_resolve = __esm({
|
|
2240
|
-
"
|
|
2252
|
+
"packages/mesh-cli/src/commands/app-check-resolve.ts"() {
|
|
2241
2253
|
"use strict";
|
|
2242
2254
|
CONDITIONS = /* @__PURE__ */ new Set(["source", "node", "import", "require", "module", "module-sync", "default"]);
|
|
2243
2255
|
EXTENSIONS = ["", ".ts", ".tsx", ".js", ".mjs", ".cjs", "/index.ts", "/index.js", "/index.mjs"];
|
|
@@ -2247,7 +2259,7 @@ var init_app_check_resolve = __esm({
|
|
|
2247
2259
|
}
|
|
2248
2260
|
});
|
|
2249
2261
|
|
|
2250
|
-
//
|
|
2262
|
+
// packages/mesh-cli/src/utils/first-party-contexts.ts
|
|
2251
2263
|
function firstPartyDomainFor(context) {
|
|
2252
2264
|
if (!Object.hasOwn(FIRST_PARTY_CONTEXTS, context)) return null;
|
|
2253
2265
|
const domain = FIRST_PARTY_CONTEXTS[context];
|
|
@@ -2255,7 +2267,7 @@ function firstPartyDomainFor(context) {
|
|
|
2255
2267
|
}
|
|
2256
2268
|
var FIRST_PARTY_CONTEXTS;
|
|
2257
2269
|
var init_first_party_contexts = __esm({
|
|
2258
|
-
"
|
|
2270
|
+
"packages/mesh-cli/src/utils/first-party-contexts.ts"() {
|
|
2259
2271
|
"use strict";
|
|
2260
2272
|
FIRST_PARTY_CONTEXTS = Object.freeze({
|
|
2261
2273
|
// Verified 2026-08-14: https://cli.dev.platform.meshtech.io/.well-known/mesh.json
|
|
@@ -2269,7 +2281,7 @@ var init_first_party_contexts = __esm({
|
|
|
2269
2281
|
}
|
|
2270
2282
|
});
|
|
2271
2283
|
|
|
2272
|
-
//
|
|
2284
|
+
// packages/mesh-cli/src/utils/pid.ts
|
|
2273
2285
|
function unsignalableReason(pid) {
|
|
2274
2286
|
if (typeof pid !== "number") {
|
|
2275
2287
|
return `expected an integer, got ${typeof pid} (${String(pid)})`;
|
|
@@ -2304,14 +2316,14 @@ function assertSignalablePid(pid, source) {
|
|
|
2304
2316
|
}
|
|
2305
2317
|
var MIN_SIGNALABLE_PID;
|
|
2306
2318
|
var init_pid = __esm({
|
|
2307
|
-
"
|
|
2319
|
+
"packages/mesh-cli/src/utils/pid.ts"() {
|
|
2308
2320
|
"use strict";
|
|
2309
2321
|
init_errors();
|
|
2310
2322
|
MIN_SIGNALABLE_PID = 2;
|
|
2311
2323
|
}
|
|
2312
2324
|
});
|
|
2313
2325
|
|
|
2314
|
-
//
|
|
2326
|
+
// packages/mesh-cli/src/utils/tailscale-targets.ts
|
|
2315
2327
|
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
2316
2328
|
import * as fs8 from "node:fs";
|
|
2317
2329
|
import * as path8 from "node:path";
|
|
@@ -2361,7 +2373,7 @@ function resolveElbIp(host) {
|
|
|
2361
2373
|
}
|
|
2362
2374
|
var PORT_BLOCK, TUNNEL_NAME_BY_BASTION_KEY;
|
|
2363
2375
|
var init_tailscale_targets = __esm({
|
|
2364
|
-
"
|
|
2376
|
+
"packages/mesh-cli/src/utils/tailscale-targets.ts"() {
|
|
2365
2377
|
"use strict";
|
|
2366
2378
|
init_dev();
|
|
2367
2379
|
init_login();
|
|
@@ -2374,7 +2386,7 @@ var init_tailscale_targets = __esm({
|
|
|
2374
2386
|
}
|
|
2375
2387
|
});
|
|
2376
2388
|
|
|
2377
|
-
//
|
|
2389
|
+
// packages/mesh-cli/src/utils/socks-forward.ts
|
|
2378
2390
|
import * as net2 from "node:net";
|
|
2379
2391
|
function ipv4ToBytes(ip) {
|
|
2380
2392
|
const parts = ip.split(".");
|
|
@@ -2435,7 +2447,7 @@ function createForwarder(opts) {
|
|
|
2435
2447
|
}
|
|
2436
2448
|
var SOCKS_REPLY_MESSAGES;
|
|
2437
2449
|
var init_socks_forward = __esm({
|
|
2438
|
-
"
|
|
2450
|
+
"packages/mesh-cli/src/utils/socks-forward.ts"() {
|
|
2439
2451
|
"use strict";
|
|
2440
2452
|
SOCKS_REPLY_MESSAGES = {
|
|
2441
2453
|
0: "succeeded",
|
|
@@ -2451,7 +2463,7 @@ var init_socks_forward = __esm({
|
|
|
2451
2463
|
}
|
|
2452
2464
|
});
|
|
2453
2465
|
|
|
2454
|
-
//
|
|
2466
|
+
// packages/mesh-cli/src/utils/tunnel-ownership.ts
|
|
2455
2467
|
import * as crypto from "node:crypto";
|
|
2456
2468
|
import * as fs9 from "node:fs";
|
|
2457
2469
|
import * as net3 from "node:net";
|
|
@@ -2638,12 +2650,12 @@ function buildSquatterError(tenant, squatted, detail) {
|
|
|
2638
2650
|
].join("\n");
|
|
2639
2651
|
}
|
|
2640
2652
|
var init_tunnel_ownership = __esm({
|
|
2641
|
-
"
|
|
2653
|
+
"packages/mesh-cli/src/utils/tunnel-ownership.ts"() {
|
|
2642
2654
|
"use strict";
|
|
2643
2655
|
}
|
|
2644
2656
|
});
|
|
2645
2657
|
|
|
2646
|
-
//
|
|
2658
|
+
// packages/mesh-cli/src/utils/tailscale.ts
|
|
2647
2659
|
import * as fs10 from "node:fs";
|
|
2648
2660
|
import * as net4 from "node:net";
|
|
2649
2661
|
import * as os2 from "node:os";
|
|
@@ -3285,7 +3297,7 @@ async function runTunnels(tenant) {
|
|
|
3285
3297
|
}
|
|
3286
3298
|
var sleep, _launchdAvailable;
|
|
3287
3299
|
var init_tailscale = __esm({
|
|
3288
|
-
"
|
|
3300
|
+
"packages/mesh-cli/src/utils/tailscale.ts"() {
|
|
3289
3301
|
"use strict";
|
|
3290
3302
|
init_login();
|
|
3291
3303
|
init_aws_auth();
|
|
@@ -3300,7 +3312,7 @@ var init_tailscale = __esm({
|
|
|
3300
3312
|
}
|
|
3301
3313
|
});
|
|
3302
3314
|
|
|
3303
|
-
//
|
|
3315
|
+
// packages/mesh-cli/src/commands/vpn/tunnel.ts
|
|
3304
3316
|
import * as net5 from "node:net";
|
|
3305
3317
|
function deriveLoginServer(context) {
|
|
3306
3318
|
const cfg = getContextConfig(context);
|
|
@@ -3433,7 +3445,7 @@ function registerTunnelSubcommands(vpn) {
|
|
|
3433
3445
|
tunnel.command("__supervise <tenant>", { hidden: true }).action((tenant) => runTunnels(tenant));
|
|
3434
3446
|
}
|
|
3435
3447
|
var init_tunnel = __esm({
|
|
3436
|
-
"
|
|
3448
|
+
"packages/mesh-cli/src/commands/vpn/tunnel.ts"() {
|
|
3437
3449
|
"use strict";
|
|
3438
3450
|
init_log();
|
|
3439
3451
|
init_login();
|
|
@@ -3441,7 +3453,7 @@ var init_tunnel = __esm({
|
|
|
3441
3453
|
}
|
|
3442
3454
|
});
|
|
3443
3455
|
|
|
3444
|
-
//
|
|
3456
|
+
// packages/mesh-cli/src/commands/vpn/index.ts
|
|
3445
3457
|
import { execFileSync as execFileSync9 } from "child_process";
|
|
3446
3458
|
import * as net6 from "node:net";
|
|
3447
3459
|
function defaultNamespace(tenant, env) {
|
|
@@ -3871,7 +3883,7 @@ function registerVpnCommands(program2) {
|
|
|
3871
3883
|
}
|
|
3872
3884
|
var HEADSCALE_POD, HEADSCALE_CONTAINER;
|
|
3873
3885
|
var init_vpn2 = __esm({
|
|
3874
|
-
"
|
|
3886
|
+
"packages/mesh-cli/src/commands/vpn/index.ts"() {
|
|
3875
3887
|
"use strict";
|
|
3876
3888
|
init_utils();
|
|
3877
3889
|
init_login();
|
|
@@ -3882,7 +3894,7 @@ var init_vpn2 = __esm({
|
|
|
3882
3894
|
}
|
|
3883
3895
|
});
|
|
3884
3896
|
|
|
3885
|
-
//
|
|
3897
|
+
// packages/mesh-cli/src/commands/login.ts
|
|
3886
3898
|
var login_exports = {};
|
|
3887
3899
|
__export(login_exports, {
|
|
3888
3900
|
CONFIG_DIR: () => CONFIG_DIR,
|
|
@@ -4964,7 +4976,7 @@ async function discoverConfigForContext(context) {
|
|
|
4964
4976
|
}
|
|
4965
4977
|
var CONFIG_DIR, CONFIG_FILE, CREDENTIALS_FILE, REDIRECT_PORT, REDIRECT_URI, BASE_SCOPES, atomicWriteCounter, MAX_DEVICE_CODES, RESERVED_REGISTRY_CONTEXT, NO_REGISTRY_DEPRECATED, REGISTRY_SEPARATE_HINT;
|
|
4966
4978
|
var init_login = __esm({
|
|
4967
|
-
"
|
|
4979
|
+
"packages/mesh-cli/src/commands/login.ts"() {
|
|
4968
4980
|
"use strict";
|
|
4969
4981
|
init_log();
|
|
4970
4982
|
init_errors();
|
|
@@ -4988,7 +5000,7 @@ var init_login = __esm({
|
|
|
4988
5000
|
}
|
|
4989
5001
|
});
|
|
4990
5002
|
|
|
4991
|
-
//
|
|
5003
|
+
// packages/mesh-cli/src/utils/registry-broker.ts
|
|
4992
5004
|
function deriveRegistryBroker(context, getCfg = getContextConfig) {
|
|
4993
5005
|
const cfg = getCfg(context);
|
|
4994
5006
|
if (!cfg?.issuer) return null;
|
|
@@ -5071,14 +5083,14 @@ function realGrantDeps() {
|
|
|
5071
5083
|
}
|
|
5072
5084
|
var PUBLISHED_BROKER_TIMEOUT_MS;
|
|
5073
5085
|
var init_registry_broker = __esm({
|
|
5074
|
-
"
|
|
5086
|
+
"packages/mesh-cli/src/utils/registry-broker.ts"() {
|
|
5075
5087
|
"use strict";
|
|
5076
5088
|
init_login();
|
|
5077
5089
|
PUBLISHED_BROKER_TIMEOUT_MS = 15e3;
|
|
5078
5090
|
}
|
|
5079
5091
|
});
|
|
5080
5092
|
|
|
5081
|
-
//
|
|
5093
|
+
// packages/mesh-cli/src/utils/registry-identity.ts
|
|
5082
5094
|
var registry_identity_exports = {};
|
|
5083
5095
|
__export(registry_identity_exports, {
|
|
5084
5096
|
REGISTRY_ALIAS: () => REGISTRY_ALIAS,
|
|
@@ -5253,7 +5265,7 @@ function logRegistryIdentity(identity) {
|
|
|
5253
5265
|
}
|
|
5254
5266
|
var REGISTRY_ALIAS, REGISTRY_DOMAIN, REGISTRY_CREDENTIAL_KEY, RegistryIdentityError;
|
|
5255
5267
|
var init_registry_identity = __esm({
|
|
5256
|
-
"
|
|
5268
|
+
"packages/mesh-cli/src/utils/registry-identity.ts"() {
|
|
5257
5269
|
"use strict";
|
|
5258
5270
|
init_login();
|
|
5259
5271
|
init_aws_auth();
|
|
@@ -5283,7 +5295,7 @@ var init_registry_identity = __esm({
|
|
|
5283
5295
|
}
|
|
5284
5296
|
});
|
|
5285
5297
|
|
|
5286
|
-
//
|
|
5298
|
+
// packages/mesh-cli/src/utils/auth-preflight.ts
|
|
5287
5299
|
var auth_preflight_exports = {};
|
|
5288
5300
|
__export(auth_preflight_exports, {
|
|
5289
5301
|
REGISTRY_LOGIN_FIX: () => REGISTRY_LOGIN_FIX,
|
|
@@ -5465,7 +5477,7 @@ function appUsesMeshPackages(appRoot) {
|
|
|
5465
5477
|
}
|
|
5466
5478
|
var REGISTRY_LOGIN_FIX, REGISTRY_LOGIN_FIX_AWS, SSO_LOGIN_FIX, SSO_SESSION_SNIPPET;
|
|
5467
5479
|
var init_auth_preflight = __esm({
|
|
5468
|
-
"
|
|
5480
|
+
"packages/mesh-cli/src/utils/auth-preflight.ts"() {
|
|
5469
5481
|
"use strict";
|
|
5470
5482
|
REGISTRY_LOGIN_FIX = "mesh registry login";
|
|
5471
5483
|
REGISTRY_LOGIN_FIX_AWS = "mesh registry login --profile mesh-dev";
|
|
@@ -5477,7 +5489,7 @@ sso_registration_scopes = sso:account:access`;
|
|
|
5477
5489
|
}
|
|
5478
5490
|
});
|
|
5479
5491
|
|
|
5480
|
-
//
|
|
5492
|
+
// packages/mesh-cli/src/utils/aws-auth.ts
|
|
5481
5493
|
import * as fs13 from "fs";
|
|
5482
5494
|
import * as path13 from "path";
|
|
5483
5495
|
import {
|
|
@@ -5801,7 +5813,7 @@ async function resolveAwsCredentials(roleArn, appRoot, stack) {
|
|
|
5801
5813
|
}
|
|
5802
5814
|
var DEFAULT_REGION, MANAGED_START_PREFIX, MANAGED_START, MANAGED_END;
|
|
5803
5815
|
var init_aws_auth = __esm({
|
|
5804
|
-
"
|
|
5816
|
+
"packages/mesh-cli/src/utils/aws-auth.ts"() {
|
|
5805
5817
|
"use strict";
|
|
5806
5818
|
init_log();
|
|
5807
5819
|
init_auth_preflight();
|
|
@@ -5813,7 +5825,7 @@ var init_aws_auth = __esm({
|
|
|
5813
5825
|
}
|
|
5814
5826
|
});
|
|
5815
5827
|
|
|
5816
|
-
//
|
|
5828
|
+
// packages/mesh-cli/src/utils/vpn-join.ts
|
|
5817
5829
|
function resolveVpnJoinBroker(context, getCfg = getContextConfig) {
|
|
5818
5830
|
const cfg = getCfg(context);
|
|
5819
5831
|
if (cfg?.vpnJoinBroker) return cfg.vpnJoinBroker;
|
|
@@ -5849,13 +5861,13 @@ async function mintPreAuthKey(context, brokerUrl, deps) {
|
|
|
5849
5861
|
}
|
|
5850
5862
|
}
|
|
5851
5863
|
var init_vpn_join = __esm({
|
|
5852
|
-
"
|
|
5864
|
+
"packages/mesh-cli/src/utils/vpn-join.ts"() {
|
|
5853
5865
|
"use strict";
|
|
5854
5866
|
init_login();
|
|
5855
5867
|
}
|
|
5856
5868
|
});
|
|
5857
5869
|
|
|
5858
|
-
//
|
|
5870
|
+
// packages/mesh-cli/src/utils/pulumi-run.ts
|
|
5859
5871
|
function credProbeToPreflightError(probe, context) {
|
|
5860
5872
|
switch (probe.state) {
|
|
5861
5873
|
case "ok":
|
|
@@ -5925,7 +5937,7 @@ async function resolvePulumiEnv(opts) {
|
|
|
5925
5937
|
return { ...resolved.env };
|
|
5926
5938
|
}
|
|
5927
5939
|
var init_pulumi_run = __esm({
|
|
5928
|
-
"
|
|
5940
|
+
"packages/mesh-cli/src/utils/pulumi-run.ts"() {
|
|
5929
5941
|
"use strict";
|
|
5930
5942
|
init_log();
|
|
5931
5943
|
init_pulumi();
|
|
@@ -5934,7 +5946,7 @@ var init_pulumi_run = __esm({
|
|
|
5934
5946
|
}
|
|
5935
5947
|
});
|
|
5936
5948
|
|
|
5937
|
-
//
|
|
5949
|
+
// packages/mesh-cli/src/utils/kubeconfig.ts
|
|
5938
5950
|
import * as fs14 from "fs";
|
|
5939
5951
|
import * as os4 from "os";
|
|
5940
5952
|
import * as path14 from "path";
|
|
@@ -6008,12 +6020,12 @@ async function ensureKubeconfig(platformName, env, sessionName, deps = {}) {
|
|
|
6008
6020
|
return kubeconfigPath;
|
|
6009
6021
|
}
|
|
6010
6022
|
var init_kubeconfig = __esm({
|
|
6011
|
-
"
|
|
6023
|
+
"packages/mesh-cli/src/utils/kubeconfig.ts"() {
|
|
6012
6024
|
"use strict";
|
|
6013
6025
|
}
|
|
6014
6026
|
});
|
|
6015
6027
|
|
|
6016
|
-
//
|
|
6028
|
+
// packages/mesh-cli/src/utils/temporal-auth.ts
|
|
6017
6029
|
import { execFileSync as execFileSync11 } from "node:child_process";
|
|
6018
6030
|
async function resolveTemporalAuth(tenant, env, platformName = tenant) {
|
|
6019
6031
|
const { SSMClient: SSMClient5, GetParameterCommand: GetParameterCommand2 } = await import("@aws-sdk/client-ssm");
|
|
@@ -6140,13 +6152,13 @@ async function acquireTemporalBearer(vars = {}) {
|
|
|
6140
6152
|
return data.access_token;
|
|
6141
6153
|
}
|
|
6142
6154
|
var init_temporal_auth = __esm({
|
|
6143
|
-
"
|
|
6155
|
+
"packages/mesh-cli/src/utils/temporal-auth.ts"() {
|
|
6144
6156
|
"use strict";
|
|
6145
6157
|
init_log();
|
|
6146
6158
|
}
|
|
6147
6159
|
});
|
|
6148
6160
|
|
|
6149
|
-
//
|
|
6161
|
+
// packages/mesh-cli/src/utils/reachability.ts
|
|
6150
6162
|
import { createConnection } from "node:net";
|
|
6151
6163
|
function probeTcpReachable(host, port, timeoutMs = 1500) {
|
|
6152
6164
|
return new Promise((resolve21) => {
|
|
@@ -6186,12 +6198,12 @@ function probeConnectionHolds(host, port, timeoutMs = 800, holdMs = 25) {
|
|
|
6186
6198
|
});
|
|
6187
6199
|
}
|
|
6188
6200
|
var init_reachability = __esm({
|
|
6189
|
-
"
|
|
6201
|
+
"packages/mesh-cli/src/utils/reachability.ts"() {
|
|
6190
6202
|
"use strict";
|
|
6191
6203
|
}
|
|
6192
6204
|
});
|
|
6193
6205
|
|
|
6194
|
-
//
|
|
6206
|
+
// packages/mesh-cli/src/utils/workflow-fingerprint.ts
|
|
6195
6207
|
import { createHash as createHash2 } from "node:crypto";
|
|
6196
6208
|
import { existsSync as existsSync13, readFileSync as readFileSync13, readdirSync as readdirSync4 } from "node:fs";
|
|
6197
6209
|
import { dirname as dirname13, isAbsolute as isAbsolute2, join as join13, relative as relative4 } from "node:path";
|
|
@@ -6254,7 +6266,7 @@ function fingerprintWorkflowSource(appRoot, services = {}) {
|
|
|
6254
6266
|
}
|
|
6255
6267
|
var WORKFLOW_PACKAGE_DIRS, EXCLUDE;
|
|
6256
6268
|
var init_workflow_fingerprint = __esm({
|
|
6257
|
-
"
|
|
6269
|
+
"packages/mesh-cli/src/utils/workflow-fingerprint.ts"() {
|
|
6258
6270
|
"use strict";
|
|
6259
6271
|
WORKFLOW_PACKAGE_DIRS = [
|
|
6260
6272
|
"packages/agent-sdk/src",
|
|
@@ -6265,7 +6277,7 @@ var init_workflow_fingerprint = __esm({
|
|
|
6265
6277
|
}
|
|
6266
6278
|
});
|
|
6267
6279
|
|
|
6268
|
-
//
|
|
6280
|
+
// packages/mesh-cli/src/commands/dev-launch.ts
|
|
6269
6281
|
import * as fs15 from "fs";
|
|
6270
6282
|
import * as net7 from "net";
|
|
6271
6283
|
import * as path15 from "path";
|
|
@@ -6325,14 +6337,14 @@ function tryConnect(host, port, timeoutMs) {
|
|
|
6325
6337
|
}
|
|
6326
6338
|
var ENV_FILE_MODE, ENV_KEY_RE;
|
|
6327
6339
|
var init_dev_launch = __esm({
|
|
6328
|
-
"
|
|
6340
|
+
"packages/mesh-cli/src/commands/dev-launch.ts"() {
|
|
6329
6341
|
"use strict";
|
|
6330
6342
|
ENV_FILE_MODE = 384;
|
|
6331
6343
|
ENV_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
6332
6344
|
}
|
|
6333
6345
|
});
|
|
6334
6346
|
|
|
6335
|
-
//
|
|
6347
|
+
// packages/mesh-cli/src/commands/local/mocks.ts
|
|
6336
6348
|
import { execFileSync as execFileSync12 } from "child_process";
|
|
6337
6349
|
import * as fs16 from "fs";
|
|
6338
6350
|
import * as path16 from "path";
|
|
@@ -6823,7 +6835,7 @@ async function seedLocalMock(args) {
|
|
|
6823
6835
|
}
|
|
6824
6836
|
var EXTERNAL_MODES, DECL_DOCS, dockerProbes, SECRET_KEY_RE;
|
|
6825
6837
|
var init_mocks = __esm({
|
|
6826
|
-
"
|
|
6838
|
+
"packages/mesh-cli/src/commands/local/mocks.ts"() {
|
|
6827
6839
|
"use strict";
|
|
6828
6840
|
init_log();
|
|
6829
6841
|
init_errors();
|
|
@@ -6842,7 +6854,7 @@ var init_mocks = __esm({
|
|
|
6842
6854
|
}
|
|
6843
6855
|
});
|
|
6844
6856
|
|
|
6845
|
-
//
|
|
6857
|
+
// packages/api-registry/src/hub-roles.ts
|
|
6846
6858
|
function restrictedRoleBase(roleKey) {
|
|
6847
6859
|
const sep8 = roleKey.indexOf(HUB_ROLE_KEY_SEPARATOR);
|
|
6848
6860
|
const base = sep8 === -1 ? roleKey : roleKey.slice(0, sep8);
|
|
@@ -6875,7 +6887,7 @@ function hubOperatorRoleKeys(tenants) {
|
|
|
6875
6887
|
}
|
|
6876
6888
|
var HUB_STAFF_ROLES, HUB_RESTRICTED_ROLES, HUB_VENDOR_DOCS_ROLE, HUB_ADDON_ROLES, HUB_TIER_ROLES, HUB_BASE_ROLES, HUB_ROLE_KEY_SEPARATOR, HUB_ROLE_APP_SEPARATOR, RESTRICTED, ADDONS;
|
|
6877
6889
|
var init_hub_roles = __esm({
|
|
6878
|
-
"
|
|
6890
|
+
"packages/api-registry/src/hub-roles.ts"() {
|
|
6879
6891
|
"use strict";
|
|
6880
6892
|
HUB_STAFF_ROLES = ["ops", "admin"];
|
|
6881
6893
|
HUB_RESTRICTED_ROLES = ["developer", "auditor", "vendor", "docs"];
|
|
@@ -6896,11 +6908,11 @@ var init_hub_roles = __esm({
|
|
|
6896
6908
|
}
|
|
6897
6909
|
});
|
|
6898
6910
|
|
|
6899
|
-
//
|
|
6911
|
+
// packages/api-registry/src/index.ts
|
|
6900
6912
|
import { z } from "zod";
|
|
6901
6913
|
var rateLimitSpecSchema, rateLimitDefaultsSchema, integrationHealthSchema, apiSurfaceKindSchema, apiDocsSiteAudienceSchema, apiSurfaceSchema, apiRegistryEntrySchema, integrationStatusSchema, hubActAsExportsSchema;
|
|
6902
6914
|
var init_src = __esm({
|
|
6903
|
-
"
|
|
6915
|
+
"packages/api-registry/src/index.ts"() {
|
|
6904
6916
|
"use strict";
|
|
6905
6917
|
init_hub_roles();
|
|
6906
6918
|
rateLimitSpecSchema = z.object({
|
|
@@ -6983,7 +6995,7 @@ var init_src = __esm({
|
|
|
6983
6995
|
}
|
|
6984
6996
|
});
|
|
6985
6997
|
|
|
6986
|
-
//
|
|
6998
|
+
// packages/mesh-cli/src/commands/local/mock-idps.ts
|
|
6987
6999
|
import { execFileSync as execFileSync13 } from "child_process";
|
|
6988
7000
|
import * as fs17 from "fs";
|
|
6989
7001
|
import * as path17 from "path";
|
|
@@ -7029,7 +7041,7 @@ function ensureMockSamlSigningKey() {
|
|
|
7029
7041
|
}
|
|
7030
7042
|
var MOCK_SAML_PORT, MOCK_OIDC_PORT, MOCK_OIDC_SERVICE, idpEndpoints, MOCK_SAML_IDP_NAME, MOCK_OIDC_IDP_NAME, MOCK_OIDC_CLIENT_ID, MOCK_OIDC_CLIENT_SECRET, mockSamlMetadataUrl, mockOidcEndpoints, keyDir, mockIdpComposeEnv, buildMockSamlIdpBody, buildMockOauthIdpBody, missingLoginPolicyIdps;
|
|
7031
7043
|
var init_mock_idps = __esm({
|
|
7032
|
-
"
|
|
7044
|
+
"packages/mesh-cli/src/commands/local/mock-idps.ts"() {
|
|
7033
7045
|
"use strict";
|
|
7034
7046
|
init_cache_home();
|
|
7035
7047
|
init_errors();
|
|
@@ -7116,7 +7128,7 @@ var init_mock_idps = __esm({
|
|
|
7116
7128
|
}
|
|
7117
7129
|
});
|
|
7118
7130
|
|
|
7119
|
-
//
|
|
7131
|
+
// packages/mesh-cli/src/commands/local/seed-zitadel.ts
|
|
7120
7132
|
import * as fs18 from "fs";
|
|
7121
7133
|
import * as os5 from "os";
|
|
7122
7134
|
import * as path18 from "path";
|
|
@@ -7620,7 +7632,7 @@ async function seedMockIdps() {
|
|
|
7620
7632
|
}
|
|
7621
7633
|
var ZITADEL_ISSUER, LOGIN_CONTEXT, PLATFORM_ORG, CLI_PROJECT_NAME, CLI_APP_NAME, CLI_REDIRECT_URI, HUB_PROJECT_NAME, HUB_APP_NAME, hubRedirectUri, HUB_DEFAULT_REDIRECT_URI, HUB_ROLES, ZITADEL_SSM_PARAM, TEST_USERS_SSM_PREFIX, TEST_USERS, isAlreadyExists, ensureCliProject, ensureHubProject, OPS_HUB_SECRET_ID, LOCAL_SMTP, IDP_SEARCH_PATH, pickIdpIdByName;
|
|
7622
7634
|
var init_seed_zitadel = __esm({
|
|
7623
|
-
"
|
|
7635
|
+
"packages/mesh-cli/src/commands/local/seed-zitadel.ts"() {
|
|
7624
7636
|
"use strict";
|
|
7625
7637
|
init_src();
|
|
7626
7638
|
init_log();
|
|
@@ -7679,7 +7691,7 @@ var init_seed_zitadel = __esm({
|
|
|
7679
7691
|
}
|
|
7680
7692
|
});
|
|
7681
7693
|
|
|
7682
|
-
//
|
|
7694
|
+
// packages/mesh-cli/src/commands/local/auth-provision.ts
|
|
7683
7695
|
function authSecretPath(tenant, app, service) {
|
|
7684
7696
|
return `mesh/${tenant}/${LOCAL_ENV}/apps/${app}/zitadel/${service}`;
|
|
7685
7697
|
}
|
|
@@ -8042,7 +8054,7 @@ async function ensureAppTenantAuth(args) {
|
|
|
8042
8054
|
}
|
|
8043
8055
|
var ensureProject;
|
|
8044
8056
|
var init_auth_provision = __esm({
|
|
8045
|
-
"
|
|
8057
|
+
"packages/mesh-cli/src/commands/local/auth-provision.ts"() {
|
|
8046
8058
|
"use strict";
|
|
8047
8059
|
init_log();
|
|
8048
8060
|
init_seed();
|
|
@@ -8052,7 +8064,7 @@ var init_auth_provision = __esm({
|
|
|
8052
8064
|
}
|
|
8053
8065
|
});
|
|
8054
8066
|
|
|
8055
|
-
//
|
|
8067
|
+
// packages/mesh-cli/src/commands/local/dev-local.ts
|
|
8056
8068
|
import * as fs19 from "fs";
|
|
8057
8069
|
import * as path19 from "path";
|
|
8058
8070
|
function localAppNamespace(tenant, appName) {
|
|
@@ -8291,7 +8303,7 @@ async function ensureLocalPlatformRunning() {
|
|
|
8291
8303
|
}
|
|
8292
8304
|
var LOCAL_STACK_NAME, BASE_PORT;
|
|
8293
8305
|
var init_dev_local = __esm({
|
|
8294
|
-
"
|
|
8306
|
+
"packages/mesh-cli/src/commands/local/dev-local.ts"() {
|
|
8295
8307
|
"use strict";
|
|
8296
8308
|
init_mocks();
|
|
8297
8309
|
init_helpers();
|
|
@@ -8308,7 +8320,7 @@ var init_dev_local = __esm({
|
|
|
8308
8320
|
}
|
|
8309
8321
|
});
|
|
8310
8322
|
|
|
8311
|
-
//
|
|
8323
|
+
// packages/mesh-cli/src/commands/local/docker-runner.ts
|
|
8312
8324
|
import { execFileSync as execFileSync14 } from "child_process";
|
|
8313
8325
|
import * as fs20 from "fs";
|
|
8314
8326
|
import * as path20 from "path";
|
|
@@ -8395,7 +8407,7 @@ function dockerDevRestart(sessionName, service) {
|
|
|
8395
8407
|
}
|
|
8396
8408
|
var DEV_RUNNER_IMAGE;
|
|
8397
8409
|
var init_docker_runner = __esm({
|
|
8398
|
-
"
|
|
8410
|
+
"packages/mesh-cli/src/commands/local/docker-runner.ts"() {
|
|
8399
8411
|
"use strict";
|
|
8400
8412
|
init_dev_local();
|
|
8401
8413
|
init_cache_home();
|
|
@@ -8403,7 +8415,7 @@ var init_docker_runner = __esm({
|
|
|
8403
8415
|
}
|
|
8404
8416
|
});
|
|
8405
8417
|
|
|
8406
|
-
//
|
|
8418
|
+
// packages/mesh-cli/src/utils/stack-flag.ts
|
|
8407
8419
|
function resolveStackSelector(opts) {
|
|
8408
8420
|
if (opts.stack != null) return { stack: opts.stack, usedDeprecatedStage: false };
|
|
8409
8421
|
if (opts.stage != null) return { stack: opts.stage, usedDeprecatedStage: true };
|
|
@@ -8421,14 +8433,14 @@ function resolveStackOption(opts) {
|
|
|
8421
8433
|
}
|
|
8422
8434
|
var warnedOnce;
|
|
8423
8435
|
var init_stack_flag = __esm({
|
|
8424
|
-
"
|
|
8436
|
+
"packages/mesh-cli/src/utils/stack-flag.ts"() {
|
|
8425
8437
|
"use strict";
|
|
8426
8438
|
init_log();
|
|
8427
8439
|
warnedOnce = false;
|
|
8428
8440
|
}
|
|
8429
8441
|
});
|
|
8430
8442
|
|
|
8431
|
-
//
|
|
8443
|
+
// packages/mesh-cli/src/commands/peer-addressing.ts
|
|
8432
8444
|
function clusterHostPattern(serviceName) {
|
|
8433
8445
|
const name = serviceName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8434
8446
|
return new RegExp(`https?://${name}\\.[a-z0-9-]+\\.svc\\.cluster\\.local(?::\\d+)?`, "g");
|
|
@@ -8452,12 +8464,12 @@ function rewriteClusterHostsToLocal(devOutput) {
|
|
|
8452
8464
|
}
|
|
8453
8465
|
}
|
|
8454
8466
|
var init_peer_addressing = __esm({
|
|
8455
|
-
"
|
|
8467
|
+
"packages/mesh-cli/src/commands/peer-addressing.ts"() {
|
|
8456
8468
|
"use strict";
|
|
8457
8469
|
}
|
|
8458
8470
|
});
|
|
8459
8471
|
|
|
8460
|
-
//
|
|
8472
|
+
// packages/mesh-cli/src/utils/worktree-identity.ts
|
|
8461
8473
|
import { execFileSync as execFileSync15 } from "node:child_process";
|
|
8462
8474
|
import * as crypto3 from "node:crypto";
|
|
8463
8475
|
import * as path21 from "node:path";
|
|
@@ -8523,7 +8535,7 @@ function resolveWorktreeIdentity(cwd = process.cwd(), gitRunner = defaultGitRunn
|
|
|
8523
8535
|
}
|
|
8524
8536
|
var NUM_PORT_BLOCKS, PORT_BLOCK_BASE, PORT_BLOCK_SIZE, PORT_BLOCK_SERVICE_SUBRANGE, STACK_SLUG_MAX, defaultGitRunner;
|
|
8525
8537
|
var init_worktree_identity = __esm({
|
|
8526
|
-
"
|
|
8538
|
+
"packages/mesh-cli/src/utils/worktree-identity.ts"() {
|
|
8527
8539
|
"use strict";
|
|
8528
8540
|
NUM_PORT_BLOCKS = 64;
|
|
8529
8541
|
PORT_BLOCK_BASE = 4e4;
|
|
@@ -8534,7 +8546,7 @@ var init_worktree_identity = __esm({
|
|
|
8534
8546
|
}
|
|
8535
8547
|
});
|
|
8536
8548
|
|
|
8537
|
-
//
|
|
8549
|
+
// packages/mesh-cli/src/commands/dev-token-server.ts
|
|
8538
8550
|
var dev_token_server_exports = {};
|
|
8539
8551
|
__export(dev_token_server_exports, {
|
|
8540
8552
|
handleTokenRequest: () => handleTokenRequest,
|
|
@@ -8583,7 +8595,7 @@ async function startTokenServer(port, context) {
|
|
|
8583
8595
|
}
|
|
8584
8596
|
var REFRESH_MARGIN_MS;
|
|
8585
8597
|
var init_dev_token_server = __esm({
|
|
8586
|
-
"
|
|
8598
|
+
"packages/mesh-cli/src/commands/dev-token-server.ts"() {
|
|
8587
8599
|
"use strict";
|
|
8588
8600
|
init_login();
|
|
8589
8601
|
init_log();
|
|
@@ -8591,7 +8603,7 @@ var init_dev_token_server = __esm({
|
|
|
8591
8603
|
}
|
|
8592
8604
|
});
|
|
8593
8605
|
|
|
8594
|
-
//
|
|
8606
|
+
// packages/mesh-cli/src/commands/dev.ts
|
|
8595
8607
|
import { execFileSync as execFileSync16, spawn as spawn3, spawnSync as spawnSync2 } from "child_process";
|
|
8596
8608
|
import * as fs21 from "fs";
|
|
8597
8609
|
import * as net8 from "net";
|
|
@@ -10442,7 +10454,9 @@ function registerDevCommand(program2) {
|
|
|
10442
10454
|
{ remediation: { command: `docker compose -f ${decl.compose} up # debug it directly` } }
|
|
10443
10455
|
);
|
|
10444
10456
|
}
|
|
10445
|
-
logWarn(
|
|
10457
|
+
logWarn(
|
|
10458
|
+
`External '${name}' credential seeding failed: ${err instanceof Error ? err.message : err} \u2014 the app will resolve whatever was seeded previously, which may point at a stale port.`
|
|
10459
|
+
);
|
|
10446
10460
|
}
|
|
10447
10461
|
}
|
|
10448
10462
|
if (dockerRunner) {
|
|
@@ -10938,7 +10952,7 @@ function registerDevCommand(program2) {
|
|
|
10938
10952
|
}
|
|
10939
10953
|
var MissingStackOutputError, AWS_STATIC_CREDENTIAL_ENV_KEYS, SSM_TUNNEL_BASE_PORT, TUNNEL_READY_TIMEOUT_MS;
|
|
10940
10954
|
var init_dev = __esm({
|
|
10941
|
-
"
|
|
10955
|
+
"packages/mesh-cli/src/commands/dev.ts"() {
|
|
10942
10956
|
"use strict";
|
|
10943
10957
|
init_utils();
|
|
10944
10958
|
init_aws_auth();
|
|
@@ -10983,7 +10997,7 @@ var init_dev = __esm({
|
|
|
10983
10997
|
}
|
|
10984
10998
|
});
|
|
10985
10999
|
|
|
10986
|
-
//
|
|
11000
|
+
// packages/mesh-cli/src/commands/dev-doctor.ts
|
|
10987
11001
|
import { execFileSync as execFileSync17 } from "node:child_process";
|
|
10988
11002
|
import * as fs22 from "node:fs";
|
|
10989
11003
|
import * as net9 from "node:net";
|
|
@@ -11201,7 +11215,7 @@ ${ICONS[status]} overall: ${status}`);
|
|
|
11201
11215
|
}
|
|
11202
11216
|
var ICONS, credsCheck, registryCheck, tmuxCheck, portsCheck, configStalenessCheck, worktreeCheck, tunnelsCheck, temporalCheck, ALL_CHECKS;
|
|
11203
11217
|
var init_dev_doctor = __esm({
|
|
11204
|
-
"
|
|
11218
|
+
"packages/mesh-cli/src/commands/dev-doctor.ts"() {
|
|
11205
11219
|
"use strict";
|
|
11206
11220
|
init_dev();
|
|
11207
11221
|
init_auth_preflight();
|
|
@@ -11517,7 +11531,7 @@ var init_dev_doctor = __esm({
|
|
|
11517
11531
|
}
|
|
11518
11532
|
});
|
|
11519
11533
|
|
|
11520
|
-
//
|
|
11534
|
+
// packages/mesh-cli/src/commands/app-check.ts
|
|
11521
11535
|
import * as fs23 from "node:fs";
|
|
11522
11536
|
import * as path24 from "node:path";
|
|
11523
11537
|
function rel(root, abs) {
|
|
@@ -12145,7 +12159,7 @@ function registerAppCommands(program2) {
|
|
|
12145
12159
|
}
|
|
12146
12160
|
var APP_CHECK_RULES, APP_CHECK_CODES, SRC_EXT, SKIP_DIRS, NON_SERVICE_DIRS, RE_HTML, RE_OIDC, RE_COOKIE, RE_LOGGER, RE_EXPOSURE, RE_POINTER, RE_METADATA, RE_IAC_GRANT, RE_POINTER_OVERRIDE, RE_PASSWORD, RE_ALLOWLIST, RE_USERS_TABLE, RE_SURFACE_NEW, RE_APIDOCS_NEW, RE_IDENTITY_NEW, RE_EVENTS_NEW, EVENTS_PROJECT_ROLES, RE_IDENTITY_BINDING, DEFAULT_PARTNER_DOCS_ROLES, DOCS_SITE_FIELDS, DOCS_SITE_RETIRED_FIELDS, RE_PROPERTY;
|
|
12147
12161
|
var init_app_check = __esm({
|
|
12148
|
-
"
|
|
12162
|
+
"packages/mesh-cli/src/commands/app-check.ts"() {
|
|
12149
12163
|
"use strict";
|
|
12150
12164
|
init_utils();
|
|
12151
12165
|
init_errors();
|
|
@@ -12929,7 +12943,7 @@ var init_src2 = __esm({
|
|
|
12929
12943
|
}
|
|
12930
12944
|
});
|
|
12931
12945
|
|
|
12932
|
-
//
|
|
12946
|
+
// packages/mesh-cli/src/commands/agent-api-client.ts
|
|
12933
12947
|
function resolveTarget(opts) {
|
|
12934
12948
|
if (opts.apiUrl) {
|
|
12935
12949
|
return { apiBaseUrl: stripSlash(opts.apiUrl), loginContext: opts.context || DEFAULT_AUTH_CONTEXT };
|
|
@@ -13036,7 +13050,7 @@ try: mesh temporal recover-conversation ${ctx.id}` : "";
|
|
|
13036
13050
|
}
|
|
13037
13051
|
var DEFAULT_AUTH_CONTEXT, LOCAL_URL_RE, TargetResolutionError, NO_REGISTRY_GUIDANCE, NETWORK_ERROR_PATTERN;
|
|
13038
13052
|
var init_agent_api_client = __esm({
|
|
13039
|
-
"
|
|
13053
|
+
"packages/mesh-cli/src/commands/agent-api-client.ts"() {
|
|
13040
13054
|
"use strict";
|
|
13041
13055
|
init_src2();
|
|
13042
13056
|
init_login();
|
|
@@ -13050,7 +13064,7 @@ var init_agent_api_client = __esm({
|
|
|
13050
13064
|
}
|
|
13051
13065
|
});
|
|
13052
13066
|
|
|
13053
|
-
//
|
|
13067
|
+
// packages/mesh-cli/src/commands/artifacts.ts
|
|
13054
13068
|
import * as fs24 from "fs";
|
|
13055
13069
|
import * as path26 from "path";
|
|
13056
13070
|
function parseRef(ref) {
|
|
@@ -13149,7 +13163,7 @@ Ref format: <conversationId>:<artifactId>
|
|
|
13149
13163
|
}
|
|
13150
13164
|
var DEFAULT_ARTIFACT_ID, DEFAULT_AUTH_CONTEXT2;
|
|
13151
13165
|
var init_artifacts = __esm({
|
|
13152
|
-
"
|
|
13166
|
+
"packages/mesh-cli/src/commands/artifacts.ts"() {
|
|
13153
13167
|
"use strict";
|
|
13154
13168
|
init_log();
|
|
13155
13169
|
init_agent_api_client();
|
|
@@ -13158,7 +13172,7 @@ var init_artifacts = __esm({
|
|
|
13158
13172
|
}
|
|
13159
13173
|
});
|
|
13160
13174
|
|
|
13161
|
-
//
|
|
13175
|
+
// packages/mesh-cli/src/commands/cluster.ts
|
|
13162
13176
|
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
13163
13177
|
async function resolveClusterAccess(opts) {
|
|
13164
13178
|
const appRoot = findAppRoot(process.cwd());
|
|
@@ -13314,7 +13328,7 @@ Then: mesh logs <service> (e.g. mesh logs demo-agent-worker)
|
|
|
13314
13328
|
}
|
|
13315
13329
|
var NS_FLAGS;
|
|
13316
13330
|
var init_cluster = __esm({
|
|
13317
|
-
"
|
|
13331
|
+
"packages/mesh-cli/src/commands/cluster.ts"() {
|
|
13318
13332
|
"use strict";
|
|
13319
13333
|
init_log();
|
|
13320
13334
|
init_pulumi();
|
|
@@ -13326,7 +13340,7 @@ var init_cluster = __esm({
|
|
|
13326
13340
|
}
|
|
13327
13341
|
});
|
|
13328
13342
|
|
|
13329
|
-
//
|
|
13343
|
+
// packages/mesh-cli/src/commands/vcs-enrich.ts
|
|
13330
13344
|
async function buildVcsEnricher(target) {
|
|
13331
13345
|
const vcsBaseUrl = deriveVcsBaseUrl(target.apiBaseUrl);
|
|
13332
13346
|
if (!vcsBaseUrl) {
|
|
@@ -13341,7 +13355,7 @@ async function buildVcsEnricher(target) {
|
|
|
13341
13355
|
return createVcsFolderReader({ vcsBaseUrl, token });
|
|
13342
13356
|
}
|
|
13343
13357
|
var init_vcs_enrich = __esm({
|
|
13344
|
-
"
|
|
13358
|
+
"packages/mesh-cli/src/commands/vcs-enrich.ts"() {
|
|
13345
13359
|
"use strict";
|
|
13346
13360
|
init_src2();
|
|
13347
13361
|
init_login();
|
|
@@ -13349,7 +13363,7 @@ var init_vcs_enrich = __esm({
|
|
|
13349
13363
|
}
|
|
13350
13364
|
});
|
|
13351
13365
|
|
|
13352
|
-
//
|
|
13366
|
+
// packages/mesh-cli/src/commands/conversations.ts
|
|
13353
13367
|
function truncate(s, max) {
|
|
13354
13368
|
return s.length > max ? s.slice(0, max - 1) + "\u2026" : s;
|
|
13355
13369
|
}
|
|
@@ -13517,7 +13531,7 @@ function registerConversationsCommands(program2) {
|
|
|
13517
13531
|
}
|
|
13518
13532
|
var MAX_TITLE_LEN;
|
|
13519
13533
|
var init_conversations = __esm({
|
|
13520
|
-
"
|
|
13534
|
+
"packages/mesh-cli/src/commands/conversations.ts"() {
|
|
13521
13535
|
"use strict";
|
|
13522
13536
|
init_src2();
|
|
13523
13537
|
init_vcs_enrich();
|
|
@@ -13527,7 +13541,7 @@ var init_conversations = __esm({
|
|
|
13527
13541
|
}
|
|
13528
13542
|
});
|
|
13529
13543
|
|
|
13530
|
-
//
|
|
13544
|
+
// packages/mesh-cli/src/utils/scaffold-versions.ts
|
|
13531
13545
|
import { execFileSync as execFileSync18 } from "child_process";
|
|
13532
13546
|
function isPrerelease(range) {
|
|
13533
13547
|
return /[-+]/.test(range.replace(/^\^/, ""));
|
|
@@ -13552,7 +13566,7 @@ function resolvePublishedRange(pkg, cwd) {
|
|
|
13552
13566
|
}
|
|
13553
13567
|
var SCAFFOLD_PACKAGE_LINES, SCAFFOLD_TOOLCHAIN;
|
|
13554
13568
|
var init_scaffold_versions = __esm({
|
|
13555
|
-
"
|
|
13569
|
+
"packages/mesh-cli/src/utils/scaffold-versions.ts"() {
|
|
13556
13570
|
"use strict";
|
|
13557
13571
|
SCAFFOLD_PACKAGE_LINES = {
|
|
13558
13572
|
"@mesh-tech/app-kit": "^1.45.0",
|
|
@@ -13572,7 +13586,7 @@ var init_scaffold_versions = __esm({
|
|
|
13572
13586
|
}
|
|
13573
13587
|
});
|
|
13574
13588
|
|
|
13575
|
-
//
|
|
13589
|
+
// packages/mesh-cli/src/commands/create-app.ts
|
|
13576
13590
|
var create_app_exports = {};
|
|
13577
13591
|
__export(create_app_exports, {
|
|
13578
13592
|
NO_REGISTRY_ACCESS_MESSAGE: () => NO_REGISTRY_ACCESS_MESSAGE,
|
|
@@ -14139,7 +14153,7 @@ function composableNextSteps(appDir, platform) {
|
|
|
14139
14153
|
}
|
|
14140
14154
|
var __filename, __dirname, packageRoot, TEMPLATES, REMOVED_TEMPLATES, PRIMITIVES, HUB_ACCOUNTS, PLATFORM_MONOREPO_NAME, VALID_PRIMITIVES, NO_REGISTRY_ACCESS_MESSAGE;
|
|
14141
14155
|
var init_create_app = __esm({
|
|
14142
|
-
"
|
|
14156
|
+
"packages/mesh-cli/src/commands/create-app.ts"() {
|
|
14143
14157
|
"use strict";
|
|
14144
14158
|
init_utils();
|
|
14145
14159
|
init_skills();
|
|
@@ -14181,7 +14195,7 @@ var init_create_app = __esm({
|
|
|
14181
14195
|
}
|
|
14182
14196
|
});
|
|
14183
14197
|
|
|
14184
|
-
//
|
|
14198
|
+
// packages/mesh-cli/src/commands/db/axes.ts
|
|
14185
14199
|
function platformAxis(options, usage, detect = detectContext) {
|
|
14186
14200
|
if (options.tenant && !options.env || !options.tenant && options.env) {
|
|
14187
14201
|
throw new MeshCliError("Both --tenant and --env are required", {
|
|
@@ -14213,7 +14227,7 @@ function appAxis(options, platform) {
|
|
|
14213
14227
|
};
|
|
14214
14228
|
}
|
|
14215
14229
|
var init_axes = __esm({
|
|
14216
|
-
"
|
|
14230
|
+
"packages/mesh-cli/src/commands/db/axes.ts"() {
|
|
14217
14231
|
"use strict";
|
|
14218
14232
|
init_context();
|
|
14219
14233
|
init_errors();
|
|
@@ -14221,7 +14235,7 @@ var init_axes = __esm({
|
|
|
14221
14235
|
}
|
|
14222
14236
|
});
|
|
14223
14237
|
|
|
14224
|
-
//
|
|
14238
|
+
// packages/mesh-cli/src/commands/db/connect.ts
|
|
14225
14239
|
import { spawn as spawn4 } from "child_process";
|
|
14226
14240
|
async function connectCommand(options) {
|
|
14227
14241
|
const { tenant, env: platformEnv } = platformAxis(options, USAGE)();
|
|
@@ -14269,7 +14283,7 @@ async function connectCommand(options) {
|
|
|
14269
14283
|
}
|
|
14270
14284
|
var USAGE;
|
|
14271
14285
|
var init_connect = __esm({
|
|
14272
|
-
"
|
|
14286
|
+
"packages/mesh-cli/src/commands/db/connect.ts"() {
|
|
14273
14287
|
"use strict";
|
|
14274
14288
|
init_utils();
|
|
14275
14289
|
init_axes();
|
|
@@ -14277,7 +14291,7 @@ var init_connect = __esm({
|
|
|
14277
14291
|
}
|
|
14278
14292
|
});
|
|
14279
14293
|
|
|
14280
|
-
//
|
|
14294
|
+
// packages/mesh-cli/src/commands/db/credentials.ts
|
|
14281
14295
|
async function credentialsCommand(options) {
|
|
14282
14296
|
const platform = platformAxis(options, USAGE2);
|
|
14283
14297
|
const app = appAxis(options, platform);
|
|
@@ -14307,7 +14321,7 @@ async function credentialsCommand(options) {
|
|
|
14307
14321
|
}
|
|
14308
14322
|
var USAGE2;
|
|
14309
14323
|
var init_credentials2 = __esm({
|
|
14310
|
-
"
|
|
14324
|
+
"packages/mesh-cli/src/commands/db/credentials.ts"() {
|
|
14311
14325
|
"use strict";
|
|
14312
14326
|
init_utils();
|
|
14313
14327
|
init_axes();
|
|
@@ -14315,7 +14329,7 @@ var init_credentials2 = __esm({
|
|
|
14315
14329
|
}
|
|
14316
14330
|
});
|
|
14317
14331
|
|
|
14318
|
-
//
|
|
14332
|
+
// packages/mesh-cli/src/commands/db/env.ts
|
|
14319
14333
|
async function envCommand(options) {
|
|
14320
14334
|
const platform = platformAxis(options, USAGE3);
|
|
14321
14335
|
const app = appAxis(options, platform);
|
|
@@ -14335,7 +14349,7 @@ async function envCommand(options) {
|
|
|
14335
14349
|
}
|
|
14336
14350
|
var USAGE3;
|
|
14337
14351
|
var init_env = __esm({
|
|
14338
|
-
"
|
|
14352
|
+
"packages/mesh-cli/src/commands/db/env.ts"() {
|
|
14339
14353
|
"use strict";
|
|
14340
14354
|
init_utils();
|
|
14341
14355
|
init_axes();
|
|
@@ -14343,7 +14357,7 @@ var init_env = __esm({
|
|
|
14343
14357
|
}
|
|
14344
14358
|
});
|
|
14345
14359
|
|
|
14346
|
-
//
|
|
14360
|
+
// packages/mesh-cli/src/commands/db/psql.ts
|
|
14347
14361
|
import { spawn as spawn5 } from "child_process";
|
|
14348
14362
|
import * as net10 from "net";
|
|
14349
14363
|
async function startTunnelBackground(instanceId, rdsHost, rdsPort, localPort) {
|
|
@@ -14464,7 +14478,7 @@ async function psqlCommand(options) {
|
|
|
14464
14478
|
}
|
|
14465
14479
|
var USAGE4;
|
|
14466
14480
|
var init_psql = __esm({
|
|
14467
|
-
"
|
|
14481
|
+
"packages/mesh-cli/src/commands/db/psql.ts"() {
|
|
14468
14482
|
"use strict";
|
|
14469
14483
|
init_utils();
|
|
14470
14484
|
init_axes();
|
|
@@ -14472,7 +14486,7 @@ var init_psql = __esm({
|
|
|
14472
14486
|
}
|
|
14473
14487
|
});
|
|
14474
14488
|
|
|
14475
|
-
//
|
|
14489
|
+
// packages/mesh-cli/src/commands/db/exec.ts
|
|
14476
14490
|
import { spawn as spawn6 } from "child_process";
|
|
14477
14491
|
import * as net11 from "net";
|
|
14478
14492
|
import * as fs26 from "fs";
|
|
@@ -14731,7 +14745,7 @@ async function execCommand(commandArgs, options) {
|
|
|
14731
14745
|
}
|
|
14732
14746
|
var DEFAULT_LOCAL_PORT, MAX_RETRIES, RETRY_DELAY_MS;
|
|
14733
14747
|
var init_exec = __esm({
|
|
14734
|
-
"
|
|
14748
|
+
"packages/mesh-cli/src/commands/db/exec.ts"() {
|
|
14735
14749
|
"use strict";
|
|
14736
14750
|
init_utils();
|
|
14737
14751
|
init_axes();
|
|
@@ -14741,7 +14755,7 @@ var init_exec = __esm({
|
|
|
14741
14755
|
}
|
|
14742
14756
|
});
|
|
14743
14757
|
|
|
14744
|
-
//
|
|
14758
|
+
// packages/mesh-cli/src/commands/db/index.ts
|
|
14745
14759
|
function registerDbCommands(program2) {
|
|
14746
14760
|
const db = program2.command("db").description("Database utilities");
|
|
14747
14761
|
db.command("connect").description("Start DB tunnel for manual psql access").option("-t, --tenant <tenant>", "Platform tenant (e.g., mesh)").option("-e, --env <env>", "Platform environment (e.g., dev-temporal)").action(connectCommand);
|
|
@@ -14751,7 +14765,7 @@ function registerDbCommands(program2) {
|
|
|
14751
14765
|
db.command("exec").description("Run any command with database connection").option("-t, --tenant <tenant>", "Platform tenant for bastion lookup (e.g., mesh)").option("-e, --env <env>", "Platform environment for bastion lookup (e.g., dev-temporal)").option("-a, --app <app>", "App name for credentials path (e.g., rdc)").option("--app-tenant <tenant>", "Tenant for app credentials if different from platform (e.g., encore)").option("--app-stage <stage>", "Stage for app credentials (e.g., dev)").option("--secret <arn>", "Use secret ARN directly (skips SSM discovery)").option("--ssl <mode>", "SSL mode: require, no-verify, disable").option("--port <port>", "Local tunnel port (default: 5432)").argument("<command...>", "Command and arguments to run").action(execCommand);
|
|
14752
14766
|
}
|
|
14753
14767
|
var init_db = __esm({
|
|
14754
|
-
"
|
|
14768
|
+
"packages/mesh-cli/src/commands/db/index.ts"() {
|
|
14755
14769
|
"use strict";
|
|
14756
14770
|
init_connect();
|
|
14757
14771
|
init_credentials2();
|
|
@@ -14761,7 +14775,7 @@ var init_db = __esm({
|
|
|
14761
14775
|
}
|
|
14762
14776
|
});
|
|
14763
14777
|
|
|
14764
|
-
//
|
|
14778
|
+
// packages/mesh-cli/src/utils/deploy-preflight.ts
|
|
14765
14779
|
import { existsSync as existsSync22, readFileSync as readFileSync23 } from "node:fs";
|
|
14766
14780
|
import { dirname as dirname23, join as join27, relative as relative8 } from "node:path";
|
|
14767
14781
|
import { parse as parseYaml4 } from "yaml";
|
|
@@ -14868,7 +14882,7 @@ function assertDeployDepsFresh(appRoot, op) {
|
|
|
14868
14882
|
}
|
|
14869
14883
|
var GATED_PREFIXES, PROGRAM_EVAL_OPS, SKIP_ENV;
|
|
14870
14884
|
var init_deploy_preflight = __esm({
|
|
14871
|
-
"
|
|
14885
|
+
"packages/mesh-cli/src/utils/deploy-preflight.ts"() {
|
|
14872
14886
|
"use strict";
|
|
14873
14887
|
init_log();
|
|
14874
14888
|
GATED_PREFIXES = ["@mesh-tech/"];
|
|
@@ -14877,7 +14891,7 @@ var init_deploy_preflight = __esm({
|
|
|
14877
14891
|
}
|
|
14878
14892
|
});
|
|
14879
14893
|
|
|
14880
|
-
//
|
|
14894
|
+
// packages/mesh-cli/src/commands/deploy.ts
|
|
14881
14895
|
import { execFileSync as execFileSync19 } from "child_process";
|
|
14882
14896
|
function buildPulumiArgs(pulumiArgs, stack) {
|
|
14883
14897
|
const base = pulumiArgs.length === 0 || pulumiArgs[0]?.startsWith("-") ? ["up", ...pulumiArgs] : [...pulumiArgs];
|
|
@@ -14953,7 +14967,7 @@ function registerDeployCommand(program2) {
|
|
|
14953
14967
|
}
|
|
14954
14968
|
var OPS_WITHOUT_STACK_FLAG, STACK_SUBCOMMANDS_WITHOUT_FLAG;
|
|
14955
14969
|
var init_deploy = __esm({
|
|
14956
|
-
"
|
|
14970
|
+
"packages/mesh-cli/src/commands/deploy.ts"() {
|
|
14957
14971
|
"use strict";
|
|
14958
14972
|
init_log();
|
|
14959
14973
|
init_pulumi();
|
|
@@ -14982,7 +14996,7 @@ var init_deploy = __esm({
|
|
|
14982
14996
|
}
|
|
14983
14997
|
});
|
|
14984
14998
|
|
|
14985
|
-
//
|
|
14999
|
+
// packages/mesh-cli/src/docs/schema.ts
|
|
14986
15000
|
import { z as z3 } from "zod";
|
|
14987
15001
|
function isReservedSegment(segment) {
|
|
14988
15002
|
const lowered = segment.toLowerCase();
|
|
@@ -14996,7 +15010,7 @@ function slugify2(value) {
|
|
|
14996
15010
|
}
|
|
14997
15011
|
var RESERVED_SEGMENTS, docsJsonSchema;
|
|
14998
15012
|
var init_schema2 = __esm({
|
|
14999
|
-
"
|
|
15013
|
+
"packages/mesh-cli/src/docs/schema.ts"() {
|
|
15000
15014
|
"use strict";
|
|
15001
15015
|
RESERVED_SEGMENTS = [
|
|
15002
15016
|
"plans",
|
|
@@ -15045,7 +15059,7 @@ var init_schema2 = __esm({
|
|
|
15045
15059
|
}
|
|
15046
15060
|
});
|
|
15047
15061
|
|
|
15048
|
-
//
|
|
15062
|
+
// packages/mesh-cli/src/docs/discover.ts
|
|
15049
15063
|
import { existsSync as existsSync23, readdirSync as readdirSync9, readFileSync as readFileSync24, statSync as statSync6 } from "node:fs";
|
|
15050
15064
|
import path29 from "node:path";
|
|
15051
15065
|
function routePathFor(relPath) {
|
|
@@ -15214,7 +15228,7 @@ function pathKind(candidate) {
|
|
|
15214
15228
|
}
|
|
15215
15229
|
var ROOT_WALK_SKIP;
|
|
15216
15230
|
var init_discover = __esm({
|
|
15217
|
-
"
|
|
15231
|
+
"packages/mesh-cli/src/docs/discover.ts"() {
|
|
15218
15232
|
"use strict";
|
|
15219
15233
|
init_schema2();
|
|
15220
15234
|
ROOT_WALK_SKIP = /* @__PURE__ */ new Set([
|
|
@@ -15233,7 +15247,7 @@ var init_discover = __esm({
|
|
|
15233
15247
|
}
|
|
15234
15248
|
});
|
|
15235
15249
|
|
|
15236
|
-
//
|
|
15250
|
+
// packages/mesh-cli/src/docs/assemble.ts
|
|
15237
15251
|
import { execFileSync as execFileSync20 } from "node:child_process";
|
|
15238
15252
|
import { mkdirSync as mkdirSync12, readFileSync as readFileSync25, rmSync as rmSync5, writeFileSync as writeFileSync15 } from "node:fs";
|
|
15239
15253
|
import path30 from "node:path";
|
|
@@ -15736,7 +15750,7 @@ function currentCommit(repoRoot2) {
|
|
|
15736
15750
|
function currentBaseline(repoRoot2) {
|
|
15737
15751
|
try {
|
|
15738
15752
|
const pkg = JSON.parse(
|
|
15739
|
-
readFileSync25(path30.join(repoRoot2, "
|
|
15753
|
+
readFileSync25(path30.join(repoRoot2, "packages/app-kit/package.json"), "utf-8")
|
|
15740
15754
|
);
|
|
15741
15755
|
return pkg.version;
|
|
15742
15756
|
} catch {
|
|
@@ -15814,7 +15828,7 @@ function renderPublishSetSummary(manifest, diff) {
|
|
|
15814
15828
|
}
|
|
15815
15829
|
var DEFAULT_REPO_URL, DEFAULT_IGNORE_LINK_PREFIXES;
|
|
15816
15830
|
var init_assemble = __esm({
|
|
15817
|
-
"
|
|
15831
|
+
"packages/mesh-cli/src/docs/assemble.ts"() {
|
|
15818
15832
|
"use strict";
|
|
15819
15833
|
init_discover();
|
|
15820
15834
|
init_schema2();
|
|
@@ -15823,7 +15837,7 @@ var init_assemble = __esm({
|
|
|
15823
15837
|
}
|
|
15824
15838
|
});
|
|
15825
15839
|
|
|
15826
|
-
//
|
|
15840
|
+
// packages/mesh-cli/src/docs/cli-reference.ts
|
|
15827
15841
|
var cli_reference_exports = {};
|
|
15828
15842
|
__export(cli_reference_exports, {
|
|
15829
15843
|
extractCliReference: () => extractCliReference,
|
|
@@ -15958,7 +15972,7 @@ function renderCliReferenceMarkdown(reference) {
|
|
|
15958
15972
|
const lines = [
|
|
15959
15973
|
"<!--",
|
|
15960
15974
|
" GENERATED FILE \u2014 do not edit by hand.",
|
|
15961
|
-
" Source: the commander tree in
|
|
15975
|
+
" Source: the commander tree in packages/mesh-cli/src/program.ts",
|
|
15962
15976
|
" Rebuild: pnpm exec mesh docs cli-reference",
|
|
15963
15977
|
"-->",
|
|
15964
15978
|
"",
|
|
@@ -15983,12 +15997,12 @@ function renderCliReferenceMarkdown(reference) {
|
|
|
15983
15997
|
`;
|
|
15984
15998
|
}
|
|
15985
15999
|
var init_cli_reference = __esm({
|
|
15986
|
-
"
|
|
16000
|
+
"packages/mesh-cli/src/docs/cli-reference.ts"() {
|
|
15987
16001
|
"use strict";
|
|
15988
16002
|
}
|
|
15989
16003
|
});
|
|
15990
16004
|
|
|
15991
|
-
//
|
|
16005
|
+
// packages/mesh-cli/src/docs/portal.ts
|
|
15992
16006
|
import { spawn as spawn7 } from "node:child_process";
|
|
15993
16007
|
import {
|
|
15994
16008
|
appendFileSync,
|
|
@@ -16215,7 +16229,7 @@ async function cliReferenceStaleness(repoRoot2) {
|
|
|
16215
16229
|
}
|
|
16216
16230
|
var DOCS_APP_DIR, CONTENT_DIR, GENERATED_CONFIG, PUBLISH_MANIFEST, VERSION_JSON_DIR, VERSION_JSON, SITE_TITLE, SITE_DESCRIPTION;
|
|
16217
16231
|
var init_portal = __esm({
|
|
16218
|
-
"
|
|
16232
|
+
"packages/mesh-cli/src/docs/portal.ts"() {
|
|
16219
16233
|
"use strict";
|
|
16220
16234
|
init_log();
|
|
16221
16235
|
init_assemble();
|
|
@@ -16231,7 +16245,7 @@ var init_portal = __esm({
|
|
|
16231
16245
|
}
|
|
16232
16246
|
});
|
|
16233
16247
|
|
|
16234
|
-
//
|
|
16248
|
+
// packages/mesh-cli/src/utils/build-info.ts
|
|
16235
16249
|
import { execFileSync as execFileSync21 } from "child_process";
|
|
16236
16250
|
import * as fs27 from "fs";
|
|
16237
16251
|
import * as path32 from "path";
|
|
@@ -16302,12 +16316,12 @@ function resolveCliRuntime(opts) {
|
|
|
16302
16316
|
return info;
|
|
16303
16317
|
}
|
|
16304
16318
|
var init_build_info = __esm({
|
|
16305
|
-
"
|
|
16319
|
+
"packages/mesh-cli/src/utils/build-info.ts"() {
|
|
16306
16320
|
"use strict";
|
|
16307
16321
|
}
|
|
16308
16322
|
});
|
|
16309
16323
|
|
|
16310
|
-
//
|
|
16324
|
+
// packages/mesh-cli/src/docs/serve.ts
|
|
16311
16325
|
import { createServer as createServer8 } from "node:http";
|
|
16312
16326
|
import { readFile } from "node:fs/promises";
|
|
16313
16327
|
import { extname as extname2, join as join29, normalize, sep as sep6 } from "node:path";
|
|
@@ -16362,7 +16376,7 @@ async function serveDocsSite(args) {
|
|
|
16362
16376
|
}
|
|
16363
16377
|
var CONTENT_TYPES;
|
|
16364
16378
|
var init_serve = __esm({
|
|
16365
|
-
"
|
|
16379
|
+
"packages/mesh-cli/src/docs/serve.ts"() {
|
|
16366
16380
|
"use strict";
|
|
16367
16381
|
CONTENT_TYPES = {
|
|
16368
16382
|
".html": "text/html; charset=utf-8",
|
|
@@ -16386,7 +16400,7 @@ var init_serve = __esm({
|
|
|
16386
16400
|
}
|
|
16387
16401
|
});
|
|
16388
16402
|
|
|
16389
|
-
//
|
|
16403
|
+
// packages/mesh-cli/src/docs/registry-docs.ts
|
|
16390
16404
|
import { execFileSync as execFileSync22 } from "node:child_process";
|
|
16391
16405
|
import { existsSync as existsSync25, mkdirSync as mkdirSync14, readFileSync as readFileSync28, renameSync as renameSync3, rmSync as rmSync6, writeFileSync as writeFileSync17 } from "node:fs";
|
|
16392
16406
|
import { tmpdir as tmpdir7 } from "node:os";
|
|
@@ -16495,14 +16509,14 @@ async function fetchDocsArtifact(auth, version, cacheRoot = docsCacheRoot(), fet
|
|
|
16495
16509
|
}
|
|
16496
16510
|
var DOCS_PACKAGE;
|
|
16497
16511
|
var init_registry_docs = __esm({
|
|
16498
|
-
"
|
|
16512
|
+
"packages/mesh-cli/src/docs/registry-docs.ts"() {
|
|
16499
16513
|
"use strict";
|
|
16500
16514
|
init_auth_preflight();
|
|
16501
16515
|
DOCS_PACKAGE = "@mesh-tech/docs";
|
|
16502
16516
|
}
|
|
16503
16517
|
});
|
|
16504
16518
|
|
|
16505
|
-
//
|
|
16519
|
+
// packages/mesh-cli/src/docs/start.ts
|
|
16506
16520
|
var start_exports = {};
|
|
16507
16521
|
__export(start_exports, {
|
|
16508
16522
|
DOCS_TMUX_SESSION: () => DOCS_TMUX_SESSION,
|
|
@@ -16757,7 +16771,7 @@ async function runDocsStart(args) {
|
|
|
16757
16771
|
}
|
|
16758
16772
|
var DOCS_TMUX_SESSION;
|
|
16759
16773
|
var init_start = __esm({
|
|
16760
|
-
"
|
|
16774
|
+
"packages/mesh-cli/src/docs/start.ts"() {
|
|
16761
16775
|
"use strict";
|
|
16762
16776
|
init_log();
|
|
16763
16777
|
init_build_info();
|
|
@@ -16769,7 +16783,7 @@ var init_start = __esm({
|
|
|
16769
16783
|
}
|
|
16770
16784
|
});
|
|
16771
16785
|
|
|
16772
|
-
//
|
|
16786
|
+
// packages/mesh-cli/src/commands/docs.ts
|
|
16773
16787
|
import * as fs28 from "fs";
|
|
16774
16788
|
import * as path35 from "path";
|
|
16775
16789
|
import { createRequire } from "module";
|
|
@@ -16991,7 +17005,7 @@ function registerDocsCommand(program2) {
|
|
|
16991
17005
|
}
|
|
16992
17006
|
var CLI_REFERENCE_PATH;
|
|
16993
17007
|
var init_docs = __esm({
|
|
16994
|
-
"
|
|
17008
|
+
"packages/mesh-cli/src/commands/docs.ts"() {
|
|
16995
17009
|
"use strict";
|
|
16996
17010
|
init_log();
|
|
16997
17011
|
init_portal();
|
|
@@ -17000,7 +17014,7 @@ var init_docs = __esm({
|
|
|
17000
17014
|
}
|
|
17001
17015
|
});
|
|
17002
17016
|
|
|
17003
|
-
//
|
|
17017
|
+
// packages/mesh-cli/src/commands/hub/index.ts
|
|
17004
17018
|
import { execFileSync as execFileSync24 } from "node:child_process";
|
|
17005
17019
|
import * as fs29 from "node:fs";
|
|
17006
17020
|
import * as net12 from "node:net";
|
|
@@ -17428,7 +17442,7 @@ function registerHubCommands(program2) {
|
|
|
17428
17442
|
}
|
|
17429
17443
|
var HUB_SESSION_PREFIX, HUB_SESSION_RE, DEFAULT_HUB_UI_PORT, DEFAULT_HUB_API_PORT, FORWARD_PREFIXES, localPlatformEnv2, SENSITIVE_RE;
|
|
17430
17444
|
var init_hub = __esm({
|
|
17431
|
-
"
|
|
17445
|
+
"packages/mesh-cli/src/commands/hub/index.ts"() {
|
|
17432
17446
|
"use strict";
|
|
17433
17447
|
init_dev_launch();
|
|
17434
17448
|
init_dev();
|
|
@@ -17479,7 +17493,7 @@ var init_hub = __esm({
|
|
|
17479
17493
|
}
|
|
17480
17494
|
});
|
|
17481
17495
|
|
|
17482
|
-
//
|
|
17496
|
+
// packages/mesh-cli/src/commands/init/platform-setup.ts
|
|
17483
17497
|
var platform_setup_exports = {};
|
|
17484
17498
|
__export(platform_setup_exports, {
|
|
17485
17499
|
DOMAIN_REQUIRED_MESSAGE: () => DOMAIN_REQUIRED_MESSAGE,
|
|
@@ -17521,7 +17535,7 @@ function validateDomain(value) {
|
|
|
17521
17535
|
return "a public domain you control, e.g. q2poc.pub";
|
|
17522
17536
|
}
|
|
17523
17537
|
if (/(^|\.)(example\.(com|org|net)|invalid|localhost|test)$/.test(domain)) {
|
|
17524
|
-
return `${domain} is a placeholder \u2014
|
|
17538
|
+
return `${domain} is a placeholder \u2014 its ACM certificate can never validate, because nobody can delegate that zone to you. Use a domain you control.`;
|
|
17525
17539
|
}
|
|
17526
17540
|
return true;
|
|
17527
17541
|
}
|
|
@@ -17633,7 +17647,7 @@ function renderPlatformNextSteps(setup, opts = {}) {
|
|
|
17633
17647
|
`aws sso login --profile ${setup.profile} # if this profile is SSO`,
|
|
17634
17648
|
exportCredentialsCommand(setup.profile),
|
|
17635
17649
|
`cd core && mesh deploy up # the VPC, EKS, RDS and the public zone ${setup.env}.${setup.domain}`,
|
|
17636
|
-
`# \u2192 then delegate the NS records of ${setup.env}.${setup.domain} from ${setup.domain}; the deploy
|
|
17650
|
+
`# \u2192 then delegate the NS records of ${setup.env}.${setup.domain} from ${setup.domain} at your registrar; the deploy stops at the mesh-gateway Ingress until ACM issues the certificate, then continues`,
|
|
17637
17651
|
"cd ../platform && mesh deploy up # Temporal, Zitadel, the Hub (needs Docker \u2014 it builds service images)",
|
|
17638
17652
|
`mesh login ${setup.tenant}.${setup.env} # your platform sign-in, once it is up`,
|
|
17639
17653
|
"",
|
|
@@ -17667,7 +17681,7 @@ async function scaffoldPlatformRepo(setup) {
|
|
|
17667
17681
|
}
|
|
17668
17682
|
var PLATFORM_SETUP_DEFAULTS, DOMAIN_REQUIRED_MESSAGE, realStateBucketDeps;
|
|
17669
17683
|
var init_platform_setup = __esm({
|
|
17670
|
-
"
|
|
17684
|
+
"packages/mesh-cli/src/commands/init/platform-setup.ts"() {
|
|
17671
17685
|
"use strict";
|
|
17672
17686
|
init_errors();
|
|
17673
17687
|
PLATFORM_SETUP_DEFAULTS = {
|
|
@@ -17675,7 +17689,7 @@ var init_platform_setup = __esm({
|
|
|
17675
17689
|
region: "us-east-2",
|
|
17676
17690
|
profile: "default"
|
|
17677
17691
|
};
|
|
17678
|
-
DOMAIN_REQUIRED_MESSAGE = "--domain is required: the core stack creates the public Route 53 zone <env>.<domain>, and a placeholder domain scaffolds a zone
|
|
17692
|
+
DOMAIN_REQUIRED_MESSAGE = "--domain is required: the core stack creates the public Route 53 zone <env>.<domain>, and a placeholder domain scaffolds a zone whose certificate can never validate, so ingress never serves HTTPS.";
|
|
17679
17693
|
realStateBucketDeps = {
|
|
17680
17694
|
headBucket(setup) {
|
|
17681
17695
|
try {
|
|
@@ -17700,7 +17714,7 @@ var init_platform_setup = __esm({
|
|
|
17700
17714
|
}
|
|
17701
17715
|
});
|
|
17702
17716
|
|
|
17703
|
-
//
|
|
17717
|
+
// packages/mesh-cli/src/commands/registry-publish.ts
|
|
17704
17718
|
import { execFileSync as execFileSync26, execSync } from "child_process";
|
|
17705
17719
|
import * as fs31 from "fs";
|
|
17706
17720
|
import * as path38 from "path";
|
|
@@ -17815,14 +17829,14 @@ Or always grab the newest dev build:
|
|
|
17815
17829
|
});
|
|
17816
17830
|
}
|
|
17817
17831
|
var init_registry_publish = __esm({
|
|
17818
|
-
"
|
|
17832
|
+
"packages/mesh-cli/src/commands/registry-publish.ts"() {
|
|
17819
17833
|
"use strict";
|
|
17820
17834
|
init_log();
|
|
17821
17835
|
init_registry();
|
|
17822
17836
|
}
|
|
17823
17837
|
});
|
|
17824
17838
|
|
|
17825
|
-
//
|
|
17839
|
+
// packages/mesh-cli/src/commands/registry.ts
|
|
17826
17840
|
var registry_exports = {};
|
|
17827
17841
|
__export(registry_exports, {
|
|
17828
17842
|
CONTEXT_IGNORED_NOTICE: () => CONTEXT_IGNORED_NOTICE,
|
|
@@ -18491,7 +18505,7 @@ function registerRegistryCommands(program2) {
|
|
|
18491
18505
|
}
|
|
18492
18506
|
var CA_DOMAIN, CA_REPOSITORY, CA_NAMESPACE, CA_REGION, DEFAULT_REGISTRY_ROLE, RegistryNotAuthorizedError, NOT_AUTHORIZED_RERUN, CONTEXT_IGNORED_NOTICE;
|
|
18493
18507
|
var init_registry = __esm({
|
|
18494
|
-
"
|
|
18508
|
+
"packages/mesh-cli/src/commands/registry.ts"() {
|
|
18495
18509
|
"use strict";
|
|
18496
18510
|
init_log();
|
|
18497
18511
|
init_errors();
|
|
@@ -18516,7 +18530,7 @@ var init_registry = __esm({
|
|
|
18516
18530
|
}
|
|
18517
18531
|
});
|
|
18518
18532
|
|
|
18519
|
-
//
|
|
18533
|
+
// packages/mesh-cli/src/commands/init/wizard.ts
|
|
18520
18534
|
var wizard_exports = {};
|
|
18521
18535
|
__export(wizard_exports, {
|
|
18522
18536
|
INIT_REPO_FIX: () => INIT_REPO_FIX,
|
|
@@ -18752,7 +18766,7 @@ async function runInitWizard(opts, deps = {}) {
|
|
|
18752
18766
|
}
|
|
18753
18767
|
var NO_SESSION_NO_TTY_MESSAGE, TENANT_REQUIRED_MESSAGE, REGISTRY_WHY, INTERRUPTED_EXIT_CODE, STEP_LABELS, PLATFORM_SETUP_LABEL, registryStep, newPlatformStep, platformStep, INIT_REPO_FIX, repoStep, skillsStep, WIZARD_STEPS;
|
|
18754
18768
|
var init_wizard = __esm({
|
|
18755
|
-
"
|
|
18769
|
+
"packages/mesh-cli/src/commands/init/wizard.ts"() {
|
|
18756
18770
|
"use strict";
|
|
18757
18771
|
init_log();
|
|
18758
18772
|
init_errors();
|
|
@@ -18987,7 +19001,7 @@ var init_wizard = __esm({
|
|
|
18987
19001
|
}
|
|
18988
19002
|
});
|
|
18989
19003
|
|
|
18990
|
-
//
|
|
19004
|
+
// packages/mesh-cli/src/commands/init.ts
|
|
18991
19005
|
import chalk5 from "chalk";
|
|
18992
19006
|
import * as fs34 from "fs";
|
|
18993
19007
|
import * as path41 from "path";
|
|
@@ -19182,7 +19196,7 @@ function registerInitCommands(program2) {
|
|
|
19182
19196
|
).option("--tenant <name>", "app tenant this repo belongs to (prompted when omitted on a TTY)").option("--local", "local only \u2014 mesh start / mesh dev, no deployed platform (the default)").option("--platform <env>", "a deployed platform's environment; signs in to `<tenant>.<env>`").option(
|
|
19183
19197
|
"--new-platform [env]",
|
|
19184
19198
|
`nothing deployed yet \u2014 scaffold a tenant platform repo for \`<tenant>.<env>\` (default env: ${PLATFORM_SETUP_DEFAULTS.env}) and print its deploy sequence`
|
|
19185
|
-
).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}. 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(
|
|
19199
|
+
).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(
|
|
19186
19200
|
async (opts) => {
|
|
19187
19201
|
const { runInitWizard: runInitWizard2 } = await Promise.resolve().then(() => (init_wizard(), wizard_exports));
|
|
19188
19202
|
const code = await runInitWizard2(opts);
|
|
@@ -19193,7 +19207,7 @@ function registerInitCommands(program2) {
|
|
|
19193
19207
|
"Scaffold a tenant PLATFORM repo (core + platform Pulumi layers on @mesh-tech/infra-components) that deploys with `mesh deploy` unmodified \u2014 the proven mesh-sandbox shape, annotated. On a terminal it ASKS for the values that differ per install (env, region, domain, state bucket, AWS profile), each pre-filled with its default; every answer is also a flag."
|
|
19194
19208
|
).option("--env <env>", `environment the first stack targets (default: ${PLATFORM_SETUP_DEFAULTS.env})`).option("--region <region>", `AWS region (default: ${PLATFORM_SETUP_DEFAULTS.region})`).option(
|
|
19195
19209
|
"--domain <domain>",
|
|
19196
|
-
"base public domain you control \u2014 the core stack creates the Route 53 zone {env}.{domain}
|
|
19210
|
+
"base public domain you control \u2014 the core stack creates the Route 53 zone {env}.{domain}, whose NS records you then delegate at your registrar; the deploy stops at the mesh-gateway Ingress until that lets ACM issue the certificate. Required: it has no default, because a placeholder scaffolds a zone nobody can delegate to you"
|
|
19197
19211
|
).option("--profile <profile>", `AWS profile the stack config references (default: ${PLATFORM_SETUP_DEFAULTS.profile})`).option("--state-bucket <bucket>", "Pulumi state S3 bucket (default: {tenant}-mesh-platform-pulumi-state)").option("--create-state-bucket", "create the state bucket (versioned) if it does not exist \u2014 prompted on a terminal").option("--no-create-state-bucket", "never create the state bucket; print the aws command instead").option("--dir <path>", "target directory (default: ./{tenant}-mesh-platform)").option("--yes", "accept every default and never prompt", false).action(
|
|
19198
19212
|
async (tenant, opts) => {
|
|
19199
19213
|
if (!/^[a-z][a-z0-9-]*$/.test(tenant)) {
|
|
@@ -19264,7 +19278,7 @@ function registerInitCommands(program2) {
|
|
|
19264
19278
|
}
|
|
19265
19279
|
var LOCAL_HUB_API;
|
|
19266
19280
|
var init_init = __esm({
|
|
19267
|
-
"
|
|
19281
|
+
"packages/mesh-cli/src/commands/init.ts"() {
|
|
19268
19282
|
"use strict";
|
|
19269
19283
|
init_log();
|
|
19270
19284
|
init_errors();
|
|
@@ -19278,7 +19292,7 @@ var init_init = __esm({
|
|
|
19278
19292
|
}
|
|
19279
19293
|
});
|
|
19280
19294
|
|
|
19281
|
-
//
|
|
19295
|
+
// packages/mesh-cli/src/commands/install-shim.ts
|
|
19282
19296
|
import { execFileSync as execFileSync29 } from "child_process";
|
|
19283
19297
|
import * as fs35 from "fs";
|
|
19284
19298
|
import * as os10 from "os";
|
|
@@ -19432,13 +19446,13 @@ function registerInstallShimCommand(program2) {
|
|
|
19432
19446
|
});
|
|
19433
19447
|
}
|
|
19434
19448
|
var init_install_shim = __esm({
|
|
19435
|
-
"
|
|
19449
|
+
"packages/mesh-cli/src/commands/install-shim.ts"() {
|
|
19436
19450
|
"use strict";
|
|
19437
19451
|
init_log();
|
|
19438
19452
|
}
|
|
19439
19453
|
});
|
|
19440
19454
|
|
|
19441
|
-
//
|
|
19455
|
+
// packages/mesh-cli/src/commands/local/hub-local.ts
|
|
19442
19456
|
import { execFile as execFile3, execFileSync as execFileSync30 } from "child_process";
|
|
19443
19457
|
import * as fs36 from "fs";
|
|
19444
19458
|
import * as os11 from "os";
|
|
@@ -19720,7 +19734,7 @@ async function buildHubImagesFromSource(repoRoot2) {
|
|
|
19720
19734
|
}
|
|
19721
19735
|
var execFileAsync2, HUB_PACKAGE, HUB_IMAGES, LOCAL_IMAGE_REV, HUB_AUTH_IMAGE, HUB_COMPILED_AUTHZ_REL;
|
|
19722
19736
|
var init_hub_local = __esm({
|
|
19723
|
-
"
|
|
19737
|
+
"packages/mesh-cli/src/commands/local/hub-local.ts"() {
|
|
19724
19738
|
"use strict";
|
|
19725
19739
|
init_log();
|
|
19726
19740
|
init_errors();
|
|
@@ -19736,7 +19750,7 @@ var init_hub_local = __esm({
|
|
|
19736
19750
|
}
|
|
19737
19751
|
});
|
|
19738
19752
|
|
|
19739
|
-
//
|
|
19753
|
+
// packages/mesh-cli/src/commands/local/seed-hub-catalog.ts
|
|
19740
19754
|
function withHubCatalogRefs(pointer, metadataRef) {
|
|
19741
19755
|
return {
|
|
19742
19756
|
spicedb: { instanceRefs: [] },
|
|
@@ -19787,7 +19801,7 @@ function catalogBundleNames(metadata) {
|
|
|
19787
19801
|
}
|
|
19788
19802
|
var HUB_AUTHZ_POINTER_PARAM, HUB_OPS_HUB_METADATA_PARAM;
|
|
19789
19803
|
var init_seed_hub_catalog = __esm({
|
|
19790
|
-
"
|
|
19804
|
+
"packages/mesh-cli/src/commands/local/seed-hub-catalog.ts"() {
|
|
19791
19805
|
"use strict";
|
|
19792
19806
|
init_seed();
|
|
19793
19807
|
HUB_AUTHZ_POINTER_PARAM = `/mesh-platform/${LOCAL_TENANT}/${LOCAL_ENV}/apps/hub/stacks/local/authz`;
|
|
@@ -19795,7 +19809,7 @@ var init_seed_hub_catalog = __esm({
|
|
|
19795
19809
|
}
|
|
19796
19810
|
});
|
|
19797
19811
|
|
|
19798
|
-
//
|
|
19812
|
+
// packages/mesh-cli/src/commands/local/index.ts
|
|
19799
19813
|
import * as fs37 from "fs";
|
|
19800
19814
|
import * as path44 from "path";
|
|
19801
19815
|
import chalk6 from "chalk";
|
|
@@ -20227,7 +20241,7 @@ Re-running start from here may recreate shared containers with this checkout's c
|
|
|
20227
20241
|
}
|
|
20228
20242
|
var WAIT_TIMEOUT_MS, WAIT_POLL_MS;
|
|
20229
20243
|
var init_local = __esm({
|
|
20230
|
-
"
|
|
20244
|
+
"packages/mesh-cli/src/commands/local/index.ts"() {
|
|
20231
20245
|
"use strict";
|
|
20232
20246
|
init_log();
|
|
20233
20247
|
init_errors();
|
|
@@ -20245,7 +20259,7 @@ var init_local = __esm({
|
|
|
20245
20259
|
}
|
|
20246
20260
|
});
|
|
20247
20261
|
|
|
20248
|
-
//
|
|
20262
|
+
// packages/mesh-cli/src/commands/secrets/exec.ts
|
|
20249
20263
|
import { spawn as spawn8 } from "child_process";
|
|
20250
20264
|
import {
|
|
20251
20265
|
SecretsManagerClient as SecretsManagerClient4,
|
|
@@ -20361,12 +20375,12 @@ async function execCommand2(args) {
|
|
|
20361
20375
|
});
|
|
20362
20376
|
}
|
|
20363
20377
|
var init_exec2 = __esm({
|
|
20364
|
-
"
|
|
20378
|
+
"packages/mesh-cli/src/commands/secrets/exec.ts"() {
|
|
20365
20379
|
"use strict";
|
|
20366
20380
|
}
|
|
20367
20381
|
});
|
|
20368
20382
|
|
|
20369
|
-
//
|
|
20383
|
+
// packages/secrets/src/index.ts
|
|
20370
20384
|
import {
|
|
20371
20385
|
SecretsManagerClient as SecretsManagerClient5,
|
|
20372
20386
|
GetSecretValueCommand as GetSecretValueCommand5
|
|
@@ -20404,25 +20418,25 @@ function buildInstanceIndexValue(keys) {
|
|
|
20404
20418
|
}
|
|
20405
20419
|
var INSTANCE_INDEX_SUFFIX;
|
|
20406
20420
|
var init_src3 = __esm({
|
|
20407
|
-
"
|
|
20421
|
+
"packages/secrets/src/index.ts"() {
|
|
20408
20422
|
"use strict";
|
|
20409
20423
|
INSTANCE_INDEX_SUFFIX = ".index";
|
|
20410
20424
|
}
|
|
20411
20425
|
});
|
|
20412
20426
|
|
|
20413
|
-
//
|
|
20427
|
+
// packages/mesh-cli/src/commands/secrets/context.ts
|
|
20414
20428
|
function resolveSecretsContext(opts, stackOpt = resolveStackOption(opts)) {
|
|
20415
20429
|
return detectContext(stackOpt, { tenant: opts.tenant, stack: stackOpt });
|
|
20416
20430
|
}
|
|
20417
20431
|
var init_context2 = __esm({
|
|
20418
|
-
"
|
|
20432
|
+
"packages/mesh-cli/src/commands/secrets/context.ts"() {
|
|
20419
20433
|
"use strict";
|
|
20420
20434
|
init_context();
|
|
20421
20435
|
init_stack_flag();
|
|
20422
20436
|
}
|
|
20423
20437
|
});
|
|
20424
20438
|
|
|
20425
|
-
//
|
|
20439
|
+
// packages/mesh-cli/src/commands/secrets/set.ts
|
|
20426
20440
|
import {
|
|
20427
20441
|
SSMClient as SSMClient2,
|
|
20428
20442
|
GetParametersByPathCommand
|
|
@@ -20676,8 +20690,7 @@ Usage: mesh secrets set external/<name>`);
|
|
|
20676
20690
|
console.error("");
|
|
20677
20691
|
}
|
|
20678
20692
|
function isResourceNotFound(err) {
|
|
20679
|
-
|
|
20680
|
-
return e?.name === "ResourceNotFoundException" || e?.__type === "ResourceNotFoundException" || e?.Code === "ResourceNotFoundException" || e?.code === "ResourceNotFoundException" || typeof e?.message === "string" && e.message.includes("ResourceNotFoundException");
|
|
20693
|
+
return isAwsErrorCode(err, "ResourceNotFoundException");
|
|
20681
20694
|
}
|
|
20682
20695
|
function deepMerge(target, source) {
|
|
20683
20696
|
const result = { ...target };
|
|
@@ -20805,7 +20818,7 @@ async function writeConfigMirror(client, secretId, schema, merged, meta) {
|
|
|
20805
20818
|
}
|
|
20806
20819
|
}
|
|
20807
20820
|
var init_set = __esm({
|
|
20808
|
-
"
|
|
20821
|
+
"packages/mesh-cli/src/commands/secrets/set.ts"() {
|
|
20809
20822
|
"use strict";
|
|
20810
20823
|
init_src3();
|
|
20811
20824
|
init_log();
|
|
@@ -20813,10 +20826,11 @@ var init_set = __esm({
|
|
|
20813
20826
|
init_context2();
|
|
20814
20827
|
init_pulumi();
|
|
20815
20828
|
init_aws_auth();
|
|
20829
|
+
init_aws_errors();
|
|
20816
20830
|
}
|
|
20817
20831
|
});
|
|
20818
20832
|
|
|
20819
|
-
//
|
|
20833
|
+
// packages/mesh-cli/src/commands/secrets/reindex.ts
|
|
20820
20834
|
import { SSMClient as SSMClient3 } from "@aws-sdk/client-ssm";
|
|
20821
20835
|
import {
|
|
20822
20836
|
SecretsManagerClient as SecretsManagerClient7,
|
|
@@ -20941,7 +20955,7 @@ async function writeInstanceIndex(client, secretPrefix, serviceName, keys) {
|
|
|
20941
20955
|
}
|
|
20942
20956
|
}
|
|
20943
20957
|
var init_reindex = __esm({
|
|
20944
|
-
"
|
|
20958
|
+
"packages/mesh-cli/src/commands/secrets/reindex.ts"() {
|
|
20945
20959
|
"use strict";
|
|
20946
20960
|
init_src3();
|
|
20947
20961
|
init_log();
|
|
@@ -20951,7 +20965,7 @@ var init_reindex = __esm({
|
|
|
20951
20965
|
}
|
|
20952
20966
|
});
|
|
20953
20967
|
|
|
20954
|
-
//
|
|
20968
|
+
// packages/mesh-cli/src/commands/secrets/migrate-config.ts
|
|
20955
20969
|
import {
|
|
20956
20970
|
SSMClient as SSMClient4,
|
|
20957
20971
|
GetParametersByPathCommand as GetParametersByPathCommand2
|
|
@@ -21041,16 +21055,12 @@ function extractNonSecretFields2(fields, values) {
|
|
|
21041
21055
|
}
|
|
21042
21056
|
return result;
|
|
21043
21057
|
}
|
|
21044
|
-
function isResourceNotFound2(err) {
|
|
21045
|
-
const e = err;
|
|
21046
|
-
return e?.name === "ResourceNotFoundException" || e?.__type === "ResourceNotFoundException" || e?.Code === "ResourceNotFoundException" || e?.code === "ResourceNotFoundException" || typeof e?.message === "string" && e.message.includes("ResourceNotFoundException");
|
|
21047
|
-
}
|
|
21048
21058
|
async function readSecret(client, secretId) {
|
|
21049
21059
|
try {
|
|
21050
21060
|
const res = await client.send(new GetSecretValueCommand8({ SecretId: secretId }));
|
|
21051
21061
|
return res.SecretString ? JSON.parse(res.SecretString) : null;
|
|
21052
21062
|
} catch (err) {
|
|
21053
|
-
if (
|
|
21063
|
+
if (isAwsErrorCode(err, "ResourceNotFoundException")) return null;
|
|
21054
21064
|
throw err;
|
|
21055
21065
|
}
|
|
21056
21066
|
}
|
|
@@ -21059,7 +21069,7 @@ async function writeSecret2(client, secretId, values, description) {
|
|
|
21059
21069
|
try {
|
|
21060
21070
|
await client.send(new PutSecretValueCommand3({ SecretId: secretId, SecretString: secretString }));
|
|
21061
21071
|
} catch (err) {
|
|
21062
|
-
if (
|
|
21072
|
+
if (isAwsErrorCode(err, "ResourceNotFoundException")) {
|
|
21063
21073
|
await client.send(new CreateSecretCommand3({
|
|
21064
21074
|
Name: secretId,
|
|
21065
21075
|
Description: description,
|
|
@@ -21076,7 +21086,7 @@ async function secretExists(client, secretId) {
|
|
|
21076
21086
|
await client.send(new GetSecretValueCommand8({ SecretId: secretId }));
|
|
21077
21087
|
return true;
|
|
21078
21088
|
} catch (err) {
|
|
21079
|
-
if (
|
|
21089
|
+
if (isAwsErrorCode(err, "ResourceNotFoundException")) return false;
|
|
21080
21090
|
throw err;
|
|
21081
21091
|
}
|
|
21082
21092
|
}
|
|
@@ -21187,14 +21197,15 @@ Migrating: ${name}`);
|
|
|
21187
21197
|
}
|
|
21188
21198
|
}
|
|
21189
21199
|
var init_migrate_config = __esm({
|
|
21190
|
-
"
|
|
21200
|
+
"packages/mesh-cli/src/commands/secrets/migrate-config.ts"() {
|
|
21191
21201
|
"use strict";
|
|
21192
21202
|
init_log();
|
|
21193
21203
|
init_context2();
|
|
21204
|
+
init_aws_errors();
|
|
21194
21205
|
}
|
|
21195
21206
|
});
|
|
21196
21207
|
|
|
21197
|
-
//
|
|
21208
|
+
// packages/mesh-cli/src/commands/secrets/index.ts
|
|
21198
21209
|
import { Option as Option2 } from "commander";
|
|
21199
21210
|
function registerSecretsCommands(program2) {
|
|
21200
21211
|
const secrets = program2.command("secrets").description("AWS Secrets Manager utilities");
|
|
@@ -21215,7 +21226,7 @@ function registerSecretsCommands(program2) {
|
|
|
21215
21226
|
});
|
|
21216
21227
|
}
|
|
21217
21228
|
var init_secrets = __esm({
|
|
21218
|
-
"
|
|
21229
|
+
"packages/mesh-cli/src/commands/secrets/index.ts"() {
|
|
21219
21230
|
"use strict";
|
|
21220
21231
|
init_exec2();
|
|
21221
21232
|
init_set();
|
|
@@ -21224,7 +21235,7 @@ var init_secrets = __esm({
|
|
|
21224
21235
|
}
|
|
21225
21236
|
});
|
|
21226
21237
|
|
|
21227
|
-
//
|
|
21238
|
+
// packages/mesh-cli/src/commands/site.ts
|
|
21228
21239
|
import { createHash as createHash4 } from "node:crypto";
|
|
21229
21240
|
import { createReadStream } from "node:fs";
|
|
21230
21241
|
import { readdir, readFile as readFile2, stat } from "node:fs/promises";
|
|
@@ -21433,7 +21444,7 @@ function registerSiteCommands(program2) {
|
|
|
21433
21444
|
}
|
|
21434
21445
|
var DEFAULT_AUTH_CONTEXT3, UPLOAD_CONCURRENCY, SKIP_ENTRIES, targetOptions;
|
|
21435
21446
|
var init_site = __esm({
|
|
21436
|
-
"
|
|
21447
|
+
"packages/mesh-cli/src/commands/site.ts"() {
|
|
21437
21448
|
"use strict";
|
|
21438
21449
|
init_log();
|
|
21439
21450
|
init_agent_api_client();
|
|
@@ -21444,7 +21455,7 @@ var init_site = __esm({
|
|
|
21444
21455
|
}
|
|
21445
21456
|
});
|
|
21446
21457
|
|
|
21447
|
-
//
|
|
21458
|
+
// packages/mesh-cli/src/commands/stack.ts
|
|
21448
21459
|
import { execFileSync as execFileSync31 } from "child_process";
|
|
21449
21460
|
import * as path45 from "path";
|
|
21450
21461
|
import * as fs38 from "fs";
|
|
@@ -21814,7 +21825,7 @@ Specify which to base on: mesh stack init --from <stack>`
|
|
|
21814
21825
|
});
|
|
21815
21826
|
}
|
|
21816
21827
|
var init_stack2 = __esm({
|
|
21817
|
-
"
|
|
21828
|
+
"packages/mesh-cli/src/commands/stack.ts"() {
|
|
21818
21829
|
"use strict";
|
|
21819
21830
|
init_log();
|
|
21820
21831
|
init_pulumi();
|
|
@@ -21823,7 +21834,7 @@ var init_stack2 = __esm({
|
|
|
21823
21834
|
}
|
|
21824
21835
|
});
|
|
21825
21836
|
|
|
21826
|
-
//
|
|
21837
|
+
// packages/mesh-cli/src/utils/recover-conversation.ts
|
|
21827
21838
|
async function classifyHistoryEvents(rawEvents, decodePayload) {
|
|
21828
21839
|
const activityTypeByScheduledId = /* @__PURE__ */ new Map();
|
|
21829
21840
|
const events = [];
|
|
@@ -22012,12 +22023,12 @@ function renderTranscriptMarkdown(turns) {
|
|
|
22012
22023
|
return blocks.join("\n\n") + "\n";
|
|
22013
22024
|
}
|
|
22014
22025
|
var init_recover_conversation = __esm({
|
|
22015
|
-
"
|
|
22026
|
+
"packages/mesh-cli/src/utils/recover-conversation.ts"() {
|
|
22016
22027
|
"use strict";
|
|
22017
22028
|
}
|
|
22018
22029
|
});
|
|
22019
22030
|
|
|
22020
|
-
//
|
|
22031
|
+
// packages/mesh-cli/src/utils/temporal-codec.ts
|
|
22021
22032
|
import { execFileSync as execFileSync32 } from "child_process";
|
|
22022
22033
|
import { webcrypto as crypto4 } from "node:crypto";
|
|
22023
22034
|
function resolveTemporalEncodingKeyFromK8s(namespace) {
|
|
@@ -22217,7 +22228,7 @@ async function buildRawDecrypterForNamespace(namespace) {
|
|
|
22217
22228
|
}
|
|
22218
22229
|
var ENCRYPTED_ENCODING, IV_LENGTH;
|
|
22219
22230
|
var init_temporal_codec = __esm({
|
|
22220
|
-
"
|
|
22231
|
+
"packages/mesh-cli/src/utils/temporal-codec.ts"() {
|
|
22221
22232
|
"use strict";
|
|
22222
22233
|
init_log();
|
|
22223
22234
|
ENCRYPTED_ENCODING = "binary/encrypted";
|
|
@@ -22225,7 +22236,7 @@ var init_temporal_codec = __esm({
|
|
|
22225
22236
|
}
|
|
22226
22237
|
});
|
|
22227
22238
|
|
|
22228
|
-
//
|
|
22239
|
+
// packages/mesh-cli/src/utils/capture-history.ts
|
|
22229
22240
|
var capture_history_exports = {};
|
|
22230
22241
|
__export(capture_history_exports, {
|
|
22231
22242
|
decryptHistoryPayloads: () => decryptHistoryPayloads,
|
|
@@ -22265,12 +22276,12 @@ async function serializeHistoryToFixture(events, decrypter) {
|
|
|
22265
22276
|
return { fixture, eventCount: events.length, decryptedPayloads };
|
|
22266
22277
|
}
|
|
22267
22278
|
var init_capture_history = __esm({
|
|
22268
|
-
"
|
|
22279
|
+
"packages/mesh-cli/src/utils/capture-history.ts"() {
|
|
22269
22280
|
"use strict";
|
|
22270
22281
|
}
|
|
22271
22282
|
});
|
|
22272
22283
|
|
|
22273
|
-
//
|
|
22284
|
+
// packages/mesh-cli/src/commands/temporal.ts
|
|
22274
22285
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
22275
22286
|
import { writeFileSync as writeFileSync24, mkdirSync as mkdirSync20 } from "node:fs";
|
|
22276
22287
|
import { homedir as homedir6 } from "node:os";
|
|
@@ -22830,7 +22841,7 @@ function registerTemporalCommands(program2) {
|
|
|
22830
22841
|
}
|
|
22831
22842
|
var EVENT_TYPE_NAMES, STATUS_NAMES;
|
|
22832
22843
|
var init_temporal = __esm({
|
|
22833
|
-
"
|
|
22844
|
+
"packages/mesh-cli/src/commands/temporal.ts"() {
|
|
22834
22845
|
"use strict";
|
|
22835
22846
|
init_log();
|
|
22836
22847
|
init_recover_conversation();
|
|
@@ -22892,7 +22903,7 @@ var init_temporal = __esm({
|
|
|
22892
22903
|
}
|
|
22893
22904
|
});
|
|
22894
22905
|
|
|
22895
|
-
//
|
|
22906
|
+
// packages/mesh-cli/src/commands/tenant.ts
|
|
22896
22907
|
import chalk7 from "chalk";
|
|
22897
22908
|
import * as fs39 from "fs";
|
|
22898
22909
|
import * as path46 from "path";
|
|
@@ -23070,7 +23081,7 @@ function registerTenantCommands(program2) {
|
|
|
23070
23081
|
});
|
|
23071
23082
|
}
|
|
23072
23083
|
var init_tenant = __esm({
|
|
23073
|
-
"
|
|
23084
|
+
"packages/mesh-cli/src/commands/tenant.ts"() {
|
|
23074
23085
|
"use strict";
|
|
23075
23086
|
init_log();
|
|
23076
23087
|
init_errors();
|
|
@@ -23079,7 +23090,7 @@ var init_tenant = __esm({
|
|
|
23079
23090
|
}
|
|
23080
23091
|
});
|
|
23081
23092
|
|
|
23082
|
-
//
|
|
23093
|
+
// packages/mesh-cli/src/commands/tunnel/index.ts
|
|
23083
23094
|
import { spawn as spawn9 } from "child_process";
|
|
23084
23095
|
import * as fs40 from "fs";
|
|
23085
23096
|
import * as os12 from "os";
|
|
@@ -23468,7 +23479,7 @@ function registerTunnelCommands(program2) {
|
|
|
23468
23479
|
}
|
|
23469
23480
|
var SERVICE_CONFIG, SERVICE_GROUPS;
|
|
23470
23481
|
var init_tunnel2 = __esm({
|
|
23471
|
-
"
|
|
23482
|
+
"packages/mesh-cli/src/commands/tunnel/index.ts"() {
|
|
23472
23483
|
"use strict";
|
|
23473
23484
|
init_utils();
|
|
23474
23485
|
SERVICE_CONFIG = {
|
|
@@ -23495,7 +23506,7 @@ var init_tunnel2 = __esm({
|
|
|
23495
23506
|
}
|
|
23496
23507
|
});
|
|
23497
23508
|
|
|
23498
|
-
//
|
|
23509
|
+
// packages/mesh-cli/src/commands/vcs/common.ts
|
|
23499
23510
|
import { execFile as execFile4 } from "node:child_process";
|
|
23500
23511
|
import { promisify as promisify3 } from "node:util";
|
|
23501
23512
|
function redactToken(err, token) {
|
|
@@ -23569,13 +23580,13 @@ async function vcsApi(baseUrl, token, path49, method = "GET", body) {
|
|
|
23569
23580
|
}
|
|
23570
23581
|
var execFileAsync3;
|
|
23571
23582
|
var init_common = __esm({
|
|
23572
|
-
"
|
|
23583
|
+
"packages/mesh-cli/src/commands/vcs/common.ts"() {
|
|
23573
23584
|
"use strict";
|
|
23574
23585
|
execFileAsync3 = promisify3(execFile4);
|
|
23575
23586
|
}
|
|
23576
23587
|
});
|
|
23577
23588
|
|
|
23578
|
-
//
|
|
23589
|
+
// packages/mesh-cli/src/commands/vcs/clone.ts
|
|
23579
23590
|
async function cloneCommand(repo, dest, opts) {
|
|
23580
23591
|
const baseUrl = (opts.url ?? process.env.VCS_URL)?.replace(/\/$/, "");
|
|
23581
23592
|
if (!baseUrl) throw new Error("clone requires --url or VCS_URL");
|
|
@@ -23600,13 +23611,13 @@ async function cloneCommand(repo, dest, opts) {
|
|
|
23600
23611
|
);
|
|
23601
23612
|
}
|
|
23602
23613
|
var init_clone = __esm({
|
|
23603
|
-
"
|
|
23614
|
+
"packages/mesh-cli/src/commands/vcs/clone.ts"() {
|
|
23604
23615
|
"use strict";
|
|
23605
23616
|
init_common();
|
|
23606
23617
|
}
|
|
23607
23618
|
});
|
|
23608
23619
|
|
|
23609
|
-
//
|
|
23620
|
+
// packages/mesh-cli/src/commands/vcs/get.ts
|
|
23610
23621
|
import { writeFile as writeFile2, mkdir as mkdir2 } from "node:fs/promises";
|
|
23611
23622
|
import { join as join45, dirname as dirname30 } from "node:path";
|
|
23612
23623
|
async function getCommand(repo, path49, opts) {
|
|
@@ -23649,7 +23660,7 @@ async function getCommand(repo, path49, opts) {
|
|
|
23649
23660
|
}
|
|
23650
23661
|
}
|
|
23651
23662
|
var init_get = __esm({
|
|
23652
|
-
"
|
|
23663
|
+
"packages/mesh-cli/src/commands/vcs/get.ts"() {
|
|
23653
23664
|
"use strict";
|
|
23654
23665
|
init_src2();
|
|
23655
23666
|
init_agent_api_client();
|
|
@@ -23659,7 +23670,7 @@ var init_get = __esm({
|
|
|
23659
23670
|
}
|
|
23660
23671
|
});
|
|
23661
23672
|
|
|
23662
|
-
//
|
|
23673
|
+
// packages/mesh-cli/src/commands/vcs/drafts.ts
|
|
23663
23674
|
async function call(opts, repo, path49, method = "GET", body) {
|
|
23664
23675
|
const target = await resolveTarget2({ ...opts, repo });
|
|
23665
23676
|
const token = await resolveToken(opts);
|
|
@@ -23710,13 +23721,13 @@ async function draftsDiscardCommand(repo, draftId, opts) {
|
|
|
23710
23721
|
console.log(`draft ${d.draftId} discarded`);
|
|
23711
23722
|
}
|
|
23712
23723
|
var init_drafts = __esm({
|
|
23713
|
-
"
|
|
23724
|
+
"packages/mesh-cli/src/commands/vcs/drafts.ts"() {
|
|
23714
23725
|
"use strict";
|
|
23715
23726
|
init_common();
|
|
23716
23727
|
}
|
|
23717
23728
|
});
|
|
23718
23729
|
|
|
23719
|
-
//
|
|
23730
|
+
// packages/mesh-cli/src/commands/vcs/propose.ts
|
|
23720
23731
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
23721
23732
|
import { join as join46 } from "node:path";
|
|
23722
23733
|
function parseStatus(out) {
|
|
@@ -23808,13 +23819,13 @@ async function proposeCommand(opts) {
|
|
|
23808
23819
|
);
|
|
23809
23820
|
}
|
|
23810
23821
|
var init_propose = __esm({
|
|
23811
|
-
"
|
|
23822
|
+
"packages/mesh-cli/src/commands/vcs/propose.ts"() {
|
|
23812
23823
|
"use strict";
|
|
23813
23824
|
init_common();
|
|
23814
23825
|
}
|
|
23815
23826
|
});
|
|
23816
23827
|
|
|
23817
|
-
//
|
|
23828
|
+
// packages/mesh-cli/src/commands/vcs/rm.ts
|
|
23818
23829
|
import { mkdtemp as mkdtemp2, rm as rmrf } from "node:fs/promises";
|
|
23819
23830
|
import { tmpdir as tmpdir10 } from "node:os";
|
|
23820
23831
|
import { join as join47 } from "node:path";
|
|
@@ -23893,13 +23904,13 @@ async function rmCommand(repo, paths, opts) {
|
|
|
23893
23904
|
}
|
|
23894
23905
|
}
|
|
23895
23906
|
var init_rm = __esm({
|
|
23896
|
-
"
|
|
23907
|
+
"packages/mesh-cli/src/commands/vcs/rm.ts"() {
|
|
23897
23908
|
"use strict";
|
|
23898
23909
|
init_common();
|
|
23899
23910
|
}
|
|
23900
23911
|
});
|
|
23901
23912
|
|
|
23902
|
-
//
|
|
23913
|
+
// packages/mesh-cli/src/commands/vcs/review.ts
|
|
23903
23914
|
async function call2(opts, repo, path49, method = "GET", body) {
|
|
23904
23915
|
const target = await resolveTarget2({ ...opts, repo });
|
|
23905
23916
|
const token = await resolveToken(opts);
|
|
@@ -23933,13 +23944,13 @@ async function requestChangesCommand(repo, id, opts) {
|
|
|
23933
23944
|
console.log(`changes requested on ${id}`);
|
|
23934
23945
|
}
|
|
23935
23946
|
var init_review = __esm({
|
|
23936
|
-
"
|
|
23947
|
+
"packages/mesh-cli/src/commands/vcs/review.ts"() {
|
|
23937
23948
|
"use strict";
|
|
23938
23949
|
init_common();
|
|
23939
23950
|
}
|
|
23940
23951
|
});
|
|
23941
23952
|
|
|
23942
|
-
//
|
|
23953
|
+
// packages/mesh-cli/src/commands/vcs/index.ts
|
|
23943
23954
|
function withCommon(cmd) {
|
|
23944
23955
|
return cmd.option("--url <url>", "vcs service URL (or VCS_URL, or derived from origin remote)").option("--token <token>", "bearer token (or VCS_TOKEN)").option("--context <context>", "mesh login context to mint a token from");
|
|
23945
23956
|
}
|
|
@@ -23996,7 +24007,7 @@ function registerVcsCommands(program2) {
|
|
|
23996
24007
|
);
|
|
23997
24008
|
}
|
|
23998
24009
|
var init_vcs = __esm({
|
|
23999
|
-
"
|
|
24010
|
+
"packages/mesh-cli/src/commands/vcs/index.ts"() {
|
|
24000
24011
|
"use strict";
|
|
24001
24012
|
init_clone();
|
|
24002
24013
|
init_get();
|
|
@@ -24007,7 +24018,7 @@ var init_vcs = __esm({
|
|
|
24007
24018
|
}
|
|
24008
24019
|
});
|
|
24009
24020
|
|
|
24010
|
-
//
|
|
24021
|
+
// packages/workflow-model/src/workflow-ir.ts
|
|
24011
24022
|
function computeHappyPath(nodes, edges) {
|
|
24012
24023
|
const startNode = nodes.find((n) => n.type === "start");
|
|
24013
24024
|
const endNodes = nodes.filter((n) => n.type === "end");
|
|
@@ -24568,7 +24579,7 @@ function validateWorkflowPatches(ir, patches) {
|
|
|
24568
24579
|
}
|
|
24569
24580
|
var WorkflowPatchError, WorkflowPatchStream;
|
|
24570
24581
|
var init_workflow_ir = __esm({
|
|
24571
|
-
"
|
|
24582
|
+
"packages/workflow-model/src/workflow-ir.ts"() {
|
|
24572
24583
|
"use strict";
|
|
24573
24584
|
WorkflowPatchError = class extends Error {
|
|
24574
24585
|
constructor(message) {
|
|
@@ -24650,7 +24661,7 @@ var init_workflow_ir = __esm({
|
|
|
24650
24661
|
}
|
|
24651
24662
|
});
|
|
24652
24663
|
|
|
24653
|
-
//
|
|
24664
|
+
// packages/workflow-model/src/workflow-ir-validate.ts
|
|
24654
24665
|
function outgoingEdges(edges, nodeId) {
|
|
24655
24666
|
return edges.filter((e) => e.from === nodeId);
|
|
24656
24667
|
}
|
|
@@ -24762,12 +24773,12 @@ function collectDiagnostics(workflow, out, depth, maxDepth) {
|
|
|
24762
24773
|
}
|
|
24763
24774
|
}
|
|
24764
24775
|
var init_workflow_ir_validate = __esm({
|
|
24765
|
-
"
|
|
24776
|
+
"packages/workflow-model/src/workflow-ir-validate.ts"() {
|
|
24766
24777
|
"use strict";
|
|
24767
24778
|
}
|
|
24768
24779
|
});
|
|
24769
24780
|
|
|
24770
|
-
//
|
|
24781
|
+
// packages/workflow-model/src/apply-preview-patch.ts
|
|
24771
24782
|
function applyPreviewPatch(ir, patch) {
|
|
24772
24783
|
try {
|
|
24773
24784
|
return applyWorkflowPatch(ir, patch);
|
|
@@ -24776,13 +24787,13 @@ function applyPreviewPatch(ir, patch) {
|
|
|
24776
24787
|
}
|
|
24777
24788
|
}
|
|
24778
24789
|
var init_apply_preview_patch = __esm({
|
|
24779
|
-
"
|
|
24790
|
+
"packages/workflow-model/src/apply-preview-patch.ts"() {
|
|
24780
24791
|
"use strict";
|
|
24781
24792
|
init_workflow_ir();
|
|
24782
24793
|
}
|
|
24783
24794
|
});
|
|
24784
24795
|
|
|
24785
|
-
//
|
|
24796
|
+
// packages/workflow-model/src/change-counts.ts
|
|
24786
24797
|
function countChanges(changes) {
|
|
24787
24798
|
if (!changes) return null;
|
|
24788
24799
|
const counts = {
|
|
@@ -24816,13 +24827,13 @@ function describeChanges(counts) {
|
|
|
24816
24827
|
}
|
|
24817
24828
|
var zero;
|
|
24818
24829
|
var init_change_counts = __esm({
|
|
24819
|
-
"
|
|
24830
|
+
"packages/workflow-model/src/change-counts.ts"() {
|
|
24820
24831
|
"use strict";
|
|
24821
24832
|
zero = () => ({ extend: 0, add: 0, remove: 0, rewire: 0, total: 0 });
|
|
24822
24833
|
}
|
|
24823
24834
|
});
|
|
24824
24835
|
|
|
24825
|
-
//
|
|
24836
|
+
// packages/workflow-model/src/process-artifact.ts
|
|
24826
24837
|
import { z as z4 } from "zod";
|
|
24827
24838
|
function outcomeTriggers(outcome) {
|
|
24828
24839
|
const raw = Array.isArray(outcome.when) ? outcome.when : [outcome.when];
|
|
@@ -24964,7 +24975,7 @@ function parseProcessArtifact(json) {
|
|
|
24964
24975
|
}
|
|
24965
24976
|
var CURRENT_PROCESS_VERSION, SUPPORTED_PROCESS_VERSIONS, UNVERSIONED_REVISION, LEGACY_V1_ACTOR_CATEGORY, actorSchema, selectorSchema, substepBindSchema, substepSchema, outcomeTriggerSchema, outcomeWhenSchema, outcomeSchema, stageCompleteSchema, stageSchema, processBlockSchema, processArtifactSchema;
|
|
24966
24977
|
var init_process_artifact = __esm({
|
|
24967
|
-
"
|
|
24978
|
+
"packages/workflow-model/src/process-artifact.ts"() {
|
|
24968
24979
|
"use strict";
|
|
24969
24980
|
CURRENT_PROCESS_VERSION = 2;
|
|
24970
24981
|
SUPPORTED_PROCESS_VERSIONS = [1, 2];
|
|
@@ -25154,7 +25165,7 @@ var init_process_artifact = __esm({
|
|
|
25154
25165
|
}
|
|
25155
25166
|
});
|
|
25156
25167
|
|
|
25157
|
-
//
|
|
25168
|
+
// packages/workflow-model/src/process-lint.ts
|
|
25158
25169
|
function stagePath(stageIndex) {
|
|
25159
25170
|
return `process.stages[${stageIndex}]`;
|
|
25160
25171
|
}
|
|
@@ -25313,13 +25324,13 @@ function lintProcess(artifact, inventory, predicateNames, options = {}) {
|
|
|
25313
25324
|
return diagnostics;
|
|
25314
25325
|
}
|
|
25315
25326
|
var init_process_lint = __esm({
|
|
25316
|
-
"
|
|
25327
|
+
"packages/workflow-model/src/process-lint.ts"() {
|
|
25317
25328
|
"use strict";
|
|
25318
25329
|
init_process_artifact();
|
|
25319
25330
|
}
|
|
25320
25331
|
});
|
|
25321
25332
|
|
|
25322
|
-
//
|
|
25333
|
+
// packages/workflow-model/src/index.ts
|
|
25323
25334
|
var src_exports2 = {};
|
|
25324
25335
|
__export(src_exports2, {
|
|
25325
25336
|
CURRENT_PROCESS_VERSION: () => CURRENT_PROCESS_VERSION,
|
|
@@ -25348,7 +25359,7 @@ __export(src_exports2, {
|
|
|
25348
25359
|
walkProcessNodes: () => walkProcessNodes
|
|
25349
25360
|
});
|
|
25350
25361
|
var init_src4 = __esm({
|
|
25351
|
-
"
|
|
25362
|
+
"packages/workflow-model/src/index.ts"() {
|
|
25352
25363
|
"use strict";
|
|
25353
25364
|
init_workflow_ir();
|
|
25354
25365
|
init_workflow_ir_validate();
|
|
@@ -25359,7 +25370,7 @@ var init_src4 = __esm({
|
|
|
25359
25370
|
}
|
|
25360
25371
|
});
|
|
25361
25372
|
|
|
25362
|
-
//
|
|
25373
|
+
// packages/mesh-cli/src/commands/workflow.ts
|
|
25363
25374
|
import * as fs41 from "fs";
|
|
25364
25375
|
import * as path48 from "path";
|
|
25365
25376
|
import { createRequire as createRequire2 } from "module";
|
|
@@ -25788,7 +25799,7 @@ ${inventory.workflowType} (${sourceFile})`);
|
|
|
25788
25799
|
}
|
|
25789
25800
|
var DISCOVERY_HELPERS_SRC;
|
|
25790
25801
|
var init_workflow = __esm({
|
|
25791
|
-
"
|
|
25802
|
+
"packages/mesh-cli/src/commands/workflow.ts"() {
|
|
25792
25803
|
"use strict";
|
|
25793
25804
|
init_log();
|
|
25794
25805
|
DISCOVERY_HELPERS_SRC = `
|
|
@@ -25884,7 +25895,7 @@ function discoverProcessArtifact(filePath, source) {
|
|
|
25884
25895
|
}
|
|
25885
25896
|
});
|
|
25886
25897
|
|
|
25887
|
-
//
|
|
25898
|
+
// packages/mesh-cli/src/program.ts
|
|
25888
25899
|
var program_exports = {};
|
|
25889
25900
|
__export(program_exports, {
|
|
25890
25901
|
CLI_DESCRIPTION: () => CLI_DESCRIPTION,
|
|
@@ -25925,7 +25936,7 @@ function createProgram(options = {}) {
|
|
|
25925
25936
|
}
|
|
25926
25937
|
var CLI_NAME, CLI_DESCRIPTION;
|
|
25927
25938
|
var init_program = __esm({
|
|
25928
|
-
"
|
|
25939
|
+
"packages/mesh-cli/src/program.ts"() {
|
|
25929
25940
|
"use strict";
|
|
25930
25941
|
init_app_check();
|
|
25931
25942
|
init_artifacts();
|
|
@@ -25957,7 +25968,7 @@ var init_program = __esm({
|
|
|
25957
25968
|
}
|
|
25958
25969
|
});
|
|
25959
25970
|
|
|
25960
|
-
//
|
|
25971
|
+
// packages/mesh-cli/bin/mesh.ts
|
|
25961
25972
|
init_program();
|
|
25962
25973
|
init_errors();
|
|
25963
25974
|
init_build_info();
|