@pipelex/mthds-ui 0.34.0 → 0.35.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 -4
- package/dist/chunk-F63A55IE.js +54 -0
- package/dist/chunk-F63A55IE.js.map +1 -0
- package/dist/chunk-JJG2TO7P.js +473 -0
- package/dist/chunk-JJG2TO7P.js.map +1 -0
- package/dist/form/react/index.d.ts +1 -1
- package/dist/graph/index.d.ts +2 -2
- package/dist/graph/react/detail/DetailPanel.css +18 -0
- package/dist/graph/react/index.d.ts +2 -2
- package/dist/graph/react/index.js +257 -291
- package/dist/graph/react/index.js.map +1 -1
- package/dist/graph/react/viewer/GraphToolbar.css +61 -0
- package/dist/index.d.ts +1 -1
- package/dist/progressSnapshot-VZ4PLul9.d.ts +191 -0
- package/dist/standalone/graph-standalone.html +80 -1
- package/dist/standalone/graph-viewer.css +79 -0
- package/dist/standalone/graph-viewer.js +1 -1
- package/dist/static-graph/index.d.ts +1 -1
- package/dist/timeline/index.d.ts +339 -0
- package/dist/timeline/index.js +70 -0
- package/dist/timeline/index.js.map +1 -0
- package/dist/timeline/react/RunTimeline.css +503 -0
- package/dist/timeline/react/index.d.ts +68 -0
- package/dist/timeline/react/index.js +402 -0
- package/dist/timeline/react/index.js.map +1 -0
- package/dist/{types-MvxsDLCo.d.ts → types-CTrrBpQf.d.ts} +1 -1
- package/package.json +10 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/timeline/progressSnapshot.ts","../src/timeline/invocationPath.ts","../src/timeline/snapshotFreshness.ts","../src/timeline/timelineRows.ts","../src/timeline/timelineTime.ts"],"sourcesContent":["/**\n * The progress snapshot of the hosted progress contract, as data.\n *\n * A snapshot is the state of a run's progress at one moment: which invocations\n * of which pipes have started, ended or been skipped, how far each batch has\n * got, which outcome each condition took, and where the run is retrying or\n * stuck. It is defined apart from the carriers that deliver it (a progress\n * route a client polls, a frame that tells a browser to read it again, the\n * state of a task on another workflow platform), so these types model the\n * snapshot alone and name no carrier and no workflow engine.\n *\n * Field names, optionality and the closed vocabularies follow the contract\n * word for word. A required field is always present, `null` where its type\n * says so; an optional field is absent when it does not apply, never `null`.\n * A reader ignores a member it does not know, so nothing here rejects an\n * unknown field, and the fields the contract calls open strings\n * (`pipe_type`, `degradation.reason`) are typed `string`.\n */\n\n/** RFC 3339 in UTC, written with `Z` in a snapshot, with fractional seconds when recorded. */\nexport type ProgressTimestamp = string;\n\n/** Whether the events a snapshot was projected from are a live run's or a dry run's. */\nexport const PROGRESS_MODE = {\n LIVE: \"live\",\n DRY: \"dry\",\n} as const;\n\nexport type ProgressMode = (typeof PROGRESS_MODE)[keyof typeof PROGRESS_MODE];\n\n/**\n * Where the run stands: accepted and not yet started, going, ended with its\n * result, ended in failure, or stopped before its end.\n */\nexport const RUN_PROGRESS_STATUS = {\n PENDING: \"pending\",\n RUNNING: \"running\",\n SUCCEEDED: \"succeeded\",\n FAILED: \"failed\",\n CANCELED: \"canceled\",\n} as const;\n\nexport type RunProgressStatus = (typeof RUN_PROGRESS_STATUS)[keyof typeof RUN_PROGRESS_STATUS];\n\n/**\n * An invocation's status. These are the words a run graph uses for its nodes,\n * the same set as the graph's `PipeStatus`:\n *\n * - `scheduled`: an item of a batch that has fanned out, not yet started;\n * - `running`: started its latest attempt and not ended it;\n * - `succeeded`: ended its latest attempt with its output;\n * - `failed`: ended its latest attempt in failure;\n * - `skipped`: skipped in its latest attempt, a successful end with no output of its own;\n * - `canceled`: had not ended when the run ended.\n */\nexport const INVOCATION_STATUS = {\n SCHEDULED: \"scheduled\",\n RUNNING: \"running\",\n SUCCEEDED: \"succeeded\",\n FAILED: \"failed\",\n SKIPPED: \"skipped\",\n CANCELED: \"canceled\",\n} as const;\n\nexport type InvocationStatus = (typeof INVOCATION_STATUS)[keyof typeof INVOCATION_STATUS];\n\n/** The reasons the platform emits today. `ProgressDegradation.reason` stays an open string. */\nexport const DEGRADATION_REASON = {\n WORKFLOW_TASK_FAILING: \"workflow_task_failing\",\n STATUS_UNAVAILABLE: \"status_unavailable\",\n} as const;\n\n/**\n * The run status's assessment of a run that is not making progress. A snapshot\n * carries it whole as its own `degradation`, and on the invocation it concerns.\n * Every member is always present, `null` where its type says so.\n */\nexport interface ProgressDegradation {\n /** Why the run reads degraded. An open string: show `message` for a reason you do not know. */\n reason: string;\n /** The assessment in words, for a person. Shown as it is, never parsed. */\n message: string;\n /** How many times in a row the failing execution has failed to advance. */\n failed_attempts: number | null;\n /** When that series of failures began, or the latest time it can have begun. */\n failing_since: ProgressTimestamp | null;\n /** When the platform ends the run as failed if the series is still going on then. */\n ends_at: ProgressTimestamp | null;\n}\n\n/** A batch's counts of its items. An item `scheduled` or `canceled` is counted in none of the three. */\nexport interface BatchProgress {\n /** The fan-out's item count. */\n total: number;\n /** Items `succeeded` or `skipped`. */\n done: number;\n /** Items `running`. */\n running: number;\n /** Items `failed`. */\n failed: number;\n}\n\n/** A condition's resolution. */\nexport interface ConditionProgress {\n /** The outcome map's key that matched, or `null` when the condition took its default outcome. */\n selected_outcome: string | null;\n}\n\n/** The latest failure of an invocation's work, a health annotation. */\nexport interface InvocationFailure {\n /** The failure under the run's error disclosure: its own message when written for the caller, else a placeholder. */\n message: string;\n /** When it failed, when known. */\n at?: ProgressTimestamp;\n}\n\n/** One attempt of one execution: an entry of a chain. */\nexport interface ExecutionAttempt {\n /** Opaque. Names the execution, the same in each of its attempts. */\n execution: string;\n /** Counts from 1. */\n attempt: number;\n}\n\n/** One run of one pipe inside a run, named by its invocation path. */\nexport interface ProgressInvocation {\n /** Its invocation path, from the run's entry pipe. */\n path: string;\n /** The bare code of the pipe it runs, which a timeline labels its row with. */\n pipe_code: string;\n /** The same pipe's `pipe_ref`. */\n pipe_ref: string;\n /** The pipe's type, such as `PipeSequence` or `PipeLLM`: an open string. */\n pipe_type: string;\n status: InvocationStatus;\n /** The start of its latest attempt; `null` while `scheduled`, and when no start of that attempt was recorded. */\n started_at: ProgressTimestamp | null;\n /** The end of its latest attempt; `null` while `scheduled` or `running`, and when `canceled`. */\n ended_at: ProgressTimestamp | null;\n /** On a `PipeSequence`, the number of steps its author wrote. */\n step_count?: number;\n /** On a `PipeParallel`, the number of its branches. */\n branch_count?: number;\n /** On a `skipped` invocation, why it was skipped. */\n skip_reason?: string;\n /** On a `PipeBatch` that has fanned out. */\n batch?: BatchProgress;\n /** On a `PipeCondition` that has resolved. */\n condition?: ConditionProgress;\n /** Health annotation: how many times its work has been tried, present only when more than once. */\n attempts?: number;\n /** Health annotation: the latest failure of its work. */\n last_failure?: InvocationFailure;\n /** Health annotation: the run is stuck at this invocation. */\n degradation?: ProgressDegradation;\n}\n\n/** The state of a run's progress at one moment. */\nexport interface ProgressSnapshot {\n pipeline_run_id: string;\n /** The mode of the events it was projected from. */\n mode: ProgressMode;\n status: RunProgressStatus;\n /** What a reader compares two snapshots of one run by: the count of distinct events projected. */\n version: number;\n /** When the snapshot was projected. */\n assembled_at: ProgressTimestamp;\n /** One line saying how far the run has got. Shown as it is, never parsed. */\n summary: string;\n /** Present only on a snapshot of part of a run: the path of the invocation it starts at. */\n root_path?: string;\n /** Present only on a snapshot of part of a run: the chain of the attempt it was projected from. */\n chain?: ExecutionAttempt[];\n /** The run status's degradation, present when the run reads degraded. */\n degradation?: ProgressDegradation;\n /** Every invocation the snapshot knows, each before its descendants. */\n invocations: ProgressInvocation[];\n}\n\n/** True once the run has ended: `succeeded`, `failed` or `canceled`. */\nexport function isRunEnded(status: RunProgressStatus): boolean {\n return (\n status === RUN_PROGRESS_STATUS.SUCCEEDED ||\n status === RUN_PROGRESS_STATUS.FAILED ||\n status === RUN_PROGRESS_STATUS.CANCELED\n );\n}\n\n/**\n * A timestamp as the contract writes one: a date, `T`, a time with fractional\n * seconds when they were recorded, then `Z`, or an offset such as `+00:00`,\n * which the status read may write. Case-sensitive on purpose: the contract\n * writes `T` and `Z` in upper case and nothing else, so a lower-case `t` or `z`,\n * which RFC 3339 also allows, is read as no timestamp rather than handed to a\n * JavaScript engine that may or may not accept it.\n */\nconst TIMESTAMP_PATTERN = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})(?:\\.(\\d+))?(Z|[+-]\\d{2}:\\d{2})$/;\n\n/** A timestamp split where a double stops being exact. */\ninterface ParsedTimestamp {\n /** Whole milliseconds since the epoch, which a double holds exactly. */\n wholeMs: number;\n /** The fractional digits past the millisecond, trailing zeros dropped: `\"0001\"` for `.0340001`. */\n subMsDigits: string;\n}\n\nfunction parseTimestamp(timestamp: ProgressTimestamp | null | undefined): ParsedTimestamp | null {\n if (!timestamp) return null;\n const match = TIMESTAMP_PATTERN.exec(timestamp);\n if (!match) return null;\n const [, base, fraction = \"\", offset] = match;\n const millis = fraction.slice(0, 3).padEnd(3, \"0\");\n const wholeMs = Date.parse(`${base}.${millis}${offset}`);\n if (Number.isNaN(wholeMs)) return null;\n return { wholeMs, subMsDigits: fraction.slice(3).replace(/0+$/, \"\") };\n}\n\n/**\n * A timestamp as milliseconds since the epoch, keeping any precision finer than\n * a millisecond as a fraction, or `null` when it is not an RFC 3339 timestamp\n * in the form the contract writes (see `TIMESTAMP_PATTERN`): anything else,\n * an offset-less time included, is `null` rather than whatever `Date.parse`\n * makes of it, which for an offset-less time is the reader's local time.\n *\n * Good to well under a microsecond, which is all a bar needs. A double cannot\n * hold every digit a source may record past the millisecond, so to order two\n * timestamps exactly, use `compareTimestamps`.\n */\nexport function timestampMs(timestamp: ProgressTimestamp | null | undefined): number | null {\n const parsed = parseTimestamp(timestamp);\n if (!parsed) return null;\n return parsed.subMsDigits ? parsed.wholeMs + Number(`0.${parsed.subMsDigits}`) : parsed.wholeMs;\n}\n\n/**\n * How two timestamps are ordered, exactly, at whatever precision they carry:\n * negative when `a` is the earlier, positive when it is the later, 0 when both\n * name the same moment, and `null` when either is not a timestamp.\n *\n * Whole milliseconds are compared first, then the digits past the millisecond\n * as digits, so `…07.0340001Z` reads earlier than `…07.03400011Z`, which as\n * epoch milliseconds in a double are one number. Two snapshots of one version\n * are told apart by `assembled_at` alone, and the contract lets a source record\n * any number of fractional digits, so the comparison never rounds them.\n */\nexport function compareTimestamps(\n a: ProgressTimestamp | null | undefined,\n b: ProgressTimestamp | null | undefined,\n): number | null {\n const left = parseTimestamp(a);\n const right = parseTimestamp(b);\n if (!left || !right) return null;\n if (left.wholeMs !== right.wholeMs) return left.wholeMs < right.wholeMs ? -1 : 1;\n const width = Math.max(left.subMsDigits.length, right.subMsDigits.length);\n const leftDigits = left.subMsDigits.padEnd(width, \"0\");\n const rightDigits = right.subMsDigits.padEnd(width, \"0\");\n if (leftDigits === rightDigits) return 0;\n return leftDigits < rightDigits ? -1 : 1;\n}\n","/**\n * Invocation paths: the name of each invocation in a run.\n *\n * A path is the route from the run's entry pipe to the invocation, one segment\n * per controller level: `filings.review_filings/step_3/item_2/step_1` is the\n * first step of the sequence that the batch at step 3 runs for its second item.\n * The root segment is the entry pipe's `pipe_ref`, which never contains `/`,\n * and an outcome key is percent-encoded, so splitting on `/` is exact.\n *\n * step_<n> a PipeSequence's step n, from 1, binding steps counted\n * branch_<n> a PipeParallel's branch n, from 1\n * item_<n> a PipeBatch's item n, from 1 (the list's index 0 is item_1)\n * outcome_<key> a PipeCondition's outcome group, named by its first key\n * default a PipeCondition's group that only the default outcome runs\n *\n * An ordinal counts from 1 with no leading zero. A segment matching none of the\n * forms is kept as `unknown` rather than rejected, so a reader keeps drawing a\n * path a later grammar adds a segment to.\n */\n\nexport const PATH_SEGMENT_KIND = {\n STEP: \"step\",\n BRANCH: \"branch\",\n ITEM: \"item\",\n OUTCOME: \"outcome\",\n DEFAULT: \"default\",\n UNKNOWN: \"unknown\",\n} as const;\n\nexport type PathSegmentKind = (typeof PATH_SEGMENT_KIND)[keyof typeof PATH_SEGMENT_KIND];\n\n/** A segment with a number: a sequence's step, a parallel's branch, a batch's item. */\nexport interface OrdinalPathSegment {\n kind:\n | typeof PATH_SEGMENT_KIND.STEP\n | typeof PATH_SEGMENT_KIND.BRANCH\n | typeof PATH_SEGMENT_KIND.ITEM;\n ordinal: number;\n raw: string;\n}\n\n/** A condition's outcome group, named by its first key, decoded. */\nexport interface OutcomePathSegment {\n kind: typeof PATH_SEGMENT_KIND.OUTCOME;\n key: string;\n raw: string;\n}\n\n/** A condition's group that only the default outcome runs. */\nexport interface DefaultPathSegment {\n kind: typeof PATH_SEGMENT_KIND.DEFAULT;\n raw: string;\n}\n\n/** A segment the grammar this reader knows does not define. */\nexport interface UnknownPathSegment {\n kind: typeof PATH_SEGMENT_KIND.UNKNOWN;\n raw: string;\n}\n\nexport type PathSegment =\n | OrdinalPathSegment\n | OutcomePathSegment\n | DefaultPathSegment\n | UnknownPathSegment;\n\nconst PATH_SEPARATOR = \"/\";\nconst ORDINAL_SEGMENT = /^(step|branch|item)_([1-9][0-9]*)$/;\nconst OUTCOME_PREFIX = \"outcome_\";\nconst DEFAULT_SEGMENT = \"default\";\n\n/** The root segment (the entry pipe's `pipe_ref`) and the segments after it. */\nexport function splitInvocationPath(path: string): { root: string; segments: string[] } {\n const [root, ...segments] = path.split(PATH_SEPARATOR);\n return { root, segments };\n}\n\n/** The number of a path's segments, the root included: the entry pipe's path has depth 1. */\nexport function invocationPathDepth(path: string): number {\n return path.split(PATH_SEPARATOR).length;\n}\n\n/** The path of the invocation one level up, or `null` for a root path. */\nexport function parentInvocationPath(path: string): string | null {\n const cut = path.lastIndexOf(PATH_SEPARATOR);\n return cut < 0 ? null : path.slice(0, cut);\n}\n\n/** The last segment of a path, or `null` for a root path. */\nexport function lastPathSegment(path: string): PathSegment | null {\n const cut = path.lastIndexOf(PATH_SEPARATOR);\n return cut < 0 ? null : parsePathSegment(path.slice(cut + 1));\n}\n\n/**\n * An outcome key decoded from its percent-encoded form: `high%20risk` is\n * `high risk`. Each `%XX` is one byte of the key's UTF-8 form. A malformed\n * encoding is returned as written rather than thrown, since a label is better\n * shown raw than not at all.\n */\nexport function decodeOutcomeKey(encoded: string): string {\n try {\n return decodeURIComponent(encoded);\n } catch {\n return encoded;\n }\n}\n\n/** One segment after the root, parsed. */\nexport function parsePathSegment(raw: string): PathSegment {\n const ordinal = ORDINAL_SEGMENT.exec(raw);\n if (ordinal) {\n const kind = ordinal[1] as OrdinalPathSegment[\"kind\"];\n return { kind, ordinal: Number.parseInt(ordinal[2], 10), raw };\n }\n if (raw.startsWith(OUTCOME_PREFIX)) {\n return {\n kind: PATH_SEGMENT_KIND.OUTCOME,\n key: decodeOutcomeKey(raw.slice(OUTCOME_PREFIX.length)),\n raw,\n };\n }\n if (raw === DEFAULT_SEGMENT) return { kind: PATH_SEGMENT_KIND.DEFAULT, raw };\n return { kind: PATH_SEGMENT_KIND.UNKNOWN, raw };\n}\n\n/** True for a segment that carries an ordinal: a step, a branch or an item. */\nexport function isOrdinalSegment(segment: PathSegment | null): segment is OrdinalPathSegment {\n return (\n segment !== null &&\n (segment.kind === PATH_SEGMENT_KIND.STEP ||\n segment.kind === PATH_SEGMENT_KIND.BRANCH ||\n segment.kind === PATH_SEGMENT_KIND.ITEM)\n );\n}\n","import {\n compareTimestamps,\n isRunEnded,\n timestampMs,\n type ProgressSnapshot,\n} from \"./progressSnapshot\";\n\n/**\n * The stream of progress a snapshot belongs to, as one string: its run, its\n * mode, and the part of the run it covers (`root_path`, absent for the whole\n * run). Two snapshots with the same key are compared by `fresherSnapshot`; two\n * with different keys are not compared at all. A reader keys on it whatever\n * belongs to one stream, as the timeline keys what its reader expanded and its\n * own reading clock.\n */\nexport function progressStreamKey(snapshot: ProgressSnapshot): string {\n return JSON.stringify([snapshot.pipeline_run_id, snapshot.mode, snapshot.root_path ?? null]);\n}\n\n/**\n * True when two snapshots describe the same stream of progress: one run, one\n * mode, and the same part of it. Two snapshots that differ here are not\n * compared at all; the one a reader is handed is a different run to draw.\n */\nexport function isSameProgressStream(a: ProgressSnapshot, b: ProgressSnapshot): boolean {\n return progressStreamKey(a) === progressStreamKey(b);\n}\n\n/**\n * Of the snapshot a reader holds and one it has just read, the one to keep.\n *\n * Reads that overlap can answer out of order, so a reader never simply takes\n * the latest answer. The contract's rule, its first clause before the other two:\n *\n * 1. Never a `pending` or `running` snapshot over one saying the run has ended,\n * whatever their versions and their `assembled_at`: an ended run does not\n * resume, and a read lagging behind the writes can project an ended run from\n * fewer events than an earlier read projected it running from.\n * 2. Of two snapshots of different versions, the higher version.\n * 3. Of two of the same version, the later `assembled_at`: the later projection\n * is the one that saw, say, a timeout end the run with no event between them.\n * The two are compared exactly, at every fractional digit they carry.\n *\n * Ties keep the snapshot held, so a repeated read changes nothing. A snapshot of\n * another run, another mode or another part of a run replaces the held one, since\n * there is nothing to compare it with. Returns one of its two arguments, never a\n * copy, so a caller can tell by identity whether anything changed.\n */\nexport function fresherSnapshot(\n held: ProgressSnapshot | null | undefined,\n incoming: ProgressSnapshot,\n): ProgressSnapshot {\n if (!held || held === incoming) return incoming;\n if (!isSameProgressStream(held, incoming)) return incoming;\n\n const heldEnded = isRunEnded(held.status);\n const incomingEnded = isRunEnded(incoming.status);\n if (heldEnded !== incomingEnded) return heldEnded ? held : incoming;\n\n if (incoming.version !== held.version) {\n return incoming.version > held.version ? incoming : held;\n }\n const order = compareTimestamps(incoming.assembled_at, held.assembled_at);\n // An `assembled_at` that cannot be read loses: the incoming one when it is\n // unreadable, else the held one.\n if (order === null) return timestampMs(incoming.assembled_at) === null ? held : incoming;\n return order > 0 ? incoming : held;\n}\n","import {\n INVOCATION_STATUS,\n type BatchProgress,\n type InvocationStatus,\n type ProgressInvocation,\n type ProgressSnapshot,\n} from \"./progressSnapshot\";\nimport {\n PATH_SEGMENT_KIND,\n isOrdinalSegment,\n lastPathSegment,\n parentInvocationPath,\n type PathSegment,\n} from \"./invocationPath\";\n\n/**\n * A batch holding more items than this starts collapsed into its one row. A\n * timeline row is one line, so the bar is set higher than the graph's own\n * auto-fold, which folds a controller drawn as a block of cards.\n */\nexport const DEFAULT_WIDE_BATCH_THRESHOLD = 10;\n\nexport interface TimelineRowsOptions {\n /**\n * The batches a reader expanded (`true`) or collapsed (`false`), by path. A\n * batch absent from it takes the default: collapsed when wide, else expanded.\n */\n expandedBatches?: Readonly<Record<string, boolean>>;\n /** A batch with more items than this is wide. Defaults to `DEFAULT_WIDE_BATCH_THRESHOLD`. */\n wideBatchThreshold?: number;\n}\n\n/** A run of consecutive items sharing one status, in item order: one cell of a batch's strip. */\nexport interface TimelineStripSegment {\n status: InvocationStatus;\n /** The number of the first item of the run, from 1. */\n firstItem: number;\n /** How many items the run holds. */\n count: number;\n}\n\n/** What a batch's one row shows of its items. */\nexport interface TimelineBatch {\n /** The snapshot's own counts, `null` when it carries none (a batch that has not fanned out). */\n counts: BatchProgress | null;\n /** The total the row reads: the counts' `total`, else the number of items the snapshot holds. */\n total: number;\n /** The items' states in item order, consecutive equal states merged. */\n strip: TimelineStripSegment[];\n /** True when the batch holds more items than the wide threshold. */\n wide: boolean;\n /** True when its item rows are drawn. */\n expanded: boolean;\n /**\n * How many of its item rows are hidden: none while expanded, and while\n * collapsed every item but the ones kept in view, those holding a failed or\n * stuck invocation, themselves or anywhere beneath them.\n */\n hiddenItemCount: number;\n}\n\n/**\n * Which outcome a condition's branch row stands for. When its condition has\n * resolved, the outcome is the resolution's, the key the condition matched,\n * which may differ from the key in the path: a path names an outcome group by\n * the first key that runs its pipe. A dry run's condition, which runs every\n * group and resolves none, names each by its path.\n */\nexport interface TimelineOutcome {\n /** The outcome map's key, decoded; `null` for the default outcome. */\n key: string | null;\n /** True when it comes from the condition's `selected_outcome`, false when read off the path. */\n fromResolution: boolean;\n}\n\n/**\n * Why an item row of a collapsed batch is drawn anyway: an invocation that\n * failed, or one where the run is stuck (carrying `degradation`), is the item\n * itself or lies anywhere beneath it. A failure anywhere beneath wins over a\n * stuck invocation.\n */\nexport const KEPT_VISIBLE_REASON = {\n FAILED: \"failed\",\n DEGRADED: \"degraded\",\n} as const;\n\nexport type KeptVisibleReason = (typeof KEPT_VISIBLE_REASON)[keyof typeof KEPT_VISIBLE_REASON];\n\n/** One drawn row: one invocation, at its place in the tree. */\nexport interface TimelineRow {\n path: string;\n /** The path of the row it nests under: its nearest ancestor the snapshot holds, `null` at the top. */\n parentPath: string | null;\n /** Its nesting level among the drawn rows, 0 at the top. */\n depth: number;\n /** The last segment of its path, `null` for the entry pipe's. */\n segment: PathSegment | null;\n /** Its place under its parent, worded as the summary words it: `step 2 of 4`, `item 3 of 40`, `outcome detailed`. */\n placeLabel: string | null;\n /** On a condition's branch, the outcome it stands for. */\n outcome: TimelineOutcome | null;\n invocation: ProgressInvocation;\n /** How many child rows it has in the snapshot, drawn or not. */\n childCount: number;\n /** On a batch, what its row shows of its items. */\n batch: TimelineBatch | null;\n /** Set on an item row drawn under a collapsed batch, saying why. */\n keptVisible: KeptVisibleReason | null;\n}\n\ninterface TreeNode {\n invocation: ProgressInvocation;\n order: number;\n segment: PathSegment | null;\n parentPath: string | null;\n children: TreeNode[];\n /** What a collapsed batch keeps this node in view for, read over its whole subtree. */\n trouble: KeptVisibleReason | null;\n}\n\nfunction compareSiblings(a: TreeNode, b: TreeNode): number {\n const aOrdinal = isOrdinalSegment(a.segment) ? a.segment.ordinal : null;\n const bOrdinal = isOrdinalSegment(b.segment) ? b.segment.ordinal : null;\n if (aOrdinal !== null && bOrdinal !== null && aOrdinal !== bOrdinal) return aOrdinal - bOrdinal;\n if (aOrdinal !== null && bOrdinal === null) return -1;\n if (aOrdinal === null && bOrdinal !== null) return 1;\n return a.order - b.order;\n}\n\n/**\n * The snapshot's invocations as a tree, each under its nearest ancestor the\n * snapshot holds. A whole-run snapshot holds every ancestor, so this is its\n * path tree; a snapshot of part of a run starts at its `root_path`, and an\n * invocation whose parent is missing still nests under what is there rather\n * than being lost. Children are ordered by the number in their segment, and\n * outcome groups, which carry none, keep the snapshot's order, the order they\n * started in. A path the snapshot lists twice keeps its first entry.\n */\nfunction buildTree(snapshot: ProgressSnapshot): TreeNode[] {\n const byPath = new Map<string, TreeNode>();\n snapshot.invocations.forEach((invocation, order) => {\n if (byPath.has(invocation.path)) return;\n byPath.set(invocation.path, {\n invocation,\n order,\n segment: lastPathSegment(invocation.path),\n parentPath: null,\n children: [],\n trouble: null,\n });\n });\n\n const roots: TreeNode[] = [];\n for (const node of byPath.values()) {\n let ancestor = parentInvocationPath(node.invocation.path);\n while (ancestor !== null && !byPath.has(ancestor)) ancestor = parentInvocationPath(ancestor);\n const parent = ancestor === null ? undefined : byPath.get(ancestor);\n if (parent) {\n node.parentPath = parent.invocation.path;\n parent.children.push(node);\n } else {\n roots.push(node);\n }\n }\n for (const node of byPath.values()) node.children.sort(compareSiblings);\n roots.sort((a, b) => a.order - b.order);\n for (const root of roots) markTrouble(root);\n return roots;\n}\n\n/**\n * Sets each node's `trouble` from its whole subtree, bottom-up, once per tree:\n * failed when any invocation in it failed, else degraded when any carries\n * `degradation`, else none. Read over the subtree rather than the node alone,\n * so an item of a collapsed batch stays in view for a failure or a stuck\n * invocation however deep beneath it, inside a nested batch included.\n */\nfunction markTrouble(node: TreeNode): KeptVisibleReason | null {\n let failed = node.invocation.status === INVOCATION_STATUS.FAILED;\n let degraded = node.invocation.degradation !== undefined;\n for (const child of node.children) {\n const reason = markTrouble(child);\n if (reason === KEPT_VISIBLE_REASON.FAILED) failed = true;\n if (reason === KEPT_VISIBLE_REASON.DEGRADED) degraded = true;\n }\n if (failed) node.trouble = KEPT_VISIBLE_REASON.FAILED;\n else if (degraded) node.trouble = KEPT_VISIBLE_REASON.DEGRADED;\n else node.trouble = null;\n return node.trouble;\n}\n\nfunction isItemNode(node: TreeNode): boolean {\n return node.segment?.kind === PATH_SEGMENT_KIND.ITEM;\n}\n\nfunction placeLabelOf(\n segment: PathSegment | null,\n parent: ProgressInvocation | null,\n outcome: TimelineOutcome | null,\n): string | null {\n if (!segment) return null;\n const of = (count: number | undefined) => (count === undefined ? \"\" : ` of ${count}`);\n switch (segment.kind) {\n case PATH_SEGMENT_KIND.STEP:\n return `step ${segment.ordinal}${of(parent?.step_count)}`;\n case PATH_SEGMENT_KIND.BRANCH:\n return `branch ${segment.ordinal}${of(parent?.branch_count)}`;\n case PATH_SEGMENT_KIND.ITEM:\n return `item ${segment.ordinal}${of(parent?.batch?.total)}`;\n case PATH_SEGMENT_KIND.OUTCOME:\n case PATH_SEGMENT_KIND.DEFAULT:\n return outcome && outcome.key !== null ? `outcome ${outcome.key}` : \"default outcome\";\n default:\n return segment.raw;\n }\n}\n\nfunction outcomeOf(node: TreeNode, parent: TreeNode | null): TimelineOutcome | null {\n const segment = node.segment;\n if (segment?.kind !== PATH_SEGMENT_KIND.OUTCOME && segment?.kind !== PATH_SEGMENT_KIND.DEFAULT) {\n return null;\n }\n const resolution = parent?.invocation.condition;\n const outcomeSiblings = parent\n ? parent.children.filter(\n (child) =>\n child.segment?.kind === PATH_SEGMENT_KIND.OUTCOME ||\n child.segment?.kind === PATH_SEGMENT_KIND.DEFAULT,\n ).length\n : 0;\n // A resolved condition ran one outcome group, so its one branch is the\n // outcome it took. Several branches under a resolution contradict that, and\n // then no branch can be told to be the chosen one: each keeps its path's name.\n if (resolution && outcomeSiblings === 1) {\n return { key: resolution.selected_outcome, fromResolution: true };\n }\n return {\n key: segment.kind === PATH_SEGMENT_KIND.OUTCOME ? segment.key : null,\n fromResolution: false,\n };\n}\n\nfunction stripOf(items: TreeNode[]): TimelineStripSegment[] {\n const strip: TimelineStripSegment[] = [];\n items.forEach((item, index) => {\n const status = item.invocation.status;\n const firstItem = isOrdinalSegment(item.segment) ? item.segment.ordinal : index + 1;\n const last = strip[strip.length - 1];\n if (last && last.status === status && last.firstItem + last.count === firstItem) {\n last.count += 1;\n } else {\n strip.push({ status, firstItem, count: 1 });\n }\n });\n return strip;\n}\n\n/**\n * The rows a timeline draws for a snapshot, in drawing order: every invocation\n * before its descendants, nested by path, each labelled with its place under\n * its parent.\n *\n * A batch is one row whatever its width (decision on batch progress display):\n * its row carries the snapshot's counts and a strip of its items' states, and\n * its item rows are drawn only while it is expanded. A wide batch starts\n * collapsed; a narrow one starts expanded; `expandedBatches` overrides either.\n * Collapsed, it still draws each item holding an invocation that failed or\n * where the run is stuck (one carrying `degradation`), whether the item itself\n * or anything beneath it, a nested batch's item included, with everything under\n * it, so the trouble can always be pointed at, along with the rows leading to it.\n *\n * Pure, and a function of the snapshot and the options alone: the same snapshot\n * always yields the same rows, so repainting with a newer snapshot keeps every\n * row it still holds at its place relative to the others.\n */\nexport function buildTimelineRows(\n snapshot: ProgressSnapshot,\n options: TimelineRowsOptions = {},\n): TimelineRow[] {\n const threshold = options.wideBatchThreshold ?? DEFAULT_WIDE_BATCH_THRESHOLD;\n const expandedBatches = options.expandedBatches ?? {};\n const rows: TimelineRow[] = [];\n\n const visit = (\n node: TreeNode,\n parent: TreeNode | null,\n depth: number,\n keptVisible: KeptVisibleReason | null,\n ) => {\n const invocation = node.invocation;\n const items = node.children.filter(isItemNode);\n const isBatch = invocation.batch !== undefined || items.length > 0;\n let batch: TimelineBatch | null = null;\n let expanded = true;\n if (isBatch) {\n const total = invocation.batch?.total ?? items.length;\n const wide = total > threshold;\n expanded = expandedBatches[invocation.path] ?? !wide;\n const keptCount = expanded ? 0 : items.filter((item) => item.trouble !== null).length;\n batch = {\n counts: invocation.batch ?? null,\n total,\n strip: stripOf(items),\n wide,\n expanded,\n hiddenItemCount: expanded ? 0 : items.length - keptCount,\n };\n }\n // A segment is worded against the invocation one level up, and only that\n // one: under an ancestor further up, its step count or batch total would\n // describe another controller.\n const owner =\n parent && parentInvocationPath(invocation.path) === parent.invocation.path ? parent : null;\n const outcome = outcomeOf(node, owner);\n rows.push({\n path: invocation.path,\n parentPath: node.parentPath,\n depth,\n segment: node.segment,\n placeLabel: placeLabelOf(node.segment, owner?.invocation ?? null, outcome),\n outcome,\n invocation,\n childCount: node.children.length,\n batch,\n keptVisible,\n });\n for (const child of node.children) {\n if (expanded || !isItemNode(child)) {\n visit(child, node, depth + 1, null);\n continue;\n }\n if (child.trouble) visit(child, node, depth + 1, child.trouble);\n }\n };\n\n for (const root of buildTree(snapshot)) visit(root, null, 0, null);\n return rows;\n}\n","import {\n INVOCATION_STATUS,\n isRunEnded,\n timestampMs,\n type ProgressInvocation,\n type ProgressSnapshot,\n type ProgressTimestamp,\n} from \"./progressSnapshot\";\n\n/** The stretch of time a timeline's shared axis spans, in epoch milliseconds. */\nexport interface TimelineWindow {\n startMs: number;\n endMs: number;\n}\n\n/** Where one invocation's bar starts and ends on the axis. */\nexport interface TimelineBar {\n startMs: number;\n endMs: number;\n /** True while the bar grows: the invocation is running, so its end is the reading clock. */\n growing: boolean;\n /** True when its end was never recorded: a canceled invocation, drawn to the end of the axis. */\n openEnded: boolean;\n}\n\n/**\n * The reading clock: the moment a running invocation's elapsed time is measured\n * against. A host or a replay may pin it with `now`; otherwise it is the\n * snapshot's `assembled_at`, the moment the snapshot was projected, which is\n * what a reader measures against when it cannot trust its own clock.\n */\nexport function readingClockMs(\n snapshot: ProgressSnapshot,\n now?: ProgressTimestamp | number | null,\n): number | null {\n if (typeof now === \"number\") return Number.isFinite(now) ? now : null;\n if (typeof now === \"string\") return timestampMs(now) ?? timestampMs(snapshot.assembled_at);\n return timestampMs(snapshot.assembled_at);\n}\n\n/** An invocation's recorded moments in epoch milliseconds, each `null` where none was recorded. */\nexport interface InvocationTimes {\n /** The start of its latest attempt. */\n startedMs: number | null;\n /** The end of its latest attempt. */\n endedMs: number | null;\n /** When its last failure happened, when that is known. */\n failedMs: number | null;\n}\n\n/** An invocation's recorded moments, parsed. */\nexport function invocationTimes(invocation: ProgressInvocation): InvocationTimes {\n return {\n startedMs: timestampMs(invocation.started_at),\n endedMs: timestampMs(invocation.ended_at),\n failedMs: timestampMs(invocation.last_failure?.at),\n };\n}\n\n/**\n * Everything a timeline reads of time in one snapshot, parsed once, so that a\n * timeline redrawing as its clock ticks parses no timestamp again: each\n * invocation's moments, and the span of every moment the snapshot recorded.\n */\nexport interface SnapshotTimes {\n /** Each invocation's moments, by path. A path listed twice keeps its first entry's, as its row does. */\n invocations: ReadonlyMap<string, InvocationTimes>;\n /**\n * The axis as far as the snapshot's own records go: from the earliest start\n * to the latest moment recorded, whether a start, an end or a failure, and\n * never spanning zero time. `null` when no invocation has started. Every bar\n * that does not follow the clock lies inside it, and it is the whole axis of\n * a run that has ended.\n */\n recorded: TimelineWindow | null;\n /** The snapshot's `assembled_at`. */\n assembledMs: number | null;\n /** True once the run has ended. */\n ended: boolean;\n}\n\n/** A snapshot's moments, parsed once: see `SnapshotTimes`. */\nexport function snapshotTimes(snapshot: ProgressSnapshot): SnapshotTimes {\n const invocations = new Map<string, InvocationTimes>();\n let startMs = Number.POSITIVE_INFINITY;\n let endMs = Number.NEGATIVE_INFINITY;\n for (const invocation of snapshot.invocations) {\n const times = invocationTimes(invocation);\n if (!invocations.has(invocation.path)) invocations.set(invocation.path, times);\n // Only the axis's start needs a recorded start. An invocation whose start\n // was not recorded may still have recorded its end or a failure, and the\n // axis must reach them.\n if (times.startedMs !== null) {\n startMs = Math.min(startMs, times.startedMs);\n endMs = Math.max(endMs, times.startedMs);\n }\n if (times.endedMs !== null) endMs = Math.max(endMs, times.endedMs);\n if (times.failedMs !== null) endMs = Math.max(endMs, times.failedMs);\n }\n const recorded =\n startMs === Number.POSITIVE_INFINITY\n ? null\n : { startMs, endMs: endMs > startMs ? endMs : startMs + 1 };\n return {\n invocations,\n recorded,\n assembledMs: timestampMs(snapshot.assembled_at),\n ended: isRunEnded(snapshot.status),\n };\n}\n\n/**\n * The axis at one reading of the clock, from a snapshot's parsed moments: the\n * snapshot's recorded span, stretched to the reading clock while the run goes\n * on (to its `assembled_at` when `nowMs` is not given, or is not a finite\n * number, which would give the axis no end). See `timelineWindow`. Returns the\n * recorded span itself when the clock does not stretch it.\n */\nexport function timelineWindowAt(\n times: SnapshotTimes,\n nowMs?: number | null,\n): TimelineWindow | null {\n const recorded = times.recorded;\n if (!recorded || times.ended) return recorded;\n const clock = typeof nowMs === \"number\" && Number.isFinite(nowMs) ? nowMs : times.assembledMs;\n if (clock === null || clock <= recorded.endMs) return recorded;\n return { startMs: recorded.startMs, endMs: clock };\n}\n\n/**\n * The axis every bar is drawn on: from the earliest start the snapshot holds to\n * the latest moment it knows of. While the run goes on, that is the reading\n * clock, so the axis, and every running bar with it, keeps growing. Once the run\n * has ended, it is the latest time recorded in its invocations, whether a start,\n * an end or a failure, an end counting even when its start was not recorded:\n * the snapshot's `assembled_at` is then only when it was read, which may be long\n * after. A `nowMs` that is not a finite number counts as not given. `null` when\n * no invocation has started.\n */\nexport function timelineWindow(\n snapshot: ProgressSnapshot,\n nowMs?: number | null,\n): TimelineWindow | null {\n return timelineWindowAt(snapshotTimes(snapshot), nowMs);\n}\n\n/**\n * True when an invocation's bar moves while the reading clock ticks: a running\n * invocation's grows to the clock, and a canceled one's runs to the end of the\n * axis, which grows with the clock while the run goes on. Any other bar is\n * settled by its snapshot, so a timeline need not redraw it between snapshots.\n */\nexport function barFollowsClock(\n invocation: ProgressInvocation,\n times: InvocationTimes = invocationTimes(invocation),\n): boolean {\n if (times.startedMs === null || times.endedMs !== null) return false;\n return (\n invocation.status === INVOCATION_STATUS.RUNNING ||\n invocation.status === INVOCATION_STATUS.CANCELED\n );\n}\n\n/**\n * An invocation's bar: from the start of its latest attempt to its end, or to\n * the reading clock while it runs. A canceled invocation recorded no end, so its\n * bar runs to the end of the axis, which is as late as the run is known to have\n * gone. `null` for an invocation that has not started, such as a scheduled item.\n * A `nowMs` that is not a finite number counts as not given, as it does for the\n * axis, so a running bar then ends at the end of the axis rather than at `NaN`\n * or `Infinity`. `times` are the invocation's moments when the caller has\n * already parsed them.\n */\nexport function invocationBar(\n invocation: ProgressInvocation,\n window: TimelineWindow,\n nowMs?: number | null,\n times: InvocationTimes = invocationTimes(invocation),\n): TimelineBar | null {\n const startMs = times.startedMs;\n if (startMs === null) return null;\n const endedMs = times.endedMs;\n const clock = typeof nowMs === \"number\" && Number.isFinite(nowMs) ? nowMs : null;\n let endMs: number;\n let growing = false;\n let openEnded = false;\n switch (invocation.status) {\n case INVOCATION_STATUS.RUNNING:\n endMs = endedMs ?? clock ?? window.endMs;\n growing = endedMs === null;\n break;\n case INVOCATION_STATUS.CANCELED:\n endMs = endedMs ?? window.endMs;\n openEnded = endedMs === null;\n break;\n default:\n endMs = endedMs ?? startMs;\n }\n return { startMs, endMs: Math.max(startMs, endMs), growing, openEnded };\n}\n\n/** A moment's place on the axis, as a percentage of its width, clamped to it. */\nexport function axisPercent(ms: number, window: TimelineWindow): number {\n const span = window.endMs - window.startMs;\n if (span <= 0) return 0;\n return Math.min(100, Math.max(0, ((ms - window.startMs) / span) * 100));\n}\n\n/** A tick of the axis: its offset from the run's first start, and where it sits. */\nexport interface TimelineTick {\n offsetMs: number;\n percent: number;\n label: string;\n}\n\nconst DAY_MS = 86_400_000;\n\nconst TICK_STEPS_MS = [\n 100,\n 200,\n 500,\n 1_000,\n 2_000,\n 5_000,\n 10_000,\n 15_000,\n 30_000,\n 60_000,\n 120_000,\n 300_000,\n 600_000,\n 900_000,\n 1_800_000,\n 3_600_000,\n 7_200_000,\n 14_400_000,\n 21_600_000,\n 43_200_000,\n DAY_MS,\n];\n\n/**\n * The axis's ticks, at the smallest round step that keeps them to `maxTicks`\n * intervals or fewer, labelled with their offset from the first start. Past the\n * table's largest step, a day, the step is the smallest whole number of days\n * that still keeps to `maxTicks`, so no axis is ever crowded with labels. An\n * axis whose span is not a finite positive number has no ticks: an infinite\n * one would otherwise take an infinite step and never reach its end.\n */\nexport function timelineTicks(window: TimelineWindow, maxTicks = 6): TimelineTick[] {\n const span = window.endMs - window.startMs;\n if (!Number.isFinite(span) || span <= 0) return [];\n const budget = Math.max(1, maxTicks);\n const step =\n TICK_STEPS_MS.find((candidate) => span / candidate <= budget) ??\n Math.ceil(span / budget / DAY_MS) * DAY_MS;\n const ticks: TimelineTick[] = [];\n for (let offsetMs = 0; offsetMs <= span; offsetMs += step) {\n ticks.push({\n offsetMs,\n percent: axisPercent(window.startMs + offsetMs, window),\n label: formatDuration(offsetMs),\n });\n }\n return ticks;\n}\n\n/**\n * A duration in a few characters: `340ms`, `6.7s`, `42s`, `2m 05s`, `1h 12m`.\n * Negative durations, which only clock skew produces, read as zero.\n */\nexport function formatDuration(ms: number): string {\n const safe = Math.max(0, ms);\n if (safe === 0) return \"0s\";\n if (Math.round(safe) < 1_000) return `${Math.round(safe)}ms`;\n const tenths = Math.round(safe / 100) / 10;\n if (tenths < 10) return `${tenths}s`;\n // Rounded once, then split, so 59.6 seconds reads `1m` rather than `60s`.\n const totalSeconds = Math.round(safe / 1_000);\n if (totalSeconds < 60) return `${totalSeconds}s`;\n if (totalSeconds < 3_600) {\n const minutes = Math.floor(totalSeconds / 60);\n const seconds = totalSeconds % 60;\n return seconds === 0 ? `${minutes}m` : `${minutes}m ${String(seconds).padStart(2, \"0\")}s`;\n }\n const totalMinutes = Math.round(totalSeconds / 60);\n const hours = Math.floor(totalMinutes / 60);\n const minutes = totalMinutes % 60;\n return minutes === 0 ? `${hours}h` : `${hours}h ${String(minutes).padStart(2, \"0\")}m`;\n}\n\n/** A moment as its UTC time of day, to the millisecond: `09:30:07.034 UTC`. */\nexport function formatClockTime(ms: number): string {\n return `${new Date(ms).toISOString().slice(11, 23)} UTC`;\n}\n"],"mappings":";AAuBO,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,KAAK;AACP;AAQO,IAAM,sBAAsB;AAAA,EACjC,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,UAAU;AACZ;AAeO,IAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AACZ;AAKO,IAAM,qBAAqB;AAAA,EAChC,uBAAuB;AAAA,EACvB,oBAAoB;AACtB;AA8GO,SAAS,WAAW,QAAoC;AAC7D,SACE,WAAW,oBAAoB,aAC/B,WAAW,oBAAoB,UAC/B,WAAW,oBAAoB;AAEnC;AAUA,IAAM,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2,7 @@ import { FieldEnv } from '@pipelex/mthds-form/react';
|
|
|
2
2
|
export * from '@pipelex/mthds-form/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ValidationMessageKey, PipeIOContract, RunField, RunInputError, PipeInputFormDescriptor } from '@pipelex/mthds-form';
|
|
5
|
-
import {
|
|
5
|
+
import { a as GraphTheme } from '../../types-CTrrBpQf.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The panel's submit path, kept React-free.
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as GraphSpecNode, r as CardNode, s as PipeCallNode,
|
|
2
|
-
export { A as ARROW_CLOSED_MARKER, B as BINDING_STEP_TYPE, z as BindingNode, H as BindingStepSpec, I as BindingStepType, J as CONTROLLER_PADDING_BOTTOM, K as CONTROLLER_PADDING_TOP, M as CONTROLLER_PADDING_X, O as EDGE_TYPE, Q as EDGE_TYPE_ROUTED, R as EdgeType, U as FOLD_MODE, W as FieldResolution, F as FoldMode, X as GRAPH_DIRECTION, Y as GRAPH_SPEC_MODE, Z as GRAPH_STYLE, _ as GRAPH_THEME, $ as GRAPH_THEME_MODE, a0 as GraphSpecEdge, a1 as GraphSpecEdgeKind, a2 as GraphSpecMeta, a3 as GraphSpecModelUsage, a4 as GraphSpecNodeError, a5 as GraphSpecNodeIo, a6 as GraphSpecNodeTiming, a7 as GraphSpecNodeUsage, a8 as GraphSpecUsage,
|
|
1
|
+
import { p as GraphSpecNode, r as CardNode, s as PipeCallNode, c as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, t as GraphData, u as GraphSpecMode, o as PipeCardPayload, n as FoldToggleOptions, f as GraphNode, e as GraphEdge, d as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, k as GraphSpecNodeIoItem, h as GraphDirection, v as LayoutConfig, E as EdgeRoute, w as GraphPoint, g as GraphConfig, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, S as SimpleTitleFit, x as NodePipeType, y as StepCategory, j as PipeStatus } from '../types-CTrrBpQf.js';
|
|
2
|
+
export { A as ARROW_CLOSED_MARKER, B as BINDING_STEP_TYPE, z as BindingNode, H as BindingStepSpec, I as BindingStepType, J as CONTROLLER_PADDING_BOTTOM, K as CONTROLLER_PADDING_TOP, M as CONTROLLER_PADDING_X, O as EDGE_TYPE, Q as EDGE_TYPE_ROUTED, R as EdgeType, U as FOLD_MODE, W as FieldResolution, F as FoldMode, X as GRAPH_DIRECTION, Y as GRAPH_SPEC_MODE, Z as GRAPH_STYLE, _ as GRAPH_THEME, $ as GRAPH_THEME_MODE, a0 as GraphSpecEdge, a1 as GraphSpecEdgeKind, a2 as GraphSpecMeta, a3 as GraphSpecModelUsage, a4 as GraphSpecNodeError, a5 as GraphSpecNodeIo, a6 as GraphSpecNodeTiming, a7 as GraphSpecNodeUsage, a8 as GraphSpecUsage, G as GraphThemeMode, a9 as JudgmentQuestionSpec, aa as KNOWN_PIPE_TYPES, L as LabelDescriptor, ab as NODE_TYPE_CONTROLLER, ac as NODE_TYPE_PIPE_CARD, ad as NODE_TYPE_SIMPLE_DECISION, ae as NODE_TYPE_SIMPLE_FRAME, af as NODE_TYPE_SIMPLE_STEP, ag as NODE_TYPE_SIMPLE_TERMINAL, ah as NODE_TYPE_STUFF, ai as NodeKind, aj as PipeBatchBlueprint, ak as PipeBlueprintBase, al as PipeComposeBlueprint, am as PipeComposeConstructBlueprint, an as PipeComposeConstructField, ao as PipeConditionBlueprint, m as PipeControllerType, ap as PipeDocGenBlueprint, aq as PipeExtractBlueprint, ar as PipeFuncBlueprint, as as PipeImgGenBlueprint, at as PipeJudgeBlueprint, au as PipeLLMBlueprint, q as PipeOperatorType, av as PipeParallelBlueprint, aw as PipeSearchBlueprint, ax as PipeSequenceBlueprint, ay as PipeSignatureBlueprint, az as PipeStructureBlueprint, aA as PipeType, b as PresenceMarker, aB as STEP_CATEGORY, aC as STUFF_ID_PREFIX, aD as SequenceStepSpec, aE as SimpleNodePayload, aF as StuffMultiplicity, aG as StuffRegistryEntry, aH as StuffRole, aI as StuffSpecInfo, aJ as SubPipeSpec, aK as TOOLBAR_POSITION, aL as TemplateBlueprint, aM as ToolbarOrientation, aN as ToolbarSide, aO as VALIDATION_STATE, l as ValidationState, aP as graphSpecMode, aQ as isBindingNode, aR as isBindingStepSpec, aS as isDryGraphSpec, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as stuffDigestFromId, a_ as stuffNodeId, a$ as toolbarOrientation, b0 as toolbarSide } from '../types-CTrrBpQf.js';
|
|
3
3
|
export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
|
|
4
4
|
import { ElkNode } from 'elkjs/lib/elk-api';
|
|
5
5
|
|
|
@@ -121,6 +121,24 @@
|
|
|
121
121
|
background: var(--surface-elevated);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/* Phones: below 640px (Tailwind's `sm` breakpoint) the button keeps its look
|
|
125
|
+
* and its place on the first content line, and takes taps over a 44×44 area,
|
|
126
|
+
* the size a fingertip needs, through an invisible `::after` reaching 10px
|
|
127
|
+
* past each edge. That reach covers no other control: above and to the right
|
|
128
|
+
* lie the content's padding, to the left and below the header's text. Growing
|
|
129
|
+
* the button instead would push the line it shares. */
|
|
130
|
+
@media (max-width: 639.98px) {
|
|
131
|
+
.detail-panel-close {
|
|
132
|
+
position: relative;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.detail-panel-close::after {
|
|
136
|
+
content: "";
|
|
137
|
+
position: absolute;
|
|
138
|
+
inset: -10px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
124
142
|
.detail-panel-content {
|
|
125
143
|
flex: 1;
|
|
126
144
|
overflow-y: auto;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export { q as PipeOperatorType } from '../../types-
|
|
3
|
+
import { c as GraphSpec, d as GraphNodeData, e as GraphEdge, f as GraphNode, g as GraphConfig, h as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, j as PipeStatus, k as GraphSpecNodeIoItem, l as ValidationState, V as ValidationIssue, L as LabelDescriptor, m as PipeControllerType, n as FoldToggleOptions, N as NodeValidationSummary, o as PipeCardPayload, C as ConceptInfo, p as GraphSpecNode } from '../../types-CTrrBpQf.js';
|
|
4
|
+
export { q as PipeOperatorType } from '../../types-CTrrBpQf.js';
|
|
5
5
|
import { PipeIOContracts, OutputForm, InputForm, SaveFiles } from '@pipelex/mthds-form';
|
|
6
6
|
import { ResolveUrl, ResolveShareUrl, DownloadDisplay } from '@pipelex/mthds-form/react';
|
|
7
7
|
import { Edge, Node, ReactFlowInstance } from '@xyflow/react';
|