@lunora/agent 1.0.0-alpha.249 → 1.0.0-alpha.250

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/naming.d.mts CHANGED
@@ -23,4 +23,16 @@ declare const voiceClassName: (exportName: string) => string;
23
23
  * @experimental
24
24
  */
25
25
  declare const voiceBindingName: (exportName: string) => string;
26
- export { agentClassName, agentDefaultName, voiceBindingName, voiceClassName };
26
+ /**
27
+ * Every runtime function `agentComponent()` registers, with its visibility —
28
+ * `"internal"` for the ones the durable loop dispatches by path, `"public"` for
29
+ * the client-facing queries and mutations.
30
+ *
31
+ * A static table so codegen can auto-register the functions without importing
32
+ * `@lunora/agent/component`, whose module graph (`@lunora/server`, the shard
33
+ * engine, drizzle, hono) every codegen process would otherwise load, agents or
34
+ * not. `__tests__/component.test.ts` fails when it drifts from the component.
35
+ * @experimental
36
+ */
37
+ declare const AGENT_RUNTIME_FUNCTIONS: Readonly<Record<string, "internal" | "public">>;
38
+ export { AGENT_RUNTIME_FUNCTIONS, agentClassName, agentDefaultName, voiceBindingName, voiceClassName };
package/dist/naming.d.ts CHANGED
@@ -23,4 +23,16 @@ declare const voiceClassName: (exportName: string) => string;
23
23
  * @experimental
24
24
  */
25
25
  declare const voiceBindingName: (exportName: string) => string;
26
- export { agentClassName, agentDefaultName, voiceBindingName, voiceClassName };
26
+ /**
27
+ * Every runtime function `agentComponent()` registers, with its visibility —
28
+ * `"internal"` for the ones the durable loop dispatches by path, `"public"` for
29
+ * the client-facing queries and mutations.
30
+ *
31
+ * A static table so codegen can auto-register the functions without importing
32
+ * `@lunora/agent/component`, whose module graph (`@lunora/server`, the shard
33
+ * engine, drizzle, hono) every codegen process would otherwise load, agents or
34
+ * not. `__tests__/component.test.ts` fails when it drifts from the component.
35
+ * @experimental
36
+ */
37
+ declare const AGENT_RUNTIME_FUNCTIONS: Readonly<Record<string, "internal" | "public">>;
38
+ export { AGENT_RUNTIME_FUNCTIONS, agentClassName, agentDefaultName, voiceBindingName, voiceClassName };
package/dist/naming.mjs CHANGED
@@ -1 +1 @@
1
- const a=/([a-z0-9])([A-Z])/gu,s=e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}AgentWorkflow`,t=e=>`agent-${e.replaceAll(a,"$1-$2").toLowerCase()}`,c=e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}VoiceDO`,o=e=>`VOICE_${e.replaceAll(a,"$1_$2").toUpperCase()}`;export{s as agentClassName,t as agentDefaultName,o as voiceBindingName,c as voiceClassName};
1
+ const t=/([a-z0-9])([A-Z])/gu,a=e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}AgentWorkflow`,n=e=>`agent-${e.replaceAll(t,"$1-$2").toLowerCase()}`,l=e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}VoiceDO`,r=e=>`VOICE_${e.replaceAll(t,"$1_$2").toUpperCase()}`,i={agentAppendMessage:"internal",agentApprovalGranted:"internal",agentApprovalGrants:"public",agentCompleteRun:"internal",agentDeclineSecret:"public",agentDeleteMessage:"internal",agentDiscardSecret:"internal",agentEnsureThread:"internal",agentEpisodeRecall:"internal",agentEpisodeUpsert:"internal",agentGraphTraverse:"internal",agentGraphUpsert:"internal",agentHistory:"internal",agentMessages:"public",agentOpenSecretRequest:"internal",agentPatchThread:"internal",agentPendingApprovals:"public",agentResolveApproval:"public",agentRevokeApprovalGrant:"public",agentRun:"public",agentSecretRequests:"public",agentSetState:"internal",agentSettleSecretRequest:"internal",agentState:"public",agentSupplySecret:"public",agentTakeSecret:"internal",agentThread:"public"};export{i as AGENT_RUNTIME_FUNCTIONS,a as agentClassName,n as agentDefaultName,r as voiceBindingName,l as voiceClassName};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/agent",
3
- "version": "1.0.0-alpha.249",
3
+ "version": "1.0.0-alpha.250",
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",
@@ -85,13 +85,13 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@ai-sdk/provider-utils": "5.0.53",
88
- "@lunora/ai": "1.0.0-alpha.146",
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.123",
90
+ "@lunora/mail": "1.0.0-alpha.124",
91
91
  "@lunora/platform": "1.0.0-alpha.75",
92
- "@lunora/server": "1.0.0-alpha.240",
93
- "@lunora/values": "1.0.0-alpha.81",
94
- "@lunora/workflow": "1.0.0-alpha.95",
92
+ "@lunora/server": "1.0.0-alpha.241",
93
+ "@lunora/values": "1.0.0-alpha.82",
94
+ "@lunora/workflow": "1.0.0-alpha.96",
95
95
  "@modelcontextprotocol/sdk": "^1.32.0",
96
96
  "ai": "7.0.127",
97
97
  "yaml": "^2.9.1"