ctxr-cli 0.9.0 → 0.11.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 +28 -11
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +10 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/publish-check.d.ts.map +1 -1
- package/dist/commands/publish-check.js +8 -0
- package/dist/commands/publish-check.js.map +1 -1
- package/dist/commands/publish-new.d.ts.map +1 -1
- package/dist/commands/publish-new.js +15 -0
- package/dist/commands/publish-new.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +33 -11
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +9 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/source-check.d.ts.map +1 -1
- package/dist/commands/source-check.js +28 -3
- package/dist/commands/source-check.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +7 -1
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/verify.d.ts +11 -2
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +86 -5
- package/dist/commands/verify.js.map +1 -1
- package/dist/commands/version.d.ts +31 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +87 -0
- package/dist/commands/version.js.map +1 -0
- package/dist/config/defaults.d.ts +71 -5
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +70 -5
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/load.d.ts +2 -2
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +13 -3
- package/dist/config/load.js.map +1 -1
- package/dist/config/render.d.ts +0 -6
- package/dist/config/render.d.ts.map +1 -1
- package/dist/config/render.js +4 -27
- package/dist/config/render.js.map +1 -1
- package/dist/config/schema.d.ts +21 -67
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +73 -112
- package/dist/config/schema.js.map +1 -1
- package/dist/core/agents-doc.d.ts.map +1 -1
- package/dist/core/agents-doc.js +2 -1
- package/dist/core/agents-doc.js.map +1 -1
- package/dist/core/browse/nav.d.ts.map +1 -1
- package/dist/core/browse/nav.js +4 -1
- package/dist/core/browse/nav.js.map +1 -1
- package/dist/core/browse/preferences.d.ts +26 -0
- package/dist/core/browse/preferences.d.ts.map +1 -0
- package/dist/core/browse/preferences.js +74 -0
- package/dist/core/browse/preferences.js.map +1 -0
- package/dist/core/browse/routes.d.ts +10 -8
- package/dist/core/browse/routes.d.ts.map +1 -1
- package/dist/core/browse/routes.js +113 -24
- package/dist/core/browse/routes.js.map +1 -1
- package/dist/core/browse/templates.d.ts +14 -4
- package/dist/core/browse/templates.d.ts.map +1 -1
- package/dist/core/browse/templates.js +22 -4
- package/dist/core/browse/templates.js.map +1 -1
- package/dist/core/checks/harness-portability-checks.d.ts +21 -0
- package/dist/core/checks/harness-portability-checks.d.ts.map +1 -1
- package/dist/core/checks/harness-portability-checks.js +46 -1
- package/dist/core/checks/harness-portability-checks.js.map +1 -1
- package/dist/core/checks/integrity-checks.d.ts +0 -2
- package/dist/core/checks/integrity-checks.d.ts.map +1 -1
- package/dist/core/checks/integrity-checks.js +38 -27
- package/dist/core/checks/integrity-checks.js.map +1 -1
- package/dist/core/checks/manifest.d.ts.map +1 -1
- package/dist/core/checks/manifest.js +2 -0
- package/dist/core/checks/manifest.js.map +1 -1
- package/dist/core/checks/store-checks.d.ts +12 -0
- package/dist/core/checks/store-checks.d.ts.map +1 -0
- package/dist/core/checks/store-checks.js +37 -0
- package/dist/core/checks/store-checks.js.map +1 -0
- package/dist/core/command.d.ts +6 -0
- package/dist/core/command.d.ts.map +1 -1
- package/dist/core/convention-doc.d.ts.map +1 -1
- package/dist/core/convention-doc.js +15 -9
- package/dist/core/convention-doc.js.map +1 -1
- package/dist/core/env.d.ts +5 -0
- package/dist/core/env.d.ts.map +1 -1
- package/dist/core/env.js +3 -0
- package/dist/core/env.js.map +1 -1
- package/dist/core/environment/probe.d.ts +12 -0
- package/dist/core/environment/probe.d.ts.map +1 -0
- package/dist/core/environment/probe.js +36 -0
- package/dist/core/environment/probe.js.map +1 -0
- package/dist/core/errors.d.ts +16 -3
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +41 -15
- package/dist/core/errors.js.map +1 -1
- package/dist/core/git/worktree.d.ts +22 -0
- package/dist/core/git/worktree.d.ts.map +1 -1
- package/dist/core/git/worktree.js +34 -0
- package/dist/core/git/worktree.js.map +1 -1
- package/dist/core/graph/model.d.ts +7 -6
- package/dist/core/graph/model.d.ts.map +1 -1
- package/dist/core/graph/model.js +11 -7
- package/dist/core/graph/model.js.map +1 -1
- package/dist/core/harness/isolated-run.d.ts +52 -0
- package/dist/core/harness/isolated-run.d.ts.map +1 -0
- package/dist/core/harness/isolated-run.js +100 -0
- package/dist/core/harness/isolated-run.js.map +1 -0
- package/dist/core/install-kind.d.ts +25 -0
- package/dist/core/install-kind.d.ts.map +1 -0
- package/dist/core/install-kind.js +56 -0
- package/dist/core/install-kind.js.map +1 -0
- package/dist/core/note-templates.d.ts +61 -0
- package/dist/core/note-templates.d.ts.map +1 -0
- package/dist/core/note-templates.js +188 -0
- package/dist/core/note-templates.js.map +1 -0
- package/dist/core/notes/list.d.ts.map +1 -1
- package/dist/core/notes/list.js +5 -0
- package/dist/core/notes/list.js.map +1 -1
- package/dist/core/publish/script-check.d.ts +5 -2
- package/dist/core/publish/script-check.d.ts.map +1 -1
- package/dist/core/publish/script-check.js +5 -2
- package/dist/core/publish/script-check.js.map +1 -1
- package/dist/core/reconcile.d.ts.map +1 -1
- package/dist/core/reconcile.js +8 -0
- package/dist/core/reconcile.js.map +1 -1
- package/dist/core/registry.d.ts +40 -0
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/core/registry.js +55 -0
- package/dist/core/registry.js.map +1 -0
- package/dist/core/root.d.ts +11 -5
- package/dist/core/root.d.ts.map +1 -1
- package/dist/core/root.js +20 -8
- package/dist/core/root.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +32 -15
- package/dist/core/skills.js.map +1 -1
- package/dist/core/version-check.d.ts +63 -0
- package/dist/core/version-check.d.ts.map +1 -0
- package/dist/core/version-check.js +181 -0
- package/dist/core/version-check.js.map +1 -0
- package/dist/core/write-lifecycle/path-gate.d.ts.map +1 -1
- package/dist/core/write-lifecycle/path-gate.js +4 -1
- package/dist/core/write-lifecycle/path-gate.js.map +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +38 -16
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +8 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +8 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/templates/agents/canonical.md +5 -1
- package/templates/notes/Company.md +25 -0
- package/templates/notes/Concept.md +29 -0
- package/templates/notes/Deal.md +25 -0
- package/templates/notes/Note.md +6 -0
- package/templates/notes/People.md +19 -0
- package/templates/notes/Project.md +19 -0
- package/templates/serve/shell.html +16 -2
- package/templates/serve/style.css +145 -3
- package/templates/skills/ctxr-ingest-orchestration.md +4 -1
- package/templates/skills/ctxr-placement.md +21 -2
- package/templates/skills/ctxr-session-capture.md +5 -1
- package/templates/skills/ctxr-session-lifecycle.md +20 -0
- package/templates/skills/ctxr-upgrade.md +44 -0
- package/dist/commands/migrate.d.ts +0 -30
- package/dist/commands/migrate.d.ts.map +0 -1
- package/dist/commands/migrate.js +0 -56
- package/dist/commands/migrate.js.map +0 -1
- package/dist/core/migrations/add-explanation-craft-skill.d.ts +0 -26
- package/dist/core/migrations/add-explanation-craft-skill.d.ts.map +0 -1
- package/dist/core/migrations/add-explanation-craft-skill.js +0 -94
- package/dist/core/migrations/add-explanation-craft-skill.js.map +0 -1
- package/dist/core/migrations/archive-destination-from-taxonomy.d.ts +0 -35
- package/dist/core/migrations/archive-destination-from-taxonomy.d.ts.map +0 -1
- package/dist/core/migrations/archive-destination-from-taxonomy.js +0 -109
- package/dist/core/migrations/archive-destination-from-taxonomy.js.map +0 -1
- package/dist/core/migrations/config-defaults-as-the-convention.d.ts +0 -21
- package/dist/core/migrations/config-defaults-as-the-convention.d.ts.map +0 -1
- package/dist/core/migrations/config-defaults-as-the-convention.js +0 -54
- package/dist/core/migrations/config-defaults-as-the-convention.js.map +0 -1
- package/dist/core/migrations/drop-access-axes.d.ts +0 -24
- package/dist/core/migrations/drop-access-axes.d.ts.map +0 -1
- package/dist/core/migrations/drop-access-axes.js +0 -54
- package/dist/core/migrations/drop-access-axes.js.map +0 -1
- package/dist/core/migrations/drop-forge-and-workspaces-external.d.ts +0 -19
- package/dist/core/migrations/drop-forge-and-workspaces-external.d.ts.map +0 -1
- package/dist/core/migrations/drop-forge-and-workspaces-external.js +0 -49
- package/dist/core/migrations/drop-forge-and-workspaces-external.js.map +0 -1
- package/dist/core/migrations/registry.d.ts +0 -16
- package/dist/core/migrations/registry.d.ts.map +0 -1
- package/dist/core/migrations/registry.js +0 -34
- package/dist/core/migrations/registry.js.map +0 -1
- package/dist/core/migrations/rename-conventions-path.d.ts +0 -26
- package/dist/core/migrations/rename-conventions-path.d.ts.map +0 -1
- package/dist/core/migrations/rename-conventions-path.js +0 -86
- package/dist/core/migrations/rename-conventions-path.js.map +0 -1
- package/dist/core/migrations/rename-procedures-path.d.ts +0 -17
- package/dist/core/migrations/rename-procedures-path.d.ts.map +0 -1
- package/dist/core/migrations/rename-procedures-path.js +0 -45
- package/dist/core/migrations/rename-procedures-path.js.map +0 -1
- package/dist/core/migrations/retain-captures-as-provenance.d.ts +0 -22
- package/dist/core/migrations/retain-captures-as-provenance.d.ts.map +0 -1
- package/dist/core/migrations/retain-captures-as-provenance.js +0 -133
- package/dist/core/migrations/retain-captures-as-provenance.js.map +0 -1
- package/dist/core/migrations/types.d.ts +0 -27
- package/dist/core/migrations/types.d.ts.map +0 -1
- package/dist/core/migrations/types.js +0 -2
- package/dist/core/migrations/types.js.map +0 -1
package/dist/config/defaults.js
CHANGED
|
@@ -73,8 +73,45 @@ export const DEFAULT_EXCLUDE_PATHS = ['.contexture/', DEFAULT_CAPTURE_ROOT];
|
|
|
73
73
|
export const DEFAULT_DEMOTE_PATHS = [];
|
|
74
74
|
/** compose-the-retrieval-pass spec: how many notes `ctxr context gather` returns before it reports truncation. */
|
|
75
75
|
export const DEFAULT_GATHER_MAX_NOTES = 50;
|
|
76
|
-
/**
|
|
77
|
-
|
|
76
|
+
/**
|
|
77
|
+
* context-retrieval spec ("Relation sections yield typed edges"): the fixed
|
|
78
|
+
* relation vocabulary, and the one place either a name or its definition is
|
|
79
|
+
* written. Not configurable — a store that wants a different edge type writes
|
|
80
|
+
* an ordinary heading and gets an untyped link, the same as any other heading.
|
|
81
|
+
*
|
|
82
|
+
* The definition is not decoration. The only question the vocabulary actually
|
|
83
|
+
* raises is which of two adjacent relations a link belongs under, so each one
|
|
84
|
+
* says when to use it and how it differs from its nearest neighbour. Every
|
|
85
|
+
* artifact that names a relation — the graph, the entry document, the
|
|
86
|
+
* connection-proposal skill, the note template — reads this pair, so a
|
|
87
|
+
* definition cannot drift from the name it explains.
|
|
88
|
+
*/
|
|
89
|
+
export const RELATION_VOCABULARY = [
|
|
90
|
+
{
|
|
91
|
+
name: 'Upstream',
|
|
92
|
+
definition: 'The thinking this note is built on: prior ideas, sources, and decisions that had to exist first. If removing the linked note would leave this one unfounded, it is upstream.',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Downstream',
|
|
96
|
+
definition: 'What follows from this note: what it enables, informs, or raises. The inverse of Upstream.',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Similar',
|
|
100
|
+
definition: 'A note this one resembles in structure, pattern, or topic, where neither depends on the other. Use it when the observation is that the two rhyme, not that one caused the other.',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'Opposing',
|
|
104
|
+
definition: 'A note that contradicts this one, or that holds under conditions where this one fails. The tension is the content; record it rather than resolving it by dropping a side.',
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
/** Just the names, for the vocabulary match the graph performs on a heading. */
|
|
108
|
+
export const RELATION_NAMES = RELATION_VOCABULARY.map((r) => r.name);
|
|
109
|
+
/**
|
|
110
|
+
* Stated wherever the vocabulary is explained: an edge is recorded only on the
|
|
111
|
+
* note carrying the link. An agent that assumes the reciprocal is written for
|
|
112
|
+
* it will leave half the graph unwritten, and nothing in the output would say so.
|
|
113
|
+
*/
|
|
114
|
+
export const RELATION_DIRECTEDNESS_NOTE = 'An edge is recorded only on the note carrying the link — naming a note Upstream does not write the reciprocal Downstream edge on it.';
|
|
78
115
|
/** graph-context-document spec: positional clusters two directory segments deep; document sections capped for readability. */
|
|
79
116
|
export const DEFAULT_GRAPH_SETTINGS = {
|
|
80
117
|
cluster_depth: 2,
|
|
@@ -92,6 +129,27 @@ export const DEFAULT_DIFF_SIZE_CEILING_LINES = 2000;
|
|
|
92
129
|
export const DEFAULT_CATALOG_PATH = '.contexture/catalog/';
|
|
93
130
|
/** context-catalog spec: a section exceeding this triggers a failing doctor check, not a silent slowdown. */
|
|
94
131
|
export const DEFAULT_CATALOG_SECTION_MAX_BYTES = 32 * 1024;
|
|
132
|
+
/**
|
|
133
|
+
* context-store spec (a note template is a starting shape, never a note): the
|
|
134
|
+
* note templates a note is started from — authored-but-tool-owned, like the
|
|
135
|
+
* catalog and the published pages, and excluded from retrieval for the same
|
|
136
|
+
* reason. A template is not a note; it is the shape one starts from.
|
|
137
|
+
*/
|
|
138
|
+
export const DEFAULT_TEMPLATES_PATH = '.contexture/templates/';
|
|
139
|
+
/**
|
|
140
|
+
* harness-portability spec (a store declares which note templates it installs):
|
|
141
|
+
* the packaged library, installed by default and refreshed by update. The list
|
|
142
|
+
* is contexture's offer, not its assertion about what a store is about — a
|
|
143
|
+
* store drops what it does not need, and adds its own kinds as files this list
|
|
144
|
+
* never names. An empty list installs none.
|
|
145
|
+
*
|
|
146
|
+
* Appended, never sorted in: the order here is the order init stages and a
|
|
147
|
+
* rendered configuration lists, so growing the library is a pure insertion.
|
|
148
|
+
*
|
|
149
|
+
* `Note` is the base every other one builds on and the file a store copies to
|
|
150
|
+
* cut its own kind; it is deliberately first.
|
|
151
|
+
*/
|
|
152
|
+
export const DEFAULT_INSTALLED_TEMPLATES = ['Note', 'Concept', 'Project', 'People', 'Company', 'Deal'];
|
|
95
153
|
/** publish spec: where published pages live — tracked, authored-but-tool-owned, excluded from retrieval like the catalog and skill pack. */
|
|
96
154
|
export const DEFAULT_PUBLISH_PATH = '.contexture/publish/';
|
|
97
155
|
/**
|
|
@@ -141,22 +199,28 @@ export const DEFAULT_ADAPTERS = [{ id: 'claude-code', kind: 'harness-generation'
|
|
|
141
199
|
* sites branch on the key's presence to decide whether the store has a
|
|
142
200
|
* mission mechanism at all. `DEFAULT_MISSION_PATH` is what `init` seeds,
|
|
143
201
|
* not what an omission resolves to.
|
|
144
|
-
* - `harness.procedures_path` and `harness.conventions_path` are pre-rename
|
|
145
|
-
* spellings, read only as fallbacks by `HarnessSchema`'s transform.
|
|
146
202
|
*/
|
|
203
|
+
/**
|
|
204
|
+
* cli-contract (keep-the-installed-cli-current): the release advisory is on by
|
|
205
|
+
* default — an operator who never learns a newer release exists is exactly the
|
|
206
|
+
* problem it solves — and off with one key. The interval is a day because the
|
|
207
|
+
* thing being watched is a hand-cut release, not a stream of commits.
|
|
208
|
+
*/
|
|
209
|
+
export const DEFAULT_UPDATE_CHECK_ENABLED = true;
|
|
210
|
+
export const DEFAULT_UPDATE_CHECK_TTL_HOURS = 24;
|
|
147
211
|
export const SHIPPED_DEFAULTS = {
|
|
148
212
|
derived: { paths: DEFAULT_DERIVED_PATHS },
|
|
149
213
|
retrieval: {
|
|
150
214
|
exclude_paths: DEFAULT_EXCLUDE_PATHS,
|
|
151
215
|
demote_paths: DEFAULT_DEMOTE_PATHS,
|
|
152
216
|
gather_max_notes: DEFAULT_GATHER_MAX_NOTES,
|
|
153
|
-
relations: DEFAULT_RELATIONS,
|
|
154
217
|
graph: DEFAULT_GRAPH_SETTINGS,
|
|
155
218
|
},
|
|
156
219
|
session: { branch_prefix: DEFAULT_SESSION_BRANCH_PREFIX, worktrees_path: DEFAULT_WORKTREES_PATH },
|
|
157
220
|
write_lifecycle: { diff_size_ceiling_lines: DEFAULT_DIFF_SIZE_CEILING_LINES, writable_paths: [] },
|
|
158
221
|
catalog: { path: DEFAULT_CATALOG_PATH, section_max_bytes: DEFAULT_CATALOG_SECTION_MAX_BYTES },
|
|
159
222
|
publish: { path: DEFAULT_PUBLISH_PATH },
|
|
223
|
+
templates: { path: DEFAULT_TEMPLATES_PATH, installed: DEFAULT_INSTALLED_TEMPLATES },
|
|
160
224
|
skills: { vendored: DEFAULT_VENDORED_SKILLS },
|
|
161
225
|
ingest: {
|
|
162
226
|
inbox_path: DEFAULT_INBOX_PATH,
|
|
@@ -170,5 +234,6 @@ export const SHIPPED_DEFAULTS = {
|
|
|
170
234
|
convention_max_bytes: DEFAULT_CONVENTION_MAX_BYTES,
|
|
171
235
|
},
|
|
172
236
|
adapters: DEFAULT_ADAPTERS,
|
|
237
|
+
update_check: { enabled: DEFAULT_UPDATE_CHECK_ENABLED, ttl_hours: DEFAULT_UPDATE_CHECK_TTL_HOURS },
|
|
173
238
|
};
|
|
174
239
|
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,oBAAoB,CAAU,CAAC;AAErE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAErD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAU,CAAC;AAE5E;;;;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AC"}
|
package/dist/config/load.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export declare function configPathFor(root: string): string;
|
|
|
3
3
|
/**
|
|
4
4
|
* store-lifecycle spec: "Schema version is recorded and gated" — every
|
|
5
5
|
* command reads schema_version before operating. This peeks at it loosely,
|
|
6
|
-
* BEFORE full validation, so a store
|
|
7
|
-
*
|
|
6
|
+
* BEFORE full validation, so a store whose recorded version differs in either
|
|
7
|
+
* direction reports the version rather than the confusing generic
|
|
8
8
|
* shape-validation error the full schema would otherwise produce.
|
|
9
9
|
*/
|
|
10
10
|
export declare function readConfig(root: string): Promise<StoreConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings":"AAUA,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5F,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CA2CnE"}
|
package/dist/config/load.js
CHANGED
|
@@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { parse as parseYaml } from 'yaml';
|
|
4
4
|
import { CONFIG_FILE_NAME } from '../core/root.js';
|
|
5
|
-
import { InvalidConfigError, SchemaVersionMissingError, SchemaVersionNewerError, } from '../core/errors.js';
|
|
5
|
+
import { InvalidConfigError, SchemaVersionBehindError, SchemaVersionMissingError, SchemaVersionNewerError, } from '../core/errors.js';
|
|
6
6
|
import { StoreConfigSchema, SUPPORTED_SCHEMA_VERSION } from './schema.js';
|
|
7
7
|
export function configPathFor(root) {
|
|
8
8
|
return path.join(root, CONFIG_FILE_NAME);
|
|
@@ -10,8 +10,8 @@ export function configPathFor(root) {
|
|
|
10
10
|
/**
|
|
11
11
|
* store-lifecycle spec: "Schema version is recorded and gated" — every
|
|
12
12
|
* command reads schema_version before operating. This peeks at it loosely,
|
|
13
|
-
* BEFORE full validation, so a store
|
|
14
|
-
*
|
|
13
|
+
* BEFORE full validation, so a store whose recorded version differs in either
|
|
14
|
+
* direction reports the version rather than the confusing generic
|
|
15
15
|
* shape-validation error the full schema would otherwise produce.
|
|
16
16
|
*/
|
|
17
17
|
export async function readConfig(root) {
|
|
@@ -36,6 +36,16 @@ export async function readConfig(root) {
|
|
|
36
36
|
if (rawVersion > SUPPORTED_SCHEMA_VERSION) {
|
|
37
37
|
throw new SchemaVersionNewerError(rawVersion, SUPPORTED_SCHEMA_VERSION);
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* retire-store-migrations: the older direction is refused here too, and for
|
|
41
|
+
* the same reason the newer one is — this release cannot read that shape.
|
|
42
|
+
* It has to happen before `safeParse`, or an older config fails on the keys
|
|
43
|
+
* whose superseded spellings the schema no longer accepts, reporting a shape
|
|
44
|
+
* error against keys the operator never wrote instead of the version.
|
|
45
|
+
*/
|
|
46
|
+
if (rawVersion < SUPPORTED_SCHEMA_VERSION) {
|
|
47
|
+
throw new SchemaVersionBehindError(rawVersion, SUPPORTED_SCHEMA_VERSION);
|
|
48
|
+
}
|
|
39
49
|
const result = StoreConfigSchema.safeParse(raw);
|
|
40
50
|
if (!result.success) {
|
|
41
51
|
const issues = result.error.issues.map((issue) => ({
|
package/dist/config/load.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO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CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAChD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACjD,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;YACtC,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC,CAAC;QACJ,MAAM,IAAI,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
|
package/dist/config/render.d.ts
CHANGED
|
@@ -11,10 +11,4 @@ import { type StoreConfig } from './schema.js';
|
|
|
11
11
|
* behavior.
|
|
12
12
|
*/
|
|
13
13
|
export declare function renderStoreConfig(config: StoreConfig): string;
|
|
14
|
-
/**
|
|
15
|
-
* The dotted paths `renderStoreConfig` would drop from this config — what a
|
|
16
|
-
* migration reports it is about to remove, derived from the same walk that
|
|
17
|
-
* does the removing so the report and the write cannot disagree.
|
|
18
|
-
*/
|
|
19
|
-
export declare function redundantKeyPaths(config: StoreConfig): string[];
|
|
20
14
|
//# sourceMappingURL=render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/config/render.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/config/render.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAmDlE;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAW7D"}
|
package/dist/config/render.js
CHANGED
|
@@ -16,9 +16,10 @@ function isPlainObject(value) {
|
|
|
16
16
|
/**
|
|
17
17
|
* config-defaults-as-the-convention (D3, D4): drops every value equal to its
|
|
18
18
|
* shipped default, so what reaches disk is the set of decisions the store has
|
|
19
|
-
* made. Applied here rather than at `init`
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* made. Applied here rather than at `init` so the pruning belongs to the act
|
|
20
|
+
* of writing rather than to one caller — `init` is the only writer since
|
|
21
|
+
* retire-store-migrations, and a second one that skipped this would
|
|
22
|
+
* re-materialize the full resolved shape and undo the omission.
|
|
22
23
|
*
|
|
23
24
|
* Equality is deep and order-sensitive: a list holding the same entries in a
|
|
24
25
|
* different order is written as the store wrote it. Treating that as equal
|
|
@@ -70,28 +71,4 @@ export function renderStoreConfig(config) {
|
|
|
70
71
|
}
|
|
71
72
|
return text;
|
|
72
73
|
}
|
|
73
|
-
/**
|
|
74
|
-
* The dotted paths `renderStoreConfig` would drop from this config — what a
|
|
75
|
-
* migration reports it is about to remove, derived from the same walk that
|
|
76
|
-
* does the removing so the report and the write cannot disagree.
|
|
77
|
-
*/
|
|
78
|
-
export function redundantKeyPaths(config) {
|
|
79
|
-
const found = [];
|
|
80
|
-
const walk = (value, defaults, prefix) => {
|
|
81
|
-
for (const [key, declared] of Object.entries(value)) {
|
|
82
|
-
const shipped = defaults[key];
|
|
83
|
-
if (shipped === undefined)
|
|
84
|
-
continue;
|
|
85
|
-
const dotted = prefix === '' ? key : `${prefix}.${key}`;
|
|
86
|
-
if (isPlainObject(declared) && isPlainObject(shipped)) {
|
|
87
|
-
walk(declared, shipped, dotted);
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
if (isDeepStrictEqual(declared, shipped))
|
|
91
|
-
found.push(dotted);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
walk(config, SHIPPED_DEFAULTS, '');
|
|
95
|
-
return found;
|
|
96
|
-
}
|
|
97
74
|
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/config/render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,aAAa,CAAC;AAElE,MAAM,MAAM,GAAG;IACb,kCAAkC;IAClC,GAAG;IACH,4EAA4E;IAC5E,6DAA6D;IAC7D,EAAE;IACF,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/config/render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,aAAa,CAAC;AAElE,MAAM,MAAM,GAAG;IACb,kCAAkC;IAClC,GAAG;IACH,4EAA4E;IAC5E,6DAA6D;IAC7D,EAAE;IACF,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC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B,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,sGAAsG;YACpG,kDAAkD,CACrD,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -3,56 +3,21 @@ import { z } from 'zod';
|
|
|
3
3
|
* store-lifecycle spec: schema_version versions STORE STATE (config shape +
|
|
4
4
|
* note frontmatter conventions) — a monotonic integer independent of the npm
|
|
5
5
|
* package version — not "what this CLI release happens to be."
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Bumped to 2 by the visibility-field key rename migration (store-lifecycle
|
|
9
|
-
* spec task 9.2). Both that field and the config key naming it were removed
|
|
10
|
-
* at schema 7 (see below); the migration survives only to keep the 1 -> 2
|
|
11
|
-
* step in the chain intact.
|
|
12
6
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
7
|
+
* retire-store-migrations: contexture ships no migration mechanism, so this
|
|
8
|
+
* number is a gate rather than a starting point. `readConfig` refuses any
|
|
9
|
+
* store whose recorded version is not exactly this one, in either direction:
|
|
10
|
+
* a newer store because this release cannot know its shape, an older one
|
|
11
|
+
* because this release no longer reads that shape and offers nothing that
|
|
12
|
+
* would bring it forward. A release that changes the store's shape bumps this
|
|
13
|
+
* and documents the one-time fixup in its release notes.
|
|
18
14
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Bumped to 7 on main by the explanation-craft-skill migration
|
|
26
|
-
* (vendor-explanation-craft-skill, 0007-add-explanation-craft-skill), which
|
|
27
|
-
* pins its own local SCHEMA_VERSION and is unaffected by later bumps here.
|
|
28
|
-
*
|
|
29
|
-
* Bumped to 8 by the access-axis removal (retire-the-access-axes,
|
|
30
|
-
* drop-access-axes): the `visibility:` and `disclosure:` blocks and the
|
|
31
|
-
* `fields:` block that named the visibility frontmatter key are all gone.
|
|
32
|
-
* Unlike the rename migrations above, nothing here is accepted loosely for
|
|
33
|
-
* an older store — `noUnrecognizedConfigKeysCheck` derives from this
|
|
34
|
-
* schema's shape, so an unmigrated store fails `doctor` on the three stale
|
|
35
|
-
* keys until `ctxr migrate` drops them, exactly as `identity` did when
|
|
36
|
-
* remove-agent-identity retired it.
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* Bumped to 9 by the capture-tier change (retain-captures-as-provenance,
|
|
40
|
-
* retain-captures-as-provenance): `ingest.capture_root` is added and
|
|
41
|
-
* `ingest.inbox_path`'s shipped default moves inside it. IngestSchema accepts
|
|
42
|
-
* a config with no `capture_root` so an unmigrated store still loads —
|
|
43
|
-
* `ctxr migrate` has to be able to read the file it is about to rewrite —
|
|
44
|
-
* and skips the nesting rule for exactly that case.
|
|
15
|
+
* It stayed at 10 through that retirement on purpose: nothing about a
|
|
16
|
+
* conforming store's shape changed. What was dropped were superseded INPUT
|
|
17
|
+
* spellings that no store at 10 has ever written, since `renderStoreConfig`
|
|
18
|
+
* only ever emitted the current names.
|
|
45
19
|
*/
|
|
46
20
|
export declare const SUPPORTED_SCHEMA_VERSION = 10;
|
|
47
|
-
/** The version at which the capture tier became part of the store's shape, and its nesting rule enforceable. */
|
|
48
|
-
export declare const CAPTURE_TIER_SCHEMA_VERSION = 9;
|
|
49
|
-
/**
|
|
50
|
-
* Bumped to 10 by config-defaults-as-the-convention: every convention key now
|
|
51
|
-
* carries its shipped default here, and a written config omits what it agrees
|
|
52
|
-
* with. Nothing about the shape got stricter — the bump exists so the pruning
|
|
53
|
-
* migration has a `schema_version <` predicate to decide it still has work,
|
|
54
|
-
* the same way every migration in this repo does.
|
|
55
|
-
*/
|
|
56
21
|
export declare const TaxonomyLayerSchema: z.ZodObject<{
|
|
57
22
|
name: z.ZodString;
|
|
58
23
|
path: z.ZodString;
|
|
@@ -96,7 +61,6 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
96
61
|
exclude_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
97
62
|
demote_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
63
|
gather_max_notes: z.ZodDefault<z.ZodNumber>;
|
|
99
|
-
relations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
100
64
|
graph: z.ZodDefault<z.ZodObject<{
|
|
101
65
|
cluster_depth: z.ZodDefault<z.ZodNumber>;
|
|
102
66
|
hub_top: z.ZodDefault<z.ZodNumber>;
|
|
@@ -122,9 +86,17 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
122
86
|
publish: z.ZodPrefault<z.ZodObject<{
|
|
123
87
|
path: z.ZodDefault<z.ZodString>;
|
|
124
88
|
}, z.core.$strip>>;
|
|
89
|
+
templates: z.ZodPrefault<z.ZodObject<{
|
|
90
|
+
path: z.ZodDefault<z.ZodString>;
|
|
91
|
+
installed: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
125
93
|
skills: z.ZodPrefault<z.ZodObject<{
|
|
126
94
|
vendored: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
127
95
|
}, z.core.$strip>>;
|
|
96
|
+
update_check: z.ZodPrefault<z.ZodObject<{
|
|
97
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
98
|
+
ttl_hours: z.ZodDefault<z.ZodNumber>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
128
100
|
ingest: z.ZodPrefault<z.ZodObject<{
|
|
129
101
|
inbox_path: z.ZodDefault<z.ZodString>;
|
|
130
102
|
capture_root: z.ZodDefault<z.ZodString>;
|
|
@@ -132,7 +104,6 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
132
104
|
}, z.core.$strip>>;
|
|
133
105
|
organize: z.ZodPipe<z.ZodObject<{
|
|
134
106
|
archive_destination: z.ZodOptional<z.ZodString>;
|
|
135
|
-
archive_path: z.ZodOptional<z.ZodString>;
|
|
136
107
|
rollup_stale_days: z.ZodDefault<z.ZodNumber>;
|
|
137
108
|
mission_path: z.ZodOptional<z.ZodString>;
|
|
138
109
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -141,15 +112,12 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
141
112
|
mission_path?: string | undefined;
|
|
142
113
|
}, {
|
|
143
114
|
archive_destination?: string | undefined;
|
|
144
|
-
archive_path?: string | undefined;
|
|
145
115
|
rollup_stale_days: number;
|
|
146
116
|
mission_path?: string | undefined;
|
|
147
117
|
}>>;
|
|
148
118
|
harness: z.ZodPrefault<z.ZodPipe<z.ZodObject<{
|
|
149
119
|
skills_path: z.ZodOptional<z.ZodString>;
|
|
150
|
-
procedures_path: z.ZodOptional<z.ZodString>;
|
|
151
120
|
guidance_path: z.ZodOptional<z.ZodString>;
|
|
152
|
-
conventions_path: z.ZodOptional<z.ZodString>;
|
|
153
121
|
convention_max_bytes: z.ZodDefault<z.ZodNumber>;
|
|
154
122
|
}, z.core.$strip>, z.ZodTransform<{
|
|
155
123
|
skills_path: string;
|
|
@@ -157,31 +125,17 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
157
125
|
convention_max_bytes: number;
|
|
158
126
|
}, {
|
|
159
127
|
skills_path?: string | undefined;
|
|
160
|
-
procedures_path?: string | undefined;
|
|
161
128
|
guidance_path?: string | undefined;
|
|
162
|
-
conventions_path?: string | undefined;
|
|
163
129
|
convention_max_bytes: number;
|
|
164
130
|
}>>>;
|
|
165
|
-
adapters: z.ZodDefault<z.
|
|
166
|
-
id: z.ZodString;
|
|
167
|
-
kind: z.ZodString;
|
|
168
|
-
module: z.ZodOptional<z.ZodString>;
|
|
169
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
170
|
-
id: string;
|
|
171
|
-
kind: string;
|
|
172
|
-
module?: string | undefined;
|
|
173
|
-
}[], {
|
|
174
|
-
id: string;
|
|
175
|
-
kind: string;
|
|
176
|
-
module?: string | undefined;
|
|
177
|
-
}[]>>, z.ZodArray<z.ZodObject<{
|
|
131
|
+
adapters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
178
132
|
id: z.ZodString;
|
|
179
133
|
kind: z.ZodEnum<{
|
|
180
134
|
"harness-generation": "harness-generation";
|
|
181
135
|
}>;
|
|
182
136
|
module: z.ZodOptional<z.ZodString>;
|
|
183
137
|
skills_dir: z.ZodOptional<z.ZodString>;
|
|
184
|
-
}, z.core.$strip
|
|
138
|
+
}, z.core.$strip>>>;
|
|
185
139
|
}, z.core.$loose>;
|
|
186
140
|
export type StoreConfig = z.infer<typeof StoreConfigSchema>;
|
|
187
141
|
export type TaxonomyLayerConfig = z.infer<typeof TaxonomyLayerSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAYH;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB;;;;;iBAKvB,CAAC;AAiOH,QAAA,MAAM,wBAAwB;;;;;;;iBAM5B,CAAC;AAiBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwC1B,CAAC;AAEL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|