agent-quality-police 0.2.1 → 0.2.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-quality-police",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Strict governance framework for coding agents that blocks testing and typing bypasses.",
5
5
  "author": {
6
6
  "name": "Davy Massoneto",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-quality-police",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Strict governance framework for coding agents that blocks testing and typing bypasses.",
5
5
  "author": {
6
6
  "name": "Davy Massoneto",
package/bin/aqp.mjs CHANGED
@@ -6,6 +6,7 @@ import readline from "node:readline/promises";
6
6
  import { fileURLToPath } from "node:url";
7
7
 
8
8
  import { installGlobal, supportedTargets } from "../lib/install.mjs";
9
+ import { formatInstallResult } from "../lib/cli-output.mjs";
9
10
 
10
11
  function usage() {
11
12
  console.log(
@@ -52,16 +53,7 @@ function renderResult(result, useJson) {
52
53
  return;
53
54
  }
54
55
 
55
- console.log(`Backup: ${result.backupRoot}`);
56
- for (const entry of result.installed) {
57
- console.log(`${entry.action}: ${entry.relativeDestination}`);
58
- }
59
- if (result.manualSteps.length > 0) {
60
- console.log("Manual steps:");
61
- for (const step of result.manualSteps) {
62
- console.log(JSON.stringify(step, null, 2));
63
- }
64
- }
56
+ console.log(formatInstallResult(result));
65
57
  }
66
58
 
67
59
  async function main(argv) {
@@ -0,0 +1,34 @@
1
+ function renderInstalledEntry(entry) {
2
+ return `- [${entry.target}] ${entry.action}: ${entry.relativeDestination}`;
3
+ }
4
+
5
+ function renderManualStep(step) {
6
+ return [
7
+ `[${step.target}] ${step.kind}`,
8
+ `Destination: ${step.destination}`,
9
+ "Add this content:",
10
+ "```md",
11
+ step.snippet.trimEnd(),
12
+ "```"
13
+ ].join("\n");
14
+ }
15
+
16
+ export function formatInstallResult(result) {
17
+ const lines = [`Backup: ${result.backupRoot}`];
18
+
19
+ if (result.installed.length > 0) {
20
+ lines.push("", "Applied:");
21
+ for (const entry of result.installed) {
22
+ lines.push(renderInstalledEntry(entry));
23
+ }
24
+ }
25
+
26
+ if (result.manualSteps.length > 0) {
27
+ lines.push("", "Manual steps:");
28
+ for (const step of result.manualSteps) {
29
+ lines.push("", renderManualStep(step));
30
+ }
31
+ }
32
+
33
+ return lines.join("\n");
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-quality-police",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Strict governance framework for coding agents that blocks testing and typing bypasses.",
5
5
  "type": "module",
6
6
  "license": "MIT",