@lace-cloud/canvas 0.22.0 → 0.23.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-WNBCPSQJ.mjs → chunk-GV2FO3E2.mjs} +25 -24
- package/dist/{chunk-WNBCPSQJ.mjs.map → chunk-GV2FO3E2.mjs.map} +1 -1
- package/dist/engine/index.cjs +24 -23
- 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 +24 -23
- 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/index.mjs.map +1 -1
- package/dist/{mapping-DpFUMDvW.d.mts → mapping-B2QFbLmE.d.mts} +52 -38
- package/dist/{mapping-DpFUMDvW.d.ts → mapping-B2QFbLmE.d.ts} +52 -38
- 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 '../mapping-
|
|
2
|
-
export {
|
|
1
|
+
import { A as ActionContribution, S as SourcePort } from '../mapping-B2QFbLmE.mjs';
|
|
2
|
+
export { aQ as Action, l as ActionRunner, n as ActionRunnerOptions, f as ActionTarget, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, d as BoundPath, s as BridgeEngineCaller, 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 CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, Z as EditorPort, _ as EngineCaller, $ as EngineMethodResponse, a0 as EngineSession, a1 as EngineSessionOptions, a2 as EngineTarget, a3 as ErasedCommand, a4 as FollowSlot, a5 as GateChangeRequest, a6 as GenerateEvent, a7 as GraphError, a8 as HostBinding, aR as InputMode, a9 as Invocation, J as JsonOf, aS as LaceReason, aT as LiveSlots, aU as OnScreen, c as PendingForm, ac as PortName, ad as PresenterPort, ae as PreviewSlot, af as Reason, ag as ReportEntry, ah as ReportFold, ai as ReportPath, aj as ReportSlot, ak as ResultKind, al as ResultSlots, R as ResultStore, j as RunCtx, am as RunOutcome, aV as RunPhase, aW as RunPhaseStatus, an as RunSlot, ao as RunnerPorts, ap as SCHEMAS, aq as Sink, ar as SinkInput, as as SlotContext, at as SlotKind, au as SourceConflict, i as SourceEnd, av as StackRef, aw as ViewStatePort, ax as WiringCandidate, ay as WiringQuery, az as bridgeCaller, aA as carriesFailure, aB as connectCaller, aC as createActionRunner, aD as createResultStore, aE as currentReport, aF as defineCommand, aG as diagnosticsOf, aX as diagnosticsOfDocument, aH as foldReport, aI as isBoundPath, aY as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aZ as reasonWire, a_ as reduceFollow, a$ as reducePreview, b0 as reduceReport, b1 as reduceRun, aN as reportDiagnostics, b2 as settleRun, aO as toArgv, aP as uniqueDiagnostics } from '../mapping-B2QFbLmE.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 '../mapping-
|
|
2
|
-
export {
|
|
1
|
+
import { A as ActionContribution, S as SourcePort } from '../mapping-B2QFbLmE.js';
|
|
2
|
+
export { aQ as Action, l as ActionRunner, n as ActionRunnerOptions, f as ActionTarget, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, d as BoundPath, s as BridgeEngineCaller, 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 CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, Z as EditorPort, _ as EngineCaller, $ as EngineMethodResponse, a0 as EngineSession, a1 as EngineSessionOptions, a2 as EngineTarget, a3 as ErasedCommand, a4 as FollowSlot, a5 as GateChangeRequest, a6 as GenerateEvent, a7 as GraphError, a8 as HostBinding, aR as InputMode, a9 as Invocation, J as JsonOf, aS as LaceReason, aT as LiveSlots, aU as OnScreen, c as PendingForm, ac as PortName, ad as PresenterPort, ae as PreviewSlot, af as Reason, ag as ReportEntry, ah as ReportFold, ai as ReportPath, aj as ReportSlot, ak as ResultKind, al as ResultSlots, R as ResultStore, j as RunCtx, am as RunOutcome, aV as RunPhase, aW as RunPhaseStatus, an as RunSlot, ao as RunnerPorts, ap as SCHEMAS, aq as Sink, ar as SinkInput, as as SlotContext, at as SlotKind, au as SourceConflict, i as SourceEnd, av as StackRef, aw as ViewStatePort, ax as WiringCandidate, ay as WiringQuery, az as bridgeCaller, aA as carriesFailure, aB as connectCaller, aC as createActionRunner, aD as createResultStore, aE as currentReport, aF as defineCommand, aG as diagnosticsOf, aX as diagnosticsOfDocument, aH as foldReport, aI as isBoundPath, aY as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aZ as reasonWire, a_ as reduceFollow, a$ as reducePreview, b0 as reduceReport, b1 as reduceRun, aN as reportDiagnostics, b2 as settleRun, aO as toArgv, aP as uniqueDiagnostics } from '../mapping-B2QFbLmE.js';
|
|
3
3
|
import '@lace-cloud/proto';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@bufbuild/protobuf/wire';
|
package/dist/engine/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -15189,27 +15189,25 @@ var stackPreviewSchema = import_zod.z.object({
|
|
|
15189
15189
|
bound: import_zod.z.number().optional()
|
|
15190
15190
|
})
|
|
15191
15191
|
});
|
|
15192
|
-
var
|
|
15192
|
+
var gateChangeRequestSchema = import_zod.z.object({
|
|
15193
15193
|
id: import_zod.z.string(),
|
|
15194
|
-
orgId: import_zod.z.string(),
|
|
15195
|
-
teamId: import_zod.z.string(),
|
|
15196
|
-
runId: import_zod.z.string(),
|
|
15197
|
-
bindingId: import_zod.z.string().nullable(),
|
|
15198
|
-
invocationId: import_zod.z.string().nullable(),
|
|
15199
15194
|
state: import_zod.z.string(),
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15195
|
+
requirements: import_zod.z.array(
|
|
15196
|
+
import_zod.z.object({
|
|
15197
|
+
id: import_zod.z.string(),
|
|
15198
|
+
state: import_zod.z.string(),
|
|
15199
|
+
decidedBy: import_zod.z.enum(["lace", "ecm"])
|
|
15200
|
+
})
|
|
15201
|
+
),
|
|
15202
|
+
records: import_zod.z.array(
|
|
15203
|
+
import_zod.z.object({
|
|
15204
|
+
externalSystemId: import_zod.z.string(),
|
|
15205
|
+
kind: import_zod.z.string(),
|
|
15206
|
+
externalRef: import_zod.z.string().nullable(),
|
|
15207
|
+
externalUrl: import_zod.z.string().nullable(),
|
|
15208
|
+
state: import_zod.z.string().nullable()
|
|
15209
|
+
})
|
|
15210
|
+
)
|
|
15213
15211
|
});
|
|
15214
15212
|
var runEventSchema = import_zod.z.discriminatedUnion("type", [
|
|
15215
15213
|
import_zod.z.object({ type: import_zod.z.literal("log"), text: import_zod.z.string() }),
|
|
@@ -15217,8 +15215,11 @@ var runEventSchema = import_zod.z.discriminatedUnion("type", [
|
|
|
15217
15215
|
import_zod.z.object({
|
|
15218
15216
|
type: import_zod.z.literal("gate"),
|
|
15219
15217
|
resolution: import_zod.z.object({ mode: import_zod.z.string(), reason: import_zod.z.string().optional() }),
|
|
15220
|
-
changeRequest:
|
|
15221
|
-
})
|
|
15218
|
+
changeRequest: gateChangeRequestSchema.nullable()
|
|
15219
|
+
}).refine(
|
|
15220
|
+
(gate) => gate.resolution.mode === "awaiting_approval" === (gate.changeRequest !== null),
|
|
15221
|
+
{ message: "a gate event carries a change request exactly when it holds the Run" }
|
|
15222
|
+
),
|
|
15222
15223
|
import_zod.z.object({
|
|
15223
15224
|
type: import_zod.z.literal("result"),
|
|
15224
15225
|
run: runSchema,
|
|
@@ -18535,10 +18536,10 @@ function reduceRun(prev, token, event) {
|
|
|
18535
18536
|
const lastLog = event.type === "log" ? event.text : carried?.lastLog ?? null;
|
|
18536
18537
|
const phases = event.type === "phase" ? withPhase(carried?.phases ?? [], event.name) : carried?.phases ?? [];
|
|
18537
18538
|
const submitted = carried?.submitted || event.type === "phase" && event.name === "submit";
|
|
18538
|
-
if (event.type === "gate" && event.
|
|
18539
|
+
if (event.type === "gate" && event.changeRequest !== null) {
|
|
18539
18540
|
return {
|
|
18540
18541
|
token,
|
|
18541
|
-
outcome: { kind: "awaiting-approval",
|
|
18542
|
+
outcome: { kind: "awaiting-approval", changeRequest: event.changeRequest },
|
|
18542
18543
|
lastLog,
|
|
18543
18544
|
submitted,
|
|
18544
18545
|
phases: closePhases(phases)
|