@hachej/boring-agent 0.1.6 → 0.1.7

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.
@@ -43,6 +43,25 @@ interface AgentHarness {
43
43
  * `sendMessage`). Optional so non-pi harnesses can opt out cleanly.
44
44
  */
45
45
  getSystemPrompt?: (sessionId: string) => string | undefined;
46
+ /**
47
+ * Queue a follow-up message for delivery after the current streaming turn.
48
+ * When called while a `sendMessage` stream is active, the harness keeps
49
+ * the HTTP stream open after `agent_end` and processes the follow-up as a
50
+ * second turn in the same response — no extra round-trip needed.
51
+ * A `data-followup-consumed` chunk is emitted before the follow-up turn so
52
+ * the client can clear its pending-message bubble immediately.
53
+ */
54
+ followUp?(sessionId: string, text: string, attachments?: MessageAttachment[]): void;
55
+ /**
56
+ * Discard any queued follow-up for this session (called by the Stop button).
57
+ */
58
+ clearFollowUp?(sessionId: string): void;
59
+ }
60
+ interface MessageAttachment {
61
+ filename?: string;
62
+ mediaType?: string;
63
+ /** data: URL (base64) or remote URL */
64
+ url: string;
46
65
  }
47
66
  interface SendMessageInput {
48
67
  sessionId: string;
@@ -52,6 +71,7 @@ interface SendMessageInput {
52
71
  provider: string;
53
72
  id: string;
54
73
  };
74
+ attachments?: MessageAttachment[];
55
75
  }
56
76
  interface RunContext {
57
77
  abortSignal: AbortSignal;
@@ -1,6 +1,8 @@
1
1
  interface Workspace {
2
2
  readonly root: string;
3
3
  readFile(relPath: string): Promise<string>;
4
+ /** Optional binary read operation for media/document previews. */
5
+ readBinaryFile?(relPath: string): Promise<Uint8Array>;
4
6
  writeFile(relPath: string, data: string): Promise<void>;
5
7
  /**
6
8
  * Optional binary write operation for user-uploaded assets. Shared callers use
@@ -1,4 +1,4 @@
1
- import { S as Sandbox, f as SandboxHandleStore, e as SandboxHandleRecord, W as Workspace, F as FileSearch, A as AgentTool } from '../sandbox-handle-store-pNB_27Sd.js';
1
+ import { S as Sandbox, f as SandboxHandleStore, e as SandboxHandleRecord, W as Workspace, F as FileSearch, A as AgentTool } from '../sandbox-handle-store-DCNEJJ6b.js';
2
2
  import { Sandbox as Sandbox$1 } from '@vercel/sandbox';
3
3
  import { FastifyInstance, FastifyRequest, FastifyPluginAsync } from 'fastify';
4
4
  import { PackageSource } from '@mariozechner/pi-coding-agent';