driftnet 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/README.zh-TW.md +4 -0
- package/dist/driftnet.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -398,6 +398,10 @@ CHROME=/path/to/chrome pnpm e2e:web # the web page on a phone-sized
|
|
|
398
398
|
pnpm build:npm # the npm package in dist/npm (try: cd dist/npm && npm pack)
|
|
399
399
|
```
|
|
400
400
|
|
|
401
|
+
Releasing: bump the version in `apps/server/package.json`, `server.json` and `.claude-plugin/`, then push a tag
|
|
402
|
+
(`git tag v0.2.0 && git push origin v0.2.0`). [`release.yml`](https://github.com/KevinChu1110/driftnet/blob/main/.github/workflows/release.yml) tests and publishes to
|
|
403
|
+
npm (trusted publishing) and the MCP Registry, and creates the GitHub release — no passwords or one-time codes.
|
|
404
|
+
|
|
401
405
|
Extend it: a site (a plugin file in `~/.driftnet/plugins`, like
|
|
402
406
|
[`examples/plugins/hackernews.mjs`](https://github.com/KevinChu1110/driftnet/blob/main/examples/plugins/hackernews.mjs), or `registerExtractor()`), a model (`LlmProvider`), a judge (`Judge`), a chat
|
|
403
407
|
platform (`handleChatText()`), browser capture (`collect.js`), or a bot language (`i18n.ts`).
|
package/README.zh-TW.md
CHANGED
|
@@ -368,6 +368,10 @@ CHROME=/path/to/chrome pnpm e2e:web # 用手機尺寸和真的觸控
|
|
|
368
368
|
pnpm build:npm # 打包 npm 套件到 dist/npm(試用:cd dist/npm && npm pack)
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
+
發新版:改 `apps/server/package.json`、`server.json` 和 `.claude-plugin/` 裡的版號,再推一個標籤
|
|
372
|
+
(`git tag v0.2.0 && git push origin v0.2.0`)。[`release.yml`](https://github.com/KevinChu1110/driftnet/blob/main/.github/workflows/release.yml) 會跑完測試,發到 npm(受信任發佈)
|
|
373
|
+
和 MCP Registry,並建立 GitHub Release,不需要任何密碼或驗證碼。
|
|
374
|
+
|
|
371
375
|
可以擴充:網站(放一個外掛檔到 `~/.driftnet/plugins`,像
|
|
372
376
|
[`examples/plugins/hackernews.mjs`](https://github.com/KevinChu1110/driftnet/blob/main/examples/plugins/hackernews.mjs),或用 `registerExtractor()`)、模型(`LlmProvider`)、判斷器(`Judge`)、聊天平台(`handleChatText()`)、
|
|
373
377
|
瀏覽器擷取(`collect.js`)、bot 介面語言(`i18n.ts`)。
|
package/dist/driftnet.mjs
CHANGED
|
@@ -2512,7 +2512,7 @@ var init_discord = __esm({
|
|
|
2512
2512
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2513
2513
|
import { z as z3 } from "zod";
|
|
2514
2514
|
function createMcpServer(dn3, agentName = "agent", opts = {}) {
|
|
2515
|
-
const mcp = new McpServer({ name: "driftnet", version: "0.2.
|
|
2515
|
+
const mcp = new McpServer({ name: "driftnet", version: "0.2.1" });
|
|
2516
2516
|
const READ_TOOLS = /* @__PURE__ */ new Set(["driftnet_search", "driftnet_recent", "driftnet_get", "driftnet_folders"]);
|
|
2517
2517
|
const server2 = {
|
|
2518
2518
|
registerTool: ((name2, ...rest) => {
|
|
@@ -3184,7 +3184,7 @@ function llmsTxt(dn3) {
|
|
|
3184
3184
|
function openApi(serverUrl) {
|
|
3185
3185
|
return {
|
|
3186
3186
|
openapi: "3.1.0",
|
|
3187
|
-
info: { title: "driftnet", version: "0.2.
|
|
3187
|
+
info: { title: "driftnet", version: "0.2.1", description: "Search and save shared AI tools." },
|
|
3188
3188
|
servers: [{ url: serverUrl }],
|
|
3189
3189
|
components: { securitySchemes: { bearer: { type: "http", scheme: "bearer" } } },
|
|
3190
3190
|
security: [{ bearer: [] }],
|
|
@@ -3761,7 +3761,7 @@ var init_mcp_stdio = __esm({
|
|
|
3761
3761
|
|
|
3762
3762
|
// apps/server/src/cli.ts
|
|
3763
3763
|
var [cmd = "start"] = process.argv.slice(2);
|
|
3764
|
-
var VERSION = "0.2.
|
|
3764
|
+
var VERSION = "0.2.1";
|
|
3765
3765
|
if (cmd === "start") await init_main().then(() => main_exports);
|
|
3766
3766
|
else if (cmd === "mcp") await init_mcp_stdio().then(() => mcp_stdio_exports);
|
|
3767
3767
|
else if (cmd === "--version" || cmd === "-v") console.log(VERSION);
|
package/package.json
CHANGED