@recombine-ai/platform 0.2.0 → 0.2.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,4 +1,8 @@
1
- export function createInMemoryCache() {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createInMemoryCache = createInMemoryCache;
4
+ exports.createRedisCache = createRedisCache;
5
+ function createInMemoryCache() {
2
6
  const cache = new Map();
3
7
  async function getContext(callId, defaultContext) {
4
8
  if (cache.has(callId)) {
@@ -21,7 +25,7 @@ export function createInMemoryCache() {
21
25
  },
22
26
  };
23
27
  }
24
- export function createRedisCache(client, options = DEFAULT_REDIS_CACHE_OPTIONS) {
28
+ function createRedisCache(client, options = DEFAULT_REDIS_CACHE_OPTIONS) {
25
29
  function createKey(callId) {
26
30
  return options.keyPrefix + callId;
27
31
  }
package/build/index.js CHANGED
@@ -1,4 +1,20 @@
1
- export * from './interfaces/platform';
2
- export * from './interfaces/rc-voice';
3
- export * from './context-cache';
4
- export * from './timeouts-manager';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces/platform"), exports);
18
+ __exportStar(require("./interfaces/rc-voice"), exports);
19
+ __exportStar(require("./context-cache"), exports);
20
+ __exportStar(require("./timeouts-manager"), exports);
@@ -1,3 +1,6 @@
1
- export function createAgent(creator) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createAgent = createAgent;
4
+ function createAgent(creator) {
2
5
  return creator;
3
6
  }
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
- export class TimeoutManager {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimeoutManager = void 0;
4
+ class TimeoutManager {
2
5
  timeoutsCache;
3
6
  logger;
4
7
  shallSkip;
@@ -97,3 +100,4 @@ export class TimeoutManager {
97
100
  this.logger.debug(`TimeoutManager: cleared all timeouts`, { callId });
98
101
  }
99
102
  }
103
+ exports.TimeoutManager = TimeoutManager;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recombine-ai/platform",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "description": "Recombine AI: voice agent platform",
5
5
  "license": "EULA",
6
6
  "author": "recombine.ai",
@@ -12,21 +12,14 @@
12
12
  "files": [
13
13
  "build"
14
14
  ],
15
- "type": "module",
15
+ "main": "./build/index.js",
16
16
  "types": "./build/index.d.ts",
17
17
  "dependencies": {
18
18
  "@recombine-ai/engine": "1.0.0",
19
- "@recombine-ai/telescope": "0.2.0",
19
+ "@recombine-ai/telescope": "0.3.1",
20
20
  "redis": "5.11.0",
21
21
  "zod": "^4.4.3"
22
22
  },
23
- "exports": {
24
- ".": {
25
- "types": "./build/index.d.ts",
26
- "import": "./build/index.js",
27
- "default": "./build/index.js"
28
- }
29
- },
30
23
  "publishConfig": {
31
24
  "registry": "https://registry.npmjs.org"
32
25
  },