Repository F# setup
open System
open System.IO
open System.Threading
open System.Threading.Tasks
open Axial
open Axial.Layers
open Axial.Console
open Axial.FileSystem
open Axial.Hosting
open Axial.Hosting.Browser
open Axial.Hosting.Node
open Axial.HttpClient
open Axial.PlatformService
open Axial.Process
open Axial.State
open Axial.Telemetry
open Axial.Telemetry.JavaScriptSpecifications capture stdout and stderr by default. Process.run returns exact bytes and an encoding-aware text view:
let! result =
Process.command "device-tool" [ "inspect" ]
|> Process.run
printfn "%s" result.StdOut
let bytes = result.StdOutCapture.Byteslet! result =
Process.command "device-tool" [ "diagnose" ]
|> Process.stdout (OutputTarget.Tee [ OutputTarget.Console; OutputTarget.CaptureTail 65536 ])
|> Process.runlet events =
Process.command "device-tool" [ "watch" ]
|> Process.framing OutputFraming.Lines
|> Process.stream
let! collected = events |> FlowStream.runCollectOutputTarget.Inherit gives the child the host handle directly. Inherited output cannot be observed, captured, or combined in a tee because it bypasses Axial's redirected streams.

