@workglow/openai 0.3.17 → 0.3.18

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.
Files changed (79) hide show
  1. package/dist/ai/OpenAiProvider.d.ts +79 -0
  2. package/dist/ai/OpenAiProvider.d.ts.map +1 -0
  3. package/dist/ai/OpenAiQueuedProvider.d.ts +76 -0
  4. package/dist/ai/OpenAiQueuedProvider.d.ts.map +1 -0
  5. package/dist/ai/common/OpenAI_Capabilities.d.ts +36 -0
  6. package/dist/ai/common/OpenAI_Capabilities.d.ts.map +1 -0
  7. package/dist/ai/common/OpenAI_CapabilitySets.d.ts +30 -0
  8. package/dist/ai/common/OpenAI_CapabilitySets.d.ts.map +1 -0
  9. package/dist/ai/common/OpenAI_Client.d.ts +17 -0
  10. package/dist/ai/common/OpenAI_Client.d.ts.map +1 -0
  11. package/dist/ai/common/OpenAI_Constants.d.ts +7 -0
  12. package/dist/ai/common/OpenAI_Constants.d.ts.map +1 -0
  13. package/dist/ai/common/OpenAI_CountTokens.browser.d.ts +15 -0
  14. package/dist/ai/common/OpenAI_CountTokens.browser.d.ts.map +1 -0
  15. package/dist/ai/common/OpenAI_CountTokens.d.ts +15 -0
  16. package/dist/ai/common/OpenAI_CountTokens.d.ts.map +1 -0
  17. package/dist/ai/common/OpenAI_ImageEdit.d.ts +14 -0
  18. package/dist/ai/common/OpenAI_ImageEdit.d.ts.map +1 -0
  19. package/dist/ai/common/OpenAI_ImageGenerate.d.ts +16 -0
  20. package/dist/ai/common/OpenAI_ImageGenerate.d.ts.map +1 -0
  21. package/dist/ai/common/OpenAI_ImageValidation.d.ts +15 -0
  22. package/dist/ai/common/OpenAI_ImageValidation.d.ts.map +1 -0
  23. package/dist/ai/common/OpenAI_JobRunFns.browser.d.ts +16 -0
  24. package/dist/ai/common/OpenAI_JobRunFns.browser.d.ts.map +1 -0
  25. package/dist/ai/common/OpenAI_JobRunFns.d.ts +19 -0
  26. package/dist/ai/common/OpenAI_JobRunFns.d.ts.map +1 -0
  27. package/dist/ai/common/OpenAI_ModelInfo.d.ts +14 -0
  28. package/dist/ai/common/OpenAI_ModelInfo.d.ts.map +1 -0
  29. package/dist/ai/common/OpenAI_ModelSchema.d.ts +185 -0
  30. package/dist/ai/common/OpenAI_ModelSchema.d.ts.map +1 -0
  31. package/dist/ai/common/OpenAI_ModelSearch.d.ts +13 -0
  32. package/dist/ai/common/OpenAI_ModelSearch.d.ts.map +1 -0
  33. package/dist/ai/common/OpenAI_StructuredGeneration.d.ts +15 -0
  34. package/dist/ai/common/OpenAI_StructuredGeneration.d.ts.map +1 -0
  35. package/dist/ai/common/OpenAI_TextEmbedding.d.ts +14 -0
  36. package/dist/ai/common/OpenAI_TextEmbedding.d.ts.map +1 -0
  37. package/dist/ai/common/OpenAI_TextGeneration.d.ts +16 -0
  38. package/dist/ai/common/OpenAI_TextGeneration.d.ts.map +1 -0
  39. package/dist/ai/common/OpenAI_TextRewriter.d.ts +13 -0
  40. package/dist/ai/common/OpenAI_TextRewriter.d.ts.map +1 -0
  41. package/dist/ai/common/OpenAI_TextSummary.d.ts +13 -0
  42. package/dist/ai/common/OpenAI_TextSummary.d.ts.map +1 -0
  43. package/dist/ai/common/OpenAI_ToolCalling.d.ts +18 -0
  44. package/dist/ai/common/OpenAI_ToolCalling.d.ts.map +1 -0
  45. package/dist/ai/index.browser.d.ts +10 -0
  46. package/dist/ai/index.browser.d.ts.map +1 -0
  47. package/dist/ai/index.d.ts +39 -0
  48. package/dist/ai/index.d.ts.map +1 -0
  49. package/dist/ai/registerOpenAi.d.ts +10 -0
  50. package/dist/ai/registerOpenAi.d.ts.map +1 -0
  51. package/dist/ai/registerOpenAiInline.browser.d.ts +8 -0
  52. package/dist/ai/registerOpenAiInline.browser.d.ts.map +1 -0
  53. package/dist/ai/registerOpenAiInline.d.ts +8 -0
  54. package/dist/ai/registerOpenAiInline.d.ts.map +1 -0
  55. package/dist/ai/registerOpenAiWorker.browser.d.ts +7 -0
  56. package/dist/ai/registerOpenAiWorker.browser.d.ts.map +1 -0
  57. package/dist/ai/registerOpenAiWorker.d.ts +7 -0
  58. package/dist/ai/registerOpenAiWorker.d.ts.map +1 -0
  59. package/dist/ai/runtime.browser.d.ts +15 -0
  60. package/dist/ai/runtime.browser.d.ts.map +1 -0
  61. package/dist/ai/runtime.d.ts +16 -0
  62. package/dist/ai/runtime.d.ts.map +1 -0
  63. package/dist/ai-runtime.browser.d.ts +7 -0
  64. package/dist/ai-runtime.browser.d.ts.map +1 -0
  65. package/dist/ai-runtime.browser.js +716 -0
  66. package/dist/ai-runtime.browser.js.map +29 -0
  67. package/dist/ai-runtime.d.ts +7 -0
  68. package/dist/ai-runtime.d.ts.map +1 -0
  69. package/dist/ai-runtime.js +731 -0
  70. package/dist/ai-runtime.js.map +30 -0
  71. package/dist/ai.browser.d.ts +7 -0
  72. package/dist/ai.browser.d.ts.map +1 -0
  73. package/dist/ai.browser.js +231 -0
  74. package/dist/ai.browser.js.map +17 -0
  75. package/dist/ai.d.ts +7 -0
  76. package/dist/ai.d.ts.map +1 -0
  77. package/dist/ai.js +775 -0
  78. package/dist/ai.js.map +30 -0
  79. package/package.json +11 -11
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, ModelSearchTaskInput, ModelSearchTaskOutput } from "@workglow/ai";
7
+ /**
8
+ * One-shot run-fn for `["model.search"]`. Emits a
9
+ * single `finish` event with the search results. When no credential key is
10
+ * provided, falls back to a curated static list of well-known OpenAI models.
11
+ */
12
+ export declare const OpenAI_ModelSearch_Stream: AiProviderRunFn<ModelSearchTaskInput, ModelSearchTaskOutput>;
13
+ //# sourceMappingURL=OpenAI_ModelSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_ModelSearch.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ModelSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAuEtB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,CAUtB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, StructuredGenerationTaskInput, StructuredGenerationTaskOutput } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * Streaming run-fn for `["text.generation", "json-mode"]`. Emits
10
+ * `object-delta` events with progressively-completed partial JSON snapshots
11
+ * on the `object` port, ending with a `finish` event carrying the parsed
12
+ * final object.
13
+ */
14
+ export declare const OpenAI_StructuredGeneration_Stream: AiProviderRunFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, OpenAiModelConfig>;
15
+ //# sourceMappingURL=OpenAI_StructuredGeneration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_StructuredGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_StructuredGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,EAAE,eAAe,CAC9D,6BAA6B,EAC7B,8BAA8B,EAC9B,iBAAiB,CA6ClB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextEmbeddingTaskInput, TextEmbeddingTaskOutput } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * One-shot run-fn for `["text.embedding"]`. Calls the OpenAI
10
+ * embeddings endpoint and emits a single `finish` event carrying the vector
11
+ * (or array of vectors when `input.text` is an array).
12
+ */
13
+ export declare const OpenAI_TextEmbedding_Stream: AiProviderRunFn<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, OpenAiModelConfig>;
14
+ //# sourceMappingURL=OpenAI_TextEmbedding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_TextEmbedding.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextEmbedding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,eAAe,CACvD,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,CA6BlB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * Streaming run-fn for the `["text.generation"]` capability. Used by both
10
+ * {@link TextGenerationTask} (prompt-only input) and {@link AiChatTask}
11
+ * (full conversation history). Emits `text-delta` events on the `text` port
12
+ * and a final empty `finish` event per the streaming convention (consumer
13
+ * accumulates).
14
+ */
15
+ export declare const OpenAI_TextGeneration_Stream: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, OpenAiModelConfig>;
16
+ //# sourceMappingURL=OpenAI_TextGeneration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAgD9D;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,CA0BlB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextRewriterTaskInput, TextRewriterTaskOutput } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * Streaming run-fn for `["text.rewriter"]`. Emits `text-delta` events on
10
+ * the `text` port and a final empty `finish` event.
11
+ */
12
+ export declare const OpenAI_TextRewriter_Stream: AiProviderRunFn<TextRewriterTaskInput, TextRewriterTaskOutput, OpenAiModelConfig>;
13
+ //# sourceMappingURL=OpenAI_TextRewriter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAAe,CACtD,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,CAwBlB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, TextSummaryTaskInput, TextSummaryTaskOutput } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * Streaming run-fn for `["text.summary"]`. Emits `text-delta` events on
10
+ * the `text` port and a final empty `finish` event.
11
+ */
12
+ export declare const OpenAI_TextSummary_Stream: AiProviderRunFn<TextSummaryTaskInput, TextSummaryTaskOutput, OpenAiModelConfig>;
13
+ //# sourceMappingURL=OpenAI_TextSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEjG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,CAwBlB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, ToolCallingTaskInput, ToolCallingTaskOutput } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * Streaming run-fn for `["text.generation", "tool-use"]`. Calls the OpenAI
10
+ * chat-completions endpoint with `stream: true` and forwards delta events via
11
+ * {@link accumulateOpenAIStream}, which emits `text-delta` and tool-call
12
+ * `object-delta` events plus a final empty `finish`.
13
+ *
14
+ * Defence-in-depth: each tool-call `object-delta` is filtered against
15
+ * `input.tools` so a hallucinated function name never reaches the consumer.
16
+ */
17
+ export declare const OpenAI_ToolCalling_Stream: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, OpenAiModelConfig>;
18
+ //# sourceMappingURL=OpenAI_ToolCalling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,CAiClB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export { OPENAI_ALLOWED_HOSTS } from "./common/OpenAI_Client";
7
+ export * from "./common/OpenAI_Constants";
8
+ export * from "./common/OpenAI_ModelSchema";
9
+ export * from "./registerOpenAi";
10
+ //# sourceMappingURL=index.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../../src/ai/index.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export { OPENAI_ALLOWED_HOSTS } from "./common/OpenAI_Client";
7
+ export * from "./common/OpenAI_Constants";
8
+ export * from "./common/OpenAI_ImageValidation";
9
+ export * from "./common/OpenAI_ModelSchema";
10
+ export * from "./common/OpenAI_ModelSearch";
11
+ export * from "./registerOpenAi";
12
+ import { OpenAiQueuedProvider } from "./OpenAiQueuedProvider";
13
+ /**
14
+ * @internal Symbols exported only for use by `@workglow/test`. Not part of the stable public API.
15
+ */
16
+ export declare const _testOnly: {
17
+ readonly OpenAiQueuedProvider: typeof OpenAiQueuedProvider;
18
+ readonly OPENAI_RUN_FN_SPECS: {
19
+ serves: ["image.editing"] | ["image.generation"] | ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.embedding"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
20
+ }[];
21
+ readonly OPENAI_RUN_FNS: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
22
+ capabilities?: string[] | undefined;
23
+ description?: string | undefined;
24
+ metadata?: {
25
+ [x: string]: unknown;
26
+ } | undefined;
27
+ model_id?: string | undefined;
28
+ provider: "OPENAI";
29
+ provider_config: {
30
+ base_url?: string | undefined;
31
+ credential_key?: string | undefined;
32
+ model_name: string;
33
+ organization?: string | undefined;
34
+ trustedBaseUrl?: boolean | undefined;
35
+ };
36
+ title?: string | undefined;
37
+ }>[];
38
+ };
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AAIjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAIZ,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRegisterOptions } from "@workglow/ai";
7
+ export declare function registerOpenAi(options: AiProviderRegisterOptions & {
8
+ worker: Worker | (() => Worker);
9
+ }): Promise<void>;
10
+ //# sourceMappingURL=registerOpenAi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOpenAi.d.ts","sourceRoot":"","sources":["../../src/ai/registerOpenAi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAK9D,wBAAsB,cAAc,CAClC,OAAO,EAAE,yBAAyB,GAAG;IACnC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;CACjC,GACA,OAAO,CAAC,IAAI,CAAC,CAGf"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRegisterOptions } from "@workglow/ai";
7
+ export declare function registerOpenAiInline(options?: AiProviderRegisterOptions): Promise<void>;
8
+ //# sourceMappingURL=registerOpenAiInline.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOpenAiInline.browser.d.ts","sourceRoot":"","sources":["../../src/ai/registerOpenAiInline.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAK9D,wBAAsB,oBAAoB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7F"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRegisterOptions } from "@workglow/ai";
7
+ export declare function registerOpenAiInline(options?: AiProviderRegisterOptions): Promise<void>;
8
+ //# sourceMappingURL=registerOpenAiInline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOpenAiInline.d.ts","sourceRoot":"","sources":["../../src/ai/registerOpenAiInline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAM9D,wBAAsB,oBAAoB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAO7F"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare function registerOpenAiWorker(): Promise<void>;
7
+ //# sourceMappingURL=registerOpenAiWorker.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOpenAiWorker.browser.d.ts","sourceRoot":"","sources":["../../src/ai/registerOpenAiWorker.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAK1D"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare function registerOpenAiWorker(): Promise<void>;
7
+ //# sourceMappingURL=registerOpenAiWorker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOpenAiWorker.d.ts","sourceRoot":"","sources":["../../src/ai/registerOpenAiWorker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAK1D"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * Browser build for OpenAI runtime registration (uses `js-tiktoken` instead of WASM `tiktoken`).
8
+ * Import from `@workglow/openai/ai-runtime` — not from the main `openai` barrel.
9
+ *
10
+ * Use `export *` (not `export { … } from "…"`) so the Bun bundler keeps the module graph.
11
+ */
12
+ export * from "./common/OpenAI_Client";
13
+ export * from "./registerOpenAiInline.browser";
14
+ export * from "./registerOpenAiWorker.browser";
15
+ //# sourceMappingURL=runtime.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.browser.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAGH,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * Worker server and main-thread inline OpenAI registration (pulls in `OpenAI_JobRunFns`),
8
+ * plus SDK client helpers (`OpenAI_Client`).
9
+ * Import from `@workglow/openai/ai-runtime` — not from the main `openai` barrel.
10
+ *
11
+ * Use `export *` (not `export { … } from "…"`) so the Bun bundler keeps the module graph.
12
+ */
13
+ export * from "./common/OpenAI_Client";
14
+ export * from "./registerOpenAiInline";
15
+ export * from "./registerOpenAiWorker";
16
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAGH,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from "./ai/runtime.browser";
7
+ //# sourceMappingURL=ai-runtime.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-runtime.browser.d.ts","sourceRoot":"","sources":["../src/ai-runtime.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,cAAc,sBAAsB,CAAC"}