@epoch-agent/cli 0.2.0 → 0.3.2

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/tui-entry.js CHANGED
@@ -1373,7 +1373,7 @@ function toCandidateView(row, now) {
1373
1373
  })
1374
1374
  };
1375
1375
  }
1376
- function buildHostActions(runtime, supportsImages, workDir) {
1376
+ function buildHostActions(runtime, workDir) {
1377
1377
  const { permission, diagnostics, model } = runtime;
1378
1378
  const statusLine = createStatusLine(runtime.config, workDir);
1379
1379
  const goals = buildGoalActions(runtime.goals);
@@ -1382,7 +1382,14 @@ function buildHostActions(runtime, supportsImages, workDir) {
1382
1382
  listTools: () => runtime.tools,
1383
1383
  openArtifact: (path) => openArtifact(path),
1384
1384
  readClipboardImage: () => readClipboardImage(),
1385
- supportsImages: () => supportsImages,
1385
+ supportsImages: () => {
1386
+ try {
1387
+ const id = model?.get().model ?? runtime.config.model;
1388
+ return getCapability(id, runtime.config.homeDir).supportsImages;
1389
+ } catch {
1390
+ return false;
1391
+ }
1392
+ },
1386
1393
  expandCommand: (name, args) => runtime.commands.expand(name, args),
1387
1394
  listWorkspaceFiles: () => Promise.resolve(listWorkspaceFiles(workDir).files),
1388
1395
  listBackgroundTasks: () => listBackgroundTasks(runtime.session?.sessionId ?? runtime.sessionId),
@@ -1486,7 +1493,7 @@ function buildHostActions(runtime, supportsImages, workDir) {
1486
1493
  ...permission ? {
1487
1494
  getPermissionLevel: () => permission.getLevel(),
1488
1495
  setPermissionLevel: (level) => {
1489
- const result = runtime.permissions.setLevel(level);
1496
+ const result = runtime.permissions.setLevel(level, { remember: true });
1490
1497
  if (!result.ok) {
1491
1498
  const managed = runtime.permissions.managed();
1492
1499
  return {
@@ -1560,11 +1567,8 @@ ${runtime.diagnostics.join("\n")}
1560
1567
  }
1561
1568
  const model = config.model || "unknown";
1562
1569
  let contextLimit = 0;
1563
- let supportsImages = false;
1564
1570
  try {
1565
- const capability = getCapability2(model, config.homeDir);
1566
- contextLimit = capability.contextLength;
1567
- supportsImages = capability.supportsImages;
1571
+ contextLimit = getCapability2(model, config.homeDir).contextLength;
1568
1572
  } catch {
1569
1573
  contextLimit = 0;
1570
1574
  }
@@ -1573,7 +1577,7 @@ ${runtime.diagnostics.join("\n")}
1573
1577
  defaults: DEFAULT_KEYBINDINGS
1574
1578
  });
1575
1579
  const host = {
1576
- ...buildHostActions(runtime, supportsImages, process.cwd()),
1580
+ ...buildHostActions(runtime, process.cwd()),
1577
1581
  keybindings: () => describeKeybindings(keys.report)
1578
1582
  };
1579
1583
  const goalNotice = host.goals?.blockedNotice() ?? null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "description": "epoch-agent CLI 入口",
6
6
  "repository": {
@@ -22,12 +22,12 @@
22
22
  "commander": "^15.0.0",
23
23
  "ink": "^7.1.1",
24
24
  "react": "^19.2.8",
25
- "@epoch-agent/core": "0.2.0",
26
- "@epoch-agent/infra": "0.2.0",
27
- "@epoch-agent/protocol": "0.2.0",
28
- "@epoch-agent/runtime": "0.2.0",
29
- "@epoch-agent/tui": "^0.2.0",
30
- "@epoch-agent/server": "0.2.0"
25
+ "@epoch-agent/runtime": "0.3.2",
26
+ "@epoch-agent/infra": "0.3.2",
27
+ "@epoch-agent/core": "0.3.2",
28
+ "@epoch-agent/protocol": "0.3.2",
29
+ "@epoch-agent/server": "0.3.2",
30
+ "@epoch-agent/tui": "^0.3.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.20.1",