@formant/formant-cli 0.4.2 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formant/formant-cli",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Formant CLI — manage your robot fleet from the command line",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,10 +0,0 @@
1
- import { BaseCommand } from '../../base-command.js';
2
- export default class DevicesLastSeen extends BaseCommand<typeof DevicesLastSeen> {
3
- static args: {
4
- id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
- };
6
- static description: string;
7
- static examples: string[];
8
- static summary: string;
9
- run(): Promise<Record<string, unknown>>;
10
- }
@@ -1,25 +0,0 @@
1
- import { Args } from '@oclif/core';
2
- import { BaseCommand } from '../../base-command.js';
3
- export default class DevicesLastSeen extends BaseCommand {
4
- static args = {
5
- id: Args.string({ description: 'Device ID (UUID)', required: true }),
6
- };
7
- static description = `Get when a device was last seen online.
8
-
9
- Shows the most recent timestamp when the device was detected as online.`;
10
- static examples = [
11
- '<%= config.bin %> device last-seen <device-id>',
12
- '<%= config.bin %> device last-seen <device-id> --json',
13
- ];
14
- static summary = 'Get device last seen timestamp';
15
- async run() {
16
- const result = await this.api('query', `online-devices/${this.args.id}/last-seen`, { method: 'GET' });
17
- if (!this.jsonEnabled()) {
18
- this.log(`\nDevice Last Seen (${this.env}):\n`);
19
- this.log(` Device ID: ${this.args.id}`);
20
- this.log(` Last Seen: ${result.lastSeen || 'Never'}\n`);
21
- }
22
- return result;
23
- }
24
- }
25
- //# sourceMappingURL=last-seen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"last-seen.js","sourceRoot":"","sources":["../../../src/commands/device/last-seen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAA;AAEjD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAmC;IAC9E,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;KACnE,CAAA;IAED,MAAM,CAAU,WAAW,GAAG;;wEAEwC,CAAA;IAEtE,MAAM,CAAU,QAAQ,GAAG;QACzB,gDAAgD;QAChD,uDAAuD;KACxD,CAAA;IAED,MAAM,CAAU,OAAO,GAAG,gCAAgC,CAAA;IAEnD,KAAK,CAAC,GAAG;QACd,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAC3B,OAAO,EACP,kBAAkB,IAAI,CAAC,IAAI,CAAC,EAAE,YAAY,EAC1C,EAAC,MAAM,EAAE,KAAK,EAAC,CAChB,CAAA;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACxB,IAAI,CAAC,GAAG,CAAC,uBAAuB,IAAI,CAAC,GAAG,MAAM,CAAC,CAAA;YAC/C,IAAI,CAAC,GAAG,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;YACxC,IAAI,CAAC,GAAG,CAAC,gBAAgB,MAAM,CAAC,QAAQ,IAAI,OAAO,IAAI,CAAC,CAAA;QAC1D,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC"}