@kuralle-agents/engagement 0.12.0 → 0.14.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
@@ -103,9 +103,9 @@ import { whatsappPolicy, webPolicy, instagramPolicy } from '@kuralle-agents/enga
103
103
 
104
104
  The multi-platform demo wires all three policies on one runtime:
105
105
 
106
- `packages/kuralle-messaging-meta/examples/multi-platform/server.ts`
106
+ `packages/messaging-meta/examples/multi-platform/server.ts`
107
107
 
108
- Offline E2E: `packages/kuralle-engagement/test/same-bot-across-channels.test.ts`.
108
+ Offline E2E: `packages/engagement/test/same-bot-across-channels.test.ts`.
109
109
 
110
110
  ## Related packages
111
111
 
@@ -15,8 +15,8 @@ export function interactiveRenderer(policies) {
15
15
  return next(req);
16
16
  const policy = policies ? policyFor(policies, req.platform) : undefined;
17
17
  const interactive = policy
18
- ? policy.renderInteractive(part.options, part.prompt)
19
- : renderChoices(part.options, part.prompt);
18
+ ? policy.renderInteractive(part.payload.options, part.payload.prompt)
19
+ : renderChoices(part.payload.options, part.payload.prompt);
20
20
  return next({ ...req, payload: { kind: 'interactive', interactive } });
21
21
  },
22
22
  };
package/package.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/kuralle/kuralle-agents.git",
7
- "directory": "packages/kuralle-engagement"
7
+ "directory": "packages/engagement"
8
8
  },
9
- "version": "0.12.0",
9
+ "version": "0.14.0",
10
10
  "description": "Channel-agnostic engagement layer for Kuralle agents (window-safe outbound, smart-send, interactive fidelity, handoff, consent, proactive).",
11
11
  "type": "module",
12
12
  "main": "dist/index.js",
@@ -27,13 +27,14 @@
27
27
  "dependencies": {
28
28
  "ai": "^6.0.0",
29
29
  "zod": "^4.0.0",
30
- "@kuralle-agents/messaging": "0.12.0",
31
- "@kuralle-agents/messaging-meta": "0.12.0",
32
- "@kuralle-agents/core": "0.12.0"
30
+ "@kuralle-agents/core": "0.14.0",
31
+ "@kuralle-agents/messaging": "0.14.0",
32
+ "@kuralle-agents/messaging-meta": "0.14.0"
33
33
  },
34
34
  "devDependencies": {
35
- "typescript": "^5.8.2",
36
- "@types/node": "^22.13.4"
35
+ "@types/node": "^22.13.4",
36
+ "hono": "^4.12.12",
37
+ "typescript": "^5.8.2"
37
38
  },
38
39
  "scripts": {
39
40
  "prebuild": "rm -rf dist",