omp-config-crypt 0.6.1 → 0.6.2

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.
Files changed (2) hide show
  1. package/bin/omp-sync.js +11 -2
  2. package/package.json +1 -1
package/bin/omp-sync.js CHANGED
@@ -70,6 +70,7 @@ Options:
70
70
  --public Save as public (synced across machines via models.yml)
71
71
  -y, --yes Non-interactive mode (use defaults without prompting)
72
72
  -f, --force Force operations (e.g. bypass maintenance debounce)
73
+ --profile <name> Target specific profile scene (e.g. dev, ops)
73
74
 
74
75
  Environment Variables:
75
76
  OMP_CONFIG_PASS Passphrase for non-interactive automation
@@ -100,6 +101,7 @@ function parseCliArgs(argv) {
100
101
  nonInteractive: false,
101
102
  force: false,
102
103
  positional: [],
104
+ profile: null,
103
105
  };
104
106
 
105
107
  const positional = [];
@@ -137,6 +139,10 @@ function parseCliArgs(argv) {
137
139
  options.nonInteractive = true;
138
140
  } else if (a === "-f" || a === "--force") {
139
141
  options.force = true;
142
+ } else if (a === "--profile") {
143
+ options.profile = args[++i];
144
+ } else if (a.startsWith("--profile=")) {
145
+ options.profile = a.slice(10);
140
146
  } else if (a.startsWith("--pass=")) {
141
147
  options.pass = a.slice(7);
142
148
  } else if (a.startsWith("--token=")) {
@@ -198,8 +204,11 @@ async function main() {
198
204
  process.exit(options.help ? 0 : 1);
199
205
  }
200
206
 
201
- const root = options.root || configRoot();
202
-
207
+ const root =
208
+ options.root ||
209
+ (options.profile
210
+ ? path.join(os.homedir(), ".omp", "profiles", options.profile, "agent")
211
+ : configRoot());
203
212
  try {
204
213
  switch (options.command) {
205
214
  case "export": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-config-crypt",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Universal cross-platform encrypted portability for omp config, extensions, and instructions",
5
5
  "type": "module",
6
6
  "license": "MIT",