@opensteer/protocol 0.7.0 → 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 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
- source: networkQuerySourceSchema,
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", "source", "record"]
829
+ required: ["recordId", "record"]
834
830
  }
835
831
  );
836
832
  var orderedHeadersSchema = arraySchema(headerEntrySchema, {
@@ -1141,12 +1137,6 @@ var opensteerRegistryProvenanceSchema = objectSchema(
1141
1137
  required: ["source"]
1142
1138
  }
1143
1139
  );
1144
- var opensteerRequestPlanLifecycleSchema = enumSchema(
1145
- ["draft", "active", "deprecated", "retired"],
1146
- {
1147
- title: "OpensteerRequestPlanLifecycle"
1148
- }
1149
- );
1150
1140
  var opensteerRequestPlanFreshnessSchema = objectSchema(
1151
1141
  {
1152
1142
  lastValidatedAt: integerSchema({ minimum: 0 }),
@@ -1169,23 +1159,12 @@ var opensteerRequestPlanRecordSchema = objectSchema(
1169
1159
  uniqueItems: true
1170
1160
  }),
1171
1161
  provenance: opensteerRegistryProvenanceSchema,
1172
- lifecycle: opensteerRequestPlanLifecycleSchema,
1173
1162
  freshness: opensteerRequestPlanFreshnessSchema,
1174
1163
  payload: opensteerRequestPlanPayloadSchema
1175
1164
  },
1176
1165
  {
1177
1166
  title: "OpensteerRequestPlanRecord",
1178
- required: [
1179
- "id",
1180
- "key",
1181
- "version",
1182
- "createdAt",
1183
- "updatedAt",
1184
- "contentHash",
1185
- "tags",
1186
- "lifecycle",
1187
- "payload"
1188
- ]
1167
+ required: ["id", "key", "version", "createdAt", "updatedAt", "contentHash", "tags", "payload"]
1189
1168
  }
1190
1169
  );
1191
1170
  var jsonValueSchema = defineSchema({
@@ -1320,8 +1299,7 @@ var opensteerRecipeStepSchema = oneOfSchema(
1320
1299
  objectSchema(
1321
1300
  {
1322
1301
  kind: enumSchema(["goto"]),
1323
- url: stringSchema({ minLength: 1 }),
1324
- networkTag: stringSchema({ minLength: 1 })
1302
+ url: stringSchema({ minLength: 1 })
1325
1303
  },
1326
1304
  {
1327
1305
  title: "OpensteerAuthRecipeGotoStep",
@@ -1330,8 +1308,7 @@ var opensteerRecipeStepSchema = oneOfSchema(
1330
1308
  ),
1331
1309
  objectSchema(
1332
1310
  {
1333
- kind: enumSchema(["reload"]),
1334
- networkTag: stringSchema({ minLength: 1 })
1311
+ kind: enumSchema(["reload"])
1335
1312
  },
1336
1313
  {
1337
1314
  title: "OpensteerAuthRecipeReloadStep",
@@ -1547,13 +1524,10 @@ var opensteerRecipeRecordSchema = objectSchema(
1547
1524
  var opensteerAuthRecipeRecordSchema = opensteerRecipeRecordSchema;
1548
1525
  var opensteerNetworkQueryInputSchema = objectSchema(
1549
1526
  {
1550
- source: enumSchema(["live", "saved"], {
1551
- title: "OpensteerNetworkQuerySource"
1552
- }),
1553
1527
  pageRef: pageRefSchema,
1554
1528
  recordId: stringSchema({ minLength: 1 }),
1555
1529
  requestId: stringSchema({ minLength: 1 }),
1556
- actionId: stringSchema({ minLength: 1 }),
1530
+ capture: stringSchema({ minLength: 1 }),
1557
1531
  tag: stringSchema({ minLength: 1 }),
1558
1532
  url: stringSchema({ minLength: 1 }),
1559
1533
  hostname: stringSchema({ minLength: 1 }),
@@ -1577,12 +1551,12 @@ var opensteerNetworkQueryOutputSchema = objectSchema(
1577
1551
  required: ["records"]
1578
1552
  }
1579
1553
  );
1580
- var opensteerNetworkSaveInputSchema = objectSchema(
1554
+ var opensteerNetworkTagInputSchema = objectSchema(
1581
1555
  {
1582
1556
  pageRef: pageRefSchema,
1583
1557
  recordId: stringSchema({ minLength: 1 }),
1584
1558
  requestId: stringSchema({ minLength: 1 }),
1585
- actionId: stringSchema({ minLength: 1 }),
1559
+ capture: stringSchema({ minLength: 1 }),
1586
1560
  tag: stringSchema({ minLength: 1 }),
1587
1561
  url: stringSchema({ minLength: 1 }),
1588
1562
  hostname: stringSchema({ minLength: 1 }),
@@ -1592,21 +1566,22 @@ var opensteerNetworkSaveInputSchema = objectSchema(
1592
1566
  resourceType: networkResourceTypeSchema
1593
1567
  },
1594
1568
  {
1595
- title: "OpensteerNetworkSaveInput",
1569
+ title: "OpensteerNetworkTagInput",
1596
1570
  required: ["tag"]
1597
1571
  }
1598
1572
  );
1599
- var opensteerNetworkSaveOutputSchema = objectSchema(
1573
+ var opensteerNetworkTagOutputSchema = objectSchema(
1600
1574
  {
1601
- savedCount: integerSchema({ minimum: 0 })
1575
+ taggedCount: integerSchema({ minimum: 0 })
1602
1576
  },
1603
1577
  {
1604
- title: "OpensteerNetworkSaveOutput",
1605
- required: ["savedCount"]
1578
+ title: "OpensteerNetworkTagOutput",
1579
+ required: ["taggedCount"]
1606
1580
  }
1607
1581
  );
1608
1582
  var opensteerNetworkClearInputSchema = objectSchema(
1609
1583
  {
1584
+ capture: stringSchema({ minLength: 1 }),
1610
1585
  tag: stringSchema({ minLength: 1 })
1611
1586
  },
1612
1587
  {
@@ -1631,7 +1606,6 @@ var opensteerWriteRequestPlanInputSchema = objectSchema(
1631
1606
  uniqueItems: true
1632
1607
  }),
1633
1608
  provenance: opensteerRegistryProvenanceSchema,
1634
- lifecycle: opensteerRequestPlanLifecycleSchema,
1635
1609
  freshness: opensteerRequestPlanFreshnessSchema,
1636
1610
  payload: opensteerRequestPlanPayloadSchema
1637
1611
  },
@@ -1872,7 +1846,7 @@ var opensteerInferRequestPlanInputSchema = objectSchema(
1872
1846
  recordId: stringSchema({ minLength: 1 }),
1873
1847
  key: stringSchema({ minLength: 1 }),
1874
1848
  version: stringSchema({ minLength: 1 }),
1875
- lifecycle: opensteerRequestPlanLifecycleSchema
1849
+ transport: transportKindSchema
1876
1850
  },
1877
1851
  {
1878
1852
  title: "OpensteerInferRequestPlanInput",
@@ -6257,7 +6231,7 @@ var opensteerSemanticOperationNames = [
6257
6231
  "dom.scroll",
6258
6232
  "dom.extract",
6259
6233
  "network.query",
6260
- "network.save",
6234
+ "network.tag",
6261
6235
  "network.clear",
6262
6236
  "network.minimize",
6263
6237
  "network.diff",
@@ -6318,7 +6292,7 @@ var opensteerPackageRunnableSemanticOperationNames = /* @__PURE__ */ new Set([
6318
6292
  "dom.scroll",
6319
6293
  "dom.extract",
6320
6294
  "network.query",
6321
- "network.save",
6295
+ "network.tag",
6322
6296
  "network.clear",
6323
6297
  "network.minimize",
6324
6298
  "network.diff",
@@ -6638,7 +6612,7 @@ var opensteerPageCloseOutputSchema = objectSchema(
6638
6612
  var opensteerPageGotoInputSchema = objectSchema(
6639
6613
  {
6640
6614
  url: stringSchema(),
6641
- networkTag: stringSchema({ minLength: 1 })
6615
+ captureNetwork: stringSchema({ minLength: 1 })
6642
6616
  },
6643
6617
  {
6644
6618
  title: "OpensteerPageGotoInput",
@@ -6789,7 +6763,7 @@ var opensteerDomClickInputSchema = objectSchema(
6789
6763
  {
6790
6764
  target: opensteerTargetInputSchema,
6791
6765
  persistAsDescription: stringSchema(),
6792
- networkTag: stringSchema({ minLength: 1 })
6766
+ captureNetwork: stringSchema({ minLength: 1 })
6793
6767
  },
6794
6768
  {
6795
6769
  title: "OpensteerDomClickInput",
@@ -6800,7 +6774,7 @@ var opensteerDomHoverInputSchema = objectSchema(
6800
6774
  {
6801
6775
  target: opensteerTargetInputSchema,
6802
6776
  persistAsDescription: stringSchema(),
6803
- networkTag: stringSchema({ minLength: 1 })
6777
+ captureNetwork: stringSchema({ minLength: 1 })
6804
6778
  },
6805
6779
  {
6806
6780
  title: "OpensteerDomHoverInput",
@@ -6813,7 +6787,7 @@ var opensteerDomInputInputSchema = objectSchema(
6813
6787
  text: stringSchema(),
6814
6788
  pressEnter: { type: "boolean" },
6815
6789
  persistAsDescription: stringSchema(),
6816
- networkTag: stringSchema({ minLength: 1 })
6790
+ captureNetwork: stringSchema({ minLength: 1 })
6817
6791
  },
6818
6792
  {
6819
6793
  title: "OpensteerDomInputInput",
@@ -6826,7 +6800,7 @@ var opensteerDomScrollInputSchema = objectSchema(
6826
6800
  direction: enumSchema(["up", "down", "left", "right"]),
6827
6801
  amount: integerSchema({ minimum: 1 }),
6828
6802
  persistAsDescription: stringSchema(),
6829
- networkTag: stringSchema({ minLength: 1 })
6803
+ captureNetwork: stringSchema({ minLength: 1 })
6830
6804
  },
6831
6805
  {
6832
6806
  title: "OpensteerDomScrollInput",
@@ -7027,7 +7001,7 @@ var opensteerComputerExecuteInputSchema = objectSchema(
7027
7001
  {
7028
7002
  action: opensteerComputerActionSchema,
7029
7003
  screenshot: opensteerComputerScreenshotOptionsSchema,
7030
- networkTag: stringSchema({ minLength: 1 })
7004
+ captureNetwork: stringSchema({ minLength: 1 })
7031
7005
  },
7032
7006
  {
7033
7007
  title: "OpensteerComputerExecuteInput",
@@ -7231,18 +7205,17 @@ var opensteerSemanticOperationSpecificationsBase = [
7231
7205
  }),
7232
7206
  defineSemanticOperationSpec({
7233
7207
  name: "network.query",
7234
- description: "Query live or saved network records for reverse engineering workflows.",
7208
+ description: "Query persisted network records for reverse engineering workflows.",
7235
7209
  inputSchema: opensteerNetworkQueryInputSchema,
7236
7210
  outputSchema: opensteerNetworkQueryOutputSchema,
7237
- requiredCapabilities: [],
7238
- resolveRequiredCapabilities: (input) => input.source === "saved" ? [] : input.includeBodies === true ? ["inspect.network", "inspect.networkBodies"] : ["inspect.network"]
7211
+ requiredCapabilities: []
7239
7212
  }),
7240
7213
  defineSemanticOperationSpec({
7241
- name: "network.save",
7242
- description: "Persist filtered live network records into the saved network registry under a tag.",
7243
- inputSchema: opensteerNetworkSaveInputSchema,
7244
- outputSchema: opensteerNetworkSaveOutputSchema,
7245
- requiredCapabilities: ["inspect.network"]
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: []
7246
7219
  }),
7247
7220
  defineSemanticOperationSpec({
7248
7221
  name: "network.clear",
@@ -7844,7 +7817,6 @@ exports.networkDiffFieldSchema = networkDiffFieldSchema;
7844
7817
  exports.networkInitiatorSchema = networkInitiatorSchema;
7845
7818
  exports.networkInitiatorTypeSchema = networkInitiatorTypeSchema;
7846
7819
  exports.networkQueryRecordSchema = networkQueryRecordSchema;
7847
- exports.networkQuerySourceSchema = networkQuerySourceSchema;
7848
7820
  exports.networkRecordKindSchema = networkRecordKindSchema;
7849
7821
  exports.networkRecordSchema = networkRecordSchema;
7850
7822
  exports.networkRequestIdSchema = networkRequestIdSchema;
@@ -7915,8 +7887,8 @@ exports.opensteerNetworkMinimizeOutputSchema = opensteerNetworkMinimizeOutputSch
7915
7887
  exports.opensteerNetworkMinimizeSuccessPolicySchema = opensteerNetworkMinimizeSuccessPolicySchema;
7916
7888
  exports.opensteerNetworkQueryInputSchema = opensteerNetworkQueryInputSchema;
7917
7889
  exports.opensteerNetworkQueryOutputSchema = opensteerNetworkQueryOutputSchema;
7918
- exports.opensteerNetworkSaveInputSchema = opensteerNetworkSaveInputSchema;
7919
- exports.opensteerNetworkSaveOutputSchema = opensteerNetworkSaveOutputSchema;
7890
+ exports.opensteerNetworkTagInputSchema = opensteerNetworkTagInputSchema;
7891
+ exports.opensteerNetworkTagOutputSchema = opensteerNetworkTagOutputSchema;
7920
7892
  exports.opensteerObservationClusterRelationshipKindSchema = opensteerObservationClusterRelationshipKindSchema;
7921
7893
  exports.opensteerObservationClusterSchema = opensteerObservationClusterSchema;
7922
7894
  exports.opensteerOperationNames = opensteerOperationNames;
@@ -7952,7 +7924,6 @@ exports.opensteerRequestPlanAuthSchema = opensteerRequestPlanAuthSchema;
7952
7924
  exports.opensteerRequestPlanBodySchema = opensteerRequestPlanBodySchema;
7953
7925
  exports.opensteerRequestPlanEndpointSchema = opensteerRequestPlanEndpointSchema;
7954
7926
  exports.opensteerRequestPlanFreshnessSchema = opensteerRequestPlanFreshnessSchema;
7955
- exports.opensteerRequestPlanLifecycleSchema = opensteerRequestPlanLifecycleSchema;
7956
7927
  exports.opensteerRequestPlanParameterLocationSchema = opensteerRequestPlanParameterLocationSchema;
7957
7928
  exports.opensteerRequestPlanParameterSchema = opensteerRequestPlanParameterSchema;
7958
7929
  exports.opensteerRequestPlanPayloadSchema = opensteerRequestPlanPayloadSchema;