omp-fabric 1.27.2 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +1 -1
- package/dist/capture/interceptor.d.ts.map +1 -1
- package/dist/chunks/{chunk-OJZNMROB.js → chunk-4PPAWZM6.js} +36 -50
- package/dist/chunks/chunk-4PPAWZM6.js.map +7 -0
- package/dist/chunks/{chunk-KIH3KLZU.js → chunk-C2YMZNT5.js} +5 -5
- package/dist/chunks/chunk-C2YMZNT5.js.map +7 -0
- package/dist/chunks/chunk-CHXPTZUF.js +277 -0
- package/dist/chunks/chunk-CHXPTZUF.js.map +7 -0
- package/dist/chunks/chunk-CYNNPPN4.js +93 -0
- package/dist/chunks/chunk-CYNNPPN4.js.map +7 -0
- package/dist/chunks/{chunk-ANHZ3SWB.js → chunk-DGKGPZET.js} +9 -4
- package/dist/chunks/{chunk-ANHZ3SWB.js.map → chunk-DGKGPZET.js.map} +2 -2
- package/dist/chunks/{chunk-2BOZMRT5.js → chunk-FVNEGH4J.js} +32 -49
- package/dist/chunks/chunk-FVNEGH4J.js.map +7 -0
- package/dist/chunks/{chunk-CNCRWY4Q.js → chunk-GS6IWGXQ.js} +9 -1
- package/dist/chunks/chunk-GS6IWGXQ.js.map +7 -0
- package/dist/chunks/{chunk-7QKSPNXQ.js → chunk-V5FB7D4C.js} +3 -3
- package/dist/chunks/chunk-VDYGBL4Z.js +132 -0
- package/dist/chunks/chunk-VDYGBL4Z.js.map +7 -0
- package/dist/chunks/chunk-XVA63H6I.js +151 -0
- package/dist/chunks/chunk-XVA63H6I.js.map +7 -0
- package/dist/chunks/{chunk-NOZBB266.js → chunk-XZIQGFF7.js} +9 -13
- package/dist/chunks/chunk-XZIQGFF7.js.map +7 -0
- package/dist/chunks/{chunk-4XLJPEI4.js → chunk-ZJ7HHWW4.js} +20 -41
- package/dist/chunks/chunk-ZJ7HHWW4.js.map +7 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/approval-controller.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +5 -3
- package/dist/fabric-runtime-state.js.map +1 -1
- package/dist/host-compatibility.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +180 -170
- package/dist/index.js.map +3 -3
- package/dist/residency/host.js +3 -3
- package/dist/residency/omp-entry.js +3 -3
- package/dist/topology/participant-directory.d.ts.map +1 -1
- package/dist/ui/arc-group.d.ts +1 -1
- package/dist/ui/arc-group.d.ts.map +1 -1
- package/dist/ui/code-preview-shell.d.ts +2 -2
- package/dist/ui/code-preview-shell.d.ts.map +1 -1
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.d.ts +1 -5
- package/dist/ui/conversation-chrome.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.js +2 -2
- package/dist/ui/conversation-queue.d.ts +3 -2
- package/dist/ui/conversation-queue.d.ts.map +1 -1
- package/dist/ui/conversation-render.d.ts +19 -23
- package/dist/ui/conversation-render.d.ts.map +1 -1
- package/dist/ui/conversation.d.ts +7 -17
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +317 -318
- package/dist/ui/conversation.js.map +3 -3
- package/dist/ui/core-tool-render.d.ts +1 -1
- package/dist/ui/core-tool-render.d.ts.map +1 -1
- package/dist/ui/dashboard-detail.d.ts +4 -4
- package/dist/ui/dashboard-detail.d.ts.map +1 -1
- package/dist/ui/dashboard-fabric-graph.d.ts +1 -1
- package/dist/ui/dashboard-fabric-graph.d.ts.map +1 -1
- package/dist/ui/dashboard-presentation.d.ts +1 -1
- package/dist/ui/dashboard-presentation.d.ts.map +1 -1
- package/dist/ui/dashboard.d.ts +8 -8
- package/dist/ui/dashboard.d.ts.map +1 -1
- package/dist/ui/dashboard.js +206 -343
- package/dist/ui/dashboard.js.map +3 -3
- package/dist/ui/diff-background.d.ts +1 -1
- package/dist/ui/diff-background.d.ts.map +1 -1
- package/dist/ui/fabric-actor-delivery-selector.d.ts +4 -4
- package/dist/ui/fabric-actor-delivery-selector.d.ts.map +1 -1
- package/dist/ui/fabric-actor-tool-selector.d.ts +5 -6
- package/dist/ui/fabric-actor-tool-selector.d.ts.map +1 -1
- package/dist/ui/fabric-host-event-selector.d.ts +4 -4
- package/dist/ui/fabric-host-event-selector.d.ts.map +1 -1
- package/dist/ui/fabric-model-selector.d.ts +4 -6
- package/dist/ui/fabric-model-selector.d.ts.map +1 -1
- package/dist/ui/fabric-render.d.ts +6 -6
- package/dist/ui/fabric-render.d.ts.map +1 -1
- package/dist/ui/fabric-thinking-selector.d.ts +4 -7
- package/dist/ui/fabric-thinking-selector.d.ts.map +1 -1
- package/dist/ui/highlight.d.ts +2 -13
- package/dist/ui/highlight.d.ts.map +1 -1
- package/dist/ui/row-balance.d.ts +6 -6
- package/dist/ui/row-balance.d.ts.map +1 -1
- package/dist/ui/settings.d.ts +6 -3
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +239 -113
- package/dist/ui/settings.js.map +3 -3
- package/dist/ui/state-file-preview.d.ts +1 -1
- package/dist/ui/state-file-preview.d.ts.map +1 -1
- package/dist/ui/tui/host-term.d.ts +16 -0
- package/dist/ui/tui/host-term.d.ts.map +1 -0
- package/dist/ui/tui/input.d.ts +19 -0
- package/dist/ui/tui/input.d.ts.map +1 -0
- package/dist/ui/tui/rows.d.ts +24 -0
- package/dist/ui/tui/rows.d.ts.map +1 -0
- package/dist/ui/tui/select-list.d.ts +28 -0
- package/dist/ui/tui/select-list.d.ts.map +1 -0
- package/dist/ui/tui/settings-list.d.ts +38 -0
- package/dist/ui/tui/settings-list.d.ts.map +1 -0
- package/dist/ui/tui/text-field.d.ts +40 -0
- package/dist/ui/tui/text-field.d.ts.map +1 -0
- package/dist/ui/tui/view.d.ts +26 -0
- package/dist/ui/tui/view.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +3 -3
- package/dist/ui/widget.d.ts.map +1 -1
- package/docs/configuration.md +2 -0
- package/docs/interface.md +16 -3
- package/package.json +13 -12
- package/dist/chunks/chunk-2BOZMRT5.js.map +0 -7
- package/dist/chunks/chunk-4XLJPEI4.js.map +0 -7
- package/dist/chunks/chunk-CNCRWY4Q.js.map +0 -7
- package/dist/chunks/chunk-G2IBGGBM.js +0 -42
- package/dist/chunks/chunk-G2IBGGBM.js.map +0 -7
- package/dist/chunks/chunk-KIH3KLZU.js.map +0 -7
- package/dist/chunks/chunk-NOZBB266.js.map +0 -7
- package/dist/chunks/chunk-OJZNMROB.js.map +0 -7
- package/dist/ui/symbol-theme.d.ts +0 -3
- package/dist/ui/symbol-theme.d.ts.map +0 -1
- /package/dist/chunks/{chunk-7QKSPNXQ.js.map → chunk-V5FB7D4C.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-file-preview.d.ts","sourceRoot":"","sources":["../../src/ui/state-file-preview.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"state-file-preview.d.ts","sourceRoot":"","sources":["../../src/ui/state-file-preview.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAI7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAMrD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB;AAqBD,eAAO,MAAM,oBAAoB,GAC/B,OAAO,kBAAkB,EACzB,KAAK,MAAM,KACV,sBAAsB,GAAG,SA0C3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,SAAS,sBAAsB,EAC/B,OAAO,KAAK,EACZ,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,aAAa,MAAM,IAAI,KACtB,MAAM,EA8BR,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type PaintApi = Pick<typeof import("@oh-my-pi/pi-tui/term/paint"), "defineRolePainter">;
|
|
2
|
+
type WidgetsApi = Pick<typeof import("@oh-my-pi/pi-tui/term/widgets"), "defineRoleWidget">;
|
|
3
|
+
type RenderApi = Pick<typeof import("@oh-my-pi/pi-tui/term/render"), "renderBlock">;
|
|
4
|
+
type KeymapApi = Pick<typeof import("@oh-my-pi/pi-tui/term/keymap"), "widgetKeyMatches" | "widgetActionOf">;
|
|
5
|
+
type DecoderApi = Pick<typeof import("@oh-my-pi/pi-tui/driver/input/decoder"), "decodeInput">;
|
|
6
|
+
interface HostTerm {
|
|
7
|
+
readonly paint?: PaintApi;
|
|
8
|
+
readonly widgets?: WidgetsApi;
|
|
9
|
+
readonly render?: RenderApi;
|
|
10
|
+
readonly keymap?: KeymapApi;
|
|
11
|
+
readonly decoder?: DecoderApi;
|
|
12
|
+
}
|
|
13
|
+
export declare const hostTerm: () => HostTerm;
|
|
14
|
+
export declare const hostTermDiagnostic: () => string | undefined;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=host-term.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-term.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/host-term.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,IAAI,CAAC,cAAc,6BAA6B,CAAC,EAAE,mBAAmB,CAAC,CAAC;AACxF,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,+BAA+B,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAC3F,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,8BAA8B,CAAC,EAAE,aAAa,CAAC,CAAC;AACpF,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,8BAA8B,CAAC,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC;AAC5G,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,uCAAuC,CAAC,EAAE,aAAa,CAAC,CAAC;AAE9F,UAAU,QAAQ;IAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;CAC/B;AA2ED,eAAO,MAAM,QAAQ,QAAO,QAAuB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,QAAO,MAAM,GAAG,SAGgH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { KeyEvent } from "@oh-my-pi/pi-tui";
|
|
2
|
+
import type { WidgetAction } from "@oh-my-pi/pi-tui/term/keymap";
|
|
3
|
+
type TerminalInput = {
|
|
4
|
+
readonly type: "key";
|
|
5
|
+
readonly key: KeyEvent;
|
|
6
|
+
} | {
|
|
7
|
+
readonly type: "paste";
|
|
8
|
+
readonly text: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const rememberHostKey: (key: KeyEvent) => void;
|
|
11
|
+
export declare const decodeTerminalInput: (data: string) => TerminalInput[];
|
|
12
|
+
export declare const keyMatches: (key: KeyEvent, action: WidgetAction) => boolean;
|
|
13
|
+
export declare const actionOf: <A extends WidgetAction>(id: string, actions: readonly A[]) => A | undefined;
|
|
14
|
+
export declare const keyOf: (data: string) => KeyEvent | undefined;
|
|
15
|
+
export declare const isKey: (data: string, id: string) => boolean;
|
|
16
|
+
export declare const isAction: (data: string, action: WidgetAction) => boolean;
|
|
17
|
+
export declare const typedText: (key: KeyEvent) => string | undefined;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAGjE,KAAK,aAAa,GACd;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAqCtD,eAAO,MAAM,eAAe,GAAI,KAAK,QAAQ,KAAG,IAE/C,CAAC;AAQF,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,aAAa,EAS/D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,QAAQ,EAAE,QAAQ,YAAY,KAAG,OAIhE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,YAAY,EAAE,IAAI,MAAM,EAAE,SAAS,SAAS,CAAC,EAAE,KAAG,CAAC,GAAG,SAIxF,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,KAAG,QAAQ,GAAG,SAI/C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,KAAG,OAAiC,CAAC;AAEnF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,QAAQ,YAAY,KAAG,OAG7D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,KAAK,QAAQ,KAAG,MAAM,GAAG,SACyC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Rows } from "./view.js";
|
|
2
|
+
export declare class TextBlock implements Rows {
|
|
3
|
+
private text;
|
|
4
|
+
private readonly paddingX;
|
|
5
|
+
private readonly paddingY;
|
|
6
|
+
constructor(text?: string, paddingX?: number, paddingY?: number);
|
|
7
|
+
getText(): string;
|
|
8
|
+
setText(text: string): void;
|
|
9
|
+
render(width: number): string[];
|
|
10
|
+
}
|
|
11
|
+
export declare class BlankRows implements Rows {
|
|
12
|
+
private readonly count;
|
|
13
|
+
constructor(count?: number);
|
|
14
|
+
render(): string[];
|
|
15
|
+
}
|
|
16
|
+
export declare class Stack implements Rows {
|
|
17
|
+
readonly children: Rows[];
|
|
18
|
+
add(child: Rows): void;
|
|
19
|
+
remove(child: Rows): void;
|
|
20
|
+
clear(): void;
|
|
21
|
+
invalidate(): void;
|
|
22
|
+
render(width: number): string[];
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/rows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qBAAa,SAAU,YAAW,IAAI;IAElC,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAFjB,IAAI,SAAK,EACA,QAAQ,SAAI,EACZ,QAAQ,SAAI;IAG/B,OAAO,IAAI,MAAM;IAIjB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI3B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAWhC;AAED,qBAAa,SAAU,YAAW,IAAI;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,SAAI;IAEtC,MAAM,IAAI,MAAM,EAAE;CAGnB;AAED,qBAAa,KAAM,YAAW,IAAI;IAChC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAM;IAE/B,GAAG,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAItB,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAKzB,KAAK,IAAI,IAAI;IAIb,UAAU,IAAI,IAAI;IAIlB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAGhC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Theme } from "@oh-my-pi/pi-tui/theme/contract";
|
|
2
|
+
import type { Rows } from "./view.js";
|
|
3
|
+
export interface SelectItem {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectListLayout {
|
|
9
|
+
minPrimaryColumnWidth?: number;
|
|
10
|
+
maxPrimaryColumnWidth?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class SelectList implements Rows {
|
|
13
|
+
private readonly items;
|
|
14
|
+
private readonly maxVisible;
|
|
15
|
+
private readonly theme;
|
|
16
|
+
private readonly layout;
|
|
17
|
+
onSelect: ((item: SelectItem) => void) | undefined;
|
|
18
|
+
onCancel: (() => void) | undefined;
|
|
19
|
+
private selectedIndex;
|
|
20
|
+
constructor(items: readonly SelectItem[], maxVisible: number, theme: Theme, layout?: SelectListLayout);
|
|
21
|
+
setSelectedIndex(index: number): void;
|
|
22
|
+
getSelectedItem(): SelectItem | undefined;
|
|
23
|
+
handleInput(data: string): void;
|
|
24
|
+
render(width: number): string[];
|
|
25
|
+
private pageSize;
|
|
26
|
+
private labelColumnWidth;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=select-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-list.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/select-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAID,qBAAa,UAAW,YAAW,IAAI;IAMnC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IARzB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACnD,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,aAAa,CAAK;gBAGP,KAAK,EAAE,SAAS,UAAU,EAAE,EAC5B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,GAAE,gBAAqB;IAGhD,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIrC,eAAe,IAAI,UAAU,GAAG,SAAS;IAIzC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAkB/B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAyB/B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,gBAAgB;CAMzB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Theme } from "@oh-my-pi/pi-tui/theme/contract";
|
|
2
|
+
import type { FabricView } from "./view.js";
|
|
3
|
+
export type SettingsSubmenu = (currentValue: string, done: (selectedValue?: string) => void) => FabricView;
|
|
4
|
+
export interface SettingItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
currentValue: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
values?: string[];
|
|
10
|
+
submenu?: SettingsSubmenu;
|
|
11
|
+
}
|
|
12
|
+
interface SettingsListOptions {
|
|
13
|
+
typeToSearch?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class SettingsList implements FabricView {
|
|
16
|
+
private readonly items;
|
|
17
|
+
private readonly maxVisible;
|
|
18
|
+
private readonly theme;
|
|
19
|
+
private readonly onChange;
|
|
20
|
+
private readonly onCancel;
|
|
21
|
+
private readonly options;
|
|
22
|
+
private selectedIndex;
|
|
23
|
+
private query;
|
|
24
|
+
private submenu;
|
|
25
|
+
constructor(items: SettingItem[], maxVisible: number, theme: Theme, onChange: (id: string, newValue: string) => void, onCancel: () => void, options?: SettingsListOptions);
|
|
26
|
+
getSelectedItem(): SettingItem | undefined;
|
|
27
|
+
selectItem(id: string): boolean;
|
|
28
|
+
updateValue(id: string, value: string): void;
|
|
29
|
+
handleInput(data: string): void;
|
|
30
|
+
render(width: number): string[];
|
|
31
|
+
private hint;
|
|
32
|
+
private pageSize;
|
|
33
|
+
private visibleItems;
|
|
34
|
+
private setQuery;
|
|
35
|
+
private activate;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=settings-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-list.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/settings-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAI7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,KAAK,UAAU,CAAC;AAE3G,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAKD,qBAAa,YAAa,YAAW,UAAU;IAM3C,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAV1B,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,OAAO,CAAyB;gBAGrB,KAAK,EAAE,WAAW,EAAE,EACpB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,EAChD,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,GAAE,mBAAwB;IAGpD,eAAe,IAAI,WAAW,GAAG,SAAS;IAI1C,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAQ/B,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAK5C,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAkC/B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAsC/B,OAAO,CAAC,IAAI;IAMZ,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,QAAQ;CAmBjB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { KeyEvent } from "@oh-my-pi/pi-tui";
|
|
2
|
+
import type { Rows } from "./view.js";
|
|
3
|
+
interface TextFieldOptions {
|
|
4
|
+
multiline?: boolean;
|
|
5
|
+
prompt?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class TextField implements Rows {
|
|
8
|
+
onSubmit: ((text: string) => void) | undefined;
|
|
9
|
+
onChange: ((text: string) => void) | undefined;
|
|
10
|
+
focused: boolean;
|
|
11
|
+
private text;
|
|
12
|
+
private cursor;
|
|
13
|
+
private killed;
|
|
14
|
+
private readonly undoStack;
|
|
15
|
+
private preferredColumn;
|
|
16
|
+
private lastCursorRow;
|
|
17
|
+
private readonly multiline;
|
|
18
|
+
private readonly prompt;
|
|
19
|
+
constructor(options?: TextFieldOptions);
|
|
20
|
+
getText(): string;
|
|
21
|
+
setText(text: string): void;
|
|
22
|
+
get cursorRow(): number;
|
|
23
|
+
handleInput(data: string): void;
|
|
24
|
+
handleKey(key: KeyEvent): boolean;
|
|
25
|
+
render(width: number): string[];
|
|
26
|
+
private apply;
|
|
27
|
+
private normalize;
|
|
28
|
+
private remember;
|
|
29
|
+
private insert;
|
|
30
|
+
private remove;
|
|
31
|
+
private moveTo;
|
|
32
|
+
private moveVertical;
|
|
33
|
+
private wordBoundaryBefore;
|
|
34
|
+
private wordBoundaryAfter;
|
|
35
|
+
private caret;
|
|
36
|
+
private renderLine;
|
|
37
|
+
private renderLines;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=text-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAgCD,qBAAa,SAAU,YAAW,IAAI;IACpC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC/C,OAAO,UAAQ;IACf,OAAO,CAAC,IAAI,CAAM;IAClB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAC5C,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAU;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,OAAO,GAAE,gBAAqB;IAK1C,OAAO,IAAI,MAAM;IAIjB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAS3B,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO/B,SAAS,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO;IAajC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAI/B,OAAO,CAAC,KAAK;IAyDb,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,MAAM;IAWd,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,YAAY;IA4BpB,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,WAAW;CAsCpB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UiNode } from "@oh-my-pi/pi-tui";
|
|
2
|
+
import type { Theme } from "@oh-my-pi/pi-tui/theme/contract";
|
|
3
|
+
export interface Rows {
|
|
4
|
+
render(width: number): readonly string[];
|
|
5
|
+
invalidate?(): void;
|
|
6
|
+
}
|
|
7
|
+
export interface FabricView extends Rows {
|
|
8
|
+
handleInput?(data: string): void;
|
|
9
|
+
handleWheel?(rows: number): void;
|
|
10
|
+
dispose?(): void;
|
|
11
|
+
}
|
|
12
|
+
export interface FabricViewHost {
|
|
13
|
+
requestRender(): void;
|
|
14
|
+
size(): {
|
|
15
|
+
readonly columns: number;
|
|
16
|
+
readonly rows: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const mountedView: (node: unknown) => FabricView | undefined;
|
|
20
|
+
export declare const isRows: (value: unknown) => value is Rows;
|
|
21
|
+
export declare const asRows: (output: unknown, theme: Theme) => Rows;
|
|
22
|
+
export declare const mountView: <V extends FabricView>(size: FabricViewHost["size"], build: (host: FabricViewHost) => V, onError?: (error: unknown) => void) => {
|
|
23
|
+
node: UiNode;
|
|
24
|
+
view: V;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/ui/tui/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,MAAM,EAAW,MAAM,kBAAkB,CAAC;AACrG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAK7D,MAAM,WAAW,IAAI;IACnB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IACzC,UAAU,CAAC,IAAI,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI;IACtC,WAAW,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,aAAa,IAAI,IAAI,CAAC;IACtB,IAAI,IAAI;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D;AA6BD,eAAO,MAAM,WAAW,GAAI,MAAM,OAAO,KAAG,UAAU,GAAG,SACH,CAAC;AAKvD,eAAO,MAAM,MAAM,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,IAMb,CAAC;AAErC,eAAO,MAAM,MAAM,GAAI,QAAQ,OAAO,EAAE,OAAO,KAAK,KAAG,IAOtD,CAAC;AAIF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,UAAU,EAC5C,MAAM,cAAc,CAAC,MAAM,CAAC,EAC5B,OAAO,CAAC,IAAI,EAAE,cAAc,KAAK,CAAC,EAClC,UAAU,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KACjC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAwCzB,CAAC"}
|
package/dist/ui/widget.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Theme } from "@oh-my-pi/pi-
|
|
1
|
+
import type { Rows } from "./tui/view.js";
|
|
2
|
+
import type { Theme } from "@oh-my-pi/pi-tui/theme/contract";
|
|
3
3
|
import type { FabricUiWidgetMode } from "../config.js";
|
|
4
4
|
import { type FabricDashboardSnapshot } from "./types.js";
|
|
5
5
|
export declare const shouldShowFabricWidget: (snapshot: FabricDashboardSnapshot, mode: FabricUiWidgetMode) => boolean;
|
|
6
|
-
export declare class FabricWidget implements
|
|
6
|
+
export declare class FabricWidget implements Rows {
|
|
7
7
|
#private;
|
|
8
8
|
readonly theme: Theme;
|
|
9
9
|
readonly snapshot: () => FabricDashboardSnapshot;
|
package/dist/ui/widget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/ui/widget.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/ui/widget.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAQvD,OAAO,EAGL,KAAK,uBAAuB,EAE7B,MAAM,YAAY,CAAC;AAkFpB,eAAO,MAAM,sBAAsB,GACjC,UAAU,uBAAuB,EACjC,MAAM,kBAAkB,KACvB,OAUF,CAAC;AAEF,qBAAa,YAAa,YAAW,IAAI;;IAErC,QAAQ,CAAC,KAAK,EAAE,KAAK;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,uBAAuB;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,QAAQ,CAAC,oBAAoB,EAAE,MAAM;gBAH5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,uBAAuB,EACvC,OAAO,EAAE,MAAM,EACf,oBAAoB,GAAE,MAAqC;IAUtE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAkB/B,UAAU,IAAI,OAAO;IAWrB,UAAU,IAAI,IAAI;CAyGnB"}
|
package/docs/configuration.md
CHANGED
|
@@ -73,6 +73,7 @@ where absent values do not participate. Orchestration programs (`agents.run` / `
|
|
|
73
73
|
"capture": {
|
|
74
74
|
"enabled": false,
|
|
75
75
|
"hideFromModel": false,
|
|
76
|
+
"keepEssentialVisible": true,
|
|
76
77
|
"keepVisible": ["fabric_exec"],
|
|
77
78
|
"includeTools": [],
|
|
78
79
|
"excludeTools": [],
|
|
@@ -362,6 +363,7 @@ Native calls keep OMP's original implementation, result shape, and renderer. Fab
|
|
|
362
363
|
|
|
363
364
|
- Captured and directly registered tools default to the conservative `execute` risk because OMP tool definitions do not declare effects. Add exact tool-name overrides under `capture.risks`. Fovea's verified graph-navigation tools (`fovea_sketch`, `fovea_focus`, `fovea_dwell`, and `fovea_impact`) are read-only exceptions that default to `read`. `/fabric settings` → **Capture** renders one row per entry in `capture.risks`, so every shipped override is editable and a new one appears without a panel change.
|
|
364
365
|
- Set `capture.hideFromModel` to `false` to index non-core extension tools without hiding them from the model's active set.
|
|
366
|
+
- A captured tool whose definition declares `loadMode: "essential"` stays in the model-facing set in full code mode, because OMP sends an essential tool to the model on every turn. Set `capture.keepEssentialVisible` to `false` to hide such tools like other captured tools; they stay callable through `fabric_exec`. OMP core names stay Fabric-owned, and Schema enforce mode keeps `fabric_exec` as the only model-facing tool.
|
|
365
367
|
- Names in `capture.keepVisible` stay in the model-facing active set of both Fabric and OMP. OMP core names are the exception: they remain Fabric-owned in full code mode.
|
|
366
368
|
- Extension tool names appear in the prompt as a names-only roster; descriptions and schemas are resolved on demand via `tools.list` / `tools.search` / `tools.describe` before first use.
|
|
367
369
|
- An `ask` policy emits a warning notification and opens an explicit **Allow once** / **Allow for this session** / **Deny** permission prompt. These options match Claude-style approval scopes. **Allow once** authorizes only the requested action. **Allow for this session** keeps that risk class authorized until the current OMP session ends. The TUI uses an inline wizard. RPC clients receive the equivalent `select` dialog.
|
package/docs/interface.md
CHANGED
|
@@ -14,7 +14,7 @@ Fabric keeps its orchestration-specific behavior around those previews. Multi-ca
|
|
|
14
14
|
|
|
15
15
|
Press **Ctrl+Shift+A** (or the key set in `ui.conversationShortcut`) or run **`/fabric chat`** to open a full-screen conversation without going through the dashboard. `/fabric chat <id-or-name>` opens a specific agent or actor; Tab completes exact participant IDs, including nested agents. Ambiguous names or ID prefixes are rejected; use an exact participant ID to select the intended target. In the dashboard, **Shift+C** opens the selected participant.
|
|
16
16
|
|
|
17
|
-
The first implicit open prefers a currently active child over stale history; later opens remember a valid selection. The view keeps a lossless native OMP transcript and a multiline
|
|
17
|
+
The first implicit open prefers a currently active child over stale history; later opens remember a valid selection. The view keeps a lossless native OMP transcript and a multiline editor together, independently of the dashboard’s bounded transcript projection. OMP 19.2 no longer exposes its transcript components to extensions, so Fabric draws the transcript with pi-tui: user prompts sit on the user message background, assistant text and thinking go through pi-tui Markdown, a tool with a registered `renderCall` or `renderResult` (such as `fabric_exec`) draws itself, and any other tool shows a compact card with its arguments and a result that the tool-expand key unfolds. Images inside tool results are not shown. User backgrounds and editor rules span the terminal width. Fabric reads only `hideThinkingBlock` from OMP’s global settings plus a trusted project layer; untrusted sessions use an in-memory OMP instance with schema defaults (`hideThinkingBlock: false`). The footer below the editor shows the selected participant’s directory, known branch, model, thinking level, and run-scoped token/cache/cost statistics. Unknown usage and context occupancy are marked explicitly; Main’s statistics are never substituted. Breadcrumbs preserve `Main → child → grandchild` lineage. Main and other participants keep running: opening, navigating, and closing the view never calls OMP’s session-replacement API or starts another worker. Selecting Main restores the original OMP conversation, including its editor. Child drafts and scroll positions survive switching targets and reopening the view for the lifetime of this OMP session.
|
|
18
18
|
|
|
19
19
|
| Control | Action |
|
|
20
20
|
| --- | --- |
|
|
@@ -24,7 +24,7 @@ The first implicit open prefers a currently active child over stale history; lat
|
|
|
24
24
|
| Ctrl+N or `/agents` | Open the searchable participant picker |
|
|
25
25
|
| Alt+Left / Alt+Right at an empty editor | Navigate to parent / first child |
|
|
26
26
|
| Ctrl+Tab / Ctrl+Shift+Tab | Cycle conversations |
|
|
27
|
-
| Mouse wheel / configured OMP scroll keys | Scroll locally and fetch older history;
|
|
27
|
+
| Mouse wheel / configured OMP scroll keys | Scroll locally and fetch older history. The wheel reaches the view while OMP mouse reporting (`tui.mouse`) is on; with it off, a terminal that turns the wheel into arrow keys on the alternate screen scrolls through the line keys |
|
|
28
28
|
| End | Follow the latest output |
|
|
29
29
|
| OMP's tool-expand key (Ctrl+O by default) | Toggle tool details |
|
|
30
30
|
| `/stop` | Explicitly stop the selected participant after confirmation |
|
|
@@ -42,7 +42,7 @@ This is a focused view over the existing worker, not a second native OMP runtime
|
|
|
42
42
|
|
|
43
43
|
Fabric ships a general-purpose, theme-aware activity surface that works with any agent setup:
|
|
44
44
|
- A compact widget above the chat (like `pi-supervisor`) follows the current phase in its header. It lists active and completed one-shot agents plus active actor workers. Their recent or running child tools nest beneath the owner, with compact edit/write change lines and owner metadata. Extensions, custom items, and shared tasks/state stay summarized by the header or appear in the dashboard, so they never occupy widget rows. The widget retains completed agent rows and a per-run high-water height, which stops tool finalization from pulling the chat upward. It resets that lease when a newer run starts, and the latest completed summary stays visible until that newer run replaces it. Snapshot bounds first preserve every active local agent, then local history, and only then admit remote project records. When a collapsed Fabric result becomes shorter at completion, the card reveals a bounded number of otherwise hidden TypeScript source lines. Those lines replace the removed rows without blank padding, and any residual deficit shrinks naturally.
|
|
45
|
-
- `/fabric` (or `/fabric dashboard`) opens a responsive
|
|
45
|
+
- `/fabric` (or `/fabric dashboard`) opens a responsive full-screen overlay with two views: **Activity** and a unified **Topology**. Press `1` for Activity and `2` for Topology.
|
|
46
46
|
- `/fabric settings` opens an inline settings view that mirrors OMP core's `/settings`, with top and bottom borders, fuzzy search, and section submenus, and it writes changes to `fabric.json`. Every session opens at the global `<active OMP agent dir>/fabric.json`. In a trusted project, pressing **Ctrl+G** anywhere in the view switches both the displayed configuration layer and the save destination to the `<project>/.omp/fabric.json` overrides and back. The global view keeps global edits visible even when a project override remains effective, and its scope banner states that precedence explicitly. Untrusted sessions stay global-only. In RPC hosts, the same hierarchy is exposed through recursive select/input dialogs; a root save-scope action replaces the Ctrl+G shortcut, while Back returns one section at a time. Full code mode, capture, executor, approvals, and UI changes apply immediately when they change the effective configuration. Mesh, agent, retention, and MCP changes persist and take effect on the next `/fabric reload`. The UI section includes **Tool display** (`full` by default or `compact`), a default-on **Agent tool preview** toggle, and a global **Update debounce** (`0`/Off through `1000ms`, default `100ms`); all apply immediately. Compact display makes the declared Fabric display name/description the card header, hides outer TypeScript at every expansion level, and retains bounded nested tool details. The Agents section selects the default runner, keeps independent OMP and runtime-enumerated Claude model pickers, and exposes free-text Veda backend, persona, and model fields for the Veda runner. List editors for `agents.defaultTools` and `capture.keepVisible` toggle known tools on and off. The `keepVisible` candidates include `fabric_exec` plus every captured extension tool.
|
|
47
47
|
|
|
48
48
|
### Keybindings
|
|
@@ -82,6 +82,19 @@ async invoke(actionName, args, context) {
|
|
|
82
82
|
}
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
+
## Host terminal internals
|
|
86
|
+
|
|
87
|
+
The pi-tui root export covers nodes, signals, and events. Fabric also calls five pi-tui modules that OMP serves from its binary without a stability promise: `term/paint`, `term/widgets`, `term/render`, `term/keymap`, and `driver/input/decoder`. Fabric loads them with dynamic imports when its UI module loads and checks each export it calls. When a later OMP release drops one of these modules or exports, Fabric still loads, and its startup warning names what is missing:
|
|
88
|
+
|
|
89
|
+
| Missing module | Fabric falls back to |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| `term/paint` or `term/widgets` | The view paints as a plain `canvas` node. Mouse wheel scrolling stops; the scroll keys keep working. |
|
|
92
|
+
| `term/render` | A preview drawn by a host tool renderer shows one notice row. Fabric's own renderers keep drawing. |
|
|
93
|
+
| `term/keymap` | The default pi-tui widget keys. Keys rebound in OMP settings do not apply to Fabric views. |
|
|
94
|
+
| `driver/input/decoder` | Keys come from the host key event the view just received. Bracketed paste still works; other input that does not arrive as a host key event is ignored. |
|
|
95
|
+
|
|
96
|
+
Text helpers (`text/width`, `text/markdown/render`, `theme/theme`) and other host modules stay static imports. `bun scripts/check-host-imports.mjs` lists every `@oh-my-pi/*` specifier and named import in `dist/` and imports each one from the installed host packages. A missing static import fails the check, and a missing dynamic import is reported as a fallback. Pass `--binary "$(command -v omp)"` to also check each specifier against the module map compiled into an OMP binary. CI runs the check after the build. Run it with `--binary` against a new OMP release before raising the host floor.
|
|
97
|
+
|
|
85
98
|
## Commands
|
|
86
99
|
|
|
87
100
|
```text
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omp-fabric",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"description": "A programmable tool and agent runtime for Oh My Pi (OMP)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,8 +36,9 @@
|
|
|
36
36
|
"benchmark:codemap": "bun scripts/benchmark-codemap.mjs",
|
|
37
37
|
"benchmark:skill-router": "bun scripts/benchmark-skill-router.mjs",
|
|
38
38
|
"lint:dead": "knip --no-gitignore",
|
|
39
|
-
"check": "bun run typecheck && bun run build && bun run assert:lazy-graph && bun run test && bun run lint:dead",
|
|
39
|
+
"check": "bun run typecheck && bun run build && bun run assert:lazy-graph && bun run check:host-imports && bun run test && bun run lint:dead",
|
|
40
40
|
"assert:lazy-graph": "node scripts/assert-lazy-graph-host-free.mjs",
|
|
41
|
+
"check:host-imports": "bun scripts/check-host-imports.mjs",
|
|
41
42
|
"assert:build-artifacts": "bun scripts/assert-build-artifacts.mjs",
|
|
42
43
|
"prepack": "bun run check"
|
|
43
44
|
},
|
|
@@ -78,9 +79,9 @@
|
|
|
78
79
|
"image": "https://raw.githubusercontent.com/tickernelz/omp-fabric/main/media/banner.svg"
|
|
79
80
|
},
|
|
80
81
|
"dependencies": {
|
|
81
|
-
"@oh-my-pi/pi-agent-core": "19.
|
|
82
|
-
"@oh-my-pi/pi-ai": "19.
|
|
83
|
-
"@oh-my-pi/pi-utils": "19.
|
|
82
|
+
"@oh-my-pi/pi-agent-core": "19.2.1",
|
|
83
|
+
"@oh-my-pi/pi-ai": "19.2.1",
|
|
84
|
+
"@oh-my-pi/pi-utils": "19.2.1",
|
|
84
85
|
"@jitl/quickjs-singlefile-mjs-release-sync": "^0.32.0",
|
|
85
86
|
"@shikijs/langs": "4.4.3",
|
|
86
87
|
"@shikijs/themes": "4.4.3",
|
|
@@ -93,15 +94,15 @@
|
|
|
93
94
|
"yaml": "^2.9.0"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
|
-
"@oh-my-pi/pi-coding-agent": ">=
|
|
97
|
-
"@oh-my-pi/pi-natives": ">=
|
|
98
|
-
"@oh-my-pi/pi-tui": ">=
|
|
97
|
+
"@oh-my-pi/pi-coding-agent": ">=19.2.1",
|
|
98
|
+
"@oh-my-pi/pi-natives": ">=19.2.1",
|
|
99
|
+
"@oh-my-pi/pi-tui": ">=19.2.1"
|
|
99
100
|
},
|
|
100
101
|
"devDependencies": {
|
|
101
|
-
"@oh-my-pi/omptype": "19.
|
|
102
|
-
"@oh-my-pi/pi-coding-agent": "19.
|
|
103
|
-
"@oh-my-pi/pi-natives": "19.
|
|
104
|
-
"@oh-my-pi/pi-tui": "19.
|
|
102
|
+
"@oh-my-pi/omptype": "19.2.1",
|
|
103
|
+
"@oh-my-pi/pi-coding-agent": "19.2.1",
|
|
104
|
+
"@oh-my-pi/pi-natives": "19.2.1",
|
|
105
|
+
"@oh-my-pi/pi-tui": "19.2.1",
|
|
105
106
|
"@types/cross-spawn": "^6.0.6",
|
|
106
107
|
"@types/node": "^26.1.2",
|
|
107
108
|
"esbuild": "^0.25.12",
|