@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.
@@ -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("--timezone <tz>", "IANA timezone (e.g. America/New_York)")
12
- .option("--start-time <iso>", "Start of time range (ISO 8601, inclusive)")
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
- if (opts.endTime && !opts.startTime) {
16
- throw new Error("--end-time requires --start-time.");
17
- }
18
- const params = { timezone: opts.timezone };
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("--timezone <tz>", "IANA timezone (e.g. America/New_York)")
50
- .option("--start-time <iso>", "Start of time range (ISO 8601, inclusive)")
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
- if (opts.endTime && !opts.startTime) {
54
- throw new Error("--end-time requires --start-time.");
55
- }
56
- const params = { timezone: opts.timezone };
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 || {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",