{"_id":"@aipowergrid/plugin-aipg","name":"@aipowergrid/plugin-aipg","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aipowergrid/plugin-aipg","version":"0.1.0","description":"ElizaOS plugin for AI Power Grid text, image, video, and music generation","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","packageType":"plugin","platform":"node","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.build.json","typecheck":"tsc --noEmit -p tsconfig.json","lint":"biome check src/ tests/","lint:check":"biome check src/ tests/","lint:fix":"biome check --write src/ tests/","test:component":"vitest run --config ./vitest.config.ts tests/client.test.ts tests/plugin.test.ts","test:e2e":"vitest run --config ./vitest.config.ts tests/runtime.e2e.test.ts","test:e2e:live":"AIPG_LIVE_E2E=1 vitest run --config ./vitest.config.ts tests/runtime.live.e2e.test.ts","test":"bun run test:component && bun run test:e2e"},"keywords":["elizaos","plugin","aipg","ai-power-grid","openai-compatible","image-generation","video-generation","music-generation"],"license":"MIT","author":{"name":"AI Power Grid"},"homepage":"https://aipowergrid.io","repository":{"type":"git","url":"git+https://github.com/AIPowerGrid/grid-provider-integrations.git","directory":"elizaos-aipg"},"bugs":{"url":"https://github.com/AIPowerGrid/grid-provider-integrations/issues"},"peerDependencies":{"@elizaos/core":"1.7.2"},"devDependencies":{"@biomejs/biome":"2.5.8","@elizaos/core":"1.7.2","@types/node":"^24.0.0","typescript":"^6.0.0","vitest":"^4.0.0"},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"agentConfig":{"pluginType":"elizaos:plugin:1.0.0","pluginParameters":{"AIPG_API_KEY":{"type":"string","description":"Scoped AI Power Grid key with account.read and inference.submit. Required at runtime; never commit values."},"AIPG_TEXT_SMALL_MODEL":{"type":"string","description":"Optional online Grid model for ElizaOS small-text calls.","defaultValue":"auto"},"AIPG_TEXT_LARGE_MODEL":{"type":"string","description":"Optional online Grid model for ElizaOS large-text calls.","defaultValue":"auto"},"AIPG_REASONING_MODEL":{"type":"string","description":"Optional online Grid model for ElizaOS reasoning calls.","defaultValue":"auto"},"AIPG_COMPLETION_MODEL":{"type":"string","description":"Optional online Grid model for completion calls.","defaultValue":"auto"},"AIPG_IMAGE_MODEL":{"type":"string","description":"Online Grid image model selected explicitly for IMAGE calls."}}},"elizaos":{"plugin":{"displayName":"AI Power Grid","category":"model-provider"}},"gitHead":"e1dc8f4e2bf55926701f501a8471016b2d263556","_id":"@aipowergrid/plugin-aipg@0.1.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-aH/m7uWuJdUhDuJjBeV543+zGrI0Z4IwW1RmruTRfqXOyErzyi+f1py7b2iQGqyNRCEyqX+M4XpRM4srj/+/oQ==","shasum":"cc9f6823871c66a4a202e55675ca44a7c3ebf07c","tarball":"https://registry.npmjs.org/@aipowergrid/plugin-aipg/-/plugin-aipg-0.1.0.tgz","fileCount":23,"unpackedSize":77117,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aipowergrid%2fplugin-aipg@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4QbLGsmMxLN9JUDV2FilO9xZNCump+ge0++2OStcsWgIhAMwM6KMXiZJTRpXNRTlRzcw/NYDgusqlGuypuIMGSe9p"}]},"_npmUser":{"name":"halfaipg","email":"half@aipowergrid.io"},"directories":{},"maintainers":[{"name":"halfaipg","email":"half@aipowergrid.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-aipg_0.1.0_1788038485093_0.3042147005702849"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-29T21:21:24.866Z","0.1.0":"2026-08-29T21:21:25.225Z","modified":"2026-08-29T21:21:25.614Z"},"maintainers":[{"name":"halfaipg","email":"half@aipowergrid.io"}],"description":"ElizaOS plugin for AI Power Grid text, image, video, and music generation","homepage":"https://aipowergrid.io","keywords":["elizaos","plugin","aipg","ai-power-grid","openai-compatible","image-generation","video-generation","music-generation"],"repository":{"type":"git","url":"git+https://github.com/AIPowerGrid/grid-provider-integrations.git","directory":"elizaos-aipg"},"author":{"name":"AI Power Grid"},"bugs":{"url":"https://github.com/AIPowerGrid/grid-provider-integrations/issues"},"license":"MIT","readme":"# AI Power Grid for ElizaOS\n\n`@aipowergrid/plugin-aipg` lets an ElizaOS agent use AI Power Grid for text\nreasoning and explicit image, video, and music generation.\n\nThis is an independent AI Power Grid integration. It does not imply an ElizaOS\npartnership or registry acceptance.\n\n## Install\n\n```bash\nelizaos plugins add @aipowergrid/plugin-aipg\n```\n\nCreate a Grid API key in the [developer console](https://console.aipowergrid.io/dashboard/api-key)\nwith these scopes:\n\n- `inference.submit` for generation\n- `account.read` for model and credit status\n\nSet the key only in the agent runtime environment:\n\n```bash\nexport AIPG_API_KEY=\"your-key\"\n```\n\nDo not put API keys in character files, prompts, source control, or action\nparameters.\n\n## Capabilities\n\n- ElizaOS text model handlers for small, large, reasoning, and completion calls\n- SSE text streaming with bounded timeouts and explicit incomplete-stream errors\n- ElizaOS `IMAGE` model handler\n- Explicit `AIPG_CHAT`, `AIPG_GENERATE_IMAGE`, `AIPG_GENERATE_VIDEO`, and\n  `AIPG_GENERATE_AUDIO` actions\n- Read-only `AIPG_LIST_MODELS` and `AIPG_CREDIT_STATUS` actions\n- Online model discovery before generation\n\nThe plugin defaults to Grid's `auto` text route. A character or runtime can pin\ntext models with `AIPG_TEXT_SMALL_MODEL`, `AIPG_TEXT_LARGE_MODEL`,\n`AIPG_REASONING_MODEL`, and `AIPG_COMPLETION_MODEL`. Media actions accept a\nmodel selected from the live model list.\n\n## Trust And Billing\n\nRequests leave the ElizaOS runtime and are dispatched by Grid Core to remote,\ncommunity-operated workers. Do not send secrets or assume confidential\ninference. Grid credits are billed under the account attached to the API key;\nthe plugin never generates during initialization or credential validation.\n\nThe current source of truth for availability is `GET /v1/models` and the source\nof truth for account credits is `GET /v1/account/credits`. A model being listed\nmeans at least one compatible worker is currently connected; it is not an SLA.\n\n## Development\n\n```bash\nbun install --frozen-lockfile\nbun run typecheck\nbun run lint:check\nbun test\nbun run build\nbun audit --production\nnpm publish --dry-run --access public\n```\n\nMock tests never use a real key or spend credits. Before a release, run one\nsupervised, low-output text generation through the real ElizaOS runtime with a\ndedicated scoped test key:\n\n```bash\nAIPG_API_KEY=\"...\" bun run test:e2e:live\n```\n\nRecord only status/timing evidence, never the key, prompt, output, or balance.\n\nThe stable `@elizaos/core` development tree currently reports advisories in its\nown PDF/crypto transitive dependencies under a full `bun audit`. They are not\nbundled by this package (`@elizaos/core` is a peer), but the upstream findings\nmust remain visible in release notes until ElizaOS updates them.\n\nPublish only through the root `publish-packages.yml` workflow after the live\ngate, using a tag that exactly matches the package version, such as\n`plugin-aipg-v0.1.0`. Configure npm Trusted Publishing for the\n`AIPowerGrid/grid-provider-integrations` repository and that workflow; use a\npackage-scoped `NPM_TOKEN` only if npm requires one for the first publication.\n","readmeFilename":"README.md","_rev":"1-02aed9da811600d768987e8eec116282"}