@cleanslop/cli 0.1.0-beta.30 → 0.1.0-beta.31
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/assets/skill-core.md +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -1
- package/dist/report-question.js +2 -1
- package/dist/report-question.js.map +1 -1
- package/package.json +1 -1
package/assets/skill-core.md
CHANGED
|
@@ -62,7 +62,7 @@ When `review` is `unavailable`, the findings are unreviewed first-pass results (
|
|
|
62
62
|
|
|
63
63
|
## Fix loop
|
|
64
64
|
|
|
65
|
-
A finished CLI report with `confirmed` or `needs_input` findings ends with a `fix_findings` question (Fix them / Show me first / Not now): ask it, and do not edit code before the human answers. Then fix by priority, run the repo’s tests, ask the human about `needs_input`, rescan **once** (the CLI asks whether to upload the local files or have the human push first), and compare the delta (`new` / `still_open` / `resolved` / `no_longer_listed`). `no_longer_listed` means the review stopped listing the finding — it is not a confirmed fix.
|
|
65
|
+
A finished CLI report with `confirmed` or `needs_input` findings ends with a `fix_findings` question (Fix them / Show me first / Not now). The human does not see the CLI output: first list the findings in your reply (severity, title and file for each confirmed and needs-input finding, plus each needs-input question), then ask it, and do not edit code before the human answers. Then fix by priority, run the repo’s tests, ask the human about `needs_input`, rescan **once** (the CLI asks whether to upload the local files or have the human push first), and compare the delta (`new` / `still_open` / `resolved` / `no_longer_listed`). `no_longer_listed` means the review stopped listing the finding — it is not a confirmed fix.
|
|
66
66
|
|
|
67
67
|
## Stop conditions
|
|
68
68
|
|
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.0-beta.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.1.0-beta.31";
|
|
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.0-beta.
|
|
9
|
+
export declare const USER_AGENT = "cleanslop-cli/0.1.0-beta.31";
|
|
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.0-beta.
|
|
2
|
+
export const PACKAGE_VERSION = "0.1.0-beta.31";
|
|
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/report-question.js
CHANGED
|
@@ -69,7 +69,8 @@ export function writeReport(deps, markdown) {
|
|
|
69
69
|
deps.io.stderr(`${[
|
|
70
70
|
"CLEANSLOP_ACTION_REQUIRED: fix_findings",
|
|
71
71
|
"",
|
|
72
|
-
|
|
72
|
+
// The human does not see tool output, so the agent must show the findings itself.
|
|
73
|
+
"The human cannot see the report above. First show them the findings in your reply: for each confirmed and needs-input finding, its severity, title and file, plus each needs-input finding's question. Only then ask this question. Do not edit code before they answer.",
|
|
73
74
|
"",
|
|
74
75
|
...questionLines(question),
|
|
75
76
|
].join("\n")}\n`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-question.js","sourceRoot":"","sources":["../src/report-question.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAA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