acp-kernel 0.0.89-pr.419.270 → 0.0.89
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/DESIGN.md +0 -16
- package/dist/boundaries.d.ts +0 -1
- package/dist/boundaries.d.ts.map +1 -1
- package/dist/compress.d.ts.map +1 -1
- package/dist/decompress.d.ts +0 -25
- package/dist/decompress.d.ts.map +1 -1
- package/dist/hide-consumed.d.ts +0 -4
- package/dist/hide-consumed.d.ts.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +216 -520
- package/dist/index.js.map +1 -1
- package/dist/persist/index.js +4 -43
- package/dist/persist/index.js.map +1 -1
- package/dist/persist/store.d.ts +1 -13
- package/dist/persist/store.d.ts.map +1 -1
- package/dist/protected.d.ts.map +1 -1
- package/dist/prune.d.ts +0 -15
- package/dist/prune.d.ts.map +1 -1
- package/dist/recommend.d.ts +1 -0
- package/dist/recommend.d.ts.map +1 -1
- package/dist/report.d.ts.map +1 -1
- package/dist/search/algorithms/hybrid.d.ts.map +1 -1
- package/dist/search/doc-cache.d.ts +10 -34
- package/dist/search/doc-cache.d.ts.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/types.d.ts +0 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/wire/anthropic.d.ts +1 -1
- package/dist/wire/anthropic.d.ts.map +1 -1
- package/dist/wire/index.js +2 -8
- package/dist/wire/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/message-kind.d.ts +0 -11
- package/dist/message-kind.d.ts.map +0 -1
package/dist/wire/anthropic.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type AnthropicToolUse = {
|
|
|
14
14
|
export type AnthropicToolResult = {
|
|
15
15
|
type: "tool_result";
|
|
16
16
|
tool_use_id: string;
|
|
17
|
-
content: string |
|
|
17
|
+
content: string | AnthropicTextBlock[];
|
|
18
18
|
is_error?: boolean;
|
|
19
19
|
cache_control?: unknown;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../src/wire/anthropic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACzF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../src/wire/anthropic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACzF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,O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IAAI,EAAE,WAAW,EAAE,CAAC;IAAC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AAEzE,wBAAgB,eAAe,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAiFhE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,gBAAgB,EAAE,CA0DjH;AAED;;;;yBAIyB;AACzB,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,oBAAoB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAMpG"}
|
package/dist/wire/index.js
CHANGED
|
@@ -66,8 +66,7 @@ function anthropicToCore(body) {
|
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
68
|
case "tool_result": {
|
|
69
|
-
const
|
|
70
|
-
const text = typeof b.content === "string" ? b.content : b.content.map((c) => c.type === "text" ? c.text : "").join("\n");
|
|
69
|
+
const text = typeof b.content === "string" ? b.content : b.content.map((c) => c.text).join("\n");
|
|
71
70
|
const base = deriveMessageId("tool", "tool-result", text, { toolCallId: b.tool_use_id });
|
|
72
71
|
const id = clusters.next(base);
|
|
73
72
|
const name = toolNames.get(b.tool_use_id);
|
|
@@ -78,8 +77,7 @@ function anthropicToCore(body) {
|
|
|
78
77
|
toolCallId: b.tool_use_id,
|
|
79
78
|
text,
|
|
80
79
|
...name ? { toolName: name } : {},
|
|
81
|
-
...b.is_error === true ? { toolIsError: true } : {}
|
|
82
|
-
...hasNonText ? { rawAnthropicBlock: b } : {}
|
|
80
|
+
...b.is_error === true ? { toolIsError: true } : {}
|
|
83
81
|
});
|
|
84
82
|
if (b.cache_control) cacheControls.set(id, b.cache_control);
|
|
85
83
|
break;
|
|
@@ -149,10 +147,6 @@ function coreToAnthropic(messages, cacheControls) {
|
|
|
149
147
|
});
|
|
150
148
|
break;
|
|
151
149
|
case "tool-result":
|
|
152
|
-
if (m.rawAnthropicBlock) {
|
|
153
|
-
current.blocks.push(m.rawAnthropicBlock);
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
150
|
current.blocks.push({
|
|
157
151
|
type: "tool_result",
|
|
158
152
|
tool_use_id: m.toolCallId ?? "",
|