eve 0.64.0 → 0.65.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.
Files changed (211) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/src/channel/resolve-text.d.ts +11 -7
  3. package/dist/src/channel/resolve-text.js +1 -1
  4. package/dist/src/channel/types.d.ts +4 -5
  5. package/dist/src/chunks/{use-eve-agent-BdKlQF32.js → use-eve-agent-BIouJCii.js} +2 -10
  6. package/dist/src/chunks/{use-eve-agent-IIuxkn6y.js → use-eve-agent-BRvEh9sO.js} +2 -10
  7. package/dist/src/cli/commands/registry-pnpm-build-policy-flow.d.ts +1 -1
  8. package/dist/src/cli/commands/registry-pnpm-build-policy-flow.js +1 -1
  9. package/dist/src/cli/dev/command-options.d.ts +1 -0
  10. package/dist/src/cli/dev/command.js +2 -2
  11. package/dist/src/cli/dev/local-server-process.js +1 -1
  12. package/dist/src/cli/dev/tui/blocks.d.ts +1 -1
  13. package/dist/src/cli/dev/tui/blocks.js +1 -1
  14. package/dist/src/cli/dev/tui/question-panel.d.ts +3 -2
  15. package/dist/src/cli/dev/tui/rail.d.ts +1 -1
  16. package/dist/src/cli/dev/tui/runner.d.ts +0 -1
  17. package/dist/src/cli/dev/tui/runner.js +2 -2
  18. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +0 -1
  19. package/dist/src/cli/dev/tui/terminal-renderer.js +11 -12
  20. package/dist/src/cli/dev/tui/theme.d.ts +1 -1
  21. package/dist/src/cli/dev/tui/tool-presentation.d.ts +4 -4
  22. package/dist/src/cli/dev/tui/tool-presentation.js +1 -1
  23. package/dist/src/client/agent-info-schema.d.ts +0 -2
  24. package/dist/src/client/agent-info-schema.js +1 -1
  25. package/dist/src/compiled/.vendor-stamp.json +1 -2
  26. package/dist/src/compiler/artifacts.d.ts +2 -0
  27. package/dist/src/compiler/artifacts.js +1 -1
  28. package/dist/src/compiler/bundled-extension.d.ts +17 -0
  29. package/dist/src/compiler/bundled-extension.js +1 -0
  30. package/dist/src/compiler/compile-agent.d.ts +4 -0
  31. package/dist/src/compiler/compile-agent.js +1 -1
  32. package/dist/src/compiler/compile-from-memory.js +1 -1
  33. package/dist/src/compiler/development-extensions.d.ts +23 -0
  34. package/dist/src/compiler/development-extensions.js +1 -0
  35. package/dist/src/compiler/extension-compatibility.d.ts +2 -2
  36. package/dist/src/compiler/extension-compatibility.js +1 -1
  37. package/dist/src/compiler/load-binding-namespace.js +1 -1
  38. package/dist/src/compiler/manifest.js +1 -1
  39. package/dist/src/compiler/normalize-manifest-helpers.js +1 -1
  40. package/dist/src/compiler/normalize-manifest-types.d.ts +23 -0
  41. package/dist/src/compiler/normalize-manifest-types.js +1 -0
  42. package/dist/src/compiler/normalize-manifest.d.ts +2 -7
  43. package/dist/src/compiler/normalize-manifest.js +1 -1
  44. package/dist/src/compiler/source-graph-paths.d.ts +2 -0
  45. package/dist/src/compiler/source-graph-paths.js +1 -0
  46. package/dist/src/compiler/source-graph.d.ts +4 -1
  47. package/dist/src/compiler/source-graph.js +1 -1
  48. package/dist/src/context/dynamic-skill-lifecycle.js +1 -1
  49. package/dist/src/discover/bundled-extension.d.ts +11 -0
  50. package/dist/src/discover/bundled-extension.js +1 -0
  51. package/dist/src/discover/discover-agent.js +1 -1
  52. package/dist/src/discover/manifest.d.ts +5 -0
  53. package/dist/src/evals/assertions/collector.js +1 -1
  54. package/dist/src/evals/cli/eval.js +2 -2
  55. package/dist/src/evals/runner/artifacts.js +1 -1
  56. package/dist/src/evals/types.d.ts +2 -0
  57. package/dist/src/execution/coordination-dispatch-step.js +1 -1
  58. package/dist/src/execution/dynamic-workflow/tool.js +1 -1
  59. package/dist/src/execution/node-step.d.ts +2 -4
  60. package/dist/src/execution/node-step.js +1 -1
  61. package/dist/src/execution/proxied-deliver-step.js +1 -1
  62. package/dist/src/execution/sandbox/bindings/just-bash-runtime.js +1 -1
  63. package/dist/src/execution/sandbox/bindings/microsandbox-runtime.js +1 -1
  64. package/dist/src/execution/sandbox/development-lazy-prewarm.d.ts +7 -0
  65. package/dist/src/execution/sandbox/development-lazy-prewarm.js +1 -0
  66. package/dist/src/execution/sandbox/ensure.js +1 -1
  67. package/dist/src/execution/sandbox/glob-tool.js +1 -1
  68. package/dist/src/execution/sandbox/grep-tool.js +1 -1
  69. package/dist/src/execution/sandbox/prewarm.js +1 -1
  70. package/dist/src/execution/sandbox/read-file.js +1 -1
  71. package/dist/src/execution/session/turn-step.js +1 -1
  72. package/dist/src/execution/session-workflow-tool-run.js +1 -1
  73. package/dist/src/execution/tasks/parent/tool-execution.js +1 -1
  74. package/dist/src/execution/tools/agent-router-workflow.js +1 -1
  75. package/dist/src/execution/tools/ask-question-workflow.d.ts +11 -0
  76. package/dist/src/execution/tools/ask-question-workflow.js +1 -0
  77. package/dist/src/execution/tools/ask-question.d.ts +20 -0
  78. package/dist/src/execution/tools/ask-question.js +2 -0
  79. package/dist/src/execution/tools/file-state.d.ts +1 -7
  80. package/dist/src/execution/tools/file-state.js +1 -1
  81. package/dist/src/execution/tools/sleep-workflow.js +1 -1
  82. package/dist/src/execution/tools/workflow/answer.d.ts +2 -0
  83. package/dist/src/execution/tools/workflow/answer.js +1 -1
  84. package/dist/src/execution/tools/workflow/ask.d.ts +3 -2
  85. package/dist/src/execution/tools/workflow/ask.js +1 -1
  86. package/dist/src/execution/tools/workflow/body.d.ts +5 -0
  87. package/dist/src/execution/tools/workflow/body.js +1 -1
  88. package/dist/src/execution/tools/workflow/cancel.d.ts +0 -4
  89. package/dist/src/execution/tools/workflow/cancel.js +1 -1
  90. package/dist/src/execution/tools/workflow/start.d.ts +1 -0
  91. package/dist/src/execution/tools/workflow/start.js +1 -1
  92. package/dist/src/framework/sources/registry.js +1 -1
  93. package/dist/src/harness/compaction-prompt.d.ts +0 -6
  94. package/dist/src/harness/compaction-prompt.js +2 -2
  95. package/dist/src/harness/compaction.js +1 -1
  96. package/dist/src/harness/hitl/approval-input-requests.d.ts +0 -2
  97. package/dist/src/harness/hitl/approval-input-requests.js +1 -1
  98. package/dist/src/harness/input-extraction.d.ts +4 -15
  99. package/dist/src/harness/input-extraction.js +1 -1
  100. package/dist/src/harness/input-request-class.d.ts +0 -20
  101. package/dist/src/harness/input-request-class.js +1 -1
  102. package/dist/src/harness/input-requests.d.ts +1 -1
  103. package/dist/src/harness/input-requests.js +1 -1
  104. package/dist/src/harness/pending-input-batches.d.ts +1 -1
  105. package/dist/src/harness/proxy-input-requests.d.ts +9 -1
  106. package/dist/src/harness/proxy-input-requests.js +1 -1
  107. package/dist/src/harness/stale-input-responses.d.ts +1 -2
  108. package/dist/src/harness/stale-input-responses.js +1 -1
  109. package/dist/src/harness/tool-loop.js +2 -2
  110. package/dist/src/harness/tools.d.ts +0 -9
  111. package/dist/src/harness/tools.js +1 -1
  112. package/dist/src/harness/types.d.ts +2 -9
  113. package/dist/src/internal/application/compiled-artifacts.js +1 -1
  114. package/dist/src/internal/application/optional-package-install.d.ts +3 -0
  115. package/dist/src/internal/application/optional-package-install.js +2 -2
  116. package/dist/src/internal/application/output-publication-lock.d.ts +6 -0
  117. package/dist/src/internal/application/output-publication-lock.js +1 -1
  118. package/dist/src/internal/application/output-publication.js +1 -1
  119. package/dist/src/internal/application/package.js +1 -1
  120. package/dist/src/internal/authored-definition/schema-backed.js +1 -1
  121. package/dist/src/internal/authored-module-loader.d.ts +1 -0
  122. package/dist/src/internal/authored-module-loader.js +1 -1
  123. package/dist/src/internal/authored-runtime-modules.d.ts +1 -0
  124. package/dist/src/internal/development-programmatic-source-loader.d.ts +6 -0
  125. package/dist/src/internal/development-programmatic-source-loader.js +1 -0
  126. package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -1
  127. package/dist/src/internal/nitro/development-generation.js +1 -1
  128. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
  129. package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.d.ts +2 -0
  130. package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.js +1 -1
  131. package/dist/src/internal/nitro/host/dev-workspace-extensions.js +1 -1
  132. package/dist/src/internal/nitro/host/development-runtime-prune-plugin.d.ts +9 -0
  133. package/dist/src/internal/nitro/host/development-runtime-prune-plugin.js +2 -0
  134. package/dist/src/internal/nitro/host/prepare-application-host.d.ts +2 -0
  135. package/dist/src/internal/nitro/host/prepare-application-host.js +1 -1
  136. package/dist/src/internal/nitro/host/start-development-server.js +2 -2
  137. package/dist/src/internal/nitro/host/types.d.ts +3 -0
  138. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +1 -1
  139. package/dist/src/internal/workflow-bundle/workflow-builders.d.ts +0 -2
  140. package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -1
  141. package/dist/src/public/next/vercel-output-config.js +1 -1
  142. package/dist/src/public/tools/ask-question.d.ts +1 -1
  143. package/dist/src/public/tools/ask-question.js +1 -1
  144. package/dist/src/runtime/agent/mock-model-fixtures.js +2 -2
  145. package/dist/src/runtime/cache-key.js +1 -1
  146. package/dist/src/runtime/sandbox/prepared-artifacts.js +1 -1
  147. package/dist/src/self-modification/extension/subagents/agent/instructions.js +6 -2
  148. package/dist/src/{cli/commands/registry-pnpm-build-policy.d.ts → setup/primitives/pm/pnpm-build-policy.d.ts} +4 -0
  149. package/dist/src/setup/primitives/pm/pnpm-build-policy.js +8 -0
  150. package/dist/src/setup/scaffold/create/project.js +1 -1
  151. package/dist/src/shared/input.d.ts +1 -6
  152. package/dist/src/shared/sandbox-provider.d.ts +2 -0
  153. package/dist/src/subagents/hitl-proxy.d.ts +11 -1
  154. package/dist/src/subagents/hitl-proxy.js +1 -1
  155. package/dist/src/svelte/index.js +1 -1
  156. package/dist/src/svelte/use-eve-agent.js +1 -1
  157. package/dist/src/tools/behavior.d.ts +2 -5
  158. package/dist/src/tools/definition.d.ts +23 -5
  159. package/dist/src/tools/provided/ask-question.d.ts +18 -0
  160. package/dist/src/tools/provided/ask-question.js +1 -0
  161. package/dist/src/tools/provided/sleep.d.ts +2 -2
  162. package/dist/src/vue/index.js +1 -1
  163. package/dist/src/vue/use-eve-agent.js +1 -1
  164. package/docs/agent-config.md +11 -11
  165. package/docs/channels/slack.mdx +1 -1
  166. package/docs/concepts/built-in-tools.md +16 -66
  167. package/docs/concepts/default-harness.md +1 -3
  168. package/docs/concepts/execution-model-and-durability.mdx +1 -1
  169. package/docs/concepts/sessions-runs-and-streaming.md +2 -2
  170. package/docs/evals/assertions.mdx +2 -2
  171. package/docs/evals/judge.mdx +3 -3
  172. package/docs/getting-started.mdx +1 -1
  173. package/docs/guides/deployment/vercel.mdx +0 -6
  174. package/docs/guides/dev-tui.md +1 -1
  175. package/docs/guides/evaluate.md +12 -9
  176. package/docs/guides/frontend/overview.mdx +1 -1
  177. package/docs/guides/instrumentation/instrumentation.mdx +1 -1
  178. package/docs/guides/instrumentation/migration.md +1 -6
  179. package/docs/guides/instrumentation/otel.mdx +15 -47
  180. package/docs/reference/cli.md +10 -7
  181. package/docs/reference/typescript-api.md +42 -41
  182. package/docs/sandbox/index.mdx +3 -1
  183. package/docs/sandbox/just-bash.mdx +6 -0
  184. package/docs/skills.mdx +2 -0
  185. package/docs/subagents/index.mdx +7 -5
  186. package/docs/tools/human-in-the-loop.md +22 -11
  187. package/docs/tools/workflows.mdx +44 -19
  188. package/docs/tutorial/guard-the-spend.mdx +1 -1
  189. package/package.json +1 -9
  190. package/dist/src/cli/commands/registry-pnpm-build-policy.js +0 -6
  191. package/dist/src/cli/dev/tui/todo-panel.d.ts +0 -44
  192. package/dist/src/cli/dev/tui/todo-panel.js +0 -1
  193. package/dist/src/compiled/@workflow/builders/LICENSE.md +0 -201
  194. package/dist/src/compiled/@workflow/builders/index.d.ts +0 -62
  195. package/dist/src/compiled/@workflow/builders/index.js +0 -1
  196. package/dist/src/execution/compaction.d.ts +0 -14
  197. package/dist/src/execution/compaction.js +0 -1
  198. package/dist/src/execution/sandbox/development-prewarm.d.ts +0 -20
  199. package/dist/src/execution/sandbox/development-prewarm.js +0 -1
  200. package/dist/src/execution/tools/todo.d.ts +0 -91
  201. package/dist/src/execution/tools/todo.js +0 -2
  202. package/dist/src/harness/hitl/question-input-requests.d.ts +0 -15
  203. package/dist/src/harness/hitl/question-input-requests.js +0 -1
  204. package/dist/src/harness/request-input-tool.d.ts +0 -4
  205. package/dist/src/harness/request-input-tool.js +0 -1
  206. package/dist/src/public/tools/todo.d.ts +0 -3
  207. package/dist/src/public/tools/todo.js +0 -1
  208. package/dist/src/tools/framework/ask-question.d.ts +0 -38
  209. package/dist/src/tools/framework/ask-question.js +0 -1
  210. package/dist/src/tools/provided/todo.d.ts +0 -8
  211. package/dist/src/tools/provided/todo.js +0 -2
@@ -1,91 +0,0 @@
1
- import { z } from "#compiled/zod/index.js";
2
- import { ContextKey } from "#context/key.js";
3
- import { type UserModelMessage } from "#harness/messages.js";
4
- /**
5
- * Single item in the todo list.
6
- */
7
- export type TodoItem = z.infer<typeof TODO_ITEM_SCHEMA>;
8
- /**
9
- * Durable state for the framework todo tool.
10
- */
11
- export interface TodoState {
12
- readonly items: readonly TodoItem[];
13
- }
14
- export declare const TodoStateKey: ContextKey<TodoState>;
15
- /**
16
- * Typed input accepted by {@link executeTodoTool}.
17
- *
18
- * When `todos` is provided, the list is replaced (full replacement write).
19
- * When `todos` is omitted, the current list is returned without modification.
20
- */
21
- export type TodoToolInput = z.infer<typeof TODO_INPUT_SCHEMA>;
22
- /**
23
- * Builds the message that re-injects the current todo list after the harness
24
- * compacts message history, so the agent keeps its task list across
25
- * compaction. Returns `undefined` when there is no list to preserve.
26
- */
27
- export declare function getTodoCompactionMessage(): UserModelMessage | undefined;
28
- /**
29
- * Executes the framework todo tool.
30
- *
31
- * - Read: omit `todos` → returns the current list.
32
- * - Write: provide `todos` → replaces the entire list, returns the new list.
33
- *
34
- * Both paths return the same formatted output so the model always sees
35
- * the full current state.
36
- */
37
- export declare function executeTodoTool(input: TodoToolInput): unknown;
38
- declare const TODO_ITEM_SCHEMA: z.ZodObject<{
39
- content: z.ZodString;
40
- priority: z.ZodEnum<{
41
- high: "high";
42
- low: "low";
43
- medium: "medium";
44
- }>;
45
- status: z.ZodEnum<{
46
- cancelled: "cancelled";
47
- completed: "completed";
48
- in_progress: "in_progress";
49
- pending: "pending";
50
- }>;
51
- }, z.core.$strict>;
52
- export declare const TODO_INPUT_SCHEMA: z.ZodObject<{
53
- todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
- content: z.ZodString;
55
- priority: z.ZodEnum<{
56
- high: "high";
57
- low: "low";
58
- medium: "medium";
59
- }>;
60
- status: z.ZodEnum<{
61
- cancelled: "cancelled";
62
- completed: "completed";
63
- in_progress: "in_progress";
64
- pending: "pending";
65
- }>;
66
- }, z.core.$strict>>>;
67
- }, z.core.$strict>;
68
- export declare const TODO_OUTPUT_SCHEMA: z.ZodObject<{
69
- counts: z.ZodObject<{
70
- cancelled: z.ZodNumber;
71
- completed: z.ZodNumber;
72
- in_progress: z.ZodNumber;
73
- pending: z.ZodNumber;
74
- total: z.ZodNumber;
75
- }, z.core.$strict>;
76
- todos: z.ZodArray<z.ZodObject<{
77
- content: z.ZodString;
78
- priority: z.ZodEnum<{
79
- high: "high";
80
- low: "low";
81
- medium: "medium";
82
- }>;
83
- status: z.ZodEnum<{
84
- cancelled: "cancelled";
85
- completed: "completed";
86
- in_progress: "in_progress";
87
- pending: "pending";
88
- }>;
89
- }, z.core.$strict>>;
90
- }, z.core.$strict>;
91
- export {};
@@ -1,2 +0,0 @@
1
- import{z}from"#compiled/zod/index.js";import{loadContext}from"#context/container.js";import{ContextKey}from"#context/key.js";import{createFrameworkUserMessage}from"#harness/messages.js";import{TODO_COMPACTION_PRESERVATION_LABEL}from"#harness/compaction-prompt.js";const TodoStateKey=new ContextKey(`eve.todo`);function formatTodoSummary(e){if(e.items.length===0)return;let t=e.items.map(e=>`- [${e.status===`completed`?`x`:e.status===`cancelled`?`-`:` `}] [${e.priority}] ${e.content}`);return`${TODO_COMPACTION_PRESERVATION_LABEL}\n${t.join(`
2
- `)}`}function getTodoCompactionMessage(){let e=loadContext().get(TodoStateKey);if(e===void 0||!e.items.some(e=>e.status===`pending`||e.status===`in_progress`))return;let t=formatTodoSummary(e);if(t!==void 0)return createFrameworkUserMessage(`context.state`,t)}function formatTodoResult(e){let{items:t}=e,n={cancelled:0,completed:0,in_progress:0,pending:0,total:t.length};for(let e of t)n[e.status]++;return{counts:n,todos:t}}function executeTodoTool(e){let t=loadContext(),{todos:n}=e??{};if(n!==void 0){let e={items:[...n]};return t.set(TodoStateKey,e),formatTodoResult(e)}return formatTodoResult(t.ensure(TodoStateKey,()=>({items:[]})))}const TODO_ITEM_SCHEMA=z.strictObject({content:z.string().describe(`Brief description of the task.`),priority:z.enum([`high`,`medium`,`low`]).describe(`Priority level of the task.`),status:z.enum([`pending`,`in_progress`,`completed`,`cancelled`]).describe(`Current status of the task.`)}),TODO_INPUT_SCHEMA=z.strictObject({todos:z.array(TODO_ITEM_SCHEMA).describe(`The updated todo list. Omit to read the current list without modifying it.`).optional()}),countSchema=z.number().int().min(0),TODO_OUTPUT_SCHEMA=z.strictObject({counts:z.strictObject({cancelled:countSchema,completed:countSchema,in_progress:countSchema,pending:countSchema,total:countSchema}),todos:z.array(TODO_ITEM_SCHEMA)});export{TODO_INPUT_SCHEMA,TODO_OUTPUT_SCHEMA,TodoStateKey,executeTodoTool,getTodoCompactionMessage};
@@ -1,15 +0,0 @@
1
- import type { ModelMessage } from "ai";
2
- import type { InputRequest, InputResponse } from "#shared/input.js";
3
- import type { PendingInputBatch } from "#harness/pending-input-batches.js";
4
- import type { InputDomainResolverInput, ResolvePendingInputResult, ToolResponsePart } from "#harness/hitl/pending-input-resolution.js";
5
- export type QuestionInputRequest = InputRequest & {
6
- readonly kind: "question";
7
- };
8
- export declare function resolveQuestionOnlyInputBatches(input: InputDomainResolverInput): ResolvePendingInputResult;
9
- export declare function findAnsweredQuestionBatches(batches: readonly PendingInputBatch[], responses: readonly InputResponse[]): PendingInputBatch[];
10
- export declare function resolveQuestionBatches(input: {
11
- readonly batches: readonly PendingInputBatch[];
12
- readonly messages: ModelMessage[];
13
- readonly responses: readonly InputResponse[];
14
- }): ModelMessage[];
15
- export declare function buildQuestionToolResponsePart(request: QuestionInputRequest, response: InputResponse | undefined): ToolResponsePart;
@@ -1 +0,0 @@
1
- import{queueDeferredStepInput,removePendingInputBatches}from"#harness/pending-input-batches.js";import{buildResolvedInputBatch}from"#harness/input-request-resolution.js";import{appendResolvedBatchTranscript,compactStepInput,finishResolvedInput,responsesForBatches}from"#harness/hitl/pending-input-resolution.js";function resolveQuestionOnlyInputBatches(e){let t=findAnsweredQuestionBatches(e.batches,e.responses),n=e.batches.filter(e=>!t.includes(e)),r=responsesForBatches(e.responses,n);if(t.length===0){if(e.resolvedStepInput?.message===void 0)return{outcome:`unresolved`,messages:[...e.baseHistory],session:queueDeferredStepInput(e.session,compactStepInput(e.resolvedStepInput))};let t=e.batches.length===1?e.batches[0]:void 0;if(t===void 0){let t=r.length===0?e.session:queueDeferredStepInput(e.session,{inputResponses:r});return{consumedMessage:e.resolvedStepInput.messageConsumed,outcome:`continue`,messages:[...e.baseHistory],session:t}}let n=resolveQuestionBatches({batches:[t],messages:[...e.baseHistory],responses:[]});return{consumedMessage:e.resolvedStepInput.messageConsumed,outcome:`resolved`,messages:n,resolvedInputs:[buildResolvedInputBatch(t,[])].filter(e=>e!==void 0),session:removePendingInputBatches(e.session,[t])}}let i=resolveQuestionBatches({batches:t,messages:[...e.baseHistory],responses:e.responses});return finishResolvedInput({deferTurnInput:e.deferTurnInput,leftoverResponses:r,messages:i,resolvedInputs:t.flatMap(t=>{let n=buildResolvedInputBatch(t,e.responses);return n===void 0?[]:[n]}),resolvedStepInput:e.resolvedStepInput,session:removePendingInputBatches(e.session,t)})}function findAnsweredQuestionBatches(e,t){let n=new Set(t.map(e=>e.requestId));return e.filter(e=>e.requests.some(e=>n.has(e.requestId)))}function resolveQuestionBatches(e){let t=new Map(e.responses.map(e=>[e.requestId,e]));for(let n of e.batches){let r=n.requests.map(e=>buildQuestionToolResponsePart(e,t.get(e.requestId)));appendResolvedBatchTranscript(e.messages,n,r)}return e.messages}function buildQuestionToolResponsePart(e,t){return{output:{type:`json`,value:t===void 0?{status:`ignored`}:{optionId:t.optionId,text:t.text,status:`answered`}},toolCallId:e.action.callId,toolName:e.action.toolName,type:`tool-result`}}export{buildQuestionToolResponsePart,findAnsweredQuestionBatches,resolveQuestionBatches,resolveQuestionOnlyInputBatches};
@@ -1,4 +0,0 @@
1
- /**
2
- * Stable model-visible name for the framework question tool.
3
- */
4
- export declare const ASK_QUESTION_TOOL_NAME = "ask_question";
@@ -1 +0,0 @@
1
- const ASK_QUESTION_TOOL_NAME=`ask_question`;export{ASK_QUESTION_TOOL_NAME};
@@ -1,3 +0,0 @@
1
- import todoDefinition from "#tools/provided/todo.js";
2
- export { todo } from "#tools/provided/todo.js";
3
- export default todoDefinition;
@@ -1 +0,0 @@
1
- import todoDefinition,{todo}from"#tools/provided/todo.js";var todo_default=todoDefinition;export{todo_default as default,todo};
@@ -1,38 +0,0 @@
1
- import { z } from "#compiled/zod/index.js";
2
- export declare const ASK_QUESTION_INPUT_SCHEMA: z.ZodObject<{
3
- allowFreeform: z.ZodOptional<z.ZodBoolean>;
4
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
- description: z.ZodOptional<z.ZodString>;
6
- id: z.ZodString;
7
- label: z.ZodString;
8
- style: z.ZodOptional<z.ZodEnum<{
9
- danger: "danger";
10
- default: "default";
11
- primary: "primary";
12
- }>>;
13
- }, z.core.$strict>>>;
14
- prompt: z.ZodString;
15
- }, z.core.$strict>;
16
- export declare const ASK_QUESTION_OUTPUT_SCHEMA: z.ZodObject<{
17
- optionId: z.ZodOptional<z.ZodString>;
18
- status: z.ZodEnum<{
19
- answered: "answered";
20
- ignored: "ignored";
21
- }>;
22
- text: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strict>;
24
- export declare const askQuestion: import("#tools/native-definition.js").NativeToolDefinition<{
25
- allowFreeform?: boolean | undefined;
26
- options?: {
27
- description?: string | undefined;
28
- id: string;
29
- label: string;
30
- style?: "danger" | "default" | "primary" | undefined;
31
- }[] | undefined;
32
- prompt: string;
33
- }, {
34
- optionId?: string | undefined;
35
- status: "answered" | "ignored";
36
- text?: string | undefined;
37
- }>;
38
- export default askQuestion;
@@ -1 +0,0 @@
1
- import{z}from"#compiled/zod/index.js";import{inputRequestSchema}from"#shared/input.js";import{defineNativeTool}from"#tools/native-definition.js";const ASK_QUESTION_INPUT_SCHEMA=inputRequestSchema.omit({action:!0,display:!0,kind:!0,requestId:!0}),ASK_QUESTION_OUTPUT_SCHEMA=z.object({optionId:z.string().optional(),status:z.enum([`answered`,`ignored`]),text:z.string().optional()}).strict(),askQuestion=defineNativeTool({description:`Ask the user a question and wait for their response before continuing. Use this when you need clarification or a choice from the user.`,inputSchema:ASK_QUESTION_INPUT_SCHEMA,outputSchema:ASK_QUESTION_OUTPUT_SCHEMA},{availability:[`requires-request-input`],handling:{kind:`request-input`,request:`question`}});export{ASK_QUESTION_INPUT_SCHEMA,ASK_QUESTION_OUTPUT_SCHEMA,askQuestion,askQuestion as default};
@@ -1,8 +0,0 @@
1
- export declare const todo: import("#tools/definition.js").ToolDefinition<{
2
- todos?: {
3
- content: string;
4
- priority: "high" | "low" | "medium";
5
- status: "cancelled" | "completed" | "in_progress" | "pending";
6
- }[] | undefined;
7
- }, unknown>;
8
- export default todo;
@@ -1,2 +0,0 @@
1
- import{defineTool}from"#tools/definition.js";import{TODO_INPUT_SCHEMA,TODO_OUTPUT_SCHEMA,executeTodoTool}from"#execution/tools/todo.js";const todo=defineTool({description:[`Use this tool to create and manage a structured task list for the current session.`,`This helps you track progress, organize complex tasks, and demonstrate thoroughness.`,``,`When to use:`,`- Complex multistep tasks requiring 3 or more distinct steps`,`- When the user provides multiple tasks or a numbered list`,`- After receiving new instructions, to capture requirements`,`- After completing a task, to mark it complete and add follow-ups`,``,`When NOT to use:`,`- Single, straightforward tasks that need no tracking`,`- Purely conversational or informational requests`,``,`Usage:`,"- Call with `todos` to replace the entire list (full replacement write)","- Call without `todos` to read the current list",`- Both return the full current list with status counts`,`- Mark tasks in_progress when you start, completed when done`,`- Only have ONE task in_progress at a time`].join(`
2
- `),execute:async e=>executeTodoTool(e??{}),inputSchema:TODO_INPUT_SCHEMA,outputSchema:TODO_OUTPUT_SCHEMA});export{todo as default,todo};