Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* text=auto eol=lf
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.bmp binary
*.ico binary
*.tgz binary
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [master, main]
pull_request:

permissions:
contents: read

jobs:
verify:
name: ${{ matrix.os }} / Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [22.18.0, 24.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci --ignore-scripts
- run: npm run check
- run: npm test
- run: npm run package:smoke
- run: npm audit --audit-level=high
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write
id-token: write

jobs:
publish:
name: Publish npm package and GitHub Release
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v4
- name: Verify first-publication bootstrap
env:
GH_TOKEN: ${{ github.token }}
RELEASE_BOOTSTRAPPED: ${{ vars.RELEASE_BOOTSTRAPPED }}
TARGET_REPOSITORY: mapleluvr/visual-primitives
run: |
test "${RELEASE_BOOTSTRAPPED}" = "true"
test "${GITHUB_REPOSITORY}" = "${TARGET_REPOSITORY}"
gh api "repos/${TARGET_REPOSITORY}" >/dev/null
npm run release:verify-bootstrap
- uses: actions/setup-node@v4
with:
node-version: 24.x
cache: npm
registry-url: https://registry.npmjs.org
- run: npm install --global npm@11.6.2
- run: npm ci --ignore-scripts
- run: npm run check
- run: npm test
- run: npm run package:smoke
- run: npm audit --audit-level=high
- run: npm run release:verify-tag -- "${GITHUB_REF_NAME}"
- name: Build release artifacts
run: |
mkdir release
npm pack --json --ignore-scripts --pack-destination release > release/pack.json
sha256sum release/*.tgz > release/SHA256SUMS
npm sbom --sbom-format spdx > release/sbom.spdx.json
- name: Resolve npm publication state
id: npm-state
run: node scripts/resolve-release-state.mjs release/pack.json
- name: Publish npm package
if: steps.npm-state.outputs.publish == 'true'
run: npm publish release/*.tgz --provenance --access public
- name: Create or update GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release view "${GITHUB_REF_NAME}" >/dev/null 2>&1 || \
gh release create "${GITHUB_REF_NAME}" --verify-tag --generate-notes
gh release upload "${GITHUB_REF_NAME}" \
release/*.tgz release/SHA256SUMS release/sbom.spdx.json --clobber
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
node_modules/
dist/
skills/frontend-replication/scripts/masked-oracle-diff.js
npm-debug.log*
.DS_Store
*.crop-*.png
tmp/
.worktrees/
.superpowers/
.pi-subagents/
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog

All notable changes to this package are documented here.

## [0.2.0] - 2026-07-27

### Added

- Standalone vp CLI through the `vp` and `visual-primitives` binaries, with `crop`, `crop-multi`, `annotate`, `point`, and `colors` commands.
- Strict JSON compatibility mode for the five former visual primitive tool payloads.
- Package-local Skill launcher at `skills/_shared/run-vp.mjs`.
- Frontend-owned package-local masked-diff runner that works from consumer project directories.
- Six-Skill package containing generic visual evidence guidance and the frontend replication workflow family.
- Cross-platform CI, packed-install smoke coverage, restartable GitHub Release assets, and tag-gated npm Trusted Publishing configuration.

### Changed

- Renamed the npm package from the legacy Pi extension identity to `@mapleluvr/visual-primitives`.
- Moved `masked-oracle-diff` under frontend-replication-owned Skill resources.
- Unified the CLI and Skill Set under one package version and Git tag.

### Removed

- Pi extension registration and the runtime peer dependency on `@earendil-works/pi-coding-agent`.
- `masked-oracle-diff` from the generic visual primitive execution surface.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 mapleluvr

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading