cueclaw 0.1.2 → 0.1.3
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/README.md +202 -20
- package/dist/app-JK3HBFKZ.js +3279 -0
- package/dist/{chunk-RSKXBXSJ.js → chunk-25KI643G.js} +16 -1
- package/dist/{chunk-PZZ6FBGB.js → chunk-CXBDJQJJ.js} +4 -3
- package/dist/chunk-HDUFGPCI.js +729 -0
- package/dist/{chunk-G43R5ASK.js → chunk-JJUF2AJ5.js} +20 -1
- package/dist/chunk-KBLMQZ3P.js +116 -0
- package/dist/{chunk-SEYPA5M2.js → chunk-X3WNTN5V.js} +147 -39
- package/dist/{chunk-WE5J7GMR.js → chunk-ZOFGQYXX.js} +36 -11
- package/dist/cli.js +123 -89
- package/dist/{config-6NWFKNLW.js → config-D5A5TNLZ.js} +4 -1
- package/dist/daemon-4DVXPT4O.js +28 -0
- package/dist/{executor-LS3Y4DO5.js → executor-TMY6MGVY.js} +5 -4
- package/dist/logger-HKMIMPCE.js +18 -0
- package/dist/{planner-UU4T5IEN.js → planner-MJ3XBCWH.js} +3 -3
- package/dist/{service-VTUYSAAZ.js → service-AP5GEITC.js} +4 -3
- package/dist/{setup-NWBKTQCO.js → setup-U2YKLOK6.js} +7 -2
- package/dist/{telegram-EFPHL4HC.js → telegram-FH5O4F3K.js} +25 -2
- package/dist/{whatsapp-HFMOFSFI.js → whatsapp-RLNSXSFI.js} +10 -2
- package/package.json +1 -1
- package/dist/app-LWDIWH7K.js +0 -1953
- package/dist/chunk-FAT2VKMJ.js +0 -232
- package/dist/chunk-IB6TU7TP.js +0 -310
- package/dist/chunk-QBOYMF4A.js +0 -42
- package/dist/daemon-WOR4GE5C.js +0 -96
- package/dist/logger-HD23RPWS.js +0 -12
- package/dist/router-ID6RN5AT.js +0 -14
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigError
|
|
3
3
|
} from "./chunk-BVQG3WYO.js";
|
|
4
|
+
import {
|
|
5
|
+
isDev
|
|
6
|
+
} from "./chunk-ZCK3IFLC.js";
|
|
4
7
|
|
|
5
8
|
// src/config.ts
|
|
6
9
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from "fs";
|
|
7
10
|
import { join } from "path";
|
|
8
11
|
import { homedir } from "os";
|
|
12
|
+
import { createRequire } from "module";
|
|
9
13
|
import { parse as parseYaml, stringify as stringifyYaml } from "yaml";
|
|
10
14
|
import { z } from "zod/v4";
|
|
15
|
+
var require2 = createRequire(import.meta.url);
|
|
16
|
+
var { version: pkgVersion } = require2("../package.json");
|
|
11
17
|
var ConfigSchema = z.object({
|
|
12
18
|
claude: z.object({
|
|
13
19
|
api_key: z.string(),
|
|
@@ -37,13 +43,18 @@ var ConfigSchema = z.object({
|
|
|
37
43
|
}).optional(),
|
|
38
44
|
container: z.object({
|
|
39
45
|
enabled: z.boolean().default(false),
|
|
40
|
-
image: z.string().default("cueclaw-agent:latest"),
|
|
46
|
+
image: z.string().default("ghcr.io/memodb-io/cueclaw-agent:latest"),
|
|
41
47
|
timeout: z.number().default(18e5),
|
|
42
48
|
max_output_size: z.number().default(10485760),
|
|
43
49
|
idle_timeout: z.number().default(18e5),
|
|
44
50
|
network: z.enum(["none", "host", "bridge"]).default("none")
|
|
45
51
|
}).optional()
|
|
46
52
|
});
|
|
53
|
+
var GHCR_IMAGE = "ghcr.io/memodb-io/cueclaw-agent";
|
|
54
|
+
var DEV_IMAGE = "cueclaw-agent:latest";
|
|
55
|
+
function getDefaultImage() {
|
|
56
|
+
return isDev ? DEV_IMAGE : `${GHCR_IMAGE}:${pkgVersion}`;
|
|
57
|
+
}
|
|
47
58
|
function cueclawHome() {
|
|
48
59
|
return join(homedir(), ".cueclaw");
|
|
49
60
|
}
|
|
@@ -128,6 +139,9 @@ claude:
|
|
|
128
139
|
executor:
|
|
129
140
|
model: claude-sonnet-4-6
|
|
130
141
|
|
|
142
|
+
container:
|
|
143
|
+
enabled: true
|
|
144
|
+
|
|
131
145
|
logging:
|
|
132
146
|
level: info
|
|
133
147
|
`;
|
|
@@ -236,6 +250,7 @@ function writeConfig(updates) {
|
|
|
236
250
|
}
|
|
237
251
|
|
|
238
252
|
export {
|
|
253
|
+
getDefaultImage,
|
|
239
254
|
cueclawHome,
|
|
240
255
|
ensureCueclawHome,
|
|
241
256
|
loadConfig,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cueclawHome
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-25KI643G.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KBLMQZ3P.js";
|
|
7
7
|
|
|
8
8
|
// src/service.ts
|
|
9
9
|
import { writeFileSync, existsSync, unlinkSync, mkdirSync } from "fs";
|
|
@@ -91,6 +91,7 @@ function installLaunchd() {
|
|
|
91
91
|
<string>${cliPath}</string>
|
|
92
92
|
<string>daemon</string>
|
|
93
93
|
<string>start</string>
|
|
94
|
+
<string>--foreground</string>
|
|
94
95
|
</array>
|
|
95
96
|
<key>KeepAlive</key>
|
|
96
97
|
<true/>
|
|
@@ -136,7 +137,7 @@ Description=CueClaw Daemon
|
|
|
136
137
|
After=network.target
|
|
137
138
|
|
|
138
139
|
[Service]
|
|
139
|
-
ExecStart=${nodePath} ${cliPath} daemon start
|
|
140
|
+
ExecStart=${nodePath} ${cliPath} daemon start --foreground
|
|
140
141
|
Restart=always
|
|
141
142
|
RestartSec=5
|
|
142
143
|
|