@redaksjon/protokoll 0.1.0 → 0.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.
- package/README.md +9 -0
- package/dist/mcp/server.js +653 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/transcript.js +16 -3
- package/dist/transcript.js.map +1 -1
- package/guide/context-commands.md +110 -0
- package/guide/mcp-integration.md +33 -6
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/transcript.js
CHANGED
|
@@ -18,7 +18,7 @@ import os__default from 'node:os';
|
|
|
18
18
|
import winston from 'winston';
|
|
19
19
|
import { IterationStrategyFactory } from '@riotprompt/riotprompt';
|
|
20
20
|
|
|
21
|
-
const VERSION = "0.
|
|
21
|
+
const VERSION = "0.2.0 (HEAD/0ecc049 T:v0.2.0 2026-01-19 00:11:42 -0800) linux x64 v24.12.0";
|
|
22
22
|
const PROGRAM_NAME = "protokoll";
|
|
23
23
|
const DEFAULT_DIFF = true;
|
|
24
24
|
const DEFAULT_LOG = false;
|
|
@@ -6555,7 +6555,21 @@ const listTranscripts = async (options) => {
|
|
|
6555
6555
|
const dateTime = extractDateTimeFromFilename(filename);
|
|
6556
6556
|
if (startDate && dateTime && dateTime.date < startDate) continue;
|
|
6557
6557
|
if (endDate && dateTime && dateTime.date > endDate) continue;
|
|
6558
|
-
|
|
6558
|
+
let stats;
|
|
6559
|
+
try {
|
|
6560
|
+
stats = await fs$1.stat(filePath);
|
|
6561
|
+
if (!stats.isFile()) {
|
|
6562
|
+
continue;
|
|
6563
|
+
}
|
|
6564
|
+
} catch {
|
|
6565
|
+
continue;
|
|
6566
|
+
}
|
|
6567
|
+
let content;
|
|
6568
|
+
try {
|
|
6569
|
+
content = await fs$1.readFile(filePath, "utf-8");
|
|
6570
|
+
} catch (error) {
|
|
6571
|
+
continue;
|
|
6572
|
+
}
|
|
6559
6573
|
if (search) {
|
|
6560
6574
|
const searchLower = search.toLowerCase();
|
|
6561
6575
|
if (!content.toLowerCase().includes(searchLower) && !filename.toLowerCase().includes(searchLower)) {
|
|
@@ -6563,7 +6577,6 @@ const listTranscripts = async (options) => {
|
|
|
6563
6577
|
}
|
|
6564
6578
|
}
|
|
6565
6579
|
const title = extractTitle(content);
|
|
6566
|
-
const stats = await fs$1.stat(filePath);
|
|
6567
6580
|
const rawData = await readRawTranscript(filePath);
|
|
6568
6581
|
const entities = parseEntityMetadata(content);
|
|
6569
6582
|
transcripts.push({
|