@kenkaiiii/gg-core 5.100.1 → 5.100.3
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/{chunk-E76ARVZJ.js → chunk-7OUR44Y4.js} +29 -19
- package/dist/chunk-7OUR44Y4.js.map +1 -0
- package/dist/index.cjs +35 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +2 -1
- package/dist/model-registry.d.ts +2 -1
- package/dist/model-registry.js +1 -1
- package/dist/paths.d.cts +2 -1
- package/dist/paths.d.ts +2 -1
- package/package.json +4 -4
- package/dist/chunk-E76ARVZJ.js.map +0 -1
|
@@ -166,47 +166,47 @@ async function extractFileFromTarGz(tgzPath, entryName, destPath) {
|
|
|
166
166
|
|
|
167
167
|
// src/claude-code/manifest.json
|
|
168
168
|
var manifest_default = {
|
|
169
|
-
sdkVersion: "0.3.
|
|
170
|
-
claudeCodeVersion: "2.1.
|
|
169
|
+
sdkVersion: "0.3.321",
|
|
170
|
+
claudeCodeVersion: "2.1.321",
|
|
171
171
|
platforms: {
|
|
172
172
|
"darwin-arm64": {
|
|
173
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.
|
|
174
|
-
integrity: "sha512-
|
|
173
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.321.tgz",
|
|
174
|
+
integrity: "sha512-r718mW98hvRbmCa0TtSgImHkgyPUjPXSHOsORrehn2a8Z0FU1A2RkX9gCjY7EzZgL0RNbZXsBbkuab//kUjzJw==",
|
|
175
175
|
bin: "claude"
|
|
176
176
|
},
|
|
177
177
|
"darwin-x64": {
|
|
178
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.
|
|
179
|
-
integrity: "sha512-
|
|
178
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.321.tgz",
|
|
179
|
+
integrity: "sha512-C08vEnnDylWDaFprx/B1B13RZK3la1HOqR986igkZSwhY//Yxsk5eRI+gz7sxMfhcLZX2NS8PftCOiXr3S74/Q==",
|
|
180
180
|
bin: "claude"
|
|
181
181
|
},
|
|
182
182
|
"linux-arm64": {
|
|
183
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.
|
|
184
|
-
integrity: "sha512-
|
|
183
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.321.tgz",
|
|
184
|
+
integrity: "sha512-vdk9tON09SnsSh/6ULzYTBgsKRat6FyIaqnh4snYl3uy3qX0jpv5UuFUWgS5tvQ1ewI0qYF2k+D78El4gi7/iQ==",
|
|
185
185
|
bin: "claude"
|
|
186
186
|
},
|
|
187
187
|
"linux-arm64-musl": {
|
|
188
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.
|
|
189
|
-
integrity: "sha512
|
|
188
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.321.tgz",
|
|
189
|
+
integrity: "sha512-+8zFXMpJT2r+0j4E1v9BgRf+Qjtmmp4IG/3mDLT6jB6iA+9UvG9RLex+cqct09d+7xP2mDP8kL4cD1WtKUFX1w==",
|
|
190
190
|
bin: "claude"
|
|
191
191
|
},
|
|
192
192
|
"linux-x64": {
|
|
193
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.
|
|
194
|
-
integrity: "sha512
|
|
193
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.321.tgz",
|
|
194
|
+
integrity: "sha512-i/Y8Ps4q68SRwWB54yFXyItBwn5YHIOYY4R1gla6p4UwF/pM+xxrHycv+yecbC7oU30ShuBYKWN9mRIZ/BCMqw==",
|
|
195
195
|
bin: "claude"
|
|
196
196
|
},
|
|
197
197
|
"linux-x64-musl": {
|
|
198
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.
|
|
199
|
-
integrity: "sha512-
|
|
198
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.321.tgz",
|
|
199
|
+
integrity: "sha512-ils3IGsNKIDiURuOgSWorLsjMOlKcMdXQCQyaygEycdtPFItPoIBIYDVjoC1I0XV4tlfXXCHfUvNrs23g4HKNw==",
|
|
200
200
|
bin: "claude"
|
|
201
201
|
},
|
|
202
202
|
"win32-arm64": {
|
|
203
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.
|
|
204
|
-
integrity: "sha512-
|
|
203
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.321.tgz",
|
|
204
|
+
integrity: "sha512-v6/8ikUcYRSYhH5PSGcHq8L6+DKRq/M4I3BzFckis6kMh3degvSuUD1u3+M/oSJ/bcSOA8tXbUgTTwKrlOgvwQ==",
|
|
205
205
|
bin: "claude.exe"
|
|
206
206
|
},
|
|
207
207
|
"win32-x64": {
|
|
208
|
-
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.
|
|
209
|
-
integrity: "sha512-
|
|
208
|
+
url: "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.321.tgz",
|
|
209
|
+
integrity: "sha512-9i7ziCR+Wg47cRhYONHnUpTGxUgxfy/+J3N3/4F8YGqz7WLSNH3hpGRj6uJzNK4EMyEhFsca532uD2we0ZMckQ==",
|
|
210
210
|
bin: "claude.exe"
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -350,6 +350,15 @@ async function download(asset, dest, opts) {
|
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
+
function compareVersions(a, b) {
|
|
354
|
+
const pa = a.split(/[.-]/).map((n) => Number.parseInt(n, 10) || 0);
|
|
355
|
+
const pb = b.split(/[.-]/).map((n) => Number.parseInt(n, 10) || 0);
|
|
356
|
+
for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
|
|
357
|
+
const diff = (pa[i] ?? 0) - (pb[i] ?? 0);
|
|
358
|
+
if (diff !== 0) return diff;
|
|
359
|
+
}
|
|
360
|
+
return 0;
|
|
361
|
+
}
|
|
353
362
|
async function removeOldVersions(home, keep) {
|
|
354
363
|
let entries;
|
|
355
364
|
try {
|
|
@@ -360,6 +369,7 @@ async function removeOldVersions(home, keep) {
|
|
|
360
369
|
for (const entry of entries) {
|
|
361
370
|
if (!entry.isDirectory() || entry.name === keep || entry.name === "config") continue;
|
|
362
371
|
if (!/^\d+\.\d+\.\d+/.test(entry.name)) continue;
|
|
372
|
+
if (compareVersions(entry.name, keep) > 0) continue;
|
|
363
373
|
await fsp2.rm(path.join(home, entry.name), { recursive: true, force: true }).catch(() => {
|
|
364
374
|
});
|
|
365
375
|
}
|
|
@@ -3255,4 +3265,4 @@ export {
|
|
|
3255
3265
|
getDefaultThinkingLevel,
|
|
3256
3266
|
getSummaryModel
|
|
3257
3267
|
};
|
|
3258
|
-
//# sourceMappingURL=chunk-
|
|
3268
|
+
//# sourceMappingURL=chunk-7OUR44Y4.js.map
|