@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/dist/board-server.mjs +258 -146
- package/package.json +3 -6
- package/plot-agent-manifest.sh +76 -15
- package/plot-agent-monitor.sh +43 -5
- package/plot-approve.sh +224 -73
- package/plot-config.sh +14 -14
- package/plot-deliver.sh +10 -741
- package/plot-dispatch.sh +282 -107
- package/plot-fleet-scan.sh +867 -170
- package/plot-host.sh +310 -76
- package/plot-monitor-subject.sh +61 -10
- package/plot-plan-meta.sh +155 -139
- package/plot-pr-merged.sh +16 -0
- package/plot-reap.sh +61 -28
- package/plot-state-receipt.sh +12 -2
- package/plot-tmp.sh +31 -3
- package/plot-worker-state.sh +458 -24
- package/plot-build-monitor.sh +0 -435
- package/plot-resolve-artifact.sh +0 -423
- package/plot-transcript-quiet.sh +0 -170
- package/plot-worker-monitor.sh +0 -705
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
|
-
|
|
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
|
-
|
|
223
|
-
|
|
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
|
-
|
|
265
|
-
printf '%s\n' "$value"
|
|
266
|
-
else
|
|
267
|
-
printf '%s\n' "$default"
|
|
268
|
-
fi
|
|
268
|
+
printf '%s\n' "${value:-$default}"
|