smithers-orchestrator 0.25.1 → 0.25.3
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 +23 -23
- package/src/MigrateSmithersStoreOptions.ts +2 -1
- package/src/OpenSmithersStoreOptions.ts +9 -0
- package/src/OpenSmithersStoreResult.ts +10 -0
- package/src/ResolveSmithersBackendChoiceOptions.ts +3 -0
- package/src/SmithersBackendChoice.ts +12 -1
- package/src/SmithersMigrationResult.ts +9 -2
- package/src/index.js +1 -0
- package/src/migrateSmithersStore.js +503 -15
- package/src/openSmithersBackend.js +3 -0
- package/src/openSmithersStore.js +227 -0
- package/src/resolveSmithersBackendChoice.js +276 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smithers-orchestrator",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.3",
|
|
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.
|
|
96
|
-
"@smithers-orchestrator/
|
|
97
|
-
"@smithers-orchestrator/
|
|
98
|
-
"@smithers-orchestrator/
|
|
99
|
-
"@smithers-orchestrator/
|
|
100
|
-
"@smithers-orchestrator/
|
|
101
|
-
"@smithers-orchestrator/
|
|
102
|
-
"@smithers-orchestrator/
|
|
103
|
-
"@smithers-orchestrator/
|
|
104
|
-
"@smithers-orchestrator/
|
|
105
|
-
"@smithers-orchestrator/
|
|
106
|
-
"@smithers-orchestrator/
|
|
107
|
-
"@smithers-orchestrator/
|
|
108
|
-
"@smithers-orchestrator/
|
|
109
|
-
"@smithers-orchestrator/
|
|
110
|
-
"@smithers-orchestrator/
|
|
111
|
-
"@smithers-orchestrator/
|
|
112
|
-
"@smithers-orchestrator/
|
|
113
|
-
"@smithers-orchestrator/
|
|
114
|
-
"@smithers-orchestrator/
|
|
115
|
-
"@smithers-orchestrator/
|
|
116
|
-
"@smithers-orchestrator/vcs": "0.25.
|
|
95
|
+
"@smithers-orchestrator/agents": "0.25.3",
|
|
96
|
+
"@smithers-orchestrator/components": "0.25.3",
|
|
97
|
+
"@smithers-orchestrator/cli": "0.25.3",
|
|
98
|
+
"@smithers-orchestrator/driver": "0.25.3",
|
|
99
|
+
"@smithers-orchestrator/control-plane": "0.25.3",
|
|
100
|
+
"@smithers-orchestrator/engine": "0.25.3",
|
|
101
|
+
"@smithers-orchestrator/gateway-client": "0.25.3",
|
|
102
|
+
"@smithers-orchestrator/gateway-react": "0.25.3",
|
|
103
|
+
"@smithers-orchestrator/errors": "0.25.3",
|
|
104
|
+
"@smithers-orchestrator/db": "0.25.3",
|
|
105
|
+
"@smithers-orchestrator/memory": "0.25.3",
|
|
106
|
+
"@smithers-orchestrator/graph": "0.25.3",
|
|
107
|
+
"@smithers-orchestrator/observability": "0.25.3",
|
|
108
|
+
"@smithers-orchestrator/sandbox": "0.25.3",
|
|
109
|
+
"@smithers-orchestrator/openapi": "0.25.3",
|
|
110
|
+
"@smithers-orchestrator/react-reconciler": "0.25.3",
|
|
111
|
+
"@smithers-orchestrator/scheduler": "0.25.3",
|
|
112
|
+
"@smithers-orchestrator/scorers": "0.25.3",
|
|
113
|
+
"@smithers-orchestrator/server": "0.25.3",
|
|
114
|
+
"@smithers-orchestrator/time-travel": "0.25.3",
|
|
115
|
+
"@smithers-orchestrator/tool-context": "0.25.3",
|
|
116
|
+
"@smithers-orchestrator/vcs": "0.25.3"
|
|
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
|
-
|
|
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,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 {
|