claude-memory-layer 1.0.30 → 1.0.31

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/README.md CHANGED
@@ -36,7 +36,7 @@ npx claude-memory-layer status
36
36
  ```
37
37
 
38
38
  - `install`은 **한 번만** 하면 됩니다(Claude Code hooks 등록).
39
- - Linux x64에서 optional embedding backend가 빠져 있으면 설치 CPU-only ONNX Runtime으로 자동 복구합니다(CUDA 불필요).
39
+ - `@huggingface/transformers`는 일반 dependency라 기본 설치에 포함됩니다. 따라서 정상 설치 embedding runtime 누락으로 `ERR_MODULE_NOT_FOUND`가 나는 것을 방지합니다.
40
40
  - 이후 프로젝트별로 메모리 저장소가 자동 분리됩니다.
41
41
  - `install` / `uninstall`은 `~/.claude/settings.json`을 수정합니다.
42
42
 
@@ -48,25 +48,25 @@ Linux x64 서버에 CUDA 11이 설치되어 있으면 `@huggingface/transformers
48
48
  Error: CUDA 11 binaries are not supported by this script yet.
49
49
  ```
50
50
 
51
- Claude Memory Layer는 `@huggingface/transformers`를 optional dependency로 두고, 설치 Linux x64에서 embedding backend 빠져 있으면 CPU-only ONNX Runtime 설정으로 자동 복구합니다. CUDA 없어도 로컬 임베딩을 사용할 있고, CUDA 11을 감지하지 못하는 서버에서도 복구를 시도합니다. 그래서 일반적으로 사용자가 환경변수를 직접 지정할 필요는 없습니다.
52
-
53
- 만약 구버전 패키지를 설치 중이거나 postinstall 복구가 실패하면 아래처럼 수동으로 CUDA 바이너리 다운로드만 건너뛰어 재설치할 수 있습니다.
51
+ Claude Memory Layer는 로컬 semantic/vector embedding에 필요한 `@huggingface/transformers`를 필수 dependency로 설치합니다. 선택은 정상 설치 backend 누락을 조용히 넘기지 않기 위한 것입니다. 다만 CUDA 11 환경에서는 하위 의존성 설치가 Claude Memory Layer의 postinstall repair 전에 실패할 있으므로, 아래처럼 CUDA 바이너리 다운로드를 건너뛰고 CPU-only ONNX Runtime으로 재설치하세요.
54
52
 
55
53
  ```bash
56
54
  # 실패한 전역 설치가 일부 남아 있으면 먼저 제거
57
55
  npm uninstall -g claude-memory-layer || true
58
56
 
59
- # 수동 fallback: CPU-only ONNX Runtime으로 재설치
57
+ # CPU-only ONNX Runtime으로 재설치
60
58
  ONNXRUNTIME_NODE_INSTALL_CUDA=skip npm install -g claude-memory-layer@latest
61
59
  claude-memory-layer --version
62
60
  ```
63
61
 
64
- 로컬 checkout 개발 환경에서 구버전 의존성 설치가 같은 오류를 내면 아래처럼 수동 fallback을 사용할 수 있습니다.
62
+ 로컬 checkout 개발 환경에서 같은 오류가 나면 아래처럼 설치합니다.
65
63
 
66
64
  ```bash
67
65
  ONNXRUNTIME_NODE_INSTALL_CUDA=skip npm install
68
66
  ```
69
67
 
68
+ 이미 설치된 패키지 디렉터리에서 backend만 손상/누락된 경우에는 postinstall repair와 런타임 오류 메시지가 동일한 CPU-only 복구 명령을 안내합니다.
69
+
70
70
  `npm warn deprecated ...` 경고는 하위 의존성 경고이며 설치 실패 원인이 아닙니다.
71
71
 
72
72
  #### Embedding model
package/dist/cli/index.js CHANGED
@@ -1693,9 +1693,10 @@ function isMissingTransformersDependencyError(error) {
1693
1693
  function createEmbeddingBackendUnavailableError(cause) {
1694
1694
  const error = new Error(
1695
1695
  [
1696
- "Optional embedding backend is not installed.",
1696
+ "Required embedding backend is not installed.",
1697
1697
  "",
1698
- "Claude Memory Layer can run embeddings on CPU-only ONNX Runtime; CUDA is not required.",
1698
+ "Claude Memory Layer requires @huggingface/transformers for local semantic/vector embeddings.",
1699
+ "The backend runs on CPU-only ONNX Runtime; CUDA is not required.",
1699
1700
  "Reinstall globally with:",
1700
1701
  " ONNXRUNTIME_NODE_INSTALL_CUDA=skip npm install -g claude-memory-layer@latest",
1701
1702
  "",
@@ -12936,7 +12937,7 @@ async function runMarketContextCommand(options) {
12936
12937
  }
12937
12938
  }
12938
12939
  var program = new Command();
12939
- program.name("claude-memory-layer").description("Claude Code Memory Plugin CLI").version("1.0.30");
12940
+ program.name("claude-memory-layer").description("Claude Code Memory Plugin CLI").version("1.0.31");
12940
12941
  program.command("market-context").description("Fetch read-only DART/FRED/Finnhub context with structured MarketContextSnapshot bull/bear/risk/catalyst analysis").option("--company <name>", "Company name for DART fallback search and report subject").option("--dart-corp-code <code>", "Exact DART corp_code for issuer-specific filings").option("--symbol <ticker>", "Listed ticker for Finnhub company profile").option("--providers <list>", "Comma-separated providers: dart,fred,finnhub").option("--fred-series <list>", "Comma-separated FRED series IDs").option("--json", "Print structured JSON including analysis.marketSnapshot").option("--no-snapshot", "Disable MarketContextSnapshot and DART company snapshot analysis").action(async (options) => {
12941
12942
  try {
12942
12943
  await runMarketContextCommand(options);