@gaialabs/core 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/client/client.d.ts +1 -0
  2. package/client/client.js +5 -0
  3. package/client/default.d.ts +1 -0
  4. package/client/default.js +5 -0
  5. package/client/edge.d.ts +1 -0
  6. package/client/edge.js +373 -0
  7. package/client/index-browser.js +399 -0
  8. package/client/index.d.ts +34222 -0
  9. package/client/index.js +373 -0
  10. package/client/package.json +144 -0
  11. package/client/query_compiler_fast_bg.js +2 -0
  12. package/client/query_compiler_fast_bg.wasm +0 -0
  13. package/client/query_compiler_fast_bg.wasm-base64.js +2 -0
  14. package/client/query_engine-windows.dll.node +0 -0
  15. package/client/query_engine_bg.js +2 -0
  16. package/client/query_engine_bg.wasm +0 -0
  17. package/client/runtime/client.d.ts +3358 -0
  18. package/client/runtime/client.js +86 -0
  19. package/client/runtime/edge-esm.js +35 -0
  20. package/client/runtime/edge.js +35 -0
  21. package/client/runtime/index-browser.d.ts +90 -0
  22. package/client/runtime/index-browser.js +6 -0
  23. package/client/runtime/library.d.ts +3982 -0
  24. package/client/runtime/library.js +147 -0
  25. package/client/runtime/react-native.js +84 -0
  26. package/client/runtime/wasm-compiler-edge.js +76 -0
  27. package/client/runtime/wasm-engine-edge.js +38 -0
  28. package/client/schema.prisma +404 -0
  29. package/client/wasm-edge-light-loader.mjs +5 -0
  30. package/client/wasm-worker-loader.mjs +5 -0
  31. package/client/wasm.d.ts +1 -0
  32. package/client/wasm.js +421 -0
  33. package/dist/index.cjs +1228 -427
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +1038 -348
  36. package/dist/index.d.cts.map +1 -0
  37. package/dist/index.d.mts +1038 -348
  38. package/dist/index.d.mts.map +1 -0
  39. package/dist/index.mjs +1225 -424
  40. package/dist/index.mjs.map +1 -1
  41. package/package.json +16 -1
  42. package/prisma.cjs +1 -0
  43. package/prisma.d.ts +1 -0
  44. package/prisma.mjs +9 -0
@@ -0,0 +1,404 @@
1
+ // This is your Prisma schema file,
2
+ // learn more about it in the docs: https://pris.ly/d/prisma-schema
3
+
4
+ // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
5
+ // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
6
+
7
+ generator client {
8
+ provider = "prisma-client-js"
9
+ output = "../client"
10
+ }
11
+
12
+ datasource db {
13
+ provider = "postgresql"
14
+ //url = env("DATABASE_URL")
15
+ }
16
+
17
+ model Platform {
18
+ id String @id @default(cuid())
19
+ name String @unique
20
+ meta Json?
21
+
22
+ createdAt DateTime @default(now())
23
+ updatedAt DateTime @updatedAt
24
+
25
+ branches PlatformBranch[]
26
+ games Game[]
27
+ }
28
+
29
+ model PlatformBranch {
30
+ id String @id @default(cuid())
31
+ name String?
32
+ version Int?
33
+ isActive Boolean?
34
+ notes String[]
35
+
36
+ platform Platform @relation(fields: [platformId], references: [id])
37
+ platformId String
38
+
39
+ addressingModes Json?
40
+ vectors Json?
41
+ types Json?
42
+ headers Json?
43
+
44
+ createdAt DateTime @default(now())
45
+ updatedAt DateTime @updatedAt
46
+
47
+ gameBranches GameRomBranch[]
48
+
49
+ @@unique([platformId, name])
50
+ @@unique([platformId, version])
51
+ @@unique([platformId, isActive])
52
+ @@index([platformId, name])
53
+ @@index([platformId, version])
54
+ @@index([platformId, isActive])
55
+ @@index([platformId])
56
+ }
57
+
58
+ model Developer {
59
+ id String @id @default(cuid())
60
+ name String @unique
61
+ meta Json?
62
+
63
+ games GameDeveloper[]
64
+
65
+ createdAt DateTime @default(now())
66
+ updatedAt DateTime @updatedAt
67
+ }
68
+
69
+ model Region {
70
+ id String @id @default(cuid())
71
+ name String @unique
72
+ meta Json?
73
+
74
+ createdAt DateTime @default(now())
75
+ updatedAt DateTime @updatedAt
76
+
77
+ roms GameRom[]
78
+ }
79
+
80
+ model Game {
81
+ id String @id @default(cuid())
82
+ name String
83
+ meta Json?
84
+
85
+ platform Platform @relation(fields: [platformId], references: [id])
86
+ platformId String
87
+
88
+ createdAt DateTime @default(now())
89
+ updatedAt DateTime @updatedAt
90
+
91
+ gameRoms GameRom[]
92
+ baseRoms BaseRom[]
93
+ projects Project[]
94
+ developers GameDeveloper[]
95
+
96
+ @@unique([platformId, name])
97
+ @@index([platformId])
98
+ }
99
+
100
+ model GameDeveloper {
101
+ id String @id @default(cuid())
102
+
103
+ game Game? @relation(fields: [gameId], references: [id])
104
+ gameId String?
105
+
106
+ developer Developer? @relation(fields: [developerId], references: [id])
107
+ developerId String?
108
+
109
+ createdAt DateTime @default(now())
110
+ updatedAt DateTime @updatedAt
111
+
112
+ @@index([gameId])
113
+ @@index([developerId])
114
+ }
115
+
116
+ model GameRom {
117
+ id String @id @default(cuid())
118
+ crc Int @unique
119
+ meta Json?
120
+
121
+ game Game @relation(fields: [gameId], references: [id])
122
+ gameId String
123
+
124
+ region Region? @relation(fields: [regionId], references: [id])
125
+ regionId String?
126
+
127
+ createdAt DateTime @default(now())
128
+ updatedAt DateTime @updatedAt
129
+
130
+ branches GameRomBranch[]
131
+ baseRoms BaseRom[]
132
+ artifacts GameRomArtifact[]
133
+
134
+ @@index([gameId])
135
+ @@index([regionId])
136
+ }
137
+
138
+ model GameRomBranch {
139
+ id String @id @default(cuid())
140
+ name String?
141
+ version Int?
142
+ isActive Boolean?
143
+ notes String[]
144
+
145
+ gameRom GameRom @relation(fields: [gameRomId], references: [id])
146
+ gameRomId String
147
+
148
+ platformBranch PlatformBranch @relation(fields: [platformBranchId], references: [id])
149
+ platformBranchId String
150
+
151
+ coplib Json?
152
+ config Json?
153
+ files Json?
154
+ blocks Json?
155
+ labels Json?
156
+ rewrites Json?
157
+ mnemonics Json?
158
+ overrides Json?
159
+ transforms Json?
160
+ strings Json?
161
+ structs Json?
162
+ groups Json?
163
+ fileTypes Json?
164
+
165
+ createdAt DateTime @default(now())
166
+ updatedAt DateTime @updatedAt
167
+
168
+ baseBranches BaseRomBranch[]
169
+ artifacts GameRomBranchArtifact[]
170
+
171
+ @@unique([gameRomId, name])
172
+ @@unique([gameRomId, version])
173
+ @@unique([gameRomId, isActive])
174
+ @@index([gameRomId, name])
175
+ @@index([gameRomId, version])
176
+ @@index([gameRomId, isActive])
177
+ @@index([gameRomId])
178
+ @@index([platformBranchId])
179
+ }
180
+
181
+ model GameRomArtifact {
182
+ id String @id @default(cuid())
183
+ name String
184
+ type String
185
+ version Int?
186
+ crc Int?
187
+ meta Json?
188
+
189
+ gameRom GameRom @relation(fields: [gameRomId], references: [id])
190
+ gameRomId String
191
+
192
+ isText Boolean @default(false)
193
+ text String?
194
+ data Bytes?
195
+
196
+ branchArtifacts GameRomBranchArtifact[]
197
+
198
+ createdAt DateTime @default(now())
199
+ updatedAt DateTime @updatedAt
200
+
201
+ @@unique([gameRomId, name, version])
202
+ @@index([gameRomId, crc])
203
+ @@index([gameRomId])
204
+ @@index([crc])
205
+ }
206
+
207
+ model GameRomBranchArtifact {
208
+ id String @id @default(cuid())
209
+
210
+ branch GameRomBranch @relation(fields: [branchId], references: [id])
211
+ branchId String
212
+
213
+ artifact GameRomArtifact @relation(fields: [artifactId], references: [id])
214
+ artifactId String
215
+
216
+ @@unique([branchId, artifactId])
217
+ @@index([branchId])
218
+ @@index([artifactId])
219
+ }
220
+
221
+ model BaseRom {
222
+ id String @id @default(cuid())
223
+ name String @unique
224
+
225
+ game Game @relation(fields: [gameId], references: [id])
226
+ gameId String
227
+
228
+ gameRom GameRom @relation(fields: [gameRomId], references: [id])
229
+ gameRomId String
230
+
231
+ createdAt DateTime @default(now())
232
+ updatedAt DateTime @updatedAt
233
+
234
+ branches BaseRomBranch[]
235
+ files BaseRomFile[]
236
+ projects Project[]
237
+
238
+ @@unique([gameId, name])
239
+ @@index([gameId, name])
240
+ @@index([gameId])
241
+ @@index([gameRomId])
242
+ }
243
+
244
+ model BaseRomBranch {
245
+ id String @id @default(cuid())
246
+ name String?
247
+ version Int?
248
+ isActive Boolean?
249
+ notes String[]
250
+
251
+ baseRom BaseRom @relation(fields: [baseRomId], references: [id])
252
+ baseRomId String
253
+
254
+ gameRomBranch GameRomBranch @relation(fields: [gameRomBranchId], references: [id])
255
+ gameRomBranchId String
256
+
257
+ projectBranches ProjectBranch[]
258
+
259
+ files BaseRomBranchFile[]
260
+
261
+ createdAt DateTime @default(now())
262
+ updatedAt DateTime @updatedAt
263
+
264
+ @@unique([baseRomId, name])
265
+ @@unique([baseRomId, version])
266
+ @@unique([baseRomId, isActive])
267
+ @@index([baseRomId, name])
268
+ @@index([baseRomId, version])
269
+ @@index([baseRomId, isActive])
270
+ @@index([baseRomId])
271
+ @@index([gameRomBranchId])
272
+ }
273
+
274
+ model BaseRomFile {
275
+ id String @id @default(cuid())
276
+ name String
277
+ type String
278
+ version Int?
279
+ crc Int?
280
+ meta Json?
281
+
282
+ baseRom BaseRom @relation(fields: [baseRomId], references: [id])
283
+ baseRomId String
284
+
285
+ isText Boolean @default(false)
286
+ text String?
287
+ data Bytes?
288
+
289
+ branchFiles BaseRomBranchFile[]
290
+
291
+ createdAt DateTime @default(now())
292
+ updatedAt DateTime @updatedAt
293
+
294
+ @@unique([baseRomId, name, version])
295
+ @@index([baseRomId, crc])
296
+ @@index([baseRomId])
297
+ @@index([crc])
298
+ }
299
+
300
+ model BaseRomBranchFile {
301
+ id String @id @default(cuid())
302
+
303
+ branch BaseRomBranch @relation(fields: [branchId], references: [id])
304
+ branchId String
305
+
306
+ file BaseRomFile @relation(fields: [fileId], references: [id])
307
+ fileId String
308
+
309
+ @@unique([branchId, fileId])
310
+ @@index([branchId])
311
+ @@index([fileId])
312
+ }
313
+
314
+ model Project {
315
+ id String @id @default(cuid())
316
+ name String @unique
317
+ meta Json?
318
+
319
+ game Game @relation(fields: [gameId], references: [id])
320
+ gameId String
321
+
322
+ baseRom BaseRom @relation(fields: [baseRomId], references: [id])
323
+ baseRomId String
324
+
325
+ createdAt DateTime @default(now())
326
+ updatedAt DateTime @updatedAt
327
+
328
+ files ProjectFile[]
329
+ branches ProjectBranch[]
330
+
331
+ @@index([name])
332
+ @@index([gameId])
333
+ @@index([baseRomId])
334
+ }
335
+
336
+ model ProjectBranch {
337
+ id String @id @default(cuid())
338
+ name String?
339
+ version Int?
340
+ isActive Boolean?
341
+ notes String[]
342
+
343
+ project Project @relation(fields: [projectId], references: [id])
344
+ projectId String
345
+
346
+ baseRomBranch BaseRomBranch @relation(fields: [baseRomBranchId], references: [id])
347
+ baseRomBranchId String
348
+
349
+ modules Json[]
350
+ files ProjectBranchFile[]
351
+
352
+ createdAt DateTime @default(now())
353
+ updatedAt DateTime @updatedAt
354
+
355
+ @@unique([projectId, name])
356
+ @@unique([projectId, version])
357
+ @@unique([projectId, isActive])
358
+ @@index([projectId, name])
359
+ @@index([projectId, version])
360
+ @@index([projectId, isActive])
361
+ @@index([projectId])
362
+ @@index([baseRomBranchId])
363
+ }
364
+
365
+ model ProjectFile {
366
+ id String @id @default(cuid())
367
+ name String
368
+ type String
369
+ module String?
370
+ version Int?
371
+ crc Int?
372
+ meta Json?
373
+
374
+ project Project @relation(fields: [projectId], references: [id])
375
+ projectId String
376
+
377
+ isText Boolean @default(false)
378
+ text String?
379
+ data Bytes?
380
+
381
+ branchFiles ProjectBranchFile[]
382
+
383
+ createdAt DateTime @default(now())
384
+ updatedAt DateTime @updatedAt
385
+
386
+ @@unique([projectId, module, name, version])
387
+ @@unique([projectId, module, crc])
388
+ @@index([projectId, crc])
389
+ @@index([projectId])
390
+ }
391
+
392
+ model ProjectBranchFile {
393
+ id String @id @default(cuid())
394
+
395
+ branch ProjectBranch @relation(fields: [branchId], references: [id])
396
+ branchId String
397
+
398
+ file ProjectFile @relation(fields: [fileId], references: [id])
399
+ fileId String
400
+
401
+ @@unique([branchId, fileId])
402
+ @@index([branchId])
403
+ @@index([fileId])
404
+ }
@@ -0,0 +1,5 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ export default import('./query_compiler_fast_bg.wasm?module')
@@ -0,0 +1,5 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ export default import('./query_compiler_fast_bg.wasm')
@@ -0,0 +1 @@
1
+ export * from "./default"