@goondocks/myco 0.6.1 → 0.6.2
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/dist/{chunk-2YBUL3IL.js → chunk-25DJSF2K.js} +3 -3
- package/dist/{chunk-24DOZEUJ.js → chunk-ALBVNGCF.js} +591 -27
- package/dist/chunk-ALBVNGCF.js.map +1 -0
- package/dist/{chunk-E7OBRBCQ.js → chunk-CK24O5YQ.js} +12 -2
- package/dist/chunk-CK24O5YQ.js.map +1 -0
- package/dist/{chunk-2GSX3BK2.js → chunk-CPVXNRGW.js} +4 -4
- package/dist/{chunk-L25U7PIG.js → chunk-CQ4RKK67.js} +2 -2
- package/dist/{chunk-ZMYNRTTD.js → chunk-HRGHDMYI.js} +4 -3
- package/dist/chunk-HRGHDMYI.js.map +1 -0
- package/dist/{chunk-5FNZ7AMX.js → chunk-IWBWZQK6.js} +2 -2
- package/dist/{chunk-MQSYSQ6T.js → chunk-JSK7L46L.js} +11 -6
- package/dist/{chunk-MQSYSQ6T.js.map → chunk-JSK7L46L.js.map} +1 -1
- package/dist/{chunk-KUMVJIJW.js → chunk-LDKXXKF6.js} +6 -10
- package/dist/{chunk-KUMVJIJW.js.map → chunk-LDKXXKF6.js.map} +1 -1
- package/dist/{chunk-QGJ2ZIUZ.js → chunk-MWW62YZP.js} +37 -5
- package/dist/chunk-MWW62YZP.js.map +1 -0
- package/dist/{chunk-2ZBB3MQT.js → chunk-PQWQC3RF.js} +444 -21
- package/dist/chunk-PQWQC3RF.js.map +1 -0
- package/dist/{chunk-5QWZT4AB.js → chunk-RNWALAFP.js} +2 -2
- package/dist/{chunk-3EM23DMD.js → chunk-RXJHB7W4.js} +2 -2
- package/dist/{chunk-GNR3QAER.js → chunk-RY76WEN3.js} +2 -2
- package/dist/{chunk-GDYYJTTT.js → chunk-V5R6O6RP.js} +3 -3
- package/dist/{chunk-6BSDCZ5Q.js → chunk-WBLTISAK.js} +8 -3
- package/dist/chunk-WBLTISAK.js.map +1 -0
- package/dist/{chunk-YTANWAGE.js → chunk-XNAM6Z4O.js} +2 -2
- package/dist/{chunk-P3WO3N3I.js → chunk-YG6MLLGL.js} +19 -3
- package/dist/{chunk-P3WO3N3I.js.map → chunk-YG6MLLGL.js.map} +1 -1
- package/dist/{cli-K7SUTP7A.js → cli-LMBBPV2D.js} +20 -20
- package/dist/{client-YJMNTITQ.js → client-FDKJ4BY7.js} +5 -5
- package/dist/{config-G5GGT5A6.js → config-HDUFDOQN.js} +3 -3
- package/dist/{curate-6T5NKVXK.js → curate-DYE4VCBJ.js} +10 -11
- package/dist/{curate-6T5NKVXK.js.map → curate-DYE4VCBJ.js.map} +1 -1
- package/dist/{detect-providers-S3M5TAMW.js → detect-providers-I2QQFDJW.js} +3 -3
- package/dist/{digest-O35VHYFP.js → digest-PNHFM7JJ.js} +11 -13
- package/dist/{digest-O35VHYFP.js.map → digest-PNHFM7JJ.js.map} +1 -1
- package/dist/{init-TFLSATB3.js → init-7N7F6W6U.js} +8 -8
- package/dist/{main-JEUQS3BY.js → main-3JZDUJLU.js} +177 -40
- package/dist/main-3JZDUJLU.js.map +1 -0
- package/dist/{rebuild-7SH5GSNX.js → rebuild-WXKQ5HZO.js} +10 -11
- package/dist/{rebuild-7SH5GSNX.js.map → rebuild-WXKQ5HZO.js.map} +1 -1
- package/dist/reprocess-PKRDV67L.js +79 -0
- package/dist/reprocess-PKRDV67L.js.map +1 -0
- package/dist/{restart-NLJLB52D.js → restart-WSJRHRHI.js} +6 -6
- package/dist/{search-2BVRF54H.js → search-SWMJ4MZ3.js} +6 -6
- package/dist/{server-4AMZNP4F.js → server-NTRVB5ZM.js} +14 -18
- package/dist/{server-4AMZNP4F.js.map → server-NTRVB5ZM.js.map} +1 -1
- package/dist/{session-start-AZAF3DTE.js → session-start-KQ4KCQMZ.js} +9 -9
- package/dist/setup-digest-BOYOSM4B.js +15 -0
- package/dist/setup-llm-PCZ64ALK.js +15 -0
- package/dist/src/cli.js +4 -4
- package/dist/src/daemon/main.js +4 -4
- package/dist/src/hooks/post-tool-use.js +5 -5
- package/dist/src/hooks/session-end.js +5 -5
- package/dist/src/hooks/session-start.js +4 -4
- package/dist/src/hooks/stop.js +7 -7
- package/dist/src/hooks/user-prompt-submit.js +5 -5
- package/dist/src/mcp/server.js +4 -4
- package/dist/src/prompts/consolidation.md +2 -0
- package/dist/src/prompts/digest-7500.md +68 -0
- package/dist/{stats-MKDIZFIQ.js → stats-2OUQSEZO.js} +6 -6
- package/dist/ui/assets/index-Bk4X_8-Z.css +1 -0
- package/dist/ui/assets/index-D3SY7ZHY.js +299 -0
- package/dist/ui/index.html +2 -2
- package/dist/{verify-7DW7LAND.js → verify-MG5O7SBU.js} +6 -6
- package/dist/{version-RQLD7VBP.js → version-NKOECSVH.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-24DOZEUJ.js.map +0 -1
- package/dist/chunk-2ZBB3MQT.js.map +0 -1
- package/dist/chunk-3JCXYLHD.js +0 -33
- package/dist/chunk-3JCXYLHD.js.map +0 -1
- package/dist/chunk-6BSDCZ5Q.js.map +0 -1
- package/dist/chunk-B5UZSHQV.js +0 -250
- package/dist/chunk-B5UZSHQV.js.map +0 -1
- package/dist/chunk-E7OBRBCQ.js.map +0 -1
- package/dist/chunk-KC7ENQTN.js +0 -436
- package/dist/chunk-KC7ENQTN.js.map +0 -1
- package/dist/chunk-QGJ2ZIUZ.js.map +0 -1
- package/dist/chunk-UVGAVYWZ.js +0 -157
- package/dist/chunk-UVGAVYWZ.js.map +0 -1
- package/dist/chunk-ZMYNRTTD.js.map +0 -1
- package/dist/main-JEUQS3BY.js.map +0 -1
- package/dist/reprocess-Q4YH2ZBK.js +0 -268
- package/dist/reprocess-Q4YH2ZBK.js.map +0 -1
- package/dist/setup-digest-YLZZGSSR.js +0 -15
- package/dist/setup-llm-JOXBSLXC.js +0 -15
- package/dist/ui/assets/index-D37IoDXS.css +0 -1
- package/dist/ui/assets/index-DA61Ial2.js +0 -289
- /package/dist/{chunk-2YBUL3IL.js.map → chunk-25DJSF2K.js.map} +0 -0
- /package/dist/{chunk-2GSX3BK2.js.map → chunk-CPVXNRGW.js.map} +0 -0
- /package/dist/{chunk-L25U7PIG.js.map → chunk-CQ4RKK67.js.map} +0 -0
- /package/dist/{chunk-5FNZ7AMX.js.map → chunk-IWBWZQK6.js.map} +0 -0
- /package/dist/{chunk-5QWZT4AB.js.map → chunk-RNWALAFP.js.map} +0 -0
- /package/dist/{chunk-3EM23DMD.js.map → chunk-RXJHB7W4.js.map} +0 -0
- /package/dist/{chunk-GNR3QAER.js.map → chunk-RY76WEN3.js.map} +0 -0
- /package/dist/{chunk-GDYYJTTT.js.map → chunk-V5R6O6RP.js.map} +0 -0
- /package/dist/{chunk-YTANWAGE.js.map → chunk-XNAM6Z4O.js.map} +0 -0
- /package/dist/{cli-K7SUTP7A.js.map → cli-LMBBPV2D.js.map} +0 -0
- /package/dist/{client-YJMNTITQ.js.map → client-FDKJ4BY7.js.map} +0 -0
- /package/dist/{config-G5GGT5A6.js.map → config-HDUFDOQN.js.map} +0 -0
- /package/dist/{detect-providers-S3M5TAMW.js.map → detect-providers-I2QQFDJW.js.map} +0 -0
- /package/dist/{init-TFLSATB3.js.map → init-7N7F6W6U.js.map} +0 -0
- /package/dist/{restart-NLJLB52D.js.map → restart-WSJRHRHI.js.map} +0 -0
- /package/dist/{search-2BVRF54H.js.map → search-SWMJ4MZ3.js.map} +0 -0
- /package/dist/{session-start-AZAF3DTE.js.map → session-start-KQ4KCQMZ.js.map} +0 -0
- /package/dist/{setup-digest-YLZZGSSR.js.map → setup-digest-BOYOSM4B.js.map} +0 -0
- /package/dist/{setup-llm-JOXBSLXC.js.map → setup-llm-PCZ64ALK.js.map} +0 -0
- /package/dist/{stats-MKDIZFIQ.js.map → stats-2OUQSEZO.js.map} +0 -0
- /package/dist/{verify-7DW7LAND.js.map → verify-MG5O7SBU.js.map} +0 -0
- /package/dist/{version-RQLD7VBP.js.map → version-NKOECSVH.js.map} +0 -0
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runRebuild
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-3JCXYLHD.js";
|
|
4
|
+
} from "./chunk-PQWQC3RF.js";
|
|
6
5
|
import {
|
|
7
6
|
VectorIndex
|
|
8
7
|
} from "./chunk-4RMSHZE4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-24DOZEUJ.js";
|
|
8
|
+
import "./chunk-ALBVNGCF.js";
|
|
11
9
|
import "./chunk-RGVBGTD6.js";
|
|
12
10
|
import {
|
|
13
11
|
createEmbeddingProvider
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-V5R6O6RP.js";
|
|
13
|
+
import "./chunk-RY76WEN3.js";
|
|
16
14
|
import "./chunk-6FQISQNA.js";
|
|
17
15
|
import {
|
|
18
16
|
MycoIndex
|
|
19
17
|
} from "./chunk-TWSTAVLO.js";
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MWW62YZP.js";
|
|
21
19
|
import {
|
|
22
20
|
loadConfig
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-YG6MLLGL.js";
|
|
22
|
+
import "./chunk-JSK7L46L.js";
|
|
23
|
+
import "./chunk-RNWALAFP.js";
|
|
24
|
+
import "./chunk-WBLTISAK.js";
|
|
26
25
|
import "./chunk-PZUWP5VK.js";
|
|
27
26
|
|
|
28
27
|
// src/cli/rebuild.ts
|
|
@@ -63,4 +62,4 @@ Embedded ${result.embeddedCount} notes (vectors)`);
|
|
|
63
62
|
export {
|
|
64
63
|
run
|
|
65
64
|
};
|
|
66
|
-
//# sourceMappingURL=rebuild-
|
|
65
|
+
//# sourceMappingURL=rebuild-WXKQ5HZO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/cli/rebuild.ts"],"sourcesContent":["import { MycoIndex } from '../index/sqlite.js';\nimport { VectorIndex } from '../index/vectors.js';\nimport { loadConfig } from '../config/loader.js';\nimport { createEmbeddingProvider } from '../intelligence/llm.js';\nimport { runRebuild } from '../services/vault-ops.js';\nimport path from 'node:path';\n\nexport async function run(_args: string[], vaultDir: string): Promise<void> {\n console.log(`Rebuilding index for ${vaultDir}...`);\n const config = loadConfig(vaultDir);\n const index = new MycoIndex(path.join(vaultDir, 'index.db'));\n\n let vectorIndex: VectorIndex | undefined;\n let embeddingProvider;\n try {\n embeddingProvider = createEmbeddingProvider(config.intelligence.embedding);\n const testEmbed = await embeddingProvider.embed('test');\n vectorIndex = new VectorIndex(path.join(vaultDir, 'vectors.db'), testEmbed.dimensions);\n } catch (e) {\n console.log(`Vector rebuild skipped: ${(e as Error).message}`);\n }\n\n try {\n const result = await runRebuild(\n { vaultDir, config, index, vectorIndex },\n embeddingProvider!,\n (done, total) => process.stdout.write(`\\rEmbedded ${done}/${total}`),\n );\n\n console.log(`Indexed ${result.ftsCount} notes (FTS)`);\n if (vectorIndex) {\n console.log(`\\nEmbedded ${result.embeddedCount} notes (vectors)`);\n if (result.failedCount > 0) {\n console.log(`Failed: ${result.failedCount}`);\n }\n console.log(`Skipped ${result.skippedCount} superseded/archived`);\n }\n } finally {\n vectorIndex?.close();\n index.close();\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/cli/rebuild.ts"],"sourcesContent":["import { MycoIndex } from '../index/sqlite.js';\nimport { VectorIndex } from '../index/vectors.js';\nimport { loadConfig } from '../config/loader.js';\nimport { createEmbeddingProvider } from '../intelligence/llm.js';\nimport { runRebuild } from '../services/vault-ops.js';\nimport path from 'node:path';\n\nexport async function run(_args: string[], vaultDir: string): Promise<void> {\n console.log(`Rebuilding index for ${vaultDir}...`);\n const config = loadConfig(vaultDir);\n const index = new MycoIndex(path.join(vaultDir, 'index.db'));\n\n let vectorIndex: VectorIndex | undefined;\n let embeddingProvider;\n try {\n embeddingProvider = createEmbeddingProvider(config.intelligence.embedding);\n const testEmbed = await embeddingProvider.embed('test');\n vectorIndex = new VectorIndex(path.join(vaultDir, 'vectors.db'), testEmbed.dimensions);\n } catch (e) {\n console.log(`Vector rebuild skipped: ${(e as Error).message}`);\n }\n\n try {\n const result = await runRebuild(\n { vaultDir, config, index, vectorIndex },\n embeddingProvider!,\n (done, total) => process.stdout.write(`\\rEmbedded ${done}/${total}`),\n );\n\n console.log(`Indexed ${result.ftsCount} notes (FTS)`);\n if (vectorIndex) {\n console.log(`\\nEmbedded ${result.embeddedCount} notes (vectors)`);\n if (result.failedCount > 0) {\n console.log(`Failed: ${result.failedCount}`);\n }\n console.log(`Skipped ${result.skippedCount} superseded/archived`);\n }\n } finally {\n vectorIndex?.close();\n index.close();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,OAAO,UAAU;AAEjB,eAAsB,IAAI,OAAiB,UAAiC;AAC1E,UAAQ,IAAI,wBAAwB,QAAQ,KAAK;AACjD,QAAM,SAAS,WAAW,QAAQ;AAClC,QAAM,QAAQ,IAAI,UAAU,KAAK,KAAK,UAAU,UAAU,CAAC;AAE3D,MAAI;AACJ,MAAI;AACJ,MAAI;AACF,wBAAoB,wBAAwB,OAAO,aAAa,SAAS;AACzE,UAAM,YAAY,MAAM,kBAAkB,MAAM,MAAM;AACtD,kBAAc,IAAI,YAAY,KAAK,KAAK,UAAU,YAAY,GAAG,UAAU,UAAU;AAAA,EACvF,SAAS,GAAG;AACV,YAAQ,IAAI,2BAA4B,EAAY,OAAO,EAAE;AAAA,EAC/D;AAEA,MAAI;AACF,UAAM,SAAS,MAAM;AAAA,MACnB,EAAE,UAAU,QAAQ,OAAO,YAAY;AAAA,MACvC;AAAA,MACA,CAAC,MAAM,UAAU,QAAQ,OAAO,MAAM,cAAc,IAAI,IAAI,KAAK,EAAE;AAAA,IACrE;AAEA,YAAQ,IAAI,WAAW,OAAO,QAAQ,cAAc;AACpD,QAAI,aAAa;AACf,cAAQ,IAAI;AAAA,WAAc,OAAO,aAAa,kBAAkB;AAChE,UAAI,OAAO,cAAc,GAAG;AAC1B,gBAAQ,IAAI,WAAW,OAAO,WAAW,EAAE;AAAA,MAC7C;AACA,cAAQ,IAAI,WAAW,OAAO,YAAY,sBAAsB;AAAA,IAClE;AAAA,EACF,UAAE;AACA,iBAAa,MAAM;AACnB,UAAM,MAAM;AAAA,EACd;AACF;","names":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
runReprocess
|
|
4
|
+
} from "./chunk-PQWQC3RF.js";
|
|
5
|
+
import {
|
|
6
|
+
VectorIndex
|
|
7
|
+
} from "./chunk-4RMSHZE4.js";
|
|
8
|
+
import "./chunk-ALBVNGCF.js";
|
|
9
|
+
import "./chunk-RGVBGTD6.js";
|
|
10
|
+
import {
|
|
11
|
+
createEmbeddingProvider,
|
|
12
|
+
createLlmProvider
|
|
13
|
+
} from "./chunk-V5R6O6RP.js";
|
|
14
|
+
import "./chunk-RY76WEN3.js";
|
|
15
|
+
import {
|
|
16
|
+
initFts
|
|
17
|
+
} from "./chunk-6FQISQNA.js";
|
|
18
|
+
import {
|
|
19
|
+
MycoIndex
|
|
20
|
+
} from "./chunk-TWSTAVLO.js";
|
|
21
|
+
import "./chunk-25DJSF2K.js";
|
|
22
|
+
import {
|
|
23
|
+
parseStringFlag
|
|
24
|
+
} from "./chunk-SAKJMNSR.js";
|
|
25
|
+
import "./chunk-MWW62YZP.js";
|
|
26
|
+
import {
|
|
27
|
+
loadConfig
|
|
28
|
+
} from "./chunk-YG6MLLGL.js";
|
|
29
|
+
import "./chunk-JSK7L46L.js";
|
|
30
|
+
import "./chunk-RNWALAFP.js";
|
|
31
|
+
import "./chunk-WBLTISAK.js";
|
|
32
|
+
import "./chunk-PZUWP5VK.js";
|
|
33
|
+
|
|
34
|
+
// src/cli/reprocess.ts
|
|
35
|
+
import path from "path";
|
|
36
|
+
async function run(args, vaultDir) {
|
|
37
|
+
const sessionFilter = parseStringFlag(args, "--session");
|
|
38
|
+
const dateFilter = parseStringFlag(args, "--date");
|
|
39
|
+
const failedOnly = args.includes("--failed");
|
|
40
|
+
const skipLlm = args.includes("--index-only");
|
|
41
|
+
const config = loadConfig(vaultDir);
|
|
42
|
+
const index = new MycoIndex(path.join(vaultDir, "index.db"));
|
|
43
|
+
initFts(index);
|
|
44
|
+
const llmProvider = skipLlm ? null : createLlmProvider(config.intelligence.llm);
|
|
45
|
+
const embeddingProvider = createEmbeddingProvider(config.intelligence.embedding);
|
|
46
|
+
let vectorIndex = null;
|
|
47
|
+
try {
|
|
48
|
+
const testEmbed = await embeddingProvider.embed("test");
|
|
49
|
+
vectorIndex = new VectorIndex(path.join(vaultDir, "vectors.db"), testEmbed.dimensions);
|
|
50
|
+
} catch (e) {
|
|
51
|
+
console.log(`Vector index unavailable: ${e.message}`);
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const result = await runReprocess(
|
|
55
|
+
{ vaultDir, config, index, vectorIndex: vectorIndex ?? void 0, log: (level, msg) => console.log(`[${level}] ${msg}`) },
|
|
56
|
+
llmProvider,
|
|
57
|
+
embeddingProvider,
|
|
58
|
+
{ session: sessionFilter, date: dateFilter, failed: failedOnly, indexOnly: skipLlm },
|
|
59
|
+
(phase, done, total) => {
|
|
60
|
+
process.stdout.write(`\r ${phase}: ${done}/${total}`);
|
|
61
|
+
if (done === total) process.stdout.write("\n");
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
if (result.sessionsProcessed === 0) {
|
|
65
|
+
const filters = [sessionFilter && `session="${sessionFilter}"`, dateFilter && `date="${dateFilter}"`, failedOnly && "failed"].filter(Boolean);
|
|
66
|
+
console.log(filters.length ? `No sessions matching ${filters.join(", ")} found.` : "No sessions found.");
|
|
67
|
+
} else {
|
|
68
|
+
console.log(`
|
|
69
|
+
Done: ${result.sessionsProcessed} sessions reprocessed, ${result.observationsExtracted} observations extracted, ${result.summariesRegenerated} summaries regenerated.`);
|
|
70
|
+
}
|
|
71
|
+
} finally {
|
|
72
|
+
index.close();
|
|
73
|
+
vectorIndex?.close();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
run
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=reprocess-PKRDV67L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/reprocess.ts"],"sourcesContent":["/**\n * myco reprocess — re-run the observation extraction and summarization pipeline\n * for existing sessions. Useful after bugs or when the LLM backend changes.\n *\n * Reads transcripts (the source of truth), re-extracts observations, regenerates\n * summaries/titles, and re-indexes everything. Existing spore files from those\n * sessions are preserved — new observations are additive.\n *\n * Flags:\n * --session <id> Filter to sessions matching this substring\n * --date <YYYY-MM-DD> Filter to sessions from a specific date\n * --failed Only reprocess sessions with failed summaries\n * --index-only Skip all LLM calls (re-index only)\n */\nimport path from 'node:path';\nimport { MycoIndex } from '../index/sqlite.js';\nimport { VectorIndex } from '../index/vectors.js';\nimport { initFts } from '../index/fts.js';\nimport { loadConfig } from '../config/loader.js';\nimport { createLlmProvider, createEmbeddingProvider } from '../intelligence/llm.js';\nimport { runReprocess } from '../services/vault-ops.js';\nimport { parseStringFlag } from './shared.js';\n\nexport async function run(args: string[], vaultDir: string): Promise<void> {\n const sessionFilter = parseStringFlag(args, '--session');\n const dateFilter = parseStringFlag(args, '--date');\n const failedOnly = args.includes('--failed');\n const skipLlm = args.includes('--index-only');\n\n const config = loadConfig(vaultDir);\n const index = new MycoIndex(path.join(vaultDir, 'index.db'));\n initFts(index);\n\n const llmProvider = skipLlm ? null : createLlmProvider(config.intelligence.llm);\n const embeddingProvider = createEmbeddingProvider(config.intelligence.embedding);\n\n let vectorIndex: VectorIndex | null = null;\n try {\n const testEmbed = await embeddingProvider.embed('test');\n vectorIndex = new VectorIndex(path.join(vaultDir, 'vectors.db'), testEmbed.dimensions);\n } catch (e) {\n console.log(`Vector index unavailable: ${(e as Error).message}`);\n }\n\n try {\n const result = await runReprocess(\n { vaultDir, config, index, vectorIndex: vectorIndex ?? undefined, log: (level, msg) => console.log(`[${level}] ${msg}`) },\n llmProvider,\n embeddingProvider,\n { session: sessionFilter, date: dateFilter, failed: failedOnly, indexOnly: skipLlm },\n (phase, done, total) => {\n process.stdout.write(`\\r ${phase}: ${done}/${total}`);\n if (done === total) process.stdout.write('\\n');\n },\n );\n\n if (result.sessionsProcessed === 0) {\n const filters = [sessionFilter && `session=\"${sessionFilter}\"`, dateFilter && `date=\"${dateFilter}\"`, failedOnly && 'failed'].filter(Boolean);\n console.log(filters.length ? `No sessions matching ${filters.join(', ')} found.` : 'No sessions found.');\n } else {\n console.log(`\\nDone: ${result.sessionsProcessed} sessions reprocessed, ${result.observationsExtracted} observations extracted, ${result.summariesRegenerated} summaries regenerated.`);\n }\n } finally {\n index.close();\n vectorIndex?.close();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,OAAO,UAAU;AASjB,eAAsB,IAAI,MAAgB,UAAiC;AACzE,QAAM,gBAAgB,gBAAgB,MAAM,WAAW;AACvD,QAAM,aAAa,gBAAgB,MAAM,QAAQ;AACjD,QAAM,aAAa,KAAK,SAAS,UAAU;AAC3C,QAAM,UAAU,KAAK,SAAS,cAAc;AAE5C,QAAM,SAAS,WAAW,QAAQ;AAClC,QAAM,QAAQ,IAAI,UAAU,KAAK,KAAK,UAAU,UAAU,CAAC;AAC3D,UAAQ,KAAK;AAEb,QAAM,cAAc,UAAU,OAAO,kBAAkB,OAAO,aAAa,GAAG;AAC9E,QAAM,oBAAoB,wBAAwB,OAAO,aAAa,SAAS;AAE/E,MAAI,cAAkC;AACtC,MAAI;AACF,UAAM,YAAY,MAAM,kBAAkB,MAAM,MAAM;AACtD,kBAAc,IAAI,YAAY,KAAK,KAAK,UAAU,YAAY,GAAG,UAAU,UAAU;AAAA,EACvF,SAAS,GAAG;AACV,YAAQ,IAAI,6BAA8B,EAAY,OAAO,EAAE;AAAA,EACjE;AAEA,MAAI;AACF,UAAM,SAAS,MAAM;AAAA,MACnB,EAAE,UAAU,QAAQ,OAAO,aAAa,eAAe,QAAW,KAAK,CAAC,OAAO,QAAQ,QAAQ,IAAI,IAAI,KAAK,KAAK,GAAG,EAAE,EAAE;AAAA,MACxH;AAAA,MACA;AAAA,MACA,EAAE,SAAS,eAAe,MAAM,YAAY,QAAQ,YAAY,WAAW,QAAQ;AAAA,MACnF,CAAC,OAAO,MAAM,UAAU;AACtB,gBAAQ,OAAO,MAAM,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,EAAE;AACrD,YAAI,SAAS,MAAO,SAAQ,OAAO,MAAM,IAAI;AAAA,MAC/C;AAAA,IACF;AAEA,QAAI,OAAO,sBAAsB,GAAG;AAClC,YAAM,UAAU,CAAC,iBAAiB,YAAY,aAAa,KAAK,cAAc,SAAS,UAAU,KAAK,cAAc,QAAQ,EAAE,OAAO,OAAO;AAC5I,cAAQ,IAAI,QAAQ,SAAS,wBAAwB,QAAQ,KAAK,IAAI,CAAC,YAAY,oBAAoB;AAAA,IACzG,OAAO;AACL,cAAQ,IAAI;AAAA,QAAW,OAAO,iBAAiB,0BAA0B,OAAO,qBAAqB,4BAA4B,OAAO,oBAAoB,yBAAyB;AAAA,IACvL;AAAA,EACF,UAAE;AACA,UAAM,MAAM;AACZ,iBAAa,MAAM;AAAA,EACrB;AACF;","names":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isProcessAlive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-25DJSF2K.js";
|
|
5
5
|
import "./chunk-SAKJMNSR.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MWW62YZP.js";
|
|
7
|
+
import "./chunk-RNWALAFP.js";
|
|
8
|
+
import "./chunk-WBLTISAK.js";
|
|
9
9
|
import "./chunk-PZUWP5VK.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/restart.ts
|
|
@@ -29,7 +29,7 @@ async function run(_args, vaultDir) {
|
|
|
29
29
|
} catch {
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
const { DaemonClient } = await import("./client-
|
|
32
|
+
const { DaemonClient } = await import("./client-FDKJ4BY7.js");
|
|
33
33
|
const client = new DaemonClient(vaultDir);
|
|
34
34
|
console.log("Waiting for health check...");
|
|
35
35
|
const healthy = await client.ensureRunning();
|
|
@@ -48,4 +48,4 @@ async function run(_args, vaultDir) {
|
|
|
48
48
|
export {
|
|
49
49
|
run
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=restart-
|
|
51
|
+
//# sourceMappingURL=restart-WSJRHRHI.js.map
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
} from "./chunk-RGVBGTD6.js";
|
|
8
8
|
import {
|
|
9
9
|
createEmbeddingProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V5R6O6RP.js";
|
|
11
11
|
import {
|
|
12
12
|
searchFts
|
|
13
13
|
} from "./chunk-6FQISQNA.js";
|
|
14
14
|
import {
|
|
15
15
|
MycoIndex
|
|
16
16
|
} from "./chunk-TWSTAVLO.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-MWW62YZP.js";
|
|
18
18
|
import {
|
|
19
19
|
loadConfig
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-YG6MLLGL.js";
|
|
21
|
+
import "./chunk-JSK7L46L.js";
|
|
22
|
+
import "./chunk-WBLTISAK.js";
|
|
23
23
|
import "./chunk-PZUWP5VK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/search.ts
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
run,
|
|
118
118
|
runVectors
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=search-
|
|
120
|
+
//# sourceMappingURL=search-SWMJ4MZ3.js.map
|
|
@@ -5,34 +5,30 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
consolidateSpores,
|
|
7
7
|
handleMycoContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
VaultWriter
|
|
11
|
-
} from "./chunk-KC7ENQTN.js";
|
|
8
|
+
} from "./chunk-LDKXXKF6.js";
|
|
12
9
|
import "./chunk-QLUE3BUL.js";
|
|
13
10
|
import {
|
|
14
11
|
VectorIndex
|
|
15
12
|
} from "./chunk-4RMSHZE4.js";
|
|
16
|
-
import {
|
|
17
|
-
checkSupersession
|
|
18
|
-
} from "./chunk-UVGAVYWZ.js";
|
|
19
13
|
import {
|
|
20
14
|
OBSERVATION_TYPES,
|
|
21
15
|
PLAN_STATUSES,
|
|
16
|
+
VaultWriter,
|
|
17
|
+
checkSupersession,
|
|
22
18
|
indexNote
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ALBVNGCF.js";
|
|
24
20
|
import {
|
|
25
21
|
generateEmbedding
|
|
26
22
|
} from "./chunk-RGVBGTD6.js";
|
|
27
23
|
import {
|
|
28
24
|
createEmbeddingProvider,
|
|
29
25
|
createLlmProvider
|
|
30
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-V5R6O6RP.js";
|
|
31
27
|
import {
|
|
32
28
|
planFm,
|
|
33
29
|
sessionFm,
|
|
34
30
|
sporeFm
|
|
35
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RY76WEN3.js";
|
|
36
32
|
import {
|
|
37
33
|
initFts,
|
|
38
34
|
searchFts
|
|
@@ -40,10 +36,10 @@ import {
|
|
|
40
36
|
import {
|
|
41
37
|
MycoIndex
|
|
42
38
|
} from "./chunk-TWSTAVLO.js";
|
|
43
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-MWW62YZP.js";
|
|
44
40
|
import {
|
|
45
41
|
loadConfig
|
|
46
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YG6MLLGL.js";
|
|
47
43
|
import {
|
|
48
44
|
_enum,
|
|
49
45
|
_null,
|
|
@@ -64,17 +60,17 @@ import {
|
|
|
64
60
|
string,
|
|
65
61
|
union,
|
|
66
62
|
unknown
|
|
67
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JSK7L46L.js";
|
|
68
64
|
import {
|
|
69
65
|
resolveSessionFromBuffer
|
|
70
66
|
} from "./chunk-HIN3UVOG.js";
|
|
71
67
|
import {
|
|
72
68
|
getPluginVersion
|
|
73
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-CK24O5YQ.js";
|
|
74
70
|
import {
|
|
75
71
|
resolveVaultDir
|
|
76
72
|
} from "./chunk-N33KUCFP.js";
|
|
77
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-RNWALAFP.js";
|
|
78
74
|
import {
|
|
79
75
|
CONTENT_SNIPPET_CHARS,
|
|
80
76
|
EMBEDDING_INPUT_LIMIT,
|
|
@@ -83,7 +79,7 @@ import {
|
|
|
83
79
|
MCP_SESSIONS_DEFAULT_LIMIT,
|
|
84
80
|
RECALL_SUMMARY_PREVIEW_CHARS,
|
|
85
81
|
SESSION_SUMMARY_PREVIEW_CHARS
|
|
86
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-WBLTISAK.js";
|
|
87
83
|
import {
|
|
88
84
|
__commonJS,
|
|
89
85
|
__toESM
|
|
@@ -14606,7 +14602,7 @@ var TOOL_DEFINITIONS = [
|
|
|
14606
14602
|
properties: {
|
|
14607
14603
|
tier: {
|
|
14608
14604
|
type: "number",
|
|
14609
|
-
enum: [1500, 3e3, 5e3, 1e4],
|
|
14605
|
+
enum: [1500, 3e3, 5e3, 7500, 1e4],
|
|
14610
14606
|
description: "Token budget tier. Larger tiers include more detail. Default: 3000."
|
|
14611
14607
|
}
|
|
14612
14608
|
}
|
|
@@ -14746,4 +14742,4 @@ export {
|
|
|
14746
14742
|
createMycoServer,
|
|
14747
14743
|
main
|
|
14748
14744
|
};
|
|
14749
|
-
//# sourceMappingURL=server-
|
|
14745
|
+
//# sourceMappingURL=server-NTRVB5ZM.js.map
|