@xenosystem/blocks 0.23.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-NFOBZJDF.js → chunk-5NDMACVU.js} +3 -256
- package/dist/{chunk-5VOA3OSG.js → chunk-JEY4JFVJ.js} +9 -313
- package/dist/chunk-KC2QBI2I.js +314 -0
- package/dist/chunk-MDNEMOZD.js +259 -0
- package/dist/chunk-OB3VAVQI.js +106 -0
- package/dist/corpus/index.js +17 -17
- package/dist/docs/collaboration.d.ts +60 -0
- package/dist/docs/collaboration.js +49 -0
- package/dist/docs/core.d.ts +10 -3
- package/dist/docs/core.js +14 -10
- package/dist/docs/format.d.ts +3 -123
- package/dist/docs/format.js +5 -3
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.js +13 -9
- package/dist/format-BoLLqtrs.d.ts +124 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +8 -2
- package/dist/manifest-B2JS8PxD.d.ts +18 -0
- package/dist/ops/index.d.ts +171 -1
- package/dist/ops/index.js +502 -0
- package/dist/shell/index.d.ts +240 -0
- package/dist/shell/index.js +1345 -0
- package/package.json +41 -8
package/dist/ops/index.d.ts
CHANGED
|
@@ -2697,4 +2697,174 @@ declare function DiffPanelView({ controller, ...options }: DiffPanelViewProps):
|
|
|
2697
2697
|
/** The unit names the runtime supplies for this block — none; every unit is a chrome unit. */
|
|
2698
2698
|
declare const DIFF_RUNTIME_UNITS: readonly [];
|
|
2699
2699
|
|
|
2700
|
-
|
|
2700
|
+
/**
|
|
2701
|
+
* Wire types for the Stage-Gate Review block (`xeno.core.gates`), derived from XENO Creator v3:
|
|
2702
|
+
* agents draft, generate, plan and queue; only a person approves gates or rejects them with a
|
|
2703
|
+
* required reason.
|
|
2704
|
+
*
|
|
2705
|
+
* @module
|
|
2706
|
+
*/
|
|
2707
|
+
/** Lifecycle state of a human review gate. */
|
|
2708
|
+
type XenoGateState = 'open' | 'approved' | 'rejected' | 'superseded';
|
|
2709
|
+
/** Optional QA verdict attached to a gate. */
|
|
2710
|
+
type XenoGateVerdict = 'PASS' | 'REVISE' | 'REJECT';
|
|
2711
|
+
/** One human review gate on a pipeline stage. */
|
|
2712
|
+
interface XenoStageGate {
|
|
2713
|
+
readonly id: string;
|
|
2714
|
+
readonly runId: string;
|
|
2715
|
+
readonly stageCode: string;
|
|
2716
|
+
readonly stageName: string;
|
|
2717
|
+
readonly title: string;
|
|
2718
|
+
readonly brand?: string;
|
|
2719
|
+
readonly state: XenoGateState;
|
|
2720
|
+
readonly verdict?: XenoGateVerdict;
|
|
2721
|
+
readonly note?: string;
|
|
2722
|
+
readonly by?: string;
|
|
2723
|
+
readonly at?: string;
|
|
2724
|
+
}
|
|
2725
|
+
/** Filter applied to the gate queue. */
|
|
2726
|
+
type XenoGateFilterState = 'all' | XenoGateState;
|
|
2727
|
+
/** Decision intent emitted when a human approves or rejects a gate. */
|
|
2728
|
+
interface XenoGateDecisionIntent {
|
|
2729
|
+
readonly gateId: string;
|
|
2730
|
+
readonly runId: string;
|
|
2731
|
+
readonly decision: 'approve' | 'reject';
|
|
2732
|
+
readonly note: string;
|
|
2733
|
+
}
|
|
2734
|
+
/** Validate a wire gate record defensively (malformed host payloads are ignored, never thrown). */
|
|
2735
|
+
declare function isStageGate(value: unknown): value is XenoStageGate;
|
|
2736
|
+
|
|
2737
|
+
/**
|
|
2738
|
+
* Framework-free controller for `xeno.core.gates`.
|
|
2739
|
+
*
|
|
2740
|
+
* Enforces the Creator v3 product invariant: rejecting a gate requires a non-empty reason (`note`).
|
|
2741
|
+
* Never mutates host/server gate state directly — emits `decision` intents to the host bridge.
|
|
2742
|
+
*
|
|
2743
|
+
* @module
|
|
2744
|
+
*/
|
|
2745
|
+
|
|
2746
|
+
interface GateReviewHostBridge {
|
|
2747
|
+
emit(portId: string, value: unknown): void;
|
|
2748
|
+
}
|
|
2749
|
+
interface GateReviewControllerOptions {
|
|
2750
|
+
host?: GateReviewHostBridge;
|
|
2751
|
+
}
|
|
2752
|
+
interface GateReviewState {
|
|
2753
|
+
readonly gates: readonly XenoStageGate[];
|
|
2754
|
+
readonly visible: readonly XenoStageGate[];
|
|
2755
|
+
readonly filterState: XenoGateFilterState;
|
|
2756
|
+
readonly search: string;
|
|
2757
|
+
readonly selectedId: string | null;
|
|
2758
|
+
readonly noteDraft: string;
|
|
2759
|
+
readonly validationError: string | null;
|
|
2760
|
+
}
|
|
2761
|
+
declare class GateReviewController {
|
|
2762
|
+
private readonly host?;
|
|
2763
|
+
private readonly listeners;
|
|
2764
|
+
private state;
|
|
2765
|
+
constructor(options?: GateReviewControllerOptions);
|
|
2766
|
+
readonly subscribe: (listener: () => void) => (() => void);
|
|
2767
|
+
readonly getState: () => GateReviewState;
|
|
2768
|
+
private commit;
|
|
2769
|
+
setGates(raw: unknown): void;
|
|
2770
|
+
setFilter(input: {
|
|
2771
|
+
state?: unknown;
|
|
2772
|
+
search?: unknown;
|
|
2773
|
+
}): void;
|
|
2774
|
+
select(gateId: string | null): void;
|
|
2775
|
+
setNoteDraft(note: string): void;
|
|
2776
|
+
/**
|
|
2777
|
+
* Emit an approval or rejection intent for the selected (or named) open gate.
|
|
2778
|
+
* Rejections MUST include a non-empty reason; returns `{ ok: false, error }` otherwise.
|
|
2779
|
+
*/
|
|
2780
|
+
decide(decision: 'approve' | 'reject', gateId?: string, noteOverride?: string): {
|
|
2781
|
+
ok: true;
|
|
2782
|
+
intent: XenoGateDecisionIntent;
|
|
2783
|
+
} | {
|
|
2784
|
+
ok: false;
|
|
2785
|
+
error: string;
|
|
2786
|
+
};
|
|
2787
|
+
getSummary(): Record<string, number | string | null>;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* The `PanelModule` for `xeno.core.gates`.
|
|
2792
|
+
*
|
|
2793
|
+
* @module
|
|
2794
|
+
*/
|
|
2795
|
+
|
|
2796
|
+
interface CreateGateReviewPanelOptions {
|
|
2797
|
+
render?: (root: HTMLElement, controller: GateReviewController) => () => void;
|
|
2798
|
+
}
|
|
2799
|
+
declare function createGateReviewPanel(options?: CreateGateReviewPanelOptions): PanelModule;
|
|
2800
|
+
declare const gateReviewPanel: PanelModule;
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
* The `xeno.core.gates` manifest — human stage-gate review queue (XENO Creator v3).
|
|
2804
|
+
*
|
|
2805
|
+
* Emits decision intents only; the host and server enforce human approval and publish authority.
|
|
2806
|
+
*
|
|
2807
|
+
* @module
|
|
2808
|
+
*/
|
|
2809
|
+
|
|
2810
|
+
/** Canonical manifest identifier. */
|
|
2811
|
+
declare const GATE_REVIEW_PANEL_ID = "xeno.core.gates";
|
|
2812
|
+
/** The `xeno.core.gates` panel manifest. */
|
|
2813
|
+
declare const gateReviewManifest: PanelManifest;
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* React view for `xeno.core.gates` — composed strictly from `@xenosystem/components/chrome`.
|
|
2817
|
+
* Zero visual literals (`test/no-visual-value.test.ts` compliant).
|
|
2818
|
+
*
|
|
2819
|
+
* @module
|
|
2820
|
+
*/
|
|
2821
|
+
|
|
2822
|
+
interface GateReviewPanelViewProps {
|
|
2823
|
+
controller: GateReviewController;
|
|
2824
|
+
}
|
|
2825
|
+
declare function GateReviewPanelView({ controller }: GateReviewPanelViewProps): ReactNode;
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* `GATE_REVIEW_DECLARATION` — the `xeno.core.gates` block as a pure declaration referencing
|
|
2829
|
+
* `@xenosystem/components/chrome` units only (seen-before-used compliant).
|
|
2830
|
+
*
|
|
2831
|
+
* @module
|
|
2832
|
+
*/
|
|
2833
|
+
|
|
2834
|
+
interface GateReviewViewModel {
|
|
2835
|
+
readonly empty: boolean;
|
|
2836
|
+
readonly filterState: XenoGateFilterState;
|
|
2837
|
+
readonly search: string;
|
|
2838
|
+
readonly visible: readonly XenoStageGate[];
|
|
2839
|
+
readonly selected: XenoStageGate | null;
|
|
2840
|
+
readonly noteDraft: string;
|
|
2841
|
+
readonly validationError: string | null;
|
|
2842
|
+
readonly statusLabel: string;
|
|
2843
|
+
}
|
|
2844
|
+
type GateReviewUiIntent = {
|
|
2845
|
+
kind: 'filterState';
|
|
2846
|
+
state: XenoGateFilterState;
|
|
2847
|
+
} | {
|
|
2848
|
+
kind: 'search';
|
|
2849
|
+
search: string;
|
|
2850
|
+
} | {
|
|
2851
|
+
kind: 'select';
|
|
2852
|
+
gateId: string;
|
|
2853
|
+
} | {
|
|
2854
|
+
kind: 'note';
|
|
2855
|
+
note: string;
|
|
2856
|
+
} | {
|
|
2857
|
+
kind: 'approve';
|
|
2858
|
+
} | {
|
|
2859
|
+
kind: 'reject';
|
|
2860
|
+
};
|
|
2861
|
+
declare function gateReviewViewState(c: GateReviewController): GateReviewViewModel;
|
|
2862
|
+
declare function applyGateReviewUi(c: GateReviewController, intent: GateReviewUiIntent): void;
|
|
2863
|
+
declare const gateReviewViewManifest: PanelManifest;
|
|
2864
|
+
declare const GATE_REVIEW_BEHAVIOURS: {
|
|
2865
|
+
'ops/gateReviewPanelView': (inputs: Record<string, unknown>) => GateReviewViewModel;
|
|
2866
|
+
};
|
|
2867
|
+
declare const GATE_REVIEW_RUNTIME_UNITS: readonly [];
|
|
2868
|
+
declare const GATE_REVIEW_DECLARATION: BlockDeclaration;
|
|
2869
|
+
|
|
2870
|
+
export { ALL_STATUSES, BEHAVIOURS$3 as CONSOLE_BEHAVIOURS, CONSOLE_DECLARATION, CONSOLE_PANEL_ID, CONSOLE_RUNTIME_UNITS, ConsoleController, type ConsoleControllerOptions, type ConsoleHostBridge, type ConsolePanelState, ConsolePanelView, type ConsolePanelViewProps, type ConsoleRenderContext, ConsoleScroller, type ConsoleUiIntent, type ConsoleViewModel, type ConsoleViewOptions, type ConsoleViewRow, type ConsoleViewSource, type ConsoleViewState, type CreateConsolePanelOptions, type CreateDiffPanelOptions, type CreateGateReviewPanelOptions, type CreateRunsPanelOptions, type CreateTerminalPanelOptions, DEFAULT_MAX_STEP_DEPTH, BEHAVIOURS as DIFF_BEHAVIOURS, DIFF_DECLARATION, DIFF_PANEL_ID, DIFF_RUNTIME_UNITS, DiffController, type DiffControllerOptions, type DiffFileView, type DiffHostBridge, type DiffPanelState, DiffPanelView, type DiffPanelViewProps, type DiffRenderContext, type DiffUiIntent, type DiffViewFile, type DiffViewHunk, type DiffViewLine, type DiffViewModel, type DiffViewOptions, type DiffViewRun, type DiffViewSplitRow, type DiffViewState, type FlattenOptions, GATE_REVIEW_BEHAVIOURS, GATE_REVIEW_DECLARATION, GATE_REVIEW_PANEL_ID, GATE_REVIEW_RUNTIME_UNITS, GateReviewController, type GateReviewControllerOptions, type GateReviewHostBridge, GateReviewPanelView, type GateReviewPanelViewProps, type GateReviewState, type GateReviewUiIntent, type GateReviewViewModel, LEVEL_ORDER, MESSAGE_ELISION, REDACTION_CARRY, BEHAVIOURS$2 as RUNS_BEHAVIOURS, RUNS_DECLARATION, RUNS_PANEL_ID, RUNS_RUNTIME_UNITS, RUN_PATH_SEPARATOR, RUN_STATUSES, RunsController, type RunsControllerOptions, type RunsHostBridge, type RunsPanelState, RunsPanelView, type RunsPanelViewProps, type RunsRenderContext, type RunsUiIntent, type RunsViewChip, type RunsViewModel, type RunsViewOptions, type RunsViewRow, type RunsViewState, BEHAVIOURS$1 as TERMINAL_BEHAVIOURS, TERMINAL_DECLARATION, TERMINAL_PANEL_ID, TERMINAL_RUNTIME_UNITS, TERMINAL_STATUSES, TerminalController, type TerminalControllerOptions, type TerminalHostBridge, type TerminalInstanceView, type TerminalPanelState, TerminalPanelView, type TerminalPanelViewProps, type TerminalRenderContext, TerminalSurfaces, type TerminalUiIntent, type TerminalViewModel, type TerminalViewOptions, type TerminalViewState, type TerminalViewTab, XENO_TERMINAL_THEME_KEYS, type XenoDiffAction, type XenoDiffDecision, type XenoDiffDecisionIntent, type XenoDiffDecisionState, type XenoDiffFile, type XenoDiffFileOmission, type XenoDiffHighlighter, type XenoDiffHunk, type XenoDiffLine, type XenoDiffLineKind, type XenoDiffModel, type XenoDiffNavigate, type XenoDiffSegment, type XenoDiffStatus, type XenoDiffView, type XenoGateDecisionIntent, type XenoGateFilterState, type XenoGateState, type XenoGateVerdict, type XenoLogActivate, type XenoLogDelta, type XenoLogFilter, type XenoLogLevel, type XenoLogPatch, type XenoLogRecord, type XenoLogSource, type XenoRun, type XenoRunAction, type XenoRunActivate, type XenoRunDelta, type XenoRunError, type XenoRunFilter, type XenoRunLifecycle, type XenoRunPath, type XenoRunRow, type XenoRunRunRow, type XenoRunStats, type XenoRunStatus, type XenoRunStep, type XenoRunStepAppend, type XenoRunStepPatch, type XenoRunStepRow, type XenoRunTruncation, type XenoStageGate, type XenoTerminalData, type XenoTerminalEmulator, type XenoTerminalId, type XenoTerminalIntent, type XenoTerminalSession, type XenoTerminalStatus, type XenoTerminalTheme, appendStepsAtPath, applyConsoleUi, applyDiffUi, applyGateReviewUi, applyRunsUi, applyTerminalUi, canCancel, canRetry, collapseAdjacent, computeStats, consoleManifest, consolePanel, consoleRuntimeComponents, consoleViewManifest, consoleViewState, countChanges, createConsolePanel, createDiffPanel, createGateReviewPanel, createRunsPanel, createTerminalPanel, decodeRunPath, diffManifest, diffPanel, diffViewManifest, diffViewState, durationOf, encodeRunPath, flattenHunks, flattenRunRows, formatDuration, formatRecord, gateReviewManifest, gateReviewPanel, gateReviewViewManifest, gateReviewViewState, isActive, isLive, isSettled, isStageGate, isTerminal, isWaiting, lifecycleOf, matchesSearch as matchesRunSearch, matchesSearch$1 as matchesSearch, measuredSize, meetsLevel, needsAttention, omissionLabel, patchStepAtPath, queueDurationOf, readTerminalTheme, resolveStepPath, runsManifest, runsPanel, runsViewManifest, runsViewState, safeJson, spliceRedactedAppend, splitRows, statusLabel, terminalManifest, terminalPanel, terminalRuntimeComponents, terminalThemeVar, terminalViewManifest, terminalViewState, toneOf, truncateLogMessage };
|