Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - System prompt injection for routing - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
16 lines
403 B
TypeScript
16 lines
403 B
TypeScript
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)
|
|
}
|