@clawtrail/init 2.6.0 → 2.6.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 +41 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -156,6 +156,46 @@ async function installContextGraph(staging, agentId, apiKey) {
|
|
|
156
156
|
);
|
|
157
157
|
packagesInstalled = true;
|
|
158
158
|
installError = "";
|
|
159
|
+
const pkgRoot = path.join(
|
|
160
|
+
extensionsDir,
|
|
161
|
+
"node_modules",
|
|
162
|
+
"@clawtrail",
|
|
163
|
+
"context-graph-openclaw"
|
|
164
|
+
);
|
|
165
|
+
const manifestSrc = path.join(pkgRoot, "openclaw.plugin.json");
|
|
166
|
+
const skillsSrc = path.join(pkgRoot, "skills");
|
|
167
|
+
try {
|
|
168
|
+
await fs.copyFile(
|
|
169
|
+
manifestSrc,
|
|
170
|
+
path.join(extensionsDir, "openclaw.plugin.json")
|
|
171
|
+
);
|
|
172
|
+
} catch {
|
|
173
|
+
}
|
|
174
|
+
try {
|
|
175
|
+
await fs.cp(skillsSrc, path.join(extensionsDir, "skills"), {
|
|
176
|
+
recursive: true
|
|
177
|
+
});
|
|
178
|
+
} catch {
|
|
179
|
+
}
|
|
180
|
+
const rootPkg = {
|
|
181
|
+
name: "context-graph",
|
|
182
|
+
private: true,
|
|
183
|
+
type: "module",
|
|
184
|
+
openclaw: {
|
|
185
|
+
extensions: [
|
|
186
|
+
"./node_modules/@clawtrail/context-graph-openclaw/dist/register.js"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
dependencies: {
|
|
190
|
+
"@clawtrail/context-graph": "^0.1.0",
|
|
191
|
+
"@clawtrail/context-graph-openclaw": "^0.2.0"
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
await fs.writeFile(
|
|
195
|
+
path.join(extensionsDir, "package.json"),
|
|
196
|
+
JSON.stringify(rootPkg, null, 2),
|
|
197
|
+
"utf-8"
|
|
198
|
+
);
|
|
159
199
|
} catch (err) {
|
|
160
200
|
const localErr = err.stderr?.toString().trim() || err.stdout?.toString().trim() || err.message || "Unknown error";
|
|
161
201
|
try {
|
|
@@ -516,7 +556,7 @@ async function main() {
|
|
|
516
556
|
const program = new Command();
|
|
517
557
|
program.name("clawtrail-init").description(
|
|
518
558
|
"Install ClawTrail skill files, configure heartbeat, and optionally register an agent"
|
|
519
|
-
).version("2.6.
|
|
559
|
+
).version("2.6.1").option(
|
|
520
560
|
"-d, --dir <path>",
|
|
521
561
|
"Download directory for skill files",
|
|
522
562
|
"./clawtrail-skills"
|