@axiom-lattice/local-stores 1.0.1 → 1.0.2
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 +9 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/stores/LocalWorkflowTrackingStore.ts +9 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/local-stores@1.0.
|
|
2
|
+
> @axiom-lattice/local-stores@1.0.2 build /home/runner/work/agentic/agentic/packages/local-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
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m105.
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m200.
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
15
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m105.95 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m200.72 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 483ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m109.14 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m203.12 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 494ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m24.
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m24.
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 16091ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m24.07 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m24.07 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -288,6 +288,7 @@ declare class LocalWorkflowTrackingStore implements WorkflowTrackingStore {
|
|
|
288
288
|
getWorkflowRunsByAssistantId(tenantId: string, assistantId: string): Promise<WorkflowRun[]>;
|
|
289
289
|
getWorkflowRunsByTenantId(tenantId: string): Promise<WorkflowRun[]>;
|
|
290
290
|
createRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
291
|
+
upsertRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
291
292
|
updateRunStep(runId: string, stepId: string, updates: UpdateRunStepRequest): Promise<RunStep | null>;
|
|
292
293
|
getRunSteps(runId: string): Promise<RunStep[]>;
|
|
293
294
|
getRunStepsByType(runId: string, stepType: StepType): Promise<RunStep[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -288,6 +288,7 @@ declare class LocalWorkflowTrackingStore implements WorkflowTrackingStore {
|
|
|
288
288
|
getWorkflowRunsByAssistantId(tenantId: string, assistantId: string): Promise<WorkflowRun[]>;
|
|
289
289
|
getWorkflowRunsByTenantId(tenantId: string): Promise<WorkflowRun[]>;
|
|
290
290
|
createRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
291
|
+
upsertRunStep(request: CreateRunStepRequest): Promise<RunStep>;
|
|
291
292
|
updateRunStep(runId: string, stepId: string, updates: UpdateRunStepRequest): Promise<RunStep | null>;
|
|
292
293
|
getRunSteps(runId: string): Promise<RunStep[]>;
|
|
293
294
|
getRunStepsByType(runId: string, stepType: StepType): Promise<RunStep[]>;
|
package/dist/index.js
CHANGED
|
@@ -1570,6 +1570,13 @@ var LocalWorkflowTrackingStore = class {
|
|
|
1570
1570
|
updatedAt: parseISO(now)
|
|
1571
1571
|
};
|
|
1572
1572
|
}
|
|
1573
|
+
async upsertRunStep(request) {
|
|
1574
|
+
const row = this.db.prepare(
|
|
1575
|
+
`SELECT * FROM lt_workflow_steps WHERE run_id = ? AND step_type = ? AND step_name = ?`
|
|
1576
|
+
).get(request.runId, request.stepType, request.stepName);
|
|
1577
|
+
if (row) return mapRowToStep(row);
|
|
1578
|
+
return this.createRunStep(request);
|
|
1579
|
+
}
|
|
1573
1580
|
async updateRunStep(runId, stepId, updates) {
|
|
1574
1581
|
const setClauses = [];
|
|
1575
1582
|
const values = [];
|