GitHub's search for topic:magpie-plugin (not archived, not a fork, not magpie-community's own, which the market lists) is asked at most every six hours and kept on disk, so a restart or GitHub being down shows what it said last. Each repository is read from its package.json on the default branch. When npm has that package published from the same repository, it is installed from npm, because a repository often builds its dist only to publish and Bun runs no build for a git install. Otherwise it is installed as github:owner/repo, and only if the file it loads (exports, main or magpie.middleware) is in the repository. Its page warns that it is unofficial, says whether npm or the repository is what gets installed, and shows the repository's README until it is installed. MAGPIE_PLUGIN_MARKET=off asks GitHub nothing. Checked against real GitHub with the topic set to opencode-plugin in a sandbox: 43 repositories came back, and 32 were kept (30 from npm, 2 from git). github:ndom91/open-plan-annotator, one of the git ones, really installed and loaded. alfaoz/opencode-see-image, whose dist isn't in its repository, failed to load before the entry check and is now left out. The test fixtures are GitHub's and npm's real answers. Ran: go test -race -count=3 ./internal/plugin, go test ./internal/gui, go vet, and plugin-github.test.cjs (Chromium and WebKit, 980/440, en/zh/ja/de, 18/18). The full GUI suite passed 3343 of 3348. The 5 failures were WebKit number-units, purpose-filter and routing-failed-open, which pass 3/3 on their own and don't touch the Plugins page.
1 line
1.9 KiB
JSON
1 line
1.9 KiB
JSON
{"bugs":{"url":"https://github.com/magpie-community/plugins/issues"},"dist":{"shasum":"f8f4eda2527b5e41cf6379aa669e9895a083227d","tarball":"https://registry.npmjs.org/@magpie-community/middleware-word-guard/-/middleware-word-guard-0.1.0.tgz","fileCount":3,"integrity":"sha512-wY3oIvkEYVQHJzrcSPbP8C+UIIeqxgjNZc/LhSnFKOrTrkJWodikdIsN9mK2a4XE8Za75iyuoPn8jHjRpc/rrQ==","signatures":[{"sig":"MEUCIEwEv3bsHfuLeAw4NlD/G2K19OiOMtAMR0tcf+FuSew4AiEAk8df8v4zo9EUtEutE6Ct9z58h51voDFcXx08i+2a4ZA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDWGUXN7OIS621n2oaW6UxdOzOkNHcKiPq5TWv27q2sfAIhAITgR1F8aBsxKqAjgQbqwakE1UfRB+mnLzIsSJ6HCWNE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8409},"name":"@magpie-community/middleware-word-guard","type":"module","magpie":{"options":{"check":"last","words":["project-codename"],"action":"reject","patterns":[]},"middleware":"./word-guard.middleware.js"},"gitHead":"719ba0c6212999f3f15a7d3d1fc85dfdc06263a8","license":"MIT","_npmUser":{"name":"yetone","email":"yetoneful@gmail.com"},"homepage":"https://github.com/magpie-community/plugins#readme","keywords":["magpie","magpie-middleware","new-api","sensitive-words","guardrails","llm-gateway"],"repository":{"url":"git+https://github.com/magpie-community/plugins.git","type":"git","directory":"packages/word-guard"},"_npmVersion":"10.9.4","description":"New API's sensitive-word filter (敏感词过滤) as magpie gateway middleware: turn away or mask words and patterns in what agents send, and in replies","directories":{},"maintainers":[{"name":"yetone","email":"yetoneful@gmail.com"}],"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/middleware-word-guard_0.1.0_1791223429841_0.8373448730695063","host":"s3://npm-registry-packages-npm-production"},"_id":"@magpie-community/middleware-word-guard@0.1.0","version":"0.1.0"} |