faces-cli 1.6.8 → 1.6.9

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.
@@ -17,7 +17,7 @@ export default class CompileStats extends BaseCommand {
17
17
  this.error(`Error (${err.statusCode}): ${err.message}`);
18
18
  throw err;
19
19
  }
20
- // Rename face_id alias in the faces array
20
+ // Rename fields for clarity
21
21
  const resp = data;
22
22
  if (Array.isArray(resp.faces)) {
23
23
  for (const f of resp.faces) {
@@ -25,6 +25,15 @@ export default class CompileStats extends BaseCommand {
25
25
  f.alias = f.face_id;
26
26
  delete f.face_id;
27
27
  }
28
+ if (f.tokens_in_graph !== undefined) {
29
+ f.tokens_compiled_current = f.tokens_in_graph;
30
+ delete f.tokens_in_graph;
31
+ }
32
+ if (f.tokens_charged_alltime !== undefined) {
33
+ f.tokens_compiled_alltime = f.tokens_charged_alltime;
34
+ delete f.tokens_charged_alltime;
35
+ }
36
+ delete f.tokens_charged_period;
28
37
  }
29
38
  }
30
39
  if (!this.jsonEnabled())
@@ -5894,5 +5894,5 @@
5894
5894
  ]
5895
5895
  }
5896
5896
  },
5897
- "version": "1.6.8"
5897
+ "version": "1.6.9"
5898
5898
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faces-cli",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "CLI for the Faces AI platform",
5
5
  "type": "module",
6
6
  "author": "sybileak <sybileak@proton.me>",