buckyos 0.7.186 → 0.7.187
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/cli/dist/cli.mjs +2 -2
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/aiws.ts +1 -1
- package/cli/version.ts +1 -1
- package/dist/{site_manager-11a7a468.mjs → site_manager-8adb478e.mjs} +12 -2
- package/dist/site_manager-8adb478e.mjs.map +1 -0
- package/dist/site_manager-c832463b.js +2 -0
- package/dist/site_manager-c832463b.js.map +1 -0
- package/dist/xllm/core/config.d.ts +1 -0
- package/dist/xllm/core/config.d.ts.map +1 -1
- package/dist/xllm/core/prepare.d.ts.map +1 -1
- package/dist/xllm/core/run.d.ts.map +1 -1
- package/dist/xllm/core/types.d.ts +3 -0
- package/dist/xllm/core/types.d.ts.map +1 -1
- package/dist/xllm.cjs +1 -1
- package/dist/xllm.mjs +2 -2
- package/dist/xllm_deno.cjs +1 -1
- package/dist/xllm_deno.mjs +1 -1
- package/package.json +1 -1
- package/dist/site_manager-11a7a468.mjs.map +0 -1
- package/dist/site_manager-334b1a51.js +0 -2
- package/dist/site_manager-334b1a51.js.map +0 -1
package/cli/modules/aiws.ts
CHANGED
|
@@ -675,7 +675,7 @@ const setPropCommand: CommandDefinition = {
|
|
|
675
675
|
|
|
676
676
|
const infoCommand: CommandDefinition = {
|
|
677
677
|
verb: 'info',
|
|
678
|
-
summary: 'Workspace info: versions, capabilities of the caller, usage,
|
|
678
|
+
summary: 'Workspace info: versions, capabilities of the caller, usage, where wish runs execute by default',
|
|
679
679
|
options: [WORKSPACE_OPTION],
|
|
680
680
|
inputSchema: workspaceInput({}),
|
|
681
681
|
outputSchema: OBJECT_OUTPUT,
|
package/cli/version.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by scripts/generate-cli-version.mjs. Do not edit.
|
|
2
|
-
export const PACKAGE_VERSION = '0.7.
|
|
2
|
+
export const PACKAGE_VERSION = '0.7.187'
|
|
3
3
|
export const TOOL_VERSION = PACKAGE_VERSION
|
|
4
4
|
export const SDK_VERSION = PACKAGE_VERSION
|
|
5
5
|
export const PROTOCOL_VERSION = '1'
|
|
@@ -2645,6 +2645,7 @@ function parseLlmContextJson(file, value) {
|
|
|
2645
2645
|
"llm_timeout",
|
|
2646
2646
|
"context_window",
|
|
2647
2647
|
"context_yield_ratio",
|
|
2648
|
+
"max_consecutive_errors",
|
|
2648
2649
|
"timeout",
|
|
2649
2650
|
"runs_dir",
|
|
2650
2651
|
"loop_model",
|
|
@@ -2678,6 +2679,10 @@ function parseLlmContextJson(file, value) {
|
|
|
2678
2679
|
if (ratio !== void 0 && !(ratio > 0 && ratio <= 1))
|
|
2679
2680
|
throw ctx.err("context_yield_ratio", "must be in (0, 1]");
|
|
2680
2681
|
assign("context_yield_ratio", ratio);
|
|
2682
|
+
const consecutive = ctx.u32("", m, "max_consecutive_errors");
|
|
2683
|
+
if (consecutive === 0)
|
|
2684
|
+
throw ctx.err("max_consecutive_errors", "must be at least 1");
|
|
2685
|
+
assign("max_consecutive_errors", consecutive);
|
|
2681
2686
|
assign("timeout", ctx.u64("", m, "timeout"));
|
|
2682
2687
|
if ("runs_dir" in m) {
|
|
2683
2688
|
const rd = m.runs_dir;
|
|
@@ -2853,6 +2858,7 @@ function mergeConfigLayers(layers) {
|
|
|
2853
2858
|
"llm_timeout",
|
|
2854
2859
|
"context_window",
|
|
2855
2860
|
"context_yield_ratio",
|
|
2861
|
+
"max_consecutive_errors",
|
|
2856
2862
|
"timeout",
|
|
2857
2863
|
"runs_dir",
|
|
2858
2864
|
"loop_model",
|
|
@@ -3899,6 +3905,8 @@ async function prepareTask(llmContext, origin, input, overrides, deps) {
|
|
|
3899
3905
|
limits.context_window_tokens = merged.context_window;
|
|
3900
3906
|
if (merged.context_yield_ratio !== void 0)
|
|
3901
3907
|
limits.context_yield_ratio = merged.context_yield_ratio;
|
|
3908
|
+
if (merged.max_consecutive_errors !== void 0)
|
|
3909
|
+
limits.max_consecutive_errors = merged.max_consecutive_errors;
|
|
3902
3910
|
if (jsonOut && loopModel === "behavior" && resultFormat.kind === "raw") {
|
|
3903
3911
|
throw XllmError.capability("--json cannot be satisfied with `loop_model: behavior` and `result_format: raw` (the raw behavior response is XML); use e.g. `result_format: result.report`");
|
|
3904
3912
|
}
|
|
@@ -5055,6 +5063,8 @@ function limitsOf(merged) {
|
|
|
5055
5063
|
l.context_window_tokens = merged.context_window;
|
|
5056
5064
|
if (merged.context_yield_ratio !== void 0)
|
|
5057
5065
|
l.context_yield_ratio = merged.context_yield_ratio;
|
|
5066
|
+
if (merged.max_consecutive_errors !== void 0)
|
|
5067
|
+
l.max_consecutive_errors = merged.max_consecutive_errors;
|
|
5058
5068
|
return l;
|
|
5059
5069
|
}
|
|
5060
5070
|
function runToolPolicy(cfg) {
|
|
@@ -5095,7 +5105,7 @@ function runRequest(cfg, owner, trace, objective, behaviorName, input, hosted) {
|
|
|
5095
5105
|
context_yield_threshold: contextYieldThreshold(cfg.limits),
|
|
5096
5106
|
context_window_tokens: cfg.limits.context_window_tokens ?? null
|
|
5097
5107
|
},
|
|
5098
|
-
error_policy: { max_consecutive_errors: DEFAULT_MAX_CONSECUTIVE_ERRORS },
|
|
5108
|
+
error_policy: { max_consecutive_errors: cfg.limits.max_consecutive_errors ?? DEFAULT_MAX_CONSECUTIVE_ERRORS },
|
|
5099
5109
|
forbid_next_behavior: false
|
|
5100
5110
|
};
|
|
5101
5111
|
if (cfg.loop_model === "behavior")
|
|
@@ -6407,4 +6417,4 @@ export {
|
|
|
6407
6417
|
assemblePrompt as y,
|
|
6408
6418
|
RUNTIME_PROTOCOL_VERSION as z
|
|
6409
6419
|
};
|
|
6410
|
-
//# sourceMappingURL=site_manager-
|
|
6420
|
+
//# sourceMappingURL=site_manager-8adb478e.mjs.map
|