@contextium/cli 1.6.5 → 1.6.7
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/commands/edit-file.d.ts.map +1 -1
- package/dist/commands/edit-file.js +1 -0
- package/dist/commands/edit-file.js.map +1 -1
- package/dist/commands/links.d.ts +3 -0
- package/dist/commands/links.d.ts.map +1 -0
- package/dist/commands/links.js +58 -0
- package/dist/commands/links.js.map +1 -0
- package/dist/commands/new-file.d.ts.map +1 -1
- package/dist/commands/new-file.js +1 -0
- package/dist/commands/new-file.js.map +1 -1
- package/dist/commands/setup-codex.d.ts +14 -0
- package/dist/commands/setup-codex.d.ts.map +1 -0
- package/dist/commands/setup-codex.js +160 -0
- package/dist/commands/setup-codex.js.map +1 -0
- package/dist/commands/setup-connect.d.ts +11 -0
- package/dist/commands/setup-connect.d.ts.map +1 -0
- package/dist/commands/setup-connect.js +52 -0
- package/dist/commands/setup-connect.js.map +1 -0
- package/dist/commands/setup-copilot.d.ts +14 -0
- package/dist/commands/setup-copilot.d.ts.map +1 -0
- package/dist/commands/setup-copilot.js +123 -0
- package/dist/commands/setup-copilot.js.map +1 -0
- package/dist/commands/setup-cursor.d.ts +15 -0
- package/dist/commands/setup-cursor.d.ts.map +1 -0
- package/dist/commands/setup-cursor.js +109 -0
- package/dist/commands/setup-cursor.js.map +1 -0
- package/dist/commands/workflows.js +2 -2
- package/dist/commands/workflows.js.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/client-config.d.ts +26 -0
- package/dist/lib/client-config.d.ts.map +1 -0
- package/dist/lib/client-config.js +55 -0
- package/dist/lib/client-config.js.map +1 -0
- package/dist/lib/instructions.d.ts +49 -0
- package/dist/lib/instructions.d.ts.map +1 -0
- package/dist/lib/instructions.js +138 -0
- package/dist/lib/instructions.js.map +1 -0
- package/dist/lib/msal.js +4 -4
- package/dist/lib/output.d.ts +2 -0
- package/dist/lib/output.d.ts.map +1 -1
- package/dist/lib/output.js +3 -0
- package/dist/lib/output.js.map +1 -1
- package/package.json +1 -1
- package/skills/ium/contextium.md +12 -0
- package/skills/ium/new-project.md +287 -3
- package/skills/ium/workflow.md +9 -11
package/skills/ium/workflow.md
CHANGED
|
@@ -92,13 +92,13 @@ Workflow loaded. What would you like to do?
|
|
|
92
92
|
|
|
93
93
|
The tasks/phases in the session context come from the `load_workflow` response — do NOT call `list_tasks` to fetch them again.
|
|
94
94
|
|
|
95
|
-
**For project workflows** (`projectConfig.contextLibraryId` is set):
|
|
95
|
+
**For project workflows** (`projectConfig.contextLibraryId` is set): phases are database records (the `workflow_phases` table), managed with the `add_phase` / `list_phases` / `update_phase_status` MCP tools — NOT files in a library. Surface only the **next pending phase** (first `not_started` phase from the loaded data) — do not list all phases.
|
|
96
96
|
|
|
97
97
|
5. After outputting the session context block, apply task awareness:
|
|
98
98
|
|
|
99
99
|
- If there is an **in_progress** task: note it as the active phase and ask if the user wants to resume it.
|
|
100
100
|
- If there is a **not_started** next phase: present it as the suggested next action. Do not auto-start — let the user confirm.
|
|
101
|
-
- If you create new action items during the session: call `
|
|
101
|
+
- If you create new action items during the session: call `add_phase(workflowId, title, ...)` to record them as phases (DB records) — no separate "plan" step and no files needed.
|
|
102
102
|
- When a task/phase is complete: call `update_task_status(taskId, 'done')`.
|
|
103
103
|
- Do not work on multiple tasks simultaneously.
|
|
104
104
|
|
|
@@ -121,16 +121,14 @@ Once the workflow is loaded and the user states what they want to do, apply this
|
|
|
121
121
|
Assess the scope of the request silently, then act accordingly:
|
|
122
122
|
|
|
123
123
|
**Simple / single task** (one clear, bounded piece of work — e.g. "fix this bug", "write a readme", "add a button"):
|
|
124
|
-
-
|
|
125
|
-
- Call `update_workflow` with `projectConfig: { phaseCount: 1, completedCount: 0, contextLibraryId: "<projectLibraryId>" }`
|
|
124
|
+
- Call `add_phase(workflowId, title)` once to create the phase (a DB record — `add_phase` lazily creates the project plan if none exists)
|
|
126
125
|
- Say: "Added as 1 phase. Starting now." — then proceed immediately as the Builder
|
|
127
126
|
|
|
128
127
|
**Complex / multi-part ask** (a feature, a new system, multiple steps — e.g. "build an onboarding flow", "add payments", "create the admin panel"):
|
|
129
128
|
- Break the work down into logical phases (DB migrations first, then API, then MCP/CLI, then UI — in dependency order)
|
|
130
129
|
- Aim for 3–10 phases. Each phase = one coherent unit of work that can be built and reviewed independently
|
|
131
|
-
- Create one phase
|
|
132
|
-
|
|
133
|
-
- Call `update_workflow` with `projectConfig: { phaseCount: <N>, completedCount: 0, contextLibraryId: "<projectLibraryId>" }`
|
|
130
|
+
- Create one phase per phase by calling `add_phase(workflowId, title, description)` — once per phase. Each phase is a DB record (the `workflow_phases` table); do NOT create files. Put the title and a brief implementation spec (layer, what to build) in the `description`.
|
|
131
|
+
- `phaseCount`/`completedCount` are maintained by the phase tools — you do NOT need to call `update_workflow` to set them
|
|
134
132
|
- Show the user the phase breakdown:
|
|
135
133
|
```
|
|
136
134
|
Planned X phases:
|
|
@@ -143,17 +141,17 @@ Assess the scope of the request silently, then act accordingly:
|
|
|
143
141
|
|
|
144
142
|
**If `phaseCount > 0` (phases already exist):**
|
|
145
143
|
- Do NOT re-plan. Go straight to the next pending phase.
|
|
146
|
-
- If the user's request is new work unrelated to existing phases:
|
|
144
|
+
- If the user's request is new work unrelated to existing phases: call `add_phase(workflowId, title)` to add it and begin it.
|
|
147
145
|
|
|
148
146
|
**Completing phases:**
|
|
149
|
-
- When a phase is done, call `
|
|
147
|
+
- When a phase is done, call `update_phase_status(phaseId, 'done')` (or `mark_phase_complete`) — the completed count updates automatically
|
|
150
148
|
- Announce progress: "Phase 2 of 5 complete." then ask if the user wants to continue to the next phase
|
|
151
149
|
- Do not auto-start the next phase without confirmation
|
|
152
150
|
|
|
153
151
|
**Rules:**
|
|
154
152
|
- Never ask the user "should I plan this?" — just assess and act
|
|
155
|
-
-
|
|
156
|
-
-
|
|
153
|
+
- Phases are DB records — never create files for them; always use `add_phase` / `list_phases` / `update_phase_status`
|
|
154
|
+
- Never show raw tool output — only the phase list summary
|
|
157
155
|
- Keep phase titles short and action-oriented (e.g. "Add payments table migration", "Build checkout API endpoint")
|
|
158
156
|
</auto-planning>
|
|
159
157
|
|