@agjs/tsforge 0.1.1 → 0.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agjs/tsforge",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "license": "MIT",
6
6
  "description": "TypeScript coding harness with a deterministic gate, stack-aware guardrails, and stream-level correction.",
7
7
  "repository": {
@@ -447,6 +447,14 @@ async function ensureFile(
447
447
  }
448
448
  }
449
449
 
450
+ /** The bundled `prettier --write` command. Prepended to the EVAL gate so the
451
+ * model's output is auto-formatted before the strict checks run — the model
452
+ * never burns turns hand-formatting, and the committed code is prettier-clean.
453
+ * Uses tsforge's own prettier so it works in a target with no prettier installed. */
454
+ export function prettierWriteCommand(): string {
455
+ return `"${PRETTIER_BIN}" --write .`;
456
+ }
457
+
450
458
  export async function buildGate(
451
459
  cwd: string,
452
460
  packs?: readonly string[],