@lokascript/domain-voice 2.1.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/dist/generators/voice-generator.d.ts +8 -0
- package/dist/generators/voice-renderer.d.ts +14 -0
- package/dist/index.cjs +1864 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +152 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +1803 -0
- package/dist/index.js.map +1 -0
- package/dist/profiles/index.d.ts +20 -0
- package/dist/schemas/index.d.ts +16 -0
- package/dist/tokenizers/index.d.ts +16 -0
- package/dist/types.d.ts +23 -0
- package/package.json +48 -0
- package/src/__test__/voice-domain.test.ts +1232 -0
- package/src/generators/voice-generator.ts +313 -0
- package/src/generators/voice-renderer.ts +420 -0
- package/src/index.ts +190 -0
- package/src/profiles/index.ts +235 -0
- package/src/schemas/index.ts +515 -0
- package/src/tokenizers/index.ts +644 -0
- package/src/types.ts +36 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voice/Accessibility Code Generator
|
|
3
|
+
*
|
|
4
|
+
* Transforms semantic AST nodes into executable JavaScript snippets
|
|
5
|
+
* for DOM manipulation, navigation, and accessibility actions.
|
|
6
|
+
*/
|
|
7
|
+
import type { CodeGenerator } from '@lokascript/framework';
|
|
8
|
+
export declare const voiceCodeGenerator: CodeGenerator;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voice Natural Language Renderer
|
|
3
|
+
*
|
|
4
|
+
* Renders a SemanticNode back into natural-language voice command syntax
|
|
5
|
+
* for a target language. Inverse of the parser.
|
|
6
|
+
*
|
|
7
|
+
* Markers are derived from schemas (single source of truth) rather than
|
|
8
|
+
* maintained as a parallel data structure.
|
|
9
|
+
*/
|
|
10
|
+
import type { SemanticNode } from '@lokascript/framework';
|
|
11
|
+
/**
|
|
12
|
+
* Render a voice SemanticNode to natural-language voice command text in the target language.
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderVoice(node: SemanticNode, language: string): string;
|