@miradorlabs/web-grpc 3.5.0 → 3.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1025,6 +1025,11 @@ export interface AISessionEvent {
1025
1025
  callCategory: string;
1026
1026
  /** commentary | final | "" (not reported), on assistant replies. */
1027
1027
  replyPhase: string;
1028
+ /**
1029
+ * The run this event is about when it is not that run's own work (the harness summarising subagent X's progress
1030
+ * names X here; agent_id stays the run that did the work). Never set on agent · run. "" = about no other run.
1031
+ */
1032
+ subjectAgentId: string;
1028
1033
  }
1029
1034
 
1030
1035
  export interface AIContentPart {
@@ -4246,6 +4251,7 @@ function createBaseAISessionEvent(): AISessionEvent {
4246
4251
  context: "",
4247
4252
  callCategory: "",
4248
4253
  replyPhase: "",
4254
+ subjectAgentId: "",
4249
4255
  };
4250
4256
  }
4251
4257
 
@@ -4335,6 +4341,9 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
4335
4341
  if (message.replyPhase !== "") {
4336
4342
  writer.uint32(226).string(message.replyPhase);
4337
4343
  }
4344
+ if (message.subjectAgentId !== "") {
4345
+ writer.uint32(234).string(message.subjectAgentId);
4346
+ }
4338
4347
  return writer;
4339
4348
  },
4340
4349
 
@@ -4575,6 +4584,14 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
4575
4584
  message.replyPhase = reader.string();
4576
4585
  continue;
4577
4586
  }
4587
+ case 29: {
4588
+ if (tag !== 234) {
4589
+ break;
4590
+ }
4591
+
4592
+ message.subjectAgentId = reader.string();
4593
+ continue;
4594
+ }
4578
4595
  }
4579
4596
  if ((tag & 7) === 4 || tag === 0) {
4580
4597
  break;
@@ -4683,6 +4700,11 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
4683
4700
  : isSet(object.reply_phase)
4684
4701
  ? globalThis.String(object.reply_phase)
4685
4702
  : "",
4703
+ subjectAgentId: isSet(object.subjectAgentId)
4704
+ ? globalThis.String(object.subjectAgentId)
4705
+ : isSet(object.subject_agent_id)
4706
+ ? globalThis.String(object.subject_agent_id)
4707
+ : "",
4686
4708
  };
4687
4709
  },
4688
4710
 
@@ -4772,6 +4794,9 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
4772
4794
  if (message.replyPhase !== "") {
4773
4795
  obj.replyPhase = message.replyPhase;
4774
4796
  }
4797
+ if (message.subjectAgentId !== "") {
4798
+ obj.subjectAgentId = message.subjectAgentId;
4799
+ }
4775
4800
  return obj;
4776
4801
  },
4777
4802
 
@@ -4810,6 +4835,7 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
4810
4835
  message.context = object.context ?? "";
4811
4836
  message.callCategory = object.callCategory ?? "";
4812
4837
  message.replyPhase = object.replyPhase ?? "";
4838
+ message.subjectAgentId = object.subjectAgentId ?? "";
4813
4839
  return message;
4814
4840
  },
4815
4841
  };
@@ -6592,7 +6592,8 @@ effort: jspb.Message.getFieldWithDefault(msg, 24, ""),
6592
6592
  subtype: jspb.Message.getFieldWithDefault(msg, 25, ""),
6593
6593
  context: jspb.Message.getFieldWithDefault(msg, 26, ""),
6594
6594
  callCategory: jspb.Message.getFieldWithDefault(msg, 27, ""),
6595
- replyPhase: jspb.Message.getFieldWithDefault(msg, 28, "")
6595
+ replyPhase: jspb.Message.getFieldWithDefault(msg, 28, ""),
6596
+ subjectAgentId: jspb.Message.getFieldWithDefault(msg, 29, "")
6596
6597
  };
6597
6598
 
6598
6599
  if (includeInstance) {
@@ -6744,6 +6745,10 @@ proto.gateway.web.v1.AISessionEvent.deserializeBinaryFromReader = function(msg,
6744
6745
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
6745
6746
  msg.setReplyPhase(value);
6746
6747
  break;
6748
+ case 29:
6749
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6750
+ msg.setSubjectAgentId(value);
6751
+ break;
6747
6752
  default:
6748
6753
  reader.skipField();
6749
6754
  break;
@@ -6972,6 +6977,13 @@ proto.gateway.web.v1.AISessionEvent.serializeBinaryToWriter = function(message,
6972
6977
  f
6973
6978
  );
6974
6979
  }
6980
+ f = message.getSubjectAgentId();
6981
+ if (f.length > 0) {
6982
+ writer.writeString(
6983
+ 29,
6984
+ f
6985
+ );
6986
+ }
6975
6987
  };
6976
6988
 
6977
6989
 
@@ -7591,6 +7603,24 @@ proto.gateway.web.v1.AISessionEvent.prototype.setReplyPhase = function(value) {
7591
7603
  };
7592
7604
 
7593
7605
 
7606
+ /**
7607
+ * optional string subject_agent_id = 29;
7608
+ * @return {string}
7609
+ */
7610
+ proto.gateway.web.v1.AISessionEvent.prototype.getSubjectAgentId = function() {
7611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
7612
+ };
7613
+
7614
+
7615
+ /**
7616
+ * @param {string} value
7617
+ * @return {!proto.gateway.web.v1.AISessionEvent} returns this
7618
+ */
7619
+ proto.gateway.web.v1.AISessionEvent.prototype.setSubjectAgentId = function(value) {
7620
+ return jspb.Message.setProto3StringField(this, 29, value);
7621
+ };
7622
+
7623
+
7594
7624
 
7595
7625
 
7596
7626