docks-kit 0.22.1 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +3 -1
- package/cli/docs/command-guards.md +79 -6
- package/cli/docs/sync-layers.md +5 -2
- package/cli/docs/toolchain.md +3 -2
- package/cli/src/engine-native/claudeLsp.ts +27 -8
- package/cli/src/engine-native/deps.ts +69 -55
- package/cli/src/engine-native/exec.ts +44 -0
- package/cli/src/engine-native/ompKitPlugin.ts +15 -1
- package/cli/src/engine-native/ompPlugins.ts +68 -9
- package/cli/src/engine-native/services.ts +5 -0
- package/cli/src/generated/sotPayload.ts +4 -4
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -78,7 +78,7 @@ omp SoT notes:
|
|
|
78
78
|
- `SoT/.omp/AGENTS.md`, `config.yml`, `models.yml`, and `mcp.json` deploy to `~/.omp/agent/`.
|
|
79
79
|
- `SoT/.omp/intercom.json` deploys to `$PI_CODING_AGENT_DIR/intercom/config.json`. The default root is `~/.pi/agent`. Under a named omp profile (`OMP_PROFILE` or `PI_PROFILE`), it deploys to `<profile agentDir>/intercom/config.json`, because omp exports `PI_CODING_AGENT_DIR` as the profile agent directory.
|
|
80
80
|
- `ompFileDeploy.ts syncMergedYaml` deep-merges `config.yml` through `ompYaml.ts mergeOmpConfig` and `models.yml` through `mergeOmpModels`. Both wrap one generic mapping merge; only the config wrapper prunes stale `retry.fallbackChains` wildcards and merges `bash.patterns`.
|
|
81
|
-
- `SoT/.omp/config.yml` `bash.patterns` holds the destructive-command guards. omp's `CRITICAL_BASH_PATTERNS` check returns a bare safety override before a matching prompt rule, and `tools.approvalMode: yolo` ignores a bare override, so a prompt on a critical command becomes an allow, in subagents too (`omp://approval-mode.md`). Every `rm` shape that check can flag is therefore a deny: recursive `rm`, `sudo` anywhere before `rm` (also by path), any `rm` with an `r` or `f` option before an absolute path, and `--no-preserve-root`. By owner decision (0.20.9), the recursive-`rm` deny also covers any prefix (a `* rm ` copy of each bare cluster rule, so `env X=1 rm -rf b`, `xargs rm -rf`, `find . -exec rm -rf {} +`, and `git rm -r dir` are denied) and the `-ri`, `-ir`, `-Ri`, and `-iR` clusters for bare `rm`, `*/rm`, and `* rm`. By owner decision (0.21.0), 17 more denies cover bulk removal that can empty the home directory: `find -delete` (bare, `*/find`, `* find`), `-exec`, `-execdir`, `-ok`, and `-okdir` with `rm` or `*/rm`, and `xargs rm` in six shapes. No glob can express "inside the temporary directory", so `docks-kit scratch remove` checks that path in code. By the 0.20.9 decision, omp does not prompt for other file removal: a non-denied `rm`, `git rm`, `git worktree remove`, `gio trash`, and `docks-kit scratch remove` run without a prompt. The prompts left are the history-loss commands: `git clean`, `git reset --hard`, and every `git push` form that could force. A `git push` word that starts with `$` or a backtick also prompts, because a variable can expand to a `+` refspec. omp never applies an allow rule to a command that holds a `$` that the shell expands, so no kit exception can exempt a branch delete in a loop; `SoT/.omp/AGENTS.md` tells the agent to write each `git push` ref literally instead. The list order is deny, then prompts, then `trash *`. omp takes the first match. `ompYaml.ts mergeBashPatterns, exception-aware rule merge` keeps user rules and groups all rules as kit deny, user deny, user prompt, kit exception (a kit allow listed before the first kit prompt; the kit currently ships none), kit prompt, other user rules, kit allow, so a user deny or prompt precedes every kit allow. It treats a deployed rule equal to a kit rule (approval case-folded, `match` whitespace collapsed) as the kit copy, so a re-sync is a no-op. A rule the kit stops shipping stays as a user rule, so retire one through `ompRemovals.ts OMP_RETIRED_BASH_RULES`. `cli/test/lib/ompBashPatterns.ts` ports omp 18.11.1's matcher, critical patterns, and yolo resolution; `cli/test/unit/ompBashPatterns.test.ts` asserts each command's final outcome and the merge. omp subagents reject every `prompt`, and the `eval` tool stays unrestricted by owner decision.
|
|
81
|
+
- `SoT/.omp/config.yml` `bash.patterns` holds the destructive-command guards. omp's `CRITICAL_BASH_PATTERNS` check returns a bare safety override before a matching prompt rule, and `tools.approvalMode: yolo` ignores a bare override, so a prompt on a critical command becomes an allow, in subagents too (`omp://approval-mode.md`). Every `rm` shape that check can flag is therefore a deny: recursive `rm`, `sudo` anywhere before `rm` (also by path), any `rm` with an `r` or `f` option before an absolute path, and `--no-preserve-root`. By owner decision (0.20.9), the recursive-`rm` deny also covers any prefix (a `* rm ` copy of each bare cluster rule, so `env X=1 rm -rf b`, `xargs rm -rf`, `find . -exec rm -rf {} +`, and `git rm -r dir` are denied) and the `-ri`, `-ir`, `-Ri`, and `-iR` clusters for bare `rm`, `*/rm`, and `* rm`. By owner decision (0.21.0), 17 more denies cover bulk removal that can empty the home directory: `find -delete` (bare, `*/find`, `* find`), `-exec`, `-execdir`, `-ok`, and `-okdir` with `rm` or `*/rm`, and `xargs rm` in six shapes. No glob can express "inside the temporary directory", so `docks-kit scratch remove` checks that path in code. By the 0.20.9 decision, omp does not prompt for other file removal: a non-denied `rm`, `git rm`, `git worktree remove`, `gio trash`, and `docks-kit scratch remove` run without a prompt. The prompts left are the history-loss commands: `git clean`, `git reset --hard`, and every `git push` form that could force. A `git push` word that starts with `$` or a backtick also prompts, because a variable can expand to a `+` refspec. omp also prompts before a git command that skips the repository's hooks (#111): a word after `git` that starts with `--no-v` (git accepts each unique prefix of `--no-verify`, and `git am` accepts `--no-v`), a `git commit` or `git am` short-option cluster that can hold `-n`, `core.hooksPath` or `core.hookspath` after `git`, and a line that names `GIT_CONFIG_COUNT` or `GIT_CONFIG_PARAMETERS`. Each of these rules starts with `*`, so a word before `git`, such as `HUSKY=0`, `env`, or `/usr/bin/`, does not hide the command; `cli/docs/command-guards.md` lists the gaps. omp never applies an allow rule to a command that holds a `$` that the shell expands, so no kit exception can exempt a branch delete in a loop; `SoT/.omp/AGENTS.md` tells the agent to write each `git push` ref literally instead. The list order is deny, then prompts, then `trash *`. omp takes the first match. `ompYaml.ts mergeBashPatterns, exception-aware rule merge` keeps user rules and groups all rules as kit deny, user deny, user prompt, kit exception (a kit allow listed before the first kit prompt; the kit currently ships none), kit prompt, other user rules, kit allow, so a user deny or prompt precedes every kit allow. It treats a deployed rule equal to a kit rule (approval case-folded, `match` whitespace collapsed) as the kit copy, so a re-sync is a no-op. A rule the kit stops shipping stays as a user rule, so retire one through `ompRemovals.ts OMP_RETIRED_BASH_RULES`. `cli/test/lib/ompBashPatterns.ts` ports omp 18.11.1's matcher, critical patterns, and yolo resolution; `cli/test/unit/ompBashPatterns.test.ts` asserts each command's final outcome and the merge. omp subagents reject every `prompt`, and the `eval` tool stays unrestricted by owner decision.
|
|
82
82
|
- `ompSync.ts` runs `ompRemovals.ts syncOmpRemovals, retired-key inventory` right after the config merge, and that pass force-prunes retired kit-owned keys from `~/.omp/agent/config.yml` on every sync, without `--reconcile`. The pass is required because `mergeOmpConfig` is additive, so removing a key from the SoT alone never removes it from a deployed file. A key retired with a recorded value is pruned only while the deployed value still matches that value, so a user edit survives; a key retired outright, such as `providers.webSearchOrder`, is pruned at any value. The same pass removes each `bash.patterns` rule listed in `OMP_RETIRED_BASH_RULES` (the 39 file-removal rules retired in 0.20.9). It compares with the merge's kit-rule normalization (approval case-folded, `match` whitespace collapsed), so a user rule with a different `match` or `approval` survives.
|
|
83
83
|
- `cycleOrder` ends with `astra` as its fifth stop. `modelRoles.astra` is `openai-codex/gpt-6-astra:xhigh`, and `modelTags.astra` is visible. Astra and Fable fall back to each other through concrete selectors. `modelRoles.fable` remains `anthropic/claude-fable-5-1:medium`, with visible `modelTags.fable`. The hidden `switch_fable` role uses the same Fable selector and keeps an empty fallback chain.
|
|
84
84
|
- `modelRoles.task` is `anthropic/claude-opus-5-5:high`, and `retry.fallbackChains.task` falls back to `openai-codex/gpt-6.1-sol:high`. `task.maxEffort` is `xhigh`: a caller `effort: hi` outranks the role's `:high` suffix and maps to the top of the model ladder, so the cap keeps `hi` at `xhigh` instead of `max`. `advisor` is `anthropic/claude-opus-5-5:medium` with an empty fallback chain, because a GPT-6 Sol advisor looped on repeated reads under an Opus 5.5 session. Never put any GPT model (`openai-codex/gpt-*`, including GPT-6.1 Sol and GPT-6 Astra) in the advisor role or chain; Astra also costs too much for this role. `smol`, `commit`, and `tiny` use `openai-codex/gpt-6-luna`. The kit-defined hidden `reviewer` role is `openai-codex/gpt-6.1-sol:xhigh` with `anthropic/claude-opus-5-5:xhigh` as its retry fallback, and all four reviewer entries in `task.agentModelOverrides` point to `@reviewer`. `ompOverlay.ts ROLE_ORDER, FALLBACK_ORDER` list `reviewer`, so a free session also replaces it. Only bundled `reviewer` and `security-reviewer` are discoverable OMP agents; `code-reviewer` and `plan-reviewer` stay dormant. The `SoT/toolchain.json` omp floor is 18.4.4, the oldest release the kit tested with `gpt-6.1-sol`. That release lists and serves the model through the `openai-codex` provider. `cli/docs/omp-models.md` records the checks.
|
package/README.md
CHANGED
|
@@ -117,7 +117,9 @@ and a later flag-less sync reverts them. Full reference: `docks-kit docs flags`
|
|
|
117
117
|
home directory or `/` and `HOME` reassignment are denied. omp also denies
|
|
118
118
|
every recursive `rm`, `find -delete`, `find -exec rm`, and `xargs rm`, and
|
|
119
119
|
runs any other `rm` without a prompt. In omp, `git clean`,
|
|
120
|
-
`git reset --hard`,
|
|
120
|
+
`git reset --hard`, any `git push` that could force, and the common forms
|
|
121
|
+
of a git command that skips the repository's hooks (`--no-verify`,
|
|
122
|
+
`git commit -n`, a `core.hooksPath` change) ask; Claude Code and
|
|
121
123
|
Codex also ask before `find -delete`, a recursive `rm`, and every `git rm`.
|
|
122
124
|
An omp subagent cannot answer an ask, so omp rejects it; a Codex ask can go
|
|
123
125
|
to its `auto_review` reviewer. Details, per-tool differences, and gaps:
|
|
@@ -12,7 +12,8 @@ force, empty, or delete asks. Where omp's critical-command check acts, the
|
|
|
12
12
|
form is denied instead. A false positive in the ask tier is accepted. omp is
|
|
13
13
|
the exception for file removal: by owner decision, omp runs any removal that
|
|
14
14
|
it does not deny without a prompt. omp still asks before a removal that loses
|
|
15
|
-
history: `git clean`, `git reset --hard`, and a force push.
|
|
15
|
+
history: `git clean`, `git reset --hard`, and a force push. omp also asks
|
|
16
|
+
before a git command that skips the repository's hooks.
|
|
16
17
|
|
|
17
18
|
The policy sorts shell commands into three tiers:
|
|
18
19
|
|
|
@@ -44,6 +45,7 @@ that `eval` starts.
|
|
|
44
45
|
| `find ... -delete`, `find ... -exec rm` (also `-execdir`, `-ok`, `-okdir`), `xargs rm` | deny, in every position and by path | ask | ask (every `find` asks) |
|
|
45
46
|
| `git clean`, `git reset --hard` | ask | ask | ask |
|
|
46
47
|
| `git push` that could force: see below | ask | ask | ask (every `git push` asks) |
|
|
48
|
+
| A git command that skips the repository's hooks: see below | ask | no rule; the classifier decides | ask for each `git push`, `git merge`, and `git rebase` that starts the command; no rule for `git commit`, `git am`, or `git pull` |
|
|
47
49
|
| `git rm -- <path>`, `git worktree remove -- <path>` | allow | ask | ask |
|
|
48
50
|
| `git worktree remove --force -- <path>` | allow; the omp prompt permits it once, after the commits are on the remote | ask | ask |
|
|
49
51
|
| `docks-kit scratch remove <path>` | allow; the command removes only a path inside the scratch root, the system temporary directory, or `/var/tmp` | no rule | no rule |
|
|
@@ -76,6 +78,46 @@ expands, so the kit cannot add an exception for this form. The omp agent
|
|
|
76
78
|
prompt therefore tells the agent to write each ref literally, for example
|
|
77
79
|
`git push origin --delete <branch-a> <branch-b>`.
|
|
78
80
|
|
|
81
|
+
## Commands that skip the repository's hooks
|
|
82
|
+
|
|
83
|
+
In omp, a command asks when it can skip the repository's hooks. Each of
|
|
84
|
+
these rules also matches after a word before `git`, such as `X=1`, `env`,
|
|
85
|
+
`timeout`, or a path like `/usr/bin/git`:
|
|
86
|
+
|
|
87
|
+
- a word after `git` that starts with `--no-v`. Git accepts each unique
|
|
88
|
+
prefix of `--no-verify`, and `git am` accepts the shortest, `--no-v`. This
|
|
89
|
+
covers `git push`, `git commit`, `git merge`, `git pull`, `git rebase`, and
|
|
90
|
+
`git am`, also after `git -C <dir>`;
|
|
91
|
+
- `-n`, or a short-option cluster that starts with two no-argument options,
|
|
92
|
+
in `git commit` or `git am`. Both read `-n` as `--no-verify`, also inside a
|
|
93
|
+
cluster such as `-anm`. The no-argument options are `q`, `v`, `s`, `e`, `a`,
|
|
94
|
+
`i`, `p`, `o`, `n`, and `z` for `git commit`, and `i`, `n`, `3`, `q`, `s`,
|
|
95
|
+
`u`, `k`, `m`, `c`, and `r` for `git am`;
|
|
96
|
+
- `core.hooksPath` or `core.hookspath` after `git`, as in `git -c`,
|
|
97
|
+
`git --config-env`, or `git config`;
|
|
98
|
+
- `GIT_CONFIG_COUNT` or `GIT_CONFIG_PARAMETERS` anywhere in the line, in any
|
|
99
|
+
assignment form such as `=`, `+=`, or `export`. These variables can
|
|
100
|
+
override any configuration key, `core.hooksPath` included, whatever its
|
|
101
|
+
spelling. A line that sets them does not start with `git`, and a
|
|
102
|
+
`GIT_CONFIG_PARAMETERS` entry keeps its inner quotes, as in
|
|
103
|
+
`'core.hooksPath'='/dev/null'`.
|
|
104
|
+
|
|
105
|
+
`git commit -m x`, `git commit -am x`, `git commit -sm x`, and
|
|
106
|
+
`git commit -mn x` (the message `n`) run without a prompt. These forms ask as
|
|
107
|
+
accepted false positives:
|
|
108
|
+
|
|
109
|
+
- another option that starts with `--no-v`, such as `--no-verbose`,
|
|
110
|
+
`--no-verify-signatures`, or `git send-email --no-validate`;
|
|
111
|
+
- a cluster of two no-argument options without `n`, such as
|
|
112
|
+
`git commit -aqm x`;
|
|
113
|
+
- a read such as `git config --get core.hooksPath`. To read the hooks
|
|
114
|
+
directory without a prompt, run `git rev-parse --git-path hooks`;
|
|
115
|
+
- message or search text that holds ` -n`, a two-letter cluster, or `--no-v`,
|
|
116
|
+
such as `git commit -m "use head -n 5"` or `git grep -- --no-verify`. Write
|
|
117
|
+
such a message with `git commit -F <file>`;
|
|
118
|
+
- a line with a later command, because omp tests the whole line:
|
|
119
|
+
`git commit -m x && git log -n 1` asks. Run the commit as its own command.
|
|
120
|
+
|
|
79
121
|
## Why the tools differ
|
|
80
122
|
|
|
81
123
|
| Topic | omp | Claude Code | Codex |
|
|
@@ -194,9 +236,12 @@ the home directory, and no glob can express "inside the temporary directory".
|
|
|
194
236
|
as its own command.
|
|
195
237
|
- **omp, text arguments**: the critical-shape deny also matches text such as
|
|
196
238
|
`git commit -m "rm -f /tmp/x"`. Write such a message with `git commit -F`.
|
|
197
|
-
- **omp, critical patterns in a
|
|
198
|
-
|
|
199
|
-
|
|
239
|
+
- **omp, critical patterns in a line**: a line that holds one of omp's other
|
|
240
|
+
critical patterns turns any matching prompt rule on that line into an
|
|
241
|
+
allow. This applies to a compound line, such as one with `curl ... | sh`,
|
|
242
|
+
and to message text: `git commit -n -m "fix reboot loop"` runs, because
|
|
243
|
+
`reboot`, `shutdown`, `halt`, `mkfs`, `cryptsetup`, and `init 0` are
|
|
244
|
+
critical words.
|
|
200
245
|
- **omp, prefixed `rm`**: the kit denies a recursive `rm` behind any prefix,
|
|
201
246
|
such as `env X=1 rm -rf b`, `xargs rm -rf`, `find . -exec rm -rf {} +`, or
|
|
202
247
|
`git rm -r dir`. A `* rm ` rule also matches text, so a line such as
|
|
@@ -213,8 +258,30 @@ the home directory, and no glob can express "inside the temporary directory".
|
|
|
213
258
|
`remote.<name>.push` makes a plain `git push` force. No rule sees git
|
|
214
259
|
configuration. `git push --delete` and `git push --prune` remove remote
|
|
215
260
|
branches without force; they ask only in Codex.
|
|
216
|
-
- **`git -C`**:
|
|
217
|
-
|
|
261
|
+
- **`git -C`**: no tool matches a git subcommand that does not follow `git`
|
|
262
|
+
directly, such as `git -C . push --force`. omp also lets
|
|
263
|
+
`git -C . commit -n` run without a prompt. In omp, the `--no-verify` and
|
|
264
|
+
`core.hooksPath` forms still ask after `git -C`.
|
|
265
|
+
- **omp, `core.hooksPath` spelling**: git reads section and variable names
|
|
266
|
+
without case, but omp matches with case. A key in another case, such as
|
|
267
|
+
`CORE.HOOKSPATH` or `Core.HooksPath`, after `git -c`, `git --config-env`, or
|
|
268
|
+
`git config` runs without a prompt.
|
|
269
|
+
- **omp, configuration files**: a configuration file can set
|
|
270
|
+
`core.hooksPath` without a rule seeing the key. This includes a file named
|
|
271
|
+
through `GIT_CONFIG_GLOBAL`, `GIT_CONFIG_SYSTEM`, `XDG_CONFIG_HOME`,
|
|
272
|
+
`include.path`, or `includeIf`, and a direct edit of `.git/config`. The kit
|
|
273
|
+
does not ask for these variables, because test scripts set
|
|
274
|
+
`GIT_CONFIG_GLOBAL=/dev/null` routinely.
|
|
275
|
+
- **omp on Windows, variable names**: Windows reads variable names without
|
|
276
|
+
case, so a name such as `git_config_count` also overrides configuration and
|
|
277
|
+
runs without a prompt.
|
|
278
|
+
- **omp, git aliases**: an alias for `commit` or `am`, such as `git ci -n` or
|
|
279
|
+
`git -c alias.ci=commit ci -n`, runs without a prompt.
|
|
280
|
+
- **omp, other hook skips**: no rule covers a hook-manager switch, such as
|
|
281
|
+
`HUSKY=0`, `SKIP=...`, or `LEFTHOOK=0`, or a change to the files in the
|
|
282
|
+
hooks directory. `git commit --no-post-rewrite` also runs: the
|
|
283
|
+
`post-rewrite` hook runs after the commit and cannot stop it. The deployed
|
|
284
|
+
omp prompt forbids each hook skip.
|
|
218
285
|
- **Claude Code, `HOME=` before a command**: Claude Code matches deny rules
|
|
219
286
|
past a leading assignment. So `HOME=/tmp/x cmd` reaches the classifier.
|
|
220
287
|
`export HOME=...`, `env HOME=...`, a bare `HOME=...` line, and any `rm` of
|
|
@@ -300,4 +367,10 @@ Each check below is safe, because the shell never reaches `rm`.
|
|
|
300
367
|
https://github.com/git/git/blob/master/builtin/worktree.c
|
|
301
368
|
(`remove_worktree` parses `--`; `check_clean_worktree` runs
|
|
302
369
|
`git status --porcelain` without `--ignored`).
|
|
370
|
+
- Git hooks: https://git-scm.com/docs/githooks (`--no-verify`,
|
|
371
|
+
`core.hooksPath`), https://git-scm.com/docs/git-commit and
|
|
372
|
+
https://git-scm.com/docs/git-am (`-n`), https://git-scm.com/docs/git
|
|
373
|
+
(`-c`, `--config-env`), and https://git-scm.com/docs/git-config (names
|
|
374
|
+
without case, `GIT_CONFIG_COUNT`, `GIT_CONFIG_PARAMETERS`,
|
|
375
|
+
`GIT_CONFIG_GLOBAL`).
|
|
303
376
|
- macOS `trash`: https://keith.github.io/xcode-man-pages/trash.8.html
|
package/cli/docs/sync-layers.md
CHANGED
|
@@ -80,8 +80,11 @@ marketplace row counts as installed only when its `scope` is `user`, so a repeat
|
|
|
80
80
|
run is a no-op and a project-only row still installs. When just the legacy
|
|
81
81
|
config-root registry lists `docks`, omp copies it forward itself: the sync runs
|
|
82
82
|
`marketplace update`, or the read-only `marketplace list` under
|
|
83
|
-
`--skip-plugin-refresh`, which keeps installs but fetches nothing.
|
|
84
|
-
|
|
83
|
+
`--skip-plugin-refresh`, which keeps installs but fetches nothing. After a
|
|
84
|
+
plugin operation, the sync reads the inventory again and prints one line that
|
|
85
|
+
names each plugin with its version change, for example
|
|
86
|
+
`omp plugins synced: docks@docks 0.21.1 -> 0.22.0, pi-intercom 0.14.0 (new), docks-kit-omp linked`.
|
|
87
|
+
A dry run invokes no omp subcommand.
|
|
85
88
|
|
|
86
89
|
Paths mirror upstream `dirs.ts` `DirResolver`, resolved from the environment
|
|
87
90
|
plus directory probes, so a dry run still runs no omp subcommand. The agent
|
package/cli/docs/toolchain.md
CHANGED
|
@@ -58,8 +58,9 @@ a fresh host immediately and leaves an existing install alone.
|
|
|
58
58
|
|
|
59
59
|
The rustup channel follows the same rule. Sync adds the component only when the
|
|
60
60
|
`rust-analyzer` binary is missing or is a rustup proxy that cannot run because
|
|
61
|
-
the component is not installed. `
|
|
62
|
-
component
|
|
61
|
+
the component is not installed. When `rust-analyzer --version` does not answer
|
|
62
|
+
within 60 s, sync warns, stops the probe, and does not add the component on that
|
|
63
|
+
run. `rustup update` is the user's remedy for an old component.
|
|
63
64
|
|
|
64
65
|
A lagging server shows as `below-floor` in `docks-kit toolchain check`. To move
|
|
65
66
|
the npm servers to their `verified` pins, run:
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
* server binaries, so this pass installs the missing ones. Message strings
|
|
6
6
|
* and spawned argv are part of the contract.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
defaultProbeExecutor,
|
|
10
|
+
npmGlobalVersions,
|
|
11
|
+
VERSION_PROBE_LIMIT_MS,
|
|
12
|
+
type ToolId,
|
|
13
|
+
} from "./deps";
|
|
9
14
|
import { realpathSync } from "node:fs";
|
|
10
15
|
import { capture, spawnProcess } from "./exec";
|
|
11
16
|
import type { Ctx } from "./index";
|
|
@@ -97,6 +102,26 @@ async function installRustAnalyzer(ctx: Ctx): Promise<void> {
|
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
|
|
105
|
+
/**
|
|
106
|
+
* rustup links a rust-analyzer proxy into ~/.cargo/bin even when the
|
|
107
|
+
* component is not installed, and that proxy reports no version. With rustup
|
|
108
|
+
* present, a PATH hit without a version counts as missing. A probe that does
|
|
109
|
+
* not answer in time tells nothing about the component, and the install would
|
|
110
|
+
* wait on the same rustup, so that hit does not count as missing.
|
|
111
|
+
*/
|
|
112
|
+
async function rustAnalyzerMissing(ctx: Ctx, rustupPresent: boolean): Promise<boolean> {
|
|
113
|
+
if (ctx.services.deps.probe("rust-analyzer").state === "missing") return true;
|
|
114
|
+
if (!rustupPresent) return false;
|
|
115
|
+
const reading = await ctx.services.deps.versionReading("rust-analyzer");
|
|
116
|
+
if (reading.kind === "timed-out") {
|
|
117
|
+
ctx.services.logger.warn(
|
|
118
|
+
`rust-analyzer --version did not answer within ${VERSION_PROBE_LIMIT_MS / 1000} s; skipped the rust-analyzer install check. Run rust-analyzer --version to see what it waits for, then re-run sync.`,
|
|
119
|
+
);
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return reading.value === "";
|
|
123
|
+
}
|
|
124
|
+
|
|
100
125
|
export async function syncLspServers(ctx: Ctx): Promise<void> {
|
|
101
126
|
const { echo, verbose, warn } = ctx.services.logger;
|
|
102
127
|
const sot = parseJson(payloadText("SoT/.claude/settings.json"));
|
|
@@ -117,13 +142,7 @@ export async function syncLspServers(ctx: Ctx): Promise<void> {
|
|
|
117
142
|
hasTs && ctx.services.deps.probe("typescript-language-server").state === "missing";
|
|
118
143
|
const tscMissing = hasTs && ctx.services.deps.probe("tsc").state === "missing";
|
|
119
144
|
const rustupPresent = ctx.services.deps.probe("rustup").state === "present";
|
|
120
|
-
|
|
121
|
-
// component is not installed, and that proxy reports no version. With
|
|
122
|
-
// rustup present, a PATH hit without a version counts as missing.
|
|
123
|
-
const rustMissing =
|
|
124
|
-
hasRust &&
|
|
125
|
-
(ctx.services.deps.probe("rust-analyzer").state === "missing" ||
|
|
126
|
-
(rustupPresent && (await ctx.services.deps.version("rust-analyzer")) === ""));
|
|
145
|
+
const rustMissing = hasRust && (await rustAnalyzerMissing(ctx, rustupPresent));
|
|
127
146
|
// A host without rustup does no Rust work, so the plugin has nothing to
|
|
128
147
|
// serve there. Installing is impossible and warning every sync would name no
|
|
129
148
|
// action the user wants, so that host is not counted as missing a tool.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { isAbsolute } from "node:path";
|
|
11
11
|
|
|
12
|
-
import { capture, commandExists, p, which } from "./exec";
|
|
12
|
+
import { capture, captureWithin, commandExists, p, which, type CaptureOutcome } from "./exec";
|
|
13
13
|
import { engineHome } from "./harnesses";
|
|
14
14
|
import { isObject, parseJson } from "./jq";
|
|
15
15
|
import { hostOs, platformName, rawPlatform } from "./os";
|
|
@@ -47,9 +47,26 @@ export type ProbeResult =
|
|
|
47
47
|
export interface ProbeExecutor {
|
|
48
48
|
readonly commandExists: (name: string) => boolean;
|
|
49
49
|
readonly capture: (cmd: string, args: ReadonlyArray<string>) => Promise<string>;
|
|
50
|
+
/** `capture` with a time limit. Without it, a version probe has no limit. */
|
|
51
|
+
readonly captureWithin?: (
|
|
52
|
+
cmd: string,
|
|
53
|
+
args: ReadonlyArray<string>,
|
|
54
|
+
timeoutMs: number,
|
|
55
|
+
) => Promise<CaptureOutcome>;
|
|
50
56
|
readonly which: (name: string) => string;
|
|
51
57
|
}
|
|
52
58
|
|
|
59
|
+
/** The version text ("" when the tool is absent or prints none), or no answer in time. */
|
|
60
|
+
export type VersionReading =
|
|
61
|
+
| { readonly kind: "version"; readonly value: string }
|
|
62
|
+
| { readonly kind: "timed-out" };
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The longest wait for a `<tool> --version` answer. A cold rust-analyzer start
|
|
66
|
+
* took 20 s on a macOS runner (#114), so the limit must let that pass.
|
|
67
|
+
*/
|
|
68
|
+
export const VERSION_PROBE_LIMIT_MS = 60_000;
|
|
69
|
+
|
|
53
70
|
export interface DependencySpec {
|
|
54
71
|
readonly id: ToolId;
|
|
55
72
|
readonly requirement: Requirement;
|
|
@@ -57,6 +74,10 @@ export interface DependencySpec {
|
|
|
57
74
|
/** Platform-correct one-line install command (param injectable for tests). */
|
|
58
75
|
readonly installHint: (platform?: NodeJS.Platform) => string;
|
|
59
76
|
readonly resolve?: (exec: ProbeExecutor, platform: NodeJS.Platform) => ProbeResult;
|
|
77
|
+
/**
|
|
78
|
+
* Reads the version in a different way than `<id> <versionArgs>`. This
|
|
79
|
+
* reader has no time limit.
|
|
80
|
+
*/
|
|
60
81
|
readonly version?: (exec: ProbeExecutor) => Promise<string>;
|
|
61
82
|
}
|
|
62
83
|
|
|
@@ -90,15 +111,6 @@ const pathProbe =
|
|
|
90
111
|
return path === "" ? { state: "present" } : { state: "present", path };
|
|
91
112
|
};
|
|
92
113
|
|
|
93
|
-
const versionProbe =
|
|
94
|
-
(
|
|
95
|
-
id: string,
|
|
96
|
-
versionArgs: ReadonlyArray<string> = ["--version"],
|
|
97
|
-
parse: (out: string) => string = (out) => out,
|
|
98
|
-
): ((exec: ProbeExecutor) => Promise<string>) =>
|
|
99
|
-
async (exec) =>
|
|
100
|
-
parse(await exec.capture(id, versionArgs));
|
|
101
|
-
|
|
102
114
|
/**
|
|
103
115
|
* The resolved path gets persisted into global direct-exec hooks, so a
|
|
104
116
|
* relative `which` hit (relative PATH entry, relative BUN_INSTALL) would
|
|
@@ -154,33 +166,18 @@ const versionNpmGlobal =
|
|
|
154
166
|
async (exec: ProbeExecutor): Promise<string> =>
|
|
155
167
|
(await npmGlobalVersions(exec))[pkg] ?? "";
|
|
156
168
|
|
|
157
|
-
export const defaultProbeExecutor: ProbeExecutor = { commandExists, capture, which };
|
|
169
|
+
export const defaultProbeExecutor: ProbeExecutor = { commandExists, capture, captureWithin, which };
|
|
158
170
|
|
|
159
171
|
export const DEPENDENCIES: Record<ToolId, DependencySpec> = {
|
|
160
|
-
git: spec(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
{ version: versionProbe("git") },
|
|
165
|
-
),
|
|
166
|
-
jq: spec("jq", "optional", (pf = rawPlatform()) => hostOs(platformName(pf)).installHint("jq"), {
|
|
167
|
-
version: versionProbe("jq"),
|
|
168
|
-
}),
|
|
169
|
-
curl: spec(
|
|
170
|
-
"curl",
|
|
171
|
-
"optional",
|
|
172
|
-
(pf = rawPlatform()) => hostOs(platformName(pf)).installHint("curl"),
|
|
173
|
-
{
|
|
174
|
-
version: versionProbe("curl"),
|
|
175
|
-
},
|
|
172
|
+
git: spec("git", "optional", (pf = rawPlatform()) => hostOs(platformName(pf)).installHint("git")),
|
|
173
|
+
jq: spec("jq", "optional", (pf = rawPlatform()) => hostOs(platformName(pf)).installHint("jq")),
|
|
174
|
+
curl: spec("curl", "optional", (pf = rawPlatform()) =>
|
|
175
|
+
hostOs(platformName(pf)).installHint("curl"),
|
|
176
176
|
),
|
|
177
177
|
node: spec(
|
|
178
178
|
"node",
|
|
179
179
|
"optional",
|
|
180
180
|
() => "install Node.js via https://nodejs.org (or your package manager)",
|
|
181
|
-
{
|
|
182
|
-
version: versionProbe("node"),
|
|
183
|
-
},
|
|
184
181
|
),
|
|
185
182
|
npm: spec(
|
|
186
183
|
"npm",
|
|
@@ -192,24 +189,21 @@ export const DEPENDENCIES: Record<ToolId, DependencySpec> = {
|
|
|
192
189
|
"optional",
|
|
193
190
|
() => "ships with Node.js — install via https://nodejs.org (or your package manager)",
|
|
194
191
|
),
|
|
195
|
-
claude: spec(
|
|
196
|
-
"claude",
|
|
197
|
-
"optional",
|
|
198
|
-
(pf = rawPlatform()) => hostOs(platformName(pf)).installHint("claude"),
|
|
199
|
-
{ version: versionProbe("claude") },
|
|
192
|
+
claude: spec("claude", "optional", (pf = rawPlatform()) =>
|
|
193
|
+
hostOs(platformName(pf)).installHint("claude"),
|
|
200
194
|
),
|
|
201
|
-
codex: spec(
|
|
202
|
-
"codex",
|
|
203
|
-
"optional",
|
|
204
|
-
(pf = rawPlatform()) => hostOs(platformName(pf)).installHint("codex"),
|
|
205
|
-
{ version: versionProbe("codex") },
|
|
195
|
+
codex: spec("codex", "optional", (pf = rawPlatform()) =>
|
|
196
|
+
hostOs(platformName(pf)).installHint("codex"),
|
|
206
197
|
),
|
|
207
198
|
omp: spec(
|
|
208
199
|
"omp",
|
|
209
200
|
"optional",
|
|
210
201
|
() =>
|
|
211
202
|
"install omp from https://github.com/can1357/oh-my-pi (an existing install updates with `omp update`, or through the tool that manages it, such as Tern)",
|
|
212
|
-
{
|
|
203
|
+
{
|
|
204
|
+
version: async (exec) =>
|
|
205
|
+
(await exec.capture("omp", ["--version"])).trim().replace(/^omp[/v]/, ""),
|
|
206
|
+
},
|
|
213
207
|
),
|
|
214
208
|
bun: spec("bun", "optional", () => "curl -fsSL https://bun.sh/install | bash", {
|
|
215
209
|
resolve: resolveBun,
|
|
@@ -223,9 +217,6 @@ export const DEPENDENCIES: Record<ToolId, DependencySpec> = {
|
|
|
223
217
|
"bwrap",
|
|
224
218
|
"optional",
|
|
225
219
|
() => "sudo apt install -y bubblewrap (or dnf/pacman/zypper equivalent)",
|
|
226
|
-
{
|
|
227
|
-
version: versionProbe("bwrap"),
|
|
228
|
-
},
|
|
229
220
|
),
|
|
230
221
|
ffplay: spec(
|
|
231
222
|
"ffplay",
|
|
@@ -233,7 +224,6 @@ export const DEPENDENCIES: Record<ToolId, DependencySpec> = {
|
|
|
233
224
|
(pf = rawPlatform()) => hostOs(platformName(pf)).installHint("ffplay"),
|
|
234
225
|
{
|
|
235
226
|
versionArgs: ["-version"],
|
|
236
|
-
version: versionProbe("ffplay", ["-version"]),
|
|
237
227
|
resolve: pathProbe("ffplay"),
|
|
238
228
|
},
|
|
239
229
|
),
|
|
@@ -247,20 +237,15 @@ export const DEPENDENCIES: Record<ToolId, DependencySpec> = {
|
|
|
247
237
|
() => "npm install -g typescript-language-server typescript",
|
|
248
238
|
{
|
|
249
239
|
resolve: pathProbe("typescript-language-server"),
|
|
250
|
-
version: versionProbe("typescript-language-server"),
|
|
251
240
|
},
|
|
252
241
|
),
|
|
253
242
|
tsc: spec("tsc", "optional", () => "npm install -g typescript", {
|
|
254
243
|
resolve: pathProbe("tsc"),
|
|
255
|
-
version: versionProbe("tsc"),
|
|
256
244
|
}),
|
|
257
245
|
"rust-analyzer": spec("rust-analyzer", "optional", () => "rustup component add rust-analyzer", {
|
|
258
246
|
resolve: pathProbe("rust-analyzer"),
|
|
259
|
-
version: versionProbe("rust-analyzer"),
|
|
260
|
-
}),
|
|
261
|
-
rustup: spec("rustup", "optional", () => "install the Rust toolchain from https://rustup.rs", {
|
|
262
|
-
version: versionProbe("rustup"),
|
|
263
247
|
}),
|
|
248
|
+
rustup: spec("rustup", "optional", () => "install the Rust toolchain from https://rustup.rs"),
|
|
264
249
|
"apt-get": spec("apt-get", "optional", () => "install apt via your Linux distribution"),
|
|
265
250
|
dnf: spec("dnf", "optional", () => "install dnf via your Linux distribution"),
|
|
266
251
|
pacman: spec("pacman", "optional", () => "install pacman via your Linux distribution"),
|
|
@@ -275,14 +260,43 @@ export function resolveDependency(
|
|
|
275
260
|
return (specification.resolve ?? pathProbe(specification.id))(exec, platform);
|
|
276
261
|
}
|
|
277
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Reads the version with `<id> <versionArgs>` under `VERSION_PROBE_LIMIT_MS`,
|
|
265
|
+
* or with the spec's own `version` reader. An executor without
|
|
266
|
+
* `captureWithin` reads without a limit and never reports `timed-out`.
|
|
267
|
+
*/
|
|
268
|
+
export async function resolveVersionReading(
|
|
269
|
+
specification: DependencySpec,
|
|
270
|
+
exec: ProbeExecutor,
|
|
271
|
+
): Promise<VersionReading> {
|
|
272
|
+
if (resolveDependency(specification, exec).state !== "present") {
|
|
273
|
+
return { kind: "version", value: "" };
|
|
274
|
+
}
|
|
275
|
+
if (specification.version !== undefined) {
|
|
276
|
+
return { kind: "version", value: await specification.version(exec) };
|
|
277
|
+
}
|
|
278
|
+
if (exec.captureWithin === undefined) {
|
|
279
|
+
return {
|
|
280
|
+
kind: "version",
|
|
281
|
+
value: await exec.capture(specification.id, specification.versionArgs),
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
const outcome = await exec.captureWithin(
|
|
285
|
+
specification.id,
|
|
286
|
+
specification.versionArgs,
|
|
287
|
+
VERSION_PROBE_LIMIT_MS,
|
|
288
|
+
);
|
|
289
|
+
if (outcome.kind === "timed-out") return outcome;
|
|
290
|
+
return { kind: "version", value: outcome.kind === "output" ? outcome.stdout : "" };
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** `resolveVersionReading` as text: a probe that timed out reads as no version. */
|
|
278
294
|
export async function resolveVersion(
|
|
279
295
|
specification: DependencySpec,
|
|
280
296
|
exec: ProbeExecutor,
|
|
281
297
|
): Promise<string> {
|
|
282
|
-
|
|
283
|
-
return
|
|
284
|
-
exec,
|
|
285
|
-
);
|
|
298
|
+
const reading = await resolveVersionReading(specification, exec);
|
|
299
|
+
return reading.kind === "version" ? reading.value : "";
|
|
286
300
|
}
|
|
287
301
|
|
|
288
302
|
export async function resolvePath(
|
|
@@ -70,6 +70,8 @@ export interface AsyncProcessResult {
|
|
|
70
70
|
readonly stdout: string;
|
|
71
71
|
readonly stderr: string;
|
|
72
72
|
readonly error?: Error;
|
|
73
|
+
/** Set when `timeoutMs` expired before the child closed; the output is partial. */
|
|
74
|
+
readonly timedOut?: true;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
/**
|
|
@@ -95,6 +97,11 @@ export interface AsyncProcessOptions {
|
|
|
95
97
|
readonly cwd?: string;
|
|
96
98
|
/** Host whose executable resolution and argv shaping apply; tests inject it. */
|
|
97
99
|
readonly host?: HostOs;
|
|
100
|
+
/**
|
|
101
|
+
* Kill the child and resolve with `timedOut` when it does not close within
|
|
102
|
+
* this many milliseconds. No limit when absent.
|
|
103
|
+
*/
|
|
104
|
+
readonly timeoutMs?: number;
|
|
98
105
|
}
|
|
99
106
|
|
|
100
107
|
export function spawnProcess(
|
|
@@ -158,7 +165,22 @@ export function spawnProcess(
|
|
|
158
165
|
child.once("error", (cause) => {
|
|
159
166
|
error ??= cause;
|
|
160
167
|
});
|
|
168
|
+
const timer =
|
|
169
|
+
options.timeoutMs === undefined
|
|
170
|
+
? undefined
|
|
171
|
+
: setTimeout(() => {
|
|
172
|
+
// The kill reaches only the child. A grandchild that got the pipes,
|
|
173
|
+
// such as the tool that a Windows command shim starts, can keep them
|
|
174
|
+
// open, and "close" waits for the pipes. Close our ends and unref the
|
|
175
|
+
// child, so neither this promise nor the event loop waits for it.
|
|
176
|
+
child.kill("SIGKILL");
|
|
177
|
+
child.stdout?.destroy();
|
|
178
|
+
child.stderr?.destroy();
|
|
179
|
+
child.unref();
|
|
180
|
+
resolve({ exitCode: null, stdout, stderr, timedOut: true });
|
|
181
|
+
}, options.timeoutMs);
|
|
161
182
|
child.once("close", (exitCode) => {
|
|
183
|
+
clearTimeout(timer);
|
|
162
184
|
resolve({ exitCode, stdout, stderr, ...(error !== undefined ? { error } : {}) });
|
|
163
185
|
});
|
|
164
186
|
return promise;
|
|
@@ -170,6 +192,28 @@ export async function capture(cmd: string, args: ReadonlyArray<string>): Promise
|
|
|
170
192
|
return res.stdout.replace(/[\r\n]+$/, "");
|
|
171
193
|
}
|
|
172
194
|
|
|
195
|
+
/** The result of `captureWithin`: the output, a failure, or no answer in time. */
|
|
196
|
+
export type CaptureOutcome =
|
|
197
|
+
| { readonly kind: "output"; readonly stdout: string }
|
|
198
|
+
| { readonly kind: "failed" }
|
|
199
|
+
| { readonly kind: "timed-out" };
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* `capture` with a time limit. A command that does not close within
|
|
203
|
+
* `timeoutMs` is killed and reported as `timed-out`, not as an empty output,
|
|
204
|
+
* so the caller can tell "no answer" from "no version".
|
|
205
|
+
*/
|
|
206
|
+
export async function captureWithin(
|
|
207
|
+
cmd: string,
|
|
208
|
+
args: ReadonlyArray<string>,
|
|
209
|
+
timeoutMs: number,
|
|
210
|
+
): Promise<CaptureOutcome> {
|
|
211
|
+
const res = await spawnProcess(cmd, args, { stdio: ["ignore", "pipe", "ignore"], timeoutMs });
|
|
212
|
+
if (res.timedOut === true) return { kind: "timed-out" };
|
|
213
|
+
if (res.error !== undefined || res.exitCode !== 0) return { kind: "failed" };
|
|
214
|
+
return { kind: "output", stdout: res.stdout.replace(/[\r\n]+$/, "") };
|
|
215
|
+
}
|
|
216
|
+
|
|
173
217
|
/**
|
|
174
218
|
* Splits a Windows PATH on semicolons outside double quotes, then removes one
|
|
175
219
|
* enclosing quote pair from each entry. cmd.exe and libuv read PATH this way.
|
|
@@ -21,6 +21,7 @@ import { GENERATED_PACKAGE_VERSION } from "../generated/sotPayload";
|
|
|
21
21
|
import { payloadBytes, payloadDisplayPath, payloadPaths } from "../payload";
|
|
22
22
|
import { p } from "./exec";
|
|
23
23
|
import type { Ctx } from "./index";
|
|
24
|
+
import { isObject, parseJson } from "./jq";
|
|
24
25
|
import { ensureDirectory } from "./ompFileDeploy";
|
|
25
26
|
|
|
26
27
|
export const KIT_PLUGIN_NAME = "docks-kit-omp";
|
|
@@ -51,6 +52,14 @@ function pruneStale(directory: string, targets: ReadonlySet<string>): boolean {
|
|
|
51
52
|
return changed;
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
/** The `version` of the deployed manifest, or undefined when it is absent or does not parse. */
|
|
56
|
+
function deployedVersion(manifestPath: string): string | undefined {
|
|
57
|
+
if (!existsSync(manifestPath)) return undefined;
|
|
58
|
+
const manifest = parseJson(readFileSync(manifestPath, "utf8"));
|
|
59
|
+
if (manifest === undefined || !isObject(manifest)) return undefined;
|
|
60
|
+
return typeof manifest["version"] === "string" ? manifest["version"] : undefined;
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
export function syncKitPlugin(ctx: Ctx): void {
|
|
55
64
|
const { change, echo, verbose } = ctx.services.logger;
|
|
56
65
|
const pluginDir = kitPluginDir(ctx.home);
|
|
@@ -66,6 +75,7 @@ export function syncKitPlugin(ctx: Ctx): void {
|
|
|
66
75
|
return;
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
const before = deployedVersion(p(pluginDir, "package.json"));
|
|
69
79
|
let changed = false;
|
|
70
80
|
for (const { source, target } of files) {
|
|
71
81
|
let content = payloadBytes(source);
|
|
@@ -86,7 +96,11 @@ export function syncKitPlugin(ctx: Ctx): void {
|
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
if (changed) {
|
|
89
|
-
change(
|
|
99
|
+
change(
|
|
100
|
+
before === undefined || before === GENERATED_PACKAGE_VERSION
|
|
101
|
+
? "omp kit plugin files synced"
|
|
102
|
+
: `omp kit plugin files synced (${KIT_PLUGIN_NAME} ${before} -> ${GENERATED_PACKAGE_VERSION})`,
|
|
103
|
+
);
|
|
90
104
|
ctx.nextStepTriggers.ompRestart = true;
|
|
91
105
|
} else {
|
|
92
106
|
verbose("omp kit plugin files already in sync");
|
|
@@ -24,10 +24,34 @@ interface InstalledNpmPlugin {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
interface InstalledPlugins {
|
|
27
|
-
|
|
27
|
+
/** Each user-scope marketplace plugin id, with its version when the row reports one. */
|
|
28
|
+
readonly marketplace: Map<string, string | undefined>;
|
|
28
29
|
readonly npm: Map<string, InstalledNpmPlugin>;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
/** One successful plugin operation, named in the sync summary line. */
|
|
33
|
+
type PluginOperation =
|
|
34
|
+
| {
|
|
35
|
+
readonly kind: "marketplace" | "npm";
|
|
36
|
+
readonly id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the inventory listed the plugin before the operation, or
|
|
39
|
+
* undefined when that inventory could not be read.
|
|
40
|
+
*/
|
|
41
|
+
readonly present: boolean | undefined;
|
|
42
|
+
readonly before: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
| { readonly kind: "link"; readonly id: string };
|
|
45
|
+
|
|
46
|
+
/** The version of the first entry that reports one; a marketplace row has no top-level version. */
|
|
47
|
+
function marketplaceEntryVersion(entries: unknown): string | undefined {
|
|
48
|
+
if (!Array.isArray(entries)) return undefined;
|
|
49
|
+
for (const entry of entries) {
|
|
50
|
+
if (isObject(entry) && typeof entry["version"] === "string") return entry["version"];
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
31
55
|
async function installedPluginIdsFromCli(): Promise<InstalledPlugins | undefined> {
|
|
32
56
|
const result = await spawnProcess("omp", ["plugin", "list", "--json"], {
|
|
33
57
|
stdio: ["ignore", "pipe", "ignore"],
|
|
@@ -50,10 +74,10 @@ async function installedPluginIdsFromCli(): Promise<InstalledPlugins | undefined
|
|
|
50
74
|
// per scope holding the plugin, so a match found only in a `project` row
|
|
51
75
|
// means the user scope is empty and `upgrade --scope user` would fail; only a
|
|
52
76
|
// `user` row counts as installed for this pipeline.
|
|
53
|
-
const marketplace = new
|
|
77
|
+
const marketplace = new Map<string, string | undefined>();
|
|
54
78
|
for (const row of value["marketplace"]) {
|
|
55
79
|
if (!isObject(row) || typeof row["id"] !== "string" || row["scope"] !== "user") continue;
|
|
56
|
-
marketplace.
|
|
80
|
+
marketplace.set(row["id"], marketplaceEntryVersion(row["entries"]));
|
|
57
81
|
}
|
|
58
82
|
|
|
59
83
|
const npm = new Map<string, InstalledNpmPlugin>();
|
|
@@ -66,6 +90,26 @@ async function installedPluginIdsFromCli(): Promise<InstalledPlugins | undefined
|
|
|
66
90
|
return { marketplace, npm };
|
|
67
91
|
}
|
|
68
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Names one operation with its version change. `after` is the inventory read
|
|
95
|
+
* after all operations; when it does not give a version, only the id remains.
|
|
96
|
+
*/
|
|
97
|
+
function describeOperation(
|
|
98
|
+
operation: PluginOperation,
|
|
99
|
+
after: InstalledPlugins | undefined,
|
|
100
|
+
): string {
|
|
101
|
+
if (operation.kind === "link") return `${operation.id} linked`;
|
|
102
|
+
const version =
|
|
103
|
+
operation.kind === "marketplace"
|
|
104
|
+
? after?.marketplace.get(operation.id)
|
|
105
|
+
: after?.npm.get(operation.id)?.version;
|
|
106
|
+
if (version === undefined) return operation.id;
|
|
107
|
+
if (operation.present === false) return `${operation.id} ${version} (new)`;
|
|
108
|
+
if (operation.before === undefined) return `${operation.id} ${version}`;
|
|
109
|
+
if (operation.before === version) return `${operation.id} ${version} (current)`;
|
|
110
|
+
return `${operation.id} ${operation.before} -> ${version}`;
|
|
111
|
+
}
|
|
112
|
+
|
|
69
113
|
async function runPluginCommand(
|
|
70
114
|
ctx: Ctx,
|
|
71
115
|
plugin: string,
|
|
@@ -143,7 +187,7 @@ export async function syncPlugins(ctx: Ctx): Promise<number> {
|
|
|
143
187
|
: MARKETPLACE_PLUGIN_IDS.filter((pluginId) => installed.marketplace.has(pluginId)).length +
|
|
144
188
|
(piIntercomPin !== "" && installed.npm.has("pi-intercom") ? 1 : 0) +
|
|
145
189
|
(installed.npm.has(KIT_PLUGIN_NAME) ? 1 : 0);
|
|
146
|
-
|
|
190
|
+
const operations: Array<PluginOperation> = [];
|
|
147
191
|
|
|
148
192
|
for (const pluginId of MARKETPLACE_PLUGIN_IDS) {
|
|
149
193
|
const present = installed?.marketplace.has(pluginId) === true;
|
|
@@ -156,7 +200,12 @@ export async function syncPlugins(ctx: Ctx): Promise<number> {
|
|
|
156
200
|
? ["plugin", "upgrade", "--scope", "user", pluginId]
|
|
157
201
|
: ["plugin", "install", "--scope", "user", pluginId];
|
|
158
202
|
if (await runPluginCommand(ctx, pluginId, args)) {
|
|
159
|
-
|
|
203
|
+
operations.push({
|
|
204
|
+
kind: "marketplace",
|
|
205
|
+
id: pluginId,
|
|
206
|
+
present: installed === undefined ? undefined : present,
|
|
207
|
+
before: installed?.marketplace.get(pluginId),
|
|
208
|
+
});
|
|
160
209
|
if (!present) pluginsInstalled++;
|
|
161
210
|
}
|
|
162
211
|
}
|
|
@@ -175,7 +224,12 @@ export async function syncPlugins(ctx: Ctx): Promise<number> {
|
|
|
175
224
|
? ["install", "--force", `pi-intercom@${piIntercomPin}`]
|
|
176
225
|
: ["install", `pi-intercom@${piIntercomPin}`];
|
|
177
226
|
if (await runPluginCommand(ctx, "pi-intercom", args)) {
|
|
178
|
-
|
|
227
|
+
operations.push({
|
|
228
|
+
kind: "npm",
|
|
229
|
+
id: "pi-intercom",
|
|
230
|
+
present: installed === undefined ? undefined : present,
|
|
231
|
+
before: installedVersion,
|
|
232
|
+
});
|
|
179
233
|
if (!present) pluginsInstalled++;
|
|
180
234
|
}
|
|
181
235
|
}
|
|
@@ -189,12 +243,17 @@ export async function syncPlugins(ctx: Ctx): Promise<number> {
|
|
|
189
243
|
if (linkedTarget !== undefined && linkedTarget === realPath(kitDir)) {
|
|
190
244
|
verbose(`omp kit plugin ${KIT_PLUGIN_NAME} already linked`);
|
|
191
245
|
} else if (await runPluginCommand(ctx, KIT_PLUGIN_NAME, ["plugin", "link", kitDir])) {
|
|
192
|
-
|
|
246
|
+
operations.push({ kind: "link", id: KIT_PLUGIN_NAME });
|
|
193
247
|
if (installed?.npm.has(KIT_PLUGIN_NAME) !== true) pluginsInstalled++;
|
|
194
248
|
}
|
|
195
249
|
|
|
196
|
-
if (
|
|
197
|
-
|
|
250
|
+
if (operations.length > 0) {
|
|
251
|
+
// A second inventory read gives the versions that the operations left.
|
|
252
|
+
progress("Reading omp plugin versions...");
|
|
253
|
+
const after = await installedPluginIdsFromCli();
|
|
254
|
+
clearProgress();
|
|
255
|
+
const items = operations.map((operation) => describeOperation(operation, after));
|
|
256
|
+
change(`omp plugins synced: ${items.join(", ")}`);
|
|
198
257
|
ctx.nextStepTriggers.ompRestart = true;
|
|
199
258
|
} else {
|
|
200
259
|
verbose("omp plugins already in sync");
|
|
@@ -11,10 +11,12 @@ import {
|
|
|
11
11
|
resolveDependency,
|
|
12
12
|
resolvePath,
|
|
13
13
|
resolveVersion,
|
|
14
|
+
resolveVersionReading,
|
|
14
15
|
type DependencySpec,
|
|
15
16
|
type ProbeExecutor,
|
|
16
17
|
type ProbeResult,
|
|
17
18
|
type ToolId,
|
|
19
|
+
type VersionReading,
|
|
18
20
|
} from "./deps";
|
|
19
21
|
import { makeLogger, type Logger, type LoggerSinks } from "./logger";
|
|
20
22
|
import { platformName, rawPlatform, type PlatformName } from "./os";
|
|
@@ -25,6 +27,8 @@ export interface DependencyManager {
|
|
|
25
27
|
readonly spec: (id: ToolId) => DependencySpec;
|
|
26
28
|
readonly probe: (id: ToolId) => ProbeResult;
|
|
27
29
|
readonly version: (id: ToolId) => Promise<string>;
|
|
30
|
+
/** Like `version`, but keeps a probe that did not answer in time apart from no version. */
|
|
31
|
+
readonly versionReading: (id: ToolId) => Promise<VersionReading>;
|
|
28
32
|
readonly path: (id: ToolId) => Promise<string>;
|
|
29
33
|
readonly warnMissing: (id: ToolId, logger: Logger, context?: string) => void;
|
|
30
34
|
}
|
|
@@ -63,6 +67,7 @@ export const makeDependencyManager = (
|
|
|
63
67
|
},
|
|
64
68
|
probe: (id) => resolveDependency(DEPENDENCIES[id], exec, platform.raw()),
|
|
65
69
|
version: (id) => resolveVersion(DEPENDENCIES[id], exec),
|
|
70
|
+
versionReading: (id) => resolveVersionReading(DEPENDENCIES[id], exec),
|
|
66
71
|
path: (id) => resolvePath(DEPENDENCIES[id], exec, platform.raw()),
|
|
67
72
|
warnMissing: (id, logger, context) => {
|
|
68
73
|
if (warned.has(id)) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by cli/scripts/generate-sot-payload.ts. DO NOT EDIT.
|
|
2
2
|
// Edit SoT/, notification.mp3, or package.json, then run: bun cli/scripts/generate-sot-payload.ts
|
|
3
3
|
|
|
4
|
-
export const GENERATED_PACKAGE_VERSION = "0.22.
|
|
4
|
+
export const GENERATED_PACKAGE_VERSION = "0.22.3"
|
|
5
5
|
|
|
6
6
|
export const GENERATED_PAYLOAD_TEXT = {
|
|
7
7
|
"SoT/.agents/skills.txt": "# Universal AI-agent skill manifest intentionally empty.\n# Global skill discovery is opt-in: add one slug per installed skill: <owner>/<repo>@<skill-name> (or a path to one skill directory).\n# EngineNative ignores comments and blank lines.\n",
|
|
@@ -17,8 +17,8 @@ export const GENERATED_PAYLOAD_TEXT = {
|
|
|
17
17
|
"SoT/.codex/config.toml": "model = \"gpt-6.1-sol\"\nmodel_reasoning_effort = \"high\"\nplan_mode_reasoning_effort = \"high\"\nmodel_reasoning_summary = \"concise\"\nmodel_verbosity = \"low\"\nweb_search = \"live\"\nproject_doc_max_bytes = 131072\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\napprovals_reviewer = \"auto_review\"\n\n[sandbox_workspace_write]\nnetwork_access = true\n\n[windows]\nsandbox = \"elevated\"\n\n[features]\nmemories = true\n\n[memories]\ndedicated_tools = true\nmax_rollout_age_days = 30\n\n[agents]\nmax_threads = 12\nmax_depth = 2\n\n[tui]\nstatus_line_use_colors = true\nstatus_line = [\n \"model-with-reasoning\",\n \"current-dir\",\n \"git-branch\",\n \"context-used\",\n \"five-hour-limit\",\n \"weekly-limit\",\n]\n\n[plugins.\"docks@docks\"]\nenabled = true\n\n[plugins.\"plan-lifecycle@docks\"]\nenabled = true\n",
|
|
18
18
|
"SoT/.codex/plugins/marketplace.json": "{\n \"name\": \"docks\",\n \"interface\": {\n \"displayName\": \"DocksDocks\"\n },\n \"plugins\": [\n {\n \"name\": \"docks\",\n \"source\": {\n \"source\": \"git-subdir\",\n \"url\": \"https://github.com/DocksDocks/docks.git\",\n \"path\": \"./plugins/docks\",\n \"ref\": \"main\"\n },\n \"policy\": {\n \"installation\": \"AVAILABLE\",\n \"authentication\": \"ON_INSTALL\"\n },\n \"category\": \"Productivity\"\n },\n {\n \"name\": \"plan-lifecycle\",\n \"source\": {\n \"source\": \"git-subdir\",\n \"url\": \"https://github.com/DocksDocks/docks.git\",\n \"path\": \"./plugins/plan-lifecycle\",\n \"ref\": \"main\"\n },\n \"policy\": {\n \"installation\": \"AVAILABLE\",\n \"authentication\": \"ON_INSTALL\"\n },\n \"category\": \"Productivity\"\n }\n ]\n}\n",
|
|
19
19
|
"SoT/.codex/rules/docks.rules": "prefix_rule(pattern=[\"pwd\"], decision=\"allow\")\nprefix_rule(pattern=[\"ls\"], decision=\"allow\")\nprefix_rule(pattern=[\"cat\"], decision=\"allow\")\nprefix_rule(pattern=[\"head\"], decision=\"allow\")\nprefix_rule(pattern=[\"tail\"], decision=\"allow\")\nprefix_rule(pattern=[\"wc\"], decision=\"allow\")\nprefix_rule(pattern=[\"nl\"], decision=\"allow\")\nprefix_rule(pattern=[\"grep\"], decision=\"allow\")\nprefix_rule(pattern=[\"diff\"], decision=\"allow\")\nprefix_rule(pattern=[\"which\"], decision=\"allow\")\nprefix_rule(pattern=[\"date\"], decision=\"allow\")\nprefix_rule(pattern=[\"basename\"], decision=\"allow\")\nprefix_rule(pattern=[\"dirname\"], decision=\"allow\")\nprefix_rule(pattern=[\"realpath\"], decision=\"allow\")\nprefix_rule(pattern=[\"readlink\"], decision=\"allow\")\nprefix_rule(pattern=[\"jq\"], decision=\"allow\")\nprefix_rule(pattern=[\"cut\"], decision=\"allow\")\nprefix_rule(pattern=[\"tr\"], decision=\"allow\")\nprefix_rule(pattern=[\"echo\"], decision=\"allow\")\nprefix_rule(pattern=[\"printf\"], decision=\"allow\")\nprefix_rule(pattern=[\"printenv\"], decision=\"allow\")\nprefix_rule(pattern=[\"uname\"], decision=\"allow\")\nprefix_rule(pattern=[\"file\"], decision=\"allow\")\nprefix_rule(pattern=[\"stat\"], decision=\"allow\")\nprefix_rule(pattern=[\"du\"], decision=\"allow\")\nprefix_rule(pattern=[\"id\"], decision=\"allow\")\nprefix_rule(pattern=[\"whoami\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"git\", \"status\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"blame\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"rev-parse\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"ls-files\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"ls-tree\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"branch\", \"--show-current\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"branch\", \"-vv\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"gh\", \"pr\", \"view\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"list\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"diff\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"status\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"checks\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"docker\", \"ps\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"git\", \"push\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"reset\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"clean\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"merge\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"rebase\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"checkout\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"mv\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"mv\"], decision=\"prompt\")\nprefix_rule(pattern=[\"chmod\"], decision=\"prompt\")\nprefix_rule(pattern=[\"chown\"], decision=\"prompt\")\nprefix_rule(pattern=[\"kill\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pkill\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"npm\", \"install\"], decision=\"prompt\")\nprefix_rule(pattern=[\"npm\", \"uninstall\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pnpm\", \"add\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pnpm\", \"remove\"], decision=\"prompt\")\nprefix_rule(pattern=[\"yarn\", \"add\"], decision=\"prompt\")\nprefix_rule(pattern=[\"yarn\", \"remove\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip\", \"install\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip\", \"uninstall\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip3\", \"install\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip3\", \"uninstall\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"docker\", \"run\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"stop\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"volume\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"system\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"up\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"down\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"stop\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"up\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"down\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"stop\"], decision=\"prompt\")\n\n# `tail -f`/`--follow` never returns and hangs the agent (bare `tail` stays allowed above).\nprefix_rule(pattern=[\"tail\", \"-f\"], decision=\"prompt\")\nprefix_rule(pattern=[\"tail\", \"--follow\"], decision=\"prompt\")\n# These commands are prompt or absent, NOT allow, because argv-prefix matching\n# cannot gate a later write or exec flag, and allow runs outside the sandbox:\n# rg --pre=CMD; sed -n 'e CMD' or -ni; sort -o FILE or --compress-program=CMD;\n# the uniq OUTPUT operand; tree -o FILE; git diff/log/show --output=FILE;\n# git grep --open-files-in-pager=CMD or -O; git mv into .git/hooks.\n# Without a rule, sort, uniq, tree, git diff/log/show, and git grep run in the\n# sandbox with no prompt.\nprefix_rule(pattern=[\"rg\"], decision=\"prompt\")\nprefix_rule(pattern=[\"sed\", \"-n\"], decision=\"prompt\")\nprefix_rule(pattern=[\"find\"], decision=\"prompt\")\nprefix_rule(pattern=[\"sed\", \"-i\"], decision=\"prompt\")\nprefix_rule(pattern=[\"sed\", \"--in-place\"], decision=\"prompt\")\nprefix_rule(pattern=[\"awk\"], decision=\"prompt\")\nprefix_rule(pattern=[\"xargs\"], decision=\"prompt\")\nprefix_rule(pattern=[\"tee\"], decision=\"prompt\")\nprefix_rule(pattern=[\"curl\"], decision=\"prompt\")\nprefix_rule(pattern=[\"env\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"sudo\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"eval\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"mkfs\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"dd\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"--force\", \"origin\", \"main\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"--force\", \"origin\", \"master\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"-f\", \"origin\", \"main\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"-f\", \"origin\", \"master\"], decision=\"forbidden\")\n\n# Destructive-command guards. Codex applies the strictest matching rule\n# (forbidden > prompt > allow), so an allow rule in another .rules file cannot\n# loosen them, and a narrow allow cannot carve an exception out of a prompt.\n# The rm, find, git push, git reset, and git clean prompt rules above already\n# make every recursive or bulk deletion and every history-destroying git\n# command prompt. Codex prefix rules cannot see an option after an operand,\n# so every rm prompts, a single-file rm too. A prompt goes to the approvals\n# reviewer in config.toml (auto_review), not always to a person.\n#\n# rm of the filesystem root as Codex runs it: argv tokens, or a plain script\n# that Codex splits into argv tokens.\nprefix_rule(pattern=[\"rm\", \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[\"rm\", [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[\"rm\", [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[\"rm\", [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\n# Codex does not split a script that holds ~, $HOME, a glob, or a substitution.\n# It matches the whole [shell, -c, script] invocation, so these rules forbid\n# only the exact scripts listed.\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ~\", \"rm -r ~\", \"rm -R ~\", \"rm -f ~\", \"rm -rf ~\", \"rm -fr ~\", \"rm -Rf ~\", \"rm -fR ~\", \"rm -r -f ~\", \"rm -f -r ~\", \"rm --recursive ~\", \"rm --recursive --force ~\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ~/\", \"rm -r ~/\", \"rm -R ~/\", \"rm -f ~/\", \"rm -rf ~/\", \"rm -fr ~/\", \"rm -Rf ~/\", \"rm -fR ~/\", \"rm -r -f ~/\", \"rm -f -r ~/\", \"rm --recursive ~/\", \"rm --recursive --force ~/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm $HOME\", \"rm -r $HOME\", \"rm -R $HOME\", \"rm -f $HOME\", \"rm -rf $HOME\", \"rm -fr $HOME\", \"rm -Rf $HOME\", \"rm -fR $HOME\", \"rm -r -f $HOME\", \"rm -f -r $HOME\", \"rm --recursive $HOME\", \"rm --recursive --force $HOME\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm $HOME/\", \"rm -r $HOME/\", \"rm -R $HOME/\", \"rm -f $HOME/\", \"rm -rf $HOME/\", \"rm -fr $HOME/\", \"rm -Rf $HOME/\", \"rm -fR $HOME/\", \"rm -r -f $HOME/\", \"rm -f -r $HOME/\", \"rm --recursive $HOME/\", \"rm --recursive --force $HOME/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"$HOME\\\"\", \"rm -r \\\"$HOME\\\"\", \"rm -R \\\"$HOME\\\"\", \"rm -f \\\"$HOME\\\"\", \"rm -rf \\\"$HOME\\\"\", \"rm -fr \\\"$HOME\\\"\", \"rm -Rf \\\"$HOME\\\"\", \"rm -fR \\\"$HOME\\\"\", \"rm -r -f \\\"$HOME\\\"\", \"rm -f -r \\\"$HOME\\\"\", \"rm --recursive \\\"$HOME\\\"\", \"rm --recursive --force \\\"$HOME\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"$HOME/\\\"\", \"rm -r \\\"$HOME/\\\"\", \"rm -R \\\"$HOME/\\\"\", \"rm -f \\\"$HOME/\\\"\", \"rm -rf \\\"$HOME/\\\"\", \"rm -fr \\\"$HOME/\\\"\", \"rm -Rf \\\"$HOME/\\\"\", \"rm -fR \\\"$HOME/\\\"\", \"rm -r -f \\\"$HOME/\\\"\", \"rm -f -r \\\"$HOME/\\\"\", \"rm --recursive \\\"$HOME/\\\"\", \"rm --recursive --force \\\"$HOME/\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"$HOME\\\"/\", \"rm -r \\\"$HOME\\\"/\", \"rm -R \\\"$HOME\\\"/\", \"rm -f \\\"$HOME\\\"/\", \"rm -rf \\\"$HOME\\\"/\", \"rm -fr \\\"$HOME\\\"/\", \"rm -Rf \\\"$HOME\\\"/\", \"rm -fR \\\"$HOME\\\"/\", \"rm -r -f \\\"$HOME\\\"/\", \"rm -f -r \\\"$HOME\\\"/\", \"rm --recursive \\\"$HOME\\\"/\", \"rm --recursive --force \\\"$HOME\\\"/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ${HOME}\", \"rm -r ${HOME}\", \"rm -R ${HOME}\", \"rm -f ${HOME}\", \"rm -rf ${HOME}\", \"rm -fr ${HOME}\", \"rm -Rf ${HOME}\", \"rm -fR ${HOME}\", \"rm -r -f ${HOME}\", \"rm -f -r ${HOME}\", \"rm --recursive ${HOME}\", \"rm --recursive --force ${HOME}\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ${HOME}/\", \"rm -r ${HOME}/\", \"rm -R ${HOME}/\", \"rm -f ${HOME}/\", \"rm -rf ${HOME}/\", \"rm -fr ${HOME}/\", \"rm -Rf ${HOME}/\", \"rm -fR ${HOME}/\", \"rm -r -f ${HOME}/\", \"rm -f -r ${HOME}/\", \"rm --recursive ${HOME}/\", \"rm --recursive --force ${HOME}/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"${HOME}\\\"\", \"rm -r \\\"${HOME}\\\"\", \"rm -R \\\"${HOME}\\\"\", \"rm -f \\\"${HOME}\\\"\", \"rm -rf \\\"${HOME}\\\"\", \"rm -fr \\\"${HOME}\\\"\", \"rm -Rf \\\"${HOME}\\\"\", \"rm -fR \\\"${HOME}\\\"\", \"rm -r -f \\\"${HOME}\\\"\", \"rm -f -r \\\"${HOME}\\\"\", \"rm --recursive \\\"${HOME}\\\"\", \"rm --recursive --force \\\"${HOME}\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"${HOME}/\\\"\", \"rm -r \\\"${HOME}/\\\"\", \"rm -R \\\"${HOME}/\\\"\", \"rm -f \\\"${HOME}/\\\"\", \"rm -rf \\\"${HOME}/\\\"\", \"rm -fr \\\"${HOME}/\\\"\", \"rm -Rf \\\"${HOME}/\\\"\", \"rm -fR \\\"${HOME}/\\\"\", \"rm -r -f \\\"${HOME}/\\\"\", \"rm -f -r \\\"${HOME}/\\\"\", \"rm --recursive \\\"${HOME}/\\\"\", \"rm --recursive --force \\\"${HOME}/\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"${HOME}\\\"/\", \"rm -r \\\"${HOME}\\\"/\", \"rm -R \\\"${HOME}\\\"/\", \"rm -f \\\"${HOME}\\\"/\", \"rm -rf \\\"${HOME}\\\"/\", \"rm -fr \\\"${HOME}\\\"/\", \"rm -Rf \\\"${HOME}\\\"/\", \"rm -fR \\\"${HOME}\\\"/\", \"rm -r -f \\\"${HOME}\\\"/\", \"rm -f -r \\\"${HOME}\\\"/\", \"rm --recursive \\\"${HOME}\\\"/\", \"rm --recursive --force \\\"${HOME}\\\"/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm /*\", \"rm -r /*\", \"rm -R /*\", \"rm -f /*\", \"rm -rf /*\", \"rm -fr /*\", \"rm -Rf /*\", \"rm -fR /*\", \"rm -r -f /*\", \"rm -f -r /*\", \"rm --recursive /*\", \"rm --recursive --force /*\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"export HOME=$(mktemp -d)\", \"export HOME=\\\"$(mktemp -d)\\\"\", \"HOME=$(mktemp -d)\", \"HOME=\\\"$(mktemp -d)\\\"\"]], decision=\"forbidden\", justification=\"Never reassign HOME. Each command runs in a new shell, so use literal absolute paths.\")\n\n# Forced git removal discards uncommitted changes, and the prefix cannot see a\n# later --force, so both commands ask in every form.\nprefix_rule(pattern=[\"git\", \"rm\"], decision=\"prompt\", justification=\"git rm --force and git worktree remove --force discard uncommitted changes. A prefix rule cannot see a later --force, so every git rm and git worktree remove asks.\")\nprefix_rule(pattern=[\"git\", \"worktree\", \"remove\"], decision=\"prompt\", justification=\"git rm --force and git worktree remove --force discard uncommitted changes. A prefix rule cannot see a later --force, so every git rm and git worktree remove asks.\")\n\n# gio trash can empty the trash or overwrite a restored path, and the prefix\n# cannot tell those forms from gio trash -- <path>, so every gio trash asks.\n# The macOS trash command has no such option.\nprefix_rule(pattern=[\"gio\", \"trash\"], decision=\"prompt\", justification=\"gio trash -f --empty, -ff --empty, and --restore --force delete or overwrite data, and a prefix rule cannot tell them from gio trash -- <path>, so every gio trash asks.\")\nprefix_rule(pattern=[\"trash\"], decision=\"allow\")\n",
|
|
20
|
-
"SoT/.omp/AGENTS.md": "# Global OMP guidance\n\n- Verify unfamiliar or version-sensitive APIs and configuration against current official documentation before implementation.\n- When the user asks for an assessment rather than a change, report findings without editing.\n- For Docks plan reviews, cross-company review is standing-authorized; host security policy still applies.\n- Please remove all mannered prose.\n\n## Asking me things\n\nIf you need an answer from me, it MUST go through `ask`; do not ask in prose.\n\nMUST use `ask` before:\n- Anything irreversible or destructive: deleting/overwriting files or data you did not create,\n force-push, history rewrite, dropping tables, running migrations, mass rename, touching\n secrets/credentials, or publishing outward (release, upstream PR, issue, comment).\n- Two or more viable approaches whose tradeoffs are mine to own: schema/API/protocol shape,\n adding a dependency, or establishing a convention this repo does not already have.\n- A fact only I hold: intended semantics of an ambiguous requirement, which of several\n conflicting existing patterns is canonical, or which environment/account/target to use.\n- A request that contradicts the repo: surface the conflict and let me resolve it; never\n silently pick one side.\n\nWhen I invoke the `yolo` skill, that invocation answers every ask this section requires,\nuntil the run asks its merge question. It does not cover destructive work, secrets, or\nproduction systems.\n\nIf `ask` is not registered — subagent, headless, or `-p` print runs, where `hasUI` is false —\nthe MUST above cannot be satisfied: do not fabricate the call and do not stall on it. Take the\nconservative reversible option and put the question, plus the assumption you made, in your\nfinal report so whoever spawned you can decide.\n\nNEVER use `ask` for:\n- Permission to begin, or to confirm scope already stated in the request.\n- Anything a tool, grep, or doc can answer — go read it.\n- A cheap reversible choice — take the conservative option and say which you took.\n- Something already answered earlier in the conversation.\n\nBatch every open question into one `ask` call with multiple questions; do not serialize\nround trips. Being overruled ends the discussion — execute my call without relitigating.\n\n## Removing files\n\nTo remove, use the trash or a command that checks the path.\n\n- To remove a temporary file or directory, use the `scratch_remove` tool or run `docks-kit scratch remove <path>`. Both remove only a path inside the scratch root, the system temporary directory, or `/var/tmp`. `gio trash` does not work on a `tmpfs` `/tmp`.\n- To remove any other file or directory, run `gio trash -- <path>` on Linux or `trash <path>` on macOS.\n- To remove a path from the git index, run `git rm -- <path>`.\n- To remove a worktree, run `git worktree remove -- <path>`.\n- If git refuses because the worktree has changes, make sure that each of its commits is on the remote. Then make sure that `git status --porcelain` lists only generated files. Then run `git worktree remove --force -- <path>`.\n- Never pass `--force` two times to `git worktree remove`.\n- Write the `--` exactly as shown.\n- Do not use `rm`. omp denies a recursive `rm`, `find -delete`, `find -exec rm`, and `xargs rm`.\n- Do not delete files through `eval`, Python, or Node code.\n- A subagent cannot get my approval, so omp rejects every ask in a subagent.\n- Do not delete in bulk yourself (`git clean`, `git reset --hard`). In the main session, ask me first.\n- If a deletion needs `rm -r` or a bulk command, put the paths in your report. I run that deletion myself.\n- Do not use `--force`, `-f`, or an abbreviation of it with `git rm` or `git push`.\n- Write each ref of a `git push` command as literal text, not as a `$` variable or a backtick substitution. To delete several remote branches, list them in one command: `git push origin --delete <branch-a> <branch-b>`.\n- Write literal absolute paths. Do not use `~` or `$HOME` in a command.\n- Do not set or export `HOME`.\n\n## Cleaning up what you create\n\n- Follow the `workspace-hygiene` skill for each resource that you create: worktrees, temporary files and directories, processes, containers, clusters, tunnels, scheduled jobs, global installs, and remote test resources.\n- Create a temporary directory with the `scratch_new` tool or `docks-kit scratch new <label>`. Put each temporary file in that directory. Do not put a temporary file, a temporary directory, a package store, a cache, or a clone in `/tmp`.\n- Create a worktree only at `<data>/agent-worktrees/<repository>/<name>`. `<data>` is `$XDG_DATA_HOME`, or `.local/share` in the home directory when that variable is not set. Write the literal absolute path.\n- Run a test suite in single-run mode. Start a server, a watcher, a tunnel, or a database only as a named bash service or an async job. Do not detach a process with `nohup`, `setsid`, `disown`, `tmux`, or `screen`.\n- Do not install a package globally, add a scheduled job, or enable a service unless I ask for it.\n- Do not remove a Docker volume, image, or build cache that you did not create, and do not run `docker system prune`.\n- Before your final answer, remove each resource that you created and that the task no longer needs. Keep a resource only when I ask for it or a later step needs it, and name it in your final answer.\n- A scratch directory is deleted after 7 idle days. Put evidence that you cite in the issue, the pull request, or the repository.\n- Resources on this workstation are always development. A remote resource is one that you reach through SSH or a provider CLI, such as `wrangler`, `vercel`, `netlify`, `fly`, `supabase`, `kubectl`, or a remote Docker host.\n- Clean up a remote resource only when its target is named local, development, dev, test, homolog, homologation, staging, or preview. Every other target is production. For example, `wrangler delete` without `--env` acts on the top-level Worker, which is usually production.\n- Never stop, remove, undeploy, or delete a production resource without an `ask` immediately before it. A production cleanup must be rare. A `yolo` invocation does not answer this ask. In a subagent, do not do it; name the resource in your report.\n\n## Output Standard\n\nApply Simplified Technical English to all agent text. This includes responses, messages,\ndocumentation, comments, and interface text.\n\nReply in the language I use, and apply every rule below to that language.\n\nA rule that names English grammar applies only to English. The contraction ban is one\nsuch rule. In another language, follow the normal grammar of that language. Portuguese,\nSpanish, French, Italian, and German merge a preposition with an article, and that merge\nis required, not optional.\n\nTreat the word limits as approximate outside English.\n\n- Use the simplest precise technical term.\n- Use each term consistently.\n- Expand an abbreviation at its first occurrence.\n- Explain a technical term when I ask for an explanation.\n- Write complete and grammatically correct sentences.\n- Use active voice and identify the actor.\n- Use the imperative form for instructions.\n- Put only one action in each instruction sentence.\n- Put a necessary condition before its instruction.\n- Use simple verb tenses.\n- Do not use contractions, idioms, or slang. Avoid humor and rhetorical questions.\n- Keep procedural sentences to 20 words or fewer.\n- Keep descriptive sentences to 25 words or fewer.\n- Keep each paragraph to one topic and six sentences or fewer.\n- Do not use more than three nouns together.\n- Use vertical lists for complex information.\n- Put a warning or caution before a related hazardous instruction.\n\n### Naming\n\n- Say what the thing does before you name it. Put the technical term after the plain\n description, once, in parentheses.\n- Do not use a technical term as the only name for something you just introduced.\n- Prefer the short common word. Use \"use\", not \"utilize\". Use \"set up\", not \"provision\".\n- Do not explain by metaphor alone. A metaphor may follow a literal statement.\n",
|
|
21
|
-
"SoT/.omp/config.yml": "statusLine:\n compactThinkingLevel: false\n\ndefaultThinkingLevel: high\n\ncycleOrder:\n - smol\n - default\n - slow\n - fable\n - astra\n\ntier:\n anthropic: none\n\nadvisor:\n enabled: true\n syncBacklog: \"1\"\n\ngithub:\n enabled: true\n\nfind:\n enabled: true\n\nbrowser:\n idleCloseSec: 600\n\ntask:\n eager: always\n showResolvedModelBadge: true\n softRequestBudget: 200\n softRequestBudgetNotice: true\n batch: true\n enableLsp: true\n enableEffort: true\n maxEffort: xhigh\n maxConcurrency: 16\n maxRecursionDepth: 2\n maxRuntimeMs: 3600000\n agentIdleTtlMs: 120000\n agentModelOverrides:\n reviewer: \"@reviewer\"\n security-reviewer: \"@reviewer\"\n code-reviewer: \"@reviewer\"\n plan-reviewer: \"@reviewer\"\n\nmodelRoles:\n smol: openai-codex/gpt-6-luna:medium\n advisor: anthropic/claude-opus-5-5:medium\n designer: anthropic/claude-opus-5-5:high\n plan: anthropic/claude-opus-5-5:xhigh\n commit: openai-codex/gpt-6-luna:medium\n task: anthropic/claude-opus-5-5:high\n vision: anthropic/claude-opus-5-5:medium\n tiny: openai-codex/gpt-6-luna:low\n default: anthropic/claude-opus-5-5:high\n slow: anthropic/claude-opus-5-5:xhigh\n fable: anthropic/claude-fable-5-1:medium\n switch_fable: anthropic/claude-fable-5-1:medium\n astra: openai-codex/gpt-6-astra:xhigh\n reviewer: openai-codex/gpt-6.1-sol:xhigh\n web: web/firecrawl\n\nmodelTags:\n fable:\n name: Fable 5.1\n switch_fable:\n name: Fable switch default\n hidden: true\n astra:\n name: GPT-6 Astra\n reviewer:\n name: Reviewer\n hidden: true\n\ndisplay:\n showTokenUsage: true\n\nproviders:\n anthropic:\n serverSideFallback: false\n fetch: auto\n webSearchTimeoutSeconds: 30\n\nretry:\n usageAwareFallback: true\n fallbackChains:\n default:\n - openai-codex/gpt-6.1-sol:high\n advisor: []\n task:\n - openai-codex/gpt-6.1-sol:high\n vision:\n - openai-codex/gpt-6.1-sol:medium\n smol:\n - anthropic/claude-opus-5-5:low\n tiny:\n - anthropic/claude-opus-5-5:low\n commit:\n - anthropic/claude-opus-5-5:medium\n switch_fable: []\n fable:\n - openai-codex/gpt-6-astra:xhigh\n astra:\n - anthropic/claude-fable-5-1:medium\n reviewer:\n - anthropic/claude-opus-5-5:xhigh\n web:\n - web/exa\n - web/perplexity\n - openai-codex/gpt-6-luna\n - web/parallel\n - web/zai\n - web/tinyfish\n - web/jina\n - web/kagi\n - web/tavily\n - web/brave\n - web/kimi\n - web/synthetic\n - web/ollama\n - web/searxng\n - web/startpage\n - web/duckduckgo\n - web/ecosia\n - web/google\n - web/mojeek\n - web/public\n\nincludeWorkspaceTree: false\n\nbranchSummary:\n enabled: true\n\ncommands:\n enableOpencodeProject: false\n enableOpencodeUser: false\n\nskills:\n enableClaudeUser: false\n enableCodexUser: false\n enableAgentsUser: true\n\nsteeringMode: all\n\ndev:\n autoqa: false\n autoqaConsent: denied\n\ncompaction:\n thresholdTokens: -1\n idleEnabled: true\n handoffSaveToDisk: true\n\ndoubleEscapeAction: tree\ntextVerbosity: low\n\nfeatures:\n unexpectedStopDetection: smart\n\ncodexResets:\n autoRedeem: \"no\"\n\nstartup:\n quiet: true\n\ntools:\n approvalMode: yolo\n\nbash:\n # First match wins. omp checks deny and prompt rules against the whole line\n # and each quote-stripped segment, so `rm -rf \"$HOME\"` matches `rm * $HOME`.\n # `*` matches any text, spaces and slashes included; no escape spells a\n # literal `*`.\n # No rule matches a plain rm, git rm, git worktree remove, gio trash, or\n # docks-kit scratch remove, so yolo runs it.\n # omp's critical-command check turns a prompt into an allow under yolo, so\n # every rm shape it can flag is denied.\n patterns:\n # Deny: rm of the home directory or the filesystem root, sudo before rm,\n # rm with an r or f option before an absolute path, recursive rm (bare, by\n # path, or after any word such as env, xargs, find -exec, or git), bulk\n # removal through find -delete, find -exec rm, and xargs rm, HOME\n # reassignment, and a force push to main or master.\n - { match: \"rm /\", approval: deny }\n - { match: \"rm / *\", approval: deny }\n - { match: \"rm * /\", approval: deny }\n - { match: \"rm * / *\", approval: deny }\n - { match: \"rm ~\", approval: deny }\n - { match: \"rm ~ *\", approval: deny }\n - { match: \"rm * ~\", approval: deny }\n - { match: \"rm * ~ *\", approval: deny }\n - { match: \"rm ~/\", approval: deny }\n - { match: \"rm ~/ *\", approval: deny }\n - { match: \"rm * ~/\", approval: deny }\n - { match: \"rm * ~/ *\", approval: deny }\n - { match: \"rm $HOME\", approval: deny }\n - { match: \"rm $HOME *\", approval: deny }\n - { match: \"rm * $HOME\", approval: deny }\n - { match: \"rm * $HOME *\", approval: deny }\n - { match: \"rm $HOME/\", approval: deny }\n - { match: \"rm $HOME/ *\", approval: deny }\n - { match: \"rm * $HOME/\", approval: deny }\n - { match: \"rm * $HOME/ *\", approval: deny }\n - { match: \"rm ${HOME}\", approval: deny }\n - { match: \"rm ${HOME} *\", approval: deny }\n - { match: \"rm * ${HOME}\", approval: deny }\n - { match: \"rm * ${HOME} *\", approval: deny }\n - { match: \"rm ${HOME}/\", approval: deny }\n - { match: \"rm ${HOME}/ *\", approval: deny }\n - { match: \"rm * ${HOME}/\", approval: deny }\n - { match: \"rm * ${HOME}/ *\", approval: deny }\n - { match: \"* rm /\", approval: deny }\n - { match: \"* rm / *\", approval: deny }\n - { match: \"* rm * /\", approval: deny }\n - { match: \"* rm * / *\", approval: deny }\n - { match: \"* rm ~\", approval: deny }\n - { match: \"* rm ~ *\", approval: deny }\n - { match: \"* rm * ~\", approval: deny }\n - { match: \"* rm * ~ *\", approval: deny }\n - { match: \"* rm ~/\", approval: deny }\n - { match: \"* rm ~/ *\", approval: deny }\n - { match: \"* rm * ~/\", approval: deny }\n - { match: \"* rm * ~/ *\", approval: deny }\n - { match: \"* rm $HOME\", approval: deny }\n - { match: \"* rm $HOME *\", approval: deny }\n - { match: \"* rm * $HOME\", approval: deny }\n - { match: \"* rm * $HOME *\", approval: deny }\n - { match: \"* rm $HOME/\", approval: deny }\n - { match: \"* rm $HOME/ *\", approval: deny }\n - { match: \"* rm * $HOME/\", approval: deny }\n - { match: \"* rm * $HOME/ *\", approval: deny }\n - { match: \"* rm ${HOME}\", approval: deny }\n - { match: \"* rm ${HOME} *\", approval: deny }\n - { match: \"* rm * ${HOME}\", approval: deny }\n - { match: \"* rm * ${HOME} *\", approval: deny }\n - { match: \"* rm ${HOME}/\", approval: deny }\n - { match: \"* rm ${HOME}/ *\", approval: deny }\n - { match: \"* rm * ${HOME}/\", approval: deny }\n - { match: \"* rm * ${HOME}/ *\", approval: deny }\n - { match: \"*/rm /\", approval: deny }\n - { match: \"*/rm / *\", approval: deny }\n - { match: \"*/rm * /\", approval: deny }\n - { match: \"*/rm * / *\", approval: deny }\n - { match: \"*/rm ~\", approval: deny }\n - { match: \"*/rm ~ *\", approval: deny }\n - { match: \"*/rm * ~\", approval: deny }\n - { match: \"*/rm * ~ *\", approval: deny }\n - { match: \"*/rm ~/\", approval: deny }\n - { match: \"*/rm ~/ *\", approval: deny }\n - { match: \"*/rm * ~/\", approval: deny }\n - { match: \"*/rm * ~/ *\", approval: deny }\n - { match: \"*/rm $HOME\", approval: deny }\n - { match: \"*/rm $HOME *\", approval: deny }\n - { match: \"*/rm * $HOME\", approval: deny }\n - { match: \"*/rm * $HOME *\", approval: deny }\n - { match: \"*/rm $HOME/\", approval: deny }\n - { match: \"*/rm $HOME/ *\", approval: deny }\n - { match: \"*/rm * $HOME/\", approval: deny }\n - { match: \"*/rm * $HOME/ *\", approval: deny }\n - { match: \"*/rm ${HOME}\", approval: deny }\n - { match: \"*/rm ${HOME} *\", approval: deny }\n - { match: \"*/rm * ${HOME}\", approval: deny }\n - { match: \"*/rm * ${HOME} *\", approval: deny }\n - { match: \"*/rm ${HOME}/\", approval: deny }\n - { match: \"*/rm ${HOME}/ *\", approval: deny }\n - { match: \"*/rm * ${HOME}/\", approval: deny }\n - { match: \"*/rm * ${HOME}/ *\", approval: deny }\n - { match: \"sudo rm\", approval: deny }\n - { match: \"sudo rm *\", approval: deny }\n - { match: \"sudo * rm\", approval: deny }\n - { match: \"sudo * rm *\", approval: deny }\n - { match: \"sudo */rm\", approval: deny }\n - { match: \"sudo */rm *\", approval: deny }\n - { match: \"* sudo rm\", approval: deny }\n - { match: \"* sudo rm *\", approval: deny }\n - { match: \"* sudo * rm\", approval: deny }\n - { match: \"* sudo * rm *\", approval: deny }\n - { match: \"* sudo */rm\", approval: deny }\n - { match: \"* sudo */rm *\", approval: deny }\n - { match: \"*/sudo rm\", approval: deny }\n - { match: \"*/sudo rm *\", approval: deny }\n - { match: \"*/sudo * rm\", approval: deny }\n - { match: \"*/sudo * rm *\", approval: deny }\n - { match: \"*/sudo */rm\", approval: deny }\n - { match: \"*/sudo */rm *\", approval: deny }\n - { match: \"rm *-*r* /*\", approval: deny }\n - { match: \"rm *-*R* /*\", approval: deny }\n - { match: \"rm *-*f* /*\", approval: deny }\n - { match: \"rm *-*F* /*\", approval: deny }\n - { match: \"rm *--no-preserve-root*\", approval: deny }\n - { match: \"* rm *-*r* /*\", approval: deny }\n - { match: \"* rm *-*R* /*\", approval: deny }\n - { match: \"* rm *-*f* /*\", approval: deny }\n - { match: \"* rm *-*F* /*\", approval: deny }\n - { match: \"* rm *--no-preserve-root*\", approval: deny }\n - { match: \"*/rm *-*r* /*\", approval: deny }\n - { match: \"*/rm *-*R* /*\", approval: deny }\n - { match: \"*/rm *-*f* /*\", approval: deny }\n - { match: \"*/rm *-*F* /*\", approval: deny }\n - { match: \"*/rm *--no-preserve-root*\", approval: deny }\n - { match: \"rm *-r *\", approval: deny }\n - { match: \"rm *-r\", approval: deny }\n - { match: \"rm *-rf *\", approval: deny }\n - { match: \"rm *-rf\", approval: deny }\n - { match: \"rm *-fr *\", approval: deny }\n - { match: \"rm *-fr\", approval: deny }\n - { match: \"rm *-rv *\", approval: deny }\n - { match: \"rm *-rv\", approval: deny }\n - { match: \"rm *-vr *\", approval: deny }\n - { match: \"rm *-vr\", approval: deny }\n - { match: \"rm *-rfv *\", approval: deny }\n - { match: \"rm *-rfv\", approval: deny }\n - { match: \"rm *-rvf *\", approval: deny }\n - { match: \"rm *-rvf\", approval: deny }\n - { match: \"rm *-frv *\", approval: deny }\n - { match: \"rm *-frv\", approval: deny }\n - { match: \"rm *-fvr *\", approval: deny }\n - { match: \"rm *-fvr\", approval: deny }\n - { match: \"rm *-vrf *\", approval: deny }\n - { match: \"rm *-vrf\", approval: deny }\n - { match: \"rm *-vfr *\", approval: deny }\n - { match: \"rm *-vfr\", approval: deny }\n - { match: \"rm *-ri *\", approval: deny }\n - { match: \"rm *-ri\", approval: deny }\n - { match: \"rm *-ir *\", approval: deny }\n - { match: \"rm *-ir\", approval: deny }\n - { match: \"rm *-Ri *\", approval: deny }\n - { match: \"rm *-Ri\", approval: deny }\n - { match: \"rm *-iR *\", approval: deny }\n - { match: \"rm *-iR\", approval: deny }\n - { match: \"rm *-R *\", approval: deny }\n - { match: \"rm *-R\", approval: deny }\n - { match: \"rm *-Rf *\", approval: deny }\n - { match: \"rm *-Rf\", approval: deny }\n - { match: \"rm *-fR *\", approval: deny }\n - { match: \"rm *-fR\", approval: deny }\n - { match: \"rm *-Rv *\", approval: deny }\n - { match: \"rm *-Rv\", approval: deny }\n - { match: \"rm *-vR *\", approval: deny }\n - { match: \"rm *-vR\", approval: deny }\n - { match: \"rm *-Rfv *\", approval: deny }\n - { match: \"rm *-Rfv\", approval: deny }\n - { match: \"rm *-Rvf *\", approval: deny }\n - { match: \"rm *-Rvf\", approval: deny }\n - { match: \"rm *-fRv *\", approval: deny }\n - { match: \"rm *-fRv\", approval: deny }\n - { match: \"rm *-fvR *\", approval: deny }\n - { match: \"rm *-fvR\", approval: deny }\n - { match: \"rm *-vRf *\", approval: deny }\n - { match: \"rm *-vRf\", approval: deny }\n - { match: \"rm *-vfR *\", approval: deny }\n - { match: \"rm *-vfR\", approval: deny }\n - { match: \"rm *--recursive *\", approval: deny }\n - { match: \"rm *--recursive\", approval: deny }\n - { match: \"*/rm *-r *\", approval: deny }\n - { match: \"*/rm *-r\", approval: deny }\n - { match: \"*/rm *-rf *\", approval: deny }\n - { match: \"*/rm *-rf\", approval: deny }\n - { match: \"*/rm *-fr *\", approval: deny }\n - { match: \"*/rm *-fr\", approval: deny }\n - { match: \"*/rm *-rv *\", approval: deny }\n - { match: \"*/rm *-rv\", approval: deny }\n - { match: \"*/rm *-vr *\", approval: deny }\n - { match: \"*/rm *-vr\", approval: deny }\n - { match: \"*/rm *-rfv *\", approval: deny }\n - { match: \"*/rm *-rfv\", approval: deny }\n - { match: \"*/rm *-rvf *\", approval: deny }\n - { match: \"*/rm *-rvf\", approval: deny }\n - { match: \"*/rm *-frv *\", approval: deny }\n - { match: \"*/rm *-frv\", approval: deny }\n - { match: \"*/rm *-fvr *\", approval: deny }\n - { match: \"*/rm *-fvr\", approval: deny }\n - { match: \"*/rm *-vrf *\", approval: deny }\n - { match: \"*/rm *-vrf\", approval: deny }\n - { match: \"*/rm *-vfr *\", approval: deny }\n - { match: \"*/rm *-vfr\", approval: deny }\n - { match: \"*/rm *-ri *\", approval: deny }\n - { match: \"*/rm *-ri\", approval: deny }\n - { match: \"*/rm *-ir *\", approval: deny }\n - { match: \"*/rm *-ir\", approval: deny }\n - { match: \"*/rm *-Ri *\", approval: deny }\n - { match: \"*/rm *-Ri\", approval: deny }\n - { match: \"*/rm *-iR *\", approval: deny }\n - { match: \"*/rm *-iR\", approval: deny }\n - { match: \"*/rm *-R *\", approval: deny }\n - { match: \"*/rm *-R\", approval: deny }\n - { match: \"*/rm *-Rf *\", approval: deny }\n - { match: \"*/rm *-Rf\", approval: deny }\n - { match: \"*/rm *-fR *\", approval: deny }\n - { match: \"*/rm *-fR\", approval: deny }\n - { match: \"*/rm *-Rv *\", approval: deny }\n - { match: \"*/rm *-Rv\", approval: deny }\n - { match: \"*/rm *-vR *\", approval: deny }\n - { match: \"*/rm *-vR\", approval: deny }\n - { match: \"*/rm *-Rfv *\", approval: deny }\n - { match: \"*/rm *-Rfv\", approval: deny }\n - { match: \"*/rm *-Rvf *\", approval: deny }\n - { match: \"*/rm *-Rvf\", approval: deny }\n - { match: \"*/rm *-fRv *\", approval: deny }\n - { match: \"*/rm *-fRv\", approval: deny }\n - { match: \"*/rm *-fvR *\", approval: deny }\n - { match: \"*/rm *-fvR\", approval: deny }\n - { match: \"*/rm *-vRf *\", approval: deny }\n - { match: \"*/rm *-vRf\", approval: deny }\n - { match: \"*/rm *-vfR *\", approval: deny }\n - { match: \"*/rm *-vfR\", approval: deny }\n - { match: \"*/rm *--recursive *\", approval: deny }\n - { match: \"*/rm *--recursive\", approval: deny }\n - { match: \"* rm *-r *\", approval: deny }\n - { match: \"* rm *-r\", approval: deny }\n - { match: \"* rm *-rf *\", approval: deny }\n - { match: \"* rm *-rf\", approval: deny }\n - { match: \"* rm *-fr *\", approval: deny }\n - { match: \"* rm *-fr\", approval: deny }\n - { match: \"* rm *-rv *\", approval: deny }\n - { match: \"* rm *-rv\", approval: deny }\n - { match: \"* rm *-vr *\", approval: deny }\n - { match: \"* rm *-vr\", approval: deny }\n - { match: \"* rm *-rfv *\", approval: deny }\n - { match: \"* rm *-rfv\", approval: deny }\n - { match: \"* rm *-rvf *\", approval: deny }\n - { match: \"* rm *-rvf\", approval: deny }\n - { match: \"* rm *-frv *\", approval: deny }\n - { match: \"* rm *-frv\", approval: deny }\n - { match: \"* rm *-fvr *\", approval: deny }\n - { match: \"* rm *-fvr\", approval: deny }\n - { match: \"* rm *-vrf *\", approval: deny }\n - { match: \"* rm *-vrf\", approval: deny }\n - { match: \"* rm *-vfr *\", approval: deny }\n - { match: \"* rm *-vfr\", approval: deny }\n - { match: \"* rm *-R *\", approval: deny }\n - { match: \"* rm *-R\", approval: deny }\n - { match: \"* rm *-ri *\", approval: deny }\n - { match: \"* rm *-ri\", approval: deny }\n - { match: \"* rm *-ir *\", approval: deny }\n - { match: \"* rm *-ir\", approval: deny }\n - { match: \"* rm *-Ri *\", approval: deny }\n - { match: \"* rm *-Ri\", approval: deny }\n - { match: \"* rm *-iR *\", approval: deny }\n - { match: \"* rm *-iR\", approval: deny }\n - { match: \"* rm *-Rf *\", approval: deny }\n - { match: \"* rm *-Rf\", approval: deny }\n - { match: \"* rm *-fR *\", approval: deny }\n - { match: \"* rm *-fR\", approval: deny }\n - { match: \"* rm *-Rv *\", approval: deny }\n - { match: \"* rm *-Rv\", approval: deny }\n - { match: \"* rm *-vR *\", approval: deny }\n - { match: \"* rm *-vR\", approval: deny }\n - { match: \"* rm *-Rfv *\", approval: deny }\n - { match: \"* rm *-Rfv\", approval: deny }\n - { match: \"* rm *-Rvf *\", approval: deny }\n - { match: \"* rm *-Rvf\", approval: deny }\n - { match: \"* rm *-fRv *\", approval: deny }\n - { match: \"* rm *-fRv\", approval: deny }\n - { match: \"* rm *-fvR *\", approval: deny }\n - { match: \"* rm *-fvR\", approval: deny }\n - { match: \"* rm *-vRf *\", approval: deny }\n - { match: \"* rm *-vRf\", approval: deny }\n - { match: \"* rm *-vfR *\", approval: deny }\n - { match: \"* rm *-vfR\", approval: deny }\n - { match: \"* rm *--recursive *\", approval: deny }\n - { match: \"* rm *--recursive\", approval: deny }\n # Bulk removal: find -delete, find -exec rm, and xargs rm, in every position.\n - { match: \"find *-delete*\", approval: deny }\n - { match: \"*/find *-delete*\", approval: deny }\n - { match: \"* find *-delete*\", approval: deny }\n - { match: \"*-exec rm *\", approval: deny }\n - { match: \"*-exec */rm *\", approval: deny }\n - { match: \"*-execdir rm *\", approval: deny }\n - { match: \"*-execdir */rm *\", approval: deny }\n - { match: \"*-ok rm *\", approval: deny }\n - { match: \"*-ok */rm *\", approval: deny }\n - { match: \"*-okdir rm *\", approval: deny }\n - { match: \"*-okdir */rm *\", approval: deny }\n - { match: \"*xargs rm\", approval: deny }\n - { match: \"*xargs rm *\", approval: deny }\n - { match: \"*xargs * rm\", approval: deny }\n - { match: \"*xargs * rm *\", approval: deny }\n - { match: \"*xargs */rm\", approval: deny }\n - { match: \"*xargs */rm *\", approval: deny }\n - { match: \"HOME=*\", approval: deny }\n - { match: \"export HOME=*\", approval: deny }\n - { match: \"env HOME=*\", approval: deny }\n - { match: \"env * HOME=*\", approval: deny }\n - { match: \"git push --force origin main\", approval: deny }\n - { match: \"git push --force origin main *\", approval: deny }\n - { match: \"git push --force origin master\", approval: deny }\n - { match: \"git push --force origin master *\", approval: deny }\n - { match: \"git push -f origin main\", approval: deny }\n - { match: \"git push -f origin main *\", approval: deny }\n - { match: \"git push -f origin master\", approval: deny }\n - { match: \"git push -f origin master *\", approval: deny }\n # Prompt: history-destroying git, and every git push spelling that could\n # force. A subagent cannot answer a prompt, so omp rejects it.\n - { match: \"git clean\", approval: prompt }\n - { match: \"git clean *\", approval: prompt }\n - { match: \"git reset *--hard*\", approval: prompt }\n - { match: \"git push -f*\", approval: prompt }\n - { match: \"git push * -f*\", approval: prompt }\n - { match: \"git push -vv*\", approval: prompt }\n - { match: \"git push * -vv*\", approval: prompt }\n - { match: \"git push -vq*\", approval: prompt }\n - { match: \"git push * -vq*\", approval: prompt }\n - { match: \"git push -vd*\", approval: prompt }\n - { match: \"git push * -vd*\", approval: prompt }\n - { match: \"git push -vn*\", approval: prompt }\n - { match: \"git push * -vn*\", approval: prompt }\n - { match: \"git push -vu*\", approval: prompt }\n - { match: \"git push * -vu*\", approval: prompt }\n - { match: \"git push -v4*\", approval: prompt }\n - { match: \"git push * -v4*\", approval: prompt }\n - { match: \"git push -v6*\", approval: prompt }\n - { match: \"git push * -v6*\", approval: prompt }\n - { match: \"git push -vf*\", approval: prompt }\n - { match: \"git push * -vf*\", approval: prompt }\n - { match: \"git push -qv*\", approval: prompt }\n - { match: \"git push * -qv*\", approval: prompt }\n - { match: \"git push -qq*\", approval: prompt }\n - { match: \"git push * -qq*\", approval: prompt }\n - { match: \"git push -qd*\", approval: prompt }\n - { match: \"git push * -qd*\", approval: prompt }\n - { match: \"git push -qn*\", approval: prompt }\n - { match: \"git push * -qn*\", approval: prompt }\n - { match: \"git push -qu*\", approval: prompt }\n - { match: \"git push * -qu*\", approval: prompt }\n - { match: \"git push -q4*\", approval: prompt }\n - { match: \"git push * -q4*\", approval: prompt }\n - { match: \"git push -q6*\", approval: prompt }\n - { match: \"git push * -q6*\", approval: prompt }\n - { match: \"git push -qf*\", approval: prompt }\n - { match: \"git push * -qf*\", approval: prompt }\n - { match: \"git push -dv*\", approval: prompt }\n - { match: \"git push * -dv*\", approval: prompt }\n - { match: \"git push -dq*\", approval: prompt }\n - { match: \"git push * -dq*\", approval: prompt }\n - { match: \"git push -dd*\", approval: prompt }\n - { match: \"git push * -dd*\", approval: prompt }\n - { match: \"git push -dn*\", approval: prompt }\n - { match: \"git push * -dn*\", approval: prompt }\n - { match: \"git push -du*\", approval: prompt }\n - { match: \"git push * -du*\", approval: prompt }\n - { match: \"git push -d4*\", approval: prompt }\n - { match: \"git push * -d4*\", approval: prompt }\n - { match: \"git push -d6*\", approval: prompt }\n - { match: \"git push * -d6*\", approval: prompt }\n - { match: \"git push -df*\", approval: prompt }\n - { match: \"git push * -df*\", approval: prompt }\n - { match: \"git push -nv*\", approval: prompt }\n - { match: \"git push * -nv*\", approval: prompt }\n - { match: \"git push -nq*\", approval: prompt }\n - { match: \"git push * -nq*\", approval: prompt }\n - { match: \"git push -nd*\", approval: prompt }\n - { match: \"git push * -nd*\", approval: prompt }\n - { match: \"git push -nn*\", approval: prompt }\n - { match: \"git push * -nn*\", approval: prompt }\n - { match: \"git push -nu*\", approval: prompt }\n - { match: \"git push * -nu*\", approval: prompt }\n - { match: \"git push -n4*\", approval: prompt }\n - { match: \"git push * -n4*\", approval: prompt }\n - { match: \"git push -n6*\", approval: prompt }\n - { match: \"git push * -n6*\", approval: prompt }\n - { match: \"git push -nf*\", approval: prompt }\n - { match: \"git push * -nf*\", approval: prompt }\n - { match: \"git push -uv*\", approval: prompt }\n - { match: \"git push * -uv*\", approval: prompt }\n - { match: \"git push -uq*\", approval: prompt }\n - { match: \"git push * -uq*\", approval: prompt }\n - { match: \"git push -ud*\", approval: prompt }\n - { match: \"git push * -ud*\", approval: prompt }\n - { match: \"git push -un*\", approval: prompt }\n - { match: \"git push * -un*\", approval: prompt }\n - { match: \"git push -uu*\", approval: prompt }\n - { match: \"git push * -uu*\", approval: prompt }\n - { match: \"git push -u4*\", approval: prompt }\n - { match: \"git push * -u4*\", approval: prompt }\n - { match: \"git push -u6*\", approval: prompt }\n - { match: \"git push * -u6*\", approval: prompt }\n - { match: \"git push -uf*\", approval: prompt }\n - { match: \"git push * -uf*\", approval: prompt }\n - { match: \"git push -4v*\", approval: prompt }\n - { match: \"git push * -4v*\", approval: prompt }\n - { match: \"git push -4q*\", approval: prompt }\n - { match: \"git push * -4q*\", approval: prompt }\n - { match: \"git push -4d*\", approval: prompt }\n - { match: \"git push * -4d*\", approval: prompt }\n - { match: \"git push -4n*\", approval: prompt }\n - { match: \"git push * -4n*\", approval: prompt }\n - { match: \"git push -4u*\", approval: prompt }\n - { match: \"git push * -4u*\", approval: prompt }\n - { match: \"git push -44*\", approval: prompt }\n - { match: \"git push * -44*\", approval: prompt }\n - { match: \"git push -46*\", approval: prompt }\n - { match: \"git push * -46*\", approval: prompt }\n - { match: \"git push -4f*\", approval: prompt }\n - { match: \"git push * -4f*\", approval: prompt }\n - { match: \"git push -6v*\", approval: prompt }\n - { match: \"git push * -6v*\", approval: prompt }\n - { match: \"git push -6q*\", approval: prompt }\n - { match: \"git push * -6q*\", approval: prompt }\n - { match: \"git push -6d*\", approval: prompt }\n - { match: \"git push * -6d*\", approval: prompt }\n - { match: \"git push -6n*\", approval: prompt }\n - { match: \"git push * -6n*\", approval: prompt }\n - { match: \"git push -6u*\", approval: prompt }\n - { match: \"git push * -6u*\", approval: prompt }\n - { match: \"git push -64*\", approval: prompt }\n - { match: \"git push * -64*\", approval: prompt }\n - { match: \"git push -66*\", approval: prompt }\n - { match: \"git push * -66*\", approval: prompt }\n - { match: \"git push -6f*\", approval: prompt }\n - { match: \"git push * -6f*\", approval: prompt }\n - { match: \"git push --f*\", approval: prompt }\n - { match: \"git push * --f*\", approval: prompt }\n - { match: \"git push --mi*\", approval: prompt }\n - { match: \"git push * --mi*\", approval: prompt }\n - { match: \"git push +*\", approval: prompt }\n - { match: \"git push * +*\", approval: prompt }\n - { match: \"git push $*\", approval: prompt }\n - { match: \"git push * $*\", approval: prompt }\n - { match: \"git push `*\", approval: prompt }\n - { match: \"git push * `*\", approval: prompt }\n # Allow: the macOS trash command.\n - { match: \"trash *\", approval: allow }\n",
|
|
20
|
+
"SoT/.omp/AGENTS.md": "# Global OMP guidance\n\n- Verify unfamiliar or version-sensitive APIs and configuration against current official documentation before implementation.\n- When the user asks for an assessment rather than a change, report findings without editing.\n- For Docks plan reviews, cross-company review is standing-authorized; host security policy still applies.\n- Please remove all mannered prose.\n\n## Asking me things\n\nIf you need an answer from me, it MUST go through `ask`; do not ask in prose.\n\nMUST use `ask` before:\n- Anything irreversible or destructive: deleting/overwriting files or data you did not create,\n force-push, history rewrite, dropping tables, running migrations, mass rename, touching\n secrets/credentials, or publishing outward (release, upstream PR, issue, comment).\n- Two or more viable approaches whose tradeoffs are mine to own: schema/API/protocol shape,\n adding a dependency, or establishing a convention this repo does not already have.\n- A fact only I hold: intended semantics of an ambiguous requirement, which of several\n conflicting existing patterns is canonical, or which environment/account/target to use.\n- A request that contradicts the repo: surface the conflict and let me resolve it; never\n silently pick one side.\n\nWhen I invoke the `yolo` skill, that invocation answers every ask this section requires,\nuntil the run asks its merge question. It does not cover destructive work, secrets, or\nproduction systems.\n\nIf `ask` is not registered — subagent, headless, or `-p` print runs, where `hasUI` is false —\nthe MUST above cannot be satisfied: do not fabricate the call and do not stall on it. Take the\nconservative reversible option and put the question, plus the assumption you made, in your\nfinal report so whoever spawned you can decide.\n\nNEVER use `ask` for:\n- Permission to begin, or to confirm scope already stated in the request.\n- Anything a tool, grep, or doc can answer — go read it.\n- A cheap reversible choice — take the conservative option and say which you took.\n- Something already answered earlier in the conversation.\n\nBatch every open question into one `ask` call with multiple questions; do not serialize\nround trips. Being overruled ends the discussion — execute my call without relitigating.\n\n## Removing files\n\nTo remove, use the trash or a command that checks the path.\n\n- To remove a temporary file or directory, use the `scratch_remove` tool or run `docks-kit scratch remove <path>`. Both remove only a path inside the scratch root, the system temporary directory, or `/var/tmp`. `gio trash` does not work on a `tmpfs` `/tmp`.\n- To remove any other file or directory, run `gio trash -- <path>` on Linux or `trash <path>` on macOS.\n- To remove a path from the git index, run `git rm -- <path>`.\n- To remove a worktree, run `git worktree remove -- <path>`.\n- If git refuses because the worktree has changes, make sure that each of its commits is on the remote. Then make sure that `git status --porcelain` lists only generated files. Then run `git worktree remove --force -- <path>`.\n- Never pass `--force` two times to `git worktree remove`.\n- Write the `--` exactly as shown.\n- Do not use `rm`. omp denies a recursive `rm`, `find -delete`, `find -exec rm`, and `xargs rm`.\n- Do not delete files through `eval`, Python, or Node code.\n- A subagent cannot get my approval, so omp rejects every ask in a subagent.\n- Do not delete in bulk yourself (`git clean`, `git reset --hard`). In the main session, ask me first.\n- If a deletion needs `rm -r` or a bulk command, put the paths in your report. I run that deletion myself.\n- Do not use `--force`, `-f`, or an abbreviation of it with `git rm` or `git push`.\n- Write each ref of a `git push` command as literal text, not as a `$` variable or a backtick substitution. To delete several remote branches, list them in one command: `git push origin --delete <branch-a> <branch-b>`.\n- Write literal absolute paths. Do not use `~` or `$HOME` in a command.\n- Do not set or export `HOME`.\n\n## Repository hooks\n\n- Do not skip or turn off a repository hook. Do not use `--no-verify`, `git commit -n`, `git am -n`, or a `core.hooksPath` change.\n- When a hook fails on a problem that your change did not cause, report the failure. In the main session, ask me before you continue.\n\n## Cleaning up what you create\n\n- Follow the `workspace-hygiene` skill for each resource that you create: worktrees, temporary files and directories, processes, containers, clusters, tunnels, scheduled jobs, global installs, and remote test resources.\n- Create a temporary directory with the `scratch_new` tool or `docks-kit scratch new <label>`. Put each temporary file in that directory. Do not put a temporary file, a temporary directory, a package store, a cache, or a clone in `/tmp`.\n- Create a worktree only at `<data>/agent-worktrees/<repository>/<name>`. `<data>` is `$XDG_DATA_HOME`, or `.local/share` in the home directory when that variable is not set. Write the literal absolute path.\n- Run a test suite in single-run mode. Start a server, a watcher, a tunnel, or a database only as a named bash service or an async job. Do not detach a process with `nohup`, `setsid`, `disown`, `tmux`, or `screen`.\n- Do not install a package globally, add a scheduled job, or enable a service unless I ask for it.\n- Do not remove a Docker volume, image, or build cache that you did not create, and do not run `docker system prune`.\n- Before your final answer, remove each resource that you created and that the task no longer needs. Keep a resource only when I ask for it or a later step needs it, and name it in your final answer.\n- A scratch directory is deleted after 7 idle days. Put evidence that you cite in the issue, the pull request, or the repository.\n- Resources on this workstation are always development. A remote resource is one that you reach through SSH or a provider CLI, such as `wrangler`, `vercel`, `netlify`, `fly`, `supabase`, `kubectl`, or a remote Docker host.\n- Clean up a remote resource only when its target is named local, development, dev, test, homolog, homologation, staging, or preview. Every other target is production. For example, `wrangler delete` without `--env` acts on the top-level Worker, which is usually production.\n- Never stop, remove, undeploy, or delete a production resource without an `ask` immediately before it. A production cleanup must be rare. A `yolo` invocation does not answer this ask. In a subagent, do not do it; name the resource in your report.\n\n## Output Standard\n\nApply Simplified Technical English to all agent text. This includes responses, messages,\ndocumentation, comments, and interface text.\n\nReply in the language I use, and apply every rule below to that language.\n\nA rule that names English grammar applies only to English. The contraction ban is one\nsuch rule. In another language, follow the normal grammar of that language. Portuguese,\nSpanish, French, Italian, and German merge a preposition with an article, and that merge\nis required, not optional.\n\nTreat the word limits as approximate outside English.\n\n- Use the simplest precise technical term.\n- Use each term consistently.\n- Expand an abbreviation at its first occurrence.\n- Explain a technical term when I ask for an explanation.\n- Write complete and grammatically correct sentences.\n- Use active voice and identify the actor.\n- Use the imperative form for instructions.\n- Put only one action in each instruction sentence.\n- Put a necessary condition before its instruction.\n- Use simple verb tenses.\n- Do not use contractions, idioms, or slang. Avoid humor and rhetorical questions.\n- Keep procedural sentences to 20 words or fewer.\n- Keep descriptive sentences to 25 words or fewer.\n- Keep each paragraph to one topic and six sentences or fewer.\n- Do not use more than three nouns together.\n- Use vertical lists for complex information.\n- Put a warning or caution before a related hazardous instruction.\n\n### Naming\n\n- Say what the thing does before you name it. Put the technical term after the plain\n description, once, in parentheses.\n- Do not use a technical term as the only name for something you just introduced.\n- Prefer the short common word. Use \"use\", not \"utilize\". Use \"set up\", not \"provision\".\n- Do not explain by metaphor alone. A metaphor may follow a literal statement.\n",
|
|
21
|
+
"SoT/.omp/config.yml": "statusLine:\n compactThinkingLevel: false\n\ndefaultThinkingLevel: high\n\ncycleOrder:\n - smol\n - default\n - slow\n - fable\n - astra\n\ntier:\n anthropic: none\n\nadvisor:\n enabled: true\n syncBacklog: \"1\"\n\ngithub:\n enabled: true\n\nfind:\n enabled: true\n\nbrowser:\n idleCloseSec: 600\n\ntask:\n eager: always\n showResolvedModelBadge: true\n softRequestBudget: 200\n softRequestBudgetNotice: true\n batch: true\n enableLsp: true\n enableEffort: true\n maxEffort: xhigh\n maxConcurrency: 16\n maxRecursionDepth: 2\n maxRuntimeMs: 3600000\n agentIdleTtlMs: 120000\n agentModelOverrides:\n reviewer: \"@reviewer\"\n security-reviewer: \"@reviewer\"\n code-reviewer: \"@reviewer\"\n plan-reviewer: \"@reviewer\"\n\nmodelRoles:\n smol: openai-codex/gpt-6-luna:medium\n advisor: anthropic/claude-opus-5-5:medium\n designer: anthropic/claude-opus-5-5:high\n plan: anthropic/claude-opus-5-5:xhigh\n commit: openai-codex/gpt-6-luna:medium\n task: anthropic/claude-opus-5-5:high\n vision: anthropic/claude-opus-5-5:medium\n tiny: openai-codex/gpt-6-luna:low\n default: anthropic/claude-opus-5-5:high\n slow: anthropic/claude-opus-5-5:xhigh\n fable: anthropic/claude-fable-5-1:medium\n switch_fable: anthropic/claude-fable-5-1:medium\n astra: openai-codex/gpt-6-astra:xhigh\n reviewer: openai-codex/gpt-6.1-sol:xhigh\n web: web/firecrawl\n\nmodelTags:\n fable:\n name: Fable 5.1\n switch_fable:\n name: Fable switch default\n hidden: true\n astra:\n name: GPT-6 Astra\n reviewer:\n name: Reviewer\n hidden: true\n\ndisplay:\n showTokenUsage: true\n\nproviders:\n anthropic:\n serverSideFallback: false\n fetch: auto\n webSearchTimeoutSeconds: 30\n\nretry:\n usageAwareFallback: true\n fallbackChains:\n default:\n - openai-codex/gpt-6.1-sol:high\n advisor: []\n task:\n - openai-codex/gpt-6.1-sol:high\n vision:\n - openai-codex/gpt-6.1-sol:medium\n smol:\n - anthropic/claude-opus-5-5:low\n tiny:\n - anthropic/claude-opus-5-5:low\n commit:\n - anthropic/claude-opus-5-5:medium\n switch_fable: []\n fable:\n - openai-codex/gpt-6-astra:xhigh\n astra:\n - anthropic/claude-fable-5-1:medium\n reviewer:\n - anthropic/claude-opus-5-5:xhigh\n web:\n - web/exa\n - web/perplexity\n - openai-codex/gpt-6-luna\n - web/parallel\n - web/zai\n - web/tinyfish\n - web/jina\n - web/kagi\n - web/tavily\n - web/brave\n - web/kimi\n - web/synthetic\n - web/ollama\n - web/searxng\n - web/startpage\n - web/duckduckgo\n - web/ecosia\n - web/google\n - web/mojeek\n - web/public\n\nincludeWorkspaceTree: false\n\nbranchSummary:\n enabled: true\n\ncommands:\n enableOpencodeProject: false\n enableOpencodeUser: false\n\nskills:\n enableClaudeUser: false\n enableCodexUser: false\n enableAgentsUser: true\n\nsteeringMode: all\n\ndev:\n autoqa: false\n autoqaConsent: denied\n\ncompaction:\n thresholdTokens: -1\n idleEnabled: true\n handoffSaveToDisk: true\n\ndoubleEscapeAction: tree\ntextVerbosity: low\n\nfeatures:\n unexpectedStopDetection: smart\n\ncodexResets:\n autoRedeem: \"no\"\n\nstartup:\n quiet: true\n\ntools:\n approvalMode: yolo\n\nbash:\n # First match wins. omp checks deny and prompt rules against the whole line\n # and each quote-stripped segment, so `rm -rf \"$HOME\"` matches `rm * $HOME`.\n # `*` matches any text, spaces and slashes included; no escape spells a\n # literal `*`.\n # No rule matches a plain rm, git rm, git worktree remove, gio trash, or\n # docks-kit scratch remove, so yolo runs it.\n # omp's critical-command check turns a prompt into an allow under yolo, so\n # every rm shape it can flag is denied.\n patterns:\n # Deny: rm of the home directory or the filesystem root, sudo before rm,\n # rm with an r or f option before an absolute path, recursive rm (bare, by\n # path, or after any word such as env, xargs, find -exec, or git), bulk\n # removal through find -delete, find -exec rm, and xargs rm, HOME\n # reassignment, and a force push to main or master.\n - { match: \"rm /\", approval: deny }\n - { match: \"rm / *\", approval: deny }\n - { match: \"rm * /\", approval: deny }\n - { match: \"rm * / *\", approval: deny }\n - { match: \"rm ~\", approval: deny }\n - { match: \"rm ~ *\", approval: deny }\n - { match: \"rm * ~\", approval: deny }\n - { match: \"rm * ~ *\", approval: deny }\n - { match: \"rm ~/\", approval: deny }\n - { match: \"rm ~/ *\", approval: deny }\n - { match: \"rm * ~/\", approval: deny }\n - { match: \"rm * ~/ *\", approval: deny }\n - { match: \"rm $HOME\", approval: deny }\n - { match: \"rm $HOME *\", approval: deny }\n - { match: \"rm * $HOME\", approval: deny }\n - { match: \"rm * $HOME *\", approval: deny }\n - { match: \"rm $HOME/\", approval: deny }\n - { match: \"rm $HOME/ *\", approval: deny }\n - { match: \"rm * $HOME/\", approval: deny }\n - { match: \"rm * $HOME/ *\", approval: deny }\n - { match: \"rm ${HOME}\", approval: deny }\n - { match: \"rm ${HOME} *\", approval: deny }\n - { match: \"rm * ${HOME}\", approval: deny }\n - { match: \"rm * ${HOME} *\", approval: deny }\n - { match: \"rm ${HOME}/\", approval: deny }\n - { match: \"rm ${HOME}/ *\", approval: deny }\n - { match: \"rm * ${HOME}/\", approval: deny }\n - { match: \"rm * ${HOME}/ *\", approval: deny }\n - { match: \"* rm /\", approval: deny }\n - { match: \"* rm / *\", approval: deny }\n - { match: \"* rm * /\", approval: deny }\n - { match: \"* rm * / *\", approval: deny }\n - { match: \"* rm ~\", approval: deny }\n - { match: \"* rm ~ *\", approval: deny }\n - { match: \"* rm * ~\", approval: deny }\n - { match: \"* rm * ~ *\", approval: deny }\n - { match: \"* rm ~/\", approval: deny }\n - { match: \"* rm ~/ *\", approval: deny }\n - { match: \"* rm * ~/\", approval: deny }\n - { match: \"* rm * ~/ *\", approval: deny }\n - { match: \"* rm $HOME\", approval: deny }\n - { match: \"* rm $HOME *\", approval: deny }\n - { match: \"* rm * $HOME\", approval: deny }\n - { match: \"* rm * $HOME *\", approval: deny }\n - { match: \"* rm $HOME/\", approval: deny }\n - { match: \"* rm $HOME/ *\", approval: deny }\n - { match: \"* rm * $HOME/\", approval: deny }\n - { match: \"* rm * $HOME/ *\", approval: deny }\n - { match: \"* rm ${HOME}\", approval: deny }\n - { match: \"* rm ${HOME} *\", approval: deny }\n - { match: \"* rm * ${HOME}\", approval: deny }\n - { match: \"* rm * ${HOME} *\", approval: deny }\n - { match: \"* rm ${HOME}/\", approval: deny }\n - { match: \"* rm ${HOME}/ *\", approval: deny }\n - { match: \"* rm * ${HOME}/\", approval: deny }\n - { match: \"* rm * ${HOME}/ *\", approval: deny }\n - { match: \"*/rm /\", approval: deny }\n - { match: \"*/rm / *\", approval: deny }\n - { match: \"*/rm * /\", approval: deny }\n - { match: \"*/rm * / *\", approval: deny }\n - { match: \"*/rm ~\", approval: deny }\n - { match: \"*/rm ~ *\", approval: deny }\n - { match: \"*/rm * ~\", approval: deny }\n - { match: \"*/rm * ~ *\", approval: deny }\n - { match: \"*/rm ~/\", approval: deny }\n - { match: \"*/rm ~/ *\", approval: deny }\n - { match: \"*/rm * ~/\", approval: deny }\n - { match: \"*/rm * ~/ *\", approval: deny }\n - { match: \"*/rm $HOME\", approval: deny }\n - { match: \"*/rm $HOME *\", approval: deny }\n - { match: \"*/rm * $HOME\", approval: deny }\n - { match: \"*/rm * $HOME *\", approval: deny }\n - { match: \"*/rm $HOME/\", approval: deny }\n - { match: \"*/rm $HOME/ *\", approval: deny }\n - { match: \"*/rm * $HOME/\", approval: deny }\n - { match: \"*/rm * $HOME/ *\", approval: deny }\n - { match: \"*/rm ${HOME}\", approval: deny }\n - { match: \"*/rm ${HOME} *\", approval: deny }\n - { match: \"*/rm * ${HOME}\", approval: deny }\n - { match: \"*/rm * ${HOME} *\", approval: deny }\n - { match: \"*/rm ${HOME}/\", approval: deny }\n - { match: \"*/rm ${HOME}/ *\", approval: deny }\n - { match: \"*/rm * ${HOME}/\", approval: deny }\n - { match: \"*/rm * ${HOME}/ *\", approval: deny }\n - { match: \"sudo rm\", approval: deny }\n - { match: \"sudo rm *\", approval: deny }\n - { match: \"sudo * rm\", approval: deny }\n - { match: \"sudo * rm *\", approval: deny }\n - { match: \"sudo */rm\", approval: deny }\n - { match: \"sudo */rm *\", approval: deny }\n - { match: \"* sudo rm\", approval: deny }\n - { match: \"* sudo rm *\", approval: deny }\n - { match: \"* sudo * rm\", approval: deny }\n - { match: \"* sudo * rm *\", approval: deny }\n - { match: \"* sudo */rm\", approval: deny }\n - { match: \"* sudo */rm *\", approval: deny }\n - { match: \"*/sudo rm\", approval: deny }\n - { match: \"*/sudo rm *\", approval: deny }\n - { match: \"*/sudo * rm\", approval: deny }\n - { match: \"*/sudo * rm *\", approval: deny }\n - { match: \"*/sudo */rm\", approval: deny }\n - { match: \"*/sudo */rm *\", approval: deny }\n - { match: \"rm *-*r* /*\", approval: deny }\n - { match: \"rm *-*R* /*\", approval: deny }\n - { match: \"rm *-*f* /*\", approval: deny }\n - { match: \"rm *-*F* /*\", approval: deny }\n - { match: \"rm *--no-preserve-root*\", approval: deny }\n - { match: \"* rm *-*r* /*\", approval: deny }\n - { match: \"* rm *-*R* /*\", approval: deny }\n - { match: \"* rm *-*f* /*\", approval: deny }\n - { match: \"* rm *-*F* /*\", approval: deny }\n - { match: \"* rm *--no-preserve-root*\", approval: deny }\n - { match: \"*/rm *-*r* /*\", approval: deny }\n - { match: \"*/rm *-*R* /*\", approval: deny }\n - { match: \"*/rm *-*f* /*\", approval: deny }\n - { match: \"*/rm *-*F* /*\", approval: deny }\n - { match: \"*/rm *--no-preserve-root*\", approval: deny }\n - { match: \"rm *-r *\", approval: deny }\n - { match: \"rm *-r\", approval: deny }\n - { match: \"rm *-rf *\", approval: deny }\n - { match: \"rm *-rf\", approval: deny }\n - { match: \"rm *-fr *\", approval: deny }\n - { match: \"rm *-fr\", approval: deny }\n - { match: \"rm *-rv *\", approval: deny }\n - { match: \"rm *-rv\", approval: deny }\n - { match: \"rm *-vr *\", approval: deny }\n - { match: \"rm *-vr\", approval: deny }\n - { match: \"rm *-rfv *\", approval: deny }\n - { match: \"rm *-rfv\", approval: deny }\n - { match: \"rm *-rvf *\", approval: deny }\n - { match: \"rm *-rvf\", approval: deny }\n - { match: \"rm *-frv *\", approval: deny }\n - { match: \"rm *-frv\", approval: deny }\n - { match: \"rm *-fvr *\", approval: deny }\n - { match: \"rm *-fvr\", approval: deny }\n - { match: \"rm *-vrf *\", approval: deny }\n - { match: \"rm *-vrf\", approval: deny }\n - { match: \"rm *-vfr *\", approval: deny }\n - { match: \"rm *-vfr\", approval: deny }\n - { match: \"rm *-ri *\", approval: deny }\n - { match: \"rm *-ri\", approval: deny }\n - { match: \"rm *-ir *\", approval: deny }\n - { match: \"rm *-ir\", approval: deny }\n - { match: \"rm *-Ri *\", approval: deny }\n - { match: \"rm *-Ri\", approval: deny }\n - { match: \"rm *-iR *\", approval: deny }\n - { match: \"rm *-iR\", approval: deny }\n - { match: \"rm *-R *\", approval: deny }\n - { match: \"rm *-R\", approval: deny }\n - { match: \"rm *-Rf *\", approval: deny }\n - { match: \"rm *-Rf\", approval: deny }\n - { match: \"rm *-fR *\", approval: deny }\n - { match: \"rm *-fR\", approval: deny }\n - { match: \"rm *-Rv *\", approval: deny }\n - { match: \"rm *-Rv\", approval: deny }\n - { match: \"rm *-vR *\", approval: deny }\n - { match: \"rm *-vR\", approval: deny }\n - { match: \"rm *-Rfv *\", approval: deny }\n - { match: \"rm *-Rfv\", approval: deny }\n - { match: \"rm *-Rvf *\", approval: deny }\n - { match: \"rm *-Rvf\", approval: deny }\n - { match: \"rm *-fRv *\", approval: deny }\n - { match: \"rm *-fRv\", approval: deny }\n - { match: \"rm *-fvR *\", approval: deny }\n - { match: \"rm *-fvR\", approval: deny }\n - { match: \"rm *-vRf *\", approval: deny }\n - { match: \"rm *-vRf\", approval: deny }\n - { match: \"rm *-vfR *\", approval: deny }\n - { match: \"rm *-vfR\", approval: deny }\n - { match: \"rm *--recursive *\", approval: deny }\n - { match: \"rm *--recursive\", approval: deny }\n - { match: \"*/rm *-r *\", approval: deny }\n - { match: \"*/rm *-r\", approval: deny }\n - { match: \"*/rm *-rf *\", approval: deny }\n - { match: \"*/rm *-rf\", approval: deny }\n - { match: \"*/rm *-fr *\", approval: deny }\n - { match: \"*/rm *-fr\", approval: deny }\n - { match: \"*/rm *-rv *\", approval: deny }\n - { match: \"*/rm *-rv\", approval: deny }\n - { match: \"*/rm *-vr *\", approval: deny }\n - { match: \"*/rm *-vr\", approval: deny }\n - { match: \"*/rm *-rfv *\", approval: deny }\n - { match: \"*/rm *-rfv\", approval: deny }\n - { match: \"*/rm *-rvf *\", approval: deny }\n - { match: \"*/rm *-rvf\", approval: deny }\n - { match: \"*/rm *-frv *\", approval: deny }\n - { match: \"*/rm *-frv\", approval: deny }\n - { match: \"*/rm *-fvr *\", approval: deny }\n - { match: \"*/rm *-fvr\", approval: deny }\n - { match: \"*/rm *-vrf *\", approval: deny }\n - { match: \"*/rm *-vrf\", approval: deny }\n - { match: \"*/rm *-vfr *\", approval: deny }\n - { match: \"*/rm *-vfr\", approval: deny }\n - { match: \"*/rm *-ri *\", approval: deny }\n - { match: \"*/rm *-ri\", approval: deny }\n - { match: \"*/rm *-ir *\", approval: deny }\n - { match: \"*/rm *-ir\", approval: deny }\n - { match: \"*/rm *-Ri *\", approval: deny }\n - { match: \"*/rm *-Ri\", approval: deny }\n - { match: \"*/rm *-iR *\", approval: deny }\n - { match: \"*/rm *-iR\", approval: deny }\n - { match: \"*/rm *-R *\", approval: deny }\n - { match: \"*/rm *-R\", approval: deny }\n - { match: \"*/rm *-Rf *\", approval: deny }\n - { match: \"*/rm *-Rf\", approval: deny }\n - { match: \"*/rm *-fR *\", approval: deny }\n - { match: \"*/rm *-fR\", approval: deny }\n - { match: \"*/rm *-Rv *\", approval: deny }\n - { match: \"*/rm *-Rv\", approval: deny }\n - { match: \"*/rm *-vR *\", approval: deny }\n - { match: \"*/rm *-vR\", approval: deny }\n - { match: \"*/rm *-Rfv *\", approval: deny }\n - { match: \"*/rm *-Rfv\", approval: deny }\n - { match: \"*/rm *-Rvf *\", approval: deny }\n - { match: \"*/rm *-Rvf\", approval: deny }\n - { match: \"*/rm *-fRv *\", approval: deny }\n - { match: \"*/rm *-fRv\", approval: deny }\n - { match: \"*/rm *-fvR *\", approval: deny }\n - { match: \"*/rm *-fvR\", approval: deny }\n - { match: \"*/rm *-vRf *\", approval: deny }\n - { match: \"*/rm *-vRf\", approval: deny }\n - { match: \"*/rm *-vfR *\", approval: deny }\n - { match: \"*/rm *-vfR\", approval: deny }\n - { match: \"*/rm *--recursive *\", approval: deny }\n - { match: \"*/rm *--recursive\", approval: deny }\n - { match: \"* rm *-r *\", approval: deny }\n - { match: \"* rm *-r\", approval: deny }\n - { match: \"* rm *-rf *\", approval: deny }\n - { match: \"* rm *-rf\", approval: deny }\n - { match: \"* rm *-fr *\", approval: deny }\n - { match: \"* rm *-fr\", approval: deny }\n - { match: \"* rm *-rv *\", approval: deny }\n - { match: \"* rm *-rv\", approval: deny }\n - { match: \"* rm *-vr *\", approval: deny }\n - { match: \"* rm *-vr\", approval: deny }\n - { match: \"* rm *-rfv *\", approval: deny }\n - { match: \"* rm *-rfv\", approval: deny }\n - { match: \"* rm *-rvf *\", approval: deny }\n - { match: \"* rm *-rvf\", approval: deny }\n - { match: \"* rm *-frv *\", approval: deny }\n - { match: \"* rm *-frv\", approval: deny }\n - { match: \"* rm *-fvr *\", approval: deny }\n - { match: \"* rm *-fvr\", approval: deny }\n - { match: \"* rm *-vrf *\", approval: deny }\n - { match: \"* rm *-vrf\", approval: deny }\n - { match: \"* rm *-vfr *\", approval: deny }\n - { match: \"* rm *-vfr\", approval: deny }\n - { match: \"* rm *-R *\", approval: deny }\n - { match: \"* rm *-R\", approval: deny }\n - { match: \"* rm *-ri *\", approval: deny }\n - { match: \"* rm *-ri\", approval: deny }\n - { match: \"* rm *-ir *\", approval: deny }\n - { match: \"* rm *-ir\", approval: deny }\n - { match: \"* rm *-Ri *\", approval: deny }\n - { match: \"* rm *-Ri\", approval: deny }\n - { match: \"* rm *-iR *\", approval: deny }\n - { match: \"* rm *-iR\", approval: deny }\n - { match: \"* rm *-Rf *\", approval: deny }\n - { match: \"* rm *-Rf\", approval: deny }\n - { match: \"* rm *-fR *\", approval: deny }\n - { match: \"* rm *-fR\", approval: deny }\n - { match: \"* rm *-Rv *\", approval: deny }\n - { match: \"* rm *-Rv\", approval: deny }\n - { match: \"* rm *-vR *\", approval: deny }\n - { match: \"* rm *-vR\", approval: deny }\n - { match: \"* rm *-Rfv *\", approval: deny }\n - { match: \"* rm *-Rfv\", approval: deny }\n - { match: \"* rm *-Rvf *\", approval: deny }\n - { match: \"* rm *-Rvf\", approval: deny }\n - { match: \"* rm *-fRv *\", approval: deny }\n - { match: \"* rm *-fRv\", approval: deny }\n - { match: \"* rm *-fvR *\", approval: deny }\n - { match: \"* rm *-fvR\", approval: deny }\n - { match: \"* rm *-vRf *\", approval: deny }\n - { match: \"* rm *-vRf\", approval: deny }\n - { match: \"* rm *-vfR *\", approval: deny }\n - { match: \"* rm *-vfR\", approval: deny }\n - { match: \"* rm *--recursive *\", approval: deny }\n - { match: \"* rm *--recursive\", approval: deny }\n # Bulk removal: find -delete, find -exec rm, and xargs rm, in every position.\n - { match: \"find *-delete*\", approval: deny }\n - { match: \"*/find *-delete*\", approval: deny }\n - { match: \"* find *-delete*\", approval: deny }\n - { match: \"*-exec rm *\", approval: deny }\n - { match: \"*-exec */rm *\", approval: deny }\n - { match: \"*-execdir rm *\", approval: deny }\n - { match: \"*-execdir */rm *\", approval: deny }\n - { match: \"*-ok rm *\", approval: deny }\n - { match: \"*-ok */rm *\", approval: deny }\n - { match: \"*-okdir rm *\", approval: deny }\n - { match: \"*-okdir */rm *\", approval: deny }\n - { match: \"*xargs rm\", approval: deny }\n - { match: \"*xargs rm *\", approval: deny }\n - { match: \"*xargs * rm\", approval: deny }\n - { match: \"*xargs * rm *\", approval: deny }\n - { match: \"*xargs */rm\", approval: deny }\n - { match: \"*xargs */rm *\", approval: deny }\n - { match: \"HOME=*\", approval: deny }\n - { match: \"export HOME=*\", approval: deny }\n - { match: \"env HOME=*\", approval: deny }\n - { match: \"env * HOME=*\", approval: deny }\n - { match: \"git push --force origin main\", approval: deny }\n - { match: \"git push --force origin main *\", approval: deny }\n - { match: \"git push --force origin master\", approval: deny }\n - { match: \"git push --force origin master *\", approval: deny }\n - { match: \"git push -f origin main\", approval: deny }\n - { match: \"git push -f origin main *\", approval: deny }\n - { match: \"git push -f origin master\", approval: deny }\n - { match: \"git push -f origin master *\", approval: deny }\n # Prompt: history-destroying git, and every git push spelling that could\n # force. A subagent cannot answer a prompt, so omp rejects it.\n - { match: \"git clean\", approval: prompt }\n - { match: \"git clean *\", approval: prompt }\n - { match: \"git reset *--hard*\", approval: prompt }\n - { match: \"git push -f*\", approval: prompt }\n - { match: \"git push * -f*\", approval: prompt }\n - { match: \"git push -vv*\", approval: prompt }\n - { match: \"git push * -vv*\", approval: prompt }\n - { match: \"git push -vq*\", approval: prompt }\n - { match: \"git push * -vq*\", approval: prompt }\n - { match: \"git push -vd*\", approval: prompt }\n - { match: \"git push * -vd*\", approval: prompt }\n - { match: \"git push -vn*\", approval: prompt }\n - { match: \"git push * -vn*\", approval: prompt }\n - { match: \"git push -vu*\", approval: prompt }\n - { match: \"git push * -vu*\", approval: prompt }\n - { match: \"git push -v4*\", approval: prompt }\n - { match: \"git push * -v4*\", approval: prompt }\n - { match: \"git push -v6*\", approval: prompt }\n - { match: \"git push * -v6*\", approval: prompt }\n - { match: \"git push -vf*\", approval: prompt }\n - { match: \"git push * -vf*\", approval: prompt }\n - { match: \"git push -qv*\", approval: prompt }\n - { match: \"git push * -qv*\", approval: prompt }\n - { match: \"git push -qq*\", approval: prompt }\n - { match: \"git push * -qq*\", approval: prompt }\n - { match: \"git push -qd*\", approval: prompt }\n - { match: \"git push * -qd*\", approval: prompt }\n - { match: \"git push -qn*\", approval: prompt }\n - { match: \"git push * -qn*\", approval: prompt }\n - { match: \"git push -qu*\", approval: prompt }\n - { match: \"git push * -qu*\", approval: prompt }\n - { match: \"git push -q4*\", approval: prompt }\n - { match: \"git push * -q4*\", approval: prompt }\n - { match: \"git push -q6*\", approval: prompt }\n - { match: \"git push * -q6*\", approval: prompt }\n - { match: \"git push -qf*\", approval: prompt }\n - { match: \"git push * -qf*\", approval: prompt }\n - { match: \"git push -dv*\", approval: prompt }\n - { match: \"git push * -dv*\", approval: prompt }\n - { match: \"git push -dq*\", approval: prompt }\n - { match: \"git push * -dq*\", approval: prompt }\n - { match: \"git push -dd*\", approval: prompt }\n - { match: \"git push * -dd*\", approval: prompt }\n - { match: \"git push -dn*\", approval: prompt }\n - { match: \"git push * -dn*\", approval: prompt }\n - { match: \"git push -du*\", approval: prompt }\n - { match: \"git push * -du*\", approval: prompt }\n - { match: \"git push -d4*\", approval: prompt }\n - { match: \"git push * -d4*\", approval: prompt }\n - { match: \"git push -d6*\", approval: prompt }\n - { match: \"git push * -d6*\", approval: prompt }\n - { match: \"git push -df*\", approval: prompt }\n - { match: \"git push * -df*\", approval: prompt }\n - { match: \"git push -nv*\", approval: prompt }\n - { match: \"git push * -nv*\", approval: prompt }\n - { match: \"git push -nq*\", approval: prompt }\n - { match: \"git push * -nq*\", approval: prompt }\n - { match: \"git push -nd*\", approval: prompt }\n - { match: \"git push * -nd*\", approval: prompt }\n - { match: \"git push -nn*\", approval: prompt }\n - { match: \"git push * -nn*\", approval: prompt }\n - { match: \"git push -nu*\", approval: prompt }\n - { match: \"git push * -nu*\", approval: prompt }\n - { match: \"git push -n4*\", approval: prompt }\n - { match: \"git push * -n4*\", approval: prompt }\n - { match: \"git push -n6*\", approval: prompt }\n - { match: \"git push * -n6*\", approval: prompt }\n - { match: \"git push -nf*\", approval: prompt }\n - { match: \"git push * -nf*\", approval: prompt }\n - { match: \"git push -uv*\", approval: prompt }\n - { match: \"git push * -uv*\", approval: prompt }\n - { match: \"git push -uq*\", approval: prompt }\n - { match: \"git push * -uq*\", approval: prompt }\n - { match: \"git push -ud*\", approval: prompt }\n - { match: \"git push * -ud*\", approval: prompt }\n - { match: \"git push -un*\", approval: prompt }\n - { match: \"git push * -un*\", approval: prompt }\n - { match: \"git push -uu*\", approval: prompt }\n - { match: \"git push * -uu*\", approval: prompt }\n - { match: \"git push -u4*\", approval: prompt }\n - { match: \"git push * -u4*\", approval: prompt }\n - { match: \"git push -u6*\", approval: prompt }\n - { match: \"git push * -u6*\", approval: prompt }\n - { match: \"git push -uf*\", approval: prompt }\n - { match: \"git push * -uf*\", approval: prompt }\n - { match: \"git push -4v*\", approval: prompt }\n - { match: \"git push * -4v*\", approval: prompt }\n - { match: \"git push -4q*\", approval: prompt }\n - { match: \"git push * -4q*\", approval: prompt }\n - { match: \"git push -4d*\", approval: prompt }\n - { match: \"git push * -4d*\", approval: prompt }\n - { match: \"git push -4n*\", approval: prompt }\n - { match: \"git push * -4n*\", approval: prompt }\n - { match: \"git push -4u*\", approval: prompt }\n - { match: \"git push * -4u*\", approval: prompt }\n - { match: \"git push -44*\", approval: prompt }\n - { match: \"git push * -44*\", approval: prompt }\n - { match: \"git push -46*\", approval: prompt }\n - { match: \"git push * -46*\", approval: prompt }\n - { match: \"git push -4f*\", approval: prompt }\n - { match: \"git push * -4f*\", approval: prompt }\n - { match: \"git push -6v*\", approval: prompt }\n - { match: \"git push * -6v*\", approval: prompt }\n - { match: \"git push -6q*\", approval: prompt }\n - { match: \"git push * -6q*\", approval: prompt }\n - { match: \"git push -6d*\", approval: prompt }\n - { match: \"git push * -6d*\", approval: prompt }\n - { match: \"git push -6n*\", approval: prompt }\n - { match: \"git push * -6n*\", approval: prompt }\n - { match: \"git push -6u*\", approval: prompt }\n - { match: \"git push * -6u*\", approval: prompt }\n - { match: \"git push -64*\", approval: prompt }\n - { match: \"git push * -64*\", approval: prompt }\n - { match: \"git push -66*\", approval: prompt }\n - { match: \"git push * -66*\", approval: prompt }\n - { match: \"git push -6f*\", approval: prompt }\n - { match: \"git push * -6f*\", approval: prompt }\n - { match: \"git push --f*\", approval: prompt }\n - { match: \"git push * --f*\", approval: prompt }\n - { match: \"git push --mi*\", approval: prompt }\n - { match: \"git push * --mi*\", approval: prompt }\n - { match: \"git push +*\", approval: prompt }\n - { match: \"git push * +*\", approval: prompt }\n - { match: \"git push $*\", approval: prompt }\n - { match: \"git push * $*\", approval: prompt }\n - { match: \"git push `*\", approval: prompt }\n - { match: \"git push * `*\", approval: prompt }\n # Prompt: every git command that skips the repository's hooks. Each rule\n # starts with * so that a prefix such as X=1, env, timeout, or /usr/bin/\n # before git still matches. git takes any unique prefix of --no-verify,\n # and git am takes the shortest, --no-v. git commit and git am read -n as\n # --no-verify, also inside a short-option cluster, so every cluster that\n # starts with -n or with two no-argument options asks. core.hooksPath\n # moves the hooks directory: the git rules match its two common\n # spellings, and the variable rules match each override through\n # GIT_CONFIG_COUNT or GIT_CONFIG_PARAMETERS.\n - { match: \"*git * --no-v*\", approval: prompt }\n - { match: \"*git commit -n*\", approval: prompt }\n - { match: \"*git commit * -n*\", approval: prompt }\n - { match: \"*git commit -qq*\", approval: prompt }\n - { match: \"*git commit * -qq*\", approval: prompt }\n - { match: \"*git commit -qv*\", approval: prompt }\n - { match: \"*git commit * -qv*\", approval: prompt }\n - { match: \"*git commit -qs*\", approval: prompt }\n - { match: \"*git commit * -qs*\", approval: prompt }\n - { match: \"*git commit -qe*\", approval: prompt }\n - { match: \"*git commit * -qe*\", approval: prompt }\n - { match: \"*git commit -qa*\", approval: prompt }\n - { match: \"*git commit * -qa*\", approval: prompt }\n - { match: \"*git commit -qi*\", approval: prompt }\n - { match: \"*git commit * -qi*\", approval: prompt }\n - { match: \"*git commit -qp*\", approval: prompt }\n - { match: \"*git commit * -qp*\", approval: prompt }\n - { match: \"*git commit -qn*\", approval: prompt }\n - { match: \"*git commit * -qn*\", approval: prompt }\n - { match: \"*git commit -qo*\", approval: prompt }\n - { match: \"*git commit * -qo*\", approval: prompt }\n - { match: \"*git commit -qz*\", approval: prompt }\n - { match: \"*git commit * -qz*\", approval: prompt }\n - { match: \"*git commit -vq*\", approval: prompt }\n - { match: \"*git commit * -vq*\", approval: prompt }\n - { match: \"*git commit -vv*\", approval: prompt }\n - { match: \"*git commit * -vv*\", approval: prompt }\n - { match: \"*git commit -vs*\", approval: prompt }\n - { match: \"*git commit * -vs*\", approval: prompt }\n - { match: \"*git commit -ve*\", approval: prompt }\n - { match: \"*git commit * -ve*\", approval: prompt }\n - { match: \"*git commit -va*\", approval: prompt }\n - { match: \"*git commit * -va*\", approval: prompt }\n - { match: \"*git commit -vi*\", approval: prompt }\n - { match: \"*git commit * -vi*\", approval: prompt }\n - { match: \"*git commit -vp*\", approval: prompt }\n - { match: \"*git commit * -vp*\", approval: prompt }\n - { match: \"*git commit -vn*\", approval: prompt }\n - { match: \"*git commit * -vn*\", approval: prompt }\n - { match: \"*git commit -vo*\", approval: prompt }\n - { match: \"*git commit * -vo*\", approval: prompt }\n - { match: \"*git commit -vz*\", approval: prompt }\n - { match: \"*git commit * -vz*\", approval: prompt }\n - { match: \"*git commit -sq*\", approval: prompt }\n - { match: \"*git commit * -sq*\", approval: prompt }\n - { match: \"*git commit -sv*\", approval: prompt }\n - { match: \"*git commit * -sv*\", approval: prompt }\n - { match: \"*git commit -ss*\", approval: prompt }\n - { match: \"*git commit * -ss*\", approval: prompt }\n - { match: \"*git commit -se*\", approval: prompt }\n - { match: \"*git commit * -se*\", approval: prompt }\n - { match: \"*git commit -sa*\", approval: prompt }\n - { match: \"*git commit * -sa*\", approval: prompt }\n - { match: \"*git commit -si*\", approval: prompt }\n - { match: \"*git commit * -si*\", approval: prompt }\n - { match: \"*git commit -sp*\", approval: prompt }\n - { match: \"*git commit * -sp*\", approval: prompt }\n - { match: \"*git commit -sn*\", approval: prompt }\n - { match: \"*git commit * -sn*\", approval: prompt }\n - { match: \"*git commit -so*\", approval: prompt }\n - { match: \"*git commit * -so*\", approval: prompt }\n - { match: \"*git commit -sz*\", approval: prompt }\n - { match: \"*git commit * -sz*\", approval: prompt }\n - { match: \"*git commit -eq*\", approval: prompt }\n - { match: \"*git commit * -eq*\", approval: prompt }\n - { match: \"*git commit -ev*\", approval: prompt }\n - { match: \"*git commit * -ev*\", approval: prompt }\n - { match: \"*git commit -es*\", approval: prompt }\n - { match: \"*git commit * -es*\", approval: prompt }\n - { match: \"*git commit -ee*\", approval: prompt }\n - { match: \"*git commit * -ee*\", approval: prompt }\n - { match: \"*git commit -ea*\", approval: prompt }\n - { match: \"*git commit * -ea*\", approval: prompt }\n - { match: \"*git commit -ei*\", approval: prompt }\n - { match: \"*git commit * -ei*\", approval: prompt }\n - { match: \"*git commit -ep*\", approval: prompt }\n - { match: \"*git commit * -ep*\", approval: prompt }\n - { match: \"*git commit -en*\", approval: prompt }\n - { match: \"*git commit * -en*\", approval: prompt }\n - { match: \"*git commit -eo*\", approval: prompt }\n - { match: \"*git commit * -eo*\", approval: prompt }\n - { match: \"*git commit -ez*\", approval: prompt }\n - { match: \"*git commit * -ez*\", approval: prompt }\n - { match: \"*git commit -aq*\", approval: prompt }\n - { match: \"*git commit * -aq*\", approval: prompt }\n - { match: \"*git commit -av*\", approval: prompt }\n - { match: \"*git commit * -av*\", approval: prompt }\n - { match: \"*git commit -as*\", approval: prompt }\n - { match: \"*git commit * -as*\", approval: prompt }\n - { match: \"*git commit -ae*\", approval: prompt }\n - { match: \"*git commit * -ae*\", approval: prompt }\n - { match: \"*git commit -aa*\", approval: prompt }\n - { match: \"*git commit * -aa*\", approval: prompt }\n - { match: \"*git commit -ai*\", approval: prompt }\n - { match: \"*git commit * -ai*\", approval: prompt }\n - { match: \"*git commit -ap*\", approval: prompt }\n - { match: \"*git commit * -ap*\", approval: prompt }\n - { match: \"*git commit -an*\", approval: prompt }\n - { match: \"*git commit * -an*\", approval: prompt }\n - { match: \"*git commit -ao*\", approval: prompt }\n - { match: \"*git commit * -ao*\", approval: prompt }\n - { match: \"*git commit -az*\", approval: prompt }\n - { match: \"*git commit * -az*\", approval: prompt }\n - { match: \"*git commit -iq*\", approval: prompt }\n - { match: \"*git commit * -iq*\", approval: prompt }\n - { match: \"*git commit -iv*\", approval: prompt }\n - { match: \"*git commit * -iv*\", approval: prompt }\n - { match: \"*git commit -is*\", approval: prompt }\n - { match: \"*git commit * -is*\", approval: prompt }\n - { match: \"*git commit -ie*\", approval: prompt }\n - { match: \"*git commit * -ie*\", approval: prompt }\n - { match: \"*git commit -ia*\", approval: prompt }\n - { match: \"*git commit * -ia*\", approval: prompt }\n - { match: \"*git commit -ii*\", approval: prompt }\n - { match: \"*git commit * -ii*\", approval: prompt }\n - { match: \"*git commit -ip*\", approval: prompt }\n - { match: \"*git commit * -ip*\", approval: prompt }\n - { match: \"*git commit -in*\", approval: prompt }\n - { match: \"*git commit * -in*\", approval: prompt }\n - { match: \"*git commit -io*\", approval: prompt }\n - { match: \"*git commit * -io*\", approval: prompt }\n - { match: \"*git commit -iz*\", approval: prompt }\n - { match: \"*git commit * -iz*\", approval: prompt }\n - { match: \"*git commit -pq*\", approval: prompt }\n - { match: \"*git commit * -pq*\", approval: prompt }\n - { match: \"*git commit -pv*\", approval: prompt }\n - { match: \"*git commit * -pv*\", approval: prompt }\n - { match: \"*git commit -ps*\", approval: prompt }\n - { match: \"*git commit * -ps*\", approval: prompt }\n - { match: \"*git commit -pe*\", approval: prompt }\n - { match: \"*git commit * -pe*\", approval: prompt }\n - { match: \"*git commit -pa*\", approval: prompt }\n - { match: \"*git commit * -pa*\", approval: prompt }\n - { match: \"*git commit -pi*\", approval: prompt }\n - { match: \"*git commit * -pi*\", approval: prompt }\n - { match: \"*git commit -pp*\", approval: prompt }\n - { match: \"*git commit * -pp*\", approval: prompt }\n - { match: \"*git commit -pn*\", approval: prompt }\n - { match: \"*git commit * -pn*\", approval: prompt }\n - { match: \"*git commit -po*\", approval: prompt }\n - { match: \"*git commit * -po*\", approval: prompt }\n - { match: \"*git commit -pz*\", approval: prompt }\n - { match: \"*git commit * -pz*\", approval: prompt }\n - { match: \"*git commit -oq*\", approval: prompt }\n - { match: \"*git commit * -oq*\", approval: prompt }\n - { match: \"*git commit -ov*\", approval: prompt }\n - { match: \"*git commit * -ov*\", approval: prompt }\n - { match: \"*git commit -os*\", approval: prompt }\n - { match: \"*git commit * -os*\", approval: prompt }\n - { match: \"*git commit -oe*\", approval: prompt }\n - { match: \"*git commit * -oe*\", approval: prompt }\n - { match: \"*git commit -oa*\", approval: prompt }\n - { match: \"*git commit * -oa*\", approval: prompt }\n - { match: \"*git commit -oi*\", approval: prompt }\n - { match: \"*git commit * -oi*\", approval: prompt }\n - { match: \"*git commit -op*\", approval: prompt }\n - { match: \"*git commit * -op*\", approval: prompt }\n - { match: \"*git commit -on*\", approval: prompt }\n - { match: \"*git commit * -on*\", approval: prompt }\n - { match: \"*git commit -oo*\", approval: prompt }\n - { match: \"*git commit * -oo*\", approval: prompt }\n - { match: \"*git commit -oz*\", approval: prompt }\n - { match: \"*git commit * -oz*\", approval: prompt }\n - { match: \"*git commit -zq*\", approval: prompt }\n - { match: \"*git commit * -zq*\", approval: prompt }\n - { match: \"*git commit -zv*\", approval: prompt }\n - { match: \"*git commit * -zv*\", approval: prompt }\n - { match: \"*git commit -zs*\", approval: prompt }\n - { match: \"*git commit * -zs*\", approval: prompt }\n - { match: \"*git commit -ze*\", approval: prompt }\n - { match: \"*git commit * -ze*\", approval: prompt }\n - { match: \"*git commit -za*\", approval: prompt }\n - { match: \"*git commit * -za*\", approval: prompt }\n - { match: \"*git commit -zi*\", approval: prompt }\n - { match: \"*git commit * -zi*\", approval: prompt }\n - { match: \"*git commit -zp*\", approval: prompt }\n - { match: \"*git commit * -zp*\", approval: prompt }\n - { match: \"*git commit -zn*\", approval: prompt }\n - { match: \"*git commit * -zn*\", approval: prompt }\n - { match: \"*git commit -zo*\", approval: prompt }\n - { match: \"*git commit * -zo*\", approval: prompt }\n - { match: \"*git commit -zz*\", approval: prompt }\n - { match: \"*git commit * -zz*\", approval: prompt }\n - { match: \"*git am -n*\", approval: prompt }\n - { match: \"*git am * -n*\", approval: prompt }\n - { match: \"*git am -ii*\", approval: prompt }\n - { match: \"*git am * -ii*\", approval: prompt }\n - { match: \"*git am -in*\", approval: prompt }\n - { match: \"*git am * -in*\", approval: prompt }\n - { match: \"*git am -i3*\", approval: prompt }\n - { match: \"*git am * -i3*\", approval: prompt }\n - { match: \"*git am -iq*\", approval: prompt }\n - { match: \"*git am * -iq*\", approval: prompt }\n - { match: \"*git am -is*\", approval: prompt }\n - { match: \"*git am * -is*\", approval: prompt }\n - { match: \"*git am -iu*\", approval: prompt }\n - { match: \"*git am * -iu*\", approval: prompt }\n - { match: \"*git am -ik*\", approval: prompt }\n - { match: \"*git am * -ik*\", approval: prompt }\n - { match: \"*git am -im*\", approval: prompt }\n - { match: \"*git am * -im*\", approval: prompt }\n - { match: \"*git am -ic*\", approval: prompt }\n - { match: \"*git am * -ic*\", approval: prompt }\n - { match: \"*git am -ir*\", approval: prompt }\n - { match: \"*git am * -ir*\", approval: prompt }\n - { match: \"*git am -3i*\", approval: prompt }\n - { match: \"*git am * -3i*\", approval: prompt }\n - { match: \"*git am -3n*\", approval: prompt }\n - { match: \"*git am * -3n*\", approval: prompt }\n - { match: \"*git am -33*\", approval: prompt }\n - { match: \"*git am * -33*\", approval: prompt }\n - { match: \"*git am -3q*\", approval: prompt }\n - { match: \"*git am * -3q*\", approval: prompt }\n - { match: \"*git am -3s*\", approval: prompt }\n - { match: \"*git am * -3s*\", approval: prompt }\n - { match: \"*git am -3u*\", approval: prompt }\n - { match: \"*git am * -3u*\", approval: prompt }\n - { match: \"*git am -3k*\", approval: prompt }\n - { match: \"*git am * -3k*\", approval: prompt }\n - { match: \"*git am -3m*\", approval: prompt }\n - { match: \"*git am * -3m*\", approval: prompt }\n - { match: \"*git am -3c*\", approval: prompt }\n - { match: \"*git am * -3c*\", approval: prompt }\n - { match: \"*git am -3r*\", approval: prompt }\n - { match: \"*git am * -3r*\", approval: prompt }\n - { match: \"*git am -qi*\", approval: prompt }\n - { match: \"*git am * -qi*\", approval: prompt }\n - { match: \"*git am -qn*\", approval: prompt }\n - { match: \"*git am * -qn*\", approval: prompt }\n - { match: \"*git am -q3*\", approval: prompt }\n - { match: \"*git am * -q3*\", approval: prompt }\n - { match: \"*git am -qq*\", approval: prompt }\n - { match: \"*git am * -qq*\", approval: prompt }\n - { match: \"*git am -qs*\", approval: prompt }\n - { match: \"*git am * -qs*\", approval: prompt }\n - { match: \"*git am -qu*\", approval: prompt }\n - { match: \"*git am * -qu*\", approval: prompt }\n - { match: \"*git am -qk*\", approval: prompt }\n - { match: \"*git am * -qk*\", approval: prompt }\n - { match: \"*git am -qm*\", approval: prompt }\n - { match: \"*git am * -qm*\", approval: prompt }\n - { match: \"*git am -qc*\", approval: prompt }\n - { match: \"*git am * -qc*\", approval: prompt }\n - { match: \"*git am -qr*\", approval: prompt }\n - { match: \"*git am * -qr*\", approval: prompt }\n - { match: \"*git am -si*\", approval: prompt }\n - { match: \"*git am * -si*\", approval: prompt }\n - { match: \"*git am -sn*\", approval: prompt }\n - { match: \"*git am * -sn*\", approval: prompt }\n - { match: \"*git am -s3*\", approval: prompt }\n - { match: \"*git am * -s3*\", approval: prompt }\n - { match: \"*git am -sq*\", approval: prompt }\n - { match: \"*git am * -sq*\", approval: prompt }\n - { match: \"*git am -ss*\", approval: prompt }\n - { match: \"*git am * -ss*\", approval: prompt }\n - { match: \"*git am -su*\", approval: prompt }\n - { match: \"*git am * -su*\", approval: prompt }\n - { match: \"*git am -sk*\", approval: prompt }\n - { match: \"*git am * -sk*\", approval: prompt }\n - { match: \"*git am -sm*\", approval: prompt }\n - { match: \"*git am * -sm*\", approval: prompt }\n - { match: \"*git am -sc*\", approval: prompt }\n - { match: \"*git am * -sc*\", approval: prompt }\n - { match: \"*git am -sr*\", approval: prompt }\n - { match: \"*git am * -sr*\", approval: prompt }\n - { match: \"*git am -ui*\", approval: prompt }\n - { match: \"*git am * -ui*\", approval: prompt }\n - { match: \"*git am -un*\", approval: prompt }\n - { match: \"*git am * -un*\", approval: prompt }\n - { match: \"*git am -u3*\", approval: prompt }\n - { match: \"*git am * -u3*\", approval: prompt }\n - { match: \"*git am -uq*\", approval: prompt }\n - { match: \"*git am * -uq*\", approval: prompt }\n - { match: \"*git am -us*\", approval: prompt }\n - { match: \"*git am * -us*\", approval: prompt }\n - { match: \"*git am -uu*\", approval: prompt }\n - { match: \"*git am * -uu*\", approval: prompt }\n - { match: \"*git am -uk*\", approval: prompt }\n - { match: \"*git am * -uk*\", approval: prompt }\n - { match: \"*git am -um*\", approval: prompt }\n - { match: \"*git am * -um*\", approval: prompt }\n - { match: \"*git am -uc*\", approval: prompt }\n - { match: \"*git am * -uc*\", approval: prompt }\n - { match: \"*git am -ur*\", approval: prompt }\n - { match: \"*git am * -ur*\", approval: prompt }\n - { match: \"*git am -ki*\", approval: prompt }\n - { match: \"*git am * -ki*\", approval: prompt }\n - { match: \"*git am -kn*\", approval: prompt }\n - { match: \"*git am * -kn*\", approval: prompt }\n - { match: \"*git am -k3*\", approval: prompt }\n - { match: \"*git am * -k3*\", approval: prompt }\n - { match: \"*git am -kq*\", approval: prompt }\n - { match: \"*git am * -kq*\", approval: prompt }\n - { match: \"*git am -ks*\", approval: prompt }\n - { match: \"*git am * -ks*\", approval: prompt }\n - { match: \"*git am -ku*\", approval: prompt }\n - { match: \"*git am * -ku*\", approval: prompt }\n - { match: \"*git am -kk*\", approval: prompt }\n - { match: \"*git am * -kk*\", approval: prompt }\n - { match: \"*git am -km*\", approval: prompt }\n - { match: \"*git am * -km*\", approval: prompt }\n - { match: \"*git am -kc*\", approval: prompt }\n - { match: \"*git am * -kc*\", approval: prompt }\n - { match: \"*git am -kr*\", approval: prompt }\n - { match: \"*git am * -kr*\", approval: prompt }\n - { match: \"*git am -mi*\", approval: prompt }\n - { match: \"*git am * -mi*\", approval: prompt }\n - { match: \"*git am -mn*\", approval: prompt }\n - { match: \"*git am * -mn*\", approval: prompt }\n - { match: \"*git am -m3*\", approval: prompt }\n - { match: \"*git am * -m3*\", approval: prompt }\n - { match: \"*git am -mq*\", approval: prompt }\n - { match: \"*git am * -mq*\", approval: prompt }\n - { match: \"*git am -ms*\", approval: prompt }\n - { match: \"*git am * -ms*\", approval: prompt }\n - { match: \"*git am -mu*\", approval: prompt }\n - { match: \"*git am * -mu*\", approval: prompt }\n - { match: \"*git am -mk*\", approval: prompt }\n - { match: \"*git am * -mk*\", approval: prompt }\n - { match: \"*git am -mm*\", approval: prompt }\n - { match: \"*git am * -mm*\", approval: prompt }\n - { match: \"*git am -mc*\", approval: prompt }\n - { match: \"*git am * -mc*\", approval: prompt }\n - { match: \"*git am -mr*\", approval: prompt }\n - { match: \"*git am * -mr*\", approval: prompt }\n - { match: \"*git am -ci*\", approval: prompt }\n - { match: \"*git am * -ci*\", approval: prompt }\n - { match: \"*git am -cn*\", approval: prompt }\n - { match: \"*git am * -cn*\", approval: prompt }\n - { match: \"*git am -c3*\", approval: prompt }\n - { match: \"*git am * -c3*\", approval: prompt }\n - { match: \"*git am -cq*\", approval: prompt }\n - { match: \"*git am * -cq*\", approval: prompt }\n - { match: \"*git am -cs*\", approval: prompt }\n - { match: \"*git am * -cs*\", approval: prompt }\n - { match: \"*git am -cu*\", approval: prompt }\n - { match: \"*git am * -cu*\", approval: prompt }\n - { match: \"*git am -ck*\", approval: prompt }\n - { match: \"*git am * -ck*\", approval: prompt }\n - { match: \"*git am -cm*\", approval: prompt }\n - { match: \"*git am * -cm*\", approval: prompt }\n - { match: \"*git am -cc*\", approval: prompt }\n - { match: \"*git am * -cc*\", approval: prompt }\n - { match: \"*git am -cr*\", approval: prompt }\n - { match: \"*git am * -cr*\", approval: prompt }\n - { match: \"*git am -ri*\", approval: prompt }\n - { match: \"*git am * -ri*\", approval: prompt }\n - { match: \"*git am -rn*\", approval: prompt }\n - { match: \"*git am * -rn*\", approval: prompt }\n - { match: \"*git am -r3*\", approval: prompt }\n - { match: \"*git am * -r3*\", approval: prompt }\n - { match: \"*git am -rq*\", approval: prompt }\n - { match: \"*git am * -rq*\", approval: prompt }\n - { match: \"*git am -rs*\", approval: prompt }\n - { match: \"*git am * -rs*\", approval: prompt }\n - { match: \"*git am -ru*\", approval: prompt }\n - { match: \"*git am * -ru*\", approval: prompt }\n - { match: \"*git am -rk*\", approval: prompt }\n - { match: \"*git am * -rk*\", approval: prompt }\n - { match: \"*git am -rm*\", approval: prompt }\n - { match: \"*git am * -rm*\", approval: prompt }\n - { match: \"*git am -rc*\", approval: prompt }\n - { match: \"*git am * -rc*\", approval: prompt }\n - { match: \"*git am -rr*\", approval: prompt }\n - { match: \"*git am * -rr*\", approval: prompt }\n - { match: \"*git *core.hooksPath*\", approval: prompt }\n - { match: \"*git *core.hookspath*\", approval: prompt }\n - { match: \"*GIT_CONFIG_PARAMETERS*\", approval: prompt }\n - { match: \"*GIT_CONFIG_COUNT*\", approval: prompt }\n # Allow: the macOS trash command.\n - { match: \"trash *\", approval: allow }\n",
|
|
22
22
|
"SoT/.omp/intercom.json": "{\n \"brokerCommand\": \"bun\",\n \"brokerArgs\": []\n}\n",
|
|
23
23
|
"SoT/.omp/mcp.json": "{\n \"$schema\": \"https://raw.githubusercontent.com/can1357/oh-my-pi/main/packages/coding-agent/src/config/mcp-schema.json\",\n \"disabledServers\": [\n \"chrome-devtools\",\n \"context7:context7\",\n \"openaiDeveloperDocs\"\n ]\n}\n",
|
|
24
24
|
"SoT/.omp/models.yml": "providers:\n openai-codex:\n modelOverrides:\n gpt-6-astra:\n thinking:\n mode: effort\n efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n defaultLevel: xhigh\n",
|
|
@@ -58,4 +58,4 @@ export const GENERATED_PAYLOAD_PATHS = [
|
|
|
58
58
|
"notification.mp3"
|
|
59
59
|
] as const
|
|
60
60
|
|
|
61
|
-
export const GENERATED_PAYLOAD_HASH = "
|
|
61
|
+
export const GENERATED_PAYLOAD_HASH = "8ebf8710bb13d9e1993cefb4ebee7432358ce7b95eec1c6acea34cea672d662b"
|
package/package.json
CHANGED