ctxr-cli 0.22.0 → 0.24.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.
Files changed (110) hide show
  1. package/README.md +7 -2
  2. package/dist/commands/graph-diff.d.ts +33 -0
  3. package/dist/commands/graph-diff.d.ts.map +1 -0
  4. package/dist/commands/graph-diff.js +52 -0
  5. package/dist/commands/graph-diff.js.map +1 -0
  6. package/dist/commands/publish-check.d.ts +6 -0
  7. package/dist/commands/publish-check.d.ts.map +1 -1
  8. package/dist/commands/publish-check.js +78 -3
  9. package/dist/commands/publish-check.js.map +1 -1
  10. package/dist/commands/publish-gather.d.ts.map +1 -1
  11. package/dist/commands/publish-gather.js +4 -1
  12. package/dist/commands/publish-gather.js.map +1 -1
  13. package/dist/commands/publish-new.d.ts +5 -0
  14. package/dist/commands/publish-new.d.ts.map +1 -1
  15. package/dist/commands/publish-new.js +30 -10
  16. package/dist/commands/publish-new.js.map +1 -1
  17. package/dist/commands/publish-stamp.d.ts +32 -0
  18. package/dist/commands/publish-stamp.d.ts.map +1 -0
  19. package/dist/commands/publish-stamp.js +78 -0
  20. package/dist/commands/publish-stamp.js.map +1 -0
  21. package/dist/commands/publish-urls.d.ts +6 -0
  22. package/dist/commands/publish-urls.d.ts.map +1 -1
  23. package/dist/commands/publish-urls.js +10 -1
  24. package/dist/commands/publish-urls.js.map +1 -1
  25. package/dist/commands/serve.d.ts.map +1 -1
  26. package/dist/commands/serve.js +83 -5
  27. package/dist/commands/serve.js.map +1 -1
  28. package/dist/core/browse/diagram-assets.d.ts +15 -0
  29. package/dist/core/browse/diagram-assets.d.ts.map +1 -0
  30. package/dist/core/browse/diagram-assets.js +35 -0
  31. package/dist/core/browse/diagram-assets.js.map +1 -0
  32. package/dist/core/browse/page-url.d.ts +22 -0
  33. package/dist/core/browse/page-url.d.ts.map +1 -1
  34. package/dist/core/browse/page-url.js +31 -0
  35. package/dist/core/browse/page-url.js.map +1 -1
  36. package/dist/core/browse/render.d.ts +10 -1
  37. package/dist/core/browse/render.d.ts.map +1 -1
  38. package/dist/core/browse/render.js +23 -1
  39. package/dist/core/browse/render.js.map +1 -1
  40. package/dist/core/browse/templates.d.ts +4 -1
  41. package/dist/core/browse/templates.d.ts.map +1 -1
  42. package/dist/core/browse/templates.js +18 -2
  43. package/dist/core/browse/templates.js.map +1 -1
  44. package/dist/core/checks/organize-checks.d.ts +17 -0
  45. package/dist/core/checks/organize-checks.d.ts.map +1 -1
  46. package/dist/core/checks/organize-checks.js +116 -0
  47. package/dist/core/checks/organize-checks.js.map +1 -1
  48. package/dist/core/errors.d.ts +43 -0
  49. package/dist/core/errors.d.ts.map +1 -1
  50. package/dist/core/errors.js +105 -0
  51. package/dist/core/errors.js.map +1 -1
  52. package/dist/core/git/exec.d.ts +10 -0
  53. package/dist/core/git/exec.d.ts.map +1 -1
  54. package/dist/core/git/exec.js +52 -2
  55. package/dist/core/git/exec.js.map +1 -1
  56. package/dist/core/graph/diff-block.d.ts +6 -0
  57. package/dist/core/graph/diff-block.d.ts.map +1 -0
  58. package/dist/core/graph/diff-block.js +54 -0
  59. package/dist/core/graph/diff-block.js.map +1 -0
  60. package/dist/core/graph/diff-document.d.ts +37 -0
  61. package/dist/core/graph/diff-document.d.ts.map +1 -0
  62. package/dist/core/graph/diff-document.js +119 -0
  63. package/dist/core/graph/diff-document.js.map +1 -0
  64. package/dist/core/graph/diff.d.ts +123 -0
  65. package/dist/core/graph/diff.d.ts.map +1 -0
  66. package/dist/core/graph/diff.js +253 -0
  67. package/dist/core/graph/diff.js.map +1 -0
  68. package/dist/core/graph/tree.d.ts +24 -0
  69. package/dist/core/graph/tree.d.ts.map +1 -0
  70. package/dist/core/graph/tree.js +45 -0
  71. package/dist/core/graph/tree.js.map +1 -0
  72. package/dist/core/notes/list.d.ts +10 -0
  73. package/dist/core/notes/list.d.ts.map +1 -1
  74. package/dist/core/notes/list.js +35 -12
  75. package/dist/core/notes/list.js.map +1 -1
  76. package/dist/core/publish/filing.d.ts +12 -12
  77. package/dist/core/publish/filing.d.ts.map +1 -1
  78. package/dist/core/publish/filing.js +20 -18
  79. package/dist/core/publish/filing.js.map +1 -1
  80. package/dist/core/publish/lifespan.d.ts +37 -0
  81. package/dist/core/publish/lifespan.d.ts.map +1 -0
  82. package/dist/core/publish/lifespan.js +59 -0
  83. package/dist/core/publish/lifespan.js.map +1 -0
  84. package/dist/core/publish/represents.d.ts +72 -0
  85. package/dist/core/publish/represents.d.ts.map +1 -0
  86. package/dist/core/publish/represents.js +83 -0
  87. package/dist/core/publish/represents.js.map +1 -0
  88. package/dist/core/skills.js +1 -1
  89. package/dist/core/skills.js.map +1 -1
  90. package/dist/run.d.ts.map +1 -1
  91. package/dist/run.js +34 -4
  92. package/dist/run.js.map +1 -1
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +2 -1
  96. package/templates/conventions/baseline-conventions.md +6 -0
  97. package/templates/graph/knowledge-changes/archived.md +1 -0
  98. package/templates/graph/knowledge-changes/bare-route.md +2 -0
  99. package/templates/graph/knowledge-changes/block.md +10 -0
  100. package/templates/graph/knowledge-changes/counts.md +1 -0
  101. package/templates/graph/knowledge-changes/dangling.md +1 -0
  102. package/templates/graph/knowledge-changes/empty.md +1 -0
  103. package/templates/graph/knowledge-changes/review.md +4 -0
  104. package/templates/serve/diagrams.mjs +136 -0
  105. package/templates/serve/shell.html +1 -1
  106. package/templates/serve/style.css +27 -0
  107. package/templates/skills/ctxr-organize-audit.md +19 -0
  108. package/templates/skills/ctxr-publish.md +100 -45
  109. package/templates/skills/ctxr-research.md +106 -53
  110. package/templates/skills/ctxr-submit.md +24 -15
@@ -56,21 +56,30 @@ Every pull request takes one of three routes. Say which, and why, in its body:
56
56
  `git branch -m "<name>"` before pushing — never
57
57
  let a generated name reach the forge. A name given at `ctxr session start` does not settle this: it
58
58
  named a worktree when the work began, and what ships is decided here.
59
- 8. Before opening the pull request, run `ctxr publish urls --since origin/__DEFAULT_BRANCH__ --json`. When it
60
- lists any page, the body gets a **Pages** section: a table with one row per page giving its status, its
61
- preview address, and its published address — copied from the report, never rebuilt by hand. Mark a moved
62
- page's old address as one that stops working, and a removed page's the same. Under the table state the
63
- condition once: a preview resolves only while this pull request is open and the server can see this
64
- session's worktree, and the published address resolves once the served checkout takes the landed commit.
65
- When the report carries no preview, leave that column out; when it says no base URL is declared, say the
66
- addresses are bare routes. When it lists no page, add no section.
67
- Then run: `git push -u origin "<branch>"`, then `gh pr create --base __DEFAULT_BRANCH__ --title "<title>" --body
68
- "<why / what changed / route / verification / follow-ups>"`. `gh` authenticates from its own credential
69
- file: never export or interpolate a token, and never rewrite the origin's URL — it is a credential. The body answers those five questions; write the
70
- why so a reviewer need not re-derive it. Do not stop to confirm first — the request to
71
- submit is the consent for both, and `ctxr doctor` in step 5 is the gate on this path. If `gh` has no
72
- reachable GitHub remote for this repository, `git push` still succeeds on its own — report the pushed
73
- branch and give the operator the manual pull-request instructions instead of retrying `gh`.
59
+ 8. Before you open the pull request, run `ctxr publish urls --since origin/__DEFAULT_BRANCH__ --json`.
60
+ When it lists a page, add a **Pages** section to the body. The section is a table with one row per page.
61
+ Each row gives the page's status, its lifespan (permanent or disposable), its preview address, and its
62
+ published address. Copy every value from the report, never rebuilt by hand. Why: the report reads the
63
+ change set, and a guess from the path can be wrong. Mark the old address of a moved page as one that
64
+ stops working. Mark the address of a removed page the same way. Under the table, state the condition
65
+ one time: a preview resolves only while this pull request is open and the server can see this
66
+ session's worktree, and the published address resolves when the served checkout has the landed commit.
67
+ When the report has no preview, leave out that column. When it says that no base URL is declared, say
68
+ that the addresses are bare routes. When it lists no page, add no section.
69
+ Then run `ctxr graph diff --since origin/__DEFAULT_BRANCH__ --format markdown`. Paste its output into the
70
+ body verbatim, as the **Knowledge changes** section. Do not add, remove, or change a word of it. Why: you
71
+ wrote the change, and the reviewer checks your account against this record, which the command wrote.
72
+ Always paste the block, also when it says that the range changes no note. Why: a missing section looks the
73
+ same as a skipped step. The block is the record of the change. The review address in the block is a
74
+ convenience only. Why: it resolves only while this session's worktree exists and the server can reach it.
75
+ Then run `git push -u origin "<branch>"`. Then run `gh pr create --base __DEFAULT_BRANCH__ --title "<title>"
76
+ --body "<why / what changed / route / verification / follow-ups>"`. `gh` reads its own credential file, so
77
+ never export or interpolate a token, and never rewrite the origin's URL. Why: that URL can hold a
78
+ credential. The body answers those five questions and carries the sections above. Write the why so that a
79
+ reviewer does not have to find it again. Do not stop to confirm first. Why: the request to submit is the
80
+ consent for both, and `ctxr doctor` in step 5 is the gate on this path. If `gh` has no reachable GitHub
81
+ remote for this repository, `git push` still succeeds alone. Then report the pushed branch, and give the
82
+ operator the manual pull-request instructions. Do not retry `gh`.
74
83
  9. Verify before any retry: a transport error can arrive AFTER the push or the pull-request open already
75
84
  succeeded. Before retrying anything, `git ls-remote origin <branch>` and `gh pr list --head <branch>` —
76
85
  never replay a push or a pull-request open blindly.