@pyxmate/memory 1.26.4 → 1.26.6
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/{chunk-VXXRCAKS.mjs → chunk-HTQBKJTD.mjs} +16 -0
- package/dist/{chunk-LQDQHLVP.mjs → chunk-M67SXB7C.mjs} +1 -1
- package/dist/{chunk-NDXE3TIS.mjs → chunk-N4KDRRLY.mjs} +1 -1
- package/dist/cli/pyx-mem.mjs +8 -8
- package/dist/dashboard.mjs +3 -3
- package/dist/{data-plane-contract-CGU0qjv4.d.ts → data-plane-contract-Dni6d9pq.d.ts} +22 -2
- package/dist/data-plane-contract.d.ts +1 -1
- package/dist/data-plane-contract.mjs +5 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/react.mjs +3 -3
- package/package.json +1 -1
|
@@ -164,6 +164,20 @@ var DATA_PLANE_COMPILER_LIMITS = {
|
|
|
164
164
|
graphEntities: 1e3,
|
|
165
165
|
graphRelationships: 2e3
|
|
166
166
|
};
|
|
167
|
+
var MCP_SESSION_MESSAGE = {
|
|
168
|
+
methods: ["initialize", "notifications/initialized", "tools/list", "prompts/list", "ping"],
|
|
169
|
+
tool: "get_memory_rules",
|
|
170
|
+
/** A connect message is a few hundred bytes; a longer body is work, unread. */
|
|
171
|
+
maxBytes: 16 * 1024
|
|
172
|
+
};
|
|
173
|
+
var MCP_SESSION_METHODS = new Set(MCP_SESSION_MESSAGE.methods);
|
|
174
|
+
function isMcpSessionJsonRpc(message) {
|
|
175
|
+
if (typeof message !== "object" || message === null || Array.isArray(message)) return false;
|
|
176
|
+
const { jsonrpc, method, params } = message;
|
|
177
|
+
if (jsonrpc !== "2.0" || typeof method !== "string") return false;
|
|
178
|
+
if (method === "tools/call") return params?.name === MCP_SESSION_MESSAGE.tool;
|
|
179
|
+
return MCP_SESSION_METHODS.has(method);
|
|
180
|
+
}
|
|
167
181
|
var HOSTED_FILE_INGEST_PROTOCOL = {
|
|
168
182
|
version: 1,
|
|
169
183
|
capability: "hosted-file-ingest-v1",
|
|
@@ -1918,6 +1932,8 @@ export {
|
|
|
1918
1932
|
DATA_PLANE_MANIFEST_FRAME,
|
|
1919
1933
|
DATA_PLANE_HTTP_RESPONSE_FRAME,
|
|
1920
1934
|
DATA_PLANE_COMPILER_LIMITS,
|
|
1935
|
+
MCP_SESSION_MESSAGE,
|
|
1936
|
+
isMcpSessionJsonRpc,
|
|
1921
1937
|
HOSTED_FILE_INGEST_PROTOCOL,
|
|
1922
1938
|
HOSTED_FILE_INGEST_LIMITS,
|
|
1923
1939
|
HOSTED_FILE_INGEST_JOB_STATES,
|
package/dist/cli/pyx-mem.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseHostedFileIngestJobView,
|
|
20
20
|
parseHostedFileIngestPublishResult,
|
|
21
21
|
requireHostedFileIngestFilename
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-HTQBKJTD.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/exit-codes.ts
|
|
25
25
|
var EXIT = {
|
|
@@ -2271,7 +2271,7 @@ var NEXT_BY_CODE = /* @__PURE__ */ new Map([
|
|
|
2271
2271
|
],
|
|
2272
2272
|
[
|
|
2273
2273
|
"file_ingest_job_limit",
|
|
2274
|
-
"
|
|
2274
|
+
"This instance already has as many unfinished imports as it allows: finish or cancel another one (cancel: true with its path), then call this tool again with the same arguments."
|
|
2275
2275
|
],
|
|
2276
2276
|
[
|
|
2277
2277
|
"file_ingest_disabled",
|
|
@@ -2279,7 +2279,7 @@ var NEXT_BY_CODE = /* @__PURE__ */ new Map([
|
|
|
2279
2279
|
],
|
|
2280
2280
|
[
|
|
2281
2281
|
"file_too_large",
|
|
2282
|
-
"The file
|
|
2282
|
+
"The file is larger than hosted file ingest accepts: call with cancel: true to drop this import, then import a smaller file."
|
|
2283
2283
|
],
|
|
2284
2284
|
[
|
|
2285
2285
|
"file_ingest_cancel_requested",
|
|
@@ -2479,13 +2479,13 @@ ${RESUME}`);
|
|
|
2479
2479
|
switch (auth.state) {
|
|
2480
2480
|
case "quota_paused":
|
|
2481
2481
|
return stop(
|
|
2482
|
-
`the
|
|
2483
|
-
|
|
2482
|
+
`the import was paused before storing ${chunks}.`,
|
|
2483
|
+
`${resume[0]?.toUpperCase()}${resume.slice(1)}.`
|
|
2484
2484
|
);
|
|
2485
2485
|
case "limit_exceeded":
|
|
2486
2486
|
return stop(
|
|
2487
|
-
"the document exceeds the
|
|
2488
|
-
`
|
|
2487
|
+
"the document exceeds the hosted limits for extracted text or chunks.",
|
|
2488
|
+
`Call with cancel: true to abandon job ${call.intent.jobId}, then import the document in smaller parts.`
|
|
2489
2489
|
);
|
|
2490
2490
|
case "cancel_requested":
|
|
2491
2491
|
return stop(
|
|
@@ -2951,7 +2951,7 @@ function createProxyServer(client, version, uploadLocalFile, hostedFileIngest) {
|
|
|
2951
2951
|
return server;
|
|
2952
2952
|
}
|
|
2953
2953
|
async function runMcpProxyServer(opts) {
|
|
2954
|
-
const version = opts.version ?? (true ? "1.26.
|
|
2954
|
+
const version = opts.version ?? (true ? "1.26.6" : "0.0.0-dev");
|
|
2955
2955
|
const read = await opts.readCredentials();
|
|
2956
2956
|
if (!read.ok) {
|
|
2957
2957
|
throw new Error(
|
package/dist/dashboard.mjs
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
toGraphologyFormat,
|
|
12
12
|
transformGraphData,
|
|
13
13
|
unreachableHealth
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-N4KDRRLY.mjs";
|
|
15
|
+
import "./chunk-M67SXB7C.mjs";
|
|
16
16
|
import "./chunk-KZKGRND2.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-HTQBKJTD.mjs";
|
|
18
18
|
export {
|
|
19
19
|
DashboardClient,
|
|
20
20
|
Poller,
|
|
@@ -14,9 +14,29 @@ declare const DATA_PLANE_COMPILER_LIMITS: {
|
|
|
14
14
|
readonly graphEntities: 1000;
|
|
15
15
|
readonly graphRelationships: 2000;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* MCP connect messages: they open or describe a session, read no tenant data
|
|
19
|
+
* and run nothing, yet every client connect sends several. The memory runtime
|
|
20
|
+
* and the hosted gateway both charge them to a finite bucket of their own
|
|
21
|
+
* instead of the work budget. `get_memory_rules` returns static text.
|
|
22
|
+
*/
|
|
23
|
+
declare const MCP_SESSION_MESSAGE: {
|
|
24
|
+
readonly methods: readonly ["initialize", "notifications/initialized", "tools/list", "prompts/list", "ping"];
|
|
25
|
+
readonly tool: "get_memory_rules";
|
|
26
|
+
/** A connect message is a few hundred bytes; a longer body is work, unread. */
|
|
27
|
+
readonly maxBytes: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Whether `message`, the whole decoded JSON body of one MCP POST (at most
|
|
31
|
+
* MCP_SESSION_MESSAGE.maxBytes), is a connect message: a single JSON-RPC 2.0
|
|
32
|
+
* message whose method is a session method or a call of the rules tool. A
|
|
33
|
+
* batch, any other tool call or anything malformed is work.
|
|
34
|
+
*/
|
|
35
|
+
declare function isMcpSessionJsonRpc(message: unknown): boolean;
|
|
17
36
|
/**
|
|
18
37
|
* Hosted file ingest protocol v1 (docs/specs/hosted-file-ingest/spec.md). The
|
|
19
|
-
* tenant enforces these absolute caps; the gateway enforces
|
|
38
|
+
* tenant enforces these absolute caps; the gateway enforces the same caps for
|
|
39
|
+
* every organization, plus its own bounds on concurrent jobs and DOCX size.
|
|
20
40
|
*/
|
|
21
41
|
declare const HOSTED_FILE_INGEST_PROTOCOL: {
|
|
22
42
|
readonly version: 1;
|
|
@@ -379,4 +399,4 @@ interface HostedFileIngestAuthorization {
|
|
|
379
399
|
}
|
|
380
400
|
declare function parseHostedFileIngestAuthorization(input: unknown): HostedFileIngestAuthorization;
|
|
381
401
|
|
|
382
|
-
export { type HostedFileIngestManifest as A, type HostedFileIngestPageDescriptor as B, type CanonicalDataPlaneObject as C, DATA_PLANE_CATALOG_VERSION as D, type HostedFileIngestPublishResult as E, canonicalDataPlaneJson as F, compileDataPlaneRequest as G, HOSTED_FILE_INGEST_GATEWAY_STATES as H, hashDataPlaneHttpResponseV1 as I, hashDataPlaneManifestV1 as J, hashDataPlaneStepInputV1 as K,
|
|
402
|
+
export { type HostedFileIngestManifest as A, type HostedFileIngestPageDescriptor as B, type CanonicalDataPlaneObject as C, DATA_PLANE_CATALOG_VERSION as D, type HostedFileIngestPublishResult as E, canonicalDataPlaneJson as F, compileDataPlaneRequest as G, HOSTED_FILE_INGEST_GATEWAY_STATES as H, hashDataPlaneHttpResponseV1 as I, hashDataPlaneManifestV1 as J, hashDataPlaneStepInputV1 as K, isMcpSessionJsonRpc as L, MCP_SESSION_MESSAGE as M, normalizeHostedFileIngestPageDescriptor as N, parseHostedFileIngestAuthorization as O, parseHostedFileIngestCommitResult as P, parseHostedFileIngestJobView as Q, parseHostedFileIngestPublishResult as R, type SupportedDataPlaneCatalogOperation as S, requireHostedFileIngestFilename as T, type CanonicalDataPlaneValue as a, type CompileContext as b, type CompileDataPlaneRequest as c, type CompileDataPlaneResult as d, encodeListCursorToken as e, type CompiledDataPlaneExecutionPlan as f, DATA_PLANE_COMPILER_LIMITS as g, DATA_PLANE_CONTRACT_VERSION as h, DATA_PLANE_HTTP_RESPONSE_FRAME as i, DATA_PLANE_MANIFEST_FRAME as j, DATA_PLANE_MANIFEST_VERSION as k, DATA_PLANE_OPERATION_COVERAGE as l, DATA_PLANE_SEARCH_EMBEDDING_CONTRACT as m, DATA_PLANE_STEP_INPUT_FRAME as n, type DataPlaneCatalogOperation as o, parseListCursorToken as p, type DataPlaneUnsupportedReasonCode as q, HOSTED_FILE_INGEST_JOB_STATES as r, HOSTED_FILE_INGEST_LIMITS as s, HOSTED_FILE_INGEST_PROTOCOL as t, HOSTED_FILE_INGEST_RETRYABLE_CODES as u, type HostedFileIngestAuthorization as v, type HostedFileIngestCommitResult as w, type HostedFileIngestGatewayState as x, type HostedFileIngestJobState as y, type HostedFileIngestJobView as z };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CanonicalDataPlaneObject, a as CanonicalDataPlaneValue, b as CompileContext, c as CompileDataPlaneRequest, d as CompileDataPlaneResult, f as CompiledDataPlaneExecutionPlan, D as DATA_PLANE_CATALOG_VERSION, g as DATA_PLANE_COMPILER_LIMITS, h as DATA_PLANE_CONTRACT_VERSION, i as DATA_PLANE_HTTP_RESPONSE_FRAME, j as DATA_PLANE_MANIFEST_FRAME, k as DATA_PLANE_MANIFEST_VERSION, l as DATA_PLANE_OPERATION_COVERAGE, m as DATA_PLANE_SEARCH_EMBEDDING_CONTRACT, n as DATA_PLANE_STEP_INPUT_FRAME, o as DataPlaneCatalogOperation, q as DataPlaneUnsupportedReasonCode, H as HOSTED_FILE_INGEST_GATEWAY_STATES, r as HOSTED_FILE_INGEST_JOB_STATES, s as HOSTED_FILE_INGEST_LIMITS, t as HOSTED_FILE_INGEST_PROTOCOL, u as HOSTED_FILE_INGEST_RETRYABLE_CODES, v as HostedFileIngestAuthorization, w as HostedFileIngestCommitResult, x as HostedFileIngestGatewayState, y as HostedFileIngestJobState, z as HostedFileIngestJobView, A as HostedFileIngestManifest, B as HostedFileIngestPageDescriptor, E as HostedFileIngestPublishResult, S as SupportedDataPlaneCatalogOperation, F as canonicalDataPlaneJson, G as compileDataPlaneRequest, I as hashDataPlaneHttpResponseV1, J as hashDataPlaneManifestV1, K as hashDataPlaneStepInputV1, L as normalizeHostedFileIngestPageDescriptor,
|
|
1
|
+
export { C as CanonicalDataPlaneObject, a as CanonicalDataPlaneValue, b as CompileContext, c as CompileDataPlaneRequest, d as CompileDataPlaneResult, f as CompiledDataPlaneExecutionPlan, D as DATA_PLANE_CATALOG_VERSION, g as DATA_PLANE_COMPILER_LIMITS, h as DATA_PLANE_CONTRACT_VERSION, i as DATA_PLANE_HTTP_RESPONSE_FRAME, j as DATA_PLANE_MANIFEST_FRAME, k as DATA_PLANE_MANIFEST_VERSION, l as DATA_PLANE_OPERATION_COVERAGE, m as DATA_PLANE_SEARCH_EMBEDDING_CONTRACT, n as DATA_PLANE_STEP_INPUT_FRAME, o as DataPlaneCatalogOperation, q as DataPlaneUnsupportedReasonCode, H as HOSTED_FILE_INGEST_GATEWAY_STATES, r as HOSTED_FILE_INGEST_JOB_STATES, s as HOSTED_FILE_INGEST_LIMITS, t as HOSTED_FILE_INGEST_PROTOCOL, u as HOSTED_FILE_INGEST_RETRYABLE_CODES, v as HostedFileIngestAuthorization, w as HostedFileIngestCommitResult, x as HostedFileIngestGatewayState, y as HostedFileIngestJobState, z as HostedFileIngestJobView, A as HostedFileIngestManifest, B as HostedFileIngestPageDescriptor, E as HostedFileIngestPublishResult, M as MCP_SESSION_MESSAGE, S as SupportedDataPlaneCatalogOperation, F as canonicalDataPlaneJson, G as compileDataPlaneRequest, I as hashDataPlaneHttpResponseV1, J as hashDataPlaneManifestV1, K as hashDataPlaneStepInputV1, L as isMcpSessionJsonRpc, N as normalizeHostedFileIngestPageDescriptor, O as parseHostedFileIngestAuthorization, P as parseHostedFileIngestCommitResult, Q as parseHostedFileIngestJobView, R as parseHostedFileIngestPublishResult, T as requireHostedFileIngestFilename } from './data-plane-contract-Dni6d9pq.js';
|
|
@@ -14,18 +14,20 @@ import {
|
|
|
14
14
|
HOSTED_FILE_INGEST_LIMITS,
|
|
15
15
|
HOSTED_FILE_INGEST_PROTOCOL,
|
|
16
16
|
HOSTED_FILE_INGEST_RETRYABLE_CODES,
|
|
17
|
+
MCP_SESSION_MESSAGE,
|
|
17
18
|
canonicalDataPlaneJson,
|
|
18
19
|
compileDataPlaneRequest,
|
|
19
20
|
hashDataPlaneHttpResponseV1,
|
|
20
21
|
hashDataPlaneManifestV1,
|
|
21
22
|
hashDataPlaneStepInputV1,
|
|
23
|
+
isMcpSessionJsonRpc,
|
|
22
24
|
normalizeHostedFileIngestPageDescriptor,
|
|
23
25
|
parseHostedFileIngestAuthorization,
|
|
24
26
|
parseHostedFileIngestCommitResult,
|
|
25
27
|
parseHostedFileIngestJobView,
|
|
26
28
|
parseHostedFileIngestPublishResult,
|
|
27
29
|
requireHostedFileIngestFilename
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HTQBKJTD.mjs";
|
|
29
31
|
export {
|
|
30
32
|
DATA_PLANE_CATALOG_VERSION,
|
|
31
33
|
DATA_PLANE_COMPILER_LIMITS,
|
|
@@ -41,11 +43,13 @@ export {
|
|
|
41
43
|
HOSTED_FILE_INGEST_LIMITS,
|
|
42
44
|
HOSTED_FILE_INGEST_PROTOCOL,
|
|
43
45
|
HOSTED_FILE_INGEST_RETRYABLE_CODES,
|
|
46
|
+
MCP_SESSION_MESSAGE,
|
|
44
47
|
canonicalDataPlaneJson,
|
|
45
48
|
compileDataPlaneRequest,
|
|
46
49
|
hashDataPlaneHttpResponseV1,
|
|
47
50
|
hashDataPlaneManifestV1,
|
|
48
51
|
hashDataPlaneStepInputV1,
|
|
52
|
+
isMcpSessionJsonRpc,
|
|
49
53
|
normalizeHostedFileIngestPageDescriptor,
|
|
50
54
|
parseHostedFileIngestAuthorization,
|
|
51
55
|
parseHostedFileIngestCommitResult,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MemoryType as MemoryType$1, StoreInput as StoreInput$1, MemoryEntry as MemoryEntry$1, MemorySearchParams as MemorySearchParams$1, MemorySearchResult as MemorySearchResult$1, PrincipalContext as PrincipalContext$1, SensitivityLevel as SensitivityLevel$1, MemoryStats as MemoryStats$1, MemoryInsights as MemoryInsights$1, LineageParams as LineageParams$1, LineageResult as LineageResult$1, ReinforceParams as ReinforceParams$1, ReinforceResult as ReinforceResult$1, WikiLintReport as WikiLintReport$1, GraphRepairResult as GraphRepairResult$1, ExtractedImageMeta as ExtractedImageMeta$1, IngestEntity as IngestEntity$1, IngestRelationship as IngestRelationship$1, EntityExtractionResult as EntityExtractionResult$1, Topology as Topology$1, IngestEvent as IngestEvent$1, GraphEnrichEvent as GraphEnrichEvent$1, GraphNode as GraphNode$1, GraphTraversalResult as GraphTraversalResult$1, CorrectionRecord as CorrectionRecord$1 } from '@pyx-memory/shared';
|
|
2
2
|
export { documentContentSource, documentGraphSource, documentImageSource } from '@pyx-memory/shared';
|
|
3
|
-
export { e as encodeListCursorToken, p as parseListCursorToken } from './data-plane-contract-
|
|
3
|
+
export { e as encodeListCursorToken, p as parseListCursorToken } from './data-plane-contract-Dni6d9pq.js';
|
|
4
4
|
|
|
5
5
|
/** ISO 8601 timestamp string */
|
|
6
6
|
type Timestamp = string;
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DisabledMemory,
|
|
3
3
|
MemoryClient,
|
|
4
4
|
MemoryServerError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M67SXB7C.mjs";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULTS,
|
|
8
8
|
MEMORY_PROJECT_LABEL_MAX_CHARS,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
normalizeGraphLabel,
|
|
38
38
|
normalizeNameKey,
|
|
39
39
|
parseListCursorToken
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HTQBKJTD.mjs";
|
|
41
41
|
|
|
42
42
|
// src/preset.ts
|
|
43
43
|
var DEFAULT_MEMORY_URL = `http://localhost:${DEFAULTS.MEMORY_SERVER_PORT}`;
|
package/dist/react.mjs
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
toGraphologyFormat,
|
|
12
12
|
transformGraphData,
|
|
13
13
|
unreachableHealth
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-N4KDRRLY.mjs";
|
|
15
|
+
import "./chunk-M67SXB7C.mjs";
|
|
16
16
|
import "./chunk-KZKGRND2.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-HTQBKJTD.mjs";
|
|
18
18
|
|
|
19
19
|
// ../dashboard/src/hooks/use-consolidation-log.ts
|
|
20
20
|
import { useCallback as useCallback2, useMemo } from "react";
|