@asteroidai/cli 1.9.71 → 1.9.95

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 +18 -187
  2. package/dist/core.js +17 -186
  3. package/package.json +1 -1
package/dist/asteroid.js CHANGED
@@ -378,7 +378,7 @@ var COMMANDS = [
378
378
  flag: "executions-write-back",
379
379
  type: "boolean",
380
380
  required: false,
381
- 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. Must be on with an Anchor sticky IP, which saves every session."
381
+ 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. A run that uses its profile's sticky IP saves anyway."
382
382
  }
383
383
  ]
384
384
  },
@@ -795,7 +795,7 @@ var COMMANDS = [
795
795
  flag: "executions-write-back",
796
796
  type: "boolean",
797
797
  required: false,
798
- 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. Must be on with an Anchor sticky IP, which saves every session."
798
+ 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. A run that uses its profile's sticky IP saves anyway."
799
799
  }
800
800
  ]
801
801
  },
@@ -1927,7 +1927,7 @@ var COMMANDS = [
1927
1927
  command: "profile create",
1928
1928
  tool: "profiles_create",
1929
1929
  title: "Create profile",
1930
- description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds` (create them with `secrets_create`).",
1930
+ description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds`. Secret values never pass through an agent: the person who holds them fills a secret request or the platform's secret form.",
1931
1931
  method: "POST",
1932
1932
  path: "/agents/v2/profiles",
1933
1933
  args: [],
@@ -1952,6 +1952,13 @@ var COMMANDS = [
1952
1952
  type: "string",
1953
1953
  required: true
1954
1954
  },
1955
+ {
1956
+ name: "stickyIP",
1957
+ flag: "sticky-ip",
1958
+ type: "boolean",
1959
+ required: false,
1960
+ description: "Give browser runs on this profile one dedicated IP. Applies when the environment uses the managed proxy or no proxy."
1961
+ },
1955
1962
  {
1956
1963
  name: "secretIds",
1957
1964
  flag: "secret-ids",
@@ -2175,6 +2182,13 @@ var COMMANDS = [
2175
2182
  type: "string",
2176
2183
  required: false
2177
2184
  },
2185
+ {
2186
+ name: "stickyIP",
2187
+ flag: "sticky-ip",
2188
+ type: "boolean",
2189
+ required: false,
2190
+ description: "Turn the dedicated IP on or off. A change clears the profile's saved browser state, and is refused while a run uses the profile."
2191
+ },
2178
2192
  {
2179
2193
  name: "secretIds",
2180
2194
  flag: "secret-ids",
@@ -3136,69 +3150,6 @@ var COMMANDS = [
3136
3150
  credentialOrganization: false
3137
3151
  }
3138
3152
  },
3139
- {
3140
- command: "secret create",
3141
- tool: "secrets_create",
3142
- title: "Create secret",
3143
- description: "Create an organization secret. The item key is derived from name unless itemKey is given. Values are stored; responses are masked. Pass either `templateId` or `kind`+`fields`, plus `values`. Attach the returned id to a profile with `profile_update.secretIdsToAdd`. Reference fields as ##ITEM_KEY.FIELD##. Many secrets may share a key; a profile cannot attach two secrets with the same key.",
3144
- method: "POST",
3145
- path: "/agents/v2/secrets",
3146
- args: [],
3147
- query: [],
3148
- binary: false,
3149
- readOnly: false,
3150
- destructive: false,
3151
- body: {
3152
- required: true,
3153
- contentType: "application/json",
3154
- fields: [
3155
- {
3156
- name: "name",
3157
- flag: "name",
3158
- type: "string",
3159
- required: true
3160
- },
3161
- {
3162
- name: "itemKey",
3163
- flag: "item-key",
3164
- type: "string",
3165
- required: false,
3166
- description: "Optional UPPER_SNAKE key. Derived from name when omitted."
3167
- },
3168
- {
3169
- name: "templateId",
3170
- flag: "template-id",
3171
- type: "string",
3172
- required: false,
3173
- description: "Org template to snapshot. Mutually exclusive with kind and fields."
3174
- },
3175
- {
3176
- name: "kind",
3177
- flag: "kind",
3178
- type: "string",
3179
- required: false,
3180
- description: "Required when templateId is omitted.",
3181
- enum: ["login", "api_key", "card", "custom"]
3182
- },
3183
- {
3184
- name: "fields",
3185
- flag: "fields",
3186
- type: "json",
3187
- required: false,
3188
- description: "Inline field blueprint. Required when templateId is omitted."
3189
- },
3190
- {
3191
- name: "values",
3192
- flag: "values",
3193
- type: "json",
3194
- required: true,
3195
- description: "Field values as `key`/`value` pairs."
3196
- }
3197
- ],
3198
- files: [],
3199
- credentialOrganization: true
3200
- }
3201
- },
3202
3153
  {
3203
3154
  command: "secret delete",
3204
3155
  tool: "secret_delete",
@@ -3219,91 +3170,6 @@ var COMMANDS = [
3219
3170
  readOnly: false,
3220
3171
  destructive: true
3221
3172
  },
3222
- {
3223
- command: "secret field add",
3224
- tool: "secret_field_add",
3225
- title: "Add secret field",
3226
- description: "Add a non-required field to a secret. Pass `field` (label, type, required) and `value`. Secret values are never returned.",
3227
- method: "POST",
3228
- path: "/agents/v2/secrets/{secretId}/fields",
3229
- args: [
3230
- {
3231
- name: "secretId",
3232
- flag: "secret-id",
3233
- type: "string",
3234
- required: true
3235
- }
3236
- ],
3237
- query: [],
3238
- binary: false,
3239
- readOnly: false,
3240
- destructive: false,
3241
- body: {
3242
- required: true,
3243
- contentType: "application/json",
3244
- fields: [
3245
- {
3246
- name: "field",
3247
- flag: "field",
3248
- type: "json",
3249
- required: true,
3250
- description: "Write shape for a field. The server derives key from label.",
3251
- fields: [
3252
- {
3253
- name: "type",
3254
- flag: "type",
3255
- type: "string",
3256
- required: false,
3257
- description: "Type of a vault field. Sensitivity is derived from the type: username, email, url, phone, text, card_expiry, and cardholder_name are readable; password, hidden, totp_seed, api_key, card_number, and card_cvv are write-only. There is no separate hidden flag.",
3258
- enum: [
3259
- "username",
3260
- "email",
3261
- "url",
3262
- "phone",
3263
- "text",
3264
- "password",
3265
- "hidden",
3266
- "totp_seed",
3267
- "api_key",
3268
- "card_number",
3269
- "card_expiry",
3270
- "card_cvv",
3271
- "cardholder_name"
3272
- ]
3273
- },
3274
- {
3275
- name: "label",
3276
- flag: "label",
3277
- type: "string",
3278
- required: false,
3279
- description: "Human label shown in forms. The field key is UPPER_SNAKE of this label."
3280
- },
3281
- {
3282
- name: "required",
3283
- flag: "required",
3284
- type: "boolean",
3285
- required: false
3286
- },
3287
- {
3288
- name: "hint",
3289
- flag: "hint",
3290
- type: "string",
3291
- required: false,
3292
- description: "Optional guidance shown next to the field, copied from catalog credentials when generating masters."
3293
- }
3294
- ]
3295
- },
3296
- {
3297
- name: "value",
3298
- flag: "value",
3299
- type: "string",
3300
- required: true
3301
- }
3302
- ],
3303
- files: [],
3304
- credentialOrganization: false
3305
- }
3306
- },
3307
3173
  {
3308
3174
  command: "secret field remove",
3309
3175
  tool: "secret_field_remove",
@@ -3398,41 +3264,6 @@ var COMMANDS = [
3398
3264
  readOnly: true,
3399
3265
  destructive: false
3400
3266
  },
3401
- {
3402
- command: "secret rotate",
3403
- tool: "secret_rotate",
3404
- title: "Rotate secret values",
3405
- description: "Replace field values on a secret in one write. Supply `values` as key/value pairs. Secret values are never returned.",
3406
- method: "POST",
3407
- path: "/agents/v2/secrets/{secretId}/rotate",
3408
- args: [
3409
- {
3410
- name: "secretId",
3411
- flag: "secret-id",
3412
- type: "string",
3413
- required: true
3414
- }
3415
- ],
3416
- query: [],
3417
- binary: false,
3418
- readOnly: false,
3419
- destructive: false,
3420
- body: {
3421
- required: true,
3422
- contentType: "application/json",
3423
- fields: [
3424
- {
3425
- name: "values",
3426
- flag: "values",
3427
- type: "json",
3428
- required: true,
3429
- description: "New field values as `key`/`value` pairs."
3430
- }
3431
- ],
3432
- files: [],
3433
- credentialOrganization: false
3434
- }
3435
- },
3436
3267
  {
3437
3268
  command: "secret update",
3438
3269
  tool: "secret_update",
@@ -6798,7 +6629,7 @@ var ApiError = class extends Error {
6798
6629
  status;
6799
6630
  body;
6800
6631
  };
6801
- var VERSION = "1.9.71";
6632
+ var VERSION = "1.9.95";
6802
6633
  function problem(status, body, fallback) {
6803
6634
  if (body && typeof body === "object") {
6804
6635
  const record2 = body;
package/dist/core.js CHANGED
@@ -399,7 +399,7 @@ var COMMANDS = [
399
399
  flag: "executions-write-back",
400
400
  type: "boolean",
401
401
  required: false,
402
- 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. Must be on with an Anchor sticky IP, which saves every session."
402
+ 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. A run that uses its profile's sticky IP saves anyway."
403
403
  }
404
404
  ]
405
405
  },
@@ -816,7 +816,7 @@ var COMMANDS = [
816
816
  flag: "executions-write-back",
817
817
  type: "boolean",
818
818
  required: false,
819
- 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. Must be on with an Anchor sticky IP, which saves every session."
819
+ 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. A run that uses its profile's sticky IP saves anyway."
820
820
  }
821
821
  ]
822
822
  },
@@ -1948,7 +1948,7 @@ var COMMANDS = [
1948
1948
  command: "profile create",
1949
1949
  tool: "profiles_create",
1950
1950
  title: "Create profile",
1951
- description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds` (create them with `secrets_create`).",
1951
+ description: "Create a login profile: one identity a workflow can sign in as, with its attached secrets, Email Inbox, sticky IP and stored browser state. Attach secrets with `secretIds`. Secret values never pass through an agent: the person who holds them fills a secret request or the platform's secret form.",
1952
1952
  method: "POST",
1953
1953
  path: "/agents/v2/profiles",
1954
1954
  args: [],
@@ -1973,6 +1973,13 @@ var COMMANDS = [
1973
1973
  type: "string",
1974
1974
  required: true
1975
1975
  },
1976
+ {
1977
+ name: "stickyIP",
1978
+ flag: "sticky-ip",
1979
+ type: "boolean",
1980
+ required: false,
1981
+ description: "Give browser runs on this profile one dedicated IP. Applies when the environment uses the managed proxy or no proxy."
1982
+ },
1976
1983
  {
1977
1984
  name: "secretIds",
1978
1985
  flag: "secret-ids",
@@ -2196,6 +2203,13 @@ var COMMANDS = [
2196
2203
  type: "string",
2197
2204
  required: false
2198
2205
  },
2206
+ {
2207
+ name: "stickyIP",
2208
+ flag: "sticky-ip",
2209
+ type: "boolean",
2210
+ required: false,
2211
+ description: "Turn the dedicated IP on or off. A change clears the profile's saved browser state, and is refused while a run uses the profile."
2212
+ },
2199
2213
  {
2200
2214
  name: "secretIds",
2201
2215
  flag: "secret-ids",
@@ -3157,69 +3171,6 @@ var COMMANDS = [
3157
3171
  credentialOrganization: false
3158
3172
  }
3159
3173
  },
3160
- {
3161
- command: "secret create",
3162
- tool: "secrets_create",
3163
- title: "Create secret",
3164
- description: "Create an organization secret. The item key is derived from name unless itemKey is given. Values are stored; responses are masked. Pass either `templateId` or `kind`+`fields`, plus `values`. Attach the returned id to a profile with `profile_update.secretIdsToAdd`. Reference fields as ##ITEM_KEY.FIELD##. Many secrets may share a key; a profile cannot attach two secrets with the same key.",
3165
- method: "POST",
3166
- path: "/agents/v2/secrets",
3167
- args: [],
3168
- query: [],
3169
- binary: false,
3170
- readOnly: false,
3171
- destructive: false,
3172
- body: {
3173
- required: true,
3174
- contentType: "application/json",
3175
- fields: [
3176
- {
3177
- name: "name",
3178
- flag: "name",
3179
- type: "string",
3180
- required: true
3181
- },
3182
- {
3183
- name: "itemKey",
3184
- flag: "item-key",
3185
- type: "string",
3186
- required: false,
3187
- description: "Optional UPPER_SNAKE key. Derived from name when omitted."
3188
- },
3189
- {
3190
- name: "templateId",
3191
- flag: "template-id",
3192
- type: "string",
3193
- required: false,
3194
- description: "Org template to snapshot. Mutually exclusive with kind and fields."
3195
- },
3196
- {
3197
- name: "kind",
3198
- flag: "kind",
3199
- type: "string",
3200
- required: false,
3201
- description: "Required when templateId is omitted.",
3202
- enum: ["login", "api_key", "card", "custom"]
3203
- },
3204
- {
3205
- name: "fields",
3206
- flag: "fields",
3207
- type: "json",
3208
- required: false,
3209
- description: "Inline field blueprint. Required when templateId is omitted."
3210
- },
3211
- {
3212
- name: "values",
3213
- flag: "values",
3214
- type: "json",
3215
- required: true,
3216
- description: "Field values as `key`/`value` pairs."
3217
- }
3218
- ],
3219
- files: [],
3220
- credentialOrganization: true
3221
- }
3222
- },
3223
3174
  {
3224
3175
  command: "secret delete",
3225
3176
  tool: "secret_delete",
@@ -3240,91 +3191,6 @@ var COMMANDS = [
3240
3191
  readOnly: false,
3241
3192
  destructive: true
3242
3193
  },
3243
- {
3244
- command: "secret field add",
3245
- tool: "secret_field_add",
3246
- title: "Add secret field",
3247
- description: "Add a non-required field to a secret. Pass `field` (label, type, required) and `value`. Secret values are never returned.",
3248
- method: "POST",
3249
- path: "/agents/v2/secrets/{secretId}/fields",
3250
- args: [
3251
- {
3252
- name: "secretId",
3253
- flag: "secret-id",
3254
- type: "string",
3255
- required: true
3256
- }
3257
- ],
3258
- query: [],
3259
- binary: false,
3260
- readOnly: false,
3261
- destructive: false,
3262
- body: {
3263
- required: true,
3264
- contentType: "application/json",
3265
- fields: [
3266
- {
3267
- name: "field",
3268
- flag: "field",
3269
- type: "json",
3270
- required: true,
3271
- description: "Write shape for a field. The server derives key from label.",
3272
- fields: [
3273
- {
3274
- name: "type",
3275
- flag: "type",
3276
- type: "string",
3277
- required: false,
3278
- description: "Type of a vault field. Sensitivity is derived from the type: username, email, url, phone, text, card_expiry, and cardholder_name are readable; password, hidden, totp_seed, api_key, card_number, and card_cvv are write-only. There is no separate hidden flag.",
3279
- enum: [
3280
- "username",
3281
- "email",
3282
- "url",
3283
- "phone",
3284
- "text",
3285
- "password",
3286
- "hidden",
3287
- "totp_seed",
3288
- "api_key",
3289
- "card_number",
3290
- "card_expiry",
3291
- "card_cvv",
3292
- "cardholder_name"
3293
- ]
3294
- },
3295
- {
3296
- name: "label",
3297
- flag: "label",
3298
- type: "string",
3299
- required: false,
3300
- description: "Human label shown in forms. The field key is UPPER_SNAKE of this label."
3301
- },
3302
- {
3303
- name: "required",
3304
- flag: "required",
3305
- type: "boolean",
3306
- required: false
3307
- },
3308
- {
3309
- name: "hint",
3310
- flag: "hint",
3311
- type: "string",
3312
- required: false,
3313
- description: "Optional guidance shown next to the field, copied from catalog credentials when generating masters."
3314
- }
3315
- ]
3316
- },
3317
- {
3318
- name: "value",
3319
- flag: "value",
3320
- type: "string",
3321
- required: true
3322
- }
3323
- ],
3324
- files: [],
3325
- credentialOrganization: false
3326
- }
3327
- },
3328
3194
  {
3329
3195
  command: "secret field remove",
3330
3196
  tool: "secret_field_remove",
@@ -3419,41 +3285,6 @@ var COMMANDS = [
3419
3285
  readOnly: true,
3420
3286
  destructive: false
3421
3287
  },
3422
- {
3423
- command: "secret rotate",
3424
- tool: "secret_rotate",
3425
- title: "Rotate secret values",
3426
- description: "Replace field values on a secret in one write. Supply `values` as key/value pairs. Secret values are never returned.",
3427
- method: "POST",
3428
- path: "/agents/v2/secrets/{secretId}/rotate",
3429
- args: [
3430
- {
3431
- name: "secretId",
3432
- flag: "secret-id",
3433
- type: "string",
3434
- required: true
3435
- }
3436
- ],
3437
- query: [],
3438
- binary: false,
3439
- readOnly: false,
3440
- destructive: false,
3441
- body: {
3442
- required: true,
3443
- contentType: "application/json",
3444
- fields: [
3445
- {
3446
- name: "values",
3447
- flag: "values",
3448
- type: "json",
3449
- required: true,
3450
- description: "New field values as `key`/`value` pairs."
3451
- }
3452
- ],
3453
- files: [],
3454
- credentialOrganization: false
3455
- }
3456
- },
3457
3288
  {
3458
3289
  command: "secret update",
3459
3290
  tool: "secret_update",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.71",
3
+ "version": "1.9.95",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",