@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
|
@@ -14,34 +14,32 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/* ── Pin handles (Blender-style typed I/O) ──
|
|
17
|
-
* Colors are set per-pin via inline style (pinColor.ts maps type →
|
|
17
|
+
* Colors are set per-pin via inline style (pinColor.ts maps type → token)
|
|
18
|
+
* and drawn at full strength, so a ring shows the contrast its token states.
|
|
18
19
|
* The shared rules cover geometry and hover/connecting states. */
|
|
19
20
|
|
|
20
21
|
.lace-pin-handle {
|
|
21
22
|
border-radius: var(--lace-radius-pill);
|
|
22
|
-
|
|
23
|
-
transition:
|
|
24
|
-
opacity var(--lace-duration-fast) var(--lace-easing-standard),
|
|
25
|
-
transform var(--lace-duration-fast) var(--lace-easing-standard);
|
|
23
|
+
transition: transform var(--lace-duration-fast) var(--lace-easing-standard);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
.lace-pin-handle:hover {
|
|
29
|
-
opacity: 1;
|
|
30
27
|
transform: scale(1.25);
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
.react-flow__handle.lace-pin-handle.connectingfrom,
|
|
34
31
|
.react-flow__handle.lace-pin-handle.connectingto {
|
|
35
|
-
opacity: 1;
|
|
36
32
|
transform: scale(1.35);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
/* ── Edges ──
|
|
40
36
|
* Default edges use the brand green. Selected edges get a brighter
|
|
41
37
|
* stroke + drop-shadow so the user can see what will be deleted on
|
|
42
|
-
* keypress.
|
|
38
|
+
* keypress. The rules style the drawn path alone: the edge's transparent
|
|
39
|
+
* interaction path keeps its wide stroke, which is where a click selects
|
|
40
|
+
* the wire. */
|
|
43
41
|
|
|
44
|
-
.react-flow__edge path {
|
|
42
|
+
.react-flow__edge .react-flow__edge-path {
|
|
45
43
|
stroke: var(--lace-canvas-edge-stroke);
|
|
46
44
|
stroke-width: var(--lace-canvas-edge-stroke-width);
|
|
47
45
|
transition:
|
|
@@ -50,13 +48,13 @@
|
|
|
50
48
|
filter var(--lace-duration-fast) var(--lace-easing-standard);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
.react-flow__edge.selected path {
|
|
51
|
+
.react-flow__edge.selected .react-flow__edge-path {
|
|
54
52
|
stroke: var(--lace-canvas-edge-stroke-selected);
|
|
55
53
|
stroke-width: var(--lace-canvas-edge-stroke-width-selected);
|
|
56
54
|
filter: drop-shadow(0 0 4px var(--lace-color-green-alpha-60));
|
|
57
55
|
}
|
|
58
56
|
|
|
59
|
-
.react-flow__edge:hover path {
|
|
57
|
+
.react-flow__edge:hover .react-flow__edge-path {
|
|
60
58
|
stroke: var(--lace-canvas-edge-stroke-selected);
|
|
61
59
|
stroke-width: 2px;
|
|
62
60
|
}
|
|
@@ -12232,6 +12232,9 @@ var COMMANDS = {
|
|
|
12232
12232
|
],
|
|
12233
12233
|
"short": "o"
|
|
12234
12234
|
},
|
|
12235
|
+
"source": {
|
|
12236
|
+
"type": "string"
|
|
12237
|
+
},
|
|
12235
12238
|
"sourcePath": {
|
|
12236
12239
|
"type": "string"
|
|
12237
12240
|
},
|
|
@@ -12427,6 +12430,9 @@ function completeArgs(path, partial) {
|
|
|
12427
12430
|
|
|
12428
12431
|
// src/contracts/schemas.ts
|
|
12429
12432
|
import { z } from "zod";
|
|
12433
|
+
function reads() {
|
|
12434
|
+
return (schema) => schema;
|
|
12435
|
+
}
|
|
12430
12436
|
var REASON_PREFIX = "REASON_";
|
|
12431
12437
|
function reasonWire(reason) {
|
|
12432
12438
|
return reasonToJSON(reason).slice(REASON_PREFIX.length).toLowerCase();
|
|
@@ -12475,10 +12481,11 @@ var commandDiagnosticSchema = z.object({
|
|
|
12475
12481
|
line: z.number().optional(),
|
|
12476
12482
|
column: z.number().optional()
|
|
12477
12483
|
});
|
|
12484
|
+
var VERDICTS = ["already-lace-style", "convertible", "uncomposable", "lossy"];
|
|
12478
12485
|
var moduleValidateResultSchema = z.object({
|
|
12479
12486
|
root: z.string().min(1).optional(),
|
|
12480
12487
|
treeHash: z.string().min(1).optional(),
|
|
12481
|
-
verdict: z.enum(
|
|
12488
|
+
verdict: z.enum(VERDICTS).optional(),
|
|
12482
12489
|
residuals: z.array(
|
|
12483
12490
|
z.object({
|
|
12484
12491
|
construct: z.string(),
|
|
@@ -12612,7 +12619,7 @@ var registryDescribeSchema = z.object({
|
|
|
12612
12619
|
version: z.string(),
|
|
12613
12620
|
source: z.string(),
|
|
12614
12621
|
treeHash: z.string(),
|
|
12615
|
-
verdict: z.
|
|
12622
|
+
verdict: z.enum(VERDICTS),
|
|
12616
12623
|
interface: z.object({
|
|
12617
12624
|
inputs: z.array(
|
|
12618
12625
|
z.object({
|
|
@@ -12636,39 +12643,41 @@ var stackSourceSchema = z.object({
|
|
|
12636
12643
|
ref: z.string().optional(),
|
|
12637
12644
|
path: z.string().optional()
|
|
12638
12645
|
});
|
|
12639
|
-
var stackSchema =
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
})
|
|
12646
|
+
var stackSchema = reads()(
|
|
12647
|
+
z.object({
|
|
12648
|
+
id: z.string(),
|
|
12649
|
+
orgId: z.string(),
|
|
12650
|
+
teamId: z.string(),
|
|
12651
|
+
connectionId: z.string(),
|
|
12652
|
+
slug: z.string(),
|
|
12653
|
+
name: z.string(),
|
|
12654
|
+
description: z.string().nullable(),
|
|
12655
|
+
source: stackSourceSchema.nullable(),
|
|
12656
|
+
stateSerial: z.number(),
|
|
12657
|
+
stateLineage: z.string().nullable(),
|
|
12658
|
+
stateVersion: z.number().nullable(),
|
|
12659
|
+
stateLastWrittenAt: z.string().nullable(),
|
|
12660
|
+
lastAppliedRunId: z.string().nullable(),
|
|
12661
|
+
lastDriftScanAt: z.string().nullable(),
|
|
12662
|
+
lastDriftStatus: z.string().nullable(),
|
|
12663
|
+
lastDriftCount: z.number(),
|
|
12664
|
+
lastDriftStale: z.boolean(),
|
|
12665
|
+
lastDriftConfirmedAt: z.string().nullable(),
|
|
12666
|
+
lastDriftUndeterminedReason: z.string().nullable(),
|
|
12667
|
+
createdBy: z.string(),
|
|
12668
|
+
createdAt: z.string(),
|
|
12669
|
+
updatedAt: z.string(),
|
|
12670
|
+
archivedAt: z.string().nullable(),
|
|
12671
|
+
connection: z.object({ name: z.string(), provider: z.string(), awsAccountId: z.string().nullable() }).nullable(),
|
|
12672
|
+
createdByName: z.string().nullable(),
|
|
12673
|
+
lastApply: z.object({
|
|
12674
|
+
runId: z.string(),
|
|
12675
|
+
bundleSnapshotId: z.string(),
|
|
12676
|
+
completedAt: z.string().nullable(),
|
|
12677
|
+
initiatedByName: z.string().nullable()
|
|
12678
|
+
}).nullable()
|
|
12679
|
+
})
|
|
12680
|
+
);
|
|
12672
12681
|
var stackListSchema = z.object({
|
|
12673
12682
|
items: z.array(stackSchema),
|
|
12674
12683
|
nextCursor: z.string().nullable(),
|
|
@@ -12681,29 +12690,39 @@ var driftedResourceSchema = z.object({
|
|
|
12681
12690
|
details: z.string().optional(),
|
|
12682
12691
|
goldenAttributes: z.record(z.string(), z.unknown()),
|
|
12683
12692
|
liveProperties: z.record(z.string(), z.unknown()),
|
|
12684
|
-
diff: z.array(
|
|
12693
|
+
diff: z.array(
|
|
12694
|
+
z.object({
|
|
12695
|
+
path: z.string(),
|
|
12696
|
+
declared: z.unknown().optional(),
|
|
12697
|
+
detected: z.unknown().optional()
|
|
12698
|
+
})
|
|
12699
|
+
),
|
|
12685
12700
|
findingId: z.string().nullable()
|
|
12686
12701
|
});
|
|
12687
|
-
var driftSchema =
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
})
|
|
12702
|
+
var driftSchema = reads()(
|
|
12703
|
+
z.object({
|
|
12704
|
+
stackId: z.string(),
|
|
12705
|
+
scannedAt: z.string(),
|
|
12706
|
+
driftStatus: z.literal("DRIFTED"),
|
|
12707
|
+
totalResources: z.number(),
|
|
12708
|
+
stateSerial: z.number(),
|
|
12709
|
+
driftedResources: z.array(driftedResourceSchema)
|
|
12710
|
+
}).nullable()
|
|
12711
|
+
);
|
|
12712
|
+
var stackDescribeSchema = reads()(
|
|
12713
|
+
z.object({
|
|
12714
|
+
stack: stackSchema.nullable(),
|
|
12715
|
+
state: z.object({
|
|
12716
|
+
serial: z.number(),
|
|
12717
|
+
lineage: z.string(),
|
|
12718
|
+
terraformVersion: z.string(),
|
|
12719
|
+
resourceCount: z.number(),
|
|
12720
|
+
resourcesByType: z.record(z.string(), z.number()),
|
|
12721
|
+
resources: z.array(z.object({ address: z.string(), type: z.string() }))
|
|
12722
|
+
}).nullable(),
|
|
12723
|
+
drift: driftSchema
|
|
12724
|
+
})
|
|
12725
|
+
);
|
|
12707
12726
|
var policySummarySchema = z.object({
|
|
12708
12727
|
policyId: z.string(),
|
|
12709
12728
|
name: z.string(),
|
|
@@ -12711,77 +12730,81 @@ var policySummarySchema = z.object({
|
|
|
12711
12730
|
approvalMode: z.string().nullable(),
|
|
12712
12731
|
ruleIds: z.array(z.string())
|
|
12713
12732
|
});
|
|
12714
|
-
var policyListSchema =
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
|
|
12738
|
-
|
|
12739
|
-
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12733
|
+
var policyListSchema = reads()(
|
|
12734
|
+
z.object({
|
|
12735
|
+
stack: z.string().nullable(),
|
|
12736
|
+
policies: z.array(policySummarySchema)
|
|
12737
|
+
})
|
|
12738
|
+
);
|
|
12739
|
+
var runSchema = reads()(
|
|
12740
|
+
z.object({
|
|
12741
|
+
id: z.string(),
|
|
12742
|
+
stackId: z.string(),
|
|
12743
|
+
orgId: z.string(),
|
|
12744
|
+
teamId: z.string(),
|
|
12745
|
+
kind: z.string(),
|
|
12746
|
+
status: z.string(),
|
|
12747
|
+
initiatedByUserId: z.string().nullable(),
|
|
12748
|
+
initiatedVia: z.string(),
|
|
12749
|
+
runnerIdentity: z.string().nullable(),
|
|
12750
|
+
runnerLocation: z.string().nullable(),
|
|
12751
|
+
bundleSnapshotId: z.string().nullable(),
|
|
12752
|
+
sourceCommitSha: z.string().nullable(),
|
|
12753
|
+
sourceRef: z.string().nullable(),
|
|
12754
|
+
sourcePrUrl: z.string().nullable(),
|
|
12755
|
+
sourceOverride: z.boolean(),
|
|
12756
|
+
planResourceAdd: z.number().nullable(),
|
|
12757
|
+
planResourceChange: z.number().nullable(),
|
|
12758
|
+
planResourceDestroy: z.number().nullable(),
|
|
12759
|
+
planLocation: z.string().nullable(),
|
|
12760
|
+
planHumanLocation: z.string().nullable(),
|
|
12761
|
+
applyLogLocation: z.string().nullable(),
|
|
12762
|
+
policyResultsLocation: z.string().nullable(),
|
|
12763
|
+
policyPassed: z.boolean().nullable(),
|
|
12764
|
+
policyResolution: z.unknown().nullable(),
|
|
12765
|
+
changeRequestId: z.string().nullable(),
|
|
12766
|
+
cancelReason: z.string().nullable(),
|
|
12767
|
+
startedAt: z.string().nullable(),
|
|
12768
|
+
completedAt: z.string().nullable(),
|
|
12769
|
+
errorMessage: z.string().nullable(),
|
|
12770
|
+
sourceTreeHash: z.string().nullable(),
|
|
12771
|
+
attestationStatus: z.string().nullable(),
|
|
12772
|
+
attestedAt: z.string().nullable(),
|
|
12773
|
+
attestation: z.string().nullable(),
|
|
12774
|
+
createdAt: z.string(),
|
|
12775
|
+
updatedAt: z.string(),
|
|
12776
|
+
// The run's page in the portal. The CLI builds it on every Run it prints
|
|
12777
|
+
// (apps/cli/internal/kernel/api/runs.go, from the configured base URL and the
|
|
12778
|
+
// selected organization and team); the API's own record carries none, so
|
|
12779
|
+
// a portal mount reading the API body sees it absent — optional so both
|
|
12780
|
+
// bodies parse. A host opens this link and never composes a portal route.
|
|
12781
|
+
url: z.string().optional(),
|
|
12782
|
+
// The provider versions the Run's lockfile pins, each with the
|
|
12783
|
+
// organization's admission it ran under when the version is one admitted
|
|
12784
|
+
// outside the curated range. A single-run read carries it; a list does
|
|
12785
|
+
// not, and the CLI omits an empty one.
|
|
12786
|
+
providers: z.array(
|
|
12787
|
+
z.object({
|
|
12788
|
+
address: z.string(),
|
|
12789
|
+
version: z.string(),
|
|
12790
|
+
admission: z.object({
|
|
12791
|
+
id: z.string(),
|
|
12792
|
+
admittedBy: z.string(),
|
|
12793
|
+
admittedByName: z.string().nullable(),
|
|
12794
|
+
admittedAt: z.string()
|
|
12795
|
+
}).optional()
|
|
12796
|
+
})
|
|
12797
|
+
).optional(),
|
|
12798
|
+
// The CLI's own `api.Run` decode struct (apps/cli/internal/kernel/api/runs.go) has no
|
|
12799
|
+
// json tag for these, so every CLI JSON golden omits them; the API always sends
|
|
12800
|
+
// them (apps/api/src/verticals/runs/routes/schemas/runs.ts) — optional so both bodies parse.
|
|
12801
|
+
keepStack: z.boolean().optional(),
|
|
12802
|
+
version: z.number().optional(),
|
|
12803
|
+
lastHeartbeatAt: z.string().nullable().optional(),
|
|
12804
|
+
initiatedByName: z.string().nullable().optional(),
|
|
12805
|
+
stackName: z.string().nullable().optional()
|
|
12806
|
+
})
|
|
12807
|
+
);
|
|
12785
12808
|
var runListSchema = z.object({
|
|
12786
12809
|
items: z.array(runSchema),
|
|
12787
12810
|
nextCursor: z.string().nullable(),
|
|
@@ -12832,27 +12855,29 @@ var stackPreviewSchema = z.object({
|
|
|
12832
12855
|
stack: stackIdentSchema,
|
|
12833
12856
|
treeHash: z.string(),
|
|
12834
12857
|
plan: z.object({ summary: planSummarySchema, human: z.string() }),
|
|
12835
|
-
policy:
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
z.
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12858
|
+
policy: reads()(
|
|
12859
|
+
z.object({
|
|
12860
|
+
mode: z.string(),
|
|
12861
|
+
policyId: z.string(),
|
|
12862
|
+
ruleId: z.string(),
|
|
12863
|
+
rulesFired: z.array(z.string()),
|
|
12864
|
+
reason: z.string(),
|
|
12865
|
+
approvalMode: z.string().nullable(),
|
|
12866
|
+
isAuthoringTimePreview: z.boolean(),
|
|
12867
|
+
bindings: z.array(
|
|
12868
|
+
z.object({
|
|
12869
|
+
policyId: z.string(),
|
|
12870
|
+
name: z.string(),
|
|
12871
|
+
handler: z.string(),
|
|
12872
|
+
mode: z.string(),
|
|
12873
|
+
decision: z.string(),
|
|
12874
|
+
reason: z.string(),
|
|
12875
|
+
rulesFired: z.array(z.string()),
|
|
12876
|
+
approvalMode: z.string().nullable()
|
|
12877
|
+
})
|
|
12878
|
+
)
|
|
12879
|
+
}).nullable()
|
|
12880
|
+
),
|
|
12856
12881
|
// What the Preview shows of the Agents bound at it: the curated queue of
|
|
12857
12882
|
// their Advisories about this tree, how many were recorded under the
|
|
12858
12883
|
// Preview's floor, how many bound Agents have not answered, and how many
|
|
@@ -12930,54 +12955,68 @@ var moduleImportSchema = moduleConvertResultSchema.extend({
|
|
|
12930
12955
|
importResiduals: z.array(importResidualSchema)
|
|
12931
12956
|
});
|
|
12932
12957
|
var artifactRefSchema = z.object({ url: z.string(), key: z.string() });
|
|
12933
|
-
var runPlanSchema =
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12958
|
+
var runPlanSchema = reads()(
|
|
12959
|
+
z.object({
|
|
12960
|
+
runId: z.string(),
|
|
12961
|
+
status: z.string().nullable(),
|
|
12962
|
+
// The counts the Run recorded, each null for a Run whose plan has none.
|
|
12963
|
+
summary: z.object({
|
|
12964
|
+
resourceAdd: z.number().nullable(),
|
|
12965
|
+
resourceChange: z.number().nullable(),
|
|
12966
|
+
resourceDestroy: z.number().nullable()
|
|
12967
|
+
}).nullable(),
|
|
12968
|
+
planHuman: artifactRefSchema.nullable()
|
|
12969
|
+
})
|
|
12970
|
+
);
|
|
12939
12971
|
var runLogsEventSchema = z.discriminatedUnion("type", [
|
|
12940
12972
|
z.object({ type: z.literal("log"), text: z.string() }),
|
|
12941
12973
|
z.object({ type: z.literal("result"), status: z.string().nullable() })
|
|
12942
12974
|
]);
|
|
12943
|
-
var whoamiSchema =
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12975
|
+
var whoamiSchema = reads()(
|
|
12976
|
+
z.object({
|
|
12977
|
+
organization: z.string().nullable(),
|
|
12978
|
+
// A machine credential's principal names no person.
|
|
12979
|
+
user: z.object({ email: z.string(), id: z.string(), name: z.string() }).optional()
|
|
12980
|
+
})
|
|
12981
|
+
);
|
|
12947
12982
|
var orgListSchema = z.object({
|
|
12948
12983
|
items: z.array(z.object({ slug: z.string(), name: z.string(), role: z.string() }))
|
|
12949
12984
|
});
|
|
12950
|
-
var teamListSchema =
|
|
12951
|
-
|
|
12952
|
-
z.
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12985
|
+
var teamListSchema = reads()(
|
|
12986
|
+
z.object({
|
|
12987
|
+
items: z.array(
|
|
12988
|
+
z.object({
|
|
12989
|
+
id: z.string(),
|
|
12990
|
+
orgId: z.string(),
|
|
12991
|
+
name: z.string(),
|
|
12992
|
+
slug: z.string(),
|
|
12993
|
+
description: z.string().nullish(),
|
|
12994
|
+
createdBy: z.string(),
|
|
12995
|
+
createdAt: z.string(),
|
|
12996
|
+
updatedAt: z.string(),
|
|
12997
|
+
role: z.string().optional(),
|
|
12998
|
+
memberCount: z.number().optional()
|
|
12999
|
+
})
|
|
13000
|
+
),
|
|
13001
|
+
nextCursor: z.string().nullable(),
|
|
13002
|
+
hasMore: z.boolean(),
|
|
13003
|
+
createUrl: z.string()
|
|
13004
|
+
})
|
|
13005
|
+
);
|
|
12969
13006
|
var connectionListSchema = z.object({
|
|
12970
13007
|
items: z.array(
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
13008
|
+
reads()(
|
|
13009
|
+
z.object({
|
|
13010
|
+
id: z.string(),
|
|
13011
|
+
name: z.string(),
|
|
13012
|
+
provider_type: z.string(),
|
|
13013
|
+
status: z.string(),
|
|
13014
|
+
status_reason: z.string().nullable(),
|
|
13015
|
+
created_at: z.string(),
|
|
13016
|
+
updated_at: z.string(),
|
|
13017
|
+
metadata: z.record(z.string(), z.unknown())
|
|
13018
|
+
})
|
|
13019
|
+
)
|
|
12981
13020
|
),
|
|
12982
13021
|
createUrl: z.string()
|
|
12983
13022
|
});
|
|
@@ -14739,6 +14778,24 @@ function createActionRunner(ports, store, options = {}) {
|
|
|
14739
14778
|
};
|
|
14740
14779
|
}
|
|
14741
14780
|
|
|
14781
|
+
// src/generated/stack-slug.ts
|
|
14782
|
+
var STACK_SLUG_PATTERN = "^[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$";
|
|
14783
|
+
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";
|
|
14784
|
+
|
|
14785
|
+
// src/core/stack-slug.ts
|
|
14786
|
+
var stackSlugRule = {
|
|
14787
|
+
pattern: new RegExp(STACK_SLUG_PATTERN),
|
|
14788
|
+
description: STACK_SLUG_DESCRIPTION
|
|
14789
|
+
};
|
|
14790
|
+
function proposeStackSlug(folder) {
|
|
14791
|
+
const slug = folder.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^[^a-z]+/, "");
|
|
14792
|
+
for (let end = slug.length; end > 0; end--) {
|
|
14793
|
+
const prefix = slug.slice(0, end);
|
|
14794
|
+
if (stackSlugRule.pattern.test(prefix)) return prefix;
|
|
14795
|
+
}
|
|
14796
|
+
return "";
|
|
14797
|
+
}
|
|
14798
|
+
|
|
14742
14799
|
// src/engine/autosave.ts
|
|
14743
14800
|
var AutosaveEndedError = class extends Error {
|
|
14744
14801
|
constructor(reason) {
|
|
@@ -14890,7 +14947,9 @@ export {
|
|
|
14890
14947
|
bridgeCaller,
|
|
14891
14948
|
openEngineCommands,
|
|
14892
14949
|
openEngineSession,
|
|
14950
|
+
stackSlugRule,
|
|
14951
|
+
proposeStackSlug,
|
|
14893
14952
|
AutosaveEndedError,
|
|
14894
14953
|
autosave
|
|
14895
14954
|
};
|
|
14896
|
-
//# sourceMappingURL=chunk-
|
|
14955
|
+
//# sourceMappingURL=chunk-5X3CA44U.mjs.map
|