gm-plugkit 2.0.2502 → 2.0.2504

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.
@@ -71,23 +71,40 @@ evolution). This is for a project that already has gm-native memories
71
71
  namespace opts into the Tencent-compatible backend, so recall doesn't go
72
72
  cold on the switch.
73
73
 
74
- Dispatch the `tencentdb-memory-import` verb: `{"source_namespace":
75
- "default", "dest_namespace": "<routed-namespace>", "kind": "l1"}`. It reads
76
- every `.md` doc in the source namespace, re-embeds through gm's own
77
- 384-dim pipeline, and writes into the destination via
78
- `tencentdb_memory::write_cfg`. It refuses up front unless
79
- `dest_namespace`'s resolved `memory.tencentdb_backend.vectors_db_dims` is
80
- exactly `384` -- gm's embedder cannot produce vectors at any other width,
81
- and a namespace configured for externally-embedded 768-dim content (the
82
- default) cannot safely receive them (recall queries that namespace through
83
- the project-resolved dim, not a per-import override, so a dim mismatch
84
- there is a real defect, not a formality). A project wanting both kinds of
74
+ Two ways to run this migration -- same underlying write path
75
+ (`tencentdb_memory::write_cfg`), pick whichever fits the situation:
76
+
77
+ - **From within a live agent session**: dispatch the
78
+ `tencentdb-memory-import` verb: `{"source_namespace": "default",
79
+ "dest_namespace": "<routed-namespace>", "kind": "l1"}`. It reads every
80
+ `.md` doc in the source namespace and re-embeds through gm's own 384-dim
81
+ pipeline.
82
+ - **Batch/CLI, outside an agent session**: `node
83
+ scripts/migrate-memory-to-tencentdb.mjs --project <path> --namespace
84
+ <ns> [--dry-run] [--archive]`. Same write path, but also applies the
85
+ derivable-state discard filter (git-log-derivable facts, dated audit
86
+ entries, historical framing) the verb does not -- prefer this for a bulk
87
+ migration where discarding superfluous content matters, and the verb for
88
+ a single dispatch from an already-running session.
89
+
90
+ Both refuse up front unless the destination namespace's resolved
91
+ `memory.tencentdb_backend.vectors_db_dims` is exactly `384` -- gm's
92
+ embedder cannot produce vectors at any other width, and a namespace
93
+ configured for externally-embedded 768-dim content (the default) cannot
94
+ safely receive them (recall queries that namespace through the
95
+ project-resolved dim, not a per-import override, so a dim mismatch there
96
+ is a real defect, not a formality). A project wanting both kinds of
85
97
  content needs two separate `tencentdb_backend`-routed namespaces, each at
86
98
  its own dim.
87
99
 
88
- This is a one-way copy, not a move: the source `.md` files and their
89
- `rssearch_vectors` index rows are untouched, so the default backend keeps
90
- working for any namespace not also switched over.
100
+ By default this is a one-way copy, not a move: the source `.md` files and
101
+ their `rssearch_vectors` index rows are left untouched, so the default
102
+ backend keeps working for any namespace not also switched over. Pass
103
+ `archive_source: true` (verb) or `--archive` (script) to opt into moving
104
+ each successfully-migrated source file to
105
+ `.gm/memories-archive-tencentdb/<namespace>/<filename>` instead of leaving
106
+ it in place -- content stays inspectable, but the live `.gm/memories/`
107
+ corpus no longer duplicates what the new backend now serves.
91
108
 
92
109
  ## Verification (do this before declaring setup done)
93
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.2502",
3
+ "version": "2.0.2504",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform wasm, verifies SHA256, and launches agentplug-runner (the native wasm host) as the spool watcher daemon.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/plugkit.version CHANGED
@@ -1 +1 @@
1
- 0.1.1192
1
+ 0.1.1194