You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b795772
Browse filesBrowse the repository at this point in the historyBrowse files
This repo is the Alterspective fork (`origin` = `Alter-Igor/opencode`, `upstream` = `anomalyco/opencode`). We work fork-locally: no upstream PRs; keep every local change small and in low-churn files so `git fetch upstream && git merge upstream/dev` stays clean. After any upstream sync: `bun install`, `bun typecheck` from package dirs, `bun test` from `packages/core` and `packages/opencode` (some tests fail on Windows pre-existing — compare against the pre-merge baseline before blaming the sync).
166
166
167
167
-**Our patches**: `packages/opencode/src/provider/vision-proxy.ts` (vision proxy middleware for text-only models), wired via `wrapLanguageModel` middleware in `packages/opencode/src/session/llm.ts`. Regression test: `packages/opencode/test/provider/vision-proxy.test.ts` — run it after every upstream sync.
168
+
- **Alterspective integration** (`.opencode/` only — zero `src/` changes, upstream can't conflict): plugins `plugin/synapse-coder-reporter.ts` (LSP-diagnostics paired-correction reporter to Synapse Coder staging; env-gated `SYNAPSE_CODER_REPORTER_ENABLED`, offline queue `.opencode/synapse-coder-queue.json`, first-use TUI toast) and `plugin/alterspective-rag-standards.ts` (standards system-prompt injection via `experimental.chat.system.transform`); `scripts/health-check.ts` (health/version sidecar, port 4040); `opencode.jsonc` wires Alterspective MCPs (synapse-coder via canonical host `staging.synapse-coder-mcp.alterspective.com.au`, alterspective-rag, keystone, timely, sharedo, vault-local, azure-devops — local entries need `command: string[]` + `environment` + `enabled`, not `args`/`env`). Tests: `packages/opencode/test/plugin/synapse-coder-reporter/` and `test/plugin/alterspective-rag-standards/` — run after upstream syncs. Plan + evidence: `docs/implementation/current/SYN-001-synapse-coder-reporter/` (merged PRs #1, #2).
168
169
-**Alterspective branding** (TUI): `packages/tui/src/theme/assets/alterspective.json` (brand palette theme, registered in `theme/index.ts`), fork default theme set to `alterspective` in `packages/tui/src/context/theme.tsx`, ALTERSPECTIVE ASCII wordmark in `packages/tui/src/logo.ts` (shared by `util/presentation.ts` epilogue via import), home splash left-aligned per brand rule LOGO-001 in `packages/tui/src/routes/home.tsx`. After upstream syncs touching these files, re-verify the wordmark renders (bun -e render check) and the theme still registers.
169
170
-**Windows env**: `turbo.json``globalPassThroughEnv` includes `NODIST_PREFIX`/`NODIST_X64` — required so the Nodist node shim works under turbo's strict env-mode (the pre-push hook's 30-package typecheck fails without it). Do not remove.
170
171
-**Symlinks**: Windows has no symlink privilege here, so repo symlinks check out as text placeholders. The two typecheck-blocking ones (`packages/app/src/custom-elements.d.ts`, `packages/enterprise/src/custom-elements.d.ts`) are replaced with local hardlinks hidden via `git update-index --skip-worktree` (list them: `git ls-files -v | Select-String '^S'`). ~60 asset symlinks (favicons etc.) remain placeholders — harmless for typecheck/TUI, but app/web builds serving those assets need Developer Mode enabled first.
**Phase:** MERGED + ACTIVATED. Plugin merged to `dev` via PR #1, canonical-host switch via PR #2. Reporter is live: `SYNAPSE_CODER_REPORTER_ENABLED=true` + staging bearer persisted at User scope; activation probe accepted by Synapse (see below). Related infra/docs: staging canonical host provisioned + global agent file corrected (Alterspective-Intelligence PRs #337, #341, #342).
5
+
**Branch:** merged to `dev` (branches/worktrees cleaned up)
6
+
7
+
## Final Validation Evidence (all observed)
8
+
9
+
- Merged: PR #1 (`0fbe82b`), PR #2 (`84215b1`) on `Alter-Igor/opencode`
10
+
-`bun typecheck` from `packages/opencode` on merged `dev`: 0 errors
11
+
-`bun test` (3 new files) on merged `dev`: 39/39 pass
- Learning loop verified end-to-end: 6 lessons promoted via human-gated review board (incl. the keystone-role-claim lesson, independently re-verified), 2 rejected (incl. this plugin's own test probes); A/B generation tests confirm promoted lessons are retrieved (`retrievalMode: rag`) and followed
14
+
- Launcher note: `opencodealt.bat` (Nodist bin) fixed to preserve caller cwd and pass args through
0 commit comments