@pinagent/react-native 0.1.1 → 0.1.4

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.
@@ -0,0 +1,546 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "7e6c664b-161c-4262-b0d6-02b698b0bf7d",
5
+ "prevId": "a2bf28e8-528a-4cb7-b4b4-3b103a32aed9",
6
+ "tables": {
7
+ "active_runs": {
8
+ "name": "active_runs",
9
+ "columns": {
10
+ "conversation_id": {
11
+ "name": "conversation_id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "started_at": {
18
+ "name": "started_at",
19
+ "type": "integer",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "current_turn": {
25
+ "name": "current_turn",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "awaiting_ask_id": {
32
+ "name": "awaiting_ask_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "last_error": {
39
+ "name": "last_error",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ }
45
+ },
46
+ "indexes": {},
47
+ "foreignKeys": {
48
+ "active_runs_conversation_id_conversations_id_fk": {
49
+ "name": "active_runs_conversation_id_conversations_id_fk",
50
+ "tableFrom": "active_runs",
51
+ "tableTo": "conversations",
52
+ "columnsFrom": [
53
+ "conversation_id"
54
+ ],
55
+ "columnsTo": [
56
+ "id"
57
+ ],
58
+ "onDelete": "cascade",
59
+ "onUpdate": "no action"
60
+ }
61
+ },
62
+ "compositePrimaryKeys": {},
63
+ "uniqueConstraints": {},
64
+ "checkConstraints": {}
65
+ },
66
+ "audit_events": {
67
+ "name": "audit_events",
68
+ "columns": {
69
+ "id": {
70
+ "name": "id",
71
+ "type": "integer",
72
+ "primaryKey": true,
73
+ "notNull": true,
74
+ "autoincrement": true
75
+ },
76
+ "conversation_id": {
77
+ "name": "conversation_id",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": false,
81
+ "autoincrement": false
82
+ },
83
+ "actor": {
84
+ "name": "actor",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "autoincrement": false
89
+ },
90
+ "action": {
91
+ "name": "action",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "autoincrement": false
96
+ },
97
+ "payload": {
98
+ "name": "payload",
99
+ "type": "text",
100
+ "primaryKey": false,
101
+ "notNull": true,
102
+ "autoincrement": false,
103
+ "default": "('{}')"
104
+ },
105
+ "created_at": {
106
+ "name": "created_at",
107
+ "type": "integer",
108
+ "primaryKey": false,
109
+ "notNull": true,
110
+ "autoincrement": false,
111
+ "default": "(unixepoch() * 1000)"
112
+ }
113
+ },
114
+ "indexes": {},
115
+ "foreignKeys": {},
116
+ "compositePrimaryKeys": {},
117
+ "uniqueConstraints": {},
118
+ "checkConstraints": {}
119
+ },
120
+ "conversations": {
121
+ "name": "conversations",
122
+ "columns": {
123
+ "id": {
124
+ "name": "id",
125
+ "type": "text",
126
+ "primaryKey": true,
127
+ "notNull": true,
128
+ "autoincrement": false
129
+ },
130
+ "comment": {
131
+ "name": "comment",
132
+ "type": "text",
133
+ "primaryKey": false,
134
+ "notNull": true,
135
+ "autoincrement": false
136
+ },
137
+ "agent_session_id": {
138
+ "name": "agent_session_id",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": false,
142
+ "autoincrement": false
143
+ },
144
+ "status": {
145
+ "name": "status",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true,
149
+ "autoincrement": false,
150
+ "default": "'pending'"
151
+ },
152
+ "note": {
153
+ "name": "note",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false,
157
+ "autoincrement": false
158
+ },
159
+ "commit_sha": {
160
+ "name": "commit_sha",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": false,
164
+ "autoincrement": false
165
+ },
166
+ "branch": {
167
+ "name": "branch",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": false,
171
+ "autoincrement": false
172
+ },
173
+ "worktree_path": {
174
+ "name": "worktree_path",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": false,
178
+ "autoincrement": false
179
+ },
180
+ "worktree_state": {
181
+ "name": "worktree_state",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false,
186
+ "default": "'none'"
187
+ },
188
+ "title": {
189
+ "name": "title",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": false,
193
+ "autoincrement": false
194
+ },
195
+ "archived": {
196
+ "name": "archived",
197
+ "type": "integer",
198
+ "primaryKey": false,
199
+ "notNull": true,
200
+ "autoincrement": false,
201
+ "default": false
202
+ },
203
+ "created_at": {
204
+ "name": "created_at",
205
+ "type": "integer",
206
+ "primaryKey": false,
207
+ "notNull": true,
208
+ "autoincrement": false,
209
+ "default": "(unixepoch() * 1000)"
210
+ },
211
+ "updated_at": {
212
+ "name": "updated_at",
213
+ "type": "integer",
214
+ "primaryKey": false,
215
+ "notNull": true,
216
+ "autoincrement": false,
217
+ "default": "(unixepoch() * 1000)"
218
+ },
219
+ "resolved_at": {
220
+ "name": "resolved_at",
221
+ "type": "integer",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false
225
+ }
226
+ },
227
+ "indexes": {},
228
+ "foreignKeys": {},
229
+ "compositePrimaryKeys": {},
230
+ "uniqueConstraints": {},
231
+ "checkConstraints": {}
232
+ },
233
+ "messages": {
234
+ "name": "messages",
235
+ "columns": {
236
+ "id": {
237
+ "name": "id",
238
+ "type": "integer",
239
+ "primaryKey": true,
240
+ "notNull": true,
241
+ "autoincrement": true
242
+ },
243
+ "conversation_id": {
244
+ "name": "conversation_id",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": true,
248
+ "autoincrement": false
249
+ },
250
+ "turn": {
251
+ "name": "turn",
252
+ "type": "integer",
253
+ "primaryKey": false,
254
+ "notNull": true,
255
+ "autoincrement": false
256
+ },
257
+ "role": {
258
+ "name": "role",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "autoincrement": false
263
+ },
264
+ "content": {
265
+ "name": "content",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": true,
269
+ "autoincrement": false
270
+ },
271
+ "created_at": {
272
+ "name": "created_at",
273
+ "type": "integer",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "autoincrement": false,
277
+ "default": "(unixepoch() * 1000)"
278
+ }
279
+ },
280
+ "indexes": {},
281
+ "foreignKeys": {
282
+ "messages_conversation_id_conversations_id_fk": {
283
+ "name": "messages_conversation_id_conversations_id_fk",
284
+ "tableFrom": "messages",
285
+ "tableTo": "conversations",
286
+ "columnsFrom": [
287
+ "conversation_id"
288
+ ],
289
+ "columnsTo": [
290
+ "id"
291
+ ],
292
+ "onDelete": "cascade",
293
+ "onUpdate": "no action"
294
+ }
295
+ },
296
+ "compositePrimaryKeys": {},
297
+ "uniqueConstraints": {},
298
+ "checkConstraints": {}
299
+ },
300
+ "pull_requests": {
301
+ "name": "pull_requests",
302
+ "columns": {
303
+ "id": {
304
+ "name": "id",
305
+ "type": "integer",
306
+ "primaryKey": true,
307
+ "notNull": true,
308
+ "autoincrement": true
309
+ },
310
+ "number": {
311
+ "name": "number",
312
+ "type": "integer",
313
+ "primaryKey": false,
314
+ "notNull": true,
315
+ "autoincrement": false
316
+ },
317
+ "url": {
318
+ "name": "url",
319
+ "type": "text",
320
+ "primaryKey": false,
321
+ "notNull": true,
322
+ "autoincrement": false
323
+ },
324
+ "branch": {
325
+ "name": "branch",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "autoincrement": false
330
+ },
331
+ "base_branch": {
332
+ "name": "base_branch",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "autoincrement": false
337
+ },
338
+ "title": {
339
+ "name": "title",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "autoincrement": false
344
+ },
345
+ "body": {
346
+ "name": "body",
347
+ "type": "text",
348
+ "primaryKey": false,
349
+ "notNull": true,
350
+ "autoincrement": false,
351
+ "default": "''"
352
+ },
353
+ "state": {
354
+ "name": "state",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": true,
358
+ "autoincrement": false,
359
+ "default": "'open'"
360
+ },
361
+ "conversation_ids": {
362
+ "name": "conversation_ids",
363
+ "type": "text",
364
+ "primaryKey": false,
365
+ "notNull": true,
366
+ "autoincrement": false,
367
+ "default": "('[]')"
368
+ },
369
+ "created_at": {
370
+ "name": "created_at",
371
+ "type": "integer",
372
+ "primaryKey": false,
373
+ "notNull": true,
374
+ "autoincrement": false,
375
+ "default": "(unixepoch() * 1000)"
376
+ },
377
+ "updated_at": {
378
+ "name": "updated_at",
379
+ "type": "integer",
380
+ "primaryKey": false,
381
+ "notNull": true,
382
+ "autoincrement": false,
383
+ "default": "(unixepoch() * 1000)"
384
+ }
385
+ },
386
+ "indexes": {},
387
+ "foreignKeys": {},
388
+ "compositePrimaryKeys": {},
389
+ "uniqueConstraints": {},
390
+ "checkConstraints": {}
391
+ },
392
+ "widget_anchors": {
393
+ "name": "widget_anchors",
394
+ "columns": {
395
+ "conversation_id": {
396
+ "name": "conversation_id",
397
+ "type": "text",
398
+ "primaryKey": true,
399
+ "notNull": true,
400
+ "autoincrement": false
401
+ },
402
+ "url": {
403
+ "name": "url",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "autoincrement": false
408
+ },
409
+ "file": {
410
+ "name": "file",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false,
414
+ "autoincrement": false
415
+ },
416
+ "line": {
417
+ "name": "line",
418
+ "type": "integer",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "col": {
424
+ "name": "col",
425
+ "type": "integer",
426
+ "primaryKey": false,
427
+ "notNull": false,
428
+ "autoincrement": false
429
+ },
430
+ "selector": {
431
+ "name": "selector",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true,
435
+ "autoincrement": false
436
+ },
437
+ "click_x": {
438
+ "name": "click_x",
439
+ "type": "integer",
440
+ "primaryKey": false,
441
+ "notNull": false,
442
+ "autoincrement": false
443
+ },
444
+ "click_y": {
445
+ "name": "click_y",
446
+ "type": "integer",
447
+ "primaryKey": false,
448
+ "notNull": false,
449
+ "autoincrement": false
450
+ },
451
+ "viewport_w": {
452
+ "name": "viewport_w",
453
+ "type": "integer",
454
+ "primaryKey": false,
455
+ "notNull": false,
456
+ "autoincrement": false
457
+ },
458
+ "viewport_h": {
459
+ "name": "viewport_h",
460
+ "type": "integer",
461
+ "primaryKey": false,
462
+ "notNull": false,
463
+ "autoincrement": false
464
+ },
465
+ "user_agent": {
466
+ "name": "user_agent",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": false,
470
+ "autoincrement": false
471
+ },
472
+ "component": {
473
+ "name": "component",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": false,
477
+ "autoincrement": false
478
+ },
479
+ "component_path": {
480
+ "name": "component_path",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": false,
484
+ "autoincrement": false
485
+ },
486
+ "instance_index": {
487
+ "name": "instance_index",
488
+ "type": "integer",
489
+ "primaryKey": false,
490
+ "notNull": false,
491
+ "autoincrement": false
492
+ },
493
+ "instance_total": {
494
+ "name": "instance_total",
495
+ "type": "integer",
496
+ "primaryKey": false,
497
+ "notNull": false,
498
+ "autoincrement": false
499
+ },
500
+ "instance_fingerprint": {
501
+ "name": "instance_fingerprint",
502
+ "type": "text",
503
+ "primaryKey": false,
504
+ "notNull": false,
505
+ "autoincrement": false
506
+ },
507
+ "additional_anchors": {
508
+ "name": "additional_anchors",
509
+ "type": "text",
510
+ "primaryKey": false,
511
+ "notNull": false,
512
+ "autoincrement": false
513
+ }
514
+ },
515
+ "indexes": {},
516
+ "foreignKeys": {
517
+ "widget_anchors_conversation_id_conversations_id_fk": {
518
+ "name": "widget_anchors_conversation_id_conversations_id_fk",
519
+ "tableFrom": "widget_anchors",
520
+ "tableTo": "conversations",
521
+ "columnsFrom": [
522
+ "conversation_id"
523
+ ],
524
+ "columnsTo": [
525
+ "id"
526
+ ],
527
+ "onDelete": "cascade",
528
+ "onUpdate": "no action"
529
+ }
530
+ },
531
+ "compositePrimaryKeys": {},
532
+ "uniqueConstraints": {},
533
+ "checkConstraints": {}
534
+ }
535
+ },
536
+ "views": {},
537
+ "enums": {},
538
+ "_meta": {
539
+ "schemas": {},
540
+ "tables": {},
541
+ "columns": {}
542
+ },
543
+ "internal": {
544
+ "indexes": {}
545
+ }
546
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1779730339738,
9
+ "tag": "0000_fast_swarm",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1779738163032,
16
+ "tag": "0001_lazy_jimmy_woo",
17
+ "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "6",
22
+ "when": 1779751883198,
23
+ "tag": "0002_cool_thena",
24
+ "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "6",
29
+ "when": 1779903993486,
30
+ "tag": "0003_flowery_zodiak",
31
+ "breakpoints": true
32
+ },
33
+ {
34
+ "idx": 4,
35
+ "version": "6",
36
+ "when": 1779907416042,
37
+ "tag": "0004_abandoned_toro",
38
+ "breakpoints": true
39
+ },
40
+ {
41
+ "idx": 5,
42
+ "version": "6",
43
+ "when": 1779922683841,
44
+ "tag": "0005_quick_ozymandias",
45
+ "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1779950000000,
51
+ "tag": "0006_inline_resolved_backfill",
52
+ "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "6",
57
+ "when": 1780002434366,
58
+ "tag": "0007_brief_the_santerians",
59
+ "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "6",
64
+ "when": 1780032151964,
65
+ "tag": "0008_curved_ricochet",
66
+ "breakpoints": true
67
+ }
68
+ ]
69
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinagent/react-native",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "React Native & Expo plugin for Pinagent — tap a view, leave a comment, and a coding agent fixes it with file:line + a screenshot. The native widget ships as source for Metro; the dev-server middleware and Babel source-tagging plugin are built for Node.",
6
6
  "keywords": [
@@ -43,7 +43,8 @@
43
43
  "types": "./dist/server.d.ts",
44
44
  "files": [
45
45
  "dist",
46
- "src/native"
46
+ "src/native",
47
+ "drizzle"
47
48
  ],
48
49
  "peerDependencies": {
49
50
  "react": ">=18",
@@ -62,7 +63,7 @@
62
63
  }
63
64
  },
64
65
  "dependencies": {
65
- "@anthropic-ai/claude-agent-sdk": "^0.3.161",
66
+ "@anthropic-ai/claude-agent-sdk": "^0.3.181",
66
67
  "drizzle-orm": "^0.45.2",
67
68
  "nanoid": "^5.0.9",
68
69
  "ws": "^8.21.0",
@@ -73,9 +74,11 @@
73
74
  "@types/ws": "^8.18.1",
74
75
  "tsdown": "^0.22.0",
75
76
  "typescript": "^6.0.3",
76
- "@pinagent/agent-runner": "0.0.0"
77
+ "@pinagent/agent-runner": "0.0.0",
78
+ "@pinagent/db": "0.0.1"
77
79
  },
78
80
  "scripts": {
81
+ "prebuild": "node scripts/copy-drizzle.mjs",
79
82
  "build": "tsdown",
80
83
  "dev": "tsdown --watch",
81
84
  "typecheck": "tsc --noEmit"