@asteroidai/cli 1.9.373 → 1.9.432
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 +117 -9
- package/dist/core.js +116 -8
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -803,7 +803,7 @@ var COMMANDS = [
|
|
|
803
803
|
flag: "executions-write-back",
|
|
804
804
|
type: "boolean",
|
|
805
805
|
required: false,
|
|
806
|
-
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run
|
|
806
|
+
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run on a login's own address saves anyway, to keep the address."
|
|
807
807
|
}
|
|
808
808
|
]
|
|
809
809
|
}
|
|
@@ -889,7 +889,7 @@ var COMMANDS = [
|
|
|
889
889
|
command: "custom-environment update",
|
|
890
890
|
tool: "custom_environment_update",
|
|
891
891
|
title: "Update custom environment",
|
|
892
|
-
description: "Replace a custom environment's configuration. Send the full config, as `custom_environment_get` returns it: a field left out is cleared, except proxy passwords, a managed proxy's provider and `warmPool.workers`, which keep their stored values. Set `warmPool.workers.enabled` to false to remove workers. Changes apply to environments booted afterwards. Turning keep-warm off is refused while members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
|
|
892
|
+
description: "Replace a custom environment's configuration. Send the full config, as `custom_environment_get` returns it: a field left out is cleared, except proxy passwords, a managed proxy's provider, `settings.addresses` and `warmPool.workers`, which keep their stored values. Set `warmPool.workers.enabled` to false to remove workers. Changes apply to environments booted afterwards. Turning keep-warm off is refused while members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
|
|
893
893
|
method: "PATCH",
|
|
894
894
|
path: "/agents/v2/custom-environments/{customEnvironmentId}",
|
|
895
895
|
args: [
|
|
@@ -1153,7 +1153,7 @@ var COMMANDS = [
|
|
|
1153
1153
|
flag: "executions-write-back",
|
|
1154
1154
|
type: "boolean",
|
|
1155
1155
|
required: false,
|
|
1156
|
-
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run
|
|
1156
|
+
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run on a login's own address saves anyway, to keep the address."
|
|
1157
1157
|
}
|
|
1158
1158
|
]
|
|
1159
1159
|
}
|
|
@@ -3410,19 +3410,73 @@ var COMMANDS = [
|
|
|
3410
3410
|
required: false,
|
|
3411
3411
|
description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
|
|
3412
3412
|
},
|
|
3413
|
+
{
|
|
3414
|
+
name: "timing",
|
|
3415
|
+
flag: "timing",
|
|
3416
|
+
type: "json",
|
|
3417
|
+
required: false,
|
|
3418
|
+
description: "When the schedule fires. Send this or cronExpression, not both. A schedule needs a rule that recurs: at, every or cron.",
|
|
3419
|
+
fields: [
|
|
3420
|
+
{
|
|
3421
|
+
name: "timezone",
|
|
3422
|
+
flag: "timezone",
|
|
3423
|
+
type: "string",
|
|
3424
|
+
required: false,
|
|
3425
|
+
description: "IANA time zone every part is read in, such as America/New_York"
|
|
3426
|
+
},
|
|
3427
|
+
{
|
|
3428
|
+
name: "at",
|
|
3429
|
+
flag: "at",
|
|
3430
|
+
type: "json",
|
|
3431
|
+
required: false
|
|
3432
|
+
},
|
|
3433
|
+
{
|
|
3434
|
+
name: "every",
|
|
3435
|
+
flag: "every",
|
|
3436
|
+
type: "json",
|
|
3437
|
+
required: false
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
name: "once",
|
|
3441
|
+
flag: "once",
|
|
3442
|
+
type: "json",
|
|
3443
|
+
required: false
|
|
3444
|
+
},
|
|
3445
|
+
{
|
|
3446
|
+
name: "cron",
|
|
3447
|
+
flag: "cron",
|
|
3448
|
+
type: "json",
|
|
3449
|
+
required: false
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
name: "startAt",
|
|
3453
|
+
flag: "start-at",
|
|
3454
|
+
type: "string",
|
|
3455
|
+
required: false,
|
|
3456
|
+
description: "No fire before this instant. Inclusive."
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
name: "endAt",
|
|
3460
|
+
flag: "end-at",
|
|
3461
|
+
type: "string",
|
|
3462
|
+
required: false,
|
|
3463
|
+
description: "No fire at or after this instant."
|
|
3464
|
+
}
|
|
3465
|
+
]
|
|
3466
|
+
},
|
|
3413
3467
|
{
|
|
3414
3468
|
name: "cronExpression",
|
|
3415
3469
|
flag: "cron-expression",
|
|
3416
3470
|
type: "string",
|
|
3417
|
-
required:
|
|
3418
|
-
description: "Five-field cron expression."
|
|
3471
|
+
required: false,
|
|
3472
|
+
description: "Five-field cron expression. Prefer timing."
|
|
3419
3473
|
},
|
|
3420
3474
|
{
|
|
3421
3475
|
name: "timezone",
|
|
3422
3476
|
flag: "timezone",
|
|
3423
3477
|
type: "string",
|
|
3424
3478
|
required: false,
|
|
3425
|
-
description: "IANA time zone the cron expression is evaluated in. Defaults to UTC."
|
|
3479
|
+
description: "IANA time zone the cron expression is evaluated in. Defaults to UTC. Ignored when timing is sent."
|
|
3426
3480
|
},
|
|
3427
3481
|
{
|
|
3428
3482
|
name: "enabled",
|
|
@@ -3653,19 +3707,73 @@ var COMMANDS = [
|
|
|
3653
3707
|
required: false,
|
|
3654
3708
|
description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
|
|
3655
3709
|
},
|
|
3710
|
+
{
|
|
3711
|
+
name: "timing",
|
|
3712
|
+
flag: "timing",
|
|
3713
|
+
type: "json",
|
|
3714
|
+
required: false,
|
|
3715
|
+
description: "Replaces when the schedule fires. Send this or cronExpression, not both. To remove a start or end, send the timing without it.",
|
|
3716
|
+
fields: [
|
|
3717
|
+
{
|
|
3718
|
+
name: "timezone",
|
|
3719
|
+
flag: "timezone",
|
|
3720
|
+
type: "string",
|
|
3721
|
+
required: false,
|
|
3722
|
+
description: "IANA time zone every part is read in, such as America/New_York"
|
|
3723
|
+
},
|
|
3724
|
+
{
|
|
3725
|
+
name: "at",
|
|
3726
|
+
flag: "at",
|
|
3727
|
+
type: "json",
|
|
3728
|
+
required: false
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
name: "every",
|
|
3732
|
+
flag: "every",
|
|
3733
|
+
type: "json",
|
|
3734
|
+
required: false
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
name: "once",
|
|
3738
|
+
flag: "once",
|
|
3739
|
+
type: "json",
|
|
3740
|
+
required: false
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
name: "cron",
|
|
3744
|
+
flag: "cron",
|
|
3745
|
+
type: "json",
|
|
3746
|
+
required: false
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
name: "startAt",
|
|
3750
|
+
flag: "start-at",
|
|
3751
|
+
type: "string",
|
|
3752
|
+
required: false,
|
|
3753
|
+
description: "No fire before this instant. Inclusive."
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
name: "endAt",
|
|
3757
|
+
flag: "end-at",
|
|
3758
|
+
type: "string",
|
|
3759
|
+
required: false,
|
|
3760
|
+
description: "No fire at or after this instant."
|
|
3761
|
+
}
|
|
3762
|
+
]
|
|
3763
|
+
},
|
|
3656
3764
|
{
|
|
3657
3765
|
name: "cronExpression",
|
|
3658
3766
|
flag: "cron-expression",
|
|
3659
3767
|
type: "string",
|
|
3660
3768
|
required: false,
|
|
3661
|
-
description: "Five-field cron expression."
|
|
3769
|
+
description: "Five-field cron expression. Replaces the timing with a cron timing. Prefer timing."
|
|
3662
3770
|
},
|
|
3663
3771
|
{
|
|
3664
3772
|
name: "timezone",
|
|
3665
3773
|
flag: "timezone",
|
|
3666
3774
|
type: "string",
|
|
3667
3775
|
required: false,
|
|
3668
|
-
description: "IANA time zone the
|
|
3776
|
+
description: "IANA time zone the timing is read in. Ignored when timing is sent."
|
|
3669
3777
|
},
|
|
3670
3778
|
{
|
|
3671
3779
|
name: "enabled",
|
|
@@ -7981,7 +8089,7 @@ var ApiError = class extends Error {
|
|
|
7981
8089
|
status;
|
|
7982
8090
|
body;
|
|
7983
8091
|
};
|
|
7984
|
-
var VERSION = "1.9.
|
|
8092
|
+
var VERSION = "1.9.432";
|
|
7985
8093
|
function problem(status, body, fallback) {
|
|
7986
8094
|
if (body && typeof body === "object") {
|
|
7987
8095
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -824,7 +824,7 @@ var COMMANDS = [
|
|
|
824
824
|
flag: "executions-write-back",
|
|
825
825
|
type: "boolean",
|
|
826
826
|
required: false,
|
|
827
|
-
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run
|
|
827
|
+
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run on a login's own address saves anyway, to keep the address."
|
|
828
828
|
}
|
|
829
829
|
]
|
|
830
830
|
}
|
|
@@ -910,7 +910,7 @@ var COMMANDS = [
|
|
|
910
910
|
command: "custom-environment update",
|
|
911
911
|
tool: "custom_environment_update",
|
|
912
912
|
title: "Update custom environment",
|
|
913
|
-
description: "Replace a custom environment's configuration. Send the full config, as `custom_environment_get` returns it: a field left out is cleared, except proxy passwords, a managed proxy's provider and `warmPool.workers`, which keep their stored values. Set `warmPool.workers.enabled` to false to remove workers. Changes apply to environments booted afterwards. Turning keep-warm off is refused while members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
|
|
913
|
+
description: "Replace a custom environment's configuration. Send the full config, as `custom_environment_get` returns it: a field left out is cleared, except proxy passwords, a managed proxy's provider, `settings.addresses` and `warmPool.workers`, which keep their stored values. Set `warmPool.workers.enabled` to false to remove workers. Changes apply to environments booted afterwards. Turning keep-warm off is refused while members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
|
|
914
914
|
method: "PATCH",
|
|
915
915
|
path: "/agents/v2/custom-environments/{customEnvironmentId}",
|
|
916
916
|
args: [
|
|
@@ -1174,7 +1174,7 @@ var COMMANDS = [
|
|
|
1174
1174
|
flag: "executions-write-back",
|
|
1175
1175
|
type: "boolean",
|
|
1176
1176
|
required: false,
|
|
1177
|
-
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run
|
|
1177
|
+
description: "Whether executions on the environment save the browser profile when they stop. Off by default: only the login agent saves it, so a run that ends logged out cannot overwrite the session for later runs. The first run on a login's own address saves anyway, to keep the address."
|
|
1178
1178
|
}
|
|
1179
1179
|
]
|
|
1180
1180
|
}
|
|
@@ -3431,19 +3431,73 @@ var COMMANDS = [
|
|
|
3431
3431
|
required: false,
|
|
3432
3432
|
description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
|
|
3433
3433
|
},
|
|
3434
|
+
{
|
|
3435
|
+
name: "timing",
|
|
3436
|
+
flag: "timing",
|
|
3437
|
+
type: "json",
|
|
3438
|
+
required: false,
|
|
3439
|
+
description: "When the schedule fires. Send this or cronExpression, not both. A schedule needs a rule that recurs: at, every or cron.",
|
|
3440
|
+
fields: [
|
|
3441
|
+
{
|
|
3442
|
+
name: "timezone",
|
|
3443
|
+
flag: "timezone",
|
|
3444
|
+
type: "string",
|
|
3445
|
+
required: false,
|
|
3446
|
+
description: "IANA time zone every part is read in, such as America/New_York"
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
name: "at",
|
|
3450
|
+
flag: "at",
|
|
3451
|
+
type: "json",
|
|
3452
|
+
required: false
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
name: "every",
|
|
3456
|
+
flag: "every",
|
|
3457
|
+
type: "json",
|
|
3458
|
+
required: false
|
|
3459
|
+
},
|
|
3460
|
+
{
|
|
3461
|
+
name: "once",
|
|
3462
|
+
flag: "once",
|
|
3463
|
+
type: "json",
|
|
3464
|
+
required: false
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
name: "cron",
|
|
3468
|
+
flag: "cron",
|
|
3469
|
+
type: "json",
|
|
3470
|
+
required: false
|
|
3471
|
+
},
|
|
3472
|
+
{
|
|
3473
|
+
name: "startAt",
|
|
3474
|
+
flag: "start-at",
|
|
3475
|
+
type: "string",
|
|
3476
|
+
required: false,
|
|
3477
|
+
description: "No fire before this instant. Inclusive."
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
name: "endAt",
|
|
3481
|
+
flag: "end-at",
|
|
3482
|
+
type: "string",
|
|
3483
|
+
required: false,
|
|
3484
|
+
description: "No fire at or after this instant."
|
|
3485
|
+
}
|
|
3486
|
+
]
|
|
3487
|
+
},
|
|
3434
3488
|
{
|
|
3435
3489
|
name: "cronExpression",
|
|
3436
3490
|
flag: "cron-expression",
|
|
3437
3491
|
type: "string",
|
|
3438
|
-
required:
|
|
3439
|
-
description: "Five-field cron expression."
|
|
3492
|
+
required: false,
|
|
3493
|
+
description: "Five-field cron expression. Prefer timing."
|
|
3440
3494
|
},
|
|
3441
3495
|
{
|
|
3442
3496
|
name: "timezone",
|
|
3443
3497
|
flag: "timezone",
|
|
3444
3498
|
type: "string",
|
|
3445
3499
|
required: false,
|
|
3446
|
-
description: "IANA time zone the cron expression is evaluated in. Defaults to UTC."
|
|
3500
|
+
description: "IANA time zone the cron expression is evaluated in. Defaults to UTC. Ignored when timing is sent."
|
|
3447
3501
|
},
|
|
3448
3502
|
{
|
|
3449
3503
|
name: "enabled",
|
|
@@ -3674,19 +3728,73 @@ var COMMANDS = [
|
|
|
3674
3728
|
required: false,
|
|
3675
3729
|
description: "Profile group to select a profile from for each execution. Mutually exclusive with profileId."
|
|
3676
3730
|
},
|
|
3731
|
+
{
|
|
3732
|
+
name: "timing",
|
|
3733
|
+
flag: "timing",
|
|
3734
|
+
type: "json",
|
|
3735
|
+
required: false,
|
|
3736
|
+
description: "Replaces when the schedule fires. Send this or cronExpression, not both. To remove a start or end, send the timing without it.",
|
|
3737
|
+
fields: [
|
|
3738
|
+
{
|
|
3739
|
+
name: "timezone",
|
|
3740
|
+
flag: "timezone",
|
|
3741
|
+
type: "string",
|
|
3742
|
+
required: false,
|
|
3743
|
+
description: "IANA time zone every part is read in, such as America/New_York"
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
name: "at",
|
|
3747
|
+
flag: "at",
|
|
3748
|
+
type: "json",
|
|
3749
|
+
required: false
|
|
3750
|
+
},
|
|
3751
|
+
{
|
|
3752
|
+
name: "every",
|
|
3753
|
+
flag: "every",
|
|
3754
|
+
type: "json",
|
|
3755
|
+
required: false
|
|
3756
|
+
},
|
|
3757
|
+
{
|
|
3758
|
+
name: "once",
|
|
3759
|
+
flag: "once",
|
|
3760
|
+
type: "json",
|
|
3761
|
+
required: false
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
name: "cron",
|
|
3765
|
+
flag: "cron",
|
|
3766
|
+
type: "json",
|
|
3767
|
+
required: false
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
name: "startAt",
|
|
3771
|
+
flag: "start-at",
|
|
3772
|
+
type: "string",
|
|
3773
|
+
required: false,
|
|
3774
|
+
description: "No fire before this instant. Inclusive."
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
name: "endAt",
|
|
3778
|
+
flag: "end-at",
|
|
3779
|
+
type: "string",
|
|
3780
|
+
required: false,
|
|
3781
|
+
description: "No fire at or after this instant."
|
|
3782
|
+
}
|
|
3783
|
+
]
|
|
3784
|
+
},
|
|
3677
3785
|
{
|
|
3678
3786
|
name: "cronExpression",
|
|
3679
3787
|
flag: "cron-expression",
|
|
3680
3788
|
type: "string",
|
|
3681
3789
|
required: false,
|
|
3682
|
-
description: "Five-field cron expression."
|
|
3790
|
+
description: "Five-field cron expression. Replaces the timing with a cron timing. Prefer timing."
|
|
3683
3791
|
},
|
|
3684
3792
|
{
|
|
3685
3793
|
name: "timezone",
|
|
3686
3794
|
flag: "timezone",
|
|
3687
3795
|
type: "string",
|
|
3688
3796
|
required: false,
|
|
3689
|
-
description: "IANA time zone the
|
|
3797
|
+
description: "IANA time zone the timing is read in. Ignored when timing is sent."
|
|
3690
3798
|
},
|
|
3691
3799
|
{
|
|
3692
3800
|
name: "enabled",
|