GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/enterprise/test-debug.ts at dev · subtleGradient/opencode Expand file tree/ Copy pathtest-debug.tsMore file actions 40 lines (31 loc) · 1.12 KB / Copy pathtest-debug.tsFile metadata and controls40 lines (31 loc) · 1.12 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 import { Share } from "./src/core/share" import { Storage } from "./src/core/storage" async function test() { const shareInfo = await Share.create({ sessionID: "test-debug-" + Date.now() }) const batch1: Share.Data[] = [ { type: "part", data: { id: "part1", sessionID: "session1", messageID: "msg1", type: "text", text: "Hello" } }, ] const batch2: Share.Data[] = [ { type: "part", data: { id: "part1", sessionID: "session1", messageID: "msg1", type: "text", text: "Hello Updated" }, }, ] await Share.sync({ share: { id: shareInfo.id, secret: shareInfo.secret }, data: batch1, }) await Share.sync({ share: { id: shareInfo.id, secret: shareInfo.secret }, data: batch2, }) const events = await Storage.list({ prefix: ["share_event", shareInfo.id] }) console.log("Events (raw):", events) console.log("Events (reversed):", events.toReversed()) for (const event of events.toReversed()) { const data = await Storage.read(event) console.log("Event data (reversed order):", event, data) } await Share.remove({ id: shareInfo.id, secret: shareInfo.secret }) } test() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |