@slatesvideo/cli 0.5.0 → 0.5.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/dist/commands/status.js +4 -1
- package/package.json +2 -2
package/dist/commands/status.js
CHANGED
|
@@ -10,10 +10,13 @@ export async function runStatus() {
|
|
|
10
10
|
try {
|
|
11
11
|
const cloud = new SlatesCloudClient();
|
|
12
12
|
const me = await cloud.get('/api/agent/me');
|
|
13
|
+
// Credits since the 2026-07-07 re-denomination (credit_balance_cents is
|
|
14
|
+
// a legacy alias carrying the same credit value).
|
|
15
|
+
const balance = me.user.credit_balance ?? me.user.credit_balance_cents ?? 0;
|
|
13
16
|
console.log(`\nLogged in as: ${me.user.email}`);
|
|
14
17
|
console.log(`License: ${me.user.license_status}`);
|
|
15
18
|
console.log(`Tier: ${me.user.tier}`);
|
|
16
|
-
console.log(`Credit balance:
|
|
19
|
+
console.log(`Credit balance: ${balance.toLocaleString('en-US')} credits`);
|
|
17
20
|
console.log(`Scopes: ${me.scopes.join(', ')}`);
|
|
18
21
|
}
|
|
19
22
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slatesvideo/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Slates CLI: drive the Slates AI video studio from your terminal or let Claude Code shell out to it. Includes the bundled agent skills and an MCP client configurator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=18"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@slatesvideo/shared": "^0.5.
|
|
50
|
+
"@slatesvideo/shared": "^0.5.1",
|
|
51
51
|
"commander": "^12.1.0",
|
|
52
52
|
"zod": "^3.23.0"
|
|
53
53
|
},
|