@gravity-rail/cli 0.18.0 → 0.18.1
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 +8 -0
- package/dist/gr.js +77 -42
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +8 -21
- package/dist/lib.js.map +1 -1
- package/package.json +5 -5
package/dist/lib.js
CHANGED
|
@@ -3531,31 +3531,19 @@ var workspacesDomain = {
|
|
|
3531
3531
|
description: "Organization UUID",
|
|
3532
3532
|
required: true
|
|
3533
3533
|
},
|
|
3534
|
-
{ name: "product", description: "Workspace plan product ID", required: true },
|
|
3535
3534
|
{ name: "name", description: "Workspace name", required: true },
|
|
3536
|
-
{ name: "period", description: "Billing period: 'month' or 'year'", default: "month" },
|
|
3537
3535
|
{ name: "slug", description: "Workspace slug (optional)" },
|
|
3538
3536
|
{ name: "template", description: "Template workspace UUID to clone (optional)" }
|
|
3539
3537
|
],
|
|
3540
|
-
examples: ['gr workspaces create --org <org-uuid> --
|
|
3538
|
+
examples: ['gr workspaces create --org <org-uuid> --name "Front Desk"'],
|
|
3541
3539
|
handler: async ({ ctx, args }) => {
|
|
3542
3540
|
const orgUuid = args.org ?? args["org-uuid"];
|
|
3543
3541
|
const name = args.name;
|
|
3544
|
-
const productRaw = args.product;
|
|
3545
3542
|
if (!orgUuid) throw new CLIError("Missing required argument: --org <org-uuid>");
|
|
3546
3543
|
if (!name) throw new CLIError("Missing required argument: --name");
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
);
|
|
3551
|
-
}
|
|
3552
|
-
const payload = {
|
|
3553
|
-
name,
|
|
3554
|
-
productId: Number(productRaw),
|
|
3555
|
-
planPeriod: args.period || "month"
|
|
3556
|
-
};
|
|
3557
|
-
if (args.slug) payload.slug = args.slug;
|
|
3558
|
-
if (args.template) payload.templateWorkspaceUuid = args.template;
|
|
3544
|
+
const payload = { name };
|
|
3545
|
+
if (args.slug) payload.slug = String(args.slug);
|
|
3546
|
+
if (args.template) payload.templateWorkspaceUuid = String(args.template);
|
|
3559
3547
|
try {
|
|
3560
3548
|
const result2 = await requireAuth(ctx).apiClient.createOrganizationWorkspace(
|
|
3561
3549
|
orgUuid,
|
|
@@ -8850,7 +8838,7 @@ function isTable(ctx) {
|
|
|
8850
8838
|
}
|
|
8851
8839
|
function productType(args) {
|
|
8852
8840
|
const t = args.type ?? args["product-type"];
|
|
8853
|
-
if (t === "org" || t === "
|
|
8841
|
+
if (t === "org" || t === "addon") return t;
|
|
8854
8842
|
return void 0;
|
|
8855
8843
|
}
|
|
8856
8844
|
var billingDomain = {
|
|
@@ -8864,7 +8852,7 @@ var billingDomain = {
|
|
|
8864
8852
|
args: [
|
|
8865
8853
|
{
|
|
8866
8854
|
name: "type",
|
|
8867
|
-
description: "Filter by
|
|
8855
|
+
description: "Filter by product type: 'org' or 'addon'"
|
|
8868
8856
|
}
|
|
8869
8857
|
],
|
|
8870
8858
|
examples: ["gr billing products --type org"],
|
|
@@ -8974,8 +8962,7 @@ Then check it landed:
|
|
|
8974
8962
|
);
|
|
8975
8963
|
hint(ctx, [
|
|
8976
8964
|
"You have an active subscription. Add a workspace:",
|
|
8977
|
-
|
|
8978
|
-
` gr workspaces create --org ${orgUuid} --product <id> --name "My Workspace"`
|
|
8965
|
+
` gr workspaces create --org ${orgUuid} --name "My Workspace"`
|
|
8979
8966
|
]);
|
|
8980
8967
|
}
|
|
8981
8968
|
}
|
|
@@ -20887,7 +20874,7 @@ Flags for unattended turns:
|
|
|
20887
20874
|
- \`--auto-approve\`: skip HITL tool approval where policy allows
|
|
20888
20875
|
- \`--allow-write\`: required for create/update tools
|
|
20889
20876
|
|
|
20890
|
-
The concierge can: list/create orgs, list
|
|
20877
|
+
The concierge can: list/create orgs, list organization plans and add-ons, create Stripe checkout sessions, and \`create_workspace\`.
|
|
20891
20878
|
|
|
20892
20879
|
## Manual CLI path (if not using concierge)
|
|
20893
20880
|
1. \`gr whoami\` \u2014 confirm account
|