@chipschat/opencode 1.0.9 → 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.
package/README.md CHANGED
@@ -213,7 +213,9 @@ the key it kept. The scratch Chips, the link and the run come from Chips's `tool
213
213
  ## Release
214
214
 
215
215
  `npm run release` builds `dist/main.js`, one file with the SDK and everything else bundled in, and
216
- `dist/THIRD-PARTY-NOTICES.md` beside it; runs the tests; and packs `chipschat-opencode-<version>.tgz`. `npm publish`
217
- publishes it. A version's major is the Chips protocol it speaks, and Chips's card names that major
218
- (Chips ADR 0218): a fix is a minor or a patch, and reaches every card of its major the day it is
219
- published.
216
+ `dist/THIRD-PARTY-NOTICES.md` beside it; runs the tests; and packs `chipschat-opencode-<version>.tgz`. To publish,
217
+ change `version` in package.json (`npm version <x> --no-git-tag-version`), commit, and push to main:
218
+ `.github/workflows/publish.yml` runs the tests and publishes that version from GitHub with npm's
219
+ trusted publishing, and skips a version npm already has. A version's major is the Chips protocol it
220
+ speaks, and Chips's card names that major (Chips ADR 0218): a fix is a minor or a patch, and reaches
221
+ every card of its major the day it is published.
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- `dist/main.js` in @chipschat/opencode 1.0.9 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,8 +1,12 @@
1
1
  {
2
2
  "name": "@chipschat/opencode",
3
- "version": "1.0.9",
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
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/arjungupta99/chips-opencode.git"
9
+ },
6
10
  "type": "module",
7
11
  "engines": {
8
12
  "node": ">=22.19.0"