Session[] |
| `session.get({ path })` | Get session | Returns Session |
@@ -283,7 +283,7 @@ await client.session.prompt({
### Files
-| Method | Description | Response |
+| Metoda | Opis | Odgovor |
| ------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------- |
| `find.text({ query })` | Search for text in files | Array of match objects with `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
| `find.files({ query })` | Find files and directories by name | `string[]` (paths) |
@@ -324,7 +324,7 @@ const content = await client.file.read({
### TUI
-| Method | Description | Response |
+| Metoda | Opis | Odgovor |
| ------------------------------ | ------------------------- | --------- |
| `tui.appendPrompt({ body })` | Append text to the prompt | `boolean` |
| `tui.openHelp()` | Open the help dialog | `boolean` |
@@ -355,7 +355,7 @@ await client.tui.showToast({
### Auth
-| Method | Description | Response |
+| Metoda | Opis | Odgovor |
| ------------------- | ------------------------------ | --------- |
| `auth.set({ ... })` | Set authentication credentials | `boolean` |
@@ -374,7 +374,7 @@ await client.auth.set({
### Events
-| Method | Description | Response |
+| Metoda | Opis | Odgovor |
| ------------------- | ------------------------- | ------------------------- |
| `event.subscribe()` | Server-sent events stream | Server-sent events stream |
diff --git a/packages/web/src/content/docs/bs/server.mdx b/packages/web/src/content/docs/bs/server.mdx
index 9c77bd1aa..a6d331bce 100644
--- a/packages/web/src/content/docs/bs/server.mdx
+++ b/packages/web/src/content/docs/bs/server.mdx
@@ -86,7 +86,7 @@ opencode server izlaže sljedece API-je.
### Global
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | ---------------- | ------------------------------ | ------------------------------------ |
| `GET` | `/global/health` | Get server health and version | `{ healthy: true, version: string }` |
| `GET` | `/global/event` | Get global events (SSE stream) | Event stream |
@@ -95,7 +95,7 @@ opencode server izlaže sljedece API-je.
### Project
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | ------------------ | ----------------------- | --------------------------------------------- |
| `GET` | `/project` | List all projects | Project[] |
| `GET` | `/project/current` | Get the current project | Project |
@@ -104,7 +104,7 @@ opencode server izlaže sljedece API-je.
### Path & VCS
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | ------- | ------------------------------------ | ------------------------------------------- |
| `GET` | `/path` | Get the current path | Path |
| `GET` | `/vcs` | Get VCS info for the current project | VcsInfo |
@@ -113,7 +113,7 @@ opencode server izlaže sljedece API-je.
### Instance
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | ------------------- | ---------------------------- | --------- |
| `POST` | `/instance/dispose` | Dispose the current instance | `boolean` |
@@ -121,7 +121,7 @@ opencode server izlaže sljedece API-je.
### Config
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------- | ------------------- | --------------------------------- | ---------------------------------------------------------------------------------------- |
| `GET` | `/config` | Get config info | Config |
| `PATCH` | `/config` | Update config | Config |
@@ -131,7 +131,7 @@ opencode server izlaže sljedece API-je.
### Provider
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | -------------------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
| `GET` | `/provider` | List all providers | `{ all: `Provider[]`, default: {...}, connected: string[] }` |
| `GET` | `/provider/auth` | Get provider authentication methods | `{ [providerID: string]: `ProviderAuthMethod[]` }` |
@@ -142,7 +142,7 @@ opencode server izlaže sljedece API-je.
### Sessions
-| Method | Path | Description | Notes |
+| Metoda | Putanja | Opis | Napomene |
| -------- | ---------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------------------- |
| `GET` | `/session` | List all sessions | Returns Session[] |
| `POST` | `/session` | Create a new session | body: `{ parentID?, title? }`, returns Session |
@@ -167,7 +167,7 @@ opencode server izlaže sljedece API-je.
### Messages
-| Method | Path | Description | Notes |
+| Metoda | Putanja | Opis | Napomene |
| ------ | --------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `GET` | `/session/:id/message` | List messages in a session | query: `limit?`, returns `{ info: `Message`, parts: `Part[]`}[]` |
| `POST` | `/session/:id/message` | Send a message and wait for response | body: `{ messageID?, model?, agent?, noReply?, system?, tools?, parts }`, returns `{ info: `Message`, parts: `Part[]`}` |
@@ -180,7 +180,7 @@ opencode server izlaže sljedece API-je.
### Commands
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | ---------- | ----------------- | --------------------------------------------- |
| `GET` | `/command` | List all commands | Command[] |
@@ -188,7 +188,7 @@ opencode server izlaže sljedece API-je.
### Files
-| Method | Path | Description | Response |
+| Metoda | Putanja | Opis | Odgovor |
| ------ | ------------------------ | ---------------------------------- | ------------------------------------------------------------------------------------------- |
| `GET` | `/find?pattern=` | Find files and directories by name | `string[]` (paths) | @@ -209,7 +209,7 @@ opencode server izlaže sljedece API-je. ### Tools (Experimental) -| Method | Path | Description | Response | +| Metoda | Putanja | Opis | Odgovor | | ------ | ------------------------------------------- | ---------------------------------------- | -------------------------------------------- | | `GET` | `/experimental/tool/ids` | List all tool IDs |ToolIDs| | `GET` | `/experimental/tool?provider=&model=
` | List tools with JSON schemas for a model | ToolList| @@ -218,7 +218,7 @@ opencode server izlaže sljedece API-je. ### LSP, Formatters & MCP -| Method | Path | Description | Response | +| Metoda | Putanja | Opis | Odgovor | | ------ | ------------ | -------------------------- | -------------------------------------------------------- | | `GET` | `/lsp` | Get LSP server status |LSPStatus[]| | `GET` | `/formatter` | Get formatter status |FormatterStatus[]| @@ -229,7 +229,7 @@ opencode server izlaže sljedece API-je. ### Agents -| Method | Path | Description | Response | +| Metoda | Putanja | Opis | Odgovor | | ------ | -------- | ------------------------- | ------------------------------------------- | | `GET` | `/agent` | List all available agents |Agent[]| @@ -237,15 +237,15 @@ opencode server izlaže sljedece API-je. ### Logging -| Method | Path | Description | Response | -| ------ | ------ | ------------------------------------------------------------ | --------- | -| `POST` | `/log` | Write log entry. Body: `{ service, level, message, extra? }` | `boolean` | +| Metoda | Putanja | Opis | Odgovor | +| ------ | ------- | ------------------------------------------------------------ | --------- | +| `POST` | `/log` | Write log entry. Body: `{ service, level, message, extra? }` | `boolean` | --- ### TUI -| Method | Path | Description | Response | +| Metoda | Putanja | Opis | Odgovor | | ------ | ----------------------- | ------------------------------------------- | ---------------------- | | `POST` | `/tui/append-prompt` | Append text to the prompt | `boolean` | | `POST` | `/tui/open-help` | Open the help dialog | `boolean` | @@ -263,7 +263,7 @@ opencode server izlaže sljedece API-je. ### Auth -| Method | Path | Description | Response | +| Metoda | Putanja | Opis | Odgovor | | ------ | ----------- | --------------------------------------------------------------- | --------- | | `PUT` | `/auth/:id` | Set authentication credentials. Body must match provider schema | `boolean` | @@ -271,7 +271,7 @@ opencode server izlaže sljedece API-je. ### Events -| Method | Path | Description | Response | +| Metoda | Putanja | Opis | Odgovor | | ------ | -------- | ----------------------------------------------------------------------------- | ------------------------- | | `GET` | `/event` | Server-sent events stream. First event is `server.connected`, then bus events | Server-sent events stream | @@ -279,6 +279,6 @@ opencode server izlaže sljedece API-je. ### Docs -| Method | Path | Description | Response | -| ------ | ------ | ------------------------- | --------------------------- | -| `GET` | `/doc` | OpenAPI 3.1 specification | HTML page with OpenAPI spec | +| Metoda | Putanja | Opis | Odgovor | +| ------ | ------- | ------------------------- | --------------------------- | +| `GET` | `/doc` | OpenAPI 3.1 specification | HTML page with OpenAPI spec | diff --git a/packages/web/src/content/docs/bs/troubleshooting.mdx b/packages/web/src/content/docs/bs/troubleshooting.mdx index 3ef59c8b1..a2975d8db 100644 --- a/packages/web/src/content/docs/bs/troubleshooting.mdx +++ b/packages/web/src/content/docs/bs/troubleshooting.mdx @@ -7,7 +7,7 @@ Da biste otklonili probleme s OpenCode, počnite provjeravanjem dnevnika i lokal --- -## Dnevnici +## Logovi Log fajlovi se pišu na: diff --git a/packages/web/src/content/docs/bs/tui.mdx b/packages/web/src/content/docs/bs/tui.mdx index f9c97f4c6..0c80fdf77 100644 --- a/packages/web/src/content/docs/bs/tui.mdx +++ b/packages/web/src/content/docs/bs/tui.mdx @@ -340,13 +340,13 @@ Obje naredbe `/editor` i `/export` koriste editor specificiran u vašoj varijabl Popularne opcije uređivača uključuju: - `code` - Visual Studio Code -- `cursor` - Kursor -- `windsurf` - jedrenje na dasci +- `cursor` - Cursor +- `windsurf` - Windsurf - `nvim` - Neovim editorom - `vim` - Vim editor - `nano` - Nano editor - `notepad` - Windows Notepad -- `subl` - Uzvišeni tekst +- `subl` - Sublime Text :::note Neki uređivači kao što je VS Code moraju biti pokrenuti sa `--wait` zastavicom. diff --git a/packages/web/src/content/docs/bs/zen.mdx b/packages/web/src/content/docs/bs/zen.mdx index 7660adea7..6488f7ac3 100644 --- a/packages/web/src/content/docs/bs/zen.mdx +++ b/packages/web/src/content/docs/bs/zen.mdx @@ -17,7 +17,7 @@ Zen radi kao i svaki drugi provajder u OpenCode. Prijavite se u OpenCode Zen i u --- -## Background +## Pozadina Postoji veliki broj modela, ali samo mali dio radi dobro kao coding agent. Dodatno, vecina provajdera je drugacije konfigurisana, pa su performanse i kvalitet cesto neujednaceni. @@ -99,7 +99,7 @@ https://opencode.ai/zen/v1/models --- -## Pricing +## Cijene Podrzavamo pay-as-you-go model. Ispod su cijene **po 1M tokena**. @@ -156,7 +156,7 @@ Ako imate pitanja, kontaktirajte nas. --- -### Auto-reload +### Automatska dopuna Ako vam stanje padne ispod $5, Zen ce automatski dopuniti $20. @@ -164,7 +164,7 @@ Iznos auto-reloada mozete promijeniti. Auto-reload mozete i potpuno iskljuciti. --- -### Monthly limits +### Mjesečni limiti Mozete postaviti mjesecni limit potrosnje za cijeli workspace i za svakog clana tima. @@ -172,7 +172,7 @@ Na primjer, ako postavite mjesecni limit na $20, Zen nece potrositi vise od $20 --- -## Privacy +## Privatnost Svi nasi modeli su hostovani u SAD-u. Provajderi prate zero-retention politiku i ne koriste vase podatke za treniranje modela, uz sljedece izuzetke: @@ -185,7 +185,7 @@ Svi nasi modeli su hostovani u SAD-u. Provajderi prate zero-retention politiku i --- -## For Teams +## Za timove Zen odlicno radi i za timove. Mozete pozvati clanove tima, dodijeliti uloge, birati modele koje tim koristi i jos mnogo toga. @@ -197,7 +197,7 @@ Upravljanje workspace-om je trenutno besplatno za timove tokom beta faze. Vise d --- -### Roles +### Uloge Mozete pozvati clanove tima u workspace i dodijeliti uloge: @@ -208,7 +208,7 @@ Admini mogu postaviti i mjesecne limite potrosnje po clanu da drze troskove pod --- -### Model access +### Pristup modelima Admini mogu ukljuciti ili iskljuciti odredene modele za workspace. Zahtjevi prema iskljucenom modelu vracaju gresku. @@ -216,7 +216,7 @@ Ovo je korisno kada zelite zabraniti model koji prikuplja podatke. --- -### Bring your own key +### Donesite vlastiti ključ Mozete koristiti vlastite OpenAI ili Anthropic API kljuceve i dalje koristiti ostale modele u Zen-u. @@ -226,7 +226,7 @@ Na primjer, vasa organizacija mozda vec ima OpenAI ili Anthropic kljuc i zelite --- -## Goals +## Ciljevi OpenCode Zen smo napravili da: -- cgit v1.2.3