fivocell 4.8.0 → 4.9.0
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/dist/__tests__/auto-handoff.test.d.ts +2 -0
- package/dist/__tests__/auto-handoff.test.d.ts.map +1 -0
- package/dist/__tests__/auto-handoff.test.js +65 -0
- package/dist/__tests__/auto-handoff.test.js.map +1 -0
- package/dist/__tests__/memory-digest.test.d.ts +2 -0
- package/dist/__tests__/memory-digest.test.d.ts.map +1 -0
- package/dist/__tests__/memory-digest.test.js +20 -0
- package/dist/__tests__/memory-digest.test.js.map +1 -0
- package/dist/__tests__/semantic-memory.test.d.ts +2 -0
- package/dist/__tests__/semantic-memory.test.d.ts.map +1 -0
- package/dist/__tests__/semantic-memory.test.js +31 -0
- package/dist/__tests__/semantic-memory.test.js.map +1 -0
- package/dist/walls/06-memory/stores/auto-handoff.d.ts +13 -0
- package/dist/walls/06-memory/stores/auto-handoff.d.ts.map +1 -0
- package/dist/walls/06-memory/stores/auto-handoff.js +149 -0
- package/dist/walls/06-memory/stores/auto-handoff.js.map +1 -0
- package/dist/walls/06-memory/stores/memory-digest.d.ts +13 -0
- package/dist/walls/06-memory/stores/memory-digest.d.ts.map +1 -0
- package/dist/walls/06-memory/stores/memory-digest.js +44 -0
- package/dist/walls/06-memory/stores/memory-digest.js.map +1 -0
- package/dist/walls/06-memory/stores/semantic-memory.d.ts +23 -0
- package/dist/walls/06-memory/stores/semantic-memory.d.ts.map +1 -0
- package/dist/walls/06-memory/stores/semantic-memory.js +119 -0
- package/dist/walls/06-memory/stores/semantic-memory.js.map +1 -0
- package/dist/walls/07-runtime/cli/cli.js +73 -0
- package/dist/walls/07-runtime/cli/cli.js.map +1 -1
- package/dist/walls/07-runtime/daemon/server.d.ts.map +1 -1
- package/dist/walls/07-runtime/daemon/server.js +32 -0
- package/dist/walls/07-runtime/daemon/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -3874,9 +3874,80 @@ function doMemory() {
|
|
|
3874
3874
|
console.log();
|
|
3875
3875
|
return;
|
|
3876
3876
|
}
|
|
3877
|
+
if (sub === 'semantic' || sub === 'sem') {
|
|
3878
|
+
const query = args.slice(2).join(' ').trim();
|
|
3879
|
+
if (!query) {
|
|
3880
|
+
console.log(C.warn(' Usage: cell memory semantic <query>'));
|
|
3881
|
+
console.log();
|
|
3882
|
+
return;
|
|
3883
|
+
}
|
|
3884
|
+
console.log(C.bold(` ── Semantic Memory Search: "${query}" ──\n`));
|
|
3885
|
+
try {
|
|
3886
|
+
const { semanticSearchMemories } = require('../../06-memory/stores/semantic-memory');
|
|
3887
|
+
const { detectProject } = require('../setup/setup');
|
|
3888
|
+
const project = detectProject(cwd).name;
|
|
3889
|
+
const results = semanticSearchMemories({ query, project, limit: 10 });
|
|
3890
|
+
if (results.length === 0) {
|
|
3891
|
+
console.log(C.dim(' No semantic matches found.'));
|
|
3892
|
+
}
|
|
3893
|
+
else {
|
|
3894
|
+
for (const r of results) {
|
|
3895
|
+
console.log(` ${C.primary('→')} [${r.semanticScore}] ${r.type}: ${r.summary}`);
|
|
3896
|
+
if (r.topic)
|
|
3897
|
+
console.log(C.dim(` topic: ${r.topic}`));
|
|
3898
|
+
if (r.matchedTerms.length > 0)
|
|
3899
|
+
console.log(C.dim(` matched: ${r.matchedTerms.join(', ')}`));
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
}
|
|
3903
|
+
catch (e) {
|
|
3904
|
+
console.log(C.warn(` Semantic search failed: ${e?.message || String(e)}`));
|
|
3905
|
+
}
|
|
3906
|
+
console.log();
|
|
3907
|
+
return;
|
|
3908
|
+
}
|
|
3909
|
+
if (sub === 'handoff-auto' || sub === 'ha') {
|
|
3910
|
+
console.log(C.bold(' ── Auto Handoff ──\n'));
|
|
3911
|
+
try {
|
|
3912
|
+
const { generateAutoHandoff, saveAutoHandoff } = require('../../06-memory/stores/auto-handoff');
|
|
3913
|
+
const { detectProject } = require('../setup/setup');
|
|
3914
|
+
const project = detectProject(cwd).name;
|
|
3915
|
+
const handoff = generateAutoHandoff(project, cwd);
|
|
3916
|
+
console.log(` Title: ${handoff.title}`);
|
|
3917
|
+
console.log(` Status: ${handoff.status}`);
|
|
3918
|
+
console.log(` Files: ${handoff.files.length}`);
|
|
3919
|
+
console.log(C.dim(`\n ${handoff.summary}`));
|
|
3920
|
+
const saved = saveAutoHandoff(cwd, handoff);
|
|
3921
|
+
console.log(C.success(`\n Saved: ${saved}`));
|
|
3922
|
+
}
|
|
3923
|
+
catch (e) {
|
|
3924
|
+
console.log(C.warn(` Auto handoff failed: ${e?.message || String(e)}`));
|
|
3925
|
+
}
|
|
3926
|
+
console.log();
|
|
3927
|
+
return;
|
|
3928
|
+
}
|
|
3929
|
+
if (sub === 'digest' || sub === 'dg') {
|
|
3930
|
+
console.log(C.bold(' ── Memory Digest ──\n'));
|
|
3931
|
+
try {
|
|
3932
|
+
const { generateMemoryDigest } = require('../../06-memory/stores/memory-digest');
|
|
3933
|
+
const { detectProject } = require('../setup/setup');
|
|
3934
|
+
const project = detectProject(cwd).name;
|
|
3935
|
+
const digest = generateMemoryDigest(project);
|
|
3936
|
+
for (const line of digest.digestLines)
|
|
3937
|
+
console.log(` ${line}`);
|
|
3938
|
+
if (digest.mostActiveDay)
|
|
3939
|
+
console.log(C.dim(`\n Most active day: ${digest.mostActiveDay}`));
|
|
3940
|
+
}
|
|
3941
|
+
catch (e) {
|
|
3942
|
+
console.log(C.warn(` Digest failed: ${e?.message || String(e)}`));
|
|
3943
|
+
}
|
|
3944
|
+
console.log();
|
|
3945
|
+
return;
|
|
3946
|
+
}
|
|
3877
3947
|
console.log(C.bold(' Cell Memory'));
|
|
3878
3948
|
console.log(C.dim(' ──────────'));
|
|
3879
3949
|
console.log(C.dim(' cell memory search <query> Search memory events'));
|
|
3950
|
+
console.log(C.dim(' cell memory semantic <query> Semantic memory retrieval'));
|
|
3880
3951
|
console.log(C.dim(' cell memory timeline [days] Show activity timeline'));
|
|
3881
3952
|
console.log(C.dim(' cell memory compact Compact & rotate'));
|
|
3882
3953
|
console.log(C.dim(' cell memory verify Verify memory health'));
|
|
@@ -3887,6 +3958,8 @@ function doMemory() {
|
|
|
3887
3958
|
console.log(C.dim(' cell memory alerts [days] Proactive alerts'));
|
|
3888
3959
|
console.log(C.dim(' cell memory report Weekly markdown report'));
|
|
3889
3960
|
console.log(C.dim(' cell memory enrich [daily|weekly] AI enriched summary'));
|
|
3961
|
+
console.log(C.dim(' cell memory handoff-auto Auto-generate handoff'));
|
|
3962
|
+
console.log(C.dim(' cell memory digest Compact dashboard digest'));
|
|
3890
3963
|
console.log(C.dim(' cell memory export Export to JSON'));
|
|
3891
3964
|
console.log(C.dim(' cell memory stats Show memory stats'));
|
|
3892
3965
|
console.log();
|