@aaplugin/platform-pi
v1.0.0-beta.4
Published
Pi Platform integration for AAPlugin.
Readme
@aaplugin/platform-pi
Pi Platform package for aaplugin.
pnpm add -D @aaplugin/kit @aaplugin/platform-piimport { defineConfig } from '@aaplugin/kit';
import pi from '@aaplugin/platform-pi';
export default defineConfig({
name: 'my-plugin',
version: '1.0.0',
description: 'Reusable AI workflows.',
platforms: [pi()],
});The package also exports the named pi factory, its option types, PLATFORM_ID, and PLATFORM_API_VERSION.
Pi does not currently expose a Platform Component Contribution payload. A non-empty private component contribution fails during Package finalization rather than becoming a guidance Skill.
Runtime and installation
The complete installation root is dist/pi/package/, containing the generated package.json, discovery directories, Runtime, and optional Extensions. Pi supports local directories, npm packages, and Git refs:
pi install ./dist/pi/package
pi install git:github.com/OWNER/REPO@release-pi
pi install npm:[email protected]For Git delivery, publish the generated package directory's contents at the release branch root. A separate npm publication is optional; use the generated package name if publishing to npm. Keep the full package rather than copying only its Skills.
Pi's Skill documentation states that the model receives each Skill's path. Resolve ../../runtime/<id>/main.mjs from that Skill directory, then invoke node with the quoted absolute file path while keeping cwd at the business repository. Agent guidance Skills follow the same relationship; Prompt templates are a different resource shape.
Node must already be on PATH. The framework target is Node 20 ESM; products may document a higher requirement. Author workspace engines is not automatically copied into the generated package Manifest. SessionStart Hook context uses a hidden custom message with triggerTurn: false and does not start an agent turn.
Extensions may deliver private role Markdown and their own invocation index as Assets. This does not require a public Skill representation or imply independent Agent execution. Framework validation and standalone Node execution do not replace an actual Pi package discovery/session check.
Sources: Pi Packages, Skills, Extensions.
License
MIT
