@llblab/pi-actors 0.21.0 → 0.22.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/BACKLOG.md +39 -0
- package/CHANGELOG.md +13 -1
- package/dist/lib/actor-rooms.js +18 -0
- package/dist/lib/async-runs.d.ts +19 -1
- package/dist/lib/async-runs.js +201 -10
- package/dist/lib/runtime-notifier.d.ts +48 -0
- package/dist/lib/runtime-notifier.js +137 -0
- package/dist/lib/tools.js +13 -4
- package/docs/actor-messages.md +5 -3
- package/docs/async-runs.md +4 -2
- package/docs/recipe-library.md +11 -4
- package/lib/actor-rooms.ts +23 -0
- package/lib/async-runs.ts +261 -15
- package/lib/runtime-notifier.ts +207 -0
- package/lib/tools.ts +26 -5
- package/package.json +2 -3
- package/recipes/music-player.json +1 -1
- package/scripts/coordinator.mjs +227 -114
- package/scripts/locker.mjs +30 -9
- package/scripts/music-player.mjs +401 -94
- package/skills/actors/SKILL.md +1 -1
- package/skills/swarm/SKILL.md +1 -1
- package/index.js +0 -19
package/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime extension entrypoint wrapper.
|
|
3
|
-
*
|
|
4
|
-
* Installed npm packages load compiled JS from dist so Node does not try to strip
|
|
5
|
-
* TypeScript under node_modules. Source checkouts fall back to index.ts for local
|
|
6
|
-
* development before dist has been built.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { existsSync } from "node:fs";
|
|
10
|
-
import { dirname, resolve } from "node:path";
|
|
11
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
12
|
-
|
|
13
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
14
|
-
const compiledEntry = resolve(here, "dist", "index.js");
|
|
15
|
-
const sourceEntry = resolve(here, "index.ts");
|
|
16
|
-
const entry = existsSync(compiledEntry) ? compiledEntry : sourceEntry;
|
|
17
|
-
const entryModule = await import(pathToFileURL(entry).href);
|
|
18
|
-
|
|
19
|
-
export default entryModule.default;
|