foldkit-agent-native 0.10.0 → 0.12.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 +9 -37
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -9,24 +9,11 @@ already exposes. The generated action delegates validation, availability,
|
|
|
9
9
|
authorization, dispatch, and completion back to a bound `AgentRuntime`; it does
|
|
10
10
|
not reimplement application behavior.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
|
18
|
-
| AgentBuilder.bind(...)
|
|
19
|
-
v
|
|
20
|
-
AgentRuntime live Model + dispatch + policy
|
|
21
|
-
^
|
|
22
|
-
|
|
|
23
|
-
resolveRuntime(ctx)
|
|
24
|
-
|
|
|
25
|
-
foldkit-agent-native adapter
|
|
26
|
-
|
|
|
27
|
-
v
|
|
28
|
-
Agent Native action registry
|
|
29
|
-
```
|
|
12
|
+
The application's `AssistantAgent` is the protocol-neutral contract.
|
|
13
|
+
`AgentBuilder.bind(...)` binds it to an `AgentRuntime`, which holds the live Model,
|
|
14
|
+
dispatch and policy. `foldkit-agent-native` is the adapter: it gives Agent Native
|
|
15
|
+
an action registry, and each invocation reaches the runtime through
|
|
16
|
+
`resolveRuntime(ctx)`.
|
|
30
17
|
|
|
31
18
|
Application behavior still ends in the existing Foldkit Message and `update`.
|
|
32
19
|
This package is an adapter, not a second agent architecture.
|
|
@@ -102,25 +89,10 @@ const runtimeFor = (context: HostContext) =>
|
|
|
102
89
|
|
|
103
90
|
That distinction is the heart of this adapter:
|
|
104
91
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
v
|
|
110
|
-
Agent Native action descriptions
|
|
111
|
-
|
|
112
|
-
per invocation
|
|
113
|
-
verified host caller/context
|
|
114
|
-
|
|
|
115
|
-
v
|
|
116
|
-
resolveRuntime(ctx)
|
|
117
|
-
|
|
|
118
|
-
v
|
|
119
|
-
AgentRuntime
|
|
120
|
-
|
|
|
121
|
-
v
|
|
122
|
-
availability -> authorization -> Message -> update
|
|
123
|
-
```
|
|
92
|
+
Statically, the `AssistantAgent` becomes Agent Native action descriptions. Per
|
|
93
|
+
invocation, a verified host caller and context go to `resolveRuntime(ctx)`, which
|
|
94
|
+
returns the `AgentRuntime`; that checks availability, then authorization, then
|
|
95
|
+
dispatches the Message to `update`.
|
|
124
96
|
|
|
125
97
|
The registry describes capabilities. The bound runtime decides whether a
|
|
126
98
|
particular caller may use one **right now**.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foldkit-agent-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Agent Native adapter for foldkit-agent. Compiles an exposed Foldkit contract into Agent Native actions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foldkit",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"@agent-native/core": "0.214.0",
|
|
42
42
|
"effect": "^4.1.0",
|
|
43
43
|
"foldkit": "^0.170.0",
|
|
44
|
-
"foldkit-agent": "^0.
|
|
44
|
+
"foldkit-agent": "^0.14.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@agent-native/core": "0.214.0",
|
|
48
|
-
"@effect/platform-browser": "
|
|
49
|
-
"effect": "
|
|
48
|
+
"@effect/platform-browser": "4.1.4",
|
|
49
|
+
"effect": "4.1.4",
|
|
50
50
|
"foldkit": "0.170.0",
|
|
51
51
|
"tsdown": "^0.23.1",
|
|
52
52
|
"typescript": "7.0.2",
|
|
53
|
-
"foldkit-agent": "0.
|
|
53
|
+
"foldkit-agent": "0.14.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "node ../../scripts/declarations.mjs . && tsdown && node ../../scripts/declared-any.mjs .",
|