@ixo/oracle-runtime-workers 0.20.1 → 0.21.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/oracle-runtime-workers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "QiForge oracle runtime for Cloudflare Workers — Durable Object per user (SQLite in WASM over DO storage), Matrix E2EE gateway Durable Object, Hono HTTP/SSE shell.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"wa-sqlite": "1.0.0",
|
|
59
59
|
"yjs": "13.6.32",
|
|
60
60
|
"zod": "^4.4.3",
|
|
61
|
+
"@ixo/ucan": "2.2.1",
|
|
61
62
|
"@ixo/ixo-transaction": "0.1.0",
|
|
62
|
-
"@ixo/common": "1.7.0"
|
|
63
|
-
"@ixo/ucan": "2.2.1"
|
|
63
|
+
"@ixo/common": "1.7.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
|
@@ -23,14 +23,21 @@ export const MEMORY_DELETE_EDGE_MCP_NAME = 'memory-engine__delete_edge';
|
|
|
23
23
|
export const MEMORY_CLEAR_MCP_NAME = 'memory-engine__clear';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Default selection: search, add, delete-episode, and
|
|
27
|
-
* always be able to ask for a full memory wipe, so the
|
|
28
|
-
* stays in the default set.
|
|
29
|
-
*
|
|
26
|
+
* Default selection: search, add, add-oracle-knowledge, delete-episode, and
|
|
27
|
+
* clear. The user must always be able to ask for a full memory wipe, so the
|
|
28
|
+
* destructive `clear` stays in the default set. `add_oracle_knowledge` is in
|
|
29
|
+
* the set so the controllers and owners of any oracle can grow its shared
|
|
30
|
+
* knowledge from chat without a per-oracle code change: the Memory Engine
|
|
31
|
+
* itself checks on chain that the caller controls or owns an entity linked to
|
|
32
|
+
* the oracle and refuses everyone else, so listing the tool for every user
|
|
33
|
+
* costs one tool description and grants nothing. Forks that want a different
|
|
34
|
+
* surface (drop `clear`, add `delete_edge`) pass an explicit list via plugin
|
|
35
|
+
* options.
|
|
30
36
|
*/
|
|
31
37
|
export const DEFAULT_MEMORY_TOOLS = [
|
|
32
38
|
MEMORY_SEARCH_MCP_NAME,
|
|
33
39
|
MEMORY_ADD_MCP_NAME,
|
|
40
|
+
MEMORY_ADD_ORACLE_KNOWLEDGE_MCP_NAME,
|
|
34
41
|
MEMORY_DELETE_EPISODE_MCP_NAME,
|
|
35
42
|
MEMORY_CLEAR_MCP_NAME,
|
|
36
43
|
] as const;
|
|
@@ -450,7 +457,7 @@ function adaptMcpTool(mcpTool: UpstreamMcpTool): PluginTool {
|
|
|
450
457
|
/**
|
|
451
458
|
* Fetch the upstream Memory Engine MCP tools for this request and return them
|
|
452
459
|
* as `PluginTool[]`. Filtered by `selectedTools` so forks can scope the
|
|
453
|
-
* surface (e.g. drop `clear`, add `
|
|
460
|
+
* surface (e.g. drop `clear`, add `delete_edge`).
|
|
454
461
|
*
|
|
455
462
|
* Returns `[]` when the factory cannot mint auth — the agent then sees no
|
|
456
463
|
* memory tools rather than getting a half-built request to upstream.
|
|
@@ -32,12 +32,14 @@ const manifest: PluginManifest = {
|
|
|
32
32
|
'You create an artifact for the user (file, document, edit, generated content): record what it is, what it is for, and the structural choices you made.',
|
|
33
33
|
'The user expresses satisfaction or dissatisfaction with something you produced: capture what worked or what did not — tone, length, structure, style — against that artifact entry.',
|
|
34
34
|
'The user references something they told you before, or something you made before.',
|
|
35
|
+
'A controller or owner of this oracle asks you to store something every user of the oracle should know (a policy, a procedure, reference material): tell them it will be shared with every user of the oracle (or, for the private space, with its controllers and owners only), get their confirmation, then store it as oracle knowledge rather than as a memory about them.',
|
|
35
36
|
],
|
|
36
37
|
whenNotToUse: [
|
|
37
38
|
'Ephemeral conversation-only state (use the current message thread).',
|
|
38
39
|
'Behavioral preferences about how to respond (call the user-preferences tool instead).',
|
|
39
40
|
'Public web facts that are not specific to this user (use a web-search capability).',
|
|
40
41
|
'Anything the user asked you to forget or framed as temporary.',
|
|
42
|
+
'Oracle knowledge for something about one user: the shared knowledge is only for what every user of this oracle should know.',
|
|
41
43
|
],
|
|
42
44
|
tags: ['memory', 'recall', 'artifacts', 'personalization'],
|
|
43
45
|
category: 'memory',
|
|
@@ -54,8 +56,8 @@ export interface MemoryPluginOptions {
|
|
|
54
56
|
mcpFactory?: (memoryMcpUrl: string) => MemoryMcpFactory;
|
|
55
57
|
/**
|
|
56
58
|
* Filter the upstream tool surface. Defaults to {@link DEFAULT_MEMORY_TOOLS}
|
|
57
|
-
* (search + add + delete-episode + clear). Pass an
|
|
58
|
-
*
|
|
59
|
+
* (search + add + add-oracle-knowledge + delete-episode + clear). Pass an
|
|
60
|
+
* explicit list to drop one of them or to expose `delete_edge`.
|
|
59
61
|
*/
|
|
60
62
|
selectedTools?: readonly string[];
|
|
61
63
|
}
|