@happyvertical/smrt-ingestion 0.55.6 → 0.55.8
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 +13 -3
- package/FEEDBACK.md +156 -0
- package/README.md +15 -3
- package/REVIEW.md +137 -0
- package/dist/chunks/{execution-C6HJvl9e.js → execution-C7sTFXFU.js} +375 -11
- package/dist/chunks/execution-C7sTFXFU.js.map +1 -0
- package/dist/chunks/execution-internal-DWteDHM2.js.map +1 -1
- package/dist/chunks/feedback-C3OHD4sA.js +625 -0
- package/dist/chunks/feedback-C3OHD4sA.js.map +1 -0
- package/dist/chunks/{extraction-bseWZuWN.js → proposal-errors-z24VKWnQ.js} +10 -2
- package/dist/chunks/proposal-errors-z24VKWnQ.js.map +1 -0
- package/dist/dto.d.ts +2 -0
- package/dist/dto.d.ts.map +1 -1
- package/dist/execution-internal.d.ts +3 -1
- package/dist/execution-internal.d.ts.map +1 -1
- package/dist/execution.d.ts +15 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +1 -1
- package/dist/feedback-contracts.d.ts +51 -0
- package/dist/feedback-contracts.d.ts.map +1 -0
- package/dist/feedback-dto.d.ts +106 -0
- package/dist/feedback-dto.d.ts.map +1 -0
- package/dist/feedback-internal.d.ts +19 -0
- package/dist/feedback-internal.d.ts.map +1 -0
- package/dist/feedback.d.ts +54 -0
- package/dist/feedback.d.ts.map +1 -0
- package/dist/manifest.json +34 -1
- package/dist/models.js +1 -1
- package/dist/models.js.map +1 -1
- package/dist/proposal-contracts.d.ts +4 -0
- package/dist/proposal-contracts.d.ts.map +1 -1
- package/dist/proposal-dto.d.ts +4 -0
- package/dist/proposal-dto.d.ts.map +1 -1
- package/dist/proposal-errors.d.ts +5 -0
- package/dist/proposal-errors.d.ts.map +1 -0
- package/dist/proposal-sdk.d.ts.map +1 -1
- package/dist/proposals.d.ts +4 -1
- package/dist/proposals.d.ts.map +1 -1
- package/dist/proposals.js +114 -15
- package/dist/proposals.js.map +1 -1
- package/dist/review-dto.d.ts +115 -0
- package/dist/review-dto.d.ts.map +1 -0
- package/dist/server.d.ts +24 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +146 -54
- package/dist/server.js.map +1 -1
- package/dist/smrt-knowledge.json +97 -14
- package/dist/svelte/components/ActionReview.svelte +232 -0
- package/dist/svelte/components/ActionReview.svelte.d.ts +15 -0
- package/dist/svelte/components/ActionReview.svelte.d.ts.map +1 -0
- package/dist/svelte/components/EvidenceViewer.svelte +31 -0
- package/dist/svelte/components/EvidenceViewer.svelte.d.ts +8 -0
- package/dist/svelte/components/EvidenceViewer.svelte.d.ts.map +1 -0
- package/dist/svelte/components/InboxView.svelte +119 -0
- package/dist/svelte/components/InboxView.svelte.d.ts +9 -0
- package/dist/svelte/components/InboxView.svelte.d.ts.map +1 -0
- package/dist/svelte/components/IntakeInbox.svelte +11 -0
- package/dist/svelte/components/IntakeInbox.svelte.d.ts +10 -0
- package/dist/svelte/components/IntakeInbox.svelte.d.ts.map +1 -0
- package/dist/svelte/components/IntakeReview.svelte +11 -0
- package/dist/svelte/components/IntakeReview.svelte.d.ts +10 -0
- package/dist/svelte/components/IntakeReview.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ReviewView.svelte +243 -0
- package/dist/svelte/components/ReviewView.svelte.d.ts +9 -0
- package/dist/svelte/components/ReviewView.svelte.d.ts.map +1 -0
- package/dist/svelte/i18n.d.ts +72 -0
- package/dist/svelte/i18n.d.ts.map +1 -0
- package/dist/svelte/i18n.js +72 -0
- package/dist/svelte/index.d.ts +5 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +3 -0
- package/dist/svelte/view-utils.d.ts +13 -0
- package/dist/svelte/view-utils.d.ts.map +1 -0
- package/dist/svelte/view-utils.js +96 -0
- package/package.json +49 -22
- package/dist/chunks/execution-C6HJvl9e.js.map +0 -1
- package/dist/chunks/extraction-bseWZuWN.js.map +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineMessages } from '@happyvertical/smrt-ui/i18n';
|
|
2
|
+
export const M = defineMessages({
|
|
3
|
+
'ingestion.planArgs': 'Plan arguments (JSON)',
|
|
4
|
+
'ingestion.editPlan': 'Edit the plan and review its new steps',
|
|
5
|
+
'ingestion.inbox': 'Intake inbox',
|
|
6
|
+
'ingestion.review': 'Review intake',
|
|
7
|
+
'ingestion.loading': 'Loading…',
|
|
8
|
+
'ingestion.error': 'This view is unavailable. Refresh to check current access and revision.',
|
|
9
|
+
'ingestion.refresh': 'Refresh',
|
|
10
|
+
'ingestion.empty': 'No intake items.',
|
|
11
|
+
'ingestion.all': 'All states',
|
|
12
|
+
'ingestion.filter': 'State',
|
|
13
|
+
'ingestion.assignee': 'Assignee ID',
|
|
14
|
+
'ingestion.assign': 'Save assignment',
|
|
15
|
+
'ingestion.unassigned': 'Unassigned',
|
|
16
|
+
'ingestion.upload': 'Upload',
|
|
17
|
+
'ingestion.files': 'Choose intake files',
|
|
18
|
+
'ingestion.filesHelp': 'Select documents, images, email, or audio.',
|
|
19
|
+
'ingestion.more': 'Load more',
|
|
20
|
+
'ingestion.open': 'Review',
|
|
21
|
+
'ingestion.processing': 'Processing',
|
|
22
|
+
'ingestion.unresolved': 'Unresolved',
|
|
23
|
+
'ingestion.waiting': 'Waiting',
|
|
24
|
+
'ingestion.failed': 'Failed',
|
|
25
|
+
'ingestion.deferred': 'Deferred',
|
|
26
|
+
'ingestion.partially_completed': 'Partially completed',
|
|
27
|
+
'ingestion.completed': 'Completed',
|
|
28
|
+
'ingestion.evidence': 'Original evidence',
|
|
29
|
+
'ingestion.original': 'Open original',
|
|
30
|
+
'ingestion.noOriginal': 'Original unavailable',
|
|
31
|
+
'ingestion.extracted': 'Extracted information',
|
|
32
|
+
'ingestion.confidence': 'Reported confidence',
|
|
33
|
+
'ingestion.noConfidence': 'Confidence unavailable',
|
|
34
|
+
'ingestion.proposals': 'Proposed actions',
|
|
35
|
+
'ingestion.preview': 'Prepare review',
|
|
36
|
+
'ingestion.args': 'Exact arguments (JSON)',
|
|
37
|
+
'ingestion.effects': 'Proposed effects',
|
|
38
|
+
'ingestion.approve': 'Approve',
|
|
39
|
+
'ingestion.reject': 'Reject',
|
|
40
|
+
'ingestion.defer': 'Defer',
|
|
41
|
+
'ingestion.correct': 'Save edits for new review',
|
|
42
|
+
'ingestion.apply': 'Apply approved action',
|
|
43
|
+
'ingestion.invalid': 'Enter a valid JSON object or page groups.',
|
|
44
|
+
'ingestion.alternatives': 'Alternatives',
|
|
45
|
+
'ingestion.missing': 'Missing information',
|
|
46
|
+
'ingestion.candidates': 'Authorized destinations',
|
|
47
|
+
'ingestion.search': 'Search destinations',
|
|
48
|
+
'ingestion.query': 'Destination search',
|
|
49
|
+
'ingestion.field': 'Argument field',
|
|
50
|
+
'ingestion.choose': 'Choose destination',
|
|
51
|
+
'ingestion.split': 'Logical page groups (JSON)',
|
|
52
|
+
'ingestion.saveSplit': 'Save split and reprocess',
|
|
53
|
+
'ingestion.result': 'Result',
|
|
54
|
+
'ingestion.stale': 'Stale',
|
|
55
|
+
'ingestion.revoked': 'Access revoked',
|
|
56
|
+
'ingestion.expired': 'Expired',
|
|
57
|
+
'ingestion.unavailable': 'Unavailable',
|
|
58
|
+
'ingestion.feedback': 'Explicit correctness feedback',
|
|
59
|
+
'ingestion.correctJudgment': 'Correct',
|
|
60
|
+
'ingestion.incorrectJudgment': 'Incorrect',
|
|
61
|
+
'ingestion.comment': 'Feedback comment',
|
|
62
|
+
'ingestion.page': 'Page {page}',
|
|
63
|
+
'ingestion.pages': 'Pages {start}–{end}',
|
|
64
|
+
'ingestion.time': '{start}–{end} seconds',
|
|
65
|
+
'ingestion.source': 'Source location',
|
|
66
|
+
'ingestion.truncated': 'More matches exist; refine the search.',
|
|
67
|
+
'ingestion.reviewAgain': 'Edits require a new review before approval.',
|
|
68
|
+
'ingestion.noReviews': 'No saved reviews.',
|
|
69
|
+
'ingestion.state': 'State',
|
|
70
|
+
'ingestion.reason': 'Reason',
|
|
71
|
+
'ingestion.feedbackSent': 'Feedback sent.',
|
|
72
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { Assignment, EvidenceView, InboxEntry, InboxState, IntakeReviewHost, ItemReviewView, LogicalSplitInput, ReviewAction, ReviewPage, } from '../review-dto.js';
|
|
2
|
+
export { default as EvidenceViewer } from './components/EvidenceViewer.svelte';
|
|
3
|
+
export { default as IntakeInbox } from './components/IntakeInbox.svelte';
|
|
4
|
+
export { default as IntakeReview } from './components/IntakeReview.svelte';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/svelte/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EvidenceLocation } from '../extraction-types.js';
|
|
2
|
+
/** Only host-authorized same-origin HTTP URLs may reach original media elements. */
|
|
3
|
+
export declare function evidenceUrl(value?: string, origin?: string): string | undefined;
|
|
4
|
+
export declare function argumentsObject(value: string): Record<string, unknown>;
|
|
5
|
+
export declare function pageGroups(value: string): number[][];
|
|
6
|
+
/** Project useful extraction content; never present internal configuration/provenance JSON. */
|
|
7
|
+
export declare function extractedContent(output: Record<string, unknown>): Array<{
|
|
8
|
+
evidenceId: string;
|
|
9
|
+
text: string;
|
|
10
|
+
location?: EvidenceLocation;
|
|
11
|
+
confidence?: number;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=view-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-utils.d.ts","sourceRoot":"","sources":["../../src/svelte/view-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,oFAAoF;AACpF,wBAAgB,WAAW,CACzB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,GAAG,SAAS,CAmBpB;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKtE;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAcpD;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,CAsED"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** Only host-authorized same-origin HTTP URLs may reach original media elements. */
|
|
2
|
+
export function evidenceUrl(value, origin) {
|
|
3
|
+
if (!value)
|
|
4
|
+
return undefined;
|
|
5
|
+
const base = origin ??
|
|
6
|
+
(typeof window === 'undefined' ? undefined : window.location.origin);
|
|
7
|
+
if (!base)
|
|
8
|
+
return value.startsWith('/') &&
|
|
9
|
+
!value.startsWith('//') &&
|
|
10
|
+
!value.includes('\\')
|
|
11
|
+
? value
|
|
12
|
+
: undefined;
|
|
13
|
+
try {
|
|
14
|
+
const url = new URL(value, base);
|
|
15
|
+
return ['http:', 'https:'].includes(url.protocol) && url.origin === base
|
|
16
|
+
? url.href
|
|
17
|
+
: undefined;
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export function argumentsObject(value) {
|
|
24
|
+
const result = JSON.parse(value);
|
|
25
|
+
if (!result || typeof result !== 'object' || Array.isArray(result))
|
|
26
|
+
throw new Error('Invalid arguments');
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
export function pageGroups(value) {
|
|
30
|
+
const result = JSON.parse(value);
|
|
31
|
+
if (!Array.isArray(result) ||
|
|
32
|
+
!result.length ||
|
|
33
|
+
!result.every((group) => Array.isArray(group) &&
|
|
34
|
+
group.length &&
|
|
35
|
+
group.every((page) => Number.isSafeInteger(page) && page > 0)))
|
|
36
|
+
throw new Error('Invalid groups');
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
/** Project useful extraction content; never present internal configuration/provenance JSON. */
|
|
40
|
+
export function extractedContent(output) {
|
|
41
|
+
const content = [];
|
|
42
|
+
if (!Array.isArray(output.results))
|
|
43
|
+
return content;
|
|
44
|
+
for (const result of output.results) {
|
|
45
|
+
if (!result ||
|
|
46
|
+
typeof result !== 'object' ||
|
|
47
|
+
!result.evidence ||
|
|
48
|
+
typeof result.evidence.id !== 'string' ||
|
|
49
|
+
!Array.isArray(result.segments))
|
|
50
|
+
continue;
|
|
51
|
+
for (const segment of result.segments) {
|
|
52
|
+
if (!segment ||
|
|
53
|
+
typeof segment !== 'object' ||
|
|
54
|
+
typeof segment.text !== 'string')
|
|
55
|
+
continue;
|
|
56
|
+
const value = segment.location;
|
|
57
|
+
let location;
|
|
58
|
+
if (value?.kind === 'source')
|
|
59
|
+
location = { kind: 'source' };
|
|
60
|
+
if (value?.kind === 'page' &&
|
|
61
|
+
Number.isSafeInteger(value.page) &&
|
|
62
|
+
value.page > 0)
|
|
63
|
+
location = { kind: 'page', page: value.page };
|
|
64
|
+
if (value?.kind === 'pages' &&
|
|
65
|
+
Number.isSafeInteger(value.startPage) &&
|
|
66
|
+
value.startPage > 0 &&
|
|
67
|
+
Number.isSafeInteger(value.endPage) &&
|
|
68
|
+
value.endPage >= value.startPage)
|
|
69
|
+
location = {
|
|
70
|
+
kind: 'pages',
|
|
71
|
+
startPage: value.startPage,
|
|
72
|
+
endPage: value.endPage,
|
|
73
|
+
};
|
|
74
|
+
if (value?.kind === 'time' &&
|
|
75
|
+
Number.isFinite(value.startMs) &&
|
|
76
|
+
value.startMs >= 0 &&
|
|
77
|
+
Number.isFinite(value.endMs) &&
|
|
78
|
+
value.endMs >= value.startMs)
|
|
79
|
+
location = { kind: 'time', startMs: value.startMs, endMs: value.endMs };
|
|
80
|
+
const confidence = segment.confidence?.scale === '0-1' &&
|
|
81
|
+
typeof segment.confidence.value === 'number' &&
|
|
82
|
+
Number.isFinite(segment.confidence.value) &&
|
|
83
|
+
segment.confidence.value >= 0 &&
|
|
84
|
+
segment.confidence.value <= 1
|
|
85
|
+
? segment.confidence.value
|
|
86
|
+
: undefined;
|
|
87
|
+
content.push({
|
|
88
|
+
evidenceId: result.evidence.id,
|
|
89
|
+
text: segment.text,
|
|
90
|
+
...(location ? { location } : {}),
|
|
91
|
+
...(confidence !== undefined ? { confidence } : {}),
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return content;
|
|
96
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-ingestion",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.8",
|
|
4
4
|
"description": "Durable tenant-scoped intake and evidence foundations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"AGENTS.md",
|
|
12
12
|
"CLAUDE.md",
|
|
13
13
|
"EXTRACTION.md",
|
|
14
|
-
"PROPOSALS.md"
|
|
14
|
+
"PROPOSALS.md",
|
|
15
|
+
"REVIEW.md",
|
|
16
|
+
"FEEDBACK.md"
|
|
15
17
|
],
|
|
16
18
|
"exports": {
|
|
17
19
|
".": {
|
|
@@ -39,32 +41,49 @@
|
|
|
39
41
|
"./proposals": {
|
|
40
42
|
"types": "./dist/proposals.d.ts",
|
|
41
43
|
"import": "./dist/proposals.js"
|
|
44
|
+
},
|
|
45
|
+
"./svelte": {
|
|
46
|
+
"types": "./dist/svelte/index.d.ts",
|
|
47
|
+
"svelte": "./dist/svelte/index.js",
|
|
48
|
+
"import": "./dist/svelte/index.js",
|
|
49
|
+
"default": "./dist/svelte/index.js"
|
|
42
50
|
}
|
|
43
51
|
},
|
|
44
52
|
"dependencies": {
|
|
45
|
-
"@happyvertical/smrt-core": "0.55.
|
|
46
|
-
"@happyvertical/smrt-types": "0.55.
|
|
47
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
48
|
-
"@happyvertical/smrt-assets": "0.55.
|
|
49
|
-
"@happyvertical/smrt-jobs": "0.55.
|
|
50
|
-
"@happyvertical/sql": "^0.
|
|
53
|
+
"@happyvertical/smrt-core": "0.55.8",
|
|
54
|
+
"@happyvertical/smrt-types": "0.55.8",
|
|
55
|
+
"@happyvertical/smrt-tenancy": "0.55.8",
|
|
56
|
+
"@happyvertical/smrt-assets": "0.55.8",
|
|
57
|
+
"@happyvertical/smrt-jobs": "0.55.8",
|
|
58
|
+
"@happyvertical/sql": "^0.103.1",
|
|
51
59
|
"@happyvertical/pdf": "^0.65.9",
|
|
52
60
|
"@happyvertical/ocr": "^0.61.6",
|
|
53
|
-
"@happyvertical/speech": "^0.
|
|
54
|
-
"@happyvertical/ai": "^0.
|
|
61
|
+
"@happyvertical/speech": "^0.103.1",
|
|
62
|
+
"@happyvertical/ai": "^0.103.1",
|
|
55
63
|
"sharp": "^0.35.5",
|
|
56
|
-
"@happyvertical/smrt-agents": "0.55.
|
|
57
|
-
"@happyvertical/smrt-playbooks": "0.55.
|
|
58
|
-
"ajv": "8.20.0"
|
|
64
|
+
"@happyvertical/smrt-agents": "0.55.8",
|
|
65
|
+
"@happyvertical/smrt-playbooks": "0.55.8",
|
|
66
|
+
"ajv": "8.20.0",
|
|
67
|
+
"@happyvertical/smrt-ui": "0.55.8"
|
|
59
68
|
},
|
|
60
69
|
"devDependencies": {
|
|
61
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
70
|
+
"@happyvertical/smrt-vitest": "0.55.8",
|
|
62
71
|
"@types/node": "24.13.6",
|
|
63
72
|
"typescript": "6.0.3",
|
|
64
73
|
"vite": "8.1.4",
|
|
65
74
|
"vitest": "4.1.10",
|
|
66
|
-
"@happyvertical/smrt-content": "0.55.
|
|
67
|
-
"@happyvertical/smrt-
|
|
75
|
+
"@happyvertical/smrt-content": "0.55.8",
|
|
76
|
+
"@happyvertical/smrt-messages": "0.55.8",
|
|
77
|
+
"@happyvertical/email": "^0.103.1",
|
|
78
|
+
"@happyvertical/smrt-users": "0.55.8",
|
|
79
|
+
"@sveltejs/package": "^2.5.8",
|
|
80
|
+
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
81
|
+
"svelte": "^5.57.1",
|
|
82
|
+
"svelte-check": "^4.7.6",
|
|
83
|
+
"@testing-library/svelte": "^5.4.2",
|
|
84
|
+
"@testing-library/user-event": "^14.6.7",
|
|
85
|
+
"jsdom": "^29.1.1",
|
|
86
|
+
"@playwright/test": "^1.63.0"
|
|
68
87
|
},
|
|
69
88
|
"publishConfig": {
|
|
70
89
|
"registry": "https://registry.npmjs.org",
|
|
@@ -76,14 +95,22 @@
|
|
|
76
95
|
"url": "https://github.com/happyvertical/smrt.git",
|
|
77
96
|
"directory": "packages/ingestion"
|
|
78
97
|
},
|
|
98
|
+
"peerDependencies": {
|
|
99
|
+
"svelte": "^5.57.0"
|
|
100
|
+
},
|
|
101
|
+
"peerDependenciesMeta": {
|
|
102
|
+
"svelte": {
|
|
103
|
+
"optional": true
|
|
104
|
+
}
|
|
105
|
+
},
|
|
79
106
|
"scripts": {
|
|
80
|
-
"build": "vite build --mode library && node scripts/check-browser.mjs",
|
|
81
|
-
"test": "vitest run",
|
|
107
|
+
"build": "vite build --mode library && node scripts/check-browser.mjs && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json && node ../../scripts/prune-svelte-package-artifacts.js dist",
|
|
108
|
+
"test": "vitest run && pnpm test:components",
|
|
82
109
|
"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",
|
|
110
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.svelte.json",
|
|
84
111
|
"test:providers": "vitest run src/extraction.providers.test.ts src/proposals.providers.test.ts",
|
|
85
|
-
"test:components": "
|
|
86
|
-
"test:e2e": "
|
|
87
|
-
"test:evaluation": "
|
|
112
|
+
"test:components": "vitest run --config vitest.components.config.ts",
|
|
113
|
+
"test:e2e": "playwright test -c e2e/review/playwright.config.ts",
|
|
114
|
+
"test:evaluation": "vitest run --config evaluation/vitest.config.ts"
|
|
88
115
|
}
|
|
89
116
|
}
|