Skip to content
Open
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
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run typecheck
run: npm run typecheck

- name: Run tests
run: npm test

- name: Build
run: npm run build
4 changes: 2 additions & 2 deletions landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h3>bug-fix</h3>
</section>

<!-- Why it works -->
<section class="section">
<section id="features" class="section">
<h2>Why it works</h2>
<div class="steps-grid">
<div class="step-card">
Expand Down Expand Up @@ -180,7 +180,7 @@ <h3>Built on the Ralph loop</h3>
</section>

<!-- Quick example -->
<section class="section">
<section id="quickstart" class="section">
<h2>Quick example</h2>
<div class="code-block">
<div class="code-header">
Expand Down
8 changes: 8 additions & 0 deletions landing/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ h2.problem-text {
margin-top: 24px;
}

/* === Feature grid === */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
margin-top: 24px;
}

.step-card {
background: var(--bg-card);
border: 1px solid var(--border);
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
},
"scripts": {
"build": "tsc -p tsconfig.json && cp src/server/index.html dist/server/index.html && chmod +x dist/cli/cli.js && node scripts/inject-version.js",
"start": "node dist/cli/cli.js"
"start": "node dist/cli/cli.js",
"typecheck": "tsc --noEmit",
"test": "node --test"
},
"dependencies": {
"json5": "^2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/ant.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, beforeEach, afterEach } from "node:test";
import assert from "node:assert/strict";
import { printAnt } from "./ant.js";
import { printAnt } from "../../dist/cli/ant.js";

describe("printAnt", () => {
let output: string;
Expand Down
6 changes: 3 additions & 3 deletions src/installer/status.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { describe, it, afterEach } from "node:test";
import assert from "node:assert/strict";
import crypto from "node:crypto";
import { getDb } from "../db.js";
import { stopWorkflow } from "./status.js";
import type { StopWorkflowResult } from "./status.js";
import { getDb } from "../../dist/db.js";
import { stopWorkflow } from "../../dist/installer/status.js";
import type { StopWorkflowResult } from "../../dist/installer/status.js";

// Helper to create a test run with steps
function createTestRun(opts: {
Expand Down
2 changes: 1 addition & 1 deletion src/installer/uninstall.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import path from "node:path";
import { describe, it } from "node:test";
import { selectAntfarmManagedAgents } from "./uninstall.js";
import { selectAntfarmManagedAgents } from "../../dist/installer/uninstall.js";

describe("selectAntfarmManagedAgents", () => {
it("removes only workflow-prefixed agents for known Antfarm workflow ids", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/logger.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it } from "node:test";
import assert from "node:assert/strict";
import { log, logger, formatEntry, readRecentLogs } from "./logger.js";
import type { LogLevel } from "./logger.js";
import { log, logger, formatEntry, readRecentLogs } from "../../dist/lib/logger.js";
import type { LogLevel } from "../../dist/lib/logger.js";

describe("logger", () => {
describe("log()", () => {
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"types": ["node"]
"types": ["node"],
"declaration": true,
"declarationMap": true
},
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"]
}