In the for_collect case, my understanding is the main goal of FilePath is to prevent clobbering files with save. If we've collected, it's now safe to overwrite our original file, so FilePath is cleared. The code has always been doing this, but the previous version tied that decision to content_type — it only cleared FilePath when content_type was also None. That coupling didn't make sense, so when I added the custom metadata field, I moved the collect-time cleanup into its own for_collect method on PipelineMetadata and made it always clear FilePath regardless of other fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( | |
| interleave | |
| { generate {|_ = 0| | |
| let ev = (try { input listen --types [key] --timeout 200ms } catch { null }) | |
| {out: (if $ev != null { {kind: key, event: $ev} }), next: 0} | |
| } | |
| } | |
| { generate {|_ = 0| sleep 1sec; {out: {kind: tick, event: (date now)}, next: 0} } } | |
| ) | |
| | where $it != null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with-dotenv { | |
| echo '{"role":"user","content":"Run this in the nu tool exactly: use greeter; greeter hi"}' | |
| | yoke --provider openrouter --model openai/gpt-oss-20b:free --tools nu -I ~/yoke-test/modules | |
| } | |
| {"type":"tools","tools":[{"name":"nu","description":"Execute a Nushell script. Output is auto-converted to nuon -- do NOT add '| to nuon' or '| to json'. Pass structured data via 'input' (JSON) to avoid quoting issues -- it becomes $in in the pipeline.\n\nUse help liberally to learn how nushell works. Do NOT guess command names or flags -- discover them with help. If you encounter an error, you MUST use help related to your task before trying again.\n\nExamples:\n {command: \"help where\"}\n {command: \"help --find convert\"}\n {command: \"$in | where price > 20\", input: [{name: \"Widget A\", price: 25.50}, {name: \"Gadget\", price: 15}]}\n {command: \"seq 1 10 | each { |n| $n * $n }\"}"}]} | |
| {"type":"agent_start"} | |
| {"type":"turn_start"} | |
| {"role":"user","content":[{"type":"text","text":"Run this in |
Stellar is a local-first CSS generator with an interactive web editor.
stellar serve serves your generated CSS and exposes a /live-refresh
SSE endpoint that pushes stylesheet updates via Datastar.
stellar serve # http://localhost:7331Exploring schema validation for nushell/http-nu
We want to validate records against a schema (like JSON Schema). Nushell already has type syntax for command signatures:
def foo []: record<
name: string,
age: int,
email?: string,
tags: list<string>,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use xs.nu * | |
| use http-nu/router * | |
| use http-nu/datastar * | |
| use http-nu/html * | |
| def escape []: string -> string { | |
| $in | str replace -a '&' '&' | str replace -a '<' '<' | str replace -a '>' '>' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use /root/.config/nushell/scripts/xs.nu * | |
| def decode-basic-auth [header?: string] { | |
| if ($header | is-empty) or (not ($header | str starts-with 'Basic ')) { | |
| return null | |
| } | |
| let encoded_part = $header | str replace 'Basic ' '' | |
| # handle base64 decode errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Analysis Complete | |
| I've reviewed the http-nu repository and found the key insights for fixing the Darwin build failure in nixpkgs. | |
| Root Cause | |
| The libproc v0.14.11 crate (a transitive dependency via nu-system → part of Nushell) uses bindgen to generate Rust bindings from C code. Bindgen requires libclang to compile, but the current nixpkgs package | |
| definition doesn't provide it for Darwin builds. | |
| How http-nu Successfully Builds on Darwin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const XS_CONTEXT_SYSTEM = "0000000000000000000000000" | |
| def and-then [next: closure --else: closure] { | |
| if ($in | is-not-empty) { do $next } else { | |
| if $else != null { do $else } | |
| } | |
| } | |
| def or-else [or_else: closure] { | |
| if ($in | is-not-empty) { $in } else { do $or_else } |
NewerOlder