@alfe.ai/integrations 0.5.2 → 0.5.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/dist/index.js +13 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4047,6 +4047,14 @@ var ClaudeCodeApplier = class {
|
|
|
4047
4047
|
*/
|
|
4048
4048
|
const log$1 = createLogger("ClaudeCodeMcpSync");
|
|
4049
4049
|
const DEFAULT_CLAUDE_CODE_HOME = join(homedir(), ".claude-code");
|
|
4050
|
+
/**
|
|
4051
|
+
* The store id of the core Alfe MCP server (`@alfe.ai/mcp-server`). Its argv is
|
|
4052
|
+
* registered runtime-agnostically (command-only, shared with OpenClaw), so the
|
|
4053
|
+
* `--profile claude-code` flag that unlocks the memory/voice/messaging tools is
|
|
4054
|
+
* injected here — in the claude-code-only sync layer — rather than in the shared
|
|
4055
|
+
* store (which would double OpenClaw's memory-tool surface).
|
|
4056
|
+
*/
|
|
4057
|
+
const ALFE_PLATFORM_SERVER_ID = "alfe-platform";
|
|
4050
4058
|
const DEFAULT_DEBOUNCE_MS = 250;
|
|
4051
4059
|
/**
|
|
4052
4060
|
* Full-regenerate writer of the MCP store into `~/.claude-code/mcp-config.json`.
|
|
@@ -4165,7 +4173,7 @@ var ClaudeCodeMcpSync = class {
|
|
|
4165
4173
|
}
|
|
4166
4174
|
computeDesired() {
|
|
4167
4175
|
const desired = /* @__PURE__ */ new Map();
|
|
4168
|
-
for (const { id, entry } of this.manager.listServers()) desired.set(id, this.toClaudeCodeEntry(entry));
|
|
4176
|
+
for (const { id, entry } of this.manager.listServers()) desired.set(id, this.toClaudeCodeEntry(entry, id));
|
|
4169
4177
|
return desired;
|
|
4170
4178
|
}
|
|
4171
4179
|
/**
|
|
@@ -4174,11 +4182,13 @@ var ClaudeCodeMcpSync = class {
|
|
|
4174
4182
|
* with the documented `type` discriminator (`sse` → `sse`, `streamable-http`
|
|
4175
4183
|
* → `http`).
|
|
4176
4184
|
*/
|
|
4177
|
-
toClaudeCodeEntry(entry) {
|
|
4185
|
+
toClaudeCodeEntry(entry, id) {
|
|
4178
4186
|
const cfg = toServerConfig(entry);
|
|
4179
4187
|
if ("command" in cfg) {
|
|
4180
4188
|
const out = { command: cfg.command };
|
|
4181
|
-
|
|
4189
|
+
const args = cfg.args && cfg.args.length > 0 ? [...cfg.args] : [];
|
|
4190
|
+
if (id === ALFE_PLATFORM_SERVER_ID && !args.some((a) => a === "--profile" || a.startsWith("--profile="))) args.push("--profile", "claude-code");
|
|
4191
|
+
if (args.length > 0) out.args = args;
|
|
4182
4192
|
const env = this.withAlfeApiKey(cfg.env);
|
|
4183
4193
|
if (Object.keys(env).length > 0) out.env = env;
|
|
4184
4194
|
return out;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/integrations",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Integration lifecycle management for Alfe — registry, resolution, installation, and state",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@auriclabs/logger": "^0.1.1",
|
|
16
16
|
"yaml": ">=2.8.3",
|
|
17
|
-
"@alfe.ai/integration-manifest": "^0.3.
|
|
17
|
+
"@alfe.ai/integration-manifest": "^0.3.3",
|
|
18
18
|
"@alfe.ai/mcp-bundler": "^0.3.2"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|