@cleanslop/cli 0.1.3 → 0.1.4-beta.49
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/LICENSE +21 -0
- package/README.md +17 -12
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/package.json +14 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CleanSlop
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npx -y @cleanslop/cli scan
|
|
|
14
14
|
|
|
15
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.
|
|
16
16
|
|
|
17
|
-
Requires Node
|
|
17
|
+
Requires Node 22 or later (Node 20 is end-of-life; npm warns there). **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.
|
|
18
18
|
|
|
19
19
|
## Commands
|
|
20
20
|
|
|
@@ -51,7 +51,7 @@ Default is **user scope**:
|
|
|
51
51
|
|
|
52
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.
|
|
53
53
|
|
|
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>.
|
|
54
|
+
Skill / Cursor rules / AGENTS snippet are generated from [`assets/skill-core.md`](./assets/skill-core.md), and so is the plugin's [`plugin/skills/cleanslop/SKILL.md`](./plugin/skills/cleanslop/SKILL.md) (`npm run plugin:skill`). Remote MCP is a separate install: see <https://cleanslop.com/mcp>.
|
|
55
55
|
|
|
56
56
|
## Credentials
|
|
57
57
|
|
|
@@ -77,23 +77,28 @@ Skill / Cursor rules / AGENTS snippet are generated from [`assets/skill-core.md`
|
|
|
77
77
|
|
|
78
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`.
|
|
79
79
|
|
|
80
|
-
##
|
|
80
|
+
## Claude Code plugin
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
This repository is also a Claude Code plugin marketplace. The plugin bundles the skill and the remote MCP server:
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
```text
|
|
85
|
+
/plugin marketplace add cleanslop/cli
|
|
86
|
+
/plugin install cleanslop@cleanslop
|
|
87
|
+
```
|
|
85
88
|
|
|
86
|
-
|
|
89
|
+
## Development
|
|
87
90
|
|
|
88
91
|
```bash
|
|
89
|
-
npm
|
|
92
|
+
npm ci
|
|
93
|
+
npm test
|
|
94
|
+
npm run build
|
|
95
|
+
node dist/index.js scan
|
|
90
96
|
```
|
|
91
97
|
|
|
92
|
-
|
|
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.
|
|
98
|
+
`test/` uses `node:test` and c8 against a fake HTTP server. The coverage floor is 90% for lines, statements and functions, and 80% for branches. `npm test` also checks that the tree names no upstream-only hosts or paths (`scripts/check-public.mjs`).
|
|
95
99
|
|
|
100
|
+
This repository is a read-only mirror of the CLI's upstream source; see [CONTRIBUTING.md](./CONTRIBUTING.md) for how pull requests land. Each sync to `main` stages the next patch release (`scripts/release-version.mjs`) with npm provenance, and a maintainer approves it under Staged Packages on npmjs.com. Do not `npm publish` by hand.
|
|
96
101
|
|
|
97
|
-
|
|
102
|
+
## License
|
|
98
103
|
|
|
99
|
-
|
|
104
|
+
[MIT](./LICENSE)
|
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
|
+
export declare const PACKAGE_VERSION = "0.1.4-beta.49";
|
|
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.
|
|
9
|
+
export declare const USER_AGENT = "cleanslop-cli/0.1.4-beta.49";
|
|
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
|
+
export const PACKAGE_VERSION = "0.1.4-beta.49";
|
|
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;
|
package/dist/config.js.map
CHANGED
|
@@ -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,
|
|
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,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC;AACtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;A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AC;IAC/C,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,IAAI,CAAC;QACH,MAAM,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,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleanslop/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4-beta.49",
|
|
4
4
|
"description": "CleanSlop CLI — readiness scans from your coding agent",
|
|
5
|
+
"homepage": "https://cleanslop.com/agents",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/cleanslop/cli.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/cleanslop/cli/issues"
|
|
12
|
+
},
|
|
5
13
|
"type": "module",
|
|
6
14
|
"bin": {
|
|
7
15
|
"cleanslop": "dist/index.js"
|
|
@@ -9,20 +17,22 @@
|
|
|
9
17
|
"files": [
|
|
10
18
|
"dist",
|
|
11
19
|
"assets",
|
|
12
|
-
"README.md"
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
13
22
|
],
|
|
14
23
|
"publishConfig": {
|
|
15
24
|
"access": "public"
|
|
16
25
|
},
|
|
17
26
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
27
|
+
"node": ">=22"
|
|
19
28
|
},
|
|
20
29
|
"scripts": {
|
|
21
30
|
"build": "tsc -p tsconfig.json",
|
|
22
31
|
"test": "c8 --config c8.config.json node --import tsx --test --test-reporter spec 'test/**/*.test.ts'",
|
|
32
|
+
"plugin:skill": "tsx scripts/render-plugin-skill.ts",
|
|
23
33
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
24
34
|
},
|
|
25
|
-
"license": "
|
|
35
|
+
"license": "MIT",
|
|
26
36
|
"devDependencies": {
|
|
27
37
|
"@types/node": "^20.19.25",
|
|
28
38
|
"c8": "^12.0.0",
|