@cleocode/caamp 2026.10.21 → 2026.10.22-rc.ci.693

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.
@@ -3,6 +3,7 @@ import {
3
3
  blockPattern,
4
4
  getAllProviders,
5
5
  getPrimaryProvider,
6
+ getProvider,
6
7
  groupByInstructFile,
7
8
  inject,
8
9
  injectAll,
@@ -198,7 +199,7 @@ function resetDetectionCache() {
198
199
  }
199
200
 
200
201
  // src/core/config/caamp-config.ts
201
- var DEFAULT_EXCLUSIVITY_MODE = "auto";
202
+ var DEFAULT_EXCLUSIVITY_MODE = "legacy";
202
203
  var EXCLUSIVITY_MODE_ENV_VAR = "CAAMP_EXCLUSIVITY_MODE";
203
204
  var programmaticOverride = null;
204
205
  var exclusivityWarningState = {
@@ -1956,10 +1957,14 @@ function getAllHarnesses() {
1956
1957
  function resolveDefaultTargetProviders(options = {}) {
1957
1958
  const mode = getExclusivityMode();
1958
1959
  let primary = null;
1960
+ let registryPrimary = null;
1959
1961
  try {
1960
- primary = getPrimaryHarness();
1962
+ registryPrimary = getPrimaryHarness();
1963
+ const pi = getProvider("pi");
1964
+ primary = pi ? getHarnessFor(pi) : null;
1961
1965
  } catch {
1962
1966
  primary = null;
1967
+ registryPrimary = null;
1963
1968
  }
1964
1969
  let installed;
1965
1970
  try {
@@ -1972,8 +1977,8 @@ function resolveDefaultTargetProviders(options = {}) {
1972
1977
  const explicit = options.explicit;
1973
1978
  const explicitContainsPrimary = explicit !== void 0 && primaryId !== null ? explicit.some((provider) => provider.id === primaryId) : false;
1974
1979
  const legacyFallback = () => {
1975
- if (primary !== null && primaryInstalled) {
1976
- return [primary.provider];
1980
+ if (registryPrimary !== null && installed.some((provider) => provider.id === registryPrimary?.provider.id)) {
1981
+ return [registryPrimary.provider];
1977
1982
  }
1978
1983
  const highTier = installed.filter(
1979
1984
  (provider) => provider.priority === "primary" || provider.priority === "high"
@@ -5516,4 +5521,4 @@ export {
5516
5521
  recommendSkills2 as recommendSkills,
5517
5522
  validateSkill
5518
5523
  };
5519
- //# sourceMappingURL=chunk-5UAFS46N.js.map
5524
+ //# sourceMappingURL=chunk-I22NHDGG.js.map