@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.
Files changed (47) hide show
  1. package/dist/commands/edit-file.d.ts.map +1 -1
  2. package/dist/commands/edit-file.js +1 -0
  3. package/dist/commands/edit-file.js.map +1 -1
  4. package/dist/commands/links.d.ts +3 -0
  5. package/dist/commands/links.d.ts.map +1 -0
  6. package/dist/commands/links.js +58 -0
  7. package/dist/commands/links.js.map +1 -0
  8. package/dist/commands/new-file.d.ts.map +1 -1
  9. package/dist/commands/new-file.js +1 -0
  10. package/dist/commands/new-file.js.map +1 -1
  11. package/dist/commands/setup-codex.d.ts +14 -0
  12. package/dist/commands/setup-codex.d.ts.map +1 -0
  13. package/dist/commands/setup-codex.js +160 -0
  14. package/dist/commands/setup-codex.js.map +1 -0
  15. package/dist/commands/setup-connect.d.ts +11 -0
  16. package/dist/commands/setup-connect.d.ts.map +1 -0
  17. package/dist/commands/setup-connect.js +52 -0
  18. package/dist/commands/setup-connect.js.map +1 -0
  19. package/dist/commands/setup-copilot.d.ts +14 -0
  20. package/dist/commands/setup-copilot.d.ts.map +1 -0
  21. package/dist/commands/setup-copilot.js +123 -0
  22. package/dist/commands/setup-copilot.js.map +1 -0
  23. package/dist/commands/setup-cursor.d.ts +15 -0
  24. package/dist/commands/setup-cursor.d.ts.map +1 -0
  25. package/dist/commands/setup-cursor.js +109 -0
  26. package/dist/commands/setup-cursor.js.map +1 -0
  27. package/dist/commands/workflows.js +2 -2
  28. package/dist/commands/workflows.js.map +1 -1
  29. package/dist/index.js +13 -2
  30. package/dist/index.js.map +1 -1
  31. package/dist/lib/client-config.d.ts +26 -0
  32. package/dist/lib/client-config.d.ts.map +1 -0
  33. package/dist/lib/client-config.js +55 -0
  34. package/dist/lib/client-config.js.map +1 -0
  35. package/dist/lib/instructions.d.ts +49 -0
  36. package/dist/lib/instructions.d.ts.map +1 -0
  37. package/dist/lib/instructions.js +138 -0
  38. package/dist/lib/instructions.js.map +1 -0
  39. package/dist/lib/msal.js +4 -4
  40. package/dist/lib/output.d.ts +2 -0
  41. package/dist/lib/output.d.ts.map +1 -1
  42. package/dist/lib/output.js +3 -0
  43. package/dist/lib/output.js.map +1 -1
  44. package/package.json +1 -1
  45. package/skills/ium/contextium.md +12 -0
  46. package/skills/ium/new-project.md +287 -3
  47. package/skills/ium/workflow.md +9 -11
@@ -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): tasks are stored as phase files in the Project Library. Surface only the **next pending phase** (first `not_started` task from the loaded data) — do not list all phases.
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 `add_task` to record them. For project workflows these are stored as phase files in the Project Library — no separate "plan" step needed.
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
- - Create 1 phase file in the Project Library
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 file per phase in the Project Library using `contextium new "<project-library>" -w <workspace> --stdin`
132
- Each file must include: phase ID (e.g. `phase-001`), title, layer, status (`pending`), and a brief implementation spec
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: create a new phase file, increment `phaseCount` via `update_workflow`, and begin it.
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 `mark_phase_complete` (MCP) or `update_workflow` with `completedCount` incremented
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
- - Never show raw file creation output only the phase list summary
156
- - Phase files go in the Project Library (the library whose name contains "Project Library")
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