@xmemo/client 0.4.153 → 0.4.154

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +51 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmemo/client",
3
- "version": "0.4.153",
3
+ "version": "0.4.154",
4
4
  "description": "Privacy-first CLI and MCP setup helper for XMemo.",
5
5
  "type": "module",
6
6
  "bin": {
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.153';
14
+ const CLI_VERSION = '0.4.154';
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';
@@ -3485,7 +3485,13 @@ function claudeJsonServerConfig(mcpUrl, identity = envReferenceIdentity('claude-
3485
3485
  args: [
3486
3486
  '-y',
3487
3487
  'mcp-remote',
3488
- mcpUrl
3488
+ mcpUrl,
3489
+ '--header',
3490
+ `Authorization:Bearer \${${TOKEN_ENV_VAR}}`,
3491
+ '--header',
3492
+ `X-Memory-OS-Agent-ID:${identity.agentId}`,
3493
+ '--header',
3494
+ `X-Memory-OS-Agent-Instance-ID:\${${AGENT_INSTANCE_ENV_VAR}}`
3489
3495
  ],
3490
3496
  env: {
3491
3497
  [TOKEN_ENV_VAR]: `\${env:${TOKEN_ENV_VAR}}`,
@@ -3633,7 +3639,13 @@ function zedJsonServerConfig(mcpUrl, identity = envReferenceIdentity('zed')) {
3633
3639
  args: [
3634
3640
  '-y',
3635
3641
  'mcp-remote',
3636
- mcpUrl
3642
+ mcpUrl,
3643
+ '--header',
3644
+ `Authorization:Bearer \${${TOKEN_ENV_VAR}}`,
3645
+ '--header',
3646
+ `X-Memory-OS-Agent-ID:${identity.agentId}`,
3647
+ '--header',
3648
+ `X-Memory-OS-Agent-Instance-ID:\${${AGENT_INSTANCE_ENV_VAR}}`
3637
3649
  ],
3638
3650
  env: {
3639
3651
  [TOKEN_ENV_VAR]: `\${env:${TOKEN_ENV_VAR}}`,
@@ -3755,6 +3767,12 @@ function hermesYamlSnippet(mcpUrl, identity = envReferenceIdentity('hermes')) {
3755
3767
  - -y
3756
3768
  - mcp-remote
3757
3769
  - ${mcpUrl}
3770
+ - --header
3771
+ - "Authorization:Bearer \${${TOKEN_ENV_VAR}}"
3772
+ - --header
3773
+ - "X-Memory-OS-Agent-ID:${identity.agentId}"
3774
+ - --header
3775
+ - "X-Memory-OS-Agent-Instance-ID:\${${AGENT_INSTANCE_ENV_VAR}}"
3758
3776
  env:
3759
3777
  ${TOKEN_ENV_VAR}: "\${env:${TOKEN_ENV_VAR}}"
3760
3778
  ${AGENT_INSTANCE_ENV_VAR}: "${identity.agentInstanceId}"
@@ -3852,11 +3870,21 @@ function defaultTraeConfigPath(env) {
3852
3870
 
3853
3871
  function traeJsonServerConfig(mcpUrl, identity = envReferenceIdentity('trae')) {
3854
3872
  return {
3855
- url: mcpUrl,
3856
- headers: {
3857
- Authorization: `Bearer \${env:${TOKEN_ENV_VAR}}`,
3858
- [AGENT_ID_HEADER]: identity.agentId,
3859
- [AGENT_INSTANCE_HEADER]: identity.agentInstanceId
3873
+ command: 'npx',
3874
+ args: [
3875
+ '-y',
3876
+ 'mcp-remote',
3877
+ mcpUrl,
3878
+ '--header',
3879
+ `Authorization:Bearer \${${TOKEN_ENV_VAR}}`,
3880
+ '--header',
3881
+ `X-Memory-OS-Agent-ID:${identity.agentId}`,
3882
+ '--header',
3883
+ `X-Memory-OS-Agent-Instance-ID:\${${AGENT_INSTANCE_ENV_VAR}}`
3884
+ ],
3885
+ env: {
3886
+ [TOKEN_ENV_VAR]: `\${env:${TOKEN_ENV_VAR}}`,
3887
+ [AGENT_INSTANCE_ENV_VAR]: identity.agentInstanceId
3860
3888
  }
3861
3889
  };
3862
3890
  }
@@ -3906,11 +3934,21 @@ function defaultTraeSoloConfigPath(env) {
3906
3934
 
3907
3935
  function traeSoloJsonServerConfig(mcpUrl, identity = envReferenceIdentity('trae-solo')) {
3908
3936
  return {
3909
- url: mcpUrl,
3910
- headers: {
3911
- Authorization: `Bearer \${env:${TOKEN_ENV_VAR}}`,
3912
- [AGENT_ID_HEADER]: identity.agentId,
3913
- [AGENT_INSTANCE_HEADER]: identity.agentInstanceId
3937
+ command: 'npx',
3938
+ args: [
3939
+ '-y',
3940
+ 'mcp-remote',
3941
+ mcpUrl,
3942
+ '--header',
3943
+ `Authorization:Bearer \${${TOKEN_ENV_VAR}}`,
3944
+ '--header',
3945
+ `X-Memory-OS-Agent-ID:${identity.agentId}`,
3946
+ '--header',
3947
+ `X-Memory-OS-Agent-Instance-ID:\${${AGENT_INSTANCE_ENV_VAR}}`
3948
+ ],
3949
+ env: {
3950
+ [TOKEN_ENV_VAR]: `\${env:${TOKEN_ENV_VAR}}`,
3951
+ [AGENT_INSTANCE_ENV_VAR]: identity.agentInstanceId
3914
3952
  }
3915
3953
  };
3916
3954
  }