aparavi-client 1.0.2
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/LICENSE +21 -0
- package/README.md +523 -0
- package/dist/aparavi-client-typescript-1.0.0.tgz +0 -0
- package/dist/aparavi-client-typescript-1.0.1.tgz +0 -0
- package/dist/cjs/client.js +1002 -0
- package/dist/cjs/client.js.map +1 -0
- package/dist/cjs/constants.js +37 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/core/DAPBase.js +313 -0
- package/dist/cjs/core/DAPBase.js.map +1 -0
- package/dist/cjs/core/DAPClient.js +173 -0
- package/dist/cjs/core/DAPClient.js.map +1 -0
- package/dist/cjs/core/TransportBase.js +131 -0
- package/dist/cjs/core/TransportBase.js.map +1 -0
- package/dist/cjs/core/TransportWebSocket.js +492 -0
- package/dist/cjs/core/TransportWebSocket.js.map +1 -0
- package/dist/cjs/exceptions/index.js +109 -0
- package/dist/cjs/exceptions/index.js.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/schema/Doc.js +79 -0
- package/dist/cjs/schema/Doc.js.map +1 -0
- package/dist/cjs/schema/DocFilter.js +133 -0
- package/dist/cjs/schema/DocFilter.js.map +1 -0
- package/dist/cjs/schema/DocGroup.js +235 -0
- package/dist/cjs/schema/DocGroup.js.map +1 -0
- package/dist/cjs/schema/DocMetadata.js +57 -0
- package/dist/cjs/schema/DocMetadata.js.map +1 -0
- package/dist/cjs/schema/Question.js +414 -0
- package/dist/cjs/schema/Question.js.map +1 -0
- package/dist/cjs/schema/index.js +50 -0
- package/dist/cjs/schema/index.js.map +1 -0
- package/dist/cjs/types/client.js +26 -0
- package/dist/cjs/types/client.js.map +1 -0
- package/dist/cjs/types/data.js +26 -0
- package/dist/cjs/types/data.js.map +1 -0
- package/dist/cjs/types/events.js +119 -0
- package/dist/cjs/types/events.js.map +1 -0
- package/dist/cjs/types/index.js +50 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/pipeline.js +26 -0
- package/dist/cjs/types/pipeline.js.map +1 -0
- package/dist/cjs/types/task.js +115 -0
- package/dist/cjs/types/task.js.map +1 -0
- package/dist/cli/cli/aparavi.js +1401 -0
- package/dist/cli/cli/aparavi.js.map +1 -0
- package/dist/cli/src/client.js +1002 -0
- package/dist/cli/src/client.js.map +1 -0
- package/dist/cli/src/constants.js +37 -0
- package/dist/cli/src/constants.js.map +1 -0
- package/dist/cli/src/core/DAPBase.js +313 -0
- package/dist/cli/src/core/DAPBase.js.map +1 -0
- package/dist/cli/src/core/DAPClient.js +173 -0
- package/dist/cli/src/core/DAPClient.js.map +1 -0
- package/dist/cli/src/core/TransportBase.js +131 -0
- package/dist/cli/src/core/TransportBase.js.map +1 -0
- package/dist/cli/src/core/TransportWebSocket.js +492 -0
- package/dist/cli/src/core/TransportWebSocket.js.map +1 -0
- package/dist/cli/src/exceptions/index.js +109 -0
- package/dist/cli/src/exceptions/index.js.map +1 -0
- package/dist/cli/src/index.js +56 -0
- package/dist/cli/src/index.js.map +1 -0
- package/dist/cli/src/schema/Doc.js +79 -0
- package/dist/cli/src/schema/Doc.js.map +1 -0
- package/dist/cli/src/schema/DocFilter.js +133 -0
- package/dist/cli/src/schema/DocFilter.js.map +1 -0
- package/dist/cli/src/schema/DocGroup.js +235 -0
- package/dist/cli/src/schema/DocGroup.js.map +1 -0
- package/dist/cli/src/schema/DocMetadata.js +57 -0
- package/dist/cli/src/schema/DocMetadata.js.map +1 -0
- package/dist/cli/src/schema/Question.js +414 -0
- package/dist/cli/src/schema/Question.js.map +1 -0
- package/dist/cli/src/schema/index.js +50 -0
- package/dist/cli/src/schema/index.js.map +1 -0
- package/dist/cli/src/types/client.js +26 -0
- package/dist/cli/src/types/client.js.map +1 -0
- package/dist/cli/src/types/data.js +26 -0
- package/dist/cli/src/types/data.js.map +1 -0
- package/dist/cli/src/types/events.js +119 -0
- package/dist/cli/src/types/events.js.map +1 -0
- package/dist/cli/src/types/index.js +50 -0
- package/dist/cli/src/types/index.js.map +1 -0
- package/dist/cli/src/types/pipeline.js +26 -0
- package/dist/cli/src/types/pipeline.js.map +1 -0
- package/dist/cli/src/types/task.js +115 -0
- package/dist/cli/src/types/task.js.map +1 -0
- package/dist/esm/client.js +997 -0
- package/dist/esm/client.js.map +1 -0
- package/dist/esm/constants.js +34 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/core/DAPBase.js +309 -0
- package/dist/esm/core/DAPBase.js.map +1 -0
- package/dist/esm/core/DAPClient.js +169 -0
- package/dist/esm/core/DAPClient.js.map +1 -0
- package/dist/esm/core/TransportBase.js +127 -0
- package/dist/esm/core/TransportBase.js.map +1 -0
- package/dist/esm/core/TransportWebSocket.js +488 -0
- package/dist/esm/core/TransportWebSocket.js.map +1 -0
- package/dist/esm/exceptions/index.js +100 -0
- package/dist/esm/exceptions/index.js.map +1 -0
- package/dist/esm/index.js +40 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/schema/Doc.js +75 -0
- package/dist/esm/schema/Doc.js.map +1 -0
- package/dist/esm/schema/DocFilter.js +129 -0
- package/dist/esm/schema/DocFilter.js.map +1 -0
- package/dist/esm/schema/DocGroup.js +231 -0
- package/dist/esm/schema/DocGroup.js.map +1 -0
- package/dist/esm/schema/DocMetadata.js +53 -0
- package/dist/esm/schema/DocMetadata.js.map +1 -0
- package/dist/esm/schema/Question.js +409 -0
- package/dist/esm/schema/Question.js.map +1 -0
- package/dist/esm/schema/index.js +34 -0
- package/dist/esm/schema/index.js.map +1 -0
- package/dist/esm/types/client.js +25 -0
- package/dist/esm/types/client.js.map +1 -0
- package/dist/esm/types/data.js +25 -0
- package/dist/esm/types/data.js.map +1 -0
- package/dist/esm/types/events.js +116 -0
- package/dist/esm/types/events.js.map +1 -0
- package/dist/esm/types/index.js +34 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/pipeline.js +25 -0
- package/dist/esm/types/pipeline.js.map +1 -0
- package/dist/esm/types/task.js +112 -0
- package/dist/esm/types/task.js.map +1 -0
- package/dist/types/client.d.ts +395 -0
- package/dist/types/client.d.ts.map +1 -0
- package/dist/types/constants.d.ts +34 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/core/DAPBase.d.ts +140 -0
- package/dist/types/core/DAPBase.d.ts.map +1 -0
- package/dist/types/core/DAPClient.d.ts +83 -0
- package/dist/types/core/DAPClient.d.ts.map +1 -0
- package/dist/types/core/TransportBase.d.ts +94 -0
- package/dist/types/core/TransportBase.d.ts.map +1 -0
- package/dist/types/core/TransportWebSocket.d.ts +78 -0
- package/dist/types/core/TransportWebSocket.d.ts.map +1 -0
- package/dist/types/exceptions/index.d.ts +81 -0
- package/dist/types/exceptions/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/schema/Doc.d.ts +69 -0
- package/dist/types/schema/Doc.d.ts.map +1 -0
- package/dist/types/schema/DocFilter.d.ts +101 -0
- package/dist/types/schema/DocFilter.d.ts.map +1 -0
- package/dist/types/schema/DocGroup.d.ts +113 -0
- package/dist/types/schema/DocGroup.d.ts.map +1 -0
- package/dist/types/schema/DocMetadata.d.ts +61 -0
- package/dist/types/schema/DocMetadata.d.ts.map +1 -0
- package/dist/types/schema/Question.d.ts +163 -0
- package/dist/types/schema/Question.d.ts.map +1 -0
- package/dist/types/schema/index.d.ts +34 -0
- package/dist/types/schema/index.d.ts.map +1 -0
- package/dist/types/types/client.d.ts +140 -0
- package/dist/types/types/client.d.ts.map +1 -0
- package/dist/types/types/data.d.ts +95 -0
- package/dist/types/types/data.d.ts.map +1 -0
- package/dist/types/types/events.d.ts +246 -0
- package/dist/types/types/events.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +34 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/pipeline.d.ts +61 -0
- package/dist/types/types/pipeline.d.ts.map +1 -0
- package/dist/types/types/task.d.ts +265 -0
- package/dist/types/types/task.d.ts.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2024 Aparavi Development Team
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Task Management Types: Comprehensive Status Tracking and Event Management System.
|
|
26
|
+
*
|
|
27
|
+
* This module defines the complete type system for sophisticated task lifecycle management,
|
|
28
|
+
* real-time status monitoring, and event-driven communication in distributed computational
|
|
29
|
+
* pipeline systems. It provides structured data models for tracking complex task execution
|
|
30
|
+
* states, processing statistics, error management, and pipeline flow visualization.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Task lifecycle state enumeration for comprehensive state management.
|
|
34
|
+
*
|
|
35
|
+
* This enumeration defines all possible states in the task execution lifecycle,
|
|
36
|
+
* providing clear state transitions and enabling proper resource management,
|
|
37
|
+
* error handling, and client notification. Each state represents a distinct
|
|
38
|
+
* phase with specific characteristics and available operations.
|
|
39
|
+
*
|
|
40
|
+
* Lifecycle Phases:
|
|
41
|
+
* ----------------
|
|
42
|
+
* NONE: Initial state before any resources are allocated or configuration
|
|
43
|
+
* is processed. Tasks in this state can be safely discarded without
|
|
44
|
+
* cleanup operations.
|
|
45
|
+
*
|
|
46
|
+
* STARTING: Resource allocation and initial setup phase. Ports are allocated,
|
|
47
|
+
* temporary files created, and subprocess preparation occurs.
|
|
48
|
+
*
|
|
49
|
+
* INITIALIZING: Subprocess has been created and is performing pipeline
|
|
50
|
+
* initialization. Service interfaces are being established.
|
|
51
|
+
*
|
|
52
|
+
* RUNNING: Task is operational and processing requests. All interfaces
|
|
53
|
+
* are available and the pipeline is actively executing.
|
|
54
|
+
*
|
|
55
|
+
* STOPPING: Graceful shutdown initiated. Subprocess is being terminated
|
|
56
|
+
* and resources are being cleaned up.
|
|
57
|
+
*
|
|
58
|
+
* COMPLETED: Task finished successfully. All resources cleaned up and
|
|
59
|
+
* final status available for client queries.
|
|
60
|
+
*
|
|
61
|
+
* CANCELLED: Task was terminated before completion. Resources cleaned up
|
|
62
|
+
* and termination reason available in status.
|
|
63
|
+
*
|
|
64
|
+
* State Transitions:
|
|
65
|
+
* -----------------
|
|
66
|
+
* Normal execution flow:
|
|
67
|
+
* NONE → STARTING → INITIALIZING → RUNNING → STOPPING → COMPLETED
|
|
68
|
+
*
|
|
69
|
+
* Cancellation flow:
|
|
70
|
+
* Any state → STOPPING → CANCELLED
|
|
71
|
+
*
|
|
72
|
+
* Error handling:
|
|
73
|
+
* Any state → STOPPING → COMPLETED (with error exit code)
|
|
74
|
+
*
|
|
75
|
+
* Resource Management:
|
|
76
|
+
* -------------------
|
|
77
|
+
* - NONE/COMPLETED/CANCELLED: No active resources requiring cleanup
|
|
78
|
+
* - STARTING/INITIALIZING/RUNNING: Active resources requiring cleanup
|
|
79
|
+
* - STOPPING: Cleanup in progress, resources being deallocated
|
|
80
|
+
*
|
|
81
|
+
* Client Operations:
|
|
82
|
+
* -----------------
|
|
83
|
+
* - NONE: Configuration and launch operations available
|
|
84
|
+
* - STARTING/INITIALIZING: Status monitoring available
|
|
85
|
+
* - RUNNING: Full debugging and data processing operations available
|
|
86
|
+
* - STOPPING: Limited status monitoring, operations being rejected
|
|
87
|
+
* - COMPLETED/CANCELLED: Status queries only, task cleanup may be initiated
|
|
88
|
+
*
|
|
89
|
+
* Wait Operations:
|
|
90
|
+
* ---------------
|
|
91
|
+
* Clients can wait for specific state transitions using wait_for_running()
|
|
92
|
+
* and similar methods. State transitions trigger event notifications to
|
|
93
|
+
* all subscribed monitoring clients.
|
|
94
|
+
*/
|
|
95
|
+
export declare enum TASK_STATE {
|
|
96
|
+
/** Initial state - no resources allocated */
|
|
97
|
+
NONE = 0,
|
|
98
|
+
/** Resource allocation and subprocess preparation */
|
|
99
|
+
STARTING = 1,
|
|
100
|
+
/** Subprocess initialization and service startup */
|
|
101
|
+
INITIALIZING = 2,
|
|
102
|
+
/** Operational state - processing requests */
|
|
103
|
+
RUNNING = 3,
|
|
104
|
+
/** Graceful shutdown and resource cleanup in progress */
|
|
105
|
+
STOPPING = 4,
|
|
106
|
+
/** Successful completion - resources cleaned up */
|
|
107
|
+
COMPLETED = 5,
|
|
108
|
+
/** Terminated before completion - resources cleaned up */
|
|
109
|
+
CANCELLED = 6
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Pipeline component execution flow tracking and visualization model.
|
|
113
|
+
*
|
|
114
|
+
* This model provides detailed tracking of pipeline component execution flow,
|
|
115
|
+
* enabling real-time visualization of which components are currently executing
|
|
116
|
+
* in each pipeline instance. It supports complex pipeline architectures with
|
|
117
|
+
* multiple concurrent execution paths and nested component hierarchies.
|
|
118
|
+
*
|
|
119
|
+
* Flow Tracking Features:
|
|
120
|
+
* ----------------------
|
|
121
|
+
* - Multi-pipeline execution tracking with per-instance component stacks
|
|
122
|
+
* - Real-time component entry/exit monitoring for performance analysis
|
|
123
|
+
* - Visual pipeline flow representation for debugging and monitoring
|
|
124
|
+
* - Component execution depth tracking for nested pipeline architectures
|
|
125
|
+
* - Concurrent execution visibility across multiple pipeline instances
|
|
126
|
+
*
|
|
127
|
+
* Data Structure:
|
|
128
|
+
* --------------
|
|
129
|
+
* totalPipes: Total number of concurrent pipeline execution instances
|
|
130
|
+
* byPipe: Dictionary mapping pipeline instance IDs to component execution stacks
|
|
131
|
+
*
|
|
132
|
+
* Component Stack Behavior:
|
|
133
|
+
* ------------------------
|
|
134
|
+
* Each pipeline instance maintains a stack of currently executing components:
|
|
135
|
+
* - Component entry pushes component name onto the stack
|
|
136
|
+
* - Component exit pops component name from the stack
|
|
137
|
+
* - Stack depth indicates nesting level of component execution
|
|
138
|
+
* - Empty stack indicates pipeline instance is idle or completed
|
|
139
|
+
*
|
|
140
|
+
* Visualization Applications:
|
|
141
|
+
* --------------------------
|
|
142
|
+
* - Real-time pipeline execution diagrams showing active components
|
|
143
|
+
* - Performance analysis identifying bottlenecks and execution patterns
|
|
144
|
+
* - Debugging support for component-level execution tracing
|
|
145
|
+
* - Monitoring dashboards displaying pipeline health and activity
|
|
146
|
+
*
|
|
147
|
+
* Concurrent Execution Support:
|
|
148
|
+
* ----------------------------
|
|
149
|
+
* Multiple pipeline instances can execute simultaneously, each maintaining
|
|
150
|
+
* independent component execution stacks. This enables complex parallel
|
|
151
|
+
* processing scenarios with full visibility into each execution path.
|
|
152
|
+
*
|
|
153
|
+
* Example Flow Tracking:
|
|
154
|
+
* ---------------------
|
|
155
|
+
* Pipeline 0: ['source', 'transform', 'filter'] - Currently in filter component
|
|
156
|
+
* Pipeline 1: ['source', 'transform'] - Currently in transform component
|
|
157
|
+
* Pipeline 2: [] - Idle or completed
|
|
158
|
+
*/
|
|
159
|
+
export interface TASK_STATUS_FLOW {
|
|
160
|
+
/** Total number of concurrent pipeline execution instances */
|
|
161
|
+
totalPipes: number;
|
|
162
|
+
/** Component execution stacks by pipeline instance ID */
|
|
163
|
+
byPipe: Record<number, string[]>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Comprehensive task status model with real-time processing statistics and metrics.
|
|
167
|
+
*
|
|
168
|
+
* This model provides complete task execution status including processing statistics,
|
|
169
|
+
* error tracking, performance metrics, resource usage, and operational state.
|
|
170
|
+
* It serves as the central status repository for task monitoring, client updates,
|
|
171
|
+
* and administrative dashboards.
|
|
172
|
+
*
|
|
173
|
+
* Status Categories:
|
|
174
|
+
* -----------------
|
|
175
|
+
* - Job Information: Basic task identification and lifecycle status
|
|
176
|
+
* - Processing Statistics: Counts, sizes, rates, and completion metrics
|
|
177
|
+
* - Error Management: Error and warning tracking with message history
|
|
178
|
+
* - Resource Monitoring: Service health and operational state
|
|
179
|
+
* - Performance Metrics: Processing rates and resource utilization
|
|
180
|
+
* - Pipeline Tracking: Component execution flow and pipeline visualization
|
|
181
|
+
*
|
|
182
|
+
* Real-Time Updates:
|
|
183
|
+
* -----------------
|
|
184
|
+
* Status is updated in real-time as the task processes data and progresses
|
|
185
|
+
* through its lifecycle. Updates are broadcast to subscribed clients based
|
|
186
|
+
* on their EVENT_TYPE subscriptions, enabling responsive monitoring and
|
|
187
|
+
* debugging interfaces.
|
|
188
|
+
*
|
|
189
|
+
* Buffer Management:
|
|
190
|
+
* -----------------
|
|
191
|
+
* Error and warning lists maintain recent message history with automatic
|
|
192
|
+
* buffer limits to prevent memory growth in long-running tasks. Trace
|
|
193
|
+
* buffers preserve debugging information while controlling resource usage.
|
|
194
|
+
*
|
|
195
|
+
* Metrics Integration:
|
|
196
|
+
* -------------------
|
|
197
|
+
* Processing statistics and performance metrics are continuously updated
|
|
198
|
+
* to provide real-time visibility into task performance, throughput,
|
|
199
|
+
* and resource utilization patterns.
|
|
200
|
+
*
|
|
201
|
+
* Client Integration:
|
|
202
|
+
* ------------------
|
|
203
|
+
* Status information is serialized and broadcast to monitoring clients,
|
|
204
|
+
* debugging interfaces, and administrative dashboards. Different client
|
|
205
|
+
* types receive filtered status updates based on their subscription preferences.
|
|
206
|
+
*/
|
|
207
|
+
export interface TASK_STATUS {
|
|
208
|
+
/** Human-readable task name derived from pipeline source component */
|
|
209
|
+
name: string;
|
|
210
|
+
/** Unique identifier for the project associated with the task */
|
|
211
|
+
project_id: string;
|
|
212
|
+
/** Source component to execute */
|
|
213
|
+
source: string;
|
|
214
|
+
/** Task completion flag - true when task has finished execution */
|
|
215
|
+
completed: boolean;
|
|
216
|
+
/** Current task lifecycle state from TASK_STATE enumeration */
|
|
217
|
+
state: number;
|
|
218
|
+
/** Task start timestamp (Unix time) for duration calculation */
|
|
219
|
+
startTime: number;
|
|
220
|
+
/** Task completion timestamp (Unix time) for duration calculation */
|
|
221
|
+
endTime: number;
|
|
222
|
+
/** Debugger attachment status */
|
|
223
|
+
debuggerAttached: boolean;
|
|
224
|
+
/** Current status message describing task activity and progress */
|
|
225
|
+
status: string;
|
|
226
|
+
/** Warning message history (limited to 50 recent entries) */
|
|
227
|
+
warnings: string[];
|
|
228
|
+
/** Error message history (limited to 50 recent entries) */
|
|
229
|
+
errors: string[];
|
|
230
|
+
/** Name/identifier of the item currently being processed */
|
|
231
|
+
currentObject: string;
|
|
232
|
+
/** Size in bytes of the item currently being processed */
|
|
233
|
+
currentSize: number;
|
|
234
|
+
/** Contextual notes and information for status display */
|
|
235
|
+
notes: string[];
|
|
236
|
+
/** Total size in bytes of all items to be processed */
|
|
237
|
+
totalSize: number;
|
|
238
|
+
/** Total count of all items to be processed */
|
|
239
|
+
totalCount: number;
|
|
240
|
+
/** Total size in bytes of successfully processed items */
|
|
241
|
+
completedSize: number;
|
|
242
|
+
/** Total count of successfully processed items */
|
|
243
|
+
completedCount: number;
|
|
244
|
+
/** Total size in bytes of items that failed processing */
|
|
245
|
+
failedSize: number;
|
|
246
|
+
/** Total count of items that failed processing */
|
|
247
|
+
failedCount: number;
|
|
248
|
+
/** Total size in bytes of extracted/processed text content */
|
|
249
|
+
wordsSize: number;
|
|
250
|
+
/** Total count of words extracted/processed from content */
|
|
251
|
+
wordsCount: number;
|
|
252
|
+
/** Current processing rate in bytes per second (instantaneous) */
|
|
253
|
+
rateSize: number;
|
|
254
|
+
/** Current processing rate in items per second (instantaneous) */
|
|
255
|
+
rateCount: number;
|
|
256
|
+
/** Service operational status - true when ready to process requests */
|
|
257
|
+
serviceUp: boolean;
|
|
258
|
+
/** Process exit code - 0 for success, non-zero for errors */
|
|
259
|
+
exitCode: number;
|
|
260
|
+
/** Exit message providing details about task termination */
|
|
261
|
+
exitMessage: string;
|
|
262
|
+
/** Pipeline component execution flow and visualization data */
|
|
263
|
+
pipeflow: TASK_STATUS_FLOW;
|
|
264
|
+
}
|
|
265
|
+
//# sourceMappingURL=task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../aparavi-client/src/types/task.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,oBAAY,UAAU;IACrB,6CAA6C;IAC7C,IAAI,IAAI;IAER,qDAAqD;IACrD,QAAQ,IAAI;IAEZ,oDAAoD;IACpD,YAAY,IAAI;IAEhB,8CAA8C;IAC9C,OAAO,IAAI;IAEX,yDAAyD;IACzD,QAAQ,IAAI;IAEZ,mDAAmD;IACnD,SAAS,IAAI;IAEb,0DAA0D;IAC1D,SAAS,IAAI;CACb;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,WAAW,gBAAgB;IAChC,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IAEnB,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,WAAW,WAAW;IAG3B,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IAEb,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IAEnB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IAEf,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;IAEnB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IAEd,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAElB,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAEhB,iCAAiC;IACjC,gBAAgB,EAAE,OAAO,CAAC;IAI1B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IAIf,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,EAAE,CAAC;IAEnB,2DAA2D;IAC3D,MAAM,EAAE,MAAM,EAAE,CAAC;IAIjB,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;IAEtB,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC;IAIpB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,EAAE,CAAC;IAIhB,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAElB,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IAEnB,0DAA0D;IAC1D,aAAa,EAAE,MAAM,CAAC;IAEtB,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAC;IAEvB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IAEnB,kDAAkD;IAClD,WAAW,EAAE,MAAM,CAAC;IAEpB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAElB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IAInB,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IAEjB,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAIlB,uEAAuE;IACvE,SAAS,EAAE,OAAO,CAAC;IAInB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IAEjB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IAIpB,+DAA+D;IAC/D,QAAQ,EAAE,gBAAgB,CAAC;CAC3B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aparavi-client",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"author": "Aparavi Corporation",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "TypeScript client for Aparavi data processing and AI services",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"type": "commonjs",
|
|
11
|
+
"main": "./dist/cjs/index.js",
|
|
12
|
+
"module": "./dist/esm/index.js",
|
|
13
|
+
"types": "./dist/types/index.d.ts",
|
|
14
|
+
"bin": {
|
|
15
|
+
"aparavi": "./dist/cli/cli/aparavi.js"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/esm/index.js",
|
|
20
|
+
"require": "./dist/cjs/index.js",
|
|
21
|
+
"types": "./dist/types/index.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/**/*",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"aparavi",
|
|
30
|
+
"data-processing",
|
|
31
|
+
"ai",
|
|
32
|
+
"websocket",
|
|
33
|
+
"typescript"
|
|
34
|
+
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"commander": "^12.0.0",
|
|
37
|
+
"glob": "^10.0.0"
|
|
38
|
+
},
|
|
39
|
+
"optionalDependencies": {
|
|
40
|
+
"ws": "^8.18.3"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@jest/globals": "^30.1.2",
|
|
44
|
+
"@types/jest": "^30.0.0",
|
|
45
|
+
"@types/node": "^20.0.0",
|
|
46
|
+
"@types/ws": "^8.18.1",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
48
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
49
|
+
"eslint": "^8.0.0",
|
|
50
|
+
"jest": "^29.0.0",
|
|
51
|
+
"rimraf": "^5.0.5",
|
|
52
|
+
"ts-jest": "^29.4.4",
|
|
53
|
+
"typescript": "^5.0.0",
|
|
54
|
+
"ws": "^8.18.3"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"--- Install ---------------------------------------": "",
|
|
58
|
+
"--- Build -----------------------------------------": "",
|
|
59
|
+
"build": "pnpm run _build:cjs && pnpm run _build:esm && pnpm run _build:types && pnpm run _build:cli && pnpm run _build:dist && pnpm run _build:package",
|
|
60
|
+
"_build:cjs": "tsc -p tsconfig.cjs.json",
|
|
61
|
+
"_build:esm": "tsc -p tsconfig.esm.json",
|
|
62
|
+
"_build:types": "tsc -p tsconfig.types.json",
|
|
63
|
+
"_build:cli": "tsc -p tsconfig.cli.json",
|
|
64
|
+
"_build:dist": "node scripts/post-build.js",
|
|
65
|
+
"_build:package": "pnpm pack --pack-destination=./dist",
|
|
66
|
+
"--- Test -------------------------------------------": "",
|
|
67
|
+
"test": "jest --verbose",
|
|
68
|
+
"test:watch": "jest --watch",
|
|
69
|
+
"test:coverage": "jest --coverage",
|
|
70
|
+
"--- Clean ------------------------------------------": "",
|
|
71
|
+
"clean": "rimraf dist",
|
|
72
|
+
"--- Misc -------------------------------------------": "",
|
|
73
|
+
"lint": "eslint aparavi-client/src/**/*.ts"
|
|
74
|
+
}
|
|
75
|
+
}
|