admin unshare
This commit is contained in:
@@ -9,7 +9,8 @@
|
|||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"build:cloudflare": "OPENCODE_DEPLOYMENT_TARGET=cloudflare vite build",
|
"build:cloudflare": "OPENCODE_DEPLOYMENT_TARGET=cloudflare vite build",
|
||||||
"start": "vite start"
|
"start": "vite start",
|
||||||
|
"shell-prod": "sst shell --target Teams --stage production"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@opencode-ai/util": "workspace:*",
|
"@opencode-ai/util": "workspace:*",
|
||||||
|
|||||||
15
packages/enterprise/script/scrap.ts
Normal file
15
packages/enterprise/script/scrap.ts
Normal 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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user