vome-core 0.1.19 → 0.1.21

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/ai/index.js CHANGED
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
@@ -28723,39 +28725,39 @@ function buildAiCallLogResult(payload) {
28723
28725
  return out;
28724
28726
  }
28725
28727
  export {
28726
- toUpstreamJson,
28727
- stripAiDefaultMeta,
28728
- sseResponse,
28729
- resolvePollUrl,
28730
- resolvePath,
28731
- resolveAiTimeoutMs,
28732
- resolveAiCapability,
28733
- requirePath,
28734
- requireAsyncSpec,
28735
- readUpstreamError,
28736
- postUpstreamMultipart,
28737
- postUpstreamJson,
28738
- postUpstream,
28739
- pickUpstreamTaskId,
28740
- normalizeSyncData,
28741
- normalizeAiContentType,
28742
- mergeInput,
28743
- mergeAbortSignal,
28744
- mapUpstreamTaskStatus,
28745
- listAiProtocols,
28746
- joinUrl,
28747
- isAiCapability,
28748
- inferAiMode,
28749
- httpMethod,
28750
- getJsonPath,
28751
- getAiAdapter,
28752
- defaultResponseSpec,
28753
- buildSyncResult,
28754
- buildBinarySyncData,
28755
- buildAiCallLogResult,
28756
- buildAiCallLogRequest,
28757
- appendFormFields,
28758
- INTERNAL_BODY_KEYS,
28728
+ AI_TIMEOUT_DEFAULT_MS,
28759
28729
  AI_TIMEOUT_SYNC_MS,
28760
- AI_TIMEOUT_DEFAULT_MS
28730
+ INTERNAL_BODY_KEYS,
28731
+ appendFormFields,
28732
+ buildAiCallLogRequest,
28733
+ buildAiCallLogResult,
28734
+ buildBinarySyncData,
28735
+ buildSyncResult,
28736
+ defaultResponseSpec,
28737
+ getAiAdapter,
28738
+ getJsonPath,
28739
+ httpMethod,
28740
+ inferAiMode,
28741
+ isAiCapability,
28742
+ joinUrl,
28743
+ listAiProtocols,
28744
+ mapUpstreamTaskStatus,
28745
+ mergeAbortSignal,
28746
+ mergeInput,
28747
+ normalizeAiContentType,
28748
+ normalizeSyncData,
28749
+ pickUpstreamTaskId,
28750
+ postUpstream,
28751
+ postUpstreamJson,
28752
+ postUpstreamMultipart,
28753
+ readUpstreamError,
28754
+ requireAsyncSpec,
28755
+ requirePath,
28756
+ resolveAiCapability,
28757
+ resolveAiTimeoutMs,
28758
+ resolvePath,
28759
+ resolvePollUrl,
28760
+ sseResponse,
28761
+ stripAiDefaultMeta,
28762
+ toUpstreamJson
28761
28763
  };
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
@@ -109,8 +111,8 @@ function merge(base, override) {
109
111
  return result;
110
112
  }
111
113
  export {
112
- provideHostConfig,
113
- merge,
114
+ getEnv,
114
115
  hasHostConfig,
115
- getEnv
116
+ merge,
117
+ provideHostConfig
116
118
  };