@minded-ai/mindedjs 2.0.6-beta-2 → 2.0.6-beta-3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambdaHandlerTemplate.d.ts","sourceRoot":"","sources":["../../src/cli/lambdaHandlerTemplate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lambdaHandlerTemplate.d.ts","sourceRoot":"","sources":["../../src/cli/lambdaHandlerTemplate.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,UAAiB,GAAG,WAAW,GAAG;;;;;;;;;;;;EAyDrD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handler = void 0;
|
|
4
|
-
|
|
4
|
+
// @ts-expect-error - This import will be resolved at runtime in the generated Lambda handler
|
|
5
|
+
const mindedjs_1 = require("@minded-ai/mindedjs");
|
|
5
6
|
// This is the template for the Lambda handler
|
|
6
7
|
// The {MODULE_PATH} placeholder will be replaced with the actual path
|
|
7
8
|
const handler = async (event, context) => {
|
|
@@ -29,7 +30,7 @@ const handler = async (event, context) => {
|
|
|
29
30
|
}
|
|
30
31
|
if (agentFunctionName === 'startVoiceSession') {
|
|
31
32
|
while (context.getRemainingTimeInMillis() > 1000) {
|
|
32
|
-
|
|
33
|
+
mindedjs_1.logger.info({ msg: 'Lambda remaining time in seconds: ', remainingTime: context.getRemainingTimeInMillis() / 1000 });
|
|
33
34
|
await wait(1000); // sleep 1 s
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -47,7 +48,7 @@ const handler = async (event, context) => {
|
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
catch (err) {
|
|
50
|
-
|
|
51
|
+
mindedjs_1.logger.error({
|
|
51
52
|
msg: 'Lambda runtime error',
|
|
52
53
|
err,
|
|
53
54
|
requestId: context.requestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambdaHandlerTemplate.js","sourceRoot":"","sources":["../../src/cli/lambdaHandlerTemplate.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"lambdaHandlerTemplate.js","sourceRoot":"","sources":["../../src/cli/lambdaHandlerTemplate.ts"],"names":[],"mappings":";;;AAAA,6FAA6F;AAC7F,kDAA6C;AAE7C,8CAA8C;AAC9C,sEAAsE;AAE/D,MAAM,OAAO,GAAG,KAAK,EAAE,KAAU,EAAE,OAAY,EAAE,EAAE;;IACxD,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,eAAe,CAAC,CAAC,kEAAkE;QACtG,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACjD,OAAO,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,iEAAiE;QACjE,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;QAC1C,MAAM,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAE7F,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,iBAAiB,CAAC,CAAC;QACrE,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CAAC;QAEnE,yEAAyE;QACzE,2DAA2D;QAC3D,IAAI,YAAY,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC;YACH,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YACzB,YAAY,GAAG,QAAQ,CAAC;QAC1B,CAAC;QAAC,WAAM,CAAC;YACP,oCAAoC;QACtC,CAAC;QAED,IAAI,iBAAiB,KAAK,mBAAmB,EAAE,CAAC;YAC9C,OAAO,OAAO,CAAC,wBAAwB,EAAE,GAAG,IAAI,EAAE,CAAC;gBACjD,iBAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,oCAAoC,EAAE,aAAa,EAAE,OAAO,CAAC,wBAAwB,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;gBACrH,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY;YAChC,CAAC;QACH,CAAC;QAED,eAAe;QACf,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,MAAA,KAAK,CAAC,KAAK,qDAAI,CAAC;QAEhB,OAAO;YACL,UAAU,EAAE,GAAG;YACf,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,6BAA6B,EAAE,GAAG;gBAClC,kCAAkC,EAAE,IAAI;aACzC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;SACnC,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,iBAAM,CAAC,KAAK,CAAC;YACX,GAAG,EAAE,sBAAsB;YAC3B,GAAG;YACH,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;SACnC,CAAC,CAAC;QAEH,OAAO;YACL,UAAU,EAAE,GAAG;SAChB,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAzDW,QAAA,OAAO,WAyDlB;AAEF,MAAM,IAAI,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
// @ts-expect-error - This import will be resolved at runtime in the generated Lambda handler
|
|
2
|
+
import { logger } from '@minded-ai/mindedjs';
|
|
2
3
|
|
|
3
4
|
// This is the template for the Lambda handler
|
|
4
5
|
// The {MODULE_PATH} placeholder will be replaced with the actual path
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
// @ts-expect-error - This import will be resolved at runtime in the generated Lambda handler
|
|
2
|
+
import { logger } from '@minded-ai/mindedjs';
|
|
2
3
|
|
|
3
4
|
// This is the template for the Lambda handler
|
|
4
5
|
// The {MODULE_PATH} placeholder will be replaced with the actual path
|