@hraness/sponge 0.2.5 → 0.3.0
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 +23 -10
- package/bin/sponge.js +8 -7
- package/dist/contracts/index.js +24 -6
- package/dist/contracts/validate.js +106 -29
- package/dist/migrations/008.d.ts +3 -0
- package/dist/migrations/008.js +5 -0
- package/dist/migrations/009.d.ts +3 -0
- package/dist/migrations/009.js +8 -0
- package/dist/migrations/010.d.ts +3 -0
- package/dist/migrations/010.js +11 -0
- package/dist/migrations/index.d.ts +15 -0
- package/dist/migrations/index.js +39 -0
- package/dist/src/acquisition/capture.js +87 -28
- package/dist/src/acquisition/cleanup.d.ts +0 -4
- package/dist/src/acquisition/cleanup.js +3 -5
- package/dist/src/acquisition/errors.js +17 -2
- package/dist/src/acquisition/files.d.ts +0 -1
- package/dist/src/acquisition/files.js +14 -11
- package/dist/src/acquisition/index.d.ts +2 -3
- package/dist/src/acquisition/index.js +1 -2
- package/dist/src/acquisition/lock.js +1 -1
- package/dist/src/acquisition/normalize.js +57 -18
- package/dist/src/acquisition/pins.js +22 -4
- package/dist/src/acquisition/process.js +67 -29
- package/dist/src/acquisition/runtime.d.ts +5 -7
- package/dist/src/acquisition/runtime.js +129 -68
- package/dist/src/acquisition/verify-helper.js +10 -3
- package/dist/src/annotations/quote.js +40 -12
- package/dist/src/annotations/store.d.ts +0 -1
- package/dist/src/annotations/store.js +66 -14
- package/dist/src/app/article.d.ts +2 -1
- package/dist/src/app/article.js +66 -70
- package/dist/src/app/bundle-files.d.ts +0 -4
- package/dist/src/app/bundle-files.js +11 -14
- package/dist/src/app/markdown.js +18 -6
- package/dist/src/app/source.d.ts +0 -4
- package/dist/src/app/source.js +18 -14
- package/dist/src/cli/arguments.d.ts +2 -8
- package/dist/src/cli/arguments.js +67 -80
- package/dist/src/cli/commands.d.ts +42 -0
- package/dist/src/cli/commands.js +795 -0
- package/dist/src/cli/config.js +12 -9
- package/dist/src/cli/digest.d.ts +1 -1
- package/dist/src/cli/digest.js +39 -17
- package/dist/src/cli/import.js +25 -4
- package/dist/src/cli/indexing.d.ts +2 -0
- package/dist/src/cli/indexing.js +26 -9
- package/dist/src/cli/main.js +47 -386
- package/dist/src/cli/portability.d.ts +0 -2
- package/dist/src/cli/portability.js +13 -8
- package/dist/src/cli/queue.js +12 -8
- package/dist/src/cli/runtimes.d.ts +1 -3
- package/dist/src/cli/runtimes.js +13 -6
- package/dist/src/cli/terminal.js +1 -1
- package/dist/src/cli/worker.d.ts +7 -0
- package/dist/src/cli/worker.js +54 -15
- package/dist/src/derivations/kinds.d.ts +34 -0
- package/dist/src/derivations/kinds.js +14 -0
- package/dist/src/derivations/types.d.ts +48 -0
- package/dist/src/derivations/types.js +1 -0
- package/dist/src/digest/derivation.d.ts +25 -0
- package/dist/src/digest/derivation.js +124 -0
- package/dist/src/digest/editorial.d.ts +10 -46
- package/dist/src/digest/editorial.js +73 -59
- package/dist/src/digest/endpoint.js +63 -27
- package/dist/src/digest/pipeline.d.ts +53 -32
- package/dist/src/digest/pipeline.js +357 -125
- package/dist/src/digest/schema.d.ts +44 -17
- package/dist/src/digest/schema.js +132 -44
- package/dist/src/errors.d.ts +46 -0
- package/dist/src/errors.js +117 -0
- package/dist/src/identity/query-policy.d.ts +0 -5
- package/dist/src/identity/query-policy.js +61 -9
- package/dist/src/identity/uri.d.ts +6 -5
- package/dist/src/identity/uri.js +37 -18
- package/dist/src/identity/visibility.d.ts +11 -1
- package/dist/src/identity/visibility.js +81 -17
- package/dist/src/importers/apply.js +104 -36
- package/dist/src/importers/custody.js +27 -9
- package/dist/src/importers/inspect.js +125 -38
- package/dist/src/importers/jungle-digest.d.ts +31 -24
- package/dist/src/importers/jungle-digest.js +217 -115
- package/dist/src/importers/jungle-store.d.ts +20 -11
- package/dist/src/importers/jungle-store.js +136 -41
- package/dist/src/importers/jungle.d.ts +32 -16
- package/dist/src/importers/jungle.js +145 -32
- package/dist/src/importers/manifest.js +57 -21
- package/dist/src/importers/verify-helper.js +18 -4
- package/dist/src/indexing/image.js +29 -10
- package/dist/src/indexing/index.d.ts +37 -6
- package/dist/src/indexing/index.js +360 -124
- package/dist/src/indexing/jobs.js +156 -47
- package/dist/src/indexing/prune-run.d.ts +2 -0
- package/dist/src/indexing/prune-run.js +69 -26
- package/dist/src/indexing/prune.d.ts +12 -3
- package/dist/src/indexing/prune.js +85 -35
- package/dist/src/indexing/runner.d.ts +2 -1
- package/dist/src/indexing/runner.js +83 -40
- package/dist/src/indexing/upgrade.d.ts +9 -0
- package/dist/src/indexing/upgrade.js +79 -0
- package/dist/src/inference/asr/bridge.js +6 -2
- package/dist/src/inference/asr/protocol.js +109 -19
- package/dist/src/inference/asr/runtime.js +58 -21
- package/dist/src/inference/asr/windows.js +9 -5
- package/dist/src/inference/embedding/index.d.ts +2 -6
- package/dist/src/inference/embedding/index.js +89 -29
- package/dist/src/ingest/attempt.d.ts +29 -0
- package/dist/src/ingest/attempt.js +55 -0
- package/dist/src/media/capture-helper.js +7 -2
- package/dist/src/media/capture.d.ts +2 -1
- package/dist/src/media/capture.js +124 -43
- package/dist/src/media/handler.d.ts +4 -2
- package/dist/src/media/handler.js +88 -70
- package/dist/src/media/transcribe.js +63 -21
- package/dist/src/metadata/article.js +49 -17
- package/dist/src/models/artifacts.d.ts +10 -8
- package/dist/src/models/artifacts.js +237 -106
- package/dist/src/models/catalog.d.ts +2 -5
- package/dist/src/models/catalog.js +94 -25
- package/dist/src/models/download.js +55 -15
- package/dist/src/models/runtime.d.ts +0 -2
- package/dist/src/models/runtime.js +69 -33
- package/dist/src/pdf/capture-helper.js +3 -1
- package/dist/src/pdf/capture.d.ts +2 -1
- package/dist/src/pdf/capture.js +95 -27
- package/dist/src/pdf/errors.js +12 -1
- package/dist/src/pdf/handler.d.ts +2 -1
- package/dist/src/pdf/handler.js +70 -71
- package/dist/src/pdf/index.d.ts +1 -3
- package/dist/src/pdf/index.js +0 -2
- package/dist/src/pdf/input.js +12 -7
- package/dist/src/pdf/normalize.js +80 -21
- package/dist/src/pdf/source-identity.js +3 -2
- package/dist/src/pdf/source.js +12 -8
- package/dist/src/pdf/verify-helper.js +15 -3
- package/dist/src/portability/backup.d.ts +2 -9
- package/dist/src/portability/backup.js +108 -22
- package/dist/src/portability/database.js +51 -17
- package/dist/src/portability/export.js +35 -9
- package/dist/src/portability/files.d.ts +1 -4
- package/dist/src/portability/files.js +127 -67
- package/dist/src/portability/gc.js +65 -22
- package/dist/src/publish/component.js +1 -1
- package/dist/src/publish/feed.d.ts +2 -2
- package/dist/src/publish/feed.js +75 -29
- package/dist/src/publish/identity.d.ts +5 -1
- package/dist/src/publish/identity.js +31 -11
- package/dist/src/publish/index.d.ts +2 -3
- package/dist/src/publish/index.js +34 -21
- package/dist/src/publish/projection.d.ts +2 -9
- package/dist/src/publish/projection.js +21 -14
- package/dist/src/search/extension.js +3 -1
- package/dist/src/search/hybrid.d.ts +3 -8
- package/dist/src/search/hybrid.js +45 -11
- package/dist/src/search/lexical.js +18 -4
- package/dist/src/search/query.js +56 -25
- package/dist/src/search/vector.js +37 -10
- package/dist/src/service/launch-agent.d.ts +5 -3
- package/dist/src/service/launch-agent.js +272 -83
- package/dist/src/service/lifetime.js +47 -14
- package/dist/src/service/loop.d.ts +3 -3
- package/dist/src/service/loop.js +47 -19
- package/dist/src/store/annotations.d.ts +32 -0
- package/dist/src/store/annotations.js +44 -0
- package/dist/src/store/backups.d.ts +18 -0
- package/dist/src/store/backups.js +110 -0
- package/dist/src/store/blobs.d.ts +24 -0
- package/dist/src/store/blobs.js +139 -0
- package/dist/src/store/changes.d.ts +5 -12
- package/dist/src/store/changes.js +108 -56
- package/dist/src/store/context.d.ts +15 -0
- package/dist/src/store/context.js +19 -0
- package/dist/src/store/derivations.d.ts +42 -0
- package/dist/src/store/derivations.js +104 -0
- package/dist/src/store/files.d.ts +0 -2
- package/dist/src/store/files.js +19 -24
- package/dist/src/store/ids.d.ts +30 -0
- package/dist/src/store/ids.js +34 -0
- package/dist/src/store/imports.d.ts +26 -0
- package/dist/src/store/imports.js +57 -0
- package/dist/src/store/index.d.ts +3 -186
- package/dist/src/store/index.js +2 -809
- package/dist/src/store/lease.d.ts +20 -0
- package/dist/src/store/lease.js +62 -0
- package/dist/src/store/library.d.ts +75 -0
- package/dist/src/store/library.js +174 -0
- package/dist/src/store/open.d.ts +7 -0
- package/dist/src/store/open.js +183 -0
- package/dist/src/store/queue.d.ts +65 -0
- package/dist/src/store/queue.js +327 -0
- package/dist/src/store/revisions.d.ts +12 -0
- package/dist/src/store/revisions.js +189 -0
- package/dist/src/store/search-index.d.ts +63 -0
- package/dist/src/store/search-index.js +190 -0
- package/dist/src/store/sync-ready.d.ts +6 -0
- package/dist/src/store/sync-ready.js +121 -0
- package/dist/src/store/types.d.ts +1 -5
- package/dist/src/store/types.js +1 -8
- package/dist/src/util/canonical.d.ts +2 -0
- package/dist/src/util/canonical.js +17 -0
- package/dist/src/util/exact.d.ts +2 -0
- package/dist/src/util/exact.js +9 -0
- package/dist/src/util/fsync.d.ts +4 -0
- package/dist/src/util/fsync.js +22 -0
- package/dist/src/util/hash.d.ts +4 -0
- package/dist/src/util/hash.js +8 -0
- package/dist/src/worker/basic.d.ts +0 -1
- package/dist/src/worker/basic.js +23 -7
- package/dist/src/worker/custody.d.ts +4 -1
- package/dist/src/worker/custody.js +111 -38
- package/dist/src/worker/engine.d.ts +2 -1
- package/dist/src/worker/engine.js +42 -20
- package/dist/src/worker/identity.js +13 -5
- package/dist/src/worker/journal.d.ts +1 -1
- package/dist/src/worker/journal.js +54 -24
- package/dist/src/worker/lock.d.ts +18 -0
- package/dist/src/worker/lock.js +196 -0
- package/dist/src/worker/runtime-gc.d.ts +4 -3
- package/dist/src/worker/runtime-gc.js +68 -41
- package/dist/src/worker/supervisor-child.js +19 -6
- package/dist/src/worker/supervisor.js +41 -8
- package/native/runtime-manifest.json +4 -4
- package/package.json +10 -2
- package/dist/src/digest/store.d.ts +0 -57
- package/dist/src/digest/store.js +0 -77
- package/dist/src/store/foundation.d.ts +0 -7
- package/dist/src/store/foundation.js +0 -7
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { DatabaseSync } from 'node:sqlite';
|
|
2
|
-
import { type DigestOptions, type DigestV1 } from './schema.js';
|
|
3
|
-
import { type ReviewStatus } from '../store/changes.js';
|
|
4
|
-
export type { ReviewStatus };
|
|
5
|
-
/** Per-field review of a digest. Only accepted fields can ever be published. */
|
|
6
|
-
export interface DigestReview {
|
|
7
|
-
gist?: ReviewStatus;
|
|
8
|
-
ideas?: (ReviewStatus | null)[];
|
|
9
|
-
quotes?: (ReviewStatus | null)[][];
|
|
10
|
-
}
|
|
11
|
-
export interface Derivation {
|
|
12
|
-
id: string;
|
|
13
|
-
itemId: string;
|
|
14
|
-
revisionId: string;
|
|
15
|
-
kind: 'digest';
|
|
16
|
-
producer: unknown;
|
|
17
|
-
inputHash: string;
|
|
18
|
-
output: DigestV1;
|
|
19
|
-
review: DigestReview;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
}
|
|
22
|
-
/** A parsed digest serialized in fixed key order, so key order never makes a different object. */
|
|
23
|
-
export declare function canonicalDigest(d: DigestV1): string;
|
|
24
|
-
/** Content address of a derivation: the same output from the same input is the same immutable object on every device. */
|
|
25
|
-
export declare const derivationId: (revisionId: string, kind: string, inputHash: string, output: string) => string;
|
|
26
|
-
/**
|
|
27
|
-
* Store a draft digest only when every v1 rule passes against the revision it was made from.
|
|
28
|
-
* Drafts are immutable data, not change-log entries; a different output is a new object.
|
|
29
|
-
*/
|
|
30
|
-
export declare function putDigest(db: DatabaseSync, input: {
|
|
31
|
-
itemId: string;
|
|
32
|
-
revisionId: string;
|
|
33
|
-
producer: Record<string, unknown>;
|
|
34
|
-
inputHash: string;
|
|
35
|
-
output: unknown;
|
|
36
|
-
options?: DigestOptions;
|
|
37
|
-
}): {
|
|
38
|
-
id: string;
|
|
39
|
-
duplicate: boolean;
|
|
40
|
-
};
|
|
41
|
-
/** The newest digest made from the item's current revision. */
|
|
42
|
-
export declare function currentDigest(db: DatabaseSync, itemId: string): Derivation | undefined;
|
|
43
|
-
export declare function readDigest(db: DatabaseSync, id: string): Derivation | undefined;
|
|
44
|
-
/** The newest stored digest for exactly these inputs, so a rerun reuses it instead of asking the model again. */
|
|
45
|
-
export declare function findDigest(db: DatabaseSync, revisionId: string, inputHash: string): Derivation | undefined;
|
|
46
|
-
/** Review fields of a digest. Each changed path is its own change: `review.gist`, `review.ideas.<i>`, `review.quotes.<i>.<j>`. */
|
|
47
|
-
export declare function reviewDigest(db: DatabaseSync, id: string, review: DigestReview): Derivation;
|
|
48
|
-
/** The accepted subset of a digest. Rejected or unreviewed fields never leave the device. */
|
|
49
|
-
export declare function acceptedDigest(d: Derivation): {
|
|
50
|
-
lead?: string;
|
|
51
|
-
ideas: {
|
|
52
|
-
claim: string;
|
|
53
|
-
detail: string;
|
|
54
|
-
kind: string;
|
|
55
|
-
quotes: string[];
|
|
56
|
-
}[];
|
|
57
|
-
} | undefined;
|
package/dist/src/digest/store.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { checkDigest, parseDigest } from './schema.js';
|
|
2
|
-
import { markdownFor } from '../annotations/store.js';
|
|
3
|
-
import { mutate } from '../store/changes.js';
|
|
4
|
-
import { StoreError } from '../store/types.js';
|
|
5
|
-
import { digest, hash } from '../store/files.js';
|
|
6
|
-
const now = () => new Date().toISOString();
|
|
7
|
-
const fail = (code = 'invalid-input') => { throw new StoreError(code); };
|
|
8
|
-
/** A parsed digest serialized in fixed key order, so key order never makes a different object. */
|
|
9
|
-
export function canonicalDigest(d) {
|
|
10
|
-
return JSON.stringify({ schemaVersion: d.schemaVersion, form: d.form, gist: { lead: d.gist.lead, ...(d.gist.context !== undefined ? { context: d.gist.context } : {}) }, ideas: d.ideas.map(i => ({ claim: i.claim, detail: i.detail, kind: i.kind, voice: i.voice.type === 'author' ? { type: 'author' } : { type: i.voice.type, name: i.voice.name }, quotes: i.quotes.map(q => ({ text: q.text, ...(q.speaker !== undefined ? { speaker: q.speaker } : {}), ...(q.locator ? { locator: q.locator.type === 'timestamp' ? { type: 'timestamp', ms: q.locator.ms } : { type: 'page', page: q.locator.page } } : {}) })) })), tags: [...d.tags] });
|
|
11
|
-
}
|
|
12
|
-
/** Content address of a derivation: the same output from the same input is the same immutable object on every device. */
|
|
13
|
-
export const derivationId = (revisionId, kind, inputHash, output) => digest(JSON.stringify(['derivation-v1', revisionId, kind, inputHash, output]));
|
|
14
|
-
/**
|
|
15
|
-
* Store a draft digest only when every v1 rule passes against the revision it was made from.
|
|
16
|
-
* Drafts are immutable data, not change-log entries; a different output is a new object.
|
|
17
|
-
*/
|
|
18
|
-
export function putDigest(db, input) {
|
|
19
|
-
hash(input.inputHash);
|
|
20
|
-
const producer = JSON.stringify(input.producer);
|
|
21
|
-
if (!producer || Buffer.byteLength(producer) > 4096)
|
|
22
|
-
fail();
|
|
23
|
-
const revision = db.prepare('SELECT item_id FROM revisions WHERE id=?').get(input.revisionId);
|
|
24
|
-
if (revision?.item_id !== input.itemId)
|
|
25
|
-
fail('unavailable');
|
|
26
|
-
const parsed = parseDigest(input.output);
|
|
27
|
-
if (!parsed.digest)
|
|
28
|
-
throw Object.assign(new StoreError('invalid-input'), { issues: parsed.issues });
|
|
29
|
-
const check = checkDigest(parsed.digest, markdownFor(db, input.revisionId), input.options);
|
|
30
|
-
if (!check.ok)
|
|
31
|
-
throw Object.assign(new StoreError('invalid-input'), { issues: check.issues });
|
|
32
|
-
const output = canonicalDigest(parsed.digest);
|
|
33
|
-
if (Buffer.byteLength(output) > 65536)
|
|
34
|
-
fail();
|
|
35
|
-
const id = derivationId(input.revisionId, 'digest', input.inputHash, output);
|
|
36
|
-
if (db.prepare('SELECT 1 FROM derivations WHERE id=?').get(id))
|
|
37
|
-
return { id, duplicate: true };
|
|
38
|
-
db.prepare("INSERT INTO derivations(id,item_id,revision_id,kind,schema_version,producer_json,input_hash,output_json,created_at) VALUES(?,?,?,'digest',1,?,?,?,?)").run(id, input.itemId, input.revisionId, producer, input.inputHash, output, now());
|
|
39
|
-
return { id, duplicate: false };
|
|
40
|
-
}
|
|
41
|
-
function derivationRow(r) { return { id: String(r.id), itemId: String(r.item_id), revisionId: String(r.revision_id), kind: 'digest', producer: JSON.parse(String(r.producer_json)), inputHash: String(r.input_hash), output: JSON.parse(String(r.output_json)), review: JSON.parse(String(r.review_json)), createdAt: String(r.created_at) }; }
|
|
42
|
-
/** The newest digest made from the item's current revision. */
|
|
43
|
-
export function currentDigest(db, itemId) {
|
|
44
|
-
const r = db.prepare("SELECT d.* FROM derivations d JOIN items i ON i.id=d.item_id AND i.current_revision=d.revision_id WHERE d.item_id=? AND d.kind='digest' ORDER BY d.created_at DESC,d.rowid DESC LIMIT 1").get(itemId);
|
|
45
|
-
return r ? derivationRow(r) : undefined;
|
|
46
|
-
}
|
|
47
|
-
export function readDigest(db, id) { const r = db.prepare("SELECT * FROM derivations WHERE id=? AND kind='digest'").get(id); return r ? derivationRow(r) : undefined; }
|
|
48
|
-
/** The newest stored digest for exactly these inputs, so a rerun reuses it instead of asking the model again. */
|
|
49
|
-
export function findDigest(db, revisionId, inputHash) { hash(inputHash); const r = db.prepare("SELECT * FROM derivations WHERE revision_id=? AND kind='digest' AND input_hash=? ORDER BY created_at DESC,rowid DESC LIMIT 1").get(revisionId, inputHash); return r ? derivationRow(r) : undefined; }
|
|
50
|
-
/** Review fields of a digest. Each changed path is its own change: `review.gist`, `review.ideas.<i>`, `review.quotes.<i>.<j>`. */
|
|
51
|
-
export function reviewDigest(db, id, review) {
|
|
52
|
-
const row = db.prepare("SELECT * FROM derivations WHERE id=? AND kind='digest'").get(id) ?? fail('unavailable'), d = derivationRow(row);
|
|
53
|
-
const status = (v) => v === null || v === 'accepted' || v === 'rejected';
|
|
54
|
-
if (typeof review !== 'object' || review === null || Object.keys(review).some(k => !['gist', 'ideas', 'quotes'].includes(k)))
|
|
55
|
-
fail();
|
|
56
|
-
if (review.gist !== undefined && review.gist !== 'accepted' && review.gist !== 'rejected')
|
|
57
|
-
fail();
|
|
58
|
-
if (review.ideas !== undefined && (!Array.isArray(review.ideas) || review.ideas.length !== d.output.ideas.length || !review.ideas.every(status)))
|
|
59
|
-
fail();
|
|
60
|
-
if (review.quotes !== undefined && (!Array.isArray(review.quotes) || review.quotes.length !== d.output.ideas.length || review.quotes.some((q, i) => !Array.isArray(q) || q.length !== d.output.ideas[i].quotes.length || !q.every(status))))
|
|
61
|
-
fail();
|
|
62
|
-
const paths = [];
|
|
63
|
-
if (review.gist !== undefined)
|
|
64
|
-
paths.push(['review.gist', review.gist, d.review.gist ?? null]);
|
|
65
|
-
review.ideas?.forEach((v, i) => paths.push([`review.ideas.${i}`, v, d.review.ideas?.[i] ?? null]));
|
|
66
|
-
review.quotes?.forEach((q, i) => q.forEach((v, j) => paths.push([`review.quotes.${i}.${j}`, v, d.review.quotes?.[i]?.[j] ?? null])));
|
|
67
|
-
for (const [path, next, prior] of paths)
|
|
68
|
-
if (next !== prior)
|
|
69
|
-
mutate(db, 'derivation', id, path, next);
|
|
70
|
-
return derivationRow(db.prepare('SELECT * FROM derivations WHERE id=?').get(id));
|
|
71
|
-
}
|
|
72
|
-
/** The accepted subset of a digest. Rejected or unreviewed fields never leave the device. */
|
|
73
|
-
export function acceptedDigest(d) {
|
|
74
|
-
const ideas = d.output.ideas.flatMap((idea, i) => d.review.ideas?.[i] === 'accepted' ? [{ claim: idea.claim, detail: idea.detail, kind: idea.kind, quotes: idea.quotes.filter((_, j) => d.review.quotes?.[i]?.[j] === 'accepted').map(q => q.text) }] : []);
|
|
75
|
-
const lead = d.review.gist === 'accepted' ? d.output.gist.lead : undefined;
|
|
76
|
-
return lead || ideas.length ? { ...(lead ? { lead } : {}), ideas } : undefined;
|
|
77
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Sync and publishing foundation, split by concern; this barrel keeps existing imports working. See docs/decisions/sync-and-publishing.md. */
|
|
2
|
-
export { applyChange, append, listChanges, mutate, seedChanges, setReviewPath, sourceRefId, maxChangeBytes, type Change, type Entity, type LoggedChange } from './changes.js';
|
|
3
|
-
export { backfillUris, itemUris, itemsForUri, setVisibility, syncUris, visibility, type Visibility, type VisibilityState } from '../identity/visibility.js';
|
|
4
|
-
export { addComment, addHighlight, deleteAnnotation, importNote, listAnnotations, markdownFor, readAnnotation, setReadingState, updateAnnotation, type Annotation } from '../annotations/store.js';
|
|
5
|
-
export { acceptedDigest, canonicalDigest, currentDigest, derivationId, findDigest, putDigest, readDigest, reviewDigest, type Derivation, type DigestReview, type ReviewStatus } from '../digest/store.js';
|
|
6
|
-
export { currentEditorial, listEditorials, publicEditorial, putEditorial, readEditorial, reviewEditorial, type Editorial } from '../digest/editorial.js';
|
|
7
|
-
export { publicProjection, type PublicEntry } from '../publish/projection.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Sync and publishing foundation, split by concern; this barrel keeps existing imports working. See docs/decisions/sync-and-publishing.md. */
|
|
2
|
-
export { applyChange, append, listChanges, mutate, seedChanges, setReviewPath, sourceRefId, maxChangeBytes } from './changes.js';
|
|
3
|
-
export { backfillUris, itemUris, itemsForUri, setVisibility, syncUris, visibility } from '../identity/visibility.js';
|
|
4
|
-
export { addComment, addHighlight, deleteAnnotation, importNote, listAnnotations, markdownFor, readAnnotation, setReadingState, updateAnnotation } from '../annotations/store.js';
|
|
5
|
-
export { acceptedDigest, canonicalDigest, currentDigest, derivationId, findDigest, putDigest, readDigest, reviewDigest } from '../digest/store.js';
|
|
6
|
-
export { currentEditorial, listEditorials, publicEditorial, putEditorial, readEditorial, reviewEditorial } from '../digest/editorial.js';
|
|
7
|
-
export { publicProjection } from '../publish/projection.js';
|