This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ralph Agent Loop Script for GitHub Copilot CLI (PowerShell) | |
| # Continuously runs Copilot CLI on a task until completion criteria is met | |
| # Usage: .\ralph-loop.ps1 <job-name> | |
| param( | |
| [Parameter(Mandatory=$true, Position=0)] | |
| [string]$JobName | |
| ) | |
| # Configuration (can be overridden via environment variables) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class AsyncHelper | |
| { | |
| private static readonly TaskFactory _myTaskFactory = new | |
| TaskFactory(CancellationToken.None, | |
| TaskCreationOptions.None, | |
| TaskContinuationOptions.None, | |
| TaskScheduler.Default); | |
| public static TResult RunSync<TResult>(Func<Task<TResult>> func) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DataTaskDelegate : NSUrlSessionDataDelegate | |
| { | |
| NSUrlSessionHandler This { get; set; } | |
| public DataTaskDelegate(NSUrlSessionHandler that) | |
| { | |
| this.This = that; | |
| } | |
| public override void DidReceiveChallenge(NSUrlSession session, NSUrlSessionTask task, NSUrlAuthenticationChallenge challenge, Action<NSUrlSessionAuthChallengeDisposition, NSUrlCredential> completionHandler) |