@mulmoclaude/core 2.0.2 → 2.1.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/global-config/index.cjs +69 -0
- package/dist/global-config/index.cjs.map +1 -0
- package/dist/global-config/index.d.ts +13 -0
- package/dist/global-config/index.js +63 -0
- package/dist/global-config/index.js.map +1 -0
- package/dist/global-config/paths.d.ts +2 -0
- package/dist/global-config/schema.d.ts +17 -0
- package/dist/google/index.cjs +4 -1
- package/dist/google/index.cjs.map +1 -1
- package/dist/google/index.js +4 -1
- package/dist/google/index.js.map +1 -1
- package/dist/google/paths.d.ts +2 -0
- package/dist/paths-CkJxNZ7T.js +13 -0
- package/dist/paths-CkJxNZ7T.js.map +1 -0
- package/dist/paths-ClV946_f.cjs +25 -0
- package/dist/paths-ClV946_f.cjs.map +1 -0
- package/package.json +7 -1
package/dist/google/paths.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Same directory as every other cross-app per-user file — see
|
|
2
|
+
* `../global-config/paths.ts`, which owns the spelling. */
|
|
1
3
|
export declare function googleConfigDir(home?: string): string;
|
|
2
4
|
/** Pre-0.20.1 token dir (mulmoclaude-branded); reads migrate away from it. */
|
|
3
5
|
export declare function legacyGoogleTokenPath(home?: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
//#region src/global-config/paths.ts
|
|
4
|
+
function mulmoConfigDir(home) {
|
|
5
|
+
return join(home ?? homedir(), ".config", "mulmo");
|
|
6
|
+
}
|
|
7
|
+
function mulmoGlobalConfigPath(home) {
|
|
8
|
+
return join(mulmoConfigDir(home), "config.json");
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { mulmoGlobalConfigPath as n, mulmoConfigDir as t };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=paths-CkJxNZ7T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths-CkJxNZ7T.js","names":[],"sources":["../src/global-config/paths.ts"],"sourcesContent":["// The host-NEUTRAL per-user config file shared by MulmoClaude and\n// MulmoTerminal. It lives OUTSIDE any workspace, in the same `~/.config/mulmo`\n// directory the Google grant already uses (`../google/paths.ts`), for the same\n// reason: one machine, one set of cross-app preferences, surviving workspace\n// resets and never synced.\n//\n// Deliberately NOT `~/mulmoclaude/config/settings.json` (that is per-workspace\n// and MulmoClaude-owned) and NOT `~/.mulmoterminal/config.json` (that is the\n// terminal's own file). Neither app owns this one.\n//\n// The `home` parameter exists so tests can thread a fake home.\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\n\nexport function mulmoConfigDir(home?: string): string {\n return join(home ?? homedir(), \".config\", \"mulmo\");\n}\n\nexport function mulmoGlobalConfigPath(home?: string): string {\n return join(mulmoConfigDir(home), \"config.json\");\n}\n"],"mappings":";;;AAcA,SAAgB,eAAe,MAAuB;CACpD,OAAO,KAAK,QAAQ,QAAQ,GAAG,WAAW,OAAO;AACnD;AAEA,SAAgB,sBAAsB,MAAuB;CAC3D,OAAO,KAAK,eAAe,IAAI,GAAG,aAAa;AACjD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
2
|
+
let node_path = require("node:path");
|
|
3
|
+
let node_os = require("node:os");
|
|
4
|
+
//#region src/global-config/paths.ts
|
|
5
|
+
function mulmoConfigDir(home) {
|
|
6
|
+
return (0, node_path.join)(home ?? (0, node_os.homedir)(), ".config", "mulmo");
|
|
7
|
+
}
|
|
8
|
+
function mulmoGlobalConfigPath(home) {
|
|
9
|
+
return (0, node_path.join)(mulmoConfigDir(home), "config.json");
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, "mulmoConfigDir", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return mulmoConfigDir;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "mulmoGlobalConfigPath", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return mulmoGlobalConfigPath;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=paths-ClV946_f.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths-ClV946_f.cjs","names":[],"sources":["../src/global-config/paths.ts"],"sourcesContent":["// The host-NEUTRAL per-user config file shared by MulmoClaude and\n// MulmoTerminal. It lives OUTSIDE any workspace, in the same `~/.config/mulmo`\n// directory the Google grant already uses (`../google/paths.ts`), for the same\n// reason: one machine, one set of cross-app preferences, surviving workspace\n// resets and never synced.\n//\n// Deliberately NOT `~/mulmoclaude/config/settings.json` (that is per-workspace\n// and MulmoClaude-owned) and NOT `~/.mulmoterminal/config.json` (that is the\n// terminal's own file). Neither app owns this one.\n//\n// The `home` parameter exists so tests can thread a fake home.\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\n\nexport function mulmoConfigDir(home?: string): string {\n return join(home ?? homedir(), \".config\", \"mulmo\");\n}\n\nexport function mulmoGlobalConfigPath(home?: string): string {\n return join(mulmoConfigDir(home), \"config.json\");\n}\n"],"mappings":";;;;AAcA,SAAgB,eAAe,MAAuB;CACpD,QAAA,GAAO,UAAA,KAAA,CAAK,SAAA,GAAQ,QAAA,QAAA,CAAQ,GAAG,WAAW,OAAO;AACnD;AAEA,SAAgB,sBAAsB,MAAuB;CAC3D,QAAA,GAAO,UAAA,KAAA,CAAK,eAAe,IAAI,GAAG,aAAa;AACjD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mulmoclaude/core",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Shared server-side core for MulmoClaude and MulmoTerminal — the always-shipped-together subsystems consolidated behind subpath exports so the two hosts can't drift. Server-only except the browser-safe ./artifacts, ./whisper/client, ./workspace-setup/slug, ./translation/client, ./remote-view, ./remote-host and ./plugin-vue entries. All host specifics are injected.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,6 +49,12 @@
|
|
|
49
49
|
"require": "./dist/google/index.cjs",
|
|
50
50
|
"default": "./dist/google/index.js"
|
|
51
51
|
},
|
|
52
|
+
"./global-config": {
|
|
53
|
+
"types": "./dist/global-config/index.d.ts",
|
|
54
|
+
"import": "./dist/global-config/index.js",
|
|
55
|
+
"require": "./dist/global-config/index.cjs",
|
|
56
|
+
"default": "./dist/global-config/index.js"
|
|
57
|
+
},
|
|
52
58
|
"./collection/server": {
|
|
53
59
|
"types": "./dist/collection/server/index.d.ts",
|
|
54
60
|
"import": "./dist/collection/server/index.js",
|