@tenphi/akno-client 0.9.0 → 0.10.1
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 +10 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,11 +20,15 @@ const result = await akno.call('recall', {
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
// A host may conservatively prepare evidence before its own model handles a turn.
|
|
23
|
+
const recentTurns = [{ role: 'user' as const, content: 'We were discussing the Zephyr QX-100 warranty.' }];
|
|
23
24
|
const context = await akno.context({
|
|
24
25
|
profile: 'auto_recall',
|
|
25
|
-
query: 'When does
|
|
26
|
+
query: 'When does it end?',
|
|
27
|
+
conversation_context: recentTurns,
|
|
26
28
|
budget: 1200,
|
|
27
29
|
});
|
|
30
|
+
// `ambiguous` and `unresolved` references deliberately carry no automatic evidence.
|
|
31
|
+
const referenceResolution = context.activation?.reference_resolution;
|
|
28
32
|
|
|
29
33
|
// One explicit clock covers authored events, retained world time, and document evidence.
|
|
30
34
|
const timeline = await akno.timeline({
|
|
@@ -35,6 +39,11 @@ const timeline = await akno.timeline({
|
|
|
35
39
|
});
|
|
36
40
|
const retained = timeline.results.filter(isTimelineMemory);
|
|
37
41
|
|
|
42
|
+
const exact = await akno.read({ slug: 'products/zephyr-qx-100' });
|
|
43
|
+
if (exact.status === 'degraded' && exact.degraded?.includes('source_conflict')) {
|
|
44
|
+
// Repair the Markdown conflict and re-index before treating this page as current evidence.
|
|
45
|
+
}
|
|
46
|
+
|
|
38
47
|
// A stable external source can be retained replay-safely without copying stored source bytes.
|
|
39
48
|
await akno.retain({
|
|
40
49
|
sources: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/akno-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Thin typed client for a running Akno service — identical interface to @tenphi/akno-core, no native dependencies",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@tenphi/akno-protocol": "0.
|
|
19
|
+
"@tenphi/akno-protocol": "0.10.1"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=22.18"
|