@astralform/js 6.0.1 → 6.0.2
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 +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2212,6 +2212,13 @@ function planRestore(args) {
|
|
|
2212
2212
|
content: msgs[i]?.content,
|
|
2213
2213
|
messageId: msgs[i]?.id
|
|
2214
2214
|
}));
|
|
2215
|
+
if (jobs.length === 0) {
|
|
2216
|
+
return userMessages.map((m) => ({
|
|
2217
|
+
kind: "steer",
|
|
2218
|
+
content: m.content,
|
|
2219
|
+
messageId: m.id
|
|
2220
|
+
}));
|
|
2221
|
+
}
|
|
2215
2222
|
const firstLinked = jobs.findIndex((j) => linkOf(j) !== void 0);
|
|
2216
2223
|
if (firstLinked === -1) {
|
|
2217
2224
|
return positional(jobs, userMessages);
|