Commit Graph

29 Commits

Author SHA1 Message Date
root 092f66f601 feat: add TaskTree L1 native shell 2026-07-18 10:13:09 +02:00
root 95a9e5c235 refactor: 完成 R2 控制台通用交互纠偏 2026-07-14 12:01:34 +02:00
UniDesk Codex b887594d04 feat: migrate workbench server state to pinia colada 2026-07-02 19:05:36 +08:00
UniDesk Codex cf4f78a41a fix: harden cloud web tsc gate 2026-07-02 17:14:42 +08:00
lyon 10dd36a061 fix: bootstrap cloud web deps for workbench e2e 2026-06-17 20:27:49 +08:00
lyon 74f5f1773d feat: track agentrun event visible latency 2026-06-17 18:45:19 +08:00
lyon 1e672c3c7f test(web): add Workbench Playwright e2e harness 2026-06-17 18:06:35 +08:00
Codex Agent 36fc82f5dc feat: migrate cloud web to vue platform shell 2026-06-12 01:17:11 +08:00
Codex Agent 3e7131f6ab refactor: converge hwpod node-ops channel 2026-06-05 17:23:56 +08:00
Lyon 3f26ec0b16 fix(v02): add workspace scroll follow and markdown renderer (#839)
Co-authored-by: Codex Agent <codex@hwlab.local>
2026-06-04 17:50:47 +08:00
Codex 58b06fcd17 fix(web): enforce React TypeScript single path 2026-06-03 17:47:27 +08:00
Lyon 0d06a4c5fe fix(web): migrate Cloud Web from vanilla DOM to React + TypeScript + Vite (#756) (#764)
- Replace monolithic app.ts / app-conversation.ts / app-device-pod.ts /
  app-skills.ts / app-helpers.ts / app-session-tabs.ts / auth.ts and the
  364-line index.html with a Vite-built React + TypeScript SPA.
- New src/ module tree: main.tsx, App.tsx, components/{layout,auth,
  conversation,command-bar,device-pod,skills,settings,help},
  hooks/, services/api, services/auth, state, types, logic/ (pure
  helpers from the old tree), styles/.
- Pure-logic modules (composer-policy, code-agent-facts, code-agent-
  status, live-status, message-markdown, app-trace, app-session-tabs,
  runtime) move to src/logic/ with their tests preserved; tests still
  auto-discover.
- Build pipeline switches from Bun.build to Vite: vite.config.ts
  inlines everything into a single app.js + app-assets/ for the dist;
  scripts/dist-contract.ts now runs vite build and asserts the dist
  against a fresh build instead of comparing dist to source.
- scripts/check.ts now verifies the React entry, the mount-only
  index.html, Vite dist, the composer / session / device pod / skills
  / settings / help contracts, the React state shape, and the new
  test file locations. It also refuses to run if any legacy app-*.ts
  or auth.ts survives at the top level.
- New scripts/frontend-guard.ts enforces the 400-line migration target,
  refuses the legacy el map and document.getElementById markers,
  refuses to keep app-*.ts / auth.ts at the top level, and verifies
  the required module directory layout.
- Update scripts/src/dev-cloud-workbench-smoke-lib.mjs to read the new
  src/services/, src/logic/ paths and refresh cloudWebModuleSourceFiles.
- index.html is now a mount shell only (no login shell, no workbench
  shell, no device pod sidebar markup). React renders the full UI from
  src/main.tsx, satisfying the issue-756 migration goal of catching
  unclosed tags at the TypeScript/JSX compile step instead of relying
  on browser DOM healing.
- web:check (now: check + frontend-guard + tsc-check + bun test) is
  green: 51 pass / 0 fail, Vite build produces dist/app.js (379 kB)
  + dist/index.html + dist/app-assets/. Vite build is reproducible;
  dist freshness is verified against a fresh Vite build.
- Grandfathered pure-logic files (> 600 lines): src/logic/app-trace.ts
  (1367), src/logic/live-status.ts (1006), src/logic/code-agent-facts.ts
  (548), src/logic/code-agent-status.ts (572). Reason: each is a tested
  pure-logic classifier with a public contract consumed by both the
  CLI renderer and the Web renderer; splitting now would fork the
  public function shape across two PRs and the migration target is the
  React entry + module split, not a pure-logic refactor.

Refs #756. Closes #756 once merged + deployed to hwlab-v02.

Co-authored-by: Codex <codex@local>
2026-06-03 16:53:25 +08:00
Lyon 10906ec726 fix(issue751): add web-types.d.ts + tsconfig + tsc-check baseline (#754)
为 issue #751 的 TypeScript 收紧建基线:
- 新增 web/hwlab-cloud-web/tsconfig.json(strict family 全部开启、noImplicitAny
  默认关、allowImportingTsExtensions 打开、types=[bun-types, node])
- 新增 web/hwlab-cloud-web/web-types.d.ts(ElMap + WorkbenchState + 跨文件
  function/lifecycle/constant 的 ambient declarations;用 WorkbenchUnknown
  接口避开 any 字面量,同时保留索引签名允许任意属性访问)
- 新增 web/hwlab-cloud-web/scripts/tsc-check.ts:web:check 的并行 type gate,
  显式 untyped 注解(项目源码 + web-types.d.ts)直接 exit 2;residual type
  错误按 issue #751 follow-up 处理
- web/hwlab-cloud-web/package.json:加 typescript@5.6.3 / @types/node@22.7.5
  / bun-types@1.1.33;check / check:tsc / check:tsc-strict 入口
- byId/query 加显式 : HTMLElement 返回类型(不再返回 HTMLElement | null)
- app-conversation.ts 中 captureConversationScrollPosition 加 : void 注解

web:check(54 tests / 0 fail)+ web:build(12 dist files)通过;tsc-check
报告 0 explicit untyped,residual type 错误(property access / strict null
等)作为 issue #751 后续轮次跟踪,不阻塞 build。

Refs: pikasTech/HWLAB#751

Co-authored-by: Codex <codex@noreply.local>
2026-06-03 15:21:03 +08:00
Codex d269dd52bf fix: enforce v02 cloud web validation 2026-05-31 11:39:18 +08:00
Codex b7f7299056 feat: migrate v0.2 cloud web to TypeScript 2026-05-28 21:33:33 +08:00
Codex 1c44ce671b fix: stabilize cloud web restored status 2026-05-28 08:06:24 +08:00
Codex 297206b695 feat: add fake device pod sidebar service 2026-05-28 01:39:03 +08:00
Codex b936753088 fix: restore cloud web server auth from local session 2026-05-27 00:17:47 +08:00
lyon 9e584be848 fix: remove obsolete code agent gates 2026-05-25 22:10:07 +08:00
lyon 2759e823e8 fix: preserve trace scroll user control 2026-05-25 15:47:43 +08:00
Code Queue Review 4e302faee9 Remove repo reports and add recurrence guard 2026-05-24 02:31:36 +00:00
Lyon 606156f604 feat: add workbench sidebar resize
Adds a controlled desktop left activity rail resize handle with persisted width, collapse-aware disabled state, narrow/mobile disablement, and focused Playwright coverage. No DEV rollout requested.
2026-05-24 06:07:27 +08:00
Code Queue Review 24f818adae feat: show code agent M3 evidence metadata 2026-05-23 15:21:00 +00:00
unidesk-code-queue-runner e295def55f feat: add code agent status summary 2026-05-23 15:08:23 +00:00
unidesk-code-queue-runner b5984d3a40 feat: expose code agent capability facts 2026-05-23 14:44:59 +00:00
Code Queue Review a0fbd8cdfa fix: trust green M3 status wiring 2026-05-23 10:38:50 +00:00
Code Queue Review 13bc519b8d test: gate Cloud Workbench layout smoke 2026-05-23 09:17:25 +00:00
HWLAB Code Queue f525c52258 test: add Cloud Web M3 read-only diagnostics contract 2026-05-22 07:17:33 +00:00
HWLAB Code Queue 6509a35804 feat: add hwlab cli and web skeleton 2026-05-21 14:45:20 +00:00