@maiaos/protocol 0.1.0-canary.56 → 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/dist/agent/definition.d.ts +2 -2
- 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/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 +31 -1
- package/dist/event/registry.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 +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/local-node/contract.d.ts +4 -3
- 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 +161 -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/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/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
|
@@ -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;
|
|
@@ -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":["../../src/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,cAAc,EACd,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAG5C,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AACxC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAElC,MAAM,CAAC,MAAM,qBAAqB,GAChC,+CAAwD,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,sBAA+B,CAAC;AAEnE,MAAM,6BAA6B,GAAG,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAC5D,6BAA6B,CAC9B,CAAC;AAMF,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CACvD,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,CAAC,EAC7B,MAAM,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAClD,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAC5D,6BAA6B,CAC9B,CAAC;AAEF,MAAM,yBAAyB,GAAG,iCAAiC,CAAC;AAEpE,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CACtD,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,EAC9B,MAAM,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAC3D,4BAA4B,C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AC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,sBAAsB,EAC1E;IACE,QAAQ,EAAE,wBAAwB;IAClC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,sBAAsB,EAAE,CAAC;CAChE,CACF,CACF,CAAC;AAEF,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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAG9E,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAInC,KAAK,8BAA8B,GAAG,OAAO,CAC3C,8BAA8B,EAC9B;IAAE,QAAQ,CAAC,WAAW,EAAE;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAC3D,CAAC;AAmBF,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CAAC,QAAQ,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B,EAAE,SAAS,wBAAwB,EACvB,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,cAAe,MAAM,KAAG,MACnB,CAAC;AAEtC,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,QACjC,SAAS,yBAAyB,EAerC,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,8BAA8B,QAAO,QAAQ,CACxD,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAMhD,CAAC;AAEJ,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,yBAAyB,EACzB,WAAW,CACZ,GAAG;IACF,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;CAC5C,CAAC;AAmFF,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,UAC1B,WAAW,KAChB,SAAS,oBAAoB,EAsB/B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MAIA_FEATURE_OPERATIONS, } from "../feature/index.js";
|
|
2
|
+
import { inputSchemaFor } from "../runtime-schema/effect-schema.js";
|
|
2
3
|
import { DEFAULT_SESSION_LIST_PAGE_SIZE } from "../session/index.js";
|
|
3
4
|
import { SESSION_ROLE_OPERATIONS, } from "../session-guard/index.js";
|
|
4
|
-
import {
|
|
5
|
+
import { requestParametersEffectSchemas } from "./input-schema.js";
|
|
5
6
|
/**
|
|
6
7
|
* The operations an external coordinator (Claude Code, Codex) may call as MCP
|
|
7
8
|
* tools, and the coordinator principal's whole allow list: `maia mcp`
|
|
@@ -34,6 +35,13 @@ export const coordinatorToolDefinitions = () => {
|
|
|
34
35
|
};
|
|
35
36
|
});
|
|
36
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* The draft-07 JSON Schema of every Node operation's parameters, by operation
|
|
40
|
+
* ID, generated from the request schemas the Node validates.
|
|
41
|
+
*/
|
|
42
|
+
export const operationParametersJsonSchemas = () => Object.fromEntries([...requestParametersEffectSchemas()]
|
|
43
|
+
.map(([method, schema]) => [method, inputSchemaFor(schema)])
|
|
44
|
+
.sort(([left], [right]) => Number(left > right) - Number(left < right)));
|
|
37
45
|
/**
|
|
38
46
|
* Mailbox tools belong to a Session credential. They are not coordinator
|
|
39
47
|
* tools: the coordinator principal has no Session to send as or to read for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/coordinator-tool/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/coordinator-tool/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAOnE;;;;;;;;;;GAUG;AACH,MAAM,sBAAsB,GAC1B,uBAAuB,CAAC,MAAM,CAC5B,CAAC,SAAS,EAA+C,EAAE,CACzD,SAAS,CAAC,WAAW,CAAC,WAAW,KAAK,KAAK,CAC9C,CAAC;AAIJ,MAAM,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AG,CAAC,CAAC,SAAS,EAAE,EAAE;QACrD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClC,IAAI,IAAI,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,GAAG,CAAC,CAAC;QAC5E,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
/** `node.started`: the Node came up and reports how its previous run ended. */
|
|
3
|
+
export declare const nodeStartedEffectSchema: Schema.Struct<{
|
|
4
|
+
readonly previousShutdown: Schema.Literals<readonly ["clean", "unclean"]>;
|
|
5
|
+
}>;
|
|
6
|
+
/** `node.stopping`: the Node begins a graceful stop. A crash writes nothing. */
|
|
7
|
+
export declare const nodeStoppingEffectSchema: Schema.Struct<{
|
|
8
|
+
readonly reason: Schema.Literals<readonly ["stop"]>;
|
|
9
|
+
}>;
|
|
10
|
+
/** `admission.refused`: an admission limit refuses a command. */
|
|
11
|
+
export declare const admissionRefusedEffectSchema: Schema.Struct<{
|
|
12
|
+
/** Refusals of the same scope that the one-per-minute limit merged into the previous row. */
|
|
13
|
+
readonly droppedSinceLast: Schema.optional<Schema.Number>;
|
|
14
|
+
readonly reasonClass: Schema.String;
|
|
15
|
+
readonly resourceId: Schema.optional<Schema.String>;
|
|
16
|
+
readonly scope: Schema.String;
|
|
17
|
+
/** The Session the refusal names, when there is one. */
|
|
18
|
+
readonly sessionId: Schema.optional<Schema.String>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=effect-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../../src/event/lifecycle/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAUxC,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB;;EAElC,CAAC;AAEH,gFAAgF;AAChF,eAAO,MAAM,wBAAwB;;EAEnC,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,4BAA4B;IACvC,6FAA6F;;;;;IAU7F,wDAAwD;;EAExD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { protocolIdentifierEffectSchema as id } from "../../envelope/effect-schema.js";
|
|
3
|
+
/** A class code: a short lowercase token and never host text. */
|
|
4
|
+
const classCodeSchema = Schema.String.check(Schema.isBetweenLength(1, 64), Schema.isPattern(/^[a-z][a-z0-9_.-]*$/u));
|
|
5
|
+
/** `node.started`: the Node came up and reports how its previous run ended. */
|
|
6
|
+
export const nodeStartedEffectSchema = Schema.Struct({
|
|
7
|
+
previousShutdown: Schema.Literals(["clean", "unclean"]),
|
|
8
|
+
});
|
|
9
|
+
/** `node.stopping`: the Node begins a graceful stop. A crash writes nothing. */
|
|
10
|
+
export const nodeStoppingEffectSchema = Schema.Struct({
|
|
11
|
+
reason: Schema.Literals(["stop"]),
|
|
12
|
+
});
|
|
13
|
+
/** `admission.refused`: an admission limit refuses a command. */
|
|
14
|
+
export const admissionRefusedEffectSchema = Schema.Struct({
|
|
15
|
+
/** Refusals of the same scope that the one-per-minute limit merged into the previous row. */
|
|
16
|
+
droppedSinceLast: Schema.optional(Schema.Number.check(Schema.isInt(), Schema.isBetween({ maximum: 1_000_000_000, minimum: 1 }))),
|
|
17
|
+
reasonClass: classCodeSchema,
|
|
18
|
+
resourceId: Schema.optional(id),
|
|
19
|
+
scope: classCodeSchema,
|
|
20
|
+
/** The Session the refusal names, when there is one. */
|
|
21
|
+
sessionId: Schema.optional(id),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=effect-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-schema.js","sourceRoot":"","sources":["../../../src/event/l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src/event/lifecycle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/event/lifecycle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const nodeStartedSchema: import("../../index.js").RuntimeSchema<{
|
|
2
|
+
readonly previousShutdown: "clean" | "unclean";
|
|
3
|
+
}>;
|
|
4
|
+
export declare const nodeStoppingSchema: import("../../index.js").RuntimeSchema<{
|
|
5
|
+
readonly reason: "stop";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const admissionRefusedSchema: import("../../index.js").RuntimeSchema<{
|
|
8
|
+
readonly droppedSinceLast?: number | undefined;
|
|
9
|
+
readonly reasonClass: string;
|
|
10
|
+
readonly resourceId?: string | undefined;
|
|
11
|
+
readonly scope: string;
|
|
12
|
+
readonly sessionId?: string | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/event/lifecycle/schema.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;EAE7B,CAAC;AACF,eAAO,MAAM,kBAAkB;;EAE9B,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;EAElC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeEffectRuntimeSchema } from "../../runtime-schema/effect-schema.js";
|
|
2
|
+
import { admissionRefusedEffectSchema, nodeStartedEffectSchema, nodeStoppingEffectSchema, } from "./effect-schema.js";
|
|
3
|
+
export const nodeStartedSchema = makeEffectRuntimeSchema(nodeStartedEffectSchema);
|
|
4
|
+
export const nodeStoppingSchema = makeEffectRuntimeSchema(nodeStoppingEffectSchema);
|
|
5
|
+
export const admissionRefusedSchema = makeEffectRuntimeSchema(admissionRefusedEffectSchema);
|
|
6
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/event/lifecycle/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CACtD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CACvD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAC3D,4BAA4B,CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/event/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/event/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAkBhE,wGAAwG;AACxG,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,oFAAoF;IACpF,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAChD,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAqRF,eAAO,MAAM,mBAAmB,EAAE,SAAS,qBAAqB,EAG7D,CAAC;AAEJ,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAE1C,CAAC;AAIF,wEAAwE;AACxE,eAAO,MAAM,aAAa,SAClB,MAAM,KACX,qBAAqB,GAAG,SAA6B,CAAC"}
|
package/dist/event/registry.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MAX_EVENT_PAYLOAD_BYTES } from "./format.js";
|
|
2
|
+
import { admissionRefusedSchema, nodeStartedSchema, nodeStoppingSchema, } from "./lifecycle/index.js";
|
|
2
3
|
import { sessionActivityChangedSchema, sessionStatusChangedSchema, } from "./session-activity.js";
|
|
3
4
|
import { updateDoneSchema, updateRolledBackSchema, updateStartedSchema, } from "./update.js";
|
|
4
5
|
/**
|
|
@@ -8,6 +9,8 @@ import { updateDoneSchema, updateRolledBackSchema, updateStartedSchema, } from "
|
|
|
8
9
|
* registers a tighter schema. A producer registers its new kind here.
|
|
9
10
|
*/
|
|
10
11
|
const EXISTING_KINDS = [
|
|
12
|
+
// Registered with the webhooks (D-203) with strict payloads.
|
|
13
|
+
["admission", ["refused"]],
|
|
11
14
|
["agent", ["created", "disabled", "revised"]],
|
|
12
15
|
["approval", ["requested", "resolved"]],
|
|
13
16
|
[
|
|
@@ -169,9 +172,11 @@ const EXISTING_KINDS = [
|
|
|
169
172
|
"interrupt.settled",
|
|
170
173
|
],
|
|
171
174
|
],
|
|
175
|
+
["node", ["started", "stopping"]],
|
|
172
176
|
// Registered ahead of their producer (ZU2a, D-196) with strict payloads.
|
|
173
177
|
["update", ["started", "done", "rolled_back"]],
|
|
174
178
|
["voice", ["pi.relay.acknowledged"]],
|
|
179
|
+
["webhook", ["added", "redelivered", "removed", "tested"]],
|
|
175
180
|
[
|
|
176
181
|
"workspace",
|
|
177
182
|
[
|
|
@@ -184,8 +189,30 @@ const EXISTING_KINDS = [
|
|
|
184
189
|
];
|
|
185
190
|
const ACTIVITY_PAYLOAD_BYTES = 256;
|
|
186
191
|
const UPDATE_PAYLOAD_BYTES = 512;
|
|
192
|
+
const LIFECYCLE_PAYLOAD_BYTES = 256;
|
|
187
193
|
/** The kinds that carry their own payload schema and a cap tighter than the journal's. */
|
|
188
194
|
const OWN_PAYLOADS = new Map([
|
|
195
|
+
[
|
|
196
|
+
"admission.refused",
|
|
197
|
+
{
|
|
198
|
+
maxPayloadBytes: LIFECYCLE_PAYLOAD_BYTES,
|
|
199
|
+
payloadSchema: admissionRefusedSchema,
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
[
|
|
203
|
+
"node.started",
|
|
204
|
+
{
|
|
205
|
+
maxPayloadBytes: LIFECYCLE_PAYLOAD_BYTES,
|
|
206
|
+
payloadSchema: nodeStartedSchema,
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
[
|
|
210
|
+
"node.stopping",
|
|
211
|
+
{
|
|
212
|
+
maxPayloadBytes: LIFECYCLE_PAYLOAD_BYTES,
|
|
213
|
+
payloadSchema: nodeStoppingSchema,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
189
216
|
[
|
|
190
217
|
"session.activity.changed",
|
|
191
218
|
{
|
|
@@ -219,8 +246,11 @@ const OWN_PAYLOADS = new Map([
|
|
|
219
246
|
},
|
|
220
247
|
],
|
|
221
248
|
]);
|
|
222
|
-
/**
|
|
249
|
+
/** Kinds a reader and a webhook both see: IDs, class codes and time. */
|
|
223
250
|
const PUBLIC_KINDS = new Set([
|
|
251
|
+
"admission.refused",
|
|
252
|
+
"node.started",
|
|
253
|
+
"node.stopping",
|
|
224
254
|
"session.activity.changed",
|
|
225
255
|
"session.status.changed",
|
|
226
256
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/event/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAkBrB;;;;;GAKG;AACH,MAAM,cAAc,GAAsD;IACxE,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACvC;QACE,YAAY;QACZ;YACE,SAAS;YACT,eAAe;YACf,kBAAkB;YAClB,gBAAgB;YAChB,eAAe;YACf,eAAe;YACf,cAAc;SACf;KACF;IACD,CAAC,WAAW,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACrC,CAAC,UAAU,EAAE,CAAC,cAAc,EAAE,yBAAyB,CAAC,CAAC;IACzD,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,CAAC;IACzB;QACE,WAAW;QACX;YACE,mBAAmB;YACnB,qBAAqB;YACrB,uBAAuB;YACvB,8BAA8B;YAC9B,6BAA6B;YAC7B,+BAA+B;YAC/B,4BAA4B;YAC5B,qCAAqC;YACrC,kBAAkB;YAClB,iBAAiB;YACjB,mBAAmB;YACnB,gBAAgB;YAChB,yBAAyB;YACzB,oBAAoB;YACpB,mBAAmB;YACnB,qBAAqB;YACrB,kBAAkB;YAClB,2BAA2B;YAC3B,qBAAqB;YACrB,0BAA0B;YAC1B,6BAA6B;YAC7B,2BAA2B;YAC3B,wBAAwB;YACxB,iCAAiC;YACjC,iCAAiC;YACjC,0BAA0B;YAC1B,6BAA6B;YAC7B,2BAA2B;YAC3B,wBAAwB;YACxB,iCAAiC;YACjC,iCAAiC;YACjC,0BAA0B;YAC1B,6B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AC7B,6BAA6B;YAC7B,6BAA6B;YAC7B,sBAAsB;YACtB,yBAAyB;YACzB,yBAAyB;YACzB,wBAAwB;SACzB;KACF;IACD;QACE,MAAM;QACN;YACE,QAAQ;YACR,aAAa;YACb,SAAS;YACT,WAAW;YACX,QAAQ;YACR,WAAW;YACX,aAAa;YACb,oBAAoB;YACpB,uBAAuB;YACvB,wBAAwB;YACxB,2BAA2B;YAC3B,mBAAmB;SACpB;KACF;IACD,yEAAyE;IACzE,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC,OAAO,EAAE,CAAC,uBAAuB,CAAC,CAAC;IACpC;QACE,WAAW;QACX;YACE,UAAU;YACV,sBAAsB;YACtB,qBAAqB;YACrB,qBAAqB;SACtB;KACF;CACF,CAAC;AAEF,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,oBAAoB,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/event/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAkBrB;;;;;GAKG;AACH,MAAM,cAAc,GAAsD;IACxE,6DAA6D;IAC7D,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACvC;QACE,YAAY;QACZ;YACE,SAAS;YACT,eA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AAc,GAAG,CACrB,MAAc,EACd,IAAY,EACW,EAAE;IACzB,MAAM,IAAI,GAAG,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;IACjC,OAAO;QACL,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU;QACxD,IAAI;QACJ,eAAe,EAAE,uBAAuB;QACxC,MAAM;QACN,OAAO,EAAE,CAAC;QACV,GAAG,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;KAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAC9B,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,CACzC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAClD,CAAC;AAEJ,MAAM,CAAC,MAAM,aAAa,GAAsB,cAAc,CAAC,GAAG,CAChE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,CACrB,CAAC;AAEF,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AAEhF,wEAAwE;AACxE,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAAY,EACuB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -20,6 +20,7 @@ import { PROJECT_GUARD_FEATURE } from "../session-guard/index.js";
|
|
|
20
20
|
import { TEAM_WORKSPACE_FEATURE } from "../team-workspace/index.js";
|
|
21
21
|
import { TERMINAL_FEATURE } from "../terminal/index.js";
|
|
22
22
|
import { VOICE_FEATURE } from "../voice/index.js";
|
|
23
|
+
import { WEBHOOKS_FEATURE } from "../webhooks/index.js";
|
|
23
24
|
import type { MaiaFeatureSdkBinding } from "./descriptor/index.js";
|
|
24
25
|
import { NODE_STATUS_FEATURE } from "./node-status.js";
|
|
25
26
|
export { VOICE_FEATURE, VOICE_FEATURE_OPERATIONS, VOICE_FEATURE_SCHEMA_VERSION, } from "../voice/index.js";
|
|
@@ -51,7 +52,8 @@ type RegisteredFeatures = readonly [
|
|
|
51
52
|
typeof EVENT_FEATURE,
|
|
52
53
|
typeof TEAM_WORKSPACE_FEATURE,
|
|
53
54
|
typeof AGENTS_FEATURE,
|
|
54
|
-
typeof ROUTINE_FEATURE
|
|
55
|
+
typeof ROUTINE_FEATURE,
|
|
56
|
+
typeof WEBHOOKS_FEATURE
|
|
55
57
|
];
|
|
56
58
|
export declare const MAIA_FEATURE_REGISTRY: RegisteredFeatures;
|
|
57
59
|
export type MaiaRegisteredFeature = RegisteredFeatures[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/feature/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,kBAAkB,E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