CodeNomad/docs/help/ne/install.md
Pascal André 39c0fa5833
chore(opencode): qualify and recommend runtime 2.1.4 (#1126)
## Summary

- Qualify OpenCode **2.1.4** (latest stable, 23 October) with the
existing locked **2.1.0 client/plugin** dependencies, and **recommend**
it.
- Keep the technical **minimum at 2.1.2**: no consumed contract changed,
so the minimum has no new reason to move.
- 2.1.2 and 2.1.3 daemons stay ready and get an optional upgrade offer.
2.1.4 is the `tested` version. Newer and custom labels keep
authenticated contract recognition.
- The reviewed-contract fast path lists the 2.1.2 minimum and the 2.1.4
target.
- The recommended version is updated in the help (all ten locales), both
READMEs, `CONTRIBUTING.md`, `dev-docs/OPENCODE_COMPATIBILITY.md` and the
architecture skill.

## Contract review (v2.1.3 → v2.1.4, 72 commits)

- **Authenticated OpenAPI:** 121 → **124 paths**, 146 → **149
operations**. No operation changed. The changes:
  - added `POST /api/experimental/client-mcp/token`;
  - added `GET /api/experimental/client-mcp` (WebSocket);
  - added `POST /api/debug/heap-dump`;
- `Config.InfoEncoded` gains the opt-in
`experimental.background_compaction`.

The session event (`V2EventEncoded`) and message schemas are unchanged.
None of the new routes is on the instance proxy allowlist, and the proxy
relays WebSockets only for SideCars and previews.
- **Published declarations:**
  - the client adds `mcp.client.token` and `debug.heapDump`;
- the schema and plugin changes are type refactors and unused-export
removals, among them `SessionID.descending`, `SessionEvent.Source` and
`PromptInput.FileAttachment.create`; `Session.Message.ID.fromEvent` now
takes any string instead of an event ID. CodeNomad uses none of these,
and every host module its native plugin bundles import
(`@opencode/plugin`, `/effect`, `/promise/adapter`, `/rpc`,
`@opencode/schema/location`, `/session`) still exists.
- **MCP elicitation forms**
([#58184](https://github.com/anomalyco/opencode/pull/58184)): an MCP
server asking for input during a tool call now creates a global-session
Form whose `form.created` event carries the server's location.
CodeNomad's live path requires that location for global Forms and shows
them as a **Project request**. Review found that the live path dropped
the location from the queued Form, so its reply lacked
`x-opencode-directory` and failed for a worktree or subdirectory until a
pending-request rescan. **#1127** fixes that; recovery already kept it.

A native probe (minimal stdio MCP server, a real Code Mode `execute`
call, CodeNomad-style reply) gives:

| Runtime | Form listed for the location | `form.created` carries the
location | Reply completes the tool |
  | --- | --- | --- | --- |
  | 2.1.3 | yes | **no** | yes |
  | 2.1.4 | yes | **yes** | yes (`action: accept`, `channel: stable`) |

On 2.1.3 such a request only appeared after a pending-request rescan; on
2.1.4 it appears live. The probe sends the location header itself, so it
checks the runtime contract; #1127 covers CodeNomad's live reply path.
- **Other changes** are covered by the native suites below:
- compaction (oldest-first shortening, ignored buffers, overflow
detection);
  - the agent's model for sessions without one;
  - V2 agent files;
  - V1 global-session import attribution;
  - MCP lifecycle fixes.
- **Live check:** this machine's shared daemon runs 2.1.4, and the
CodeNomad desktop session works through it.

## Isolated Windows qualification

Base: dev `9ac792fff`; Node **24.20.0**; exact official CLI **2.1.4**;
unchanged locked client/plugin **2.1.0**.

- **Build and checks:** production server/UI/native plugin builds,
server and root typechecks, native bundle guard.
- **Native runtime (9/9):**
  - Code Mode job ordering, plugin runtime, automation;
  - complete pruning, history, ownership, worktree and event relay;
  - loaded-only pending snapshot;
- Missions contract, family control, native and Compare/Wayfinder
trajectory.
- **Sessions (15/15):** environment, fork, aside, interrupt, lifecycle,
blank cleanup, prompt skills, provider usage/accounts/selection, service
usage, web search, plugin packages, output limit, Promise-tool failure.
- **Recurring (5/5):** all **11 recurring Mission journeys**, subagent
depth, **2 MiB** compaction, permission receipts.
- **Migrations (10/10):**
- history from **2.0.3, beta-19271, 2.0.32, 2.1.0, 2.1.1, 2.1.2 and
2.1.3** to 2.1.4;
  - Git degraded/init;
  - temporary workspaces.
- **Installation (3/3), with the 2.1.4 recommendation:**
  - fresh install of the 2.1.2 minimum;
- native **2.0.15 → 2.1.4** upgrade, after which the already-running
daemon keeps its PID and 2.0.15 version;
  - explicit OpenCode **1.18.10 → 2.1.4** replacement.
- **After the recommendation change:**
- admission, transport, update, installation and instance proxy units
**116 passed, 1 POSIX-only skipped**;
  - full server **2,471 passed, 8 skipped**, no failure or cancellation;
  - UI units **1,699/1,699**;
  - focused browser **126/126**;
  - native pruning with the real rendered UI;
  - the exact CI invocation of the Code Mode regression (without tsx);
  - ten-locale help checks (**9/9**).

This is Windows automation evidence. In CI, `latest` resolves to 2.1.4:
the compatibility job runs the native suites against the minimum and
latest on Windows, and the migration and Git-degraded certification runs
them on Ubuntu, Windows and macOS. WSL, packaged desktop,
installers/updater end-to-end and real mobile devices keep their
separate release gates.
2026-10-24 13:34:36 +02:00

11 KiB

CodeNomad स्थापना गर्नुहोस्

स्थानीय डेस्कटप होस्ट रोज्नुहोस् वा स्वतन्त्र सर्भर चलाउनुहोस्। दुवै अवस्थामा साझा नेटिभ सेवा र इतिहास OpenCode को स्वामित्वमा हुन्छन्।

डेस्कटप डाउनलोड

  1. नवीनतम रिलिज खोल्नुहोस्।
  2. आफ्नो अपरेटिङ सिस्टम र प्रोसेसरसँग मिल्ने build रोज्नुहोस्।
  3. ZIP निकाल्नुहोस् वा प्लेटफर्म प्याकेज स्थापना/चलाउनुहोस्, त्यसपछि CodeNomad सुरु गर्नुहोस्।
प्लेटफर्म Electron रिलिज Tauri रिलिज प्लेटफर्म टिप्पणी
macOS ZIP, Intel वा Apple Silicon ZIP, Intel वा Apple Silicon समावेश गरिएको रनटाइमका लागि macOS 13.5 वा पछिको आवश्यक छ।
Windows ZIP, x64 Installer, x64 Windows 10 वा पछिको; Tauri ले WebView2 प्रयोग गर्छ।
Linux Debian प्याकेज, x64 AppImage, x64 Ubuntu 24.04 मा build र परीक्षण गरिएको; पुराना वितरणसँग अनुकूलता सुनिश्चित छैन।

डेस्कटप रिलिजमा ब्याकएन्ड र OpenCode installer लाई चाहिने रनटाइम स्रोत समावेश छन्, त्यसैले प्रयोग गर्न छुट्टै Node.js/npm स्थापना चाहिँदैन। Git समावेश छैन। नेटिभ ब्राउजर स्वचालन Electron र Windows Tauri मा समर्थित छ; अन्य Tauri प्लेटफर्मले iframe पूर्वावलोकन प्रयोग गर्छन्।

प्रमाणित डाउनलोड सुरु गर्दा रोकिएमा प्लेटफर्म समस्या समाधान हेर्नुहोस्। चेतावनी छल्नकै लागि अविश्वसनीय archive कहिल्यै नचलाउनुहोस्।

Linux मा स्थापना

डाउनलोड गरिएको रिलिज भएको फोल्डरबाट यसको वास्तविक संस्करण र फाइल नाम राख्नुहोस्:

sudo apt install ./CodeNomad-Electron-linux-x64-<version>.deb

Tauri AppImage का लागि:

chmod +x CodeNomad-Tauri-linux-x64-<version>.AppImage
./CodeNomad-Tauri-linux-x64-<version>.AppImage

FUSE उपलब्ध नभए AppImage को extraction-and-run मोड प्रयोग गर्नुहोस्:

./CodeNomad-Tauri-linux-x64-<version>.AppImage --appimage-extract-and-run

Electron Debian स्थापनाले Chromium sandbox कन्फिगर गर्छ। स्थापना समस्याको उपायका रूपमा sandbox अक्षम नगर्नुहोस्। Linux Tauri graphics समस्याका लागि लक्षित WebKit उपाय छ।

आवश्यकता

आवश्यकता कहाँ उपलब्ध हुनुपर्छ हालको आवश्यकता
OpenCode CLI चयन गरिएको कार्यान्वयन होस्ट, लागू भए चयन गरिएको WSL वितरणसमेत न्यूनतम 2.1.2; 2.1.4 सिफारिस/योग्यता जाँच गरिएको लक्ष्य हो। नयाँ वा अनुकूलित संस्करणलाई परीक्षण नभएको भन्दै निषेध नगरी contract जाँच गरिन्छ।
Git CodeNomad ब्याकएन्ड खाताको PATH रिपोजिटरी पहिचान, Git कार्य र worktree का लागि आवश्यक।
Node.js/npm स्वतन्त्र सर्भर र स्रोत-build होस्ट Node.js 24 LTS; पुनरुत्पादनयोग्य स्रोत build ले .node-version (24.20.0) प्रयोग गर्छन्। डेस्कटप रनटाइम/स्थापना स्रोतमा समावेश।
कार्यस्थान फोल्डर ब्याकएन्डले पहुँच गर्न सक्ने डिस्क स्पष्ट रूपमा खोलिएको भौतिक फोल्डर, रिमोट ब्राउजरले अनुमान गरेको उपकरण-स्थानीय फोल्डर होइन।

Windows मा command-line/third-party पहुँच सक्षम गरेर Git for Windows स्थापना गर्नुहोस्। प्रयोगकर्ताले लेख्न सक्ने per-user स्थापना पर्याप्त छ। macOS/Linux मा Git का प्लेटफर्म निर्देशन प्रयोग गर्नुहोस्।

PATH बदलेपछि डेस्कटप एप पूर्ण रूपमा बन्द गरी फेरि सुरु गर्नुहोस्, वा अभिप्रेत खातामा स्वतन्त्र ब्याकएन्ड पुनः सुरु गर्नुहोस्। ब्राउजर reload गर्दा ब्याकएन्ड वातावरण अद्यावधिक हुँदैन। WSL भित्र मात्र उपलब्ध Git ले Windows ब्याकएन्डको Git आवश्यकता पूरा गर्दैन।

Git नभए पनि भौतिक फोल्डर खोलेर डाइरेक्टरी-मात्र कुराकानी गर्न सकिन्छ, एजेन्टसँग स्थापना सहायता माग्नसमेत। रिपोजिटरी/worktree कार्य उपलब्ध हुँदैनन्; सत्र पहुँच त्यही फोल्डरमा सीमित रहन्छ। CodeNomad ले prompt/custom command अघि एजेन्टलाई ब्याकएन्ड Git उपलब्धताबारे बताउँछ र पुनःस्थापनापछि त्यो सूचना हटाउँछ। एजेन्टको कार्यान्वयन होस्ट ब्याकएन्ड होस्टभन्दा फरक हुन सक्छ, त्यसैले एजेन्टको shell मा मात्र होइन ब्याकएन्डका लागि Git स्थापना गर्नुहोस्।

पहिलो सुरुवातमा OpenCode चयन गर्नुहोस्

  1. सेटअपमा अनुकूल विद्यमान executable रोज्नुहोस् वा दिइएको OpenCode स्थापना कार्य प्रयोग गर्नुहोस्।
  2. परियोजना खोल्नुअघि रनटाइम स्थिति प्रमाणित गर्नुहोस्।
  3. executable, स्थापना र साझा सेवा छुट्टाछुट्टै व्यवस्थापन गर्न प्राथमिकताहरू → OpenCode मा फर्कनुहोस्।

CodeNomad ले PATH का अनुकूल executable प्राथमिकता दिन्छ र स्पष्ट चयन गरिएको executable पनि समर्थन गर्छ। PATH ले पुरानो OpenCode सुरु गर्छ भने, सेटअपले npm बाट स्थापित OpenCode 1.x लाई पुष्टिपछि प्रतिस्थापन गर्ने, वा अर्कै तरिकाले गरिएको स्थापनाको छेउमा CodeNomad का लागि OpenCode 2 स्थापना गर्ने प्रस्ताव गर्छ, जुन स्थापनालाई यसले कहिल्यै बदल्दैन; OpenCode सेटअप हेर्नुहोस्। CLI स्थापना/अपडेटले चलिरहेको साझा सेवा चुपचाप पुनः सुरु गर्दैन। पुनःसुरुवात/reload का असर, WSL र सत्र वातावरणका लागि OpenCode सेटअप हेर्नुहोस्।

सट्टामा ब्राउजर प्रयोग गर्नुहोस्

सर्भर होस्टमा Node.js/npm, Git र OpenCode स्थापना गरी सर्भर सुरु गर्ने प्रक्रिया प्रयोग गर्नुहोस्। छापिएको ठेगाना, कन्फिगर गरिएको प्रमाणीकरण र विश्वसनीय प्रमाणपत्रबाट जोडिनुहोस्। ब्राउजर/PWA लाई चलिरहेको ब्याकएन्ड चाहिन्छ; यो परियोजनाको अफलाइन प्रतिलिपि होइन।

पोर्ट, binding र TLS का लागि प्रत्यक्ष पहुँच प्रयोग गर्नुहोस्। inbound पोर्ट नखोली उपकरण जोड्न Remote Control प्रयोग गर्नुहोस्। विकास र प्याकेजिङ आदेशका लागि स्रोत build हेर्नुहोस्।