Open source CapCut alternative.
TypeScript
docs: align skills and guides with discover-by-doing and bundled-tool behavior
David Lec35e6b2fdc70
diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/data/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/data/SKILL.mdindex 5f00f920..66379d26 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/data/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/data/SKILL.md@@ -8,8 +8,8 @@ tools: shell_exec`python3` and `sqlite3` ship with macOS — lead with them so a task never dependson an uninstalled tool. `jq` and `mlr` are nicer for one-liners but are not-guaranteed; check the ENVIRONMENT tool list before reaching for them. Writing an-output file is reversible (consent gate).+guaranteed; reach for them directly and fall back to `python3` if the command+isn't found. Writing an output file is reversible (consent gate).## python3 — the always-available workhorse (stdlib csv + json)- CSV to JSON: `python3 -c "import csv,json,sys; json.dump(list(csv.DictReader(open('in.csv'))), sys.stdout, indent=2)" > out.json`.@@ -20,7 +20,7 @@ output file is reversible (consent gate).## sqlite3 — SQL over a CSV without a database- `sqlite3 :memory: -cmd '.mode csv' -cmd '.import in.csv t' 'select category, count(*) from t group by category'`.-## jq / mlr — only when the ENVIRONMENT block lists them+## jq / mlr — try them, fall back to python3 if not installed- Filter/reshape JSON: `jq '.items[] | {name, id}' in.json`.- CSV↔JSON: `mlr --c2j cat in.csv`, `mlr --j2c cat in.json`.diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.mdindex fd1e2625..f7d80c3e 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.md@@ -9,9 +9,9 @@ tools: shell_exec, image.edit, image.generate, files.describeTwo kinds of work: mechanical pixels (size, format, crop, metadata) use the localtools; semantic changes (remove a background, restyle, add or remove an object,match another photo's look, make an image from scratch) use the generative-`image.*` tools. `sips` and `exiftool` are bundled; `magick` (ImageMagick) only when-installed (check the ENVIRONMENT tool list). Editing in place is reversible (consent-gate); a new `--out` path is safer — prefer it when the original should survive.+`image.*` tools. `sips` and `exiftool` are bundled; reach for `magick` (ImageMagick)+directly and fall back to `sips` if it isn't installed. Editing in place is reversible+(consent gate); a new `--out` path is safer — prefer it when the original should survive.## sips — resize, convert, rotate (writes a new file with --out)- Resize to a max dimension, aspect preserved: `sips -Z 1024 in.jpg --out small.jpg`.@@ -22,7 +22,7 @@ gate); a new `--out` path is safer — prefer it when the original should surviv## magick — crop, composite (only if installed)- Crop a region WxH+X+Y: `magick in.png -crop 200x200+0+0 out.png`.-- If `magick` is not in the ENVIRONMENT list, do what `sips` can and say plainly what needs ImageMagick; do not pretend it ran.+- If `magick` isn't installed (the command fails with `command not found`), do what `sips` can and say plainly what needs ImageMagick; do not pretend it ran.## exiftool — read and strip metadata- Read all metadata: `exiftool in.jpg`. One tag: `exiftool -GPSLatitude -GPSLongitude in.jpg`.diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/media/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/media/SKILL.mdindex e49cc3d9..c91a723f 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/media/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/media/SKILL.md@@ -6,9 +6,10 @@ tags: video, audio, media, download, convert, youtube, subtitles, transcribekeywords: video, audio, download, youtube, vimeo, mp4, mp3, convert, trim, clip, extract audio, transcode, frame, subtitle, subtitles, caption, captions, transcribe, transcript, translate, srt, vtttools: shell_exec, llm.generate-`yt-dlp` and `ffmpeg`/`ffprobe` are bundled and on the PATH, so use them by bare-name. Downloading and writing files is reversible — propose the command and let-the consent gate handle approval; do not fall back to a browser.+`yt-dlp` and `ffmpeg`/`ffprobe` are bundled, signed, and on the PATH, so use them+by bare name. They are first-party capability tools: downloading from the user's+URL and writing the output file run immediately, with no consent prompt — just+issue the command, and never fall back to a browser to download.Never probe for or install Homebrew (or any package manager), and never checkwhether these tools exist first — just run them by bare name. The app installsdiff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/pdf/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/pdf/SKILL.mdindex 99a946a9..8886abf3 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/pdf/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/pdf/SKILL.md@@ -20,7 +20,7 @@ happen in Preview. Creating files is reversible (consent gate).## Convert document formats (textutil, built into macOS)- `textutil` converts among txt, html, rtf, doc, docx, odt with no extra tools: `textutil -convert docx in.html -output out.docx`, `textutil -convert txt in.docx -output out.txt`, `textutil -convert html in.rtf -output out.html`.-- Markdown, LaTeX, and EPUB are NOT covered by textutil and need `pandoc`, which is not bundled — use it only when the ENVIRONMENT lists it (`pandoc in.md -o out.docx`); otherwise say plainly that those formats need pandoc installed.+- Markdown, LaTeX, and EPUB are NOT covered by textutil and need `pandoc`, which is not bundled — run `pandoc in.md -o out.docx` directly, and if it isn't installed (`command not found`), say plainly that those formats need pandoc installed.- To make a PDF from a document: convert it to HTML with textutil, then render that HTML to PDF via the `web-capture` skill (headless print).## Extract text or structured data from a PDF — use liteparse (`lit`)diff --git a/docs/guides/agent-harness.md b/docs/guides/agent-harness.mdindex 733b2cbd..31e79645 100644--- a/docs/guides/agent-harness.md+++ b/docs/guides/agent-harness.md@@ -188,15 +188,21 @@ by its argv tokens (typed fields, never natural language) into a risk tier:| **highRisk** | `sudo`, `rm`, `dd`, `curl \| sh`, anything touching `com.apple.TCC` | asks every time, can never be remembered |Consent surfaces in the pointer/notch overlay and reuses the standard-`waitingForPermission` gate. A capability probe records which command-line-tools (and versions) exist on the machine, so the planner only reaches for-what's installed.+`waitingForPermission` gate. The planner discovers what's available by *doing*,+not from a pre-built inventory: it runs the command it needs by bare name, and a+`command not found` failure is just another observation it adapts to — reaching+for another tool or reporting what's missing. It never pre-probes the machine and+never installs anything.Broad capability skills extend this power-user surface beyond the tools macOSships — media (`yt-dlp`, `ffmpeg`), images, PDF/document conversion, datamanipulation, and web capture. The uncommon command-line tools those skillsrely on are bundled inside the signed app, so the capability works without the-user installing anything.+user installing anything. Because they ship signed as a first-party surface,+the classifier treats those bundled tools as `read` — they run immediately,+without a consent prompt, even when they write an output file or fetch the URL+the user named. The planner never installs software or uses a package manager;+a missing tool is reported, not fetched.## Observation and Action (Computer Use)diff --git a/plans/manual-test-plan-2026-06-18.md b/plans/manual-test-plan-2026-06-18.mdindex 4aa02443..f4e92120 100644--- a/plans/manual-test-plan-2026-06-18.md+++ b/plans/manual-test-plan-2026-06-18.md@@ -157,10 +157,10 @@ Do this once before the runs below.- **E:** File written (default `~/Downloads`). PDF: `qpdf --show-npages` ≥ 1 (or `file` says PDF). PNG: `sips -g pixelWidth -g pixelHeight` returns dimensions. No external browser launched; no consent prompt (offscreen WKWebView).- **Static analysis:** ✅ Verified — command registered `DonkeyCommandLayer.swift:118-132`; offscreen WKWebView → PDF/PNG, `~/Downloads` default, destination hardening. ⚠️ The 25s load timeout isn't an obvious named constant in the read — watch behavior on a slow page.-### C7 — Capability skills discoverable + tool probe+### C7 — Capability skills discoverable- **S:** Confirm the five new skills are present/discoverable: `media`, `images`, `pdf`, `data`, `web-capture`. Trigger each with a natural ask and confirm it routes (e.g. "convert this CSV" → `data`; "capture this page" → `web-capture`).-- **E:** Each skill is found by skill search; the ENVIRONMENT tool list shows bundled tools (`ffmpeg`, `yt-dlp`, `lit`, `qpdf`, `exiftool`, `pdf-fill`) as always-present, and optional tools (`magick`, `jq`, `mlr`, `pandoc`) reported only when installed.-- **Static analysis:** ✅ Verified (with caveat) — all five `SKILL.md` files exist under `…/Resources/BuiltInSkills/`; `SystemToolCapabilityProbe.swift:17-20` lists the optional tools. ⚠️ The stale `.build/` bundle is missing the new skills — **build clean** so they load (see summary caveat 2).+- **E:** Each skill is found by skill search. Bundled tools (`ffmpeg`, `yt-dlp`, `lit`, `qpdf`, `exiftool`, `pdf-fill`) run by bare name with no consent prompt; an optional tool (`magick`, `jq`, `mlr`, `pandoc`) that isn't installed fails with `command not found` and the skill falls back — availability is discovered by running, not from a pre-built inventory.+- **Static analysis:** ✅ Verified — all five `SKILL.md` files exist under `…/Resources/BuiltInSkills/`. The capability probe was removed, so there is no ENVIRONMENT tool list to check. ⚠️ The stale `.build/` bundle is missing the new skills — **build clean** so they load (see summary caveat 2).### C8 — On-device voice transcription + Gemini fallback- **S (on-device):** With network on and macOS speech available, use the voice button to dictate a sentence.