@ran-sh/dsh-crew 1.0.1 → 1.0.3

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.
@@ -20,7 +20,14 @@ function catalogError() {
20
20
  function normalizeProvider(raw) {
21
21
  if (!raw || typeof raw.id !== 'string' || raw.id.trim() === '') return null;
22
22
  const id = raw.id.trim();
23
- return { id, name: typeof raw.name === 'string' && raw.name.trim() ? raw.name.trim() : id };
23
+ const adapterOwned = typeof raw.adapter_owned === 'boolean'
24
+ ? raw.adapter_owned
25
+ : typeof raw.adapterOwned === 'boolean' ? raw.adapterOwned : undefined;
26
+ return {
27
+ id,
28
+ name: typeof raw.name === 'string' && raw.name.trim() ? raw.name.trim() : id,
29
+ ...(adapterOwned === undefined ? {} : { adapter_owned: adapterOwned }),
30
+ };
24
31
  }
25
32
 
26
33
  function normalizeModels(raw, provider) {
@@ -797,13 +797,13 @@ export function getCapabilities(config) {
797
797
  const c = config;
798
798
  const vision = {
799
799
  enabled: normalizeBool(c.vision_enabled, true),
800
- provider: c.vision_provider ?? 'claude-code',
800
+ provider: c.vision_provider ?? 'off',
801
801
  providerOff: c.vision_provider === 'off',
802
802
  usable: normalizeBool(c.vision_enabled, true) && c.vision_provider !== 'off',
803
803
  };
804
804
  const imagegen = {
805
805
  enabled: normalizeBool(c.imagegen_enabled, true),
806
- provider: c.imagegen_provider ?? 'codex',
806
+ provider: c.imagegen_provider ?? 'off',
807
807
  providerOff: c.imagegen_provider === 'off',
808
808
  usable: normalizeBool(c.imagegen_enabled, true) && c.imagegen_provider !== 'off',
809
809
  };