lalph 0.3.138 → 0.3.139
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 +46161 -44241
- package/package.json +13 -14
- package/src/GitFlow.ts +8 -2
- package/src/Linear/TokenManager.ts +1 -0
- package/dist/cli.d.mts +0 -1
- package/dist/cli.mjs.map +0 -1
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.139",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"url": "https://github.com/tim-smart/lalph.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"better-sqlite3": "^12.10.0",
|
|
24
23
|
"tree-sitter": "^0.21.1",
|
|
25
24
|
"tree-sitter-javascript": "^0.23.1",
|
|
26
25
|
"tree-sitter-typescript": "^0.23.2"
|
|
@@ -37,23 +36,23 @@
|
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@changesets/changelog-github": "^0.7.0",
|
|
39
38
|
"@changesets/cli": "^2.31.0",
|
|
40
|
-
"@effect/ai-openai": "4.0.0-beta.
|
|
41
|
-
"@effect/ai-openai-compat": "4.0.0-beta.
|
|
42
|
-
"@effect/language-service": "^0.86.
|
|
43
|
-
"@effect/platform-node": "4.0.0-beta.
|
|
44
|
-
"@linear/sdk": "^
|
|
39
|
+
"@effect/ai-openai": "4.0.0-beta.94",
|
|
40
|
+
"@effect/ai-openai-compat": "4.0.0-beta.94",
|
|
41
|
+
"@effect/language-service": "^0.86.4",
|
|
42
|
+
"@effect/platform-node": "4.0.0-beta.94",
|
|
43
|
+
"@linear/sdk": "^88.0.0",
|
|
45
44
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
46
45
|
"@octokit/types": "^16.0.0",
|
|
47
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
48
|
-
"clanka": "^0.2.
|
|
46
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
47
|
+
"clanka": "^0.2.69",
|
|
49
48
|
"concurrently": "^10.0.3",
|
|
50
|
-
"effect": "4.0.0-beta.
|
|
49
|
+
"effect": "4.0.0-beta.94",
|
|
51
50
|
"husky": "^9.1.7",
|
|
52
|
-
"lint-staged": "^17.0.
|
|
51
|
+
"lint-staged": "^17.0.8",
|
|
53
52
|
"octokit": "^5.0.5",
|
|
54
|
-
"oxlint": "^1.
|
|
55
|
-
"prettier": "^3.
|
|
56
|
-
"tsdown": "^0.22.
|
|
53
|
+
"oxlint": "^1.73.0",
|
|
54
|
+
"prettier": "^3.9.4",
|
|
55
|
+
"tsdown": "^0.22.3",
|
|
57
56
|
"typescript": "^6.0.3",
|
|
58
57
|
"yaml": "^2.9.0"
|
|
59
58
|
},
|
package/src/GitFlow.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Atom } from "effect/unstable/reactivity"
|
|
|
8
8
|
import { parseBranch } from "./shared/git.ts"
|
|
9
9
|
import { AtomRegistry } from "effect/unstable/reactivity"
|
|
10
10
|
import { CurrentProjectId } from "./Settings.ts"
|
|
11
|
+
import type { PrdIssue } from "./domain/PrdIssue.ts"
|
|
11
12
|
|
|
12
13
|
// @effect-diagnostics-next-line leakingRequirements:off
|
|
13
14
|
export class GitFlow extends Context.Service<
|
|
@@ -189,13 +190,18 @@ But you **do not** need to git push your changes or switch branches.
|
|
|
189
190
|
const source = yield* IssueSource
|
|
190
191
|
const projectId = yield* CurrentProjectId
|
|
191
192
|
const issue = yield* source.findById(projectId, options.issueId)
|
|
192
|
-
|
|
193
|
+
let nextStatus: PrdIssue["state"] = "done"
|
|
194
|
+
if (!issue) {
|
|
195
|
+
return
|
|
196
|
+
} else if (issue.state === "in-progress") {
|
|
197
|
+
nextStatus = "todo"
|
|
198
|
+
} else if (issue.state !== "in-review") {
|
|
193
199
|
return
|
|
194
200
|
}
|
|
195
201
|
yield* source.updateIssue({
|
|
196
202
|
projectId,
|
|
197
203
|
issueId: options.issueId,
|
|
198
|
-
state:
|
|
204
|
+
state: nextStatus,
|
|
199
205
|
})
|
|
200
206
|
}),
|
|
201
207
|
})
|
package/dist/cli.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|