golem-ui 0.1.1 → 0.2.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.
Files changed (59) hide show
  1. package/README.md +3 -2
  2. package/dist/adapters/brain.d.ts +43 -0
  3. package/dist/adapters/brain.d.ts.map +1 -0
  4. package/dist/adapters/brain.docs.d.ts +3 -0
  5. package/dist/adapters/brain.docs.d.ts.map +1 -0
  6. package/dist/adapters/chat.d.ts +30 -1
  7. package/dist/adapters/chat.d.ts.map +1 -1
  8. package/dist/adapters/chat.docs.d.ts.map +1 -1
  9. package/dist/adapters/fake/brain.d.ts +7 -0
  10. package/dist/adapters/fake/brain.d.ts.map +1 -0
  11. package/dist/adapters/fake/chat.d.ts +3 -1
  12. package/dist/adapters/fake/chat.d.ts.map +1 -1
  13. package/dist/adapters/fake/identity.d.ts +4 -0
  14. package/dist/adapters/fake/identity.d.ts.map +1 -1
  15. package/dist/adapters/fake/index.d.ts +1 -0
  16. package/dist/adapters/fake/index.d.ts.map +1 -1
  17. package/dist/adapters/identity.d.ts +4 -0
  18. package/dist/adapters/identity.d.ts.map +1 -1
  19. package/dist/adapters/identity.docs.d.ts.map +1 -1
  20. package/dist/adapters/index.d.ts +3 -1
  21. package/dist/adapters/index.d.ts.map +1 -1
  22. package/dist/adapters/records.docs.d.ts.map +1 -1
  23. package/dist/components/Auth/Auth.d.ts.map +1 -1
  24. package/dist/components/Brain/Brain.config.d.ts +8 -0
  25. package/dist/components/Brain/Brain.config.d.ts.map +1 -0
  26. package/dist/components/Brain/Brain.d.ts +20 -0
  27. package/dist/components/Brain/Brain.d.ts.map +1 -0
  28. package/dist/components/Brain/Brain.docs.d.ts +3 -0
  29. package/dist/components/Brain/Brain.docs.d.ts.map +1 -0
  30. package/dist/components/Brain/index.d.ts +6 -0
  31. package/dist/components/Brain/index.d.ts.map +1 -0
  32. package/dist/components/Chat/Chat.d.ts.map +1 -1
  33. package/dist/components/Chat/Chat.docs.d.ts.map +1 -1
  34. package/dist/components/Editor/Editor.d.ts +19 -0
  35. package/dist/components/Editor/Editor.d.ts.map +1 -1
  36. package/dist/components/Editor/Editor.docs.d.ts.map +1 -1
  37. package/dist/components/Editor/index.d.ts +1 -1
  38. package/dist/components/Editor/index.d.ts.map +1 -1
  39. package/dist/components/RecordForm/RecordForm.config.d.ts +1 -0
  40. package/dist/components/RecordForm/RecordForm.config.d.ts.map +1 -1
  41. package/dist/components/RecordForm/RecordForm.d.ts +2 -0
  42. package/dist/components/RecordForm/RecordForm.d.ts.map +1 -1
  43. package/dist/components/RecordForm/RecordForm.docs.d.ts.map +1 -1
  44. package/dist/components/Shell/Shell.config.d.ts +17 -0
  45. package/dist/components/Shell/Shell.config.d.ts.map +1 -1
  46. package/dist/components/Shell/Shell.d.ts +43 -2
  47. package/dist/components/Shell/Shell.d.ts.map +1 -1
  48. package/dist/components/Shell/Shell.docs.d.ts.map +1 -1
  49. package/dist/components/Shell/index.d.ts +2 -2
  50. package/dist/components/Shell/index.d.ts.map +1 -1
  51. package/dist/docs.d.ts.map +1 -1
  52. package/dist/golem-ui.css +1 -1
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +3114 -1764
  56. package/dist/index.js.map +1 -1
  57. package/dist/lib/markdown.d.ts +4 -1
  58. package/dist/lib/markdown.d.ts.map +1 -1
  59. package/package.json +1 -1
package/README.md CHANGED
@@ -30,7 +30,7 @@ everything below it:
30
30
  mount; unknown fields are rejected.
31
31
  - Invalid config renders a **loud error card** naming the field and the rule, in dev and in prod.
32
32
  - `adapters` are how the component _talks to the world_: `Records`, `Files`, `Identity`, `Chat`,
33
- `Clock`, `Navigation`. A component never imports a data layer, a router or a fetch.
33
+ `Clock`, `Navigation`, `Brain`. A component never imports a data layer, a router or a fetch.
34
34
  - `golem-ui` ships an in-memory fake of every adapter (`fakeIdentity()`, `fakeRecords()`, …). Stories
35
35
  and tests run on the fakes; no backend, no network.
36
36
  - Config is **generated** by the agent, adapters are **wired** by the app. Two failure modes, kept
@@ -40,7 +40,7 @@ everything below it:
40
40
  ## Adapters
41
41
 
42
42
  The adapters are the interface between a Golem app and the world, and that interface is the
43
- architecture. There are six, each documented as a thing in itself — every method, what an
43
+ architecture. There are seven, each documented as a thing in itself — every method, what an
44
44
  implementation has to guarantee, what it rejects with, and the in-memory fake — at
45
45
  [`#/adapters`](https://tonylampada.github.io/golem-ui/app/#/adapters) and under `Adapters/` in
46
46
  Storybook.
@@ -53,6 +53,7 @@ Storybook.
53
53
  | `Chat` | The conversation: history, send, and a stream that arrives token by token |
54
54
  | `Clock` | Now and the zone to read it in, so nothing in the kit calls `new Date()` |
55
55
  | `Navigation` | The current route, `go(path)`, and a listener — no router imported anywhere |
56
+ | `Brain` | A folder of markdown the agent reads and cites; `path#L3-L5` is a location `Brain` can open |
56
57
 
57
58
  **One instance serves every component that takes it.** `Records` handed to a `RecordList` and to a
58
59
  `RecordForm` is what makes a ticket saved on one screen appear on the other; `subscribe` carries it,
@@ -0,0 +1,43 @@
1
+ import type { Unsubscribe } from './common';
2
+ /**
3
+ * A brain is an Open Knowledge Format bundle (v0.2): a directory tree of markdown concept documents
4
+ * with YAML front matter, an optional `index.md` in any directory, and an optional `log.md` at the
5
+ * root. Paths are relative to the bundle root, `/`-separated, no leading slash.
6
+ *
7
+ * A **source location** is `path#L<start>-L<end>`, 1-based and inclusive: what the agent cites,
8
+ * and what `Brain`'s `openLocation` opens.
9
+ */
10
+ export interface BrainEntry {
11
+ path: string;
12
+ kind: 'file' | 'dir';
13
+ }
14
+ export interface BrainHit {
15
+ path: string;
16
+ /** 1-based line the match is on. */
17
+ line: number;
18
+ excerpt: string;
19
+ }
20
+ export interface BrainAdapter {
21
+ /** That directory's `index.md`, synthesized from the front matter of its concepts when absent. */
22
+ index(dir?: string): Promise<string>;
23
+ /** The direct children of a directory, files and directories alike. Root when `dir` is omitted. */
24
+ list(dir?: string): Promise<BrainEntry[]>;
25
+ read(path: string): Promise<string>;
26
+ search(query: string): Promise<BrainHit[]>;
27
+ /** Fires on any change to any file in the bundle. */
28
+ subscribe(listener: () => void): Unsubscribe;
29
+ /**
30
+ * Called with the location the reader just opened on its own — a tree tap, a link, a search hit,
31
+ * back. Optional: an app puts it in the URL so a reload lands on the same document.
32
+ */
33
+ open?(location: string): void;
34
+ /** Replaces a file's text. Optional: a brain the app keeps read-only omits it. */
35
+ write?(path: string, text: string): Promise<void>;
36
+ }
37
+ /** `path#L3-L5` → `{ path, start: 3, end: 5 }`. A location with no range opens the file at the top. */
38
+ export declare function parseLocation(location: string): {
39
+ path: string;
40
+ start?: number;
41
+ end?: number;
42
+ };
43
+ //# sourceMappingURL=brain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brain.d.ts","sourceRoot":"","sources":["../../src/adapters/brain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,KAAK,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,kGAAkG;IAClG,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACpC,mGAAmG;IACnG,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;IACzC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACnC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC1C,qDAAqD;IACrD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,WAAW,CAAA;IAC5C;;;OAGG;IACH,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,kFAAkF;IAClF,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAClD;AAED,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAK9F"}
@@ -0,0 +1,3 @@
1
+ import type { AdapterDocs } from '../abi';
2
+ export declare const brainAdapterDocs: AdapterDocs;
3
+ //# sourceMappingURL=brain.docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brain.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/brain.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,gBAAgB,EAAE,WAmF9B,CAAA"}
@@ -6,22 +6,51 @@ export interface ChatAttachment {
6
6
  /** Bytes. Rendered on the chip as `12 KB`; omit it and the chip shows the name alone. */
7
7
  size?: number;
8
8
  }
9
+ /** One slash command the adapter honours, as the composer's picker lists it. */
10
+ export interface ChatCommand {
11
+ /** With its leading slash: `/reset`. */
12
+ name: string;
13
+ description: string;
14
+ /** The values the command accepts as its single argument, when it takes one. */
15
+ args?: Array<{
16
+ value: string;
17
+ description: string;
18
+ }>;
19
+ }
9
20
  export interface ChatMessage {
10
21
  id: string;
11
- role: 'user' | 'agent';
22
+ /** `'system'` is a slash command or its reply: rendered as a dim centred row, never a bubble. */
23
+ role: 'user' | 'agent' | 'system';
12
24
  text: string;
13
25
  at: string;
14
26
  attachments?: ChatAttachment[];
27
+ /** Omit once confirmed. Pending and failed messages remain in the adapter's complete conversation. */
28
+ delivery?: 'pending' | 'failed';
15
29
  /**
16
30
  * True while the agent is still writing this message. The adapter emits the same `id` again and
17
31
  * again with a longer `text`; the last emission of that id drops the flag, and that is `done`.
18
32
  * An empty `text` with the flag set is the agent thinking before its first token.
19
33
  */
20
34
  streaming?: boolean;
35
+ /**
36
+ * Source locations the agent drew on, `path#L<start>-L<end>` inside a brain. Chat draws each as a
37
+ * chip under the bubble; clicking one calls `openSource`.
38
+ */
39
+ sources?: string[];
21
40
  }
22
41
  export interface ChatAdapter {
23
42
  history(): Promise<ChatMessage[]>;
24
43
  send(text: string, attachments?: ChatAttachment[]): Promise<void>;
44
+ /** Retries a failed message when the adapter supports retries. */
45
+ retry?(messageId: string): Promise<void>;
46
+ /** Stops the reply being written. Chat shows a Stop pill on the thinking row only when this exists. */
47
+ interrupt?(): Promise<void>;
48
+ /** The slash commands the composer completes. With this, a `/` line at the start of the composer opens the picker. */
49
+ commands?(): Promise<ChatCommand[]>;
50
+ /** Runs one `/...` line and resolves its reply. Chat renders both as system rows. Unknown names throw. */
51
+ runCommand?(line: string): Promise<string>;
52
+ /** Opens a cited source location. The app wires it to `Brain`'s `openLocation`. */
53
+ openSource?(location: string): void;
25
54
  /** Called with the whole conversation on every change, including each token of a stream. */
26
55
  subscribe(listener: (messages: ChatMessage[]) => void): Unsubscribe;
27
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/adapters/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GA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;IAC9B,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IACjC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACjE,kEAAkE;IAClE,KAAK,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACxC,uGAAuG;IACvG,SAAS,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3B,sHAAsH;IACtH,QAAQ,CAAC,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IACnC,0GAA0G;IAC1G,UAAU,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC1C,mFAAmF;IACnF,UAAU,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,4FAA4F;IAC5F,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,IAAI,GAAG,WAAW,CAAA;CACpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"chat.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/chat.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,eAAe,EAAE,WA0E7B,CAAA"}
1
+ {"version":3,"file":"chat.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/chat.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,eAAe,EAAE,WAuH7B,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { BrainAdapter } from '../brain';
2
+ /**
3
+ * An in-memory bundle: `files` maps a path to its markdown. Real enough for the reader and the
4
+ * search; `write` replaces a file and fires `subscribe`.
5
+ */
6
+ export declare function fakeBrain(files: Record<string, string>): BrainAdapter;
7
+ //# sourceMappingURL=brain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brain.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/brain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAwB,MAAM,UAAU,CAAA;AAiBlE;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,YAAY,CA2DrE"}
@@ -1,9 +1,11 @@
1
- import type { ChatAdapter, ChatMessage } from '../chat';
1
+ import type { ChatAdapter, ChatCommand, ChatMessage } from '../chat';
2
2
  export interface FakeChatOptions {
3
3
  /** Answered in order, one per send, looping when they run out. Empty means the agent stays mute. */
4
4
  replies?: string[];
5
5
  /** Milliseconds between tokens. Stories want it slow enough to watch, tests want it near zero. */
6
6
  tokenDelayMs?: number;
7
+ /** Slash commands the composer completes. `/reset` clears the conversation; any other replies with the line it ran. */
8
+ commands?: ChatCommand[];
7
9
  }
8
10
  /**
9
11
  * The in-memory Chat adapter. `send` echoes the message, then streams the next canned reply word by
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAkB,WAAW,EAAE,MAAM,SAAS,CAAA;AAGvE,MAAM,WAAW,eAAe;IAC9B,oGAAoG;IACpG,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,kGAAkG;IAClG,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAQD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,WAAW,EAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,WAAW,CAsDhG"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAkB,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGpF,MAAM,WAAW,eAAe;IAC9B,oGAAoG;IACpG,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,kGAAkG;IAClG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uHAAuH;IACvH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;CACzB;AAQD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,WAAW,EAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,WAAW,CA6EhG"}
@@ -15,6 +15,10 @@ export interface FakeIdentityOptions {
15
15
  inviteBase?: string;
16
16
  /** Invites that already exist, token to role, so an example can open on a link nobody minted. */
17
17
  invites?: Record<string, string>;
18
+ /** What `resetPassword()` prefixes the token with. The token is the last thing in the URL. */
19
+ resetBase?: string;
20
+ /** Reset links that already exist, token to member id, so an example can open on one. */
21
+ resets?: Record<string, string>;
18
22
  }
19
23
  /**
20
24
  * The in-memory Identity adapter: a member table, a signed-in user, and invite tokens that really
@@ -1 +1 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,IAAI,EAAE,MAAM,aAAa,CAAA;AAGrE,eAAO,MAAM,QAAQ,EAAE,IAKtB,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,oGAAoG;IACpG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,IAAI,EAAE,CAAA;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,eAAe,CA+F/E"}
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,IAAI,EAAE,MAAM,aAAa,CAAA;AAGrE,eAAO,MAAM,QAAQ,EAAE,IAKtB,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,oGAAoG;IACpG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,IAAI,EAAE,CAAA;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yFAAyF;IACzF,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,eAAe,CAgH/E"}
@@ -8,4 +8,5 @@ export { fakeChat } from './chat';
8
8
  export type { FakeChatOptions } from './chat';
9
9
  export { fakeClock } from './clock';
10
10
  export { fakeNavigation } from './navigation';
11
+ export { fakeBrain } from './brain';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACrD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/fake/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACrD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA"}
@@ -37,5 +37,9 @@ export interface IdentityAdapter {
37
37
  removeMember(userId: string): Promise<void>;
38
38
  /** Replaces the member's roles with this one. */
39
39
  setRole(userId: string, role: string): Promise<void>;
40
+ /** Mints a one-use link that lets this member choose a new password. Left out, no reset is offered. */
41
+ resetPassword?(userId: string): Promise<string>;
42
+ /** The new password, from the token on a reset link. Left out, a reset link opens the sign-in card. */
43
+ setPassword?(token: string, password: string): Promise<void>;
40
44
  }
41
45
  //# sourceMappingURL=identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/adapters/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gGAAgG;IAChG,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,sCAAsC;AACtC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACnC,gGAAgG;IAChG,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAA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version":3,"file":"identity.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/identity.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,mBAAmB,EAAE,WA0HjC,CAAA"}
1
+ {"version":3,"file":"identity.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/identity.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,mBAAmB,EAAE,WAwIjC,CAAA"}
@@ -4,7 +4,9 @@ export type { RecordsAdapter, RecordQuery, RecordPage, FilterValue, FieldRefusal
4
4
  export { fileId } from './files';
5
5
  export type { FileHandle, FileRef, FilesAdapter, UploadOptions } from './files';
6
6
  export type { IdentityAdapter, SignUpInput, User } from './identity';
7
- export type { ChatAdapter, ChatAttachment, ChatMessage } from './chat';
7
+ export type { ChatAdapter, ChatAttachment, ChatCommand, ChatMessage } from './chat';
8
8
  export type { ClockAdapter } from './clock';
9
9
  export type { NavigationAdapter, Route } from './navigation';
10
+ export { parseLocation } from './brain';
11
+ export type { BrainAdapter, BrainEntry, BrainHit } from './brain';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC/E,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACpE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACtE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC/E,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACpE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACnF,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"records.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/records.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,kBAAkB,EAAE,WA2GhC,CAAA"}
1
+ {"version":3,"file":"records.docs.d.ts","sourceRoot":"","sources":["../../src/adapters/records.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,kBAAkB,EAAE,WA4GhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Auth.d.ts","sourceRoot":"","sources":["../../../src/components/Auth/Auth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AACd,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAQ,MAAM,gBAAgB,CAAA;AAG9E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,eAAe,CAAA;IACzB,UAAU,EAAE,iBAAiB,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAieD;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAA"}
1
+ {"version":3,"file":"Auth.d.ts","sourceRoot":"","sources":["../../../src/components/Auth/Auth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AACd,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAQ,MAAM,gBAAgB,CAAA;AAG9E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,eAAe,CAAA;IACzB,UAAU,EAAE,iBAAiB,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAwhBD;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export declare const brainConfigSchema: z.ZodObject<{
3
+ title: z.ZodDefault<z.ZodString>;
4
+ openLocation: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strict>;
6
+ export type BrainConfig = z.output<typeof brainConfigSchema>;
7
+ export type BrainConfigInput = z.input<typeof brainConfigSchema>;
8
+ //# sourceMappingURL=Brain.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Brain.config.d.ts","sourceRoot":"","sources":["../../../src/components/Brain/Brain.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,iBAAiB;;;kBAenB,CAAA;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type GolemProps } from '../../abi';
3
+ import { type BrainAdapter } from '../../adapters';
4
+ export interface BrainAdapters {
5
+ brain: BrainAdapter;
6
+ }
7
+ export interface BrainSlots {
8
+ /** Rendered at the right-hand end of the document header: an Edit button, a share button. */
9
+ toolbar?: ReactNode;
10
+ }
11
+ export declare const Brain: import("react").FunctionComponent<GolemProps<{
12
+ title?: string | undefined;
13
+ openLocation?: string | undefined;
14
+ }, BrainAdapters, BrainSlots>> & {
15
+ schema: import("zod").ZodObject<{
16
+ title: import("zod").ZodDefault<import("zod").ZodString>;
17
+ openLocation: import("zod").ZodOptional<import("zod").ZodString>;
18
+ }, import("zod/v4/core").$strict>;
19
+ };
20
+ //# sourceMappingURL=Brain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Brain.d.ts","sourceRoot":"","sources":["../../../src/components/Brain/Brain.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACpF,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAiB,KAAK,YAAY,EAAkC,MAAM,gBAAgB,CAAA;AAKjG,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB;AAycD,eAAO,MAAM,KAAK;;;;;;;;CAIhB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ComponentDocs } from '../../abi';
2
+ export declare const brainDocs: ComponentDocs;
3
+ //# sourceMappingURL=Brain.docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Brain.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Brain/Brain.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,aA+FvB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export { Brain } from './Brain';
2
+ export type { BrainAdapters, BrainSlots } from './Brain';
3
+ export { brainConfigSchema } from './Brain.config';
4
+ export type { BrainConfig, BrainConfigInput } from './Brain.config';
5
+ export { brainDocs } from './Brain.docs';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Brain/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACpF,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAA;AAI9E,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,KAAK,IAAI,KAAK,SAAS,CAAA;CACvE;AAyRD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAIf,CAAA"}
1
+ {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACpF,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAA4B,MAAM,gBAAgB,CAAA;AAI3F,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,KAAK,IAAI,KAAK,SAAS,CAAA;CACvE;AAskBD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAIf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Chat.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,QAAQ,EAAE,aAmFtB,CAAA"}
1
+ {"version":3,"file":"Chat.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Chat.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,QAAQ,EAAE,aA6HtB,CAAA"}
@@ -11,6 +11,25 @@ export interface EditorSlots {
11
11
  * thing that arrives from the agent is merged rather than dropped on top of it.
12
12
  */
13
13
  draft?: string;
14
+ /**
15
+ * A passage to show: 1-based source lines, `endLine` inclusive, clamped to the document. The source
16
+ * pane scrolls to it and marks it until the person clicks or edits; keyboard focus, caret and draft
17
+ * are left alone. Send a new `key` to show the same range again.
18
+ *
19
+ * With `version`, the request waits until the editor holds that version or a later one. With
20
+ * `text`, the passage is found by its lines in the draft on screen, and nothing is marked when
21
+ * those lines are not there exactly once.
22
+ */
23
+ focus?: EditorFocus;
24
+ }
25
+ export interface EditorFocus {
26
+ line: number;
27
+ endLine?: number;
28
+ key?: string;
29
+ /** The record version `line` counts in. The request waits until the editor has loaded it. */
30
+ version?: number;
31
+ /** The passage's exact lines, joined by `\n`. Found in the draft rather than trusted to `line`. */
32
+ text?: string;
14
33
  }
15
34
  export declare const Editor: import("react").FunctionComponent<GolemProps<{
16
35
  collection: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA8uBD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjB,CAAA"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mGAAmG;IACnG,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AA25BD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/Editor.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,aA6IxB,CAAA"}
1
+ {"version":3,"file":"Editor.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/Editor.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,aAiLxB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export { Editor } from './Editor';
2
- export type { EditorAdapters, EditorSlots } from './Editor';
2
+ export type { EditorAdapters, EditorFocus, EditorSlots } from './Editor';
3
3
  export { editorConfigSchema } from './Editor.config';
4
4
  export type { EditorConfig, EditorConfigInput } from './Editor.config';
5
5
  export { editorDocs } from './Editor.docs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
@@ -35,6 +35,7 @@ export declare const recordFormConfigSchema: z.ZodObject<{
35
35
  create: "create";
36
36
  edit: "edit";
37
37
  }>;
38
+ versionField: z.ZodDefault<z.ZodString>;
38
39
  layout: z.ZodDefault<z.ZodEnum<{
39
40
  single: "single";
40
41
  "two-column": "two-column";
@@ -1 +1 @@
1
- {"version":3,"file":"RecordForm.config.d.ts","sourceRoot":"","sources":["../../../src/components/RecordForm/RecordForm.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqF/B,CAAA;AAEJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACtE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
1
+ {"version":3,"file":"RecordForm.config.d.ts","sourceRoot":"","sources":["../../../src/components/RecordForm/RecordForm.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4F/B,CAAA;AAEJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACtE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
@@ -38,6 +38,7 @@ export declare const RecordForm: import("react").FunctionComponent<GolemProps<{
38
38
  format?: string | undefined;
39
39
  }[];
40
40
  mode: "create" | "edit";
41
+ versionField?: string | undefined;
41
42
  layout?: "single" | "two-column" | undefined;
42
43
  submitLabel?: string | undefined;
43
44
  cancel?: "none" | "back" | undefined;
@@ -80,6 +81,7 @@ export declare const RecordForm: import("react").FunctionComponent<GolemProps<{
80
81
  create: "create";
81
82
  edit: "edit";
82
83
  }>;
84
+ versionField: import("zod").ZodDefault<import("zod").ZodString>;
83
85
  layout: import("zod").ZodDefault<import("zod").ZodEnum<{
84
86
  single: "single";
85
87
  "two-column": "two-column";
@@ -1 +1 @@
1
- {"version":3,"file":"RecordForm.d.ts","sourceRoot":"","sources":["../../../src/components/RecordForm/RecordForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAiB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAa,MAAM,gBAAgB,CAAA;AAcpG,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,cAAc,CAAA;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uFAAuF;IACvF,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAogBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrB,CAAA"}
1
+ {"version":3,"file":"RecordForm.d.ts","sourceRoot":"","sources":["../../../src/components/RecordForm/RecordForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAA;AAcvB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,cAAc,CAAA;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uFAAuF;IACvF,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAspBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordForm.docs.d.ts","sourceRoot":"","sources":["../../../src/components/RecordForm/RecordForm.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,cAAc,EAAE,aA6J5B,CAAA"}
1
+ {"version":3,"file":"RecordForm.docs.d.ts","sourceRoot":"","sources":["../../../src/components/RecordForm/RecordForm.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,cAAc,EAAE,aA2K5B,CAAA"}
@@ -1,13 +1,30 @@
1
1
  import { z } from 'zod';
2
+ declare const menuItemSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ label: z.ZodString;
5
+ icon: z.ZodOptional<z.ZodString>;
6
+ href: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strict>;
2
8
  export declare const shellConfigSchema: z.ZodObject<{
3
9
  title: z.ZodString;
10
+ menu: z.ZodDefault<z.ZodArray<z.ZodObject<{
11
+ id: z.ZodString;
12
+ label: z.ZodString;
13
+ icon: z.ZodOptional<z.ZodString>;
14
+ href: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strict>>>;
16
+ activeId: z.ZodOptional<z.ZodString>;
4
17
  chatSide: z.ZodDefault<z.ZodEnum<{
5
18
  left: "left";
6
19
  right: "right";
7
20
  }>>;
21
+ chatOpen: z.ZodDefault<z.ZodBoolean>;
8
22
  breakpoint: z.ZodDefault<z.ZodNumber>;
23
+ chatWidth: z.ZodDefault<z.ZodNumber>;
9
24
  showTopBar: z.ZodDefault<z.ZodBoolean>;
10
25
  }, z.core.$strict>;
11
26
  export type ShellConfig = z.output<typeof shellConfigSchema>;
12
27
  export type ShellConfigInput = z.input<typeof shellConfigSchema>;
28
+ export type ShellMenuItem = z.output<typeof menuItemSchema>;
29
+ export {};
13
30
  //# sourceMappingURL=Shell.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shell.config.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/Shell.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;kBAqBnB,CAAA;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
1
+ {"version":3,"file":"Shell.config.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/Shell.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,cAAc;;;;;kBAYT,CAAA;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;kBAgDnB,CAAA;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -6,8 +6,8 @@ export interface ShellAdapters {
6
6
  navigation: NavigationAdapter;
7
7
  }
8
8
  export interface ShellSlots {
9
- /** The agent conversation. Left empty it renders a placeholder, so the frame is never blank. */
10
- chat?: ReactNode;
9
+ /** The agent conversation. Left empty it renders a placeholder, so the frame is never blank; `null` means no chat at all, and no chat toggle. */
10
+ chat?: ReactNode | null;
11
11
  /** The screen the agent built. */
12
12
  canvas?: ReactNode;
13
13
  /**
@@ -15,21 +15,62 @@ export interface ShellSlots {
15
15
  * the bar shows the signed-in name as plain text.
16
16
  */
17
17
  account?: ReactNode;
18
+ /** Extra rows in the settings dropdown, under the theme toggle. `Shell.Setting` is the row. */
19
+ settings?: ReactNode;
20
+ /** Called with the item's id when a menu item without `href` is tapped. */
21
+ onSelect?: (id: string) => void;
18
22
  }
23
+ declare const paths: Record<string, string>;
24
+ export type ShellIconName = keyof typeof paths;
25
+ /** The line icons the bar and the dropdown use; an app's own `Shell.Setting` rows can share them. */
26
+ declare function Icon({ name }: {
27
+ name: ShellIconName;
28
+ }): import("react").JSX.Element;
29
+ /** One row of the settings dropdown: an icon, a short label, and a dot when it is a toggle. */
30
+ declare function Setting({ icon, label, on, onClick, }: {
31
+ icon: ReactNode;
32
+ label: string;
33
+ /** Set on a toggle; left out on a plain action. */
34
+ on?: boolean;
35
+ onClick: () => void;
36
+ }): import("react").JSX.Element;
37
+ /** The frame, plus `Shell.Setting` (a dropdown row) and `Shell.Icon` (the bar's line icons) for the app's own rows. */
19
38
  export declare const Shell: import("react").FunctionComponent<GolemProps<{
20
39
  title: string;
40
+ menu?: {
41
+ id: string;
42
+ label: string;
43
+ icon?: string | undefined;
44
+ href?: string | undefined;
45
+ }[] | undefined;
46
+ activeId?: string | undefined;
21
47
  chatSide?: "left" | "right" | undefined;
48
+ chatOpen?: boolean | undefined;
22
49
  breakpoint?: number | undefined;
50
+ chatWidth?: number | undefined;
23
51
  showTopBar?: boolean | undefined;
24
52
  }, ShellAdapters, ShellSlots>> & {
25
53
  schema: import("zod").ZodObject<{
26
54
  title: import("zod").ZodString;
55
+ menu: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
56
+ id: import("zod").ZodString;
57
+ label: import("zod").ZodString;
58
+ icon: import("zod").ZodOptional<import("zod").ZodString>;
59
+ href: import("zod").ZodOptional<import("zod").ZodString>;
60
+ }, import("zod/v4/core").$strict>>>;
61
+ activeId: import("zod").ZodOptional<import("zod").ZodString>;
27
62
  chatSide: import("zod").ZodDefault<import("zod").ZodEnum<{
28
63
  left: "left";
29
64
  right: "right";
30
65
  }>>;
66
+ chatOpen: import("zod").ZodDefault<import("zod").ZodBoolean>;
31
67
  breakpoint: import("zod").ZodDefault<import("zod").ZodNumber>;
68
+ chatWidth: import("zod").ZodDefault<import("zod").ZodNumber>;
32
69
  showTopBar: import("zod").ZodDefault<import("zod").ZodBoolean>;
33
70
  }, import("zod/v4/core").$strict>;
71
+ } & {
72
+ Setting: typeof Setting;
73
+ Icon: typeof Icon;
34
74
  };
75
+ export {};
35
76
  //# sourceMappingURL=Shell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shell.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/Shell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAQ,MAAM,gBAAgB,CAAA;AAI9E,MAAM,WAAW,aAAa;I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gB9C;AAmCD,+FAA+F;AAC/F,iBAAS,OAAO,CAAC,EACf,IAAI,EACJ,KAAK,EACL,EAAE,EACF,OAAO,GACR,EAAE;IACD,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAqBA;AAuQD,uHAAuH;AACvH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Shell.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/Shell.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,aAgEvB,CAAA"}
1
+ {"version":3,"file":"Shell.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/Shell.docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,aAyGvB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  export { Shell } from './Shell';
2
- export type { ShellAdapters, ShellSlots } from './Shell';
2
+ export type { ShellAdapters, ShellIconName, ShellSlots } from './Shell';
3
3
  export { shellConfigSchema } from './Shell.config';
4
- export type { ShellConfig, ShellConfigInput } from './Shell.config';
4
+ export type { ShellConfig, ShellConfigInput, ShellMenuItem } from './Shell.config';
5
5
  export { shellDocs } from './Shell.docs';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClD,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAiBvD;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,aAAa,EAUxC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,EAOpC,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEpE;AAED,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAEhE"}
1
+ {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAmBvD;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,aAAa,EAWxC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,EAQpC,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEpE;AAED,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAEhE"}