cc-claw 0.16.3 → 0.16.4
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/cli.js +25 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ var VERSION;
|
|
|
33
33
|
var init_version = __esm({
|
|
34
34
|
"src/version.ts"() {
|
|
35
35
|
"use strict";
|
|
36
|
-
VERSION = true ? "0.16.
|
|
36
|
+
VERSION = true ? "0.16.4" : (() => {
|
|
37
37
|
try {
|
|
38
38
|
return JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
|
|
39
39
|
} catch {
|
|
@@ -5223,10 +5223,33 @@ function syncNativeCliFiles() {
|
|
|
5223
5223
|
"## CRITICAL: Tool Usage Rules",
|
|
5224
5224
|
"",
|
|
5225
5225
|
"- Do NOT use native CLI memory/storage tools (save_memory, etc.) \u2014 they are backend-local and invisible to other backends",
|
|
5226
|
-
"- Do NOT modify the database directly with SQL (no INSERT/UPDATE/DELETE) \u2014 use CC-Claw commands only",
|
|
5227
5226
|
"- To save a memory: use /remember in Telegram, or tell the user to use it",
|
|
5228
5227
|
"- To learn your full CLI: run `cc-claw --ai`",
|
|
5229
5228
|
"- All state changes must go through the CC-Claw API layer for cross-backend persistence",
|
|
5229
|
+
"",
|
|
5230
|
+
"## \u26D4 DATABASE SAFETY BOUNDARY \u2014 ABSOLUTE PROHIBITION",
|
|
5231
|
+
"",
|
|
5232
|
+
"**NEVER access ~/.cc-claw/data/cc-claw.db directly. No exceptions. No excuses.**",
|
|
5233
|
+
"",
|
|
5234
|
+
"This means ALL of the following are FORBIDDEN:",
|
|
5235
|
+
"- `sqlite3 ~/.cc-claw/data/cc-claw.db` \u2014 FORBIDDEN",
|
|
5236
|
+
"- `sqlite3` with any path containing `cc-claw` \u2014 FORBIDDEN",
|
|
5237
|
+
"- `.schema`, `.tables`, `.dump`, or any SQLite dot-command \u2014 FORBIDDEN",
|
|
5238
|
+
"- `SELECT`, `INSERT`, `UPDATE`, `DELETE` queries \u2014 ALL FORBIDDEN",
|
|
5239
|
+
"- Reading the database file with `cat`, `hexdump`, `xxd`, `strings` \u2014 FORBIDDEN",
|
|
5240
|
+
"- ANY tool or command that opens, reads, queries, or inspects this database \u2014 FORBIDDEN",
|
|
5241
|
+
"",
|
|
5242
|
+
"**Why:** The database is a live, WAL-mode SQLite file shared with the running daemon. Direct access risks corruption, lock contention, and data inconsistency. You are an agent RUNNING INSIDE CC-Claw \u2014 never touch the infrastructure that runs you.",
|
|
5243
|
+
"",
|
|
5244
|
+
"**What to use instead:**",
|
|
5245
|
+
"- `cc-claw status` \u2014 system status",
|
|
5246
|
+
"- `cc-claw --json status` \u2014 machine-readable status",
|
|
5247
|
+
"- `cc-claw cron list` \u2014 scheduled jobs",
|
|
5248
|
+
"- `cc-claw claude list` / `cc-claw codex list` / `cc-claw gemini list` \u2014 credential slots",
|
|
5249
|
+
"- `cc-claw --ai` \u2014 full CLI reference",
|
|
5250
|
+
"- Ask the user to check via Telegram commands if needed",
|
|
5251
|
+
"",
|
|
5252
|
+
"**Violation of this rule is a critical safety failure.**",
|
|
5230
5253
|
""
|
|
5231
5254
|
].join("\n");
|
|
5232
5255
|
const ccClawPath = join6(IDENTITY_PATH, "CC-CLAW.md");
|
package/package.json
CHANGED