omp-config-crypt 0.5.1 → 0.5.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.
package/index.js CHANGED
@@ -21,12 +21,12 @@ export {
21
21
  savePluginLinks,
22
22
  detectMissingPlugins,
23
23
  };
24
- export {
24
+ import {
25
25
  probeProvider,
26
26
  inferModelCapabilities,
27
27
  filterChatModels,
28
28
  } from "./src/prober.js";
29
- export {
29
+ import {
30
30
  saveProvider,
31
31
  removeProvider,
32
32
  listProviders,
@@ -37,7 +37,25 @@ export {
37
37
  writePrivateProviders,
38
38
  ensureLocalExtension,
39
39
  } from "./src/provider-store.js";
40
- export { getRoles, setRole, VALID_ROLES } from "./src/role-manager.js";
40
+ import { getRoles, setRole, VALID_ROLES } from "./src/role-manager.js";
41
+
42
+ export {
43
+ probeProvider,
44
+ inferModelCapabilities,
45
+ filterChatModels,
46
+ saveProvider,
47
+ removeProvider,
48
+ listProviders,
49
+ getProvider,
50
+ readPublicProviders,
51
+ writePublicProviders,
52
+ readPrivateProviders,
53
+ writePrivateProviders,
54
+ ensureLocalExtension,
55
+ getRoles,
56
+ setRole,
57
+ VALID_ROLES,
58
+ };
41
59
 
42
60
  const MAGIC = Buffer.from("OMPCFG1\0", "latin1");
43
61
  const HOME_PLACEHOLDER = "{{OMP_HOME}}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-config-crypt",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Universal cross-platform encrypted portability for omp config, extensions, and instructions",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/rehydrator.js CHANGED
@@ -195,6 +195,17 @@ export function rehydratePlugins(root, options = {}) {
195
195
  }
196
196
 
197
197
  if (!targetDir || !fs.existsSync(targetDir)) {
198
+ if (!dryRun) {
199
+ try {
200
+ execFileSync("npm", ["install", `${name}@latest`, "--omit=dev", "--no-audit", "--no-fund"], {
201
+ cwd: pluginsDir,
202
+ stdio: "pipe",
203
+ timeout: 60000,
204
+ });
205
+ results.npmInstalled.push(name);
206
+ continue;
207
+ } catch {}
208
+ }
198
209
  results.errors.push(`Target directory for plugin ${name} not found`);
199
210
  continue;
200
211
  }