@maintainer-pro/ai-cli 0.1.13 → 0.1.14
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.cjs +14 -0
- package/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1821,6 +1821,20 @@ function createLocalDirectoryStore(baseDir) {
|
|
|
1821
1821
|
);
|
|
1822
1822
|
const next = waiting[0] ?? null;
|
|
1823
1823
|
if (!next) {
|
|
1824
|
+
const orphan = existing.messages.some((m) => m.provider === "working");
|
|
1825
|
+
if (orphan) {
|
|
1826
|
+
existing.messages = existing.messages.filter(
|
|
1827
|
+
(m) => m.provider !== "working"
|
|
1828
|
+
);
|
|
1829
|
+
existing.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
1830
|
+
await writeConversation(filePath, existing);
|
|
1831
|
+
return {
|
|
1832
|
+
action: "cleared_orphan_wip",
|
|
1833
|
+
workingId: null,
|
|
1834
|
+
promotedId: null,
|
|
1835
|
+
nextQueued: null
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1824
1838
|
return {
|
|
1825
1839
|
action: "noop",
|
|
1826
1840
|
workingId: null,
|
package/dist/index.js
CHANGED
|
@@ -1701,6 +1701,20 @@ function createLocalDirectoryStore(baseDir) {
|
|
|
1701
1701
|
);
|
|
1702
1702
|
const next = waiting[0] ?? null;
|
|
1703
1703
|
if (!next) {
|
|
1704
|
+
const orphan = existing.messages.some((m) => m.provider === "working");
|
|
1705
|
+
if (orphan) {
|
|
1706
|
+
existing.messages = existing.messages.filter(
|
|
1707
|
+
(m) => m.provider !== "working"
|
|
1708
|
+
);
|
|
1709
|
+
existing.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
1710
|
+
await writeConversation(filePath, existing);
|
|
1711
|
+
return {
|
|
1712
|
+
action: "cleared_orphan_wip",
|
|
1713
|
+
workingId: null,
|
|
1714
|
+
promotedId: null,
|
|
1715
|
+
nextQueued: null
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1704
1718
|
return {
|
|
1705
1719
|
action: "noop",
|
|
1706
1720
|
workingId: null,
|