@context-forge/cli 0.6.19 → 0.6.20
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/commands/cf/onboard.md +20 -34
- package/dist/commands/build.js +1 -1
- package/package.json +2 -2
package/commands/cf/onboard.md
CHANGED
|
@@ -14,59 +14,45 @@ working directory.
|
|
|
14
14
|
|
|
15
15
|
**MCP:** Call `project_list`. Scan results for a project whose `projectPath`
|
|
16
16
|
matches the current directory.
|
|
17
|
-
**CLI
|
|
17
|
+
**CLI:** Run `cf project list` and check the output.
|
|
18
18
|
|
|
19
19
|
- If a project exists at this path → skip to Step 3.
|
|
20
20
|
- If no project exists → continue to Step 2.
|
|
21
21
|
|
|
22
22
|
## Step 2 — Create project
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Ask the user what they'd like to name their project. If a project name argument
|
|
25
|
+
was provided with the command, use that. If the user declines to choose, default
|
|
26
|
+
to the current directory name.
|
|
25
27
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
**Primary:** Run `cf init <name>` via the shell. This single command handles
|
|
29
|
+
everything: git initialization, project registration, guide installation,
|
|
30
|
+
command installation, and IDE setup. After `cf init` completes, skip to Step 3.
|
|
29
31
|
|
|
30
|
-
**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- `projectPath`: The current working directory (absolute path).
|
|
34
|
-
- `developmentPhase`: "Phase 1: Concept" (default — no need to specify).
|
|
32
|
+
**Important:** Do not rely on environment context (like "Is a git repository")
|
|
33
|
+
to determine git status — `cf init` checks the actual directory and handles
|
|
34
|
+
git initialization itself.
|
|
35
35
|
|
|
36
|
-
**
|
|
37
|
-
|
|
38
|
-
to
|
|
36
|
+
**MCP fallback** (if shell access is unavailable):
|
|
37
|
+
1. Call `project_create` with `name` and `projectPath` (the CWD).
|
|
38
|
+
2. Call `guide_install` to install the AI Project Guide.
|
|
39
|
+
Note: the MCP fallback cannot initialize git. If the directory is not a git
|
|
40
|
+
repository, inform the user they need to run `git init` first.
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
## Step 3 — Transition to concept discussion
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Verify the AI Project Guide is installed, and install it if missing.
|
|
45
|
-
|
|
46
|
-
**MCP:** Call `guide_status`.
|
|
47
|
-
- If `installed: true` → skip installation.
|
|
48
|
-
- If `installed: false` → call `guide_install`.
|
|
49
|
-
|
|
50
|
-
**CLI fallback:** Run `cf guides status`. If not installed, run
|
|
51
|
-
`cf guides install`.
|
|
52
|
-
|
|
53
|
-
Do not draw attention to this step unless installation fails. It's
|
|
54
|
-
infrastructure the user doesn't need to think about.
|
|
55
|
-
|
|
56
|
-
## Step 4 — Transition to concept discussion
|
|
57
|
-
|
|
58
|
-
The project is set up. Now begin the Phase 1 (Concept) conversation.
|
|
44
|
+
The project is set up. Now begin the Phase 0 (Concept) conversation.
|
|
59
45
|
|
|
60
46
|
**MCP:** Call `context_build` to generate the concept-phase context prompt.
|
|
61
47
|
Use the returned prompt as your working context to guide the conversation.
|
|
62
48
|
|
|
63
|
-
**CLI
|
|
49
|
+
**CLI:** Run `cf build` and use the output as your working context.
|
|
64
50
|
|
|
65
51
|
Begin by asking the user to describe what they want to build. Guide them
|
|
66
52
|
through the concept exploration naturally — the context prompt provides the
|
|
67
53
|
structure. The goal is a concept document at the end of this conversation.
|
|
68
54
|
|
|
69
|
-
## Step
|
|
55
|
+
## Step 4 — Mention ongoing guidance
|
|
70
56
|
|
|
71
57
|
After the concept conversation concludes (or if the user wants to pause),
|
|
72
58
|
mention: "You can run `cf next` (or `/cf:next`) anytime to see what to do
|
|
@@ -75,7 +61,7 @@ next. It adapts as your project progresses."
|
|
|
75
61
|
## Notes
|
|
76
62
|
|
|
77
63
|
- If any MCP tool call fails, fall back to the CLI equivalent.
|
|
78
|
-
- If the user already has a project but is in a later phase (not Phase
|
|
64
|
+
- If the user already has a project but is in a later phase (not Phase 0),
|
|
79
65
|
acknowledge this and suggest `cf next` instead of starting a concept
|
|
80
66
|
discussion.
|
|
81
67
|
- Keep the conversation natural. This is onboarding, not a checklist.
|
package/dist/commands/build.js
CHANGED
|
@@ -35,7 +35,7 @@ export function registerBuildCommand(program) {
|
|
|
35
35
|
if (opts.phase) {
|
|
36
36
|
const resolved = resolvePhaseValue(opts.phase);
|
|
37
37
|
if (!resolved) {
|
|
38
|
-
process.stderr.write(`Warning: '${opts.phase}' is not a recognized phase. Use a number (
|
|
38
|
+
process.stderr.write(`Warning: '${opts.phase}' is not a recognized phase. Use a number (0-7), name (implementation), or shorthand (P6).\n`);
|
|
39
39
|
}
|
|
40
40
|
const phaseValue = resolved ?? opts.phase;
|
|
41
41
|
workingCopy.developmentPhase = phaseValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@context-forge/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.20",
|
|
4
4
|
"description": "CLI for Context Forge — terminal access to context assembly, project management, workflow navigation, and configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"chalk": "^5.4.1",
|
|
34
34
|
"commander": "^13.1.0",
|
|
35
|
-
"@context-forge/core": "0.6.
|
|
35
|
+
"@context-forge/core": "0.6.20"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^25.3.0",
|