@asteroidai/cli 1.9.467 → 1.9.481

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
@@ -1555,6 +1555,49 @@ var COMMANDS = [
1555
1555
  readOnly: true,
1556
1556
  destructive: false
1557
1557
  },
1558
+ {
1559
+ command: "execution answer",
1560
+ tool: "execution_answer",
1561
+ title: "Answer execution question",
1562
+ description: 'Answer the question a paused execution waits on, then it continues. Read the question from `pause.question` on `execution_get`. Send `questionId` and `answer`: `{kind: "value", value}` matching its `answerSchema`, or `{kind: "free_text", text}` when `allowFreeText` is true. Get the user\'s answer first: never invent one. 422 lists what is wrong with the answer. 409 means someone already gave a different answer. 410 means the question expired or the run ended: read the execution\'s status before you retry.',
1563
+ method: "POST",
1564
+ path: "/agents/v2/executions/{executionId}/answers",
1565
+ args: [
1566
+ {
1567
+ name: "executionId",
1568
+ flag: "execution-id",
1569
+ type: "string",
1570
+ required: true
1571
+ }
1572
+ ],
1573
+ query: [],
1574
+ binary: false,
1575
+ readOnly: false,
1576
+ destructive: false,
1577
+ body: {
1578
+ required: true,
1579
+ contentType: "application/json",
1580
+ fields: [
1581
+ {
1582
+ name: "questionId",
1583
+ flag: "question-id",
1584
+ type: "string",
1585
+ required: true,
1586
+ description: "The question to answer, from pause.question.id or GET /executions/{executionId}/questions"
1587
+ },
1588
+ {
1589
+ name: "answer",
1590
+ flag: "answer",
1591
+ type: "json",
1592
+ required: true,
1593
+ description: "An answer to a question: a value that matches its answer schema, or free text"
1594
+ }
1595
+ ],
1596
+ files: [],
1597
+ credentialOrganization: false
1598
+ },
1599
+ capability: "run_execution"
1600
+ },
1558
1601
  {
1559
1602
  command: "execution cancel",
1560
1603
  tool: "execution_cancel",
@@ -1824,6 +1867,14 @@ var COMMANDS = [
1824
1867
  required: false,
1825
1868
  description: "Only executions started by this batch, an ID from `execution_batches_list`. Rows not yet triggered have no execution yet: list them with `scheduled_executions_list` and `batchId`."
1826
1869
  },
1870
+ {
1871
+ name: "pauseKind",
1872
+ flag: "pause-kind",
1873
+ type: "string[]",
1874
+ required: false,
1875
+ description: "Only paused runs with one of these pause kinds, the same value as pause.kind (can specify multiple, OR across values). Composes with the status filter as AND. Filter on this, not on the paused statuses: the statuses behind each kind will change, and this filter keeps its meaning.",
1876
+ enum: ["manual", "question", "confirmation"]
1877
+ },
1827
1878
  {
1828
1879
  name: "includeOutcomes",
1829
1880
  flag: "include-outcomes",
@@ -2131,6 +2182,14 @@ var COMMANDS = [
2131
2182
  type: "string",
2132
2183
  required: false,
2133
2184
  description: "Only executions started by this batch, an ID from `execution_batches_list`. Rows not yet triggered have no execution yet: list them with `scheduled_executions_list` and `batchId`."
2185
+ },
2186
+ {
2187
+ name: "pauseKind",
2188
+ flag: "pause-kind",
2189
+ type: "string[]",
2190
+ required: false,
2191
+ description: "Only paused runs with one of these pause kinds, the same value as pause.kind (can specify multiple, OR across values). Composes with the status filter as AND. Filter on this, not on the paused statuses: the statuses behind each kind will change, and this filter keeps its meaning.",
2192
+ enum: ["manual", "question", "confirmation"]
2134
2193
  }
2135
2194
  ],
2136
2195
  binary: false,
@@ -2141,7 +2200,7 @@ var COMMANDS = [
2141
2200
  command: "execution message",
2142
2201
  tool: "execution_user_messages_add",
2143
2202
  title: "Add execution message",
2144
- description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2203
+ description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. A run waiting on a workflow question (`pause.question` is set) returns 409: answer it with `execution_answer`. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2145
2204
  method: "POST",
2146
2205
  path: "/agents/v2/executions/{executionId}/user-messages",
2147
2206
  args: [
@@ -2205,6 +2264,26 @@ var COMMANDS = [
2205
2264
  readOnly: false,
2206
2265
  destructive: false
2207
2266
  },
2267
+ {
2268
+ command: "execution questions",
2269
+ tool: "execution_questions_list",
2270
+ title: "List execution questions",
2271
+ description: "List the questions an execution asked a person, oldest first, with each one's answer schema, status and answer. A pending question is also on `execution_get` as `pause.question`.",
2272
+ method: "GET",
2273
+ path: "/agents/v2/executions/{executionId}/questions",
2274
+ args: [
2275
+ {
2276
+ name: "executionId",
2277
+ flag: "execution-id",
2278
+ type: "string",
2279
+ required: true
2280
+ }
2281
+ ],
2282
+ query: [],
2283
+ binary: false,
2284
+ readOnly: true,
2285
+ destructive: false
2286
+ },
2208
2287
  {
2209
2288
  command: "execution recording",
2210
2289
  tool: "execution_recording_download",
@@ -8228,7 +8307,7 @@ var ApiError = class extends Error {
8228
8307
  status;
8229
8308
  body;
8230
8309
  };
8231
- var VERSION = "1.9.467";
8310
+ var VERSION = "1.9.481";
8232
8311
  function problem(status, body, fallback) {
8233
8312
  if (body && typeof body === "object") {
8234
8313
  const record2 = body;
package/dist/core.js CHANGED
@@ -1576,6 +1576,49 @@ var COMMANDS = [
1576
1576
  readOnly: true,
1577
1577
  destructive: false
1578
1578
  },
1579
+ {
1580
+ command: "execution answer",
1581
+ tool: "execution_answer",
1582
+ title: "Answer execution question",
1583
+ description: 'Answer the question a paused execution waits on, then it continues. Read the question from `pause.question` on `execution_get`. Send `questionId` and `answer`: `{kind: "value", value}` matching its `answerSchema`, or `{kind: "free_text", text}` when `allowFreeText` is true. Get the user\'s answer first: never invent one. 422 lists what is wrong with the answer. 409 means someone already gave a different answer. 410 means the question expired or the run ended: read the execution\'s status before you retry.',
1584
+ method: "POST",
1585
+ path: "/agents/v2/executions/{executionId}/answers",
1586
+ args: [
1587
+ {
1588
+ name: "executionId",
1589
+ flag: "execution-id",
1590
+ type: "string",
1591
+ required: true
1592
+ }
1593
+ ],
1594
+ query: [],
1595
+ binary: false,
1596
+ readOnly: false,
1597
+ destructive: false,
1598
+ body: {
1599
+ required: true,
1600
+ contentType: "application/json",
1601
+ fields: [
1602
+ {
1603
+ name: "questionId",
1604
+ flag: "question-id",
1605
+ type: "string",
1606
+ required: true,
1607
+ description: "The question to answer, from pause.question.id or GET /executions/{executionId}/questions"
1608
+ },
1609
+ {
1610
+ name: "answer",
1611
+ flag: "answer",
1612
+ type: "json",
1613
+ required: true,
1614
+ description: "An answer to a question: a value that matches its answer schema, or free text"
1615
+ }
1616
+ ],
1617
+ files: [],
1618
+ credentialOrganization: false
1619
+ },
1620
+ capability: "run_execution"
1621
+ },
1579
1622
  {
1580
1623
  command: "execution cancel",
1581
1624
  tool: "execution_cancel",
@@ -1845,6 +1888,14 @@ var COMMANDS = [
1845
1888
  required: false,
1846
1889
  description: "Only executions started by this batch, an ID from `execution_batches_list`. Rows not yet triggered have no execution yet: list them with `scheduled_executions_list` and `batchId`."
1847
1890
  },
1891
+ {
1892
+ name: "pauseKind",
1893
+ flag: "pause-kind",
1894
+ type: "string[]",
1895
+ required: false,
1896
+ description: "Only paused runs with one of these pause kinds, the same value as pause.kind (can specify multiple, OR across values). Composes with the status filter as AND. Filter on this, not on the paused statuses: the statuses behind each kind will change, and this filter keeps its meaning.",
1897
+ enum: ["manual", "question", "confirmation"]
1898
+ },
1848
1899
  {
1849
1900
  name: "includeOutcomes",
1850
1901
  flag: "include-outcomes",
@@ -2152,6 +2203,14 @@ var COMMANDS = [
2152
2203
  type: "string",
2153
2204
  required: false,
2154
2205
  description: "Only executions started by this batch, an ID from `execution_batches_list`. Rows not yet triggered have no execution yet: list them with `scheduled_executions_list` and `batchId`."
2206
+ },
2207
+ {
2208
+ name: "pauseKind",
2209
+ flag: "pause-kind",
2210
+ type: "string[]",
2211
+ required: false,
2212
+ description: "Only paused runs with one of these pause kinds, the same value as pause.kind (can specify multiple, OR across values). Composes with the status filter as AND. Filter on this, not on the paused statuses: the statuses behind each kind will change, and this filter keeps its meaning.",
2213
+ enum: ["manual", "question", "confirmation"]
2155
2214
  }
2156
2215
  ],
2157
2216
  binary: false,
@@ -2162,7 +2221,7 @@ var COMMANDS = [
2162
2221
  command: "execution message",
2163
2222
  tool: "execution_user_messages_add",
2164
2223
  title: "Add execution message",
2165
- description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2224
+ description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. A run waiting on a workflow question (`pause.question` is set) returns 409: answer it with `execution_answer`. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2166
2225
  method: "POST",
2167
2226
  path: "/agents/v2/executions/{executionId}/user-messages",
2168
2227
  args: [
@@ -2226,6 +2285,26 @@ var COMMANDS = [
2226
2285
  readOnly: false,
2227
2286
  destructive: false
2228
2287
  },
2288
+ {
2289
+ command: "execution questions",
2290
+ tool: "execution_questions_list",
2291
+ title: "List execution questions",
2292
+ description: "List the questions an execution asked a person, oldest first, with each one's answer schema, status and answer. A pending question is also on `execution_get` as `pause.question`.",
2293
+ method: "GET",
2294
+ path: "/agents/v2/executions/{executionId}/questions",
2295
+ args: [
2296
+ {
2297
+ name: "executionId",
2298
+ flag: "execution-id",
2299
+ type: "string",
2300
+ required: true
2301
+ }
2302
+ ],
2303
+ query: [],
2304
+ binary: false,
2305
+ readOnly: true,
2306
+ destructive: false
2307
+ },
2229
2308
  {
2230
2309
  command: "execution recording",
2231
2310
  tool: "execution_recording_download",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.467",
3
+ "version": "1.9.481",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",