@qlairoslabs/acp-client 0.7.1 → 0.7.3

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/src/types.ts CHANGED
@@ -58,9 +58,13 @@ export type Usage = TokenUsage;
58
58
  * call RESOLVES (not rejects) with whatever partial text arrived.
59
59
  */
60
60
  export interface PromptResult {
61
- /** Legacy flattened projection of `messages` (partial if cancelled). */
61
+ /**
62
+ * Legacy lossy projection of `messages`, separated by one blank line.
63
+ * @deprecated Use `messages`, preserving each logical ACP response message. Consumers
64
+ * that require one string can call `formatResponseMessages` with their own separator.
65
+ */
62
66
  text: string;
63
- /** Assistant messages in protocol order, preserving ACP `messageId` boundaries. */
67
+ /** Canonical assistant result in protocol order, preserving ACP message boundaries. */
64
68
  messages: readonly ResponseMessage[];
65
69
  /** Raw protocol stop reason: "end_turn" | "cancelled" | "max_tokens" | ... */
66
70
  stopReason: string;
@@ -242,7 +246,7 @@ export interface PermissionRequest {
242
246
 
243
247
  /** Per-prompt callbacks. All optional. */
244
248
  export interface PromptHandlers {
245
- /** Legacy text-only response stream. Prefer `onResponseChunk` when boundaries matter. */
249
+ /** Legacy raw text stream. Concatenation does not encode message boundaries. */
246
250
  onChunk?: (text: string) => void;
247
251
  /** Boundary-aware response stream preserving ACP `messageId`. */
248
252
  onResponseChunk?: (chunk: ResponseChunk) => void;
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Facundo Hannoch
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.