multica/server/internal/cli
yushen b9d2b88852 refactor(daemon): remove pairing flow, use CLI auth token instead
The daemon now reads the auth token from ~/.multica/config.json (set by
`multica auth login`) instead of requiring a browser-based pairing flow.
If not authenticated, it logs a message and exits.

Workspace ID is auto-resolved from the user's workspaces when not
explicitly set via flag/env.

Removed: daemon.json, pairing session flow, --config-path flag,
PairingSession type, PersistedConfig, LoadWorkspaceIDFromDaemonConfig.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 16:39:57 +08:00
..
client.go feat(auth): add browser-based CLI login flow 2026-03-26 14:51:41 +08:00
client_test.go test(cli): add unit tests for PostJSON API client method 2026-03-26 15:04:50 +08:00
config.go refactor(daemon): remove pairing flow, use CLI auth token instead 2026-03-26 16:39:57 +08:00
flags.go refactor(cli): unify daemon into multica-cli binary with cobra subcommands 2026-03-24 15:44:49 +08:00
output.go refactor(cli): unify daemon into multica-cli binary with cobra subcommands 2026-03-24 15:44:49 +08:00