cueclaw 0.1.4 → 0.2.0
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/{app-6SXWEUZZ.js → app-XQRFUTEX.js} +5 -5
- package/dist/{chunk-54BGF7G5.js → chunk-2PHW4AV3.js} +3 -3
- package/dist/{chunk-HKZ6IN7X.js → chunk-3LMKPLR6.js} +1 -1
- package/dist/{chunk-3HV3MHME.js → chunk-4KXY2J6M.js} +2 -2
- package/dist/{chunk-MEAAX2SW.js → chunk-7X5HHQEQ.js} +1 -1
- package/dist/{chunk-5TV4LNC3.js → chunk-J53KYCXL.js} +5 -5
- package/dist/cli.js +19 -19
- package/dist/{config-FYL6T5JP.js → config-MIMVWGYE.js} +1 -1
- package/dist/{daemon-Y5HIGH44.js → daemon-IAWVNSJS.js} +4 -4
- package/dist/{executor-44MSZ76T.js → executor-VIWMPELU.js} +3 -3
- package/dist/{service-Q7USNFFB.js → service-SYWHY6SI.js} +2 -2
- package/dist/{setup-JK664Y2M.js → setup-S4LRDLRD.js} +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
readPidFile,
|
|
7
7
|
removePidFile,
|
|
8
8
|
spawnDaemonProcess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2PHW4AV3.js";
|
|
10
10
|
import {
|
|
11
11
|
getServiceStatus
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7X5HHQEQ.js";
|
|
13
13
|
import {
|
|
14
14
|
checkEnvironment,
|
|
15
15
|
validateAuth
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-DVQFSFIZ.js";
|
|
29
29
|
import {
|
|
30
30
|
executeWorkflow
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4KXY2J6M.js";
|
|
32
32
|
import {
|
|
33
33
|
deleteWorkflow,
|
|
34
34
|
getStepRunsByRunId,
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
listWorkflows,
|
|
39
39
|
updateWorkflowPhase,
|
|
40
40
|
upsertWorkflow
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3LMKPLR6.js";
|
|
42
42
|
import {
|
|
43
43
|
cueclawHome,
|
|
44
44
|
loadConfig,
|
|
45
45
|
loadExistingConfig,
|
|
46
46
|
validateConfig,
|
|
47
47
|
writeConfig
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-J53KYCXL.js";
|
|
49
49
|
import "./chunk-BVQG3WYO.js";
|
|
50
50
|
import {
|
|
51
51
|
isDev,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
cleanupStaleSessions,
|
|
12
12
|
executeWorkflow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4KXY2J6M.js";
|
|
14
14
|
import {
|
|
15
15
|
getWorkflow,
|
|
16
16
|
initDb,
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
listWorkflows,
|
|
19
19
|
updateWorkflowPhase,
|
|
20
20
|
upsertWorkflow
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3LMKPLR6.js";
|
|
22
22
|
import {
|
|
23
23
|
cueclawHome,
|
|
24
24
|
loadConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-J53KYCXL.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
28
|
} from "./chunk-KBLMQZ3P.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
updateStepRunStatus,
|
|
5
5
|
updateWorkflowPhase,
|
|
6
6
|
updateWorkflowRunStatus
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3LMKPLR6.js";
|
|
8
8
|
import {
|
|
9
9
|
cueclawHome,
|
|
10
10
|
getDefaultImage,
|
|
11
11
|
loadConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J53KYCXL.js";
|
|
13
13
|
import {
|
|
14
14
|
ConfigError,
|
|
15
15
|
ExecutorError
|
|
@@ -18,13 +18,13 @@ var ConfigSchema = z.object({
|
|
|
18
18
|
claude: z.object({
|
|
19
19
|
api_key: z.string(),
|
|
20
20
|
base_url: z.url().default("https://api.anthropic.com"),
|
|
21
|
-
planner: z.object({ model: z.string().default("claude-
|
|
21
|
+
planner: z.object({ model: z.string().default("claude-opus-4-6") }).default({ model: "claude-opus-4-6" }),
|
|
22
22
|
executor: z.object({
|
|
23
|
-
model: z.string().default("claude-
|
|
23
|
+
model: z.string().default("claude-opus-4-6"),
|
|
24
24
|
api_key: z.string().optional(),
|
|
25
25
|
base_url: z.url().optional(),
|
|
26
26
|
skip_permissions: z.boolean().default(false)
|
|
27
|
-
}).default({ model: "claude-
|
|
27
|
+
}).default({ model: "claude-opus-4-6", skip_permissions: false })
|
|
28
28
|
}),
|
|
29
29
|
identity: z.object({ name: z.string() }).optional(),
|
|
30
30
|
whatsapp: z.object({
|
|
@@ -141,9 +141,9 @@ var DEFAULT_CONFIG = `# CueClaw Configuration
|
|
|
141
141
|
claude:
|
|
142
142
|
api_key: \${ANTHROPIC_API_KEY}
|
|
143
143
|
planner:
|
|
144
|
-
model: claude-
|
|
144
|
+
model: claude-opus-4-6
|
|
145
145
|
executor:
|
|
146
|
-
model: claude-
|
|
146
|
+
model: claude-opus-4-6
|
|
147
147
|
|
|
148
148
|
container:
|
|
149
149
|
enabled: true
|
package/dist/cli.js
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
insertWorkflow,
|
|
9
9
|
listWorkflows,
|
|
10
10
|
updateWorkflowPhase
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3LMKPLR6.js";
|
|
12
12
|
import {
|
|
13
13
|
createDefaultConfig,
|
|
14
14
|
cueclawHome,
|
|
15
15
|
ensureCueclawHome,
|
|
16
16
|
loadConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J53KYCXL.js";
|
|
18
18
|
import "./chunk-BVQG3WYO.js";
|
|
19
19
|
import {
|
|
20
20
|
loadSecrets
|
|
@@ -115,7 +115,7 @@ program.command("new").description("Create a new workflow from a natural languag
|
|
|
115
115
|
try {
|
|
116
116
|
const config = loadConfig();
|
|
117
117
|
const { generatePlan, confirmPlan } = await import("./planner-MJ3XBCWH.js");
|
|
118
|
-
const { executeWorkflow } = await import("./executor-
|
|
118
|
+
const { executeWorkflow } = await import("./executor-VIWMPELU.js");
|
|
119
119
|
logger.info({ description: description.slice(0, 100) }, "Starting plan generation");
|
|
120
120
|
console.log("Planning workflow...");
|
|
121
121
|
const workflow = await generatePlan(description, config);
|
|
@@ -295,7 +295,7 @@ program.command("resume").argument("<workflow-id>", "Workflow ID").description("
|
|
|
295
295
|
updateWorkflowPhase(db, workflowId, "executing");
|
|
296
296
|
logger.info({ workflowId }, "Resuming workflow execution");
|
|
297
297
|
console.log(`Executing workflow "${wf.name}"...`);
|
|
298
|
-
const { executeWorkflow } = await import("./executor-
|
|
298
|
+
const { executeWorkflow } = await import("./executor-VIWMPELU.js");
|
|
299
299
|
const result = await executeWorkflow({
|
|
300
300
|
workflow: { ...wf, phase: "executing" },
|
|
301
301
|
triggerData: null,
|
|
@@ -359,7 +359,7 @@ var daemonCmd = program.command("daemon").description("Manage background daemon"
|
|
|
359
359
|
daemonCmd.command("start").option("--foreground", "Run in foreground (for system services)").description("Start the daemon (runs in background by default)").action(async (opts) => {
|
|
360
360
|
if (opts.foreground) {
|
|
361
361
|
try {
|
|
362
|
-
const { startDaemon } = await import("./daemon-
|
|
362
|
+
const { startDaemon } = await import("./daemon-IAWVNSJS.js");
|
|
363
363
|
await startDaemon();
|
|
364
364
|
} catch (err) {
|
|
365
365
|
logger.error({ err }, "Daemon failed");
|
|
@@ -367,7 +367,7 @@ daemonCmd.command("start").option("--foreground", "Run in foreground (for system
|
|
|
367
367
|
}
|
|
368
368
|
return;
|
|
369
369
|
}
|
|
370
|
-
const { isDaemonRunning, spawnDaemonProcess } = await import("./daemon-
|
|
370
|
+
const { isDaemonRunning, spawnDaemonProcess } = await import("./daemon-IAWVNSJS.js");
|
|
371
371
|
if (isDaemonRunning()) {
|
|
372
372
|
console.log("Daemon is already running.");
|
|
373
373
|
return;
|
|
@@ -382,7 +382,7 @@ daemonCmd.command("start").option("--foreground", "Run in foreground (for system
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
daemonCmd.command("stop").description("Stop the daemon").action(async () => {
|
|
385
|
-
const { readPidFile, isProcessAlive, removePidFile } = await import("./daemon-
|
|
385
|
+
const { readPidFile, isProcessAlive, removePidFile } = await import("./daemon-IAWVNSJS.js");
|
|
386
386
|
const pid = readPidFile();
|
|
387
387
|
if (pid && isProcessAlive(pid)) {
|
|
388
388
|
process.kill(pid, "SIGTERM");
|
|
@@ -391,7 +391,7 @@ daemonCmd.command("stop").description("Stop the daemon").action(async () => {
|
|
|
391
391
|
console.log(`Daemon stopped (PID ${pid}).`);
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
394
|
-
const { getServiceStatus, stopService } = await import("./service-
|
|
394
|
+
const { getServiceStatus, stopService } = await import("./service-SYWHY6SI.js");
|
|
395
395
|
const status = getServiceStatus();
|
|
396
396
|
if (status === "running") {
|
|
397
397
|
const result = stopService();
|
|
@@ -409,14 +409,14 @@ daemonCmd.command("stop").description("Stop the daemon").action(async () => {
|
|
|
409
409
|
console.log("Daemon is not running.");
|
|
410
410
|
});
|
|
411
411
|
daemonCmd.command("restart").description("Restart the daemon").action(async () => {
|
|
412
|
-
const { readPidFile, isProcessAlive, removePidFile } = await import("./daemon-
|
|
412
|
+
const { readPidFile, isProcessAlive, removePidFile } = await import("./daemon-IAWVNSJS.js");
|
|
413
413
|
const pid = readPidFile();
|
|
414
414
|
if (pid && isProcessAlive(pid)) {
|
|
415
415
|
process.kill(pid, "SIGTERM");
|
|
416
416
|
removePidFile();
|
|
417
417
|
console.log(`Stopped daemon (PID ${pid}).`);
|
|
418
418
|
} else {
|
|
419
|
-
const { getServiceStatus, stopService } = await import("./service-
|
|
419
|
+
const { getServiceStatus, stopService } = await import("./service-SYWHY6SI.js");
|
|
420
420
|
if (getServiceStatus() === "running") {
|
|
421
421
|
const result = stopService();
|
|
422
422
|
if (!result.success) {
|
|
@@ -426,7 +426,7 @@ daemonCmd.command("restart").description("Restart the daemon").action(async () =
|
|
|
426
426
|
console.log("Stopped system service daemon.");
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
const { spawnDaemonProcess } = await import("./daemon-
|
|
429
|
+
const { spawnDaemonProcess } = await import("./daemon-IAWVNSJS.js");
|
|
430
430
|
const newPid = spawnDaemonProcess();
|
|
431
431
|
if (newPid) {
|
|
432
432
|
console.log(`Daemon restarted in background (PID ${newPid})`);
|
|
@@ -436,7 +436,7 @@ daemonCmd.command("restart").description("Restart the daemon").action(async () =
|
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
daemonCmd.command("install").description("Install system service").action(async () => {
|
|
439
|
-
const { installService } = await import("./service-
|
|
439
|
+
const { installService } = await import("./service-SYWHY6SI.js");
|
|
440
440
|
const result = installService();
|
|
441
441
|
if (result.success) {
|
|
442
442
|
logger.info("System service installed");
|
|
@@ -448,7 +448,7 @@ daemonCmd.command("install").description("Install system service").action(async
|
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
450
|
daemonCmd.command("uninstall").description("Remove system service").action(async () => {
|
|
451
|
-
const { uninstallService } = await import("./service-
|
|
451
|
+
const { uninstallService } = await import("./service-SYWHY6SI.js");
|
|
452
452
|
const result = uninstallService();
|
|
453
453
|
if (result.success) {
|
|
454
454
|
logger.info("System service uninstalled");
|
|
@@ -460,13 +460,13 @@ daemonCmd.command("uninstall").description("Remove system service").action(async
|
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
daemonCmd.command("status").description("View daemon status").action(async () => {
|
|
463
|
-
const { readPidFile, isProcessAlive } = await import("./daemon-
|
|
463
|
+
const { readPidFile, isProcessAlive } = await import("./daemon-IAWVNSJS.js");
|
|
464
464
|
const pid = readPidFile();
|
|
465
465
|
if (pid && isProcessAlive(pid)) {
|
|
466
466
|
console.log(`Daemon status: running (PID ${pid})`);
|
|
467
467
|
return;
|
|
468
468
|
}
|
|
469
|
-
const { getServiceStatus } = await import("./service-
|
|
469
|
+
const { getServiceStatus } = await import("./service-SYWHY6SI.js");
|
|
470
470
|
const status = getServiceStatus();
|
|
471
471
|
if (status === "running") {
|
|
472
472
|
console.log(`Daemon status: running (system service)`);
|
|
@@ -476,7 +476,7 @@ daemonCmd.command("status").description("View daemon status").action(async () =>
|
|
|
476
476
|
});
|
|
477
477
|
daemonCmd.command("logs").description("View daemon logs").action(async () => {
|
|
478
478
|
const { join } = await import("path");
|
|
479
|
-
const { cueclawHome: cueclawHome2 } = await import("./config-
|
|
479
|
+
const { cueclawHome: cueclawHome2 } = await import("./config-MIMVWGYE.js");
|
|
480
480
|
const logPath = join(cueclawHome2(), "logs", "daemon.log");
|
|
481
481
|
const { existsSync } = await import("fs");
|
|
482
482
|
if (!existsSync(logPath)) {
|
|
@@ -495,7 +495,7 @@ botCmd.command("status").description("View channel connection status").action(()
|
|
|
495
495
|
program.command("setup").description("First-run setup: validate Docker, build container, smoke test").action(async () => {
|
|
496
496
|
try {
|
|
497
497
|
const config = loadConfig();
|
|
498
|
-
const { runSetup } = await import("./setup-
|
|
498
|
+
const { runSetup } = await import("./setup-S4LRDLRD.js");
|
|
499
499
|
await runSetup(config, process.cwd());
|
|
500
500
|
} catch (err) {
|
|
501
501
|
logger.error({ err }, "Setup failed");
|
|
@@ -508,7 +508,7 @@ program.command("tui").description("Start interactive TUI").option("--skip-onboa
|
|
|
508
508
|
enableTuiLogging();
|
|
509
509
|
const React = await import("react");
|
|
510
510
|
const { render } = await import("ink");
|
|
511
|
-
const { App } = await import("./app-
|
|
511
|
+
const { App } = await import("./app-XQRFUTEX.js");
|
|
512
512
|
render(React.createElement(App, { cwd: process.cwd(), skipOnboarding: opts.skipOnboarding }), { exitOnCtrlC: false });
|
|
513
513
|
} catch (err) {
|
|
514
514
|
logger.error({ err }, "Failed to start TUI");
|
|
@@ -522,7 +522,7 @@ program.option("--skip-onboarding", "Skip first-run onboarding wizard").action(a
|
|
|
522
522
|
enableTuiLogging();
|
|
523
523
|
const React = await import("react");
|
|
524
524
|
const { render } = await import("ink");
|
|
525
|
-
const { App } = await import("./app-
|
|
525
|
+
const { App } = await import("./app-XQRFUTEX.js");
|
|
526
526
|
render(React.createElement(App, { cwd: process.cwd(), skipOnboarding }), { exitOnCtrlC: false });
|
|
527
527
|
} catch (err) {
|
|
528
528
|
logger.error({ err }, "Failed to start TUI");
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
spawnDaemonProcess,
|
|
8
8
|
startDaemon,
|
|
9
9
|
writePidFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2PHW4AV3.js";
|
|
11
11
|
import "./chunk-ZOFGQYXX.js";
|
|
12
12
|
import "./chunk-DVQFSFIZ.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4KXY2J6M.js";
|
|
14
|
+
import "./chunk-3LMKPLR6.js";
|
|
15
|
+
import "./chunk-J53KYCXL.js";
|
|
16
16
|
import "./chunk-BVQG3WYO.js";
|
|
17
17
|
import "./chunk-ZCK3IFLC.js";
|
|
18
18
|
import "./chunk-KBLMQZ3P.js";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
executeWorkflow,
|
|
3
3
|
resolveInputs,
|
|
4
4
|
resolveValue
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-4KXY2J6M.js";
|
|
6
|
+
import "./chunk-3LMKPLR6.js";
|
|
7
|
+
import "./chunk-J53KYCXL.js";
|
|
8
8
|
import "./chunk-BVQG3WYO.js";
|
|
9
9
|
import "./chunk-ZCK3IFLC.js";
|
|
10
10
|
import "./chunk-KBLMQZ3P.js";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
installService,
|
|
4
4
|
stopService,
|
|
5
5
|
uninstallService
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7X5HHQEQ.js";
|
|
7
|
+
import "./chunk-J53KYCXL.js";
|
|
8
8
|
import "./chunk-BVQG3WYO.js";
|
|
9
9
|
import "./chunk-ZCK3IFLC.js";
|
|
10
10
|
import "./chunk-KBLMQZ3P.js";
|