@hartren/assistant-js 0.0.0-stage → 2.3.1

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.
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * ONNX Runtime Web v1.14.0
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License.
5
+ */
@@ -0,0 +1,57 @@
1
+ export declare const copilotVoiceState: {
2
+ LISTEN: string;
3
+ SPEAK: string;
4
+ PAUSE: string;
5
+ MUTED: string;
6
+ UNMUTED: string;
7
+ RECORDING: string;
8
+ RECORDING_STOPPED: string;
9
+ NO_RESULT: string;
10
+ };
11
+ /**
12
+ * Operating mode sent on every ViewerCopilot turn (not at session create).
13
+ * NORMAL: full TTS. SILENT: no local TTS + API silent policy. MINIMAL: backend content mode.
14
+ */
15
+ export declare const copilotMode: {
16
+ readonly NORMAL: "normal";
17
+ readonly SILENT: "silent";
18
+ readonly MINIMAL: "minimal";
19
+ };
20
+ export type CopilotMode = (typeof copilotMode)[keyof typeof copilotMode];
21
+ /** Parses an external mode string to CopilotMode. Case-insensitive; unknown/empty → NORMAL. */
22
+ export declare function normalizeCopilotMode(mode?: string | null): CopilotMode;
23
+ export declare const copilotActivityState: {
24
+ readonly IDLE: "idle";
25
+ readonly PROCESSING: "processing";
26
+ readonly PROCESSING_TOOLS: "processing-tools";
27
+ readonly ERROR: "error";
28
+ readonly DISABLED: "disabled";
29
+ };
30
+ export type CopilotActivityState = (typeof copilotActivityState)[keyof typeof copilotActivityState];
31
+ export declare const DEFAULT_SECTIONS: {
32
+ IMPRESSION: string;
33
+ FINDINGS: string;
34
+ KEY_IMAGES: string;
35
+ FRIENDLYSUMMARY: string;
36
+ RECOMMENDATION: string;
37
+ INDICATION: string;
38
+ TECHNIQUE: string;
39
+ COMPARISONS: string;
40
+ FOOTER: string;
41
+ HEADER: string;
42
+ ARTICLES: string;
43
+ };
44
+ export declare enum CopilotWidgetEvents {
45
+ StateChange = "stateChange",
46
+ onCopilotResult = "onCopilotResult",
47
+ recognitionStateStateChange = "recognationStateChange",
48
+ SpeakinStarted = "speakingStarted",
49
+ SpeakinEnded = "speakingEnded",
50
+ onError = "onError",
51
+ onRecognitionResult = "onRecognitionResult",
52
+ onRecognitionSilent = "onRecognitionSilent",
53
+ /** @deprecated Not emitted. The opt-in browserTranscriptionFallback reports `code: 'transcription-fallback'` on onCopilotError instead. */
54
+ TranscriptionWebSocketUnavailable = "transcriptionWebSocketUnavailable",
55
+ /** Internal: hosted transcription failed after all retries. */
56
+ TranscriptionFailed = "transcriptionFailed"
57
+ }
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
- "name": "@hartren/assistant-js",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@hartren/assistant-js",
3
+ "version": "2.3.1",
4
+ "description": "Browser client for the Hartren Assistant: dictation, speech socket and AI requests",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "author": "Hartren LLC",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Hartren/assistant-js.git"
12
+ },
13
+ "keywords": [
14
+ "hartren",
15
+ "assistant",
16
+ "javascript",
17
+ "typescript",
18
+ "ohif"
19
+ ],
20
+ "publishConfig": {
21
+ "registry": "https://registry.npmjs.org",
22
+ "access": "public"
23
+ },
24
+ "files": [
25
+ "dist/**/*",
26
+ "!dist/**/*_tests.d.ts",
27
+ "CHANGELOG.md",
28
+ "THIRD_PARTY_NOTICES.md",
29
+ "dist/index.js.LICENSE.txt"
30
+ ],
31
+ "scripts": {
32
+ "build": "webpack --mode production",
33
+ "typecheck": "tsc --noEmit -p tsconfig.json",
34
+ "dev": "webpack --mode development",
35
+ "watch": "webpack --mode development --watch",
36
+ "start": "webpack serve --mode development --open",
37
+ "prepublishOnly": "npm run build",
38
+ "test": "jest"
39
+ },
40
+ "dependencies": {
41
+ "@ricky0123/vad-web": "^0.0.24"
42
+ },
43
+ "devDependencies": {
44
+ "@types/jest": "^29.5.14",
45
+ "jest": "^29.7.0",
46
+ "jest-environment-jsdom": "^29.7.0",
47
+ "process": "^0.11.10",
48
+ "ts-jest": "^29.4.15",
49
+ "ts-loader": "^9.5.1",
50
+ "typescript": "^5.7.2",
51
+ "webpack": "^5.97.1",
52
+ "webpack-cli": "^6.0.1",
53
+ "webpack-dev-server": "^5.1.0"
54
+ }
55
+ }