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 +5 -2
- package/package.json +1 -1
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
|
-
|
|
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