jaypie 1.2.0-rc.4 → 1.2.0-rc.6
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/cjs/index.cjs +28 -341
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +4 -6
- package/dist/esm/index.d.ts +4 -6
- package/dist/esm/index.js +5 -302
- package/dist/esm/index.js.map +1 -1
- package/package.json +5 -6
- package/dist/cjs/aws.d.ts +0 -11
- package/dist/cjs/datadog.d.ts +0 -8
- package/dist/cjs/express.d.ts +0 -15
- package/dist/cjs/kit.d.ts +0 -5
- package/dist/cjs/lambda.d.ts +0 -4
- package/dist/cjs/llm.d.ts +0 -12
- package/dist/cjs/loadPackage.d.ts +0 -1
- package/dist/cjs/mongoose.d.ts +0 -7
- package/dist/esm/aws.d.ts +0 -11
- package/dist/esm/datadog.d.ts +0 -8
- package/dist/esm/express.d.ts +0 -15
- package/dist/esm/kit.d.ts +0 -5
- package/dist/esm/lambda.d.ts +0 -4
- package/dist/esm/llm.d.ts +0 -12
- package/dist/esm/loadPackage.d.ts +0 -1
- package/dist/esm/mongoose.d.ts +0 -7
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
var errors = require('@jaypie/errors');
|
|
4
4
|
var kit = require('@jaypie/kit');
|
|
5
5
|
var logger = require('@jaypie/logger');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var aws = require('@jaypie/aws');
|
|
7
|
+
var datadog = require('@jaypie/datadog');
|
|
8
|
+
var express = require('@jaypie/express');
|
|
9
|
+
var lambda = require('@jaypie/lambda');
|
|
8
10
|
|
|
9
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
10
11
|
// ERROR constant - mirror from @jaypie/errors types
|
|
11
12
|
const ERROR = {
|
|
12
13
|
MESSAGE: {
|
|
@@ -73,304 +74,6 @@ const ERROR = {
|
|
|
73
74
|
},
|
|
74
75
|
};
|
|
75
76
|
|
|
76
|
-
// CJS/ESM compatible require - handles bundling to CJS where import.meta.url becomes undefined
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
78
|
-
// @ts-ignore - __filename exists in CJS context when ESM is bundled to CJS
|
|
79
|
-
const require$1 = typeof __filename !== "undefined"
|
|
80
|
-
? module$1.createRequire(url.pathToFileURL(__filename).href)
|
|
81
|
-
: module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
|
|
82
|
-
const packageCache = new Map();
|
|
83
|
-
function loadPackage(packageName) {
|
|
84
|
-
if (packageCache.has(packageName)) {
|
|
85
|
-
return packageCache.get(packageName);
|
|
86
|
-
}
|
|
87
|
-
try {
|
|
88
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
89
|
-
const pkg = require$1(packageName);
|
|
90
|
-
packageCache.set(packageName, pkg);
|
|
91
|
-
return pkg;
|
|
92
|
-
}
|
|
93
|
-
catch (error) {
|
|
94
|
-
const resolveAttempt = safeResolve(packageName);
|
|
95
|
-
const err = error;
|
|
96
|
-
// eslint-disable-next-line no-console
|
|
97
|
-
console.error(`[jaypie] loadPackage failed for "${packageName}"`, {
|
|
98
|
-
importMetaUrl: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)),
|
|
99
|
-
resolveAttempt,
|
|
100
|
-
errorCode: err.code,
|
|
101
|
-
errorMessage: err.message,
|
|
102
|
-
});
|
|
103
|
-
throw new errors.ConfigurationError(`${packageName} is required but not installed. Run: npm install ${packageName}`);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function safeResolve(packageName) {
|
|
107
|
-
try {
|
|
108
|
-
return require$1.resolve(packageName);
|
|
109
|
-
}
|
|
110
|
-
catch {
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function getEnvSecret(...args) {
|
|
116
|
-
return loadPackage("@jaypie/aws").getEnvSecret(...args);
|
|
117
|
-
}
|
|
118
|
-
function getMessages(...args) {
|
|
119
|
-
return loadPackage("@jaypie/aws").getMessages(...args);
|
|
120
|
-
}
|
|
121
|
-
function getSecret(...args) {
|
|
122
|
-
return loadPackage("@jaypie/aws").getSecret(...args);
|
|
123
|
-
}
|
|
124
|
-
function getSingletonMessage(...args) {
|
|
125
|
-
return loadPackage("@jaypie/aws").getSingletonMessage(...args);
|
|
126
|
-
}
|
|
127
|
-
function getTextractJob(...args) {
|
|
128
|
-
return loadPackage("@jaypie/aws").getTextractJob(...args);
|
|
129
|
-
}
|
|
130
|
-
function sendBatchMessages(...args) {
|
|
131
|
-
return loadPackage("@jaypie/aws").sendBatchMessages(...args);
|
|
132
|
-
}
|
|
133
|
-
function sendMessage(...args) {
|
|
134
|
-
return loadPackage("@jaypie/aws").sendMessage(...args);
|
|
135
|
-
}
|
|
136
|
-
function sendTextractJob(...args) {
|
|
137
|
-
return loadPackage("@jaypie/aws").sendTextractJob(...args);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Re-export constant via getter to lazy load
|
|
141
|
-
const DATADOG = new Proxy({}, {
|
|
142
|
-
get(_, prop) {
|
|
143
|
-
return loadPackage("@jaypie/datadog").DATADOG[prop];
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
function hasDatadogEnv(...args) {
|
|
147
|
-
return loadPackage("@jaypie/datadog").hasDatadogEnv(...args);
|
|
148
|
-
}
|
|
149
|
-
function submitDistribution(...args) {
|
|
150
|
-
return loadPackage("@jaypie/datadog").submitDistribution(...args);
|
|
151
|
-
}
|
|
152
|
-
function submitMetric(...args) {
|
|
153
|
-
return loadPackage("@jaypie/datadog").submitMetric(...args);
|
|
154
|
-
}
|
|
155
|
-
function submitMetricSet(...args) {
|
|
156
|
-
return loadPackage("@jaypie/datadog").submitMetricSet(...args);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Re-export constant via getter to lazy load
|
|
160
|
-
const EXPRESS = new Proxy({}, {
|
|
161
|
-
get(_, prop) {
|
|
162
|
-
return loadPackage("@jaypie/express").EXPRESS[prop];
|
|
163
|
-
},
|
|
164
|
-
});
|
|
165
|
-
function cors(...args) {
|
|
166
|
-
return loadPackage("@jaypie/express").cors(...args);
|
|
167
|
-
}
|
|
168
|
-
function expressHandler(...args) {
|
|
169
|
-
return loadPackage("@jaypie/express").expressHandler(...args);
|
|
170
|
-
}
|
|
171
|
-
function expressHttpCodeHandler(...args) {
|
|
172
|
-
return loadPackage("@jaypie/express").expressHttpCodeHandler(...args);
|
|
173
|
-
}
|
|
174
|
-
// Route exports - these are pre-created handlers, so we use getters
|
|
175
|
-
const badRequestRoute = new Proxy((() => { }), {
|
|
176
|
-
apply(_, thisArg, args) {
|
|
177
|
-
return Reflect.apply(loadPackage("@jaypie/express").badRequestRoute, thisArg, args);
|
|
178
|
-
},
|
|
179
|
-
get(_, prop) {
|
|
180
|
-
const route = loadPackage("@jaypie/express")
|
|
181
|
-
.badRequestRoute;
|
|
182
|
-
return route[prop];
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
const echoRoute = new Proxy((() => { }), {
|
|
186
|
-
apply(_, thisArg, args) {
|
|
187
|
-
return Reflect.apply(loadPackage("@jaypie/express").echoRoute, thisArg, args);
|
|
188
|
-
},
|
|
189
|
-
get(_, prop) {
|
|
190
|
-
const route = loadPackage("@jaypie/express")
|
|
191
|
-
.echoRoute;
|
|
192
|
-
return route[prop];
|
|
193
|
-
},
|
|
194
|
-
});
|
|
195
|
-
const forbiddenRoute = new Proxy((() => { }), {
|
|
196
|
-
apply(_, thisArg, args) {
|
|
197
|
-
return Reflect.apply(loadPackage("@jaypie/express").forbiddenRoute, thisArg, args);
|
|
198
|
-
},
|
|
199
|
-
get(_, prop) {
|
|
200
|
-
const route = loadPackage("@jaypie/express")
|
|
201
|
-
.forbiddenRoute;
|
|
202
|
-
return route[prop];
|
|
203
|
-
},
|
|
204
|
-
});
|
|
205
|
-
const goneRoute = new Proxy((() => { }), {
|
|
206
|
-
apply(_, thisArg, args) {
|
|
207
|
-
return Reflect.apply(loadPackage("@jaypie/express").goneRoute, thisArg, args);
|
|
208
|
-
},
|
|
209
|
-
get(_, prop) {
|
|
210
|
-
const route = loadPackage("@jaypie/express")
|
|
211
|
-
.goneRoute;
|
|
212
|
-
return route[prop];
|
|
213
|
-
},
|
|
214
|
-
});
|
|
215
|
-
const methodNotAllowedRoute = new Proxy((() => { }), {
|
|
216
|
-
apply(_, thisArg, args) {
|
|
217
|
-
return Reflect.apply(loadPackage("@jaypie/express").methodNotAllowedRoute, thisArg, args);
|
|
218
|
-
},
|
|
219
|
-
get(_, prop) {
|
|
220
|
-
const route = loadPackage("@jaypie/express")
|
|
221
|
-
.methodNotAllowedRoute;
|
|
222
|
-
return route[prop];
|
|
223
|
-
},
|
|
224
|
-
});
|
|
225
|
-
const noContentRoute = new Proxy((() => { }), {
|
|
226
|
-
apply(_, thisArg, args) {
|
|
227
|
-
return Reflect.apply(loadPackage("@jaypie/express").noContentRoute, thisArg, args);
|
|
228
|
-
},
|
|
229
|
-
get(_, prop) {
|
|
230
|
-
const route = loadPackage("@jaypie/express")
|
|
231
|
-
.noContentRoute;
|
|
232
|
-
return route[prop];
|
|
233
|
-
},
|
|
234
|
-
});
|
|
235
|
-
const notFoundRoute = new Proxy((() => { }), {
|
|
236
|
-
apply(_, thisArg, args) {
|
|
237
|
-
return Reflect.apply(loadPackage("@jaypie/express").notFoundRoute, thisArg, args);
|
|
238
|
-
},
|
|
239
|
-
get(_, prop) {
|
|
240
|
-
const route = loadPackage("@jaypie/express")
|
|
241
|
-
.notFoundRoute;
|
|
242
|
-
return route[prop];
|
|
243
|
-
},
|
|
244
|
-
});
|
|
245
|
-
const notImplementedRoute = new Proxy((() => { }), {
|
|
246
|
-
apply(_, thisArg, args) {
|
|
247
|
-
return Reflect.apply(loadPackage("@jaypie/express").notImplementedRoute, thisArg, args);
|
|
248
|
-
},
|
|
249
|
-
get(_, prop) {
|
|
250
|
-
const route = loadPackage("@jaypie/express")
|
|
251
|
-
.notImplementedRoute;
|
|
252
|
-
return route[prop];
|
|
253
|
-
},
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
function lambdaHandler(...args) {
|
|
257
|
-
return loadPackage("@jaypie/lambda").lambdaHandler(...args);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// Re-export enums via getters
|
|
261
|
-
const LlmMessageRole = new Proxy({}, {
|
|
262
|
-
get(_, prop) {
|
|
263
|
-
return loadPackage("@jaypie/llm").LlmMessageRole[prop];
|
|
264
|
-
},
|
|
265
|
-
});
|
|
266
|
-
const LlmMessageType = new Proxy({}, {
|
|
267
|
-
get(_, prop) {
|
|
268
|
-
return loadPackage("@jaypie/llm").LlmMessageType[prop];
|
|
269
|
-
},
|
|
270
|
-
});
|
|
271
|
-
// Re-export LLM constants namespace via getter
|
|
272
|
-
const LLM = new Proxy({}, {
|
|
273
|
-
get(_, prop) {
|
|
274
|
-
return loadPackage("@jaypie/llm").LLM[prop];
|
|
275
|
-
},
|
|
276
|
-
});
|
|
277
|
-
// Llm class wrapper
|
|
278
|
-
const Llm = new Proxy(function () { }, {
|
|
279
|
-
construct(_, args) {
|
|
280
|
-
const LlmClass = loadPackage("@jaypie/llm").Llm;
|
|
281
|
-
return new LlmClass(...args);
|
|
282
|
-
},
|
|
283
|
-
get(_, prop) {
|
|
284
|
-
const LlmClass = loadPackage("@jaypie/llm")
|
|
285
|
-
.Llm;
|
|
286
|
-
return LlmClass[prop];
|
|
287
|
-
},
|
|
288
|
-
});
|
|
289
|
-
// Toolkit exports
|
|
290
|
-
const JaypieToolkit = new Proxy(function () { }, {
|
|
291
|
-
construct(_, args) {
|
|
292
|
-
const ToolkitClass = loadPackage("@jaypie/llm").JaypieToolkit;
|
|
293
|
-
return new ToolkitClass(...args);
|
|
294
|
-
},
|
|
295
|
-
get(_, prop) {
|
|
296
|
-
const ToolkitClass = loadPackage("@jaypie/llm")
|
|
297
|
-
.JaypieToolkit;
|
|
298
|
-
return ToolkitClass[prop];
|
|
299
|
-
},
|
|
300
|
-
});
|
|
301
|
-
const Toolkit = new Proxy(function () { }, {
|
|
302
|
-
construct(_, args) {
|
|
303
|
-
const ToolkitClass = loadPackage("@jaypie/llm").Toolkit;
|
|
304
|
-
return new ToolkitClass(...args);
|
|
305
|
-
},
|
|
306
|
-
get(_, prop) {
|
|
307
|
-
const ToolkitClass = loadPackage("@jaypie/llm")
|
|
308
|
-
.Toolkit;
|
|
309
|
-
return ToolkitClass[prop];
|
|
310
|
-
},
|
|
311
|
-
});
|
|
312
|
-
// toolkit and tools are objects/instances
|
|
313
|
-
const toolkit = new Proxy({}, {
|
|
314
|
-
get(_, prop) {
|
|
315
|
-
const toolkitObj = loadPackage("@jaypie/llm")
|
|
316
|
-
.toolkit;
|
|
317
|
-
return toolkitObj[prop];
|
|
318
|
-
},
|
|
319
|
-
});
|
|
320
|
-
const tools = new Proxy({}, {
|
|
321
|
-
get(_, prop) {
|
|
322
|
-
const toolsObj = loadPackage("@jaypie/llm")
|
|
323
|
-
.tools;
|
|
324
|
-
return toolsObj[prop];
|
|
325
|
-
},
|
|
326
|
-
});
|
|
327
|
-
// Provider exports
|
|
328
|
-
const GeminiProvider = new Proxy(function () { }, {
|
|
329
|
-
construct(_, args) {
|
|
330
|
-
const ProviderClass = loadPackage("@jaypie/llm").GeminiProvider;
|
|
331
|
-
return new ProviderClass(...args);
|
|
332
|
-
},
|
|
333
|
-
get(_, prop) {
|
|
334
|
-
const ProviderClass = loadPackage("@jaypie/llm")
|
|
335
|
-
.GeminiProvider;
|
|
336
|
-
return ProviderClass[prop];
|
|
337
|
-
},
|
|
338
|
-
});
|
|
339
|
-
const OpenRouterProvider = new Proxy(function () { }, {
|
|
340
|
-
construct(_, args) {
|
|
341
|
-
const ProviderClass = loadPackage("@jaypie/llm").OpenRouterProvider;
|
|
342
|
-
return new ProviderClass(...args);
|
|
343
|
-
},
|
|
344
|
-
get(_, prop) {
|
|
345
|
-
const ProviderClass = loadPackage("@jaypie/llm")
|
|
346
|
-
.OpenRouterProvider;
|
|
347
|
-
return ProviderClass[prop];
|
|
348
|
-
},
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
function connect(...args) {
|
|
352
|
-
return loadPackage("@jaypie/mongoose").connect(...args);
|
|
353
|
-
}
|
|
354
|
-
function connectFromSecretEnv(...args) {
|
|
355
|
-
return loadPackage("@jaypie/mongoose").connectFromSecretEnv(...args);
|
|
356
|
-
}
|
|
357
|
-
function disconnect() {
|
|
358
|
-
return loadPackage("@jaypie/mongoose").disconnect();
|
|
359
|
-
}
|
|
360
|
-
// Re-export mongoose via getter to lazy load
|
|
361
|
-
const mongoose = new Proxy({}, {
|
|
362
|
-
get(_, prop) {
|
|
363
|
-
const mongoosePkg = loadPackage("@jaypie/mongoose")
|
|
364
|
-
.mongoose;
|
|
365
|
-
return mongoosePkg[prop];
|
|
366
|
-
},
|
|
367
|
-
apply(_, thisArg, args) {
|
|
368
|
-
const mongoosePkg = loadPackage("@jaypie/mongoose")
|
|
369
|
-
.mongoose;
|
|
370
|
-
return Reflect.apply(mongoosePkg, thisArg, args);
|
|
371
|
-
},
|
|
372
|
-
});
|
|
373
|
-
|
|
374
77
|
Object.defineProperty(exports, "MultiError", {
|
|
375
78
|
enumerable: true,
|
|
376
79
|
get: function () { return errors.InternalError; }
|
|
@@ -391,47 +94,7 @@ Object.defineProperty(exports, "log", {
|
|
|
391
94
|
enumerable: true,
|
|
392
95
|
get: function () { return logger.log; }
|
|
393
96
|
});
|
|
394
|
-
exports.DATADOG = DATADOG;
|
|
395
97
|
exports.ERROR = ERROR;
|
|
396
|
-
exports.EXPRESS = EXPRESS;
|
|
397
|
-
exports.GeminiProvider = GeminiProvider;
|
|
398
|
-
exports.JaypieToolkit = JaypieToolkit;
|
|
399
|
-
exports.LLM = LLM;
|
|
400
|
-
exports.Llm = Llm;
|
|
401
|
-
exports.LlmMessageRole = LlmMessageRole;
|
|
402
|
-
exports.LlmMessageType = LlmMessageType;
|
|
403
|
-
exports.OpenRouterProvider = OpenRouterProvider;
|
|
404
|
-
exports.Toolkit = Toolkit;
|
|
405
|
-
exports.badRequestRoute = badRequestRoute;
|
|
406
|
-
exports.connect = connect;
|
|
407
|
-
exports.connectFromSecretEnv = connectFromSecretEnv;
|
|
408
|
-
exports.cors = cors;
|
|
409
|
-
exports.disconnect = disconnect;
|
|
410
|
-
exports.echoRoute = echoRoute;
|
|
411
|
-
exports.expressHandler = expressHandler;
|
|
412
|
-
exports.expressHttpCodeHandler = expressHttpCodeHandler;
|
|
413
|
-
exports.forbiddenRoute = forbiddenRoute;
|
|
414
|
-
exports.getEnvSecret = getEnvSecret;
|
|
415
|
-
exports.getMessages = getMessages;
|
|
416
|
-
exports.getSecret = getSecret;
|
|
417
|
-
exports.getSingletonMessage = getSingletonMessage;
|
|
418
|
-
exports.getTextractJob = getTextractJob;
|
|
419
|
-
exports.goneRoute = goneRoute;
|
|
420
|
-
exports.hasDatadogEnv = hasDatadogEnv;
|
|
421
|
-
exports.lambdaHandler = lambdaHandler;
|
|
422
|
-
exports.methodNotAllowedRoute = methodNotAllowedRoute;
|
|
423
|
-
exports.mongoose = mongoose;
|
|
424
|
-
exports.noContentRoute = noContentRoute;
|
|
425
|
-
exports.notFoundRoute = notFoundRoute;
|
|
426
|
-
exports.notImplementedRoute = notImplementedRoute;
|
|
427
|
-
exports.sendBatchMessages = sendBatchMessages;
|
|
428
|
-
exports.sendMessage = sendMessage;
|
|
429
|
-
exports.sendTextractJob = sendTextractJob;
|
|
430
|
-
exports.submitDistribution = submitDistribution;
|
|
431
|
-
exports.submitMetric = submitMetric;
|
|
432
|
-
exports.submitMetricSet = submitMetricSet;
|
|
433
|
-
exports.toolkit = toolkit;
|
|
434
|
-
exports.tools = tools;
|
|
435
98
|
Object.keys(errors).forEach(function (k) {
|
|
436
99
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
437
100
|
enumerable: true,
|
|
@@ -444,4 +107,28 @@ Object.keys(kit).forEach(function (k) {
|
|
|
444
107
|
get: function () { return kit[k]; }
|
|
445
108
|
});
|
|
446
109
|
});
|
|
110
|
+
Object.keys(aws).forEach(function (k) {
|
|
111
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return aws[k]; }
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
Object.keys(datadog).forEach(function (k) {
|
|
117
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () { return datadog[k]; }
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
Object.keys(express).forEach(function (k) {
|
|
123
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return express[k]; }
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
Object.keys(lambda).forEach(function (k) {
|
|
129
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return lambda[k]; }
|
|
132
|
+
});
|
|
133
|
+
});
|
|
447
134
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/error.constant.ts","../../../src/loadPackage.ts","../../../src/aws.ts","../../../src/datadog.ts","../../../src/express.ts","../../../src/lambda.ts","../../../src/llm.ts","../../../src/mongoose.ts"],"sourcesContent":["// ERROR constant - mirror from @jaypie/errors types\nexport const ERROR = {\n MESSAGE: {\n BAD_GATEWAY: \"An unexpected error occurred on an upstream resource\",\n BAD_REQUEST: \"The request was not properly formatted\",\n CONFIGURATION_ERROR:\n \"The application responding to the request encountered a configuration error\",\n CORS_ERROR: \"The requesting origin is not authorized to this resource\",\n FORBIDDEN: \"Access to this resource is not authorized\",\n GATEWAY_TIMEOUT:\n \"The connection timed out waiting for an upstream resource\",\n GONE: \"The requested resource is no longer available\",\n ILLOGICAL:\n \"The application encountered an illogical condition while processing the request\",\n INTERNAL_ERROR:\n \"An unexpected error occurred and the request was unable to complete\",\n METHOD_NOT_ALLOWED: \"The requested method is not allowed\",\n NOT_FOUND: \"The requested resource was not found\",\n NOT_IMPLEMENTED:\n \"The request was understood but the resource is not implemented\",\n REJECTED: \"The request was rejected prior to processing\",\n TEAPOT: \"This resource is a teapot incapable of processing the request\",\n TOO_MANY_REQUESTS: \"The requesting origin exceeded the request limit\",\n UNAUTHORIZED:\n \"The request did not include valid authentication credentials\",\n UNAVAILABLE: \"The requested resource is temporarily unavailable\",\n UNHANDLED:\n \"An unhandled error occurred and the request was unable to complete\",\n UNREACHABLE_CODE:\n \"The application encountered an unreachable condition while processing the request\",\n },\n TITLE: {\n BAD_GATEWAY: \"Bad Gateway\",\n BAD_REQUEST: \"Bad Request\",\n CONFIGURATION_ERROR: \"Internal Configuration Error\",\n CORS_ERROR: \"Unauthorized Origin\",\n FORBIDDEN: \"Forbidden\",\n GATEWAY_TIMEOUT: \"Gateway Timeout\",\n GONE: \"Gone\",\n INTERNAL_ERROR: \"Internal Application Error\",\n METHOD_NOT_ALLOWED: \"Method Not Allowed\",\n NOT_FOUND: \"Not Found\",\n NOT_IMPLEMENTED: \"Not Implemented\",\n REJECTED: \"Request Rejected\",\n TEAPOT: \"Teapot\",\n TOO_MANY_REQUESTS: \"Too Many Requests\",\n UNAUTHORIZED: \"Service Unauthorized\",\n UNAVAILABLE: \"Service Unavailable\",\n },\n TYPE: {\n BAD_GATEWAY: \"BAD_GATEWAY\",\n BAD_REQUEST: \"BAD_REQUEST\",\n CONFIGURATION_ERROR: \"CONFIGURATION_ERROR\",\n CORS_ERROR: \"CORS_ERROR\",\n FORBIDDEN: \"FORBIDDEN\",\n GATEWAY_TIMEOUT: \"GATEWAY_TIMEOUT\",\n GONE: \"GONE\",\n ILLOGICAL: \"ILLOGICAL\",\n INTERNAL_ERROR: \"INTERNAL_ERROR\",\n METHOD_NOT_ALLOWED: \"METHOD_NOT_ALLOWED\",\n MULTI_ERROR: \"MULTI_ERROR\",\n NOT_FOUND: \"NOT_FOUND\",\n NOT_IMPLEMENTED: \"NOT_IMPLEMENTED\",\n REJECTED: \"REJECTED\",\n TEAPOT: \"TEAPOT\",\n TOO_MANY_REQUESTS: \"TOO_MANY_REQUESTS\",\n UNAUTHORIZED: \"UNAUTHORIZED\",\n UNAVAILABLE: \"UNAVAILABLE\",\n UNHANDLED: \"UNHANDLED\",\n UNKNOWN_TYPE: \"UNKNOWN_TYPE\",\n UNREACHABLE_CODE: \"UNREACHABLE_CODE\",\n },\n} as const;\n","import { createRequire } from \"module\";\nimport { pathToFileURL } from \"url\";\n\nimport { ConfigurationError } from \"@jaypie/errors\";\n\n// CJS/ESM compatible require - handles bundling to CJS where import.meta.url becomes undefined\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore - __filename exists in CJS context when ESM is bundled to CJS\nconst require =\n typeof __filename !== \"undefined\"\n ? createRequire(pathToFileURL(__filename).href)\n : createRequire(import.meta.url);\nconst packageCache = new Map<string, unknown>();\n\nexport function loadPackage<T>(packageName: string): T {\n if (packageCache.has(packageName)) {\n return packageCache.get(packageName) as T;\n }\n\n try {\n // eslint-disable-next-line no-restricted-syntax\n const pkg = require(packageName) as T;\n packageCache.set(packageName, pkg);\n return pkg;\n } catch (error) {\n const resolveAttempt = safeResolve(packageName);\n const err = error as Error & { code?: string };\n // eslint-disable-next-line no-console\n console.error(`[jaypie] loadPackage failed for \"${packageName}\"`, {\n importMetaUrl: import.meta.url,\n resolveAttempt,\n errorCode: err.code,\n errorMessage: err.message,\n });\n throw new ConfigurationError(\n `${packageName} is required but not installed. Run: npm install ${packageName}`,\n );\n }\n}\n\nfunction safeResolve(packageName: string): string | null {\n try {\n return require.resolve(packageName);\n } catch {\n return null;\n }\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as AwsTypes from \"@jaypie/aws\";\n\ntype AwsModule = typeof AwsTypes;\n\nexport function getEnvSecret(\n ...args: Parameters<AwsModule[\"getEnvSecret\"]>\n): ReturnType<AwsModule[\"getEnvSecret\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getEnvSecret(...args);\n}\n\nexport function getMessages(\n ...args: Parameters<AwsModule[\"getMessages\"]>\n): ReturnType<AwsModule[\"getMessages\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getMessages(...args);\n}\n\nexport function getSecret(\n ...args: Parameters<AwsModule[\"getSecret\"]>\n): ReturnType<AwsModule[\"getSecret\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getSecret(...args);\n}\n\nexport function getSingletonMessage(\n ...args: Parameters<AwsModule[\"getSingletonMessage\"]>\n): ReturnType<AwsModule[\"getSingletonMessage\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getSingletonMessage(...args);\n}\n\nexport function getTextractJob(\n ...args: Parameters<AwsModule[\"getTextractJob\"]>\n): ReturnType<AwsModule[\"getTextractJob\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getTextractJob(...args);\n}\n\nexport function sendBatchMessages(\n ...args: Parameters<AwsModule[\"sendBatchMessages\"]>\n): ReturnType<AwsModule[\"sendBatchMessages\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").sendBatchMessages(...args);\n}\n\nexport function sendMessage(\n ...args: Parameters<AwsModule[\"sendMessage\"]>\n): ReturnType<AwsModule[\"sendMessage\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").sendMessage(...args);\n}\n\nexport function sendTextractJob(\n ...args: Parameters<AwsModule[\"sendTextractJob\"]>\n): ReturnType<AwsModule[\"sendTextractJob\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").sendTextractJob(...args);\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as DatadogTypes from \"@jaypie/datadog\";\n\ntype DatadogModule = typeof DatadogTypes;\n\n// Re-export constant via getter to lazy load\nexport const DATADOG: DatadogModule[\"DATADOG\"] = new Proxy(\n {} as DatadogModule[\"DATADOG\"],\n {\n get(_, prop) {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").DATADOG[\n prop as keyof DatadogModule[\"DATADOG\"]\n ];\n },\n },\n);\n\nexport function hasDatadogEnv(\n ...args: Parameters<DatadogModule[\"hasDatadogEnv\"]>\n): ReturnType<DatadogModule[\"hasDatadogEnv\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").hasDatadogEnv(...args);\n}\n\nexport function submitDistribution(\n ...args: Parameters<DatadogModule[\"submitDistribution\"]>\n): ReturnType<DatadogModule[\"submitDistribution\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").submitDistribution(\n ...args,\n );\n}\n\nexport function submitMetric(\n ...args: Parameters<DatadogModule[\"submitMetric\"]>\n): ReturnType<DatadogModule[\"submitMetric\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").submitMetric(...args);\n}\n\nexport function submitMetricSet(\n ...args: Parameters<DatadogModule[\"submitMetricSet\"]>\n): ReturnType<DatadogModule[\"submitMetricSet\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").submitMetricSet(...args);\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as ExpressTypes from \"@jaypie/express\";\n\ntype ExpressModule = typeof ExpressTypes;\n\n// Re-export types (these don't require the package at runtime)\nexport type {\n CorsConfig,\n ExpressHandlerLocals,\n ExpressHandlerOptions,\n JaypieHandlerSetup,\n JaypieHandlerTeardown,\n JaypieHandlerValidate,\n} from \"@jaypie/express\";\n\n// Re-export constant via getter to lazy load\nexport const EXPRESS: ExpressModule[\"EXPRESS\"] = new Proxy(\n {} as ExpressModule[\"EXPRESS\"],\n {\n get(_, prop) {\n return loadPackage<ExpressModule>(\"@jaypie/express\").EXPRESS[\n prop as keyof ExpressModule[\"EXPRESS\"]\n ];\n },\n },\n);\n\nexport function cors(\n ...args: Parameters<ExpressModule[\"cors\"]>\n): ReturnType<ExpressModule[\"cors\"]> {\n return loadPackage<ExpressModule>(\"@jaypie/express\").cors(...args);\n}\n\nexport function expressHandler(\n ...args: Parameters<ExpressModule[\"expressHandler\"]>\n): ReturnType<ExpressModule[\"expressHandler\"]> {\n return loadPackage<ExpressModule>(\"@jaypie/express\").expressHandler(...args);\n}\n\nexport function expressHttpCodeHandler(\n ...args: Parameters<ExpressModule[\"expressHttpCodeHandler\"]>\n): ReturnType<ExpressModule[\"expressHttpCodeHandler\"]> {\n return loadPackage<ExpressModule>(\"@jaypie/express\").expressHttpCodeHandler(\n ...args,\n );\n}\n\n// Route exports - these are pre-created handlers, so we use getters\nexport const badRequestRoute: ExpressModule[\"badRequestRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"badRequestRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").badRequestRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .badRequestRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const echoRoute: ExpressModule[\"echoRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"echoRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").echoRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .echoRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const forbiddenRoute: ExpressModule[\"forbiddenRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"forbiddenRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").forbiddenRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .forbiddenRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const goneRoute: ExpressModule[\"goneRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"goneRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").goneRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .goneRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const methodNotAllowedRoute: ExpressModule[\"methodNotAllowedRoute\"] =\n new Proxy((() => {}) as unknown as ExpressModule[\"methodNotAllowedRoute\"], {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").methodNotAllowedRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .methodNotAllowedRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n });\n\nexport const noContentRoute: ExpressModule[\"noContentRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"noContentRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").noContentRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .noContentRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const notFoundRoute: ExpressModule[\"notFoundRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"notFoundRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").notFoundRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .notFoundRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const notImplementedRoute: ExpressModule[\"notImplementedRoute\"] =\n new Proxy((() => {}) as unknown as ExpressModule[\"notImplementedRoute\"], {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").notImplementedRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .notImplementedRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n });\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as LambdaTypes from \"@jaypie/lambda\";\n\ntype LambdaModule = typeof LambdaTypes;\n\nexport function lambdaHandler(\n ...args: Parameters<LambdaModule[\"lambdaHandler\"]>\n): ReturnType<LambdaModule[\"lambdaHandler\"]> {\n return loadPackage<LambdaModule>(\"@jaypie/lambda\").lambdaHandler(...args);\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as LlmTypes from \"@jaypie/llm\";\n\ntype LlmModule = typeof LlmTypes;\n\n// Re-export types (these don't require the package at runtime)\nexport type {\n LlmHistory,\n LlmInputContent,\n LlmInputContentFile,\n LlmInputContentImage,\n LlmInputContentText,\n LlmInputMessage,\n LlmMessageOptions,\n LlmOperateOptions,\n LlmOperateResponse,\n LlmOptions,\n LlmProvider,\n LlmTool,\n} from \"@jaypie/llm\";\n\n// Re-export enums via getters\nexport const LlmMessageRole: typeof LlmTypes.LlmMessageRole = new Proxy(\n {} as typeof LlmTypes.LlmMessageRole,\n {\n get(_, prop) {\n return loadPackage<LlmModule>(\"@jaypie/llm\").LlmMessageRole[\n prop as keyof typeof LlmTypes.LlmMessageRole\n ];\n },\n },\n);\n\nexport const LlmMessageType: typeof LlmTypes.LlmMessageType = new Proxy(\n {} as typeof LlmTypes.LlmMessageType,\n {\n get(_, prop) {\n return loadPackage<LlmModule>(\"@jaypie/llm\").LlmMessageType[\n prop as keyof typeof LlmTypes.LlmMessageType\n ];\n },\n },\n);\n\n// Re-export LLM constants namespace via getter\nexport const LLM: typeof LlmTypes.LLM = new Proxy({} as typeof LlmTypes.LLM, {\n get(_, prop) {\n return loadPackage<LlmModule>(\"@jaypie/llm\").LLM[\n prop as keyof typeof LlmTypes.LLM\n ];\n },\n});\n\n// Llm class wrapper\nexport const Llm: typeof LlmTypes.Llm = new Proxy(\n function () {} as unknown as typeof LlmTypes.Llm,\n {\n construct(_, args) {\n const LlmClass = loadPackage<LlmModule>(\"@jaypie/llm\").Llm;\n return new LlmClass(...(args as ConstructorParameters<typeof LlmClass>));\n },\n get(_, prop) {\n const LlmClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .Llm as unknown as Record<string, unknown>;\n return LlmClass[prop as string];\n },\n },\n);\n\n// Toolkit exports\nexport const JaypieToolkit: typeof LlmTypes.JaypieToolkit = new Proxy(\n function () {} as unknown as typeof LlmTypes.JaypieToolkit,\n {\n construct(_, args) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\").JaypieToolkit;\n return new ToolkitClass(\n ...(args as ConstructorParameters<typeof ToolkitClass>),\n );\n },\n get(_, prop) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .JaypieToolkit as unknown as Record<string, unknown>;\n return ToolkitClass[prop as string];\n },\n },\n);\n\nexport const Toolkit: typeof LlmTypes.Toolkit = new Proxy(\n function () {} as unknown as typeof LlmTypes.Toolkit,\n {\n construct(_, args) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\").Toolkit;\n return new ToolkitClass(\n ...(args as ConstructorParameters<typeof ToolkitClass>),\n );\n },\n get(_, prop) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .Toolkit as unknown as Record<string, unknown>;\n return ToolkitClass[prop as string];\n },\n },\n);\n\n// toolkit and tools are objects/instances\nexport const toolkit: typeof LlmTypes.toolkit = new Proxy(\n {} as typeof LlmTypes.toolkit,\n {\n get(_, prop) {\n const toolkitObj = loadPackage<LlmModule>(\"@jaypie/llm\")\n .toolkit as unknown as Record<string, unknown>;\n return toolkitObj[prop as string];\n },\n },\n);\n\nexport const tools: typeof LlmTypes.tools = new Proxy(\n {} as typeof LlmTypes.tools,\n {\n get(_, prop) {\n const toolsObj = loadPackage<LlmModule>(\"@jaypie/llm\")\n .tools as unknown as Record<string, unknown>;\n return toolsObj[prop as string];\n },\n },\n);\n\n// Provider exports\nexport const GeminiProvider: typeof LlmTypes.GeminiProvider = new Proxy(\n function () {} as unknown as typeof LlmTypes.GeminiProvider,\n {\n construct(_, args) {\n const ProviderClass =\n loadPackage<LlmModule>(\"@jaypie/llm\").GeminiProvider;\n return new ProviderClass(\n ...(args as ConstructorParameters<typeof ProviderClass>),\n );\n },\n get(_, prop) {\n const ProviderClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .GeminiProvider as unknown as Record<string, unknown>;\n return ProviderClass[prop as string];\n },\n },\n);\n\nexport const OpenRouterProvider: typeof LlmTypes.OpenRouterProvider = new Proxy(\n function () {} as unknown as typeof LlmTypes.OpenRouterProvider,\n {\n construct(_, args) {\n const ProviderClass =\n loadPackage<LlmModule>(\"@jaypie/llm\").OpenRouterProvider;\n return new ProviderClass(\n ...(args as ConstructorParameters<typeof ProviderClass>),\n );\n },\n get(_, prop) {\n const ProviderClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .OpenRouterProvider as unknown as Record<string, unknown>;\n return ProviderClass[prop as string];\n },\n },\n);\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as MongooseTypes from \"@jaypie/mongoose\";\n\ntype MongooseModule = typeof MongooseTypes;\n\nexport function connect(\n ...args: Parameters<MongooseModule[\"connect\"]>\n): ReturnType<MongooseModule[\"connect\"]> {\n return loadPackage<MongooseModule>(\"@jaypie/mongoose\").connect(...args);\n}\n\nexport function connectFromSecretEnv(\n ...args: Parameters<MongooseModule[\"connectFromSecretEnv\"]>\n): ReturnType<MongooseModule[\"connectFromSecretEnv\"]> {\n return loadPackage<MongooseModule>(\"@jaypie/mongoose\").connectFromSecretEnv(\n ...args,\n );\n}\n\nexport function disconnect(): ReturnType<MongooseModule[\"disconnect\"]> {\n return loadPackage<MongooseModule>(\"@jaypie/mongoose\").disconnect();\n}\n\n// Re-export mongoose via getter to lazy load\nexport const mongoose: MongooseModule[\"mongoose\"] = new Proxy(\n {} as MongooseModule[\"mongoose\"],\n {\n get(_, prop) {\n const mongoosePkg = loadPackage<MongooseModule>(\"@jaypie/mongoose\")\n .mongoose as unknown as Record<string, unknown>;\n return mongoosePkg[prop as string];\n },\n apply(_, thisArg, args) {\n const mongoosePkg = loadPackage<MongooseModule>(\"@jaypie/mongoose\")\n .mongoose as unknown as (...args: unknown[]) => unknown;\n return Reflect.apply(mongoosePkg, thisArg, args);\n },\n },\n);\n"],"names":["require","createRequire","pathToFileURL","ConfigurationError"],"mappings":";;;;;;;;;AAAA;AACO,MAAM,KAAK,GAAG;AACnB,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAE,sDAAsD;AACnE,QAAA,WAAW,EAAE,wCAAwC;AACrD,QAAA,mBAAmB,EACjB,6EAA6E;AAC/E,QAAA,UAAU,EAAE,0DAA0D;AACtE,QAAA,SAAS,EAAE,2CAA2C;AACtD,QAAA,eAAe,EACb,2DAA2D;AAC7D,QAAA,IAAI,EAAE,+CAA+C;AACrD,QAAA,SAAS,EACP,iFAAiF;AACnF,QAAA,cAAc,EACZ,qEAAqE;AACvE,QAAA,kBAAkB,EAAE,qCAAqC;AACzD,QAAA,SAAS,EAAE,sCAAsC;AACjD,QAAA,eAAe,EACb,gEAAgE;AAClE,QAAA,QAAQ,EAAE,8CAA8C;AACxD,QA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;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/error.constant.ts"],"sourcesContent":["// ERROR constant - mirror from @jaypie/errors types\nexport const ERROR = {\n MESSAGE: {\n BAD_GATEWAY: \"An unexpected error occurred on an upstream resource\",\n BAD_REQUEST: \"The request was not properly formatted\",\n CONFIGURATION_ERROR:\n \"The application responding to the request encountered a configuration error\",\n CORS_ERROR: \"The requesting origin is not authorized to this resource\",\n FORBIDDEN: \"Access to this resource is not authorized\",\n GATEWAY_TIMEOUT:\n \"The connection timed out waiting for an upstream resource\",\n GONE: \"The requested resource is no longer available\",\n ILLOGICAL:\n \"The application encountered an illogical condition while processing the request\",\n INTERNAL_ERROR:\n \"An unexpected error occurred and the request was unable to complete\",\n METHOD_NOT_ALLOWED: \"The requested method is not allowed\",\n NOT_FOUND: \"The requested resource was not found\",\n NOT_IMPLEMENTED:\n \"The request was understood but the resource is not implemented\",\n REJECTED: \"The request was rejected prior to processing\",\n TEAPOT: \"This resource is a teapot incapable of processing the request\",\n TOO_MANY_REQUESTS: \"The requesting origin exceeded the request limit\",\n UNAUTHORIZED:\n \"The request did not include valid authentication credentials\",\n UNAVAILABLE: \"The requested resource is temporarily unavailable\",\n UNHANDLED:\n \"An unhandled error occurred and the request was unable to complete\",\n UNREACHABLE_CODE:\n \"The application encountered an unreachable condition while processing the request\",\n },\n TITLE: {\n BAD_GATEWAY: \"Bad Gateway\",\n BAD_REQUEST: \"Bad Request\",\n CONFIGURATION_ERROR: \"Internal Configuration Error\",\n CORS_ERROR: \"Unauthorized Origin\",\n FORBIDDEN: \"Forbidden\",\n GATEWAY_TIMEOUT: \"Gateway Timeout\",\n GONE: \"Gone\",\n INTERNAL_ERROR: \"Internal Application Error\",\n METHOD_NOT_ALLOWED: \"Method Not Allowed\",\n NOT_FOUND: \"Not Found\",\n NOT_IMPLEMENTED: \"Not Implemented\",\n REJECTED: \"Request Rejected\",\n TEAPOT: \"Teapot\",\n TOO_MANY_REQUESTS: \"Too Many Requests\",\n UNAUTHORIZED: \"Service Unauthorized\",\n UNAVAILABLE: \"Service Unavailable\",\n },\n TYPE: {\n BAD_GATEWAY: \"BAD_GATEWAY\",\n BAD_REQUEST: \"BAD_REQUEST\",\n CONFIGURATION_ERROR: \"CONFIGURATION_ERROR\",\n CORS_ERROR: \"CORS_ERROR\",\n FORBIDDEN: \"FORBIDDEN\",\n GATEWAY_TIMEOUT: \"GATEWAY_TIMEOUT\",\n GONE: \"GONE\",\n ILLOGICAL: \"ILLOGICAL\",\n INTERNAL_ERROR: \"INTERNAL_ERROR\",\n METHOD_NOT_ALLOWED: \"METHOD_NOT_ALLOWED\",\n MULTI_ERROR: \"MULTI_ERROR\",\n NOT_FOUND: \"NOT_FOUND\",\n NOT_IMPLEMENTED: \"NOT_IMPLEMENTED\",\n REJECTED: \"REJECTED\",\n TEAPOT: \"TEAPOT\",\n TOO_MANY_REQUESTS: \"TOO_MANY_REQUESTS\",\n UNAUTHORIZED: \"UNAUTHORIZED\",\n UNAVAILABLE: \"UNAVAILABLE\",\n UNHANDLED: \"UNHANDLED\",\n UNKNOWN_TYPE: \"UNKNOWN_TYPE\",\n UNREACHABLE_CODE: \"UNREACHABLE_CODE\",\n },\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACO,MAAM,KAAK,GAAG;AACnB,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAE,sDAAsD;AACnE,QAAA,WAAW,EAAE,wCAAwC;AACrD,QAAA,mBAAmB,EACjB,6EAA6E;AAC/E,QAAA,UAAU,EAAE,0DAA0D;AACtE,QAAA,SAAS,EAAE,2CAA2C;AACtD,QAAA,eAAe,EACb,2DAA2D;AAC7D,QAAA,IAAI,EAAE,+CAA+C;AACrD,QAAA,SAAS,EACP,iFAAiF;AACnF,QAAA,cAAc,EACZ,qEAAqE;AACvE,QAAA,kBAAkB,EAAE,qCAAqC;AACzD,QAAA,SAAS,EAAE,sCAAsC;AACjD,QAAA,eAAe,EACb,gEAAgE;AA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C,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,iBAAiB,EAAE,mBAAmB;AACtC,QAAA,YAAY,EAAE,cAAc;AAC5B,QAAA,WAAW,EAAE,aAAa;AAC1B,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,YAAY,EAAE,cAAc;AAC5B,QAAA,gBAAgB,EAAE,kBAAkB;AACrC,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -6,9 +6,7 @@ export { InternalError as ProjectMultiError } from "@jaypie/errors";
|
|
|
6
6
|
export { ERROR } from "./error.constant.js";
|
|
7
7
|
export * from "@jaypie/kit";
|
|
8
8
|
export { log } from "@jaypie/logger";
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "./llm.js";
|
|
14
|
-
export * from "./mongoose.js";
|
|
9
|
+
export * from "@jaypie/aws";
|
|
10
|
+
export * from "@jaypie/datadog";
|
|
11
|
+
export * from "@jaypie/express";
|
|
12
|
+
export * from "@jaypie/lambda";
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -6,9 +6,7 @@ export { InternalError as ProjectMultiError } from "@jaypie/errors";
|
|
|
6
6
|
export { ERROR } from "./error.constant.js";
|
|
7
7
|
export * from "@jaypie/kit";
|
|
8
8
|
export { log } from "@jaypie/logger";
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "./llm.js";
|
|
14
|
-
export * from "./mongoose.js";
|
|
9
|
+
export * from "@jaypie/aws";
|
|
10
|
+
export * from "@jaypie/datadog";
|
|
11
|
+
export * from "@jaypie/express";
|
|
12
|
+
export * from "@jaypie/lambda";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ConfigurationError } from '@jaypie/errors';
|
|
2
1
|
export * from '@jaypie/errors';
|
|
3
2
|
export { InternalError as MultiError, InternalError as ProjectError, InternalError as ProjectMultiError, jaypieErrorFromStatus as errorFromStatusCode } from '@jaypie/errors';
|
|
4
3
|
export * from '@jaypie/kit';
|
|
5
4
|
export { log } from '@jaypie/logger';
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export * from '@jaypie/aws';
|
|
6
|
+
export * from '@jaypie/datadog';
|
|
7
|
+
export * from '@jaypie/express';
|
|
8
|
+
export * from '@jaypie/lambda';
|
|
8
9
|
|
|
9
10
|
// ERROR constant - mirror from @jaypie/errors types
|
|
10
11
|
const ERROR = {
|
|
@@ -72,303 +73,5 @@ const ERROR = {
|
|
|
72
73
|
},
|
|
73
74
|
};
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
77
|
-
// @ts-ignore - __filename exists in CJS context when ESM is bundled to CJS
|
|
78
|
-
const require$1 = typeof __filename !== "undefined"
|
|
79
|
-
? createRequire(pathToFileURL(__filename).href)
|
|
80
|
-
: createRequire(import.meta.url);
|
|
81
|
-
const packageCache = new Map();
|
|
82
|
-
function loadPackage(packageName) {
|
|
83
|
-
if (packageCache.has(packageName)) {
|
|
84
|
-
return packageCache.get(packageName);
|
|
85
|
-
}
|
|
86
|
-
try {
|
|
87
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
88
|
-
const pkg = require$1(packageName);
|
|
89
|
-
packageCache.set(packageName, pkg);
|
|
90
|
-
return pkg;
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
const resolveAttempt = safeResolve(packageName);
|
|
94
|
-
const err = error;
|
|
95
|
-
// eslint-disable-next-line no-console
|
|
96
|
-
console.error(`[jaypie] loadPackage failed for "${packageName}"`, {
|
|
97
|
-
importMetaUrl: import.meta.url,
|
|
98
|
-
resolveAttempt,
|
|
99
|
-
errorCode: err.code,
|
|
100
|
-
errorMessage: err.message,
|
|
101
|
-
});
|
|
102
|
-
throw new ConfigurationError(`${packageName} is required but not installed. Run: npm install ${packageName}`);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function safeResolve(packageName) {
|
|
106
|
-
try {
|
|
107
|
-
return require$1.resolve(packageName);
|
|
108
|
-
}
|
|
109
|
-
catch {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function getEnvSecret(...args) {
|
|
115
|
-
return loadPackage("@jaypie/aws").getEnvSecret(...args);
|
|
116
|
-
}
|
|
117
|
-
function getMessages(...args) {
|
|
118
|
-
return loadPackage("@jaypie/aws").getMessages(...args);
|
|
119
|
-
}
|
|
120
|
-
function getSecret(...args) {
|
|
121
|
-
return loadPackage("@jaypie/aws").getSecret(...args);
|
|
122
|
-
}
|
|
123
|
-
function getSingletonMessage(...args) {
|
|
124
|
-
return loadPackage("@jaypie/aws").getSingletonMessage(...args);
|
|
125
|
-
}
|
|
126
|
-
function getTextractJob(...args) {
|
|
127
|
-
return loadPackage("@jaypie/aws").getTextractJob(...args);
|
|
128
|
-
}
|
|
129
|
-
function sendBatchMessages(...args) {
|
|
130
|
-
return loadPackage("@jaypie/aws").sendBatchMessages(...args);
|
|
131
|
-
}
|
|
132
|
-
function sendMessage(...args) {
|
|
133
|
-
return loadPackage("@jaypie/aws").sendMessage(...args);
|
|
134
|
-
}
|
|
135
|
-
function sendTextractJob(...args) {
|
|
136
|
-
return loadPackage("@jaypie/aws").sendTextractJob(...args);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Re-export constant via getter to lazy load
|
|
140
|
-
const DATADOG = new Proxy({}, {
|
|
141
|
-
get(_, prop) {
|
|
142
|
-
return loadPackage("@jaypie/datadog").DATADOG[prop];
|
|
143
|
-
},
|
|
144
|
-
});
|
|
145
|
-
function hasDatadogEnv(...args) {
|
|
146
|
-
return loadPackage("@jaypie/datadog").hasDatadogEnv(...args);
|
|
147
|
-
}
|
|
148
|
-
function submitDistribution(...args) {
|
|
149
|
-
return loadPackage("@jaypie/datadog").submitDistribution(...args);
|
|
150
|
-
}
|
|
151
|
-
function submitMetric(...args) {
|
|
152
|
-
return loadPackage("@jaypie/datadog").submitMetric(...args);
|
|
153
|
-
}
|
|
154
|
-
function submitMetricSet(...args) {
|
|
155
|
-
return loadPackage("@jaypie/datadog").submitMetricSet(...args);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// Re-export constant via getter to lazy load
|
|
159
|
-
const EXPRESS = new Proxy({}, {
|
|
160
|
-
get(_, prop) {
|
|
161
|
-
return loadPackage("@jaypie/express").EXPRESS[prop];
|
|
162
|
-
},
|
|
163
|
-
});
|
|
164
|
-
function cors(...args) {
|
|
165
|
-
return loadPackage("@jaypie/express").cors(...args);
|
|
166
|
-
}
|
|
167
|
-
function expressHandler(...args) {
|
|
168
|
-
return loadPackage("@jaypie/express").expressHandler(...args);
|
|
169
|
-
}
|
|
170
|
-
function expressHttpCodeHandler(...args) {
|
|
171
|
-
return loadPackage("@jaypie/express").expressHttpCodeHandler(...args);
|
|
172
|
-
}
|
|
173
|
-
// Route exports - these are pre-created handlers, so we use getters
|
|
174
|
-
const badRequestRoute = new Proxy((() => { }), {
|
|
175
|
-
apply(_, thisArg, args) {
|
|
176
|
-
return Reflect.apply(loadPackage("@jaypie/express").badRequestRoute, thisArg, args);
|
|
177
|
-
},
|
|
178
|
-
get(_, prop) {
|
|
179
|
-
const route = loadPackage("@jaypie/express")
|
|
180
|
-
.badRequestRoute;
|
|
181
|
-
return route[prop];
|
|
182
|
-
},
|
|
183
|
-
});
|
|
184
|
-
const echoRoute = new Proxy((() => { }), {
|
|
185
|
-
apply(_, thisArg, args) {
|
|
186
|
-
return Reflect.apply(loadPackage("@jaypie/express").echoRoute, thisArg, args);
|
|
187
|
-
},
|
|
188
|
-
get(_, prop) {
|
|
189
|
-
const route = loadPackage("@jaypie/express")
|
|
190
|
-
.echoRoute;
|
|
191
|
-
return route[prop];
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
const forbiddenRoute = new Proxy((() => { }), {
|
|
195
|
-
apply(_, thisArg, args) {
|
|
196
|
-
return Reflect.apply(loadPackage("@jaypie/express").forbiddenRoute, thisArg, args);
|
|
197
|
-
},
|
|
198
|
-
get(_, prop) {
|
|
199
|
-
const route = loadPackage("@jaypie/express")
|
|
200
|
-
.forbiddenRoute;
|
|
201
|
-
return route[prop];
|
|
202
|
-
},
|
|
203
|
-
});
|
|
204
|
-
const goneRoute = new Proxy((() => { }), {
|
|
205
|
-
apply(_, thisArg, args) {
|
|
206
|
-
return Reflect.apply(loadPackage("@jaypie/express").goneRoute, thisArg, args);
|
|
207
|
-
},
|
|
208
|
-
get(_, prop) {
|
|
209
|
-
const route = loadPackage("@jaypie/express")
|
|
210
|
-
.goneRoute;
|
|
211
|
-
return route[prop];
|
|
212
|
-
},
|
|
213
|
-
});
|
|
214
|
-
const methodNotAllowedRoute = new Proxy((() => { }), {
|
|
215
|
-
apply(_, thisArg, args) {
|
|
216
|
-
return Reflect.apply(loadPackage("@jaypie/express").methodNotAllowedRoute, thisArg, args);
|
|
217
|
-
},
|
|
218
|
-
get(_, prop) {
|
|
219
|
-
const route = loadPackage("@jaypie/express")
|
|
220
|
-
.methodNotAllowedRoute;
|
|
221
|
-
return route[prop];
|
|
222
|
-
},
|
|
223
|
-
});
|
|
224
|
-
const noContentRoute = new Proxy((() => { }), {
|
|
225
|
-
apply(_, thisArg, args) {
|
|
226
|
-
return Reflect.apply(loadPackage("@jaypie/express").noContentRoute, thisArg, args);
|
|
227
|
-
},
|
|
228
|
-
get(_, prop) {
|
|
229
|
-
const route = loadPackage("@jaypie/express")
|
|
230
|
-
.noContentRoute;
|
|
231
|
-
return route[prop];
|
|
232
|
-
},
|
|
233
|
-
});
|
|
234
|
-
const notFoundRoute = new Proxy((() => { }), {
|
|
235
|
-
apply(_, thisArg, args) {
|
|
236
|
-
return Reflect.apply(loadPackage("@jaypie/express").notFoundRoute, thisArg, args);
|
|
237
|
-
},
|
|
238
|
-
get(_, prop) {
|
|
239
|
-
const route = loadPackage("@jaypie/express")
|
|
240
|
-
.notFoundRoute;
|
|
241
|
-
return route[prop];
|
|
242
|
-
},
|
|
243
|
-
});
|
|
244
|
-
const notImplementedRoute = new Proxy((() => { }), {
|
|
245
|
-
apply(_, thisArg, args) {
|
|
246
|
-
return Reflect.apply(loadPackage("@jaypie/express").notImplementedRoute, thisArg, args);
|
|
247
|
-
},
|
|
248
|
-
get(_, prop) {
|
|
249
|
-
const route = loadPackage("@jaypie/express")
|
|
250
|
-
.notImplementedRoute;
|
|
251
|
-
return route[prop];
|
|
252
|
-
},
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
function lambdaHandler(...args) {
|
|
256
|
-
return loadPackage("@jaypie/lambda").lambdaHandler(...args);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
// Re-export enums via getters
|
|
260
|
-
const LlmMessageRole = new Proxy({}, {
|
|
261
|
-
get(_, prop) {
|
|
262
|
-
return loadPackage("@jaypie/llm").LlmMessageRole[prop];
|
|
263
|
-
},
|
|
264
|
-
});
|
|
265
|
-
const LlmMessageType = new Proxy({}, {
|
|
266
|
-
get(_, prop) {
|
|
267
|
-
return loadPackage("@jaypie/llm").LlmMessageType[prop];
|
|
268
|
-
},
|
|
269
|
-
});
|
|
270
|
-
// Re-export LLM constants namespace via getter
|
|
271
|
-
const LLM = new Proxy({}, {
|
|
272
|
-
get(_, prop) {
|
|
273
|
-
return loadPackage("@jaypie/llm").LLM[prop];
|
|
274
|
-
},
|
|
275
|
-
});
|
|
276
|
-
// Llm class wrapper
|
|
277
|
-
const Llm = new Proxy(function () { }, {
|
|
278
|
-
construct(_, args) {
|
|
279
|
-
const LlmClass = loadPackage("@jaypie/llm").Llm;
|
|
280
|
-
return new LlmClass(...args);
|
|
281
|
-
},
|
|
282
|
-
get(_, prop) {
|
|
283
|
-
const LlmClass = loadPackage("@jaypie/llm")
|
|
284
|
-
.Llm;
|
|
285
|
-
return LlmClass[prop];
|
|
286
|
-
},
|
|
287
|
-
});
|
|
288
|
-
// Toolkit exports
|
|
289
|
-
const JaypieToolkit = new Proxy(function () { }, {
|
|
290
|
-
construct(_, args) {
|
|
291
|
-
const ToolkitClass = loadPackage("@jaypie/llm").JaypieToolkit;
|
|
292
|
-
return new ToolkitClass(...args);
|
|
293
|
-
},
|
|
294
|
-
get(_, prop) {
|
|
295
|
-
const ToolkitClass = loadPackage("@jaypie/llm")
|
|
296
|
-
.JaypieToolkit;
|
|
297
|
-
return ToolkitClass[prop];
|
|
298
|
-
},
|
|
299
|
-
});
|
|
300
|
-
const Toolkit = new Proxy(function () { }, {
|
|
301
|
-
construct(_, args) {
|
|
302
|
-
const ToolkitClass = loadPackage("@jaypie/llm").Toolkit;
|
|
303
|
-
return new ToolkitClass(...args);
|
|
304
|
-
},
|
|
305
|
-
get(_, prop) {
|
|
306
|
-
const ToolkitClass = loadPackage("@jaypie/llm")
|
|
307
|
-
.Toolkit;
|
|
308
|
-
return ToolkitClass[prop];
|
|
309
|
-
},
|
|
310
|
-
});
|
|
311
|
-
// toolkit and tools are objects/instances
|
|
312
|
-
const toolkit = new Proxy({}, {
|
|
313
|
-
get(_, prop) {
|
|
314
|
-
const toolkitObj = loadPackage("@jaypie/llm")
|
|
315
|
-
.toolkit;
|
|
316
|
-
return toolkitObj[prop];
|
|
317
|
-
},
|
|
318
|
-
});
|
|
319
|
-
const tools = new Proxy({}, {
|
|
320
|
-
get(_, prop) {
|
|
321
|
-
const toolsObj = loadPackage("@jaypie/llm")
|
|
322
|
-
.tools;
|
|
323
|
-
return toolsObj[prop];
|
|
324
|
-
},
|
|
325
|
-
});
|
|
326
|
-
// Provider exports
|
|
327
|
-
const GeminiProvider = new Proxy(function () { }, {
|
|
328
|
-
construct(_, args) {
|
|
329
|
-
const ProviderClass = loadPackage("@jaypie/llm").GeminiProvider;
|
|
330
|
-
return new ProviderClass(...args);
|
|
331
|
-
},
|
|
332
|
-
get(_, prop) {
|
|
333
|
-
const ProviderClass = loadPackage("@jaypie/llm")
|
|
334
|
-
.GeminiProvider;
|
|
335
|
-
return ProviderClass[prop];
|
|
336
|
-
},
|
|
337
|
-
});
|
|
338
|
-
const OpenRouterProvider = new Proxy(function () { }, {
|
|
339
|
-
construct(_, args) {
|
|
340
|
-
const ProviderClass = loadPackage("@jaypie/llm").OpenRouterProvider;
|
|
341
|
-
return new ProviderClass(...args);
|
|
342
|
-
},
|
|
343
|
-
get(_, prop) {
|
|
344
|
-
const ProviderClass = loadPackage("@jaypie/llm")
|
|
345
|
-
.OpenRouterProvider;
|
|
346
|
-
return ProviderClass[prop];
|
|
347
|
-
},
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
function connect(...args) {
|
|
351
|
-
return loadPackage("@jaypie/mongoose").connect(...args);
|
|
352
|
-
}
|
|
353
|
-
function connectFromSecretEnv(...args) {
|
|
354
|
-
return loadPackage("@jaypie/mongoose").connectFromSecretEnv(...args);
|
|
355
|
-
}
|
|
356
|
-
function disconnect() {
|
|
357
|
-
return loadPackage("@jaypie/mongoose").disconnect();
|
|
358
|
-
}
|
|
359
|
-
// Re-export mongoose via getter to lazy load
|
|
360
|
-
const mongoose = new Proxy({}, {
|
|
361
|
-
get(_, prop) {
|
|
362
|
-
const mongoosePkg = loadPackage("@jaypie/mongoose")
|
|
363
|
-
.mongoose;
|
|
364
|
-
return mongoosePkg[prop];
|
|
365
|
-
},
|
|
366
|
-
apply(_, thisArg, args) {
|
|
367
|
-
const mongoosePkg = loadPackage("@jaypie/mongoose")
|
|
368
|
-
.mongoose;
|
|
369
|
-
return Reflect.apply(mongoosePkg, thisArg, args);
|
|
370
|
-
},
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
export { DATADOG, ERROR, EXPRESS, GeminiProvider, JaypieToolkit, LLM, Llm, LlmMessageRole, LlmMessageType, OpenRouterProvider, Toolkit, badRequestRoute, connect, connectFromSecretEnv, cors, disconnect, echoRoute, expressHandler, expressHttpCodeHandler, forbiddenRoute, getEnvSecret, getMessages, getSecret, getSingletonMessage, getTextractJob, goneRoute, hasDatadogEnv, lambdaHandler, methodNotAllowedRoute, mongoose, noContentRoute, notFoundRoute, notImplementedRoute, sendBatchMessages, sendMessage, sendTextractJob, submitDistribution, submitMetric, submitMetricSet, toolkit, tools };
|
|
76
|
+
export { ERROR };
|
|
374
77
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/error.constant.ts","../../../src/loadPackage.ts","../../../src/aws.ts","../../../src/datadog.ts","../../../src/express.ts","../../../src/lambda.ts","../../../src/llm.ts","../../../src/mongoose.ts"],"sourcesContent":["// ERROR constant - mirror from @jaypie/errors types\nexport const ERROR = {\n MESSAGE: {\n BAD_GATEWAY: \"An unexpected error occurred on an upstream resource\",\n BAD_REQUEST: \"The request was not properly formatted\",\n CONFIGURATION_ERROR:\n \"The application responding to the request encountered a configuration error\",\n CORS_ERROR: \"The requesting origin is not authorized to this resource\",\n FORBIDDEN: \"Access to this resource is not authorized\",\n GATEWAY_TIMEOUT:\n \"The connection timed out waiting for an upstream resource\",\n GONE: \"The requested resource is no longer available\",\n ILLOGICAL:\n \"The application encountered an illogical condition while processing the request\",\n INTERNAL_ERROR:\n \"An unexpected error occurred and the request was unable to complete\",\n METHOD_NOT_ALLOWED: \"The requested method is not allowed\",\n NOT_FOUND: \"The requested resource was not found\",\n NOT_IMPLEMENTED:\n \"The request was understood but the resource is not implemented\",\n REJECTED: \"The request was rejected prior to processing\",\n TEAPOT: \"This resource is a teapot incapable of processing the request\",\n TOO_MANY_REQUESTS: \"The requesting origin exceeded the request limit\",\n UNAUTHORIZED:\n \"The request did not include valid authentication credentials\",\n UNAVAILABLE: \"The requested resource is temporarily unavailable\",\n UNHANDLED:\n \"An unhandled error occurred and the request was unable to complete\",\n UNREACHABLE_CODE:\n \"The application encountered an unreachable condition while processing the request\",\n },\n TITLE: {\n BAD_GATEWAY: \"Bad Gateway\",\n BAD_REQUEST: \"Bad Request\",\n CONFIGURATION_ERROR: \"Internal Configuration Error\",\n CORS_ERROR: \"Unauthorized Origin\",\n FORBIDDEN: \"Forbidden\",\n GATEWAY_TIMEOUT: \"Gateway Timeout\",\n GONE: \"Gone\",\n INTERNAL_ERROR: \"Internal Application Error\",\n METHOD_NOT_ALLOWED: \"Method Not Allowed\",\n NOT_FOUND: \"Not Found\",\n NOT_IMPLEMENTED: \"Not Implemented\",\n REJECTED: \"Request Rejected\",\n TEAPOT: \"Teapot\",\n TOO_MANY_REQUESTS: \"Too Many Requests\",\n UNAUTHORIZED: \"Service Unauthorized\",\n UNAVAILABLE: \"Service Unavailable\",\n },\n TYPE: {\n BAD_GATEWAY: \"BAD_GATEWAY\",\n BAD_REQUEST: \"BAD_REQUEST\",\n CONFIGURATION_ERROR: \"CONFIGURATION_ERROR\",\n CORS_ERROR: \"CORS_ERROR\",\n FORBIDDEN: \"FORBIDDEN\",\n GATEWAY_TIMEOUT: \"GATEWAY_TIMEOUT\",\n GONE: \"GONE\",\n ILLOGICAL: \"ILLOGICAL\",\n INTERNAL_ERROR: \"INTERNAL_ERROR\",\n METHOD_NOT_ALLOWED: \"METHOD_NOT_ALLOWED\",\n MULTI_ERROR: \"MULTI_ERROR\",\n NOT_FOUND: \"NOT_FOUND\",\n NOT_IMPLEMENTED: \"NOT_IMPLEMENTED\",\n REJECTED: \"REJECTED\",\n TEAPOT: \"TEAPOT\",\n TOO_MANY_REQUESTS: \"TOO_MANY_REQUESTS\",\n UNAUTHORIZED: \"UNAUTHORIZED\",\n UNAVAILABLE: \"UNAVAILABLE\",\n UNHANDLED: \"UNHANDLED\",\n UNKNOWN_TYPE: \"UNKNOWN_TYPE\",\n UNREACHABLE_CODE: \"UNREACHABLE_CODE\",\n },\n} as const;\n","import { createRequire } from \"module\";\nimport { pathToFileURL } from \"url\";\n\nimport { ConfigurationError } from \"@jaypie/errors\";\n\n// CJS/ESM compatible require - handles bundling to CJS where import.meta.url becomes undefined\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore - __filename exists in CJS context when ESM is bundled to CJS\nconst require =\n typeof __filename !== \"undefined\"\n ? createRequire(pathToFileURL(__filename).href)\n : createRequire(import.meta.url);\nconst packageCache = new Map<string, unknown>();\n\nexport function loadPackage<T>(packageName: string): T {\n if (packageCache.has(packageName)) {\n return packageCache.get(packageName) as T;\n }\n\n try {\n // eslint-disable-next-line no-restricted-syntax\n const pkg = require(packageName) as T;\n packageCache.set(packageName, pkg);\n return pkg;\n } catch (error) {\n const resolveAttempt = safeResolve(packageName);\n const err = error as Error & { code?: string };\n // eslint-disable-next-line no-console\n console.error(`[jaypie] loadPackage failed for \"${packageName}\"`, {\n importMetaUrl: import.meta.url,\n resolveAttempt,\n errorCode: err.code,\n errorMessage: err.message,\n });\n throw new ConfigurationError(\n `${packageName} is required but not installed. Run: npm install ${packageName}`,\n );\n }\n}\n\nfunction safeResolve(packageName: string): string | null {\n try {\n return require.resolve(packageName);\n } catch {\n return null;\n }\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as AwsTypes from \"@jaypie/aws\";\n\ntype AwsModule = typeof AwsTypes;\n\nexport function getEnvSecret(\n ...args: Parameters<AwsModule[\"getEnvSecret\"]>\n): ReturnType<AwsModule[\"getEnvSecret\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getEnvSecret(...args);\n}\n\nexport function getMessages(\n ...args: Parameters<AwsModule[\"getMessages\"]>\n): ReturnType<AwsModule[\"getMessages\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getMessages(...args);\n}\n\nexport function getSecret(\n ...args: Parameters<AwsModule[\"getSecret\"]>\n): ReturnType<AwsModule[\"getSecret\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getSecret(...args);\n}\n\nexport function getSingletonMessage(\n ...args: Parameters<AwsModule[\"getSingletonMessage\"]>\n): ReturnType<AwsModule[\"getSingletonMessage\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getSingletonMessage(...args);\n}\n\nexport function getTextractJob(\n ...args: Parameters<AwsModule[\"getTextractJob\"]>\n): ReturnType<AwsModule[\"getTextractJob\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").getTextractJob(...args);\n}\n\nexport function sendBatchMessages(\n ...args: Parameters<AwsModule[\"sendBatchMessages\"]>\n): ReturnType<AwsModule[\"sendBatchMessages\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").sendBatchMessages(...args);\n}\n\nexport function sendMessage(\n ...args: Parameters<AwsModule[\"sendMessage\"]>\n): ReturnType<AwsModule[\"sendMessage\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").sendMessage(...args);\n}\n\nexport function sendTextractJob(\n ...args: Parameters<AwsModule[\"sendTextractJob\"]>\n): ReturnType<AwsModule[\"sendTextractJob\"]> {\n return loadPackage<AwsModule>(\"@jaypie/aws\").sendTextractJob(...args);\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as DatadogTypes from \"@jaypie/datadog\";\n\ntype DatadogModule = typeof DatadogTypes;\n\n// Re-export constant via getter to lazy load\nexport const DATADOG: DatadogModule[\"DATADOG\"] = new Proxy(\n {} as DatadogModule[\"DATADOG\"],\n {\n get(_, prop) {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").DATADOG[\n prop as keyof DatadogModule[\"DATADOG\"]\n ];\n },\n },\n);\n\nexport function hasDatadogEnv(\n ...args: Parameters<DatadogModule[\"hasDatadogEnv\"]>\n): ReturnType<DatadogModule[\"hasDatadogEnv\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").hasDatadogEnv(...args);\n}\n\nexport function submitDistribution(\n ...args: Parameters<DatadogModule[\"submitDistribution\"]>\n): ReturnType<DatadogModule[\"submitDistribution\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").submitDistribution(\n ...args,\n );\n}\n\nexport function submitMetric(\n ...args: Parameters<DatadogModule[\"submitMetric\"]>\n): ReturnType<DatadogModule[\"submitMetric\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").submitMetric(...args);\n}\n\nexport function submitMetricSet(\n ...args: Parameters<DatadogModule[\"submitMetricSet\"]>\n): ReturnType<DatadogModule[\"submitMetricSet\"]> {\n return loadPackage<DatadogModule>(\"@jaypie/datadog\").submitMetricSet(...args);\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as ExpressTypes from \"@jaypie/express\";\n\ntype ExpressModule = typeof ExpressTypes;\n\n// Re-export types (these don't require the package at runtime)\nexport type {\n CorsConfig,\n ExpressHandlerLocals,\n ExpressHandlerOptions,\n JaypieHandlerSetup,\n JaypieHandlerTeardown,\n JaypieHandlerValidate,\n} from \"@jaypie/express\";\n\n// Re-export constant via getter to lazy load\nexport const EXPRESS: ExpressModule[\"EXPRESS\"] = new Proxy(\n {} as ExpressModule[\"EXPRESS\"],\n {\n get(_, prop) {\n return loadPackage<ExpressModule>(\"@jaypie/express\").EXPRESS[\n prop as keyof ExpressModule[\"EXPRESS\"]\n ];\n },\n },\n);\n\nexport function cors(\n ...args: Parameters<ExpressModule[\"cors\"]>\n): ReturnType<ExpressModule[\"cors\"]> {\n return loadPackage<ExpressModule>(\"@jaypie/express\").cors(...args);\n}\n\nexport function expressHandler(\n ...args: Parameters<ExpressModule[\"expressHandler\"]>\n): ReturnType<ExpressModule[\"expressHandler\"]> {\n return loadPackage<ExpressModule>(\"@jaypie/express\").expressHandler(...args);\n}\n\nexport function expressHttpCodeHandler(\n ...args: Parameters<ExpressModule[\"expressHttpCodeHandler\"]>\n): ReturnType<ExpressModule[\"expressHttpCodeHandler\"]> {\n return loadPackage<ExpressModule>(\"@jaypie/express\").expressHttpCodeHandler(\n ...args,\n );\n}\n\n// Route exports - these are pre-created handlers, so we use getters\nexport const badRequestRoute: ExpressModule[\"badRequestRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"badRequestRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").badRequestRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .badRequestRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const echoRoute: ExpressModule[\"echoRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"echoRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").echoRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .echoRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const forbiddenRoute: ExpressModule[\"forbiddenRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"forbiddenRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").forbiddenRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .forbiddenRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const goneRoute: ExpressModule[\"goneRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"goneRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").goneRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .goneRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const methodNotAllowedRoute: ExpressModule[\"methodNotAllowedRoute\"] =\n new Proxy((() => {}) as unknown as ExpressModule[\"methodNotAllowedRoute\"], {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").methodNotAllowedRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .methodNotAllowedRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n });\n\nexport const noContentRoute: ExpressModule[\"noContentRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"noContentRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").noContentRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .noContentRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const notFoundRoute: ExpressModule[\"notFoundRoute\"] = new Proxy(\n (() => {}) as unknown as ExpressModule[\"notFoundRoute\"],\n {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").notFoundRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .notFoundRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n },\n);\n\nexport const notImplementedRoute: ExpressModule[\"notImplementedRoute\"] =\n new Proxy((() => {}) as unknown as ExpressModule[\"notImplementedRoute\"], {\n apply(_, thisArg, args) {\n return Reflect.apply(\n loadPackage<ExpressModule>(\"@jaypie/express\").notImplementedRoute,\n thisArg,\n args,\n );\n },\n get(_, prop) {\n const route = loadPackage<ExpressModule>(\"@jaypie/express\")\n .notImplementedRoute as unknown as Record<string, unknown>;\n return route[prop as string];\n },\n });\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as LambdaTypes from \"@jaypie/lambda\";\n\ntype LambdaModule = typeof LambdaTypes;\n\nexport function lambdaHandler(\n ...args: Parameters<LambdaModule[\"lambdaHandler\"]>\n): ReturnType<LambdaModule[\"lambdaHandler\"]> {\n return loadPackage<LambdaModule>(\"@jaypie/lambda\").lambdaHandler(...args);\n}\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as LlmTypes from \"@jaypie/llm\";\n\ntype LlmModule = typeof LlmTypes;\n\n// Re-export types (these don't require the package at runtime)\nexport type {\n LlmHistory,\n LlmInputContent,\n LlmInputContentFile,\n LlmInputContentImage,\n LlmInputContentText,\n LlmInputMessage,\n LlmMessageOptions,\n LlmOperateOptions,\n LlmOperateResponse,\n LlmOptions,\n LlmProvider,\n LlmTool,\n} from \"@jaypie/llm\";\n\n// Re-export enums via getters\nexport const LlmMessageRole: typeof LlmTypes.LlmMessageRole = new Proxy(\n {} as typeof LlmTypes.LlmMessageRole,\n {\n get(_, prop) {\n return loadPackage<LlmModule>(\"@jaypie/llm\").LlmMessageRole[\n prop as keyof typeof LlmTypes.LlmMessageRole\n ];\n },\n },\n);\n\nexport const LlmMessageType: typeof LlmTypes.LlmMessageType = new Proxy(\n {} as typeof LlmTypes.LlmMessageType,\n {\n get(_, prop) {\n return loadPackage<LlmModule>(\"@jaypie/llm\").LlmMessageType[\n prop as keyof typeof LlmTypes.LlmMessageType\n ];\n },\n },\n);\n\n// Re-export LLM constants namespace via getter\nexport const LLM: typeof LlmTypes.LLM = new Proxy({} as typeof LlmTypes.LLM, {\n get(_, prop) {\n return loadPackage<LlmModule>(\"@jaypie/llm\").LLM[\n prop as keyof typeof LlmTypes.LLM\n ];\n },\n});\n\n// Llm class wrapper\nexport const Llm: typeof LlmTypes.Llm = new Proxy(\n function () {} as unknown as typeof LlmTypes.Llm,\n {\n construct(_, args) {\n const LlmClass = loadPackage<LlmModule>(\"@jaypie/llm\").Llm;\n return new LlmClass(...(args as ConstructorParameters<typeof LlmClass>));\n },\n get(_, prop) {\n const LlmClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .Llm as unknown as Record<string, unknown>;\n return LlmClass[prop as string];\n },\n },\n);\n\n// Toolkit exports\nexport const JaypieToolkit: typeof LlmTypes.JaypieToolkit = new Proxy(\n function () {} as unknown as typeof LlmTypes.JaypieToolkit,\n {\n construct(_, args) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\").JaypieToolkit;\n return new ToolkitClass(\n ...(args as ConstructorParameters<typeof ToolkitClass>),\n );\n },\n get(_, prop) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .JaypieToolkit as unknown as Record<string, unknown>;\n return ToolkitClass[prop as string];\n },\n },\n);\n\nexport const Toolkit: typeof LlmTypes.Toolkit = new Proxy(\n function () {} as unknown as typeof LlmTypes.Toolkit,\n {\n construct(_, args) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\").Toolkit;\n return new ToolkitClass(\n ...(args as ConstructorParameters<typeof ToolkitClass>),\n );\n },\n get(_, prop) {\n const ToolkitClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .Toolkit as unknown as Record<string, unknown>;\n return ToolkitClass[prop as string];\n },\n },\n);\n\n// toolkit and tools are objects/instances\nexport const toolkit: typeof LlmTypes.toolkit = new Proxy(\n {} as typeof LlmTypes.toolkit,\n {\n get(_, prop) {\n const toolkitObj = loadPackage<LlmModule>(\"@jaypie/llm\")\n .toolkit as unknown as Record<string, unknown>;\n return toolkitObj[prop as string];\n },\n },\n);\n\nexport const tools: typeof LlmTypes.tools = new Proxy(\n {} as typeof LlmTypes.tools,\n {\n get(_, prop) {\n const toolsObj = loadPackage<LlmModule>(\"@jaypie/llm\")\n .tools as unknown as Record<string, unknown>;\n return toolsObj[prop as string];\n },\n },\n);\n\n// Provider exports\nexport const GeminiProvider: typeof LlmTypes.GeminiProvider = new Proxy(\n function () {} as unknown as typeof LlmTypes.GeminiProvider,\n {\n construct(_, args) {\n const ProviderClass =\n loadPackage<LlmModule>(\"@jaypie/llm\").GeminiProvider;\n return new ProviderClass(\n ...(args as ConstructorParameters<typeof ProviderClass>),\n );\n },\n get(_, prop) {\n const ProviderClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .GeminiProvider as unknown as Record<string, unknown>;\n return ProviderClass[prop as string];\n },\n },\n);\n\nexport const OpenRouterProvider: typeof LlmTypes.OpenRouterProvider = new Proxy(\n function () {} as unknown as typeof LlmTypes.OpenRouterProvider,\n {\n construct(_, args) {\n const ProviderClass =\n loadPackage<LlmModule>(\"@jaypie/llm\").OpenRouterProvider;\n return new ProviderClass(\n ...(args as ConstructorParameters<typeof ProviderClass>),\n );\n },\n get(_, prop) {\n const ProviderClass = loadPackage<LlmModule>(\"@jaypie/llm\")\n .OpenRouterProvider as unknown as Record<string, unknown>;\n return ProviderClass[prop as string];\n },\n },\n);\n","import { loadPackage } from \"./loadPackage.js\";\nimport type * as MongooseTypes from \"@jaypie/mongoose\";\n\ntype MongooseModule = typeof MongooseTypes;\n\nexport function connect(\n ...args: Parameters<MongooseModule[\"connect\"]>\n): ReturnType<MongooseModule[\"connect\"]> {\n return loadPackage<MongooseModule>(\"@jaypie/mongoose\").connect(...args);\n}\n\nexport function connectFromSecretEnv(\n ...args: Parameters<MongooseModule[\"connectFromSecretEnv\"]>\n): ReturnType<MongooseModule[\"connectFromSecretEnv\"]> {\n return loadPackage<MongooseModule>(\"@jaypie/mongoose\").connectFromSecretEnv(\n ...args,\n );\n}\n\nexport function disconnect(): ReturnType<MongooseModule[\"disconnect\"]> {\n return loadPackage<MongooseModule>(\"@jaypie/mongoose\").disconnect();\n}\n\n// Re-export mongoose via getter to lazy load\nexport const mongoose: MongooseModule[\"mongoose\"] = new Proxy(\n {} as MongooseModule[\"mongoose\"],\n {\n get(_, prop) {\n const mongoosePkg = loadPackage<MongooseModule>(\"@jaypie/mongoose\")\n .mongoose as unknown as Record<string, unknown>;\n return mongoosePkg[prop as string];\n },\n apply(_, thisArg, args) {\n const mongoosePkg = loadPackage<MongooseModule>(\"@jaypie/mongoose\")\n .mongoose as unknown as (...args: unknown[]) => unknown;\n return Reflect.apply(mongoosePkg, thisArg, args);\n },\n },\n);\n"],"names":["require"],"mappings":";;;;;;;;AAAA;AACO,MAAM,KAAK,GAAG;AACnB,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,E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,EAAE,IAAI,EAAA;AACT,QAAA,MAAM,WAAW,GAAG,WAAW,CAAiB,kBAAkB;AAC/D,aAAA,QAA8C;AACjD,QAAA,OAAO,WAAW,CAAC,IAAc,CAAC;IACpC,CAAC;AACD,IAAA,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAA;AACpB,QAAA,MAAM,WAAW,GAAG,WAAW,CAAiB,kBAAkB;AAC/D,aAAA,QAAsD;QACzD,OAAO,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC;IAClD,CAAC;AACF,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/error.constant.ts"],"sourcesContent":["// ERROR constant - mirror from @jaypie/errors types\nexport const ERROR = {\n MESSAGE: {\n BAD_GATEWAY: \"An unexpected error occurred on an upstream resource\",\n BAD_REQUEST: \"The request was not properly formatted\",\n CONFIGURATION_ERROR:\n \"The application responding to the request encountered a configuration error\",\n CORS_ERROR: \"The requesting origin is not authorized to this resource\",\n FORBIDDEN: \"Access to this resource is not authorized\",\n GATEWAY_TIMEOUT:\n \"The connection timed out waiting for an upstream resource\",\n GONE: \"The requested resource is no longer available\",\n ILLOGICAL:\n \"The application encountered an illogical condition while processing the request\",\n INTERNAL_ERROR:\n \"An unexpected error occurred and the request was unable to complete\",\n METHOD_NOT_ALLOWED: \"The requested method is not allowed\",\n NOT_FOUND: \"The requested resource was not found\",\n NOT_IMPLEMENTED:\n \"The request was understood but the resource is not implemented\",\n REJECTED: \"The request was rejected prior to processing\",\n TEAPOT: \"This resource is a teapot incapable of processing the request\",\n TOO_MANY_REQUESTS: \"The requesting origin exceeded the request limit\",\n UNAUTHORIZED:\n \"The request did not include valid authentication credentials\",\n UNAVAILABLE: \"The requested resource is temporarily unavailable\",\n UNHANDLED:\n \"An unhandled error occurred and the request was unable to complete\",\n UNREACHABLE_CODE:\n \"The application encountered an unreachable condition while processing the request\",\n },\n TITLE: {\n BAD_GATEWAY: \"Bad Gateway\",\n BAD_REQUEST: \"Bad Request\",\n CONFIGURATION_ERROR: \"Internal Configuration Error\",\n CORS_ERROR: \"Unauthorized Origin\",\n FORBIDDEN: \"Forbidden\",\n GATEWAY_TIMEOUT: \"Gateway Timeout\",\n GONE: \"Gone\",\n INTERNAL_ERROR: \"Internal Application Error\",\n METHOD_NOT_ALLOWED: \"Method Not Allowed\",\n NOT_FOUND: \"Not Found\",\n NOT_IMPLEMENTED: \"Not Implemented\",\n REJECTED: \"Request Rejected\",\n TEAPOT: \"Teapot\",\n TOO_MANY_REQUESTS: \"Too Many Requests\",\n UNAUTHORIZED: \"Service Unauthorized\",\n UNAVAILABLE: \"Service Unavailable\",\n },\n TYPE: {\n BAD_GATEWAY: \"BAD_GATEWAY\",\n BAD_REQUEST: \"BAD_REQUEST\",\n CONFIGURATION_ERROR: \"CONFIGURATION_ERROR\",\n CORS_ERROR: \"CORS_ERROR\",\n FORBIDDEN: \"FORBIDDEN\",\n GATEWAY_TIMEOUT: \"GATEWAY_TIMEOUT\",\n GONE: \"GONE\",\n ILLOGICAL: \"ILLOGICAL\",\n INTERNAL_ERROR: \"INTERNAL_ERROR\",\n METHOD_NOT_ALLOWED: \"METHOD_NOT_ALLOWED\",\n MULTI_ERROR: \"MULTI_ERROR\",\n NOT_FOUND: \"NOT_FOUND\",\n NOT_IMPLEMENTED: \"NOT_IMPLEMENTED\",\n REJECTED: \"REJECTED\",\n TEAPOT: \"TEAPOT\",\n TOO_MANY_REQUESTS: \"TOO_MANY_REQUESTS\",\n UNAUTHORIZED: \"UNAUTHORIZED\",\n UNAVAILABLE: \"UNAVAILABLE\",\n UNHANDLED: \"UNHANDLED\",\n UNKNOWN_TYPE: \"UNKNOWN_TYPE\",\n UNREACHABLE_CODE: \"UNREACHABLE_CODE\",\n },\n} as const;\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACO,MAAM,KAAK,GAAG;AACnB,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAE,sDAAsD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AE,aAAa;AAC1B,QAAA,mBAAmB,EAAE,qBAAqB;AAC1C,QAAA,UAAU,EAAE,YAAY;AACxB,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,eAAe,EAAE,iBAAiB;AAClC,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,cAAc,EAAE,gBAAgB;AAChC,QAAA,kBAAkB,EAAE,oBAAoB;AACxC,QAAA,WAAW,EAAE,aAAa;AAC1B,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,eAAe,EAAE,iBAAiB;AAClC,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,iBAAiB,EAAE,mBAAmB;AACtC,QAAA,YAAY,EAAE,cAAc;AAC5B,QAAA,WAAW,EAAE,aAAa;AAC1B,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,YAAY,EAAE,cAAc;AAC5B,QAAA,gBAAgB,EAAE,kBAAkB;AACrC,KAAA;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jaypie",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/finlaysonstudio/jaypie.git"
|
|
@@ -29,9 +29,6 @@
|
|
|
29
29
|
"format:package": "sort-package-json ./package.json",
|
|
30
30
|
"lint": "eslint .",
|
|
31
31
|
"test": "vitest run .",
|
|
32
|
-
"test:spec:dynamicExport.function": "vitest run ./src/__tests__/dynamicExport.function.spec.js",
|
|
33
|
-
"test:spec:index": "vitest run ./src/__tests__/index.spec.js",
|
|
34
|
-
"test:spec:mongoose.package": "vitest run ./src/__tests__/mongoose.package.spec.js",
|
|
35
32
|
"typecheck": "tsc --noEmit"
|
|
36
33
|
},
|
|
37
34
|
"dependencies": {
|
|
@@ -42,11 +39,9 @@
|
|
|
42
39
|
"@jaypie/express": "^1.2.0-rc.4",
|
|
43
40
|
"@jaypie/kit": "^1.2.0-rc.4",
|
|
44
41
|
"@jaypie/lambda": "^1.2.0-rc.4",
|
|
45
|
-
"@jaypie/llm": "^1.2.0-rc.4",
|
|
46
42
|
"@jaypie/logger": "^1.2.0-rc.4"
|
|
47
43
|
},
|
|
48
44
|
"devDependencies": {
|
|
49
|
-
"@jaypie/mongoose": "^1.2.0-rc.4",
|
|
50
45
|
"@jaypie/types": "^0.1.7",
|
|
51
46
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
52
47
|
"@types/node": "^24.8.1",
|
|
@@ -59,9 +54,13 @@
|
|
|
59
54
|
"typescript-eslint": "^8.46.1"
|
|
60
55
|
},
|
|
61
56
|
"peerDependencies": {
|
|
57
|
+
"@jaypie/llm": "^1.2.0-rc.4",
|
|
62
58
|
"@jaypie/mongoose": "^1.2.0-rc.4"
|
|
63
59
|
},
|
|
64
60
|
"peerDependenciesMeta": {
|
|
61
|
+
"@jaypie/llm": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
65
64
|
"@jaypie/mongoose": {
|
|
66
65
|
"optional": true
|
|
67
66
|
}
|
package/dist/cjs/aws.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as AwsTypes from "@jaypie/aws";
|
|
2
|
-
type AwsModule = typeof AwsTypes;
|
|
3
|
-
export declare function getEnvSecret(...args: Parameters<AwsModule["getEnvSecret"]>): ReturnType<AwsModule["getEnvSecret"]>;
|
|
4
|
-
export declare function getMessages(...args: Parameters<AwsModule["getMessages"]>): ReturnType<AwsModule["getMessages"]>;
|
|
5
|
-
export declare function getSecret(...args: Parameters<AwsModule["getSecret"]>): ReturnType<AwsModule["getSecret"]>;
|
|
6
|
-
export declare function getSingletonMessage(...args: Parameters<AwsModule["getSingletonMessage"]>): ReturnType<AwsModule["getSingletonMessage"]>;
|
|
7
|
-
export declare function getTextractJob(...args: Parameters<AwsModule["getTextractJob"]>): ReturnType<AwsModule["getTextractJob"]>;
|
|
8
|
-
export declare function sendBatchMessages(...args: Parameters<AwsModule["sendBatchMessages"]>): ReturnType<AwsModule["sendBatchMessages"]>;
|
|
9
|
-
export declare function sendMessage(...args: Parameters<AwsModule["sendMessage"]>): ReturnType<AwsModule["sendMessage"]>;
|
|
10
|
-
export declare function sendTextractJob(...args: Parameters<AwsModule["sendTextractJob"]>): ReturnType<AwsModule["sendTextractJob"]>;
|
|
11
|
-
export {};
|
package/dist/cjs/datadog.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type * as DatadogTypes from "@jaypie/datadog";
|
|
2
|
-
type DatadogModule = typeof DatadogTypes;
|
|
3
|
-
export declare const DATADOG: DatadogModule["DATADOG"];
|
|
4
|
-
export declare function hasDatadogEnv(...args: Parameters<DatadogModule["hasDatadogEnv"]>): ReturnType<DatadogModule["hasDatadogEnv"]>;
|
|
5
|
-
export declare function submitDistribution(...args: Parameters<DatadogModule["submitDistribution"]>): ReturnType<DatadogModule["submitDistribution"]>;
|
|
6
|
-
export declare function submitMetric(...args: Parameters<DatadogModule["submitMetric"]>): ReturnType<DatadogModule["submitMetric"]>;
|
|
7
|
-
export declare function submitMetricSet(...args: Parameters<DatadogModule["submitMetricSet"]>): ReturnType<DatadogModule["submitMetricSet"]>;
|
|
8
|
-
export {};
|
package/dist/cjs/express.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type * as ExpressTypes from "@jaypie/express";
|
|
2
|
-
type ExpressModule = typeof ExpressTypes;
|
|
3
|
-
export type { CorsConfig, ExpressHandlerLocals, ExpressHandlerOptions, JaypieHandlerSetup, JaypieHandlerTeardown, JaypieHandlerValidate, } from "@jaypie/express";
|
|
4
|
-
export declare const EXPRESS: ExpressModule["EXPRESS"];
|
|
5
|
-
export declare function cors(...args: Parameters<ExpressModule["cors"]>): ReturnType<ExpressModule["cors"]>;
|
|
6
|
-
export declare function expressHandler(...args: Parameters<ExpressModule["expressHandler"]>): ReturnType<ExpressModule["expressHandler"]>;
|
|
7
|
-
export declare function expressHttpCodeHandler(...args: Parameters<ExpressModule["expressHttpCodeHandler"]>): ReturnType<ExpressModule["expressHttpCodeHandler"]>;
|
|
8
|
-
export declare const badRequestRoute: ExpressModule["badRequestRoute"];
|
|
9
|
-
export declare const echoRoute: ExpressModule["echoRoute"];
|
|
10
|
-
export declare const forbiddenRoute: ExpressModule["forbiddenRoute"];
|
|
11
|
-
export declare const goneRoute: ExpressModule["goneRoute"];
|
|
12
|
-
export declare const methodNotAllowedRoute: ExpressModule["methodNotAllowedRoute"];
|
|
13
|
-
export declare const noContentRoute: ExpressModule["noContentRoute"];
|
|
14
|
-
export declare const notFoundRoute: ExpressModule["notFoundRoute"];
|
|
15
|
-
export declare const notImplementedRoute: ExpressModule["notImplementedRoute"];
|
package/dist/cjs/kit.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type * as KitTypes from "@jaypie/kit";
|
|
2
|
-
type KitModule = typeof KitTypes;
|
|
3
|
-
export declare function isNodeTestEnv(...args: Parameters<KitModule["isNodeTestEnv"]>): ReturnType<KitModule["isNodeTestEnv"]>;
|
|
4
|
-
export declare function isProductionEnv(...args: Parameters<KitModule["isProductionEnv"]>): ReturnType<KitModule["isProductionEnv"]>;
|
|
5
|
-
export {};
|
package/dist/cjs/lambda.d.ts
DELETED
package/dist/cjs/llm.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type * as LlmTypes from "@jaypie/llm";
|
|
2
|
-
export type { LlmHistory, LlmInputContent, LlmInputContentFile, LlmInputContentImage, LlmInputContentText, LlmInputMessage, LlmMessageOptions, LlmOperateOptions, LlmOperateResponse, LlmOptions, LlmProvider, LlmTool, } from "@jaypie/llm";
|
|
3
|
-
export declare const LlmMessageRole: typeof LlmTypes.LlmMessageRole;
|
|
4
|
-
export declare const LlmMessageType: typeof LlmTypes.LlmMessageType;
|
|
5
|
-
export declare const LLM: typeof LlmTypes.LLM;
|
|
6
|
-
export declare const Llm: typeof LlmTypes.Llm;
|
|
7
|
-
export declare const JaypieToolkit: typeof LlmTypes.JaypieToolkit;
|
|
8
|
-
export declare const Toolkit: typeof LlmTypes.Toolkit;
|
|
9
|
-
export declare const toolkit: typeof LlmTypes.toolkit;
|
|
10
|
-
export declare const tools: typeof LlmTypes.tools;
|
|
11
|
-
export declare const GeminiProvider: typeof LlmTypes.GeminiProvider;
|
|
12
|
-
export declare const OpenRouterProvider: typeof LlmTypes.OpenRouterProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadPackage<T>(packageName: string): T;
|
package/dist/cjs/mongoose.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type * as MongooseTypes from "@jaypie/mongoose";
|
|
2
|
-
type MongooseModule = typeof MongooseTypes;
|
|
3
|
-
export declare function connect(...args: Parameters<MongooseModule["connect"]>): ReturnType<MongooseModule["connect"]>;
|
|
4
|
-
export declare function connectFromSecretEnv(...args: Parameters<MongooseModule["connectFromSecretEnv"]>): ReturnType<MongooseModule["connectFromSecretEnv"]>;
|
|
5
|
-
export declare function disconnect(): ReturnType<MongooseModule["disconnect"]>;
|
|
6
|
-
export declare const mongoose: MongooseModule["mongoose"];
|
|
7
|
-
export {};
|
package/dist/esm/aws.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as AwsTypes from "@jaypie/aws";
|
|
2
|
-
type AwsModule = typeof AwsTypes;
|
|
3
|
-
export declare function getEnvSecret(...args: Parameters<AwsModule["getEnvSecret"]>): ReturnType<AwsModule["getEnvSecret"]>;
|
|
4
|
-
export declare function getMessages(...args: Parameters<AwsModule["getMessages"]>): ReturnType<AwsModule["getMessages"]>;
|
|
5
|
-
export declare function getSecret(...args: Parameters<AwsModule["getSecret"]>): ReturnType<AwsModule["getSecret"]>;
|
|
6
|
-
export declare function getSingletonMessage(...args: Parameters<AwsModule["getSingletonMessage"]>): ReturnType<AwsModule["getSingletonMessage"]>;
|
|
7
|
-
export declare function getTextractJob(...args: Parameters<AwsModule["getTextractJob"]>): ReturnType<AwsModule["getTextractJob"]>;
|
|
8
|
-
export declare function sendBatchMessages(...args: Parameters<AwsModule["sendBatchMessages"]>): ReturnType<AwsModule["sendBatchMessages"]>;
|
|
9
|
-
export declare function sendMessage(...args: Parameters<AwsModule["sendMessage"]>): ReturnType<AwsModule["sendMessage"]>;
|
|
10
|
-
export declare function sendTextractJob(...args: Parameters<AwsModule["sendTextractJob"]>): ReturnType<AwsModule["sendTextractJob"]>;
|
|
11
|
-
export {};
|
package/dist/esm/datadog.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type * as DatadogTypes from "@jaypie/datadog";
|
|
2
|
-
type DatadogModule = typeof DatadogTypes;
|
|
3
|
-
export declare const DATADOG: DatadogModule["DATADOG"];
|
|
4
|
-
export declare function hasDatadogEnv(...args: Parameters<DatadogModule["hasDatadogEnv"]>): ReturnType<DatadogModule["hasDatadogEnv"]>;
|
|
5
|
-
export declare function submitDistribution(...args: Parameters<DatadogModule["submitDistribution"]>): ReturnType<DatadogModule["submitDistribution"]>;
|
|
6
|
-
export declare function submitMetric(...args: Parameters<DatadogModule["submitMetric"]>): ReturnType<DatadogModule["submitMetric"]>;
|
|
7
|
-
export declare function submitMetricSet(...args: Parameters<DatadogModule["submitMetricSet"]>): ReturnType<DatadogModule["submitMetricSet"]>;
|
|
8
|
-
export {};
|
package/dist/esm/express.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type * as ExpressTypes from "@jaypie/express";
|
|
2
|
-
type ExpressModule = typeof ExpressTypes;
|
|
3
|
-
export type { CorsConfig, ExpressHandlerLocals, ExpressHandlerOptions, JaypieHandlerSetup, JaypieHandlerTeardown, JaypieHandlerValidate, } from "@jaypie/express";
|
|
4
|
-
export declare const EXPRESS: ExpressModule["EXPRESS"];
|
|
5
|
-
export declare function cors(...args: Parameters<ExpressModule["cors"]>): ReturnType<ExpressModule["cors"]>;
|
|
6
|
-
export declare function expressHandler(...args: Parameters<ExpressModule["expressHandler"]>): ReturnType<ExpressModule["expressHandler"]>;
|
|
7
|
-
export declare function expressHttpCodeHandler(...args: Parameters<ExpressModule["expressHttpCodeHandler"]>): ReturnType<ExpressModule["expressHttpCodeHandler"]>;
|
|
8
|
-
export declare const badRequestRoute: ExpressModule["badRequestRoute"];
|
|
9
|
-
export declare const echoRoute: ExpressModule["echoRoute"];
|
|
10
|
-
export declare const forbiddenRoute: ExpressModule["forbiddenRoute"];
|
|
11
|
-
export declare const goneRoute: ExpressModule["goneRoute"];
|
|
12
|
-
export declare const methodNotAllowedRoute: ExpressModule["methodNotAllowedRoute"];
|
|
13
|
-
export declare const noContentRoute: ExpressModule["noContentRoute"];
|
|
14
|
-
export declare const notFoundRoute: ExpressModule["notFoundRoute"];
|
|
15
|
-
export declare const notImplementedRoute: ExpressModule["notImplementedRoute"];
|
package/dist/esm/kit.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type * as KitTypes from "@jaypie/kit";
|
|
2
|
-
type KitModule = typeof KitTypes;
|
|
3
|
-
export declare function isNodeTestEnv(...args: Parameters<KitModule["isNodeTestEnv"]>): ReturnType<KitModule["isNodeTestEnv"]>;
|
|
4
|
-
export declare function isProductionEnv(...args: Parameters<KitModule["isProductionEnv"]>): ReturnType<KitModule["isProductionEnv"]>;
|
|
5
|
-
export {};
|
package/dist/esm/lambda.d.ts
DELETED
package/dist/esm/llm.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type * as LlmTypes from "@jaypie/llm";
|
|
2
|
-
export type { LlmHistory, LlmInputContent, LlmInputContentFile, LlmInputContentImage, LlmInputContentText, LlmInputMessage, LlmMessageOptions, LlmOperateOptions, LlmOperateResponse, LlmOptions, LlmProvider, LlmTool, } from "@jaypie/llm";
|
|
3
|
-
export declare const LlmMessageRole: typeof LlmTypes.LlmMessageRole;
|
|
4
|
-
export declare const LlmMessageType: typeof LlmTypes.LlmMessageType;
|
|
5
|
-
export declare const LLM: typeof LlmTypes.LLM;
|
|
6
|
-
export declare const Llm: typeof LlmTypes.Llm;
|
|
7
|
-
export declare const JaypieToolkit: typeof LlmTypes.JaypieToolkit;
|
|
8
|
-
export declare const Toolkit: typeof LlmTypes.Toolkit;
|
|
9
|
-
export declare const toolkit: typeof LlmTypes.toolkit;
|
|
10
|
-
export declare const tools: typeof LlmTypes.tools;
|
|
11
|
-
export declare const GeminiProvider: typeof LlmTypes.GeminiProvider;
|
|
12
|
-
export declare const OpenRouterProvider: typeof LlmTypes.OpenRouterProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadPackage<T>(packageName: string): T;
|
package/dist/esm/mongoose.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type * as MongooseTypes from "@jaypie/mongoose";
|
|
2
|
-
type MongooseModule = typeof MongooseTypes;
|
|
3
|
-
export declare function connect(...args: Parameters<MongooseModule["connect"]>): ReturnType<MongooseModule["connect"]>;
|
|
4
|
-
export declare function connectFromSecretEnv(...args: Parameters<MongooseModule["connectFromSecretEnv"]>): ReturnType<MongooseModule["connectFromSecretEnv"]>;
|
|
5
|
-
export declare function disconnect(): ReturnType<MongooseModule["disconnect"]>;
|
|
6
|
-
export declare const mongoose: MongooseModule["mongoose"];
|
|
7
|
-
export {};
|