@jigging/agent-acp 0.1.0-alpha.5 → 0.1.0-alpha.6
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 +2 -0
- package/README.md +24 -0
- package/dist/flow.js +3 -1
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -33,6 +33,8 @@ retains credential, process, and dispatch authority.
|
|
|
33
33
|
- Jig consumers may select this declared dependency with `npm:@jigging/agent-acp`
|
|
34
34
|
in a local Binding; the Binding still grants the exact native client.
|
|
35
35
|
Contract-keyed project selection does not create that grant or choose a vendor.
|
|
36
|
+
The README teaches package-selected caller creation and offline contract import
|
|
37
|
+
from ordinary root/member installs; consumers do not name physical installer paths.
|
|
36
38
|
- Reuse `@jigging/agent-method` for prompt preparation and result validation.
|
|
37
39
|
Complete ACP dialogue and resource settlement are separate requirements.
|
|
38
40
|
- Locally detected invalid ACP cancels the resource while preserving that
|
package/README.md
CHANGED
|
@@ -127,6 +127,30 @@ The example's client is a choice, not a Jig default; `codex`, `claude` and `pi`
|
|
|
127
127
|
use the same grant interface. The operator configures the native installation, model and
|
|
128
128
|
authentication described in [Choose an Agent](https://jig.md/guide/agents).
|
|
129
129
|
|
|
130
|
+
To call this Agent from a new Flow, install the declared project dependency
|
|
131
|
+
with `bun install`, then select its complete contract when creating the caller:
|
|
132
|
+
|
|
133
|
+
```sh
|
|
134
|
+
jig new worker --use agent=npm:@jigging/agent-acp
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
For an existing caller, create its `contracts/` parent and import the bundle:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
mkdir -p flows/worker/contracts
|
|
141
|
+
jig import-contract npm:@jigging/agent-acp flows/worker/contracts/agent
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Declare `uses.agent.contract: './contracts/agent/FLOW.contract.json'` in that
|
|
145
|
+
caller's metadata. Selection uses the nearest ordinary project or member-local
|
|
146
|
+
installation, copies all referenced channel descriptors offline, and runs no
|
|
147
|
+
package code. The copied contract belongs to the caller: an installation update
|
|
148
|
+
does not replace it or grant new authority. An existing destination is refused;
|
|
149
|
+
choose a new directory to inspect a changed contract before updating the caller.
|
|
150
|
+
See the [conversation walkthrough](https://jig.md/guide/conversations) for a
|
|
151
|
+
complete two-turn caller and the separate native turn grant. These authoring
|
|
152
|
+
commands require the matching Jig source candidate until its alpha is published.
|
|
153
|
+
|
|
130
154
|
```sh
|
|
131
155
|
jig review
|
|
132
156
|
jig run binding:agent --input '{"instructions":"Explain one useful check."}' --receive events
|
package/dist/flow.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// ../agent-method/dist/errors.js
|
|
2
2
|
class AgentMethodError extends Error {
|
|
3
3
|
code;
|
|
4
|
-
|
|
4
|
+
details;
|
|
5
|
+
constructor(code, message, details) {
|
|
5
6
|
super(message);
|
|
6
7
|
this.code = code;
|
|
8
|
+
this.details = details;
|
|
7
9
|
this.name = "AgentMethodError";
|
|
8
10
|
}
|
|
9
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jigging/agent-acp",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"description": "An ordinary Agent Flow over a finite, host-authorized ACP resource",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@jigging/flow": "0.1.0-alpha.13",
|
|
40
|
-
"@jigging/agent-method": "0.1.0-alpha.
|
|
40
|
+
"@jigging/agent-method": "0.1.0-alpha.6",
|
|
41
41
|
"@types/node": "24.13.3",
|
|
42
42
|
"typescript": "7.0.2"
|
|
43
43
|
}
|