@maiaos/protocol 0.1.0-canary.55 → 0.1.0-canary.57
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 +5 -4
- package/dist/agent/definition.d.ts +2 -2
- package/dist/agent/worker-operation.d.ts +12 -0
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/approval/contract.d.ts +11 -0
- package/dist/approval/contract.d.ts.map +1 -1
- package/dist/approval/contract.js +2 -1
- package/dist/approval/contract.js.map +1 -1
- package/dist/approval/effect-schema.d.ts +1 -1
- package/dist/approval/effect-schema.d.ts.map +1 -1
- package/dist/approval/effect-schema.js +1 -1
- package/dist/approval/effect-schema.js.map +1 -1
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.d.ts.map +1 -1
- package/dist/approval/index.js +1 -1
- package/dist/approval/index.js.map +1 -1
- package/dist/approval/request-effect-schema.d.ts +21 -0
- package/dist/approval/request-effect-schema.d.ts.map +1 -1
- package/dist/approval/request-effect-schema.js +17 -2
- package/dist/approval/request-effect-schema.js.map +1 -1
- package/dist/configuration/configuration.d.ts +2 -0
- package/dist/configuration/configuration.d.ts.map +1 -1
- package/dist/configuration/configuration.js +11 -3
- package/dist/configuration/configuration.js.map +1 -1
- package/dist/configuration/index.d.ts +1 -1
- package/dist/configuration/index.d.ts.map +1 -1
- package/dist/configuration/index.js +1 -1
- package/dist/configuration/index.js.map +1 -1
- package/dist/coordinator-tool/index.d.ts +1 -1
- package/dist/coordinator-tool/index.d.ts.map +1 -1
- package/dist/coordinator-tool/index.js +1 -1
- package/dist/coordinator-tool/index.js.map +1 -1
- package/dist/coordinator-tool/input-schema.d.ts +0 -7
- package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
- package/dist/coordinator-tool/input-schema.js +0 -38
- package/dist/coordinator-tool/input-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +5 -0
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +9 -1
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +40 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/contract.js +3 -1
- package/dist/discovery/contract.js.map +1 -1
- package/dist/discovery/effect-schema.d.ts +105 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/discovery/effect-schema.js +52 -1
- package/dist/discovery/effect-schema.js.map +1 -1
- package/dist/discovery/feature.d.ts +1 -1
- package/dist/discovery/feature.d.ts.map +1 -1
- package/dist/discovery/feature.js +1 -1
- package/dist/discovery/feature.js.map +1 -1
- package/dist/discovery/index.d.ts +1 -1
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/index.js +1 -1
- package/dist/discovery/index.js.map +1 -1
- package/dist/event/effect-schema.d.ts +1 -1
- package/dist/event/effect-schema.d.ts.map +1 -1
- package/dist/event/effect-schema.js +1 -1
- package/dist/event/effect-schema.js.map +1 -1
- package/dist/event/index.d.ts +1 -1
- package/dist/event/index.d.ts.map +1 -1
- package/dist/event/index.js +1 -1
- package/dist/event/index.js.map +1 -1
- package/dist/event/lifecycle/effect-schema.d.ts +20 -0
- package/dist/event/lifecycle/effect-schema.d.ts.map +1 -0
- package/dist/event/lifecycle/effect-schema.js +23 -0
- package/dist/event/lifecycle/effect-schema.js.map +1 -0
- package/dist/event/lifecycle/index.d.ts +2 -0
- package/dist/event/lifecycle/index.d.ts.map +1 -0
- package/dist/event/lifecycle/index.js +2 -0
- package/dist/event/lifecycle/index.js.map +1 -0
- package/dist/event/lifecycle/schema.d.ts +14 -0
- package/dist/event/lifecycle/schema.d.ts.map +1 -0
- package/dist/event/lifecycle/schema.js +6 -0
- package/dist/event/lifecycle/schema.js.map +1 -0
- package/dist/event/registry.d.ts.map +1 -1
- package/dist/event/registry.js +45 -2
- package/dist/event/registry.js.map +1 -1
- package/dist/event/session-activity-effect-schema.d.ts +22 -0
- package/dist/event/session-activity-effect-schema.d.ts.map +1 -1
- package/dist/event/session-activity-effect-schema.js +35 -0
- package/dist/event/session-activity-effect-schema.js.map +1 -1
- package/dist/event/session-activity.d.ts +14 -0
- package/dist/event/session-activity.d.ts.map +1 -1
- package/dist/event/session-activity.js +9 -1
- package/dist/event/session-activity.js.map +1 -1
- package/dist/feature/registry.d.ts +3 -1
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +2 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/local-node/contract.d.ts +5 -4
- 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 +189 -7
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +3 -0
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +7 -3
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +8 -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 +1 -0
- package/dist/local-node/receipt-list.js.map +1 -1
- package/dist/presentation/contract.d.ts +17 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +15 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +15 -0
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/release/version.d.ts +2 -2
- package/dist/release/version.d.ts.map +1 -1
- package/dist/release/version.js +2 -2
- package/dist/release/version.js.map +1 -1
- package/dist/remote-node/bridge-effect-schema.js +2 -2
- package/dist/runtime-schema/effect-json-schema.d.ts +9 -0
- package/dist/runtime-schema/effect-json-schema.d.ts.map +1 -0
- package/dist/runtime-schema/effect-json-schema.js +41 -0
- package/dist/runtime-schema/effect-json-schema.js.map +1 -0
- package/dist/runtime-schema/effect-schema.d.ts +1 -0
- package/dist/runtime-schema/effect-schema.d.ts.map +1 -1
- package/dist/runtime-schema/effect-schema.js +1 -0
- package/dist/runtime-schema/effect-schema.js.map +1 -1
- 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 +117 -0
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/effect-schema.d.ts +482 -0
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +48 -10
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/index.js.map +1 -1
- package/dist/session/policy.d.ts +14 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +14 -0
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +24 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.d.ts +11 -0
- package/dist/session/worktree-effect-schema.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.js +17 -1
- package/dist/session/worktree-effect-schema.js.map +1 -1
- package/dist/webhooks/contract.d.ts +342 -0
- package/dist/webhooks/contract.d.ts.map +1 -0
- package/dist/webhooks/contract.js +25 -0
- package/dist/webhooks/contract.js.map +1 -0
- package/dist/webhooks/effect-schema.d.ts +536 -0
- package/dist/webhooks/effect-schema.d.ts.map +1 -0
- package/dist/webhooks/effect-schema.js +177 -0
- package/dist/webhooks/effect-schema.js.map +1 -0
- package/dist/webhooks/feature.d.ts +105 -0
- package/dist/webhooks/feature.d.ts.map +1 -0
- package/dist/webhooks/feature.js +103 -0
- package/dist/webhooks/feature.js.map +1 -0
- package/dist/webhooks/hook-effect-schema.d.ts +38 -0
- package/dist/webhooks/hook-effect-schema.d.ts.map +1 -0
- package/dist/webhooks/hook-effect-schema.js +64 -0
- package/dist/webhooks/hook-effect-schema.js.map +1 -0
- package/dist/webhooks/index.d.ts +3 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +3 -0
- package/dist/webhooks/index.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,9 +4,10 @@ The operation registry and Effect Schema contracts that Maia Node and every
|
|
|
4
4
|
Maia OS client agree on: operation IDs, request and response envelopes, errors,
|
|
5
5
|
receipts and MCP tool definitions.
|
|
6
6
|
|
|
7
|
-
> **Pre-release.**
|
|
8
|
-
>
|
|
9
|
-
>
|
|
7
|
+
> **Pre-release.** Maia publishes `canary` builds to npm only, and `latest` follows the newest
|
|
8
|
+
> one (earlier nightly builds are historical). They are not release-qualified,
|
|
9
|
+
> and Maia has no stable release
|
|
10
|
+
> ([D-202](https://github.com/vllnt/maia/blob/main/docs/decisions.md#d-202)).
|
|
10
11
|
|
|
11
12
|
## Requirements
|
|
12
13
|
|
|
@@ -15,7 +16,7 @@ Node.js 24.22.1.
|
|
|
15
16
|
## Install
|
|
16
17
|
|
|
17
18
|
```sh
|
|
18
|
-
pnpm add @maiaos/protocol@
|
|
19
|
+
pnpm add @maiaos/protocol@canary
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
## Usage
|
|
@@ -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 ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "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" | "events.read" | "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")[];
|
|
24
|
+
readonly requestedOperationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "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" | "events.read" | "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" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "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 ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "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" | "events.read" | "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")[];
|
|
47
|
+
readonly requestedOperationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "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" | "events.read" | "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" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "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;
|
|
@@ -41,7 +41,19 @@ export declare const agentWorkerOperationResponseSchema: import("../runtime-sche
|
|
|
41
41
|
readonly latestTurnId?: string | undefined;
|
|
42
42
|
readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
|
|
43
43
|
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
|
|
44
|
+
readonly prompt?: {
|
|
45
|
+
readonly approvalId: string;
|
|
46
|
+
readonly expiresAt: string;
|
|
47
|
+
readonly kind: "command" | "file_change" | "question" | "tool";
|
|
48
|
+
readonly options?: readonly {
|
|
49
|
+
readonly label: string;
|
|
50
|
+
readonly optionId: string;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
readonly summary?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
44
54
|
readonly schemaVersion: 4;
|
|
55
|
+
readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
|
|
56
|
+
readonly status?: "approval" | "done" | "ended" | "error" | "idle" | "question" | "starting" | "unknown" | "working" | undefined;
|
|
45
57
|
readonly title?: string | undefined;
|
|
46
58
|
readonly worktree?: {
|
|
47
59
|
readonly baseRef: string;
|
|
@@ -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"}
|
|
@@ -34,6 +34,17 @@ export declare const approvalSchema: import("../runtime-schema/runtime-schema.js
|
|
|
34
34
|
readonly workspaceId: string;
|
|
35
35
|
}>;
|
|
36
36
|
export type Approval = InferRuntimeSchema<typeof approvalSchema>;
|
|
37
|
+
export declare const approvalPromptSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
38
|
+
readonly approvalId: string;
|
|
39
|
+
readonly expiresAt: string;
|
|
40
|
+
readonly kind: "command" | "file_change" | "question" | "tool";
|
|
41
|
+
readonly options?: readonly {
|
|
42
|
+
readonly label: string;
|
|
43
|
+
readonly optionId: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
readonly summary?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export type ApprovalPrompt = InferRuntimeSchema<typeof approvalPromptSchema>;
|
|
37
48
|
export declare const approvalListParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
38
49
|
readonly limit: number;
|
|
39
50
|
readonly pendingOnly?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/approval/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/approval/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAsBrE,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB,YAC/B,iBAAiB,EACjB,kBAAkB;AAClB,wEAAwE;AACxE,wBAAwB,EACxB,0BAA0B,CAClB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgD,CAAC;AAC5E,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;;;;;;EAEhC,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E,eAAO,MAAM,4BAA4B;;;;EAExC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CACrD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B;;EAExC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CACrD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;EAE3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CACxD,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CACjD,OAAO,wBAAwB,CAChC,CAAC;AACF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CACjD,OAAO,wBAAwB,CAChC,CAAC;AACF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,OAAO,2BAA2B,CACnC,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,kBAAkC,CAAC;AACzE,eAAO,MAAM,uBAAuB,EAAE,UAA0B,CAAC;AACjE,eAAO,MAAM,yBAAyB,EAAE,MAAwB,CAAC;AACjE,eAAO,MAAM,sBAAsB,EAAE,MAAwB,CAAC;AAC9D,eAAO,MAAM,0BAA0B,EAAE,MAA4B,CAAC;AACtE,eAAO,MAAM,yBAAyB,EAAE,MAA2B,CAAC;AACpE,eAAO,MAAM,yBAAyB,EAAE,MAA2B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeEffectRuntimeSchema } from "../runtime-schema/effect-schema.js";
|
|
2
|
-
import { APPROVAL_SCHEMA_VERSION as schemaVersion, APPROVAL_TTL_MILLISECONDS as ttlMilliseconds, approvalEffectSchema, approvalListParametersEffectSchema, approvalRespondParametersEffectSchema, approvalShowParametersEffectSchema, MAX_APPROVAL_ANSWER_BYTES as maximumAnswerBytes, MAX_APPROVAL_PAGE_SIZE as maximumPageSize, MAX_APPROVAL_REASON_BYTES as maximumReasonBytes, MAX_APPROVAL_SUMMARY_BYTES as maximumSummaryBytes, } from "./request-effect-schema.js";
|
|
2
|
+
import { APPROVAL_SCHEMA_VERSION as schemaVersion, APPROVAL_TTL_MILLISECONDS as ttlMilliseconds, approvalEffectSchema, approvalListParametersEffectSchema, approvalPromptEffectSchema, approvalRespondParametersEffectSchema, approvalShowParametersEffectSchema, MAX_APPROVAL_ANSWER_BYTES as maximumAnswerBytes, MAX_APPROVAL_PAGE_SIZE as maximumPageSize, MAX_APPROVAL_REASON_BYTES as maximumReasonBytes, MAX_APPROVAL_SUMMARY_BYTES as maximumSummaryBytes, } from "./request-effect-schema.js";
|
|
3
3
|
import { APPROVAL_AGGREGATE_TYPE as aggregateType, approvalListResultEffectSchema, approvalRespondResultEffectSchema, approvalShowResultEffectSchema, } from "./result-effect-schema.js";
|
|
4
4
|
/** Typed failures every approval client can branch on. */
|
|
5
5
|
export const APPROVAL_ERROR_CODES = [
|
|
@@ -10,6 +10,7 @@ export const APPROVAL_ERROR_CODES = [
|
|
|
10
10
|
"approval_request_changed",
|
|
11
11
|
];
|
|
12
12
|
export const approvalSchema = makeEffectRuntimeSchema(approvalEffectSchema);
|
|
13
|
+
export const approvalPromptSchema = makeEffectRuntimeSchema(approvalPromptEffectSchema);
|
|
13
14
|
export const approvalListParametersSchema = makeEffectRuntimeSchema(approvalListParametersEffectSchema);
|
|
14
15
|
export const approvalShowParametersSchema = makeEffectRuntimeSchema(approvalShowParametersEffectSchema);
|
|
15
16
|
export const approvalRespondParametersSchema = makeEffectRuntimeSchema(approvalRespondParametersEffectSchema);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/approval/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,+BAA+B,GAAG,uBAAuB,CACpE,qCAAqC,CACtC,CAAC;AAKF,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAC7D,8BAA8B,CAC/B,CAAC;AAIF,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAC7D,8BAA8B,CAC/B,CAAC;AAIF,MAAM,CAAC,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,iCAAiC,CAClC,CAAC;AAKF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,uBAAuB,GAAuB,aAAa,CAAC;AACzE,MAAM,CAAC,MAAM,uBAAuB,GAAe,aAAa,CAAC;AACjE,MAAM,CAAC,MAAM,yBAAyB,GAAW,eAAe,CAAC;AACjE,MAAM,CAAC,MAAM,sBAAsB,GAAW,eAAe,CAAC;AAC9D,MAAM,CAAC,MAAM,0BAA0B,GAAW,mBAAmB,CAAC;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAW,kBAAkB,CAAC;AACpE,MAAM,CAAC,MAAM,yBAAyB,GAAW,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { approvalRequestEffectSchema } from "./request-effect-schema.js";
|
|
1
|
+
export { approvalPromptEffectSchema, approvalRequestEffectSchema, } from "./request-effect-schema.js";
|
|
2
2
|
export { approvalResultEffectSchema } from "./result-effect-schema.js";
|
|
3
3
|
//# sourceMappingURL=effect-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/approval/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/approval/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { approvalRequestEffectSchema } from "./request-effect-schema.js";
|
|
1
|
+
export { approvalPromptEffectSchema, approvalRequestEffectSchema, } from "./request-effect-schema.js";
|
|
2
2
|
export { approvalResultEffectSchema } from "./result-effect-schema.js";
|
|
3
3
|
//# sourceMappingURL=effect-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-schema.js","sourceRoot":"","sources":["../../src/approval/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"effect-schema.js","sourceRoot":"","sources":["../../src/approval/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/approval/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type Approval, APPROVAL_AGGREGATE_TYPE, APPROVAL_ERROR_CODES, APPROVAL_SCHEMA_VERSION, APPROVAL_TTL_MILLISECONDS, type ApprovalErrorCode, type ApprovalListParameters, approvalListParametersSchema, type ApprovalListResult, approvalListResultSchema, type ApprovalRespondParameters, approvalRespondParametersSchema, type ApprovalRespondResult, approvalRespondResultSchema, approvalSchema, type ApprovalShowParameters, approvalShowParametersSchema, type ApprovalShowResult, approvalShowResultSchema, MAX_APPROVAL_ANSWER_BYTES, MAX_APPROVAL_PAGE_SIZE, MAX_APPROVAL_REASON_BYTES, MAX_APPROVAL_SUMMARY_BYTES, } from "./contract.js";
|
|
1
|
+
export { type Approval, APPROVAL_AGGREGATE_TYPE, APPROVAL_ERROR_CODES, APPROVAL_SCHEMA_VERSION, APPROVAL_TTL_MILLISECONDS, type ApprovalErrorCode, type ApprovalListParameters, approvalListParametersSchema, type ApprovalListResult, approvalListResultSchema, type ApprovalPrompt, approvalPromptSchema, type ApprovalRespondParameters, approvalRespondParametersSchema, type ApprovalRespondResult, approvalRespondResultSchema, approvalSchema, type ApprovalShowParameters, approvalShowParametersSchema, type ApprovalShowResult, approvalShowResultSchema, MAX_APPROVAL_ANSWER_BYTES, MAX_APPROVAL_PAGE_SIZE, MAX_APPROVAL_REASON_BYTES, MAX_APPROVAL_SUMMARY_BYTES, } from "./contract.js";
|
|
2
2
|
export { APPROVAL_FEATURE } from "./feature.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/approval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,KAAK,yBAAyB,EAC9B,+BAA+B,EAC/B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,cAAc,EACd,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/approval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,+BAA+B,EAC/B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,cAAc,EACd,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/approval/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { APPROVAL_AGGREGATE_TYPE, APPROVAL_ERROR_CODES, APPROVAL_SCHEMA_VERSION, APPROVAL_TTL_MILLISECONDS, approvalListParametersSchema, approvalListResultSchema, approvalRespondParametersSchema, approvalRespondResultSchema, approvalSchema, approvalShowParametersSchema, approvalShowResultSchema, MAX_APPROVAL_ANSWER_BYTES, MAX_APPROVAL_PAGE_SIZE, MAX_APPROVAL_REASON_BYTES, MAX_APPROVAL_SUMMARY_BYTES, } from "./contract.js";
|
|
1
|
+
export { APPROVAL_AGGREGATE_TYPE, APPROVAL_ERROR_CODES, APPROVAL_SCHEMA_VERSION, APPROVAL_TTL_MILLISECONDS, approvalListParametersSchema, approvalListResultSchema, approvalPromptSchema, approvalRespondParametersSchema, approvalRespondResultSchema, approvalSchema, approvalShowParametersSchema, approvalShowResultSchema, MAX_APPROVAL_ANSWER_BYTES, MAX_APPROVAL_PAGE_SIZE, MAX_APPROVAL_REASON_BYTES, MAX_APPROVAL_SUMMARY_BYTES, } from "./contract.js";
|
|
2
2
|
export { APPROVAL_FEATURE } from "./feature.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/approval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EAGzB,4BAA4B,EAE5B,wBAAwB,EAExB,+BAA+B,EAE/B,2BAA2B,EAC3B,cAAc,EAEd,4BAA4B,EAE5B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/approval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EAGzB,4BAA4B,EAE5B,wBAAwB,EAExB,oBAAoB,EAEpB,+BAA+B,EAE/B,2BAA2B,EAC3B,cAAc,EAEd,4BAA4B,EAE5B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -11,6 +11,10 @@ export declare const approvalDigestEffectSchema: Schema.String;
|
|
|
11
11
|
export declare const approvalKindEffectSchema: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
12
12
|
export declare const approvalStatusEffectSchema: Schema.Literals<readonly ["approved", "answered", "cancelled", "denied", "expired", "pending"]>;
|
|
13
13
|
export declare const approvalDecisionEffectSchema: Schema.Literals<readonly ["answer", "approve", "approve_for_session", "deny"]>;
|
|
14
|
+
export declare const approvalOptionEffectSchema: Schema.Struct<{
|
|
15
|
+
readonly label: Schema.String;
|
|
16
|
+
readonly optionId: Schema.String;
|
|
17
|
+
}>;
|
|
14
18
|
/**
|
|
15
19
|
* One request a running worker holds open for a person: a command or patch
|
|
16
20
|
* to approve, a tool call outside its profile, or a question. The digest
|
|
@@ -49,6 +53,23 @@ export declare const approvalEffectSchema: Schema.Struct<{
|
|
|
49
53
|
readonly turnId: Schema.String;
|
|
50
54
|
readonly workspaceId: Schema.String;
|
|
51
55
|
}>;
|
|
56
|
+
/**
|
|
57
|
+
* What a person or a bot reads to answer a Session that waits on a prompt: the
|
|
58
|
+
* approval's identity, kind, bounded text and options. It carries no digest
|
|
59
|
+
* and no resolution; `approval.show` returns the whole record. A Session
|
|
60
|
+
* listing names the prompt without `summary` and `options`, so a page of
|
|
61
|
+
* Sessions stays small; `session.show` returns the text.
|
|
62
|
+
*/
|
|
63
|
+
export declare const approvalPromptEffectSchema: Schema.Struct<{
|
|
64
|
+
readonly approvalId: Schema.String;
|
|
65
|
+
readonly expiresAt: Schema.String;
|
|
66
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
67
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly label: Schema.String;
|
|
69
|
+
readonly optionId: Schema.String;
|
|
70
|
+
}>>>;
|
|
71
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
72
|
+
}>;
|
|
52
73
|
export declare const approvalListParametersEffectSchema: Schema.Struct<{
|
|
53
74
|
readonly limit: Schema.Int;
|
|
54
75
|
/** `true` (the default) lists pending requests; `false` adds the latest resolved ones. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-effect-schema.d.ts","sourceRoot":"","sources":["../../src/approval/request-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAQxC,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,QAAiB,CAAC;AACxD,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,8EAA8E;AAC9E,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAsC9C,eAAO,MAAM,0BAA0B,eAEtC,CAAC;AACF,eAAO,MAAM,wBAAwB,0EAKnC,CAAC;AACH,eAAO,MAAM,0BAA0B,iGAOrC,CAAC;AACH,eAAO,MAAM,4BAA4B,gFAKvC,CAAC;
|
|
1
|
+
{"version":3,"file":"request-effect-schema.d.ts","sourceRoot":"","sources":["../../src/approval/request-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAQxC,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,QAAiB,CAAC;AACxD,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,8EAA8E;AAC9E,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAsC9C,eAAO,MAAM,0BAA0B,eAEtC,CAAC;AACF,eAAO,MAAM,wBAAwB,0EAKnC,CAAC;AACH,eAAO,MAAM,0BAA0B,iGAOrC,CAAC;AACH,eAAO,MAAM,4BAA4B,gFAKvC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;EAGrC,CAAC;AA8CH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;IAK/B,2EAA2E;;;;;;;IAI3E,sDAAsD;;;;QAnDtD,iEAAiE;;;;QAIjE,sFAAsF;;;;;;;;;;;;EAkEvF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;EAMrC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;IAI7C,0FAA0F;;;EAG1F,CAAC;AACH,eAAO,MAAM,kCAAkC;;EAE7C,CAAC;AACH,eAAO,MAAM,qCAAqC;;;;;;IAMhD,6EAA6E;;EAS9E,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;QAxBtC,0FAA0F;;;;;;;;;;;;QAa1F,6EAA6E;;;;;;;;IAwB7E,CAAC"}
|
|
@@ -54,10 +54,11 @@ export const approvalDecisionEffectSchema = Schema.Literals([
|
|
|
54
54
|
"approve_for_session",
|
|
55
55
|
"deny",
|
|
56
56
|
]);
|
|
57
|
-
const
|
|
57
|
+
export const approvalOptionEffectSchema = Schema.Struct({
|
|
58
58
|
label: text(240),
|
|
59
59
|
optionId: Schema.String.check(Schema.isPattern(/^[a-z][a-z0-9_-]{0,31}$/u)),
|
|
60
60
|
});
|
|
61
|
+
const optionsEffectSchema = Schema.optional(Schema.Array(approvalOptionEffectSchema).check(Schema.isBetweenLength(2, 8)));
|
|
61
62
|
const revision = aggregateRevisionEffectSchema.check(Schema.isPattern(/^[12]$/u));
|
|
62
63
|
const resolutionEffectSchema = Schema.Struct({
|
|
63
64
|
/** The person who decided, or `node` for an expiry or a stop. */
|
|
@@ -98,7 +99,7 @@ export const approvalEffectSchema = Schema.Struct({
|
|
|
98
99
|
/** Whether the vendor can apply an approval to the rest of the Session. */
|
|
99
100
|
forSessionOffered: Schema.Boolean,
|
|
100
101
|
kind: approvalKindEffectSchema,
|
|
101
|
-
options:
|
|
102
|
+
options: optionsEffectSchema,
|
|
102
103
|
/** The worker's own explanation, when it gave one. */
|
|
103
104
|
reason: Schema.optional(text(MAX_APPROVAL_REASON_BYTES)),
|
|
104
105
|
requestDigest: approvalDigestEffectSchema,
|
|
@@ -113,6 +114,20 @@ export const approvalEffectSchema = Schema.Struct({
|
|
|
113
114
|
}).check(Schema.makeFilter((value) => Date.parse(value.expiresAt) > Date.parse(value.createdAt) &&
|
|
114
115
|
(value.options === undefined || value.kind === "question") &&
|
|
115
116
|
resolutionMatches(value), { expected: "a consistent approval lifecycle" }));
|
|
117
|
+
/**
|
|
118
|
+
* What a person or a bot reads to answer a Session that waits on a prompt: the
|
|
119
|
+
* approval's identity, kind, bounded text and options. It carries no digest
|
|
120
|
+
* and no resolution; `approval.show` returns the whole record. A Session
|
|
121
|
+
* listing names the prompt without `summary` and `options`, so a page of
|
|
122
|
+
* Sessions stays small; `session.show` returns the text.
|
|
123
|
+
*/
|
|
124
|
+
export const approvalPromptEffectSchema = Schema.Struct({
|
|
125
|
+
approvalId: id,
|
|
126
|
+
expiresAt: recordedAtEffectSchema,
|
|
127
|
+
kind: approvalKindEffectSchema,
|
|
128
|
+
options: optionsEffectSchema,
|
|
129
|
+
summary: Schema.optional(text(MAX_APPROVAL_SUMMARY_BYTES)),
|
|
130
|
+
});
|
|
116
131
|
export const approvalListParametersEffectSchema = Schema.Struct({
|
|
117
132
|
limit: Schema.Int.check(Schema.isBetween({ maximum: MAX_APPROVAL_PAGE_SIZE, minimum: 1 })),
|
|
118
133
|
/** `true` (the default) lists pending requests; `false` adds the latest resolved ones. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-effect-schema.js","sourceRoot":"","sources":["../../src/approval/request-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,IAAI,EAAE,EACpC,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D,+EAA+E;AAC/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AACzC,8EAA8E;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAC9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAE9C,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;AAC/B,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,MAAM,GAAG,GAAG,CAAC;AACnB,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,kFAAkF;AAClF,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAW,EAAE,CACpD,KAAK,CAAC,IAAI,CA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,aAAa;IACb,UAAU;IACV,MAAM;CACP,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,QAAQ,CAAC;IACxD,UAAU;IACV,UAAU;IACV,WAAW;IACX,QAAQ;IACR,SAAS;IACT,SAAS;CACV,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC1D,QAAQ;IACR,SAAS;IACT,qBAAqB;IACrB,MAAM;CACP,CAAC,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"request-effect-schema.js","sourceRoot":"","sources":["../../src/approval/request-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,IAAI,EAAE,EACpC,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D,+EAA+E;AAC/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AACzC,8EAA8E;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAC9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAE9C,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;AAC/B,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,MAAM,GAAG,GAAG,CAAC;AACnB,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,kFAAkF;AAClF,MAAM,kBAAkB,GAA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AC/C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -58,6 +58,8 @@ export declare const maiaConfigDocumentSchema: import("../runtime-schema/runtime
|
|
|
58
58
|
} | undefined;
|
|
59
59
|
} | undefined;
|
|
60
60
|
}>;
|
|
61
|
+
/** The draft-07 JSON Schema of the configuration document. */
|
|
62
|
+
export declare const maiaConfigJsonSchema: () => Readonly<Record<string, unknown>>;
|
|
61
63
|
export type MaiaConfigDocument = InferRuntimeSchema<typeof maiaConfigDocumentSchema>;
|
|
62
64
|
export declare const DEFAULT_MAIA_CONFIG: MaiaConfigDocument;
|
|
63
65
|
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/configuration/configuration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/configuration/configuration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAMrE,eAAO,MAAM,qBAAqB,EAChC,+CAAwD,CAAC;AAC3D,eAAO,MAAM,mBAAmB,EAAG,sBAA+B,CAAC;AAInE,eAAO,MAAM,uBAAuB,qFAEnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,OAAO,uBAAuB,CAC/B,CAAC;AAOF,eAAO,MAAM,uBAAuB,qEAEnC,CAAC;AASF,eAAO,MAAM,sBAAsB,qEAElC,CAAC;AAoCF,eAAO,MAAM,uBAAuB,qEAEnC,CAAC;AASF,eAAO,MAAM,qBAAqB;;EAEjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAmG/E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,QAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACxB,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CACjD,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAGjC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import { makeEffectRuntimeSchema } from "../runtime-schema/effect-schema.js";
|
|
2
|
+
import { inputSchemaFor, makeEffectRuntimeSchema, } from "../runtime-schema/effect-schema.js";
|
|
3
3
|
const MAX_CONFIG_CAPABILITIES = 64;
|
|
4
4
|
const MAX_CONFIG_COLLECTION_ITEMS = 128;
|
|
5
5
|
const MAX_CONFIG_CONNECTIONS = 64;
|
|
@@ -51,7 +51,10 @@ const runtimePreferencesEffectSchema = Schema.Struct({
|
|
|
51
51
|
codex: Schema.optional(runtimePreferenceEffectSchema),
|
|
52
52
|
default: Schema.optional(configIdentifierEffectSchema),
|
|
53
53
|
pi: Schema.optional(runtimePreferenceEffectSchema),
|
|
54
|
-
profiles: Schema.optional(Schema.Record(Schema.String, runtimePreferenceEffectSchema).check(configRecordKeyCheck, Schema.makeFilter((profiles) => Object.keys(profiles).length <= MAX_CONFIG_COLLECTION_ITEMS, {
|
|
54
|
+
profiles: Schema.optional(Schema.Record(Schema.String, runtimePreferenceEffectSchema).check(configRecordKeyCheck, Schema.makeFilter((profiles) => Object.keys(profiles).length <= MAX_CONFIG_COLLECTION_ITEMS, {
|
|
55
|
+
expected: "at most 128 runtime profiles",
|
|
56
|
+
toJsonSchema: () => ({ maxProperties: MAX_CONFIG_COLLECTION_ITEMS }),
|
|
57
|
+
}))),
|
|
55
58
|
});
|
|
56
59
|
const requestsEffectSchema = Schema.Struct({
|
|
57
60
|
capabilities: Schema.optional(Schema.Array(capabilityRequestEffectSchema).check(Schema.isMaxLength(MAX_CONFIG_CAPABILITIES))),
|
|
@@ -76,7 +79,10 @@ const connectionEffectSchema = Schema.Struct({
|
|
|
76
79
|
credential: Schema.optional(secretReferenceEffectSchema),
|
|
77
80
|
endpoint: urlStringEffectSchema,
|
|
78
81
|
});
|
|
79
|
-
const connectionsEffectSchema = Schema.Record(Schema.String, connectionEffectSchema).check(configRecordKeyCheck, Schema.makeFilter((connections) => Object.keys(connections).length <= MAX_CONFIG_CONNECTIONS, {
|
|
82
|
+
const connectionsEffectSchema = Schema.Record(Schema.String, connectionEffectSchema).check(configRecordKeyCheck, Schema.makeFilter((connections) => Object.keys(connections).length <= MAX_CONFIG_CONNECTIONS, {
|
|
83
|
+
expected: "at most 64 connections",
|
|
84
|
+
toJsonSchema: () => ({ maxProperties: MAX_CONFIG_CONNECTIONS }),
|
|
85
|
+
}));
|
|
80
86
|
const maiaConfigDocumentEffectSchema = Schema.Struct({
|
|
81
87
|
$schema: Schema.Literal(MAIA_CONFIG_SCHEMA_ID),
|
|
82
88
|
activeProfile: Schema.optional(configProfileNameEffectSchema),
|
|
@@ -86,6 +92,8 @@ const maiaConfigDocumentEffectSchema = Schema.Struct({
|
|
|
86
92
|
runtimes: Schema.optional(runtimePreferencesEffectSchema),
|
|
87
93
|
});
|
|
88
94
|
export const maiaConfigDocumentSchema = makeEffectRuntimeSchema(maiaConfigDocumentEffectSchema);
|
|
95
|
+
/** The draft-07 JSON Schema of the configuration document. */
|
|
96
|
+
export const maiaConfigJsonSchema = () => inputSchemaFor(maiaConfigDocumentEffectSchema);
|
|
89
97
|
export const DEFAULT_MAIA_CONFIG = {
|
|
90
98
|
$schema: MAIA_CONFIG_SCHEMA_ID,
|
|
91
99
|
runtimes: { default: "pi" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../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EF,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC7D,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACrD,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,KAAK,CAC/C,MAAM,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAChD,CACF;IACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAC1D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAC7D,8BAA8B,CAC/B,CAAC;AAEF,8DAA8D;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAsC,EAAE,CAC1E,cAAc,CAAC,8BAA8B,CAAC,CAAC;AAMjD,MAAM,CAAC,MAAM,mBAAmB,GAAuB;IACrD,OAAO,EAAE,qBAAqB;IAC9B,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CAC5B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { configIdentifierSchema, configIncludePathSchema, configProfileNameSchema, DEFAULT_MAIA_CONFIG, MAIA_CONFIG_SCHEMA_ID, MAIA_CONFIG_VERSION, type MaiaConfigDocument, maiaConfigDocumentSchema, type MaiaConfigVersion, maiaConfigVersionSchema, type SecretReference, secretReferenceSchema, } from "./configuration.js";
|
|
1
|
+
export { configIdentifierSchema, configIncludePathSchema, configProfileNameSchema, DEFAULT_MAIA_CONFIG, MAIA_CONFIG_SCHEMA_ID, MAIA_CONFIG_VERSION, type MaiaConfigDocument, maiaConfigDocumentSchema, maiaConfigJsonSchema, type MaiaConfigVersion, maiaConfigVersionSchema, type SecretReference, secretReferenceSchema, } from "./configuration.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,eAAe,EACpB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,eAAe,EACpB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { configIdentifierSchema, configIncludePathSchema, configProfileNameSchema, DEFAULT_MAIA_CONFIG, MAIA_CONFIG_SCHEMA_ID, MAIA_CONFIG_VERSION, maiaConfigDocumentSchema, maiaConfigVersionSchema, secretReferenceSchema, } from "./configuration.js";
|
|
1
|
+
export { configIdentifierSchema, configIncludePathSchema, configProfileNameSchema, DEFAULT_MAIA_CONFIG, MAIA_CONFIG_SCHEMA_ID, MAIA_CONFIG_VERSION, maiaConfigDocumentSchema, maiaConfigJsonSchema, maiaConfigVersionSchema, secretReferenceSchema, } from "./configuration.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EAEnB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EAEnB,wBAAwB,EACxB,oBAAoB,EAEpB,uBAAuB,EAEvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { CoordinatorToolDefinition, CoordinatorToolOperation, } from "./registry.js";
|
|
2
|
-
export { COORDINATOR_TOOL_OPERATIONS, coordinatorToolDefinitions, coordinatorToolName, } from "./registry.js";
|
|
2
|
+
export { COORDINATOR_TOOL_OPERATIONS, coordinatorToolDefinitions, coordinatorToolName, operationParametersJsonSchemas, } from "./registry.js";
|
|
3
3
|
export { type WorkerToolDefinition, workerToolDefinitions, } from "./registry.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,oBAAoB,EACzB,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { COORDINATOR_TOOL_OPERATIONS, coordinatorToolDefinitions, coordinatorToolName, } from "./registry.js";
|
|
1
|
+
export { COORDINATOR_TOOL_OPERATIONS, coordinatorToolDefinitions, coordinatorToolName, operationParametersJsonSchemas, } from "./registry.js";
|
|
2
2
|
export { workerToolDefinitions, } from "./registry.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/coordinator-tool/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/coordinator-tool/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
/** Each request's parameters, read from the protocol's own request union. */
|
|
3
3
|
export declare const requestParametersEffectSchemas: () => ReadonlyMap<string, Schema.Top>;
|
|
4
|
-
/**
|
|
5
|
-
* An optional protocol field is absent or valid, never `null`; the generated
|
|
6
|
-
* `anyOf [schema, null]` would invite a value the Node rejects.
|
|
7
|
-
*/
|
|
8
|
-
export declare const withoutNullBranches: (node: unknown) => unknown;
|
|
9
|
-
/** The draft-07 JSON Schema an MCP client validates tool arguments against. */
|
|
10
|
-
export declare const inputSchemaFor: (parameters: Schema.Top) => Readonly<Record<string, unknown>>;
|
|
11
4
|
//# sourceMappingURL=input-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-schema.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/input-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-schema.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/input-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AA6BxC,6EAA6E;AAC7E,eAAO,MAAM,8BAA8B,QAAO,WAAW,CAC3D,MAAM,EACN,MAAM,CAAC,GAAG,CAKX,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Predicate } from "effect";
|
|
2
|
-
import * as JsonSchema from "effect/JsonSchema";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
4
3
|
import { localNodeRequestPayloadEffectSchema } from "../local-node/effect-schema.js";
|
|
5
4
|
const collectParameters = (schema, found) => {
|
|
@@ -26,41 +25,4 @@ export const requestParametersEffectSchemas = () => {
|
|
|
26
25
|
collectParameters(localNodeRequestPayloadEffectSchema, found);
|
|
27
26
|
return found;
|
|
28
27
|
};
|
|
29
|
-
const isNullBranch = (branch) => Predicate.hasProperty(branch, "type") && branch.type === "null";
|
|
30
|
-
/**
|
|
31
|
-
* An optional protocol field is absent or valid, never `null`; the generated
|
|
32
|
-
* `anyOf [schema, null]` would invite a value the Node rejects.
|
|
33
|
-
*/
|
|
34
|
-
export const withoutNullBranches = (node) => {
|
|
35
|
-
if (Array.isArray(node))
|
|
36
|
-
return node.map(withoutNullBranches);
|
|
37
|
-
if (!Predicate.isObject(node))
|
|
38
|
-
return node;
|
|
39
|
-
const cleaned = Object.fromEntries(Object.entries(node).map(([key, value]) => [
|
|
40
|
-
key,
|
|
41
|
-
withoutNullBranches(value),
|
|
42
|
-
]));
|
|
43
|
-
const branches = cleaned.anyOf;
|
|
44
|
-
if (!Array.isArray(branches))
|
|
45
|
-
return cleaned;
|
|
46
|
-
const kept = branches.filter((branch) => !isNullBranch(branch));
|
|
47
|
-
if (kept.length === branches.length)
|
|
48
|
-
return cleaned;
|
|
49
|
-
const { anyOf: _nullable, ...rest } = cleaned;
|
|
50
|
-
const [only] = kept;
|
|
51
|
-
if (kept.length === 1 && Predicate.isObject(only))
|
|
52
|
-
return { ...rest, ...only };
|
|
53
|
-
return { ...rest, anyOf: kept };
|
|
54
|
-
};
|
|
55
|
-
/** The draft-07 JSON Schema an MCP client validates tool arguments against. */
|
|
56
|
-
export const inputSchemaFor = (parameters) => {
|
|
57
|
-
const document = JsonSchema.toDocumentDraft07(Schema.toJsonSchemaDocument(parameters, { onExcessProperty: "error" }));
|
|
58
|
-
const schema = withoutNullBranches({
|
|
59
|
-
...document.schema,
|
|
60
|
-
...(Object.keys(document.definitions).length === 0
|
|
61
|
-
? {}
|
|
62
|
-
: { definitions: document.definitions }),
|
|
63
|
-
});
|
|
64
|
-
return Predicate.isObject(schema) ? { ...schema } : { type: "object" };
|
|
65
|
-
};
|
|
66
28
|
//# sourceMappingURL=input-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-schema.js","sourceRoot":"","sources":["../../src/coordinator-tool/input-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"input-schema.js","sourceRoot":"","sources":["../../src/coordinator-tool/input-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAErF,MAAM,iBAAiB,GAAG,CACxB,MAAe,EACf,KAA8B,EACxB,EAAE;IACR,IACE,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;QACxC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAC7B,CAAC;QACD,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAe,EAAE,EAAE;YACzC,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;QAAE,OAAO;IACrD,MAAM,MAAM,GAAY,MAAM,CAAC,MAAM,CAAC;IACtC,IACE,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;QACvC,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;QAC/C,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;QACzC,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC;QAC3C,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC;QAElC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAG5C,EAAE;IACF,MAAM,KAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC5C,iBAAiB,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;IAC9D,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -20,6 +20,11 @@ export type CoordinatorToolDefinition = {
|
|
|
20
20
|
export declare const coordinatorToolName: (operation: string) => string;
|
|
21
21
|
/** Tool definitions with input schemas generated from the protocol schemas. */
|
|
22
22
|
export declare const coordinatorToolDefinitions: () => readonly CoordinatorToolDefinition[];
|
|
23
|
+
/**
|
|
24
|
+
* The draft-07 JSON Schema of every Node operation's parameters, by operation
|
|
25
|
+
* ID, generated from the request schemas the Node validates.
|
|
26
|
+
*/
|
|
27
|
+
export declare const operationParametersJsonSchemas: () => Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|
|
23
28
|
/** A worker's MCP projection of the existing Session role, with no new authority. */
|
|
24
29
|
export type WorkerToolDefinition = Omit<CoordinatorToolDefinition, "operation"> & {
|
|
25
30
|
readonly operation: LocalNodeRequestMethod;
|