pantheon-cli 0.3.0 → 0.3.1

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/dist/pantheon.mjs CHANGED
@@ -45901,6 +45901,7 @@ function readMeta(home, slug) {
45901
45901
  if (key === "members") inMembers = true;
45902
45902
  if (key === "topic") meta.topic = value.trim();
45903
45903
  if (key === "own" && value.trim()) meta.own = value.trim();
45904
+ if (key === "kind" && value.trim() === "dm") meta.kind = "dm";
45904
45905
  if (key === "created_at") meta.createdAt = value.trim();
45905
45906
  if (key === "updated_at") meta.updatedAt = value.trim();
45906
45907
  }
@@ -45915,6 +45916,7 @@ function writeMeta2(home, meta) {
45915
45916
  "members:",
45916
45917
  ...meta.members.map((member2) => ` - ${member2}`),
45917
45918
  ...meta.own ? [`own: ${meta.own}`] : [],
45919
+ ...meta.kind ? [`kind: ${meta.kind}`] : [],
45918
45920
  `created_at: ${meta.createdAt}`,
45919
45921
  `updated_at: ${meta.updatedAt}`,
45920
45922
  ""
@@ -46019,6 +46021,7 @@ function listChannels(home) {
46019
46021
  topic: meta.topic,
46020
46022
  members: meta.members,
46021
46023
  ...meta.own ? { own: meta.own } : {},
46024
+ ...meta.kind ? { kind: meta.kind } : {},
46022
46025
  messages: count,
46023
46026
  updatedAt: meta.updatedAt || (existsSync6(log2) ? statSync3(log2).mtime.toISOString() : meta.createdAt)
46024
46027
  }
@@ -46201,6 +46204,8 @@ function channelOpenQuestions(home, slug, messages = readMessages(home, slug)) {
46201
46204
  answered.set(message.replyTo, set);
46202
46205
  }
46203
46206
  const byId = new Map(messages.map((message) => [message.id, message]));
46207
+ const meta = readMeta(home, slug);
46208
+ const direct = meta?.kind === "dm" ? meta.members : null;
46204
46209
  const talking = /* @__PURE__ */ new Map();
46205
46210
  const noteTakers = /* @__PURE__ */ new Map();
46206
46211
  const isNoteTaker = (space) => {
@@ -46228,7 +46233,7 @@ function channelOpenQuestions(home, slug, messages = readMessages(home, slug)) {
46228
46233
  }
46229
46234
  if (message.kind !== "post" || message.by !== "human") return [];
46230
46235
  const mentioned2 = mentionedAgents(home, message.text);
46231
- const asked = mentioned2.length || !thread ? mentioned2 : (talking.get(thread) ?? []).filter((agent) => !isNoteTaker(agent));
46236
+ const asked = mentioned2.length ? mentioned2 : direct ? direct : thread ? (talking.get(thread) ?? []).filter((agent) => !isNoteTaker(agent)) : [];
46232
46237
  const waiting = asked.filter((agent) => !answered.get(message.id)?.has(agent));
46233
46238
  return waiting.length ? [
46234
46239
  {
@@ -49207,7 +49212,7 @@ ${GUIDE}` }]
49207
49212
  registerTool(
49208
49213
  server,
49209
49214
  "pantheon_channel",
49210
- "Channels group handoff agents. action list: every channel. read: a channel's members, memory and latest messages. create: a new #name, optionally with agents and a topic. add: merge agents into a channel, so questions there search all of them; nothing is copied, and remove undoes it. remove: take one agent out. post: add a message, only when the human asks to post or record something; remember:true also saves it to the channel memory every resume loads; as_agent with evidence and reply_to posts an agent's answer to an open question (it lands in the question's thread when there is one); thread posts as a reply under that message. read and resume list openQuestions: posts that @mention an agent, or reply in a thread an agent is part of, that it has not answered yet. Messages carry thread when they are thread replies. Messages are visible in the Pantheon app.",
49215
+ "Channels group handoff agents. action list: every channel. read: a channel's members, memory and latest messages. create: a new #name, optionally with agents and a topic. add: merge agents into a channel, so questions there search all of them; nothing is copied, and remove undoes it. remove: take one agent out. post: add a message, only when the human asks to post or record something; remember:true also saves it to the channel memory every resume loads; as_agent with evidence and reply_to posts an agent's answer to an open question (it lands in the question's thread when there is one); thread posts as a reply under that message. read and resume list openQuestions: posts that @mention an agent, or reply in a thread an agent is part of, that it has not answered yet. Messages carry thread when they are thread replies. A channel of kind dm (named dm-<agent>) is the human's direct line to one agent: every post there asks that agent. Messages are visible in the Pantheon app.",
49211
49216
  {
49212
49217
  action: external_exports.enum(["list", "read", "create", "add", "remove", "post"]),
49213
49218
  channel: external_exports.string().trim().max(65).optional().describe("#name. Required for every action except list."),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Carry agent conscience between AI coding agents. Hand off a conversation in one agent, resume it in another.",
5
5
  "license": "MIT",
6
6
  "type": "module",