hanoman 0.2.2 → 0.2.3
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/build-info.json +3 -3
- package/dist/server.js +3 -2
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/server.js
CHANGED
|
@@ -34337,11 +34337,12 @@ async function recordHeadSha(specId, worktree, read2 = readHead) {
|
|
|
34337
34337
|
}
|
|
34338
34338
|
|
|
34339
34339
|
// src/services/live-specs.ts
|
|
34340
|
+
var specNum = (id) => Number.parseInt(id.match(/\d+/)?.[0] ?? "0", 10);
|
|
34340
34341
|
async function liveSpecs(filter = {}) {
|
|
34341
|
-
const specs = await prisma.spec.findMany({
|
|
34342
|
+
const specs = (await prisma.spec.findMany({
|
|
34342
34343
|
where: { projectId: filter.project, source: filter.source },
|
|
34343
34344
|
orderBy: { id: "desc" }
|
|
34344
|
-
});
|
|
34345
|
+
})).sort((a, b) => specNum(b.id) - specNum(a.id));
|
|
34345
34346
|
const live = sessionPhasesBySpec();
|
|
34346
34347
|
if (live.size === 0) return decorateBlocked(specs);
|
|
34347
34348
|
const advanced = [];
|