@moltzap/openclaw-channel 2026.922.3 → 2026.1001.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/README.md CHANGED
@@ -43,13 +43,23 @@ path is:
43
43
  1. `startAccountConnection` acquires a `HarnessEndpoint` for an OpenClaw
44
44
  account connection.
45
45
  2. `consumeInboundMessages` consumes deliveries until the stream ends or the
46
- connection is aborted.
46
+ connection is aborted; `inboundItemTurn` renders each item kind as one
47
+ fixed `HostTurn`.
47
48
  3. `buildRoutedTurnPlan` passes the route and context to OpenClaw's inbound
48
49
  runner; its reply callback withholds final text.
49
- 4. `sendOpenClawText` handles explicitly addressed outbound messages.
50
+ 4. `createMessageActions` registers the message tool's `send` action with its
51
+ optional `collective` and `collectiveResponse` parameters, which the
52
+ `MOLTZAP_EXPERIMENT_HIDE_COLLECTIVES` experiment switch withholds, and
53
+ `sendOperation` performs each send as one Client operation, returning a
54
+ gather's or all_gather's `operationId` or failing with the Client's error.
55
+
56
+ The package also publishes the `moltzap-collectives` skill in
57
+ [`skills/`](skills/moltzap-collectives/SKILL.md), which `openclaw.plugin.json`
58
+ names, so OpenClaw loads it while the plugin is enabled, for every agent its
59
+ skill allowlist admits.
50
60
 
51
61
  See the [OpenClaw integration guide](../../docs/integrations/openclaw.mdx) for
52
- configuration and message behavior.
62
+ configuration, message behavior, and the skill.
53
63
 
54
64
  ## Verify the package
55
65
 
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @file OpenClaw's core text delivery carries no message-tool parameters. A
3
+ * send that OpenClaw forces through core delivery (`forceCoreDelivery` or
4
+ * `requireQueuePersistence`) reaches `message.send.text` with its target and
5
+ * text alone, so it can never carry `collective` or `collectiveResponse` and a
6
+ * gather can never arrive there. OpenClaw 2026.8.1 forces core delivery only
7
+ * for the conversations tool and plugin delivery, which build their sends
8
+ * from text and media; the message tool's own `send`, the one path that
9
+ * carries the parameters, reaches `actions.handleAction`. If OpenClaw adds a
10
+ * parameter bag to this context, this canary fails, and `message.send.text`
11
+ * must then refuse a send that names a collective operation rather than
12
+ * certify it as a multicast.
13
+ */
14
+ import type { ChannelMessageSendTextContext } from "openclaw/plugin-sdk/channel-outbound";
15
+ type Expect<Value extends true> = Value;
16
+ type ToolParameterKeys = Extract<keyof ChannelMessageSendTextContext, "params" | "payload" | "collective" | "collectiveResponse">;
17
+ type CoreTextDeliveryCarriesNoToolParameters = Expect<[
18
+ ToolParameterKeys
19
+ ] extends [never] ? true : false>;
20
+ /** Compile-time witnesses for the OpenClaw delivery paths this adapter relies on. */
21
+ export type CoreDeliveryCanaries = [CoreTextDeliveryCarriesNoToolParameters];
22
+ export {};
23
+ //# sourceMappingURL=core-delivery.types-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-delivery.types-check.d.ts","sourceRoot":"","sources":["../src/core-delivery.types-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAE1F,KAAK,MAAM,CAAC,KAAK,SAAS,IAAI,IAAI,KAAK,CAAC;AAExC,KAAK,iBAAiB,GAAG,OAAO,CAC9B,MAAM,6BAA6B,EACnC,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,oBAAoB,CAC3D,CAAC;AAEF,KAAK,uCAAuC,GAAG,MAAM,CACnD;IAAC,iBAAiB;CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CACnD,CAAC;AAEF,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,CAAC,uCAAuC,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file OpenClaw's core text delivery carries no message-tool parameters. A
3
+ * send that OpenClaw forces through core delivery (`forceCoreDelivery` or
4
+ * `requireQueuePersistence`) reaches `message.send.text` with its target and
5
+ * text alone, so it can never carry `collective` or `collectiveResponse` and a
6
+ * gather can never arrive there. OpenClaw 2026.8.1 forces core delivery only
7
+ * for the conversations tool and plugin delivery, which build their sends
8
+ * from text and media; the message tool's own `send`, the one path that
9
+ * carries the parameters, reaches `actions.handleAction`. If OpenClaw adds a
10
+ * parameter bag to this context, this canary fails, and `message.send.text`
11
+ * must then refuse a send that names a collective operation rather than
12
+ * certify it as a multicast.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=core-delivery.types-check.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-delivery.types-check.js","sourceRoot":"","sources":["../src/core-delivery.types-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
package/dist/plugin.d.ts CHANGED
@@ -3,6 +3,12 @@ import type { OpenClawPluginDefinition } from "openclaw/plugin-sdk/plugin-entry"
3
3
  import { type HarnessEndpoint } from "@moltzap/client";
4
4
  import { JSONSchema, Schema } from "effect";
5
5
  import { type ChannelPlugin } from "openclaw/plugin-sdk/channel-core";
6
+ /**
7
+ * Where the message tool shows the collective parameters: on every turn.
8
+ * OpenClaw's default, `current-channel`, drops them from a turn the agent's
9
+ * principal started, which is where a requester usually opens a gather.
10
+ */
11
+ export declare const COLLECTIVE_PARAMETER_VISIBILITY = "all-configured";
6
12
  declare const moltZapAccountSchema: Schema.Struct<{
7
13
  id: typeof Schema.String;
8
14
  enabled: Schema.optional<typeof Schema.Boolean>;
@@ -32,13 +38,14 @@ export declare function makeMoltZapChannelConfigJsonSchema(): JSONSchema.JsonSch
32
38
  * participant Client as HarnessEndpoint
33
39
  * Host->>Plugin: start account with its runtime
34
40
  * Plugin->>Client: acquire endpoint
35
- * Client-->>Plugin: addressed delivery
36
- * Plugin->>Host: submit routed turn
41
+ * Client-->>Plugin: multicast, collective request, result or failure item
42
+ * Plugin->>Host: submit routed turn in the item's fixed form
37
43
  * Host->>Host: record session and run agent
38
44
  * Host-->>Plugin: final reply withheld
39
45
  * Plugin->>Client: acknowledge delivery
40
- * Host->>Plugin: proactive send with explicit address
41
- * Plugin->>Client: send addressed content
46
+ * Host->>Plugin: message tool send with address, collective or collectiveResponse
47
+ * Plugin->>Client: send the operation or response
48
+ * Plugin-->>Host: tool result with the operation id, or the Client error
42
49
  * ```
43
50
  * @param deps Optional process-local dependency overrides used by tests.
44
51
  * @returns The MoltZap channel plugin.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAOhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAGL,KAAK,eAAe,EAMrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAKL,UAAU,EAEV,MAAM,EAEP,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,kCAAkC,CAAC;AA6B1C,QAAA,MAAM,oBAAoB;;;;EAIxB,CAAC;AAEH,oEAAoE;AACpE,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAwCtE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CACnC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,KACpB,eAAe,GAAG,SAAS,CAAC;CAClC;AAiDD;;;;GAIG;AACH,wBAAgB,kCAAkC,+BAEjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,GAAE,wBAA6B,GAClC,aAAa,CAAC,cAAc,CAAC,CAgB/B;AAkmBD,QAAA,MAAM,MAAM,EAAE,wBAAwB,GACpC,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,IAAI,GAAG,UAAU,CAAC,CAMxD,CAAC;eAGU,MAAM"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAShE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,k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