lalph 0.3.101 → 0.3.103
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/dist/cli.mjs +571 -353
- package/package.json +6 -6
- package/src/Github.ts +0 -5
- package/src/IssueSource.ts +6 -1
- package/src/Linear.ts +0 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lalph",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.103",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@changesets/changelog-github": "^0.6.0",
|
|
39
39
|
"@changesets/cli": "^2.30.0",
|
|
40
|
-
"@effect/ai-openai": "4.0.0-beta.
|
|
41
|
-
"@effect/ai-openai-compat": "4.0.0-beta.
|
|
40
|
+
"@effect/ai-openai": "4.0.0-beta.37",
|
|
41
|
+
"@effect/ai-openai-compat": "4.0.0-beta.37",
|
|
42
42
|
"@effect/language-service": "^0.81.0",
|
|
43
|
-
"@effect/platform-node": "4.0.0-beta.
|
|
43
|
+
"@effect/platform-node": "4.0.0-beta.37",
|
|
44
44
|
"@linear/sdk": "^78.0.0",
|
|
45
45
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
46
46
|
"@octokit/types": "^16.0.0",
|
|
47
47
|
"@typescript/native-preview": "7.0.0-dev.20260322.1",
|
|
48
|
-
"clanka": "^0.2.
|
|
48
|
+
"clanka": "^0.2.32",
|
|
49
49
|
"concurrently": "^9.2.1",
|
|
50
|
-
"effect": "4.0.0-beta.
|
|
50
|
+
"effect": "4.0.0-beta.37",
|
|
51
51
|
"husky": "^9.1.7",
|
|
52
52
|
"lint-staged": "^16.4.0",
|
|
53
53
|
"octokit": "^5.0.5",
|
package/src/Github.ts
CHANGED
|
@@ -492,11 +492,6 @@ export const GithubIssueSource = Layer.effect(
|
|
|
492
492
|
const settings = yield* Cache.get(projectSettings, projectId)
|
|
493
493
|
return yield* issues(settings)
|
|
494
494
|
}),
|
|
495
|
-
findById: Effect.fnUntraced(function* (projectId, issueId) {
|
|
496
|
-
const settings = yield* Cache.get(projectSettings, projectId)
|
|
497
|
-
const projectIssues = yield* issues(settings)
|
|
498
|
-
return projectIssues.find((issue) => issue.id === issueId) ?? null
|
|
499
|
-
}),
|
|
500
495
|
createIssue: Effect.fnUntraced(
|
|
501
496
|
function* (projectId, issue) {
|
|
502
497
|
const { labelFilter, autoMergeLabelName } = yield* Cache.get(
|
package/src/IssueSource.ts
CHANGED
|
@@ -92,7 +92,7 @@ export class IssueSource extends ServiceMap.Service<
|
|
|
92
92
|
) => Effect.Effect<void, IssueSourceError>
|
|
93
93
|
}
|
|
94
94
|
>()("lalph/IssueSource") {
|
|
95
|
-
static make(impl: Omit<IssueSource["Service"], "ref">) {
|
|
95
|
+
static make(impl: Omit<IssueSource["Service"], "ref" | "findById">) {
|
|
96
96
|
return Effect.gen(function* () {
|
|
97
97
|
const refs = yield* ScopedCache.make({
|
|
98
98
|
lookup: Effect.fnUntraced(function* (projectId: ProjectId) {
|
|
@@ -143,6 +143,11 @@ export class IssueSource extends ServiceMap.Service<
|
|
|
143
143
|
...impl,
|
|
144
144
|
ref: (projectId) => ScopedCache.get(refs, projectId),
|
|
145
145
|
issues: updateIssues,
|
|
146
|
+
findById: Effect.fnUntraced(function* (projectId, issueId) {
|
|
147
|
+
const ref = yield* ScopedCache.get(refs, projectId)
|
|
148
|
+
const { issues } = yield* SubscriptionRef.get(ref)
|
|
149
|
+
return issues.find((issue) => issue.id === issueId) ?? null
|
|
150
|
+
}),
|
|
146
151
|
createIssue: (projectId, issue) =>
|
|
147
152
|
pipe(
|
|
148
153
|
impl.createIssue(projectId, issue),
|
package/src/Linear.ts
CHANGED
|
@@ -339,16 +339,6 @@ export const LinearIssueSource = Layer.effect(
|
|
|
339
339
|
autoMergeLabelId: settings.autoMergeLabelId,
|
|
340
340
|
})
|
|
341
341
|
}),
|
|
342
|
-
findById: Effect.fnUntraced(function* (projectId, issueId) {
|
|
343
|
-
const settings = yield* Cache.get(projectSettings, projectId)
|
|
344
|
-
const projectIssues = yield* issues({
|
|
345
|
-
projectId: settings.project.id,
|
|
346
|
-
labelId: settings.labelId,
|
|
347
|
-
teamId: settings.teamId,
|
|
348
|
-
autoMergeLabelId: settings.autoMergeLabelId,
|
|
349
|
-
})
|
|
350
|
-
return projectIssues.find((issue) => issue.id === issueId) ?? null
|
|
351
|
-
}),
|
|
352
342
|
createIssue: Effect.fnUntraced(
|
|
353
343
|
function* (projectId, issue) {
|
|
354
344
|
const { teamId, labelId, autoMergeLabelId, project } =
|