@codelia/runtime 0.1.84 → 0.1.85

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/sdk.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  startRuntime
3
- } from "./chunk-EKMA637C.js";
4
- import "./chunk-JR6IMNTT.js";
3
+ } from "./chunk-IWSVQ465.js";
4
+ import "./chunk-V5WO2QTA.js";
5
5
  export {
6
6
  startRuntime
7
7
  };
@@ -1146,13 +1146,6 @@ var resolveFastMode = (params) => {
1146
1146
  }
1147
1147
  return { enabled: false };
1148
1148
  };
1149
- var assertUltrafastAuth = (fast, method) => {
1150
- if (fast === "ultrafast" && method !== "api_key") {
1151
- throw new Error(
1152
- "Ultrafast requires OpenAI API-key authentication. Codex OAuth support is unverified; credentials will not be switched automatically."
1153
- );
1154
- }
1155
- };
1156
1149
 
1157
1150
  // src/model-reasoning.ts
1158
1151
  var import_core4 = require("@codelia/core");
@@ -1790,14 +1783,12 @@ var createRuntimeModel = async ({
1790
1783
  log: log2,
1791
1784
  getOpenAiAccessToken
1792
1785
  }) => {
1793
- if (config.fast === "ultrafast") {
1794
- resolveFastMode({
1795
- provider,
1796
- model: config.name ?? import_core6.OPENAI_DEFAULT_MODEL,
1797
- requested: config.fast
1798
- });
1799
- assertUltrafastAuth(config.fast, auth.method);
1800
- }
1786
+ const requestedFastMode = config.fast;
1787
+ const ultrafastMode = requestedFastMode === "ultrafast" ? resolveFastMode({
1788
+ provider,
1789
+ model: config.name ?? import_core6.OPENAI_DEFAULT_MODEL,
1790
+ requested: requestedFastMode
1791
+ }) : void 0;
1801
1792
  const endpoint = getResponsesProvider(config, provider);
1802
1793
  if (endpoint) {
1803
1794
  const modelName = config.name ?? Object.keys(endpoint.models)[0];
@@ -1820,7 +1811,6 @@ var createRuntimeModel = async ({
1820
1811
  };
1821
1812
  }
1822
1813
  const requestedReasoning = resolveReasoningEffort(config.reasoning) ?? "medium";
1823
- const requestedFastMode = config.fast;
1824
1814
  switch (provider) {
1825
1815
  case "deepseek": {
1826
1816
  const llm = new import_core6.ChatDeepSeek({
@@ -1840,8 +1830,6 @@ var createRuntimeModel = async ({
1840
1830
  if (!model)
1841
1831
  throw new Error(`Unsupported Google model: ${requestedModelName}`);
1842
1832
  const modelName = model.id;
1843
- if (config.fast === "ultrafast")
1844
- throw new Error("Google models do not support Fast mode");
1845
1833
  const effort = resolveReasoningEffort(config.reasoning);
1846
1834
  const reasoning = effort ? resolveGoogleReasoning({ model: modelName, requested: effort }) : void 0;
1847
1835
  if (reasoning?.fallbackApplied)
@@ -1866,7 +1854,7 @@ var createRuntimeModel = async ({
1866
1854
  });
1867
1855
  const textVerbosity = resolveTextVerbosity(config.verbosity);
1868
1856
  const websocketMode = config.experimental?.openai?.websocket_mode;
1869
- const fastMode = resolveFastMode({
1857
+ const fastMode = ultrafastMode ?? resolveFastMode({
1870
1858
  provider: "openai",
1871
1859
  model: modelName,
1872
1860
  requested: requestedFastMode
@@ -2464,7 +2452,7 @@ var subagentModelSchema = import_zod.z.object({
2464
2452
  reasoning: import_zod.z.string().optional(),
2465
2453
  verbosity: import_zod.z.string().optional(),
2466
2454
  fast: import_zod.z.union([import_zod.z.boolean(), import_zod.z.literal("ultrafast")]).optional().describe(
2467
- 'Optional speed selection. true uses supported fast mode; "ultrafast" requires OpenAI API-key GPT-6 Astra/6.1 Sol and higher API pricing. No auth or tier fallback.'
2455
+ 'Optional speed selection. true uses supported fast mode. "ultrafast" requires OpenAI GPT-6.2 Astra/Sol, GPT-6 Astra, or GPT-6.1 Sol and an eligible account. Uses the existing OpenAI auth route.'
2468
2456
  ),
2469
2457
  experimental: import_zod.z.object({
2470
2458
  openai: import_zod.z.object({
@@ -17,7 +17,7 @@ import {
17
17
  redactSubagentJson,
18
18
  redactSubagentText,
19
19
  subagentBootstrapSchema
20
- } from "../chunk-JR6IMNTT.js";
20
+ } from "../chunk-V5WO2QTA.js";
21
21
 
22
22
  // src/subagents/child-entry.ts
23
23
  import { createReadStream } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/runtime",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,14 +29,14 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@codelia/config": "0.1.84",
33
- "@codelia/config-loader": "0.1.84",
34
- "@codelia/core": "0.1.84",
35
- "@codelia/logger": "0.1.84",
36
- "@codelia/model-metadata": "0.1.84",
37
- "@codelia/protocol": "0.1.84",
38
- "@codelia/shared-types": "0.1.84",
39
- "@codelia/storage": "0.1.84",
32
+ "@codelia/config": "0.1.85",
33
+ "@codelia/config-loader": "0.1.85",
34
+ "@codelia/core": "0.1.85",
35
+ "@codelia/logger": "0.1.85",
36
+ "@codelia/model-metadata": "0.1.85",
37
+ "@codelia/protocol": "0.1.85",
38
+ "@codelia/shared-types": "0.1.85",
39
+ "@codelia/storage": "0.1.85",
40
40
  "@google/genai": "2.32.0",
41
41
  "eventsource-parser": "^3.0.6",
42
42
  "image-size": "^2.0.2",