@colony2/c2j 0.0.84 → 0.0.86

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 +50 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -106,7 +106,11 @@ its installation checks. After changing Go dependencies, update `vendorHash` in
106
106
 
107
107
  ### 1. Check current-cell resolution
108
108
 
109
- `submit` targets the current cell by default. That usually comes from `.c2j/config.yaml`, but supported project types can also be auto-detected.
109
+ `submit` targets the current cell by default. That usually comes from `.c2/config.yaml`, but supported project types can also be auto-detected.
110
+
111
+ Configuration now lives in `.c2/config.yaml`; the old `.c2j` directory is not
112
+ searched or migrated automatically. Move existing configuration and recipes to
113
+ `.c2` before running this version.
110
114
 
111
115
  Inspect the resolved config:
112
116
 
@@ -128,7 +132,7 @@ c2j init --stdout
128
132
 
129
133
  If the current directory does not resolve as a cell, either:
130
134
 
131
- - create `.c2j/config.yaml`, or
135
+ - create `.c2/config.yaml`, or
132
136
  - pass `--cell <repo-or-path>` explicitly to `submit` or `list`
133
137
 
134
138
  ### 2. Submit and run a build job
@@ -166,7 +170,7 @@ c2j run --job-id <job-id> --embed
166
170
 
167
171
  ### `c2j self`
168
172
 
169
- Shows how `c2j` resolves the current cell from `.c2j/config.yaml` or supported auto-detection.
173
+ Shows how `c2j` resolves the current cell from `.c2/config.yaml` or supported auto-detection.
170
174
 
171
175
  ```bash
172
176
  c2j self
@@ -193,9 +197,44 @@ c2j cells --json
193
197
 
194
198
  This is mainly useful when you want to target another cell by short name and need to verify how config expands it.
195
199
 
200
+ The table includes a description column. JSON rows contain `short_name`, `repo`,
201
+ and an optional `description`; multiline descriptions retain their newlines in JSON.
202
+
203
+ ### `c2j cell add`
204
+
205
+ Add or update a manually listed dependent cell in the nearest `.c2/config.yaml`:
206
+
207
+ ```bash
208
+ c2j cell add github.com/acme/auth --description 'Authentication service'
209
+ c2j cell add auth --description 'Identity and sessions' --stdout
210
+ c2j cell add auth --description ''
211
+ ```
212
+
213
+ Short names require a configured or derived pattern. `--stdout` previews the
214
+ complete YAML without writing. Omitting `--description` preserves the current
215
+ description; an empty value clears it. Repeating the same edit leaves the file
216
+ unchanged. Edits preserve comments and unrelated config; YAML indentation may
217
+ be normalized. If no config exists, run `c2j init --no-skills` at the project root.
218
+
219
+ Manual lists support simple strings and detailed mappings, including mixed lists:
220
+
221
+ ```yaml
222
+ pattern: 'github.com/acme/${{ cell }}'
223
+ dependents:
224
+ - github.com/acme/shared
225
+ - repo: github.com/acme/auth
226
+ description: Authentication service
227
+ ```
228
+
229
+ A manual list defines the complete allowed set and bypasses discovery filtering.
230
+ Automatically detected cells are used directly and stay live. Adding an already
231
+ detected cell without a description succeeds without writing. Adding undetected
232
+ cells or descriptions in discovery mode is not supported by this command;
233
+ descriptions currently belong to manual entries.
234
+
196
235
  ### `c2j init`
197
236
 
198
- Writes a commented `.c2j/config.yaml` template and installs bundled c2j skills for Codex-compatible agents.
237
+ Writes a commented `.c2/config.yaml` template and installs bundled c2j skills for Codex-compatible agents.
199
238
 
200
239
  ```bash
201
240
  c2j init
@@ -216,7 +255,7 @@ c2j init --skills-scope user
216
255
  c2j init --skills-force
217
256
  ```
218
257
 
219
- `auto` currently installs to the project-local `.agents/skills` directory. `user` installs to `${CODEX_HOME:-$HOME/.codex}/skills`. Install metadata is recorded in `.c2j/skills-lock.yaml`.
258
+ `auto` currently installs to the project-local `.agents/skills` directory. `user` installs to `${CODEX_HOME:-$HOME/.codex}/skills`. Install metadata is recorded in `.c2/skills-lock.yaml`.
220
259
 
221
260
  You can also install the repo skills directly with the public `skills` tool:
222
261
 
@@ -234,7 +273,7 @@ Submit a build job:
234
273
  c2j submit "Implement the new endpoint" --embed
235
274
  ```
236
275
 
237
- Submissions use the name `build` through the existing recipe resolution system. At execution time, c2j first looks for `.c2j/recipes/build.yaml` in the **target cell's repository**, at its configured ref. This also applies to `--cell`; the submitting project's recipes do not override another target cell's recipes. As with other named recipes, uncommitted files are not used.
276
+ Submissions use the name `build` through the existing recipe resolution system. At execution time, c2j first looks for `.c2/recipes/build.yaml` in the **target cell's repository**, at its configured ref. This also applies to `--cell`; the submitting project's recipes do not override another target cell's recipes. As with other named recipes, uncommitted files are not used.
238
277
 
239
278
  If that recipe file is absent, c2j resolves the shared recipe instead:
240
279
 
@@ -387,7 +426,7 @@ c2j submit "Improve retry behavior" \
387
426
  - a canonical repo string
388
427
  - a clone URL
389
428
  - a local repository path
390
- - a configured short name when `.c2j/config.yaml` defines a pattern
429
+ - a configured short name when `.c2/config.yaml` defines a pattern
391
430
 
392
431
  Rules:
393
432
 
@@ -471,7 +510,7 @@ Useful flags:
471
510
  - `--recipe-file <path>` uses a local inline recipe file
472
511
  - `--case <id>` filters suite mode to selected cases
473
512
  - `--parallelism <n>` controls local case concurrency
474
- - `--out-dir <dir>` defaults to `.c2j/test-results/<timestamp>/`
513
+ - `--out-dir <dir>` defaults to `.c2/test-results/<timestamp>/`
475
514
  - passthrough cases use a disposable embedded runtime automatically
476
515
 
477
516
  ## Running Jobs
@@ -704,7 +743,7 @@ Behavior:
704
743
  Defaults:
705
744
 
706
745
  - runtime URL: `embed:///`
707
- - runtime root: `~/.c2j/embed/default`
746
+ - runtime root: `~/.c2/embed/default`
708
747
 
709
748
  Notes:
710
749
 
@@ -788,6 +827,8 @@ c2j submit "Run the requested task" \
788
827
 
789
828
  ## Related Files
790
829
 
830
+ - separate Git operations: [squash, rebase, and fast-forward-only merge](GUIDE-Git-Ops.md)
831
+
791
832
  - command entrypoint: [main.go](main.go)
792
833
  - embedded runtime notes: [embed-swf-mode-spec.md](embed-swf-mode-spec.md)
793
834
  - recipe authoring docs: [RECIPE_AUTHORING_GUIDE.md](../../recipes/guides/RECIPE_AUTHORING_GUIDE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colony2/c2j",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "description": "c2j job system",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/colony-2/c2j",