@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/pg-stores@1.0.29 build /home/runner/work/agentic/agentic/packages/pg-stores
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
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.mjs 126.55 KB
12
- ESM dist/index.mjs.map 238.36 KB
13
- ESM ⚡️ Build success in 350ms
14
- CJS dist/index.js 129.87 KB
15
- CJS dist/index.js.map 242.52 KB
16
- CJS ⚡️ Build success in 353ms
11
+ CJS dist/index.js 129.98 KB
12
+ CJS dist/index.js.map 242.69 KB
13
+ CJS ⚡️ Build success in 259ms
14
+ ESM dist/index.mjs 126.66 KB
15
+ ESM dist/index.mjs.map 238.53 KB
16
+ ESM ⚡️ Build success in 259ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 11601ms
18
+ DTS ⚡️ Build success in 11629ms
19
19
  DTS dist/index.d.ts 34.21 KB
20
20
  DTS dist/index.d.mts 34.21 KB
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
- $7, $8, $9, $10,
1098
- $11, $12, $13, $14, $15,
1099
- $16, $17, $18,
1100
- $19, $20, $21, $22
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,