{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": 1,
      "id": "1",
      "metadata": {},
      "outputs": [],
      "source": [
        ". ./nbs_header.ps1\n",
        ". ./core.ps1"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 2,
      "id": "2",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../deps/spiral/apps/spiral/build.ps1 -fast 1'\n",
            "\n",
            "spiral/apps/spiral/build.ps1 / ScriptDir: /home/runner/work/polyglot/polyglot/deps/spiral/apps/spiral / ResolvedScriptDir: /home/runner/work/polyglot/spiral/apps/spiral\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/spiral/apps/spiral / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ResolvedScriptDir/$projectName.livemd\" --spi-path \"$ResolvedScriptDir/$projectName.spi\" --export-only'\n",
            "\n",
            "Resolving Hex dependencies...\n",
            "Resolution completed in 0.016s\n",
            "Unchanged:\n",
            "  kino 0.19.1\n",
            "  table 0.1.2\n",
            "* Getting kino (Hex package)\n",
            "* Getting table (Hex package)\n",
            "==> table\n",
            "Compiling 5 files (.ex)\n",
            "Generated table app\n",
            "==> kino\n",
            "Compiling 50 files (.ex)\n",
            "Generated kino app\n",
            "==> spiral_kino\n",
            "Compiling 25 files (.ex)\n",
            "Generated spiral_kino app\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "spiral/lib/spiral/lib.ps1/GetTargetDir / targetDir: /home/runner/work/polyglot/spiral/target/build/spiral\n",
            "spiral/lib/spiral/lib.ps1/BuildSpiral / apps/spiral / /home/runner/.cache/spiral-bin/bin/single-flight/SpiralCompiler/Release/net11.0/SpiralCompiler.dll --backend Rust spiral.spi spiral.rs\n",
            "compiled spiral.spi -> spiral.rs (Rust, 1438237 bytes, entry=main, revision=open, pid=16489)\n",
            "RUST-COMPILED apps/spiral / spiral.rs / 8 s\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/spiral/workspace / $ScriptBlock:\n",
            "'cargo +nightly-2025-11-01 build --profile release-unwind --package $projectName'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "spiral/apps/spiral/build.ps1 / run check / Usage: spiral <COMMAND>\n",
            "spiral/apps/spiral/build.ps1 / run check / \n",
            "spiral/apps/spiral/build.ps1 / run check / Commands:\n",
            "spiral/apps/spiral/build.ps1 / run check /   gleam   \n",
            "spiral/apps/spiral/build.ps1 / run check /   cuda    \n",
            "spiral/apps/spiral/build.ps1 / run check /   rust    \n",
            "spiral/apps/spiral/build.ps1 / run check /   export  \n",
            "spiral/apps/spiral/build.ps1 / run check /   lua     \n",
            "spiral/apps/spiral/build.ps1 / run check /   cpp     \n",
            "spiral/apps/spiral/build.ps1 / run check /   help    Print this message or the help of the given subcommand(s)\n",
            "spiral/apps/spiral/build.ps1 / run check / \n",
            "spiral/apps/spiral/build.ps1 / run check / Options:\n",
            "spiral/apps/spiral/build.ps1 / run check /   -h, --help  Print help\n",
            "spiral/scripts/core.ps1/GetFullPath / Path: ../.. / Location: /home/runner/work/polyglot/spiral/apps/spiral / ResolvedLocation: /home/runner/work/polyglot/spiral/apps/spiral\n",
            "spiral/scripts/core.ps1/GetFullPath / FullPath: /home/runner/work/polyglot/spiral\n",
            "spiral/scripts/core.ps1/GetFullPath / Path: ../kino / Location: /home/runner/work/polyglot/spiral/apps/spiral / ResolvedLocation: /home/runner/work/polyglot/spiral/apps/spiral\n",
            "spiral/scripts/core.ps1/GetFullPath / FullPath: /home/runner/work/polyglot/spiral/apps/kino\n",
            "spiral/apps/spiral/build.ps1 / run check / export of 43 notebooks compared with the previous CLI\n",
            "spiral/scripts/core.ps1/GetFullPath / Path: /home/runner/work/polyglot/spiral/target/build/spiral/check/rust/main.rs / Location: /home/runner/work/polyglot/spiral/apps/spiral / ResolvedLocation: /home/runner/work/polyglot/spiral/apps/spiral\n",
            "spiral/scripts/core.ps1/GetFullPath / FullPath: /home/runner/work/polyglot/spiral/target/build/spiral/check/rust/main.rs\n",
            "spiral/scripts/core.ps1/GetFullPath / Path: /home/runner/work/polyglot/spiral/target/build/spiral/check/cuda/main.py / Location: /home/runner/work/polyglot/spiral/apps/spiral / ResolvedLocation: /home/runner/work/polyglot/spiral/apps/spiral\n",
            "spiral/scripts/core.ps1/GetFullPath / FullPath: /home/runner/work/polyglot/spiral/target/build/spiral/check/cuda/main.py\n",
            "spiral/apps/spiral/build.ps1 / run check / rust: exit 0 / spiral-check-rust 42\n",
            "spiral/apps/spiral/build.ps1 / run check / cuda: exit 0 / spiral-check-cuda 42\n",
            "RUST-OK apps/spiral\n",
            "spiral/apps/spiral/build.ps1 / shipped the new spiral to ../../workspace/target/release/spiral\n",
            "spiral/apps/spiral/build.ps1 / $projectName: spiral / $env:CI:'true'\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../deps/spiral/apps/spiral/build.ps1 -fast 1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 3,
      "id": "3",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../apps/parser/build.ps1'\n",
            "\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/apps/parser / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $runNotebook --path $fullPath @Arguments'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/apps/parser / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $runNotebook --path $fullPath @Arguments'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/apps/parser / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $runNotebook --path $fullPath @Arguments'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/apps/parser / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $runNotebook --path $fullPath @Arguments'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "polyglot/apps/parser/build.ps1 / $env:CI:'true'\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../apps/parser/build.ps1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 4,
      "id": "4",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../lib/fsharp/build.ps1 -sequential 1'\n",
            "\n",
            "polyglot/lib/fsharp/build.ps1 / Async / exit 0\n",
            "polyglot/lib/fsharp/build.ps1 / AsyncSeq / exit 0\n",
            "polyglot/lib/fsharp/build.ps1 / Common / exit 0\n",
            "polyglot/lib/fsharp/build.ps1 / CommonFSharp / exit 0\n",
            "polyglot/lib/fsharp/build.ps1 / FileSystem / exit 0\n",
            "polyglot/lib/fsharp/build.ps1 / Runtime / exit 0\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/fsharp / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ScriptDir/$notebook.livemd\" --no-spi --fs-path \"$ScriptDir/$notebook.fs\" --export-only'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/fsharp / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ScriptDir/$notebook.livemd\" --no-spi --fs-path \"$ScriptDir/$notebook.fs\" --export-only'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/fsharp / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ScriptDir/$notebook.livemd\" --no-spi --fs-path \"$ScriptDir/$notebook.fs\" --export-only'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/fsharp / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ScriptDir/$notebook.livemd\" --no-spi --fs-path \"$ScriptDir/$notebook.fs\" --export-only'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/fsharp / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ScriptDir/$notebook.livemd\" --no-spi --fs-path \"$ScriptDir/$notebook.fs\" --export-only'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/fsharp / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook --path \"$ScriptDir/$notebook.livemd\" --no-spi --fs-path \"$ScriptDir/$notebook.fs\" --export-only'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../lib/fsharp/build.ps1 -sequential 1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 5,
      "id": "5",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../deps/spiral/apps/wasm/build.ps1'\n",
            "\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/deps/spiral/apps/wasm / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $livebook @notebook --output-path \"$ScriptDir/$projectName.livemd.ipynb\"'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   68G   78G  47% /\n",
            "spiral/lib/spiral/lib.ps1/GetTargetDir / targetDir: /home/runner/work/polyglot/spiral/target/build/spiral_wasm\n",
            "spiral/lib/spiral/lib.ps1/BuildSpiral / apps/wasm / /home/runner/.cache/spiral-bin/bin/single-flight/SpiralCompiler/Release/net11.0/SpiralCompiler.dll --backend Rust spiral_wasm.spi spiral_wasm.rs\n",
            "compiled spiral_wasm.spi -> spiral_wasm.rs (Rust, 182214 bytes, entry=main, revision=open, pid=19000)\n",
            "RUST-COMPILED apps/wasm / spiral_wasm.rs / 4 s\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/deps/spiral/workspace / $ScriptBlock:\n",
            "'cargo +nightly-2025-11-01 build --profile release-unwind --package $projectName --target-dir target/linux'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  48% /\n",
            "spiral/apps/wasm/build.ps1 / run / Usage: spiral_wasm [OPTIONS] --wasm <wasm>\n",
            "spiral/apps/wasm/build.ps1 / run / \n",
            "spiral/apps/wasm/build.ps1 / run / Options:\n",
            "spiral/apps/wasm/build.ps1 / run /   -e, --exception[=<exception>]    \n",
            "spiral/apps/wasm/build.ps1 / run /   -t, --trace_level <trace_level>  [possible values: verbose, debug, info, warning, critical]\n",
            "spiral/apps/wasm/build.ps1 / run /   -w, --wasm <wasm>                \n",
            "spiral/apps/wasm/build.ps1 / run /   -h, --help                       Print help\n",
            "RUST-OK apps/wasm\n",
            "spiral/apps/wasm/build.ps1 / shipped spiral_wasm to ../../workspace/target/release/spiral_wasm\n",
            "spiral/apps/wasm/build.ps1 / $targetDir = /home/runner/work/polyglot/spiral/target/build/spiral_wasm / $projectName: spiral_wasm / $env:CI:'true'\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  48% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../deps/spiral/apps/wasm/build.ps1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 6,
      "id": "6",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../lib/math/build.ps1'\n",
            "\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/math / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $runNotebook --path $fullPath @Arguments'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  48% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/lib/math / $ScriptBlock:\n",
            "'pwsh -NoProfile -File $runNotebook --path $fullPath @Arguments'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  48% /\n",
            "spiral/lib/spiral/lib.ps1/GetTargetDir / targetDir: /home/runner/work/polyglot/spiral/target/build/math\n",
            "spiral/lib/spiral/lib.ps1/BuildSpiral / lib/math / /home/runner/.cache/spiral-bin/bin/single-flight/SpiralCompiler/Release/net11.0/SpiralCompiler.dll --backend Rust math.spi math.rs\n",
            "compiled math.spi -> math.rs (Rust, 130395 bytes, entry=main, revision=open, pid=49981)\n",
            "RUST-COMPILED lib/math / math.rs / 3 s\n",
            "polyglot/lib/math/build.ps1 / cargo test / warning: /home/runner/work/polyglot/polyglot/lib/math/Cargo.toml: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest\n",
            "polyglot/lib/math/build.ps1 / cargo test /   See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature.\n",
            "polyglot/lib/math/build.ps1 / cargo test / warning: /home/runner/work/polyglot/polyglot/apps/plot/Cargo.toml: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest\n",
            "polyglot/lib/math/build.ps1 / cargo test /   See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature.\n",
            "polyglot/lib/math/build.ps1 / cargo test /     Updating crates.io index\n",
            "polyglot/lib/math/build.ps1 / cargo test /  Downloading crates ...\n",
            "polyglot/lib/math/build.ps1 / cargo test /   Downloaded target-lexicon v0.13.3\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling target-lexicon v0.13.3\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling autocfg v1.5.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling proc-macro2 v1.0.103\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling quote v1.0.41\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling unicode-ident v1.0.20\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling libc v0.2.177\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling num-traits v0.2.19\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling memoffset v0.9.1\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling heck v0.5.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling pyo3-build-config v0.26.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling syn v2.0.108\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling unindent v0.2.4\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling indoc v2.0.7\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling once_cell v1.21.3\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling num-complex v0.4.6\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling pyo3-macros-backend v0.26.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling pyo3-ffi v0.26.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling pyo3 v0.26.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling pyo3-macros v0.26.0\n",
            "polyglot/lib/math/build.ps1 / cargo test /    Compiling math v0.0.1 (/home/runner/work/polyglot/polyglot/lib/math)\n",
            "polyglot/lib/math/build.ps1 / cargo test /     Finished `release` profile [optimized] target(s) in 17.01s\n",
            "polyglot/lib/math/build.ps1 / cargo test /      Running unittests math.rs (target/release/deps/math-33d80fd8b39fc355)\n",
            "polyglot/lib/math/build.ps1 / cargo test / \n",
            "polyglot/lib/math/build.ps1 / cargo test / running 12 tests\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_behavior_near_origin___ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_euler_product_formula ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_critical_strip ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_non_trivial_zero___ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_real_part_greater_than_one___ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_symmetry_across_real_axis___ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_zeta_at_1___ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_zeta_at_2_minus2 ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_reflection_formula_for_specific_value ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_zeta_at_known_values_ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_imaginary_axis ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / test spiral_tests::test_trivial_zero_at_negative_even___ ... ok\n",
            "polyglot/lib/math/build.ps1 / cargo test / \n",
            "polyglot/lib/math/build.ps1 / cargo test / test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s\n",
            "polyglot/lib/math/build.ps1 / cargo test / \n",
            "RUST-OK lib/math\n",
            "polyglot/lib/math/build.ps1 / $targetDir: /home/runner/work/polyglot/spiral/target/build/math / $projectName: math / $env:CI:'true'\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  48% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../lib/math/build.ps1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 7,
      "id": "7",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../apps/plot/build.ps1'\n",
            "\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/apps/plot / $ScriptBlock:\n",
            "'cargo fmt --'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  48% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/apps/plot / $ScriptBlock:\n",
            "'cargo +nightly-2025-11-01 build --timings --release'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../apps/plot/build.ps1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 8,
      "id": "8",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ../deps/spiral/apps/dir-tree-html/build.ps1'\n",
            "\n",
            "spiral/lib/spiral/lib.ps1/BuildSpiral / apps/dir-tree-html / /home/runner/.cache/spiral-bin/bin/single-flight/SpiralCompiler/Release/net11.0/SpiralCompiler.dll --backend Rust dir_tree_html.spi dir_tree_html.rs\n",
            "compiled dir_tree_html.spi -> dir_tree_html.rs (Rust, 73339 bytes, entry=main, revision=open, pid=50952)\n",
            "RUST-COMPILED apps/dir-tree-html / dir_tree_html.rs / 1 s\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/deps/spiral/workspace / $ScriptBlock:\n",
            "'cargo +nightly-2025-11-01 build --release --package dir-tree-html'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/deps/spiral/apps/dir-tree-html / $ScriptBlock:\n",
            "'& \"dist/DirTreeHtml$(_exe)\" --self-test'\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "RUST-OK apps/dir-tree-html\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ../deps/spiral/apps/dir-tree-html/build.ps1 } | Invoke-Block"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 9,
      "id": "9",
      "metadata": {},
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'pwsh ./outdated.ps1'\n",
            "\n",
            "\n",
            "CheckToml / toml: /home/runner/work/polyglot/polyglot/workspace/Cargo.toml\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'cargo outdated -m $toml @_args'\n",
            "\n",
            "\n",
            "# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $OnError: Continue / $exitcode: 1 / $Error: '' / $ScriptBlock:\n",
            "'cargo outdated -m $toml @_args'\n",
            " / $result:\n",
            "''\n",
            " / $output:\n",
            "''\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "\n",
            "CheckToml / toml: /home/runner/work/polyglot/polyglot/apps/plot/Cargo.toml\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'cargo outdated -m $toml @_args'\n",
            "\n",
            "\n",
            "# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $OnError: Continue / $exitcode: 1 / $Error: '' / $ScriptBlock:\n",
            "'cargo outdated -m $toml @_args'\n",
            " / $result:\n",
            "''\n",
            " / $output:\n",
            "''\n",
            "\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "\n",
            "CheckJson / json: /home/runner/work/polyglot/polyglot\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'. $(Search-Command bun) --bun --cwd $json outdated-pre'\n",
            "\n",
            "Using bun\n",
            "Checking /home/runner/work/polyglot/polyglot/package.json\n",
            "\n",
            " @types/node          ~22.10  →    ~26.6\n",
            " npm-check-updates  ~17.1.14  →  ~23.1.0\n",
            "\n",
            "Run ncu --target greatest -u to upgrade package.json\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "\n",
            "CheckJson / json: /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/VS Code Plugin\n",
            "\n",
            "────────────────────────────────────────────────────────────────────────────────\n",
            "core.Invoke-Block / Get-Location: /home/runner/work/polyglot/polyglot/scripts / $ScriptBlock:\n",
            "'. $(Search-Command bun) --bun --cwd $json outdated-pre'\n",
            "\n",
            "Checking /home/runner/work/polyglot/polyglot/deps/The-Spiral-Language/VS Code Plugin/package.json\n",
            "\n",
            " @microsoft/signalr     8.0.0  →  11.0.0-preview.7.26381.103\n",
            " @types/node           ~22.10  →                       ~26.6\n",
            " @types/vscode          ~1.95  →                      ~1.140\n",
            " @vscode/vsce            ~3.2  →                      ~4.0-3\n",
            " esbuild              ^0.28.1  →                     ^0.28.2\n",
            " npm-check-updates   ~17.1.14  →                     ~23.1.0\n",
            " portfinder           ^1.0.32  →                     ^1.0.38\n",
            "\n",
            "Run ncu --target greatest -u to upgrade package.json\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n",
            "core.Invoke-Block / df - /dev/root\n",
            "Filesystem      Size  Used Avail Use% Mounted on\n",
            "/dev/root       145G   70G   76G  49% /\n"
          ]
        }
      ],
      "source": [
        "{ pwsh ./outdated.ps1 } | Invoke-Block"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "PowerShell",
      "language": "pwsh",
      "name": "pwsh"
    },
    "language_info": {
      "name": "pwsh"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}
