@pi-unipi/web-api 2.0.13 → 2.1.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/package.json +4 -4
- package/skills/web/SKILL.md +0 -0
- package/src/engine/constants.ts +0 -0
- package/src/engine/dependencies.ts +0 -0
- package/src/engine/dom.ts +0 -0
- package/src/engine/extract.ts +0 -0
- package/src/engine/format.ts +0 -0
- package/src/engine/profiles.ts +0 -0
- package/src/engine/types.ts +0 -0
- package/src/index.ts +3 -1
- package/src/providers/base.ts +0 -0
- package/src/settings.ts +0 -0
- package/src/tools.ts +0 -0
- package/src/tui/progress.ts +0 -0
- package/src/tui/result.ts +0 -0
- package/src/tui/settings-dialog.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/web-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Web search, read, and summarize tools with provider-based backend selection for Pi coding agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@pi-unipi/core": "2.
|
|
34
|
+
"@pi-unipi/core": "2.1.1",
|
|
35
35
|
"defuddle": "^0.18.1",
|
|
36
36
|
"linkedom": "^0.18.12",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"wreq-js": "^2.3.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
43
|
-
"@earendil-works/pi-tui": "^0.
|
|
42
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
43
|
+
"@earendil-works/pi-tui": "^0.80.0",
|
|
44
44
|
"typebox": "^1.1.38"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
package/skills/web/SKILL.md
CHANGED
|
File without changes
|
package/src/engine/constants.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/engine/dom.ts
CHANGED
|
File without changes
|
package/src/engine/extract.ts
CHANGED
|
File without changes
|
package/src/engine/format.ts
CHANGED
|
File without changes
|
package/src/engine/profiles.ts
CHANGED
|
File without changes
|
package/src/engine/types.ts
CHANGED
|
File without changes
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Provides agent tools: web-search, multi-web-content-read, web-llm-summarize
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { dirname } from "node:path";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
8
10
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
9
11
|
import {
|
|
10
12
|
UNIPI_EVENTS,
|
|
@@ -27,7 +29,7 @@ import "./providers/perplexity.js";
|
|
|
27
29
|
import "./providers/llm-summarize.js";
|
|
28
30
|
|
|
29
31
|
/** Package version */
|
|
30
|
-
const VERSION = getPackageVersion(
|
|
32
|
+
const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
|
|
31
33
|
|
|
32
34
|
// Get info registry from global (avoids direct import issues with pi's extension loading)
|
|
33
35
|
function getInfoRegistry() {
|
package/src/providers/base.ts
CHANGED
|
File without changes
|
package/src/settings.ts
CHANGED
|
File without changes
|
package/src/tools.ts
CHANGED
|
File without changes
|
package/src/tui/progress.ts
CHANGED
|
File without changes
|
package/src/tui/result.ts
CHANGED
|
File without changes
|
|
File without changes
|