Remove external web automation provenance refs
This commit is contained in:
@@ -45,8 +45,6 @@ cd ~/.config/opencode/skills/web-automation/scripts
|
||||
node check-install.js
|
||||
```
|
||||
|
||||
`check-install.js` also prints the frozen reference repo + commit recorded in `reference-source.json`, so operators can confirm the canonical import source before using the skill.
|
||||
|
||||
If the check fails, stop and return:
|
||||
|
||||
"Missing dependency/config: web-automation requires `cloakbrowser` and `playwright-core` with CloakBrowser-based scripts. Run setup in this skill, then retry."
|
||||
|
||||
@@ -6,7 +6,6 @@ import { fileURLToPath } from "node:url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const referencePath = path.join(__dirname, "reference-source.json");
|
||||
|
||||
function fail(message, details) {
|
||||
const payload = { error: message };
|
||||
@@ -32,16 +31,8 @@ async function main() {
|
||||
fail("browse.ts is not configured for CloakBrowser.");
|
||||
}
|
||||
|
||||
const referenceSource = JSON.parse(fs.readFileSync(referencePath, "utf8"));
|
||||
if (!referenceSource.referenceRepo || !referenceSource.referenceCommit) {
|
||||
fail("Frozen reference metadata is missing from reference-source.json.");
|
||||
}
|
||||
|
||||
process.stdout.write("OK: cloakbrowser + playwright-core installed\n");
|
||||
process.stdout.write("OK: CloakBrowser integration detected in browse.ts\n");
|
||||
process.stdout.write(
|
||||
`OK: frozen reference ${referenceSource.referenceRepo}@${referenceSource.referenceCommit}\n`
|
||||
);
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"referenceRepo": "https://git.fiorinis.com/Home/stef-openclaw-skills",
|
||||
"referenceCommit": "b9878e938c1055e0284876aeb65157286d95f9d1",
|
||||
"importedFiles": [
|
||||
"auth.ts",
|
||||
"browse.ts",
|
||||
"check-install.js",
|
||||
"extract.js",
|
||||
"flow.ts",
|
||||
"package.json",
|
||||
"scan-local-app.ts",
|
||||
"scrape.ts",
|
||||
"test-full.ts",
|
||||
"test-minimal.ts",
|
||||
"test-profile.ts"
|
||||
],
|
||||
"excludedReferencePatterns": [
|
||||
"*-discover.js",
|
||||
"*-photos.js",
|
||||
"*-identifiers.js",
|
||||
"*-photo-data.js",
|
||||
"*-address.js",
|
||||
"*-photo-common.js",
|
||||
"*.test.mjs"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user