agentworkshop 0.17.0 → 0.17.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentworkshop-prod",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/README-zh.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/agentworkshop?logo=npm&logoColor=white&label=npm&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
12
12
  [![npm downloads](https://img.shields.io/npm/dm/agentworkshop?logo=npm&logoColor=white&label=downloads&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
13
- [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.0)
13
+ [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.1)
14
14
  [![Stars](https://img.shields.io/github/stars/kingdol666/AgentWorkShop?logo=github&label=stars&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/stargazers)
15
15
  [![Last commit](https://img.shields.io/github/last-commit/kingdol666/AgentWorkShop?logo=git&logoColor=white&label=last%20commit)](https://github.com/kingdol666/AgentWorkShop/commits)
16
16
  [![Issues](https://img.shields.io/github/issues/kingdol666/AgentWorkShop?logo=github&label=issues)](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.0(2026-11-22 发布)</b> · 一体化桌面壳与应用内更新 · 桌面/Web 共用 <code>~/.AgentWorkShop</code> · 14 个执行引擎 · 6 种现场协议(5 内置 + 串口插件)+ MES REST(镜像与直连双路径)· **项目中心** · **RSI 经验演化** · **受治理产品经验** · **IDD/RAG 插件集成** · **AgentPrefab / Skill / MCP 能力供应链** · 双语文档(简体中文 / English)</sub>
31
+ <sub><b>源码 v0.17.1(2026-11-22 发布)</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-0) · [0.17.0 发布说明](#whats-new-in-0170) · [Agent 团队模型](#agent-团队模型) · [核心能力](#核心能力) · [设计架构](#设计架构) · [验证与验收](#验证与验收) · [文档站](https://kingdol666.github.io/AgentWorkShop)
39
+ [快速开始](#快速开始) · [当前源码](#当前源码-v0-17-1) · [0.17.1 发布说明](#whats-new-in-0171) · [Agent 团队模型](#agent-团队模型) · [核心能力](#核心能力) · [设计架构](#设计架构) · [验证与验收](#验证与验收) · [文档站](https://kingdol666.github.io/AgentWorkShop)
40
40
 
41
41
  ---
42
42
 
@@ -49,12 +49,18 @@
49
49
  - **交付是一等概念**:**Project 模式**把蓝图变成计划、带依赖的 WBS、L1 技术复核、L2 Owner 验收与真实交付物——交付物不通过,项目不算完成;
50
50
  - **作业链按治理阶段实现**:读取 → 分析 → 提案 → 按有效策略审批(如适用)→ 下发 → 回读/审计;每份验收证据应注明实际覆盖范围及使用模拟器还是物理设备。
51
51
 
52
- ## 当前源码 v0.17.0
52
+ ## 当前源码 v0.17.1
53
53
 
54
- 当前源码版本为 **0.17.0**(npm + GitHub Release,2026-11-22)。本版新增一体化桌面壳(40px 标题导轨 + 原样网页内容视图)、桌面/Web/CLI 共用 `~/.AgentWorkShop` 数据目录,以及基于 GitHub Releases 的应用内更新(SHA-256 校验、静默安装并重启)。同时保留 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`)。
54
+ 当前源码版本为 **0.17.1**(npm + GitHub Release,2026-11-22)。本版新增一体化桌面壳(40px 标题导轨 + 原样网页内容视图)、桌面/Web/CLI 共用 `~/.AgentWorkShop` 数据目录,以及基于 GitHub Releases 的应用内更新(SHA-256 校验、静默安装并重启)。0.17.1 将更新下载改为 GitHub API 资产端点,并把安装包传输预算提升到 30 分钟,使受限网络与慢速链路也能完成更新。同时保留 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.1
59
+
60
+ - **更新端点加固**:下载改用 GitHub API 资产端点(`/releases/assets/:id` + `Accept: application/octet-stream`),不再从 `github.com` 的 `browser_download_url` 起步;重定向仍只允许固定 `release-assets.githubusercontent.com`,SHA-256 校验不变。受限网络下 `github.com` 不可达而 `api.github.com` 可用时仍可更新。
61
+ - **传输预算**:安装包下载预算从 60 秒提升到 30 分钟,约 500 MB 的资产在慢速链路也能完成;校验文件仍限长。
62
+ - **验证**:真实 0.17.0 资产经 API 端点下载并通过 `SHA256SUMS.txt` 校验;0.17.1 安装器与在线更新流程见发布证据。
63
+
58
64
  ## What's new in 0.17.0
59
65
 
60
66
  - **一体化桌面壳**:无边框 Electron 窗口,40px 产品标题导轨(Logo、实时页面标题、服务状态、自绘最小化/最大化/关闭),内容区是独立视图并原样加载 Nuxt/Nitro 页面。亮暗主题同步、双击标题栏最大化、优雅停机;渲染器不暴露 Node/IPC。标题栏只在页面标题只是产品名时隐藏标题,不重复品牌。
@@ -477,7 +483,7 @@ curl -X POST http://localhost:3001/api/workshop/projects/instantiate \
477
483
 
478
484
  **如果这个项目对你有用,点一个 ⭐ 能让更多人找到它。**
479
485
 
480
- 当前源码版本:**v0.17.0(已发布 2026-11-22)** —— [最新版本 v0.17.0](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.0) · [更新日志](./changelog.md) · [在线文档](https://kingdol666.github.io/AgentWorkShop)
486
+ 当前源码版本:**v0.17.1(已发布 2026-11-22)** —— [最新版本 v0.17.1](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.1) · [更新日志](./changelog.md) · [在线文档](https://kingdol666.github.io/AgentWorkShop)
481
487
 
482
488
  <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
483
489
  <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
  [![npm version](https://img.shields.io/npm/v/agentworkshop?logo=npm&logoColor=white&label=npm&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
12
12
  [![npm downloads](https://img.shields.io/npm/dm/agentworkshop?logo=npm&logoColor=white&label=downloads&color=CB3837)](https://www.npmjs.com/package/agentworkshop)
13
- [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.0)
13
+ [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.1)
14
14
  [![Stars](https://img.shields.io/github/stars/kingdol666/AgentWorkShop?logo=github&label=stars&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/stargazers)
15
15
  [![Last commit](https://img.shields.io/github/last-commit/kingdol666/AgentWorkShop?logo=git&logoColor=white&label=last%20commit)](https://github.com/kingdol666/AgentWorkShop/commits)
16
16
  [![Issues](https://img.shields.io/github/issues/kingdol666/AgentWorkShop?logo=github&label=issues)](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.0 (released 2026-11-22)</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>
31
+ <sub><b>source v0.17.1 (released 2026-11-22)</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-0) · [0.17.0 release notes](#whats-new-in-0170) · [Agent team model](#the-agent-team-model) · [Capabilities](#capabilities) · [Architecture](#architecture) · [Verification](#verification) · [Docs site](https://kingdol666.github.io/AgentWorkShop)
39
+ [Quick start](#quick-start) · [Current source](#current-source-v0-17-1) · [0.17.1 release notes](#whats-new-in-0171) · [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,18 @@ 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.0
52
+ ## Current source: v0.17.1
53
53
 
54
- The source version is **0.17.0** (npm + GitHub Release, 2026-11-22). It adds the integrated desktop shell (40px title rail with the unchanged web content in a separate view), the shared `~/.AgentWorkShop` data home for Web/CLI/desktop, and an in-app GitHub-release update channel with SHA-256 verification. 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`).
54
+ The source version is **0.17.1** (npm + GitHub Release, 2026-11-22). It adds the integrated desktop shell (40px title rail with the unchanged web content in a separate view), the shared `~/.AgentWorkShop` data home for Web/CLI/desktop, and an in-app GitHub-release update channel with SHA-256 verification. 0.17.1 routes update downloads through the GitHub API asset endpoint and raises the installer transfer budget to 30 minutes, so updates work where `github.com` web is blocked and on slow links. 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.1
59
+
60
+ - **Update endpoint robustness**: downloads use the GitHub API asset endpoint (`/releases/assets/:id` + `Accept: application/octet-stream`) rather than `browser_download_url` on `github.com`; redirects still validate to the fixed `release-assets.githubusercontent.com` host. 更新下载改走 API 资产端点,避免受限网络下 `github.com` 不可达。
61
+ - **Transfer budget**: the installer download budget is 30 minutes (was 60 seconds), so ~500 MB assets can finish on slow links; the checksum file remains bounded. 安装包下载预算 30 分钟,慢速链路不再中途中止。
62
+ - **Verification**: a real 0.17.0 asset downloaded through the API endpoint and matched `SHA256SUMS.txt`; the 0.17.1 installer and live update flow are covered by the release evidence. 实网资产经 API 端点下载并通过 SHA-256 校验。
63
+
58
64
  ## What's new in 0.17.0
59
65
 
60
66
  - **Integrated desktop shell**: a frameless Electron window with a 40px product title rail (logo, live page title, service status, custom minimize/maximize/close) and a separate content view that loads the unchanged Nuxt/Nitro page. Light/dark theme sync, native double-click maximize, graceful sidecar shutdown, and no Node/IPC exposure to the renderer. 一体化桌面壳:40px 标题导轨 + 原样内容视图;主题同步、原生双击最大化、优雅停机。
@@ -473,7 +479,7 @@ Please **do not** open public issues for vulnerabilities — report privately vi
473
479
 
474
480
  **If this project is useful to you, a ⭐ helps others find it.**
475
481
 
476
- Current source version: **v0.17.0 (released 2026-11-22)** — [Latest release v0.17.0](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.0) · [Changelog](./changelog.md) · [Documentation](https://kingdol666.github.io/AgentWorkShop)
482
+ Current source version: **v0.17.1 (released 2026-11-22)** — [Latest release v0.17.1](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.17.1) · [Changelog](./changelog.md) · [Documentation](https://kingdol666.github.io/AgentWorkShop)
477
483
 
478
484
  <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
479
485
  <img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
package/config.yml CHANGED
@@ -12,7 +12,7 @@
12
12
  app:
13
13
  name: AgentWorkShop
14
14
  title: AgentWorkShop
15
- version: 0.17.0
15
+ version: 0.17.1
16
16
  description: 基于 Nuxt 4 的配置驱动运行范式
17
17
 
18
18
  # 运行模式(dev/prod 实际由启动命令决定,此处仅作运行时展示)
@@ -124,13 +124,16 @@ export function parseRelease(json, { repo = UPDATE_REPO } = {}) {
124
124
  ?? assets.find(a => /sha256sums.*\.txt$/i.test(a.name ?? ''))
125
125
  if (!installer || !sums) throw new Error('release is missing the installer or SHA256SUMS.txt')
126
126
  const htmlUrl = typeof json.html_url === 'string' ? validateUpdateUrl(json.html_url, { allowQuery: false }).toString() : `https://github.com/${repo}/releases`
127
+ // Prefer the API asset endpoint: `browser_download_url` starts on github.com,
128
+ // which is blocked in some restricted networks while api.github.com works.
129
+ const assetUrl = asset => (typeof asset.url === 'string' && asset.url) || asset.browser_download_url
127
130
  return {
128
131
  version,
129
132
  tag: String(json.tag_name),
130
133
  notes: String(json.body ?? '').trim().slice(0, 2_000),
131
134
  htmlUrl,
132
- installer: { name: String(installer.name), url: String(installer.browser_download_url), size: Number(installer.size) || 0 },
133
- sums: { name: String(sums.name), url: String(sums.browser_download_url), size: Number(sums.size) || 0 },
135
+ installer: { name: String(installer.name), url: String(assetUrl(installer)), size: Number(installer.size) || 0 },
136
+ sums: { name: String(sums.name), url: String(assetUrl(sums)), size: Number(sums.size) || 0 },
134
137
  }
135
138
  }
136
139
 
@@ -165,8 +168,8 @@ export async function checkForUpdate({ currentVersion, repo = UPDATE_REPO, fetch
165
168
  }
166
169
  }
167
170
 
168
- async function download(rawUrl, dest, { fetchImpl = fetch, timeoutMs, maxBytes, onProgress, lookupImpl }) {
169
- const res = await request(rawUrl, { fetchImpl, timeoutMs, lookupImpl })
171
+ async function download(rawUrl, dest, { fetchImpl = fetch, timeoutMs, maxBytes, onProgress, lookupImpl, headers }) {
172
+ const res = await request(rawUrl, { fetchImpl, timeoutMs, lookupImpl, headers })
170
173
  if (!res.ok) throw new Error(`download failed: HTTP ${res.status}`)
171
174
  const total = Number(res.headers.get('content-length') ?? 0) || maxBytes
172
175
  if (total > maxBytes) throw new Error('download exceeded the size limit')
@@ -191,10 +194,12 @@ async function download(rawUrl, dest, { fetchImpl = fetch, timeoutMs, maxBytes,
191
194
  return { bytes: received, sha256: hash.digest('hex') }
192
195
  }
193
196
 
194
- /** Download the installer next to its SHA256SUMS.txt, verify the exact filename, and return the path. */
195
- export async function downloadUpdate(release, { dir, fetchImpl = fetch, timeoutMs = 60_000, onProgress, lookupImpl } = {}) {
197
+ /** Download the installer next to its SHA256SUMS.txt, verify the exact filename, and return the path.
198
+ * A full installer is ~500 MB; the request budget must cover the whole body at slow links. */
199
+ export async function downloadUpdate(release, { dir, fetchImpl = fetch, timeoutMs = 30 * 60_000, onProgress, lookupImpl } = {}) {
196
200
  if (!dir) throw new Error('download directory is required')
197
- const sumsRes = await request(release.sums.url, { fetchImpl, timeoutMs, lookupImpl })
201
+ const assetHeaders = { accept: 'application/octet-stream' }
202
+ const sumsRes = await request(release.sums.url, { fetchImpl, timeoutMs, lookupImpl, headers: assetHeaders })
198
203
  const sumsText = await readText(sumsRes, MAX_SUMS_BYTES)
199
204
  const expected = parseSums(sumsText, release.installer.name)
200
205
  if (!expected) throw new Error('SHA256SUMS.txt does not list the installer')
@@ -205,6 +210,7 @@ export async function downloadUpdate(release, { dir, fetchImpl = fetch, timeoutM
205
210
  maxBytes: MAX_INSTALLER_BYTES,
206
211
  onProgress,
207
212
  lookupImpl,
213
+ headers: assetHeaders,
208
214
  })
209
215
  if (sha256 !== expected) {
210
216
  await unlink(dest).catch(() => {})
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.0` (`package.json`) |
82
+ | Current version | `0.17.1` (`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.0`(`package.json`) |
79
+ | 当前版本 | `0.17.1`(`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.0.tgz
43
+ npm install -g --ignore-scripts --prefix D:\aw-artifacts\prefix D:\aw-artifacts\agentworkshop-0.17.1.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
  ```
@@ -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.0**. `ctx.sdkVersion` is currently `0.3.0`.
12
+ > describes **v0.17.1**. `ctx.sdkVersion` is currently `0.3.0`.
13
13
 
14
14
  ## 1. Folder layout & quick start
15
15
 
package/docs/plugins.md CHANGED
@@ -6,7 +6,7 @@
6
6
  > 本文是唯一权威参考;`docs/site/plugins/` 的分页文档与本文同源。
7
7
  >
8
8
  > 适用版本:插件系统 v2 自 **v0.7.29** 起可用(前端组件注入 / 插件设置 / 插件 i18n /
9
- > 运行时服务面);本文档对应当前版本 **v0.17.0**。`ctx.sdkVersion` 当前为 `0.3.0`。
9
+ > 运行时服务面);本文档对应当前版本 **v0.17.1**。`ctx.sdkVersion` 当前为 `0.3.0`。
10
10
 
11
11
  ## 一、目录结构与快速开始
12
12
 
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.0) —
10
+ from the npm package version (the `version` field in `package.json`, currently 0.17.1) —
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.0)
8
+ 这两个常量是 **SDK 自身接口的版本号**,与 npm 包版本(`package.json` 的 `version`,当前 0.17.1)
9
9
  **各自独立演进** —— 常数不同步是预期行为,不要拿 `SDK_VERSION` 去推断包版本,反之亦然。
10
10
  **模块形态**:ESM only(只有 `import` / `export`,没有 CJS 入口)。
11
11
  **类型**:`sdk/index.d.mts`、`sdk/client.d.mts` 随包发布,TS 项目零配置获得提示(覆盖范围见 §7)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentworkshop",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
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
- {"id":"889629c2-4866-465d-8bd9-07c78a994977","timestamp":1795347844078,"prerendered":[]}