@pi-unipi/workflow 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.
Files changed (3) hide show
  1. package/commands.ts +0 -0
  2. package/index.ts +3 -8
  3. package/package.json +5 -5
package/commands.ts CHANGED
File without changes
package/index.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * Applies sandbox (tool filtering) per command.
8
8
  */
9
9
 
10
+ import { dirname } from "node:path";
11
+ import { fileURLToPath } from "node:url";
10
12
  import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
11
13
  import {
12
14
  UNIPI_EVENTS,
@@ -21,7 +23,7 @@ import {
21
23
  import { registerWorkflowCommands } from "./commands.js";
22
24
 
23
25
  /** Package version (read from package.json at load time) */
24
- const VERSION = getPackageVersion(new URL(".", import.meta.url).pathname);
26
+ const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
25
27
 
26
28
  /** Whether ralph module is detected */
27
29
  let ralphDetected = false;
@@ -39,13 +41,6 @@ let currentSandboxLevel: SandboxLevel | null = null;
39
41
  let currentSandboxTools: string[] | null = null;
40
42
 
41
43
  export default function (pi: ExtensionAPI) {
42
- // Register skills directory with pi's resource loader
43
- const skillsDir = new URL("./skills", import.meta.url).pathname;
44
- pi.on("resources_discover", async (_event, _ctx) => {
45
- return {
46
- skillPaths: [skillsDir],
47
- };
48
- });
49
44
 
50
45
  // Register all workflow commands
51
46
  registerWorkflowCommands(pi, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/workflow",
3
- "version": "2.0.12",
3
+ "version": "2.1.0",
4
4
  "description": "Structured development workflow commands for Pi coding agent",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -26,12 +26,12 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@pi-unipi/core": "2.0.12"
29
+ "@pi-unipi/core": "2.1.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@earendil-works/pi-ai": "^0.78.0",
33
- "@earendil-works/pi-coding-agent": "^0.78.0",
34
- "@earendil-works/pi-tui": "^0.78.0",
32
+ "@earendil-works/pi-ai": "^0.80.0",
33
+ "@earendil-works/pi-coding-agent": "^0.80.0",
34
+ "@earendil-works/pi-tui": "^0.80.0",
35
35
  "typebox": "^1.1.38"
36
36
  },
37
37
  "pi": {