@0perator/operator 0.1.23 → 0.1.24
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/cli.js +1 -1
- package/dist/tools/registry.js +4 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
|
16
16
|
import { join } from "node:path";
|
|
17
17
|
import { homedir } from "node:os";
|
|
18
18
|
import { createHash } from "node:crypto";
|
|
19
|
-
const VERSION = "0.1.
|
|
19
|
+
const VERSION = "0.1.24";
|
|
20
20
|
// operator/settings.json (override path via KODE_TSI_SETTINGS), env vars still win — see config/settings.ts.
|
|
21
21
|
const settings = loadSettings();
|
|
22
22
|
// Propagate the resolved sandbox mode to the tool layer (registry reads KODE_SANDBOX at exec time).
|
package/dist/tools/registry.js
CHANGED
|
@@ -258,7 +258,9 @@ async function webSearch(args) {
|
|
|
258
258
|
if (!q)
|
|
259
259
|
return "error: web_search needs a query";
|
|
260
260
|
const n = Math.min(Math.max(Number(args.count ?? 8), 1), 20);
|
|
261
|
-
|
|
261
|
+
// Default to bing: on the live AXE autopilot SERP, google currently returns 0
|
|
262
|
+
// results while bing/ddg work — so google was silently yielding "(no results)".
|
|
263
|
+
const engine = str(args.engine) || "bing";
|
|
262
264
|
const ctrl = new AbortController();
|
|
263
265
|
const timer = setTimeout(() => ctrl.abort(), Number(args.timeout_ms ?? 25_000));
|
|
264
266
|
try {
|
|
@@ -551,7 +553,7 @@ const TOOLS = [
|
|
|
551
553
|
parameters: { type: "object", properties: {
|
|
552
554
|
query: { type: "string", description: "the search query" },
|
|
553
555
|
count: { type: "number", description: "max results (1-20, default 8)" },
|
|
554
|
-
engine: { type: "string", enum: ["google", "bing", "ddg"], description: "search engine for the autopilot backend (default google)" },
|
|
556
|
+
engine: { type: "string", enum: ["google", "bing", "ddg"], description: "search engine for the autopilot backend (default bing; google currently returns nothing on the SERP backend)" },
|
|
555
557
|
timeout_ms: { type: "number" },
|
|
556
558
|
}, required: ["query"] },
|
|
557
559
|
run: webSearch,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0perator/operator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Operator (KODE) — TypeScript + Ink terminal coding agent. Full-frame render, single-engine core shared across CLI/web/mobile; runs against a local Aurora model.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|