@sylphx/cli 0.29.33 → 0.29.35
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 +31 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ curl -fsSL https://github.com/SylphxAI/sylphx-clients/releases/latest/download/i
|
|
|
8
8
|
sylphx login # approve at sylphx.com/device; the org key goes to the OS keychain
|
|
9
9
|
sylphx login --api-key - # agents and CI: an Access key on stdin (or SYLPHX_API_KEY)
|
|
10
10
|
sylphx token --scope hosting:deploy # one short-lived token (15 min) for one scope, on stdout only
|
|
11
|
-
sylphx logout #
|
|
11
|
+
sylphx logout # forget credentials; supplied API keys need --revoke for revocation
|
|
12
12
|
sylphx link --env orgs/…/envs/… # defaults for this directory (.sylphx/project.json)
|
|
13
13
|
sylphx data databases create main --spec.compute-units 2
|
|
14
14
|
sylphx data databases list -o json
|
|
@@ -26,3 +26,33 @@ sylphx mcp # the MCP server over stdio
|
|
|
26
26
|
- `sylphx api GET /v1/whoami` is the raw escape hatch.
|
|
27
27
|
|
|
28
28
|
`generated/commands.json` is `sylphx-gen` output; never edit it.
|
|
29
|
+
|
|
30
|
+
## Lease request files
|
|
31
|
+
|
|
32
|
+
`--from-file` contains the **whole method request**, not just the HTTP body.
|
|
33
|
+
Lease request field names are checked against the schema before defaults or API
|
|
34
|
+
calls. Unknown or misplaced fields fail with `UNKNOWN_FIELD` and the dotted
|
|
35
|
+
field path; caller-owned map keys remain open.
|
|
36
|
+
|
|
37
|
+
For example, create an Android lease lasting 1800 seconds:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"parent": "orgs/ORG/projects/PROJECT/envs/ENV",
|
|
42
|
+
"lease": {
|
|
43
|
+
"spec": {
|
|
44
|
+
"kind": "android",
|
|
45
|
+
"image": "template:android",
|
|
46
|
+
"shape": "linux-l",
|
|
47
|
+
"ttl": "1800s"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Run `sylphx sandboxes leases create --from-file android.json --output json`.
|
|
54
|
+
A top-level `spec` in this file is invalid: the path is `lease.spec`. The
|
|
55
|
+
server's REST body for `POST /v1/{parent}/leases` is the Lease itself, so its
|
|
56
|
+
body uses a top-level `spec` instead. Do not interchange the two documents.
|
|
57
|
+
After creation the CLI prints the server-resolved kind, image, size and TTL
|
|
58
|
+
on stderr; stdout retains the selected output format.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/cli",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.35",
|
|
4
4
|
"description": "The Sylphx CLI: every Sylphx API method as a command. npm channel of the native sylphx binary.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@sylphx/cli-darwin-arm64": "0.29.
|
|
31
|
-
"@sylphx/cli-darwin-x64": "0.29.
|
|
32
|
-
"@sylphx/cli-linux-arm64": "0.29.
|
|
33
|
-
"@sylphx/cli-linux-x64": "0.29.
|
|
30
|
+
"@sylphx/cli-darwin-arm64": "0.29.35",
|
|
31
|
+
"@sylphx/cli-darwin-x64": "0.29.35",
|
|
32
|
+
"@sylphx/cli-linux-arm64": "0.29.35",
|
|
33
|
+
"@sylphx/cli-linux-x64": "0.29.35"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=18"
|