@vietor/easy-agent 0.6.2 → 0.6.3

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/README.md CHANGED
@@ -39,10 +39,11 @@ Create `~/.easy-agent.json` in your home directory:
39
39
 
40
40
  #### `wireApi` (optional)
41
41
 
42
- Selects the wire protocol the client speaks. Valid values: `"completions"` | `"anthropic"`. Defaults to `"completions"`.
42
+ Selects the wire protocol the client speaks. Valid values: `"completions"` | `"anthropic"` | `"responses"`. Defaults to `"completions"`.
43
43
 
44
44
  - `"completions"` - OpenAI Chat Completions compatible endpoint (the default). `reasoningEffort` is sent as `reasoning_effort`.
45
45
  - `"anthropic"` - Anthropic Messages API via the official SDK. Point `baseUrl` at an Anthropic-compatible endpoint (e.g. `https://api.anthropic.com`) and `model` at a Claude model. `reasoningEffort` enables extended thinking (`"high"` = 16k budget, `"max"` = 32k).
46
+ - `"responses"` - OpenAI Responses API via the official SDK. `reasoningEffort` is sent as `reasoning.effort`, with reasoning summaries streamed to the UI.
46
47
 
47
48
  ```json
48
49
  {
package/dist/config.js CHANGED
@@ -8,7 +8,7 @@ const LLMConfigSchema = z.object({
8
8
  apiKey: z.string(),
9
9
  model: z.string(),
10
10
  reasoningEffort: z.enum(["high", "max"]).default("high"),
11
- wireApi: z.enum(["completions", "anthropic"]).default("completions"),
11
+ wireApi: z.enum(["completions", "anthropic", "responses"]).default("completions"),
12
12
  maxInputTokens: z.number().int().positive().default(1_000_000),
13
13
  maxOutputTokens: z.number().int().positive().default(128_000),
14
14
  });
@@ -3,14 +3,14 @@ import { memo, useEffect, useState } from "react";
3
3
  import { Box, Text } from "ink";
4
4
  import { Markdown } from "./components/markdown.js";
5
5
  export const TimelineView = memo(function TimelineView({ entry }) {
6
- switch (entry.kind) {
6
+ switch (entry.type) {
7
7
  case "user":
8
8
  return (_jsx(Box, { marginTop: 1, children: _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "> " }), entry.text] }) }));
9
9
  case "skill":
10
10
  return (_jsx(Box, { marginTop: 1, children: _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\u25C8 " }), _jsx(Text, { dimColor: true, children: "skill " }), _jsx(Text, { color: "magenta", bold: true, children: entry.name })] }) }));
11
11
  case "assistant":
12
12
  return (_jsx(Box, { marginTop: 1, children: _jsx(Markdown, { children: entry.text }) }));
13
- case "tool":
13
+ case "tool_start":
14
14
  return _jsx(ToolEntry, { entry: entry });
15
15
  case "retry":
16
16
  return (_jsx(Box, { children: _jsxs(Text, { children: [_jsx(Text, { color: "yellow", children: "\u21BB " }), _jsxs(Text, { dimColor: true, children: ["retry ", entry.attempt, "/", entry.max, " \u00B7 ", entry.reason] })] }) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vietor/easy-agent",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "react": "^19.2.8",
24
24
  "string-width": "^8.2.2",
25
25
  "zod": "^4.4.3",
26
- "@vietor/easy-agent-core": "0.6.2"
26
+ "@vietor/easy-agent-core": "0.6.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.20.1",