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 README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ wf dev ui/main.tsx

`wf create life` écrit le [starter TSX et CSS](examples/life/ui) dans `ui/` sans écraser un répertoire existant. `wf init` crée le manifeste `webfront.project.json`. `wf install` résout et vérifie les paquets, puis verrouille leurs versions dans `webfront-packages.lock.json`, sans lancer de scripts d'installation. `wf restore` reconstruit le cache depuis ce verrou ; `wf restore --offline` le vérifie sans réseau.

`wf dev` compile le TSX avec esbuild-wasm, ouvre l'interface et la reconstruit à chaque sauvegarde. Les erreurs apparaissent dans le terminal et l'aperçu, qui conserve sa dernière version valide. Ctrl+C l'arrête ; `wf build` compile une fois.
`wf dev` compile le TSX avec esbuild-wasm, ouvre l'interface et la reconstruit à chaque sauvegarde. Les erreurs apparaissent dans le terminal et l'aperçu, qui conserve sa dernière version valide. Échap ou le bouton Stop du terminal l'arrête ; `wf build` compile une fois.

Éditez `life-project/ui/main.tsx` et `style.css` avec votre éditeur habituel. React dessine la grille ; chaque génération attend C++ :

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ wf dev ui/main.tsx
- `wf create life` writes the editable [TSX and CSS starter](examples/life/ui) into `ui/`; it never overwrites an existing directory. The argument names a starter, not your project: `wf create app` writes a minimal TypeScript interface for a new application instead.
- `wf init` writes `webfront.project.json`, the manifest every other command reads: dependencies, entries, providers, scripts and permissions.
- `wf install` resolves the packages and their dependencies from the registry, verifies their integrity and records exact versions in `webfront-packages.lock.json`. It does not run the installation scripts of packages. `wf restore` rebuilds the cache from the lock on another machine, and `wf restore --offline` verifies it without any network.
- `wf dev` compiles the TSX with esbuild-wasm, opens the interface inside the application and rebuilds it whenever you save a source. A build error appears in the terminal and over the preview, which keeps its last good version. Ctrl+C stops it; `wf build` compiles once without opening anything.
- `wf dev` compiles the TSX with esbuild-wasm, opens the interface inside the application and rebuilds it whenever you save a source. A build error appears in the terminal and over the preview, which keeps its last good version. Escape or the terminal's Stop button stops it; `wf build` compiles once without opening anything.

Edit `life-project/ui/main.tsx` and `style.css` with your usual editor. React renders the field and controls; each generation awaits the C++ callback:

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ wf dev ui/main.tsx
- `wf create life` 将可编辑的 [TSX 和 CSS 模板](examples/life/ui)写入 `ui/`,已有目录会保留。参数是模板名。`wf create app` 可为新项目生成最小的 TypeScript 界面。
- `wf init` 写入 `webfront.project.json`。其他命令从该清单读取依赖、入口、资源提供器、脚本和权限。
- `wf install` 从包仓库解析依赖,校验完整性,并将确切版本写入 `webfront-packages.lock.json`。安装过程不会执行软件包的安装脚本。`wf restore` 可在其他机器上按锁文件重建缓存,`wf restore --offline` 可离线验证缓存。
- `wf dev` 用 esbuild-wasm 编译 TSX,在应用中打开界面,并在保存源码后重新构建。构建错误会显示在终端和预览上,预览保留最近一次成功的版本。按 Ctrl+C 停止。若只需编译一次,可运行 `wf build`。
- `wf dev` 用 esbuild-wasm 编译 TSX,在应用中打开界面,并在保存源码后重新构建。构建错误会显示在终端和预览上,预览保留最近一次成功的版本。按 Esc 键或终端的 Stop 按钮停止。若只需编译一次,可运行 `wf build`。

用常用编辑器修改 `life-project/ui/main.tsx` 和 `style.css`。React 绘制网格和控件,每一代的计算都等待 C++ 回调完成。

Expand Down
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ these entries stays in the GitHub releases and the Git history.
## Unreleased

### Breaking
- In the developer environment's terminal, Ctrl+C no longer interrupts a command nor clears the line: press Escape (with no text selected) or the terminal's **Stop** button; the interruption is unchanged (exit code 130, `webfront.commands.cancel`, the grace period of scripts, status `interrupted`), its messages say `interrupted` (#721, `docs/DEVELOPER_ENVIRONMENT.md`).
- A custom frontend whose `open()` takes `const ViewLaunch&` declares `static bool providesViewProof()`, `true` when it gives the proof to its view and `false` otherwise, or the developer environment no longer compiles with it: undeclared, its proven view would leave project writes and C++ commands unguarded (#680, ADR-027, `docs/FRONTENDS.md`).
- `cppFunction` (and `Space::cppFunction`) refuses the names starting with `webfront.inspector.`, reserved to the inspectors, with `std::invalid_argument`: rename such a function, and its `webFront.cppFunction(...)` calls in the page, to a name of your own (#680, ADR-027).
- An external tool that writes the project (`webfront.developer.*` writes) or starts terminal commands (`webfront.commands.start`, `cancel`) through the bridge is refused with `webfront.inspector.denied` when the frontend proves its view: run it in that view, use MCP automation, or set `trustLoopbackClients` knowingly (#680, ADR-027, `docs/DEVELOPER_ENVIRONMENT.md`).

### Added
- Copy, paste, cut and select all in the terminal of the developer environment with the system's shortcuts, Ctrl+C/V/X/A (Cmd on macOS), on CEF, WebView2, WebKitGTK, WKWebView and a system browser: they no longer become control characters, and a paste of several lines still runs them one after the other (#721, `docs/DEVELOPER_ENVIRONMENT.md`).
- Open the inspectors from the WebFront tab's menu of the developer environment: each panel shows in a floating window of the page and can be detached to a native secondary window (WebKitGTK, WKWebView, WebView2) or, with `trustLoopbackClients`, a tab of the system browser; the choice and the place are kept per project (#680, ADR-027, `docs/DEVELOPER_ENVIRONMENT.md`).
- See in the **Functions** panel of the inspectors what the application registered: each `cppFunction` with its signature written in TypeScript, the file and line of its registration, whether it receives the calling `UI`, its calls, failures, last error and durations, then the JavaScript functions that C++ calls; sort, search, and choose the refresh period (#681, ADR-027, `docs/DEVELOPER_ENVIRONMENT.md`).
- See in the **Browsers and tasks** panel the connected browsers (embedded view or external browser, local client, pending writes and calls), the running tasks of the server and the application's terminal commands (#681, ADR-027).
Expand Down Expand Up @@ -43,7 +45,7 @@ these entries stays in the GitHub releases and the Git history.

### Changed
- Detach and attach an inspector panel with small icons, a frame with an arrow leaving it or entering it, instead of the **Detach** and **Attach** words; their tooltip and accessible name say the action, and a greyed detach icon still says why (#722, `docs/DEVELOPER_ENVIRONMENT.md`).
- `wf test` stopped at its time limit or by Ctrl+C says how far its runner got, in its message and in the report's new `stage`: the last step reached, the spec in progress, and the runner files that never finished loading (#690, `docs/DEVELOPER_ENVIRONMENT.md`).
- `wf test` stopped at its time limit or by an interruption says how far its runner got, in its message and in the report's new `stage`: the last step reached, the spec in progress, and the runner files that never finished loading (#690, `docs/DEVELOPER_ENVIRONMENT.md`).
- Destroying the handle of a watch (`inspect::Watch`) waits for an operation of the inspectors in progress on another thread: destroy it outside every lock its source takes, or declare the watch with the state it owns (#682, ADR-027, `docs/WATCHES.md`).
- `cppFunction` and `Space::cppFunction` take a last, defaulted `std::source_location`, which the inspectors show; existing calls compile unchanged, the explicit `cppFunction<R, Args...>` form included (#681, ADR-027).
- Document the security contract of the application's callbacks: one that writes the project or what the server serves, starts a process or exposes a sensitive state takes the calling `UI` and checks `ui.isLocalClient()`, since WebFront guards only its own functions (#686, ADR-027, `docs/DEVELOPING_WITH_AGENTS.md`).
Expand Down
Loading
Loading