cueclaw 0.1.0 → 0.1.1
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.
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-SEYPA5M2.js";
|
|
13
13
|
import {
|
|
14
14
|
getWorkflow,
|
|
15
|
+
insertWorkflow,
|
|
15
16
|
listWorkflows,
|
|
16
17
|
updateWorkflowPhase
|
|
17
18
|
} from "./chunk-G43R5ASK.js";
|
|
@@ -201,6 +202,7 @@ ${steps}`);
|
|
|
201
202
|
channel.setTyping?.(chatJid, true);
|
|
202
203
|
try {
|
|
203
204
|
const workflow = await generatePlan(text, this.config);
|
|
205
|
+
insertWorkflow(this.db, workflow);
|
|
204
206
|
channel.setTyping?.(chatJid, false);
|
|
205
207
|
this.pendingConfirmations.set(chatJid, {
|
|
206
208
|
workflowId: workflow.id,
|
|
@@ -255,6 +257,7 @@ ${steps}`);
|
|
|
255
257
|
channel.setTyping?.(chatJid, true);
|
|
256
258
|
try {
|
|
257
259
|
const modified = await modifyPlan(pending.workflow, text, this.config);
|
|
260
|
+
insertWorkflow(this.db, modified);
|
|
258
261
|
channel.setTyping?.(chatJid, false);
|
|
259
262
|
this.pendingConfirmations.set(chatJid, {
|
|
260
263
|
workflowId: modified.id,
|
package/dist/cli.js
CHANGED
|
@@ -335,7 +335,7 @@ program.command("delete").argument("<workflow-id>", "Workflow ID").description("
|
|
|
335
335
|
var daemonCmd = program.command("daemon").description("Manage background daemon");
|
|
336
336
|
daemonCmd.command("start").option("--detach", "Run in background").description("Start the daemon").action(async () => {
|
|
337
337
|
try {
|
|
338
|
-
const { startDaemon } = await import("./daemon-
|
|
338
|
+
const { startDaemon } = await import("./daemon-HPD3D7TJ.js");
|
|
339
339
|
await startDaemon();
|
|
340
340
|
} catch (err) {
|
|
341
341
|
logger.error({ err }, "Daemon failed");
|
|
@@ -399,7 +399,7 @@ botCmd.command("start").description("Start all configured bot channels").action(
|
|
|
399
399
|
try {
|
|
400
400
|
const config = loadConfig();
|
|
401
401
|
const db = initDb();
|
|
402
|
-
const { MessageRouter } = await import("./router-
|
|
402
|
+
const { MessageRouter } = await import("./router-F5PJC74R.js");
|
|
403
403
|
const router = new MessageRouter(db, config, process.cwd());
|
|
404
404
|
if (config.whatsapp?.enabled) {
|
|
405
405
|
const { WhatsAppChannel } = await import("./whatsapp-HFMOFSFI.js");
|
|
@@ -452,7 +452,7 @@ program.command("tui").description("Start interactive TUI").option("--skip-onboa
|
|
|
452
452
|
enableTuiLogging();
|
|
453
453
|
const React = await import("react");
|
|
454
454
|
const { render } = await import("ink");
|
|
455
|
-
const { App } = await import("./app-
|
|
455
|
+
const { App } = await import("./app-ZJG6ANUK.js");
|
|
456
456
|
render(React.createElement(App, { cwd: process.cwd(), skipOnboarding: opts.skipOnboarding }));
|
|
457
457
|
} catch (err) {
|
|
458
458
|
logger.error({ err }, "Failed to start TUI");
|
|
@@ -466,7 +466,7 @@ program.option("--skip-onboarding", "Skip first-run onboarding wizard").action(a
|
|
|
466
466
|
enableTuiLogging();
|
|
467
467
|
const React = await import("react");
|
|
468
468
|
const { render } = await import("ink");
|
|
469
|
-
const { App } = await import("./app-
|
|
469
|
+
const { App } = await import("./app-ZJG6ANUK.js");
|
|
470
470
|
render(React.createElement(App, { cwd: process.cwd(), skipOnboarding }));
|
|
471
471
|
} catch (err) {
|
|
472
472
|
logger.error({ err }, "Failed to start TUI");
|