toolnet-memory 0.2.15 → 0.2.17

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
@@ -546,3 +546,77 @@ See [CHANGELOG.md](CHANGELOG.md) for release history.
546
546
  ## License
547
547
 
548
548
  MIT © 2026 LBT-AI. See [LICENSE](LICENSE).
549
+
550
+ ## Multi-provider AI setup
551
+
552
+ Run:
553
+
554
+ ```bash
555
+ toolnet-memory setup
556
+
557
+ ToolNet Memory separates AI configuration into independent roles:
558
+
559
+ * LLM — reasoning, summarization, classification, and memory intelligence.
560
+ * Embedding — semantic indexing and retrieval.
561
+ * LLM Fallbacks — optional secondary providers for transient failures.
562
+
563
+ Supported LLM providers include:
564
+
565
+ * OpenAI-compatible
566
+ * Alibaba / DashScope
567
+ * OpenRouter
568
+ * Groq
569
+ * DeepSeek
570
+ * NVIDIA NIM
571
+ * Gemini
572
+ * Hugging Face
573
+ * Ollama / Local
574
+ * Cloudflare Workers AI
575
+ * Custom endpoints
576
+
577
+ Canonical configuration:
578
+
579
+ TOOLNET_LLM_PROVIDER=
580
+ TOOLNET_LLM_API_KEY=
581
+ TOOLNET_LLM_BASE_URL=
582
+ TOOLNET_LLM_MODEL=
583
+ TOOLNET_EMBEDDING_PROVIDER=
584
+ TOOLNET_EMBEDDING_API_KEY=
585
+ TOOLNET_EMBEDDING_BASE_URL=
586
+ TOOLNET_EMBEDDING_MODEL=
587
+
588
+ Optional resilient LLM chain:
589
+
590
+ TOOLNET_LLM_FALLBACK_1_PROVIDER=
591
+ TOOLNET_LLM_FALLBACK_1_API_KEY=
592
+ TOOLNET_LLM_FALLBACK_1_BASE_URL=
593
+ TOOLNET_LLM_FALLBACK_1_MODEL=
594
+ TOOLNET_LLM_FALLBACK_2_PROVIDER=
595
+ TOOLNET_LLM_FALLBACK_2_API_KEY=
596
+ TOOLNET_LLM_FALLBACK_2_BASE_URL=
597
+ TOOLNET_LLM_FALLBACK_2_MODEL=
598
+ TOOLNET_LLM_FALLBACK_COOLDOWN_MS=60000
599
+ TOOLNET_LLM_MAX_RETRIES=1
600
+
601
+ Fallback is used only for transient failures such as:
602
+
603
+ * timeout / network failure
604
+ * HTTP 408
605
+ * HTTP 429
606
+ * HTTP 5xx
607
+
608
+ HTTP 400, 401, and 403 are surfaced instead of silently switching providers.
609
+
610
+ Legacy provider environment variables remain readable for backward compatibility. The setup wizard can migrate recognized legacy values into canonical TOOLNET_* configuration without deleting the original variables.
611
+
612
+ Diagnostics:
613
+
614
+ toolnet-memory provider:list
615
+ toolnet-memory provider:status
616
+ toolnet-memory provider:test
617
+ toolnet-memory provider:test llm
618
+ toolnet-memory provider:test embedding
619
+ toolnet-memory doctor
620
+
621
+ Provider status masks API keys and secrets.
622
+ ```
@@ -41,6 +41,21 @@ run() {
41
41
  }
42
42
 
43
43
  case "$COMMAND" in
44
+ ask)
45
+ shift
46
+ run bundle/memory-query.js src/work-continuity/memory-query-cli.ts "$@"
47
+ ;;
48
+
49
+ ask-ai)
50
+ shift
51
+ run bundle/memory-agent.js src/work-continuity/memory-agent-cli.ts "$@"
52
+ ;;
53
+
54
+ handoff:refresh)
55
+ shift
56
+ run bundle/handoff-refresh.js src/work-continuity/handoff-cli.ts "$@"
57
+ ;;
58
+
44
59
  update)
45
60
  shift
46
61
  run bundle/update.js src/production/update.ts "$@"
@@ -68,6 +83,21 @@ case "$COMMAND" in
68
83
  run bundle/doctor.js src/production/doctor.ts "$@"
69
84
  ;;
70
85
 
86
+ provider:list)
87
+ shift
88
+ run bundle/provider.js src/ai/provider-cli.ts list "$@"
89
+ ;;
90
+
91
+ provider:status)
92
+ shift
93
+ run bundle/provider.js src/ai/provider-cli.ts status "$@"
94
+ ;;
95
+
96
+ provider:test)
97
+ shift
98
+ run bundle/provider.js src/ai/provider-cli.ts test "$@"
99
+ ;;
100
+
71
101
  run)
72
102
  run bundle/runtime.js src/index.ts
73
103
  ;;
@@ -506,6 +536,9 @@ PROJECT MANUAL:
506
536
  toolnet-memory project:manual-show [--project PATH]
507
537
  toolnet-memory project:manual-sync [--project PATH]
508
538
 
539
+ MEMORY AGENT QUERY:
540
+ toolnet-memory ask "<question>" Ask concise project-memory questions
541
+
509
542
  WORK CONTINUITY:
510
543
  toolnet-memory work:status [--project PATH]
511
544
  toolnet-memory work:json [--project PATH]
@@ -521,6 +554,9 @@ CODE INTELLIGENCE:
521
554
  SETUP & INTEGRATION:
522
555
  toolnet-memory --version
523
556
  toolnet-memory doctor
557
+ toolnet-memory provider:list
558
+ toolnet-memory provider:status
559
+ toolnet-memory provider:test [llm|embedding]
524
560
  toolnet-memory setup
525
561
  toolnet-memory update
526
562
  toolnet-memory config get KEY