chore: preserve local configuration edits before activation

This commit is contained in:
hermes committed 2026-11-29 10:18:10 -05:00
1 parent fd96dc6dc0
commit a71022f937
12 files changed
+217 -57

No files matched your search

+3
View File
@@ -39,6 +39,7 @@
homebrew = { homebrew = {
enable = true; enable = true;
taps = [ "can1357/tap" "incoai/tap" ];
onActivation.cleanup = "zap"; # remove anything not listed here onActivation.cleanup = "zap"; # remove anything not listed here
onActivation.autoUpdate = true; onActivation.autoUpdate = true;
onActivation.upgrade = true; # upgrade outdated formulae/casks on rebuild onActivation.upgrade = true; # upgrade outdated formulae/casks on rebuild
@@ -59,6 +60,8 @@
# linked binary tracks the latest opencode release. Crew harness and oc2. # linked binary tracks the latest opencode release. Crew harness and oc2.
"opencode" "opencode"
"pi-coding-agent" "pi-coding-agent"
"omp" # Oh My Pi coding agent harness (can1357/tap)
"splash" # Splash inference engine for GGUF models (incoai/tap)
"tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003 "tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003
"tmux" "tmux"
"treehouse" "treehouse"
+41 -4
View File
@@ -90,12 +90,13 @@ in
gb = "grok --yolo"; gb = "grok --yolo";
# firstmate primary session in OpenCode 2 on the OpenCode Go subscription, # firstmate primary session in OpenCode 2 on the OpenCode Go subscription,
# launched through the isolated-config oc2 wrapper; crewmates = OpenCode by # launched through the isolated-config oc2 wrapper; crewmates = OpenCode by
# default. Permanent since 2026-11-15: fm-pi stays only as the explicit Pi # default. Permanent since 2026-11-15: fm-pi and fm-omp stay only as the
# fallback, never as the default launcher. fm-oc2 is the explicit # explicit Pi and omp-harness fallbacks, never as the default launcher.
# OpenCode 2 name and stays byte-identical to fm. # fm-oc2 is the explicit OpenCode 2 name and stays byte-identical to fm.
fm = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2"; fm = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2";
fm-oc2 = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2"; fm-oc2 = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2";
fm-pi = "cd ${firstmateHome} && exec pi"; fm-pi = "cd ${firstmateHome} && exec pi";
fm-omp = "cd ${firstmateHome} && exec omp";
oc2 = "${home}/.local/bin/oc2"; oc2 = "${home}/.local/bin/oc2";
# Sync ~/Music into the beets library on Unraid (requires NAS mounted). # Sync ~/Music into the beets library on Unraid (requires NAS mounted).
sync-music = "~/.local/bin/sync-music"; sync-music = "~/.local/bin/sync-music";
@@ -250,6 +251,10 @@ in
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/bin/security-audit-sandbox"; source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/bin/security-audit-sandbox";
force = true; force = true;
}; };
home.file.".local/bin/serve-inkling" = {
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/bin/serve-inkling";
force = true;
};
# Stable symlink for yt-transcribe: shells exec it from local disk. The # Stable symlink for yt-transcribe: shells exec it from local disk. The
# repo's home/bin script is the source of truth — a repo edit takes effect # repo's home/bin script is the source of truth — a repo edit takes effect
# on the next rebuild; the Unraid share holds only data. # on the next rebuild; the Unraid share holds only data.
@@ -582,7 +587,39 @@ in
done done
echo "pstackSkills: installed ${toString (lib.length pstackSkillNames)} pinned skills into $dest" echo "pstackSkills: installed ${toString (lib.length pstackSkillNames)} pinned skills into $dest"
''; '';
# explain-simply skill, a house-authored skill checked into this repo at
# home/.agents/skills/explain-simply. It lives in the shared universal
# directory (instead of the opencode-only dotfiles path) so every agent that
# reads ~/.agents/skills - Codex, Pi, OpenCode, and Claude Code (via the
# link below) - sees the skill. The repo is the single source of truth; this
# block copies the checked-in source into the live dir on every rebuild,
# healing a half-removed install.
home.activation.explainSimplySkill = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
set -euo pipefail
src="${dotfiles}/home/.agents/skills/explain-simply"
dest="$HOME/.agents/skills/explain-simply"
if [ ! -d "$src" ]; then
echo "explainSimplySkill: checked-in source missing at $src" >&2
exit 1
fi
mkdir -p "$HOME/.agents/skills"
# Remove first so a renamed source file never lingers in the old copy.
rm -rf "$dest"
if ! cp -R "$src" "$dest"; then
echo "explainSimplySkill: failed to install $dest" >&2
exit 1
fi
# Store files are read-only; make the installed copy writable again.
chmod -R u+w "$dest"
# Claude Code reads ~/.claude/skills rather than the universal directory;
# restore the link the Skills CLI would normally create. User-replaced
# directories are left alone.
claudeLink="$HOME/.claude/skills/explain-simply"
mkdir -p "$HOME/.claude/skills"
if [ -L "$claudeLink" ] || [ ! -e "$claudeLink" ]; then
ln -sfn ../../.agents/skills/explain-simply "$claudeLink"
fi
'';
# OpenSuperWhisper - local voice-first prompting (cask in configuration.nix). # OpenSuperWhisper - local voice-first prompting (cask in configuration.nix).
# The app reads its model from its own Application Support directory, so the # The app reads its model from its own Application Support directory, so the
# 1.6 GB Whisper model is downloaded here once and kept outside the Nix store. # 1.6 GB Whisper model is downloaded here once and kept outside the Nix store.
@@ -0,0 +1,36 @@
---
name: explain-simply
description: Use when the user asks for something explained in plain simple English — ELI5, bottoms up, walk me through it, I don't get it, "really get it". Triggers on phrases like "explain simply", "explain this", "eli5", "plain english", "plain and literal", "bottoms up", "walk me through", "i dont get it". Produces a one-read explanation that ends with a strong "wow — I really get it" feeling.
---
# Explain Simply — bottoms up, plain English
Give the user a reading they understand on the first pass, and fewer after. Plain English throughout. The goal is not just to be accurate; it is to make the whole idea click.
## Procedure
1. **Goal first, one sentence.** Say what the thing is, for who, and why anyone cares. No restating the question, no praise, no framing.
2. **Bottoms up.** Start with the single smallest thing that makes sense on its own. Build upward in that order. Each step assumes only what came before it, or you define a little at that point.
3. **Plain words.** Every technical term or business word gets a short plain meaning next to it in the same line: "deploy (push the change to the live server)". Never assume the reader already knows the words.
4. **Short units.** One idea per sentence, one or two ideas per paragraph. No walls of text.
5. **Analogies only as spotlights.** Use one when it helps, never when it substitutes for a plain word.
6. **Structure.** One numbered point per different idea; tiny header noise. Light decoration, no banners.
7. **Close with the mental model.** One tight recap of the picture the reader should hold onto, e.g. "So the whole thing works because ..."
8. **One check.** End with one short ask: does that connect, or is there a gap worth asking about? No pleasantry padding.
## Length and tone
Adjust to the topic. A simple concept can fit in a short block; a dense one earns a slightly longer page but never a brochure. Friendly and warm, not patronizing. Never sound dumbed-down or afraid of the reader's intelligence; aim for clarity and confidence.
## Anti-patterns
- Preamble, throat-clearing, or praise before the goal sentence
- Jargon dressed up as insight
- Paragraph walls
- Analogies replacing the literal mechanism
- "It's basically...", "at the end of the day...", "think of it as..." without a real payoff
- Padding the response with filler to reach enthusiasm
## When this skill fits
Read for understanding first, sketch, or study a technical or business idea. Not for writing specs, architectural decisions, or code reviews — those keep the rigor of their own docs.
+7 -29
View File
@@ -1,41 +1,19 @@
{ {
"rules": [ "rules": [
{ {
"when": "Design, architecture, architectural review, or design review tasks. This includes product design, UI/UX design, system design, and design investigations. For design tasks with screenshots or other image context, this rule takes precedence over the UI implementation rule. Ordinary implementation and routine code validation do not match this rule. When a task moves from design to implementation, resolve the implementation profile again rather than retaining this model for continuity.", "when": "Design, architecture, architectural review, or design review tasks. This includes product design, UI/UX design, system design, and design investigations. Ordinary implementation and routine code validation do not match this rule.",
"use": { "use": {
"harness": "pi", "harness": "pi",
"model": "openai-codex/gpt-6.1-sol", "model": "openai-codex/gpt-6.1-sol",
"effort": "xhigh", "effort": "xhigh",
"provider": "codex" "provider": "codex"
}, },
"why": "Captain's order: use GPT-6.1 Sol through openai-codex in Pi for design and architectural review tasks. Other task types retain their existing profiles." "why": "Retain the existing design profile during the temporary OpenCode Go pause."
},
{
"when": "UI work where supplied screenshots or other image context materially affect the implementation or verification.",
"use": [
{
"harness": "opencode",
"model": "opencode-go/deepseek-v4.1-flash",
"provider": "opencode-go"
}
],
"why": "Captain's order 2026-10-21: paid Go for every crewmate and scout after the free lane hit 'Free usage exceeded' with a 10.5 hour retry, which ended five sessions in forty minutes. The free deepseek-v4.1-flash-free order of 2026-10-20 resumes when that lane resets; paid Go had 5 percent of its monthly window left, projected empty 2026-10-22T05:43Z."
},
{
"when": "Documentation tasks: writing, updating, or reviewing documentation, docs, READMEs, or technical writing.",
"use": {
"harness": "opencode",
"model": "opencode-go/beam-free",
"provider": "opencode-go"
},
"why": "Captain's order 2026-11-15: documentation tasks use the free beam-free model to conserve paid quota."
} }
], ],
"default": [ "default": {
{ "harness": "pi",
"harness": "opencode", "model": "openai-codex/gpt-6.1-sol",
"model": "opencode-go/deepseek-v4.1-flash", "provider": "codex"
"provider": "opencode-go" }
}
]
} }
+9 -6
View File
@@ -1,23 +1,26 @@
{ {
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"model": "opencode-go/deepseek-v4.1-flash", "model": "opencode-go/deepseek-v4.1-flash",
"instructions": ["AGENTS.md"], "instructions": [
"AGENTS.md"
],
"provider": { "provider": {
"omlx": { "omlx": {
"npm": "@ai-sdk/openai-compatible", "npm": "@ai-sdk/openai-compatible",
"name": "oMLX (Local)", "name": "oMLX (Local)",
"options": { "options": {
"baseURL": "http://localhost:8000/v1", "baseURL": "http://localhost:8001/v1",
"apiKey": "none" "apiKey": "none"
}, },
"models": { "models": {
"qwen3.6-35b": { "inkling-2-mini": {
"id": "Jundot/Qwen3.6-35B-A3B-oQ4-mtp", "id": "Inkling-2-Mini-UD-IQ3_XXS",
"name": "Qwen 3.6 35B (o4-mtp)", "name": "Inkling 2 Mini IQ3_XXS (Splash)",
"tool_call": true, "tool_call": true,
"reasoning": true,
"limit": { "limit": {
"context": 65536, "context": 65536,
"output": 65536 "output": 16384
} }
} }
} }
+42 -3
View File
@@ -15,13 +15,52 @@
"name": "Qwen 3.6 35B (o4-mtp)", "name": "Qwen 3.6 35B (o4-mtp)",
"capabilities": { "capabilities": {
"tools": true, "tools": true,
"input": ["text"], "input": [
"output": ["text"] "text"
],
"output": [
"text"
]
}, },
"limit": { "limit": {
"context": 65536, "context": 65536,
"output": 65536 "output": 65536
} }
},
"twil-8b": {
"modelID": "TwIL-8B-MLX-slq-4.5bpw",
"name": "TwIL 8B (oMLX)",
"capabilities": {
"tools": false,
"input": [
"text"
],
"output": [
"text"
]
},
"limit": {
"context": 131072,
"output": 16384
}
},
"inkling-2-mini": {
"modelID": "Inkling-2-Mini-oQ4e-mtp",
"name": "Inkling 2 Mini (oQ4e, oMLX)",
"capabilities": {
"tools": true,
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 65536,
"output": 16384
}
} }
} }
}, },
@@ -37,4 +76,4 @@
} }
} }
} }
} }
+7 -6
View File
@@ -1,7 +1,7 @@
{ {
"providers": { "providers": {
"omlx": { "omlx": {
"baseUrl": "http://localhost:8000/v1", "baseUrl": "http://localhost:8001/v1",
"api": "openai-completions", "api": "openai-completions",
"apiKey": "none", "apiKey": "none",
"compat": { "compat": {
@@ -9,14 +9,15 @@
}, },
"models": [ "models": [
{ {
"id": "Jundot/Qwen3.6-35B-A3B-oQ4-mtp", "id": "Inkling-2-Mini-UD-IQ3_XXS",
"name": "Qwen 3.6 35B (o4-mtp)", "name": "Inkling 2 Mini IQ3_XXS (Splash)",
"reasoning": false, "reasoning": true,
"input": [ "input": [
"text" "text",
"image"
], ],
"contextWindow": 65536, "contextWindow": 65536,
"maxTokens": 65536, "maxTokens": 16384,
"cost": { "cost": {
"input": 0, "input": 0,
"output": 0, "output": 0,
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"lastChangelogVersion": "1.5.0", "lastChangelogVersion": "1.6.0",
"theme": "rose-pine-moon", "theme": "rose-pine-moon",
"defaultProvider": "opencode-go", "defaultProvider": "opencode-go",
"defaultModel": "deepseek-v4.1-flash", "defaultModel": "deepseek-v4.1-flash",
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
# Serve the Inkling-2-Mini IQ3_XXS model via oMLX+Splash for local coding use.
# Usage: serve-inkling [port]
# Default port: 8001
set -euo pipefail
PORT="${1:-8001}"
OMLX="${HOME}/.omlx/bin/omlx"
if [ ! -x "$OMLX" ]; then
echo "omlx not found at $OMLX" >&2
exit 1
fi
# Find the inkling gguf directory dynamically
INKLING_GGUF_DIR=$(find "${HOME}/.omlx/gguf" -maxdepth 1 -type d -name "Inkling-2-Mini-UD-IQ3_XXS-*" | head -1)
if [ -z "$INKLING_GGUF_DIR" ] || [ ! -d "$INKLING_GGUF_DIR" ]; then
echo "Inkling IQ3_XXS GGUF model not found in ~/.omlx/gguf/" >&2
exit 1
fi
INKLING_DIR="${HOME}/.omlx/models/inkling-only"
mkdir -p "$INKLING_DIR"
# Clean and recreate symlink
rm -rf "$INKLING_DIR/Inkling-2-Mini-UD-IQ3_XXS"
ln -s "$INKLING_GGUF_DIR" "$INKLING_DIR/Inkling-2-Mini-UD-IQ3_XXS"
# Save current settings to restore later
SETTINGS="${HOME}/.omlx/settings.json"
BACKUP=$(mktemp)
cp "$SETTINGS" "$BACKUP"
cleanup() {
cp "$BACKUP" "$SETTINGS"
rm -f "$BACKUP"
}
trap cleanup EXIT
echo "Serving Inkling IQ3_XXS on port $PORT via oMLX (model dir: $INKLING_DIR)..."
exec "$OMLX" serve --model-dir "$INKLING_DIR" --port "$PORT" --host 127.0.0.1
+14 -6
View File
@@ -13,15 +13,15 @@ The firstmate crew dispatch + Gitea PR helper are wired by `darwin-rebuild`, but
cd ~/Documents/investor-flow cd ~/Documents/investor-flow
git remote set-url origin http://unraid.local:3003/transnet/investor-flow git remote set-url origin http://unraid.local:3003/transnet/investor-flow
Verify: `fm` and `fm-oc2` launch OpenCode 2 as the first mate and `fm-pi` is the explicit Pi fallback; `oc2 --version` prints the Homebrew opencode version; `pi --list-models mimo` shows `opencode-go/mimo-v2.5-pro`; `tea pulls list --repo transnet/investor-flow` works. Verify: `fm` and `fm-oc2` launch OpenCode 2 as the first mate, `fm-pi` is the explicit Pi fallback, and `fm-omp` is the explicit omp-harness fallback; `oc2 --version` prints the Homebrew opencode version; `pi --list-models mimo` shows `opencode-go/mimo-v2.5-pro`; `tea pulls list --repo transnet/investor-flow` works.
## firstmate launcher and crew model routing ## firstmate launcher and crew model routing
`fm` is the permanent firstmate launcher. `fm-oc2` is the same launcher under its explicit OpenCode 2 name, so both aliases expand to the same command. They change to `~/Documents/firstmate` and execute `~/.local/bin/oc2`, which runs the Homebrew OpenCode build with the isolated `~/.config/opencode2/opencode.json` config. `fm-pi` starts Pi instead and remains only an explicit fallback. Never make Pi the default launcher. `fm` is the permanent firstmate launcher. `fm-oc2` is the same launcher under its explicit OpenCode 2 name, so both aliases expand to the same command. They change to `~/Documents/firstmate` and execute `~/.local/bin/oc2`, which runs the Homebrew OpenCode build with the isolated `~/.config/opencode2/opencode.json` config. `fm-pi` and `fm-omp` start Pi and omp instead and remain only as explicit fallbacks. Never make Pi or omp the default launcher.
The three aliases share one firstmate home. They read the same task records, inbox, and state. Each tool keeps its own chat history, so a conversation in OpenCode 2 does not appear in Pi, and the reverse. Quit the running primary before you start the other one. A single firstmate home serves one primary at a time. The four aliases (`fm`, `fm-oc2`, `fm-pi`, `fm-omp`) share one firstmate home. They read the same task records, inbox, and state. Each tool keeps its own chat history, so a conversation in OpenCode 2 does not appear in Pi or omp, and the reverse. Quit the running primary before you start the other one. A single firstmate home serves one primary at a time.
`home.nix` owns all three aliases, so a rebuild regenerates them. The installed `~/.zshrc` changes only at the next activation. `home.nix` owns all four aliases, so a rebuild regenerates them. The installed `~/.zshrc` changes only at the next activation.
Worker routing lives in `home/.config/firstmate/crew-dispatch.json`, which is symlinked to `~/Documents/firstmate/config/crew-dispatch.json`: Worker routing lives in `home/.config/firstmate/crew-dispatch.json`, which is symlinked to `~/Documents/firstmate/config/crew-dispatch.json`:
@@ -58,7 +58,7 @@ The captain confirmed the split on 2026-11-15. Leave it unchanged:
./tests/run.sh # all checks ./tests/run.sh # all checks
``` ```
The launcher check sources the real generated zshrc in an interactive zsh. A `pi` spy on PATH and an `OPENCODE2_BIN` spy capture the launch of `fm`, `fm-oc2`, and `fm-pi`, record the working directory, and exit at once, so no firstmate session starts. The launcher check sources the real generated zshrc in an interactive zsh. A `pi` spy, an `omp` spy, and an `OPENCODE2_BIN` spy capture the launch of `fm`, `fm-oc2`, `fm-pi`, and `fm-omp`, record the working directory, and exit at once, so no firstmate session starts.
### Install after merge ### Install after merge
@@ -68,7 +68,7 @@ The Nix sources in this repository are the durable record. The live files are ge
2. Confirm `readlink ~/.dotfiles` names the checkout that holds the merged commit. 2. Confirm `readlink ~/.dotfiles` names the checkout that holds the merged commit.
3. Run `./rebuild.sh` from that checkout. 3. Run `./rebuild.sh` from that checkout.
4. Run `./tests/fm-launcher.sh --live` and `./tests/crew-dispatch.sh`. 4. Run `./tests/fm-launcher.sh --live` and `./tests/crew-dispatch.sh`.
5. Open a fresh shell and run `alias fm fm-oc2 fm-pi`. `fm` and `fm-oc2` must show `exec /Users/laptran/.local/bin/oc2`, and `fm-pi` must show `exec pi`. 5. Open a fresh shell and run `alias fm fm-oc2 fm-pi fm-omp`. `fm` and `fm-oc2` must show `exec /Users/laptran/.local/bin/oc2`; `fm-pi` must show `exec pi`; `fm-omp` must show `exec omp`.
### Checkout topology and safe installation ### Checkout topology and safe installation
@@ -174,6 +174,14 @@ Each run removes and recopies only those eleven directories, so a renamed upstre
Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`, outside this repo. Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`, outside this repo.
## explain-simply skill (plain-English explanations)
`home/.agents/skills/explain-simply/SKILL.md` is a house-authored skill checked into this repo: it triggers on "explain simply", "ELI5", "plain english", "bottoms up"-type requests, and produces a one-read bottoms-up explanation that closes with a strong "wow — I really get it" feel.
`home.activation.explainSimplySkill` copies the checked-in source into `~/.agents/skills/explain-simply` on every rebuild (removing any stale copy first) and restores the `~/.claude/skills/explain-simply` link for Claude Code. OpenCode, Codex, and Pi read `~/.agents/skills` directly and need nothing else. This follows the pstackSkills pattern: activation, not the `home.file` force-symlink, owns this directory.
The checked-in source is the single source of truth. After editing it, run `./rebuild.sh` to refresh the live `~/.agents/skills` copy. User-replaced files in `~/.claude/skills/explain-simply` are left untouched.
## OpenSuperWhisper (local voice input) ## OpenSuperWhisper (local voice input)
Hold a shortcut, speak, release, and the transcript pastes into the focused app. Everything runs on the Mac: no audio or transcript leaves the machine. Hold a shortcut, speak, release, and the transcript pastes into the focused app. Everything runs on the Mac: no audio or transcript leaves the machine.
+6
View File
@@ -191,6 +191,12 @@ else
echo "==> WARNING: flake update failed. Continuing with locked inputs." echo "==> WARNING: flake update failed. Continuing with locked inputs."
fi fi
# Trust third-party Homebrew taps before the switch, so brew bundle can
# install formulae from them without an interactive prompt.
if command -v brew >/dev/null 2>&1; then
brew trust can1357/tap 2>/dev/null || true
fi
sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp
# Update tracked skills after activation. Exclude security-audit to preserve # Update tracked skills after activation. Exclude security-audit to preserve
+11 -2
View File
@@ -5,6 +5,7 @@
# fm -> OpenCode 2 through ~/.local/bin/oc2 # fm -> OpenCode 2 through ~/.local/bin/oc2
# fm-oc2 -> OpenCode 2 through ~/.local/bin/oc2, identical to fm # fm-oc2 -> OpenCode 2 through ~/.local/bin/oc2, identical to fm
# fm-pi -> Pi # fm-pi -> Pi
# fm-omp -> omp
# #
# The check reads the zshrc that the real home-manager configuration generates # The check reads the zshrc that the real home-manager configuration generates
# (the same file a rebuild installs), sources it in an interactive zsh, and runs # (the same file a rebuild installs), sources it in an interactive zsh, and runs
@@ -12,6 +13,7 @@
# - a `pi` spy first on PATH, which catches a Pi launch; # - a `pi` spy first on PATH, which catches a Pi launch;
# - a spy named by OPENCODE2_BIN, which the real ~/.local/bin/oc2 wrapper # - a spy named by OPENCODE2_BIN, which the real ~/.local/bin/oc2 wrapper
# execs instead of the OpenCode binary; # execs instead of the OpenCode binary;
# - an omp spy on PATH, used for the omp-harness launcher;
# - the spies record their working directory, so a launcher that forgets the # - the spies record their working directory, so a launcher that forgets the
# `cd` into the firstmate home fails here. # `cd` into the firstmate home fails here.
# Nothing here launches a real firstmate primary, Pi, or OpenCode, and the spies # Nothing here launches a real firstmate primary, Pi, or OpenCode, and the spies
@@ -26,7 +28,7 @@ set -euo pipefail
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P) ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)
MODE=source MODE=source
ZSHRC='' ZSHRC=''
LAUNCHERS='fm:oc2 fm-oc2:oc2 fm-pi:pi' LAUNCHERS='fm:oc2 fm-oc2:oc2 fm-pi:pi fm-omp:omp'
FM_HOME=${FM_HOME:-"$HOME/Documents/firstmate"} FM_HOME=${FM_HOME:-"$HOME/Documents/firstmate"}
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
@@ -61,7 +63,14 @@ for arg in "$@"; do printf '|%s' "$arg" >> "$FM_TEST_SPY_LOG"; done
printf '\n' >> "$FM_TEST_SPY_LOG" printf '\n' >> "$FM_TEST_SPY_LOG"
exit 0 exit 0
SH SH
chmod +x "$TMP/bin/pi" "$TMP/bin/opencode2-spy" cat > "$TMP/bin/omp" <<'SH'
#!/usr/bin/env bash
printf 'omp|%s' "$PWD" >> "$FM_TEST_SPY_LOG"
for arg in "$@"; do printf '|%s' "$arg" >> "$FM_TEST_SPY_LOG"; done
printf '\n' >> "$FM_TEST_SPY_LOG"
exit 0
SH
chmod +x "$TMP/bin/pi" "$TMP/bin/opencode2-spy" "$TMP/bin/omp"
printf '{}\n' > "$TMP/opencode.json" printf '{}\n' > "$TMP/opencode.json"
case "$MODE" in case "$MODE" in