17 Commits

Author SHA1 Message Date
hustcer 9262a68389 fix(skill): validate generated Nu scripts before execution
- Prefer nu-check --debug for scripts and modules; reserve IDE checks for structured diagnostics and clarify that source executes code.
- Preserve relative import context and separate trusted program templates from serialized data across interpreter boundaries.
- Replace the broken generated-command test runner with named closures that reject empty selections and stop on failed assertions.
- Add six executable regression groups, three evaluation prompts, and evidence from the official English docs and Nushell source.
- Verify all three smoke suites on Nu 0.115.1 and check formatting, local documentation links, and prompt integrity.
2026-09-14 09:28:13 +08:00
hustcer 759a7d2735 fix(skill): correct Nu 0.115 guidance against verified runtime behavior
Two-axis review of 95d71c2, plus reproduction on nu 0.115.0, surfaced guidance
that does not match the release, claims the changelog does not support, and a
reference file with no cross-links.

- Warn that `to yaml --non-roundtrip 'lossy'` is rejected on 0.115.0 and that a
  bare `null` is a parse error; recommend `'null'` or `--serialize` instead
- Document that a `try/finally` nested inside an outer `try`/`catch` silently
  skips the inner `finally`, with the two shapes that do run cleanup
- Narrow the semver inference note to `bool`-declared parameters; `if` and bare
  expressions are unaffected
- Add YAML 1.1 sexagesimal coercion, `to yaml --multiple`, the `--serialize`
  deprecation notice, `--compact-list-indent`, `--key-resolution strict`,
  `--include (-i)`, and KDL `--format`
- Add `into matrix` as the matrix constructor; bare `matrix` takes no input
- Add seven further 0.115 behavior changes: parse-time `$in` RHS typing,
  `color_config` defaults, interpolation subexpression quoting, `stor import`,
  `generate`, `match` const arms, and `oneof` negative args
- Correct `deprecation_info` to a table read as `.0`, keyword shadowing to the
  module name, and `save` to a clearer message rather than new enforcement
- Mark the `--loose` round-trip and semver notes as reproduction-verified
  rather than changelog-sourced
- Link the 0.115 reference to its six siblings and add a routing section
- Split the smoke test into behavior-named cases, extract `run-nu-json` and
  `run-nu-lines`, assert fixture cleanup, and lock both 0.115.0 defects so a
  patched Nu fails the assertions
- Move the `save` serializer rule out of the 0.115 data-format section
- Sync README structure line, feature bullet, and smoke-test coverage

Verified on nu 0.115.0: both smoke tests exit 0 with zero `--ide-check` error
diagnostics; all cross-file links and heading anchors resolve.
2026-08-20 13:58:21 +08:00
hustcer 95d71c2050 feat(skill): add Nu 0.115 migration guidance
- Document YAML 1.2, external_arg, SemVer, grouping, and command changes.
- Strengthen evidence-driven review rules with version-aware findings.
- Add focused review prompts and executable Nu 0.115 smoke coverage.
2026-08-20 12:11:59 +08:00
hustcer fa757fe0fb feat(skill): add daemon/E2E smoke-test guidance and IDE-check validation
- Add references/daemon-and-e2e-smoke-tests.md covering job-spawn lifecycle
  checks: mktemp isolation, deadline-based readiness polling, job ID/PID
  tracking, finally cleanup, and post-cleanup verification
- Add tests/validation-and-daemon-smoke.nu, an executable regression test
  that validates JSONL IDE diagnostic classification and daemon job cleanup
- Document --ide-check caveats in SKILL.md: zero exit code with Error
  diagnostics, empty output for missing files, hint-record handling, and
  --no-config-file reproducibility
- Register the new reference in the SKILL.md routing table and README tree
- Extend test-prompts.json with prompts 16-17 covering ide-check exit-code
  review and E2E smoke-test review
2026-08-09 23:35:48 +08:00
hustcer 36cdda0af8 docs(skill): improve progressive disclosure
- Keep cross-cutting Nushell guidance in the always-loaded skill
- Move Nu 0.114 migration details into an on-demand reference
- Document the new reference and validate routed links
2026-07-28 17:50:51 +08:00
hustcer 187da8f60d perf: Optimize SKILL & format changes 2026-07-10 19:44:36 +08:00
hustcer 32fbef5f2a feat: support Nushell 0.114 in skill
Update nushell-pro guidance for Nushell 0.114 language and command changes.

- Add core Nu 0.114 migration notes for stricter type checks, run, POSIX --, SemVer, submodule imports, diagnostics, and spreadsheet flags
- Refresh references for type system, modules/scripts, review checklist, Bash conversion, anti-patterns, and Polars 0.54 behavior
- Add Nu 0.114 test prompts and README coverage
2026-07-06 07:58:59 +08:00
hustcer 155633f605 feat: Update reference for polars 2026-06-14 08:56:04 +08:00
hustcer de66cca11e Add Nushell flag and format string guidance 2026-06-03 17:40:01 +08:00
hustcer 91278cd8ab chore: prefer match unless if is clearer 2026-06-01 18:58:24 +08:00
hustcer 25ea8ff1c1 Add Nushell 0.113 knowledge updates 2026-06-01 09:01:18 +08:00
hustcer d867f91094 Add Polars dataframes reference and integrate across skill
- Add references/dataframes.md: comprehensive guide covering lazy/eager
  frames, open/collect, group-by, agg, joins, expressions, column selectors,
  type annotations, and large-data best practices
- Add anti-pattern #24: native loops/group-by on huge datasets vs. Polars
- Extend SKILL.md with Polars decision guidance, large-data section,
  review checklist item, pitfall table row, and reference link
- Update README.md to mention dataframes reference and bump anti-pattern count
- Add test prompt #4 for the large-data / Polars use case
- Cross-link dataframes.md from advanced-patterns.md and data-and-types.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-01 08:19:41 +08:00
hustcer 22f8518c94 optimize nushell-pro string guidance 2026-06-01 07:05:30 +08:00
hustcer 7023e6030a Rename nushell-craft to nushell-pro 2026-03-01 13:15:13 +08:00
hustcer 585828b8b2 chore: Update README.md 2026-02-27 23:14:13 +08:00
hustcer 0bdd37c257 fix: Fix error scripts 2026-02-27 21:03:58 +08:00
hustcer 9e9d1bb5ec chore: Add README.md 2026-02-27 20:30:40 +08:00