@talk2view/sdk 0.18.1 → 0.19.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.
- package/README.md +63 -101
- package/dist/assistant-ui/index.d.ts.map +1 -1
- package/dist/assistant-ui/index.js +4 -2
- package/dist/assistant-ui/index.js.map +1 -1
- package/dist/chat/auth-gate.d.ts +3 -1
- package/dist/chat/auth-gate.d.ts.map +1 -1
- package/dist/chat/auth-gate.js +29 -5
- package/dist/chat/auth-gate.js.map +1 -1
- package/dist/chat/composer-extras.js +2 -2
- package/dist/chat/markdown.d.ts +14 -4
- package/dist/chat/markdown.d.ts.map +1 -1
- package/dist/chat/markdown.js +28 -1
- package/dist/chat/markdown.js.map +1 -1
- package/dist/chat/vendor/LICENSE +21 -0
- package/dist/chat/vendor/MANIFEST.json +84 -0
- package/dist/chat/vendor/attachment.aui.d.ts.map +1 -1
- package/dist/chat/vendor/attachment.aui.js +8 -0
- package/dist/chat/vendor/attachment.aui.js.map +1 -1
- package/dist/chat/vendor/file.d.ts.map +1 -1
- package/dist/chat/vendor/file.js +8 -0
- package/dist/chat/vendor/file.js.map +1 -1
- package/dist/chat/vendor/follow-up-suggestions.aui.d.ts.map +1 -1
- package/dist/chat/vendor/follow-up-suggestions.aui.js +8 -0
- package/dist/chat/vendor/follow-up-suggestions.aui.js.map +1 -1
- package/dist/chat/vendor/image.d.ts.map +1 -1
- package/dist/chat/vendor/image.js +8 -0
- package/dist/chat/vendor/image.js.map +1 -1
- package/dist/chat/vendor/markdown-text.d.ts.map +1 -1
- package/dist/chat/vendor/markdown-text.js +8 -0
- package/dist/chat/vendor/markdown-text.js.map +1 -1
- package/dist/chat/vendor/reasoning.aui.d.ts.map +1 -1
- package/dist/chat/vendor/reasoning.aui.js +8 -0
- package/dist/chat/vendor/reasoning.aui.js.map +1 -1
- package/dist/chat/vendor/reasoning.d.ts.map +1 -1
- package/dist/chat/vendor/reasoning.js +8 -0
- package/dist/chat/vendor/reasoning.js.map +1 -1
- package/dist/chat/vendor/thread-list.aui.d.ts.map +1 -1
- package/dist/chat/vendor/thread-list.aui.js +8 -0
- package/dist/chat/vendor/thread-list.aui.js.map +1 -1
- package/dist/chat/vendor/thread.aui.d.ts.map +1 -1
- package/dist/chat/vendor/thread.aui.js +8 -0
- package/dist/chat/vendor/thread.aui.js.map +1 -1
- package/dist/chat/vendor/tool-fallback.aui.d.ts.map +1 -1
- package/dist/chat/vendor/tool-fallback.aui.js +8 -0
- package/dist/chat/vendor/tool-fallback.aui.js.map +1 -1
- package/dist/chat/vendor/tool-group.aui.d.ts.map +1 -1
- package/dist/chat/vendor/tool-group.aui.js +8 -0
- package/dist/chat/vendor/tool-group.aui.js.map +1 -1
- package/dist/chat/vendor/tooltip-icon-button.d.ts.map +1 -1
- package/dist/chat/vendor/tooltip-icon-button.js +8 -0
- package/dist/chat/vendor/tooltip-icon-button.js.map +1 -1
- package/dist/chat/views/account.d.ts.map +1 -1
- package/dist/chat/views/account.js +6 -0
- package/dist/chat/views/account.js.map +1 -1
- package/dist/chat-css.js +1 -1
- package/dist/chat.css +1 -1
- package/dist/chat.isolated.css +7 -0
- package/dist/chat.raw.css +7 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +49 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/streaming.d.ts.map +1 -1
- package/dist/streaming.js +5 -1
- package/dist/streaming.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +13 -2
- package/dist/tools.js.map +1 -1
- package/dist/ui/components/MarkdownRenderer.d.ts +1 -1
- package/dist/ui/components/MarkdownRenderer.js +1 -1
- package/dist/ui/index.d.ts +10 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +10 -0
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/safeMarkdown.d.ts.map +1 -1
- package/dist/ui/safeMarkdown.js +4 -2
- package/dist/ui/safeMarkdown.js.map +1 -1
- package/docs/chat.md +532 -0
- package/package.json +20 -9
package/README.md
CHANGED
|
@@ -8,6 +8,11 @@ Add AI-powered natural language control to any application. Talk2View's SDK hand
|
|
|
8
8
|
npm install @talk2view/sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
You need a partner key. Create one at
|
|
12
|
+
**[dashboard.talk2view.com](https://dashboard.talk2view.com)** — a `pk_test_…`
|
|
13
|
+
for development and a `pk_live_…` for production. Keys are public identifiers,
|
|
14
|
+
safe to ship in a browser bundle; see [Partner Keys](#partner-keys).
|
|
15
|
+
|
|
11
16
|
## Chat UI
|
|
12
17
|
|
|
13
18
|
Three lines to a working chat. `@talk2view/sdk/chat` is the branded Talk2View
|
|
@@ -43,13 +48,23 @@ fonts, no CDN — and uses your page's font unless you pass `fontFamily`.
|
|
|
43
48
|
`/chat` pays none of it.
|
|
44
49
|
|
|
45
50
|
Everything else — the full prop table, theming tokens, the launcher in a hostile
|
|
46
|
-
page, CSP, Next.js — is in
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
page, CSP, Next.js — is in
|
|
52
|
+
**[`docs/chat.md`](https://github.com/Talk2View/talk2view-typescript/blob/main/docs/chat.md)**, which also
|
|
53
|
+
ships inside the package. A runnable example with no Tailwind in the host is in
|
|
54
|
+
[`examples/react-chat`](https://github.com/Talk2View/talk2view-typescript/tree/main/examples/react-chat).
|
|
49
55
|
|
|
50
56
|
## Quick Start
|
|
51
57
|
|
|
52
|
-
### React (recommended)
|
|
58
|
+
### React — the packaged chat (recommended)
|
|
59
|
+
|
|
60
|
+
The three lines at the top of this README are the whole integration. Everything
|
|
61
|
+
below shows the layers underneath, for apps that want their own UI.
|
|
62
|
+
|
|
63
|
+
### React — the previous panel (`/ui`, deprecated)
|
|
64
|
+
|
|
65
|
+
> **Deprecated.** `/ui` still works and is still supported, but new
|
|
66
|
+
> integrations should use [`@talk2view/sdk/chat`](#chat-ui). It is kept for the
|
|
67
|
+
> apps already on it.
|
|
53
68
|
|
|
54
69
|
```tsx
|
|
55
70
|
import { Talk2View, ChatPanel } from '@talk2view/sdk/ui';
|
|
@@ -84,10 +99,9 @@ function App() {
|
|
|
84
99
|
|
|
85
100
|
That's it. `<Talk2View>` registers your tools and holds the chat state; `<ChatPanel>` is the UI — sign-in, streaming replies, tool calls and approvals. Both come from `@talk2view/sdk/ui`, and `<ChatPanel>` must be inside `<Talk2View>`.
|
|
86
101
|
|
|
87
|
-
> `/ui` is the
|
|
88
|
-
>
|
|
89
|
-
> it
|
|
90
|
-
> [`@talk2view/sdk/chat`](#chat-ui) above.
|
|
102
|
+
> `/ui` is smaller than the packaged chat (53.4 KB gzip against 362.7, plus
|
|
103
|
+
> syntax highlighting loaded on demand) and has no assistant-ui in it, which is
|
|
104
|
+
> why it is still here.
|
|
91
105
|
|
|
92
106
|
A logged-out visitor gets an anonymous demo session automatically, so there is nothing to wire up before the first reply. Pass `allowAnonymous={false}` to `<ChatPanel>` to ask people to sign in first.
|
|
93
107
|
|
|
@@ -126,6 +140,25 @@ for await (const event of t2v.chat('What time is it?')) {
|
|
|
126
140
|
|
|
127
141
|
---
|
|
128
142
|
|
|
143
|
+
## Versioning
|
|
144
|
+
|
|
145
|
+
This package follows semantic versioning, with one qualification that matters
|
|
146
|
+
while it is below 1.0: a **minor** version may change behaviour, and a
|
|
147
|
+
**patch** never changes the public surface. Breaking changes to exports or to
|
|
148
|
+
prop shapes are called out in [CHANGELOG.md](CHANGELOG.md) under the release
|
|
149
|
+
that makes them.
|
|
150
|
+
|
|
151
|
+
What counts as the public surface: everything exported from `@talk2view/sdk`,
|
|
152
|
+
`/react`, `/chat` and `/assistant-ui`, and the CSS custom properties documented
|
|
153
|
+
in [docs/chat.md](https://github.com/Talk2View/talk2view-typescript/blob/main/docs/chat.md). Class names
|
|
154
|
+
inside the chat's DOM are not — they are assistant-ui's and ours to change.
|
|
155
|
+
`/ui` is deprecated and frozen: it will keep working, and will not gain
|
|
156
|
+
anything.
|
|
157
|
+
|
|
158
|
+
`T2VClient`, `T2VSession` and `TypedEventEmitter` are exported because the
|
|
159
|
+
typed surface needs them, not because they are meant to be constructed
|
|
160
|
+
directly. Use `Talk2View`.
|
|
161
|
+
|
|
129
162
|
## Concepts
|
|
130
163
|
|
|
131
164
|
### Partner Keys
|
|
@@ -142,7 +175,7 @@ The SDK attaches this header automatically.
|
|
|
142
175
|
Best practices:
|
|
143
176
|
- Inject keys via environment variables at build time (e.g. `VITE_T2V_PARTNER_KEY`)
|
|
144
177
|
- Use separate `pk_test_` and `pk_live_` keys for development and production
|
|
145
|
-
- To rotate a key, generate a new
|
|
178
|
+
- To rotate a key, generate a new one at [dashboard.talk2view.com](https://dashboard.talk2view.com), update your app, then deactivate the old key
|
|
146
179
|
|
|
147
180
|
### Two-Tier Authentication
|
|
148
181
|
|
|
@@ -175,7 +208,7 @@ Tools with `return_direct: true` skip the AI's post-processing step. The tool re
|
|
|
175
208
|
|
|
176
209
|
There are four React entry points, and they do different jobs:
|
|
177
210
|
|
|
178
|
-
- **`@talk2view/sdk/chat`** — the branded Talk2View chat, packaged: `<Talk2ViewChat>` and `<Talk2ViewChatLauncher>`, one stylesheet, nothing to configure. Start here. See [Chat UI](#chat-ui) above and [`docs/chat.md`](docs/chat.md).
|
|
211
|
+
- **`@talk2view/sdk/chat`** — the branded Talk2View chat, packaged: `<Talk2ViewChat>` and `<Talk2ViewChatLauncher>`, one stylesheet, nothing to configure. Start here. See [Chat UI](#chat-ui) above and [`docs/chat.md`](https://github.com/Talk2View/talk2view-typescript/blob/main/docs/chat.md).
|
|
179
212
|
- **`@talk2view/sdk/ui`** — the previous chat panel, still supported: `<Talk2View>`, `<ChatPanel>`, `<ChatWidget>` and the components they are built from. 39.9 KB gzip against the packaged chat's 361.8, and no assistant-ui.
|
|
180
213
|
- **`@talk2view/sdk/react`** — headless: `<T2VProvider>` and hooks, for building your own UI.
|
|
181
214
|
- **`@talk2view/sdk/assistant-ui`** — a runtime for [assistant-ui](https://www.assistant-ui.com): render the stock `<Thread />` on Talk2View. See [assistant-ui](#assistant-ui) below.
|
|
@@ -337,17 +370,18 @@ const {
|
|
|
337
370
|
|
|
338
371
|
assistant-ui already has a seam other backends plug into at the runtime level — `@assistant-ui/react-ai-sdk` for the Vercel AI SDK is the well-known example. `useTalk2ViewRuntime` is Talk2View's equivalent: it hands assistant-ui an `AssistantRuntime`, built on `useExternalStoreRuntime`, so the stock `<Thread />` (or the primitives) render Talk2View's messages, client tools, approvals and streaming — with no Talk2View-specific component in the tree.
|
|
339
372
|
|
|
340
|
-
This is a separate entry point from `/ui` and `/react
|
|
373
|
+
This is a separate entry point from `/ui` and `/react`. `@assistant-ui/react` is a dependency of this package — installing `@talk2view/sdk` installs it, and you do not add it yourself. It is only *loaded* when you import `@talk2view/sdk/assistant-ui` or `/chat`, so the root, `/react` and `/ui` bundles are unaffected.
|
|
374
|
+
|
|
375
|
+
**Do not `npm install @assistant-ui/react` separately.** A second copy that npm cannot collapse with ours makes the chat throw `Two copies of @assistant-ui/react are loaded`.
|
|
341
376
|
|
|
342
377
|
### Install
|
|
343
378
|
|
|
344
379
|
```bash
|
|
345
|
-
npm install @assistant-ui/react
|
|
346
380
|
npx shadcn@latest init --yes --defaults
|
|
347
381
|
npx shadcn@latest add @assistant-ui/thread --yes
|
|
348
382
|
```
|
|
349
383
|
|
|
350
|
-
The `shadcn` commands generate the Thread's source into your own `src/components/` — they're your files, not a Talk2View package, so you can restyle or extend them freely.
|
|
384
|
+
The `shadcn` commands generate the Thread's source into your own `src/components/` — they're your files, not a Talk2View package, so you can restyle or extend them freely.
|
|
351
385
|
|
|
352
386
|
One known wrinkle in the registry output at the time of writing: `tooltip-icon-button.tsx` passes `delayDuration={0}` to a `TooltipProvider` whose prop is `delay`. It is inert at runtime, but it fails `tsc`, so if your build type-checks (most Vite templates run `tsc -b && vite build`) change it to `delay={0}` — the example does.
|
|
353
387
|
|
|
@@ -507,7 +541,7 @@ t2v.skills.getAll(); // UserSkill[]
|
|
|
507
541
|
t2v.skills.clear(); // Remove all
|
|
508
542
|
```
|
|
509
543
|
|
|
510
|
-
Skills merge with partner-defined and built-in skills.
|
|
544
|
+
Skills merge with partner-defined and built-in skills, and the end-user's win. The packaged chat has a Skills view built in (`features.skills`), so most integrations never call this API directly.
|
|
511
545
|
|
|
512
546
|
#### `t2v.chat()`
|
|
513
547
|
|
|
@@ -973,95 +1007,23 @@ import type {
|
|
|
973
1007
|
} from '@talk2view/sdk/assistant-ui';
|
|
974
1008
|
```
|
|
975
1009
|
|
|
976
|
-
##
|
|
977
|
-
|
|
978
|
-
The SDK is published to npm via the **Publish SDK** GitHub Actions workflow (`Actions → Publish SDK → Run workflow`).
|
|
979
|
-
|
|
980
|
-
### Prerequisites
|
|
981
|
-
|
|
982
|
-
- An `NPM_TOKEN` repository secret with publish access to `@talk2view/sdk` (Settings → Secrets → Actions)
|
|
983
|
-
- The workflow uses npm provenance signing (`--provenance`), which requires the `id-token: write` permission (already configured)
|
|
984
|
-
|
|
985
|
-
### Production Release
|
|
986
|
-
|
|
987
|
-
Use this when shipping a stable version to partners.
|
|
988
|
-
|
|
989
|
-
1. Go to **Actions → Publish SDK → Run workflow**
|
|
990
|
-
2. Set **Version bump type** to `patch`, `minor`, or `major`
|
|
991
|
-
3. Click **Run workflow**
|
|
992
|
-
|
|
993
|
-
What happens:
|
|
994
|
-
- Builds and typechecks the SDK
|
|
995
|
-
- Bumps `package.json` version (e.g. `0.2.0` → `0.2.1` for patch)
|
|
996
|
-
- Publishes to npm as `latest` tag
|
|
997
|
-
- Commits the version bump and creates a git tag `sdk-v0.2.1`
|
|
998
|
-
- Pushes the commit and tag to `main`
|
|
999
|
-
|
|
1000
|
-
Partners running `npm install @talk2view/sdk` will get this version.
|
|
1001
|
-
|
|
1002
|
-
### Dev / Testing Release
|
|
1003
|
-
|
|
1004
|
-
Use this to publish a prerelease version for testing before a stable release.
|
|
1005
|
-
|
|
1006
|
-
1. Go to **Actions → Publish SDK → Run workflow**
|
|
1007
|
-
2. Set **Version bump type** to `prerelease`
|
|
1008
|
-
3. Set **Prerelease identifier** to `dev` (default), `beta`, or `rc`
|
|
1009
|
-
4. Click **Run workflow**
|
|
1010
|
-
|
|
1011
|
-
What happens:
|
|
1012
|
-
- Builds and typechecks the SDK
|
|
1013
|
-
- Bumps version with preid (e.g. `0.2.0` → `0.2.1-dev.0`, or `0.2.1-dev.0` → `0.2.1-dev.1`)
|
|
1014
|
-
- Publishes to npm with the preid as dist-tag (e.g. `--tag dev`)
|
|
1015
|
-
- Does **not** commit, tag, or push to git (prerelease versions are ephemeral)
|
|
1016
|
-
|
|
1017
|
-
To install a dev release:
|
|
1018
|
-
```bash
|
|
1019
|
-
npm install @talk2view/sdk@dev
|
|
1020
|
-
```
|
|
1021
|
-
|
|
1022
|
-
To install a specific prerelease version:
|
|
1023
|
-
```bash
|
|
1024
|
-
npm install @talk2view/sdk@0.2.1-dev.0
|
|
1025
|
-
```
|
|
1026
|
-
|
|
1027
|
-
### Version Lifecycle Example
|
|
1028
|
-
|
|
1029
|
-
```
|
|
1030
|
-
0.1.0 (current latest)
|
|
1031
|
-
↓ prerelease (preid=dev)
|
|
1032
|
-
0.1.1-dev.0 (tagged as "dev" on npm)
|
|
1033
|
-
↓ prerelease (preid=dev)
|
|
1034
|
-
0.1.1-dev.1
|
|
1035
|
-
↓ prerelease (preid=beta)
|
|
1036
|
-
0.1.1-beta.0 (tagged as "beta" on npm)
|
|
1037
|
-
↓ minor (production release)
|
|
1038
|
-
0.2.0 (tagged as "latest" on npm, git tagged sdk-v0.2.0)
|
|
1039
|
-
```
|
|
1040
|
-
|
|
1041
|
-
### Manual Publishing (escape hatch)
|
|
1042
|
-
|
|
1043
|
-
If CI is down or you need to publish from your machine:
|
|
1044
|
-
|
|
1045
|
-
```bash
|
|
1046
|
-
cd packages/sdk
|
|
1047
|
-
npm run build
|
|
1048
|
-
npm run typecheck
|
|
1049
|
-
npm version prerelease --preid=dev --no-git-tag-version
|
|
1050
|
-
npm publish --access public --tag dev
|
|
1051
|
-
```
|
|
1010
|
+
## Source, issues and contributing
|
|
1052
1011
|
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
git tag "sdk-v$(node -p "require('./package.json').version")"
|
|
1060
|
-
git push origin main --tags
|
|
1061
|
-
```
|
|
1012
|
+
The source is at
|
|
1013
|
+
[github.com/Talk2View/talk2view-typescript](https://github.com/Talk2View/talk2view-typescript).
|
|
1014
|
+
Bugs and feature requests go in
|
|
1015
|
+
[Issues](https://github.com/Talk2View/talk2view-typescript/issues); pull
|
|
1016
|
+
requests are welcome, and [CONTRIBUTING.md](CONTRIBUTING.md) says how the repo
|
|
1017
|
+
is laid out and what a reviewer looks for.
|
|
1062
1018
|
|
|
1063
|
-
|
|
1019
|
+
Security problems do **not** go in an issue — see
|
|
1020
|
+
[SECURITY.md](SECURITY.md).
|
|
1064
1021
|
|
|
1065
1022
|
## License
|
|
1066
1023
|
|
|
1067
|
-
MIT
|
|
1024
|
+
MIT. See [LICENSE](./LICENSE).
|
|
1025
|
+
|
|
1026
|
+
`src/chat/vendor/` contains files copied from
|
|
1027
|
+
[assistant-ui](https://github.com/assistant-ui/assistant-ui), also MIT; their
|
|
1028
|
+
licence and a per-file manifest travel with them, in the repository and inside
|
|
1029
|
+
the published package.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assistant-ui/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assistant-ui/index.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAEV,gBAAgB,EAIhB,8BAA8B,EAE/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,EAEV,UAAU,EACV,gBAAgB,E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25
|
-
* `@assistant-ui/react` is
|
|
26
|
-
*
|
|
25
|
+
* `@assistant-ui/react` is a dependency of this package, so installing the SDK
|
|
26
|
+
* installs it — never add it yourself, or the chat throws on two copies. It is
|
|
27
|
+
* only LOADED by this entry point and `/chat`, never by `@talk2view/sdk`,
|
|
28
|
+
* `/react` or `/ui`.
|
|
27
29
|
*
|
|
28
30
|
* @packageDocumentation
|
|
29
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assistant-ui/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assistant-ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAU9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AASpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAkC,MAAM,gBAAgB,CAAC;AAGjG,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAErF,OAAO,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AA4C1F,oEAAoE;AACpE,MAAM,2BAA2B,GAAG,uBAAuB,CAAC;AAE5D,0EAA0E;AAC1E,MAAM,UAAU,mBAAmB,CAAC,OAAmC;IACrE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,GAAG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AC;AACnD,CAAC"}
|
package/dist/chat/auth-gate.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Talk2View } from '../index.js';
|
|
2
2
|
import type { User } from '../types.js';
|
|
3
3
|
/** Why the Account view opened by itself, if it did. */
|
|
4
|
-
export type AccountReason = 'guest-limit' | 'demo-limit' | null;
|
|
4
|
+
export type AccountReason = 'guest-limit' | 'demo-limit' | 'misconfigured' | null;
|
|
5
5
|
export declare const REASON_COPY: Record<Exclude<AccountReason, null>, string>;
|
|
6
6
|
export type AccountState = {
|
|
7
7
|
status: 'none' | 'guest' | 'signed-in';
|
|
@@ -15,6 +15,8 @@ export interface GuestLimits {
|
|
|
15
15
|
demoLimitReached: boolean;
|
|
16
16
|
/** The engine will not start a guest session at all. */
|
|
17
17
|
anonymousUnavailable: boolean;
|
|
18
|
+
/** The engine rejected this app's partner key: nobody can chat here. */
|
|
19
|
+
misconfigured: boolean;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Track the two ways a guest is turned away, for as long as the chat is on the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-gate.d.ts","sourceRoot":"","sources":["../../src/chat/auth-gate.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,wDAAwD;AACxD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-gate.d.ts","sourceRoot":"","sources":["../../src/chat/auth-gate.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,wDAAwD;AACxD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,eAAe,GAAG,IAAI,CAAC;AAElF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAMpE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,CAAC;AAUzF,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,YAAY,CAkB1D;AAED,2DAA2D;AAC3D,MAAM,WAAW,WAAW;IAC1B,2CAA2C;IAC3C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,wDAAwD;IACxD,oBAAoB,EAAE,OAAO,CAAC;IAC9B,wEAAwE;IACxE,aAAa,EAAE,OAAO,CAAC;CACxB;AAQD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,WAAW,CAqC7D;AAED,MAAM,WAAW,QAAQ;IACvB,8EAA8E;IAC9E,KAAK,EAAE,OAAO,CAAC;IACf,2EAA2E;IAC3E,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,EACjB,cAAc,EAAE,OAAO,EACvB,MAAM,EAAE,WAAW,GAClB,QAAQ,CAqBV"}
|
package/dist/chat/auth-gate.js
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { useEffect, useState, useSyncExternalStore } from 'react';
|
|
12
12
|
export const REASON_COPY = {
|
|
13
|
+
// Not the end-user's problem and not something signing in can fix: the key
|
|
14
|
+
// this app was built with is wrong. Say so without blaming them.
|
|
15
|
+
misconfigured: 'This app isn’t set up correctly, so chat is unavailable. Please contact support.',
|
|
13
16
|
'guest-limit': 'Guest chat isn’t available right now. Sign in to keep going.',
|
|
14
17
|
'demo-limit': 'You’ve reached the guest limit. Sign in or create a free account to keep going.',
|
|
15
18
|
};
|
|
@@ -40,7 +43,11 @@ export function useAccount(client) {
|
|
|
40
43
|
});
|
|
41
44
|
return useSyncExternalStore(store.subscribe, store.get, () => NONE);
|
|
42
45
|
}
|
|
43
|
-
const NO_LIMITS = {
|
|
46
|
+
const NO_LIMITS = {
|
|
47
|
+
demoLimitReached: false,
|
|
48
|
+
anonymousUnavailable: false,
|
|
49
|
+
misconfigured: false,
|
|
50
|
+
};
|
|
44
51
|
/**
|
|
45
52
|
* Track the two ways a guest is turned away, for as long as the chat is on the
|
|
46
53
|
* page.
|
|
@@ -57,7 +64,14 @@ export function useGuestLimits(client) {
|
|
|
57
64
|
useEffect(() => {
|
|
58
65
|
const offs = [
|
|
59
66
|
client.on('demoLimitReached', () => setLimits((l) => (l.demoLimitReached ? l : { ...l, demoLimitReached: true }))),
|
|
60
|
-
client.on('anonymousUnavailable', () => setLimits((l) =>
|
|
67
|
+
client.on('anonymousUnavailable', (reason) => setLimits((l) => {
|
|
68
|
+
// A rejected partner key is not a guest limit. Signing in cannot fix
|
|
69
|
+
// it, so the gate must not offer signing in as the way out.
|
|
70
|
+
if (reason === 'partner_key_error') {
|
|
71
|
+
return l.misconfigured ? l : { ...l, misconfigured: true };
|
|
72
|
+
}
|
|
73
|
+
return l.anonymousUnavailable ? l : { ...l, anonymousUnavailable: true };
|
|
74
|
+
})),
|
|
61
75
|
];
|
|
62
76
|
return () => offs.forEach((off) => off());
|
|
63
77
|
}, [client]);
|
|
@@ -65,6 +79,8 @@ export function useGuestLimits(client) {
|
|
|
65
79
|
// the core has already dropped the orphaned guest session, so the resend lands
|
|
66
80
|
// in a fresh one owned by the now-signed-in end-user.
|
|
67
81
|
const signedIn = account.status === 'signed-in';
|
|
82
|
+
// `misconfigured` is deliberately not here: signing in does not lift it, and
|
|
83
|
+
// clearing it would retry a key the engine has already refused.
|
|
68
84
|
const limited = limits.demoLimitReached || limits.anonymousUnavailable;
|
|
69
85
|
useEffect(() => {
|
|
70
86
|
if (!signedIn || !limited)
|
|
@@ -80,13 +96,21 @@ export function useGuestLimits(client) {
|
|
|
80
96
|
*/
|
|
81
97
|
export function useAuthGate(client, allowAnonymous, limits) {
|
|
82
98
|
const account = useAccount(client);
|
|
83
|
-
const { demoLimitReached, anonymousUnavailable } = limits;
|
|
99
|
+
const { demoLimitReached, anonymousUnavailable, misconfigured } = limits;
|
|
84
100
|
// A guest counts as authenticated here, as they do in `/ui`: they have a
|
|
85
101
|
// session and may chat. `allowAnonymous` is what decides whether they get one.
|
|
86
102
|
const isAuthenticated = account.status !== 'none';
|
|
87
103
|
return {
|
|
88
|
-
gated:
|
|
89
|
-
|
|
104
|
+
gated: misconfigured ||
|
|
105
|
+
(!isAuthenticated && (!allowAnonymous || anonymousUnavailable)) ||
|
|
106
|
+
demoLimitReached,
|
|
107
|
+
reason: misconfigured
|
|
108
|
+
? 'misconfigured'
|
|
109
|
+
: demoLimitReached
|
|
110
|
+
? 'demo-limit'
|
|
111
|
+
: anonymousUnavailable
|
|
112
|
+
? 'guest-limit'
|
|
113
|
+
: null,
|
|
90
114
|
account,
|
|
91
115
|
};
|
|
92
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-gate.js","sourceRoot":"","sources":["../../src/chat/auth-gate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb;;;;;;;;GAQG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAOlE,MAAM,CAAC,MAAM,WAAW,GAAiD;IACvE,aAAa,EAAE,8DAA8D;IAC7E,YAAY,EAAE,iFAAiF;CAChG,CAAC;AAIF,MAAM,IAAI,GAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAE1D,SAAS,WAAW,CAAC,MAAiB;IACpC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,E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6E;IAC7E,gEAAgE;IAChE,MAAM,OAAO,GAAG,MAAM,CAAC,gBAAgB,IAAI,MAAM,CAAC,oBAAoB,CAAC;IACvE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,QAAQ,IAAI,CAAC,OAAO;YAAE,OAAO;QAClC,SAAS,CAAC,SAAS,CAAC,CAAC;QACrB,KAAK,MAAM,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAEhC,OAAO,MAAM,CAAC;AAChB,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,MAAiB,EACjB,cAAuB,EACvB,MAAmB;IAEnB,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;IAEzE,yEAAyE;IACzE,+EAA+E;IAC/E,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,KAAK,MAAM,CAAC;IAClD,OAAO;QACL,KAAK,EACH,aAAa;YACb,CAAC,CAAC,eAAe,IAAI,CAAC,CAAC,cAAc,IAAI,oBAAoB,CAAC,CAAC;YAC/D,gBAAgB;QAClB,MAAM,EAAE,aAAa;YACnB,CAAC,CAAC,eAAe;YACjB,CAAC,CAAC,gBAAgB;gBAChB,CAAC,CAAC,YAAY;gBACd,CAAC,CAAC,oBAAoB;oBACpB,CAAC,CAAC,aAAa;oBACf,CAAC,CAAC,IAAI;QACZ,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -5,8 +5,8 @@ import { TooltipIconButton } from './vendor/tooltip-icon-button.js';
|
|
|
5
5
|
import { cn } from './lib/cn.js';
|
|
6
6
|
import { useDictationPhase } from './lib/dictation-phase.js';
|
|
7
7
|
import { useChatContext } from './provider.js';
|
|
8
|
-
/* The Talk2View voice mark
|
|
9
|
-
|
|
8
|
+
/* The Talk2View voice mark, geometry shared with the T2Board keyboard's
|
|
9
|
+
waveform: four SHARP bars (the brand's
|
|
10
10
|
dash, never rounded caps) at 0.42 / 1.0 / 0.66 / 0.30 of the height, each 44%
|
|
11
11
|
of its slot wide, in a 1.1 : 1 box, growing from the middle out. The face
|
|
12
12
|
follows T2Board too: Smoke on Teal at rest, inverting to Teal on Smoke while
|
package/dist/chat/markdown.d.ts
CHANGED
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
* Always, with no prop to turn it off. A same-tab link out of an agent's answer
|
|
14
14
|
* is not something a partner should be able to opt into by accident.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* `rel="noopener noreferrer"` is about the opened page, which must not reach
|
|
17
|
+
* back through `window.opener` or be handed the partner's URL as a referrer.
|
|
18
|
+
*
|
|
19
|
+
* AND IT IS AN INJECTION GUARD, for images. react-markdown's
|
|
17
20
|
* `defaultUrlTransform` is in force (`@assistant-ui/react-markdown` sets no
|
|
18
21
|
* override) and no `rehype-raw` is configured, so `javascript:` hrefs and raw
|
|
19
|
-
* HTML are already neutralised
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
+
* HTML are already neutralised — but an `https:` image is not, and a reply is
|
|
23
|
+
* untrusted. Indirect prompt injection arrives through web search, an uploaded
|
|
24
|
+
* document or a tool result, and an image is the sharpest way out: the model
|
|
25
|
+
* chooses the host AND the query string, so
|
|
26
|
+
* `` sends whatever it packed there the
|
|
27
|
+
* moment the reply renders, with nobody clicking anything.
|
|
28
|
+
*
|
|
29
|
+
* So an image becomes a link, exactly as ADR 0009 requires and `/ui` has done
|
|
30
|
+
* since: "Image: alt (host)", which the end-user may choose to open. Nothing is
|
|
31
|
+
* fetched when the reply appears.
|
|
22
32
|
*
|
|
23
33
|
* Why the wrapper, and not the vendored file: `src/chat/vendor/*` is
|
|
24
34
|
* hash-pinned and refetched from an unversioned registry, so an edit there is a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/chat/markdown.tsx"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/chat/markdown.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,EAAkB,EAAE,EAAE,MAAM,OAAO,CAAC;AAiDhD,uFAAuF;AACvF,eAAO,MAAM,YAAY,EAAE,EAA2D,CAAC"}
|
package/dist/chat/markdown.js
CHANGED
|
@@ -12,7 +12,34 @@ const LINK_CLASS = 'aui-md-a text-primary hover:text-primary/80 underline underl
|
|
|
12
12
|
// The spread comes FIRST: `target` and `rel` are the point of this component
|
|
13
13
|
// and nothing coming out of the markdown may displace them.
|
|
14
14
|
const ExternalLink = ({ className, ...props }) => (_jsx("a", { ...props, className: cn(LINK_CLASS, className), target: "_blank", rel: "noopener noreferrer" }));
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The web hosts an end-user could meaningfully be shown. Anything else — data:,
|
|
17
|
+
* blob:, a relative path — keeps its label and loses its destination, because
|
|
18
|
+
* there is no host to name and nothing safe to offer.
|
|
19
|
+
*/
|
|
20
|
+
function webHost(src) {
|
|
21
|
+
if (!src)
|
|
22
|
+
return null;
|
|
23
|
+
try {
|
|
24
|
+
const url = new URL(src, 'https://invalid.invalid');
|
|
25
|
+
if (url.protocol !== 'http:' && url.protocol !== 'https:')
|
|
26
|
+
return null;
|
|
27
|
+
return url.host === 'invalid.invalid' ? null : url.host;
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/** An image the model wrote, shown rather than loaded. */
|
|
34
|
+
const ImageAsLink = ({ src, alt }) => {
|
|
35
|
+
const label = alt ? `Image: ${alt}` : 'Image';
|
|
36
|
+
const href = typeof src === 'string' ? src : undefined;
|
|
37
|
+
const host = webHost(href);
|
|
38
|
+
if (!host || !href)
|
|
39
|
+
return _jsx("span", { className: "aui-md-img text-muted-foreground", children: label });
|
|
40
|
+
return (_jsx("a", { href: href, className: LINK_CLASS, target: "_blank", rel: "noopener noreferrer", children: `${label} (${host})` }));
|
|
41
|
+
};
|
|
42
|
+
const COMPONENTS = { a: ExternalLink, img: ImageAsLink };
|
|
16
43
|
/** Drop-in for the vendored `MarkdownText`; takes no props, as upstream's use does. */
|
|
17
44
|
export const MarkdownText = () => _jsx(VendoredMarkdownText, { components: COMPONENTS });
|
|
18
45
|
//# sourceMappingURL=markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/chat/markdown.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/chat/markdown.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAyCb,OAAO,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,UAAU,GAAG,0EAA0E,CAAC;AAE9F,6EAA6E;AAC7E,4DAA4D;AAC5D,MAAM,YAAY,GAA4B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,eAAO,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,GAAG,CACjG,CAAC;AAEF;;;;GAIG;AACH,SAAS,OAAO,CAAC,GAAuB;IACtC,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,yBAAyB,CAAC,CAAC;QACpD,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,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of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fetchedAt": "2026-09-18T04:04:03.296Z",
|
|
3
|
+
"files": {
|
|
4
|
+
"attachment.aui.tsx": {
|
|
5
|
+
"upstreamSha256": "4d531907b919ddb694f64ddecfefc55a8a7760f86931ba20f0a1f966b63bd0b1",
|
|
6
|
+
"sha256": "1dd35d9b6279f731a54b469c276191163a9b8ce3d86c5435b76cca7305faa9cc",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
9
|
+
},
|
|
10
|
+
"file.tsx": {
|
|
11
|
+
"upstreamSha256": "b700a207f5fd8ee4c520177002d2e3f76eb148991ab529e13aa3dbb9741cbdf6",
|
|
12
|
+
"sha256": "ef7a17810004ef8902102108db8e661364cc4ee095f2148abfaf73ae26b972ed",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
15
|
+
},
|
|
16
|
+
"follow-up-suggestions.aui.tsx": {
|
|
17
|
+
"upstreamSha256": "f0db1e9cfc5f648adeb57c8ac61fbeca4ebbb4d55267a9c107709af01b73abb4",
|
|
18
|
+
"sha256": "a83af99c606a1e5f1dca0e6792a6c4f369a7c914ee9529e99ab02e106218542a",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
21
|
+
},
|
|
22
|
+
"image.tsx": {
|
|
23
|
+
"upstreamSha256": "e1ded5faf9cec46da2ede86a85689237f97995edd41cb4dc2db4b539fba467c8",
|
|
24
|
+
"sha256": "ec895d1b4813a37df2c55586b4312891402fc7d7580bbb6ddc17a7a0abe88fe3",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
27
|
+
},
|
|
28
|
+
"markdown-text.tsx": {
|
|
29
|
+
"upstreamSha256": "1ea24c4c0daeadb5937fc80a0df004e17772315036686a7ff79f23c3cb9ce779",
|
|
30
|
+
"sha256": "74525f3dc2fd948987c72dc722b51b9e90a71f7050905919f17e03629cc38fff",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
33
|
+
},
|
|
34
|
+
"reasoning.aui.tsx": {
|
|
35
|
+
"upstreamSha256": "3538e423a951b20e60ce919c5e85a05fbb25303dbb39c10350226a0f47e36e96",
|
|
36
|
+
"sha256": "ee4898804c11e0a8beed6c76b2c47feada58cafb588d731916da21c421f929f3",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
39
|
+
},
|
|
40
|
+
"reasoning.tsx": {
|
|
41
|
+
"upstreamSha256": "54c169c2f200f341b39c97e46083efa4ff6ae9836abe334001326302334383a5",
|
|
42
|
+
"sha256": "747ebdafad76a7ed36a0e78e328ad4126e9d202a50f12e6841a7361c6b7c1bde",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
45
|
+
},
|
|
46
|
+
"thread-list.aui.tsx": {
|
|
47
|
+
"upstreamSha256": "a9b65e10b5a89da349c4dcc2ff295baf08ad7b3aeb4bccfe3c6b1726d8619ba1",
|
|
48
|
+
"sha256": "0daba886ab6577d6864065b0d27ba599ef40746a1432aaa9311d078d643295e5",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
51
|
+
},
|
|
52
|
+
"thread.aui.tsx": {
|
|
53
|
+
"upstreamSha256": "ce619ce7e6e57468c9d3aea9792751e4dab5e0b30f151dd06eb62a75b19e435f",
|
|
54
|
+
"sha256": "da95ac0ce8ec5b5c33bb6ba7af325ff601bb359a083555bde0705cf6167a8637",
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
57
|
+
},
|
|
58
|
+
"tool-fallback.aui.tsx": {
|
|
59
|
+
"upstreamSha256": "a9f589f31b1fa91851647029bec3af7b914d109dea38543d71f4ae3348f25db9",
|
|
60
|
+
"sha256": "0f196dd6252b88ac9ec295c3acadf467cb9fe5687fec91ad14914196490f3c69",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
63
|
+
},
|
|
64
|
+
"tool-group.aui.tsx": {
|
|
65
|
+
"upstreamSha256": "7d0258af3ed95e049bed20648e30d50966959db597e4b59f363bd3a5ded71a30",
|
|
66
|
+
"sha256": "9b9be3fab59bbd21ed20bc3098230626ccd4e06184436b1862440ee773206842",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
69
|
+
},
|
|
70
|
+
"tooltip-icon-button.tsx": {
|
|
71
|
+
"upstreamSha256": "73d07e418bfd567f7c91d13986c31cd281336e75bc22f7dc10f6ae0b05391d40",
|
|
72
|
+
"sha256": "ddd34bd3857718e59959905c2324385bd9612bb5f76e618577a6db030a4df4a9",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"source": "https://github.com/assistant-ui/assistant-ui"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"upstream": {
|
|
78
|
+
"project": "assistant-ui",
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"licenseFile": "LICENSE",
|
|
81
|
+
"source": "https://github.com/assistant-ui/assistant-ui",
|
|
82
|
+
"registry": "https://r.assistant-ui.com"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.aui.d.ts","sourceRoot":"","sources":["../../../src/chat/vendor/attachment.aui.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attachment.aui.d.ts","sourceRoot":"","sources":["../../../src/chat/vendor/attachment.aui.tsx"],"names":[],"mappings":"AAWA,OAAO,EAGL,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AA2Nf,eAAO,MAAM,sBAAsB,EAAE,EAQpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAQjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAiBnC,CAAC"}
|