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
3 changes: 2 additions & 1 deletion .docs/wiki/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This wiki is for the people who install and run an instance and for the people w

## At a glance

**Current version:** v0.61.1 · every version is on [[Releases]]
**Current version:** v0.62.0 · every version is on [[Releases]]

| | |
|---|---|
Expand Down Expand Up @@ -53,6 +53,7 @@ This wiki is for the people who install and run an instance and for the people w

## What's new

- **v0.62.0** makes uploads work in the Windows desktop app, where every upload, a picture into a gallery's Files and media property among them, answered "Internal error."; lets a Files and media property take several files at once and every PNG, JPEG, GIF and WebP image inside a zip; gives an error toast a ? that opens what went wrong, with the request id and, in the desktop app, the cause; and keeps the desktop server's warnings and errors in `form-md.log` in the data folder.
- **v0.61.1** lets an account that has no password, such as the desktop app's owner, set its first one without being asked for a current one, and adds [[Self-hosting]], [[Auth0]] and the `deploy/gcp` scripts.
- **v0.61.0** brought a desktop app whose window signs in with a key the server makes at each start and accepts only once, so a sign-in from outside the app's window is refused, and third-party notices that a build writes exactly as they are kept, the demo media and the extension kit included.

Expand Down
2 changes: 2 additions & 0 deletions .docs/wiki/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Since v0.43.0 each release also carries the desktop app: `form.md_X.Y.Z_aarch64.

The app is a window around the same `form-md` binary. It starts the server on this computer when it opens and stops it when you quit, signs you in as the owner without a password screen, and keeps your data in `~/form.md` (start the app with `FORMMD_DATA` set to use another folder). The server listens on `127.0.0.1:8750` so agents and `form-md mcp` find it at the usual address, or on another free port when 8750 is taken. It never listens beyond this computer; to share a workspace with other people, run the server on its own as below ([[Self-hosting]] walks through a hosted instance on your own domain).

Since v0.62.0 the app's server also writes its warnings and errors to `form-md.log` in the data folder (`~/form.md/form-md.log`), with the run before it in `form-md.log.1`. When a request answers "Internal error.", the ? on its toast opens the request id and the cause, and its line in the log names the request id, the path and the cause.

### Opening the app's workspace in a browser

The owner the app creates has the name of your operating system account, the email `owner@localhost` and no password: the window is signed in by the app itself. A browser opened at `http://127.0.0.1:8750` is not signed in and asks for an email and password, and there is no initial password to type.
Expand Down
3 changes: 2 additions & 1 deletion .docs/wiki/Releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

What each version of form.md brought, newest first. One row per version; the wording is the project's own record of that release.

- **Current version:** v0.61.1
- **Current version:** v0.62.0
- **Where releases come from:** Releases built by formcompiler and the update check and installer reading its form.md-updates release.
- **Downloads:** the README's Download section, and [[Install]] for servers.
- **How a release is cut:** `BRANCHING.md` at the repo root.
Expand All @@ -11,6 +11,7 @@ What each version of form.md brought, newest first. One row per version; the wor

| Version | What it brought |
|---|---|
| v0.62.0 | Uploads that work in the Windows desktop app, where every upload, a picture into a gallery's Files and media property among them, answered "Internal error."; several files at once and every PNG, JPEG, GIF and WebP image inside a zip in a Files and media property; a ? on an error toast that opens what went wrong, with the request id and, in the desktop app, the cause; and the desktop server's warnings and errors kept in `form-md.log` in the data folder |
| v0.61.1 | Lets an account that has no password, such as the desktop app's owner, set its first one without being asked for a current one, and adds [[Self-hosting]], [[Auth0]] and the `deploy/gcp` scripts |
| v0.61.0 | A desktop app whose window signs in with a key the server makes at each start and accepts only once, so a sign-in from outside the app's window is refused, and third-party notices that a build writes exactly as they are kept, the demo media and the extension kit included |
| v0.60.0 | A desktop app on Windows in which nothing the server starts (Claude Code and the other agents, the tunnel, the server's own clean-up) opens a console window, with `FORMMD_ENGINE_WINDOWED=0` to open one with the server's output for a single start, and the views and publish demos rebuilt with the app's current styles |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := v0.61.1
VERSION := v0.62.0
LDFLAGS := -s -w -X github.com/nodemode-ai/form.md/internal/app.Version=$(VERSION)
GO_BUILD := CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)"
TARGETS := linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">
<img alt="version v0.61.1" src="https://img.shields.io/badge/version-v0.61.1-eef0f4?style=flat-square">
<img alt="version v0.62.0" src="https://img.shields.io/badge/version-v0.62.0-eef0f4?style=flat-square">
<img alt="Go 1.26+" src="https://img.shields.io/badge/Go-1.26%2B-00ADD8?style=flat-square&logo=go&logoColor=white">
<img alt="TypeScript and Vite" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?style=flat-square">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down
23 changes: 23 additions & 0 deletions cmd/form-md/desktoplog.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import (
"io"
"log/slog"
"os"
"path/filepath"
)

const desktopLogName = "form-md.log"

func desktopLog(dataDir string, base *slog.Logger) (*slog.Logger, io.Closer, string, error) {
path := filepath.Join(dataDir, desktopLogName)
if _, err := os.Stat(path); err == nil {
_ = os.Rename(path, path+".1")
}
f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC|os.O_APPEND, 0o600)
if err != nil {
return base, nil, "", err
}
file := slog.NewTextHandler(f, &slog.HandlerOptions{Level: slog.LevelWarn})
return slog.New(slog.NewMultiHandler(base.Handler(), file)), f, path, nil
}
11 changes: 11 additions & 0 deletions cmd/form-md/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/nodemode-ai/form.md/internal/app"
"github.com/nodemode-ai/form.md/internal/config"
"github.com/nodemode-ai/form.md/internal/crypt"
"github.com/nodemode-ai/form.md/internal/httpx"
"github.com/nodemode-ai/form.md/internal/i18n"
"github.com/nodemode-ai/form.md/internal/nowindow"
"github.com/nodemode-ai/form.md/internal/ops"
Expand Down Expand Up @@ -115,6 +116,16 @@ func serve() int {
return 1
}
defer unlock()
if cfg.Desktop() {
httpx.ShowCauses(true)
if kept, closer, path, err := desktopLog(cfg.DataDir, log); err != nil {
log.Warn("the desktop log file could not be opened; warnings and errors go to standard error only", "err", err)
} else {
log = kept
defer closer.Close()
log.Info("warnings and errors are also written to the desktop log", "path", path)
}
}
st, err := store.Open(ctx, cfg.DataDir, key)
if err != nil {
log.Error("storage", "err", err)
Expand Down
2 changes: 1 addition & 1 deletion docs/EXTENSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ These are refused for an agent, an API token or a script: extension commands sta

## Limits

- `minimum_app` is compared with form.md's version (0.61.1 in this release; extensions need 0.50.0 or newer).
- `minimum_app` is compared with form.md's version (0.62.0 in this release; extensions need 0.50.0 or newer).
- A headless command has 120 s; through MCP the call returns an error after 60 s even if the command is still running in the window.
- Consent is stored in the browser per extension id, version and permission set; another browser or the desktop app asks again.
Loading
Loading