myrmo-mcp 0.34.0 → 0.35.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/dist/doctor.d.ts +17 -0
- package/dist/doctor.js +123 -1
- package/dist/init.d.ts +10 -0
- package/dist/init.js +47 -2
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/doctor.d.ts
CHANGED
|
@@ -18,11 +18,28 @@ export interface DoctorInput {
|
|
|
18
18
|
people_detail?: string | null;
|
|
19
19
|
holdout_percent?: number;
|
|
20
20
|
effort?: boolean;
|
|
21
|
+
worklog_scopes?: string[];
|
|
21
22
|
};
|
|
22
23
|
publish: string;
|
|
23
24
|
nodeVersion?: string;
|
|
24
25
|
home: string;
|
|
25
26
|
fetchImpl?: typeof fetch;
|
|
27
|
+
/** The environment this command runs in: where MYRMO_WORKLOG is looked for (default: process.env). */
|
|
28
|
+
env?: NodeJS.ProcessEnv;
|
|
29
|
+
platform?: NodeJS.Platform;
|
|
26
30
|
}
|
|
31
|
+
/** The node a Cline hook file starts, as init wrote it; undefined when the file is not ours or has another shape. */
|
|
32
|
+
export declare function clineHookNode(text: string): string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Where Claude Code gets MYRMO_WORKLOG=1, or null: the shell this runs in, the `env` block of ~/.claude/settings.json
|
|
35
|
+
* (which applies however Claude Code is started, from a terminal or from VS Code), or a work log hook registered there
|
|
36
|
+
* with the variable on its own command line.
|
|
37
|
+
*/
|
|
38
|
+
export declare function claudeWorkLogSource(home: string, env: NodeJS.ProcessEnv): string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The work log, client by client: which agents on this machine record what they do in it, and which cannot yet. Only
|
|
41
|
+
* for a colony that keeps one; nothing is sent and no text is read.
|
|
42
|
+
*/
|
|
43
|
+
export declare function workLogChecks(input: DoctorInput, fetchImpl: typeof fetch): Promise<Check[]>;
|
|
27
44
|
export declare function diagnose(input: DoctorInput): Promise<Check[]>;
|
|
28
45
|
export declare function render(checks: Check[]): string;
|
package/dist/doctor.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// trail is read: it asks the colony whether it is up, whether it lets this network in and whether this key opens it.
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
|
-
import { claudeCodeSetUp } from "./init.js";
|
|
6
|
+
import { CLINE_HOOK_EVENTS, CLINE_MARK, claudeCodeSetUp, claudeWorkLogHook, clineHooksDir, clineInstalled, targets } from "./init.js";
|
|
7
7
|
import { compareVersions, describeColony, VERSION, VERSION_SHAPE } from "./server.js";
|
|
8
8
|
import { t } from "./i18n.js";
|
|
9
9
|
const PUBLIC_HOSTS = new Set(["myrmo.dev", "www.myrmo.dev"]);
|
|
@@ -20,6 +20,127 @@ async function call(fetchImpl, url, key) {
|
|
|
20
20
|
return { error: String(cause) };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/** The node a Cline hook file starts, as init wrote it; undefined when the file is not ours or has another shape. */
|
|
24
|
+
export function clineHookNode(text) {
|
|
25
|
+
if (!text.includes(CLINE_MARK))
|
|
26
|
+
return undefined;
|
|
27
|
+
return /exec '((?:[^']|'\\'')+)'/.exec(text)?.[1]?.replace(/'\\''/g, "'") ?? /& "([^"]+)"/.exec(text)?.[1];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Where Claude Code gets MYRMO_WORKLOG=1, or null: the shell this runs in, the `env` block of ~/.claude/settings.json
|
|
31
|
+
* (which applies however Claude Code is started, from a terminal or from VS Code), or a work log hook registered there
|
|
32
|
+
* with the variable on its own command line.
|
|
33
|
+
*/
|
|
34
|
+
export function claudeWorkLogSource(home, env) {
|
|
35
|
+
let settings;
|
|
36
|
+
try {
|
|
37
|
+
settings = JSON.parse(readFileSync(join(home, ".claude", "settings.json"), "utf8"));
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
settings = undefined;
|
|
41
|
+
}
|
|
42
|
+
if (String(settings?.env?.MYRMO_WORKLOG ?? "") === "1")
|
|
43
|
+
return t("MYRMO_WORKLOG=1 in ~/.claude/settings.json", "MYRMO_WORKLOG=1 en ~/.claude/settings.json");
|
|
44
|
+
if (/MYRMO_WORKLOG=1[^"]*worklog-hook\.mjs/.test(JSON.stringify(settings?.hooks ?? "")))
|
|
45
|
+
return t("the work log hook in ~/.claude/settings.json", "el hook del registro en ~/.claude/settings.json");
|
|
46
|
+
if (env.MYRMO_WORKLOG === "1")
|
|
47
|
+
return t("MYRMO_WORKLOG=1 in this shell", "MYRMO_WORKLOG=1 en esta terminal");
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The work log, client by client: which agents on this machine record what they do in it, and which cannot yet. Only
|
|
52
|
+
* for a colony that keeps one; nothing is sent and no text is read.
|
|
53
|
+
*/
|
|
54
|
+
export async function workLogChecks(input, fetchImpl) {
|
|
55
|
+
const scopes = input.declared?.worklog_scopes;
|
|
56
|
+
if (!input.privateMode || !Array.isArray(scopes) || scopes.length === 0)
|
|
57
|
+
return [];
|
|
58
|
+
const name = t("Work log", "Registro de trabajo");
|
|
59
|
+
const checks = [];
|
|
60
|
+
const env = input.env ?? process.env;
|
|
61
|
+
const platform = input.platform ?? process.platform;
|
|
62
|
+
const enrolled = await call(fetchImpl, `${input.url.replace(/\/+$/, "")}/v1/worklog/matters?limit=1`, input.apiKey);
|
|
63
|
+
if ("status" in enrolled && enrolled.status === 403) {
|
|
64
|
+
checks.push({ level: "warn", name, detail: t("this colony keeps one, but your key is not enrolled in it", "esta colonia lo lleva, pero tu clave no está inscrita"), fix: t("Ask whoever runs the colony to add your key's name to MYRMO_WORKLOG_PEOPLE", "Pide a quien opera la colonia que añada el nombre de tu clave a MYRMO_WORKLOG_PEOPLE") });
|
|
65
|
+
return checks;
|
|
66
|
+
}
|
|
67
|
+
if (existsSync(join(input.home, ".myrmo", "worklog-paused")) || env.MYRMO_WORKLOG_PAUSE === "1") {
|
|
68
|
+
checks.push({ level: "warn", name, detail: t("paused on this machine: nothing is recorded", "en pausa en esta máquina: no se registra nada"), fix: t("Delete ~/.myrmo/worklog-paused (and unset MYRMO_WORKLOG_PAUSE) to resume", "Borra ~/.myrmo/worklog-paused (y quita MYRMO_WORKLOG_PAUSE) para reanudar") });
|
|
69
|
+
}
|
|
70
|
+
let capturing = 0;
|
|
71
|
+
if (claudeCodeSetUp(input.home)) {
|
|
72
|
+
const source = claudeWorkLogSource(input.home, env);
|
|
73
|
+
let settingsText = "";
|
|
74
|
+
try {
|
|
75
|
+
settingsText = readFileSync(join(input.home, ".claude", "settings.json"), "utf8");
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
settingsText = "";
|
|
79
|
+
}
|
|
80
|
+
const hook = claudeWorkLogHook(settingsText);
|
|
81
|
+
const plugin = /"MYRMO_WORKLOG"\s*:\s*"1"/.test(settingsText) || env.MYRMO_WORKLOG === "1";
|
|
82
|
+
if (hook && plugin) {
|
|
83
|
+
capturing++;
|
|
84
|
+
checks.push({ level: "warn", name: `${name}, Claude Code`, detail: t("recorded twice: by the plugin (MYRMO_WORKLOG=1) and by a work log hook of its own", "se registra dos veces: por el plugin (MYRMO_WORKLOG=1) y por un hook del registro aparte"), fix: t("Keep one: remove the worklog-hook.mjs entries from ~/.claude/settings.json, or MYRMO_WORKLOG=1 from its env", "Deja uno: quita de ~/.claude/settings.json las entradas de worklog-hook.mjs, o MYRMO_WORKLOG=1 de su env") });
|
|
85
|
+
}
|
|
86
|
+
else if (source) {
|
|
87
|
+
capturing++;
|
|
88
|
+
checks.push({ level: "ok", name: `${name}, Claude Code`, detail: t(`recorded (${source})`, `se registra (${source})`) });
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
checks.push({
|
|
92
|
+
level: "warn",
|
|
93
|
+
name: `${name}, Claude Code`,
|
|
94
|
+
detail: t("not recorded: MYRMO_WORKLOG=1 is set nowhere Claude Code reads it", "no se registra: MYRMO_WORKLOG=1 no está en ningún sitio que lea Claude Code"),
|
|
95
|
+
fix: t('Add "env": { "MYRMO_WORKLOG": "1" } to ~/.claude/settings.json (it works however Claude Code is started), then restart it', 'Añade "env": { "MYRMO_WORKLOG": "1" } a ~/.claude/settings.json (vale arranques Claude Code como lo arranques) y reinícialo'),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (clineInstalled(input.home)) {
|
|
100
|
+
const missing = [];
|
|
101
|
+
const foreign = [];
|
|
102
|
+
const broken = [];
|
|
103
|
+
for (const event of CLINE_HOOK_EVENTS) {
|
|
104
|
+
const file = join(clineHooksDir(input.home), platform === "win32" ? `${event}.ps1` : event);
|
|
105
|
+
if (!existsSync(file)) {
|
|
106
|
+
missing.push(event);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
const node = clineHookNode(readFileSync(file, "utf8"));
|
|
110
|
+
if (!node)
|
|
111
|
+
foreign.push(event);
|
|
112
|
+
else if (!existsSync(node))
|
|
113
|
+
broken.push(event);
|
|
114
|
+
}
|
|
115
|
+
const fix = t("npx myrmo-mcp@latest init --worklog then reload VS Code (Developer: Reload Window)", "npx myrmo-mcp@latest init --worklog y recarga VS Code (Developer: Reload Window)");
|
|
116
|
+
if (missing.length === CLINE_HOOK_EVENTS.length) {
|
|
117
|
+
checks.push({ level: "warn", name: `${name}, Cline`, detail: t("not recorded: the hooks are not installed", "no se registra: los hooks no están instalados"), fix });
|
|
118
|
+
}
|
|
119
|
+
else if (broken.length) {
|
|
120
|
+
checks.push({ level: "warn", name: `${name}, Cline`, detail: t(`not recorded: the hooks start a node that no longer exists (${broken.join(", ")})`, `no se registra: los hooks arrancan un node que ya no existe (${broken.join(", ")})`), fix });
|
|
121
|
+
}
|
|
122
|
+
else if (missing.length) {
|
|
123
|
+
checks.push({ level: "warn", name: `${name}, Cline`, detail: t(`incomplete: ${missing.join(", ")} missing`, `incompleto: falta ${missing.join(", ")}`), fix });
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
capturing++;
|
|
127
|
+
checks.push({ level: "ok", name: `${name}, Cline`, detail: foreign.length ? t(`recorded, except ${foreign.join(", ")}: hooks of your own are in their place`, `se registra, salvo ${foreign.join(", ")}: en su lugar hay hooks tuyos`) : t("recorded (hooks in place; reload VS Code once after installing them)", "se registra (hooks instalados; recarga VS Code una vez tras instalarlos)") });
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
// Everything else Myrmo can set up talks to the colony through its tools, but has no hook that records the work.
|
|
131
|
+
const others = targets(input.home, platform)
|
|
132
|
+
.filter((c) => c.id !== "claude-desktop" && existsSync(c.file) && /myrmo/i.test(readFileSync(c.file, "utf8")))
|
|
133
|
+
.map((c) => c.name);
|
|
134
|
+
if (others.length) {
|
|
135
|
+
checks.push({
|
|
136
|
+
level: capturing ? "ok" : "warn",
|
|
137
|
+
name: t(`${name}, other agents`, `${name}, otros agentes`),
|
|
138
|
+
detail: t(`${others.join(", ")}: not recorded (Myrmo has no work log hook for them yet); their agents can still read it with myrmo_matters`, `${others.join(", ")}: no se registra (Myrmo aún no tiene hook del registro para ellos); sus agentes sí pueden leerlo con myrmo_matters`),
|
|
139
|
+
...(capturing ? {} : { fix: t("Use Claude Code or Cline for the work you want in the work log", "Usa Claude Code o Cline para el trabajo que quieras en el registro") }),
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
return checks;
|
|
143
|
+
}
|
|
23
144
|
export async function diagnose(input) {
|
|
24
145
|
const checks = [];
|
|
25
146
|
const fetchImpl = input.fetchImpl ?? fetch;
|
|
@@ -152,6 +273,7 @@ export async function diagnose(input) {
|
|
|
152
273
|
else {
|
|
153
274
|
checks.push({ level: "fail", name: t("Agents", "Agentes"), detail: t("no agent on this machine is set up to use Myrmo", "ningún agente de esta máquina está configurado para usar Myrmo"), fix: t("Run the setup command again, then restart Claude Code or Antigravity.", "Vuelve a ejecutar el comando de configuración y reinicia Claude Code o Antigravity.") });
|
|
154
275
|
}
|
|
276
|
+
checks.push(...(await workLogChecks(input, fetchImpl)));
|
|
155
277
|
checks.push({
|
|
156
278
|
level: "ok",
|
|
157
279
|
name: "Claude Desktop",
|
package/dist/init.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export declare function mergeHooks(current: string | undefined, command: string)
|
|
|
95
95
|
export declare const HOOK_SCRIPTS: string[];
|
|
96
96
|
/** The events Cline runs a hook for that the work log uses. Cline looks for an executable named after the event. */
|
|
97
97
|
export declare const CLINE_HOOK_EVENTS: string[];
|
|
98
|
+
export declare const CLINE_MARK = "myrmo-work-log (written by myrmo-mcp init)";
|
|
98
99
|
/** Cline's global hooks folder, where it looks on every project (Cline 4.1: ~/Documents/Cline/Hooks). */
|
|
99
100
|
export declare const clineHooksDir: (home: string) => string;
|
|
100
101
|
/** Whether Cline is on this machine: its data folder, its documents folder or its VS Code extension. */
|
|
@@ -105,6 +106,15 @@ export declare function clineInstalled(home: string): boolean;
|
|
|
105
106
|
* MYRMO_WORKLOG=1 is set here, because Cline passes the hook no environment of the person's shell.
|
|
106
107
|
*/
|
|
107
108
|
export declare function clineWrapper(node: string, script: string, platform?: NodeJS.Platform): string;
|
|
109
|
+
/** Whether ~/.claude/settings.json registers the work log's own hook (tools/worklog/install.mjs), which already records. */
|
|
110
|
+
export declare function claudeWorkLogHook(settingsText: string): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Turns the work log on for Claude Code: the plugin records it when MYRMO_WORKLOG=1, and the `env` block of
|
|
113
|
+
* ~/.claude/settings.json is the one place Claude Code reads it however it is started. Left alone when the settings
|
|
114
|
+
* file is not valid JSON, when it is already on, and when a work log hook of its own is registered there (both would
|
|
115
|
+
* send every exchange). A copy of the file is kept next to it before the first change.
|
|
116
|
+
*/
|
|
117
|
+
export declare function enableClaudeWorkLog(opts: InitOptions, home: string, log: (l: string) => void): void;
|
|
108
118
|
/** Installs the work log's hooks for Cline, or says how to. Only with --worklog, and never over a hook the person wrote. */
|
|
109
119
|
export declare function installClineHooks(opts: InitOptions, home: string, log: (l: string) => void): void;
|
|
110
120
|
/** This machine or a private network: where plain http does not carry a key across the internet. */
|
package/dist/init.js
CHANGED
|
@@ -326,7 +326,7 @@ export function mergeHooks(current, command) {
|
|
|
326
326
|
export const HOOK_SCRIPTS = ["cline-hook.mjs", "antigravity-hook.mjs", "on-failure.mjs", "lookup.mjs", "worklog.mjs", "effort.mjs", "state.mjs", "redact.mjs", "packages.mjs"];
|
|
327
327
|
/** The events Cline runs a hook for that the work log uses. Cline looks for an executable named after the event. */
|
|
328
328
|
export const CLINE_HOOK_EVENTS = ["UserPromptSubmit", "PostToolUse", "TaskComplete", "TaskCancel"];
|
|
329
|
-
const CLINE_MARK = "myrmo-work-log (written by myrmo-mcp init)";
|
|
329
|
+
export const CLINE_MARK = "myrmo-work-log (written by myrmo-mcp init)";
|
|
330
330
|
/** Cline's global hooks folder, where it looks on every project (Cline 4.1: ~/Documents/Cline/Hooks). */
|
|
331
331
|
export const clineHooksDir = (home) => join(home, "Documents", "Cline", "Hooks");
|
|
332
332
|
/** Whether Cline is on this machine: its data folder, its documents folder or its VS Code extension. */
|
|
@@ -355,6 +355,48 @@ export function clineWrapper(node, script, platform = process.platform) {
|
|
|
355
355
|
const q = (v) => `'${v.replace(/'/g, `'\\''`)}'`;
|
|
356
356
|
return `#!/bin/sh\n# ${CLINE_MARK}\nMYRMO_WORKLOG=1 exec ${q(node)} ${q(script)}\n`;
|
|
357
357
|
}
|
|
358
|
+
/** Whether ~/.claude/settings.json registers the work log's own hook (tools/worklog/install.mjs), which already records. */
|
|
359
|
+
export function claudeWorkLogHook(settingsText) {
|
|
360
|
+
return /worklog-hook\.mjs/.test(settingsText);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Turns the work log on for Claude Code: the plugin records it when MYRMO_WORKLOG=1, and the `env` block of
|
|
364
|
+
* ~/.claude/settings.json is the one place Claude Code reads it however it is started. Left alone when the settings
|
|
365
|
+
* file is not valid JSON, when it is already on, and when a work log hook of its own is registered there (both would
|
|
366
|
+
* send every exchange). A copy of the file is kept next to it before the first change.
|
|
367
|
+
*/
|
|
368
|
+
export function enableClaudeWorkLog(opts, home, log) {
|
|
369
|
+
if (!opts.private || !opts.worklog || !claudeCodeSetUp(home))
|
|
370
|
+
return;
|
|
371
|
+
const file = join(home, ".claude", "settings.json");
|
|
372
|
+
const text = existsSync(file) ? readFileSync(file, "utf8") : "{}";
|
|
373
|
+
let settings;
|
|
374
|
+
try {
|
|
375
|
+
settings = JSON.parse(text || "{}");
|
|
376
|
+
if (!settings || typeof settings !== "object" || Array.isArray(settings))
|
|
377
|
+
throw new Error("not an object");
|
|
378
|
+
}
|
|
379
|
+
catch {
|
|
380
|
+
log(tx(`Claude Code: ${file} is not valid JSON, left untouched; add "env": { "MYRMO_WORKLOG": "1" } to it by hand`, `Claude Code: ${file} no es un JSON válido, no se ha tocado; añádele a mano "env": { "MYRMO_WORKLOG": "1" }`));
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
if (claudeWorkLogHook(text)) {
|
|
384
|
+
log(tx("Claude Code: the work log already records through its own hook in ~/.claude/settings.json; left as it is", "Claude Code: el registro de trabajo ya se guarda con su propio hook en ~/.claude/settings.json; se deja como está"));
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (String(settings.env?.MYRMO_WORKLOG ?? "") === "1") {
|
|
388
|
+
log(tx("Claude Code: the work log is already on (MYRMO_WORKLOG=1 in ~/.claude/settings.json)", "Claude Code: el registro de trabajo ya está activado (MYRMO_WORKLOG=1 en ~/.claude/settings.json)"));
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
if (!opts.dryRun) {
|
|
392
|
+
if (existsSync(file) && !existsSync(`${file}.before-myrmo-worklog`))
|
|
393
|
+
copyFileSync(file, `${file}.before-myrmo-worklog`);
|
|
394
|
+
settings.env = { ...(settings.env && typeof settings.env === "object" ? settings.env : {}), MYRMO_WORKLOG: "1" };
|
|
395
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
396
|
+
writeFileSync(file, JSON.stringify(settings, null, 2) + "\n");
|
|
397
|
+
}
|
|
398
|
+
log(tx(`Claude Code: ${opts.dryRun ? "would turn" : "turned"} the work log on (MYRMO_WORKLOG=1 in ${file}); restart Claude Code`, `Claude Code: ${opts.dryRun ? "se activaría" : "activado"} el registro de trabajo (MYRMO_WORKLOG=1 en ${file}); reinicia Claude Code`));
|
|
399
|
+
}
|
|
358
400
|
/** Installs the work log's hooks for Cline, or says how to. Only with --worklog, and never over a hook the person wrote. */
|
|
359
401
|
export function installClineHooks(opts, home, log) {
|
|
360
402
|
if (!opts.private || !clineInstalled(home))
|
|
@@ -435,6 +477,7 @@ function setUpColony(opts, home, log, wanted) {
|
|
|
435
477
|
const what = [opts.key ? tx("its access key", "su clave de acceso") : "", opts.private ? tx("private mode", "el modo privado") : "", opts.publish ? `publish ${opts.publish}` : ""].filter(Boolean).join(", ");
|
|
436
478
|
log(tx(`Colony: ${verb} save ${url}${what ? ` with ${what}` : ""} in the settings file; the key and the choices apply only to that colony`, `Colonia: ${opts.dryRun ? "se guardaría" : "guardada"} ${url}${what ? ` con ${what}` : ""} en el fichero de configuración; la clave y las elecciones solo se aplican a esa colonia`));
|
|
437
479
|
installClineHooks(opts, home, log);
|
|
480
|
+
enableClaudeWorkLog(opts, home, log);
|
|
438
481
|
// Antigravity has no plugin: copy the hook next to the settings and register it, so that after a failed command it
|
|
439
482
|
// looks the error up in this colony (and reminds the agent to report and to publish).
|
|
440
483
|
const agy = targets(home).find((t) => t.id === "antigravity");
|
|
@@ -478,8 +521,10 @@ export function runInit(opts) {
|
|
|
478
521
|
else if (opts.worklog) {
|
|
479
522
|
// `init --worklog` on a machine already pointed at its organisation's colony: only the Cline hooks are added.
|
|
480
523
|
const saved = readConfig().colony;
|
|
481
|
-
if (saved?.url && (saved.private === true || Boolean(saved.api_key)))
|
|
524
|
+
if (saved?.url && (saved.private === true || Boolean(saved.api_key))) {
|
|
482
525
|
installClineHooks({ ...opts, private: true }, home, log);
|
|
526
|
+
enableClaudeWorkLog({ ...opts, private: true }, home, log);
|
|
527
|
+
}
|
|
483
528
|
else
|
|
484
529
|
log(tx("--worklog needs your organisation's colony: run init with --url and --key first", "--worklog necesita la colonia de tu organización: ejecuta antes init con --url y --key"));
|
|
485
530
|
}
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { Colony, type PublishMode, type RejectionDetail } from "myrmo";
|
|
3
|
-
export declare const VERSION = "0.
|
|
3
|
+
export declare const VERSION = "0.35.0";
|
|
4
4
|
export interface ServerOptions {
|
|
5
5
|
colony: Colony;
|
|
6
6
|
/** Who this server acts as, for the agent to read: a prefix of the key's hash, or of the agent id. Never the key. */
|
package/dist/server.js
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
import { checkTrail } from "./check.js";
|
|
8
8
|
import { buildInstructions } from "./instructions.js";
|
|
9
9
|
import { MATTER_DESCRIPTION, MATTERS_DESCRIPTION, formatMatter, formatMatters } from "./worklog.js";
|
|
10
|
-
export const VERSION = "0.
|
|
10
|
+
export const VERSION = "0.35.0"; // x-release-please-version
|
|
11
11
|
const PUBLIC_HOSTS = new Set(["myrmo.dev", "www.myrmo.dev"]);
|
|
12
12
|
/**
|
|
13
13
|
* Whether the server runs for an organisation's colony, where agents keep its internal names. Never for the public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myrmo-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Myrmo MCP server: gives Claude Code, Cursor, Windsurf and any MCP client a shared memory of solved errors. Search fixes other AI agents found, report outcomes, publish new ones.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"mcpName": "io.github.MartinM10/myrmo",
|