chore: prepare pigibrack npm package release

This commit is contained in:
2026-04-04 11:17:36 +02:00
parent fdc1593a27
commit 9a07e586cf
10 changed files with 1192 additions and 1257 deletions

File diff suppressed because it is too large Load Diff

25
LICENSE Normal file
View File

@@ -0,0 +1,25 @@
BSD 2-Clause License
Copyright (c) 2026, pigibrack contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

50
README.md Normal file
View File

@@ -0,0 +1,50 @@
# pigibrack
Pi package providing a Guile/Scheme structural editing extension.
## Features
- Top-level form tools by name:
- `pigibrack_read_module`
- `pigibrack_read_form`
- `pigibrack_replace_form`
- `pigibrack_insert_form`
- `pigibrack_delete_form`
- Syntax checks via Guile reader: `pigibrack_check_syntax`
- Persistent Guile REPL sidecar eval: `pigibrack_eval_expr`
- Macro expansion: `pigibrack_macro_expand`
- Commands:
- `/pigibrack-status`
- `/pigibrack-repl-reset`
## Install in pi
```bash
pi install npm:pigibrack
```
Or project-local:
```bash
pi install -l npm:pigibrack
```
## Manual load (this repo)
Pi auto-discovers `.pi/extensions/pigibrack/index.ts` in this repository.
## Package manifest
This package declares:
```json
{
"pi": {
"extensions": ["./extensions/pigibrack/index.ts"]
}
}
```
## License
BSD-2-Clause.

View File

@@ -22,16 +22,14 @@ Commands:
## How to load
This extension is project-local at:
As a package resource, this extension entrypoint is:
- `extensions/pigibrack/index.ts`
When developing in this repository, Pi auto-discovers the shim at:
- `.pi/extensions/pigibrack/index.ts`
Pi auto-discovers this path. You can also start explicitly:
```bash
pi -e ./.pi/extensions/pigibrack/index.ts
```
## Notes
- Structural operations are top-level form by **name**.

File diff suppressed because it is too large Load Diff

181
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,36 @@
{
"name": "pigibrack",
"version": "0.1.0",
"description": "Pi extension package for structural Scheme/Guile editing with a persistent REPL sidecar",
"license": "BSD-2-Clause",
"keywords": [
"pi-package",
"pi-extension",
"scheme",
"guile",
"lisp"
],
"files": [
"extensions/pigibrack/**",
"README.md",
"LICENSE"
],
"pi": {
"extensions": [
"./extensions/pigibrack/index.ts"
]
},
"peerDependencies": {
"@mariozechner/pi-ai": "*",
"@mariozechner/pi-coding-agent": "*"
},
"devDependencies": {
"@mariozechner/pi-coding-agent": "^0.65.0"
},
"scripts": {
"typecheck": "tsc --noEmit",
"format": "prettier . --write",
"format:check": "prettier . --check"
"format:check": "prettier . --check",
"pack:dry-run": "npm pack --dry-run"
}
}