Vendor opencode source for docker build

This commit is contained in:
southseact-3d
2026-02-07 20:54:46 +00:00
parent b30ff1cfa4
commit efda260214
3195 changed files with 387717 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
import { Storage } from "../src/core/storage"
// read share id from args
const args = process.argv.slice(2)
if (args.length !== 1) {
console.error("Usage: bun script/scrap.ts <shareID>")
process.exit(1)
}
const shareID = args[0]
await Storage.remove(["share", shareID])
const list = await Storage.list({ prefix: ["share_data", shareID] })
for (const item of list) {
await Storage.remove(item)
}