@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/local-stores@1.0.1 build /home/runner/work/agentic/agentic/packages/local-stores
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
  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 105.66 KB
12
- ESM dist/index.mjs.map 200.09 KB
13
- ESM ⚡️ Build success in 399ms
14
- CJS dist/index.js 108.84 KB
15
- CJS dist/index.js.map 202.50 KB
16
- CJS ⚡️ Build success in 407ms
11
+ ESM dist/index.mjs 105.95 KB
12
+ ESM dist/index.mjs.map 200.72 KB
13
+ ESM ⚡️ Build success in 483ms
14
+ CJS dist/index.js 109.14 KB
15
+ CJS dist/index.js.map 203.12 KB
16
+ CJS ⚡️ Build success in 494ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 16019ms
19
- DTS dist/index.d.ts 24.00 KB
20
- DTS dist/index.d.mts 24.00 KB
18
+ DTS ⚡️ Build success in 16091ms
19
+ DTS dist/index.d.ts 24.07 KB
20
+ DTS dist/index.d.mts 24.07 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @axiom-lattice/local-stores
2
2
 
3
+ ## 1.0.2
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
+
3
12
  ## 1.0.1
4
13
 
5
14
  ### Patch Changes
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 = [];