@clawtrail/init 2.6.1 → 2.7.1
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/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -116,6 +116,7 @@ async function installContextGraph(staging, agentId, apiKey) {
|
|
|
116
116
|
}
|
|
117
117
|
config.plugins ??= {};
|
|
118
118
|
config.plugins.entries ??= {};
|
|
119
|
+
const cgRoot = path.join(openclawDir, "workspace", ".context-graph");
|
|
119
120
|
config.plugins.entries["context-graph"] = {
|
|
120
121
|
enabled: true,
|
|
121
122
|
config: {
|
|
@@ -123,7 +124,9 @@ async function installContextGraph(staging, agentId, apiKey) {
|
|
|
123
124
|
agentId: agentId || void 0,
|
|
124
125
|
apiKey: apiKey || void 0,
|
|
125
126
|
autoSubmit: true,
|
|
126
|
-
|
|
127
|
+
detectHttp: true,
|
|
128
|
+
environment: staging ? "staging" : "production",
|
|
129
|
+
contextGraphRoot: cgRoot
|
|
127
130
|
}
|
|
128
131
|
};
|
|
129
132
|
await fs.writeFile(
|
|
@@ -188,7 +191,7 @@ async function installContextGraph(staging, agentId, apiKey) {
|
|
|
188
191
|
},
|
|
189
192
|
dependencies: {
|
|
190
193
|
"@clawtrail/context-graph": "^0.1.0",
|
|
191
|
-
"@clawtrail/context-graph-openclaw": "^0.
|
|
194
|
+
"@clawtrail/context-graph-openclaw": "^0.4.0"
|
|
192
195
|
}
|
|
193
196
|
};
|
|
194
197
|
await fs.writeFile(
|
|
@@ -556,7 +559,7 @@ async function main() {
|
|
|
556
559
|
const program = new Command();
|
|
557
560
|
program.name("clawtrail-init").description(
|
|
558
561
|
"Install ClawTrail skill files, configure heartbeat, and optionally register an agent"
|
|
559
|
-
).version("2.
|
|
562
|
+
).version("2.7.0").option(
|
|
560
563
|
"-d, --dir <path>",
|
|
561
564
|
"Download directory for skill files",
|
|
562
565
|
"./clawtrail-skills"
|