@chipschat/opencode 1.0.10 → 1.0.11

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.
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- `dist/main.js` in @chipschat/opencode 1.0.10 carries these packages, bundled in. Each one's
3
+ `dist/main.js` in @chipschat/opencode 1.0.11 carries these packages, bundled in. Each one's
4
4
  licence follows.
5
5
 
6
6
  ## @chipschat/harness 0.0.0 (Apache-2.0)
package/dist/main.js CHANGED
@@ -27709,7 +27709,7 @@ ${command}
27709
27709
  const patch = files.map((file3) => text(file3["patch"]) ?? "").filter((each) => each !== "").join("\n");
27710
27710
  return {
27711
27711
  action: { kind: "file.edit", input: { files: resources } },
27712
- question: one === void 0 ? "Change these files?" : `Change ${baseName(one)}?`,
27712
+ question: one === void 0 ? "Change these files?" : `Change ${cut(baseName(one), QUESTION_MAX - 8)}?`,
27713
27713
  risk: [],
27714
27714
  ...patch === "" ? {} : { preview: { format: "diff", title: one ?? "Changes", body: patch.slice(0, 2e5) } },
27715
27715
  ...effect
@@ -27727,7 +27727,7 @@ ${command}
27727
27727
  const what = resources.filter((each) => each !== "*").join(", ");
27728
27728
  return {
27729
27729
  action: { kind: `opencode.${action2.toLowerCase().replace(/[^a-z0-9_]+/g, "_") || "act"}`, input: { resources } },
27730
- question: `${verb}${what === "" ? "" : ` ${what}`}?`.slice(0, 300),
27730
+ question: `${verb}${what === "" ? "" : ` ${cut(what, QUESTION_MAX - verb.length - 2)}`}?`,
27731
27731
  risk: action2 === "webfetch" || action2 === "websearch" ? ["external"] : [],
27732
27732
  ...effect
27733
27733
  };
@@ -27803,6 +27803,7 @@ function secondLook(who, reply, note) {
27803
27803
  const first = note?.split("\n").find((line) => line.trim() !== "")?.trim();
27804
27804
  return { text: text2, goal: first === void 0 ? "Looking again at its reply" : cut(`Looking again: ${first}`, 120) };
27805
27805
  }
27806
+ var QUESTION_MAX = 200;
27806
27807
  function cut(words4, most) {
27807
27808
  return words4.length <= most ? words4 : `${words4.slice(0, most - 1)}\u2026`;
27808
27809
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipschat/opencode",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "OpenCode as a Chips harness, on its V2 server (opencode serve): each OpenCode agent a Chips agent, each room an OpenCode session.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {