@redaksjon/protokoll 1.0.18 → 1.0.19-dev.20260221122623.333bc0e
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/dist/configDiscovery.js +2 -34
- package/dist/configDiscovery.js.map +1 -1
- package/dist/mcp/server-hono.js +91 -38
- package/dist/mcp/server-hono.js.map +1 -1
- package/package.json +4 -5
- package/vite.config.ts +2 -1
- package/dist/mcp/server-http.js +0 -714
- package/dist/mcp/server-http.js.map +0 -1
package/dist/configDiscovery.js
CHANGED
|
@@ -203,36 +203,8 @@ function buildAudioProcessedUri(directory) {
|
|
|
203
203
|
function isProtokolUri(uri) {
|
|
204
204
|
return uri.startsWith(`${SCHEME}://`);
|
|
205
205
|
}
|
|
206
|
-
function getResourceType(uri) {
|
|
207
|
-
if (!isProtokolUri(uri)) return null;
|
|
208
|
-
const withoutScheme = uri.substring(`${SCHEME}://`.length);
|
|
209
|
-
const segments = withoutScheme.split("/");
|
|
210
|
-
const firstSegment = segments[0].split("?")[0];
|
|
211
|
-
if (firstSegment === "transcripts") return "transcripts-list";
|
|
212
|
-
if (firstSegment === "entities") return "entities-list";
|
|
213
|
-
if (firstSegment === "audio") {
|
|
214
|
-
const secondSegment = segments[1]?.split("?")[0];
|
|
215
|
-
if (secondSegment === "inbound") return "audio-inbound";
|
|
216
|
-
if (secondSegment === "processed") return "audio-processed";
|
|
217
|
-
}
|
|
218
|
-
return firstSegment;
|
|
219
|
-
}
|
|
220
206
|
|
|
221
|
-
const
|
|
222
|
-
__proto__: null,
|
|
223
|
-
buildAudioInboundUri,
|
|
224
|
-
buildAudioProcessedUri,
|
|
225
|
-
buildConfigUri,
|
|
226
|
-
buildEntitiesListUri,
|
|
227
|
-
buildEntityUri,
|
|
228
|
-
buildTranscriptUri,
|
|
229
|
-
buildTranscriptsListUri,
|
|
230
|
-
getResourceType,
|
|
231
|
-
isProtokolUri,
|
|
232
|
-
parseUri
|
|
233
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
234
|
-
|
|
235
|
-
const VERSION = "1.0.18 (HEAD/7f84dc1 T:v1.0.18 2026-02-20 21:14:07 -0800) linux arm64 v24.13.1";
|
|
207
|
+
const VERSION = "1.0.19-dev.20260221122623.333bc0e (working/333bc0e 2026-02-21 04:26:06 -0800) linux arm64 v24.13.1";
|
|
236
208
|
const PROGRAM_NAME = "protokoll";
|
|
237
209
|
const DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS = "YYYY-M-D-HHmmss";
|
|
238
210
|
const DEFAULT_AUDIO_EXTENSIONS = ["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm", "qta"];
|
|
@@ -6323,10 +6295,6 @@ async function readCardigantimeConfigFromDirectory(directory, configFile, featur
|
|
|
6323
6295
|
process.chdir(previousCwd);
|
|
6324
6296
|
}
|
|
6325
6297
|
}
|
|
6326
|
-
async function loadCardigantimeConfig() {
|
|
6327
|
-
const workspaceRoot = process.env.WORKSPACE_ROOT || process.cwd();
|
|
6328
|
-
return await readCardigantimeConfigFromDirectory(workspaceRoot, DEFAULT_CONFIG_FILE, ["config", "hierarchical"]);
|
|
6329
|
-
}
|
|
6330
6298
|
async function initializeWorkingDirectoryFromArgsAndConfig() {
|
|
6331
6299
|
const argv = process.argv.slice(2);
|
|
6332
6300
|
const cwdArg = getArgValue(argv, "--cwd");
|
|
@@ -6357,5 +6325,5 @@ async function initializeWorkingDirectoryFromArgsAndConfig() {
|
|
|
6357
6325
|
}
|
|
6358
6326
|
}
|
|
6359
6327
|
|
|
6360
|
-
export { DEFAULT_CONFIG_FILE as D, handleListResources as a, handleReadResource as b, getPrompt as c, initializeServerConfig as d, getCachedRoots as e,
|
|
6328
|
+
export { DEFAULT_CONFIG_FILE as D, handleListResources as a, handleReadResource as b, getPrompt as c, initializeServerConfig as d, getCachedRoots as e, getOutputDirectory as f, getPrompts as g, handleToolCall as h, initializeWorkingDirectoryFromArgsAndConfig as i, getServerConfig as j, getContext as k, createQuietLogger as l, setWorkerInstance as m, setRoots as s, tools as t };
|
|
6361
6329
|
//# sourceMappingURL=configDiscovery.js.map
|