@happyvertical/smrt-ingestion 0.0.0-stage → 0.55.6
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/AGENTS.md +35 -0
- package/CLAUDE.md +1 -0
- package/EXTRACTION.md +120 -0
- package/LICENSE +7 -0
- package/PROPOSALS.md +173 -0
- package/README.md +150 -2
- package/agents/execution.md +132 -0
- package/dist/__smrt-register__.d.ts +2 -0
- package/dist/__smrt-register__.d.ts.map +1 -0
- package/dist/chunks/execution-C6HJvl9e.js +7667 -0
- package/dist/chunks/execution-C6HJvl9e.js.map +1 -0
- package/dist/chunks/execution-internal-DWteDHM2.js +7 -0
- package/dist/chunks/execution-internal-DWteDHM2.js.map +1 -0
- package/dist/chunks/extraction-bseWZuWN.js +293 -0
- package/dist/chunks/extraction-bseWZuWN.js.map +1 -0
- package/dist/chunks/extraction-providers-C66ADDVe.js +433 -0
- package/dist/chunks/extraction-providers-C66ADDVe.js.map +1 -0
- package/dist/dto.d.ts +54 -0
- package/dist/dto.d.ts.map +1 -0
- package/dist/dto.js +0 -0
- package/dist/execution-contracts.d.ts +131 -0
- package/dist/execution-contracts.d.ts.map +1 -0
- package/dist/execution-dto.d.ts +70 -0
- package/dist/execution-dto.d.ts.map +1 -0
- package/dist/execution-internal.d.ts +7 -0
- package/dist/execution-internal.d.ts.map +1 -0
- package/dist/execution.d.ts +64 -0
- package/dist/execution.d.ts.map +1 -0
- package/dist/execution.js +2 -0
- package/dist/extraction-providers.d.ts +35 -0
- package/dist/extraction-providers.d.ts.map +1 -0
- package/dist/extraction-types.d.ts +94 -0
- package/dist/extraction-types.d.ts.map +1 -0
- package/dist/extraction-worker.d.ts +2 -0
- package/dist/extraction-worker.d.ts.map +1 -0
- package/dist/extraction-worker.js +81 -0
- package/dist/extraction-worker.js.map +1 -0
- package/dist/extraction.d.ts +49 -0
- package/dist/extraction.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/manifest.json +4091 -0
- package/dist/models.d.ts +186 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +923 -0
- package/dist/models.js.map +1 -0
- package/dist/policy.d.ts +46 -0
- package/dist/policy.d.ts.map +1 -0
- package/dist/proposal-contracts.d.ts +85 -0
- package/dist/proposal-contracts.d.ts.map +1 -0
- package/dist/proposal-dto.d.ts +120 -0
- package/dist/proposal-dto.d.ts.map +1 -0
- package/dist/proposal-sdk.d.ts +12 -0
- package/dist/proposal-sdk.d.ts.map +1 -0
- package/dist/proposal-validation.d.ts +188 -0
- package/dist/proposal-validation.d.ts.map +1 -0
- package/dist/proposals.d.ts +41 -0
- package/dist/proposals.d.ts.map +1 -0
- package/dist/proposals.js +865 -0
- package/dist/proposals.js.map +1 -0
- package/dist/server.d.ts +200 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +1588 -0
- package/dist/server.js.map +1 -0
- package/dist/smrt-knowledge.json +1621 -0
- package/dist/sources/common.d.ts +32 -0
- package/dist/sources/common.d.ts.map +1 -0
- package/dist/sources/email.d.ts +40 -0
- package/dist/sources/email.d.ts.map +1 -0
- package/dist/sources/http.d.ts +30 -0
- package/dist/sources/http.d.ts.map +1 -0
- package/dist/sources/index.d.ts +8 -0
- package/dist/sources/index.d.ts.map +1 -0
- package/dist/sources/watch-folder.d.ts +27 -0
- package/dist/sources/watch-folder.d.ts.map +1 -0
- package/package.json +86 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReceiptResult } from '../dto.js';
|
|
2
|
+
import type { IngestionService, IntakePart, ReceiveInput } from '../server.js';
|
|
3
|
+
/** Host configuration, reconstructed from authenticated session/account state. */
|
|
4
|
+
export interface SourceBinding {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
service: Pick<IngestionService, 'receive'>;
|
|
7
|
+
sourceId: string;
|
|
8
|
+
sourceVersion: string;
|
|
9
|
+
capturedCeiling: ReceiveInput['capturedCeiling'];
|
|
10
|
+
retention: ReceiveInput['retention'];
|
|
11
|
+
limits: ReceiveInput['limits'];
|
|
12
|
+
allowedMediaTypes: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export type SourceResult = ReceiptResult | {
|
|
15
|
+
kind: 'rejected';
|
|
16
|
+
category: 'authentication' | 'unsupported_type' | 'unavailable_bytes';
|
|
17
|
+
};
|
|
18
|
+
export declare class SourceInputError extends Error {
|
|
19
|
+
readonly category: 'invalid' | 'limit' | 'unsupported_type' | 'unavailable_bytes';
|
|
20
|
+
constructor(category: 'invalid' | 'limit' | 'unsupported_type' | 'unavailable_bytes');
|
|
21
|
+
}
|
|
22
|
+
export declare function record(value: unknown): Record<string, unknown>;
|
|
23
|
+
export declare function keys(value: Record<string, unknown>, allowed: string[]): void;
|
|
24
|
+
export declare function text(value: unknown): string;
|
|
25
|
+
export declare function timestamp(value: unknown): Date;
|
|
26
|
+
/** Bound bytes before parsing or handing them to the receipt service. */
|
|
27
|
+
export declare function boundedBytes(stream: ReadableStream<Uint8Array> | null, limit: number): Promise<Uint8Array>;
|
|
28
|
+
/** Intake validates signatures; decoding/format correctness belongs to extraction. */
|
|
29
|
+
export declare function validateMedia(bytes: Uint8Array, type: string, allowed: readonly string[]): void;
|
|
30
|
+
export declare function deliver(binding: SourceBinding, deliveryKey: string, deliveredAt: Date, parts: IntakePart[]): Promise<SourceResult>;
|
|
31
|
+
export declare function safeFailure(error: unknown): SourceResult;
|
|
32
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/sources/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE/E,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IACjD,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC/B,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AACD,MAAM,MAAM,YAAY,GACpB,aAAa,GACb;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;CACvE,CAAC;AACN,qBAAa,gBAAiB,SAAQ,KAAK;aAEvB,QAAQ,EACpB,SAAS,GACT,OAAO,GACP,kBAAkB,GAClB,mBAAmB;gBAJP,QAAQ,EACpB,SAAS,GACT,OAAO,GACP,kBAAkB,GAClB,mBAAmB;CAI1B;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAI9D;AACD,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAG5E;AACD,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAI3C;AACD,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI9C;AACD,yEAAyE;AACzE,wBAAsB,YAAY,CAChC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EACzC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,UAAU,CAAC,CAsBrB;AACD,sFAAsF;AACtF,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,SAAS,MAAM,EAAE,GACzB,IAAI,CAmCN;AACD,wBAAsB,OAAO,CAC3B,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,IAAI,EACjB,KAAK,EAAE,UAAU,EAAE,GAClB,OAAO,CAAC,YAAY,CAAC,CA2BvB;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAIxD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type SourceBinding, type SourceResult } from './common.js';
|
|
2
|
+
/** Structural messages-owner seam; EmailAccount.readIntakeMessage implements this contract. */
|
|
3
|
+
export interface EmailIntakeSnapshot {
|
|
4
|
+
accountId: string;
|
|
5
|
+
messageId: string;
|
|
6
|
+
threadId: string;
|
|
7
|
+
inReplyTo: string;
|
|
8
|
+
subject: string;
|
|
9
|
+
text: string;
|
|
10
|
+
html: string;
|
|
11
|
+
date: string;
|
|
12
|
+
attachments: Array<{
|
|
13
|
+
partId: string;
|
|
14
|
+
filename: string;
|
|
15
|
+
mediaType: string;
|
|
16
|
+
bytes: Uint8Array;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export interface EmailDelivery {
|
|
20
|
+
/** Provider/account-unique locator (e.g. folder + UIDVALIDITY + UID), not sender Message-ID alone. */
|
|
21
|
+
locator: string;
|
|
22
|
+
/** Explicit immutable source revision, never an automatically substituted content hash. */
|
|
23
|
+
revision: string;
|
|
24
|
+
checkpoint: string;
|
|
25
|
+
}
|
|
26
|
+
export interface EmailSourceOptions {
|
|
27
|
+
binding: SourceBinding;
|
|
28
|
+
accountId: string;
|
|
29
|
+
readMessage(delivery: EmailDelivery): Promise<EmailIntakeSnapshot>;
|
|
30
|
+
/** Durable host checkpoint; called in input order only after accepted/duplicate. */
|
|
31
|
+
acknowledge(checkpoint: string): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
/** Opt-in intake: hosts enumerate configured accounts and supply resumable provider locators. */
|
|
34
|
+
export declare class EmailSourceAdapter {
|
|
35
|
+
private readonly options;
|
|
36
|
+
constructor(options: EmailSourceOptions);
|
|
37
|
+
receive(delivery: EmailDelivery): Promise<SourceResult>;
|
|
38
|
+
receiveBatch(deliveries: readonly EmailDelivery[]): Promise<SourceResult[]>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/sources/email.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,YAAY,EAGlB,MAAM,aAAa,CAAC;AAErB,+FAA+F;AAC/F,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,KAAK,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,UAAU,CAAC;KACnB,CAAC,CAAC;CACJ;AACD,MAAM,WAAW,aAAa;IAC5B,sGAAsG;IACtG,OAAO,EAAE,MAAM,CAAC;IAChB,2FAA2F;IAC3F,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACnE,oFAAoF;IACpF,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AACD,iGAAiG;AACjG,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAClD,OAAO,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;IA+FvD,YAAY,CAChB,UAAU,EAAE,SAAS,aAAa,EAAE,GACnC,OAAO,CAAC,YAAY,EAAE,CAAC;CAS3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IntakePart } from '../server.js';
|
|
2
|
+
import { type SourceBinding } from './common.js';
|
|
3
|
+
export interface AuthenticatedSource extends SourceBinding {
|
|
4
|
+
/** Explicit wire limit includes multipart framing and capture metadata. */
|
|
5
|
+
maxRequestBytes: number;
|
|
6
|
+
/** Host proves ownership/current access and copies immutable owner bytes. */
|
|
7
|
+
snapshotReference?(reference: {
|
|
8
|
+
owner: 'asset' | 'message';
|
|
9
|
+
id: string;
|
|
10
|
+
version: string;
|
|
11
|
+
}): Promise<IntakePart[]>;
|
|
12
|
+
}
|
|
13
|
+
export interface SourceHttpOptions {
|
|
14
|
+
/** Authenticate and select enabled source from server configuration, never body fields. */
|
|
15
|
+
authenticate(request: Request): Promise<AuthenticatedSource | null>;
|
|
16
|
+
}
|
|
17
|
+
/** Reference Web Request handler; mobile clients reuse their durable UUID Idempotency-Key. */
|
|
18
|
+
export declare function createSourceDeliveryHandler(options: SourceHttpOptions): (request: Request) => Promise<Response>;
|
|
19
|
+
export interface VerifiedVendorDelivery {
|
|
20
|
+
binding: SourceBinding;
|
|
21
|
+
deliveryKey: string;
|
|
22
|
+
deliveredAt: Date;
|
|
23
|
+
parts: IntakePart[];
|
|
24
|
+
}
|
|
25
|
+
/** Vendor implementation owns signature/timestamp verification and replay identity. */
|
|
26
|
+
export declare function createVendorWebhookHandler(options: {
|
|
27
|
+
maxRequestBytes: number;
|
|
28
|
+
verify(request: Request, originalBytes: Uint8Array): Promise<VerifiedVendorDelivery | null>;
|
|
29
|
+
}): (request: Request) => Promise<Response>;
|
|
30
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/sources/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAKL,KAAK,aAAa,EAMnB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,2EAA2E;IAC3E,eAAe,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,iBAAiB,CAAC,CAAC,SAAS,EAAE;QAC5B,KAAK,EAAE,OAAO,GAAG,SAAS,CAAC;QAC3B,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CAC3B;AACD,MAAM,WAAW,iBAAiB;IAChC,2FAA2F;IAC3F,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACrE;AAeD,8FAA8F;AAC9F,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,iBAAiB,GACzB,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CA6IzC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AACD,uFAAuF;AACvF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CACJ,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,UAAU,GACxB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;CAC3C,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAoB1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { SourceBinding, SourceResult } from './common.js';
|
|
2
|
+
export type { EmailDelivery, EmailIntakeSnapshot, EmailSourceOptions, } from './email.js';
|
|
3
|
+
export { EmailSourceAdapter } from './email.js';
|
|
4
|
+
export type { AuthenticatedSource, SourceHttpOptions, VerifiedVendorDelivery, } from './http.js';
|
|
5
|
+
export { createSourceDeliveryHandler, createVendorWebhookHandler, } from './http.js';
|
|
6
|
+
export type { WatchFolderOptions, WatchFolderResult } from './watch-folder.js';
|
|
7
|
+
export { WatchFolderSourceAdapter } from './watch-folder.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sources/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type SourceBinding, type SourceResult } from './common.js';
|
|
2
|
+
export interface WatchFolderOptions {
|
|
3
|
+
binding: SourceBinding;
|
|
4
|
+
/** Private producer directory; claims and processed live on the same filesystem. */
|
|
5
|
+
directory: string;
|
|
6
|
+
stabilityMs: number;
|
|
7
|
+
now?: () => number;
|
|
8
|
+
/** Observability/crash injection. Never receives file content or credentials. */
|
|
9
|
+
checkpoint?(boundary: 'claimed' | 'received', claimId: string): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export interface WatchFolderResult {
|
|
12
|
+
claimId?: string;
|
|
13
|
+
filename: string;
|
|
14
|
+
result: SourceResult;
|
|
15
|
+
}
|
|
16
|
+
/** Files remain in claims until the durable receipt succeeds. A restart safely replays them. */
|
|
17
|
+
export declare class WatchFolderSourceAdapter {
|
|
18
|
+
private readonly options;
|
|
19
|
+
private readonly observations;
|
|
20
|
+
private polling;
|
|
21
|
+
constructor(options: WatchFolderOptions);
|
|
22
|
+
private stable;
|
|
23
|
+
private syncDirectory;
|
|
24
|
+
private importClaim;
|
|
25
|
+
poll(): Promise<WatchFolderResult[]>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=watch-folder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-folder.d.ts","sourceRoot":"","sources":["../../src/sources/watch-folder.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,YAAY,EAElB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,aAAa,CAAC;IACvB,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,iFAAiF;IACjF,UAAU,CAAC,CAAC,QAAQ,EAAE,SAAS,GAAG,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/E;AACD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;CACtB;AAYD,gGAAgG;AAChG,qBAAa,wBAAwB;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkC;IAC/D,OAAO,CAAC,OAAO,CAAS;gBACK,OAAO,EAAE,kBAAkB;YAI1C,MAAM;YAmBN,aAAa;YAQb,WAAW;IAuFnB,IAAI,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;CA2F3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,89 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-ingestion",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.55.6",
|
|
4
|
+
"description": "Durable tenant-scoped intake and evidence foundations",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"agents",
|
|
11
|
+
"AGENTS.md",
|
|
12
|
+
"CLAUDE.md",
|
|
13
|
+
"EXTRACTION.md",
|
|
14
|
+
"PROPOSALS.md"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./dto": {
|
|
22
|
+
"types": "./dist/dto.d.ts",
|
|
23
|
+
"import": "./dist/dto.js"
|
|
24
|
+
},
|
|
25
|
+
"./models": {
|
|
26
|
+
"types": "./dist/models.d.ts",
|
|
27
|
+
"import": "./dist/models.js"
|
|
28
|
+
},
|
|
29
|
+
"./server": {
|
|
30
|
+
"types": "./dist/server.d.ts",
|
|
31
|
+
"import": "./dist/server.js"
|
|
32
|
+
},
|
|
33
|
+
"./manifest": "./dist/manifest.json",
|
|
34
|
+
"./manifest.json": "./dist/manifest.json",
|
|
35
|
+
"./execution": {
|
|
36
|
+
"types": "./dist/execution.d.ts",
|
|
37
|
+
"import": "./dist/execution.js"
|
|
38
|
+
},
|
|
39
|
+
"./proposals": {
|
|
40
|
+
"types": "./dist/proposals.d.ts",
|
|
41
|
+
"import": "./dist/proposals.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@happyvertical/smrt-core": "0.55.6",
|
|
46
|
+
"@happyvertical/smrt-types": "0.55.6",
|
|
47
|
+
"@happyvertical/smrt-tenancy": "0.55.6",
|
|
48
|
+
"@happyvertical/smrt-assets": "0.55.6",
|
|
49
|
+
"@happyvertical/smrt-jobs": "0.55.6",
|
|
50
|
+
"@happyvertical/sql": "^0.102.4",
|
|
51
|
+
"@happyvertical/pdf": "^0.65.9",
|
|
52
|
+
"@happyvertical/ocr": "^0.61.6",
|
|
53
|
+
"@happyvertical/speech": "^0.102.4",
|
|
54
|
+
"@happyvertical/ai": "^0.102.4",
|
|
55
|
+
"sharp": "^0.35.5",
|
|
56
|
+
"@happyvertical/smrt-agents": "0.55.6",
|
|
57
|
+
"@happyvertical/smrt-playbooks": "0.55.6",
|
|
58
|
+
"ajv": "8.20.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@happyvertical/smrt-vitest": "0.55.6",
|
|
62
|
+
"@types/node": "24.13.6",
|
|
63
|
+
"typescript": "6.0.3",
|
|
64
|
+
"vite": "8.1.4",
|
|
65
|
+
"vitest": "4.1.10",
|
|
66
|
+
"@happyvertical/smrt-content": "0.55.6",
|
|
67
|
+
"@happyvertical/smrt-users": "0.55.6"
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"registry": "https://registry.npmjs.org",
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"author": "HappyVertical",
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "https://github.com/happyvertical/smrt.git",
|
|
77
|
+
"directory": "packages/ingestion"
|
|
78
|
+
},
|
|
79
|
+
"scripts": {
|
|
80
|
+
"build": "vite build --mode library && node scripts/check-browser.mjs",
|
|
81
|
+
"test": "vitest run",
|
|
82
|
+
"test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run --config vitest.postgres.config.ts",
|
|
83
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
84
|
+
"test:providers": "vitest run src/extraction.providers.test.ts src/proposals.providers.test.ts",
|
|
85
|
+
"test:components": "node scripts/unavailable-lane.mjs components",
|
|
86
|
+
"test:e2e": "node scripts/unavailable-lane.mjs e2e",
|
|
87
|
+
"test:evaluation": "node scripts/unavailable-lane.mjs evaluation"
|
|
88
|
+
}
|
|
6
89
|
}
|