@steerable/agent-shell 0.6.22 → 0.6.25
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/brand.d.ts +6 -1
- package/dist/brand.js +2 -1
- package/dist/main.js +8 -1
- package/package.json +4 -4
package/dist/brand.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ScenarioId } from './scenario/pack.js';
|
|
2
|
-
/** 开放字符串(0.3g):'generic'
|
|
2
|
+
/** 开放字符串(0.3g):'generic'(无品牌兜底)| 各产品 flavor。 */
|
|
3
3
|
export type AppFlavor = ScenarioId;
|
|
4
4
|
/** shell 默认智能体;场景产品里仍可选,但不一定作为首页默认。 */
|
|
5
5
|
export declare const LOCAL_ASSISTANT_AGENT_ID = "local-assistant";
|
|
@@ -9,6 +9,11 @@ export interface Brand {
|
|
|
9
9
|
flavor: AppFlavor;
|
|
10
10
|
/** UI 显示名:窗口标题、通知标题等 */
|
|
11
11
|
displayName: string;
|
|
12
|
+
/**
|
|
13
|
+
* 侧栏等品牌锁头里 logo 旁的标题。省略则只显示 logo,
|
|
14
|
+
* 并按 logo 原尺寸等比例缩放(一体字标不要再叠标题、不要压成方图)。
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
12
17
|
/** LLM 身份自称(系统提示词里用) */
|
|
13
18
|
agentName: string;
|
|
14
19
|
/** 一句话定位(fallback prompt 用) */
|
package/dist/brand.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 品牌/ flavor 单一真源(主进程与 Node 侧共用)。
|
|
3
3
|
*
|
|
4
4
|
* flavor 是开放字符串(ScenarioId,0.3g 起不再是二值联合):`generic`
|
|
5
|
-
*
|
|
5
|
+
* 是无品牌 shell 兜底,产品 flavor 由应用层注入。合法 flavor 集合
|
|
6
6
|
* = 应用层 products/manifest.json 的 flavors 键(best-effort 校验,
|
|
7
7
|
* 读不到清单时不强制)。
|
|
8
8
|
*
|
|
@@ -32,6 +32,7 @@ export const ALL_ROUND_ASSISTANT_AGENT_ID = 'all-round-assistant';
|
|
|
32
32
|
*/
|
|
33
33
|
const SHELL_BRAND = {
|
|
34
34
|
displayName: 'Steerable Shell',
|
|
35
|
+
title: 'Steerable Shell',
|
|
35
36
|
agentName: 'Agent',
|
|
36
37
|
tagline: '一款本地桌面 AI 伙伴',
|
|
37
38
|
defaultAgentId: LOCAL_ASSISTANT_AGENT_ID,
|
package/dist/main.js
CHANGED
|
@@ -51,7 +51,14 @@ const START_PATH = process.env.DEEPPATH_START_PATH || '/agent';
|
|
|
51
51
|
// Linux 必须显式给 BrowserWindow 一个 icon(不会自动从 .deb/.AppImage 继承);
|
|
52
52
|
// Windows 一般用 .exe 自带的 ICO,但 dev 模式下传 PNG 能让任务栏立刻看到 logo;
|
|
53
53
|
// macOS 用 .icns(package.json 里 electron-builder 配置已指向 icon-mac.png)。
|
|
54
|
-
|
|
54
|
+
function resolveAppIconPath() {
|
|
55
|
+
const assetsDir = path.join(app.getAppPath(), 'assets');
|
|
56
|
+
const flavorIcon = path.join(assetsDir, `icon-${getBrand().flavor}.png`);
|
|
57
|
+
if (existsSync(flavorIcon))
|
|
58
|
+
return flavorIcon;
|
|
59
|
+
return path.join(assetsDir, 'icon.png');
|
|
60
|
+
}
|
|
61
|
+
const APP_ICON_PATH = resolveAppIconPath();
|
|
55
62
|
let mainWindow = null;
|
|
56
63
|
let isQuitting = false;
|
|
57
64
|
let retryTimer = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steerable/agent-shell",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.25",
|
|
4
4
|
"description": "Steerable framework — product-neutral desktop/headless agent host (Tier 5). Electron main + preload + headless HTTP server (BS) sharing one storage/sidecar/tooling core; scenario packs extend it through the @steerable/pack-sdk contract and are composed at build time by the consuming product.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://steerableframework.com/",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"electron-store": "^8.1.0",
|
|
50
50
|
"he": "^1.2.0",
|
|
51
51
|
"node-pty": "^1.1.0",
|
|
52
|
-
"@steerable/agent-harness": "0.6.
|
|
53
|
-
"@steerable/agent-protocol": "0.6.
|
|
54
|
-
"@steerable/pack-sdk": "0.6.
|
|
52
|
+
"@steerable/agent-harness": "0.6.25",
|
|
53
|
+
"@steerable/agent-protocol": "0.6.25",
|
|
54
|
+
"@steerable/pack-sdk": "0.6.25"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/better-sqlite3": "^7.6.13",
|