@supernova-studio/client 1.27.0 → 1.29.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/index.mjs CHANGED
@@ -9134,10 +9134,6 @@ var DTOFeatureMessage = z312.object({
9134
9134
  * Link agent response object describing current state of
9135
9135
  */
9136
9136
  agentResponseTrackerId: Id.optional(),
9137
- /**
9138
- * If the message started a thread, this indicates the current iteration within that thread
9139
- */
9140
- currentIterationId: Id.optional(),
9141
9137
  attachments: DTOFeatureMessageAttachments.optional(),
9142
9138
  createdAt: z312.string(),
9143
9139
  updatedAt: z312.string().optional()
@@ -9188,6 +9184,19 @@ var DTOFeatureIteration = z312.object({
9188
9184
  createdAt: z312.string(),
9189
9185
  updatedAt: z312.string().optional()
9190
9186
  });
9187
+ var DTOFeatureIterationTag = z312.object({
9188
+ id: Id,
9189
+ featureId: Id,
9190
+ /**
9191
+ * If defined, this latest tag is specific to a message thread.
9192
+ * If null, this is the latest tag for the entire feature.
9193
+ */
9194
+ messageId: Id.optional(),
9195
+ /**
9196
+ * The iteration that is marked as latest for this context
9197
+ */
9198
+ iterationId: Id
9199
+ });
9191
9200
  var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9192
9201
  id: true,
9193
9202
  body: true,
@@ -9220,6 +9229,11 @@ var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
9220
9229
  var DTOFeatureIterationPromoteInput = z312.object({
9221
9230
  id: Id
9222
9231
  });
9232
+ var DTOFeatureIterationTagCreateInput = z312.object({
9233
+ featureId: Id,
9234
+ iterationId: Id,
9235
+ messageId: Id.optional()
9236
+ });
9223
9237
  var DTOFeatureIterationArtifactDiff = z312.object({
9224
9238
  /**
9225
9239
  * Map of artifact key -> artifact content that describes artifacts that will be
@@ -9265,6 +9279,12 @@ var DTOFeatureIterationResponse = z312.object({
9265
9279
  var DTOFeatureIterationListResponse = z312.object({
9266
9280
  iterations: DTOFeatureIteration.array()
9267
9281
  });
9282
+ var DTOFeatureIterationTagResponse = z312.object({
9283
+ tag: DTOFeatureIterationTag
9284
+ });
9285
+ var DTOFeatureIterationTagListResponse = z312.object({
9286
+ tags: DTOFeatureIterationTag.array()
9287
+ });
9268
9288
  var DTOFeatureEventMessagesSent = z312.object({
9269
9289
  type: z312.literal("MessagesSent"),
9270
9290
  data: DTOFeatureMessage.array()
@@ -17201,6 +17221,7 @@ var FeatureRoomBaseYDoc = class {
17201
17221
  getState() {
17202
17222
  const iterations = this.getIterations();
17203
17223
  const artifacts = this.getArtifacts();
17224
+ const iterationTags = this.getIterationTags();
17204
17225
  const agentResponseTrackers = this.getAgentResponseTrackers();
17205
17226
  const executedTransactionIds = this.getExecutedTransactionIds();
17206
17227
  const isLoaded = true;
@@ -17208,6 +17229,7 @@ var FeatureRoomBaseYDoc = class {
17208
17229
  isLoaded,
17209
17230
  iterations,
17210
17231
  artifacts,
17232
+ iterationTags,
17211
17233
  agentResponseTrackers,
17212
17234
  executedTransactionIds
17213
17235
  };
@@ -17243,6 +17265,21 @@ var FeatureRoomBaseYDoc = class {
17243
17265
  return this.yDoc.getMap("forgeFeatureArtifacts");
17244
17266
  }
17245
17267
  //
17268
+ // Iteration Tags
17269
+ //
17270
+ getIterationTags() {
17271
+ return this.getObjects(this.iterationTagsYMap, DTOFeatureIterationTag);
17272
+ }
17273
+ updateIterationTags(iterationTags) {
17274
+ this.setObjects(this.iterationTagsYMap, iterationTags);
17275
+ }
17276
+ deleteIterationTags(ids) {
17277
+ this.deleteObjects(this.iterationTagsYMap, ids);
17278
+ }
17279
+ get iterationTagsYMap() {
17280
+ return this.yDoc.getMap("forgeFeatureIterationTags");
17281
+ }
17282
+ //
17246
17283
  // Agent Response Trackers
17247
17284
  //
17248
17285
  getAgentResponseTrackers() {
@@ -17307,6 +17344,8 @@ var BackendFeatureRoomYDoc = class {
17307
17344
  transaction.iterations && yDoc.updateIterations(transaction.iterations);
17308
17345
  transaction.artifactIdsToDelete && yDoc.deleteArtifacts(transaction.artifactIdsToDelete);
17309
17346
  transaction.artifacts && yDoc.updateArtifacts(transaction.artifacts);
17347
+ transaction.iterationTagIdsToDelete && yDoc.deleteIterationTags(transaction.iterationTagIdsToDelete);
17348
+ transaction.iterationTags && yDoc.updateIterationTags(transaction.iterationTags);
17310
17349
  transaction.agentResponseTrackerIdsToDelete && yDoc.deleteAgentResponseTrackers(transaction.agentResponseTrackerIdsToDelete);
17311
17350
  transaction.agentResponseTrackers && yDoc.updateAgentResponseTrackers(transaction.agentResponseTrackers);
17312
17351
  transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
@@ -17347,12 +17386,27 @@ var FrontendFeatureRoomYDoc = class {
17347
17386
  return doc.getArtifacts();
17348
17387
  }
17349
17388
  //
17389
+ // Iteration Tags
17390
+ //
17391
+ getIterationTags() {
17392
+ const doc = new FeatureRoomBaseYDoc(this.yDoc);
17393
+ return doc.getIterationTags();
17394
+ }
17395
+ //
17350
17396
  // Agent Response Trackers
17351
17397
  //
17352
17398
  getAgentResponseTrackers() {
17353
17399
  const doc = new FeatureRoomBaseYDoc(this.yDoc);
17354
17400
  return doc.getAgentResponseTrackers();
17355
17401
  }
17402
+ updateAgentResponseTracker(tracker) {
17403
+ const doc = new FeatureRoomBaseYDoc(this.yDoc);
17404
+ doc.updateAgentResponseTrackers([tracker]);
17405
+ }
17406
+ deleteAgentResponseTrackers(id) {
17407
+ const doc = new FeatureRoomBaseYDoc(this.yDoc);
17408
+ doc.deleteAgentResponseTrackers([id]);
17409
+ }
17356
17410
  //
17357
17411
  // Utility Methods
17358
17412
  //
@@ -18450,6 +18504,10 @@ export {
18450
18504
  DTOFeatureIterationListResponse,
18451
18505
  DTOFeatureIterationPromoteInput,
18452
18506
  DTOFeatureIterationResponse,
18507
+ DTOFeatureIterationTag,
18508
+ DTOFeatureIterationTagCreateInput,
18509
+ DTOFeatureIterationTagListResponse,
18510
+ DTOFeatureIterationTagResponse,
18453
18511
  DTOFeatureIterationUpdateArtifactsInput,
18454
18512
  DTOFeatureMessage,
18455
18513
  DTOFeatureMessageAgentSender,