Files
plugins/packages/amp-usage/package.json
T
ming_jiang c2f54a8e74 amp-usage 0.1.2: an open page survives the plugin host restarting (#1099)
amp-usage keeps its service token across a host restart; a held lock is waited for, and the page polls with a timeout and clears its notice on recovery. Fixes #1098.

Reviewed at 8a6a66162; 585c921ae only drops a docs file.
Run (WSL, Bun 1.4.2, temp HOME): amp-usage tests 53/53, bun scripts/check.mjs exit 0.
Broken by hand: main's lib/server.mjs fails tests 1 and 2; main's index.mjs fails test 3.
Not tried: a real Amp account through a restarted magpie.
2026-11-13 20:28:35 +08:00

59 lines
1.2 KiB
JSON

{
"name": "@magpie-community/page-amp-usage",
"version": "0.1.2",
"description": "An Amp usage board in Magpie's window, with a local background service that can sync Amp usage into Magpie's usage ledger.",
"type": "module",
"main": "./index.mjs",
"files": [
"index.mjs",
"lib",
"page",
"ui",
"README.md",
"LICENSE",
"NOTICE"
],
"scripts": {
"test": "node --test test/*.test.mjs"
},
"engines": {
"magpie": ">=0.1.3681",
"node": ">=20"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/amp-usage"
},
"keywords": [
"magpie",
"magpie-page",
"amp",
"usage"
],
"magpie": {
"page": {
"title": "Amp usage",
"file": "page/index.html",
"icon": "page/icon.svg",
"service": {
"port": 3497,
"option": "port"
}
},
"permissions": [],
"options": {
"port": 3497,
"sync": true,
"gatewayURL": "http://127.0.0.1:3425",
"intervalSeconds": 300,
"settleSeconds": 120,
"ampPath": "",
"threadDirs": [],
"excludedThreadIds": [],
"excludedModels": []
}
}
}