pi-web-kit 0.1.3 → 0.1.5
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 +13 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +5 -11
- package/extensions/index.ts +1 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ This project follows the spirit of [Keep a Changelog](https://keepachangelog.com
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.5] - 2026-05-20
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Moved package source to the `jvm/pi-mono` monorepo.
|
|
14
|
+
- Updated npm metadata to point at the monorepo package directory.
|
|
15
|
+
|
|
16
|
+
## [0.1.4] - 2026-05-10
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Suppress install/update telemetry in CI environments, including GitHub Actions.
|
|
21
|
+
|
|
9
22
|
## [0.1.3] - 2026-05-10
|
|
10
23
|
|
|
11
24
|
### Added
|
package/CONTRIBUTING.md
CHANGED
|
@@ -19,14 +19,14 @@ Install this checkout into a temporary Pi project:
|
|
|
19
19
|
```bash
|
|
20
20
|
mkdir -p <test-project>
|
|
21
21
|
cd <test-project>
|
|
22
|
-
pi install -l /path/to/pi-web-kit
|
|
22
|
+
pi install -l /path/to/pi-mono/packages/pi-web-kit
|
|
23
23
|
pi
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
For a one-off run without changing settings:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
pi -e /path/to/pi-web-kit --web-provider-fetch markdown_new --print "Fetch https://example.com"
|
|
29
|
+
pi -e /path/to/pi-mono/packages/pi-web-kit --web-provider-fetch markdown_new --print "Fetch https://example.com"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Pull request checklist
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pi-web-kit
|
|
2
2
|
|
|
3
|
-
Context-efficient web search and fetch tools for [Pi](https://
|
|
3
|
+
Context-efficient web search and fetch tools for [Pi](https://pi.dev): `web_search` and `web_fetch`.
|
|
4
4
|
|
|
5
5
|
`pi-web-kit` provides provider-backed search and page fetching with bounded output, chunked reads, URL validation, and an in-memory fetch cache designed for agent workflows.
|
|
6
6
|
|
|
@@ -22,28 +22,22 @@ Install from npm:
|
|
|
22
22
|
pi install npm:pi-web-kit
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Install from GitHub:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pi install git:github.com/jvm/pi-web-kit
|
|
29
|
-
```
|
|
30
|
-
|
|
31
25
|
Install project-locally with Pi's `-l` flag:
|
|
32
26
|
|
|
33
27
|
```bash
|
|
34
|
-
pi install -l
|
|
28
|
+
pi install -l npm:pi-web-kit
|
|
35
29
|
```
|
|
36
30
|
|
|
37
|
-
During local development from this
|
|
31
|
+
During local development from this monorepo:
|
|
38
32
|
|
|
39
33
|
```bash
|
|
40
|
-
pi install /path/to/pi-web-kit
|
|
34
|
+
pi install /path/to/pi-mono/packages/pi-web-kit
|
|
41
35
|
```
|
|
42
36
|
|
|
43
37
|
For a one-off test run without installing:
|
|
44
38
|
|
|
45
39
|
```bash
|
|
46
|
-
pi -e /path/to/pi-web-kit --web-provider-fetch markdown_new --print "Fetch https://example.com"
|
|
40
|
+
pi -e /path/to/pi-mono/packages/pi-web-kit --web-provider-fetch markdown_new --print "Fetch https://example.com"
|
|
47
41
|
```
|
|
48
42
|
|
|
49
43
|
This is an npm-compatible TypeScript Pi package. Bun is not required.
|
package/extensions/index.ts
CHANGED
|
@@ -183,6 +183,7 @@ function isTruthyEnvFlag(value: string | undefined): boolean {
|
|
|
183
183
|
|
|
184
184
|
function isInstallTelemetryEnabled(): boolean {
|
|
185
185
|
if (isTruthyEnvFlag(process.env.PI_OFFLINE)) return false;
|
|
186
|
+
if (isTruthyEnvFlag(process.env.CI) || isTruthyEnvFlag(process.env.GITHUB_ACTIONS)) return false;
|
|
186
187
|
if (process.env.PI_TELEMETRY !== undefined) return isTruthyEnvFlag(process.env.PI_TELEMETRY);
|
|
187
188
|
const settings = readJsonFile(join(getAgentDir(), "settings.json")) as { enableInstallTelemetry?: unknown };
|
|
188
189
|
return settings.enableInstallTelemetry !== false;
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-web-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Context-efficient web search and fetch tools for Pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "jvm",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/jvm/pi-
|
|
10
|
+
"url": "git+https://github.com/jvm/pi-mono.git",
|
|
11
|
+
"directory": "packages/pi-web-kit"
|
|
11
12
|
},
|
|
12
13
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/jvm/pi-
|
|
14
|
+
"url": "https://github.com/jvm/pi-mono/issues"
|
|
14
15
|
},
|
|
15
|
-
"homepage": "https://github.com/jvm/pi-web-kit#readme",
|
|
16
|
+
"homepage": "https://github.com/jvm/pi-mono/tree/main/packages/pi-web-kit#readme",
|
|
16
17
|
"keywords": [
|
|
17
18
|
"pi-package",
|
|
18
19
|
"pi-extension",
|