@guava-ai/guava-sdk 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,16 @@
1
1
  #!/usr/bin/env node
2
- import * as schedulingOutbound from "../examples/scheduling-outbound";
3
- import * as propertyInsurance from "../examples/property-insurance";
4
- import * as restaurantWaitlist from "../examples/restaurant-waitlist";
5
- import * as helpDesk from "../examples/help-desk";
6
2
 
7
3
  const EXAMPLES = {
8
- "scheduling-outbound": schedulingOutbound,
9
- "property-insurance": propertyInsurance,
10
- "restaurant-waitlist": restaurantWaitlist,
11
- "help-desk": helpDesk,
4
+ "scheduling-outbound": () => import("../examples/scheduling-outbound"),
5
+ "property-insurance": () => import("../examples/property-insurance"),
6
+ "restaurant-waitlist": () => import("../examples/restaurant-waitlist"),
7
+ "help-desk": () => import("../examples/help-desk"),
12
8
  };
13
9
 
14
10
  const exampleName = process.argv[2];
15
11
  if (!exampleName) {
16
12
  console.error("Usage: guava-example <example-name> <example-args>");
17
- console.error("Available examples:", Object.keys(EXAMPLES).join(", "))
13
+ console.error("Available examples:", Object.keys(EXAMPLES).join(", "));
18
14
  process.exit(1);
19
15
  }
20
16
 
@@ -24,5 +20,6 @@ if (!(exampleName in EXAMPLES)) {
24
20
  }
25
21
 
26
22
  (async () => {
27
- await EXAMPLES[exampleName as keyof typeof EXAMPLES].run(process.argv.slice(3));
23
+ const mod = await EXAMPLES[exampleName as keyof typeof EXAMPLES]();
24
+ await mod.run(process.argv.slice(3));
28
25
  })();
@@ -1,2 +1,8 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ declare const EXAMPLES: {
3
+ "scheduling-outbound": () => Promise<typeof import("../examples/scheduling-outbound")>;
4
+ "property-insurance": () => Promise<typeof import("../examples/property-insurance")>;
5
+ "restaurant-waitlist": () => Promise<typeof import("../examples/restaurant-waitlist")>;
6
+ "help-desk": () => Promise<typeof import("../examples/help-desk")>;
7
+ };
8
+ declare const exampleName: string;
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
3
  if (k2 === undefined) k2 = k;
5
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -33,16 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
33
32
  return result;
34
33
  };
35
34
  })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- const schedulingOutbound = __importStar(require("../examples/scheduling-outbound"));
38
- const propertyInsurance = __importStar(require("../examples/property-insurance"));
39
- const restaurantWaitlist = __importStar(require("../examples/restaurant-waitlist"));
40
- const helpDesk = __importStar(require("../examples/help-desk"));
41
35
  const EXAMPLES = {
42
- "scheduling-outbound": schedulingOutbound,
43
- "property-insurance": propertyInsurance,
44
- "restaurant-waitlist": restaurantWaitlist,
45
- "help-desk": helpDesk,
36
+ "scheduling-outbound": () => Promise.resolve().then(() => __importStar(require("../examples/scheduling-outbound"))),
37
+ "property-insurance": () => Promise.resolve().then(() => __importStar(require("../examples/property-insurance"))),
38
+ "restaurant-waitlist": () => Promise.resolve().then(() => __importStar(require("../examples/restaurant-waitlist"))),
39
+ "help-desk": () => Promise.resolve().then(() => __importStar(require("../examples/help-desk"))),
46
40
  };
47
41
  const exampleName = process.argv[2];
48
42
  if (!exampleName) {
@@ -55,6 +49,7 @@ if (!(exampleName in EXAMPLES)) {
55
49
  process.exit(1);
56
50
  }
57
51
  (async () => {
58
- await EXAMPLES[exampleName].run(process.argv.slice(3));
52
+ const mod = await EXAMPLES[exampleName]();
53
+ await mod.run(process.argv.slice(3));
59
54
  })();
60
55
  //# sourceMappingURL=example-runner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"example-runner.js","sourceRoot":"","sources":["../../bin/example-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oFAAsE;AACtE,kFAAoE;AACpE,oFAAsE;AACtE,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IACtE,WAAW,EAAE,GAAG,EAAE,mDAAQ,uBAAuB,GAAC;CACnD,CAAC;AAEF,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpC,IAAI,CAAC,WAAW,EAAE,CAAC;IACjB,OAAO,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACpE,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACvE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,IAAI,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,EAAE,CAAC;IAC/B,OAAO,CAAC,KAAK,CAAC,oBAAoB,WAAW,0BAA0B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,CAAC,KAAK,IAAI,EAAE;IACV,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,WAAoC,CAAC,EAAE,CAAC;IACnE,MAAM,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC,CAAC,EAAE,CAAC"}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.13.0";
1
+ export declare const SDK_VERSION = "0.15.0";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.13.0";
4
+ exports.SDK_VERSION = "0.15.0";
5
5
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@guava-ai/guava-sdk",
3
3
  "description": "The official TypeScript SDK for building Guava voice agents.",
4
4
  "homepage": "https://docs.goguava.ai/typescript-sdk/",
5
- "version": "0.13.0",
5
+ "version": "0.15.0",
6
6
  "type": "commonjs",
7
7
  "main": "dist/src/index.js",
8
8
  "types": "dist/src/index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.13.0";
1
+ export const SDK_VERSION = "0.15.0";