lalph 0.2.3 → 0.2.4
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 +7 -3
- package/package.json +1 -1
- package/src/commands/plan.ts +14 -4
package/dist/cli.mjs
CHANGED
|
@@ -151513,8 +151513,12 @@ const commandRoot = make$35("lalph", {
|
|
|
151513
151513
|
//#endregion
|
|
151514
151514
|
//#region src/commands/plan.ts
|
|
151515
151515
|
const dangerous = boolean("dangerous").pipe(withAlias("d"), withDescription$1("Enable dangerous mode (skip permission prompts) during plan generation"));
|
|
151516
|
-
const
|
|
151517
|
-
|
|
151516
|
+
const withNewProject = boolean("new").pipe(withAlias("n"), withDescription$1("Create a new project before starting plan mode"));
|
|
151517
|
+
const commandPlan = make$35("plan", {
|
|
151518
|
+
dangerous,
|
|
151519
|
+
withNewProject
|
|
151520
|
+
}).pipe(withDescription("Iterate on an issue plan and create PRD tasks"), withHandler(fnUntraced(function* ({ dangerous, withNewProject }) {
|
|
151521
|
+
const project = withNewProject ? yield* addOrUpdateProject() : yield* selectProject;
|
|
151518
151522
|
const { specsDirectory } = yield* commandRoot;
|
|
151519
151523
|
const commandPrefix = yield* getCommandPrefix;
|
|
151520
151524
|
yield* plan({
|
|
@@ -151634,7 +151638,7 @@ const commandSource = make$35("source").pipe(withDescription("Select the issue s
|
|
|
151634
151638
|
|
|
151635
151639
|
//#endregion
|
|
151636
151640
|
//#region package.json
|
|
151637
|
-
var version = "0.2.
|
|
151641
|
+
var version = "0.2.4";
|
|
151638
151642
|
|
|
151639
151643
|
//#endregion
|
|
151640
151644
|
//#region src/commands/projects/ls.ts
|
package/package.json
CHANGED
package/src/commands/plan.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Command, Flag } from "effect/unstable/cli"
|
|
|
8
8
|
import { CurrentIssueSource } from "../IssueSources.ts"
|
|
9
9
|
import { commandRoot } from "./root.ts"
|
|
10
10
|
import { CurrentProjectId, Settings } from "../Settings.ts"
|
|
11
|
-
import { selectProject } from "../Projects.ts"
|
|
11
|
+
import { addOrUpdateProject, selectProject } from "../Projects.ts"
|
|
12
12
|
|
|
13
13
|
const dangerous = Flag.boolean("dangerous").pipe(
|
|
14
14
|
Flag.withAlias("d"),
|
|
@@ -17,12 +17,22 @@ const dangerous = Flag.boolean("dangerous").pipe(
|
|
|
17
17
|
),
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const withNewProject = Flag.boolean("new").pipe(
|
|
21
|
+
Flag.withAlias("n"),
|
|
22
|
+
Flag.withDescription("Create a new project before starting plan mode"),
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
export const commandPlan = Command.make("plan", {
|
|
26
|
+
dangerous,
|
|
27
|
+
withNewProject,
|
|
28
|
+
}).pipe(
|
|
21
29
|
Command.withDescription("Iterate on an issue plan and create PRD tasks"),
|
|
22
30
|
Command.withHandler(
|
|
23
31
|
Effect.fnUntraced(
|
|
24
|
-
function* ({ dangerous }) {
|
|
25
|
-
const project =
|
|
32
|
+
function* ({ dangerous, withNewProject }) {
|
|
33
|
+
const project = withNewProject
|
|
34
|
+
? yield* addOrUpdateProject()
|
|
35
|
+
: yield* selectProject
|
|
26
36
|
const { specsDirectory } = yield* commandRoot
|
|
27
37
|
const commandPrefix = yield* getCommandPrefix
|
|
28
38
|
yield* plan({
|