@compilr-dev/cli 0.6.1 → 0.6.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/README.md +12 -0
  3. package/dist/commands-v2/handlers/index.js +2 -2
  4. package/dist/compilr-diff-companion.vsix +0 -0
  5. package/dist/index.js +5 -2
  6. package/dist/utils/update-checker.d.ts +6 -1
  7. package/dist/utils/update-checker.js +16 -1
  8. package/package.json +5 -4
  9. package/dist/.tsbuildinfo.app +0 -1
  10. package/dist/.tsbuildinfo.data +0 -1
  11. package/dist/.tsbuildinfo.domain +0 -1
  12. package/dist/.tsbuildinfo.foundation +0 -1
  13. package/dist/guide/guide-content.d.ts +0 -23
  14. package/dist/guide/guide-content.js +0 -196
  15. package/dist/multi-agent/activity.d.ts +0 -21
  16. package/dist/multi-agent/activity.js +0 -34
  17. package/dist/multi-agent/agent-selection.d.ts +0 -55
  18. package/dist/multi-agent/agent-selection.js +0 -90
  19. package/dist/multi-agent/artifacts.d.ts +0 -197
  20. package/dist/multi-agent/artifacts.js +0 -379
  21. package/dist/multi-agent/collision-utils.d.ts +0 -16
  22. package/dist/multi-agent/collision-utils.js +0 -28
  23. package/dist/multi-agent/context-resolver.d.ts +0 -97
  24. package/dist/multi-agent/context-resolver.js +0 -316
  25. package/dist/multi-agent/mention-parser.d.ts +0 -64
  26. package/dist/multi-agent/mention-parser.js +0 -146
  27. package/dist/multi-agent/shared-context.d.ts +0 -293
  28. package/dist/multi-agent/shared-context.js +0 -671
  29. package/dist/multi-agent/skill-requirements.d.ts +0 -66
  30. package/dist/multi-agent/skill-requirements.js +0 -178
  31. package/dist/multi-agent/task-assignment.d.ts +0 -69
  32. package/dist/multi-agent/task-assignment.js +0 -123
  33. package/dist/multi-agent/task-suggestion.d.ts +0 -31
  34. package/dist/multi-agent/task-suggestion.js +0 -72
  35. package/dist/multi-agent/team-agent.d.ts +0 -201
  36. package/dist/multi-agent/team-agent.js +0 -488
  37. package/dist/multi-agent/team.d.ts +0 -286
  38. package/dist/multi-agent/team.js +0 -610
  39. package/dist/multi-agent/tool-config.d.ts +0 -110
  40. package/dist/multi-agent/tool-config.js +0 -661
  41. package/dist/multi-agent/types.d.ts +0 -211
  42. package/dist/multi-agent/types.js +0 -617
  43. package/dist/tools/guide-tool.d.ts +0 -12
  44. package/dist/tools/guide-tool.js +0 -59
package/CHANGELOG.md ADDED
@@ -0,0 +1,104 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@compilr-dev/cli` are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ > **Beta notice:** versions in the `0.x` range may contain breaking changes
9
+ > between minors. Read each release entry before upgrading.
10
+
11
+ ---
12
+
13
+ ## [Unreleased]
14
+
15
+ ## [0.6.2] — 2026-04-25
16
+
17
+ ### Fixed
18
+ - Respect the [`NO_COLOR`](https://no-color.org) standard — `NO_COLOR=1 compilr ...`
19
+ now produces uncolored output instead of being silently overridden by
20
+ `FORCE_COLOR=3`. Restores accessibility for screen readers, low-contrast
21
+ terminals, log redirection, and CI environments.
22
+
23
+ ### Changed
24
+ - Lower minimum supported Node from `>=22.0.0` to `>=20.0.0` — Node 20 is the
25
+ active LTS line and the codebase uses no v22-only APIs. Restores compatibility
26
+ for users still on Node 20 LTS.
27
+
28
+ ### Added
29
+ - Documented opt-outs for the npm registry update check. Set any of the
30
+ following to skip the network call on startup:
31
+ - `COMPILR_NO_UPDATE_CHECK=1` (project-specific)
32
+ - `NO_UPDATE_NOTIFIER=1` (de-facto standard from `update-notifier`)
33
+ - `CI=true` (auto-respected in CI)
34
+ - `CHANGELOG.md` shipped in the published tarball (this file).
35
+
36
+ ### Removed
37
+ - TypeScript incremental build caches (`*.tsbuildinfo`) no longer ship in the
38
+ npm tarball. Tarball is now ~760 KB compressed (previously ~1 MB) — about
39
+ ~660 KB lighter on disk after install.
40
+
41
+ ---
42
+
43
+ ## [0.6.1] — 2026-04-21
44
+
45
+ ### Fixed
46
+ - Resolved `npm audit` vulnerabilities in transitive deps (`hono`, `protobufjs`).
47
+
48
+ ## [0.6.0] — 2026-04-19
49
+
50
+ ### Changed
51
+ - **Major:** CLI now builds on `createCompilrAgent` from `@compilr-dev/sdk`
52
+ (universal agent runtime). All agent setup, tool assembly, capability
53
+ loading, and team coordination flow through the SDK. CLI source dropped
54
+ from ~3.5 K LOC of agent wiring to a thin adapter.
55
+ - Logging is now structured JSON via `@compilr-dev/logger` (Pino) — no more
56
+ raw `console.log` from diagnostic paths. Logs are scrubbed for secrets.
57
+
58
+ ### Added
59
+ - Plan Mode V2 — permission-blocking + tool-based transitions for safer
60
+ multi-step planning workflows. Plan can now be approved/edited from
61
+ inside the CLI.
62
+ - `/app` command — terminal app model viewer overlay (entities, fields,
63
+ relationships, layout, config). Aligned columns, no emojis.
64
+ - Custom agent wizard Step 5 — free-text custom instructions added per agent.
65
+ - Template support in custom agent wizard — `Ctrl+T` to save as template,
66
+ list UI to load existing templates.
67
+ - Guide tool migrated to SDK (`createGuideTool({ environment, additionalEntries })`).
68
+ - Removed two-repo and guided-workflow options from the wizard — both are
69
+ always single-repo + flexible now.
70
+
71
+ ### Fixed
72
+ - Credential encryption now survives container restarts (master key
73
+ derivation hardened).
74
+ - `/app` overlay — aligned columns, layout/config in summary, no emojis.
75
+ - Agent IDs may contain dashes.
76
+
77
+ ## [0.5.x] — 2026-03 → 2026-04
78
+
79
+ Highlights from the 0.5 line:
80
+
81
+ - Migrated more code paths to `@compilr-dev/sdk` (anchors, MCP, permissions,
82
+ SQLite repositories, capability loading).
83
+ - Pin API replaces the older anchor API for project state injection.
84
+ - Multi-terminal session awareness, dynamic capability loading with
85
+ auto-load on filtered tool use, observation masking, tool input
86
+ compaction, and tool result auto-delegation.
87
+ - Multi-LLM support across 9 providers (Claude, OpenAI, Gemini, Groq,
88
+ Fireworks, Together, Perplexity, OpenRouter, Ollama).
89
+ - Multi-agent teams (delegate, delegate_background, $mention routing,
90
+ /team dashboard, background queues).
91
+
92
+ For commit-level detail of the 0.5 line, see git log between v0.5.0 and v0.6.0.
93
+
94
+ ---
95
+
96
+ ## Earlier versions
97
+
98
+ The `0.4.x` and prior series were rapid pre-MVP iterations. See the git
99
+ history for details.
100
+
101
+ [Unreleased]: https://github.com/compilr-dev/cli/compare/v0.6.2...HEAD
102
+ [0.6.2]: https://github.com/compilr-dev/cli/compare/v0.6.1...v0.6.2
103
+ [0.6.1]: https://github.com/compilr-dev/cli/compare/v0.6.0...v0.6.1
104
+ [0.6.0]: https://github.com/compilr-dev/cli/compare/v0.5.17...v0.6.0
package/README.md CHANGED
@@ -217,6 +217,18 @@ export GOOGLE_API_KEY="..." # Google Gemini
217
217
 
218
218
  Environment variables take priority over stored keys.
219
219
 
220
+ ### Behavior Environment Variables
221
+
222
+ The CLI honors several standard environment variables for accessibility,
223
+ privacy, and CI use:
224
+
225
+ | Variable | Effect |
226
+ |---|---|
227
+ | `NO_COLOR=1` | Disable all ANSI colors. Honors the [no-color.org](https://no-color.org) standard. |
228
+ | `COMPILR_NO_UPDATE_CHECK=1` | Skip the npm registry update check at startup. |
229
+ | `NO_UPDATE_NOTIFIER=1` | Same as above. De-facto standard from `update-notifier`. |
230
+ | `CI=true` | Auto-skips the update check (no nag in CI environments). |
231
+
220
232
  ### Project Configuration
221
233
 
222
234
  Create a `COMPILR.md` file in your project root to provide context:
@@ -11,7 +11,7 @@ import { debugCommands } from './debug.js';
11
11
  import { sessionCommands } from './session.js';
12
12
  import { resetCommands } from './reset.js';
13
13
  import { teamCommands } from './team.js';
14
- import { gamesCommand } from './games.js';
14
+ // import { gamesCommand } from './games.js'; // Temporarily disabled — Tetris copyright concerns
15
15
  import { tasksCommand } from './tasks.js';
16
16
  import { backgroundCommands } from './background.js';
17
17
  import { filterCommands } from './filter.js';
@@ -50,7 +50,7 @@ export const allCommands = [
50
50
  ...sessionCommands,
51
51
  ...resetCommands,
52
52
  ...teamCommands,
53
- gamesCommand,
53
+ // gamesCommand, // Temporarily disabled — Tetris copyright concerns
54
54
  tasksCommand,
55
55
  ...backgroundCommands,
56
56
  ...filterCommands,
Binary file
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  // Force color output for all chalk-based libraries (cli-highlight, marked-terminal, etc.)
3
- // This must be set BEFORE any imports that use chalk
4
- process.env.FORCE_COLOR = '3';
3
+ // This must be set BEFORE any imports that use chalk.
4
+ // Respect the NO_COLOR standard (https://no-color.org) never override an explicit user opt-out.
5
+ if (!process.env.NO_COLOR) {
6
+ process.env.FORCE_COLOR = '3';
7
+ }
5
8
  /**
6
9
  * @compilr-dev/cli
7
10
  *
@@ -11,7 +11,12 @@ export interface UpdateInfo {
11
11
  npmUrl: string;
12
12
  }
13
13
  /**
14
- * Check npm registry for the latest version
14
+ * Check npm registry for the latest version.
15
+ *
16
+ * Honored opt-outs (any of these returns "no update available" without a network call):
17
+ * - COMPILR_NO_UPDATE_CHECK=1 (project-specific)
18
+ * - NO_UPDATE_NOTIFIER=1 (de-facto standard from update-notifier)
19
+ * - CI=true (don't nag in CI environments)
15
20
  */
16
21
  export declare function checkForUpdates(): Promise<UpdateInfo>;
17
22
  /**
@@ -5,10 +5,25 @@
5
5
  */
6
6
  import { VERSION } from './version.js';
7
7
  /**
8
- * Check npm registry for the latest version
8
+ * Check npm registry for the latest version.
9
+ *
10
+ * Honored opt-outs (any of these returns "no update available" without a network call):
11
+ * - COMPILR_NO_UPDATE_CHECK=1 (project-specific)
12
+ * - NO_UPDATE_NOTIFIER=1 (de-facto standard from update-notifier)
13
+ * - CI=true (don't nag in CI environments)
9
14
  */
10
15
  export async function checkForUpdates() {
11
16
  const packageName = '@compilr-dev/cli';
17
+ // Respect well-known opt-outs and CI environments — never make a network call
18
+ if (process.env.COMPILR_NO_UPDATE_CHECK || process.env.NO_UPDATE_NOTIFIER || process.env.CI) {
19
+ return {
20
+ currentVersion: VERSION,
21
+ latestVersion: VERSION,
22
+ updateAvailable: false,
23
+ releaseUrl: '',
24
+ npmUrl: `https://www.npmjs.com/package/${packageName}`,
25
+ };
26
+ }
12
27
  const registryUrl = `https://registry.npmjs.org/${packageName}/latest`;
13
28
  try {
14
29
  const response = await fetch(registryUrl, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "AI-powered coding assistant CLI using @compilr-dev/agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -47,10 +47,11 @@
47
47
  "files": [
48
48
  "dist",
49
49
  "README.md",
50
- "LICENSE"
50
+ "LICENSE",
51
+ "CHANGELOG.md"
51
52
  ],
52
53
  "engines": {
53
- "node": ">=22.0.0"
54
+ "node": ">=20.0.0"
54
55
  },
55
56
  "dependencies": {
56
57
  "@anthropic-ai/sdk": "^0.74.0",
@@ -68,7 +69,7 @@
68
69
  "marked": "^15.0.12",
69
70
  "marked-terminal": "^7.3.0",
70
71
  "picocolors": "^1.1.1",
71
- "uuid": "^13.0.0"
72
+ "uuid": "^14.0.0"
72
73
  },
73
74
  "overrides": {
74
75
  "minimatch": ">=10.2.1",