@ai-sdk/harness-acp 1.0.38 → 1.0.40
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/CHANGELOG.md +24 -0
- package/README.md +4 -3
- package/dist/bridge/host-tool-mcp.mjs +1 -1
- package/dist/bridge/index.mjs +556 -43
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.d.ts +56 -6
- package/dist/index.js +280 -72
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/acp-harness.ts +51 -9
- package/src/index.ts +2 -0
- package/src/v1/acp-v1-bridge-protocol.ts +19 -0
- package/src/v1/acp-v1-harness.ts +307 -19
- package/src/v1/acp-v1-settings.ts +42 -0
- package/src/v1/acp-v1-skills.ts +4 -65
- package/src/v1/bridge/acp-v1-bridge-environment.ts +16 -0
- package/src/v1/bridge/create-emit-stream-event.ts +6 -0
- package/src/v1/bridge/host-tool-correlation.ts +34 -0
- package/src/v1/bridge/host-tool-mcp-definition.ts +69 -0
- package/src/v1/bridge/host-tool-mcp-http.ts +182 -0
- package/src/v1/bridge/host-tool-relay.ts +87 -7
- package/src/v1/bridge/index.ts +111 -24
- package/src/v1/bridge/instruction-mapping.ts +12 -0
- package/src/v1/bridge/stream-translator.ts +41 -2
- package/src/v1/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @ai-sdk/harness-acp
|
|
2
2
|
|
|
3
|
+
## 1.0.40
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ceb601c: fix(harness-acp): fix stream translator to match most appropriate tool based on input shape when no name is present and multiple candidates would match the required arguments
|
|
8
|
+
- 255cccf: feat(harness): add `writeInstructions` helper and support filesystem based `instructionsMapping` in ACP backed harness adapters
|
|
9
|
+
- 668b51d: fix(harness-acp): remove problematic condition that leads to errors when using `stopWhen`
|
|
10
|
+
- eeed977: feat(harness): allow passing arbitrary headers with inference requests via `headers` property in `HarnessAgentSettings`
|
|
11
|
+
- 1291df7: feat(harness-acp): support control over how host tools are exposed via `hostToolMcpTransport` config
|
|
12
|
+
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to require materializing skills in HOME directory
|
|
13
|
+
- Updated dependencies [fe86f8f]
|
|
14
|
+
- Updated dependencies [255cccf]
|
|
15
|
+
- Updated dependencies [eeed977]
|
|
16
|
+
- Updated dependencies [a39c8bf]
|
|
17
|
+
- @ai-sdk/harness@1.0.102
|
|
18
|
+
|
|
19
|
+
## 1.0.39
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 951c54d: feat(harness): support `askUserQuestions` tool including support for normalization across harness adapters
|
|
24
|
+
- Updated dependencies [951c54d]
|
|
25
|
+
- @ai-sdk/harness@1.0.101
|
|
26
|
+
|
|
3
27
|
## 1.0.38
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -111,9 +111,10 @@ Use `instructionMapping` when the ACP implementation exposes a native system
|
|
|
111
111
|
or developer prompt. A `session-meta` mapping writes `HarnessAgent`
|
|
112
112
|
instructions below the ACP session request's `_meta` field. A
|
|
113
113
|
`launch-env-json` mapping merges them into a JSON environment variable before
|
|
114
|
-
the implementation starts.
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
the implementation starts. A `filesystem` mapping writes instructions to a
|
|
115
|
+
markdown file at a relative path under the implementation's effective `$HOME`.
|
|
116
|
+
Without a mapping, the adapter preserves its backward-compatible behavior and
|
|
117
|
+
prepends instructions to the first user prompt.
|
|
117
118
|
|
|
118
119
|
Skills are written to `.agents/skills` below the ACP implementation's effective
|
|
119
120
|
`$HOME` and discovered natively by the implementation. Set `skillsDirectory`
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ListToolsRequestSchema,
|
|
13
13
|
McpError
|
|
14
14
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
15
|
-
var VERSION = true ? "1.0.
|
|
15
|
+
var VERSION = true ? "1.0.40" : "0.0.0-test";
|
|
16
16
|
function createHostToolMCPServer({
|
|
17
17
|
tools: tools2,
|
|
18
18
|
revision = 1,
|