sim 2.1.6-dev.86.1 → 2.1.6-dev.88.1

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2334,6 +2334,7 @@ function embeddedProfile() {
2334
2334
  apiKey: ctx.identity.apiKey,
2335
2335
  workspaceId: ctx.identity.workspaceId ?? null,
2336
2336
  output: "json",
2337
+ ...ctx.identity.transport ? { transport: ctx.identity.transport } : {},
2337
2338
  sources: { endpoint: "flag", apiKey: "flag", workspaceId: "flag", output: "flag" }
2338
2339
  };
2339
2340
  }
@@ -3001,7 +3002,7 @@ class SimClient {
3001
3002
  const startedAt = performance.now();
3002
3003
  let response;
3003
3004
  try {
3004
- response = await fetch(url, {
3005
+ response = await (this.profile.transport ?? fetch)(url, {
3005
3006
  method,
3006
3007
  headers: {
3007
3008
  ...apiKey ? { "x-api-key": apiKey } : {},
@@ -6753,7 +6754,7 @@ var V2_OPERATIONS = {
6753
6754
  summary: "Delete Files",
6754
6755
  body: {
6755
6756
  workspaceId: { kind: "string", required: true, describe: "Workspace containing the files." },
6756
- fileIds: { kind: "array", required: true, describe: "File identifiers to update." }
6757
+ fileIds: { kind: "array", required: true, describe: "File identifiers to delete." }
6757
6758
  }
6758
6759
  },
6759
6760
  bulkDeleteTables: {
@@ -11799,7 +11800,7 @@ function logoutCommand() {
11799
11800
  }
11800
11801
  writeCredentialsProfile(profile.name, null);
11801
11802
  console.log(source_default.green(`✓ Removed the stored key for profile "${safeOneLine(profile.name)}".`));
11802
- console.log(source_default.dim(" The key itself is still active — revoke it in Settings → API keys."));
11803
+ console.log(source_default.dim(" The key itself is still active — revoke it in Settings → Sim API keys."));
11803
11804
  });
11804
11805
  }
11805
11806
  async function readKeyType(client) {
@@ -16074,7 +16075,7 @@ function followOrDelegate(previous) {
16074
16075
  const flags = command.optsWithGlobals();
16075
16076
  if (flags.follow !== true) {
16076
16077
  if (Array.isArray(flags.selectOutput) && flags.selectOutput.length > 0 && flags.async === true) {
16077
- throw new SimApiError("--select-output names outputs of a completed run, and --async returns as soon as the run is queued. Drop one of them, or read the finished run with: sim workflows runs get <runId> --workflow <workflowId> --select-output <blockId>[.path] — that resource matches block ids, not the block names --select-output takes here.", 0);
16078
+ throw new SimApiError("--select-output names outputs of a completed run, and --async returns as soon as the run is queued. Drop one of them, or read the finished run with: sim workflows runs get <runId> --workflow <workflowId> --select-output <blockName|blockId>[.path] — that resource takes the same selectors --select-output takes here.", 0);
16078
16079
  }
16079
16080
  if (flags.includeThinking === true || flags.includeToolCalls === true) {
16080
16081
  throw new SimApiError("--include-thinking and --include-tool-calls describe a stream; add --follow", 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.6-dev.86.1",
3
+ "version": "2.1.6-dev.88.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {