@pi-oxide/extension-js 0.13.2 → 0.14.0
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/content-script.js +3 -3
- package/extension_js.d.ts +11 -11
- package/extension_js.js +94097 -94096
- package/index.js +1006 -859
- package/package.json +2 -2
- package/worker.js +118 -117
package/package.json
CHANGED
package/worker.js
CHANGED
|
@@ -2830,11 +2830,11 @@ var w;
|
|
|
2830
2830
|
(function(t) {
|
|
2831
2831
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
2832
2832
|
})(w || (w = {}));
|
|
2833
|
-
const a = q.create, f = oe.create, Y = de.create,
|
|
2833
|
+
const a = q.create, f = oe.create, Y = de.create, b = De.create, Lt = Ee.create, v = ae.create;
|
|
2834
2834
|
ne.create;
|
|
2835
2835
|
const I = F.create, c = A.create, T = Re.create, $r = ze.create;
|
|
2836
2836
|
Ce.create;
|
|
2837
|
-
const Lr = G.create,
|
|
2837
|
+
const Lr = G.create, _ = Ae.create, Pr = Oe.create, Te = Me.create, _e = se.create;
|
|
2838
2838
|
be.create;
|
|
2839
2839
|
U.create;
|
|
2840
2840
|
ie.create;
|
|
@@ -2888,116 +2888,116 @@ function Dr(t, e, r, n) {
|
|
|
2888
2888
|
const d = r.map((o) => `at '${o.path.length > 0 ? o.path.join(".") : "root"}': ${o.message}`);
|
|
2889
2889
|
return `Invalid parameters for ${t}: ${d.join("; ")}`;
|
|
2890
2890
|
}
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2891
|
+
_(v());
|
|
2892
|
+
_(v());
|
|
2893
|
+
_(v());
|
|
2894
|
+
_(v());
|
|
2895
2895
|
T([
|
|
2896
2896
|
f(),
|
|
2897
|
-
|
|
2897
|
+
_(v())
|
|
2898
2898
|
]);
|
|
2899
2899
|
T([
|
|
2900
2900
|
f(),
|
|
2901
|
-
|
|
2901
|
+
_(v())
|
|
2902
2902
|
]);
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2903
|
+
_(v());
|
|
2904
|
+
_(v());
|
|
2905
|
+
_(v());
|
|
2906
2906
|
T([
|
|
2907
2907
|
a(),
|
|
2908
|
-
|
|
2908
|
+
_(v())
|
|
2909
2909
|
]);
|
|
2910
|
-
|
|
2911
|
-
|
|
2910
|
+
_(v());
|
|
2911
|
+
_(
|
|
2912
2912
|
v()
|
|
2913
2913
|
);
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2914
|
+
_(v());
|
|
2915
|
+
_(v());
|
|
2916
|
+
_(v());
|
|
2917
2917
|
T([
|
|
2918
2918
|
a(),
|
|
2919
2919
|
f(),
|
|
2920
|
-
|
|
2920
|
+
_(v())
|
|
2921
2921
|
]);
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2922
|
+
_(v());
|
|
2923
|
+
_(v());
|
|
2924
|
+
_(v());
|
|
2925
2925
|
T([
|
|
2926
2926
|
f(),
|
|
2927
|
-
|
|
2927
|
+
_(v())
|
|
2928
2928
|
]);
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2929
|
+
_(v());
|
|
2930
|
+
_(v());
|
|
2931
|
+
_(v());
|
|
2932
|
+
_(v());
|
|
2933
|
+
_(v());
|
|
2934
2934
|
I(v());
|
|
2935
2935
|
T([
|
|
2936
2936
|
a(),
|
|
2937
|
-
|
|
2937
|
+
_(v())
|
|
2938
2938
|
]);
|
|
2939
|
-
|
|
2939
|
+
_(v());
|
|
2940
2940
|
T([
|
|
2941
2941
|
a(),
|
|
2942
|
-
|
|
2942
|
+
_(v())
|
|
2943
2943
|
]);
|
|
2944
|
-
|
|
2944
|
+
_(v());
|
|
2945
2945
|
T([
|
|
2946
2946
|
a(),
|
|
2947
|
-
|
|
2947
|
+
_(v())
|
|
2948
2948
|
]);
|
|
2949
|
-
|
|
2949
|
+
_(v());
|
|
2950
2950
|
T([
|
|
2951
2951
|
a(),
|
|
2952
|
-
|
|
2952
|
+
_(v())
|
|
2953
2953
|
]);
|
|
2954
|
-
|
|
2955
|
-
|
|
2954
|
+
_(v());
|
|
2955
|
+
_(v());
|
|
2956
2956
|
T([
|
|
2957
2957
|
f(),
|
|
2958
|
-
|
|
2958
|
+
_(v())
|
|
2959
2959
|
]);
|
|
2960
|
-
|
|
2961
|
-
|
|
2960
|
+
_(v());
|
|
2961
|
+
_(v());
|
|
2962
2962
|
T([
|
|
2963
2963
|
f(),
|
|
2964
|
-
|
|
2964
|
+
_(v())
|
|
2965
2965
|
]);
|
|
2966
|
-
|
|
2966
|
+
_(
|
|
2967
2967
|
v()
|
|
2968
2968
|
);
|
|
2969
2969
|
T([
|
|
2970
2970
|
a(),
|
|
2971
2971
|
f(),
|
|
2972
|
-
|
|
2972
|
+
_(v())
|
|
2973
2973
|
]);
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2974
|
+
_(v());
|
|
2975
|
+
_(v());
|
|
2976
|
+
_(v());
|
|
2977
|
+
_(v());
|
|
2978
2978
|
T([
|
|
2979
2979
|
f(),
|
|
2980
|
-
|
|
2980
|
+
_(v())
|
|
2981
2981
|
]);
|
|
2982
2982
|
T([
|
|
2983
2983
|
f(),
|
|
2984
|
-
|
|
2984
|
+
_(v())
|
|
2985
2985
|
]);
|
|
2986
2986
|
T([
|
|
2987
2987
|
f(),
|
|
2988
|
-
|
|
2988
|
+
_(v())
|
|
2989
2989
|
]);
|
|
2990
2990
|
T([
|
|
2991
2991
|
f(),
|
|
2992
|
-
|
|
2992
|
+
_(v())
|
|
2993
2993
|
]);
|
|
2994
2994
|
T([
|
|
2995
2995
|
f(),
|
|
2996
|
-
|
|
2996
|
+
_(v())
|
|
2997
2997
|
]);
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
2998
|
+
_(v());
|
|
2999
|
+
_(v());
|
|
3000
|
+
_(v());
|
|
3001
3001
|
c({});
|
|
3002
3002
|
T([
|
|
3003
3003
|
Lr([T([c({ text: a() }), a()])]),
|
|
@@ -3063,18 +3063,18 @@ c({
|
|
|
3063
3063
|
T([
|
|
3064
3064
|
a(),
|
|
3065
3065
|
f(),
|
|
3066
|
-
|
|
3066
|
+
b(),
|
|
3067
3067
|
Lt(),
|
|
3068
3068
|
I(v()),
|
|
3069
|
-
|
|
3069
|
+
_(v())
|
|
3070
3070
|
]);
|
|
3071
3071
|
c({
|
|
3072
3072
|
url: a().describe("URL to fetch"),
|
|
3073
3073
|
method: a().default("GET").describe("HTTP method (GET, POST, PUT, DELETE, etc.)"),
|
|
3074
|
-
headers:
|
|
3074
|
+
headers: _(a()).default({}).describe("Request headers as key-value pairs"),
|
|
3075
3075
|
body: a().nullable().default(null).describe("Request body string"),
|
|
3076
3076
|
timeout: j().default(30000n).describe("Timeout in milliseconds"),
|
|
3077
|
-
store:
|
|
3077
|
+
store: b().optional().describe(
|
|
3078
3078
|
"When true, store binary responses as a handle instead of returning body bytes"
|
|
3079
3079
|
),
|
|
3080
3080
|
options: c({}).passthrough().optional().describe("Fetch options")
|
|
@@ -3161,7 +3161,7 @@ M({
|
|
|
3161
3161
|
)
|
|
3162
3162
|
});
|
|
3163
3163
|
M({
|
|
3164
|
-
checked:
|
|
3164
|
+
checked: b().optional().describe("Desired checked state (true to check, false to uncheck)")
|
|
3165
3165
|
});
|
|
3166
3166
|
c({
|
|
3167
3167
|
name: a().min(1).describe("The `name` attribute of the radio group to pick from"),
|
|
@@ -3191,7 +3191,7 @@ c({
|
|
|
3191
3191
|
c({
|
|
3192
3192
|
selector: a().describe("CSS selector for the root element(s) to introspect"),
|
|
3193
3193
|
depth: f().int().min(0).max(10).default(2).describe("How many descendant levels to include (0 = root only)"),
|
|
3194
|
-
includeHidden:
|
|
3194
|
+
includeHidden: b().default(!0).describe(
|
|
3195
3195
|
"Include elements hidden by CSS/aria (default true — this tool's purpose is to see what the curated snapshot filters out)"
|
|
3196
3196
|
)
|
|
3197
3197
|
});
|
|
@@ -3222,12 +3222,12 @@ const qr = c({
|
|
|
3222
3222
|
value: T([a(), I(a())]).optional().describe(
|
|
3223
3223
|
"Final value of the element after the action (string, or string[] for multi-select)"
|
|
3224
3224
|
),
|
|
3225
|
-
checked:
|
|
3226
|
-
disabled:
|
|
3227
|
-
readOnly:
|
|
3228
|
-
required:
|
|
3229
|
-
valid:
|
|
3230
|
-
invalid:
|
|
3225
|
+
checked: b().optional().describe("Checked state after the action"),
|
|
3226
|
+
disabled: b().optional().describe("Whether the element is disabled"),
|
|
3227
|
+
readOnly: b().optional().describe("Whether the element is read-only"),
|
|
3228
|
+
required: b().optional().describe("Whether the element is required"),
|
|
3229
|
+
valid: b().optional().describe("HTML constraint validity after the action, when available"),
|
|
3230
|
+
invalid: b().optional().describe("Inverse validity / aria-invalid state after the action"),
|
|
3231
3231
|
validationMessage: a().optional().describe("Browser validation message when the element is invalid"),
|
|
3232
3232
|
invalidControls: I(
|
|
3233
3233
|
c({
|
|
@@ -3240,7 +3240,7 @@ const qr = c({
|
|
|
3240
3240
|
"Linked visible error text from aria-errormessage/aria-describedby"
|
|
3241
3241
|
),
|
|
3242
3242
|
value: a().optional(),
|
|
3243
|
-
required:
|
|
3243
|
+
required: b().optional(),
|
|
3244
3244
|
validationMessage: a().optional()
|
|
3245
3245
|
})
|
|
3246
3246
|
).optional().describe("Invalid form controls after submit, when available"),
|
|
@@ -3264,8 +3264,8 @@ const qr = c({
|
|
|
3264
3264
|
T([qr, Lt()]);
|
|
3265
3265
|
c({
|
|
3266
3266
|
status: f().describe("HTTP response status code"),
|
|
3267
|
-
ok:
|
|
3268
|
-
headers:
|
|
3267
|
+
ok: b().describe("Whether the response status is 2xx"),
|
|
3268
|
+
headers: _(a()).describe("Response headers as key-value pairs"),
|
|
3269
3269
|
body: a().optional().describe("Response body (omitted when bodyEncoding is handle)"),
|
|
3270
3270
|
bodyEncoding: _e(["text", "base64", "handle"]).describe("Encoding of the body field"),
|
|
3271
3271
|
handle: a().optional().describe("Binary handle when bodyEncoding is handle"),
|
|
@@ -3284,7 +3284,7 @@ c({
|
|
|
3284
3284
|
title: a(),
|
|
3285
3285
|
contentScript: _e(["connected", "missing"]),
|
|
3286
3286
|
domApis: _e(["ok", "blocked"]),
|
|
3287
|
-
mutationsReady:
|
|
3287
|
+
mutationsReady: b(),
|
|
3288
3288
|
hint: a().optional(),
|
|
3289
3289
|
recovery: I(a()).optional()
|
|
3290
3290
|
});
|
|
@@ -3295,23 +3295,23 @@ const Hr = c({
|
|
|
3295
3295
|
controlType: a().optional().describe(
|
|
3296
3296
|
'Plain-language control type, e.g. "dropdown" for combobox/select'
|
|
3297
3297
|
),
|
|
3298
|
-
actionable:
|
|
3298
|
+
actionable: b().optional().describe("Whether this node can be acted on directly"),
|
|
3299
3299
|
forControl: a().optional().describe("refId of the dropdown this validation-proxy belongs to"),
|
|
3300
3300
|
recommendedAction: a().optional().describe("Recommended page.* action for this control"),
|
|
3301
3301
|
controls: a().optional().describe("ID(s) of controlled popup/listbox elements, when exposed"),
|
|
3302
|
-
expanded:
|
|
3302
|
+
expanded: b().optional().describe("Expanded state for popup controls"),
|
|
3303
3303
|
name: a().optional().describe("Accessible name of the element"),
|
|
3304
3304
|
text: a().optional().describe("Visible text content of the element"),
|
|
3305
3305
|
value: a().optional().describe("Element value"),
|
|
3306
|
-
required:
|
|
3307
|
-
valid:
|
|
3308
|
-
invalid:
|
|
3306
|
+
required: b().optional().describe("Whether the element is required"),
|
|
3307
|
+
valid: b().optional().describe("Constraint validity state"),
|
|
3308
|
+
invalid: b().optional().describe("Constraint invalidity state"),
|
|
3309
3309
|
validationMessage: a().optional().describe("Browser constraint validation message"),
|
|
3310
3310
|
errorMessage: a().optional().describe("Visible error text linked to the field"),
|
|
3311
|
-
checked:
|
|
3312
|
-
disabled:
|
|
3313
|
-
readOnly:
|
|
3314
|
-
selected:
|
|
3311
|
+
checked: b().optional().describe("Checked state"),
|
|
3312
|
+
disabled: b().optional().describe("Whether the element is disabled"),
|
|
3313
|
+
readOnly: b().optional().describe("Whether the element is read-only"),
|
|
3314
|
+
selected: b().optional().describe("For <option>: selected state"),
|
|
3315
3315
|
href: a().optional().describe("Absolute URL for link elements"),
|
|
3316
3316
|
src: a().optional().describe("Absolute URL for image elements"),
|
|
3317
3317
|
alt: a().optional().describe("Alternative text for image elements"),
|
|
@@ -3351,8 +3351,8 @@ const Zt = c({
|
|
|
3351
3351
|
role: a().optional(),
|
|
3352
3352
|
name: a().optional(),
|
|
3353
3353
|
text: a().optional(),
|
|
3354
|
-
attributes:
|
|
3355
|
-
hidden:
|
|
3354
|
+
attributes: _(a()).optional().describe("All HTML attributes (raw)"),
|
|
3355
|
+
hidden: b().optional(),
|
|
3356
3356
|
hiddenReason: _e([
|
|
3357
3357
|
"display-none",
|
|
3358
3358
|
"visibility-hidden",
|
|
@@ -3362,10 +3362,10 @@ const Zt = c({
|
|
|
3362
3362
|
"inert"
|
|
3363
3363
|
]).optional(),
|
|
3364
3364
|
value: a().optional(),
|
|
3365
|
-
checked:
|
|
3366
|
-
disabled:
|
|
3367
|
-
readOnly:
|
|
3368
|
-
selected:
|
|
3365
|
+
checked: b().optional(),
|
|
3366
|
+
disabled: b().optional(),
|
|
3367
|
+
readOnly: b().optional(),
|
|
3368
|
+
selected: b().optional().describe("For <option>: selected state"),
|
|
3369
3369
|
href: a().optional(),
|
|
3370
3370
|
src: a().optional(),
|
|
3371
3371
|
alt: a().optional(),
|
|
@@ -3374,7 +3374,7 @@ const Zt = c({
|
|
|
3374
3374
|
controlType: a().optional(),
|
|
3375
3375
|
recommendedAction: a().optional(),
|
|
3376
3376
|
controls: a().optional(),
|
|
3377
|
-
expanded:
|
|
3377
|
+
expanded: b().optional(),
|
|
3378
3378
|
children: I(Pr(() => Zt)).optional().describe("Nested descendants up to `depth`")
|
|
3379
3379
|
});
|
|
3380
3380
|
c({
|
|
@@ -3390,22 +3390,22 @@ const Wt = c({
|
|
|
3390
3390
|
url: a().optional().describe("Tab URL"),
|
|
3391
3391
|
title: a().optional().describe("Tab title"),
|
|
3392
3392
|
status: a().optional().describe("Tab status (loading or complete)"),
|
|
3393
|
-
active:
|
|
3394
|
-
pinned:
|
|
3395
|
-
highlighted:
|
|
3396
|
-
incognito:
|
|
3393
|
+
active: b().optional().describe("Whether the tab is active"),
|
|
3394
|
+
pinned: b().optional().describe("Whether the tab is pinned"),
|
|
3395
|
+
highlighted: b().optional().describe("Whether the tab is highlighted"),
|
|
3396
|
+
incognito: b().optional().describe("Whether the tab is incognito"),
|
|
3397
3397
|
favIconUrl: a().optional().describe("Favicon URL"),
|
|
3398
|
-
audible:
|
|
3398
|
+
audible: b().optional().describe("Whether the tab is audible"),
|
|
3399
3399
|
groupId: f().optional().describe("Group ID"),
|
|
3400
3400
|
openerTabId: f().optional().describe("Opener tab ID"),
|
|
3401
|
-
discarded:
|
|
3402
|
-
autoDiscardable:
|
|
3401
|
+
discarded: b().optional().describe("Whether the tab is discarded"),
|
|
3402
|
+
autoDiscardable: b().optional().describe("Whether the tab is auto-discardable"),
|
|
3403
3403
|
width: f().optional().describe("Tab width"),
|
|
3404
3404
|
height: f().optional().describe("Tab height"),
|
|
3405
3405
|
sessionId: a().optional().describe("Session ID")
|
|
3406
3406
|
}).passthrough(), Gr = I(Wt), Vt = c({
|
|
3407
3407
|
id: f().optional().describe("Window ID"),
|
|
3408
|
-
focused:
|
|
3408
|
+
focused: b().optional().describe("Whether the window is focused"),
|
|
3409
3409
|
top: f().optional().describe("Window top position"),
|
|
3410
3410
|
left: f().optional().describe("Window left position"),
|
|
3411
3411
|
width: f().optional().describe("Window width"),
|
|
@@ -3413,10 +3413,10 @@ const Wt = c({
|
|
|
3413
3413
|
tabs: Gr.optional().describe(
|
|
3414
3414
|
"Array of tabs in the window"
|
|
3415
3415
|
),
|
|
3416
|
-
incognito:
|
|
3416
|
+
incognito: b().optional().describe("Whether the window is incognito"),
|
|
3417
3417
|
type: a().optional().describe("Window type"),
|
|
3418
3418
|
state: a().optional().describe("Window state"),
|
|
3419
|
-
alwaysOnTop:
|
|
3419
|
+
alwaysOnTop: b().optional().describe("Whether the window is always on top"),
|
|
3420
3420
|
sessionId: a().optional().describe("Session ID")
|
|
3421
3421
|
}).passthrough();
|
|
3422
3422
|
I(Vt);
|
|
@@ -3424,12 +3424,12 @@ const Jr = c({
|
|
|
3424
3424
|
name: a().describe("Cookie name"),
|
|
3425
3425
|
value: a().describe("Cookie value"),
|
|
3426
3426
|
domain: a().optional().describe("Cookie domain"),
|
|
3427
|
-
hostOnly:
|
|
3427
|
+
hostOnly: b().optional().describe("Whether the cookie is host-only"),
|
|
3428
3428
|
path: a().optional().describe("Cookie path"),
|
|
3429
|
-
secure:
|
|
3430
|
-
httpOnly:
|
|
3429
|
+
secure: b().optional().describe("Whether the cookie is secure"),
|
|
3430
|
+
httpOnly: b().optional().describe("Whether the cookie is HTTP-only"),
|
|
3431
3431
|
sameSite: a().optional().describe("SameSite policy"),
|
|
3432
|
-
session:
|
|
3432
|
+
session: b().optional().describe("Whether the cookie is a session cookie"),
|
|
3433
3433
|
expirationDate: f().optional().describe("Expiration date as Unix timestamp"),
|
|
3434
3434
|
storeId: a().optional().describe("Store ID")
|
|
3435
3435
|
}).nullable();
|
|
@@ -3462,12 +3462,12 @@ const Qr = c({
|
|
|
3462
3462
|
});
|
|
3463
3463
|
I(Qr);
|
|
3464
3464
|
a();
|
|
3465
|
-
|
|
3465
|
+
b();
|
|
3466
3466
|
T([a(), f()]);
|
|
3467
|
-
|
|
3467
|
+
b();
|
|
3468
3468
|
const Xr = c({
|
|
3469
3469
|
id: f().optional().describe("Group ID"),
|
|
3470
|
-
collapsed:
|
|
3470
|
+
collapsed: b().optional().describe("Whether the group is collapsed"),
|
|
3471
3471
|
color: a().optional().describe("Group color"),
|
|
3472
3472
|
title: a().optional().describe("Group title"),
|
|
3473
3473
|
windowId: f().optional().describe("Window ID")
|
|
@@ -3490,13 +3490,13 @@ const nn = c({
|
|
|
3490
3490
|
endTime: a().optional().describe("End time"),
|
|
3491
3491
|
state: a().optional().describe("Download state"),
|
|
3492
3492
|
danger: a().optional().describe("Danger type"),
|
|
3493
|
-
paused:
|
|
3493
|
+
paused: b().optional().describe("Whether the download is paused"),
|
|
3494
3494
|
error: a().optional().describe("Error message"),
|
|
3495
3495
|
bytesReceived: f().optional().describe("Bytes received"),
|
|
3496
3496
|
totalBytes: f().optional().describe("Total bytes"),
|
|
3497
3497
|
fileSize: f().optional().describe("File size"),
|
|
3498
3498
|
mime: a().optional().describe("MIME type"),
|
|
3499
|
-
incognito:
|
|
3499
|
+
incognito: b().optional().describe("Whether the download is incognito"),
|
|
3500
3500
|
referrer: a().optional().describe("Referrer URL"),
|
|
3501
3501
|
byExtensionId: a().optional().describe("Extension ID"),
|
|
3502
3502
|
byExtensionName: a().optional().describe("Extension name")
|
|
@@ -3536,7 +3536,7 @@ M({
|
|
|
3536
3536
|
value: a().optional().describe("Value to select in the dropdown")
|
|
3537
3537
|
});
|
|
3538
3538
|
M({
|
|
3539
|
-
checked:
|
|
3539
|
+
checked: b().optional().describe("Desired checked state (true to check, false to uncheck)")
|
|
3540
3540
|
});
|
|
3541
3541
|
M();
|
|
3542
3542
|
c({});
|
|
@@ -3554,19 +3554,19 @@ c({
|
|
|
3554
3554
|
duration: j().default(1000n).describe("Duration to wait in milliseconds")
|
|
3555
3555
|
});
|
|
3556
3556
|
c({
|
|
3557
|
-
interactive_only:
|
|
3557
|
+
interactive_only: b().default(!1).describe("Only include interactive elements"),
|
|
3558
3558
|
max_nodes: j().default(500n).describe("Maximum number of nodes to include in snapshot")
|
|
3559
3559
|
});
|
|
3560
3560
|
c({
|
|
3561
|
-
interactive_only:
|
|
3561
|
+
interactive_only: b().default(!1).describe("Only include interactive elements"),
|
|
3562
3562
|
max_nodes: j().default(500n).describe("Maximum number of nodes to include in snapshot")
|
|
3563
3563
|
});
|
|
3564
3564
|
c({
|
|
3565
|
-
interactive_only:
|
|
3565
|
+
interactive_only: b().default(!1).describe("Only include interactive elements"),
|
|
3566
3566
|
max_nodes: j().default(500n).describe("Maximum number of nodes to include in snapshot")
|
|
3567
3567
|
});
|
|
3568
3568
|
c({
|
|
3569
|
-
interactive_only:
|
|
3569
|
+
interactive_only: b().default(!1).describe("Only include interactive elements"),
|
|
3570
3570
|
max_nodes: j().default(500n).describe("Maximum number of nodes to include in snapshot")
|
|
3571
3571
|
});
|
|
3572
3572
|
c({
|
|
@@ -3590,7 +3590,7 @@ const sn = c({
|
|
|
3590
3590
|
tag: T([a(), I(a())]).optional().describe("Filter by HTML tag"),
|
|
3591
3591
|
text: a().optional().describe("Filter by text content (case-insensitive substring)"),
|
|
3592
3592
|
name: a().optional().describe("Filter by accessible name (case-insensitive substring)"),
|
|
3593
|
-
interactiveOnly:
|
|
3593
|
+
interactiveOnly: b().optional().describe("Only include interactive elements"),
|
|
3594
3594
|
href: a().optional().describe("Filter by href pattern (case-insensitive substring)"),
|
|
3595
3595
|
src: a().optional().describe("Filter by src pattern (case-insensitive substring)"),
|
|
3596
3596
|
limit: f().positive().optional().describe("Maximum filtered nodes to return")
|
|
@@ -3615,12 +3615,12 @@ c({
|
|
|
3615
3615
|
});
|
|
3616
3616
|
c({});
|
|
3617
3617
|
const on = c({
|
|
3618
|
-
items:
|
|
3618
|
+
items: _(a()).describe("Record of key-value string pairs to store")
|
|
3619
3619
|
});
|
|
3620
3620
|
ee((t) => t !== null && typeof t == "object" && !Array.isArray(t) && !("items" in t) ? { items: t } : t, on);
|
|
3621
3621
|
const dn = c({
|
|
3622
3622
|
keys: I(a()).describe("Array of storage keys to retrieve"),
|
|
3623
|
-
defaults:
|
|
3623
|
+
defaults: _(a()).optional().describe("Default string values for missing keys")
|
|
3624
3624
|
});
|
|
3625
3625
|
ee(
|
|
3626
3626
|
(t) => Array.isArray(t) ? { keys: t } : t,
|
|
@@ -3636,15 +3636,16 @@ ee(
|
|
|
3636
3636
|
);
|
|
3637
3637
|
c({});
|
|
3638
3638
|
c({
|
|
3639
|
-
active:
|
|
3640
|
-
currentWindow:
|
|
3639
|
+
active: b().optional().describe("Whether the tabs are active"),
|
|
3640
|
+
currentWindow: b().optional().describe("Whether the tabs are in the current window"),
|
|
3641
3641
|
url: a().optional().describe("URL pattern to match tabs against")
|
|
3642
3642
|
}).passthrough();
|
|
3643
3643
|
ee(
|
|
3644
3644
|
(t) => typeof t == "string" ? { url: t } : t,
|
|
3645
3645
|
c({
|
|
3646
3646
|
url: a().optional().describe("URL to open in the new tab"),
|
|
3647
|
-
active:
|
|
3647
|
+
active: b().optional().describe("Whether to focus the new tab"),
|
|
3648
|
+
waitForReady: b().optional().describe("Wait for page load and content-script readiness")
|
|
3648
3649
|
})
|
|
3649
3650
|
);
|
|
3650
3651
|
T([
|
|
@@ -3699,7 +3700,7 @@ B({
|
|
|
3699
3700
|
)
|
|
3700
3701
|
});
|
|
3701
3702
|
B({
|
|
3702
|
-
checked:
|
|
3703
|
+
checked: b().optional().describe("Desired checked state (true to check, false to uncheck)")
|
|
3703
3704
|
});
|
|
3704
3705
|
B();
|
|
3705
3706
|
B();
|