@anvailabs/agentbrowser-mcp 1.8.20 → 1.9.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/dist/bin.js CHANGED
@@ -7473,6 +7473,13 @@ function agentModeAllows(mode, capability) {
7473
7473
 
7474
7474
  // ../protocol/dist/control.js
7475
7475
  var strict = { additionalProperties: false };
7476
+ var OPERATION_ID_PATTERN = "^[a-zA-Z0-9_-]{1,128}$";
7477
+ var CONTROL_OPERATION_ID = new RegExp(OPERATION_ID_PATTERN);
7478
+ var OperationIdSchema = Type.String({
7479
+ minLength: 1,
7480
+ maxLength: 128,
7481
+ pattern: OPERATION_ID_PATTERN
7482
+ });
7476
7483
  var ControlStateSchema = Type.Union([
7477
7484
  Type.Literal("HUMAN_ACTIVE"),
7478
7485
  Type.Literal("RESUME_REVIEW"),
@@ -7481,7 +7488,7 @@ var ControlStateSchema = Type.Union([
7481
7488
  Type.Literal("STOPPED")
7482
7489
  ]);
7483
7490
  var OperationRecordSchema = Type.Object({
7484
- operationId: Type.String({ minLength: 1, maxLength: 128, pattern: "^[a-zA-Z0-9_-]+$" }),
7491
+ operationId: OperationIdSchema,
7485
7492
  epoch: Type.Integer({ minimum: 0 }),
7486
7493
  status: Type.Union([
7487
7494
  Type.Literal("in_flight"),
@@ -7534,7 +7541,7 @@ var ControlGrantSchema = Type.Intersect([
7534
7541
 
7535
7542
  // ../protocol/dist/application.js
7536
7543
  var strict2 = { additionalProperties: false };
7537
- var ID_SCHEMA = Type.String({ minLength: 1, maxLength: 128, pattern: "^[a-zA-Z0-9_-]+$" });
7544
+ var ID_SCHEMA = OperationIdSchema;
7538
7545
  var ApplicationBindingSchema = Type.Object({ adapter: ID_SCHEMA, resource: ID_SCHEMA }, strict2);
7539
7546
  var ApplicationOperationDescriptorSchema = Type.Object({
7540
7547
  name: ID_SCHEMA,
@@ -7779,12 +7786,17 @@ var OutcomeProjectionSchema = Type.Object({
7779
7786
  Type.Literal("agent_tool")
7780
7787
  ])
7781
7788
  }, strict4);
7789
+ var evidenceCorrelationIdSchema = {
7790
+ ...OperationIdSchema,
7791
+ description: "Business receipt operation ID for an opted-in trusted evidence source; distinct from the service operation ID and conveys no authority."
7792
+ };
7782
7793
  var OutcomeRunRequestSchema = Type.Object({
7783
7794
  // A UI outcome must exercise the UI seam; an empty plan cannot attest it.
7784
7795
  actions: Type.Array(PlanStepSchema, { minItems: 1 }),
7785
7796
  verification: Type.Object({
7786
7797
  verifier: Type.Object({ id: identifier(), version: identifier() }, strict4),
7787
- input: Type.Unknown()
7798
+ input: Type.Unknown(),
7799
+ evidenceCorrelationId: Type.Optional(evidenceCorrelationIdSchema)
7788
7800
  }, strict4)
7789
7801
  }, { ...strict4, $id: "urn:agentbrowser:outcome-run-request:v1" });
7790
7802
  var OutcomeRunReportSchema = Type.Object({
package/dist/index.js CHANGED
@@ -7466,6 +7466,13 @@ function agentModeAllows(mode, capability) {
7466
7466
 
7467
7467
  // ../protocol/dist/control.js
7468
7468
  var strict = { additionalProperties: false };
7469
+ var OPERATION_ID_PATTERN = "^[a-zA-Z0-9_-]{1,128}$";
7470
+ var CONTROL_OPERATION_ID = new RegExp(OPERATION_ID_PATTERN);
7471
+ var OperationIdSchema = Type.String({
7472
+ minLength: 1,
7473
+ maxLength: 128,
7474
+ pattern: OPERATION_ID_PATTERN
7475
+ });
7469
7476
  var ControlStateSchema = Type.Union([
7470
7477
  Type.Literal("HUMAN_ACTIVE"),
7471
7478
  Type.Literal("RESUME_REVIEW"),
@@ -7474,7 +7481,7 @@ var ControlStateSchema = Type.Union([
7474
7481
  Type.Literal("STOPPED")
7475
7482
  ]);
7476
7483
  var OperationRecordSchema = Type.Object({
7477
- operationId: Type.String({ minLength: 1, maxLength: 128, pattern: "^[a-zA-Z0-9_-]+$" }),
7484
+ operationId: OperationIdSchema,
7478
7485
  epoch: Type.Integer({ minimum: 0 }),
7479
7486
  status: Type.Union([
7480
7487
  Type.Literal("in_flight"),
@@ -7520,7 +7527,7 @@ var ControlGrantSchema = Type.Intersect([
7520
7527
 
7521
7528
  // ../protocol/dist/application.js
7522
7529
  var strict2 = { additionalProperties: false };
7523
- var ID_SCHEMA = Type.String({ minLength: 1, maxLength: 128, pattern: "^[a-zA-Z0-9_-]+$" });
7530
+ var ID_SCHEMA = OperationIdSchema;
7524
7531
  var ApplicationBindingSchema = Type.Object({ adapter: ID_SCHEMA, resource: ID_SCHEMA }, strict2);
7525
7532
  var ApplicationOperationDescriptorSchema = Type.Object({
7526
7533
  name: ID_SCHEMA,
@@ -7765,12 +7772,17 @@ var OutcomeProjectionSchema = Type.Object({
7765
7772
  Type.Literal("agent_tool")
7766
7773
  ])
7767
7774
  }, strict4);
7775
+ var evidenceCorrelationIdSchema = {
7776
+ ...OperationIdSchema,
7777
+ description: "Business receipt operation ID for an opted-in trusted evidence source; distinct from the service operation ID and conveys no authority."
7778
+ };
7768
7779
  var OutcomeRunRequestSchema = Type.Object({
7769
7780
  // A UI outcome must exercise the UI seam; an empty plan cannot attest it.
7770
7781
  actions: Type.Array(PlanStepSchema, { minItems: 1 }),
7771
7782
  verification: Type.Object({
7772
7783
  verifier: Type.Object({ id: identifier(), version: identifier() }, strict4),
7773
- input: Type.Unknown()
7784
+ input: Type.Unknown(),
7785
+ evidenceCorrelationId: Type.Optional(evidenceCorrelationIdSchema)
7774
7786
  }, strict4)
7775
7787
  }, { ...strict4, $id: "urn:agentbrowser:outcome-run-request:v1" });
7776
7788
  var OutcomeRunReportSchema = Type.Object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvailabs/agentbrowser-mcp",
3
- "version": "1.8.20",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "description": "MCP server exposing AgentBrowser as high-level, safe, composable tools (talks to an AgentBrowser service via AGENTBROWSER_BASE_URL)",
6
6
  "main": "dist/index.js",