These rules govern the complete workflow from discovery through implementation.
Before planning implementation, you will explore and design the solution.
| rules: | |
| type-enum: | |
| - 2 | |
| - always | |
| - - build # build system changes | |
| - infra # CI/CD, VCS, deployment, etc. | |
| - devtools # developer tools not covered by `infra` | |
| - docs # non-meta documentation changes | |
| - meta # meta documentation changes or manifest-related changes |
| #!/usr/bin/env -S deno run --allow-read --allow-run | |
| import { parseArgs } from "jsr:@std/cli/parse-args"; | |
| import { resolve, normalize, relative } from "jsr:@std/path"; | |
| interface Tree { | |
| [key: string]: string | Tree; | |
| } | |
| // ------------------------------------------------------------- |
| // primes the generator function from arguments provided up to the first yield | |
| // no priming performed without arguments/initial call | |
| export default function unlazy(lazyGeneratorFunction) { | |
| const generatorProxy = function (...args) { | |
| const lazy = lazyGeneratorFunction.apply(this, args); | |
| const first = lazy.next(); // run up to first yield | |
| // create a proxy generator that replays that first result once | |
| let sentFirst = false; | |
| const proxy = { |
| # iex (iwr 'https://gist.githubusercontent.com/anonhostpi/e33c2fb4e3282ff75962cf12a2a9af6a/raw/wasm.ps1').content | |
| & { | |
| # Install-Package "Wasmtime" -ProviderName NuGet | |
| $package = Get-Package -Name "Wasmtime" | |
| $directory = $package.Source | Split-Path | |
| $runtime = "win-x64" # "win/linux/osx-arm64/x64" |
| # $init = path/to/cloud-init.yaml | |
| # # (iwr "https://gist.githubusercontent.com/anonhostpi/05aa300aa56a3b1baf19561b3bc607f5/raw/cloud-init.yaml").Content | Out-File $init | |
| # | |
| # multipass launch --name archive-wasm --memory 6G --disk 20G --cloud-init $init --network "<your-network-adapter>" | |
| # multipass mount "$(Resolve-Path . <# or wherever #>)" archive-wasm:/home/ubuntu/shared | |
| # multipass stop archive-wasm | |
| # multipass start archive-wasm | |
| # multipass shell archive-wasm | |
| # | |
| # # Inside the VM: |
| # iex (iwr 'https://gist.githubusercontent.com/anonhostpi/c82d294d7999d875c820e3b2094998e9/raw/wasm.ps1').Content | |
| $engine = & { | |
| $package = "Wasmtime" | |
| $runtime = & (nmo {iex "using namespace System.Runtime.InteropServices" }) { | |
| $runtime = @{} | |
| $is = { param([OSPlatform] $platform); return ([RuntimeInformation]::IsOSPlatform($platform)) } |
| # iex (iwr "https://gist.githubusercontent.com/anonhostpi/1cc0084b959a9ea9e97dca9dce414e1f/raw/webserver.ps1").Content | |
| function New-Webserver { | |
| param( | |
| [string] $Binding = "http://localhost:8080/", | |
| [string] $BaseDirectory = "$(Get-Location -PSProvider FileSystem)", | |
| [string] $Name = "PowerShell Web Server", | |
| [System.Collections.IDictionary] $Routes = @{ | |
| Before = { param( $Server, $Command, $Listener, $Context ) return $true } |
| 0 TOP SHELL, NO. 3 Ø4,85 (Needs Work) | |
| 0 Name: 11112.dat | |
| 0 Author: <AuthorRealName> [<AuthorLDrawName>] | |
| 0 !LDRAW_ORG Unofficial_Part | |
| 0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt | |
| 0 BFC CERTIFY CCW | |
| 0 !HISTORY 2013-08-14 {LEGO Digital Designer} Original part shape | |
| 0 !HISTORY 2013-08-14 [<AuthorLDrawName>] File preparation for LDraw Parts Tracker |
| # See https://github.com/IronLanguages/ironpython3/pull/1957#discussion_r2187237475 | |
| & { | |
| $ironpython = 'https://raw.githubusercontent.com/IronLanguages/ironpython3/main/eng/scripts/Install-IronPython.ps1' | |
| $returns = @{ path = "$env:TEMP\$([guid]::NewGuid().ToString())" } | |
| & { | |
| "Installing IronPython to temp ('$($returns.path)')..." | |
| & ([scriptblock]::Create((iwr ` |