@axiom-lattice/pg-stores 1.0.69 → 1.0.71
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 +10 -10
- package/CHANGELOG.md +17 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/stores/PostgreSQLWorkflowTrackingStore.ts +13 -0
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.71 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
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m206.81 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m392.87 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 696ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m212.09 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m393.03 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 701ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m50.
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m50.
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 16225ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m50.95 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m50.95 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @axiom-lattice/pg-stores
|
|
2
2
|
|
|
3
|
+
## 1.0.71
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b4bdb6c: up new
|
|
8
|
+
- Updated dependencies [b4bdb6c]
|
|
9
|
+
- @axiom-lattice/protocols@2.1.42
|
|
10
|
+
- @axiom-lattice/core@2.1.80
|
|
11
|
+
|
|
12
|
+
## 1.0.70
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [ec290af]
|
|
17
|
+
- @axiom-lattice/core@2.1.79
|
|
18
|
+
- @axiom-lattice/protocols@2.1.41
|
|
19
|
+
|
|
3
20
|
## 1.0.69
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -698,6 +698,7 @@ declare class PostgreSQLWorkflowTrackingStore implements WorkflowTrackingStore {
|
|
|
698
698
|
getWorkflowRunsByAssistantId(tenantId: string, assistantId: string): Promise<WorkflowRun[]>;
|
|
699
699
|
getWorkflowRunsByTenantId(tenantId: string): Promise<WorkflowRun[]>;
|
|
700
700
|
createRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
701
|
+
upsertRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
701
702
|
updateRunStep(runId: string, stepId: string, updates: UpdateRunStepRequest): Promise<RunStep | null>;
|
|
702
703
|
getRunSteps(runId: string): Promise<RunStep[]>;
|
|
703
704
|
getRunStepsByType(runId: string, stepType: StepType): Promise<RunStep[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -698,6 +698,7 @@ declare class PostgreSQLWorkflowTrackingStore implements WorkflowTrackingStore {
|
|
|
698
698
|
getWorkflowRunsByAssistantId(tenantId: string, assistantId: string): Promise<WorkflowRun[]>;
|
|
699
699
|
getWorkflowRunsByTenantId(tenantId: string): Promise<WorkflowRun[]>;
|
|
700
700
|
createRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
701
|
+
upsertRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
701
702
|
updateRunStep(runId: string, stepId: string, updates: UpdateRunStepRequest): Promise<RunStep | null>;
|
|
702
703
|
getRunSteps(runId: string): Promise<RunStep[]>;
|
|
703
704
|
getRunStepsByType(runId: string, stepType: StepType): Promise<RunStep[]>;
|
package/dist/index.js
CHANGED
|
@@ -3275,6 +3275,17 @@ var PostgreSQLWorkflowTrackingStore = class {
|
|
|
3275
3275
|
updatedAt: now
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
|
+
async upsertRunStep(request) {
|
|
3279
|
+
await this.ensureInitialized();
|
|
3280
|
+
const result = await this.pool.query(
|
|
3281
|
+
`SELECT * FROM lattice_workflow_steps WHERE run_id = $1 AND step_type = $2 AND step_name = $3`,
|
|
3282
|
+
[request.runId, request.stepType, request.stepName]
|
|
3283
|
+
);
|
|
3284
|
+
if (result.rows.length > 0) {
|
|
3285
|
+
return this.mapRowToRunStep(result.rows[0]);
|
|
3286
|
+
}
|
|
3287
|
+
return this.createRunStep(request);
|
|
3288
|
+
}
|
|
3278
3289
|
async updateRunStep(runId, stepId, updates) {
|
|
3279
3290
|
await this.ensureInitialized();
|
|
3280
3291
|
const now = /* @__PURE__ */ new Date();
|