GeezerVison is showing github.com — refactor(server): one module per service instead of Services/ and Lay… · pingdotgg/t3code@3d17862
File tree
Expand file treeCollapse file tree
Open diff view settings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss bannerExpand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .cursor/rules/cursor-cloud.mdc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -69,4 +69,4 @@ Gradle auto-downloads any additional pinned SDK packages on demand. |
69 | 69 | ## Known flaky tests (unrelated to setup) |
70 | 70 |
|
71 | 71 | - `apps/server/src/git/GitManager.test.ts` (cross-repo PR metadata, can time out at 12s). |
72 | | -- `apps/server/src/provider/Layers/ProviderRegistry.test.ts` (codex binaryPath re-probe ordering). |
| 72 | +- `apps/server/src/provider/ProviderRegistry.test.ts` (codex binaryPath re-probe ordering). |
Collapse file
Copy file name to clipboardExpand all lines: apps/server/integration/transferBudgetV2.integration.test.ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,8 +35,8 @@ import * as HttpApi from "effect/http-api/HttpApi"; |
35 | 35 | import * as HttpApiBuilder from "effect/http-api/HttpApiBuilder"; |
36 | 36 | import { HttpRouter, HttpServer } from "effect/http"; |
37 | 37 | import { Rpc, RpcGroup, RpcServer, RpcSerialization } from "effect/rpc"; |
38 | | -import * as SqlitePersistence from "../src/persistence/Layers/Sqlite.ts"; |
39 | | -import * as OrchestrationEventStore from "../src/persistence/Layers/OrchestrationEventStore.ts"; |
| 38 | +import * as SqlitePersistence from "../src/persistence/Sqlite.ts"; |
| 39 | +import * as OrchestrationEventStore from "../src/persistence/OrchestrationEventStore.ts"; |
40 | 40 | import * as EventStore from "../src/orchestration-v2/EventStore.ts"; |
41 | 41 | import * as EventSink from "../src/orchestration-v2/EventSink.ts"; |
42 | 42 | import * as ProjectionStore from "../src/orchestration-v2/ProjectionStore.ts"; |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/scripts/migrate-dev-db.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -476,7 +476,7 @@ export const runMigrateDevDb = Effect.fn("runMigrateDevDb")(function* ( |
476 | 476 | yield* Console.log("Running migrations on the snapshot..."); |
477 | 477 | const executed = yield* Effect.gen(function* () { |
478 | 478 | const sql = yield* SqlClient.SqlClient; |
479 | | - // Mirror server boot (persistence/Layers/Sqlite.ts). |
| 479 | + // Mirror server boot (persistence/Sqlite.ts). |
480 | 480 | yield* sql.unsafe("PRAGMA foreign_keys = ON").unprepared; |
481 | 481 | return yield* runMigrations(); |
482 | 482 | }).pipe( |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/scripts/record-codex-app-server-replay-fixture.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import * as NodeOS from "node:os"; |
2 | 2 |
|
3 | 3 | import { CODEX_THREAD_CONFIG } from "../src/orchestration-v2/Adapters/CodexAdapterV2.ts"; |
4 | 4 | import { revertCodexThread } from "../src/provider/CodexThreadRevert.ts"; |
5 | | -import { buildCodexInitializeParams } from "../src/provider/Layers/CodexProvider.ts"; |
| 5 | +import { buildCodexInitializeParams } from "../src/provider/CodexProvider.ts"; |
6 | 6 | import * as NodeRuntime from "@effect/platform-node/NodeRuntime"; |
7 | 7 | import * as NodeServices from "@effect/platform-node/NodeServices"; |
8 | 8 | import { HostProcessEnvironment } from "@t3tools/shared/hostProcess"; |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/src/auth/EnvironmentAuth.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ import * as SqlClient from "effect/sql/SqlClient"; |
10 | 10 | import * as ServerConfig from "../config.ts"; |
11 | 11 | import * as ServerEnvironment from "../environment/ServerEnvironment.ts"; |
12 | 12 | import * as PersistenceErrors from "../persistence/Errors.ts"; |
13 | | -import * as SqlitePersistence from "../persistence/Layers/Sqlite.ts"; |
| 13 | +import * as SqlitePersistence from "../persistence/Sqlite.ts"; |
14 | 14 | import * as PairingGrantStore from "./PairingGrantStore.ts"; |
15 | 15 | import * as EnvironmentAuth from "./EnvironmentAuth.ts"; |
16 | 16 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/src/auth/EnvironmentAuth.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,7 +38,7 @@ import * as ServerSecretStore from "./ServerSecretStore.ts"; |
38 | 38 | import * as SessionStore from "./SessionStore.ts"; |
39 | 39 | import { REUSABLE_DEV_SESSION_EXPIRES_AT, resolveReusableDevAuth } from "./ReusableDevAuth.ts"; |
40 | 40 | import { verifyRequestDpopProof } from "./dpop.ts"; |
41 | | -import * as SqlitePersistence from "../persistence/Layers/Sqlite.ts"; |
| 41 | +import * as SqlitePersistence from "../persistence/Sqlite.ts"; |
42 | 42 |
|
43 | 43 | const DEFAULT_SESSION_SUBJECT = "cli-issued-session"; |
44 | 44 | export const INTERNAL_ADMINISTRATIVE_BOOTSTRAP_SUBJECT = "administrative-bootstrap"; |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/src/auth/EnvironmentAuthAdmin.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import * as Layer from "effect/Layer"; |
5 | 5 |
|
6 | 6 | import * as ServerConfig from "../config.ts"; |
7 | 7 | import * as ServerEnvironment from "../environment/ServerEnvironment.ts"; |
8 | | -import * as SqlitePersistence from "../persistence/Layers/Sqlite.ts"; |
| 8 | +import * as SqlitePersistence from "../persistence/Sqlite.ts"; |
9 | 9 | import * as EnvironmentAuth from "./EnvironmentAuth.ts"; |
10 | 10 | import * as ServerSecretStore from "./ServerSecretStore.ts"; |
11 | 11 | import * as SessionStore from "./SessionStore.ts"; |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/src/auth/PairingGrantStore.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ import * as TestClock from "effect/testing/TestClock"; |
10 | 10 | import * as ServerConfig from "../config.ts"; |
11 | 11 | import * as AuthPairingLinks from "../persistence/AuthPairingLinks.ts"; |
12 | 12 | import { PersistenceSqlError } from "../persistence/Errors.ts"; |
13 | | -import * as SqlitePersistence from "../persistence/Layers/Sqlite.ts"; |
| 13 | +import * as SqlitePersistence from "../persistence/Sqlite.ts"; |
14 | 14 | import * as PairingGrantStore from "./PairingGrantStore.ts"; |
15 | 15 |
|
16 | 16 | const layerServerConfig = ( |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/src/auth/SessionStore.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ import * as ServerConfig from "../config.ts"; |
16 | 16 | import * as ServerEnvironment from "../environment/ServerEnvironment.ts"; |
17 | 17 | import { PersistenceSqlError } from "../persistence/Errors.ts"; |
18 | 18 |
|
19 | | -import * as SqlitePersistence from "../persistence/Layers/Sqlite.ts"; |
| 19 | +import * as SqlitePersistence from "../persistence/Sqlite.ts"; |
20 | 20 | import * as AuthSessions from "../persistence/AuthSessions.ts"; |
21 | 21 | import * as SessionStore from "./SessionStore.ts"; |
22 | 22 | import * as ServerSecretStore from "./ServerSecretStore.ts"; |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/server/src/auth/http.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ import * as HttpRouter from "effect/http/HttpRouter"; |
15 | 15 |
|
16 | 16 | import * as ServerConfig from "../config.ts"; |
17 | 17 | import * as ServerEnvironment from "../environment/ServerEnvironment.ts"; |
18 | | -import * as SqlitePersistence from "../persistence/Layers/Sqlite.ts"; |
| 18 | +import * as SqlitePersistence from "../persistence/Sqlite.ts"; |
19 | 19 | import * as EnvironmentAuth from "./EnvironmentAuth.ts"; |
20 | 20 | import * as ServerSecretStore from "./ServerSecretStore.ts"; |
21 | 21 | import * as AuthHttp from "./http.ts"; |
|