manychat-ai-agent 0.26.1 → 0.27.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/CHANGELOG.md +40 -0
- package/db/migrations/0013_meta_channels.sql +4 -0
- package/db/migrations/meta/0013_snapshot.json +1088 -0
- package/db/migrations/meta/_journal.json +7 -0
- package/dist/agent/prompt.js +5 -0
- package/dist/channels/manychat/adapter.js +5 -1
- package/dist/channels/manychat/client.d.ts +10 -3
- package/dist/channels/manychat/client.js +16 -6
- package/dist/channels/manychat/media.js +8 -5
- package/dist/channels/port.d.ts +2 -0
- package/dist/config/loader.d.ts +2 -0
- package/dist/config/loader.js +15 -1
- package/dist/contracts/config/channels.d.ts +8 -0
- package/dist/contracts/config/channels.js +8 -0
- package/dist/contracts/config/env.d.ts +23 -0
- package/dist/contracts/config/env.js +71 -0
- package/dist/conversation/store.d.ts +6 -3
- package/dist/conversation/store.js +11 -4
- package/dist/db/schema.d.ts +34 -0
- package/dist/db/schema.js +10 -0
- package/dist/main.js +1 -0
- package/dist/nudge/checks.d.ts +46 -0
- package/dist/nudge/checks.js +73 -0
- package/dist/nudge/performer.d.ts +3 -1
- package/dist/nudge/performer.js +5 -2
- package/dist/nudge/store.d.ts +3 -1
- package/dist/nudge/store.js +5 -4
- package/dist/nudge/worker.js +50 -79
- package/dist/outbox/queue.d.ts +8 -0
- package/dist/outbox/queue.js +3 -0
- package/dist/outbox/worker.d.ts +20 -0
- package/dist/outbox/worker.js +54 -4
- package/dist/server.js +35 -6
- package/dist/turn/admission.js +1 -1
- package/dist/turn/delivery.d.ts +2 -0
- package/dist/turn/delivery.js +2 -1
- package/dist/turn/fold.js +4 -1
- package/dist/turn/handler.js +4 -4
- package/dist/turn/recorder.d.ts +13 -0
- package/dist/turn/recorder.js +44 -16
- package/dist/turn/scope.d.ts +2 -2
- package/dist/turn/scope.js +6 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.27.0](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.26.1...v0.27.0) (2026-10-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* answer an image instead of describing it, and hand off an unrelated one ([f86d9bc](https://github.com/pedronastasi/manychat-ai-agent/commit/f86d9bc1957a16208dd19aed2e143e8031619ffc))
|
|
9
|
+
* answer an image instead of describing it, and hand off an unrelated one ([5e72cb4](https://github.com/pedronastasi/manychat-ai-agent/commit/5e72cb4d3596376f48f763fc55146a5b8aff9a1c))
|
|
10
|
+
* answer WhatsApp, Instagram and Messenger from one deployment (spec 048) ([563f530](https://github.com/pedronastasi/manychat-ai-agent/commit/563f53053bd8c4cd3a5cbf785d3bdcc06502813c))
|
|
11
|
+
* answer WhatsApp, Instagram and Messenger from one deployment (spec 048) ([5af5985](https://github.com/pedronastasi/manychat-ai-agent/commit/5af59857919136f443bbd16c5723b9bfe2c8ad6f))
|
|
12
|
+
* read Instagram and Messenger media as WhatsApp media is (spec 048) ([6896ffa](https://github.com/pedronastasi/manychat-ai-agent/commit/6896ffa8b035e8db2d42547567756f1cef9d0c3c))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* count a message written without a channel on every channel's window (spec 048) ([f399e19](https://github.com/pedronastasi/manychat-ai-agent/commit/f399e19dd4d8129d7ae59ad5078e22fb3a365fe0))
|
|
18
|
+
* keep a single-channel deployment on MANYCHAT_REPLY_FLOW_NS (spec 048) ([8fbc44a](https://github.com/pedronastasi/manychat-ai-agent/commit/8fbc44ae577c9112dc2e8e9a0cad3d839d010950))
|
|
19
|
+
* reserve each channel's reply flow and keep Telegram out of CHANNELS (spec 048) ([fc5b25e](https://github.com/pedronastasi/manychat-ai-agent/commit/fc5b25ec20cae1b9e98cbfd13ae5651bee32630b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Refactors
|
|
23
|
+
|
|
24
|
+
* move the image rules into the operating and format defaults ([0fb6d51](https://github.com/pedronastasi/manychat-ai-agent/commit/0fb6d51ae2e84486931094edc1ef0bba3498a4bb))
|
|
25
|
+
* run a nudge through NudgeChecks and the turn's own recorder ([7d2b33e](https://github.com/pedronastasi/manychat-ai-agent/commit/7d2b33ede634e590f6051aed6cd8ed705e2140db))
|
|
26
|
+
* run a nudge through NudgeChecks and the turn's own recorder ([4406fab](https://github.com/pedronastasi/manychat-ai-agent/commit/4406fabf35e88ac7dc7d9ff53df406f513d67d46))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Specs and Docs
|
|
30
|
+
|
|
31
|
+
* record PR 254 in spec 048 ([f7082bf](https://github.com/pedronastasi/manychat-ai-agent/commit/f7082bfd9ab064a06d01a9c27ddf3f0e9830f8b8))
|
|
32
|
+
* record the no-channel window rule in spec 048 ([80f27c0](https://github.com/pedronastasi/manychat-ai-agent/commit/80f27c00fca2b216119f4cfc0f1fba679f1d596a))
|
|
33
|
+
* specify one deployment answering every Meta channel (048) ([26172bb](https://github.com/pedronastasi/manychat-ai-agent/commit/26172bbb502a497864a691fe1d5c48b985424a6c))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Dependencies
|
|
37
|
+
|
|
38
|
+
* **deps:** lock file maintenance ([a905683](https://github.com/pedronastasi/manychat-ai-agent/commit/a90568320c3b8423c251e8ae4249daea174a568e))
|
|
39
|
+
* **deps:** lock file maintenance ([1ae252f](https://github.com/pedronastasi/manychat-ai-agent/commit/1ae252f15f94ba79e23825bc8304cbfa49bf71a7))
|
|
40
|
+
* **deps:** lock file maintenance ([b364b44](https://github.com/pedronastasi/manychat-ai-agent/commit/b364b44039fe4ff927118a017a60fa9ff7ebe294))
|
|
41
|
+
* **deps:** lock file maintenance ([aaca26c](https://github.com/pedronastasi/manychat-ai-agent/commit/aaca26c04cf9969a4475069c4b6286fe65cc41d7))
|
|
42
|
+
|
|
3
43
|
## [0.26.1](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.26.0...v0.26.1) (2026-10-18)
|
|
4
44
|
|
|
5
45
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
ALTER TABLE "nudges" ADD COLUMN "channel" text;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "turns" ADD COLUMN "channel" text;--> statement-breakpoint
|
|
3
|
+
-- A contact's earlier messages arrived on the channel their conversation was opened on (specs/048).
|
|
4
|
+
UPDATE "turns" SET "channel" = "conversations"."channel" FROM "conversations" WHERE "turns"."conversation_id" = "conversations"."id" AND "turns"."role" = 'user';
|