@askexenow/exe-os 0.8.43 → 0.8.44
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.
- package/dist/bin/exe-boot.js +30 -30
- package/dist/bin/exe-link.js +30 -30
- package/dist/hooks/summary-worker.js +30 -30
- package/dist/lib/cloud-sync.js +30 -30
- package/package.json +1 -1
package/dist/bin/exe-boot.js
CHANGED
|
@@ -5596,16 +5596,16 @@ async function cloudSync(config) {
|
|
|
5596
5596
|
author_device_id, scope)
|
|
5597
5597
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
5598
5598
|
args: [
|
|
5599
|
-
rec.id,
|
|
5600
|
-
rec.agent_id,
|
|
5601
|
-
rec.agent_role,
|
|
5602
|
-
rec.session_id,
|
|
5603
|
-
rec.timestamp,
|
|
5604
|
-
rec.tool_name,
|
|
5605
|
-
rec.project_name,
|
|
5606
|
-
rec.has_error,
|
|
5607
|
-
rec.raw_text,
|
|
5608
|
-
rec.version,
|
|
5599
|
+
rec.id ?? null,
|
|
5600
|
+
rec.agent_id ?? null,
|
|
5601
|
+
rec.agent_role ?? null,
|
|
5602
|
+
rec.session_id ?? null,
|
|
5603
|
+
rec.timestamp ?? null,
|
|
5604
|
+
rec.tool_name ?? null,
|
|
5605
|
+
rec.project_name ?? null,
|
|
5606
|
+
rec.has_error ?? 0,
|
|
5607
|
+
rec.raw_text ?? "",
|
|
5608
|
+
rec.version ?? 0,
|
|
5609
5609
|
rec.author_device_id ?? null,
|
|
5610
5610
|
rec.scope ?? "business"
|
|
5611
5611
|
]
|
|
@@ -6010,7 +6010,7 @@ async function cloudPullBehaviors(config) {
|
|
|
6010
6010
|
const existing = await client.execute({
|
|
6011
6011
|
sql: `SELECT COUNT(*) as cnt FROM behaviors
|
|
6012
6012
|
WHERE agent_id = ? AND content = ?`,
|
|
6013
|
-
args: [behavior.agent_id, behavior.content]
|
|
6013
|
+
args: [behavior.agent_id ?? null, behavior.content ?? null]
|
|
6014
6014
|
});
|
|
6015
6015
|
if (Number(existing.rows[0]?.cnt) > 0) continue;
|
|
6016
6016
|
await client.execute({
|
|
@@ -6018,15 +6018,15 @@ async function cloudPullBehaviors(config) {
|
|
|
6018
6018
|
(id, agent_id, project_name, domain, content, active, priority, created_at, updated_at)
|
|
6019
6019
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
6020
6020
|
args: [
|
|
6021
|
-
behavior.id,
|
|
6022
|
-
behavior.agent_id,
|
|
6021
|
+
behavior.id ?? null,
|
|
6022
|
+
behavior.agent_id ?? null,
|
|
6023
6023
|
behavior.project_name ?? null,
|
|
6024
6024
|
behavior.domain ?? null,
|
|
6025
|
-
behavior.content,
|
|
6026
|
-
behavior.active,
|
|
6025
|
+
behavior.content ?? null,
|
|
6026
|
+
behavior.active ?? 1,
|
|
6027
6027
|
behavior.priority ?? "p1",
|
|
6028
|
-
behavior.created_at,
|
|
6029
|
-
behavior.updated_at
|
|
6028
|
+
behavior.created_at ?? null,
|
|
6029
|
+
behavior.updated_at ?? null
|
|
6030
6030
|
]
|
|
6031
6031
|
});
|
|
6032
6032
|
pulled++;
|
|
@@ -6167,16 +6167,16 @@ async function cloudPullTasks(config) {
|
|
|
6167
6167
|
blocked_by, parent_task_id, budget_tokens, budget_fallback_model, tokens_used, tokens_warned_at)
|
|
6168
6168
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
6169
6169
|
args: [
|
|
6170
|
-
t.id,
|
|
6171
|
-
t.title,
|
|
6172
|
-
t.assigned_to,
|
|
6173
|
-
t.assigned_by,
|
|
6174
|
-
t.project_name,
|
|
6170
|
+
t.id ?? null,
|
|
6171
|
+
t.title ?? null,
|
|
6172
|
+
t.assigned_to ?? null,
|
|
6173
|
+
t.assigned_by ?? null,
|
|
6174
|
+
t.project_name ?? null,
|
|
6175
6175
|
t.priority ?? "p1",
|
|
6176
6176
|
t.status ?? "open",
|
|
6177
6177
|
t.task_file ?? null,
|
|
6178
|
-
t.created_at,
|
|
6179
|
-
t.updated_at,
|
|
6178
|
+
t.created_at ?? null,
|
|
6179
|
+
t.updated_at ?? null,
|
|
6180
6180
|
t.blocked_by ?? null,
|
|
6181
6181
|
t.parent_task_id ?? null,
|
|
6182
6182
|
t.budget_tokens ?? null,
|
|
@@ -6214,15 +6214,15 @@ async function cloudPullConversations(config) {
|
|
|
6214
6214
|
content_metadata, agent_response, agent_name, timestamp, ingested_at)
|
|
6215
6215
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
6216
6216
|
args: [
|
|
6217
|
-
c.id,
|
|
6218
|
-
c.platform,
|
|
6217
|
+
c.id ?? null,
|
|
6218
|
+
c.platform ?? null,
|
|
6219
6219
|
c.external_id ?? null,
|
|
6220
|
-
c.sender_id,
|
|
6220
|
+
c.sender_id ?? null,
|
|
6221
6221
|
c.sender_name ?? null,
|
|
6222
6222
|
c.sender_phone ?? null,
|
|
6223
6223
|
c.sender_email ?? null,
|
|
6224
6224
|
c.recipient_id ?? null,
|
|
6225
|
-
c.channel_id,
|
|
6225
|
+
c.channel_id ?? null,
|
|
6226
6226
|
c.thread_id ?? null,
|
|
6227
6227
|
c.reply_to_id ?? null,
|
|
6228
6228
|
c.content_text ?? null,
|
|
@@ -6230,8 +6230,8 @@ async function cloudPullConversations(config) {
|
|
|
6230
6230
|
c.content_metadata ?? null,
|
|
6231
6231
|
c.agent_response ?? null,
|
|
6232
6232
|
c.agent_name ?? null,
|
|
6233
|
-
c.timestamp,
|
|
6234
|
-
c.ingested_at
|
|
6233
|
+
c.timestamp ?? null,
|
|
6234
|
+
c.ingested_at ?? null
|
|
6235
6235
|
]
|
|
6236
6236
|
}));
|
|
6237
6237
|
await client.batch(stmts, "write");
|
package/dist/bin/exe-link.js
CHANGED
|
@@ -859,16 +859,16 @@ async function cloudSync(config) {
|
|
|
859
859
|
author_device_id, scope)
|
|
860
860
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
861
861
|
args: [
|
|
862
|
-
rec.id,
|
|
863
|
-
rec.agent_id,
|
|
864
|
-
rec.agent_role,
|
|
865
|
-
rec.session_id,
|
|
866
|
-
rec.timestamp,
|
|
867
|
-
rec.tool_name,
|
|
868
|
-
rec.project_name,
|
|
869
|
-
rec.has_error,
|
|
870
|
-
rec.raw_text,
|
|
871
|
-
rec.version,
|
|
862
|
+
rec.id ?? null,
|
|
863
|
+
rec.agent_id ?? null,
|
|
864
|
+
rec.agent_role ?? null,
|
|
865
|
+
rec.session_id ?? null,
|
|
866
|
+
rec.timestamp ?? null,
|
|
867
|
+
rec.tool_name ?? null,
|
|
868
|
+
rec.project_name ?? null,
|
|
869
|
+
rec.has_error ?? 0,
|
|
870
|
+
rec.raw_text ?? "",
|
|
871
|
+
rec.version ?? 0,
|
|
872
872
|
rec.author_device_id ?? null,
|
|
873
873
|
rec.scope ?? "business"
|
|
874
874
|
]
|
|
@@ -1273,7 +1273,7 @@ async function cloudPullBehaviors(config) {
|
|
|
1273
1273
|
const existing = await client.execute({
|
|
1274
1274
|
sql: `SELECT COUNT(*) as cnt FROM behaviors
|
|
1275
1275
|
WHERE agent_id = ? AND content = ?`,
|
|
1276
|
-
args: [behavior.agent_id, behavior.content]
|
|
1276
|
+
args: [behavior.agent_id ?? null, behavior.content ?? null]
|
|
1277
1277
|
});
|
|
1278
1278
|
if (Number(existing.rows[0]?.cnt) > 0) continue;
|
|
1279
1279
|
await client.execute({
|
|
@@ -1281,15 +1281,15 @@ async function cloudPullBehaviors(config) {
|
|
|
1281
1281
|
(id, agent_id, project_name, domain, content, active, priority, created_at, updated_at)
|
|
1282
1282
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
1283
1283
|
args: [
|
|
1284
|
-
behavior.id,
|
|
1285
|
-
behavior.agent_id,
|
|
1284
|
+
behavior.id ?? null,
|
|
1285
|
+
behavior.agent_id ?? null,
|
|
1286
1286
|
behavior.project_name ?? null,
|
|
1287
1287
|
behavior.domain ?? null,
|
|
1288
|
-
behavior.content,
|
|
1289
|
-
behavior.active,
|
|
1288
|
+
behavior.content ?? null,
|
|
1289
|
+
behavior.active ?? 1,
|
|
1290
1290
|
behavior.priority ?? "p1",
|
|
1291
|
-
behavior.created_at,
|
|
1292
|
-
behavior.updated_at
|
|
1291
|
+
behavior.created_at ?? null,
|
|
1292
|
+
behavior.updated_at ?? null
|
|
1293
1293
|
]
|
|
1294
1294
|
});
|
|
1295
1295
|
pulled++;
|
|
@@ -1430,16 +1430,16 @@ async function cloudPullTasks(config) {
|
|
|
1430
1430
|
blocked_by, parent_task_id, budget_tokens, budget_fallback_model, tokens_used, tokens_warned_at)
|
|
1431
1431
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
1432
1432
|
args: [
|
|
1433
|
-
t.id,
|
|
1434
|
-
t.title,
|
|
1435
|
-
t.assigned_to,
|
|
1436
|
-
t.assigned_by,
|
|
1437
|
-
t.project_name,
|
|
1433
|
+
t.id ?? null,
|
|
1434
|
+
t.title ?? null,
|
|
1435
|
+
t.assigned_to ?? null,
|
|
1436
|
+
t.assigned_by ?? null,
|
|
1437
|
+
t.project_name ?? null,
|
|
1438
1438
|
t.priority ?? "p1",
|
|
1439
1439
|
t.status ?? "open",
|
|
1440
1440
|
t.task_file ?? null,
|
|
1441
|
-
t.created_at,
|
|
1442
|
-
t.updated_at,
|
|
1441
|
+
t.created_at ?? null,
|
|
1442
|
+
t.updated_at ?? null,
|
|
1443
1443
|
t.blocked_by ?? null,
|
|
1444
1444
|
t.parent_task_id ?? null,
|
|
1445
1445
|
t.budget_tokens ?? null,
|
|
@@ -1477,15 +1477,15 @@ async function cloudPullConversations(config) {
|
|
|
1477
1477
|
content_metadata, agent_response, agent_name, timestamp, ingested_at)
|
|
1478
1478
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
1479
1479
|
args: [
|
|
1480
|
-
c.id,
|
|
1481
|
-
c.platform,
|
|
1480
|
+
c.id ?? null,
|
|
1481
|
+
c.platform ?? null,
|
|
1482
1482
|
c.external_id ?? null,
|
|
1483
|
-
c.sender_id,
|
|
1483
|
+
c.sender_id ?? null,
|
|
1484
1484
|
c.sender_name ?? null,
|
|
1485
1485
|
c.sender_phone ?? null,
|
|
1486
1486
|
c.sender_email ?? null,
|
|
1487
1487
|
c.recipient_id ?? null,
|
|
1488
|
-
c.channel_id,
|
|
1488
|
+
c.channel_id ?? null,
|
|
1489
1489
|
c.thread_id ?? null,
|
|
1490
1490
|
c.reply_to_id ?? null,
|
|
1491
1491
|
c.content_text ?? null,
|
|
@@ -1493,8 +1493,8 @@ async function cloudPullConversations(config) {
|
|
|
1493
1493
|
c.content_metadata ?? null,
|
|
1494
1494
|
c.agent_response ?? null,
|
|
1495
1495
|
c.agent_name ?? null,
|
|
1496
|
-
c.timestamp,
|
|
1497
|
-
c.ingested_at
|
|
1496
|
+
c.timestamp ?? null,
|
|
1497
|
+
c.ingested_at ?? null
|
|
1498
1498
|
]
|
|
1499
1499
|
}));
|
|
1500
1500
|
await client.batch(stmts, "write");
|
|
@@ -2730,16 +2730,16 @@ async function cloudSync(config) {
|
|
|
2730
2730
|
author_device_id, scope)
|
|
2731
2731
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
2732
2732
|
args: [
|
|
2733
|
-
rec.id,
|
|
2734
|
-
rec.agent_id,
|
|
2735
|
-
rec.agent_role,
|
|
2736
|
-
rec.session_id,
|
|
2737
|
-
rec.timestamp,
|
|
2738
|
-
rec.tool_name,
|
|
2739
|
-
rec.project_name,
|
|
2740
|
-
rec.has_error,
|
|
2741
|
-
rec.raw_text,
|
|
2742
|
-
rec.version,
|
|
2733
|
+
rec.id ?? null,
|
|
2734
|
+
rec.agent_id ?? null,
|
|
2735
|
+
rec.agent_role ?? null,
|
|
2736
|
+
rec.session_id ?? null,
|
|
2737
|
+
rec.timestamp ?? null,
|
|
2738
|
+
rec.tool_name ?? null,
|
|
2739
|
+
rec.project_name ?? null,
|
|
2740
|
+
rec.has_error ?? 0,
|
|
2741
|
+
rec.raw_text ?? "",
|
|
2742
|
+
rec.version ?? 0,
|
|
2743
2743
|
rec.author_device_id ?? null,
|
|
2744
2744
|
rec.scope ?? "business"
|
|
2745
2745
|
]
|
|
@@ -3144,7 +3144,7 @@ async function cloudPullBehaviors(config) {
|
|
|
3144
3144
|
const existing = await client.execute({
|
|
3145
3145
|
sql: `SELECT COUNT(*) as cnt FROM behaviors
|
|
3146
3146
|
WHERE agent_id = ? AND content = ?`,
|
|
3147
|
-
args: [behavior.agent_id, behavior.content]
|
|
3147
|
+
args: [behavior.agent_id ?? null, behavior.content ?? null]
|
|
3148
3148
|
});
|
|
3149
3149
|
if (Number(existing.rows[0]?.cnt) > 0) continue;
|
|
3150
3150
|
await client.execute({
|
|
@@ -3152,15 +3152,15 @@ async function cloudPullBehaviors(config) {
|
|
|
3152
3152
|
(id, agent_id, project_name, domain, content, active, priority, created_at, updated_at)
|
|
3153
3153
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
3154
3154
|
args: [
|
|
3155
|
-
behavior.id,
|
|
3156
|
-
behavior.agent_id,
|
|
3155
|
+
behavior.id ?? null,
|
|
3156
|
+
behavior.agent_id ?? null,
|
|
3157
3157
|
behavior.project_name ?? null,
|
|
3158
3158
|
behavior.domain ?? null,
|
|
3159
|
-
behavior.content,
|
|
3160
|
-
behavior.active,
|
|
3159
|
+
behavior.content ?? null,
|
|
3160
|
+
behavior.active ?? 1,
|
|
3161
3161
|
behavior.priority ?? "p1",
|
|
3162
|
-
behavior.created_at,
|
|
3163
|
-
behavior.updated_at
|
|
3162
|
+
behavior.created_at ?? null,
|
|
3163
|
+
behavior.updated_at ?? null
|
|
3164
3164
|
]
|
|
3165
3165
|
});
|
|
3166
3166
|
pulled++;
|
|
@@ -3301,16 +3301,16 @@ async function cloudPullTasks(config) {
|
|
|
3301
3301
|
blocked_by, parent_task_id, budget_tokens, budget_fallback_model, tokens_used, tokens_warned_at)
|
|
3302
3302
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
3303
3303
|
args: [
|
|
3304
|
-
t.id,
|
|
3305
|
-
t.title,
|
|
3306
|
-
t.assigned_to,
|
|
3307
|
-
t.assigned_by,
|
|
3308
|
-
t.project_name,
|
|
3304
|
+
t.id ?? null,
|
|
3305
|
+
t.title ?? null,
|
|
3306
|
+
t.assigned_to ?? null,
|
|
3307
|
+
t.assigned_by ?? null,
|
|
3308
|
+
t.project_name ?? null,
|
|
3309
3309
|
t.priority ?? "p1",
|
|
3310
3310
|
t.status ?? "open",
|
|
3311
3311
|
t.task_file ?? null,
|
|
3312
|
-
t.created_at,
|
|
3313
|
-
t.updated_at,
|
|
3312
|
+
t.created_at ?? null,
|
|
3313
|
+
t.updated_at ?? null,
|
|
3314
3314
|
t.blocked_by ?? null,
|
|
3315
3315
|
t.parent_task_id ?? null,
|
|
3316
3316
|
t.budget_tokens ?? null,
|
|
@@ -3348,15 +3348,15 @@ async function cloudPullConversations(config) {
|
|
|
3348
3348
|
content_metadata, agent_response, agent_name, timestamp, ingested_at)
|
|
3349
3349
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
3350
3350
|
args: [
|
|
3351
|
-
c.id,
|
|
3352
|
-
c.platform,
|
|
3351
|
+
c.id ?? null,
|
|
3352
|
+
c.platform ?? null,
|
|
3353
3353
|
c.external_id ?? null,
|
|
3354
|
-
c.sender_id,
|
|
3354
|
+
c.sender_id ?? null,
|
|
3355
3355
|
c.sender_name ?? null,
|
|
3356
3356
|
c.sender_phone ?? null,
|
|
3357
3357
|
c.sender_email ?? null,
|
|
3358
3358
|
c.recipient_id ?? null,
|
|
3359
|
-
c.channel_id,
|
|
3359
|
+
c.channel_id ?? null,
|
|
3360
3360
|
c.thread_id ?? null,
|
|
3361
3361
|
c.reply_to_id ?? null,
|
|
3362
3362
|
c.content_text ?? null,
|
|
@@ -3364,8 +3364,8 @@ async function cloudPullConversations(config) {
|
|
|
3364
3364
|
c.content_metadata ?? null,
|
|
3365
3365
|
c.agent_response ?? null,
|
|
3366
3366
|
c.agent_name ?? null,
|
|
3367
|
-
c.timestamp,
|
|
3368
|
-
c.ingested_at
|
|
3367
|
+
c.timestamp ?? null,
|
|
3368
|
+
c.ingested_at ?? null
|
|
3369
3369
|
]
|
|
3370
3370
|
}));
|
|
3371
3371
|
await client.batch(stmts, "write");
|
package/dist/lib/cloud-sync.js
CHANGED
|
@@ -610,16 +610,16 @@ async function cloudSync(config) {
|
|
|
610
610
|
author_device_id, scope)
|
|
611
611
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
612
612
|
args: [
|
|
613
|
-
rec.id,
|
|
614
|
-
rec.agent_id,
|
|
615
|
-
rec.agent_role,
|
|
616
|
-
rec.session_id,
|
|
617
|
-
rec.timestamp,
|
|
618
|
-
rec.tool_name,
|
|
619
|
-
rec.project_name,
|
|
620
|
-
rec.has_error,
|
|
621
|
-
rec.raw_text,
|
|
622
|
-
rec.version,
|
|
613
|
+
rec.id ?? null,
|
|
614
|
+
rec.agent_id ?? null,
|
|
615
|
+
rec.agent_role ?? null,
|
|
616
|
+
rec.session_id ?? null,
|
|
617
|
+
rec.timestamp ?? null,
|
|
618
|
+
rec.tool_name ?? null,
|
|
619
|
+
rec.project_name ?? null,
|
|
620
|
+
rec.has_error ?? 0,
|
|
621
|
+
rec.raw_text ?? "",
|
|
622
|
+
rec.version ?? 0,
|
|
623
623
|
rec.author_device_id ?? null,
|
|
624
624
|
rec.scope ?? "business"
|
|
625
625
|
]
|
|
@@ -1025,7 +1025,7 @@ async function cloudPullBehaviors(config) {
|
|
|
1025
1025
|
const existing = await client.execute({
|
|
1026
1026
|
sql: `SELECT COUNT(*) as cnt FROM behaviors
|
|
1027
1027
|
WHERE agent_id = ? AND content = ?`,
|
|
1028
|
-
args: [behavior.agent_id, behavior.content]
|
|
1028
|
+
args: [behavior.agent_id ?? null, behavior.content ?? null]
|
|
1029
1029
|
});
|
|
1030
1030
|
if (Number(existing.rows[0]?.cnt) > 0) continue;
|
|
1031
1031
|
await client.execute({
|
|
@@ -1033,15 +1033,15 @@ async function cloudPullBehaviors(config) {
|
|
|
1033
1033
|
(id, agent_id, project_name, domain, content, active, priority, created_at, updated_at)
|
|
1034
1034
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
1035
1035
|
args: [
|
|
1036
|
-
behavior.id,
|
|
1037
|
-
behavior.agent_id,
|
|
1036
|
+
behavior.id ?? null,
|
|
1037
|
+
behavior.agent_id ?? null,
|
|
1038
1038
|
behavior.project_name ?? null,
|
|
1039
1039
|
behavior.domain ?? null,
|
|
1040
|
-
behavior.content,
|
|
1041
|
-
behavior.active,
|
|
1040
|
+
behavior.content ?? null,
|
|
1041
|
+
behavior.active ?? 1,
|
|
1042
1042
|
behavior.priority ?? "p1",
|
|
1043
|
-
behavior.created_at,
|
|
1044
|
-
behavior.updated_at
|
|
1043
|
+
behavior.created_at ?? null,
|
|
1044
|
+
behavior.updated_at ?? null
|
|
1045
1045
|
]
|
|
1046
1046
|
});
|
|
1047
1047
|
pulled++;
|
|
@@ -1182,16 +1182,16 @@ async function cloudPullTasks(config) {
|
|
|
1182
1182
|
blocked_by, parent_task_id, budget_tokens, budget_fallback_model, tokens_used, tokens_warned_at)
|
|
1183
1183
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
1184
1184
|
args: [
|
|
1185
|
-
t.id,
|
|
1186
|
-
t.title,
|
|
1187
|
-
t.assigned_to,
|
|
1188
|
-
t.assigned_by,
|
|
1189
|
-
t.project_name,
|
|
1185
|
+
t.id ?? null,
|
|
1186
|
+
t.title ?? null,
|
|
1187
|
+
t.assigned_to ?? null,
|
|
1188
|
+
t.assigned_by ?? null,
|
|
1189
|
+
t.project_name ?? null,
|
|
1190
1190
|
t.priority ?? "p1",
|
|
1191
1191
|
t.status ?? "open",
|
|
1192
1192
|
t.task_file ?? null,
|
|
1193
|
-
t.created_at,
|
|
1194
|
-
t.updated_at,
|
|
1193
|
+
t.created_at ?? null,
|
|
1194
|
+
t.updated_at ?? null,
|
|
1195
1195
|
t.blocked_by ?? null,
|
|
1196
1196
|
t.parent_task_id ?? null,
|
|
1197
1197
|
t.budget_tokens ?? null,
|
|
@@ -1229,15 +1229,15 @@ async function cloudPullConversations(config) {
|
|
|
1229
1229
|
content_metadata, agent_response, agent_name, timestamp, ingested_at)
|
|
1230
1230
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
1231
1231
|
args: [
|
|
1232
|
-
c.id,
|
|
1233
|
-
c.platform,
|
|
1232
|
+
c.id ?? null,
|
|
1233
|
+
c.platform ?? null,
|
|
1234
1234
|
c.external_id ?? null,
|
|
1235
|
-
c.sender_id,
|
|
1235
|
+
c.sender_id ?? null,
|
|
1236
1236
|
c.sender_name ?? null,
|
|
1237
1237
|
c.sender_phone ?? null,
|
|
1238
1238
|
c.sender_email ?? null,
|
|
1239
1239
|
c.recipient_id ?? null,
|
|
1240
|
-
c.channel_id,
|
|
1240
|
+
c.channel_id ?? null,
|
|
1241
1241
|
c.thread_id ?? null,
|
|
1242
1242
|
c.reply_to_id ?? null,
|
|
1243
1243
|
c.content_text ?? null,
|
|
@@ -1245,8 +1245,8 @@ async function cloudPullConversations(config) {
|
|
|
1245
1245
|
c.content_metadata ?? null,
|
|
1246
1246
|
c.agent_response ?? null,
|
|
1247
1247
|
c.agent_name ?? null,
|
|
1248
|
-
c.timestamp,
|
|
1249
|
-
c.ingested_at
|
|
1248
|
+
c.timestamp ?? null,
|
|
1249
|
+
c.ingested_at ?? null
|
|
1250
1250
|
]
|
|
1251
1251
|
}));
|
|
1252
1252
|
await client.batch(stmts, "write");
|
package/package.json
CHANGED