Skip to content

Commit 246e901

Browse files
committed
Merge dev into sqlite2
2 parents 0ccef1b + b8e7265 commit 246e901

213 files changed

Lines changed: 8915 additions & 3071 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Close stale PRs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
dryRun:
7+
description: "Log actions without closing PRs"
8+
type: boolean
9+
default: false
10+
schedule:
11+
- cron: "0 6 * * *"
12+
13+
permissions:
14+
contents: read
15+
issues: write
16+
pull-requests: write
17+
18+
jobs:
19+
close-stale-prs:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Close inactive PRs
23+
uses: actions/github-script@v8
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
script: |
27+
const DAYS_INACTIVE = 60
28+
const cutoff = new Date(Date.now() - DAYS_INACTIVE * 24 * 60 * 60 * 1000)
29+
const { owner, repo } = context.repo
30+
const dryRun = context.payload.inputs?.dryRun === "true"
31+
const stalePrs = []
32+
33+
core.info(`Dry run mode: ${dryRun}`)
34+
35+
const prs = await github.paginate(github.rest.pulls.list, {
36+
owner,
37+
repo,
38+
state: "open",
39+
per_page: 100,
40+
sort: "updated",
41+
direction: "asc",
42+
})
43+
44+
for (const pr of prs) {
45+
const lastUpdated = new Date(pr.updated_at)
46+
if (lastUpdated > cutoff) {
47+
core.info(`PR ${pr.number} is fresh`)
48+
continue
49+
}
50+
51+
stalePrs.push(pr)
52+
}
53+
54+
if (!stalePrs.length) {
55+
core.info("No stale pull requests found.")
56+
return
57+
}
58+
59+
for (const pr of stalePrs) {
60+
const issue_number = pr.number
61+
const closeComment = `Closing this pull request because it has had no updates for more than ${DAYS_INACTIVE} days. If you plan to continue working on it, feel free to reopen or open a new PR.`
62+
63+
if (dryRun) {
64+
core.info(`[dry-run] Would close PR #${issue_number} from ${pr.user.login}`)
65+
continue
66+
}
67+
68+
await github.rest.issues.createComment({
69+
owner,
70+
repo,
71+
issue_number,
72+
body: closeComment,
73+
})
74+
75+
await github.rest.pulls.update({
76+
owner,
77+
repo,
78+
pull_number: issue_number,
79+
state: "closed",
80+
})
81+
82+
core.info(`Closed PR #${issue_number} from ${pr.user.login}`)
83+
}

.opencode/command/ai-deps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Please read @package.json and @packages/opencode/package.json.
77
Your job is to look into AI SDK dependencies, figure out if they have versions that can be upgraded (minor or patch versions ONLY no major ignore major changes).
88

99
I want a report of every dependency and the version that can be upgraded to.
10-
What would be even better is if you can give me links to the changelog for each dependency, or at least some reference info so I can see what bugs were fixed or new features were added.
10+
What would be even better is if you can give me brief summary of the changes for each dep and a link to the changelog for each dependency, or at least some reference info so I can see what bugs were fixed or new features were added.
1111

1212
Consider using subagents for each dep to save your context window.
1313

.opencode/command/learn.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
description: Extract non-obvious learnings from session to AGENTS.md files to build codebase understanding
3+
---
4+
5+
Analyze this session and extract non-obvious learnings to add to AGENTS.md files.
6+
7+
AGENTS.md files can exist at any directory level, not just the project root. When an agent reads a file, any AGENTS.md in parent directories are automatically loaded into the context of the tool read. Place learnings as close to the relevant code as possible:
8+
9+
- Project-wide learnings → root AGENTS.md
10+
- Package/module-specific → packages/foo/AGENTS.md
11+
- Feature-specific → src/auth/AGENTS.md
12+
13+
What counts as a learning (non-obvious discoveries only):
14+
15+
- Hidden relationships between files or modules
16+
- Execution paths that differ from how code appears
17+
- Non-obvious configuration, env vars, or flags
18+
- Debugging breakthroughs when error messages were misleading
19+
- API/tool quirks and workarounds
20+
- Build/test commands not in README
21+
- Architectural decisions and constraints
22+
- Files that must change together
23+
24+
What NOT to include:
25+
26+
- Obvious facts from documentation
27+
- Standard language/framework behavior
28+
- Things already in an AGENTS.md
29+
- Verbose explanations
30+
- Session-specific details
31+
32+
Process:
33+
34+
1. Review session for discoveries, errors that took multiple attempts, unexpected connections
35+
2. Determine scope - what directory does each learning apply to?
36+
3. Read existing AGENTS.md files at relevant levels
37+
4. Create or update AGENTS.md at the appropriate level
38+
5. Keep entries to 1-3 lines per insight
39+
40+
After updating, summarize which AGENTS.md files were created/updated and how many learnings per file.
41+
42+
$ARGUMENTS

README.ar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<a href="README.de.md">Deutsch</a> |
2323
<a href="README.es.md">Español</a> |
2424
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
2526
<a href="README.da.md">Dansk</a> |
2627
<a href="README.ja.md">日本語</a> |
2728
<a href="README.pl.md">Polski</a> |

README.br.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<a href="README.de.md">Deutsch</a> |
2323
<a href="README.es.md">Español</a> |
2424
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
2526
<a href="README.da.md">Dansk</a> |
2627
<a href="README.ja.md">日本語</a> |
2728
<a href="README.pl.md">Polski</a> |

README.da.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<a href="README.de.md">Deutsch</a> |
2323
<a href="README.es.md">Español</a> |
2424
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
2526
<a href="README.da.md">Dansk</a> |
2627
<a href="README.ja.md">日本語</a> |
2728
<a href="README.pl.md">Polski</a> |

README.de.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<a href="README.de.md">Deutsch</a> |
2323
<a href="README.es.md">Español</a> |
2424
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
2526
<a href="README.da.md">Dansk</a> |
2627
<a href="README.ja.md">日本語</a> |
2728
<a href="README.pl.md">Polski</a> |

README.es.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<a href="README.de.md">Deutsch</a> |
2323
<a href="README.es.md">Español</a> |
2424
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
2526
<a href="README.da.md">Dansk</a> |
2627
<a href="README.ja.md">日本語</a> |
2728
<a href="README.pl.md">Polski</a> |

README.fr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<a href="README.de.md">Deutsch</a> |
2323
<a href="README.es.md">Español</a> |
2424
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
2526
<a href="README.da.md">Dansk</a> |
2627
<a href="README.ja.md">日本語</a> |
2728
<a href="README.pl.md">Polski</a> |

README.it.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<p align="center">
2+
<a href="https://opencode.ai">
3+
<picture>
4+
<source srcset="packages/console/app/src/asset/logo-ornate-dark.svg" media="(prefers-color-scheme: dark)">
5+
<source srcset="packages/console/app/src/asset/logo-ornate-light.svg" media="(prefers-color-scheme: light)">
6+
<img src="packages/console/app/src/asset/logo-ornate-light.svg" alt="Logo OpenCode">
7+
</picture>
8+
</a>
9+
</p>
10+
<p align="center">L’agente di coding AI open source.</p>
11+
<p align="center">
12+
<a href="https://opencode.ai/discord"><img alt="Discord" src="https://img.shields.io/discord/1391832426048651334?style=flat-square&label=discord" /></a>
13+
<a href="https://www.npmjs.com/package/opencode-ai"><img alt="npm" src="https://img.shields.io/npm/v/opencode-ai?style=flat-square" /></a>
14+
<a href="https://github.com/anomalyco/opencode/actions/workflows/publish.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/anomalyco/opencode/publish.yml?style=flat-square&branch=dev" /></a>
15+
</p>
16+
17+
<p align="center">
18+
<a href="README.md">English</a> |
19+
<a href="README.zh.md">简体中文</a> |
20+
<a href="README.zht.md">繁體中文</a> |
21+
<a href="README.ko.md">한국어</a> |
22+
<a href="README.de.md">Deutsch</a> |
23+
<a href="README.es.md">Español</a> |
24+
<a href="README.fr.md">Français</a> |
25+
<a href="README.it.md">Italiano</a> |
26+
<a href="README.da.md">Dansk</a> |
27+
<a href="README.ja.md">日本語</a> |
28+
<a href="README.pl.md">Polski</a> |
29+
<a href="README.ru.md">Русский</a> |
30+
<a href="README.ar.md">العربية</a> |
31+
<a href="README.no.md">Norsk</a> |
32+
<a href="README.br.md">Português (Brasil)</a>
33+
</p>
34+
35+
[![OpenCode Terminal UI](packages/web/src/assets/lander/screenshot.png)](https://opencode.ai)
36+
37+
---
38+
39+
### Installazione
40+
41+
```bash
42+
# YOLO
43+
curl -fsSL https://opencode.ai/install | bash
44+
45+
# Package manager
46+
npm i -g opencode-ai@latest # oppure bun/pnpm/yarn
47+
scoop install opencode # Windows
48+
choco install opencode # Windows
49+
brew install anomalyco/tap/opencode # macOS e Linux (consigliato, sempre aggiornato)
50+
brew install opencode # macOS e Linux (formula brew ufficiale, aggiornata meno spesso)
51+
paru -S opencode-bin # Arch Linux
52+
mise use -g opencode # Qualsiasi OS
53+
nix run nixpkgs#opencode # oppure github:anomalyco/opencode per l’ultima branch di sviluppo
54+
```
55+
56+
> [!TIP]
57+
> Rimuovi le versioni precedenti alla 0.1.x prima di installare.
58+
59+
### App Desktop (BETA)
60+
61+
OpenCode è disponibile anche come applicazione desktop. Puoi scaricarla direttamente dalla [pagina delle release](https://github.com/anomalyco/opencode/releases) oppure da [opencode.ai/download](https://opencode.ai/download).
62+
63+
| Piattaforma | Download |
64+
| --------------------- | ------------------------------------- |
65+
| macOS (Apple Silicon) | `opencode-desktop-darwin-aarch64.dmg` |
66+
| macOS (Intel) | `opencode-desktop-darwin-x64.dmg` |
67+
| Windows | `opencode-desktop-windows-x64.exe` |
68+
| Linux | `.deb`, `.rpm`, oppure AppImage |
69+
70+
```bash
71+
# macOS (Homebrew)
72+
brew install --cask opencode-desktop
73+
# Windows (Scoop)
74+
scoop bucket add extras; scoop install extras/opencode-desktop
75+
```
76+
77+
#### Directory di installazione
78+
79+
Lo script di installazione rispetta il seguente ordine di priorità per il percorso di installazione:
80+
81+
1. `$OPENCODE_INSTALL_DIR` – Directory di installazione personalizzata
82+
2. `$XDG_BIN_DIR` – Percorso conforme alla XDG Base Directory Specification
83+
3. `$HOME/bin` – Directory binaria standard dell’utente (se esiste o può essere creata)
84+
4. `$HOME/.opencode/bin` – Fallback predefinito
85+
86+
```bash
87+
# Esempi
88+
OPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash
89+
XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash
90+
```
91+
92+
### Agenti
93+
94+
OpenCode include due agenti integrati tra cui puoi passare usando il tasto `Tab`.
95+
96+
- **build** – Predefinito, agente con accesso completo per il lavoro di sviluppo
97+
- **plan** – Agente in sola lettura per analisi ed esplorazione del codice
98+
- Nega le modifiche ai file per impostazione predefinita
99+
- Chiede il permesso prima di eseguire comandi bash
100+
- Ideale per esplorare codebase sconosciute o pianificare modifiche
101+
102+
È inoltre incluso un sotto-agente **general** per ricerche complesse e attività multi-step.
103+
Viene utilizzato internamente e può essere invocato usando `@general` nei messaggi.
104+
105+
Scopri di più sugli [agenti](https://opencode.ai/docs/agents).
106+
107+
### Documentazione
108+
109+
Per maggiori informazioni su come configurare OpenCode, [**consulta la nostra documentazione**](https://opencode.ai/docs).
110+
111+
### Contribuire
112+
113+
Se sei interessato a contribuire a OpenCode, leggi la nostra [guida alla contribuzione](./CONTRIBUTING.md) prima di inviare una pull request.
114+
115+
### Costruire su OpenCode
116+
117+
Se stai lavorando a un progetto correlato a OpenCode e che utilizza “opencode” come parte del nome (ad esempio “opencode-dashboard” o “opencode-mobile”), aggiungi una nota nel tuo README per chiarire che non è sviluppato dal team OpenCode e che non è affiliato in alcun modo con noi.
118+
119+
### FAQ
120+
121+
#### In cosa è diverso da Claude Code?
122+
123+
È molto simile a Claude Code in termini di funzionalità. Ecco le principali differenze:
124+
125+
- 100% open source
126+
- Non è legato a nessun provider. Anche se consigliamo i modelli forniti tramite [OpenCode Zen](https://opencode.ai/zen), OpenCode può essere utilizzato con Claude, OpenAI, Google o persino modelli locali. Con l’evoluzione dei modelli, le differenze tra di essi si ridurranno e i prezzi scenderanno, quindi essere indipendenti dal provider è importante.
127+
- Supporto LSP pronto all’uso
128+
- Forte attenzione alla TUI. OpenCode è sviluppato da utenti neovim e dai creatori di [terminal.shop](https://terminal.shop); spingeremo al limite ciò che è possibile fare nel terminale.
129+
- Architettura client/server. Questo, ad esempio, permette a OpenCode di girare sul tuo computer mentre lo controlli da remoto tramite un’app mobile. La frontend TUI è quindi solo uno dei possibili client.
130+
131+
---
132+
133+
**Unisciti alla nostra community** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)

0 commit comments

Comments
 (0)