chill-agent 1.8.0 → 1.8.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.
@@ -18,7 +18,7 @@ const lines = (p) => read(p).split(/\r?\n/)
18
18
 
19
19
  const SKILLS = fs
20
20
  .readdirSync(path.join(root, 'skills'), { withFileTypes: true })
21
- .filter((e) => e.isDirectory())
21
+ .filter((e) => e.isDirectory() && e.name.startsWith('antislop'))
22
22
  .map((e) => `skills/${e.name}/SKILL.md`)
23
23
 
24
24
  const MANIFESTS = [
@@ -123,32 +123,20 @@ function versions() {
123
123
  return null
124
124
  }
125
125
  }
126
- const want = json('cli/package.json')?.version
127
- if (!want) return ['cli/package.json has no readable version']
126
+ const want = json('package.json')?.version
127
+ if (!want) return ['package.json has no readable version']
128
128
 
129
129
  const found = [
130
- // The lock file carries the version twice, and npm ci will not correct a stale one.
131
- ['cli/package-lock.json', json('cli/package-lock.json')?.version],
132
- ['cli/package-lock.json (packages "")', json('cli/package-lock.json')?.packages?.['']?.version],
133
- // The Cline plugin manifest and, from v3.2.17, the Pi package. Same release.
134
130
  ['package.json', json('package.json')?.version],
135
131
  ['.claude-plugin/plugin.json', json('.claude-plugin/plugin.json')?.version],
136
- ['.claude-plugin/marketplace.json', json('.claude-plugin/marketplace.json')?.plugins?.[0]?.version],
137
132
  ['.codex-plugin/plugin.json', json('.codex-plugin/plugin.json')?.version],
138
133
  ['.cursor-plugin/plugin.json', json('.cursor-plugin/plugin.json')?.version],
139
- ['.omp-plugin/marketplace.json', json('.omp-plugin/marketplace.json')?.plugins?.[0]?.version],
140
134
  ['.kimi-plugin/plugin.json', json('.kimi-plugin/plugin.json')?.version],
141
- // Stamped into every install, so a stale one makes the installer misreport what is on disk.
142
- ['skills/antislop/VERSION', read('skills/antislop/VERSION').trim()],
143
- ['cli/lib/banner.mjs', read('cli/lib/banner.mjs').match(/installer v(\d+\.\d+\.\d+)/)?.[1]],
144
- ['skills/antislop-human/contrast-mcp.py', read('skills/antislop-human/contrast-mcp.py').match(/SERVER_VERSION = "(\d+\.\d+\.\d+)"/)?.[1]],
145
- // The contributors image is cached per URL, so a changed version is what makes it redraw.
146
- ['README.md (contributors image)', read('README.md').match(/contrib\.rocks\/image\?repo=[^"'&\s]+&v=(\d+\.\d+\.\d+)/)?.[1]],
147
135
  ]
148
136
 
149
137
  return found
150
138
  .filter(([, got]) => got !== want)
151
- .map(([file, got]) => `${file} says ${got ?? 'nothing'}, cli/package.json says ${want}`)
139
+ .map(([file, got]) => `${file} says ${got ?? 'nothing'}, package.json says ${want}`)
152
140
  }
153
141
 
154
142
  /** A manifest that does not parse takes its whole install path down. */
@@ -42,7 +42,7 @@ const HEAD = '| What it covers | The patterns it names |\n|----------------|----
42
42
  export function buildIndex() {
43
43
  const names = fs
44
44
  .readdirSync(path.join(root, 'skills'), { withFileTypes: true })
45
- .filter((e) => e.isDirectory())
45
+ .filter((e) => e.isDirectory() && e.name.startsWith('antislop'))
46
46
  .map((e) => e.name)
47
47
 
48
48
  const unlisted = names.filter((n) => !NOTES[n])
package/src/cli.js CHANGED
@@ -13,24 +13,14 @@ export async function runCli() {
13
13
  const rawArgs = process.argv.slice(2);
14
14
  const command = rawArgs[0] || 'wizard';
15
15
 
16
- if (command === 'mode' || rawArgs.includes('--mode')) {
17
- const modeArgs = command === 'mode' ? rawArgs.slice(1) : rawArgs.slice(rawArgs.indexOf('--mode') + 1);
18
- try {
19
- console.log(configureMode(modeArgs));
20
- } catch (err) {
21
- console.error(`antislop: ${err.message}`);
22
- process.exit(1);
23
- }
24
- return;
25
- }
26
-
27
- if (command === 'help' || command === '--help' || command === '-h') {
16
+ if (command === 'help' || rawArgs.includes('--help') || rawArgs.includes('-h')) {
28
17
  banner();
29
18
  console.log(`
30
19
  ${c.bold}USAGE:${c.reset}
31
20
  npx chill-agent Launch interactive setup wizard
32
21
  npx chill-agent install [--all] [--agent <name>] Install anti-slop skills non-interactively
33
22
  npx chill-agent audit [dir] [--fix] [--report] [--all-pages] Scan & audit all pages for AI slop
23
+ npx chill-agent mode [during|after|ask] Configure global anti-slop usage mode
34
24
  npx chill-agent init-design [preset] Generate a high-craft DESIGN.md specification
35
25
  npx chill-agent doctor Inspect detected coding agents and rule health
36
26
  npx chill-agent rewind [subcommand] Run deterministic time-travel debugger & proxy
@@ -45,6 +35,17 @@ ${c.bold}PRESETS FOR init-design:${c.reset}
45
35
  return;
46
36
  }
47
37
 
38
+ if (command === 'mode' || rawArgs.includes('--mode')) {
39
+ const modeArgs = command === 'mode' ? rawArgs.slice(1) : rawArgs.slice(rawArgs.indexOf('--mode') + 1);
40
+ try {
41
+ console.log(configureMode(modeArgs));
42
+ } catch (err) {
43
+ console.error(`antislop: ${err.message}`);
44
+ process.exit(1);
45
+ }
46
+ return;
47
+ }
48
+
48
49
  if (command === 'doctor') {
49
50
  banner();
50
51
  console.log(`${c.bold}ChillAgent Environment Diagnostics${c.reset}\n`);