@agentproto/acp 0.1.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.
@@ -127,7 +127,14 @@ type StreamEvent = {
127
127
  } | {
128
128
  kind: "turn-end";
129
129
  sessionId: string;
130
- reason: "completed" | "cancelled" | "max_turns" | "error";
130
+ /**
131
+ * `"watchdog-timeout"` is synthesized client-side (never sent by the
132
+ * agent) when `AcpClientOptions.turnIdleTimeoutMs` elapses with no
133
+ * activity signal during a turn and the underlying `prompt()` call
134
+ * still hasn't resolved — distinguishes an inferred completion from
135
+ * a real one so callers that care can tell the difference.
136
+ */
137
+ reason: "completed" | "cancelled" | "max_turns" | "error" | "watchdog-timeout";
131
138
  } | {
132
139
  kind: "error";
133
140
  sessionId?: string;
@@ -136,6 +143,23 @@ type StreamEvent = {
136
143
  message: string;
137
144
  data?: unknown;
138
145
  };
146
+ } | {
147
+ kind: "plan";
148
+ sessionId: string;
149
+ entries: Array<{
150
+ content: string;
151
+ priority: "high" | "medium" | "low";
152
+ status: "pending" | "in_progress" | "completed";
153
+ }>;
154
+ } | {
155
+ kind: "usage_update";
156
+ sessionId: string;
157
+ size: number;
158
+ used: number;
159
+ cost?: {
160
+ amount: number;
161
+ currency: string;
162
+ };
139
163
  };
140
164
 
141
165
  export type { AcpDefinition as A, StreamEvent as S, AcpAuditConfig as a, AcpCapabilities as b, AcpHandle as c, AcpMcpServer as d, AcpRole as e, AcpTier as f, AcpTransport as g, Aip44Extensions as h };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/acp",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "@agentproto/acp — AIP-44 ACP.md reference implementation. An agentproto profile of the Agent Client Protocol (agentclientprotocol.com). Wraps @agentclientprotocol/sdk with createAcpClient (drives subprocess agents) and createAcpServer (exposes AIP-9 operators to ACP-speaking IDEs).",
5
5
  "keywords": [
6
6
  "agentproto",