@opensteer/protocol 0.7.1 → 0.7.2
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/index.cjs +30 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -26
- package/dist/index.d.ts +24 -26
- package/dist/index.js +29 -38
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -814,14 +814,10 @@ var networkRecordSchema = objectSchema(
|
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
);
|
|
817
|
-
var networkQuerySourceSchema = enumSchema(["live", "saved"], {
|
|
818
|
-
title: "NetworkQuerySource"
|
|
819
|
-
});
|
|
820
817
|
var networkQueryRecordSchema = objectSchema(
|
|
821
818
|
{
|
|
822
819
|
recordId: stringSchema({ minLength: 1 }),
|
|
823
|
-
|
|
824
|
-
actionId: stringSchema({ minLength: 1 }),
|
|
820
|
+
capture: stringSchema({ minLength: 1 }),
|
|
825
821
|
tags: arraySchema(stringSchema({ minLength: 1 }), {
|
|
826
822
|
uniqueItems: true
|
|
827
823
|
}),
|
|
@@ -830,7 +826,7 @@ var networkQueryRecordSchema = objectSchema(
|
|
|
830
826
|
},
|
|
831
827
|
{
|
|
832
828
|
title: "NetworkQueryRecord",
|
|
833
|
-
required: ["recordId", "
|
|
829
|
+
required: ["recordId", "record"]
|
|
834
830
|
}
|
|
835
831
|
);
|
|
836
832
|
var orderedHeadersSchema = arraySchema(headerEntrySchema, {
|
|
@@ -1303,8 +1299,7 @@ var opensteerRecipeStepSchema = oneOfSchema(
|
|
|
1303
1299
|
objectSchema(
|
|
1304
1300
|
{
|
|
1305
1301
|
kind: enumSchema(["goto"]),
|
|
1306
|
-
url: stringSchema({ minLength: 1 })
|
|
1307
|
-
networkTag: stringSchema({ minLength: 1 })
|
|
1302
|
+
url: stringSchema({ minLength: 1 })
|
|
1308
1303
|
},
|
|
1309
1304
|
{
|
|
1310
1305
|
title: "OpensteerAuthRecipeGotoStep",
|
|
@@ -1313,8 +1308,7 @@ var opensteerRecipeStepSchema = oneOfSchema(
|
|
|
1313
1308
|
),
|
|
1314
1309
|
objectSchema(
|
|
1315
1310
|
{
|
|
1316
|
-
kind: enumSchema(["reload"])
|
|
1317
|
-
networkTag: stringSchema({ minLength: 1 })
|
|
1311
|
+
kind: enumSchema(["reload"])
|
|
1318
1312
|
},
|
|
1319
1313
|
{
|
|
1320
1314
|
title: "OpensteerAuthRecipeReloadStep",
|
|
@@ -1530,13 +1524,10 @@ var opensteerRecipeRecordSchema = objectSchema(
|
|
|
1530
1524
|
var opensteerAuthRecipeRecordSchema = opensteerRecipeRecordSchema;
|
|
1531
1525
|
var opensteerNetworkQueryInputSchema = objectSchema(
|
|
1532
1526
|
{
|
|
1533
|
-
source: enumSchema(["live", "saved"], {
|
|
1534
|
-
title: "OpensteerNetworkQuerySource"
|
|
1535
|
-
}),
|
|
1536
1527
|
pageRef: pageRefSchema,
|
|
1537
1528
|
recordId: stringSchema({ minLength: 1 }),
|
|
1538
1529
|
requestId: stringSchema({ minLength: 1 }),
|
|
1539
|
-
|
|
1530
|
+
capture: stringSchema({ minLength: 1 }),
|
|
1540
1531
|
tag: stringSchema({ minLength: 1 }),
|
|
1541
1532
|
url: stringSchema({ minLength: 1 }),
|
|
1542
1533
|
hostname: stringSchema({ minLength: 1 }),
|
|
@@ -1560,12 +1551,12 @@ var opensteerNetworkQueryOutputSchema = objectSchema(
|
|
|
1560
1551
|
required: ["records"]
|
|
1561
1552
|
}
|
|
1562
1553
|
);
|
|
1563
|
-
var
|
|
1554
|
+
var opensteerNetworkTagInputSchema = objectSchema(
|
|
1564
1555
|
{
|
|
1565
1556
|
pageRef: pageRefSchema,
|
|
1566
1557
|
recordId: stringSchema({ minLength: 1 }),
|
|
1567
1558
|
requestId: stringSchema({ minLength: 1 }),
|
|
1568
|
-
|
|
1559
|
+
capture: stringSchema({ minLength: 1 }),
|
|
1569
1560
|
tag: stringSchema({ minLength: 1 }),
|
|
1570
1561
|
url: stringSchema({ minLength: 1 }),
|
|
1571
1562
|
hostname: stringSchema({ minLength: 1 }),
|
|
@@ -1575,21 +1566,22 @@ var opensteerNetworkSaveInputSchema = objectSchema(
|
|
|
1575
1566
|
resourceType: networkResourceTypeSchema
|
|
1576
1567
|
},
|
|
1577
1568
|
{
|
|
1578
|
-
title: "
|
|
1569
|
+
title: "OpensteerNetworkTagInput",
|
|
1579
1570
|
required: ["tag"]
|
|
1580
1571
|
}
|
|
1581
1572
|
);
|
|
1582
|
-
var
|
|
1573
|
+
var opensteerNetworkTagOutputSchema = objectSchema(
|
|
1583
1574
|
{
|
|
1584
|
-
|
|
1575
|
+
taggedCount: integerSchema({ minimum: 0 })
|
|
1585
1576
|
},
|
|
1586
1577
|
{
|
|
1587
|
-
title: "
|
|
1588
|
-
required: ["
|
|
1578
|
+
title: "OpensteerNetworkTagOutput",
|
|
1579
|
+
required: ["taggedCount"]
|
|
1589
1580
|
}
|
|
1590
1581
|
);
|
|
1591
1582
|
var opensteerNetworkClearInputSchema = objectSchema(
|
|
1592
1583
|
{
|
|
1584
|
+
capture: stringSchema({ minLength: 1 }),
|
|
1593
1585
|
tag: stringSchema({ minLength: 1 })
|
|
1594
1586
|
},
|
|
1595
1587
|
{
|
|
@@ -6239,7 +6231,7 @@ var opensteerSemanticOperationNames = [
|
|
|
6239
6231
|
"dom.scroll",
|
|
6240
6232
|
"dom.extract",
|
|
6241
6233
|
"network.query",
|
|
6242
|
-
"network.
|
|
6234
|
+
"network.tag",
|
|
6243
6235
|
"network.clear",
|
|
6244
6236
|
"network.minimize",
|
|
6245
6237
|
"network.diff",
|
|
@@ -6300,7 +6292,7 @@ var opensteerPackageRunnableSemanticOperationNames = /* @__PURE__ */ new Set([
|
|
|
6300
6292
|
"dom.scroll",
|
|
6301
6293
|
"dom.extract",
|
|
6302
6294
|
"network.query",
|
|
6303
|
-
"network.
|
|
6295
|
+
"network.tag",
|
|
6304
6296
|
"network.clear",
|
|
6305
6297
|
"network.minimize",
|
|
6306
6298
|
"network.diff",
|
|
@@ -6620,7 +6612,7 @@ var opensteerPageCloseOutputSchema = objectSchema(
|
|
|
6620
6612
|
var opensteerPageGotoInputSchema = objectSchema(
|
|
6621
6613
|
{
|
|
6622
6614
|
url: stringSchema(),
|
|
6623
|
-
|
|
6615
|
+
captureNetwork: stringSchema({ minLength: 1 })
|
|
6624
6616
|
},
|
|
6625
6617
|
{
|
|
6626
6618
|
title: "OpensteerPageGotoInput",
|
|
@@ -6771,7 +6763,7 @@ var opensteerDomClickInputSchema = objectSchema(
|
|
|
6771
6763
|
{
|
|
6772
6764
|
target: opensteerTargetInputSchema,
|
|
6773
6765
|
persistAsDescription: stringSchema(),
|
|
6774
|
-
|
|
6766
|
+
captureNetwork: stringSchema({ minLength: 1 })
|
|
6775
6767
|
},
|
|
6776
6768
|
{
|
|
6777
6769
|
title: "OpensteerDomClickInput",
|
|
@@ -6782,7 +6774,7 @@ var opensteerDomHoverInputSchema = objectSchema(
|
|
|
6782
6774
|
{
|
|
6783
6775
|
target: opensteerTargetInputSchema,
|
|
6784
6776
|
persistAsDescription: stringSchema(),
|
|
6785
|
-
|
|
6777
|
+
captureNetwork: stringSchema({ minLength: 1 })
|
|
6786
6778
|
},
|
|
6787
6779
|
{
|
|
6788
6780
|
title: "OpensteerDomHoverInput",
|
|
@@ -6795,7 +6787,7 @@ var opensteerDomInputInputSchema = objectSchema(
|
|
|
6795
6787
|
text: stringSchema(),
|
|
6796
6788
|
pressEnter: { type: "boolean" },
|
|
6797
6789
|
persistAsDescription: stringSchema(),
|
|
6798
|
-
|
|
6790
|
+
captureNetwork: stringSchema({ minLength: 1 })
|
|
6799
6791
|
},
|
|
6800
6792
|
{
|
|
6801
6793
|
title: "OpensteerDomInputInput",
|
|
@@ -6808,7 +6800,7 @@ var opensteerDomScrollInputSchema = objectSchema(
|
|
|
6808
6800
|
direction: enumSchema(["up", "down", "left", "right"]),
|
|
6809
6801
|
amount: integerSchema({ minimum: 1 }),
|
|
6810
6802
|
persistAsDescription: stringSchema(),
|
|
6811
|
-
|
|
6803
|
+
captureNetwork: stringSchema({ minLength: 1 })
|
|
6812
6804
|
},
|
|
6813
6805
|
{
|
|
6814
6806
|
title: "OpensteerDomScrollInput",
|
|
@@ -7009,7 +7001,7 @@ var opensteerComputerExecuteInputSchema = objectSchema(
|
|
|
7009
7001
|
{
|
|
7010
7002
|
action: opensteerComputerActionSchema,
|
|
7011
7003
|
screenshot: opensteerComputerScreenshotOptionsSchema,
|
|
7012
|
-
|
|
7004
|
+
captureNetwork: stringSchema({ minLength: 1 })
|
|
7013
7005
|
},
|
|
7014
7006
|
{
|
|
7015
7007
|
title: "OpensteerComputerExecuteInput",
|
|
@@ -7213,18 +7205,17 @@ var opensteerSemanticOperationSpecificationsBase = [
|
|
|
7213
7205
|
}),
|
|
7214
7206
|
defineSemanticOperationSpec({
|
|
7215
7207
|
name: "network.query",
|
|
7216
|
-
description: "Query
|
|
7208
|
+
description: "Query persisted network records for reverse engineering workflows.",
|
|
7217
7209
|
inputSchema: opensteerNetworkQueryInputSchema,
|
|
7218
7210
|
outputSchema: opensteerNetworkQueryOutputSchema,
|
|
7219
|
-
requiredCapabilities: []
|
|
7220
|
-
resolveRequiredCapabilities: (input) => input.source === "saved" ? [] : input.includeBodies === true ? ["inspect.network", "inspect.networkBodies"] : ["inspect.network"]
|
|
7211
|
+
requiredCapabilities: []
|
|
7221
7212
|
}),
|
|
7222
7213
|
defineSemanticOperationSpec({
|
|
7223
|
-
name: "network.
|
|
7224
|
-
description: "
|
|
7225
|
-
inputSchema:
|
|
7226
|
-
outputSchema:
|
|
7227
|
-
requiredCapabilities: [
|
|
7214
|
+
name: "network.tag",
|
|
7215
|
+
description: "Apply a tag to persisted network records matching the provided filters.",
|
|
7216
|
+
inputSchema: opensteerNetworkTagInputSchema,
|
|
7217
|
+
outputSchema: opensteerNetworkTagOutputSchema,
|
|
7218
|
+
requiredCapabilities: []
|
|
7228
7219
|
}),
|
|
7229
7220
|
defineSemanticOperationSpec({
|
|
7230
7221
|
name: "network.clear",
|
|
@@ -7826,7 +7817,6 @@ exports.networkDiffFieldSchema = networkDiffFieldSchema;
|
|
|
7826
7817
|
exports.networkInitiatorSchema = networkInitiatorSchema;
|
|
7827
7818
|
exports.networkInitiatorTypeSchema = networkInitiatorTypeSchema;
|
|
7828
7819
|
exports.networkQueryRecordSchema = networkQueryRecordSchema;
|
|
7829
|
-
exports.networkQuerySourceSchema = networkQuerySourceSchema;
|
|
7830
7820
|
exports.networkRecordKindSchema = networkRecordKindSchema;
|
|
7831
7821
|
exports.networkRecordSchema = networkRecordSchema;
|
|
7832
7822
|
exports.networkRequestIdSchema = networkRequestIdSchema;
|
|
@@ -7897,8 +7887,8 @@ exports.opensteerNetworkMinimizeOutputSchema = opensteerNetworkMinimizeOutputSch
|
|
|
7897
7887
|
exports.opensteerNetworkMinimizeSuccessPolicySchema = opensteerNetworkMinimizeSuccessPolicySchema;
|
|
7898
7888
|
exports.opensteerNetworkQueryInputSchema = opensteerNetworkQueryInputSchema;
|
|
7899
7889
|
exports.opensteerNetworkQueryOutputSchema = opensteerNetworkQueryOutputSchema;
|
|
7900
|
-
exports.
|
|
7901
|
-
exports.
|
|
7890
|
+
exports.opensteerNetworkTagInputSchema = opensteerNetworkTagInputSchema;
|
|
7891
|
+
exports.opensteerNetworkTagOutputSchema = opensteerNetworkTagOutputSchema;
|
|
7902
7892
|
exports.opensteerObservationClusterRelationshipKindSchema = opensteerObservationClusterRelationshipKindSchema;
|
|
7903
7893
|
exports.opensteerObservationClusterSchema = opensteerObservationClusterSchema;
|
|
7904
7894
|
exports.opensteerOperationNames = opensteerOperationNames;
|