Skip to content

Commit 760ca11

Browse files
author
root
committed
ci: build moltis from vendored source with full configs
1 parent db980e9 commit 760ca11

572 files changed

Lines changed: 214556 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-docker-moltis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262
- name: Build & push AMD64 image
6363
uses: docker/build-push-action@v5
6464
with:
65-
context: .
66-
file: ./Dockerfile.moltis
65+
context: ./vendor/moltis
66+
file: ./vendor/moltis/Dockerfile.stack
6767
platforms: linux/amd64
6868
push: true
6969
tags: |
@@ -95,8 +95,8 @@ jobs:
9595
- name: Build & push ARM64 image
9696
uses: docker/build-push-action@v5
9797
with:
98-
context: .
99-
file: ./Dockerfile.moltis
98+
context: ./vendor/moltis
99+
file: ./vendor/moltis/Dockerfile.stack
100100
platforms: linux/arm64
101101
push: true
102102
tags: |

vendor/moltis/.beads/.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SQLite databases
2+
*.db
3+
*.db?*
4+
*.db-journal
5+
*.db-wal
6+
*.db-shm
7+
8+
# Daemon runtime files
9+
daemon.lock
10+
daemon.log
11+
daemon.pid
12+
bd.sock
13+
sync-state.json
14+
last-touched
15+
16+
# Local version tracking (prevents upgrade notification spam after git ops)
17+
.local_version
18+
19+
# Legacy database files
20+
db.sqlite
21+
bd.db
22+
23+
# Worktree redirect file (contains relative path to main repo's .beads/)
24+
# Must not be committed as paths would be wrong in other clones
25+
redirect
26+
27+
# Merge artifacts (temporary files from 3-way merge)
28+
beads.base.jsonl
29+
beads.base.meta.json
30+
beads.left.jsonl
31+
beads.left.meta.json
32+
beads.right.jsonl
33+
beads.right.meta.json
34+
35+
# Sync state (local-only, per-machine)
36+
# These files are machine-specific and should not be shared across clones
37+
.sync.lock
38+
.jsonl.lock
39+
sync_base.jsonl
40+
export-state/
41+
42+
# NOTE: Do NOT add negation patterns (e.g., !issues.jsonl) here.
43+
# They would override fork protection in .git/info/exclude, allowing
44+
# contributors to accidentally commit upstream issue databases.
45+
# The JSONL files (issues.jsonl, interactions.jsonl) and config files
46+
# are tracked by git by default since no pattern above ignores them.

vendor/moltis/.beads/README.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Beads - AI-Native Issue Tracking
2+
3+
Welcome to Beads! This repository uses **Beads** for issue tracking - a modern, AI-native tool designed to live directly in your codebase alongside your code.
4+
5+
## What is Beads?
6+
7+
Beads is issue tracking that lives in your repo, making it perfect for AI coding agents and developers who want their issues close to their code. No web UI required - everything works through the CLI and integrates seamlessly with git.
8+
9+
**Learn more:** [github.com/steveyegge/beads](https://github.com/steveyegge/beads)
10+
11+
## Quick Start
12+
13+
### Essential Commands
14+
15+
```bash
16+
# Create new issues
17+
bd create "Add user authentication"
18+
19+
# View all issues
20+
bd list
21+
22+
# View issue details
23+
bd show <issue-id>
24+
25+
# Update issue status
26+
bd update <issue-id> --status in_progress
27+
bd update <issue-id> --status done
28+
29+
# Sync with git remote
30+
bd sync
31+
```
32+
33+
### Working with Issues
34+
35+
Issues in Beads are:
36+
- **Git-native**: Stored in `.beads/issues.jsonl` and synced like code
37+
- **AI-friendly**: CLI-first design works perfectly with AI coding agents
38+
- **Branch-aware**: Issues can follow your branch workflow
39+
- **Always in sync**: Auto-syncs with your commits
40+
41+
## Why Beads?
42+
43+
**AI-Native Design**
44+
- Built specifically for AI-assisted development workflows
45+
- CLI-first interface works seamlessly with AI coding agents
46+
- No context switching to web UIs
47+
48+
🚀 **Developer Focused**
49+
- Issues live in your repo, right next to your code
50+
- Works offline, syncs when you push
51+
- Fast, lightweight, and stays out of your way
52+
53+
🔧 **Git Integration**
54+
- Automatic sync with git commits
55+
- Branch-aware issue tracking
56+
- Intelligent JSONL merge resolution
57+
58+
## Get Started with Beads
59+
60+
Try Beads in your own projects:
61+
62+
```bash
63+
# Install Beads
64+
curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
65+
66+
# Initialize in your repo
67+
bd init
68+
69+
# Create your first issue
70+
bd create "Try out Beads"
71+
```
72+
73+
## Learn More
74+
75+
- **Documentation**: [github.com/steveyegge/beads/docs](https://github.com/steveyegge/beads/tree/main/docs)
76+
- **Quick Start Guide**: Run `bd quickstart`
77+
- **Examples**: [github.com/steveyegge/beads/examples](https://github.com/steveyegge/beads/tree/main/examples)
78+
79+
---
80+
81+
*Beads: Issue tracking that moves at the speed of thought*

vendor/moltis/.beads/config.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Beads Configuration File
2+
# This file configures default behavior for all bd commands in this repository
3+
# All settings can also be set via environment variables (BD_* prefix)
4+
# or overridden with command-line flags
5+
6+
# Issue prefix for this repository (used by bd init)
7+
# If not set, bd init will auto-detect from directory name
8+
# Example: issue-prefix: "myproject" creates issues like "myproject-1", "myproject-2", etc.
9+
# issue-prefix: ""
10+
11+
# Use no-db mode: load from JSONL, no SQLite, write back after each command
12+
# When true, bd will use .beads/issues.jsonl as the source of truth
13+
# instead of SQLite database
14+
# no-db: false
15+
16+
# Disable daemon for RPC communication (forces direct database access)
17+
# no-daemon: false
18+
19+
# Disable auto-flush of database to JSONL after mutations
20+
# no-auto-flush: false
21+
22+
# Disable auto-import from JSONL when it's newer than database
23+
# no-auto-import: false
24+
25+
# Enable JSON output by default
26+
# json: false
27+
28+
# Default actor for audit trails (overridden by BD_ACTOR or --actor)
29+
# actor: ""
30+
31+
# Path to database (overridden by BEADS_DB or --db)
32+
# db: ""
33+
34+
# Auto-start daemon if not running (can also use BEADS_AUTO_START_DAEMON)
35+
# auto-start-daemon: true
36+
37+
# Debounce interval for auto-flush (can also use BEADS_FLUSH_DEBOUNCE)
38+
# flush-debounce: "5s"
39+
40+
# Export events (audit trail) to .beads/events.jsonl on each flush/sync
41+
# When enabled, new events are appended incrementally using a high-water mark.
42+
# Use 'bd export --events' to trigger manually regardless of this setting.
43+
# events-export: false
44+
45+
# Git branch for beads commits (bd sync will commit to this branch)
46+
# IMPORTANT: Set this for team projects so all clones use the same sync branch.
47+
# This setting persists across clones (unlike database config which is gitignored).
48+
# Can also use BEADS_SYNC_BRANCH env var for local override.
49+
# If not set, bd sync will require you to run 'bd config set sync.branch <branch>'.
50+
# sync-branch: "beads-sync"
51+
52+
# Multi-repo configuration (experimental - bd-307)
53+
# Allows hydrating from multiple repositories and routing writes to the correct JSONL
54+
# repos:
55+
# primary: "." # Primary repo (where this database lives)
56+
# additional: # Additional repos to hydrate from (read-only)
57+
# - ~/beads-planning # Personal planning repo
58+
# - ~/work-planning # Work planning repo
59+
60+
# Integration settings (access with 'bd config get/set')
61+
# These are stored in the database, not in this file:
62+
# - jira.url
63+
# - jira.project
64+
# - linear.url
65+
# - linear.api-key
66+
# - github.org
67+
# - github.repo

vendor/moltis/.beads/interactions.jsonl

Whitespace-only changes.

vendor/moltis/.beads/issues.jsonl

Whitespace-only changes.

vendor/moltis/.beads/metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"database": "beads.db",
3+
"jsonl_export": "issues.jsonl"
4+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
description: Commit all changes, push branch, create/update PR, and run local validation
3+
allowed-tools: Bash(git rev-parse:*), Bash(git status:*), Bash(git add:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr view:*), Bash(gh pr create:*), Bash(scripts/local-validate.sh:*), Bash(./scripts/ship-pr.sh:*), Read
4+
argument-hint: ["<commit message>"] ["<pr title>"] ["<pr body>"]
5+
---
6+
7+
Run the one-shot ship flow from this repository:
8+
9+
1. Commit all files.
10+
2. Push current branch.
11+
3. Create PR if missing (or reuse current branch PR).
12+
4. Run local validation.
13+
5. Push again if validation auto-created a commit.
14+
15+
## Command
16+
17+
Use:
18+
19+
```bash
20+
./scripts/ship-pr.sh $ARGUMENTS
21+
```
22+
23+
## Notes
24+
25+
- This command refuses to run on `main`/`master` by design.
26+
- You can run plain `/ship` with no arguments.
27+
- If args are omitted, commit message / PR title / PR body are auto-generated from changed files and branch.
28+
- Set `SHIP_BASE_BRANCH=...` before running if you need a base branch other than `main`.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env bash
2+
# Renames the most recently modified plan file in prompts/ from the
3+
# auto-generated random name to a date-prefixed slug derived from its
4+
# first markdown heading (e.g. "2026-01-30-add-oauth-support.md").
5+
6+
set -euo pipefail
7+
8+
PROMPTS_DIR="${CLAUDE_PROJECT_DIR:-.}/prompts"
9+
[ -d "$PROMPTS_DIR" ] || exit 0
10+
11+
# Find the most recently modified .md file that still has the random name pattern
12+
# (three hyphen-separated words like "adaptive-waddling-peach.md")
13+
PLAN_FILE=$(find "$PROMPTS_DIR" -maxdepth 1 -name '*.md' -newer "$PROMPTS_DIR" -o \
14+
-name '*.md' -maxdepth 1 2>/dev/null | while read -r f; do
15+
base=$(basename "$f" .md)
16+
# Match the 3-word random pattern (word-word-word)
17+
if echo "$base" | grep -qE '^[a-z]+-[a-z]+-[a-z]+$'; then
18+
echo "$f"
19+
fi
20+
done | xargs -r ls -t 2>/dev/null | head -1)
21+
22+
[ -z "${PLAN_FILE:-}" ] && exit 0
23+
24+
# Extract first heading from the plan
25+
HEADING=$(grep -m1 '^#' "$PLAN_FILE" | sed 's/^#* *//')
26+
[ -z "$HEADING" ] && exit 0
27+
28+
# Slugify: lowercase, replace non-alnum with hyphens, trim
29+
SLUG=$(echo "$HEADING" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g; s/--*/-/g; s/^-//; s/-$//')
30+
# Truncate to reasonable length
31+
SLUG=$(echo "$SLUG" | cut -c1-60 | sed 's/-$//')
32+
33+
DATE=$(date +%Y-%m-%d)
34+
NEW_NAME="${DATE}-${SLUG}.md"
35+
NEW_PATH="${PROMPTS_DIR}/${NEW_NAME}"
36+
37+
# Don't overwrite existing files
38+
if [ -e "$NEW_PATH" ]; then
39+
i=2
40+
while [ -e "${PROMPTS_DIR}/${DATE}-${SLUG}-${i}.md" ]; do
41+
i=$((i + 1))
42+
done
43+
NEW_PATH="${PROMPTS_DIR}/${DATE}-${SLUG}-${i}.md"
44+
fi
45+
46+
mv "$PLAN_FILE" "$NEW_PATH"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
# Copies the full session transcript to prompts/ on session end.
3+
# Receives JSON on stdin with transcript_path and session_id.
4+
5+
set -euo pipefail
6+
7+
PROMPTS_DIR="${CLAUDE_PROJECT_DIR:-.}/prompts"
8+
mkdir -p "$PROMPTS_DIR/sessions"
9+
10+
# Parse stdin JSON
11+
INPUT=$(cat)
12+
TRANSCRIPT=$(echo "$INPUT" | python3 -c "import sys,json; print(json.load(sys.stdin).get('transcript_path',''))" 2>/dev/null || true)
13+
SESSION_ID=$(echo "$INPUT" | python3 -c "import sys,json; print(json.load(sys.stdin).get('session_id',''))" 2>/dev/null || true)
14+
15+
[ -z "$TRANSCRIPT" ] && exit 0
16+
[ ! -f "$TRANSCRIPT" ] && exit 0
17+
18+
DATE=$(date +%Y-%m-%d-%H%M)
19+
SHORT_ID="${SESSION_ID:0:8}"
20+
cp "$TRANSCRIPT" "$PROMPTS_DIR/sessions/${DATE}-${SHORT_ID}.jsonl"

0 commit comments

Comments
 (0)