@avocadostudio-ai/orchestrator-core 0.18.0 → 0.19.0
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/chat/planner.js +18 -2
- package/package.json +3 -3
package/dist/chat/planner.js
CHANGED
|
@@ -103,10 +103,26 @@ export function isStrictJsonResponseEnabled() {
|
|
|
103
103
|
export function isAdaptiveSchemaContextEnabled() {
|
|
104
104
|
return envFlag("CHAT_ADAPTIVE_SCHEMA_CONTEXT", false);
|
|
105
105
|
}
|
|
106
|
+
/*
|
|
107
|
+
* 10000, raised from 9000.
|
|
108
|
+
*
|
|
109
|
+
* The full contract set for the built-in blocks was sitting at roughly 8500
|
|
110
|
+
* bytes, which left about one schema field of headroom. Adding a `tone` prop
|
|
111
|
+
* to the section blocks took it to 9049 and the payload silently dropped to
|
|
112
|
+
* `targeted` — the fallback is deliberate and the degradation is invisible:
|
|
113
|
+
* nothing errors, the planner just gets less schema than it asked for and
|
|
114
|
+
* full-page translation quietly gets worse. A test caught it; nothing in
|
|
115
|
+
* production would have.
|
|
116
|
+
*
|
|
117
|
+
* The cost of the new figure is about 250 tokens on the requests that use
|
|
118
|
+
* full contracts, which is only full-page translation and explicit batch
|
|
119
|
+
* overrides. The headroom is worth more than the tokens: a budget that a
|
|
120
|
+
* single new field can cross is a budget that will be crossed by accident.
|
|
121
|
+
*/
|
|
106
122
|
function schemaBudgetBytes() {
|
|
107
|
-
const parsed = Number(process.env.CHAT_SCHEMA_BUDGET_BYTES ?? "
|
|
123
|
+
const parsed = Number(process.env.CHAT_SCHEMA_BUDGET_BYTES ?? "10000");
|
|
108
124
|
if (!Number.isFinite(parsed) || parsed <= 0)
|
|
109
|
-
return
|
|
125
|
+
return 10000;
|
|
110
126
|
return Math.max(512, Math.trunc(parsed));
|
|
111
127
|
}
|
|
112
128
|
function bytesForPayload(value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avocadostudio-ai/orchestrator-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"openai": "^4.87.1",
|
|
23
23
|
"sharp": "^0.35.4",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@avocadostudio-ai/migration-sdk": "^0.
|
|
26
|
-
"@avocadostudio-ai/shared": "^0.
|
|
25
|
+
"@avocadostudio-ai/migration-sdk": "^0.19.0",
|
|
26
|
+
"@avocadostudio-ai/shared": "^0.19.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@anthropic-ai/claude-agent-sdk": "^0.3.220",
|