@asteroidai/cli 1.9.103 → 1.9.106

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/asteroid.js CHANGED
@@ -5,6 +5,19 @@ import { spawn } from "node:child_process";
5
5
 
6
6
  // src/generated/commands.ts
7
7
  var COMMANDS = [
8
+ {
9
+ command: "api-key list",
10
+ tool: "api_keys_list",
11
+ title: "List API keys",
12
+ description: "List the organization's API keys, newest first: name, obfuscated value, creator, created, last used and expiry. Values never appear. Use it to check that a key exists before deploying. Keys are created in the platform; `organizationId` defaults to the caller's one organization.",
13
+ method: "GET",
14
+ path: "/users/v2/api-keys",
15
+ args: [],
16
+ query: [],
17
+ binary: false,
18
+ readOnly: true,
19
+ destructive: false
20
+ },
8
21
  {
9
22
  command: "batch cancel",
10
23
  tool: "execution_batch_cancel",
@@ -6803,7 +6816,7 @@ var ApiError = class extends Error {
6803
6816
  status;
6804
6817
  body;
6805
6818
  };
6806
- var VERSION = "1.9.103";
6819
+ var VERSION = "1.9.106";
6807
6820
  function problem(status, body, fallback) {
6808
6821
  if (body && typeof body === "object") {
6809
6822
  const record2 = body;
@@ -7956,7 +7969,11 @@ function wantedEntries(options, tree, skipped) {
7956
7969
  }
7957
7970
  async function inBatches(items, each) {
7958
7971
  for (let i = 0; i < items.length; i += CONCURRENCY) {
7959
- await Promise.all(items.slice(i, i + CONCURRENCY).map(each));
7972
+ const results = await Promise.allSettled(
7973
+ items.slice(i, i + CONCURRENCY).map(each)
7974
+ );
7975
+ const failed = results.find((r) => r.status === "rejected");
7976
+ if (failed) throw failed.reason;
7960
7977
  }
7961
7978
  }
7962
7979
  async function writeEntries(sync, options, tree, dir) {
package/dist/core.js CHANGED
@@ -26,6 +26,19 @@ function matchCommand(words, commands) {
26
26
 
27
27
  // src/generated/commands.ts
28
28
  var COMMANDS = [
29
+ {
30
+ command: "api-key list",
31
+ tool: "api_keys_list",
32
+ title: "List API keys",
33
+ description: "List the organization's API keys, newest first: name, obfuscated value, creator, created, last used and expiry. Values never appear. Use it to check that a key exists before deploying. Keys are created in the platform; `organizationId` defaults to the caller's one organization.",
34
+ method: "GET",
35
+ path: "/users/v2/api-keys",
36
+ args: [],
37
+ query: [],
38
+ binary: false,
39
+ readOnly: true,
40
+ destructive: false
41
+ },
29
42
  {
30
43
  command: "batch cancel",
31
44
  tool: "execution_batch_cancel",
@@ -6954,7 +6967,11 @@ function wantedEntries(options, tree, skipped) {
6954
6967
  }
6955
6968
  async function inBatches(items, each) {
6956
6969
  for (let i = 0; i < items.length; i += CONCURRENCY) {
6957
- await Promise.all(items.slice(i, i + CONCURRENCY).map(each));
6970
+ const results = await Promise.allSettled(
6971
+ items.slice(i, i + CONCURRENCY).map(each)
6972
+ );
6973
+ const failed = results.find((r) => r.status === "rejected");
6974
+ if (failed) throw failed.reason;
6958
6975
  }
6959
6976
  }
6960
6977
  async function writeEntries(sync, options, tree, dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.103",
3
+ "version": "1.9.106",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",