Skip to content

♻️ refactor: align basic-cli with effect terminology#12

Closed
zrr1999 wants to merge 15 commits into
mainfrom
refactor/effect-terminology-cutover
Closed

♻️ refactor: align basic-cli with effect terminology#12
zrr1999 wants to merge 15 commits into
mainfrom
refactor/effect-terminology-cutover

Conversation

@zrr1999

@zrr1999 zrr1999 commented Apr 22, 2026

Copy link
Copy Markdown
Member

Summary

  • rename the platform manifest and example configuration from capability-era keys to the new effect-family surfaces
  • update README language, SEP links, and module comments so basic-cli consistently uses required effects / handled effects terminology
  • include the small syntax follow-ups in the example app and platform contract files needed to keep validation green with the updated compiler

Validation

  • cargo build --manifest-path host/Cargo.toml
  • ../spore/target/release/spore format --check examples/hello-app/src/main.sp src/platform_contract.sp src/host.sp
  • ../spore/target/release/spore check src/basic_cli/cmd.sp src/basic_cli/file.sp src/basic_cli/stdout.sp src/platform_contract.sp src/host.sp
  • (cd examples/hello-app && ../../../spore/target/release/spore check src/main.sp && ../../../spore/target/release/spore build src/main.sp && ../../../spore/target/release/spore run src/main.sp)

Notes

  • this keeps the platform docs and config examples aligned with the concurrent effect-terminology cutover in spore

zrr1999 and others added 15 commits April 4, 2026 00:49
Platform modules (.sp): Stdout, Stdin, File, Dir, Env, Cmd
Rust host: 15 foreign fn implementations, 7 tests
Examples: hello, file-copy, env-reader
CI: fmt + clippy + test

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…n) (#1)

- StdOut, StdErr, StdIn → Console (unified console I/O intent)
- EnvVar → Env (environment access intent)
- Exec → Spawn (process spawning intent)
- FileRead, FileWrite unchanged (already intent-oriented)
- Updated platform modules, examples, and README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat: add platform spec tests, fix syntax issues, update CI

- Add tests/platform_check.sp with 34 specs across 13 pure helpers
- Fix clause ordering in File.sp, Dir.sp, Cmd.sp (! before uses)
- Fix main.sp import syntax, examples remove invalid top-level uses
- Add spore-check job to CI workflow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* ci: remove spore test step until spore-test lands on main

The spore test subcommand is in spore-lang/spore PR #55 and not yet
on main. Remove the step to unblock CI; re-add once #55 merges.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: standardize zendev checks and workflow layout\n\nAdopt a zendev-style prek baseline, split CI into static/tests/PR\nchecks, and keep the existing host plus Spore integration coverage\nunder the normalized workflow structure.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: repin PR title validation to portable zendev action\n\nUse the follow-up zendev action fix that validates titles from source\nwithout depending on hatch-vcs metadata in a checked-out .git-less\naction bundle.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: repin PR title validation to final zendev fix\n\nMove from the intermediate portable-action commit to the final source-load\nfix in zendev, which removes the remaining import-chain dependency in\nremote action executions.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: switch PR title checks to zendev-actions\n\nUse the standalone zrr1999/zendev-actions wrapper instead of consuming\nthe action embedded in zendev directly. The wrapper now shells out via\nuvx --from git+ to zendev-validate-title.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 🔧 expand basic-cli CI coverage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: tighten basic-cli example coverage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 📝 docs: tighten examples wording

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 🧪 test: remove misleading spec smoke

Drop the fake tests/platform_check.sp fixture, stop advertising Spore-side regression coverage that the repo does not actually have, and only run spore test in CI when real tests exist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 🐛 fix: restore doc comments, fix error set syntax (D11), remove Ruby workaround

- Restore /// doc comments on all platform/*.sp files (spore formatter now preserves them)
- Fix error set syntax: ! [Error] → ! Error (D11: pipes, no brackets)
- Fix clause order: ! before uses (parser requirement)
- Fix hello.sp: remove invalid module-level uses, Unit → ()
- Remove Ruby error-set normalization workaround from CI (no longer needed)
- Fix README: update code example and error set documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: align examples, docs, and CI validation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: repin spore CI to current main

* Trigger PR workflows for stacked branches

* 👷 ci: validate PR description headings

* �� ci: unify PR body check naming

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ✨ feat(layout): migrate basic-cli package layout

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: align package-layout spore checks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: align host format validation

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* 🔧 fix: restore package-backed basic-cli canon

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 🔧 fix: realign package-backed basic-cli docs and CI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* 👷 ci: add actionlint to ci-static-checks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* 👷 ci: pin actionlint to an existing tag

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…#11)

Aligns `process_run_status` and `exit` return/parameter types from `Int`
to `I32`, following the spore int-type-split change (Ty::Int → sized variants).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant