@noir-ai/cli 1.16.0-beta.1 → 1.17.0-beta.1
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/README.md +1 -1
- package/dist/bin.js +14 -3
- package/dist/bin.js.map +1 -1
- package/dist/hygiene-scan.js +11 -1
- package/dist/hygiene-scan.js.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/tui/{chunk-6AUAIEFG.js → chunk-NZMM6YXE.js} +17 -6
- package/dist/tui/chunk-NZMM6YXE.js.map +1 -0
- package/dist/tui/{create-ZZN7XFLG.js → create-4XGNRRP7.js} +2 -2
- package/dist/tui/index.js +1 -1
- package/dist/tui/{sync-GHEPFPLX.js → sync-Q3KXM5RQ.js} +2 -2
- package/package.json +11 -11
- package/dist/tui/chunk-6AUAIEFG.js.map +0 -1
- /package/dist/tui/{create-ZZN7XFLG.js.map → create-4XGNRRP7.js.map} +0 -0
- /package/dist/tui/{sync-GHEPFPLX.js.map → sync-Q3KXM5RQ.js.map} +0 -0
|
@@ -1121,7 +1121,12 @@ import { resolveModelConfig } from "@noir-ai/model";
|
|
|
1121
1121
|
// src/hygiene-scan.ts
|
|
1122
1122
|
import { readdirSync as readdirSync2, readFileSync as readFileSync2, statSync } from "fs";
|
|
1123
1123
|
import { join } from "path";
|
|
1124
|
-
import {
|
|
1124
|
+
import {
|
|
1125
|
+
checkHygiene,
|
|
1126
|
+
hasHygieneExemption,
|
|
1127
|
+
humanizerFindings,
|
|
1128
|
+
slopFindings
|
|
1129
|
+
} from "@noir-ai/skills";
|
|
1125
1130
|
var HYGIENE_FINDING_CAP = 5;
|
|
1126
1131
|
var HYGIENE_MAX_FILE_BYTES = 512 * 1024;
|
|
1127
1132
|
var HYGIENE_MAX_FILES = 2e3;
|
|
@@ -1256,6 +1261,11 @@ function scanOutputHygiene(root) {
|
|
|
1256
1261
|
for (const found of checkHygiene(text, file.kind)) {
|
|
1257
1262
|
findings.push({ path: file.path, line: found.line, id: found.id, tier: found.tier });
|
|
1258
1263
|
}
|
|
1264
|
+
if (file.kind === "markdown" && !hasHygieneExemption(text, file.kind)) {
|
|
1265
|
+
for (const found of [...slopFindings(text), ...humanizerFindings(text)]) {
|
|
1266
|
+
findings.push({ path: file.path, line: found.line, id: found.id, tier: found.tier });
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1259
1269
|
} catch {
|
|
1260
1270
|
}
|
|
1261
1271
|
}
|
|
@@ -5691,12 +5701,13 @@ var CATEGORY = {
|
|
|
5691
5701
|
"noir-recall": "memory",
|
|
5692
5702
|
"noir-remember": "memory",
|
|
5693
5703
|
"noir-context": "context",
|
|
5694
|
-
"noir-frontend": "domain",
|
|
5695
5704
|
"noir-backend": "domain",
|
|
5705
|
+
"noir-design": "domain",
|
|
5706
|
+
"noir-design-reference": "domain",
|
|
5696
5707
|
"noir-doctor": "meta",
|
|
5697
5708
|
"noir-writing-skills": "meta",
|
|
5698
5709
|
"noir-rules": "meta",
|
|
5699
|
-
"noir-
|
|
5710
|
+
"noir-codebase-audit": "meta"
|
|
5700
5711
|
};
|
|
5701
5712
|
function categoryOf(name) {
|
|
5702
5713
|
const mapped = CATEGORY[name];
|
|
@@ -6081,7 +6092,7 @@ function createProgram() {
|
|
|
6081
6092
|
const force = opts.force === true;
|
|
6082
6093
|
const host = parseHost(opts.host);
|
|
6083
6094
|
const dryRun = opts.dryRun === true || opts.preview === true;
|
|
6084
|
-
const { create } = await import("./create-
|
|
6095
|
+
const { create } = await import("./create-4XGNRRP7.js");
|
|
6085
6096
|
const result = await create(dir, {
|
|
6086
6097
|
transport,
|
|
6087
6098
|
url: opts.url,
|
|
@@ -6120,7 +6131,7 @@ function createProgram() {
|
|
|
6120
6131
|
).choices(SUPPORTED_HOSTS2)
|
|
6121
6132
|
).action(
|
|
6122
6133
|
async (opts, cmd) => {
|
|
6123
|
-
const { sync } = await import("./sync-
|
|
6134
|
+
const { sync } = await import("./sync-Q3KXM5RQ.js");
|
|
6124
6135
|
const host = parseHost(opts.host);
|
|
6125
6136
|
const force = opts.force === true;
|
|
6126
6137
|
const merge = opts.merge === true;
|
|
@@ -7246,4 +7257,4 @@ export {
|
|
|
7246
7257
|
assertTransportUrl,
|
|
7247
7258
|
buildPaletteCommandsForTui
|
|
7248
7259
|
};
|
|
7249
|
-
//# sourceMappingURL=chunk-
|
|
7260
|
+
//# sourceMappingURL=chunk-NZMM6YXE.js.map
|