@chipschat/acp 1.0.21 → 1.0.22
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 +1 -1
- package/dist/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/main.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ minutes and loaded again with its memory. Fourteen runs, none failed, $0.35, all
|
|
|
148
148
|
| A message for an agent | `session/prompt` with the room note and who said it (`promptFor`), files saved under `<folder>/chips-files/` |
|
|
149
149
|
| What waited for an agent (Chips ADR 0294) | one prompt once the agent is free, not one each: under the newest message's note, each message that waited said in full, oldest first, then what was said in the room after, to others. A message Chips handed over, and a Not right?, are a prompt of their own. An idle agent starts 150 ms after the first words, so all it is sent at once, as when the bridge comes back, is one prompt |
|
|
150
150
|
| What was said before an agent joined (Chips ADR 0088) | the room's last lines from before the agent was put in it (`agent.attached`'s `catch_up`), said once, at its first prompt there, under "Said in this space before you joined:", ahead of the lines since |
|
|
151
|
-
| A message Chips held (Chips ADR 0097) | when Chips answers what an agent said with `held` (the agents in the room have sent each other the workspace's hold, or a person paused them), the agent's next prompt in the room opens by saying so: the agents it named
|
|
151
|
+
| A message Chips held (Chips ADR 0097) | when Chips answers what an agent said with `held` (the agents in the room have sent each other the workspace's hold, or a person paused them), the agent's next prompt in the room opens by saying so, once. A person's act hands a held message on, and is usually what starts that prompt: then it says the message was held until a person acted and the agents it named have it now, so the agent does not send it again. Where the agents are held still (the message's `exchange.stage` is `held`), it says they do not have it yet, so the agent tells the person what is done and what is blocked |
|
|
152
152
|
| The room | a session in the agent's folder: `session/new` the first time, `session/load` after a restart or an idle close where the agent offers it |
|
|
153
153
|
| A room from the + | `claimSpace` under a new key; Chips makes its agent; the first words are its first prompt |
|
|
154
154
|
| A new agent (Add) | a record and a folder, registered with `madeFor` and the room |
|
package/dist/main.js
CHANGED
|
@@ -26995,8 +26995,11 @@ var ContextFiles = class {
|
|
|
26995
26995
|
|
|
26996
26996
|
// src/fold.ts
|
|
26997
26997
|
var GATHER_MS = 150;
|
|
26998
|
-
function heldWords(answer) {
|
|
26998
|
+
function heldWords(answer, released = false) {
|
|
26999
26999
|
if (answer?.held !== true) return void 0;
|
|
27000
|
+
if (released) {
|
|
27001
|
+
return "Your last message in this space was held from the agents it named until a person acted. A person has now, so Chips has handed it to them: do not send it again.";
|
|
27002
|
+
}
|
|
27000
27003
|
const count = answer.exchange?.count;
|
|
27001
27004
|
const since = typeof count === "number" && count > 0 ? ` (they have sent each other ${count} since a person last acted)` : "";
|
|
27002
27005
|
return `Your last message in this space was held, so the agents it named do not have it yet: messages between the agents here are held${since} until a person acts. Until then, tell the person what is done and what is blocked, rather than asking the agents again.`;
|
|
@@ -27070,7 +27073,7 @@ function contextOf(message, earlier, answered) {
|
|
|
27070
27073
|
}
|
|
27071
27074
|
function promptForAll(message, options = {}) {
|
|
27072
27075
|
const { earlier = [], since = [], answered = [], before, heldPost, ...rest } = options;
|
|
27073
|
-
const held = heldWords(heldPost);
|
|
27076
|
+
const held = heldWords(heldPost, message.exchange?.stage !== "held");
|
|
27074
27077
|
const joinedBefore = beforeOf(message, earlier, before);
|
|
27075
27078
|
if (earlier.length === 0 && since.length === 0 && answered.length === 0 && held === void 0 && joinedBefore === void 0) {
|
|
27076
27079
|
return promptFor(message, rest);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chipschat/acp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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
|
"repository": {
|