@chipschat/acp 1.0.2 → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- `dist/main.js` in @chipschat/acp 1.0.2 carries these packages, bundled in. Each one's
3
+ `dist/main.js` in @chipschat/acp 1.0.3 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
@@ -20391,7 +20391,7 @@ var serverFacts = external_exports.object({
20391
20391
  // node_modules/@chipschat/protocol/dist/src/room-files.js
20392
20392
  var ROOM_FILES_IN_CONTEXT = 20;
20393
20393
  var ROOM_FILES_CEILING = 200;
20394
- var ROOM_FILES_HEADING = "Files in this room:";
20394
+ var ROOM_FILES_HEADING = "Files in this space:";
20395
20395
  var roomFile = external_exports.object({
20396
20396
  name: external_exports.string().min(1).max(255).describe("The file's name, which its versions share."),
20397
20397
  version: external_exports.int().positive().describe("Which version this is: 1 for the first, counting each change of its bytes."),
@@ -20482,7 +20482,7 @@ var MONTHS = [
20482
20482
 
20483
20483
  // node_modules/@chipschat/protocol/dist/src/context.js
20484
20484
  var CONTEXT_CEILING = { lines: 200, chars: 32e3 };
20485
- var CONTEXT_HEADING = "Said in this room since you last spoke:";
20485
+ var CONTEXT_HEADING = "Said in this space since you last spoke:";
20486
20486
  var contextBudget = external_exports.object({
20487
20487
  lines: external_exports.int().nonnegative().optional().describe("The most lines to be handed, 20 when absent. Chips hands over 200 at most, and none when this is 0."),
20488
20488
  chars: external_exports.int().nonnegative().optional().describe("The most characters those lines may run to, as `Name: words` one per line, 4,000 when absent. Chips hands over 32,000 at most.")
@@ -20550,17 +20550,17 @@ function renderLine(line) {
20550
20550
  case "said":
20551
20551
  return `${withRole(name, line.from)}: ${wordsOf(line)}`;
20552
20552
  case "joined":
20553
- return `(${name} joined the room)`;
20553
+ return `(${name} joined the space)`;
20554
20554
  case "left":
20555
- return `(${name} left the room)`;
20555
+ return `(${name} left the space)`;
20556
20556
  case "renamed":
20557
20557
  if (line.title !== void 0)
20558
- return `(${name} renamed the room "${line.title}")`;
20558
+ return `(${name} renamed the space "${line.title}")`;
20559
20559
  return `(${line.previous ?? name} is now called ${line.name ?? name})`;
20560
20560
  case "archived":
20561
- return `(${name} archived the room)`;
20561
+ return `(${name} archived the space)`;
20562
20562
  default:
20563
- return `(${name} unarchived the room)`;
20563
+ return `(${name} unarchived the space)`;
20564
20564
  }
20565
20565
  }
20566
20566
  function renderContext(context) {
@@ -21178,7 +21178,7 @@ function namesInWords(names) {
21178
21178
  function renderProjectNote(facts, options) {
21179
21179
  const files = `${facts.files} file${facts.files === 1 ? "" : "s"}`;
21180
21180
  const lines2 = [
21181
- `The room's project is a git repository. Your copy is ${facts.folder} (${files}), ${facts.trouble === void 0 ? "brought up to date just now" : "not brought up to date"}.`
21181
+ `The space's project is a git repository. Your copy is ${facts.folder} (${files}), ${facts.trouble === void 0 ? "brought up to date just now" : "not brought up to date"}.`
21182
21182
  ];
21183
21183
  if (facts.changed.length > 0) {
21184
21184
  const by = facts.by.length > 0 ? `, by ${namesInWords(facts.by)}` : "";
@@ -21188,7 +21188,7 @@ function renderProjectNote(facts, options) {
21188
21188
  lines2.push(`It couldn't be: ${facts.trouble}`);
21189
21189
  if (facts.clashes.length > 0) {
21190
21190
  const whose = facts.clashedWith.length > 0 ? `${namesInWords(facts.clashedWith)}'s` : "another change";
21191
- lines2.push(`Your last change to ${namesInWords(facts.clashes)} clashed with ${whose}, which reached the room first. Both sides are in those files now: yours between "<<<<<<< yours" and "=======", theirs from there to the ">>>>>>>" line that names them. Settle each, keeping what both meant, and take the marks out. Nothing of yours is sent until they're gone.`);
21191
+ lines2.push(`Your last change to ${namesInWords(facts.clashes)} clashed with ${whose}, which reached the space first. Both sides are in those files now: yours between "<<<<<<< yours" and "=======", theirs from there to the ">>>>>>>" line that names them. Settle each, keeping what both meant, and take the marks out. Nothing of yours is sent until they're gone.`);
21192
21192
  }
21193
21193
  for (const key of facts.keys) {
21194
21194
  lines2.push(`${key.path} holds what looks like ${key.what}, so your last change wasn't sent: take it out and read it from outside the project.`);
@@ -22903,17 +22903,17 @@ function heldNote(pushed, name) {
22903
22903
  return void 0;
22904
22904
  case "clash": {
22905
22905
  const whose = pushed.with.length === 0 ? "another change" : `${namesInWords(pushed.with)}'s change`;
22906
- return `(Not in the room's project yet: ${namesInWords(pushed.files)} clashed with ${whose}. ${name} is asked to settle it next turn.)`;
22906
+ return `(Not in the space's project yet: ${namesInWords(pushed.files)} clashed with ${whose}. ${name} is asked to settle it next turn.)`;
22907
22907
  }
22908
22908
  case "keys": {
22909
22909
  const [first] = pushed.keys;
22910
22910
  const held = pushed.keys.length === 1 && first !== void 0 ? `${first.path} looks like it holds ${first.what.replace(/, by its name$/, "")}` : `${namesInWords(pushed.keys.map((key) => key.path))} look like they hold keys`;
22911
- return `(Not in the room's project: ${held}, so nothing was sent.)`;
22911
+ return `(Not in the space's project: ${held}, so nothing was sent.)`;
22912
22912
  }
22913
22913
  case "refused":
22914
- return `(Not in the room's project: it was turned back: ${stopped(pushed.why)})`;
22914
+ return `(Not in the space's project: it was turned back: ${stopped(pushed.why)})`;
22915
22915
  case "failed":
22916
- return `(Not in the room's project: it couldn't be sent: ${stopped(pushed.why)})`;
22916
+ return `(Not in the space's project: it couldn't be sent: ${stopped(pushed.why)})`;
22917
22917
  }
22918
22918
  }
22919
22919
  async function checkGit(git2 = "git", path = process.env["PATH"] ?? "/usr/bin:/bin") {
@@ -23231,7 +23231,7 @@ ${sent.err}`;
23231
23231
  const clashes = lines((await this.git(["diff", "--name-only", "--diff-filter=U"])).out);
23232
23232
  if (clashes.length === 0)
23233
23233
  return merged.ok ? {} : { trouble: remoteWords(merged.err) };
23234
- const label2 = theirs.length === 1 ? theirs[0] ?? "the room" : "the room";
23234
+ const label2 = theirs.length === 1 ? theirs[0] ?? "the space" : "the space";
23235
23235
  for (const path of clashes)
23236
23236
  await this.label(path, onto, label2);
23237
23237
  return { clashes, clashedWith: theirs };
@@ -25066,8 +25066,8 @@ import { homedir as homedir2 } from "node:os";
25066
25066
  import { basename as basename2, isAbsolute, resolve, sep } from "node:path";
25067
25067
  import { fileURLToPath } from "node:url";
25068
25068
  function sendingFiles(options = {}) {
25069
- const which = options.project === true ? "A file that isn't in the room's project" : "A file";
25070
- return `${which} reaches this room only when you send it: put MEDIA:<path> on a line of its own in your answer, one line for each file, from your own folder. A path, or a link to this machine, reaches nobody: the people and agents here cannot open your folder.`;
25069
+ const which = options.project === true ? "A file that isn't in the space's project" : "A file";
25070
+ return `${which} reaches this space only when you send it: put MEDIA:<path> on a line of its own in your answer, one line for each file, from your own folder. A path, or a link to this machine, reaches nobody: the people and agents here cannot open your folder.`;
25071
25071
  }
25072
25072
  var SENDING_FILES = sendingFiles();
25073
25073
  var MOST_FILES = 20;
@@ -26622,7 +26622,7 @@ function lookAgainPrompt(who, reply, note) {
26622
26622
  \xAB${cut(reply.trim(), QUOTED)}\xBB`;
26623
26623
  const wrong = note === void 0 ? "They didn't say what. Read your reply again and find what was wrong." : `What wasn't right: \xAB${note}\xBB`;
26624
26624
  return [
26625
- `${who} says your reply in this room wasn't right.`,
26625
+ `${who} says your reply in this space wasn't right.`,
26626
26626
  quoted2,
26627
26627
  wrong,
26628
26628
  "Look at it again and answer properly in its place. If it is not clear what was wrong, ask them in one short line. Say plainly what you changed."
@@ -26950,7 +26950,7 @@ await bridge.start();
26950
26950
  log(`connected as ${chips.harnessId} (${kind.name}), ${Object.keys(state.agents).length} agent(s)`);
26951
26951
  await helloOnce(joined, {
26952
26952
  name: kind.name,
26953
- say: (spaceId) => chips.post({ spaceId, text: `Hi, ${kind.name} here, through chips-acp. Make me an agent from any room, or ask me here.` })
26953
+ say: (spaceId) => chips.post({ spaceId, text: `Hi, ${kind.name} here, through chips-acp. Make me an agent from any space, or ask me here.` })
26954
26954
  }).catch((error62) => log(`hello not said: ${String(error62)}`));
26955
26955
  var stop = () => {
26956
26956
  bridge?.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipschat/acp",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "An agent that speaks the Agent Client Protocol, as a Chips harness of its kind: agents made from Chips, each in a folder of its own, each room a session.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",