@slope-dev/slope 1.35.0 → 1.36.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.
Files changed (72) hide show
  1. package/dist/cli/commands/loop.d.ts.map +1 -1
  2. package/dist/cli/commands/loop.js +5 -0
  3. package/dist/cli/commands/loop.js.map +1 -1
  4. package/dist/cli/commands/sprint.d.ts.map +1 -1
  5. package/dist/cli/commands/sprint.js +205 -3
  6. package/dist/cli/commands/sprint.js.map +1 -1
  7. package/dist/cli/commands/workflow.d.ts +2 -0
  8. package/dist/cli/commands/workflow.d.ts.map +1 -0
  9. package/dist/cli/commands/workflow.js +165 -0
  10. package/dist/cli/commands/workflow.js.map +1 -0
  11. package/dist/cli/index.js +7 -0
  12. package/dist/cli/index.js.map +1 -1
  13. package/dist/cli/loop/types.d.ts +4 -0
  14. package/dist/cli/loop/types.d.ts.map +1 -1
  15. package/dist/cli/loop/types.js.map +1 -1
  16. package/dist/cli/loop/workflow-adapter.d.ts +53 -0
  17. package/dist/cli/loop/workflow-adapter.d.ts.map +1 -0
  18. package/dist/cli/loop/workflow-adapter.js +123 -0
  19. package/dist/cli/loop/workflow-adapter.js.map +1 -0
  20. package/dist/cli/registry.d.ts.map +1 -1
  21. package/dist/cli/registry.js +8 -0
  22. package/dist/cli/registry.js.map +1 -1
  23. package/dist/core/guard.d.ts +1 -1
  24. package/dist/core/guard.d.ts.map +1 -1
  25. package/dist/core/guard.js +8 -0
  26. package/dist/core/guard.js.map +1 -1
  27. package/dist/core/index.d.ts +9 -1
  28. package/dist/core/index.d.ts.map +1 -1
  29. package/dist/core/index.js +8 -0
  30. package/dist/core/index.js.map +1 -1
  31. package/dist/core/store.d.ts +25 -1
  32. package/dist/core/store.d.ts.map +1 -1
  33. package/dist/core/types.d.ts +34 -0
  34. package/dist/core/types.d.ts.map +1 -1
  35. package/dist/core/workflow-engine.d.ts +89 -0
  36. package/dist/core/workflow-engine.d.ts.map +1 -0
  37. package/dist/core/workflow-engine.js +223 -0
  38. package/dist/core/workflow-engine.js.map +1 -0
  39. package/dist/core/workflow-loader.d.ts +21 -0
  40. package/dist/core/workflow-loader.d.ts.map +1 -0
  41. package/dist/core/workflow-loader.js +110 -0
  42. package/dist/core/workflow-loader.js.map +1 -0
  43. package/dist/core/workflow-validator.d.ts +19 -0
  44. package/dist/core/workflow-validator.d.ts.map +1 -0
  45. package/dist/core/workflow-validator.js +166 -0
  46. package/dist/core/workflow-validator.js.map +1 -0
  47. package/dist/core/workflow.d.ts +51 -0
  48. package/dist/core/workflow.d.ts.map +1 -0
  49. package/dist/core/workflow.js +190 -0
  50. package/dist/core/workflow.js.map +1 -0
  51. package/dist/mcp/index.d.ts +1 -1
  52. package/dist/mcp/index.d.ts.map +1 -1
  53. package/dist/mcp/index.js +138 -2
  54. package/dist/mcp/index.js.map +1 -1
  55. package/dist/mcp/index.test.js +10 -2
  56. package/dist/mcp/index.test.js.map +1 -1
  57. package/dist/mcp/registry.d.ts +1 -1
  58. package/dist/mcp/registry.d.ts.map +1 -1
  59. package/dist/mcp/registry.js +71 -0
  60. package/dist/mcp/registry.js.map +1 -1
  61. package/dist/store/index.d.ts +25 -1
  62. package/dist/store/index.d.ts.map +1 -1
  63. package/dist/store/index.js +144 -0
  64. package/dist/store/index.js.map +1 -1
  65. package/dist/store-pg/index.d.ts +25 -1
  66. package/dist/store-pg/index.d.ts.map +1 -1
  67. package/dist/store-pg/index.js +180 -0
  68. package/dist/store-pg/index.js.map +1 -1
  69. package/package.json +4 -2
  70. package/src/core/workflows/sprint-autonomous.yaml +59 -0
  71. package/src/core/workflows/sprint-lightweight.yaml +39 -0
  72. package/src/core/workflows/sprint-standard.yaml +77 -0
@@ -0,0 +1,59 @@
1
+ # SLOPE Sprint Autonomous Workflow
2
+ # Designed for `slope loop` — auto-commits, minimal agent_input gates.
3
+ # The loop executor handles model selection, worktree management, and error recovery.
4
+ name: sprint-autonomous
5
+ version: "1"
6
+ description: Autonomous sprint execution for slope loop — minimal gates, auto-commit
7
+
8
+ variables:
9
+ sprint_id:
10
+ required: true
11
+ type: string
12
+ tickets:
13
+ required: true
14
+ type: array
15
+ model:
16
+ type: string
17
+ default: local
18
+
19
+ phases:
20
+ # --- Pre-Hole: Automated setup ---
21
+ - id: pre_hole
22
+ steps:
23
+ - id: briefing
24
+ type: command
25
+ command: slope briefing --sprint=${sprint_id}
26
+ checkpoint: exit_code_0
27
+
28
+ # --- Per-Ticket: Execute each ticket ---
29
+ - id: per_ticket
30
+ repeat_for: tickets
31
+ timeout_per_item: 1800
32
+ on_timeout: log_blocker_and_skip
33
+ steps:
34
+ - id: implement
35
+ type: agent_work
36
+ prompt: "Implement the ticket. Run tests after changes. Commit and push on completion."
37
+ rules:
38
+ - "Run tests after each change"
39
+ - "Auto-commit after each file or feature"
40
+ - "Push after ticket completion"
41
+ - "If tests fail, fix before moving on"
42
+ blocks_next: true
43
+
44
+ - id: verify
45
+ type: command
46
+ command: pnpm typecheck
47
+ checkpoint: exit_code_0
48
+
49
+ # --- Post-Hole: Automated wrap-up ---
50
+ - id: post_hole
51
+ steps:
52
+ - id: validate_scorecard
53
+ type: command
54
+ command: slope validate
55
+ checkpoint: exit_code_0
56
+
57
+ - id: update_map
58
+ type: command
59
+ command: slope map
@@ -0,0 +1,39 @@
1
+ # SLOPE Sprint Lightweight Workflow
2
+ # Minimal gates: implement → validate → done.
3
+ # Use for quick fixes, docs-only sprints, or when full ceremony isn't needed.
4
+ name: sprint-lightweight
5
+ version: "1"
6
+ description: Minimal workflow — implement, validate, done
7
+
8
+ variables:
9
+ sprint_id:
10
+ required: true
11
+ type: string
12
+ tickets:
13
+ required: true
14
+ type: array
15
+
16
+ phases:
17
+ # --- Per-Ticket: Just implement ---
18
+ - id: per_ticket
19
+ repeat_for: tickets
20
+ steps:
21
+ - id: implement
22
+ type: agent_work
23
+ prompt: "Implement the ticket"
24
+ rules:
25
+ - "Commit after completion"
26
+ blocks_next: true
27
+
28
+ # --- Validate: Ensure quality ---
29
+ - id: validate
30
+ steps:
31
+ - id: typecheck
32
+ type: command
33
+ command: pnpm typecheck
34
+ checkpoint: exit_code_0
35
+
36
+ - id: tests
37
+ type: command
38
+ command: pnpm test
39
+ checkpoint: exit_code_0
@@ -0,0 +1,77 @@
1
+ # SLOPE Sprint Standard Workflow
2
+ # Full lifecycle: briefing → tickets → scorecard → review
3
+ name: sprint-standard
4
+ version: "1"
5
+ description: Standard sprint lifecycle with pre-hole, per-ticket, and post-hole phases
6
+
7
+ variables:
8
+ sprint_id:
9
+ required: true
10
+ type: string
11
+ pattern: "^S\\d+$"
12
+ tickets:
13
+ required: true
14
+ type: array
15
+
16
+ phases:
17
+ # --- Pre-Hole: Sprint setup ---
18
+ - id: pre_hole
19
+ steps:
20
+ - id: briefing
21
+ type: command
22
+ command: slope briefing --sprint=${sprint_id}
23
+ checkpoint: exit_code_0
24
+ blocks_next: true
25
+
26
+ - id: verify_previous
27
+ type: validation
28
+ prompt: Verify previous sprint scorecard exists
29
+ conditions:
30
+ - previous_scorecard_exists
31
+
32
+ # --- Per-Ticket: Execute each ticket ---
33
+ - id: per_ticket
34
+ repeat_for: tickets
35
+ timeout_per_item: 600
36
+ on_timeout: log_blocker_and_skip
37
+ steps:
38
+ - id: pre_shot
39
+ type: agent_input
40
+ prompt: "Select club and declare approach for ticket"
41
+ required_fields:
42
+ - club
43
+ - approach
44
+
45
+ - id: implement
46
+ type: agent_work
47
+ prompt: "Implement the ticket according to the declared approach"
48
+ rules:
49
+ - "Run tests after each change"
50
+ - "Commit after each file creation or feature completion"
51
+ - "Push after ticket completion"
52
+ blocks_next: true
53
+
54
+ - id: post_shot
55
+ type: agent_input
56
+ prompt: "Score the shot — record result, hazards, and penalties"
57
+ required_fields:
58
+ - result
59
+ - hazards
60
+
61
+ # --- Post-Hole: Sprint wrap-up ---
62
+ - id: post_hole
63
+ steps:
64
+ - id: validate_scorecard
65
+ type: command
66
+ command: slope validate
67
+ checkpoint: exit_code_0
68
+ blocks_next: true
69
+
70
+ - id: review
71
+ type: command
72
+ command: slope review
73
+ checkpoint: exit_code_0
74
+
75
+ - id: update_map
76
+ type: command
77
+ command: slope map