rocketride 1.0.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.
Files changed (166) hide show
  1. package/README.md +476 -0
  2. package/dist/cjs/client.js +1745 -0
  3. package/dist/cjs/client.js.map +1 -0
  4. package/dist/cjs/constants.js +48 -0
  5. package/dist/cjs/constants.js.map +1 -0
  6. package/dist/cjs/core/DAPBase.js +328 -0
  7. package/dist/cjs/core/DAPBase.js.map +1 -0
  8. package/dist/cjs/core/DAPClient.js +226 -0
  9. package/dist/cjs/core/DAPClient.js.map +1 -0
  10. package/dist/cjs/core/TransportBase.js +152 -0
  11. package/dist/cjs/core/TransportBase.js.map +1 -0
  12. package/dist/cjs/core/TransportWebSocket.js +646 -0
  13. package/dist/cjs/core/TransportWebSocket.js.map +1 -0
  14. package/dist/cjs/exceptions/index.js +119 -0
  15. package/dist/cjs/exceptions/index.js.map +1 -0
  16. package/dist/cjs/index.js +56 -0
  17. package/dist/cjs/index.js.map +1 -0
  18. package/dist/cjs/package.json +3 -0
  19. package/dist/cjs/schema/Doc.js +79 -0
  20. package/dist/cjs/schema/Doc.js.map +1 -0
  21. package/dist/cjs/schema/DocFilter.js +133 -0
  22. package/dist/cjs/schema/DocFilter.js.map +1 -0
  23. package/dist/cjs/schema/DocGroup.js +230 -0
  24. package/dist/cjs/schema/DocGroup.js.map +1 -0
  25. package/dist/cjs/schema/DocMetadata.js +58 -0
  26. package/dist/cjs/schema/DocMetadata.js.map +1 -0
  27. package/dist/cjs/schema/Question.js +414 -0
  28. package/dist/cjs/schema/Question.js.map +1 -0
  29. package/dist/cjs/schema/index.js +50 -0
  30. package/dist/cjs/schema/index.js.map +1 -0
  31. package/dist/cjs/types/client.js +26 -0
  32. package/dist/cjs/types/client.js.map +1 -0
  33. package/dist/cjs/types/data.js +26 -0
  34. package/dist/cjs/types/data.js.map +1 -0
  35. package/dist/cjs/types/events.js +119 -0
  36. package/dist/cjs/types/events.js.map +1 -0
  37. package/dist/cjs/types/index.js +50 -0
  38. package/dist/cjs/types/index.js.map +1 -0
  39. package/dist/cjs/types/pipeline.js +26 -0
  40. package/dist/cjs/types/pipeline.js.map +1 -0
  41. package/dist/cjs/types/task.js +115 -0
  42. package/dist/cjs/types/task.js.map +1 -0
  43. package/dist/cli/cli/rocketride.js +1399 -0
  44. package/dist/cli/cli/rocketride.js.map +1 -0
  45. package/dist/cli/client/client.js +1745 -0
  46. package/dist/cli/client/client.js.map +1 -0
  47. package/dist/cli/client/constants.js +48 -0
  48. package/dist/cli/client/constants.js.map +1 -0
  49. package/dist/cli/client/core/DAPBase.js +328 -0
  50. package/dist/cli/client/core/DAPBase.js.map +1 -0
  51. package/dist/cli/client/core/DAPClient.js +226 -0
  52. package/dist/cli/client/core/DAPClient.js.map +1 -0
  53. package/dist/cli/client/core/TransportBase.js +152 -0
  54. package/dist/cli/client/core/TransportBase.js.map +1 -0
  55. package/dist/cli/client/core/TransportWebSocket.js +646 -0
  56. package/dist/cli/client/core/TransportWebSocket.js.map +1 -0
  57. package/dist/cli/client/exceptions/index.js +119 -0
  58. package/dist/cli/client/exceptions/index.js.map +1 -0
  59. package/dist/cli/client/index.js +56 -0
  60. package/dist/cli/client/index.js.map +1 -0
  61. package/dist/cli/client/schema/Doc.js +79 -0
  62. package/dist/cli/client/schema/Doc.js.map +1 -0
  63. package/dist/cli/client/schema/DocFilter.js +133 -0
  64. package/dist/cli/client/schema/DocFilter.js.map +1 -0
  65. package/dist/cli/client/schema/DocGroup.js +230 -0
  66. package/dist/cli/client/schema/DocGroup.js.map +1 -0
  67. package/dist/cli/client/schema/DocMetadata.js +58 -0
  68. package/dist/cli/client/schema/DocMetadata.js.map +1 -0
  69. package/dist/cli/client/schema/Question.js +414 -0
  70. package/dist/cli/client/schema/Question.js.map +1 -0
  71. package/dist/cli/client/schema/index.js +50 -0
  72. package/dist/cli/client/schema/index.js.map +1 -0
  73. package/dist/cli/client/types/client.js +26 -0
  74. package/dist/cli/client/types/client.js.map +1 -0
  75. package/dist/cli/client/types/data.js +26 -0
  76. package/dist/cli/client/types/data.js.map +1 -0
  77. package/dist/cli/client/types/events.js +119 -0
  78. package/dist/cli/client/types/events.js.map +1 -0
  79. package/dist/cli/client/types/index.js +50 -0
  80. package/dist/cli/client/types/index.js.map +1 -0
  81. package/dist/cli/client/types/pipeline.js +26 -0
  82. package/dist/cli/client/types/pipeline.js.map +1 -0
  83. package/dist/cli/client/types/task.js +115 -0
  84. package/dist/cli/client/types/task.js.map +1 -0
  85. package/dist/esm/client.js +1740 -0
  86. package/dist/esm/client.js.map +1 -0
  87. package/dist/esm/constants.js +45 -0
  88. package/dist/esm/constants.js.map +1 -0
  89. package/dist/esm/core/DAPBase.js +324 -0
  90. package/dist/esm/core/DAPBase.js.map +1 -0
  91. package/dist/esm/core/DAPClient.js +222 -0
  92. package/dist/esm/core/DAPClient.js.map +1 -0
  93. package/dist/esm/core/TransportBase.js +148 -0
  94. package/dist/esm/core/TransportBase.js.map +1 -0
  95. package/dist/esm/core/TransportWebSocket.js +609 -0
  96. package/dist/esm/core/TransportWebSocket.js.map +1 -0
  97. package/dist/esm/exceptions/index.js +109 -0
  98. package/dist/esm/exceptions/index.js.map +1 -0
  99. package/dist/esm/index.js +40 -0
  100. package/dist/esm/index.js.map +1 -0
  101. package/dist/esm/package.json +3 -0
  102. package/dist/esm/schema/Doc.js +75 -0
  103. package/dist/esm/schema/Doc.js.map +1 -0
  104. package/dist/esm/schema/DocFilter.js +129 -0
  105. package/dist/esm/schema/DocFilter.js.map +1 -0
  106. package/dist/esm/schema/DocGroup.js +226 -0
  107. package/dist/esm/schema/DocGroup.js.map +1 -0
  108. package/dist/esm/schema/DocMetadata.js +54 -0
  109. package/dist/esm/schema/DocMetadata.js.map +1 -0
  110. package/dist/esm/schema/Question.js +409 -0
  111. package/dist/esm/schema/Question.js.map +1 -0
  112. package/dist/esm/schema/index.js +34 -0
  113. package/dist/esm/schema/index.js.map +1 -0
  114. package/dist/esm/types/client.js +25 -0
  115. package/dist/esm/types/client.js.map +1 -0
  116. package/dist/esm/types/data.js +25 -0
  117. package/dist/esm/types/data.js.map +1 -0
  118. package/dist/esm/types/events.js +116 -0
  119. package/dist/esm/types/events.js.map +1 -0
  120. package/dist/esm/types/index.js +34 -0
  121. package/dist/esm/types/index.js.map +1 -0
  122. package/dist/esm/types/pipeline.js +25 -0
  123. package/dist/esm/types/pipeline.js.map +1 -0
  124. package/dist/esm/types/task.js +112 -0
  125. package/dist/esm/types/task.js.map +1 -0
  126. package/dist/types/client.d.ts +798 -0
  127. package/dist/types/client.d.ts.map +1 -0
  128. package/dist/types/constants.d.ts +45 -0
  129. package/dist/types/constants.d.ts.map +1 -0
  130. package/dist/types/core/DAPBase.d.ts +152 -0
  131. package/dist/types/core/DAPBase.d.ts.map +1 -0
  132. package/dist/types/core/DAPClient.d.ts +93 -0
  133. package/dist/types/core/DAPClient.d.ts.map +1 -0
  134. package/dist/types/core/TransportBase.d.ts +113 -0
  135. package/dist/types/core/TransportBase.d.ts.map +1 -0
  136. package/dist/types/core/TransportWebSocket.d.ts +100 -0
  137. package/dist/types/core/TransportWebSocket.d.ts.map +1 -0
  138. package/dist/types/exceptions/index.d.ts +87 -0
  139. package/dist/types/exceptions/index.d.ts.map +1 -0
  140. package/dist/types/index.d.ts +36 -0
  141. package/dist/types/index.d.ts.map +1 -0
  142. package/dist/types/schema/Doc.d.ts +69 -0
  143. package/dist/types/schema/Doc.d.ts.map +1 -0
  144. package/dist/types/schema/DocFilter.d.ts +101 -0
  145. package/dist/types/schema/DocFilter.d.ts.map +1 -0
  146. package/dist/types/schema/DocGroup.d.ts +113 -0
  147. package/dist/types/schema/DocGroup.d.ts.map +1 -0
  148. package/dist/types/schema/DocMetadata.d.ts +77 -0
  149. package/dist/types/schema/DocMetadata.d.ts.map +1 -0
  150. package/dist/types/schema/Question.d.ts +163 -0
  151. package/dist/types/schema/Question.d.ts.map +1 -0
  152. package/dist/types/schema/index.d.ts +34 -0
  153. package/dist/types/schema/index.d.ts.map +1 -0
  154. package/dist/types/types/client.d.ts +149 -0
  155. package/dist/types/types/client.d.ts.map +1 -0
  156. package/dist/types/types/data.d.ts +95 -0
  157. package/dist/types/types/data.d.ts.map +1 -0
  158. package/dist/types/types/events.d.ts +246 -0
  159. package/dist/types/types/events.d.ts.map +1 -0
  160. package/dist/types/types/index.d.ts +34 -0
  161. package/dist/types/types/index.d.ts.map +1 -0
  162. package/dist/types/types/pipeline.d.ts +83 -0
  163. package/dist/types/types/pipeline.d.ts.map +1 -0
  164. package/dist/types/types/task.d.ts +314 -0
  165. package/dist/types/types/task.d.ts.map +1 -0
  166. package/package.json +61 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAiB,sBAAsB,EAA6D,MAAM,SAAS,CAAC;AACvI,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEtF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAM7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,QAAQ;IACpB,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAA0B;IAC1C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAS;IAExB;;;;;;;;OAQG;gBAEF,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACrC,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QACf,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IA2CF;;;;;;;;;;;;OAYG;IACG,UAAU,CACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,UAAU,CAAC;IAYtB;;;OAGG;IACG,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5C;;;OAGG;WACU,cAAc,CAAC,CAAC,EAC5B,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,CAAC,CAAC,GAChD,OAAO,CAAC,CAAC,CAAC;IAcb;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAiBrD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IA2B/E;;OAEG;IACH,iBAAiB,IAAI;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;KACZ;IAQD;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS;CAG/B;AAED,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 RocketRide, Inc.
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
+ * Default RocketRide service endpoint URL.
26
+ * Used when no custom URI is provided in the client configuration.
27
+ */
28
+ export declare const CONST_DEFAULT_SERVICE = "https://cloud.rocketride.ai";
29
+ /**
30
+ * WebSocket connection timeout in seconds.
31
+ * If no communication occurs within this period, the connection may be considered stale.
32
+ */
33
+ export declare const CONST_SOCKET_TIMEOUT = 180;
34
+ /**
35
+ * WebSocket ping interval in seconds.
36
+ * Ping frames are sent at this interval to detect dead connections.
37
+ */
38
+ export declare const CONST_WS_PING_INTERVAL = 15;
39
+ /**
40
+ * WebSocket ping timeout in seconds.
41
+ * If no pong response is received within this period after a ping,
42
+ * the connection is considered dead and will be closed.
43
+ */
44
+ export declare const CONST_WS_PING_TIMEOUT = 60;
45
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/client/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gCAAgC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC"}
@@ -0,0 +1,152 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 RocketRide, Inc.
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
+ import { DAPMessage, RocketRideClientConfig } from '../types';
25
+ import { TransportBase } from './TransportBase';
26
+ /**
27
+ * Base class for DAP (Debug Adapter Protocol) components.
28
+ *
29
+ * Provides standardized logging, error handling, message building, and debugging
30
+ * capabilities for all DAP-based components. This class handles the low-level
31
+ * details of the protocol including message sequencing, request/response correlation,
32
+ * and transport binding.
33
+ *
34
+ * Key responsibilities:
35
+ * - Message sequence number generation
36
+ * - Transport layer binding and lifecycle management
37
+ * - Debug logging and protocol tracing
38
+ * - Error handling and exception building
39
+ * - Request/Response message construction
40
+ *
41
+ * @abstract This class is meant to be extended by specific DAP implementations
42
+ */
43
+ export declare class DAPBase {
44
+ protected _msgType: string;
45
+ protected _seqCounter: number;
46
+ protected _transport?: TransportBase;
47
+ protected _callDebugMessage?: (message: string) => void;
48
+ protected _callDebugProtocol?: (message: string) => void;
49
+ protected _logger?: unknown;
50
+ /**
51
+ * Creates a new DAPBase instance.
52
+ *
53
+ * Transport may be omitted when it will be created later in the connect path
54
+ * (e.g. RocketRideClient defers transport creation until connect()).
55
+ *
56
+ * @param module - Name of the module for message type identification
57
+ * @param transport - Transport layer for communication (optional; set later via bindTransport)
58
+ * @param config - Client configuration including debug callbacks
59
+ */
60
+ constructor(module: string, transport: TransportBase | undefined, config: RocketRideClientConfig);
61
+ /**
62
+ * Set the transport and bind its callbacks to this instance.
63
+ * Use when creating the transport lazily (e.g. in _internalConnect).
64
+ */
65
+ protected _bindTransport(transport: TransportBase): void;
66
+ /**
67
+ * Attempt to call a specific method, falling back to a default method.
68
+ *
69
+ * This is a utility method for dynamic method dispatch based on message commands.
70
+ * It first tries to call a specific handler method, then falls back to a default
71
+ * handler if the specific one doesn't exist.
72
+ *
73
+ * @param message - The DAP message to be handled
74
+ * @param methodName - Name of the specific handler method to try
75
+ * @param defaultName - Name of the default fallback method
76
+ * @returns Tuple of [handled: boolean, result: any]
77
+ * @protected
78
+ */
79
+ protected _callMethod(message: DAPMessage, methodName?: string, defaultName?: string): Promise<[boolean, unknown]>;
80
+ /**
81
+ * Generate the next sequence number for DAP message correlation.
82
+ */
83
+ protected _nextSeq(): number;
84
+ /**
85
+ * Log an error message and throw the provided exception.
86
+ */
87
+ raiseException(exception: Error): never;
88
+ /**
89
+ * Output a general operational message with the instance's message type prefix.
90
+ */
91
+ debugMessage(msg: string): void;
92
+ /**
93
+ * Output a protocol-level debug message for detailed DAP communication tracing.
94
+ */
95
+ debugProtocol(packet: string): void;
96
+ /**
97
+ * Handle incoming DAP events from the transport layer.
98
+ */
99
+ onEvent(_event: DAPMessage): Promise<void>;
100
+ /**
101
+ * Handle transport connection establishment.
102
+ */
103
+ onConnected(_connectionInfo?: string): Promise<void>;
104
+ /**
105
+ * Handle transport disconnection and cleanup.
106
+ */
107
+ onDisconnected(_reason?: string, _hasError?: boolean): Promise<void>;
108
+ /**
109
+ * Handle connection attempt failure.
110
+ */
111
+ onConnectError(_error: Error): Promise<void>;
112
+ /**
113
+ * Handle received messages from the transport layer.
114
+ */
115
+ onReceive(_message: DAPMessage): Promise<void>;
116
+ /**
117
+ * Check if a DAP request indicates failure based on its response fields.
118
+ */
119
+ didFail(request: DAPMessage): boolean;
120
+ /**
121
+ * Extract the web error details from a DAP request message.
122
+ */
123
+ getWebResponse(message: DAPMessage): Record<string, unknown>;
124
+ /**
125
+ * Build a DAP request message following the protocol specification.
126
+ */
127
+ buildRequest(command: string, options?: {
128
+ token?: string;
129
+ arguments?: Record<string, unknown>;
130
+ data?: Uint8Array | string;
131
+ }): DAPMessage;
132
+ /**
133
+ * Build a successful DAP response message for a given request.
134
+ */
135
+ buildResponse(request: DAPMessage, body?: Record<string, unknown>): DAPMessage;
136
+ /**
137
+ * Build a DAP event message to notify clients of state changes.
138
+ */
139
+ buildEvent(event: string, options?: {
140
+ id?: string;
141
+ body?: Record<string, unknown>;
142
+ }): DAPMessage;
143
+ /**
144
+ * Build a DAP error response.
145
+ */
146
+ buildError(request: DAPMessage, message: string): DAPMessage;
147
+ /**
148
+ * Build a DAP exception response with debugging information.
149
+ */
150
+ buildException(request: DAPMessage, error: Error): DAPMessage;
151
+ }
152
+ //# sourceMappingURL=DAPBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DAPBase.d.ts","sourceRoot":"","sources":["../../../src/client/core/DAPBase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;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
+ *
4
+ * Copyright (c) 2026 RocketRide, Inc.
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
+ import { DAPBase } from './DAPBase';
25
+ import { DAPMessage, RocketRideClientConfig } from '../types';
26
+ import { TransportBase } from './TransportBase';
27
+ /**
28
+ * DAP (Debug Adapter Protocol) client for communicating with RocketRide servers.
29
+ *
30
+ * This class implements the client side of the DAP communication protocol,
31
+ * managing request/response correlation, pending request tracking, and message
32
+ * sequencing. It extends DAPBase to inherit common protocol functionality.
33
+ *
34
+ * Key responsibilities:
35
+ * - Request/response correlation via sequence numbers
36
+ * - Pending request management with promises
37
+ * - Connection lifecycle management
38
+ * - Message routing and handling
39
+ *
40
+ * @extends DAPBase
41
+ */
42
+ export declare class DAPClient extends DAPBase {
43
+ private _pendingRequests;
44
+ private _sequenceNumber;
45
+ protected _requestTimeout?: number;
46
+ constructor(module: string, transport: TransportBase | undefined, config?: RocketRideClientConfig);
47
+ /**
48
+ * Generate the next sequence number for outgoing requests.
49
+ */
50
+ private getNextSeq;
51
+ /**
52
+ * Send a message to the DAP server through the transport layer.
53
+ */
54
+ protected _send(message: DAPMessage): Promise<void>;
55
+ /**
56
+ * Handle connection established event.
57
+ */
58
+ onConnected(connectionInfo?: string): Promise<void>;
59
+ /**
60
+ * Handle connection attempt failure.
61
+ */
62
+ onConnectError(error: Error): Promise<void>;
63
+ /**
64
+ * Handle disconnection event and clean up pending requests.
65
+ */
66
+ onDisconnected(reason?: string, hasError?: boolean): Promise<void>;
67
+ /**
68
+ * Handle received messages from the transport layer.
69
+ */
70
+ onReceive(message: DAPMessage): Promise<void>;
71
+ /**
72
+ * Send a request and wait for the corresponding response.
73
+ * @param message - The DAP message to send
74
+ * @param timeout - Optional per-request timeout in ms. Overrides the default requestTimeout.
75
+ */
76
+ request(message: DAPMessage, timeout?: number): Promise<DAPMessage>;
77
+ /**
78
+ * Establish connection to the DAP server.
79
+ * When the transport exposes getAuth (e.g. task service), sends auth as the first DAP command
80
+ * and fails connect if authentication fails.
81
+ * @param timeout - Optional overall timeout in ms covering both the WebSocket handshake and auth request.
82
+ */
83
+ connect(timeout?: number): Promise<void>;
84
+ /**
85
+ * Close connection to the DAP server and clean up resources.
86
+ */
87
+ disconnect(): Promise<void>;
88
+ /**
89
+ * Check if connected to server.
90
+ */
91
+ isConnected(): boolean;
92
+ }
93
+ //# sourceMappingURL=DAPClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DAPClient.d.ts","sourceRoot":"","sources":["../../../src/client/core/DAPClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,SAAU,SAAQ,OAAO;IACrC,OAAO,CAAC,gBAAgB,CAInB;IACL,OAAO,CAAC,eAAe,CAAK;IAC5B,SAAS,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEvB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,SAAS,EAAE,MAAM,GAAE,sBAA2B;IAKrG;;OAEG;IACH,OAAO,CAAC,UAAU;IAIlB;;OAEG;cACa,KAAK,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzD;;OAEG;IACG,WAAW,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzD;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD;;OAEG;IACG,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBtE;;OAEG;IACG,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAyBnD;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAqDzE;;;;;OAKG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqC9C;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOjC;;OAEG;IACH,WAAW,IAAI,OAAO;CAGtB"}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 RocketRide, Inc.
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
+ import { DAPMessage, TransportCallbacks } from '../types';
25
+ /**
26
+ * Abstract base class for DAP transport implementations.
27
+ *
28
+ * This class defines the standard interface that all transport implementations
29
+ * must follow for DAP communication. It provides common functionality for
30
+ * callback management, connection state tracking, and debug message routing.
31
+ *
32
+ * Concrete implementations must provide:
33
+ * - connect(): Establish the transport connection
34
+ * - disconnect(): Close the transport connection
35
+ * - send(): Transmit a DAP message
36
+ *
37
+ * @abstract This class must be extended by concrete transport implementations
38
+ */
39
+ export declare abstract class TransportBase {
40
+ protected _connected: boolean;
41
+ protected _onCallerDebugMessage?: (message: string) => void;
42
+ protected _onCallerDebugProtocol?: (message: string) => void;
43
+ protected _onCallerReceive?: (message: DAPMessage) => Promise<void>;
44
+ protected _onCallerConnected?: (connectionInfo?: string) => Promise<void>;
45
+ protected _onCallerDisconnected?: (reason?: string, hasError?: boolean) => Promise<void>;
46
+ /**
47
+ * Send debug message to callback if available.
48
+ */
49
+ protected _debugMessage(message: string): void;
50
+ /**
51
+ * Send protocol debug message to callback if available.
52
+ */
53
+ protected _debugProtocol(message: string): void;
54
+ /**
55
+ * Forward received message to callback if available.
56
+ */
57
+ protected _transportReceive(message: DAPMessage): Promise<void>;
58
+ /**
59
+ * Connection info for the "connected" callback (e.g. URI). Default none.
60
+ */
61
+ getConnectionInfo(): string | undefined;
62
+ /**
63
+ * Notify about connection establishment.
64
+ */
65
+ protected _transportConnected(connectionInfo?: string): Promise<void>;
66
+ /**
67
+ * Notify about connection closure.
68
+ */
69
+ protected _transportDisconnected(reason?: string, hasError?: boolean): Promise<void>;
70
+ /**
71
+ * Bind callback functions to the transport.
72
+ *
73
+ * This must be called before using the transport for communication.
74
+ * The callbacks handle debugging, connection events, and message processing.
75
+ */
76
+ bind(callbacks: TransportCallbacks): void;
77
+ /**
78
+ * Auth credential for connect flow (e.g. first DAP auth command). Default none.
79
+ */
80
+ getAuth(): string | undefined;
81
+ /**
82
+ * Update auth credential. Takes effect on the next connect().
83
+ */
84
+ setAuth(_auth: string): void;
85
+ /**
86
+ * Update connection URI. Takes effect on the next connect().
87
+ */
88
+ setUri(_uri: string): void;
89
+ /**
90
+ * Check if the transport is currently connected.
91
+ */
92
+ isConnected(): boolean;
93
+ /**
94
+ * Establish connection to remote endpoint (client-side).
95
+ * @param timeout - Optional connection timeout in milliseconds. Falls back to default when not provided.
96
+ */
97
+ connect(_timeout?: number): Promise<void>;
98
+ /**
99
+ * Accept incoming connection (server-side).
100
+ */
101
+ accept(_connectionInfo: unknown): Promise<void>;
102
+ /**
103
+ * Close connection and cleanup resources.
104
+ * @param reason - Optional reason for disconnection (reported to onDisconnected; e.g. auth failure message).
105
+ * @param hasError - Optional; when true, report this as an error to onDisconnected.
106
+ */
107
+ abstract disconnect(reason?: string, hasError?: boolean): Promise<void>;
108
+ /**
109
+ * Send a message over the transport.
110
+ */
111
+ abstract send(message: DAPMessage): Promise<void>;
112
+ }
113
+ //# sourceMappingURL=TransportBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransportBase.d.ts","sourceRoot":"","sources":["../../../src/client/core/T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BAAkB,GAAG,IAAI;IAkBzC;;OAEG;IACH,OAAO,IAAI,MAAM,GAAG,SAAS;IAI7B;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAE5B;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAE1B;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;;OAGG;IACG,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C;;OAEG;IACG,MAAM,CAAC,eAAe,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAEvE;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CACjD"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 RocketRide, Inc.
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
+ import { TransportBase } from './TransportBase';
25
+ import { DAPMessage } from '../types';
26
+ /**
27
+ * WebSocket transport implementation for DAP protocol communication.
28
+ *
29
+ * Provides WebSocket-based communication between RocketRide clients and servers
30
+ * with support for both text (JSON) and binary (CBOR) message formats. Handles
31
+ * connection lifecycle management, message serialization/deserialization, automatic
32
+ * heartbeat/ping messages, and connection timeout detection.
33
+ *
34
+ * Features:
35
+ * - Cross-platform: Works in both browser (native WebSocket) and Node.js (ws library)
36
+ * - Automatic message encoding/decoding (JSON and CBOR)
37
+ * - Connection timeout handling
38
+ * - Authentication via headers
39
+ * - Message queuing during connection
40
+ *
41
+ * @extends TransportBase
42
+ */
43
+ export declare class TransportWebSocket extends TransportBase {
44
+ private _websocket?;
45
+ private _uri;
46
+ private _auth?;
47
+ private _messageTasks;
48
+ private _connectionTimeout?;
49
+ private _pingInterval?;
50
+ private _lastPong;
51
+ constructor(uri?: string, auth?: string);
52
+ /** Auth credential for use by connect flow (e.g. first DAP auth command). */
53
+ getAuth(): string | undefined;
54
+ /** Connection info for the "connected" callback (URI). */
55
+ getConnectionInfo(): string | undefined;
56
+ /** Update auth credential. Takes effect on the next connect(). */
57
+ setAuth(auth: string): void;
58
+ /** Update connection URI. Takes effect on the next connect(). */
59
+ setUri(uri: string): void;
60
+ /**
61
+ * Start ping interval for Node.js WebSocket connections.
62
+ * Sends ping frames at regular intervals and monitors for pong responses.
63
+ * If no pong is received within the timeout period, the connection is terminated.
64
+ */
65
+ private _startPingInterval;
66
+ /**
67
+ * Stop the ping interval timer.
68
+ */
69
+ private _stopPingInterval;
70
+ /**
71
+ * Process raw WebSocket data into structured messages.
72
+ *
73
+ * Handles both JSON text messages and DAP binary format messages.
74
+ * Binary messages use format: JSON header + newline + binary payload.
75
+ */
76
+ private _receiveData;
77
+ /**
78
+ * Connect to WebSocket server and start receiving messages.
79
+ * Works in both browser and Node.js environments.
80
+ */
81
+ connect(timeout?: number): Promise<void>;
82
+ /**
83
+ * Disconnect and close the WebSocket connection gracefully.
84
+ * Works in both browser and Node.js environments.
85
+ * @param reason - Optional reason for disconnection (reported to onDisconnected).
86
+ * @param hasError - Optional; when true, report as error to onDisconnected.
87
+ */
88
+ disconnect(reason?: string, hasError?: boolean): Promise<void>;
89
+ /**
90
+ * Send a DAP message with automatic format selection.
91
+ *
92
+ * Handles both standard JSON messages and DAP binary messages with
93
+ * data payloads. Automatically chooses appropriate WebSocket message
94
+ * format based on message content.
95
+ *
96
+ * Works in both browser and Node.js environments.
97
+ */
98
+ send(message: DAPMessage): Promise<void>;
99
+ }
100
+ //# sourceMappingURL=TransportWebSocket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransportWebSocket.d.ts","sourceRoot":"","sources":["../../../src/client/core/TransportWebSocket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AA2CtC;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,kBAAmB,SAAQ,aAAa;IACpD,OAAO,CAAC,UAAU,CAAC,CAA4B;IAC/C,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,aAAa,CAA4B;IACjD,OAAO,CAAC,kBAAkB,CAAC,CAAgC;IAC3D,OAAO,CAAC,aAAa,CAAC,CAAiC;IACvD,OAAO,CAAC,SAAS,CAAsB;gBAE3B,GAAG,SAAwB,EAAE,IAAI,CAAC,EAAE,MAAM;IAMtD,6EAA6E;IAC7E,OAAO,IAAI,MAAM,GAAG,SAAS;IAI7B,0DAA0D;IAC1D,iBAAiB,IAAI,MAAM,GAAG,SAAS;IAIvC,kEAAkE;IAClE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAE3B,iEAAiE;IACjE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAEzB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAsC1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAOzB;;;;;OAKG;YACW,YAAY;IA6C1B;;;OAGG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwP9C;;;;;OAKG;IACG,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAgIpE;;;;;;;;OAQG;IACG,IAAI,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAoE9C"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2026 RocketRide, Inc.
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
+ * Base exception class for Debug Adapter Protocol (DAP) errors.
26
+ *
27
+ * This exception wraps DAP error responses to provide structured access to
28
+ * error information including file locations, line numbers, and other
29
+ * contextual data returned by RocketRide servers.
30
+ */
31
+ export declare class DAPException extends Error {
32
+ readonly dapResult: Record<string, unknown>;
33
+ constructor(dapResult: Record<string, unknown>);
34
+ }
35
+ /**
36
+ * Base exception for all RocketRide operations.
37
+ *
38
+ * This is the root exception class for all RocketRide-specific errors.
39
+ * Catch this exception type to handle any error that originates from
40
+ * RocketRide operations while still having access to detailed error context.
41
+ */
42
+ export declare class RocketRideException extends DAPException {
43
+ constructor(dapResult: Record<string, unknown>);
44
+ }
45
+ /**
46
+ * Exception raised for connection-related issues.
47
+ *
48
+ * Raised when there are problems connecting to RocketRide servers,
49
+ * maintaining connections, or when connections are lost unexpectedly.
50
+ */
51
+ export declare class ConnectionException extends RocketRideException {
52
+ constructor(dapResult: Record<string, unknown>);
53
+ }
54
+ /**
55
+ * Exception raised when authentication fails (bad API key or credentials).
56
+ */
57
+ export declare class AuthenticationException extends ConnectionException {
58
+ constructor(dapResult: Record<string, unknown>);
59
+ }
60
+ /**
61
+ * Exception raised for data pipe operations.
62
+ *
63
+ * Raised when there are problems with data pipes used for sending
64
+ * data to pipelines, uploading files, or streaming operations.
65
+ */
66
+ export declare class PipeException extends RocketRideException {
67
+ constructor(dapResult: Record<string, unknown>);
68
+ }
69
+ /**
70
+ * Exception raised for pipeline execution issues.
71
+ *
72
+ * Raised when there are problems starting, running, or managing
73
+ * RocketRide pipelines and processing tasks.
74
+ */
75
+ export declare class ExecutionException extends RocketRideException {
76
+ constructor(dapResult: Record<string, unknown>);
77
+ }
78
+ /**
79
+ * Exception raised for input validation failures.
80
+ *
81
+ * Raised when input data, configurations, or parameters don't meet
82
+ * the requirements for RocketRide operations.
83
+ */
84
+ export declare class ValidationException extends RocketRideException {
85
+ constructor(dapResult: Record<string, unknown>);
86
+ }
87
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/exceptions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,KAAK;IACtC,SAAgB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAEvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAM9C;AAED;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,YAAY;gBACxC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C;AAED;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,mBAAmB;gBAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,mBAAmB;gBACnD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,mBAAmB;gBACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,mBAAmB;gBAC9C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C;AAED;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,mBAAmB;gBAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C"}