@goondocks/myco 0.3.2 → 0.3.3
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-5BGQJOJN.js → chunk-4RJ3IEPW.js} +4 -4
- package/dist/{chunk-JIQISBPI.js → chunk-5RTCCPR6.js} +5 -5
- package/dist/{chunk-P2Q77C5F.js → chunk-7ULKE5QH.js} +1 -1
- package/dist/{chunk-P2Q77C5F.js.map → chunk-7ULKE5QH.js.map} +1 -1
- package/dist/{chunk-Q7BEFSOV.js → chunk-7VPJK56U.js} +10 -4
- package/dist/chunk-7VPJK56U.js.map +1 -0
- package/dist/{chunk-N6IAW33G.js → chunk-7WNE22W7.js} +3 -3
- package/dist/{chunk-72OAG4SF.js → chunk-AWF3M57N.js} +11 -6
- package/dist/{chunk-72OAG4SF.js.map → chunk-AWF3M57N.js.map} +1 -1
- package/dist/{chunk-XW3OL55U.js → chunk-BA23DROX.js} +2 -2
- package/dist/{chunk-TJJRIVZ7.js → chunk-C72VNYA4.js} +2 -2
- package/dist/{chunk-PAUPHPOC.js → chunk-DBSG4V6Y.js} +3 -3
- package/dist/{chunk-2UEJVXXE.js → chunk-R2R243GC.js} +2 -2
- package/dist/{chunk-2QEJKG7R.js → chunk-Y3OYD4CX.js} +2 -2
- package/dist/{chunk-2TKJPRZL.js → chunk-ZBNT6E22.js} +2 -2
- package/dist/{cli-4RR3QBYK.js → cli-BGA533S2.js} +15 -15
- package/dist/{client-43ML4EHJ.js → client-YI6RXFJD.js} +5 -5
- package/dist/{detect-providers-6RQCQZOI.js → detect-providers-LNOLBICR.js} +3 -3
- package/dist/{init-HTKEL3YT.js → init-TQ7Q4WEI.js} +5 -5
- package/dist/{main-DTWU4OAH.js → main-6NGFOICG.js} +10 -9
- package/dist/{main-DTWU4OAH.js.map → main-6NGFOICG.js.map} +1 -1
- package/dist/{rebuild-TXMFYBOU.js → rebuild-JW6BCHHZ.js} +5 -5
- package/dist/{reprocess-ARKHGDWF.js → reprocess-F74UA2JC.js} +9 -9
- package/dist/{restart-C5BCVG3A.js → restart-UGE2Y327.js} +6 -6
- package/dist/{search-YCKNX2WS.js → search-2HMG3ON7.js} +4 -4
- package/dist/{server-EBKMQISL.js → server-YYGJKVBZ.js} +102 -81
- package/dist/server-YYGJKVBZ.js.map +1 -0
- package/dist/{session-start-ADZLL2YI.js → session-start-4MNXDOYK.js} +6 -6
- 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 +5 -5
- package/dist/src/hooks/user-prompt-submit.js +9 -8
- package/dist/src/hooks/user-prompt-submit.js.map +1 -1
- package/dist/src/mcp/server.js +4 -4
- package/dist/{stats-7VEZN2WF.js → stats-7T44NZQN.js} +5 -5
- package/dist/{verify-HN5DWV2H.js → verify-7MWOV72E.js} +4 -4
- package/dist/{version-N55WTRG5.js → version-3MSC7E3V.js} +4 -4
- package/package.json +1 -1
- package/skills/myco/SKILL.md +15 -14
- package/dist/chunk-Q7BEFSOV.js.map +0 -1
- package/dist/server-EBKMQISL.js.map +0 -1
- /package/dist/{chunk-5BGQJOJN.js.map → chunk-4RJ3IEPW.js.map} +0 -0
- /package/dist/{chunk-JIQISBPI.js.map → chunk-5RTCCPR6.js.map} +0 -0
- /package/dist/{chunk-N6IAW33G.js.map → chunk-7WNE22W7.js.map} +0 -0
- /package/dist/{chunk-XW3OL55U.js.map → chunk-BA23DROX.js.map} +0 -0
- /package/dist/{chunk-TJJRIVZ7.js.map → chunk-C72VNYA4.js.map} +0 -0
- /package/dist/{chunk-PAUPHPOC.js.map → chunk-DBSG4V6Y.js.map} +0 -0
- /package/dist/{chunk-2UEJVXXE.js.map → chunk-R2R243GC.js.map} +0 -0
- /package/dist/{chunk-2QEJKG7R.js.map → chunk-Y3OYD4CX.js.map} +0 -0
- /package/dist/{chunk-2TKJPRZL.js.map → chunk-ZBNT6E22.js.map} +0 -0
- /package/dist/{cli-4RR3QBYK.js.map → cli-BGA533S2.js.map} +0 -0
- /package/dist/{client-43ML4EHJ.js.map → client-YI6RXFJD.js.map} +0 -0
- /package/dist/{detect-providers-6RQCQZOI.js.map → detect-providers-LNOLBICR.js.map} +0 -0
- /package/dist/{init-HTKEL3YT.js.map → init-TQ7Q4WEI.js.map} +0 -0
- /package/dist/{rebuild-TXMFYBOU.js.map → rebuild-JW6BCHHZ.js.map} +0 -0
- /package/dist/{reprocess-ARKHGDWF.js.map → reprocess-F74UA2JC.js.map} +0 -0
- /package/dist/{restart-C5BCVG3A.js.map → restart-UGE2Y327.js.map} +0 -0
- /package/dist/{search-YCKNX2WS.js.map → search-2HMG3ON7.js.map} +0 -0
- /package/dist/{session-start-ADZLL2YI.js.map → session-start-4MNXDOYK.js.map} +0 -0
- /package/dist/{stats-7VEZN2WF.js.map → stats-7T44NZQN.js.map} +0 -0
- /package/dist/{verify-HN5DWV2H.js.map → verify-7MWOV72E.js.map} +0 -0
- /package/dist/{version-N55WTRG5.js.map → version-3MSC7E3V.js.map} +0 -0
|
@@ -12,21 +12,21 @@ import {
|
|
|
12
12
|
import "./chunk-EF4JVH24.js";
|
|
13
13
|
import {
|
|
14
14
|
readStdin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZBNT6E22.js";
|
|
16
16
|
import {
|
|
17
17
|
DaemonClient
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-4RJ3IEPW.js";
|
|
19
|
+
import "./chunk-R2R243GC.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveVaultDir
|
|
22
22
|
} from "./chunk-N33KUCFP.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-Y3OYD4CX.js";
|
|
24
24
|
import {
|
|
25
25
|
CHARS_PER_TOKEN,
|
|
26
26
|
CONTEXT_MEMORY_PREVIEW_CHARS,
|
|
27
27
|
CONTEXT_PLAN_PREVIEW_CHARS,
|
|
28
28
|
CONTEXT_SESSION_PREVIEW_CHARS
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7VPJK56U.js";
|
|
30
30
|
import "./chunk-PZUWP5VK.js";
|
|
31
31
|
|
|
32
32
|
// src/context/relevance.ts
|
|
@@ -188,4 +188,4 @@ async function main() {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
main();
|
|
191
|
-
//# sourceMappingURL=session-start-
|
|
191
|
+
//# sourceMappingURL=session-start-4MNXDOYK.js.map
|
package/dist/src/cli.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ensureNativeDeps
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-C72VNYA4.js";
|
|
6
|
+
import "../chunk-Y3OYD4CX.js";
|
|
7
|
+
import "../chunk-7VPJK56U.js";
|
|
8
8
|
import "../chunk-PZUWP5VK.js";
|
|
9
9
|
|
|
10
10
|
// src/entries/cli.ts
|
|
11
11
|
ensureNativeDeps();
|
|
12
|
-
await import("../cli-
|
|
12
|
+
await import("../cli-BGA533S2.js");
|
|
13
13
|
//# sourceMappingURL=cli.js.map
|
package/dist/src/daemon/main.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ensureNativeDeps
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-C72VNYA4.js";
|
|
5
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
6
|
+
import "../../chunk-7VPJK56U.js";
|
|
7
7
|
import "../../chunk-PZUWP5VK.js";
|
|
8
8
|
|
|
9
9
|
// src/entries/daemon.ts
|
|
10
10
|
ensureNativeDeps();
|
|
11
|
-
var { main } = await import("../../main-
|
|
11
|
+
var { main } = await import("../../main-6NGFOICG.js");
|
|
12
12
|
await main();
|
|
13
13
|
//# sourceMappingURL=main.js.map
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
} from "../../chunk-I7PMGO6S.js";
|
|
5
5
|
import {
|
|
6
6
|
readStdin
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-ZBNT6E22.js";
|
|
8
8
|
import {
|
|
9
9
|
DaemonClient
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-4RJ3IEPW.js";
|
|
11
|
+
import "../../chunk-R2R243GC.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveVaultDir
|
|
14
14
|
} from "../../chunk-N33KUCFP.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
16
16
|
import {
|
|
17
17
|
TOOL_OUTPUT_PREVIEW_CHARS
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-7VPJK56U.js";
|
|
19
19
|
import "../../chunk-PZUWP5VK.js";
|
|
20
20
|
|
|
21
21
|
// src/hooks/post-tool-use.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
readStdin
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-ZBNT6E22.js";
|
|
5
5
|
import {
|
|
6
6
|
DaemonClient
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-4RJ3IEPW.js";
|
|
8
|
+
import "../../chunk-R2R243GC.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveVaultDir
|
|
11
11
|
} from "../../chunk-N33KUCFP.js";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
13
|
+
import "../../chunk-7VPJK56U.js";
|
|
14
14
|
import "../../chunk-PZUWP5VK.js";
|
|
15
15
|
|
|
16
16
|
// src/hooks/session-end.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ensureNativeDeps
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-C72VNYA4.js";
|
|
5
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
6
|
+
import "../../chunk-7VPJK56U.js";
|
|
7
7
|
import "../../chunk-PZUWP5VK.js";
|
|
8
8
|
|
|
9
9
|
// src/entries/session-start.ts
|
|
10
10
|
ensureNativeDeps();
|
|
11
|
-
await import("../../session-start-
|
|
11
|
+
await import("../../session-start-4MNXDOYK.js");
|
|
12
12
|
//# sourceMappingURL=session-start.js.map
|
package/dist/src/hooks/stop.js
CHANGED
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
import "../../chunk-EF4JVH24.js";
|
|
6
6
|
import {
|
|
7
7
|
readStdin
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-ZBNT6E22.js";
|
|
9
9
|
import {
|
|
10
10
|
DaemonClient
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-4RJ3IEPW.js";
|
|
12
|
+
import "../../chunk-R2R243GC.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveVaultDir
|
|
15
15
|
} from "../../chunk-N33KUCFP.js";
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
17
|
+
import "../../chunk-7VPJK56U.js";
|
|
18
18
|
import "../../chunk-PZUWP5VK.js";
|
|
19
19
|
|
|
20
20
|
// src/hooks/stop.ts
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "../../chunk-I7PMGO6S.js";
|
|
5
5
|
import {
|
|
6
6
|
readStdin
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-ZBNT6E22.js";
|
|
8
8
|
import {
|
|
9
9
|
DaemonClient
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-4RJ3IEPW.js";
|
|
11
|
+
import "../../chunk-R2R243GC.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveVaultDir
|
|
14
14
|
} from "../../chunk-N33KUCFP.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
16
|
+
import "../../chunk-7VPJK56U.js";
|
|
17
17
|
import "../../chunk-PZUWP5VK.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/user-prompt-submit.ts
|
|
@@ -43,9 +43,10 @@ async function main() {
|
|
|
43
43
|
prompt,
|
|
44
44
|
session_id: sessionId
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
const sessionLine = `Session:: \`${sessionId}\``;
|
|
47
|
+
const contextText = contextResult.ok && contextResult.data?.text ? `${contextResult.data.text}
|
|
48
|
+
${sessionLine}` : sessionLine;
|
|
49
|
+
process.stdout.write(contextText);
|
|
49
50
|
} catch (error) {
|
|
50
51
|
process.stderr.write(`[myco] user-prompt-submit error: ${error.message}
|
|
51
52
|
`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/hooks/user-prompt-submit.ts"],"sourcesContent":["import { DaemonClient } from './client.js';\nimport { readStdin } from './read-stdin.js';\nimport { EventBuffer } from '../capture/buffer.js';\nimport { resolveVaultDir } from '../vault/resolve.js';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nasync function main() {\n const VAULT_DIR = resolveVaultDir();\n if (!fs.existsSync(path.join(VAULT_DIR, 'myco.yaml'))) return;\n\n try {\n const input = JSON.parse(await readStdin());\n const prompt = input.prompt ?? '';\n const sessionId = input.session_id ?? `s-${Date.now()}`;\n\n const client = new DaemonClient(VAULT_DIR);\n // Spawn daemon if needed but don't block on full health check backoff.\n // The event POST will fail fast if daemon isn't ready — buffer absorbs it.\n if (!(await client.isHealthy())) {\n client.spawnDaemon();\n }\n\n // Forward prompt as event for capture\n const eventResult = await client.post('/events', {\n type: 'user_prompt', prompt, session_id: sessionId,\n });\n\n if (!eventResult.ok) {\n // Daemon still unreachable — write directly to buffer for later processing\n const buffer = new EventBuffer(path.join(VAULT_DIR, 'buffer'), sessionId);\n buffer.append({ type: 'user_prompt', prompt });\n }\n\n // Search for relevant memories to inject as context for this prompt.\n // The daemon does a vector search against the prompt text and returns\n // any high-relevance memories. This is fast (~20ms) — no LLM call.\n const contextResult = await client.post('/context/prompt', {\n prompt,\n session_id: sessionId,\n });\n\n
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/user-prompt-submit.ts"],"sourcesContent":["import { DaemonClient } from './client.js';\nimport { readStdin } from './read-stdin.js';\nimport { EventBuffer } from '../capture/buffer.js';\nimport { resolveVaultDir } from '../vault/resolve.js';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nasync function main() {\n const VAULT_DIR = resolveVaultDir();\n if (!fs.existsSync(path.join(VAULT_DIR, 'myco.yaml'))) return;\n\n try {\n const input = JSON.parse(await readStdin());\n const prompt = input.prompt ?? '';\n const sessionId = input.session_id ?? `s-${Date.now()}`;\n\n const client = new DaemonClient(VAULT_DIR);\n // Spawn daemon if needed but don't block on full health check backoff.\n // The event POST will fail fast if daemon isn't ready — buffer absorbs it.\n if (!(await client.isHealthy())) {\n client.spawnDaemon();\n }\n\n // Forward prompt as event for capture\n const eventResult = await client.post('/events', {\n type: 'user_prompt', prompt, session_id: sessionId,\n });\n\n if (!eventResult.ok) {\n // Daemon still unreachable — write directly to buffer for later processing\n const buffer = new EventBuffer(path.join(VAULT_DIR, 'buffer'), sessionId);\n buffer.append({ type: 'user_prompt', prompt });\n }\n\n // Search for relevant memories to inject as context for this prompt.\n // The daemon does a vector search against the prompt text and returns\n // any high-relevance memories. This is fast (~20ms) — no LLM call.\n const contextResult = await client.post('/context/prompt', {\n prompt,\n session_id: sessionId,\n });\n\n // Always include the session ID so the agent can pass it to myco_remember.\n // Uses Session:: format consistent with daemon context injection (Branch::, Session::).\n const sessionLine = `Session:: \\`${sessionId}\\``;\n const contextText = contextResult.ok && contextResult.data?.text\n ? `${contextResult.data.text}\\n${sessionLine}`\n : sessionLine;\n\n process.stdout.write(contextText);\n } catch (error) {\n process.stderr.write(`[myco] user-prompt-submit error: ${(error as Error).message}\\n`);\n }\n}\n\nmain();\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA,OAAO,QAAQ;AACf,OAAO,UAAU;AAEjB,eAAe,OAAO;AACpB,QAAM,YAAY,gBAAgB;AAClC,MAAI,CAAC,GAAG,WAAW,KAAK,KAAK,WAAW,WAAW,CAAC,EAAG;AAEvD,MAAI;AACF,UAAM,QAAQ,KAAK,MAAM,MAAM,UAAU,CAAC;AAC1C,UAAM,SAAS,MAAM,UAAU;AAC/B,UAAM,YAAY,MAAM,cAAc,KAAK,KAAK,IAAI,CAAC;AAErD,UAAM,SAAS,IAAI,aAAa,SAAS;AAGzC,QAAI,CAAE,MAAM,OAAO,UAAU,GAAI;AAC/B,aAAO,YAAY;AAAA,IACrB;AAGA,UAAM,cAAc,MAAM,OAAO,KAAK,WAAW;AAAA,MAC/C,MAAM;AAAA,MAAe;AAAA,MAAQ,YAAY;AAAA,IAC3C,CAAC;AAED,QAAI,CAAC,YAAY,IAAI;AAEnB,YAAM,SAAS,IAAI,YAAY,KAAK,KAAK,WAAW,QAAQ,GAAG,SAAS;AACxE,aAAO,OAAO,EAAE,MAAM,eAAe,OAAO,CAAC;AAAA,IAC/C;AAKA,UAAM,gBAAgB,MAAM,OAAO,KAAK,mBAAmB;AAAA,MACzD;AAAA,MACA,YAAY;AAAA,IACd,CAAC;AAID,UAAM,cAAc,eAAe,SAAS;AAC5C,UAAM,cAAc,cAAc,MAAM,cAAc,MAAM,OACxD,GAAG,cAAc,KAAK,IAAI;AAAA,EAAK,WAAW,KAC1C;AAEJ,YAAQ,OAAO,MAAM,WAAW;AAAA,EAClC,SAAS,OAAO;AACd,YAAQ,OAAO,MAAM,oCAAqC,MAAgB,OAAO;AAAA,CAAI;AAAA,EACvF;AACF;AAEA,KAAK;","names":[]}
|
package/dist/src/mcp/server.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ensureNativeDeps
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-C72VNYA4.js";
|
|
5
|
+
import "../../chunk-Y3OYD4CX.js";
|
|
6
|
+
import "../../chunk-7VPJK56U.js";
|
|
7
7
|
import "../../chunk-PZUWP5VK.js";
|
|
8
8
|
|
|
9
9
|
// src/entries/mcp-server.ts
|
|
10
10
|
ensureNativeDeps();
|
|
11
|
-
var { main } = await import("../../server-
|
|
11
|
+
var { main } = await import("../../server-YYGJKVBZ.js");
|
|
12
12
|
await main();
|
|
13
13
|
//# sourceMappingURL=server.js.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-XQXXF6MU.js";
|
|
5
5
|
import {
|
|
6
6
|
isProcessAlive
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DBSG4V6Y.js";
|
|
8
8
|
import "./chunk-SAKJMNSR.js";
|
|
9
9
|
import {
|
|
10
10
|
MycoIndex
|
|
11
11
|
} from "./chunk-PA3VMINE.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-BA23DROX.js";
|
|
13
|
+
import "./chunk-Y3OYD4CX.js";
|
|
14
|
+
import "./chunk-7VPJK56U.js";
|
|
15
15
|
import "./chunk-PZUWP5VK.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/stats.ts
|
|
@@ -74,4 +74,4 @@ Vectors: error \u2014 ${e.message}`);
|
|
|
74
74
|
export {
|
|
75
75
|
run
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=stats-
|
|
77
|
+
//# sourceMappingURL=stats-7T44NZQN.js.map
|
|
@@ -2,13 +2,13 @@ import { createRequire as __cr } from 'node:module'; const require = __cr(import
|
|
|
2
2
|
import {
|
|
3
3
|
createEmbeddingProvider,
|
|
4
4
|
createLlmProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-7WNE22W7.js";
|
|
6
|
+
import "./chunk-BA23DROX.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig
|
|
9
9
|
} from "./chunk-ISCT2SI6.js";
|
|
10
10
|
import "./chunk-EF4JVH24.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7VPJK56U.js";
|
|
12
12
|
import "./chunk-PZUWP5VK.js";
|
|
13
13
|
|
|
14
14
|
// src/cli/verify.ts
|
|
@@ -47,4 +47,4 @@ async function run(_args, vaultDir) {
|
|
|
47
47
|
export {
|
|
48
48
|
run
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=verify-
|
|
50
|
+
//# sourceMappingURL=verify-7MWOV72E.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getPluginVersion
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-R2R243GC.js";
|
|
5
|
+
import "./chunk-Y3OYD4CX.js";
|
|
6
|
+
import "./chunk-7VPJK56U.js";
|
|
7
7
|
import "./chunk-PZUWP5VK.js";
|
|
8
8
|
export {
|
|
9
9
|
getPluginVersion
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=version-
|
|
11
|
+
//# sourceMappingURL=version-3MSC7E3V.js.map
|
package/package.json
CHANGED
package/skills/myco/SKILL.md
CHANGED
|
@@ -207,19 +207,20 @@ The vault should get sharper over time, not just bigger. Every session should le
|
|
|
207
207
|
|
|
208
208
|
## Maintenance
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
All CLI commands use `node` with the CLI script inside the plugin root. Run commands as:
|
|
211
211
|
|
|
212
|
-
```bash
|
|
213
|
-
# Resolve the CLI path (use the appropriate env var for your agent)
|
|
214
|
-
MYCO_CLI="node ${CLAUDE_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT}}/dist/src/cli.js"
|
|
215
212
|
```
|
|
213
|
+
node <plugin-root>/dist/src/cli.js <command> [args]
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Where `<plugin-root>` is the agent's plugin root environment variable (e.g., the value of `CLAUDE_PLUGIN_ROOT` or `CURSOR_PLUGIN_ROOT`).
|
|
216
217
|
|
|
217
218
|
### Reprocessing sessions
|
|
218
219
|
|
|
219
|
-
If observations were lost due to a bug, or if you want to re-extract observations with a different LLM:
|
|
220
|
+
If observations were lost due to a bug, or if you want to re-extract observations with a different LLM, run the `reprocess` command:
|
|
220
221
|
|
|
221
|
-
```
|
|
222
|
-
|
|
222
|
+
```
|
|
223
|
+
node <plugin-root>/dist/src/cli.js reprocess
|
|
223
224
|
```
|
|
224
225
|
|
|
225
226
|
This re-reads all session transcripts, re-extracts observations, and re-indexes everything. Existing memories are preserved — new observations are additive.
|
|
@@ -230,11 +231,11 @@ Options:
|
|
|
230
231
|
|
|
231
232
|
### Other maintenance commands
|
|
232
233
|
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
234
|
+
```
|
|
235
|
+
node <plugin-root>/dist/src/cli.js version # Check plugin version
|
|
236
|
+
node <plugin-root>/dist/src/cli.js rebuild # Re-index all vault notes
|
|
237
|
+
node <plugin-root>/dist/src/cli.js stats # Check vault health
|
|
238
|
+
node <plugin-root>/dist/src/cli.js verify # Test provider connectivity
|
|
239
|
+
node <plugin-root>/dist/src/cli.js config get intelligence.llm.model
|
|
240
|
+
node <plugin-root>/dist/src/cli.js config set intelligence.llm.model gpt-oss
|
|
240
241
|
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the Myco codebase.\n * Per CLAUDE.md: \"No Magic Literals — Numeric and string constants\n * MUST NOT appear inline in logic.\"\n */\n\n// --- Token estimation ---\n/** Approximate characters per token for the chars/4 heuristic. */\nexport const CHARS_PER_TOKEN = 4;\n\n// --- Embedding ---\n/** Max characters of text sent to the embedding model. */\nexport const EMBEDDING_INPUT_LIMIT = 8000;\n\n// --- Truncation limits (display/preview) ---\n/** Max chars for a user prompt preview in event summaries. */\nexport const PROMPT_PREVIEW_CHARS = 300;\n/** Max chars for an AI response preview in event summaries. */\nexport const AI_RESPONSE_PREVIEW_CHARS = 500;\n/** Max chars for a command string preview. */\nexport const COMMAND_PREVIEW_CHARS = 80;\n/** Max chars for a content snippet in search results. */\nexport const CONTENT_SNIPPET_CHARS = 120;\n/** Max chars for a tool output preview in hooks. */\nexport const TOOL_OUTPUT_PREVIEW_CHARS = 200;\n/** Max chars for a session summary preview in MCP tools. */\nexport const SESSION_SUMMARY_PREVIEW_CHARS = 300;\n/** Max chars for a recall summary preview. */\nexport const RECALL_SUMMARY_PREVIEW_CHARS = 200;\n\n// --- Context injection layer budgets (chars, not tokens — used with .slice()) ---\nexport const CONTEXT_PLAN_PREVIEW_CHARS = 100;\nexport const CONTEXT_SESSION_PREVIEW_CHARS = 80;\nexport const CONTEXT_MEMORY_PREVIEW_CHARS = 80;\n\n// --- Processor maxTokens budgets ---\n/** Response token budget for observation extraction. */\nexport const EXTRACTION_MAX_TOKENS = 2048;\n/** Response token budget for session summary. */\nexport const SUMMARY_MAX_TOKENS = 512;\n/** Response token budget for session title generation. */\nexport const TITLE_MAX_TOKENS = 32;\n/** Response token budget for artifact classification. */\nexport const CLASSIFICATION_MAX_TOKENS = 1024;\n\n// --- Timeouts ---\n/** Daemon client HTTP request timeout (ms). */\nexport const DAEMON_CLIENT_TIMEOUT_MS = 2000;\n/** Health check timeout (ms) — fail fast if daemon isn't responding. */\nexport const DAEMON_HEALTH_CHECK_TIMEOUT_MS = 500;\n/** LLM request timeout (ms) — prevents hung requests from blocking stop processing. */\nexport const LLM_REQUEST_TIMEOUT_MS = 30_000;\n/** Embedding request timeout (ms). */\nexport const EMBEDDING_REQUEST_TIMEOUT_MS = 10_000;\n/** Stdin read timeout for hooks (ms). */\nexport const STDIN_TIMEOUT_MS = 100;\n/** Chokidar write stability threshold (ms). */\nexport const FILE_WATCH_STABILITY_MS = 1000;\n/** Provider detection timeout for detect-providers CLI command (ms). */\nexport const PROVIDER_DETECT_TIMEOUT_MS = 3000;\n\n// --- Buffer cleanup ---\n/** Max age for stale buffer files before cleanup (ms). */\nexport const STALE_BUFFER_MAX_AGE_MS = 24 * 60 * 60 * 1000;\n\n// --- Retry backoff ---\n/** Retry delays for daemon health check (ms). */\nexport const DAEMON_HEALTH_RETRY_DELAYS = [100, 200, 400, 800, 1500];\n\n// --- Slug limits ---\n/** Max length for slugified artifact IDs. */\nexport const MAX_SLUG_LENGTH = 100;\n\n// --- Content preview for classification prompt ---\n/** Max chars of file content per candidate in classification prompt. */\nexport const CANDIDATE_CONTENT_PREVIEW = 2000;\n\n// --- Transcript mining ---\n/** Minimum content length to consider a transcript entry meaningful. */\nexport const MIN_TRANSCRIPT_CONTENT_LENGTH = 10;\n\n// --- Query limits ---\n/** Max recent sessions to check for lineage heuristics. */\nexport const LINEAGE_RECENT_SESSIONS_LIMIT = 5;\n/** Max related memories to query for session notes. */\nexport const RELATED_MEMORIES_LIMIT = 50;\n\n// --- Context injection ---\n/** Max active plans to inject at session start. */\nexport const SESSION_CONTEXT_MAX_PLANS = 3;\n/** Max memories to inject per prompt. */\nexport const PROMPT_CONTEXT_MAX_MEMORIES = 3;\n/** Minimum similarity score for prompt context injection (0-1). */\nexport const PROMPT_CONTEXT_MIN_SIMILARITY = 0.3;\n/** Max token budget for session-start context injection. */\nexport const SESSION_CONTEXT_MAX_TOKENS = 500;\n/** Max token budget for per-prompt context injection. */\nexport const PROMPT_CONTEXT_MAX_TOKENS = 300;\n/** Minimum prompt length to trigger context search. */\nexport const PROMPT_CONTEXT_MIN_LENGTH = 10;\n"],"mappings":";;;AAQO,IAAM,kBAAkB;AAIxB,IAAM,wBAAwB;AAI9B,IAAM,uBAAuB;AAE7B,IAAM,4BAA4B;AAElC,IAAM,wBAAwB;AAE9B,IAAM,wBAAwB;AAE9B,IAAM,4BAA4B;AAElC,IAAM,gCAAgC;AAEtC,IAAM,+BAA+B;AAGrC,IAAM,6BAA6B;AACnC,IAAM,gCAAgC;AACtC,IAAM,+BAA+B;AAIrC,IAAM,wBAAwB;AAE9B,IAAM,qBAAqB;AAE3B,IAAM,mBAAmB;AAEzB,IAAM,4BAA4B;AAIlC,IAAM,2BAA2B;AAEjC,IAAM,iCAAiC;AAEvC,IAAM,yBAAyB;AAE/B,IAAM,+BAA+B;AAErC,IAAM,mBAAmB;AAEzB,IAAM,0BAA0B;AAEhC,IAAM,6BAA6B;AAInC,IAAM,0BAA0B,KAAK,KAAK,KAAK;AAI/C,IAAM,6BAA6B,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI;AAI5D,IAAM,kBAAkB;AAIxB,IAAM,4BAA4B;AAQlC,IAAM,gCAAgC;AAEtC,IAAM,yBAAyB;AAI/B,IAAM,4BAA4B;AAElC,IAAM,8BAA8B;AAEpC,IAAM,gCAAgC;AAMtC,IAAM,4BAA4B;","names":[]}
|