@epoch-agent/cli 0.8.1 → 0.9.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 (2) hide show
  1. package/dist/index.js +19 -6
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -499,6 +499,11 @@ var SECTION_FIELDS = {
499
499
  compression: {
500
500
  enabled: (v) => v === "true" || v === "false",
501
501
  threshold: (v) => Number.isFinite(Number(v)) && Number(v) > 0 && Number(v) <= 1
502
+ },
503
+ memory: {
504
+ memoryCharLimit: isPositiveInt,
505
+ userCharLimit: isPositiveInt,
506
+ indexCharLimit: isPositiveInt
502
507
  }
503
508
  };
504
509
  function knownKeys() {
@@ -2511,16 +2516,14 @@ ${t17("approval.headless_denied_hint", { tool: req.toolName })}`
2511
2516
  }
2512
2517
  console.log("\n" + formatApprovalRequest(req).join("\n"));
2513
2518
  if (req.plan) return await askPlan(req.plan);
2519
+ if (req.rememberable === false) {
2520
+ console.log(t17("approval.not_rememberable"));
2521
+ }
2514
2522
  const { select: select2 } = await import("@inquirer/prompts");
2515
2523
  try {
2516
2524
  return await select2({
2517
2525
  message: t17("approval.ask"),
2518
- choices: [
2519
- { name: t17("tui.approval.allow_once"), value: "allow-once" },
2520
- { name: t17("tui.approval.allow_session"), value: "allow-session" },
2521
- { name: t17("approval.allow_always_cli"), value: "allow-always" },
2522
- { name: t17("tui.approval.deny"), value: "deny" }
2523
- ],
2526
+ choices: approvalChoices(req),
2524
2527
  default: "allow-once"
2525
2528
  });
2526
2529
  } catch {
@@ -2528,6 +2531,16 @@ ${t17("approval.headless_denied_hint", { tool: req.toolName })}`
2528
2531
  }
2529
2532
  };
2530
2533
  }
2534
+ function approvalChoices(req) {
2535
+ return [
2536
+ { name: t17("tui.approval.allow_once"), value: "allow-once" },
2537
+ ...req.rememberable === false ? [] : [
2538
+ { name: t17("tui.approval.allow_session"), value: "allow-session" },
2539
+ { name: t17("approval.allow_always_cli"), value: "allow-always" }
2540
+ ],
2541
+ { name: t17("tui.approval.deny"), value: "deny" }
2542
+ ];
2543
+ }
2531
2544
  async function askPlan(proposal) {
2532
2545
  const { input: input2, select: select2 } = await import("@inquirer/prompts");
2533
2546
  const choices3 = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/cli",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
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.8.1",
26
- "@epoch-agent/runtime": "0.8.1",
27
- "@epoch-agent/infra": "0.8.1",
28
- "@epoch-agent/protocol": "0.8.1",
29
- "@epoch-agent/tui": "^0.8.1",
30
- "@epoch-agent/server": "0.8.1"
25
+ "@epoch-agent/core": "0.9.0",
26
+ "@epoch-agent/infra": "0.9.0",
27
+ "@epoch-agent/server": "0.9.0",
28
+ "@epoch-agent/tui": "^0.9.0",
29
+ "@epoch-agent/protocol": "0.9.0",
30
+ "@epoch-agent/runtime": "0.9.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.20.1",