- Update generated types from new openapi.yaml (capsule stats, usage, metrics, pause/resume lifecycle, host/channel management, auth flow) - Add Capsule pause/resume/ping/getMetrics lifecycle methods - Add Capsule.waitForReady abort signal support - Add PtyManager.connect and PtySession disposal - Fix HttpClient empty-body response handling (content-length: 0) - Add streamProcess() to CommandManager for background process streams - Add integration tests for capsule lifecycle, git, and PTY features - Add unit tests for AsyncQueue error paths, PtySession.close, Git.checkout without create, Git.add single string, Notebook.execCell error case, and PtyStartOptions fields
30 lines
584 B
Makefile
30 lines
584 B
Makefile
# Makefile
|
|
.PHONY: generate lint test test-integration check build
|
|
|
|
SPEC_URL = "https://git.omukk.dev/wrenn/wrenn/raw/branch/feat/migrate-to-ch/internal/api/openapi.yaml"
|
|
SPEC_PATH = "api/openapi.yaml"
|
|
|
|
generate:
|
|
@echo "Fetching latest OpenAPI spec from Git repo..."
|
|
mkdir -p api
|
|
curl -fsSL $(SPEC_URL) -o $(SPEC_PATH)
|
|
@echo "Generating TypeScript types..."
|
|
mkdir -p src/models
|
|
bun run generate
|
|
|
|
lint:
|
|
bunx biome check .
|
|
|
|
test:
|
|
bunx vitest run --exclude tests/integration
|
|
|
|
test-integration:
|
|
bun run test:integration
|
|
|
|
check:
|
|
$(MAKE) lint
|
|
$(MAKE) test
|
|
|
|
build:
|
|
bun run build
|