conductor-4-all 0.0.10 → 0.0.12

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/index.cjs CHANGED
@@ -583,5 +583,20 @@ var cli = (0, import_yargs.default)((0, import_helpers.hideBin)(process.argv)).s
583
583
  installHandler
584
584
  ).help();
585
585
 
586
+ // src/utils/banner.ts
587
+ var import_gradient_string = __toESM(require("gradient-string"), 1);
588
+ var CONDUCTOR_BANNER = `
589
+ __________ _ ______ __ __________________ ____ __ __ ___ __ __
590
+ / ____/ __ \\/ | / / __ \\/ / / / ____/_ __/ __ \\/ __ \\ / // / / | / / / /
591
+ / / / / / / |/ / / / / / / / / / / / / / / /_/ / / // /_ / /| | / / / /
592
+ / /___/ /_/ / /| / /_/ / /_/ / /___ / / / /_/ / _, _/ /__ __/ / ___ |/ /___/ /___
593
+ \\____/\\____/_/ |_/_____/\\____/\\____/ /_/ \\____/_/ |_| /_/ /_/ |_/_____/_____/
594
+
595
+ `;
596
+ function printBanner() {
597
+ console.log((0, import_gradient_string.default)("green", "blue")(CONDUCTOR_BANNER));
598
+ }
599
+
586
600
  // src/index.ts
601
+ printBanner();
587
602
  cli.parse();
package/dist/index.js CHANGED
@@ -556,5 +556,20 @@ var cli = yargs(hideBin(process.argv)).scriptName("conductor").usage("$0 <cmd> [
556
556
  installHandler
557
557
  ).help();
558
558
 
559
+ // src/utils/banner.ts
560
+ import gradient from "gradient-string";
561
+ var CONDUCTOR_BANNER = `
562
+ __________ _ ______ __ __________________ ____ __ __ ___ __ __
563
+ / ____/ __ \\/ | / / __ \\/ / / / ____/_ __/ __ \\/ __ \\ / // / / | / / / /
564
+ / / / / / / |/ / / / / / / / / / / / / / / /_/ / / // /_ / /| | / / / /
565
+ / /___/ /_/ / /| / /_/ / /_/ / /___ / / / /_/ / _, _/ /__ __/ / ___ |/ /___/ /___
566
+ \\____/\\____/_/ |_/_____/\\____/\\____/ /_/ \\____/_/ |_| /_/ /_/ |_/_____/_____/
567
+
568
+ `;
569
+ function printBanner() {
570
+ console.log(gradient("green", "blue")(CONDUCTOR_BANNER));
571
+ }
572
+
559
573
  // src/index.ts
574
+ printBanner();
560
575
  cli.parse();
@@ -10,15 +10,13 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
10
10
  ## 1.1 SETUP CHECK
11
11
  **PROTOCOL: Verify that the Conductor environment is properly set up.**
12
12
 
13
- 1. **Check for Required Files:** You MUST verify the existence of the following files in the `conductor` directory:
14
- - `conductor/tech-stack.md`
15
- - `conductor/workflow.md`
16
- - `conductor/product.md`
13
+ 1. **Verify Core Context:** Using the **Universal File Resolution Protocol**, resolve and verify the existence of:
14
+ - **Product Definition**
15
+ - **Tech Stack**
16
+ - **Workflow**
17
+
18
+ 2. **Handle Failure:** If ANY of these are missing (or their resolved paths do not exist), Announce: "Conductor is not set up. Please run `/conductor:setup`." and HALT.
17
19
 
18
- 2. **Handle Missing Files:**
19
- - If ANY of these files are missing, you MUST halt the operation immediately.
20
- - Announce: "Conductor is not set up. Please run `/conductor:setup` to set up the environment."
21
- - Do NOT proceed to Track Selection.
22
20
 
23
21
  ---
24
22
 
@@ -27,7 +25,9 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
27
25
 
28
26
  1. **Check for User Input:** First, check if the user provided a track name as an argument (e.g., `/conductor:implement <track_description>`).
29
27
 
30
- 2. **Parse Tracks File:** Read and parse the tracks file at `conductor/tracks.md`. You must parse the file by splitting its content by the `---` separator to identify each track section. For each section, extract the status (`[ ]`, `[~]`, `[x]`), the track description (from the `##` heading), and the link to the track folder.
28
+ 2. **Locate and Parse Tracks Registry:**
29
+ - Resolve the **Tracks Registry**.
30
+ - Read and parse this file. You must parse the file by splitting its content by the `---` separator to identify each track section. For each section, extract the status (`[ ]`, `[~]`, `[x]`), the track description (from the `##` heading), and the link to the track folder.
31
31
  - **CRITICAL:** If no track sections are found after parsing, announce: "The tracks file is empty or malformed. No tracks to implement." and halt.
32
32
 
33
33
  3. **Continue:** Immediately proceed to the next step to select a track.
@@ -56,27 +56,26 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
56
56
  1. **Announce Action:** Announce which track you are beginning to implement.
57
57
 
58
58
  2. **Update Status to 'In Progress':**
59
- - Before beginning any work, you MUST update the status of the selected track in the `conductor/tracks.md` file.
60
- - This requires finding the specific heading for the track (e.g., `## [ ] Track: <Description>`) and replacing it with the updated status (e.g., `## [~] Track: <Description>`).
59
+ - Before beginning any work, you MUST update the status of the selected track in the **Tracks Registry** file.
60
+ - This requires finding the specific heading for the track (e.g., `## [ ] Track: <Description>`) and replacing it with the updated status (e.g., `## [~] Track: <Description>`) in the **Tracks Registry** file you identified earlier.
61
61
 
62
62
  3. **Load Track Context:**
63
63
  a. **Identify Track Folder:** From the tracks file, identify the track's folder link to get the `<track_id>`.
64
- b. **Read Files:** You MUST read the content of the following files into your context using their full, absolute paths:
65
- - `conductor/tracks/<track_id>/plan.md`
66
- - `conductor/tracks/<track_id>/spec.md`
67
- - `conductor/workflow.md`
64
+ b. **Read Files:**
65
+ - **Track Context:** Using the **Universal File Resolution Protocol**, resolve and read the **Specification** and **Implementation Plan** for the selected track.
66
+ - **Workflow:** Resolve **Workflow** (via the **Universal File Resolution Protocol** using the project's index file).
68
67
  c. **Error Handling:** If you fail to read any of these files, you MUST stop and inform the user of the error.
69
68
 
70
69
  4. **Execute Tasks and Update Track Plan:**
71
- a. **Announce:** State that you will now execute the tasks from the track's `plan.md` by following the procedures in `workflow.md`.
72
- b. **Iterate Through Tasks:** You MUST now loop through each task in the track's `plan.md` one by one.
70
+ a. **Announce:** State that you will now execute the tasks from the track's **Implementation Plan** by following the procedures in the **Workflow**.
71
+ b. **Iterate Through Tasks:** You MUST now loop through each task in the track's **Implementation Plan** one by one.
73
72
  c. **For Each Task, You MUST:**
74
- i. **Defer to Workflow:** The `workflow.md` file is the **single source of truth** for the entire task lifecycle. You MUST now read and execute the procedures defined in the "Task Workflow" section of the `workflow.md` file you have in your context. Follow its steps for implementation, testing, and committing precisely.
73
+ i. **Defer to Workflow:** The **Workflow** file is the **single source of truth** for the entire task lifecycle. You MUST now read and execute the procedures defined in the "Task Workflow" section of the **Workflow** file you have in your context. Follow its steps for implementation, testing, and committing precisely.
75
74
 
76
75
  5. **Finalize Track:**
77
- - After all tasks in the track's local `plan.md` are completed, you MUST update the track's status in the tracks file.
76
+ - After all tasks in the track's local **Implementation Plan** are completed, you MUST update the track's status in the **Tracks Registry**.
78
77
  - This requires finding the specific heading for the track (e.g., `## [~] Track: <Description>`) and replacing it with the completed status (e.g., `## [x] Track: <Description>`).
79
- - **Commit Changes:** Stage `conductor/tracks.md` and commit with the message `chore(conductor): Mark track '<track_description>' as complete`.
78
+ - **Commit Changes:** Stage the **Tracks Registry** file and commit with the message `chore(conductor): Mark track '<track_description>' as complete`.
80
79
  - Announce that the track is fully complete and the tracks file has been updated.
81
80
 
82
81
  ---
@@ -88,56 +87,57 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
88
87
 
89
88
  2. **Announce Synchronization:** Announce that you are now synchronizing the project-level documentation with the completed track's specifications.
90
89
 
91
- 3. **Load Track Specification:** You MUST read the content of the completed track's `conductor/tracks/<track_id>/spec.md` file into your context.
90
+ 3. **Load Track Specification:** Read the track's **Specification**.
92
91
 
93
- 4. **Load Project Documents:** You MUST read the contents of the following project-level documents into your context:
94
- - `conductor/product.md`
95
- - `conductor/product-guidelines.md`
96
- - `conductor/tech-stack.md`
92
+ 4. **Load Project Documents:**
93
+ - Resolve and read:
94
+ - **Product Definition**
95
+ - **Tech Stack**
96
+ - **Product Guidelines**
97
97
 
98
98
  5. **Analyze and Update:**
99
- a. **Analyze `spec.md`:** Carefully analyze the `spec.md` to identify any new features, changes in functionality, or updates to the technology stack.
100
- b. **Update `conductor/product.md`:**
99
+ a. **Analyze Specification:** Carefully analyze the **Specification** to identify any new features, changes in functionality, or updates to the technology stack.
100
+ b. **Update Product Definition:**
101
101
  i. **Condition for Update:** Based on your analysis, you MUST determine if the completed feature or bug fix significantly impacts the description of the product itself.
102
102
  ii. **Propose and Confirm Changes:** If an update is needed, generate the proposed changes. Then, present them to the user for confirmation:
103
- > "Based on the completed track, I propose the following updates to `product.md`:"
103
+ > "Based on the completed track, I propose the following updates to the **Product Definition**:"
104
104
  > ```diff
105
105
  > [Proposed changes here, ideally in a diff format]
106
106
  > ```
107
107
  > "Do you approve these changes? (yes/no)"
108
- iii. **Action:** Only after receiving explicit user confirmation, perform the file edits to update the `conductor/product.md` file. Keep a record of whether this file was changed.
109
- c. **Update `conductor/tech-stack.md`:**
108
+ iii. **Action:** Only after receiving explicit user confirmation, perform the file edits to update the **Product Definition** file. Keep a record of whether this file was changed.
109
+ c. **Update Tech Stack:**
110
110
  i. **Condition for Update:** Similarly, you MUST determine if significant changes in the technology stack are detected as a result of the completed track.
111
111
  ii. **Propose and Confirm Changes:** If an update is needed, generate the proposed changes. Then, present them to the user for confirmation:
112
- > "Based on the completed track, I propose the following updates to `tech-stack.md`:"
112
+ > "Based on the completed track, I propose the following updates to the **Tech Stack**:"
113
113
  > ```diff
114
114
  > [Proposed changes here, ideally in a diff format]
115
115
  > ```
116
116
  > "Do you approve these changes? (yes/no)"
117
- iii. **Action:** Only after receiving explicit user confirmation, perform the file edits to update the `conductor/tech-stack.md` file. Keep a record of whether this file was changed.
118
- d. **Update `conductor/product-guidelines.md` (Strictly Controlled):**
117
+ iii. **Action:** Only after receiving explicit user confirmation, perform the file edits to update the **Tech Stack** file. Keep a record of whether this file was changed.
118
+ d. **Update Product Guidelines (Strictly Controlled):**
119
119
  i. **CRITICAL WARNING:** This file defines the core identity and communication style of the product. It should be modified with extreme caution and ONLY in cases of significant strategic shifts, such as a product rebrand or a fundamental change in user engagement philosophy. Routine feature updates or bug fixes should NOT trigger changes to this file.
120
- ii. **Condition for Update:** You may ONLY propose an update to this file if the track's `spec.md` explicitly describes a change that directly impacts branding, voice, tone, or other core product guidelines.
120
+ ii. **Condition for Update:** You may ONLY propose an update to this file if the track's **Specification** explicitly describes a change that directly impacts branding, voice, tone, or other core product guidelines.
121
121
  iii. **Propose and Confirm Changes:** If the conditions are met, you MUST generate the proposed changes and present them to the user with a clear warning:
122
- > "WARNING: The completed track suggests a change to the core product guidelines. This is an unusual step. Please review carefully:"
122
+ > "WARNING: The completed track suggests a change to the core **Product Guidelines**. This is an unusual step. Please review carefully:"
123
123
  > ```diff
124
124
  > [Proposed changes here, ideally in a diff format]
125
125
  > ```
126
- > "Do you approve these critical changes to `product-guidelines.md`? (yes/no)"
126
+ > "Do you approve these critical changes to the **Product Guidelines**? (yes/no)"
127
127
  iv. **Action:** Only after receiving explicit user confirmation, perform the file edits. Keep a record of whether this file was changed.
128
128
 
129
129
  6. **Final Report:** Announce the completion of the synchronization process and provide a summary of the actions taken.
130
130
  - **Construct the Message:** Based on the records of which files were changed, construct a summary message.
131
131
  - **Commit Changes:**
132
- - If any files were changed (`product.md`, `tech-stack.md`, or `product-guidelines.md`), you MUST stage them and commit them.
132
+ - If any files were changed (**Product Definition**, **Tech Stack**, or **Product Guidelines**), you MUST stage them and commit them.
133
133
  - **Commit Message:** `docs(conductor): Synchronize docs for track '<track_description>'`
134
- - **Example (if product.md was changed, but others were not):**
134
+ - **Example (if Product Definition was changed, but others were not):**
135
135
  > "Documentation synchronization is complete.
136
- > - **Changes made to `product.md`:** The user-facing description of the product was updated to include the new feature.
137
- > - **No changes needed for `tech-stack.md`:** The technology stack was not affected.
138
- > - **No changes needed for `product-guidelines.md`:** Core product guidelines remain unchanged."
136
+ > - **Changes made to Product Definition:** The user-facing description of the product was updated to include the new feature.
137
+ > - **No changes needed for Tech Stack:** The technology stack was not affected.
138
+ > - **No changes needed for Product Guidelines:** Core product guidelines remain unchanged."
139
139
  - **Example (if no files were changed):**
140
- > "Documentation synchronization is complete. No updates were necessary for `product.md`, `tech-stack.md`, or `product-guidelines.md` based on the completed track."
140
+ > "Documentation synchronization is complete. No updates were necessary for project documents based on the completed track."
141
141
 
142
142
  ---
143
143
 
@@ -156,18 +156,18 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
156
156
  3. **Handle User Response:**
157
157
  * **If user chooses "A" (Archive):**
158
158
  i. **Create Archive Directory:** Check for the existence of `conductor/archive/`. If it does not exist, create it.
159
- ii. **Archive Track Folder:** Move the track's folder from `conductor/tracks/<track_id>` to `conductor/archive/<track_id>`.
160
- iii. **Remove from Tracks File:** Read the content of `conductor/tracks.md`, remove the entire section for the completed track (the part that starts with `---` and contains the track description), and write the modified content back to the file.
161
- iv. **Commit Changes:** Stage `conductor/tracks.md` and `conductor/archive/`. Commit with the message `chore(conductor): Archive track '<track_description>'`.
159
+ ii. **Archive Track Folder:** Move the track's folder from its current location (resolved via the **Tracks Directory**) to `conductor/archive/<track_id>`.
160
+ iii. **Remove from Tracks File:** Read the content of the **Tracks Registry** file, remove the entire section for the completed track (the part that starts with `---` and contains the track description), and write the modified content back to the file.
161
+ iv. **Commit Changes:** Stage the **Tracks Registry** file and `conductor/archive/`. Commit with the message `chore(conductor): Archive track '<track_description>'`.
162
162
  v. **Announce Success:** Announce: "Track '<track_description>' has been successfully archived."
163
163
  * **If user chooses "B" (Delete):**
164
164
  i. **CRITICAL WARNING:** Before proceeding, you MUST ask for a final confirmation due to the irreversible nature of the action.
165
165
  > "WARNING: This will permanently delete the track folder and all its contents. This action cannot be undone. Are you sure you want to proceed? (yes/no)"
166
166
  ii. **Handle Confirmation:**
167
167
  - **If 'yes'**:
168
- a. **Delete Track Folder:** Permanently delete the track's folder from `conductor/tracks/<track_id>`.
169
- b. **Remove from Tracks File:** Read the content of `conductor/tracks.md`, remove the entire section for the completed track, and write the modified content back to the file.
170
- c. **Commit Changes:** Stage `conductor/tracks.md` and the deletion of `conductor/tracks/<track_id>`. Commit with the message `chore(conductor): Delete track '<track_description>'`.
168
+ a. **Delete Track Folder:** Resolve the **Tracks Directory** and permanently delete the track's folder from `<Tracks Directory>/<track_id>`.
169
+ b. **Remove from Tracks File:** Read the content of the **Tracks Registry** file, remove the entire section for the completed track, and write the modified content back to the file.
170
+ c. **Commit Changes:** Stage the **Tracks Registry** file and the deletion of the track directory. Commit with the message `chore(conductor): Delete track '<track_description>'`.
171
171
  d. **Announce Success:** Announce: "Track '<track_description>' has been permanently deleted."
172
172
  - **If 'no' (or anything else)**:
173
173
  a. **Announce Cancellation:** Announce: "Deletion cancelled. The track has not been changed."
@@ -5,15 +5,17 @@ You are an AI agent assistant for the Conductor spec-driven development framewor
5
5
 
6
6
  CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
7
7
 
8
+ ---
9
+
8
10
  ## 1.1 SETUP CHECK
9
11
  **PROTOCOL: Verify that the Conductor environment is properly set up.**
10
12
 
11
- 1. **Check for Required Files:** You MUST verify the existence of the following files in the `conductor` directory:
12
- - `conductor/tech-stack.md`
13
- - `conductor/workflow.md`
14
- - `conductor/product.md`
13
+ 1. **Verify Core Context:** Using the **Universal File Resolution Protocol**, resolve and verify the existence of:
14
+ - **Product Definition**
15
+ - **Tech Stack**
16
+ - **Workflow**
15
17
 
16
- 2. **Handle Missing Files:**
18
+ 2. **Handle Failure:**
17
19
  - If ANY of these files are missing, you MUST halt the operation immediately.
18
20
  - Announce: "Conductor is not set up. Please run `/conductor:setup` to set up the environment."
19
21
  - Do NOT proceed to New Track Initialization.
@@ -25,7 +27,7 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
25
27
 
26
28
  ### 2.1 Get Track Description and Determine Type
27
29
 
28
- 1. **Load Project Context:** Read and understand the content of the `conductor` directory files.
30
+ 1. **Load Project Context:** Read and understand the content of the project documents (**Product Definition**, **Tech Stack**, etc.) resolved via the **Universal File Resolution Protocol**.
29
31
  2. **Get Track Description:**
30
32
  * **If `{{args}}` contains a description:** Use the content of `{{args}}`.
31
33
  * **If `{{args}}` is empty:** Ask the user:
@@ -41,7 +43,7 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
41
43
  2. **Questioning Phase:** Ask a series of questions to gather details for the `spec.md`. Tailor questions based on the track type (Feature or Other).
42
44
  * **CRITICAL:** You MUST ask these questions sequentially (one by one). Do not ask multiple questions in a single turn. Wait for the user's response after each question.
43
45
  * **General Guidelines:**
44
- * Refer to information in `product.md`, `tech-stack.md`, etc., to ask context-aware questions.
46
+ * Refer to information in **Product Definition**, **Tech Stack**, etc., to ask context-aware questions.
45
47
  * Provide a brief explanation and clear examples for each question.
46
48
  * **Strongly Recommendation:** Whenever possible, present 2-3 plausible options (A, B, C) for the user to choose from.
47
49
  * **Mandatory:** The last option for every multiple-choice question MUST be "Type your own answer".
@@ -89,13 +91,13 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
89
91
 
90
92
  2. **Generate Plan:**
91
93
  * Read the confirmed `spec.md` content for this track.
92
- * Read the selected workflow file from `conductor/workflow.md`.
94
+ * Resolve and read the **Workflow** file (via the **Universal File Resolution Protocol** using the project's index file).
93
95
  * Generate a `plan.md` with a hierarchical list of Phases, Tasks, and Sub-tasks.
94
- * **CRITICAL:** The plan structure MUST adhere to the methodology in the workflow file (e.g., TDD tasks for "Write Tests" and "Implement").
96
+ * **CRITICAL:** The plan structure MUST adhere to the methodology in the **Workflow** file (e.g., TDD tasks for "Write Tests" and "Implement").
95
97
  * Include status markers `[ ]` for **EVERY** task and sub-task. The format must be:
96
98
  - Parent Task: `- [ ] Task: ...`
97
99
  - Sub-task: ` - [ ] ...`
98
- * **CRITICAL: Inject Phase Completion Tasks.** Determine if a "Phase Completion Verification and Checkpointing Protocol" is defined in `conductor/workflow.md`. If this protocol exists, then for each **Phase** that you generate in `plan.md`, you MUST append a final meta-task to that phase. The format for this meta-task is: `- [ ] Task: Conductor - User Manual Verification '<Phase Name>' (Protocol in workflow.md)`.
100
+ * **CRITICAL: Inject Phase Completion Tasks.** Determine if a "Phase Completion Verification and Checkpointing Protocol" is defined in the **Workflow**. If this protocol exists, then for each **Phase** that you generate in `plan.md`, you MUST append a final meta-task to that phase. The format for this meta-task is: `- [ ] Task: Conductor - User Manual Verification '<Phase Name>' (Protocol in workflow.md)`.
99
101
 
100
102
  3. **User Confirmation:** Present the drafted `plan.md` to the user for review and approval.
101
103
  > "I've drafted the implementation plan. Please review the following:"
@@ -109,10 +111,10 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
109
111
 
110
112
  ### 2.4 Create Track Artifacts and Update Main Plan
111
113
 
112
- 1. **Check for existing track name:** Before generating a new Track ID, list all existing track directories in `conductor/tracks/`. Extract the short names from these track IDs (e.g., ``shortname_YYYYMMDD`` -> `shortname`). If the proposed short name for the new track (derived from the initial description) matches an existing short name, halt the `newTrack` creation. Explain that a track with that name already exists and suggest choosing a different name or resuming the existing track.
114
+ 1. **Check for existing track name:** Before generating a new Track ID, resolve the **Tracks Directory** using the **Universal File Resolution Protocol**. List all existing track directories in that resolved path. Extract the short names from these track IDs (e.g., ``shortname_YYYYMMDD`` -> `shortname`). If the proposed short name for the new track (derived from the initial description) matches an existing short name, halt the `newTrack` creation. Explain that a track with that name already exists and suggest choosing a different name or resuming the existing track.
113
115
  2. **Generate Track ID:** Create a unique Track ID (e.g., ``shortname_YYYYMMDD``).
114
- 3. **Create Directory:** Create a new directory: `conductor/tracks/<track_id>/`
115
- 4. **Create `metadata.json`:** Create a metadata file at `conductor/tracks/<track_id>/metadata.json` with content like:
116
+ 3. **Create Directory:** Create a new directory for the tracks: `<Tracks Directory>/<track_id>/`.
117
+ 4. **Create `metadata.json`:** Create a metadata file at `<Tracks Directory>/<track_id>/metadata.json` with content like:
116
118
  ```json
117
119
  {
118
120
  "track_id": "<track_id>",
@@ -125,16 +127,27 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
125
127
  ```
126
128
  * Populate fields with actual values. Use the current timestamp.
127
129
  5. **Write Files:**
128
- * Write the confirmed specification content to `conductor/tracks/<track_id>/spec.md`.
129
- * Write the confirmed plan content to `conductor/tracks/<track_id>/plan.md`.
130
- 6. **Update Tracks File:**
131
- - **Announce:** Inform the user you are updating the tracks file.
132
- - **Append Section:** Append a new item to the track list in `conductor/tracks.md`. The format MUST be:
130
+ * Write the confirmed specification content to `<Tracks Directory>/<track_id>/spec.md`.
131
+ * Write the confirmed plan content to `<Tracks Directory>/<track_id>/plan.md`.
132
+ * Write the index file to `<Tracks Directory>/<track_id>/index.md` with content:
133
133
  ```markdown
134
+ # Track <track_id> Context
135
+
136
+ - [Specification](./spec.md)
137
+ - [Implementation Plan](./plan.md)
138
+ - [Metadata](./metadata.json)
139
+ ```
140
+ 6. **Update Tracks Registry:**
141
+ - **Announce:** Inform the user you are updating the **Tracks Registry**.
142
+ - **Append Section:** Resolve the **Tracks Registry** via the **Universal File Resolution Protocol**. Append a new section for the track to the end of this file. The format MUST be:
143
+ ```markdown
144
+
145
+ ---
146
+
134
147
  - [ ] **Track: <Track Description>**
135
- *Link: [./conductor/tracks/<track_id>/](./conductor/tracks/<track_id>/)*
148
+ *Link: [./<Relative Track Path>/](./<Relative Track Path>/)*
136
149
  ```
137
- (Replace placeholders with actual values)
150
+ (Replace `<Relative Track Path>` with the path to the track directory relative to the **Tracks Registry** file location.)
138
151
  7. **Announce Completion:** Inform the user:
139
152
  > "New track '<track_id>' has been created and added to the tracks file. You can now start implementation by running `/conductor:implement`."
140
153
 
@@ -9,11 +9,18 @@ Your workflow MUST anticipate and handle common non-linear Git histories, such a
9
9
 
10
10
  **CRITICAL**: The user's explicit confirmation is required at multiple checkpoints. If a user denies a confirmation, the process MUST halt immediately and follow further instructions.
11
11
 
12
- **CRITICAL:** Before proceeding, you should start by checking if the project has been properly set up.
13
- 1. **Verify Tracks File:** Check if the file `conductor/tracks.md` exists. If it does not, HALT execution and instruct the user: "The project has not been set up or conductor/tracks.md has been corrupted. Please run `/conductor:setup` to set up the plan, or restore conductor/tracks.md."
14
- 2. **Verify Track Exists:** Check if the file `conductor/tracks.md` is not empty. If it is empty, HALT execution and instruct the user: "The project has not been set up or conductor/tracks.md has been corrupted. Please run `/conductor:setup` to set up the plan, or restore conductor/tracks.md."
12
+ CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
15
13
 
16
- **CRITICAL**: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
14
+ ---
15
+
16
+ ## 1.1 SETUP CHECK
17
+ **PROTOCOL: Verify that the Conductor environment is properly set up.**
18
+
19
+ 1. **Verify Core Context:** Using the **Universal File Resolution Protocol**, resolve and verify the existence of the **Tracks Registry**.
20
+
21
+ 2. **Verify Track Exists:** Check if the **Tracks Registry** is not empty.
22
+
23
+ 3. **Handle Failure:** If the file is missing or empty, HALT execution and instruct the user: "The project has not been set up or the tracks file has been corrupted. Please run `/conductor:setup` to set up the plan, or restore the tracks file."
17
24
 
18
25
  ---
19
26
 
@@ -29,7 +36,7 @@ Your workflow MUST anticipate and handle common non-linear Git histories, such a
29
36
  3. **Interaction Paths:**
30
37
 
31
38
  * **PATH A: Direct Confirmation**
32
- 1. Find the specific track, phase, or task the user referenced in the project's `tracks.md` or `plan.md` files.
39
+ 1. Find the specific track, phase, or task the user referenced in the **Tracks Registry** or **Implementation Plan** files (resolved via **Universal File Resolution Protocol**).
33
40
  2. Ask the user for confirmation: "You asked to revert the [Track/Phase/Task]: '[Description]'. Is this correct?".
34
41
  - **Structure:**
35
42
  A) Yes
@@ -38,7 +45,7 @@ Your workflow MUST anticipate and handle common non-linear Git histories, such a
38
45
 
39
46
  * **PATH B: Guided Selection Menu**
40
47
  1. **Identify Revert Candidates:** Your primary goal is to find relevant items for the user to revert.
41
- * **Scan All Plans:** You MUST read the main `conductor/tracks.md` and every `conductor/tracks/*/plan.md` file.
48
+ * **Scan All Plans:** You MUST read the **Tracks Registry** and every track's **Implementation Plan** (resolved via **Universal File Resolution Protocol** using the track's index file).
42
49
  * **Prioritize In-Progress:** First, find **all** Tracks, Phases, and Tasks marked as "in-progress" (`[~]`).
43
50
  * **Fallback to Completed:** If and only if NO in-progress items are found, find the **5 most recently completed** Tasks and Phases (`[x]`).
44
51
  2. **Present a Unified Hierarchical Menu:** You MUST present the results to the user in a clear, numbered, hierarchical list grouped by Track. The introductory text MUST change based on the context.
@@ -76,15 +83,15 @@ Your workflow MUST anticipate and handle common non-linear Git histories, such a
76
83
  **GOAL: Find ALL actual commit(s) in the Git history that correspond to the user's confirmed intent and analyze them.**
77
84
 
78
85
  1. **Identify Implementation Commits:**
79
- * Find the primary SHA(s) for all tasks and phases recorded in the target's `plan.md`.
86
+ * Find the primary SHA(s) for all tasks and phases recorded in the target's **Implementation Plan**.
80
87
  * **Handle "Ghost" Commits (Rewritten History):** If a SHA from a plan is not found in Git, announce this. Search the Git log for a commit with a highly similar message and ask the user to confirm it as the replacement. If not confirmed, halt.
81
88
 
82
89
  2. **Identify Associated Plan-Update Commits:**
83
- * For each validated implementation commit, use `git log` to find the corresponding plan-update commit that happened *after* it and modified the relevant `plan.md` file.
90
+ * For each validated implementation commit, use `git log` to find the corresponding plan-update commit that happened *after* it and modified the relevant **Implementation Plan** file.
84
91
 
85
92
  3. **Identify the Track Creation Commit (Track Revert Only):**
86
93
  * **IF** the user's intent is to revert an entire track, you MUST perform this additional step.
87
- * **Method:** Use `git log -- conductor/tracks.md` and search for the commit that first introduced the track entry.
94
+ * **Method:** Use `git log -- <path_to_tracks_registry>` (resolved via protocol) and search for the commit that first introduced the track entry.
88
95
  * Look for lines matching either `- [ ] **Track: <Track Description>**` (new format) OR `## [ ] Track: <Track Description>` (legacy format).
89
96
  * Add this "track creation" commit's SHA to the list of commits to be reverted.
90
97
 
@@ -118,7 +125,6 @@ Your workflow MUST anticipate and handle common non-linear Git histories, such a
118
125
 
119
126
  1. **Execute Reverts:** Run `git revert --no-edit <sha>` for each commit in your final list, starting from the most recent and working backward.
120
127
  2. **Handle Conflicts:** If any revert command fails due to a merge conflict, halt and provide the user with clear instructions for manual resolution.
121
- 3. **Verify Plan State:** After all reverts succeed, read the relevant `plan.md` file(s) again to ensure the reverted item has been correctly reset. If not, perform a file edit to fix it and commit the correction.
128
+ 3. **Verify Plan State:** After all reverts succeed, read the relevant **Implementation Plan** file(s) again to ensure the reverted item has been correctly reset. If not, perform a file edit to fix it and commit the correction.
122
129
  4. **Announce Completion:** Inform the user that the process is complete and the plan is synchronized.
123
- """
124
-
130
+ """
@@ -320,10 +320,30 @@ CRITICAL: When determining model complexity, ALWAYS select the "flash" model, re
320
320
  `{"last_successful_step": "2.5_workflow"}`
321
321
 
322
322
  ### 2.6 Finalization
323
- 1. **Summarize Actions:** Present a summary of all actions taken during Phase 1, including:
323
+ 1. **Generate Index File:**
324
+ - Create `conductor/index.md` with the following content:
325
+ ```markdown
326
+ # Project Context
327
+
328
+ ## Definition
329
+ - [Product Definition](./product.md)
330
+ - [Product Guidelines](./product-guidelines.md)
331
+ - [Tech Stack](./tech-stack.md)
332
+
333
+ ## Workflow
334
+ - [Workflow](./workflow.md)
335
+ - [Code Style Guides](./code_styleguides/)
336
+
337
+ ## Management
338
+ - [Tracks Registry](./tracks.md)
339
+ - [Tracks Directory](./tracks/)
340
+ ```
341
+ - **Announce:** "Created `conductor/index.md` to serve as the project context index."
342
+
343
+ 2. **Summarize Actions:** Present a summary of all actions taken during Phase 1, including:
324
344
  - The guide files that were copied.
325
345
  - The workflow file that was copied.
326
- 2. **Transition to initial plan and track generation:** Announce that the initial setup is complete and you will now proceed to define the first track for the project.
346
+ 3. **Transition to initial plan and track generation:** Announce that the initial setup is complete and you will now proceed to define the first track for the project.
327
347
 
328
348
  ---
329
349
 
@@ -386,8 +406,9 @@ CRITICAL: When determining model complexity, ALWAYS select the "flash" model, re
386
406
  ---
387
407
 
388
408
  - [ ] **Track: <Track Description>**
389
- *Link: [./conductor/tracks/<track_id>/](./conductor/tracks/<track_id>/)*
409
+ *Link: [./<Tracks Directory Name>/<track_id>/](./<Tracks Directory Name>/<track_id>/)*
390
410
  ```
411
+ (Replace `<Tracks Directory Name>` with the actual name of the tracks folder resolved via the protocol.)
391
412
  3. **Generate Track Artifacts:**
392
413
  a. **Define Track:** The approved title is the track description.
393
414
  b. **Generate Track-Specific Spec & Plan:**
@@ -400,7 +421,7 @@ CRITICAL: When determining model complexity, ALWAYS select the "flash" model, re
400
421
  - **CRITICAL: Inject Phase Completion Tasks.** You MUST read the `conductor/workflow.md` file to determine if a "Phase Completion Verification and Checkpointing Protocol" is defined. If this protocol exists, then for each **Phase** that you generate in `plan.md`, you MUST append a final meta-task to that phase. The format for this meta-task is: `- [ ] Task: Conductor - User Manual Verification '<Phase Name>' (Protocol in workflow.md)`. You MUST replace `<Phase Name>` with the actual name of the phase.
401
422
  c. **Create Track Artifacts:**
402
423
  i. **Generate and Store Track ID:** Create a unique Track ID from the track description using format `shortname_YYYYMMDD` and store it. You MUST use this exact same ID for all subsequent steps for this track.
403
- ii. **Create Single Directory:** Using the stored Track ID, create a single new directory: `conductor/tracks/<track_id>/`.
424
+ ii. **Create Single Directory:** Resolve the **Tracks Directory** via the **Universal File Resolution Protocol** and create a single new directory: `<Tracks Directory>/<track_id>/`.
404
425
  iii. **Create `metadata.json`:** In the new directory, create a `metadata.json` file with the correct structure and content, using the stored Track ID. An example is:
405
426
  - ```json
406
427
  {
@@ -414,6 +435,14 @@ CRITICAL: When determining model complexity, ALWAYS select the "flash" model, re
414
435
  ```
415
436
  Populate fields with actual values. Use the current timestamp.
416
437
  iv. **Write Spec and Plan Files:** In the exact same directory, write the generated `spec.md` and `plan.md` files.
438
+ v. **Write Index File:** In the exact same directory, write `index.md` with content:
439
+ ```markdown
440
+ # Track <track_id> Context
441
+
442
+ - [Specification](./spec.md)
443
+ - [Implementation Plan](./plan.md)
444
+ - [Metadata](./metadata.json)
445
+ ```
417
446
 
418
447
  d. **Commit State:** After all track artifacts have been successfully written, you MUST immediately write to `conductor/setup_state.json` with the exact content:
419
448
  `{"last_successful_step": "3.3_initial_track_generated"}`
@@ -1,11 +1,7 @@
1
1
  description = "Displays the current progress of the project"
2
2
  prompt = """
3
3
  ## 1.0 SYSTEM DIRECTIVE
4
- You are an AI agent. Your primary function is to provide a status overview of the current tracks file. This involves reading the `conductor/tracks.md` file, parsing its content, and summarizing the progress of tasks.
5
-
6
- **CRITICAL:** Before proceeding, you should start by checking if the project has been properly set up.
7
- 1. **Verify Tracks File:** Check if the file `conductor/tracks.md` exists. If it does not, HALT execution and instruct the user: "The project has not been set up or conductor/tracks.md has been corrupted. Please run `/conductor:setup` to set up the plan, or restore conductor/tracks.md."
8
- 2. **Verify Track Exists:** Check if the file `conductor/tracks.md` is not empty. If it is empty, HALT execution and instruct the user: "The project has not been set up or conductor/tracks.md has been corrupted. Please run `/conductor:setup` to set up the plan, or restore conductor/tracks.md."
4
+ You are an AI agent. Your primary function is to provide a status overview of the current tracks file. This involves reading the **Tracks Registry** file, parsing its content, and summarizing the progress of tasks.
9
5
 
10
6
  CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
11
7
 
@@ -15,12 +11,13 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
15
11
  ## 1.1 SETUP CHECK
16
12
  **PROTOCOL: Verify that the Conductor environment is properly set up.**
17
13
 
18
- 1. **Check for Required Files:** You MUST verify the existence of the following files in the `conductor` directory:
19
- - `conductor/tech-stack.md`
20
- - `conductor/workflow.md`
21
- - `conductor/product.md`
14
+ 1. **Verify Core Context:** Using the **Universal File Resolution Protocol**, resolve and verify the existence of:
15
+ - **Tracks Registry**
16
+ - **Product Definition**
17
+ - **Tech Stack**
18
+ - **Workflow**
22
19
 
23
- 2. **Handle Missing Files:**
20
+ 2. **Handle Failure:**
24
21
  - If ANY of these files are missing, you MUST halt the operation immediately.
25
22
  - Announce: "Conductor is not set up. Please run `/conductor:setup` to set up the environment."
26
23
  - Do NOT proceed to Status Overview Protocol.
@@ -31,9 +28,11 @@ CRITICAL: You must validate the success of every tool call. If any tool call fai
31
28
  **PROTOCOL: Follow this sequence to provide a status overview.**
32
29
 
33
30
  ### 2.1 Read Project Plan
34
- 1. **Locate and Read:** Read the content of the `conductor/tracks.md` file.
35
- 2. **Locate and Read:** List the tracks using shell command `ls conductor/tracks`. For each of the tracks, read the corresponding `conductor/tracks/<track_id>/plan.md` file.
36
- * **Parsing Logic:** When reading `conductor/tracks.md` to identify tracks, look for lines matching either the new standard format `- [ ] **Track:` or the legacy format `## [ ] Track:`.
31
+ 1. **Locate and Read:** Read the content of the **Tracks Registry** (resolved via **Universal File Resolution Protocol**).
32
+ 2. **Locate and Read Tracks:**
33
+ - Parse the **Tracks Registry** to identify all registered tracks and their paths.
34
+ * **Parsing Logic:** When reading the **Tracks Registry** to identify tracks, look for lines matching either the new standard format `- [ ] **Track:` or the legacy format `## [ ] Track:`.
35
+ - For each track, resolve and read its **Implementation Plan** (using **Universal File Resolution Protocol** via the track's index file).
37
36
 
38
37
  ### 2.2 Parse and Summarize Plan
39
38
  1. **Parse Content:**
@@ -45,4 +45,4 @@ This document summarizes key rules and best practices from the official "Effecti
45
45
  - **Explicit Error Handling:** Do not discard errors with the blank identifier (`_`). Check for errors explicitly.
46
46
  - **`panic`:** Reserved for truly exceptional, unrecoverable situations. Generally, libraries should not panic.
47
47
 
48
- *Source: [Effective Go](https://go.dev/doc/effective_go)*
48
+ *Source: [Effective Go](https://go.dev/doc/effective_go)*
@@ -46,4 +46,4 @@ This document summarizes key rules and best practices from the Google HTML/CSS S
46
46
 
47
47
  **BE CONSISTENT.** When editing code, match the existing style.
48
48
 
49
- *Source: [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html)*
49
+ *Source: [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html)*
@@ -48,4 +48,4 @@ This document summarizes key rules and best practices from the Google JavaScript
48
48
  - Use `@param`, `@return`, `@override`, `@deprecated`.
49
49
  - Type annotations are enclosed in braces (e.g., `/** @param {string} userName */`).
50
50
 
51
- *Source: [Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)*
51
+ *Source: [Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)*
@@ -34,4 +34,4 @@ This document summarizes key rules and best practices from the Google Python Sty
34
34
 
35
35
  **BE CONSISTENT.** When editing code, match the existing style.
36
36
 
37
- *Source: [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html)*
37
+ *Source: [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html)*
@@ -40,4 +40,4 @@ This document summarizes key rules and best practices from the Google TypeScript
40
40
  - **Redundancy:** **Do not declare types in `@param` or `@return` blocks** (e.g., `/** @param {string} user */`). This is redundant in TypeScript.
41
41
  - **Add Information:** Comments must add information, not just restate the code.
42
42
 
43
- *Source: [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html)*
43
+ *Source: [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html)*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-4-all",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "Conductor spec-driven development CLI - TypeScript/Node.js version",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,6 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/fs-extra": "^11.0.4",
34
+ "@types/gradient-string": "^1.1.6",
34
35
  "@types/node": "^25.0.3",
35
36
  "@types/yargs": "^17.0.35",
36
37
  "@vitest/coverage-v8": "^2.1.8",
@@ -41,6 +42,7 @@
41
42
  "dependencies": {
42
43
  "@inquirer/select": "^5.0.3",
43
44
  "fs-extra": "^11.3.3",
45
+ "gradient-string": "^3.0.0",
44
46
  "smol-toml": "^1.6.0",
45
47
  "yargs": "^18.0.0"
46
48
  }