Switch to prefixed IDs and tell agents which Mac a message came from

This commit is contained in:
Ian Gulliver
2026-10-20 23:15:19 -07:00
parent f1296ba13d
commit 59bf17189d
42 changed files with 770 additions and 145 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
"time"
"g.fc.run/ai/byre/internal/api"
"g.fc.run/ai/byre/internal/ids"
)
const MaxBlobBytes = 5 << 20
@@ -22,7 +23,7 @@ var ImageTypes = map[string]bool{
func (s *Store) CreateBlob(ctx context.Context, contentType string, data []byte, actor string) (api.Blob, error) {
b := api.Blob{
Id: NewID(),
Id: ids.New(ids.Blob),
ContentType: contentType,
CreatedBy: actor,
CreatedAt: time.Now().UTC(),