@colony2/c2j 0.0.18 → 0.0.20
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.
- package/README.md +29 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -192,6 +192,34 @@ Rules:
|
|
|
192
192
|
- `--inputs-json` and `--inputs-file` are mutually exclusive
|
|
193
193
|
- the positional prompt cannot also be provided as `inputs.prompt`
|
|
194
194
|
|
|
195
|
+
### Attaching files
|
|
196
|
+
|
|
197
|
+
Attach local files as job artifacts with repeatable `--artifact` flags:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
c2j submit \
|
|
201
|
+
--recipe-file ./recipes/review-docs.yaml \
|
|
202
|
+
--artifact ./docs/brief.md \
|
|
203
|
+
--artifact requirements=./docs/requirements.md \
|
|
204
|
+
--run \
|
|
205
|
+
--embed
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
`--artifact <path>` uses the file basename as the artifact name.
|
|
209
|
+
`--artifact <name>=<path>` sets an explicit artifact name.
|
|
210
|
+
|
|
211
|
+
Recipes bind submitted artifacts into an op inbox explicitly:
|
|
212
|
+
|
|
213
|
+
```yaml
|
|
214
|
+
sequence:
|
|
215
|
+
- id: inspect
|
|
216
|
+
op: command_execution
|
|
217
|
+
artifacts:
|
|
218
|
+
brief.md: '${{ context.artifacts["brief.md"] }}'
|
|
219
|
+
inputs:
|
|
220
|
+
run: 'cat "${{ context.environment.op.inbox }}/brief.md"'
|
|
221
|
+
```
|
|
222
|
+
|
|
195
223
|
### Choosing the target cell
|
|
196
224
|
|
|
197
225
|
Use the current cell:
|
|
@@ -482,6 +510,7 @@ c2j submit \
|
|
|
482
510
|
- `--json` and `--run` are mutually exclusive on `submit`
|
|
483
511
|
- `--inputs-json` and `--inputs-file` are mutually exclusive
|
|
484
512
|
- `--self` and `--cell` are mutually exclusive
|
|
513
|
+
- `--artifact` names must be unique relative paths; directories are not supported yet
|
|
485
514
|
- `self`, `cells`, and implicit current-cell submission depend on config or supported auto-detection succeeding
|
|
486
515
|
- short cell names require a config pattern; without config, use an explicit repo or path
|
|
487
516
|
- `--recipe-file` is clearer than passing a local file path through `--recipe`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colony2/c2j",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.20",
|
|
5
5
|
"description": "c2j job system",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node install.js",
|
|
@@ -30,51 +30,51 @@
|
|
|
30
30
|
},
|
|
31
31
|
"archives": {
|
|
32
32
|
"darwin-arm64": {
|
|
33
|
-
"name": "c2j_0.0.
|
|
34
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
33
|
+
"name": "c2j_0.0.20_Darwin_arm64.tar.gz",
|
|
34
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.20/c2j_0.0.20_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": "
|
|
41
|
+
"digest": "100f6b810d4d485011422eed8f1831281e70650a5ccb2f8833d7c18e696ed7a2"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"darwin-x64": {
|
|
45
|
-
"name": "c2j_0.0.
|
|
46
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
45
|
+
"name": "c2j_0.0.20_Darwin_x86_64.tar.gz",
|
|
46
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.20/c2j_0.0.20_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": "
|
|
53
|
+
"digest": "e0a075b897dce26e4d47a0d9b195fa082f4f3507d1c30b489a0f3016eb889412"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"linux-arm64": {
|
|
57
|
-
"name": "c2j_0.0.
|
|
58
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
57
|
+
"name": "c2j_0.0.20_Linux_arm64.tar.gz",
|
|
58
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.20/c2j_0.0.20_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": "
|
|
65
|
+
"digest": "a8bbdd416c53d21b74e1ea590014b9d5bb95f989811b095bae81fd72068c71a2"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"linux-x64": {
|
|
69
|
-
"name": "c2j_0.0.
|
|
70
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
69
|
+
"name": "c2j_0.0.20_Linux_x86_64.tar.gz",
|
|
70
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.20/c2j_0.0.20_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": "
|
|
77
|
+
"digest": "f8a2fa1a90792db311770b94dcb01bf50770068243498610ee11c33b89905e7c"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
},
|