@axiom-lattice/pg-stores 1.0.29 → 1.0.31
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +16 -0
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/stores/PostgreSQLScheduleStorage.ts +10 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/pg-stores@1.0.
|
|
2
|
+
> @axiom-lattice/pg-stores@1.0.31 build /home/runner/work/agentic/agentic/packages/pg-stores
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m129.98 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m242.69 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 259ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m126.66 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m238.53 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 259ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 11629ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m34.21 KB[39m
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m34.21 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @axiom-lattice/pg-stores
|
|
2
2
|
|
|
3
|
+
## 1.0.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [fc60965]
|
|
8
|
+
- @axiom-lattice/core@2.1.41
|
|
9
|
+
|
|
10
|
+
## 1.0.30
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- f29ff90: update schedule
|
|
15
|
+
- Updated dependencies [f29ff90]
|
|
16
|
+
- @axiom-lattice/protocols@2.1.22
|
|
17
|
+
- @axiom-lattice/core@2.1.40
|
|
18
|
+
|
|
3
19
|
## 1.0.29
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1087,20 +1087,21 @@ var PostgreSQLScheduleStorage = class {
|
|
|
1087
1087
|
await this.pool.query(
|
|
1088
1088
|
`
|
|
1089
1089
|
INSERT INTO lattice_scheduled_tasks (
|
|
1090
|
-
task_id, task_type, payload, assistant_id, thread_id, execution_type,
|
|
1090
|
+
task_id, task_type, tenant_id, payload, assistant_id, thread_id, execution_type,
|
|
1091
1091
|
execute_at, delay_ms, cron_expression, timezone,
|
|
1092
1092
|
next_run_at, last_run_at, status, run_count, max_runs,
|
|
1093
1093
|
retry_count, max_retries, last_error,
|
|
1094
1094
|
created_at, updated_at, expires_at, metadata
|
|
1095
1095
|
) VALUES (
|
|
1096
|
-
$1, $2, $3, $4, $5, $6,
|
|
1097
|
-
$
|
|
1098
|
-
$
|
|
1099
|
-
$
|
|
1100
|
-
$
|
|
1096
|
+
$1, $2, $3, $4, $5, $6, $7,
|
|
1097
|
+
$8, $9, $10, $11,
|
|
1098
|
+
$12, $13, $14, $15, $16,
|
|
1099
|
+
$17, $18, $19,
|
|
1100
|
+
$20, $21, $22, $23
|
|
1101
1101
|
)
|
|
1102
1102
|
ON CONFLICT (task_id) DO UPDATE SET
|
|
1103
1103
|
task_type = EXCLUDED.task_type,
|
|
1104
|
+
tenant_id = EXCLUDED.tenant_id,
|
|
1104
1105
|
payload = EXCLUDED.payload,
|
|
1105
1106
|
assistant_id = EXCLUDED.assistant_id,
|
|
1106
1107
|
thread_id = EXCLUDED.thread_id,
|
|
@@ -1124,6 +1125,7 @@ var PostgreSQLScheduleStorage = class {
|
|
|
1124
1125
|
[
|
|
1125
1126
|
task.taskId,
|
|
1126
1127
|
task.taskType,
|
|
1128
|
+
task.tenantId,
|
|
1127
1129
|
JSON.stringify(task.payload),
|
|
1128
1130
|
task.assistantId ?? null,
|
|
1129
1131
|
task.threadId ?? null,
|
|
@@ -1449,6 +1451,7 @@ var PostgreSQLScheduleStorage = class {
|
|
|
1449
1451
|
return {
|
|
1450
1452
|
taskId: row.task_id,
|
|
1451
1453
|
taskType: row.task_type,
|
|
1454
|
+
tenantId: row.tenant_id,
|
|
1452
1455
|
payload: typeof row.payload === "string" ? JSON.parse(row.payload) : row.payload || {},
|
|
1453
1456
|
assistantId: row.assistant_id ?? void 0,
|
|
1454
1457
|
threadId: row.thread_id ?? void 0,
|