@fungi.computer/parakeet 0.10.0 → 0.11.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/dist/parakeet.d.ts +3 -1
- package/dist/parakeet.js +6 -1
- package/docs/api/index.md +1 -0
- package/package.json +2 -2
package/dist/parakeet.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ export type ParakeetViewProps = Readonly<{
|
|
|
73
73
|
empty?: ReactNode | undefined;
|
|
74
74
|
/** What the host knows: model setup, billing and starter prompts. */
|
|
75
75
|
hostFacts?: ParakeetHostFacts | undefined;
|
|
76
|
+
/** Focus the composer when the conversation opens, so the person can just type. */
|
|
77
|
+
autoFocus?: boolean | undefined;
|
|
76
78
|
/**
|
|
77
79
|
* Optional host Whistle runtime holding the host's own commands. Parakeet
|
|
78
80
|
* adds its built-ins and the Session's advertised commands to it, and makes
|
|
@@ -81,6 +83,6 @@ export type ParakeetViewProps = Readonly<{
|
|
|
81
83
|
commands?: ParakeetCommandRuntime | undefined;
|
|
82
84
|
}>;
|
|
83
85
|
/** Render the retained conversation surface within one Parakeet provider. */
|
|
84
|
-
export declare function ParakeetView({ disambiguateAuthors, visitor, composerActionVariant, empty, hostFacts, commands, renderToolActions, claimsToolMedia, renderAssistantAttachment, formatAssistantText, onLink, onOpen, }: ParakeetViewProps): ReactElement;
|
|
86
|
+
export declare function ParakeetView({ disambiguateAuthors, visitor, composerActionVariant, empty, hostFacts, autoFocus, commands, renderToolActions, claimsToolMedia, renderAssistantAttachment, formatAssistantText, onLink, onOpen, }: ParakeetViewProps): ReactElement;
|
|
85
87
|
/** Standalone typed composer and exact-message timeline. */
|
|
86
88
|
export declare function Parakeet({ authorOf, disambiguateAuthors, visitor, markdownPolicy, composerActionVariant, empty, hostFacts, session, clients, renderToolActions, claimsToolMedia, renderAssistantAttachment, formatAssistantText, commands, onLink, onOpen, }: ParakeetProps): ReactElement;
|
package/dist/parakeet.js
CHANGED
|
@@ -22,8 +22,13 @@ import { useSlashCommands, } from "./commands/use-slash-commands.js";
|
|
|
22
22
|
import { TimelineItem } from "./components/TimelineItem.js";
|
|
23
23
|
import { MarkdownPolicyContext } from "./components/MarkdownRenderer.js";
|
|
24
24
|
/** Render the retained conversation surface within one Parakeet provider. */
|
|
25
|
-
export function ParakeetView({ disambiguateAuthors, visitor, composerActionVariant, empty, hostFacts, commands, renderToolActions, claimsToolMedia, renderAssistantAttachment, formatAssistantText, onLink, onOpen, }) {
|
|
25
|
+
export function ParakeetView({ disambiguateAuthors, visitor, composerActionVariant, empty, hostFacts, autoFocus, commands, renderToolActions, claimsToolMedia, renderAssistantAttachment, formatAssistantText, onLink, onOpen, }) {
|
|
26
26
|
const textareaRef = useRef(null);
|
|
27
|
+
// Opening a conversation puts the caret in the composer; a click elsewhere keeps it.
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (autoFocus === true)
|
|
30
|
+
textareaRef.current?.focus();
|
|
31
|
+
}, [autoFocus]);
|
|
27
32
|
const [ownCommands] = useState(() => createWhistle());
|
|
28
33
|
const slash = useSlashCommands({
|
|
29
34
|
enabled: visitor === undefined,
|
package/docs/api/index.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/parakeet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Standalone React composer for a typed Shiitake Session",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@fungi.computer/agar": "0.9.0",
|
|
64
64
|
"@fungi.computer/bird-dog": "0.3.6",
|
|
65
65
|
"@fungi.computer/cairn": "0.1.0",
|
|
66
|
-
"@fungi.computer/caps": "0.
|
|
66
|
+
"@fungi.computer/caps": "0.10.0",
|
|
67
67
|
"@fungi.computer/gills": "0.3.0",
|
|
68
68
|
"@fungi.computer/knapsack": "0.4.9",
|
|
69
69
|
"@fungi.computer/shiitake": "0.12.3",
|