@salesforce/agentic-common 0.2.0 → 0.3.0

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.
@@ -33,6 +33,10 @@ export class RealOrgConnectionFactory {
33
33
  async createFromTargetOrg(options) {
34
34
  if (options?.projectRoot) {
35
35
  try {
36
+ // Clear cached instances so we always read fresh disk state — another process
37
+ // (e.g. auth-service) may have written config.json since our last read.
38
+ SfProject.clearInstances();
39
+ await ConfigAggregator.clearInstance();
36
40
  const projectPath = await SfProject.resolveProjectPath(options.projectRoot);
37
41
  const projectAggregator = await ConfigAggregator.create({ projectPath });
38
42
  const info = projectAggregator.getInfo(OrgConfigProperties.TARGET_ORG);
@@ -45,6 +49,7 @@ export class RealOrgConnectionFactory {
45
49
  // Not in an SFDX project or config read failure — fall through to global default.
46
50
  }
47
51
  }
52
+ await ConfigAggregator.clearInstance();
48
53
  const aggregator = await ConfigAggregator.create();
49
54
  const aliasOrUsername = aggregator.getPropertyValue(OrgConfigProperties.TARGET_ORG);
50
55
  if (!aliasOrUsername) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/agentic-common",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Shared primitives and common utilities for the Salesforce agentic DX packages",
5
5
  "type": "module",
6
6
  "exports": {