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.
@@ -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-RSKXBXSJ.js";
3
+ } from "./chunk-25KI643G.js";
4
4
  import {
5
5
  logger
6
- } from "./chunk-QBOYMF4A.js";
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