Browser skill (#485)
* Add `BrowserTool` * add some logging * go with npm install -g * remove dep changes since the switch to npm install -g * tweak * tweak * tweak * tweak * tweak timeout * tweak * remove logs * skill investigation doc * wip * wip * tweak * lock agent-browser version * tweak * logs * logs * more logs * more debug stuff * try this * try this * try this * fix PATH * try this * tweak * tweak * tweak * update wiki entries * update wiki once again * lint fix --------- Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
6b18b6730b
commit
c0f6f9ef2a
@@ -0,0 +1,10 @@
|
||||
import semver from "semver";
|
||||
import packageJson from "../package.json" with { type: "json" };
|
||||
|
||||
export function getDevDependencyVersion(name: keyof typeof packageJson.devDependencies): string {
|
||||
const version = packageJson.devDependencies[name];
|
||||
if (!semver.valid(version)) {
|
||||
throw new Error(`dev dependency "${name}" must be a pinned version, got "${version}"`);
|
||||
}
|
||||
return version;
|
||||
}
|
||||
Reference in New Issue
Block a user