@plot-pm/board 0.16.2 → 0.17.0

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/plot-config.sh CHANGED
@@ -144,6 +144,16 @@
144
144
  # it does today and names `no-brief-command` as the
145
145
  # reason, so a project that has never set the key behaves
146
146
  # exactly as before.
147
+ # Agent runner command | sdk: how the JS loop runs a worker's prompt.
148
+ # Absent = command.
149
+ # Agent models `role = model` list (`worker = sonnet`); a charter wins.
150
+ # Agent max turns turns one SDK run may take. Absent = 150.
151
+ # Slice max runs SDK runs one slice may start. Absent = 12.
152
+ # Agent context window an SDK run's `autoCompactWindow`. Absent = 200000.
153
+ # Agent max spend dollars one SDK run may spend (`maxBudgetUsd`); the
154
+ # run then ends `spend-limit`. Absent = no limit, never 0.
155
+ # Slice max spend dollars one slice's runs may total, read from the
156
+ # slice-spend record before each run. Absent = no limit.
147
157
  # Plot 2 posture keys (repo-declared ceremony bounds; all optional):
148
158
  # Plan PRs required | never | optional (never = hard gate)
149
159
  # Implementation home this repo | <repo/path list> | none
@@ -202,10 +212,7 @@ cmd="${1:?Usage: plot-config.sh get <key> [default]}"
202
212
  key="${2:?Usage: plot-config.sh get <key> [default]}"
203
213
  default="${3:-}"
204
214
 
205
- if [ "$cmd" != "get" ]; then
206
- echo "plot-config: unknown subcommand '$cmd' (only 'get' is supported)" >&2
207
- exit 1
208
- fi
215
+ [ "$cmd" = "get" ] || { echo "plot-config: unknown subcommand '$cmd' (only 'get' is supported)" >&2; exit 1; }
209
216
 
210
217
  # THE CALLER'S ROOT IS TAKEN WHERE IT OFFERS ONE. `git rev-parse` is ~5 ms and
211
218
  # this script runs once per config key, so a caller reading several keys pays
@@ -219,11 +226,8 @@ fi
219
226
  # exported stale path would otherwise make every config read answer from a
220
227
  # repository that is not this one, silently. Asking git is the safe answer and
221
228
  # stays the default for every caller that offers nothing.
222
- if [ -n "${PLOT_REPO_ROOT:-}" ] && [ -d "$PLOT_REPO_ROOT" ]; then
223
- root="$PLOT_REPO_ROOT"
224
- else
225
- root=$(git rev-parse --show-toplevel 2>/dev/null) || root="."
226
- fi
229
+ root="${PLOT_REPO_ROOT:-}"
230
+ [ -n "$root" ] && [ -d "$root" ] || root=$(git rev-parse --show-toplevel 2>/dev/null) || root="."
227
231
 
228
232
  # Find the first repo-root file that contains a ## Plot Config section.
229
233
  # CLAUDE.md wins for backwards compatibility; AGENTS.md is the modern fallback.
@@ -261,8 +265,4 @@ if [ -n "$config_file" ]; then
261
265
  s/^[[:space:]]+//; s/[[:space:]]+$//') # trim ends
262
266
  fi
263
267
 
264
- if [ -n "$value" ]; then
265
- printf '%s\n' "$value"
266
- else
267
- printf '%s\n' "$default"
268
- fi
268
+ printf '%s\n' "${value:-$default}"