Commit Graph
17 Commits
Author SHA1 Message Date
Florian Schmidt e38f9c453c feat(web): rework layout and quality of life (#12)
- App shell: top bar with connection state and Chat/Terminal toggles,
  per-column scrolling, sidebar only on the Notebooks page.
- Hash routes (#/notebooks/<path>, #/hosts, #/settings) so reloads and
  links keep the open notebook and page.
- Parameters sit beside the notebook on wide screens, collapsible, with
  missing-count summary and Reset; non-secret values are remembered per
  notebook in localStorage (secrets and undeclared names never stored).
- Sticky notebook header with breadcrumbs, check summary and run-all;
  Ctrl/Cmd+S saves the Markdown draft.
- Step cards show target, one deduplicated hint for missing values and
  copy feedback.
- Shared Dialog, Menu and CopyButton components; notebook and host
  actions move into menus and modal dialogs.
- Hosts page as a compact list; Settings split into cards with sign out
  for this browser.
2026-11-16 12:32:01 +01:00
Florian Schmidt 845d6c828e feat: chained notebooks with when sections and host blocks (#11)
A notebook can include another one and continue with what it produced:

- core: parse :::when{param=a,b}, ::use{notebook= as= with=} and
  ::host{name= address= user= port= capture=}; composeNotebook namespaces
  an included notebook's params, steps, captures and templates by alias
  (cycles, missing files, depth > 4 and child errors are reported on the
  use line). Defaults may reference captures and builtins
  ({{shellbook.public_key}}); required params and secrets gate only steps
  of their own scope; secretEnv passes a scope's secrets under local names.
- protocol: NotebookResponse gains includes and builtins.
- server: compose includes on load, inject builtins (client values are
  ignored), refuse steps in inactive when sections.
- web: render when/use/host blocks, group included params in the form,
  add a created machine to Hosts and capture its name, reload when an
  included notebook changes, run all checks only for active steps,
  authoring snippets for when, use and host.
2026-11-16 11:42:12 +01:00
Florian Schmidt 324ad4b39a fix: show why SSH connection tests and runs fail (#7)
Test connection, key installation and runs now tell authentication
failures apart from unreachable hosts (refused, timeout, DNS, ...)
instead of a generic "SSH connection failed".

The web client keeps the server's deliberate error messages (4xx,
502, 503) and shows them in the hosts page; unexpected 500 errors
still show only the status. The reload hint appears only on 409
conflicts.
2026-11-16 10:31:11 +01:00
Florian Schmidt 83e4e3f15e Merge branch 't3/manage-host-ssh-credentials'
# Conflicts:
#	.agents/mind/architecture.md
#	apps/server/src/app.ts
#	apps/web/src/App.tsx
#	packages/core/src/protocol.ts
2026-11-16 10:24:42 +01:00
Florian Schmidt 488f992bd3 fix(web): send workspace-relative notebook paths from the chat panel (#8)
The app passes notebook paths relative to notebooks/, but the chat
protocol uses workspace paths (notebooks/...). Every message sent while a
notebook was open was rejected as invalid, and "Open notebook" links on
Claude's edits loaded a non-existent path. ChatPanel now converts at its
boundary in both directions.
2026-11-16 10:23:05 +01:00
Florian Schmidt 63458dd3e4 Merge branch 't3/claude-chat-panel'
# Conflicts:
#	.agents/mind/gotchas.md
#	packages/core/src/protocol.ts
2026-11-16 10:23:05 +01:00
Florian Schmidt df6698c67d Merge branch 't3/notebook-management-authoring'
# Conflicts:
#	.agents/mind/architecture.md
#	packages/core/src/protocol.ts
2026-11-16 10:19:57 +01:00
Florian Schmidt 4d9a632625 feat(hosts): manage servers and encrypted SSH credentials in UI (#7) 2026-11-16 10:19:52 +01:00
Florian Schmidt 0055001abf feat(web): add notebook chat panel (#8) 2026-11-16 10:17:20 +01:00
Florian Schmidt 911387264b feat(notebooks): manage and author notebooks in the web UI (#9)
Add atomic, versioned notebook mutations, a searchable folder tree, and editor insertion forms. Validate notebook paths and symlink roots and retain drafts after external changes.

Add yaml as a direct web dependency, reusing the existing workspace library for comment-preserving frontmatter edits.
2026-11-16 10:16:43 +01:00
Florian Schmidt 02a22bef40 feat(settings): add browser setup and administration (#10) 2026-11-16 10:15:04 +01:00
Florian Schmidt 2857bfe047 style(web): drop UTF-8 byte order marks from new sources (#5) 2026-11-16 00:22:23 +01:00
Florian Schmidt b224fff7f3 feat(web): handle one-shot sensitive artifact downloads (#4)
Track sensitive download state per run in the session reducer. Fetch each artifact once into a blob so expired or consumed downloads show HTTP 410 without a separate preflight request. Verify the SSH-key notebook, capture substitution, failure sections and public-key upload provenance through App. Document demo and real terminal workflows.
2026-11-16 00:21:24 +01:00
Florian Schmidt a6429e0527 feat(web): add xterm terminal panel (#5)
Use @xterm/xterm for terminal emulation and its official @xterm/addon-fit for container sizing. Lazy-load both on first open to keep them out of the main bundle. Preserve the mounted terminal on collapse and offer explicit reconnect; provide an echo transport for demos.
2026-11-16 00:21:17 +01:00
Florian Schmidt 08d5441cf2 refactor(web): use real core in demos and tests (#4, #5) 2026-11-16 00:21:03 +01:00
Florian Schmidt 4e79af3e24 fix(web): keep host key prompt open after the aborted run finishes (#2)
The server publishes run.finished (exit -1) right after run.hostKeyUnknown, which closed the confirmation dialog immediately.
2026-11-16 00:13:24 +01:00
Florian Schmidt 443bf944b8 feat(web): add shell-first runbook UI and mock demo (#2)
Add notebook parameters, literal highlighted scripts, copy helpers, streamed runs, host-key confirmation, artifacts, conditional notes, login and optimistic Markdown editing. Keep the temporary core renderer isolated to mock mode.

Use React and Vite for the UI, react-markdown for safe Markdown rendering, highlight.js for shell syntax, and CodeMirror 6 for Markdown editing. Add Testing Library, jsdom and Vitest for component and event-state coverage.

Validate pnpm install, root typecheck and test (29 web tests, 1 server test), plus normal and mock web builds. Core contracts remain unchanged; real backend execution awaits the parallel core/server implementations.
2026-11-16 00:08:30 +01:00