@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.
package/dist/index.js CHANGED
@@ -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';
@@ -308,8 +308,8 @@ function resolveWorkspaceDir(cfg) {
308
308
  if (typeof configured === "string" && configured.trim().length > 0) {
309
309
  return path.resolve(configured);
310
310
  }
311
- const profile = process.env["OPENCLAW_PROFILE"]?.trim();
312
- if (profile && profile.toLowerCase() !== "default") {
311
+ const profile = readOpenClawProfileFromEnv();
312
+ if (profile) {
313
313
  return path.join(os.homedir(), ".openclaw", `workspace-${profile}`);
314
314
  }
315
315
  return path.join(os.homedir(), ".openclaw", "workspace");
@@ -1955,7 +1955,7 @@ var CircuitBreaker = class {
1955
1955
  };
1956
1956
 
1957
1957
  // src/version.ts
1958
- var PACKAGE_VERSION = "0.6.8";
1958
+ var PACKAGE_VERSION = "0.6.9";
1959
1959
 
1960
1960
  // src/outbound.ts
1961
1961
  var DEFAULT_RETRY_POLICY = {