fraim-hub 2.0.253 → 2.0.254

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.
@@ -108,20 +108,26 @@ function winRegisteredDefaultValue(guid) {
108
108
  return parseRegSzValue(r.stdout);
109
109
  }
110
110
  function winRegisteredValue(guid) {
111
- // Word resolves the braced GUID subkey. Prefer it even when a legacy root
112
- // value exists, so a stale effective registration cannot be hidden.
113
- return winRegisteredDefaultValue(guid) ?? winRegisteredRootValue(guid);
111
+ // Word's Developer Add-ins list resolves the named value directly under
112
+ // WEF\Developer. Keep the braced subkey for debugger/tooling compatibility,
113
+ // but treat the root value as the effective discovery registration.
114
+ return winRegisteredRootValue(guid) ?? winRegisteredDefaultValue(guid);
114
115
  }
115
116
  function winWriteRegisteredValue(guid, manifestPath) {
117
+ const root = (0, child_process_1.spawnSync)('reg', [
118
+ 'add', WEF_DEVELOPER_KEY,
119
+ '/v', guid, '/t', 'REG_SZ', '/d', manifestPath, '/f',
120
+ ], { encoding: 'utf8' });
121
+ if (root.status !== 0)
122
+ return { ok: false, reason: root.stderr || `reg add failed for ${guid}` };
116
123
  const r = (0, child_process_1.spawnSync)('reg', [
117
124
  'add', winDeveloperManifestSubkey(guid),
118
125
  '/ve', '/t', 'REG_SZ', '/d', manifestPath, '/f',
119
126
  ], { encoding: 'utf8' });
120
127
  if (r.status !== 0)
121
128
  return { ok: false, reason: r.stderr || `reg add failed for ${guid}` };
122
- // Remove the older root-value registration if present. Office does not need
123
- // it, and keeping two registration shapes makes stale-state diagnosis harder.
124
- (0, child_process_1.spawnSync)('reg', ['delete', WEF_DEVELOPER_KEY, '/v', guid, '/f'], { encoding: 'utf8' });
129
+ // Remove an accidental unbraced subkey left by older debugger settings. This
130
+ // is different from the root named value above, which Word needs.
125
131
  (0, child_process_1.spawnSync)('reg', ['delete', `${WEF_DEVELOPER_KEY}\\${guid}`, '/f'], { encoding: 'utf8' });
126
132
  return { ok: true };
127
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim-hub",
3
- "version": "2.0.253",
3
+ "version": "2.0.254",
4
4
  "description": "FRAIM Hub local companion package.",
5
5
  "bin": {
6
6
  "fraim-hub": "bin/fraim-hub.js",
@@ -163,7 +163,7 @@
163
163
  "electron": "^41.2.2",
164
164
  "electron-updater": "^6.8.9",
165
165
  "express": "^5.2.1",
166
- "fraim": "2.0.253",
166
+ "fraim": "2.0.254",
167
167
  "mongodb": "^7.0.0",
168
168
  "node-cron": "4.2.1",
169
169
  "node-edge-tts": "^1.2.10",