@gobi-ai/cli 0.6.1 → 0.6.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.
- package/dist/commands/sense.js +12 -22
- package/package.json +1 -1
package/dist/commands/sense.js
CHANGED
|
@@ -8,18 +8,13 @@ export function registerSenseCommand(program) {
|
|
|
8
8
|
sense
|
|
9
9
|
.command("activities")
|
|
10
10
|
.description("Fetch activity records within a time range.")
|
|
11
|
-
.requiredOption("--
|
|
12
|
-
.
|
|
13
|
-
.option("--end-time <iso>", "End of time range (ISO 8601, inclusive); requires --start-time")
|
|
11
|
+
.requiredOption("--start-time <iso>", "Start of time range (ISO 8601 UTC, e.g. 2026-03-20T00:00:00Z)")
|
|
12
|
+
.requiredOption("--end-time <iso>", "End of time range (ISO 8601 UTC, e.g. 2026-03-20T23:59:59Z)")
|
|
14
13
|
.action(async (opts) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (opts.startTime)
|
|
20
|
-
params.startTime = opts.startTime;
|
|
21
|
-
if (opts.endTime)
|
|
22
|
-
params.endTime = opts.endTime;
|
|
14
|
+
const params = {
|
|
15
|
+
startTime: opts.startTime,
|
|
16
|
+
endTime: opts.endTime,
|
|
17
|
+
};
|
|
23
18
|
const resp = (await apiGet("/app/activities", params));
|
|
24
19
|
const activities = (resp.activities || []);
|
|
25
20
|
const pagination = (resp.pagination || {});
|
|
@@ -46,18 +41,13 @@ export function registerSenseCommand(program) {
|
|
|
46
41
|
sense
|
|
47
42
|
.command("transcriptions")
|
|
48
43
|
.description("Fetch transcription records within a time range.")
|
|
49
|
-
.requiredOption("--
|
|
50
|
-
.
|
|
51
|
-
.option("--end-time <iso>", "End of time range (ISO 8601, inclusive); requires --start-time")
|
|
44
|
+
.requiredOption("--start-time <iso>", "Start of time range (ISO 8601 UTC, e.g. 2026-03-20T00:00:00Z)")
|
|
45
|
+
.requiredOption("--end-time <iso>", "End of time range (ISO 8601 UTC, e.g. 2026-03-20T23:59:59Z)")
|
|
52
46
|
.action(async (opts) => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (opts.startTime)
|
|
58
|
-
params.startTime = opts.startTime;
|
|
59
|
-
if (opts.endTime)
|
|
60
|
-
params.endTime = opts.endTime;
|
|
47
|
+
const params = {
|
|
48
|
+
startTime: opts.startTime,
|
|
49
|
+
endTime: opts.endTime,
|
|
50
|
+
};
|
|
61
51
|
const resp = (await apiGet("/app/transcriptions", params));
|
|
62
52
|
const transcriptions = (resp.transcriptions || []);
|
|
63
53
|
const pagination = (resp.pagination || {});
|