@visualautomate/cli 0.7.0 → 0.8.0
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 +16 -16
- package/dist/index.js +112 -574
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ tsconfig.json so your editor type-checks it
|
|
|
33
33
|
AGENTS.md, CLAUDE.md the platform's rules, for an AI assistant working here
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Templates: `blank`, `http-request`, `
|
|
36
|
+
Templates: `blank`, `http-request`, `file`. Pass one with
|
|
37
37
|
`--template`. Each runs unmodified.
|
|
38
38
|
|
|
39
39
|
## Types in your editor
|
|
@@ -95,8 +95,8 @@ and the default is stored as its type has it, so `2` is a number and `false` is
|
|
|
95
95
|
boolean.
|
|
96
96
|
|
|
97
97
|
Types: `string`, `number`, `boolean`, `select`, `multiselect`, `json`, `code`,
|
|
98
|
-
`secret`, `color`, `date`, `
|
|
99
|
-
`--options
|
|
98
|
+
`secret`, `color`, `date`, `file`, `path`, `paths`. A `select` or `multiselect` needs
|
|
99
|
+
`--options`. There is no `connection`: only VisualAutomate's own apps act as a connected account.
|
|
100
100
|
|
|
101
101
|
The same field is added to `visualautomate.test.json` under `config`, with its
|
|
102
102
|
default or a value of the right shape, so the next `vsa test` passes something
|
|
@@ -111,12 +111,13 @@ comments, the examples underneath and your own formatting stay as they are.
|
|
|
111
111
|
The developer portal's check on a push, run here. In order:
|
|
112
112
|
|
|
113
113
|
0. **The manifest.** The rules the portal is known to refuse, and warnings for
|
|
114
|
-
what it would drop: an `auth` that names a host,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
what it would drop: an `auth` that names a host, a `baseUrl` that is not
|
|
115
|
+
`https://`, a request path that is a full URL. And anything that would act as
|
|
116
|
+
a connected account -- a `connection` property, `optionsFrom`,
|
|
117
|
+
`action.connection`, a `trigger`, `auth.provider` -- which only VisualAutomate's
|
|
118
|
+
own apps may do. A declared step (an `action` block) stops here, checked: the
|
|
119
|
+
platform does not run it on a push either. A declared step is published from the portal, not GitHub: New
|
|
120
|
+
module → Call an API, paste its manifest.json, Test the call, publish.
|
|
120
121
|
1. **The platform's code checks.** The same rules the upload applies: only
|
|
121
122
|
allowed packages in `require`, no dynamic `require`, none of the refused
|
|
122
123
|
patterns (`eval`, `process.env`, `import`, …). Code that fails here would be
|
|
@@ -198,11 +199,10 @@ sandbox image the first time, runs every module, and runs them again on every
|
|
|
198
199
|
save. Only the module whose folder changed runs again; a change anywhere else
|
|
199
200
|
runs them all. Ctrl+C stops it.
|
|
200
201
|
|
|
201
|
-
`context.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
when no account is chosen; `context.media` fails with a sentence saying so.
|
|
202
|
+
`context.media` is **not** simulated: it is an ffmpeg container, and pretending
|
|
203
|
+
to be one would produce a plugin that passes here and fails on a canvas. It fails
|
|
204
|
+
with a sentence saying so. There is no `context.connections` for your steps: only
|
|
205
|
+
VisualAutomate's own apps act as a connected account.
|
|
206
206
|
|
|
207
207
|
`visualautomate.test.json` (or `test.json`, or `--input <file>`) seeds the run:
|
|
208
208
|
|
|
@@ -283,8 +283,8 @@ Not from here. Connect the repository to your app on the portal, push your
|
|
|
283
283
|
commit, and the platform runs the same checks `vsa test` runs against every
|
|
284
284
|
module it touched. Publish on the portal takes the code from a commit whose test
|
|
285
285
|
came back on `success`, and a version snapshot is saved so you can roll back. A
|
|
286
|
-
declared step is published once
|
|
287
|
-
its saved version.
|
|
286
|
+
declared step is published once Test the call in the portal's editor has passed
|
|
287
|
+
on its saved version.
|
|
288
288
|
|
|
289
289
|
Comments in `manifest.json` are a convenience of this tool: the file on your
|
|
290
290
|
disk may have them, and they are stripped before the manifest is read.
|