@compozy/cli 0.1.4 → 0.1.5

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 (2) hide show
  1. package/README.md +65 -0
  2. package/package.json +21 -21
package/README.md CHANGED
@@ -98,6 +98,62 @@ Every artifact is a plain markdown file in `.compozy/tasks/<name>/`. You can rea
98
98
 
99
99
  Task and review issue files use YAML frontmatter for parseable metadata such as `status`, `domain`, `severity`, and `provider_ref`. Task workflow `_meta.md` files can be refreshed explicitly with `compozy sync`. Fully completed workflows can be moved out of the active task root with `compozy archive`. If you have an older project with XML-tagged artifacts, run `compozy migrate` once before using `start` or `fix-reviews`.
100
100
 
101
+ ## ⚙️ Workspace Config
102
+
103
+ Compozy can load project defaults from `.compozy/config.toml`.
104
+
105
+ - The CLI discovers the nearest `.compozy/` directory by walking upward from the current working directory.
106
+ - If `.compozy/config.toml` exists, Compozy loads it once at command startup.
107
+ - Interactive forms for `compozy start`, `compozy fix-reviews`, and `compozy fetch-reviews` are prefilled from the resolved config.
108
+ - Explicit CLI flags always win over config values.
109
+
110
+ Precedence is:
111
+
112
+ ```text
113
+ explicit flags > command section > [defaults] > built-in defaults
114
+ ```
115
+
116
+ Example:
117
+
118
+ ```toml
119
+ [defaults]
120
+ ide = "codex"
121
+ model = "gpt-5.4"
122
+ reasoning_effort = "medium"
123
+ access_mode = "full"
124
+ timeout = "10m"
125
+ tail_lines = 0
126
+ add_dirs = ["../shared"]
127
+ auto_commit = false
128
+ max_retries = 0
129
+ retry_backoff_multiplier = 1.5
130
+
131
+ [start]
132
+ include_completed = false
133
+
134
+ [fix_reviews]
135
+ concurrent = 2
136
+ batch_size = 3
137
+ grouped = true
138
+ include_resolved = false
139
+
140
+ [fetch_reviews]
141
+ provider = "coderabbit"
142
+ ```
143
+
144
+ Supported sections in v1:
145
+
146
+ - `[defaults]` for shared execution defaults such as `ide`, `model`, `reasoning_effort`, `access_mode`, `timeout`, `tail_lines`, `add_dirs`, `auto_commit`, `max_retries`, and `retry_backoff_multiplier`
147
+ - `[start]` for `include_completed`
148
+ - `[fix_reviews]` for `concurrent`, `batch_size`, `grouped`, and `include_resolved`
149
+ - `[fetch_reviews]` for `provider`
150
+
151
+ Notes:
152
+
153
+ - `.compozy/config.toml` is optional. If it is absent, Compozy keeps the current built-in defaults.
154
+ - `.compozy/tasks` remains the fixed workflow root in this version; the config file does not change the workflow root path.
155
+ - Unknown keys and invalid value types are rejected during config loading.
156
+
101
157
  ## 🚀 Quick Start
102
158
 
103
159
  This walkthrough builds a feature called **user-auth** from idea to shipped code.
@@ -109,6 +165,7 @@ compozy setup
109
165
  ```
110
166
 
111
167
  Auto-detects installed agents and copies (or symlinks) skills into their configuration directories.
168
+ `compozy start` and `compozy fix-reviews` now verify that bundled Compozy skills are installed for the selected agent before running. Missing installs block the run, and outdated installs prompt for refresh in interactive terminals.
112
169
 
113
170
  ### 2. (Optional) Create an Issue
114
171
 
@@ -318,6 +375,8 @@ compozy start [flags]
318
375
  ```
319
376
 
320
377
  Running `compozy start` with no flags opens the interactive form automatically.
378
+ When present, `.compozy/config.toml` can provide defaults for runtime flags such as
379
+ `--ide`, `--model`, `--reasoning-effort`, `--access-mode`, `--timeout`, `--add-dir`, and `--auto-commit`.
321
380
 
322
381
  | Flag | Default | Description |
323
382
  | ---------------------------- | ----------- | ------------------------------------------------------------- |
@@ -326,6 +385,7 @@ Running `compozy start` with no flags opens the interactive form automatically.
326
385
  | `--ide` | `codex` | Agent: `claude`, `codex`, `cursor`, `droid`, `opencode`, `pi` |
327
386
  | `--model` | _(per IDE)_ | Model override |
328
387
  | `--reasoning-effort` | `medium` | `low`, `medium`, `high`, `xhigh` |
388
+ | `--access-mode` | `full` | `default` or `full` runtime access policy |
329
389
  | `--timeout` | `10m` | Activity timeout per job |
330
390
  | `--max-retries` | `0` | Retry failed jobs N times |
331
391
  | `--retry-backoff-multiplier` | `1.5` | Timeout multiplier per retry |
@@ -345,6 +405,7 @@ compozy fetch-reviews [flags]
345
405
  ```
346
406
 
347
407
  Running `compozy fetch-reviews` with no flags opens the interactive form automatically.
408
+ When present, `.compozy/config.toml` can provide defaults such as `--provider`.
348
409
 
349
410
  | Flag | Default | Description |
350
411
  | ------------ | ------- | ----------------------------------------- |
@@ -363,6 +424,8 @@ compozy fix-reviews [flags]
363
424
  ```
364
425
 
365
426
  Running `compozy fix-reviews` with no flags opens the interactive form automatically.
427
+ When present, `.compozy/config.toml` can provide runtime defaults as well as review workflow
428
+ defaults such as `--concurrent`, `--batch-size`, `--grouped`, and `--include-resolved`.
366
429
 
367
430
  | Flag | Default | Description |
368
431
  | ---------------------------- | ----------- | ------------------------------------------------------------- |
@@ -376,6 +439,7 @@ Running `compozy fix-reviews` with no flags opens the interactive form automatic
376
439
  | `--grouped` | `false` | Generate grouped issue summaries |
377
440
  | `--include-resolved` | `false` | Re-process resolved issues |
378
441
  | `--reasoning-effort` | `medium` | `low`, `medium`, `high`, `xhigh` |
442
+ | `--access-mode` | `full` | `default` or `full` runtime access policy |
379
443
  | `--timeout` | `10m` | Activity timeout per job |
380
444
  | `--max-retries` | `0` | Retry failed jobs N times |
381
445
  | `--retry-backoff-multiplier` | `1.5` | Timeout multiplier per retry |
@@ -441,6 +505,7 @@ internal/core/ Internal facade for preparation and execution
441
505
  internal/setup/ Bundled skill installer (agent detection, symlink/copy)
442
506
  internal/version/ Build metadata
443
507
  skills/ Bundled installable skills
508
+ .compozy/config.toml Optional workspace defaults for CLI execution
444
509
  .compozy/tasks/ Default workflow artifact root (PRDs, TechSpecs, tasks, ADRs, reviews)
445
510
  ```
446
511
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@compozy/cli",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "description": "Compozy CLI",
6
6
  "scripts": {
7
7
  "postinstall": "node install.js",
@@ -27,69 +27,69 @@
27
27
  },
28
28
  "archives": {
29
29
  "darwin-arm64": {
30
- "name": "compozy_0.1.4_darwin_arm64.tar.gz",
31
- "url": "https://github.com/compozy/compozy/releases/download/v0.1.4/compozy_0.1.4_darwin_arm64.tar.gz",
30
+ "name": "compozy_0.1.5_darwin_arm64.tar.gz",
31
+ "url": "https://github.com/compozy/compozy/releases/download/v0.1.5/compozy_0.1.5_darwin_arm64.tar.gz",
32
32
  "bins": [
33
33
  "compozy"
34
34
  ],
35
35
  "format": "tar.gz",
36
36
  "checksum": {
37
37
  "algorithm": "sha256",
38
- "digest": "5e384a0463fbc65514a5990aa3b335ad6532e4691d38834d73cd7237f92d9b22"
38
+ "digest": "3d2e072f0a9639e228d9abe6f86b78a1d57c6e7d4179d2f1dda79d315ab2541d"
39
39
  },
40
- "wrappedIn": "compozy_0.1.4_darwin_arm64"
40
+ "wrappedIn": "compozy_0.1.5_darwin_arm64"
41
41
  },
42
42
  "darwin-x64": {
43
- "name": "compozy_0.1.4_darwin_x86_64.tar.gz",
44
- "url": "https://github.com/compozy/compozy/releases/download/v0.1.4/compozy_0.1.4_darwin_x86_64.tar.gz",
43
+ "name": "compozy_0.1.5_darwin_x86_64.tar.gz",
44
+ "url": "https://github.com/compozy/compozy/releases/download/v0.1.5/compozy_0.1.5_darwin_x86_64.tar.gz",
45
45
  "bins": [
46
46
  "compozy"
47
47
  ],
48
48
  "format": "tar.gz",
49
49
  "checksum": {
50
50
  "algorithm": "sha256",
51
- "digest": "7d372733a379d47fb21bed556bce8cb73f45163d0133f0ff25af4c8bef4a1f5e"
51
+ "digest": "b1ca614d96d02055b412d36581249e4776ae8013f69e1fcb796e1f3506bc3a2d"
52
52
  },
53
- "wrappedIn": "compozy_0.1.4_darwin_x86_64"
53
+ "wrappedIn": "compozy_0.1.5_darwin_x86_64"
54
54
  },
55
55
  "linux-arm64": {
56
- "name": "compozy_0.1.4_linux_arm64.tar.gz",
57
- "url": "https://github.com/compozy/compozy/releases/download/v0.1.4/compozy_0.1.4_linux_arm64.tar.gz",
56
+ "name": "compozy_0.1.5_linux_arm64.tar.gz",
57
+ "url": "https://github.com/compozy/compozy/releases/download/v0.1.5/compozy_0.1.5_linux_arm64.tar.gz",
58
58
  "bins": [
59
59
  "compozy"
60
60
  ],
61
61
  "format": "tar.gz",
62
62
  "checksum": {
63
63
  "algorithm": "sha256",
64
- "digest": "9dded2212070d39ee62817589712e95da628f498bd4cb87aa9639af646ca6fbe"
64
+ "digest": "0a03b9d752fcf16da9842e6937e572519bc5e3db89755610038daef16e9b633a"
65
65
  },
66
- "wrappedIn": "compozy_0.1.4_linux_arm64"
66
+ "wrappedIn": "compozy_0.1.5_linux_arm64"
67
67
  },
68
68
  "linux-x64": {
69
- "name": "compozy_0.1.4_linux_x86_64.tar.gz",
70
- "url": "https://github.com/compozy/compozy/releases/download/v0.1.4/compozy_0.1.4_linux_x86_64.tar.gz",
69
+ "name": "compozy_0.1.5_linux_x86_64.tar.gz",
70
+ "url": "https://github.com/compozy/compozy/releases/download/v0.1.5/compozy_0.1.5_linux_x86_64.tar.gz",
71
71
  "bins": [
72
72
  "compozy"
73
73
  ],
74
74
  "format": "tar.gz",
75
75
  "checksum": {
76
76
  "algorithm": "sha256",
77
- "digest": "c7043253f9ecd58e771ee0610f04190906115c092565a57ee2965e4365455937"
77
+ "digest": "b6d10adcdfe7eb1fec4fe969d693ac0d43925e931d4f19eab82011bf9eeb86cc"
78
78
  },
79
- "wrappedIn": "compozy_0.1.4_linux_x86_64"
79
+ "wrappedIn": "compozy_0.1.5_linux_x86_64"
80
80
  },
81
81
  "win32-x64": {
82
- "name": "compozy_0.1.4_windows_x86_64.zip",
83
- "url": "https://github.com/compozy/compozy/releases/download/v0.1.4/compozy_0.1.4_windows_x86_64.zip",
82
+ "name": "compozy_0.1.5_windows_x86_64.zip",
83
+ "url": "https://github.com/compozy/compozy/releases/download/v0.1.5/compozy_0.1.5_windows_x86_64.zip",
84
84
  "bins": [
85
85
  "compozy.exe"
86
86
  ],
87
87
  "format": "zip",
88
88
  "checksum": {
89
89
  "algorithm": "sha256",
90
- "digest": "1d8caf3070b63b4f3dfe36428bd5b53992e78fb5a5e83785b2c9fd54a38c5bea"
90
+ "digest": "cc86dd064a7adcc5dba88c37bad92a9c4f4e5cb05f9145a1c28290826e2c703d"
91
91
  },
92
- "wrappedIn": "compozy_0.1.4_windows_x86_64"
92
+ "wrappedIn": "compozy_0.1.5_windows_x86_64"
93
93
  }
94
94
  }
95
95
  }