@opensteer/protocol 0.7.6 → 0.8.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/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # @opensteer/protocol
2
+
3
+ Public wire schemas and versioned envelopes for Opensteer APIs.
4
+
5
+ Install this package when you need to exchange typed request, response, event,
6
+ or artifact payloads with Opensteer services and runtimes.
7
+
8
+ ```bash
9
+ pnpm add @opensteer/protocol
10
+ ```
11
+
12
+ Most application code should use [`opensteer`](../opensteer/README.md). Reach for
13
+ `@opensteer/protocol` directly when you need stable transport-level types without
14
+ the higher-level SDK.
package/dist/index.cjs CHANGED
@@ -1743,6 +1743,16 @@ var opensteerNetworkQueryOutputSchema = objectSchema(
1743
1743
  required: ["records"]
1744
1744
  }
1745
1745
  );
1746
+ var opensteerNetworkDetailInputSchema = objectSchema(
1747
+ {
1748
+ recordId: stringSchema({ minLength: 1 }),
1749
+ probe: { type: "boolean" }
1750
+ },
1751
+ {
1752
+ title: "OpensteerNetworkDetailInput",
1753
+ required: ["recordId"]
1754
+ }
1755
+ );
1746
1756
  var opensteerParsedCookieSchema = objectSchema(
1747
1757
  {
1748
1758
  name: stringSchema({ minLength: 1 }),
@@ -1779,6 +1789,20 @@ var opensteerNetworkRedirectHopSchema = objectSchema(
1779
1789
  required: ["method", "url"]
1780
1790
  }
1781
1791
  );
1792
+ var opensteerReplayAttemptSchema = objectSchema(
1793
+ {
1794
+ transport: transportKindSchema,
1795
+ status: integerSchema({ minimum: 100, maximum: 599 }),
1796
+ ok: { type: "boolean" },
1797
+ durationMs: integerSchema({ minimum: 0 }),
1798
+ note: stringSchema(),
1799
+ error: stringSchema()
1800
+ },
1801
+ {
1802
+ title: "OpensteerReplayAttempt",
1803
+ required: ["transport", "ok", "durationMs"]
1804
+ }
1805
+ );
1782
1806
  var opensteerNetworkDetailOutputSchema = objectSchema(
1783
1807
  {
1784
1808
  recordId: stringSchema({ minLength: 1 }),
@@ -1802,27 +1826,23 @@ var opensteerNetworkDetailOutputSchema = objectSchema(
1802
1826
  }
1803
1827
  ),
1804
1828
  redirectChain: arraySchema(opensteerNetworkRedirectHopSchema),
1805
- notes: arraySchema(stringSchema())
1829
+ notes: arraySchema(stringSchema()),
1830
+ transportProbe: objectSchema(
1831
+ {
1832
+ recommended: transportKindSchema,
1833
+ attempts: arraySchema(opensteerReplayAttemptSchema)
1834
+ },
1835
+ {
1836
+ title: "OpensteerTransportProbeResult",
1837
+ required: ["attempts"]
1838
+ }
1839
+ )
1806
1840
  },
1807
1841
  {
1808
1842
  title: "OpensteerNetworkDetailOutput",
1809
1843
  required: ["recordId", "summary", "requestHeaders", "responseHeaders"]
1810
1844
  }
1811
1845
  );
1812
- var opensteerReplayAttemptSchema = objectSchema(
1813
- {
1814
- transport: transportKindSchema,
1815
- status: integerSchema({ minimum: 100, maximum: 599 }),
1816
- ok: { type: "boolean" },
1817
- durationMs: integerSchema({ minimum: 0 }),
1818
- note: stringSchema(),
1819
- error: stringSchema()
1820
- },
1821
- {
1822
- title: "OpensteerReplayAttempt",
1823
- required: ["transport", "ok", "durationMs"]
1824
- }
1825
- );
1826
1846
  var opensteerNetworkReplayInputSchema = objectSchema(
1827
1847
  {
1828
1848
  recordId: stringSchema({ minLength: 1 }),
@@ -1839,7 +1859,7 @@ var opensteerNetworkReplayInputSchema = objectSchema(
1839
1859
  );
1840
1860
  exports.opensteerNetworkReplayOutputSchema = void 0;
1841
1861
  var opensteerSessionFetchTransportSchema = enumSchema(
1842
- ["auto", "direct", "matched-tls", "page"],
1862
+ ["auto", "direct", "matched-tls", "context", "page"],
1843
1863
  {
1844
1864
  title: "OpensteerSessionFetchTransport"
1845
1865
  }
@@ -2769,12 +2789,7 @@ var cloudSessionStatuses = [
2769
2789
  "closed",
2770
2790
  "failed"
2771
2791
  ];
2772
- var cloudSessionRecordingStatuses = [
2773
- "idle",
2774
- "recording",
2775
- "completed",
2776
- "failed"
2777
- ];
2792
+ var cloudSessionRecordingStatuses = ["idle", "recording", "completed", "failed"];
2778
2793
  var cloudSessionSourceTypes = [
2779
2794
  "agent-thread",
2780
2795
  "agent-run",
@@ -6515,7 +6530,6 @@ var opensteerSemanticOperationNames = [
6515
6530
  "dom.extract",
6516
6531
  "network.query",
6517
6532
  "network.detail",
6518
- "network.replay",
6519
6533
  "interaction.capture",
6520
6534
  "interaction.get",
6521
6535
  "interaction.diff",
@@ -6550,7 +6564,6 @@ var opensteerExposedSemanticOperationNames = [
6550
6564
  "dom.extract",
6551
6565
  "network.query",
6552
6566
  "network.detail",
6553
- "network.replay",
6554
6567
  "interaction.capture",
6555
6568
  "interaction.get",
6556
6569
  "interaction.diff",
@@ -6587,7 +6600,6 @@ var opensteerPackageRunnableSemanticOperationNames = /* @__PURE__ */ new Set([
6587
6600
  "dom.extract",
6588
6601
  "network.query",
6589
6602
  "network.detail",
6590
- "network.replay",
6591
6603
  "interaction.capture",
6592
6604
  "interaction.get",
6593
6605
  "interaction.diff",
@@ -6708,11 +6720,11 @@ var targetByElementSchema2 = objectSchema(
6708
6720
  var targetByPersistSchema2 = objectSchema(
6709
6721
  {
6710
6722
  kind: enumSchema(["persist"]),
6711
- name: stringSchema()
6723
+ persist: stringSchema()
6712
6724
  },
6713
6725
  {
6714
6726
  title: "OpensteerTargetByPersist",
6715
- required: ["kind", "name"]
6727
+ required: ["kind", "persist"]
6716
6728
  }
6717
6729
  );
6718
6730
  var targetBySelectorSchema2 = objectSchema(
@@ -6759,8 +6771,7 @@ var opensteerResolvedTargetSchema = objectSchema(
6759
6771
  var opensteerActionResultSchema = objectSchema(
6760
6772
  {
6761
6773
  target: opensteerResolvedTargetSchema,
6762
- point: pointSchema,
6763
- persisted: stringSchema()
6774
+ point: pointSchema
6764
6775
  },
6765
6776
  {
6766
6777
  title: "OpensteerActionResult",
@@ -7017,18 +7028,12 @@ var opensteerPageSnapshotOutputSchema = objectSchema(
7017
7028
  required: ["url", "title", "mode", "html", "counters"]
7018
7029
  }
7019
7030
  );
7020
- var opensteerNetworkDetailInputSchema = objectSchema(
7021
- {
7022
- recordId: stringSchema({ minLength: 1 })
7023
- },
7031
+ var opensteerComputerMouseButtonSchema = enumSchema(
7032
+ ["left", "middle", "right"],
7024
7033
  {
7025
- title: "OpensteerNetworkDetailInput",
7026
- required: ["recordId"]
7034
+ title: "OpensteerComputerMouseButton"
7027
7035
  }
7028
7036
  );
7029
- var opensteerComputerMouseButtonSchema = enumSchema(["left", "middle", "right"], {
7030
- title: "OpensteerComputerMouseButton"
7031
- });
7032
7037
  var opensteerComputerKeyModifierSchema = enumSchema(
7033
7038
  ["Shift", "Control", "Alt", "Meta"],
7034
7039
  {
@@ -7105,10 +7110,7 @@ var opensteerDomExtractInputSchema = defineSchema({
7105
7110
  title: "OpensteerDomExtractInput"
7106
7111
  }
7107
7112
  ),
7108
- anyOf: [
7109
- defineSchema({ required: ["persist"] }),
7110
- defineSchema({ required: ["schema"] })
7111
- ]
7113
+ anyOf: [defineSchema({ required: ["persist"] }), defineSchema({ required: ["schema"] })]
7112
7114
  });
7113
7115
  var jsonValueSchema3 = recordSchema({}, { title: "JsonValueRecord" });
7114
7116
  var opensteerDomExtractOutputSchema = objectSchema(
@@ -7491,13 +7493,6 @@ var opensteerSemanticOperationSpecificationsBase = [
7491
7493
  outputSchema: opensteerNetworkDetailOutputSchema,
7492
7494
  requiredCapabilities: ["inspect.network", "inspect.networkBodies"]
7493
7495
  }),
7494
- defineSemanticOperationSpec({
7495
- name: "network.replay",
7496
- description: "Replay a captured request through the transport ladder and report the transport that worked.",
7497
- inputSchema: opensteerNetworkReplayInputSchema,
7498
- outputSchema: exports.opensteerNetworkReplayOutputSchema,
7499
- requiredCapabilities: ["inspect.network", "inspect.cookies", "pages.manage"]
7500
- }),
7501
7496
  defineSemanticOperationSpec({
7502
7497
  name: "interaction.capture",
7503
7498
  description: "Capture a guarded interaction window, including event properties, state changes, and downstream network.",
@@ -7605,6 +7600,7 @@ var opensteerSemanticOperationSpecificationsBase = [
7605
7600
  case "direct":
7606
7601
  return [];
7607
7602
  case "matched-tls":
7603
+ case "context":
7608
7604
  return ["inspect.cookies"];
7609
7605
  case "page":
7610
7606
  return ["pages.manage"];
@@ -7682,9 +7678,7 @@ var readOnlyOperations = /* @__PURE__ */ new Set([
7682
7678
  "session.storage",
7683
7679
  "session.state"
7684
7680
  ]);
7685
- var destructiveOperations = /* @__PURE__ */ new Set([
7686
- "session.close"
7687
- ]);
7681
+ var destructiveOperations = /* @__PURE__ */ new Set(["session.close"]);
7688
7682
  function toolNameFromOperation(operation) {
7689
7683
  return `opensteer_${operation.replaceAll(".", "_").replaceAll("-", "_")}`;
7690
7684
  }
@@ -8011,6 +8005,7 @@ exports.opensteerListRequestPlansOutputSchema = opensteerListRequestPlansOutputS
8011
8005
  exports.opensteerMcpTools = opensteerMcpTools;
8012
8006
  exports.opensteerNetworkClearInputSchema = opensteerNetworkClearInputSchema;
8013
8007
  exports.opensteerNetworkClearOutputSchema = opensteerNetworkClearOutputSchema;
8008
+ exports.opensteerNetworkDetailInputSchema = opensteerNetworkDetailInputSchema;
8014
8009
  exports.opensteerNetworkDetailOutputSchema = opensteerNetworkDetailOutputSchema;
8015
8010
  exports.opensteerNetworkQueryInputSchema = opensteerNetworkQueryInputSchema;
8016
8011
  exports.opensteerNetworkQueryOutputSchema = opensteerNetworkQueryOutputSchema;