@orchestraworks/cli 0.3.0 → 0.5.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 +20 -1257
- package/dist/cli/core/invocation.js +1 -1
- package/dist/cli/factory/init.d.ts +1 -1
- package/dist/cli/factory/init.js +41 -13
- package/dist/cli/main.js +0 -0
- package/dist/cli/skill.js +20 -7
- package/docs/REFERENCE.md +1278 -0
- package/node_modules/@orchestraworks/client/package.json +1 -1
- package/package.json +7 -8
- package/skills/orchestra/SKILL.md +29 -3
- package/skills/orchestra-fdk/SKILL.md +68 -10
- package/skills/orchestra-fdk/references/authoring.md +14 -14
- package/templates/bug-fix/tsconfig.json +12 -0
- package/templates/engineering-team/lib/setup.sh +16 -0
- package/templates/engineering-team/package.json +1 -1
- package/templates/todo-factory/package.json +1 -1
- package/node_modules/@orchestraworks/workflow-render/LICENSE +0 -202
- package/node_modules/@orchestraworks/workflow-render/dist/constants.d.ts +0 -98
- package/node_modules/@orchestraworks/workflow-render/dist/context.d.ts +0 -37
- package/node_modules/@orchestraworks/workflow-render/dist/geometry-core.d.ts +0 -40
- package/node_modules/@orchestraworks/workflow-render/dist/graph-digest.d.ts +0 -4
- package/node_modules/@orchestraworks/workflow-render/dist/grid.d.ts +0 -33
- package/node_modules/@orchestraworks/workflow-render/dist/heuristic.d.ts +0 -7
- package/node_modules/@orchestraworks/workflow-render/dist/identity.d.ts +0 -9
- package/node_modules/@orchestraworks/workflow-render/dist/index.d.ts +0 -24
- package/node_modules/@orchestraworks/workflow-render/dist/index.js +0 -1
- package/node_modules/@orchestraworks/workflow-render/dist/layout.d.ts +0 -6
- package/node_modules/@orchestraworks/workflow-render/dist/normalize.d.ts +0 -33
- package/node_modules/@orchestraworks/workflow-render/dist/place.d.ts +0 -81
- package/node_modules/@orchestraworks/workflow-render/dist/ports.d.ts +0 -15
- package/node_modules/@orchestraworks/workflow-render/dist/presence.d.ts +0 -6
- package/node_modules/@orchestraworks/workflow-render/dist/route-cells.d.ts +0 -15
- package/node_modules/@orchestraworks/workflow-render/dist/sha256.d.ts +0 -3
- package/node_modules/@orchestraworks/workflow-render/dist/svg.d.ts +0 -7
- package/node_modules/@orchestraworks/workflow-render/dist/text.d.ts +0 -14
- package/node_modules/@orchestraworks/workflow-render/dist/types.d.ts +0 -310
- package/node_modules/@orchestraworks/workflow-render/dist/verify.d.ts +0 -26
- package/node_modules/@orchestraworks/workflow-render/package.json +0 -42
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export declare const PAL: {
|
|
2
|
-
readonly ink: "#1a1d24";
|
|
3
|
-
readonly muted: "#5b6472";
|
|
4
|
-
readonly faint: "#7a8494";
|
|
5
|
-
readonly boxStroke: "#8b93a1";
|
|
6
|
-
readonly spineStroke: "#4f5b6b";
|
|
7
|
-
readonly edge: "#aab2bf";
|
|
8
|
-
readonly edgeSpine: "#4f5b6b";
|
|
9
|
-
readonly edgeFaint: "#d3d8e0";
|
|
10
|
-
readonly label: "#8b93a1";
|
|
11
|
-
readonly labelFaint: "#b0b7c3";
|
|
12
|
-
readonly laneProcessFill: "#f4f6fa";
|
|
13
|
-
readonly laneResultFill: "#eaeef5";
|
|
14
|
-
readonly bandStroke: "#dde2ea";
|
|
15
|
-
readonly phaseStroke: "#d7dde8";
|
|
16
|
-
readonly zoneFill: "#f3f4f7";
|
|
17
|
-
readonly zoneStroke: "#c6cdda";
|
|
18
|
-
readonly chipFill: "#f1f3f7";
|
|
19
|
-
readonly chipText: "#7a8494";
|
|
20
|
-
readonly innerRule: "#e2e6ee";
|
|
21
|
-
readonly white: "#ffffff";
|
|
22
|
-
readonly entryFill: "#f6f8fc";
|
|
23
|
-
readonly entryStroke: "#b4bdcc";
|
|
24
|
-
readonly entryMutedFill: "#f5f6f9";
|
|
25
|
-
readonly entryMutedStroke: "#c9d0dc";
|
|
26
|
-
readonly entryGlyph: "#79839a";
|
|
27
|
-
readonly entryGlyphMuted: "#a3abb9";
|
|
28
|
-
readonly entryDot: "#3f4a5a";
|
|
29
|
-
readonly barFill: "#e9ecf1";
|
|
30
|
-
readonly guardFill: "#eef4fd";
|
|
31
|
-
readonly guardStroke: "#7d9dcb";
|
|
32
|
-
readonly metaRule: "#b6bdc9";
|
|
33
|
-
readonly metaText: "#98a1b0";
|
|
34
|
-
};
|
|
35
|
-
export declare const ACCENTS: Record<string, {
|
|
36
|
-
stroke: string;
|
|
37
|
-
fill: string;
|
|
38
|
-
text: string;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const GRAPH_FONT_FAMILY = "Helvetica, Arial, 'Liberation Sans', sans-serif";
|
|
41
|
-
export declare const FS_NODE = 12.5;
|
|
42
|
-
export declare const FS_EDGE = 10;
|
|
43
|
-
export declare const FS_NOTE = 10;
|
|
44
|
-
export declare const FS_ENTRY = 10.5;
|
|
45
|
-
export declare const FS_ENTRY_SUB = 9;
|
|
46
|
-
export declare const LH_ENTRY_SUB = 11.5;
|
|
47
|
-
export declare const NODE_PAD = 12;
|
|
48
|
-
export declare const NODE_MIN_W = 120;
|
|
49
|
-
export declare const NODE_MAX_W = 200;
|
|
50
|
-
export declare const PILL_PAD = 16;
|
|
51
|
-
export declare const PILL_MIN_W = 62;
|
|
52
|
-
export declare const PILL_H = 32;
|
|
53
|
-
export declare const LINE_H = 15;
|
|
54
|
-
export declare const BOX_R = 7;
|
|
55
|
-
export declare const BAR_R = 5;
|
|
56
|
-
export declare const PORT_PAD = 1;
|
|
57
|
-
export declare const BAR_TALL_SPAN = 46;
|
|
58
|
-
export declare const BAR_CAPTION_DROP = 18;
|
|
59
|
-
export declare const CANVAS_MARGIN = 20;
|
|
60
|
-
export declare const CORNER_R = 8;
|
|
61
|
-
export declare const ENTRY_DOT_R = 4.5;
|
|
62
|
-
export declare const ENTRY_DOT_GAP = 26;
|
|
63
|
-
export declare const ENTRY_CARD_GAP = 44;
|
|
64
|
-
export declare const ENTRY_STACK_GAP = 13;
|
|
65
|
-
export declare const ENTRY_MIN_W = 118;
|
|
66
|
-
export declare const ENTRY_MAX_W = 236;
|
|
67
|
-
export declare const ENTRY_PAD_X = 9;
|
|
68
|
-
export declare const ENTRY_PAD_Y = 8;
|
|
69
|
-
export declare const ENTRY_GLYPH_W = 17;
|
|
70
|
-
export declare const ENTRY_TIP = 9;
|
|
71
|
-
export declare const ENTRY_CAPTION = "Steers the active run";
|
|
72
|
-
export declare const GATE_MARK_SETBACK = 20;
|
|
73
|
-
export declare const PARALLEL_CLEAR = 5;
|
|
74
|
-
export declare const PARALLEL_MIN_RUN = 12;
|
|
75
|
-
export declare const COINCIDENT_INK_MAX = 2;
|
|
76
|
-
export declare const DETOUR_REPORT = 2.5;
|
|
77
|
-
export declare const SPINE_SEARCH_EXPANSIONS = 4096;
|
|
78
|
-
export declare const SPINE_DEPTH_CAP = 30;
|
|
79
|
-
export declare const HANDLER_VERB_TEXT: Record<string, string>;
|
|
80
|
-
export declare const EXCEPTIONAL_VERBS: ReadonlySet<string>;
|
|
81
|
-
export declare const LAYOUT_LIMITS: {
|
|
82
|
-
readonly maxCellCoordinate: 4096;
|
|
83
|
-
readonly maxCellSpan: 256;
|
|
84
|
-
readonly maxCellArea: 1000000;
|
|
85
|
-
readonly maxNotes: 50;
|
|
86
|
-
readonly maxNoteTextChars: 200;
|
|
87
|
-
readonly maxSerializedBytes: number;
|
|
88
|
-
readonly maxNodeReferences: 500;
|
|
89
|
-
};
|
|
90
|
-
export declare const LAYERS: readonly ["edge", "node", "label"];
|
|
91
|
-
export type Layer = (typeof LAYERS)[number];
|
|
92
|
-
export declare const RING_INSET = 3.5;
|
|
93
|
-
export declare const RING_OUTER_W = 1.4;
|
|
94
|
-
export declare const RING_INNER_W = 1.2;
|
|
95
|
-
export declare const RING_INNER_OPACITY = 0.55;
|
|
96
|
-
export declare const GATE_BAR_LEN = 10;
|
|
97
|
-
export declare const GATE_BAR_GAP = 5;
|
|
98
|
-
export declare const GATE_BAR_W = 1.6;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { RenderContext } from "./types.js";
|
|
2
|
-
export interface TriggerRowLike {
|
|
3
|
-
id?: string;
|
|
4
|
-
slug?: string;
|
|
5
|
-
status?: string | null;
|
|
6
|
-
expiresAt?: string | Date | null;
|
|
7
|
-
on?: {
|
|
8
|
-
connection?: string | null;
|
|
9
|
-
events?: readonly string[] | null;
|
|
10
|
-
schedule?: string | null;
|
|
11
|
-
} | null;
|
|
12
|
-
where?: readonly FilterNodeLike[] | null;
|
|
13
|
-
target?: {
|
|
14
|
-
onMissing?: string | null;
|
|
15
|
-
binding?: string | null;
|
|
16
|
-
} | null;
|
|
17
|
-
}
|
|
18
|
-
export interface FilterConditionLike {
|
|
19
|
-
field?: string | null;
|
|
20
|
-
op?: string | null;
|
|
21
|
-
value?: unknown;
|
|
22
|
-
}
|
|
23
|
-
export type FilterNodeLike = FilterConditionLike | {
|
|
24
|
-
all: readonly FilterNodeLike[];
|
|
25
|
-
} | {
|
|
26
|
-
any: readonly FilterNodeLike[];
|
|
27
|
-
} | {
|
|
28
|
-
not: FilterNodeLike;
|
|
29
|
-
};
|
|
30
|
-
export interface ClassifyOptions {
|
|
31
|
-
now?: Date;
|
|
32
|
-
}
|
|
33
|
-
export declare function renderFilter(node: FilterNodeLike, nested?: boolean): string | null;
|
|
34
|
-
export declare function humanizeCron(cron: string | null | undefined): string | null;
|
|
35
|
-
export declare function isRuntimeLiveTrigger(row: TriggerRowLike, now?: Date): boolean;
|
|
36
|
-
export declare function classifyTriggerContext(rows: readonly TriggerRowLike[], options?: ClassifyOptions): RenderContext;
|
|
37
|
-
export declare function hasStartCapableTrigger(context: RenderContext | null | undefined): boolean;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { GeometryBounds, PortableShape, Point, Rect, WorkflowGeometry } from "./types.js";
|
|
2
|
-
export declare const TEXT_ASCENT_RATIO = 0.82;
|
|
3
|
-
export declare const TEXT_DESCENT_RATIO = 0.24;
|
|
4
|
-
export declare function textRect(x: number, y: number, str: string, size: number, anchor?: "start" | "middle" | "end"): Rect;
|
|
5
|
-
export declare function blockTop(n: PortableShape): number;
|
|
6
|
-
export declare function blockBottom(n: PortableShape): number;
|
|
7
|
-
export declare function rectsOverlap(a: Rect, b: Rect, pad?: number): boolean;
|
|
8
|
-
export declare function segRect(a: Point, b: Point): Rect;
|
|
9
|
-
export declare function bboxOf(pts: readonly Point[]): Rect;
|
|
10
|
-
export declare function rectGap(a: Rect, b: Rect): number;
|
|
11
|
-
export declare function rectDist(a: Rect, b: Rect): number;
|
|
12
|
-
export declare const isHSeg: (a: Point, b: Point) => boolean;
|
|
13
|
-
export declare const isVSeg: (a: Point, b: Point) => boolean;
|
|
14
|
-
export declare function polyLen(pts: readonly Point[]): number;
|
|
15
|
-
export declare function mergeCollinear(pts: readonly Point[]): Point[];
|
|
16
|
-
export declare function bendsOf(pts: readonly Point[]): number;
|
|
17
|
-
export interface Outline {
|
|
18
|
-
x0: number;
|
|
19
|
-
y0: number;
|
|
20
|
-
x1: number;
|
|
21
|
-
y1: number;
|
|
22
|
-
r: number;
|
|
23
|
-
}
|
|
24
|
-
export declare function outlineOf(n: PortableShape): Outline;
|
|
25
|
-
export declare function outlineDistance(p: Point, o: Outline): number;
|
|
26
|
-
export type Side = "N" | "S" | "E" | "W";
|
|
27
|
-
export interface PortSpan {
|
|
28
|
-
axis: "x" | "y";
|
|
29
|
-
fixed: number;
|
|
30
|
-
lo: number;
|
|
31
|
-
hi: number;
|
|
32
|
-
cap: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare function portSpanOf(n: PortableShape, side: Side): PortSpan;
|
|
35
|
-
export declare function gateMarkRect(mark: {
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
angle: number;
|
|
39
|
-
}): Rect;
|
|
40
|
-
export declare function geometryBounds(geometry: WorkflowGeometry): GeometryBounds;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { WorkflowGraph } from "./types.js";
|
|
2
|
-
export declare function canonicalGraphValue(graph: WorkflowGraph): Record<string, unknown>;
|
|
3
|
-
export declare function canonicalGraphJson(graph: WorkflowGraph): string;
|
|
4
|
-
export declare function canonicalGraphDigest(graph: WorkflowGraph): string;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Rect } from "./types.js";
|
|
2
|
-
export declare const GRID_UNIT = 16;
|
|
3
|
-
export interface Cell {
|
|
4
|
-
column: number;
|
|
5
|
-
row: number;
|
|
6
|
-
columnSpan: number;
|
|
7
|
-
rowSpan: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const cellX: (column: number) => number;
|
|
10
|
-
export declare const cellY: (row: number) => number;
|
|
11
|
-
export declare const cellMidX: (column: number) => number;
|
|
12
|
-
export declare const cellMidY: (row: number) => number;
|
|
13
|
-
export declare const cellsAcross: (px: number) => number;
|
|
14
|
-
export declare const cellBox: (cell: Cell) => Rect;
|
|
15
|
-
export declare const middleOf: (start: number, span: number) => number;
|
|
16
|
-
export declare const extentOf: (cell: Cell) => [number, number, number, number];
|
|
17
|
-
export declare function boxesMeet(a: Cell, b: Cell): "overlap" | "touch" | null;
|
|
18
|
-
export declare const cellKey: (column: number, row: number) => number;
|
|
19
|
-
export declare const keyColumn: (key: number) => number;
|
|
20
|
-
export declare const keyRow: (key: number) => number;
|
|
21
|
-
export declare const pointKey: (x: number, y: number) => string;
|
|
22
|
-
export interface CellIndex {
|
|
23
|
-
has(key: number): boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare function occupancyOf(boxes: Iterable<Cell>): Set<number>;
|
|
26
|
-
export declare function sharedRows(a: Cell, b: Cell): [number, number] | null;
|
|
27
|
-
export declare function betweenColumns(a: Cell, b: Cell): [number, number] | null;
|
|
28
|
-
export interface Adjacency {
|
|
29
|
-
band: [number, number];
|
|
30
|
-
rows: [number, number];
|
|
31
|
-
forward: boolean;
|
|
32
|
-
}
|
|
33
|
-
export declare function adjacencyOf(a: Cell, b: Cell, occupied: CellIndex): Adjacency | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EdgeIdentity } from "./types.js";
|
|
2
|
-
export declare function transitionIdentity(source: string, verb: string, index: number, target: string): EdgeIdentity;
|
|
3
|
-
export declare function handlerIdentity(source: string, verb: "onError" | "onStall", target: string): EdgeIdentity;
|
|
4
|
-
export declare function startIdentity(index: number, target: string): EdgeIdentity;
|
|
5
|
-
export declare function identityKey(identity: EdgeIdentity): string;
|
|
6
|
-
export declare function sameIdentity(a: EdgeIdentity, b: EdgeIdentity): boolean;
|
|
7
|
-
export declare function uniqueIdentities(identities: readonly EdgeIdentity[]): EdgeIdentity[];
|
|
8
|
-
export declare function membersInclude(members: readonly EdgeIdentity[], identity: EdgeIdentity): boolean;
|
|
9
|
-
export declare function isEditableIdentity(identity: EdgeIdentity): boolean;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from "./types.js";
|
|
2
|
-
export { computeLayout } from "./layout.js";
|
|
3
|
-
export { entryCardSize, entryDotSize } from "./place.js";
|
|
4
|
-
export type { EntryElementSize } from "./place.js";
|
|
5
|
-
export { geometryToSvg, escapeXml, orthoPath } from "./svg.js";
|
|
6
|
-
export type { SvgOptions } from "./svg.js";
|
|
7
|
-
export { GRID_UNIT } from "./grid.js";
|
|
8
|
-
export type { Cell } from "./grid.js";
|
|
9
|
-
export { normalize, flattenTransitions } from "./normalize.js";
|
|
10
|
-
export type { NormalizedEdge, NormalizedGraph, NormalizedNode } from "./normalize.js";
|
|
11
|
-
export { findSpine } from "./heuristic.js";
|
|
12
|
-
export type { SpineSearchResult } from "./heuristic.js";
|
|
13
|
-
export { SPINE_SEARCH_EXPANSIONS, SPINE_DEPTH_CAP } from "./constants.js";
|
|
14
|
-
export { identityKey, isEditableIdentity, membersInclude, sameIdentity, uniqueIdentities } from "./identity.js";
|
|
15
|
-
export { classifyTriggerContext, hasStartCapableTrigger, humanizeCron, isRuntimeLiveTrigger, renderFilter, } from "./context.js";
|
|
16
|
-
export type { ClassifyOptions, FilterConditionLike, FilterNodeLike, TriggerRowLike } from "./context.js";
|
|
17
|
-
export { detoursOf, verifyGeometry } from "./verify.js";
|
|
18
|
-
export type { DetourMeasurement } from "./verify.js";
|
|
19
|
-
export { DETOUR_REPORT } from "./constants.js";
|
|
20
|
-
export { geometryBounds, textRect, TEXT_ASCENT_RATIO, TEXT_DESCENT_RATIO } from "./geometry-core.js";
|
|
21
|
-
export { fmtDuration, measure } from "./text.js";
|
|
22
|
-
export { BAR_R, BAR_TALL_SPAN, BOX_R, ENTRY_GLYPH_W, ENTRY_PAD_X, ENTRY_PAD_Y, FS_EDGE, FS_NODE, FS_NOTE, GATE_BAR_GAP, GATE_BAR_LEN, GATE_BAR_W, GRAPH_FONT_FAMILY, LAYOUT_LIMITS, LH_ENTRY_SUB, LINE_H, NODE_PAD, PAL, PILL_PAD, RING_INNER_OPACITY, RING_INNER_W, RING_INSET, RING_OUTER_W, } from "./constants.js";
|
|
23
|
-
export { canonicalGraphDigest, canonicalGraphJson, canonicalGraphValue } from "./graph-digest.js";
|
|
24
|
-
export { SYNTHETIC_START_NODE_ID, addressableNodeIds, hasEffectiveLayout, isCanonicallyEmptyLayout, layoutNodeReferences, } from "./presence.js";
|