@thiagodiogo/pscode 1.0.1 → 2.0.1

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 (60) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +142 -142
  3. package/bin/pscode.js +4 -4
  4. package/dist/cli/index.js +0 -1
  5. package/dist/commands/feedback.js +4 -4
  6. package/dist/commands/schema.js +60 -60
  7. package/dist/core/collections/initiatives/templates.js +57 -57
  8. package/dist/core/command-generation/adapters/claude.js +8 -8
  9. package/dist/core/command-generation/adapters/codex.js +6 -6
  10. package/dist/core/command-generation/adapters/cursor.js +8 -8
  11. package/dist/core/command-generation/adapters/gemini.js +5 -5
  12. package/dist/core/command-generation/adapters/github-copilot.js +5 -5
  13. package/dist/core/complete.d.ts +0 -1
  14. package/dist/core/complete.js +35 -59
  15. package/dist/core/completions/command-registry.js +0 -4
  16. package/dist/core/completions/generators/bash-generator.js +41 -41
  17. package/dist/core/completions/generators/fish-generator.js +7 -7
  18. package/dist/core/completions/generators/powershell-generator.js +29 -29
  19. package/dist/core/completions/generators/zsh-generator.js +33 -33
  20. package/dist/core/completions/templates/bash-templates.js +24 -24
  21. package/dist/core/completions/templates/fish-templates.js +38 -38
  22. package/dist/core/completions/templates/powershell-templates.js +28 -28
  23. package/dist/core/completions/templates/zsh-templates.js +39 -39
  24. package/dist/core/init.js +0 -1
  25. package/dist/core/profile-sync-drift.js +0 -1
  26. package/dist/core/profiles.d.ts +3 -3
  27. package/dist/core/profiles.js +2 -3
  28. package/dist/core/shared/skill-generation.js +1 -3
  29. package/dist/core/shared/tool-detection.d.ts +2 -2
  30. package/dist/core/shared/tool-detection.js +0 -2
  31. package/dist/core/templates/skill-templates.d.ts +0 -1
  32. package/dist/core/templates/skill-templates.js +0 -1
  33. package/dist/core/templates/workflows/apply-change.js +264 -264
  34. package/dist/core/templates/workflows/archive-change.js +204 -204
  35. package/dist/core/templates/workflows/bulk-archive-change.js +472 -472
  36. package/dist/core/templates/workflows/continue-change.js +214 -214
  37. package/dist/core/templates/workflows/explore.js +735 -735
  38. package/dist/core/templates/workflows/feedback.js +97 -97
  39. package/dist/core/templates/workflows/ff-change.js +180 -180
  40. package/dist/core/templates/workflows/new-change.js +123 -123
  41. package/dist/core/templates/workflows/onboard.js +584 -584
  42. package/dist/core/templates/workflows/propose.js +324 -324
  43. package/dist/core/templates/workflows/trello-draft.js +194 -194
  44. package/dist/core/templates/workflows/trello-setup.js +292 -292
  45. package/dist/core/templates/workflows/verify-change.js +318 -318
  46. package/dist/core/workspace/open-surface.js +30 -30
  47. package/package.json +18 -20
  48. package/schemas/spec-driven/schema.yaml +153 -153
  49. package/schemas/spec-driven/templates/design.md +19 -19
  50. package/schemas/spec-driven/templates/proposal.md +23 -23
  51. package/schemas/spec-driven/templates/spec.md +8 -8
  52. package/schemas/spec-driven/templates/tasks.md +9 -9
  53. package/schemas/workspace-planning/schema.yaml +72 -72
  54. package/schemas/workspace-planning/templates/design.md +33 -33
  55. package/schemas/workspace-planning/templates/proposal.md +28 -28
  56. package/schemas/workspace-planning/templates/spec.md +9 -9
  57. package/schemas/workspace-planning/templates/tasks.md +15 -15
  58. package/scripts/postinstall.js +83 -83
  59. package/dist/core/templates/workflows/sync-specs.d.ts +0 -10
  60. package/dist/core/templates/workflows/sync-specs.js +0 -290
@@ -2,68 +2,68 @@ export function getNewChangeSkillTemplate() {
2
2
  return {
3
3
  name: 'pscode-new-change',
4
4
  description: 'Start a new Pscode change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.',
5
- instructions: `Start a new change using the experimental artifact-driven approach.
6
-
7
- **Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
8
-
9
- **Steps**
10
-
11
- 1. **If no clear input provided, ask what they want to build**
12
-
13
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
14
- > "What change do you want to work on? Describe what you want to build or fix."
15
-
16
- From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
17
-
18
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
19
-
20
- 2. **Determine the workflow schema**
21
-
22
- Use the default schema (omit \`--schema\`) unless the user explicitly requests a different workflow.
23
-
24
- **Use a different schema only if the user mentions:**
25
- - A specific schema name → use \`--schema <name>\`
26
- - "show workflows" or "what workflows" → run \`pscode schemas --json\` and let them choose
27
-
28
- **Otherwise**: Omit \`--schema\` to use the default.
29
-
30
- 3. **Create the change directory**
31
- \`\`\`bash
32
- pscode new change "<name>"
33
- \`\`\`
34
- Add \`--schema <name>\` only if the user requested a specific workflow.
35
- This creates a scaffolded change in the planning home resolved by the CLI.
36
-
37
- 4. **Show the artifact status**
38
- \`\`\`bash
39
- pscode status --change "<name>" --json
40
- \`\`\`
41
- Use the returned \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`nextSteps\` instead of assuming repo-local paths.
42
-
43
- 5. **Get instructions for the first artifact**
44
- The first artifact depends on the schema (e.g., \`proposal\` for spec-driven).
45
- Check the status output to find the first artifact with status "ready".
46
- \`\`\`bash
47
- pscode instructions <first-artifact-id> --change "<name>"
48
- \`\`\`
49
- This outputs the template and context for creating the first artifact.
50
-
51
- 6. **STOP and wait for user direction**
52
-
53
- **Output**
54
-
55
- After completing the steps, summarize:
56
- - Change name and location
57
- - Schema/workflow being used and its artifact sequence
58
- - Current status (0/N artifacts complete)
59
- - The template for the first artifact
60
- - Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."
61
-
62
- **Guardrails**
63
- - Do NOT create any artifacts yet - just show the instructions
64
- - Do NOT advance beyond showing the first artifact template
65
- - If the name is invalid (not kebab-case), ask for a valid name
66
- - If a change with that name already exists, suggest continuing that change instead
5
+ instructions: `Start a new change using the experimental artifact-driven approach.
6
+
7
+ **Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
8
+
9
+ **Steps**
10
+
11
+ 1. **If no clear input provided, ask what they want to build**
12
+
13
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
14
+ > "What change do you want to work on? Describe what you want to build or fix."
15
+
16
+ From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
17
+
18
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
19
+
20
+ 2. **Determine the workflow schema**
21
+
22
+ Use the default schema (omit \`--schema\`) unless the user explicitly requests a different workflow.
23
+
24
+ **Use a different schema only if the user mentions:**
25
+ - A specific schema name → use \`--schema <name>\`
26
+ - "show workflows" or "what workflows" → run \`pscode schemas --json\` and let them choose
27
+
28
+ **Otherwise**: Omit \`--schema\` to use the default.
29
+
30
+ 3. **Create the change directory**
31
+ \`\`\`bash
32
+ pscode new change "<name>"
33
+ \`\`\`
34
+ Add \`--schema <name>\` only if the user requested a specific workflow.
35
+ This creates a scaffolded change in the planning home resolved by the CLI.
36
+
37
+ 4. **Show the artifact status**
38
+ \`\`\`bash
39
+ pscode status --change "<name>" --json
40
+ \`\`\`
41
+ Use the returned \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`nextSteps\` instead of assuming repo-local paths.
42
+
43
+ 5. **Get instructions for the first artifact**
44
+ The first artifact depends on the schema (e.g., \`proposal\` for spec-driven).
45
+ Check the status output to find the first artifact with status "ready".
46
+ \`\`\`bash
47
+ pscode instructions <first-artifact-id> --change "<name>"
48
+ \`\`\`
49
+ This outputs the template and context for creating the first artifact.
50
+
51
+ 6. **STOP and wait for user direction**
52
+
53
+ **Output**
54
+
55
+ After completing the steps, summarize:
56
+ - Change name and location
57
+ - Schema/workflow being used and its artifact sequence
58
+ - Current status (0/N artifacts complete)
59
+ - The template for the first artifact
60
+ - Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."
61
+
62
+ **Guardrails**
63
+ - Do NOT create any artifacts yet - just show the instructions
64
+ - Do NOT advance beyond showing the first artifact template
65
+ - If the name is invalid (not kebab-case), ask for a valid name
66
+ - If a change with that name already exists, suggest continuing that change instead
67
67
  - Pass --schema if using a non-default workflow`,
68
68
  license: 'MIT',
69
69
  compatibility: 'Requires pscode CLI.',
@@ -76,67 +76,67 @@ export function getPsNewCommandTemplate() {
76
76
  description: 'Start a new change using the experimental artifact workflow (OPSX)',
77
77
  category: 'Workflow',
78
78
  tags: ['workflow', 'artifacts', 'experimental'],
79
- content: `Start a new change using the experimental artifact-driven approach.
80
-
81
- **Input**: The argument after \`/ps:new\` is the change name (kebab-case), OR a description of what the user wants to build.
82
-
83
- **Steps**
84
-
85
- 1. **If no input provided, ask what they want to build**
86
-
87
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
88
- > "What change do you want to work on? Describe what you want to build or fix."
89
-
90
- From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
91
-
92
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
93
-
94
- 2. **Determine the workflow schema**
95
-
96
- Use the default schema (omit \`--schema\`) unless the user explicitly requests a different workflow.
97
-
98
- **Use a different schema only if the user mentions:**
99
- - A specific schema name → use \`--schema <name>\`
100
- - "show workflows" or "what workflows" → run \`pscode schemas --json\` and let them choose
101
-
102
- **Otherwise**: Omit \`--schema\` to use the default.
103
-
104
- 3. **Create the change directory**
105
- \`\`\`bash
106
- pscode new change "<name>"
107
- \`\`\`
108
- Add \`--schema <name>\` only if the user requested a specific workflow.
109
- This creates a scaffolded change in the planning home resolved by the CLI.
110
-
111
- 4. **Show the artifact status**
112
- \`\`\`bash
113
- pscode status --change "<name>" --json
114
- \`\`\`
115
- Use the returned \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`nextSteps\` instead of assuming repo-local paths.
116
-
117
- 5. **Get instructions for the first artifact**
118
- The first artifact depends on the schema. Check the status output to find the first artifact with status "ready".
119
- \`\`\`bash
120
- pscode instructions <first-artifact-id> --change "<name>"
121
- \`\`\`
122
- This outputs the template and context for creating the first artifact.
123
-
124
- 6. **STOP and wait for user direction**
125
-
126
- **Output**
127
-
128
- After completing the steps, summarize:
129
- - Change name and location
130
- - Schema/workflow being used and its artifact sequence
131
- - Current status (0/N artifacts complete)
132
- - The template for the first artifact
133
- - Prompt: "Ready to create the first artifact? Run \`/ps:continue\` or just describe what this change is about and I'll draft it."
134
-
135
- **Guardrails**
136
- - Do NOT create any artifacts yet - just show the instructions
137
- - Do NOT advance beyond showing the first artifact template
138
- - If the name is invalid (not kebab-case), ask for a valid name
139
- - If a change with that name already exists, suggest using \`/ps:continue\` instead
79
+ content: `Start a new change using the experimental artifact-driven approach.
80
+
81
+ **Input**: The argument after \`/ps:new\` is the change name (kebab-case), OR a description of what the user wants to build.
82
+
83
+ **Steps**
84
+
85
+ 1. **If no input provided, ask what they want to build**
86
+
87
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
88
+ > "What change do you want to work on? Describe what you want to build or fix."
89
+
90
+ From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
91
+
92
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
93
+
94
+ 2. **Determine the workflow schema**
95
+
96
+ Use the default schema (omit \`--schema\`) unless the user explicitly requests a different workflow.
97
+
98
+ **Use a different schema only if the user mentions:**
99
+ - A specific schema name → use \`--schema <name>\`
100
+ - "show workflows" or "what workflows" → run \`pscode schemas --json\` and let them choose
101
+
102
+ **Otherwise**: Omit \`--schema\` to use the default.
103
+
104
+ 3. **Create the change directory**
105
+ \`\`\`bash
106
+ pscode new change "<name>"
107
+ \`\`\`
108
+ Add \`--schema <name>\` only if the user requested a specific workflow.
109
+ This creates a scaffolded change in the planning home resolved by the CLI.
110
+
111
+ 4. **Show the artifact status**
112
+ \`\`\`bash
113
+ pscode status --change "<name>" --json
114
+ \`\`\`
115
+ Use the returned \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`nextSteps\` instead of assuming repo-local paths.
116
+
117
+ 5. **Get instructions for the first artifact**
118
+ The first artifact depends on the schema. Check the status output to find the first artifact with status "ready".
119
+ \`\`\`bash
120
+ pscode instructions <first-artifact-id> --change "<name>"
121
+ \`\`\`
122
+ This outputs the template and context for creating the first artifact.
123
+
124
+ 6. **STOP and wait for user direction**
125
+
126
+ **Output**
127
+
128
+ After completing the steps, summarize:
129
+ - Change name and location
130
+ - Schema/workflow being used and its artifact sequence
131
+ - Current status (0/N artifacts complete)
132
+ - The template for the first artifact
133
+ - Prompt: "Ready to create the first artifact? Run \`/ps:continue\` or just describe what this change is about and I'll draft it."
134
+
135
+ **Guardrails**
136
+ - Do NOT create any artifacts yet - just show the instructions
137
+ - Do NOT advance beyond showing the first artifact template
138
+ - If the name is invalid (not kebab-case), ask for a valid name
139
+ - If a change with that name already exists, suggest using \`/ps:continue\` instead
140
140
  - Pass --schema if using a non-default workflow`
141
141
  };
142
142
  }