-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
81 lines (58 loc) · 1.84 KB
/
justfile
File metadata and controls
81 lines (58 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# bithub task runner
default:
just --list
# ---- Build & Test ----
check:
moon check --target js
test:
moon test --target js
build:
moon build --target js
fmt:
moon fmt
test-e2e:
pnpm test:e2e
# ---- Server ----
# Start bithub on current repo
serve:
moon run src/cmd/main_ssr --target js -- 4174 .
# Start bithub on a specific repo
serve-repo repo:
moon run src/cmd/main_ssr --target js -- 4174 {{repo}}
# Start bithub with seed data (no local repo)
serve-demo:
moon run src/cmd/main_ssr --target js -- 4174
# ---- Cloudflare ----
deploy:
moon build --target js && pnpm wrangler deploy
dev-worker:
moon build --target js && pnpm wrangler dev
# ---- Agent ----
# Create an issue for agents to work on
issue title body="":
BITHUB_URL=http://127.0.0.1:4174 pnpm tsx scripts/create-issue.ts "{{title}}" "{{body}}"
# Run agent on a specific issue
agent-run id:
BITHUB_URL=http://127.0.0.1:4174 ISSUE_ID={{id}} pnpm tsx scripts/agent-harness.ts
# Run agent on a free-form task
agent-task task:
BITHUB_URL=http://127.0.0.1:4174 TASK="{{task}}" pnpm tsx scripts/agent-harness.ts
# Start daemon: auto-process open issues
agent-daemon:
BITHUB_URL=http://127.0.0.1:4174 pnpm tsx scripts/agent-daemon.ts
# Process open issues once and exit
agent-once:
BITHUB_URL=http://127.0.0.1:4174 pnpm tsx scripts/agent-daemon.ts --once
# Run multiple agents in parallel
agent-parallel:
BITHUB_URL=http://127.0.0.1:4174 pnpm tsx scripts/parallel-agents.ts
# ---- Workflow: Issue → Agent → Done ----
# Full workflow: create issue, run daemon once
auto title body="":
#!/usr/bin/env bash
set -euo pipefail
echo "Creating issue..."
BITHUB_URL=http://127.0.0.1:4174 pnpm tsx scripts/create-issue.ts "{{title}}" "{{body}}"
echo ""
echo "Running daemon..."
BITHUB_URL=http://127.0.0.1:4174 MAX_ISSUES=1 pnpm tsx scripts/agent-daemon.ts --once