@agentchatme/openclaw 0.6.8 → 0.6.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.
@@ -1,6 +1,6 @@
1
1
  import { buildChannelConfigSchema, defineChannelPluginEntry, defineSetupPluginEntry } from 'openclaw/plugin-sdk/channel-core';
2
2
  import { setSetupChannelEnabled, WizardCancelledError } from 'openclaw/plugin-sdk/setup';
3
- import { readApiKeyFromEnv } from './credentials/read-env.js';
3
+ import { readApiKeyFromEnv, readOpenClawProfileFromEnv } from './credentials/read-env.js';
4
4
  import * as fs from 'fs';
5
5
  import * as os from 'os';
6
6
  import * as path from 'path';
@@ -300,8 +300,8 @@ function resolveWorkspaceDir(cfg) {
300
300
  if (typeof configured === "string" && configured.trim().length > 0) {
301
301
  return path.resolve(configured);
302
302
  }
303
- const profile = process.env["OPENCLAW_PROFILE"]?.trim();
304
- if (profile && profile.toLowerCase() !== "default") {
303
+ const profile = readOpenClawProfileFromEnv();
304
+ if (profile) {
305
305
  return path.join(os.homedir(), ".openclaw", `workspace-${profile}`);
306
306
  }
307
307
  return path.join(os.homedir(), ".openclaw", "workspace");
@@ -1947,7 +1947,7 @@ var CircuitBreaker = class {
1947
1947
  };
1948
1948
 
1949
1949
  // src/version.ts
1950
- var PACKAGE_VERSION = "0.6.8";
1950
+ var PACKAGE_VERSION = "0.6.9";
1951
1951
 
1952
1952
  // src/outbound.ts
1953
1953
  var DEFAULT_RETRY_POLICY = {