@harness-gw/sdk 0.12.0 → 0.14.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/README.md +4 -3
- package/dist/chunks/index.js +702 -682
- package/dist/client/acp-workspace-client.d.ts +3 -3
- package/dist/client/hgw-client.d.ts +15 -2
- package/dist/client/index.js +24 -8
- package/dist/protocol/index.d.ts +6 -0
- package/dist/protocol/mcp-apps.d.ts +53 -6
- package/dist/protocol/node.d.ts +21 -0
- package/dist/protocol/node.js +18 -0
- package/dist/protocol/sdk.js +23 -15
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ You need a running harness. Hermes is the primary one; see
|
|
|
63
63
|
docker run --rm \
|
|
64
64
|
-v "$PWD/config.yaml:/run/harness-gw/config.yaml:ro" \
|
|
65
65
|
-v "$PWD/hermes-token:/run/secrets/hermes-token:ro" \
|
|
66
|
-
ghcr.io/almogbaku/harness-gw:0.
|
|
66
|
+
ghcr.io/almogbaku/harness-gw:0.14.0 \
|
|
67
67
|
config check --config /run/harness-gw/config.yaml
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -73,7 +73,7 @@ You need a running harness. Hermes is the primary one; see
|
|
|
73
73
|
docker run --rm -p 127.0.0.1:4100:4100 \
|
|
74
74
|
-v "$PWD/config.yaml:/run/harness-gw/config.yaml:ro" \
|
|
75
75
|
-v "$PWD/hermes-token:/run/secrets/hermes-token:ro" \
|
|
76
|
-
ghcr.io/almogbaku/harness-gw:0.
|
|
76
|
+
ghcr.io/almogbaku/harness-gw:0.14.0 \
|
|
77
77
|
serve --config /run/harness-gw/config.yaml
|
|
78
78
|
```
|
|
79
79
|
|
|
@@ -116,12 +116,13 @@ await connection.joined(sessionId)
|
|
|
116
116
|
await connection.prompt(sessionId, [{ type: "text", text: "Hello" }], {})
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
The package has
|
|
119
|
+
The package has three entry points:
|
|
120
120
|
|
|
121
121
|
| Import | What it holds |
|
|
122
122
|
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
123
123
|
| `@harness-gw/sdk` | The ACP connection with reconnect and backoff, the workspace client (Agents, Sessions, read state, activity), approvals, questions, and `HgwRemoteClient` for the HTTP routes |
|
|
124
124
|
| `@harness-gw/sdk/protocol` | The wire alone: `_hgw/*` method names, the `_meta.hgw` zod schemas and their types, route paths and `HGW_EXTENSION_VERSION`. It loads without the client |
|
|
125
|
+
| `@harness-gw/sdk/node` | Server-only: `mcpAppStableOriginKey` and `artifactFileId`, the ids an MCP server derives as the gateway does. It needs Node's `crypto` |
|
|
125
126
|
|
|
126
127
|
The client checks the gateway's extension version during `initialize`. On a
|
|
127
128
|
mismatch it fails `initialized` with both versions named and stops instead of
|