viewable-one 0.12.11 → 0.12.12

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/CHANGELOG.md CHANGED
@@ -13,6 +13,21 @@ package.
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
+ ## [0.12.12] - 2026-11-26
17
+
18
+ ### Fixed
19
+
20
+ - A run whose plan reads apps through Viewable is told one paged read and one
21
+ way to land it (#8675, #8672). Walk c's "status of each issue with
22
+ sub-issues" read 47 parents one at a time (105 reads, 15 minutes) and typed
23
+ the rows into a `propose` snippet, which landed as an empty circle in its
24
+ own group. The spawn preamble (`appReadRule`) now says to read items with
25
+ their children, or every row of a list, once with `read_all_rows { tool,
26
+ args, with_children }` and never to draw a read's rows as a snippet;
27
+ `drawnCardRule` applies only to what no read holds (files, the web); and the
28
+ run's list of board tools names `set_live_card`. Claude Code and Codex get
29
+ the same words. The chat-turn rules are unchanged.
30
+
16
31
  ## [0.12.11] - 2026-11-25
17
32
 
18
33
  ### Fixed
package/lib/agents.mjs CHANGED
@@ -1001,6 +1001,7 @@ export function preambleFor(agent, { workplace, computerApps, boardServerKey, re
1001
1001
  // Only Claude Code and Codex, with the same words (#7581).
1002
1002
  const apps = ["claude", "codex"].includes(agentFor(agent)) ? plannedReadApps(readApps) : [];
1003
1003
  const appRead = spec.boardTool("app_read");
1004
+ const setLiveCard = spec.boardTool("set_live_card");
1004
1005
  return (
1005
1006
  "You were spawned from a canvas by a person who is not watching a terminal. " +
1006
1007
  (readOnly === true ? READ_ONLY_WORKPLACE : workplace ?? "You are in your own git worktree: commit your work on this branch, never " +
@@ -1025,10 +1026,11 @@ export function preambleFor(agent, { workplace, computerApps, boardServerKey, re
1025
1026
  // A refusal stops the run and asks; it never sends it to another login (#6995).
1026
1027
  refusalRule(ask) +
1027
1028
  // A table ask lands as a drawn card, never as words saying it was made (#8102).
1028
- (apps.length > 0 ? appReadRule(appRead, spec.boardTool("set_live_card"), apps) : "") +
1029
- drawnCardRule(spec.boardTool("propose")) +
1029
+ (apps.length > 0 ? appReadRule(appRead, setLiveCard, apps) : "") +
1030
+ drawnCardRule(spec.boardTool("propose"), { readApps: apps.length > 0 }) +
1031
+ // A run that reads apps lands its reads with set_live_card, so the list names it (#8672).
1030
1032
  `Your board tools are named ${spec.boardTool("get_board")}, ` +
1031
- `${spec.boardTool("get_node")}, ${spec.boardTool("propose")}, ${ask}${apps.length > 0 ? `, ${appRead}` : ""} and ${report}.\n\n` +
1033
+ `${spec.boardTool("get_node")}, ${spec.boardTool("propose")}, ${ask}${apps.length > 0 ? `, ${appRead}, ${setLiveCard}` : ""} and ${report}.\n\n` +
1032
1034
  // brief 23 ruling 4a (2026-09-07): the app derives the run's structure
1033
1035
  // - its steps, decisions and waiting state - from this session's own
1034
1036
  // log, and this preamble is the one place every session reads. So the
@@ -1084,9 +1086,14 @@ function appReadRule(appRead, setLiveCard, apps) {
1084
1086
  "command-line tool, a script, a web request or a login on this computer (no gh, no curl, no app's own CLI), " +
1085
1087
  "and the rule about the person's own apps on this computer does not apply to these. " +
1086
1088
  "Each read answers the app's rows and a read_ref that names the read for ten minutes. " +
1089
+ // ONE READ, NOT ONE PER ITEM (#8675): walk c's card 1 read 47 parents one at a time, 105 reads in 15 minutes.
1090
+ "For each item with its child items, or every row of a list, read once with the tool read_all_rows " +
1091
+ "{ tool, args, with_children } (tool being one of the app's read tools, args its filter, with_children true " +
1092
+ "for only the items that have child items, each with its children done and in all), never one read per item. " +
1087
1093
  `To put a table or chart of what you read on the board, land it with ${setLiveCard} ` +
1088
1094
  "{ shape: \"table\" or \"chart\", read_ref, columns }, columns being the fields to show, in order: the board " +
1089
- "builds the card from that read, so never type the rows in yourself; if the board refuses that, draw it as below. " +
1095
+ "builds the card from that read, so never type the rows in yourself and never draw them as a snippet; if the " +
1096
+ "board refuses that, draw it as below. " +
1090
1097
  `If ${appRead} is refused (the run was stopped or ran out of time, the app is not in the plan, the account is ` +
1091
1098
  "not on Pro), stop that part and say so in your answer, in the refusal's own words. Never read the app another way.\n\n"
1092
1099
  );
@@ -76,9 +76,20 @@ export function otherAppsRule() {
76
76
  // board: nothing told it that the board shows a table only as a drawn card.
77
77
  // The board tools now refuse that line (board-mcp claimCheck.mjs); this says
78
78
  // what to do first. `propose` is the engine's own tool name.
79
- export function drawnCardRule(propose) {
79
+ //
80
+ // ONE WAY TO LAND A READ (#8672). A run that read an app was told two ways at
81
+ // once: land the read with set_live_card (appReadRule), and draw any table as
82
+ // a propose snippet (this rule). Walk c's card 1 drew 47 rows by hand into a
83
+ // snippet, which lands as a circle whose table shows only when clicked. With
84
+ // `readApps` (the run reads apps through Viewable) this rule is for what no
85
+ // read holds (files, the web); the board refuses a table or chart snippet in
86
+ // a run that holds a read.
87
+ export function drawnCardRule(propose, { readApps = false } = {}) {
80
88
  return (
81
- "When the person asks for a table, chart, list, timeline or kanban, put it " +
89
+ (readApps
90
+ ? "When the person asks for a table, chart, list, timeline or kanban of something no read of yours holds " +
91
+ "(files, the web), put it "
92
+ : "When the person asks for a table, chart, list, timeline or kanban, put it ") +
82
93
  `on the board as a drawn card: ${propose} an addIdea with a snippet (x-table, ` +
83
94
  `x-chart, x-list, x-timeline; get_library lists them). ` +
84
95
  "Never say you made one you did not draw; if you could not, say so.\n\n"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewable-one",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "description": "Run coding agents from the Viewable board. Connects your machine to app.viewable.one, launches a session in its own worktree when you press Run, and streams what it does back to the canvas.",
5
5
  "keywords": [
6
6
  "mcp",