@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,44 +2,44 @@
2
2
  * Static template strings for Zsh completion scripts.
3
3
  * These are Zsh-specific helper functions that never change.
4
4
  */
5
- export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
-
7
- # Use pscode __complete to get available changes
8
- _pscode_complete_changes() {
9
- local -a changes
10
- while IFS=$'\\t' read -r id desc; do
11
- changes+=("$id:$desc")
12
- done < <(pscode __complete changes 2>/dev/null)
13
- _describe "change" changes
14
- }
15
-
16
- # Use pscode __complete to get available specs
17
- _pscode_complete_specs() {
18
- local -a specs
19
- while IFS=$'\\t' read -r id desc; do
20
- specs+=("$id:$desc")
21
- done < <(pscode __complete specs 2>/dev/null)
22
- _describe "spec" specs
23
- }
24
-
25
- # Get both changes and specs
26
- _pscode_complete_items() {
27
- local -a items
28
- while IFS=$'\\t' read -r id desc; do
29
- items+=("$id:$desc")
30
- done < <(pscode __complete changes 2>/dev/null)
31
- while IFS=$'\\t' read -r id desc; do
32
- items+=("$id:$desc")
33
- done < <(pscode __complete specs 2>/dev/null)
34
- _describe "item" items
35
- }
36
-
37
- # Use pscode __complete to get available schemas
38
- _pscode_complete_schemas() {
39
- local -a schemas
40
- while IFS=$'\\t' read -r id desc; do
41
- schemas+=("$id:$desc")
42
- done < <(pscode __complete schemas 2>/dev/null)
43
- _describe "schema" schemas
5
+ export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ # Use pscode __complete to get available changes
8
+ _pscode_complete_changes() {
9
+ local -a changes
10
+ while IFS=$'\\t' read -r id desc; do
11
+ changes+=("$id:$desc")
12
+ done < <(pscode __complete changes 2>/dev/null)
13
+ _describe "change" changes
14
+ }
15
+
16
+ # Use pscode __complete to get available specs
17
+ _pscode_complete_specs() {
18
+ local -a specs
19
+ while IFS=$'\\t' read -r id desc; do
20
+ specs+=("$id:$desc")
21
+ done < <(pscode __complete specs 2>/dev/null)
22
+ _describe "spec" specs
23
+ }
24
+
25
+ # Get both changes and specs
26
+ _pscode_complete_items() {
27
+ local -a items
28
+ while IFS=$'\\t' read -r id desc; do
29
+ items+=("$id:$desc")
30
+ done < <(pscode __complete changes 2>/dev/null)
31
+ while IFS=$'\\t' read -r id desc; do
32
+ items+=("$id:$desc")
33
+ done < <(pscode __complete specs 2>/dev/null)
34
+ _describe "item" items
35
+ }
36
+
37
+ # Use pscode __complete to get available schemas
38
+ _pscode_complete_schemas() {
39
+ local -a schemas
40
+ while IFS=$'\\t' read -r id desc; do
41
+ schemas+=("$id:$desc")
42
+ done < <(pscode __complete schemas 2>/dev/null)
43
+ _describe "schema" schemas
44
44
  }`;
45
45
  //# sourceMappingURL=zsh-templates.js.map
package/dist/core/init.js CHANGED
@@ -42,7 +42,6 @@ const WORKFLOW_TO_SKILL_DIR = {
42
42
  'continue': 'pscode-continue-change',
43
43
  'apply': 'pscode-apply-change',
44
44
  'ff': 'pscode-ff-change',
45
- 'sync': 'pscode-sync-specs',
46
45
  'complete': 'pscode-archive-change',
47
46
  'bulk-archive': 'pscode-bulk-archive-change',
48
47
  'verify': 'pscode-verify-change',
@@ -13,7 +13,6 @@ export const WORKFLOW_TO_SKILL_DIR = {
13
13
  'continue': 'pscode-continue-change',
14
14
  'apply': 'pscode-apply-change',
15
15
  'ff': 'pscode-ff-change',
16
- 'sync': 'pscode-sync-specs',
17
16
  'complete': 'pscode-archive-change',
18
17
  'bulk-archive': 'pscode-bulk-archive-change',
19
18
  'verify': 'pscode-verify-change',
@@ -5,7 +5,7 @@
5
5
  * `pscode init --profile <name>` or `pscode config profile <name>`.
6
6
  * The workflow lists are fixed in code — users cannot customise them.
7
7
  */
8
- export declare const ALL_WORKFLOWS: readonly ["propose", "explore", "new", "continue", "apply", "ff", "sync", "complete", "bulk-archive", "verify", "onboard", "trello-setup", "draft", "rfc", "design", "tasks", "arch-check", "adr", "jira-sync", "dod"];
8
+ export declare const ALL_WORKFLOWS: readonly ["propose", "explore", "new", "continue", "apply", "ff", "complete", "bulk-archive", "verify", "onboard", "trello-setup", "draft", "rfc", "design", "tasks", "arch-check", "adr", "jira-sync", "dod"];
9
9
  export type WorkflowId = (typeof ALL_WORKFLOWS)[number];
10
10
  export interface ProfileDefinition {
11
11
  description: string;
@@ -13,8 +13,8 @@ export interface ProfileDefinition {
13
13
  }
14
14
  export declare const PROFILES: {
15
15
  readonly standard: {
16
- readonly description: "Padrão — propose, explore, apply, sync, complete";
17
- readonly workflows: readonly ["propose", "explore", "apply", "sync", "complete"];
16
+ readonly description: "Padrão — propose, explore, apply, complete";
17
+ readonly workflows: readonly ["propose", "explore", "apply", "complete"];
18
18
  };
19
19
  readonly dixi: {
20
20
  readonly description: "Dixi — RFC→Design→Tasks→Apply com guardrails para Java/Spring e React/Next.js";
@@ -12,7 +12,6 @@ export const ALL_WORKFLOWS = [
12
12
  'continue',
13
13
  'apply',
14
14
  'ff',
15
- 'sync',
16
15
  'complete',
17
16
  'bulk-archive',
18
17
  'verify',
@@ -29,8 +28,8 @@ export const ALL_WORKFLOWS = [
29
28
  ];
30
29
  export const PROFILES = {
31
30
  standard: {
32
- description: 'Padrão — propose, explore, apply, sync, complete',
33
- workflows: ['propose', 'explore', 'apply', 'sync', 'complete'],
31
+ description: 'Padrão — propose, explore, apply, complete',
32
+ workflows: ['propose', 'explore', 'apply', 'complete'],
34
33
  },
35
34
  dixi: {
36
35
  description: 'Dixi — RFC→Design→Tasks→Apply com guardrails para Java/Spring e React/Next.js',
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Shared utilities for generating skill and command files.
5
5
  */
6
- import { getExploreSkillTemplate, getNewChangeSkillTemplate, getContinueChangeSkillTemplate, getApplyChangeSkillTemplate, getFfChangeSkillTemplate, getSyncSpecsSkillTemplate, getCompleteChangeSkillTemplate, getBulkArchiveChangeSkillTemplate, getVerifyChangeSkillTemplate, getOnboardSkillTemplate, getProposeSkillTemplate, getTrelloSetupSkillTemplate, getTrelloDraftSkillTemplate, getPsExploreCommandTemplate, getPsNewCommandTemplate, getPsContinueCommandTemplate, getPsApplyCommandTemplate, getPsFfCommandTemplate, getPsSyncCommandTemplate, getPsCompleteCommandTemplate, getPsBulkArchiveCommandTemplate, getPsVerifyCommandTemplate, getPsOnboardCommandTemplate, getPsProposeCommandTemplate, getTrelloSetupCommandTemplate, getTrelloDraftCommandTemplate, } from '../templates/skill-templates.js';
6
+ import { getExploreSkillTemplate, getNewChangeSkillTemplate, getContinueChangeSkillTemplate, getApplyChangeSkillTemplate, getFfChangeSkillTemplate, getCompleteChangeSkillTemplate, getBulkArchiveChangeSkillTemplate, getVerifyChangeSkillTemplate, getOnboardSkillTemplate, getProposeSkillTemplate, getTrelloSetupSkillTemplate, getTrelloDraftSkillTemplate, getPsExploreCommandTemplate, getPsNewCommandTemplate, getPsContinueCommandTemplate, getPsApplyCommandTemplate, getPsFfCommandTemplate, getPsCompleteCommandTemplate, getPsBulkArchiveCommandTemplate, getPsVerifyCommandTemplate, getPsOnboardCommandTemplate, getPsProposeCommandTemplate, getTrelloSetupCommandTemplate, getTrelloDraftCommandTemplate, } from '../templates/skill-templates.js';
7
7
  /**
8
8
  * Gets skill templates with their directory names, optionally filtered by workflow IDs.
9
9
  *
@@ -16,7 +16,6 @@ export function getSkillTemplates(workflowFilter) {
16
16
  { template: getContinueChangeSkillTemplate(), dirName: 'pscode-continue-change', workflowId: 'continue' },
17
17
  { template: getApplyChangeSkillTemplate(), dirName: 'pscode-apply-change', workflowId: 'apply' },
18
18
  { template: getFfChangeSkillTemplate(), dirName: 'pscode-ff-change', workflowId: 'ff' },
19
- { template: getSyncSpecsSkillTemplate(), dirName: 'pscode-sync-specs', workflowId: 'sync' },
20
19
  { template: getCompleteChangeSkillTemplate(), dirName: 'pscode-archive-change', workflowId: 'complete' },
21
20
  { template: getBulkArchiveChangeSkillTemplate(), dirName: 'pscode-bulk-archive-change', workflowId: 'bulk-archive' },
22
21
  { template: getVerifyChangeSkillTemplate(), dirName: 'pscode-verify-change', workflowId: 'verify' },
@@ -43,7 +42,6 @@ export function getCommandTemplates(workflowFilter) {
43
42
  { template: getPsContinueCommandTemplate(), id: 'continue' },
44
43
  { template: getPsApplyCommandTemplate(), id: 'apply' },
45
44
  { template: getPsFfCommandTemplate(), id: 'ff' },
46
- { template: getPsSyncCommandTemplate(), id: 'sync' },
47
45
  { template: getPsCompleteCommandTemplate(), id: 'complete' },
48
46
  { template: getPsBulkArchiveCommandTemplate(), id: 'bulk-archive' },
49
47
  { template: getPsVerifyCommandTemplate(), id: 'verify' },
@@ -6,12 +6,12 @@
6
6
  /**
7
7
  * Names of skill directories created by pscode init.
8
8
  */
9
- export declare const SKILL_NAMES: readonly ["pscode-explore", "pscode-new-change", "pscode-continue-change", "pscode-apply-change", "pscode-ff-change", "pscode-sync-specs", "pscode-archive-change", "pscode-bulk-archive-change", "pscode-verify-change", "pscode-onboard", "pscode-propose"];
9
+ export declare const SKILL_NAMES: readonly ["pscode-explore", "pscode-new-change", "pscode-continue-change", "pscode-apply-change", "pscode-ff-change", "pscode-archive-change", "pscode-bulk-archive-change", "pscode-verify-change", "pscode-onboard", "pscode-propose"];
10
10
  export type SkillName = (typeof SKILL_NAMES)[number];
11
11
  /**
12
12
  * IDs of command templates created by pscode init.
13
13
  */
14
- export declare const COMMAND_IDS: readonly ["explore", "new", "continue", "apply", "ff", "sync", "complete", "bulk-archive", "verify", "onboard", "propose"];
14
+ export declare const COMMAND_IDS: readonly ["explore", "new", "continue", "apply", "ff", "complete", "bulk-archive", "verify", "onboard", "propose"];
15
15
  export type CommandId = (typeof COMMAND_IDS)[number];
16
16
  /**
17
17
  * Status of skill configuration for a tool.
@@ -15,7 +15,6 @@ export const SKILL_NAMES = [
15
15
  'pscode-continue-change',
16
16
  'pscode-apply-change',
17
17
  'pscode-ff-change',
18
- 'pscode-sync-specs',
19
18
  'pscode-archive-change',
20
19
  'pscode-bulk-archive-change',
21
20
  'pscode-verify-change',
@@ -31,7 +30,6 @@ export const COMMAND_IDS = [
31
30
  'continue',
32
31
  'apply',
33
32
  'ff',
34
- 'sync',
35
33
  'complete',
36
34
  'bulk-archive',
37
35
  'verify',
@@ -9,7 +9,6 @@ export { getNewChangeSkillTemplate, getPsNewCommandTemplate } from './workflows/
9
9
  export { getContinueChangeSkillTemplate, getPsContinueCommandTemplate } from './workflows/continue-change.js';
10
10
  export { getApplyChangeSkillTemplate, getPsApplyCommandTemplate } from './workflows/apply-change.js';
11
11
  export { getFfChangeSkillTemplate, getPsFfCommandTemplate } from './workflows/ff-change.js';
12
- export { getSyncSpecsSkillTemplate, getPsSyncCommandTemplate } from './workflows/sync-specs.js';
13
12
  export { getCompleteChangeSkillTemplate, getPsCompleteCommandTemplate } from './workflows/archive-change.js';
14
13
  export { getBulkArchiveChangeSkillTemplate, getPsBulkArchiveCommandTemplate } from './workflows/bulk-archive-change.js';
15
14
  export { getVerifyChangeSkillTemplate, getPsVerifyCommandTemplate } from './workflows/verify-change.js';
@@ -8,7 +8,6 @@ export { getNewChangeSkillTemplate, getPsNewCommandTemplate } from './workflows/
8
8
  export { getContinueChangeSkillTemplate, getPsContinueCommandTemplate } from './workflows/continue-change.js';
9
9
  export { getApplyChangeSkillTemplate, getPsApplyCommandTemplate } from './workflows/apply-change.js';
10
10
  export { getFfChangeSkillTemplate, getPsFfCommandTemplate } from './workflows/ff-change.js';
11
- export { getSyncSpecsSkillTemplate, getPsSyncCommandTemplate } from './workflows/sync-specs.js';
12
11
  export { getCompleteChangeSkillTemplate, getPsCompleteCommandTemplate } from './workflows/archive-change.js';
13
12
  export { getBulkArchiveChangeSkillTemplate, getPsBulkArchiveCommandTemplate } from './workflows/bulk-archive-change.js';
14
13
  export { getVerifyChangeSkillTemplate, getPsVerifyCommandTemplate } from './workflows/verify-change.js';