@anhkhoa2109/pi-you-search 0.1.0
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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +5050 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @you-search/pi-extension
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c0a56d2: Release v0.1.0: Initial public release with web search and fetch tools
|
|
8
|
+
|
|
9
|
+
- web_you_search: Search the web via You.com API
|
|
10
|
+
- web_you_fetch: Fetch content from URLs via You.com Contents API
|
|
11
|
+
- Support for OpenCode plugin and Pi extension
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 anhkhoa2109
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# @anhkhoa2109/pi-you-search
|
|
2
|
+
|
|
3
|
+
Pi extension for **web_you_search** and **web_you_fetch** tools powered by [You.com](https://you.com).
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🔍 **web_you_search** — Search the web via You.com Search API
|
|
8
|
+
- 📄 **web_you_fetch** — Fetch and extract content from URLs via You.com Contents API
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# npm
|
|
14
|
+
npm install @anhkhoa2109/pi-you-search
|
|
15
|
+
|
|
16
|
+
# pnpm
|
|
17
|
+
pnpm add @anhkhoa2109/pi-you-search
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Setup
|
|
21
|
+
|
|
22
|
+
1. Get your API key from [you.com/platform](https://you.com/platform)
|
|
23
|
+
2. Set the environment variable:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
export YOU_API_KEY="your-api-key-here"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
3. Add the extension to your Pi configuration.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
Once installed and configured, the extension automatically registers two tools in Pi:
|
|
34
|
+
|
|
35
|
+
### web_you_search
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"query": "your search query",
|
|
40
|
+
"numResults": 5
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### web_you_fetch
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"urls": ["https://example.com", "https://example.org"]
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ExtensionAPI } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @you-search/pi-extension
|
|
5
|
+
*
|
|
6
|
+
* Pi extension that registers web_you_fetch and web_you_search tools.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare function export_default(pi: ExtensionAPI): void;
|
|
10
|
+
|
|
11
|
+
export { export_default as default };
|