@colony2/c2j 0.0.4 → 0.0.6

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 +41 -1
  2. package/package.json +17 -17
package/README.md CHANGED
@@ -21,6 +21,7 @@ c2j init
21
21
  c2j submit
22
22
  c2j exec
23
23
  c2j list
24
+ c2j test
24
25
  ```
25
26
 
26
27
  Use `go run ./cmd/c2j --help` or `c2j --help` to see the full command tree.
@@ -245,6 +246,46 @@ Note:
245
246
 
246
247
  - `--json` and `--run` are mutually exclusive
247
248
 
249
+ ## Testing Recipes
250
+
251
+ `c2j test` compiles, validates, and runs recipe test suites locally. It does not call the old Colony2 API.
252
+
253
+ Compile a suite to canonical IR:
254
+
255
+ ```bash
256
+ c2j test compile \
257
+ --recipe-file ./recipes/my-recipe.yaml \
258
+ --file ./recipes/my-recipe.test.yaml \
259
+ --out ./tmp/compiled-test.json
260
+ ```
261
+
262
+ Run a local suite:
263
+
264
+ ```bash
265
+ c2j test run \
266
+ --recipe-file ./recipes/my-recipe.yaml \
267
+ --file ./recipes/my-recipe.test.yaml \
268
+ --artifact-mode inline
269
+ ```
270
+
271
+ Run one case:
272
+
273
+ ```bash
274
+ c2j test case run \
275
+ --recipe-file ./recipes/my-recipe.yaml \
276
+ --file ./recipes/my-recipe.test.yaml \
277
+ --case-id smoke
278
+ ```
279
+
280
+ Useful flags:
281
+
282
+ - `--recipe <name-or-git-selector>` targets a current-cell recipe or explicit git selector
283
+ - `--recipe-file <path>` uses a local inline recipe file
284
+ - `--case <id>` filters suite mode to selected cases
285
+ - `--parallelism <n>` controls local case concurrency
286
+ - `--out-dir <dir>` defaults to `.c2j/test-results/<timestamp>/`
287
+ - passthrough cases use a disposable embedded runtime root automatically; use `--runtime-root` and `--keep-runtime` only for debugging
288
+
248
289
  ## Running Jobs
249
290
 
250
291
  `c2j exec` executes or continues an existing job and prints live story progress to stdout.
@@ -450,4 +491,3 @@ c2j submit \
450
491
  - command entrypoint: [main.go](main.go)
451
492
  - embedded runtime notes: [embed-swf-mode-spec.md](embed-swf-mode-spec.md)
452
493
  - recipe authoring docs: [RECIPE_AUTHORING_GUIDE.md](../../recipes/guides/RECIPE_AUTHORING_GUIDE.md)
453
-
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@colony2/c2j",
3
3
  "type": "module",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "description": "c2j job system",
6
6
  "scripts": {
7
7
  "postinstall": "node install.js",
@@ -30,54 +30,57 @@
30
30
  },
31
31
  "archives": {
32
32
  "darwin-arm64": {
33
- "name": "c2j_0.0.4_Darwin_arm64.tar.gz",
34
- "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.4/c2j_0.0.4_Darwin_arm64.tar.gz",
33
+ "name": "c2j_0.0.6_Darwin_arm64.tar.gz",
34
+ "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.6/c2j_0.0.6_Darwin_arm64.tar.gz",
35
35
  "bins": [
36
36
  "c2j"
37
37
  ],
38
38
  "format": "tar.gz",
39
39
  "checksum": {
40
40
  "algorithm": "sha256",
41
- "digest": "eeeb6d6e75f86e9b87f94749bf2dbfe30fed768f91f534177961281c9d64c346"
41
+ "digest": "04394c06adca80f059d42bba47c2d03f4b07b8d431e9cc610f6d2006e70a7706"
42
42
  }
43
43
  },
44
44
  "darwin-x64": {
45
- "name": "c2j_0.0.4_Darwin_x86_64.tar.gz",
46
- "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.4/c2j_0.0.4_Darwin_x86_64.tar.gz",
45
+ "name": "c2j_0.0.6_Darwin_x86_64.tar.gz",
46
+ "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.6/c2j_0.0.6_Darwin_x86_64.tar.gz",
47
47
  "bins": [
48
48
  "c2j"
49
49
  ],
50
50
  "format": "tar.gz",
51
51
  "checksum": {
52
52
  "algorithm": "sha256",
53
- "digest": "16d07d433ed48cae419ae70a8855a093fc839f9b6a1abe39efa8cd7f77f10525"
53
+ "digest": "30610490c4d51fe771237beaea8aa2cf91604e45a8c8c163843cd612528a5c70"
54
54
  }
55
55
  },
56
56
  "linux-arm64": {
57
- "name": "c2j_0.0.4_Linux_arm64.tar.gz",
58
- "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.4/c2j_0.0.4_Linux_arm64.tar.gz",
57
+ "name": "c2j_0.0.6_Linux_arm64.tar.gz",
58
+ "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.6/c2j_0.0.6_Linux_arm64.tar.gz",
59
59
  "bins": [
60
60
  "c2j"
61
61
  ],
62
62
  "format": "tar.gz",
63
63
  "checksum": {
64
64
  "algorithm": "sha256",
65
- "digest": "7e6f77f8fd22c892ea88445a20d46bbc6943e47583e3059ee0b0d82d34ead090"
65
+ "digest": "7e9eac5f01a2cbd8835d9e1baf5b4e9c5be57d2b80a54be540ba6e60524eb794"
66
66
  }
67
67
  },
68
68
  "linux-x64": {
69
- "name": "c2j_0.0.4_Linux_x86_64.tar.gz",
70
- "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.4/c2j_0.0.4_Linux_x86_64.tar.gz",
69
+ "name": "c2j_0.0.6_Linux_x86_64.tar.gz",
70
+ "url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.6/c2j_0.0.6_Linux_x86_64.tar.gz",
71
71
  "bins": [
72
72
  "c2j"
73
73
  ],
74
74
  "format": "tar.gz",
75
75
  "checksum": {
76
76
  "algorithm": "sha256",
77
- "digest": "5fba61cb4b7d081537c007008452955c6de3b74a69e87eed0cbadf1c01dd8c99"
77
+ "digest": "d0a3b9d62f0e2abdae0c1b471a754bf63d87e7a56ba812ef98779f452752bc33"
78
78
  }
79
79
  }
80
80
  },
81
+ "engines": {
82
+ "node": "\u003e=14.0.0"
83
+ },
81
84
  "keywords": [
82
85
  "sandbox",
83
86
  "docker",
@@ -85,8 +88,5 @@
85
88
  "agent",
86
89
  "cli",
87
90
  "security"
88
- ],
89
- "engines": {
90
- "node": "\u003e=14.0.0"
91
- }
91
+ ]
92
92
  }