@openparachute/vault 0.7.3-rc.2 → 0.7.3-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/src/conformance.ts +2 -1
- package/core/src/contract-typed-index.test.ts +4 -3
- package/core/src/core.test.ts +455 -0
- package/core/src/indexed-fields.test.ts +9 -3
- package/core/src/indexed-fields.ts +9 -1
- package/core/src/mcp.ts +24 -4
- package/core/src/schema-defaults.ts +85 -1
- package/core/src/seed-packs.test.ts +117 -1
- package/core/src/seed-packs.ts +176 -0
- package/core/src/store.ts +59 -3
- package/core/src/tag-schemas.ts +27 -12
- package/core/src/types.ts +1 -1
- package/package.json +1 -1
- package/src/contract-errors.test.ts +2 -1
package/core/src/types.ts
CHANGED
|
@@ -450,7 +450,7 @@ export interface Store {
|
|
|
450
450
|
*/
|
|
451
451
|
getNoteByPath(path: string, extension?: string): Promise<Note | null>;
|
|
452
452
|
getNotes(ids: string[]): Promise<Note[]>;
|
|
453
|
-
updateNote(id: string, updates: { content?: string; append?: string; prepend?: string; path?: string; extension?: string; metadata?: Record<string, unknown>; created_at?: string; skipUpdatedAt?: boolean; actor?: string | null; via?: string | null; if_updated_at?: string }): Promise<Note>;
|
|
453
|
+
updateNote(id: string, updates: { content?: string; append?: string; prepend?: string; path?: string; extension?: string; metadata?: Record<string, unknown>; created_at?: string; skipUpdatedAt?: boolean; actor?: string | null; via?: string | null; if_updated_at?: string; tagsForSchemaResolution?: string[] }): Promise<Note>;
|
|
454
454
|
/**
|
|
455
455
|
* Set a note's `created_at` and `updated_at` explicitly. Import-only:
|
|
456
456
|
* used by the portable-md round-trip path to restore timestamps from
|
package/package.json
CHANGED
|
@@ -315,7 +315,7 @@ describe("contract: error taxonomy — #554 (flipped from todo)", () => {
|
|
|
315
315
|
expect(record?.fields ?? null).toBeFalsy();
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
// Positive control — every one of the
|
|
318
|
+
// Positive control — every one of the recognized types (indexable or
|
|
319
319
|
// not) is accepted without complaint.
|
|
320
320
|
it("REST PUT /api/tags/:name accepts every recognized field type", async () => {
|
|
321
321
|
const req = new Request("http://localhost/api/tags/widget", {
|
|
@@ -329,6 +329,7 @@ describe("contract: error taxonomy — #554 (flipped from todo)", () => {
|
|
|
329
329
|
e: { type: "array" },
|
|
330
330
|
f: { type: "object" },
|
|
331
331
|
g: { type: "reference" },
|
|
332
|
+
h: { type: "date" },
|
|
332
333
|
},
|
|
333
334
|
}),
|
|
334
335
|
});
|