@unsloplabs/cli 0.1.0 → 0.1.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 ADDED
@@ -0,0 +1,29 @@
1
+ <p><a href="https://unslop.software"><img src="https://unslop.software/favicon.svg" width="64" height="64" alt="Unslop"></a></p>
2
+
3
+ # @unsloplabs/cli
4
+
5
+ Find out what is wrong with an app made with an AI app builder, in plain English, and keep it fixed.
6
+
7
+ ```sh
8
+ npx @unsloplabs/cli scan .
9
+ ```
10
+
11
+ | Command | What it does |
12
+ | --- | --- |
13
+ | `unslop scan [dir]` | The Slop Report: one score, the top five issues, and the map behind them |
14
+ | `unslop check [dir]` | A gate for CI: exits 1 when a rule fires or cannot run |
15
+ | `unslop guidance [dir]` | The rules written for a coding agent, ready for `CLAUDE.md` (`--write` puts them there) |
16
+
17
+ `--json` gives output a machine can read (scan, check), `--md` gives Markdown (scan), `--all` shows every issue
18
+ rather than the top five (scan), and `--fail-on low|medium|high|critical` sets how bad an issue has to be to fail
19
+ the check. `unslop --help` lists them all.
20
+
21
+ The checker reads your code and never runs it. Rules for every repo, React, Supabase, Stripe and Lovable apps
22
+ come with it.
23
+
24
+ Want the free report without installing anything, or the app rebuilt so it stops breaking?
25
+ [unslop.software](https://unslop.software)
26
+
27
+ ## Licence
28
+
29
+ [PolyForm Internal Use 1.0.0](LICENSE.md): run the checker on your own code; do not distribute or sell it.
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@unsloplabs/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "`unslop scan`, `unslop check`, `unslop guidance`, and the Slop Report builder the hosted service reuses",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
7
+ "homepage": "https://unslop.software",
7
8
  "exports": {
8
9
  ".": {
9
10
  "@unslop/source": "./src/index.ts",
@@ -26,11 +27,11 @@
26
27
  },
27
28
  "dependencies": {
28
29
  "@unsloplabs/engine": "0.1.0",
29
- "@unsloplabs/platforms": "0.1.0",
30
- "@unsloplabs/rules-base": "0.1.0",
31
- "@unsloplabs/pricing": "0.1.0",
32
30
  "@unsloplabs/rules-react": "0.1.0",
31
+ "@unsloplabs/platforms": "0.1.0",
33
32
  "@unsloplabs/rules-lovable": "0.1.0",
33
+ "@unsloplabs/pricing": "0.1.0",
34
+ "@unsloplabs/rules-base": "0.1.0",
34
35
  "@unsloplabs/rules-stripe": "0.1.0",
35
36
  "@unsloplabs/rules-supabase": "0.1.0"
36
37
  },
@@ -1,13 +0,0 @@
1
- /**
2
- * The steps a hosted Slop Report goes through, in order. The service that makes a report names
3
- * only these, and the page that waits for it says something for each, so neither can add one alone.
4
- */
5
- export declare const REPORT_STAGES: readonly ["fetch", "scan", "review"];
6
- export type ReportStage = (typeof REPORT_STAGES)[number];
7
- export declare const isReportStage: (name: string | null | undefined) => name is ReportStage;
8
- /**
9
- * The gated stages of an Unslop, in the order they run. The factory runs exactly these, and the
10
- * order page has words for each: one list, so neither can add a stage the other does not know.
11
- */
12
- export declare const UNSLOP_STAGES: readonly ["lock", "secure", "modules", "types", "prove", "deliver"];
13
- export type UnslopStage = (typeof UNSLOP_STAGES)[number];
@@ -1,12 +0,0 @@
1
- /**
2
- * The steps a hosted Slop Report goes through, in order. The service that makes a report names
3
- * only these, and the page that waits for it says something for each, so neither can add one alone.
4
- */
5
- export const REPORT_STAGES = ['fetch', 'scan', 'review'];
6
- export const isReportStage = (name) => REPORT_STAGES.some((stage) => stage === name);
7
- /**
8
- * The gated stages of an Unslop, in the order they run. The factory runs exactly these, and the
9
- * order page has words for each: one list, so neither can add a stage the other does not know.
10
- */
11
- export const UNSLOP_STAGES = ['lock', 'secure', 'modules', 'types', 'prove', 'deliver'];
12
- //# sourceMappingURL=report-stages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"report-stages.js","sourceRoot":"","sources":["../src/report-stages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAGlE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAA+B,EAAuB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC;AAErI;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAU,CAAC"}