@fungi.computer/shiitake-extensions 0.12.2 → 0.12.4
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/loop/host.js +10 -0
- package/package.json +4 -4
package/dist/loop/host.js
CHANGED
|
@@ -192,6 +192,16 @@ function settle(ctx, run) {
|
|
|
192
192
|
yield* arm(ctx, retry, dueAt);
|
|
193
193
|
return yield* ctx.observe(loop.sessionId);
|
|
194
194
|
}
|
|
195
|
+
// Cancelling a paused loop's tick (Stop all pauses, then stops) keeps the
|
|
196
|
+
// loop paused; resume runs the cancelled tick again.
|
|
197
|
+
if (run.outcome === "cancelled" && loop.state === "paused") {
|
|
198
|
+
yield* commitLoop(ctx, {
|
|
199
|
+
...loop,
|
|
200
|
+
requested: null,
|
|
201
|
+
nextDueAt: loop.nextDueAt ?? (yield* Clock.currentTimeMillis),
|
|
202
|
+
});
|
|
203
|
+
return yield* ctx.observe(loop.sessionId);
|
|
204
|
+
}
|
|
195
205
|
if (run.outcome !== "completed" || run.terminal !== "completed") {
|
|
196
206
|
yield* ctx.timers.cancel(loop.sessionId);
|
|
197
207
|
yield* commitLoop(ctx, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/shiitake-extensions",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Botanical's product Shiitake extensions: goal, loop and Almanac on the generic extension surface",
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
"dependencies": {
|
|
125
125
|
"@fungi.computer/almanac": "0.2.1",
|
|
126
126
|
"@fungi.computer/cairn": "0.1.0",
|
|
127
|
-
"@fungi.computer/knapsack": "0.4.
|
|
128
|
-
"@fungi.computer/mycelium": "0.4.
|
|
129
|
-
"@fungi.computer/shiitake": "0.21.
|
|
127
|
+
"@fungi.computer/knapsack": "0.4.23",
|
|
128
|
+
"@fungi.computer/mycelium": "0.4.8",
|
|
129
|
+
"@fungi.computer/shiitake": "0.21.15",
|
|
130
130
|
"@fungi.computer/watchdog": "0.1.4",
|
|
131
131
|
"@fungi.computer/whistle": "0.3.0",
|
|
132
132
|
"effect": "4.0.2",
|