Annotate Git core Effect.fn helpers (#1511)
This commit is contained in:
1 parent
5462d50177
commit
7f3387a86c
4 files changed
+2006
-1994
No files matched your search
+1391
-1417
File diff suppressed because it is too large.
Load diff
@@ -525,7 +525,7 @@ function makeManager(input?: {
|
||||
serverSettingsLayer,
|
||||
).pipe(Layer.provideMerge(NodeServices.layer));
|
||||
|
||||
return makeGitManager.pipe(
|
||||
return makeGitManager().pipe(
|
||||
Effect.provide(managerLayer),
|
||||
Effect.map((manager) => ({ manager, ghCalls })),
|
||||
);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+39
-24
@@ -24,6 +24,17 @@ const new = Effect.fn('functionName')(function* () {
|
||||
})
|
||||
```
|
||||
|
||||
- Use `Effect.fn('name')(function* (input: Input): Effect.fn.Return<A, E, R> {})` to annotate the return type of the function if needed.
|
||||
|
||||
- The 2nd argument works as a pipe, and it gets the effect and input as arguments:
|
||||
|
||||
```ts
|
||||
Effect.fn("name")(
|
||||
function* (input: Input): Effect.fn.Return<A, E, R> {},
|
||||
(effect, input) => Effect.catch(effect, (reason) => Effect.logWarning("Err", { input, reason })),
|
||||
);
|
||||
```
|
||||
|
||||
## Summary
|
||||
|
||||
- Total non-test candidates: `322`
|
||||
@@ -32,9 +43,9 @@ const new = Effect.fn('functionName')(function* () {
|
||||
|
||||
- [ ] `apps/server/src/provider/Layers/ProviderService.ts`
|
||||
- [x] `apps/server/src/provider/Layers/ClaudeAdapter.ts`
|
||||
- [ ] `apps/server/src/provider/Layers/CodexAdapter.ts`
|
||||
- [ ] `apps/server/src/git/Layers/GitCore.ts`
|
||||
- [ ] `apps/server/src/git/Layers/GitManager.ts`
|
||||
- [x] `apps/server/src/provider/Layers/CodexAdapter.ts`
|
||||
- [x] `apps/server/src/git/Layers/GitCore.ts`
|
||||
- [x] `apps/server/src/git/Layers/GitManager.ts`
|
||||
- [ ] `apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts`
|
||||
- [ ] `apps/server/src/orchestration/Layers/ProjectionPipeline.ts`
|
||||
- [ ] `apps/server/src/orchestration/Layers/OrchestrationEngine.ts`
|
||||
@@ -57,25 +68,25 @@ const new = Effect.fn('functionName')(function* () {
|
||||
|
||||
### `apps/server/src/git/Layers/GitCore.ts` (`58`)
|
||||
|
||||
- [ ] [makeGitCore](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L495)
|
||||
- [ ] [handleTraceLine](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L317)
|
||||
- [ ] [emitCompleteLines](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L449)
|
||||
- [ ] [commit](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1178)
|
||||
- [ ] [pushCurrentBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1217)
|
||||
- [ ] [pullCurrentBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1316)
|
||||
- [ ] [checkoutBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1697)
|
||||
- [ ] Service methods and callback wrappers in this file
|
||||
- [x] [makeGitCore](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L513)
|
||||
- [x] [handleTraceLine](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L324)
|
||||
- [x] [emitCompleteLines](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L455)
|
||||
- [x] [commit](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1190)
|
||||
- [x] [pushCurrentBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1223)
|
||||
- [x] [pullCurrentBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1323)
|
||||
- [x] [checkoutBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitCore.ts#L1727)
|
||||
- [x] Service methods and callback wrappers in this file
|
||||
|
||||
### `apps/server/src/git/Layers/GitManager.ts` (`28`)
|
||||
|
||||
- [ ] [configurePullRequestHeadUpstream](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L387)
|
||||
- [ ] [materializePullRequestHeadBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L428)
|
||||
- [ ] [findOpenPr](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L576)
|
||||
- [ ] [findLatestPr](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L602)
|
||||
- [ ] [runCommitStep](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L728)
|
||||
- [ ] [runPrStep](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L842)
|
||||
- [ ] [runFeatureBranchStep](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L1106)
|
||||
- [ ] Remaining helpers and nested callback wrappers in this file
|
||||
- [x] [configurePullRequestHeadUpstream](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L387)
|
||||
- [x] [materializePullRequestHeadBranch](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L428)
|
||||
- [x] [findOpenPr](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L576)
|
||||
- [x] [findLatestPr](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L602)
|
||||
- [x] [runCommitStep](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L728)
|
||||
- [x] [runPrStep](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L842)
|
||||
- [x] [runFeatureBranchStep](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/GitManager.ts#L1106)
|
||||
- [x] Remaining helpers and nested callback wrappers in this file
|
||||
|
||||
### `apps/server/src/orchestration/Layers/ProjectionPipeline.ts` (`25`)
|
||||
|
||||
@@ -113,11 +124,11 @@ const new = Effect.fn('functionName')(function* () {
|
||||
|
||||
### `apps/server/src/provider/Layers/CodexAdapter.ts` (`12`)
|
||||
|
||||
- [ ] [makeCodexAdapter](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1317)
|
||||
- [ ] [sendTurn](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1399)
|
||||
- [ ] [writeNativeEvent](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1546)
|
||||
- [ ] [listener](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1555)
|
||||
- [ ] Remaining nested callback wrappers in this file
|
||||
- [x] [makeCodexAdapter](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1317)
|
||||
- [x] [sendTurn](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1399)
|
||||
- [x] [writeNativeEvent](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1546)
|
||||
- [x] [listener](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/Layers/CodexAdapter.ts#L1555)
|
||||
- [x] Remaining nested callback wrappers in this file
|
||||
|
||||
### `apps/server/src/checkpointing/Layers/CheckpointStore.ts` (`10`)
|
||||
|
||||
@@ -181,3 +192,7 @@ const new = Effect.fn('functionName')(function* () {
|
||||
- [ ] [apps/server/src/git/Layers/ClaudeTextGeneration.ts](/Users/julius/Development/Work/codething-mvp/apps/server/src/git/Layers/ClaudeTextGeneration.ts) (`2`)
|
||||
- [ ] [apps/server/src/checkpointing/Layers/CheckpointDiffQuery.ts](/Users/julius/Development/Work/codething-mvp/apps/server/src/checkpointing/Layers/CheckpointDiffQuery.ts) (`2`)
|
||||
- [ ] [apps/server/src/provider/makeManagedServerProvider.ts](/Users/julius/Development/Work/codething-mvp/apps/server/src/provider/makeManagedServerProvider.ts) (`1`)
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
Reference in new issue
Block a user