@hachej/boring-agent 0.1.103 → 0.1.105
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/{chunk-7QM22DU7.js → chunk-6DRHERVK.js} +7 -5
- package/dist/{chunk-TW7G33QH.js → chunk-F2OJI2LX.js} +64 -15
- package/dist/{chunk-6WKQ4FC4.js → chunk-LFN45QDZ.js} +259 -140
- package/dist/core/index.d.ts +5 -5
- package/dist/{createHarness-4Q6DQBRT.js → createHarness-GMBZZPTN.js} +1 -1
- package/dist/{errors-szpcDUFQ.d.ts → errors-DH7C01Pm.d.ts} +1 -1
- package/dist/{file-search-BXdSm-Yq.d.ts → file-search-qcD5zItr.d.ts} +3 -3
- package/dist/front/index.d.ts +12 -2
- package/dist/front/index.js +200 -135
- package/dist/front/styles.css +56 -15
- package/dist/{harness-erpL2SER.d.ts → harness-Dcd08yKr.d.ts} +1 -1
- package/dist/{lease-K-EZhdL-.d.ts → lease-DffrPrQn.d.ts} +1 -1
- package/dist/{piChatEvent-g1nIBh44.d.ts → piChatEvent-iNSXiFQq.d.ts} +5 -0
- package/dist/{piChatSessionService-DugeRHzb.d.ts → piChatSessionService-DQSQ_kWZ.d.ts} +1 -1
- package/dist/server/agent-host/testing/gatewayConformance.d.ts +5 -5
- package/dist/server/agent-host/testing/gatewayConformance.js +1 -1
- package/dist/server/index.d.ts +53 -42
- package/dist/server/index.js +5 -3
- package/dist/server/worker/index.js +3 -3
- package/dist/shared/index.d.ts +93 -19
- package/dist/shared/index.js +1 -1
- package/dist/{types-BnjMLAd5.d.ts → types-BTsdaAQ2.d.ts} +33 -14
- package/docs/ERROR_CODES.md +1 -1
- package/package.json +6 -6
package/dist/core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AgentHarness, a as AgentReadiness, b as Agent } from '../harness-
|
|
2
|
-
export { c as AGENT_NOT_IMPLEMENTED_UNTIL_T1, d as AgentActor, e as AgentCoreHarness, f as AgentCoreHarnessFactory, g as AgentCorePromptInput, h as AgentCoreSessionAdapter, i as AgentCoreSessionSnapshot, j as AgentEvent, k as AgentMessageContent, l as AgentMessagePart, m as AgentNotImplementedError, n as AgentReadinessStatus, o as AgentResolveInputResponse, p as AgentSendInput, q as AgentStartReceipt, r as AgentStreamOptions } from '../harness-
|
|
3
|
-
import { S as SessionStore } from '../piChatEvent-
|
|
4
|
-
import { A as AgentCoreSessionService, a as AgentEffectAdmission } from '../piChatSessionService-
|
|
5
|
-
export { b as AGENT_EFFECT_METHODS, c as AgentEffectAdmissionError, P as PiChatEventStreamResult, d as PiChatEventStreamSubscription, e as PiChatEventSubscriber, f as PiChatReplayRangeError, g as PiChatSessionService, h as PiSessionCreateInit, i as PiSessionRequestContext, w as withAgentEffectAdmission } from '../piChatSessionService-
|
|
1
|
+
import { A as AgentHarness, a as AgentReadiness, b as Agent } from '../harness-Dcd08yKr.js';
|
|
2
|
+
export { c as AGENT_NOT_IMPLEMENTED_UNTIL_T1, d as AgentActor, e as AgentCoreHarness, f as AgentCoreHarnessFactory, g as AgentCorePromptInput, h as AgentCoreSessionAdapter, i as AgentCoreSessionSnapshot, j as AgentEvent, k as AgentMessageContent, l as AgentMessagePart, m as AgentNotImplementedError, n as AgentReadinessStatus, o as AgentResolveInputResponse, p as AgentSendInput, q as AgentStartReceipt, r as AgentStreamOptions } from '../harness-Dcd08yKr.js';
|
|
3
|
+
import { S as SessionStore } from '../piChatEvent-iNSXiFQq.js';
|
|
4
|
+
import { A as AgentCoreSessionService, a as AgentEffectAdmission } from '../piChatSessionService-DQSQ_kWZ.js';
|
|
5
|
+
export { b as AGENT_EFFECT_METHODS, c as AgentEffectAdmissionError, P as PiChatEventStreamResult, d as PiChatEventStreamSubscription, e as PiChatEventSubscriber, f as PiChatReplayRangeError, g as PiChatSessionService, h as PiSessionCreateInit, i as PiSessionRequestContext, w as withAgentEffectAdmission } from '../piChatSessionService-DQSQ_kWZ.js';
|
|
6
6
|
import '@mariozechner/pi-coding-agent';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PiChatEvent, C as ChatModelSelection, T as ThinkingLevel, l as ChatAttachmentPayload, m as QueuedUserMessage, P as PiChatSnapshot } from './piChatEvent-
|
|
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 {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as InterruptReceipt, j as StopReceipt } from './piChatEvent-
|
|
2
|
-
import { p as AgentSendInput, j as AgentEvent } from './harness-
|
|
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
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-
|
|
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;
|
package/dist/front/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as ToolUiMetadata, B as BoringChatPart, v as BoringChatMessage, H as PiChatStatus, 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-
|
|
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 { q as AgentSummary, h as AgentGatewayErrorCode, x as JsonValue } from '../errors-
|
|
5
|
+
import { q as AgentSummary, h as AgentGatewayErrorCode, x as JsonValue } from '../errors-DH7C01Pm.js';
|
|
6
6
|
export { Artifact, ArtifactAction, ArtifactActions, ArtifactDescription, ArtifactHeader, ArtifactOpenProvider, ArtifactTitle, OpenArtifactHandler, useOpenArtifact } from './artifacts.js';
|
|
7
7
|
import { InputGroupAddon, InputGroupButton, InputGroupTextarea, Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from '@hachej/boring-ui-kit';
|
|
8
8
|
import { Streamdown } from 'streamdown';
|
|
@@ -157,6 +157,13 @@ declare function parseSlashCommand(text: string): ParsedCommand | null;
|
|
|
157
157
|
type SlashCommandHandlerResult = string | void | {
|
|
158
158
|
message?: string;
|
|
159
159
|
preserveDraft?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Result text the agent must see. When set, the command's outcome is also
|
|
162
|
+
* submitted as an expanded-text turn, so it lands in the model's context the
|
|
163
|
+
* same way a skill command's expansion does — a browser-only notice is
|
|
164
|
+
* invisible to the agent. Keep it a short structured summary, not a dump.
|
|
165
|
+
*/
|
|
166
|
+
modelMessage?: string;
|
|
160
167
|
};
|
|
161
168
|
type SlashCommandHandler = (args: string, ctx: SlashCommandContext) => SlashCommandHandlerResult | Promise<SlashCommandHandlerResult>;
|
|
162
169
|
type SlashCommandClickBehavior = 'execute' | 'insert' | 'disabled';
|
|
@@ -318,6 +325,7 @@ interface PiChatState {
|
|
|
318
325
|
workspaceId?: string;
|
|
319
326
|
storageScope: string;
|
|
320
327
|
status: PiChatStatus;
|
|
328
|
+
currentModel?: PiChatSnapshot['currentModel'];
|
|
321
329
|
turnId?: string;
|
|
322
330
|
lastSeq: number;
|
|
323
331
|
committedMessages: BoringChatMessage[];
|
|
@@ -772,6 +780,8 @@ type SelectorTrigger = 'button' | 'slash';
|
|
|
772
780
|
declare const ModelSelectTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
773
781
|
value: ModelSelection | null;
|
|
774
782
|
options: AvailableModel[];
|
|
783
|
+
sessionModel?: ModelSelection;
|
|
784
|
+
isOverride?: boolean;
|
|
775
785
|
disabled?: boolean;
|
|
776
786
|
trigger?: SelectorTrigger;
|
|
777
787
|
open?: boolean;
|