clawdock 0.2.8 → 0.2.9
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 +14 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -434,8 +434,20 @@ program.command("run <bundle>").description("Pull and run an agent locally").opt
|
|
|
434
434
|
const agentDir = path.join(os.homedir(), ".openclaw", "agents", agentName, "agent");
|
|
435
435
|
fs.mkdirSync(agentDir, { recursive: true });
|
|
436
436
|
const authProfilesPath = path.join(agentDir, "auth-profiles.json");
|
|
437
|
-
const
|
|
438
|
-
authProfiles
|
|
437
|
+
const profileKey = `${provider}:default`;
|
|
438
|
+
const authProfiles = {
|
|
439
|
+
version: 1,
|
|
440
|
+
profiles: {
|
|
441
|
+
[profileKey]: {
|
|
442
|
+
type: "token",
|
|
443
|
+
provider,
|
|
444
|
+
token: apiKey
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
lastGood: {
|
|
448
|
+
[provider]: profileKey
|
|
449
|
+
}
|
|
450
|
+
};
|
|
439
451
|
fs.writeFileSync(authProfilesPath, JSON.stringify(authProfiles, null, 2));
|
|
440
452
|
}
|
|
441
453
|
const introMessage = "Hello! I just pulled you from ClawDock. Introduce yourself.";
|