@pi-unipi/ask-user 2.0.12 → 2.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/handoff.ts +0 -0
- package/index.ts +3 -8
- package/launcher-ui.ts +0 -0
- package/package.json +4 -4
- package/tools.ts +0 -0
package/handoff.ts
CHANGED
|
File without changes
|
package/index.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* multi-select, and freeform modes. Includes bundled skill for agent guidance.
|
|
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,
|
|
@@ -17,16 +19,9 @@ import { registerAskUserTools } from "./tools.js";
|
|
|
17
19
|
import { registerAskUserCommands } from "./commands.js";
|
|
18
20
|
|
|
19
21
|
/** Package version */
|
|
20
|
-
const VERSION = getPackageVersion(
|
|
22
|
+
const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
|
|
21
23
|
|
|
22
24
|
export default function (pi: ExtensionAPI) {
|
|
23
|
-
// Register skills directory
|
|
24
|
-
const skillsDir = new URL("./skills", import.meta.url).pathname;
|
|
25
|
-
pi.on("resources_discover", async () => {
|
|
26
|
-
return {
|
|
27
|
-
skillPaths: [skillsDir],
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
25
|
|
|
31
26
|
// Register tools and commands
|
|
32
27
|
registerAskUserTools(pi);
|
package/launcher-ui.ts
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/ask-user",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Structured user input tool for Pi coding agent \u2014 single-select, multi-select, freeform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@pi-unipi/core": "2.0
|
|
43
|
+
"@pi-unipi/core": "2.1.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
47
|
-
"@earendil-works/pi-tui": "^0.
|
|
46
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
47
|
+
"@earendil-works/pi-tui": "^0.80.0",
|
|
48
48
|
"typebox": "^1.1.38"
|
|
49
49
|
},
|
|
50
50
|
"pi": {
|
package/tools.ts
CHANGED
|
File without changes
|