@astralos/cli 0.1.6 → 0.1.7
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/dist/astral.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ astral workspace current
|
|
|
24
24
|
astral tools list
|
|
25
25
|
astral tools describe code.list_repos
|
|
26
26
|
astral tools call code.list_repos --input '{}'
|
|
27
|
+
astral domains --help
|
|
27
28
|
astral link
|
|
28
29
|
astral deploy
|
|
29
30
|
astral agent-setup
|
|
@@ -76,6 +77,34 @@ pushes. So for plain git, the helper always asks for the push password or
|
|
|
76
77
|
token first (one repo, short-lived). Without push access it gets a read one:
|
|
77
78
|
a clone or fetch works, and a push fails with a permission error.
|
|
78
79
|
|
|
80
|
+
## Domains
|
|
81
|
+
|
|
82
|
+
`astral domains` loads commands and flags from your workspace's catalog.
|
|
83
|
+
Only tools in that catalog appear in the group.
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
astral domains search
|
|
87
|
+
astral domains list
|
|
88
|
+
astral domains get
|
|
89
|
+
astral domains price
|
|
90
|
+
astral domains dns-list
|
|
91
|
+
astral domains dns-create
|
|
92
|
+
astral domains dns-delete
|
|
93
|
+
astral domains connect-to-site
|
|
94
|
+
astral domains disconnect-from-site
|
|
95
|
+
astral domains add-external
|
|
96
|
+
astral domains remove-external
|
|
97
|
+
astral domains verify
|
|
98
|
+
astral domains set-auto-renew
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Use each command's `--help` to see its required input. Path parameters become
|
|
102
|
+
flags: `id` becomes `--id`, and `record_id` becomes `--record-id`.
|
|
103
|
+
|
|
104
|
+
Domain purchases are paid and non-refundable. `domains.buy` is not a generated
|
|
105
|
+
command. Use `astral call domains.buy --input '<json>'` through the normal
|
|
106
|
+
approval flow.
|
|
107
|
+
|
|
79
108
|
## Agent instructions
|
|
80
109
|
|
|
81
110
|
`astral agent-setup` prints a marked AGENTS.md snippet. It needs no sign-in.
|
package/dist/astral.js
CHANGED
|
@@ -10275,7 +10275,7 @@ var ASTRAL_APPROVAL_HEADER = "Astral-Approval";
|
|
|
10275
10275
|
// package.json
|
|
10276
10276
|
var package_default = {
|
|
10277
10277
|
name: "@astralos/cli",
|
|
10278
|
-
version: "0.1.
|
|
10278
|
+
version: "0.1.7",
|
|
10279
10279
|
license: "MIT",
|
|
10280
10280
|
description: "The Astral command line. Every Astral tool, from a terminal or an agent.",
|
|
10281
10281
|
publishConfig: {
|
|
@@ -11481,12 +11481,13 @@ var registerTool = (command, tool, runtime) => {
|
|
|
11481
11481
|
});
|
|
11482
11482
|
};
|
|
11483
11483
|
var findCommand = (program, name) => program.commands.find((command) => command.name() === name || command.aliases().includes(name));
|
|
11484
|
+
var isLeafCommand = (command) => command.commands.length === 0 && command.name() !== "domains";
|
|
11484
11485
|
var addGeneratedCommands = (program, runtime, catalog) => {
|
|
11485
11486
|
for (const tool of catalog.tools) {
|
|
11486
|
-
if (CREDENTIAL_TOOLS.has(tool.name))
|
|
11487
|
+
if (CREDENTIAL_TOOLS.has(tool.name) || tool.name === "domains.buy")
|
|
11487
11488
|
continue;
|
|
11488
11489
|
let app = findCommand(program, tool.app);
|
|
11489
|
-
if (app && app
|
|
11490
|
+
if (app && isLeafCommand(app))
|
|
11490
11491
|
continue;
|
|
11491
11492
|
if (!app)
|
|
11492
11493
|
app = program.command(tool.app).description(`tools from ${tool.app}`);
|
|
@@ -11505,7 +11506,7 @@ var registerGenerated = async (program, runtime, argv) => {
|
|
|
11505
11506
|
return;
|
|
11506
11507
|
const app = findCommand(program, name);
|
|
11507
11508
|
const toolName = tokens.slice(groupIndex + 1).find((token) => !token.startsWith("-"));
|
|
11508
|
-
if (app && (app
|
|
11509
|
+
if (app && (isLeafCommand(app) || toolName && findCommand(app, toolName)))
|
|
11509
11510
|
return;
|
|
11510
11511
|
try {
|
|
11511
11512
|
addGeneratedCommands(program, runtime, await loadCatalog(runtime, globalsOf(program)));
|
|
@@ -20207,6 +20208,7 @@ var buildProgram = async (runtime) => {
|
|
|
20207
20208
|
registerTools(program, runtime);
|
|
20208
20209
|
registerProject(program, runtime);
|
|
20209
20210
|
registerSitesLogs(program, runtime);
|
|
20211
|
+
program.command("domains").description("manage domains");
|
|
20210
20212
|
return program;
|
|
20211
20213
|
};
|
|
20212
20214
|
var run = async (argv, runtime) => {
|