longtable 0.1.56 → 0.1.57

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/prompts.mjs +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "longtable",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "Brings your own Claude Code or Codex to your team's table on longtable.chat, quietly, on your own plan.",
5
5
  "homepage": "https://longtable.chat",
6
6
  "repository": {
package/src/prompts.mjs CHANGED
@@ -47,7 +47,7 @@ export const KINDS = {
47
47
  schema: { type: "object", properties: { title: { type: "string" }, html: { type: "string" } }, required: ["title", "html"], additionalProperties: false },
48
48
  },
49
49
  look: {
50
- task: "Answer what the team is asking: a question, or the opinion or input they want. Use everything you know: the code in this folder (the project as it is here, which in your person's own folder includes their work in progress), what you know from working with your person, and the table's own facts. Change nothing. If you cannot tell, say what you checked. Sources are only files of the project itself.",
50
+ task: "Answer what the team is asking: a question, or the opinion or input they want. Use everything you know: the code in this folder (the project as it is here, which in your person's own folder includes their work in progress), what you know from working with your person, and the table's own facts. Change nothing. If you cannot tell, say what you checked. When the other AIs at the table gave their views below, weigh them, open what a view cites before you disagree with it, and say briefly where they differed. They never read the chat, so never put questions to them there. Sources are only files of the project itself.",
51
51
  schema: { type: "object", properties: { answer: { type: "string" }, sources: SOURCES }, required: ["answer", "sources"] },
52
52
  },
53
53
  work: {
@@ -63,7 +63,7 @@ export const KINDS = {
63
63
  schema: { type: "object", properties: { answer: { type: "string" }, sources: SOURCES }, required: ["answer", "sources"] },
64
64
  },
65
65
  view: {
66
- task: "Give your view on the question for the team's back room: what the code says, what you are unsure of, and anything risky. Two to five sentences. If the team is asking for a change, another AI at this table makes it right after hearing you: say what it should watch for, and do not say that someone needs to make the change by hand. Another AI will combine everyone's views into one answer.",
66
+ task: "Give your view on the question for the team's back room: what the code says, what you are unsure of, and anything risky. Two to five sentences, unless you are asked questions yourself: then answer each one. If the team is asking for a change, another AI at this table makes it right after hearing you: say what it should watch for, and do not say that someone needs to make the change by hand. Another AI will combine everyone's views into one answer.",
67
67
  schema: {
68
68
  type: "object",
69
69
  properties: { view: { type: "string" }, confidence: { type: "string", enum: ["high", "medium", "low"] }, sources: SOURCES, learned: LEARNED },
@@ -162,7 +162,8 @@ const fence = (job) => {
162
162
  if (job.kind === "work" || job.kind === "review" || (job.kind === "combine" && job.worker)) {
163
163
  const label = (v) => (v.meta?.part === "plan" ? "the plan" : v.meta?.part === "work" ? "did its part of the work" : v.meta?.part === "review" ? (v.meta?.ok === false ? "looked it over, found a problem" : "looked it over, fine") : "view before the work");
164
164
  parts.push("The back room so far, oldest first:" + NL + (job.views?.length ? job.views.map((v) => `${v.name}'s AI (${label(v)}): ${v.view}`).join(NL) : "Nothing yet."));
165
- } else if (job.kind === "combine") parts.push("Back-room views:\n" + (job.views?.length ? job.views.map((v) => `${v.name}'s AI (${v.meta?.confidence ?? "unsure"}): ${v.view}`).join("\n") : "None came in."));
165
+ } else if (job.kind === "look" && job.views?.length) parts.push("What the other AIs at the table said about it:\n" + job.views.map((v) => `${v.name}'s AI: ${v.view}`).join("\n"));
166
+ else if (job.kind === "combine") parts.push("Back-room views:\n" + (job.views?.length ? job.views.map((v) => `${v.name}'s AI (${v.meta?.confidence ?? "unsure"}): ${v.view}`).join("\n") : "None came in."));
166
167
  if (job.question) parts.push(`Question from ${job.asker}:\n${withPasted(job.question, job.question_pasted)}`);
167
168
  return ["<<<TABLE", fenced(inert(parts.join("\n\n"))), "TABLE>>>"].join("\n");
168
169
  };