@keb-org/consol 0.3.0 → 0.3.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/dist/index.js +1 -1
- package/dist/mcp.js +1 -1
- package/dist/types.d.ts +14 -0
- package/dist/vault.d.ts +7 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -369,7 +369,7 @@ function sliceUtf8(text, start, end) {
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
// src/vault.ts
|
|
372
|
-
var CLIENT_INFO = { name: "consol-js-client", version: "0.3.
|
|
372
|
+
var CLIENT_INFO = { name: "consol-js-client", version: "0.3.1" };
|
|
373
373
|
var LOCAL = "default";
|
|
374
374
|
function payload(tool, reply) {
|
|
375
375
|
const error = replyError(reply, tool);
|
package/dist/mcp.js
CHANGED
|
@@ -20294,7 +20294,7 @@ class NativeTransport {
|
|
|
20294
20294
|
}
|
|
20295
20295
|
|
|
20296
20296
|
// src/vault.ts
|
|
20297
|
-
var CLIENT_INFO = { name: "consol-js-client", version: "0.3.
|
|
20297
|
+
var CLIENT_INFO = { name: "consol-js-client", version: "0.3.1" };
|
|
20298
20298
|
function payload(tool, reply) {
|
|
20299
20299
|
const error = replyError(reply, tool);
|
|
20300
20300
|
if (error)
|
package/dist/types.d.ts
CHANGED
|
@@ -103,6 +103,15 @@ export interface RecallCard {
|
|
|
103
103
|
relationships?: Relationship[];
|
|
104
104
|
linked_via?: string;
|
|
105
105
|
compact?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* The note's best passage whole (its `#`/`##` section, or part of a long one), as UTF-8 byte
|
|
108
|
+
* offsets into the text `read` returns: what a caller quotes when an excerpt window is too short to
|
|
109
|
+
* carry the evidence (`sliceUtf8(text, ...passage.byte_range)`). Full and lead cards.
|
|
110
|
+
*/
|
|
111
|
+
passage?: {
|
|
112
|
+
byte_range: ByteRange;
|
|
113
|
+
heading_context?: string;
|
|
114
|
+
};
|
|
106
115
|
}
|
|
107
116
|
/** Every `jev`, `jev_triage` and `jev_advisory` field is experimental: present only with Jev configured. */
|
|
108
117
|
export type Experimental = Record<string, unknown>;
|
|
@@ -116,6 +125,11 @@ export interface RecallResult {
|
|
|
116
125
|
candidates: RecallCard[];
|
|
117
126
|
/** True when more matched cards or companions were omitted. */
|
|
118
127
|
truncated: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* No note is near the top of both the word and the meaning search: the vault may not hold the
|
|
130
|
+
* answer. Without a judge, treat it as "not found" where a wrong answer costs more than none.
|
|
131
|
+
*/
|
|
132
|
+
weak_evidence: boolean;
|
|
119
133
|
unavailable: Unavailable[];
|
|
120
134
|
jev?: Experimental;
|
|
121
135
|
}
|
package/dist/vault.d.ts
CHANGED
|
@@ -38,7 +38,11 @@ export interface Decision {
|
|
|
38
38
|
refs?: string[];
|
|
39
39
|
outputs?: string[];
|
|
40
40
|
}
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Flat wire args for recall. Symbols in `query` (whitespace-separated punctuation tokens): `*` breadth,
|
|
43
|
+
* `~` chronology, `^` latest, `+` history, `#` numbers as words only, and `=` literal: the text as
|
|
44
|
+
* written, with no phrases, alternatives, ranges or other symbols (for free text an application passes).
|
|
45
|
+
*/
|
|
42
46
|
export interface RecallArgs {
|
|
43
47
|
query: string;
|
|
44
48
|
agent?: string;
|
|
@@ -72,6 +76,8 @@ export interface RememberArgs {
|
|
|
72
76
|
team?: string | null;
|
|
73
77
|
valid_from?: string | null;
|
|
74
78
|
valid_to?: string | null;
|
|
79
|
+
/** false: this note's `[[...]]` in prose is text, not a link (imported citations such as `[[1]]`). */
|
|
80
|
+
links?: boolean | null;
|
|
75
81
|
[key: string]: unknown;
|
|
76
82
|
};
|
|
77
83
|
/** An item's work token from `reflect` binds this write to that work; the server derives its action key. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keb-org/consol",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Consol memory engine SDK: a local vault, a hosted vault client, and the Consol backend class",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@keb-org/consol-win32-x64": "0.3.
|
|
59
|
-
"@keb-org/consol-darwin-arm64": "0.3.
|
|
60
|
-
"@keb-org/consol-darwin-x64": "0.3.
|
|
61
|
-
"@keb-org/consol-linux-x64": "0.3.
|
|
62
|
-
"@keb-org/consol-linux-arm64": "0.3.
|
|
58
|
+
"@keb-org/consol-win32-x64": "0.3.1",
|
|
59
|
+
"@keb-org/consol-darwin-arm64": "0.3.1",
|
|
60
|
+
"@keb-org/consol-darwin-x64": "0.3.1",
|
|
61
|
+
"@keb-org/consol-linux-x64": "0.3.1",
|
|
62
|
+
"@keb-org/consol-linux-arm64": "0.3.1"
|
|
63
63
|
}
|
|
64
64
|
}
|