@opendatalabs/personal-server-ts-core 1.3.2 → 1.3.4

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.
Files changed (36) hide show
  1. package/dist/errors/catalog.d.ts +3 -0
  2. package/dist/errors/catalog.d.ts.map +1 -1
  3. package/dist/errors/catalog.js +5 -0
  4. package/dist/errors/catalog.js.map +1 -1
  5. package/dist/mcp/read-client.d.ts +16 -1
  6. package/dist/mcp/read-client.d.ts.map +1 -1
  7. package/dist/mcp/read-client.js +87 -44
  8. package/dist/mcp/read-client.js.map +1 -1
  9. package/dist/mcp/search/index.d.ts.map +1 -1
  10. package/dist/mcp/search/index.js +108 -21
  11. package/dist/mcp/search/index.js.map +1 -1
  12. package/dist/mcp/server.d.ts.map +1 -1
  13. package/dist/mcp/server.js +1 -2
  14. package/dist/mcp/server.js.map +1 -1
  15. package/dist/mcp/tools.d.ts +10 -0
  16. package/dist/mcp/tools.d.ts.map +1 -1
  17. package/dist/mcp/tools.js +184 -16
  18. package/dist/mcp/tools.js.map +1 -1
  19. package/dist/policy/data-read.d.ts +7 -0
  20. package/dist/policy/data-read.d.ts.map +1 -1
  21. package/dist/policy/data-read.js +21 -1
  22. package/dist/policy/data-read.js.map +1 -1
  23. package/dist/ports/index.d.ts +11 -0
  24. package/dist/ports/index.d.ts.map +1 -1
  25. package/dist/ports/index.js.map +1 -1
  26. package/dist/storage/blocks/index.d.ts +1 -0
  27. package/dist/storage/blocks/index.d.ts.map +1 -1
  28. package/dist/storage/blocks/index.js +1 -0
  29. package/dist/storage/blocks/index.js.map +1 -1
  30. package/dist/storage/blocks/select.d.ts +29 -0
  31. package/dist/storage/blocks/select.d.ts.map +1 -0
  32. package/dist/storage/blocks/select.js +120 -0
  33. package/dist/storage/blocks/select.js.map +1 -0
  34. package/dist/storage/blocks/types.d.ts +7 -0
  35. package/dist/storage/blocks/types.d.ts.map +1 -1
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/blocks/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,GACnC,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EACL,qBAAqB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/blocks/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,GACnC,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,qBAAqB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { decodeDataBlockCursor, encodeDataBlockCursor, validateDataBlockCursor, } from "./cursor.js";
2
2
  export { buildDataBlocksAsync } from "./build.js";
3
+ export { MAX_SELECTED_BLOCK_IDS, selectScopeBlocksByIds, } from "./select.js";
3
4
  export { DataBlockStorageError, } from "./errors.js";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/blocks/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GAOxB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EACL,qBAAqB,GAEtB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/blocks/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GAOxB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GAEvB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,qBAAqB,GAEtB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Block-addressed selection: read exactly the blocks a caller names.
3
+ *
4
+ * Search returns a `blockRef` per hit and the manifest is a table of contents,
5
+ * but without this path a client still has to walk `nextCursor` from the start
6
+ * of the scope to reach a block it already knows the id of. Every storage
7
+ * implementation pages the manifest identically, so the selection loop lives
8
+ * here instead of being copied into each of them.
9
+ */
10
+ import type { DataBlockManifest, DataBlockWarning, DataScopeBlock } from "./types.js";
11
+ /** Upper bound on block ids honoured in a single block-addressed read. */
12
+ export declare const MAX_SELECTED_BLOCK_IDS = 50;
13
+ export interface SelectScopeBlocksResult {
14
+ blocks: DataScopeBlock[];
15
+ warnings: DataBlockWarning[];
16
+ }
17
+ /**
18
+ * Return the requested blocks in the order they were asked for, bounded by
19
+ * `maxBytes`. Ids that are not in the manifest, ids dropped by the id cap, and
20
+ * ids left out because the byte budget ran out are reported as warnings rather
21
+ * than errors — a partially answered selection is still useful.
22
+ *
23
+ * No cursor is produced: the selection order is the caller's, not the
24
+ * manifest's, so a manifest-index cursor could not resume it.
25
+ */
26
+ export declare function selectScopeBlocksByIds(manifest: DataBlockManifest, blockIds: readonly string[], options: {
27
+ maxBytes: number;
28
+ }, loadBlock: (blockId: string) => Promise<DataScopeBlock | null>): Promise<SelectScopeBlocksResult>;
29
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/storage/blocks/select.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,KAAK,CAAC;AASzC,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC7B,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,GAC7D,OAAO,CAAC,uBAAuB,CAAC,CAsElC"}
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Block-addressed selection: read exactly the blocks a caller names.
3
+ *
4
+ * Search returns a `blockRef` per hit and the manifest is a table of contents,
5
+ * but without this path a client still has to walk `nextCursor` from the start
6
+ * of the scope to reach a block it already knows the id of. Every storage
7
+ * implementation pages the manifest identically, so the selection loop lives
8
+ * here instead of being copied into each of them.
9
+ */
10
+ /** Upper bound on block ids honoured in a single block-addressed read. */
11
+ export const MAX_SELECTED_BLOCK_IDS = 50;
12
+ /** Ids listed inline in a warning message before it is summarized by count. */
13
+ const WARNING_ID_SAMPLE = 10;
14
+ const TEXT_PAGE_MEDIA_TYPE = "text/plain; charset=utf-8";
15
+ const textEncoder = new TextEncoder();
16
+ const textDecoder = new TextDecoder();
17
+ /**
18
+ * Return the requested blocks in the order they were asked for, bounded by
19
+ * `maxBytes`. Ids that are not in the manifest, ids dropped by the id cap, and
20
+ * ids left out because the byte budget ran out are reported as warnings rather
21
+ * than errors — a partially answered selection is still useful.
22
+ *
23
+ * No cursor is produced: the selection order is the caller's, not the
24
+ * manifest's, so a manifest-index cursor could not resume it.
25
+ */
26
+ export async function selectScopeBlocksByIds(manifest, blockIds, options, loadBlock) {
27
+ const maxBytes = Math.max(1, options.maxBytes);
28
+ const refById = new Map(manifest.blocks.map((ref) => [ref.id, ref]));
29
+ const requested = [];
30
+ const seen = new Set();
31
+ let cappedIds = 0;
32
+ for (const blockId of blockIds) {
33
+ if (typeof blockId !== "string" || !blockId || seen.has(blockId))
34
+ continue;
35
+ seen.add(blockId);
36
+ if (requested.length >= MAX_SELECTED_BLOCK_IDS) {
37
+ cappedIds += 1;
38
+ continue;
39
+ }
40
+ requested.push(blockId);
41
+ }
42
+ const blocks = [];
43
+ const missingIds = [];
44
+ const skippedIds = [];
45
+ const warnings = [];
46
+ let bytes = 0;
47
+ for (let index = 0; index < requested.length; index += 1) {
48
+ const blockId = requested[index];
49
+ const ref = refById.get(blockId);
50
+ if (!ref) {
51
+ missingIds.push(blockId);
52
+ continue;
53
+ }
54
+ // Mirrors the cursor path: a block that does not fit whole is only sliced
55
+ // when it is the first one in the page, so a caller always makes progress.
56
+ if (blocks.length > 0 && bytes + ref.sizeBytes > maxBytes) {
57
+ skippedIds.push(...requested.slice(index));
58
+ break;
59
+ }
60
+ const block = await loadBlock(blockId);
61
+ if (!block) {
62
+ missingIds.push(blockId);
63
+ continue;
64
+ }
65
+ const page = pageBlock(block, maxBytes - bytes);
66
+ blocks.push(page.block);
67
+ bytes += page.block.sizeBytes;
68
+ if (page.truncated) {
69
+ skippedIds.push(...requested.slice(index + 1));
70
+ break;
71
+ }
72
+ }
73
+ if (cappedIds > 0) {
74
+ warnings.push({
75
+ code: "block_selection_capped",
76
+ message: `${cappedIds} block ids beyond the ${MAX_SELECTED_BLOCK_IDS} id limit were ignored`,
77
+ });
78
+ }
79
+ if (missingIds.length > 0) {
80
+ warnings.push({
81
+ code: "block_not_found",
82
+ message: `${missingIds.length} requested block ids are not in this scope: ${summarizeIds(missingIds)}`,
83
+ });
84
+ }
85
+ if (skippedIds.length > 0) {
86
+ warnings.push({
87
+ code: "block_selection_truncated",
88
+ message: `maxBytes reached; ${skippedIds.length} requested blocks were not returned: ${summarizeIds(skippedIds)}. Request them in a follow-up read.`,
89
+ });
90
+ }
91
+ return { blocks, warnings };
92
+ }
93
+ function summarizeIds(ids) {
94
+ const sample = ids.slice(0, WARNING_ID_SAMPLE).join(", ");
95
+ return ids.length > WARNING_ID_SAMPLE
96
+ ? `${sample}, ...(${ids.length - WARNING_ID_SAMPLE} more)`
97
+ : sample;
98
+ }
99
+ function pageBlock(block, maxBytes) {
100
+ const text = typeof block.value === "string" ? block.value : JSON.stringify(block.value);
101
+ const bytes = textEncoder.encode(text);
102
+ if (bytes.length <= maxBytes) {
103
+ return { block, truncated: false };
104
+ }
105
+ const end = Math.max(1, maxBytes);
106
+ return {
107
+ block: {
108
+ ...block,
109
+ path: `${block.path}[bytes 0:${end}]`,
110
+ mediaType: block.mediaType.startsWith("text/")
111
+ ? block.mediaType
112
+ : TEXT_PAGE_MEDIA_TYPE,
113
+ value: textDecoder.decode(bytes.slice(0, end)),
114
+ sizeBytes: end,
115
+ truncated: true,
116
+ },
117
+ truncated: true,
118
+ };
119
+ }
120
+ //# sourceMappingURL=select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/storage/blocks/select.ts"],"names":[],"mapp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G,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvC,IAAI,KAAK,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC7B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IACrC,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAClC,OAAO;QACL,KAAK,EAAE;YACL,GAAG,KAAK;YACR,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,YAAY,GAAG,GAAG;YACrC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC;gBAC5C,CAAC,CAAC,KAAK,CAAC,SAAS;gBACjB,CAAC,CAAC,oBAAoB;YACxB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YAC9C,SAAS,EAAE,GAAG;YACd,SAAS,EAAE,IAAI;SAChB;QACD,SAAS,EAAE,IAAI;KAChB,CAAC;AACJ,CAAC"}
@@ -28,6 +28,13 @@ export interface ReadScopeBlocksRequest {
28
28
  collectedAt?: string;
29
29
  cursor?: string;
30
30
  maxBytes?: number;
31
+ /**
32
+ * Read only these blocks, in this order, instead of paging the scope from
33
+ * `cursor`. Ids come from a manifest listing or from a search hit's
34
+ * `blockRef`. When set, `cursor` is ignored and no `nextCursor` is returned;
35
+ * `maxBytes` still bounds the response.
36
+ */
37
+ blockIds?: string[];
31
38
  }
32
39
  export interface ReadScopeBlocksResponse {
33
40
  scope: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/storage/blocks/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACrB,eAAe,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEvE,MAAM,WAAW,iBAAiB;IAChC,OAAO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E,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendatalabs/personal-server-ts-core",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Protocol logic for the Vana Personal Server — auth, grants, scopes, storage, keys",
5
5
  "license": "MIT",
6
6
  "repository": {