@keystrokehq/cli 0.1.59 → 0.1.60
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/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/dist/skills-bundle/_AGENTS.md +12 -7
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -6574,22 +6574,21 @@ function readPackageJson(root) {
|
|
|
6574
6574
|
return;
|
|
6575
6575
|
}
|
|
6576
6576
|
}
|
|
6577
|
-
/**
|
|
6578
|
-
function
|
|
6577
|
+
/** Local/workspace specs are left alone; everything else (ranges and exact pins) updates to latest. */
|
|
6578
|
+
function isLocalSdkSpec(spec) {
|
|
6579
6579
|
if (!spec) return true;
|
|
6580
6580
|
const trimmed = spec.trim();
|
|
6581
|
-
|
|
6582
|
-
return /^\d+\.\d+\.\d+(-[\w.]+)?(\+[\w.]+)?$/.test(trimmed);
|
|
6581
|
+
return trimmed.startsWith("workspace:") || trimmed.startsWith("link:") || trimmed.startsWith("file:");
|
|
6583
6582
|
}
|
|
6584
|
-
function
|
|
6583
|
+
function listUpdatableKeystrokePackages(root) {
|
|
6585
6584
|
const pkg = readPackageJson(root);
|
|
6586
6585
|
if (!pkg) return [];
|
|
6587
6586
|
const packages = [];
|
|
6588
|
-
for (const [name, spec] of Object.entries(pkg.dependencies ?? {})) if (name.startsWith(KEYSTROKE_SCOPE) && !
|
|
6587
|
+
for (const [name, spec] of Object.entries(pkg.dependencies ?? {})) if (name.startsWith(KEYSTROKE_SCOPE) && !isLocalSdkSpec(spec)) packages.push({
|
|
6589
6588
|
name,
|
|
6590
6589
|
dev: false
|
|
6591
6590
|
});
|
|
6592
|
-
for (const [name, spec] of Object.entries(pkg.devDependencies ?? {})) if (name.startsWith(KEYSTROKE_SCOPE) && !
|
|
6591
|
+
for (const [name, spec] of Object.entries(pkg.devDependencies ?? {})) if (name.startsWith(KEYSTROKE_SCOPE) && !isLocalSdkSpec(spec)) packages.push({
|
|
6593
6592
|
name,
|
|
6594
6593
|
dev: true
|
|
6595
6594
|
});
|
|
@@ -6618,12 +6617,12 @@ function warnReleaseAgeBlock(packageName) {
|
|
|
6618
6617
|
process.stderr.write(`Warning: ${packageName}@latest is held back by your minimum-release-age setting; continuing with the currently installed version.\n`);
|
|
6619
6618
|
}
|
|
6620
6619
|
/**
|
|
6621
|
-
* Keep
|
|
6620
|
+
* Keep @keystrokehq/* project dependencies on latest before build/deploy.
|
|
6622
6621
|
* The package manager no-ops when already current; minimum-release-age failures warn only.
|
|
6623
6622
|
*/
|
|
6624
6623
|
function ensureSdkCurrent(root) {
|
|
6625
6624
|
if (shouldSkip()) return;
|
|
6626
|
-
const packages =
|
|
6625
|
+
const packages = listUpdatableKeystrokePackages(root);
|
|
6627
6626
|
if (packages.length === 0) return;
|
|
6628
6627
|
const manager = detectManagerFromLockfile(root) ?? detectPackageManager();
|
|
6629
6628
|
const token = resolveGithubPackagesToken();
|