Luigit
repositories / will

will

owned by admin

src/shared/contracts.snapshot.ts.snapshot

Raw
exports[`snapshot: archive sidecar index shape 1`] = `
{
  "version": 1,
  "kind": "audit",
  "month": "2026-09",
  "segment": "seg-1",
  "count": 2,
  "firstId": "a",
  "lastId": "b",
  "firstTs": "2026-09-01T00:00:00.000Z",
  "lastTs": "2026-09-02T00:00:00.000Z",
  "sha256": "0000000000000000000000000000000000000000000000000000000000000000",
  "bytes": 123
}
`;

exports[`snapshot: audit event wire shape 1`] = `
{
  "id": "00000000-0000-4000-8000-000000000001",
  "ts": "2026-09-12T00:00:00.000Z",
  "kind": "tool_execution_start",
  "sessionId": "session-1",
  "provenance": {
    "revision": "rev-9",
    "worktreeDirty": false
  },
  "payload": {
    "tool": "bash",
    "args": {
      "command": "ls"
    }
  }
}
`;

exports[`snapshot: chat message wire shape 1`] = `
{
  "id": "tg-1",
  "chatId": -100,
  "messageId": 42,
  "direction": "in",
  "ts": "2026-09-12T00:00:00.000Z",
  "updateId": 7,
  "senderId": "5",
  "senderName": "friend",
  "replyToMessageId": 41,
  "triggerReason": "mention",
  "text": "hello",
  "media": [
    {
      "digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "type": "image/png",
      "size": 12
    }
  ]
}
`;

exports[`snapshot: chat view row shape (tombstoned, archived) 1`] = `
{
  "id": "tg-1",
  "chatId": -100,
  "messageId": 42,
  "direction": "in",
  "ts": "2026-09-12T00:00:00.000Z",
  "senderId": "5",
  "senderName": "friend",
  "replyToMessageId": 41,
  "triggerReason": "mention",
  "text": "hello",
  "media": [
    {
      "digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "type": "image/png",
      "size": 12
    }
  ],
  "hidden": false,
  "archived": true
}
`;

exports[`snapshot: deployment event mirror shape 1`] = `
{
  "id": "dep-1",
  "ts": "2026-09-12T00:00:00.000Z",
  "kind": "probation-failed",
  "revision": "rev-9",
  "detail": {
    "probe": "healthz",
    "misses": 3
  }
}
`;

exports[`snapshot: media analysis cache record shape 1`] = `
{
  "digest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "capability": "zai_analyze_media",
  "model": "glm-5.3-flash",
  "schemaVersion": 1,
  "result": {
    "answer": "a cat"
  },
  "createdAt": "2026-09-12T00:00:00.000Z"
}
`;

exports[`snapshot: service status shape 1`] = `
{
  "ready": true,
  "schemaVersion": 1,
  "lastAuditSeq": 9,
  "counts": {
    "audit": 1,
    "chat": 2,
    "deployments": 3,
    "media": 4
  },
  "dbSizeBytes": 1024,
  "storage": {
    "freeBytes": 1,
    "totalBytes": 2,
    "freePct": 50
  },
  "storageState": "ok"
}
`;

exports[`snapshot: timeline row shape (hot and archived) 1`] = `
{
  "seq": 3,
  "id": "00000000-0000-4000-8000-000000000001",
  "ts": "2026-09-12T00:00:00.000Z",
  "kind": "tool_execution_start",
  "sessionId": "session-1",
  "provenance": {
    "revision": "rev-9",
    "worktreeDirty": false
  },
  "payload": {
    "tool": "bash",
    "args": {
      "command": "ls"
    }
  },
  "archived": false
}
`;