@tangle-network/agent-app 0.43.33 → 0.43.34
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/assistant/index.d.ts +8 -2
- package/dist/assistant/index.js +10 -4
- package/dist/assistant/index.js.map +1 -1
- package/dist/{chunk-FCQP75JT.js → chunk-4M6NUHKU.js} +28 -1
- package/dist/chunk-4M6NUHKU.js.map +1 -0
- package/dist/web-react/index.d.ts +7 -1
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FCQP75JT.js.map +0 -1
|
@@ -636,8 +636,14 @@ interface AssistantPanelProps {
|
|
|
636
636
|
* absent, the built-in transcript (web-react `ChatMessages`) renders the
|
|
637
637
|
* conversation. */
|
|
638
638
|
renderTranscript?: (view: AssistantTranscriptView) => ReactNode;
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
/** One-shot composer prefill from the host's launcher (e.g. a page's "Create
|
|
640
|
+
* with assistant" button passing `openAssistant(seed)`). The panel adopts it
|
|
641
|
+
* as the composer draft and calls `onComposerSeedApplied` once, so the host
|
|
642
|
+
* clears its seed state (consume-once). */
|
|
643
|
+
composerSeed?: string | null;
|
|
644
|
+
onComposerSeedApplied?: () => void;
|
|
645
|
+
}
|
|
646
|
+
declare function AssistantPanel({ chat, userId, onClose, navigate, balanceUsd, formatMoney, renderGraph, renderProviderIcon, renderMarkdown, toolRenderers, renderConfirmedResult, renderTranscript, composerSeed, onComposerSeedApplied, }: AssistantPanelProps): react.JSX.Element;
|
|
641
647
|
|
|
642
648
|
/**
|
|
643
649
|
* True while a turn is streaming but the model hasn't emitted its first answer
|
package/dist/assistant/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ChatMessages,
|
|
4
4
|
ModelPicker,
|
|
5
5
|
ProviderLogo
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-4M6NUHKU.js";
|
|
7
7
|
import "../chunk-65P3HJY3.js";
|
|
8
8
|
import "../chunk-5SV5PSU7.js";
|
|
9
9
|
import "../chunk-2QI7XV2T.js";
|
|
@@ -2347,7 +2347,9 @@ function AssistantPanel({
|
|
|
2347
2347
|
renderMarkdown,
|
|
2348
2348
|
toolRenderers,
|
|
2349
2349
|
renderConfirmedResult,
|
|
2350
|
-
renderTranscript
|
|
2350
|
+
renderTranscript,
|
|
2351
|
+
composerSeed = null,
|
|
2352
|
+
onComposerSeedApplied
|
|
2351
2353
|
}) {
|
|
2352
2354
|
const models = useAssistantModels();
|
|
2353
2355
|
const threads = useAssistantThreads(userId);
|
|
@@ -2671,6 +2673,8 @@ function AssistantPanel({
|
|
|
2671
2673
|
isStreaming: streaming,
|
|
2672
2674
|
disabled: chat.restoring || state.status === "awaiting_confirm",
|
|
2673
2675
|
placeholder: "Message the assistant\u2026",
|
|
2676
|
+
seed: composerSeed,
|
|
2677
|
+
onSeedApplied: onComposerSeedApplied,
|
|
2674
2678
|
controls: pickerModels.length > 0 ? /* @__PURE__ */ jsx5(
|
|
2675
2679
|
ModelPicker,
|
|
2676
2680
|
{
|
|
@@ -2822,7 +2826,7 @@ function AssistantDock({
|
|
|
2822
2826
|
renderConfirmedResult,
|
|
2823
2827
|
renderTranscript
|
|
2824
2828
|
}) {
|
|
2825
|
-
const { open, openAssistant, closeAssistant } = useAssistantLauncher();
|
|
2829
|
+
const { open, openAssistant, closeAssistant, seed, clearSeed } = useAssistantLauncher();
|
|
2826
2830
|
const chat = useAssistantChat(userId, {
|
|
2827
2831
|
onWorkflowMutation,
|
|
2828
2832
|
onConnectRequirement
|
|
@@ -2932,7 +2936,9 @@ function AssistantDock({
|
|
|
2932
2936
|
renderMarkdown,
|
|
2933
2937
|
toolRenderers,
|
|
2934
2938
|
renderConfirmedResult,
|
|
2935
|
-
renderTranscript
|
|
2939
|
+
renderTranscript,
|
|
2940
|
+
composerSeed: seed,
|
|
2941
|
+
onComposerSeedApplied: clearSeed
|
|
2936
2942
|
},
|
|
2937
2943
|
userId ?? "anon"
|
|
2938
2944
|
),
|