eve 0.66.0 → 0.66.1

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 (155) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/src/channel/forwarded-principal.d.ts +26 -6
  3. package/dist/src/channel/forwarded-principal.js +1 -1
  4. package/dist/src/chunks/{use-eve-agent-BUeSjwIk.js → use-eve-agent-Di1u2zKu.js} +24 -4
  5. package/dist/src/chunks/{use-eve-agent-ydPlURM4.js → use-eve-agent-PbSMyJ6e.js} +24 -4
  6. package/dist/src/cli/commands/extension-build.js +1 -1
  7. package/dist/src/cli/commands/registry-project.d.ts +2 -1
  8. package/dist/src/cli/commands/registry-project.js +2 -2
  9. package/dist/src/cli/commands/registry.js +1 -1
  10. package/dist/src/cli/commands/trace-detail.d.ts +5 -25
  11. package/dist/src/cli/commands/trace-detail.js +1 -1
  12. package/dist/src/cli/commands/trace.js +2 -2
  13. package/dist/src/cli/dev/run-interactive-ui.js +1 -1
  14. package/dist/src/cli/dev/tui/argument-typeahead.d.ts +1 -1
  15. package/dist/src/cli/dev/tui/argument-typeahead.js +1 -1
  16. package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
  17. package/dist/src/cli/dev/tui/prompt-commands.js +1 -1
  18. package/dist/src/cli/dev/tui/registry-result-message.js +1 -1
  19. package/dist/src/cli/dev/tui/runner.d.ts +2 -2
  20. package/dist/src/cli/dev/tui/setup-commands.d.ts +3 -1
  21. package/dist/src/cli/dev/tui/setup-commands.js +1 -1
  22. package/dist/src/cli/dev/tui/setup-panel.d.ts +14 -0
  23. package/dist/src/cli/dev/tui/setup-panel.js +4 -4
  24. package/dist/src/cli/dev/tui/subagent-pump.d.ts +2 -10
  25. package/dist/src/cli/dev/tui/subagent-pump.js +1 -1
  26. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +2 -2
  27. package/dist/src/cli/dev/tui/terminal-renderer.js +10 -10
  28. package/dist/src/cli/dev/tui/traces/trace-conversation.js +1 -1
  29. package/dist/src/cli/dev/tui/tui.js +1 -1
  30. package/dist/src/client/client-error.js +1 -1
  31. package/dist/src/client/open-stream.d.ts +3 -2
  32. package/dist/src/client/open-stream.js +1 -1
  33. package/dist/src/client/session.d.ts +16 -1
  34. package/dist/src/client/session.js +1 -1
  35. package/dist/src/compiled/.vendor-stamp.json +1 -1
  36. package/dist/src/evals/session.d.ts +3 -2
  37. package/dist/src/evals/session.js +1 -1
  38. package/dist/src/evals/types.d.ts +8 -2
  39. package/dist/src/eve-channel/index.js +1 -1
  40. package/dist/src/eve-channel/types.d.ts +12 -4
  41. package/dist/src/execution/cancel-indexed-session-tasks-step.js +1 -1
  42. package/dist/src/execution/dynamic-workflow/tool.js +1 -1
  43. package/dist/src/execution/proxied-deliver-step.js +1 -1
  44. package/dist/src/execution/route-child-delivery.js +2 -2
  45. package/dist/src/execution/session/admission.js +1 -1
  46. package/dist/src/execution/session/finalization.js +1 -1
  47. package/dist/src/execution/session/handoff-steps.js +1 -1
  48. package/dist/src/execution/session/input-queue.d.ts +12 -10
  49. package/dist/src/execution/session/input-queue.js +1 -1
  50. package/dist/src/execution/session/next-input.js +1 -1
  51. package/dist/src/execution/session/program.js +1 -1
  52. package/dist/src/execution/session/turn-step-result.d.ts +3 -1
  53. package/dist/src/execution/session/turn-step-result.js +1 -1
  54. package/dist/src/execution/session/turn-step-types.d.ts +7 -2
  55. package/dist/src/execution/session/turn-step.js +1 -1
  56. package/dist/src/execution/session/turn.js +1 -1
  57. package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
  58. package/dist/src/execution/tasks/parent/control-shared.js +1 -1
  59. package/dist/src/execution/tasks/parent/dispatch.js +1 -1
  60. package/dist/src/execution/tasks/parent/hitl-proxy-steps.d.ts +1 -0
  61. package/dist/src/execution/tasks/parent/hitl-proxy-steps.js +1 -1
  62. package/dist/src/execution/tasks/parent/tool-execution.js +1 -1
  63. package/dist/src/execution/tools/agent-router-workflow.js +1 -1
  64. package/dist/src/execution/tools/ask-question-workflow.js +1 -1
  65. package/dist/src/execution/tools/sleep-workflow.js +1 -1
  66. package/dist/src/execution/tools/subagent/accept-event-step.js +1 -1
  67. package/dist/src/execution/tools/subagent/invoke-preparation.js +1 -1
  68. package/dist/src/execution/tools/subagent/invoke-step.js +1 -1
  69. package/dist/src/execution/tools/subagent/task-cancel.d.ts +1 -1
  70. package/dist/src/execution/tools/subagent/task-cancel.js +1 -1
  71. package/dist/src/harness/session-limit-enforcement.js +1 -1
  72. package/dist/src/harness/tool-loop.js +2 -2
  73. package/dist/src/harness/turn-tag-state.d.ts +2 -2
  74. package/dist/src/harness/workflow-tool-runs.d.ts +33 -5
  75. package/dist/src/harness/workflow-tool-runs.js +1 -1
  76. package/dist/src/internal/application/package.js +1 -1
  77. package/dist/src/internal/nitro/host/build-extension.js +1 -1
  78. package/dist/src/internal/nitro/host/extension-build-lock.d.ts +9 -0
  79. package/dist/src/internal/nitro/host/extension-build-lock.js +1 -0
  80. package/dist/src/internal/nitro/host/prepare-application-host.d.ts +5 -4
  81. package/dist/src/internal/nitro/host/prepare-application-host.js +1 -1
  82. package/dist/src/internal/nitro/host/types.d.ts +2 -2
  83. package/dist/src/internal/nitro/host/workspace-extensions.d.ts +31 -0
  84. package/dist/src/internal/nitro/host/workspace-extensions.js +1 -0
  85. package/dist/src/public/next/index.d.ts +10 -7
  86. package/dist/src/public/next/index.js +1 -1
  87. package/dist/src/public/next/server.d.ts +3 -0
  88. package/dist/src/public/next/server.js +2 -2
  89. package/dist/src/self-modification/extension/local-only.d.ts +5 -0
  90. package/dist/src/self-modification/extension/local-only.js +1 -0
  91. package/dist/src/self-modification/extension/subagents/agent/instructions.js +6 -6
  92. package/dist/src/self-modification/extension/subagents/agent/skills/trace_analysis.d.ts +10 -0
  93. package/dist/src/self-modification/extension/subagents/agent/skills/trace_analysis.js +19 -0
  94. package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace.d.ts +128 -0
  95. package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace.js +1 -0
  96. package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace_spans.d.ts +80 -0
  97. package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace_spans.js +1 -0
  98. package/dist/src/self-modification/extension/subagents/agent/tools/registry_add.js +1 -1
  99. package/dist/src/self-modification/extension/subagents/agent/tools/search_traces.d.ts +53 -0
  100. package/dist/src/self-modification/extension/subagents/agent/tools/search_traces.js +1 -0
  101. package/dist/src/self-modification/extension/trace-inspection.d.ts +15 -0
  102. package/dist/src/self-modification/extension/trace-inspection.js +1 -0
  103. package/dist/src/self-modification/sandbox.js +1 -1
  104. package/dist/src/setup/ask.d.ts +2 -0
  105. package/dist/src/setup/ask.js +1 -1
  106. package/dist/src/setup/cli/option-row.d.ts +3 -1
  107. package/dist/src/setup/cli/option-row.js +1 -1
  108. package/dist/src/setup/flows/model-login.d.ts +4 -0
  109. package/dist/src/setup/flows/model-login.js +1 -1
  110. package/dist/src/setup/integrations/web/setup.d.ts +15 -10
  111. package/dist/src/setup/integrations/web/setup.js +30 -1
  112. package/dist/src/setup/scaffold/create/project.js +2 -2
  113. package/dist/src/setup/scaffold/create/web-template.d.ts +7 -3
  114. package/dist/src/setup/scaffold/create/web-template.js +39 -20
  115. package/dist/src/setup/scaffold/update/channels.js +2 -2
  116. package/dist/src/subagents/parent-notification.d.ts +1 -1
  117. package/dist/src/subagents/remote-dispatch.d.ts +1 -0
  118. package/dist/src/subagents/remote-dispatch.js +1 -1
  119. package/dist/src/svelte/index.js +1 -1
  120. package/dist/src/svelte/use-eve-agent.js +1 -1
  121. package/dist/src/tasks/delivery-context.js +2 -2
  122. package/dist/src/tasks/notification.d.ts +6 -0
  123. package/dist/src/tasks/notification.js +1 -1
  124. package/dist/src/tracing/agent-trace-context-store.js +1 -1
  125. package/dist/src/tracing/local-trace-analysis.d.ts +51 -0
  126. package/dist/src/tracing/local-trace-analysis.js +1 -0
  127. package/dist/src/tracing/local-trace-discovery-index.d.ts +15 -0
  128. package/dist/src/tracing/local-trace-discovery-index.js +1 -0
  129. package/dist/src/tracing/local-trace-operations.d.ts +13 -0
  130. package/dist/src/tracing/local-trace-operations.js +1 -0
  131. package/dist/src/tracing/local-trace-query.d.ts +17 -0
  132. package/dist/src/tracing/local-trace-query.js +1 -0
  133. package/dist/src/tracing/local-trace-span-processor.js +1 -1
  134. package/dist/src/tracing/local-trace-summary.d.ts +31 -0
  135. package/dist/src/tracing/local-trace-summary.js +1 -0
  136. package/dist/src/vue/index.js +1 -1
  137. package/dist/src/vue/use-eve-agent.js +1 -1
  138. package/docs/concepts/project-structure.mdx +2 -4
  139. package/docs/concepts/sessions-runs-and-streaming.md +2 -2
  140. package/docs/evals/cases.mdx +1 -0
  141. package/docs/extensions.md +3 -1
  142. package/docs/guides/auth-and-route-protection.md +33 -1
  143. package/docs/guides/client/streaming.mdx +26 -0
  144. package/docs/guides/deployment/vercel.mdx +3 -5
  145. package/docs/guides/frontend/nextjs.mdx +20 -7
  146. package/docs/guides/frontend/overview.mdx +1 -1
  147. package/docs/guides/remote-agents.md +3 -1
  148. package/docs/install-integrations.mdx +1 -1
  149. package/docs/reference/cli.md +1 -1
  150. package/docs/subagents/index.mdx +8 -2
  151. package/package.json +1 -1
  152. package/dist/src/internal/nitro/host/dev-workspace-extensions.d.ts +0 -18
  153. package/dist/src/internal/nitro/host/dev-workspace-extensions.js +0 -1
  154. package/dist/src/tasks/session-task-cohorts.d.ts +0 -7
  155. package/dist/src/tasks/session-task-cohorts.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve",
3
- "version": "0.66.0",
3
+ "version": "0.66.1",
4
4
  "private": false,
5
5
  "description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
6
6
  "keywords": [
@@ -1,18 +0,0 @@
1
- import { type ExtensionBuildConfig } from "#internal/nitro/host/build-extension.js";
2
- /** Build inputs retained with a prepared dev host for path-scoped extension HMR. */
3
- export interface DevelopmentWorkspaceExtension {
4
- readonly config: ExtensionBuildConfig;
5
- /** Canonical package root, with workspace links resolved. */
6
- readonly packageRoot: string;
7
- /** Non-source inputs that affect publisher output, such as tsconfig files. */
8
- readonly buildConfigPaths: readonly string[];
9
- }
10
- /**
11
- * Builds mounted source-backed workspace extensions before the consuming agent
12
- * compiles and returns the inputs needed to scope the next development rebuild.
13
- */
14
- export declare function prepareDevelopmentWorkspaceExtensions(input: {
15
- readonly appRoot: string;
16
- readonly changedPaths?: readonly string[];
17
- readonly previousExtensions?: readonly DevelopmentWorkspaceExtension[];
18
- }): Promise<readonly DevelopmentWorkspaceExtension[]>;
@@ -1 +0,0 @@
1
- import{realpath,stat}from"node:fs/promises";import{basename,dirname,join,resolve,sep}from"node:path";import{resolveDiscoveryProject}from"#discover/project.js";import{discoverExtensionMountDeclarations}from"#discover/discover-agent.js";import{buildExtensionPackage,tryReadExtensionBuildConfig}from"#internal/nitro/host/build-extension.js";import{locateExtensionMountPackage}from"#discover/extensions.js";import{createDiskProjectSource}from"#discover/project-source.js";import{isAuthoredSourcePath,resolveDevelopmentSourceRoot}from"#internal/nitro/dev-runtime-source-snapshot.js";import{resolveTsConfigDependencyPaths}from"#internal/application/tsconfig-dependencies.js";async function prepareDevelopmentWorkspaceExtensions(e){let t=resolve(e.appRoot),n=await resolveDiscoveryProject(t),r=createDiskProjectSource(),i=await discoverExtensionMountGraph({agentRoot:n.agentRoot,source:r}),a=await toCanonicalPath(resolveDevelopmentSourceRoot(t)),o=new Map;for(let e of i){let n=await resolveWorkspaceExtension({appRoot:t,agentRoot:e.agentRoot,mount:e.mount,source:r,workspaceSourceRoot:a});n!==void 0&&o.set(n.packageRoot,n)}let s=[...o.values()].sort((e,t)=>e.packageRoot.localeCompare(t.packageRoot)),c=new Map(e.previousExtensions?.map(e=>[e.packageRoot,e])),l=e.changedPaths===void 0?void 0:await Promise.all(e.changedPaths.map(async e=>await toCanonicalPath(e))),u=e.previousExtensions===void 0||l?.length===0;return await Promise.all(s.map(async e=>{let t=c.get(e.packageRoot);(u===!0||t===void 0||!sameBuildInputs(t,e)||l?.some(t=>affectsExtensionBuild(t,e))===!0)&&await buildExtensionPackage(e.packageRoot,e.config)})),s}async function discoverExtensionMountGraph(e){let t=(await discoverExtensionMountDeclarations(e)).mounts.map(t=>({agentRoot:e.agentRoot,mount:t})),n=join(e.agentRoot,`subagents`);if(await e.source.stat(n)!==`directory`)return t;let r=await e.source.readDirectory(n),i=await Promise.all(r.filter(e=>e.isDirectory()).map(async t=>await discoverExtensionMountGraph({agentRoot:join(n,t.name),source:e.source})));return[...t,...i.flat()]}async function resolveWorkspaceExtension(e){let t=await locateExtensionMountPackage({source:e.source,agentRoot:e.agentRoot,appRoot:e.appRoot,mount:e.mount.mountRef,namespace:e.mount.namespace});if(t.location?.authoredSourceRoot===void 0)return;let n=await realpath(t.location.packageRoot).catch(()=>void 0);if(n===void 0||!isAuthoredSourcePath(n,e.workspaceSourceRoot))return;let r=await tryReadExtensionBuildConfig(n);if(r===null||(await stat(r.sourceRoot).catch(()=>void 0))?.isDirectory()!==!0)return;let i=[join(n,`package.json`),join(n,`tsconfig.json`),...await resolveTsConfigDependencyPaths(n)];return{config:r,packageRoot:n,buildConfigPaths:[...new Set(i.map(e=>resolve(e)))].sort((e,t)=>e.localeCompare(t))}}function affectsExtensionBuild(e,t){return isPathInsideOrEqual(e,t.config.sourceRoot)||t.buildConfigPaths.includes(e)}function sameBuildConfig(e,t){return e.sourceRoot===t.sourceRoot&&e.distRoot===t.distRoot&&e.outDir===t.outDir&&e.packageName===t.packageName&&e.shortName===t.shortName&&e.runtimeDependencies.length===t.runtimeDependencies.length&&e.runtimeDependencies.every((e,n)=>e===t.runtimeDependencies[n])}function sameBuildInputs(e,t){return sameBuildConfig(e.config,t.config)&&e.buildConfigPaths.length===t.buildConfigPaths.length&&e.buildConfigPaths.every((e,n)=>e===t.buildConfigPaths[n])}function isPathInsideOrEqual(e,t){let n=resolve(e),r=resolve(t);return n===r||n.startsWith(`${r}${sep}`)}async function toCanonicalPath(e){let t=resolve(e),n=[];for(;;)try{return join(await realpath(t),...n.reverse())}catch{let r=dirname(t);if(r===t)return resolve(e);n.push(basename(t)),t=r}}export{prepareDevelopmentWorkspaceExtensions};
@@ -1,7 +0,0 @@
1
- import type { SessionStateMap } from "#harness/types.js";
2
- /** An entry without a join target starts its own cohort. */
3
- export declare function getTaskCohortId(task: {
4
- readonly taskId: string;
5
- readonly cohortId?: string;
6
- }): string;
7
- export declare function getSessionTaskCohorts(state: SessionStateMap | undefined): ReadonlyMap<string, string>;
@@ -1 +0,0 @@
1
- import{getBackgroundWorkflowToolRuns}from"#harness/workflow-tool-runs.js";function getTaskCohortId(e){return e.cohortId??e.taskId}function getSessionTaskCohorts(e){return new Map(getBackgroundWorkflowToolRuns(e).map(({task:e})=>[e.taskId,getTaskCohortId(e)]))}export{getSessionTaskCohorts,getTaskCohortId};