Files
DeepSeek-Reasonix/scripts
SivanCola 344af3b12a fix(cli): close Integration D/E audit P1/P2
Problem
- Official release builders (goreleaser/npm/desktop) only injected main.version,
  so version --verbose reported git_commit/build_time_utc as unknown.
- buildinfo used vcs.time as build time (commit timestamp, not build clock).
- Completion registry drifted: task nested commands and run --ablate missing.
- MCP tool descriptions could inject CSI/OSC into the TUI; invalid tools were
  listed twice; completion optional-value/path and help text incomplete.

Root cause
- Makefile-only ldflags; incomplete registry/help absorption; no sanitize at
  external text boundary.

Fix
- Inject main.gitCommit + main.buildTimeUTC from Makefile, .goreleaser.yaml,
  npm/build.mjs, desktop-build.sh, verify-embedded-docs.sh.
- BuildTimeUTC defaults to unknown without ldflags (no vcs.time).
- Expand task monitor/* and --ablate; optional --resume; path flags return empty
  for shell file fallback; fish drops -f.
- sanitizeExternalDisplayText for MCP external fields; valid tools exclude
  SchemaError; tri-lingual help lists completion and version flags.
- Tests: release-style verbose, control-seq sanitize, optional resume, nested task.

Verification
- go test ./internal/cli -count=1
- go test ./cmd/reasonix ./internal/plugin -count=1
- desktop TestDesktopBuildLinksSharedSourceRevision
- Smoke: go build -ldflags ... && reasonix version --verbose; completion __complete

Documentation-impact: low - tri-lingual help lists completion and version
--verbose/--json; no new config keys.
2026-08-06 18:29:53 +08:00
..