@illalabs/sdk 0.4.1-canary-beta-e22dfc29 → 0.4.1-canary-dev-2e2c59d3
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/src/chat/Chat.d.ts +1 -59
- package/dist/src/chat/Chat.d.ts.map +1 -1
- package/dist/src/chat/Chat.js +3 -82
- package/dist/src/chat/Chat.js.map +1 -1
- package/dist/src/chat/index.d.ts +0 -2
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/index.js +0 -1
- package/dist/src/chat/index.js.map +1 -1
- package/dist/src/interfaces/chat.interface.d.ts +4 -4
- package/dist/src/interfaces/chat.interface.d.ts.map +1 -1
- package/dist/src/interfaces/coreApiProvider.interface.d.ts +2 -20
- package/dist/src/interfaces/coreApiProvider.interface.d.ts.map +1 -1
- package/dist/src/providers/coreApiProvider/CoreApiProvider.d.ts +2 -61
- package/dist/src/providers/coreApiProvider/CoreApiProvider.d.ts.map +1 -1
- package/dist/src/providers/coreApiProvider/CoreApiProvider.js +6 -117
- package/dist/src/providers/coreApiProvider/CoreApiProvider.js.map +1 -1
- package/dist/src/providers/coreApiProvider/errors/index.d.ts +0 -1
- package/dist/src/providers/coreApiProvider/errors/index.d.ts.map +1 -1
- package/dist/src/providers/coreApiProvider/errors/index.js +0 -1
- package/dist/src/providers/coreApiProvider/errors/index.js.map +1 -1
- package/dist/src/providers/coreApiProvider/index.d.ts +1 -1
- package/dist/src/providers/coreApiProvider/index.d.ts.map +1 -1
- package/dist/src/providers/coreApiProvider/index.js.map +1 -1
- package/dist/src/providers/coreApiProvider/interfaces/CoreApiProviderRoutes.interface.d.ts +0 -4
- package/dist/src/providers/coreApiProvider/interfaces/CoreApiProviderRoutes.interface.d.ts.map +1 -1
- package/dist/src/providers/coreApiProvider/types.d.ts +4 -16
- package/dist/src/providers/coreApiProvider/types.d.ts.map +1 -1
- package/dist/src/sdk.d.ts +8 -73
- package/dist/src/sdk.d.ts.map +1 -1
- package/dist/src/sdk.js +4 -78
- package/dist/src/sdk.js.map +1 -1
- package/dist/src/streaming/parseSSE.d.ts.map +1 -1
- package/dist/src/streaming/parseSSE.js +2 -18
- package/dist/src/streaming/parseSSE.js.map +1 -1
- package/dist/src/telemetry/TelemetryClient.d.ts.map +1 -1
- package/dist/src/telemetry/TelemetryClient.js +2 -7
- package/dist/src/telemetry/TelemetryClient.js.map +1 -1
- package/package.json +2 -2
- package/dist/src/chat/PlanStream.d.ts +0 -129
- package/dist/src/chat/PlanStream.d.ts.map +0 -1
- package/dist/src/chat/PlanStream.js +0 -249
- package/dist/src/chat/PlanStream.js.map +0 -1
- package/dist/src/providers/coreApiProvider/errors/SignatureSubmissionError.d.ts +0 -9
- package/dist/src/providers/coreApiProvider/errors/SignatureSubmissionError.d.ts.map +0 -1
- package/dist/src/providers/coreApiProvider/errors/SignatureSubmissionError.js +0 -17
- package/dist/src/providers/coreApiProvider/errors/SignatureSubmissionError.js.map +0 -1
package/dist/src/chat/Chat.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MessageHistoryType } from "@illalabs/interfaces";
|
|
2
2
|
import type { AwaitableActionDescriptor, AwaitActionResult } from "../asyncToolChecker/index.js";
|
|
3
3
|
import type { ChatContextSnapshot, ChatOptions, SendMessageOptions, SendMessageResult, SendMessageStreamingOptions } from "../interfaces/index.js";
|
|
4
4
|
import type { Prompt } from "../prompt/index.js";
|
|
5
|
-
import type { PlanStream } from "./PlanStream.js";
|
|
6
5
|
/**
|
|
7
6
|
* Represents a conversational session with the Illa Core API.
|
|
8
7
|
*/
|
|
@@ -97,62 +96,5 @@ export declare class Chat {
|
|
|
97
96
|
* @param snapshot Context snapshot to store.
|
|
98
97
|
*/
|
|
99
98
|
setContext(snapshot: ChatContextSnapshot): Promise<void>;
|
|
100
|
-
/**
|
|
101
|
-
* Initiates execution of an approved plan via SSE streaming.
|
|
102
|
-
*
|
|
103
|
-
* Posts the approved plan to the API which responds with an SSE stream
|
|
104
|
-
* of execution events. The returned PlanStream allows subscribing to
|
|
105
|
-
* events like step progress, signature requests, and completion.
|
|
106
|
-
*
|
|
107
|
-
* @param plan The approved execution plan to execute
|
|
108
|
-
* @param options Optional request options including abort signal
|
|
109
|
-
* @returns A PlanStream for receiving execution events
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* const stream = await chat.streamExecution(plan);
|
|
114
|
-
*
|
|
115
|
-
* stream.on('step_started', (event) => {
|
|
116
|
-
* console.log(`Step ${event.stepNumber}: ${event.description}`);
|
|
117
|
-
* });
|
|
118
|
-
*
|
|
119
|
-
* stream.on('signature_required', async (event) => {
|
|
120
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
121
|
-
* await chat.submitSignature({
|
|
122
|
-
* planId: plan.planId,
|
|
123
|
-
* stepNumber: event.stepNumber,
|
|
124
|
-
* signature,
|
|
125
|
-
* });
|
|
126
|
-
* });
|
|
127
|
-
*
|
|
128
|
-
* stream.on('execution_complete', (event) => {
|
|
129
|
-
* console.log(`Execution ${event.status}: ${event.summary}`);
|
|
130
|
-
* });
|
|
131
|
-
* ```
|
|
132
|
-
*/
|
|
133
|
-
streamExecution(plan: ExecutionPlan, options?: SendMessageOptions): Promise<PlanStream>;
|
|
134
|
-
/**
|
|
135
|
-
* Submits a signature during plan execution.
|
|
136
|
-
*
|
|
137
|
-
* When the server emits a `signature_required` event during plan execution,
|
|
138
|
-
* call this method to submit the signed transaction. The server will then
|
|
139
|
-
* resume execution from where it paused.
|
|
140
|
-
*
|
|
141
|
-
* @param data Signature continuation data including planId, stepNumber, and signature
|
|
142
|
-
* @param options Optional request options including abort signal
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* ```typescript
|
|
146
|
-
* stream.on('signature_required', async (event) => {
|
|
147
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
148
|
-
* await chat.submitSignature({
|
|
149
|
-
* planId: plan.planId,
|
|
150
|
-
* stepNumber: event.stepNumber,
|
|
151
|
-
* signature,
|
|
152
|
-
* });
|
|
153
|
-
* });
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
submitSignature(data: SignatureContinuation, options?: SendMessageOptions): Promise<void>;
|
|
157
99
|
}
|
|
158
100
|
//# sourceMappingURL=Chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/chat/Chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIR,
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/chat/Chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIR,kBAAkB,EAKrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAER,yBAAyB,EACzB,iBAAiB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACR,mBAAmB,EACnB,WAAW,EAGX,kBAAkB,EAClB,iBAAiB,EACjB,2BAA2B,EAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAA4B,MAAM,EAAc,MAAM,oBAAoB,CAAC;AAOvF;;GAEG;AACH,qBAAa,IAAI;IACb,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAS;IAE5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmB;IAEnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAkB;IAEjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAmB;IAErD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IAEzC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAE1C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IAExD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAE5C;;;;;;OAMG;gBACgB,OAAO,EAAE,WAAW;IAcvC;;;;OAIG;IACI,KAAK,IAAI,MAAM;IAItB,IAAW,QAAQ,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAEjD;IAED;;;;;;;;;;OAUG;IACU,WAAW,CACpB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,CAAC,EAAE,kBAAkB,GAC7B,OAAO,CAAC,iBAAiB,CAAC;IAwF7B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACU,oBAAoB,CAC7B,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,2BAAgC,GAC1C,OAAO,CAAC,IAAI,CAAC;IAoChB,OAAO,CAAC,YAAY;IAwCpB,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAMhC;;;;;;;;;;;;OAYG;IACU,WAAW,CAAC,UAAU,EAAE,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAe3F;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAIvD;;;;OAIG;IACU,UAAU,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;CAIxE"}
|
package/dist/src/chat/Chat.js
CHANGED
|
@@ -175,18 +175,13 @@ export class Chat {
|
|
|
175
175
|
onComplete: (result) => {
|
|
176
176
|
void (async () => {
|
|
177
177
|
try {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
await this.contextManager.setMessages(this.id, result.messages);
|
|
181
|
-
await this.contextManager.setToolsConfig(this.id, context.toolsConfig);
|
|
182
|
-
}
|
|
178
|
+
await this.contextManager.setMessages(this.id, result.messages);
|
|
179
|
+
await this.contextManager.setToolsConfig(this.id, context.toolsConfig);
|
|
183
180
|
}
|
|
184
181
|
catch (error) {
|
|
185
|
-
// Context update failed, but the API call succeeded
|
|
186
|
-
// Notify error but still call onComplete since the message was sent
|
|
187
182
|
options.onError?.(error instanceof Error ? error : new Error(String(error)));
|
|
183
|
+
return;
|
|
188
184
|
}
|
|
189
|
-
// Always call onComplete after API success, even if context update failed
|
|
190
185
|
options.onComplete?.(result);
|
|
191
186
|
})();
|
|
192
187
|
},
|
|
@@ -267,79 +262,5 @@ export class Chat {
|
|
|
267
262
|
await this.contextManager.setMessages(this.id, snapshot.messages);
|
|
268
263
|
await this.contextManager.setToolsConfig(this.id, snapshot.toolsConfig);
|
|
269
264
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Initiates execution of an approved plan via SSE streaming.
|
|
272
|
-
*
|
|
273
|
-
* Posts the approved plan to the API which responds with an SSE stream
|
|
274
|
-
* of execution events. The returned PlanStream allows subscribing to
|
|
275
|
-
* events like step progress, signature requests, and completion.
|
|
276
|
-
*
|
|
277
|
-
* @param plan The approved execution plan to execute
|
|
278
|
-
* @param options Optional request options including abort signal
|
|
279
|
-
* @returns A PlanStream for receiving execution events
|
|
280
|
-
*
|
|
281
|
-
* @example
|
|
282
|
-
* ```typescript
|
|
283
|
-
* const stream = await chat.streamExecution(plan);
|
|
284
|
-
*
|
|
285
|
-
* stream.on('step_started', (event) => {
|
|
286
|
-
* console.log(`Step ${event.stepNumber}: ${event.description}`);
|
|
287
|
-
* });
|
|
288
|
-
*
|
|
289
|
-
* stream.on('signature_required', async (event) => {
|
|
290
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
291
|
-
* await chat.submitSignature({
|
|
292
|
-
* planId: plan.planId,
|
|
293
|
-
* stepNumber: event.stepNumber,
|
|
294
|
-
* signature,
|
|
295
|
-
* });
|
|
296
|
-
* });
|
|
297
|
-
*
|
|
298
|
-
* stream.on('execution_complete', (event) => {
|
|
299
|
-
* console.log(`Execution ${event.status}: ${event.summary}`);
|
|
300
|
-
* });
|
|
301
|
-
* ```
|
|
302
|
-
*/
|
|
303
|
-
async streamExecution(plan, options) {
|
|
304
|
-
const context = await this.contextManager.getContext(this.id);
|
|
305
|
-
const requestOptions = options
|
|
306
|
-
? {
|
|
307
|
-
signal: options.signal,
|
|
308
|
-
onRequestId: options.onRequestId,
|
|
309
|
-
}
|
|
310
|
-
: undefined;
|
|
311
|
-
return this.coreApiProvider.streamExecution(plan, this.userContext, context.toolsConfig, requestOptions);
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Submits a signature during plan execution.
|
|
315
|
-
*
|
|
316
|
-
* When the server emits a `signature_required` event during plan execution,
|
|
317
|
-
* call this method to submit the signed transaction. The server will then
|
|
318
|
-
* resume execution from where it paused.
|
|
319
|
-
*
|
|
320
|
-
* @param data Signature continuation data including planId, stepNumber, and signature
|
|
321
|
-
* @param options Optional request options including abort signal
|
|
322
|
-
*
|
|
323
|
-
* @example
|
|
324
|
-
* ```typescript
|
|
325
|
-
* stream.on('signature_required', async (event) => {
|
|
326
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
327
|
-
* await chat.submitSignature({
|
|
328
|
-
* planId: plan.planId,
|
|
329
|
-
* stepNumber: event.stepNumber,
|
|
330
|
-
* signature,
|
|
331
|
-
* });
|
|
332
|
-
* });
|
|
333
|
-
* ```
|
|
334
|
-
*/
|
|
335
|
-
async submitSignature(data, options) {
|
|
336
|
-
const requestOptions = options
|
|
337
|
-
? {
|
|
338
|
-
signal: options.signal,
|
|
339
|
-
onRequestId: options.onRequestId,
|
|
340
|
-
}
|
|
341
|
-
: undefined;
|
|
342
|
-
await this.coreApiProvider.submitSignature(data, requestOptions);
|
|
343
|
-
}
|
|
344
265
|
}
|
|
345
266
|
//# sourceMappingURL=Chat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.js","sourceRoot":"","sources":["../../../src/chat/Chat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Chat.js","sourceRoot":"","sources":["../../../src/chat/Chat.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAA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,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC5E,CAAC;CACJ"}
|
package/dist/src/chat/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { Chat } from "./Chat.js";
|
|
2
|
-
export { PlanStream } from "./PlanStream.js";
|
|
3
|
-
export type { PlanStreamOptions } from "./PlanStream.js";
|
|
4
2
|
export type { ChatOptions } from "../interfaces/index.js";
|
|
5
3
|
export * from "./errors/index.js";
|
|
6
4
|
export type { ChatContextInput } from "./types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/src/chat/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CoreApiChatBodyRequest, CoreApiChatErrorResponse, CoreApiChatSuccessResponse, MessageHistoryType, ModelContext, PersonalityContext, TelemetryEvent, ToolAutorouterRequest, UserContext, ValidatedResultEventData } from "@illalabs/interfaces";
|
|
2
2
|
import type { AsyncToolChecker } from "../asyncToolChecker/index.js";
|
|
3
3
|
import type { PromptRole, PromptSnapshot } from "../prompt/index.js";
|
|
4
4
|
import type { IContextManager } from "./contextManager.interface.js";
|
|
@@ -80,10 +80,10 @@ export interface SendMessageStreamingOptions {
|
|
|
80
80
|
readonly onTextDelta?: (delta: string) => void;
|
|
81
81
|
/**
|
|
82
82
|
* Called when the orchestration completes successfully.
|
|
83
|
-
* The result contains
|
|
84
|
-
*
|
|
83
|
+
* The result contains the final chat response with messages, text, and pending tools.
|
|
84
|
+
* Type is inferred from resultEventDataSchema for compile-time safety.
|
|
85
85
|
*/
|
|
86
|
-
readonly onComplete?: (result:
|
|
86
|
+
readonly onComplete?: (result: ValidatedResultEventData) => void;
|
|
87
87
|
/**
|
|
88
88
|
* Called when an error occurs during streaming or orchestration.
|
|
89
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/chat.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,
|
|
1
|
+
{"version":3,"file":"chat.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/chat.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EAC3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MA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AAwB,KAAK,IAAI,CAAC;IAEjE;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAElD;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,cAAc,GAAG,cAAc,EAAE,CAAC;IAE3D;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EACX;QACI,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAC;QAC1C,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;KAC3B,GACD;QACI,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;QACvB,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAC;KAC5C,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACrC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CoreApiChatRequest, CoreApiChatResponse,
|
|
2
|
-
import type {
|
|
3
|
-
import type { CoreApiProviderRoutes, PlanExecutionOptions, RequestOptions, StreamingRequestOptions } from "../providers/coreApiProvider/index.js";
|
|
1
|
+
import type { CoreApiChatRequest, CoreApiChatResponse, LongPollingActionRequest, LongPollingActionResponse } from "@illalabs/interfaces";
|
|
2
|
+
import type { CoreApiProviderRoutes, RequestOptions, StreamingRequestOptions } from "../providers/coreApiProvider/index.js";
|
|
4
3
|
/**
|
|
5
4
|
* Contract for the Core API provider
|
|
6
5
|
*/
|
|
@@ -41,22 +40,5 @@ export interface ICoreApiProvider {
|
|
|
41
40
|
* @returns Route configuration including chat and action status paths.
|
|
42
41
|
*/
|
|
43
42
|
getRoutes(): Required<CoreApiProviderRoutes>;
|
|
44
|
-
/**
|
|
45
|
-
* Initiates plan execution with SSE streaming for real-time events.
|
|
46
|
-
*
|
|
47
|
-
* @param plan The approved execution plan to execute
|
|
48
|
-
* @param userContext User context for signing transactions
|
|
49
|
-
* @param toolsConfig Tool configuration
|
|
50
|
-
* @param options Request options including optional PlanStream callbacks
|
|
51
|
-
* @returns A PlanStream for receiving execution events
|
|
52
|
-
*/
|
|
53
|
-
streamExecution(plan: ExecutionPlan, userContext: CoreApiChatRequest["body"]["userContext"], toolsConfig: CoreApiChatRequest["body"]["toolsConfig"], options?: PlanExecutionOptions): Promise<PlanStream>;
|
|
54
|
-
/**
|
|
55
|
-
* Submits a signature during plan execution.
|
|
56
|
-
*
|
|
57
|
-
* @param data Signature continuation data including planId, stepNumber, and signature
|
|
58
|
-
* @param options Request options
|
|
59
|
-
*/
|
|
60
|
-
submitSignature(data: SignatureContinuation, options?: RequestOptions): Promise<void>;
|
|
61
43
|
}
|
|
62
44
|
//# sourceMappingURL=coreApiProvider.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coreApiProvider.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/coreApiProvider.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kBAAkB,EAClB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"coreApiProvider.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/coreApiProvider.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACR,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EAC1B,MAAM,uCAAuC,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,WAAW,CACP,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,EACnC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,oBAAoB,CAChB,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,EACnC,OAAO,CAAC,EAAE,uBAAuB,GAClC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;OAOG;IACH,gBAAgB,CACZ,OAAO,EAAE,wBAAwB,CAAC,QAAQ,CAAC,EAC3C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEtC;;;;OAIG;IACH,SAAS,IAAI,QAAQ,CAAC,qBAAqB,CAAC,CAAC;CAChD"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { CoreApiChatRequest, CoreApiChatResponse,
|
|
1
|
+
import type { CoreApiChatRequest, CoreApiChatResponse, LongPollingActionRequest, LongPollingActionResponse } from "@illalabs/interfaces";
|
|
2
2
|
import type { AxiosInstance } from "axios";
|
|
3
3
|
import type { ICoreApiProvider } from "../../interfaces/index.js";
|
|
4
4
|
import type { CoreApiProviderConfig, CoreApiProviderRoutes } from "./interfaces/index.js";
|
|
5
|
-
import type {
|
|
6
|
-
import { PlanStream } from "../../chat/index.js";
|
|
5
|
+
import type { RequestOptions, StreamingRequestOptions } from "./types.js";
|
|
7
6
|
/**
|
|
8
7
|
* Axios based Core API provider implementation
|
|
9
8
|
*/
|
|
@@ -67,64 +66,6 @@ export declare class CoreApiProvider implements ICoreApiProvider {
|
|
|
67
66
|
* Polls the Core API for transaction status
|
|
68
67
|
*/
|
|
69
68
|
awaitTransaction(params: LongPollingActionRequest["params"], options?: RequestOptions): Promise<LongPollingActionResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* Initiates plan execution with SSE streaming for real-time events.
|
|
72
|
-
*
|
|
73
|
-
* Posts the approved plan to the chat endpoint with `acceptedPlan` in the body.
|
|
74
|
-
* The server responds with an SSE stream of execution events.
|
|
75
|
-
*
|
|
76
|
-
* @param plan The approved execution plan to execute
|
|
77
|
-
* @param userContext User context for signing transactions
|
|
78
|
-
* @param toolsConfig Tool configuration
|
|
79
|
-
* @param options Request options including abort signal
|
|
80
|
-
* @returns A PlanStream for receiving execution events
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```typescript
|
|
84
|
-
* const stream = await provider.streamExecution(plan, userContext, toolsConfig);
|
|
85
|
-
*
|
|
86
|
-
* stream.on('step_started', (event) => {
|
|
87
|
-
* console.log(`Step ${event.stepNumber} started`);
|
|
88
|
-
* });
|
|
89
|
-
*
|
|
90
|
-
* stream.on('signature_required', async (event) => {
|
|
91
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
92
|
-
* await provider.submitSignature({
|
|
93
|
-
* planId: plan.planId,
|
|
94
|
-
* stepNumber: event.stepNumber,
|
|
95
|
-
* signature,
|
|
96
|
-
* });
|
|
97
|
-
* });
|
|
98
|
-
*
|
|
99
|
-
* stream.on('execution_complete', (event) => {
|
|
100
|
-
* console.log(`Execution ${event.status}: ${event.summary}`);
|
|
101
|
-
* });
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
streamExecution(plan: ExecutionPlan, userContext: CoreApiChatRequest["body"]["userContext"], toolsConfig: CoreApiChatRequest["body"]["toolsConfig"], options?: PlanExecutionOptions): Promise<PlanStream>;
|
|
105
|
-
/**
|
|
106
|
-
* Submits a signature during plan execution.
|
|
107
|
-
*
|
|
108
|
-
* When the server emits a `signature_required` event during plan execution,
|
|
109
|
-
* the client must sign the transaction and submit the signature using this method.
|
|
110
|
-
* The server will then resume execution.
|
|
111
|
-
*
|
|
112
|
-
* @param data Signature continuation data including planId, stepNumber, and signature
|
|
113
|
-
* @param options Request options including abort signal
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```typescript
|
|
117
|
-
* stream.on('signature_required', async (event) => {
|
|
118
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
119
|
-
* await provider.submitSignature({
|
|
120
|
-
* planId: plan.planId,
|
|
121
|
-
* stepNumber: event.stepNumber,
|
|
122
|
-
* signature,
|
|
123
|
-
* });
|
|
124
|
-
* });
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
submitSignature(data: SignatureContinuation, options?: RequestOptions): Promise<void>;
|
|
128
69
|
/** @inheritdoc */
|
|
129
70
|
getRoutes(): Required<CoreApiProviderRoutes>;
|
|
130
71
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreApiProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIR,kBAAkB,EAClB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CoreApiProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIR,kBAAkB,EAClB,mBAAmB,EAEnB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAsB,MAAM,OAAO,CAAC;AAI/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAqB,cAAc,EAAE,uBAAuB,EAAE,MAAM,YA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PlanStream } from "../../chat/index.js";
|
|
4
3
|
import { generateUUID } from "../../chat/utils/index.js";
|
|
5
4
|
import { parseSSEStream, StreamingHttpError, StreamingResponseBodyNull, StreamingServerError, } from "../../streaming/index.js";
|
|
6
5
|
import { AsyncToolCheckerErrorHandler, ChatErrorHandler } from "./CoreApiErrorHandler.js";
|
|
7
|
-
import { CoreApiAuthenticationMissing
|
|
6
|
+
import { CoreApiAuthenticationMissing } from "./errors/index.js";
|
|
8
7
|
/**
|
|
9
8
|
* Axios based Core API provider implementation
|
|
10
9
|
*/
|
|
@@ -42,7 +41,6 @@ export class CoreApiProvider {
|
|
|
42
41
|
this.routes = {
|
|
43
42
|
chat: routes?.chat ?? "/api/v1/chat/",
|
|
44
43
|
actionStatus: routes?.actionStatus ?? "/api/v1/actions/check",
|
|
45
|
-
signature: routes?.signature ?? "/api/v1/chat/signature",
|
|
46
44
|
};
|
|
47
45
|
}
|
|
48
46
|
/**
|
|
@@ -73,13 +71,8 @@ export class CoreApiProvider {
|
|
|
73
71
|
return response.data;
|
|
74
72
|
}
|
|
75
73
|
catch (error) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const errorResponse = ChatErrorHandler.handle(error);
|
|
79
|
-
return errorResponse;
|
|
80
|
-
}
|
|
81
|
-
// Re-throw unexpected errors (TypeErrors, programming bugs, etc.)
|
|
82
|
-
throw error;
|
|
74
|
+
const errorResponse = ChatErrorHandler.handle(error);
|
|
75
|
+
return errorResponse;
|
|
83
76
|
}
|
|
84
77
|
}
|
|
85
78
|
/**
|
|
@@ -190,112 +183,8 @@ export class CoreApiProvider {
|
|
|
190
183
|
return response.data;
|
|
191
184
|
}
|
|
192
185
|
catch (error) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return errorResponse;
|
|
196
|
-
}
|
|
197
|
-
throw error;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Initiates plan execution with SSE streaming for real-time events.
|
|
202
|
-
*
|
|
203
|
-
* Posts the approved plan to the chat endpoint with `acceptedPlan` in the body.
|
|
204
|
-
* The server responds with an SSE stream of execution events.
|
|
205
|
-
*
|
|
206
|
-
* @param plan The approved execution plan to execute
|
|
207
|
-
* @param userContext User context for signing transactions
|
|
208
|
-
* @param toolsConfig Tool configuration
|
|
209
|
-
* @param options Request options including abort signal
|
|
210
|
-
* @returns A PlanStream for receiving execution events
|
|
211
|
-
*
|
|
212
|
-
* @example
|
|
213
|
-
* ```typescript
|
|
214
|
-
* const stream = await provider.streamExecution(plan, userContext, toolsConfig);
|
|
215
|
-
*
|
|
216
|
-
* stream.on('step_started', (event) => {
|
|
217
|
-
* console.log(`Step ${event.stepNumber} started`);
|
|
218
|
-
* });
|
|
219
|
-
*
|
|
220
|
-
* stream.on('signature_required', async (event) => {
|
|
221
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
222
|
-
* await provider.submitSignature({
|
|
223
|
-
* planId: plan.planId,
|
|
224
|
-
* stepNumber: event.stepNumber,
|
|
225
|
-
* signature,
|
|
226
|
-
* });
|
|
227
|
-
* });
|
|
228
|
-
*
|
|
229
|
-
* stream.on('execution_complete', (event) => {
|
|
230
|
-
* console.log(`Execution ${event.status}: ${event.summary}`);
|
|
231
|
-
* });
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
async streamExecution(plan, userContext, toolsConfig, options = {}) {
|
|
235
|
-
const url = `${this.baseUrl}${this.routes.chat}`;
|
|
236
|
-
const body = {
|
|
237
|
-
acceptedPlan: plan,
|
|
238
|
-
userContext,
|
|
239
|
-
toolsConfig,
|
|
240
|
-
};
|
|
241
|
-
// Use native fetch instead of Axios because Axios doesn't support
|
|
242
|
-
// ReadableStream responses needed for SSE streaming
|
|
243
|
-
const response = await fetch(url, {
|
|
244
|
-
method: "POST",
|
|
245
|
-
headers: {
|
|
246
|
-
"Content-Type": "application/json",
|
|
247
|
-
Accept: "text/event-stream",
|
|
248
|
-
...this.authHeaders,
|
|
249
|
-
},
|
|
250
|
-
body: JSON.stringify(body),
|
|
251
|
-
signal: options.signal,
|
|
252
|
-
});
|
|
253
|
-
if (!response.ok) {
|
|
254
|
-
const errorText = await response.text();
|
|
255
|
-
let errorMessage;
|
|
256
|
-
try {
|
|
257
|
-
const errorJson = JSON.parse(errorText);
|
|
258
|
-
errorMessage = errorJson.message ?? `HTTP ${response.status}`;
|
|
259
|
-
}
|
|
260
|
-
catch {
|
|
261
|
-
errorMessage = errorText || `HTTP ${response.status}`;
|
|
262
|
-
}
|
|
263
|
-
throw new StreamingHttpError(response.status, errorMessage);
|
|
264
|
-
}
|
|
265
|
-
if (!response.body) {
|
|
266
|
-
throw new StreamingResponseBodyNull();
|
|
267
|
-
}
|
|
268
|
-
return new PlanStream(response.body, options.streamOptions);
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Submits a signature during plan execution.
|
|
272
|
-
*
|
|
273
|
-
* When the server emits a `signature_required` event during plan execution,
|
|
274
|
-
* the client must sign the transaction and submit the signature using this method.
|
|
275
|
-
* The server will then resume execution.
|
|
276
|
-
*
|
|
277
|
-
* @param data Signature continuation data including planId, stepNumber, and signature
|
|
278
|
-
* @param options Request options including abort signal
|
|
279
|
-
*
|
|
280
|
-
* @example
|
|
281
|
-
* ```typescript
|
|
282
|
-
* stream.on('signature_required', async (event) => {
|
|
283
|
-
* const signature = await wallet.signTransaction(event.transaction);
|
|
284
|
-
* await provider.submitSignature({
|
|
285
|
-
* planId: plan.planId,
|
|
286
|
-
* stepNumber: event.stepNumber,
|
|
287
|
-
* signature,
|
|
288
|
-
* });
|
|
289
|
-
* });
|
|
290
|
-
* ```
|
|
291
|
-
*/
|
|
292
|
-
async submitSignature(data, options = {}) {
|
|
293
|
-
const requestConfig = this.buildRequestConfig(options);
|
|
294
|
-
try {
|
|
295
|
-
await this.client.post(this.routes.signature, data, requestConfig);
|
|
296
|
-
}
|
|
297
|
-
catch (error) {
|
|
298
|
-
throw new SignatureSubmissionError(`Failed to submit signature for plan ${data.planId}, step ${data.stepNumber}`, data.planId, data.stepNumber, { cause: error });
|
|
186
|
+
const errorResponse = AsyncToolCheckerErrorHandler.handle(error);
|
|
187
|
+
return errorResponse;
|
|
299
188
|
}
|
|
300
189
|
}
|
|
301
190
|
/** @inheritdoc */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreApiProvider.js","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoreApiProvider.js","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAKjC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;GAEG;AACH,MAAM,OAAO,eAAe;IACxB;;OAEG;IACgB,MAAM,CAAgB;IAEzC;;OAEG;IACgB,MAAM,CAAkC;IAE3D;;OAEG;IACc,OAAO,CAAS;IAEjC;;OAEG;IACc,WAAW,CAAqB;IAEjD;;OAEG;IACH,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAyB;QACvF,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,oBAAoB,GACtB,iBAAiB;YACjB,C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;QAC7C,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { CoreApiAuthenticationMissing } from "./CoreApiAuthenticationMissing.js";
|
|
2
2
|
export { CoreApiMethodNotImplemented } from "./CoreApiMethodNotImplemented.js";
|
|
3
|
-
export { SignatureSubmissionError } from "./SignatureSubmissionError.js";
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/coreApiProvider/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/coreApiProvider/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { CoreApiAuthenticationMissing } from "./CoreApiAuthenticationMissing.js";
|
|
2
2
|
export { CoreApiMethodNotImplemented } from "./CoreApiMethodNotImplemented.js";
|
|
3
|
-
export { SignatureSubmissionError } from "./SignatureSubmissionError.js";
|
|
4
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/providers/coreApiProvider/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/providers/coreApiProvider/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./CoreApiProvider.js";
|
|
2
2
|
export type { ICoreApiProvider } from "../../interfaces/index.js";
|
|
3
3
|
export type { CoreApiProviderConfig, CoreApiProviderRoutes } from "./interfaces/index.js";
|
|
4
|
-
export type { HttpClientFactory,
|
|
4
|
+
export type { HttpClientFactory, RequestOptions, StreamingRequestOptions } from "./types.js";
|
|
5
5
|
export * from "./errors/index.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC7F,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AAIrC,cAAc,mBAAmB,CAAC"}
|