@redaksjon/protokoll 0.0.11 → 0.0.13
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 +1 -0
- package/.cursor/rules/no-emoticons.md +26 -12
- package/README.md +483 -69
- package/dist/agentic/executor.js +473 -41
- package/dist/agentic/executor.js.map +1 -1
- package/dist/agentic/index.js.map +1 -1
- package/dist/agentic/tools/lookup-person.js +123 -4
- package/dist/agentic/tools/lookup-person.js.map +1 -1
- package/dist/agentic/tools/lookup-project.js +139 -22
- package/dist/agentic/tools/lookup-project.js.map +1 -1
- package/dist/agentic/tools/route-note.js +5 -1
- package/dist/agentic/tools/route-note.js.map +1 -1
- package/dist/arguments.js +6 -3
- package/dist/arguments.js.map +1 -1
- package/dist/cli/action.js +704 -0
- package/dist/cli/action.js.map +1 -0
- package/dist/cli/config.js +482 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/context.js +466 -0
- package/dist/cli/context.js.map +1 -0
- package/dist/cli/feedback.js +858 -0
- package/dist/cli/feedback.js.map +1 -0
- package/dist/cli/index.js +103 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/install.js +572 -0
- package/dist/cli/install.js.map +1 -0
- package/dist/cli/transcript.js +199 -0
- package/dist/cli/transcript.js.map +1 -0
- package/dist/constants.js +12 -5
- package/dist/constants.js.map +1 -1
- package/dist/context/discovery.js +1 -1
- package/dist/context/discovery.js.map +1 -1
- package/dist/context/index.js +25 -1
- package/dist/context/index.js.map +1 -1
- package/dist/context/storage.js +57 -4
- package/dist/context/storage.js.map +1 -1
- package/dist/interactive/handler.js +310 -9
- package/dist/interactive/handler.js.map +1 -1
- package/dist/main.js +11 -1
- package/dist/main.js.map +1 -1
- package/dist/output/index.js.map +1 -1
- package/dist/output/manager.js +47 -2
- package/dist/output/manager.js.map +1 -1
- package/dist/phases/complete.js +38 -3
- package/dist/phases/complete.js.map +1 -1
- package/dist/phases/locate.js +1 -1
- package/dist/phases/locate.js.map +1 -1
- package/dist/pipeline/orchestrator.js +104 -31
- package/dist/pipeline/orchestrator.js.map +1 -1
- package/dist/protokoll.js +68 -2
- package/dist/protokoll.js.map +1 -1
- package/dist/reasoning/client.js +83 -0
- package/dist/reasoning/client.js.map +1 -1
- package/dist/reasoning/index.js +1 -0
- package/dist/reasoning/index.js.map +1 -1
- package/dist/routing/router.js +2 -2
- package/dist/routing/router.js.map +1 -1
- package/dist/util/media.js +1 -1
- package/dist/util/media.js.map +1 -1
- package/dist/util/metadata.js.map +1 -1
- package/dist/util/sound.js +116 -0
- package/dist/util/sound.js.map +1 -0
- package/dist/util/storage.js +3 -3
- package/dist/util/storage.js.map +1 -1
- package/docs/duplicate-question-prevention.md +117 -0
- package/docs/examples.md +152 -0
- package/docs/interactive-context-example.md +92 -0
- package/docs/package-lock.json +6 -0
- package/docs/package.json +3 -1
- package/eslint.config.mjs +1 -1
- package/guide/action.md +375 -0
- package/guide/config.md +207 -0
- package/guide/configuration.md +82 -67
- package/guide/context-commands.md +574 -0
- package/guide/context-system.md +20 -7
- package/guide/development.md +106 -4
- package/guide/feedback.md +335 -0
- package/guide/index.md +100 -4
- package/guide/interactive.md +15 -14
- package/guide/quickstart.md +21 -7
- package/guide/reasoning.md +18 -4
- package/guide/routing.md +192 -97
- package/package.json +2 -3
- package/scripts/copy-assets.mjs +47 -0
- package/scripts/coverage-priority.mjs +323 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/vite.config.ts +6 -13
- package/vitest.config.ts +5 -1
package/guide/configuration.md
CHANGED
|
@@ -8,40 +8,29 @@
|
|
|
8
8
|
# Model settings
|
|
9
9
|
model: "gpt-5.2" # Reasoning model (default)
|
|
10
10
|
transcriptionModel: "whisper-1" # Audio transcription
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- "about work"
|
|
35
|
-
|
|
36
|
-
# Output
|
|
37
|
-
output:
|
|
38
|
-
intermediateDir: "./output/protokoll"
|
|
39
|
-
keepIntermediates: true
|
|
40
|
-
|
|
41
|
-
# Features
|
|
42
|
-
features:
|
|
43
|
-
interactive: false # Disabled by default
|
|
44
|
-
selfReflection: true # Enabled by default
|
|
11
|
+
reasoningLevel: "medium" # Reasoning effort: low, medium, high (default: medium)
|
|
12
|
+
|
|
13
|
+
# Directory settings (Dreadcabinet options)
|
|
14
|
+
inputDirectory: "./recordings" # Where to find audio files
|
|
15
|
+
outputDirectory: "~/notes" # Where to write transcripts
|
|
16
|
+
outputStructure: "month" # Directory structure (none, year, month, day)
|
|
17
|
+
outputFilenameOptions: # Filename components
|
|
18
|
+
- date
|
|
19
|
+
- time
|
|
20
|
+
- subject
|
|
21
|
+
|
|
22
|
+
# Processing options
|
|
23
|
+
processedDirectory: "./processed" # Move processed audio here (optional)
|
|
24
|
+
|
|
25
|
+
# Features (flat properties, not nested)
|
|
26
|
+
interactive: true # Interactive prompts (enabled by default)
|
|
27
|
+
selfReflection: true # Generate reflection reports (enabled by default)
|
|
28
|
+
silent: false # Sound notifications (enabled by default)
|
|
29
|
+
|
|
30
|
+
# Advanced
|
|
31
|
+
maxAudioSize: 26214400 # Max audio file size in bytes (25MB)
|
|
32
|
+
tempDirectory: "/tmp" # Temporary file storage
|
|
33
|
+
contextDirectories: [] # Additional context locations
|
|
45
34
|
```
|
|
46
35
|
|
|
47
36
|
## Environment Variables
|
|
@@ -60,17 +49,19 @@ features:
|
|
|
60
49
|
| Option | Description | Default |
|
|
61
50
|
|--------|-------------|---------|
|
|
62
51
|
| `--input-directory <dir>` | Directory with audio files | Required |
|
|
63
|
-
| `--output-directory <dir>` | Default output directory |
|
|
52
|
+
| `--output-directory <dir>` | Default output directory | `./` |
|
|
64
53
|
| `--model <model>` | Reasoning model | `gpt-5.2` |
|
|
65
54
|
| `--transcription-model <model>` | Whisper model | `whisper-1` |
|
|
55
|
+
| `--reasoning-level <level>` | Reasoning effort (low/medium/high) | `medium` |
|
|
66
56
|
|
|
67
57
|
### Mode Options
|
|
68
58
|
|
|
69
59
|
| Option | Description | Default |
|
|
70
60
|
|--------|-------------|---------|
|
|
71
|
-
| `--
|
|
61
|
+
| `--batch` | Disable interactive mode | `false` (interactive enabled) |
|
|
72
62
|
| `--self-reflection` | Generate reflection reports | `true` |
|
|
73
63
|
| `--no-self-reflection` | Disable reflection reports | - |
|
|
64
|
+
| `--silent` | Disable sound notifications | `false` |
|
|
74
65
|
| `--dry-run` | Show what would happen | `false` |
|
|
75
66
|
| `--verbose` | Enable verbose logging | `false` |
|
|
76
67
|
| `--debug` | Enable debug mode | `false` |
|
|
@@ -85,7 +76,7 @@ features:
|
|
|
85
76
|
| `--processed-directory <dir>` | Move processed files here | - |
|
|
86
77
|
| `--overrides` | Allow config overrides | `false` |
|
|
87
78
|
|
|
88
|
-
##
|
|
79
|
+
## Output Structures
|
|
89
80
|
|
|
90
81
|
Protokoll uses Dreadcabinet structure codenames:
|
|
91
82
|
|
|
@@ -120,6 +111,43 @@ Protokoll walks up the directory tree looking for `.protokoll/` directories:
|
|
|
120
111
|
|
|
121
112
|
Lower directories take precedence for conflicting settings.
|
|
122
113
|
|
|
114
|
+
## Project-Based Routing
|
|
115
|
+
|
|
116
|
+
Routing to different destinations is configured via **project files** in the context system, not in the main config.yaml.
|
|
117
|
+
|
|
118
|
+
### Example Project File
|
|
119
|
+
|
|
120
|
+
```yaml
|
|
121
|
+
# ~/.protokoll/projects/work.yaml
|
|
122
|
+
id: work
|
|
123
|
+
name: Work Notes
|
|
124
|
+
type: project
|
|
125
|
+
|
|
126
|
+
classification:
|
|
127
|
+
context_type: work
|
|
128
|
+
explicit_phrases:
|
|
129
|
+
- "work note"
|
|
130
|
+
- "about work"
|
|
131
|
+
- "office meeting"
|
|
132
|
+
topics:
|
|
133
|
+
- "standup"
|
|
134
|
+
- "sprint"
|
|
135
|
+
|
|
136
|
+
routing:
|
|
137
|
+
destination: "~/work/notes"
|
|
138
|
+
structure: "month"
|
|
139
|
+
filename_options:
|
|
140
|
+
- date
|
|
141
|
+
- time
|
|
142
|
+
- subject
|
|
143
|
+
auto_tags:
|
|
144
|
+
- work
|
|
145
|
+
|
|
146
|
+
active: true
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
See [Context System](./context-system.md) and [Routing](./routing.md) for more details.
|
|
150
|
+
|
|
123
151
|
## Model Selection
|
|
124
152
|
|
|
125
153
|
### Reasoning Models
|
|
@@ -152,48 +180,35 @@ Lower directories take precedence for conflicting settings.
|
|
|
152
180
|
|
|
153
181
|
```yaml
|
|
154
182
|
model: "gpt-5.2"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
path: "~/notes"
|
|
158
|
-
structure: "month"
|
|
183
|
+
outputDirectory: "~/notes"
|
|
184
|
+
outputStructure: "month"
|
|
159
185
|
```
|
|
160
186
|
|
|
161
|
-
### Work
|
|
187
|
+
### Work Setup with Processed Directory
|
|
162
188
|
|
|
163
189
|
```yaml
|
|
164
190
|
model: "claude-3-5-sonnet"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
- projectId: "work"
|
|
171
|
-
destination:
|
|
172
|
-
path: "~/work/notes"
|
|
173
|
-
structure: "day"
|
|
174
|
-
triggers:
|
|
175
|
-
- "work"
|
|
176
|
-
- "office"
|
|
177
|
-
- "meeting"
|
|
191
|
+
inputDirectory: "~/recordings"
|
|
192
|
+
outputDirectory: "~/notes"
|
|
193
|
+
outputStructure: "month"
|
|
194
|
+
processedDirectory: "~/recordings/processed"
|
|
195
|
+
selfReflection: true
|
|
178
196
|
```
|
|
179
197
|
|
|
180
|
-
###
|
|
198
|
+
### Batch Processing (Non-Interactive)
|
|
181
199
|
|
|
182
200
|
```yaml
|
|
183
|
-
#
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
routing:
|
|
187
|
-
default:
|
|
188
|
-
path: "./notes"
|
|
189
|
-
structure: "month"
|
|
201
|
+
# For automation/cron jobs
|
|
202
|
+
interactive: false
|
|
203
|
+
selfReflection: false
|
|
190
204
|
```
|
|
191
205
|
|
|
192
|
-
###
|
|
206
|
+
### Team Shared Context
|
|
193
207
|
|
|
194
208
|
```yaml
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
209
|
+
# ~/team-project/.protokoll/config.yaml
|
|
210
|
+
# Uses relative path for team portability
|
|
211
|
+
outputDirectory: "./notes"
|
|
212
|
+
outputStructure: "month"
|
|
198
213
|
```
|
|
199
214
|
|