@redaksjon/protokoll 0.0.7 → 0.0.9

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.
Files changed (151) hide show
  1. package/.cursor/rules/definition-of-done.md +89 -0
  2. package/.cursor/rules/no-emoticons.md +43 -0
  3. package/LICENSE +1 -1
  4. package/README.md +928 -35
  5. package/dist/agentic/executor.js +315 -0
  6. package/dist/agentic/executor.js.map +1 -0
  7. package/dist/agentic/index.js +19 -0
  8. package/dist/agentic/index.js.map +1 -0
  9. package/dist/agentic/registry.js +41 -0
  10. package/dist/agentic/registry.js.map +1 -0
  11. package/dist/agentic/tools/lookup-person.js +66 -0
  12. package/dist/agentic/tools/lookup-person.js.map +1 -0
  13. package/dist/agentic/tools/lookup-project.js +93 -0
  14. package/dist/agentic/tools/lookup-project.js.map +1 -0
  15. package/dist/agentic/tools/route-note.js +45 -0
  16. package/dist/agentic/tools/route-note.js.map +1 -0
  17. package/dist/agentic/tools/store-context.js +51 -0
  18. package/dist/agentic/tools/store-context.js.map +1 -0
  19. package/dist/agentic/tools/verify-spelling.js +57 -0
  20. package/dist/agentic/tools/verify-spelling.js.map +1 -0
  21. package/dist/arguments.js +23 -6
  22. package/dist/arguments.js.map +1 -1
  23. package/dist/constants.js +13 -11
  24. package/dist/constants.js.map +1 -1
  25. package/dist/context/discovery.js +114 -0
  26. package/dist/context/discovery.js.map +1 -0
  27. package/dist/context/index.js +58 -0
  28. package/dist/context/index.js.map +1 -0
  29. package/dist/context/storage.js +131 -0
  30. package/dist/context/storage.js.map +1 -0
  31. package/dist/interactive/handler.js +223 -0
  32. package/dist/interactive/handler.js.map +1 -0
  33. package/dist/interactive/index.js +18 -0
  34. package/dist/interactive/index.js.map +1 -0
  35. package/dist/interactive/onboarding.js +28 -0
  36. package/dist/interactive/onboarding.js.map +1 -0
  37. package/dist/main.js +0 -0
  38. package/dist/output/index.js +8 -0
  39. package/dist/output/index.js.map +1 -0
  40. package/dist/output/manager.js +105 -0
  41. package/dist/output/manager.js.map +1 -0
  42. package/dist/phases/complete.js +107 -0
  43. package/dist/phases/complete.js.map +1 -0
  44. package/dist/phases/locate.js +14 -5
  45. package/dist/phases/locate.js.map +1 -1
  46. package/dist/pipeline/index.js +8 -0
  47. package/dist/pipeline/index.js.map +1 -0
  48. package/dist/pipeline/orchestrator.js +281 -0
  49. package/dist/pipeline/orchestrator.js.map +1 -0
  50. package/dist/prompt/instructions/transcribe.md +6 -6
  51. package/dist/prompt/personas/transcriber.md +5 -5
  52. package/dist/protokoll.js +38 -5
  53. package/dist/protokoll.js.map +1 -1
  54. package/dist/reasoning/client.js +150 -0
  55. package/dist/reasoning/client.js.map +1 -0
  56. package/dist/reasoning/index.js +36 -0
  57. package/dist/reasoning/index.js.map +1 -0
  58. package/dist/reasoning/strategy.js +60 -0
  59. package/dist/reasoning/strategy.js.map +1 -0
  60. package/dist/reflection/collector.js +124 -0
  61. package/dist/reflection/collector.js.map +1 -0
  62. package/dist/reflection/index.js +16 -0
  63. package/dist/reflection/index.js.map +1 -0
  64. package/dist/reflection/reporter.js +238 -0
  65. package/dist/reflection/reporter.js.map +1 -0
  66. package/dist/routing/classifier.js +201 -0
  67. package/dist/routing/classifier.js.map +1 -0
  68. package/dist/routing/index.js +27 -0
  69. package/dist/routing/index.js.map +1 -0
  70. package/dist/routing/router.js +153 -0
  71. package/dist/routing/router.js.map +1 -0
  72. package/dist/transcription/index.js +41 -0
  73. package/dist/transcription/index.js.map +1 -0
  74. package/dist/transcription/service.js +64 -0
  75. package/dist/transcription/service.js.map +1 -0
  76. package/dist/transcription/types.js +31 -0
  77. package/dist/transcription/types.js.map +1 -0
  78. package/dist/util/media.js +4 -4
  79. package/dist/util/media.js.map +1 -1
  80. package/dist/util/metadata.js +95 -0
  81. package/dist/util/metadata.js.map +1 -0
  82. package/dist/util/storage.js +2 -2
  83. package/dist/util/storage.js.map +1 -1
  84. package/docs/examples.md +224 -0
  85. package/docs/index.html +5 -3
  86. package/docs/package-lock.json +639 -332
  87. package/docs/package.json +5 -4
  88. package/docs/troubleshooting.md +257 -0
  89. package/docs/vite.config.js +9 -3
  90. package/eslint.config.mjs +1 -0
  91. package/guide/architecture.md +217 -0
  92. package/guide/configuration.md +199 -0
  93. package/guide/context-system.md +215 -0
  94. package/guide/development.md +273 -0
  95. package/guide/index.md +91 -0
  96. package/guide/interactive.md +199 -0
  97. package/guide/quickstart.md +138 -0
  98. package/guide/reasoning.md +193 -0
  99. package/guide/routing.md +222 -0
  100. package/package.json +79 -76
  101. package/tsconfig.tsbuildinfo +1 -1
  102. package/vitest.config.ts +27 -5
  103. package/dist/phases/transcribe.js +0 -149
  104. package/dist/phases/transcribe.js.map +0 -1
  105. package/dist/processor.js +0 -35
  106. package/dist/processor.js.map +0 -1
  107. package/dist/prompt/transcribe.js +0 -41
  108. package/dist/prompt/transcribe.js.map +0 -1
  109. package/dist/util/general.js +0 -39
  110. package/dist/util/general.js.map +0 -1
  111. package/dist/util/openai.js +0 -92
  112. package/dist/util/openai.js.map +0 -1
  113. package/output/kodrdriv/250702-1905-commit-message.md +0 -1
  114. package/output/kodrdriv/250702-1905-commit.request.json +0 -14
  115. package/output/kodrdriv/250702-1905-commit.response.json +0 -36
  116. package/output/kodrdriv/250702-1906-commit-message.md +0 -1
  117. package/output/kodrdriv/250702-1907-commit-message.md +0 -1
  118. package/output/kodrdriv/250702-1907-commit.request.json +0 -14
  119. package/output/kodrdriv/250702-1907-commit.response.json +0 -36
  120. package/output/kodrdriv/250716-1517-review-analysis.md +0 -39
  121. package/output/kodrdriv/250716-1517-review-notes.md +0 -69
  122. package/output/kodrdriv/250716-1518-review-analysis.md +0 -15
  123. package/output/kodrdriv/250716-1518-review-notes.md +0 -67
  124. package/output/kodrdriv/250716-1523-review-analysis.md +0 -36
  125. package/output/kodrdriv/250716-1523-review-notes.md +0 -87
  126. package/output/kodrdriv/250722-1135-commit-message.md +0 -1
  127. package/output/kodrdriv/250722-1331-commit-message.md +0 -1
  128. package/output/kodrdriv/250722-1335-commit-message.md +0 -1
  129. package/output/kodrdriv/250722-1337-commit-message.md +0 -1
  130. package/output/kodrdriv/250722-1342-release-notes.md +0 -26
  131. package/output/kodrdriv/250722-1416-commit-message.md +0 -3
  132. package/output/kodrdriv/250722-1420-commit-message.md +0 -1
  133. package/output/kodrdriv/250722-1422-commit-message.md +0 -1
  134. package/output/kodrdriv/250722-1423-commit-message.md +0 -1
  135. package/output/kodrdriv/250722-1425-release-notes.md +0 -41
  136. package/output/kodrdriv/250722-1527-commit-message.md +0 -13
  137. package/output/kodrdriv/250722-1532-commit-message.md +0 -1
  138. package/output/kodrdriv/250722-1532-release-notes.md +0 -32
  139. package/output/kodrdriv/250722-2314-review-analysis.md +0 -28
  140. package/output/kodrdriv/250722-2314-review-notes.md +0 -464
  141. package/output/kodrdriv/250722-2315-review-analysis.md +0 -28
  142. package/output/kodrdriv/250722-2315-review-notes.md +0 -477
  143. package/output/kodrdriv/250804-1623-review-analysis.md +0 -38
  144. package/output/kodrdriv/250804-1623-review-notes.md +0 -479
  145. package/output/kodrdriv/250804-1638-review-analysis.md +0 -56
  146. package/output/kodrdriv/250804-1638-review-notes.md +0 -502
  147. package/output/kodrdriv/250812-2021-review-analysis.md +0 -27
  148. package/output/kodrdriv/250812-2021-review-notes.md +0 -571
  149. package/output/kodrdriv/250826-0700-commit-message.md +0 -12
  150. package/output/kodrdriv/RELEASE_NOTES.md +0 -30
  151. package/output/kodrdriv/RELEASE_TITLE.md +0 -1
@@ -0,0 +1,89 @@
1
+ # Definition of DONE
2
+
3
+ ## Critical Requirement
4
+
5
+ **A feature, bugfix, or enhancement is NOT DONE until `npm run precommit` passes completely.**
6
+
7
+ ### What `npm run precommit` Includes
8
+
9
+ The precommit script runs two critical checks sequentially:
10
+
11
+ 1. **Linting** (`npm run lint`)
12
+ - ESLint checks for code quality issues
13
+ - No console statements without explicit `@typescript-eslint/no-unused-vars` disable comments
14
+ - No unused imports or variables
15
+ - Proper TypeScript types and no `any` unless explicitly needed
16
+ - Code style consistency
17
+
18
+ 2. **Testing** (`npm run test`)
19
+ - All unit tests must pass
20
+ - Test coverage must meet thresholds (currently 80%+ for statements/lines, 65%+ for branches)
21
+ - No failing or skipped tests (except known skips that are documented)
22
+
23
+ ### The Complete Success Criteria
24
+
25
+ For work to be considered complete:
26
+
27
+ ```bash
28
+ npm run precommit # Must exit with code 0 (success)
29
+ ```
30
+
31
+ This single command encompasses:
32
+ - ✅ Linting passes (no errors or warnings)
33
+ - ✅ All tests pass
34
+ - ✅ Code coverage maintained or improved
35
+ - ✅ No console statements that violate style rules
36
+ - ✅ No unused imports or variables
37
+
38
+ ### Common Issues and Fixes
39
+
40
+ #### console.log() Statements
41
+ If linting fails with "Unexpected console statement":
42
+
43
+ ```typescript
44
+ // WRONG - fails linting
45
+ console.log("some output");
46
+
47
+ // RIGHT - use eslint-disable comment
48
+ // eslint-disable-next-line no-console
49
+ console.log("some output");
50
+ ```
51
+
52
+ Or use logger instead:
53
+ ```typescript
54
+ logger.info('message with %s', variable);
55
+ ```
56
+
57
+ #### Unused Imports
58
+ If linting fails with "is defined but never used":
59
+ - Remove the unused import
60
+ - Don't leave imports just in case they might be needed
61
+
62
+ #### Test Failures
63
+ If tests fail:
64
+ - Run `npm test` to see detailed errors
65
+ - Fix the underlying issue, not the test
66
+ - Ensure edge cases are covered
67
+
68
+ ### CI/CD Integration
69
+
70
+ When submitting PRs or merging code:
71
+ - The CI pipeline will run `npm run precommit`
72
+ - If it fails, the build is blocked
73
+ - This prevents broken code from reaching production
74
+
75
+ ### Quality Bar
76
+
77
+ This definition of DONE ensures:
78
+ - Code quality is consistent across the project
79
+ - Tests catch regressions early
80
+ - Linting prevents common mistakes
81
+ - Coverage metrics track code reliability
82
+ - All code follows the same standards
83
+
84
+ ### Remember
85
+
86
+ **Tests passing alone is not enough.** Linting must also pass.
87
+
88
+ Both are equally important to code quality.
89
+
@@ -0,0 +1,43 @@
1
+ # No Emoticons in Documentation
2
+
3
+ Do not use emoticons or emoji in documentation files including:
4
+
5
+ - README.md
6
+ - Guide files (guide/*.md)
7
+ - Documentation files (docs/*.md)
8
+ - Prompt files (src/prompt/**/*.md)
9
+ - Any other markdown or documentation files
10
+
11
+ ## Exceptions
12
+
13
+ The only acceptable use of special characters in documentation is:
14
+
15
+ - Standard table checkmarks: ✅ (for completed/success status)
16
+ - Standard table X marks: ❌ (for failed/error status)
17
+
18
+ These should only be used in status tables, not in prose or headings.
19
+
20
+ ## Examples
21
+
22
+ **Bad:**
23
+ ```markdown
24
+ ## 🚀 Getting Started
25
+ ### 🎯 Features
26
+ - 📝 Smart transcription
27
+ ```
28
+
29
+ **Good:**
30
+ ```markdown
31
+ ## Getting Started
32
+ ### Features
33
+ - Smart transcription
34
+ ```
35
+
36
+ **Acceptable (in status tables only):**
37
+ ```markdown
38
+ | Step | Status |
39
+ |------|--------|
40
+ | Build | ✅ |
41
+ | Test | ❌ |
42
+ ```
43
+
package/LICENSE CHANGED
@@ -175,7 +175,7 @@
175
175
 
176
176
  END OF TERMS AND CONDITIONS
177
177
 
178
- Copyright 2025 Simran Jafari
178
+ Copyright 2025 Tim O'Brien
179
179
 
180
180
  Licensed under the Apache License, Version 2.0 (the "License");
181
181
  you may not use this file except in compliance with the License.