@llblab/pi-actors 0.46.0 → 0.47.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 (78) hide show
  1. package/AGENTS.md +7 -5
  2. package/CHANGELOG.md +20 -0
  3. package/README.md +2 -1
  4. package/dist/lib/async-runs.d.ts +1 -0
  5. package/dist/lib/async-runs.js +4 -1
  6. package/dist/lib/execution.d.ts +1 -0
  7. package/dist/lib/execution.js +1 -0
  8. package/dist/lib/extension-runtime.js +25 -9
  9. package/dist/lib/inspector.js +1 -0
  10. package/dist/lib/prompts.d.ts +6 -5
  11. package/dist/lib/prompts.js +22 -23
  12. package/dist/lib/recipes-context.d.ts +12 -3
  13. package/dist/lib/recipes-context.js +28 -4
  14. package/dist/lib/recipes-discovery.d.ts +22 -0
  15. package/dist/lib/recipes-discovery.js +108 -23
  16. package/dist/lib/recipes-references.d.ts +18 -0
  17. package/dist/lib/recipes-references.js +129 -38
  18. package/dist/lib/registry.d.ts +23 -6
  19. package/dist/lib/registry.js +294 -101
  20. package/dist/lib/runtime.d.ts +30 -3
  21. package/dist/lib/runtime.js +108 -9
  22. package/dist/lib/tools-inspect.d.ts +3 -0
  23. package/dist/lib/tools-inspect.js +190 -26
  24. package/dist/lib/tools-local.d.ts +2 -2
  25. package/dist/lib/tools-local.js +5 -2
  26. package/dist/lib/tools-register.js +2 -1
  27. package/dist/lib/tools-response.js +7 -1
  28. package/dist/lib/tools-spawn.d.ts +2 -2
  29. package/dist/lib/tools-spawn.js +1 -1
  30. package/dist/lib/tools.d.ts +4 -1
  31. package/dist/lib/tools.js +2 -0
  32. package/dist/scripts/conformance.mjs +1 -0
  33. package/dist/skills/actors/SKILL.md +76 -65
  34. package/dist/skills/actors/references/diagnostics.md +44 -0
  35. package/dist/skills/actors/references/persistent-tools.md +74 -0
  36. package/dist/skills/actors/references/recipes.md +51 -0
  37. package/dist/skills/actors/references/runs.md +39 -0
  38. package/dist/skills/artifacts/SKILL.md +24 -7
  39. package/dist/skills/media/SKILL.md +35 -7
  40. package/dist/skills/project-work/SKILL.md +28 -7
  41. package/dist/skills/recipe-memory/SKILL.md +27 -7
  42. package/dist/skills/swarm/SKILL.md +41 -445
  43. package/dist/skills/swarm/references/development-swarm.md +87 -539
  44. package/dist/skills/swarm/references/review-swarms.md +115 -0
  45. package/docs/README.md +5 -5
  46. package/docs/recipe-library.md +15 -10
  47. package/docs/template-recipes.md +3 -1
  48. package/docs/tool-registry.md +18 -6
  49. package/lib/async-runs.ts +5 -1
  50. package/lib/execution.ts +2 -0
  51. package/lib/extension-runtime.ts +33 -14
  52. package/lib/inspector.ts +1 -0
  53. package/lib/prompts.ts +24 -24
  54. package/lib/recipes-context.ts +49 -4
  55. package/lib/recipes-discovery.ts +186 -25
  56. package/lib/recipes-references.ts +176 -44
  57. package/lib/registry.ts +441 -113
  58. package/lib/runtime.ts +147 -12
  59. package/lib/tools-inspect.ts +254 -28
  60. package/lib/tools-local.ts +9 -3
  61. package/lib/tools-register.ts +4 -3
  62. package/lib/tools-response.ts +7 -1
  63. package/lib/tools-spawn.ts +3 -2
  64. package/lib/tools.ts +4 -1
  65. package/package.json +1 -1
  66. package/scripts/conformance.mjs +1 -0
  67. package/skills/actors/SKILL.md +76 -65
  68. package/skills/actors/references/diagnostics.md +44 -0
  69. package/skills/actors/references/persistent-tools.md +74 -0
  70. package/skills/actors/references/recipes.md +51 -0
  71. package/skills/actors/references/runs.md +39 -0
  72. package/skills/artifacts/SKILL.md +24 -7
  73. package/skills/media/SKILL.md +35 -7
  74. package/skills/project-work/SKILL.md +28 -7
  75. package/skills/recipe-memory/SKILL.md +27 -7
  76. package/skills/swarm/SKILL.md +41 -445
  77. package/skills/swarm/references/development-swarm.md +87 -539
  78. package/skills/swarm/references/review-swarms.md +115 -0
@@ -1,16 +1,44 @@
1
1
  ---
2
2
  name: media
3
- description: Local media discovery, playlist construction, and controllable playback capabilities.
3
+ description: Use for local media discovery, filtering, library summaries, playlist construction, or controllable playback.
4
4
  ---
5
5
 
6
6
  # Media
7
7
 
8
- Own reusable local media workflows and services.
8
+ Use this Skill for caller-selected local media. For generic Recipe execution, persistent-tool setup, Run lifecycle, or diagnosis, follow `actors`; this Skill only selects media behavior.
9
9
 
10
- ## Scope
10
+ ## Choose the operation
11
11
 
12
- - Scan caller-selected media sources and build bounded playlists.
13
- - Run controllable playback when the local player implements declared actions.
14
- - Emit canonical Trace and consume canonical Control without inventing media-specific runtime nouns.
12
+ | Intent | Recipe | Use when |
13
+ | --- | --- | --- |
14
+ | Start or control playback | `media/player` | A local file, directory, or playlist should become a controlled service |
15
+ | Build a library summary | `media/library` | A filtered playlist should feed bounded report content |
16
+ | Build a filtered playlist | `media/playlist-build` | Extension filtering and `paths`, `m3u`, or `inline` output are required |
17
+ | Scan a directory for raw file paths | `media/playlist-scan` | A shallow unfiltered inventory is intentionally sufficient |
15
18
 
16
- This Skill does not own the Run kernel, user media, transport delivery, or general artifact policy. Its Recipe identity is `media/<filename stem>`; Recipe files have no top-level `name`. Helper-backed Recipes locate only co-located scripts through `{skill_dir}`, and cross-capability composition uses exact `<skill>/<recipe>` references.
19
+ Use `playlist-build` rather than `playlist-scan` for normal media selection. `library` composes playlist output into report content; its `artifact_path` identifies the intended report target but does not by itself prove a durable write.
20
+
21
+ ## Controlled playback
22
+
23
+ `media/player` is an async controlled service. Start one owned Run, then use only its declared actions: `play`, `pause`, `resume`, `toggle`, `next`, `previous`, `stop`, and `status`.
24
+
25
+ ```text
26
+ spawn recipe=media/player as=run:music values={"source":"~/Music","player":"auto"}
27
+ message target=run:music action=pause
28
+ inspect target=run:music view=control
29
+ ```
30
+
31
+ For recurring playback as a persistent callable tool, use the persistent-capability workflow in `actors` with `from=media/player`; do not copy the player contract.
32
+
33
+ ## Paths and selection
34
+
35
+ - `source` for playback must name caller-approved local media; do not broaden it to unrelated directories.
36
+ - `source_dir` must be an intended readable directory. `~` is accepted by maintained media helpers.
37
+ - Keep `max_depth` bounded. Use explicit comma-separated extensions for `playlist-build` and `library`.
38
+ - Choose `output_mode=m3u` only when playlist text is wanted; it does not create a playlist file.
39
+ - Choose an explicit `artifact_path` and model for `library` report generation.
40
+ - `player=auto` selects an available supported backend; do not install or substitute a player silently.
41
+
42
+ ## Stop rules
43
+
44
+ Stop if the source is missing, unreadable, contains no selected media, or no supported player is available. Do not claim playback from process start alone; confirm through Run evidence or `status`. Prefer the declared `stop` action for a responsive player. If the service is unresponsive, return to `actors` for bounded Run recovery rather than shell process control.
@@ -1,16 +1,37 @@
1
1
  ---
2
2
  name: project-work
3
- description: Repository inspection, documentation maintenance, release preparation, and project health workflows.
3
+ description: Use for repository health inspection, project summaries, documentation maintenance, release-readiness evidence, or bounded run-operation reports.
4
4
  ---
5
5
 
6
6
  # Project Work
7
7
 
8
- Own reusable workflows for inspecting and maintaining software projects.
8
+ Use this Skill to produce bounded project evidence and plans. For generic Recipe execution, Run lifecycle, persistence, or multi-actor methodology, follow `actors` and, when applicable, `swarm`; this Skill only selects project workflows.
9
9
 
10
- ## Scope
10
+ ## Choose the primary workflow
11
11
 
12
- - Summarize Git, package, Skill, changelog, and documentation state.
13
- - Compose repository health, documentation maintenance, and release-readiness evidence.
14
- - Keep project-level orchestration separate from lower-level artifact and actor utilities.
12
+ | Intended result | Recipe | Boundary |
13
+ | --- | --- | --- |
14
+ | Repository status, recent history, docs surface, validation, and risks | `project-work/repo-health` | Runs the caller-supplied trusted validation command |
15
+ | Documentation consistency review and maintenance plan | `project-work/docs-maintenance` | Evidence and plan only; does not edit documentation |
16
+ | Multi-lens release verdict with blockers and degraded-confidence evidence | `project-work/release-readiness` | Readiness only; does not publish |
17
+ | Evidence-only release summary and PR-body draft | `project-work/release-summary` | No commit, PR, merge, tag, publish, or external release action |
18
+ | Bounded report over existing actor Run state | `project-work/run-ops` | Read-only report; does not send Control or mutate Runs |
15
19
 
16
- This Skill does not own the Run kernel, publication authority, multi-agent methodology, or artifact-writing mechanics. Its Recipe identity is `project-work/<filename stem>`; Recipe files have no top-level `name`. It composes other capabilities only through exact `<skill>/<recipe>` references and keeps project-specific helper behavior under its own `scripts/` directory.
20
+ Choose `release-readiness` when independent review and a release verdict are needed. Choose `release-summary` when the evidence is already sufficient and only a concise operator-gated summary is wanted. If one primary workflow should become a recurring named tool, use the persistent-capability workflow in `actors`; do not copy its composition.
21
+
22
+ ## Inputs and evidence
23
+
24
+ - Scope every workflow to the caller-selected repository, docs directory, or Run state.
25
+ - Treat `validation_command` as trusted executable input. Do not invent or broaden it.
26
+ - Select current model policy explicitly for workflows that request a model; release-readiness reviewer roles inherit only the values supplied by the caller.
27
+ - Artifact paths identify intended report targets. Confirm actual declared artifact evidence before claiming a durable file.
28
+ - Preserve degraded or insufficient review status. Never turn partial reviewer output into consensus.
29
+ - Release outputs are evidence, not publication authority.
30
+
31
+ ## Supporting Recipes
32
+
33
+ `git-status`, `git-log`, `changelog-head`, `changelog-section`, `markdown-index`, `package-summary`, and `skill-summary` support the primary workflows. Use one directly only when its narrow deterministic output is the requested result; otherwise start from a primary workflow and avoid rebuilding its composition manually.
34
+
35
+ ## Stop rules
36
+
37
+ Stop when repository scope, version, validation command, model policy, or write target is ambiguous. Do not edit docs from a `docs-maintenance` plan, publish from release evidence, or send Run Controls from `run-ops`. Hand those operations to their owning protocol after explicit authorization.
@@ -1,16 +1,36 @@
1
1
  ---
2
2
  name: recipe-memory
3
- description: Package-owned structural review components for safe persistent Recipe capability memory.
3
+ description: Use only for internal automatic Recipe-memory review, diagnosis, or recovery; do not use for normal Recipe creation, registration, or invocation.
4
4
  ---
5
5
 
6
6
  # Recipe Memory
7
7
 
8
- Own the executable reviewer components used by automatic draft and active-tool Recipe evolution.
8
+ Use this Skill only when automatic draft-memory or active-tool review needs diagnosis or bounded recovery. Normal agents must not spawn, register, specialize, or invoke `recipe-memory/draft-review` or `recipe-memory/tool-review`; they are package-owned internal reviewer components.
9
9
 
10
- ## Scope
10
+ ## Diagnose first
11
11
 
12
- - Review value-free structural projections rather than executable content or machine-local paths.
13
- - Return bounded decisions for deterministic package-owned executors.
14
- - Remain package-owned so user Recipes cannot shadow or redirect automatic review.
12
+ ```text
13
+ inspect target=recipes view=reviews
14
+ inspect target=runtime view=triage
15
+ ```
15
16
 
16
- This Skill does not own registry mutation, CAS, journaling, quarantine, lineage, retry, reset, or safe-boundary activation. Those remain Run-kernel and registry responsibilities. Its direct Recipe identities are `recipe-memory/<filename stem>`; Recipe files have no top-level `name`. They are internal components, never automatic user tools.
17
+ Use the review view to distinguish `draft` and `tool` scope, current phase, failed stage, bounded error, preserved transaction evidence, and the recorded next action. Use runtime triage only when the reviewer Run itself needs Run-level diagnosis. Follow `actors` for generic Inspect, Run, and Control semantics.
18
+
19
+ ## Recovery Controls
20
+
21
+ Use runtime Controls only when the review evidence names the matching recovery action:
22
+
23
+ ```text
24
+ message target=runtime action=review.retry input={"scope":"draft"}
25
+ message target=runtime action=review.retry input={"scope":"tool"}
26
+ message target=runtime action=review.reset input={"scope":"draft"}
27
+ message target=runtime action=review.reset input={"scope":"tool"}
28
+ ```
29
+
30
+ - `review.retry` resumes the selected failed review scope while preserving authenticated transaction recovery.
31
+ - `review.reset` clears disposable failure state only. It must reject evidence that requires roll-forward recovery.
32
+ - Re-inspect `view=reviews` after one recovery Control; do not loop retries or resets without changed evidence.
33
+
34
+ ## Stop rules
35
+
36
+ Stop when the phase is healthy or idle, the requested scope does not match the failure, recovery evidence requires deterministic roll-forward, or the reported next action is not retry/reset. Never edit review state, lineage, journals, quarantine, drafts, or persisted Recipes directly. Never bypass automatic review by running its internal Recipes as ordinary capabilities.