@supernova-studio/client 1.26.0 → 1.28.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.d.mts +154 -61
- package/dist/index.d.ts +154 -61
- package/dist/index.js +61 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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()
|
|
@@ -9156,6 +9152,10 @@ var DTOFeatureArtifact = z312.object({
|
|
|
9156
9152
|
* Id of the project file that holds content of this artifact
|
|
9157
9153
|
*/
|
|
9158
9154
|
fileId: z312.string(),
|
|
9155
|
+
/**
|
|
9156
|
+
* Id of the Iteration that this artifact belongs to
|
|
9157
|
+
*/
|
|
9158
|
+
iterationId: Id.optional(),
|
|
9159
9159
|
/**
|
|
9160
9160
|
* URL of the feature artifact's contents
|
|
9161
9161
|
*/
|
|
@@ -9184,6 +9184,19 @@ var DTOFeatureIteration = z312.object({
|
|
|
9184
9184
|
createdAt: z312.string(),
|
|
9185
9185
|
updatedAt: z312.string().optional()
|
|
9186
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
|
+
});
|
|
9187
9200
|
var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
9188
9201
|
id: true,
|
|
9189
9202
|
body: true,
|
|
@@ -9203,7 +9216,8 @@ var DTOFeatureMessageReactionDeleteInput = z312.object({
|
|
|
9203
9216
|
var DTOFeatureArtifactCreateInput = z312.object({
|
|
9204
9217
|
id: Id,
|
|
9205
9218
|
key: z312.string(),
|
|
9206
|
-
fileId: z312.string()
|
|
9219
|
+
fileId: z312.string(),
|
|
9220
|
+
iterationId: Id.optional()
|
|
9207
9221
|
});
|
|
9208
9222
|
var DTOFeatureArtifactDeleteInput = z312.object({
|
|
9209
9223
|
id: Id
|
|
@@ -9215,6 +9229,11 @@ var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
|
|
|
9215
9229
|
var DTOFeatureIterationPromoteInput = z312.object({
|
|
9216
9230
|
id: Id
|
|
9217
9231
|
});
|
|
9232
|
+
var DTOFeatureIterationTagCreateInput = z312.object({
|
|
9233
|
+
featureId: Id,
|
|
9234
|
+
iterationId: Id,
|
|
9235
|
+
messageId: Id.optional()
|
|
9236
|
+
});
|
|
9218
9237
|
var DTOFeatureIterationArtifactDiff = z312.object({
|
|
9219
9238
|
/**
|
|
9220
9239
|
* Map of artifact key -> artifact content that describes artifacts that will be
|
|
@@ -9260,6 +9279,12 @@ var DTOFeatureIterationResponse = z312.object({
|
|
|
9260
9279
|
var DTOFeatureIterationListResponse = z312.object({
|
|
9261
9280
|
iterations: DTOFeatureIteration.array()
|
|
9262
9281
|
});
|
|
9282
|
+
var DTOFeatureIterationTagResponse = z312.object({
|
|
9283
|
+
tag: DTOFeatureIterationTag
|
|
9284
|
+
});
|
|
9285
|
+
var DTOFeatureIterationTagListResponse = z312.object({
|
|
9286
|
+
tags: DTOFeatureIterationTag.array()
|
|
9287
|
+
});
|
|
9263
9288
|
var DTOFeatureEventMessagesSent = z312.object({
|
|
9264
9289
|
type: z312.literal("MessagesSent"),
|
|
9265
9290
|
data: DTOFeatureMessage.array()
|
|
@@ -17196,6 +17221,7 @@ var FeatureRoomBaseYDoc = class {
|
|
|
17196
17221
|
getState() {
|
|
17197
17222
|
const iterations = this.getIterations();
|
|
17198
17223
|
const artifacts = this.getArtifacts();
|
|
17224
|
+
const iterationTags = this.getIterationTags();
|
|
17199
17225
|
const agentResponseTrackers = this.getAgentResponseTrackers();
|
|
17200
17226
|
const executedTransactionIds = this.getExecutedTransactionIds();
|
|
17201
17227
|
const isLoaded = true;
|
|
@@ -17203,6 +17229,7 @@ var FeatureRoomBaseYDoc = class {
|
|
|
17203
17229
|
isLoaded,
|
|
17204
17230
|
iterations,
|
|
17205
17231
|
artifacts,
|
|
17232
|
+
iterationTags,
|
|
17206
17233
|
agentResponseTrackers,
|
|
17207
17234
|
executedTransactionIds
|
|
17208
17235
|
};
|
|
@@ -17238,6 +17265,21 @@ var FeatureRoomBaseYDoc = class {
|
|
|
17238
17265
|
return this.yDoc.getMap("forgeFeatureArtifacts");
|
|
17239
17266
|
}
|
|
17240
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
|
+
//
|
|
17241
17283
|
// Agent Response Trackers
|
|
17242
17284
|
//
|
|
17243
17285
|
getAgentResponseTrackers() {
|
|
@@ -17302,6 +17344,8 @@ var BackendFeatureRoomYDoc = class {
|
|
|
17302
17344
|
transaction.iterations && yDoc.updateIterations(transaction.iterations);
|
|
17303
17345
|
transaction.artifactIdsToDelete && yDoc.deleteArtifacts(transaction.artifactIdsToDelete);
|
|
17304
17346
|
transaction.artifacts && yDoc.updateArtifacts(transaction.artifacts);
|
|
17347
|
+
transaction.iterationTagIdsToDelete && yDoc.deleteIterationTags(transaction.iterationTagIdsToDelete);
|
|
17348
|
+
transaction.iterationTags && yDoc.updateIterationTags(transaction.iterationTags);
|
|
17305
17349
|
transaction.agentResponseTrackerIdsToDelete && yDoc.deleteAgentResponseTrackers(transaction.agentResponseTrackerIdsToDelete);
|
|
17306
17350
|
transaction.agentResponseTrackers && yDoc.updateAgentResponseTrackers(transaction.agentResponseTrackers);
|
|
17307
17351
|
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
@@ -17342,6 +17386,13 @@ var FrontendFeatureRoomYDoc = class {
|
|
|
17342
17386
|
return doc.getArtifacts();
|
|
17343
17387
|
}
|
|
17344
17388
|
//
|
|
17389
|
+
// Iteration Tags
|
|
17390
|
+
//
|
|
17391
|
+
getIterationTags() {
|
|
17392
|
+
const doc = new FeatureRoomBaseYDoc(this.yDoc);
|
|
17393
|
+
return doc.getIterationTags();
|
|
17394
|
+
}
|
|
17395
|
+
//
|
|
17345
17396
|
// Agent Response Trackers
|
|
17346
17397
|
//
|
|
17347
17398
|
getAgentResponseTrackers() {
|
|
@@ -18445,6 +18496,10 @@ export {
|
|
|
18445
18496
|
DTOFeatureIterationListResponse,
|
|
18446
18497
|
DTOFeatureIterationPromoteInput,
|
|
18447
18498
|
DTOFeatureIterationResponse,
|
|
18499
|
+
DTOFeatureIterationTag,
|
|
18500
|
+
DTOFeatureIterationTagCreateInput,
|
|
18501
|
+
DTOFeatureIterationTagListResponse,
|
|
18502
|
+
DTOFeatureIterationTagResponse,
|
|
18448
18503
|
DTOFeatureIterationUpdateArtifactsInput,
|
|
18449
18504
|
DTOFeatureMessage,
|
|
18450
18505
|
DTOFeatureMessageAgentSender,
|