ctxr-cli 0.18.0 → 0.20.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 (73) hide show
  1. package/README.md +13 -4
  2. package/dist/commands/init.d.ts.map +1 -1
  3. package/dist/commands/init.js +2 -1
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/commands/update.d.ts +41 -2
  6. package/dist/commands/update.d.ts.map +1 -1
  7. package/dist/commands/update.js +125 -3
  8. package/dist/commands/update.js.map +1 -1
  9. package/dist/commands/version.d.ts +6 -0
  10. package/dist/commands/version.d.ts.map +1 -1
  11. package/dist/commands/version.js +4 -1
  12. package/dist/commands/version.js.map +1 -1
  13. package/dist/config/defaults.d.ts +10 -7
  14. package/dist/config/defaults.d.ts.map +1 -1
  15. package/dist/config/defaults.js +10 -7
  16. package/dist/config/defaults.js.map +1 -1
  17. package/dist/config/load.d.ts +22 -1
  18. package/dist/config/load.d.ts.map +1 -1
  19. package/dist/config/load.js +54 -17
  20. package/dist/config/load.js.map +1 -1
  21. package/dist/config/migrations.d.ts +61 -0
  22. package/dist/config/migrations.d.ts.map +1 -0
  23. package/dist/config/migrations.js +55 -0
  24. package/dist/config/migrations.js.map +1 -0
  25. package/dist/config/schema.d.ts +11 -8
  26. package/dist/config/schema.d.ts.map +1 -1
  27. package/dist/config/schema.js +14 -11
  28. package/dist/config/schema.js.map +1 -1
  29. package/dist/core/checks/write-lifecycle-checks.d.ts +8 -0
  30. package/dist/core/checks/write-lifecycle-checks.d.ts.map +1 -1
  31. package/dist/core/checks/write-lifecycle-checks.js +22 -3
  32. package/dist/core/checks/write-lifecycle-checks.js.map +1 -1
  33. package/dist/core/conventions.d.ts +3 -4
  34. package/dist/core/conventions.d.ts.map +1 -1
  35. package/dist/core/conventions.js +3 -4
  36. package/dist/core/conventions.js.map +1 -1
  37. package/dist/core/env.d.ts +7 -0
  38. package/dist/core/env.d.ts.map +1 -1
  39. package/dist/core/env.js.map +1 -1
  40. package/dist/core/errors.d.ts +16 -1
  41. package/dist/core/errors.d.ts.map +1 -1
  42. package/dist/core/errors.js +30 -4
  43. package/dist/core/errors.js.map +1 -1
  44. package/dist/core/install-kind.d.ts +13 -0
  45. package/dist/core/install-kind.d.ts.map +1 -1
  46. package/dist/core/install-kind.js +29 -0
  47. package/dist/core/install-kind.js.map +1 -1
  48. package/dist/core/reconcile.js +3 -3
  49. package/dist/core/reconcile.js.map +1 -1
  50. package/dist/core/skills.d.ts +30 -4
  51. package/dist/core/skills.d.ts.map +1 -1
  52. package/dist/core/skills.js +141 -22
  53. package/dist/core/skills.js.map +1 -1
  54. package/dist/core/store.d.ts +15 -0
  55. package/dist/core/store.d.ts.map +1 -1
  56. package/dist/core/store.js +18 -2
  57. package/dist/core/store.js.map +1 -1
  58. package/dist/run.d.ts.map +1 -1
  59. package/dist/run.js +8 -4
  60. package/dist/run.js.map +1 -1
  61. package/dist/version.d.ts +1 -1
  62. package/dist/version.js +1 -1
  63. package/package.json +1 -1
  64. package/templates/agents/canonical.md +2 -2
  65. package/templates/skills/ctxr-second-opinion/critic-contract.md +40 -0
  66. package/templates/skills/ctxr-second-opinion/lenses.md +15 -0
  67. package/templates/skills/ctxr-second-opinion/personas/architect.md +17 -0
  68. package/templates/skills/ctxr-second-opinion/personas/pragmatist.md +17 -0
  69. package/templates/skills/ctxr-second-opinion/personas/skeptic.md +17 -0
  70. package/templates/skills/ctxr-second-opinion/run.mjs +504 -0
  71. package/templates/skills/ctxr-second-opinion.md +174 -0
  72. package/templates/skills/ctxr-session-capture.md +3 -2
  73. package/templates/skills/ctxr-upgrade.md +8 -2
@@ -42,8 +42,9 @@ self-contradicting document nobody reads. Propose one only when all four hold:
42
42
  - It is a rule for future work, not a fact about past work.
43
43
  - It applied more than once, or the user stated it as a correction.
44
44
  - It is store-wide. A rule about one folder belongs in that folder's `README.md`, not here.
45
- - It is not already in the shipped baseline — read that file first. Restating contexture's own
46
- behavior as a house rule is the most likely way to get this wrong.
45
+ - It is not already in the shipped baseline, the first block of `AGENTS.md`'s "Store conventions"
46
+ section — read it first. Restating contexture's own behavior as a house rule is the most likely way
47
+ to get this wrong.
47
48
 
48
49
  Propose REMOVALS on the same bar: a convention the session contradicted, or that no longer matches how
49
50
  work actually goes, is worse than none — it teaches the next agent something false. The inlined section
@@ -7,13 +7,19 @@ step 3 gates on the operator rather than proceeding from the fact that a newer r
7
7
 
8
8
  1. Read the live answer — never act on a notice from earlier in the conversation, which may be
9
9
  minutes stale: `ctxr version --check --json`. The envelope's `data` carries `version` (installed),
10
- `latest` (published), `release_status`, `install_path`, and `install_kind`. Exit code `0` means
10
+ `latest` (published), `release_status`, `install_path`, `install_kind`, and — for a global
11
+ install — `install_writable`. Exit code `0` means
11
12
  already current: say so and stop. A non-zero exit with `release_status` of `undetermined` means the
12
13
  published version could not be resolved — report the reason the finding names, and stop; do not
13
14
  guess whether an upgrade is due.
14
15
 
15
16
  2. Check `install_kind` before proposing anything.
16
- - `global` — proceed to step 3.
17
+ - `global` with `install_writable: true` — proceed to step 3.
18
+ - `global` with `install_writable: false` — this executable is managed by whatever installed it,
19
+ and you cannot write where a package-manager upgrade would go: the install would be refused.
20
+ Report `install_path` and stop. If it shipped in a container image, the upgrade is a newer
21
+ image — merge the image's version bump, then pull it and recreate the container — and not
22
+ something to run from here.
17
23
  - `linked` — this executable resolves to a working copy at `install_path`, not a package
18
24
  installation. A global install would upgrade a different `ctxr` than the one running. Report the
19
25
  path and stop.