|
1 | | -wip: v1.17.9 reconciliation — altimate/ Tool-API surface green (checkpoint 4) |
| 1 | +wip: v1.17.9 reconciliation — §4 re-home TUI customizations into packages/tui (checkpoint 5) |
2 | 2 |
|
3 | | -Closes the last 3 typecheck errors in the fork's own src/altimate/** tree via the |
4 | | -tool-zod-compat adapter (§2.12): |
| 3 | +The TUI was extracted upstream to packages/tui (live) from cli/cmd/tui/** (dead — no |
| 4 | +@tui alias resolves it). Re-apply the fork customizations into the live package, |
| 5 | +preserving altimate_change markers. packages/tui + packages/core both typecheck GREEN. |
5 | 6 |
|
6 | | -- altimate-core-rewrite.ts: annotate execute return as the shim's `LegacyResult` so |
7 | | - the legacy `Tool.define` overload's metadata type (M) infers cleanly. This tool's |
8 | | - execute omits the `ctx` param, so M was being inferred from a complex multi-branch |
9 | | - return union and failing overload resolution. `args` still types from `parameters`. |
10 | | -- tool-lookup.ts: upstream's Tool rewrite made `info.init()` an Effect (was a Promise) |
11 | | - and `parameters` an Effect Schema (was zod). Run the init Effect via |
12 | | - `Effect.runPromise` and describe parameters from `Def.jsonSchema` (JSON Schema, |
13 | | - populated for both native tools and our legacy zod tools) instead of the removed |
14 | | - zod introspection. New `describeJsonSchema`/`inferJsonType` replace the zod walkers. |
| 7 | +Re-homed (functional + branding): |
| 8 | +- context/sdk.tsx — smooth-streaming delta pre-merge (ALTIMATE_SMOOTH_STREAMING). |
| 9 | + Adapted to v2 GlobalEvent (discriminant nested under `.payload`, not top-level). |
| 10 | +- routes/session/footer.tsx — YOLO-mode badge (ALTIMATE_CLI_YOLO). |
| 11 | +- routes/session/sidebar.tsx — "Altimate Code" branding (uses InstallationVersion). |
| 12 | +- component/logo.tsx — restore brand colors (primary/accent vs textMuted/text) in the |
| 13 | + rewritten 8-arg renderLine call-site. |
| 14 | +- component/dialog-status.tsx — `altimate mcp auth` branding fix. |
| 15 | +- component/error-component.tsx — `altimate-code: fatal:` title + AltimateAI/altimate-code |
| 16 | + issue URL (was anomalyco/opencode brand leak). |
| 17 | +- context/route.tsx — restore dropped navigate debug log (console.debug; tui has no |
| 18 | + structured logger). |
15 | 19 |
|
16 | | -src/altimate/** now typechecks with 0 errors (was 37 at the start of this resume). |
17 | | -Package total 3040 -> 3037; the remainder is upstream-shared restructure: stale-file |
18 | | -deletion (§3.4) + TUI/server re-home (§4) + Effect migration of survivor files. |
| 20 | +Flag re-home (packages/core/src/flag/flag.ts): added ALTIMATE_CALM_MODE, |
| 21 | +ALTIMATE_SMOOTH_STREAMING, ALTIMATE_CLI_YOLO getters + altTruthy helper, since packages/tui |
| 22 | +depends on @opencode-ai/core (not opencode) and could not otherwise see the fork flags. |
| 23 | + |
| 24 | +MOOT (not re-applied — upstream issue gone): dialog-mcp / dialog-workspace-list logger |
| 25 | +fixes (tui uses console.* throughout, has no structured logger, the old console.log/debug |
| 26 | +prints don't exist in the rewritten files). |
| 27 | + |
| 28 | +DEFERRED (tracked, code re-architected into other owner files — next pass): |
| 29 | +- theme #704 light-fg + code-block/inline-code bg → packages/tui/src/theme/index.ts |
| 30 | + (generateSystem/getSyntaxRules). One human decision: inline-code backgroundElement vs |
| 31 | + upstream's new background. |
| 32 | +- beginner/first-time tips + onboarding hint → feature-plugins/home/{tips,tips-view}.tsx |
| 33 | + (home is now a plugin-slot shell). |
| 34 | +- UpgradeIndicator: component + utils exist only in the old tree, not ported → blocks the |
| 35 | + footer + home upgrade-indicator blocks until ported into packages/tui/src/component. |
| 36 | +- sidebar trace section → sidebar_content plugin slot. |
| 37 | + |
| 38 | +OLD cli/cmd/tui/** files untouched (deleted later in §3.4 after all re-homing verified). |
0 commit comments