@zodic/shared 0.0.353 → 0.0.355
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.
|
@@ -120,6 +120,13 @@
|
|
|
120
120
|
"when": 1745725919445,
|
|
121
121
|
"tag": "0016_awesome_squadron_sinister",
|
|
122
122
|
"breakpoints": true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"idx": 17,
|
|
126
|
+
"version": "6",
|
|
127
|
+
"when": 1745948199947,
|
|
128
|
+
"tag": "0017_vengeful_electro",
|
|
129
|
+
"breakpoints": true
|
|
123
130
|
}
|
|
124
131
|
]
|
|
125
132
|
}
|
package/db/schema.ts
CHANGED
|
@@ -399,6 +399,7 @@ export const userArtifacts = sqliteTable(
|
|
|
399
399
|
status: text('status')
|
|
400
400
|
.default('pending') // Possible statuses: 'pending', 'post_ready', 'reel_ready', 'completed', 'revealed'
|
|
401
401
|
.notNull(),
|
|
402
|
+
version: integer('version').notNull().default(0),
|
|
402
403
|
...timestampFields,
|
|
403
404
|
},
|
|
404
405
|
(t) => [
|
package/package.json
CHANGED
package/utils/faceSwapHelpers.ts
CHANGED
|
@@ -183,17 +183,6 @@ export const sendRequest = async (
|
|
|
183
183
|
throw new Error(`PiAPI FaceSwap Error: Task failed - ${errorMsg}`);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
// Ensure the task is in a valid state for creation
|
|
187
|
-
if (
|
|
188
|
-
data.data.status !== Status.Staged &&
|
|
189
|
-
data.data.status !== Status.Pending &&
|
|
190
|
-
data.data.status !== Status.Processing
|
|
191
|
-
) {
|
|
192
|
-
throw new Error(
|
|
193
|
-
`PiAPI FaceSwap Error: Unexpected task status - ${data.data.status}`
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
186
|
return data;
|
|
198
187
|
} catch (err: any) {
|
|
199
188
|
if (
|