@supernova-studio/client 1.73.1 → 1.74.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
@@ -9722,12 +9722,11 @@ var DTOFeatureSandbox = z315.object({
9722
9722
  url: z315.string(),
9723
9723
  parentMessageId: Id.optional(),
9724
9724
  currentIterationId: Id,
9725
- // TODO (jovanblazek): Remove optional once we remove sandboxes from feature room ydoc
9726
- featureId: Id.optional(),
9725
+ featureId: Id,
9727
9726
  expiresAt: z315.string().optional(),
9728
9727
  error: DTOSandboxError.optional()
9729
9728
  });
9730
- var DTOCreateFeatureSandbox = DTOFeatureSandbox.extend({ featureId: Id });
9729
+ var DTOCreateFeatureSandbox = DTOFeatureSandbox;
9731
9730
  var DTOUpdateFeatureSandbox = DTOCreateFeatureSandbox.partial().extend({
9732
9731
  id: z315.string(),
9733
9732
  parentMessageId: Id.nullish(),
@@ -10940,6 +10939,7 @@ var DTOForgeProjectFeaturePreview = z334.object({
10940
10939
  name: z334.string(),
10941
10940
  thumbnail: DTOFileReference.optional(),
10942
10941
  isPublished: z334.boolean().optional(),
10942
+ isArchived: z334.boolean().optional(),
10943
10943
  createdAt: z334.string(),
10944
10944
  updatedAt: z334.string()
10945
10945
  });
@@ -18961,69 +18961,16 @@ var FeatureRoomBaseYDoc = class {
18961
18961
  this.yDoc = yDoc;
18962
18962
  }
18963
18963
  getState() {
18964
- const iterations = this.getIterations();
18965
- const artifacts = this.getArtifacts();
18966
- const iterationTags = this.getIterationTags();
18967
18964
  const agentResponseTrackers = this.getAgentResponseTrackers();
18968
18965
  const executedTransactionIds = this.getExecutedTransactionIds();
18969
- const sandboxes = this.getSandboxes();
18970
18966
  const isLoaded = true;
18971
18967
  return {
18972
18968
  isLoaded,
18973
- iterations,
18974
- artifacts,
18975
- iterationTags,
18976
18969
  agentResponseTrackers,
18977
- executedTransactionIds,
18978
- sandboxes
18970
+ executedTransactionIds
18979
18971
  };
18980
18972
  }
18981
18973
  //
18982
- // Feature Iterations
18983
- //
18984
- getIterations() {
18985
- return this.getObjects(this.iterationsYMap, DTOFeatureIteration);
18986
- }
18987
- updateIterations(iterations) {
18988
- this.setObjects(this.iterationsYMap, iterations);
18989
- }
18990
- deleteIterations(ids) {
18991
- this.deleteObjects(this.iterationsYMap, ids);
18992
- }
18993
- get iterationsYMap() {
18994
- return this.yDoc.getMap("forgeFeatureIterations");
18995
- }
18996
- //
18997
- // Feature Artifacts
18998
- //
18999
- getArtifacts() {
19000
- return this.getObjects(this.artifactsYMap, DTOFeatureArtifact);
19001
- }
19002
- updateArtifacts(artifacts) {
19003
- this.setObjects(this.artifactsYMap, artifacts);
19004
- }
19005
- deleteArtifacts(ids) {
19006
- this.deleteObjects(this.artifactsYMap, ids);
19007
- }
19008
- get artifactsYMap() {
19009
- return this.yDoc.getMap("forgeFeatureArtifacts");
19010
- }
19011
- //
19012
- // Iteration Tags
19013
- //
19014
- getIterationTags() {
19015
- return this.getObjects(this.iterationTagsYMap, DTOFeatureIterationTag);
19016
- }
19017
- updateIterationTags(iterationTags) {
19018
- this.setObjects(this.iterationTagsYMap, iterationTags);
19019
- }
19020
- deleteIterationTags(ids) {
19021
- this.deleteObjects(this.iterationTagsYMap, ids);
19022
- }
19023
- get iterationTagsYMap() {
19024
- return this.yDoc.getMap("forgeFeatureIterationTags");
19025
- }
19026
- //
19027
18974
  // Agent Response Trackers
19028
18975
  //
19029
18976
  getAgentResponseTrackers() {
@@ -19060,21 +19007,6 @@ var FeatureRoomBaseYDoc = class {
19060
19007
  return this.yDoc.getArray("executedTransactionIds");
19061
19008
  }
19062
19009
  //
19063
- // Sandboxes
19064
- //
19065
- getSandboxes() {
19066
- return this.getObjects(this.sandboxesYMap, DTOFeatureSandbox);
19067
- }
19068
- updateSandboxes(sandboxes) {
19069
- this.setObjects(this.sandboxesYMap, sandboxes);
19070
- }
19071
- deleteSandboxes(ids) {
19072
- this.deleteObjects(this.sandboxesYMap, ids);
19073
- }
19074
- get sandboxesYMap() {
19075
- return this.yDoc.getMap("sandboxes");
19076
- }
19077
- //
19078
19010
  // Utility methods
19079
19011
  //
19080
19012
  getObjects(map, schema) {
@@ -19099,16 +19031,8 @@ var BackendFeatureRoomYDoc = class {
19099
19031
  updateFeatureRoom(transaction) {
19100
19032
  this.yDoc.transact((trx) => {
19101
19033
  const yDoc = new FeatureRoomBaseYDoc(trx.doc);
19102
- transaction.iterationIdsToDelete && yDoc.deleteIterations(transaction.iterationIdsToDelete);
19103
- transaction.iterations && yDoc.updateIterations(transaction.iterations);
19104
- transaction.artifactIdsToDelete && yDoc.deleteArtifacts(transaction.artifactIdsToDelete);
19105
- transaction.artifacts && yDoc.updateArtifacts(transaction.artifacts);
19106
- transaction.iterationTagIdsToDelete && yDoc.deleteIterationTags(transaction.iterationTagIdsToDelete);
19107
- transaction.iterationTags && yDoc.updateIterationTags(transaction.iterationTags);
19108
19034
  transaction.agentResponseTrackerIdsToDelete && yDoc.deleteAgentResponseTrackers(transaction.agentResponseTrackerIdsToDelete);
19109
19035
  transaction.agentResponseTrackers && yDoc.updateAgentResponseTrackers(transaction.agentResponseTrackers);
19110
- transaction.sandboxIdsToDelete && yDoc.deleteSandboxes(transaction.sandboxIdsToDelete);
19111
- transaction.sandboxes && yDoc.updateSandboxes(transaction.sandboxes);
19112
19036
  transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
19113
19037
  });
19114
19038
  }
@@ -19133,27 +19057,6 @@ var FrontendFeatureRoomYDoc = class {
19133
19057
  return doc.getState();
19134
19058
  }
19135
19059
  //
19136
- // Feature Iterations
19137
- //
19138
- getIterations() {
19139
- const doc = new FeatureRoomBaseYDoc(this.yDoc);
19140
- return doc.getIterations();
19141
- }
19142
- //
19143
- // Feature Artifacts
19144
- //
19145
- getArtifacts() {
19146
- const doc = new FeatureRoomBaseYDoc(this.yDoc);
19147
- return doc.getArtifacts();
19148
- }
19149
- //
19150
- // Iteration Tags
19151
- //
19152
- getIterationTags() {
19153
- const doc = new FeatureRoomBaseYDoc(this.yDoc);
19154
- return doc.getIterationTags();
19155
- }
19156
- //
19157
19060
  // Agent Response Trackers
19158
19061
  //
19159
19062
  getAgentResponseTrackers() {