@caplets/pi 0.4.0 → 0.5.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/README.md +2 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Native Pi extension for Caplets.
|
|
|
4
4
|
|
|
5
5
|
This package exposes configured Caplets as native Pi tools named `caplets_<id>`. It does not start the Caplets MCP server. Pi prompt guidance is provided through `promptSnippet` and `promptGuidelines`.
|
|
6
6
|
|
|
7
|
+
MCP-backed Caplets advertise resource, prompt, template, and completion operations in their generated schema; OpenAPI, GraphQL, HTTP, CLI, and Caplet-set backends remain tool/action-only.
|
|
8
|
+
|
|
7
9
|
## Install
|
|
8
10
|
|
|
9
11
|
Install the extension with Pi:
|
package/dist/index.js
CHANGED
|
@@ -3559,7 +3559,7 @@ function createPiTool(service, caplet) {
|
|
|
3559
3559
|
description: caplet.description,
|
|
3560
3560
|
promptSnippet: `Use ${caplet.toolName} for the ${caplet.title} Caplet capability domain.`,
|
|
3561
3561
|
promptGuidelines: caplet.promptGuidance,
|
|
3562
|
-
parameters: generatedToolInputJsonSchema(),
|
|
3562
|
+
parameters: caplet.inputSchema ?? generatedToolInputJsonSchema(),
|
|
3563
3563
|
async execute(_toolCallId, params) {
|
|
3564
3564
|
const result = await service.execute(caplet.caplet, params);
|
|
3565
3565
|
const serialized = serializeResult(result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caplets/pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Native Pi extension for Caplets.",
|
|
5
5
|
"homepage": "https://github.com/spiritledsoftware/caplets#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@caplets/core": "0.
|
|
29
|
+
"@caplets/core": "0.18.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^25.9.0",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"vitest": "^4.1.6"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@earendil-works/pi-coding-agent": "
|
|
40
|
-
"@earendil-works/pi-tui": "
|
|
39
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
40
|
+
"@earendil-works/pi-tui": "*"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22"
|