@psiclawops/hypermem 0.8.5 → 0.9.1
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/ARCHITECTURE.md +2 -2
- package/CHANGELOG.md +36 -1
- package/INSTALL.md +132 -9
- package/README.md +119 -272
- package/bench/README.md +42 -0
- package/bench/data-access-bench.mjs +380 -0
- package/bin/hypermem-bench.mjs +2 -0
- package/bin/hypermem-doctor.mjs +412 -0
- package/bin/hypermem-model-audit.mjs +339 -0
- package/bin/hypermem-status.mjs +491 -70
- package/docs/DIAGNOSTICS.md +205 -0
- package/docs/INTEGRATION_VALIDATION.md +186 -0
- package/docs/MIGRATION.md +9 -6
- package/docs/MIGRATION_GUIDE.md +125 -101
- package/docs/ROADMAP.md +247 -20
- package/docs/TUNING.md +19 -5
- package/install.sh +152 -401
- package/memory-plugin/LICENSE +190 -0
- package/memory-plugin/README.md +20 -0
- package/memory-plugin/package.json +3 -3
- package/package.json +19 -4
- package/plugin/LICENSE +190 -0
- package/plugin/README.md +20 -0
- package/plugin/package.json +4 -4
- package/scripts/install-runtime.mjs +12 -1
- package/dist/background-indexer.d.ts +0 -161
- package/dist/background-indexer.d.ts.map +0 -1
- package/dist/background-indexer.js +0 -1263
- package/dist/budget-policy.d.ts +0 -22
- package/dist/budget-policy.d.ts.map +0 -1
- package/dist/budget-policy.js +0 -27
- package/dist/cache.d.ts +0 -147
- package/dist/cache.d.ts.map +0 -1
- package/dist/cache.js +0 -569
- package/dist/compaction-fence.d.ts +0 -97
- package/dist/compaction-fence.d.ts.map +0 -1
- package/dist/compaction-fence.js +0 -174
- package/dist/compositor-utils.d.ts +0 -31
- package/dist/compositor-utils.d.ts.map +0 -1
- package/dist/compositor-utils.js +0 -47
- package/dist/compositor.d.ts +0 -394
- package/dist/compositor.d.ts.map +0 -1
- package/dist/compositor.js +0 -3632
- package/dist/content-hash.d.ts +0 -43
- package/dist/content-hash.d.ts.map +0 -1
- package/dist/content-hash.js +0 -75
- package/dist/content-type-classifier.d.ts +0 -41
- package/dist/content-type-classifier.d.ts.map +0 -1
- package/dist/content-type-classifier.js +0 -181
- package/dist/context-backfill.d.ts +0 -46
- package/dist/context-backfill.d.ts.map +0 -1
- package/dist/context-backfill.js +0 -113
- package/dist/context-store.d.ts +0 -131
- package/dist/context-store.d.ts.map +0 -1
- package/dist/context-store.js +0 -279
- package/dist/contradiction-audit-store.d.ts +0 -54
- package/dist/contradiction-audit-store.d.ts.map +0 -1
- package/dist/contradiction-audit-store.js +0 -88
- package/dist/contradiction-detector.d.ts +0 -78
- package/dist/contradiction-detector.d.ts.map +0 -1
- package/dist/contradiction-detector.js +0 -362
- package/dist/contradiction-resolution-policy.d.ts +0 -21
- package/dist/contradiction-resolution-policy.d.ts.map +0 -1
- package/dist/contradiction-resolution-policy.js +0 -17
- package/dist/cross-agent.d.ts +0 -74
- package/dist/cross-agent.d.ts.map +0 -1
- package/dist/cross-agent.js +0 -271
- package/dist/db.d.ts +0 -131
- package/dist/db.d.ts.map +0 -1
- package/dist/db.js +0 -410
- package/dist/degradation.d.ts +0 -102
- package/dist/degradation.d.ts.map +0 -1
- package/dist/degradation.js +0 -141
- package/dist/desired-state-store.d.ts +0 -100
- package/dist/desired-state-store.d.ts.map +0 -1
- package/dist/desired-state-store.js +0 -222
- package/dist/doc-chunk-store.d.ts +0 -140
- package/dist/doc-chunk-store.d.ts.map +0 -1
- package/dist/doc-chunk-store.js +0 -391
- package/dist/doc-chunker.d.ts +0 -99
- package/dist/doc-chunker.d.ts.map +0 -1
- package/dist/doc-chunker.js +0 -324
- package/dist/dreaming-promoter.d.ts +0 -124
- package/dist/dreaming-promoter.d.ts.map +0 -1
- package/dist/dreaming-promoter.js +0 -447
- package/dist/episode-store.d.ts +0 -49
- package/dist/episode-store.d.ts.map +0 -1
- package/dist/episode-store.js +0 -135
- package/dist/expertise-store.d.ts +0 -129
- package/dist/expertise-store.d.ts.map +0 -1
- package/dist/expertise-store.js +0 -342
- package/dist/fact-store.d.ts +0 -90
- package/dist/fact-store.d.ts.map +0 -1
- package/dist/fact-store.js +0 -283
- package/dist/fleet-store.d.ts +0 -144
- package/dist/fleet-store.d.ts.map +0 -1
- package/dist/fleet-store.js +0 -276
- package/dist/fos-mod.d.ts +0 -178
- package/dist/fos-mod.d.ts.map +0 -1
- package/dist/fos-mod.js +0 -416
- package/dist/hybrid-retrieval.d.ts +0 -64
- package/dist/hybrid-retrieval.d.ts.map +0 -1
- package/dist/hybrid-retrieval.js +0 -344
- package/dist/image-eviction.d.ts +0 -49
- package/dist/image-eviction.d.ts.map +0 -1
- package/dist/image-eviction.js +0 -251
- package/dist/index.d.ts +0 -718
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1469
- package/dist/keystone-scorer.d.ts +0 -51
- package/dist/keystone-scorer.d.ts.map +0 -1
- package/dist/keystone-scorer.js +0 -52
- package/dist/knowledge-graph.d.ts +0 -110
- package/dist/knowledge-graph.d.ts.map +0 -1
- package/dist/knowledge-graph.js +0 -305
- package/dist/knowledge-lint.d.ts +0 -31
- package/dist/knowledge-lint.d.ts.map +0 -1
- package/dist/knowledge-lint.js +0 -155
- package/dist/knowledge-store.d.ts +0 -72
- package/dist/knowledge-store.d.ts.map +0 -1
- package/dist/knowledge-store.js +0 -247
- package/dist/library-schema.d.ts +0 -27
- package/dist/library-schema.d.ts.map +0 -1
- package/dist/library-schema.js +0 -1343
- package/dist/message-store.d.ts +0 -181
- package/dist/message-store.d.ts.map +0 -1
- package/dist/message-store.js +0 -573
- package/dist/metrics-dashboard.d.ts +0 -114
- package/dist/metrics-dashboard.d.ts.map +0 -1
- package/dist/metrics-dashboard.js +0 -260
- package/dist/obsidian-exporter.d.ts +0 -57
- package/dist/obsidian-exporter.d.ts.map +0 -1
- package/dist/obsidian-exporter.js +0 -274
- package/dist/obsidian-watcher.d.ts +0 -147
- package/dist/obsidian-watcher.d.ts.map +0 -1
- package/dist/obsidian-watcher.js +0 -403
- package/dist/open-domain.d.ts +0 -46
- package/dist/open-domain.d.ts.map +0 -1
- package/dist/open-domain.js +0 -125
- package/dist/preference-store.d.ts +0 -54
- package/dist/preference-store.d.ts.map +0 -1
- package/dist/preference-store.js +0 -109
- package/dist/preservation-gate.d.ts +0 -82
- package/dist/preservation-gate.d.ts.map +0 -1
- package/dist/preservation-gate.js +0 -150
- package/dist/proactive-pass.d.ts +0 -63
- package/dist/proactive-pass.d.ts.map +0 -1
- package/dist/proactive-pass.js +0 -293
- package/dist/profiles.d.ts +0 -46
- package/dist/profiles.d.ts.map +0 -1
- package/dist/profiles.js +0 -262
- package/dist/provider-translator.d.ts +0 -50
- package/dist/provider-translator.d.ts.map +0 -1
- package/dist/provider-translator.js +0 -403
- package/dist/rate-limiter.d.ts +0 -76
- package/dist/rate-limiter.d.ts.map +0 -1
- package/dist/rate-limiter.js +0 -179
- package/dist/repair-tool-pairs.d.ts +0 -38
- package/dist/repair-tool-pairs.d.ts.map +0 -1
- package/dist/repair-tool-pairs.js +0 -209
- package/dist/replay-recovery.d.ts +0 -29
- package/dist/replay-recovery.d.ts.map +0 -1
- package/dist/replay-recovery.js +0 -82
- package/dist/reranker.d.ts +0 -95
- package/dist/reranker.d.ts.map +0 -1
- package/dist/reranker.js +0 -308
- package/dist/retrieval-policy.d.ts +0 -51
- package/dist/retrieval-policy.d.ts.map +0 -1
- package/dist/retrieval-policy.js +0 -77
- package/dist/schema.d.ts +0 -15
- package/dist/schema.d.ts.map +0 -1
- package/dist/schema.js +0 -300
- package/dist/secret-scanner.d.ts +0 -51
- package/dist/secret-scanner.d.ts.map +0 -1
- package/dist/secret-scanner.js +0 -248
- package/dist/seed.d.ts +0 -108
- package/dist/seed.d.ts.map +0 -1
- package/dist/seed.js +0 -177
- package/dist/session-flusher.d.ts +0 -53
- package/dist/session-flusher.d.ts.map +0 -1
- package/dist/session-flusher.js +0 -69
- package/dist/session-topic-map.d.ts +0 -41
- package/dist/session-topic-map.d.ts.map +0 -1
- package/dist/session-topic-map.js +0 -77
- package/dist/spawn-context.d.ts +0 -54
- package/dist/spawn-context.d.ts.map +0 -1
- package/dist/spawn-context.js +0 -159
- package/dist/system-store.d.ts +0 -73
- package/dist/system-store.d.ts.map +0 -1
- package/dist/system-store.js +0 -182
- package/dist/temporal-store.d.ts +0 -81
- package/dist/temporal-store.d.ts.map +0 -1
- package/dist/temporal-store.js +0 -149
- package/dist/tool-artifact-store.d.ts +0 -98
- package/dist/tool-artifact-store.d.ts.map +0 -1
- package/dist/tool-artifact-store.js +0 -244
- package/dist/topic-detector.d.ts +0 -35
- package/dist/topic-detector.d.ts.map +0 -1
- package/dist/topic-detector.js +0 -249
- package/dist/topic-store.d.ts +0 -51
- package/dist/topic-store.d.ts.map +0 -1
- package/dist/topic-store.js +0 -175
- package/dist/topic-synthesizer.d.ts +0 -51
- package/dist/topic-synthesizer.d.ts.map +0 -1
- package/dist/topic-synthesizer.js +0 -316
- package/dist/trigger-registry.d.ts +0 -63
- package/dist/trigger-registry.d.ts.map +0 -1
- package/dist/trigger-registry.js +0 -163
- package/dist/types.d.ts +0 -815
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -9
- package/dist/vector-store.d.ts +0 -180
- package/dist/vector-store.d.ts.map +0 -1
- package/dist/vector-store.js +0 -1041
- package/dist/version.d.ts +0 -34
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -34
- package/dist/wiki-page-emitter.d.ts +0 -65
- package/dist/wiki-page-emitter.d.ts.map +0 -1
- package/dist/wiki-page-emitter.js +0 -258
- package/dist/work-store.d.ts +0 -112
- package/dist/work-store.d.ts.map +0 -1
- package/dist/work-store.js +0 -273
- package/memory-plugin/dist/index.d.ts +0 -24
- package/memory-plugin/dist/index.d.ts.map +0 -1
- package/memory-plugin/dist/index.js +0 -300
- package/memory-plugin/dist/index.js.map +0 -1
- package/node_modules/sqlite-vec/README.md +0 -1
- package/node_modules/sqlite-vec/index.cjs +0 -46
- package/node_modules/sqlite-vec/index.d.ts +0 -17
- package/node_modules/sqlite-vec/index.mjs +0 -47
- package/node_modules/sqlite-vec/package.json +0 -1
- package/node_modules/sqlite-vec-linux-x64/README.md +0 -1
- package/node_modules/sqlite-vec-linux-x64/package.json +0 -1
- package/node_modules/sqlite-vec-linux-x64/vec0.so +0 -0
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -208
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -6
- package/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -6
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -51
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -632
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2990
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1798
- package/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -138
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -448
- package/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -183
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4538
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
- package/node_modules/zod/src/v4/core/util.ts +0 -966
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/zod/src/v4/locales/en.ts +0 -119
- package/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/zod/src/v4/locales/fr.ts +0 -116
- package/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/zod/src/v4/locales/index.ts +0 -49
- package/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/zod/src/v4/locales/uz.ts +0 -116
- package/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -6
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/zod/v4/classic/external.d.cts +0 -15
- package/node_modules/zod/v4/classic/external.d.ts +0 -15
- package/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -610
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -584
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -6
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1272
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -739
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -739
- package/node_modules/zod/v4/classic/schemas.js +0 -1157
- package/node_modules/zod/v4/core/api.cjs +0 -1222
- package/node_modules/zod/v4/core/api.d.cts +0 -304
- package/node_modules/zod/v4/core/api.d.ts +0 -304
- package/node_modules/zod/v4/core/api.js +0 -1082
- package/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/zod/v4/core/core.cjs +0 -83
- package/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/zod/v4/core/core.js +0 -76
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -213
- package/node_modules/zod/v4/core/errors.d.cts +0 -220
- package/node_modules/zod/v4/core/errors.d.ts +0 -220
- package/node_modules/zod/v4/core/errors.js +0 -182
- package/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -648
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -605
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -6
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -166
- package/node_modules/zod/v4/core/regexes.d.cts +0 -79
- package/node_modules/zod/v4/core/regexes.d.ts +0 -79
- package/node_modules/zod/v4/core/regexes.js +0 -133
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2124
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1146
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1146
- package/node_modules/zod/v4/core/schemas.js +0 -2093
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -446
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.js +0 -437
- package/node_modules/zod/v4/core/util.cjs +0 -710
- package/node_modules/zod/v4/core/util.d.cts +0 -199
- package/node_modules/zod/v4/core/util.d.ts +0 -199
- package/node_modules/zod/v4/core/util.js +0 -651
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/zod/v4/locales/en.cjs +0 -136
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -109
- package/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/zod/v4/locales/fr.cjs +0 -135
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -108
- package/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/zod/v4/locales/index.cjs +0 -104
- package/node_modules/zod/v4/locales/index.d.cts +0 -49
- package/node_modules/zod/v4/locales/index.d.ts +0 -49
- package/node_modules/zod/v4/locales/index.js +0 -49
- package/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/zod/v4/locales/package.json +0 -6
- package/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/zod/v4/locales/uz.cjs +0 -136
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -109
- package/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/zod/v4/mini/external.d.cts +0 -12
- package/node_modules/zod/v4/mini/external.d.ts +0 -12
- package/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -6
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1046
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -427
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -427
- package/node_modules/zod/v4/mini/schemas.js +0 -925
- package/node_modules/zod/v4/package.json +0 -6
- package/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -6
- package/plugin/dist/index.d.ts +0 -179
- package/plugin/dist/index.d.ts.map +0 -1
- package/plugin/dist/index.js +0 -3209
- package/plugin/dist/index.js.map +0 -1
package/dist/types.d.ts
DELETED
|
@@ -1,815 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* hypermem Core Types
|
|
3
|
-
*
|
|
4
|
-
* Provider-neutral message format and compositor interfaces.
|
|
5
|
-
* These types are the internal representation — never sent directly to an LLM.
|
|
6
|
-
* Provider translators convert to/from provider-specific formats at the boundary.
|
|
7
|
-
*/
|
|
8
|
-
export type MessageRole = 'user' | 'assistant' | 'system';
|
|
9
|
-
/**
|
|
10
|
-
* Provider-neutral tool call representation.
|
|
11
|
-
* Stored as JSON in the tool_calls column.
|
|
12
|
-
*/
|
|
13
|
-
export interface NeutralToolCall {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
arguments: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Provider-neutral tool result representation.
|
|
20
|
-
* Stored as JSON in the tool_results column.
|
|
21
|
-
*/
|
|
22
|
-
export interface NeutralToolResult {
|
|
23
|
-
callId: string;
|
|
24
|
-
name: string;
|
|
25
|
-
content: string;
|
|
26
|
-
isError?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Provider-neutral message — the canonical storage format.
|
|
30
|
-
*/
|
|
31
|
-
export interface NeutralMessage {
|
|
32
|
-
role: MessageRole;
|
|
33
|
-
textContent: string | null;
|
|
34
|
-
toolCalls: NeutralToolCall[] | null;
|
|
35
|
-
toolResults: NeutralToolResult[] | null;
|
|
36
|
-
metadata?: Record<string, unknown>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Stored message with database fields.
|
|
40
|
-
*/
|
|
41
|
-
export interface StoredMessage extends NeutralMessage {
|
|
42
|
-
id: number;
|
|
43
|
-
conversationId: number;
|
|
44
|
-
agentId: string;
|
|
45
|
-
messageIndex: number;
|
|
46
|
-
tokenCount: number | null;
|
|
47
|
-
isHeartbeat: boolean;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
}
|
|
50
|
-
export type ChannelType = 'webchat' | 'discord' | 'telegram' | 'signal' | 'subagent' | 'heartbeat' | 'other';
|
|
51
|
-
export type ConversationStatus = 'active' | 'ended' | 'archived';
|
|
52
|
-
export interface Conversation {
|
|
53
|
-
id: number;
|
|
54
|
-
sessionKey: string;
|
|
55
|
-
sessionId: string | null;
|
|
56
|
-
agentId: string;
|
|
57
|
-
channelType: ChannelType;
|
|
58
|
-
channelId: string | null;
|
|
59
|
-
provider: string | null;
|
|
60
|
-
model: string | null;
|
|
61
|
-
status: ConversationStatus;
|
|
62
|
-
messageCount: number;
|
|
63
|
-
tokenCountIn: number;
|
|
64
|
-
tokenCountOut: number;
|
|
65
|
-
createdAt: string;
|
|
66
|
-
updatedAt: string;
|
|
67
|
-
endedAt: string | null;
|
|
68
|
-
}
|
|
69
|
-
export type FactScope = 'agent' | 'session' | 'user';
|
|
70
|
-
/**
|
|
71
|
-
* Memory visibility levels:
|
|
72
|
-
* - private: Only the owning agent can read. Identity, SOUL, personal reflections.
|
|
73
|
-
* - org: Agents in the same org (e.g., alice's directors: Hank, Jack, Irene).
|
|
74
|
-
* - council: All council seats can read.
|
|
75
|
-
* - fleet: Any agent in the fleet can read.
|
|
76
|
-
*/
|
|
77
|
-
export type MemoryVisibility = 'private' | 'org' | 'council' | 'fleet';
|
|
78
|
-
/**
|
|
79
|
-
* Cross-agent query request. The requesting agent declares who they are;
|
|
80
|
-
* the access layer filters results by visibility.
|
|
81
|
-
*/
|
|
82
|
-
export interface CrossAgentQuery {
|
|
83
|
-
/** The agent making the request */
|
|
84
|
-
requesterId: string;
|
|
85
|
-
/** The agent whose memory is being queried */
|
|
86
|
-
targetAgentId: string;
|
|
87
|
-
/** What to search for */
|
|
88
|
-
query?: string;
|
|
89
|
-
/** Filter by domain */
|
|
90
|
-
domain?: string;
|
|
91
|
-
/** Filter by memory type */
|
|
92
|
-
memoryType?: 'facts' | 'knowledge' | 'topics' | 'episodes' | 'messages';
|
|
93
|
-
/** Max results */
|
|
94
|
-
limit?: number;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Defines an agent's org and tier for visibility resolution.
|
|
98
|
-
*/
|
|
99
|
-
export interface AgentIdentity {
|
|
100
|
-
agentId: string;
|
|
101
|
-
tier: 'council' | 'director' | 'specialist' | 'worker';
|
|
102
|
-
org?: string;
|
|
103
|
-
councilLead?: string;
|
|
104
|
-
}
|
|
105
|
-
export interface Fact {
|
|
106
|
-
id: number;
|
|
107
|
-
agentId: string;
|
|
108
|
-
scope: FactScope;
|
|
109
|
-
domain: string | null;
|
|
110
|
-
content: string;
|
|
111
|
-
confidence: number;
|
|
112
|
-
visibility: string;
|
|
113
|
-
sourceType: string;
|
|
114
|
-
sourceSessionKey: string | null;
|
|
115
|
-
sourceRef: string | null;
|
|
116
|
-
createdAt: string;
|
|
117
|
-
updatedAt: string;
|
|
118
|
-
expiresAt: string | null;
|
|
119
|
-
supersededBy: number | null;
|
|
120
|
-
decayScore: number;
|
|
121
|
-
validFrom: string | null;
|
|
122
|
-
invalidAt: string | null;
|
|
123
|
-
}
|
|
124
|
-
export type TopicStatus = 'active' | 'dormant' | 'closed';
|
|
125
|
-
export interface Topic {
|
|
126
|
-
id: number;
|
|
127
|
-
agentId: string;
|
|
128
|
-
name: string;
|
|
129
|
-
description: string | null;
|
|
130
|
-
status: TopicStatus;
|
|
131
|
-
visibility: string;
|
|
132
|
-
lastSessionKey: string | null;
|
|
133
|
-
messageCount: number;
|
|
134
|
-
createdAt: string;
|
|
135
|
-
updatedAt: string;
|
|
136
|
-
}
|
|
137
|
-
export interface Knowledge {
|
|
138
|
-
id: number;
|
|
139
|
-
agentId: string;
|
|
140
|
-
domain: string;
|
|
141
|
-
key: string;
|
|
142
|
-
content: string;
|
|
143
|
-
confidence: number;
|
|
144
|
-
sourceType: string;
|
|
145
|
-
sourceRef: string | null;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
updatedAt: string;
|
|
148
|
-
expiresAt: string | null;
|
|
149
|
-
supersededBy: number | null;
|
|
150
|
-
}
|
|
151
|
-
export type EpisodeType = 'decision' | 'incident' | 'discovery' | 'interaction' | 'milestone' | 'deployment' | 'config_change';
|
|
152
|
-
export interface Episode {
|
|
153
|
-
id: number;
|
|
154
|
-
agentId: string;
|
|
155
|
-
eventType: EpisodeType;
|
|
156
|
-
summary: string;
|
|
157
|
-
significance: number;
|
|
158
|
-
visibility: string;
|
|
159
|
-
participants: string[] | null;
|
|
160
|
-
sessionKey: string | null;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
decayScore: number;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* A single turn from a parent session, stripped of tool call content.
|
|
166
|
-
* Used to build spawn context for subagents.
|
|
167
|
-
*/
|
|
168
|
-
export interface RecentTurn {
|
|
169
|
-
role: 'user' | 'assistant';
|
|
170
|
-
content: string;
|
|
171
|
-
timestamp: number;
|
|
172
|
-
seq: number;
|
|
173
|
-
}
|
|
174
|
-
export interface ComposeRequest {
|
|
175
|
-
agentId: string;
|
|
176
|
-
sessionKey: string;
|
|
177
|
-
tokenBudget: number;
|
|
178
|
-
provider?: string;
|
|
179
|
-
model?: string;
|
|
180
|
-
/** Agent tier (council/director/specialist) — used for tier-scoped doc chunk retrieval */
|
|
181
|
-
tier?: string;
|
|
182
|
-
includeHistory?: boolean;
|
|
183
|
-
/** Whether to include demand-loaded doc chunks based on conversation triggers */
|
|
184
|
-
includeDocChunks?: boolean;
|
|
185
|
-
historyDepth?: number;
|
|
186
|
-
includeFacts?: boolean;
|
|
187
|
-
includeContext?: boolean;
|
|
188
|
-
includeLibrary?: boolean;
|
|
189
|
-
/** When false, skip semantic recall (vector search + FTS hybrid). Default: true. */
|
|
190
|
-
includeSemanticRecall?: boolean;
|
|
191
|
-
/** When false, skip keystone history injection (within-session + cross-topic). Default: true. */
|
|
192
|
-
includeKeystones?: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* The current-turn prompt text. Used as the retrieval query for semantic recall
|
|
195
|
-
* and doc chunk trigger matching. When provided, this is preferred over reading
|
|
196
|
-
* the last user message from the assembled history (which is one turn stale).
|
|
197
|
-
*
|
|
198
|
-
* Without this, retrieval fires against the previously-recorded user message,
|
|
199
|
-
* meaning first-turn retrieval is blind and all retrieval lags by one turn.
|
|
200
|
-
*/
|
|
201
|
-
prompt?: string;
|
|
202
|
-
/**
|
|
203
|
-
* When set, session-scoped doc chunks stored under this spawn session key
|
|
204
|
-
* are included in doc chunk retrieval at compose time.
|
|
205
|
-
* Used for subagent context inheritance: the parent buildSpawnContext() stores
|
|
206
|
-
* document chunks under a spawn sessionKey, and passes that key here so the
|
|
207
|
-
* compositor can surface them during composition.
|
|
208
|
-
*/
|
|
209
|
-
parentSessionKey?: string;
|
|
210
|
-
/**
|
|
211
|
-
* When true, skip provider-specific translation and return NeutralMessage[]
|
|
212
|
-
* instead of ProviderMessage[]. Used by the context engine plugin, which
|
|
213
|
-
* returns messages to the OpenClaw runtime for its own provider translation.
|
|
214
|
-
*/
|
|
215
|
-
skipProviderTranslation?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* When set, history fetching is scoped to this topic (Option B: also includes
|
|
218
|
-
* legacy messages with topic_id IS NULL for transition safety).
|
|
219
|
-
* If not provided, full session history is returned (no behavior change).
|
|
220
|
-
* P3.4: topic-aware compositor.
|
|
221
|
-
*/
|
|
222
|
-
topicId?: string;
|
|
223
|
-
/**
|
|
224
|
-
* When true, skip the C4 window cache fast-exit even if the cursor is fresh.
|
|
225
|
-
* Use this when external L4 state changed between turns, for example facts,
|
|
226
|
-
* wiki pages, or other library-backed context updated out of band.
|
|
227
|
-
*/
|
|
228
|
-
skipWindowCache?: boolean;
|
|
229
|
-
}
|
|
230
|
-
export interface SlotTokenCounts {
|
|
231
|
-
system: number;
|
|
232
|
-
identity: number;
|
|
233
|
-
history: number;
|
|
234
|
-
facts: number;
|
|
235
|
-
context: number;
|
|
236
|
-
library: number;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Compose-level diagnostics — emitted on every compose() call.
|
|
240
|
-
* Useful for observability, tuning, and debugging retrieval quality.
|
|
241
|
-
*/
|
|
242
|
-
export interface ComposeDiagnostics {
|
|
243
|
-
/** Number of doc chunk trigger collections that matched the user message */
|
|
244
|
-
triggerHits: number;
|
|
245
|
-
/** True when trigger-miss fallback semantic retrieval was used */
|
|
246
|
-
triggerFallbackUsed: boolean;
|
|
247
|
-
/** Number of facts included after scope filtering */
|
|
248
|
-
factsIncluded: number;
|
|
249
|
-
/** Approximate number of lines returned by semantic recall */
|
|
250
|
-
semanticResultsIncluded: number;
|
|
251
|
-
/** Number of doc chunk collections that returned at least one chunk */
|
|
252
|
-
docChunksCollections: number;
|
|
253
|
-
/** Number of items rejected by scope policy during retrieval */
|
|
254
|
-
scopeFiltered: number;
|
|
255
|
-
/**
|
|
256
|
-
* Why contextParts was empty (only set when no context was assembled).
|
|
257
|
-
* Helps distinguish between "no triggers + no fallback", "empty corpus",
|
|
258
|
-
* "budget exhausted", and "all items filtered by scope".
|
|
259
|
-
*/
|
|
260
|
-
zeroResultReason?: 'no_trigger_no_fallback' | 'empty_corpus' | 'budget_exhausted' | 'scope_filtered_all' | 'unknown';
|
|
261
|
-
/** The retrieval path that was used for doc chunks */
|
|
262
|
-
retrievalMode: 'triggered' | 'fallback_knn' | 'fallback_fts' | 'none';
|
|
263
|
-
/** Number of cross-topic keystone messages injected (P3.5) */
|
|
264
|
-
crossTopicKeystones?: number;
|
|
265
|
-
/** Actual reserve fraction used this compose (base or dynamic) */
|
|
266
|
-
reserveFraction?: number;
|
|
267
|
-
/** Estimated average turn cost (tokens) used in dynamic reserve calc */
|
|
268
|
-
avgTurnCostTokens?: number;
|
|
269
|
-
/** True if dynamic reserve exceeded floor and is actively adjusting budget */
|
|
270
|
-
dynamicReserveActive?: boolean;
|
|
271
|
-
/** True if dynamic reserve was clamped at dynamicReserveMax and SESSION_PRESSURE_HIGH emitted */
|
|
272
|
-
sessionPressureHigh?: boolean;
|
|
273
|
-
/** Number of items filtered across all dedup paths (temporal, open-domain, semantic, cross-session) */
|
|
274
|
-
fingerprintDedups?: number;
|
|
275
|
-
/** Number of duplicate-prefix matches where the full normalized content differed */
|
|
276
|
-
fingerprintCollisions?: number;
|
|
277
|
-
/** True when the window cache fast-exit fired and full compose was skipped */
|
|
278
|
-
windowCacheHit?: boolean;
|
|
279
|
-
/** Number of system messages in the stable cacheable prefix */
|
|
280
|
-
prefixSegmentCount?: number;
|
|
281
|
-
/** Estimated token cost of the stable cacheable prefix */
|
|
282
|
-
prefixTokens?: number;
|
|
283
|
-
/** Deterministic hash of the stable cacheable prefix content */
|
|
284
|
-
prefixHash?: string;
|
|
285
|
-
/**
|
|
286
|
-
* The prefixHash stored in the window cache from the previous compose.
|
|
287
|
-
* Emitted on full-compose passes when a cached bundle was found but had a
|
|
288
|
-
* different prefixHash (i.e. stable prefix changed). Useful for verifying
|
|
289
|
-
* that prefix mutations correctly bypassed the C4 fast-exit.
|
|
290
|
-
*/
|
|
291
|
-
prevPrefixHash?: string;
|
|
292
|
-
/** Estimated token cost of all content below the stable prefix boundary */
|
|
293
|
-
volatileHistoryTokens?: number;
|
|
294
|
-
/**
|
|
295
|
-
* Session type derived from observed message density.
|
|
296
|
-
* 'plain-chat' — text-only or low tool ratio (< 20% tool messages)
|
|
297
|
-
* 'tool-heavy' — high tool ratio (>= 20% tool messages in recent sample)
|
|
298
|
-
*/
|
|
299
|
-
sessionType?: 'plain-chat' | 'tool-heavy';
|
|
300
|
-
/** The history depth actually requested from the store this compose pass. */
|
|
301
|
-
historyDepthChosen?: number;
|
|
302
|
-
/** Average estimated tokens per message observed in the density sample. */
|
|
303
|
-
estimatedMsgDensityTokens?: number;
|
|
304
|
-
/**
|
|
305
|
-
* True when budget-fit walk had to drop history clusters after gradient transform.
|
|
306
|
-
* Should be false in steady state for well-classified sessions.
|
|
307
|
-
*/
|
|
308
|
-
rescueTrimFired?: boolean;
|
|
309
|
-
/**
|
|
310
|
-
* MECW model profile that matched (e.g. 'claude', 'gemini', 'gpt').
|
|
311
|
-
* Undefined when no MECW entry matched for the current model.
|
|
312
|
-
*/
|
|
313
|
-
mecwProfile?: string;
|
|
314
|
-
/**
|
|
315
|
-
* True when MECW blending adjusted the historyFraction or memoryFraction
|
|
316
|
-
* from the configured defaults. Indicates model-aware lane adjustment fired.
|
|
317
|
-
*/
|
|
318
|
-
mecwApplied?: boolean;
|
|
319
|
-
/**
|
|
320
|
-
* Linear blend factor used in MECW lane adjustment (0.0 = below MECW floor,
|
|
321
|
-
* 1.0 = at/above MECW ceiling). At 0 the config fractions are used unchanged;
|
|
322
|
-
* at 1 the preferred fractions are used in full.
|
|
323
|
-
*/
|
|
324
|
-
mecwBlend?: number;
|
|
325
|
-
/**
|
|
326
|
-
* Effective historyFraction used this compose pass (post-B4 blending).
|
|
327
|
-
* Compare against the configured historyFraction to see how much B4 moved it.
|
|
328
|
-
*/
|
|
329
|
-
effectiveHistoryFraction?: number;
|
|
330
|
-
/**
|
|
331
|
-
* Effective memoryFraction used this compose pass (post-B4 blending).
|
|
332
|
-
*/
|
|
333
|
-
effectiveMemoryFraction?: number;
|
|
334
|
-
/** Canonical trim soft-target fraction shared by compose and afterTurn refresh. */
|
|
335
|
-
trimSoftTarget?: number;
|
|
336
|
-
/** Canonical growth-allowance fraction before steady-state trim fires. */
|
|
337
|
-
trimGrowthThreshold?: number;
|
|
338
|
-
/** Canonical headroom fraction used when steady-state trim does fire. */
|
|
339
|
-
trimHeadroomFraction?: number;
|
|
340
|
-
/**
|
|
341
|
-
* Number of tool-result messages co-ejected alongside their parent tool-use
|
|
342
|
-
* during the safety-valve or cluster-drop trim pass.
|
|
343
|
-
* A co-ejected result is fully removed (zero budget cost).
|
|
344
|
-
*/
|
|
345
|
-
toolChainCoEjections?: number;
|
|
346
|
-
/**
|
|
347
|
-
* Number of tool-result messages stubbed with the canonical ToolChainStub
|
|
348
|
-
* format because their parent tool-use was ejected but the result message
|
|
349
|
-
* could not be cleanly removed (e.g. the result message also carries text).
|
|
350
|
-
*/
|
|
351
|
-
toolChainStubReplacements?: number;
|
|
352
|
-
/**
|
|
353
|
-
* C2: Number of retrieved doc chunks degraded to canonical ArtifactRef references
|
|
354
|
-
* because their token cost exceeded the model-aware oversize threshold.
|
|
355
|
-
*/
|
|
356
|
-
artifactDegradations?: number;
|
|
357
|
-
/**
|
|
358
|
-
* C2: The computed artifact oversize threshold (tokens) for this compose pass.
|
|
359
|
-
* Scales with the effective model budget from B4.
|
|
360
|
-
*/
|
|
361
|
-
artifactOversizeThresholdTokens?: number;
|
|
362
|
-
/** Number of artifact stubs rehydrated from tool_artifacts in the active turn. */
|
|
363
|
-
artifactsHydrated?: number;
|
|
364
|
-
/** Total bytes of payload injected by hydration this compose pass. */
|
|
365
|
-
hydrationBytes?: number;
|
|
366
|
-
/** Number of stubs whose artifact lookup returned no row (graceful miss). */
|
|
367
|
-
hydrationMisses?: number;
|
|
368
|
-
}
|
|
369
|
-
export interface ComposeResult {
|
|
370
|
-
messages: ProviderMessage[];
|
|
371
|
-
tokenCount: number;
|
|
372
|
-
slots: SlotTokenCounts;
|
|
373
|
-
/** True only when token budget was exceeded (remaining < 0). */
|
|
374
|
-
truncated: boolean;
|
|
375
|
-
/** True when any non-fatal warnings were emitted (soft failures, truncated slots, etc.). */
|
|
376
|
-
hasWarnings: boolean;
|
|
377
|
-
warnings: string[];
|
|
378
|
-
/**
|
|
379
|
-
* The assembled context block (facts, recall, episodes) as a plain string.
|
|
380
|
-
* Used by the plugin to pass as systemPromptAddition to the OpenClaw runtime.
|
|
381
|
-
* Omitted when no context was assembled.
|
|
382
|
-
*/
|
|
383
|
-
contextBlock?: string;
|
|
384
|
-
/** Compose-level diagnostics for observability and tuning. */
|
|
385
|
-
diagnostics?: ComposeDiagnostics;
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Provider-specific message format (output of compositor).
|
|
389
|
-
* This is what gets sent to the LLM API.
|
|
390
|
-
* The exact shape depends on the provider translator.
|
|
391
|
-
*/
|
|
392
|
-
export interface ProviderMessage {
|
|
393
|
-
role: string;
|
|
394
|
-
content: unknown;
|
|
395
|
-
[key: string]: unknown;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* Tracks the most recently composed submission window boundary.
|
|
399
|
-
* Written by compose() after every assembly, read by the background indexer
|
|
400
|
-
* to identify high-signal unprocessed messages.
|
|
401
|
-
*
|
|
402
|
-
* Stored in Redis (hm:{a}:s:{s}:cursor) with dual-write to SQLite for
|
|
403
|
-
* durability across Redis eviction (bob Gate 2).
|
|
404
|
-
*/
|
|
405
|
-
export interface SessionCursor {
|
|
406
|
-
/** StoredMessage.id of the newest message included in the last window */
|
|
407
|
-
lastSentId: number;
|
|
408
|
-
/** messageIndex of the newest message — for ordering guarantees */
|
|
409
|
-
lastSentIndex: number;
|
|
410
|
-
/** ISO timestamp of when the window was composed */
|
|
411
|
-
lastSentAt: string;
|
|
412
|
-
/** Number of messages in the composed window */
|
|
413
|
-
windowSize: number;
|
|
414
|
-
/** Token count of the composed window */
|
|
415
|
-
tokenCount: number;
|
|
416
|
-
}
|
|
417
|
-
export interface SessionSlots {
|
|
418
|
-
system: string | null;
|
|
419
|
-
identity: string | null;
|
|
420
|
-
history: StoredMessage[];
|
|
421
|
-
context: string | null;
|
|
422
|
-
facts: string | null;
|
|
423
|
-
tools: string | null;
|
|
424
|
-
meta: SessionMeta;
|
|
425
|
-
}
|
|
426
|
-
export interface SessionMeta {
|
|
427
|
-
agentId: string;
|
|
428
|
-
sessionKey: string;
|
|
429
|
-
provider: string | null;
|
|
430
|
-
model: string | null;
|
|
431
|
-
channelType: ChannelType;
|
|
432
|
-
tokenCount: number;
|
|
433
|
-
lastActive: string;
|
|
434
|
-
status: ConversationStatus;
|
|
435
|
-
}
|
|
436
|
-
export interface HyperMemConfig {
|
|
437
|
-
enabled: boolean;
|
|
438
|
-
dataDir: string;
|
|
439
|
-
cache: CacheConfig;
|
|
440
|
-
compositor: CompositorConfig;
|
|
441
|
-
indexer: IndexerConfig;
|
|
442
|
-
embedding: EmbeddingProviderConfig;
|
|
443
|
-
/** Optional dreaming/promotion config. Default: disabled. */
|
|
444
|
-
dreaming?: import('./dreaming-promoter.js').DreamerConfig;
|
|
445
|
-
/** Optional Obsidian vault integration. Default: disabled. */
|
|
446
|
-
obsidian?: import('./obsidian-watcher.js').ObsidianConfig;
|
|
447
|
-
/** Startup sweep that seeds fleet_agents from workspace identity files. Default: true. */
|
|
448
|
-
startupFleetSeeding?: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* Cache replay threshold (ms). When > 0, assemble() returns a cached
|
|
451
|
-
* contextBlock (systemPromptAddition) for sessions active within this
|
|
452
|
-
* window, producing byte-identical prompts and hitting provider prefix cache
|
|
453
|
-
* (Anthropic / OpenAI). Set to 0 to disable.
|
|
454
|
-
* Default: 900_000 (15 minutes).
|
|
455
|
-
*/
|
|
456
|
-
warmCacheReplayThresholdMs?: number;
|
|
457
|
-
}
|
|
458
|
-
export interface EmbeddingProviderConfig {
|
|
459
|
-
/**
|
|
460
|
-
* Embedding provider. Default: 'ollama'.
|
|
461
|
-
* - 'none': disable all embedding calls — semantic search disabled, FTS5 fallback only
|
|
462
|
-
* - 'ollama': local Ollama (nomic-embed-text or any pulled model)
|
|
463
|
-
* - 'openai': OpenAI Embeddings API (text-embedding-3-small / 3-large)
|
|
464
|
-
*/
|
|
465
|
-
provider?: 'none' | 'ollama' | 'openai' | 'gemini';
|
|
466
|
-
/** Ollama base URL. Default: http://localhost:11434 */
|
|
467
|
-
ollamaUrl: string;
|
|
468
|
-
/** OpenAI API key. Required when provider is 'openai'. */
|
|
469
|
-
openaiApiKey?: string;
|
|
470
|
-
/** OpenAI base URL. Default: https://api.openai.com/v1 */
|
|
471
|
-
openaiBaseUrl?: string;
|
|
472
|
-
/** Gemini API key. Alternative to OAuth — passed as ?key= query param. */
|
|
473
|
-
geminiApiKey?: string;
|
|
474
|
-
/** Gemini API base URL. Default: https://generativelanguage.googleapis.com */
|
|
475
|
-
geminiBaseUrl?: string;
|
|
476
|
-
/** Gemini task type for indexing. Default: RETRIEVAL_DOCUMENT */
|
|
477
|
-
geminiIndexTaskType?: string;
|
|
478
|
-
/** Gemini task type for queries. Default: RETRIEVAL_QUERY */
|
|
479
|
-
geminiQueryTaskType?: string;
|
|
480
|
-
/**
|
|
481
|
-
* Embedding model name.
|
|
482
|
-
* - ollama default: nomic-embed-text (768d)
|
|
483
|
-
* - openai default: text-embedding-3-small (1536d)
|
|
484
|
-
*/
|
|
485
|
-
model: string;
|
|
486
|
-
/**
|
|
487
|
-
* Embedding dimensions. Must match the model.
|
|
488
|
-
* - nomic-embed-text: 768
|
|
489
|
-
* - text-embedding-3-small: 1536
|
|
490
|
-
* - text-embedding-3-large: 3072
|
|
491
|
-
* WARNING: changing providers requires a full re-index (dimensions are incompatible).
|
|
492
|
-
*/
|
|
493
|
-
dimensions: number;
|
|
494
|
-
/** Request timeout ms. Default: 10000 */
|
|
495
|
-
timeout: number;
|
|
496
|
-
/** Max texts per batch request. Default: 32 (ollama) or 128 (openai) */
|
|
497
|
-
batchSize: number;
|
|
498
|
-
}
|
|
499
|
-
export interface CacheConfig {
|
|
500
|
-
keyPrefix: string;
|
|
501
|
-
sessionTTL: number;
|
|
502
|
-
historyTTL: number;
|
|
503
|
-
}
|
|
504
|
-
/** @deprecated Use CacheConfig */
|
|
505
|
-
export type RedisConfig = CacheConfig;
|
|
506
|
-
export interface CompositorConfig {
|
|
507
|
-
/**
|
|
508
|
-
* Fraction of the detected context window to use as the input token budget.
|
|
509
|
-
* The effective budget is: detectedContextWindow × budgetFraction.
|
|
510
|
-
* reserveFraction is then subtracted for output/tool-call headroom.
|
|
511
|
-
*
|
|
512
|
-
* Range: 0.3–0.85. Default: 0.70
|
|
513
|
-
*/
|
|
514
|
-
budgetFraction?: number;
|
|
515
|
-
/**
|
|
516
|
-
* Fraction of the total token budget to reserve for model output and tool
|
|
517
|
-
* call responses. Higher = more headroom for large tool results.
|
|
518
|
-
*
|
|
519
|
-
* Range: 0.10–0.50. Default: 0.25
|
|
520
|
-
*/
|
|
521
|
-
reserveFraction?: number;
|
|
522
|
-
/**
|
|
523
|
-
* Fraction of the effective token budget (post-reserve) allocated to
|
|
524
|
-
* conversation history. History fills up to this cap before context slots run.
|
|
525
|
-
*
|
|
526
|
-
* Range: 0.20–0.60. Default: 0.40
|
|
527
|
-
*/
|
|
528
|
-
historyFraction?: number;
|
|
529
|
-
/**
|
|
530
|
-
* Fraction of the effective token budget (post-reserve) allocated to the
|
|
531
|
-
* memory pool: facts, wiki, semantic recall, cross-session context, and
|
|
532
|
-
* trigger-fired doc chunks all draw from this shared pool.
|
|
533
|
-
*
|
|
534
|
-
* Range: 0.20–0.70. Default: 0.45
|
|
535
|
-
* Note: historyFraction + memoryFraction should be ≤ 0.90 to leave room
|
|
536
|
-
* for fixed-cost slots (system, identity, HyperForm: typically 3–8k tokens).
|
|
537
|
-
*/
|
|
538
|
-
memoryFraction?: number;
|
|
539
|
-
/**
|
|
540
|
-
* @deprecated Use budgetFraction instead. Absolute token fallback used when
|
|
541
|
-
* model detection fails and budgetFraction is not set.
|
|
542
|
-
*/
|
|
543
|
-
defaultTokenBudget: number;
|
|
544
|
-
maxHistoryMessages: number;
|
|
545
|
-
/** @advanced Replaced by memoryFraction for primary tuning. Hard per-fetch fact count cap. */
|
|
546
|
-
maxFacts: number;
|
|
547
|
-
maxCrossSessionContext: number;
|
|
548
|
-
/**
|
|
549
|
-
* @advanced Aggregate token ceiling across all trigger-fired doc chunk
|
|
550
|
-
* collections in a single compose pass. When unset, draws from the memoryFraction
|
|
551
|
-
* pool. Rarely needs manual tuning.
|
|
552
|
-
*/
|
|
553
|
-
maxTotalTriggerTokens?: number;
|
|
554
|
-
/**
|
|
555
|
-
* How many recent tool call/result pairs to keep verbatim in history.
|
|
556
|
-
* Tool call/result content beyond this threshold gets prose-stub treatment.
|
|
557
|
-
* Default: 3
|
|
558
|
-
*/
|
|
559
|
-
maxRecentToolPairs: number;
|
|
560
|
-
/**
|
|
561
|
-
* How many tool pairs beyond the verbatim threshold to convert to heuristic
|
|
562
|
-
* prose stubs (e.g. "Read /src/foo.ts (1.2KB)"). Pairs beyond this are
|
|
563
|
-
* dropped entirely (text content preserved, tool payloads nulled).
|
|
564
|
-
* Default: 10
|
|
565
|
-
*/
|
|
566
|
-
maxProseToolPairs: number;
|
|
567
|
-
/**
|
|
568
|
-
* Fraction of defaultTokenBudget to allocate for history during warm bootstrap.
|
|
569
|
-
* Replaces the old WARM_BOOTSTRAP_CAP message-count constant.
|
|
570
|
-
* Default: 0.4 (40% of defaultTokenBudget)
|
|
571
|
-
*/
|
|
572
|
-
warmHistoryBudgetFraction: number;
|
|
573
|
-
/**
|
|
574
|
-
* @advanced Use reserveFraction instead.
|
|
575
|
-
* Fraction of the model context window to reserve for output tokens.
|
|
576
|
-
* Falls back to reserveFraction when set. Default: 0.25
|
|
577
|
-
*/
|
|
578
|
-
contextWindowReserve?: number;
|
|
579
|
-
/**
|
|
580
|
-
* Number of turns to project forward when computing dynamic reserve.
|
|
581
|
-
* safety_tokens = avg_turn_cost × dynamicReserveTurnHorizon
|
|
582
|
-
* Default: 5
|
|
583
|
-
*/
|
|
584
|
-
dynamicReserveTurnHorizon?: number;
|
|
585
|
-
/**
|
|
586
|
-
* Hard ceiling on the dynamic reserve fraction. When the projected safety
|
|
587
|
-
* tokens would push reserve above this, SESSION_PRESSURE_HIGH is emitted
|
|
588
|
-
* in diagnostics and reserve is clamped here.
|
|
589
|
-
* Default: 0.50
|
|
590
|
-
*/
|
|
591
|
-
dynamicReserveMax?: number;
|
|
592
|
-
/**
|
|
593
|
-
* Kill switch for dynamic reserve. Set false to use fixed contextWindowReserve only.
|
|
594
|
-
* Default: true
|
|
595
|
-
*/
|
|
596
|
-
dynamicReserveEnabled?: boolean;
|
|
597
|
-
/**
|
|
598
|
-
* Fraction of history token budget to allocate for keystone (recalled older) messages.
|
|
599
|
-
* Range: 0.0–0.5. Default: 0.2 (20% of history budget).
|
|
600
|
-
* Set to 0 to disable keystone injection.
|
|
601
|
-
*/
|
|
602
|
-
keystoneHistoryFraction?: number;
|
|
603
|
-
/**
|
|
604
|
-
* Maximum number of keystone messages to inject.
|
|
605
|
-
* Default: 15
|
|
606
|
-
*/
|
|
607
|
-
keystoneMaxMessages?: number;
|
|
608
|
-
/**
|
|
609
|
-
* Minimum episode significance for a message to be considered as a keystone.
|
|
610
|
-
* Only applies when episode significance is available (not null).
|
|
611
|
-
* Default: 0.5
|
|
612
|
-
*/
|
|
613
|
-
keystoneMinSignificance?: number;
|
|
614
|
-
/**
|
|
615
|
-
* @advanced Use memoryFraction instead.
|
|
616
|
-
* Fraction of the effective budget to target for context assembly.
|
|
617
|
-
* Honored as a fallback when memoryFraction is not set.
|
|
618
|
-
* Range: 0.3–0.85. Default: 0.65
|
|
619
|
-
*/
|
|
620
|
-
targetBudgetFraction?: number;
|
|
621
|
-
/**
|
|
622
|
-
* Enable Fleet Output Standard (FOS) injection.
|
|
623
|
-
* FOS injects shared output rules (no em dashes, lead with answer, etc.) into
|
|
624
|
-
* every composed context. Disable if the operator manages output standards
|
|
625
|
-
* externally (e.g. via system prompt) to avoid redundancy.
|
|
626
|
-
* Default: true
|
|
627
|
-
*/
|
|
628
|
-
enableFOS?: boolean;
|
|
629
|
-
/**
|
|
630
|
-
* Enable Model Output Directive (MOD) injection.
|
|
631
|
-
* MOD injects per-model calibration corrections (verbosity, list length, etc.).
|
|
632
|
-
* Disable if you want raw model behavior without hypermem calibration.
|
|
633
|
-
* Default: true
|
|
634
|
-
*/
|
|
635
|
-
enableMOD?: boolean;
|
|
636
|
-
/**
|
|
637
|
-
* HyperForm output shaping profile. Controls what FOS/MOD content is injected.
|
|
638
|
-
*
|
|
639
|
-
* 'light' — ~100 token standalone directives. No MOD, no fleet concepts.
|
|
640
|
-
* 'standard' — Full FOS: density targets, format rules, compression ratios.
|
|
641
|
-
* 'full' — FOS + MOD. Cross-agent coordination, full spec.
|
|
642
|
-
*
|
|
643
|
-
* Backward compat: 'starter' maps to 'light', 'fleet' maps to 'full'.
|
|
644
|
-
* Default: 'full' (backward-compatible). New install default: 'light'.
|
|
645
|
-
*/
|
|
646
|
-
hyperformProfile?: 'light' | 'standard' | 'full' | 'starter' | 'fleet';
|
|
647
|
-
/** @deprecated Use hyperformProfile */
|
|
648
|
-
outputProfile?: 'light' | 'standard' | 'full' | 'starter' | 'fleet';
|
|
649
|
-
/** @deprecated Use hyperformProfile */
|
|
650
|
-
outputStandard?: 'light' | 'standard' | 'full' | 'starter' | 'fleet';
|
|
651
|
-
/**
|
|
652
|
-
* Hard token ceiling for wiki page injection per compose pass.
|
|
653
|
-
* Limits how much synthesized topic knowledge is inserted into context.
|
|
654
|
-
* Lower values keep context lighter; higher values surface more topic depth.
|
|
655
|
-
*
|
|
656
|
-
* Default: 600 tokens
|
|
657
|
-
* Light preset: 300 tokens
|
|
658
|
-
* Extended preset: 800 tokens
|
|
659
|
-
*/
|
|
660
|
-
wikiTokenCap?: number;
|
|
661
|
-
}
|
|
662
|
-
export type ExpertiseSourceType = 'conversation' | 'pipeline' | 'review' | 'manual';
|
|
663
|
-
export type EvidenceRelationship = 'confirms' | 'contradicts';
|
|
664
|
-
export interface IndexerConfig {
|
|
665
|
-
enabled: boolean;
|
|
666
|
-
factExtractionMode: 'off' | 'pattern' | 'tiered';
|
|
667
|
-
topicDormantAfter: string;
|
|
668
|
-
topicClosedAfter: string;
|
|
669
|
-
factDecayRate: number;
|
|
670
|
-
episodeSignificanceThreshold: number;
|
|
671
|
-
periodicInterval: number;
|
|
672
|
-
batchSize: number;
|
|
673
|
-
maxMessagesPerTick: number;
|
|
674
|
-
maxActiveConversations?: number;
|
|
675
|
-
recentConversationCooldownMs?: number;
|
|
676
|
-
maxCandidatesPerPass?: number;
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Global write policy for fact ingestion.
|
|
680
|
-
* 'allow' — facts are written to the library DB normally.
|
|
681
|
-
* 'deny' — fact writes are suppressed (read-only / replay mode).
|
|
682
|
-
*/
|
|
683
|
-
export type GlobalWritePolicy = 'allow' | 'deny';
|
|
684
|
-
/**
|
|
685
|
-
* Diagnostics snapshot from a maintenance tick (proactive noise sweep + tool decay).
|
|
686
|
-
* Stored on BackgroundIndexer.lastMaintenanceDiagnostics after each tick.
|
|
687
|
-
*/
|
|
688
|
-
export interface MaintenanceTickDiagnostics {
|
|
689
|
-
considered: number;
|
|
690
|
-
skipped: number;
|
|
691
|
-
scanned: number;
|
|
692
|
-
mutated: number;
|
|
693
|
-
durationMs: number;
|
|
694
|
-
exitReason: 'complete' | 'cap-reached' | 'no-conversations';
|
|
695
|
-
}
|
|
696
|
-
/**
|
|
697
|
-
* Labels for each trim call site. The set is closed — any new trim site must
|
|
698
|
-
* be added here before being instrumented.
|
|
699
|
-
*/
|
|
700
|
-
export type TrimTelemetryPath = 'assemble.normal' | 'assemble.toolLoop' | 'assemble.subagent' | 'reshape' | 'compact.nuclear' | 'compact.history' | 'compact.history2' | 'afterTurn.secondary' | 'warmstart';
|
|
701
|
-
/**
|
|
702
|
-
* Emitted once per invocation of trimHistoryToTokenBudget() (or a caller that
|
|
703
|
-
* wraps it). Every trim site MUST emit exactly one of these, even if the
|
|
704
|
-
* underlying trim returned 0.
|
|
705
|
-
*/
|
|
706
|
-
export interface TrimTelemetryEvent {
|
|
707
|
-
event: 'trim';
|
|
708
|
-
ts: string;
|
|
709
|
-
path: TrimTelemetryPath;
|
|
710
|
-
agentId: string;
|
|
711
|
-
sessionKey: string;
|
|
712
|
-
preTokens: number;
|
|
713
|
-
postTokens: number;
|
|
714
|
-
removed: number;
|
|
715
|
-
cacheInvalidated: boolean;
|
|
716
|
-
reason: string;
|
|
717
|
-
}
|
|
718
|
-
/**
|
|
719
|
-
* Emitted to trace assemble() entry + regime resolution. path captures the
|
|
720
|
-
* high-level compose regime:
|
|
721
|
-
* - 'cold' : first call of a session (no prior compose cache)
|
|
722
|
-
* - 'subagent' : subagent session (sessionKey matches subagent pattern)
|
|
723
|
-
* - 'replay' : cache replay fast path taken
|
|
724
|
-
*
|
|
725
|
-
* Emission convention:
|
|
726
|
-
* At assemble() entry we emit ONE trace with path='cold' or 'subagent'
|
|
727
|
-
* because replay is not known until the cache-replay hit block executes.
|
|
728
|
-
* When the cache-replay fast path fires, a SECOND trace is emitted with
|
|
729
|
-
* path='replay' sharing the same turnId as the entry trace. Per-turn
|
|
730
|
-
* analysis tools should group by (agentId, sessionKey, turnId) and
|
|
731
|
-
* prefer the terminal path as the authoritative regime for that turn.
|
|
732
|
-
*/
|
|
733
|
-
export interface AssembleTraceEvent {
|
|
734
|
-
event: 'assemble';
|
|
735
|
-
ts: string;
|
|
736
|
-
agentId: string;
|
|
737
|
-
sessionKey: string;
|
|
738
|
-
turnId: string;
|
|
739
|
-
path: 'cold' | 'replay' | 'subagent';
|
|
740
|
-
toolLoop: boolean;
|
|
741
|
-
msgCount: number;
|
|
742
|
-
}
|
|
743
|
-
export type HyperMemTelemetryEvent = TrimTelemetryEvent | AssembleTraceEvent;
|
|
744
|
-
/**
|
|
745
|
-
* Query parameters for mining a single archived/forked context.
|
|
746
|
-
*
|
|
747
|
-
* - contextId: must reference an archived or forked context (not active).
|
|
748
|
-
* - limit: per-context message cap; hard-capped at 200 in the implementation.
|
|
749
|
-
* - excludeHeartbeats: when true (default), heartbeat messages are omitted.
|
|
750
|
-
* - ftsQuery: optional keyword filter applied client-side for Sprint 2.
|
|
751
|
-
*/
|
|
752
|
-
export interface ArchivedMiningQuery {
|
|
753
|
-
/** Explicit archived or forked contextId — active contexts are rejected. */
|
|
754
|
-
contextId: number;
|
|
755
|
-
/** Maximum number of messages to return. Hard-capped at 200. Default: 200. */
|
|
756
|
-
limit?: number;
|
|
757
|
-
/** When true (default), exclude heartbeat messages from results. */
|
|
758
|
-
excludeHeartbeats?: boolean;
|
|
759
|
-
/** Optional FTS/keyword filter applied client-side this sprint. */
|
|
760
|
-
ftsQuery?: string;
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Options for mineArchivedContexts (multi-context mining).
|
|
764
|
-
*
|
|
765
|
-
* Extends the per-context ArchivedMiningQuery options with a `maxContexts` gate
|
|
766
|
-
* that controls how many contextIds are accepted in a single call.
|
|
767
|
-
*
|
|
768
|
-
* ## maxContexts gate
|
|
769
|
-
* - Default effective cap: 20 (ARCHIVED_MULTI_CONTEXT_DEFAULT_MAX).
|
|
770
|
-
* - Hard ceiling: 50 (ARCHIVED_MULTI_CONTEXT_HARD_CEILING). Callers may not
|
|
771
|
-
* exceed this regardless of what they pass.
|
|
772
|
-
* - A caller may supply a lower explicit limit (e.g. 10) to restrict the call
|
|
773
|
-
* further; that lower limit is honored.
|
|
774
|
-
* - If a caller supplies a value above the hard ceiling, it is silently clamped
|
|
775
|
-
* to the hard ceiling — callers need not know the exact constant.
|
|
776
|
-
* - If contextIds.length exceeds the effective max, mineArchivedContexts throws
|
|
777
|
-
* immediately (before any DB access). Do not truncate silently.
|
|
778
|
-
*/
|
|
779
|
-
export interface MultiContextMiningOptions extends Omit<ArchivedMiningQuery, 'contextId'> {
|
|
780
|
-
/**
|
|
781
|
-
* Maximum number of contextIds accepted in this call.
|
|
782
|
-
*
|
|
783
|
-
* - Default: ARCHIVED_MULTI_CONTEXT_DEFAULT_MAX (20).
|
|
784
|
-
* - Hard ceiling: ARCHIVED_MULTI_CONTEXT_HARD_CEILING (50).
|
|
785
|
-
* - Values above the hard ceiling are clamped to the ceiling.
|
|
786
|
-
* - Values at or below the ceiling are used as-is.
|
|
787
|
-
*/
|
|
788
|
-
maxContexts?: number;
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Result wrapper returned by mineArchivedContext / mineArchivedContexts.
|
|
792
|
-
*
|
|
793
|
-
* The stable marker `isHistorical: true` distinguishes mining results from
|
|
794
|
-
* active-composition results. Consumers MUST check this before using results
|
|
795
|
-
* in active-composition paths.
|
|
796
|
-
*
|
|
797
|
-
* @template T - The payload type (typically StoredMessage[]).
|
|
798
|
-
*/
|
|
799
|
-
export interface ArchivedMiningResult<T> {
|
|
800
|
-
/** Always `true` — stable discriminator for archived/historical data. */
|
|
801
|
-
isHistorical: true;
|
|
802
|
-
/** The archived or forked context id that was mined. */
|
|
803
|
-
contextId: number;
|
|
804
|
-
/** The agentId owning this context. */
|
|
805
|
-
agentId: string;
|
|
806
|
-
/** The sessionKey the context belongs to. */
|
|
807
|
-
sessionKey: string;
|
|
808
|
-
/** The status of the context ('archived' | 'forked'). */
|
|
809
|
-
contextStatus: 'archived' | 'forked';
|
|
810
|
-
/** ISO timestamp of the context's last update. */
|
|
811
|
-
contextUpdatedAt: string;
|
|
812
|
-
/** The mined payload. */
|
|
813
|
-
data: T;
|
|
814
|
-
}
|
|
815
|
-
//# sourceMappingURL=types.d.ts.map
|