Cameek.Run67.Tool 0.0.25

dotnet tool install --global Cameek.Run67.Tool --version 0.0.25
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Cameek.Run67.Tool --version 0.0.25
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Cameek.Run67.Tool&version=0.0.25
                    
nuke :add-package Cameek.Run67.Tool --version 0.0.25
                    

Cameek.Run67

Cameek.Run67 is a human-first execution runtime for reusable operational flows, designed for composition, explicit planning, safe expressions, persistent state, and multiple hosts such as a CLI and terminal UI.

Why Run67 Exists

Enterprise systems often have many components and operational procedures that turn into long, fragile CLI argument sets. Run67 lets users own reusable runbooks that orchestrate established tools such as az, docker, ssh, sudo, and shell commands without replacing those tools' authentication and privilege models.

Run67 focuses on preparing a complete plan, showing it to a human, and then executing it through a structured event stream.

Current Capabilities

  • Flow resources
  • Native JSON, YAML, TOML, and XML resource formats with one canonical binder
  • Optional adjacent JSON Schema subset and XSD validation
  • Native call composition
  • Pure reusable Function resources with fn("resource", name: expression)
  • Typed Monitor resources with operational output limits and immutable MonitorSnapshot values
  • GreenScreen live Monitor tabs with typed tables, compact status controls, and approval-gated Flow actions for rows and whole Monitors
  • Safe Run67 expressions with ${{ ... }}
  • Typed RunValue model
  • Persistent JSON user state with get, set, and atomic local increment
  • Root-Flow input initialization with pure calculation and exactly-once state allocation
  • Native scalar input constraints, typed allowed-value editors, and collapsible advanced inputs
  • Complete transitive planning
  • Definition and invocation digests
  • Digest-based approvals
  • Trusted project-local .run67 resource scopes
  • Approval-gated prerequisite validation Flows
  • Structured runtime events
  • Durable filesystem Run Records with typed snapshots, event journals, step history, plain transcripts, compatibility analysis, and explicit linked-Run resume
  • Immutable exact-ID Publications for audited public value and artifact exchange between Runs
  • Local captured commands
  • Terminal-mode process abstraction
  • Reusable Target resources
  • Local, SSH, Docker, and SSH to Docker execution routes
  • Approval digests that include resolved non-local destinations
  • run67cli CLI host
  • run67 Cameek.GreenScreen terminal UI host

Architecture

Cameek.Run67.Cli ───────────────┐
  │                      │
  ├─ Cameek.Run67.Formats       ▼
  └─ Cameek.Run67.Targets  Cameek.Run67.Core

Cameek.Run67.GreenScreen ───────┘
  │
  ├─ Cameek.Run67.Formats
  ├─ Cameek.Run67.Targets
  └─ Cameek.GreenScreen 0.1.14

Cameek.Run67.Core is UI-independent. Cameek.Run67.Formats binds native JSON/YAML/TOML/XML into canonical Core resources through one neutral object model and binder. Cameek.Run67.Targets compiles resolved routes into external ssh and docker CLI invocations. Cameek.Run67.GreenScreen is a host, not the execution engine.

All four resource formats have identical planning, digest, approval, and execution semantics. See resource formats for suffixes, native parser subsets, XML mapping, sidecar schemas, examples, and runnable demos.

Quick Start

Development requires a stable .NET 10 SDK. The repository SDK baseline and roll-forward policy are defined in global.json.

dotnet build Cameek.Run67.Portable.slnf
dotnet test Cameek.Run67.Portable.slnf

The project maintenance flows provide the checked-in Run, Build, Test, Package, Cleanup, Git snapshot, and release shortcuts.

CI automatically validates Linux through Quick required. Windows Quick and Deep desktop, SSH and Docker acceptance are optional manual runs. Tagged releases validate the tag/version, run the full portable tests, pack and install the tool locally, then publish the packages in dependency order, without a Windows run or manual approval. See CI validation for coverage and optional fixture setup.

Install the Run67 tool

The full Cameek.Run67.sln includes the optional Windows 11 x64 WPF terminal wrapper. Its separate desktop ZIP, stable per-user installer, Flow shortcuts, prerequisites, and validation status are documented in Windows wrapper. Linux builds use the portable filter above; the existing run67 tool does not require desktop dependencies.

Published releases install the run67 command from NuGet.org:

dotnet tool install \
  --global \
  Cameek.Run67.Tool

Install the initial stable version explicitly with:

dotnet tool install \
  --global \
  --version 0.0.1 \
  Cameek.Run67.Tool

For a local development package, build the four-package feed first:

.scripts/pack-run67-tool.sh

dotnet tool install \
  --global \
  --add-source artifacts/nuget \
  --version 0.0.1 \
  Cameek.Run67.Tool

See installation and local-feed testing for update, uninstall, PATH, isolation, and WSL2 instructions.

Run the CLI through the project:

dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- validate examples/yaml/main/.run67/hello.run67.yaml
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- plan examples/yaml/main/.run67/composed-parent.run67.yaml
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- plan examples/toml/main/.run67/function-docker-allocation.run67.toml
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- plan examples/xml/main/.run67/create-ubuntu24-container.run67.xml
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- run examples/json/main/.run67/composed-parent.run67.json --param name=Mirek
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- monitor examples/yaml/main/.run67/monitors/docker-containers.run67.yaml
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- runs resume-check <run-id> examples/yaml/main/.run67/composed-parent.run67.yaml --param name=Mirek
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- runs resume <run-id> examples/yaml/main/.run67/composed-parent.run67.yaml --param name=Mirek
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- publications list
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- plan examples/native-formats/flagship.run67.toml
dotnet run --project src/Cameek.Run67.Cli/Cameek.Run67.Cli.csproj -- plan examples/native-formats/mixed/parent.run67.yaml

After building, the executable names are run67cli and run67 in their project output folders.

dotnet run --project src/Cameek.Run67.GreenScreen/Cameek.Run67.GreenScreen.csproj
dotnet run --project src/Cameek.Run67.GreenScreen/Cameek.Run67.GreenScreen.csproj -- examples/yaml/main/.run67/composed-parent.run67.yaml --param name=Mirek

Running run67 without a resource opens a full-screen searchable flow browser. It loads user resources from ~/.run67 and, after an explicit path-specific trust decision, project resources from the nearest ancestor .run67 directory. Project and User remain distinct browser scopes. The browser retains invalid resource files for inspection and fuzzy-filters the tree while keeping matching ancestors visible. Preview and Enter prepare a fresh non-executable preview; Run67 continues through mandatory Plan Review and approval, so no browser action executes a Flow directly.

Without a layout, the GreenScreen workspace opens 📚 Flows (explorer) and 📝 Editor (editor). Layout version 2 controls tab order, labels, defaults, and visibility for Flows, Editors, Text, Favorites, and Monitors. Flows and Editor provide explicit Run67, Preview, and editing actions: Preview ends in a non-executable Flow Review / Commands dialog, while Run67 keeps the normal input, Plan Review, prerequisite, approval, and execution pipeline. F5 reloads resources, layout, and validated settings. See GreenScreen layout tabs and Monitors.

Application configuration uses app-run67.yaml, with layout.yaml retained as a compatibility fallback. A dedicated application repository can place this file and its resource folders directly at its root; existing .run67/ projects remain supported, with their original trust identity. See layout and discovery.

View → Console Output or Ctrl+O temporarily reveals the terminal's primary output buffer. Press a key to resume the same workspace, including unsaved editor buffers and undo state. This launches no shell and never clears scrollback. File editors retain bounded undo/redo history (Ctrl+Z and Ctrl+Y/Ctrl+Shift+Z), including their cursor and viewport; saving keeps history, while reloading or replacing a document clears it. Active Monitor work is joined before the transition and eligible polling resumes afterward.

Bare run67 opens the workspace; direct Flow references retain its interactive review pipeline. Explicit validate, plan, run, monitor, runs, publications, cleanup, and trash verbs use the same headless command implementation as run67cli, including JSON/JSONL output. See command hosts.

By default, when the selected root Flow declares non-sensitive inputs, GreenScreen opens a responsive Run67 Inputs form before Plan Review. Defaults are shown in Auto, missing required values start in Override, and supplied values may be edited or reset to Auto. Native constraints are validated consistently, allowedValues use typed drop-downs, and advanced rows can be collapsed. Root initSteps may reserve state values before the form after static closure and descriptor validation; only missing init-dependent inputs block that reservation. Pure dependent Auto previews update without allocating again, and pending, unavailable, or invalid previews disable confirmation. Sensitive inputs remain externally supplied and never enter visible editor state. See docs/interactive-inputs.md.

Monitor buttons can skip Inputs, Plan Review, or both using action dialog flags. Returning from a successful Flow goes straight back to the workspace. The personal Direct Execution offer is dormant.

Plan Review summarizes the prepared flow, displays the wrapped execution plan, prerequisite state, and all preparation diagnostics in independently scrollable panes, shows whether execution is eligible, and retains the optional Return to Run67 App choice. Its options use separate Return and Wizard rows. Enabling Wizard opens a pause picker with 2, 5, 10, 30 and 60 second presets and a custom value; new selections default to 10 seconds. The > button reopens the picker without losing its current value. A non-negative pause is required only while Wizard mode is enabled; 0 keeps the panel without delaying execution. Preparation errors disable execution directly in the review; warnings and informational diagnostics remain visible without blocking the run. Run67 is the explicit action that executes approval-gated prerequisite checks and automatically continues to main approval/execution when required checks pass.

Flow and prerequisite approval dialogs shrink to fit the terminal and restore their preferred size when it grows. Short terminals reserve space for Remember, Approve, and Reject; approval details scroll in the remaining space.

At Flow start, Appearance's Show flow summary at start setting (default on) prints a static title, source path and effective root-input summary. It uses the final prepared values and redacts declared and computed sensitive inputs; it never collects inputs or changes state. Grouped = separators introduce root runs; spaced - separators introduce steps and the root finish. These human details never enter structured CLI output.

After approval, Run67 disposes the full-screen terminal application before execution begins and writes the execution outline and captured output directly to the ordinary shell. When Wizard mode is enabled, each executable main-flow step first shows a fixed shell panel with its title (or id), description, and an animated countdown. confirm steps show the panel and proceed directly to the normal prompt without waiting. Enter or Space starts only the current step immediately; future steps keep their configured pause. Ctrl+C cancels an active countdown through the normal Run cancellation path. Wizard mode is GreenScreen presentation only; normal CLI/API execution is unchanged unless another host explicitly uses Core's optional step-presentation hook. Terminal commands run through Cameek.GreenScreen PTY hosting with no Run67 execution overlay or F10 menu, so the child owns keyboard input. When the selected flow finishes, Run67 prints a timestamped final lifecycle line with elapsed time. By default it exits to the invoking shell; selecting Return to Run67 App after execution starts a fresh catalog application after the shell run.

Flows can ask an operational question with confirm: { message: Continue? }; the default answer is No, and automatic approval/trust does not answer it. See confirmation example. For temporary debugging, normal steps accept literal skip: true and breakAfter: true. They remain visible in Plan Review; a break stops the entire Run with an auditable cancelled outcome. See debug example and execution semantics.

run steps default to captured interaction. Captured commands are for noninteractive output capture and must not wait for terminal input. Commands that may prompt—including sudo, SSH authentication, installers, shells, and REPLs—must explicitly declare interaction: terminal. For example:

run:
  interaction: terminal
  executable: sudo
  arguments:
    - apt-get
    - update

Use explicit shell + command when shell syntax is required:

run:
  interaction: terminal
  shell: bash
  command: sudo -v && sudo apt-get update

Choose exactly one form: executable with optional arguments, or static shell (cmd, sh, bash) with a nonblank string-template command. Native argument vectors keep their existing semantics. Shell selection follows the destination: local Windows supports system CMD; POSIX local/SSH/Docker destinations support sh and installed Bash. CMD source rejects actual CR/LF/NUL, including trailing newlines; equally indented YAML >- preserves ordinary inner quotes. POSIX source supports multiline programs. See shell authoring and the Windows WSL example. Run67 interpolation does not shell-escape inserted values; use native arguments for arbitrary data. Password prompts normally do not echo typed characters because the child controls its terminal behavior. PTY keystrokes and screen output are deliberately not copied into Run67 events, transcript.log, or other Run Record data. A captured command that intentionally uses sudo without prompting should pass --non-interactive or -n; Run67 does not rewrite command arguments.

Steps can publish small typed values through the private RUN67_OUTPUTS directory. Declare the output beside run, write one file whose name exactly matches the declaration, and consume it through the existing step-output namespace:

- id: detect
  outputs:
    packageManager:
      type: string
      required: true
  run:
    executable: bash
    arguments:
      - -c
      - printf '%s' apt > "$RUN67_OUTPUTS/packageManager"

- id: consume
  run:
    executable: printf
    arguments:
      - '%s\n'
      - "${{ steps.detect.outputs.packageManager }}"

In the interactive app, File → Connect to Remote… sets a workspace destination for Flows and Monitors. Choose SSH, an existing Docker container, or a WSL distribution. Your common Flow can run directly on each destination. Workspace connections and authentication

The same declaration and downstream expression work for local, direct SSH, direct Docker, and direct WSL execution, including terminal steps. See the resource model and the target-independent JDK flow with its local, SSH, and Docker launchers.

Before a terminal child starts, Run67 synchronously writes and flushes its complete redacted command preview. Multiline arguments use indexed, descriptive blocks so later positional arguments cannot appear as part of the script text. Each terminal-interaction step normally creates a separate PTY, and sudo authentication may therefore be requested again in another terminal step. A Flow can explicitly select terminalSession: flow when distinct terminal-step processes need one TTY identity. On Linux, GreenScreen supports this scope for local, direct SSH, and direct Docker routes. On Windows 11 x64, run67 and the WinWrap child support local Windows, direct Linux-container Docker and direct POSIX SSH sessions. Windows shared SSH uses Tmds.Ssh 0.24.0. run67cli retains ordinary inherited-console interaction and does not advertise shared sessions. See the host support matrix. Direct SSH authenticates one connection with one remote PTY and a separate private control channel: external OpenSSH multiplexing on Linux, native managed transport on Windows. Direct Docker binds one already-running container ID and uses one docker exec -it PTY plus one docker exec -i control channel. Both require only /bin/sh, /dev/tty, and documented basic POSIX utilities in the target environment. Each terminal step is still a separate process, so an exited shell, GT.M/YottaDB process, runmqsc, or other interactive application does not remain alive for the next step. Step isolation remains the default; Flow scope is isolated per called Flow invocation and creates a resume boundary at its first terminal step.

See native Windows shared SSH for verified authentication, configuration limits, fixture acceptance and the unchanged POSIX target prerequisites.

Example Flow

apiVersion: run67/v1
kind: Flow

metadata:
  namespace: examples
  name: parent

inputs:
  name:
    type: string
    default: World
  pullPolicy:
    type: string
    default: missing
    allowedValues: [always, missing, never]
    isAdvanced: true

steps:
  - id: child
    title: Run child flow
    description: Pass the selected name to the reusable child operation.
    call:
      flow: ./child.run67.yaml
      inputs:
        name: ${{ inputs.name }}

Example Function

apiVersion: run67/v1
kind: Function

metadata:
  namespace: examples.functions
  name: ssh-port

inputs:
  index:
    type: integer
    required: true

returns:
  type: integer
  value: ${{ 2200 + inputs.index }}

Flows call Functions through the expression engine:

value: >-
  ${{
    fn("./functions/ssh-port.run67.yaml", index: steps.allocate.outputs.value)
  }}

See docs/product-scope.md, docs/formats.md, docs/run-records.md, docs/publications.md, docs/interactive-inputs.md, docs/functions.md, docs/monitors.md, docs/project-flows.md, and docs/prerequisites.md.

Security Model

Run67 files are executable procedures. Preparation resolves the full transitive plan before execution, including sub-flows, targets, and Functions. Hosts can run once, approve an approval digest and run, or cancel. Changing any execution-relevant dependency changes the definition digest and invalidates stored approval. Changing a non-local execution destination changes the approval digest even when the Flow source is unchanged.

Run67 does not install or download remote resources. http://, https://, git://, and github: resource references are rejected.

Project trust, prerequisite approval, and main-flow approval are separate decisions. Untrusted project resources are not loaded, and Preview never executes prerequisite checks.

Sensitive inputs are redacted from known display/log surfaces. Run67 redacts known sensitive values and direct propagated values; it is not a complete data-loss-prevention system.

Monitor preparation does not execute source commands. Invalid decoder configuration fails during preparation, oversized Monitor stdout/stderr terminates the source capture, and structured Monitor CLI output keeps stdout machine-readable.

Current Limitations

  • Supported route shapes are limited to local, SSH, Docker, and SSH to Docker.
  • Target routes must be fully resolved during preparation.
  • No Wizard resources
  • No advanced Monitor aggregation, joins, or snapshot history
  • Cleanup and quarantine are explicit manual actions; no automatic Run Record/Publication retention scheduler exists
  • The canonical history and Publication catalogs are filesystem-based; Core ships with no SQLite dependency
  • Explicit compatible resume creates a new linked Run and never modifies its source
  • Captured command output persistence is opt-in; captured commands are noninteractive by contract
  • Interactive PTY screen output and keystrokes are not recorded
  • GreenScreen plan and approval dialogs are modal. Interactive child process routing is delegated to Cameek.GreenScreen InteractiveProcessHost; resize and escape-sequence behavior follow that public host.

Roadmap

See docs/roadmap.md.

Resource home, runtime data, and Settings

Editable resources and configs/settings.json live in ~/.run67. Runtime state, Run Records, Publications, Trash, and remembered authorizations live in the separate ~/.run67-data. Use --home / RUN67_HOME and --data-home / RUN67_DATA_HOME to isolate both roots; a custom resource home defaults to its -data sibling.

run67 init safely migrates known legacy runtime content and adds only missing starter files. First ordinary use does the same. Bare dotnet tool install installs the package; .scripts/install-run67-tool.sh installs and then explicitly invokes the installed executable to initialize it. Neither updates nor uninstall replace or delete your resources/data. See installation and home migration.

File → Settings… persists appearance and explicit security policy. Automatic approval of Flows and Monitors and automatic project trust are independently disabled by default; enabling either requires a separate risk acknowledgement. The combined Automatically approve flows and monitors policy preserves Flow Plan Review and explicit Run intent, and authorizes eligible Monitor source captures. It is checked before every capture, including CLI watch; disabling it requires another existing explicit authorization before a later capture. File → Project Trusts… and File → Flows and Monitors Approvals… list and revoke remembered authorizations. See Settings and approvals.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
Version Downloads Last Updated
0.0.25 0 11/27/2026
0.0.24 49 11/25/2026
0.0.23 50 11/25/2026
0.0.22 61 11/24/2026
0.0.21 61 11/24/2026
0.0.20 88 11/23/2026
0.0.19 104 11/22/2026
0.0.18 102 11/22/2026
0.0.17 101 11/21/2026
0.0.16 102 11/18/2026
0.0.15 101 11/18/2026
0.0.14 101 11/8/2026
0.0.13 137 10/24/2026
0.0.10 145 9/4/2026
0.0.8 132 8/24/2026
0.0.7 134 8/24/2026
0.0.5 135 8/24/2026
0.0.2 202 7/27/2026