eve 0.13.3 → 0.13.5

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/src/channel/schedule-auth.d.ts +7 -0
  3. package/dist/src/channel/schedule-auth.js +1 -0
  4. package/dist/src/channel/schedule.d.ts +2 -6
  5. package/dist/src/channel/schedule.js +1 -1
  6. package/dist/src/chunks/use-eve-agent-BjAM8_a3.js +1499 -0
  7. package/dist/src/chunks/use-eve-agent-_dbX0ASK.js +1529 -0
  8. package/dist/src/client/agent-info-schema.d.ts +1 -1
  9. package/dist/src/client/agent-info-schema.js +1 -1
  10. package/dist/src/client/message-reducer.js +1 -1
  11. package/dist/src/compiled/.vendor-stamp.json +3 -3
  12. package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -2
  13. package/dist/src/compiled/@ai-sdk/google/index.js +6 -6
  14. package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
  15. package/dist/src/compiled/@ai-sdk/openai/index.js +2 -2
  16. package/dist/src/compiled/@workflow/core/create-hook.d.ts +3 -1
  17. package/dist/src/compiled/@workflow/core/events-consumer.d.ts +9 -0
  18. package/dist/src/compiled/@workflow/core/index.js +2 -2
  19. package/dist/src/compiled/@workflow/core/logger.d.ts +1 -0
  20. package/dist/src/compiled/@workflow/core/private.d.ts +35 -2
  21. package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +73 -0
  22. package/dist/src/compiled/@workflow/core/runtime/get-port-lazy.d.ts +15 -0
  23. package/dist/src/compiled/@workflow/core/runtime/run-id-time.d.ts +10 -0
  24. package/dist/src/compiled/@workflow/core/runtime/step-executor.d.ts +61 -1
  25. package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +38 -2
  26. package/dist/src/compiled/@workflow/core/runtime.d.ts +1 -0
  27. package/dist/src/compiled/@workflow/core/runtime.js +28 -28
  28. package/dist/src/compiled/@workflow/core/source-map.d.ts +5 -0
  29. package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +27 -0
  30. package/dist/src/compiled/@workflow/core/step-hydration-cache.d.ts +148 -0
  31. package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +28 -0
  32. package/dist/src/compiled/@workflow/core/telemetry.d.ts +9 -6
  33. package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
  34. package/dist/src/compiled/@workflow/core/vm/script-cache.d.ts +28 -0
  35. package/dist/src/compiled/@workflow/core/workflow.js +1 -1
  36. package/dist/src/compiled/@workflow/world/events.d.ts +78 -3
  37. package/dist/src/compiled/@workflow/world/index.d.ts +1 -1
  38. package/dist/src/compiled/@workflow/world/spec-version.d.ts +11 -1
  39. package/dist/src/compiled/_chunks/{workflow/core-CXJbIkCL.js → client/core-Bm8azZA6.js} +5 -5
  40. package/dist/src/compiled/_chunks/workflow/{attribute-changes-Bi5DLT8S.js → attribute-changes-DUxG-Gic.js} +3 -3
  41. package/dist/src/compiled/_chunks/workflow/dist-C9PV_vnE.js +77 -0
  42. package/dist/src/compiled/_chunks/workflow/resume-hook-CUCPW67D.js +1 -0
  43. package/dist/src/compiled/_chunks/workflow/{run-XM8dTRAo.js → run-CVlF84yI.js} +1 -1
  44. package/dist/src/compiled/_chunks/workflow/sleep-Dxuzj5to.js +1 -0
  45. package/dist/src/compiled/zod/index.js +1 -1
  46. package/dist/src/compiled/zod-validation-error/index.js +1 -1
  47. package/dist/src/execution/hook-ownership.d.ts +7 -0
  48. package/dist/src/execution/hook-ownership.js +1 -0
  49. package/dist/src/execution/workflow-entry.js +1 -1
  50. package/dist/src/execution/workflow-runtime.js +1 -1
  51. package/dist/src/execution/workflow-steps.js +1 -1
  52. package/dist/src/harness/action-result-helpers.d.ts +2 -3
  53. package/dist/src/harness/action-result-helpers.js +1 -1
  54. package/dist/src/harness/authorization.d.ts +1 -0
  55. package/dist/src/harness/authorization.js +1 -1
  56. package/dist/src/harness/emission.js +1 -1
  57. package/dist/src/harness/messages.js +1 -1
  58. package/dist/src/harness/provider-tools.d.ts +4 -27
  59. package/dist/src/harness/provider-tools.js +1 -1
  60. package/dist/src/harness/step-hooks.d.ts +0 -13
  61. package/dist/src/harness/step-hooks.js +1 -1
  62. package/dist/src/harness/tool-loop.js +1 -1
  63. package/dist/src/harness/tool-output-serialization.d.ts +17 -0
  64. package/dist/src/harness/tool-output-serialization.js +1 -0
  65. package/dist/src/harness/tools.js +1 -1
  66. package/dist/src/internal/application/optional-package-install.js +15 -1
  67. package/dist/src/internal/application/package.js +1 -1
  68. package/dist/src/internal/workflow-bundle/workflow-core-shim.d.ts +10 -8
  69. package/dist/src/public/channels/slack/defaults.js +1 -1
  70. package/dist/src/runtime/framework-tools/web-search.d.ts +2 -2
  71. package/dist/src/runtime/framework-tools/web-search.js +1 -1
  72. package/dist/src/setup/scaffold/create/project.js +1 -1
  73. package/dist/src/shared/empty-delivery.d.ts +3 -0
  74. package/dist/src/shared/empty-delivery.js +1 -0
  75. package/dist/src/svelte/index.js +1 -1
  76. package/dist/src/svelte/use-eve-agent.js +1 -1
  77. package/dist/src/vue/index.js +1 -1
  78. package/dist/src/vue/use-eve-agent.js +1 -1
  79. package/docs/channels/custom.mdx +1 -1
  80. package/docs/channels/eve.mdx +1 -1
  81. package/docs/concepts/execution-model-and-durability.md +2 -0
  82. package/docs/guides/client/continuations.mdx +4 -0
  83. package/docs/guides/client/streaming.mdx +6 -0
  84. package/docs/guides/frontend/overview.mdx +28 -8
  85. package/docs/schedules.mdx +5 -3
  86. package/docs/tools/overview.mdx +2 -0
  87. package/package.json +4 -4
  88. package/dist/src/chunks/use-eve-agent-B18LYpfZ.js +0 -5765
  89. package/dist/src/chunks/use-eve-agent-BPI1nbo5.js +0 -5795
  90. package/dist/src/compiled/_chunks/workflow/coerce-B-Ro4Nfe.js +0 -1
  91. package/dist/src/compiled/_chunks/workflow/compat-DLpWymPP.js +0 -1
  92. package/dist/src/compiled/_chunks/workflow/dist-DTchiX0N.js +0 -14
  93. package/dist/src/compiled/_chunks/workflow/resume-hook-CKTw-lb5.js +0 -1
  94. package/dist/src/compiled/_chunks/workflow/schemas-iG9Z4s4o.js +0 -1
  95. package/dist/src/compiled/_chunks/workflow/sleep-DPjVkRY-.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # eve
2
2
 
3
+ ## 0.13.5
4
+
5
+ ### Patch Changes
6
+
7
+ - c927ecd: Confirm continuation-token ownership before an agent turn starts or a session re-keys. Competing sessions now fail before processing input, and successful delivery reports the hook owner atomically.
8
+ - 5f0f69f: Use Parallel through AI Gateway for the built-in `web_search` tool with every string model. Gateway requests no longer select native provider search tools or pin routing to a model provider.
9
+ - 430ed8c: Teach agents that conditionally delivered work can finish successfully without sending a message. Polling schedules can now intentionally skip delivery without treating an accidental blank model response as success.
10
+ - 25b1b14: fix(eve): catch unserializable tool output values instead of sending them to the model
11
+
12
+ ## 0.13.4
13
+
14
+ ### Patch Changes
15
+
16
+ - efca390: Make optional sandbox engine loading more resilient after auto-install. eve now
17
+ probes installed engine packages in a cache-isolated worker, checks ancestor
18
+ `node_modules` directories for workspace-hoisted installs, and reports a clear
19
+ post-install diagnostic when an engine package still cannot be loaded.
20
+ - 7079d08: Bundle client-safe vendored dependencies in a neutral chunk group so `eve/react` can use the Zod-backed `/eve/v1/info` validator without pulling in Node-only vendored runtime helpers.
21
+ - 598b5e0: Clear pending connection/tool authorization state after a matching callback resumes a session, so Slack threads do not keep waiting for already-completed auth and swallow follow-up messages.
22
+ - 9298c90: Upgrade the Workflow development packages to their latest beta releases.
23
+
3
24
  ## 0.13.3
4
25
 
5
26
  ### Patch Changes
@@ -0,0 +1,7 @@
1
+ import type { SessionAuthContext } from "#channel/types.js";
2
+ /**
3
+ * Framework-owned principal used when a schedule runs on behalf of the agent.
4
+ */
5
+ export declare const SCHEDULE_APP_AUTH: SessionAuthContext;
6
+ /** Returns whether the current request is authenticated as eve's schedule principal. */
7
+ export declare function isScheduleAppAuth(auth: SessionAuthContext | null | undefined): auth is SessionAuthContext;
@@ -0,0 +1 @@
1
+ const SCHEDULE_APP_AUTH={attributes:{},authenticator:`app`,principalId:`eve:app`,principalType:`runtime`};function isScheduleAppAuth(e){return e?.authenticator===SCHEDULE_APP_AUTH.authenticator&&e.principalId===SCHEDULE_APP_AUTH.principalId&&e.principalType===SCHEDULE_APP_AUTH.principalType}export{SCHEDULE_APP_AUTH,isScheduleAppAuth};
@@ -1,13 +1,9 @@
1
1
  import type { ChannelAdapter } from "#channel/adapter.js";
2
2
  import { type Session } from "#channel/session.js";
3
- import type { Runtime, SessionAuthContext } from "#channel/types.js";
3
+ import type { Runtime } from "#channel/types.js";
4
4
  import type { ScheduleRunHandler } from "#public/definitions/schedule.js";
5
5
  import type { ResolvedChannelDefinition } from "#runtime/types.js";
6
- /**
7
- * Pre-built application auth context handed to schedules. Schedules
8
- * run on behalf of the agent itself, not a downstream user.
9
- */
10
- export declare const SCHEDULE_APP_AUTH: SessionAuthContext;
6
+ export { SCHEDULE_APP_AUTH } from "#channel/schedule-auth.js";
11
7
  /**
12
8
  * Durable adapter kind used when a schedule fires without targeting a
13
9
  * channel — the markdown form, and the synthesized run the dispatcher
@@ -1 +1 @@
1
- import{createSession}from"#channel/session.js";import{createCrossChannelReceiveFn,toCrossChannelTargets}from"#channel/cross-channel-receive.js";import{expectFunction}from"#internal/authored-module.js";const SCHEDULE_APP_AUTH={attributes:{},authenticator:`app`,principalId:`eve:app`,principalType:`runtime`},SCHEDULE_ADAPTER_KIND=`schedule`,SCHEDULE_ADAPTER={kind:SCHEDULE_ADAPTER_KIND};var ScheduleDispatcher=class{runtime;channels;constructor(e){this.runtime=e.runtime,this.channels=e.channels}async trigger(e){let r=[],a=[],o=createCrossChannelReceiveFn(this.runtime,toCrossChannelTargets(this.channels)),s={appAuth:SCHEDULE_APP_AUTH,receive:async(e,t)=>{let n=await o(e,t);return r.push(n),n},waitUntil(e){a.push(e)}};if(e.run)await e.run(s);else if(e.markdown!==void 0){let t=await this.runMarkdown(e.markdown);r.push(t)}else throw Error(`Schedule "${e.scheduleId}" has neither "run" nor "markdown" — at least one must be set.`);return{sessions:r,waitUntilTasks:a}}async runMarkdown(t){let n=await this.runtime.run({adapter:SCHEDULE_ADAPTER,auth:SCHEDULE_APP_AUTH,input:{message:t},mode:`task`});return createSession(n.sessionId,n.continuationToken,this.runtime)}};function expectScheduleRun(e,t,n){let i=e;if(typeof i!=`object`||!i)throw Error(`Schedule export "${n??`default`}" from "${t}" must be an object.`);return expectFunction(i.run,`Expected the schedule export "${n??`default`}" from "${t}" to export a \`run\` handler function.`)}export{SCHEDULE_ADAPTER,SCHEDULE_ADAPTER_KIND,SCHEDULE_APP_AUTH,ScheduleDispatcher,expectScheduleRun};
1
+ import{createSession}from"#channel/session.js";import{SCHEDULE_APP_AUTH,SCHEDULE_APP_AUTH as SCHEDULE_APP_AUTH$1}from"#channel/schedule-auth.js";import{createCrossChannelReceiveFn,toCrossChannelTargets}from"#channel/cross-channel-receive.js";import{expectFunction}from"#internal/authored-module.js";const SCHEDULE_ADAPTER_KIND=`schedule`,SCHEDULE_ADAPTER={kind:SCHEDULE_ADAPTER_KIND};var ScheduleDispatcher=class{runtime;channels;constructor(e){this.runtime=e.runtime,this.channels=e.channels}async trigger(e){let t=[],i=[],a=createCrossChannelReceiveFn(this.runtime,toCrossChannelTargets(this.channels)),o={appAuth:SCHEDULE_APP_AUTH$1,receive:async(e,n)=>{let r=await a(e,n);return t.push(r),r},waitUntil(e){i.push(e)}};if(e.run)await e.run(o);else if(e.markdown!==void 0){let n=await this.runMarkdown(e.markdown);t.push(n)}else throw Error(`Schedule "${e.scheduleId}" has neither "run" nor "markdown" — at least one must be set.`);return{sessions:t,waitUntilTasks:i}}async runMarkdown(t){let r=await this.runtime.run({adapter:SCHEDULE_ADAPTER,auth:SCHEDULE_APP_AUTH$1,input:{message:t},mode:`task`});return createSession(r.sessionId,r.continuationToken,this.runtime)}};function expectScheduleRun(e,t,n){let r=e;if(typeof r!=`object`||!r)throw Error(`Schedule export "${n??`default`}" from "${t}" must be an object.`);return expectFunction(r.run,`Expected the schedule export "${n??`default`}" from "${t}" to export a \`run\` handler function.`)}export{SCHEDULE_ADAPTER,SCHEDULE_ADAPTER_KIND,SCHEDULE_APP_AUTH,ScheduleDispatcher,expectScheduleRun};