@aiwayds/dsh-model-sync 0.8.0 → 0.10.0

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 (68) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +9 -4
  3. package/README.zh-CN.md +9 -4
  4. package/lib/builtin-catalog-snapshot.d.ts +5 -1
  5. package/lib/builtin-catalog-snapshot.js +13 -10
  6. package/lib/builtin-catalog-snapshot.js.map +1 -1
  7. package/lib/index.d.ts +366 -0
  8. package/lib/index.js +729 -13
  9. package/lib/index.js.map +1 -1
  10. package/lib/opencode-go-diagnose.d.ts +74 -0
  11. package/lib/opencode-go-diagnose.js +146 -0
  12. package/lib/opencode-go-diagnose.js.map +1 -0
  13. package/lib/opencode-go-grouping.d.ts +29 -0
  14. package/lib/opencode-go-grouping.js +77 -0
  15. package/lib/opencode-go-grouping.js.map +1 -0
  16. package/lib/opencode-go-journal.d.ts +110 -0
  17. package/lib/opencode-go-journal.js +406 -0
  18. package/lib/opencode-go-journal.js.map +1 -0
  19. package/lib/opencode-go-migrate.d.ts +343 -0
  20. package/lib/opencode-go-migrate.js +1300 -0
  21. package/lib/opencode-go-migrate.js.map +1 -0
  22. package/lib/opencode-go-migration.d.ts +227 -0
  23. package/lib/opencode-go-migration.js +384 -0
  24. package/lib/opencode-go-migration.js.map +1 -0
  25. package/lib/opencode-go-planner.d.ts +153 -0
  26. package/lib/opencode-go-planner.js +339 -0
  27. package/lib/opencode-go-planner.js.map +1 -0
  28. package/lib/opencode-go-profile.d.ts +57 -0
  29. package/lib/opencode-go-profile.js +103 -0
  30. package/lib/opencode-go-profile.js.map +1 -0
  31. package/lib/opencode-go-scheduler.d.ts +128 -0
  32. package/lib/opencode-go-scheduler.js +241 -0
  33. package/lib/opencode-go-scheduler.js.map +1 -0
  34. package/lib/opencode-go-source.d.ts +117 -0
  35. package/lib/opencode-go-source.js +331 -0
  36. package/lib/opencode-go-source.js.map +1 -0
  37. package/lib/opencode-go-store.d.ts +18 -0
  38. package/lib/opencode-go-store.js +68 -0
  39. package/lib/opencode-go-store.js.map +1 -0
  40. package/lib/opencode-go-sync.d.ts +94 -0
  41. package/lib/opencode-go-sync.js +364 -0
  42. package/lib/opencode-go-sync.js.map +1 -0
  43. package/lib/opencode-go-writer.d.ts +132 -0
  44. package/lib/opencode-go-writer.js +966 -0
  45. package/lib/opencode-go-writer.js.map +1 -0
  46. package/lib/provider-native.d.ts +3 -1
  47. package/lib/provider-native.js +4 -2
  48. package/lib/provider-native.js.map +1 -1
  49. package/lib/remote-catalog.d.ts +37 -0
  50. package/lib/remote-catalog.js +261 -3
  51. package/lib/remote-catalog.js.map +1 -1
  52. package/package.json +18 -18
  53. package/src/builtin-catalog-snapshot.ts +18 -11
  54. package/src/index.ts +873 -12
  55. package/src/opencode-go-diagnose.ts +222 -0
  56. package/src/opencode-go-grouping.ts +97 -0
  57. package/src/opencode-go-journal.ts +458 -0
  58. package/src/opencode-go-migrate.ts +1694 -0
  59. package/src/opencode-go-migration.ts +552 -0
  60. package/src/opencode-go-planner.ts +505 -0
  61. package/src/opencode-go-profile.ts +114 -0
  62. package/src/opencode-go-scheduler.ts +315 -0
  63. package/src/opencode-go-source.ts +424 -0
  64. package/src/opencode-go-store.ts +73 -0
  65. package/src/opencode-go-sync.ts +503 -0
  66. package/src/opencode-go-writer.ts +1189 -0
  67. package/src/provider-native.ts +3 -1
  68. package/src/remote-catalog.ts +293 -3
@@ -16,7 +16,11 @@
16
16
  * on opencode-go and six zai-coding-cn ids: glm-4.7, glm-5-turbo,
17
17
  * glm-5.1, glm-5.2, glm-5.2-highspeed, glm-5v-turbo. dsh 0.2.1-rc.2
18
18
  * (pi-ai 1.3.0) removed six more opencode-go ids: glm-5.1, grok-4.6,
19
- * kimi-k2.6, minimax-m2.7, qwen3.6-plus, qwen3.7-max). The data is
19
+ * kimi-k2.6, minimax-m2.7, qwen3.6-plus, qwen3.7-max. The 2026-10
20
+ * catalog refresh dropped mimo-v2.5/mimo-v2.5-pro on xiaomi-token-plan-cn,
21
+ * replaced the opencode-go free ids cat-jam-free/space-bunny/
22
+ * step-5-preview-free with beam-free/minimax-m3.1-flash-free/step-5-preview,
23
+ * and added MiniMax-M3.1-Flash on minimax-cn). The data is
20
24
  * retained for historical user configurations: keepBuiltinOnly emission
21
25
  * skips deprecated ids unless keepDeprecatedBuiltin opts back in. Marks
22
26
  * and entries survive regeneration — this script re-adds them even when
@@ -37,18 +41,18 @@ export const BUILTIN_CATALOG_SNAPSHOT: BuiltinCatalogSnapshotMap = {
37
41
  'minimax-cn': [
38
42
  { id: 'MiniMax-M2.7', api: 'anthropic-messages', maxTokens: 131072 },
39
43
  { id: 'MiniMax-M2.7-highspeed', api: 'anthropic-messages', maxTokens: 131072 },
40
- { id: 'MiniMax-M3', api: 'anthropic-messages', maxTokens: 512000 }
44
+ { id: 'MiniMax-M3', api: 'anthropic-messages', maxTokens: 524288 },
45
+ { id: 'MiniMax-M3.1-Flash', api: 'anthropic-messages', maxTokens: 524288 }
41
46
  ],
42
47
  'opencode-go': [
43
- { id: 'cat-jam-free', api: 'openai-completions', maxTokens: 131072 },
48
+ { id: 'beam-free', api: 'openai-completions', maxTokens: 131072 },
44
49
  { id: 'claude-haiku-5-5', api: 'anthropic-messages', maxTokens: 128000 },
45
50
  { id: 'deepseek-v4-flash', api: 'openai-completions', maxTokens: 384000, deprecated: true },
46
51
  { id: 'deepseek-v4-flash-vision-exp', api: 'openai-completions', maxTokens: 384000, deprecated: true },
47
52
  { id: 'deepseek-v4-pro', api: 'openai-completions', maxTokens: 384000 },
48
53
  { id: 'deepseek-v4.1-flash', api: 'openai-completions', maxTokens: 384000 },
49
- { id: 'gemini-4-argon-contributor', api: 'google-generative-ai', maxTokens: 65536 },
54
+ { id: 'gemini-4-argon', api: 'google-generative-ai', maxTokens: 65536 },
50
55
  { id: 'glm-5.1', api: 'openai-completions', maxTokens: 32768, deprecated: true },
51
- { id: 'glm-5.2', api: 'openai-completions', maxTokens: 131072 },
52
56
  { id: 'glm-5.3', api: 'openai-completions', maxTokens: 131072 },
53
57
  { id: 'glm-5.3-flash', api: 'openai-completions', maxTokens: 131072 },
54
58
  { id: 'gpt-5.6-luna', api: 'openai-responses', maxTokens: 128000 },
@@ -56,18 +60,23 @@ export const BUILTIN_CATALOG_SNAPSHOT: BuiltinCatalogSnapshotMap = {
56
60
  { id: 'grok-4.6', api: 'openai-responses', maxTokens: 500000, deprecated: true },
57
61
  { id: 'grok-4.7', api: 'openai-responses', maxTokens: 500000 },
58
62
  { id: 'hy3', api: 'openai-completions', maxTokens: 128000 },
63
+ { id: 'hy4', api: 'openai-completions', maxTokens: 65536 },
64
+ { id: 'hy4-flash-free', api: 'openai-completions', maxTokens: 65536 },
59
65
  { id: 'hy4-preview', api: 'openai-completions', maxTokens: 64000 },
66
+ { id: 'iceman-contributor-free', api: 'openai-completions', maxTokens: 131072 },
60
67
  { id: 'kimi-k2.6', api: 'openai-completions', maxTokens: 65536, deprecated: true },
61
68
  { id: 'kimi-k2.7-code', api: 'openai-completions', maxTokens: 262144 },
62
- { id: 'kimi-k3', api: 'openai-completions', maxTokens: 131072 },
69
+ { id: 'kimi-k3', api: 'openai-completions', maxTokens: 1048576 },
70
+ { id: 'kimi-k3.1-pro', api: 'openai-completions', maxTokens: 1048576 },
63
71
  { id: 'longcat-2.0', api: 'openai-completions', maxTokens: 131072 },
64
- { id: 'longcat-2.5-preview-free', api: 'openai-completions', maxTokens: 131072 },
72
+ { id: 'longcat-2.5-free', api: 'openai-completions', maxTokens: 262144 },
65
73
  { id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 128000 },
66
74
  { id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 128000 },
67
75
  { id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
68
76
  { id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 },
69
77
  { id: 'minimax-m2.7', api: 'openai-completions', maxTokens: 131072, deprecated: true },
70
78
  { id: 'minimax-m3', api: 'anthropic-messages', maxTokens: 131072 },
79
+ { id: 'minimax-m3.1-flash', api: 'openai-completions', maxTokens: 512000 },
71
80
  { id: 'muse-spark-1.2-contributor', api: 'openai-responses', maxTokens: 131072 },
72
81
  { id: 'muse-spark-1.3-contributor', api: 'openai-responses', maxTokens: 131072 },
73
82
  { id: 'omen-alpha', api: 'openai-completions', maxTokens: 128000, deprecated: true },
@@ -76,12 +85,10 @@ export const BUILTIN_CATALOG_SNAPSHOT: BuiltinCatalogSnapshotMap = {
76
85
  { id: 'qwen3.7-plus', api: 'anthropic-messages', maxTokens: 65536 },
77
86
  { id: 'qwen3.8-flash', api: 'anthropic-messages', maxTokens: 131072 },
78
87
  { id: 'qwen3.8-max', api: 'anthropic-messages', maxTokens: 131072 },
79
- { id: 'space-bunny', api: 'openai-completions', maxTokens: 524288 },
80
- { id: 'step-5-preview-free', api: 'openai-completions', maxTokens: 65536 }
88
+ { id: 'qwen4-max', api: 'anthropic-messages', maxTokens: 262144 },
89
+ { id: 'step-5-preview', api: 'openai-completions', maxTokens: 65536 }
81
90
  ],
82
91
  'xiaomi-token-plan-cn': [
83
- { id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 131072 },
84
- { id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 131072 },
85
92
  { id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
86
93
  { id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 }
87
94
  ],