@aintela/chat 0.4.12 → 0.4.13
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 +9 -0
- package/dist/components.js +2542 -2528
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/AiChat/AiChatContext.d.ts +2 -0
- package/dist/src/components/AiChat/AiChatTypes.d.ts +7 -0
- package/dist/src/components/v2/PromptGhostHint.test.d.ts +1 -0
- package/dist/src/hooks/usePromptAssist.d.ts +5 -0
- package/dist/useContainerWidth-Phmvwrqr.js +300 -0
- package/dist/useContainerWidth-Phmvwrqr.js.map +1 -0
- package/package.json +1 -1
- package/dist/useContainerWidth-DEjS-DPn.js +0 -295
- package/dist/useContainerWidth-DEjS-DPn.js.map +0 -1
package/README.md
CHANGED
|
@@ -26,6 +26,15 @@ npm install
|
|
|
26
26
|
cd examples/demo && npm install && npm run dev # http://localhost:5174
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
**Previewing the phantom ghost without a server.** The flat scenario passes `promptGhostDebugKey="|"`
|
|
30
|
+
(an `AiChat` / `AiChatProvider` prop, development only): typing `|` in the composer is swallowed and paints the
|
|
31
|
+
`@ …` ghost at the caret — location on the first press, person on the next — with mid-sentence detected from the
|
|
32
|
+
caret, so the mid-sentence card can be looked at by putting the caret inside a sentence. Tab accepts, Esc dismisses,
|
|
33
|
+
and the next keystroke's analyze clears it as it would a real one. Leave the prop unset in production.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
```
|
|
37
|
+
|
|
29
38
|
The demo aliases the package to the root `src/` during development so HMR works
|
|
30
39
|
across the package boundary. To validate the built bundle the way a real
|
|
31
40
|
consumer would:
|