@lace-cloud/canvas 0.27.0 → 0.29.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/README.md +8 -5
- package/dist/{chunk-F3X6TTZ6.mjs → chunk-ASG36ZXQ.mjs} +129 -18
- package/dist/{chunk-F3X6TTZ6.mjs.map → chunk-ASG36ZXQ.mjs.map} +1 -1
- package/dist/engine/index.cjs +129 -17
- 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 +3 -1
- package/dist/index.cjs +139 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-D7G7pqU4.d.mts → registry-CuZ4kEQJ.d.mts} +186 -11
- package/dist/{registry-D7G7pqU4.d.ts → registry-CuZ4kEQJ.d.ts} +186 -11
- package/package.json +3 -3
package/dist/engine/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ActionContribution, S as SourcePort } from '../registry-
|
|
2
|
-
export {
|
|
1
|
+
import { A as ActionContribution, S as SourcePort } from '../registry-CuZ4kEQJ.mjs';
|
|
2
|
+
export { a_ as Action, k as ActionRunner, m as ActionRunnerOptions, f as ActionTarget, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, d as BoundPath, r as BridgeEngineCaller, s as Busy, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, a$ as InputMode, aa as Invocation, J as JsonOf, b0 as LaceReason, b1 as LiveSlots, b2 as OnScreen, c as PendingForm, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, R as ResultStore, ao as RunCtx, ap as RunOutcome, b3 as RunPhase, b4 as RunPhaseStatus, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, i as SourceEnd, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, b5 as diagnosticsOfDocument, b6 as failureSays, aP as foldReport, aQ as isBoundPath, b7 as liveSlots, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, b8 as reasonWire, b9 as reduceFollow, ba as reducePreview, bb as reduceReport, bc as reduceRun, aV as reportDiagnostics, bd as settleRun, aY as toArgv, aZ as uniqueDiagnostics } from '../registry-CuZ4kEQJ.mjs';
|
|
3
3
|
import '@lace-cloud/proto';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@bufbuild/protobuf/wire';
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ActionContribution, S as SourcePort } from '../registry-
|
|
2
|
-
export {
|
|
1
|
+
import { A as ActionContribution, S as SourcePort } from '../registry-CuZ4kEQJ.js';
|
|
2
|
+
export { a_ as Action, k as ActionRunner, m as ActionRunnerOptions, f as ActionTarget, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, d as BoundPath, r as BridgeEngineCaller, s as Busy, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, a$ as InputMode, aa as Invocation, J as JsonOf, b0 as LaceReason, b1 as LiveSlots, b2 as OnScreen, c as PendingForm, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, R as ResultStore, ao as RunCtx, ap as RunOutcome, b3 as RunPhase, b4 as RunPhaseStatus, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, i as SourceEnd, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, b5 as diagnosticsOfDocument, b6 as failureSays, aP as foldReport, aQ as isBoundPath, b7 as liveSlots, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, b8 as reasonWire, b9 as reduceFollow, ba as reducePreview, bb as reduceReport, bc as reduceRun, aV as reportDiagnostics, bd as settleRun, aY as toArgv, aZ as uniqueDiagnostics } from '../registry-CuZ4kEQJ.js';
|
|
3
3
|
import '@lace-cloud/proto';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@bufbuild/protobuf/wire';
|
package/dist/engine/index.mjs
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
autosave,
|
|
16
16
|
bridgeCaller,
|
|
17
17
|
carriesFailure,
|
|
18
|
+
commandUnderWay,
|
|
18
19
|
connectCaller,
|
|
19
20
|
createActionRunner,
|
|
20
21
|
createResultStore,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
settleRun,
|
|
40
41
|
toArgv,
|
|
41
42
|
uniqueDiagnostics
|
|
42
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-ASG36ZXQ.mjs";
|
|
43
44
|
export {
|
|
44
45
|
ApplyUnobservedError,
|
|
45
46
|
AutosaveEndedError,
|
|
@@ -57,6 +58,7 @@ export {
|
|
|
57
58
|
autosave,
|
|
58
59
|
bridgeCaller,
|
|
59
60
|
carriesFailure,
|
|
61
|
+
commandUnderWay,
|
|
60
62
|
connectCaller,
|
|
61
63
|
createActionRunner,
|
|
62
64
|
createResultStore,
|
package/dist/index.cjs
CHANGED
|
@@ -59,6 +59,7 @@ __export(index_exports, {
|
|
|
59
59
|
ProvidersPanel: () => ProvidersPanel,
|
|
60
60
|
Reason: () => Reason,
|
|
61
61
|
SCHEMAS: () => SCHEMAS,
|
|
62
|
+
SnapshotFetchError: () => SnapshotFetchError,
|
|
62
63
|
SourceRefusedBanner: () => SourceRefusedBanner,
|
|
63
64
|
TerraformConfigContent: () => TerraformConfigContent,
|
|
64
65
|
TerraformConfigPanel: () => TerraformConfigPanel,
|
|
@@ -69,6 +70,7 @@ __export(index_exports, {
|
|
|
69
70
|
answering: () => answering,
|
|
70
71
|
bridgeCaller: () => bridgeCaller,
|
|
71
72
|
carriesFailure: () => carriesFailure,
|
|
73
|
+
commandUnderWay: () => commandUnderWay,
|
|
72
74
|
conflictPanel: () => conflictPanel,
|
|
73
75
|
connectCaller: () => connectCaller,
|
|
74
76
|
createActionRunner: () => createActionRunner,
|
|
@@ -11324,10 +11326,9 @@ var CommandDetachedError = class extends Error {
|
|
|
11324
11326
|
}
|
|
11325
11327
|
};
|
|
11326
11328
|
var CommandUnobservedError = class extends Error {
|
|
11327
|
-
constructor() {
|
|
11328
|
-
super(
|
|
11329
|
-
|
|
11330
|
-
);
|
|
11329
|
+
constructor(path) {
|
|
11330
|
+
super(`the engine's stream ended before \`lace ${path}\` exited`);
|
|
11331
|
+
this.path = path;
|
|
11331
11332
|
}
|
|
11332
11333
|
};
|
|
11333
11334
|
|
|
@@ -13754,6 +13755,7 @@ var COMMANDS = {
|
|
|
13754
13755
|
"type": "string"
|
|
13755
13756
|
}
|
|
13756
13757
|
},
|
|
13758
|
+
"effect": "write",
|
|
13757
13759
|
"hidden": false,
|
|
13758
13760
|
"yes": false
|
|
13759
13761
|
},
|
|
@@ -13780,6 +13782,7 @@ var COMMANDS = {
|
|
|
13780
13782
|
"type": "string"
|
|
13781
13783
|
}
|
|
13782
13784
|
},
|
|
13785
|
+
"effect": "read",
|
|
13783
13786
|
"hidden": false,
|
|
13784
13787
|
"yes": false
|
|
13785
13788
|
},
|
|
@@ -13804,6 +13807,7 @@ var COMMANDS = {
|
|
|
13804
13807
|
"type": "string"
|
|
13805
13808
|
}
|
|
13806
13809
|
},
|
|
13810
|
+
"effect": "read",
|
|
13807
13811
|
"hidden": false,
|
|
13808
13812
|
"yes": false
|
|
13809
13813
|
},
|
|
@@ -13818,6 +13822,7 @@ var COMMANDS = {
|
|
|
13818
13822
|
"type": "string"
|
|
13819
13823
|
}
|
|
13820
13824
|
},
|
|
13825
|
+
"effect": "write",
|
|
13821
13826
|
"hidden": false,
|
|
13822
13827
|
"yes": false
|
|
13823
13828
|
},
|
|
@@ -13829,6 +13834,7 @@ var COMMANDS = {
|
|
|
13829
13834
|
"type": "string"
|
|
13830
13835
|
}
|
|
13831
13836
|
},
|
|
13837
|
+
"effect": "write",
|
|
13832
13838
|
"hidden": false,
|
|
13833
13839
|
"yes": false
|
|
13834
13840
|
},
|
|
@@ -13840,6 +13846,7 @@ var COMMANDS = {
|
|
|
13840
13846
|
"type": "bool"
|
|
13841
13847
|
}
|
|
13842
13848
|
},
|
|
13849
|
+
"effect": "read",
|
|
13843
13850
|
"hidden": false,
|
|
13844
13851
|
"yes": false
|
|
13845
13852
|
},
|
|
@@ -13867,6 +13874,7 @@ var COMMANDS = {
|
|
|
13867
13874
|
"type": "string"
|
|
13868
13875
|
}
|
|
13869
13876
|
},
|
|
13877
|
+
"effect": "write",
|
|
13870
13878
|
"hidden": false,
|
|
13871
13879
|
"yes": false
|
|
13872
13880
|
},
|
|
@@ -13882,6 +13890,7 @@ var COMMANDS = {
|
|
|
13882
13890
|
]
|
|
13883
13891
|
}
|
|
13884
13892
|
},
|
|
13893
|
+
"effect": "write",
|
|
13885
13894
|
"hidden": false,
|
|
13886
13895
|
"yes": false
|
|
13887
13896
|
},
|
|
@@ -13900,6 +13909,7 @@ var COMMANDS = {
|
|
|
13900
13909
|
"type": "string"
|
|
13901
13910
|
}
|
|
13902
13911
|
},
|
|
13912
|
+
"effect": "rewrite",
|
|
13903
13913
|
"hidden": false,
|
|
13904
13914
|
"yes": false
|
|
13905
13915
|
},
|
|
@@ -13923,6 +13933,7 @@ var COMMANDS = {
|
|
|
13923
13933
|
"type": "string"
|
|
13924
13934
|
}
|
|
13925
13935
|
},
|
|
13936
|
+
"effect": "write",
|
|
13926
13937
|
"hidden": false,
|
|
13927
13938
|
"yes": false
|
|
13928
13939
|
},
|
|
@@ -13950,6 +13961,33 @@ var COMMANDS = {
|
|
|
13950
13961
|
"type": "bool"
|
|
13951
13962
|
}
|
|
13952
13963
|
},
|
|
13964
|
+
"effect": "rewrite",
|
|
13965
|
+
"hidden": false,
|
|
13966
|
+
"yes": false
|
|
13967
|
+
},
|
|
13968
|
+
"module lock": {
|
|
13969
|
+
"path": "module lock",
|
|
13970
|
+
"positionals": [],
|
|
13971
|
+
"flags": {
|
|
13972
|
+
"org": {
|
|
13973
|
+
"type": "string"
|
|
13974
|
+
},
|
|
13975
|
+
"output": {
|
|
13976
|
+
"type": "string",
|
|
13977
|
+
"values": [
|
|
13978
|
+
"table",
|
|
13979
|
+
"json"
|
|
13980
|
+
]
|
|
13981
|
+
},
|
|
13982
|
+
"path": {
|
|
13983
|
+
"type": "string"
|
|
13984
|
+
},
|
|
13985
|
+
"upgrade": {
|
|
13986
|
+
"type": "stringArray",
|
|
13987
|
+
"repeated": true
|
|
13988
|
+
}
|
|
13989
|
+
},
|
|
13990
|
+
"effect": "write",
|
|
13953
13991
|
"hidden": false,
|
|
13954
13992
|
"yes": false
|
|
13955
13993
|
},
|
|
@@ -13984,6 +14022,7 @@ var COMMANDS = {
|
|
|
13984
14022
|
"type": "bool"
|
|
13985
14023
|
}
|
|
13986
14024
|
},
|
|
14025
|
+
"effect": "read",
|
|
13987
14026
|
"hidden": false,
|
|
13988
14027
|
"yes": false
|
|
13989
14028
|
},
|
|
@@ -14012,6 +14051,7 @@ var COMMANDS = {
|
|
|
14012
14051
|
]
|
|
14013
14052
|
}
|
|
14014
14053
|
},
|
|
14054
|
+
"effect": "write",
|
|
14015
14055
|
"hidden": false,
|
|
14016
14056
|
"yes": false
|
|
14017
14057
|
},
|
|
@@ -14027,6 +14067,7 @@ var COMMANDS = {
|
|
|
14027
14067
|
]
|
|
14028
14068
|
}
|
|
14029
14069
|
},
|
|
14070
|
+
"effect": "read",
|
|
14030
14071
|
"hidden": false,
|
|
14031
14072
|
"yes": false
|
|
14032
14073
|
},
|
|
@@ -14042,6 +14083,7 @@ var COMMANDS = {
|
|
|
14042
14083
|
]
|
|
14043
14084
|
}
|
|
14044
14085
|
},
|
|
14086
|
+
"effect": "read",
|
|
14045
14087
|
"hidden": false,
|
|
14046
14088
|
"yes": false
|
|
14047
14089
|
},
|
|
@@ -14062,6 +14104,7 @@ var COMMANDS = {
|
|
|
14062
14104
|
]
|
|
14063
14105
|
}
|
|
14064
14106
|
},
|
|
14107
|
+
"effect": "write",
|
|
14065
14108
|
"hidden": false,
|
|
14066
14109
|
"yes": false
|
|
14067
14110
|
},
|
|
@@ -14088,6 +14131,7 @@ var COMMANDS = {
|
|
|
14088
14131
|
"type": "string"
|
|
14089
14132
|
}
|
|
14090
14133
|
},
|
|
14134
|
+
"effect": "read",
|
|
14091
14135
|
"hidden": false,
|
|
14092
14136
|
"yes": false
|
|
14093
14137
|
},
|
|
@@ -14112,6 +14156,7 @@ var COMMANDS = {
|
|
|
14112
14156
|
"type": "string"
|
|
14113
14157
|
}
|
|
14114
14158
|
},
|
|
14159
|
+
"effect": "read",
|
|
14115
14160
|
"hidden": false,
|
|
14116
14161
|
"yes": false
|
|
14117
14162
|
},
|
|
@@ -14138,6 +14183,7 @@ var COMMANDS = {
|
|
|
14138
14183
|
"type": "string"
|
|
14139
14184
|
}
|
|
14140
14185
|
},
|
|
14186
|
+
"effect": "read",
|
|
14141
14187
|
"hidden": false,
|
|
14142
14188
|
"yes": false
|
|
14143
14189
|
},
|
|
@@ -14167,6 +14213,7 @@ var COMMANDS = {
|
|
|
14167
14213
|
]
|
|
14168
14214
|
}
|
|
14169
14215
|
},
|
|
14216
|
+
"effect": "read",
|
|
14170
14217
|
"hidden": false,
|
|
14171
14218
|
"yes": false
|
|
14172
14219
|
},
|
|
@@ -14209,6 +14256,7 @@ var COMMANDS = {
|
|
|
14209
14256
|
"type": "string"
|
|
14210
14257
|
}
|
|
14211
14258
|
},
|
|
14259
|
+
"effect": "read",
|
|
14212
14260
|
"hidden": false,
|
|
14213
14261
|
"yes": false
|
|
14214
14262
|
},
|
|
@@ -14241,6 +14289,7 @@ var COMMANDS = {
|
|
|
14241
14289
|
"type": "string"
|
|
14242
14290
|
}
|
|
14243
14291
|
},
|
|
14292
|
+
"effect": "read",
|
|
14244
14293
|
"hidden": false,
|
|
14245
14294
|
"yes": false
|
|
14246
14295
|
},
|
|
@@ -14266,6 +14315,7 @@ var COMMANDS = {
|
|
|
14266
14315
|
"type": "string"
|
|
14267
14316
|
}
|
|
14268
14317
|
},
|
|
14318
|
+
"effect": "read",
|
|
14269
14319
|
"hidden": false,
|
|
14270
14320
|
"yes": false
|
|
14271
14321
|
},
|
|
@@ -14295,6 +14345,7 @@ var COMMANDS = {
|
|
|
14295
14345
|
"type": "string"
|
|
14296
14346
|
}
|
|
14297
14347
|
},
|
|
14348
|
+
"effect": "write",
|
|
14298
14349
|
"hidden": false,
|
|
14299
14350
|
"yes": false
|
|
14300
14351
|
},
|
|
@@ -14324,6 +14375,7 @@ var COMMANDS = {
|
|
|
14324
14375
|
"type": "string"
|
|
14325
14376
|
}
|
|
14326
14377
|
},
|
|
14378
|
+
"effect": "read",
|
|
14327
14379
|
"hidden": false,
|
|
14328
14380
|
"yes": false
|
|
14329
14381
|
},
|
|
@@ -14366,6 +14418,7 @@ var COMMANDS = {
|
|
|
14366
14418
|
"type": "string"
|
|
14367
14419
|
}
|
|
14368
14420
|
},
|
|
14421
|
+
"effect": "read",
|
|
14369
14422
|
"hidden": false,
|
|
14370
14423
|
"yes": false
|
|
14371
14424
|
},
|
|
@@ -14395,6 +14448,7 @@ var COMMANDS = {
|
|
|
14395
14448
|
"type": "string"
|
|
14396
14449
|
}
|
|
14397
14450
|
},
|
|
14451
|
+
"effect": "read",
|
|
14398
14452
|
"hidden": false,
|
|
14399
14453
|
"yes": false
|
|
14400
14454
|
},
|
|
@@ -14421,6 +14475,7 @@ var COMMANDS = {
|
|
|
14421
14475
|
"type": "string"
|
|
14422
14476
|
}
|
|
14423
14477
|
},
|
|
14478
|
+
"effect": "read",
|
|
14424
14479
|
"hidden": false,
|
|
14425
14480
|
"yes": false
|
|
14426
14481
|
},
|
|
@@ -14467,6 +14522,7 @@ var COMMANDS = {
|
|
|
14467
14522
|
"repeated": true
|
|
14468
14523
|
}
|
|
14469
14524
|
},
|
|
14525
|
+
"effect": "write",
|
|
14470
14526
|
"hidden": false,
|
|
14471
14527
|
"yes": false
|
|
14472
14528
|
},
|
|
@@ -14515,6 +14571,7 @@ var COMMANDS = {
|
|
|
14515
14571
|
"type": "string"
|
|
14516
14572
|
}
|
|
14517
14573
|
},
|
|
14574
|
+
"effect": "write",
|
|
14518
14575
|
"hidden": false,
|
|
14519
14576
|
"yes": false
|
|
14520
14577
|
},
|
|
@@ -14544,6 +14601,7 @@ var COMMANDS = {
|
|
|
14544
14601
|
"type": "bool"
|
|
14545
14602
|
}
|
|
14546
14603
|
},
|
|
14604
|
+
"effect": "write",
|
|
14547
14605
|
"hidden": false,
|
|
14548
14606
|
"yes": true
|
|
14549
14607
|
},
|
|
@@ -14576,6 +14634,7 @@ var COMMANDS = {
|
|
|
14576
14634
|
"type": "string"
|
|
14577
14635
|
}
|
|
14578
14636
|
},
|
|
14637
|
+
"effect": "read",
|
|
14579
14638
|
"hidden": false,
|
|
14580
14639
|
"yes": false
|
|
14581
14640
|
},
|
|
@@ -14628,6 +14687,7 @@ var COMMANDS = {
|
|
|
14628
14687
|
"type": "bool"
|
|
14629
14688
|
}
|
|
14630
14689
|
},
|
|
14690
|
+
"effect": "write",
|
|
14631
14691
|
"hidden": false,
|
|
14632
14692
|
"yes": true
|
|
14633
14693
|
},
|
|
@@ -14657,6 +14717,7 @@ var COMMANDS = {
|
|
|
14657
14717
|
"type": "string"
|
|
14658
14718
|
}
|
|
14659
14719
|
},
|
|
14720
|
+
"effect": "read",
|
|
14660
14721
|
"hidden": false,
|
|
14661
14722
|
"yes": false
|
|
14662
14723
|
},
|
|
@@ -14693,6 +14754,7 @@ var COMMANDS = {
|
|
|
14693
14754
|
"type": "string"
|
|
14694
14755
|
}
|
|
14695
14756
|
},
|
|
14757
|
+
"effect": "rewrite",
|
|
14696
14758
|
"hidden": false,
|
|
14697
14759
|
"yes": false
|
|
14698
14760
|
},
|
|
@@ -14726,6 +14788,7 @@ var COMMANDS = {
|
|
|
14726
14788
|
"type": "string"
|
|
14727
14789
|
}
|
|
14728
14790
|
},
|
|
14791
|
+
"effect": "read",
|
|
14729
14792
|
"hidden": false,
|
|
14730
14793
|
"yes": false
|
|
14731
14794
|
},
|
|
@@ -14760,6 +14823,7 @@ var COMMANDS = {
|
|
|
14760
14823
|
"repeated": true
|
|
14761
14824
|
}
|
|
14762
14825
|
},
|
|
14826
|
+
"effect": "write",
|
|
14763
14827
|
"hidden": false,
|
|
14764
14828
|
"yes": false
|
|
14765
14829
|
},
|
|
@@ -14795,6 +14859,7 @@ var COMMANDS = {
|
|
|
14795
14859
|
"type": "duration"
|
|
14796
14860
|
}
|
|
14797
14861
|
},
|
|
14862
|
+
"effect": "write",
|
|
14798
14863
|
"hidden": false,
|
|
14799
14864
|
"yes": false
|
|
14800
14865
|
},
|
|
@@ -14836,6 +14901,7 @@ var COMMANDS = {
|
|
|
14836
14901
|
"type": "string"
|
|
14837
14902
|
}
|
|
14838
14903
|
},
|
|
14904
|
+
"effect": "write",
|
|
14839
14905
|
"hidden": false,
|
|
14840
14906
|
"yes": false
|
|
14841
14907
|
},
|
|
@@ -14854,6 +14920,7 @@ var COMMANDS = {
|
|
|
14854
14920
|
]
|
|
14855
14921
|
}
|
|
14856
14922
|
},
|
|
14923
|
+
"effect": "read",
|
|
14857
14924
|
"hidden": false,
|
|
14858
14925
|
"yes": false
|
|
14859
14926
|
},
|
|
@@ -14878,6 +14945,7 @@ var COMMANDS = {
|
|
|
14878
14945
|
]
|
|
14879
14946
|
}
|
|
14880
14947
|
},
|
|
14948
|
+
"effect": "read",
|
|
14881
14949
|
"hidden": false,
|
|
14882
14950
|
"yes": false
|
|
14883
14951
|
},
|
|
@@ -14901,6 +14969,7 @@ var COMMANDS = {
|
|
|
14901
14969
|
]
|
|
14902
14970
|
}
|
|
14903
14971
|
},
|
|
14972
|
+
"effect": "write",
|
|
14904
14973
|
"hidden": false,
|
|
14905
14974
|
"yes": false
|
|
14906
14975
|
},
|
|
@@ -14916,6 +14985,7 @@ var COMMANDS = {
|
|
|
14916
14985
|
]
|
|
14917
14986
|
}
|
|
14918
14987
|
},
|
|
14988
|
+
"effect": "read",
|
|
14919
14989
|
"hidden": false,
|
|
14920
14990
|
"yes": false
|
|
14921
14991
|
},
|
|
@@ -14931,6 +15001,7 @@ var COMMANDS = {
|
|
|
14931
15001
|
]
|
|
14932
15002
|
}
|
|
14933
15003
|
},
|
|
15004
|
+
"effect": "read",
|
|
14934
15005
|
"hidden": false,
|
|
14935
15006
|
"yes": false
|
|
14936
15007
|
}
|
|
@@ -15066,10 +15137,18 @@ var moduleValidateResultSchema = import_zod.z.object({
|
|
|
15066
15137
|
failure: commandFailureSchema.optional(),
|
|
15067
15138
|
diagnostics: import_zod.z.array(commandDiagnosticSchema)
|
|
15068
15139
|
});
|
|
15140
|
+
var moduleLockResultSchema = import_zod.z.object({
|
|
15141
|
+
path: import_zod.z.string(),
|
|
15142
|
+
lockfile: import_zod.z.string(),
|
|
15143
|
+
providers: import_zod.z.array(
|
|
15144
|
+
import_zod.z.object({ address: import_zod.z.string(), version: import_zod.z.string(), platforms: import_zod.z.array(import_zod.z.string()) })
|
|
15145
|
+
)
|
|
15146
|
+
});
|
|
15069
15147
|
var moduleConvertResultSchema = import_zod.z.object({
|
|
15070
15148
|
changed: import_zod.z.boolean(),
|
|
15071
15149
|
written: import_zod.z.array(import_zod.z.string()),
|
|
15072
15150
|
removed: import_zod.z.array(import_zod.z.string()),
|
|
15151
|
+
lock: moduleLockResultSchema.nullable(),
|
|
15073
15152
|
validate: moduleValidateResultSchema,
|
|
15074
15153
|
diagnostics: import_zod.z.array(commandDiagnosticSchema)
|
|
15075
15154
|
});
|
|
@@ -15149,6 +15228,12 @@ var moduleFmtResultSchema = import_zod.z.object({ changed: import_zod.z.array(im
|
|
|
15149
15228
|
var moduleDocsResultSchema = import_zod.z.object({ markdown: import_zod.z.string() });
|
|
15150
15229
|
var moduleScanResultSchema = import_zod.z.object({
|
|
15151
15230
|
treeHash: import_zod.z.string(),
|
|
15231
|
+
tool: import_zod.z.object({
|
|
15232
|
+
name: import_zod.z.string(),
|
|
15233
|
+
version: import_zod.z.string().nullable(),
|
|
15234
|
+
path: import_zod.z.string(),
|
|
15235
|
+
source: import_zod.z.enum(["env", "path", "cache"])
|
|
15236
|
+
}),
|
|
15152
15237
|
diagnostics: import_zod.z.array(commandDiagnosticSchema)
|
|
15153
15238
|
});
|
|
15154
15239
|
var registryDescribeSchema = import_zod.z.object({
|
|
@@ -15302,6 +15387,22 @@ var runSchema = import_zod.z.object({
|
|
|
15302
15387
|
// a portal mount reading the API body sees it absent — optional so both
|
|
15303
15388
|
// bodies parse. A host opens this link and never composes a portal route.
|
|
15304
15389
|
url: import_zod.z.string().optional(),
|
|
15390
|
+
// The provider versions the Run's lockfile pins, each with the
|
|
15391
|
+
// organization's admission it ran under when the version is one admitted
|
|
15392
|
+
// outside the curated range. A single-run read carries it; a list does
|
|
15393
|
+
// not, and the CLI omits an empty one.
|
|
15394
|
+
providers: import_zod.z.array(
|
|
15395
|
+
import_zod.z.object({
|
|
15396
|
+
address: import_zod.z.string(),
|
|
15397
|
+
version: import_zod.z.string(),
|
|
15398
|
+
admission: import_zod.z.object({
|
|
15399
|
+
id: import_zod.z.string(),
|
|
15400
|
+
admittedBy: import_zod.z.string(),
|
|
15401
|
+
admittedByName: import_zod.z.string().nullable(),
|
|
15402
|
+
admittedAt: import_zod.z.string()
|
|
15403
|
+
}).optional()
|
|
15404
|
+
})
|
|
15405
|
+
).optional(),
|
|
15305
15406
|
// The CLI's own `api.Run` decode struct (apps/cli/internal/api/runs.go) has no
|
|
15306
15407
|
// json tag for these, so every CLI JSON golden omits them; the API always sends
|
|
15307
15408
|
// them (apps/api/src/openapi/schemas/runs.ts) — optional so both bodies parse.
|
|
@@ -15521,16 +15622,22 @@ var currentSelectionSchema = import_zod.z.union([
|
|
|
15521
15622
|
import_zod.z.object({ slug: import_zod.z.null(), source: import_zod.z.null() })
|
|
15522
15623
|
]);
|
|
15523
15624
|
var loginUserSchema = import_zod.z.object({ id: import_zod.z.string(), email: import_zod.z.string(), name: import_zod.z.string() });
|
|
15524
|
-
var
|
|
15625
|
+
var keyRevocationSchema = import_zod.z.object({
|
|
15626
|
+
revocation: import_zod.z.enum(["revoked", "refused", "unreachable", "unreadable", "none"]),
|
|
15627
|
+
detail: import_zod.z.string().optional(),
|
|
15628
|
+
portalUrl: import_zod.z.string().optional()
|
|
15629
|
+
});
|
|
15630
|
+
var logoutSchema = keyRevocationSchema.extend({ loggedOut: import_zod.z.boolean() });
|
|
15525
15631
|
var loginEventSchema = import_zod.z.discriminatedUnion("type", [
|
|
15526
15632
|
import_zod.z.object({ type: import_zod.z.literal("code"), code: import_zod.z.string(), verificationUrl: import_zod.z.string().optional() }),
|
|
15527
15633
|
import_zod.z.object({ type: import_zod.z.literal("url"), url: import_zod.z.string() }),
|
|
15528
15634
|
import_zod.z.object({ type: import_zod.z.literal("email_sent"), email: import_zod.z.string() }),
|
|
15529
|
-
import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema })
|
|
15635
|
+
import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema, replacedKey: keyRevocationSchema })
|
|
15530
15636
|
]);
|
|
15531
15637
|
var SCHEMAS = {
|
|
15532
15638
|
"module validate": moduleValidateResultSchema,
|
|
15533
15639
|
"module convert": moduleConvertResultSchema,
|
|
15640
|
+
"module lock": moduleLockResultSchema,
|
|
15534
15641
|
"module fmt": moduleFmtResultSchema,
|
|
15535
15642
|
"module docs": moduleDocsResultSchema,
|
|
15536
15643
|
"module scan": moduleScanResultSchema,
|
|
@@ -15734,6 +15841,13 @@ function liveSlots(slots, current) {
|
|
|
15734
15841
|
report: liveReport(report, current)
|
|
15735
15842
|
};
|
|
15736
15843
|
}
|
|
15844
|
+
function commandUnderWay({
|
|
15845
|
+
run,
|
|
15846
|
+
preview: preview2,
|
|
15847
|
+
running
|
|
15848
|
+
}) {
|
|
15849
|
+
return run?.outcome.kind === "running" || preview2?.outcome.kind === "running" || running.size > 0;
|
|
15850
|
+
}
|
|
15737
15851
|
function withPhase(phases, name) {
|
|
15738
15852
|
return [...phases.map((p) => ({ ...p, status: "done" })), { name, status: "current" }];
|
|
15739
15853
|
}
|
|
@@ -15779,18 +15893,19 @@ function runningFor(slot, token) {
|
|
|
15779
15893
|
if (slot?.token !== token) return false;
|
|
15780
15894
|
return "done" in slot ? !slot.done : slot.outcome.kind === "running";
|
|
15781
15895
|
}
|
|
15782
|
-
function failureSays(error
|
|
15896
|
+
function failureSays(error) {
|
|
15783
15897
|
if (error instanceof CommandExitError) {
|
|
15784
15898
|
if (error.failure) return { message: error.failure.message, failure: error.failure };
|
|
15785
15899
|
const stderr = error.stderrTail.trim();
|
|
15786
15900
|
return { message: stderr || `the command exited with code ${error.code} and wrote nothing` };
|
|
15787
15901
|
}
|
|
15788
|
-
if (error instanceof CommandUnobservedError
|
|
15789
|
-
return {
|
|
15902
|
+
if (error instanceof CommandUnobservedError) {
|
|
15903
|
+
return {
|
|
15904
|
+
message: COMMANDS[error.path].effect === "read" ? `${error.message}; run it again` : `${error.message}: it ran and may have made changes, but its outcome is unknown`
|
|
15905
|
+
};
|
|
15790
15906
|
}
|
|
15791
15907
|
return { message: error instanceof Error ? error.message : String(error) };
|
|
15792
15908
|
}
|
|
15793
|
-
var RUN = { kind: "write" };
|
|
15794
15909
|
function settleRun(prev, token, error) {
|
|
15795
15910
|
const carried = prev && prev.token === token ? prev : null;
|
|
15796
15911
|
const lastLog = carried?.lastLog ?? null;
|
|
@@ -15806,7 +15921,7 @@ function settleRun(prev, token, error) {
|
|
|
15806
15921
|
if (error.code === 7)
|
|
15807
15922
|
return {
|
|
15808
15923
|
token,
|
|
15809
|
-
outcome: { kind: "blocked", ...failureSays(error
|
|
15924
|
+
outcome: { kind: "blocked", ...failureSays(error) },
|
|
15810
15925
|
lastLog,
|
|
15811
15926
|
submitted,
|
|
15812
15927
|
phases
|
|
@@ -15814,7 +15929,7 @@ function settleRun(prev, token, error) {
|
|
|
15814
15929
|
}
|
|
15815
15930
|
return {
|
|
15816
15931
|
token,
|
|
15817
|
-
outcome: { kind: "failed", ...failureSays(error
|
|
15932
|
+
outcome: { kind: "failed", ...failureSays(error) },
|
|
15818
15933
|
lastLog,
|
|
15819
15934
|
submitted,
|
|
15820
15935
|
phases
|
|
@@ -15983,10 +16098,7 @@ function defineCommand(binding) {
|
|
|
15983
16098
|
} catch (err) {
|
|
15984
16099
|
const settledByDocument = rendered && binding.result.kind === "notify" && (err instanceof CommandExitError || err instanceof CommandUnobservedError);
|
|
15985
16100
|
if (!rt.fail(err) && !(err instanceof CommandDetachedError) && !settledByDocument) {
|
|
15986
|
-
const { message, failure } = failureSays(
|
|
15987
|
-
err,
|
|
15988
|
-
binding.result.kind === "preview" || binding.result.kind === "follow" ? { kind: "read", path: binding.path } : { kind: "write" }
|
|
15989
|
-
);
|
|
16101
|
+
const { message, failure } = failureSays(err);
|
|
15990
16102
|
rt.ports.presenter.notify("error", message, ...failure ? [failure] : []);
|
|
15991
16103
|
}
|
|
15992
16104
|
if (binding.invalidates) rt.tick();
|
|
@@ -19638,6 +19750,13 @@ function App({
|
|
|
19638
19750
|
}
|
|
19639
19751
|
|
|
19640
19752
|
// src/adapters/snapshot-source.ts
|
|
19753
|
+
var SnapshotFetchError = class extends Error {
|
|
19754
|
+
constructor(status) {
|
|
19755
|
+
super(`snapshotSource: failed to fetch bundle (status ${status})`);
|
|
19756
|
+
this.status = status;
|
|
19757
|
+
this.name = "SnapshotFetchError";
|
|
19758
|
+
}
|
|
19759
|
+
};
|
|
19641
19760
|
function snapshotSource(input) {
|
|
19642
19761
|
const fetchImpl = input.fetch ?? globalThis.fetch.bind(globalThis);
|
|
19643
19762
|
let cached = null;
|
|
@@ -19649,9 +19768,7 @@ function snapshotSource(input) {
|
|
|
19649
19768
|
headers: { accept: "application/octet-stream", ...input.headers },
|
|
19650
19769
|
credentials: "include"
|
|
19651
19770
|
});
|
|
19652
|
-
if (!res.ok)
|
|
19653
|
-
throw new Error(`snapshotSource: failed to fetch bundle (status ${res.status})`);
|
|
19654
|
-
}
|
|
19771
|
+
if (!res.ok) throw new SnapshotFetchError(res.status);
|
|
19655
19772
|
const bytes = new Uint8Array(await res.arrayBuffer());
|
|
19656
19773
|
const source = {
|
|
19657
19774
|
bundle: Bundle.decode(bytes),
|
|
@@ -20326,7 +20443,7 @@ function commandsPort(caller, commandPaths, ownCwd) {
|
|
|
20326
20443
|
let started = false;
|
|
20327
20444
|
const stopped = (error) => {
|
|
20328
20445
|
if (signal.aborted) return new CommandDetachedError();
|
|
20329
|
-
if (started) return new CommandUnobservedError();
|
|
20446
|
+
if (started) return new CommandUnobservedError(path);
|
|
20330
20447
|
return error;
|
|
20331
20448
|
};
|
|
20332
20449
|
try {
|
|
@@ -20446,6 +20563,7 @@ function convertCreatedRef(r) {
|
|
|
20446
20563
|
ProvidersPanel,
|
|
20447
20564
|
Reason,
|
|
20448
20565
|
SCHEMAS,
|
|
20566
|
+
SnapshotFetchError,
|
|
20449
20567
|
SourceRefusedBanner,
|
|
20450
20568
|
TerraformConfigContent,
|
|
20451
20569
|
TerraformConfigPanel,
|
|
@@ -20456,6 +20574,7 @@ function convertCreatedRef(r) {
|
|
|
20456
20574
|
answering,
|
|
20457
20575
|
bridgeCaller,
|
|
20458
20576
|
carriesFailure,
|
|
20577
|
+
commandUnderWay,
|
|
20459
20578
|
conflictPanel,
|
|
20460
20579
|
connectCaller,
|
|
20461
20580
|
createActionRunner,
|