price changes of existing products need --allow-price-changes (play products, play/apple subscriptions, prices import): --yes and flow run --apply --yes confirm creates, first prices and other updates only; without the flag the run writes the rest, names each held change and exits 3 (declined), dry runs mark them owner, flows refuse the flag; lib/price-gate.ts, tests/price-gate.test.ts. CLI wording: console fill leaves what it cannot open or fill to the calling agent's browser tool (console plan / verify) instead of 'yourself'; other 'by hand' output points at the config; do-it-dont-ask test scans cli/ output
This commit is contained in:
parent
b5b8f2da9d
commit
e01a27d7b7
33 changed files with 414 additions and 117 deletions
|
|
@ -60,7 +60,7 @@ export function upsertBlock(text: string, file: string, key: string, value: unkn
|
|||
return `${text.slice(0, m.index)}${ind}${key}: ${toTs(value, ind)}${text.slice(close + 1)}`;
|
||||
}
|
||||
const app = /^([ \t]*)app\s*:\s*\{/m.exec(text);
|
||||
if (!app) throw new Error(`${file}: no app block found to insert ${key} after; add it by hand`);
|
||||
if (!app) throw new Error(`${file}: no app block found to insert ${key} after; add it to the config file directly`);
|
||||
const ind = app[1]!;
|
||||
const close = matchBrace(text, app.index + app[0].length - 1);
|
||||
if (close < 0) throw new Error(`${file}: could not find the end of the app block`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue