stratumiops/scripts/nu/typecheck-all-ncl.nu
Jesús Pérez 9095ea6d8e
Some checks failed
Nickel Type Check / Nickel Type Checking (push) Has been cancelled
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled
feat: add stratum-orchestrator with graph, state, NATS, and Nickel action nodes
New crates: stratum-orchestrator (Cedar authz, Vault secrets, Nu/agent executors,
  saga runner), stratum-graph (petgraph DAG + SurrealDB repo), stratum-state
  (SurrealDB tracker), platform-nats (NKey auth client), ncl-import-resolver.

  Updates: stratum-embeddings (SurrealDB store + persistent cache), stratum-llm
  circuit breaker. Adds Nickel action-nodes, schemas, config, Nushell scripts,
  docker-compose dev stack, and ADR-003.
2026-02-22 21:33:26 +00:00

25 lines
691 B
Plaintext

#!/usr/bin/env nu
# typecheck-all-ncl.nu — Run nickel typecheck on all .ncl files. Exit 1 on any failure.
def main []: nothing -> nothing {
let all_files = (glob "**/*.ncl" | where { |f|
not ($f | str contains "/.git/")
})
let results = ($all_files | each { |f|
let r = (do { ^nickel typecheck $f } | complete)
{ file: $f, ok: ($r.exit_code == 0), err: $r.stderr }
})
let failures = ($results | where { |r| not $r.ok })
if (($failures | length) > 0) {
$failures | each { |f|
print $"FAIL ($f.file):\n($f.err)"
}
error make { msg: $"($failures | length) Nickel typecheck failures" }
}
print $"($results | length) .ncl files typechecked"
}