This extension is designed to automatically execute Cline workflows when VSCode starts.
Cline itself does not provide a way to run workflows automatically. This extension enables that functionality.
Supported only on Windows.
Usage
1. Prepare a file as shown below. Replace <workflow file name> with the name of the workflow you want to execute.
cline-auto-workflow=<workflow file name>
Please note the following:
This must be written on the first line.
You do not need to specify a directory for <workflow file name>. Just specify the file name of the .md file in .clinerules\workflows\.
The file extension must be included in <workflow file name>.
<workflow file name> must be 25 characters or less, including the extension.
2. Launch VSCode using the code command.
code -n <folder path> -- <file path>
-n: An option for code to open a new window.
<folder path>: Specify the folder path, which is the folder that contains the workflow you want to run.
<file path>: The path to the file you created earlier. This will open at startup. This extension will execute the text opened in the active editor with Cline at startup.
Features
When VSCode starts, the activate() function of this extension is executed and performs the following:
Searches for the active editor. If not found, the process ends here. (Therefore, as described above, specify <file path> when launching.)
If the content of the active editor matches the usage described above, it creates a command from that content and sends it to Cline's chat using the cline.addToChat command.
Uses the included Windows command-line application (EmulateEnter) to emulate the Enter key, causing Cline to execute the task.
Requirements
This extension is for Windows only.
Requires .Net Framework 4.7.2.
It has been confirmed to work with Cline ver.3.19.7.
Extension Settings
None.
Known Issues
A timer (5 second delay) is used to coordinate with the startup of the client. Depending on the state, it may not be executed.