@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.
- package/dist/cli/commands/loop.d.ts.map +1 -1
- package/dist/cli/commands/loop.js +5 -0
- package/dist/cli/commands/loop.js.map +1 -1
- package/dist/cli/commands/sprint.d.ts.map +1 -1
- package/dist/cli/commands/sprint.js +205 -3
- package/dist/cli/commands/sprint.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts +2 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +165 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/index.js +7 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/loop/types.d.ts +4 -0
- package/dist/cli/loop/types.d.ts.map +1 -1
- package/dist/cli/loop/types.js.map +1 -1
- package/dist/cli/loop/workflow-adapter.d.ts +53 -0
- package/dist/cli/loop/workflow-adapter.d.ts.map +1 -0
- package/dist/cli/loop/workflow-adapter.js +123 -0
- package/dist/cli/loop/workflow-adapter.js.map +1 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/cli/registry.js +8 -0
- package/dist/cli/registry.js.map +1 -1
- package/dist/core/guard.d.ts +1 -1
- package/dist/core/guard.d.ts.map +1 -1
- package/dist/core/guard.js +8 -0
- package/dist/core/guard.js.map +1 -1
- package/dist/core/index.d.ts +9 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +8 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/store.d.ts +25 -1
- package/dist/core/store.d.ts.map +1 -1
- package/dist/core/types.d.ts +34 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/workflow-engine.d.ts +89 -0
- package/dist/core/workflow-engine.d.ts.map +1 -0
- package/dist/core/workflow-engine.js +223 -0
- package/dist/core/workflow-engine.js.map +1 -0
- package/dist/core/workflow-loader.d.ts +21 -0
- package/dist/core/workflow-loader.d.ts.map +1 -0
- package/dist/core/workflow-loader.js +110 -0
- package/dist/core/workflow-loader.js.map +1 -0
- package/dist/core/workflow-validator.d.ts +19 -0
- package/dist/core/workflow-validator.d.ts.map +1 -0
- package/dist/core/workflow-validator.js +166 -0
- package/dist/core/workflow-validator.js.map +1 -0
- package/dist/core/workflow.d.ts +51 -0
- package/dist/core/workflow.d.ts.map +1 -0
- package/dist/core/workflow.js +190 -0
- package/dist/core/workflow.js.map +1 -0
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +138 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/index.test.js +10 -2
- package/dist/mcp/index.test.js.map +1 -1
- package/dist/mcp/registry.d.ts +1 -1
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +71 -0
- package/dist/mcp/registry.js.map +1 -1
- package/dist/store/index.d.ts +25 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +144 -0
- package/dist/store/index.js.map +1 -1
- package/dist/store-pg/index.d.ts +25 -1
- package/dist/store-pg/index.d.ts.map +1 -1
- package/dist/store-pg/index.js +180 -0
- package/dist/store-pg/index.js.map +1 -1
- package/package.json +4 -2
- package/src/core/workflows/sprint-autonomous.yaml +59 -0
- package/src/core/workflows/sprint-lightweight.yaml +39 -0
- 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
|