Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,15 @@ jobs:
env:
BASE_VERSION: ${{ steps.version_gate.outputs.version }}
RECOVERY_VERSION: ${{ inputs.recovery_version }}
RELEASE_CHANNEL: ${{ steps.type.outputs.channel }}
RELEASE_REPO: ${{ github.repository }}
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/release-artifact"
# Notes come from the committed CHANGELOG.md for BOTH channels. The
# version is committed, so its section is authorable in the bump PR.
# Notes come from the committed CHANGELOG.md for BOTH channels. For
# stable non-recovery builds with a curated docs/releases/vX.Y.Z.md,
# scripts/release-body.mjs composes the visual release page plus the
# canonical CHANGELOG ledger into the single artifact release-notes.md.
# Recovery extracts the section at the recovery target as well, so a
# republished release keeps the canonical body; the static note is
# the last resort for tags predating the CHANGELOG section.
Expand All @@ -307,8 +311,19 @@ jobs:
echo "No CHANGELOG section for v$RECOVERY_VERSION — publishing the static recovery note."
printf '%s\n' "Recovery publish for existing tag $RECOVERY_VERSION." > "$RUNNER_TEMP/release-notes.md"
fi
elif ! node scripts/changelog-extract.mjs "$BASE_VERSION" > "$RUNNER_TEMP/release-notes.md"; then
echo "::error::CHANGELOG.md has no [$BASE_VERSION] section."; exit 1
else
if ! node scripts/changelog-extract.mjs "$BASE_VERSION" > "$RUNNER_TEMP/release-notes.md"; then
echo "::error::CHANGELOG.md has no [$BASE_VERSION] section."; exit 1
fi
if [ "$RELEASE_CHANNEL" = "stable" ] && [ -f "docs/releases/v$BASE_VERSION.md" ]; then
node scripts/release-body.mjs \
--version "$BASE_VERSION" \
--channel "$RELEASE_CHANNEL" \
--changelog-notes "$RUNNER_TEMP/release-notes.md" \
--repo "$RELEASE_REPO" \
--ref "v$BASE_VERSION" \
--out "$RUNNER_TEMP/release-notes.md"
fi
fi
npm run package:evidence -- --output-dir="$RUNNER_TEMP/release-artifact" --target-sha="$TARGET_SHA" > "$RUNNER_TEMP/package-evidence.json"
TARBALLS=("$RUNNER_TEMP/release-artifact"/*.tgz)
Expand Down
4 changes: 2 additions & 2 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"orcid": "0000-0001-7787-7562"
}
],
"version": "2.2.0-beta.11",
"version": "2.2.0",
"license": "MIT",
"language": "eng",
"keywords": ["opencode", "ai-agents", "multi-agent", "orchestration", "developer-tools"],
"url": "https://github.com/ils15/pantheon-opencode/releases/tag/v2.2.0-beta.11",
"url": "https://github.com/ils15/pantheon-opencode/releases/tag/v2.2.0",
"related_identifiers": [
{
"identifier": "https://github.com/ils15/pantheon-opencode",
Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,44 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
`node scripts/versioning.mjs apply --notes` pre-fills the generated sections from conventional commits.
Running apply will move this section to a versioned entry and reset the template below. -->

## [v2.2.0] - 2026-11-19

### 🆕 What's New

- **30 Native TypeScript Tools & Pillars 1–5**: LSP bridge, `ast_search`/`ast_rewrite`, git checkpoints, worktrees, and bugfix gates.
- **TUI Mission Control Cockpit (`/pantheon-cockpit`)**: 3-page dashboard (`Overview`, `Swarm` Gantt, `Flightdeck` gates) via `1–3`/`Tab`.
- **Step-Ledger Checkpoints & Verdict Remediation**: Isolated `ctx.session.create` steps, git rollback, and `pantheon_review_verdict`.
- **Interactive `/pantheon-forge` & Artifacts**: Stack detector (`package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`) & Mermaid viewer.
- **Live Dispatch Telemetry & Native Todo**: Sidebar counters (`mem`/`ctx`/`code`), child verbs, `?`/`!` badges, and Home/Sidebar links.
- **Worktree Memory, Hashline & Cache Hygiene**: Shared `.pantheon/` store, confined `hashline_edit`, and automatic stale cache cleanup.

### Added

- **cockpit** — `cockpit.tsx`, `cockpit-state.ts`, `cockpit-events.ts`: added 3-page `/pantheon-cockpit`, Home `◈ Cockpit` link, `.pantheon/telemetry` bus stream, and Mermaid replay export.
- **lsp-ast** — `lsp-diagnostics.ts`, `ast-tools.ts`: added `tsc`/Pyright/stdio + pooled TCP LSP proxy (`PANTHEON_LSP_TCP_ENDPOINTS`) and workspace-confined `ast_search`/`ast_rewrite`.
- **memory** — `memory-federation.ts`, `native-memory-tools.ts`, `tool-context.ts`: added read-only multi-repo knowledge federation (`PANTHEON_FEDERATED_REPOS`) and worktree-shared `.pantheon/`.
- **ledger** — `git-checkpoint.ts`, `step-runner.ts`, `step-ledger.ts`: added isolated `GIT_INDEX_FILE` snapshots, `execute_step` sub-sessions, `record_reproduction`, `rollback_step`, and auto-rollback.
- **orchestration** — `worktree-orchestrator.ts`, `review-verdict.ts`, `reproduction-gate.ts`: wired `ctx.worktree.transform` + `pantheon_worktree`, `pantheon_review_verdict`, and bugfix `RED` gate.
- **forge** — `scripts/stack-detector.mjs`, `stack-detector.ts`, `pantheon-forge.md`, `agent-forge-tool.ts`: added `/pantheon-forge` wizard, `detect_stack`, and `init --project` hints.
- **tui** — `artifacts.tsx`, `mermaid-ascii.ts`, `legacy-audit.ts`: added `/pantheon-artifacts` Unicode Mermaid viewer, Sidebar/Home quick links, `Native Tools (30)`, and stale npm cache cleanup.

### Changed

- **plugin** — `src/plugin.ts`, `tools.ts`, `delegation-enforce.ts`: registers all 30 native tools and 9 server commands, preserves `todowrite`/`todoread`, removes `/pantheon-settings` duplicate.
- **agents** — `src/agents/roster.json`: updated all 14 canonical agents with permissions and prompts for `ast_search`, `pantheon_worktree`, `execute_step`, and `pantheon_review_verdict`.
- **release** — `scripts/version-check.mjs`, `scripts/package-evidence.mjs`: validates `dist/tui.js` version match in `prepack` and package consumer tests.
- **docs** — updated `README.md`, `README.pt-BR.md`, `ROADMAP.md`, `docs/`, and `wiki/` with complete v2.2.0 architecture, 30 tools, Cockpit guides, and live TUI screenshots.

### Removed

- **tui** — removed the placeholder `Quotas & Spend` (`Cotas & Gastos`) tab from `/pantheon-settings`.

### Fixed

- **execute-after** — `src/pantheon/execute-after.ts`, `plugin.ts`: resolves `ast_rewrite` (`path`/`filesModified`) and relative `hashline_edit` paths against workspace `cwd` for post-edit lint & LSP.
- **sdk-parity** — `step-runner.ts`, `review-verdict.ts`: aligns `SessionApi` calls (`create`, `prompt`, `wait`, `remove`, `synthetic`) with `@opencode/client` and routes `BLOCK` to parent session.
- **hashline** — `src/pantheon/hashline/tool.ts`, `tool-context.ts`: confines relative paths to the active workspace root with symlink traversal checks.
- **tui** — `mermaid-ascii.ts`, `pantheon-settings.tsx`, `whats-new.tsx`, `index.tsx`: fixes CodeQL `js/bad-tag-filter` alert, Home `Tab` in `/pantheon-settings`, and enlarges `What's New` layout.
## [v2.2.0-beta.11] - 2026-11-19

### 🆕 What's New
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ abstract: >-
Pantheon v2.1.6 is an OpenCode plugin and installer coordinating 14
specialized agents with high-speed direct dispatch, native subagents,
and progressive skill disclosure for OpenCode 2.x.
version: 2.2.0-beta.11
url: https://github.com/ils15/pantheon-opencode/releases/tag/v2.2.0-beta.11
version: 2.2.0
url: https://github.com/ils15/pantheon-opencode/releases/tag/v2.2.0
doi: 10.5281/zenodo.22650136
repository-code: https://github.com/ils15/pantheon-opencode
license: MIT
Expand Down
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ Requirements: [OpenCode](https://opencode.ai/docs/) **2.x** and Node.js **≥ 26
([compatibility](docs/COMPATIBILITY.md)).

```bash
# Primary (Recommended) — native OpenCode 2.x plugin (global or project, no npx init required)
opencode plugin add pantheon-opencode@beta
# Primary (Recommended) — native OpenCode 2.x plugin (works in any directory, no init required)
opencode plugin add pantheon-opencode

# Check health, updates & clean legacy/obsolete files inside OpenCode:
# /pantheon-settings -> Updates (or Legacy & Drift Cleanup)
# Check health, updates & clean legacy/stale caches inside OpenCode:
# /pantheon-settings -> Updates (or Legacy & Drift Cleanup), /pantheon-updates, /pantheon-whats-new

# Deprecated legacy CLI fallback (optional Python MCP runtime only):
# npm install -g pantheon-opencode@beta && pantheon-opencode init --yes
# npm install -g pantheon-opencode && pantheon-opencode init --yes
```

## Usage
Expand All @@ -58,6 +58,16 @@ plan with `pantheon_step_ledger` mechanical receipts and gates; and `pantheon_ag
creates custom project-specific domain specialists in `.opencode/agents/<name>.md` on demand.
You approve each gate and you run every commit.

The OpenCode 2.x TUI surfaces live native-tool domain counters (`mem`, `ctx`, `code`, `edit`,
`shell`), live child activity and attention badges (`?` / `!`) in `Dispatch` and `/dispatch`,
the interactive **Mission Control Cockpit** (`/pantheon-cockpit` · `Overview`, `Swarm`,
`Flightdeck`), `/pantheon-artifacts` for plans/reports/ADRs, interactive `/pantheon-forge` stack
detection, and the full **30-tool native inventory** in `/pantheon-settings` → **About** (including
post-edit LSP diagnostics, `ast_search`/`ast_rewrite`, `pantheon_review_verdict`, bugfix `RED`
reproduction gates, and `ctx.worktree.transform` sibling worktrees). Git worktrees automatically
share the main repository's `.pantheon/memory`, checkpoints, and goals store (set
`PANTHEON_ISOLATE_WORKTREE_MEMORY=1` to keep a worktree's memory store isolated).

## Structure

```
Expand All @@ -82,7 +92,8 @@ tests/ Node and TypeScript test suites
| [Installation](docs/INSTALLATION.md) | [Execution modes](docs/guides/execution-modes.md) |
| [First project end-to-end](docs/guides/first-project.md) | [Agent Capability Matrix](docs/AGENT-CAPABILITY-MATRIX.md) |
| [Settings & TUI window](docs/SETTINGS.md) | [Permissions, gates & delegation](docs/PERMISSIONS-QUALITY-DELEGATION.md) |
| [Release highlights](docs/releases/highlights.md) | [CHANGELOG](CHANGELOG.md) |
| [Artifacts & `/pantheon-artifacts`](docs/ARTIFACTS.md) | [Release highlights](docs/releases/highlights.md) |
| [CHANGELOG](CHANGELOG.md) | [Architecture](docs/ARCHITECTURE.md) |

Runnable examples: [SaaS performance dashboard](examples/saas-dashboard/) and
[repo health CLI](examples/cli-tool/). Contributing:
Expand Down
24 changes: 18 additions & 6 deletions README.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ Requisitos: [OpenCode](https://opencode.ai/docs/) **2.x** e Node.js **≥ 26.4.0
([compatibilidade](docs/COMPATIBILITY.md)).

```bash
# Principal (Recomendado) — plugin nativo do OpenCode 2.x (global ou projeto, sem npx init)
opencode plugin add pantheon-opencode@beta
# Principal (Recomendado) — plugin nativo do OpenCode 2.x (funciona em qualquer pasta, sem init)
opencode plugin add pantheon-opencode

# Verificar atualizações e limpar arquivos legados/obsoletos dentro do OpenCode:
# /pantheon-settings -> Atualizações (seção Legados, Drift & Limpeza)
# Verificar atualizações e limpar arquivos legados/caches obsoletos dentro do OpenCode:
# /pantheon-settings -> Atualizações (seção Legados, Drift & Limpeza), /pantheon-updates, /pantheon-whats-new

# Fallback legado via CLI (em descontinuação — apenas se precisar de MCPs Python opcionais):
# npm install -g pantheon-opencode@beta && pantheon-opencode init --yes
# npm install -g pantheon-opencode && pantheon-opencode init --yes
```

## Uso
Expand All @@ -61,6 +61,17 @@ executa um plano multifase com recibos mecânicos via `pantheon_step_ledger` e g
`pantheon_agent_forge` cria especialistas customizados de domínio em `.opencode/agents/<name>.md`
sob demanda. Você aprova cada gate e executa cada commit.

A TUI do OpenCode 2.x exibe contadores ao vivo por domínio de ferramentas nativas (`mem`,
`ctx`, `code`, `edit`, `shell`), atividade ao vivo e badges de atenção (`?` / `!`) no
`Dispatch` e `/dispatch`, o **Mission Control Cockpit** (`/pantheon-cockpit` · `Overview`,
`Swarm`, `Flightdeck`), `/pantheon-artifacts` para planos/relatórios/ADRs, o assistente
`/pantheon-forge` com detecção de stack e o inventário completo de **30 tools nativas** em
`/pantheon-settings` → **Sobre** (incluindo diagnósticos LSP pós-edição,
`ast_search`/`ast_rewrite`, `pantheon_review_verdict`, gate de reprodução `RED` para bugfix e
worktrees nativas via `ctx.worktree.transform`). Worktrees Git compartilham automaticamente o
repositório principal para `.pantheon/memory`, checkpoints e metas (defina
`PANTHEON_ISOLATE_WORKTREE_MEMORY=1` para isolar uma worktree).

## Estrutura

```
Expand All @@ -85,7 +96,8 @@ tests/ suítes de teste em Node e TypeScript
| [Instalação](docs/pt-BR/INSTALLATION.md) | [Modos de execução](docs/guides/execution-modes.md) |
| [Primeiro projeto ponta a ponta](docs/pt-BR/guides/first-project.md) | [Matriz de capacidade dos agentes](docs/pt-BR/AGENT-CAPABILITY-MATRIX.md) |
| [Configurações e janela TUI](docs/SETTINGS.md) | [Permissões, gates e delegação](docs/PERMISSIONS-QUALITY-DELEGATION.md) |
| [Destaques de versões](docs/releases/highlights.md) | [CHANGELOG](CHANGELOG.md) |
| [Artefatos e `/pantheon-artifacts`](docs/ARTIFACTS.md) | [Destaques de versões](docs/releases/highlights.md) |
| [CHANGELOG](CHANGELOG.md) | [Arquitetura](docs/pt-BR/ARCHITECTURE.md) |

Exemplos executáveis: [dashboard SaaS](examples/saas-dashboard/) e
[CLI de saúde do repositório](examples/cli-tool/). Contribuição:
Expand Down
Loading
Loading