@orchestraworks/cli 0.3.0 → 0.5.1

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.
Files changed (47) hide show
  1. package/README.md +23 -1256
  2. package/dist/cli/core/banner.d.ts +10 -0
  3. package/dist/cli/core/banner.js +63 -0
  4. package/dist/cli/core/invocation.js +1 -1
  5. package/dist/cli/core/package-root.d.ts +3 -2
  6. package/dist/cli/core/package-root.js +4 -4
  7. package/dist/cli/core/skill-pointer.d.ts +7 -2
  8. package/dist/cli/core/skill-pointer.js +13 -3
  9. package/dist/cli/factory/init.d.ts +1 -1
  10. package/dist/cli/factory/init.js +41 -13
  11. package/dist/cli/main.js +5 -3
  12. package/dist/cli/skill-install-fs.d.ts +0 -2
  13. package/dist/cli/skill-install-fs.js +0 -2
  14. package/dist/cli/skill.js +20 -7
  15. package/docs/REFERENCE.md +1278 -0
  16. package/node_modules/@orchestraworks/client/package.json +1 -1
  17. package/package.json +7 -8
  18. package/skills/orchestra/SKILL.md +151 -110
  19. package/skills/orchestra-fdk/SKILL.md +327 -120
  20. package/skills/orchestra-fdk/references/authoring.md +26 -15
  21. package/skills/orchestra-fdk/references/environment.md +39 -24
  22. package/templates/bug-fix/tsconfig.json +12 -0
  23. package/templates/engineering-team/lib/setup.sh +16 -0
  24. package/templates/engineering-team/package.json +1 -1
  25. package/templates/todo-factory/package.json +1 -1
  26. package/node_modules/@orchestraworks/workflow-render/LICENSE +0 -202
  27. package/node_modules/@orchestraworks/workflow-render/dist/constants.d.ts +0 -98
  28. package/node_modules/@orchestraworks/workflow-render/dist/context.d.ts +0 -37
  29. package/node_modules/@orchestraworks/workflow-render/dist/geometry-core.d.ts +0 -40
  30. package/node_modules/@orchestraworks/workflow-render/dist/graph-digest.d.ts +0 -4
  31. package/node_modules/@orchestraworks/workflow-render/dist/grid.d.ts +0 -33
  32. package/node_modules/@orchestraworks/workflow-render/dist/heuristic.d.ts +0 -7
  33. package/node_modules/@orchestraworks/workflow-render/dist/identity.d.ts +0 -9
  34. package/node_modules/@orchestraworks/workflow-render/dist/index.d.ts +0 -24
  35. package/node_modules/@orchestraworks/workflow-render/dist/index.js +0 -1
  36. package/node_modules/@orchestraworks/workflow-render/dist/layout.d.ts +0 -6
  37. package/node_modules/@orchestraworks/workflow-render/dist/normalize.d.ts +0 -33
  38. package/node_modules/@orchestraworks/workflow-render/dist/place.d.ts +0 -81
  39. package/node_modules/@orchestraworks/workflow-render/dist/ports.d.ts +0 -15
  40. package/node_modules/@orchestraworks/workflow-render/dist/presence.d.ts +0 -6
  41. package/node_modules/@orchestraworks/workflow-render/dist/route-cells.d.ts +0 -15
  42. package/node_modules/@orchestraworks/workflow-render/dist/sha256.d.ts +0 -3
  43. package/node_modules/@orchestraworks/workflow-render/dist/svg.d.ts +0 -7
  44. package/node_modules/@orchestraworks/workflow-render/dist/text.d.ts +0 -14
  45. package/node_modules/@orchestraworks/workflow-render/dist/types.d.ts +0 -310
  46. package/node_modules/@orchestraworks/workflow-render/dist/verify.d.ts +0 -26
  47. package/node_modules/@orchestraworks/workflow-render/package.json +0 -42
@@ -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,7 +0,0 @@
1
- import type { NormalizedGraph } from "./normalize.js";
2
- export interface SpineSearchResult {
3
- spine: string[];
4
- expansions: number;
5
- exhausted: boolean;
6
- }
7
- export declare function findSpine(norm: NormalizedGraph): SpineSearchResult;
@@ -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";