@cleanslop/cli 0.1.2-beta.44 → 0.1.2

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 CHANGED
@@ -1,28 +1,20 @@
1
1
  # cleanslop CLI
2
2
 
3
- CLI for agentic CleanSlop, published as `@cleanslop/cli` (bin `cleanslop`). Releases go out under `latest` from `.github/workflows/cli-release.yml` on every `master` change to `cli/` (versions from `scripts/release-version.mjs`). The workflow stages the version with `npm stage publish`; a maintainer approves it under Staged Packages on npmjs.com. Do not `npm publish` by hand.
3
+ Readiness scans from your coding agent. The CLI starts a [CleanSlop](https://cleanslop.com) scan of your repo, waits for it, and hands the report back so the agent can fix what it finds. Published as `@cleanslop/cli` (bin `cleanslop`).
4
4
 
5
- ## Install / run
5
+ - Setup guide and FAQ: <https://cleanslop.com/agents>
6
+ - Agent guide (Markdown): <https://cleanslop.com/agents.md>
7
+ - Prefer MCP? Install the remote server: <https://cleanslop.com/mcp>
6
8
 
7
- ```bash
8
- # from npm (default origin https://cleanslop.com):
9
- npx -y @cleanslop/cli scan
10
-
11
- # from this repo after build:
12
- node cli/dist/index.js scan
13
- ```
14
-
15
- Requires Node 20 or later. **Zero runtime dependencies.** Link commands shell out to `link-cli` (`CLEANSLOP_LINK_CLI`, else `PATH`, else a pinned `npx @stripe/link-cli`); uploads pack with a built-in tar writer.
16
-
17
- ## Gate (run locally and in CI)
9
+ ## Quick start
18
10
 
19
11
  ```bash
20
- npm --prefix cli ci && npm --prefix cli test && npm --prefix cli run build
12
+ npx -y @cleanslop/cli scan
21
13
  ```
22
14
 
23
- Root shortcut: `npm run cli:ci`.
15
+ Run it from a git checkout whose `HEAD` is pushed to github.com. Then `npx -y @cleanslop/cli setup` installs the skill or rules for Claude Code, Cursor and Codex so your agent runs it for you.
24
16
 
25
- The app TypeScript / ESLint / coverage gates exclude `cli/` (`tsconfig.json`, `tsconfig.test.json`, `eslint.config.mjs` `globalIgnores`). Do not add `cli/` to the app include.
17
+ Requires Node 20 or later. **Zero runtime dependencies.** Link commands shell out to `link-cli` (`CLEANSLOP_LINK_CLI`, else `PATH`, else a pinned `npx @stripe/link-cli`); uploads pack with a built-in tar writer.
26
18
 
27
19
  ## Commands
28
20
 
@@ -59,7 +51,7 @@ Default is **user scope**:
59
51
 
60
52
  `--project` writes `.cursor/rules/cleanslop.mdc` and an `AGENTS.md` marker in the current repo. `--dry-run` / non-TTY without `--yes` only print the plan. `--uninstall` removes the marker blocks / owned files.
61
53
 
62
- Skill / Cursor rules / AGENTS snippet are generated from [`assets/skill-core.md`](./assets/skill-core.md). Remote MCP registration is **not** part of M4.
54
+ Skill / Cursor rules / AGENTS snippet are generated from [`assets/skill-core.md`](./assets/skill-core.md). Remote MCP is a separate install: see <https://cleanslop.com/mcp>.
63
55
 
64
56
  ## Credentials
65
57
 
@@ -85,6 +77,23 @@ Skill / Cursor rules / AGENTS snippet are generated from [`assets/skill-core.md`
85
77
 
86
78
  `CLEANSLOP_ACTION_REQUIRED` blocks go to stderr. Never open, approve, or pay. A block may end with a `CLEANSLOP_QUESTION:` JSON line (`id`, `header`, `question`, `options[]` with `value`, `label`, optional `description`, and `run` for the exact next command or `next` for a plain next step; neither means stop). Agents with a multiple-choice question tool (for example Claude Code's AskUserQuestion) should ask with it, using exactly those options, and never answer for the human. Consent questions never carry `--agree`.
87
79
 
88
- ## Tests
80
+ ## Development
81
+
82
+ Releases go out under `latest` from `.github/workflows/cli-release.yml` on every `master` change to `cli/` (versions from `scripts/release-version.mjs`). The workflow stages the version with `npm stage publish`; a maintainer approves it under Staged Packages on npmjs.com. Do not `npm publish` by hand.
83
+
84
+ From this repo after a build: `node cli/dist/index.js scan`.
85
+
86
+ ### Gate (run locally and in CI)
87
+
88
+ ```bash
89
+ npm --prefix cli ci && npm --prefix cli test && npm --prefix cli run build
90
+ ```
91
+
92
+ Root shortcut: `npm run cli:ci`.
93
+
94
+ The app TypeScript / ESLint / coverage gates exclude `cli/` (`tsconfig.json`, `tsconfig.test.json`, `eslint.config.mjs` `globalIgnores`). Do not add `cli/` to the app include.
95
+
96
+
97
+ ### Tests
89
98
 
90
99
  `cli/test` uses `node:test` + c8 against a fake HTTP server. Coverage floor is 90% lines/statements/functions (80% branches).
package/dist/config.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  export declare const PACKAGE_NAME = "@cleanslop/cli";
2
- export declare const PACKAGE_VERSION = "0.1.2-beta.44";
2
+ export declare const PACKAGE_VERSION = "0.1.2";
3
3
  export declare const CLIENT_ID = "cleanslop-cli";
4
4
  export declare const DEFAULT_ORIGIN = "https://cleanslop.com";
5
5
  export declare const DEFAULT_WAIT_MS: number;
6
6
  export declare const MIN_POLL_MS = 3000;
7
7
  export declare const LONGPOLL_MAX_SEC = 45;
8
8
  export declare const DEVICE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
9
- export declare const USER_AGENT = "cleanslop-cli/0.1.2-beta.44";
9
+ export declare const USER_AGENT = "cleanslop-cli/0.1.2";
10
10
  export declare const CREDENTIALS_FILE = "credentials.json";
11
11
  export declare const PENDING_LOGIN_FILE = "pending-login.json";
12
12
  export declare const PENDING_SPEND_FILE = "pending-spend-request.json";
package/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const PACKAGE_NAME = "@cleanslop/cli";
2
- export const PACKAGE_VERSION = "0.1.2-beta.44";
2
+ export const PACKAGE_VERSION = "0.1.2";
3
3
  export const CLIENT_ID = "cleanslop-cli";
4
4
  export const DEFAULT_ORIGIN = "https://cleanslop.com";
5
5
  export const DEFAULT_WAIT_MS = 8 * 60 * 1000;
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAC7C,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;AACzC,MAAM,C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AM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7B,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QACvE,IAAI,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACxE,IAAI,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,KAAK,GAAG;YAAE,OAAO,IAAI,CAAC;QACtD,OAAO,GAAG,GAAG,CAAC,QAAQ,KAAK,GAAG,CAAC,IAAI,EAAE,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleanslop/cli",
3
- "version": "0.1.2-beta.44",
3
+ "version": "0.1.2",
4
4
  "description": "CleanSlop CLI — readiness scans from your coding agent",
5
5
  "type": "module",
6
6
  "bin": {