blob: 58d56703b849875c7807dc054b792cf2dec1b8a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from ...core.main import Step
from ...core.sdk import ContinueSDK, Models
class StepsOnStartupStep(Step):
hide: bool = True
async def describe(self, models: Models):
return "Running steps on startup"
async def run(self, sdk: ContinueSDK):
steps_on_startup = sdk.config.steps_on_startup
for step_type in steps_on_startup:
if isinstance(step_type, Step):
step = step_type
else:
step = step_type()
await sdk.run_step(step)
|