picoclaw/web/backend
SiYue b4a5965602 refactor(onboard,api): harden copydir repo-root detection and use platform-neutral proc attrs naming
Address latest review comments from sky5454 in PR #2654.

scripts/copydir.go:

- Improve repository root detection in a safer, more deterministic way.

- Prefer locating repo root from the script source path via runtime.Caller(), then fallback to upward search from current working directory.

- Replace .git-only root detection with repository anchor validation: go.sum, LICENSE, and .github must exist.

- Keep \ placeholder expansion and existing in-repo path guards.

- Preserve destination safety check to prevent deleting/copying to repo root.

web/backend/api:

- Rename applyLauncherWindowsProcAttrs() to applyLauncherProcAttrs() to expose a platform-independent interface name.

- Keep platform-specific behavior split by build tags: windows keeps HideWindow SysProcAttr setup, non-windows remains no-op.

- Update gateway startup path to call the renamed helper.

Why:

- Follow reviewer feedback to avoid relying on .git detection alone and prefer runtime/file-anchor based repository location.

- Improve naming clarity by making cross-platform interfaces generic while preserving OS-specific implementation details internally.

Validation:

- go test ./cmd/picoclaw/internal/onboard

- go test ./web/backend/api
2026-04-25 00:31:36 +08:00
..
api refactor(onboard,api): harden copydir repo-root detection and use platform-neutral proc attrs naming 2026-04-25 00:31:36 +08:00
dashboardauth fix(launcher): fall back to token auth on unsupported platforms (#2466) 2026-04-10 11:12:54 +08:00
dist refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
launcherconfig refactor(web): switch dashboard auth from tokens to passwords (#2608) 2026-04-21 18:04:15 +08:00
middleware refactor(web): switch dashboard auth from tokens to passwords (#2608) 2026-04-21 18:04:15 +08:00
model feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
utils fix(launcher): refine console host display 2026-04-14 14:04:37 +08:00
winres feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
.gitignore feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
app_runtime.go fix(web): address latest Copilot review points 2026-04-14 23:39:59 +08:00
embed.go feat(web): implement macOS app feature and file logger (#1723) 2026-03-18 14:43:58 +08:00
embed_test.go feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
i18n.go feat(launcher): standard HTTP login/setup/logout flow for dashboard, frontend and backend impl. and fix windows pid lock for ws (#2339) 2026-04-08 21:43:51 +08:00
icon.ico feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
icon.png add systray ui for all platform (#1649) 2026-03-17 14:12:32 +08:00
main.go Keep launcher locale changes from mutating shared web-search routing (#2573) 2026-04-24 13:45:25 +08:00
main_test.go refactor(web): switch dashboard auth from tokens to passwords (#2608) 2026-04-21 18:04:15 +08:00
systray.go build: address PR review — fix Android launcher flags, systray tag, rename target 2026-04-12 18:50:52 +08:00
systray_icon_nonwindows.go refactor(web): clean up systray platform build files 2026-03-25 11:44:57 +08:00
systray_icon_windows.go refactor(web): clean up systray platform build files 2026-03-25 11:44:57 +08:00
systray_stub_nocgo.go build: add Android arm64 cross-compile support 2026-04-12 17:41:10 +08:00