agentworkshop 0.17.3 → 0.17.4
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Bi7O7Fgd.js → BIyCQj6O.js} +10 -10
- package/.output/public/_nuxt/BM-sWDDD.js +1 -0
- package/.output/public/_nuxt/Cu6Hle_d.js +2 -0
- package/.output/public/_nuxt/{B_6jgkkO.js → D4fDMDMY.js} +4 -4
- package/.output/public/_nuxt/{TownView.CASu6sUI.css → TownView.CngAEG0H.css} +1 -1
- package/.output/public/_nuxt/{_wsId_.1Ai43iyE.css → _wsId_.CzdXTLVh.css} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/2547f38c-dfaf-48fa-9b29-334889a73f2c.json +1 -0
- package/.output/public/_nuxt/{entry.CxkSJUk3.css → entry.D9gnKVzx.css} +1 -1
- package/.output/public/_nuxt/town.D-vq2IRd.css +1 -0
- package/.output/server/chunks/_/nitro.mjs +1116 -1116
- package/.output/server/chunks/build/{TownView-BF_qaNTQ.mjs → TownView-BdwjWlnU.mjs} +61 -9
- package/.output/server/chunks/build/TownView-BdwjWlnU.mjs.map +1 -0
- package/.output/server/chunks/build/{_wsId_-DGynuNjs.mjs → _wsId_-CLBiQH5c.mjs} +10 -8
- package/.output/server/chunks/build/{_wsId_-DGynuNjs.mjs.map → _wsId_-CLBiQH5c.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-Cx6Vny3m.mjs → town-Djy_zAJV.mjs} +10 -7
- package/.output/server/chunks/build/{town-Cx6Vny3m.mjs.map → town-Djy_zAJV.mjs.map} +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +6 -2
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +13 -6
- package/README.md +13 -6
- package/app/components/AppBackToMain.vue +86 -0
- package/app/components/workshop/console/Topbar.vue +2 -0
- package/app/components/workshop/town/components/TownTopNav.vue +2 -0
- package/app/pages/town.vue +15 -0
- package/config.yml +1 -1
- package/docs/cli.en.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/desktop.md +1 -1
- package/docs/plugins.en.md +1 -1
- package/docs/plugins.md +1 -1
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/i18n/locales/en.ts +2 -0
- package/i18n/locales/zh-CN.ts +2 -0
- package/package.json +1 -1
- package/.output/public/_nuxt/CkTQQ28a.js +0 -1
- package/.output/public/_nuxt/DhFEApxl.js +0 -2
- package/.output/public/_nuxt/builds/meta/e534f0d1-3bc5-444b-a033-3e437b713fc0.json +0 -1
- package/.output/public/_nuxt/town.BZPLR4A_.css +0 -1
- package/.output/server/chunks/build/TownView-BF_qaNTQ.mjs.map +0 -1
package/README-zh.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/agentworkshop)
|
|
12
12
|
[](https://www.npmjs.com/package/agentworkshop)
|
|
13
|
-
[](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.
|
|
13
|
+
[](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.4)
|
|
14
14
|
[](https://github.com/kingdol666/AgentWorkShop/stargazers)
|
|
15
15
|
[](https://github.com/kingdol666/AgentWorkShop/commits)
|
|
16
16
|
[](https://github.com/kingdol666/AgentWorkShop/issues)
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
**[English](./README.md)** · **[在线文档](https://kingdol666.github.io/AgentWorkShop)** · **[版本发布](https://github.com/kingdol666/AgentWorkShop/releases)** · **[更新日志](./changelog.md)** · **[插件 API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
|
|
30
30
|
|
|
31
|
-
<sub><b>源码 v0.17.
|
|
31
|
+
<sub><b>源码 v0.17.4(2026-11-23 发布)</b> · 一体化桌面壳与应用内更新 · 桌面/Web 共用 <code>~/.AgentWorkShop</code> · 14 个执行引擎 · 6 种现场协议(5 内置 + 串口插件)+ MES REST(镜像与直连双路径)· **项目中心** · **RSI 经验演化** · **受治理产品经验** · **IDD/RAG 插件集成** · **AgentPrefab / Skill / MCP 能力供应链** · 双语文档(简体中文 / English)</sub>
|
|
32
32
|
|
|
33
33
|
<br />
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
|
-
[快速开始](#快速开始) · [当前源码](#当前源码-v0-17-
|
|
39
|
+
[快速开始](#快速开始) · [当前源码](#当前源码-v0-17-4) · [0.17.4 发布说明](#whats-new-in-0174) · [Agent 团队模型](#agent-团队模型) · [核心能力](#核心能力) · [设计架构](#设计架构) · [验证与验收](#验证与验收) · [文档站](https://kingdol666.github.io/AgentWorkShop)
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
@@ -49,12 +49,19 @@
|
|
|
49
49
|
- **交付是一等概念**:**Project 模式**把蓝图变成计划、带依赖的 WBS、L1 技术复核、L2 Owner 验收与真实交付物——交付物不通过,项目不算完成;
|
|
50
50
|
- **作业链按治理阶段实现**:读取 → 分析 → 提案 → 按有效策略审批(如适用)→ 下发 → 回读/审计;每份验收证据应注明实际覆盖范围及使用模拟器还是物理设备。
|
|
51
51
|
|
|
52
|
-
## 当前源码 v0.17.
|
|
52
|
+
## 当前源码 v0.17.4
|
|
53
53
|
|
|
54
|
-
当前源码版本为 **0.17.
|
|
54
|
+
当前源码版本为 **0.17.4**(npm + GitHub Release,2026-11-23)。本版为独立全屏页面补上返回入口:数字孪生(`/town`,town 布局)与裸控制台(`/workshop/w/:id`,console 布局)现在都会渲染本地化的 `AppBackToMain` 控件,链接到带侧栏导航的仪表盘 `/`——此前桌面端进入 `/town` 后没有返回路径。项目详情页保留自己的「返回项目中心」(`/projects`) 与「返回 Agent 工作台」(`/workshop`) 入口(两者都带导航栏)。一体化桌面壳、桌面/Web/CLI 共用 `~/.AgentWorkShop`、基于 GitHub Releases 的应用内更新与 0.17.3 的 WSH 静默安装助手保持不变。同时保留 0.16.x 全部内容——0.15.x 的「AgentPrefab 能力装配」计划(#252–#258)加上 **Leader 自主管理 Worker 的 AgentPrefab 能力**(合并 PR #262/#264/#265):Channel Leader 创建 Worker 时可携带已发布 revision 选择器并原子固定 `(prefabId, revision, slotValues, contentHash)`;名册带 `manageable`/`protected` 标记;可按 revision 切换/解绑绑定;且只能移除自己创建的 Worker。Worker 创建来源持久化(`created_by_kind`/`created_by_id`/`created_via`/`created_reason`);人类绑定 Worker、其他 Leader 的 Worker、Lead、Project Leader 与未关闭 Session 克隆均受删除保护,移除时回收任务、同事务取消待投递并清理实例节点绑定,不动全局模板与不可变 revision。native/REST/MCP/Project 各路径 dispatch 对损坏/哈希不匹配绑定、停用成员、角色/版本不匹配与模板可见性越界一律 fail-closed;Project 任务实例重试复用首次固定的快照并做 CAS/哈希校验。已发布 Prefab profile 按字段应用到受支持 harness(OMP thinking level 走 RPC);唯一 Skill 别名解析为 canonical revision id。数据库契约 **v10** 新增来源列(存量行保守迁移为 `system`/`protected`)。
|
|
55
55
|
|
|
56
56
|
v0.16.0 验证:#262/#264/#265/#263/#266 PR quick-gate 全绿;focused 套件 **38/38**、合并后 **22/22** 与 **13/13**、Project/Prefab/Session 回归集 **235/235**;发布构建实机隔离验收——Leader/Prefab 全链 **30/30 ×2**(创建带 Prefab 的 Worker → SQLite 来源核验 → 名册标记 → 目录收窄 → dispatch 放行/拒绝 → 用户路径 Worker 保护 → lead 自改拒绝 → revision 切换即收窄 → 解绑 → 移除保留模板与 revision → REST 删 lead 409),官方 L10 全新实例 **21/21**,AgentTeam CRUD/部署/派发 **25/25**,前端 SSR 路由 200。Mimosa 深扫有封印(`sha256:a91957e0…`,54 findings,依赖风险 0)——findings 如实呈报,不作安全通过声明。边界:外部 MCP 正向实网联通、Prefab 指导下的真实 OMP 模型作业、浏览器 UI 点击验收为 NOT_RUN。见[全流程验收报告](docs/audit/evidence/2026-11-21-fullflow-round/REPORT.md)与[Prefab/Skills/MCP 实机报告](docs/audit/evidence/2026-11-21-agent-prefab-acceptance/REPORT.md)。
|
|
57
57
|
|
|
58
|
+
## What's new in 0.17.4
|
|
59
|
+
|
|
60
|
+
- **独立页面返回主界面**:`/town`(数字孪生,town 布局)与 `/workshop/w/:id`(裸 console 布局)新增本地化 `AppBackToMain` 控件,`NuxtLink` 指向仪表盘 `/`(default 布局,带侧栏导航);640px 以下只显示箭头,`aria-label`/`title` 保留。数字孪生与裸控制台新增「返回主界面」入口,桌面端不再被困在全屏页面。
|
|
61
|
+
- **项目页**:`/projects/:id` 保留「返回项目中心」(`/projects`) 与「返回 Agent 工作台」(`/workshop`),两者均带导航栏,并由同一契约测试覆盖。
|
|
62
|
+
- **回归测试**:静态契约断言控件指向 `/`、TownTopNav 与控制台 Topbar 均渲染该控件、中英 locale 均有文案、项目页保留返回链接。新增静态契约测试(4/4)。
|
|
63
|
+
- **验证**:生产构建经 HTTP 检查 `/town`;安装版 0.17.4 实测显示该控件并能返回仪表盘。生产构建与安装版实测。
|
|
64
|
+
|
|
58
65
|
## What's new in 0.17.3
|
|
59
66
|
|
|
60
67
|
- **更新安装助手(最终)**:静默安装 + 重启改由独立的无控制台 WSH 助手执行——`wscript.exe //B //NoLogo <固定 VBS>`。VBS 通过 `AW_UPDATE_INSTALLER`/`AW_UPDATE_EXE` 读取安装包与可执行文件路径,等待 6 秒后以 `/S` 运行 NSIS 安装包并等待其结束,再重启应用。该助手以 `DETACHED_PROCESS` 启动且能在应用退出后存活;`cmd.exe`(不识别 Node 的 `\"` 转义)与 Windows PowerShell(分离启动即退出,Windows 11 实测)都不可行。更新安装改由独立无控制台 WSH 助手执行;`cmd.exe` 与分离式 PowerShell 两条路均已实测不可用。
|
|
@@ -496,7 +503,7 @@ curl -X POST http://localhost:3001/api/workshop/projects/instantiate \
|
|
|
496
503
|
|
|
497
504
|
**如果这个项目对你有用,点一个 ⭐ 能让更多人找到它。**
|
|
498
505
|
|
|
499
|
-
当前源码版本:**v0.17.
|
|
506
|
+
当前源码版本:**v0.17.4(已发布 2026-11-23)** —— [最新版本 v0.17.4](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.4) · [更新日志](./changelog.md) · [在线文档](https://kingdol666.github.io/AgentWorkShop)
|
|
500
507
|
|
|
501
508
|
<a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
|
|
502
509
|
<img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/agentworkshop)
|
|
12
12
|
[](https://www.npmjs.com/package/agentworkshop)
|
|
13
|
-
[](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.
|
|
13
|
+
[](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.4)
|
|
14
14
|
[](https://github.com/kingdol666/AgentWorkShop/stargazers)
|
|
15
15
|
[](https://github.com/kingdol666/AgentWorkShop/commits)
|
|
16
16
|
[](https://github.com/kingdol666/AgentWorkShop/issues)
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
**[简体中文](./README-zh.md)** · **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Releases](https://github.com/kingdol666/AgentWorkShop/releases)** · **[Changelog](./changelog.md)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
|
|
30
30
|
|
|
31
|
-
<sub><b>source v0.17.
|
|
31
|
+
<sub><b>source v0.17.4 (released 2026-11-23)</b> · integrated desktop shell with in-app updates · shared <code>~/.AgentWorkShop</code> home · 14 engines · 6 field protocols (5 built-in + serial plugin) + MES REST (mirror & live) · **Project center** · **RSI experience evolution** · **governed product experience** · **IDD/RAG plugin integration** · **AgentPrefab / Skills / MCP capability supply chain** · bilingual docs (简体中文 / English)</sub>
|
|
32
32
|
|
|
33
33
|
<br />
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
|
-
[Quick start](#quick-start) · [Current source](#current-source-v0-17-
|
|
39
|
+
[Quick start](#quick-start) · [Current source](#current-source-v0-17-4) · [0.17.4 release notes](#whats-new-in-0174) · [Agent team model](#the-agent-team-model) · [Capabilities](#capabilities) · [Architecture](#architecture) · [Verification](#verification) · [Docs site](https://kingdol666.github.io/AgentWorkShop)
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
@@ -49,12 +49,19 @@ A configuration-driven platform where **AI agent teams** and industrial systems
|
|
|
49
49
|
- **Delivery is a first-class concept**: **Project mode** turns a blueprint into a plan, a WBS with dependencies, L1 technical review, L2 owner acceptance and real deliverables — the project closes only when the deliverables pass;
|
|
50
50
|
- **The loop is implemented in governed stages**: read → analyze → propose → policy-controlled approval where required → write → readback/audit; the scope of each test and whether it used a simulator or physical equipment are stated with its evidence.
|
|
51
51
|
|
|
52
|
-
## Current source: v0.17.
|
|
52
|
+
## Current source: v0.17.4
|
|
53
53
|
|
|
54
|
-
The source version is **0.17.
|
|
54
|
+
The source version is **0.17.4** (npm + GitHub Release, 2026-11-23). It adds a “Back to main” entry to the standalone full-screen pages: the digital twin (`/town`, town layout) and the bare console (`/workshop/w/:id`, console layout) now always render a `AppBackToMain` control that links to the dashboard `/`, where the navigation sidebar is available — previously `/town` had no way back in the desktop window. The project detail page keeps its own “返回项目中心 / 返回 Agent 工作台” links (both nav pages). The desktop shell (40px title rail with the unchanged web content in a separate view), the shared `~/.AgentWorkShop` data home, and the in-app GitHub-release update channel with SHA-256 verification are unchanged; 0.17.3's WSH silent-install helper still performs the install and relaunch. It retains the 0.16.x baseline — everything in 0.15.x — the AgentPrefab capability-assembly plan (#252–#258) plus **Leader-managed worker Prefabs** (merged PRs #262/#264/#265): a Channel Leader can create workers with a published AgentPrefab selector atomically pinned to `(prefabId, revision, slotValues, contentHash)`, inspect the roster with `manageable`/`protected` flags, switch or detach bindings per revision, and remove only the workers it created. Worker creation provenance is durable (`created_by_kind`/`created_by_id`/`created_via`/`created_reason`); human-bound workers, other leaders' workers, leads, Project Leaders and open Session clones are protected from removal, and removal recycles tasks, cancels pending chat deliveries and clears instance node bindings without touching global templates or immutable revisions. Dispatch (native/REST/MCP/Project) fails closed on malformed or hash-mismatched bindings, disabled members, role/version mismatches and template visibility crossings; Project task-instance retries reuse the originally pinned snapshot with CAS/hash validation. Published Prefab profiles apply to supported harness fields (OMP thinking level via RPC); unique Skill aliases resolve to canonical revision ids. Database schema contract v10 adds the provenance columns (existing rows migrate conservatively as `system`/`protected`).
|
|
55
55
|
|
|
56
56
|
v0.16.0 verification: PR quick-gates green on #262/#264/#265/#263/#266; focused suites **38/38**, post-merge **22/22** and **13/13**, Project/Prefab/Session regression set **235/235**; live isolated-instance acceptance on the release build — Leader/Prefab full chain **30/30 ×2** (create-with-prefab → provenance in SQLite → roster flags → catalog narrowing → dispatch allow/deny → user-worker protection → lead self-op denial → revision switch drops capability → unbind → remove preserves template+revisions → REST lead-delete 409), official L10 **21/21** on a fresh instance, AgentTeam CRUD/deploy/dispatch **25/25**, frontend SSR routes 200. Mimosa deep scan sealed (`sha256:a91957e0…`, 54 findings, dependency risk 0) — findings reported, not a security pass. Boundaries: external MCP positive live trace, real-OMP-model work under a prefab, and browser UI click-through remain NOT_RUN. See the [full-flow acceptance report](docs/audit/evidence/2026-11-21-fullflow-round/REPORT.md) and the [Prefab/Skills/MCP live report](docs/audit/evidence/2026-11-21-agent-prefab-acceptance/REPORT.md).
|
|
57
57
|
|
|
58
|
+
## What's new in 0.17.4
|
|
59
|
+
|
|
60
|
+
- **Back to main on standalone pages**: `/town` (digital twin, `town` layout) and `/workshop/w/:id` (bare `console` layout) now render a localized `AppBackToMain` control — a NuxtLink to the dashboard `/`, which is the default layout with the navigation sidebar. The icon-only form is used below 640px, and the control keeps `aria-label`/`title`. 数字孪生与裸控制台新增「返回主界面」入口,回到带导航栏的仪表盘;桌面端不再被困在全屏页面。
|
|
61
|
+
- **Project page**: `/projects/:id` keeps its own “返回项目中心” (`/projects`) and “返回 Agent 工作台” (`/workshop`) links — both nav pages; covered by the same contract test.
|
|
62
|
+
- **Regression test**: a static contract asserts the control targets `/`, that TownTopNav and the console Topbar render it, that both locales define the labels, and that the project page keeps its return links. 新增静态契约测试(4/4)。
|
|
63
|
+
- **Verification**: the production build is checked over HTTP on `/town`, and the installed 0.17.4 desktop shows the control and navigates back to the dashboard. 生产构建与安装版实测。
|
|
64
|
+
|
|
58
65
|
## What's new in 0.17.3
|
|
59
66
|
|
|
60
67
|
- **Update install helper (final)**: the silent install + relaunch step now runs through a detached, console-free WSH helper — `wscript.exe //B //NoLogo <fixed VBS>`. The VBS receives the installer and executable paths through `AW_UPDATE_INSTALLER`/`AW_UPDATE_EXE`, sleeps 6 s, runs the NSIS installer with `/S` and waits, then restarts the executable. This host is started with `DETACHED_PROCESS` and survives the app's exit, which neither `cmd.exe` (Node's `\"` quoting is not understood) nor Windows PowerShell (exits immediately when detached, verified on Windows 11) does. 更新安装改由独立无控制台 WSH 助手执行;`cmd.exe` 与分离式 PowerShell 两条路均已实测不可用。
|
|
@@ -492,7 +499,7 @@ Please **do not** open public issues for vulnerabilities — report privately vi
|
|
|
492
499
|
|
|
493
500
|
**If this project is useful to you, a ⭐ helps others find it.**
|
|
494
501
|
|
|
495
|
-
Current source version: **v0.17.
|
|
502
|
+
Current source version: **v0.17.4 (released 2026-11-23)** — [Latest release v0.17.4](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.4) · [Changelog](./changelog.md) · [Documentation](https://kingdol666.github.io/AgentWorkShop)
|
|
496
503
|
|
|
497
504
|
<a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
|
|
498
505
|
<img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* 独立全屏页面(数字孪生 / 裸控制台)的返回入口。
|
|
4
|
+
*
|
|
5
|
+
* 这些页面不渲染 default 布局,没有侧栏/顶栏导航;没有这个入口时用户会被困在
|
|
6
|
+
* 全屏场景里(桌面端尤其明显:窗口没有浏览器地址栏)。目标固定为主界面 `/`
|
|
7
|
+
* (仪表盘,带完整侧栏导航)。
|
|
8
|
+
*
|
|
9
|
+
* 颜色使用 currentColor 派生,不依赖具体布局的 CSS 变量:town 是深色 HUD,
|
|
10
|
+
* console 跟随聊天区亮/暗主题,两者都能直接复用。
|
|
11
|
+
*/
|
|
12
|
+
withDefaults(defineProps<{ compact?: boolean }>(), { compact: false })
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<NuxtLink
|
|
17
|
+
class="app-back-to-main"
|
|
18
|
+
:class="{ compact }"
|
|
19
|
+
to="/"
|
|
20
|
+
data-testid="back-to-main"
|
|
21
|
+
:aria-label="$t('common.backToMain')"
|
|
22
|
+
:title="$t('common.backToMainTip')"
|
|
23
|
+
>
|
|
24
|
+
<span
|
|
25
|
+
class="i-tabler-arrow-left back-ico"
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
/>
|
|
28
|
+
<span class="back-label">{{ $t('common.backToMain') }}</span>
|
|
29
|
+
</NuxtLink>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<style scoped>
|
|
33
|
+
.app-back-to-main {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 6px;
|
|
37
|
+
flex: none;
|
|
38
|
+
height: 30px;
|
|
39
|
+
padding: 0 11px 0 9px;
|
|
40
|
+
border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
|
|
41
|
+
border-radius: 999px;
|
|
42
|
+
color: inherit;
|
|
43
|
+
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
44
|
+
font-size: 12.5px;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
line-height: 1;
|
|
47
|
+
letter-spacing: 0.02em;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
transition: background var(--transition-fast, 120ms ease), border-color var(--transition-fast, 120ms ease);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.app-back-to-main:hover {
|
|
55
|
+
background: color-mix(in srgb, currentColor 16%, transparent);
|
|
56
|
+
border-color: color-mix(in srgb, currentColor 38%, transparent);
|
|
57
|
+
color: inherit;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.app-back-to-main:focus-visible {
|
|
61
|
+
outline: 2px solid var(--focus-ring, currentColor);
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.back-ico {
|
|
66
|
+
font-size: 15px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.app-back-to-main.compact {
|
|
70
|
+
padding: 0 9px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.app-back-to-main.compact .back-label {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 窄屏优先保住场景/内容宽度:只留箭头,aria-label 与 title 仍在 */
|
|
78
|
+
@media (max-width: 639px) {
|
|
79
|
+
.back-label {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
.app-back-to-main {
|
|
83
|
+
padding: 0 9px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
</style>
|
package/app/pages/town.vue
CHANGED
|
@@ -131,6 +131,12 @@ const hasChannels = computed(() => allChannelIds.value.length > 0)
|
|
|
131
131
|
|
|
132
132
|
<template>
|
|
133
133
|
<div class="town-page">
|
|
134
|
+
<!-- 未进入 3D 场景(加载/无频道空态)时没有 TownTopNav:单独提供返回主界面入口,
|
|
135
|
+
否则桌面端会停在全屏空态里无路可回。 -->
|
|
136
|
+
<AppBackToMain
|
|
137
|
+
v-if="!authReady || !hasChannels || !focusedChannelId"
|
|
138
|
+
class="town-state-back"
|
|
139
|
+
/>
|
|
134
140
|
<!-- 无频道:诚实空态 -->
|
|
135
141
|
<div
|
|
136
142
|
v-if="authReady && !hasChannels"
|
|
@@ -165,6 +171,7 @@ const hasChannels = computed(() => allChannelIds.value.length > 0)
|
|
|
165
171
|
<style scoped>
|
|
166
172
|
.town-page {
|
|
167
173
|
/* 独立全屏布局(town.vue):占据整个视口,无侧栏/顶栏/页脚的穿插 */
|
|
174
|
+
position: relative;
|
|
168
175
|
width: 100vw;
|
|
169
176
|
height: 100dvh;
|
|
170
177
|
min-height: 0;
|
|
@@ -172,6 +179,14 @@ const hasChannels = computed(() => allChannelIds.value.length > 0)
|
|
|
172
179
|
/* 赛博小镇背景贴图(3D 场景地面同源;低对比,不影响前景) */
|
|
173
180
|
background: var(--paper) url('/scene/background/cyber-town-background.svg') center / cover no-repeat fixed;
|
|
174
181
|
}
|
|
182
|
+
/* 空态/加载态下的返回入口:位于全屏面板之上;3D 场景态由 TownTopNav 承担 */
|
|
183
|
+
.town-state-back {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 16px;
|
|
186
|
+
left: 16px;
|
|
187
|
+
z-index: 30;
|
|
188
|
+
color: var(--ink);
|
|
189
|
+
}
|
|
175
190
|
.pane-empty {
|
|
176
191
|
display: flex;
|
|
177
192
|
flex-direction: column;
|
package/config.yml
CHANGED
package/docs/cli.en.md
CHANGED
|
@@ -79,7 +79,7 @@ npx -p agentworkshop aw doctor # use -p when you want the name aw
|
|
|
79
79
|
| Package manager | `pnpm@11.9.0` (`packageManager`, needed only for source development) |
|
|
80
80
|
| Module format | ESM (`type: module`) |
|
|
81
81
|
| License | `Apache-2.0` |
|
|
82
|
-
| Current version | `0.17.
|
|
82
|
+
| Current version | `0.17.4` (`package.json`) |
|
|
83
83
|
|
|
84
84
|
## 2. First start (the Claude Code experience)
|
|
85
85
|
|
package/docs/cli.md
CHANGED
|
@@ -76,7 +76,7 @@ npx -p agentworkshop aw doctor # 需要 aw 这个名字时用 -p 指定包
|
|
|
76
76
|
| 包管理器 | `pnpm@11.9.0`(`packageManager`,仅源码开发需要) |
|
|
77
77
|
| 模块形态 | ESM(`type: module`) |
|
|
78
78
|
| 许可证 | `Apache-2.0` |
|
|
79
|
-
| 当前版本 | `0.17.
|
|
79
|
+
| 当前版本 | `0.17.4`(`package.json`) |
|
|
80
80
|
|
|
81
81
|
## 二、首次启动(Claude Code 式)
|
|
82
82
|
|
package/docs/desktop.md
CHANGED
|
@@ -40,7 +40,7 @@ Node/TypeScript 负责数据集、作业与评估调度、门禁和模型注册
|
|
|
40
40
|
pnpm install --frozen-lockfile
|
|
41
41
|
pnpm build
|
|
42
42
|
npm pack --ignore-scripts --pack-destination D:\aw-artifacts
|
|
43
|
-
npm install -g --ignore-scripts --prefix D:\aw-artifacts\prefix D:\aw-artifacts\agentworkshop-0.17.
|
|
43
|
+
npm install -g --ignore-scripts --prefix D:\aw-artifacts\prefix D:\aw-artifacts\agentworkshop-0.17.4.tgz
|
|
44
44
|
npm --prefix desktop ci
|
|
45
45
|
npm --prefix desktop run build -- --backend D:\aw-artifacts\prefix\node_modules\agentworkshop --out D:\aw-artifacts\desktop
|
|
46
46
|
```
|
package/docs/plugins.en.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
>
|
|
10
10
|
> Applies to: plugin system v2 has been available since **v0.7.29** (frontend component
|
|
11
11
|
> injection / plugin settings / plugin i18n / runtime services surface); this document
|
|
12
|
-
> describes **v0.17.
|
|
12
|
+
> describes **v0.17.4**. `ctx.sdkVersion` is currently `0.3.0`.
|
|
13
13
|
|
|
14
14
|
## 1. Folder layout & quick start
|
|
15
15
|
|
package/docs/plugins.md
CHANGED
package/docs/sdk.en.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
**SDK version constants**: server-side `SDK_VERSION = '0.3.0'`, browser-side `CLIENT_SDK_VERSION = '0.3.0'`.
|
|
9
9
|
These two constants are the **interface version of the SDK itself** and evolve **independently**
|
|
10
|
-
from the npm package version (the `version` field in `package.json`, currently 0.17.
|
|
10
|
+
from the npm package version (the `version` field in `package.json`, currently 0.17.4) —
|
|
11
11
|
them being out of sync is expected. Never use `SDK_VERSION` to infer the package version, or the reverse.
|
|
12
12
|
**Module format**: ESM only (only `import` / `export`; there is no CJS entry).
|
|
13
13
|
**Types**: `sdk/index.d.mts` and `sdk/client.d.mts` ship with the package, so TypeScript projects
|
package/docs/sdk.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> 零第三方运行时依赖,Node ≥ 23.4 与现代浏览器双端可用。
|
|
6
6
|
|
|
7
7
|
**SDK 版本常量**:服务端 `SDK_VERSION = '0.3.0'`,浏览器端 `CLIENT_SDK_VERSION = '0.3.0'`。
|
|
8
|
-
这两个常量是 **SDK 自身接口的版本号**,与 npm 包版本(`package.json` 的 `version`,当前 0.17.
|
|
8
|
+
这两个常量是 **SDK 自身接口的版本号**,与 npm 包版本(`package.json` 的 `version`,当前 0.17.4)
|
|
9
9
|
**各自独立演进** —— 常数不同步是预期行为,不要拿 `SDK_VERSION` 去推断包版本,反之亦然。
|
|
10
10
|
**模块形态**:ESM only(只有 `import` / `export`,没有 CJS 入口)。
|
|
11
11
|
**类型**:`sdk/index.d.mts`、`sdk/client.d.mts` 随包发布,TS 项目零配置获得提示(覆盖范围见 §7)。
|
package/i18n/locales/en.ts
CHANGED
package/i18n/locales/zh-CN.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentworkshop",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgentWorkShop — a configuration-driven industrial agent runtime: agent teams, Channel sessions, Project delivery and governed plant writes",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as e,mt as t,v as n}from"./CavpkQb0.js";import{P as r,R as i,S as a,V as o,d as s,f as c,h as l,p as u,tt as d,y as f}from"./C6lssmvl.js";import{d as p}from"./CW6vX8Hb.js";import{t as m}from"./hU0bRVKA.js";import{t as h}from"./CuOIxZ_Y2.js";import{t as g}from"./BDNMzG2s.js";import{a as _,t as v}from"./CnwJOtRh.js";import{t as y}from"./DXY8bTqS.js";import{t as b}from"./CNs_Ozdc2.js";import{t as x}from"./DhFEApxl.js";var S={class:`town-page`},C={key:0,"data-hud":`town-empty`,class:`pane-empty`},w={class:`pe-title`},T={class:`pe-sub`},E={key:2,"data-hud":`town-loading`,class:`pane-loading`},D=g(a({__name:`town`,setup(a){b({layout:`town`,title:`Digital Twin`});let g=h(),D=_(),O=y(),{subscribe:k,unsubscribe:A}=v(),j=m(`token`),M=n(!1);d(()=>g.isLoggedIn,async e=>{if(!e){M.value=!1;return}if(await g.refresh(),g.isLoggedIn)try{await O.load(),M.value=!0}catch{}},{immediate:!0}),i(()=>{!g.isLoggedIn&&!j.value&&p(`/workshop`)}),d(j,e=>{!e&&!g.isLoggedIn&&p(`/workshop`)});let N=s(()=>{let e=[];for(let t of O.workspaces)for(let n of t.channelIds??[])e.includes(n)||e.push(n);return e}),P=new Set;d(()=>N.value.join(`,`),()=>{let e=new Set(N.value);for(let t of e)P.has(t)||(k(t),P.add(t));for(let t of[...P])e.has(t)||(A(t),P.delete(t))},{immediate:!0}),r(()=>{for(let e of P)A(e);P.clear()});let F=s(()=>{let e=N.value[0];if(e&&D.channels[e])return e;for(let e of O.workspaces)for(let t of e.channelIds??[])if(D.channels[t])return t;return N.value[0]??void 0}),I=s(()=>N.value.length>0);return(n,r)=>{let i=x;return o(),l(`div`,S,[e(M)&&!e(I)?(o(),l(`div`,C,[r[0]||=c(`span`,{class:`pe-icon i-tabler-map-2`},null,-1),c(`div`,w,t(n.$t(`town.k1wm8wtr001`)),1),c(`div`,T,[f(t(n.$t(`town.k47e4s002`))+` `,1),c(`b`,null,`Agent `+t(n.$t(`town.k3n4mae005`)),1),f(` `+t(n.$t(`town.k17rerba003`)),1)])])):e(F)?(o(),u(i,{key:1,"channel-id":e(F),"all-channels":!0},null,8,[`channel-id`])):(o(),l(`div`,E,t(n.$t(`town.k1uc5mup004`)),1))])}}}),[[`__scopeId`,`data-v-7b9f707f`]]);export{D as default};
|