@flow-state-dev/voice-openai 0.1.1 → 0.1.2

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Public surface of `@flow-state-dev/voice-openai`. */
2
- export { OpenAIVoiceProvider } from "./openai-voice-provider";
3
- export type { OpenAIVoiceProviderOptions } from "./openai-voice-provider";
4
- export { OPENAI_VOICE_CATALOG } from "./voice-catalog";
2
+ export { OpenAIVoiceProvider } from "./openai-voice-provider.js";
3
+ export type { OpenAIVoiceProviderOptions } from "./openai-voice-provider.js";
4
+ export { OPENAI_VOICE_CATALOG } from "./voice-catalog.js";
5
5
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /** Public surface of `@flow-state-dev/voice-openai`. */
2
- export { OpenAIVoiceProvider } from "./openai-voice-provider";
3
- export { OPENAI_VOICE_CATALOG } from "./voice-catalog";
2
+ export { OpenAIVoiceProvider } from "./openai-voice-provider.js";
3
+ export { OPENAI_VOICE_CATALOG } from "./voice-catalog.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -7,9 +7,9 @@
7
7
  import { createHash } from "node:crypto";
8
8
  import OpenAI, { toFile } from "openai";
9
9
  import { VoiceError } from "@flow-state-dev/core";
10
- import { mapOutputFormat, mediaTypeForFormat } from "./output-format";
11
- import { translateError } from "./translate-error";
12
- import { OPENAI_VOICE_CATALOG } from "./voice-catalog";
10
+ import { mapOutputFormat, mediaTypeForFormat } from "./output-format.js";
11
+ import { translateError } from "./translate-error.js";
12
+ import { OPENAI_VOICE_CATALOG } from "./voice-catalog.js";
13
13
  /**
14
14
  * OpenAI-backed `VoiceProvider`. Single-instance, reusable across requests;
15
15
  * the underlying SDK client is shared, so HTTP-keep-alive and per-instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flow-state-dev/voice-openai",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenAI voice transport for flow-state-dev.",
5
5
  "keywords": [
6
6
  "ai",
@@ -47,7 +47,7 @@
47
47
  "sideEffects": false,
48
48
  "dependencies": {
49
49
  "openai": "^6.38.0",
50
- "@flow-state-dev/core": "0.1.1"
50
+ "@flow-state-dev/core": "0.1.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^22.0.0",
@@ -55,7 +55,7 @@
55
55
  "vitest": "^3.2.4"
56
56
  },
57
57
  "scripts": {
58
- "build": "tsc -p tsconfig.json",
58
+ "build": "tsc -p tsconfig.json && node ../../scripts/add-esm-extensions.mjs dist",
59
59
  "typecheck": "node ../../scripts/typecheck.mjs",
60
60
  "lint": "echo 'lint not configured yet'",
61
61
  "test": "vitest run --root .",