ctxr-cli 0.10.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 +11 -4
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +9 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/config/defaults.d.ts +59 -3
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +61 -3
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/schema.d.ts +4 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +14 -1
- 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/checks/integrity-checks.d.ts.map +1 -1
- package/dist/core/checks/integrity-checks.js +36 -0
- 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/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/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/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/reconcile.d.ts.map +1 -1
- package/dist/core/reconcile.js +8 -0
- package/dist/core/reconcile.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +25 -15
- 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 -1
- package/dist/core/write-lifecycle/path-gate.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 +4 -0
- 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/skills/ctxr-ingest-orchestration.md +4 -1
- package/templates/skills/ctxr-placement.md +21 -2
- package/templates/skills/ctxr-session-capture.md +5 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
date_created: "{{date}}"
|
|
3
|
+
title: "{{title}}"
|
|
4
|
+
tags:
|
|
5
|
+
- People
|
|
6
|
+
---
|
|
7
|
+
# {{title}}
|
|
8
|
+
|
|
9
|
+
## Bio
|
|
10
|
+
<!-- Who they are: current role, organization, relevant history. -->
|
|
11
|
+
|
|
12
|
+
## Relationship
|
|
13
|
+
<!-- How you know them, and in what context. -->
|
|
14
|
+
|
|
15
|
+
## Communication Log
|
|
16
|
+
<!-- Dated entries, one per exchange: ### YYYY-MM-DD — context -->
|
|
17
|
+
|
|
18
|
+
## Follow-ups
|
|
19
|
+
<!-- - [ ] Task text (added YYYY-MM-DD, due YYYY-MM-DD) -->
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
date_created: "{{date}}"
|
|
3
|
+
title: "{{title}}"
|
|
4
|
+
tags:
|
|
5
|
+
- Project
|
|
6
|
+
---
|
|
7
|
+
# {{title}}
|
|
8
|
+
|
|
9
|
+
## Goal
|
|
10
|
+
<!-- What done looks like. Work with no end state is an area, not a project. -->
|
|
11
|
+
|
|
12
|
+
## Open threads
|
|
13
|
+
<!-- Unresolved decisions and blockers; each links where it was raised. -->
|
|
14
|
+
|
|
15
|
+
## Follow-ups
|
|
16
|
+
<!-- - [ ] Task text (added YYYY-MM-DD, due YYYY-MM-DD) -->
|
|
17
|
+
|
|
18
|
+
## Related
|
|
19
|
+
<!-- Links out to related notes. -->
|
|
@@ -38,7 +38,10 @@ to put the file — "create a new note" is one option among several, never the d
|
|
|
38
38
|
- Source discipline: a field the source does not confirm is "not reported" — never inferred from
|
|
39
39
|
silence in either direction.
|
|
40
40
|
5. Write the note the decision calls for — create it, expand it, merge, restructure, or add a section —
|
|
41
|
-
preserving prior content in every case but the deliberate rewrite.
|
|
41
|
+
preserving prior content in every case but the deliberate rewrite. A NEW note starts from a template
|
|
42
|
+
under `__TEMPLATES_PATH__`, with `{{title}}` and `{{date}}` substituted as you write (`ctxr-placement`
|
|
43
|
+
picks which). An EXISTING note is extended in place — never re-cut from a template, which would throw
|
|
44
|
+
away the content that made it worth expanding.
|
|
42
45
|
6. Register the source against whatever note you just wrote:
|
|
43
46
|
`ctxr ingest <path> --into <note> --source-type <type> --source-id <id>`. Every row of the table above
|
|
44
47
|
ends here, not just the first: the command retains the capture under the capture tier's month, freezes
|
|
@@ -9,8 +9,20 @@ __LAYER_STEP__
|
|
|
9
9
|
- Match on what the content IS. When two sibling locations both seem to fit, name the distinction between
|
|
10
10
|
them (abstract vs concrete; outward-facing vs inward-facing; who-we-are vs how-it-runs) and pick by
|
|
11
11
|
altitude and audience, not by keyword.
|
|
12
|
-
-
|
|
13
|
-
|
|
12
|
+
- If the chosen location has a `README.md`, read it first: a folder with one answer about what its notes
|
|
13
|
+
look like states it there, and that answer wins over anything you would infer.
|
|
14
|
+
|
|
15
|
+
## 2b. Which template?
|
|
16
|
+
|
|
17
|
+
Start a new note from a template under `__TEMPLATES_PATH__` — never a blank file, and never by copying a
|
|
18
|
+
sibling wholesale. List that directory and pick the kind the content actually is; `Note` is the base when
|
|
19
|
+
nothing more specific fits, and it is also the file to copy when this store needs a kind it does not have.
|
|
20
|
+
Substitute `{{title}}` and `{{date}}` as you write — no command expands them, and `ctxr lint` reports a
|
|
21
|
+
note that lands with one still in it.
|
|
22
|
+
|
|
23
|
+
The template is the starting shape, not a cage: delete a section that does not apply rather than leaving
|
|
24
|
+
it empty, and add one the note needs. Read a sibling note only for what the template leaves open — house
|
|
25
|
+
phrasing, bullets vs prose, which tags this location uses.
|
|
14
26
|
|
|
15
27
|
## 3. Sub-item under an existing location, or a new top-level one?
|
|
16
28
|
|
|
@@ -37,6 +49,13 @@ manufactures an artifact for the graveyard; capture the durable slice by hand in
|
|
|
37
49
|
Add a one-line wikilink from the relevant hub note so the new note is not an orphan; `ctxr lint` flags
|
|
38
50
|
orphans and notes without a catalog entry.
|
|
39
51
|
|
|
52
|
+
## An existing note
|
|
53
|
+
|
|
54
|
+
A note that already exists is EXTENDED, never restarted from a template: add the section it now needs,
|
|
55
|
+
preserve what is there, and leave its frontmatter alone. Re-cutting a note from a template to "bring it up
|
|
56
|
+
to standard" destroys the content that made it worth keeping — a note that has outgrown its starting shape
|
|
57
|
+
is doing the right thing.
|
|
58
|
+
|
|
40
59
|
## Relocating an existing note
|
|
41
60
|
|
|
42
61
|
`ctxr archive <path>` to retire it; a plain tracked `git mv` for an ordinary re-placement. Either way the
|
|
@@ -84,7 +84,11 @@ notes:
|
|
|
84
84
|
path: <layer>/<location>/<Title>.md
|
|
85
85
|
mode: create # or: append
|
|
86
86
|
body: |
|
|
87
|
-
|
|
87
|
+
for create: started from a template under `__TEMPLATES_PATH__`, with {{title}} and {{date}}
|
|
88
|
+
substituted, sections that do not apply deleted rather than left empty
|
|
89
|
+
for append: only the new material, extending the note rather than restarting it — the
|
|
90
|
+
command appends your body verbatim and never rewrites what is already there
|
|
91
|
+
(`ctxr-placement` decides both the location and the template)
|
|
88
92
|
```
|
|
89
93
|
|
|
90
94
|
Then run `ctxr session capture --proposal <file>`. It validates and writes every item independently —
|