@lunora/agent 1.0.0-alpha.250 → 1.0.0-alpha.251
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/dist/reply.d.mts +18 -0
- package/dist/reply.d.ts +18 -0
- package/package.json +2 -2
package/dist/reply.d.mts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The outbound half of an inbound trigger: capture where a message came from,
|
|
3
|
+
* then answer in the same thread.
|
|
4
|
+
*
|
|
5
|
+
* Inbound is fully built (`./inbound` for email, `./channels` for
|
|
6
|
+
* Slack/GitHub/Discord) and hands every mapper a verified, parsed event. What
|
|
7
|
+
* this module adds is the small amount of channel knowledge needed to turn that
|
|
8
|
+
* event into an {@link AgentReplyRef} and, for email, to send a correctly
|
|
9
|
+
* threaded reply back.
|
|
10
|
+
*
|
|
11
|
+
* Only email ships a send helper. Slack, GitHub, and Discord need an OUTBOUND
|
|
12
|
+
* credential (a bot token, an installation token) and the framework has no
|
|
13
|
+
* store for one — `AgentInboundChannel.secret` is for verifying inbound
|
|
14
|
+
* signatures, not for authenticating outbound calls. So for those channels
|
|
15
|
+
* `onReply` receives `env` and the app makes the provider call with its own
|
|
16
|
+
* token. Inventing a credential store to hide three fetch calls would be the
|
|
17
|
+
* wrong trade.
|
|
18
|
+
*/
|
|
1
19
|
import { Mailer } from '@lunora/mail';
|
|
2
20
|
import { InboundEmail } from '@lunora/mail/inbound';
|
|
3
21
|
import { a as AgentReplyRef } from "./packem_shared/types.d-vAmttAsE.mjs";
|
package/dist/reply.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The outbound half of an inbound trigger: capture where a message came from,
|
|
3
|
+
* then answer in the same thread.
|
|
4
|
+
*
|
|
5
|
+
* Inbound is fully built (`./inbound` for email, `./channels` for
|
|
6
|
+
* Slack/GitHub/Discord) and hands every mapper a verified, parsed event. What
|
|
7
|
+
* this module adds is the small amount of channel knowledge needed to turn that
|
|
8
|
+
* event into an {@link AgentReplyRef} and, for email, to send a correctly
|
|
9
|
+
* threaded reply back.
|
|
10
|
+
*
|
|
11
|
+
* Only email ships a send helper. Slack, GitHub, and Discord need an OUTBOUND
|
|
12
|
+
* credential (a bot token, an installation token) and the framework has no
|
|
13
|
+
* store for one — `AgentInboundChannel.secret` is for verifying inbound
|
|
14
|
+
* signatures, not for authenticating outbound calls. So for those channels
|
|
15
|
+
* `onReply` receives `env` and the app makes the provider call with its own
|
|
16
|
+
* token. Inventing a credential store to hide three fetch calls would be the
|
|
17
|
+
* wrong trade.
|
|
18
|
+
*/
|
|
1
19
|
import { Mailer } from '@lunora/mail';
|
|
2
20
|
import { InboundEmail } from '@lunora/mail/inbound';
|
|
3
21
|
import { a as AgentReplyRef } from "./packem_shared/types.d-vAmttAsE.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/agent",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.251",
|
|
4
4
|
"description": "Durable AI agents for Lunora: defineAgent compiles a replay-safe tool-loop onto Cloudflare Workflows, with DO SQLite threads and live message subscriptions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@ai-sdk/provider-utils": "5.0.53",
|
|
88
88
|
"@lunora/ai": "1.0.0-alpha.147",
|
|
89
89
|
"@lunora/errors": ">=1.0.0-alpha.51 <2.0.0-0",
|
|
90
|
-
"@lunora/mail": "1.0.0-alpha.
|
|
90
|
+
"@lunora/mail": "1.0.0-alpha.125",
|
|
91
91
|
"@lunora/platform": "1.0.0-alpha.75",
|
|
92
92
|
"@lunora/server": "1.0.0-alpha.241",
|
|
93
93
|
"@lunora/values": "1.0.0-alpha.82",
|