lalph 0.3.32 → 0.3.33
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 +819 -616
- package/package.json +3 -3
- package/src/GitFlow.ts +10 -0
- package/src/cli.ts +4 -8
- package/src/commands/agents.ts +1 -7
- package/src/commands/edit.ts +1 -7
- package/src/commands/issue.ts +1 -7
- package/src/commands/projects.ts +1 -5
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.33",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"@changesets/changelog-github": "^0.5.2",
|
|
24
24
|
"@changesets/cli": "^2.29.8",
|
|
25
25
|
"@effect/language-service": "^0.75.1",
|
|
26
|
-
"@effect/platform-node": "4.0.0-beta.
|
|
26
|
+
"@effect/platform-node": "4.0.0-beta.15",
|
|
27
27
|
"@linear/sdk": "^75.0.0",
|
|
28
28
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
29
29
|
"@octokit/types": "^16.0.0",
|
|
30
30
|
"@typescript/native-preview": "7.0.0-dev.20260219.1",
|
|
31
31
|
"concurrently": "^9.2.1",
|
|
32
|
-
"effect": "4.0.0-beta.
|
|
32
|
+
"effect": "4.0.0-beta.15",
|
|
33
33
|
"husky": "^9.1.7",
|
|
34
34
|
"lint-staged": "^16.2.7",
|
|
35
35
|
"octokit": "^5.0.5",
|
package/src/GitFlow.ts
CHANGED
|
@@ -81,6 +81,8 @@ After making any changes, commit and push them to the same pull request.
|
|
|
81
81
|
postWork: () => Effect.void,
|
|
82
82
|
autoMerge: Effect.fnUntraced(function* (options) {
|
|
83
83
|
const prd = yield* Prd
|
|
84
|
+
const source = yield* IssueSource
|
|
85
|
+
const projectId = yield* CurrentProjectId
|
|
84
86
|
const worktree = options.worktree
|
|
85
87
|
|
|
86
88
|
let prState = (yield* worktree.viewPrState()).pipe(
|
|
@@ -101,6 +103,14 @@ After making any changes, commit and push them to the same pull request.
|
|
|
101
103
|
prState = yield* worktree.viewPrState(prState.value.number)
|
|
102
104
|
yield* Effect.log("PR state after merge", prState)
|
|
103
105
|
if (Option.isSome(prState) && prState.value.state === "MERGED") {
|
|
106
|
+
const issue = yield* prd.findById(options.issueId)
|
|
107
|
+
if (issue && issue.state !== "done") {
|
|
108
|
+
yield* source.updateIssue({
|
|
109
|
+
projectId,
|
|
110
|
+
issueId: options.issueId,
|
|
111
|
+
state: "done",
|
|
112
|
+
})
|
|
113
|
+
}
|
|
104
114
|
return
|
|
105
115
|
}
|
|
106
116
|
yield* Effect.log("Flagging unmergable PR")
|
package/src/cli.ts
CHANGED
|
@@ -6,17 +6,17 @@ import { NodeRuntime } from "@effect/platform-node"
|
|
|
6
6
|
import { Settings } from "./Settings.ts"
|
|
7
7
|
import { commandRoot } from "./commands/root.ts"
|
|
8
8
|
import { commandPlan } from "./commands/plan.ts"
|
|
9
|
-
import { commandIssue
|
|
10
|
-
import { commandEdit
|
|
9
|
+
import { commandIssue } from "./commands/issue.ts"
|
|
10
|
+
import { commandEdit } from "./commands/edit.ts"
|
|
11
11
|
import { commandSource } from "./commands/source.ts"
|
|
12
12
|
import PackageJson from "../package.json" with { type: "json" }
|
|
13
13
|
import { TracingLayer } from "./Tracing.ts"
|
|
14
14
|
import { MinimumLogLevel } from "effect/References"
|
|
15
15
|
import { atomRuntime, lalphMemoMap } from "./shared/runtime.ts"
|
|
16
16
|
import { PlatformServices } from "./shared/platform.ts"
|
|
17
|
-
import { commandProjects
|
|
17
|
+
import { commandProjects } from "./commands/projects.ts"
|
|
18
18
|
import { commandSh } from "./commands/sh.ts"
|
|
19
|
-
import { commandAgents
|
|
19
|
+
import { commandAgents } from "./commands/agents.ts"
|
|
20
20
|
|
|
21
21
|
commandRoot.pipe(
|
|
22
22
|
Command.withSubcommands([
|
|
@@ -27,10 +27,6 @@ commandRoot.pipe(
|
|
|
27
27
|
commandSource,
|
|
28
28
|
commandAgents,
|
|
29
29
|
commandProjects,
|
|
30
|
-
commandAgentsAlias,
|
|
31
|
-
commandEditAlias,
|
|
32
|
-
commandIssueAlias,
|
|
33
|
-
commandProjectsAlias,
|
|
34
30
|
]),
|
|
35
31
|
Command.provide(Settings.layer),
|
|
36
32
|
Command.provide(TracingLayer),
|
package/src/commands/agents.ts
CHANGED
|
@@ -15,12 +15,6 @@ export const commandAgents = Command.make("agents").pipe(
|
|
|
15
15
|
Command.withDescription(
|
|
16
16
|
"Manage agent presets used to run tasks. Use 'ls' to inspect presets and 'add'/'edit' to configure agents, arguments, and any issue-source options.",
|
|
17
17
|
),
|
|
18
|
-
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
export const commandAgentsAlias = Command.make("a").pipe(
|
|
22
|
-
Command.withDescription(
|
|
23
|
-
"Alias for 'agents' (manage agent presets used to run tasks).",
|
|
24
|
-
),
|
|
18
|
+
Command.withAlias("a"),
|
|
25
19
|
subcommands,
|
|
26
20
|
)
|
package/src/commands/edit.ts
CHANGED
|
@@ -22,12 +22,6 @@ export const commandEdit = Command.make("edit").pipe(
|
|
|
22
22
|
Command.withDescription(
|
|
23
23
|
"Open the selected project's .lalph/prd.yml in your editor.",
|
|
24
24
|
),
|
|
25
|
-
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
export const commandEditAlias = Command.make("e").pipe(
|
|
29
|
-
Command.withDescription(
|
|
30
|
-
"Alias for 'edit' (open the selected project's .lalph/prd.yml in your editor).",
|
|
31
|
-
),
|
|
25
|
+
Command.withAlias("e"),
|
|
32
26
|
handler,
|
|
33
27
|
)
|
package/src/commands/issue.ts
CHANGED
|
@@ -88,12 +88,6 @@ const handler = flow(
|
|
|
88
88
|
|
|
89
89
|
export const commandIssue = Command.make("issue").pipe(
|
|
90
90
|
Command.withDescription("Create a new issue in your editor."),
|
|
91
|
-
|
|
92
|
-
)
|
|
93
|
-
|
|
94
|
-
export const commandIssueAlias = Command.make("i").pipe(
|
|
95
|
-
Command.withDescription(
|
|
96
|
-
"Alias for 'issue' (create a new issue in your editor).",
|
|
97
|
-
),
|
|
91
|
+
Command.withAlias("i"),
|
|
98
92
|
handler,
|
|
99
93
|
)
|
package/src/commands/projects.ts
CHANGED
|
@@ -17,10 +17,6 @@ export const commandProjects = Command.make("projects").pipe(
|
|
|
17
17
|
Command.withDescription(
|
|
18
18
|
"Manage projects and their execution settings (enabled state, concurrency, target branch, git flow, review agent). Use 'ls' to inspect and 'add', 'edit', or 'toggle' to configure.",
|
|
19
19
|
),
|
|
20
|
-
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
export const commandProjectsAlias = Command.make("p").pipe(
|
|
24
|
-
Command.withDescription("Alias for 'projects'."),
|
|
20
|
+
Command.withAlias("p"),
|
|
25
21
|
subcommands,
|
|
26
22
|
)
|