@lace-cloud/canvas 0.32.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Canvas-JRY2HAY6.css → Canvas-VQQEZSPA.css} +9 -11
- package/dist/{chunk-J5BZ7EOQ.mjs → chunk-5X3CA44U.mjs} +247 -188
- package/dist/chunk-5X3CA44U.mjs.map +1 -0
- package/dist/engine/index.cjs +248 -187
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +15 -3
- package/dist/engine/index.d.ts +15 -3
- package/dist/engine/index.mjs +5 -1
- package/dist/index.cjs +1162 -989
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.mjs +744 -620
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-BLwYarIE.d.ts → registry-BwXo1iVe.d.mts} +30 -19
- package/dist/{registry-BLwYarIE.d.mts → registry-BwXo1iVe.d.ts} +30 -19
- package/package.json +10 -5
- package/dist/chunk-J5BZ7EOQ.mjs.map +0 -1
package/dist/engine/index.cjs
CHANGED
|
@@ -61,6 +61,7 @@ __export(engine_exports, {
|
|
|
61
61
|
openEngineSession: () => openEngineSession,
|
|
62
62
|
parseBound: () => parseBound,
|
|
63
63
|
parseCommandFailure: () => parseCommandFailure,
|
|
64
|
+
proposeStackSlug: () => proposeStackSlug,
|
|
64
65
|
reasonWire: () => reasonWire,
|
|
65
66
|
reduceFollow: () => reduceFollow,
|
|
66
67
|
reducePreview: () => reducePreview,
|
|
@@ -68,6 +69,7 @@ __export(engine_exports, {
|
|
|
68
69
|
reduceRun: () => reduceRun,
|
|
69
70
|
reportDiagnostics: () => reportDiagnostics,
|
|
70
71
|
settleRun: () => settleRun,
|
|
72
|
+
stackSlugRule: () => stackSlugRule,
|
|
71
73
|
toArgv: () => toArgv,
|
|
72
74
|
uniqueDiagnostics: () => uniqueDiagnostics
|
|
73
75
|
});
|
|
@@ -12288,6 +12290,9 @@ var COMMANDS = {
|
|
|
12288
12290
|
],
|
|
12289
12291
|
"short": "o"
|
|
12290
12292
|
},
|
|
12293
|
+
"source": {
|
|
12294
|
+
"type": "string"
|
|
12295
|
+
},
|
|
12291
12296
|
"sourcePath": {
|
|
12292
12297
|
"type": "string"
|
|
12293
12298
|
},
|
|
@@ -12483,6 +12488,9 @@ function completeArgs(path, partial) {
|
|
|
12483
12488
|
|
|
12484
12489
|
// src/contracts/schemas.ts
|
|
12485
12490
|
var import_zod = require("zod");
|
|
12491
|
+
function reads() {
|
|
12492
|
+
return (schema) => schema;
|
|
12493
|
+
}
|
|
12486
12494
|
var REASON_PREFIX = "REASON_";
|
|
12487
12495
|
function reasonWire(reason) {
|
|
12488
12496
|
return reasonToJSON(reason).slice(REASON_PREFIX.length).toLowerCase();
|
|
@@ -12531,10 +12539,11 @@ var commandDiagnosticSchema = import_zod.z.object({
|
|
|
12531
12539
|
line: import_zod.z.number().optional(),
|
|
12532
12540
|
column: import_zod.z.number().optional()
|
|
12533
12541
|
});
|
|
12542
|
+
var VERDICTS = ["already-lace-style", "convertible", "uncomposable", "lossy"];
|
|
12534
12543
|
var moduleValidateResultSchema = import_zod.z.object({
|
|
12535
12544
|
root: import_zod.z.string().min(1).optional(),
|
|
12536
12545
|
treeHash: import_zod.z.string().min(1).optional(),
|
|
12537
|
-
verdict: import_zod.z.enum(
|
|
12546
|
+
verdict: import_zod.z.enum(VERDICTS).optional(),
|
|
12538
12547
|
residuals: import_zod.z.array(
|
|
12539
12548
|
import_zod.z.object({
|
|
12540
12549
|
construct: import_zod.z.string(),
|
|
@@ -12668,7 +12677,7 @@ var registryDescribeSchema = import_zod.z.object({
|
|
|
12668
12677
|
version: import_zod.z.string(),
|
|
12669
12678
|
source: import_zod.z.string(),
|
|
12670
12679
|
treeHash: import_zod.z.string(),
|
|
12671
|
-
verdict: import_zod.z.
|
|
12680
|
+
verdict: import_zod.z.enum(VERDICTS),
|
|
12672
12681
|
interface: import_zod.z.object({
|
|
12673
12682
|
inputs: import_zod.z.array(
|
|
12674
12683
|
import_zod.z.object({
|
|
@@ -12692,39 +12701,41 @@ var stackSourceSchema = import_zod.z.object({
|
|
|
12692
12701
|
ref: import_zod.z.string().optional(),
|
|
12693
12702
|
path: import_zod.z.string().optional()
|
|
12694
12703
|
});
|
|
12695
|
-
var stackSchema =
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
})
|
|
12704
|
+
var stackSchema = reads()(
|
|
12705
|
+
import_zod.z.object({
|
|
12706
|
+
id: import_zod.z.string(),
|
|
12707
|
+
orgId: import_zod.z.string(),
|
|
12708
|
+
teamId: import_zod.z.string(),
|
|
12709
|
+
connectionId: import_zod.z.string(),
|
|
12710
|
+
slug: import_zod.z.string(),
|
|
12711
|
+
name: import_zod.z.string(),
|
|
12712
|
+
description: import_zod.z.string().nullable(),
|
|
12713
|
+
source: stackSourceSchema.nullable(),
|
|
12714
|
+
stateSerial: import_zod.z.number(),
|
|
12715
|
+
stateLineage: import_zod.z.string().nullable(),
|
|
12716
|
+
stateVersion: import_zod.z.number().nullable(),
|
|
12717
|
+
stateLastWrittenAt: import_zod.z.string().nullable(),
|
|
12718
|
+
lastAppliedRunId: import_zod.z.string().nullable(),
|
|
12719
|
+
lastDriftScanAt: import_zod.z.string().nullable(),
|
|
12720
|
+
lastDriftStatus: import_zod.z.string().nullable(),
|
|
12721
|
+
lastDriftCount: import_zod.z.number(),
|
|
12722
|
+
lastDriftStale: import_zod.z.boolean(),
|
|
12723
|
+
lastDriftConfirmedAt: import_zod.z.string().nullable(),
|
|
12724
|
+
lastDriftUndeterminedReason: import_zod.z.string().nullable(),
|
|
12725
|
+
createdBy: import_zod.z.string(),
|
|
12726
|
+
createdAt: import_zod.z.string(),
|
|
12727
|
+
updatedAt: import_zod.z.string(),
|
|
12728
|
+
archivedAt: import_zod.z.string().nullable(),
|
|
12729
|
+
connection: import_zod.z.object({ name: import_zod.z.string(), provider: import_zod.z.string(), awsAccountId: import_zod.z.string().nullable() }).nullable(),
|
|
12730
|
+
createdByName: import_zod.z.string().nullable(),
|
|
12731
|
+
lastApply: import_zod.z.object({
|
|
12732
|
+
runId: import_zod.z.string(),
|
|
12733
|
+
bundleSnapshotId: import_zod.z.string(),
|
|
12734
|
+
completedAt: import_zod.z.string().nullable(),
|
|
12735
|
+
initiatedByName: import_zod.z.string().nullable()
|
|
12736
|
+
}).nullable()
|
|
12737
|
+
})
|
|
12738
|
+
);
|
|
12728
12739
|
var stackListSchema = import_zod.z.object({
|
|
12729
12740
|
items: import_zod.z.array(stackSchema),
|
|
12730
12741
|
nextCursor: import_zod.z.string().nullable(),
|
|
@@ -12737,29 +12748,39 @@ var driftedResourceSchema = import_zod.z.object({
|
|
|
12737
12748
|
details: import_zod.z.string().optional(),
|
|
12738
12749
|
goldenAttributes: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()),
|
|
12739
12750
|
liveProperties: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()),
|
|
12740
|
-
diff: import_zod.z.array(
|
|
12751
|
+
diff: import_zod.z.array(
|
|
12752
|
+
import_zod.z.object({
|
|
12753
|
+
path: import_zod.z.string(),
|
|
12754
|
+
declared: import_zod.z.unknown().optional(),
|
|
12755
|
+
detected: import_zod.z.unknown().optional()
|
|
12756
|
+
})
|
|
12757
|
+
),
|
|
12741
12758
|
findingId: import_zod.z.string().nullable()
|
|
12742
12759
|
});
|
|
12743
|
-
var driftSchema =
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
})
|
|
12760
|
+
var driftSchema = reads()(
|
|
12761
|
+
import_zod.z.object({
|
|
12762
|
+
stackId: import_zod.z.string(),
|
|
12763
|
+
scannedAt: import_zod.z.string(),
|
|
12764
|
+
driftStatus: import_zod.z.literal("DRIFTED"),
|
|
12765
|
+
totalResources: import_zod.z.number(),
|
|
12766
|
+
stateSerial: import_zod.z.number(),
|
|
12767
|
+
driftedResources: import_zod.z.array(driftedResourceSchema)
|
|
12768
|
+
}).nullable()
|
|
12769
|
+
);
|
|
12770
|
+
var stackDescribeSchema = reads()(
|
|
12771
|
+
import_zod.z.object({
|
|
12772
|
+
stack: stackSchema.nullable(),
|
|
12773
|
+
state: import_zod.z.object({
|
|
12774
|
+
serial: import_zod.z.number(),
|
|
12775
|
+
lineage: import_zod.z.string(),
|
|
12776
|
+
terraformVersion: import_zod.z.string(),
|
|
12777
|
+
resourceCount: import_zod.z.number(),
|
|
12778
|
+
resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
|
|
12779
|
+
resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
|
|
12780
|
+
}).nullable(),
|
|
12781
|
+
drift: driftSchema
|
|
12782
|
+
})
|
|
12783
|
+
);
|
|
12763
12784
|
var policySummarySchema = import_zod.z.object({
|
|
12764
12785
|
policyId: import_zod.z.string(),
|
|
12765
12786
|
name: import_zod.z.string(),
|
|
@@ -12767,77 +12788,81 @@ var policySummarySchema = import_zod.z.object({
|
|
|
12767
12788
|
approvalMode: import_zod.z.string().nullable(),
|
|
12768
12789
|
ruleIds: import_zod.z.array(import_zod.z.string())
|
|
12769
12790
|
});
|
|
12770
|
-
var policyListSchema =
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12791
|
+
var policyListSchema = reads()(
|
|
12792
|
+
import_zod.z.object({
|
|
12793
|
+
stack: import_zod.z.string().nullable(),
|
|
12794
|
+
policies: import_zod.z.array(policySummarySchema)
|
|
12795
|
+
})
|
|
12796
|
+
);
|
|
12797
|
+
var runSchema = reads()(
|
|
12798
|
+
import_zod.z.object({
|
|
12799
|
+
id: import_zod.z.string(),
|
|
12800
|
+
stackId: import_zod.z.string(),
|
|
12801
|
+
orgId: import_zod.z.string(),
|
|
12802
|
+
teamId: import_zod.z.string(),
|
|
12803
|
+
kind: import_zod.z.string(),
|
|
12804
|
+
status: import_zod.z.string(),
|
|
12805
|
+
initiatedByUserId: import_zod.z.string().nullable(),
|
|
12806
|
+
initiatedVia: import_zod.z.string(),
|
|
12807
|
+
runnerIdentity: import_zod.z.string().nullable(),
|
|
12808
|
+
runnerLocation: import_zod.z.string().nullable(),
|
|
12809
|
+
bundleSnapshotId: import_zod.z.string().nullable(),
|
|
12810
|
+
sourceCommitSha: import_zod.z.string().nullable(),
|
|
12811
|
+
sourceRef: import_zod.z.string().nullable(),
|
|
12812
|
+
sourcePrUrl: import_zod.z.string().nullable(),
|
|
12813
|
+
sourceOverride: import_zod.z.boolean(),
|
|
12814
|
+
planResourceAdd: import_zod.z.number().nullable(),
|
|
12815
|
+
planResourceChange: import_zod.z.number().nullable(),
|
|
12816
|
+
planResourceDestroy: import_zod.z.number().nullable(),
|
|
12817
|
+
planLocation: import_zod.z.string().nullable(),
|
|
12818
|
+
planHumanLocation: import_zod.z.string().nullable(),
|
|
12819
|
+
applyLogLocation: import_zod.z.string().nullable(),
|
|
12820
|
+
policyResultsLocation: import_zod.z.string().nullable(),
|
|
12821
|
+
policyPassed: import_zod.z.boolean().nullable(),
|
|
12822
|
+
policyResolution: import_zod.z.unknown().nullable(),
|
|
12823
|
+
changeRequestId: import_zod.z.string().nullable(),
|
|
12824
|
+
cancelReason: import_zod.z.string().nullable(),
|
|
12825
|
+
startedAt: import_zod.z.string().nullable(),
|
|
12826
|
+
completedAt: import_zod.z.string().nullable(),
|
|
12827
|
+
errorMessage: import_zod.z.string().nullable(),
|
|
12828
|
+
sourceTreeHash: import_zod.z.string().nullable(),
|
|
12829
|
+
attestationStatus: import_zod.z.string().nullable(),
|
|
12830
|
+
attestedAt: import_zod.z.string().nullable(),
|
|
12831
|
+
attestation: import_zod.z.string().nullable(),
|
|
12832
|
+
createdAt: import_zod.z.string(),
|
|
12833
|
+
updatedAt: import_zod.z.string(),
|
|
12834
|
+
// The run's page in the portal. The CLI builds it on every Run it prints
|
|
12835
|
+
// (apps/cli/internal/kernel/api/runs.go, from the configured base URL and the
|
|
12836
|
+
// selected organization and team); the API's own record carries none, so
|
|
12837
|
+
// a portal mount reading the API body sees it absent — optional so both
|
|
12838
|
+
// bodies parse. A host opens this link and never composes a portal route.
|
|
12839
|
+
url: import_zod.z.string().optional(),
|
|
12840
|
+
// The provider versions the Run's lockfile pins, each with the
|
|
12841
|
+
// organization's admission it ran under when the version is one admitted
|
|
12842
|
+
// outside the curated range. A single-run read carries it; a list does
|
|
12843
|
+
// not, and the CLI omits an empty one.
|
|
12844
|
+
providers: import_zod.z.array(
|
|
12845
|
+
import_zod.z.object({
|
|
12846
|
+
address: import_zod.z.string(),
|
|
12847
|
+
version: import_zod.z.string(),
|
|
12848
|
+
admission: import_zod.z.object({
|
|
12849
|
+
id: import_zod.z.string(),
|
|
12850
|
+
admittedBy: import_zod.z.string(),
|
|
12851
|
+
admittedByName: import_zod.z.string().nullable(),
|
|
12852
|
+
admittedAt: import_zod.z.string()
|
|
12853
|
+
}).optional()
|
|
12854
|
+
})
|
|
12855
|
+
).optional(),
|
|
12856
|
+
// The CLI's own `api.Run` decode struct (apps/cli/internal/kernel/api/runs.go) has no
|
|
12857
|
+
// json tag for these, so every CLI JSON golden omits them; the API always sends
|
|
12858
|
+
// them (apps/api/src/verticals/runs/routes/schemas/runs.ts) — optional so both bodies parse.
|
|
12859
|
+
keepStack: import_zod.z.boolean().optional(),
|
|
12860
|
+
version: import_zod.z.number().optional(),
|
|
12861
|
+
lastHeartbeatAt: import_zod.z.string().nullable().optional(),
|
|
12862
|
+
initiatedByName: import_zod.z.string().nullable().optional(),
|
|
12863
|
+
stackName: import_zod.z.string().nullable().optional()
|
|
12864
|
+
})
|
|
12865
|
+
);
|
|
12841
12866
|
var runListSchema = import_zod.z.object({
|
|
12842
12867
|
items: import_zod.z.array(runSchema),
|
|
12843
12868
|
nextCursor: import_zod.z.string().nullable(),
|
|
@@ -12888,27 +12913,29 @@ var stackPreviewSchema = import_zod.z.object({
|
|
|
12888
12913
|
stack: stackIdentSchema,
|
|
12889
12914
|
treeHash: import_zod.z.string(),
|
|
12890
12915
|
plan: import_zod.z.object({ summary: planSummarySchema, human: import_zod.z.string() }),
|
|
12891
|
-
policy:
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
import_zod.z.
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12916
|
+
policy: reads()(
|
|
12917
|
+
import_zod.z.object({
|
|
12918
|
+
mode: import_zod.z.string(),
|
|
12919
|
+
policyId: import_zod.z.string(),
|
|
12920
|
+
ruleId: import_zod.z.string(),
|
|
12921
|
+
rulesFired: import_zod.z.array(import_zod.z.string()),
|
|
12922
|
+
reason: import_zod.z.string(),
|
|
12923
|
+
approvalMode: import_zod.z.string().nullable(),
|
|
12924
|
+
isAuthoringTimePreview: import_zod.z.boolean(),
|
|
12925
|
+
bindings: import_zod.z.array(
|
|
12926
|
+
import_zod.z.object({
|
|
12927
|
+
policyId: import_zod.z.string(),
|
|
12928
|
+
name: import_zod.z.string(),
|
|
12929
|
+
handler: import_zod.z.string(),
|
|
12930
|
+
mode: import_zod.z.string(),
|
|
12931
|
+
decision: import_zod.z.string(),
|
|
12932
|
+
reason: import_zod.z.string(),
|
|
12933
|
+
rulesFired: import_zod.z.array(import_zod.z.string()),
|
|
12934
|
+
approvalMode: import_zod.z.string().nullable()
|
|
12935
|
+
})
|
|
12936
|
+
)
|
|
12937
|
+
}).nullable()
|
|
12938
|
+
),
|
|
12912
12939
|
// What the Preview shows of the Agents bound at it: the curated queue of
|
|
12913
12940
|
// their Advisories about this tree, how many were recorded under the
|
|
12914
12941
|
// Preview's floor, how many bound Agents have not answered, and how many
|
|
@@ -12986,54 +13013,68 @@ var moduleImportSchema = moduleConvertResultSchema.extend({
|
|
|
12986
13013
|
importResiduals: import_zod.z.array(importResidualSchema)
|
|
12987
13014
|
});
|
|
12988
13015
|
var artifactRefSchema = import_zod.z.object({ url: import_zod.z.string(), key: import_zod.z.string() });
|
|
12989
|
-
var runPlanSchema =
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
13016
|
+
var runPlanSchema = reads()(
|
|
13017
|
+
import_zod.z.object({
|
|
13018
|
+
runId: import_zod.z.string(),
|
|
13019
|
+
status: import_zod.z.string().nullable(),
|
|
13020
|
+
// The counts the Run recorded, each null for a Run whose plan has none.
|
|
13021
|
+
summary: import_zod.z.object({
|
|
13022
|
+
resourceAdd: import_zod.z.number().nullable(),
|
|
13023
|
+
resourceChange: import_zod.z.number().nullable(),
|
|
13024
|
+
resourceDestroy: import_zod.z.number().nullable()
|
|
13025
|
+
}).nullable(),
|
|
13026
|
+
planHuman: artifactRefSchema.nullable()
|
|
13027
|
+
})
|
|
13028
|
+
);
|
|
12995
13029
|
var runLogsEventSchema = import_zod.z.discriminatedUnion("type", [
|
|
12996
13030
|
import_zod.z.object({ type: import_zod.z.literal("log"), text: import_zod.z.string() }),
|
|
12997
13031
|
import_zod.z.object({ type: import_zod.z.literal("result"), status: import_zod.z.string().nullable() })
|
|
12998
13032
|
]);
|
|
12999
|
-
var whoamiSchema =
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13033
|
+
var whoamiSchema = reads()(
|
|
13034
|
+
import_zod.z.object({
|
|
13035
|
+
organization: import_zod.z.string().nullable(),
|
|
13036
|
+
// A machine credential's principal names no person.
|
|
13037
|
+
user: import_zod.z.object({ email: import_zod.z.string(), id: import_zod.z.string(), name: import_zod.z.string() }).optional()
|
|
13038
|
+
})
|
|
13039
|
+
);
|
|
13003
13040
|
var orgListSchema = import_zod.z.object({
|
|
13004
13041
|
items: import_zod.z.array(import_zod.z.object({ slug: import_zod.z.string(), name: import_zod.z.string(), role: import_zod.z.string() }))
|
|
13005
13042
|
});
|
|
13006
|
-
var teamListSchema =
|
|
13007
|
-
|
|
13008
|
-
import_zod.z.
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13043
|
+
var teamListSchema = reads()(
|
|
13044
|
+
import_zod.z.object({
|
|
13045
|
+
items: import_zod.z.array(
|
|
13046
|
+
import_zod.z.object({
|
|
13047
|
+
id: import_zod.z.string(),
|
|
13048
|
+
orgId: import_zod.z.string(),
|
|
13049
|
+
name: import_zod.z.string(),
|
|
13050
|
+
slug: import_zod.z.string(),
|
|
13051
|
+
description: import_zod.z.string().nullish(),
|
|
13052
|
+
createdBy: import_zod.z.string(),
|
|
13053
|
+
createdAt: import_zod.z.string(),
|
|
13054
|
+
updatedAt: import_zod.z.string(),
|
|
13055
|
+
role: import_zod.z.string().optional(),
|
|
13056
|
+
memberCount: import_zod.z.number().optional()
|
|
13057
|
+
})
|
|
13058
|
+
),
|
|
13059
|
+
nextCursor: import_zod.z.string().nullable(),
|
|
13060
|
+
hasMore: import_zod.z.boolean(),
|
|
13061
|
+
createUrl: import_zod.z.string()
|
|
13062
|
+
})
|
|
13063
|
+
);
|
|
13025
13064
|
var connectionListSchema = import_zod.z.object({
|
|
13026
13065
|
items: import_zod.z.array(
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13066
|
+
reads()(
|
|
13067
|
+
import_zod.z.object({
|
|
13068
|
+
id: import_zod.z.string(),
|
|
13069
|
+
name: import_zod.z.string(),
|
|
13070
|
+
provider_type: import_zod.z.string(),
|
|
13071
|
+
status: import_zod.z.string(),
|
|
13072
|
+
status_reason: import_zod.z.string().nullable(),
|
|
13073
|
+
created_at: import_zod.z.string(),
|
|
13074
|
+
updated_at: import_zod.z.string(),
|
|
13075
|
+
metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
|
|
13076
|
+
})
|
|
13077
|
+
)
|
|
13037
13078
|
),
|
|
13038
13079
|
createUrl: import_zod.z.string()
|
|
13039
13080
|
});
|
|
@@ -14745,6 +14786,24 @@ function createActionRunner(ports, store, options = {}) {
|
|
|
14745
14786
|
};
|
|
14746
14787
|
}
|
|
14747
14788
|
|
|
14789
|
+
// src/generated/stack-slug.ts
|
|
14790
|
+
var STACK_SLUG_PATTERN = "^[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$";
|
|
14791
|
+
var STACK_SLUG_DESCRIPTION = "Slug must be 1-63 characters of lowercase letters, digits and hyphens, starting with a letter and not ending with a hyphen";
|
|
14792
|
+
|
|
14793
|
+
// src/core/stack-slug.ts
|
|
14794
|
+
var stackSlugRule = {
|
|
14795
|
+
pattern: new RegExp(STACK_SLUG_PATTERN),
|
|
14796
|
+
description: STACK_SLUG_DESCRIPTION
|
|
14797
|
+
};
|
|
14798
|
+
function proposeStackSlug(folder) {
|
|
14799
|
+
const slug = folder.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^[^a-z]+/, "");
|
|
14800
|
+
for (let end = slug.length; end > 0; end--) {
|
|
14801
|
+
const prefix = slug.slice(0, end);
|
|
14802
|
+
if (stackSlugRule.pattern.test(prefix)) return prefix;
|
|
14803
|
+
}
|
|
14804
|
+
return "";
|
|
14805
|
+
}
|
|
14806
|
+
|
|
14748
14807
|
// src/engine/autosave.ts
|
|
14749
14808
|
var AutosaveEndedError = class extends Error {
|
|
14750
14809
|
constructor(reason) {
|
|
@@ -14874,6 +14933,7 @@ function autosave(source, save, policy, report) {
|
|
|
14874
14933
|
openEngineSession,
|
|
14875
14934
|
parseBound,
|
|
14876
14935
|
parseCommandFailure,
|
|
14936
|
+
proposeStackSlug,
|
|
14877
14937
|
reasonWire,
|
|
14878
14938
|
reduceFollow,
|
|
14879
14939
|
reducePreview,
|
|
@@ -14881,6 +14941,7 @@ function autosave(source, save, policy, report) {
|
|
|
14881
14941
|
reduceRun,
|
|
14882
14942
|
reportDiagnostics,
|
|
14883
14943
|
settleRun,
|
|
14944
|
+
stackSlugRule,
|
|
14884
14945
|
toArgv,
|
|
14885
14946
|
uniqueDiagnostics
|
|
14886
14947
|
});
|