@agentshouse/mdruntime-adapter 0.1.0-alpha.30 → 0.1.0-alpha.31
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/AGENTS.md +1 -2
- package/README.md +32 -0
- package/package.json +3 -11
package/AGENTS.md
CHANGED
|
@@ -37,8 +37,7 @@ composes, or exposes the browser store.
|
|
|
37
37
|
|
|
38
38
|
Read deployment facts with `deploymentFacts()` and observe replacements with
|
|
39
39
|
`observe('deployment-facts')`. Interpret the opaque value using the
|
|
40
|
-
host's contract.
|
|
41
|
-
owns their boundary.
|
|
40
|
+
host's contract.
|
|
42
41
|
|
|
43
42
|
The in-memory Adapter at `@agentshouse/mdruntime/memory` is for tests and
|
|
44
43
|
ships in no bundle.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `@agentshouse/mdruntime-adapter`
|
|
2
|
+
|
|
3
|
+
The [Agents House](https://agents.house) Adapter for
|
|
4
|
+
[`@agentshouse/mdruntime`](https://www.npmjs.com/package/@agentshouse/mdruntime):
|
|
5
|
+
it connects a Runtime host to Agents House as its Provider.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @agentshouse/mdruntime-adapter @agentshouse/mdruntime
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
A Runtime host creates the Adapter and passes it to the Runtime:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { serveMdRuntime } from '@agentshouse/mdruntime/host';
|
|
19
|
+
import { createAgentsHouseAdapter } from '@agentshouse/mdruntime-adapter';
|
|
20
|
+
|
|
21
|
+
const adapter = createAgentsHouseAdapter({ transport, authorize });
|
|
22
|
+
const host = serveMdRuntime({ adapter, shell, requiredGuarantees: [] });
|
|
23
|
+
host.attach(port, 'my-app');
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
App code never imports this package; it reaches the Runtime only through
|
|
27
|
+
`@agentshouse/mdruntime/client`. The rules an App's agent follows are in
|
|
28
|
+
[`AGENTS.md`](AGENTS.md).
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdruntime-adapter",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.31",
|
|
4
4
|
"description": "Agents House Adapter for the MD Runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,19 +21,11 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
23
|
"AGENTS.md",
|
|
24
|
+
"README.md",
|
|
24
25
|
"LICENSE"
|
|
25
26
|
],
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/agentshouse/mdruntime.git",
|
|
29
|
-
"directory": "packages/mdruntime-adapter"
|
|
30
|
-
},
|
|
31
|
-
"homepage": "https://github.com/agentshouse/mdruntime#readme",
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/agentshouse/mdruntime/issues"
|
|
34
|
-
},
|
|
35
27
|
"dependencies": {
|
|
36
28
|
"@agentshouse/mdmodel": "0.1.0-alpha.15",
|
|
37
|
-
"@agentshouse/mdruntime": "0.1.0-alpha.
|
|
29
|
+
"@agentshouse/mdruntime": "0.1.0-alpha.35"
|
|
38
30
|
}
|
|
39
31
|
}
|