@agentshouse/mdruntime-adapter 0.1.0-c14c569816699 → 0.1.0-c14f4ba3ce8c5
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/AGENTS.md +17 -22
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -291,27 +291,22 @@ nothing is saved. React-admin and Refine Apps use `@agentshouse/mdruntime-famili
|
|
|
291
291
|
|
|
292
292
|
## The Chat
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
`
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
294
|
+
In House the page's bridge places the Chat, one data layer for every App, which House
|
|
295
|
+
serves with the page and keeps current: install, import and bundle nothing for it, and add
|
|
296
|
+
no dependency. `const chat = await houseBridge.chat.mount(element, options)`, on the bridge
|
|
297
|
+
object House hands the page as `window.houseBridge`, which `houseBridge()` of
|
|
298
|
+
`@agentshouse/app-bridge` returns, draws it in `element` over the App's own client and
|
|
299
|
+
resolves to a handle: `chat.update(options)` replaces its options and `chat.unmount()`
|
|
300
|
+
removes it. `conversation` opens one, `null` for a
|
|
301
|
+
new chat, `agent` is the Agent a new chat goes to, `showChats` adds its conversation list,
|
|
302
|
+
`width` is `full` (the element), or `3/4`, `1/2` or `1/3` of the window docked at its right
|
|
303
|
+
edge, whole on a narrow window, `onOpen` hears each conversation it opens as `{
|
|
304
|
+
conversation, agent }`, and `onLink` takes a link without a scheme in place of the browser.
|
|
305
|
+
Theme its own styles with CSS custom properties on the element or an ancestor:
|
|
306
|
+
`--chat-background`, `--chat-surface`, `--chat-text`, `--chat-text-muted`,
|
|
303
307
|
`--chat-accent`, `--chat-line`, `--chat-attention`, `--chat-danger`, `--chat-font`,
|
|
304
308
|
`--chat-font-mono`, `--chat-font-size`, `--chat-radius` and `--chat-density` (a factor for
|
|
305
|
-
spacing); an unset one keeps House's light or dark look.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
`ChatInput` and `ChatQuestionCard` with your own design inside a `ChatProvider`, or
|
|
310
|
-
compose assistant-ui's primitives there; `useChat()` gives `send`, the conversations, the
|
|
311
|
-
Agents, questions to `answer`, `options` to `choose`, `commands`, the queue to `edit` or
|
|
312
|
-
`unqueue`, `stop`, `kill`, `renew`, which starts a new chat with the same Agent in place
|
|
313
|
-
of a conversation whose session could not resume, and outcomes; never replace its
|
|
314
|
-
messages, sending or store. It shows a conversation's latest 50 messages, and
|
|
315
|
-
assistant-ui's `loadEarlier()` the 50 before, which `ChatMessageList` calls as the reader
|
|
316
|
-
scrolls back. A secret question is never answered here; typed answers live in the
|
|
317
|
-
Presentation State members named `typed:…`: leave them. `Markdown` draws Markdown safely.
|
|
309
|
+
spacing); an unset one keeps House's light or dark look. It shows conversations only where
|
|
310
|
+
the release declares them; otherwise it lists no conversation and no Agent. A secret
|
|
311
|
+
question is never answered here; typed answers live in the Presentation State members named
|
|
312
|
+
`typed:…`: leave them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdruntime-adapter",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-c14f4ba3ce8c5",
|
|
4
4
|
"description": "Agents House Adapter for the MD Runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"LICENSE"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agentshouse/mdruntime": "0.1.0-
|
|
28
|
+
"@agentshouse/mdruntime": "0.1.0-c907ac1fbed44"
|
|
29
29
|
}
|
|
30
30
|
}
|