@pyxmate/memory 1.17.10 → 1.17.12
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/agent-contract.mjs
CHANGED
|
@@ -11,11 +11,11 @@ var PERSISTENT_MEMORY_SECTION = [
|
|
|
11
11
|
"- Before suggesting an approach, search for prior decisions that might contradict it.",
|
|
12
12
|
"- When the user references prior work, search for it.",
|
|
13
13
|
"- When investigating a bug, search for prior occurrences and fixes.",
|
|
14
|
-
|
|
14
|
+
"- For explicit/relative times, pass an absolute ISO-8601 search `anchorTime`; results rank by proximity but never exclude.",
|
|
15
15
|
"- Match search `effort` to risk: use `quick` for routine recall; use `deep` when quick returns nothing, state may be superseded, or full history matters.",
|
|
16
16
|
"- For count/list questions pass `enumerationConcept` (the category phrase, any language). `enableRerank` is only for self-hosted full-variant hybrid search; hosted cloud rejects it, so leave it off there.",
|
|
17
17
|
'- To trace how a fact changed ("what did X use before Y"), call `lineage` with `subject` + `relation` or an `entryId` instead of stitching together searches.',
|
|
18
|
-
"-
|
|
18
|
+
"- Current goals: drop completed/closed; honor explicit replacements; concurrent goals stay active until each completes/is replaced; prioritize active goals only.",
|
|
19
19
|
"- Recalled memories reflect what was true when written \u2014 verify named files, functions, flags, and versions before acting.",
|
|
20
20
|
"",
|
|
21
21
|
"Reinforce and correct:",
|
|
@@ -29,7 +29,7 @@ var PERSISTENT_MEMORY_SECTION = [
|
|
|
29
29
|
'- Facts (default) \u2014 one correction/preference, root-cause fix, reasoned design decision, integration detail, gotcha, or explicit "remember this" request per memory.',
|
|
30
30
|
"- Process (`type: long-term`) \u2014 a reusable workflow, convention, or playbook a fresh session should follow. Store it once stabilized or adopted.",
|
|
31
31
|
"- Trajectory (`type: episodic`) \u2014 only at a real milestone, handoff, or user-requested checkpoint: one dated snapshot of what changed, where it stands, and the open frontier. Not a running log.",
|
|
32
|
-
"-
|
|
32
|
+
"- Ordinary conversational facts omit `id` and evolve through new entries with `eventTime`. Only application-owned canonical mirrors may reuse an app-supplied stable `id` with `metadata.dbRef.revision`. Revisions are opaque; retry with the same stable `id`, opaque revision, and byte-exact identical payload. Never invent, randomize, or timestamp-suffix IDs; replay stale snapshots or manifests; or use store-new plus delete-old. On `revision_reuse_conflict`, reread the authoritative source; do not mint a new ID or revision.",
|
|
33
33
|
"",
|
|
34
34
|
"Memory rules:",
|
|
35
35
|
"",
|
|
@@ -37,7 +37,7 @@ var PERSISTENT_MEMORY_SECTION = [
|
|
|
37
37
|
"- Store concise facts and decisions, not deliberation.",
|
|
38
38
|
"- Keep one memory per concept; do not bundle unrelated facts.",
|
|
39
39
|
"- Do not store ephemeral files, raw logs, or progress. Aggregate high-frequency streams into a dated fact/summary with `eventTime`; never one memory or graph node per sample.",
|
|
40
|
-
|
|
40
|
+
"- Pass `eventTime` (ISO-8601, when a changeable/stale fact happened/took effect); recency/as-of/stale-vs-current key off it.",
|
|
41
41
|
"- Graph is for retrieval. For named people, organizations, tools, places, events, or concepts, pass `entities` + `relationships` (caller-wins); connect multi-entity stores with a relationship or `triples`. Relationships matter as much as entities. Entity-free memories are valid.",
|
|
42
42
|
'- Use specific durable entities, never catch-all hubs ("me", "health"); bounded `IS_A` categories are the exception.',
|
|
43
43
|
'- For countable categories the user may later enumerate, add a canonical category `CONCEPT` node and an `IS_A` edge from each member to it (`"yoga"` IS_A `"fitness classes"`).',
|
package/dist/cli/pyx-mem.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PERSISTENT_MEMORY_SECTION,
|
|
4
4
|
buildDesignGuide
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JRG2MVAD.mjs";
|
|
6
6
|
|
|
7
7
|
// src/cli/exit-codes.ts
|
|
8
8
|
var EXIT = {
|
|
@@ -835,7 +835,7 @@ function createProxyServer(client, version, uploadLocalFile) {
|
|
|
835
835
|
return server;
|
|
836
836
|
}
|
|
837
837
|
async function runMcpProxyServer(opts) {
|
|
838
|
-
const version = opts.version ?? (true ? "1.17.
|
|
838
|
+
const version = opts.version ?? (true ? "1.17.12" : "0.0.0-dev");
|
|
839
839
|
const read = await opts.readCredentials();
|
|
840
840
|
if (!read.ok) {
|
|
841
841
|
const text = read.result.content.map((c) => c.type === "text" ? c.text : "").join(" ").trim();
|