@moltzap/client 2026.812.0 → 2026.902.0
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/LICENSE +202 -21
- package/NOTICE +19 -0
- package/README.md +50 -0
- package/bin/moltzapd +9 -0
- package/dist/client-runtime.d.ts +10 -0
- package/dist/client-runtime.d.ts.map +1 -0
- package/dist/client-runtime.js +218 -0
- package/dist/client-runtime.js.map +1 -0
- package/dist/contract.d.ts +338 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +213 -0
- package/dist/contract.js.map +1 -0
- package/dist/contract.types-check.d.ts +99 -0
- package/dist/contract.types-check.d.ts.map +1 -0
- package/dist/contract.types-check.js +7 -0
- package/dist/contract.types-check.js.map +1 -0
- package/dist/daemon/configuration.d.ts +46 -0
- package/dist/daemon/configuration.d.ts.map +1 -0
- package/dist/daemon/configuration.js +69 -0
- package/dist/daemon/configuration.js.map +1 -0
- package/dist/daemon/management.d.ts +23 -0
- package/dist/daemon/management.d.ts.map +1 -0
- package/dist/daemon/management.js +489 -0
- package/dist/daemon/management.js.map +1 -0
- package/dist/daemon/registration.d.ts +72 -0
- package/dist/daemon/registration.d.ts.map +1 -0
- package/dist/daemon/registration.js +109 -0
- package/dist/daemon/registration.js.map +1 -0
- package/dist/daemon/runtime/activation.d.ts +95 -0
- package/dist/daemon/runtime/activation.d.ts.map +1 -0
- package/dist/daemon/runtime/activation.js +99 -0
- package/dist/daemon/runtime/activation.js.map +1 -0
- package/dist/daemon/runtime/controller.d.ts +34 -0
- package/dist/daemon/runtime/controller.d.ts.map +1 -0
- package/dist/daemon/runtime/controller.js +106 -0
- package/dist/daemon/runtime/controller.js.map +1 -0
- package/dist/daemon/runtime/history-export.d.ts +23 -0
- package/dist/daemon/runtime/history-export.d.ts.map +1 -0
- package/dist/daemon/runtime/history-export.js +47 -0
- package/dist/daemon/runtime/history-export.js.map +1 -0
- package/dist/daemon/runtime/index.d.ts +24 -0
- package/dist/daemon/runtime/index.d.ts.map +1 -0
- package/dist/daemon/runtime/index.js +65 -0
- package/dist/daemon/runtime/index.js.map +1 -0
- package/dist/daemon/runtime/protocol.d.ts +63 -0
- package/dist/daemon/runtime/protocol.d.ts.map +1 -0
- package/dist/daemon/runtime/protocol.js +133 -0
- package/dist/daemon/runtime/protocol.js.map +1 -0
- package/dist/endpoint/addressing/index.d.ts +39 -0
- package/dist/endpoint/addressing/index.d.ts.map +1 -0
- package/dist/endpoint/addressing/index.js +114 -0
- package/dist/endpoint/addressing/index.js.map +1 -0
- package/dist/endpoint/engine-dissemination.d.ts +11 -0
- package/dist/endpoint/engine-dissemination.d.ts.map +1 -0
- package/dist/endpoint/engine-dissemination.js +71 -0
- package/dist/endpoint/engine-dissemination.js.map +1 -0
- package/dist/endpoint/engine-durability.d.ts +69 -0
- package/dist/endpoint/engine-durability.d.ts.map +1 -0
- package/dist/endpoint/engine-durability.js +210 -0
- package/dist/endpoint/engine-durability.js.map +1 -0
- package/dist/endpoint/engine-send.d.ts +50 -0
- package/dist/endpoint/engine-send.d.ts.map +1 -0
- package/dist/endpoint/engine-send.js +422 -0
- package/dist/endpoint/engine-send.js.map +1 -0
- package/dist/endpoint/engine-types.d.ts +132 -0
- package/dist/endpoint/engine-types.d.ts.map +1 -0
- package/dist/endpoint/engine-types.js +13 -0
- package/dist/endpoint/engine-types.js.map +1 -0
- package/dist/endpoint/engine.d.ts +14 -0
- package/dist/endpoint/engine.d.ts.map +1 -0
- package/dist/endpoint/engine.js +280 -0
- package/dist/endpoint/engine.js.map +1 -0
- package/dist/endpoint/protocol/evidence.d.ts +37 -0
- package/dist/endpoint/protocol/evidence.d.ts.map +1 -0
- package/dist/endpoint/protocol/evidence.js +80 -0
- package/dist/endpoint/protocol/evidence.js.map +1 -0
- package/dist/endpoint/protocol/index.d.ts +26 -0
- package/dist/endpoint/protocol/index.d.ts.map +1 -0
- package/dist/endpoint/protocol/index.js +543 -0
- package/dist/endpoint/protocol/index.js.map +1 -0
- package/dist/endpoint/recovery/barrier.d.ts +23 -0
- package/dist/endpoint/recovery/barrier.d.ts.map +1 -0
- package/dist/endpoint/recovery/barrier.js +47 -0
- package/dist/endpoint/recovery/barrier.js.map +1 -0
- package/dist/endpoint/recovery/index.d.ts +29 -0
- package/dist/endpoint/recovery/index.d.ts.map +1 -0
- package/dist/endpoint/recovery/index.js +489 -0
- package/dist/endpoint/recovery/index.js.map +1 -0
- package/dist/endpoint/recovery/reanchor/empty.d.ts +22 -0
- package/dist/endpoint/recovery/reanchor/empty.d.ts.map +1 -0
- package/dist/endpoint/recovery/reanchor/empty.js +163 -0
- package/dist/endpoint/recovery/reanchor/empty.js.map +1 -0
- package/dist/endpoint/recovery/reanchor/index.d.ts +30 -0
- package/dist/endpoint/recovery/reanchor/index.d.ts.map +1 -0
- package/dist/endpoint/recovery/reanchor/index.js +479 -0
- package/dist/endpoint/recovery/reanchor/index.js.map +1 -0
- package/dist/endpoint/recovery/state.d.ts +130 -0
- package/dist/endpoint/recovery/state.d.ts.map +1 -0
- package/dist/endpoint/recovery/state.js +296 -0
- package/dist/endpoint/recovery/state.js.map +1 -0
- package/dist/endpoint/recovery/store-evidence.d.ts +17 -0
- package/dist/endpoint/recovery/store-evidence.d.ts.map +1 -0
- package/dist/endpoint/recovery/store-evidence.js +79 -0
- package/dist/endpoint/recovery/store-evidence.js.map +1 -0
- package/dist/endpoint/recovery/store.d.ts +56 -0
- package/dist/endpoint/recovery/store.d.ts.map +1 -0
- package/dist/endpoint/recovery/store.js +499 -0
- package/dist/endpoint/recovery/store.js.map +1 -0
- package/dist/endpoint/representation-canonical.d.ts +17 -0
- package/dist/endpoint/representation-canonical.d.ts.map +1 -0
- package/dist/endpoint/representation-canonical.js +48 -0
- package/dist/endpoint/representation-canonical.js.map +1 -0
- package/dist/endpoint/representation-codec.d.ts +51 -0
- package/dist/endpoint/representation-codec.d.ts.map +1 -0
- package/dist/endpoint/representation-codec.js +159 -0
- package/dist/endpoint/representation-codec.js.map +1 -0
- package/dist/endpoint/representation-schemas.d.ts +1831 -0
- package/dist/endpoint/representation-schemas.d.ts.map +1 -0
- package/dist/endpoint/representation-schemas.js +195 -0
- package/dist/endpoint/representation-schemas.js.map +1 -0
- package/dist/endpoint/representation-verification.d.ts +79 -0
- package/dist/endpoint/representation-verification.d.ts.map +1 -0
- package/dist/endpoint/representation-verification.js +420 -0
- package/dist/endpoint/representation-verification.js.map +1 -0
- package/dist/endpoint/representation.d.ts +6 -0
- package/dist/endpoint/representation.d.ts.map +1 -0
- package/dist/endpoint/representation.js +8 -0
- package/dist/endpoint/representation.js.map +1 -0
- package/dist/endpoint/router-worker/index.d.ts +16 -0
- package/dist/endpoint/router-worker/index.d.ts.map +1 -0
- package/dist/endpoint/router-worker/index.js +547 -0
- package/dist/endpoint/router-worker/index.js.map +1 -0
- package/dist/endpoint/router-worker/types.d.ts +183 -0
- package/dist/endpoint/router-worker/types.d.ts.map +1 -0
- package/dist/endpoint/router-worker/types.js +31 -0
- package/dist/endpoint/router-worker/types.js.map +1 -0
- package/dist/endpoint/store/anchors.d.ts +83 -0
- package/dist/endpoint/store/anchors.d.ts.map +1 -0
- package/dist/endpoint/store/anchors.js +471 -0
- package/dist/endpoint/store/anchors.js.map +1 -0
- package/dist/endpoint/store/database/index.d.ts +6 -0
- package/dist/endpoint/store/database/index.d.ts.map +1 -0
- package/dist/endpoint/store/database/index.js +6 -0
- package/dist/endpoint/store/database/index.js.map +1 -0
- package/dist/endpoint/store/database/schema.d.ts +44 -0
- package/dist/endpoint/store/database/schema.d.ts.map +1 -0
- package/dist/endpoint/store/database/schema.js +345 -0
- package/dist/endpoint/store/database/schema.js.map +1 -0
- package/dist/endpoint/store/database/values.d.ts +119 -0
- package/dist/endpoint/store/database/values.d.ts.map +1 -0
- package/dist/endpoint/store/database/values.js +194 -0
- package/dist/endpoint/store/database/values.js.map +1 -0
- package/dist/endpoint/store/deliveries.d.ts +38 -0
- package/dist/endpoint/store/deliveries.d.ts.map +1 -0
- package/dist/endpoint/store/deliveries.js +124 -0
- package/dist/endpoint/store/deliveries.js.map +1 -0
- package/dist/endpoint/store/dissemination.d.ts +27 -0
- package/dist/endpoint/store/dissemination.d.ts.map +1 -0
- package/dist/endpoint/store/dissemination.js +139 -0
- package/dist/endpoint/store/dissemination.js.map +1 -0
- package/dist/endpoint/store/index.d.ts +15 -0
- package/dist/endpoint/store/index.d.ts.map +1 -0
- package/dist/endpoint/store/index.js +76 -0
- package/dist/endpoint/store/index.js.map +1 -0
- package/dist/endpoint/store/management.d.ts +42 -0
- package/dist/endpoint/store/management.d.ts.map +1 -0
- package/dist/endpoint/store/management.js +259 -0
- package/dist/endpoint/store/management.js.map +1 -0
- package/dist/endpoint/store/outbound.d.ts +62 -0
- package/dist/endpoint/store/outbound.d.ts.map +1 -0
- package/dist/endpoint/store/outbound.js +278 -0
- package/dist/endpoint/store/outbound.js.map +1 -0
- package/dist/endpoint/store/records.d.ts +56 -0
- package/dist/endpoint/store/records.d.ts.map +1 -0
- package/dist/endpoint/store/records.js +352 -0
- package/dist/endpoint/store/records.js.map +1 -0
- package/dist/endpoint/store/rows/index.d.ts +138 -0
- package/dist/endpoint/store/rows/index.d.ts.map +1 -0
- package/dist/endpoint/store/rows/index.js +307 -0
- package/dist/endpoint/store/rows/index.js.map +1 -0
- package/dist/endpoint/store/types.d.ts +223 -0
- package/dist/endpoint/store/types.d.ts.map +1 -0
- package/dist/endpoint/store/types.js +15 -0
- package/dist/endpoint/store/types.js.map +1 -0
- package/dist/endpoint/store.d.ts +10 -0
- package/dist/endpoint/store.d.ts.map +1 -0
- package/dist/endpoint/store.js +6 -0
- package/dist/endpoint/store.js.map +1 -0
- package/dist/harness-mcp-contract.d.ts +101 -0
- package/dist/harness-mcp-contract.d.ts.map +1 -0
- package/dist/harness-mcp-contract.js +61 -0
- package/dist/harness-mcp-contract.js.map +1 -0
- package/dist/{harness-mcp-server.d.ts → harness-mcp-http.d.ts} +9 -8
- package/dist/harness-mcp-http.d.ts.map +1 -0
- package/dist/{harness-mcp-server.js → harness-mcp-http.js} +38 -60
- package/dist/harness-mcp-http.js.map +1 -0
- package/dist/harness-mcp-subscription.d.ts +12 -7
- package/dist/harness-mcp-subscription.d.ts.map +1 -1
- package/dist/harness-mcp-subscription.js +113 -100
- package/dist/harness-mcp-subscription.js.map +1 -1
- package/dist/harness-mcp-wire.d.ts +24 -49
- package/dist/harness-mcp-wire.d.ts.map +1 -1
- package/dist/harness-mcp-wire.js +381 -124
- package/dist/harness-mcp-wire.js.map +1 -1
- package/dist/index.d.ts +4 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/management-runtime.d.ts +217 -0
- package/dist/management-runtime.d.ts.map +1 -0
- package/dist/management-runtime.js +127 -0
- package/dist/management-runtime.js.map +1 -0
- package/dist/server.d.ts +16 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +46 -0
- package/dist/server.js.map +1 -0
- package/dist/server.types-check.d.ts +23 -0
- package/dist/server.types-check.d.ts.map +1 -0
- package/dist/server.types-check.js +7 -0
- package/dist/server.types-check.js.map +1 -0
- package/package.json +24 -52
- package/dist/agent-client.d.ts +0 -5
- package/dist/agent-client.d.ts.map +0 -1
- package/dist/agent-client.js +0 -3
- package/dist/agent-client.js.map +0 -1
- package/dist/auth.d.ts +0 -37
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -79
- package/dist/auth.js.map +0 -1
- package/dist/bounded-map.d.ts +0 -32
- package/dist/bounded-map.d.ts.map +0 -1
- package/dist/bounded-map.js +0 -79
- package/dist/bounded-map.js.map +0 -1
- package/dist/channel-base/format-cross-conv.d.ts +0 -43
- package/dist/channel-base/format-cross-conv.d.ts.map +0 -1
- package/dist/channel-base/format-cross-conv.js +0 -65
- package/dist/channel-base/format-cross-conv.js.map +0 -1
- package/dist/channel-base/format-group-block.d.ts +0 -48
- package/dist/channel-base/format-group-block.d.ts.map +0 -1
- package/dist/channel-base/format-group-block.js +0 -62
- package/dist/channel-base/format-group-block.js.map +0 -1
- package/dist/channel-base/index.d.ts +0 -12
- package/dist/channel-base/index.d.ts.map +0 -1
- package/dist/channel-base/index.js +0 -16
- package/dist/channel-base/index.js.map +0 -1
- package/dist/channel-core-enrichment.d.ts +0 -38
- package/dist/channel-core-enrichment.d.ts.map +0 -1
- package/dist/channel-core-enrichment.js +0 -217
- package/dist/channel-core-enrichment.js.map +0 -1
- package/dist/channel-core-test-support.d.ts +0 -75
- package/dist/channel-core-test-support.d.ts.map +0 -1
- package/dist/channel-core-test-support.js +0 -74
- package/dist/channel-core-test-support.js.map +0 -1
- package/dist/channel-core.d.ts +0 -306
- package/dist/channel-core.d.ts.map +0 -1
- package/dist/channel-core.js +0 -365
- package/dist/channel-core.js.map +0 -1
- package/dist/config.d.ts +0 -33
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -51
- package/dist/config.js.map +0 -1
- package/dist/config.test-utils.d.ts +0 -24
- package/dist/config.test-utils.d.ts.map +0 -1
- package/dist/config.test-utils.js +0 -57
- package/dist/config.test-utils.js.map +0 -1
- package/dist/harness/client-runtime.d.ts +0 -31
- package/dist/harness/client-runtime.d.ts.map +0 -1
- package/dist/harness/client-runtime.js +0 -121
- package/dist/harness/client-runtime.js.map +0 -1
- package/dist/harness/index.d.ts +0 -5
- package/dist/harness/index.d.ts.map +0 -1
- package/dist/harness/index.js +0 -5
- package/dist/harness/index.js.map +0 -1
- package/dist/harness/runtime.d.ts +0 -301
- package/dist/harness/runtime.d.ts.map +0 -1
- package/dist/harness/runtime.js +0 -165
- package/dist/harness/runtime.js.map +0 -1
- package/dist/harness-client.d.ts +0 -47
- package/dist/harness-client.d.ts.map +0 -1
- package/dist/harness-client.js +0 -76
- package/dist/harness-client.js.map +0 -1
- package/dist/harness-context-projection.d.ts +0 -35
- package/dist/harness-context-projection.d.ts.map +0 -1
- package/dist/harness-context-projection.js +0 -123
- package/dist/harness-context-projection.js.map +0 -1
- package/dist/harness-mcp-server.d.ts.map +0 -1
- package/dist/harness-mcp-server.js.map +0 -1
- package/dist/local-paths.d.ts +0 -11
- package/dist/local-paths.d.ts.map +0 -1
- package/dist/local-paths.js +0 -21
- package/dist/local-paths.js.map +0 -1
- package/dist/message-rendering.d.ts +0 -4
- package/dist/message-rendering.d.ts.map +0 -1
- package/dist/message-rendering.js +0 -8
- package/dist/message-rendering.js.map +0 -1
- package/dist/moltzapd-catalog.d.ts +0 -35
- package/dist/moltzapd-catalog.d.ts.map +0 -1
- package/dist/moltzapd-catalog.js +0 -117
- package/dist/moltzapd-catalog.js.map +0 -1
- package/dist/moltzapd-child-ipc.d.ts +0 -26
- package/dist/moltzapd-child-ipc.d.ts.map +0 -1
- package/dist/moltzapd-child-ipc.js +0 -31
- package/dist/moltzapd-child-ipc.js.map +0 -1
- package/dist/moltzapd-child.d.ts +0 -55
- package/dist/moltzapd-child.d.ts.map +0 -1
- package/dist/moltzapd-child.js +0 -225
- package/dist/moltzapd-child.js.map +0 -1
- package/dist/moltzapd-main.d.ts +0 -3
- package/dist/moltzapd-main.d.ts.map +0 -1
- package/dist/moltzapd-main.js +0 -18
- package/dist/moltzapd-main.js.map +0 -1
- package/dist/moltzapd-registration.d.ts +0 -40
- package/dist/moltzapd-registration.d.ts.map +0 -1
- package/dist/moltzapd-registration.js +0 -59
- package/dist/moltzapd-registration.js.map +0 -1
- package/dist/moltzapd.d.ts +0 -85
- package/dist/moltzapd.d.ts.map +0 -1
- package/dist/moltzapd.js +0 -150
- package/dist/moltzapd.js.map +0 -1
- package/dist/notification/__tests__/subscribe-signatures.types-check.d.ts +0 -53
- package/dist/notification/__tests__/subscribe-signatures.types-check.d.ts.map +0 -1
- package/dist/notification/__tests__/subscribe-signatures.types-check.js +0 -29
- package/dist/notification/__tests__/subscribe-signatures.types-check.js.map +0 -1
- package/dist/notification/errors.d.ts +0 -41
- package/dist/notification/errors.d.ts.map +0 -1
- package/dist/notification/errors.js +0 -24
- package/dist/notification/errors.js.map +0 -1
- package/dist/notification/index.d.ts +0 -6
- package/dist/notification/index.d.ts.map +0 -1
- package/dist/notification/index.js +0 -6
- package/dist/notification/index.js.map +0 -1
- package/dist/notification/stream.d.ts +0 -75
- package/dist/notification/stream.d.ts.map +0 -1
- package/dist/notification/stream.js +0 -30
- package/dist/notification/stream.js.map +0 -1
- package/dist/notification/trace.d.ts +0 -10
- package/dist/notification/trace.d.ts.map +0 -1
- package/dist/notification/trace.js +0 -34
- package/dist/notification/trace.js.map +0 -1
- package/dist/pagination.d.ts +0 -52
- package/dist/pagination.d.ts.map +0 -1
- package/dist/pagination.js +0 -51
- package/dist/pagination.js.map +0 -1
- package/dist/presentation/index.d.ts +0 -3
- package/dist/presentation/index.d.ts.map +0 -1
- package/dist/presentation/index.js +0 -3
- package/dist/presentation/index.js.map +0 -1
- package/dist/presentation/state.d.ts +0 -77
- package/dist/presentation/state.d.ts.map +0 -1
- package/dist/presentation/state.js +0 -211
- package/dist/presentation/state.js.map +0 -1
- package/dist/profile.d.ts +0 -106
- package/dist/profile.d.ts.map +0 -1
- package/dist/profile.js +0 -171
- package/dist/profile.js.map +0 -1
- package/dist/service-event-trace.d.ts +0 -15
- package/dist/service-event-trace.d.ts.map +0 -1
- package/dist/service-event-trace.js +0 -35
- package/dist/service-event-trace.js.map +0 -1
- package/dist/service.d.ts +0 -228
- package/dist/service.d.ts.map +0 -1
- package/dist/service.js +0 -485
- package/dist/service.js.map +0 -1
- package/dist/test-utils/channel-service-fixture.d.ts +0 -53
- package/dist/test-utils/channel-service-fixture.d.ts.map +0 -1
- package/dist/test-utils/channel-service-fixture.js +0 -178
- package/dist/test-utils/channel-service-fixture.js.map +0 -1
- package/dist/test-utils/fake-service.d.ts +0 -82
- package/dist/test-utils/fake-service.d.ts.map +0 -1
- package/dist/test-utils/fake-service.js +0 -108
- package/dist/test-utils/fake-service.js.map +0 -1
- package/dist/test-utils/harness.d.ts +0 -27
- package/dist/test-utils/harness.d.ts.map +0 -1
- package/dist/test-utils/harness.js +0 -33
- package/dist/test-utils/harness.js.map +0 -1
- package/dist/test-utils/ids.d.ts +0 -21
- package/dist/test-utils/ids.d.ts.map +0 -1
- package/dist/test-utils/ids.js +0 -68
- package/dist/test-utils/ids.js.map +0 -1
- package/dist/test-utils/index.d.ts +0 -56
- package/dist/test-utils/index.d.ts.map +0 -1
- package/dist/test-utils/index.js +0 -67
- package/dist/test-utils/index.js.map +0 -1
- package/dist/test-utils/process/reserve-port.d.ts +0 -20
- package/dist/test-utils/process/reserve-port.d.ts.map +0 -1
- package/dist/test-utils/process/reserve-port.js +0 -41
- package/dist/test-utils/process/reserve-port.js.map +0 -1
- package/dist/test-utils/standalone-provisioning.d.ts +0 -22
- package/dist/test-utils/standalone-provisioning.d.ts.map +0 -1
- package/dist/test-utils/standalone-provisioning.js +0 -17
- package/dist/test-utils/standalone-provisioning.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { JSONSchema, Schema } from "effect";
|
|
2
|
-
import { type ConversationId } from "@moltzap/protocol/conversation";
|
|
3
|
-
/** Harness MCP extension carrying the runtime event contract. */
|
|
4
|
-
export declare const HARNESS_EVENTS_EXTENSION = "xyz.moltzap/events-v1";
|
|
5
|
-
/** Subscription filter requesting reply-capable harness turns. */
|
|
6
|
-
export declare const HARNESS_TURN_READY_FILTER = "xyz.moltzap/turnReady";
|
|
7
|
-
/** Notification method carrying one coalesced inbound turn. */
|
|
8
|
-
export declare const HARNESS_TURN_READY_NOTIFICATION = "notifications/xyz.moltzap/turn_ready";
|
|
9
|
-
/**
|
|
10
|
-
* Tool committing a Registry identity to the slot this daemon owns. Present
|
|
11
|
-
* only while the slot has none; the six active tools replace it afterward.
|
|
12
|
-
*/
|
|
13
|
-
export declare const HARNESS_REGISTER_TOOL = "register";
|
|
14
|
-
/** Tool used for model output in the current conversation. */
|
|
15
|
-
export declare const HARNESS_REPLY_TOOL = "reply";
|
|
16
|
-
/** Tool returning the active daemon identity and connection state. */
|
|
17
|
-
export declare const HARNESS_STATUS_TOOL = "status";
|
|
18
|
-
/** Tool browsing or matching visible agent cards. */
|
|
19
|
-
export declare const HARNESS_SEARCH_AGENTS_TOOL = "search_agents";
|
|
20
|
-
/** Tool browsing or matching visible conversations. */
|
|
21
|
-
export declare const HARNESS_SEARCH_CONVERSATIONS_TOOL = "search_conversations";
|
|
22
|
-
/** Tool reading one checkpointed conversation history. */
|
|
23
|
-
export declare const HARNESS_READ_CONVERSATION_TOOL = "read_conversation";
|
|
24
|
-
/** Tool creating a conversation and sending its initial content. */
|
|
25
|
-
export declare const HARNESS_START_CONVERSATION_TOOL = "start_conversation";
|
|
26
|
-
declare const conversationWithParticipantsSchema: Schema.Struct<{
|
|
27
|
-
id: Schema.Schema<ConversationId, string, never>;
|
|
28
|
-
name: Schema.optional<typeof Schema.String>;
|
|
29
|
-
createdBy: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
|
|
30
|
-
createdAt: Schema.Schema<string, string, never>;
|
|
31
|
-
updatedAt: Schema.Schema<string, string, never>;
|
|
32
|
-
participants: Schema.Array$<Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>>;
|
|
33
|
-
}>;
|
|
34
|
-
/** Arguments for creating a conversation through the harness. */
|
|
35
|
-
declare const harnessStartConversationInputSchema: Schema.Struct<{
|
|
36
|
-
otherAgentNames: Schema.NonEmptyArray<Schema.Schema<import("@moltzap/protocol/identity").AgentName, string, never>>;
|
|
37
|
-
initialContent: Schema.filter<typeof Schema.String>;
|
|
38
|
-
}>;
|
|
39
|
-
/** Conversation returned after its initial content has been sent. */
|
|
40
|
-
declare const harnessStartConversationResultSchema: Schema.Struct<{
|
|
41
|
-
conversation: Schema.Struct<{
|
|
42
|
-
id: Schema.Schema<ConversationId, string, never>;
|
|
43
|
-
name: Schema.optional<typeof Schema.String>;
|
|
44
|
-
createdBy: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
|
|
45
|
-
createdAt: Schema.Schema<string, string, never>;
|
|
46
|
-
updatedAt: Schema.Schema<string, string, never>;
|
|
47
|
-
participants: Schema.Array$<Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>>;
|
|
48
|
-
}>;
|
|
49
|
-
}>;
|
|
50
|
-
/** MCP-local search result used to reconstruct endpoint presentation. */
|
|
51
|
-
declare const harnessSearchConversationsResultSchema: Schema.Struct<{
|
|
52
|
-
nextCursor: Schema.optional<Schema.Schema<import("@moltzap/protocol/rpc").ListCursor, string, never>>;
|
|
53
|
-
conversations: Schema.Array$<Schema.Struct<{
|
|
54
|
-
id: Schema.Schema<ConversationId, string, never>;
|
|
55
|
-
name: Schema.optional<typeof Schema.String>;
|
|
56
|
-
createdBy: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
|
|
57
|
-
createdAt: Schema.Schema<string, string, never>;
|
|
58
|
-
updatedAt: Schema.Schema<string, string, never>;
|
|
59
|
-
participants: Schema.Array$<Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>>;
|
|
60
|
-
}>>;
|
|
61
|
-
}>;
|
|
62
|
-
/** One nonempty batch of protocol messages delivered as a model turn. */
|
|
63
|
-
declare const harnessTurnEventSchema: Schema.filter<Schema.Struct<{
|
|
64
|
-
messages: Schema.NonEmptyArray<Schema.Struct<{
|
|
65
|
-
id: Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>;
|
|
66
|
-
conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
|
|
67
|
-
senderId: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
|
|
68
|
-
parts: Schema.filter<Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
69
|
-
type: Schema.Literal<["text"]>;
|
|
70
|
-
text: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
71
|
-
}>, Schema.Struct<{
|
|
72
|
-
type: Schema.Literal<["image"]>;
|
|
73
|
-
url: Schema.filter<Schema.Schema<string, string, never>>;
|
|
74
|
-
altText: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
75
|
-
}>, Schema.Struct<{
|
|
76
|
-
type: Schema.Literal<["file"]>;
|
|
77
|
-
url: Schema.filter<Schema.Schema<string, string, never>>;
|
|
78
|
-
name: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
79
|
-
mimeType: Schema.optional<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
80
|
-
size: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
81
|
-
}>]>>>;
|
|
82
|
-
createdAt: Schema.Schema<string, string, never>;
|
|
83
|
-
}>>;
|
|
84
|
-
}>>;
|
|
85
|
-
/** Advertised reply arguments. Routing authority remains outside tool input. */
|
|
86
|
-
declare const harnessReplyInputSchema: Schema.Struct<{
|
|
87
|
-
payload: typeof Schema.String;
|
|
88
|
-
}>;
|
|
89
|
-
/** The reply operation has no additional result data. */
|
|
90
|
-
declare const harnessReplyResultSchema: Schema.Struct<{}>;
|
|
91
|
-
/** Private route nested under the harness extension key in MCP request metadata. */
|
|
92
|
-
declare const harnessReplyRouteSchema: Schema.Struct<{
|
|
93
|
-
conversationId: Schema.Schema<ConversationId, string, never>;
|
|
94
|
-
}>;
|
|
95
|
-
/**
|
|
96
|
-
* The daemon supplies the agent name and listener port from its own slot, so
|
|
97
|
-
* registration arguments carry only what the Registry cannot derive locally.
|
|
98
|
-
*/
|
|
99
|
-
declare const harnessRegisterInputSchema: Schema.Struct<{
|
|
100
|
-
inviteCode: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
101
|
-
description: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
102
|
-
}>;
|
|
103
|
-
/**
|
|
104
|
-
* Registration reports the committed identity and where it is reachable. Key
|
|
105
|
-
* material is written to the slot and never returned over MCP.
|
|
106
|
-
*/
|
|
107
|
-
declare const harnessRegisterResultSchema: Schema.Struct<{
|
|
108
|
-
agentId: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
|
|
109
|
-
agentName: typeof Schema.String;
|
|
110
|
-
serverUrl: typeof Schema.String;
|
|
111
|
-
}>;
|
|
112
|
-
/** Status takes no arguments; the daemon reports on the slot it already owns. */
|
|
113
|
-
declare const harnessStatusInputSchema: Schema.Struct<{}>;
|
|
114
|
-
/** Active daemon identity and connection state. */
|
|
115
|
-
declare const harnessStatusResultSchema: Schema.Struct<{
|
|
116
|
-
agentId: Schema.optional<Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>>;
|
|
117
|
-
connected: typeof Schema.Boolean;
|
|
118
|
-
conversations: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
119
|
-
}>;
|
|
120
|
-
/** Decoded harness turn event. */
|
|
121
|
-
export type HarnessTurnEvent = Schema.Schema.Type<typeof harnessTurnEventSchema>;
|
|
122
|
-
/**
|
|
123
|
-
* Conversation plus its membership, assembled by the daemon because the
|
|
124
|
-
* canonical Conversation sent over the network carries no participants. It
|
|
125
|
-
* crosses only the loopback MCP boundary, and it is public because it names
|
|
126
|
-
* what `HarnessClientService.startConversation` hands back to an adapter.
|
|
127
|
-
*/
|
|
128
|
-
export type ConversationWithParticipants = Schema.Schema.Type<typeof conversationWithParticipantsSchema>;
|
|
129
|
-
/** Decoded start-conversation input. */
|
|
130
|
-
export type HarnessStartConversationInput = Schema.Schema.Type<typeof harnessStartConversationInputSchema>;
|
|
131
|
-
/** Decoded start-conversation result. */
|
|
132
|
-
export type HarnessStartConversationResult = Schema.Schema.Type<typeof harnessStartConversationResultSchema>;
|
|
133
|
-
/** Decoded MCP-local conversation search page. */
|
|
134
|
-
export type HarnessSearchConversationsResult = Schema.Schema.Type<typeof harnessSearchConversationsResultSchema>;
|
|
135
|
-
/** Decoded reply input. */
|
|
136
|
-
export type HarnessReplyInput = Schema.Schema.Type<typeof harnessReplyInputSchema>;
|
|
137
|
-
/** Decoded reply result. */
|
|
138
|
-
export type HarnessReplyResult = Schema.Schema.Type<typeof harnessReplyResultSchema>;
|
|
139
|
-
/** Decoded private reply route. */
|
|
140
|
-
export type HarnessReplyRoute = Schema.Schema.Type<typeof harnessReplyRouteSchema>;
|
|
141
|
-
/** Decoded registration input. */
|
|
142
|
-
export type HarnessRegisterInput = Schema.Schema.Type<typeof harnessRegisterInputSchema>;
|
|
143
|
-
/** Decoded registration result. */
|
|
144
|
-
export type HarnessRegisterResult = Schema.Schema.Type<typeof harnessRegisterResultSchema>;
|
|
145
|
-
/** Decoded status input. */
|
|
146
|
-
export type HarnessStatusInput = Schema.Schema.Type<typeof harnessStatusInputSchema>;
|
|
147
|
-
/** Decoded status result. */
|
|
148
|
-
export type HarnessStatusResult = Schema.Schema.Type<typeof harnessStatusResultSchema>;
|
|
149
|
-
/** JSON Schema advertised for start-conversation arguments. */
|
|
150
|
-
export declare const harnessStartConversationInputJsonSchema: JSONSchema.JsonSchema7Root;
|
|
151
|
-
/** JSON Schema advertised for the start-conversation result. */
|
|
152
|
-
export declare const harnessStartConversationResultJsonSchema: JSONSchema.JsonSchema7Root;
|
|
153
|
-
/** JSON Schema advertised for the MCP-local conversation search result. */
|
|
154
|
-
export declare const harnessSearchConversationsResultJsonSchema: JSONSchema.JsonSchema7Root;
|
|
155
|
-
/** JSON Schema advertised for the payload-only reply tool arguments. */
|
|
156
|
-
export declare const harnessReplyInputJsonSchema: JSONSchema.JsonSchema7Root;
|
|
157
|
-
/** JSON Schema advertised for the empty reply result. */
|
|
158
|
-
export declare const harnessReplyResultJsonSchema: JSONSchema.JsonSchema7Root;
|
|
159
|
-
/** JSON Schema advertised for registration arguments. */
|
|
160
|
-
export declare const harnessRegisterInputJsonSchema: JSONSchema.JsonSchema7Root;
|
|
161
|
-
/** JSON Schema advertised for the registration result. */
|
|
162
|
-
export declare const harnessRegisterResultJsonSchema: JSONSchema.JsonSchema7Root;
|
|
163
|
-
/** JSON Schema advertised for the empty status arguments. */
|
|
164
|
-
export declare const harnessStatusInputJsonSchema: JSONSchema.JsonSchema7Root;
|
|
165
|
-
/** JSON Schema advertised for the status result. */
|
|
166
|
-
export declare const harnessStatusResultJsonSchema: JSONSchema.JsonSchema7Root;
|
|
167
|
-
/**
|
|
168
|
-
* Strictly decode a turn event received from the MCP boundary.
|
|
169
|
-
* @param value Untrusted notification parameters.
|
|
170
|
-
* @returns The decoded nonempty protocol-message batch.
|
|
171
|
-
*/
|
|
172
|
-
export declare const decodeHarnessTurnEvent: (value: unknown) => import("effect/Effect").Effect<{
|
|
173
|
-
readonly messages: readonly [{
|
|
174
|
-
readonly id: import("@moltzap/protocol/conversation").MessageId;
|
|
175
|
-
readonly conversationId: ConversationId;
|
|
176
|
-
readonly senderId: import("@moltzap/protocol/identity").AgentId;
|
|
177
|
-
readonly parts: readonly [{
|
|
178
|
-
readonly type: "text";
|
|
179
|
-
readonly text: string;
|
|
180
|
-
} | {
|
|
181
|
-
readonly type: "image";
|
|
182
|
-
readonly url: string;
|
|
183
|
-
readonly altText?: string | undefined;
|
|
184
|
-
} | {
|
|
185
|
-
readonly type: "file";
|
|
186
|
-
readonly url: string;
|
|
187
|
-
readonly name: string;
|
|
188
|
-
readonly mimeType?: string | undefined;
|
|
189
|
-
readonly size?: number | undefined;
|
|
190
|
-
}, ...({
|
|
191
|
-
readonly type: "text";
|
|
192
|
-
readonly text: string;
|
|
193
|
-
} | {
|
|
194
|
-
readonly type: "image";
|
|
195
|
-
readonly url: string;
|
|
196
|
-
readonly altText?: string | undefined;
|
|
197
|
-
} | {
|
|
198
|
-
readonly type: "file";
|
|
199
|
-
readonly url: string;
|
|
200
|
-
readonly name: string;
|
|
201
|
-
readonly mimeType?: string | undefined;
|
|
202
|
-
readonly size?: number | undefined;
|
|
203
|
-
})[]];
|
|
204
|
-
readonly createdAt: string;
|
|
205
|
-
}, ...{
|
|
206
|
-
readonly id: import("@moltzap/protocol/conversation").MessageId;
|
|
207
|
-
readonly conversationId: ConversationId;
|
|
208
|
-
readonly senderId: import("@moltzap/protocol/identity").AgentId;
|
|
209
|
-
readonly parts: readonly [{
|
|
210
|
-
readonly type: "text";
|
|
211
|
-
readonly text: string;
|
|
212
|
-
} | {
|
|
213
|
-
readonly type: "image";
|
|
214
|
-
readonly url: string;
|
|
215
|
-
readonly altText?: string | undefined;
|
|
216
|
-
} | {
|
|
217
|
-
readonly type: "file";
|
|
218
|
-
readonly url: string;
|
|
219
|
-
readonly name: string;
|
|
220
|
-
readonly mimeType?: string | undefined;
|
|
221
|
-
readonly size?: number | undefined;
|
|
222
|
-
}, ...({
|
|
223
|
-
readonly type: "text";
|
|
224
|
-
readonly text: string;
|
|
225
|
-
} | {
|
|
226
|
-
readonly type: "image";
|
|
227
|
-
readonly url: string;
|
|
228
|
-
readonly altText?: string | undefined;
|
|
229
|
-
} | {
|
|
230
|
-
readonly type: "file";
|
|
231
|
-
readonly url: string;
|
|
232
|
-
readonly name: string;
|
|
233
|
-
readonly mimeType?: string | undefined;
|
|
234
|
-
readonly size?: number | undefined;
|
|
235
|
-
})[]];
|
|
236
|
-
readonly createdAt: string;
|
|
237
|
-
}[]];
|
|
238
|
-
}, import("effect/ParseResult").ParseError, never>;
|
|
239
|
-
/**
|
|
240
|
-
* Strictly decode the membership-bearing conversation page received over MCP.
|
|
241
|
-
* @param value Untrusted structured tool content.
|
|
242
|
-
* @returns The decoded MCP-local conversation page.
|
|
243
|
-
*/
|
|
244
|
-
export declare const decodeHarnessSearchConversationsResult: (value: unknown) => import("effect/Effect").Effect<{
|
|
245
|
-
readonly nextCursor?: import("@moltzap/protocol/rpc").ListCursor | undefined;
|
|
246
|
-
readonly conversations: readonly {
|
|
247
|
-
readonly id: ConversationId;
|
|
248
|
-
readonly name?: string | undefined;
|
|
249
|
-
readonly createdBy: import("@moltzap/protocol/identity").AgentId;
|
|
250
|
-
readonly createdAt: string;
|
|
251
|
-
readonly updatedAt: string;
|
|
252
|
-
readonly participants: readonly import("@moltzap/protocol/identity").AgentId[];
|
|
253
|
-
}[];
|
|
254
|
-
}, import("effect/ParseResult").ParseError, never>;
|
|
255
|
-
/**
|
|
256
|
-
* Strictly decode a conversation created through the harness MCP boundary.
|
|
257
|
-
* @param value Untrusted structured tool content.
|
|
258
|
-
* @returns The created conversation with MCP-local membership.
|
|
259
|
-
*/
|
|
260
|
-
export declare const decodeHarnessStartConversationResult: (value: unknown) => import("effect/Effect").Effect<{
|
|
261
|
-
readonly conversation: {
|
|
262
|
-
readonly id: ConversationId;
|
|
263
|
-
readonly name?: string | undefined;
|
|
264
|
-
readonly createdBy: import("@moltzap/protocol/identity").AgentId;
|
|
265
|
-
readonly createdAt: string;
|
|
266
|
-
readonly updatedAt: string;
|
|
267
|
-
readonly participants: readonly import("@moltzap/protocol/identity").AgentId[];
|
|
268
|
-
};
|
|
269
|
-
}, import("effect/ParseResult").ParseError, never>;
|
|
270
|
-
/**
|
|
271
|
-
* Strictly decode the daemon status reported over the MCP boundary.
|
|
272
|
-
* @param value Untrusted structured tool content.
|
|
273
|
-
* @returns The decoded identity and connection state.
|
|
274
|
-
*/
|
|
275
|
-
export declare const decodeHarnessStatusResult: (value: unknown) => import("effect/Effect").Effect<{
|
|
276
|
-
readonly agentId?: import("@moltzap/protocol/identity").AgentId | undefined;
|
|
277
|
-
readonly connected: boolean;
|
|
278
|
-
readonly conversations: number;
|
|
279
|
-
}, import("effect/ParseResult").ParseError, never>;
|
|
280
|
-
/**
|
|
281
|
-
* Build the private request metadata consumed by the production harness client.
|
|
282
|
-
* @param originatingConversationId Conversation associated with the live turn.
|
|
283
|
-
* @returns Namespaced MCP request metadata containing the private route.
|
|
284
|
-
*/
|
|
285
|
-
export declare const harnessReplyRequestMeta: (originatingConversationId: ConversationId) => Readonly<Record<string, unknown>>;
|
|
286
|
-
/**
|
|
287
|
-
* Decode the private reply route while allowing unrelated MCP metadata keys.
|
|
288
|
-
* @param requestMeta Untrusted MCP request metadata.
|
|
289
|
-
* @returns The decoded conversation route.
|
|
290
|
-
*/
|
|
291
|
-
export declare const decodeHarnessReplyRoute: (requestMeta: unknown) => import("effect/Effect").Effect<{
|
|
292
|
-
readonly conversationId: ConversationId;
|
|
293
|
-
}, import("effect/ParseResult").ParseError, never>;
|
|
294
|
-
/**
|
|
295
|
-
* Return the conversation carried by the first message in a nonempty turn.
|
|
296
|
-
* @param turn Decoded nonempty message batch.
|
|
297
|
-
* @returns Conversation carried by the first protocol message.
|
|
298
|
-
*/
|
|
299
|
-
export declare const harnessTurnConversationId: (turn: HarnessTurnEvent) => ConversationId;
|
|
300
|
-
export {};
|
|
301
|
-
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/harness/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,gCAAgC,CAAC;AAIxC,iEAAiE;AACjE,eAAO,MAAM,wBAAwB,0BAA0B,CAAC;AAEhE,kEAAkE;AAClE,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE,+DAA+D;AAC/D,eAAO,MAAM,+BAA+B,yCACJ,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,qDAAqD;AACrD,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAE1D,uDAAuD;AACvD,eAAO,MAAM,iCAAiC,yBAAyB,CAAC;AAExE,0DAA0D;AAC1D,eAAO,MAAM,8BAA8B,sBAAsB,CAAC;AAElE,oEAAoE;AACpE,eAAO,MAAM,+BAA+B,uBAAuB,CAAC;AAKpE,QAAA,MAAM,kCAAkC;;;;;;;EAGtC,CAAC;AAEH,iEAAiE;AACjE,QAAA,MAAM,mCAAmC;;;EAGvC,CAAC;AAEH,qEAAqE;AACrE,QAAA,MAAM,oCAAoC;;;;;;;;;EAExC,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDACR,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,UAAW,OAAO;;;;;;;;;;kDACR,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,UAAW,OAAO;;;;;;;;;kDACR,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,UAAW,OAAO;;;;kDACR,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,8BACP,cAAc,KACxC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAIjC,CAAC;AAOH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,gBAAiB,OAAO;;kDAK3D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,SAC9B,gBAAgB,KACrB,cAAiD,CAAC"}
|
package/dist/harness/runtime.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { JSONSchema, Schema } from "effect";
|
|
2
|
-
import { conversationId, conversationSchema, conversationSearch, } from "@moltzap/protocol/conversation";
|
|
3
|
-
import { agentId, agentName } from "@moltzap/protocol/identity";
|
|
4
|
-
import { messageReceivedNotificationDefinition } from "@moltzap/protocol/message";
|
|
5
|
-
/** Harness MCP extension carrying the runtime event contract. */
|
|
6
|
-
export const HARNESS_EVENTS_EXTENSION = "xyz.moltzap/events-v1";
|
|
7
|
-
/** Subscription filter requesting reply-capable harness turns. */
|
|
8
|
-
export const HARNESS_TURN_READY_FILTER = "xyz.moltzap/turnReady";
|
|
9
|
-
/** Notification method carrying one coalesced inbound turn. */
|
|
10
|
-
export const HARNESS_TURN_READY_NOTIFICATION = "notifications/xyz.moltzap/turn_ready";
|
|
11
|
-
/**
|
|
12
|
-
* Tool committing a Registry identity to the slot this daemon owns. Present
|
|
13
|
-
* only while the slot has none; the six active tools replace it afterward.
|
|
14
|
-
*/
|
|
15
|
-
export const HARNESS_REGISTER_TOOL = "register";
|
|
16
|
-
/** Tool used for model output in the current conversation. */
|
|
17
|
-
export const HARNESS_REPLY_TOOL = "reply";
|
|
18
|
-
/** Tool returning the active daemon identity and connection state. */
|
|
19
|
-
export const HARNESS_STATUS_TOOL = "status";
|
|
20
|
-
/** Tool browsing or matching visible agent cards. */
|
|
21
|
-
export const HARNESS_SEARCH_AGENTS_TOOL = "search_agents";
|
|
22
|
-
/** Tool browsing or matching visible conversations. */
|
|
23
|
-
export const HARNESS_SEARCH_CONVERSATIONS_TOOL = "search_conversations";
|
|
24
|
-
/** Tool reading one checkpointed conversation history. */
|
|
25
|
-
export const HARNESS_READ_CONVERSATION_TOOL = "read_conversation";
|
|
26
|
-
/** Tool creating a conversation and sending its initial content. */
|
|
27
|
-
export const HARNESS_START_CONVERSATION_TOOL = "start_conversation";
|
|
28
|
-
const messageSchema = messageReceivedNotificationDefinition.paramsSchema.fields.message;
|
|
29
|
-
const conversationWithParticipantsSchema = Schema.Struct({
|
|
30
|
-
...conversationSchema().fields,
|
|
31
|
-
participants: Schema.Array(agentId),
|
|
32
|
-
});
|
|
33
|
-
/** Arguments for creating a conversation through the harness. */
|
|
34
|
-
const harnessStartConversationInputSchema = Schema.Struct({
|
|
35
|
-
otherAgentNames: Schema.NonEmptyArray(agentName),
|
|
36
|
-
initialContent: Schema.String.pipe(Schema.minLength(1)),
|
|
37
|
-
});
|
|
38
|
-
/** Conversation returned after its initial content has been sent. */
|
|
39
|
-
const harnessStartConversationResultSchema = Schema.Struct({
|
|
40
|
-
conversation: conversationWithParticipantsSchema,
|
|
41
|
-
});
|
|
42
|
-
/** MCP-local search result used to reconstruct endpoint presentation. */
|
|
43
|
-
const harnessSearchConversationsResultSchema = Schema.Struct({
|
|
44
|
-
...conversationSearch.resultSchema.fields,
|
|
45
|
-
conversations: Schema.Array(conversationWithParticipantsSchema),
|
|
46
|
-
});
|
|
47
|
-
/** One nonempty batch of protocol messages delivered as a model turn. */
|
|
48
|
-
const harnessTurnEventSchema = Schema.Struct({
|
|
49
|
-
messages: Schema.NonEmptyArray(messageSchema),
|
|
50
|
-
}).pipe(Schema.filter((turn) => turn.messages.every((message) => message.conversationId === turn.messages[0].conversationId) || "every turn message must belong to the same conversation"));
|
|
51
|
-
/** Advertised reply arguments. Routing authority remains outside tool input. */
|
|
52
|
-
const harnessReplyInputSchema = Schema.Struct({
|
|
53
|
-
payload: Schema.String,
|
|
54
|
-
});
|
|
55
|
-
/** The reply operation has no additional result data. */
|
|
56
|
-
const harnessReplyResultSchema = Schema.Struct({});
|
|
57
|
-
/** Private route nested under the harness extension key in MCP request metadata. */
|
|
58
|
-
const harnessReplyRouteSchema = Schema.Struct({
|
|
59
|
-
conversationId,
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* The daemon supplies the agent name and listener port from its own slot, so
|
|
63
|
-
* registration arguments carry only what the Registry cannot derive locally.
|
|
64
|
-
*/
|
|
65
|
-
const harnessRegisterInputSchema = Schema.Struct({
|
|
66
|
-
inviteCode: Schema.optional(Schema.String.pipe(Schema.minLength(1))),
|
|
67
|
-
description: Schema.optional(Schema.String.pipe(Schema.maxLength(500))),
|
|
68
|
-
});
|
|
69
|
-
/**
|
|
70
|
-
* Registration reports the committed identity and where it is reachable. Key
|
|
71
|
-
* material is written to the slot and never returned over MCP.
|
|
72
|
-
*/
|
|
73
|
-
const harnessRegisterResultSchema = Schema.Struct({
|
|
74
|
-
agentId,
|
|
75
|
-
// The slot stores its agent name unbranded and the Registry has already
|
|
76
|
-
// validated it by the time this result exists, so a second brand round-trip
|
|
77
|
-
// inside the daemon would assert nothing new.
|
|
78
|
-
agentName: Schema.String,
|
|
79
|
-
serverUrl: Schema.String,
|
|
80
|
-
});
|
|
81
|
-
/** Status takes no arguments; the daemon reports on the slot it already owns. */
|
|
82
|
-
const harnessStatusInputSchema = Schema.Struct({});
|
|
83
|
-
/** Active daemon identity and connection state. */
|
|
84
|
-
const harnessStatusResultSchema = Schema.Struct({
|
|
85
|
-
agentId: Schema.optional(agentId),
|
|
86
|
-
connected: Schema.Boolean,
|
|
87
|
-
conversations: Schema.Number.pipe(Schema.int(), Schema.nonNegative()),
|
|
88
|
-
});
|
|
89
|
-
const strictDecodeOptions = { onExcessProperty: "error" };
|
|
90
|
-
const decodeTurnEvent = Schema.decodeUnknown(harnessTurnEventSchema);
|
|
91
|
-
const decodeSearchConversationsResult = Schema.decodeUnknown(harnessSearchConversationsResultSchema);
|
|
92
|
-
const decodeStartConversationResult = Schema.decodeUnknown(harnessStartConversationResultSchema);
|
|
93
|
-
const decodeReplyRoute = Schema.decodeUnknown(harnessReplyRouteSchema);
|
|
94
|
-
const decodeStatusResult = Schema.decodeUnknown(harnessStatusResultSchema);
|
|
95
|
-
/** JSON Schema advertised for start-conversation arguments. */
|
|
96
|
-
export const harnessStartConversationInputJsonSchema = JSONSchema.make(harnessStartConversationInputSchema, { target: "jsonSchema2020-12" });
|
|
97
|
-
/** JSON Schema advertised for the start-conversation result. */
|
|
98
|
-
export const harnessStartConversationResultJsonSchema = JSONSchema.make(harnessStartConversationResultSchema, { target: "jsonSchema2020-12" });
|
|
99
|
-
/** JSON Schema advertised for the MCP-local conversation search result. */
|
|
100
|
-
export const harnessSearchConversationsResultJsonSchema = JSONSchema.make(harnessSearchConversationsResultSchema, { target: "jsonSchema2020-12" });
|
|
101
|
-
/** JSON Schema advertised for the payload-only reply tool arguments. */
|
|
102
|
-
export const harnessReplyInputJsonSchema = JSONSchema.make(harnessReplyInputSchema, { target: "jsonSchema2020-12" });
|
|
103
|
-
/** JSON Schema advertised for the empty reply result. */
|
|
104
|
-
export const harnessReplyResultJsonSchema = JSONSchema.make(harnessReplyResultSchema, { target: "jsonSchema2020-12" });
|
|
105
|
-
/** JSON Schema advertised for registration arguments. */
|
|
106
|
-
export const harnessRegisterInputJsonSchema = JSONSchema.make(harnessRegisterInputSchema, { target: "jsonSchema2020-12" });
|
|
107
|
-
/** JSON Schema advertised for the registration result. */
|
|
108
|
-
export const harnessRegisterResultJsonSchema = JSONSchema.make(harnessRegisterResultSchema, { target: "jsonSchema2020-12" });
|
|
109
|
-
/** JSON Schema advertised for the empty status arguments. */
|
|
110
|
-
export const harnessStatusInputJsonSchema = JSONSchema.make(harnessStatusInputSchema, { target: "jsonSchema2020-12" });
|
|
111
|
-
/** JSON Schema advertised for the status result. */
|
|
112
|
-
export const harnessStatusResultJsonSchema = JSONSchema.make(harnessStatusResultSchema, { target: "jsonSchema2020-12" });
|
|
113
|
-
/**
|
|
114
|
-
* Strictly decode a turn event received from the MCP boundary.
|
|
115
|
-
* @param value Untrusted notification parameters.
|
|
116
|
-
* @returns The decoded nonempty protocol-message batch.
|
|
117
|
-
*/
|
|
118
|
-
export const decodeHarnessTurnEvent = (value) => decodeTurnEvent(value, strictDecodeOptions);
|
|
119
|
-
/**
|
|
120
|
-
* Strictly decode the membership-bearing conversation page received over MCP.
|
|
121
|
-
* @param value Untrusted structured tool content.
|
|
122
|
-
* @returns The decoded MCP-local conversation page.
|
|
123
|
-
*/
|
|
124
|
-
export const decodeHarnessSearchConversationsResult = (value) => decodeSearchConversationsResult(value, strictDecodeOptions);
|
|
125
|
-
/**
|
|
126
|
-
* Strictly decode a conversation created through the harness MCP boundary.
|
|
127
|
-
* @param value Untrusted structured tool content.
|
|
128
|
-
* @returns The created conversation with MCP-local membership.
|
|
129
|
-
*/
|
|
130
|
-
export const decodeHarnessStartConversationResult = (value) => decodeStartConversationResult(value, strictDecodeOptions);
|
|
131
|
-
/**
|
|
132
|
-
* Strictly decode the daemon status reported over the MCP boundary.
|
|
133
|
-
* @param value Untrusted structured tool content.
|
|
134
|
-
* @returns The decoded identity and connection state.
|
|
135
|
-
*/
|
|
136
|
-
export const decodeHarnessStatusResult = (value) => decodeStatusResult(value, strictDecodeOptions);
|
|
137
|
-
/**
|
|
138
|
-
* Build the private request metadata consumed by the production harness client.
|
|
139
|
-
* @param originatingConversationId Conversation associated with the live turn.
|
|
140
|
-
* @returns Namespaced MCP request metadata containing the private route.
|
|
141
|
-
*/
|
|
142
|
-
export const harnessReplyRequestMeta = (originatingConversationId) => ({
|
|
143
|
-
[HARNESS_EVENTS_EXTENSION]: {
|
|
144
|
-
conversationId: originatingConversationId,
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
const isUnknownRecord = (value) => typeof value === "object" && value !== null;
|
|
148
|
-
/**
|
|
149
|
-
* Decode the private reply route while allowing unrelated MCP metadata keys.
|
|
150
|
-
* @param requestMeta Untrusted MCP request metadata.
|
|
151
|
-
* @returns The decoded conversation route.
|
|
152
|
-
*/
|
|
153
|
-
export const decodeHarnessReplyRoute = (requestMeta) => {
|
|
154
|
-
const extensionValue = isUnknownRecord(requestMeta)
|
|
155
|
-
? requestMeta[HARNESS_EVENTS_EXTENSION]
|
|
156
|
-
: undefined;
|
|
157
|
-
return decodeReplyRoute(extensionValue, strictDecodeOptions);
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Return the conversation carried by the first message in a nonempty turn.
|
|
161
|
-
* @param turn Decoded nonempty message batch.
|
|
162
|
-
* @returns Conversation carried by the first protocol message.
|
|
163
|
-
*/
|
|
164
|
-
export const harnessTurnConversationId = (turn) => turn.messages[0].conversationId;
|
|
165
|
-
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/harness/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qCAAqC,EAAE,MAAM,2BAA2B,CAAC;AAElF,iEAAiE;AACjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAAC;AAEhE,kEAAkE;AAClE,MAAM,CAAC,MAAM,y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E,CACrE,6BAA6B,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAAE,EAAE,CAC1D,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,yBAAyC,EACN,EAAE,CAAC,CAAC;IACvC,CAAC,wBAAwB,CAAC,EAAE;QAC1B,cAAc,EAAE,yBAAyB;KAC1C;CACF,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CACtB,KAAc,EAC8B,EAAE,CAC9C,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AAE9C;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,WAAoB,EAAE,EAAE;IAC9D,MAAM,cAAc,GAAY,eAAe,CAAC,WAAW,CAAC;QAC1D,CAAC,CAAC,WAAW,CAAC,wBAAwB,CAAC;QACvC,CAAC,CAAC,SAAS,CAAC;IACd,OAAO,gBAAgB,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,IAAsB,EACN,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC"}
|
package/dist/harness-client.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as KeyValueStore from "@effect/platform/KeyValueStore";
|
|
2
|
-
import { Context, Effect, Layer, Stream, type Scope } from "effect";
|
|
3
|
-
import { type AgentId, type AgentName } from "@moltzap/protocol/identity";
|
|
4
|
-
import { type EnrichedInboundMessage } from "./channel-core.js";
|
|
5
|
-
import { type ConversationWithParticipants } from "./harness/index.js";
|
|
6
|
-
/** MCP-local conversation projection including participant identities. */
|
|
7
|
-
export type { ConversationWithParticipants } from "./harness/index.js";
|
|
8
|
-
/** Existing adapter presentation with reply authority bound to its live turn. */
|
|
9
|
-
export interface HarnessTurn extends EnrichedInboundMessage {
|
|
10
|
-
/** Sends model output through the MCP reply route captured by this turn. */
|
|
11
|
-
readonly reply: (payload: string) => Effect.Effect<void, Error>;
|
|
12
|
-
}
|
|
13
|
-
/** Adapter-facing capability backed only by the daemon's loopback MCP surface. */
|
|
14
|
-
export interface HarnessClientService {
|
|
15
|
-
/** Active identity used by adapters when rendering self-authored context. */
|
|
16
|
-
readonly agentId: AgentId;
|
|
17
|
-
/** Creates a conversation with named peers and sends its initial content. */
|
|
18
|
-
readonly startConversation: (otherAgentNames: readonly AgentName[], initialContent: string) => Effect.Effect<ConversationWithParticipants, Error>;
|
|
19
|
-
/** The sole receive stream owned by this scoped client. */
|
|
20
|
-
readonly turns: Stream.Stream<HarnessTurn, Error>;
|
|
21
|
-
}
|
|
22
|
-
declare const HarnessClient_base: Context.TagClass<HarnessClient, "@moltzap/client/HarnessClient", HarnessClientService>;
|
|
23
|
-
/** Effect service tag consumed by runtime adapters. */
|
|
24
|
-
export declare class HarnessClient extends HarnessClient_base {
|
|
25
|
-
}
|
|
26
|
-
/** Inputs needed to connect one scoped harness client. */
|
|
27
|
-
export interface HarnessClientOptions {
|
|
28
|
-
/** Loopback `POST /mcp` endpoint owned by one running `moltzapd`. */
|
|
29
|
-
readonly url: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Acquires one turn-ready harness connection and receive stream for the
|
|
33
|
-
* lifetime of the enclosing scope. The supplied KeyValueStore is local to the
|
|
34
|
-
* active agent and holds only stable presentation checkpoints.
|
|
35
|
-
*
|
|
36
|
-
* @param options Fixed loopback MCP endpoint.
|
|
37
|
-
* @returns The scoped adapter-facing service value.
|
|
38
|
-
*/
|
|
39
|
-
export declare const acquireHarnessClient: (options: HarnessClientOptions) => Effect.Effect<HarnessClientService, Error, Scope.Scope | KeyValueStore.KeyValueStore>;
|
|
40
|
-
/**
|
|
41
|
-
* Builds the scoped runtime-adapter layer for one daemon endpoint.
|
|
42
|
-
*
|
|
43
|
-
* @param options Fixed loopback MCP endpoint.
|
|
44
|
-
* @returns A Layer providing the scoped HarnessClient capability.
|
|
45
|
-
*/
|
|
46
|
-
export declare const makeHarnessClientLayer: (options: HarnessClientOptions) => Layer.Layer<HarnessClient, Error, KeyValueStore.KeyValueStore>;
|
|
47
|
-
//# sourceMappingURL=harness-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harness-client.d.ts","sourceRoot":"","sources":["../src/harness-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAU,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE5E,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,SAAS,EACf,MAAM,4BAA4B,CAAC;AAOpC,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAUL,KAAK,4BAA4B,EAGlC,MAAM,oBAAoB,CAAC;AAE5B,0EAA0E;AAC1E,YAAY,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAEvE,iFAAiF;AACjF,MAAM,WAAW,WAAY,SAAQ,sBAAsB;IACzD,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;CACjE;AAED,kFAAkF;AAClF,MAAM,WAAW,oBAAoB;IACnC,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,eAAe,EAAE,SAAS,SAAS,EAAE,EACrC,cAAc,EAAE,MAAM,KACnB,MAAM,CAAC,MAAM,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;IACxD,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;CACnD;;AAED,uDAAuD;AACvD,qBAAa,aAAc,SAAQ,kBAGhC;CAAG;AAEN,0DAA0D;AAC1D,MAAM,WAAW,oBAAoB;IACnC,qEAAqE;IACrE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAyHD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,YACtB,oBAAoB,KAC5B,MAAM,CAAC,MAAM,CACd,oBAAoB,EACpB,KAAK,EACL,KAAK,CAAC,KAAK,GAAG,aAAa,CAAC,aAAa,CAkBoB,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,YACxB,oBAAoB,KAC5B,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,EAAE,aAAa,CAAC,aAAa,CACJ,CAAC"}
|
package/dist/harness-client.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as KeyValueStore from "@effect/platform/KeyValueStore";
|
|
2
|
-
import { Context, Effect, Layer, Schema, Stream } from "effect";
|
|
3
|
-
import { agentsSearch, } from "@moltzap/protocol/identity";
|
|
4
|
-
import { messagesRead } from "@moltzap/protocol/message";
|
|
5
|
-
import { projectHarnessTurn, } from "./channel-core.js";
|
|
6
|
-
import { reconstructHarnessContext } from "./harness-context-projection.js";
|
|
7
|
-
import { acquireHarnessClientInternal, HARNESS_READ_CONVERSATION_TOOL, HARNESS_SEARCH_AGENTS_TOOL, HARNESS_SEARCH_CONVERSATIONS_TOOL, HARNESS_START_CONVERSATION_TOOL, HARNESS_STATUS_TOOL, decodeHarnessSearchConversationsResult, decodeHarnessStartConversationResult, decodeHarnessStatusResult, } from "./harness/index.js";
|
|
8
|
-
/** Effect service tag consumed by runtime adapters. */
|
|
9
|
-
export class HarnessClient extends Context.Tag("@moltzap/client/HarnessClient")() {
|
|
10
|
-
}
|
|
11
|
-
const strictDecodeOptions = { onExcessProperty: "error" };
|
|
12
|
-
const asError = (cause) => cause instanceof Error ? cause : new Error(String(cause));
|
|
13
|
-
const callDescriptorTool = (session, toolName, definition, params) => session
|
|
14
|
-
.callTool(toolName,
|
|
15
|
-
/* Safe because every RPC params Schema used here is a closed Struct and MCP tool arguments are JSON objects. */ params)
|
|
16
|
-
.pipe(Effect.flatMap((result) => Schema.decodeUnknown(definition.resultSchema)(result, strictDecodeOptions).pipe(Effect.map((decoded) =>
|
|
17
|
-
/* Safe because ResultOf derives from this exact descriptor's resultSchema; RpcDefinitionAny erases only the runtime schema property's generic surface. */ decoded))), Effect.mapError(asError));
|
|
18
|
-
const readActiveAgentId = (session) => session.callTool(HARNESS_STATUS_TOOL, {}).pipe(Effect.flatMap((result) => decodeHarnessStatusResult(result)), Effect.mapError(asError), Effect.flatMap((status) => {
|
|
19
|
-
if (status.agentId === undefined) {
|
|
20
|
-
// eslint-disable-next-line agent-code-guard/effect-error-erasure -- A daemon with no active identity is rejected at the public client boundary, whose existing error contract is Error.
|
|
21
|
-
return Effect.fail(new Error("Harness MCP status has no active AgentId"));
|
|
22
|
-
}
|
|
23
|
-
return Effect.succeed(status.agentId);
|
|
24
|
-
}));
|
|
25
|
-
const startConversation = (session, otherAgentNames, initialContent) => session
|
|
26
|
-
.callTool(HARNESS_START_CONVERSATION_TOOL, {
|
|
27
|
-
otherAgentNames,
|
|
28
|
-
initialContent,
|
|
29
|
-
})
|
|
30
|
-
.pipe(Effect.flatMap(decodeHarnessStartConversationResult), Effect.map(({ conversation }) => conversation), Effect.mapError(asError));
|
|
31
|
-
const searchConversations = (session, params) => session
|
|
32
|
-
.callTool(HARNESS_SEARCH_CONVERSATIONS_TOOL, params)
|
|
33
|
-
.pipe(Effect.flatMap(decodeHarnessSearchConversationsResult), Effect.mapError(asError));
|
|
34
|
-
const contextReadPlane = (session) => ({
|
|
35
|
-
searchAgents: (params) => callDescriptorTool(session, HARNESS_SEARCH_AGENTS_TOOL, agentsSearch, params),
|
|
36
|
-
searchConversations: (params) => searchConversations(session, params),
|
|
37
|
-
readConversation: (params) => callDescriptorTool(session, HARNESS_READ_CONVERSATION_TOOL, messagesRead, params),
|
|
38
|
-
});
|
|
39
|
-
const projectTurn = (session, checkpointStore, agentId, turn) => reconstructHarnessContext(contextReadPlane(session), turn.event).pipe(Effect.provideService(KeyValueStore.KeyValueStore, checkpointStore), Effect.map((context) => ({
|
|
40
|
-
...projectHarnessTurn({
|
|
41
|
-
agents: context.agents,
|
|
42
|
-
context: {
|
|
43
|
-
conversations: context.conversations,
|
|
44
|
-
crossConversationMessages: context.crossConversationMessages,
|
|
45
|
-
currentMessages: context.currentMessages,
|
|
46
|
-
},
|
|
47
|
-
ownAgentId: agentId,
|
|
48
|
-
}),
|
|
49
|
-
reply: turn.reply,
|
|
50
|
-
})), Effect.mapError(asError));
|
|
51
|
-
/**
|
|
52
|
-
* Acquires one turn-ready harness connection and receive stream for the
|
|
53
|
-
* lifetime of the enclosing scope. The supplied KeyValueStore is local to the
|
|
54
|
-
* active agent and holds only stable presentation checkpoints.
|
|
55
|
-
*
|
|
56
|
-
* @param options Fixed loopback MCP endpoint.
|
|
57
|
-
* @returns The scoped adapter-facing service value.
|
|
58
|
-
*/
|
|
59
|
-
export const acquireHarnessClient = (options) => Effect.gen(function* () {
|
|
60
|
-
const checkpointStore = yield* KeyValueStore.KeyValueStore;
|
|
61
|
-
const session = yield* acquireHarnessClientInternal(options);
|
|
62
|
-
const agentId = yield* readActiveAgentId(session);
|
|
63
|
-
return {
|
|
64
|
-
agentId,
|
|
65
|
-
startConversation: (otherAgentNames, initialContent) => startConversation(session, otherAgentNames, initialContent),
|
|
66
|
-
turns: session.turns.pipe(Stream.mapEffect((turn) => projectTurn(session, checkpointStore, agentId, turn))),
|
|
67
|
-
};
|
|
68
|
-
}).pipe(Effect.withSpan("acquireHarnessClient.presentation"));
|
|
69
|
-
/**
|
|
70
|
-
* Builds the scoped runtime-adapter layer for one daemon endpoint.
|
|
71
|
-
*
|
|
72
|
-
* @param options Fixed loopback MCP endpoint.
|
|
73
|
-
* @returns A Layer providing the scoped HarnessClient capability.
|
|
74
|
-
*/
|
|
75
|
-
export const makeHarnessClientLayer = (options) => Layer.scoped(HarnessClient, acquireHarnessClient(options));
|
|
76
|
-
//# sourceMappingURL=harness-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harness-client.js","sourceRoot":"","sources":["../src/harness-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAc,MAAM,QAAQ,CAAC;AAE5E,OAAO,EACL,YAAY,GAGb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAMzD,OAAO,EACL,kBAAkB,GAEnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC1B,iCAAiC,EACjC,+BAA+B,EAC/B,mBAAmB,EACnB,sCAAsC,EACtC,oCAAoC,EACpC,yBAAyB,GAI1B,MAAM,oBAAoB,CAAC;AAwB5B,uDAAuD;AACvD,MAAM,OAAO,aAAc,SAAQ,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,EAG5E;CAAG;AAQN,MAAM,mBAAmB,GAAG,EAAE,gBAAgB,EAAE,OAAO,EAAW,CAAC;AAEnE,MAAM,OAAO,GAAG,CAAC,KAAc,EAAS,EAAE,CACxC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAE5D,MAAM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