process-graph 1.2.0 → 1.3.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.
Files changed (46) hide show
  1. package/README.md +22 -19
  2. package/dist/bin.js +4 -3
  3. package/dist/cli.d.ts +42 -10
  4. package/dist/cli.js +3 -2
  5. package/dist/data-file-BVMxkTug.js +95 -0
  6. package/dist/dist-81kTKnMq.js +3 -0
  7. package/dist/{dist-BxHnxpcT.js → dist-BI01yxFA.js} +82 -84
  8. package/dist/{dist-BpCBmnMl.js → dist-arkejVz2.js} +2 -112
  9. package/dist/{graphql-C1j5wQFz.d.ts → graphql-BE7xm5dB.d.ts} +3 -2
  10. package/dist/{index-BUheRLdG.d.ts → index-9Au8pAmP.d.ts} +4 -4
  11. package/dist/{index-CrM5qWUA.d.ts → index-BC4tmAuQ.d.ts} +2 -2
  12. package/dist/{index-DxWOY8f9.d.ts → index-CR8xUK3S.d.ts} +5 -572
  13. package/dist/{index-CoA6vXqe.d.ts → index-D06bcdfw.d.ts} +1 -1
  14. package/dist/{index-BH1aFqkJ.d.ts → index-D4CnOhNf.d.ts} +1 -1
  15. package/dist/{index-CmZOswkx.d.ts → index-Dvz_I_uQ.d.ts} +17 -8
  16. package/dist/{index-CptUHq6F.d.ts → index-hri2a13-.d.ts} +1 -1
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +2 -2
  19. package/dist/layout.d.ts +1 -1
  20. package/dist/{parse-CuipC_2K.js → parse-C1Q1zsGt.js} +1 -1
  21. package/dist/react-flow.d.ts +5 -5
  22. package/dist/react-flow.js +1 -1
  23. package/dist/react.d.ts +1 -1
  24. package/dist/{router-DvGGLnNt.js → router-Dk91O_9p.js} +2 -2
  25. package/dist/{schema-CVnS6HiX.js → schema-BPT8fmfa.js} +2 -2
  26. package/dist/source/github/node.d.ts +1 -1
  27. package/dist/source/github.d.ts +2 -2
  28. package/dist/source/github.js +1 -1
  29. package/dist/{source-DRDpEA8Q.js → source-D51N7K3A.js} +23 -3
  30. package/dist/store/node.d.ts +27 -2
  31. package/dist/store/node.js +2 -2
  32. package/dist/store/wasm/worker.js +2 -2
  33. package/dist/store/wasm.d.ts +1 -1
  34. package/dist/{store-BJILV4JS.js → store-DKzvLGgl.js} +1 -1
  35. package/dist/store.d.ts +1 -1
  36. package/dist/store.js +2 -2
  37. package/dist/theme-values-BJJhAkUn-ORyRUrPf.js +114 -0
  38. package/dist/theme-values-BybZ-cle.d.ts +116 -0
  39. package/dist/ui/theme.d.ts +2 -0
  40. package/dist/ui/theme.js +2 -0
  41. package/dist/ui.d.ts +6 -120
  42. package/dist/ui.js +2 -1
  43. package/dist/version-Dagrkvwt.js +5 -0
  44. package/package.json +28 -23
  45. package/dist/dist-Cw63tKU9.js +0 -3
  46. package/dist/open-BF-UHqeW.js +0 -29
@@ -1,4 +1,4 @@
1
- import { n as GraphqlFetch, t as GitHubTokenPort, u as GraphSourcePager } from "./graphql-C1j5wQFz.js";
1
+ import { n as GraphqlFetch, t as GitHubTokenPort, u as GraphSourcePager } from "./graphql-BE7xm5dB.js";
2
2
  //#region ../../adapters/graph/source-github-issues/dist/source.d.ts
3
3
  /** What the GitHub issues source needs. */
4
4
  interface GitHubIssuesSourceOptions {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { A as Facts, B as Status, C as CriticalPath, D as UnknownReference, E as NodeId, F as evaluateBranches, I as factNamesIn, L as factsFrom, M as artefactKey, N as elementStatusKey, O as buildDag, P as emptyFactRecord, R as layeredFacts, S as loopTransitions, T as Dag, V as statuses, _ as StatusRule, a as criticalPath, b as controlDag, c as unmetOutputs, d as StatusExplanation, f as explainStatus, g as StatusBasis, h as ProducerBasis, i as blockedBy, j as UnsupportedConditionError, k as FactRecord, l as whatIfDone, m as IncomingBasis, n as UnmetOutput, o as impact, p as ArtefactBasis, r as WhatIf, s as readySet, t as StatusChange, u as ChainLink, v as deriveStatuses, w as criticalPath$1, x as illegalCycles, y as statusRules, z as Branch } from "./index-BH1aFqkJ.js";
2
- import { A as Views, B as messageModes, C as Extensions, D as Point, E as Participant, F as OverlayStatus, G as IdSpace, H as overlayStatuses, I as ParticipantKind, K as OpenIds, L as PseudoRole, M as FragmentOperator, N as MessageMode, O as Projection, P as Notation, R as elementKinds, S as EventDef, T as FragmentOperand, U as participantKinds, V as notations, W as pseudoRoles, _ as ModelParts, a as Overlay, b as ArtefactDef, c as overlaySchema, d as Issue, f as IssueCode, g as Model, h as outputsOf, i as modelSchema, j as ElementKind, k as Transition, l as parseOverlay, m as inputsOf, n as ModelParseError, o as OverlayIssue, p as validate, r as parseModel, s as OverlayParseError, t as ModelIssue, u as validateOverlay, v as defineModel, w as Fragment, x as Element, y as ActionDef, z as fragmentOperators } from "./index-CmZOswkx.js";
3
- import { A as Flowchart, C as StateMachineTransition, D as toSwimlane, E as Swimlane, F as UnrepresentedElement, I as UnrepresentedKind, M as Handoff, N as handoffs, O as FlowEdge, P as Loss, S as StateMachineState, T as Lane, _ as SequenceItem, a as Addressing, b as toSequence, c as Ends, d as TransitionChange, f as TransitionFieldChange, g as SequenceDiagram, h as confirmChanges, i as diffSwimlane, j as toFlowchart, k as FlowNode, l as EventChange, m as applyModelDiff, n as diffStateMachine, o as Change, p as UnconfirmedChangeError, r as diffFlowchart, s as ElementChange, t as diffSequence, u as ModelDiff, v as SequenceMessage, w as toStateMachine, x as StateMachine, y as SequenceOperand } from "./index-CoA6vXqe.js";
1
+ import { A as Facts, B as Status, C as CriticalPath, D as UnknownReference, E as NodeId, F as evaluateBranches, I as factNamesIn, L as factsFrom, M as artefactKey, N as elementStatusKey, O as buildDag, P as emptyFactRecord, R as layeredFacts, S as loopTransitions, T as Dag, V as statuses, _ as StatusRule, a as criticalPath, b as controlDag, c as unmetOutputs, d as StatusExplanation, f as explainStatus, g as StatusBasis, h as ProducerBasis, i as blockedBy, j as UnsupportedConditionError, k as FactRecord, l as whatIfDone, m as IncomingBasis, n as UnmetOutput, o as impact, p as ArtefactBasis, r as WhatIf, s as readySet, t as StatusChange, u as ChainLink, v as deriveStatuses, w as criticalPath$1, x as illegalCycles, y as statusRules, z as Branch } from "./index-D4CnOhNf.js";
2
+ import { A as Transition, B as fragmentOperators, C as EventDef, D as Participant, E as FragmentOperand, F as Notation, G as pseudoRoles, H as notations, I as OverlayStatus, K as IdSpace, L as ParticipantKind, M as ElementKind, N as FragmentOperator, O as Point, P as MessageMode, R as PseudoRole, S as Element, T as Fragment, U as overlayStatuses, V as messageModes, W as participantKinds, _ as Model, a as modelSchema, b as ActionDef, c as OverlayParseError, d as validateOverlay, f as Issue, g as outputsOf, h as inputsOf, i as ModelSchema, j as Views, k as Projection, l as overlaySchema, m as validate, n as ModelParseError, o as Overlay, p as IssueCode, q as OpenIds, r as parseModel, s as OverlayIssue, t as ModelIssue, u as parseOverlay, v as ModelParts, w as Extensions, x as ArtefactDef, y as defineModel, z as elementKinds } from "./index-Dvz_I_uQ.js";
3
+ import { A as Flowchart, C as StateMachineTransition, D as toSwimlane, E as Swimlane, F as UnrepresentedElement, I as UnrepresentedKind, M as Handoff, N as handoffs, O as FlowEdge, P as Loss, S as StateMachineState, T as Lane, _ as SequenceItem, a as Addressing, b as toSequence, c as Ends, d as TransitionChange, f as TransitionFieldChange, g as SequenceDiagram, h as confirmChanges, i as diffSwimlane, j as toFlowchart, k as FlowNode, l as EventChange, m as applyModelDiff, n as diffStateMachine, o as Change, p as UnconfirmedChangeError, r as diffFlowchart, s as ElementChange, t as diffSequence, u as ModelDiff, v as SequenceMessage, w as toStateMachine, x as StateMachine, y as SequenceOperand } from "./index-D06bcdfw.js";
4
4
  //#region ../../core/graph/dag/dist/errors.d.ts
5
5
  /**
6
6
  * Thrown when an operation that is only defined on an acyclic graph is given one that contains a cycle.
@@ -108,4 +108,4 @@ declare namespace index_d_exports {
108
108
  export { CriticalPath, CycleError, Dag, NodeId, TopologicalLayers, UnknownNodeError, UnknownReference, ancestorsOf, buildDag, criticalPath$1 as criticalPath, descendantsOf, findCycles, immediateDominators, stronglyConnectedComponents, topologicalLayers, transitiveReduction };
109
109
  }
110
110
  //#endregion
111
- export { type ActionDef, type Addressing, type ArtefactBasis, type ArtefactDef, type Branch, type ChainLink, type Change, type Element, type ElementChange, type ElementKind, type Ends, type EventChange, type EventDef, type Extensions, type FactRecord, type Facts, type FlowEdge, type FlowNode, type Flowchart, type Fragment, type FragmentOperand, type FragmentOperator, type Handoff, type IdSpace, type IncomingBasis, type Issue, type IssueCode, type Lane, type Loss, type MessageMode, type Model, type ModelDiff, type ModelIssue, ModelParseError, type ModelParts, type Notation, type OpenIds, type Overlay, type OverlayIssue, OverlayParseError, type OverlayStatus, type Participant, type ParticipantKind, type Point, type ProducerBasis, type Projection, type PseudoRole, type SequenceDiagram, type SequenceItem, type SequenceMessage, type SequenceOperand, type StateMachine, type StateMachineState, type StateMachineTransition, type Status, type StatusBasis, type StatusChange, type StatusExplanation, type StatusRule, type Swimlane, type Transition, type TransitionChange, type TransitionFieldChange, UnconfirmedChangeError, type UnmetOutput, type UnrepresentedElement, type UnrepresentedKind, UnsupportedConditionError, type Views, type WhatIf, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, index_d_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, factNamesIn, factsFrom, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, pseudoRoles, readySet, statusRules, statuses, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, whatIfDone };
111
+ export { type ActionDef, type Addressing, type ArtefactBasis, type ArtefactDef, type Branch, type ChainLink, type Change, type Element, type ElementChange, type ElementKind, type Ends, type EventChange, type EventDef, type Extensions, type FactRecord, type Facts, type FlowEdge, type FlowNode, type Flowchart, type Fragment, type FragmentOperand, type FragmentOperator, type Handoff, type IdSpace, type IncomingBasis, type Issue, type IssueCode, type Lane, type Loss, type MessageMode, type Model, type ModelDiff, type ModelIssue, ModelParseError, type ModelParts, type ModelSchema, type Notation, type OpenIds, type Overlay, type OverlayIssue, OverlayParseError, type OverlayStatus, type Participant, type ParticipantKind, type Point, type ProducerBasis, type Projection, type PseudoRole, type SequenceDiagram, type SequenceItem, type SequenceMessage, type SequenceOperand, type StateMachine, type StateMachineState, type StateMachineTransition, type Status, type StatusBasis, type StatusChange, type StatusExplanation, type StatusRule, type Swimlane, type Transition, type TransitionChange, type TransitionFieldChange, UnconfirmedChangeError, type UnmetOutput, type UnrepresentedElement, type UnrepresentedKind, UnsupportedConditionError, type Views, type WhatIf, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, index_d_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, factNamesIn, factsFrom, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, pseudoRoles, readySet, statusRules, statuses, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, whatIfDone };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { a as validateOverlay, c as fragmentOperators, d as overlayStatuses, f as participantKinds, i as parseOverlay, l as messageModes, n as OverlayParseError, p as pseudoRoles, r as overlaySchema, s as elementKinds, t as modelSchema, u as notations } from "./schema-CVnS6HiX.js";
2
+ import { a as validateOverlay, c as fragmentOperators, d as overlayStatuses, f as participantKinds, i as parseOverlay, l as messageModes, n as OverlayParseError, p as pseudoRoles, r as overlaySchema, s as elementKinds, t as modelSchema, u as notations } from "./schema-BPT8fmfa.js";
3
3
  import { t as validate } from "./validate-DF3mQZww.js";
4
- import { n as parseModel, t as ModelParseError } from "./parse-CuipC_2K.js";
4
+ import { n as parseModel, t as ModelParseError } from "./parse-C1Q1zsGt.js";
5
5
  import { _ as criticalPath$1, a as unmetOutputs, b as actorMap, c as deriveStatuses, d as stateMachineParts, f as toStateMachine, g as handoffs, h as toFlowchart, i as readySet, l as statusRules, m as flowchartParts, n as criticalPath, o as whatIfDone, p as toSwimlane, r as impact, s as explainStatus, t as blockedBy, u as toSequence, v as immediateDominators, y as topologicalLayers } from "./queries-C8kIDRiY.js";
6
6
  import { S as UnknownNodeError, _ as descendantsOf, a as artefactKey, b as lookup, c as evaluateBranches, f as layeredFacts, g as ancestorsOf, h as stronglyConnectedComponents, i as UnsupportedConditionError, l as factNamesIn, m as findCycles, n as illegalCycles, o as elementStatusKey, p as assertAcyclic, r as loopTransitions, s as emptyFactRecord, t as controlDag, u as factsFrom, v as assembleDag, x as CycleError, y as buildDag } from "./control-DiygoEhm.js";
7
7
  import { t as statuses } from "./status-Bm1CGu9C.js";
package/dist/layout.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as layout, c as EngineBox, d as EngineGroup, f as EngineLeaf, i as LayoutView, l as EngineEdge, m as LayoutEngine, n as LayoutOptions, o as Size, p as EngineNode, r as LayoutResult, s as Direction, t as LaneBounds, u as EngineGraph } from "./index-CrM5qWUA.js";
1
+ import { a as layout, c as EngineBox, d as EngineGroup, f as EngineLeaf, i as LayoutView, l as EngineEdge, m as LayoutEngine, n as LayoutOptions, o as Size, p as EngineNode, r as LayoutResult, s as Direction, t as LaneBounds, u as EngineGraph } from "./index-BC4tmAuQ.js";
2
2
  //#region ../../core/graph/layout/dist/elk-engine.d.ts
3
3
  /**
4
4
  * The default engine: elkjs's layered algorithm, run in the calling context from the bundled build so it needs neither a Worker nor Node-only modules. Groups are laid out together with their children (`INCLUDE_CHILDREN`), so an edge between lanes takes part in layer assignment.
@@ -1,4 +1,4 @@
1
- import { o as toPointer, t as modelSchema } from "./schema-CVnS6HiX.js";
1
+ import { o as toPointer, t as modelSchema } from "./schema-BPT8fmfa.js";
2
2
  import { t as validate } from "./validate-DF3mQZww.js";
3
3
  //#region ../../core/graph/schema/dist/parse.js
4
4
  /** Thrown by `parseModel` when the input is not a valid model. */
@@ -1,8 +1,8 @@
1
- import { B as Status } from "./index-BH1aFqkJ.js";
2
- import { G as IdSpace, O as Projection, g as Model, x as Element } from "./index-CmZOswkx.js";
3
- import { A as Flowchart, E as Swimlane, x as StateMachine } from "./index-CoA6vXqe.js";
4
- import { i as LayoutView, n as LayoutOptions, r as LayoutResult, s as Direction } from "./index-CrM5qWUA.js";
5
- import { A as ElementFilter, rt as Run, y as NamedElement } from "./index-BUheRLdG.js";
1
+ import { B as Status } from "./index-D4CnOhNf.js";
2
+ import { K as IdSpace, S as Element, _ as Model, k as Projection } from "./index-Dvz_I_uQ.js";
3
+ import { A as Flowchart, E as Swimlane, x as StateMachine } from "./index-D06bcdfw.js";
4
+ import { i as LayoutView, n as LayoutOptions, r as LayoutResult, s as Direction } from "./index-BC4tmAuQ.js";
5
+ import { A as ElementFilter, rt as Run, y as NamedElement } from "./index-9Au8pAmP.js";
6
6
  import { ReactElement } from "react";
7
7
  import { ColorMode, Edge, EdgeProps, Node, NodeProps } from "@xyflow/react";
8
8
  //#region ../../ui/graph/react-flow/dist/use-layout.d.ts
@@ -2,7 +2,7 @@ import { f as toStateMachine, h as toFlowchart, p as toSwimlane, u as toSequence
2
2
  import { t as layout } from "./layout-CCM-KBdp.js";
3
3
  import { d as useBlockers, f as useCriticalPath, h as useStatuses, i as filterElements, r as emptyFilter, t as useGraphSelection } from "./selection-iet5RAlP.js";
4
4
  import { c as elementLabel } from "./detail-panel-B1ZmMuJT.js";
5
- import { a as Lane, n as ElementCard, s as SequenceDiagram } from "./dist-BpCBmnMl.js";
5
+ import { a as Lane, n as ElementCard, s as SequenceDiagram } from "./dist-arkejVz2.js";
6
6
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { BaseEdge, Handle, MarkerType, Position, ReactFlow, getSmoothStepPath } from "@xyflow/react";
package/dist/react.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as useWhyStatus, A as ElementFilter, B as useElementFilter, C as ruleDescriptions, D as SelectionContainerProps, E as GraphSelectionOptions, F as emptyFilter, G as BlockedChain, H as ViewsByNotation, I as filterElements, J as useBlockers, K as stepWeight, L as filterOptions, M as FilterOption, N as FilterOptions, O as SelectionItemProps, P as actorsOf, Q as useStatuses, R as matchesFilter, S as elementLabel, T as GraphSelection, U as project, V as ProjectedView, W as useProjection, X as useImpact, Y as useCriticalPath, Z as useReadySet, _ as ElementCardPart, a as FilterPanelPart, b as StatusBadge, c as LegendPart, d as LanePart, et as ModelClient, f as LaneProps, g as ElementCard, h as TransitionItemProps, i as FilterPanel, it as noFacts, j as ElementFilterState, k as useGraphSelection, l as LegendProps, m as TransitionItemPart, n as DetailPanelPart, nt as useModel, o as FilterPanelProps, p as TransitionItem, q as useBlockedChain, r as DetailPanelProps, rt as Run, s as Legend, t as DetailPanel, tt as ModelState, u as Lane, v as ElementCardProps, w as statusLabels, x as StatusBadgeProps, y as NamedElement, z as sourceScope } from "./index-BUheRLdG.js";
1
+ import { $ as useWhyStatus, A as ElementFilter, B as useElementFilter, C as ruleDescriptions, D as SelectionContainerProps, E as GraphSelectionOptions, F as emptyFilter, G as BlockedChain, H as ViewsByNotation, I as filterElements, J as useBlockers, K as stepWeight, L as filterOptions, M as FilterOption, N as FilterOptions, O as SelectionItemProps, P as actorsOf, Q as useStatuses, R as matchesFilter, S as elementLabel, T as GraphSelection, U as project, V as ProjectedView, W as useProjection, X as useImpact, Y as useCriticalPath, Z as useReadySet, _ as ElementCardPart, a as FilterPanelPart, b as StatusBadge, c as LegendPart, d as LanePart, et as ModelClient, f as LaneProps, g as ElementCard, h as TransitionItemProps, i as FilterPanel, it as noFacts, j as ElementFilterState, k as useGraphSelection, l as LegendProps, m as TransitionItemPart, n as DetailPanelPart, nt as useModel, o as FilterPanelProps, p as TransitionItem, q as useBlockedChain, r as DetailPanelProps, rt as Run, s as Legend, t as DetailPanel, tt as ModelState, u as Lane, v as ElementCardProps, w as statusLabels, x as StatusBadgeProps, y as NamedElement, z as sourceScope } from "./index-9Au8pAmP.js";
2
2
  export { type BlockedChain, DetailPanel, type DetailPanelPart, type DetailPanelProps, ElementCard, type ElementCardPart, type ElementCardProps, type ElementFilter, type ElementFilterState, type FilterOption, type FilterOptions, FilterPanel, type FilterPanelPart, type FilterPanelProps, type GraphSelection, type GraphSelectionOptions, Lane, type LanePart, type LaneProps, Legend, type LegendPart, type LegendProps, type ModelClient, type ModelState, type NamedElement, type ProjectedView, type Run, type SelectionContainerProps, type SelectionItemProps, StatusBadge, type StatusBadgeProps, TransitionItem, type TransitionItemPart, type TransitionItemProps, type ViewsByNotation, actorsOf, elementLabel, emptyFilter, filterElements, filterOptions, matchesFilter, noFacts, project, ruleDescriptions, sourceScope, statusLabels, stepWeight, useBlockedChain, useBlockers, useCriticalPath, useElementFilter, useGraphSelection, useImpact, useModel, useProjection, useReadySet, useStatuses, useWhyStatus };
@@ -1,5 +1,5 @@
1
- import { r as overlaySchema, t as modelSchema } from "./schema-CVnS6HiX.js";
2
- import { A as modelIdSchema, C as boundItemsSchema, E as factClearingSchema, F as revisionSchema, I as storeChangeSchema, L as storedFactsSchema, M as reachSchema, P as relationSchema, R as storedModelSchema, T as factChangeSchema, j as modelSummarySchema, k as issueSchema, x as GraphStoreError } from "./store-BJILV4JS.js";
1
+ import { r as overlaySchema, t as modelSchema } from "./schema-BPT8fmfa.js";
2
+ import { A as modelIdSchema, C as boundItemsSchema, E as factClearingSchema, F as revisionSchema, I as storeChangeSchema, L as storedFactsSchema, M as reachSchema, P as relationSchema, R as storedModelSchema, T as factChangeSchema, j as modelSummarySchema, k as issueSchema, x as GraphStoreError } from "./store-DKzvLGgl.js";
3
3
  import { z } from "zod";
4
4
  import { eventIterator, oc } from "@orpc/contract";
5
5
  import { implement } from "@orpc/server";
@@ -219,7 +219,7 @@ const viewsSchema = z.partialRecord(z.enum(notations), z.partialRecord(z.string(
219
219
  *
220
220
  * Every object is strict. The inferred type is exactly `Model<OpenIds>`, which a type-level test pins in both directions.
221
221
  */
222
- const modelSchema = record({
222
+ const modelSchema = z.strictObject({
223
223
  participants: z.array(participantSchema).readonly(),
224
224
  events: z.array(eventSchema).readonly(),
225
225
  actions: z.array(actionSchema).readonly(),
@@ -229,6 +229,6 @@ const modelSchema = record({
229
229
  fragments: z.array(fragmentSchema).readonly(),
230
230
  projections: z.array(projectionSchema).readonly(),
231
231
  views: viewsSchema.exactOptional()
232
- });
232
+ }).readonly();
233
233
  //#endregion
234
234
  export { validateOverlay as a, fragmentOperators as c, overlayStatuses as d, participantKinds as f, parseOverlay as i, messageModes as l, OverlayParseError as n, toPointer as o, pseudoRoles as p, overlaySchema as r, elementKinds as s, modelSchema as t, notations as u };
@@ -1,4 +1,4 @@
1
- import { t as GitHubTokenPort } from "../../graphql-C1j5wQFz.js";
1
+ import { t as GitHubTokenPort } from "../../graphql-BE7xm5dB.js";
2
2
  //#region ../../adapters/graph/source-github-issues/dist/node.d.ts
3
3
  /** Where `githubTokenFromEnvironment` looks. Both are ports, so a test supplies its own. */
4
4
  export interface EnvironmentTokenOptions {
@@ -1,5 +1,5 @@
1
- import { $ as scopeRootsInputSchema, A as ScopeEntry, B as badRequestReasons, C as Gap, D as Relation, E as OrderField, F as SourceParticipant, G as orderDirections, H as filterStates, I as SourceTransition, J as relationKinds, K as orderFields, L as SyncFilter, M as ScopeListingInput, N as ScopeRootsInput, O as RelationKind, P as SourceDescription, Q as scopeListingSchema, R as SyncInput, S as FilterState, T as OrderDirection, U as gapReasons, V as boundActivitySchema, W as gapSchema, X as scopeChildrenInputSchema, Y as relationSchema, Z as scopeEntrySchema, _ as GraphSourceFailure, a as FakePage, b as BadRequestReason, c as assembleSync, d as GraphSourceRouter, et as sourceDescriptionSchema, f as GraphSourceScopes, g as GraphSourceError, h as createGraphSourceRouter, i as FakeGraphSourceOptions, it as transitionSchema, j as ScopeListing, k as ScopeChildrenInput, l as ChildrenRequest, m as PageRequest, n as GraphqlFetch, nt as syncInputSchema, o as createFakeGraphSource, p as ListingRequest, q as participantSchema, r as githubGraphqlEndpoint, rt as syncPageSchema, s as AssembledSync, t as GitHubTokenPort, tt as syncFilterSchema, u as GraphSourcePager, v as GraphSourceClient, w as GapReason, x as BoundActivity, y as graphSourceContract, z as SyncPage } from "../graphql-C1j5wQFz.js";
2
- import { a as GitHubIssuesSourceOptions, i as storedTokenPort, n as StoredTokenPortOptions, o as createGitHubIssuesSource, r as selectStoredToken, t as StoredGitHubToken } from "../index-CptUHq6F.js";
1
+ import { $ as scopeRootsInputSchema, A as ScopeEntry, B as badRequestReasons, C as Gap, D as Relation, E as OrderField, F as SourceParticipant, G as orderDirections, H as filterStates, I as SourceTransition, J as relationKinds, K as orderFields, L as SyncFilter, M as ScopeListingInput, N as ScopeRootsInput, O as RelationKind, P as SourceDescription, Q as scopeListingSchema, R as SyncInput, S as FilterState, T as OrderDirection, U as gapReasons, V as boundActivitySchema, W as gapSchema, X as scopeChildrenInputSchema, Y as relationSchema, Z as scopeEntrySchema, _ as GraphSourceFailure, a as FakePage, b as BadRequestReason, c as assembleSync, d as GraphSourceRouter, et as sourceDescriptionSchema, f as GraphSourceScopes, g as GraphSourceError, h as createGraphSourceRouter, i as FakeGraphSourceOptions, it as transitionSchema, j as ScopeListing, k as ScopeChildrenInput, l as ChildrenRequest, m as PageRequest, n as GraphqlFetch, nt as syncInputSchema, o as createFakeGraphSource, p as ListingRequest, q as participantSchema, r as githubGraphqlEndpoint, rt as syncPageSchema, s as AssembledSync, t as GitHubTokenPort, tt as syncFilterSchema, u as GraphSourcePager, v as GraphSourceClient, w as GapReason, x as BoundActivity, y as graphSourceContract, z as SyncPage } from "../graphql-BE7xm5dB.js";
2
+ import { a as GitHubIssuesSourceOptions, i as storedTokenPort, n as StoredTokenPortOptions, o as createGitHubIssuesSource, r as selectStoredToken, t as StoredGitHubToken } from "../index-hri2a13-.js";
3
3
  //#region ../../core/graph/source-contract/dist/paginate.d.ts
4
4
  /**
5
5
  * Pages through a cursor-linked sequence on demand: each `next()` reads one page, starting after `first`, and the sequence ends after the page whose `next` is absent. Nothing is read ahead of the consumer, so a consumer that stops early stops the reads.
@@ -1,4 +1,4 @@
1
- import { A as syncPageSchema, C as scopeChildrenInputSchema, D as sourceDescriptionSchema, E as scopeRootsInputSchema, O as syncFilterSchema, S as relationSchema, T as scopeListingSchema, _ as gapSchema, a as ownerScopeId, b as participantSchema, c as githubGraphqlEndpoint, d as paginate, f as graphSourceContract, g as gapReasons, h as filterStates, i as issueId, j as transitionSchema, k as syncInputSchema, l as assembleSync, m as boundActivitySchema, n as accountId, o as parseScope, p as badRequestReasons, r as githubSource, s as repositoryId, t as createGitHubIssuesSource, u as createGraphSourceRouter, v as orderDirections, w as scopeEntrySchema, x as relationKinds, y as orderFields } from "../source-DRDpEA8Q.js";
1
+ import { A as syncPageSchema, C as scopeChildrenInputSchema, D as sourceDescriptionSchema, E as scopeRootsInputSchema, O as syncFilterSchema, S as relationSchema, T as scopeListingSchema, _ as gapSchema, a as ownerScopeId, b as participantSchema, c as githubGraphqlEndpoint, d as paginate, f as graphSourceContract, g as gapReasons, h as filterStates, i as issueId, j as transitionSchema, k as syncInputSchema, l as assembleSync, m as boundActivitySchema, n as accountId, o as parseScope, p as badRequestReasons, r as githubSource, s as repositoryId, t as createGitHubIssuesSource, u as createGraphSourceRouter, v as orderDirections, w as scopeEntrySchema, x as relationKinds, y as orderFields } from "../source-D51N7K3A.js";
2
2
  import { t as GraphSourceError } from "../errors-BZe5WzCn.js";
3
3
  //#region ../../core/graph/source-contract/dist/fake.js
4
4
  const gapIndex = -1;
@@ -1,4 +1,4 @@
1
- import { r as overlaySchema, t as modelSchema } from "./schema-CVnS6HiX.js";
1
+ import { r as overlaySchema, t as modelSchema } from "./schema-BPT8fmfa.js";
2
2
  import { t as GraphSourceError } from "./errors-BZe5WzCn.js";
3
3
  import { z } from "zod";
4
4
  import { eventIterator, oc } from "@orpc/contract";
@@ -545,16 +545,36 @@ const readJson = async (response) => {
545
545
  }
546
546
  };
547
547
  /**
548
+ * Asks the token port for the token a request needs. A port that cannot supply one has failed to provide credentials, which ends the sync exactly as GitHub rejecting them would, so whatever it throws is reported as `unauthorised`: a `GraphSourceError` the port threw as it is, and anything else wrapped in one whose message names the token port and the owner and whose cause is the port's own error. An abort is passed through, since it is the caller's, not the port's.
549
+ * @param transport - The token port.
550
+ * @param owner - The login the request is about, or `undefined` for the token's own holder.
551
+ * @param signal - The caller's abort signal.
552
+ * @returns The token.
553
+ * @throws GraphSourceError with `unauthorised` when the port fails.
554
+ */
555
+ const tokenFor = async (transport, owner, signal) => {
556
+ try {
557
+ return await transport.token(owner, signal);
558
+ } catch (error) {
559
+ if (error instanceof GraphSourceError || signal?.aborted === true) throw error;
560
+ const reason = error instanceof Error ? error.message : String(error);
561
+ throw new GraphSourceError({
562
+ kind: "unauthorised",
563
+ message: `the GitHub token port gave no token${owner === void 0 ? "" : ` for ${owner}`}: ${reason}`
564
+ }, { cause: error });
565
+ }
566
+ };
567
+ /**
548
568
  * Sends one GraphQL request and classifies the answer.
549
569
  * @param transport - The token, fetch and clock ports.
550
570
  * @param request - The document, its variables, the owner whose token to use and the schema for `data`.
551
571
  * @param signal - The caller's abort signal, passed to `fetch`.
552
572
  * @returns The parsed data and any `NOT_FOUND` or `FORBIDDEN` problems beside it.
553
- * @throws GraphSourceError with `unauthorised` for HTTP 401, and `rate-limited` (with the reset instant when GitHub gives one) for any form of rate limiting.
573
+ * @throws GraphSourceError with `unauthorised` for HTTP 401 or a token port that fails, and `rate-limited` (with the reset instant when GitHub gives one) for any form of rate limiting.
554
574
  * @throws Error for any other failure: an HTTP error, another GraphQL error type, or data that does not match the schema.
555
575
  */
556
576
  const graphql = async (transport, request, signal) => {
557
- const token = await transport.token(request.owner, signal);
577
+ const token = await tokenFor(transport, request.owner, signal);
558
578
  const response = await transport.fetch(githubGraphqlEndpoint, {
559
579
  method: "POST",
560
580
  headers: {
@@ -1,4 +1,4 @@
1
- import { w as GraphStore } from "../index-DxWOY8f9.js";
1
+ import { w as GraphStore } from "../index-CR8xUK3S.js";
2
2
  import { DatabaseSyncOptions } from "node:sqlite";
3
3
  import { NodeSQLiteDatabase } from "drizzle-orm/node-sqlite";
4
4
  //#region ../../adapters/graph/sqlite-node/dist/open.d.ts
@@ -21,4 +21,29 @@ interface NodeGraphStore {
21
21
  */
22
22
  export declare const openNodeGraphStore: (path: string, options?: DatabaseSyncOptions) => NodeGraphStore;
23
23
  //#endregion
24
- export type { NodeGraphStore };
24
+ //#region ../../adapters/graph/sqlite-node/dist/data-file.d.ts
25
+ /** The data directory's mode: only its owner may list or enter it, since the store holds synced work (titles, relationships) that other users on the host must not read. */
26
+ export declare const privateDirectoryMode = 448;
27
+ /** The data file's mode: only its owner may read or write it. SQLite creates the `-wal` and `-shm` files beside it with the same mode on Unix. */
28
+ export declare const privateFileMode = 384;
29
+ /** Where a store's data file lives, and how much of its path the caller owns. */
30
+ interface DataFileOptions {
31
+ /**
32
+ * Whether the directory is the caller's own, such as an application's default data directory or one a host keeps under its own home, which is created private and kept private. A directory someone else chose, such as a path a user names on a command line, is created when missing but never has its mode changed.
33
+ */
34
+ readonly ownsDirectory: boolean;
35
+ /** The platform; on Windows, file modes mean nothing and nothing is set. */
36
+ readonly platform: NodeJS.Platform;
37
+ }
38
+ /**
39
+ * Makes a data file ready for `openNodeGraphStore` to open, so a store holding synced work is never readable by other users on the host. Call it before opening the store; it does not open the database itself.
40
+ *
41
+ * The directory is created when missing (with any missing parents), with `privateDirectoryMode` when it is the caller's own. The database file is created with `privateFileMode` when missing, before SQLite opens it, so the file and the `-wal` and `-shm` files SQLite derives from it are never readable by others, whatever the umask. A file that already exists is left alone unless the directory is the caller's own; there, an existing directory or store file (database, `-wal` or `-shm`) that group or others can read is narrowed to the private mode. On Windows, where file modes mean nothing, only the directory is created.
42
+ * @param path - The database file; not `":memory:"`, which has no file.
43
+ * @param options - Whether the caller owns the directory, and the platform.
44
+ * @returns One warning line naming what was narrowed, for the caller to show, or nothing when nothing was.
45
+ * @throws Error from the file system when the directory or file cannot be created or its mode read or changed.
46
+ */
47
+ export declare const prepareDataFile: (path: string, options: DataFileOptions) => readonly string[];
48
+ //#endregion
49
+ export type { DataFileOptions, NodeGraphStore };
@@ -1,2 +1,2 @@
1
- import { t as openNodeGraphStore } from "../open-BF-UHqeW.js";
2
- export { openNodeGraphStore };
1
+ import { i as openNodeGraphStore, n as privateDirectoryMode, r as privateFileMode, t as prepareDataFile } from "../data-file-BVMxkTug.js";
2
+ export { openNodeGraphStore, prepareDataFile, privateDirectoryMode, privateFileMode };
@@ -1,5 +1,5 @@
1
- import { I as storeChangeSchema, t as createSqliteGraphStore, y as ChangeFeed } from "../../store-BJILV4JS.js";
2
- import { t as createGraphStoreRouter } from "../../router-DvGGLnNt.js";
1
+ import { I as storeChangeSchema, t as createSqliteGraphStore, y as ChangeFeed } from "../../store-DKzvLGgl.js";
2
+ import { t as createGraphStoreRouter } from "../../router-Dk91O_9p.js";
3
3
  import sqlite3InitModule from "@sqlite.org/sqlite-wasm";
4
4
  import { RPCHandler } from "@orpc/server/message-port";
5
5
  import { drizzle } from "drizzle-orm/sqlite-proxy";
@@ -1,4 +1,4 @@
1
- import { ut as GraphStoreClient } from "../index-DxWOY8f9.js";
1
+ import { ut as GraphStoreClient } from "../index-CR8xUK3S.js";
2
2
  //#region ../../adapters/graph/sqlite-wasm/dist/client.d.ts
3
3
  /**
4
4
  * A client for the graph store a worker serves with `serveGraphStoreInWorker`. Every procedure of the contract is available, with its abort signal and typed errors, as if the store were in the page.
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { a as validateOverlay, c as fragmentOperators, d as overlayStatuses, f as participantKinds, l as messageModes, p as pseudoRoles, r as overlaySchema, s as elementKinds, t as modelSchema, u as notations } from "./schema-CVnS6HiX.js";
2
+ import { a as validateOverlay, c as fragmentOperators, d as overlayStatuses, f as participantKinds, l as messageModes, p as pseudoRoles, r as overlaySchema, s as elementKinds, t as modelSchema, u as notations } from "./schema-BPT8fmfa.js";
3
3
  import { t as validate } from "./validate-DF3mQZww.js";
4
4
  import { r as loopTransitions, s as emptyFactRecord } from "./control-DiygoEhm.js";
5
5
  import { z } from "zod";
package/dist/store.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as factRecordSchema, A as defaultSubscriptionCapacity, B as Reach, C as ElementRequest, D as ChangeFeedOptions, E as ChangeFeed, F as ChangeKind, G as StoredFacts, H as RelationKind, I as FactChange, J as boundItemsSchema, K as StoredModel, L as FactClearing, M as GraphStoreFailure, N as BoundActivity, O as ChangeSubscription, P as BoundItems, Q as factNameSchema, R as ModelId, S as overlayWithin, T as ModelRequest, U as Revision, V as Relation, W as StoreChange, X as factChangeSchema, Y as changeKinds, Z as factClearingSchema, _ as mergeFacts, a as blockedChainOf, at as relationSchema, b as emptyModel, c as structureOf, ct as storedFactsSchema, d as descendantsOf, dt as graphStoreContract, et as issueSchema, f as mergeRelations, g as factsWithin, h as factIssues, i as Structure, it as relationKinds, j as GraphStoreError, k as SubscribeOptions, l as ancestorsOf, lt as storedModelSchema, m as relationsWithin, n as GraphStoreRouter, nt as modelSummarySchema, o as impactOf, ot as revisionSchema, p as relationIssues, q as boundActivitySchema, r as createGraphStoreRouter, rt as reachSchema, s as readyOf, st as storeChangeSchema, t as createFakeGraphStore, tt as modelIdSchema, u as childrenOf, ut as GraphStoreClient, v as withoutFacts, w as GraphStore, x as mergeBoundItems, y as checkStored, z as ModelSummary } from "./index-DxWOY8f9.js";
1
+ import { $ as factRecordSchema, A as defaultSubscriptionCapacity, B as Reach, C as ElementRequest, D as ChangeFeedOptions, E as ChangeFeed, F as ChangeKind, G as StoredFacts, H as RelationKind, I as FactChange, J as boundItemsSchema, K as StoredModel, L as FactClearing, M as GraphStoreFailure, N as BoundActivity, O as ChangeSubscription, P as BoundItems, Q as factNameSchema, R as ModelId, S as overlayWithin, T as ModelRequest, U as Revision, V as Relation, W as StoreChange, X as factChangeSchema, Y as changeKinds, Z as factClearingSchema, _ as mergeFacts, a as blockedChainOf, at as relationSchema, b as emptyModel, c as structureOf, ct as storedFactsSchema, d as descendantsOf, dt as graphStoreContract, et as issueSchema, f as mergeRelations, g as factsWithin, h as factIssues, i as Structure, it as relationKinds, j as GraphStoreError, k as SubscribeOptions, l as ancestorsOf, lt as storedModelSchema, m as relationsWithin, n as GraphStoreRouter, nt as modelSummarySchema, o as impactOf, ot as revisionSchema, p as relationIssues, q as boundActivitySchema, r as createGraphStoreRouter, rt as reachSchema, s as readyOf, st as storeChangeSchema, t as createFakeGraphStore, tt as modelIdSchema, u as childrenOf, ut as GraphStoreClient, v as withoutFacts, w as GraphStore, x as mergeBoundItems, y as checkStored, z as ModelSummary } from "./index-CR8xUK3S.js";
2
2
  import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
3
3
  import { MigrationMeta } from "drizzle-orm/migrator";
4
4
  //#region ../../adapters/graph/store-sqlite/dist/database.d.ts
package/dist/store.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { r as loopTransitions, s as emptyFactRecord } from "./control-DiygoEhm.js";
2
- import { A as modelIdSchema, C as boundItemsSchema, D as factNameSchema, E as factClearingSchema, F as revisionSchema, I as storeChangeSchema, L as storedFactsSchema, M as reachSchema, N as relationKinds, O as factRecordSchema, P as relationSchema, R as storedModelSchema, S as boundActivitySchema, T as factChangeSchema, _ as mergeBoundItems, a as ancestorsOf, b as defaultSubscriptionCapacity, c as mergeRelations, d as factIssues, f as factsWithin, g as emptyModel, h as checkStored, i as serialised, j as modelSummarySchema, k as issueSchema, l as relationIssues, m as withoutFacts, n as tables_exports, o as childrenOf, p as mergeFacts, r as migrate, s as descendantsOf, t as createSqliteGraphStore, u as relationsWithin, v as overlayWithin, w as changeKinds, x as GraphStoreError, y as ChangeFeed } from "./store-BJILV4JS.js";
3
- import { n as graphStoreContract, t as createGraphStoreRouter } from "./router-DvGGLnNt.js";
2
+ import { A as modelIdSchema, C as boundItemsSchema, D as factNameSchema, E as factClearingSchema, F as revisionSchema, I as storeChangeSchema, L as storedFactsSchema, M as reachSchema, N as relationKinds, O as factRecordSchema, P as relationSchema, R as storedModelSchema, S as boundActivitySchema, T as factChangeSchema, _ as mergeBoundItems, a as ancestorsOf, b as defaultSubscriptionCapacity, c as mergeRelations, d as factIssues, f as factsWithin, g as emptyModel, h as checkStored, i as serialised, j as modelSummarySchema, k as issueSchema, l as relationIssues, m as withoutFacts, n as tables_exports, o as childrenOf, p as mergeFacts, r as migrate, s as descendantsOf, t as createSqliteGraphStore, u as relationsWithin, v as overlayWithin, w as changeKinds, x as GraphStoreError, y as ChangeFeed } from "./store-DKzvLGgl.js";
3
+ import { n as graphStoreContract, t as createGraphStoreRouter } from "./router-Dk91O_9p.js";
4
4
  //#region ../../core/graph/store-contract/dist/structure.js
5
5
  /**
6
6
  * Whether an element is a pure control element: a `decision` or a pseudo-state. Control elements have no work of their own, so the structural queries pass through them and never report them.
@@ -0,0 +1,114 @@
1
+ //#region ../../ui/graph/ui/dist/theme-values-BJJhAkUn.js
2
+ var vars = {
3
+ colour: {
4
+ background: "var(--_1pqhw580)",
5
+ surface: "var(--_1pqhw581)",
6
+ text: "var(--_1pqhw582)",
7
+ muted: "var(--_1pqhw583)",
8
+ border: "var(--_1pqhw584)",
9
+ accent: "var(--_1pqhw585)",
10
+ focus: "var(--_1pqhw586)",
11
+ critical: "var(--_1pqhw587)",
12
+ handoff: "var(--_1pqhw588)",
13
+ status: {
14
+ done: "var(--_1pqhw589)",
15
+ ready: "var(--_1pqhw58a)",
16
+ blocked: "var(--_1pqhw58b)",
17
+ skipped: "var(--_1pqhw58c)",
18
+ unknown: "var(--_1pqhw58d)"
19
+ }
20
+ },
21
+ space: {
22
+ small: "var(--_1pqhw58e)",
23
+ medium: "var(--_1pqhw58f)",
24
+ large: "var(--_1pqhw58g)"
25
+ },
26
+ radius: {
27
+ small: "var(--_1pqhw58h)",
28
+ medium: "var(--_1pqhw58i)"
29
+ },
30
+ font: {
31
+ body: "var(--_1pqhw58j)",
32
+ mono: "var(--_1pqhw58k)",
33
+ sizeSmall: "var(--_1pqhw58l)",
34
+ sizeBody: "var(--_1pqhw58m)",
35
+ sizeHeading: "var(--_1pqhw58n)",
36
+ weightStrong: "var(--_1pqhw58o)"
37
+ },
38
+ stroke: {
39
+ thin: "var(--_1pqhw58p)",
40
+ thick: "var(--_1pqhw58q)"
41
+ }
42
+ };
43
+ var lightTheme = "_1pqhw58r";
44
+ var darkTheme = "_1pqhw58s";
45
+ /** What both themes share: everything but colour. */
46
+ var shared = {
47
+ space: {
48
+ small: "0.25rem",
49
+ medium: "0.5rem",
50
+ large: "1rem"
51
+ },
52
+ radius: {
53
+ small: "0.25rem",
54
+ medium: "0.5rem"
55
+ },
56
+ font: {
57
+ body: "system-ui, -apple-system, \"Segoe UI\", sans-serif",
58
+ mono: "ui-monospace, \"SFMono-Regular\", Menlo, monospace",
59
+ sizeSmall: "0.75rem",
60
+ sizeBody: "0.875rem",
61
+ sizeHeading: "1rem",
62
+ weightStrong: "600"
63
+ },
64
+ stroke: {
65
+ thin: "1px",
66
+ thick: "3px"
67
+ }
68
+ };
69
+ /** The light theme's values. Each status colour reads as text on both `surface` and `background`. */
70
+ var lightValues = {
71
+ ...shared,
72
+ colour: {
73
+ background: "#ffffff",
74
+ surface: "#f6f8fa",
75
+ text: "#1f2328",
76
+ muted: "#59636e",
77
+ border: "#d1d9e0",
78
+ accent: "#0969da",
79
+ focus: "#0969da",
80
+ critical: "#9a6700",
81
+ handoff: "#6639ba",
82
+ status: {
83
+ done: "#1a7f37",
84
+ ready: "#0550ae",
85
+ blocked: "#cf222e",
86
+ skipped: "#59636e",
87
+ unknown: "#6639ba"
88
+ }
89
+ }
90
+ };
91
+ /** The dark theme's values. Each status colour reads as text on both `surface` and `background`. */
92
+ var darkValues = {
93
+ ...shared,
94
+ colour: {
95
+ background: "#0d1117",
96
+ surface: "#161b22",
97
+ text: "#e6edf3",
98
+ muted: "#9198a1",
99
+ border: "#3d444d",
100
+ accent: "#4493f8",
101
+ focus: "#4493f8",
102
+ critical: "#d29922",
103
+ handoff: "#ab7df8",
104
+ status: {
105
+ done: "#3fb950",
106
+ ready: "#58a6ff",
107
+ blocked: "#f85149",
108
+ skipped: "#9198a1",
109
+ unknown: "#ab7df8"
110
+ }
111
+ }
112
+ };
113
+ //#endregion
114
+ export { vars as a, lightValues as i, darkValues as n, lightTheme as r, darkTheme as t };
@@ -0,0 +1,116 @@
1
+ //#region ../../ui/graph/ui/dist/theme.css.d.ts
2
+ /**
3
+ * The theme contract: one CSS custom property per value of `ThemeValues`, read by every style in this package. A consumer restyles the components by assigning these properties, with its own `createTheme(vars, values)` class or `assignVars`, without forking them.
4
+ */
5
+ declare const vars: {
6
+ colour: {
7
+ background: `var(--${string})`;
8
+ surface: `var(--${string})`;
9
+ text: `var(--${string})`;
10
+ muted: `var(--${string})`;
11
+ border: `var(--${string})`;
12
+ accent: `var(--${string})`;
13
+ focus: `var(--${string})`;
14
+ critical: `var(--${string})`;
15
+ handoff: `var(--${string})`;
16
+ status: {
17
+ done: `var(--${string})`;
18
+ ready: `var(--${string})`;
19
+ blocked: `var(--${string})`;
20
+ skipped: `var(--${string})`;
21
+ unknown: `var(--${string})`;
22
+ };
23
+ };
24
+ space: {
25
+ small: `var(--${string})`;
26
+ medium: `var(--${string})`;
27
+ large: `var(--${string})`;
28
+ };
29
+ radius: {
30
+ small: `var(--${string})`;
31
+ medium: `var(--${string})`;
32
+ };
33
+ font: {
34
+ body: `var(--${string})`;
35
+ mono: `var(--${string})`;
36
+ sizeSmall: `var(--${string})`;
37
+ sizeBody: `var(--${string})`;
38
+ sizeHeading: `var(--${string})`;
39
+ weightStrong: `var(--${string})`;
40
+ };
41
+ stroke: {
42
+ thin: `var(--${string})`;
43
+ thick: `var(--${string})`;
44
+ };
45
+ };
46
+ /** The class that assigns the light theme's values. */
47
+ declare const lightTheme: string;
48
+ /** The class that assigns the dark theme's values. */
49
+ declare const darkTheme: string;
50
+ //#endregion
51
+ //#region ../../ui/graph/ui/dist/theme-values.d.ts
52
+ /**
53
+ * The shape of every theme: each leaf is a value a theme assigns. The theme contract is created from it, and `ThemeValues` derived from it, so the contract and the themes cannot disagree.
54
+ */
55
+ declare const themeShape: {
56
+ colour: {
57
+ /** Behind everything. */
58
+ background: null;
59
+ /** Behind a card, a lane or a panel. */
60
+ surface: null;
61
+ text: null;
62
+ /** Secondary text: lane headings, edge labels. */
63
+ muted: null;
64
+ border: null;
65
+ /** Selection and links. */
66
+ accent: null;
67
+ /** The focus ring. */
68
+ focus: null;
69
+ /** The critical path. */
70
+ critical: null;
71
+ /** A transition that passes work between actors. */
72
+ handoff: null;
73
+ /** Each status, used as text and as a mark on `surface` and `background`. */
74
+ status: {
75
+ done: null;
76
+ ready: null;
77
+ blocked: null;
78
+ skipped: null;
79
+ unknown: null;
80
+ };
81
+ };
82
+ space: {
83
+ small: null;
84
+ medium: null;
85
+ large: null;
86
+ };
87
+ radius: {
88
+ small: null;
89
+ medium: null;
90
+ };
91
+ font: {
92
+ body: null;
93
+ mono: null;
94
+ sizeSmall: null;
95
+ sizeBody: null;
96
+ sizeHeading: null;
97
+ /** The weight of labels and headings that stand out from body text. */
98
+ weightStrong: null;
99
+ };
100
+ stroke: {
101
+ /** Borders and ordinary edges. */
102
+ thin: null;
103
+ /** The critical path and the selection. */
104
+ thick: null;
105
+ };
106
+ };
107
+ /** A tree of the shape's keys with a CSS value at every leaf. */
108
+ type Assigned<Shape> = { readonly [Key in keyof Shape]: Shape[Key] extends null ? string : Assigned<Shape[Key]>; };
109
+ /** Every value a theme assigns, as CSS values: one per leaf of `themeShape`, so a theme that leaves one out does not compile. */
110
+ type ThemeValues = Assigned<typeof themeShape>;
111
+ /** The light theme's values. Each status colour reads as text on both `surface` and `background`. */
112
+ declare const lightValues: ThemeValues;
113
+ /** The dark theme's values. Each status colour reads as text on both `surface` and `background`. */
114
+ declare const darkValues: ThemeValues;
115
+ //#endregion
116
+ export { lightTheme as a, darkTheme as i, darkValues as n, vars as o, lightValues as r, ThemeValues as t };
@@ -0,0 +1,2 @@
1
+ import { a as lightTheme, i as darkTheme, n as darkValues, o as vars, r as lightValues, t as ThemeValues } from "../theme-values-BybZ-cle.js";
2
+ export { type ThemeValues, darkTheme, darkValues, lightTheme, lightValues, vars };
@@ -0,0 +1,2 @@
1
+ import { a as vars, i as lightValues, n as darkValues, r as lightTheme, t as darkTheme } from "../theme-values-BJJhAkUn-ORyRUrPf.js";
2
+ export { darkTheme, darkValues, lightTheme, lightValues, vars };