@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/{chunk-EKMA637C.js → chunk-IWSVQ465.js} +1149 -471
- package/dist/{chunk-JR6IMNTT.js → chunk-V5WO2QTA.js} +8 -21
- package/dist/index.cjs +1241 -578
- package/dist/index.js +2 -2
- package/dist/sdk.cjs +1243 -580
- package/dist/sdk.js +2 -2
- package/dist/subagents/child-entry.cjs +8 -20
- package/dist/subagents/child-entry.js +1 -1
- package/package.json +9 -9
package/dist/sdk.js
CHANGED
|
@@ -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
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
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
|
|
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({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codelia/runtime",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
33
|
-
"@codelia/config-loader": "0.1.
|
|
34
|
-
"@codelia/core": "0.1.
|
|
35
|
-
"@codelia/logger": "0.1.
|
|
36
|
-
"@codelia/model-metadata": "0.1.
|
|
37
|
-
"@codelia/protocol": "0.1.
|
|
38
|
-
"@codelia/shared-types": "0.1.
|
|
39
|
-
"@codelia/storage": "0.1.
|
|
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",
|