orbitmap 0.7.0 → 0.8.0

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,8 +1,8 @@
1
1
  // Single source of truth for all OrbitMap agent-facing instruction text.
2
2
  //
3
3
  // THIS FILE IS THE CANONICAL HOME of the skills. `orbitmap init` installs them; the
4
- // copies under `~/.claude/skills/` (or a project's `.claude/skills/`) are INSTALLS,
5
- // not sources. Edit here, then re-install — never the other way around.
4
+ // copies under `~/.claude/skills/`, `~/.codex/skills/` (or a project's `.claude/skills/`)
5
+ // are INSTALLS, not sources. Edit here, then re-install — never the other way around.
6
6
  //
7
7
  // Two layers, mirroring how the OrbitMap MCP server works:
8
8
  // 1. THIN_HOOK — always-on, injected into CLAUDE.md / AGENTS.md (~10 lines).
@@ -29,16 +29,18 @@
29
29
  // workers read INSTEAD of the skill
30
30
  // (see SkillDef.references).
31
31
  // orbitmap-docs — documents
32
- // Shipped two ways:
33
- // - Claude: one `.claude/skills/<name>/SKILL.md` per skill,
34
- // plus any `references/*` files, loaded on demand
35
- // (zero per-turn context cost).
36
- // - non-Claude: all skill BODIES concatenated into the agent
37
- // config file (no skill ecosystem to lean on).
38
- // Reference files are not inlined: without
39
- // subagent dispatch, Flow A runs serially and the
40
- // worker contract folds into the executor's own
41
- // rules.
32
+ // Shipped two ways, chosen by what the agent CAN DO, never by its
33
+ // name (see AgentDef.skillsDirName in commands/setup-agent.ts):
34
+ // - skills-capable agents (Claude Code and Codex today): one
35
+ // `<skills dir>/<name>/SKILL.md` per skill, plus
36
+ // any `references/*` files, loaded on demand (zero
37
+ // per-turn context cost).
38
+ // - agents with no skill ecosystem: all skill BODIES concatenated
39
+ // into the agent config file, because there is
40
+ // nothing on-demand to lean on. Reference files are
41
+ // not inlined: without subagent dispatch, Flow A
42
+ // runs serially and the worker contract folds into
43
+ // the executor's own rules.
42
44
  //
43
45
  // History: the original four skills (orbitmap, orbitmap-execute, orbitmap-plan,
44
46
  // orbitmap-docs) were transcribed from §8 of `docs/local-mode-poc-spec.md`, itself a
@@ -444,7 +446,7 @@ MCP tool schemas are the authority. Never edit the workspace data files directly
444
446
  \`blocked\` with a logged blocker — an \`in_progress\` task means a fold step was
445
447
  skipped; fix it before moving on. Then end the run:
446
448
  \`orbitmap intent update IN-x --status in_review --log <entries>\` — the transition's
447
- response carries an Instructions section (it will ask for release notes); FOLLOW it.
449
+ response carries an Instructions section (it will ask you to verify the outcome lines); FOLLOW it.
448
450
  Merging and closing to \`done\` are the USER'S. The merge EVENT — whoever performs
449
451
  it — is what later flips the tasks to \`--delivery merged\`.
450
452
 
@@ -788,9 +790,9 @@ ${worklogKeepDropTest(' ')}
788
790
  add or fix tasks and re-check. Do NOT proceed while a gap remains.
789
791
  7. Write cross-task PLANNING NOTES + a short SUMMARY to the intent \`plan\` field —
790
792
  \`orbitmap intent update IN-x --plan "<notes>"\`: decisions valid for all tasks,
791
- sequencing rationale, and the coverage argument. AUTHOR THE FIELD AS: a summary
792
- paragraph first, then a line containing only \`---\`, then the body. The server reads the
793
- part before \`---\` as the field's TL;DR and flags a field written without one.
793
+ sequencing rationale, and the coverage argument. Start the field with "# Summary"
794
+ — a paragraph summing up the whole field then the body. The server reads that section
795
+ as the field's TL;DR and flags a field written without one.
794
796
  This REPLACES any seed notes that were in the field — you have already absorbed them.
795
797
  8. Ensure a final DOC-UPDATE task exists: after the implementation is done and all tests
796
798
  are green, update the OrbitMap documentation (see the \`orbitmap-docs\` skill).
@@ -1007,6 +1009,57 @@ you hand to \`orbitmap-design\` (and, through the plan field, to \`orbitmap-plan
1007
1009
  validation) into the design notes, never into the agreed outcome. Do not slip into
1008
1010
  solutioning.
1009
1011
 
1012
+ ## Outcome lines
1013
+
1014
+ One promise per line, written as the user would read it in release notes. Subject is
1015
+ the user, a named role, or the product acting for the user — never "you", "we", "I",
1016
+ the team, the code or the field. Shape: "(user) can (do what)" or
1017
+ "(product) no longer (pain)".
1018
+
1019
+ Sources: the outcome field first; when it is thin, the work log's decision and
1020
+ release-note entries; never the design or plan.
1021
+
1022
+ Each line passes six tests, or is rewritten / moved:
1023
+ NOTICE — would a user notice it without reading code, tests or the tracker?
1024
+ (nothing changes → Out of scope)
1025
+ STRANGER — would a new customer understand it? (no keys, dates, "decided by")
1026
+ CODE — no file, class, column, endpoint, flag, or surface list shown for
1027
+ coverage; one surface may be named when the behaviour lives only there
1028
+ (mechanism → What changes or design)
1029
+ ONE-THING — one promise; a second clause may only say why it matters or what it
1030
+ replaces — "and", a semicolon joining two promises, a second field or
1031
+ view → split or drop
1032
+ ACTOR — every verb has one unambiguous doer (the user accepts, the system
1033
+ tests); no "opens/gets/begins" where a person or the system could be meant
1034
+ REFERENT — nothing points outside the line: no "this", "it", "lists", "the field"
1035
+ without naming which
1036
+
1037
+ 1–7 lines, ≤160 chars each: title, one line of description, the user type in brackets
1038
+ at the end. Highest impact to the user or product first. More than 7 on a new intent →
1039
+ propose a second intent; on an already-built intent → merge the lowest-impact lines.
1040
+
1041
+ User type: [user] anyone working in OrbitMap; [customer] the account owner's view —
1042
+ security, data, billing, upgrade notices; [internal] only the OrbitMap team notices.
1043
+ An all-[internal] list is allowed; never force a user line.
1044
+
1045
+ Examples:
1046
+ Bad: "TaskDetail's unlocked taskId allowing cross-account read+write (IS-x4uxur) closes"
1047
+ Good: "No one can open or edit a task from another account, even with its link. [customer]"
1048
+ Bad: "DB enum + Postgres triggers, Agent API + fixtures, UI, CLI, MCP carry 'cancelled'"
1049
+ Good: "A task can be cancelled instead of being marked done with a disclaimer. [user]"
1050
+ Bad: "You can write work-log entries on an issue, same as on a task."
1051
+ Good: "A user can write work-log entries on an issue, same as on a task. [user]"
1052
+
1053
+ If the user's shorthand can be read two ways, still propose the line and end it with
1054
+ "? <question>"; a "?" line never enters the field. No input to work from → say so and
1055
+ ask what should change and for whom; never invent.
1056
+
1057
+ Propose the list in the terminal in this exact format. The user accepts or comments;
1058
+ refine and re-propose until the user accepts the whole list. Then re-read each
1059
+ accepted line as a customer reading the changelog email; flag any line that can still
1060
+ be read two ways. Write only the accepted lines, as the first paragraph of the outcome
1061
+ field.
1062
+
1010
1063
  ## Flow
1011
1064
  1. Gather context.
1012
1065
  - Ensure session focus (see Session focus in the \`orbitmap\` skill): a valid focus
@@ -1044,15 +1097,21 @@ ${worklogKeepDropTest(' ')}
1044
1097
  - \`note\` is the CATCH-ALL — anything useful that is not \`code_change\` / \`decision\` /
1045
1098
  \`blocker\` goes in as \`note\`, with \`--meta\` for unusual structure. There is deliberately
1046
1099
  NO \`other\` type. NEVER write \`status_change\`: the server authors it on every transition.
1047
- 3. Present the outcome as a short, concrete statement that also names what is explicitly
1048
- OUT of scope and how success will be measured or checked. Refine it with the user until
1049
- they AGREE — never proceed on a vague or assumed outcome.
1100
+ 3. Propose the OUTCOME LINES in the terminal (see Outcome lines) together with what is
1101
+ explicitly OUT of scope and how success will be checked. The user accepts or comments;
1102
+ refine and re-propose until the user accepts the whole list — never proceed on a vague
1103
+ or assumed outcome, and never write a line the user has not accepted.
1050
1104
  4. Persist (create or refine). Update an existing unprocessed intent, or create one:
1051
1105
  \`orbitmap intent update IN-x --outcome "<agreed outcome>" [--design "<design notes>"] [--plan "<plan notes>"]\`
1052
1106
  / \`orbitmap intent create "<name>" --outcome "<agreed outcome>" [--design "…"] [--plan "…"]\`.
1053
- The agreed **outcome** goes in the outcome field. AUTHOR EVERY FIELD THE SAME WAY: a
1054
- summary paragraph first, then a line containing only \`---\`, then the body. The server
1055
- reads the part before \`---\` as the field's TL;DR and flags a field written without one.
1107
+ Write the outcome field in the template: "# Outcomes list" holding ONLY the accepted
1108
+ lines (see Outcome lines), "# Why", then the chapters What changes and Alternatives
1109
+ rejected optional; Out of scope, Success check and Source obligatory ending with
1110
+ "## Source" carrying "Outcomes accepted by <who> on <YYYY-MM-DD>". Soft ceiling
1111
+ ~1,500 words: above it, move material to design or plan. Design and plan notes start
1112
+ with "# Summary", a paragraph summing up the whole field, then the body. The server
1113
+ returns the outcomes list as the intent's TL;DR and refuses \`new → design\` without an
1114
+ accepted list.
1056
1115
  Route the captured notes by type —
1057
1116
  HOW / tech / UX → the **design** field; build-order / task ideas / execution risks → the
1058
1117
  **plan** field (OPTIONAL — only if the conversation produced any). Mark the user's notes
@@ -1079,9 +1138,9 @@ digraph orbitmap_brainstorm {
1079
1138
  "Clarify idea into an outcome, one question at a time" [shape=box];
1080
1139
  "Log decisions passing the keep/drop test, as they land" [shape=box];
1081
1140
  "Capture user opinions / context as notes" [shape=box];
1082
- "Present the outcome" [shape=box];
1083
- "User agrees the outcome?" [shape=diamond];
1084
- "Create or refine intent: agreed outcome" [shape=box];
1141
+ "Propose outcome lines in the terminal" [shape=box];
1142
+ "User accepts the whole list?" [shape=diamond];
1143
+ "Create or refine intent: accepted lines + template chapters" [shape=box];
1085
1144
  "Route notes to design/plan fields by type (marked as the user's)" [shape=box];
1086
1145
  "Promote referenced idea to used" [shape=box];
1087
1146
  "Advance status new to design, with --log entries (refused if none)" [shape=box];
@@ -1090,11 +1149,11 @@ digraph orbitmap_brainstorm {
1090
1149
  "Gather context: Orb (intents / idea) + repo (files, docs, commits)" -> "Clarify idea into an outcome, one question at a time";
1091
1150
  "Clarify idea into an outcome, one question at a time" -> "Log decisions passing the keep/drop test, as they land";
1092
1151
  "Log decisions passing the keep/drop test, as they land" -> "Capture user opinions / context as notes";
1093
- "Capture user opinions / context as notes" -> "Present the outcome";
1094
- "Present the outcome" -> "User agrees the outcome?";
1095
- "User agrees the outcome?" -> "Clarify idea into an outcome, one question at a time" [label="no, refine"];
1096
- "User agrees the outcome?" -> "Create or refine intent: agreed outcome" [label="yes"];
1097
- "Create or refine intent: agreed outcome" -> "Route notes to design/plan fields by type (marked as the user's)";
1152
+ "Capture user opinions / context as notes" -> "Propose outcome lines in the terminal";
1153
+ "Propose outcome lines in the terminal" -> "User accepts the whole list?";
1154
+ "User accepts the whole list?" -> "Propose outcome lines in the terminal" [label="comments, refine"];
1155
+ "User accepts the whole list?" -> "Create or refine intent: accepted lines + template chapters" [label="yes"];
1156
+ "Create or refine intent: accepted lines + template chapters" -> "Route notes to design/plan fields by type (marked as the user's)";
1098
1157
  "Route notes to design/plan fields by type (marked as the user's)" -> "Promote referenced idea to used";
1099
1158
  "Promote referenced idea to used" -> "Advance status new to design, with --log entries (refused if none)";
1100
1159
  "Advance status new to design, with --log entries (refused if none)" -> "Offer orbitmap-design (review or design?)";
@@ -1104,7 +1163,9 @@ digraph orbitmap_brainstorm {
1104
1163
  ## After the outcome
1105
1164
  Before handing off, review the agreed outcome with fresh eyes:
1106
1165
  - **Vague or assumed?** Is it concrete and in the user's words, or did you fill gaps? Fix.
1107
- - **Unmeasurable?** Can you tell when it is met? If not, sharpen the success criteria.
1166
+ - **Unmeasurable?** Can you tell when it is met? If not, sharpen the Success check.
1167
+ - **Every line clean?** Re-run the six tests on each accepted line; a line that fails is
1168
+ rewritten and re-accepted, never silently changed.
1108
1169
  - **Too big?** If it needs several independent designs, decompose into sibling intents and
1109
1170
  frame the first — do not hand design an outcome that is really three outcomes.
1110
1171
  Then write it (Flow step 4), advance \`new → design\`, and hand the baton to
@@ -1128,8 +1189,10 @@ Then write it (Flow step 4), advance \`new → design\`, and hand the baton to
1128
1189
  - Create-or-refine: reuse an existing unprocessed intent instead of creating a duplicate.
1129
1190
  - Ground the outcome in verified repo/tracker reality, not the plan doc or a stated claim —
1130
1191
  check it is still needed and still undone before framing.
1131
- - Keep the outcome WHAT/WHY: name what is OUT of scope and how success is measured; push
1132
- HOW answers into the design notes.
1192
+ - Keep the outcome WHAT/WHY: the accepted lines say WHAT, the Why chapter says WHY; name
1193
+ what is OUT of scope and how success is checked; push HOW answers into the design notes.
1194
+ - Only accepted lines enter the field — no proposed lines, no "?" lines, no
1195
+ proposed/accepted marks; the acceptance record under Source is the user's consent.
1133
1196
  - If the intent already has an agreed outcome (status \`design\` or later), step aside and
1134
1197
  point at \`orbitmap-design\` — do not re-frame a settled outcome.
1135
1198
  - Never auto-chain into designing after framing — always ask first.`;
@@ -1176,6 +1239,11 @@ holds a real design doc instead of raw notes, treat it as existing design to ref
1176
1239
  ## Key principles
1177
1240
  - **Serve the outcome.** Every question and every section traces back to the outcome; if
1178
1241
  it does not, cut it or go fix the outcome first.
1242
+ - **Anchor every question to an outcome.** Open each question with the outcome it
1243
+ serves, quoted by number and short title — "For outcome 3 (verified outcomes get a
1244
+ done check): what does the mark mean at review, and what does done require?" — so
1245
+ the user always knows which promise the decision shapes. A question that fits no
1246
+ outcome is a sign the outcome list is incomplete: raise that, do not ask the question.
1179
1247
  - **One question at a time.** Refine by dialogue, never a questionnaire dump.
1180
1248
  - **Prefer multiple choice — open questions are a LAST RESORT.** When a question's options
1181
1249
  can be enumerated, ALWAYS offer them as a multiple choice with a recommended default; ask
@@ -1276,9 +1344,9 @@ ${worklogKeepDropTest(' ')}
1276
1344
  5. Present the draft in sections scaled to their complexity (a few sentences when simple,
1277
1345
  more when nuanced); after each section ask whether it looks right, and get the user's
1278
1346
  approval before writing anything.
1279
- 6. Write it: \`orbitmap intent update IN-x --design "<doc>"\`. AUTHOR THE FIELD AS: a
1280
- summary paragraph first, then a line containing only \`---\`, then the body. The server
1281
- reads the part before \`---\` as the field's TL;DR and flags a field written without one.
1347
+ 6. Write it: \`orbitmap intent update IN-x --design "<doc>"\`. Start the field with "# Summary"
1348
+ a paragraph summing up the whole field then the body. The server reads that section
1349
+ as the field's TL;DR and flags a field written without one.
1282
1350
  This REPLACES any framing
1283
1351
  notes that were in the field — you have already absorbed them into the doc. When the
1284
1352
  spec names the repos the build will touch, declare them on the intent in the same
@@ -1418,15 +1486,13 @@ conversation.
1418
1486
  - To change an OrbitMap document, ALWAYS go through these commands — NEVER edit files
1419
1487
  inside the OrbitMap workspace/cache directories directly.
1420
1488
 
1421
- ## Editing safely — documents have NO revert (known server defects: IS-8wwkb9)
1422
- - Prefer section ops (\`doc-patch --replace-section/--insert-section\`); use line-based
1423
- ops only when no section op can express the change line coordinates are shifted
1424
- server-side assuming ASCENDING order, and blank edges of op content get trimmed.
1425
- - The section parser is not fence-aware: a line-start \`#\` INSIDE a code block is taken
1426
- for a heading and becomes a section boundary. Keep code-block comments inline
1427
- (\`cmd # comment\`), and check target sections for this hazard BEFORE replacing them.
1428
- - Never read a document between a \`doc-update\` upload and its confirm — a cached read
1429
- makes the confirm silently re-save the OLD content while still bumping the version.
1489
+ ## Editing safely — documents have NO revert
1490
+ - Section ops are the only ops (\`doc-patch --replace-section/--insert-section/
1491
+ --delete-section/--append\`); the line-based ones are gone. On a document with an
1492
+ unclosed code fence every patch op is REFUSED repair it with a full \`doc-update\`.
1493
+ \`doc-patch --dry-run\` reports the boundaries each op would touch, without writing.
1494
+ - The section parser is fence-aware: a line-start \`#\` inside a code block is never a
1495
+ section boundary, and a patch whose result would leave an unclosed fence is refused.
1430
1496
  - After ANY write, re-read the changed section (or TOC for structure) and verify the
1431
1497
  result actually matches what you sent. A bumped version number is not proof.`;
1432
1498
  export const SKILLS = [
@@ -1463,8 +1529,12 @@ export const SKILLS = [
1463
1529
  },
1464
1530
  ];
1465
1531
  // ── The thin always-on hook (CLAUDE.md / AGENTS.md) ────────────────────────────
1466
- // Claude variant§8.2, verbatim (without the markers, which buildClaudeBlock adds).
1467
- export const THIN_HOOK_CLAUDE = `## OrbitMap
1532
+ // The hook for every agent that can LOAD skills Claude Code and Codex today, whichever
1533
+ // agent gains a skills directory next. §8.2, verbatim (without the markers, which
1534
+ // buildSkillsBlock adds). It was written for Claude and used to be named after it, but
1535
+ // nothing in the text is Claude-specific: it only says WHEN to load the skills, and any
1536
+ // agent that discovers `<name>/SKILL.md` can act on it.
1537
+ export const THIN_HOOK_SKILLS = `## OrbitMap
1468
1538
 
1469
1539
  Work is tracked in OrbitMap via the \`orbitmap\` CLI. You work in a WORKSPACE, which can span
1470
1540
  several repositories: each repo is an AREA, while missions, intents and documents belong to
@@ -1479,8 +1549,8 @@ intent as you go. Small self-contained work (a typo, an obvious one-file fix) is
1479
1549
  NEVER finish a task, intent or mission without a final \`orbitmap log\` entry and a status update;
1480
1550
  the final entry closes a record that already exists. Finished work defaults to \`in_review\`, not \`done\`.
1481
1551
  OrbitMap tool responses may carry an Instructions section — act on it before continuing.`;
1482
- // Non-Claude variant: same rules, but points at the inlined sections below instead of
1483
- // skills that these agents cannot load.
1552
+ // The variant for agents with NO skill ecosystem: same rules, but it points at the
1553
+ // inlined sections below, because there are no skill files for these agents to load.
1484
1554
  export const THIN_HOOK_GENERIC = `## OrbitMap
1485
1555
 
1486
1556
  Work is tracked in OrbitMap via the \`orbitmap\` CLI. You work in a WORKSPACE, which can span
@@ -1496,34 +1566,46 @@ NEVER finish a task, intent or mission without a final \`orbitmap log\` entry an
1496
1566
  the final entry closes a record that already exists. Finished work defaults to \`in_review\`, not \`done\`.
1497
1567
  OrbitMap tool responses may carry an Instructions section — act on it before continuing.`;
1498
1568
  // ── Assembly helpers ───────────────────────────────────────────────────────────
1499
- /** Build one SKILL.md file (frontmatter + body) for Claude. */
1569
+ /**
1570
+ * Build one SKILL.md file (frontmatter + body). The layout is the same for every
1571
+ * skills-capable agent — Claude Code and Codex read identical frontmatter — so one
1572
+ * renderer serves all of them.
1573
+ */
1500
1574
  export function buildSkillFile(skill) {
1501
1575
  return `${skill.frontmatter}\n\n${skill.body}\n`;
1502
1576
  }
1503
1577
  /**
1504
- * One extra line appended to the Claude hook when the skills were installed at PROJECT
1578
+ * One extra line appended to the thin hook when the skills were installed at PROJECT
1505
1579
  * scope. `CLAUDE.md` is inherited by every sub-directory, but a project-level
1506
1580
  * `.claude/skills/` directory is not: a session started in a sibling or child repository
1507
1581
  * reads this hook and cannot load the skills it names. The hook must therefore say where
1508
1582
  * the skills actually are, and how to make them visible everywhere. At user scope the
1509
1583
  * skills are visible wherever the hook is, so no caveat is needed.
1584
+ *
1585
+ * It names `.claude/skills/` because Claude Code is the only agent that can reach it:
1586
+ * project scope installs skills only for an agent that READS them at project scope, and
1587
+ * Codex — the other skills-capable agent — discovers skills under `$CODEX_HOME` only.
1510
1588
  */
1511
1589
  export const SKILL_SCOPE_CAVEAT_PROJECT = 'These skills are installed at PROJECT scope, in this directory\'s `.claude/skills/`. ' +
1512
1590
  'If you cannot load them (e.g. this session started in a different directory), do not ' +
1513
1591
  'guess the workflow — ask the user to run `orbitmap setup-agent --scope user`, which ' +
1514
1592
  'installs them into `~/.claude/skills/` where every session can see them.';
1515
1593
  /**
1516
- * Build the thin always-on block for a Claude config file (CLAUDE.md).
1594
+ * Build the thin always-on block for ANY skills-capable agent's config file — `CLAUDE.md`
1595
+ * for Claude Code, `AGENTS.md` for Codex. Both get the same block, because both load the
1596
+ * skills the block points at; the file it lands in is the installer's business, not this
1597
+ * function's.
1598
+ *
1517
1599
  * `scope` is where the accompanying skill files were installed — see
1518
1600
  * {@link SKILL_SCOPE_CAVEAT_PROJECT}.
1519
1601
  */
1520
- export function buildClaudeBlock(scope = 'user') {
1521
- const body = scope === 'project' ? `${THIN_HOOK_CLAUDE}\n${SKILL_SCOPE_CAVEAT_PROJECT}` : THIN_HOOK_CLAUDE;
1602
+ export function buildSkillsBlock(scope = 'user') {
1603
+ const body = scope === 'project' ? `${THIN_HOOK_SKILLS}\n${SKILL_SCOPE_CAVEAT_PROJECT}` : THIN_HOOK_SKILLS;
1522
1604
  return `${MARKER_START}\n${body}\n${MARKER_END}`;
1523
1605
  }
1524
1606
  /**
1525
- * Build the markdown fallback block for non-Claude agents: the thin hook plus every
1526
- * skill body inlined (no skill ecosystem to lean on).
1607
+ * Build the markdown fallback block for agents with no skill ecosystem: the thin hook plus
1608
+ * every skill body inlined, because there is nothing to load on demand.
1527
1609
  */
1528
1610
  export function buildGenericBlock() {
1529
1611
  const bodies = SKILLS.map((skill) => skill.body).join('\n\n---\n\n');
@@ -1 +1 @@
1
- {"version":3,"file":"agent-instructions.js","sourceRoot":"","sources":["../src/agent-instructions.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,EAAE;AACF,oFAAoF;AACpF,oFAAoF;AACpF,wEAAwE;AACxE,EA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C,CAAC;IACrE,OAAO,GAAG,YAAY,KAAK,iBAAiB,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;AAC7E,CAAC"}
1
+ {"version":3,"file":"agent-instructions.js","sourceRoot":"","sources":["../src/agent-instructions.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,EAAE;AACF,oFAAoF;AACpF,0FAA0F;AAC1F,sFAAsF;AACtF,EAAE;AACF,2DAA2D;AAC3D,oFAAoF;AACpF,oFAAoF;AACpF,oFAAoF;AACpF,+EAA+E;AAC/E,qEAAqE;AACrE,6EAA6E;AAC7E,oFAAoF;AACpF,4DAA4D;AAC5D,8EAA8E;AAC9E,6EAA6E;AAC7E,kFAAkF;AAClF,8EAA8E;AAC9E,qFAAqF;AACrF,sFAAsF;AACtF,uFAAuF;AACvF,uFAAuF;AACvF,yFAAyF;AACzF,mFAAmF;AACnF,qFAAqF;AACrF,4EAA4E;AAC5E,oFAAoF;AACpF,kFAAkF;AAClF,2EAA2E;AAC3E,0DAA0D;AAC1D,wFAAwF;AACxF,sFAAsF;AACtF,qFAAqF;AACrF,uFAAuF;AACvF,yFAAyF;AACzF,gEAAgE;AAChE,0FAA0F;AAC1F,qFAAqF;AACrF,0FAA0F;AAC1F,uFAAuF;AACvF,yFAAyF;AACzF,kEAAkE;AAClE,EAAE;AACF,gFAAgF;AAChF,qFAAqF;AACrF,qFAAqF;AACrF,qFAAqF;AACrF,2EAA2E;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GACtB,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,CACjD,CAAC,OAAO,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,mBAAmB,KAAK,WAAW,MAAM,CAAC;A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;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAA4B,MAAM;IACjE,MAAM,IAAI,GACR,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,gBAAgB,KAAK,0BAA0B,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAChG,OAAO,GAAG,YAAY,KAAK,IAAI,KAAK,UAAU,EAAE,CAAC;AACnD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACrE,OAAO,GAAG,YAAY,KAAK,iBAAiB,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;AAC7E,CAAC"}
@@ -150,6 +150,19 @@ function statusTag(status, closed) {
150
150
  function intentTldr(intent) {
151
151
  return intent.outcome_tldr ?? intent.design_tldr ?? intent.plan_tldr;
152
152
  }
153
+ /**
154
+ * A TL;DR line under a handle, indented, respecting multiple lines verbatim (design
155
+ * IN-wazu8k Key decisions: "slim and context return the whole list, no truncation, no
156
+ * cap in the CLI either"). `TldrParser::extract()` now returns the full outcomes list
157
+ * (or a `# Summary` paragraph) joined by `\n` rather than a single collapsed line, so
158
+ * every line of a multi-line TL;DR prints, each at the same indent.
159
+ */
160
+ function printIndentedTldr(tldr, indent) {
161
+ if (!tldr)
162
+ return;
163
+ for (const line of tldr.split('\n'))
164
+ console.log(`${indent}${line}`);
165
+ }
153
166
  function printMissions(missions) {
154
167
  if (missions.length === 0)
155
168
  return;
@@ -158,8 +171,7 @@ function printMissions(missions) {
158
171
  // The active mission is the session's likeliest frame — marked so it reads first.
159
172
  const marker = mission.status === 'active' ? '▸' : ' ';
160
173
  console.log(` ${marker} ${mission.number} ${mission.name} ${statusTag(mission.status, CLOSED_MISSION_STATUSES)}`);
161
- if (mission.outcome_tldr)
162
- console.log(` ${mission.outcome_tldr}`);
174
+ printIndentedTldr(mission.outcome_tldr, ' ');
163
175
  }
164
176
  }
165
177
  /**
@@ -176,9 +188,7 @@ function printIntents(intents, missions) {
176
188
  printed.add(intent);
177
189
  const areas = intent.areas.length > 0 ? ` (${intent.areas.join(', ')})` : '';
178
190
  console.log(`${indent}${intent.number} ${intent.name} ${statusTag(intent.status, CLOSED_INTENT_STATUSES)}${areas}`);
179
- const tldr = intentTldr(intent);
180
- if (tldr)
181
- console.log(`${indent} ${tldr}`);
191
+ printIndentedTldr(intentTldr(intent), `${indent} `);
182
192
  };
183
193
  for (const mission of missions) {
184
194
  const group = intents.filter((i) => i.mission === mission.number && !printed.has(i));
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/commands/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GAKxB,MAAM,yBAAyB,CAAC;AAsHjC,yFAAyF;AACzF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AAE9D,2CAA2C;AAC3C,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,KAAK,UAAU,0BAA0B,CACvC,aAAqB;IAErB,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,IAAI,UAAU,CAAC,aAAa,CAAC,CAAC,aAAa,EAAE,CAAC;QACtE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,IAAI,EAAE,IAAI,EAAE,SAAS,CAA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,oBAAoB,CAAC,CAAC;QACpE,KAAK,MAAM,MAAM,IAAI,IAAI;YAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,SAA4B;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAEnC,OAAO,CAAC,GAAG,CAAC,iBAAiB,SAAS,CAAC,MAAM,sCAAsC,CAAC,CAAC;IACrF,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpE,OAAO,CAAC,GAAG,CACT,KAAK,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/E,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,SAA2B;IAClD,IAAI,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI;QAAE,OAAO,GAAG,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,GAAG,CAAC;IACrF,OAAO,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,IAAI,gBAAgB,CAAC;AAC9D,CAAC"}
@@ -10,7 +10,5 @@ export declare function docPatchCommand(idOrSlug: string, options: {
10
10
  append?: boolean;
11
11
  after?: string;
12
12
  content?: string;
13
- replaceLines?: string;
14
- insertAfterLine?: string;
15
- deleteLines?: string;
13
+ dryRun?: boolean;
16
14
  }): Promise<void>;
@@ -5,16 +5,55 @@ import { OrbitMapAPIError } from '../errors.js';
5
5
  const FRIENDLY_ERRORS = {
6
6
  CONTENT_UNAVAILABLE: 'Storage unavailable — patch aborted to prevent data loss. Try again later.',
7
7
  PATCH_RESULT_EMPTY: 'Patch would result in an empty document — aborted.',
8
+ DOCUMENT_FENCES_IMBALANCED: 'Document has an unclosed code fence — patch refused. Repair it with a full doc-update.',
9
+ PATCH_RESULT_MALFORMED: 'The patch would leave an unclosed code fence — refused.',
8
10
  };
9
- const DEPRECATED_FLAGS = ['replaceLines', 'insertAfterLine', 'deleteLines'];
10
- export async function docPatchCommand(idOrSlug, options) {
11
- // Check for deprecated line-based flags
12
- for (const flag of DEPRECATED_FLAGS) {
13
- if (options[flag] !== undefined) {
14
- const kebab = flag.replace(/([A-Z])/g, '-$1').toLowerCase();
15
- console.error(`Warning: --${kebab} is deprecated. Use section-based operations instead (--replace-section, --insert-section, --delete-section).`);
11
+ /** `240–297`, or `—` when the operation matched nothing and the server sent null bounds. */
12
+ function formatRange(start, end) {
13
+ if (start === null || end === null) {
14
+ return '—';
15
+ }
16
+ return `${start}–${end}`;
17
+ }
18
+ /** Signed so a reader can tell growth from shrinkage at a glance: `+18`, `-4`, `0`. */
19
+ function formatDelta(delta) {
20
+ return delta > 0 ? `+${delta}` : String(delta);
21
+ }
22
+ /**
23
+ * Render a dry run: one line per operation, then the warnings the real patch would emit,
24
+ * then the fact that nothing was written.
25
+ *
26
+ * The "nothing was written" line comes LAST on purpose — it is the sentence that must
27
+ * survive a truncated read of the output, and an unmatched operation must be impossible
28
+ * to mistake for a matched one, hence the explicit `NOT MATCHED` marker.
29
+ */
30
+ function printDryRun(idOrSlug, d) {
31
+ let header = `Dry run for document "${idOrSlug}" (version ${d.version}, unchanged).`;
32
+ if (d.lines_before !== undefined && d.lines_after !== undefined) {
33
+ header += ` ${d.lines_before} → ${d.lines_after} lines if applied.`;
34
+ }
35
+ printSuccess(header, false);
36
+ const operations = d.operations ?? [];
37
+ if (operations.length === 0) {
38
+ console.log(' No operations.');
39
+ }
40
+ for (const op of operations) {
41
+ const heading = op.heading === null ? '' : ` "${op.heading}"`;
42
+ if (op.matched) {
43
+ console.log(` [${op.index}] ${op.op}${heading} lines ${formatRange(op.line_start, op.line_end)} (${formatDelta(op.lines_delta)} lines)`);
44
+ }
45
+ else {
46
+ console.log(` [${op.index}] ${op.op}${heading} NOT MATCHED — heading not found`);
16
47
  }
17
48
  }
49
+ if (d.warnings && d.warnings.length > 0) {
50
+ for (const warning of d.warnings) {
51
+ console.log(` Warning: ${warning}`);
52
+ }
53
+ }
54
+ console.log('Nothing was written — re-run without --dry-run to apply.');
55
+ }
56
+ export async function docPatchCommand(idOrSlug, options) {
18
57
  let operations;
19
58
  if (options.operations) {
20
59
  // Raw JSON operations mode
@@ -71,12 +110,19 @@ export async function docPatchCommand(idOrSlug, options) {
71
110
  try {
72
111
  await confirmWriteTarget('patch document', options, 'existing');
73
112
  const client = await createAdapter(options.area);
74
- const response = (await client.patchDocument(idOrSlug, operations, baseVersion, options.changelog));
113
+ const response = (await client.patchDocument(idOrSlug, operations, baseVersion, options.changelog, options.dryRun));
75
114
  if (options.json) {
76
115
  console.log(formatOutput(response, true));
77
116
  return;
78
117
  }
79
118
  const d = response.data;
119
+ // Trust the server's own marker rather than the requested flag: if the server ignored
120
+ // `dry_run` (older API), `updated` is true and the write already happened — reporting
121
+ // "nothing was written" then would be a lie.
122
+ if (d.dry_run) {
123
+ printDryRun(idOrSlug, d);
124
+ return;
125
+ }
80
126
  let msg = `Document "${idOrSlug}" patched to version ${d.version}.`;
81
127
  if (d.lines_before !== undefined && d.lines_after !== undefined) {
82
128
  msg += ` ${d.lines_before} → ${d.lines_after} lines.`;
@@ -1 +1 @@
1
- {"version":3,"file":"doc-patch.js","sourceRoot":"","sources":["../../src/commands/doc-patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAA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