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
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ squad-export.json
.env
.env.*
!.env.example
# Local-only Langfuse init keys (not production); needed for live-traces.ps1
!scripts/langfuse/.env
*.pem
*.key

Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ go test ./...
go build -o squad-oc.exe ./cmd/squad-oc
```

Prefer Task when it is on PATH (`task --list`): `task test`, `task build`, `task ci`, `task release` (snapshot only), `task bump TAG=vX.Y.Z`, `task langfuse:up` / `task langfuse:down`, `task live:e2e` / `task live:traces`. Real publish is `task release:tag TAG=vX.Y.Z` on main then `task release:push`. Do not edit `internal/version/version.go`. Do not use this git clone as the live serve cwd.
Prefer Task when it is on PATH (`task --list`): `task test`, `task build`, `task ci`, `task release` (snapshot only), `task bump TAG=vX.Y.Z`. Real publish is `task release:tag TAG=vX.Y.Z` on main then `task release:push`. Do not edit `internal/version/version.go`.

Live OpenCode HTTP checks need a running `opencode serve` and use the `live` build tag.

Expand Down
14 changes: 1 addition & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,11 @@ task release # GoReleaser snapshot into dist/ (no tag, no publish)
task bump TAG=vX.Y.Z # pin Homebrew/Scoop/winget from dist/ (no PR)
task release:tag TAG=vX.Y.Z # annotated tag on main only (no push)
task release:push TAG=vX.Y.Z # push tag; GitHub release workflow publishes
task langfuse:up
task langfuse:down
task live:e2e
task live:traces
```

Do not edit `internal/version/version.go` to bump. Do not tag a feature branch.

Requires **Go 1.26.6+**. Optional live checks (dummy project only, never this clone as the serve cwd unless you mean to dogfood):

```powershell
./scripts/live-e2e.ps1
./scripts/live-traces.ps1
# same as: task live:e2e / task live:traces
```

`live-e2e.ps1` talks to `opencode serve` on `127.0.0.1:4096` (doctor + PONG). `live-traces.ps1` exercises JSONL spans and optional local Langfuse OTLP ingest. The TUI (`opencode`) is not the API. CI stays `go test ./...` without live env. `task ci` is the local mirror of `.github/workflows/ci.yml`.
Requires **Go 1.26.6+**. CI is `go test ./...` (no live OpenCode). `task ci` is the local mirror of `.github/workflows/ci.yml`. Optional package test `TestLiveEnsureAPI` stays behind `SQUAD_OC_LIVE=1`.

## Branch and PR

Expand Down
39 changes: 1 addition & 38 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# https://taskfile.dev — local CI + Langfuse/live helpers.
# https://taskfile.dev — local CI and release helpers.
# Install: go install github.com/go-task/task/v3/cmd/task@latest
version: "3"

vars:
BINARY: '{{if eq OS "windows"}}squad-oc.exe{{else}}squad-oc{{end}}'
COMPOSE: scripts/langfuse/docker-compose.yml
PWSH: '{{if eq OS "windows"}}powershell{{else}}pwsh{{end}}'

tasks:
default:
Expand Down Expand Up @@ -111,41 +109,6 @@ tasks:
desc: Local CI gate matching .github/workflows/ci.yml
deps: [fmt:check, vet, lint, test:race, build, vuln, actionlint]

langfuse:up:
desc: Start local Langfuse v4 on 127.0.0.1:3000
cmds:
- docker compose -f {{.COMPOSE}} up -d

langfuse:down:
desc: Stop local Langfuse (keeps volumes)
cmds:
- docker compose -f {{.COMPOSE}} down

langfuse:down:volumes:
desc: Stop local Langfuse and remove squad-oc-langfuse-* volumes
cmds:
- docker compose -f {{.COMPOSE}} down -v

live:e2e:
desc: Dummy PONG check (D:\xAI\squad-oc-dummy only)
cmds:
- "{{.PWSH}} -File scripts/live-e2e.ps1"

live:traces:
desc: Dummy traces + optional local Langfuse OTLP
cmds:
- "{{.PWSH}} -File scripts/live-traces.ps1"

live:traces:skip-langfuse:
desc: Dummy traces only (no Langfuse)
cmds:
- "{{.PWSH}} -File scripts/live-traces.ps1 -SkipLangfuse"

live:models:
desc: Dummy per-agent model pin check
cmds:
- "{{.PWSH}} -File scripts/live-models.ps1"

release:check:
desc: Validate .goreleaser.yaml
cmds:
Expand Down
12 changes: 0 additions & 12 deletions docs/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,6 @@ squad-oc run --url http://127.0.0.1:5000 -p "Summarize .squad/team.md"

Plain `opencode` opens the interactive UI and does **not** listen on 4096.

### Live check

From this repo root, ground `doctor` / `run` against a dummy project (never this git tree):

```powershell
pwsh -File scripts/live-e2e.ps1
```

The script builds `squad-oc.exe`, inits `D:\xAI\squad-oc-dummy` if needed, starts `opencode serve --hostname 127.0.0.1 --port 4096` there (or attaches if that localhost port is already up), then runs `doctor` and `run -p "Reply with exactly PONG and nothing else."`. It fails if `:4096` is bound on a non-localhost address. The TUI is optional; if no window is open, skip it.

`TestLiveEnsureAPI` stays behind `SQUAD_OC_LIVE=1`. CI stays unit-only (`go test ./...` without that env).

---

## Also useful
Expand Down
55 changes: 0 additions & 55 deletions scripts/langfuse/.env

This file was deleted.

145 changes: 0 additions & 145 deletions scripts/langfuse/docker-compose.yml

This file was deleted.

Loading