@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.
- package/.cursor/rules/definition-of-done.md +89 -0
- package/.cursor/rules/no-emoticons.md +43 -0
- package/LICENSE +1 -1
- package/README.md +928 -35
- package/dist/agentic/executor.js +315 -0
- package/dist/agentic/executor.js.map +1 -0
- package/dist/agentic/index.js +19 -0
- package/dist/agentic/index.js.map +1 -0
- package/dist/agentic/registry.js +41 -0
- package/dist/agentic/registry.js.map +1 -0
- package/dist/agentic/tools/lookup-person.js +66 -0
- package/dist/agentic/tools/lookup-person.js.map +1 -0
- package/dist/agentic/tools/lookup-project.js +93 -0
- package/dist/agentic/tools/lookup-project.js.map +1 -0
- package/dist/agentic/tools/route-note.js +45 -0
- package/dist/agentic/tools/route-note.js.map +1 -0
- package/dist/agentic/tools/store-context.js +51 -0
- package/dist/agentic/tools/store-context.js.map +1 -0
- package/dist/agentic/tools/verify-spelling.js +57 -0
- package/dist/agentic/tools/verify-spelling.js.map +1 -0
- package/dist/arguments.js +23 -6
- package/dist/arguments.js.map +1 -1
- package/dist/constants.js +13 -11
- package/dist/constants.js.map +1 -1
- package/dist/context/discovery.js +114 -0
- package/dist/context/discovery.js.map +1 -0
- package/dist/context/index.js +58 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/storage.js +131 -0
- package/dist/context/storage.js.map +1 -0
- package/dist/interactive/handler.js +223 -0
- package/dist/interactive/handler.js.map +1 -0
- package/dist/interactive/index.js +18 -0
- package/dist/interactive/index.js.map +1 -0
- package/dist/interactive/onboarding.js +28 -0
- package/dist/interactive/onboarding.js.map +1 -0
- package/dist/main.js +0 -0
- package/dist/output/index.js +8 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/manager.js +105 -0
- package/dist/output/manager.js.map +1 -0
- package/dist/phases/complete.js +107 -0
- package/dist/phases/complete.js.map +1 -0
- package/dist/phases/locate.js +14 -5
- package/dist/phases/locate.js.map +1 -1
- package/dist/pipeline/index.js +8 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/pipeline/orchestrator.js +281 -0
- package/dist/pipeline/orchestrator.js.map +1 -0
- package/dist/prompt/instructions/transcribe.md +6 -6
- package/dist/prompt/personas/transcriber.md +5 -5
- package/dist/protokoll.js +38 -5
- package/dist/protokoll.js.map +1 -1
- package/dist/reasoning/client.js +150 -0
- package/dist/reasoning/client.js.map +1 -0
- package/dist/reasoning/index.js +36 -0
- package/dist/reasoning/index.js.map +1 -0
- package/dist/reasoning/strategy.js +60 -0
- package/dist/reasoning/strategy.js.map +1 -0
- package/dist/reflection/collector.js +124 -0
- package/dist/reflection/collector.js.map +1 -0
- package/dist/reflection/index.js +16 -0
- package/dist/reflection/index.js.map +1 -0
- package/dist/reflection/reporter.js +238 -0
- package/dist/reflection/reporter.js.map +1 -0
- package/dist/routing/classifier.js +201 -0
- package/dist/routing/classifier.js.map +1 -0
- package/dist/routing/index.js +27 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/router.js +153 -0
- package/dist/routing/router.js.map +1 -0
- package/dist/transcription/index.js +41 -0
- package/dist/transcription/index.js.map +1 -0
- package/dist/transcription/service.js +64 -0
- package/dist/transcription/service.js.map +1 -0
- package/dist/transcription/types.js +31 -0
- package/dist/transcription/types.js.map +1 -0
- package/dist/util/media.js +4 -4
- package/dist/util/media.js.map +1 -1
- package/dist/util/metadata.js +95 -0
- package/dist/util/metadata.js.map +1 -0
- package/dist/util/storage.js +2 -2
- package/dist/util/storage.js.map +1 -1
- package/docs/examples.md +224 -0
- package/docs/index.html +5 -3
- package/docs/package-lock.json +639 -332
- package/docs/package.json +5 -4
- package/docs/troubleshooting.md +257 -0
- package/docs/vite.config.js +9 -3
- package/eslint.config.mjs +1 -0
- package/guide/architecture.md +217 -0
- package/guide/configuration.md +199 -0
- package/guide/context-system.md +215 -0
- package/guide/development.md +273 -0
- package/guide/index.md +91 -0
- package/guide/interactive.md +199 -0
- package/guide/quickstart.md +138 -0
- package/guide/reasoning.md +193 -0
- package/guide/routing.md +222 -0
- package/package.json +79 -76
- package/tsconfig.tsbuildinfo +1 -1
- package/vitest.config.ts +27 -5
- package/dist/phases/transcribe.js +0 -149
- package/dist/phases/transcribe.js.map +0 -1
- package/dist/processor.js +0 -35
- package/dist/processor.js.map +0 -1
- package/dist/prompt/transcribe.js +0 -41
- package/dist/prompt/transcribe.js.map +0 -1
- package/dist/util/general.js +0 -39
- package/dist/util/general.js.map +0 -1
- package/dist/util/openai.js +0 -92
- package/dist/util/openai.js.map +0 -1
- package/output/kodrdriv/250702-1905-commit-message.md +0 -1
- package/output/kodrdriv/250702-1905-commit.request.json +0 -14
- package/output/kodrdriv/250702-1905-commit.response.json +0 -36
- package/output/kodrdriv/250702-1906-commit-message.md +0 -1
- package/output/kodrdriv/250702-1907-commit-message.md +0 -1
- package/output/kodrdriv/250702-1907-commit.request.json +0 -14
- package/output/kodrdriv/250702-1907-commit.response.json +0 -36
- package/output/kodrdriv/250716-1517-review-analysis.md +0 -39
- package/output/kodrdriv/250716-1517-review-notes.md +0 -69
- package/output/kodrdriv/250716-1518-review-analysis.md +0 -15
- package/output/kodrdriv/250716-1518-review-notes.md +0 -67
- package/output/kodrdriv/250716-1523-review-analysis.md +0 -36
- package/output/kodrdriv/250716-1523-review-notes.md +0 -87
- package/output/kodrdriv/250722-1135-commit-message.md +0 -1
- package/output/kodrdriv/250722-1331-commit-message.md +0 -1
- package/output/kodrdriv/250722-1335-commit-message.md +0 -1
- package/output/kodrdriv/250722-1337-commit-message.md +0 -1
- package/output/kodrdriv/250722-1342-release-notes.md +0 -26
- package/output/kodrdriv/250722-1416-commit-message.md +0 -3
- package/output/kodrdriv/250722-1420-commit-message.md +0 -1
- package/output/kodrdriv/250722-1422-commit-message.md +0 -1
- package/output/kodrdriv/250722-1423-commit-message.md +0 -1
- package/output/kodrdriv/250722-1425-release-notes.md +0 -41
- package/output/kodrdriv/250722-1527-commit-message.md +0 -13
- package/output/kodrdriv/250722-1532-commit-message.md +0 -1
- package/output/kodrdriv/250722-1532-release-notes.md +0 -32
- package/output/kodrdriv/250722-2314-review-analysis.md +0 -28
- package/output/kodrdriv/250722-2314-review-notes.md +0 -464
- package/output/kodrdriv/250722-2315-review-analysis.md +0 -28
- package/output/kodrdriv/250722-2315-review-notes.md +0 -477
- package/output/kodrdriv/250804-1623-review-analysis.md +0 -38
- package/output/kodrdriv/250804-1623-review-notes.md +0 -479
- package/output/kodrdriv/250804-1638-review-analysis.md +0 -56
- package/output/kodrdriv/250804-1638-review-notes.md +0 -502
- package/output/kodrdriv/250812-2021-review-analysis.md +0 -27
- package/output/kodrdriv/250812-2021-review-notes.md +0 -571
- package/output/kodrdriv/250826-0700-commit-message.md +0 -12
- package/output/kodrdriv/RELEASE_NOTES.md +0 -30
- 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