@llblab/pi-actors 0.20.0 → 0.20.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.1: Installed Packaged Recipe Root Hotfix
4
+
5
+ - `[Recipe Imports]` Fixed installed compiled runtime path resolution so bare user recipe imports can fall back to the packaged standard-library `recipes/` directory instead of looking for a non-existent `dist/recipes` directory.
6
+ - `[Tests]` Added installed-package validation coverage for a user recipe that imports a packaged recipe by bare name, preserving the documented priority order for user, adjacent, and packaged recipes.
7
+ - `[Package]` Bumped package metadata and packaged skill metadata to `0.20.1` for the hotfix release.
8
+
3
9
  ## 0.20.0: Compiled Runtime Entrypoints
4
10
 
5
11
  - `[Packaging]` Added a build step that emits compiled `dist/lib/*.js` and declaration files from the TypeScript runtime modules, with relative `.ts` imports rewritten to `.js` for installed package execution.
package/dist/lib/paths.js CHANGED
@@ -3,6 +3,7 @@
3
3
  * Zones: paths, registry config, temp directory
4
4
  * Owns agent directory, tools config, recipe root, and actor run state root resolution
5
5
  */
6
+ import { existsSync } from "node:fs";
6
7
  import { homedir } from "node:os";
7
8
  import { dirname, join, resolve } from "node:path";
8
9
  import { fileURLToPath } from "node:url";
@@ -24,5 +25,9 @@ export function getRecipeRoot(agentDir = getAgentDir()) {
24
25
  return join(agentDir, "recipes");
25
26
  }
26
27
  export function getPackagedRecipeRoot() {
27
- return resolve(dirname(fileURLToPath(import.meta.url)), "..", "recipes");
28
+ const here = dirname(fileURLToPath(import.meta.url));
29
+ const compiledRoot = resolve(here, "..", "..", "recipes");
30
+ if (existsSync(compiledRoot))
31
+ return compiledRoot;
32
+ return resolve(here, "..", "recipes");
28
33
  }
package/lib/paths.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  * Owns agent directory, tools config, recipe root, and actor run state root resolution
5
5
  */
6
6
 
7
+ import { existsSync } from "node:fs";
7
8
  import { homedir } from "node:os";
8
9
  import { dirname, join, resolve } from "node:path";
9
10
  import { fileURLToPath } from "node:url";
@@ -36,5 +37,8 @@ export function getRecipeRoot(agentDir = getAgentDir()): string {
36
37
  }
37
38
 
38
39
  export function getPackagedRecipeRoot(): string {
39
- return resolve(dirname(fileURLToPath(import.meta.url)), "..", "recipes");
40
+ const here = dirname(fileURLToPath(import.meta.url));
41
+ const compiledRoot = resolve(here, "..", "..", "recipes");
42
+ if (existsSync(compiledRoot)) return compiledRoot;
43
+ return resolve(here, "..", "recipes");
40
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-actors",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "private": false,
5
5
  "description": "Local Actor Kernel for Pi",
6
6
  "keywords": [
@@ -2,7 +2,7 @@
2
2
  name: actors
3
3
  description: Highest-density practical guide for pi-actors. Read this skill whenever prompt and tools are not enough for spawn, message, inspect, actor runs, tools, recipes, command templates, async lifecycle, mailboxes, artifacts, and local orchestration mechanics.
4
4
  metadata:
5
- version: 0.20.0
5
+ version: 0.20.1
6
6
  ---
7
7
 
8
8
  # Actors (pi-actors)
@@ -2,7 +2,7 @@
2
2
  name: swarm
3
3
  description: Subagent orchestration with scoped locks and quorum consensus. Use for multi-model review, parallel scoped work, delegated audit, and coordinated subagent execution.
4
4
  metadata:
5
- version: 0.20.0
5
+ version: 0.20.1
6
6
  ---
7
7
 
8
8
  # Swarm