@maiaos/protocol 0.1.0-canary.1 → 0.1.0-canary.11
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 +25 -135
- package/dist/agent/definition.d.ts +2 -2
- package/dist/agent/worker-operation.d.ts +1 -0
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/agents/contract.d.ts +341 -0
- package/dist/agents/contract.d.ts.map +1 -0
- package/dist/agents/contract.js +18 -0
- package/dist/agents/contract.js.map +1 -0
- package/dist/agents/effect-schema.d.ts +604 -0
- package/dist/agents/effect-schema.d.ts.map +1 -0
- package/dist/agents/effect-schema.js +164 -0
- package/dist/agents/effect-schema.js.map +1 -0
- package/dist/agents/feature.d.ts +113 -0
- package/dist/agents/feature.d.ts.map +1 -0
- package/dist/agents/feature.js +111 -0
- package/dist/agents/feature.js.map +1 -0
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +3 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/connection/access-effect-schema.d.ts +502 -0
- package/dist/connection/access-effect-schema.d.ts.map +1 -0
- package/dist/connection/access-effect-schema.js +196 -0
- package/dist/connection/access-effect-schema.js.map +1 -0
- package/dist/connection/contract.d.ts +402 -1
- package/dist/connection/contract.d.ts.map +1 -1
- package/dist/connection/contract.js +24 -1
- package/dist/connection/contract.js.map +1 -1
- package/dist/connection/effect-schema.d.ts +342 -0
- package/dist/connection/effect-schema.d.ts.map +1 -1
- package/dist/connection/effect-schema.js +3 -0
- package/dist/connection/effect-schema.js.map +1 -1
- package/dist/connection/feature.d.ts +225 -0
- package/dist/connection/feature.d.ts.map +1 -1
- package/dist/connection/feature.js +149 -0
- package/dist/connection/feature.js.map +1 -1
- package/dist/connection/index.d.ts +1 -1
- package/dist/connection/index.d.ts.map +1 -1
- package/dist/connection/index.js +1 -1
- package/dist/connection/index.js.map +1 -1
- package/dist/connection/system-effect-schema.d.ts +261 -1
- package/dist/connection/system-effect-schema.d.ts.map +1 -1
- package/dist/connection/system-effect-schema.js +101 -1
- package/dist/connection/system-effect-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +3 -1
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +78 -10
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +1 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/effect-schema.d.ts +2 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/event/contract.d.ts +35 -0
- package/dist/event/contract.d.ts.map +1 -0
- package/dist/event/contract.js +10 -0
- package/dist/event/contract.js.map +1 -0
- package/dist/event/effect-schema.d.ts +2 -0
- package/dist/event/effect-schema.d.ts.map +1 -0
- package/dist/event/effect-schema.js +2 -0
- package/dist/event/effect-schema.js.map +1 -0
- package/dist/event/envelope-effect-schema.d.ts +35 -0
- package/dist/event/envelope-effect-schema.d.ts.map +1 -0
- package/dist/event/envelope-effect-schema.js +111 -0
- package/dist/event/envelope-effect-schema.js.map +1 -0
- package/dist/event/format.d.ts +8 -0
- package/dist/event/format.d.ts.map +1 -0
- package/dist/event/format.js +8 -0
- package/dist/event/format.js.map +1 -0
- package/dist/event/index.d.ts +3 -0
- package/dist/event/index.d.ts.map +1 -0
- package/dist/event/index.js +3 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/registry.d.ts +15 -0
- package/dist/event/registry.d.ts.map +1 -0
- package/dist/event/registry.js +189 -0
- package/dist/event/registry.js.map +1 -0
- package/dist/execution/worktree/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.js +10 -2
- package/dist/execution/worktree/effect-schema.js.map +1 -1
- package/dist/feature/registry.d.ts +7 -1
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +6 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/invocation-context/contract.d.ts +11 -1
- package/dist/invocation-context/contract.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.d.ts +24 -2
- package/dist/invocation-context/effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.js +19 -1
- package/dist/invocation-context/effect-schema.js.map +1 -1
- package/dist/local-node/contract.d.ts +17 -9
- package/dist/local-node/contract.d.ts.map +1 -1
- package/dist/local-node/contract.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +728 -9
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +33 -0
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +33 -3
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +60 -0
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/local-node/receipt-list.d.ts +1 -1
- package/dist/local-node/receipt-list.d.ts.map +1 -1
- package/dist/local-node/receipt-list.js +12 -0
- package/dist/local-node/receipt-list.js.map +1 -1
- package/dist/machine-lease/contract.d.ts +90 -0
- package/dist/machine-lease/contract.d.ts.map +1 -0
- package/dist/machine-lease/contract.js +8 -0
- package/dist/machine-lease/contract.js.map +1 -0
- package/dist/machine-lease/effect-schema.d.ts +85 -0
- package/dist/machine-lease/effect-schema.d.ts.map +1 -0
- package/dist/machine-lease/effect-schema.js +78 -0
- package/dist/machine-lease/effect-schema.js.map +1 -0
- package/dist/machine-lease/index.d.ts +3 -0
- package/dist/machine-lease/index.d.ts.map +1 -0
- package/dist/machine-lease/index.js +3 -0
- package/dist/machine-lease/index.js.map +1 -0
- package/dist/machine-lease/policy.d.ts +12 -0
- package/dist/machine-lease/policy.d.ts.map +1 -0
- package/dist/machine-lease/policy.js +12 -0
- package/dist/machine-lease/policy.js.map +1 -0
- package/dist/machine-principal/contract.d.ts +14 -0
- package/dist/machine-principal/contract.d.ts.map +1 -0
- package/dist/machine-principal/contract.js +5 -0
- package/dist/machine-principal/contract.js.map +1 -0
- package/dist/machine-principal/effect-schema.d.ts +12 -0
- package/dist/machine-principal/effect-schema.d.ts.map +1 -0
- package/dist/machine-principal/effect-schema.js +25 -0
- package/dist/machine-principal/effect-schema.js.map +1 -0
- package/dist/machine-principal/index.d.ts +2 -0
- package/dist/machine-principal/index.d.ts.map +1 -0
- package/dist/machine-principal/index.js +2 -0
- package/dist/machine-principal/index.js.map +1 -0
- package/dist/machine-principal/policy.d.ts +5 -0
- package/dist/machine-principal/policy.d.ts.map +1 -0
- package/dist/machine-principal/policy.js +5 -0
- package/dist/machine-principal/policy.js.map +1 -0
- package/dist/presentation/contract.d.ts +1 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +1 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +1 -0
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/release/contract.d.ts +2 -0
- package/dist/release/contract.d.ts.map +1 -0
- package/dist/release/contract.js +4 -0
- package/dist/release/contract.js.map +1 -0
- package/dist/release/effect-schema.d.ts +3 -0
- package/dist/release/effect-schema.d.ts.map +1 -0
- package/dist/release/effect-schema.js +4 -0
- package/dist/release/effect-schema.js.map +1 -0
- package/dist/release/index.d.ts +3 -0
- package/dist/release/index.d.ts.map +1 -0
- package/dist/release/index.js +3 -0
- package/dist/release/index.js.map +1 -0
- package/dist/release/version.d.ts +29 -0
- package/dist/release/version.d.ts.map +1 -0
- package/dist/release/version.js +77 -0
- package/dist/release/version.js.map +1 -0
- package/dist/remote-node/bridge-effect-schema.d.ts +72 -2
- package/dist/remote-node/bridge-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/bridge-effect-schema.js +64 -3
- package/dist/remote-node/bridge-effect-schema.js.map +1 -1
- package/dist/remote-node/contract.d.ts +163 -10
- package/dist/remote-node/contract.d.ts.map +1 -1
- package/dist/remote-node/contract.js +22 -3
- package/dist/remote-node/contract.js.map +1 -1
- package/dist/remote-node/index.d.ts +1 -1
- package/dist/remote-node/index.d.ts.map +1 -1
- package/dist/remote-node/index.js +1 -1
- package/dist/remote-node/index.js.map +1 -1
- package/dist/remote-node/request-effect-schema.d.ts +42 -0
- package/dist/remote-node/request-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/request-effect-schema.js +25 -0
- package/dist/remote-node/request-effect-schema.js.map +1 -1
- package/dist/remote-node/result-effect-schema.d.ts +196 -21
- package/dist/remote-node/result-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/result-effect-schema.js +42 -8
- package/dist/remote-node/result-effect-schema.js.map +1 -1
- package/dist/routine/contract.d.ts +470 -0
- package/dist/routine/contract.d.ts.map +1 -0
- package/dist/routine/contract.js +27 -0
- package/dist/routine/contract.js.map +1 -0
- package/dist/routine/effect-schema.d.ts +923 -0
- package/dist/routine/effect-schema.d.ts.map +1 -0
- package/dist/routine/effect-schema.js +268 -0
- package/dist/routine/effect-schema.js.map +1 -0
- package/dist/routine/feature.d.ts +263 -0
- package/dist/routine/feature.d.ts.map +1 -0
- package/dist/routine/feature.js +249 -0
- package/dist/routine/feature.js.map +1 -0
- package/dist/routine/index.d.ts +3 -0
- package/dist/routine/index.d.ts.map +1 -0
- package/dist/routine/index.js +3 -0
- package/dist/routine/index.js.map +1 -0
- package/dist/routine/policy.d.ts +15 -0
- package/dist/routine/policy.d.ts.map +1 -0
- package/dist/routine/policy.js +31 -0
- package/dist/routine/policy.js.map +1 -0
- package/dist/session/agent-permission-contract.d.ts +5 -5
- package/dist/session/agent-permission-effect-schema.d.ts +9 -9
- package/dist/session/contract.d.ts +63 -1
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/contract.js +3 -1
- package/dist/session/contract.js.map +1 -1
- package/dist/session/effect-schema.d.ts +144 -5
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +50 -12
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +83 -0
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +77 -0
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +2 -2
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +2 -2
- package/dist/session/index.js.map +1 -1
- package/dist/session/policy.d.ts +31 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +31 -0
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +2 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session-guard/contract.d.ts +7 -2
- package/dist/session-guard/contract.d.ts.map +1 -1
- package/dist/session-guard/contract.js +18 -2
- package/dist/session-guard/contract.js.map +1 -1
- package/dist/team-workspace/contract.d.ts +77 -0
- package/dist/team-workspace/contract.d.ts.map +1 -0
- package/dist/team-workspace/contract.js +8 -0
- package/dist/team-workspace/contract.js.map +1 -0
- package/dist/team-workspace/effect-schema.d.ts +142 -0
- package/dist/team-workspace/effect-schema.d.ts.map +1 -0
- package/dist/team-workspace/effect-schema.js +102 -0
- package/dist/team-workspace/effect-schema.js.map +1 -0
- package/dist/team-workspace/feature.d.ts +54 -0
- package/dist/team-workspace/feature.d.ts.map +1 -0
- package/dist/team-workspace/feature.js +59 -0
- package/dist/team-workspace/feature.js.map +1 -0
- package/dist/team-workspace/index.d.ts +3 -0
- package/dist/team-workspace/index.d.ts.map +1 -0
- package/dist/team-workspace/index.js +3 -0
- package/dist/team-workspace/index.js.map +1 -0
- package/dist/team-workspace/policy.d.ts +9 -0
- package/dist/team-workspace/policy.d.ts.map +1 -0
- package/dist/team-workspace/policy.js +19 -0
- package/dist/team-workspace/policy.js.map +1 -0
- package/dist/terminal/contract.d.ts +65 -56
- package/dist/terminal/contract.d.ts.map +1 -1
- package/dist/terminal/effect-schema.d.ts +400 -382
- package/dist/terminal/effect-schema.d.ts.map +1 -1
- package/dist/terminal/effect-schema.js +12 -0
- package/dist/terminal/effect-schema.js.map +1 -1
- package/dist/terminal/index.d.ts +1 -1
- package/dist/terminal/index.d.ts.map +1 -1
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/index.js.map +1 -1
- package/dist/terminal/live-effect-schema.d.ts +630 -621
- package/dist/terminal/live-effect-schema.d.ts.map +1 -1
- package/dist/terminal/live-effect-schema.js +15 -2
- package/dist/terminal/live-effect-schema.js.map +1 -1
- package/dist/terminal/live-policy.d.ts +9 -0
- package/dist/terminal/live-policy.d.ts.map +1 -1
- package/dist/terminal/live-policy.js +9 -0
- package/dist/terminal/live-policy.js.map +1 -1
- package/dist/terminal/live-types.d.ts +7 -1
- package/dist/terminal/live-types.d.ts.map +1 -1
- package/dist/turn/contract.d.ts +166 -1
- package/dist/turn/contract.d.ts.map +1 -1
- package/dist/turn/contract.js +10 -1
- package/dist/turn/contract.js.map +1 -1
- package/dist/turn/effect-schema.d.ts +325 -0
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +50 -2
- package/dist/turn/effect-schema.js.map +1 -1
- package/dist/turn/index.d.ts +2 -2
- package/dist/turn/index.d.ts.map +1 -1
- package/dist/turn/index.js +2 -2
- package/dist/turn/index.js.map +1 -1
- package/dist/turn/policy.d.ts +7 -0
- package/dist/turn/policy.d.ts.map +1 -1
- package/dist/turn/policy.js +7 -0
- package/dist/turn/policy.js.map +1 -1
- package/dist/voice/contract.d.ts +4 -4
- package/dist/voice/effect-schema.d.ts +6 -6
- package/dist/voice/effect-schema.d.ts.map +1 -1
- package/dist/voice/effect-schema.js +2 -0
- package/dist/voice/effect-schema.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/@maiaos/protocol)
|
|
1
|
+
# @maiaos/protocol
|
|
4
2
|
|
|
5
3
|
The operation registry and Effect Schema contracts that Maia Node and every
|
|
6
4
|
Maia OS client agree on: operation IDs, request and response envelopes, errors,
|
|
7
|
-
receipts
|
|
8
|
-
|
|
5
|
+
receipts and MCP tool definitions.
|
|
6
|
+
|
|
7
|
+
> **Pre-release.** npm carries only `nightly` and `canary` builds, which are
|
|
8
|
+
> not release-qualified. No stable release exists
|
|
9
|
+
> ([D-132](https://github.com/vllnt/maia/blob/main/docs/decisions.md#d-132)).
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
against it. Use it to validate Maia payloads or to build tooling over the
|
|
14
|
-
registry. To talk to a running Node, use [`@maiaos/sdk`](../sdk/README.md).
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
Node.js 24.22.1.
|
|
15
14
|
|
|
16
15
|
## Install
|
|
17
16
|
|
|
18
17
|
```sh
|
|
19
|
-
pnpm add @maiaos/protocol@
|
|
18
|
+
pnpm add @maiaos/protocol@nightly
|
|
20
19
|
```
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
the source in this repository. npm also points the automatic `latest` tag at a
|
|
24
|
-
canary build; no stable version exists.
|
|
21
|
+
## Usage
|
|
25
22
|
|
|
26
|
-
|
|
23
|
+
Validate a Maia payload with a runtime schema:
|
|
27
24
|
|
|
28
25
|
```ts
|
|
29
26
|
import {
|
|
@@ -39,128 +36,21 @@ if (parsed.success) console.log(MAIA_PROTOCOL_VERSION, parsed.data.limit);
|
|
|
39
36
|
// maia.protocol/v1alpha1 20
|
|
40
37
|
```
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
`turn.wait`, `receipt.get`), strict parameter and result schemas, an
|
|
46
|
-
exposure class for Agent requests (`eligible`, `human-only` or
|
|
47
|
-
`unsupported`) and receipt rules. New operations must be classified to
|
|
48
|
-
compile.
|
|
49
|
-
- **Runtime schemas.** Every schema exposes `parse` and `safeParse`
|
|
50
|
-
(`RuntimeSchema<T>`), and its TypeScript type is inferred from the same
|
|
51
|
-
schema. Effect Schema is the implementation; Effect types do not leak into
|
|
52
|
-
the public API.
|
|
53
|
-
- **Envelopes, errors and receipts.** Envelopes carry the
|
|
54
|
-
`maia.protocol/v1alpha1` identifier. Errors have a stable `code` and a
|
|
55
|
-
`retryable` flag; a `saturated` error may add `saturation`: `admission`
|
|
56
|
-
(the Node's request slots, free within moments) or `account` (an account's
|
|
57
|
-
Session slots or vendor limit). Errors decode strictly like every wire
|
|
58
|
-
schema: a client that reads an error with a key it does not know (a peer
|
|
59
|
-
of another version) rejects the answer as invalid, and a bridge failure
|
|
60
|
-
frame then keeps only the bridge's own code. A mutation's receipt binds
|
|
61
|
-
actor, command ID, method, target and revision, so a retry with the same
|
|
62
|
-
command ID replays the first result.
|
|
63
|
-
- **Node API transport.** Unary operations use `POST /api/v1/operations` on
|
|
64
|
-
`http://127.0.0.1:<port>`; observations use the `/api/v1/observations`
|
|
65
|
-
WebSocket with the `maia.node.observations.v1` subprotocol, which carries
|
|
66
|
-
`observe.events` and `session.attach`. The discovery descriptor admits only
|
|
67
|
-
that loopback origin.
|
|
68
|
-
- **Session item stream (S12b).** `SessionStreamRecord`, `SessionItem` and
|
|
69
|
-
the `session.attach` subscribe and frame schemas
|
|
70
|
-
(`SESSION_STREAM_SCHEMA_VERSION`, `maia.session-stream/v1`) are additions to
|
|
71
|
-
`v1alpha1`. A record carries its Session, turn, owner `sequence` and Node
|
|
72
|
-
`epoch`; `item.delta` is live-only.
|
|
73
|
-
- **SSH stdio bridge.** `maia.node.stdio/v1` carries the same request and
|
|
74
|
-
response envelopes, one JSON object per line, over `ssh` to a remote Node's
|
|
75
|
-
`maia-node bridge`, after a `ready` frame holding that Node's status
|
|
76
|
-
(`bridgeServerFrameSchema`, `bridgeRequestFrameSchema`); the remote Node
|
|
77
|
-
registry is `node.remote.*`.
|
|
78
|
-
- **Emergency holds.** The human-only `hold.place.preview`/`confirm`,
|
|
79
|
-
`hold.release.preview`/`confirm` and `hold.list` operations name 1–64 exact
|
|
80
|
-
Project or account targets (no wildcard). Work refused by a hold fails with
|
|
81
|
-
the error code `held` (`HOLD_ADMISSION_ERROR_CODE`), and `session.stopped`
|
|
82
|
-
may carry the `holdId` that stopped the Session. Both are additions to
|
|
83
|
-
`v1alpha1`: a reader built before them rejects a `session.stopped` event
|
|
84
|
-
that names a hold.
|
|
85
|
-
- **Session roles and guards.** `SESSION_ROLE_OPERATIONS` lists what a
|
|
86
|
-
`worker` and an `orchestrator` Session reach with its own credential
|
|
87
|
-
(`Authorization: Maia-Session`, scheme `NODE_API_SESSION_CREDENTIAL_SCHEME`);
|
|
88
|
-
both roles admit `session.list`, scoped by the Node to the credential's
|
|
89
|
-
Project before pagination, and anything else outside the role fails
|
|
90
|
-
`role_denied`. This adds no request or response fields; older Nodes refuse
|
|
91
|
-
that Session-authenticated read. `project.guard.show` and the human-only
|
|
92
|
-
`project.guard.preview` and `project.guard.confirm` read and replace a
|
|
93
|
-
Project's four fan-out limits, each
|
|
94
|
-
of which trips with its own code in `SESSION_GUARD_ERROR_CODES`.
|
|
95
|
-
- **References and titles.** `reference.resolve` turns an ID, an ID prefix
|
|
96
|
-
(`MIN_REFERENCE_PREFIX_LENGTH` hexadecimal digits), a name or a Session title
|
|
97
|
-
into one exact ID or up to `MAX_REFERENCE_CANDIDATES` candidates, or, without
|
|
98
|
-
a reference, the Project or Workspace whose registered folder contains a
|
|
99
|
-
path. `Session.title` (at most `MAX_SESSION_TITLE_LENGTH` characters, one
|
|
100
|
-
line) is an optional field, `session.create` takes one, and
|
|
101
|
-
`session.rename` with its `session.renamed` event changes it. All are
|
|
102
|
-
additions to `v1alpha1`: a reader built before them rejects a titled Session.
|
|
103
|
-
- **Coordinator tools.** `coordinatorToolDefinitions()` returns the 43 MCP
|
|
104
|
-
tools that `maia mcp` serves (`session_create`, `turn_send`, `turn_wait`,
|
|
105
|
-
...), with input schemas generated from the operation schemas.
|
|
106
|
-
|
|
107
|
-
| Entry point | Contents |
|
|
108
|
-
| ----------------------------------------------- | --------------------------------------------------------------- |
|
|
109
|
-
| `@maiaos/protocol` | Operation registry, envelopes, errors, receipts, domain schemas |
|
|
110
|
-
| `@maiaos/protocol/agent-definition` | Agent definition schema, canonical digest encoding, eligibility |
|
|
111
|
-
| `@maiaos/protocol/node-profile` | Node.js-only profile validation and host paths |
|
|
112
|
-
| `@maiaos/protocol/feature-registry` | Static registry binding features to SDK, CLI and Node handlers |
|
|
113
|
-
| `@maiaos/protocol/voice-orchestrator` | Voice orchestrator prompt and tool contracts |
|
|
114
|
-
| `@maiaos/protocol/voice-pi-relay` | Voice-to-Pi relay preview, relay and reconcile contracts |
|
|
115
|
-
| `@maiaos/protocol/execution-candidate` | Execution, worktree and checkpoint candidate contracts |
|
|
116
|
-
| `@maiaos/protocol/invocation-context-candidate` | Invocation context candidate contracts |
|
|
39
|
+
Every schema exposes `parse` and `safeParse`, and its TypeScript type is
|
|
40
|
+
inferred from it. To call a running Node, use
|
|
41
|
+
[`@maiaos/sdk`](https://github.com/vllnt/maia/blob/main/packages/sdk/README.md).
|
|
117
42
|
|
|
118
43
|
## Status
|
|
119
44
|
|
|
120
|
-
Source
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
```text
|
|
128
|
-
@maiaos/protocol ──► @maiaos/sdk ──► maia CLI, maia mcp, Desktop, Expo client
|
|
129
|
-
│
|
|
130
|
-
└──────────► Maia Node (validates, authorizes, stores, writes receipts)
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
The protocol grants nothing by itself: a schema checks shape, and Maia Node
|
|
134
|
-
enforces authentication, revisions, confirmation and receipts. See
|
|
135
|
-
[`ARCHITECTURE.md`](../../ARCHITECTURE.md).
|
|
136
|
-
|
|
137
|
-
## Development
|
|
138
|
-
|
|
139
|
-
```sh
|
|
140
|
-
pnpm --filter @maiaos/protocol build
|
|
141
|
-
pnpm --filter @maiaos/protocol lint
|
|
142
|
-
pnpm --filter @maiaos/protocol typecheck
|
|
143
|
-
pnpm --filter @maiaos/protocol test
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Source is organized in concept folders (`envelope/`, `session/`,
|
|
147
|
-
`coordinator-tool/`, ...), each with an export-only `index.ts` and colocated
|
|
148
|
-
tests, per the [source organization contract](../../docs/source-organization.md).
|
|
149
|
-
A scope that shares Effect Schema values with other scopes adds one private
|
|
150
|
-
`effect-schema.ts` entry; no `index.ts` exports Effect
|
|
151
|
-
([D-062](../../docs/decisions.md#d-062)).
|
|
152
|
-
|
|
153
|
-
## Documentation
|
|
154
|
-
|
|
155
|
-
- [Normative contracts](../../docs/reference/contracts.md): IDs, versioning,
|
|
156
|
-
operations, events and receipts
|
|
157
|
-
- Module contracts: [coordinator tools](./src/coordinator-tool/README.md),
|
|
158
|
-
[connections](./src/connection/README.md),
|
|
159
|
-
[interactions](./src/interaction/README.md),
|
|
160
|
-
[presentation](./src/presentation/README.md) and
|
|
161
|
-
[harnesses](./src/harness/README.md)
|
|
162
|
-
- [CLI reference](../../docs/reference/cli.md)
|
|
45
|
+
**Source candidate.** This package is the single source of truth for Maia's
|
|
46
|
+
wire contracts: the Node validates every request against it, and the SDK, CLI
|
|
47
|
+
and MCP server are generated from it or checked against it. The contracts
|
|
48
|
+
carry the `maia.protocol/v1alpha1` identifier, and additions to it are listed
|
|
49
|
+
in the [compatibility
|
|
50
|
+
policy](https://github.com/vllnt/maia/blob/main/docs/reference/contracts.md#version-and-compatibility-policy).
|
|
163
51
|
|
|
164
|
-
##
|
|
52
|
+
## Links
|
|
165
53
|
|
|
166
|
-
|
|
54
|
+
- [Normative contracts](https://github.com/vllnt/maia/blob/main/docs/reference/contracts.md)
|
|
55
|
+
- [Security policy](https://github.com/vllnt/maia/blob/main/SECURITY.md)
|
|
56
|
+
- [Repository](https://github.com/vllnt/maia)
|
|
@@ -21,7 +21,7 @@ export declare const agentDefinitionSchema: import("../runtime-schema/runtime-sc
|
|
|
21
21
|
readonly version: string;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
readonly requestedOperationIds: readonly ("approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.interrupt" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
|
|
24
|
+
readonly requestedOperationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "session.wait" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
|
|
25
25
|
readonly schemaVersion: "maia.agent-definition/v1";
|
|
26
26
|
readonly skillRefs: readonly {
|
|
27
27
|
readonly contentDigest: string;
|
|
@@ -44,7 +44,7 @@ export declare const agentDefinitionSnapshotSchema: import("../runtime-schema/ru
|
|
|
44
44
|
readonly version: string;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
readonly requestedOperationIds: readonly ("approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.interrupt" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
|
|
47
|
+
readonly requestedOperationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "session.wait" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
|
|
48
48
|
readonly schemaVersion: "maia.agent-definition/v1";
|
|
49
49
|
readonly skillRefs: readonly {
|
|
50
50
|
readonly contentDigest: string;
|
|
@@ -25,6 +25,7 @@ export declare const agentWorkerOperationResponseSchema: import("../runtime-sche
|
|
|
25
25
|
} | undefined;
|
|
26
26
|
readonly executor?: {
|
|
27
27
|
readonly connectionId: string;
|
|
28
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
28
29
|
readonly kind: "claude-code" | "codex-cli";
|
|
29
30
|
readonly model?: string | undefined;
|
|
30
31
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-operation.d.ts","sourceRoot":"","sources":["../../src/agent/worker-operation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAKrE,eAAO,MAAM,iCAAiC;;;;EAM7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAC1D,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"worker-operation.d.ts","sourceRoot":"","sources":["../../src/agent/worker-operation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAKrE,eAAO,MAAM,iCAAiC;;;;EAM7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAC1D,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW9C,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,kBAAkB,CAC3D,OAAO,kCAAkC,CAC1C,CAAC"}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import type { InferRuntimeSchema } from "../runtime-schema/index.js";
|
|
2
|
+
export declare const agentSpecSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
3
|
+
readonly accountableActorId: string;
|
|
4
|
+
readonly connectionId?: string | undefined;
|
|
5
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
6
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
7
|
+
readonly homeSessionId?: string | undefined;
|
|
8
|
+
readonly instruction: string;
|
|
9
|
+
readonly managerAgentId?: string | undefined;
|
|
10
|
+
readonly model?: string | undefined;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly placement: "local";
|
|
13
|
+
}>;
|
|
14
|
+
export type AgentSpec = InferRuntimeSchema<typeof agentSpecSchema>;
|
|
15
|
+
export declare const agentRecordSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
16
|
+
readonly contentDigest: string;
|
|
17
|
+
readonly createdAt: string;
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly projectId: string;
|
|
20
|
+
readonly revision: string;
|
|
21
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
22
|
+
readonly spec: {
|
|
23
|
+
readonly accountableActorId: string;
|
|
24
|
+
readonly connectionId?: string | undefined;
|
|
25
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
26
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
27
|
+
readonly homeSessionId?: string | undefined;
|
|
28
|
+
readonly instruction: string;
|
|
29
|
+
readonly managerAgentId?: string | undefined;
|
|
30
|
+
readonly model?: string | undefined;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly placement: "local";
|
|
33
|
+
};
|
|
34
|
+
readonly state: "active" | "disabled";
|
|
35
|
+
readonly updatedAt: string;
|
|
36
|
+
}>;
|
|
37
|
+
export type AgentRecord = InferRuntimeSchema<typeof agentRecordSchema>;
|
|
38
|
+
export declare const agentChangeSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
39
|
+
readonly kind: "create";
|
|
40
|
+
readonly projectId: string;
|
|
41
|
+
readonly spec: {
|
|
42
|
+
readonly accountableActorId: string;
|
|
43
|
+
readonly connectionId?: string | undefined;
|
|
44
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
45
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
46
|
+
readonly homeSessionId?: string | undefined;
|
|
47
|
+
readonly instruction: string;
|
|
48
|
+
readonly managerAgentId?: string | undefined;
|
|
49
|
+
readonly model?: string | undefined;
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly placement: "local";
|
|
52
|
+
};
|
|
53
|
+
} | {
|
|
54
|
+
readonly agentId: string;
|
|
55
|
+
readonly expectedRevision: string;
|
|
56
|
+
readonly kind: "revise";
|
|
57
|
+
readonly spec: {
|
|
58
|
+
readonly accountableActorId: string;
|
|
59
|
+
readonly connectionId?: string | undefined;
|
|
60
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
61
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
62
|
+
readonly homeSessionId?: string | undefined;
|
|
63
|
+
readonly instruction: string;
|
|
64
|
+
readonly managerAgentId?: string | undefined;
|
|
65
|
+
readonly model?: string | undefined;
|
|
66
|
+
readonly name: string;
|
|
67
|
+
readonly placement: "local";
|
|
68
|
+
};
|
|
69
|
+
} | {
|
|
70
|
+
readonly agentId: string;
|
|
71
|
+
readonly expectedRevision: string;
|
|
72
|
+
readonly kind: "disable";
|
|
73
|
+
}>;
|
|
74
|
+
export type AgentChange = InferRuntimeSchema<typeof agentChangeSchema>;
|
|
75
|
+
export declare const agentsListParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
76
|
+
readonly afterCursor?: string | undefined;
|
|
77
|
+
readonly limit: number;
|
|
78
|
+
readonly projectId: string;
|
|
79
|
+
readonly state?: "active" | "disabled" | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
export type AgentsListParameters = InferRuntimeSchema<typeof agentsListParametersSchema>;
|
|
82
|
+
export declare const agentsListResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
83
|
+
readonly items: readonly {
|
|
84
|
+
readonly contentDigest: string;
|
|
85
|
+
readonly createdAt: string;
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly projectId: string;
|
|
88
|
+
readonly revision: string;
|
|
89
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
90
|
+
readonly spec: {
|
|
91
|
+
readonly accountableActorId: string;
|
|
92
|
+
readonly connectionId?: string | undefined;
|
|
93
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
94
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
95
|
+
readonly homeSessionId?: string | undefined;
|
|
96
|
+
readonly instruction: string;
|
|
97
|
+
readonly managerAgentId?: string | undefined;
|
|
98
|
+
readonly model?: string | undefined;
|
|
99
|
+
readonly name: string;
|
|
100
|
+
readonly placement: "local";
|
|
101
|
+
};
|
|
102
|
+
readonly state: "active" | "disabled";
|
|
103
|
+
readonly updatedAt: string;
|
|
104
|
+
}[];
|
|
105
|
+
readonly method: "agents.list";
|
|
106
|
+
readonly nextCursor?: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
export type AgentsListResult = InferRuntimeSchema<typeof agentsListResultSchema>;
|
|
109
|
+
export declare const agentsShowParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
110
|
+
readonly agentId: string;
|
|
111
|
+
readonly revision?: string | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
export type AgentsShowParameters = InferRuntimeSchema<typeof agentsShowParametersSchema>;
|
|
114
|
+
export declare const agentsShowResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
115
|
+
readonly agent: {
|
|
116
|
+
readonly contentDigest: string;
|
|
117
|
+
readonly createdAt: string;
|
|
118
|
+
readonly id: string;
|
|
119
|
+
readonly projectId: string;
|
|
120
|
+
readonly revision: string;
|
|
121
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
122
|
+
readonly spec: {
|
|
123
|
+
readonly accountableActorId: string;
|
|
124
|
+
readonly connectionId?: string | undefined;
|
|
125
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
126
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
127
|
+
readonly homeSessionId?: string | undefined;
|
|
128
|
+
readonly instruction: string;
|
|
129
|
+
readonly managerAgentId?: string | undefined;
|
|
130
|
+
readonly model?: string | undefined;
|
|
131
|
+
readonly name: string;
|
|
132
|
+
readonly placement: "local";
|
|
133
|
+
};
|
|
134
|
+
readonly state: "active" | "disabled";
|
|
135
|
+
readonly updatedAt: string;
|
|
136
|
+
};
|
|
137
|
+
readonly method: "agents.show";
|
|
138
|
+
}>;
|
|
139
|
+
export type AgentsShowResult = InferRuntimeSchema<typeof agentsShowResultSchema>;
|
|
140
|
+
export declare const agentsChangePreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
141
|
+
readonly change: {
|
|
142
|
+
readonly kind: "create";
|
|
143
|
+
readonly projectId: string;
|
|
144
|
+
readonly spec: {
|
|
145
|
+
readonly accountableActorId: string;
|
|
146
|
+
readonly connectionId?: string | undefined;
|
|
147
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
148
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
149
|
+
readonly homeSessionId?: string | undefined;
|
|
150
|
+
readonly instruction: string;
|
|
151
|
+
readonly managerAgentId?: string | undefined;
|
|
152
|
+
readonly model?: string | undefined;
|
|
153
|
+
readonly name: string;
|
|
154
|
+
readonly placement: "local";
|
|
155
|
+
};
|
|
156
|
+
} | {
|
|
157
|
+
readonly agentId: string;
|
|
158
|
+
readonly expectedRevision: string;
|
|
159
|
+
readonly kind: "revise";
|
|
160
|
+
readonly spec: {
|
|
161
|
+
readonly accountableActorId: string;
|
|
162
|
+
readonly connectionId?: string | undefined;
|
|
163
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
164
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
165
|
+
readonly homeSessionId?: string | undefined;
|
|
166
|
+
readonly instruction: string;
|
|
167
|
+
readonly managerAgentId?: string | undefined;
|
|
168
|
+
readonly model?: string | undefined;
|
|
169
|
+
readonly name: string;
|
|
170
|
+
readonly placement: "local";
|
|
171
|
+
};
|
|
172
|
+
} | {
|
|
173
|
+
readonly agentId: string;
|
|
174
|
+
readonly expectedRevision: string;
|
|
175
|
+
readonly kind: "disable";
|
|
176
|
+
};
|
|
177
|
+
readonly commandId: string;
|
|
178
|
+
}>;
|
|
179
|
+
export type AgentsChangePreviewParameters = InferRuntimeSchema<typeof agentsChangePreviewParametersSchema>;
|
|
180
|
+
export declare const agentsChangePreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
181
|
+
readonly change: {
|
|
182
|
+
readonly kind: "create";
|
|
183
|
+
readonly projectId: string;
|
|
184
|
+
readonly spec: {
|
|
185
|
+
readonly accountableActorId: string;
|
|
186
|
+
readonly connectionId?: string | undefined;
|
|
187
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
188
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
189
|
+
readonly homeSessionId?: string | undefined;
|
|
190
|
+
readonly instruction: string;
|
|
191
|
+
readonly managerAgentId?: string | undefined;
|
|
192
|
+
readonly model?: string | undefined;
|
|
193
|
+
readonly name: string;
|
|
194
|
+
readonly placement: "local";
|
|
195
|
+
};
|
|
196
|
+
} | {
|
|
197
|
+
readonly agentId: string;
|
|
198
|
+
readonly expectedRevision: string;
|
|
199
|
+
readonly kind: "revise";
|
|
200
|
+
readonly spec: {
|
|
201
|
+
readonly accountableActorId: string;
|
|
202
|
+
readonly connectionId?: string | undefined;
|
|
203
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
204
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
205
|
+
readonly homeSessionId?: string | undefined;
|
|
206
|
+
readonly instruction: string;
|
|
207
|
+
readonly managerAgentId?: string | undefined;
|
|
208
|
+
readonly model?: string | undefined;
|
|
209
|
+
readonly name: string;
|
|
210
|
+
readonly placement: "local";
|
|
211
|
+
};
|
|
212
|
+
} | {
|
|
213
|
+
readonly agentId: string;
|
|
214
|
+
readonly expectedRevision: string;
|
|
215
|
+
readonly kind: "disable";
|
|
216
|
+
};
|
|
217
|
+
readonly commandId: string;
|
|
218
|
+
readonly inputDigest: string;
|
|
219
|
+
readonly proof: string;
|
|
220
|
+
readonly actorId: string;
|
|
221
|
+
readonly agentId: string;
|
|
222
|
+
readonly current?: {
|
|
223
|
+
readonly contentDigest: string;
|
|
224
|
+
readonly createdAt: string;
|
|
225
|
+
readonly id: string;
|
|
226
|
+
readonly projectId: string;
|
|
227
|
+
readonly revision: string;
|
|
228
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
229
|
+
readonly spec: {
|
|
230
|
+
readonly accountableActorId: string;
|
|
231
|
+
readonly connectionId?: string | undefined;
|
|
232
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
233
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
234
|
+
readonly homeSessionId?: string | undefined;
|
|
235
|
+
readonly instruction: string;
|
|
236
|
+
readonly managerAgentId?: string | undefined;
|
|
237
|
+
readonly model?: string | undefined;
|
|
238
|
+
readonly name: string;
|
|
239
|
+
readonly placement: "local";
|
|
240
|
+
};
|
|
241
|
+
readonly state: "active" | "disabled";
|
|
242
|
+
readonly updatedAt: string;
|
|
243
|
+
} | undefined;
|
|
244
|
+
readonly expiresAt: string;
|
|
245
|
+
readonly issuedAt: string;
|
|
246
|
+
readonly method: "agents.change.preview";
|
|
247
|
+
}>;
|
|
248
|
+
export type AgentsChangePreviewResult = InferRuntimeSchema<typeof agentsChangePreviewResultSchema>;
|
|
249
|
+
export declare const agentsChangeConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
250
|
+
readonly change: {
|
|
251
|
+
readonly kind: "create";
|
|
252
|
+
readonly projectId: string;
|
|
253
|
+
readonly spec: {
|
|
254
|
+
readonly accountableActorId: string;
|
|
255
|
+
readonly connectionId?: string | undefined;
|
|
256
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
257
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
258
|
+
readonly homeSessionId?: string | undefined;
|
|
259
|
+
readonly instruction: string;
|
|
260
|
+
readonly managerAgentId?: string | undefined;
|
|
261
|
+
readonly model?: string | undefined;
|
|
262
|
+
readonly name: string;
|
|
263
|
+
readonly placement: "local";
|
|
264
|
+
};
|
|
265
|
+
} | {
|
|
266
|
+
readonly agentId: string;
|
|
267
|
+
readonly expectedRevision: string;
|
|
268
|
+
readonly kind: "revise";
|
|
269
|
+
readonly spec: {
|
|
270
|
+
readonly accountableActorId: string;
|
|
271
|
+
readonly connectionId?: string | undefined;
|
|
272
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
273
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
274
|
+
readonly homeSessionId?: string | undefined;
|
|
275
|
+
readonly instruction: string;
|
|
276
|
+
readonly managerAgentId?: string | undefined;
|
|
277
|
+
readonly model?: string | undefined;
|
|
278
|
+
readonly name: string;
|
|
279
|
+
readonly placement: "local";
|
|
280
|
+
};
|
|
281
|
+
} | {
|
|
282
|
+
readonly agentId: string;
|
|
283
|
+
readonly expectedRevision: string;
|
|
284
|
+
readonly kind: "disable";
|
|
285
|
+
};
|
|
286
|
+
readonly commandId: string;
|
|
287
|
+
readonly inputDigest: string;
|
|
288
|
+
readonly proof: string;
|
|
289
|
+
}>;
|
|
290
|
+
export type AgentsChangeConfirmParameters = InferRuntimeSchema<typeof agentsChangeConfirmParametersSchema>;
|
|
291
|
+
export declare const agentsChangeConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
292
|
+
readonly actorId: string;
|
|
293
|
+
readonly agent: {
|
|
294
|
+
readonly contentDigest: string;
|
|
295
|
+
readonly createdAt: string;
|
|
296
|
+
readonly id: string;
|
|
297
|
+
readonly projectId: string;
|
|
298
|
+
readonly revision: string;
|
|
299
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
300
|
+
readonly spec: {
|
|
301
|
+
readonly accountableActorId: string;
|
|
302
|
+
readonly connectionId?: string | undefined;
|
|
303
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
304
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
305
|
+
readonly homeSessionId?: string | undefined;
|
|
306
|
+
readonly instruction: string;
|
|
307
|
+
readonly managerAgentId?: string | undefined;
|
|
308
|
+
readonly model?: string | undefined;
|
|
309
|
+
readonly name: string;
|
|
310
|
+
readonly placement: "local";
|
|
311
|
+
};
|
|
312
|
+
readonly state: "active" | "disabled";
|
|
313
|
+
readonly updatedAt: string;
|
|
314
|
+
};
|
|
315
|
+
readonly commandId: string;
|
|
316
|
+
readonly delivery: "duplicate" | "new";
|
|
317
|
+
readonly inputDigest: string;
|
|
318
|
+
readonly kind: "create" | "disable" | "revise";
|
|
319
|
+
readonly method: "agents.change.confirm";
|
|
320
|
+
readonly receipt: {
|
|
321
|
+
readonly actorId: string;
|
|
322
|
+
readonly aggregateRevision: string;
|
|
323
|
+
readonly commandId: string;
|
|
324
|
+
readonly createdAt: string;
|
|
325
|
+
readonly eventCursor: string;
|
|
326
|
+
readonly method: string;
|
|
327
|
+
readonly receiptId: string;
|
|
328
|
+
readonly schemaVersion: 1;
|
|
329
|
+
readonly state: "succeeded";
|
|
330
|
+
readonly target: {
|
|
331
|
+
readonly id: string;
|
|
332
|
+
readonly type: string;
|
|
333
|
+
};
|
|
334
|
+
readonly updatedAt: string;
|
|
335
|
+
};
|
|
336
|
+
}>;
|
|
337
|
+
export type AgentsChangeConfirmResult = InferRuntimeSchema<typeof agentsChangeConfirmResultSchema>;
|
|
338
|
+
export declare const AGENT_AGGREGATE_TYPE: "agent";
|
|
339
|
+
export declare const AGENT_SCHEMA_VERSION: "maia.agent/v1";
|
|
340
|
+
export declare const MAX_AGENT_PAGE_SIZE: number;
|
|
341
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/agents/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAmBrE,eAAO,MAAM,eAAe;;;;;;;;;;;EAAiD,CAAC;AAC9E,MAAM,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,eAAe,CAAC,CAAC;AACnE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEvE,eAAO,MAAM,0BAA0B;;;;;EAEtC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CACnD,OAAO,0BAA0B,CAClC,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAC/C,OAAO,sBAAsB,CAC9B,CAAC;AACF,eAAO,MAAM,0BAA0B;;;EAEtC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CACnD,OAAO,0BAA0B,CAClC,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAC/C,OAAO,sBAAsB,CAC9B,CAAC;AACF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/C,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAC5D,OAAO,mCAAmC,CAC3C,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CACxD,OAAO,+BAA+B,CACvC,CAAC;AACF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/C,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAC5D,OAAO,mCAAmC,CAC3C,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CACxD,OAAO,+BAA+B,CACvC,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,OAAuB,CAAC;AAC3D,eAAO,MAAM,oBAAoB,EAAE,eAA+B,CAAC;AACnE,eAAO,MAAM,mBAAmB,EAAE,MAAwB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { makeEffectRuntimeSchema } from "../runtime-schema/effect-schema.js";
|
|
2
|
+
import { AGENT_AGGREGATE_TYPE as aggregateType, AGENT_SCHEMA_VERSION as schemaVersion, agentChangeEffectSchema, agentRecordEffectSchema, agentsChangeConfirmParametersEffectSchema, agentsChangeConfirmResultEffectSchema, agentsChangePreviewParametersEffectSchema, agentsChangePreviewResultEffectSchema, agentsListParametersEffectSchema, agentsListResultEffectSchema, agentSpecEffectSchema, agentsShowParametersEffectSchema, agentsShowResultEffectSchema, MAX_AGENT_PAGE_SIZE as maximumPageSize, } from "./effect-schema.js";
|
|
3
|
+
export const agentSpecSchema = makeEffectRuntimeSchema(agentSpecEffectSchema);
|
|
4
|
+
export const agentRecordSchema = makeEffectRuntimeSchema(agentRecordEffectSchema);
|
|
5
|
+
export const agentChangeSchema = makeEffectRuntimeSchema(agentChangeEffectSchema);
|
|
6
|
+
export const agentsListParametersSchema = makeEffectRuntimeSchema(agentsListParametersEffectSchema);
|
|
7
|
+
export const agentsListResultSchema = makeEffectRuntimeSchema(agentsListResultEffectSchema);
|
|
8
|
+
export const agentsShowParametersSchema = makeEffectRuntimeSchema(agentsShowParametersEffectSchema);
|
|
9
|
+
export const agentsShowResultSchema = makeEffectRuntimeSchema(agentsShowResultEffectSchema);
|
|
10
|
+
export const agentsChangePreviewParametersSchema = makeEffectRuntimeSchema(agentsChangePreviewParametersEffectSchema);
|
|
11
|
+
export const agentsChangePreviewResultSchema = makeEffectRuntimeSchema(agentsChangePreviewResultEffectSchema);
|
|
12
|
+
export const agentsChangeConfirmParametersSchema = makeEffectRuntimeSchema(agentsChangeConfirmParametersEffectSchema);
|
|
13
|
+
export const agentsChangeConfirmResultSchema = makeEffectRuntimeSchema(agentsChangeConfirmResultEffectSchema);
|
|
14
|
+
// Keep public declarations independent of the private Effect schema module.
|
|
15
|
+
export const AGENT_AGGREGATE_TYPE = aggregateType;
|
|
16
|
+
export const AGENT_SCHEMA_VERSION = schemaVersion;
|
|
17
|
+
export const MAX_AGENT_PAGE_SIZE = maximumPageSize;
|
|
18
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/agents/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,OAAO,EACL,oBAAoB,IAAI,aAAa,EACrC,oBAAoB,IAAI,aAAa,EACrC,uBAAuB,EACvB,uBAAuB,EACvB,yCAAyC,EACzC,qCAAqC,EACrC,yCAAyC,EACzC,qCAAqC,EACrC,gCAAgC,EAChC,4BAA4B,EAC5B,qBAAqB,EACrB,gCAAgC,EAChC,4BAA4B,EAC5B,mBAAmB,IAAI,eAAe,GACvC,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC,qBAAqB,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CACtD,uBAAuB,CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CACtD,uBAAuB,CACxB,CAAC;AAGF,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAC/D,gCAAgC,CACjC,CAAC;AAIF,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAC3D,4BAA4B,CAC7B,CAAC;AAIF,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAC/D,gCAAgC,CACjC,CAAC;AAIF,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAC3D,4BAA4B,CAC7B,CAAC;AAIF,MAAM,CAAC,MAAM,mCAAmC,GAAG,uBAAuB,CACxE,yCAAyC,CAC1C,CAAC;AAIF,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CACpE,qCAAqC,CACtC,CAAC;AAIF,MAAM,CAAC,MAAM,mCAAmC,GAAG,uBAAuB,CACxE,yCAAyC,CAC1C,CAAC;AAIF,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CACpE,qCAAqC,CACtC,CAAC;AAKF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAAY,aAAa,CAAC;AAC3D,MAAM,CAAC,MAAM,oBAAoB,GAAoB,aAAa,CAAC;AACnE,MAAM,CAAC,MAAM,mBAAmB,GAAW,eAAe,CAAC"}
|