@asteroidai/cli 1.9.526 → 1.9.530

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 (3) hide show
  1. package/dist/asteroid.js +108 -24
  2. package/dist/core.js +107 -23
  3. package/package.json +1 -1
package/dist/asteroid.js CHANGED
@@ -334,6 +334,32 @@ var COMMANDS = [
334
334
  readOnly: true,
335
335
  destructive: false
336
336
  },
337
+ {
338
+ command: "billing reward list",
339
+ tool: "billing_credit_rewards_list",
340
+ title: "List credit rewards",
341
+ description: "List the organization's credit rewards: one-time free credit it earns from a milestone. `state` is `locked` (not earned, or not open to the organization), `claimable` or `claimed`. The user claims a `claimable` reward in the platform app.",
342
+ method: "GET",
343
+ path: "/billing/v2/credit-rewards",
344
+ args: [],
345
+ query: [
346
+ {
347
+ name: "pageSize",
348
+ flag: "page-size",
349
+ type: "integer",
350
+ required: false
351
+ },
352
+ {
353
+ name: "page",
354
+ flag: "page",
355
+ type: "integer",
356
+ required: false
357
+ }
358
+ ],
359
+ binary: false,
360
+ readOnly: true,
361
+ destructive: false
362
+ },
337
363
  {
338
364
  command: "billing subscription",
339
365
  tool: "billing_subscription_get",
@@ -590,15 +616,15 @@ var COMMANDS = [
590
616
  flag: "base",
591
617
  type: "json",
592
618
  required: true,
593
- description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
619
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
594
620
  fields: [
595
621
  {
596
622
  name: "type",
597
623
  flag: "type",
598
624
  type: "string",
599
625
  required: false,
600
- description: "Type of execution environment",
601
- enum: ["browser", "os"]
626
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
627
+ enum: ["browser", "os", "linux", "windows", "citrix"]
602
628
  },
603
629
  {
604
630
  name: "config",
@@ -1001,15 +1027,15 @@ var COMMANDS = [
1001
1027
  flag: "base",
1002
1028
  type: "json",
1003
1029
  required: true,
1004
- description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
1030
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
1005
1031
  fields: [
1006
1032
  {
1007
1033
  name: "type",
1008
1034
  flag: "type",
1009
1035
  type: "string",
1010
1036
  required: false,
1011
- description: "Type of execution environment",
1012
- enum: ["browser", "os"]
1037
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
1038
+ enum: ["browser", "os", "linux", "windows", "citrix"]
1013
1039
  },
1014
1040
  {
1015
1041
  name: "config",
@@ -2887,7 +2913,7 @@ var COMMANDS = [
2887
2913
  query: [],
2888
2914
  binary: false,
2889
2915
  readOnly: false,
2890
- destructive: false,
2916
+ destructive: true,
2891
2917
  body: {
2892
2918
  required: true,
2893
2919
  contentType: "application/json",
@@ -3708,6 +3734,13 @@ var COMMANDS = [
3708
3734
  required: false,
3709
3735
  description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
3710
3736
  },
3737
+ {
3738
+ name: "customEnvironmentId",
3739
+ flag: "custom-environment-id",
3740
+ type: "string",
3741
+ required: false,
3742
+ description: "Custom environment each execution runs on, in place of the version's default. The rules of the execute request apply. Omit it to follow the version's default, which a schedule on the published version takes from each newly published version."
3743
+ },
3711
3744
  {
3712
3745
  name: "timing",
3713
3746
  flag: "timing",
@@ -3980,7 +4013,7 @@ var COMMANDS = [
3980
4013
  query: [],
3981
4014
  binary: false,
3982
4015
  readOnly: false,
3983
- destructive: false,
4016
+ destructive: true,
3984
4017
  body: {
3985
4018
  required: true,
3986
4019
  contentType: "application/json",
@@ -4005,6 +4038,13 @@ var COMMANDS = [
4005
4038
  required: false,
4006
4039
  description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
4007
4040
  },
4041
+ {
4042
+ name: "customEnvironmentId",
4043
+ flag: "custom-environment-id",
4044
+ type: "string",
4045
+ required: false,
4046
+ description: "Custom environment each execution runs on, in place of the version's default. The rules of the execute request apply. Omit it to follow the version's default, which a schedule on the published version takes from each newly published version."
4047
+ },
4008
4048
  {
4009
4049
  name: "timing",
4010
4050
  flag: "timing",
@@ -4152,6 +4192,14 @@ var COMMANDS = [
4152
4192
  required: false,
4153
4193
  description: 'Detaches both the profile and the pool. Omitting the ids on their own means\n"leave unchanged", so this is the only way back to no profile.'
4154
4194
  },
4195
+ {
4196
+ name: "clearCustomEnvironment",
4197
+ flag: "clear-custom-environment",
4198
+ type: "boolean",
4199
+ required: false,
4200
+ description: `Removes the schedule's custom environment, so each run follows the version's default again.
4201
+ Omitting customEnvironmentId on its own means "leave unchanged".`
4202
+ },
4155
4203
  {
4156
4204
  name: "executionOptions",
4157
4205
  flag: "execution-options",
@@ -4238,6 +4286,13 @@ var COMMANDS = [
4238
4286
  type: "string",
4239
4287
  required: false
4240
4288
  },
4289
+ {
4290
+ name: "customEnvironmentId",
4291
+ flag: "custom-environment-id",
4292
+ type: "string",
4293
+ required: false,
4294
+ description: "Custom environment the run uses, in place of the version's default. The rules of the execute request apply. Omit it to use the version's default."
4295
+ },
4241
4296
  {
4242
4297
  name: "inputs",
4243
4298
  flag: "inputs",
@@ -4905,7 +4960,7 @@ var COMMANDS = [
4905
4960
  query: [],
4906
4961
  binary: false,
4907
4962
  readOnly: false,
4908
- destructive: false,
4963
+ destructive: true,
4909
4964
  body: {
4910
4965
  required: true,
4911
4966
  contentType: "application/json",
@@ -5460,8 +5515,8 @@ var COMMANDS = [
5460
5515
  flag: "type",
5461
5516
  type: "string",
5462
5517
  required: false,
5463
- description: "Type of execution environment",
5464
- enum: ["browser", "os"]
5518
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
5519
+ enum: ["browser", "os", "linux", "windows", "citrix"]
5465
5520
  },
5466
5521
  {
5467
5522
  name: "config",
@@ -5570,6 +5625,13 @@ var COMMANDS = [
5570
5625
  required: false,
5571
5626
  description: "The ID of the profile group to select a profile from. Mutually exclusive with profileId."
5572
5627
  },
5628
+ {
5629
+ name: "customEnvironmentId",
5630
+ flag: "custom-environment-id",
5631
+ type: "string",
5632
+ required: false,
5633
+ description: "Custom environment this execution runs on, in place of the workflow version's default environment.\nIt must be in the agent's organization and have the version's machine type. When the environment\nhas a profile list, profileId or profileGroupId must be one of its rows. With one row and neither\nnamed, the execution takes that row. An environment that keeps workers is accepted only when it is\nthe version's default. Omit it to use the version's default."
5634
+ },
5573
5635
  {
5574
5636
  name: "inputs",
5575
5637
  flag: "inputs",
@@ -5681,6 +5743,13 @@ var COMMANDS = [
5681
5743
  required: false,
5682
5744
  description: "The ID of the profile group to select a profile from. Mutually exclusive with profileId."
5683
5745
  },
5746
+ {
5747
+ name: "customEnvironmentId",
5748
+ flag: "custom-environment-id",
5749
+ type: "string",
5750
+ required: false,
5751
+ description: "Custom environment this execution runs on, in place of the workflow version's default environment.\nIt must be in the agent's organization and have the version's machine type. When the environment\nhas a profile list, profileId or profileGroupId must be one of its rows. With one row and neither\nnamed, the execution takes that row. An environment that keeps workers is accepted only when it is\nthe version's default. Omit it to use the version's default."
5752
+ },
5684
5753
  {
5685
5754
  name: "inputs",
5686
5755
  flag: "inputs",
@@ -6668,8 +6737,8 @@ var COMMANDS = [
6668
6737
  flag: "type",
6669
6738
  type: "string",
6670
6739
  required: false,
6671
- description: "Type of execution environment",
6672
- enum: ["browser", "os"]
6740
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
6741
+ enum: ["browser", "os", "linux", "windows", "citrix"]
6673
6742
  },
6674
6743
  {
6675
6744
  name: "config",
@@ -6802,8 +6871,8 @@ var COMMANDS = [
6802
6871
  flag: "type",
6803
6872
  type: "string",
6804
6873
  required: false,
6805
- description: "Type of execution environment",
6806
- enum: ["browser", "os"]
6874
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
6875
+ enum: ["browser", "os", "linux", "windows", "citrix"]
6807
6876
  },
6808
6877
  {
6809
6878
  name: "config",
@@ -6903,6 +6972,13 @@ var COMMANDS = [
6903
6972
  required: false,
6904
6973
  description: "The ID of the profile group to select a profile from. Mutually exclusive with profileId."
6905
6974
  },
6975
+ {
6976
+ name: "customEnvironmentId",
6977
+ flag: "custom-environment-id",
6978
+ type: "string",
6979
+ required: false,
6980
+ description: "Custom environment this execution runs on, in place of the workflow version's default environment.\nIt must be in the agent's organization and have the version's machine type. When the environment\nhas a profile list, profileId or profileGroupId must be one of its rows. With one row and neither\nnamed, the execution takes that row. An environment that keeps workers is accepted only when it is\nthe version's default. Omit it to use the version's default."
6981
+ },
6906
6982
  {
6907
6983
  name: "tempFiles",
6908
6984
  flag: "temp-files",
@@ -7285,8 +7361,8 @@ var COMMANDS = [
7285
7361
  flag: "type",
7286
7362
  type: "string",
7287
7363
  required: false,
7288
- description: "Type of execution environment",
7289
- enum: ["browser", "os"]
7364
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
7365
+ enum: ["browser", "os", "linux", "windows", "citrix"]
7290
7366
  },
7291
7367
  {
7292
7368
  name: "config",
@@ -7395,7 +7471,7 @@ var SYNC_COMMANDS = [
7395
7471
  command: "execution pull",
7396
7472
  tool: "execution_pull",
7397
7473
  title: "Pull an execution to disk",
7398
- description: "Write an execution to `<workflow-name>/executions/<id>/`: summary.json, activities.md (the step-by-step log), and the files the run produced.",
7474
+ description: "Write an execution to `<workflow-name>/executions/<id>/`: summary.json, activities.md (the step-by-step log), the files the run produced, and the browser recorder's block signals and interaction logs (`debug/signals/`, `debug/interactions/`) when you can see debug files.",
7399
7475
  readOnly: true,
7400
7476
  args: [executionId],
7401
7477
  query: [
@@ -8509,7 +8585,7 @@ var ApiError = class extends Error {
8509
8585
  status;
8510
8586
  body;
8511
8587
  };
8512
- var VERSION = "1.9.526";
8588
+ var VERSION = "1.9.530";
8513
8589
  function problem(status, body, fallback) {
8514
8590
  if (body && typeof body === "object") {
8515
8591
  const record2 = body;
@@ -9848,7 +9924,13 @@ function formatActivitiesMarkdown(activities, status, createdAt) {
9848
9924
  }
9849
9925
 
9850
9926
  // src/sync/execution-pull.ts
9851
- var DIRECTORIES = ["workspace", "downloads", "shared"];
9927
+ var DIRECTORIES = ["workspace", "downloads", "shared", "debug"];
9928
+ var DEBUG_FOLDERS = ["signals/", "interactions/"];
9929
+ function pulled(file) {
9930
+ if (file.directory !== "debug") return true;
9931
+ const inDirectory = pathInDirectory(file);
9932
+ return DEBUG_FOLDERS.some((folder) => inDirectory.startsWith(folder));
9933
+ }
9852
9934
  function relativeFilePath(file) {
9853
9935
  return `${file.directory}/${pathInDirectory(file)}`.replace(
9854
9936
  /^workspace\/\.execution-context\//,
@@ -9899,7 +9981,9 @@ async function listFiles(sync, executionId2) {
9899
9981
  const listing = await sync.remote.json(
9900
9982
  get(`/agents/v2/executions/${pathId(executionId2)}/files`)
9901
9983
  );
9902
- return DIRECTORIES.flatMap((name) => listing.directories[name] ?? []);
9984
+ return DIRECTORIES.flatMap((name) => listing.directories[name] ?? []).filter(
9985
+ pulled
9986
+ );
9903
9987
  }
9904
9988
  async function download(sync, executionId2, file) {
9905
9989
  const path = `/agents/v2/executions/${pathId(executionId2)}/files/${pathId(file.id)}/signed-url`;
@@ -10107,7 +10191,7 @@ async function pullInsights(sync, options = {}) {
10107
10191
  get(`/astro/v2/insights/${pathId(options.insightId)}`)
10108
10192
  )
10109
10193
  ] : await listInsights(sync, options.workflowId);
10110
- const pulled = [];
10194
+ const pulled2 = [];
10111
10195
  for (const [insight, stem] of assignStems(
10112
10196
  await stemOwners(sync, dir),
10113
10197
  insights
@@ -10126,9 +10210,9 @@ async function pullInsights(sync, options = {}) {
10126
10210
  );
10127
10211
  await sync.files.write(path, Buffer.from(text3, "utf8"));
10128
10212
  const { id, name, type, status } = insight;
10129
- pulled.push({ id, name, type, status, path });
10213
+ pulled2.push({ id, name, type, status, path });
10130
10214
  }
10131
- return { dir, insights: pulled };
10215
+ return { dir, insights: pulled2 };
10132
10216
  }
10133
10217
  function formatInsightPull(result) {
10134
10218
  const count = result.insights.length;
package/dist/core.js CHANGED
@@ -355,6 +355,32 @@ var COMMANDS = [
355
355
  readOnly: true,
356
356
  destructive: false
357
357
  },
358
+ {
359
+ command: "billing reward list",
360
+ tool: "billing_credit_rewards_list",
361
+ title: "List credit rewards",
362
+ description: "List the organization's credit rewards: one-time free credit it earns from a milestone. `state` is `locked` (not earned, or not open to the organization), `claimable` or `claimed`. The user claims a `claimable` reward in the platform app.",
363
+ method: "GET",
364
+ path: "/billing/v2/credit-rewards",
365
+ args: [],
366
+ query: [
367
+ {
368
+ name: "pageSize",
369
+ flag: "page-size",
370
+ type: "integer",
371
+ required: false
372
+ },
373
+ {
374
+ name: "page",
375
+ flag: "page",
376
+ type: "integer",
377
+ required: false
378
+ }
379
+ ],
380
+ binary: false,
381
+ readOnly: true,
382
+ destructive: false
383
+ },
358
384
  {
359
385
  command: "billing subscription",
360
386
  tool: "billing_subscription_get",
@@ -611,15 +637,15 @@ var COMMANDS = [
611
637
  flag: "base",
612
638
  type: "json",
613
639
  required: true,
614
- description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
640
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
615
641
  fields: [
616
642
  {
617
643
  name: "type",
618
644
  flag: "type",
619
645
  type: "string",
620
646
  required: false,
621
- description: "Type of execution environment",
622
- enum: ["browser", "os"]
647
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
648
+ enum: ["browser", "os", "linux", "windows", "citrix"]
623
649
  },
624
650
  {
625
651
  name: "config",
@@ -1022,15 +1048,15 @@ var COMMANDS = [
1022
1048
  flag: "base",
1023
1049
  type: "json",
1024
1050
  required: true,
1025
- description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
1051
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
1026
1052
  fields: [
1027
1053
  {
1028
1054
  name: "type",
1029
1055
  flag: "type",
1030
1056
  type: "string",
1031
1057
  required: false,
1032
- description: "Type of execution environment",
1033
- enum: ["browser", "os"]
1058
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
1059
+ enum: ["browser", "os", "linux", "windows", "citrix"]
1034
1060
  },
1035
1061
  {
1036
1062
  name: "config",
@@ -2908,7 +2934,7 @@ var COMMANDS = [
2908
2934
  query: [],
2909
2935
  binary: false,
2910
2936
  readOnly: false,
2911
- destructive: false,
2937
+ destructive: true,
2912
2938
  body: {
2913
2939
  required: true,
2914
2940
  contentType: "application/json",
@@ -3729,6 +3755,13 @@ var COMMANDS = [
3729
3755
  required: false,
3730
3756
  description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
3731
3757
  },
3758
+ {
3759
+ name: "customEnvironmentId",
3760
+ flag: "custom-environment-id",
3761
+ type: "string",
3762
+ required: false,
3763
+ description: "Custom environment each execution runs on, in place of the version's default. The rules of the execute request apply. Omit it to follow the version's default, which a schedule on the published version takes from each newly published version."
3764
+ },
3732
3765
  {
3733
3766
  name: "timing",
3734
3767
  flag: "timing",
@@ -4001,7 +4034,7 @@ var COMMANDS = [
4001
4034
  query: [],
4002
4035
  binary: false,
4003
4036
  readOnly: false,
4004
- destructive: false,
4037
+ destructive: true,
4005
4038
  body: {
4006
4039
  required: true,
4007
4040
  contentType: "application/json",
@@ -4026,6 +4059,13 @@ var COMMANDS = [
4026
4059
  required: false,
4027
4060
  description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
4028
4061
  },
4062
+ {
4063
+ name: "customEnvironmentId",
4064
+ flag: "custom-environment-id",
4065
+ type: "string",
4066
+ required: false,
4067
+ description: "Custom environment each execution runs on, in place of the version's default. The rules of the execute request apply. Omit it to follow the version's default, which a schedule on the published version takes from each newly published version."
4068
+ },
4029
4069
  {
4030
4070
  name: "timing",
4031
4071
  flag: "timing",
@@ -4173,6 +4213,14 @@ var COMMANDS = [
4173
4213
  required: false,
4174
4214
  description: 'Detaches both the profile and the pool. Omitting the ids on their own means\n"leave unchanged", so this is the only way back to no profile.'
4175
4215
  },
4216
+ {
4217
+ name: "clearCustomEnvironment",
4218
+ flag: "clear-custom-environment",
4219
+ type: "boolean",
4220
+ required: false,
4221
+ description: `Removes the schedule's custom environment, so each run follows the version's default again.
4222
+ Omitting customEnvironmentId on its own means "leave unchanged".`
4223
+ },
4176
4224
  {
4177
4225
  name: "executionOptions",
4178
4226
  flag: "execution-options",
@@ -4259,6 +4307,13 @@ var COMMANDS = [
4259
4307
  type: "string",
4260
4308
  required: false
4261
4309
  },
4310
+ {
4311
+ name: "customEnvironmentId",
4312
+ flag: "custom-environment-id",
4313
+ type: "string",
4314
+ required: false,
4315
+ description: "Custom environment the run uses, in place of the version's default. The rules of the execute request apply. Omit it to use the version's default."
4316
+ },
4262
4317
  {
4263
4318
  name: "inputs",
4264
4319
  flag: "inputs",
@@ -4926,7 +4981,7 @@ var COMMANDS = [
4926
4981
  query: [],
4927
4982
  binary: false,
4928
4983
  readOnly: false,
4929
- destructive: false,
4984
+ destructive: true,
4930
4985
  body: {
4931
4986
  required: true,
4932
4987
  contentType: "application/json",
@@ -5481,8 +5536,8 @@ var COMMANDS = [
5481
5536
  flag: "type",
5482
5537
  type: "string",
5483
5538
  required: false,
5484
- description: "Type of execution environment",
5485
- enum: ["browser", "os"]
5539
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
5540
+ enum: ["browser", "os", "linux", "windows", "citrix"]
5486
5541
  },
5487
5542
  {
5488
5543
  name: "config",
@@ -5591,6 +5646,13 @@ var COMMANDS = [
5591
5646
  required: false,
5592
5647
  description: "The ID of the profile group to select a profile from. Mutually exclusive with profileId."
5593
5648
  },
5649
+ {
5650
+ name: "customEnvironmentId",
5651
+ flag: "custom-environment-id",
5652
+ type: "string",
5653
+ required: false,
5654
+ description: "Custom environment this execution runs on, in place of the workflow version's default environment.\nIt must be in the agent's organization and have the version's machine type. When the environment\nhas a profile list, profileId or profileGroupId must be one of its rows. With one row and neither\nnamed, the execution takes that row. An environment that keeps workers is accepted only when it is\nthe version's default. Omit it to use the version's default."
5655
+ },
5594
5656
  {
5595
5657
  name: "inputs",
5596
5658
  flag: "inputs",
@@ -5702,6 +5764,13 @@ var COMMANDS = [
5702
5764
  required: false,
5703
5765
  description: "The ID of the profile group to select a profile from. Mutually exclusive with profileId."
5704
5766
  },
5767
+ {
5768
+ name: "customEnvironmentId",
5769
+ flag: "custom-environment-id",
5770
+ type: "string",
5771
+ required: false,
5772
+ description: "Custom environment this execution runs on, in place of the workflow version's default environment.\nIt must be in the agent's organization and have the version's machine type. When the environment\nhas a profile list, profileId or profileGroupId must be one of its rows. With one row and neither\nnamed, the execution takes that row. An environment that keeps workers is accepted only when it is\nthe version's default. Omit it to use the version's default."
5773
+ },
5705
5774
  {
5706
5775
  name: "inputs",
5707
5776
  flag: "inputs",
@@ -6689,8 +6758,8 @@ var COMMANDS = [
6689
6758
  flag: "type",
6690
6759
  type: "string",
6691
6760
  required: false,
6692
- description: "Type of execution environment",
6693
- enum: ["browser", "os"]
6761
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
6762
+ enum: ["browser", "os", "linux", "windows", "citrix"]
6694
6763
  },
6695
6764
  {
6696
6765
  name: "config",
@@ -6823,8 +6892,8 @@ var COMMANDS = [
6823
6892
  flag: "type",
6824
6893
  type: "string",
6825
6894
  required: false,
6826
- description: "Type of execution environment",
6827
- enum: ["browser", "os"]
6895
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
6896
+ enum: ["browser", "os", "linux", "windows", "citrix"]
6828
6897
  },
6829
6898
  {
6830
6899
  name: "config",
@@ -6924,6 +6993,13 @@ var COMMANDS = [
6924
6993
  required: false,
6925
6994
  description: "The ID of the profile group to select a profile from. Mutually exclusive with profileId."
6926
6995
  },
6996
+ {
6997
+ name: "customEnvironmentId",
6998
+ flag: "custom-environment-id",
6999
+ type: "string",
7000
+ required: false,
7001
+ description: "Custom environment this execution runs on, in place of the workflow version's default environment.\nIt must be in the agent's organization and have the version's machine type. When the environment\nhas a profile list, profileId or profileGroupId must be one of its rows. With one row and neither\nnamed, the execution takes that row. An environment that keeps workers is accepted only when it is\nthe version's default. Omit it to use the version's default."
7002
+ },
6927
7003
  {
6928
7004
  name: "tempFiles",
6929
7005
  flag: "temp-files",
@@ -7306,8 +7382,8 @@ var COMMANDS = [
7306
7382
  flag: "type",
7307
7383
  type: "string",
7308
7384
  required: false,
7309
- description: "Type of execution environment",
7310
- enum: ["browser", "os"]
7385
+ description: "The machine an environment boots: a browser, or a desktop by its operating system. Responses return `browser` or `os` for now. Requests may send either `os` with `config.osType`, or the desktop value itself.",
7386
+ enum: ["browser", "os", "linux", "windows", "citrix"]
7311
7387
  },
7312
7388
  {
7313
7389
  name: "config",
@@ -8134,7 +8210,7 @@ var SYNC_COMMANDS = [
8134
8210
  command: "execution pull",
8135
8211
  tool: "execution_pull",
8136
8212
  title: "Pull an execution to disk",
8137
- description: "Write an execution to `<workflow-name>/executions/<id>/`: summary.json, activities.md (the step-by-step log), and the files the run produced.",
8213
+ description: "Write an execution to `<workflow-name>/executions/<id>/`: summary.json, activities.md (the step-by-step log), the files the run produced, and the browser recorder's block signals and interaction logs (`debug/signals/`, `debug/interactions/`) when you can see debug files.",
8138
8214
  readOnly: true,
8139
8215
  args: [executionId],
8140
8216
  query: [
@@ -8408,7 +8484,13 @@ function matchesGlob(path, pattern) {
8408
8484
  }
8409
8485
 
8410
8486
  // src/sync/execution-pull.ts
8411
- var DIRECTORIES = ["workspace", "downloads", "shared"];
8487
+ var DIRECTORIES = ["workspace", "downloads", "shared", "debug"];
8488
+ var DEBUG_FOLDERS = ["signals/", "interactions/"];
8489
+ function pulled(file) {
8490
+ if (file.directory !== "debug") return true;
8491
+ const inDirectory = pathInDirectory(file);
8492
+ return DEBUG_FOLDERS.some((folder) => inDirectory.startsWith(folder));
8493
+ }
8412
8494
  function relativeFilePath(file) {
8413
8495
  return `${file.directory}/${pathInDirectory(file)}`.replace(
8414
8496
  /^workspace\/\.execution-context\//,
@@ -8459,7 +8541,9 @@ async function listFiles(sync, executionId2) {
8459
8541
  const listing = await sync.remote.json(
8460
8542
  get(`/agents/v2/executions/${pathId(executionId2)}/files`)
8461
8543
  );
8462
- return DIRECTORIES.flatMap((name) => listing.directories[name] ?? []);
8544
+ return DIRECTORIES.flatMap((name) => listing.directories[name] ?? []).filter(
8545
+ pulled
8546
+ );
8463
8547
  }
8464
8548
  async function download(sync, executionId2, file) {
8465
8549
  const path = `/agents/v2/executions/${pathId(executionId2)}/files/${pathId(file.id)}/signed-url`;
@@ -8667,7 +8751,7 @@ async function pullInsights(sync, options = {}) {
8667
8751
  get(`/astro/v2/insights/${pathId(options.insightId)}`)
8668
8752
  )
8669
8753
  ] : await listInsights(sync, options.workflowId);
8670
- const pulled = [];
8754
+ const pulled2 = [];
8671
8755
  for (const [insight, stem] of assignStems(
8672
8756
  await stemOwners(sync, dir),
8673
8757
  insights
@@ -8686,9 +8770,9 @@ async function pullInsights(sync, options = {}) {
8686
8770
  );
8687
8771
  await sync.files.write(path, Buffer.from(text2, "utf8"));
8688
8772
  const { id, name, type, status } = insight;
8689
- pulled.push({ id, name, type, status, path });
8773
+ pulled2.push({ id, name, type, status, path });
8690
8774
  }
8691
- return { dir, insights: pulled };
8775
+ return { dir, insights: pulled2 };
8692
8776
  }
8693
8777
  function formatInsightPull(result) {
8694
8778
  const count = result.insights.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.526",
3
+ "version": "1.9.530",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",