@lokascript/compilation-service 4.0.1 → 4.2.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/CHANGELOG.md +331 -1
- package/dist/{chunk-GWYYJAZY.js → chunk-QUA3XGWW.js} +22 -3
- package/dist/chunk-QUA3XGWW.js.map +1 -0
- package/dist/http.cjs +21 -2
- package/dist/http.cjs.map +1 -1
- package/dist/http.d.cts +1 -1
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/index.cjs +21 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{service-2lEnO5hA.d.cts → service-TXPE1KWF.d.cts} +10 -0
- package/dist/{service-2lEnO5hA.d.ts → service-TXPE1KWF.d.ts} +10 -0
- package/package.json +6 -6
- package/dist/chunk-GWYYJAZY.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as InputFormat, B as BehaviorSpec, A as AbstractOperation, T as TriggerDiff, O as OperationDiff, a as TestRenderer, b as TestRenderOptions, G as GeneratedTest, c as ComponentRenderer, d as ComponentRenderOptions, e as GeneratedComponent } from './service-
|
|
2
|
-
export { f as AddClassOp, g as AppendContentOp, h as BlurOp, C as CompilationService, i as CompileRequest, j as ComponentRequest, k as ComponentResponse, D as DecrementOp, l as Diagnostic, m as DiffInput, n as DiffRequest, o as DiffResponse, F as FetchOp, p as FocusOp, q as GeneratedTestOutput, H as HideOp, r as IncrementOp, L as LogOp, N as NavigateOp, s as OperationChangeKind, R as RemoveClassOp, S as ScoreRequest, t as ScoreResponse, u as SemanticJSON, v as SemanticJSONValue, w as ServiceOptions, x as SetContentOp, y as SetVariableOp, z as ShowOp, E as TargetRef, J as TestRequest, K as TestResponse, M as ToggleClassOp, P as TranslateRequest, Q as TranslateResponse, U as TriggerEventOp, V as ValidationResponse, W as WaitOp } from './service-
|
|
1
|
+
import { I as InputFormat, B as BehaviorSpec, A as AbstractOperation, T as TriggerDiff, O as OperationDiff, a as TestRenderer, b as TestRenderOptions, G as GeneratedTest, c as ComponentRenderer, d as ComponentRenderOptions, e as GeneratedComponent } from './service-TXPE1KWF.cjs';
|
|
2
|
+
export { f as AddClassOp, g as AppendContentOp, h as BlurOp, C as CompilationService, i as CompileRequest, j as ComponentRequest, k as ComponentResponse, D as DecrementOp, l as Diagnostic, m as DiffInput, n as DiffRequest, o as DiffResponse, F as FetchOp, p as FocusOp, q as GeneratedTestOutput, H as HideOp, r as IncrementOp, L as LogOp, N as NavigateOp, s as OperationChangeKind, R as RemoveClassOp, S as ScoreRequest, t as ScoreResponse, u as SemanticJSON, v as SemanticJSONValue, w as ServiceOptions, x as SetContentOp, y as SetVariableOp, z as ShowOp, E as TargetRef, J as TestRequest, K as TestResponse, M as ToggleClassOp, P as TranslateRequest, Q as TranslateResponse, U as TriggerEventOp, V as ValidationResponse, W as WaitOp } from './service-TXPE1KWF.cjs';
|
|
3
3
|
export { jsonToSemanticNode, validateSemanticJSON } from '@lokascript/framework/ir';
|
|
4
4
|
export { FidelityReport, FidelityScores, scoreNodes } from '@lokascript/semantic/fidelity';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as InputFormat, B as BehaviorSpec, A as AbstractOperation, T as TriggerDiff, O as OperationDiff, a as TestRenderer, b as TestRenderOptions, G as GeneratedTest, c as ComponentRenderer, d as ComponentRenderOptions, e as GeneratedComponent } from './service-
|
|
2
|
-
export { f as AddClassOp, g as AppendContentOp, h as BlurOp, C as CompilationService, i as CompileRequest, j as ComponentRequest, k as ComponentResponse, D as DecrementOp, l as Diagnostic, m as DiffInput, n as DiffRequest, o as DiffResponse, F as FetchOp, p as FocusOp, q as GeneratedTestOutput, H as HideOp, r as IncrementOp, L as LogOp, N as NavigateOp, s as OperationChangeKind, R as RemoveClassOp, S as ScoreRequest, t as ScoreResponse, u as SemanticJSON, v as SemanticJSONValue, w as ServiceOptions, x as SetContentOp, y as SetVariableOp, z as ShowOp, E as TargetRef, J as TestRequest, K as TestResponse, M as ToggleClassOp, P as TranslateRequest, Q as TranslateResponse, U as TriggerEventOp, V as ValidationResponse, W as WaitOp } from './service-
|
|
1
|
+
import { I as InputFormat, B as BehaviorSpec, A as AbstractOperation, T as TriggerDiff, O as OperationDiff, a as TestRenderer, b as TestRenderOptions, G as GeneratedTest, c as ComponentRenderer, d as ComponentRenderOptions, e as GeneratedComponent } from './service-TXPE1KWF.js';
|
|
2
|
+
export { f as AddClassOp, g as AppendContentOp, h as BlurOp, C as CompilationService, i as CompileRequest, j as ComponentRequest, k as ComponentResponse, D as DecrementOp, l as Diagnostic, m as DiffInput, n as DiffRequest, o as DiffResponse, F as FetchOp, p as FocusOp, q as GeneratedTestOutput, H as HideOp, r as IncrementOp, L as LogOp, N as NavigateOp, s as OperationChangeKind, R as RemoveClassOp, S as ScoreRequest, t as ScoreResponse, u as SemanticJSON, v as SemanticJSONValue, w as ServiceOptions, x as SetContentOp, y as SetVariableOp, z as ShowOp, E as TargetRef, J as TestRequest, K as TestResponse, M as ToggleClassOp, P as TranslateRequest, Q as TranslateResponse, U as TriggerEventOp, V as ValidationResponse, W as WaitOp } from './service-TXPE1KWF.js';
|
|
3
3
|
export { jsonToSemanticNode, validateSemanticJSON } from '@lokascript/framework/ir';
|
|
4
4
|
export { FidelityReport, FidelityScores, scoreNodes } from '@lokascript/semantic/fidelity';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -379,6 +379,16 @@ interface TranslateResponse {
|
|
|
379
379
|
* translation itself failed.
|
|
380
380
|
*/
|
|
381
381
|
verification?: ScoreResponse;
|
|
382
|
+
/**
|
|
383
|
+
* A refused translation (`LOSSY_TRANSLATION`): the output the translation
|
|
384
|
+
* would have produced, which is NOT the whole script. Never under `code`.
|
|
385
|
+
*/
|
|
386
|
+
partial?: string;
|
|
387
|
+
/** What a refused translation loses, and which check saw it (truncation, read-back, invariant). */
|
|
388
|
+
loss?: {
|
|
389
|
+
kind: string;
|
|
390
|
+
lost: string[];
|
|
391
|
+
};
|
|
382
392
|
/** Diagnostics */
|
|
383
393
|
diagnostics: Diagnostic[];
|
|
384
394
|
}
|
|
@@ -379,6 +379,16 @@ interface TranslateResponse {
|
|
|
379
379
|
* translation itself failed.
|
|
380
380
|
*/
|
|
381
381
|
verification?: ScoreResponse;
|
|
382
|
+
/**
|
|
383
|
+
* A refused translation (`LOSSY_TRANSLATION`): the output the translation
|
|
384
|
+
* would have produced, which is NOT the whole script. Never under `code`.
|
|
385
|
+
*/
|
|
386
|
+
partial?: string;
|
|
387
|
+
/** What a refused translation loses, and which check saw it (truncation, read-back, invariant). */
|
|
388
|
+
loss?: {
|
|
389
|
+
kind: string;
|
|
390
|
+
lost: string[];
|
|
391
|
+
};
|
|
382
392
|
/** Diagnostics */
|
|
383
393
|
diagnostics: Diagnostic[];
|
|
384
394
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokascript/compilation-service",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Semantic service for LokaScript - validates, translates, diffs and scores hyperscript from 24 languages, explicit syntax, or LLM JSON, and renders it as components and tests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"clean": "rm -rf dist"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lokascript/framework": "^4.0
|
|
38
|
+
"@lokascript/framework": "^4.2.0",
|
|
39
39
|
"hono": "^4.13.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@hono/node-server": "^2.1.1",
|
|
43
|
-
"@hyperfixi/engine": "^4.0
|
|
44
|
-
"@lokascript/semantic": "^4.0
|
|
43
|
+
"@hyperfixi/engine": "^4.2.0",
|
|
44
|
+
"@lokascript/semantic": "^4.2.0",
|
|
45
45
|
"@types/node": "^26.6.3",
|
|
46
46
|
"tsup": "^8.0.1",
|
|
47
47
|
"typescript": "^5.3.3",
|
|
48
48
|
"vitest": "^5.0.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@lokascript/semantic": "^4.0
|
|
52
|
-
"@hyperfixi/engine": "^4.0
|
|
51
|
+
"@lokascript/semantic": "^4.2.0",
|
|
52
|
+
"@hyperfixi/engine": "^4.2.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@lokascript/semantic": {
|