omp-config-crypt 0.9.13 → 0.9.14

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # omp-config-crypt (v0.9.13)
1
+ # omp-config-crypt (v0.9.14)
2
2
 
3
3
  Universal, zero-repair cross-platform configuration encryption and synchronization engine for `omp` (Oh My Pi).
4
4
 
package/bin/omp-sync.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-config-crypt",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "description": "Universal cross-platform encrypted portability for omp config, extensions, and instructions",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -358,7 +358,6 @@ export function formatYamlModels(providers) {
358
358
  out += ` models:\n`;
359
359
  for (const m of cfg.models) {
360
360
  out += ` - id: ${m.id}\n`;
361
- if (m.api) out += ` api: ${m.api}\n`;
362
361
  if (m.name) out += ` name: ${m.name}\n`;
363
362
  if (m.reasoning !== undefined) out += ` reasoning: ${m.reasoning}\n`;
364
363
  if (m.input) {
@@ -531,7 +530,7 @@ export function getProvider(name, { agentDir = getAgentDir() } = {}) {
531
530
  }
532
531
 
533
532
  const PROVIDER_FIELDS = new Set(["private", "baseUrl", "api", "apiKey", "authHeader", "models"]);
534
- const MODEL_FIELDS = new Set(["id", "api", "name", "reasoning", "input", "contextWindow", "maxTokens", "compat"]);
533
+ const MODEL_FIELDS = new Set(["id", "name", "reasoning", "input", "contextWindow", "maxTokens", "compat"]);
535
534
  function unsupported(field) {
536
535
  throw new Error(`公开 YAML 格式不支持字段或结构 ${field};未写入`);
537
536
  }