@remnic/core 10.0.50 → 10.0.51
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.js +22 -22
- package/dist/access-authorization-probe.js +23 -23
- package/dist/access-boundary.d.ts +6 -1
- package/dist/access-boundary.d.ts.map +1 -1
- package/dist/access-boundary.js +22 -22
- package/dist/access-cli.js +68 -68
- package/dist/access-errors.d.ts.map +1 -1
- package/dist/access-errors.js +1 -1
- package/dist/access-extraction-force-flush.js +22 -22
- package/dist/access-http-briefing.js +23 -23
- package/dist/access-http-query.js +24 -24
- package/dist/access-http.js +42 -42
- package/dist/access-identity-continuity-surface.js +22 -22
- package/dist/access-lcm-surface.js +22 -22
- package/dist/access-mcp.js +32 -32
- package/dist/access-memory-search-fanout.js +2 -2
- package/dist/access-namespace-preflight.js +22 -22
- package/dist/access-observe-write-category.js +2 -2
- package/dist/access-observe-write-surface.js +22 -22
- package/dist/access-offline-manifest.js +2 -2
- package/dist/access-operations-batch.js +23 -23
- package/dist/access-operations.js +30 -30
- package/dist/access-recall-concurrency.js +22 -22
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +22 -22
- package/dist/access-recall-surface.js +22 -22
- package/dist/access-schema.d.ts +245 -773
- package/dist/access-schema.d.ts.map +1 -1
- package/dist/access-schema.js +1 -1
- package/dist/access-service.js +22 -22
- package/dist/access-surface-catalog.js +24 -24
- package/dist/access-token-capabilities.js +2 -2
- package/dist/active-recall.js +5 -5
- package/dist/briefing.js +3 -3
- package/dist/causal-consolidation.js +4 -4
- package/dist/{chunk-7YVER7ZO.js → chunk-2EXF6IIB.js} +2 -2
- package/dist/{chunk-HPNXS6W6.js → chunk-2ONKXEC7.js} +3 -3
- package/dist/{chunk-DMKTOCC7.js → chunk-2S6JADBB.js} +2 -2
- package/dist/{chunk-ZSEFGDCI.js → chunk-2TGIKMMZ.js} +2 -2
- package/dist/{chunk-Q3PNQYAC.js → chunk-44EUCSG4.js} +2 -2
- package/dist/{chunk-PJCVI44H.js → chunk-4FM35YIA.js} +3 -3
- package/dist/{chunk-M6TP6UYD.js → chunk-6ZAU7LAR.js} +2 -2
- package/dist/{chunk-SJTSWG2Z.js → chunk-72CBJ5VP.js} +3 -3
- package/dist/{chunk-EKYWZYZJ.js → chunk-75BK4XGV.js} +17 -17
- package/dist/{chunk-HKOMHP6D.js → chunk-A6JDT6QF.js} +2 -2
- package/dist/{chunk-TFWJXWL6.js → chunk-AHGOOZUC.js} +2 -2
- package/dist/{chunk-A7AISUJI.js → chunk-AJG2TAMR.js} +2 -2
- package/dist/{chunk-VCOMACR6.js → chunk-AZLD4CKG.js} +19 -19
- package/dist/{chunk-GXVXBYRA.js → chunk-B35EQQ7L.js} +3 -3
- package/dist/{chunk-E6UNM67F.js → chunk-B6SPPYGJ.js} +2 -2
- package/dist/{chunk-TXKQBQYW.js → chunk-CK6GCGMX.js} +3 -3
- package/dist/{chunk-NPLM7AFU.js → chunk-DF6ZF2BN.js} +3 -3
- package/dist/{chunk-6ZQX3R66.js → chunk-DJFULNXK.js} +4 -4
- package/dist/{chunk-JBWD3J5U.js → chunk-DQOGZZJA.js} +3 -3
- package/dist/{chunk-K5QQXVG6.js → chunk-EC2KVA27.js} +7 -7
- package/dist/{chunk-N74WJ7B2.js → chunk-EZS6QJNC.js} +2 -2
- package/dist/{chunk-MWURUSRE.js → chunk-FNNGWN3O.js} +2 -2
- package/dist/{chunk-5FUDSK6Z.js → chunk-FT75AQ74.js} +3 -3
- package/dist/{chunk-ZMO2S5RT.js → chunk-G6A3SGCE.js} +3 -3
- package/dist/chunk-G6A3SGCE.js.map +1 -0
- package/dist/{chunk-IMKOJVD4.js → chunk-GBGU5OZP.js} +52 -51
- package/dist/chunk-GBGU5OZP.js.map +1 -0
- package/dist/{chunk-5X2H3X4J.js → chunk-GE3ZX6YK.js} +2 -2
- package/dist/{chunk-UNOAVHV4.js → chunk-HCIRR3BA.js} +3 -3
- package/dist/{chunk-MLNXATFG.js → chunk-HEF4BRMT.js} +3 -3
- package/dist/{chunk-Z5277JWF.js → chunk-HQUYENKK.js} +7 -10
- package/dist/chunk-HQUYENKK.js.map +1 -0
- package/dist/{chunk-6UDLN4IA.js → chunk-I6ORDT54.js} +2 -2
- package/dist/{chunk-M4HRYLOA.js → chunk-IUQXRRJB.js} +3 -3
- package/dist/{chunk-GQIYL7OD.js → chunk-JIJAWTRK.js} +3 -3
- package/dist/{chunk-4KS4IHKH.js → chunk-JX3E4XCW.js} +2 -2
- package/dist/{chunk-ZFNXJEUG.js → chunk-KAJYSO3U.js} +2 -2
- package/dist/{chunk-QS765SBL.js → chunk-KETS5A62.js} +2 -2
- package/dist/{chunk-N7FNCE7F.js → chunk-KIWO4327.js} +2 -2
- package/dist/{chunk-FC3ZFEXF.js → chunk-KJ3MDX4V.js} +2 -2
- package/dist/{chunk-BNJAVRNJ.js → chunk-L3EFYRYK.js} +8 -8
- package/dist/{chunk-3MUKQQ7A.js → chunk-LGEH473S.js} +24 -29
- package/dist/chunk-LGEH473S.js.map +1 -0
- package/dist/{chunk-P7OVFGMU.js → chunk-LMB47UM6.js} +2 -2
- package/dist/{chunk-7SAE6T36.js → chunk-LWMLBVGB.js} +2 -2
- package/dist/{chunk-ZNRTHYYW.js → chunk-MC7PXJDP.js} +7 -7
- package/dist/{chunk-M2DOJBH7.js → chunk-MUNYUSBU.js} +2 -2
- package/dist/{chunk-LMMBV7QC.js → chunk-OCRLJJOV.js} +4 -4
- package/dist/{chunk-7J6A5MV2.js → chunk-ON77FQXH.js} +2 -2
- package/dist/{chunk-WV4UYDP6.js → chunk-POJRFSJM.js} +3 -3
- package/dist/{chunk-LKRXGOQW.js → chunk-QA3Y2O6H.js} +2 -2
- package/dist/{chunk-23ZLN5X6.js → chunk-QT5MGENX.js} +14 -6
- package/dist/chunk-QT5MGENX.js.map +1 -0
- package/dist/{chunk-YECEEJUU.js → chunk-RA7YRL6H.js} +2 -2
- package/dist/{chunk-UALXWWGN.js → chunk-RJDYDF5K.js} +4 -4
- package/dist/{chunk-WXJC2L66.js → chunk-ROAKLYOL.js} +2 -2
- package/dist/{chunk-NWIT3U2N.js → chunk-S5CQI2KF.js} +2 -2
- package/dist/{chunk-P6P35FY4.js → chunk-SDESKFKT.js} +2 -2
- package/dist/{chunk-UXGXJUZ5.js → chunk-SFRBUBUZ.js} +7 -7
- package/dist/{chunk-CRN3EPE2.js → chunk-SHNM7RIT.js} +3 -3
- package/dist/{chunk-UZVQFGAY.js → chunk-SJD334AG.js} +20 -20
- package/dist/{chunk-XC3H7KON.js → chunk-SPTPBKZX.js} +2 -2
- package/dist/{chunk-IUYXCTA7.js → chunk-TC55M5PO.js} +2 -2
- package/dist/{chunk-EWBXMGXR.js → chunk-UCLJTGP3.js} +2 -2
- package/dist/{chunk-754XN6LX.js → chunk-V27FK6D6.js} +2 -2
- package/dist/{chunk-LIBVANOF.js → chunk-V6Z4NAJZ.js} +2 -2
- package/dist/{chunk-XTXWR6KQ.js → chunk-VUMWVYMR.js} +7 -7
- package/dist/{chunk-ZSMA67FV.js → chunk-WY66J4PI.js} +2 -2
- package/dist/{chunk-5G53JSRO.js → chunk-XWJUFER3.js} +3 -3
- package/dist/{chunk-NSP5PIQH.js → chunk-Y3T5KQCR.js} +2 -2
- package/dist/{chunk-QTDZ2NYC.js → chunk-Y77FXULH.js} +2 -2
- package/dist/{chunk-IG747LRN.js → chunk-YO2JEX2Z.js} +2 -2
- package/dist/{chunk-KW5YZELC.js → chunk-ZKK3VMWU.js} +2 -2
- package/dist/cli.js +55 -55
- package/dist/coding/export-okf-codegraph.js +2 -2
- package/dist/compounding/engine.js +4 -4
- package/dist/config.js +5 -5
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/index.js +7 -7
- package/dist/convergence-refresh.js +5 -5
- package/dist/corpus-watermark.js +7 -7
- package/dist/deep-recall-config.js +2 -2
- package/dist/deep-recall-http-glue.js +4 -4
- package/dist/{entity-canonical-id-migration-ZBNRGUNV.js → entity-canonical-id-migration-F3JVG6K6.js} +2 -2
- package/dist/entity-retrieval.js +3 -3
- package/dist/external-wiki-access.js +23 -23
- package/dist/extraction-span-wire.d.ts.map +1 -1
- package/dist/extraction-span-wire.js +1 -1
- package/dist/extraction.js +11 -11
- package/dist/harmonic-retrieval.js +3 -3
- package/dist/index.js +68 -68
- package/dist/location/index.js +6 -6
- package/dist/maintenance/memory-governance.js +3 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
- package/dist/maintenance/rebuild-memory-projection-runner.js +5 -5
- package/dist/maintenance/rebuild-memory-projection.js +4 -4
- package/dist/memory-browse-http-glue.js +2 -2
- package/dist/memory-browse-operations.js +23 -23
- package/dist/namespaces/migrate.js +4 -4
- package/dist/namespaces/storage.js +3 -3
- package/dist/offline-sync-impression-drain.js +2 -2
- package/dist/operator-doctor-corpus.js +10 -10
- package/dist/operator-doctor-replica.js +4 -4
- package/dist/operator-toolkit.js +17 -17
- package/dist/orchestration/maintenance.js +15 -15
- package/dist/orchestrator.js +68 -68
- package/dist/recall-navigation-http-glue.js +2 -2
- package/dist/recall-navigation-operations.js +23 -23
- package/dist/recall-navigation.js +22 -22
- package/dist/relay/mission.d.ts +731 -3403
- package/dist/relay/mission.d.ts.map +1 -1
- package/dist/replica-divergence.js +3 -3
- package/dist/resume-bundles.js +6 -6
- package/dist/schemas.d.ts +346 -1771
- package/dist/schemas.d.ts.map +1 -1
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/shared-context/manager.d.ts +13 -33
- package/dist/shared-context/manager.d.ts.map +1 -1
- package/dist/source-agent-qualifier.js +9 -9
- package/dist/standup/build.js +4 -4
- package/dist/storage.js +2 -2
- package/dist/support-passport/access-operations.d.ts +51 -51
- package/dist/support-passport/contracts.d.ts +85 -126
- package/dist/support-passport/contracts.d.ts.map +1 -1
- package/dist/support-passport/generated-batch.d.ts +3 -17
- package/dist/support-passport/generated-batch.d.ts.map +1 -1
- package/dist/support-passport/grant-contracts.d.ts +75 -381
- package/dist/support-passport/grant-contracts.d.ts.map +1 -1
- package/dist/support-passport/index.js +25 -25
- package/dist/support-passport/model-audit.d.ts +17 -82
- package/dist/support-passport/model-audit.d.ts.map +1 -1
- package/dist/support-passport/model-bridge.d.ts +12 -51
- package/dist/support-passport/model-bridge.d.ts.map +1 -1
- package/dist/support-passport/model-contracts.d.ts +53 -192
- package/dist/support-passport/model-contracts.d.ts.map +1 -1
- package/dist/tokens.js +3 -3
- package/dist/transfer/export-okf.js +3 -3
- package/dist/transfer/types.d.ts +32 -737
- package/dist/transfer/types.d.ts.map +1 -1
- package/dist/verified-recall.js +3 -3
- package/dist/who-knows-cli.js +5 -5
- package/dist/who-knows.js +4 -4
- package/package.json +3 -4
- package/src/access-boundary.test.ts +14 -0
- package/src/access-boundary.ts +48 -42
- package/src/access-category-alias.test.ts +9 -7
- package/src/access-errors.test.ts +21 -9
- package/src/access-errors.ts +45 -31
- package/src/access-http.test.ts +1 -1
- package/src/access-schema.ts +13 -17
- package/src/extraction-scope-source-agent.test.ts +6 -6
- package/src/extraction-span-wire.test.ts +28 -0
- package/src/extraction-span-wire.ts +34 -6
- package/src/storage/entity-canonical-id-migration.ts +2 -2
- package/dist/chunk-23ZLN5X6.js.map +0 -1
- package/dist/chunk-3MUKQQ7A.js.map +0 -1
- package/dist/chunk-IMKOJVD4.js.map +0 -1
- package/dist/chunk-Z5277JWF.js.map +0 -1
- package/dist/chunk-ZMO2S5RT.js.map +0 -1
- /package/dist/{chunk-7YVER7ZO.js.map → chunk-2EXF6IIB.js.map} +0 -0
- /package/dist/{chunk-HPNXS6W6.js.map → chunk-2ONKXEC7.js.map} +0 -0
- /package/dist/{chunk-DMKTOCC7.js.map → chunk-2S6JADBB.js.map} +0 -0
- /package/dist/{chunk-ZSEFGDCI.js.map → chunk-2TGIKMMZ.js.map} +0 -0
- /package/dist/{chunk-Q3PNQYAC.js.map → chunk-44EUCSG4.js.map} +0 -0
- /package/dist/{chunk-PJCVI44H.js.map → chunk-4FM35YIA.js.map} +0 -0
- /package/dist/{chunk-M6TP6UYD.js.map → chunk-6ZAU7LAR.js.map} +0 -0
- /package/dist/{chunk-SJTSWG2Z.js.map → chunk-72CBJ5VP.js.map} +0 -0
- /package/dist/{chunk-EKYWZYZJ.js.map → chunk-75BK4XGV.js.map} +0 -0
- /package/dist/{chunk-HKOMHP6D.js.map → chunk-A6JDT6QF.js.map} +0 -0
- /package/dist/{chunk-TFWJXWL6.js.map → chunk-AHGOOZUC.js.map} +0 -0
- /package/dist/{chunk-A7AISUJI.js.map → chunk-AJG2TAMR.js.map} +0 -0
- /package/dist/{chunk-VCOMACR6.js.map → chunk-AZLD4CKG.js.map} +0 -0
- /package/dist/{chunk-GXVXBYRA.js.map → chunk-B35EQQ7L.js.map} +0 -0
- /package/dist/{chunk-E6UNM67F.js.map → chunk-B6SPPYGJ.js.map} +0 -0
- /package/dist/{chunk-TXKQBQYW.js.map → chunk-CK6GCGMX.js.map} +0 -0
- /package/dist/{chunk-NPLM7AFU.js.map → chunk-DF6ZF2BN.js.map} +0 -0
- /package/dist/{chunk-6ZQX3R66.js.map → chunk-DJFULNXK.js.map} +0 -0
- /package/dist/{chunk-JBWD3J5U.js.map → chunk-DQOGZZJA.js.map} +0 -0
- /package/dist/{chunk-K5QQXVG6.js.map → chunk-EC2KVA27.js.map} +0 -0
- /package/dist/{chunk-N74WJ7B2.js.map → chunk-EZS6QJNC.js.map} +0 -0
- /package/dist/{chunk-MWURUSRE.js.map → chunk-FNNGWN3O.js.map} +0 -0
- /package/dist/{chunk-5FUDSK6Z.js.map → chunk-FT75AQ74.js.map} +0 -0
- /package/dist/{chunk-5X2H3X4J.js.map → chunk-GE3ZX6YK.js.map} +0 -0
- /package/dist/{chunk-UNOAVHV4.js.map → chunk-HCIRR3BA.js.map} +0 -0
- /package/dist/{chunk-MLNXATFG.js.map → chunk-HEF4BRMT.js.map} +0 -0
- /package/dist/{chunk-6UDLN4IA.js.map → chunk-I6ORDT54.js.map} +0 -0
- /package/dist/{chunk-M4HRYLOA.js.map → chunk-IUQXRRJB.js.map} +0 -0
- /package/dist/{chunk-GQIYL7OD.js.map → chunk-JIJAWTRK.js.map} +0 -0
- /package/dist/{chunk-4KS4IHKH.js.map → chunk-JX3E4XCW.js.map} +0 -0
- /package/dist/{chunk-ZFNXJEUG.js.map → chunk-KAJYSO3U.js.map} +0 -0
- /package/dist/{chunk-QS765SBL.js.map → chunk-KETS5A62.js.map} +0 -0
- /package/dist/{chunk-N7FNCE7F.js.map → chunk-KIWO4327.js.map} +0 -0
- /package/dist/{chunk-FC3ZFEXF.js.map → chunk-KJ3MDX4V.js.map} +0 -0
- /package/dist/{chunk-BNJAVRNJ.js.map → chunk-L3EFYRYK.js.map} +0 -0
- /package/dist/{chunk-P7OVFGMU.js.map → chunk-LMB47UM6.js.map} +0 -0
- /package/dist/{chunk-7SAE6T36.js.map → chunk-LWMLBVGB.js.map} +0 -0
- /package/dist/{chunk-ZNRTHYYW.js.map → chunk-MC7PXJDP.js.map} +0 -0
- /package/dist/{chunk-M2DOJBH7.js.map → chunk-MUNYUSBU.js.map} +0 -0
- /package/dist/{chunk-LMMBV7QC.js.map → chunk-OCRLJJOV.js.map} +0 -0
- /package/dist/{chunk-7J6A5MV2.js.map → chunk-ON77FQXH.js.map} +0 -0
- /package/dist/{chunk-WV4UYDP6.js.map → chunk-POJRFSJM.js.map} +0 -0
- /package/dist/{chunk-LKRXGOQW.js.map → chunk-QA3Y2O6H.js.map} +0 -0
- /package/dist/{chunk-YECEEJUU.js.map → chunk-RA7YRL6H.js.map} +0 -0
- /package/dist/{chunk-UALXWWGN.js.map → chunk-RJDYDF5K.js.map} +0 -0
- /package/dist/{chunk-WXJC2L66.js.map → chunk-ROAKLYOL.js.map} +0 -0
- /package/dist/{chunk-NWIT3U2N.js.map → chunk-S5CQI2KF.js.map} +0 -0
- /package/dist/{chunk-P6P35FY4.js.map → chunk-SDESKFKT.js.map} +0 -0
- /package/dist/{chunk-UXGXJUZ5.js.map → chunk-SFRBUBUZ.js.map} +0 -0
- /package/dist/{chunk-CRN3EPE2.js.map → chunk-SHNM7RIT.js.map} +0 -0
- /package/dist/{chunk-UZVQFGAY.js.map → chunk-SJD334AG.js.map} +0 -0
- /package/dist/{chunk-XC3H7KON.js.map → chunk-SPTPBKZX.js.map} +0 -0
- /package/dist/{chunk-IUYXCTA7.js.map → chunk-TC55M5PO.js.map} +0 -0
- /package/dist/{chunk-EWBXMGXR.js.map → chunk-UCLJTGP3.js.map} +0 -0
- /package/dist/{chunk-754XN6LX.js.map → chunk-V27FK6D6.js.map} +0 -0
- /package/dist/{chunk-LIBVANOF.js.map → chunk-V6Z4NAJZ.js.map} +0 -0
- /package/dist/{chunk-XTXWR6KQ.js.map → chunk-VUMWVYMR.js.map} +0 -0
- /package/dist/{chunk-ZSMA67FV.js.map → chunk-WY66J4PI.js.map} +0 -0
- /package/dist/{chunk-5G53JSRO.js.map → chunk-XWJUFER3.js.map} +0 -0
- /package/dist/{chunk-NSP5PIQH.js.map → chunk-Y3T5KQCR.js.map} +0 -0
- /package/dist/{chunk-QTDZ2NYC.js.map → chunk-Y77FXULH.js.map} +0 -0
- /package/dist/{chunk-IG747LRN.js.map → chunk-YO2JEX2Z.js.map} +0 -0
- /package/dist/{chunk-KW5YZELC.js.map → chunk-ZKK3VMWU.js.map} +0 -0
- /package/dist/{entity-canonical-id-migration-ZBNRGUNV.js.map → entity-canonical-id-migration-F3JVG6K6.js.map} +0 -0
package/dist/transfer/types.d.ts
CHANGED
|
@@ -9,49 +9,13 @@ export declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
9
9
|
path: z.ZodString;
|
|
10
10
|
sha256: z.ZodString;
|
|
11
11
|
bytes: z.ZodNumber;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
sha256: string;
|
|
15
|
-
bytes: number;
|
|
16
|
-
}, {
|
|
17
|
-
path: string;
|
|
18
|
-
sha256: string;
|
|
19
|
-
bytes: number;
|
|
20
|
-
}>, "many">;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
schemaVersion: 1;
|
|
23
|
-
files: {
|
|
24
|
-
path: string;
|
|
25
|
-
sha256: string;
|
|
26
|
-
bytes: number;
|
|
27
|
-
}[];
|
|
28
|
-
createdAt: string;
|
|
29
|
-
format: "openclaw-engram-export";
|
|
30
|
-
pluginVersion: string;
|
|
31
|
-
includesTranscripts: boolean;
|
|
32
|
-
}, {
|
|
33
|
-
schemaVersion: 1;
|
|
34
|
-
files: {
|
|
35
|
-
path: string;
|
|
36
|
-
sha256: string;
|
|
37
|
-
bytes: number;
|
|
38
|
-
}[];
|
|
39
|
-
createdAt: string;
|
|
40
|
-
format: "openclaw-engram-export";
|
|
41
|
-
pluginVersion: string;
|
|
42
|
-
includesTranscripts: boolean;
|
|
43
|
-
}>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
44
14
|
export type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
|
|
45
15
|
export declare const ExportMemoryRecordV1Schema: z.ZodObject<{
|
|
46
16
|
path: z.ZodString;
|
|
47
17
|
content: z.ZodString;
|
|
48
|
-
},
|
|
49
|
-
content: string;
|
|
50
|
-
path: string;
|
|
51
|
-
}, {
|
|
52
|
-
content: string;
|
|
53
|
-
path: string;
|
|
54
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
55
19
|
export type ExportMemoryRecordV1 = z.infer<typeof ExportMemoryRecordV1Schema>;
|
|
56
20
|
export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
57
21
|
manifest: z.ZodObject<{
|
|
@@ -64,83 +28,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
64
28
|
path: z.ZodString;
|
|
65
29
|
sha256: z.ZodString;
|
|
66
30
|
bytes: z.ZodNumber;
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
sha256: string;
|
|
70
|
-
bytes: number;
|
|
71
|
-
}, {
|
|
72
|
-
path: string;
|
|
73
|
-
sha256: string;
|
|
74
|
-
bytes: number;
|
|
75
|
-
}>, "many">;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
schemaVersion: 1;
|
|
78
|
-
files: {
|
|
79
|
-
path: string;
|
|
80
|
-
sha256: string;
|
|
81
|
-
bytes: number;
|
|
82
|
-
}[];
|
|
83
|
-
createdAt: string;
|
|
84
|
-
format: "openclaw-engram-export";
|
|
85
|
-
pluginVersion: string;
|
|
86
|
-
includesTranscripts: boolean;
|
|
87
|
-
}, {
|
|
88
|
-
schemaVersion: 1;
|
|
89
|
-
files: {
|
|
90
|
-
path: string;
|
|
91
|
-
sha256: string;
|
|
92
|
-
bytes: number;
|
|
93
|
-
}[];
|
|
94
|
-
createdAt: string;
|
|
95
|
-
format: "openclaw-engram-export";
|
|
96
|
-
pluginVersion: string;
|
|
97
|
-
includesTranscripts: boolean;
|
|
98
|
-
}>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
99
33
|
records: z.ZodArray<z.ZodObject<{
|
|
100
34
|
path: z.ZodString;
|
|
101
35
|
content: z.ZodString;
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
path: string;
|
|
105
|
-
}, {
|
|
106
|
-
content: string;
|
|
107
|
-
path: string;
|
|
108
|
-
}>, "many">;
|
|
109
|
-
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
records: {
|
|
111
|
-
content: string;
|
|
112
|
-
path: string;
|
|
113
|
-
}[];
|
|
114
|
-
manifest: {
|
|
115
|
-
schemaVersion: 1;
|
|
116
|
-
files: {
|
|
117
|
-
path: string;
|
|
118
|
-
sha256: string;
|
|
119
|
-
bytes: number;
|
|
120
|
-
}[];
|
|
121
|
-
createdAt: string;
|
|
122
|
-
format: "openclaw-engram-export";
|
|
123
|
-
pluginVersion: string;
|
|
124
|
-
includesTranscripts: boolean;
|
|
125
|
-
};
|
|
126
|
-
}, {
|
|
127
|
-
records: {
|
|
128
|
-
content: string;
|
|
129
|
-
path: string;
|
|
130
|
-
}[];
|
|
131
|
-
manifest: {
|
|
132
|
-
schemaVersion: 1;
|
|
133
|
-
files: {
|
|
134
|
-
path: string;
|
|
135
|
-
sha256: string;
|
|
136
|
-
bytes: number;
|
|
137
|
-
}[];
|
|
138
|
-
createdAt: string;
|
|
139
|
-
format: "openclaw-engram-export";
|
|
140
|
-
pluginVersion: string;
|
|
141
|
-
includesTranscripts: boolean;
|
|
142
|
-
};
|
|
143
|
-
}>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
144
38
|
export type ExportBundleV1 = z.infer<typeof ExportBundleV1Schema>;
|
|
145
39
|
/**
|
|
146
40
|
* Allowed pattern for a user-chosen capsule id.
|
|
@@ -155,43 +49,16 @@ export type ExportBundleV1 = z.infer<typeof ExportBundleV1Schema>;
|
|
|
155
49
|
*/
|
|
156
50
|
export declare const CAPSULE_ID_PATTERN: RegExp;
|
|
157
51
|
export declare const CapsuleRetrievalPolicySchema: z.ZodObject<{
|
|
158
|
-
/**
|
|
159
|
-
* Per-tier weight overrides applied during recall when the capsule is the
|
|
160
|
-
* active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
|
|
161
|
-
* are non-negative finite multipliers. The set of valid keys is left open
|
|
162
|
-
* for now so future tiers do not break older manifests.
|
|
163
|
-
*/
|
|
164
52
|
tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
165
|
-
/**
|
|
166
|
-
* Whether the direct-answer fast path is allowed when this capsule is
|
|
167
|
-
* active. Operators may disable it for capsules whose contents should
|
|
168
|
-
* always flow through the full retrieval pipeline.
|
|
169
|
-
*/
|
|
170
53
|
directAnswerEnabled: z.ZodBoolean;
|
|
171
|
-
},
|
|
172
|
-
tierWeights: Record<string, number>;
|
|
173
|
-
directAnswerEnabled: boolean;
|
|
174
|
-
}, {
|
|
175
|
-
tierWeights: Record<string, number>;
|
|
176
|
-
directAnswerEnabled: boolean;
|
|
177
|
-
}>;
|
|
54
|
+
}, z.core.$strip>;
|
|
178
55
|
export type CapsuleRetrievalPolicy = z.infer<typeof CapsuleRetrievalPolicySchema>;
|
|
179
56
|
export declare const CapsuleIncludesSchema: z.ZodObject<{
|
|
180
57
|
taxonomy: z.ZodBoolean;
|
|
181
58
|
identityAnchors: z.ZodBoolean;
|
|
182
59
|
peerProfiles: z.ZodBoolean;
|
|
183
60
|
procedural: z.ZodBoolean;
|
|
184
|
-
},
|
|
185
|
-
procedural: boolean;
|
|
186
|
-
taxonomy: boolean;
|
|
187
|
-
identityAnchors: boolean;
|
|
188
|
-
peerProfiles: boolean;
|
|
189
|
-
}, {
|
|
190
|
-
procedural: boolean;
|
|
191
|
-
taxonomy: boolean;
|
|
192
|
-
identityAnchors: boolean;
|
|
193
|
-
peerProfiles: boolean;
|
|
194
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
195
62
|
export type CapsuleIncludes = z.infer<typeof CapsuleIncludesSchema>;
|
|
196
63
|
/**
|
|
197
64
|
* Structured linkage to the capsule that was forked to produce this one.
|
|
@@ -207,153 +74,31 @@ export type CapsuleIncludes = z.infer<typeof CapsuleIncludesSchema>;
|
|
|
207
74
|
export declare const CapsuleParentSchema: z.ZodObject<{
|
|
208
75
|
capsuleId: z.ZodString;
|
|
209
76
|
version: z.ZodString;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
* capsule's records were placed. Typically `forks/<parent-capsule-id>`.
|
|
213
|
-
* Must be a non-empty string with no leading slash.
|
|
214
|
-
*/
|
|
215
|
-
forkRoot: z.ZodEffects<z.ZodString, string, string>;
|
|
216
|
-
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
version: string;
|
|
218
|
-
capsuleId: string;
|
|
219
|
-
forkRoot: string;
|
|
220
|
-
}, {
|
|
221
|
-
version: string;
|
|
222
|
-
capsuleId: string;
|
|
223
|
-
forkRoot: string;
|
|
224
|
-
}>;
|
|
77
|
+
forkRoot: z.ZodString;
|
|
78
|
+
}, z.core.$strip>;
|
|
225
79
|
export type CapsuleParent = z.infer<typeof CapsuleParentSchema>;
|
|
226
80
|
export declare const CapsuleBlockSchema: z.ZodObject<{
|
|
227
81
|
id: z.ZodString;
|
|
228
82
|
version: z.ZodString;
|
|
229
|
-
/**
|
|
230
|
-
* Taxonomy schema version the capsule was authored against. Free-form for
|
|
231
|
-
* now; later PRs may tighten this to a known taxonomy registry.
|
|
232
|
-
*/
|
|
233
83
|
schemaVersion: z.ZodString;
|
|
234
|
-
/**
|
|
235
|
-
* Optional reference to the parent capsule this one was forked or derived
|
|
236
|
-
* from. `null` (not `undefined`) is the explicit "no parent" sentinel so
|
|
237
|
-
* that round-trips through JSON do not silently drop the field.
|
|
238
|
-
*
|
|
239
|
-
* @deprecated Prefer {@link parent} (structured). This field is preserved
|
|
240
|
-
* for backward compatibility with V2 manifests written before PR 4/6.
|
|
241
|
-
*/
|
|
242
84
|
parentCapsule: z.ZodNullable<z.ZodString>;
|
|
243
|
-
/**
|
|
244
|
-
* Structured fork-lineage pointer added in PR 4/6. When present, this
|
|
245
|
-
* capsule is a fork of the described parent. `null` is the explicit
|
|
246
|
-
* "not a fork" sentinel — round-trips through JSON cleanly without
|
|
247
|
-
* silently dropping the field.
|
|
248
|
-
*
|
|
249
|
-
* Defaults to `null` so that V2 manifests written before PR 4/6 (which
|
|
250
|
-
* omit this field) still parse without error. This preserves backward
|
|
251
|
-
* compatibility with the existing `makeV2Manifest()` test fixtures and
|
|
252
|
-
* any in-the-wild V2 archives produced by PR 2/6 and PR 3/6.
|
|
253
|
-
*
|
|
254
|
-
* Invariant: when `parent` is non-null, `parentCapsule` SHOULD equal
|
|
255
|
-
* `parent.capsuleId` for backward compatibility with readers that only
|
|
256
|
-
* understand the legacy field. `forkCapsule()` sets both.
|
|
257
|
-
*/
|
|
258
85
|
parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
259
86
|
capsuleId: z.ZodString;
|
|
260
87
|
version: z.ZodString;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* capsule's records were placed. Typically `forks/<parent-capsule-id>`.
|
|
264
|
-
* Must be a non-empty string with no leading slash.
|
|
265
|
-
*/
|
|
266
|
-
forkRoot: z.ZodEffects<z.ZodString, string, string>;
|
|
267
|
-
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
version: string;
|
|
269
|
-
capsuleId: string;
|
|
270
|
-
forkRoot: string;
|
|
271
|
-
}, {
|
|
272
|
-
version: string;
|
|
273
|
-
capsuleId: string;
|
|
274
|
-
forkRoot: string;
|
|
275
|
-
}>>>;
|
|
88
|
+
forkRoot: z.ZodString;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
276
90
|
description: z.ZodString;
|
|
277
91
|
retrievalPolicy: z.ZodObject<{
|
|
278
|
-
/**
|
|
279
|
-
* Per-tier weight overrides applied during recall when the capsule is the
|
|
280
|
-
* active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
|
|
281
|
-
* are non-negative finite multipliers. The set of valid keys is left open
|
|
282
|
-
* for now so future tiers do not break older manifests.
|
|
283
|
-
*/
|
|
284
92
|
tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
285
|
-
/**
|
|
286
|
-
* Whether the direct-answer fast path is allowed when this capsule is
|
|
287
|
-
* active. Operators may disable it for capsules whose contents should
|
|
288
|
-
* always flow through the full retrieval pipeline.
|
|
289
|
-
*/
|
|
290
93
|
directAnswerEnabled: z.ZodBoolean;
|
|
291
|
-
},
|
|
292
|
-
tierWeights: Record<string, number>;
|
|
293
|
-
directAnswerEnabled: boolean;
|
|
294
|
-
}, {
|
|
295
|
-
tierWeights: Record<string, number>;
|
|
296
|
-
directAnswerEnabled: boolean;
|
|
297
|
-
}>;
|
|
94
|
+
}, z.core.$strip>;
|
|
298
95
|
includes: z.ZodObject<{
|
|
299
96
|
taxonomy: z.ZodBoolean;
|
|
300
97
|
identityAnchors: z.ZodBoolean;
|
|
301
98
|
peerProfiles: z.ZodBoolean;
|
|
302
99
|
procedural: z.ZodBoolean;
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
taxonomy: boolean;
|
|
306
|
-
identityAnchors: boolean;
|
|
307
|
-
peerProfiles: boolean;
|
|
308
|
-
}, {
|
|
309
|
-
procedural: boolean;
|
|
310
|
-
taxonomy: boolean;
|
|
311
|
-
identityAnchors: boolean;
|
|
312
|
-
peerProfiles: boolean;
|
|
313
|
-
}>;
|
|
314
|
-
}, "strip", z.ZodTypeAny, {
|
|
315
|
-
includes: {
|
|
316
|
-
procedural: boolean;
|
|
317
|
-
taxonomy: boolean;
|
|
318
|
-
identityAnchors: boolean;
|
|
319
|
-
peerProfiles: boolean;
|
|
320
|
-
};
|
|
321
|
-
schemaVersion: string;
|
|
322
|
-
id: string;
|
|
323
|
-
description: string;
|
|
324
|
-
version: string;
|
|
325
|
-
parentCapsule: string | null;
|
|
326
|
-
parent: {
|
|
327
|
-
version: string;
|
|
328
|
-
capsuleId: string;
|
|
329
|
-
forkRoot: string;
|
|
330
|
-
} | null;
|
|
331
|
-
retrievalPolicy: {
|
|
332
|
-
tierWeights: Record<string, number>;
|
|
333
|
-
directAnswerEnabled: boolean;
|
|
334
|
-
};
|
|
335
|
-
}, {
|
|
336
|
-
includes: {
|
|
337
|
-
procedural: boolean;
|
|
338
|
-
taxonomy: boolean;
|
|
339
|
-
identityAnchors: boolean;
|
|
340
|
-
peerProfiles: boolean;
|
|
341
|
-
};
|
|
342
|
-
schemaVersion: string;
|
|
343
|
-
id: string;
|
|
344
|
-
description: string;
|
|
345
|
-
version: string;
|
|
346
|
-
parentCapsule: string | null;
|
|
347
|
-
retrievalPolicy: {
|
|
348
|
-
tierWeights: Record<string, number>;
|
|
349
|
-
directAnswerEnabled: boolean;
|
|
350
|
-
};
|
|
351
|
-
parent?: {
|
|
352
|
-
version: string;
|
|
353
|
-
capsuleId: string;
|
|
354
|
-
forkRoot: string;
|
|
355
|
-
} | null | undefined;
|
|
356
|
-
}>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>;
|
|
357
102
|
export type CapsuleBlock = z.infer<typeof CapsuleBlockSchema>;
|
|
358
103
|
export declare const ExportManifestV2Schema: z.ZodObject<{
|
|
359
104
|
format: z.ZodLiteral<"openclaw-engram-export">;
|
|
@@ -365,213 +110,30 @@ export declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
365
110
|
path: z.ZodString;
|
|
366
111
|
sha256: z.ZodString;
|
|
367
112
|
bytes: z.ZodNumber;
|
|
368
|
-
},
|
|
369
|
-
path: string;
|
|
370
|
-
sha256: string;
|
|
371
|
-
bytes: number;
|
|
372
|
-
}, {
|
|
373
|
-
path: string;
|
|
374
|
-
sha256: string;
|
|
375
|
-
bytes: number;
|
|
376
|
-
}>, "many">;
|
|
113
|
+
}, z.core.$strip>>;
|
|
377
114
|
capsule: z.ZodObject<{
|
|
378
115
|
id: z.ZodString;
|
|
379
116
|
version: z.ZodString;
|
|
380
|
-
/**
|
|
381
|
-
* Taxonomy schema version the capsule was authored against. Free-form for
|
|
382
|
-
* now; later PRs may tighten this to a known taxonomy registry.
|
|
383
|
-
*/
|
|
384
117
|
schemaVersion: z.ZodString;
|
|
385
|
-
/**
|
|
386
|
-
* Optional reference to the parent capsule this one was forked or derived
|
|
387
|
-
* from. `null` (not `undefined`) is the explicit "no parent" sentinel so
|
|
388
|
-
* that round-trips through JSON do not silently drop the field.
|
|
389
|
-
*
|
|
390
|
-
* @deprecated Prefer {@link parent} (structured). This field is preserved
|
|
391
|
-
* for backward compatibility with V2 manifests written before PR 4/6.
|
|
392
|
-
*/
|
|
393
118
|
parentCapsule: z.ZodNullable<z.ZodString>;
|
|
394
|
-
/**
|
|
395
|
-
* Structured fork-lineage pointer added in PR 4/6. When present, this
|
|
396
|
-
* capsule is a fork of the described parent. `null` is the explicit
|
|
397
|
-
* "not a fork" sentinel — round-trips through JSON cleanly without
|
|
398
|
-
* silently dropping the field.
|
|
399
|
-
*
|
|
400
|
-
* Defaults to `null` so that V2 manifests written before PR 4/6 (which
|
|
401
|
-
* omit this field) still parse without error. This preserves backward
|
|
402
|
-
* compatibility with the existing `makeV2Manifest()` test fixtures and
|
|
403
|
-
* any in-the-wild V2 archives produced by PR 2/6 and PR 3/6.
|
|
404
|
-
*
|
|
405
|
-
* Invariant: when `parent` is non-null, `parentCapsule` SHOULD equal
|
|
406
|
-
* `parent.capsuleId` for backward compatibility with readers that only
|
|
407
|
-
* understand the legacy field. `forkCapsule()` sets both.
|
|
408
|
-
*/
|
|
409
119
|
parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
410
120
|
capsuleId: z.ZodString;
|
|
411
121
|
version: z.ZodString;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
* capsule's records were placed. Typically `forks/<parent-capsule-id>`.
|
|
415
|
-
* Must be a non-empty string with no leading slash.
|
|
416
|
-
*/
|
|
417
|
-
forkRoot: z.ZodEffects<z.ZodString, string, string>;
|
|
418
|
-
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
version: string;
|
|
420
|
-
capsuleId: string;
|
|
421
|
-
forkRoot: string;
|
|
422
|
-
}, {
|
|
423
|
-
version: string;
|
|
424
|
-
capsuleId: string;
|
|
425
|
-
forkRoot: string;
|
|
426
|
-
}>>>;
|
|
122
|
+
forkRoot: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>>;
|
|
427
124
|
description: z.ZodString;
|
|
428
125
|
retrievalPolicy: z.ZodObject<{
|
|
429
|
-
/**
|
|
430
|
-
* Per-tier weight overrides applied during recall when the capsule is the
|
|
431
|
-
* active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
|
|
432
|
-
* are non-negative finite multipliers. The set of valid keys is left open
|
|
433
|
-
* for now so future tiers do not break older manifests.
|
|
434
|
-
*/
|
|
435
126
|
tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
436
|
-
/**
|
|
437
|
-
* Whether the direct-answer fast path is allowed when this capsule is
|
|
438
|
-
* active. Operators may disable it for capsules whose contents should
|
|
439
|
-
* always flow through the full retrieval pipeline.
|
|
440
|
-
*/
|
|
441
127
|
directAnswerEnabled: z.ZodBoolean;
|
|
442
|
-
},
|
|
443
|
-
tierWeights: Record<string, number>;
|
|
444
|
-
directAnswerEnabled: boolean;
|
|
445
|
-
}, {
|
|
446
|
-
tierWeights: Record<string, number>;
|
|
447
|
-
directAnswerEnabled: boolean;
|
|
448
|
-
}>;
|
|
128
|
+
}, z.core.$strip>;
|
|
449
129
|
includes: z.ZodObject<{
|
|
450
130
|
taxonomy: z.ZodBoolean;
|
|
451
131
|
identityAnchors: z.ZodBoolean;
|
|
452
132
|
peerProfiles: z.ZodBoolean;
|
|
453
133
|
procedural: z.ZodBoolean;
|
|
454
|
-
},
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
identityAnchors: boolean;
|
|
458
|
-
peerProfiles: boolean;
|
|
459
|
-
}, {
|
|
460
|
-
procedural: boolean;
|
|
461
|
-
taxonomy: boolean;
|
|
462
|
-
identityAnchors: boolean;
|
|
463
|
-
peerProfiles: boolean;
|
|
464
|
-
}>;
|
|
465
|
-
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
includes: {
|
|
467
|
-
procedural: boolean;
|
|
468
|
-
taxonomy: boolean;
|
|
469
|
-
identityAnchors: boolean;
|
|
470
|
-
peerProfiles: boolean;
|
|
471
|
-
};
|
|
472
|
-
schemaVersion: string;
|
|
473
|
-
id: string;
|
|
474
|
-
description: string;
|
|
475
|
-
version: string;
|
|
476
|
-
parentCapsule: string | null;
|
|
477
|
-
parent: {
|
|
478
|
-
version: string;
|
|
479
|
-
capsuleId: string;
|
|
480
|
-
forkRoot: string;
|
|
481
|
-
} | null;
|
|
482
|
-
retrievalPolicy: {
|
|
483
|
-
tierWeights: Record<string, number>;
|
|
484
|
-
directAnswerEnabled: boolean;
|
|
485
|
-
};
|
|
486
|
-
}, {
|
|
487
|
-
includes: {
|
|
488
|
-
procedural: boolean;
|
|
489
|
-
taxonomy: boolean;
|
|
490
|
-
identityAnchors: boolean;
|
|
491
|
-
peerProfiles: boolean;
|
|
492
|
-
};
|
|
493
|
-
schemaVersion: string;
|
|
494
|
-
id: string;
|
|
495
|
-
description: string;
|
|
496
|
-
version: string;
|
|
497
|
-
parentCapsule: string | null;
|
|
498
|
-
retrievalPolicy: {
|
|
499
|
-
tierWeights: Record<string, number>;
|
|
500
|
-
directAnswerEnabled: boolean;
|
|
501
|
-
};
|
|
502
|
-
parent?: {
|
|
503
|
-
version: string;
|
|
504
|
-
capsuleId: string;
|
|
505
|
-
forkRoot: string;
|
|
506
|
-
} | null | undefined;
|
|
507
|
-
}>;
|
|
508
|
-
}, "strip", z.ZodTypeAny, {
|
|
509
|
-
schemaVersion: 2;
|
|
510
|
-
files: {
|
|
511
|
-
path: string;
|
|
512
|
-
sha256: string;
|
|
513
|
-
bytes: number;
|
|
514
|
-
}[];
|
|
515
|
-
createdAt: string;
|
|
516
|
-
format: "openclaw-engram-export";
|
|
517
|
-
pluginVersion: string;
|
|
518
|
-
includesTranscripts: boolean;
|
|
519
|
-
capsule: {
|
|
520
|
-
includes: {
|
|
521
|
-
procedural: boolean;
|
|
522
|
-
taxonomy: boolean;
|
|
523
|
-
identityAnchors: boolean;
|
|
524
|
-
peerProfiles: boolean;
|
|
525
|
-
};
|
|
526
|
-
schemaVersion: string;
|
|
527
|
-
id: string;
|
|
528
|
-
description: string;
|
|
529
|
-
version: string;
|
|
530
|
-
parentCapsule: string | null;
|
|
531
|
-
parent: {
|
|
532
|
-
version: string;
|
|
533
|
-
capsuleId: string;
|
|
534
|
-
forkRoot: string;
|
|
535
|
-
} | null;
|
|
536
|
-
retrievalPolicy: {
|
|
537
|
-
tierWeights: Record<string, number>;
|
|
538
|
-
directAnswerEnabled: boolean;
|
|
539
|
-
};
|
|
540
|
-
};
|
|
541
|
-
}, {
|
|
542
|
-
schemaVersion: 2;
|
|
543
|
-
files: {
|
|
544
|
-
path: string;
|
|
545
|
-
sha256: string;
|
|
546
|
-
bytes: number;
|
|
547
|
-
}[];
|
|
548
|
-
createdAt: string;
|
|
549
|
-
format: "openclaw-engram-export";
|
|
550
|
-
pluginVersion: string;
|
|
551
|
-
includesTranscripts: boolean;
|
|
552
|
-
capsule: {
|
|
553
|
-
includes: {
|
|
554
|
-
procedural: boolean;
|
|
555
|
-
taxonomy: boolean;
|
|
556
|
-
identityAnchors: boolean;
|
|
557
|
-
peerProfiles: boolean;
|
|
558
|
-
};
|
|
559
|
-
schemaVersion: string;
|
|
560
|
-
id: string;
|
|
561
|
-
description: string;
|
|
562
|
-
version: string;
|
|
563
|
-
parentCapsule: string | null;
|
|
564
|
-
retrievalPolicy: {
|
|
565
|
-
tierWeights: Record<string, number>;
|
|
566
|
-
directAnswerEnabled: boolean;
|
|
567
|
-
};
|
|
568
|
-
parent?: {
|
|
569
|
-
version: string;
|
|
570
|
-
capsuleId: string;
|
|
571
|
-
forkRoot: string;
|
|
572
|
-
} | null | undefined;
|
|
573
|
-
};
|
|
574
|
-
}>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}, z.core.$strip>;
|
|
575
137
|
export type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
|
|
576
138
|
export declare const ExportBundleV2Schema: z.ZodObject<{
|
|
577
139
|
manifest: z.ZodObject<{
|
|
@@ -584,302 +146,35 @@ export declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
584
146
|
path: z.ZodString;
|
|
585
147
|
sha256: z.ZodString;
|
|
586
148
|
bytes: z.ZodNumber;
|
|
587
|
-
},
|
|
588
|
-
path: string;
|
|
589
|
-
sha256: string;
|
|
590
|
-
bytes: number;
|
|
591
|
-
}, {
|
|
592
|
-
path: string;
|
|
593
|
-
sha256: string;
|
|
594
|
-
bytes: number;
|
|
595
|
-
}>, "many">;
|
|
149
|
+
}, z.core.$strip>>;
|
|
596
150
|
capsule: z.ZodObject<{
|
|
597
151
|
id: z.ZodString;
|
|
598
152
|
version: z.ZodString;
|
|
599
|
-
/**
|
|
600
|
-
* Taxonomy schema version the capsule was authored against. Free-form for
|
|
601
|
-
* now; later PRs may tighten this to a known taxonomy registry.
|
|
602
|
-
*/
|
|
603
153
|
schemaVersion: z.ZodString;
|
|
604
|
-
/**
|
|
605
|
-
* Optional reference to the parent capsule this one was forked or derived
|
|
606
|
-
* from. `null` (not `undefined`) is the explicit "no parent" sentinel so
|
|
607
|
-
* that round-trips through JSON do not silently drop the field.
|
|
608
|
-
*
|
|
609
|
-
* @deprecated Prefer {@link parent} (structured). This field is preserved
|
|
610
|
-
* for backward compatibility with V2 manifests written before PR 4/6.
|
|
611
|
-
*/
|
|
612
154
|
parentCapsule: z.ZodNullable<z.ZodString>;
|
|
613
|
-
/**
|
|
614
|
-
* Structured fork-lineage pointer added in PR 4/6. When present, this
|
|
615
|
-
* capsule is a fork of the described parent. `null` is the explicit
|
|
616
|
-
* "not a fork" sentinel — round-trips through JSON cleanly without
|
|
617
|
-
* silently dropping the field.
|
|
618
|
-
*
|
|
619
|
-
* Defaults to `null` so that V2 manifests written before PR 4/6 (which
|
|
620
|
-
* omit this field) still parse without error. This preserves backward
|
|
621
|
-
* compatibility with the existing `makeV2Manifest()` test fixtures and
|
|
622
|
-
* any in-the-wild V2 archives produced by PR 2/6 and PR 3/6.
|
|
623
|
-
*
|
|
624
|
-
* Invariant: when `parent` is non-null, `parentCapsule` SHOULD equal
|
|
625
|
-
* `parent.capsuleId` for backward compatibility with readers that only
|
|
626
|
-
* understand the legacy field. `forkCapsule()` sets both.
|
|
627
|
-
*/
|
|
628
155
|
parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
629
156
|
capsuleId: z.ZodString;
|
|
630
157
|
version: z.ZodString;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
* capsule's records were placed. Typically `forks/<parent-capsule-id>`.
|
|
634
|
-
* Must be a non-empty string with no leading slash.
|
|
635
|
-
*/
|
|
636
|
-
forkRoot: z.ZodEffects<z.ZodString, string, string>;
|
|
637
|
-
}, "strip", z.ZodTypeAny, {
|
|
638
|
-
version: string;
|
|
639
|
-
capsuleId: string;
|
|
640
|
-
forkRoot: string;
|
|
641
|
-
}, {
|
|
642
|
-
version: string;
|
|
643
|
-
capsuleId: string;
|
|
644
|
-
forkRoot: string;
|
|
645
|
-
}>>>;
|
|
158
|
+
forkRoot: z.ZodString;
|
|
159
|
+
}, z.core.$strip>>>;
|
|
646
160
|
description: z.ZodString;
|
|
647
161
|
retrievalPolicy: z.ZodObject<{
|
|
648
|
-
/**
|
|
649
|
-
* Per-tier weight overrides applied during recall when the capsule is the
|
|
650
|
-
* active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
|
|
651
|
-
* are non-negative finite multipliers. The set of valid keys is left open
|
|
652
|
-
* for now so future tiers do not break older manifests.
|
|
653
|
-
*/
|
|
654
162
|
tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
655
|
-
/**
|
|
656
|
-
* Whether the direct-answer fast path is allowed when this capsule is
|
|
657
|
-
* active. Operators may disable it for capsules whose contents should
|
|
658
|
-
* always flow through the full retrieval pipeline.
|
|
659
|
-
*/
|
|
660
163
|
directAnswerEnabled: z.ZodBoolean;
|
|
661
|
-
},
|
|
662
|
-
tierWeights: Record<string, number>;
|
|
663
|
-
directAnswerEnabled: boolean;
|
|
664
|
-
}, {
|
|
665
|
-
tierWeights: Record<string, number>;
|
|
666
|
-
directAnswerEnabled: boolean;
|
|
667
|
-
}>;
|
|
164
|
+
}, z.core.$strip>;
|
|
668
165
|
includes: z.ZodObject<{
|
|
669
166
|
taxonomy: z.ZodBoolean;
|
|
670
167
|
identityAnchors: z.ZodBoolean;
|
|
671
168
|
peerProfiles: z.ZodBoolean;
|
|
672
169
|
procedural: z.ZodBoolean;
|
|
673
|
-
},
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
identityAnchors: boolean;
|
|
677
|
-
peerProfiles: boolean;
|
|
678
|
-
}, {
|
|
679
|
-
procedural: boolean;
|
|
680
|
-
taxonomy: boolean;
|
|
681
|
-
identityAnchors: boolean;
|
|
682
|
-
peerProfiles: boolean;
|
|
683
|
-
}>;
|
|
684
|
-
}, "strip", z.ZodTypeAny, {
|
|
685
|
-
includes: {
|
|
686
|
-
procedural: boolean;
|
|
687
|
-
taxonomy: boolean;
|
|
688
|
-
identityAnchors: boolean;
|
|
689
|
-
peerProfiles: boolean;
|
|
690
|
-
};
|
|
691
|
-
schemaVersion: string;
|
|
692
|
-
id: string;
|
|
693
|
-
description: string;
|
|
694
|
-
version: string;
|
|
695
|
-
parentCapsule: string | null;
|
|
696
|
-
parent: {
|
|
697
|
-
version: string;
|
|
698
|
-
capsuleId: string;
|
|
699
|
-
forkRoot: string;
|
|
700
|
-
} | null;
|
|
701
|
-
retrievalPolicy: {
|
|
702
|
-
tierWeights: Record<string, number>;
|
|
703
|
-
directAnswerEnabled: boolean;
|
|
704
|
-
};
|
|
705
|
-
}, {
|
|
706
|
-
includes: {
|
|
707
|
-
procedural: boolean;
|
|
708
|
-
taxonomy: boolean;
|
|
709
|
-
identityAnchors: boolean;
|
|
710
|
-
peerProfiles: boolean;
|
|
711
|
-
};
|
|
712
|
-
schemaVersion: string;
|
|
713
|
-
id: string;
|
|
714
|
-
description: string;
|
|
715
|
-
version: string;
|
|
716
|
-
parentCapsule: string | null;
|
|
717
|
-
retrievalPolicy: {
|
|
718
|
-
tierWeights: Record<string, number>;
|
|
719
|
-
directAnswerEnabled: boolean;
|
|
720
|
-
};
|
|
721
|
-
parent?: {
|
|
722
|
-
version: string;
|
|
723
|
-
capsuleId: string;
|
|
724
|
-
forkRoot: string;
|
|
725
|
-
} | null | undefined;
|
|
726
|
-
}>;
|
|
727
|
-
}, "strip", z.ZodTypeAny, {
|
|
728
|
-
schemaVersion: 2;
|
|
729
|
-
files: {
|
|
730
|
-
path: string;
|
|
731
|
-
sha256: string;
|
|
732
|
-
bytes: number;
|
|
733
|
-
}[];
|
|
734
|
-
createdAt: string;
|
|
735
|
-
format: "openclaw-engram-export";
|
|
736
|
-
pluginVersion: string;
|
|
737
|
-
includesTranscripts: boolean;
|
|
738
|
-
capsule: {
|
|
739
|
-
includes: {
|
|
740
|
-
procedural: boolean;
|
|
741
|
-
taxonomy: boolean;
|
|
742
|
-
identityAnchors: boolean;
|
|
743
|
-
peerProfiles: boolean;
|
|
744
|
-
};
|
|
745
|
-
schemaVersion: string;
|
|
746
|
-
id: string;
|
|
747
|
-
description: string;
|
|
748
|
-
version: string;
|
|
749
|
-
parentCapsule: string | null;
|
|
750
|
-
parent: {
|
|
751
|
-
version: string;
|
|
752
|
-
capsuleId: string;
|
|
753
|
-
forkRoot: string;
|
|
754
|
-
} | null;
|
|
755
|
-
retrievalPolicy: {
|
|
756
|
-
tierWeights: Record<string, number>;
|
|
757
|
-
directAnswerEnabled: boolean;
|
|
758
|
-
};
|
|
759
|
-
};
|
|
760
|
-
}, {
|
|
761
|
-
schemaVersion: 2;
|
|
762
|
-
files: {
|
|
763
|
-
path: string;
|
|
764
|
-
sha256: string;
|
|
765
|
-
bytes: number;
|
|
766
|
-
}[];
|
|
767
|
-
createdAt: string;
|
|
768
|
-
format: "openclaw-engram-export";
|
|
769
|
-
pluginVersion: string;
|
|
770
|
-
includesTranscripts: boolean;
|
|
771
|
-
capsule: {
|
|
772
|
-
includes: {
|
|
773
|
-
procedural: boolean;
|
|
774
|
-
taxonomy: boolean;
|
|
775
|
-
identityAnchors: boolean;
|
|
776
|
-
peerProfiles: boolean;
|
|
777
|
-
};
|
|
778
|
-
schemaVersion: string;
|
|
779
|
-
id: string;
|
|
780
|
-
description: string;
|
|
781
|
-
version: string;
|
|
782
|
-
parentCapsule: string | null;
|
|
783
|
-
retrievalPolicy: {
|
|
784
|
-
tierWeights: Record<string, number>;
|
|
785
|
-
directAnswerEnabled: boolean;
|
|
786
|
-
};
|
|
787
|
-
parent?: {
|
|
788
|
-
version: string;
|
|
789
|
-
capsuleId: string;
|
|
790
|
-
forkRoot: string;
|
|
791
|
-
} | null | undefined;
|
|
792
|
-
};
|
|
793
|
-
}>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>;
|
|
794
173
|
records: z.ZodArray<z.ZodObject<{
|
|
795
174
|
path: z.ZodString;
|
|
796
175
|
content: z.ZodString;
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
path: string;
|
|
800
|
-
}, {
|
|
801
|
-
content: string;
|
|
802
|
-
path: string;
|
|
803
|
-
}>, "many">;
|
|
804
|
-
}, "strip", z.ZodTypeAny, {
|
|
805
|
-
records: {
|
|
806
|
-
content: string;
|
|
807
|
-
path: string;
|
|
808
|
-
}[];
|
|
809
|
-
manifest: {
|
|
810
|
-
schemaVersion: 2;
|
|
811
|
-
files: {
|
|
812
|
-
path: string;
|
|
813
|
-
sha256: string;
|
|
814
|
-
bytes: number;
|
|
815
|
-
}[];
|
|
816
|
-
createdAt: string;
|
|
817
|
-
format: "openclaw-engram-export";
|
|
818
|
-
pluginVersion: string;
|
|
819
|
-
includesTranscripts: boolean;
|
|
820
|
-
capsule: {
|
|
821
|
-
includes: {
|
|
822
|
-
procedural: boolean;
|
|
823
|
-
taxonomy: boolean;
|
|
824
|
-
identityAnchors: boolean;
|
|
825
|
-
peerProfiles: boolean;
|
|
826
|
-
};
|
|
827
|
-
schemaVersion: string;
|
|
828
|
-
id: string;
|
|
829
|
-
description: string;
|
|
830
|
-
version: string;
|
|
831
|
-
parentCapsule: string | null;
|
|
832
|
-
parent: {
|
|
833
|
-
version: string;
|
|
834
|
-
capsuleId: string;
|
|
835
|
-
forkRoot: string;
|
|
836
|
-
} | null;
|
|
837
|
-
retrievalPolicy: {
|
|
838
|
-
tierWeights: Record<string, number>;
|
|
839
|
-
directAnswerEnabled: boolean;
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
}, {
|
|
844
|
-
records: {
|
|
845
|
-
content: string;
|
|
846
|
-
path: string;
|
|
847
|
-
}[];
|
|
848
|
-
manifest: {
|
|
849
|
-
schemaVersion: 2;
|
|
850
|
-
files: {
|
|
851
|
-
path: string;
|
|
852
|
-
sha256: string;
|
|
853
|
-
bytes: number;
|
|
854
|
-
}[];
|
|
855
|
-
createdAt: string;
|
|
856
|
-
format: "openclaw-engram-export";
|
|
857
|
-
pluginVersion: string;
|
|
858
|
-
includesTranscripts: boolean;
|
|
859
|
-
capsule: {
|
|
860
|
-
includes: {
|
|
861
|
-
procedural: boolean;
|
|
862
|
-
taxonomy: boolean;
|
|
863
|
-
identityAnchors: boolean;
|
|
864
|
-
peerProfiles: boolean;
|
|
865
|
-
};
|
|
866
|
-
schemaVersion: string;
|
|
867
|
-
id: string;
|
|
868
|
-
description: string;
|
|
869
|
-
version: string;
|
|
870
|
-
parentCapsule: string | null;
|
|
871
|
-
retrievalPolicy: {
|
|
872
|
-
tierWeights: Record<string, number>;
|
|
873
|
-
directAnswerEnabled: boolean;
|
|
874
|
-
};
|
|
875
|
-
parent?: {
|
|
876
|
-
version: string;
|
|
877
|
-
capsuleId: string;
|
|
878
|
-
forkRoot: string;
|
|
879
|
-
} | null | undefined;
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
}>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
883
178
|
export type ExportBundleV2 = z.infer<typeof ExportBundleV2Schema>;
|
|
884
179
|
export type AnyExportManifest = ExportManifestV1 | ExportManifestV2;
|
|
885
180
|
export type AnyExportBundle = ExportBundleV1 | ExportBundleV2;
|