smithers-orchestrator 0.25.1 → 0.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smithers-orchestrator",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "Public Smithers facade for durable coding-agent workflows and Gateway operation",
5
5
  "license": "MIT",
6
6
  "homepage": "https://smithers.sh",
@@ -92,28 +92,28 @@
92
92
  "incur": "^0.4.1",
93
93
  "react": "^19.2.5",
94
94
  "zod": "^4.3.6",
95
- "@smithers-orchestrator/agents": "0.25.1",
96
- "@smithers-orchestrator/db": "0.25.1",
97
- "@smithers-orchestrator/engine": "0.25.1",
98
- "@smithers-orchestrator/errors": "0.25.1",
99
- "@smithers-orchestrator/components": "0.25.1",
100
- "@smithers-orchestrator/cli": "0.25.1",
101
- "@smithers-orchestrator/control-plane": "0.25.1",
102
- "@smithers-orchestrator/memory": "0.25.1",
103
- "@smithers-orchestrator/gateway-client": "0.25.1",
104
- "@smithers-orchestrator/observability": "0.25.1",
105
- "@smithers-orchestrator/driver": "0.25.1",
106
- "@smithers-orchestrator/openapi": "0.25.1",
107
- "@smithers-orchestrator/react-reconciler": "0.25.1",
108
- "@smithers-orchestrator/gateway-react": "0.25.1",
109
- "@smithers-orchestrator/sandbox": "0.25.1",
110
- "@smithers-orchestrator/scheduler": "0.25.1",
111
- "@smithers-orchestrator/scorers": "0.25.1",
112
- "@smithers-orchestrator/server": "0.25.1",
113
- "@smithers-orchestrator/time-travel": "0.25.1",
114
- "@smithers-orchestrator/tool-context": "0.25.1",
115
- "@smithers-orchestrator/graph": "0.25.1",
116
- "@smithers-orchestrator/vcs": "0.25.1"
95
+ "@smithers-orchestrator/agents": "0.25.2",
96
+ "@smithers-orchestrator/components": "0.25.2",
97
+ "@smithers-orchestrator/control-plane": "0.25.2",
98
+ "@smithers-orchestrator/db": "0.25.2",
99
+ "@smithers-orchestrator/cli": "0.25.2",
100
+ "@smithers-orchestrator/driver": "0.25.2",
101
+ "@smithers-orchestrator/gateway-client": "0.25.2",
102
+ "@smithers-orchestrator/engine": "0.25.2",
103
+ "@smithers-orchestrator/graph": "0.25.2",
104
+ "@smithers-orchestrator/errors": "0.25.2",
105
+ "@smithers-orchestrator/gateway-react": "0.25.2",
106
+ "@smithers-orchestrator/memory": "0.25.2",
107
+ "@smithers-orchestrator/react-reconciler": "0.25.2",
108
+ "@smithers-orchestrator/observability": "0.25.2",
109
+ "@smithers-orchestrator/sandbox": "0.25.2",
110
+ "@smithers-orchestrator/scorers": "0.25.2",
111
+ "@smithers-orchestrator/openapi": "0.25.2",
112
+ "@smithers-orchestrator/server": "0.25.2",
113
+ "@smithers-orchestrator/scheduler": "0.25.2",
114
+ "@smithers-orchestrator/time-travel": "0.25.2",
115
+ "@smithers-orchestrator/tool-context": "0.25.2",
116
+ "@smithers-orchestrator/vcs": "0.25.2"
117
117
  },
118
118
  "optionalDependencies": {
119
119
  "@electric-sql/pglite": "0.5.1",
@@ -1,7 +1,8 @@
1
1
  export type MigrateSmithersStoreOptions = {
2
2
  cwd?: string;
3
3
  dbPath?: string;
4
- to?: "pglite" | "postgres";
4
+ from?: "sqlite" | "pglite" | "postgres";
5
+ to?: "sqlite" | "pglite" | "postgres";
5
6
  url?: string;
6
7
  env?: Record<string, string | undefined>;
7
8
  pgliteDataDir?: string;
@@ -0,0 +1,9 @@
1
+ import type { OpenSmithersBackendOptions } from "./OpenSmithersBackendOptions";
2
+
3
+ export type OpenSmithersStoreOptions = OpenSmithersBackendOptions & {
4
+ mode?: "read" | "write";
5
+ wait?: {
6
+ timeoutMs?: number;
7
+ intervalMs?: number;
8
+ };
9
+ };
@@ -0,0 +1,10 @@
1
+ import type { SmithersDb } from "@smithers-orchestrator/db/adapter";
2
+ import type { SmithersBackendChoice } from "./SmithersBackendChoice";
3
+
4
+ export type OpenSmithersStoreResult = {
5
+ choice: SmithersBackendChoice;
6
+ adapter: SmithersDb;
7
+ db: unknown;
8
+ dbPath?: string;
9
+ cleanup: () => Promise<void> | void;
10
+ };
@@ -2,6 +2,9 @@ export type ResolveSmithersBackendChoiceOptions = {
2
2
  backend?: "sqlite" | "pglite" | "postgres";
3
3
  cwd?: string;
4
4
  dbPath?: string;
5
+ pgliteDataDir?: string;
6
+ connectionString?: string;
7
+ connection?: { query?: (...args: any[]) => Promise<any> };
5
8
  configPath?: string;
6
9
  env?: Record<string, string | undefined>;
7
10
  };
@@ -1,9 +1,20 @@
1
1
  export type SmithersBackendChoice = {
2
2
  backend: "sqlite" | "pglite" | "postgres";
3
- source: "options" | "env" | "config" | "default";
3
+ source: "options" | "env" | "config" | "marker" | "default";
4
4
  dbPath: string;
5
5
  workspaceRoot: string;
6
6
  runCount: number;
7
7
  schemaVersion: string;
8
+ sqlite: { dbPath: string; exists: boolean; runCount: number; schemaVersion: string };
9
+ pglite: { dataDir: string; exists: boolean; initialized: boolean; hasRunsTable?: boolean; runCount: number; schemaVersion: string; error?: string };
10
+ postgres: {
11
+ exists: boolean;
12
+ initialized: boolean;
13
+ hasRunsTable?: boolean;
14
+ runCount: number;
15
+ schemaVersion: string;
16
+ connectionString?: "set";
17
+ error?: string;
18
+ };
8
19
  migratedMarker: boolean;
9
20
  };
@@ -1,9 +1,16 @@
1
1
  export type SmithersMigrationResult = {
2
- backend: "pglite" | "postgres";
2
+ backend: "sqlite" | "pglite" | "postgres";
3
+ source: {
4
+ backend: "sqlite" | "pglite" | "postgres";
5
+ dbPath?: string;
6
+ dataDir?: string;
7
+ url?: string;
8
+ };
3
9
  dbPath: string;
4
10
  markerPath: string;
5
11
  target: {
6
- backend: "pglite" | "postgres";
12
+ backend: "sqlite" | "pglite" | "postgres";
13
+ dbPath?: string;
7
14
  dataDir?: string;
8
15
  url?: string;
9
16
  };
package/src/index.js CHANGED
@@ -188,6 +188,7 @@ export { runJj, getJjPointer, revertToJjPointer, isJjRepo, workspaceAdd, workspa
188
188
  // Core API
189
189
  export { createSmithers, createSmithersPostgres } from "./create.js";
190
190
  export { openSmithersBackend } from "./openSmithersBackend.js";
191
+ export { openSmithersStore } from "./openSmithersStore.js";
191
192
  export { resolveSmithersBackendChoice } from "./resolveSmithersBackendChoice.js";
192
193
  export { migrateSmithersStore } from "./migrateSmithersStore.js";
193
194
  export {