cvc-catalog-sync-plugin 2.0.0 → 2.0.1

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/CHANGELOG.md CHANGED
@@ -30,6 +30,27 @@ still reachable for anyone reading old profiles.
30
30
 
31
31
  See [docs/UPGRADING.md](docs/UPGRADING.md) for the steps.
32
32
 
33
+ ### Fixed in 2.0.1
34
+
35
+ Version 2.0.0 is the first combined release; 2.0.1 carries the fixes found while
36
+ running it on a live DSH host. Nothing in the configuration surface changed, so
37
+ updating from 2.0.0 is a version bump only.
38
+
39
+ - **The `cvc_balance` tool declared nullable fields as type unions**
40
+ (`type: ["number", "null"]`). DSH refuses type arrays when a tool is registered,
41
+ and the refusal turned the whole plugin row inactive on a live host ("1 entry
42
+ did not activate"). Missing readings are absent keys, so single types are used
43
+ now, and a test keeps type arrays out of the schema.
44
+ - **The plugin with every switch off left its tool behind.** With only the
45
+ balance function enabled, disabling it kept `cvc_balance` registered, because
46
+ the tool list was built once at activation. Deactivation now removes the tool
47
+ through the same coordinator that mounts it.
48
+ - **A change to a normal setting remounted all three functions** instead of only
49
+ the one whose section changed; timers and tools were recreated needlessly.
50
+ - **`publish.yml`** ran on Node 22, whose npm 10 cannot exchange the Trusted
51
+ Publishing OIDC token (the run failed with `ENEEDAUTH`), and its verification
52
+ step treated the registry's asynchronous processing as a failure. Release
53
+ publishing now runs on Node 24 and polls the registry before judging.
33
54
  ### Added
34
55
 
35
56
  - Three function switches — `features.catalogSync`, `features.coefficients`,
package/lib/balance.js CHANGED
@@ -385,7 +385,7 @@ export function tool(deps) {
385
385
  properties: {
386
386
  ok: { type: 'boolean' },
387
387
  action: { type: 'string' },
388
- fetchedAt: { type: ['string', 'null'] },
388
+ fetchedAt: { type: 'string' },
389
389
  providers: {
390
390
  type: 'array',
391
391
  items: {
@@ -395,8 +395,8 @@ export function tool(deps) {
395
395
  provider: { type: 'string' },
396
396
  displayName: { type: 'string' },
397
397
  keySet: { type: 'boolean' },
398
- balanceUnits: { type: ['number', 'null'] },
399
- spentSinceLast: { type: ['number', 'null'] },
398
+ balanceUnits: { type: 'number' },
399
+ spentSinceLast: { type: 'number' },
400
400
  balanceError: { type: 'string' },
401
401
  },
402
402
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cvc-catalog-sync-plugin",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "DSH plugin for CheapVibeCode with three switchable features: keeps the model catalog and reasoning levels in the profile patch in sync with /v1/models, shows model coefficients next to the model picker and the account balance in the sidebar",
5
5
  "type": "module",
6
6
  "keywords": [