@brutalsystems/muster 0.7.20 → 0.7.21
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/format.js +8 -2
- package/dist/guard.js +5 -1
- package/dist/run.js +3 -0
- package/package.json +1 -1
package/dist/format.js
CHANGED
|
@@ -45,9 +45,15 @@ function recordHuman(record, color) {
|
|
|
45
45
|
if (record.sandbox)
|
|
46
46
|
lines.push(field("Sandbox", clean(record.sandbox)));
|
|
47
47
|
// Only when known: a null means the child chose its own model, and "-" in a
|
|
48
|
-
// human listing would read as a value rather than an absence.
|
|
48
|
+
// human listing would read as a value rather than an absence. The source is
|
|
49
|
+
// shown because "pinned by the caller" and "fell back to the configured
|
|
50
|
+
// default" are the distinction the field exists to make.
|
|
49
51
|
if (record.model)
|
|
50
|
-
lines.push(field("Model", clean(record.model)
|
|
52
|
+
lines.push(field("Model", `${clean(record.model)}${record.model_source === "request"
|
|
53
|
+
? " (requested)"
|
|
54
|
+
: record.model_source === "config"
|
|
55
|
+
? " (configured default)"
|
|
56
|
+
: ""}`));
|
|
51
57
|
if (record.mcp)
|
|
52
58
|
lines.push(field("MCP", record.mcp.length ? record.mcp.map(clean).join(", ") : "none"));
|
|
53
59
|
for (const warning of record.mcp_warnings ?? [])
|
package/dist/guard.js
CHANGED
|
@@ -266,8 +266,12 @@ export function runtimeArgs(req) {
|
|
|
266
266
|
return result;
|
|
267
267
|
}
|
|
268
268
|
export function launchArgs(req, config, mcp = [], bridgePath) {
|
|
269
|
-
|
|
269
|
+
// Before `runtimeArgs`, so this function owns every model error on its own
|
|
270
|
+
// rather than by its caller's discipline: `Muster.launch` happens to resolve
|
|
271
|
+
// first, but `launchArgs` is exported and an input carrying both a model
|
|
272
|
+
// conflict and a refused option must report the model conflict.
|
|
270
273
|
const resolved = resolveModel(req, config);
|
|
274
|
+
const extra = runtimeArgs(req);
|
|
271
275
|
// OpenCode never reaches here — `run.ts` branches it to the OpenCode launch
|
|
272
276
|
// builders, which carry the model in their config overlay.
|
|
273
277
|
const model = resolved ? ["--model", resolved.model] : [];
|
package/dist/run.js
CHANGED
|
@@ -540,6 +540,9 @@ export class Muster {
|
|
|
540
540
|
// `list` projects: a launch result and a listing must not
|
|
541
541
|
// disagree about which account this ran as.
|
|
542
542
|
...(identityName ? { identity: identityName } : {}),
|
|
543
|
+
// Same reason, for the same pair of records.
|
|
544
|
+
model: model?.model ?? null,
|
|
545
|
+
model_source: model?.source ?? null,
|
|
543
546
|
attach_hint: driver.attachHint(launched.hostRef),
|
|
544
547
|
};
|
|
545
548
|
if (req.open) {
|