@remnic/core 9.63.3 → 9.63.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.
- package/dist/access-admin-ops-surface.d.ts +4 -4
- package/dist/access-admin-ops-surface.js +1 -1
- package/dist/access-authorization-probe.d.ts +4 -4
- package/dist/access-authorization-probe.js +2 -2
- package/dist/access-boundary.d.ts +4 -4
- package/dist/access-boundary.js +1 -1
- package/dist/access-cli.js +19 -18
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.d.ts +4 -4
- package/dist/access-extraction-force-flush.js +1 -1
- package/dist/access-http-lcm-compaction.d.ts +4 -4
- package/dist/access-http-lifecycle-flush.d.ts +4 -4
- package/dist/access-http-offline-stream.d.ts +4 -4
- package/dist/access-http-query.d.ts +13 -1
- package/dist/access-http-query.js +5 -2
- package/dist/access-http.d.ts +5 -5
- package/dist/access-http.js +12 -11
- package/dist/access-identity-continuity-surface.d.ts +3 -3
- package/dist/access-identity-continuity-surface.js +1 -1
- package/dist/access-lcm-surface.d.ts +4 -4
- package/dist/access-lcm-surface.js +1 -1
- package/dist/access-mcp.d.ts +4 -4
- package/dist/access-mcp.js +6 -6
- package/dist/access-namespace-preflight.js +1 -1
- package/dist/access-observe-write-surface.d.ts +4 -4
- package/dist/access-observe-write-surface.js +1 -1
- package/dist/access-offline-manifest.d.ts +3 -3
- package/dist/access-operations-batch.js +2 -2
- package/dist/access-operations.d.ts +7 -7
- package/dist/access-operations.js +5 -5
- package/dist/access-recall-concurrency.d.ts +4 -4
- package/dist/access-recall-concurrency.js +1 -1
- package/dist/access-recall-response.d.ts +4 -4
- package/dist/access-recall-response.js +1 -1
- package/dist/access-recall-surface.d.ts +4 -4
- package/dist/access-recall-surface.js +1 -1
- package/dist/access-schema.d.ts +88 -88
- package/dist/{access-service-M4LgO141.d.ts → access-service-D-bi3r01.d.ts} +66 -72
- package/dist/access-service-helpers.d.ts +4 -4
- package/dist/access-service.d.ts +4 -4
- package/dist/access-service.js +1 -1
- package/dist/access-surface-catalog.d.ts +4 -4
- package/dist/access-surface-catalog.js +3 -3
- package/dist/bootstrap.d.ts +3 -3
- package/dist/buffer.js +1 -1
- package/dist/{catalog-CyYTf_ok.d.ts → catalog-BYIHQw1l.d.ts} +2 -10
- package/dist/{chunk-JJ7JW62R.js → chunk-2JL7WPXL.js} +1 -11
- package/dist/chunk-2JL7WPXL.js.map +1 -0
- package/dist/{chunk-AJSZ2EK6.js → chunk-3USQWITL.js} +2 -2
- package/dist/{chunk-RYGJGXL6.js → chunk-4EDAHS6D.js} +2 -2
- package/dist/{chunk-5W5N7XJZ.js → chunk-A4HXWNST.js} +19 -752
- package/dist/chunk-A4HXWNST.js.map +1 -0
- package/dist/{chunk-KWN6NOHQ.js → chunk-BXOZALJ6.js} +2 -2
- package/dist/{chunk-6F2UMP4H.js → chunk-CKWOMJDY.js} +2 -2
- package/dist/{chunk-MR5HWQHS.js → chunk-DFEYRCG2.js} +2 -2
- package/dist/{chunk-6UZR7KEK.js → chunk-DQV3LUQL.js} +7 -1
- package/dist/chunk-DQV3LUQL.js.map +1 -0
- package/dist/{chunk-EJQXDKYK.js → chunk-EJCN5ATI.js} +3 -3
- package/dist/{chunk-TRPX6F2G.js → chunk-GNKY5JEP.js} +10 -13
- package/dist/chunk-GNKY5JEP.js.map +1 -0
- package/dist/{chunk-XZPSBGHA.js → chunk-ISFUFLFM.js} +2 -2
- package/dist/{chunk-4NMVX5U7.js → chunk-JSH2TV34.js} +2 -2
- package/dist/{chunk-R74NCKEY.js → chunk-LNFYISZ6.js} +2 -2
- package/dist/{chunk-6ZYQ36IB.js → chunk-MRJ43KSG.js} +15 -2
- package/dist/chunk-MRJ43KSG.js.map +1 -0
- package/dist/{chunk-IM56VPKO.js → chunk-OR7KEGLR.js} +2 -2
- package/dist/{chunk-A73QHOZP.js → chunk-QOMUE4FS.js} +2 -2
- package/dist/chunk-RSLRGRBJ.js +727 -0
- package/dist/chunk-RSLRGRBJ.js.map +1 -0
- package/dist/{chunk-44KHFMCM.js → chunk-VG6DC2GO.js} +32 -17
- package/dist/{chunk-44KHFMCM.js.map → chunk-VG6DC2GO.js.map} +1 -1
- package/dist/{chunk-5UFQCU6M.js → chunk-ZUZD2DRV.js} +5 -5
- package/dist/{cli-Bw9z-KqX.d.ts → cli-DEoABKXH.d.ts} +2 -2
- package/dist/cli.d.ts +5 -5
- package/dist/cli.js +15 -14
- package/dist/explicit-capture.d.ts +3 -3
- package/dist/external-wiki-access.d.ts +4 -4
- package/dist/external-wiki-access.js +2 -2
- package/dist/external-wiki-mcp-tools.d.ts +4 -4
- package/dist/index.d.ts +684 -684
- package/dist/index.js +21 -20
- package/dist/{maintenance-uJb74j64.d.ts → maintenance-N5ur13Al.d.ts} +1 -1
- package/dist/mcp-memory-inspector-app.d.ts +4 -4
- package/dist/namespaces/migrate.d.ts +1 -1
- package/dist/namespaces/storage.d.ts +1 -1
- package/dist/operator-toolkit.js +3 -2
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +3 -2
- package/dist/{orchestrator-CFi-5JSR.d.ts → orchestrator-ByLrpav4.d.ts} +2 -2
- package/dist/orchestrator.d.ts +3 -3
- package/dist/orchestrator.js +19 -18
- package/dist/{public-http-DK-QwaBu.d.ts → public-http-DusietP2.d.ts} +1 -1
- package/dist/schemas.d.ts +108 -108
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/support-passport/index.d.ts +7 -7
- package/dist/support-passport/index.js +4 -4
- package/dist/transfer/types.d.ts +66 -66
- package/package.json +2 -2
- package/src/access-http-query.ts +12 -0
- package/src/access-http.test.ts +32 -0
- package/src/access-http.ts +3 -7
- package/src/admin/admin-surfaces.test.ts +5 -10
- package/src/admin/admin-surfaces.ts +0 -16
- package/src/binary-lifecycle/pipeline.test.ts +1 -1
- package/src/binary-lifecycle/pipeline.ts +23 -9
- package/src/buffer.ts +6 -0
- package/src/maintenance/namespace-planner.ts +0 -2
- package/src/namespaces/catalog.test.ts +53 -8
- package/src/namespaces/catalog.ts +5 -37
- package/src/orchestration/turn-ingestion-snapshot.test.ts +167 -0
- package/src/orchestration/turn-ingestion.ts +2 -1
- package/dist/chunk-5W5N7XJZ.js.map +0 -1
- package/dist/chunk-6UZR7KEK.js.map +0 -1
- package/dist/chunk-6ZYQ36IB.js.map +0 -1
- package/dist/chunk-JJ7JW62R.js.map +0 -1
- package/dist/chunk-TRPX6F2G.js.map +0 -1
- /package/dist/{chunk-AJSZ2EK6.js.map → chunk-3USQWITL.js.map} +0 -0
- /package/dist/{chunk-RYGJGXL6.js.map → chunk-4EDAHS6D.js.map} +0 -0
- /package/dist/{chunk-KWN6NOHQ.js.map → chunk-BXOZALJ6.js.map} +0 -0
- /package/dist/{chunk-6F2UMP4H.js.map → chunk-CKWOMJDY.js.map} +0 -0
- /package/dist/{chunk-MR5HWQHS.js.map → chunk-DFEYRCG2.js.map} +0 -0
- /package/dist/{chunk-EJQXDKYK.js.map → chunk-EJCN5ATI.js.map} +0 -0
- /package/dist/{chunk-XZPSBGHA.js.map → chunk-ISFUFLFM.js.map} +0 -0
- /package/dist/{chunk-4NMVX5U7.js.map → chunk-JSH2TV34.js.map} +0 -0
- /package/dist/{chunk-R74NCKEY.js.map → chunk-LNFYISZ6.js.map} +0 -0
- /package/dist/{chunk-IM56VPKO.js.map → chunk-OR7KEGLR.js.map} +0 -0
- /package/dist/{chunk-A73QHOZP.js.map → chunk-QOMUE4FS.js.map} +0 -0
- /package/dist/{chunk-5UFQCU6M.js.map → chunk-ZUZD2DRV.js.map} +0 -0
|
@@ -23,30 +23,30 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
23
23
|
evidenceWindowEnd: z.ZodOptional<z.ZodString>;
|
|
24
24
|
refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
reason: string;
|
|
26
27
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
27
28
|
date: string;
|
|
28
29
|
agent: string;
|
|
29
|
-
|
|
30
|
-
workflow?: string | undefined;
|
|
31
|
-
tags?: string[] | undefined;
|
|
30
|
+
severity?: "low" | "medium" | "high" | undefined;
|
|
32
31
|
confidence?: number | undefined;
|
|
32
|
+
tags?: string[] | undefined;
|
|
33
|
+
workflow?: string | undefined;
|
|
33
34
|
outcome?: string | undefined;
|
|
34
35
|
refs?: string[] | undefined;
|
|
35
|
-
severity?: "high" | "low" | "medium" | undefined;
|
|
36
36
|
learning?: string | undefined;
|
|
37
37
|
evidenceWindowStart?: string | undefined;
|
|
38
38
|
evidenceWindowEnd?: string | undefined;
|
|
39
39
|
}, {
|
|
40
|
+
reason: string;
|
|
40
41
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
41
42
|
date: string;
|
|
42
43
|
agent: string;
|
|
43
|
-
|
|
44
|
-
workflow?: string | undefined;
|
|
45
|
-
tags?: string[] | undefined;
|
|
44
|
+
severity?: "low" | "medium" | "high" | undefined;
|
|
46
45
|
confidence?: number | undefined;
|
|
46
|
+
tags?: string[] | undefined;
|
|
47
|
+
workflow?: string | undefined;
|
|
47
48
|
outcome?: string | undefined;
|
|
48
49
|
refs?: string[] | undefined;
|
|
49
|
-
severity?: "high" | "low" | "medium" | undefined;
|
|
50
50
|
learning?: string | undefined;
|
|
51
51
|
evidenceWindowStart?: string | undefined;
|
|
52
52
|
evidenceWindowEnd?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SupportPassportExternalRequestHandler } from '../public-http-
|
|
2
|
-
export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from '../public-http-
|
|
1
|
+
import { S as SupportPassportExternalRequestHandler } from '../public-http-DusietP2.js';
|
|
2
|
+
export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from '../public-http-DusietP2.js';
|
|
3
3
|
import { OfflineSyncExcludeFile } from '../offline-sync-file-io.js';
|
|
4
4
|
import { M as MemoryFile, c3 as SupportPassportConfig } from '../types-DWHOxlZP.js';
|
|
5
|
-
import { $ as SupportPassportCard, a6 as SupportPassportCardServiceDependencies, av as SupportPassportManualDraftInput, ah as SupportPassportDraftCard, aT as SupportPassportOwnerScope, aX as SupportPassportReplaceCardInput, a3 as SupportPassportCardMutationInput, ap as SupportPassportGrantCardRef, ar as SupportPassportGrantState, aa as SupportPassportCreateGrantInput, af as SupportPassportCreatedGrant, aR as SupportPassportOwnerGrant, aZ as SupportPassportRevokeGrantInput, aV as SupportPassportPublicGuide, aK as SupportPassportModelRoute, az as SupportPassportModelAdapter, aD as SupportPassportModelAuditSink, Y as SupportPassportAnswerOutput } from '../access-service-
|
|
6
|
-
export { S as SUPPORT_PASSPORT_CARD_CATEGORIES, N as SUPPORT_PASSPORT_CARD_STATUSES, O as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, Q as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, R as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, T as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, U as SupportPassportAccessSurface, V as SupportPassportAccessSurfaceDependencies, W as SupportPassportAnswerModelInput, X as SupportPassportAnswerModelInputSchema, Z as SupportPassportAnswerOutputSchema, _ as SupportPassportAnswerResult, a0 as SupportPassportCardCategory, a1 as SupportPassportCardCategorySchema, a2 as SupportPassportCardListSchema, a4 as SupportPassportCardMutationInputSchema, a5 as SupportPassportCardSchema, a7 as SupportPassportCardStatus, a8 as SupportPassportCardStatusSchema, a9 as SupportPassportCardTitleSchema, ab as SupportPassportCreateGrantInputSchema, ac as SupportPassportCreateGrantRequest, ad as SupportPassportCreateGrantRequestSchema, ae as SupportPassportCreateGrantResult, ag as SupportPassportCreatedGrantSchema, ai as SupportPassportDraftCardSchema, aj as SupportPassportDraftModelInput, ak as SupportPassportDraftModelInputSchema, al as SupportPassportDraftOutputSchema, am as SupportPassportDraftResult, an as SupportPassportError, ao as SupportPassportErrorCode, aq as SupportPassportGrantCardRefSchema, as as SupportPassportGrantStateSchema, at as SupportPassportListCardsInputSchema, au as SupportPassportListGrantsInputSchema, aw as SupportPassportManualDraftInputSchema, ax as SupportPassportMemoryIdSchema, ay as SupportPassportMemoryPreview, aA as SupportPassportModelAdapterOptions, aB as SupportPassportModelAuditRecord, aC as SupportPassportModelAuditRecordSchema, aE as SupportPassportModelAuditStore, aF as SupportPassportModelCallError, aG as SupportPassportModelClients, aH as SupportPassportModelFailureMetadata, aI as SupportPassportModelMessage, aJ as SupportPassportModelResultMetadata, aL as SupportPassportModelRouteKind, aM as SupportPassportModelRouteResult, aN as SupportPassportModelUsage, aO as SupportPassportNamespaceSchema, aP as SupportPassportOwnerCreateGrantRequest, aQ as SupportPassportOwnerCreateGrantRequestSchema, aS as SupportPassportOwnerGrantSchema, aU as SupportPassportPublicCardSchema, aW as SupportPassportPublicGuideSchema, aY as SupportPassportReplaceCardInputSchema, a_ as SupportPassportRevokeGrantInputSchema, a$ as SupportPassportRevokeGrantResult, b0 as SupportPassportSourceMemoryIdSchema, b1 as acceptsSupportPassportModelResponse, b2 as buildSupportPassportDirectGatewayConfig, b4 as computeSupportPassportCardRevision, b5 as createSupportPassportModelAdapter, b7 as hashSupportPassportAuditValues, b8 as resolveSupportPassportModelRoutePlan } from '../access-service-
|
|
5
|
+
import { $ as SupportPassportCard, a6 as SupportPassportCardServiceDependencies, av as SupportPassportManualDraftInput, ah as SupportPassportDraftCard, aT as SupportPassportOwnerScope, aX as SupportPassportReplaceCardInput, a3 as SupportPassportCardMutationInput, ap as SupportPassportGrantCardRef, ar as SupportPassportGrantState, aa as SupportPassportCreateGrantInput, af as SupportPassportCreatedGrant, aR as SupportPassportOwnerGrant, aZ as SupportPassportRevokeGrantInput, aV as SupportPassportPublicGuide, aK as SupportPassportModelRoute, az as SupportPassportModelAdapter, aD as SupportPassportModelAuditSink, Y as SupportPassportAnswerOutput } from '../access-service-D-bi3r01.js';
|
|
6
|
+
export { S as SUPPORT_PASSPORT_CARD_CATEGORIES, N as SUPPORT_PASSPORT_CARD_STATUSES, O as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, Q as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, R as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, T as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, U as SupportPassportAccessSurface, V as SupportPassportAccessSurfaceDependencies, W as SupportPassportAnswerModelInput, X as SupportPassportAnswerModelInputSchema, Z as SupportPassportAnswerOutputSchema, _ as SupportPassportAnswerResult, a0 as SupportPassportCardCategory, a1 as SupportPassportCardCategorySchema, a2 as SupportPassportCardListSchema, a4 as SupportPassportCardMutationInputSchema, a5 as SupportPassportCardSchema, a7 as SupportPassportCardStatus, a8 as SupportPassportCardStatusSchema, a9 as SupportPassportCardTitleSchema, ab as SupportPassportCreateGrantInputSchema, ac as SupportPassportCreateGrantRequest, ad as SupportPassportCreateGrantRequestSchema, ae as SupportPassportCreateGrantResult, ag as SupportPassportCreatedGrantSchema, ai as SupportPassportDraftCardSchema, aj as SupportPassportDraftModelInput, ak as SupportPassportDraftModelInputSchema, al as SupportPassportDraftOutputSchema, am as SupportPassportDraftResult, an as SupportPassportError, ao as SupportPassportErrorCode, aq as SupportPassportGrantCardRefSchema, as as SupportPassportGrantStateSchema, at as SupportPassportListCardsInputSchema, au as SupportPassportListGrantsInputSchema, aw as SupportPassportManualDraftInputSchema, ax as SupportPassportMemoryIdSchema, ay as SupportPassportMemoryPreview, aA as SupportPassportModelAdapterOptions, aB as SupportPassportModelAuditRecord, aC as SupportPassportModelAuditRecordSchema, aE as SupportPassportModelAuditStore, aF as SupportPassportModelCallError, aG as SupportPassportModelClients, aH as SupportPassportModelFailureMetadata, aI as SupportPassportModelMessage, aJ as SupportPassportModelResultMetadata, aL as SupportPassportModelRouteKind, aM as SupportPassportModelRouteResult, aN as SupportPassportModelUsage, aO as SupportPassportNamespaceSchema, aP as SupportPassportOwnerCreateGrantRequest, aQ as SupportPassportOwnerCreateGrantRequestSchema, aS as SupportPassportOwnerGrantSchema, aU as SupportPassportPublicCardSchema, aW as SupportPassportPublicGuideSchema, aY as SupportPassportReplaceCardInputSchema, a_ as SupportPassportRevokeGrantInputSchema, a$ as SupportPassportRevokeGrantResult, b0 as SupportPassportSourceMemoryIdSchema, b1 as acceptsSupportPassportModelResponse, b2 as buildSupportPassportDirectGatewayConfig, b4 as computeSupportPassportCardRevision, b5 as createSupportPassportModelAdapter, b7 as hashSupportPassportAuditValues, b8 as resolveSupportPassportModelRoutePlan } from '../access-service-D-bi3r01.js';
|
|
7
7
|
import { S as StorageManager } from '../storage-BVAVitkO.js';
|
|
8
8
|
import { FileHandle } from 'node:fs/promises';
|
|
9
9
|
import { withHeldFileLock } from '../utils/serialize-mutations.js';
|
|
@@ -16,7 +16,7 @@ import '../external-wiki-config.js';
|
|
|
16
16
|
import '../contradiction-config.js';
|
|
17
17
|
import '../graph-path-scoring-config.js';
|
|
18
18
|
import '../types-continuity.js';
|
|
19
|
-
import '../catalog-
|
|
19
|
+
import '../catalog-BYIHQw1l.js';
|
|
20
20
|
import '../access-namespace-preflight-yO4LMGFH.js';
|
|
21
21
|
import '../access-token-capabilities.js';
|
|
22
22
|
import 'node:async_hooks';
|
|
@@ -33,7 +33,7 @@ import '../access-health-types.js';
|
|
|
33
33
|
import '../corpus-watermark.js';
|
|
34
34
|
import '../replica-divergence.js';
|
|
35
35
|
import '../resolve-auth-token.js';
|
|
36
|
-
import '../orchestrator-
|
|
36
|
+
import '../orchestrator-ByLrpav4.js';
|
|
37
37
|
import '../briefing.js';
|
|
38
38
|
import '../corpus-read-cancellation.js';
|
|
39
39
|
import '../artifact-search.js';
|
|
@@ -55,7 +55,7 @@ import '../resolve-provider-secret.js';
|
|
|
55
55
|
import '../transcript.js';
|
|
56
56
|
import '../session-integrity.js';
|
|
57
57
|
import '../summarizer.js';
|
|
58
|
-
import '../maintenance-
|
|
58
|
+
import '../maintenance-N5ur13Al.js';
|
|
59
59
|
import '../namespaces/search.js';
|
|
60
60
|
import '../compounding/engine.js';
|
|
61
61
|
import '../shared-context/manager.js';
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SUPPORT_PASSPORT_MODEL_RESULT_PATH,
|
|
5
5
|
SupportPassportModelBridge,
|
|
6
6
|
parseSupportPassportModelJob
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-BXOZALJ6.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_SUPPORT_PASSPORT_CONFIG,
|
|
10
10
|
parseSupportPassportConfig
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
buildSupportPassportPublicRequestHandler,
|
|
15
15
|
composeSupportPassportExternalRequestHandlers,
|
|
16
16
|
normalizeSupportPassportNetworkAddress
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-ISFUFLFM.js";
|
|
18
|
+
import "../chunk-DFEYRCG2.js";
|
|
19
19
|
import {
|
|
20
20
|
SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS,
|
|
21
21
|
SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
notifySupportPassportCommitted,
|
|
57
57
|
resolveSupportPassportModelRoutePlan,
|
|
58
58
|
syncDirectoryForDurability
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-2JL7WPXL.js";
|
|
60
60
|
import "../chunk-GDASG7NC.js";
|
|
61
61
|
import "../chunk-GDB4J2H3.js";
|
|
62
62
|
import "../chunk-QYN5PXDZ.js";
|
package/dist/transfer/types.d.ts
CHANGED
|
@@ -20,26 +20,26 @@ declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
20
20
|
bytes: number;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
schemaVersion: 1;
|
|
24
|
-
createdAt: string;
|
|
25
23
|
format: "openclaw-engram-export";
|
|
24
|
+
createdAt: string;
|
|
25
|
+
pluginVersion: string;
|
|
26
26
|
files: {
|
|
27
27
|
path: string;
|
|
28
28
|
sha256: string;
|
|
29
29
|
bytes: number;
|
|
30
30
|
}[];
|
|
31
|
-
|
|
31
|
+
schemaVersion: 1;
|
|
32
32
|
includesTranscripts: boolean;
|
|
33
33
|
}, {
|
|
34
|
-
schemaVersion: 1;
|
|
35
|
-
createdAt: string;
|
|
36
34
|
format: "openclaw-engram-export";
|
|
35
|
+
createdAt: string;
|
|
36
|
+
pluginVersion: string;
|
|
37
37
|
files: {
|
|
38
38
|
path: string;
|
|
39
39
|
sha256: string;
|
|
40
40
|
bytes: number;
|
|
41
41
|
}[];
|
|
42
|
-
|
|
42
|
+
schemaVersion: 1;
|
|
43
43
|
includesTranscripts: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
|
|
@@ -75,26 +75,26 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
75
75
|
bytes: number;
|
|
76
76
|
}>, "many">;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
schemaVersion: 1;
|
|
79
|
-
createdAt: string;
|
|
80
78
|
format: "openclaw-engram-export";
|
|
79
|
+
createdAt: string;
|
|
80
|
+
pluginVersion: string;
|
|
81
81
|
files: {
|
|
82
82
|
path: string;
|
|
83
83
|
sha256: string;
|
|
84
84
|
bytes: number;
|
|
85
85
|
}[];
|
|
86
|
-
|
|
86
|
+
schemaVersion: 1;
|
|
87
87
|
includesTranscripts: boolean;
|
|
88
88
|
}, {
|
|
89
|
-
schemaVersion: 1;
|
|
90
|
-
createdAt: string;
|
|
91
89
|
format: "openclaw-engram-export";
|
|
90
|
+
createdAt: string;
|
|
91
|
+
pluginVersion: string;
|
|
92
92
|
files: {
|
|
93
93
|
path: string;
|
|
94
94
|
sha256: string;
|
|
95
95
|
bytes: number;
|
|
96
96
|
}[];
|
|
97
|
-
|
|
97
|
+
schemaVersion: 1;
|
|
98
98
|
includesTranscripts: boolean;
|
|
99
99
|
}>;
|
|
100
100
|
records: z.ZodArray<z.ZodObject<{
|
|
@@ -109,15 +109,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
109
109
|
}>, "many">;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
manifest: {
|
|
112
|
-
schemaVersion: 1;
|
|
113
|
-
createdAt: string;
|
|
114
112
|
format: "openclaw-engram-export";
|
|
113
|
+
createdAt: string;
|
|
114
|
+
pluginVersion: string;
|
|
115
115
|
files: {
|
|
116
116
|
path: string;
|
|
117
117
|
sha256: string;
|
|
118
118
|
bytes: number;
|
|
119
119
|
}[];
|
|
120
|
-
|
|
120
|
+
schemaVersion: 1;
|
|
121
121
|
includesTranscripts: boolean;
|
|
122
122
|
};
|
|
123
123
|
records: {
|
|
@@ -126,15 +126,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
126
126
|
}[];
|
|
127
127
|
}, {
|
|
128
128
|
manifest: {
|
|
129
|
-
schemaVersion: 1;
|
|
130
|
-
createdAt: string;
|
|
131
129
|
format: "openclaw-engram-export";
|
|
130
|
+
createdAt: string;
|
|
131
|
+
pluginVersion: string;
|
|
132
132
|
files: {
|
|
133
133
|
path: string;
|
|
134
134
|
sha256: string;
|
|
135
135
|
bytes: number;
|
|
136
136
|
}[];
|
|
137
|
-
|
|
137
|
+
schemaVersion: 1;
|
|
138
138
|
includesTranscripts: boolean;
|
|
139
139
|
};
|
|
140
140
|
records: {
|
|
@@ -313,16 +313,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
313
313
|
peerProfiles: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
schemaVersion: string;
|
|
317
316
|
includes: {
|
|
318
317
|
procedural: boolean;
|
|
319
318
|
taxonomy: boolean;
|
|
320
319
|
identityAnchors: boolean;
|
|
321
320
|
peerProfiles: boolean;
|
|
322
321
|
};
|
|
322
|
+
description: string;
|
|
323
323
|
id: string;
|
|
324
|
+
schemaVersion: string;
|
|
324
325
|
version: string;
|
|
325
|
-
description: string;
|
|
326
326
|
parentCapsule: string | null;
|
|
327
327
|
retrievalPolicy: {
|
|
328
328
|
tierWeights: Record<string, number>;
|
|
@@ -334,16 +334,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
334
334
|
forkRoot: string;
|
|
335
335
|
} | null;
|
|
336
336
|
}, {
|
|
337
|
-
schemaVersion: string;
|
|
338
337
|
includes: {
|
|
339
338
|
procedural: boolean;
|
|
340
339
|
taxonomy: boolean;
|
|
341
340
|
identityAnchors: boolean;
|
|
342
341
|
peerProfiles: boolean;
|
|
343
342
|
};
|
|
343
|
+
description: string;
|
|
344
344
|
id: string;
|
|
345
|
+
schemaVersion: string;
|
|
345
346
|
version: string;
|
|
346
|
-
description: string;
|
|
347
347
|
parentCapsule: string | null;
|
|
348
348
|
retrievalPolicy: {
|
|
349
349
|
tierWeights: Record<string, number>;
|
|
@@ -464,16 +464,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
464
464
|
peerProfiles: boolean;
|
|
465
465
|
}>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
schemaVersion: string;
|
|
468
467
|
includes: {
|
|
469
468
|
procedural: boolean;
|
|
470
469
|
taxonomy: boolean;
|
|
471
470
|
identityAnchors: boolean;
|
|
472
471
|
peerProfiles: boolean;
|
|
473
472
|
};
|
|
473
|
+
description: string;
|
|
474
474
|
id: string;
|
|
475
|
+
schemaVersion: string;
|
|
475
476
|
version: string;
|
|
476
|
-
description: string;
|
|
477
477
|
parentCapsule: string | null;
|
|
478
478
|
retrievalPolicy: {
|
|
479
479
|
tierWeights: Record<string, number>;
|
|
@@ -485,16 +485,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
485
485
|
forkRoot: string;
|
|
486
486
|
} | null;
|
|
487
487
|
}, {
|
|
488
|
-
schemaVersion: string;
|
|
489
488
|
includes: {
|
|
490
489
|
procedural: boolean;
|
|
491
490
|
taxonomy: boolean;
|
|
492
491
|
identityAnchors: boolean;
|
|
493
492
|
peerProfiles: boolean;
|
|
494
493
|
};
|
|
494
|
+
description: string;
|
|
495
495
|
id: string;
|
|
496
|
+
schemaVersion: string;
|
|
496
497
|
version: string;
|
|
497
|
-
description: string;
|
|
498
498
|
parentCapsule: string | null;
|
|
499
499
|
retrievalPolicy: {
|
|
500
500
|
tierWeights: Record<string, number>;
|
|
@@ -507,27 +507,25 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
507
507
|
} | null | undefined;
|
|
508
508
|
}>;
|
|
509
509
|
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
schemaVersion: 2;
|
|
511
|
-
createdAt: string;
|
|
512
510
|
format: "openclaw-engram-export";
|
|
511
|
+
createdAt: string;
|
|
512
|
+
pluginVersion: string;
|
|
513
513
|
files: {
|
|
514
514
|
path: string;
|
|
515
515
|
sha256: string;
|
|
516
516
|
bytes: number;
|
|
517
517
|
}[];
|
|
518
|
-
pluginVersion: string;
|
|
519
|
-
includesTranscripts: boolean;
|
|
520
518
|
capsule: {
|
|
521
|
-
schemaVersion: string;
|
|
522
519
|
includes: {
|
|
523
520
|
procedural: boolean;
|
|
524
521
|
taxonomy: boolean;
|
|
525
522
|
identityAnchors: boolean;
|
|
526
523
|
peerProfiles: boolean;
|
|
527
524
|
};
|
|
525
|
+
description: string;
|
|
528
526
|
id: string;
|
|
527
|
+
schemaVersion: string;
|
|
529
528
|
version: string;
|
|
530
|
-
description: string;
|
|
531
529
|
parentCapsule: string | null;
|
|
532
530
|
retrievalPolicy: {
|
|
533
531
|
tierWeights: Record<string, number>;
|
|
@@ -539,28 +537,28 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
539
537
|
forkRoot: string;
|
|
540
538
|
} | null;
|
|
541
539
|
};
|
|
542
|
-
}, {
|
|
543
540
|
schemaVersion: 2;
|
|
544
|
-
|
|
541
|
+
includesTranscripts: boolean;
|
|
542
|
+
}, {
|
|
545
543
|
format: "openclaw-engram-export";
|
|
544
|
+
createdAt: string;
|
|
545
|
+
pluginVersion: string;
|
|
546
546
|
files: {
|
|
547
547
|
path: string;
|
|
548
548
|
sha256: string;
|
|
549
549
|
bytes: number;
|
|
550
550
|
}[];
|
|
551
|
-
pluginVersion: string;
|
|
552
|
-
includesTranscripts: boolean;
|
|
553
551
|
capsule: {
|
|
554
|
-
schemaVersion: string;
|
|
555
552
|
includes: {
|
|
556
553
|
procedural: boolean;
|
|
557
554
|
taxonomy: boolean;
|
|
558
555
|
identityAnchors: boolean;
|
|
559
556
|
peerProfiles: boolean;
|
|
560
557
|
};
|
|
558
|
+
description: string;
|
|
561
559
|
id: string;
|
|
560
|
+
schemaVersion: string;
|
|
562
561
|
version: string;
|
|
563
|
-
description: string;
|
|
564
562
|
parentCapsule: string | null;
|
|
565
563
|
retrievalPolicy: {
|
|
566
564
|
tierWeights: Record<string, number>;
|
|
@@ -572,6 +570,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
572
570
|
forkRoot: string;
|
|
573
571
|
} | null | undefined;
|
|
574
572
|
};
|
|
573
|
+
schemaVersion: 2;
|
|
574
|
+
includesTranscripts: boolean;
|
|
575
575
|
}>;
|
|
576
576
|
type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
|
|
577
577
|
declare const ExportBundleV2Schema: z.ZodObject<{
|
|
@@ -683,16 +683,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
683
683
|
peerProfiles: boolean;
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
-
schemaVersion: string;
|
|
687
686
|
includes: {
|
|
688
687
|
procedural: boolean;
|
|
689
688
|
taxonomy: boolean;
|
|
690
689
|
identityAnchors: boolean;
|
|
691
690
|
peerProfiles: boolean;
|
|
692
691
|
};
|
|
692
|
+
description: string;
|
|
693
693
|
id: string;
|
|
694
|
+
schemaVersion: string;
|
|
694
695
|
version: string;
|
|
695
|
-
description: string;
|
|
696
696
|
parentCapsule: string | null;
|
|
697
697
|
retrievalPolicy: {
|
|
698
698
|
tierWeights: Record<string, number>;
|
|
@@ -704,16 +704,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
704
704
|
forkRoot: string;
|
|
705
705
|
} | null;
|
|
706
706
|
}, {
|
|
707
|
-
schemaVersion: string;
|
|
708
707
|
includes: {
|
|
709
708
|
procedural: boolean;
|
|
710
709
|
taxonomy: boolean;
|
|
711
710
|
identityAnchors: boolean;
|
|
712
711
|
peerProfiles: boolean;
|
|
713
712
|
};
|
|
713
|
+
description: string;
|
|
714
714
|
id: string;
|
|
715
|
+
schemaVersion: string;
|
|
715
716
|
version: string;
|
|
716
|
-
description: string;
|
|
717
717
|
parentCapsule: string | null;
|
|
718
718
|
retrievalPolicy: {
|
|
719
719
|
tierWeights: Record<string, number>;
|
|
@@ -726,27 +726,25 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
726
726
|
} | null | undefined;
|
|
727
727
|
}>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
schemaVersion: 2;
|
|
730
|
-
createdAt: string;
|
|
731
729
|
format: "openclaw-engram-export";
|
|
730
|
+
createdAt: string;
|
|
731
|
+
pluginVersion: string;
|
|
732
732
|
files: {
|
|
733
733
|
path: string;
|
|
734
734
|
sha256: string;
|
|
735
735
|
bytes: number;
|
|
736
736
|
}[];
|
|
737
|
-
pluginVersion: string;
|
|
738
|
-
includesTranscripts: boolean;
|
|
739
737
|
capsule: {
|
|
740
|
-
schemaVersion: string;
|
|
741
738
|
includes: {
|
|
742
739
|
procedural: boolean;
|
|
743
740
|
taxonomy: boolean;
|
|
744
741
|
identityAnchors: boolean;
|
|
745
742
|
peerProfiles: boolean;
|
|
746
743
|
};
|
|
744
|
+
description: string;
|
|
747
745
|
id: string;
|
|
746
|
+
schemaVersion: string;
|
|
748
747
|
version: string;
|
|
749
|
-
description: string;
|
|
750
748
|
parentCapsule: string | null;
|
|
751
749
|
retrievalPolicy: {
|
|
752
750
|
tierWeights: Record<string, number>;
|
|
@@ -758,28 +756,28 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
758
756
|
forkRoot: string;
|
|
759
757
|
} | null;
|
|
760
758
|
};
|
|
761
|
-
}, {
|
|
762
759
|
schemaVersion: 2;
|
|
763
|
-
|
|
760
|
+
includesTranscripts: boolean;
|
|
761
|
+
}, {
|
|
764
762
|
format: "openclaw-engram-export";
|
|
763
|
+
createdAt: string;
|
|
764
|
+
pluginVersion: string;
|
|
765
765
|
files: {
|
|
766
766
|
path: string;
|
|
767
767
|
sha256: string;
|
|
768
768
|
bytes: number;
|
|
769
769
|
}[];
|
|
770
|
-
pluginVersion: string;
|
|
771
|
-
includesTranscripts: boolean;
|
|
772
770
|
capsule: {
|
|
773
|
-
schemaVersion: string;
|
|
774
771
|
includes: {
|
|
775
772
|
procedural: boolean;
|
|
776
773
|
taxonomy: boolean;
|
|
777
774
|
identityAnchors: boolean;
|
|
778
775
|
peerProfiles: boolean;
|
|
779
776
|
};
|
|
777
|
+
description: string;
|
|
780
778
|
id: string;
|
|
779
|
+
schemaVersion: string;
|
|
781
780
|
version: string;
|
|
782
|
-
description: string;
|
|
783
781
|
parentCapsule: string | null;
|
|
784
782
|
retrievalPolicy: {
|
|
785
783
|
tierWeights: Record<string, number>;
|
|
@@ -791,6 +789,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
791
789
|
forkRoot: string;
|
|
792
790
|
} | null | undefined;
|
|
793
791
|
};
|
|
792
|
+
schemaVersion: 2;
|
|
793
|
+
includesTranscripts: boolean;
|
|
794
794
|
}>;
|
|
795
795
|
records: z.ZodArray<z.ZodObject<{
|
|
796
796
|
path: z.ZodString;
|
|
@@ -804,27 +804,25 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
804
804
|
}>, "many">;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
806
|
manifest: {
|
|
807
|
-
schemaVersion: 2;
|
|
808
|
-
createdAt: string;
|
|
809
807
|
format: "openclaw-engram-export";
|
|
808
|
+
createdAt: string;
|
|
809
|
+
pluginVersion: string;
|
|
810
810
|
files: {
|
|
811
811
|
path: string;
|
|
812
812
|
sha256: string;
|
|
813
813
|
bytes: number;
|
|
814
814
|
}[];
|
|
815
|
-
pluginVersion: string;
|
|
816
|
-
includesTranscripts: boolean;
|
|
817
815
|
capsule: {
|
|
818
|
-
schemaVersion: string;
|
|
819
816
|
includes: {
|
|
820
817
|
procedural: boolean;
|
|
821
818
|
taxonomy: boolean;
|
|
822
819
|
identityAnchors: boolean;
|
|
823
820
|
peerProfiles: boolean;
|
|
824
821
|
};
|
|
822
|
+
description: string;
|
|
825
823
|
id: string;
|
|
824
|
+
schemaVersion: string;
|
|
826
825
|
version: string;
|
|
827
|
-
description: string;
|
|
828
826
|
parentCapsule: string | null;
|
|
829
827
|
retrievalPolicy: {
|
|
830
828
|
tierWeights: Record<string, number>;
|
|
@@ -836,6 +834,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
836
834
|
forkRoot: string;
|
|
837
835
|
} | null;
|
|
838
836
|
};
|
|
837
|
+
schemaVersion: 2;
|
|
838
|
+
includesTranscripts: boolean;
|
|
839
839
|
};
|
|
840
840
|
records: {
|
|
841
841
|
content: string;
|
|
@@ -843,27 +843,25 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
843
843
|
}[];
|
|
844
844
|
}, {
|
|
845
845
|
manifest: {
|
|
846
|
-
schemaVersion: 2;
|
|
847
|
-
createdAt: string;
|
|
848
846
|
format: "openclaw-engram-export";
|
|
847
|
+
createdAt: string;
|
|
848
|
+
pluginVersion: string;
|
|
849
849
|
files: {
|
|
850
850
|
path: string;
|
|
851
851
|
sha256: string;
|
|
852
852
|
bytes: number;
|
|
853
853
|
}[];
|
|
854
|
-
pluginVersion: string;
|
|
855
|
-
includesTranscripts: boolean;
|
|
856
854
|
capsule: {
|
|
857
|
-
schemaVersion: string;
|
|
858
855
|
includes: {
|
|
859
856
|
procedural: boolean;
|
|
860
857
|
taxonomy: boolean;
|
|
861
858
|
identityAnchors: boolean;
|
|
862
859
|
peerProfiles: boolean;
|
|
863
860
|
};
|
|
861
|
+
description: string;
|
|
864
862
|
id: string;
|
|
863
|
+
schemaVersion: string;
|
|
865
864
|
version: string;
|
|
866
|
-
description: string;
|
|
867
865
|
parentCapsule: string | null;
|
|
868
866
|
retrievalPolicy: {
|
|
869
867
|
tierWeights: Record<string, number>;
|
|
@@ -875,6 +873,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
875
873
|
forkRoot: string;
|
|
876
874
|
} | null | undefined;
|
|
877
875
|
};
|
|
876
|
+
schemaVersion: 2;
|
|
877
|
+
includesTranscripts: boolean;
|
|
878
878
|
};
|
|
879
879
|
records: {
|
|
880
880
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.63.
|
|
3
|
+
"version": "9.63.4",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3156,7 +3156,7 @@
|
|
|
3156
3156
|
"core"
|
|
3157
3157
|
],
|
|
3158
3158
|
"peerDependencies": {
|
|
3159
|
-
"@remnic/coding-graph": "^9.63.
|
|
3159
|
+
"@remnic/coding-graph": "^9.63.4"
|
|
3160
3160
|
},
|
|
3161
3161
|
"peerDependenciesMeta": {
|
|
3162
3162
|
"@remnic/coding-graph": {
|
package/src/access-http-query.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EngramAccessInputError } from "./access-service.js";
|
|
2
|
+
import { isNamespaceKind, type NamespaceKind } from "./namespaces/catalog.js";
|
|
2
3
|
|
|
3
4
|
/** Optional string field from a JSON body: absent/null/"" → undefined. */
|
|
4
5
|
export function optionalQueryString(value: unknown, label: string): string | undefined {
|
|
@@ -23,3 +24,14 @@ export function positiveIntQueryParam(value: string | null, label: string): numb
|
|
|
23
24
|
}
|
|
24
25
|
return parsed;
|
|
25
26
|
}
|
|
27
|
+
|
|
28
|
+
/** Optional namespace-kind query param; rejects dead or unknown kinds. */
|
|
29
|
+
export function optionalNamespaceKindQueryParam(value: string | null): NamespaceKind | undefined {
|
|
30
|
+
if (value === null || value.length === 0) return undefined;
|
|
31
|
+
if (!isNamespaceKind(value)) {
|
|
32
|
+
throw new EngramAccessInputError(
|
|
33
|
+
"kind must be one of: default, shared, project, branch, team-project, explicit",
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
package/src/access-http.test.ts
CHANGED
|
@@ -728,6 +728,38 @@ test("HTTP admin dashboard endpoints require bearer authentication and apply con
|
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
|
|
731
|
+
test("HTTP admin namespaces rejects dead kinds and accepts live kinds", async () => {
|
|
732
|
+
const filters: unknown[] = [];
|
|
733
|
+
const service = {
|
|
734
|
+
adminListNamespaces: async (filter: unknown) => {
|
|
735
|
+
filters.push(filter);
|
|
736
|
+
return { enabled: true, entries: [] };
|
|
737
|
+
},
|
|
738
|
+
} as unknown as EngramAccessService;
|
|
739
|
+
const server = new EngramAccessHttpServer({
|
|
740
|
+
service,
|
|
741
|
+
port: 0,
|
|
742
|
+
authToken: "test-token",
|
|
743
|
+
adminConsoleEnabled: false,
|
|
744
|
+
});
|
|
745
|
+
const status = await server.start();
|
|
746
|
+
try {
|
|
747
|
+
const rejected = await fetch(
|
|
748
|
+
`http://127.0.0.1:${status.port}/engram/v1/admin/namespaces?kind=self`,
|
|
749
|
+
{ headers: { authorization: "Bearer test-token" } },
|
|
750
|
+
);
|
|
751
|
+
assert.equal(rejected.status, 400);
|
|
752
|
+
const accepted = await fetch(
|
|
753
|
+
`http://127.0.0.1:${status.port}/engram/v1/admin/namespaces?kind=default`,
|
|
754
|
+
{ headers: { authorization: "Bearer test-token" } },
|
|
755
|
+
);
|
|
756
|
+
assert.equal(accepted.status, 200);
|
|
757
|
+
assert.deepEqual(filters, [{ kind: "default" }]);
|
|
758
|
+
} finally {
|
|
759
|
+
await server.stop();
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
|
|
731
763
|
test("HTTP coding-context endpoint accepts projectTag shorthand", async () => {
|
|
732
764
|
const calls: unknown[] = [];
|
|
733
765
|
const service = {
|
package/src/access-http.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
respondOfflineManifestStream,
|
|
23
23
|
respondOfflineSnapshotStream,
|
|
24
24
|
} from "./access-http-offline-stream.js";
|
|
25
|
-
import { nonEmptyQueryParam, optionalQueryString, positiveIntQueryParam } from "./access-http-query.js";
|
|
25
|
+
import { nonEmptyQueryParam, optionalNamespaceKindQueryParam, optionalQueryString, positiveIntQueryParam } from "./access-http-query.js";
|
|
26
26
|
import { CorrectionContractError } from "./correction/correction-contract.js";
|
|
27
27
|
import { WearablesInputError } from "./wearables/errors.js"; import { respondMeetingsList, respondMeetingsGet, respondMeetingsBuild } from "./meetings/http-glue.js";
|
|
28
28
|
import { EngramMcpServer, MCP_SUPPORTED_PROTOCOL_VERSIONS } from "./access-mcp.js";
|
|
@@ -2988,14 +2988,10 @@ export class EngramAccessHttpServer extends SupportPassportAccessHttpBase {
|
|
|
2988
2988
|
return;
|
|
2989
2989
|
}
|
|
2990
2990
|
this.requireOperatorToken();
|
|
2991
|
-
const kind = parsed.searchParams.get("kind");
|
|
2992
|
-
const principal = parsed.searchParams.get("principal");
|
|
2993
|
-
const projectId = parsed.searchParams.get("projectId");
|
|
2991
|
+
const kind = optionalNamespaceKindQueryParam(parsed.searchParams.get("kind"));
|
|
2994
2992
|
const discoveredBy = parsed.searchParams.get("discoveredBy");
|
|
2995
2993
|
const result = await this.service.adminListNamespaces({
|
|
2996
|
-
...(kind ? { kind
|
|
2997
|
-
...(principal && principal.length > 0 ? { principal } : {}),
|
|
2998
|
-
...(projectId && projectId.length > 0 ? { projectId } : {}),
|
|
2994
|
+
...(kind ? { kind } : {}),
|
|
2999
2995
|
...(discoveredBy
|
|
3000
2996
|
? { discoveredBy: discoveredBy as "config" | "write" | "read" | "scan" | "migration" }
|
|
3001
2997
|
: {}),
|