@mnmal-ai/surface-core 0.0.0 → 0.14.5

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/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
1
  # @mnmal-ai/surface-core
2
2
 
3
- Reserved by MNMAL. Nothing here yet.
3
+ Registries (`defineModule`, `createApp`), the turn engine and the shell. Apps compose modules at build time:
4
+
5
+ ```ts
6
+ const app = createApp({ theme, modules: [ask, schema, status] });
7
+ await app.run();
8
+ ```
9
+
10
+ Part of [surface](https://github.com/mnmal-ai/surface). Pre-1.0: the module contract may break between minor versions.
11
+
12
+ Apache-2.0.
package/dist/app.d.ts ADDED
@@ -0,0 +1,135 @@
1
+ import type { Theme } from '@mnmal-ai/surface-theme';
2
+ import { type ReactElement, type ReactNode } from 'react';
3
+ import { type Registry } from './compose.js';
4
+ import type { Reply, TuiModule } from './module.js';
5
+ import { type PrepareTerminalOptions } from './terminal.js';
6
+ import { type AnswerEntry, type AskEntry, type Flight as HeldAsk, type NoteEntry } from './transcript.js';
7
+ type AnyModule = TuiModule<any>;
8
+ /**
9
+ * An app's view of an ask: a committed one, or one still waiting for its answer (`held`).
10
+ * `entry.question` and `entry.emphasis` arrive as typed or submitted, unsanitised, where the
11
+ * core's own echo sanitises them: pass them through `sanitise` before drawing.
12
+ */
13
+ export interface AskViewProps {
14
+ readonly entry: AskEntry | HeldAsk;
15
+ readonly held: boolean;
16
+ readonly theme: Theme;
17
+ readonly size: {
18
+ readonly columns: number;
19
+ };
20
+ }
21
+ /** An app's frame around an answer: `body` is the reply as its renderer drew it, with its
22
+ * chips. The entry's own text fields (`question`) arrive unsanitised, as in `AskViewProps`. */
23
+ export interface AnswerViewProps {
24
+ readonly entry: AnswerEntry<Reply>;
25
+ readonly body: ReactNode;
26
+ readonly theme: Theme;
27
+ readonly size: {
28
+ readonly columns: number;
29
+ };
30
+ }
31
+ /**
32
+ * An app's line for a turn still waiting for its answer: under its ask while the ask is
33
+ * held (`held`), or on its own once its ask was printed with a mark because a later answer
34
+ * overtook it. `reply` is its latest pending update, if one came; `body` is what the core draws
35
+ * for the turn — that update through its renderer, else a spinner.
36
+ */
37
+ export interface WaitingViewProps {
38
+ readonly flight: HeldAsk;
39
+ readonly held: boolean;
40
+ readonly reply?: Reply;
41
+ readonly body: ReactNode;
42
+ readonly theme: Theme;
43
+ readonly size: {
44
+ readonly columns: number;
45
+ };
46
+ }
47
+ /** An app's view of a note, the surface's own line. `entry.text` arrives unsanitised. */
48
+ export interface NoteViewProps {
49
+ readonly entry: NoteEntry;
50
+ readonly theme: Theme;
51
+ readonly size: {
52
+ readonly columns: number;
53
+ };
54
+ }
55
+ export interface AppOptions {
56
+ readonly theme: Theme;
57
+ readonly modules: readonly AnyModule[];
58
+ /** `<module>:<handlerId>` used when no turn handler claims the text. */
59
+ readonly defaultTurn?: string;
60
+ /** Below this terminal width the right rail is hidden. Default 80. */
61
+ readonly railMinColumns?: number;
62
+ /**
63
+ * Columns of inset on each side of everything the shell draws: transcript, live region, band and
64
+ * status row (a pane gutter). Whole numbers 0 to 8; default 0. Panels and renderers are
65
+ * sized to the width left inside it.
66
+ */
67
+ readonly gutter?: number;
68
+ /**
69
+ * Draws the input line and a presence row inside a bold left-edged band, with a block cursor and
70
+ * no prompt glyph.
71
+ * The exit-chord hint moves from the toast row into the presence row's notice. When false (the
72
+ * default) the frame is unchanged and a module's `presence` is ignored.
73
+ */
74
+ readonly band?: boolean;
75
+ /**
76
+ * A bottom-anchored pane: the input stays on the terminal's last row. When
77
+ * the live region shrinks with nothing printed above it, blank rows are printed so the pane
78
+ * scrolls back; a resize (wider, narrower or taller) and a panel or menu closing re-lay the
79
+ * pane — wipe it and print the transcript again at the current width — and a line sent by the
80
+ * act that closes the menu runs one render later, so its close is reclaimed first. The cost of
81
+ * a re-lay is the terminal's scrollback from before the session. Default false: the frame is
82
+ * unchanged.
83
+ */
84
+ readonly anchored?: boolean;
85
+ /**
86
+ * How `run()` prepares the terminal before the first frame (ground, pane wipe, bottom anchor).
87
+ * Options here pass through to `prepareTerminal`, over an `anchor` that follows `anchored`.
88
+ * `false`: the host prepared the terminal itself and owns restoring it, so `run()` touches
89
+ * nothing. Default: prepared with the defaults.
90
+ */
91
+ readonly terminal?: PrepareTerminalOptions | false;
92
+ /**
93
+ * The app's own frames for the conversation. `ask` draws an ask, committed or held;
94
+ * `answer` draws the frame around an answer's body. Either one left out keeps the core's:
95
+ * `⟨n⟩ › question` for an ask, and a `↩ ⟨n⟩` line above the body for a marked answer. A view
96
+ * that throws is reported as `app view failed`, as a renderer's failure is.
97
+ */
98
+ readonly entries?: {
99
+ readonly ask?: (props: AskViewProps) => ReactNode;
100
+ readonly answer?: (props: AnswerViewProps) => ReactNode;
101
+ /** A turn still waiting. Left out: the body under a held ask, and `⟨n⟩` then the
102
+ * body for a marked one. */
103
+ readonly waiting?: (props: WaitingViewProps) => ReactNode;
104
+ /** A note, the surface's own line. Left out: the text in its tone. */
105
+ readonly note?: (props: NoteViewProps) => ReactNode;
106
+ };
107
+ /** What the first ctrl+c says, in the toast row or the band's notice. Default
108
+ * 'press ctrl+c again to exit'. */
109
+ readonly exitHint?: string;
110
+ /**
111
+ * Rows the panel overlay takes, from the terminal's rows. Default `defaultPanelRows`,
112
+ * which subtracts the band's rows when `band` is set. An explicit function is taken as-is and is
113
+ * NOT band-adjusted: it must already count the band. A view gets these rows, and the
114
+ * columns less the overlay's side inset (4).
115
+ */
116
+ readonly panelRows?: (terminalRows: number) => number;
117
+ }
118
+ /** A panel's rows by default: the terminal less the shell's own, and never under three. */
119
+ export declare function defaultPanelRows(terminalRows: number, opts?: {
120
+ readonly band?: boolean;
121
+ }): number;
122
+ /** Fixed dimensions for tests and embedding; absent, the shell reads the terminal and follows it. */
123
+ interface AppProps {
124
+ readonly columns?: number;
125
+ readonly rows?: number;
126
+ }
127
+ /** What `run()` prepares the terminal with, or `null` when the host has prepared it already. */
128
+ export declare function runTerminalOptions(opts: Pick<AppOptions, 'anchored' | 'terminal'>): PrepareTerminalOptions | null;
129
+ export declare function createApp(opts: AppOptions): {
130
+ registry: Registry;
131
+ App: (props: AppProps) => ReactElement;
132
+ run(): Promise<void>;
133
+ };
134
+ export {};
135
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAQ,MAAM,yBAAyB,CAAC;AAa3D,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAc7D,OAAO,KAAK,EAGV,KAAK,EAIL,SAAS,EAGV,MAAM,aAAa,CAAC;AAerB,OAAO,EAGL,KAAK,sBAAsB,EAG5B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,QAAQ,EAMb,KAAK,MAAM,IAAI,OAAO,EAGtB,KAAK,SAAS,EAGf,MAAM,iBAAiB,CAAC;AAGzB,KAAK,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAEhC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AAED;gGACgG;AAChG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACnC,QAAQ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O,CAAC,IAAI,CAAC,CAAC;CACtB,CAykCA"}
@@ -0,0 +1,6 @@
1
+ /** A typed or pasted chunk applied to the draft: complete lines are submitted, the rest kept. */
2
+ export declare function applyInput(draft: string, chunk: string): {
3
+ draft: string;
4
+ submit: string[];
5
+ };
6
+ //# sourceMappingURL=apply-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-input.d.ts","sourceRoot":"","sources":["../src/apply-input.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAM5F"}
@@ -0,0 +1,15 @@
1
+ import type { Completer, Suggestion } from './module.js';
2
+ /** Every completer at once; a slow or failing one is dropped, never waited on. */
3
+ export declare function mergeCompletions(completers: readonly Completer[], draft: string, cursor: number, opts?: {
4
+ timeoutMs?: number;
5
+ limit?: number;
6
+ }): Promise<Suggestion[]>;
7
+ /**
8
+ * Replace the suggestion's `replace` span with its insert, or, without a valid one, the
9
+ * whitespace-delimited token ending at `cursor`. The cursor lands after the insert.
10
+ */
11
+ export declare function applySuggestion(draft: string, cursor: number, s: Suggestion): {
12
+ text: string;
13
+ cursor: number;
14
+ };
15
+ //# sourceMappingURL=complete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complete.d.ts","sourceRoot":"","sources":["../src/complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAmBzD,kFAAkF;AAClF,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,IAAI,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAChD,OAAO,CAAC,UAAU,EAAE,CAAC,CAqBvB;AAaD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,UAAU,GACZ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAalC"}
@@ -0,0 +1,55 @@
1
+ import type { CommandSpec, Completer, GlobalBinding, PanelDef, PresenceSpec, RailItem, Renderer, TuiModule, TurnHandler } from './module.js';
2
+ type AnyModule = TuiModule<any>;
3
+ export interface Registry {
4
+ readonly modules: readonly AnyModule[];
5
+ readonly commands: ReadonlyMap<string, {
6
+ module: string;
7
+ spec: CommandSpec<unknown>;
8
+ }>;
9
+ readonly panels: ReadonlyMap<string, {
10
+ module: string;
11
+ panel: string;
12
+ def: PanelDef<unknown, unknown>;
13
+ }>;
14
+ readonly globals: ReadonlyMap<string, {
15
+ module: string;
16
+ binding: GlobalBinding<unknown>;
17
+ }>;
18
+ readonly completers: readonly {
19
+ module: string;
20
+ completer: Completer;
21
+ }[];
22
+ readonly turns: readonly {
23
+ module: string;
24
+ handler: TurnHandler<unknown>;
25
+ }[];
26
+ readonly renderers: ReadonlyMap<string, {
27
+ module: string;
28
+ render: Renderer;
29
+ }>;
30
+ readonly rail: readonly {
31
+ module: string;
32
+ item: RailItem;
33
+ }[];
34
+ readonly status: readonly {
35
+ module: string;
36
+ item: RailItem;
37
+ }[];
38
+ readonly presence?: {
39
+ readonly module: string;
40
+ readonly spec: PresenceSpec;
41
+ };
42
+ }
43
+ /** Keys a module may not bind globally: the exit chord, submit, cancel, complete. */
44
+ export declare const RESERVED_GLOBAL_KEYS: readonly string[];
45
+ /** Keys a panel may not bind: only these are taken before a focused panel's keymap (keys.ts). */
46
+ export declare const RESERVED_PANEL_KEYS: readonly string[];
47
+ export declare class CompositionError extends Error {
48
+ readonly problems: readonly string[];
49
+ constructor(problems: readonly string[]);
50
+ }
51
+ export declare function composeModules(modules: readonly AnyModule[]): Registry;
52
+ /** One line in an app's tests: a composition conflict becomes a CI failure. */
53
+ export declare function assertComposes(modules: readonly AnyModule[]): void;
54
+ export {};
55
+ //# sourceMappingURL=compose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,MAAM,aAAa,CAAC;AAIrB,KAAK,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAEhC,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IACvF,QAAQ,CAAC,MAAM,EAAE,WAAW,CAC1B,MAAM,EACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;KAAE,CACnE,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IAC3F,QAAQ,CAAC,UAAU,EAAE,SAAS;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;IACzE,QAAQ,CAAC,KAAK,EAAE,SAAS;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;KAAE,EAAE,CAAC;IAC7E,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC;IAC9E,QAAQ,CAAC,IAAI,EAAE,SAAS;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,EAAE,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,SAAS;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,EAAE,CAAC;IAC/D,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC;CAC9E;AAED,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAyC,CAAC;AAE5F,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAAyB,CAAC;AAK3E,qBAAa,gBAAiB,SAAQ,KAAK;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE;IAAhD,YAAqB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAG/C;CACF;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,GAAG,QAAQ,CAwJtE;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,GAAG,IAAI,CAElE"}
@@ -0,0 +1,58 @@
1
+ export interface Draft {
2
+ readonly text: string;
3
+ /** 0..text.length — the position a typed character is inserted at. */
4
+ readonly cursor: number;
5
+ }
6
+ export declare const EMPTY_DRAFT: Draft;
7
+ /** A whole new line with the cursor at its end — a completion, or a cleared input. */
8
+ export declare function atEnd(text: string): Draft;
9
+ /** The subset of Ink's key flags the editor reads. */
10
+ export interface EditKeys {
11
+ readonly leftArrow?: boolean;
12
+ readonly rightArrow?: boolean;
13
+ readonly home?: boolean;
14
+ readonly end?: boolean;
15
+ readonly backspace?: boolean;
16
+ readonly delete?: boolean;
17
+ readonly ctrl?: boolean;
18
+ readonly meta?: boolean;
19
+ }
20
+ /** Start of the word before the cursor, skipping the spaces in between. */
21
+ export declare function wordLeft(text: string, from: number): number;
22
+ /** End of the word after the cursor, skipping the spaces in between. */
23
+ export declare function wordRight(text: string, from: number): number;
24
+ /**
25
+ * A key that moves or deletes, applied — or null when the key is not an editing key, so the
26
+ * caller carries on to typing and submitting.
27
+ *
28
+ * Backspace and Delete both delete before the cursor. Terminals disagree about which byte the
29
+ * Backspace key sends, and Ink reports the common one (0x7f) as `delete`; treating it as a
30
+ * forward delete would make the key nearly everyone presses delete the wrong character. Deleting
31
+ * under the cursor is Ctrl-D, which no terminal sends by accident.
32
+ */
33
+ export declare function editKey(d: Draft, input: string, key: EditKeys): Draft | null;
34
+ /**
35
+ * Typed or piped text, inserted at the cursor. Whole lines are submitted, as `applyInput` does.
36
+ *
37
+ * Enter sends the whole line wherever the cursor is: correcting a typo mid-line does not mean
38
+ * splitting the question. A chunk containing newlines is inserted at the cursor and then cut into
39
+ * lines, and the text that followed the cursor stays after it on the unsent line.
40
+ */
41
+ export declare function insertChunk(d: Draft, chunk: string): {
42
+ draft: Draft;
43
+ submit: string[];
44
+ };
45
+ /**
46
+ * A paste becomes one line of draft, and is never sent.
47
+ *
48
+ * `insertChunk` submits every complete line — right for a driver script piping `question\n`,
49
+ * wrong for a human's multi-line paste. Bracketed paste (Ink's `usePaste`) routes a terminal
50
+ * paste here instead. Line breaks fold to a single space because the draft is one line; the
51
+ * operator edits and presses Enter. Nothing about a paste may be the Enter.
52
+ */
53
+ export declare function pasteToLine(text: string): string;
54
+ /** The grapheme cluster at a cursor boundary, or '' at the end of the line. */
55
+ export declare function graphemeAt(text: string, at: number): string;
56
+ /** The draft as a masked panel draws it: one `•` per grapheme, the cursor on the same one. */
57
+ export declare function maskDraft(d: Draft): Draft;
58
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,EAAE,KAA+B,CAAC;AAE1D,sFAAsF;AACtF,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAEzC;AAED,sDAAsD;AACtD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAgBD,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAO3D;AAED,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAO5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,KAAK,GAAG,IAAI,CAkC5E;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAkBvF;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKhD;AAED,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAK3D;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK,CAQzC"}
@@ -0,0 +1,4 @@
1
+ export declare const CTRL_C_WINDOW_MS = 1500;
2
+ /** What a ctrl-c press does, given when (if ever) the previous one armed the exit. */
3
+ export declare function ctrlC(armedAt: number | null, now: number, windowMs?: number): 'exit' | 'arm';
4
+ //# sourceMappingURL=exit-chord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit-chord.d.ts","sourceRoot":"","sources":["../src/exit-chord.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,sFAAsF;AACtF,wBAAgB,KAAK,CACnB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,MAAyB,GAClC,MAAM,GAAG,KAAK,CAEhB"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * ↑/↓ walk the operator's previous turns, like a shell.
3
+ *
4
+ * - a bounded ring (HISTORY_MAX), for this session only;
5
+ * - only conversation turns are kept, not slash commands, which would stand between the
6
+ * operator and the turn they want to redo;
7
+ * - a recalled turn lands in the line editable, and sending it sends a new turn;
8
+ * - the draft being typed is kept at the bottom, so walking up and back loses nothing;
9
+ * - in a multi-line draft, ↑ walks only from the first line and ↓ only from the last, so the
10
+ * arrows still move the cursor inside a long paste.
11
+ *
12
+ * Pure: the component holds a `HistoryState` and asks these functions what to do.
13
+ */
14
+ export declare const HISTORY_MAX = 100;
15
+ export interface HistoryState {
16
+ /** Oldest first. */
17
+ readonly entries: readonly string[];
18
+ /** Which entry is showing, or null when the line holds the operator's own draft. */
19
+ readonly at: number | null;
20
+ /** The draft being typed when ↑ was first pressed, restored on walking back down. */
21
+ readonly stash: string;
22
+ }
23
+ export declare const EMPTY_HISTORY: HistoryState;
24
+ /**
25
+ * Remember a sent line. Blank lines, slash commands and a straight repeat of the last one are not
26
+ * kept — but sending any of them still ends a walk, so the next ↑ starts from the newest turn.
27
+ */
28
+ export declare function remember(h: HistoryState, line: string): HistoryState;
29
+ /** Whether an arrow may walk history from here, rather than move the cursor in a long draft. */
30
+ export declare function mayWalk(draft: string, cursor: number, dir: 'up' | 'down'): boolean;
31
+ /**
32
+ * One step. Returns the new state and the text the line should now hold, or null when there is
33
+ * nowhere to go (↓ from the draft, ↑ past the oldest entry, or no history at all).
34
+ */
35
+ export declare function walk(h: HistoryState, dir: 'up' | 'down', draft: string): {
36
+ state: HistoryState;
37
+ text: string;
38
+ } | null;
39
+ /** The recalled line was edited: it is a draft now, no longer a position in the history. */
40
+ export declare const settle: (h: HistoryState) => HistoryState;
41
+ //# sourceMappingURL=history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../src/history.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,MAAM,WAAW,YAAY;IAC3B,oBAAoB;IACpB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,YAAmD,CAAC;AAEhF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAOpE;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAKlF;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAClB,CAAC,EAAE,YAAY,EACf,GAAG,EAAE,IAAI,GAAG,MAAM,EAClB,KAAK,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAiB9C;AAED,4FAA4F;AAC5F,eAAO,MAAM,MAAM,MAAO,YAAY,KAAG,YACU,CAAC"}
@@ -0,0 +1,17 @@
1
+ export { type AnswerViewProps, type AppOptions, type AskViewProps, createApp, defaultPanelRows, type NoteViewProps, type WaitingViewProps } from './app.js';
2
+ export { applyInput } from './apply-input.js';
3
+ export { applySuggestion, mergeCompletions } from './complete.js';
4
+ export { assertComposes, CompositionError, composeModules, RESERVED_GLOBAL_KEYS, type Registry } from './compose.js';
5
+ export { atEnd, type Draft, type EditKeys, EMPTY_DRAFT, editKey, insertChunk, maskDraft, pasteToLine, wordLeft, wordRight } from './editor.js';
6
+ export { CTRL_C_WINDOW_MS, ctrlC } from './exit-chord.js';
7
+ export { EMPTY_HISTORY, HISTORY_MAX, type HistoryState, mayWalk, remember, settle, walk } from './history.js';
8
+ export { normaliseKeySpec } from './key-spec.js';
9
+ export { type KeyState, keySpecOf, type Route, resolveKey } from './keys.js';
10
+ export { type ArgSpec, type Armed, type Chip, type CommandSpec, type Completer, type ConfirmBinding, defineModule, type GlobalBinding, type Key, type KeySpec, type ModuleCtx, type ModuleSpec, type PanelDef, type PresenceSpec, type RailItem, type Renderer, type Reply, type Size, type SubmitOptions, type Suggestion, type TuiEvents, type TuiModule, type TurnContext, type TurnHandler, type TurnPhase, type TurnUpdate } from './module.js';
11
+ export { type Overlay, panelOf, setPanel } from './overlay.js';
12
+ export { clampSelection, commandUsage, completeDraft, enterRuns, MENU_NAME_WIDTH, menuWindow, moveSelection, type PaletteRow, paletteMatches, paletteQuery, paletteRows, parseCommandLine } from './palette.js';
13
+ export { type InputRoute, routeInput } from './route-input.js';
14
+ export { sanitise } from './sanitise.js';
15
+ export { anchorPadding, CLEAR_PANE, DEFAULT_GROUND, groundSequence, type LiveMeasure, liveShrink, type PrepareTerminalOptions, prepareSequence, prepareTerminal, RESET_GROUND, reflowSequence, type TerminalOut, type TerminalProcess } from './terminal.js';
16
+ export { type AnswerEntry, type AppEntry, type AskEntry, addGap, answerEntry, arriveTurn, commitEntry, type Entry, emptyTranscript, type Flight, type GapEntry, heldAsks, markedFlights, type NoteEntry, sendTurn, type Transcript } from './transcript.js';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,SAAS,EACT,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,KAAK,QAAQ,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,EACL,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,WAAW,EACX,OAAO,EACP,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,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