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.
- package/README.md +13 -4
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +2 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts +41 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +125 -3
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/version.d.ts +6 -0
- package/dist/commands/version.d.ts.map +1 -1
- package/dist/commands/version.js +4 -1
- package/dist/commands/version.js.map +1 -1
- package/dist/config/defaults.d.ts +10 -7
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +10 -7
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/load.d.ts +22 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +54 -17
- package/dist/config/load.js.map +1 -1
- package/dist/config/migrations.d.ts +61 -0
- package/dist/config/migrations.d.ts.map +1 -0
- package/dist/config/migrations.js +55 -0
- package/dist/config/migrations.js.map +1 -0
- package/dist/config/schema.d.ts +11 -8
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +14 -11
- package/dist/config/schema.js.map +1 -1
- package/dist/core/checks/write-lifecycle-checks.d.ts +8 -0
- package/dist/core/checks/write-lifecycle-checks.d.ts.map +1 -1
- package/dist/core/checks/write-lifecycle-checks.js +22 -3
- package/dist/core/checks/write-lifecycle-checks.js.map +1 -1
- package/dist/core/conventions.d.ts +3 -4
- package/dist/core/conventions.d.ts.map +1 -1
- package/dist/core/conventions.js +3 -4
- package/dist/core/conventions.js.map +1 -1
- package/dist/core/env.d.ts +7 -0
- package/dist/core/env.d.ts.map +1 -1
- package/dist/core/env.js.map +1 -1
- package/dist/core/errors.d.ts +16 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +30 -4
- package/dist/core/errors.js.map +1 -1
- package/dist/core/install-kind.d.ts +13 -0
- package/dist/core/install-kind.d.ts.map +1 -1
- package/dist/core/install-kind.js +29 -0
- package/dist/core/install-kind.js.map +1 -1
- package/dist/core/reconcile.js +3 -3
- package/dist/core/reconcile.js.map +1 -1
- package/dist/core/skills.d.ts +30 -4
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +141 -22
- package/dist/core/skills.js.map +1 -1
- package/dist/core/store.d.ts +15 -0
- package/dist/core/store.d.ts.map +1 -1
- package/dist/core/store.js +18 -2
- package/dist/core/store.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +8 -4
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/templates/agents/canonical.md +2 -2
- package/templates/skills/ctxr-second-opinion/critic-contract.md +40 -0
- package/templates/skills/ctxr-second-opinion/lenses.md +15 -0
- package/templates/skills/ctxr-second-opinion/personas/architect.md +17 -0
- package/templates/skills/ctxr-second-opinion/personas/pragmatist.md +17 -0
- package/templates/skills/ctxr-second-opinion/personas/skeptic.md +17 -0
- package/templates/skills/ctxr-second-opinion/run.mjs +504 -0
- package/templates/skills/ctxr-second-opinion.md +174 -0
- package/templates/skills/ctxr-session-capture.md +3 -2
- 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
|
|
46
|
-
behavior as a house rule is the most likely way
|
|
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`,
|
|
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.
|