@thecorporation/cli 26.3.49 → 26.3.51

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/index.js CHANGED
@@ -10917,7 +10917,8 @@ var init_resource_kinds = __esm({
10917
10917
  "safe_note",
10918
10918
  "instrument",
10919
10919
  "share_class",
10920
- "round"
10920
+ "round",
10921
+ "service_request"
10921
10922
  ]);
10922
10923
  ENTITY_SCOPED_KINDS = /* @__PURE__ */ new Set([
10923
10924
  "contact",
@@ -10942,7 +10943,8 @@ var init_resource_kinds = __esm({
10942
10943
  "safe_note",
10943
10944
  "instrument",
10944
10945
  "share_class",
10945
- "round"
10946
+ "round",
10947
+ "service_request"
10946
10948
  ]);
10947
10949
  }
10948
10950
  });
@@ -10955,8 +10957,7 @@ __export(resolve_exports, {
10955
10957
  async function resolveCommand(kind, ref, opts) {
10956
10958
  const normalizedKind = kind.trim().toLowerCase();
10957
10959
  if (!KINDS.has(normalizedKind)) {
10958
- printError(`Unsupported resolve kind: ${kind}`);
10959
- process.exit(1);
10960
+ throw new Error(`Unsupported resolve kind: ${kind}. Supported: ${[...KINDS].join(", ")}`);
10960
10961
  }
10961
10962
  const cfg = requireConfig("api_url", "api_key", "workspace_id");
10962
10963
  const client = new CorpAPIClient(cfg.api_url, cfg.api_key, cfg.workspace_id);
@@ -11059,8 +11060,7 @@ async function resolveCommand(kind, ref, opts) {
11059
11060
  ...meetingId ? { meeting_id: meetingId } : {}
11060
11061
  });
11061
11062
  } catch (err) {
11062
- printError(`Failed to resolve reference: ${err}`);
11063
- process.exit(1);
11063
+ throw new Error(`Failed to resolve reference: ${err}`);
11064
11064
  }
11065
11065
  }
11066
11066
  function requiredEntity(entityId, kind) {
@@ -11096,8 +11096,7 @@ import Table5 from "cli-table3";
11096
11096
  async function findCommand(kind, query, opts) {
11097
11097
  const normalizedKind = kind.trim().toLowerCase();
11098
11098
  if (!KINDS.has(normalizedKind)) {
11099
- printError(`Unsupported find kind: ${kind}`);
11100
- process.exit(1);
11099
+ throw new Error(`Unsupported find kind: ${kind}. Supported: ${[...KINDS].join(", ")}`);
11101
11100
  }
11102
11101
  const cfg = requireConfig("api_url", "api_key", "workspace_id");
11103
11102
  const client = new CorpAPIClient(cfg.api_url, cfg.api_key, cfg.workspace_id);
@@ -11146,8 +11145,7 @@ async function findCommand(kind, query, opts) {
11146
11145
  }
11147
11146
  console.log(table.toString());
11148
11147
  } catch (err) {
11149
- printError(`Failed to find references: ${err}`);
11150
- process.exit(1);
11148
+ throw new Error(`Failed to find references: ${err}`);
11151
11149
  }
11152
11150
  }
11153
11151
  var init_find = __esm({