@ruckc/truss-chat 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +4 -3
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @ruckc/truss-chat
2
+
3
+ Chat building blocks for [Truss UI](https://truss.ruck.io): thread, messages, reasoning, tool calls, composer, status line and a question form.
4
+
5
+ Docs: <https://truss.ruck.io/docs/packages>
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @ruckc/truss-chat @ruckc/truss-ui @ruckc/truss-markdown
11
+ ```
12
+
13
+ `svelte` (^5.20) and `@ruckc/truss-ui` are peer dependencies; message text is rendered with `@ruckc/truss-markdown`.
14
+
15
+ ## Usage
16
+
17
+ ```svelte
18
+ <script lang="ts">
19
+ import { ChatThread, ChatMessage, ChatComposer } from '@ruckc/truss-chat';
20
+ let value = $state('');
21
+ </script>
22
+
23
+ <ChatThread>
24
+ <ChatMessage role="user" text="Hello" />
25
+ <ChatMessage role="assistant" text="Hi! How can I help?" />
26
+ </ChatThread>
27
+ <ChatComposer bind:value onsend={(text) => console.log(text)} />
28
+ ```
29
+
30
+ ## License
31
+
32
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruckc/truss-chat",
3
- "version": "1.28.0",
3
+ "version": "1.29.0",
4
4
  "description": "Chat building blocks for Truss UI: thread, messages, tool calls, composer, status line and a question form",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,8 @@
8
8
  "package": "svelte-package -i src/lib -o dist"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "README.md"
12
13
  ],
13
14
  "sideEffects": [
14
15
  "**/*.css"
@@ -26,7 +27,7 @@
26
27
  "@ruckc/truss-ui": "^1.0.0"
27
28
  },
28
29
  "dependencies": {
29
- "@ruckc/truss-markdown": "^1.28.0"
30
+ "@ruckc/truss-markdown": "^1.29.0"
30
31
  },
31
32
  "author": "Curtis Ruck",
32
33
  "homepage": "https://truss.ruck.io",