@pi-unipi/web-api 2.0.7 → 2.0.9
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/package.json +6 -4
- package/src/commands.ts +1 -1
- package/src/index.ts +1 -1
- package/src/tools.ts +2 -2
- package/src/tui/settings-dialog.ts +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/web-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"description": "Web search, read, and summarize tools with provider-based backend selection for Pi coding agent",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"author": "Neuron Mr White",
|
|
8
9
|
"repository": {
|
|
@@ -46,12 +47,13 @@
|
|
|
46
47
|
"wreq-js": "^2.3.0"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
50
|
+
"@earendil-works/pi-coding-agent": "^0.75.5",
|
|
51
|
+
"@earendil-works/pi-tui": "^0.75.5",
|
|
52
|
+
"typebox": "^1.1.38"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@types/lodash": "^4.17.24",
|
|
56
|
+
"@types/mime-types": "^3.0.1",
|
|
55
57
|
"@types/node": "^25.6.0"
|
|
56
58
|
}
|
|
57
59
|
}
|
package/src/commands.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Registers /unipi:web-settings and /unipi:web-cache-clear commands.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { ExtensionAPI, ExtensionCommandContext } from "@
|
|
7
|
+
import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
|
|
8
8
|
import { UNIPI_PREFIX } from "@pi-unipi/core";
|
|
9
9
|
import { showSettingsDialog } from "./tui/settings-dialog.js";
|
|
10
10
|
import { webCache } from "./cache.js";
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Provides agent tools: web-search, multi-web-content-read, web-llm-summarize
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { ExtensionAPI } from "@
|
|
8
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
9
9
|
import {
|
|
10
10
|
UNIPI_EVENTS,
|
|
11
11
|
MODULES,
|
package/src/tools.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Implements smart provider selection based on ranking.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { Type } from "
|
|
9
|
-
import type { ExtensionAPI } from "@
|
|
8
|
+
import { Type } from "typebox";
|
|
9
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
10
10
|
import { registry } from "./providers/registry.js";
|
|
11
11
|
import type {
|
|
12
12
|
WebProvider,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Uses pi's TUI components for provider selection and key input.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { ExtensionCommandContext } from "@
|
|
8
|
+
import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
|
|
9
9
|
import { registry } from "../providers/registry.js";
|
|
10
10
|
import {
|
|
11
11
|
getApiKey,
|