faces-cli 1.3.1 → 1.3.2

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.
@@ -22,6 +22,7 @@ export default class AuthRegister extends BaseCommand {
22
22
  password: flags.password,
23
23
  name: flags.name ?? flags.username,
24
24
  username: flags.username,
25
+ source: 'cli',
25
26
  };
26
27
  if (flags['invite-key'])
27
28
  payload.invite_key = flags['invite-key'];
@@ -1759,10 +1759,10 @@
1759
1759
  "upload.js"
1760
1760
  ]
1761
1761
  },
1762
- "billing:balance": {
1762
+ "keys:create": {
1763
1763
  "aliases": [],
1764
1764
  "args": {},
1765
- "description": "Show credit balance and payment method status",
1765
+ "description": "Create a new API key (JWT required)",
1766
1766
  "flags": {
1767
1767
  "json": {
1768
1768
  "description": "Format output as json.",
@@ -1794,11 +1794,47 @@
1794
1794
  "hasDynamicHelp": false,
1795
1795
  "multiple": false,
1796
1796
  "type": "option"
1797
+ },
1798
+ "name": {
1799
+ "description": "Key name/label",
1800
+ "name": "name",
1801
+ "required": true,
1802
+ "hasDynamicHelp": false,
1803
+ "multiple": false,
1804
+ "type": "option"
1805
+ },
1806
+ "expires-days": {
1807
+ "description": "Expiry in days (omit for no expiry)",
1808
+ "name": "expires-days",
1809
+ "hasDynamicHelp": false,
1810
+ "multiple": false,
1811
+ "type": "option"
1812
+ },
1813
+ "budget": {
1814
+ "description": "Spend budget in USD",
1815
+ "name": "budget",
1816
+ "hasDynamicHelp": false,
1817
+ "multiple": false,
1818
+ "type": "option"
1819
+ },
1820
+ "face": {
1821
+ "description": "Allowed face username (repeatable)",
1822
+ "name": "face",
1823
+ "hasDynamicHelp": false,
1824
+ "multiple": true,
1825
+ "type": "option"
1826
+ },
1827
+ "model": {
1828
+ "description": "Allowed model name (repeatable)",
1829
+ "name": "model",
1830
+ "hasDynamicHelp": false,
1831
+ "multiple": true,
1832
+ "type": "option"
1797
1833
  }
1798
1834
  },
1799
1835
  "hasDynamicHelp": false,
1800
1836
  "hiddenAliases": [],
1801
- "id": "billing:balance",
1837
+ "id": "keys:create",
1802
1838
  "pluginAlias": "faces-cli",
1803
1839
  "pluginName": "faces-cli",
1804
1840
  "pluginType": "core",
@@ -1808,14 +1844,14 @@
1808
1844
  "relativePath": [
1809
1845
  "dist",
1810
1846
  "commands",
1811
- "billing",
1812
- "balance.js"
1847
+ "keys",
1848
+ "create.js"
1813
1849
  ]
1814
1850
  },
1815
- "billing:card-setup": {
1851
+ "keys:list": {
1816
1852
  "aliases": [],
1817
1853
  "args": {},
1818
- "description": "Get a Stripe card setup URL to save a payment method",
1854
+ "description": "List all API keys (JWT required)",
1819
1855
  "flags": {
1820
1856
  "json": {
1821
1857
  "description": "Format output as json.",
@@ -1851,7 +1887,7 @@
1851
1887
  },
1852
1888
  "hasDynamicHelp": false,
1853
1889
  "hiddenAliases": [],
1854
- "id": "billing:card-setup",
1890
+ "id": "keys:list",
1855
1891
  "pluginAlias": "faces-cli",
1856
1892
  "pluginName": "faces-cli",
1857
1893
  "pluginType": "core",
@@ -1861,14 +1897,20 @@
1861
1897
  "relativePath": [
1862
1898
  "dist",
1863
1899
  "commands",
1864
- "billing",
1865
- "card-setup.js"
1900
+ "keys",
1901
+ "list.js"
1866
1902
  ]
1867
1903
  },
1868
- "billing:checkout": {
1904
+ "keys:revoke": {
1869
1905
  "aliases": [],
1870
- "args": {},
1871
- "description": "Get a Stripe checkout URL to upgrade your subscription plan",
1906
+ "args": {
1907
+ "key_id": {
1908
+ "description": "Key ID",
1909
+ "name": "key_id",
1910
+ "required": true
1911
+ }
1912
+ },
1913
+ "description": "Revoke an API key (JWT required)",
1872
1914
  "flags": {
1873
1915
  "json": {
1874
1916
  "description": "Format output as json.",
@@ -1901,22 +1943,16 @@
1901
1943
  "multiple": false,
1902
1944
  "type": "option"
1903
1945
  },
1904
- "plan": {
1905
- "description": "Plan to upgrade to",
1906
- "name": "plan",
1907
- "required": true,
1908
- "hasDynamicHelp": false,
1909
- "multiple": false,
1910
- "options": [
1911
- "standard",
1912
- "pro"
1913
- ],
1914
- "type": "option"
1946
+ "yes": {
1947
+ "description": "Skip confirmation",
1948
+ "name": "yes",
1949
+ "allowNo": false,
1950
+ "type": "boolean"
1915
1951
  }
1916
1952
  },
1917
1953
  "hasDynamicHelp": false,
1918
1954
  "hiddenAliases": [],
1919
- "id": "billing:checkout",
1955
+ "id": "keys:revoke",
1920
1956
  "pluginAlias": "faces-cli",
1921
1957
  "pluginName": "faces-cli",
1922
1958
  "pluginType": "core",
@@ -1926,14 +1962,20 @@
1926
1962
  "relativePath": [
1927
1963
  "dist",
1928
1964
  "commands",
1929
- "billing",
1930
- "checkout.js"
1965
+ "keys",
1966
+ "revoke.js"
1931
1967
  ]
1932
1968
  },
1933
- "billing:llm-costs": {
1969
+ "keys:update": {
1934
1970
  "aliases": [],
1935
- "args": {},
1936
- "description": "List available LLMs and their per-token costs",
1971
+ "args": {
1972
+ "key_id": {
1973
+ "description": "Key ID",
1974
+ "name": "key_id",
1975
+ "required": true
1976
+ }
1977
+ },
1978
+ "description": "Update API key metadata (JWT required)",
1937
1979
  "flags": {
1938
1980
  "json": {
1939
1981
  "description": "Format output as json.",
@@ -1966,17 +2008,30 @@
1966
2008
  "multiple": false,
1967
2009
  "type": "option"
1968
2010
  },
1969
- "provider": {
1970
- "description": "Filter by provider (e.g. openai, anthropic)",
1971
- "name": "provider",
2011
+ "name": {
2012
+ "description": "New key name",
2013
+ "name": "name",
1972
2014
  "hasDynamicHelp": false,
1973
2015
  "multiple": false,
1974
2016
  "type": "option"
2017
+ },
2018
+ "budget": {
2019
+ "description": "New spend budget in USD",
2020
+ "name": "budget",
2021
+ "hasDynamicHelp": false,
2022
+ "multiple": false,
2023
+ "type": "option"
2024
+ },
2025
+ "reset-spent": {
2026
+ "description": "Reset spent amount to zero",
2027
+ "name": "reset-spent",
2028
+ "allowNo": false,
2029
+ "type": "boolean"
1975
2030
  }
1976
2031
  },
1977
2032
  "hasDynamicHelp": false,
1978
2033
  "hiddenAliases": [],
1979
- "id": "billing:llm-costs",
2034
+ "id": "keys:update",
1980
2035
  "pluginAlias": "faces-cli",
1981
2036
  "pluginName": "faces-cli",
1982
2037
  "pluginType": "core",
@@ -1986,14 +2041,14 @@
1986
2041
  "relativePath": [
1987
2042
  "dist",
1988
2043
  "commands",
1989
- "billing",
1990
- "llm-costs.js"
2044
+ "keys",
2045
+ "update.js"
1991
2046
  ]
1992
2047
  },
1993
- "billing:quota": {
2048
+ "billing:balance": {
1994
2049
  "aliases": [],
1995
2050
  "args": {},
1996
- "description": "Show compile token quota and per-face stats",
2051
+ "description": "Show credit balance and payment method status",
1997
2052
  "flags": {
1998
2053
  "json": {
1999
2054
  "description": "Format output as json.",
@@ -2029,7 +2084,7 @@
2029
2084
  },
2030
2085
  "hasDynamicHelp": false,
2031
2086
  "hiddenAliases": [],
2032
- "id": "billing:quota",
2087
+ "id": "billing:balance",
2033
2088
  "pluginAlias": "faces-cli",
2034
2089
  "pluginName": "faces-cli",
2035
2090
  "pluginType": "core",
@@ -2040,13 +2095,13 @@
2040
2095
  "dist",
2041
2096
  "commands",
2042
2097
  "billing",
2043
- "quota.js"
2098
+ "balance.js"
2044
2099
  ]
2045
2100
  },
2046
- "billing:subscription": {
2101
+ "billing:card-setup": {
2047
2102
  "aliases": [],
2048
2103
  "args": {},
2049
- "description": "Show current plan, face count, and renewal date",
2104
+ "description": "Get a Stripe card setup URL to save a payment method",
2050
2105
  "flags": {
2051
2106
  "json": {
2052
2107
  "description": "Format output as json.",
@@ -2082,7 +2137,7 @@
2082
2137
  },
2083
2138
  "hasDynamicHelp": false,
2084
2139
  "hiddenAliases": [],
2085
- "id": "billing:subscription",
2140
+ "id": "billing:card-setup",
2086
2141
  "pluginAlias": "faces-cli",
2087
2142
  "pluginName": "faces-cli",
2088
2143
  "pluginType": "core",
@@ -2093,13 +2148,13 @@
2093
2148
  "dist",
2094
2149
  "commands",
2095
2150
  "billing",
2096
- "subscription.js"
2151
+ "card-setup.js"
2097
2152
  ]
2098
2153
  },
2099
- "billing:topup": {
2154
+ "billing:checkout": {
2100
2155
  "aliases": [],
2101
2156
  "args": {},
2102
- "description": "Top up credit balance using saved payment method",
2157
+ "description": "Get a Stripe checkout URL to upgrade your subscription plan",
2103
2158
  "flags": {
2104
2159
  "json": {
2105
2160
  "description": "Format output as json.",
@@ -2132,25 +2187,22 @@
2132
2187
  "multiple": false,
2133
2188
  "type": "option"
2134
2189
  },
2135
- "amount": {
2136
- "description": "Top-up amount in USD (min $1)",
2137
- "name": "amount",
2190
+ "plan": {
2191
+ "description": "Plan to upgrade to",
2192
+ "name": "plan",
2138
2193
  "required": true,
2139
2194
  "hasDynamicHelp": false,
2140
2195
  "multiple": false,
2141
- "type": "option"
2142
- },
2143
- "payment-ref": {
2144
- "description": "Payment reference (admin/test path)",
2145
- "name": "payment-ref",
2146
- "hasDynamicHelp": false,
2147
- "multiple": false,
2196
+ "options": [
2197
+ "standard",
2198
+ "pro"
2199
+ ],
2148
2200
  "type": "option"
2149
2201
  }
2150
2202
  },
2151
2203
  "hasDynamicHelp": false,
2152
2204
  "hiddenAliases": [],
2153
- "id": "billing:topup",
2205
+ "id": "billing:checkout",
2154
2206
  "pluginAlias": "faces-cli",
2155
2207
  "pluginName": "faces-cli",
2156
2208
  "pluginType": "core",
@@ -2161,13 +2213,13 @@
2161
2213
  "dist",
2162
2214
  "commands",
2163
2215
  "billing",
2164
- "topup.js"
2216
+ "checkout.js"
2165
2217
  ]
2166
2218
  },
2167
- "billing:usage": {
2219
+ "billing:llm-costs": {
2168
2220
  "aliases": [],
2169
2221
  "args": {},
2170
- "description": "Aggregated usage analytics",
2222
+ "description": "List available LLMs and their per-token costs",
2171
2223
  "flags": {
2172
2224
  "json": {
2173
2225
  "description": "Format output as json.",
@@ -2200,29 +2252,9 @@
2200
2252
  "multiple": false,
2201
2253
  "type": "option"
2202
2254
  },
2203
- "group-by": {
2204
- "description": "Group results",
2205
- "name": "group-by",
2206
- "hasDynamicHelp": false,
2207
- "multiple": false,
2208
- "options": [
2209
- "api_key",
2210
- "model",
2211
- "llm",
2212
- "date"
2213
- ],
2214
- "type": "option"
2215
- },
2216
- "from": {
2217
- "description": "Start date (YYYY-MM-DD)",
2218
- "name": "from",
2219
- "hasDynamicHelp": false,
2220
- "multiple": false,
2221
- "type": "option"
2222
- },
2223
- "to": {
2224
- "description": "End date (YYYY-MM-DD)",
2225
- "name": "to",
2255
+ "provider": {
2256
+ "description": "Filter by provider (e.g. openai, anthropic)",
2257
+ "name": "provider",
2226
2258
  "hasDynamicHelp": false,
2227
2259
  "multiple": false,
2228
2260
  "type": "option"
@@ -2230,7 +2262,7 @@
2230
2262
  },
2231
2263
  "hasDynamicHelp": false,
2232
2264
  "hiddenAliases": [],
2233
- "id": "billing:usage",
2265
+ "id": "billing:llm-costs",
2234
2266
  "pluginAlias": "faces-cli",
2235
2267
  "pluginName": "faces-cli",
2236
2268
  "pluginType": "core",
@@ -2241,13 +2273,13 @@
2241
2273
  "dist",
2242
2274
  "commands",
2243
2275
  "billing",
2244
- "usage.js"
2276
+ "llm-costs.js"
2245
2277
  ]
2246
2278
  },
2247
- "keys:create": {
2279
+ "billing:quota": {
2248
2280
  "aliases": [],
2249
2281
  "args": {},
2250
- "description": "Create a new API key (JWT required)",
2282
+ "description": "Show compile token quota and per-face stats",
2251
2283
  "flags": {
2252
2284
  "json": {
2253
2285
  "description": "Format output as json.",
@@ -2279,47 +2311,11 @@
2279
2311
  "hasDynamicHelp": false,
2280
2312
  "multiple": false,
2281
2313
  "type": "option"
2282
- },
2283
- "name": {
2284
- "description": "Key name/label",
2285
- "name": "name",
2286
- "required": true,
2287
- "hasDynamicHelp": false,
2288
- "multiple": false,
2289
- "type": "option"
2290
- },
2291
- "expires-days": {
2292
- "description": "Expiry in days (omit for no expiry)",
2293
- "name": "expires-days",
2294
- "hasDynamicHelp": false,
2295
- "multiple": false,
2296
- "type": "option"
2297
- },
2298
- "budget": {
2299
- "description": "Spend budget in USD",
2300
- "name": "budget",
2301
- "hasDynamicHelp": false,
2302
- "multiple": false,
2303
- "type": "option"
2304
- },
2305
- "face": {
2306
- "description": "Allowed face username (repeatable)",
2307
- "name": "face",
2308
- "hasDynamicHelp": false,
2309
- "multiple": true,
2310
- "type": "option"
2311
- },
2312
- "model": {
2313
- "description": "Allowed model name (repeatable)",
2314
- "name": "model",
2315
- "hasDynamicHelp": false,
2316
- "multiple": true,
2317
- "type": "option"
2318
2314
  }
2319
2315
  },
2320
2316
  "hasDynamicHelp": false,
2321
2317
  "hiddenAliases": [],
2322
- "id": "keys:create",
2318
+ "id": "billing:quota",
2323
2319
  "pluginAlias": "faces-cli",
2324
2320
  "pluginName": "faces-cli",
2325
2321
  "pluginType": "core",
@@ -2329,14 +2325,14 @@
2329
2325
  "relativePath": [
2330
2326
  "dist",
2331
2327
  "commands",
2332
- "keys",
2333
- "create.js"
2328
+ "billing",
2329
+ "quota.js"
2334
2330
  ]
2335
2331
  },
2336
- "keys:list": {
2332
+ "billing:subscription": {
2337
2333
  "aliases": [],
2338
2334
  "args": {},
2339
- "description": "List all API keys (JWT required)",
2335
+ "description": "Show current plan, face count, and renewal date",
2340
2336
  "flags": {
2341
2337
  "json": {
2342
2338
  "description": "Format output as json.",
@@ -2372,7 +2368,7 @@
2372
2368
  },
2373
2369
  "hasDynamicHelp": false,
2374
2370
  "hiddenAliases": [],
2375
- "id": "keys:list",
2371
+ "id": "billing:subscription",
2376
2372
  "pluginAlias": "faces-cli",
2377
2373
  "pluginName": "faces-cli",
2378
2374
  "pluginType": "core",
@@ -2382,20 +2378,14 @@
2382
2378
  "relativePath": [
2383
2379
  "dist",
2384
2380
  "commands",
2385
- "keys",
2386
- "list.js"
2381
+ "billing",
2382
+ "subscription.js"
2387
2383
  ]
2388
2384
  },
2389
- "keys:revoke": {
2385
+ "billing:topup": {
2390
2386
  "aliases": [],
2391
- "args": {
2392
- "key_id": {
2393
- "description": "Key ID",
2394
- "name": "key_id",
2395
- "required": true
2396
- }
2397
- },
2398
- "description": "Revoke an API key (JWT required)",
2387
+ "args": {},
2388
+ "description": "Top up credit balance using saved payment method",
2399
2389
  "flags": {
2400
2390
  "json": {
2401
2391
  "description": "Format output as json.",
@@ -2428,16 +2418,25 @@
2428
2418
  "multiple": false,
2429
2419
  "type": "option"
2430
2420
  },
2431
- "yes": {
2432
- "description": "Skip confirmation",
2433
- "name": "yes",
2434
- "allowNo": false,
2435
- "type": "boolean"
2421
+ "amount": {
2422
+ "description": "Top-up amount in USD (min $1)",
2423
+ "name": "amount",
2424
+ "required": true,
2425
+ "hasDynamicHelp": false,
2426
+ "multiple": false,
2427
+ "type": "option"
2428
+ },
2429
+ "payment-ref": {
2430
+ "description": "Payment reference (admin/test path)",
2431
+ "name": "payment-ref",
2432
+ "hasDynamicHelp": false,
2433
+ "multiple": false,
2434
+ "type": "option"
2436
2435
  }
2437
2436
  },
2438
2437
  "hasDynamicHelp": false,
2439
2438
  "hiddenAliases": [],
2440
- "id": "keys:revoke",
2439
+ "id": "billing:topup",
2441
2440
  "pluginAlias": "faces-cli",
2442
2441
  "pluginName": "faces-cli",
2443
2442
  "pluginType": "core",
@@ -2447,20 +2446,14 @@
2447
2446
  "relativePath": [
2448
2447
  "dist",
2449
2448
  "commands",
2450
- "keys",
2451
- "revoke.js"
2449
+ "billing",
2450
+ "topup.js"
2452
2451
  ]
2453
2452
  },
2454
- "keys:update": {
2453
+ "billing:usage": {
2455
2454
  "aliases": [],
2456
- "args": {
2457
- "key_id": {
2458
- "description": "Key ID",
2459
- "name": "key_id",
2460
- "required": true
2461
- }
2462
- },
2463
- "description": "Update API key metadata (JWT required)",
2455
+ "args": {},
2456
+ "description": "Aggregated usage analytics",
2464
2457
  "flags": {
2465
2458
  "json": {
2466
2459
  "description": "Format output as json.",
@@ -2493,30 +2486,37 @@
2493
2486
  "multiple": false,
2494
2487
  "type": "option"
2495
2488
  },
2496
- "name": {
2497
- "description": "New key name",
2498
- "name": "name",
2489
+ "group-by": {
2490
+ "description": "Group results",
2491
+ "name": "group-by",
2499
2492
  "hasDynamicHelp": false,
2500
2493
  "multiple": false,
2494
+ "options": [
2495
+ "api_key",
2496
+ "model",
2497
+ "llm",
2498
+ "date"
2499
+ ],
2501
2500
  "type": "option"
2502
2501
  },
2503
- "budget": {
2504
- "description": "New spend budget in USD",
2505
- "name": "budget",
2502
+ "from": {
2503
+ "description": "Start date (YYYY-MM-DD)",
2504
+ "name": "from",
2506
2505
  "hasDynamicHelp": false,
2507
2506
  "multiple": false,
2508
2507
  "type": "option"
2509
2508
  },
2510
- "reset-spent": {
2511
- "description": "Reset spent amount to zero",
2512
- "name": "reset-spent",
2513
- "allowNo": false,
2514
- "type": "boolean"
2509
+ "to": {
2510
+ "description": "End date (YYYY-MM-DD)",
2511
+ "name": "to",
2512
+ "hasDynamicHelp": false,
2513
+ "multiple": false,
2514
+ "type": "option"
2515
2515
  }
2516
2516
  },
2517
2517
  "hasDynamicHelp": false,
2518
2518
  "hiddenAliases": [],
2519
- "id": "keys:update",
2519
+ "id": "billing:usage",
2520
2520
  "pluginAlias": "faces-cli",
2521
2521
  "pluginName": "faces-cli",
2522
2522
  "pluginType": "core",
@@ -2526,8 +2526,8 @@
2526
2526
  "relativePath": [
2527
2527
  "dist",
2528
2528
  "commands",
2529
- "keys",
2530
- "update.js"
2529
+ "billing",
2530
+ "usage.js"
2531
2531
  ]
2532
2532
  },
2533
2533
  "compile:thread:create": {
@@ -3174,5 +3174,5 @@
3174
3174
  ]
3175
3175
  }
3176
3176
  },
3177
- "version": "1.3.1"
3177
+ "version": "1.3.2"
3178
3178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faces-cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "CLI for the Faces AI platform",
5
5
  "type": "module",
6
6
  "author": "sybileak <sybileak@proton.me>",