ctxr-cli 0.5.0 → 0.7.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/dist/adapter.d.ts +0 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js.map +1 -1
- package/dist/adapters/builtin/index.d.ts.map +1 -1
- package/dist/adapters/builtin/index.js +2 -2
- package/dist/adapters/builtin/index.js.map +1 -1
- package/dist/adapters/harness/claude-code.d.ts.map +1 -1
- package/dist/adapters/harness/claude-code.js +30 -14
- package/dist/adapters/harness/claude-code.js.map +1 -1
- package/dist/adapters/harness/hermes-agent.d.ts +9 -0
- package/dist/adapters/harness/hermes-agent.d.ts.map +1 -0
- package/dist/adapters/harness/hermes-agent.js +13 -0
- package/dist/adapters/harness/hermes-agent.js.map +1 -0
- package/dist/adapters/types.d.ts +38 -18
- package/dist/adapters/types.d.ts.map +1 -1
- package/dist/adapters/types.js +3 -3
- package/dist/adapters/types.js.map +1 -1
- package/dist/commands/adapters-generate.d.ts +4 -2
- package/dist/commands/adapters-generate.d.ts.map +1 -1
- package/dist/commands/adapters-generate.js +14 -6
- package/dist/commands/adapters-generate.js.map +1 -1
- package/dist/commands/archive.d.ts +6 -4
- package/dist/commands/archive.d.ts.map +1 -1
- package/dist/commands/archive.js +7 -5
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/catalog-show.d.ts +0 -1
- package/dist/commands/catalog-show.d.ts.map +1 -1
- package/dist/commands/catalog-show.js +1 -1
- package/dist/commands/catalog-show.js.map +1 -1
- package/dist/commands/graph-query.d.ts +2 -11
- package/dist/commands/graph-query.d.ts.map +1 -1
- package/dist/commands/graph-query.js +11 -14
- package/dist/commands/graph-query.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +82 -21
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/publish-check.d.ts +23 -0
- package/dist/commands/publish-check.d.ts.map +1 -0
- package/dist/commands/publish-check.js +112 -0
- package/dist/commands/publish-check.js.map +1 -0
- package/dist/commands/publish-gather.d.ts +27 -0
- package/dist/commands/publish-gather.d.ts.map +1 -0
- package/dist/commands/publish-gather.js +73 -0
- package/dist/commands/publish-gather.js.map +1 -0
- package/dist/commands/publish-new.d.ts +19 -0
- package/dist/commands/publish-new.d.ts.map +1 -0
- package/dist/commands/publish-new.js +108 -0
- package/dist/commands/publish-new.js.map +1 -0
- package/dist/commands/serve.d.ts +32 -0
- package/dist/commands/serve.d.ts.map +1 -0
- package/dist/commands/serve.js +151 -0
- package/dist/commands/serve.js.map +1 -0
- package/dist/commands/session-capture.d.ts.map +1 -1
- package/dist/commands/session-capture.js +0 -2
- package/dist/commands/session-capture.js.map +1 -1
- package/dist/commands/update.js +3 -3
- package/dist/commands/update.js.map +1 -1
- package/dist/config/defaults.d.ts +49 -44
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +49 -47
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/schema.d.ts +53 -52
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +84 -62
- package/dist/config/schema.js.map +1 -1
- package/dist/core/agents-doc.d.ts +9 -0
- package/dist/core/agents-doc.d.ts.map +1 -1
- package/dist/core/agents-doc.js +31 -16
- package/dist/core/agents-doc.js.map +1 -1
- package/dist/core/browse/link-resolver.d.ts +12 -0
- package/dist/core/browse/link-resolver.d.ts.map +1 -0
- package/dist/core/browse/link-resolver.js +12 -0
- package/dist/core/browse/link-resolver.js.map +1 -0
- package/dist/core/browse/nav.d.ts +10 -0
- package/dist/core/browse/nav.d.ts.map +1 -0
- package/dist/core/browse/nav.js +101 -0
- package/dist/core/browse/nav.js.map +1 -0
- package/dist/core/browse/render.d.ts +5 -0
- package/dist/core/browse/render.d.ts.map +1 -0
- package/dist/core/browse/render.js +66 -0
- package/dist/core/browse/render.js.map +1 -0
- package/dist/core/browse/routes.d.ts +40 -0
- package/dist/core/browse/routes.d.ts.map +1 -0
- package/dist/core/browse/routes.js +68 -0
- package/dist/core/browse/routes.js.map +1 -0
- package/dist/core/browse/templates.d.ts +13 -0
- package/dist/core/browse/templates.d.ts.map +1 -0
- package/dist/core/browse/templates.js +39 -0
- package/dist/core/browse/templates.js.map +1 -0
- package/dist/core/browse/tree.d.ts +33 -0
- package/dist/core/browse/tree.d.ts.map +1 -0
- package/dist/core/browse/tree.js +53 -0
- package/dist/core/browse/tree.js.map +1 -0
- package/dist/core/catalog/build.d.ts +1 -1
- package/dist/core/catalog/build.d.ts.map +1 -1
- package/dist/core/catalog/build.js +1 -2
- package/dist/core/catalog/build.js.map +1 -1
- package/dist/core/catalog/model.d.ts +2 -0
- package/dist/core/catalog/model.d.ts.map +1 -1
- package/dist/core/catalog/model.js +2 -1
- package/dist/core/catalog/model.js.map +1 -1
- package/dist/core/checks/integrity-checks.d.ts +18 -2
- package/dist/core/checks/integrity-checks.d.ts.map +1 -1
- package/dist/core/checks/integrity-checks.js +55 -10
- 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 +0 -5
- package/dist/core/checks/manifest.js.map +1 -1
- package/dist/core/checks/organize-checks.d.ts +10 -3
- package/dist/core/checks/organize-checks.d.ts.map +1 -1
- package/dist/core/checks/organize-checks.js +14 -5
- package/dist/core/checks/organize-checks.js.map +1 -1
- package/dist/core/checks/types.d.ts +1 -1
- package/dist/core/convention-doc.d.ts +21 -19
- package/dist/core/convention-doc.d.ts.map +1 -1
- package/dist/core/convention-doc.js +48 -62
- package/dist/core/convention-doc.js.map +1 -1
- package/dist/core/conventions.d.ts +2 -2
- package/dist/core/conventions.js +2 -2
- package/dist/core/errors.d.ts +31 -44
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +81 -128
- package/dist/core/errors.js.map +1 -1
- package/dist/core/exit-codes.d.ts +7 -5
- package/dist/core/exit-codes.d.ts.map +1 -1
- package/dist/core/exit-codes.js +7 -5
- package/dist/core/exit-codes.js.map +1 -1
- package/dist/core/git/repo.d.ts +0 -6
- package/dist/core/git/repo.d.ts.map +1 -1
- package/dist/core/git/repo.js +0 -13
- package/dist/core/git/repo.js.map +1 -1
- package/dist/core/git/worktree.d.ts +4 -7
- package/dist/core/git/worktree.d.ts.map +1 -1
- package/dist/core/git/worktree.js +4 -10
- package/dist/core/git/worktree.js.map +1 -1
- package/dist/core/graph/model.d.ts +14 -0
- package/dist/core/graph/model.d.ts.map +1 -1
- package/dist/core/graph/model.js +30 -14
- package/dist/core/graph/model.js.map +1 -1
- package/dist/core/harness/bridge.d.ts +30 -0
- package/dist/core/harness/bridge.d.ts.map +1 -0
- package/dist/core/harness/bridge.js +178 -0
- package/dist/core/harness/bridge.js.map +1 -0
- package/dist/core/ingest/identity.d.ts +4 -4
- package/dist/core/ingest/identity.js +4 -4
- package/dist/core/json-config-merge.d.ts.map +1 -1
- package/dist/core/json-config-merge.js +30 -7
- package/dist/core/json-config-merge.js.map +1 -1
- package/dist/core/migrations/add-explanation-craft-skill.d.ts +26 -0
- package/dist/core/migrations/add-explanation-craft-skill.d.ts.map +1 -0
- package/dist/core/migrations/add-explanation-craft-skill.js +94 -0
- package/dist/core/migrations/add-explanation-craft-skill.js.map +1 -0
- package/dist/core/migrations/archive-destination-from-taxonomy.d.ts +35 -0
- package/dist/core/migrations/archive-destination-from-taxonomy.d.ts.map +1 -0
- package/dist/core/migrations/archive-destination-from-taxonomy.js +109 -0
- package/dist/core/migrations/archive-destination-from-taxonomy.js.map +1 -0
- package/dist/core/migrations/drop-access-axes.d.ts +24 -0
- package/dist/core/migrations/drop-access-axes.d.ts.map +1 -0
- package/dist/core/migrations/drop-access-axes.js +54 -0
- package/dist/core/migrations/drop-access-axes.js.map +1 -0
- package/dist/core/migrations/drop-forge-and-workspaces-external.d.ts +19 -0
- package/dist/core/migrations/drop-forge-and-workspaces-external.d.ts.map +1 -0
- package/dist/core/migrations/drop-forge-and-workspaces-external.js +49 -0
- package/dist/core/migrations/drop-forge-and-workspaces-external.js.map +1 -0
- package/dist/core/migrations/registry.d.ts +11 -1
- package/dist/core/migrations/registry.d.ts.map +1 -1
- package/dist/core/migrations/registry.js +19 -3
- package/dist/core/migrations/registry.js.map +1 -1
- package/dist/core/notes/list.d.ts +1 -12
- package/dist/core/notes/list.d.ts.map +1 -1
- package/dist/core/notes/list.js +5 -1
- package/dist/core/notes/list.js.map +1 -1
- package/dist/core/publish/script-check.d.ts +12 -0
- package/dist/core/publish/script-check.d.ts.map +1 -0
- package/dist/core/publish/script-check.js +39 -0
- package/dist/core/publish/script-check.js.map +1 -0
- package/dist/core/reconcile.d.ts +3 -0
- package/dist/core/reconcile.d.ts.map +1 -1
- package/dist/core/reconcile.js +15 -5
- package/dist/core/reconcile.js.map +1 -1
- package/dist/core/records.d.ts +4 -5
- package/dist/core/records.d.ts.map +1 -1
- package/dist/core/records.js +0 -2
- package/dist/core/records.js.map +1 -1
- package/dist/core/session.d.ts +9 -9
- package/dist/core/session.js +9 -9
- package/dist/core/skills.d.ts +42 -0
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +159 -31
- package/dist/core/skills.js.map +1 -1
- package/dist/core/write-lifecycle/path-gate.d.ts.map +1 -1
- package/dist/core/write-lifecycle/path-gate.js +4 -2
- package/dist/core/write-lifecycle/path-gate.js.map +1 -1
- package/dist/prompt/inquirer-prompter.d.ts.map +1 -1
- package/dist/prompt/inquirer-prompter.js +11 -1
- package/dist/prompt/inquirer-prompter.js.map +1 -1
- package/dist/prompt/prompter.d.ts +16 -0
- package/dist/prompt/prompter.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +69 -101
- package/dist/run.js.map +1 -1
- package/dist/taxonomy/profiles.d.ts +11 -0
- package/dist/taxonomy/profiles.d.ts.map +1 -1
- package/dist/taxonomy/profiles.js +1 -0
- package/dist/taxonomy/profiles.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
- package/templates/agents/canonical.md +1 -3
- package/templates/conventions/baseline-conventions.md +27 -0
- package/templates/conventions/{custom-convention-seed.md → house-conventions-seed.md} +15 -2
- package/templates/hooks/pre-push.sh +1 -1
- package/templates/serve/shell.html +18 -0
- package/templates/serve/style.css +163 -0
- package/templates/skills/ctxr-land.md +32 -18
- package/templates/skills/ctxr-organize-audit.md +2 -10
- package/templates/skills/ctxr-placement.md +6 -24
- package/templates/skills/ctxr-publish.md +84 -0
- package/templates/skills/ctxr-session-capture.md +43 -3
- package/templates/skills/ctxr-session-lifecycle.md +20 -1
- package/templates/skills/ctxr-submit.md +15 -11
- package/templates/vendor/eli5/LICENSE.txt +21 -0
- package/templates/vendor/eli5/SKILL.md +116 -0
- package/templates/vendor/eli5/provenance.json +8 -0
- package/templates/vendor/frontend-design/LICENSE.txt +177 -0
- package/templates/vendor/frontend-design/SKILL.md +55 -0
- package/templates/vendor/frontend-design/provenance.json +7 -0
- package/dist/adapters/forge/github.d.ts +0 -12
- package/dist/adapters/forge/github.d.ts.map +0 -1
- package/dist/adapters/forge/github.js +0 -76
- package/dist/adapters/forge/github.js.map +0 -1
- package/dist/adapters/forge/types.d.ts +0 -46
- package/dist/adapters/forge/types.d.ts.map +0 -1
- package/dist/adapters/forge/types.js +0 -2
- package/dist/adapters/forge/types.js.map +0 -1
- package/dist/commands/check.d.ts +0 -30
- package/dist/commands/check.d.ts.map +0 -1
- package/dist/commands/check.js +0 -70
- package/dist/commands/check.js.map +0 -1
- package/dist/commands/note-resolve.d.ts +0 -14
- package/dist/commands/note-resolve.d.ts.map +0 -1
- package/dist/commands/note-resolve.js +0 -24
- package/dist/commands/note-resolve.js.map +0 -1
- package/dist/commands/session-abandon.d.ts +0 -13
- package/dist/commands/session-abandon.d.ts.map +0 -1
- package/dist/commands/session-abandon.js +0 -22
- package/dist/commands/session-abandon.js.map +0 -1
- package/dist/commands/session-land.d.ts +0 -45
- package/dist/commands/session-land.d.ts.map +0 -1
- package/dist/commands/session-land.js +0 -171
- package/dist/commands/session-land.js.map +0 -1
- package/dist/commands/session-reap.d.ts +0 -22
- package/dist/commands/session-reap.d.ts.map +0 -1
- package/dist/commands/session-reap.js +0 -52
- package/dist/commands/session-reap.js.map +0 -1
- package/dist/commands/session-submit.d.ts +0 -29
- package/dist/commands/session-submit.d.ts.map +0 -1
- package/dist/commands/session-submit.js +0 -72
- package/dist/commands/session-submit.js.map +0 -1
- package/dist/core/checks/disclosure-checks.d.ts +0 -4
- package/dist/core/checks/disclosure-checks.d.ts.map +0 -1
- package/dist/core/checks/disclosure-checks.js +0 -24
- package/dist/core/checks/disclosure-checks.js.map +0 -1
- package/dist/core/disclosure/leak-scan.d.ts +0 -19
- package/dist/core/disclosure/leak-scan.d.ts.map +0 -1
- package/dist/core/disclosure/leak-scan.js +0 -31
- package/dist/core/disclosure/leak-scan.js.map +0 -1
- package/dist/core/disclosure/model.d.ts +0 -18
- package/dist/core/disclosure/model.d.ts.map +0 -1
- package/dist/core/disclosure/model.js +0 -45
- package/dist/core/disclosure/model.js.map +0 -1
- package/dist/core/graph/visibility-filter.d.ts +0 -13
- package/dist/core/graph/visibility-filter.d.ts.map +0 -1
- package/dist/core/graph/visibility-filter.js +0 -26
- package/dist/core/graph/visibility-filter.js.map +0 -1
- package/dist/core/migrations/rename-visibility-field.d.ts +0 -3
- package/dist/core/migrations/rename-visibility-field.d.ts.map +0 -1
- package/dist/core/migrations/rename-visibility-field.js +0 -62
- package/dist/core/migrations/rename-visibility-field.js.map +0 -1
- package/dist/core/notes/checks.d.ts +0 -20
- package/dist/core/notes/checks.d.ts.map +0 -1
- package/dist/core/notes/checks.js +0 -58
- package/dist/core/notes/checks.js.map +0 -1
- package/dist/core/notes/visibility.d.ts +0 -26
- package/dist/core/notes/visibility.d.ts.map +0 -1
- package/dist/core/notes/visibility.js +0 -41
- package/dist/core/notes/visibility.js.map +0 -1
- package/templates/conventions/baseline-convention.md +0 -60
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,YAAI,oBAAoB,CAAU,CAAC;AAErE;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,YAAI,iBAAiB,EAAE,MAAM,CAAU,CAAC;AAE5E;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,4HAA4H;AAC5H,eAAO,MAAM,sCAAsC,4BAA4B,CAAC;AAEhF;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,yBAAyB,CAAC;AAE1E,mHAAmH;AACnH,eAAO,MAAM,yBAAyB,eAAe,CAAC;AAEtD,+IAA+I;AAC/I,eAAO,MAAM,oBAAoB,oCAAyD,CAAC;AAE3F,yIAAyI;AACzI,eAAO,MAAM,4BAA4B,QAAY,CAAC;AAEtD,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,YAAI,cAAc,CAAU,CAAC;AAE/D,oHAAoH;AACpH,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAAO,CAAC;AAEvD,8HAA8H;AAC9H,eAAO,MAAM,sBAAsB;IACjC,aAAa;IACb,OAAO;IACP,UAAU;IACV,sBAAsB,EAAQ,MAAM,EAAE;CACvC,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD,8FAA8F;AAC9F,eAAO,MAAM,6BAA6B,aAAa,CAAC;AAGxD,oFAAoF;AACpF,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAEpD,2HAA2H;AAC3H,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,6GAA6G;AAC7G,eAAO,MAAM,iCAAiC,QAAY,CAAC;AAE3D,4IAA4I;AAC5I,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,uGAAuG;AACvG,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,gJAAgJ;AAChJ,eAAO,MAAM,uBAAuB,UAA6F,CAAC;AAElI;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,aAAa,CAAC;AAEtD,iHAAiH;AACjH,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,kBAAkB,EAAwD,CAAC"}
|
package/dist/config/defaults.js
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* context-store spec: "The visibility field's frontmatter key is configurable
|
|
3
|
-
* with a shipped default... No specification other than this one SHALL
|
|
4
|
-
* assert the literal key name." This module is that one place, in code —
|
|
5
|
-
* enforced by test/unit/single-source-literals.test.ts. Every other module
|
|
6
|
-
* reads the key via StoreConfig.fields.visibility, never this constant
|
|
7
|
-
* directly, and never the literal "scope" string.
|
|
8
|
-
*
|
|
9
|
-
* "scope" is provisional (design.md D7 / openspec/config.yaml): renaming it
|
|
10
|
-
* is meant to be a config-default change plus a migration, never a spec or
|
|
11
|
-
* code rewrite. Do not let this constant's value leak into any other file.
|
|
12
|
-
*/
|
|
13
|
-
export const DEFAULT_VISIBILITY_FIELD_KEY = 'lens';
|
|
14
|
-
/**
|
|
15
|
-
* The visibility field key every store created before schema_version 2
|
|
16
|
-
* used. Named here, once, purely as history for the rename migration
|
|
17
|
-
* (core/migrations/rename-visibility-field.ts) to read from — this is the
|
|
18
|
-
* one sanctioned place a superseded key value is allowed to live once it's
|
|
19
|
-
* no longer the shipped default.
|
|
20
|
-
*/
|
|
21
|
-
export const SCHEMA_V1_VISIBILITY_FIELD_KEY = 'scope';
|
|
22
|
-
/** context-visibility spec rung 3: what a note's visibility fails closed to. */
|
|
23
|
-
export const DEFAULT_VISIBILITY_CONTEXT = 'private';
|
|
24
1
|
/**
|
|
25
2
|
* context-store spec (contexture-home-layout): `.contexture/` is the tool's
|
|
26
3
|
* home directory. Only its cache subpath is derived/gitignored — the
|
|
@@ -29,12 +6,26 @@ export const DEFAULT_VISIBILITY_CONTEXT = 'private';
|
|
|
29
6
|
*/
|
|
30
7
|
export const DEFAULT_DERIVED_PATHS = ['.contexture/cache/'];
|
|
31
8
|
/**
|
|
32
|
-
* harness-portability spec (
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
9
|
+
* harness-portability spec (vendored-craft-skills): the ecosystem's
|
|
10
|
+
* cross-harness canonical skills location — the directory the majority of
|
|
11
|
+
* agent runtimes read natively, with no bridge required. A harness that
|
|
12
|
+
* reads its own branded directory instead (e.g. Claude Code's
|
|
13
|
+
* `.claude/skills/`) gets that directory bridged to this one; see
|
|
14
|
+
* `core/harness/bridge.ts`. A store driven by no auto-discovering harness
|
|
15
|
+
* can still point this anywhere.
|
|
16
|
+
*/
|
|
17
|
+
export const DEFAULT_SKILLS_PATH = '.agents/skills/';
|
|
18
|
+
/**
|
|
19
|
+
* harness-portability spec (vendored-craft-skills): the shipped vendored skill
|
|
20
|
+
* set, installed by default and refreshed by update — one skill per craft axis
|
|
21
|
+
* a published page needs and contexture supplies none of (its visual form; the
|
|
22
|
+
* prose that explains its subject to a reader).
|
|
23
|
+
*
|
|
24
|
+
* Appended, never sorted in: the notices order, the paths init stages, and a
|
|
25
|
+
* store's rendered configuration all follow this order, so growing the set is
|
|
26
|
+
* a pure insertion rather than a reshuffle.
|
|
36
27
|
*/
|
|
37
|
-
export const
|
|
28
|
+
export const DEFAULT_VENDORED_SKILLS = ['frontend-design', 'eli5'];
|
|
38
29
|
/**
|
|
39
30
|
* harness-portability spec: the guidance directory holding contexture's
|
|
40
31
|
* shipped baseline convention file, the operator's own convention files
|
|
@@ -43,10 +34,21 @@ export const DEFAULT_SKILLS_PATH = '.claude/skills/';
|
|
|
43
34
|
* context-organize) the mission document.
|
|
44
35
|
*/
|
|
45
36
|
export const DEFAULT_GUIDANCE_PATH = '.contexture/guidance/';
|
|
46
|
-
/** The shipped, contexture-owned baseline
|
|
47
|
-
export const
|
|
48
|
-
/**
|
|
49
|
-
|
|
37
|
+
/** The shipped, contexture-owned baseline conventions — never hand-edited; refreshed by `ctxr update` like a skill copy. */
|
|
38
|
+
export const DEFAULT_BASELINE_CONVENTIONS_FILE_NAME = 'baseline-conventions.md';
|
|
39
|
+
/**
|
|
40
|
+
* The baseline file's pre-rename name. `syncBaselineConventions` removes it
|
|
41
|
+
* when it still carries the managed-owner header, so the rename leaves no
|
|
42
|
+
* orphan — the guidance directory is scanned wholesale, so an orphan would
|
|
43
|
+
* be inlined into AGENTS.md a second time rather than merely sitting unused.
|
|
44
|
+
*/
|
|
45
|
+
export const LEGACY_BASELINE_CONVENTION_FILE_NAME = 'baseline-convention.md';
|
|
46
|
+
/**
|
|
47
|
+
* The operator-authored conventions file seeded at init: this store's house
|
|
48
|
+
* rules, layered on the shipped baseline and winning where the two speak to
|
|
49
|
+
* the same thing.
|
|
50
|
+
*/
|
|
51
|
+
export const DEFAULT_HOUSE_CONVENTIONS_FILE_NAME = 'house-conventions.md';
|
|
50
52
|
/** context-organize spec: the store's standing current-state document's filename, under the guidance directory. */
|
|
51
53
|
export const DEFAULT_MISSION_FILE_NAME = 'mission.md';
|
|
52
54
|
/** context-organize spec: `organize.mission_path`'s shipped default — every store gets a mission document from `init` onward, seeded there. */
|
|
@@ -68,33 +70,33 @@ export const DEFAULT_GRAPH_SETTINGS = {
|
|
|
68
70
|
export const DEFAULT_WORKTREES_PATH = '.worktrees/';
|
|
69
71
|
/** Branch names for session worktrees are prefixed so they're recognizable and sweep-safe. */
|
|
70
72
|
export const DEFAULT_SESSION_BRANCH_PREFIX = 'session/';
|
|
71
|
-
/** write-lifecycle spec: worktrees are ctxr-owned (not externally provided) unless a store opts in. */
|
|
72
|
-
export const DEFAULT_WORKSPACES_EXTERNAL = false;
|
|
73
73
|
/** write-lifecycle spec: pre-commit's diff-size ceiling, in total changed lines. */
|
|
74
74
|
export const DEFAULT_DIFF_SIZE_CEILING_LINES = 2000;
|
|
75
75
|
/** context-catalog spec: where per-section catalog files live — tracked (never gitignored), since glosses are authored. */
|
|
76
76
|
export const DEFAULT_CATALOG_PATH = '.contexture/catalog/';
|
|
77
77
|
/** context-catalog spec: a section exceeding this triggers a failing doctor check, not a silent slowdown. */
|
|
78
78
|
export const DEFAULT_CATALOG_SECTION_MAX_BYTES = 32 * 1024;
|
|
79
|
-
/**
|
|
80
|
-
export const
|
|
81
|
-
export const DEFAULT_HARD_WALLS = [];
|
|
79
|
+
/** publish spec: where published pages live — tracked, authored-but-tool-owned, excluded from retrieval like the catalog and skill pack. */
|
|
80
|
+
export const DEFAULT_PUBLISH_PATH = '.contexture/publish/';
|
|
82
81
|
/** context-ingest spec: capture's landing zone — a normal, retrievable directory, not an exclusion. */
|
|
83
82
|
export const DEFAULT_INBOX_PATH = 'inbox/';
|
|
84
83
|
/** store-primitives-from-migration-audit spec (D2): the shipped tracking-parameter list source check strips before comparing URL identities. */
|
|
85
84
|
export const DEFAULT_TRACKING_PARAMS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid'];
|
|
86
|
-
/**
|
|
87
|
-
|
|
85
|
+
/**
|
|
86
|
+
* context-organize spec: archive's destination, decoupled from any taxonomy
|
|
87
|
+
* layer name. This is the fallback for a taxonomy that declares none of its
|
|
88
|
+
* own — a shipped profile with a retirement layer (PARA's Archives) supplies
|
|
89
|
+
* its `archiveDestination` at init instead, so a PARA store is never born
|
|
90
|
+
* pointing at a directory its own taxonomy doesn't declare.
|
|
91
|
+
*/
|
|
92
|
+
export const DEFAULT_ARCHIVE_DESTINATION = 'archive/';
|
|
88
93
|
/** store-primitives-from-migration-audit spec (D4): grace period, in days, before a stale rollup is reported. */
|
|
89
94
|
export const DEFAULT_ROLLUP_STALE_DAYS = 7;
|
|
90
95
|
/**
|
|
91
|
-
* adapters spec: init registers
|
|
92
|
-
* out-of-the-box UX (a
|
|
93
|
-
*
|
|
94
|
-
*
|
|
96
|
+
* adapters spec: init registers the shipped builtin by default, so
|
|
97
|
+
* out-of-the-box UX (a generated CLAUDE.md) keeps working without the
|
|
98
|
+
* operator hand-writing config — it is just as removable from this list as
|
|
99
|
+
* it was addable.
|
|
95
100
|
*/
|
|
96
|
-
export const DEFAULT_ADAPTERS = [
|
|
97
|
-
{ id: 'github', kind: 'forge' },
|
|
98
|
-
{ id: 'claude-code', kind: 'harness-generation' },
|
|
99
|
-
];
|
|
101
|
+
export const DEFAULT_ADAPTERS = [{ id: 'claude-code', kind: 'harness-generation' }];
|
|
100
102
|
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAEA
|
|
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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAE7D,4HAA4H;AAC5H,MAAM,CAAC,MAAM,sCAAsC,GAAG,yBAAyB,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oCA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U,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAElI;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC;AAEtD,iHAAiH;AACjH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAkC,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC"}
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -6,10 +6,9 @@ import { z } from 'zod';
|
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Bumped to 2 by the visibility-field key rename migration (store-lifecycle
|
|
9
|
-
* spec task 9.2)
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* config.fields.visibility, never a literal key, so nothing else changed.
|
|
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.
|
|
13
12
|
*
|
|
14
13
|
* Bumped to 3 by the procedures-to-skills key rename migration
|
|
15
14
|
* (rename-procedures-to-skills, 0003-rename-procedures-path-to-skills):
|
|
@@ -22,7 +21,21 @@ import { z } from 'zod';
|
|
|
22
21
|
* `harness.conventions_path` -> `harness.guidance_path`. HarnessSchema's
|
|
23
22
|
* transform accepts the old key through this version too, the same way.
|
|
24
23
|
*/
|
|
25
|
-
|
|
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
|
+
export declare const SUPPORTED_SCHEMA_VERSION = 8;
|
|
26
39
|
export declare const TaxonomyLayerSchema: z.ZodObject<{
|
|
27
40
|
name: z.ZodString;
|
|
28
41
|
path: z.ZodString;
|
|
@@ -41,29 +54,13 @@ declare const GraphSettingsSchema: z.ZodObject<{
|
|
|
41
54
|
bridge_top: z.ZodDefault<z.ZodNumber>;
|
|
42
55
|
orphan_exempt_clusters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
43
56
|
}, z.core.$strip>;
|
|
44
|
-
/**
|
|
45
|
-
* disclosure-policy spec: "v1 keeps the disclosure ladder's shape with a
|
|
46
|
-
* flat, user-defined value list" (design.md) — no registry syntax, just a
|
|
47
|
-
* flat set of audience names the operator considers internal, and a flat
|
|
48
|
-
* list of hard-wall rules evaluated before any tag or visibility rung.
|
|
49
|
-
*/
|
|
50
|
-
declare const HardWallSchema: z.ZodObject<{
|
|
51
|
-
audience: z.ZodString;
|
|
52
|
-
note_path_prefix: z.ZodOptional<z.ZodString>;
|
|
53
|
-
except: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
-
verdict: z.ZodEnum<{
|
|
55
|
-
allow: "allow";
|
|
56
|
-
ask: "ask";
|
|
57
|
-
deny: "deny";
|
|
58
|
-
}>;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
57
|
declare const AdapterDeclarationSchema: z.ZodObject<{
|
|
61
58
|
id: z.ZodString;
|
|
62
59
|
kind: z.ZodEnum<{
|
|
63
|
-
forge: "forge";
|
|
64
60
|
"harness-generation": "harness-generation";
|
|
65
61
|
}>;
|
|
66
62
|
module: z.ZodOptional<z.ZodString>;
|
|
63
|
+
skills_dir: z.ZodOptional<z.ZodString>;
|
|
67
64
|
}, z.core.$strip>;
|
|
68
65
|
export declare const StoreConfigSchema: z.ZodObject<{
|
|
69
66
|
schema_version: z.ZodNumber;
|
|
@@ -75,14 +72,6 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
75
72
|
description: z.ZodString;
|
|
76
73
|
}, z.core.$strip>>;
|
|
77
74
|
}, z.core.$strip>;
|
|
78
|
-
fields: z.ZodObject<{
|
|
79
|
-
visibility: z.ZodString;
|
|
80
|
-
}, z.core.$loose>;
|
|
81
|
-
visibility: z.ZodObject<{
|
|
82
|
-
default_context: z.ZodString;
|
|
83
|
-
directory_defaults: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
84
|
-
contexts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
75
|
derived: z.ZodObject<{
|
|
87
76
|
paths: z.ZodArray<z.ZodString>;
|
|
88
77
|
}, z.core.$strip>;
|
|
@@ -102,7 +91,6 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
102
91
|
session: z.ZodObject<{
|
|
103
92
|
branch_prefix: z.ZodString;
|
|
104
93
|
worktrees_path: z.ZodString;
|
|
105
|
-
workspaces_external: z.ZodDefault<z.ZodBoolean>;
|
|
106
94
|
}, z.core.$strip>;
|
|
107
95
|
write_lifecycle: z.ZodObject<{
|
|
108
96
|
diff_size_ceiling_lines: z.ZodNumber;
|
|
@@ -112,29 +100,31 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
112
100
|
path: z.ZodString;
|
|
113
101
|
section_max_bytes: z.ZodNumber;
|
|
114
102
|
}, z.core.$strip>;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
verdict: z.ZodEnum<{
|
|
122
|
-
allow: "allow";
|
|
123
|
-
ask: "ask";
|
|
124
|
-
deny: "deny";
|
|
125
|
-
}>;
|
|
126
|
-
}, z.core.$strip>>;
|
|
127
|
-
leak_markers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
128
|
-
}, z.core.$strip>;
|
|
103
|
+
publish: z.ZodDefault<z.ZodObject<{
|
|
104
|
+
path: z.ZodDefault<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
skills: z.ZodDefault<z.ZodObject<{
|
|
107
|
+
vendored: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
129
109
|
ingest: z.ZodObject<{
|
|
130
110
|
inbox_path: z.ZodString;
|
|
131
111
|
tracking_params: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
132
112
|
}, z.core.$strip>;
|
|
133
|
-
organize: z.ZodObject<{
|
|
134
|
-
|
|
113
|
+
organize: z.ZodPipe<z.ZodObject<{
|
|
114
|
+
archive_destination: z.ZodOptional<z.ZodString>;
|
|
115
|
+
archive_path: z.ZodOptional<z.ZodString>;
|
|
135
116
|
rollup_stale_days: z.ZodDefault<z.ZodNumber>;
|
|
136
117
|
mission_path: z.ZodOptional<z.ZodString>;
|
|
137
|
-
}, z.core.$strip
|
|
118
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
119
|
+
archive_destination: string;
|
|
120
|
+
rollup_stale_days: number;
|
|
121
|
+
mission_path?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
archive_destination?: string | undefined;
|
|
124
|
+
archive_path?: string | undefined;
|
|
125
|
+
rollup_stale_days: number;
|
|
126
|
+
mission_path?: string | undefined;
|
|
127
|
+
}>>;
|
|
138
128
|
harness: z.ZodPipe<z.ZodObject<{
|
|
139
129
|
skills_path: z.ZodOptional<z.ZodString>;
|
|
140
130
|
procedures_path: z.ZodOptional<z.ZodString>;
|
|
@@ -152,19 +142,30 @@ export declare const StoreConfigSchema: z.ZodObject<{
|
|
|
152
142
|
conventions_path?: string | undefined;
|
|
153
143
|
convention_max_bytes?: number | undefined;
|
|
154
144
|
}>>;
|
|
155
|
-
adapters: z.ZodArray<z.ZodObject<{
|
|
145
|
+
adapters: z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
kind: z.ZodString;
|
|
148
|
+
module: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
150
|
+
id: string;
|
|
151
|
+
kind: string;
|
|
152
|
+
module?: string | undefined;
|
|
153
|
+
}[], {
|
|
154
|
+
id: string;
|
|
155
|
+
kind: string;
|
|
156
|
+
module?: string | undefined;
|
|
157
|
+
}[]>>, z.ZodArray<z.ZodObject<{
|
|
156
158
|
id: z.ZodString;
|
|
157
159
|
kind: z.ZodEnum<{
|
|
158
|
-
forge: "forge";
|
|
159
160
|
"harness-generation": "harness-generation";
|
|
160
161
|
}>;
|
|
161
162
|
module: z.ZodOptional<z.ZodString>;
|
|
162
|
-
|
|
163
|
+
skills_dir: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
163
165
|
}, z.core.$loose>;
|
|
164
166
|
export type StoreConfig = z.infer<typeof StoreConfigSchema>;
|
|
165
167
|
export type TaxonomyLayerConfig = z.infer<typeof TaxonomyLayerSchema>;
|
|
166
168
|
export type GraphSettingsConfig = z.infer<typeof GraphSettingsSchema>;
|
|
167
|
-
export type HardWallConfig = z.infer<typeof HardWallSchema>;
|
|
168
169
|
export type AdapterDeclaration = z.infer<typeof AdapterDeclarationSchema>;
|
|
169
170
|
export {};
|
|
170
171
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH;;;;;;;;;;;;;;;;GAgBG;AACH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAYH;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB;;;;;iBAKvB,CAAC;AAkLH,QAAA,MAAM,wBAAwB;;;;;;;iBAM5B,CAAC;AAiBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBd,CAAC;AAEjB,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"}
|
package/dist/config/schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { DEFAULT_ARCHIVE_DESTINATION, DEFAULT_PUBLISH_PATH, DEFAULT_VENDORED_SKILLS } from './defaults.js';
|
|
2
3
|
/**
|
|
3
4
|
* store-lifecycle spec: schema_version versions STORE STATE (config shape +
|
|
4
5
|
* note frontmatter conventions) — a monotonic integer independent of the npm
|
|
@@ -6,10 +7,9 @@ import { z } from 'zod';
|
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* Bumped to 2 by the visibility-field key rename migration (store-lifecycle
|
|
9
|
-
* spec task 9.2)
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* config.fields.visibility, never a literal key, so nothing else changed.
|
|
10
|
+
* spec task 9.2). Both that field and the config key naming it were removed
|
|
11
|
+
* at schema 7 (see below); the migration survives only to keep the 1 -> 2
|
|
12
|
+
* step in the chain intact.
|
|
13
13
|
*
|
|
14
14
|
* Bumped to 3 by the procedures-to-skills key rename migration
|
|
15
15
|
* (rename-procedures-to-skills, 0003-rename-procedures-path-to-skills):
|
|
@@ -22,7 +22,21 @@ import { z } from 'zod';
|
|
|
22
22
|
* `harness.conventions_path` -> `harness.guidance_path`. HarnessSchema's
|
|
23
23
|
* transform accepts the old key through this version too, the same way.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Bumped to 7 on main by the explanation-craft-skill migration
|
|
27
|
+
* (vendor-explanation-craft-skill, 0007-add-explanation-craft-skill), which
|
|
28
|
+
* pins its own local SCHEMA_VERSION and is unaffected by later bumps here.
|
|
29
|
+
*
|
|
30
|
+
* Bumped to 8 by the access-axis removal (retire-the-access-axes,
|
|
31
|
+
* drop-access-axes): the `visibility:` and `disclosure:` blocks and the
|
|
32
|
+
* `fields:` block that named the visibility frontmatter key are all gone.
|
|
33
|
+
* Unlike the rename migrations above, nothing here is accepted loosely for
|
|
34
|
+
* an older store — `noUnrecognizedConfigKeysCheck` derives from this
|
|
35
|
+
* schema's shape, so an unmigrated store fails `doctor` on the three stale
|
|
36
|
+
* keys until `ctxr migrate` drops them, exactly as `identity` did when
|
|
37
|
+
* remove-agent-identity retired it.
|
|
38
|
+
*/
|
|
39
|
+
export const SUPPORTED_SCHEMA_VERSION = 8;
|
|
26
40
|
export const TaxonomyLayerSchema = z.object({
|
|
27
41
|
name: z.string().min(1),
|
|
28
42
|
path: z.string().min(1),
|
|
@@ -33,29 +47,6 @@ const TaxonomySchema = z.object({
|
|
|
33
47
|
profile: z.string().min(1),
|
|
34
48
|
layers: z.array(TaxonomyLayerSchema),
|
|
35
49
|
});
|
|
36
|
-
/**
|
|
37
|
-
* Loose (passthrough), not strict: a later phase adding its own field key
|
|
38
|
-
* (e.g. audience tagging) must not force every existing store through a
|
|
39
|
-
* migration just to keep loading. schema_version bumps only on a genuinely
|
|
40
|
-
* incompatible change, never on an additive one.
|
|
41
|
-
*/
|
|
42
|
-
const FieldsSchema = z
|
|
43
|
-
.object({
|
|
44
|
-
visibility: z.string().min(1),
|
|
45
|
-
})
|
|
46
|
-
.passthrough();
|
|
47
|
-
const VisibilitySchema = z.object({
|
|
48
|
-
default_context: z.string().min(1),
|
|
49
|
-
directory_defaults: z.record(z.string(), z.string()).default({}),
|
|
50
|
-
/**
|
|
51
|
-
* context-visibility spec (visibility-contexts-and-wall-verdicts): which
|
|
52
|
-
* visibility VALUES each named context can see. A context with no entry
|
|
53
|
-
* sees exactly its own value (identity default) — so an unconfigured
|
|
54
|
-
* store behaves byte-identically to the equality matching this replaced,
|
|
55
|
-
* and an unknown context fails closed to that same identity match.
|
|
56
|
-
*/
|
|
57
|
-
contexts: z.record(z.string(), z.array(z.string())).default({}),
|
|
58
|
-
});
|
|
59
50
|
const DerivedSchema = z.object({
|
|
60
51
|
paths: z.array(z.string()),
|
|
61
52
|
});
|
|
@@ -87,17 +78,9 @@ const RetrievalSchema = z.object({
|
|
|
87
78
|
const GitSchema = z.object({
|
|
88
79
|
default_branch: z.string().min(1),
|
|
89
80
|
});
|
|
90
|
-
/**
|
|
91
|
-
* write-lifecycle spec: `workspaces_external: true` marks a store whose
|
|
92
|
-
* session worktrees are created/removed by a process outside `ctxr` (e.g. an
|
|
93
|
-
* external agent-runtime WebUI) — `ctxr session reap` refuses to run rather
|
|
94
|
-
* than touch a worktree it does not own. Defaults to `false`, the prior
|
|
95
|
-
* behavior, for every store that does not set it.
|
|
96
|
-
*/
|
|
97
81
|
const SessionSchema = z.object({
|
|
98
82
|
branch_prefix: z.string().min(1),
|
|
99
83
|
worktrees_path: z.string().min(1),
|
|
100
|
-
workspaces_external: z.boolean().default(false),
|
|
101
84
|
});
|
|
102
85
|
/** session-capture-command spec (D5): declaring any path here turns the sanctioned-location gate on; empty (the default) leaves every in-store path accepted. */
|
|
103
86
|
const WriteLifecycleSchema = z.object({
|
|
@@ -109,25 +92,23 @@ const CatalogSchema = z.object({
|
|
|
109
92
|
section_max_bytes: z.number().int().positive(),
|
|
110
93
|
});
|
|
111
94
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
95
|
+
* publish spec (design.md): unlike every other tool-owned path field, this one is
|
|
96
|
+
* schema-optional with a default — a `contexture.yaml` written before this field
|
|
97
|
+
* existed has no `publish:` key at all, and `readConfig`'s strict `safeParse` has
|
|
98
|
+
* no default-merging, so a required field here would break every pre-existing
|
|
99
|
+
* store. `init` still writes it explicitly for a freshly generated config.
|
|
116
100
|
*/
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
audience: z.string().min(1),
|
|
120
|
-
/** Omitted means the wall applies to every note. */
|
|
121
|
-
note_path_prefix: z.string().min(1).optional(),
|
|
122
|
-
/** Audiences this wall does NOT apply to — evaluation falls through to later rungs for them. */
|
|
123
|
-
except: z.array(z.string()).optional(),
|
|
124
|
-
verdict: z.enum(['allow', 'deny', 'ask']),
|
|
101
|
+
const PublishSchema = z.object({
|
|
102
|
+
path: z.string().min(1).default(DEFAULT_PUBLISH_PATH),
|
|
125
103
|
});
|
|
126
|
-
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
104
|
+
/**
|
|
105
|
+
* harness-portability spec (vendored-craft-skills): which vendored
|
|
106
|
+
* third-party skills a store wants, defaulting to the shipped set so a
|
|
107
|
+
* `contexture.yaml` predating this key still parses. An empty list opts
|
|
108
|
+
* out entirely — same schema-optional-with-default shape as `publish`.
|
|
109
|
+
*/
|
|
110
|
+
const SkillsSchema = z.object({
|
|
111
|
+
vendored: z.array(z.string()).default([...DEFAULT_VENDORED_SKILLS]),
|
|
131
112
|
});
|
|
132
113
|
/** context-ingest spec: where capture lands raw material before ingest stamps identity onto it. */
|
|
133
114
|
const IngestSchema = z.object({
|
|
@@ -137,9 +118,26 @@ const IngestSchema = z.object({
|
|
|
137
118
|
.array(z.string())
|
|
138
119
|
.default(['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid']),
|
|
139
120
|
});
|
|
140
|
-
/**
|
|
141
|
-
|
|
142
|
-
|
|
121
|
+
/**
|
|
122
|
+
* context-organize spec: archive's destination — independent of taxonomy
|
|
123
|
+
* layers, so it works under any profile.
|
|
124
|
+
*
|
|
125
|
+
* archive-destination-from-taxonomy migration (0006): `archive_destination`
|
|
126
|
+
* is the current key; `archive_path` is its pre-migration name, accepted
|
|
127
|
+
* here so a store on schema 5 still loads. Like `harness.guidance_path` and
|
|
128
|
+
* unlike `harness.skills_path`, this key always had a workable default, so
|
|
129
|
+
* an unmigrated store loads silently onto that default rather than erroring
|
|
130
|
+
* — `ctxr migrate` rewrites the key (and, for a profile that declares a
|
|
131
|
+
* destination, the value) but nothing breaks before it runs.
|
|
132
|
+
*
|
|
133
|
+
* The transform below is the ONLY place the old spelling is read — every
|
|
134
|
+
* other consumer sees `config.organize.archive_destination` and nothing
|
|
135
|
+
* else, so `archive_path` never leaks past config loading.
|
|
136
|
+
*/
|
|
137
|
+
const OrganizeSchema = z
|
|
138
|
+
.object({
|
|
139
|
+
archive_destination: z.string().min(1).optional(),
|
|
140
|
+
archive_path: z.string().min(1).optional(),
|
|
143
141
|
/** store-primitives-from-migration-audit spec (D4): the grace period, in days, before a stale rollup is reported — bounds noise from a backlink edited moments ago. */
|
|
144
142
|
rollup_stale_days: z.number().int().nonnegative().default(7),
|
|
145
143
|
/**
|
|
@@ -151,7 +149,16 @@ const OrganizeSchema = z.object({
|
|
|
151
149
|
* time rather than backlinks (see `checkMissionStaleness`).
|
|
152
150
|
*/
|
|
153
151
|
mission_path: z.string().min(1).optional(),
|
|
154
|
-
})
|
|
152
|
+
})
|
|
153
|
+
.transform((value) => ({
|
|
154
|
+
archive_destination: value.archive_destination ?? value.archive_path ?? DEFAULT_ARCHIVE_DESTINATION,
|
|
155
|
+
rollup_stale_days: value.rollup_stale_days,
|
|
156
|
+
// Spread, not a plain key, so the output type keeps `mission_path`
|
|
157
|
+
// genuinely optional (`key?: string`) rather than always-present-but-
|
|
158
|
+
// possibly-undefined — the latter would force every `StoreConfig`
|
|
159
|
+
// object literal in the codebase to add the key just to compile.
|
|
160
|
+
...(value.mission_path !== undefined ? { mission_path: value.mission_path } : {}),
|
|
161
|
+
}));
|
|
155
162
|
/**
|
|
156
163
|
* harness-portability spec: the portable skill pack and the guidance
|
|
157
164
|
* documents (a shipped baseline convention file, the operator's own
|
|
@@ -220,29 +227,44 @@ const HarnessSchema = z
|
|
|
220
227
|
* v1 resolves every entry against the built-in adapter registry by
|
|
221
228
|
* (kind, id).
|
|
222
229
|
*/
|
|
223
|
-
const AdapterKindSchema = z.enum(['harness-generation'
|
|
230
|
+
const AdapterKindSchema = z.enum(['harness-generation']);
|
|
224
231
|
const AdapterDeclarationSchema = z.object({
|
|
225
232
|
id: z.string().min(1),
|
|
226
233
|
kind: AdapterKindSchema,
|
|
227
234
|
module: z.string().min(1).optional(),
|
|
235
|
+
/** vendored-craft-skills spec: overrides a harness-generation adapter's declared skillsDir for this store; equal to the configured skills path means no bridge is created. */
|
|
236
|
+
skills_dir: z.string().min(1).optional(),
|
|
228
237
|
});
|
|
238
|
+
/**
|
|
239
|
+
* session-keeps-only-what-git-cannot-do (D2): removing the `forge` kind
|
|
240
|
+
* outright would make a store still declaring `{ kind: forge }` fail to
|
|
241
|
+
* load at all — a shape error, not a migration opportunity — since
|
|
242
|
+
* `readConfig` runs this schema before `ctxr migrate` can act. Mirrors
|
|
243
|
+
* `HarnessSchema`'s fallback-transform precedent: accept the legacy shape
|
|
244
|
+
* loosely, drop it here, and let the schema_version < 5 migration rewrite
|
|
245
|
+
* the YAML on disk. Any OTHER unrecognized kind is a genuine error and
|
|
246
|
+
* still fails loudly against `AdapterDeclarationSchema` below.
|
|
247
|
+
*/
|
|
248
|
+
const AdaptersFieldSchema = z
|
|
249
|
+
.array(z.object({ id: z.string().min(1), kind: z.string().min(1), module: z.string().min(1).optional() }))
|
|
250
|
+
.transform((declarations) => declarations.filter((d) => d.kind !== 'forge'))
|
|
251
|
+
.pipe(z.array(AdapterDeclarationSchema));
|
|
229
252
|
export const StoreConfigSchema = z
|
|
230
253
|
.object({
|
|
231
254
|
schema_version: z.number().int().positive(),
|
|
232
255
|
taxonomy: TaxonomySchema,
|
|
233
|
-
fields: FieldsSchema,
|
|
234
|
-
visibility: VisibilitySchema,
|
|
235
256
|
derived: DerivedSchema,
|
|
236
257
|
retrieval: RetrievalSchema,
|
|
237
258
|
git: GitSchema,
|
|
238
259
|
session: SessionSchema,
|
|
239
260
|
write_lifecycle: WriteLifecycleSchema,
|
|
240
261
|
catalog: CatalogSchema,
|
|
241
|
-
|
|
262
|
+
publish: PublishSchema.default({ path: DEFAULT_PUBLISH_PATH }),
|
|
263
|
+
skills: SkillsSchema.default({ vendored: [...DEFAULT_VENDORED_SKILLS] }),
|
|
242
264
|
ingest: IngestSchema,
|
|
243
265
|
organize: OrganizeSchema,
|
|
244
266
|
harness: HarnessSchema,
|
|
245
|
-
adapters:
|
|
267
|
+
adapters: AdaptersFieldSchema,
|
|
246
268
|
})
|
|
247
269
|
.passthrough();
|
|
248
270
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE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15 @@ export declare function buildAgentsMissionSection(root: string, config: StoreCon
|
|
|
92
92
|
export declare const AGENTS_MD_CONVENTIONS_FENCE: import("./markers.js").Fence;
|
|
93
93
|
/** Exported so doctor/verify can check a specific convention file's inlined block for drift without re-deriving the format. */
|
|
94
94
|
export declare function renderConventionBlock(doc: ScannedDoc): string[];
|
|
95
|
+
/**
|
|
96
|
+
* What the baseline block names as its origin. It is not a path: the baseline
|
|
97
|
+
* is rendered from the shipped template and this store's configuration at
|
|
98
|
+
* generation time, and deliberately has no file in the guidance directory —
|
|
99
|
+
* its bytes live here and only here.
|
|
100
|
+
*/
|
|
101
|
+
export declare const BASELINE_SOURCE_LABEL = "contexture's shipped baseline, rendered from this store's configuration";
|
|
102
|
+
/** The shipped baseline as an inlined block, synthesized rather than read off disk. */
|
|
103
|
+
export declare function renderBaselineBlock(config: StoreConfig): string[];
|
|
95
104
|
export declare function renderConventionsSection(config: StoreConfig, conventions: readonly ScannedDoc[]): string[];
|
|
96
105
|
export declare function buildAgentsConventionsSection(root: string, config: StoreConfig): Promise<{
|
|
97
106
|
changed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents-doc.d.ts","sourceRoot":"","sources":["../../src/core/agents-doc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,OAAO,EAAsD,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"agents-doc.d.ts","sourceRoot":"","sources":["../../src/core/agents-doc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,OAAO,EAAsD,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiBvG,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,8BAA4C,CAAC;AA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