@juanbenjumea/pi-worksheet-loop0.1.1
Markdown-first collaborative worksheets for Pi
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Pi Worksheet Loop
A Pi extension for Markdown-first collaboration: saved worksheet revisions steer Pi, while the document remains the durable home for plans, findings, decisions, and progress.
Install
Install from the terminal (or pi install ./pi-worksheet-loop for a local path):
pi install npm:@juanbenjumea/pi-worksheet-loop
The package is self-contained: Pi discovers the extension via the pi.extensions manifest entry and the root SKILL.md as a native skill. Note: if you also keep a separately installed worksheet-loop skill, the first-loaded copy wins the name and the other is reported as a collision diagnostic.
For one-off development, load the source without installing:
pi -e /path/to/pi-worksheet-loop/index.ts
Releasing
Publishing uses npm OpenID Connect trusted publishing after the initial bootstrap release. Subsequent GitHub Actions releases use short-lived OIDC authentication; no npm token is stored in the repo.
One-time bootstrap (the package must exist before npm allows a trusted publisher to be configured):
- Authenticate interactively with
npm login, then publish the initial version (npm publish --access public). Do not add a token to the repo. - On npmjs.com, open the package → Settings / Trusted Publisher → Add
trusted publisher: GitHub owner
huaxel, repositorypi-worksheet-loop, workflow filenameci.yml. (The workflow name isci; npm's current GitHub setup asks for the workflow filename.) Allow npm publish. - Make the first successful OIDC publish within two days of configuring the publisher. Keep the most restrictive token-access setting; OIDC is compatible and npm automatically generates provenance.
Per subsequent release:
- Bump
versioninpackage.json(e.g.0.1.1) and commit. - Tag and push the matching version:
git tag v0.1.1 && git push origin v0.1.1.
CI runs the full gate (typecheck + tests) and publishes to npm only when the tag matches the package version exactly.
Commands
/worksheet start <slug>— create and select a project worksheet/worksheet attach <path>— select/watch an existing Markdown file/worksheet listand/worksheet search <text>— discover project worksheets/worksheet open [name]— select and open a worksheet/worksheet status,/worksheet pause,/worksheet resume/worksheet mode on|off— toggle document-first response routing
The extension creates project-local .worksheets/ws-<epoch>-<id>-<slug>.md files (timestamp + short random id, so parallel sessions never collide). Select a worksheet explicitly for each Pi session; sessions do not implicitly attach to the newest worksheet.
The collaboration contract and detailed behavior are in SKILL.md. Design and implementation notes are retained in the companion documents.
Development
npm install
npm test # behavioral tests for the pure core (Node >= 22.7)
npm run typecheck # strict tsc --noEmit against the pi SDK types
The current extension source originated in the dotfiles workspace and had a .disabled suffix there to prevent Pi discovery during development. This package exposes the source as index.ts for standalone installation.