@xmoxmo/bncr 0.2.7 → 0.2.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmoxmo/bncr",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,6 +15,17 @@ const requiredPackFiles = [
15
15
  'scripts/selfcheck.mjs',
16
16
  'scripts/check-register-drift.mjs',
17
17
  'src/channel.ts',
18
+ 'src/plugin/config.ts',
19
+ 'src/plugin/message-policy.ts',
20
+ 'src/plugin/messaging.ts',
21
+ 'src/plugin/gateway-runtime.ts',
22
+ 'src/plugin/message-send.ts',
23
+ 'src/plugin/outbound.ts',
24
+ 'src/plugin/setup.ts',
25
+ 'src/plugin/status.ts',
26
+ 'src/runtime/outbound-ack-timeout.ts',
27
+ 'src/runtime/outbound-flags.ts',
28
+ 'src/runtime/outbox-transitions.ts',
18
29
  'src/messaging/outbound/durable-message-adapter.ts',
19
30
  'src/messaging/outbound/durable-queue-adapter.ts',
20
31
  'src/openclaw/config-runtime.ts',
@@ -37,14 +48,19 @@ const [pack] = JSON.parse(output);
37
48
  const packedFiles = new Set((pack?.files ?? []).map((file) => file.path));
38
49
  const missing = requiredPackFiles.filter((file) => !packedFiles.has(file));
39
50
  const channelSource = fs.readFileSync(path.join(root, 'src/channel.ts'), 'utf8');
51
+ const messagePolicySource = fs.readFileSync(path.join(root, 'src/plugin/message-policy.ts'), 'utf8');
52
+ const messageSendSource = fs.readFileSync(path.join(root, 'src/plugin/message-send.ts'), 'utf8');
40
53
  const channelMessageChecks = {
41
54
  registered: channelSource.includes('message: {'),
42
- text: channelSource.includes('channelMessageSendText'),
43
- media: channelSource.includes('channelMessageSendMedia'),
44
- payload: channelSource.includes('channelMessageSendPayload'),
45
- manualAck: channelSource.includes("defaultAckPolicy: 'manual'"),
55
+ text: channelSource.includes('createBncrMessageSend') && messageSendSource.includes('channelMessageSendText'),
56
+ media: channelSource.includes('createBncrMessageSend') && messageSendSource.includes('channelMessageSendMedia'),
57
+ payload: channelSource.includes('createBncrMessageSend') && messageSendSource.includes('channelMessageSendPayload'),
58
+ manualAck:
59
+ channelSource.includes('BNCR_MESSAGE_RECEIVE_POLICY') &&
60
+ messagePolicySource.includes("defaultAckPolicy: 'manual'") &&
61
+ messagePolicySource.includes("supportedAckPolicies: ['manual']"),
46
62
  genericActionsPreserved: channelSource.includes('actions: messageActions'),
47
- noDurableFinal: !channelSource.includes('durableFinal:'),
63
+ noDurableFinal: !channelSource.includes('durableFinal:') && !messagePolicySource.includes('durableFinal:'),
48
64
  };
49
65
  const channelMessageOk = Object.values(channelMessageChecks).every(Boolean);
50
66