@hachej/boring-agent 0.1.101 → 0.1.104
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/{DebugDrawer-2TO5SE2D.js → DebugDrawer-JNA43SVR.js} +2 -1
- package/dist/chunk-2BGLZZ7T.js +10 -0
- package/dist/{chunk-46HJK2ES.js → chunk-4XOW57KJ.js} +3 -8
- package/dist/{chunk-XCZBICZS.js → chunk-6DRHERVK.js} +8 -6
- package/dist/{chunk-XTMY3PWI.js → chunk-BTYOMR7W.js} +118 -16
- package/dist/{chunk-T37OVD6L.js → chunk-I7KFNGB4.js} +28 -2
- package/dist/{chunk-3OEDBRKY.js → chunk-JNEKOVMJ.js} +1 -1
- package/dist/{chunk-VXF5DWS6.js → chunk-K25PK5EC.js} +1 -0
- package/dist/chunk-N6THTH7P.js +110 -0
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +1 -1
- package/dist/{createHarness-7C2A5UVH.js → createHarness-POZ4AXCZ.js} +2 -2
- package/dist/{errors-Ci0dzmcP.d.ts → errors-DH7C01Pm.d.ts} +2 -2
- package/dist/{file-search-DmoDnMan.d.ts → file-search-qcD5zItr.d.ts} +5 -5
- package/dist/front/artifacts.d.ts +34 -0
- package/dist/front/artifacts.js +21 -0
- package/dist/front/index.d.ts +8 -14
- package/dist/front/index.js +775 -762
- package/dist/front/styles.css +4 -0
- package/dist/{harness-s-kEgJkK.d.ts → harness-Dcd08yKr.d.ts} +2 -2
- package/dist/{lease-D5-CBoPs.d.ts → lease-DffrPrQn.d.ts} +3 -3
- package/dist/{middleware-Cq_cYHjJ.d.ts → middleware-CaAEXpi5.d.ts} +11 -2
- package/dist/{piChatEvent-Bzof4IEy.d.ts → piChatEvent-iNSXiFQq.d.ts} +19 -14
- package/dist/{piChatSessionService-BU4L5hxM.d.ts → piChatSessionService-DQSQ_kWZ.d.ts} +1 -1
- package/dist/{sandbox-KQiEdz4W.d.ts → sandbox-BMhut3kh.d.ts} +6 -1
- package/dist/server/agent-host/testing/gatewayConformance.d.ts +6 -6
- package/dist/server/agent-host/testing/gatewayConformance.js +3 -3
- package/dist/server/index.d.ts +21 -16
- package/dist/server/index.js +7 -5
- package/dist/server/worker/index.d.ts +3 -2
- package/dist/server/worker/index.js +25 -6
- package/dist/shared/index.d.ts +113 -39
- package/dist/shared/index.js +3 -3
- package/dist/{types-OwI_m-2p.d.ts → types-B1xDlBSo.d.ts} +13 -5
- package/docs/ERROR_CODES.md +1 -0
- package/package.json +16 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as PiChatEvent, C as ChatModelSelection, T as ThinkingLevel, l as ChatAttachmentPayload, m as QueuedUserMessage, P as PiChatSnapshot } from './piChatEvent-iNSXiFQq.js';
|
|
2
2
|
|
|
3
3
|
/** Placement-independent event envelope. `seq` is the only replay cursor. */
|
|
4
4
|
interface AgentSessionEvent {
|
|
@@ -205,4 +205,4 @@ declare class AgentGatewayError extends Error {
|
|
|
205
205
|
toJSON(): AgentGatewayErrorDTO;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
export { type
|
|
208
|
+
export { type AgentGateway as A, type ConnectAgentSessionInput as C, type DeleteAgentSessionInput as D, type IdempotentAgentControl as I, type JsonPrimitive as J, type ListAgentsInput as L, type ReadAgentSessionStateInput as R, type VerifiedAgentScopeClaim as V, type WorkspaceScopeId as W, type AuthorizedAgentScope as a, type AgentSessionRef as b, type AgentSessionActivity as c, type AgentSendReceipt as d, AGENT_GATEWAY_ERROR_CODES as e, type AgentFollowUpCommand as f, AgentGatewayError as g, AgentGatewayErrorCode as h, type AgentGatewayErrorDTO as i, type AgentPromptCommand as j, type AgentScopeVerifier as k, type AgentSessionConnection as l, type AgentSessionEvent as m, type AgentSessionPage as n, type AgentSessionStateSnapshot as o, type AgentSessionSummary as p, type AgentSummary as q, type AuthSubjectId as r, type AuthorizedAgentSessionQuery as s, type CreateAgentSessionInput as t, type IdempotentAgentSend as u, type IdempotentQueueClear as v, type JsonSafe as w, type JsonValue as x, type RenameAgentSessionInput as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as AgentSendInput, j as AgentEvent } from './harness-
|
|
3
|
-
import { b as Workspace } from './sandbox-
|
|
4
|
-
import {
|
|
1
|
+
import { k as InterruptReceipt, j as StopReceipt } from './piChatEvent-iNSXiFQq.js';
|
|
2
|
+
import { p as AgentSendInput, j as AgentEvent } from './harness-Dcd08yKr.js';
|
|
3
|
+
import { b as Workspace } from './sandbox-BMhut3kh.js';
|
|
4
|
+
import { b as AgentSessionRef, d as AgentSendReceipt, A as AgentGateway, a as AuthorizedAgentScope } from './errors-DH7C01Pm.js';
|
|
5
5
|
|
|
6
6
|
interface WorkspaceAgentDispatcherContext {
|
|
7
7
|
workspaceId: string;
|
|
@@ -84,4 +84,4 @@ interface FileSearch {
|
|
|
84
84
|
search(glob: string, limit?: number): Promise<string[]>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export {
|
|
87
|
+
export { AGENT_KNOWLEDGE_FILESYSTEM_ID as A, type FileSearch as F, type LeaseBoundWorkspaceAgent as L, type WorkspaceAgentDirectRunCallback as W, AGENT_RESOURCES_FILESYSTEM_ID as a, type AgentSkillResource as b, type WorkspaceAgentDirectRunInput as c, type WorkspaceAgentDispatch as d, type WorkspaceAgentDispatcher as e, type WorkspaceAgentDispatcherContext as f, type WorkspaceAgentDispatcherDispatchInput as g, type WorkspaceAgentDispatcherSendInput as h, type WorkspaceAgentGatewayBinding as i };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, HTMLAttributes, ComponentProps } from 'react';
|
|
3
|
+
import { Button } from '@hachej/boring-ui-kit';
|
|
4
|
+
import { LucideIcon } from 'lucide-react';
|
|
5
|
+
|
|
6
|
+
interface OpenArtifactOptions {
|
|
7
|
+
filesystem?: string;
|
|
8
|
+
}
|
|
9
|
+
type OpenArtifactHandler = (path: string, options?: OpenArtifactOptions) => void;
|
|
10
|
+
interface ArtifactOpenProviderProps {
|
|
11
|
+
onOpenArtifact?: OpenArtifactHandler;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare function ArtifactOpenProvider({ onOpenArtifact, children }: ArtifactOpenProviderProps): react.JSX.Element;
|
|
15
|
+
declare function useOpenArtifact(): OpenArtifactHandler | null;
|
|
16
|
+
|
|
17
|
+
type ArtifactProps = HTMLAttributes<HTMLDivElement>;
|
|
18
|
+
declare const Artifact: ({ className, ...props }: ArtifactProps) => react.JSX.Element;
|
|
19
|
+
type ArtifactHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
20
|
+
declare const ArtifactHeader: ({ className, ...props }: ArtifactHeaderProps) => react.JSX.Element;
|
|
21
|
+
type ArtifactTitleProps = HTMLAttributes<HTMLParagraphElement>;
|
|
22
|
+
declare const ArtifactTitle: ({ className, ...props }: ArtifactTitleProps) => react.JSX.Element;
|
|
23
|
+
type ArtifactDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
24
|
+
declare const ArtifactDescription: ({ className, ...props }: ArtifactDescriptionProps) => react.JSX.Element;
|
|
25
|
+
type ArtifactActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
26
|
+
declare const ArtifactActions: ({ className, ...props }: ArtifactActionsProps) => react.JSX.Element;
|
|
27
|
+
type ArtifactActionProps = ComponentProps<typeof Button> & {
|
|
28
|
+
tooltip?: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
icon?: LucideIcon;
|
|
31
|
+
};
|
|
32
|
+
declare const ArtifactAction: ({ tooltip, label, icon: Icon, children, className, size, variant, ...props }: ArtifactActionProps) => react.JSX.Element;
|
|
33
|
+
|
|
34
|
+
export { Artifact, ArtifactAction, ArtifactActions, ArtifactDescription, ArtifactHeader, ArtifactOpenProvider, ArtifactTitle, type OpenArtifactHandler, useOpenArtifact };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Artifact,
|
|
3
|
+
ArtifactAction,
|
|
4
|
+
ArtifactActions,
|
|
5
|
+
ArtifactDescription,
|
|
6
|
+
ArtifactHeader,
|
|
7
|
+
ArtifactOpenProvider,
|
|
8
|
+
ArtifactTitle,
|
|
9
|
+
useOpenArtifact
|
|
10
|
+
} from "../chunk-N6THTH7P.js";
|
|
11
|
+
import "../chunk-2BGLZZ7T.js";
|
|
12
|
+
export {
|
|
13
|
+
Artifact,
|
|
14
|
+
ArtifactAction,
|
|
15
|
+
ArtifactActions,
|
|
16
|
+
ArtifactDescription,
|
|
17
|
+
ArtifactHeader,
|
|
18
|
+
ArtifactOpenProvider,
|
|
19
|
+
ArtifactTitle,
|
|
20
|
+
useOpenArtifact
|
|
21
|
+
};
|
package/dist/front/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as ToolUiMetadata, B as BoringChatPart, v as BoringChatMessage, H as PiChatStatus, P as PiChatSnapshot, m as QueuedUserMessage, w as ChatError, c as PiChatEvent, d as PromptPayload, e as PromptReceipt, F as FollowUpPayload, f as FollowUpReceipt, Q as QueueClearPayload, g as QueueClearReceipt, I as InterruptPayload, h as CommandReceipt, i as StopPayload, j as StopReceipt, b as SessionSummary, y as ErrorCode } from '../piChatEvent-iNSXiFQq.js';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ComponentProps, HTMLAttributes, FormEvent, ReactNode, ComponentType } from 'react';
|
|
4
4
|
import { FileUIPart, ChatStatus, UIMessage } from 'ai';
|
|
5
|
-
import {
|
|
5
|
+
import { q as AgentSummary, h as AgentGatewayErrorCode, x as JsonValue } from '../errors-DH7C01Pm.js';
|
|
6
|
+
export { Artifact, ArtifactAction, ArtifactActions, ArtifactDescription, ArtifactHeader, ArtifactOpenProvider, ArtifactTitle, OpenArtifactHandler, useOpenArtifact } from './artifacts.js';
|
|
6
7
|
import { InputGroupAddon, InputGroupButton, InputGroupTextarea, Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from '@hachej/boring-ui-kit';
|
|
7
8
|
import { Streamdown } from 'streamdown';
|
|
8
9
|
import { StickToBottom } from 'use-stick-to-bottom';
|
|
9
10
|
import { ClassValue } from 'clsx';
|
|
10
11
|
import 'zod';
|
|
12
|
+
import 'lucide-react';
|
|
11
13
|
|
|
12
14
|
interface UploadFileOptions {
|
|
13
15
|
apiBaseUrl?: string;
|
|
@@ -316,6 +318,7 @@ interface PiChatState {
|
|
|
316
318
|
workspaceId?: string;
|
|
317
319
|
storageScope: string;
|
|
318
320
|
status: PiChatStatus;
|
|
321
|
+
currentModel?: PiChatSnapshot['currentModel'];
|
|
319
322
|
turnId?: string;
|
|
320
323
|
lastSeq: number;
|
|
321
324
|
committedMessages: BoringChatMessage[];
|
|
@@ -766,21 +769,12 @@ interface DebugDrawerProps {
|
|
|
766
769
|
}
|
|
767
770
|
declare function DebugDrawer({ agentTypeId, apiBaseUrl, fetch, sessionId, messages, requestHeaders, storageScope, width, onWidthChange }: DebugDrawerProps): react.JSX.Element;
|
|
768
771
|
|
|
769
|
-
interface OpenArtifactOptions {
|
|
770
|
-
filesystem?: string;
|
|
771
|
-
}
|
|
772
|
-
type OpenArtifactHandler = (path: string, options?: OpenArtifactOptions) => void;
|
|
773
|
-
interface ArtifactOpenProviderProps {
|
|
774
|
-
onOpenArtifact?: OpenArtifactHandler;
|
|
775
|
-
children: ReactNode;
|
|
776
|
-
}
|
|
777
|
-
declare function ArtifactOpenProvider({ onOpenArtifact, children }: ArtifactOpenProviderProps): react.JSX.Element;
|
|
778
|
-
declare function useOpenArtifact(): OpenArtifactHandler | null;
|
|
779
|
-
|
|
780
772
|
type SelectorTrigger = 'button' | 'slash';
|
|
781
773
|
declare const ModelSelectTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
782
774
|
value: ModelSelection | null;
|
|
783
775
|
options: AvailableModel[];
|
|
776
|
+
sessionModel?: ModelSelection;
|
|
777
|
+
isOverride?: boolean;
|
|
784
778
|
disabled?: boolean;
|
|
785
779
|
trigger?: SelectorTrigger;
|
|
786
780
|
open?: boolean;
|
|
@@ -964,4 +958,4 @@ declare const ToolContent: ({ className, ...props }: ToolContentProps) => react.
|
|
|
964
958
|
|
|
965
959
|
declare function cn(...inputs: ClassValue[]): string;
|
|
966
960
|
|
|
967
|
-
export { type AddressedAgentOption, type AgentCommandContribution, type AgentCommandOptions, type AgentPluginReloadResult,
|
|
961
|
+
export { type AddressedAgentOption, type AgentCommandContribution, type AgentCommandOptions, type AgentPluginReloadResult, type AvailableModel, BoringChatMessage, ChatEmptyState, type ChatEmptyStateProps, type ChatMessageContribution, type ChatMessageContributionProps, ChatMessageContributionProvider, PiChatPanel as ChatPanel, type PiChatPanelProps as ChatPanelProps, type ChatSuggestion, CodeBlock, type CommandRegistry, type ComposerActionContributionProps, type ComposerBlocker, type ComposerBlockerAction, type ComposerContribution, ComposerContributionProvider, type ComposerDraftUpdate, Conversation, ConversationContent, ConversationScrollButton, DebugDrawer, GatewayResponseError, type GatewayResponseErrorCode, type GroupedToolEntry, Message, MessageAction, MessageActions, MessageContent, MessageResponse, ModelPickerMenu, ModelSelect, ModelSelectTrigger, type ModelSelection, type ParsedCommand, PiChatPanel, type PiChatPanelProps, SessionBrowser as PiSessionBrowser, type PiSessionCreateInit, SessionList as PiSessionList, type PiSessionSearchItem, type PiSessionSearchOptions, type PiSessionSearchSortMode, PromptInput, PromptInputFooter, PromptInputSubmit, PromptInputTextarea, Reasoning, ReasoningContent, ReasoningTrigger, type SessionListProps, type SlashCommand, type SlashCommandContext, type ThinkingLevel, ThinkingSelect, Tool, ToolCallGroup, ToolContent, ToolHeader, type ToolPart$1 as ToolPart, type ToolRenderer, type ToolRendererOverrides, type UploadFileOptions, type UploadFileResult, type UseAddressedAgentSelectionOptions, type UseAddressedAgentSelectionResult, type UsePiSessionsOptions, type UsePiSessionsResult, activeSessionStorageKey, builtinCommands, cn, createCommandRegistry, defaultChatSuggestions, defaultToolRenderers, errorResponseCode, gatewayResponseError, gatewayResponseErrorFromBody, getAgentCommands, matchPiSessionSearch, mergeShadcnToolRenderers, mergeToolRenderers, parsePiSessionSearchQuery, parseSlashCommand, readActiveSessionId, resolveToolRenderer, searchPiSessions, uploadFile, useAddressedAgentSelection, usePiSessions, writeActiveSessionId };
|