ccprofiles-core 0.12.0 → 0.12.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/dist/discovery.js CHANGED
@@ -31,8 +31,11 @@ function userScopeEntries(entries) {
31
31
  export function readInstalledPluginVersions(plugins) {
32
32
  const out = {};
33
33
  for (const [id, entries] of Object.entries(plugins)) {
34
- for (const { version } of userScopeEntries(entries)) {
35
- if (typeof version === 'string' && version && version !== 'unknown') {
34
+ for (const { version, gitCommitSha } of userScopeEntries(entries)) {
35
+ // Newer Claude Code writes the short sha INTO `version` instead of 'unknown' — same unusable
36
+ // identity, so it must be skipped the same way.
37
+ const isSha = typeof gitCommitSha === 'string' && typeof version === 'string' && gitCommitSha.startsWith(version);
38
+ if (typeof version === 'string' && version && version !== 'unknown' && !isSha) {
36
39
  out[id] = version;
37
40
  break;
38
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccprofiles-core",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Core library for ccprofiles — discovery, manifest, secrets, apply, and LAN sync for Claude Code multi-account setups",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",