@promptbook/remote-client 0.66.0-9 → 0.67.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 (59) hide show
  1. package/esm/index.es.js +185 -9
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +6 -4
  4. package/esm/typings/src/_packages/types.index.d.ts +7 -1
  5. package/esm/typings/src/_packages/utils.index.d.ts +14 -8
  6. package/esm/typings/src/commands/EXPECT/ExpectFormatCommand.d.ts +2 -0
  7. package/esm/typings/src/config.d.ts +6 -0
  8. package/esm/typings/src/errors/{ReferenceError.d.ts → PipelineUrlError.d.ts} +2 -2
  9. package/esm/typings/src/errors/index.d.ts +27 -0
  10. package/esm/typings/src/errors/utils/ErrorJson.d.ts +20 -0
  11. package/esm/typings/src/errors/utils/deserializeError.d.ts +7 -0
  12. package/esm/typings/src/errors/utils/deserializeError.test.d.ts +1 -0
  13. package/esm/typings/src/errors/utils/serializeError.d.ts +7 -0
  14. package/esm/typings/src/errors/utils/serializeError.test.d.ts +1 -0
  15. package/esm/typings/src/execution/ExecutionTools.d.ts +4 -1
  16. package/esm/typings/src/execution/PipelineExecutor.d.ts +1 -47
  17. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +49 -0
  18. package/esm/typings/src/execution/PromptResult.d.ts +5 -4
  19. package/esm/typings/src/execution/PromptResultUsage.d.ts +4 -0
  20. package/esm/typings/src/execution/UncertainNumber.d.ts +1 -0
  21. package/esm/typings/src/execution/assertsExecutionSuccessful.d.ts +2 -2
  22. package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +0 -1
  23. package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +2 -2
  24. package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +3 -3
  25. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -0
  26. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_Error.d.ts +2 -6
  27. package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -0
  28. package/esm/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -2
  29. package/esm/typings/src/storage/_common/PromptbookStorage.d.ts +1 -1
  30. package/esm/typings/src/types/ModelRequirements.d.ts +5 -5
  31. package/esm/typings/src/types/PipelineJson/Expectations.d.ts +3 -1
  32. package/esm/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +2 -0
  33. package/esm/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +4 -0
  34. package/esm/typings/src/types/PipelineJson/LlmTemplateJson.d.ts +2 -0
  35. package/esm/typings/src/types/PipelineJson/PersonaJson.d.ts +4 -0
  36. package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +2 -0
  37. package/esm/typings/src/types/PipelineJson/PromptDialogJson.d.ts +1 -0
  38. package/esm/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +2 -0
  39. package/esm/typings/src/types/PipelineJson/PromptTemplateJsonCommon.d.ts +2 -2
  40. package/esm/typings/src/types/PipelineJson/PromptTemplateParameterJson.d.ts +2 -0
  41. package/esm/typings/src/types/PipelineJson/ScriptJson.d.ts +1 -0
  42. package/esm/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +1 -0
  43. package/esm/typings/src/types/Prompt.d.ts +7 -7
  44. package/esm/typings/src/types/ScriptLanguage.d.ts +2 -0
  45. package/esm/typings/src/types/execution-report/ExecutionPromptReportJson.d.ts +24 -0
  46. package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +3 -20
  47. package/esm/typings/src/types/typeAliases.d.ts +7 -0
  48. package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +1 -4
  49. package/esm/typings/src/utils/serialization/$asDeeplyFrozenSerializableJson.d.ts +17 -0
  50. package/esm/typings/src/utils/{deepFreeze.d.ts → serialization/$deepFreeze.d.ts} +0 -10
  51. package/esm/typings/src/utils/serialization/checkSerializableAsJson.d.ts +27 -0
  52. package/esm/typings/src/utils/{clonePipeline.d.ts → serialization/clonePipeline.d.ts} +1 -1
  53. package/esm/typings/src/utils/serialization/isSerializableAsJson.d.ts +24 -0
  54. package/esm/typings/src/utils/serialization/isSerializableAsJson.test.d.ts +1 -0
  55. package/package.json +4 -3
  56. package/umd/index.umd.js +188 -13
  57. package/umd/index.umd.js.map +1 -1
  58. package/esm/typings/src/errors/VersionMismatchError.d.ts +0 -10
  59. /package/esm/typings/src/utils/{deepClone.d.ts → serialization/deepClone.d.ts} +0 -0
package/esm/index.es.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { io } from 'socket.io-client';
2
+ import { spaceTrim } from 'spacetrim';
2
3
 
3
4
  // ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
4
5
  /**
5
6
  * The version of the Promptbook library
6
7
  */
7
- var PROMPTBOOK_VERSION = '0.66.0-8';
8
+ var PROMPTBOOK_VERSION = '0.66.0';
8
9
  // TODO: !!!! List here all the versions and annotate + put into script
9
10
 
10
11
  /*! *****************************************************************************
@@ -76,6 +77,102 @@ function __generator(thisArg, body) {
76
77
  }
77
78
  }
78
79
 
80
+ /**
81
+ * This error indicates that the pipeline collection cannot be propperly loaded
82
+ *
83
+ * @public exported from `@promptbook/core`
84
+ */
85
+ var CollectionError = /** @class */ (function (_super) {
86
+ __extends(CollectionError, _super);
87
+ function CollectionError(message) {
88
+ var _this = _super.call(this, message) || this;
89
+ _this.name = 'CollectionError';
90
+ Object.setPrototypeOf(_this, CollectionError.prototype);
91
+ return _this;
92
+ }
93
+ return CollectionError;
94
+ }(Error));
95
+
96
+ /**
97
+ * This error type indicates that you try to use a feature that is not available in the current environment
98
+ *
99
+ * @public exported from `@promptbook/core`
100
+ */
101
+ var EnvironmentMismatchError = /** @class */ (function (_super) {
102
+ __extends(EnvironmentMismatchError, _super);
103
+ function EnvironmentMismatchError(message) {
104
+ var _this = _super.call(this, message) || this;
105
+ _this.name = 'EnvironmentMismatchError';
106
+ Object.setPrototypeOf(_this, EnvironmentMismatchError.prototype);
107
+ return _this;
108
+ }
109
+ return EnvironmentMismatchError;
110
+ }(Error));
111
+
112
+ /**
113
+ * This error type indicates that some limit was reached
114
+ *
115
+ * @public exported from `@promptbook/core`
116
+ */
117
+ var LimitReachedError = /** @class */ (function (_super) {
118
+ __extends(LimitReachedError, _super);
119
+ function LimitReachedError(message) {
120
+ var _this = _super.call(this, message) || this;
121
+ _this.name = 'LimitReachedError';
122
+ Object.setPrototypeOf(_this, LimitReachedError.prototype);
123
+ return _this;
124
+ }
125
+ return LimitReachedError;
126
+ }(Error));
127
+
128
+ /**
129
+ * This error indicates that promptbook not found in the collection
130
+ *
131
+ * @public exported from `@promptbook/core`
132
+ */
133
+ var NotFoundError = /** @class */ (function (_super) {
134
+ __extends(NotFoundError, _super);
135
+ function NotFoundError(message) {
136
+ var _this = _super.call(this, message) || this;
137
+ _this.name = 'NotFoundError';
138
+ Object.setPrototypeOf(_this, NotFoundError.prototype);
139
+ return _this;
140
+ }
141
+ return NotFoundError;
142
+ }(Error));
143
+
144
+ /**
145
+ * This error type indicates that some part of the code is not implemented yet
146
+ *
147
+ * @public exported from `@promptbook/core`
148
+ */
149
+ var NotYetImplementedError = /** @class */ (function (_super) {
150
+ __extends(NotYetImplementedError, _super);
151
+ function NotYetImplementedError(message) {
152
+ var _this = _super.call(this, spaceTrim(function (block) { return "\n ".concat(block(message), "\n\n Note: This feature is not implemented yet but it will be soon.\n\n If you want speed up the implementation or just read more, look here:\n https://github.com/webgptorg/promptbook\n\n Or contact us on me@pavolhejny.com\n\n "); })) || this;
153
+ _this.name = 'NotYetImplementedError';
154
+ Object.setPrototypeOf(_this, NotYetImplementedError.prototype);
155
+ return _this;
156
+ }
157
+ return NotYetImplementedError;
158
+ }(Error));
159
+
160
+ /**
161
+ * This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
162
+ *
163
+ * @public exported from `@promptbook/core`
164
+ */
165
+ var ParsingError = /** @class */ (function (_super) {
166
+ __extends(ParsingError, _super);
167
+ function ParsingError(message) {
168
+ var _this = _super.call(this, message) || this;
169
+ _this.name = 'ParsingError';
170
+ Object.setPrototypeOf(_this, ParsingError.prototype);
171
+ return _this;
172
+ }
173
+ return ParsingError;
174
+ }(Error));
175
+
79
176
  /**
80
177
  * This error indicates errors during the execution of the pipeline
81
178
  *
@@ -92,6 +189,86 @@ var PipelineExecutionError = /** @class */ (function (_super) {
92
189
  return PipelineExecutionError;
93
190
  }(Error));
94
191
 
192
+ /**
193
+ * This error indicates that the promptbook object has valid syntax but contains logical errors (like circular dependencies)
194
+ *
195
+ * @public exported from `@promptbook/core`
196
+ */
197
+ var PipelineLogicError = /** @class */ (function (_super) {
198
+ __extends(PipelineLogicError, _super);
199
+ function PipelineLogicError(message) {
200
+ var _this = _super.call(this, message) || this;
201
+ _this.name = 'PipelineLogicError';
202
+ Object.setPrototypeOf(_this, PipelineLogicError.prototype);
203
+ return _this;
204
+ }
205
+ return PipelineLogicError;
206
+ }(Error));
207
+
208
+ /**
209
+ * This error indicates errors in referencing promptbooks between each other
210
+ *
211
+ * @public exported from `@promptbook/core`
212
+ */
213
+ var PipelineUrlError = /** @class */ (function (_super) {
214
+ __extends(PipelineUrlError, _super);
215
+ function PipelineUrlError(message) {
216
+ var _this = _super.call(this, message) || this;
217
+ _this.name = 'PipelineUrlError';
218
+ Object.setPrototypeOf(_this, PipelineUrlError.prototype);
219
+ return _this;
220
+ }
221
+ return PipelineUrlError;
222
+ }(Error));
223
+
224
+ /**
225
+ * This error type indicates that the error should not happen and its last check before crashing with some other error
226
+ *
227
+ * @public exported from `@promptbook/core`
228
+ */
229
+ var UnexpectedError = /** @class */ (function (_super) {
230
+ __extends(UnexpectedError, _super);
231
+ function UnexpectedError(message) {
232
+ var _this = _super.call(this, spaceTrim(function (block) { return "\n ".concat(block(message), "\n\n Note: This error should not happen.\n It's probbably a bug in the pipeline collection\n\n Please report issue:\n https://github.com/webgptorg/promptbook/issues\n\n Or contact us on me@pavolhejny.com\n\n "); })) || this;
233
+ _this.name = 'UnexpectedError';
234
+ Object.setPrototypeOf(_this, UnexpectedError.prototype);
235
+ return _this;
236
+ }
237
+ return UnexpectedError;
238
+ }(Error));
239
+
240
+ /**
241
+ * Index of all custom errors
242
+ *
243
+ * @public exported from `@promptbook/core`
244
+ */
245
+ var ERRORS = {
246
+ CollectionError: CollectionError,
247
+ EnvironmentMismatchError: EnvironmentMismatchError,
248
+ LimitReachedError: LimitReachedError,
249
+ NotFoundError: NotFoundError,
250
+ NotYetImplementedError: NotYetImplementedError,
251
+ ParsingError: ParsingError,
252
+ PipelineExecutionError: PipelineExecutionError,
253
+ PipelineLogicError: PipelineLogicError,
254
+ PipelineUrlError: PipelineUrlError,
255
+ UnexpectedError: UnexpectedError,
256
+ // TODO: [🪑]> VersionMismatchError,
257
+ };
258
+
259
+ /**
260
+ * Deserializes the error object
261
+ *
262
+ * @public exported from `@promptbook/utils`
263
+ */
264
+ function deserializeError(error) {
265
+ if (error.name === 'Error') {
266
+ return new Error(error.message);
267
+ }
268
+ var CustomError = ERRORS[error.name];
269
+ return new CustomError(error.message);
270
+ }
271
+
95
272
  /**
96
273
  * Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
97
274
  *
@@ -152,13 +329,13 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
152
329
  socket.emit('listModels-request', {
153
330
  isAnonymous: true,
154
331
  llmToolsConfiguration: this.options.llmToolsConfiguration,
155
- });
332
+ } /* <- TODO: [🤛] */);
156
333
  }
157
334
  else {
158
335
  socket.emit('listModels-request', {
159
336
  isAnonymous: false,
160
337
  clientId: this.options.clientId,
161
- });
338
+ } /* <- TODO: [🤛] */);
162
339
  }
163
340
  return [4 /*yield*/, new Promise(function (resolve, reject) {
164
341
  socket.on('listModels-response', function (response) {
@@ -166,7 +343,7 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
166
343
  socket.disconnect();
167
344
  });
168
345
  socket.on('error', function (error) {
169
- reject(new Error(error.errorMessage));
346
+ reject(deserializeError(error));
170
347
  socket.disconnect();
171
348
  });
172
349
  })];
@@ -245,16 +422,14 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
245
422
  isAnonymous: true,
246
423
  llmToolsConfiguration: this.options.llmToolsConfiguration,
247
424
  prompt: prompt,
248
- // <- TODO: [🛫] `prompt` is NOT fully serializable as JSON, it contains functions which are not serializable
249
- });
425
+ } /* <- TODO: [🤛] */);
250
426
  }
251
427
  else {
252
428
  socket.emit('prompt-request', {
253
429
  isAnonymous: false,
254
430
  clientId: this.options.clientId,
255
431
  prompt: prompt,
256
- // <- TODO: [🛫] `prompt` is NOT fully serializable as JSON, it contains functions which are not serializable
257
- });
432
+ } /* <- TODO: [🤛] */);
258
433
  }
259
434
  return [4 /*yield*/, new Promise(function (resolve, reject) {
260
435
  socket.on('prompt-response', function (response) {
@@ -262,7 +437,7 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
262
437
  socket.disconnect();
263
438
  });
264
439
  socket.on('error', function (error) {
265
- reject(new PipelineExecutionError(error.errorMessage));
440
+ reject(deserializeError(error));
266
441
  socket.disconnect();
267
442
  });
268
443
  })];
@@ -277,6 +452,7 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
277
452
  return RemoteLlmExecutionTools;
278
453
  }());
279
454
  /**
455
+ * TODO: Maybe use `$asDeeplyFrozenSerializableJson`
280
456
  * TODO: [🧠][🛍] Maybe not `isAnonymous: boolean` BUT `mode: 'ANONYMOUS'|'COLLECTION'`
281
457
  * TODO: [🍓] Allow to list compatible models with each variant
282
458
  * TODO: [🗯] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../src/version.ts","../../../node_modules/tslib/tslib.es6.js","../../../../src/errors/PipelineExecutionError.ts","../../../../src/llm-providers/remote/RemoteLlmExecutionTools.ts"],"sourcesContent":[null,"/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null],"names":[],"mappings":";;AAAA;AAIA;;;IAGa,kBAAkB,GAA8B,WAAW;AAGxE;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;AACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;AACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;AACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,G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AAC,cAAc,EAAE,EAAA;;wBAApC,MAAM,GAAG,SAA2B;wBAE1C,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;4BAC1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE;gCAC1B,WAAW,EAAE,IAAI;gCACjB,qBAAqB,EAAE,IAAI,CAAC,OAAO,CAAC,qBAAqB;gCACzD,MAAM,QAAA;;6BAEiC,CAAC,CAAC;yBAChD;6BAAM;4BACH,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE;gCAC1B,WAAW,EAAE,KAAK;gCAClB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;gCAC/B,MAAM,QAAA;;6BAEiC,CAAC,CAAC;yBAChD;wBAEoB,qBAAM,IAAI,OAAO,CAAe,UAAC,OAAO,EAAE,MAAM;gCACjE,MAAM,CAAC,EAAE,CAAC,iBAAiB,EAAE,UAAC,QAA0C;oCACpE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;oCAC/B,MAAM,CAAC,UAAU,EAAE,CAAC;iCACvB,CAAC,CAAC;gCACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,UAAC,KAA6B;oCAC7C,MAAM,CAAC,IAAI,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;oCACvD,MAAM,CAAC,UAAU,EAAE,CAAC;iCACvB,CAAC,CAAC;6BACN,CAAC,EAAA;;wBATI,YAAY,GAAG,SASnB;wBAEF,MAAM,CAAC,UAAU,EAAE,CAAC;wBAEpB,sBAAO,YAAY,EAAC;;;;KACvB;IACL,8BAAC;AAAD,CAAC,IAAA;AAED;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../../../src/version.ts","../../../node_modules/tslib/tslib.es6.js","../../../../src/errors/CollectionError.ts","../../../../src/errors/EnvironmentMismatchError.ts","../../../../src/errors/LimitReachedError.ts","../../../../src/errors/NotFoundError.ts","../../../../src/errors/NotYetImplementedError.ts","../../../../src/errors/ParsingError.ts","../../../../src/errors/PipelineExecutionError.ts","../../../../src/errors/PipelineLogicError.ts","../../../../src/errors/PipelineUrlError.ts","../../../../src/errors/UnexpectedError.ts","../../../../src/errors/index.ts","../../../../src/errors/utils/deserializeError.ts","../../../../src/llm-providers/remote/RemoteLlmExecutionTools.ts"],"sourcesContent":[null,"/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;AAAA;AAIA;;;IAGa,kBAAkB,GAA8B,SAAS;AAGtE;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;AACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;AACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE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EAAE,CAAC,iBAAiB,EAAE,UAAC,QAA0C;oCACpE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;oCAC/B,MAAM,CAAC,UAAU,EAAE,CAAC;iCACvB,CAAC,CAAC;gCACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,UAAC,KAA6B;oCAC7C,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;oCAChC,MAAM,CAAC,UAAU,EAAE,CAAC;iCACvB,CAAC,CAAC;6BACN,CAAC,EAAA;;wBATI,YAAY,GAAG,SASnB;wBAEF,MAAM,CAAC,UAAU,EAAE,CAAC;wBAEpB,sBAAO,YAAY,EAAC;;;;KACvB;IACL,8BAAC;AAAD,CAAC,IAAA;AAED;;;;;;;;;;;"}
@@ -17,6 +17,7 @@ import { PIPELINE_COLLECTION_BASE_FILENAME } from '../config';
17
17
  import { RESERVED_PARAMETER_NAMES } from '../config';
18
18
  import { DEFAULT_REMOTE_URL } from '../config';
19
19
  import { DEFAULT_REMOTE_URL_PATH } from '../config';
20
+ import { IS_VERBOSE } from '../config';
20
21
  import { pipelineJsonToString } from '../conversion/pipelineJsonToString';
21
22
  import type { PipelineStringToJsonOptions } from '../conversion/pipelineStringToJson';
22
23
  import { pipelineStringToJson } from '../conversion/pipelineStringToJson';
@@ -26,15 +27,15 @@ import { stringifyPipelineJson } from '../conversion/utils/stringifyPipelineJson
26
27
  import { validatePipeline } from '../conversion/validation/validatePipeline';
27
28
  import { CollectionError } from '../errors/CollectionError';
28
29
  import { EnvironmentMismatchError } from '../errors/EnvironmentMismatchError';
30
+ import { ERRORS } from '../errors/index';
29
31
  import { LimitReachedError } from '../errors/LimitReachedError';
30
32
  import { NotFoundError } from '../errors/NotFoundError';
31
33
  import { NotYetImplementedError } from '../errors/NotYetImplementedError';
32
34
  import { ParsingError } from '../errors/ParsingError';
33
35
  import { PipelineExecutionError } from '../errors/PipelineExecutionError';
34
36
  import { PipelineLogicError } from '../errors/PipelineLogicError';
35
- import { ReferenceError } from '../errors/ReferenceError';
37
+ import { PipelineUrlError } from '../errors/PipelineUrlError';
36
38
  import { UnexpectedError } from '../errors/UnexpectedError';
37
- import { VersionMismatchError } from '../errors/VersionMismatchError';
38
39
  import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
39
40
  import { createPipelineExecutor } from '../execution/createPipelineExecutor';
40
41
  import { embeddingVectorToString } from '../execution/embeddingVectorToString';
@@ -88,6 +89,7 @@ export { PIPELINE_COLLECTION_BASE_FILENAME };
88
89
  export { RESERVED_PARAMETER_NAMES };
89
90
  export { DEFAULT_REMOTE_URL };
90
91
  export { DEFAULT_REMOTE_URL_PATH };
92
+ export { IS_VERBOSE };
91
93
  export { pipelineJsonToString };
92
94
  export type { PipelineStringToJsonOptions };
93
95
  export { pipelineStringToJson };
@@ -97,15 +99,15 @@ export { stringifyPipelineJson };
97
99
  export { validatePipeline };
98
100
  export { CollectionError };
99
101
  export { EnvironmentMismatchError };
102
+ export { ERRORS };
100
103
  export { LimitReachedError };
101
104
  export { NotFoundError };
102
105
  export { NotYetImplementedError };
103
106
  export { ParsingError };
104
107
  export { PipelineExecutionError };
105
108
  export { PipelineLogicError };
106
- export { ReferenceError };
109
+ export { PipelineUrlError };
107
110
  export { UnexpectedError };
108
- export { VersionMismatchError };
109
111
  export { assertsExecutionSuccessful };
110
112
  export { createPipelineExecutor };
111
113
  export { embeddingVectorToString };
@@ -10,6 +10,7 @@ import type { ExpectFormatCommand } from '../commands/EXPECT/ExpectFormatCommand
10
10
  import type { PipelineStringToJsonOptions } from '../conversion/pipelineStringToJson';
11
11
  import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';
12
12
  import type { renderPipelineMermaidOptions } from '../conversion/prettify/renderPipelineMermaidOptions';
13
+ import type { ErrorJson } from '../errors/utils/ErrorJson';
13
14
  import type { AvailableModel } from '../execution/AvailableModel';
14
15
  import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
15
16
  import type { EmbeddingVector } from '../execution/EmbeddingVector';
@@ -17,7 +18,7 @@ import type { ExecutionTools } from '../execution/ExecutionTools';
17
18
  import type { LlmExecutionTools } from '../execution/LlmExecutionTools';
18
19
  import type { LlmExecutionToolsConstructor } from '../execution/LlmExecutionToolsConstructor';
19
20
  import type { PipelineExecutor } from '../execution/PipelineExecutor';
20
- import type { PipelineExecutorResult } from '../execution/PipelineExecutor';
21
+ import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult';
21
22
  import type { PromptResult } from '../execution/PromptResult';
22
23
  import type { CompletionPromptResult } from '../execution/PromptResult';
23
24
  import type { ChatPromptResult } from '../execution/PromptResult';
@@ -63,6 +64,7 @@ import type { JavascriptExecutionToolsOptions } from '../scripting/javascript/Ja
63
64
  import type { PostprocessingFunction } from '../scripting/javascript/JavascriptExecutionToolsOptions';
64
65
  import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
65
66
  import type { FilesStorageOptions } from '../storage/files-storage/FilesStorageOptions';
67
+ import type { ExecutionPromptReportJson } from '../types/execution-report/ExecutionPromptReportJson';
66
68
  import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
67
69
  import type { ExecutionReportString } from '../types/execution-report/ExecutionReportString';
68
70
  import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
@@ -177,6 +179,7 @@ import type { string_translate_name } from '../types/typeAliases';
177
179
  import type { string_translate_name_not_normalized } from '../types/typeAliases';
178
180
  import type { string_translate_language } from '../types/typeAliases';
179
181
  import type { string_javascript_name } from '../types/typeAliases';
182
+ import type { string_postprocessing_function_name } from '../types/typeAliases';
180
183
  import type { string_token } from '../types/typeAliases';
181
184
  import type { string_license_token } from '../types/typeAliases';
182
185
  import type { string_password } from '../types/typeAliases';
@@ -233,6 +236,7 @@ export type { ExpectFormatCommand };
233
236
  export type { PipelineStringToJsonOptions };
234
237
  export type { PrettifyOptions };
235
238
  export type { renderPipelineMermaidOptions };
239
+ export type { ErrorJson };
236
240
  export type { AvailableModel };
237
241
  export type { CommonExecutionToolsOptions };
238
242
  export type { EmbeddingVector };
@@ -286,6 +290,7 @@ export type { JavascriptExecutionToolsOptions };
286
290
  export type { PostprocessingFunction };
287
291
  export type { PromptbookStorage };
288
292
  export type { FilesStorageOptions };
293
+ export type { ExecutionPromptReportJson };
289
294
  export type { ExecutionReportJson };
290
295
  export type { ExecutionReportString };
291
296
  export type { ExecutionReportStringOptions };
@@ -400,6 +405,7 @@ export type { string_translate_name };
400
405
  export type { string_translate_name_not_normalized };
401
406
  export type { string_translate_language };
402
407
  export type { string_javascript_name };
408
+ export type { string_postprocessing_function_name };
403
409
  export type { string_token };
404
410
  export type { string_license_token };
405
411
  export type { string_password };
@@ -4,14 +4,12 @@ import { extractParameterNamesFromPromptTemplate } from '../conversion/utils/ext
4
4
  import { extractVariables } from '../conversion/utils/extractVariables';
5
5
  import { renameParameter } from '../conversion/utils/renameParameter';
6
6
  import { titleToName } from '../conversion/utils/titleToName';
7
+ import { deserializeError } from '../errors/utils/deserializeError';
8
+ import { serializeError } from '../errors/utils/serializeError';
7
9
  import { forEachAsync } from '../execution/utils/forEachAsync';
8
10
  import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
9
11
  import { extractBlock } from '../postprocessing/utils/extractBlock';
10
12
  import { $currentDate } from '../utils/$currentDate';
11
- import { clonePipeline } from '../utils/clonePipeline';
12
- import { deepClone } from '../utils/deepClone';
13
- import { $deepFreeze } from '../utils/deepFreeze';
14
- import { $getGlobalScope } from '../utils/environment/$getGlobalScope';
15
13
  import { $isRunningInBrowser } from '../utils/environment/$isRunningInBrowser';
16
14
  import { $isRunningInNode } from '../utils/environment/$isRunningInNode';
17
15
  import { $isRunningInWebWorker } from '../utils/environment/$isRunningInWebWorker';
@@ -51,6 +49,11 @@ import { $randomSeed } from '../utils/random/$randomSeed';
51
49
  import { removeEmojis } from '../utils/removeEmojis';
52
50
  import { removeQuotes } from '../utils/removeQuotes';
53
51
  import { replaceParameters } from '../utils/replaceParameters';
52
+ import { $deepFreeze } from '../utils/serialization/$deepFreeze';
53
+ import { checkSerializableAsJson } from '../utils/serialization/checkSerializableAsJson';
54
+ import { clonePipeline } from '../utils/serialization/clonePipeline';
55
+ import { deepClone } from '../utils/serialization/deepClone';
56
+ import { isSerializableAsJson } from '../utils/serialization/isSerializableAsJson';
54
57
  import { difference } from '../utils/sets/difference';
55
58
  import { intersection } from '../utils/sets/intersection';
56
59
  import { union } from '../utils/sets/union';
@@ -73,14 +76,12 @@ export { extractParameterNamesFromPromptTemplate };
73
76
  export { extractVariables };
74
77
  export { renameParameter };
75
78
  export { titleToName };
79
+ export { deserializeError };
80
+ export { serializeError };
76
81
  export { forEachAsync };
77
82
  export { isValidJsonString };
78
83
  export { extractBlock };
79
84
  export { $currentDate };
80
- export { clonePipeline };
81
- export { deepClone };
82
- export { $deepFreeze };
83
- export { $getGlobalScope };
84
85
  export { $isRunningInBrowser };
85
86
  export { $isRunningInNode };
86
87
  export { $isRunningInWebWorker };
@@ -120,6 +121,11 @@ export { $randomSeed };
120
121
  export { removeEmojis };
121
122
  export { removeQuotes };
122
123
  export { replaceParameters };
124
+ export { $deepFreeze };
125
+ export { checkSerializableAsJson };
126
+ export { clonePipeline };
127
+ export { deepClone };
128
+ export { isSerializableAsJson };
123
129
  export { difference };
124
130
  export { intersection };
125
131
  export { union };
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Represents a command that expects a specific format.
3
+ *
4
+ * Note: [🚉] This is fully serializable as JSON
3
5
  */
4
6
  export type ExpectFormatCommand = {
5
7
  readonly type: 'EXPECT_FORMAT';
@@ -119,6 +119,12 @@ export declare const DEFAULT_REMOTE_URL = "https://api.pavolhejny.com/";
119
119
  * @public exported from `@promptbook/core`
120
120
  */
121
121
  export declare const DEFAULT_REMOTE_URL_PATH = "/promptbook/socket.io";
122
+ /**
123
+ * @@@
124
+ *
125
+ * @public exported from `@promptbook/core`
126
+ */
127
+ export declare const IS_VERBOSE = false;
122
128
  /**
123
129
  * @@@
124
130
  *
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @public exported from `@promptbook/core`
5
5
  */
6
- export declare class ReferenceError extends Error {
7
- readonly name = "ReferenceError";
6
+ export declare class PipelineUrlError extends Error {
7
+ readonly name = "PipelineUrlError";
8
8
  constructor(message: string);
9
9
  }
@@ -0,0 +1,27 @@
1
+ import { CollectionError } from './CollectionError';
2
+ import { EnvironmentMismatchError } from './EnvironmentMismatchError';
3
+ import { LimitReachedError } from './LimitReachedError';
4
+ import { NotFoundError } from './NotFoundError';
5
+ import { NotYetImplementedError } from './NotYetImplementedError';
6
+ import { ParsingError } from './ParsingError';
7
+ import { PipelineExecutionError } from './PipelineExecutionError';
8
+ import { PipelineLogicError } from './PipelineLogicError';
9
+ import { PipelineUrlError } from './PipelineUrlError';
10
+ import { UnexpectedError } from './UnexpectedError';
11
+ /**
12
+ * Index of all custom errors
13
+ *
14
+ * @public exported from `@promptbook/core`
15
+ */
16
+ export declare const ERRORS: {
17
+ readonly CollectionError: typeof CollectionError;
18
+ readonly EnvironmentMismatchError: typeof EnvironmentMismatchError;
19
+ readonly LimitReachedError: typeof LimitReachedError;
20
+ readonly NotFoundError: typeof NotFoundError;
21
+ readonly NotYetImplementedError: typeof NotYetImplementedError;
22
+ readonly ParsingError: typeof ParsingError;
23
+ readonly PipelineExecutionError: typeof PipelineExecutionError;
24
+ readonly PipelineLogicError: typeof PipelineLogicError;
25
+ readonly PipelineUrlError: typeof PipelineUrlError;
26
+ readonly UnexpectedError: typeof UnexpectedError;
27
+ };
@@ -0,0 +1,20 @@
1
+ import type { ERRORS } from '../index';
2
+ /**
3
+ * Represents a serialized error or custom Promptbook error
4
+ *
5
+ * Note: [🚉] This is fully serializable as JSON
6
+ */
7
+ export type ErrorJson = {
8
+ /**
9
+ * The type of the error
10
+ */
11
+ readonly name: keyof typeof ERRORS | 'Error';
12
+ /**
13
+ * The message of the error
14
+ */
15
+ readonly message: string;
16
+ /**
17
+ * The stack trace of the error
18
+ */
19
+ readonly stack?: string;
20
+ };
@@ -0,0 +1,7 @@
1
+ import type { ErrorJson } from './ErrorJson';
2
+ /**
3
+ * Deserializes the error object
4
+ *
5
+ * @public exported from `@promptbook/utils`
6
+ */
7
+ export declare function deserializeError(error: ErrorJson): Error;
@@ -0,0 +1,7 @@
1
+ import type { ErrorJson } from './ErrorJson';
2
+ /**
3
+ * Serializes an error into a [🚉] JSON-serializable object
4
+ *
5
+ * @public exported from `@promptbook/utils`
6
+ */
7
+ export declare function serializeError(error: Error): ErrorJson;