@anureo/adapter-acp 0.2.0 → 0.3.0

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/mapping.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import type { InputBlock, JsonValue, JsonObject, ConfigOption, SessionState } from '@anureo/protocol';
2
- import { type SessionEventSink } from '@anureo/sdk';
3
- import type { ContentBlock, McpServer } from '@agentclientprotocol/sdk';
4
- export declare function record(value: unknown): Record<string, unknown>;
5
- export declare function safe(value: unknown): JsonValue;
6
- export declare function text(value: unknown): string;
7
- export declare function input(blocks: InputBlock[]): ContentBlock[];
8
- export declare function mcp(servers?: import('@anureo/protocol').McpServer[]): McpServer[];
9
- export declare function configuration(data: Record<string, unknown>): {
10
- options: ConfigOption[];
11
- values: JsonObject;
12
- keys: Map<string, Record<string, unknown>>;
13
- };
14
- /** Accumulates native updates; only complete snapshots become authoritative item/completed. */
15
- export declare class AcpUpdateMapper {
16
- private readonly sink;
17
- private readonly getTurn;
18
- private readonly state;
19
- private readonly setState;
20
- private readonly subagents;
21
- private readonly items;
22
- private readonly ended;
23
- private serial;
24
- private compaction;
25
- constructor(sink: SessionEventSink, getTurn: () => string | undefined, state: () => SessionState, setState: (data: Record<string, unknown>) => void, subagents: boolean);
26
- reset(): void;
27
- private upsert;
28
- complete(): Promise<void>;
29
- update(update: Record<string, unknown>): Promise<void>;
30
- }