@lace-cloud/canvas 0.32.1 → 0.33.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/{chunk-J5BZ7EOQ.mjs → chunk-45HRNFCU.mjs} +224 -188
- package/dist/{chunk-J5BZ7EOQ.mjs.map → chunk-45HRNFCU.mjs.map} +1 -1
- package/dist/engine/index.cjs +223 -187
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +1 -1
- package/dist/index.cjs +223 -187
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{registry-BLwYarIE.d.mts → registry-C-aNjCYV.d.mts} +21 -16
- package/dist/{registry-BLwYarIE.d.ts → registry-C-aNjCYV.d.ts} +21 -16
- package/package.json +10 -5
|
@@ -12427,6 +12427,9 @@ function completeArgs(path, partial) {
|
|
|
12427
12427
|
|
|
12428
12428
|
// src/contracts/schemas.ts
|
|
12429
12429
|
import { z } from "zod";
|
|
12430
|
+
function reads() {
|
|
12431
|
+
return (schema) => schema;
|
|
12432
|
+
}
|
|
12430
12433
|
var REASON_PREFIX = "REASON_";
|
|
12431
12434
|
function reasonWire(reason) {
|
|
12432
12435
|
return reasonToJSON(reason).slice(REASON_PREFIX.length).toLowerCase();
|
|
@@ -12475,10 +12478,11 @@ var commandDiagnosticSchema = z.object({
|
|
|
12475
12478
|
line: z.number().optional(),
|
|
12476
12479
|
column: z.number().optional()
|
|
12477
12480
|
});
|
|
12481
|
+
var VERDICTS = ["already-lace-style", "convertible", "uncomposable", "lossy"];
|
|
12478
12482
|
var moduleValidateResultSchema = z.object({
|
|
12479
12483
|
root: z.string().min(1).optional(),
|
|
12480
12484
|
treeHash: z.string().min(1).optional(),
|
|
12481
|
-
verdict: z.enum(
|
|
12485
|
+
verdict: z.enum(VERDICTS).optional(),
|
|
12482
12486
|
residuals: z.array(
|
|
12483
12487
|
z.object({
|
|
12484
12488
|
construct: z.string(),
|
|
@@ -12612,7 +12616,7 @@ var registryDescribeSchema = z.object({
|
|
|
12612
12616
|
version: z.string(),
|
|
12613
12617
|
source: z.string(),
|
|
12614
12618
|
treeHash: z.string(),
|
|
12615
|
-
verdict: z.
|
|
12619
|
+
verdict: z.enum(VERDICTS),
|
|
12616
12620
|
interface: z.object({
|
|
12617
12621
|
inputs: z.array(
|
|
12618
12622
|
z.object({
|
|
@@ -12636,39 +12640,41 @@ var stackSourceSchema = z.object({
|
|
|
12636
12640
|
ref: z.string().optional(),
|
|
12637
12641
|
path: z.string().optional()
|
|
12638
12642
|
});
|
|
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
|
-
})
|
|
12643
|
+
var stackSchema = reads()(
|
|
12644
|
+
z.object({
|
|
12645
|
+
id: z.string(),
|
|
12646
|
+
orgId: z.string(),
|
|
12647
|
+
teamId: z.string(),
|
|
12648
|
+
connectionId: z.string(),
|
|
12649
|
+
slug: z.string(),
|
|
12650
|
+
name: z.string(),
|
|
12651
|
+
description: z.string().nullable(),
|
|
12652
|
+
source: stackSourceSchema.nullable(),
|
|
12653
|
+
stateSerial: z.number(),
|
|
12654
|
+
stateLineage: z.string().nullable(),
|
|
12655
|
+
stateVersion: z.number().nullable(),
|
|
12656
|
+
stateLastWrittenAt: z.string().nullable(),
|
|
12657
|
+
lastAppliedRunId: z.string().nullable(),
|
|
12658
|
+
lastDriftScanAt: z.string().nullable(),
|
|
12659
|
+
lastDriftStatus: z.string().nullable(),
|
|
12660
|
+
lastDriftCount: z.number(),
|
|
12661
|
+
lastDriftStale: z.boolean(),
|
|
12662
|
+
lastDriftConfirmedAt: z.string().nullable(),
|
|
12663
|
+
lastDriftUndeterminedReason: z.string().nullable(),
|
|
12664
|
+
createdBy: z.string(),
|
|
12665
|
+
createdAt: z.string(),
|
|
12666
|
+
updatedAt: z.string(),
|
|
12667
|
+
archivedAt: z.string().nullable(),
|
|
12668
|
+
connection: z.object({ name: z.string(), provider: z.string(), awsAccountId: z.string().nullable() }).nullable(),
|
|
12669
|
+
createdByName: z.string().nullable(),
|
|
12670
|
+
lastApply: z.object({
|
|
12671
|
+
runId: z.string(),
|
|
12672
|
+
bundleSnapshotId: z.string(),
|
|
12673
|
+
completedAt: z.string().nullable(),
|
|
12674
|
+
initiatedByName: z.string().nullable()
|
|
12675
|
+
}).nullable()
|
|
12676
|
+
})
|
|
12677
|
+
);
|
|
12672
12678
|
var stackListSchema = z.object({
|
|
12673
12679
|
items: z.array(stackSchema),
|
|
12674
12680
|
nextCursor: z.string().nullable(),
|
|
@@ -12681,29 +12687,39 @@ var driftedResourceSchema = z.object({
|
|
|
12681
12687
|
details: z.string().optional(),
|
|
12682
12688
|
goldenAttributes: z.record(z.string(), z.unknown()),
|
|
12683
12689
|
liveProperties: z.record(z.string(), z.unknown()),
|
|
12684
|
-
diff: z.array(
|
|
12690
|
+
diff: z.array(
|
|
12691
|
+
z.object({
|
|
12692
|
+
path: z.string(),
|
|
12693
|
+
declared: z.unknown().optional(),
|
|
12694
|
+
detected: z.unknown().optional()
|
|
12695
|
+
})
|
|
12696
|
+
),
|
|
12685
12697
|
findingId: z.string().nullable()
|
|
12686
12698
|
});
|
|
12687
|
-
var driftSchema =
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
})
|
|
12699
|
+
var driftSchema = reads()(
|
|
12700
|
+
z.object({
|
|
12701
|
+
stackId: z.string(),
|
|
12702
|
+
scannedAt: z.string(),
|
|
12703
|
+
driftStatus: z.literal("DRIFTED"),
|
|
12704
|
+
totalResources: z.number(),
|
|
12705
|
+
stateSerial: z.number(),
|
|
12706
|
+
driftedResources: z.array(driftedResourceSchema)
|
|
12707
|
+
}).nullable()
|
|
12708
|
+
);
|
|
12709
|
+
var stackDescribeSchema = reads()(
|
|
12710
|
+
z.object({
|
|
12711
|
+
stack: stackSchema.nullable(),
|
|
12712
|
+
state: z.object({
|
|
12713
|
+
serial: z.number(),
|
|
12714
|
+
lineage: z.string(),
|
|
12715
|
+
terraformVersion: z.string(),
|
|
12716
|
+
resourceCount: z.number(),
|
|
12717
|
+
resourcesByType: z.record(z.string(), z.number()),
|
|
12718
|
+
resources: z.array(z.object({ address: z.string(), type: z.string() }))
|
|
12719
|
+
}).nullable(),
|
|
12720
|
+
drift: driftSchema
|
|
12721
|
+
})
|
|
12722
|
+
);
|
|
12707
12723
|
var policySummarySchema = z.object({
|
|
12708
12724
|
policyId: z.string(),
|
|
12709
12725
|
name: z.string(),
|
|
@@ -12711,77 +12727,81 @@ var policySummarySchema = z.object({
|
|
|
12711
12727
|
approvalMode: z.string().nullable(),
|
|
12712
12728
|
ruleIds: z.array(z.string())
|
|
12713
12729
|
});
|
|
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
|
-
|
|
12730
|
+
var policyListSchema = reads()(
|
|
12731
|
+
z.object({
|
|
12732
|
+
stack: z.string().nullable(),
|
|
12733
|
+
policies: z.array(policySummarySchema)
|
|
12734
|
+
})
|
|
12735
|
+
);
|
|
12736
|
+
var runSchema = reads()(
|
|
12737
|
+
z.object({
|
|
12738
|
+
id: z.string(),
|
|
12739
|
+
stackId: z.string(),
|
|
12740
|
+
orgId: z.string(),
|
|
12741
|
+
teamId: z.string(),
|
|
12742
|
+
kind: z.string(),
|
|
12743
|
+
status: z.string(),
|
|
12744
|
+
initiatedByUserId: z.string().nullable(),
|
|
12745
|
+
initiatedVia: z.string(),
|
|
12746
|
+
runnerIdentity: z.string().nullable(),
|
|
12747
|
+
runnerLocation: z.string().nullable(),
|
|
12748
|
+
bundleSnapshotId: z.string().nullable(),
|
|
12749
|
+
sourceCommitSha: z.string().nullable(),
|
|
12750
|
+
sourceRef: z.string().nullable(),
|
|
12751
|
+
sourcePrUrl: z.string().nullable(),
|
|
12752
|
+
sourceOverride: z.boolean(),
|
|
12753
|
+
planResourceAdd: z.number().nullable(),
|
|
12754
|
+
planResourceChange: z.number().nullable(),
|
|
12755
|
+
planResourceDestroy: z.number().nullable(),
|
|
12756
|
+
planLocation: z.string().nullable(),
|
|
12757
|
+
planHumanLocation: z.string().nullable(),
|
|
12758
|
+
applyLogLocation: z.string().nullable(),
|
|
12759
|
+
policyResultsLocation: z.string().nullable(),
|
|
12760
|
+
policyPassed: z.boolean().nullable(),
|
|
12761
|
+
policyResolution: z.unknown().nullable(),
|
|
12762
|
+
changeRequestId: z.string().nullable(),
|
|
12763
|
+
cancelReason: z.string().nullable(),
|
|
12764
|
+
startedAt: z.string().nullable(),
|
|
12765
|
+
completedAt: z.string().nullable(),
|
|
12766
|
+
errorMessage: z.string().nullable(),
|
|
12767
|
+
sourceTreeHash: z.string().nullable(),
|
|
12768
|
+
attestationStatus: z.string().nullable(),
|
|
12769
|
+
attestedAt: z.string().nullable(),
|
|
12770
|
+
attestation: z.string().nullable(),
|
|
12771
|
+
createdAt: z.string(),
|
|
12772
|
+
updatedAt: z.string(),
|
|
12773
|
+
// The run's page in the portal. The CLI builds it on every Run it prints
|
|
12774
|
+
// (apps/cli/internal/kernel/api/runs.go, from the configured base URL and the
|
|
12775
|
+
// selected organization and team); the API's own record carries none, so
|
|
12776
|
+
// a portal mount reading the API body sees it absent — optional so both
|
|
12777
|
+
// bodies parse. A host opens this link and never composes a portal route.
|
|
12778
|
+
url: z.string().optional(),
|
|
12779
|
+
// The provider versions the Run's lockfile pins, each with the
|
|
12780
|
+
// organization's admission it ran under when the version is one admitted
|
|
12781
|
+
// outside the curated range. A single-run read carries it; a list does
|
|
12782
|
+
// not, and the CLI omits an empty one.
|
|
12783
|
+
providers: z.array(
|
|
12784
|
+
z.object({
|
|
12785
|
+
address: z.string(),
|
|
12786
|
+
version: z.string(),
|
|
12787
|
+
admission: z.object({
|
|
12788
|
+
id: z.string(),
|
|
12789
|
+
admittedBy: z.string(),
|
|
12790
|
+
admittedByName: z.string().nullable(),
|
|
12791
|
+
admittedAt: z.string()
|
|
12792
|
+
}).optional()
|
|
12793
|
+
})
|
|
12794
|
+
).optional(),
|
|
12795
|
+
// The CLI's own `api.Run` decode struct (apps/cli/internal/kernel/api/runs.go) has no
|
|
12796
|
+
// json tag for these, so every CLI JSON golden omits them; the API always sends
|
|
12797
|
+
// them (apps/api/src/verticals/runs/routes/schemas/runs.ts) — optional so both bodies parse.
|
|
12798
|
+
keepStack: z.boolean().optional(),
|
|
12799
|
+
version: z.number().optional(),
|
|
12800
|
+
lastHeartbeatAt: z.string().nullable().optional(),
|
|
12801
|
+
initiatedByName: z.string().nullable().optional(),
|
|
12802
|
+
stackName: z.string().nullable().optional()
|
|
12803
|
+
})
|
|
12804
|
+
);
|
|
12785
12805
|
var runListSchema = z.object({
|
|
12786
12806
|
items: z.array(runSchema),
|
|
12787
12807
|
nextCursor: z.string().nullable(),
|
|
@@ -12832,27 +12852,29 @@ var stackPreviewSchema = z.object({
|
|
|
12832
12852
|
stack: stackIdentSchema,
|
|
12833
12853
|
treeHash: z.string(),
|
|
12834
12854
|
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
|
-
|
|
12855
|
+
policy: reads()(
|
|
12856
|
+
z.object({
|
|
12857
|
+
mode: z.string(),
|
|
12858
|
+
policyId: z.string(),
|
|
12859
|
+
ruleId: z.string(),
|
|
12860
|
+
rulesFired: z.array(z.string()),
|
|
12861
|
+
reason: z.string(),
|
|
12862
|
+
approvalMode: z.string().nullable(),
|
|
12863
|
+
isAuthoringTimePreview: z.boolean(),
|
|
12864
|
+
bindings: z.array(
|
|
12865
|
+
z.object({
|
|
12866
|
+
policyId: z.string(),
|
|
12867
|
+
name: z.string(),
|
|
12868
|
+
handler: z.string(),
|
|
12869
|
+
mode: z.string(),
|
|
12870
|
+
decision: z.string(),
|
|
12871
|
+
reason: z.string(),
|
|
12872
|
+
rulesFired: z.array(z.string()),
|
|
12873
|
+
approvalMode: z.string().nullable()
|
|
12874
|
+
})
|
|
12875
|
+
)
|
|
12876
|
+
}).nullable()
|
|
12877
|
+
),
|
|
12856
12878
|
// What the Preview shows of the Agents bound at it: the curated queue of
|
|
12857
12879
|
// their Advisories about this tree, how many were recorded under the
|
|
12858
12880
|
// Preview's floor, how many bound Agents have not answered, and how many
|
|
@@ -12930,54 +12952,68 @@ var moduleImportSchema = moduleConvertResultSchema.extend({
|
|
|
12930
12952
|
importResiduals: z.array(importResidualSchema)
|
|
12931
12953
|
});
|
|
12932
12954
|
var artifactRefSchema = z.object({ url: z.string(), key: z.string() });
|
|
12933
|
-
var runPlanSchema =
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12955
|
+
var runPlanSchema = reads()(
|
|
12956
|
+
z.object({
|
|
12957
|
+
runId: z.string(),
|
|
12958
|
+
status: z.string().nullable(),
|
|
12959
|
+
// The counts the Run recorded, each null for a Run whose plan has none.
|
|
12960
|
+
summary: z.object({
|
|
12961
|
+
resourceAdd: z.number().nullable(),
|
|
12962
|
+
resourceChange: z.number().nullable(),
|
|
12963
|
+
resourceDestroy: z.number().nullable()
|
|
12964
|
+
}).nullable(),
|
|
12965
|
+
planHuman: artifactRefSchema.nullable()
|
|
12966
|
+
})
|
|
12967
|
+
);
|
|
12939
12968
|
var runLogsEventSchema = z.discriminatedUnion("type", [
|
|
12940
12969
|
z.object({ type: z.literal("log"), text: z.string() }),
|
|
12941
12970
|
z.object({ type: z.literal("result"), status: z.string().nullable() })
|
|
12942
12971
|
]);
|
|
12943
|
-
var whoamiSchema =
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12972
|
+
var whoamiSchema = reads()(
|
|
12973
|
+
z.object({
|
|
12974
|
+
organization: z.string().nullable(),
|
|
12975
|
+
// A machine credential's principal names no person.
|
|
12976
|
+
user: z.object({ email: z.string(), id: z.string(), name: z.string() }).optional()
|
|
12977
|
+
})
|
|
12978
|
+
);
|
|
12947
12979
|
var orgListSchema = z.object({
|
|
12948
12980
|
items: z.array(z.object({ slug: z.string(), name: z.string(), role: z.string() }))
|
|
12949
12981
|
});
|
|
12950
|
-
var teamListSchema =
|
|
12951
|
-
|
|
12952
|
-
z.
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12982
|
+
var teamListSchema = reads()(
|
|
12983
|
+
z.object({
|
|
12984
|
+
items: z.array(
|
|
12985
|
+
z.object({
|
|
12986
|
+
id: z.string(),
|
|
12987
|
+
orgId: z.string(),
|
|
12988
|
+
name: z.string(),
|
|
12989
|
+
slug: z.string(),
|
|
12990
|
+
description: z.string().nullish(),
|
|
12991
|
+
createdBy: z.string(),
|
|
12992
|
+
createdAt: z.string(),
|
|
12993
|
+
updatedAt: z.string(),
|
|
12994
|
+
role: z.string().optional(),
|
|
12995
|
+
memberCount: z.number().optional()
|
|
12996
|
+
})
|
|
12997
|
+
),
|
|
12998
|
+
nextCursor: z.string().nullable(),
|
|
12999
|
+
hasMore: z.boolean(),
|
|
13000
|
+
createUrl: z.string()
|
|
13001
|
+
})
|
|
13002
|
+
);
|
|
12969
13003
|
var connectionListSchema = z.object({
|
|
12970
13004
|
items: z.array(
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
13005
|
+
reads()(
|
|
13006
|
+
z.object({
|
|
13007
|
+
id: z.string(),
|
|
13008
|
+
name: z.string(),
|
|
13009
|
+
provider_type: z.string(),
|
|
13010
|
+
status: z.string(),
|
|
13011
|
+
status_reason: z.string().nullable(),
|
|
13012
|
+
created_at: z.string(),
|
|
13013
|
+
updated_at: z.string(),
|
|
13014
|
+
metadata: z.record(z.string(), z.unknown())
|
|
13015
|
+
})
|
|
13016
|
+
)
|
|
12981
13017
|
),
|
|
12982
13018
|
createUrl: z.string()
|
|
12983
13019
|
});
|
|
@@ -14893,4 +14929,4 @@ export {
|
|
|
14893
14929
|
AutosaveEndedError,
|
|
14894
14930
|
autosave
|
|
14895
14931
|
};
|
|
14896
|
-
//# sourceMappingURL=chunk-
|
|
14932
|
+
//# sourceMappingURL=chunk-45HRNFCU.mjs.map
|