@xmemo/client 0.4.146 → 0.4.147
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/package.json +1 -1
- package/src/cli.js +8 -4
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ const PACKAGE_NAME = '@xmemo/client';
|
|
|
11
11
|
const FALLBACK_PACKAGE_NAME = '@yonro/xmemo-client';
|
|
12
12
|
const COMMAND_NAME = 'xmemo';
|
|
13
13
|
const LEGACY_COMMAND_NAME = 'memory-os';
|
|
14
|
-
const CLI_VERSION = '0.4.
|
|
14
|
+
const CLI_VERSION = '0.4.147';
|
|
15
15
|
const DEFAULT_SERVICE_URL = 'https://xmemo.dev';
|
|
16
16
|
const TOKEN_ENV_VAR = 'XMEMO_KEY';
|
|
17
17
|
const LEGACY_TOKEN_ENV_VAR = 'MEMORY_OS_MCP_TOKEN';
|
|
@@ -583,7 +583,7 @@ async function setupCommand(args, io) {
|
|
|
583
583
|
|
|
584
584
|
if (setupAll) {
|
|
585
585
|
setupPlan.detectedClients = [];
|
|
586
|
-
const scanIds = ['codex', 'cursor', 'copilot-cli', 'gemini-cli', 'antigravity', 'antigravity-ide', 'antigravity2', 'antigravity-cli', 'windsurf', 'cline', 'continue', 'claude-desktop'];
|
|
586
|
+
const scanIds = ['codex', 'cursor', 'copilot-cli', 'gemini-cli', 'antigravity', 'antigravity-ide', 'antigravity2', 'antigravity-cli', 'windsurf', 'cline', 'continue', 'claude-desktop', 'qwen'];
|
|
587
587
|
for (const scanId of scanIds) {
|
|
588
588
|
const detection = await detectClient(scanId, io.env);
|
|
589
589
|
if (detection.detected) {
|
|
@@ -1654,6 +1654,10 @@ function mcpConfigTemplate(clientId, mcpUrl) {
|
|
|
1654
1654
|
return bearerJsonMcpTemplate(clientId, mcpUrl, claudeJsonConfig(mcpUrl));
|
|
1655
1655
|
}
|
|
1656
1656
|
|
|
1657
|
+
if (clientId === 'qwen') {
|
|
1658
|
+
return bearerJsonMcpTemplate(clientId, mcpUrl, qwenJsonConfig(mcpUrl));
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1657
1661
|
return {
|
|
1658
1662
|
client: clientId,
|
|
1659
1663
|
serverName: MCP_SERVER_NAME,
|
|
@@ -2902,7 +2906,7 @@ function supportedMcpClientIds() {
|
|
|
2902
2906
|
}
|
|
2903
2907
|
|
|
2904
2908
|
function supportedSetupClientIds() {
|
|
2905
|
-
return ['codex', 'cursor', 'copilot', 'gemini', 'antigravity', 'antigravity-ide', 'antigravity2', 'antigravity-cli', 'windsurf', 'cline', 'continue', 'claude'];
|
|
2909
|
+
return ['codex', 'cursor', 'copilot', 'gemini', 'antigravity', 'antigravity-ide', 'antigravity2', 'antigravity-cli', 'windsurf', 'cline', 'continue', 'claude', 'qwen'];
|
|
2906
2910
|
}
|
|
2907
2911
|
|
|
2908
2912
|
function usesClientOAuth(clientId) {
|
|
@@ -3723,7 +3727,7 @@ function defaultQwenConfigPath(env) {
|
|
|
3723
3727
|
|
|
3724
3728
|
function qwenJsonServerConfig(mcpUrl, identity = envReferenceIdentity('qwen')) {
|
|
3725
3729
|
return {
|
|
3726
|
-
|
|
3730
|
+
httpUrl: mcpUrl,
|
|
3727
3731
|
headers: {
|
|
3728
3732
|
Authorization: `Bearer \${env:${TOKEN_ENV_VAR}}`,
|
|
3729
3733
|
[AGENT_ID_HEADER]: identity.agentId,
|