mulmoclaude 0.6.1 → 0.6.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/README.md +26 -0
- package/bin/mulmoclaude.js +11 -1
- package/client/assets/chunk-D8eiyYIV-CW0rPbG2.js +1 -0
- package/client/assets/{html2canvas-CDGcmOD3-BbPeutDg.js → html2canvas-CDGcmOD3-BjwfzAN8.js} +1 -1
- package/client/assets/index-Bp1owZ-i.js +5101 -0
- package/client/assets/index-c63H1pnd.css +2 -0
- package/client/assets/{index.es-DqtpmBm8-DJdTPdnc.js → index.es-DqtpmBm8-DudYPW7R.js} +1 -1
- package/client/assets/material-symbols-outlined-C0dZ3SlO.woff2 +0 -0
- package/client/assets/runtime-protocol-vue-BUk5WXSy.js +1 -0
- package/client/assets/{runtime-vue-BVUzgYGA.js → runtime-vue-fFYhnNg3.js} +1 -1
- package/client/assets/{vue-1e_vz2LW.js → vue-Kqzpl9Vx.js} +1 -1
- package/client/assets/vue.runtime.esm-bundler-BTyIdNAI.js +4 -0
- package/client/index.html +9 -10
- package/package.json +10 -9
- package/server/accounting/eventPublisher.ts +2 -1
- package/server/accounting/snapshotCache.ts +2 -1
- package/server/agent/backend/claude-code.ts +35 -0
- package/server/agent/backend/fake-echo.ts +370 -0
- package/server/agent/backend/index.ts +16 -1
- package/server/agent/backend/types.ts +3 -0
- package/server/agent/config.ts +33 -3
- package/server/agent/index.ts +6 -0
- package/server/agent/mcpFailureMonitor.ts +167 -0
- package/server/agent/mcpPreflight.ts +185 -0
- package/server/agent/prompt.ts +37 -24
- package/server/agent/stream.ts +12 -1
- package/server/api/routes/accounting.ts +31 -24
- package/server/api/routes/agent.ts +2 -2
- package/server/api/routes/config-refresh.ts +49 -0
- package/server/api/routes/config.ts +77 -67
- package/server/api/routes/files.ts +41 -17
- package/server/api/routes/hookLog.ts +95 -0
- package/server/api/routes/mulmo-script.ts +19 -1
- package/server/api/routes/news.ts +39 -52
- package/server/api/routes/notifier.ts +14 -19
- package/server/api/routes/pdf.ts +2 -2
- package/server/api/routes/presentSvg.ts +107 -0
- package/server/api/routes/scheduler.ts +100 -98
- package/server/api/routes/schedulerHandlers.ts +52 -4
- package/server/api/routes/schedulerTasks.ts +98 -95
- package/server/api/routes/sessions.ts +37 -27
- package/server/api/routes/skills.ts +263 -0
- package/server/api/routes/sources.ts +45 -43
- package/server/api/routes/wiki/history.ts +6 -15
- package/server/api/routes/wiki.ts +73 -276
- package/server/events/file-change.ts +3 -2
- package/server/events/notifications.ts +19 -91
- package/server/events/session-store/index.ts +2 -1
- package/server/index.ts +204 -17
- package/server/notifier/macosReminderAdapter.ts +30 -0
- package/server/notifier/store.ts +3 -3
- package/server/plugins/preset-list.ts +16 -5
- package/server/plugins/runtime.ts +2 -2
- package/server/system/announceOptionalDeps.ts +50 -0
- package/server/system/config.ts +52 -3
- package/server/system/docker.ts +14 -6
- package/server/system/env.ts +18 -5
- package/server/system/optionalDeps.ts +129 -0
- package/server/utils/asyncHandler.ts +75 -0
- package/server/utils/cli-flags.d.mts +14 -0
- package/server/utils/cli-flags.mjs +53 -0
- package/server/utils/files/accounting-io.ts +19 -20
- package/server/utils/files/journal-io.ts +2 -1
- package/server/utils/files/json.ts +8 -1
- package/server/utils/files/reference-dirs-io.ts +2 -3
- package/server/utils/files/scheduler-overrides-io.ts +2 -3
- package/server/utils/files/svg-store.ts +27 -0
- package/server/utils/files/user-tasks-io.ts +2 -3
- package/server/utils/regex.ts +3 -12
- package/server/utils/text.ts +29 -0
- package/server/utils/time.ts +6 -0
- package/server/workspace/chat-index/summarizer.ts +5 -3
- package/server/workspace/cooking-recipes/migrate.ts +125 -0
- package/server/workspace/custom-dirs.ts +2 -2
- package/server/workspace/helps/business.md +2 -2
- package/server/workspace/helps/mulmoscript.md +3 -3
- package/server/workspace/helps/sandbox.md +2 -2
- package/server/workspace/hooks/dispatcher.mjs +300 -0
- package/server/workspace/hooks/dispatcher.ts +55 -0
- package/server/workspace/hooks/handlers/configRefresh.ts +38 -0
- package/server/workspace/hooks/handlers/skillBridge.ts +223 -0
- package/server/workspace/hooks/handlers/wikiSnapshot.ts +43 -0
- package/server/workspace/hooks/provision.ts +222 -0
- package/server/workspace/hooks/shared/sidecar.ts +124 -0
- package/server/workspace/hooks/shared/stdin.ts +60 -0
- package/server/workspace/hooks/shared/workspace.ts +13 -0
- package/server/workspace/journal/dailyPass.ts +1 -6
- package/server/workspace/memory/io.ts +1 -34
- package/server/workspace/memory/migrate.ts +2 -1
- package/server/workspace/memory/snapshot.ts +26 -0
- package/server/workspace/memory/topic-io.ts +1 -18
- package/server/workspace/paths.ts +23 -4
- package/server/workspace/skills/catalog.ts +355 -0
- package/server/workspace/skills/external/catalog.ts +283 -0
- package/server/workspace/skills/external/clone.ts +129 -0
- package/server/workspace/skills/external/id.ts +194 -0
- package/server/workspace/skills/external/install.ts +417 -0
- package/server/workspace/skills/external/presets.ts +50 -0
- package/server/workspace/skills-preset/mc-cooking-coach/SKILL.md +217 -0
- package/server/workspace/skills-preset/mc-manage-automations/SKILL.md +119 -0
- package/server/workspace/skills-preset/mc-manage-skills/SKILL.md +128 -0
- package/server/workspace/skills-preset/mc-manage-sources/SKILL.md +106 -0
- package/server/workspace/skills-preset.ts +31 -18
- package/server/workspace/wiki-pages/io.ts +2 -1
- package/server/workspace/workspace.ts +10 -5
- package/src/App.vue +70 -11
- package/src/components/ChatInput.vue +7 -8
- package/src/components/FileContentHeader.vue +1 -6
- package/src/components/FileDropOverlay.vue +18 -0
- package/src/components/RightSidebar.vue +19 -0
- package/src/components/RolesView.vue +14 -5
- package/src/components/SettingsMcpTab.vue +15 -10
- package/src/components/SettingsModal.vue +116 -130
- package/src/components/SettingsModelTab.vue +121 -0
- package/src/components/StackView.vue +10 -1
- package/src/composables/useContentDisplay.ts +16 -0
- package/src/composables/useFileDropZone.ts +148 -0
- package/src/composables/useSkillsList.ts +2 -1
- package/src/config/apiRoutes.ts +22 -6
- package/src/config/roles.ts +80 -48
- package/src/config/toolNames.ts +4 -1
- package/src/lang/de.ts +86 -2
- package/src/lang/en.ts +85 -2
- package/src/lang/es.ts +85 -2
- package/src/lang/fr.ts +85 -2
- package/src/lang/ja.ts +85 -2
- package/src/lang/ko.ts +85 -2
- package/src/lang/pt-BR.ts +85 -2
- package/src/lang/zh.ts +85 -2
- package/src/lib/wiki-page/index-parse.ts +221 -0
- package/src/lib/wiki-page/link.ts +62 -0
- package/src/lib/wiki-page/lint.ts +105 -0
- package/src/lib/wiki-page/paths.ts +35 -0
- package/src/lib/wiki-page/slug.ts +28 -40
- package/src/main.ts +1 -0
- package/src/plugins/_generated/metas.ts +2 -0
- package/src/plugins/_generated/registrations.ts +2 -0
- package/src/plugins/_generated/server-bindings.ts +3 -0
- package/src/plugins/accounting/Preview.vue +3 -6
- package/src/plugins/accounting/View.vue +2 -1
- package/src/plugins/accounting/components/AccountsModal.vue +3 -2
- package/src/plugins/accounting/components/JournalEntryForm.vue +2 -1
- package/src/plugins/accounting/components/JournalList.vue +2 -1
- package/src/plugins/accounting/components/OpeningBalancesForm.vue +2 -1
- package/src/plugins/accounting/currencies.ts +13 -0
- package/src/plugins/manageRoles/View.vue +16 -5
- package/src/plugins/manageSkills/View.vue +795 -30
- package/src/plugins/manageSkills/categories.ts +125 -0
- package/src/plugins/manageSkills/meta.ts +30 -0
- package/src/plugins/markdown/definition.ts +3 -3
- package/src/plugins/meta-types.ts +5 -0
- package/src/plugins/photoLocations/View.vue +4 -2
- package/src/plugins/presentMulmoScript/Preview.vue +3 -3
- package/src/plugins/presentMulmoScript/View.vue +157 -33
- package/src/plugins/presentMulmoScript/meta.ts +4 -0
- package/src/plugins/presentSVG/Preview.vue +56 -0
- package/src/plugins/presentSVG/View.vue +465 -0
- package/src/plugins/presentSVG/definition.ts +29 -0
- package/src/plugins/presentSVG/index.ts +49 -0
- package/src/plugins/presentSVG/meta.ts +14 -0
- package/src/plugins/scheduler/View.vue +48 -16
- package/src/plugins/scheduler/calendarDefinition.ts +6 -2
- package/src/plugins/scheduler/multiDayHelpers.ts +95 -0
- package/src/plugins/skill/View.vue +11 -13
- package/src/plugins/spreadsheet/View.vue +3 -3
- package/src/plugins/wiki/View.vue +1 -1
- package/src/plugins/wiki/helpers.ts +23 -5
- package/src/plugins/wiki/route.ts +12 -11
- package/src/tools/runtimeLoader.ts +75 -9
- package/src/types/notification.ts +1 -1
- package/src/types/session.ts +6 -0
- package/src/types/sse.ts +5 -0
- package/src/types/toolCallHistory.ts +7 -0
- package/src/utils/agent/eventDispatch.ts +26 -5
- package/src/utils/agent/mcpHint.ts +50 -0
- package/src/utils/format/bytes.ts +41 -0
- package/src/utils/format/date.ts +14 -2
- package/src/utils/markdown/setup.ts +5 -0
- package/src/utils/markdown/workspaceLinkify.ts +73 -0
- package/src/utils/session/sessionEntries.ts +8 -32
- package/client/assets/chunk-CernVdwh.js +0 -1
- package/client/assets/chunk-D8eiyYIV-C1eAZMzz.js +0 -1
- package/client/assets/index-BZdOOa5E.js +0 -5004
- package/client/assets/index-Bl3vqgA6.css +0 -2
- package/client/assets/material-symbols-outlined-BLDfUw-_.woff2 +0 -0
- package/client/assets/runtime-protocol-vue-6WYa8hAs.js +0 -1
- package/client/assets/vue.runtime.esm-bundler-DQ8Kjjui.js +0 -4
- package/server/api/routes/notifications.ts +0 -195
- package/server/notifier/legacy-adapters.ts +0 -76
- package/server/workspace/wiki-history/hook/snapshot.mjs +0 -98
- package/server/workspace/wiki-history/hook/snapshot.ts +0 -135
- package/server/workspace/wiki-history/provision.ts +0 -181
- package/src/composables/useSelectedResult.ts +0 -49
- /package/client/assets/{purify.es-Fx1Nqyry-BSVNht6S.js → purify.es-Fx1Nqyry-B3aL7Uvj.js} +0 -0
- /package/client/assets/{typeof-DBp4T-Ny-C2xoZtcz.js → typeof-DBp4T-Ny-Bef7RiR_.js} +0 -0
package/README.md
CHANGED
|
@@ -46,6 +46,32 @@ Express server.
|
|
|
46
46
|
|
|
47
47
|
Your data lives in `~/mulmoclaude/` (created on first run).
|
|
48
48
|
|
|
49
|
+
## Auth token for long-running bridges
|
|
50
|
+
|
|
51
|
+
By default the server generates a fresh bearer token on every startup
|
|
52
|
+
and writes it to `~/mulmoclaude/.session-token`. Bridges
|
|
53
|
+
(`@mulmobridge/telegram`, `@mulmobridge/discord`, …) read that file
|
|
54
|
+
once at launch — so if you restart the server while a bridge is
|
|
55
|
+
running, the bridge keeps the old token and every API call then
|
|
56
|
+
returns **401**, silently.
|
|
57
|
+
|
|
58
|
+
**Fix**: set `MULMOCLAUDE_AUTH_TOKEN` to the same long random value
|
|
59
|
+
on both the server and the bridge. The server uses it verbatim
|
|
60
|
+
instead of regenerating, so the token survives restarts.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Launch the server with a pinned token
|
|
64
|
+
MULMOCLAUDE_AUTH_TOKEN=long-random-string npx mulmoclaude
|
|
65
|
+
|
|
66
|
+
# Bridge (separate process / machine — same value)
|
|
67
|
+
MULMOCLAUDE_AUTH_TOKEN=long-random-string \
|
|
68
|
+
TELEGRAM_BOT_TOKEN=... \
|
|
69
|
+
npx @mulmobridge/telegram@latest
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Recommended: ≥ 32 characters of random data (shorter values trigger a
|
|
73
|
+
startup warning).
|
|
74
|
+
|
|
49
75
|
## For developers
|
|
50
76
|
|
|
51
77
|
Publish flow and the full local-test recipe (prepare-dist,
|
package/bin/mulmoclaude.js
CHANGED
|
@@ -17,6 +17,7 @@ import { fileURLToPath } from "url";
|
|
|
17
17
|
// it's plain JS rather than TypeScript.
|
|
18
18
|
import { isPortFree, findAvailablePort, MAX_PORT_PROBES } from "../server/utils/port.mjs";
|
|
19
19
|
import { parseDevPluginArgs } from "../server/utils/dev-plugin-args.mjs";
|
|
20
|
+
import { cliFlagHelpLines, flagEnvOverrides } from "../server/utils/cli-flags.mjs";
|
|
20
21
|
|
|
21
22
|
const require = createRequire(import.meta.url);
|
|
22
23
|
|
|
@@ -106,6 +107,7 @@ Options:
|
|
|
106
107
|
(repeatable). Path can be absolute or relative to cwd.
|
|
107
108
|
The dir must have package.json and dist/index.js
|
|
108
109
|
(run \`yarn build\` or \`yarn dev\` in the plugin first).
|
|
110
|
+
${cliFlagHelpLines()}
|
|
109
111
|
--version Show version
|
|
110
112
|
--help Show this help
|
|
111
113
|
`);
|
|
@@ -113,7 +115,7 @@ Options:
|
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
if (args.includes("--version")) {
|
|
116
|
-
console.log("mulmoclaude 0.6.
|
|
118
|
+
console.log("mulmoclaude 0.6.3");
|
|
117
119
|
process.exit(0);
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -221,6 +223,14 @@ const serverEnv = {
|
|
|
221
223
|
if (devPluginPaths.length > 0) {
|
|
222
224
|
serverEnv.MULMOCLAUDE_DEV_PLUGINS = devPluginPaths.join(PATH_DELIMITER);
|
|
223
225
|
}
|
|
226
|
+
// Boolean CLI flags that mirror an env var (#1089 + bundle): inject
|
|
227
|
+
// the corresponding VAR=1 into the spawned server so the flag is
|
|
228
|
+
// equivalent to the env-var prefix. The server reads these via
|
|
229
|
+
// server/system/env.ts.
|
|
230
|
+
for (const [flagEnv, value] of Object.entries(flagEnvOverrides(args))) {
|
|
231
|
+
serverEnv[flagEnv] = value;
|
|
232
|
+
log(`[flag] ${flagEnv}=${value}`);
|
|
233
|
+
}
|
|
224
234
|
|
|
225
235
|
const server = spawn(process.execPath, [tsxCli, SERVER_ENTRY], {
|
|
226
236
|
cwd: PKG_DIR,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./vue.runtime.esm-bundler-BTyIdNAI.js";var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{o as n,c as t};
|