Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/monorepo",
"version": "0.12.5",
"version": "0.12.6",
"private": true,
"type": "module",
"packageManager": "pnpm@10.23.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-cli/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-cli",
"version": "0.12.5",
"version": "0.12.6",
"description": "Product-neutral command line for a Steerable host. Products supply the bin name and brand.",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-client/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-client",
"version": "0.12.5",
"version": "0.12.6",
"description": "In-process client for a Steerable host: HTTP-shaped requests, turn streams, and approval replies.",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-harness/py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "steerable-agent-harness"
version = "0.12.5"
version = "0.12.6"
description = "Steerable harness helpers for Python"
license = { text = "Apache-2.0" }
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-harness/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-harness",
"version": "0.12.5",
"version": "0.12.6",
"description": "Steerable framework Tier 2 \u2014 TypeScript facade over the Python harness (policy, budget, retry, completion, tracing) used for cross-language conformance tests. Production code should depend on the Python harness.",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-protocol/py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "steerable-agent-protocol"
version = "0.12.5"
version = "0.12.6"
description = "Steerable protocol schemas for Python"
license = { text = "Apache-2.0" }
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-protocol/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-protocol",
"version": "0.12.5",
"version": "0.12.6",
"description": "Steerable framework Tier 1 \u2014 wire-format types (SSEEvent, ChatMessage, ToolCall, ToolResult, AgentSession, HarnessTrace, sidecar JSON-RPC) shared by every Steerable client and server.",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-runtime/py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "steerable-agent-runtime"
version = "0.12.5"
version = "0.12.6"
description = "Steerable agent runtime: LLM, tool, storage, and transport adapters."
license = { text = "Apache-2.0" }
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-runtime/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-runtime",
"version": "0.12.5",
"version": "0.12.6",
"description": "Steerable framework \u2014 official TypeScript production runtime. Owns the embedded Python sidecar lifecycle (spawn / ready handshake / health / bounded auto-restart / graceful drain) and exposes the CoreLoop-level API over the sidecar JSON-RPC surface. There is no TS CoreLoop; this package drives the same Rust CoreLoop the server uses (via the Python sidecar facade), so cross-language conformance holds by construction.",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-shell/tauri/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-shell-tauri",
"version": "0.12.5",
"version": "0.12.6",
"description": "Reusable Tauri Rust host source for @steerable/agent-shell",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-shell/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-shell",
"version": "0.12.5",
"version": "0.12.6",
"description": "Steerable framework \u2014 product-neutral Node HostRuntime and headless HTTP server shared by Tauri desktop and browser deployments; scenario packs extend it through @steerable/pack-sdk.",
"license": "Apache-2.0",
"homepage": "https://steerableframework.com/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ tags: [tool, guide]

✅ 正确做法:基于工具返回的数据,**用自然语言**给出对用户有用的结论。例如 "本周完成了 5 个任务" / "卡片 GR 对比相关性 0.92"。

## 联网检索边界

查询公开资料、政策流程或常见问答时:

- **先用 `web_search` 与可读 `web_fetch`**:当多个可靠搜索结果摘要已经能互相印证关键步骤、费用与注意事项时,直接综合并附上来源链接作答,不要再开浏览器二次逛官网。
- **遇到 403 / 404 / 空正文(JS SPA)时按需取舍**:先尝试改换 `web_search` 关键词或抓取搜索结果里的其他公开可读页面;只有在搜索结论互相矛盾或缺少权威一手细节时,才用 `browser_navigate` + `browser_read` 有限核对目标页,避免反复点击或截图逛站。
- **交互任务优先 `browser_*`**:需要点击、填表、登录或用户明确要求在浏览器打开页面时,使用浏览器工具。

## 错误处理

- 工具调用失败时,向用户说明真实原因(引用 `error` / `message` / `hint` 字段原文)并建议替代方案
Expand Down
9 changes: 8 additions & 1 deletion packages/agent-shell/ts/src/sidecar/egress-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,11 @@ export function deriveWebEgressHosts(options: {
const domain = entry.trim().toLowerCase().replace(/^\.+/, '');
if (domain) hosts.push(domain);
}
if (searchEnv.STEERABLE_WEB_SEARCH_API_KEY || searchEnv.STEERABLE_WEB_SEARCH_PROVIDER === 'ddg') {
if (
searchEnv.STEERABLE_WEB_SEARCH_API_KEY
|| searchEnv.STEERABLE_WEB_SEARCH_PROVIDER === 'ddg'
|| env.STEERABLE_WEB_SEARCH_PROVIDER === 'ddg'
) {
// 与 WebToolsConfig.resolve 的 search_base_url 推导保持一致:显式
// STEERABLE_WEB_SEARCH_BASE_URL 优先,否则按 provider 取默认端点。
// ddg 无钥也在 sidecar 进程内执行,必须放行 html.duckduckgo.com。
Expand All @@ -449,6 +453,9 @@ export function deriveWebEgressHosts(options: {
} catch {
/* 畸形 base url:sidecar 侧 resolve 同样失败,web_search 不会注册 */
}
if (provider === 'ddg' && !explicit) {
hosts.push('www.bing.com', 'cn.bing.com');
}
}
// 框架代理对畸形 --allow 条目 fail loud(拒启 → 整体回退端口级)。在
// 这里过滤保住 LLM 通路的按主机管控;被丢的条目本就无法匹配真实主机,
Expand Down
12 changes: 10 additions & 2 deletions packages/agent-shell/ts/tests/sidecar/egress-proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,22 @@ describe('deriveWebEgressHosts (3.1b/3.1d)', () => {
env: { STEERABLE_WEB_SEARCH_BASE_URL: 'https://search.internal:8443' },
}),
).toEqual(['search.internal:8443']);
// ddg is in-process without a key — the lite HTML origin still needs CONNECT.
// ddg is in-process without a key — the lite HTML origin still needs CONNECT,
// plus Bing RSS fallback hosts when DDG triggers a bot check.
expect(
deriveWebEgressHosts({
webTools: true,
searchEnv: { STEERABLE_WEB_SEARCH_PROVIDER: 'ddg' },
env: {},
}),
).toEqual(['html.duckduckgo.com']);
).toEqual(['html.duckduckgo.com', 'www.bing.com', 'cn.bing.com']);
expect(
deriveWebEgressHosts({
webTools: true,
searchEnv: {},
env: { STEERABLE_WEB_SEARCH_PROVIDER: 'ddg' },
}),
).toEqual(['html.duckduckgo.com', 'www.bing.com', 'cn.bing.com']);
});

it('drops malformed entries so the proxy (fail-loud on bad --allow) still starts', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-shell/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steerable/agent-shell-web",
"version": "0.12.5",
"version": "0.12.6",
"type": "module",
"description": "Steerable framework \u2014 product-neutral renderer SPA source for @steerable/agent-shell (React + Vite). Consumed by product web entry points via the `@/` alias (anchored at this package's src/) and the createProductViteConfig factory. Published as a source package (src/), plus the compiled vite.base config factory (vite.base.js + .d.ts) for Node-side config loading.",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,28 @@ describe('TurnProcessGroup', () => {
expect(screen.getAllByTestId('tools-flow')).toHaveLength(2);
});

it('hides thinking body when the setting is 隐藏, even after expanding work', () => {
it('hides thinking body and merges adjacent tools when the setting is 隐藏, even after expanding work', () => {
renderGroup({ isStreaming: false, thinkingDisplay: 'hidden' });
expect(processToggle().textContent).toBe('2 tool calls');
fireEvent.click(processToggle());
expect(screen.queryByTestId('turn-thinking')).toBeNull();
expect(screen.queryByTestId('thinking-peek')).toBeNull();
expect(screen.queryByText('先读配置')).toBeNull();
expect(screen.getAllByTestId('tools-flow')).toHaveLength(2);
expect(screen.getAllByTestId('tools-flow')).toHaveLength(1);
expect(screen.getByTestId('tools-flow').textContent).toBe('csv_get_config,web_fetch');
});

it('omits the work disclosure after finish when thinking is hidden and no tools or narration exist', () => {
renderGroup({
isStreaming: false,
thinkingDisplay: 'hidden',
blocks: [
{ type: 'reasoning', content: '先想一下' },
{ type: 'text', content: '直接回答。' },
],
});
expect(screen.queryByTestId('turn-process-toggle')).toBeNull();
expect(screen.getByTestId('answer').textContent).toBe('直接回答。');
});

it('folds a tools-only turn when the setting is off', () => {
Expand Down
Loading
Loading