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.
Files changed (2) hide show
  1. package/dist/index.js +14 -2
  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 authProfiles = {};
438
- authProfiles[provider] = { type: "api-key", apiKey };
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.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawdock",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "CLI for ClawDock — the agent registry",
5
5
  "bin": {
6
6
  "clawdock": "./dist/index.js"