@mesh-tech/mesh-cli 0.34.1 → 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/assets/intent/intent-claude-gate.mjs +1 -1
- package/dist/bin/mesh.js +243 -243
- package/dist/bin/mesh.js.map +2 -2
- package/dist/build-info.json +2 -2
- package/dist/src/commands/local/seed.js +2 -2
- package/dist/src/commands/temporal.js +97 -97
- 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/temporal-codec.js +3 -3
- package/package.json +4 -4
- package/skills/core/SKILL.md +1 -1
- package/skills/pull-remote-agent-context/SKILL.md +1 -1
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,18 +1110,18 @@ var init_seed = __esm({
|
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
1112
|
|
|
1113
|
-
//
|
|
1113
|
+
// packages/mesh-cli/src/utils/aws-errors.ts
|
|
1114
1114
|
function isAwsErrorCode(err, code) {
|
|
1115
1115
|
const e = err;
|
|
1116
1116
|
return e?.name === code || e?.__type === code || e?.Code === code || e?.code === code || typeof e?.message === "string" && e.message.includes(code);
|
|
1117
1117
|
}
|
|
1118
1118
|
var init_aws_errors = __esm({
|
|
1119
|
-
"
|
|
1119
|
+
"packages/mesh-cli/src/utils/aws-errors.ts"() {
|
|
1120
1120
|
"use strict";
|
|
1121
1121
|
}
|
|
1122
1122
|
});
|
|
1123
1123
|
|
|
1124
|
-
//
|
|
1124
|
+
// packages/mesh-cli/src/commands/local/helpers.ts
|
|
1125
1125
|
import * as net from "net";
|
|
1126
1126
|
import { execFileSync as execFileSync3 } from "child_process";
|
|
1127
1127
|
async function upsertLocalSecret(secretId, value, client) {
|
|
@@ -1210,7 +1210,7 @@ function describePortConflicts(conflicts, moveHints = /* @__PURE__ */ new Map())
|
|
|
1210
1210
|
}
|
|
1211
1211
|
var defaultPortConflictIo;
|
|
1212
1212
|
var init_helpers = __esm({
|
|
1213
|
-
"
|
|
1213
|
+
"packages/mesh-cli/src/commands/local/helpers.ts"() {
|
|
1214
1214
|
"use strict";
|
|
1215
1215
|
init_seed();
|
|
1216
1216
|
init_aws_errors();
|
|
@@ -1242,7 +1242,7 @@ var init_helpers = __esm({
|
|
|
1242
1242
|
}
|
|
1243
1243
|
});
|
|
1244
1244
|
|
|
1245
|
-
//
|
|
1245
|
+
// packages/mesh-cli/src/utils/cache-home.ts
|
|
1246
1246
|
import fs4 from "node:fs";
|
|
1247
1247
|
import os from "node:os";
|
|
1248
1248
|
import path4 from "node:path";
|
|
@@ -1255,12 +1255,12 @@ function meshCacheDir(...segments) {
|
|
|
1255
1255
|
return dir;
|
|
1256
1256
|
}
|
|
1257
1257
|
var init_cache_home = __esm({
|
|
1258
|
-
"
|
|
1258
|
+
"packages/mesh-cli/src/utils/cache-home.ts"() {
|
|
1259
1259
|
"use strict";
|
|
1260
1260
|
}
|
|
1261
1261
|
});
|
|
1262
1262
|
|
|
1263
|
-
//
|
|
1263
|
+
// packages/mesh-cli/src/commands/local/stack.ts
|
|
1264
1264
|
var stack_exports = {};
|
|
1265
1265
|
__export(stack_exports, {
|
|
1266
1266
|
BASE_COMPOSE_FILE: () => BASE_COMPOSE_FILE,
|
|
@@ -1597,7 +1597,7 @@ async function probeEndpoint(endpoint) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
var COMPOSE_PROJECT, STACK_ENDPOINTS, DEFAULT_HUB_PORT, BASE_COMPOSE_FILE, HUB_OVERLAY_FILE, IDPS_OVERLAY_FILE, overlayServicesCache, ONE_SHOT_SERVICES;
|
|
1599
1599
|
var init_stack = __esm({
|
|
1600
|
-
"
|
|
1600
|
+
"packages/mesh-cli/src/commands/local/stack.ts"() {
|
|
1601
1601
|
"use strict";
|
|
1602
1602
|
init_helpers();
|
|
1603
1603
|
init_cache_home();
|
|
@@ -1708,7 +1708,7 @@ var init_stack = __esm({
|
|
|
1708
1708
|
}
|
|
1709
1709
|
});
|
|
1710
1710
|
|
|
1711
|
-
//
|
|
1711
|
+
// packages/mesh-cli/src/commands/skills.ts
|
|
1712
1712
|
var skills_exports = {};
|
|
1713
1713
|
__export(skills_exports, {
|
|
1714
1714
|
INTENT_RANGE: () => INTENT_RANGE,
|
|
@@ -2008,7 +2008,7 @@ function registerSkillsCommands(program2) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
var MANAGED_MARKER, FENCE_START, HOOK_RELATIVE, INTENT_RANGE, BASE_SKILL_PACKAGE;
|
|
2010
2010
|
var init_skills = __esm({
|
|
2011
|
-
"
|
|
2011
|
+
"packages/mesh-cli/src/commands/skills.ts"() {
|
|
2012
2012
|
"use strict";
|
|
2013
2013
|
init_log();
|
|
2014
2014
|
init_errors();
|
|
@@ -2021,7 +2021,7 @@ var init_skills = __esm({
|
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
|
|
2024
|
-
//
|
|
2024
|
+
// packages/mesh-cli/src/commands/app-check-resolve.ts
|
|
2025
2025
|
import * as fs7 from "node:fs";
|
|
2026
2026
|
import * as path7 from "node:path";
|
|
2027
2027
|
import { builtinModules } from "node:module";
|
|
@@ -2249,7 +2249,7 @@ function resolveProgramImports(appDir, options = {}) {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
var CONDITIONS, EXTENSIONS, SCOPE, FILE_BUDGET, BUILTINS;
|
|
2251
2251
|
var init_app_check_resolve = __esm({
|
|
2252
|
-
"
|
|
2252
|
+
"packages/mesh-cli/src/commands/app-check-resolve.ts"() {
|
|
2253
2253
|
"use strict";
|
|
2254
2254
|
CONDITIONS = /* @__PURE__ */ new Set(["source", "node", "import", "require", "module", "module-sync", "default"]);
|
|
2255
2255
|
EXTENSIONS = ["", ".ts", ".tsx", ".js", ".mjs", ".cjs", "/index.ts", "/index.js", "/index.mjs"];
|
|
@@ -2259,7 +2259,7 @@ var init_app_check_resolve = __esm({
|
|
|
2259
2259
|
}
|
|
2260
2260
|
});
|
|
2261
2261
|
|
|
2262
|
-
//
|
|
2262
|
+
// packages/mesh-cli/src/utils/first-party-contexts.ts
|
|
2263
2263
|
function firstPartyDomainFor(context) {
|
|
2264
2264
|
if (!Object.hasOwn(FIRST_PARTY_CONTEXTS, context)) return null;
|
|
2265
2265
|
const domain = FIRST_PARTY_CONTEXTS[context];
|
|
@@ -2267,7 +2267,7 @@ function firstPartyDomainFor(context) {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
var FIRST_PARTY_CONTEXTS;
|
|
2269
2269
|
var init_first_party_contexts = __esm({
|
|
2270
|
-
"
|
|
2270
|
+
"packages/mesh-cli/src/utils/first-party-contexts.ts"() {
|
|
2271
2271
|
"use strict";
|
|
2272
2272
|
FIRST_PARTY_CONTEXTS = Object.freeze({
|
|
2273
2273
|
// Verified 2026-08-14: https://cli.dev.platform.meshtech.io/.well-known/mesh.json
|
|
@@ -2281,7 +2281,7 @@ var init_first_party_contexts = __esm({
|
|
|
2281
2281
|
}
|
|
2282
2282
|
});
|
|
2283
2283
|
|
|
2284
|
-
//
|
|
2284
|
+
// packages/mesh-cli/src/utils/pid.ts
|
|
2285
2285
|
function unsignalableReason(pid) {
|
|
2286
2286
|
if (typeof pid !== "number") {
|
|
2287
2287
|
return `expected an integer, got ${typeof pid} (${String(pid)})`;
|
|
@@ -2316,14 +2316,14 @@ function assertSignalablePid(pid, source) {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
var MIN_SIGNALABLE_PID;
|
|
2318
2318
|
var init_pid = __esm({
|
|
2319
|
-
"
|
|
2319
|
+
"packages/mesh-cli/src/utils/pid.ts"() {
|
|
2320
2320
|
"use strict";
|
|
2321
2321
|
init_errors();
|
|
2322
2322
|
MIN_SIGNALABLE_PID = 2;
|
|
2323
2323
|
}
|
|
2324
2324
|
});
|
|
2325
2325
|
|
|
2326
|
-
//
|
|
2326
|
+
// packages/mesh-cli/src/utils/tailscale-targets.ts
|
|
2327
2327
|
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
2328
2328
|
import * as fs8 from "node:fs";
|
|
2329
2329
|
import * as path8 from "node:path";
|
|
@@ -2373,7 +2373,7 @@ function resolveElbIp(host) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
var PORT_BLOCK, TUNNEL_NAME_BY_BASTION_KEY;
|
|
2375
2375
|
var init_tailscale_targets = __esm({
|
|
2376
|
-
"
|
|
2376
|
+
"packages/mesh-cli/src/utils/tailscale-targets.ts"() {
|
|
2377
2377
|
"use strict";
|
|
2378
2378
|
init_dev();
|
|
2379
2379
|
init_login();
|
|
@@ -2386,7 +2386,7 @@ var init_tailscale_targets = __esm({
|
|
|
2386
2386
|
}
|
|
2387
2387
|
});
|
|
2388
2388
|
|
|
2389
|
-
//
|
|
2389
|
+
// packages/mesh-cli/src/utils/socks-forward.ts
|
|
2390
2390
|
import * as net2 from "node:net";
|
|
2391
2391
|
function ipv4ToBytes(ip) {
|
|
2392
2392
|
const parts = ip.split(".");
|
|
@@ -2447,7 +2447,7 @@ function createForwarder(opts) {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
var SOCKS_REPLY_MESSAGES;
|
|
2449
2449
|
var init_socks_forward = __esm({
|
|
2450
|
-
"
|
|
2450
|
+
"packages/mesh-cli/src/utils/socks-forward.ts"() {
|
|
2451
2451
|
"use strict";
|
|
2452
2452
|
SOCKS_REPLY_MESSAGES = {
|
|
2453
2453
|
0: "succeeded",
|
|
@@ -2463,7 +2463,7 @@ var init_socks_forward = __esm({
|
|
|
2463
2463
|
}
|
|
2464
2464
|
});
|
|
2465
2465
|
|
|
2466
|
-
//
|
|
2466
|
+
// packages/mesh-cli/src/utils/tunnel-ownership.ts
|
|
2467
2467
|
import * as crypto from "node:crypto";
|
|
2468
2468
|
import * as fs9 from "node:fs";
|
|
2469
2469
|
import * as net3 from "node:net";
|
|
@@ -2650,12 +2650,12 @@ function buildSquatterError(tenant, squatted, detail) {
|
|
|
2650
2650
|
].join("\n");
|
|
2651
2651
|
}
|
|
2652
2652
|
var init_tunnel_ownership = __esm({
|
|
2653
|
-
"
|
|
2653
|
+
"packages/mesh-cli/src/utils/tunnel-ownership.ts"() {
|
|
2654
2654
|
"use strict";
|
|
2655
2655
|
}
|
|
2656
2656
|
});
|
|
2657
2657
|
|
|
2658
|
-
//
|
|
2658
|
+
// packages/mesh-cli/src/utils/tailscale.ts
|
|
2659
2659
|
import * as fs10 from "node:fs";
|
|
2660
2660
|
import * as net4 from "node:net";
|
|
2661
2661
|
import * as os2 from "node:os";
|
|
@@ -3297,7 +3297,7 @@ async function runTunnels(tenant) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
var sleep, _launchdAvailable;
|
|
3299
3299
|
var init_tailscale = __esm({
|
|
3300
|
-
"
|
|
3300
|
+
"packages/mesh-cli/src/utils/tailscale.ts"() {
|
|
3301
3301
|
"use strict";
|
|
3302
3302
|
init_login();
|
|
3303
3303
|
init_aws_auth();
|
|
@@ -3312,7 +3312,7 @@ var init_tailscale = __esm({
|
|
|
3312
3312
|
}
|
|
3313
3313
|
});
|
|
3314
3314
|
|
|
3315
|
-
//
|
|
3315
|
+
// packages/mesh-cli/src/commands/vpn/tunnel.ts
|
|
3316
3316
|
import * as net5 from "node:net";
|
|
3317
3317
|
function deriveLoginServer(context) {
|
|
3318
3318
|
const cfg = getContextConfig(context);
|
|
@@ -3445,7 +3445,7 @@ function registerTunnelSubcommands(vpn) {
|
|
|
3445
3445
|
tunnel.command("__supervise <tenant>", { hidden: true }).action((tenant) => runTunnels(tenant));
|
|
3446
3446
|
}
|
|
3447
3447
|
var init_tunnel = __esm({
|
|
3448
|
-
"
|
|
3448
|
+
"packages/mesh-cli/src/commands/vpn/tunnel.ts"() {
|
|
3449
3449
|
"use strict";
|
|
3450
3450
|
init_log();
|
|
3451
3451
|
init_login();
|
|
@@ -3453,7 +3453,7 @@ var init_tunnel = __esm({
|
|
|
3453
3453
|
}
|
|
3454
3454
|
});
|
|
3455
3455
|
|
|
3456
|
-
//
|
|
3456
|
+
// packages/mesh-cli/src/commands/vpn/index.ts
|
|
3457
3457
|
import { execFileSync as execFileSync9 } from "child_process";
|
|
3458
3458
|
import * as net6 from "node:net";
|
|
3459
3459
|
function defaultNamespace(tenant, env) {
|
|
@@ -3883,7 +3883,7 @@ function registerVpnCommands(program2) {
|
|
|
3883
3883
|
}
|
|
3884
3884
|
var HEADSCALE_POD, HEADSCALE_CONTAINER;
|
|
3885
3885
|
var init_vpn2 = __esm({
|
|
3886
|
-
"
|
|
3886
|
+
"packages/mesh-cli/src/commands/vpn/index.ts"() {
|
|
3887
3887
|
"use strict";
|
|
3888
3888
|
init_utils();
|
|
3889
3889
|
init_login();
|
|
@@ -3894,7 +3894,7 @@ var init_vpn2 = __esm({
|
|
|
3894
3894
|
}
|
|
3895
3895
|
});
|
|
3896
3896
|
|
|
3897
|
-
//
|
|
3897
|
+
// packages/mesh-cli/src/commands/login.ts
|
|
3898
3898
|
var login_exports = {};
|
|
3899
3899
|
__export(login_exports, {
|
|
3900
3900
|
CONFIG_DIR: () => CONFIG_DIR,
|
|
@@ -4976,7 +4976,7 @@ async function discoverConfigForContext(context) {
|
|
|
4976
4976
|
}
|
|
4977
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;
|
|
4978
4978
|
var init_login = __esm({
|
|
4979
|
-
"
|
|
4979
|
+
"packages/mesh-cli/src/commands/login.ts"() {
|
|
4980
4980
|
"use strict";
|
|
4981
4981
|
init_log();
|
|
4982
4982
|
init_errors();
|
|
@@ -5000,7 +5000,7 @@ var init_login = __esm({
|
|
|
5000
5000
|
}
|
|
5001
5001
|
});
|
|
5002
5002
|
|
|
5003
|
-
//
|
|
5003
|
+
// packages/mesh-cli/src/utils/registry-broker.ts
|
|
5004
5004
|
function deriveRegistryBroker(context, getCfg = getContextConfig) {
|
|
5005
5005
|
const cfg = getCfg(context);
|
|
5006
5006
|
if (!cfg?.issuer) return null;
|
|
@@ -5083,14 +5083,14 @@ function realGrantDeps() {
|
|
|
5083
5083
|
}
|
|
5084
5084
|
var PUBLISHED_BROKER_TIMEOUT_MS;
|
|
5085
5085
|
var init_registry_broker = __esm({
|
|
5086
|
-
"
|
|
5086
|
+
"packages/mesh-cli/src/utils/registry-broker.ts"() {
|
|
5087
5087
|
"use strict";
|
|
5088
5088
|
init_login();
|
|
5089
5089
|
PUBLISHED_BROKER_TIMEOUT_MS = 15e3;
|
|
5090
5090
|
}
|
|
5091
5091
|
});
|
|
5092
5092
|
|
|
5093
|
-
//
|
|
5093
|
+
// packages/mesh-cli/src/utils/registry-identity.ts
|
|
5094
5094
|
var registry_identity_exports = {};
|
|
5095
5095
|
__export(registry_identity_exports, {
|
|
5096
5096
|
REGISTRY_ALIAS: () => REGISTRY_ALIAS,
|
|
@@ -5265,7 +5265,7 @@ function logRegistryIdentity(identity) {
|
|
|
5265
5265
|
}
|
|
5266
5266
|
var REGISTRY_ALIAS, REGISTRY_DOMAIN, REGISTRY_CREDENTIAL_KEY, RegistryIdentityError;
|
|
5267
5267
|
var init_registry_identity = __esm({
|
|
5268
|
-
"
|
|
5268
|
+
"packages/mesh-cli/src/utils/registry-identity.ts"() {
|
|
5269
5269
|
"use strict";
|
|
5270
5270
|
init_login();
|
|
5271
5271
|
init_aws_auth();
|
|
@@ -5295,7 +5295,7 @@ var init_registry_identity = __esm({
|
|
|
5295
5295
|
}
|
|
5296
5296
|
});
|
|
5297
5297
|
|
|
5298
|
-
//
|
|
5298
|
+
// packages/mesh-cli/src/utils/auth-preflight.ts
|
|
5299
5299
|
var auth_preflight_exports = {};
|
|
5300
5300
|
__export(auth_preflight_exports, {
|
|
5301
5301
|
REGISTRY_LOGIN_FIX: () => REGISTRY_LOGIN_FIX,
|
|
@@ -5477,7 +5477,7 @@ function appUsesMeshPackages(appRoot) {
|
|
|
5477
5477
|
}
|
|
5478
5478
|
var REGISTRY_LOGIN_FIX, REGISTRY_LOGIN_FIX_AWS, SSO_LOGIN_FIX, SSO_SESSION_SNIPPET;
|
|
5479
5479
|
var init_auth_preflight = __esm({
|
|
5480
|
-
"
|
|
5480
|
+
"packages/mesh-cli/src/utils/auth-preflight.ts"() {
|
|
5481
5481
|
"use strict";
|
|
5482
5482
|
REGISTRY_LOGIN_FIX = "mesh registry login";
|
|
5483
5483
|
REGISTRY_LOGIN_FIX_AWS = "mesh registry login --profile mesh-dev";
|
|
@@ -5489,7 +5489,7 @@ sso_registration_scopes = sso:account:access`;
|
|
|
5489
5489
|
}
|
|
5490
5490
|
});
|
|
5491
5491
|
|
|
5492
|
-
//
|
|
5492
|
+
// packages/mesh-cli/src/utils/aws-auth.ts
|
|
5493
5493
|
import * as fs13 from "fs";
|
|
5494
5494
|
import * as path13 from "path";
|
|
5495
5495
|
import {
|
|
@@ -5813,7 +5813,7 @@ async function resolveAwsCredentials(roleArn, appRoot, stack) {
|
|
|
5813
5813
|
}
|
|
5814
5814
|
var DEFAULT_REGION, MANAGED_START_PREFIX, MANAGED_START, MANAGED_END;
|
|
5815
5815
|
var init_aws_auth = __esm({
|
|
5816
|
-
"
|
|
5816
|
+
"packages/mesh-cli/src/utils/aws-auth.ts"() {
|
|
5817
5817
|
"use strict";
|
|
5818
5818
|
init_log();
|
|
5819
5819
|
init_auth_preflight();
|
|
@@ -5825,7 +5825,7 @@ var init_aws_auth = __esm({
|
|
|
5825
5825
|
}
|
|
5826
5826
|
});
|
|
5827
5827
|
|
|
5828
|
-
//
|
|
5828
|
+
// packages/mesh-cli/src/utils/vpn-join.ts
|
|
5829
5829
|
function resolveVpnJoinBroker(context, getCfg = getContextConfig) {
|
|
5830
5830
|
const cfg = getCfg(context);
|
|
5831
5831
|
if (cfg?.vpnJoinBroker) return cfg.vpnJoinBroker;
|
|
@@ -5861,13 +5861,13 @@ async function mintPreAuthKey(context, brokerUrl, deps) {
|
|
|
5861
5861
|
}
|
|
5862
5862
|
}
|
|
5863
5863
|
var init_vpn_join = __esm({
|
|
5864
|
-
"
|
|
5864
|
+
"packages/mesh-cli/src/utils/vpn-join.ts"() {
|
|
5865
5865
|
"use strict";
|
|
5866
5866
|
init_login();
|
|
5867
5867
|
}
|
|
5868
5868
|
});
|
|
5869
5869
|
|
|
5870
|
-
//
|
|
5870
|
+
// packages/mesh-cli/src/utils/pulumi-run.ts
|
|
5871
5871
|
function credProbeToPreflightError(probe, context) {
|
|
5872
5872
|
switch (probe.state) {
|
|
5873
5873
|
case "ok":
|
|
@@ -5937,7 +5937,7 @@ async function resolvePulumiEnv(opts) {
|
|
|
5937
5937
|
return { ...resolved.env };
|
|
5938
5938
|
}
|
|
5939
5939
|
var init_pulumi_run = __esm({
|
|
5940
|
-
"
|
|
5940
|
+
"packages/mesh-cli/src/utils/pulumi-run.ts"() {
|
|
5941
5941
|
"use strict";
|
|
5942
5942
|
init_log();
|
|
5943
5943
|
init_pulumi();
|
|
@@ -5946,7 +5946,7 @@ var init_pulumi_run = __esm({
|
|
|
5946
5946
|
}
|
|
5947
5947
|
});
|
|
5948
5948
|
|
|
5949
|
-
//
|
|
5949
|
+
// packages/mesh-cli/src/utils/kubeconfig.ts
|
|
5950
5950
|
import * as fs14 from "fs";
|
|
5951
5951
|
import * as os4 from "os";
|
|
5952
5952
|
import * as path14 from "path";
|
|
@@ -6020,12 +6020,12 @@ async function ensureKubeconfig(platformName, env, sessionName, deps = {}) {
|
|
|
6020
6020
|
return kubeconfigPath;
|
|
6021
6021
|
}
|
|
6022
6022
|
var init_kubeconfig = __esm({
|
|
6023
|
-
"
|
|
6023
|
+
"packages/mesh-cli/src/utils/kubeconfig.ts"() {
|
|
6024
6024
|
"use strict";
|
|
6025
6025
|
}
|
|
6026
6026
|
});
|
|
6027
6027
|
|
|
6028
|
-
//
|
|
6028
|
+
// packages/mesh-cli/src/utils/temporal-auth.ts
|
|
6029
6029
|
import { execFileSync as execFileSync11 } from "node:child_process";
|
|
6030
6030
|
async function resolveTemporalAuth(tenant, env, platformName = tenant) {
|
|
6031
6031
|
const { SSMClient: SSMClient5, GetParameterCommand: GetParameterCommand2 } = await import("@aws-sdk/client-ssm");
|
|
@@ -6152,13 +6152,13 @@ async function acquireTemporalBearer(vars = {}) {
|
|
|
6152
6152
|
return data.access_token;
|
|
6153
6153
|
}
|
|
6154
6154
|
var init_temporal_auth = __esm({
|
|
6155
|
-
"
|
|
6155
|
+
"packages/mesh-cli/src/utils/temporal-auth.ts"() {
|
|
6156
6156
|
"use strict";
|
|
6157
6157
|
init_log();
|
|
6158
6158
|
}
|
|
6159
6159
|
});
|
|
6160
6160
|
|
|
6161
|
-
//
|
|
6161
|
+
// packages/mesh-cli/src/utils/reachability.ts
|
|
6162
6162
|
import { createConnection } from "node:net";
|
|
6163
6163
|
function probeTcpReachable(host, port, timeoutMs = 1500) {
|
|
6164
6164
|
return new Promise((resolve21) => {
|
|
@@ -6198,12 +6198,12 @@ function probeConnectionHolds(host, port, timeoutMs = 800, holdMs = 25) {
|
|
|
6198
6198
|
});
|
|
6199
6199
|
}
|
|
6200
6200
|
var init_reachability = __esm({
|
|
6201
|
-
"
|
|
6201
|
+
"packages/mesh-cli/src/utils/reachability.ts"() {
|
|
6202
6202
|
"use strict";
|
|
6203
6203
|
}
|
|
6204
6204
|
});
|
|
6205
6205
|
|
|
6206
|
-
//
|
|
6206
|
+
// packages/mesh-cli/src/utils/workflow-fingerprint.ts
|
|
6207
6207
|
import { createHash as createHash2 } from "node:crypto";
|
|
6208
6208
|
import { existsSync as existsSync13, readFileSync as readFileSync13, readdirSync as readdirSync4 } from "node:fs";
|
|
6209
6209
|
import { dirname as dirname13, isAbsolute as isAbsolute2, join as join13, relative as relative4 } from "node:path";
|
|
@@ -6266,7 +6266,7 @@ function fingerprintWorkflowSource(appRoot, services = {}) {
|
|
|
6266
6266
|
}
|
|
6267
6267
|
var WORKFLOW_PACKAGE_DIRS, EXCLUDE;
|
|
6268
6268
|
var init_workflow_fingerprint = __esm({
|
|
6269
|
-
"
|
|
6269
|
+
"packages/mesh-cli/src/utils/workflow-fingerprint.ts"() {
|
|
6270
6270
|
"use strict";
|
|
6271
6271
|
WORKFLOW_PACKAGE_DIRS = [
|
|
6272
6272
|
"packages/agent-sdk/src",
|
|
@@ -6277,7 +6277,7 @@ var init_workflow_fingerprint = __esm({
|
|
|
6277
6277
|
}
|
|
6278
6278
|
});
|
|
6279
6279
|
|
|
6280
|
-
//
|
|
6280
|
+
// packages/mesh-cli/src/commands/dev-launch.ts
|
|
6281
6281
|
import * as fs15 from "fs";
|
|
6282
6282
|
import * as net7 from "net";
|
|
6283
6283
|
import * as path15 from "path";
|
|
@@ -6337,14 +6337,14 @@ function tryConnect(host, port, timeoutMs) {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
var ENV_FILE_MODE, ENV_KEY_RE;
|
|
6339
6339
|
var init_dev_launch = __esm({
|
|
6340
|
-
"
|
|
6340
|
+
"packages/mesh-cli/src/commands/dev-launch.ts"() {
|
|
6341
6341
|
"use strict";
|
|
6342
6342
|
ENV_FILE_MODE = 384;
|
|
6343
6343
|
ENV_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
6344
6344
|
}
|
|
6345
6345
|
});
|
|
6346
6346
|
|
|
6347
|
-
//
|
|
6347
|
+
// packages/mesh-cli/src/commands/local/mocks.ts
|
|
6348
6348
|
import { execFileSync as execFileSync12 } from "child_process";
|
|
6349
6349
|
import * as fs16 from "fs";
|
|
6350
6350
|
import * as path16 from "path";
|
|
@@ -6835,7 +6835,7 @@ async function seedLocalMock(args) {
|
|
|
6835
6835
|
}
|
|
6836
6836
|
var EXTERNAL_MODES, DECL_DOCS, dockerProbes, SECRET_KEY_RE;
|
|
6837
6837
|
var init_mocks = __esm({
|
|
6838
|
-
"
|
|
6838
|
+
"packages/mesh-cli/src/commands/local/mocks.ts"() {
|
|
6839
6839
|
"use strict";
|
|
6840
6840
|
init_log();
|
|
6841
6841
|
init_errors();
|
|
@@ -6854,7 +6854,7 @@ var init_mocks = __esm({
|
|
|
6854
6854
|
}
|
|
6855
6855
|
});
|
|
6856
6856
|
|
|
6857
|
-
//
|
|
6857
|
+
// packages/api-registry/src/hub-roles.ts
|
|
6858
6858
|
function restrictedRoleBase(roleKey) {
|
|
6859
6859
|
const sep8 = roleKey.indexOf(HUB_ROLE_KEY_SEPARATOR);
|
|
6860
6860
|
const base = sep8 === -1 ? roleKey : roleKey.slice(0, sep8);
|
|
@@ -6887,7 +6887,7 @@ function hubOperatorRoleKeys(tenants) {
|
|
|
6887
6887
|
}
|
|
6888
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;
|
|
6889
6889
|
var init_hub_roles = __esm({
|
|
6890
|
-
"
|
|
6890
|
+
"packages/api-registry/src/hub-roles.ts"() {
|
|
6891
6891
|
"use strict";
|
|
6892
6892
|
HUB_STAFF_ROLES = ["ops", "admin"];
|
|
6893
6893
|
HUB_RESTRICTED_ROLES = ["developer", "auditor", "vendor", "docs"];
|
|
@@ -6908,11 +6908,11 @@ var init_hub_roles = __esm({
|
|
|
6908
6908
|
}
|
|
6909
6909
|
});
|
|
6910
6910
|
|
|
6911
|
-
//
|
|
6911
|
+
// packages/api-registry/src/index.ts
|
|
6912
6912
|
import { z } from "zod";
|
|
6913
6913
|
var rateLimitSpecSchema, rateLimitDefaultsSchema, integrationHealthSchema, apiSurfaceKindSchema, apiDocsSiteAudienceSchema, apiSurfaceSchema, apiRegistryEntrySchema, integrationStatusSchema, hubActAsExportsSchema;
|
|
6914
6914
|
var init_src = __esm({
|
|
6915
|
-
"
|
|
6915
|
+
"packages/api-registry/src/index.ts"() {
|
|
6916
6916
|
"use strict";
|
|
6917
6917
|
init_hub_roles();
|
|
6918
6918
|
rateLimitSpecSchema = z.object({
|
|
@@ -6995,7 +6995,7 @@ var init_src = __esm({
|
|
|
6995
6995
|
}
|
|
6996
6996
|
});
|
|
6997
6997
|
|
|
6998
|
-
//
|
|
6998
|
+
// packages/mesh-cli/src/commands/local/mock-idps.ts
|
|
6999
6999
|
import { execFileSync as execFileSync13 } from "child_process";
|
|
7000
7000
|
import * as fs17 from "fs";
|
|
7001
7001
|
import * as path17 from "path";
|
|
@@ -7041,7 +7041,7 @@ function ensureMockSamlSigningKey() {
|
|
|
7041
7041
|
}
|
|
7042
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;
|
|
7043
7043
|
var init_mock_idps = __esm({
|
|
7044
|
-
"
|
|
7044
|
+
"packages/mesh-cli/src/commands/local/mock-idps.ts"() {
|
|
7045
7045
|
"use strict";
|
|
7046
7046
|
init_cache_home();
|
|
7047
7047
|
init_errors();
|
|
@@ -7128,7 +7128,7 @@ var init_mock_idps = __esm({
|
|
|
7128
7128
|
}
|
|
7129
7129
|
});
|
|
7130
7130
|
|
|
7131
|
-
//
|
|
7131
|
+
// packages/mesh-cli/src/commands/local/seed-zitadel.ts
|
|
7132
7132
|
import * as fs18 from "fs";
|
|
7133
7133
|
import * as os5 from "os";
|
|
7134
7134
|
import * as path18 from "path";
|
|
@@ -7632,7 +7632,7 @@ async function seedMockIdps() {
|
|
|
7632
7632
|
}
|
|
7633
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;
|
|
7634
7634
|
var init_seed_zitadel = __esm({
|
|
7635
|
-
"
|
|
7635
|
+
"packages/mesh-cli/src/commands/local/seed-zitadel.ts"() {
|
|
7636
7636
|
"use strict";
|
|
7637
7637
|
init_src();
|
|
7638
7638
|
init_log();
|
|
@@ -7691,7 +7691,7 @@ var init_seed_zitadel = __esm({
|
|
|
7691
7691
|
}
|
|
7692
7692
|
});
|
|
7693
7693
|
|
|
7694
|
-
//
|
|
7694
|
+
// packages/mesh-cli/src/commands/local/auth-provision.ts
|
|
7695
7695
|
function authSecretPath(tenant, app, service) {
|
|
7696
7696
|
return `mesh/${tenant}/${LOCAL_ENV}/apps/${app}/zitadel/${service}`;
|
|
7697
7697
|
}
|
|
@@ -8054,7 +8054,7 @@ async function ensureAppTenantAuth(args) {
|
|
|
8054
8054
|
}
|
|
8055
8055
|
var ensureProject;
|
|
8056
8056
|
var init_auth_provision = __esm({
|
|
8057
|
-
"
|
|
8057
|
+
"packages/mesh-cli/src/commands/local/auth-provision.ts"() {
|
|
8058
8058
|
"use strict";
|
|
8059
8059
|
init_log();
|
|
8060
8060
|
init_seed();
|
|
@@ -8064,7 +8064,7 @@ var init_auth_provision = __esm({
|
|
|
8064
8064
|
}
|
|
8065
8065
|
});
|
|
8066
8066
|
|
|
8067
|
-
//
|
|
8067
|
+
// packages/mesh-cli/src/commands/local/dev-local.ts
|
|
8068
8068
|
import * as fs19 from "fs";
|
|
8069
8069
|
import * as path19 from "path";
|
|
8070
8070
|
function localAppNamespace(tenant, appName) {
|
|
@@ -8303,7 +8303,7 @@ async function ensureLocalPlatformRunning() {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
var LOCAL_STACK_NAME, BASE_PORT;
|
|
8305
8305
|
var init_dev_local = __esm({
|
|
8306
|
-
"
|
|
8306
|
+
"packages/mesh-cli/src/commands/local/dev-local.ts"() {
|
|
8307
8307
|
"use strict";
|
|
8308
8308
|
init_mocks();
|
|
8309
8309
|
init_helpers();
|
|
@@ -8320,7 +8320,7 @@ var init_dev_local = __esm({
|
|
|
8320
8320
|
}
|
|
8321
8321
|
});
|
|
8322
8322
|
|
|
8323
|
-
//
|
|
8323
|
+
// packages/mesh-cli/src/commands/local/docker-runner.ts
|
|
8324
8324
|
import { execFileSync as execFileSync14 } from "child_process";
|
|
8325
8325
|
import * as fs20 from "fs";
|
|
8326
8326
|
import * as path20 from "path";
|
|
@@ -8407,7 +8407,7 @@ function dockerDevRestart(sessionName, service) {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
var DEV_RUNNER_IMAGE;
|
|
8409
8409
|
var init_docker_runner = __esm({
|
|
8410
|
-
"
|
|
8410
|
+
"packages/mesh-cli/src/commands/local/docker-runner.ts"() {
|
|
8411
8411
|
"use strict";
|
|
8412
8412
|
init_dev_local();
|
|
8413
8413
|
init_cache_home();
|
|
@@ -8415,7 +8415,7 @@ var init_docker_runner = __esm({
|
|
|
8415
8415
|
}
|
|
8416
8416
|
});
|
|
8417
8417
|
|
|
8418
|
-
//
|
|
8418
|
+
// packages/mesh-cli/src/utils/stack-flag.ts
|
|
8419
8419
|
function resolveStackSelector(opts) {
|
|
8420
8420
|
if (opts.stack != null) return { stack: opts.stack, usedDeprecatedStage: false };
|
|
8421
8421
|
if (opts.stage != null) return { stack: opts.stage, usedDeprecatedStage: true };
|
|
@@ -8433,14 +8433,14 @@ function resolveStackOption(opts) {
|
|
|
8433
8433
|
}
|
|
8434
8434
|
var warnedOnce;
|
|
8435
8435
|
var init_stack_flag = __esm({
|
|
8436
|
-
"
|
|
8436
|
+
"packages/mesh-cli/src/utils/stack-flag.ts"() {
|
|
8437
8437
|
"use strict";
|
|
8438
8438
|
init_log();
|
|
8439
8439
|
warnedOnce = false;
|
|
8440
8440
|
}
|
|
8441
8441
|
});
|
|
8442
8442
|
|
|
8443
|
-
//
|
|
8443
|
+
// packages/mesh-cli/src/commands/peer-addressing.ts
|
|
8444
8444
|
function clusterHostPattern(serviceName) {
|
|
8445
8445
|
const name = serviceName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8446
8446
|
return new RegExp(`https?://${name}\\.[a-z0-9-]+\\.svc\\.cluster\\.local(?::\\d+)?`, "g");
|
|
@@ -8464,12 +8464,12 @@ function rewriteClusterHostsToLocal(devOutput) {
|
|
|
8464
8464
|
}
|
|
8465
8465
|
}
|
|
8466
8466
|
var init_peer_addressing = __esm({
|
|
8467
|
-
"
|
|
8467
|
+
"packages/mesh-cli/src/commands/peer-addressing.ts"() {
|
|
8468
8468
|
"use strict";
|
|
8469
8469
|
}
|
|
8470
8470
|
});
|
|
8471
8471
|
|
|
8472
|
-
//
|
|
8472
|
+
// packages/mesh-cli/src/utils/worktree-identity.ts
|
|
8473
8473
|
import { execFileSync as execFileSync15 } from "node:child_process";
|
|
8474
8474
|
import * as crypto3 from "node:crypto";
|
|
8475
8475
|
import * as path21 from "node:path";
|
|
@@ -8535,7 +8535,7 @@ function resolveWorktreeIdentity(cwd = process.cwd(), gitRunner = defaultGitRunn
|
|
|
8535
8535
|
}
|
|
8536
8536
|
var NUM_PORT_BLOCKS, PORT_BLOCK_BASE, PORT_BLOCK_SIZE, PORT_BLOCK_SERVICE_SUBRANGE, STACK_SLUG_MAX, defaultGitRunner;
|
|
8537
8537
|
var init_worktree_identity = __esm({
|
|
8538
|
-
"
|
|
8538
|
+
"packages/mesh-cli/src/utils/worktree-identity.ts"() {
|
|
8539
8539
|
"use strict";
|
|
8540
8540
|
NUM_PORT_BLOCKS = 64;
|
|
8541
8541
|
PORT_BLOCK_BASE = 4e4;
|
|
@@ -8546,7 +8546,7 @@ var init_worktree_identity = __esm({
|
|
|
8546
8546
|
}
|
|
8547
8547
|
});
|
|
8548
8548
|
|
|
8549
|
-
//
|
|
8549
|
+
// packages/mesh-cli/src/commands/dev-token-server.ts
|
|
8550
8550
|
var dev_token_server_exports = {};
|
|
8551
8551
|
__export(dev_token_server_exports, {
|
|
8552
8552
|
handleTokenRequest: () => handleTokenRequest,
|
|
@@ -8595,7 +8595,7 @@ async function startTokenServer(port, context) {
|
|
|
8595
8595
|
}
|
|
8596
8596
|
var REFRESH_MARGIN_MS;
|
|
8597
8597
|
var init_dev_token_server = __esm({
|
|
8598
|
-
"
|
|
8598
|
+
"packages/mesh-cli/src/commands/dev-token-server.ts"() {
|
|
8599
8599
|
"use strict";
|
|
8600
8600
|
init_login();
|
|
8601
8601
|
init_log();
|
|
@@ -8603,7 +8603,7 @@ var init_dev_token_server = __esm({
|
|
|
8603
8603
|
}
|
|
8604
8604
|
});
|
|
8605
8605
|
|
|
8606
|
-
//
|
|
8606
|
+
// packages/mesh-cli/src/commands/dev.ts
|
|
8607
8607
|
import { execFileSync as execFileSync16, spawn as spawn3, spawnSync as spawnSync2 } from "child_process";
|
|
8608
8608
|
import * as fs21 from "fs";
|
|
8609
8609
|
import * as net8 from "net";
|
|
@@ -10952,7 +10952,7 @@ function registerDevCommand(program2) {
|
|
|
10952
10952
|
}
|
|
10953
10953
|
var MissingStackOutputError, AWS_STATIC_CREDENTIAL_ENV_KEYS, SSM_TUNNEL_BASE_PORT, TUNNEL_READY_TIMEOUT_MS;
|
|
10954
10954
|
var init_dev = __esm({
|
|
10955
|
-
"
|
|
10955
|
+
"packages/mesh-cli/src/commands/dev.ts"() {
|
|
10956
10956
|
"use strict";
|
|
10957
10957
|
init_utils();
|
|
10958
10958
|
init_aws_auth();
|
|
@@ -10997,7 +10997,7 @@ var init_dev = __esm({
|
|
|
10997
10997
|
}
|
|
10998
10998
|
});
|
|
10999
10999
|
|
|
11000
|
-
//
|
|
11000
|
+
// packages/mesh-cli/src/commands/dev-doctor.ts
|
|
11001
11001
|
import { execFileSync as execFileSync17 } from "node:child_process";
|
|
11002
11002
|
import * as fs22 from "node:fs";
|
|
11003
11003
|
import * as net9 from "node:net";
|
|
@@ -11215,7 +11215,7 @@ ${ICONS[status]} overall: ${status}`);
|
|
|
11215
11215
|
}
|
|
11216
11216
|
var ICONS, credsCheck, registryCheck, tmuxCheck, portsCheck, configStalenessCheck, worktreeCheck, tunnelsCheck, temporalCheck, ALL_CHECKS;
|
|
11217
11217
|
var init_dev_doctor = __esm({
|
|
11218
|
-
"
|
|
11218
|
+
"packages/mesh-cli/src/commands/dev-doctor.ts"() {
|
|
11219
11219
|
"use strict";
|
|
11220
11220
|
init_dev();
|
|
11221
11221
|
init_auth_preflight();
|
|
@@ -11531,7 +11531,7 @@ var init_dev_doctor = __esm({
|
|
|
11531
11531
|
}
|
|
11532
11532
|
});
|
|
11533
11533
|
|
|
11534
|
-
//
|
|
11534
|
+
// packages/mesh-cli/src/commands/app-check.ts
|
|
11535
11535
|
import * as fs23 from "node:fs";
|
|
11536
11536
|
import * as path24 from "node:path";
|
|
11537
11537
|
function rel(root, abs) {
|
|
@@ -12159,7 +12159,7 @@ function registerAppCommands(program2) {
|
|
|
12159
12159
|
}
|
|
12160
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;
|
|
12161
12161
|
var init_app_check = __esm({
|
|
12162
|
-
"
|
|
12162
|
+
"packages/mesh-cli/src/commands/app-check.ts"() {
|
|
12163
12163
|
"use strict";
|
|
12164
12164
|
init_utils();
|
|
12165
12165
|
init_errors();
|
|
@@ -12943,7 +12943,7 @@ var init_src2 = __esm({
|
|
|
12943
12943
|
}
|
|
12944
12944
|
});
|
|
12945
12945
|
|
|
12946
|
-
//
|
|
12946
|
+
// packages/mesh-cli/src/commands/agent-api-client.ts
|
|
12947
12947
|
function resolveTarget(opts) {
|
|
12948
12948
|
if (opts.apiUrl) {
|
|
12949
12949
|
return { apiBaseUrl: stripSlash(opts.apiUrl), loginContext: opts.context || DEFAULT_AUTH_CONTEXT };
|
|
@@ -13050,7 +13050,7 @@ try: mesh temporal recover-conversation ${ctx.id}` : "";
|
|
|
13050
13050
|
}
|
|
13051
13051
|
var DEFAULT_AUTH_CONTEXT, LOCAL_URL_RE, TargetResolutionError, NO_REGISTRY_GUIDANCE, NETWORK_ERROR_PATTERN;
|
|
13052
13052
|
var init_agent_api_client = __esm({
|
|
13053
|
-
"
|
|
13053
|
+
"packages/mesh-cli/src/commands/agent-api-client.ts"() {
|
|
13054
13054
|
"use strict";
|
|
13055
13055
|
init_src2();
|
|
13056
13056
|
init_login();
|
|
@@ -13064,7 +13064,7 @@ var init_agent_api_client = __esm({
|
|
|
13064
13064
|
}
|
|
13065
13065
|
});
|
|
13066
13066
|
|
|
13067
|
-
//
|
|
13067
|
+
// packages/mesh-cli/src/commands/artifacts.ts
|
|
13068
13068
|
import * as fs24 from "fs";
|
|
13069
13069
|
import * as path26 from "path";
|
|
13070
13070
|
function parseRef(ref) {
|
|
@@ -13163,7 +13163,7 @@ Ref format: <conversationId>:<artifactId>
|
|
|
13163
13163
|
}
|
|
13164
13164
|
var DEFAULT_ARTIFACT_ID, DEFAULT_AUTH_CONTEXT2;
|
|
13165
13165
|
var init_artifacts = __esm({
|
|
13166
|
-
"
|
|
13166
|
+
"packages/mesh-cli/src/commands/artifacts.ts"() {
|
|
13167
13167
|
"use strict";
|
|
13168
13168
|
init_log();
|
|
13169
13169
|
init_agent_api_client();
|
|
@@ -13172,7 +13172,7 @@ var init_artifacts = __esm({
|
|
|
13172
13172
|
}
|
|
13173
13173
|
});
|
|
13174
13174
|
|
|
13175
|
-
//
|
|
13175
|
+
// packages/mesh-cli/src/commands/cluster.ts
|
|
13176
13176
|
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
13177
13177
|
async function resolveClusterAccess(opts) {
|
|
13178
13178
|
const appRoot = findAppRoot(process.cwd());
|
|
@@ -13328,7 +13328,7 @@ Then: mesh logs <service> (e.g. mesh logs demo-agent-worker)
|
|
|
13328
13328
|
}
|
|
13329
13329
|
var NS_FLAGS;
|
|
13330
13330
|
var init_cluster = __esm({
|
|
13331
|
-
"
|
|
13331
|
+
"packages/mesh-cli/src/commands/cluster.ts"() {
|
|
13332
13332
|
"use strict";
|
|
13333
13333
|
init_log();
|
|
13334
13334
|
init_pulumi();
|
|
@@ -13340,7 +13340,7 @@ var init_cluster = __esm({
|
|
|
13340
13340
|
}
|
|
13341
13341
|
});
|
|
13342
13342
|
|
|
13343
|
-
//
|
|
13343
|
+
// packages/mesh-cli/src/commands/vcs-enrich.ts
|
|
13344
13344
|
async function buildVcsEnricher(target) {
|
|
13345
13345
|
const vcsBaseUrl = deriveVcsBaseUrl(target.apiBaseUrl);
|
|
13346
13346
|
if (!vcsBaseUrl) {
|
|
@@ -13355,7 +13355,7 @@ async function buildVcsEnricher(target) {
|
|
|
13355
13355
|
return createVcsFolderReader({ vcsBaseUrl, token });
|
|
13356
13356
|
}
|
|
13357
13357
|
var init_vcs_enrich = __esm({
|
|
13358
|
-
"
|
|
13358
|
+
"packages/mesh-cli/src/commands/vcs-enrich.ts"() {
|
|
13359
13359
|
"use strict";
|
|
13360
13360
|
init_src2();
|
|
13361
13361
|
init_login();
|
|
@@ -13363,7 +13363,7 @@ var init_vcs_enrich = __esm({
|
|
|
13363
13363
|
}
|
|
13364
13364
|
});
|
|
13365
13365
|
|
|
13366
|
-
//
|
|
13366
|
+
// packages/mesh-cli/src/commands/conversations.ts
|
|
13367
13367
|
function truncate(s, max) {
|
|
13368
13368
|
return s.length > max ? s.slice(0, max - 1) + "\u2026" : s;
|
|
13369
13369
|
}
|
|
@@ -13531,7 +13531,7 @@ function registerConversationsCommands(program2) {
|
|
|
13531
13531
|
}
|
|
13532
13532
|
var MAX_TITLE_LEN;
|
|
13533
13533
|
var init_conversations = __esm({
|
|
13534
|
-
"
|
|
13534
|
+
"packages/mesh-cli/src/commands/conversations.ts"() {
|
|
13535
13535
|
"use strict";
|
|
13536
13536
|
init_src2();
|
|
13537
13537
|
init_vcs_enrich();
|
|
@@ -13541,7 +13541,7 @@ var init_conversations = __esm({
|
|
|
13541
13541
|
}
|
|
13542
13542
|
});
|
|
13543
13543
|
|
|
13544
|
-
//
|
|
13544
|
+
// packages/mesh-cli/src/utils/scaffold-versions.ts
|
|
13545
13545
|
import { execFileSync as execFileSync18 } from "child_process";
|
|
13546
13546
|
function isPrerelease(range) {
|
|
13547
13547
|
return /[-+]/.test(range.replace(/^\^/, ""));
|
|
@@ -13566,7 +13566,7 @@ function resolvePublishedRange(pkg, cwd) {
|
|
|
13566
13566
|
}
|
|
13567
13567
|
var SCAFFOLD_PACKAGE_LINES, SCAFFOLD_TOOLCHAIN;
|
|
13568
13568
|
var init_scaffold_versions = __esm({
|
|
13569
|
-
"
|
|
13569
|
+
"packages/mesh-cli/src/utils/scaffold-versions.ts"() {
|
|
13570
13570
|
"use strict";
|
|
13571
13571
|
SCAFFOLD_PACKAGE_LINES = {
|
|
13572
13572
|
"@mesh-tech/app-kit": "^1.45.0",
|
|
@@ -13586,7 +13586,7 @@ var init_scaffold_versions = __esm({
|
|
|
13586
13586
|
}
|
|
13587
13587
|
});
|
|
13588
13588
|
|
|
13589
|
-
//
|
|
13589
|
+
// packages/mesh-cli/src/commands/create-app.ts
|
|
13590
13590
|
var create_app_exports = {};
|
|
13591
13591
|
__export(create_app_exports, {
|
|
13592
13592
|
NO_REGISTRY_ACCESS_MESSAGE: () => NO_REGISTRY_ACCESS_MESSAGE,
|
|
@@ -14153,7 +14153,7 @@ function composableNextSteps(appDir, platform) {
|
|
|
14153
14153
|
}
|
|
14154
14154
|
var __filename, __dirname, packageRoot, TEMPLATES, REMOVED_TEMPLATES, PRIMITIVES, HUB_ACCOUNTS, PLATFORM_MONOREPO_NAME, VALID_PRIMITIVES, NO_REGISTRY_ACCESS_MESSAGE;
|
|
14155
14155
|
var init_create_app = __esm({
|
|
14156
|
-
"
|
|
14156
|
+
"packages/mesh-cli/src/commands/create-app.ts"() {
|
|
14157
14157
|
"use strict";
|
|
14158
14158
|
init_utils();
|
|
14159
14159
|
init_skills();
|
|
@@ -14195,7 +14195,7 @@ var init_create_app = __esm({
|
|
|
14195
14195
|
}
|
|
14196
14196
|
});
|
|
14197
14197
|
|
|
14198
|
-
//
|
|
14198
|
+
// packages/mesh-cli/src/commands/db/axes.ts
|
|
14199
14199
|
function platformAxis(options, usage, detect = detectContext) {
|
|
14200
14200
|
if (options.tenant && !options.env || !options.tenant && options.env) {
|
|
14201
14201
|
throw new MeshCliError("Both --tenant and --env are required", {
|
|
@@ -14227,7 +14227,7 @@ function appAxis(options, platform) {
|
|
|
14227
14227
|
};
|
|
14228
14228
|
}
|
|
14229
14229
|
var init_axes = __esm({
|
|
14230
|
-
"
|
|
14230
|
+
"packages/mesh-cli/src/commands/db/axes.ts"() {
|
|
14231
14231
|
"use strict";
|
|
14232
14232
|
init_context();
|
|
14233
14233
|
init_errors();
|
|
@@ -14235,7 +14235,7 @@ var init_axes = __esm({
|
|
|
14235
14235
|
}
|
|
14236
14236
|
});
|
|
14237
14237
|
|
|
14238
|
-
//
|
|
14238
|
+
// packages/mesh-cli/src/commands/db/connect.ts
|
|
14239
14239
|
import { spawn as spawn4 } from "child_process";
|
|
14240
14240
|
async function connectCommand(options) {
|
|
14241
14241
|
const { tenant, env: platformEnv } = platformAxis(options, USAGE)();
|
|
@@ -14283,7 +14283,7 @@ async function connectCommand(options) {
|
|
|
14283
14283
|
}
|
|
14284
14284
|
var USAGE;
|
|
14285
14285
|
var init_connect = __esm({
|
|
14286
|
-
"
|
|
14286
|
+
"packages/mesh-cli/src/commands/db/connect.ts"() {
|
|
14287
14287
|
"use strict";
|
|
14288
14288
|
init_utils();
|
|
14289
14289
|
init_axes();
|
|
@@ -14291,7 +14291,7 @@ var init_connect = __esm({
|
|
|
14291
14291
|
}
|
|
14292
14292
|
});
|
|
14293
14293
|
|
|
14294
|
-
//
|
|
14294
|
+
// packages/mesh-cli/src/commands/db/credentials.ts
|
|
14295
14295
|
async function credentialsCommand(options) {
|
|
14296
14296
|
const platform = platformAxis(options, USAGE2);
|
|
14297
14297
|
const app = appAxis(options, platform);
|
|
@@ -14321,7 +14321,7 @@ async function credentialsCommand(options) {
|
|
|
14321
14321
|
}
|
|
14322
14322
|
var USAGE2;
|
|
14323
14323
|
var init_credentials2 = __esm({
|
|
14324
|
-
"
|
|
14324
|
+
"packages/mesh-cli/src/commands/db/credentials.ts"() {
|
|
14325
14325
|
"use strict";
|
|
14326
14326
|
init_utils();
|
|
14327
14327
|
init_axes();
|
|
@@ -14329,7 +14329,7 @@ var init_credentials2 = __esm({
|
|
|
14329
14329
|
}
|
|
14330
14330
|
});
|
|
14331
14331
|
|
|
14332
|
-
//
|
|
14332
|
+
// packages/mesh-cli/src/commands/db/env.ts
|
|
14333
14333
|
async function envCommand(options) {
|
|
14334
14334
|
const platform = platformAxis(options, USAGE3);
|
|
14335
14335
|
const app = appAxis(options, platform);
|
|
@@ -14349,7 +14349,7 @@ async function envCommand(options) {
|
|
|
14349
14349
|
}
|
|
14350
14350
|
var USAGE3;
|
|
14351
14351
|
var init_env = __esm({
|
|
14352
|
-
"
|
|
14352
|
+
"packages/mesh-cli/src/commands/db/env.ts"() {
|
|
14353
14353
|
"use strict";
|
|
14354
14354
|
init_utils();
|
|
14355
14355
|
init_axes();
|
|
@@ -14357,7 +14357,7 @@ var init_env = __esm({
|
|
|
14357
14357
|
}
|
|
14358
14358
|
});
|
|
14359
14359
|
|
|
14360
|
-
//
|
|
14360
|
+
// packages/mesh-cli/src/commands/db/psql.ts
|
|
14361
14361
|
import { spawn as spawn5 } from "child_process";
|
|
14362
14362
|
import * as net10 from "net";
|
|
14363
14363
|
async function startTunnelBackground(instanceId, rdsHost, rdsPort, localPort) {
|
|
@@ -14478,7 +14478,7 @@ async function psqlCommand(options) {
|
|
|
14478
14478
|
}
|
|
14479
14479
|
var USAGE4;
|
|
14480
14480
|
var init_psql = __esm({
|
|
14481
|
-
"
|
|
14481
|
+
"packages/mesh-cli/src/commands/db/psql.ts"() {
|
|
14482
14482
|
"use strict";
|
|
14483
14483
|
init_utils();
|
|
14484
14484
|
init_axes();
|
|
@@ -14486,7 +14486,7 @@ var init_psql = __esm({
|
|
|
14486
14486
|
}
|
|
14487
14487
|
});
|
|
14488
14488
|
|
|
14489
|
-
//
|
|
14489
|
+
// packages/mesh-cli/src/commands/db/exec.ts
|
|
14490
14490
|
import { spawn as spawn6 } from "child_process";
|
|
14491
14491
|
import * as net11 from "net";
|
|
14492
14492
|
import * as fs26 from "fs";
|
|
@@ -14745,7 +14745,7 @@ async function execCommand(commandArgs, options) {
|
|
|
14745
14745
|
}
|
|
14746
14746
|
var DEFAULT_LOCAL_PORT, MAX_RETRIES, RETRY_DELAY_MS;
|
|
14747
14747
|
var init_exec = __esm({
|
|
14748
|
-
"
|
|
14748
|
+
"packages/mesh-cli/src/commands/db/exec.ts"() {
|
|
14749
14749
|
"use strict";
|
|
14750
14750
|
init_utils();
|
|
14751
14751
|
init_axes();
|
|
@@ -14755,7 +14755,7 @@ var init_exec = __esm({
|
|
|
14755
14755
|
}
|
|
14756
14756
|
});
|
|
14757
14757
|
|
|
14758
|
-
//
|
|
14758
|
+
// packages/mesh-cli/src/commands/db/index.ts
|
|
14759
14759
|
function registerDbCommands(program2) {
|
|
14760
14760
|
const db = program2.command("db").description("Database utilities");
|
|
14761
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);
|
|
@@ -14765,7 +14765,7 @@ function registerDbCommands(program2) {
|
|
|
14765
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);
|
|
14766
14766
|
}
|
|
14767
14767
|
var init_db = __esm({
|
|
14768
|
-
"
|
|
14768
|
+
"packages/mesh-cli/src/commands/db/index.ts"() {
|
|
14769
14769
|
"use strict";
|
|
14770
14770
|
init_connect();
|
|
14771
14771
|
init_credentials2();
|
|
@@ -14775,7 +14775,7 @@ var init_db = __esm({
|
|
|
14775
14775
|
}
|
|
14776
14776
|
});
|
|
14777
14777
|
|
|
14778
|
-
//
|
|
14778
|
+
// packages/mesh-cli/src/utils/deploy-preflight.ts
|
|
14779
14779
|
import { existsSync as existsSync22, readFileSync as readFileSync23 } from "node:fs";
|
|
14780
14780
|
import { dirname as dirname23, join as join27, relative as relative8 } from "node:path";
|
|
14781
14781
|
import { parse as parseYaml4 } from "yaml";
|
|
@@ -14882,7 +14882,7 @@ function assertDeployDepsFresh(appRoot, op) {
|
|
|
14882
14882
|
}
|
|
14883
14883
|
var GATED_PREFIXES, PROGRAM_EVAL_OPS, SKIP_ENV;
|
|
14884
14884
|
var init_deploy_preflight = __esm({
|
|
14885
|
-
"
|
|
14885
|
+
"packages/mesh-cli/src/utils/deploy-preflight.ts"() {
|
|
14886
14886
|
"use strict";
|
|
14887
14887
|
init_log();
|
|
14888
14888
|
GATED_PREFIXES = ["@mesh-tech/"];
|
|
@@ -14891,7 +14891,7 @@ var init_deploy_preflight = __esm({
|
|
|
14891
14891
|
}
|
|
14892
14892
|
});
|
|
14893
14893
|
|
|
14894
|
-
//
|
|
14894
|
+
// packages/mesh-cli/src/commands/deploy.ts
|
|
14895
14895
|
import { execFileSync as execFileSync19 } from "child_process";
|
|
14896
14896
|
function buildPulumiArgs(pulumiArgs, stack) {
|
|
14897
14897
|
const base = pulumiArgs.length === 0 || pulumiArgs[0]?.startsWith("-") ? ["up", ...pulumiArgs] : [...pulumiArgs];
|
|
@@ -14967,7 +14967,7 @@ function registerDeployCommand(program2) {
|
|
|
14967
14967
|
}
|
|
14968
14968
|
var OPS_WITHOUT_STACK_FLAG, STACK_SUBCOMMANDS_WITHOUT_FLAG;
|
|
14969
14969
|
var init_deploy = __esm({
|
|
14970
|
-
"
|
|
14970
|
+
"packages/mesh-cli/src/commands/deploy.ts"() {
|
|
14971
14971
|
"use strict";
|
|
14972
14972
|
init_log();
|
|
14973
14973
|
init_pulumi();
|
|
@@ -14996,7 +14996,7 @@ var init_deploy = __esm({
|
|
|
14996
14996
|
}
|
|
14997
14997
|
});
|
|
14998
14998
|
|
|
14999
|
-
//
|
|
14999
|
+
// packages/mesh-cli/src/docs/schema.ts
|
|
15000
15000
|
import { z as z3 } from "zod";
|
|
15001
15001
|
function isReservedSegment(segment) {
|
|
15002
15002
|
const lowered = segment.toLowerCase();
|
|
@@ -15010,7 +15010,7 @@ function slugify2(value) {
|
|
|
15010
15010
|
}
|
|
15011
15011
|
var RESERVED_SEGMENTS, docsJsonSchema;
|
|
15012
15012
|
var init_schema2 = __esm({
|
|
15013
|
-
"
|
|
15013
|
+
"packages/mesh-cli/src/docs/schema.ts"() {
|
|
15014
15014
|
"use strict";
|
|
15015
15015
|
RESERVED_SEGMENTS = [
|
|
15016
15016
|
"plans",
|
|
@@ -15059,7 +15059,7 @@ var init_schema2 = __esm({
|
|
|
15059
15059
|
}
|
|
15060
15060
|
});
|
|
15061
15061
|
|
|
15062
|
-
//
|
|
15062
|
+
// packages/mesh-cli/src/docs/discover.ts
|
|
15063
15063
|
import { existsSync as existsSync23, readdirSync as readdirSync9, readFileSync as readFileSync24, statSync as statSync6 } from "node:fs";
|
|
15064
15064
|
import path29 from "node:path";
|
|
15065
15065
|
function routePathFor(relPath) {
|
|
@@ -15228,7 +15228,7 @@ function pathKind(candidate) {
|
|
|
15228
15228
|
}
|
|
15229
15229
|
var ROOT_WALK_SKIP;
|
|
15230
15230
|
var init_discover = __esm({
|
|
15231
|
-
"
|
|
15231
|
+
"packages/mesh-cli/src/docs/discover.ts"() {
|
|
15232
15232
|
"use strict";
|
|
15233
15233
|
init_schema2();
|
|
15234
15234
|
ROOT_WALK_SKIP = /* @__PURE__ */ new Set([
|
|
@@ -15247,7 +15247,7 @@ var init_discover = __esm({
|
|
|
15247
15247
|
}
|
|
15248
15248
|
});
|
|
15249
15249
|
|
|
15250
|
-
//
|
|
15250
|
+
// packages/mesh-cli/src/docs/assemble.ts
|
|
15251
15251
|
import { execFileSync as execFileSync20 } from "node:child_process";
|
|
15252
15252
|
import { mkdirSync as mkdirSync12, readFileSync as readFileSync25, rmSync as rmSync5, writeFileSync as writeFileSync15 } from "node:fs";
|
|
15253
15253
|
import path30 from "node:path";
|
|
@@ -15750,7 +15750,7 @@ function currentCommit(repoRoot2) {
|
|
|
15750
15750
|
function currentBaseline(repoRoot2) {
|
|
15751
15751
|
try {
|
|
15752
15752
|
const pkg = JSON.parse(
|
|
15753
|
-
readFileSync25(path30.join(repoRoot2, "
|
|
15753
|
+
readFileSync25(path30.join(repoRoot2, "packages/app-kit/package.json"), "utf-8")
|
|
15754
15754
|
);
|
|
15755
15755
|
return pkg.version;
|
|
15756
15756
|
} catch {
|
|
@@ -15828,7 +15828,7 @@ function renderPublishSetSummary(manifest, diff) {
|
|
|
15828
15828
|
}
|
|
15829
15829
|
var DEFAULT_REPO_URL, DEFAULT_IGNORE_LINK_PREFIXES;
|
|
15830
15830
|
var init_assemble = __esm({
|
|
15831
|
-
"
|
|
15831
|
+
"packages/mesh-cli/src/docs/assemble.ts"() {
|
|
15832
15832
|
"use strict";
|
|
15833
15833
|
init_discover();
|
|
15834
15834
|
init_schema2();
|
|
@@ -15837,7 +15837,7 @@ var init_assemble = __esm({
|
|
|
15837
15837
|
}
|
|
15838
15838
|
});
|
|
15839
15839
|
|
|
15840
|
-
//
|
|
15840
|
+
// packages/mesh-cli/src/docs/cli-reference.ts
|
|
15841
15841
|
var cli_reference_exports = {};
|
|
15842
15842
|
__export(cli_reference_exports, {
|
|
15843
15843
|
extractCliReference: () => extractCliReference,
|
|
@@ -15972,7 +15972,7 @@ function renderCliReferenceMarkdown(reference) {
|
|
|
15972
15972
|
const lines = [
|
|
15973
15973
|
"<!--",
|
|
15974
15974
|
" GENERATED FILE \u2014 do not edit by hand.",
|
|
15975
|
-
" Source: the commander tree in
|
|
15975
|
+
" Source: the commander tree in packages/mesh-cli/src/program.ts",
|
|
15976
15976
|
" Rebuild: pnpm exec mesh docs cli-reference",
|
|
15977
15977
|
"-->",
|
|
15978
15978
|
"",
|
|
@@ -15997,12 +15997,12 @@ function renderCliReferenceMarkdown(reference) {
|
|
|
15997
15997
|
`;
|
|
15998
15998
|
}
|
|
15999
15999
|
var init_cli_reference = __esm({
|
|
16000
|
-
"
|
|
16000
|
+
"packages/mesh-cli/src/docs/cli-reference.ts"() {
|
|
16001
16001
|
"use strict";
|
|
16002
16002
|
}
|
|
16003
16003
|
});
|
|
16004
16004
|
|
|
16005
|
-
//
|
|
16005
|
+
// packages/mesh-cli/src/docs/portal.ts
|
|
16006
16006
|
import { spawn as spawn7 } from "node:child_process";
|
|
16007
16007
|
import {
|
|
16008
16008
|
appendFileSync,
|
|
@@ -16229,7 +16229,7 @@ async function cliReferenceStaleness(repoRoot2) {
|
|
|
16229
16229
|
}
|
|
16230
16230
|
var DOCS_APP_DIR, CONTENT_DIR, GENERATED_CONFIG, PUBLISH_MANIFEST, VERSION_JSON_DIR, VERSION_JSON, SITE_TITLE, SITE_DESCRIPTION;
|
|
16231
16231
|
var init_portal = __esm({
|
|
16232
|
-
"
|
|
16232
|
+
"packages/mesh-cli/src/docs/portal.ts"() {
|
|
16233
16233
|
"use strict";
|
|
16234
16234
|
init_log();
|
|
16235
16235
|
init_assemble();
|
|
@@ -16245,7 +16245,7 @@ var init_portal = __esm({
|
|
|
16245
16245
|
}
|
|
16246
16246
|
});
|
|
16247
16247
|
|
|
16248
|
-
//
|
|
16248
|
+
// packages/mesh-cli/src/utils/build-info.ts
|
|
16249
16249
|
import { execFileSync as execFileSync21 } from "child_process";
|
|
16250
16250
|
import * as fs27 from "fs";
|
|
16251
16251
|
import * as path32 from "path";
|
|
@@ -16316,12 +16316,12 @@ function resolveCliRuntime(opts) {
|
|
|
16316
16316
|
return info;
|
|
16317
16317
|
}
|
|
16318
16318
|
var init_build_info = __esm({
|
|
16319
|
-
"
|
|
16319
|
+
"packages/mesh-cli/src/utils/build-info.ts"() {
|
|
16320
16320
|
"use strict";
|
|
16321
16321
|
}
|
|
16322
16322
|
});
|
|
16323
16323
|
|
|
16324
|
-
//
|
|
16324
|
+
// packages/mesh-cli/src/docs/serve.ts
|
|
16325
16325
|
import { createServer as createServer8 } from "node:http";
|
|
16326
16326
|
import { readFile } from "node:fs/promises";
|
|
16327
16327
|
import { extname as extname2, join as join29, normalize, sep as sep6 } from "node:path";
|
|
@@ -16376,7 +16376,7 @@ async function serveDocsSite(args) {
|
|
|
16376
16376
|
}
|
|
16377
16377
|
var CONTENT_TYPES;
|
|
16378
16378
|
var init_serve = __esm({
|
|
16379
|
-
"
|
|
16379
|
+
"packages/mesh-cli/src/docs/serve.ts"() {
|
|
16380
16380
|
"use strict";
|
|
16381
16381
|
CONTENT_TYPES = {
|
|
16382
16382
|
".html": "text/html; charset=utf-8",
|
|
@@ -16400,7 +16400,7 @@ var init_serve = __esm({
|
|
|
16400
16400
|
}
|
|
16401
16401
|
});
|
|
16402
16402
|
|
|
16403
|
-
//
|
|
16403
|
+
// packages/mesh-cli/src/docs/registry-docs.ts
|
|
16404
16404
|
import { execFileSync as execFileSync22 } from "node:child_process";
|
|
16405
16405
|
import { existsSync as existsSync25, mkdirSync as mkdirSync14, readFileSync as readFileSync28, renameSync as renameSync3, rmSync as rmSync6, writeFileSync as writeFileSync17 } from "node:fs";
|
|
16406
16406
|
import { tmpdir as tmpdir7 } from "node:os";
|
|
@@ -16509,14 +16509,14 @@ async function fetchDocsArtifact(auth, version, cacheRoot = docsCacheRoot(), fet
|
|
|
16509
16509
|
}
|
|
16510
16510
|
var DOCS_PACKAGE;
|
|
16511
16511
|
var init_registry_docs = __esm({
|
|
16512
|
-
"
|
|
16512
|
+
"packages/mesh-cli/src/docs/registry-docs.ts"() {
|
|
16513
16513
|
"use strict";
|
|
16514
16514
|
init_auth_preflight();
|
|
16515
16515
|
DOCS_PACKAGE = "@mesh-tech/docs";
|
|
16516
16516
|
}
|
|
16517
16517
|
});
|
|
16518
16518
|
|
|
16519
|
-
//
|
|
16519
|
+
// packages/mesh-cli/src/docs/start.ts
|
|
16520
16520
|
var start_exports = {};
|
|
16521
16521
|
__export(start_exports, {
|
|
16522
16522
|
DOCS_TMUX_SESSION: () => DOCS_TMUX_SESSION,
|
|
@@ -16771,7 +16771,7 @@ async function runDocsStart(args) {
|
|
|
16771
16771
|
}
|
|
16772
16772
|
var DOCS_TMUX_SESSION;
|
|
16773
16773
|
var init_start = __esm({
|
|
16774
|
-
"
|
|
16774
|
+
"packages/mesh-cli/src/docs/start.ts"() {
|
|
16775
16775
|
"use strict";
|
|
16776
16776
|
init_log();
|
|
16777
16777
|
init_build_info();
|
|
@@ -16783,7 +16783,7 @@ var init_start = __esm({
|
|
|
16783
16783
|
}
|
|
16784
16784
|
});
|
|
16785
16785
|
|
|
16786
|
-
//
|
|
16786
|
+
// packages/mesh-cli/src/commands/docs.ts
|
|
16787
16787
|
import * as fs28 from "fs";
|
|
16788
16788
|
import * as path35 from "path";
|
|
16789
16789
|
import { createRequire } from "module";
|
|
@@ -17005,7 +17005,7 @@ function registerDocsCommand(program2) {
|
|
|
17005
17005
|
}
|
|
17006
17006
|
var CLI_REFERENCE_PATH;
|
|
17007
17007
|
var init_docs = __esm({
|
|
17008
|
-
"
|
|
17008
|
+
"packages/mesh-cli/src/commands/docs.ts"() {
|
|
17009
17009
|
"use strict";
|
|
17010
17010
|
init_log();
|
|
17011
17011
|
init_portal();
|
|
@@ -17014,7 +17014,7 @@ var init_docs = __esm({
|
|
|
17014
17014
|
}
|
|
17015
17015
|
});
|
|
17016
17016
|
|
|
17017
|
-
//
|
|
17017
|
+
// packages/mesh-cli/src/commands/hub/index.ts
|
|
17018
17018
|
import { execFileSync as execFileSync24 } from "node:child_process";
|
|
17019
17019
|
import * as fs29 from "node:fs";
|
|
17020
17020
|
import * as net12 from "node:net";
|
|
@@ -17442,7 +17442,7 @@ function registerHubCommands(program2) {
|
|
|
17442
17442
|
}
|
|
17443
17443
|
var HUB_SESSION_PREFIX, HUB_SESSION_RE, DEFAULT_HUB_UI_PORT, DEFAULT_HUB_API_PORT, FORWARD_PREFIXES, localPlatformEnv2, SENSITIVE_RE;
|
|
17444
17444
|
var init_hub = __esm({
|
|
17445
|
-
"
|
|
17445
|
+
"packages/mesh-cli/src/commands/hub/index.ts"() {
|
|
17446
17446
|
"use strict";
|
|
17447
17447
|
init_dev_launch();
|
|
17448
17448
|
init_dev();
|
|
@@ -17493,7 +17493,7 @@ var init_hub = __esm({
|
|
|
17493
17493
|
}
|
|
17494
17494
|
});
|
|
17495
17495
|
|
|
17496
|
-
//
|
|
17496
|
+
// packages/mesh-cli/src/commands/init/platform-setup.ts
|
|
17497
17497
|
var platform_setup_exports = {};
|
|
17498
17498
|
__export(platform_setup_exports, {
|
|
17499
17499
|
DOMAIN_REQUIRED_MESSAGE: () => DOMAIN_REQUIRED_MESSAGE,
|
|
@@ -17681,7 +17681,7 @@ async function scaffoldPlatformRepo(setup) {
|
|
|
17681
17681
|
}
|
|
17682
17682
|
var PLATFORM_SETUP_DEFAULTS, DOMAIN_REQUIRED_MESSAGE, realStateBucketDeps;
|
|
17683
17683
|
var init_platform_setup = __esm({
|
|
17684
|
-
"
|
|
17684
|
+
"packages/mesh-cli/src/commands/init/platform-setup.ts"() {
|
|
17685
17685
|
"use strict";
|
|
17686
17686
|
init_errors();
|
|
17687
17687
|
PLATFORM_SETUP_DEFAULTS = {
|
|
@@ -17714,7 +17714,7 @@ var init_platform_setup = __esm({
|
|
|
17714
17714
|
}
|
|
17715
17715
|
});
|
|
17716
17716
|
|
|
17717
|
-
//
|
|
17717
|
+
// packages/mesh-cli/src/commands/registry-publish.ts
|
|
17718
17718
|
import { execFileSync as execFileSync26, execSync } from "child_process";
|
|
17719
17719
|
import * as fs31 from "fs";
|
|
17720
17720
|
import * as path38 from "path";
|
|
@@ -17829,14 +17829,14 @@ Or always grab the newest dev build:
|
|
|
17829
17829
|
});
|
|
17830
17830
|
}
|
|
17831
17831
|
var init_registry_publish = __esm({
|
|
17832
|
-
"
|
|
17832
|
+
"packages/mesh-cli/src/commands/registry-publish.ts"() {
|
|
17833
17833
|
"use strict";
|
|
17834
17834
|
init_log();
|
|
17835
17835
|
init_registry();
|
|
17836
17836
|
}
|
|
17837
17837
|
});
|
|
17838
17838
|
|
|
17839
|
-
//
|
|
17839
|
+
// packages/mesh-cli/src/commands/registry.ts
|
|
17840
17840
|
var registry_exports = {};
|
|
17841
17841
|
__export(registry_exports, {
|
|
17842
17842
|
CONTEXT_IGNORED_NOTICE: () => CONTEXT_IGNORED_NOTICE,
|
|
@@ -18505,7 +18505,7 @@ function registerRegistryCommands(program2) {
|
|
|
18505
18505
|
}
|
|
18506
18506
|
var CA_DOMAIN, CA_REPOSITORY, CA_NAMESPACE, CA_REGION, DEFAULT_REGISTRY_ROLE, RegistryNotAuthorizedError, NOT_AUTHORIZED_RERUN, CONTEXT_IGNORED_NOTICE;
|
|
18507
18507
|
var init_registry = __esm({
|
|
18508
|
-
"
|
|
18508
|
+
"packages/mesh-cli/src/commands/registry.ts"() {
|
|
18509
18509
|
"use strict";
|
|
18510
18510
|
init_log();
|
|
18511
18511
|
init_errors();
|
|
@@ -18530,7 +18530,7 @@ var init_registry = __esm({
|
|
|
18530
18530
|
}
|
|
18531
18531
|
});
|
|
18532
18532
|
|
|
18533
|
-
//
|
|
18533
|
+
// packages/mesh-cli/src/commands/init/wizard.ts
|
|
18534
18534
|
var wizard_exports = {};
|
|
18535
18535
|
__export(wizard_exports, {
|
|
18536
18536
|
INIT_REPO_FIX: () => INIT_REPO_FIX,
|
|
@@ -18766,7 +18766,7 @@ async function runInitWizard(opts, deps = {}) {
|
|
|
18766
18766
|
}
|
|
18767
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;
|
|
18768
18768
|
var init_wizard = __esm({
|
|
18769
|
-
"
|
|
18769
|
+
"packages/mesh-cli/src/commands/init/wizard.ts"() {
|
|
18770
18770
|
"use strict";
|
|
18771
18771
|
init_log();
|
|
18772
18772
|
init_errors();
|
|
@@ -19001,7 +19001,7 @@ var init_wizard = __esm({
|
|
|
19001
19001
|
}
|
|
19002
19002
|
});
|
|
19003
19003
|
|
|
19004
|
-
//
|
|
19004
|
+
// packages/mesh-cli/src/commands/init.ts
|
|
19005
19005
|
import chalk5 from "chalk";
|
|
19006
19006
|
import * as fs34 from "fs";
|
|
19007
19007
|
import * as path41 from "path";
|
|
@@ -19278,7 +19278,7 @@ function registerInitCommands(program2) {
|
|
|
19278
19278
|
}
|
|
19279
19279
|
var LOCAL_HUB_API;
|
|
19280
19280
|
var init_init = __esm({
|
|
19281
|
-
"
|
|
19281
|
+
"packages/mesh-cli/src/commands/init.ts"() {
|
|
19282
19282
|
"use strict";
|
|
19283
19283
|
init_log();
|
|
19284
19284
|
init_errors();
|
|
@@ -19292,7 +19292,7 @@ var init_init = __esm({
|
|
|
19292
19292
|
}
|
|
19293
19293
|
});
|
|
19294
19294
|
|
|
19295
|
-
//
|
|
19295
|
+
// packages/mesh-cli/src/commands/install-shim.ts
|
|
19296
19296
|
import { execFileSync as execFileSync29 } from "child_process";
|
|
19297
19297
|
import * as fs35 from "fs";
|
|
19298
19298
|
import * as os10 from "os";
|
|
@@ -19446,13 +19446,13 @@ function registerInstallShimCommand(program2) {
|
|
|
19446
19446
|
});
|
|
19447
19447
|
}
|
|
19448
19448
|
var init_install_shim = __esm({
|
|
19449
|
-
"
|
|
19449
|
+
"packages/mesh-cli/src/commands/install-shim.ts"() {
|
|
19450
19450
|
"use strict";
|
|
19451
19451
|
init_log();
|
|
19452
19452
|
}
|
|
19453
19453
|
});
|
|
19454
19454
|
|
|
19455
|
-
//
|
|
19455
|
+
// packages/mesh-cli/src/commands/local/hub-local.ts
|
|
19456
19456
|
import { execFile as execFile3, execFileSync as execFileSync30 } from "child_process";
|
|
19457
19457
|
import * as fs36 from "fs";
|
|
19458
19458
|
import * as os11 from "os";
|
|
@@ -19734,7 +19734,7 @@ async function buildHubImagesFromSource(repoRoot2) {
|
|
|
19734
19734
|
}
|
|
19735
19735
|
var execFileAsync2, HUB_PACKAGE, HUB_IMAGES, LOCAL_IMAGE_REV, HUB_AUTH_IMAGE, HUB_COMPILED_AUTHZ_REL;
|
|
19736
19736
|
var init_hub_local = __esm({
|
|
19737
|
-
"
|
|
19737
|
+
"packages/mesh-cli/src/commands/local/hub-local.ts"() {
|
|
19738
19738
|
"use strict";
|
|
19739
19739
|
init_log();
|
|
19740
19740
|
init_errors();
|
|
@@ -19750,7 +19750,7 @@ var init_hub_local = __esm({
|
|
|
19750
19750
|
}
|
|
19751
19751
|
});
|
|
19752
19752
|
|
|
19753
|
-
//
|
|
19753
|
+
// packages/mesh-cli/src/commands/local/seed-hub-catalog.ts
|
|
19754
19754
|
function withHubCatalogRefs(pointer, metadataRef) {
|
|
19755
19755
|
return {
|
|
19756
19756
|
spicedb: { instanceRefs: [] },
|
|
@@ -19801,7 +19801,7 @@ function catalogBundleNames(metadata) {
|
|
|
19801
19801
|
}
|
|
19802
19802
|
var HUB_AUTHZ_POINTER_PARAM, HUB_OPS_HUB_METADATA_PARAM;
|
|
19803
19803
|
var init_seed_hub_catalog = __esm({
|
|
19804
|
-
"
|
|
19804
|
+
"packages/mesh-cli/src/commands/local/seed-hub-catalog.ts"() {
|
|
19805
19805
|
"use strict";
|
|
19806
19806
|
init_seed();
|
|
19807
19807
|
HUB_AUTHZ_POINTER_PARAM = `/mesh-platform/${LOCAL_TENANT}/${LOCAL_ENV}/apps/hub/stacks/local/authz`;
|
|
@@ -19809,7 +19809,7 @@ var init_seed_hub_catalog = __esm({
|
|
|
19809
19809
|
}
|
|
19810
19810
|
});
|
|
19811
19811
|
|
|
19812
|
-
//
|
|
19812
|
+
// packages/mesh-cli/src/commands/local/index.ts
|
|
19813
19813
|
import * as fs37 from "fs";
|
|
19814
19814
|
import * as path44 from "path";
|
|
19815
19815
|
import chalk6 from "chalk";
|
|
@@ -20241,7 +20241,7 @@ Re-running start from here may recreate shared containers with this checkout's c
|
|
|
20241
20241
|
}
|
|
20242
20242
|
var WAIT_TIMEOUT_MS, WAIT_POLL_MS;
|
|
20243
20243
|
var init_local = __esm({
|
|
20244
|
-
"
|
|
20244
|
+
"packages/mesh-cli/src/commands/local/index.ts"() {
|
|
20245
20245
|
"use strict";
|
|
20246
20246
|
init_log();
|
|
20247
20247
|
init_errors();
|
|
@@ -20259,7 +20259,7 @@ var init_local = __esm({
|
|
|
20259
20259
|
}
|
|
20260
20260
|
});
|
|
20261
20261
|
|
|
20262
|
-
//
|
|
20262
|
+
// packages/mesh-cli/src/commands/secrets/exec.ts
|
|
20263
20263
|
import { spawn as spawn8 } from "child_process";
|
|
20264
20264
|
import {
|
|
20265
20265
|
SecretsManagerClient as SecretsManagerClient4,
|
|
@@ -20375,12 +20375,12 @@ async function execCommand2(args) {
|
|
|
20375
20375
|
});
|
|
20376
20376
|
}
|
|
20377
20377
|
var init_exec2 = __esm({
|
|
20378
|
-
"
|
|
20378
|
+
"packages/mesh-cli/src/commands/secrets/exec.ts"() {
|
|
20379
20379
|
"use strict";
|
|
20380
20380
|
}
|
|
20381
20381
|
});
|
|
20382
20382
|
|
|
20383
|
-
//
|
|
20383
|
+
// packages/secrets/src/index.ts
|
|
20384
20384
|
import {
|
|
20385
20385
|
SecretsManagerClient as SecretsManagerClient5,
|
|
20386
20386
|
GetSecretValueCommand as GetSecretValueCommand5
|
|
@@ -20418,25 +20418,25 @@ function buildInstanceIndexValue(keys) {
|
|
|
20418
20418
|
}
|
|
20419
20419
|
var INSTANCE_INDEX_SUFFIX;
|
|
20420
20420
|
var init_src3 = __esm({
|
|
20421
|
-
"
|
|
20421
|
+
"packages/secrets/src/index.ts"() {
|
|
20422
20422
|
"use strict";
|
|
20423
20423
|
INSTANCE_INDEX_SUFFIX = ".index";
|
|
20424
20424
|
}
|
|
20425
20425
|
});
|
|
20426
20426
|
|
|
20427
|
-
//
|
|
20427
|
+
// packages/mesh-cli/src/commands/secrets/context.ts
|
|
20428
20428
|
function resolveSecretsContext(opts, stackOpt = resolveStackOption(opts)) {
|
|
20429
20429
|
return detectContext(stackOpt, { tenant: opts.tenant, stack: stackOpt });
|
|
20430
20430
|
}
|
|
20431
20431
|
var init_context2 = __esm({
|
|
20432
|
-
"
|
|
20432
|
+
"packages/mesh-cli/src/commands/secrets/context.ts"() {
|
|
20433
20433
|
"use strict";
|
|
20434
20434
|
init_context();
|
|
20435
20435
|
init_stack_flag();
|
|
20436
20436
|
}
|
|
20437
20437
|
});
|
|
20438
20438
|
|
|
20439
|
-
//
|
|
20439
|
+
// packages/mesh-cli/src/commands/secrets/set.ts
|
|
20440
20440
|
import {
|
|
20441
20441
|
SSMClient as SSMClient2,
|
|
20442
20442
|
GetParametersByPathCommand
|
|
@@ -20818,7 +20818,7 @@ async function writeConfigMirror(client, secretId, schema, merged, meta) {
|
|
|
20818
20818
|
}
|
|
20819
20819
|
}
|
|
20820
20820
|
var init_set = __esm({
|
|
20821
|
-
"
|
|
20821
|
+
"packages/mesh-cli/src/commands/secrets/set.ts"() {
|
|
20822
20822
|
"use strict";
|
|
20823
20823
|
init_src3();
|
|
20824
20824
|
init_log();
|
|
@@ -20830,7 +20830,7 @@ var init_set = __esm({
|
|
|
20830
20830
|
}
|
|
20831
20831
|
});
|
|
20832
20832
|
|
|
20833
|
-
//
|
|
20833
|
+
// packages/mesh-cli/src/commands/secrets/reindex.ts
|
|
20834
20834
|
import { SSMClient as SSMClient3 } from "@aws-sdk/client-ssm";
|
|
20835
20835
|
import {
|
|
20836
20836
|
SecretsManagerClient as SecretsManagerClient7,
|
|
@@ -20955,7 +20955,7 @@ async function writeInstanceIndex(client, secretPrefix, serviceName, keys) {
|
|
|
20955
20955
|
}
|
|
20956
20956
|
}
|
|
20957
20957
|
var init_reindex = __esm({
|
|
20958
|
-
"
|
|
20958
|
+
"packages/mesh-cli/src/commands/secrets/reindex.ts"() {
|
|
20959
20959
|
"use strict";
|
|
20960
20960
|
init_src3();
|
|
20961
20961
|
init_log();
|
|
@@ -20965,7 +20965,7 @@ var init_reindex = __esm({
|
|
|
20965
20965
|
}
|
|
20966
20966
|
});
|
|
20967
20967
|
|
|
20968
|
-
//
|
|
20968
|
+
// packages/mesh-cli/src/commands/secrets/migrate-config.ts
|
|
20969
20969
|
import {
|
|
20970
20970
|
SSMClient as SSMClient4,
|
|
20971
20971
|
GetParametersByPathCommand as GetParametersByPathCommand2
|
|
@@ -21197,7 +21197,7 @@ Migrating: ${name}`);
|
|
|
21197
21197
|
}
|
|
21198
21198
|
}
|
|
21199
21199
|
var init_migrate_config = __esm({
|
|
21200
|
-
"
|
|
21200
|
+
"packages/mesh-cli/src/commands/secrets/migrate-config.ts"() {
|
|
21201
21201
|
"use strict";
|
|
21202
21202
|
init_log();
|
|
21203
21203
|
init_context2();
|
|
@@ -21205,7 +21205,7 @@ var init_migrate_config = __esm({
|
|
|
21205
21205
|
}
|
|
21206
21206
|
});
|
|
21207
21207
|
|
|
21208
|
-
//
|
|
21208
|
+
// packages/mesh-cli/src/commands/secrets/index.ts
|
|
21209
21209
|
import { Option as Option2 } from "commander";
|
|
21210
21210
|
function registerSecretsCommands(program2) {
|
|
21211
21211
|
const secrets = program2.command("secrets").description("AWS Secrets Manager utilities");
|
|
@@ -21226,7 +21226,7 @@ function registerSecretsCommands(program2) {
|
|
|
21226
21226
|
});
|
|
21227
21227
|
}
|
|
21228
21228
|
var init_secrets = __esm({
|
|
21229
|
-
"
|
|
21229
|
+
"packages/mesh-cli/src/commands/secrets/index.ts"() {
|
|
21230
21230
|
"use strict";
|
|
21231
21231
|
init_exec2();
|
|
21232
21232
|
init_set();
|
|
@@ -21235,7 +21235,7 @@ var init_secrets = __esm({
|
|
|
21235
21235
|
}
|
|
21236
21236
|
});
|
|
21237
21237
|
|
|
21238
|
-
//
|
|
21238
|
+
// packages/mesh-cli/src/commands/site.ts
|
|
21239
21239
|
import { createHash as createHash4 } from "node:crypto";
|
|
21240
21240
|
import { createReadStream } from "node:fs";
|
|
21241
21241
|
import { readdir, readFile as readFile2, stat } from "node:fs/promises";
|
|
@@ -21444,7 +21444,7 @@ function registerSiteCommands(program2) {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
var DEFAULT_AUTH_CONTEXT3, UPLOAD_CONCURRENCY, SKIP_ENTRIES, targetOptions;
|
|
21446
21446
|
var init_site = __esm({
|
|
21447
|
-
"
|
|
21447
|
+
"packages/mesh-cli/src/commands/site.ts"() {
|
|
21448
21448
|
"use strict";
|
|
21449
21449
|
init_log();
|
|
21450
21450
|
init_agent_api_client();
|
|
@@ -21455,7 +21455,7 @@ var init_site = __esm({
|
|
|
21455
21455
|
}
|
|
21456
21456
|
});
|
|
21457
21457
|
|
|
21458
|
-
//
|
|
21458
|
+
// packages/mesh-cli/src/commands/stack.ts
|
|
21459
21459
|
import { execFileSync as execFileSync31 } from "child_process";
|
|
21460
21460
|
import * as path45 from "path";
|
|
21461
21461
|
import * as fs38 from "fs";
|
|
@@ -21825,7 +21825,7 @@ Specify which to base on: mesh stack init --from <stack>`
|
|
|
21825
21825
|
});
|
|
21826
21826
|
}
|
|
21827
21827
|
var init_stack2 = __esm({
|
|
21828
|
-
"
|
|
21828
|
+
"packages/mesh-cli/src/commands/stack.ts"() {
|
|
21829
21829
|
"use strict";
|
|
21830
21830
|
init_log();
|
|
21831
21831
|
init_pulumi();
|
|
@@ -21834,7 +21834,7 @@ var init_stack2 = __esm({
|
|
|
21834
21834
|
}
|
|
21835
21835
|
});
|
|
21836
21836
|
|
|
21837
|
-
//
|
|
21837
|
+
// packages/mesh-cli/src/utils/recover-conversation.ts
|
|
21838
21838
|
async function classifyHistoryEvents(rawEvents, decodePayload) {
|
|
21839
21839
|
const activityTypeByScheduledId = /* @__PURE__ */ new Map();
|
|
21840
21840
|
const events = [];
|
|
@@ -22023,12 +22023,12 @@ function renderTranscriptMarkdown(turns) {
|
|
|
22023
22023
|
return blocks.join("\n\n") + "\n";
|
|
22024
22024
|
}
|
|
22025
22025
|
var init_recover_conversation = __esm({
|
|
22026
|
-
"
|
|
22026
|
+
"packages/mesh-cli/src/utils/recover-conversation.ts"() {
|
|
22027
22027
|
"use strict";
|
|
22028
22028
|
}
|
|
22029
22029
|
});
|
|
22030
22030
|
|
|
22031
|
-
//
|
|
22031
|
+
// packages/mesh-cli/src/utils/temporal-codec.ts
|
|
22032
22032
|
import { execFileSync as execFileSync32 } from "child_process";
|
|
22033
22033
|
import { webcrypto as crypto4 } from "node:crypto";
|
|
22034
22034
|
function resolveTemporalEncodingKeyFromK8s(namespace) {
|
|
@@ -22228,7 +22228,7 @@ async function buildRawDecrypterForNamespace(namespace) {
|
|
|
22228
22228
|
}
|
|
22229
22229
|
var ENCRYPTED_ENCODING, IV_LENGTH;
|
|
22230
22230
|
var init_temporal_codec = __esm({
|
|
22231
|
-
"
|
|
22231
|
+
"packages/mesh-cli/src/utils/temporal-codec.ts"() {
|
|
22232
22232
|
"use strict";
|
|
22233
22233
|
init_log();
|
|
22234
22234
|
ENCRYPTED_ENCODING = "binary/encrypted";
|
|
@@ -22236,7 +22236,7 @@ var init_temporal_codec = __esm({
|
|
|
22236
22236
|
}
|
|
22237
22237
|
});
|
|
22238
22238
|
|
|
22239
|
-
//
|
|
22239
|
+
// packages/mesh-cli/src/utils/capture-history.ts
|
|
22240
22240
|
var capture_history_exports = {};
|
|
22241
22241
|
__export(capture_history_exports, {
|
|
22242
22242
|
decryptHistoryPayloads: () => decryptHistoryPayloads,
|
|
@@ -22276,12 +22276,12 @@ async function serializeHistoryToFixture(events, decrypter) {
|
|
|
22276
22276
|
return { fixture, eventCount: events.length, decryptedPayloads };
|
|
22277
22277
|
}
|
|
22278
22278
|
var init_capture_history = __esm({
|
|
22279
|
-
"
|
|
22279
|
+
"packages/mesh-cli/src/utils/capture-history.ts"() {
|
|
22280
22280
|
"use strict";
|
|
22281
22281
|
}
|
|
22282
22282
|
});
|
|
22283
22283
|
|
|
22284
|
-
//
|
|
22284
|
+
// packages/mesh-cli/src/commands/temporal.ts
|
|
22285
22285
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
22286
22286
|
import { writeFileSync as writeFileSync24, mkdirSync as mkdirSync20 } from "node:fs";
|
|
22287
22287
|
import { homedir as homedir6 } from "node:os";
|
|
@@ -22841,7 +22841,7 @@ function registerTemporalCommands(program2) {
|
|
|
22841
22841
|
}
|
|
22842
22842
|
var EVENT_TYPE_NAMES, STATUS_NAMES;
|
|
22843
22843
|
var init_temporal = __esm({
|
|
22844
|
-
"
|
|
22844
|
+
"packages/mesh-cli/src/commands/temporal.ts"() {
|
|
22845
22845
|
"use strict";
|
|
22846
22846
|
init_log();
|
|
22847
22847
|
init_recover_conversation();
|
|
@@ -22903,7 +22903,7 @@ var init_temporal = __esm({
|
|
|
22903
22903
|
}
|
|
22904
22904
|
});
|
|
22905
22905
|
|
|
22906
|
-
//
|
|
22906
|
+
// packages/mesh-cli/src/commands/tenant.ts
|
|
22907
22907
|
import chalk7 from "chalk";
|
|
22908
22908
|
import * as fs39 from "fs";
|
|
22909
22909
|
import * as path46 from "path";
|
|
@@ -23081,7 +23081,7 @@ function registerTenantCommands(program2) {
|
|
|
23081
23081
|
});
|
|
23082
23082
|
}
|
|
23083
23083
|
var init_tenant = __esm({
|
|
23084
|
-
"
|
|
23084
|
+
"packages/mesh-cli/src/commands/tenant.ts"() {
|
|
23085
23085
|
"use strict";
|
|
23086
23086
|
init_log();
|
|
23087
23087
|
init_errors();
|
|
@@ -23090,7 +23090,7 @@ var init_tenant = __esm({
|
|
|
23090
23090
|
}
|
|
23091
23091
|
});
|
|
23092
23092
|
|
|
23093
|
-
//
|
|
23093
|
+
// packages/mesh-cli/src/commands/tunnel/index.ts
|
|
23094
23094
|
import { spawn as spawn9 } from "child_process";
|
|
23095
23095
|
import * as fs40 from "fs";
|
|
23096
23096
|
import * as os12 from "os";
|
|
@@ -23479,7 +23479,7 @@ function registerTunnelCommands(program2) {
|
|
|
23479
23479
|
}
|
|
23480
23480
|
var SERVICE_CONFIG, SERVICE_GROUPS;
|
|
23481
23481
|
var init_tunnel2 = __esm({
|
|
23482
|
-
"
|
|
23482
|
+
"packages/mesh-cli/src/commands/tunnel/index.ts"() {
|
|
23483
23483
|
"use strict";
|
|
23484
23484
|
init_utils();
|
|
23485
23485
|
SERVICE_CONFIG = {
|
|
@@ -23506,7 +23506,7 @@ var init_tunnel2 = __esm({
|
|
|
23506
23506
|
}
|
|
23507
23507
|
});
|
|
23508
23508
|
|
|
23509
|
-
//
|
|
23509
|
+
// packages/mesh-cli/src/commands/vcs/common.ts
|
|
23510
23510
|
import { execFile as execFile4 } from "node:child_process";
|
|
23511
23511
|
import { promisify as promisify3 } from "node:util";
|
|
23512
23512
|
function redactToken(err, token) {
|
|
@@ -23580,13 +23580,13 @@ async function vcsApi(baseUrl, token, path49, method = "GET", body) {
|
|
|
23580
23580
|
}
|
|
23581
23581
|
var execFileAsync3;
|
|
23582
23582
|
var init_common = __esm({
|
|
23583
|
-
"
|
|
23583
|
+
"packages/mesh-cli/src/commands/vcs/common.ts"() {
|
|
23584
23584
|
"use strict";
|
|
23585
23585
|
execFileAsync3 = promisify3(execFile4);
|
|
23586
23586
|
}
|
|
23587
23587
|
});
|
|
23588
23588
|
|
|
23589
|
-
//
|
|
23589
|
+
// packages/mesh-cli/src/commands/vcs/clone.ts
|
|
23590
23590
|
async function cloneCommand(repo, dest, opts) {
|
|
23591
23591
|
const baseUrl = (opts.url ?? process.env.VCS_URL)?.replace(/\/$/, "");
|
|
23592
23592
|
if (!baseUrl) throw new Error("clone requires --url or VCS_URL");
|
|
@@ -23611,13 +23611,13 @@ async function cloneCommand(repo, dest, opts) {
|
|
|
23611
23611
|
);
|
|
23612
23612
|
}
|
|
23613
23613
|
var init_clone = __esm({
|
|
23614
|
-
"
|
|
23614
|
+
"packages/mesh-cli/src/commands/vcs/clone.ts"() {
|
|
23615
23615
|
"use strict";
|
|
23616
23616
|
init_common();
|
|
23617
23617
|
}
|
|
23618
23618
|
});
|
|
23619
23619
|
|
|
23620
|
-
//
|
|
23620
|
+
// packages/mesh-cli/src/commands/vcs/get.ts
|
|
23621
23621
|
import { writeFile as writeFile2, mkdir as mkdir2 } from "node:fs/promises";
|
|
23622
23622
|
import { join as join45, dirname as dirname30 } from "node:path";
|
|
23623
23623
|
async function getCommand(repo, path49, opts) {
|
|
@@ -23660,7 +23660,7 @@ async function getCommand(repo, path49, opts) {
|
|
|
23660
23660
|
}
|
|
23661
23661
|
}
|
|
23662
23662
|
var init_get = __esm({
|
|
23663
|
-
"
|
|
23663
|
+
"packages/mesh-cli/src/commands/vcs/get.ts"() {
|
|
23664
23664
|
"use strict";
|
|
23665
23665
|
init_src2();
|
|
23666
23666
|
init_agent_api_client();
|
|
@@ -23670,7 +23670,7 @@ var init_get = __esm({
|
|
|
23670
23670
|
}
|
|
23671
23671
|
});
|
|
23672
23672
|
|
|
23673
|
-
//
|
|
23673
|
+
// packages/mesh-cli/src/commands/vcs/drafts.ts
|
|
23674
23674
|
async function call(opts, repo, path49, method = "GET", body) {
|
|
23675
23675
|
const target = await resolveTarget2({ ...opts, repo });
|
|
23676
23676
|
const token = await resolveToken(opts);
|
|
@@ -23721,13 +23721,13 @@ async function draftsDiscardCommand(repo, draftId, opts) {
|
|
|
23721
23721
|
console.log(`draft ${d.draftId} discarded`);
|
|
23722
23722
|
}
|
|
23723
23723
|
var init_drafts = __esm({
|
|
23724
|
-
"
|
|
23724
|
+
"packages/mesh-cli/src/commands/vcs/drafts.ts"() {
|
|
23725
23725
|
"use strict";
|
|
23726
23726
|
init_common();
|
|
23727
23727
|
}
|
|
23728
23728
|
});
|
|
23729
23729
|
|
|
23730
|
-
//
|
|
23730
|
+
// packages/mesh-cli/src/commands/vcs/propose.ts
|
|
23731
23731
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
23732
23732
|
import { join as join46 } from "node:path";
|
|
23733
23733
|
function parseStatus(out) {
|
|
@@ -23819,13 +23819,13 @@ async function proposeCommand(opts) {
|
|
|
23819
23819
|
);
|
|
23820
23820
|
}
|
|
23821
23821
|
var init_propose = __esm({
|
|
23822
|
-
"
|
|
23822
|
+
"packages/mesh-cli/src/commands/vcs/propose.ts"() {
|
|
23823
23823
|
"use strict";
|
|
23824
23824
|
init_common();
|
|
23825
23825
|
}
|
|
23826
23826
|
});
|
|
23827
23827
|
|
|
23828
|
-
//
|
|
23828
|
+
// packages/mesh-cli/src/commands/vcs/rm.ts
|
|
23829
23829
|
import { mkdtemp as mkdtemp2, rm as rmrf } from "node:fs/promises";
|
|
23830
23830
|
import { tmpdir as tmpdir10 } from "node:os";
|
|
23831
23831
|
import { join as join47 } from "node:path";
|
|
@@ -23904,13 +23904,13 @@ async function rmCommand(repo, paths, opts) {
|
|
|
23904
23904
|
}
|
|
23905
23905
|
}
|
|
23906
23906
|
var init_rm = __esm({
|
|
23907
|
-
"
|
|
23907
|
+
"packages/mesh-cli/src/commands/vcs/rm.ts"() {
|
|
23908
23908
|
"use strict";
|
|
23909
23909
|
init_common();
|
|
23910
23910
|
}
|
|
23911
23911
|
});
|
|
23912
23912
|
|
|
23913
|
-
//
|
|
23913
|
+
// packages/mesh-cli/src/commands/vcs/review.ts
|
|
23914
23914
|
async function call2(opts, repo, path49, method = "GET", body) {
|
|
23915
23915
|
const target = await resolveTarget2({ ...opts, repo });
|
|
23916
23916
|
const token = await resolveToken(opts);
|
|
@@ -23944,13 +23944,13 @@ async function requestChangesCommand(repo, id, opts) {
|
|
|
23944
23944
|
console.log(`changes requested on ${id}`);
|
|
23945
23945
|
}
|
|
23946
23946
|
var init_review = __esm({
|
|
23947
|
-
"
|
|
23947
|
+
"packages/mesh-cli/src/commands/vcs/review.ts"() {
|
|
23948
23948
|
"use strict";
|
|
23949
23949
|
init_common();
|
|
23950
23950
|
}
|
|
23951
23951
|
});
|
|
23952
23952
|
|
|
23953
|
-
//
|
|
23953
|
+
// packages/mesh-cli/src/commands/vcs/index.ts
|
|
23954
23954
|
function withCommon(cmd) {
|
|
23955
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");
|
|
23956
23956
|
}
|
|
@@ -24007,7 +24007,7 @@ function registerVcsCommands(program2) {
|
|
|
24007
24007
|
);
|
|
24008
24008
|
}
|
|
24009
24009
|
var init_vcs = __esm({
|
|
24010
|
-
"
|
|
24010
|
+
"packages/mesh-cli/src/commands/vcs/index.ts"() {
|
|
24011
24011
|
"use strict";
|
|
24012
24012
|
init_clone();
|
|
24013
24013
|
init_get();
|
|
@@ -24018,7 +24018,7 @@ var init_vcs = __esm({
|
|
|
24018
24018
|
}
|
|
24019
24019
|
});
|
|
24020
24020
|
|
|
24021
|
-
//
|
|
24021
|
+
// packages/workflow-model/src/workflow-ir.ts
|
|
24022
24022
|
function computeHappyPath(nodes, edges) {
|
|
24023
24023
|
const startNode = nodes.find((n) => n.type === "start");
|
|
24024
24024
|
const endNodes = nodes.filter((n) => n.type === "end");
|
|
@@ -24579,7 +24579,7 @@ function validateWorkflowPatches(ir, patches) {
|
|
|
24579
24579
|
}
|
|
24580
24580
|
var WorkflowPatchError, WorkflowPatchStream;
|
|
24581
24581
|
var init_workflow_ir = __esm({
|
|
24582
|
-
"
|
|
24582
|
+
"packages/workflow-model/src/workflow-ir.ts"() {
|
|
24583
24583
|
"use strict";
|
|
24584
24584
|
WorkflowPatchError = class extends Error {
|
|
24585
24585
|
constructor(message) {
|
|
@@ -24661,7 +24661,7 @@ var init_workflow_ir = __esm({
|
|
|
24661
24661
|
}
|
|
24662
24662
|
});
|
|
24663
24663
|
|
|
24664
|
-
//
|
|
24664
|
+
// packages/workflow-model/src/workflow-ir-validate.ts
|
|
24665
24665
|
function outgoingEdges(edges, nodeId) {
|
|
24666
24666
|
return edges.filter((e) => e.from === nodeId);
|
|
24667
24667
|
}
|
|
@@ -24773,12 +24773,12 @@ function collectDiagnostics(workflow, out, depth, maxDepth) {
|
|
|
24773
24773
|
}
|
|
24774
24774
|
}
|
|
24775
24775
|
var init_workflow_ir_validate = __esm({
|
|
24776
|
-
"
|
|
24776
|
+
"packages/workflow-model/src/workflow-ir-validate.ts"() {
|
|
24777
24777
|
"use strict";
|
|
24778
24778
|
}
|
|
24779
24779
|
});
|
|
24780
24780
|
|
|
24781
|
-
//
|
|
24781
|
+
// packages/workflow-model/src/apply-preview-patch.ts
|
|
24782
24782
|
function applyPreviewPatch(ir, patch) {
|
|
24783
24783
|
try {
|
|
24784
24784
|
return applyWorkflowPatch(ir, patch);
|
|
@@ -24787,13 +24787,13 @@ function applyPreviewPatch(ir, patch) {
|
|
|
24787
24787
|
}
|
|
24788
24788
|
}
|
|
24789
24789
|
var init_apply_preview_patch = __esm({
|
|
24790
|
-
"
|
|
24790
|
+
"packages/workflow-model/src/apply-preview-patch.ts"() {
|
|
24791
24791
|
"use strict";
|
|
24792
24792
|
init_workflow_ir();
|
|
24793
24793
|
}
|
|
24794
24794
|
});
|
|
24795
24795
|
|
|
24796
|
-
//
|
|
24796
|
+
// packages/workflow-model/src/change-counts.ts
|
|
24797
24797
|
function countChanges(changes) {
|
|
24798
24798
|
if (!changes) return null;
|
|
24799
24799
|
const counts = {
|
|
@@ -24827,13 +24827,13 @@ function describeChanges(counts) {
|
|
|
24827
24827
|
}
|
|
24828
24828
|
var zero;
|
|
24829
24829
|
var init_change_counts = __esm({
|
|
24830
|
-
"
|
|
24830
|
+
"packages/workflow-model/src/change-counts.ts"() {
|
|
24831
24831
|
"use strict";
|
|
24832
24832
|
zero = () => ({ extend: 0, add: 0, remove: 0, rewire: 0, total: 0 });
|
|
24833
24833
|
}
|
|
24834
24834
|
});
|
|
24835
24835
|
|
|
24836
|
-
//
|
|
24836
|
+
// packages/workflow-model/src/process-artifact.ts
|
|
24837
24837
|
import { z as z4 } from "zod";
|
|
24838
24838
|
function outcomeTriggers(outcome) {
|
|
24839
24839
|
const raw = Array.isArray(outcome.when) ? outcome.when : [outcome.when];
|
|
@@ -24975,7 +24975,7 @@ function parseProcessArtifact(json) {
|
|
|
24975
24975
|
}
|
|
24976
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;
|
|
24977
24977
|
var init_process_artifact = __esm({
|
|
24978
|
-
"
|
|
24978
|
+
"packages/workflow-model/src/process-artifact.ts"() {
|
|
24979
24979
|
"use strict";
|
|
24980
24980
|
CURRENT_PROCESS_VERSION = 2;
|
|
24981
24981
|
SUPPORTED_PROCESS_VERSIONS = [1, 2];
|
|
@@ -25165,7 +25165,7 @@ var init_process_artifact = __esm({
|
|
|
25165
25165
|
}
|
|
25166
25166
|
});
|
|
25167
25167
|
|
|
25168
|
-
//
|
|
25168
|
+
// packages/workflow-model/src/process-lint.ts
|
|
25169
25169
|
function stagePath(stageIndex) {
|
|
25170
25170
|
return `process.stages[${stageIndex}]`;
|
|
25171
25171
|
}
|
|
@@ -25324,13 +25324,13 @@ function lintProcess(artifact, inventory, predicateNames, options = {}) {
|
|
|
25324
25324
|
return diagnostics;
|
|
25325
25325
|
}
|
|
25326
25326
|
var init_process_lint = __esm({
|
|
25327
|
-
"
|
|
25327
|
+
"packages/workflow-model/src/process-lint.ts"() {
|
|
25328
25328
|
"use strict";
|
|
25329
25329
|
init_process_artifact();
|
|
25330
25330
|
}
|
|
25331
25331
|
});
|
|
25332
25332
|
|
|
25333
|
-
//
|
|
25333
|
+
// packages/workflow-model/src/index.ts
|
|
25334
25334
|
var src_exports2 = {};
|
|
25335
25335
|
__export(src_exports2, {
|
|
25336
25336
|
CURRENT_PROCESS_VERSION: () => CURRENT_PROCESS_VERSION,
|
|
@@ -25359,7 +25359,7 @@ __export(src_exports2, {
|
|
|
25359
25359
|
walkProcessNodes: () => walkProcessNodes
|
|
25360
25360
|
});
|
|
25361
25361
|
var init_src4 = __esm({
|
|
25362
|
-
"
|
|
25362
|
+
"packages/workflow-model/src/index.ts"() {
|
|
25363
25363
|
"use strict";
|
|
25364
25364
|
init_workflow_ir();
|
|
25365
25365
|
init_workflow_ir_validate();
|
|
@@ -25370,7 +25370,7 @@ var init_src4 = __esm({
|
|
|
25370
25370
|
}
|
|
25371
25371
|
});
|
|
25372
25372
|
|
|
25373
|
-
//
|
|
25373
|
+
// packages/mesh-cli/src/commands/workflow.ts
|
|
25374
25374
|
import * as fs41 from "fs";
|
|
25375
25375
|
import * as path48 from "path";
|
|
25376
25376
|
import { createRequire as createRequire2 } from "module";
|
|
@@ -25799,7 +25799,7 @@ ${inventory.workflowType} (${sourceFile})`);
|
|
|
25799
25799
|
}
|
|
25800
25800
|
var DISCOVERY_HELPERS_SRC;
|
|
25801
25801
|
var init_workflow = __esm({
|
|
25802
|
-
"
|
|
25802
|
+
"packages/mesh-cli/src/commands/workflow.ts"() {
|
|
25803
25803
|
"use strict";
|
|
25804
25804
|
init_log();
|
|
25805
25805
|
DISCOVERY_HELPERS_SRC = `
|
|
@@ -25895,7 +25895,7 @@ function discoverProcessArtifact(filePath, source) {
|
|
|
25895
25895
|
}
|
|
25896
25896
|
});
|
|
25897
25897
|
|
|
25898
|
-
//
|
|
25898
|
+
// packages/mesh-cli/src/program.ts
|
|
25899
25899
|
var program_exports = {};
|
|
25900
25900
|
__export(program_exports, {
|
|
25901
25901
|
CLI_DESCRIPTION: () => CLI_DESCRIPTION,
|
|
@@ -25936,7 +25936,7 @@ function createProgram(options = {}) {
|
|
|
25936
25936
|
}
|
|
25937
25937
|
var CLI_NAME, CLI_DESCRIPTION;
|
|
25938
25938
|
var init_program = __esm({
|
|
25939
|
-
"
|
|
25939
|
+
"packages/mesh-cli/src/program.ts"() {
|
|
25940
25940
|
"use strict";
|
|
25941
25941
|
init_app_check();
|
|
25942
25942
|
init_artifacts();
|
|
@@ -25968,7 +25968,7 @@ var init_program = __esm({
|
|
|
25968
25968
|
}
|
|
25969
25969
|
});
|
|
25970
25970
|
|
|
25971
|
-
//
|
|
25971
|
+
// packages/mesh-cli/bin/mesh.ts
|
|
25972
25972
|
init_program();
|
|
25973
25973
|
init_errors();
|
|
25974
25974
|
init_build_info();
|