@hachej/boring-agent 0.1.63 → 0.1.65
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/{agentPluginEvents-Ddn5DQ5E.d.ts → agentPluginEvents-ChUzG2Lh.d.ts} +3 -134
- package/dist/chatSubmitPayload-DwOHyiqR.d.ts +22 -0
- package/dist/chunk-4LXA7OOV.js +290 -0
- package/dist/chunk-AJZHR626.js +85 -0
- package/dist/chunk-AQBXNPMD.js +17 -0
- package/dist/chunk-HHW2UNBK.js +1812 -0
- package/dist/chunk-NKP5AR4C.js +2755 -0
- package/dist/chunk-WSQ5QNIY.js +18 -0
- package/dist/chunk-XZKU7FBV.js +96 -0
- package/dist/{chunk-HDOSWEXG.js → chunk-ZD7MM2LQ.js} +0 -15
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.js +15 -0
- package/dist/createHarness-LA2OO2DL.js +17 -0
- package/dist/front/index.d.ts +32 -27
- package/dist/front/index.js +84 -30
- package/dist/front/styles.css +67 -70
- package/dist/harness-DN9KdrT7.d.ts +265 -0
- package/dist/piChatCommand-C5ZM-AMG.d.ts +40 -0
- package/dist/{piChatEvent-B6GDifo2.d.ts → piChatEvent-B6Lg9ft-.d.ts} +88 -98
- package/dist/server/index.d.ts +238 -6
- package/dist/server/index.js +3294 -6225
- package/dist/shared/index.d.ts +212 -208
- package/dist/shared/index.js +21 -9
- package/docs/ERROR_CODES.md +3 -0
- package/docs/plans/archive/harness-followup-capabilities.md +1 -1
- package/docs/plans/archive/pi-tools-migration.md +1 -1
- package/docs/plans/archive/vercel-persistent-sandbox-adapter.md +1 -1
- package/docs/runtime.md +22 -9
- package/package.json +39 -34
- package/dist/chatSubmitPayload-DHqQL2wD.d.ts +0 -48
- package/dist/chunk-G6YPXDHR.js +0 -376
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/shared/events.ts
|
|
2
|
+
var AGENT_NOT_IMPLEMENTED_UNTIL_T1 = "ERR_NOT_IMPLEMENTED_UNTIL_T1";
|
|
3
|
+
function sessionStreamPath(sessionId) {
|
|
4
|
+
return `sessions/${sessionId}`;
|
|
5
|
+
}
|
|
6
|
+
var AgentNotImplementedError = class extends Error {
|
|
7
|
+
code = AGENT_NOT_IMPLEMENTED_UNTIL_T1;
|
|
8
|
+
constructor(message = "This agent capability is not implemented until T1.") {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = "AgentNotImplementedError";
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
AGENT_NOT_IMPLEMENTED_UNTIL_T1,
|
|
16
|
+
sessionStreamPath,
|
|
17
|
+
AgentNotImplementedError
|
|
18
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// src/shared/error-codes.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var ErrorCode = z.enum([
|
|
4
|
+
// Auth / config
|
|
5
|
+
"UNAUTHORIZED",
|
|
6
|
+
"MISSING_API_KEY",
|
|
7
|
+
"INVALID_API_KEY",
|
|
8
|
+
"OIDC_REFRESH_FAILED",
|
|
9
|
+
"VERCEL_AUTH_FAILED",
|
|
10
|
+
"CONFIG_INVALID",
|
|
11
|
+
// Workspace / path
|
|
12
|
+
"PATH_ESCAPE",
|
|
13
|
+
"PATH_ABSOLUTE",
|
|
14
|
+
"PATH_NULL_BYTE",
|
|
15
|
+
"PATH_SYMLINK_ESCAPE",
|
|
16
|
+
"PATH_NOT_FOUND",
|
|
17
|
+
"PATH_NOT_WRITABLE",
|
|
18
|
+
"WORKSPACE_UNINITIALIZED",
|
|
19
|
+
"WORKSPACE_NOT_READY",
|
|
20
|
+
// Agent runtime / provisioning
|
|
21
|
+
"AGENT_RUNTIME_NOT_READY",
|
|
22
|
+
"RUNTIME_PROVISIONING_FAILED",
|
|
23
|
+
"RUNTIME_PROVISIONING_LOCKED",
|
|
24
|
+
// Sandbox / exec
|
|
25
|
+
"BWRAP_UNAVAILABLE",
|
|
26
|
+
"BWRAP_TIMEOUT",
|
|
27
|
+
"OUTPUT_TRUNCATED",
|
|
28
|
+
"SANDBOX_NOT_READY",
|
|
29
|
+
"SANDBOX_EXPIRED",
|
|
30
|
+
"VERCEL_API_ERROR",
|
|
31
|
+
"REMOTE_WORKER_TIMEOUT",
|
|
32
|
+
"REMOTE_WORKER_STREAM_CLOSED",
|
|
33
|
+
"CIRCUIT_OPEN",
|
|
34
|
+
"ABORTED",
|
|
35
|
+
// Billing / metering
|
|
36
|
+
"PAYMENT_REQUIRED",
|
|
37
|
+
"MODEL_BUDGET_EXCEEDED",
|
|
38
|
+
"METERING_UNSUPPORTED_COMMAND",
|
|
39
|
+
// Session / bridge
|
|
40
|
+
"SESSION_NOT_FOUND",
|
|
41
|
+
"SESSION_LOCKED",
|
|
42
|
+
"STREAM_BUFFER_EVICTED",
|
|
43
|
+
"CURSOR_OUT_OF_RANGE",
|
|
44
|
+
"BRIDGE_COMMAND_INVALID",
|
|
45
|
+
// Tool
|
|
46
|
+
"TOOL_NOT_FOUND",
|
|
47
|
+
"TOOL_INVALID_INPUT",
|
|
48
|
+
"TOOL_EXECUTION_ERROR",
|
|
49
|
+
// Plugin
|
|
50
|
+
"PLUGIN_LOAD_FAILED",
|
|
51
|
+
"PLUGIN_NAME_COLLISION",
|
|
52
|
+
"PLUGIN_RUNTIME_REVISION_MISMATCH",
|
|
53
|
+
"PLUGIN_RUNTIME_PRIVATE_FILE",
|
|
54
|
+
"PLUGIN_RUNTIME_UNSAFE_IMPORT",
|
|
55
|
+
"PLUGIN_RUNTIME_TRANSFORM_FAILED",
|
|
56
|
+
"RUNTIME_PLUGIN_NOT_FOUND",
|
|
57
|
+
"RUNTIME_PLUGIN_ROUTE_NOT_FOUND",
|
|
58
|
+
"RUNTIME_PLUGIN_HANDLER_FAILED",
|
|
59
|
+
"RUNTIME_PLUGIN_LOAD_FAILED",
|
|
60
|
+
"RUNTIME_PLUGIN_RESPONSE_UNSUPPORTED",
|
|
61
|
+
// Runtime provisioning
|
|
62
|
+
"PROVISIONING_LAYOUT_FAILED",
|
|
63
|
+
"PROVISIONING_SKILLS_FAILED",
|
|
64
|
+
"PROVISIONING_TEMPLATES_FAILED",
|
|
65
|
+
"PROVISIONING_NODE_PREFLIGHT_FAILED",
|
|
66
|
+
"PROVISIONING_NPM_INSTALL_FAILED",
|
|
67
|
+
"PROVISIONING_UV_BOOTSTRAP_FAILED",
|
|
68
|
+
"PROVISIONING_UV_INSTALL_FAILED",
|
|
69
|
+
"PROVISIONING_ARTIFACT_FAILED",
|
|
70
|
+
// Internal
|
|
71
|
+
"ERR_NOT_IMPLEMENTED_UNTIL_T1",
|
|
72
|
+
"INTERNAL_ERROR"
|
|
73
|
+
]);
|
|
74
|
+
var ERROR_CODES = ErrorCode.options;
|
|
75
|
+
var ApiErrorPayloadSchema = z.object({
|
|
76
|
+
code: ErrorCode,
|
|
77
|
+
message: z.string().min(1),
|
|
78
|
+
details: z.record(z.unknown()).optional()
|
|
79
|
+
});
|
|
80
|
+
var ApiErrorResponseSchema = z.object({
|
|
81
|
+
error: ApiErrorPayloadSchema
|
|
82
|
+
});
|
|
83
|
+
var ErrorLogFieldsSchema = z.object({
|
|
84
|
+
level: z.enum(["warn", "error"]),
|
|
85
|
+
code: ErrorCode,
|
|
86
|
+
prefix: z.string().min(1),
|
|
87
|
+
msg: z.string().min(1)
|
|
88
|
+
}).catchall(z.unknown());
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
ErrorCode,
|
|
92
|
+
ERROR_CODES,
|
|
93
|
+
ApiErrorPayloadSchema,
|
|
94
|
+
ApiErrorResponseSchema,
|
|
95
|
+
ErrorLogFieldsSchema
|
|
96
|
+
};
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
// src/shared/telemetry.ts
|
|
2
|
-
var noopTelemetry = {
|
|
3
|
-
capture() {
|
|
4
|
-
}
|
|
5
|
-
};
|
|
6
|
-
function safeCapture(telemetry, event) {
|
|
7
|
-
try {
|
|
8
|
-
void Promise.resolve(telemetry.capture(event)).catch(() => {
|
|
9
|
-
});
|
|
10
|
-
} catch {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
1
|
// src/shared/validateTool.ts
|
|
15
2
|
function validateTool(tool) {
|
|
16
3
|
if (typeof tool !== "object" || tool === null) return null;
|
|
@@ -23,7 +10,5 @@ function validateTool(tool) {
|
|
|
23
10
|
}
|
|
24
11
|
|
|
25
12
|
export {
|
|
26
|
-
noopTelemetry,
|
|
27
|
-
safeCapture,
|
|
28
13
|
validateTool
|
|
29
14
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { u as AgentConfig, b as Agent } from '../harness-DN9KdrT7.js';
|
|
2
|
+
export { a as AGENT_NOT_IMPLEMENTED_UNTIL_T1, c as AgentActor, d as AgentCoreHarness, e as AgentCoreHarnessFactory, f as AgentCorePromptInput, g as AgentCoreSessionAdapter, h as AgentCoreSessionSnapshot, i as AgentEvent, k as AgentMessageContent, l as AgentMessagePart, m as AgentNotImplementedError, n as AgentReadiness, o as AgentReadinessStatus, p as AgentResolveInputResponse, q as AgentRuntimeAdapter, r as AgentSendInput, s as AgentStartReceipt, t as AgentStreamOptions } from '../harness-DN9KdrT7.js';
|
|
3
|
+
import '../piChatEvent-B6Lg9ft-.js';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import '@mariozechner/pi-coding-agent';
|
|
6
|
+
|
|
7
|
+
declare function createAgent(config: AgentConfig): Agent;
|
|
8
|
+
|
|
9
|
+
export { Agent, AgentConfig, createAgent };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAgent
|
|
3
|
+
} from "../chunk-NKP5AR4C.js";
|
|
4
|
+
import {
|
|
5
|
+
AGENT_NOT_IMPLEMENTED_UNTIL_T1,
|
|
6
|
+
AgentNotImplementedError
|
|
7
|
+
} from "../chunk-WSQ5QNIY.js";
|
|
8
|
+
import "../chunk-4LXA7OOV.js";
|
|
9
|
+
import "../chunk-AJZHR626.js";
|
|
10
|
+
import "../chunk-XZKU7FBV.js";
|
|
11
|
+
export {
|
|
12
|
+
AGENT_NOT_IMPLEMENTED_UNTIL_T1,
|
|
13
|
+
AgentNotImplementedError,
|
|
14
|
+
createAgent
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPiCodingAgentHarness,
|
|
3
|
+
createResourceSettingsManager,
|
|
4
|
+
deriveSourcePlugin,
|
|
5
|
+
mergePiPackageSources,
|
|
6
|
+
withPiHarnessDefaults
|
|
7
|
+
} from "./chunk-HHW2UNBK.js";
|
|
8
|
+
import "./chunk-AQBXNPMD.js";
|
|
9
|
+
import "./chunk-AJZHR626.js";
|
|
10
|
+
import "./chunk-XZKU7FBV.js";
|
|
11
|
+
export {
|
|
12
|
+
createPiCodingAgentHarness,
|
|
13
|
+
createResourceSettingsManager,
|
|
14
|
+
deriveSourcePlugin,
|
|
15
|
+
mergePiPackageSources,
|
|
16
|
+
withPiHarnessDefaults
|
|
17
|
+
};
|
package/dist/front/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import { ComponentProps, HTMLAttributes, FormEvent, ReactNode, ComponentType } from 'react';
|
|
4
3
|
import { FileUIPart, ChatStatus, UIMessage } from 'ai';
|
|
5
|
-
import { T as ToolUiMetadata, B as BoringChatPart,
|
|
6
|
-
import { e as
|
|
4
|
+
import { T as ToolUiMetadata, B as BoringChatPart, e as BoringChatMessage, k as PiChatStatus, Q as QueuedUserMessage, C as ChatError, P as PiChatEvent, n as SessionSummary } from '../piChatEvent-B6Lg9ft-.js';
|
|
5
|
+
import { P as PromptPayload, c as PromptReceipt, F as FollowUpPayload, a as FollowUpReceipt, Q as QueueClearPayload, d as QueueClearReceipt, I as InterruptPayload, C as CommandReceipt, S as StopPayload, e as StopReceipt } from '../piChatCommand-C5ZM-AMG.js';
|
|
7
6
|
import { InputGroupAddon, InputGroupButton, InputGroupTextarea, Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from '@hachej/boring-ui-kit';
|
|
8
7
|
import { Streamdown } from 'streamdown';
|
|
9
8
|
import { StickToBottom } from 'use-stick-to-bottom';
|
|
10
9
|
import { ClassValue } from 'clsx';
|
|
11
10
|
import 'zod';
|
|
11
|
+
import '../chatSubmitPayload-DwOHyiqR.js';
|
|
12
12
|
|
|
13
13
|
interface UploadFileOptions {
|
|
14
14
|
apiBaseUrl?: string;
|
|
@@ -29,7 +29,7 @@ type PromptInputFilePart = FileUIPart & {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
type PromptInputFooterProps = ComponentProps<typeof InputGroupAddon>;
|
|
32
|
-
declare const PromptInputFooter: ({ align, className, ...props }: PromptInputFooterProps) =>
|
|
32
|
+
declare const PromptInputFooter: ({ align, className, ...props }: PromptInputFooterProps) => react.JSX.Element;
|
|
33
33
|
|
|
34
34
|
interface PromptInputMessage {
|
|
35
35
|
text: string;
|
|
@@ -54,14 +54,14 @@ type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, "onSubmit" | "onEr
|
|
|
54
54
|
path?: string;
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
|
-
declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, onUploadFile, children, ...props }: PromptInputProps) =>
|
|
57
|
+
declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, onUploadFile, children, ...props }: PromptInputProps) => react.JSX.Element;
|
|
58
58
|
type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
|
|
59
|
-
declare const PromptInputTextarea: ({ onChange, onKeyDown, className, placeholder, ...props }: PromptInputTextareaProps) =>
|
|
59
|
+
declare const PromptInputTextarea: ({ onChange, onKeyDown, className, placeholder, ...props }: PromptInputTextareaProps) => react.JSX.Element;
|
|
60
60
|
type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
|
|
61
61
|
status?: ChatStatus;
|
|
62
62
|
onStop?: () => void;
|
|
63
63
|
};
|
|
64
|
-
declare const PromptInputSubmit: ({ className, variant, size, status, onStop, onClick, children, ...props }: PromptInputSubmitProps) =>
|
|
64
|
+
declare const PromptInputSubmit: ({ className, variant, size, status, onStop, onClick, children, ...props }: PromptInputSubmitProps) => react.JSX.Element;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Extended-thinking budget. Sent through the agent runtime to providers that
|
|
@@ -143,7 +143,7 @@ interface ChatEmptyStateProps {
|
|
|
143
143
|
footer?: ReactNode;
|
|
144
144
|
className?: string;
|
|
145
145
|
}
|
|
146
|
-
declare function ChatEmptyState({ eyebrow, title, description, suggestions, onSelect, footer, className, }: ChatEmptyStateProps):
|
|
146
|
+
declare function ChatEmptyState({ eyebrow, title, description, suggestions, onSelect, footer, className, }: ChatEmptyStateProps): react.JSX.Element;
|
|
147
147
|
|
|
148
148
|
interface ParsedCommand {
|
|
149
149
|
name: string;
|
|
@@ -520,7 +520,7 @@ interface SessionListProps {
|
|
|
520
520
|
onClose?: () => void;
|
|
521
521
|
className?: string;
|
|
522
522
|
}
|
|
523
|
-
declare function SessionList({ sessions, activeId, loading, onSwitch, onCreate, onDelete, onLoadMore, hasMore, loadingMore, onClose, className, }: SessionListProps):
|
|
523
|
+
declare function SessionList({ sessions, activeId, loading, onSwitch, onCreate, onDelete, onLoadMore, hasMore, loadingMore, onClose, className, }: SessionListProps): react.JSX.Element;
|
|
524
524
|
declare const SessionBrowser: typeof SessionList;
|
|
525
525
|
|
|
526
526
|
interface PiSessionSearchItem {
|
|
@@ -650,7 +650,9 @@ interface PiChatPanelProps<TComposerBlocker extends ComposerBlocker = ComposerBl
|
|
|
650
650
|
clientNonce: string;
|
|
651
651
|
}) => void;
|
|
652
652
|
onData?: (part: unknown) => void;
|
|
653
|
-
onOpenArtifact?: (path: string
|
|
653
|
+
onOpenArtifact?: (path: string, options?: {
|
|
654
|
+
filesystem?: string;
|
|
655
|
+
}) => void;
|
|
654
656
|
composerBlockers?: TComposerBlocker[];
|
|
655
657
|
onComposerStop?: () => void;
|
|
656
658
|
onComposerBlockerAction?: (blocker: TComposerBlocker, action: string) => void;
|
|
@@ -663,7 +665,7 @@ interface PiChatPanelProps<TComposerBlocker extends ComposerBlocker = ComposerBl
|
|
|
663
665
|
* knowing what the code means or what the action does. */
|
|
664
666
|
renderNoticeAction?: (notice: PiChatRuntimeNotice) => ReactNode;
|
|
665
667
|
}
|
|
666
|
-
declare function PiChatPanel<TComposerBlocker extends ComposerBlocker = ComposerBlocker>({ sessionId, extraCommands, apiBaseUrl, workspaceId, storageScope, requestHeaders, storage, fetch, className, chrome, debug, showSessions, hotReloadEnabled, suggestions, emptyState, emptyPlacement, composerPlaceholder, initialDraft, autoSubmitInitialDraft, onDraftRestored, onAutoSubmitInitialDraftAccepted, onAutoSubmitInitialDraftSettled, model, defaultModel, availableModels, hideDefaultModelOption, hideComposerSettings, suppressPreSubmitCancelledWarning, thinkingLevel, thinkingControl, serverResourcesEnabled, mentionedFiles, commands, excludeBuiltinCommands, toolRenderers, createRemoteSession, remoteSessionOptions, hydrateMessages, allowPromptDuringInitialHydration, workspaceWarmupStatus, onSessionReset, onBeforeSubmit, onReloadAgentPlugins, onCommandResult, onComposerWarning, onMentionedFilesConsumed, onPromptSubmitStarted, onData, onOpenArtifact, composerBlockers, onComposerStop, onComposerBlockerAction, onTurnComplete, renderNoticeAction, }: PiChatPanelProps<TComposerBlocker>):
|
|
668
|
+
declare function PiChatPanel<TComposerBlocker extends ComposerBlocker = ComposerBlocker>({ sessionId, extraCommands, apiBaseUrl, workspaceId, storageScope, requestHeaders, storage, fetch, className, chrome, debug, showSessions, hotReloadEnabled, suggestions, emptyState, emptyPlacement, composerPlaceholder, initialDraft, autoSubmitInitialDraft, onDraftRestored, onAutoSubmitInitialDraftAccepted, onAutoSubmitInitialDraftSettled, model, defaultModel, availableModels, hideDefaultModelOption, hideComposerSettings, suppressPreSubmitCancelledWarning, thinkingLevel, thinkingControl, serverResourcesEnabled, mentionedFiles, commands, excludeBuiltinCommands, toolRenderers, createRemoteSession, remoteSessionOptions, hydrateMessages, allowPromptDuringInitialHydration, workspaceWarmupStatus, onSessionReset, onBeforeSubmit, onReloadAgentPlugins, onCommandResult, onComposerWarning, onMentionedFilesConsumed, onPromptSubmitStarted, onData, onOpenArtifact, composerBlockers, onComposerStop, onComposerBlockerAction, onTurnComplete, renderNoticeAction, }: PiChatPanelProps<TComposerBlocker>): react.JSX.Element;
|
|
667
669
|
|
|
668
670
|
interface DebugDrawerProps {
|
|
669
671
|
apiBaseUrl?: string;
|
|
@@ -675,14 +677,17 @@ interface DebugDrawerProps {
|
|
|
675
677
|
width: number;
|
|
676
678
|
onWidthChange: (w: number) => void;
|
|
677
679
|
}
|
|
678
|
-
declare function DebugDrawer({ apiBaseUrl, fetch, sessionId, messages, requestHeaders, storageScope, width, onWidthChange }: DebugDrawerProps):
|
|
680
|
+
declare function DebugDrawer({ apiBaseUrl, fetch, sessionId, messages, requestHeaders, storageScope, width, onWidthChange }: DebugDrawerProps): react.JSX.Element;
|
|
679
681
|
|
|
680
|
-
|
|
682
|
+
interface OpenArtifactOptions {
|
|
683
|
+
filesystem?: string;
|
|
684
|
+
}
|
|
685
|
+
type OpenArtifactHandler = (path: string, options?: OpenArtifactOptions) => void;
|
|
681
686
|
interface ArtifactOpenProviderProps {
|
|
682
687
|
onOpenArtifact?: OpenArtifactHandler;
|
|
683
688
|
children: ReactNode;
|
|
684
689
|
}
|
|
685
|
-
declare function ArtifactOpenProvider({ onOpenArtifact, children }: ArtifactOpenProviderProps):
|
|
690
|
+
declare function ArtifactOpenProvider({ onOpenArtifact, children }: ArtifactOpenProviderProps): react.JSX.Element;
|
|
686
691
|
declare function useOpenArtifact(): OpenArtifactHandler | null;
|
|
687
692
|
|
|
688
693
|
interface AgentCommandContribution {
|
|
@@ -712,32 +717,32 @@ interface ToolCallGroupProps {
|
|
|
712
717
|
tools: GroupedToolEntry[];
|
|
713
718
|
mergedToolRenderers: ToolRendererOverrides;
|
|
714
719
|
}
|
|
715
|
-
declare const ToolCallGroup: react.MemoExoticComponent<({ tools, mergedToolRenderers }: ToolCallGroupProps) =>
|
|
720
|
+
declare const ToolCallGroup: react.MemoExoticComponent<({ tools, mergedToolRenderers }: ToolCallGroupProps) => react.JSX.Element | null>;
|
|
716
721
|
|
|
717
722
|
type MessageProps = HTMLAttributes<HTMLDivElement> & {
|
|
718
723
|
from: UIMessage["role"];
|
|
719
724
|
};
|
|
720
|
-
declare const Message: ({ className, from, ...props }: MessageProps) =>
|
|
725
|
+
declare const Message: ({ className, from, ...props }: MessageProps) => react.JSX.Element;
|
|
721
726
|
type MessageContentProps = HTMLAttributes<HTMLDivElement>;
|
|
722
|
-
declare const MessageContent: ({ children, className, ...props }: MessageContentProps) =>
|
|
727
|
+
declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => react.JSX.Element;
|
|
723
728
|
type MessageActionsProps = ComponentProps<"div">;
|
|
724
|
-
declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) =>
|
|
729
|
+
declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => react.JSX.Element;
|
|
725
730
|
type MessageActionProps = ComponentProps<typeof Button> & {
|
|
726
731
|
tooltip?: string;
|
|
727
732
|
label?: string;
|
|
728
733
|
};
|
|
729
|
-
declare const MessageAction: ({ tooltip, children, label, variant, size, ...props }: MessageActionProps) =>
|
|
734
|
+
declare const MessageAction: ({ tooltip, children, label, variant, size, ...props }: MessageActionProps) => react.JSX.Element;
|
|
730
735
|
type MessageResponseProps = ComponentProps<typeof Streamdown>;
|
|
731
|
-
declare const MessageResponse: react.MemoExoticComponent<({ className, shikiTheme, components, ...props }: MessageResponseProps) =>
|
|
736
|
+
declare const MessageResponse: react.MemoExoticComponent<({ className, shikiTheme, components, ...props }: MessageResponseProps) => react.JSX.Element>;
|
|
732
737
|
|
|
733
738
|
type ConversationProps = ComponentProps<typeof StickToBottom> & {
|
|
734
739
|
onScrollToBottomReady?: (scrollToBottom: () => void) => void;
|
|
735
740
|
};
|
|
736
|
-
declare const Conversation: ({ className, children, onScrollToBottomReady, ...props }: ConversationProps) =>
|
|
741
|
+
declare const Conversation: ({ className, children, onScrollToBottomReady, ...props }: ConversationProps) => react.JSX.Element;
|
|
737
742
|
type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
|
|
738
|
-
declare const ConversationContent: ({ className, ...props }: ConversationContentProps) =>
|
|
743
|
+
declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => react.JSX.Element;
|
|
739
744
|
type ConversationScrollButtonProps = ComponentProps<typeof Button>;
|
|
740
|
-
declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false |
|
|
745
|
+
declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false | react.JSX.Element;
|
|
741
746
|
|
|
742
747
|
type ReasoningProps = ComponentProps<typeof Collapsible> & {
|
|
743
748
|
isStreaming?: boolean;
|
|
@@ -747,22 +752,22 @@ type ReasoningProps = ComponentProps<typeof Collapsible> & {
|
|
|
747
752
|
duration?: number;
|
|
748
753
|
autoClose?: boolean;
|
|
749
754
|
};
|
|
750
|
-
declare const Reasoning: react.MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, autoClose, children, ...props }: ReasoningProps) =>
|
|
755
|
+
declare const Reasoning: react.MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, autoClose, children, ...props }: ReasoningProps) => react.JSX.Element>;
|
|
751
756
|
type ReasoningTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
752
757
|
getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode;
|
|
753
758
|
};
|
|
754
|
-
declare const ReasoningTrigger: react.MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) =>
|
|
759
|
+
declare const ReasoningTrigger: react.MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) => react.JSX.Element>;
|
|
755
760
|
type ReasoningContentProps = ComponentProps<typeof CollapsibleContent> & {
|
|
756
761
|
children: string;
|
|
757
762
|
};
|
|
758
|
-
declare const ReasoningContent: react.MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) =>
|
|
763
|
+
declare const ReasoningContent: react.MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => react.JSX.Element>;
|
|
759
764
|
|
|
760
765
|
type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
761
766
|
code: string;
|
|
762
767
|
language: string;
|
|
763
768
|
showLineNumbers?: boolean;
|
|
764
769
|
};
|
|
765
|
-
declare const CodeBlock: ({ code, language, showLineNumbers, className, children, ...props }: CodeBlockProps) =>
|
|
770
|
+
declare const CodeBlock: ({ code, language, showLineNumbers, className, children, ...props }: CodeBlockProps) => react.JSX.Element;
|
|
766
771
|
|
|
767
772
|
declare function cn(...inputs: ClassValue[]): string;
|
|
768
773
|
|