Versions 5 to 318
new file, 375 lines
3+
26+const safe = (value: unknown): value is number => Number.isSafeInteger(value) && Number(value) >= 0;
28+ if (!value || typeof value !== "object" || Array.isArray(value)) throw Error("invalid sequence node");
30+ if (Object.keys(row).length !== 10 || !safe(row.id) || row.id >= 2 ** 32 || typeof row.text !== "string")
33+ if (row[name] !== null && (!safe(row[name]) || Number(row[name]) >= 2 ** 32 || row[name] === row.id))
63+ if (!value || value.id !== key || value.parent !== id) throw Error("invalid sequence child identity");
72+ node.visible !== (node.deletions === 0 ? 1 : 0) + (left?.visible ?? 0) + (right?.visible ?? 0) ||
73+ node.fileStarts !== (node.text.startsWith("root:") ? 1 : 0) + (left?.fileStarts ?? 0) + (right?.fileStarts ?? 0)
139+ if (operations.length < 1 || operations.length > 16) throw Error("invalid sequence operation batch");
183+ fileStarts: (node.text.startsWith("root:") ? 1 : 0) + fileStarts(node.left) + fileStarts(node.right),
358+ if (at >= from && at < to && (!visibleOnly || node.deletions === 0)) yield { id: node.id, text: node.text };
363+ *values(state: SequenceState, visibleOnly = true): IterableIterator<{ id: number; text: string }> {
365+ const visit = function* (seq: ProjectionSequence, id: Page): IterableIterator<{ id: number; text: string }> {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 5 318 src/engine/experimental/projection-sequence.ts --json
- JSON
- /christopher/abso-core/compare/5..318?file=src%2Fengine%2Fexperimental%2Fprojection-sequence.ts&format=json