squidclaw 3.0.31 → 3.0.32
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/build-info.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: session-memory
|
|
3
|
-
description: "
|
|
3
|
+
description: "Per-user memory: injects memories at session start, saves context on /new or /reset"
|
|
4
4
|
homepage: https://docs.squidclaw.ai/automation/hooks#session-memory
|
|
5
5
|
metadata:
|
|
6
6
|
{
|
|
7
7
|
"squidclaw":
|
|
8
8
|
{
|
|
9
9
|
"emoji": "💾",
|
|
10
|
-
"events": ["command:new", "command:reset"],
|
|
10
|
+
"events": ["command:new", "command:reset", "agent:bootstrap"],
|
|
11
11
|
"requires": { "config": ["workspace.dir"] },
|
|
12
12
|
"install": [{ "id": "bundled", "kind": "bundled", "label": "Bundled with SquidClaw" }],
|
|
13
13
|
},
|
|
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import json5 from "json5";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import "@clack/prompts";
|
|
@@ -761,7 +761,7 @@ function readLoggingConfig() {
|
|
|
761
761
|
try {
|
|
762
762
|
if (!fs.existsSync(configPath)) return;
|
|
763
763
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
764
|
-
const logging =
|
|
764
|
+
const logging = json5.parse(raw)?.logging;
|
|
765
765
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
766
766
|
return logging;
|
|
767
767
|
} catch {
|