@maiaos/protocol 0.1.0-canary.16 → 0.1.0-canary.18

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.
Files changed (51) hide show
  1. package/dist/agent/definition.d.ts +2 -2
  2. package/dist/event/contract.d.ts +47 -0
  3. package/dist/event/contract.d.ts.map +1 -1
  4. package/dist/event/contract.js +3 -0
  5. package/dist/event/contract.js.map +1 -1
  6. package/dist/event/effect-schema.d.ts +1 -0
  7. package/dist/event/effect-schema.d.ts.map +1 -1
  8. package/dist/event/effect-schema.js +1 -0
  9. package/dist/event/effect-schema.js.map +1 -1
  10. package/dist/event/envelope-effect-schema.d.ts +2 -0
  11. package/dist/event/envelope-effect-schema.d.ts.map +1 -1
  12. package/dist/event/envelope-effect-schema.js +2 -0
  13. package/dist/event/envelope-effect-schema.js.map +1 -1
  14. package/dist/event/feature.d.ts +30 -0
  15. package/dist/event/feature.d.ts.map +1 -0
  16. package/dist/event/feature.js +34 -0
  17. package/dist/event/feature.js.map +1 -0
  18. package/dist/event/format.d.ts +6 -0
  19. package/dist/event/format.d.ts.map +1 -1
  20. package/dist/event/format.js +6 -0
  21. package/dist/event/format.js.map +1 -1
  22. package/dist/event/index.d.ts +3 -1
  23. package/dist/event/index.d.ts.map +1 -1
  24. package/dist/event/index.js +3 -1
  25. package/dist/event/index.js.map +1 -1
  26. package/dist/event/read-effect-schema.d.ts +105 -0
  27. package/dist/event/read-effect-schema.d.ts.map +1 -0
  28. package/dist/event/read-effect-schema.js +64 -0
  29. package/dist/event/read-effect-schema.js.map +1 -0
  30. package/dist/feature/registry.d.ts +2 -0
  31. package/dist/feature/registry.d.ts.map +1 -1
  32. package/dist/feature/registry.js +2 -0
  33. package/dist/feature/registry.js.map +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/local-node/contract.d.ts +3 -2
  39. package/dist/local-node/contract.d.ts.map +1 -1
  40. package/dist/local-node/contract.js.map +1 -1
  41. package/dist/local-node/effect-schema.d.ts +28 -4
  42. package/dist/local-node/effect-schema.d.ts.map +1 -1
  43. package/dist/local-node/effect-schema.js +3 -0
  44. package/dist/local-node/effect-schema.js.map +1 -1
  45. package/dist/local-node/node-api/methods.d.ts +4 -3
  46. package/dist/local-node/node-api/methods.d.ts.map +1 -1
  47. package/dist/local-node/node-api/methods.js +2 -0
  48. package/dist/local-node/node-api/methods.js.map +1 -1
  49. package/dist/session/agent-permission-contract.d.ts +5 -5
  50. package/dist/session/agent-permission-effect-schema.d.ts +9 -9
  51. 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.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "session.wait" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
24
+ readonly requestedOperationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "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")[];
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.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "session.wait" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
47
+ readonly requestedOperationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "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")[];
48
48
  readonly schemaVersion: "maia.agent-definition/v1";
49
49
  readonly skillRefs: readonly {
50
50
  readonly contentDigest: string;
@@ -32,4 +32,51 @@ export declare const eventCursorClaimsSchema: import("../runtime-schema/runtime-
32
32
  export type EventCursorClaims = InferRuntimeSchema<typeof eventCursorClaimsSchema>;
33
33
  export declare const eventCursorSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<string>;
34
34
  export declare const federatedEventCursorSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<string>;
35
+ export declare const eventsReadParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
36
+ readonly kinds?: readonly string[] | undefined;
37
+ readonly limit?: number | undefined;
38
+ readonly since?: string | undefined;
39
+ readonly subject?: {
40
+ readonly id: string;
41
+ readonly type: string;
42
+ } | undefined;
43
+ }>;
44
+ export type EventsReadParameters = InferRuntimeSchema<typeof eventsReadParametersSchema>;
45
+ export declare const eventsReadResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
46
+ readonly head: string;
47
+ readonly method: "events.read";
48
+ readonly oldest: string;
49
+ readonly events: readonly {
50
+ readonly command?: string | undefined;
51
+ readonly id: string;
52
+ readonly kind: string;
53
+ readonly node: string;
54
+ readonly payload: {
55
+ readonly [x: string]: unknown;
56
+ };
57
+ readonly schemaVersion: "maia.event.v2";
58
+ readonly seq: string;
59
+ readonly source: string;
60
+ readonly subject: {
61
+ readonly id: string;
62
+ readonly seq: string;
63
+ readonly type: string;
64
+ };
65
+ readonly ts: string;
66
+ readonly v: number;
67
+ }[];
68
+ readonly next: string;
69
+ readonly status: "ok";
70
+ } | {
71
+ readonly head: string;
72
+ readonly method: "events.read";
73
+ readonly oldest: string;
74
+ readonly next: string;
75
+ readonly reason: "cursor_expired" | "epoch_changed" | "position_ahead" | "position_pruned";
76
+ readonly status: "cursor_reset_required";
77
+ } | {
78
+ readonly method: "events.read";
79
+ readonly status: "invalid_cursor";
80
+ }>;
81
+ export type EventsReadResult = InferRuntimeSchema<typeof eventsReadResultSchema>;
35
82
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/event/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAWrE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC3E,eAAO,MAAM,aAAa,qEAA+C,CAAC;AAC1E,eAAO,MAAM,eAAe,qEAAiD,CAAC;AAC9E,eAAO,MAAM,uBAAuB;;;;;;EAEnC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,OAAO,uBAAuB,CAC/B,CAAC;AACF,eAAO,MAAM,iBAAiB,qEAE7B,CAAC;AACF,eAAO,MAAM,0BAA0B,qEAEtC,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/event/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAerE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC3E,eAAO,MAAM,aAAa,qEAA+C,CAAC;AAC1E,eAAO,MAAM,eAAe,qEAAiD,CAAC;AAC9E,eAAO,MAAM,uBAAuB;;;;;;EAEnC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,OAAO,uBAAuB,CAC/B,CAAC;AACF,eAAO,MAAM,iBAAiB,qEAE7B,CAAC;AACF,eAAO,MAAM,0BAA0B,qEAEtC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;EAEtC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CACnD,OAAO,0BAA0B,CAClC,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAC/C,OAAO,sBAAsB,CAC9B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { makeEffectRuntimeSchema } from "../runtime-schema/effect-schema.js";
2
2
  import { eventCursorClaimsEffectSchema, eventCursorEffectSchema, eventEnvelopeEffectSchema, eventIdEffectSchema, eventKindEffectSchema, federatedEventCursorEffectSchema, } from "./envelope-effect-schema.js";
3
+ import { eventsReadParametersEffectSchema, eventsReadResultEffectSchema, } from "./read-effect-schema.js";
3
4
  export { EVENT_CURSOR_PREFIX, EVENT_KIND_PATTERN, EVENT_SCHEMA_VERSION, FEDERATED_EVENT_CURSOR_PREFIX, MAX_EVENT_PAYLOAD_BYTES, } from "./format.js";
4
5
  export const eventEnvelopeSchema = makeEffectRuntimeSchema(eventEnvelopeEffectSchema);
5
6
  export const eventIdSchema = makeEffectRuntimeSchema(eventIdEffectSchema);
@@ -7,4 +8,6 @@ export const eventKindSchema = makeEffectRuntimeSchema(eventKindEffectSchema);
7
8
  export const eventCursorClaimsSchema = makeEffectRuntimeSchema(eventCursorClaimsEffectSchema);
8
9
  export const eventCursorSchema = makeEffectRuntimeSchema(eventCursorEffectSchema);
9
10
  export const federatedEventCursorSchema = makeEffectRuntimeSchema(federatedEventCursorEffectSchema);
11
+ export const eventsReadParametersSchema = makeEffectRuntimeSchema(eventsReadParametersEffectSchema);
12
+ export const eventsReadResultSchema = makeEffectRuntimeSchema(eventsReadResultEffectSchema);
10
13
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/event/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CACxD,yBAAyB,CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC,qBAAqB,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAC5D,6BAA6B,CAC9B,CAAC;AAIF,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CACtD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAC/D,gCAAgC,CACjC,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/event/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CACxD,yBAAyB,CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC,qBAAqB,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAC5D,6BAA6B,CAC9B,CAAC;AAIF,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CACtD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAC/D,gCAAgC,CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAC/D,gCAAgC,CACjC,CAAC;AAIF,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAC3D,4BAA4B,CAC7B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { eventEnvelopeEffectSchema } from "./envelope-effect-schema.js";
2
+ export { eventsReadResultEffectSchema, eventsRequestEffectSchema, } from "./read-effect-schema.js";
2
3
  //# sourceMappingURL=effect-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/event/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/event/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { eventEnvelopeEffectSchema } from "./envelope-effect-schema.js";
2
+ export { eventsReadResultEffectSchema, eventsRequestEffectSchema, } from "./read-effect-schema.js";
2
3
  //# sourceMappingURL=effect-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"effect-schema.js","sourceRoot":"","sources":["../../src/event/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"effect-schema.js","sourceRoot":"","sources":["../../src/event/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC"}
@@ -2,6 +2,8 @@ import * as Schema from "effect/Schema";
2
2
  export declare const eventIdEffectSchema: Schema.String;
3
3
  export declare const eventKindEffectSchema: Schema.String;
4
4
  export declare const eventSequenceEffectSchema: Schema.String;
5
+ /** A journal position; zero is the position before the first event. */
6
+ export declare const eventCursorSequenceEffectSchema: Schema.String;
5
7
  /** The envelope every event carries, in the journal and on the wire. */
6
8
  export declare const eventEnvelopeEffectSchema: Schema.Struct<{
7
9
  readonly command: Schema.optional<Schema.String>;
@@ -1 +1 @@
1
- {"version":3,"file":"envelope-effect-schema.d.ts","sourceRoot":"","sources":["../../src/event/envelope-effect-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAsGxC,eAAO,MAAM,mBAAmB,eAE/B,CAAC;AACF,eAAO,MAAM,qBAAqB,eAGjC,CAAC;AACF,eAAO,MAAM,yBAAyB,eAAmB,CAAC;AAQ1D,wEAAwE;AACxE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;EAgBrC,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B;;;;;;EAMxC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,eAEnC,CAAC;AACF,6DAA6D;AAC7D,eAAO,MAAM,gCAAgC,eAE5C,CAAC"}
1
+ {"version":3,"file":"envelope-effect-schema.d.ts","sourceRoot":"","sources":["../../src/event/envelope-effect-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAsGxC,eAAO,MAAM,mBAAmB,eAE/B,CAAC;AACF,eAAO,MAAM,qBAAqB,eAGjC,CAAC;AACF,eAAO,MAAM,yBAAyB,eAAmB,CAAC;AAC1D,uEAAuE;AACvE,eAAO,MAAM,+BAA+B,eAAiB,CAAC;AAQ9D,wEAAwE;AACxE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;EAgBrC,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B;;;;;;EAMxC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,eAEnC,CAAC;AACF,6DAA6D;AAC7D,eAAO,MAAM,gCAAgC,eAE5C,CAAC"}
@@ -75,6 +75,8 @@ const eventTimestamp = recordedAtEffectSchema.check(Schema.isPattern(/\.[0-9]{3}
75
75
  export const eventIdEffectSchema = Schema.String.check(Schema.isPattern(/^event_[0-7][0-9A-HJKMNP-TV-Z]{25}$/u));
76
76
  export const eventKindEffectSchema = Schema.String.check(Schema.isMaxLength(128), Schema.isPattern(EVENT_KIND_PATTERN));
77
77
  export const eventSequenceEffectSchema = positiveSequence;
78
+ /** A journal position; zero is the position before the first event. */
79
+ export const eventCursorSequenceEffectSchema = cursorSequence;
78
80
  const eventSubjectEffectSchema = Schema.Struct({
79
81
  id,
80
82
  seq: positiveSequence,
@@ -1 +1 @@
1
- {"version":3,"file":"envelope-effect-schema.js","sourceRoot":"","sources":["../../src/event/envelope-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAElD,OAAO,EACL,8BAA8B,IAAI,EAAE,EACpC,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,kBA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C,CAAC,CACnD,CAAC;AACF,6DAA6D;AAC7D,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CACjE,MAAM,CAAC,SAAS,CAAC,kCAAkC,CAAC,CACrD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { type MaiaOperationsFeature } from "../feature/descriptor/index.js";
2
+ /** The Node's event journal, read by cursor. */
3
+ export declare const EVENT_FEATURE_OPERATIONS: readonly [{
4
+ readonly method: "events.read";
5
+ readonly nodeHandler: "events";
6
+ readonly policy: {
7
+ readonly confirmation: "none";
8
+ readonly effectClass: "none";
9
+ readonly idempotency: "none";
10
+ readonly ownReceipt: false;
11
+ readonly receipt: "none";
12
+ readonly releaseQualified: false;
13
+ readonly revisionGuard: false;
14
+ readonly risk: "read";
15
+ };
16
+ readonly primitives: readonly ["read"];
17
+ readonly projections: {
18
+ readonly cli: false;
19
+ readonly coordinator: false;
20
+ readonly desktop: false;
21
+ readonly mobile: false;
22
+ readonly voice: false;
23
+ };
24
+ readonly sdk: {
25
+ readonly client: "local-node";
26
+ readonly operation: "call";
27
+ };
28
+ }];
29
+ export declare const EVENT_FEATURE: MaiaOperationsFeature<"events", typeof EVENT_FEATURE_OPERATIONS>;
30
+ //# sourceMappingURL=feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/event/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AAExC,gDAAgD;AAChD,eAAO,MAAM,wBAAwB;qBAEzB,aAAa;0BACR,QAAQ;;iBAEnB,YAAY,EAAE,MAAM;iBACpB,WAAW,EAAE,MAAM;iBACnB,WAAW,EAAE,MAAM;iBACnB,UAAU;iBACV,OAAO,EAAE,MAAM;iBACf,gBAAgB;iBAChB,aAAa;iBACb,IAAI,EAAE,MAAM;;;;iBAIZ,GAAG;iBACH,WAAW;iBACX,OAAO;iBACP,MAAM;iBACN,KAAK;;;iBAEA,MAAM,EAAE,YAAY;iBAAE,SAAS,EAAE,MAAM;;EAEY,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,qBAAqB,CAC/C,QAAQ,EACR,OAAO,wBAAwB,CAM/B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { defineMaiaFeature, } from "../feature/descriptor/index.js";
2
+ /** The Node's event journal, read by cursor. */
3
+ export const EVENT_FEATURE_OPERATIONS = [
4
+ {
5
+ method: "events.read",
6
+ nodeHandler: "events",
7
+ policy: {
8
+ confirmation: "none",
9
+ effectClass: "none",
10
+ idempotency: "none",
11
+ ownReceipt: false,
12
+ receipt: "none",
13
+ releaseQualified: false,
14
+ revisionGuard: false,
15
+ risk: "read",
16
+ },
17
+ primitives: ["read"],
18
+ projections: {
19
+ cli: false,
20
+ coordinator: false,
21
+ desktop: false,
22
+ mobile: false,
23
+ voice: false,
24
+ },
25
+ sdk: { client: "local-node", operation: "call" },
26
+ },
27
+ ];
28
+ export const EVENT_FEATURE = defineMaiaFeature({
29
+ contributions: { routines: [], rules: [], schedules: [], skills: [] },
30
+ id: "events",
31
+ operations: EVENT_FEATURE_OPERATIONS,
32
+ schemaVersion: "maia.feature/events/v1",
33
+ });
34
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sourceRoot":"","sources":["../../src/event/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,GAGlB,MAAM,gCAAgC,CAAC;AAExC,gDAAgD;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC;QACE,MAAM,EAAE,aAAa;QACrB,WAAW,EAAE,QAAQ;QACrB,MAAM,EAAE;YACN,YAAY,EAAE,MAAM;YACpB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE,KAAK;YACjB,OAAO,EAAE,MAAM;YACf,gBAAgB,EAAE,KAAK;YACvB,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,MAAM;SACb;QACD,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE;YACX,GAAG,EAAE,KAAK;YACV,WAAW,EAAE,KAAK;YAClB,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;SACb;QACD,GAAG,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE;KACjD;CAC2D,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAGtB,iBAAiB,CAAC;IACpB,aAAa,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IACrE,EAAE,EAAE,QAAQ;IACZ,UAAU,EAAE,wBAAwB;IACpC,aAAa,EAAE,wBAAwB;CACxC,CAAC,CAAC"}
@@ -5,4 +5,10 @@ export declare const EVENT_CURSOR_PREFIX = "ev1.";
5
5
  export declare const FEDERATED_EVENT_CURSOR_PREFIX = "evf1.";
6
6
  /** `<source>.<noun>[.<qualifier>…]`: 2 to 5 segments, the first is the source. */
7
7
  export declare const EVENT_KIND_PATTERN: RegExp;
8
+ /** The most events one page returns. */
9
+ export declare const MAX_EVENTS_READ_LIMIT = 100;
10
+ /** The most serialized bytes one page returns, under the 256 KiB frame cap. */
11
+ export declare const MAX_EVENTS_READ_PAGE_BYTES: number;
12
+ /** The most kinds one filter names. */
13
+ export declare const MAX_EVENTS_READ_KINDS = 16;
8
14
  //# sourceMappingURL=format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/event/format.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,QAAY,CAAC;AACjD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,6BAA6B,UAAU,CAAC;AAErD,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,QACmB,CAAC"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/event/format.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,QAAY,CAAC;AACjD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,6BAA6B,UAAU,CAAC;AAErD,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,QACmB,CAAC;AAEnD,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,QAAa,CAAC;AACrD,uCAAuC;AACvC,eAAO,MAAM,qBAAqB,KAAK,CAAC"}
@@ -5,4 +5,10 @@ export const EVENT_CURSOR_PREFIX = "ev1.";
5
5
  export const FEDERATED_EVENT_CURSOR_PREFIX = "evf1.";
6
6
  /** `<source>.<noun>[.<qualifier>…]`: 2 to 5 segments, the first is the source. */
7
7
  export const EVENT_KIND_PATTERN = /^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*){1,4}$/u;
8
+ /** The most events one page returns. */
9
+ export const MAX_EVENTS_READ_LIMIT = 100;
10
+ /** The most serialized bytes one page returns, under the 256 KiB frame cap. */
11
+ export const MAX_EVENTS_READ_PAGE_BYTES = 192 * 1024;
12
+ /** The most kinds one filter names. */
13
+ export const MAX_EVENTS_READ_KINDS = 16;
8
14
  //# sourceMappingURL=format.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/event/format.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC;AACpD,oEAAoE;AACpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,IAAI,CAAC;AACjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAC1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC;AAErD,kFAAkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAC7B,gDAAgD,CAAC"}
1
+ {"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/event/format.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC;AACpD,oEAAoE;AACpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,IAAI,CAAC;AACjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAC1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC;AAErD,kFAAkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAC7B,gDAAgD,CAAC;AAEnD,wCAAwC;AACxC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AACzC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,GAAG,IAAI,CAAC;AACrD,uCAAuC;AACvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAC"}
@@ -1,3 +1,5 @@
1
- export { EVENT_CURSOR_PREFIX, EVENT_KIND_PATTERN, EVENT_SCHEMA_VERSION, type EventCursorClaims, eventCursorClaimsSchema, eventCursorSchema, type EventEnvelope, eventEnvelopeSchema, eventIdSchema, eventKindSchema, FEDERATED_EVENT_CURSOR_PREFIX, federatedEventCursorSchema, MAX_EVENT_PAYLOAD_BYTES, } from "./contract.js";
1
+ export { EVENT_CURSOR_PREFIX, EVENT_KIND_PATTERN, EVENT_SCHEMA_VERSION, type EventCursorClaims, eventCursorClaimsSchema, eventCursorSchema, type EventEnvelope, eventEnvelopeSchema, eventIdSchema, eventKindSchema, type EventsReadParameters, eventsReadParametersSchema, type EventsReadResult, eventsReadResultSchema, FEDERATED_EVENT_CURSOR_PREFIX, federatedEventCursorSchema, MAX_EVENT_PAYLOAD_BYTES, } from "./contract.js";
2
+ export { EVENT_FEATURE } from "./feature.js";
3
+ export { MAX_EVENTS_READ_KINDS, MAX_EVENTS_READ_LIMIT, MAX_EVENTS_READ_PAGE_BYTES, } from "./format.js";
2
4
  export { EVENT_KIND_REGISTRY, EVENT_SOURCES, type EventExposure, type EventKindRegistration, findEventKind, } from "./registry.js";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,aAAa,EAClB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,aAAa,GACd,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,aAAa,EAClB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,aAAa,GACd,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
- export { EVENT_CURSOR_PREFIX, EVENT_KIND_PATTERN, EVENT_SCHEMA_VERSION, eventCursorClaimsSchema, eventCursorSchema, eventEnvelopeSchema, eventIdSchema, eventKindSchema, FEDERATED_EVENT_CURSOR_PREFIX, federatedEventCursorSchema, MAX_EVENT_PAYLOAD_BYTES, } from "./contract.js";
1
+ export { EVENT_CURSOR_PREFIX, EVENT_KIND_PATTERN, EVENT_SCHEMA_VERSION, eventCursorClaimsSchema, eventCursorSchema, eventEnvelopeSchema, eventIdSchema, eventKindSchema, eventsReadParametersSchema, eventsReadResultSchema, FEDERATED_EVENT_CURSOR_PREFIX, federatedEventCursorSchema, MAX_EVENT_PAYLOAD_BYTES, } from "./contract.js";
2
+ export { EVENT_FEATURE } from "./feature.js";
3
+ export { MAX_EVENTS_READ_KINDS, MAX_EVENTS_READ_LIMIT, MAX_EVENTS_READ_PAGE_BYTES, } from "./format.js";
2
4
  export { EVENT_KIND_REGISTRY, EVENT_SOURCES, findEventKind, } from "./registry.js";
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EAEpB,uBAAuB,EACvB,iBAAiB,EAEjB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,aAAa,EAGb,aAAa,GACd,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EAEpB,uBAAuB,EACvB,iBAAiB,EAEjB,mBAAmB,EACnB,aAAa,EACb,eAAe,EAEf,0BAA0B,EAE1B,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,aAAa,EAGb,aAAa,GACd,MAAM,eAAe,CAAC"}
@@ -0,0 +1,105 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const eventsReadParametersEffectSchema: Schema.Struct<{
3
+ readonly kinds: Schema.optional<Schema.$Array<Schema.String>>;
4
+ readonly limit: Schema.optional<Schema.Int>;
5
+ readonly since: Schema.optional<Schema.Union<readonly [Schema.String, Schema.String, Schema.String]>>;
6
+ readonly subject: Schema.optional<Schema.Struct<{
7
+ readonly id: Schema.String;
8
+ readonly type: Schema.String;
9
+ }>>;
10
+ }>;
11
+ /**
12
+ * One page of events after the cursor, in order. `next` resumes after the
13
+ * last event returned, or after the last one examined when a filter matched
14
+ * nothing.
15
+ */
16
+ export declare const eventsReadPageEffectSchema: Schema.Struct<{
17
+ readonly head: Schema.String;
18
+ readonly method: Schema.Literal<"events.read">;
19
+ readonly oldest: Schema.String;
20
+ readonly events: Schema.$Array<Schema.Struct<{
21
+ readonly command: Schema.optional<Schema.String>;
22
+ readonly id: Schema.String;
23
+ readonly kind: Schema.String;
24
+ readonly node: Schema.String;
25
+ readonly payload: Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>;
26
+ readonly schemaVersion: Schema.Literal<"maia.event.v2">;
27
+ readonly seq: Schema.String;
28
+ readonly source: Schema.String;
29
+ readonly subject: Schema.Struct<{
30
+ readonly id: Schema.String;
31
+ readonly seq: Schema.String;
32
+ readonly type: Schema.String;
33
+ }>;
34
+ readonly ts: Schema.String;
35
+ readonly v: Schema.Int;
36
+ }>>;
37
+ readonly next: Schema.String;
38
+ readonly status: Schema.Literal<"ok">;
39
+ }>;
40
+ /**
41
+ * The cursor no longer fits the journal (retention ran, the journal was
42
+ * restored, the position is ahead of the journal, or the cursor expired).
43
+ * `next` is a cursor placed before `oldest`: resuming from it skips no event that
44
+ * remains.
45
+ */
46
+ export declare const eventsReadResetEffectSchema: Schema.Struct<{
47
+ readonly head: Schema.String;
48
+ readonly method: Schema.Literal<"events.read">;
49
+ readonly oldest: Schema.String;
50
+ readonly next: Schema.String;
51
+ readonly reason: Schema.Literals<readonly ["cursor_expired", "epoch_changed", "position_ahead", "position_pruned"]>;
52
+ readonly status: Schema.Literal<"cursor_reset_required">;
53
+ }>;
54
+ /** The cursor is not one this Node issued for this filter. */
55
+ export declare const eventsReadInvalidCursorEffectSchema: Schema.Struct<{
56
+ readonly method: Schema.Literal<"events.read">;
57
+ readonly status: Schema.Literal<"invalid_cursor">;
58
+ }>;
59
+ export declare const eventsReadResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
60
+ readonly head: Schema.String;
61
+ readonly method: Schema.Literal<"events.read">;
62
+ readonly oldest: Schema.String;
63
+ readonly events: Schema.$Array<Schema.Struct<{
64
+ readonly command: Schema.optional<Schema.String>;
65
+ readonly id: Schema.String;
66
+ readonly kind: Schema.String;
67
+ readonly node: Schema.String;
68
+ readonly payload: Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>;
69
+ readonly schemaVersion: Schema.Literal<"maia.event.v2">;
70
+ readonly seq: Schema.String;
71
+ readonly source: Schema.String;
72
+ readonly subject: Schema.Struct<{
73
+ readonly id: Schema.String;
74
+ readonly seq: Schema.String;
75
+ readonly type: Schema.String;
76
+ }>;
77
+ readonly ts: Schema.String;
78
+ readonly v: Schema.Int;
79
+ }>>;
80
+ readonly next: Schema.String;
81
+ readonly status: Schema.Literal<"ok">;
82
+ }>, Schema.Struct<{
83
+ readonly head: Schema.String;
84
+ readonly method: Schema.Literal<"events.read">;
85
+ readonly oldest: Schema.String;
86
+ readonly next: Schema.String;
87
+ readonly reason: Schema.Literals<readonly ["cursor_expired", "epoch_changed", "position_ahead", "position_pruned"]>;
88
+ readonly status: Schema.Literal<"cursor_reset_required">;
89
+ }>, Schema.Struct<{
90
+ readonly method: Schema.Literal<"events.read">;
91
+ readonly status: Schema.Literal<"invalid_cursor">;
92
+ }>]>;
93
+ export declare const eventsRequestEffectSchema: Schema.Struct<{
94
+ readonly method: Schema.Literal<"events.read">;
95
+ readonly parameters: Schema.Struct<{
96
+ readonly kinds: Schema.optional<Schema.$Array<Schema.String>>;
97
+ readonly limit: Schema.optional<Schema.Int>;
98
+ readonly since: Schema.optional<Schema.Union<readonly [Schema.String, Schema.String, Schema.String]>>;
99
+ readonly subject: Schema.optional<Schema.Struct<{
100
+ readonly id: Schema.String;
101
+ readonly type: Schema.String;
102
+ }>>;
103
+ }>;
104
+ }>;
105
+ //# sourceMappingURL=read-effect-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-effect-schema.d.ts","sourceRoot":"","sources":["../../src/event/read-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAqBxC,eAAO,MAAM,gCAAgC;;;;;;;;EAc3C,CAAC;AAQH;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;EAUtC,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,mCAAmC;;;EAG9C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIvC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;EAGpC,CAAC"}
@@ -0,0 +1,64 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { protocolIdentifierEffectSchema as id } from "../envelope/effect-schema.js";
3
+ import { eventCursorEffectSchema, eventCursorSequenceEffectSchema, eventEnvelopeEffectSchema, eventIdEffectSchema, eventKindEffectSchema, eventSequenceEffectSchema, } from "./envelope-effect-schema.js";
4
+ import { MAX_EVENTS_READ_KINDS, MAX_EVENTS_READ_LIMIT } from "./format.js";
5
+ /** Where to start: a cursor, an event ID or a sequence. Absent means the oldest event kept. */
6
+ const eventsSinceEffectSchema = Schema.Union([
7
+ eventCursorEffectSchema,
8
+ eventIdEffectSchema,
9
+ eventSequenceEffectSchema,
10
+ ]);
11
+ export const eventsReadParametersEffectSchema = Schema.Struct({
12
+ kinds: Schema.optional(Schema.Array(eventKindEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(MAX_EVENTS_READ_KINDS))),
13
+ limit: Schema.optional(Schema.Int.check(Schema.isBetween({ maximum: MAX_EVENTS_READ_LIMIT, minimum: 1 }))),
14
+ since: Schema.optional(eventsSinceEffectSchema),
15
+ subject: Schema.optional(Schema.Struct({ id, type: id })),
16
+ });
17
+ const position = {
18
+ head: eventCursorSequenceEffectSchema,
19
+ method: Schema.Literal("events.read"),
20
+ oldest: eventCursorSequenceEffectSchema,
21
+ };
22
+ /**
23
+ * One page of events after the cursor, in order. `next` resumes after the
24
+ * last event returned, or after the last one examined when a filter matched
25
+ * nothing.
26
+ */
27
+ export const eventsReadPageEffectSchema = Schema.Struct({
28
+ ...position,
29
+ events: Schema.Array(eventEnvelopeEffectSchema),
30
+ next: eventCursorEffectSchema,
31
+ status: Schema.Literal("ok"),
32
+ });
33
+ /**
34
+ * The cursor no longer fits the journal (retention ran, the journal was
35
+ * restored, the position is ahead of the journal, or the cursor expired).
36
+ * `next` is a cursor placed before `oldest`: resuming from it skips no event that
37
+ * remains.
38
+ */
39
+ export const eventsReadResetEffectSchema = Schema.Struct({
40
+ ...position,
41
+ next: eventCursorEffectSchema,
42
+ reason: Schema.Literals([
43
+ "cursor_expired",
44
+ "epoch_changed",
45
+ "position_ahead",
46
+ "position_pruned",
47
+ ]),
48
+ status: Schema.Literal("cursor_reset_required"),
49
+ });
50
+ /** The cursor is not one this Node issued for this filter. */
51
+ export const eventsReadInvalidCursorEffectSchema = Schema.Struct({
52
+ method: Schema.Literal("events.read"),
53
+ status: Schema.Literal("invalid_cursor"),
54
+ });
55
+ export const eventsReadResultEffectSchema = Schema.Union([
56
+ eventsReadPageEffectSchema,
57
+ eventsReadResetEffectSchema,
58
+ eventsReadInvalidCursorEffectSchema,
59
+ ]);
60
+ export const eventsRequestEffectSchema = Schema.Struct({
61
+ method: Schema.Literal("events.read"),
62
+ parameters: eventsReadParametersEffectSchema,
63
+ });
64
+ //# sourceMappingURL=read-effect-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-effect-schema.js","sourceRoot":"","sources":["../../src/event/read-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,8BAA8B,IAAI,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE3E,+FAA+F;AAC/F,MAAM,uBAAuB,GAAG,MAAM,CAAC,KAAK,CAAC;IAC3C,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5D,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,KAAK,CACvC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EACrB,MAAM,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAC1C,CACF;IACD,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,GAAG,CAAC,KAA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,MAAM,4BAA4B,GAAG,MAAM,CAAC,KAAK,CAAC;IACvD,0BAA0B;IAC1B,2BAA2B;IAC3B,mCAAmC;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;IACrC,UAAU,EAAE,gCAAgC;CAC7C,CAAC,CAAC"}
@@ -4,6 +4,7 @@ import { RECEIPT_FEATURE } from "../command-receipt/index.js";
4
4
  import { CONNECTION_FEATURE } from "../connection/index.js";
5
5
  import { PORTFOLIO_FEATURE } from "../container/index.js";
6
6
  import { DISCOVERY_FEATURE } from "../discovery/index.js";
7
+ import { EVENT_FEATURE } from "../event/index.js";
7
8
  import { INTERACTION_FEATURE } from "../interaction/index.js";
8
9
  import type { LocalNodeRequestMethod } from "../local-node/node-api/index.js";
9
10
  import { RUN_FEATURE } from "../orchestration/index.js";
@@ -47,6 +48,7 @@ type RegisteredFeatures = readonly [
47
48
  typeof PORT_LEASE_FEATURE,
48
49
  typeof RUN_LEDGER_FEATURE,
49
50
  typeof REFERENCE_FEATURE,
51
+ typeof EVENT_FEATURE,
50
52
  typeof TEAM_WORKSPACE_FEATURE,
51
53
  typeof AGENTS_FEATURE,
52
54
  typeof ROUTINE_FEATURE
@@ -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;AAC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CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC/D,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;AAClE,MAAM,MAAM,8BAA8B,GACxC,qBAAqB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,EAAE,SAAS,8BAA8B,EAG1E,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GACpC,8BAA8B,CAAC,QAAQ,CAAC,CAAC;AAC3C,MAAM,MAAM,sBAAsB,GAChC,8BAA8B,CAAC,aAAa,CAAC,CAAC;AAChD,MAAM,MAAM,4BAA4B,CACtC,QAAQ,SAAS,sBAAsB,IACrC,OAAO,CACT,8BAA8B,EAC9B;IAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAA;CAAE,CACnC,CAAC,QAAQ,CAAC,CAAC;AAEZ,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EACN,UAAU,IAAI,8BAA8B,IAAI,UAAU,CAAC,QAAQ,CAAC,GACnE,UAAU,CAAC,KAAK,CAAC,SAAS,qBAAqB,GAC9C,UAAU,CAAC,KAAK,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACzC,KAAK,CAAC,QAAQ,SAAS,sBAAsB,WAEpC,QAAQ,UACT,sBAAsB,KAC7B,MAAM,IAAI,4BAA4B,CAAC,QAAQ,CAI/C,CAAC"}
@@ -4,6 +4,7 @@ import { RECEIPT_FEATURE } from "../command-receipt/index.js";
4
4
  import { CONNECTION_FEATURE } from "../connection/index.js";
5
5
  import { PORTFOLIO_FEATURE } from "../container/index.js";
6
6
  import { DISCOVERY_FEATURE } from "../discovery/index.js";
7
+ import { EVENT_FEATURE } from "../event/index.js";
7
8
  import { INTERACTION_FEATURE } from "../interaction/index.js";
8
9
  import { RUN_FEATURE } from "../orchestration/index.js";
9
10
  import { PORT_LEASE_FEATURE } from "../port-lease/index.js";
@@ -40,6 +41,7 @@ export const MAIA_FEATURE_REGISTRY = [
40
41
  PORT_LEASE_FEATURE,
41
42
  RUN_LEDGER_FEATURE,
42
43
  REFERENCE_FEATURE,
44
+ EVENT_FEATURE,
43
45
  TEAM_WORKSPACE_FEATURE,
44
46
  AGENTS_FEATURE,
45
47
  ROUTINE_FEATURE,