loop-task 2.0.14 → 2.0.15
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/tui/App.js +5 -2
- package/package.json +1 -1
package/dist/tui/App.js
CHANGED
|
@@ -17,7 +17,7 @@ import { CommandsBrowserModal } from "./components/CommandsBrowserModal.js";
|
|
|
17
17
|
import { DebugPanel, MAX_ENTRIES } from "./components/DebugPanel.js";
|
|
18
18
|
import { ContextHelpModal } from "./components/ContextHelpModal.js";
|
|
19
19
|
import { ExportModal } from "./components/ExportModal.js";
|
|
20
|
-
import { fetchRunLog, deleteLoop, pauseLoop, resumeLoop, stopLoop, triggerLoop, listTasks, deleteTask, listProjects, exportConfig } from "./daemon.js";
|
|
20
|
+
import { fetchRunLog, deleteLoop, pauseLoop, resumeLoop, stopLoop, playLoop, triggerLoop, listTasks, deleteTask, listProjects, exportConfig } from "./daemon.js";
|
|
21
21
|
import { applyLoopFilters, applyProjectFilters, cycleSortMode, cycleStatusFilter, cycleProjectSortMode, cycleProjectHasLoopsFilter, cycleProjectIsSystemFilter, defaultFilters, defaultProjectFilters, resolveInputOwner } from "./state.js";
|
|
22
22
|
import { t } from "../i18n/index.js";
|
|
23
23
|
import { copyToClipboard } from "../shared/clipboard.js";
|
|
@@ -259,7 +259,10 @@ export function App(props) {
|
|
|
259
259
|
},
|
|
260
260
|
play: () => {
|
|
261
261
|
if (activeTab === "loops" && selected) {
|
|
262
|
-
|
|
262
|
+
const isPaused = selected.status === "paused";
|
|
263
|
+
const toastKey = isPaused ? "board.toastResumed" : "board.toastPlayed";
|
|
264
|
+
const fn = isPaused ? () => resumeLoop(selected.id) : () => playLoop(selected.id);
|
|
265
|
+
void runAction(t(toastKey, { desc: selected.description }), fn)();
|
|
263
266
|
}
|
|
264
267
|
},
|
|
265
268
|
stop: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loop-task",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "Loop engineering toolkit. Run any command on a cadence, in the background, managed from a terminal board. Schedule tests, builds, syncs, or agent prompts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|