@heyramzi/lint 2.5.0 → 2.6.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 +58 -0
- package/bin/heyramzi-repo-rules.js +5 -0
- package/bin/heyramzi-slop.js +35 -9
- package/data/jev-bench.js +8 -0
- package/data/slop/shapes-framing.js +7 -0
- package/jev-code.js +2 -1
- package/jev-core.d.ts +104 -0
- package/jev-core.js +372 -0
- package/jev.js +74 -285
- package/package.json +8 -1
- package/register.d.ts +20 -1
- package/register.js +55 -17
- package/repo-rules/imports.js +88 -0
- package/repo-rules/tree.js +15 -4
- package/repo-rules.js +2 -0
- package/scripts/jev-bench.mjs +2 -1
- package/scripts/reddit-bench-flag.mjs +62 -0
- package/scripts/reddit-bench-harvest.mjs +308 -0
- package/scripts/reddit-bench.mjs +126 -0
- package/slop.d.ts +6 -1
- package/slop.js +4 -2
package/README.md
CHANGED
|
@@ -305,11 +305,69 @@ failure says what to do instead. It reads the staged blob, so it judges what the
|
|
|
305
305
|
scripts, the `fallow` reference in `vibekit.json`, no tracked `.fallow/*.bin`), an
|
|
306
306
|
`.oxlintrc.json` that doesn't extend the shared base, and a `lint` block in `vite.config`.
|
|
307
307
|
- **Compose:** an `image:` that's `:latest` or untagged, unless the service builds it.
|
|
308
|
+
- **Untracked imports:** a staged code file whose relative or `#alias` import resolves to a file
|
|
309
|
+
that's on disk but not in the commit and not ignored. `@heyramzi/ui` 2.15.0 shipped that way
|
|
310
|
+
without `lib/motion.ts`.
|
|
308
311
|
- **Fossil names:** an added path named `-old`, `-v2`, `-final` or `copy`, or under `misc/` or
|
|
309
312
|
`temp/`.
|
|
310
313
|
|
|
311
314
|
No allowlist, no config.
|
|
312
315
|
|
|
316
|
+
### Slop Gate and Jev
|
|
317
|
+
|
|
318
|
+
`heyramzi-slop <file|dir|->` runs the exact patterns, and `--register=<name>` adds the rates of a
|
|
319
|
+
voice. `--jev` also asks TypeSafe Jev (`jev.js`) to score each sentence and paragraph against the
|
|
320
|
+
humanizer shapes. Those scores are a report unless `--shape-block=<0.6-1>` names a bar. Jev reads
|
|
321
|
+
`JEV_BASE_URL` and `JEV_API_KEY` from the env, else Proton Pass (Dev vault, item `AI endpoints`).
|
|
322
|
+
A base ending in `/ai/run` is Cloudflare Workers AI, which also reads `JEV_GATEWAY_ID`.
|
|
323
|
+
|
|
324
|
+
`--register=forum` is the Reddit gate, and `reddit lint` in upsys/app runs it. It's built from the
|
|
325
|
+
Reddit bench below, because the humanizer checks refused 151 of 157 human replies there:
|
|
326
|
+
|
|
327
|
+
- **AI signals** (`register.js`): no I, hedge or question; short even sentences; orders to the
|
|
328
|
+
reader; chopped into short paragraphs; no question or aside. Three or more of the 5 fails a reply
|
|
329
|
+
of 25 words or more. `aiSignalNames(text)` lists them.
|
|
330
|
+
- **Menu paths**: a written-out "System Settings > Keyboard > Text Replacements" fails.
|
|
331
|
+
- **Ramzi's two rules**: no em or en dash, and no single block over 95 words.
|
|
332
|
+
- **Jev** asks whole-reply questions in place of the sentence shapes, and refuses at 0.75:
|
|
333
|
+
`FORUM_SHAPES` always, and `FORUM_THREAD_SHAPES` (a looked-up tool the post never mentioned,
|
|
334
|
+
refused at its own 0.7) when `--thread=<post.md>` passes the post's title and body. The forum
|
|
335
|
+
register always asks Jev, and when Jev can't answer the reply fails with `jev unscored`. A reply
|
|
336
|
+
under 25 words asks Jev nothing.
|
|
337
|
+
|
|
338
|
+
`jev-core.js` (`@heyramzi/lint/jev-core`) is the same Jev pass with no Node import, for a Worker:
|
|
339
|
+
`auditShapesWith(text, { post: jevPost({ baseUrl, key, gatewayId }), block: FAIL, register: "forum", thread })`.
|
|
340
|
+
`jev.js` wraps it for Node with the env, Proton Pass and a disk cache.
|
|
341
|
+
|
|
342
|
+
#### The Reddit bench
|
|
343
|
+
|
|
344
|
+
`data/reddit-bench.json` holds u/heyramzi comments that went badly (`bad: true`) and the top human
|
|
345
|
+
replies in the same threads (`bad: false`). A comment is bad when it was reported (`reported`, by
|
|
346
|
+
id), removed (a mod-team, AutoModerator or BotBouncer notice, or the app's removal record), scored
|
|
347
|
+
0 or less, sits in a sub that banned us or that the app marked cold, or was posted on a day in
|
|
348
|
+
`badDays`, or Ramzi read it and called it AI (`flagged: true`). A row, once bad, stays bad. Each
|
|
349
|
+
thread's title and body sit in `threadText`. The file stays out of the npm tarball.
|
|
350
|
+
|
|
351
|
+
- `node packages/lint/scripts/reddit-bench-flag.mjs --file <reply.md> --note "<his words>"
|
|
352
|
+
[--thread <id or URL>] [--sub <sub>]` (from vibe-kit) files his verdict on a reply, posted or not.
|
|
353
|
+
Run it the moment he calls a draft AI; the next harvest reads the thread.
|
|
354
|
+
|
|
355
|
+
- `node scripts/reddit-bench.mjs` runs the CLI exactly as `reddit lint` does on every row. It prints
|
|
356
|
+
bad comments caught, Ramzi-flagged replies caught, humans refused, and which check caught what. It exits 1 when a bad comment outside `knownMisses` passes, or more than 17% of humans are
|
|
357
|
+
refused. After a gate change you've reviewed, `--accept` writes today's misses to `knownMisses`.
|
|
358
|
+
- `scripts/reddit-bench-harvest.mjs` pulls new bad comments and fresh human replies through the
|
|
359
|
+
logged-in Orca tab, one read every 6 seconds, writes them to the bench, then runs the bench and
|
|
360
|
+
exits with its code:
|
|
361
|
+
|
|
362
|
+
```sh
|
|
363
|
+
cd ~/Studio/vibe-kit && bun ./CLIs/scripts/secrets.mjs run --mode development \
|
|
364
|
+
--file 'CLIs/.env' --shell "bun packages/lint/scripts/reddit-bench-harvest.mjs"
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
`--no-bench` stops after the harvest. A new report from a mod or a bot: add the comment id to
|
|
368
|
+
`reported`, then run it. When it fails, change the AI signals or `FORUM_SHAPES` against the whole
|
|
369
|
+
bench, never the one comment, and keep the false positive rate under the bar.
|
|
370
|
+
|
|
313
371
|
### Commit Message Gate
|
|
314
372
|
|
|
315
373
|
`heyramzi-commit-msg <file>` is a `commit-msg` hook. It refuses an em or en dash anywhere in the
|
|
@@ -23,10 +23,15 @@ const git = (args) =>
|
|
|
23
23
|
const all = process.argv.includes("--all");
|
|
24
24
|
|
|
25
25
|
const tracked = git(["ls-files", "-z"]).toString("utf8").split("\0").filter(Boolean);
|
|
26
|
+
const untracked = git(["ls-files", "--others", "--exclude-standard", "-z"])
|
|
27
|
+
.toString("utf8")
|
|
28
|
+
.split("\0")
|
|
29
|
+
.filter(Boolean);
|
|
26
30
|
const changes = all ? { touched: tracked, added: tracked } : staged();
|
|
27
31
|
const tree = createTree({
|
|
28
32
|
...changes,
|
|
29
33
|
tracked,
|
|
34
|
+
untracked,
|
|
30
35
|
read: all ? readWorking : readStaged,
|
|
31
36
|
readBefore: all ? undefined : readHead,
|
|
32
37
|
});
|
package/bin/heyramzi-slop.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
50
|
/*
|
|
51
|
-
* With the model unreachable the exact patterns still run, stderr says the model check didn't, and the exit code is theirs.
|
|
51
|
+
* With the model unreachable the exact patterns still run, stderr says the model check didn't, and the exit code is theirs. `--register=forum` is the exception: it always asks Jev and fails when Jev can't answer.
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
import { readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -56,7 +56,8 @@ import { join } from "node:path";
|
|
|
56
56
|
import { shapes } from "#lint/data/slop-words.js";
|
|
57
57
|
import { patterns } from "#lint/data/slop/patterns.js";
|
|
58
58
|
import { titleTells } from "#lint/data/slop/title-tells.js";
|
|
59
|
-
import {
|
|
59
|
+
import { FAIL, REVIEW, isUnavailable, proseOf } from "#lint/jev-core.js";
|
|
60
|
+
import { auditShapes, jevKey as readJevKey } from "#lint/jev.js";
|
|
60
61
|
import { slopGate } from "#lint/slop.js";
|
|
61
62
|
|
|
62
63
|
// =========================
|
|
@@ -149,7 +150,7 @@ async function modelShapes(file, raw) {
|
|
|
149
150
|
try {
|
|
150
151
|
jevKey ??= readJevKey();
|
|
151
152
|
const text = /\.(html?|svelte|vue)$/i.test(file) ? proseOf(raw) : raw;
|
|
152
|
-
return await auditShapes(text, { key: jevKey, block: shapeBlock });
|
|
153
|
+
return await auditShapes(text, { key: jevKey, block: shapeBlock, register, thread });
|
|
153
154
|
} catch (err) {
|
|
154
155
|
if (!isUnavailable(err)) throw err;
|
|
155
156
|
jevDown = err.message;
|
|
@@ -187,7 +188,7 @@ const paths = args.filter((a) => !a.startsWith("--"));
|
|
|
187
188
|
|
|
188
189
|
if (paths.length === 0) {
|
|
189
190
|
process.stderr.write(
|
|
190
|
-
"usage: heyramzi-slop <file|dir|-> [more...] [--fix] [--json] [--jev [--shape-block=0.6-1]] [--quiet] [--register=spoken|shorts|written|forum] [--only=kind|id,...]\n",
|
|
191
|
+
"usage: heyramzi-slop <file|dir|-> [more...] [--fix] [--json] [--jev [--shape-block=0.6-1]] [--quiet] [--register=spoken|shorts|written|forum [--thread=post.md]] [--only=kind|id,...]\n",
|
|
191
192
|
);
|
|
192
193
|
process.exit(2);
|
|
193
194
|
}
|
|
@@ -211,12 +212,27 @@ if (onlyFlag && !onlyFlag.includes("=")) {
|
|
|
211
212
|
}
|
|
212
213
|
const only = onlyFlag ? new Set(onlyFlag.split("=")[1].split(",").filter(Boolean)) : null;
|
|
213
214
|
|
|
215
|
+
// The reply BotBouncer reported on 30 Oct 2026 passed every exact pattern. So forum always asks
|
|
216
|
+
// Jev, refuses at FAIL, and fails a reply Jev couldn't score.
|
|
217
|
+
const forum = register === "forum";
|
|
218
|
+
|
|
219
|
+
// `--thread=<file>` is the post's title and body. Without it, FORUM_THREAD_SHAPES isn't asked.
|
|
220
|
+
const threadFlag = args.find((a) => a.startsWith("--thread"));
|
|
221
|
+
if (threadFlag && (!threadFlag.includes("=") || !forum)) {
|
|
222
|
+
process.stderr.write("--thread takes a file and needs --register=forum: --thread=post.md\n");
|
|
223
|
+
process.exit(2);
|
|
224
|
+
}
|
|
225
|
+
const thread = threadFlag
|
|
226
|
+
? readFileSync(threadFlag.split("=").slice(1).join("="), "utf8")
|
|
227
|
+
: undefined;
|
|
228
|
+
const askJev = flags.has("--jev") || forum;
|
|
229
|
+
|
|
214
230
|
// The opt-in bar. Below REVIEW would promise to block scores the model check never keeps.
|
|
215
231
|
const blockFlag = args.find((a) => a.startsWith("--shape-block"));
|
|
216
|
-
let shapeBlock = Infinity;
|
|
232
|
+
let shapeBlock = forum ? FAIL : Infinity;
|
|
217
233
|
if (blockFlag) {
|
|
218
234
|
shapeBlock = blockFlag.includes("=") ? Number(blockFlag.split("=")[1]) : Number.NaN;
|
|
219
|
-
if (!(shapeBlock >= REVIEW && shapeBlock <= 1) || !
|
|
235
|
+
if (!(shapeBlock >= REVIEW && shapeBlock <= 1) || !askJev) {
|
|
220
236
|
process.stderr.write(
|
|
221
237
|
`--shape-block takes a score from ${REVIEW} to 1 and needs --jev: --jev --shape-block=0.85\n`,
|
|
222
238
|
);
|
|
@@ -238,7 +254,7 @@ for (const file of files) {
|
|
|
238
254
|
result.review = [];
|
|
239
255
|
result.ok = result.findings.length === 0;
|
|
240
256
|
}
|
|
241
|
-
if (
|
|
257
|
+
if (askJev && !jevDown) {
|
|
242
258
|
const found = await modelShapes(file, raw);
|
|
243
259
|
if (found) {
|
|
244
260
|
result.findings.push(...found.findings);
|
|
@@ -246,7 +262,15 @@ for (const file of files) {
|
|
|
246
262
|
result.ok = result.ok && found.findings.length === 0;
|
|
247
263
|
}
|
|
248
264
|
}
|
|
249
|
-
if (
|
|
265
|
+
if (askJev) result.jev = jevDown ? { ran: false, reason: jevDown } : { ran: true };
|
|
266
|
+
if (forum && jevDown) {
|
|
267
|
+
result.findings.push({
|
|
268
|
+
kind: "jev",
|
|
269
|
+
id: "unscored",
|
|
270
|
+
detail: `a forum reply needs Jev: ${jevDown}`,
|
|
271
|
+
});
|
|
272
|
+
result.ok = false;
|
|
273
|
+
}
|
|
250
274
|
results.push({ file, raw, result });
|
|
251
275
|
|
|
252
276
|
if (flags.has("--fix") && result.removed.length > 0) {
|
|
@@ -279,7 +303,9 @@ const ok = results.every((r) => r.result.ok) && !ledger;
|
|
|
279
303
|
// Said on stderr in every mode, so a quiet or JSON run never reads as a full pass.
|
|
280
304
|
if (jevDown)
|
|
281
305
|
process.stderr.write(
|
|
282
|
-
|
|
306
|
+
forum
|
|
307
|
+
? `model check did not run: ${jevDown}. A forum reply fails without it.\n`
|
|
308
|
+
: `model check did not run: ${jevDown}. Exact patterns only; the exit code is theirs alone.\n`,
|
|
283
309
|
);
|
|
284
310
|
|
|
285
311
|
if (flags.has("--json")) {
|
package/data/jev-bench.js
CHANGED
|
@@ -93,6 +93,14 @@ export const SENTENCES = [
|
|
|
93
93
|
{ shape: null, text: "Does Friday at 10am still work for you and your accountant?" },
|
|
94
94
|
{ shape: null, text: "Thanks for sending the floor plan so fast." },
|
|
95
95
|
{ shape: null, text: "We'd love to have you at the tasting next week." },
|
|
96
|
+
{
|
|
97
|
+
shape: "reassurance",
|
|
98
|
+
text: "Every photo of the bread here is my own loaf, straight from my oven.",
|
|
99
|
+
},
|
|
100
|
+
{ shape: "reassurance", text: "The payroll numbers below are real, nothing rounded up." },
|
|
101
|
+
{ shape: "reassurance", text: "These are real reviews from real gym members, no paid ones." },
|
|
102
|
+
{ shape: null, text: "I own the bakery that sells this flour." },
|
|
103
|
+
{ shape: null, text: "The supplier sent me the mixer for free to review." },
|
|
96
104
|
];
|
|
97
105
|
|
|
98
106
|
export const PARAGRAPHS = [
|
|
@@ -56,6 +56,13 @@ export const shapesFraming = [
|
|
|
56
56
|
example:
|
|
57
57
|
'"If you are coming from traditional automation: instead of registering handlers, you describe conditions." / "The rule is simple: write it down." / "Here is the tradeoff: speed against accuracy."',
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
id: "unprompted-reassurance",
|
|
61
|
+
name: "Unprompted reassurance",
|
|
62
|
+
rule: 'A sentence whose only job is to fend off a suspicion nobody has raised: that the content is fake, staged, mocked up, written by AI, sponsored, edited or dishonest. It reads as a bot pre-empting the exact accusation, so it plants the doubt it was meant to settle. Ramzi, 2 Nov 2026, on a Reddit launch post that said every screen in the video was the real app: "saying this is so stupid in the 1st place because it sounds AI generated", and "They focus on details instead of looking at the big picture of things." Cut the sentence, or show the proof instead of asserting it: a link to the build, the changelog, a release count the reader can check. A disclosure the venue asks for ("I\'m the developer", "they sent me a review unit") states a relationship and stays. Jev judges it as `reassurance`. Not in `patterns` because the same words are literal elsewhere: "the designer sent no mockups" and "no fluff in the sauce" describe a thing, not the writing.',
|
|
63
|
+
example:
|
|
64
|
+
'"Everything in the video is the real app, no mockups." / "This isn\'t an ad, I just love it." / "100% real footage." / "Real numbers, no cherry-picking." / "Screenshots are unedited, I promise." / "No fluff, just what worked."',
|
|
65
|
+
},
|
|
59
66
|
{
|
|
60
67
|
id: "abstract-metaphor-noun",
|
|
61
68
|
name: "Abstract metaphor noun",
|
package/jev-code.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Coding guidelines as tiny Jev questions, judged on the edited code alone after each edit.
|
|
3
3
|
* Only rules a reader can settle from the snippet, no repo context. Bench: scripts/jev-code-bench.mjs.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { q } from "#lint/jev-core.js";
|
|
6
|
+
import { JEV_OFF, jevKey, judge } from "#lint/jev.js";
|
|
6
7
|
|
|
7
8
|
// =========================
|
|
8
9
|
// CONSTANTS
|
package/jev-core.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** One Jev yes/no question, scored 0 to 1 as the chance the answer is yes. */
|
|
2
|
+
export type JevQuestion = {
|
|
3
|
+
type: "noul";
|
|
4
|
+
instructions: string;
|
|
5
|
+
criteria: { true: string; false: string };
|
|
6
|
+
/** A bar of its own, below the caller's `block`. Never sent to Jev. */
|
|
7
|
+
bar?: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/** What a caller's `post` sends to Jev: items keyed `i<n>`, questions keyed `i<n>_<shape>`. */
|
|
11
|
+
export type JevRequest = {
|
|
12
|
+
state: Record<string, Record<string, string>>;
|
|
13
|
+
questions: Record<string, JevQuestion>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** Jev's `answers`, keyed like the questions. `post` returns this object, unwrapped from any envelope. */
|
|
17
|
+
export type JevAnswers = Record<string, { noul?: number }>;
|
|
18
|
+
|
|
19
|
+
/** Sends one request to Jev. Throw `unavailable(message)` when it can't answer. */
|
|
20
|
+
export type JevPost = (request: JevRequest) => Promise<JevAnswers>;
|
|
21
|
+
|
|
22
|
+
/** Optional score store: `read` returns earlier worst scores or undefined, `write` keeps them. */
|
|
23
|
+
export type JevCache = {
|
|
24
|
+
read: (
|
|
25
|
+
item: Record<string, string>,
|
|
26
|
+
field: string,
|
|
27
|
+
shapes: Record<string, JevQuestion>,
|
|
28
|
+
) => Record<string, number> | undefined;
|
|
29
|
+
write: (
|
|
30
|
+
item: Record<string, string>,
|
|
31
|
+
field: string,
|
|
32
|
+
shapes: Record<string, JevQuestion>,
|
|
33
|
+
scores: Record<string, number>,
|
|
34
|
+
) => void;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type ShapeHit = { p: number; kind: "shape"; id: string; detail: string };
|
|
38
|
+
export type ShapeResult = { findings: ShapeHit[]; review: ShapeHit[] };
|
|
39
|
+
|
|
40
|
+
/** Jev's moving id on TypeSafe-compatible gateways, and on Cloudflare Workers AI. */
|
|
41
|
+
export const MODEL: "typesafe-ai/jev";
|
|
42
|
+
export const CLOUDFLARE_MODEL: "typesafe/jev";
|
|
43
|
+
|
|
44
|
+
/** A base URL ending in `/ai/run` is Cloudflare; anything else gets `/v1/systemone`. */
|
|
45
|
+
export function jevRoute(baseUrl: string): { url: string; model: string; cloudflare: boolean };
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A `JevPost` over fetch for any runtime, a Worker included. `gatewayId` is the Cloudflare AI
|
|
49
|
+
* Gateway id; `fetch` defaults to the global one. Retries a 429 or 5xx 4 times, then throws.
|
|
50
|
+
*/
|
|
51
|
+
export function jevPost(options: {
|
|
52
|
+
baseUrl: string;
|
|
53
|
+
key: string;
|
|
54
|
+
gatewayId?: string;
|
|
55
|
+
fetch?: typeof fetch;
|
|
56
|
+
}): JevPost;
|
|
57
|
+
|
|
58
|
+
/** The bar a gate refuses at, and the floor a score is reported from. */
|
|
59
|
+
export const FAIL: 0.75;
|
|
60
|
+
export const REVIEW: 0.6;
|
|
61
|
+
/** A forum reply shorter than this gets no whole-reply questions. */
|
|
62
|
+
export const FORUM_MIN_WORDS: number;
|
|
63
|
+
|
|
64
|
+
export function q(instructions: string, yes: string, no: string): JevQuestion;
|
|
65
|
+
|
|
66
|
+
/** Asked of every sentence (`sentence`, with its paragraph as `context`). */
|
|
67
|
+
export const SHAPES: Record<string, JevQuestion>;
|
|
68
|
+
/** Asked of every paragraph of 3 sentences or more (`paragraph`). */
|
|
69
|
+
export const PARAGRAPH_SHAPES: Record<string, JevQuestion>;
|
|
70
|
+
/** Asked once of a whole forum reply (`reply`) under `register: "forum"`, in place of the other two. */
|
|
71
|
+
export const FORUM_SHAPES: Record<string, JevQuestion>;
|
|
72
|
+
/** Asked of a forum reply beside its thread (`reply`, `thread`), only when `thread` is passed. */
|
|
73
|
+
export const FORUM_THREAD_SHAPES: Record<string, JevQuestion>;
|
|
74
|
+
|
|
75
|
+
export function sentences(text: string): { sentence: string; context: string }[];
|
|
76
|
+
export function paragraphs(text: string): { paragraph: string }[];
|
|
77
|
+
export function replies(text: string, thread?: string): { reply: string; thread?: string }[];
|
|
78
|
+
export function proseOf(html: string): string;
|
|
79
|
+
|
|
80
|
+
export function unavailable(message: string): Error;
|
|
81
|
+
export function isUnavailable(err: unknown): boolean;
|
|
82
|
+
|
|
83
|
+
export function judgeWith(
|
|
84
|
+
items: Record<string, string>[],
|
|
85
|
+
shapes: Record<string, JevQuestion>,
|
|
86
|
+
field: string,
|
|
87
|
+
options: { post: JevPost; cache?: JevCache; block?: number },
|
|
88
|
+
): Promise<ShapeResult>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The CLI's Jev pass with your transport. `block: FAIL` and `register: "forum"` is the Reddit gate;
|
|
92
|
+
* a finding means refuse. `thread` is the post's title and body: pass it, or the forum pass skips
|
|
93
|
+
* FORUM_THREAD_SHAPES. Throws when `post` throws.
|
|
94
|
+
*/
|
|
95
|
+
export function auditShapesWith(
|
|
96
|
+
text: string,
|
|
97
|
+
options: {
|
|
98
|
+
post: JevPost;
|
|
99
|
+
cache?: JevCache;
|
|
100
|
+
block?: number;
|
|
101
|
+
register?: string;
|
|
102
|
+
thread?: string;
|
|
103
|
+
},
|
|
104
|
+
): Promise<ShapeResult>;
|