faces-cli 1.6.12 → 1.6.14

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 CHANGED
@@ -70,7 +70,7 @@ Login stores a JWT at `~/.faces/config.json`. You can also authenticate via envi
70
70
  ```bash
71
71
  export FACES_API_KEY=sk-faces-...
72
72
  export FACES_TOKEN=your_jwt
73
- export FACES_BASE_URL=https://api.faces.sh # optional override
73
+ export FACES_BASE_URL=https://api-alpha.faces.sh # optional override
74
74
  ```
75
75
 
76
76
  ## Plans
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../base.js';
2
- export default class FaceUpdate extends BaseCommand {
2
+ export default class FaceEdit extends BaseCommand {
3
3
  static description: string;
4
4
  static flags: {
5
5
  name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -3,8 +3,8 @@ import { BaseCommand } from '../../base.js';
3
3
  import { FacesAPIError } from '../../client.js';
4
4
  import { CatalogService } from '../../catalog.js';
5
5
  import { renameFaceFields } from '../../utils.js';
6
- export default class FaceUpdate extends BaseCommand {
7
- static description = "Update a face's metadata";
6
+ export default class FaceEdit extends BaseCommand {
7
+ static description = "Edit a face's metadata";
8
8
  static flags = {
9
9
  ...BaseCommand.baseFlags,
10
10
  name: Flags.string({ description: 'New display name' }),
@@ -19,7 +19,7 @@ export default class FaceUpdate extends BaseCommand {
19
19
  face_id: Args.string({ description: 'Face alias', required: true }),
20
20
  };
21
21
  async run() {
22
- const { args, flags } = await this.parse(FaceUpdate);
22
+ const { args, flags } = await this.parse(FaceEdit);
23
23
  const client = this.makeClient(flags);
24
24
  const payload = {};
25
25
  if (flags.name)
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../base.js';
2
- export default class TeamUpdate extends BaseCommand {
2
+ export default class TeamEdit extends BaseCommand {
3
3
  static description: string;
4
4
  static flags: {
5
5
  name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -3,8 +3,8 @@ import fs from 'node:fs';
3
3
  import { BaseCommand } from '../../base.js';
4
4
  import { FacesAPIError } from '../../client.js';
5
5
  import { TeamCatalogService } from '../../team-catalog.js';
6
- export default class TeamUpdate extends BaseCommand {
7
- static description = 'Update a team';
6
+ export default class TeamEdit extends BaseCommand {
7
+ static description = 'Edit a team';
8
8
  static flags = {
9
9
  ...BaseCommand.baseFlags,
10
10
  name: Flags.string({ description: 'New team name' }),
@@ -16,7 +16,7 @@ export default class TeamUpdate extends BaseCommand {
16
16
  team_id: Args.string({ description: 'Team ID', required: true }),
17
17
  };
18
18
  async run() {
19
- const { args, flags } = await this.parse(TeamUpdate);
19
+ const { args, flags } = await this.parse(TeamEdit);
20
20
  const client = this.makeClient(flags);
21
21
  let protocol = flags.protocol;
22
22
  if (flags['protocol-file']) {
package/dist/config.js CHANGED
@@ -47,7 +47,7 @@ export function resolveBaseUrl(override) {
47
47
  const cfg = loadConfig();
48
48
  if (cfg.base_url)
49
49
  return cfg.base_url;
50
- return 'https://api.faces.sh';
50
+ return 'https://api-alpha.faces.sh';
51
51
  }
52
52
  export function resolveToken(override) {
53
53
  // Empty string override means "no token" — don't fall back to config/env