@thiagodiogo/pscode 2.0.1 → 2.1.0
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/core/profiles.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface ProfileDefinition {
|
|
|
14
14
|
export declare const PROFILES: {
|
|
15
15
|
readonly standard: {
|
|
16
16
|
readonly description: "Padrão — propose, explore, apply, complete";
|
|
17
|
-
readonly workflows: readonly ["propose", "explore", "apply", "complete"];
|
|
17
|
+
readonly workflows: readonly ["propose", "explore", "apply", "complete", "trello-setup", "draft"];
|
|
18
18
|
};
|
|
19
19
|
readonly dixi: {
|
|
20
20
|
readonly description: "Dixi — RFC→Design→Tasks→Apply com guardrails para Java/Spring e React/Next.js";
|
package/dist/core/profiles.js
CHANGED
|
@@ -29,7 +29,7 @@ export const ALL_WORKFLOWS = [
|
|
|
29
29
|
export const PROFILES = {
|
|
30
30
|
standard: {
|
|
31
31
|
description: 'Padrão — propose, explore, apply, complete',
|
|
32
|
-
workflows: ['propose', 'explore', 'apply', 'complete'],
|
|
32
|
+
workflows: ['propose', 'explore', 'apply', 'complete', 'trello-setup', 'draft'],
|
|
33
33
|
},
|
|
34
34
|
dixi: {
|
|
35
35
|
description: 'Dixi — RFC→Design→Tasks→Apply com guardrails para Java/Spring e React/Next.js',
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trello Next-Step Comment Utility
|
|
3
|
+
*
|
|
4
|
+
* Builds and posts a Trello comment at the end of each workflow step,
|
|
5
|
+
* showing the exact command (with card title pre-filled) to advance
|
|
6
|
+
* to the next stage.
|
|
7
|
+
*
|
|
8
|
+
* Usage: import buildNextStepComment and call it with the current stage
|
|
9
|
+
* and card title. Post the result via mcp__claude_ai_Trello_Custom__add_comment.
|
|
10
|
+
*/
|
|
11
|
+
export type WorkflowStage = 'draft' | 'explore' | 'propose' | 'apply';
|
|
12
|
+
/**
|
|
13
|
+
* Returns the markdown text for the next-step comment.
|
|
14
|
+
* Paste this into mcp__claude_ai_Trello_Custom__add_comment as `text`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function buildNextStepComment(stage: WorkflowStage, cardTitle: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the instruction block to be embedded inside a workflow template.
|
|
19
|
+
* Tells the AI agent how and when to post the next-step comment.
|
|
20
|
+
*
|
|
21
|
+
* @param stage The current workflow stage (determines which command appears)
|
|
22
|
+
* @param titleVar The template variable name that holds the card title at runtime
|
|
23
|
+
* (e.g. "<title>", "<cardTitle>"). Default: "<title>"
|
|
24
|
+
*/
|
|
25
|
+
export declare function getNextStepCommentInstructionBlock(stage: WorkflowStage, titleVar?: string): string;
|
|
26
|
+
//# sourceMappingURL=trello-next-step-comment.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trello Next-Step Comment Utility
|
|
3
|
+
*
|
|
4
|
+
* Builds and posts a Trello comment at the end of each workflow step,
|
|
5
|
+
* showing the exact command (with card title pre-filled) to advance
|
|
6
|
+
* to the next stage.
|
|
7
|
+
*
|
|
8
|
+
* Usage: import buildNextStepComment and call it with the current stage
|
|
9
|
+
* and card title. Post the result via mcp__claude_ai_Trello_Custom__add_comment.
|
|
10
|
+
*/
|
|
11
|
+
const NEXT_STEP = {
|
|
12
|
+
draft: { command: 'ps:propose', label: 'Refinar e gerar os artefatos da change' },
|
|
13
|
+
explore: { command: 'ps:propose', label: 'Propor a change com todos os artefatos' },
|
|
14
|
+
propose: { command: 'ps:apply', label: 'Implementar as tasks da change' },
|
|
15
|
+
apply: { command: 'ps:complete', label: 'Finalizar e sincronizar a change' },
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Returns the markdown text for the next-step comment.
|
|
19
|
+
* Paste this into mcp__claude_ai_Trello_Custom__add_comment as `text`.
|
|
20
|
+
*/
|
|
21
|
+
export function buildNextStepComment(stage, cardTitle) {
|
|
22
|
+
const next = NEXT_STEP[stage];
|
|
23
|
+
const escapedTitle = cardTitle.replace(/"/g, '\\"');
|
|
24
|
+
return `**Avançar etapa:** ${next.label}
|
|
25
|
+
|
|
26
|
+
\`\`\`
|
|
27
|
+
/${next.command} "${escapedTitle}"
|
|
28
|
+
\`\`\``;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns the instruction block to be embedded inside a workflow template.
|
|
32
|
+
* Tells the AI agent how and when to post the next-step comment.
|
|
33
|
+
*
|
|
34
|
+
* @param stage The current workflow stage (determines which command appears)
|
|
35
|
+
* @param titleVar The template variable name that holds the card title at runtime
|
|
36
|
+
* (e.g. "<title>", "<cardTitle>"). Default: "<title>"
|
|
37
|
+
*/
|
|
38
|
+
export function getNextStepCommentInstructionBlock(stage, titleVar = '<title>') {
|
|
39
|
+
const next = NEXT_STEP[stage];
|
|
40
|
+
const escapedTitleVar = titleVar.replace(/"/g, '\\"');
|
|
41
|
+
return `## Step — Add next-step comment
|
|
42
|
+
|
|
43
|
+
Post a comment on the card so the team always has the ready-to-paste command for the next stage.
|
|
44
|
+
|
|
45
|
+
\`\`\`tool
|
|
46
|
+
mcp__claude_ai_Trello_Custom__add_comment
|
|
47
|
+
card_id: "<cardId>"
|
|
48
|
+
text: |
|
|
49
|
+
**Avançar etapa:** ${next.label}
|
|
50
|
+
|
|
51
|
+
\`\`\`
|
|
52
|
+
/${next.command} "${escapedTitleVar}"
|
|
53
|
+
\`\`\`
|
|
54
|
+
\`\`\`
|
|
55
|
+
|
|
56
|
+
If this call fails, log the error and continue — the comment is auxiliary, never blocking.`;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=trello-next-step-comment.js.map
|