<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
      <title>bigfish的网络博客 - 扩展</title>
      <link>https://blog.bigfisharc.cn</link>
      <description>记录技术和生活</description>
      <generator>Zola</generator>
      <language>zh</language>
      <atom:link href="https://blog.bigfisharc.cn/tags/kuo-zhan/rss.xml" rel="self" type="application/rss+xml"/>
      <lastBuildDate>Sun, 22 Nov 2026 23:45:00 +0800</lastBuildDate>
      <item>
          <title>如何让 rpi 收录你的扩展</title>
          <pubDate>Sun, 22 Nov 2026 23:45:00 +0800</pubDate>
          <author>bigfish</author>
          <link>https://blog.bigfisharc.cn/blog/20261122-2345-ru-he-rang-rpishou-lu-ni-de-kuo-zhan/</link>
          <guid>https://blog.bigfisharc.cn/blog/20261122-2345-ru-he-rang-rpishou-lu-ni-de-kuo-zhan/</guid>
          <description xml:base="https://blog.bigfisharc.cn/blog/20261122-2345-ru-he-rang-rpishou-lu-ni-de-kuo-zhan/">&lt;p&gt;&lt;code&gt;bigfish1913/rpi-hello&lt;/code&gt; 是昨天推上去的一个演示仓库，根目录放了一份清单。今天我在本机跑了一条命令：&lt;/p&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;$ rpi install rpi-hello --github bigfish1913/rpi-hello --force&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;downloading prebuilt rpi-hello 0.1.0 for x86_64-pc-windows-msvc&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;installed C:\Users\bigfish\.rpi\agent\extensions\rpi_hello-v0.1.0-27524abb12b64128bf38da745a48ae00.dll&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;rpi will validate the plugin entrypoint/SDK API size and load this extension on the next start.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;装上了。这条命令能成立，跟我有没有在官网上点过什么无关，它成立是因为仓库里有几样东西能被机器读走。反过来，官网要收录一个仓库，也只认这几样。&lt;/p&gt;
&lt;p&gt;这篇里“收录”指一件具体的事：目录接口里出现一条带 &lt;code&gt;install&lt;/code&gt; 命令的条目。目录页面和接口读的是同一份数据，下面把条目当成收录的结果。&lt;/p&gt;
&lt;p&gt;接下来按请求顺序走一遍：一个普通 GitHub 仓库，要经过哪几次请求，才会变成目录里的一条 &lt;code&gt;rpi install ...&lt;/code&gt;。仓库侧那几次都能自己用 curl 复现，断在哪一跳，症状也不一样。&lt;/p&gt;
&lt;p&gt;官方说明在提交页 &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://rpi.bigfisharc.cn/submit.html?lang=zh&quot;&gt;https://rpi.bigfisharc.cn/submit.html?lang=zh&lt;/a&gt;，给 AI 看的打包技能在 &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://rpi.bigfisharc.cn/skills/rpi-extension-packaging.md&quot;&gt;https://rpi.bigfisharc.cn/skills/rpi-extension-packaging.md&lt;/a&gt;，下面很多规则都来自这两处。&lt;/p&gt;</description>
      </item>
    </channel>
</rss>
