@memoraone/mcp 0.1.39 → 0.1.40
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/cli.cjs +9811 -3314
- package/dist/daemon.cjs +116 -9
- package/dist/index.cjs +269 -162
- package/package.json +12 -10
package/dist/daemon.cjs
CHANGED
|
@@ -96,9 +96,43 @@ var IDE_TYPES = [
|
|
|
96
96
|
"claude-code",
|
|
97
97
|
"windsurf",
|
|
98
98
|
"opencode",
|
|
99
|
-
"codex"
|
|
99
|
+
"codex",
|
|
100
|
+
"zed",
|
|
101
|
+
"kiro",
|
|
102
|
+
"visual-studio",
|
|
103
|
+
"cline",
|
|
104
|
+
"roo-code",
|
|
105
|
+
// dormant: unsupported for setup/connect
|
|
106
|
+
"auggie",
|
|
107
|
+
"continue",
|
|
108
|
+
// dormant: unsupported for setup/connect
|
|
109
|
+
"copilot-cli",
|
|
110
|
+
"kiro-cli",
|
|
111
|
+
"cline-cli",
|
|
112
|
+
"continue-cli",
|
|
113
|
+
// dormant: unsupported (no writer; wire id only)
|
|
114
|
+
"claude-desktop",
|
|
115
|
+
"gemini-cli",
|
|
116
|
+
// dormant: individual-user CLI unsupported; writer kept internal
|
|
117
|
+
"antigravity",
|
|
118
|
+
"antigravity-cli",
|
|
119
|
+
// Antigravity CLI (agy); shares MCP config with IDE; identity from clientInfo
|
|
120
|
+
"goose",
|
|
121
|
+
"junie",
|
|
122
|
+
"xcode",
|
|
123
|
+
"copilot-jetbrains",
|
|
124
|
+
"copilot-visual-studio"
|
|
100
125
|
];
|
|
101
126
|
var IDE_TYPE_SET = new Set(IDE_TYPES);
|
|
127
|
+
var IDE_TYPE_CLI_CHOICES = IDE_TYPES.join("|");
|
|
128
|
+
var IDE_TYPE_ALTERNATION = [...IDE_TYPES].sort((a, b) => b.length - a.length).join("|");
|
|
129
|
+
var LEGACY_SOCKET_FILENAME_RE = new RegExp(
|
|
130
|
+
`^mcp-([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:-([0-9a-f]{12}))?(?:-(${IDE_TYPE_ALTERNATION}))?\\.sock$`,
|
|
131
|
+
"i"
|
|
132
|
+
);
|
|
133
|
+
var IDE_FROM_COMMAND_LINE_RE = new RegExp(
|
|
134
|
+
`--ide\\s+(${IDE_TYPE_ALTERNATION})(?:\\s|$)`
|
|
135
|
+
);
|
|
102
136
|
function parseIdeType(value) {
|
|
103
137
|
if (value === void 0 || value.trim() === "" || !IDE_TYPE_SET.has(value)) {
|
|
104
138
|
return void 0;
|
|
@@ -1512,7 +1546,7 @@ var EnvSchema = import_v4.z.object({
|
|
|
1512
1546
|
MEMORAONE_AGENT_NAME: import_v4.z.string().min(1).optional(),
|
|
1513
1547
|
MEMORAONE_AGENT_TYPE: import_v4.z.string().min(1).optional(),
|
|
1514
1548
|
MEMORAONE_SOURCE: import_v4.z.string().min(1).optional(),
|
|
1515
|
-
MEMORAONE_IDE_TYPE: import_v4.z.enum(
|
|
1549
|
+
MEMORAONE_IDE_TYPE: import_v4.z.enum(IDE_TYPES).optional(),
|
|
1516
1550
|
MEMORAONE_WORKLOG: import_v4.z.string().min(1).optional(),
|
|
1517
1551
|
MEMORAONE_HEARTBEAT: import_v4.z.string().min(1).optional(),
|
|
1518
1552
|
MEMORAONE_HEARTBEAT_INTERVAL_MS: import_v4.z.string().min(1).optional()
|
|
@@ -2980,6 +3014,72 @@ function createDaemonHeartbeat(opts) {
|
|
|
2980
3014
|
}
|
|
2981
3015
|
|
|
2982
3016
|
// src/ideType.ts
|
|
3017
|
+
var RELIABLE_CLIENT_INFO_NAMES = /* @__PURE__ */ new Map([
|
|
3018
|
+
// Existing
|
|
3019
|
+
["claude-code", "claude-code"],
|
|
3020
|
+
["devin", "windsurf"],
|
|
3021
|
+
["windsurf", "windsurf"],
|
|
3022
|
+
// Zed
|
|
3023
|
+
["zed", "zed"],
|
|
3024
|
+
// Kiro IDE (exact only — not generic "kiro …" mcp-remote wrappers)
|
|
3025
|
+
["kiro", "kiro"],
|
|
3026
|
+
// Visual Studio (never Visual Studio Code)
|
|
3027
|
+
["visual studio", "visual-studio"],
|
|
3028
|
+
["visual-studio", "visual-studio"],
|
|
3029
|
+
// Cline IDE
|
|
3030
|
+
["cline", "cline"],
|
|
3031
|
+
// Roo Code
|
|
3032
|
+
["roo code", "roo-code"],
|
|
3033
|
+
["roo-code", "roo-code"],
|
|
3034
|
+
// Auggie / Augment Code (canonical wire ID: auggie)
|
|
3035
|
+
["auggie", "auggie"],
|
|
3036
|
+
["augment", "auggie"],
|
|
3037
|
+
["augment code", "auggie"],
|
|
3038
|
+
["augment-code", "auggie"],
|
|
3039
|
+
// Continue IDE (not bare "continue")
|
|
3040
|
+
["continue-client", "continue"],
|
|
3041
|
+
// Continue CLI
|
|
3042
|
+
["continue-cli-client", "continue-cli"],
|
|
3043
|
+
["continue-cli", "continue-cli"],
|
|
3044
|
+
["continue cli", "continue-cli"],
|
|
3045
|
+
// Copilot CLI (not GitHub Copilot in VS Code)
|
|
3046
|
+
["github-copilot-developer", "copilot-cli"],
|
|
3047
|
+
["copilot-cli", "copilot-cli"],
|
|
3048
|
+
["copilot cli", "copilot-cli"],
|
|
3049
|
+
// Kiro CLI (explicit CLI names only — not Amazon Q / Q-DEV-CLI)
|
|
3050
|
+
["kiro-cli", "kiro-cli"],
|
|
3051
|
+
["kiro cli", "kiro-cli"],
|
|
3052
|
+
// Cline CLI
|
|
3053
|
+
["cline-cli", "cline-cli"],
|
|
3054
|
+
["cline cli", "cline-cli"],
|
|
3055
|
+
// Claude Desktop (never bare "claude"; never claude-code)
|
|
3056
|
+
["claude-ai", "claude-desktop"],
|
|
3057
|
+
["claude-desktop", "claude-desktop"],
|
|
3058
|
+
["claude desktop", "claude-desktop"],
|
|
3059
|
+
// Gemini CLI (not bare "gemini")
|
|
3060
|
+
["gemini-cli", "gemini-cli"],
|
|
3061
|
+
["gemini cli", "gemini-cli"],
|
|
3062
|
+
// Google Antigravity IDE vs CLI (shared MCP config; clientInfo distinguishes)
|
|
3063
|
+
["antigravity", "antigravity"],
|
|
3064
|
+
["antigravity ide", "antigravity"],
|
|
3065
|
+
["antigravity-client", "antigravity-cli"],
|
|
3066
|
+
// Goose
|
|
3067
|
+
["goose", "goose"],
|
|
3068
|
+
// JetBrains Junie (distinct from generic jetbrains / copilot-jetbrains)
|
|
3069
|
+
["junie", "junie"],
|
|
3070
|
+
// GitHub Copilot for Xcode
|
|
3071
|
+
["xcode", "xcode"],
|
|
3072
|
+
["copilot-xcode", "xcode"],
|
|
3073
|
+
["github-copilot-xcode", "xcode"],
|
|
3074
|
+
// GitHub Copilot for JetBrains (distinct from jetbrains AI Assistant)
|
|
3075
|
+
["copilot-jetbrains", "copilot-jetbrains"],
|
|
3076
|
+
["github-copilot-jetbrains", "copilot-jetbrains"],
|
|
3077
|
+
["github copilot jetbrains", "copilot-jetbrains"],
|
|
3078
|
+
// GitHub Copilot in Visual Studio (distinct from visual-studio / copilot-vscode)
|
|
3079
|
+
["copilot-visual-studio", "copilot-visual-studio"],
|
|
3080
|
+
["github-copilot-visual-studio", "copilot-visual-studio"],
|
|
3081
|
+
["github copilot visual studio", "copilot-visual-studio"]
|
|
3082
|
+
]);
|
|
2983
3083
|
function mapReliableClientInfoName(name) {
|
|
2984
3084
|
if (typeof name !== "string") {
|
|
2985
3085
|
return void 0;
|
|
@@ -2988,13 +3088,11 @@ function mapReliableClientInfoName(name) {
|
|
|
2988
3088
|
if (normalized === "") {
|
|
2989
3089
|
return void 0;
|
|
2990
3090
|
}
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
if (normalized === "devin") {
|
|
2995
|
-
return "windsurf";
|
|
3091
|
+
const exact = RELIABLE_CLIENT_INFO_NAMES.get(normalized);
|
|
3092
|
+
if (exact) {
|
|
3093
|
+
return exact;
|
|
2996
3094
|
}
|
|
2997
|
-
if (
|
|
3095
|
+
if (/^windsurf[\s_-].+$/.test(normalized)) {
|
|
2998
3096
|
return "windsurf";
|
|
2999
3097
|
}
|
|
3000
3098
|
return void 0;
|
|
@@ -3009,6 +3107,15 @@ function mapReliableHostIdentity(env2) {
|
|
|
3009
3107
|
if (env2.__CFBundleIdentifier === "com.exafunction.windsurf") {
|
|
3010
3108
|
return "windsurf";
|
|
3011
3109
|
}
|
|
3110
|
+
if (env2.__CFBundleIdentifier === "com.anthropic.claudefordesktop") {
|
|
3111
|
+
return "claude-desktop";
|
|
3112
|
+
}
|
|
3113
|
+
if (env2.__CFBundleIdentifier === "dev.zed.Zed") {
|
|
3114
|
+
return "zed";
|
|
3115
|
+
}
|
|
3116
|
+
if (Object.prototype.hasOwnProperty.call(env2, "COPILOT_CLI")) {
|
|
3117
|
+
return "copilot-cli";
|
|
3118
|
+
}
|
|
3012
3119
|
return void 0;
|
|
3013
3120
|
}
|
|
3014
3121
|
function inferIdeType(params, options = {}) {
|
|
@@ -3050,7 +3157,7 @@ function inferIdeType(params, options = {}) {
|
|
|
3050
3157
|
if (hasJetBrainsSignals) {
|
|
3051
3158
|
return "jetbrains";
|
|
3052
3159
|
}
|
|
3053
|
-
const hasVsCodeSignals = envKeys.some((key) => key.startsWith("VSCODE_")) || /(visual studio code|vscode|vs code
|
|
3160
|
+
const hasVsCodeSignals = envKeys.some((key) => key.startsWith("VSCODE_")) || /(visual studio code|vscode|vs code)/.test(clientInfoName) || /(visual studio code|vscode|vs code)/.test(argv);
|
|
3054
3161
|
if (hasVsCodeSignals) {
|
|
3055
3162
|
return "copilot-vscode";
|
|
3056
3163
|
}
|