@pyxmate/memory 1.17.16 → 1.17.18
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.d.ts +2 -1
- package/dist/agent-contract.mjs +3 -1
- package/dist/chunk-3OLH3HYR.mjs +1404 -0
- package/dist/{chunk-FQW6BQ2N.mjs → chunk-EZERG25I.mjs} +2 -0
- package/dist/{chunk-MDFUZ3V2.mjs → chunk-H6ZLMPZH.mjs} +232 -41
- package/dist/{chunk-ZVI7DCB4.mjs → chunk-T35ZOOES.mjs} +5 -3
- package/dist/cli/pyx-mem.mjs +3 -2
- package/dist/dashboard.d.ts +3 -1
- package/dist/dashboard.mjs +3 -3
- package/dist/data-plane-contract-fDvTm9bF.d.ts +245 -0
- package/dist/data-plane-contract.d.ts +1 -235
- package/dist/data-plane-contract.mjs +15 -1255
- package/dist/index.d.ts +101 -28
- package/dist/index.mjs +13 -3
- package/dist/react.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-34MTVIYK.mjs +0 -109
package/dist/agent-contract.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const PYX_MEMORY_INSTRUCTIONS = "Use pyx-memory for durable memory across sessions, proactively \u2014 do not wait to be told. SEARCH before assuming: at the start of a task, and before proposing an approach or re-deriving a past decision, search memory for the project and topic; resolve relative times (\"last year\", \"\uB450 \uB2EC \uC804\") to an absolute ISO-8601 anchorTime so results rank by proximity to that time. STORE when durable state settles \u2014 usually before your final response or handoff; if nothing durable changed, store nothing. Otherwise capture a fact (correction, bug fix + root cause, design/architecture decision + reasoning, integration/API/auth/endpoint detail, gotcha, preference, \"remember this\"), a reusable process once stable, a milestone snapshot (type episodic, not a running log), or a changed decision (store the new state with eventTime, never a silent overwrite, so lineage traces it) \u2014 concise facts not deliberation, each with topic and project. Pass eventTime (ISO-8601, when the fact took effect) for anything that can change or go stale; recency ordering, \"as of\" queries, and stale-vs-current resolution all key off it. After a memory informs your work, call reinforce so it stays in the quick/medium tiers (idle never revives it). When the user corrects you, call record_correction; before a task, call fetch_applicable_corrections (pyx never auto-applies them). When content names people, organizations, tools, places, events, or key concepts, pass entities and relationships \u2014 you build the graph, the server does not extract it; a multi-entity store with no connecting edge is refused. Match search effort to need: quick (default, strongest) for routine recall, deep for full/archived history; use lineage to trace how a fact changed. userId/teamId/agentId and callerAccessLevel are attribution filters and sensitivity redaction, not a security isolation boundary \u2014 tenant/namespace isolation is enforced server-side (namespaces + ReBAC grants; see docs/access-control.md).";
|
|
2
|
+
declare const PYX_MEMORY_COMPANION_CORE_INSTRUCTIONS = "Use pyx-memory for durable memory across sessions, proactively \u2014 do not wait to be told. SEARCH (search_memories) before assuming: at the start of a task, and before re-deriving a past decision, search memory for the project and topic; resolve relative times (\"last year\", \"\uB450 \uB2EC \uC804\") to an absolute ISO-8601 anchorTime so results rank by proximity to that time. Match search effort to need: quick (default, strongest) for routine recall, deep for full/archived history. STORE (store_memory) when durable state settles \u2014 usually before your final response; if nothing durable changed, store nothing. Capture concise facts, not deliberation \u2014 a correction, bug fix + root cause, decision + reasoning, integration detail, gotcha, preference, or an explicit \"remember this\" \u2014 each with topic and project. Pass eventTime (ISO-8601, when the fact took effect) for anything that can change or go stale; recency ordering and stale-vs-current resolution key off it. When content names people, organizations, tools, places, events, or key concepts, pass entities and relationships \u2014 you build the graph; a multi-entity store with no connecting edge is refused. Recalled memories reflect what was true when written \u2014 verify named files, flags, and versions before acting.";
|
|
2
3
|
declare const PERSISTENT_MEMORY_SECTION: string;
|
|
3
4
|
declare function buildDesignGuide({ appName }: {
|
|
4
5
|
appName: string;
|
|
@@ -37,4 +38,4 @@ declare const STRUCTURE_GRAPH_PROMPT_DESC = "Returns a prompt that extracts the
|
|
|
37
38
|
declare function buildGraphStructuringPrompt(content: string): string;
|
|
38
39
|
declare function buildAgentSnippet(): string;
|
|
39
40
|
|
|
40
|
-
export { AGENT_TARGETS, PERSISTENT_MEMORY_SECTION, PYX_MEMORY_INSTRUCTIONS, SEARCH_ENUMERATION_CONCEPT_DESC, SEARCH_LIMIT_DESC, STORE_ENTITIES_DESC, STORE_EVENT_TIME_DESC, STORE_RELATIONSHIPS_DESC, STORE_TOOL_DESC, STORE_TRIPLES_DESC, STRUCTURE_GRAPH_PROMPT_DESC, buildAgentSnippet, buildDesignGuide, buildGraphStructuringPrompt };
|
|
41
|
+
export { AGENT_TARGETS, PERSISTENT_MEMORY_SECTION, PYX_MEMORY_COMPANION_CORE_INSTRUCTIONS, PYX_MEMORY_INSTRUCTIONS, SEARCH_ENUMERATION_CONCEPT_DESC, SEARCH_LIMIT_DESC, STORE_ENTITIES_DESC, STORE_EVENT_TIME_DESC, STORE_RELATIONSHIPS_DESC, STORE_TOOL_DESC, STORE_TRIPLES_DESC, STRUCTURE_GRAPH_PROMPT_DESC, buildAgentSnippet, buildDesignGuide, buildGraphStructuringPrompt };
|
package/dist/agent-contract.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_TARGETS,
|
|
3
3
|
PERSISTENT_MEMORY_SECTION,
|
|
4
|
+
PYX_MEMORY_COMPANION_CORE_INSTRUCTIONS,
|
|
4
5
|
PYX_MEMORY_INSTRUCTIONS,
|
|
5
6
|
SEARCH_ENUMERATION_CONCEPT_DESC,
|
|
6
7
|
SEARCH_LIMIT_DESC,
|
|
@@ -13,10 +14,11 @@ import {
|
|
|
13
14
|
buildAgentSnippet,
|
|
14
15
|
buildDesignGuide,
|
|
15
16
|
buildGraphStructuringPrompt
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EZERG25I.mjs";
|
|
17
18
|
export {
|
|
18
19
|
AGENT_TARGETS,
|
|
19
20
|
PERSISTENT_MEMORY_SECTION,
|
|
21
|
+
PYX_MEMORY_COMPANION_CORE_INSTRUCTIONS,
|
|
20
22
|
PYX_MEMORY_INSTRUCTIONS,
|
|
21
23
|
SEARCH_ENUMERATION_CONCEPT_DESC,
|
|
22
24
|
SEARCH_LIMIT_DESC,
|