@togglhq/cli 1.13.3 → 1.13.4

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/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-URZBr_aV.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-DdjJ4Ylv.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { dirname, join } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-URZBr_aV.js";
1
+ import { t as createProgram } from "./program-DdjJ4Ylv.js";
2
2
  export { createProgram };
@@ -12247,7 +12247,7 @@ async function resolveApiTokenIdentity(options) {
12247
12247
  organizationId = hostedMcpOrganizationId;
12248
12248
  organizationSource = "api";
12249
12249
  } else throw new ApiTokenAuthError(`Could not determine the organization for workspace ${workspaceId}: API keys cannot list organizations. Set ${TOGGL_ORGANIZATION_ID_ENV} (app URLs read focus.toggl.com/<organization_id>/workspaces/<workspace_id>/…).`);
12250
- const probe = await getJson(`${api}/organizations/${organizationId}/workspaces/${workspaceId}/custom-fields`, token, options);
12250
+ const probe = await getJson(`${api}/organizations/${organizationId}/workspaces/${workspaceId}/projects?per_page=1`, token, options);
12251
12251
  if (probe.status === 401) throw new ApiTokenAuthError(INVALID_KEY_MESSAGE, 401);
12252
12252
  if (probe.status === 403 || probe.status === 404) throw new ApiTokenAuthError(`This API key has no access to workspace ${workspaceId} in organization ${organizationId}. Check ${TOGGL_ORGANIZATION_ID_ENV} and ${TOGGL_WORKSPACE_ID_ENV}.`, probe.status);
12253
12253
  if (probe.status >= 400) throw new ApiTokenAuthError(`Could not verify access to workspace ${workspaceId} in organization ${organizationId} (${probe.status}).`, probe.status);
@@ -29659,4 +29659,4 @@ Common commands:
29659
29659
  //#endregion
29660
29660
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
29661
29661
 
29662
- //# sourceMappingURL=program-URZBr_aV.js.map
29662
+ //# sourceMappingURL=program-DdjJ4Ylv.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-URZBr_aV.js";
1
+ import { t as createProgram } from "./program-DdjJ4Ylv.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",