@amodalai/amodal 0.3.36 → 0.3.38
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/CHANGELOG.md +24 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/e2e-subprocess.test.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amodalai/amodal",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.38",
|
|
4
4
|
"description": "Amodal CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"react": "^19.2.4",
|
|
27
27
|
"yargs": "^17.7.2",
|
|
28
28
|
"zod": "^4.3.6",
|
|
29
|
-
"@amodalai/types": "0.3.
|
|
30
|
-
"@amodalai/core": "0.3.
|
|
31
|
-
"@amodalai/db": "0.3.
|
|
32
|
-
"@amodalai/runtime": "0.3.
|
|
33
|
-
"@amodalai/studio": "0.3.
|
|
34
|
-
"@amodalai/runtime-app": "0.3.
|
|
29
|
+
"@amodalai/types": "0.3.38",
|
|
30
|
+
"@amodalai/core": "0.3.38",
|
|
31
|
+
"@amodalai/db": "0.3.38",
|
|
32
|
+
"@amodalai/runtime": "0.3.38",
|
|
33
|
+
"@amodalai/studio": "0.3.38",
|
|
34
|
+
"@amodalai/runtime-app": "0.3.38"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.11.24",
|
|
@@ -98,6 +98,8 @@ describe.skipIf(!!skipReason)('subprocess smoke tests', () => {
|
|
|
98
98
|
'',
|
|
99
99
|
'## Assertions',
|
|
100
100
|
'- Should contain the number 4',
|
|
101
|
+
'- contains: 4',
|
|
102
|
+
'- Should NOT contain the word elephant',
|
|
101
103
|
].join('\n'));
|
|
102
104
|
|
|
103
105
|
const cliEntry = resolve(__dir, '../dist/src/main.js');
|
|
@@ -220,6 +222,13 @@ describe.skipIf(!!skipReason)('subprocess smoke tests', () => {
|
|
|
220
222
|
const result = event['result'] as Record<string, unknown>;
|
|
221
223
|
expect(result['response']).toBeDefined();
|
|
222
224
|
expect(Array.isArray(result['assertions'])).toBe(true);
|
|
225
|
+
// Verify deterministic assertions were evaluated (3 total: 1 LLM-judged + 1 deterministic + 1 negated)
|
|
226
|
+
const assertions = result['assertions'] as Array<Record<string, unknown>>;
|
|
227
|
+
expect(assertions.length).toBe(3);
|
|
228
|
+
// The deterministic "contains: 4" assertion should have a reason mentioning "contains"
|
|
229
|
+
const containsAssertion = assertions.find((a) => a['text'] === 'contains: 4');
|
|
230
|
+
expect(containsAssertion).toBeDefined();
|
|
231
|
+
expect(containsAssertion!['reason']).toBeDefined();
|
|
223
232
|
expect(result['durationMs']).toBeDefined();
|
|
224
233
|
}, 45_000);
|
|
225
234
|
|