// SQLite-backed Durable Object (one instance, name "registry") holding every listing submission. Logic in registry.js.
import { DurableObject } from 'cloudflare:workers';
import { RegistryCore } from './registry.js';
export class ListingRegistry extends DurableObject {
constructor(ctx, env) { super(ctx, env); this.core = new RegistryCore(ctx.storage); }
create(arg) { return this.core.create(arg || {}); }
confirm(arg) { return this.core.confirm(arg || {}); }
cancel(arg) { return this.core.cancel(arg || {}); }
get(arg) { return this.core.get(arg || {}); }
list(arg) { return this.core.list(arg || {}); }
setStatus(arg) { return this.core.setStatus(arg || {}); }
}
agentgate-source: code mirror on Cloudflare Pages. All repos