@openparachute/vault 0.7.3-rc.13 → 0.7.3-rc.2
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/README.md +3 -5
- package/core/src/conformance.ts +1 -2
- package/core/src/content-range.test.ts +0 -127
- package/core/src/content-range.ts +0 -100
- package/core/src/contract-typed-index.test.ts +3 -4
- package/core/src/core.test.ts +4 -521
- package/core/src/expand.ts +3 -11
- package/core/src/indexed-fields.test.ts +3 -9
- package/core/src/indexed-fields.ts +1 -9
- package/core/src/mcp.ts +10 -601
- package/core/src/notes.ts +4 -201
- package/core/src/schema-defaults.ts +1 -85
- package/core/src/search-fts-v25.test.ts +1 -9
- package/core/src/search-query.test.ts +0 -42
- package/core/src/search-query.ts +0 -27
- package/core/src/seed-packs.test.ts +1 -117
- package/core/src/seed-packs.ts +1 -217
- package/core/src/store.ts +3 -59
- package/core/src/tag-schemas.ts +12 -27
- package/core/src/types.ts +1 -7
- package/core/src/vault-projection.ts +0 -55
- package/package.json +1 -1
- package/src/add-pack.test.ts +0 -32
- package/src/auth-hub-jwt.test.ts +1 -118
- package/src/auth.ts +0 -64
- package/src/cli.ts +1 -5
- package/src/contract-errors.test.ts +1 -2
- package/src/mcp-http.ts +4 -33
- package/src/mcp-tools.ts +14 -61
- package/src/oauth-discovery.ts +0 -31
- package/src/onboarding-seed.test.ts +0 -64
- package/src/routes.ts +95 -92
- package/src/routing.test.ts +4 -229
- package/src/routing.ts +23 -152
- package/src/scopes.ts +0 -22
- package/src/server.ts +0 -7
- package/src/storage.test.ts +1 -200
- package/src/transcription-worker.test.ts +0 -151
- package/src/transcription-worker.ts +52 -113
- package/src/vault.test.ts +11 -48
- package/core/src/attachment/bytes-provider.ts +0 -65
- package/core/src/attachment/policy.test.ts +0 -66
- package/core/src/attachment/policy.ts +0 -131
- package/core/src/attachment/tickets.test.ts +0 -45
- package/core/src/attachment/tickets.ts +0 -117
- package/core/src/attachment-tickets-tool.test.ts +0 -286
- package/core/src/display-title.test.ts +0 -190
- package/core/src/lede.test.ts +0 -96
- package/core/src/search-title-boost.test.ts +0 -125
- package/src/attachment-bytes.ts +0 -68
- package/src/attachment-tickets.test.ts +0 -475
- package/src/attachment-tickets.ts +0 -340
- package/src/read-attachment.test.ts +0 -436
|
@@ -27,21 +27,13 @@ export type SqliteType = "TEXT" | "INTEGER";
|
|
|
27
27
|
// `string` — because the metadata VALUE (an id/path/title) is what's
|
|
28
28
|
// indexed here; the resolved graph link is a separate concern maintained by
|
|
29
29
|
// `core/src/store.ts`'s write path. See tag-schemas.ts's `VALID_FIELD_TYPES`.
|
|
30
|
-
|
|
31
|
-
// string (validated by `tag-schemas.ts`'s `defaultMatchesType` /
|
|
32
|
-
// `schema-defaults.ts`'s `valueMatchesType`), and ISO-8601 strings are
|
|
33
|
-
// lexicographically comparable — the same reason TEXT-stored `updated_at`
|
|
34
|
-
// range queries already work — so `gt`/`gte`/`lt`/`lte`, `date_filter`, and
|
|
35
|
-
// `order_by` all fall out of the generic TEXT-column machinery with no
|
|
36
|
-
// type-specific SQL.
|
|
37
|
-
export type FieldType = "string" | "integer" | "boolean" | "reference" | "date";
|
|
30
|
+
export type FieldType = "string" | "integer" | "boolean" | "reference";
|
|
38
31
|
|
|
39
32
|
export const TYPE_MAP: Record<FieldType, SqliteType> = {
|
|
40
33
|
string: "TEXT",
|
|
41
34
|
integer: "INTEGER",
|
|
42
35
|
boolean: "INTEGER",
|
|
43
36
|
reference: "TEXT",
|
|
44
|
-
date: "TEXT",
|
|
45
37
|
};
|
|
46
38
|
|
|
47
39
|
export interface IndexedField {
|