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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions .claude/hooks/worktree-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/bin/env bash
# Claude Code worktree cleanup.
# Claude Code worktree cleanup, run by the WorktreeRemove hook.
# Mirrors the [cleanup] script in .codex/environments/environment.toml.
# Fires from the WorktreeRemove hook, which passes the worktree directory being
# removed as JSON on stdin (the ".directory" field). Runs only on actual
# worktree removal — not on /clear or normal session exit.
# The hook passes the removed worktree's directory as JSON on stdin (".directory").
set -euo pipefail

dir="$(python3 -c 'import sys, json; print(json.load(sys.stdin).get("directory", ""))' 2>/dev/null || true)"
Expand Down
12 changes: 5 additions & 7 deletions .claude/hooks/worktree-setup.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
#!/usr/bin/env bash
# Claude Code worktree setup.
# Mirrors the [setup] script in .codex/environments/environment.toml.
# Fires from the SessionStart hook; only runs inside a linked git worktree.
# Claude Code worktree setup, run by the SessionStart hook.
# Provisions linked git worktrees only, once each.
set -euo pipefail

root="$(git rev-parse --show-toplevel)"
cd "$root"

# Skip in the primary checkout — only provision linked worktrees.
git_dir="$(cd "$(git rev-parse --git-dir)" && pwd)"
common_dir="$(cd "$(git rev-parse --git-common-dir)" && pwd)"
[[ "$git_dir" == "$common_dir" ]] && exit 0

# Run once per worktree (marker lives in the per-worktree git dir, never committed).
# The marker lives in the per-worktree git dir, so it is never committed.
marker="$git_dir/.claude-worktree-setup-done"
[[ -f "$marker" ]] && exit 0

git submodule update --init --recursive vendor/llama.cpp
# Best-effort: a pre-build failure shouldn't fail worktree setup — the real build
# runs under xcodebuild; this only warms editor `import llama` resolution.
# Best-effort: the real build runs under xcodebuild; this only warms editor
# `import llama` resolution.
./ios/build-llama.sh sim || echo "worktree-setup: llama pre-build failed — editor import may lag"

touch "$marker"
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# Normalize every text file to LF in the index and in the working tree, on
# every platform. Git's Windows default (core.autocrlf=true) otherwise checks
# text out as CRLF, and assets that binaries embed with `include_str!` are
# compiled in byte-for-byte: crates/pipette-ops/src/prompt_seed.txt did exactly
# that, and the CRLF seed bisected to a different 8192-token prompt that the
# server rejected, so a Windows-built client failed a benchmark that the same
# revision passed everywhere else.
* text=auto eol=lf

# Batch files are the one thing cmd.exe wants as CRLF, and they are stored that
# way. `-text` rather than `text eol=crlf`: the stored bytes are already CRLF,
# so converting on checkout would only leave android/Pipette/gradlew.bat
# permanently dirty. No binary embeds one, so passing the bytes through keeps
# them identical on every platform, which is all this file is here to do.
*.bat -text
*.cmd -text

# Stays last: `-text` has to win over the `*` rule above.
crates/pipette-llamacpp/vendor/toybox/toybox-aarch64 filter=lfs diff=lfs merge=lfs -text
14 changes: 8 additions & 6 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Code owners for pipette-clients.
#
# GitHub requests a review from these accounts on every pull request, and the
# default branch requires one of them to approve before a merge is allowed.
# Ownership is held by the maintainers accountable for the codebase, which is a
# narrower set than the accounts holding admin through corporate team
# GitHub requests a review from these accounts on every pull request. A merge
# to the default branch requires an approval from one of them. These same
# accounts can merge their own pull requests without an approval.
#
# The maintainers accountable for the codebase hold ownership. This set is
# narrower than the accounts that hold admin through corporate team
# membership.
#
# Listing several accounts on one line means any single one of them satisfies
# the requirement.
# Several accounts on one line mean that any single one of them satisfies the
# requirement.

* @m3m0ryh0l3 @ykhrustalev @ovenmitt @iamstuffed
15 changes: 8 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
## Problem
<!-- Keep the three headings below, in this order, bold rather than ##. Replace
each prompt with the answer. Extra sections (Notes, Provenance, Stack, ...) are
welcome anywhere. Checked by the `pr-body` workflow; check your own description
with `./ci/pr-body.py --pr <n>`. -->

**Problem**

What problem does this solve?

## Solution
**Solution**

What changed?

## Testing
**Testing**

What did you run?

## Notes

Anything reviewers should know?
Loading
Loading