Skip to content

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

Merged
zrr1999 merged 8 commits into
mainfrom
refactor/effect-terminology-cutover-rebased
May 1, 2026
Merged

♻️ refactor: align basic-cli with effect terminology#13
zrr1999 merged 8 commits into
mainfrom
refactor/effect-terminology-cutover-rebased

Conversation

@zrr1999
Copy link
Copy Markdown
Member

@zrr1999 zrr1999 commented Apr 24, 2026

Summary

  • add spore-pre-commit as the published hook source for Spore formatting
  • scope the hook to src/basic_cli/**/*.sp and top-level examples/*.sp that work with the released CLI today
  • keep project-mode files and spore-check out of prek for now because spore-lang==0.0.2 still rejects the current spore.toml schema ([platform].handles)

Validation

  • uvx --from prek prek run --all-files

Notes

  • this stays focused on hook configuration; the compiler/runtime work is separate

zrr1999 added 2 commits April 26, 2026 00:23
- Revised terminology from "capabilities" to "effects" throughout documentation.
- Updated `spore.toml` to replace `handles` with `handled-effects`.
- Adjusted comments in source files to align with the new effect tracking model.
- Cleaned up example application and CI workflow for consistency with new terminology.
- Replaced manual commands with direct `spore` CLI invocations for formatting, checking, building, running, and testing Spore files.
- Simplified the workflow by removing legacy compatibility checks and consolidating commands for clarity and efficiency.
@zrr1999 zrr1999 force-pushed the refactor/effect-terminology-cutover-rebased branch from c671ba5 to abdbb39 Compare April 25, 2026 16:24
zrr1999 added 2 commits April 26, 2026 21:58
- Replaced legacy checkout steps with a direct setup action for the Spore CLI.
- Updated the installation command to use the new `uv tool install` method.
- Simplified the test execution step by removing unnecessary directory checks.
- Added actionlint as a repository in prek.toml for static checks.
- Removed the standalone actionlint job from the CI workflow to streamline the process.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the basic-cli platform package with Spore’s updated “effects” terminology by updating manifests, docs, and module comments, while also adjusting CI and a few syntax details to stay compatible with the current compiler/tooling.

Changes:

  • Rename manifest keys and documentation language from capability-era terms to effect/handled-effects terminology (and drop obsolete Compute declarations).
  • Update platform contract/host shims and example code to match current formatting/syntax expectations.
  • Simplify CI Spore validation by installing the Spore CLI via uv, and move actionlint into prek hooks.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/platform_contract.sp Contract function formatting/syntax update and adapter call terminator change.
src/host.sp Keep legacy adapter shim in sync with updated call syntax.
src/basic_cli/stdout.sp Doc terminology updated to “effect-gated”.
src/basic_cli/file.sp Doc terminology updated to “effect-gated”.
src/basic_cli/cmd.sp Doc terminology updated to “effect tracking”.
spore.toml Replace handles/[capabilities] with handled-effects and remove Compute.
prek.toml Add actionlint as a prek-managed hook.
examples/hello-app/src/main.sp Example comment/style refresh and statement terminator update.
examples/hello-app/spore.toml Remove obsolete [capabilities] allow = ["Compute"].
README.md Terminology/link updates and removal of obsolete manifest snippet section.
.github/workflows/ci-tests.yml Install Spore CLI via uv and simplify Spore format/check/build/run/test steps.
.github/workflows/ci-static-checks.yml Remove standalone actionlint job (now covered via prek).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci-tests.yml
zrr1999 and others added 4 commits April 28, 2026 21:43
- Upgraded the Spore CLI installation from version 0.0.2 to 0.0.3 in the CI workflow to ensure compatibility with the latest features and fixes.
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>
@zrr1999 zrr1999 merged commit b3d371d into main May 1, 2026
5 of 7 checks passed
@zrr1999 zrr1999 deleted the refactor/effect-terminology-cutover-rebased branch May 1, 2026 05:47
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.

3 participants