project-logbook 1.1.0 → 1.2.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.
@@ -65,7 +65,17 @@ Once the work is ready:
65
65
 
66
66
  The linter enforces rules to be followed.
67
67
 
68
- ### 4. Final Review
68
+ ### 4. Interactive Local QA Loop
69
+ Development is an iterative process. Expect to go through several feedback loops with the prompter before a ticket is finalized:
70
+ - **Test & Challenge**: The prompter will run and test your changes, challenge architectural patterns, and suggest revisions.
71
+ - **Cycle Routine**: During each feedback round:
72
+ 1. Update code according to feedback.
73
+ 2. Log key decisions, errors, and pivots in `log.md` (`logbook log "..."`).
74
+ 3. Keep the story in `index.md` fully up-to-date with any design/code changes.
75
+ 4. Run `npm run pre` to verify linting and tests pass.
76
+ - **Commit Optimization**: Once the implementation is solid, optimize the final git commit message to match project standards before releasing.
77
+
78
+ ### 5. Final Review
69
79
  Use the preview command to see how your entry looks in the context of the whole project:
70
80
  ```bash
71
81
  logbook preview
@@ -88,9 +98,31 @@ If `jiraPrefix` is configured, entry folder names and ticket references must mat
88
98
 
89
99
  ## Research Logs
90
100
  For exploratory research, technical spike investigations, and architectural decision groundwork, we use **Research Logs**.
91
- - **Location**: Stored in `docs/research/` (configurable via `researchDir`).
92
- - **Scaffolding**: Run `logbook new [ID] [Slug] --research` or `logbook new -r` to scaffold. This automatically generates a numeric ID prefixed with `RES-` (e.g. `RES-1`).
101
+
102
+ - **Required Setup**: Before creating your first research log, ensure that your configured research directory exists on your filesystem (for example, create it using `mkdir -p docs/research`).
103
+ - **Location**: Stored in `docs/research/` (configurable via `researchDir` in `.project-logbook`).
104
+ - **Scaffolding**: Run `logbook new [ID] [Slug] --research` or `logbook new -r` to scaffold. This automatically generates a numeric ID prefixed with `RES-` (e.g., `RES-1`).
93
105
  - **Commands**: Commands like `logbook start RES-1`, `logbook log`, and `logbook release` work transparently.
94
106
  - **Auto-Activity Tracking**: Writing a log message via `logbook log` automatically updates the `updated` frontmatter field inside the research log's `index.md`.
95
107
  - **Status Lifecycle**: The frontmatter `status` field tracks progress: `active`, `paused`, `postponed`, or `completed`.
96
108
  - **Visuals**: Research logs are compiled and displayed under a dedicated "Research" tab on the built logbook homepage, sorted by their latest `updated` date.
109
+
110
+ ## Custom Storyline Types
111
+ Beyond standard logbook entries and Research Logs, you can define completely custom storyline types (e.g., "analyses", "spikes", "decisions") in `.project-logbook`.
112
+
113
+ - **Required Setup**: Define the custom types inside your `.project-logbook` configuration file under `customTypes` and ensure the directory exists on your filesystem:
114
+ ```json
115
+ {
116
+ "customTypes": {
117
+ "analyses": {
118
+ "prefix": "ANA",
119
+ "dir": "docs/analyses",
120
+ "tabTitle": "Analyses",
121
+ "sortBy": "updated"
122
+ }
123
+ }
124
+ }
125
+ ```
126
+ - **Directory Setup**: Ensure the directory configured (e.g., `docs/analyses`) is created on your filesystem (for example, create it using `mkdir -p docs/analyses`).
127
+ - **Scaffolding**: Run `logbook new [ID] [Slug] --type analyses` or `logbook new -t analyses` to scaffold the entry.
128
+ - **Visuals**: Just like Research Logs, these custom types will automatically compile into dedicated tabs on the built logbook homepage using your specified `tabTitle`.
@@ -0,0 +1,34 @@
1
+ ---
2
+ id: [ID_NUM]
3
+ title: [YAML_TITLE]
4
+ status: "proposed"
5
+ date: [DATE]
6
+ author: "[AUTHOR]"
7
+ superseded_by: null
8
+ tags: []
9
+ ---
10
+
11
+ # ADR [ID]: [TITLE]
12
+
13
+ ## Context
14
+ [Describe the issue motivating this decision and any context that influences it.]
15
+
16
+ ## Considered Options
17
+ 1. **[Option A]**: [Brief description.]
18
+ 2. **[Option B]**: [Brief description.]
19
+
20
+ ## Decision
21
+ [State the decision and briefly explain what it means in practice.]
22
+
23
+ ## Rationale
24
+ [Explain why this option was chosen over the alternatives.]
25
+
26
+ ## Consequences
27
+
28
+ ### Positive
29
+ * [Benefit 1]
30
+ * [Benefit 2]
31
+
32
+ ### Negative
33
+ * [Drawback 1]
34
+ * [Drawback 2]
@@ -2,7 +2,7 @@
2
2
  # The ticket field should match the ID portion (e.g., LB-34)
3
3
  ticket: {{id}}
4
4
  # The title should be a human-readable description of the work
5
- title: {{title}}
5
+ title: {{yamlTitle}}
6
6
  prompter: "[PROMPTER]"
7
7
  harness: "[HARNESS]"
8
8
  llm: "[LLM]"
@@ -27,9 +27,10 @@ TODO: Write a polished, highly readable ticket summary that reads like an engagi
27
27
 
28
28
  ### Formatting & Style Rules:
29
29
  - **Maintain the narrative tone:** TODO: Keep the storytelling flair (e.g., describing how problems accumulated or how gaps surfaced), but stay strictly factual based on the provided changes.
30
- - **Add thematic headings:** TODO: Break the narrative down into logical chapters using Markdown headings (e.g., ### The Friction Points, ### The Fix, ### Closing the Gap).
31
- - **Use bullet points:** TODO: Whenever listing multiple items (like friction points, test scenarios, or rewritten paths), use a bulleted list instead of a dense paragraph to make it scannable.
30
+ - **Add thematic headings:** TODO: Break the narrative down into logical chapters using action-oriented Markdown subheadings that describe what was improved/solved (e.g., ### Improving TabGroup Accessibility, ### Binding Dialog Colors to the Theme) rather than dry, generic headers like "Friction" or "The Fix".
31
+ - **Avoid forced bullet points:** TODO: Write in natural, flowing paragraphs (like in a dev blog post). Only use bullet points for actual, simple lists of items (e.g., list of modified files or configuration options), never to structure or split your main story thoughts.
32
32
  - **Use bold emphasis:** TODO: Bold key concepts, problems, and solutions to guide the reader's eye.
33
33
  - **Format code:** TODO: Use inline backticks for files, plugins, HTML elements, and code snippets (e.g., `src/lib/build-helpers.ts`).
34
- - **Keep paragraphs short:** TODO: Ensure no paragraph is longer than 3-4 sentences. Keep the pacing quick and engaging.
34
+ - **Keep paragraphs short:** TODO: Ensure no paragraph is longer than 4 sentences. Keep the pacing quick and engaging.
35
+ - **Weave the narrative:** TODO: Do not list all friction points in one massive block followed by all fixes/solutions in another. Instead, weave them together chronologically or by component/theme (e.g., describe the friction and its corresponding fix within the same chapter or paragraph).
35
36
  - **Do not state the obvious**: TODO: Passed tests, lints, pre-commit suites are mandatory and no ticket is released without this. This does not need to be mentioned
@@ -33,9 +33,22 @@ You MUST log your work continuously using `logbook log "<message>"`. This is not
33
33
  Phase 3: Synthesize
34
34
  1. When implementation is finished, write the narrative in `index.md`.
35
35
  2. Storytelling Mode: Explain the "Why" and the "Journey." Avoid simple technical bullet points.
36
+ - **Keep paragraphs short**: Max 4 sentences per paragraph to ensure fast-paced, readable prose.
37
+ - **Use bold & code formatting**: Use inline backticks for files/code, and bolding for key terms/problems.
38
+ - **Structure with H3 headings**: Use action-oriented subheadings describing the topic/component modified (e.g., ### Improving TabGroup Accessibility, ### Binding Dialog Colors to the Theme) instead of generic "Friction" or "Fix" headers.
39
+ - **Avoid forced lists**: Write in natural, flowing paragraphs. Only use bullet points for simple lists of items (e.g., files modified, options checked), never to split or structure your core narrative thoughts.
40
+ - **Weave friction & fix**: Do not separate all problems into one block and all solutions into another. Weave them together chronologically or group them by component/theme.
36
41
  3. Clean up all template placeholders and complete the frontmatter (author, summary, dates).
37
42
 
38
43
  Phase 4: Verify
39
44
  1. Run `npm run pre` (which includes `logbook lint` and other quality gates).
40
45
  2. Ensure there are no linter errors, unreplaced placeholders, or architectural violations before concluding your work.
41
- 3. Hand back to the prompter, who will review and run `logbook release`.
46
+ 3. Hand back to the prompter for local QA/review.
47
+
48
+ Phase 5: Local QA & Iterative Refinement
49
+ 1. Expect feedback loops: The prompter will test your changes, challenge decisions, and request refinements.
50
+ 2. In each iteration loop:
51
+ - Log decisions and pivots in `log.md` in real-time (`logbook log "<message>"`).
52
+ - Update the story in `index.md` to reflect any design/code changes.
53
+ - Run verification again (`npm run pre`).
54
+ 3. Optimize the git commit message (conforming to project standards) before final release.