@llblab/pi-actors 0.45.1 → 0.46.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/AGENTS.md +9 -7
- package/CHANGELOG.md +8 -1
- package/README.md +26 -12
- package/dist/fixtures/protocol/recipe-summary.json +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/async-runs.d.ts +4 -1
- package/dist/lib/async-runs.js +22 -23
- package/dist/lib/automatic-review-runtime.d.ts +2 -0
- package/dist/lib/automatic-review-runtime.js +12 -5
- package/dist/lib/draft-sleep.js +0 -1
- package/dist/lib/extension-runtime.d.ts +1 -1
- package/dist/lib/extension-runtime.js +8 -2
- package/dist/lib/inspector.js +45 -7
- package/dist/lib/paths.d.ts +0 -1
- package/dist/lib/paths.js +0 -7
- package/dist/lib/prompts.d.ts +1 -1
- package/dist/lib/prompts.js +2 -2
- package/dist/lib/recipes-context.js +2 -2
- package/dist/lib/recipes-references.d.ts +24 -9
- package/dist/lib/recipes-references.js +152 -126
- package/dist/lib/runtime.d.ts +0 -1
- package/dist/lib/runtime.js +1 -3
- package/dist/lib/tools-inspect.d.ts +0 -1
- package/dist/lib/tools-inspect.js +35 -8
- package/dist/lib/tools-local.d.ts +2 -0
- package/dist/lib/tools-local.js +1 -1
- package/dist/lib/tools-spawn.d.ts +2 -0
- package/dist/lib/tools-spawn.js +24 -52
- package/dist/scripts/build-dist.mjs +13 -4
- package/dist/skills/actors/SKILL.md +6 -6
- package/dist/skills/actors/recipes/recipe-validate.json +11 -0
- package/{recipes/utility-coordinator-lock-snapshot.json → dist/skills/actors/recipes/resource-locker-snapshot.json} +1 -3
- package/dist/{recipes → skills/actors/recipes}/resource-locker.json +1 -3
- package/dist/{recipes/utility-run-ops-snapshot.json → skills/actors/recipes/run-ops-snapshot.json} +1 -3
- package/dist/skills/actors/recipes/run-summary.json +9 -0
- package/dist/{scripts/locker.mjs → skills/actors/scripts/resource-locker.mjs} +2 -2
- package/dist/skills/actors/scripts/run-utils.mjs +164 -0
- package/{scripts → dist/skills/actors/scripts}/validate-recipe.mjs +134 -17
- package/dist/skills/artifacts/SKILL.md +16 -0
- package/{recipes/pipeline-artifact-bundle.json → dist/skills/artifacts/recipes/bundle.json} +4 -4
- package/dist/{recipes/utility-artifact-write.json → skills/artifacts/recipes/file-write.json} +1 -3
- package/dist/{recipes/utility-artifact-manifest.json → skills/artifacts/recipes/manifest.json} +1 -3
- package/{recipes/pipeline-artifact-report.json → dist/skills/artifacts/recipes/report.json} +2 -2
- package/dist/{recipes/pipeline-artifact-write.json → skills/artifacts/recipes/write.json} +3 -3
- package/dist/skills/artifacts/scripts/artifact-utils.mjs +63 -0
- package/dist/skills/media/SKILL.md +16 -0
- package/dist/{recipes/pipeline-media-library.json → skills/media/recipes/library.json} +2 -2
- package/{recipes/music-player.json → dist/skills/media/recipes/player.json} +1 -3
- package/dist/{recipes/utility-playlist-build.json → skills/media/recipes/playlist-build.json} +1 -3
- package/dist/skills/media/scripts/media-utils.mjs +47 -0
- package/dist/{scripts → skills/media/scripts}/music-player.mjs +9 -3
- package/dist/skills/project-work/SKILL.md +16 -0
- package/dist/skills/project-work/recipes/changelog-section.json +11 -0
- package/{recipes/pipeline-docs-maintenance.json → dist/skills/project-work/recipes/docs-maintenance.json} +4 -4
- package/dist/skills/project-work/recipes/package-summary.json +9 -0
- package/{recipes/pipeline-release-readiness.json → dist/skills/project-work/recipes/release-readiness.json} +6 -6
- package/dist/{recipes/pipeline-release-summary.json → skills/project-work/recipes/release-summary.json} +5 -5
- package/{recipes/pipeline-repo-health.json → dist/skills/project-work/recipes/repo-health.json} +6 -6
- package/{recipes/pipeline-async-run-ops.json → dist/skills/project-work/recipes/run-ops.json} +3 -3
- package/dist/skills/project-work/recipes/skill-summary.json +11 -0
- package/dist/skills/project-work/scripts/project-utils.mjs +89 -0
- package/dist/skills/recipe-memory/SKILL.md +16 -0
- package/dist/skills/swarm/SKILL.md +4 -4
- package/{recipes/pipeline-architect-coordinator.json → dist/skills/swarm/recipes/architect.json} +5 -5
- package/{recipes/pipeline-checkpoint-continuation.json → dist/skills/swarm/recipes/checkpoint-continuation.json} +3 -3
- package/dist/{recipes/pipeline-development-tasking.json → skills/swarm/recipes/development-tasking.json} +4 -4
- package/dist/{recipes/lens-swarm.json → skills/swarm/recipes/lens-review.json} +1 -1
- package/dist/{recipes/pipeline-quorum-review.json → skills/swarm/recipes/quorum-review.json} +4 -4
- package/{recipes/pipeline-research-synthesis.json → dist/skills/swarm/recipes/research-synthesis.json} +6 -6
- package/{recipes/pipeline-review-readiness.json → dist/skills/swarm/recipes/review-readiness.json} +1 -1
- package/{recipes/subagents-prompts.json → dist/skills/swarm/recipes/subagent-prompts.json} +1 -1
- package/{recipes → dist/skills/swarm/recipes}/subagent-quorum.json +1 -1
- package/dist/{recipes → skills/swarm/recipes}/subagent-review-coordinator.json +6 -6
- package/docs/actor-inspector.md +4 -3
- package/docs/async-runs.md +2 -2
- package/docs/recipe-library.md +23 -23
- package/docs/releasing.md +2 -2
- package/docs/template-recipes.md +30 -14
- package/docs/tool-registry.md +2 -2
- package/fixtures/protocol/recipe-summary.json +1 -1
- package/index.ts +2 -1
- package/lib/async-runs.ts +47 -24
- package/lib/automatic-review-runtime.ts +16 -3
- package/lib/draft-sleep.ts +0 -1
- package/lib/extension-runtime.ts +21 -2
- package/lib/inspector.ts +56 -11
- package/lib/paths.ts +0 -7
- package/lib/prompts.ts +2 -2
- package/lib/recipes-context.ts +2 -2
- package/lib/recipes-references.ts +223 -134
- package/lib/runtime.ts +1 -5
- package/lib/tools-inspect.ts +42 -9
- package/lib/tools-local.ts +2 -0
- package/lib/tools-spawn.ts +37 -74
- package/package.json +2 -4
- package/scripts/build-dist.mjs +13 -4
- package/skills/actors/SKILL.md +6 -6
- package/skills/actors/recipes/recipe-validate.json +11 -0
- package/{dist/recipes/utility-coordinator-lock-snapshot.json → skills/actors/recipes/resource-locker-snapshot.json} +1 -3
- package/{recipes → skills/actors/recipes}/resource-locker.json +1 -3
- package/{recipes/utility-run-ops-snapshot.json → skills/actors/recipes/run-ops-snapshot.json} +1 -3
- package/skills/actors/recipes/run-summary.json +9 -0
- package/{scripts/locker.mjs → skills/actors/scripts/resource-locker.mjs} +2 -2
- package/skills/actors/scripts/run-utils.mjs +164 -0
- package/{dist → skills/actors}/scripts/validate-recipe.mjs +134 -17
- package/skills/artifacts/SKILL.md +16 -0
- package/{dist/recipes/pipeline-artifact-bundle.json → skills/artifacts/recipes/bundle.json} +4 -4
- package/{recipes/utility-artifact-write.json → skills/artifacts/recipes/file-write.json} +1 -3
- package/{recipes/utility-artifact-manifest.json → skills/artifacts/recipes/manifest.json} +1 -3
- package/{dist/recipes/pipeline-artifact-report.json → skills/artifacts/recipes/report.json} +2 -2
- package/{recipes/pipeline-artifact-write.json → skills/artifacts/recipes/write.json} +3 -3
- package/skills/artifacts/scripts/artifact-utils.mjs +63 -0
- package/skills/media/SKILL.md +16 -0
- package/{recipes/pipeline-media-library.json → skills/media/recipes/library.json} +2 -2
- package/{dist/recipes/music-player.json → skills/media/recipes/player.json} +1 -3
- package/{recipes/utility-playlist-build.json → skills/media/recipes/playlist-build.json} +1 -3
- package/skills/media/scripts/media-utils.mjs +47 -0
- package/{scripts → skills/media/scripts}/music-player.mjs +9 -3
- package/skills/project-work/SKILL.md +16 -0
- package/skills/project-work/recipes/changelog-section.json +11 -0
- package/{dist/recipes/pipeline-docs-maintenance.json → skills/project-work/recipes/docs-maintenance.json} +4 -4
- package/skills/project-work/recipes/package-summary.json +9 -0
- package/{dist/recipes/pipeline-release-readiness.json → skills/project-work/recipes/release-readiness.json} +6 -6
- package/{recipes/pipeline-release-summary.json → skills/project-work/recipes/release-summary.json} +5 -5
- package/{dist/recipes/pipeline-repo-health.json → skills/project-work/recipes/repo-health.json} +6 -6
- package/{dist/recipes/pipeline-async-run-ops.json → skills/project-work/recipes/run-ops.json} +3 -3
- package/skills/project-work/recipes/skill-summary.json +11 -0
- package/skills/project-work/scripts/project-utils.mjs +89 -0
- package/skills/recipe-memory/SKILL.md +16 -0
- package/skills/swarm/SKILL.md +4 -4
- package/{dist/recipes/pipeline-architect-coordinator.json → skills/swarm/recipes/architect.json} +5 -5
- package/{dist/recipes/pipeline-checkpoint-continuation.json → skills/swarm/recipes/checkpoint-continuation.json} +3 -3
- package/{recipes/pipeline-development-tasking.json → skills/swarm/recipes/development-tasking.json} +4 -4
- package/{recipes/lens-swarm.json → skills/swarm/recipes/lens-review.json} +1 -1
- package/{recipes/pipeline-quorum-review.json → skills/swarm/recipes/quorum-review.json} +4 -4
- package/{dist/recipes/pipeline-research-synthesis.json → skills/swarm/recipes/research-synthesis.json} +6 -6
- package/{dist/recipes/pipeline-review-readiness.json → skills/swarm/recipes/review-readiness.json} +1 -1
- package/{dist/recipes/subagents-prompts.json → skills/swarm/recipes/subagent-prompts.json} +1 -1
- package/{dist → skills/swarm}/recipes/subagent-quorum.json +1 -1
- package/{recipes → skills/swarm/recipes}/subagent-review-coordinator.json +6 -6
- package/dist/recipes/utility-changelog-section.json +0 -13
- package/dist/recipes/utility-package-summary.json +0 -11
- package/dist/recipes/utility-run-summary.json +0 -11
- package/dist/recipes/utility-skill-summary.json +0 -13
- package/dist/recipes/utility-validate-recipe.json +0 -13
- package/dist/scripts/executable-block-style.d.mts +0 -1
- package/dist/scripts/executable-block-style.mjs +0 -73
- package/dist/scripts/recipe-utils.mjs +0 -404
- package/dist/scripts/release-gates.mjs +0 -281
- package/recipes/utility-changelog-section.json +0 -13
- package/recipes/utility-package-summary.json +0 -11
- package/recipes/utility-run-summary.json +0 -11
- package/recipes/utility-skill-summary.json +0 -13
- package/recipes/utility-validate-recipe.json +0 -13
- package/scripts/executable-block-style.d.mts +0 -1
- package/scripts/executable-block-style.mjs +0 -73
- package/scripts/recipe-utils.mjs +0 -404
- package/scripts/release-gates.mjs +0 -281
- /package/dist/{recipes/utility-validation-wrapper.json → skills/actors/recipes/command-validate.json} +0 -0
- /package/dist/{recipes/utility-jsonl-tail.json → skills/actors/recipes/jsonl-tail.json} +0 -0
- /package/dist/{recipes/utility-run-state-files.json → skills/actors/recipes/run-state-files.json} +0 -0
- /package/dist/{recipes/utility-playlist-scan.json → skills/media/recipes/playlist-scan.json} +0 -0
- /package/dist/{recipes/utility-changelog-head.json → skills/project-work/recipes/changelog-head.json} +0 -0
- /package/dist/{recipes/utility-git-log.json → skills/project-work/recipes/git-log.json} +0 -0
- /package/dist/{recipes/utility-git-status.json → skills/project-work/recipes/git-status.json} +0 -0
- /package/dist/{recipes/utility-markdown-index.json → skills/project-work/recipes/markdown-index.json} +0 -0
- /package/dist/{recipes → skills/recipe-memory/recipes}/draft-review.json +0 -0
- /package/dist/{recipes → skills/recipe-memory/recipes}/tool-review.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-artifact.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-checkpoint.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-conflict-report.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-contradiction-map.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-critic.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-evidence-map.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-followup.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-judge.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-merge.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-normalize.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-plan.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-preflight.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-prompt.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-review.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-task-card.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-tools.json +0 -0
- /package/dist/{recipes → skills/swarm/recipes}/subagent-verify.json +0 -0
- /package/{recipes/utility-validation-wrapper.json → skills/actors/recipes/command-validate.json} +0 -0
- /package/{recipes/utility-jsonl-tail.json → skills/actors/recipes/jsonl-tail.json} +0 -0
- /package/{recipes/utility-run-state-files.json → skills/actors/recipes/run-state-files.json} +0 -0
- /package/{recipes/utility-playlist-scan.json → skills/media/recipes/playlist-scan.json} +0 -0
- /package/{recipes/utility-changelog-head.json → skills/project-work/recipes/changelog-head.json} +0 -0
- /package/{recipes/utility-git-log.json → skills/project-work/recipes/git-log.json} +0 -0
- /package/{recipes/utility-git-status.json → skills/project-work/recipes/git-status.json} +0 -0
- /package/{recipes/utility-markdown-index.json → skills/project-work/recipes/markdown-index.json} +0 -0
- /package/{recipes → skills/recipe-memory/recipes}/draft-review.json +0 -0
- /package/{recipes → skills/recipe-memory/recipes}/tool-review.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-artifact.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-checkpoint.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-conflict-report.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-contradiction-map.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-critic.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-evidence-map.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-followup.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-judge.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-merge.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-normalize.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-plan.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-preflight.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-prompt.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-review.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-task-card.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-tools.json +0 -0
- /package/{recipes → skills/swarm/recipes}/subagent-verify.json +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"artifactWrite": "
|
|
5
|
-
"manifest": "
|
|
6
|
-
"manifestWrite": "
|
|
7
|
-
"validation": "
|
|
4
|
+
"artifactWrite": "artifacts/write",
|
|
5
|
+
"manifest": "artifacts/manifest",
|
|
6
|
+
"manifestWrite": "artifacts/file-write",
|
|
7
|
+
"validation": "actors/command-validate"
|
|
8
8
|
},
|
|
9
9
|
"args": [
|
|
10
10
|
"input:string",
|
package/dist/{recipes/utility-artifact-write.json → skills/artifacts/recipes/file-write.json}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": false,
|
|
3
3
|
"args": [
|
|
4
|
-
"repo:path",
|
|
5
4
|
"artifact_path:path",
|
|
6
5
|
"mode:enum(create,overwrite,append)"
|
|
7
6
|
],
|
|
8
7
|
"defaults": {
|
|
9
|
-
"repo": "~/.pi/agent/extensions/pi-actors",
|
|
10
8
|
"mode": "create"
|
|
11
9
|
},
|
|
12
10
|
"template": {
|
|
13
|
-
"template": "{
|
|
11
|
+
"template": "{skill_dir}/scripts/artifact-utils.mjs write {artifact_path} {mode}",
|
|
14
12
|
"output": "stdout"
|
|
15
13
|
}
|
|
16
14
|
}
|
package/dist/{recipes/utility-artifact-manifest.json → skills/artifacts/recipes/manifest.json}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"args": [
|
|
3
|
-
"repo:path",
|
|
4
3
|
"artifact_path:path",
|
|
5
4
|
"title:string",
|
|
6
5
|
"status:enum(draft,ready,blocked,accepted)",
|
|
7
6
|
"summary:string"
|
|
8
7
|
],
|
|
9
8
|
"defaults": {
|
|
10
|
-
"repo": "~/.pi/agent/extensions/pi-actors",
|
|
11
9
|
"title": "Artifact",
|
|
12
10
|
"status": "draft",
|
|
13
11
|
"summary": "Machine-readable artifact manifest."
|
|
14
12
|
},
|
|
15
|
-
"template": "{
|
|
13
|
+
"template": "{skill_dir}/scripts/artifact-utils.mjs manifest {artifact_path} {title} {status} {summary}"
|
|
16
14
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"normalizer": "subagent-normalize
|
|
5
|
-
"artifact": "subagent-artifact
|
|
6
|
-
"writer": "
|
|
4
|
+
"normalizer": "swarm/subagent-normalize",
|
|
5
|
+
"artifact": "swarm/subagent-artifact",
|
|
6
|
+
"writer": "artifacts/file-write"
|
|
7
7
|
},
|
|
8
8
|
"args": [
|
|
9
9
|
"input:string",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/** Artifact-owned deterministic manifest and write helpers. */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
appendFileSync,
|
|
7
|
+
existsSync,
|
|
8
|
+
mkdirSync,
|
|
9
|
+
readFileSync,
|
|
10
|
+
statSync,
|
|
11
|
+
writeFileSync,
|
|
12
|
+
} from "node:fs";
|
|
13
|
+
import { dirname, resolve } from "node:path";
|
|
14
|
+
|
|
15
|
+
function fail(message) {
|
|
16
|
+
console.error(message);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function pathOf(value) {
|
|
21
|
+
return resolve(String(value).replace(/^~(?=\/|$)/, process.env.HOME ?? "~"));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function manifest(pathValue, title = "Artifact", status = "draft", summary = "") {
|
|
25
|
+
const path = pathOf(pathValue);
|
|
26
|
+
const exists = existsSync(path);
|
|
27
|
+
const stat = exists ? statSync(path) : undefined;
|
|
28
|
+
console.log(JSON.stringify({
|
|
29
|
+
title,
|
|
30
|
+
status,
|
|
31
|
+
path,
|
|
32
|
+
exists,
|
|
33
|
+
bytes: stat?.size ?? 0,
|
|
34
|
+
modified: stat?.mtime?.toISOString?.() ?? null,
|
|
35
|
+
summary,
|
|
36
|
+
}, null, 2));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function write(pathValue, mode = "create") {
|
|
40
|
+
const path = pathOf(pathValue);
|
|
41
|
+
if (!["create", "overwrite", "append"].includes(mode))
|
|
42
|
+
fail(`Invalid artifact write mode: ${mode}`);
|
|
43
|
+
if (mode === "create" && existsSync(path)) fail(`Artifact already exists: ${path}`);
|
|
44
|
+
const content = readFileSync(0, "utf8");
|
|
45
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
46
|
+
if (mode === "append") appendFileSync(path, content);
|
|
47
|
+
else writeFileSync(path, content, "utf8");
|
|
48
|
+
console.log(JSON.stringify({
|
|
49
|
+
path,
|
|
50
|
+
mode,
|
|
51
|
+
bytes: statSync(path).size,
|
|
52
|
+
written: true,
|
|
53
|
+
}, null, 2));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const [command, ...args] = process.argv.slice(2);
|
|
57
|
+
try {
|
|
58
|
+
if (command === "manifest") manifest(args[0] ?? "artifact.md", args[1], args[2], args[3]);
|
|
59
|
+
else if (command === "write") write(args[0] ?? "artifact.md", args[1]);
|
|
60
|
+
else fail(`Unknown artifact command: ${command ?? ""}`);
|
|
61
|
+
} catch (error) {
|
|
62
|
+
fail(error instanceof Error ? error.message : String(error));
|
|
63
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: media
|
|
3
|
+
description: Local media discovery, playlist construction, and controllable playback capabilities.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Media
|
|
7
|
+
|
|
8
|
+
Own reusable local media workflows and services.
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
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.
|
|
15
|
+
|
|
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.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"args": [
|
|
4
|
-
"repo:path",
|
|
5
4
|
"command:enum(play,pause,resume,toggle,next,previous,stop,status)",
|
|
6
5
|
"source:string",
|
|
7
6
|
"loop:bool",
|
|
@@ -10,7 +9,6 @@
|
|
|
10
9
|
"state_dir:path"
|
|
11
10
|
],
|
|
12
11
|
"defaults": {
|
|
13
|
-
"repo": "~/.pi/agent/extensions/pi-actors",
|
|
14
12
|
"command": "play",
|
|
15
13
|
"loop": "true",
|
|
16
14
|
"volume": "70",
|
|
@@ -26,5 +24,5 @@
|
|
|
26
24
|
"stop",
|
|
27
25
|
"status"
|
|
28
26
|
],
|
|
29
|
-
"template": "{
|
|
27
|
+
"template": "{skill_dir}/scripts/music-player.mjs {command} {source} {loop} {volume} {player} {state_dir}"
|
|
30
28
|
}
|
package/dist/{recipes/utility-playlist-build.json → skills/media/recipes/playlist-build.json}
RENAMED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"args": [
|
|
3
|
-
"repo:path",
|
|
4
3
|
"source_dir:path",
|
|
5
4
|
"extensions:string",
|
|
6
5
|
"max_depth:int",
|
|
7
6
|
"output_mode:enum(paths,m3u,inline)"
|
|
8
7
|
],
|
|
9
8
|
"defaults": {
|
|
10
|
-
"repo": "~/.pi/agent/extensions/pi-actors",
|
|
11
9
|
"source_dir": "~/Music",
|
|
12
10
|
"extensions": ".mp3,.ogg,.wav,.flac,.m4a",
|
|
13
11
|
"max_depth": "2",
|
|
14
12
|
"output_mode": "paths"
|
|
15
13
|
},
|
|
16
|
-
"template": "{
|
|
14
|
+
"template": "{skill_dir}/scripts/media-utils.mjs playlist {source_dir} {extensions} {max_depth} {output_mode}"
|
|
17
15
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/** Media-owned playlist construction helper. */
|
|
4
|
+
|
|
5
|
+
import { existsSync, readdirSync, statSync } from "node:fs";
|
|
6
|
+
import { extname, join, resolve } from "node:path";
|
|
7
|
+
|
|
8
|
+
function fail(message) {
|
|
9
|
+
console.error(message);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function walkFiles(dir, maxDepth = 2, depth = 0, out = []) {
|
|
14
|
+
if (depth > maxDepth || !existsSync(dir)) return out;
|
|
15
|
+
for (const entry of readdirSync(dir)) {
|
|
16
|
+
const path = join(dir, entry);
|
|
17
|
+
const stat = statSync(path);
|
|
18
|
+
if (stat.isDirectory()) walkFiles(path, maxDepth, depth + 1, out);
|
|
19
|
+
else if (stat.isFile()) out.push(path);
|
|
20
|
+
}
|
|
21
|
+
return out;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function playlist(
|
|
25
|
+
sourceValue,
|
|
26
|
+
extensionsValue = ".mp3,.ogg,.wav,.flac,.m4a",
|
|
27
|
+
maxDepthValue = "2",
|
|
28
|
+
outputMode = "paths",
|
|
29
|
+
) {
|
|
30
|
+
const source = resolve(String(sourceValue).replace(/^~(?=\/|$)/, process.env.HOME ?? "~"));
|
|
31
|
+
const maxDepth = Number.parseInt(maxDepthValue, 10);
|
|
32
|
+
const extensions = new Set(extensionsValue.split(",").map((item) => item.trim().toLowerCase()).filter(Boolean));
|
|
33
|
+
const files = walkFiles(source, Number.isFinite(maxDepth) ? maxDepth : 2)
|
|
34
|
+
.filter((file) => extensions.has(extname(file).toLowerCase()))
|
|
35
|
+
.sort((a, b) => a.localeCompare(b));
|
|
36
|
+
if (outputMode === "m3u") console.log(["#EXTM3U", ...files].join("\n"));
|
|
37
|
+
else if (outputMode === "inline") console.log(files.join("|"));
|
|
38
|
+
else console.log(files.join("\n"));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const [command, ...args] = process.argv.slice(2);
|
|
42
|
+
try {
|
|
43
|
+
if (command === "playlist") playlist(args[0] ?? "~/Music", args[1], args[2], args[3]);
|
|
44
|
+
else fail(`Unknown media command: ${command ?? ""}`);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
fail(error instanceof Error ? error.message : String(error));
|
|
47
|
+
}
|
|
@@ -39,14 +39,20 @@ import {
|
|
|
39
39
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
40
40
|
|
|
41
41
|
function packageRoot() {
|
|
42
|
-
return dirname(dirname(fileURLToPath(import.meta.url)));
|
|
42
|
+
return dirname(dirname(dirname(dirname(fileURLToPath(import.meta.url)))));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
async function importRuntimeModule(name) {
|
|
46
46
|
const root = packageRoot();
|
|
47
|
-
const compiled = join(root, "
|
|
47
|
+
const compiled = join(root, "lib", `${name}.js`);
|
|
48
|
+
const installedCompiled = join(root, "dist", "lib", `${name}.js`);
|
|
48
49
|
const source = join(root, "lib", `${name}.ts`);
|
|
49
|
-
|
|
50
|
+
const module = existsSync(compiled)
|
|
51
|
+
? compiled
|
|
52
|
+
: root.includes(`${delimiter}node_modules${delimiter}`) && existsSync(installedCompiled)
|
|
53
|
+
? installedCompiled
|
|
54
|
+
: source;
|
|
55
|
+
return await import(pathToFileURL(module).href);
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
const { appendRunControlInStateDir, claimRunControlByIdInStateDir,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: project-work
|
|
3
|
+
description: Repository inspection, documentation maintenance, release preparation, and project health workflows.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Work
|
|
7
|
+
|
|
8
|
+
Own reusable workflows for inspecting and maintaining software projects.
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
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.
|
|
15
|
+
|
|
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.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"docs_index": "
|
|
5
|
-
"reviewer": "subagent-review
|
|
6
|
-
"planner": "subagent-plan
|
|
7
|
-
"artifact": "
|
|
4
|
+
"docs_index": "project-work/markdown-index",
|
|
5
|
+
"reviewer": "swarm/subagent-review",
|
|
6
|
+
"planner": "swarm/subagent-plan",
|
|
7
|
+
"artifact": "artifacts/report"
|
|
8
8
|
},
|
|
9
9
|
"args": [
|
|
10
10
|
"docs_dir:path",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"changelog": "
|
|
5
|
-
"package": "
|
|
6
|
-
"skill": "
|
|
7
|
-
"validation": "
|
|
8
|
-
"review": "subagent-review-coordinator
|
|
9
|
-
"artifact": "
|
|
4
|
+
"changelog": "project-work/changelog-section",
|
|
5
|
+
"package": "project-work/package-summary",
|
|
6
|
+
"skill": "project-work/skill-summary",
|
|
7
|
+
"validation": "actors/command-validate",
|
|
8
|
+
"review": "swarm/subagent-review-coordinator",
|
|
9
|
+
"artifact": "artifacts/report"
|
|
10
10
|
},
|
|
11
11
|
"args": [
|
|
12
12
|
"scope:path",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"changelog": "
|
|
5
|
-
"package": "
|
|
6
|
-
"skill": "
|
|
7
|
-
"validation": "
|
|
8
|
-
"artifact": "
|
|
4
|
+
"changelog": "project-work/changelog-section",
|
|
5
|
+
"package": "project-work/package-summary",
|
|
6
|
+
"skill": "project-work/skill-summary",
|
|
7
|
+
"validation": "actors/command-validate",
|
|
8
|
+
"artifact": "artifacts/report"
|
|
9
9
|
},
|
|
10
10
|
"args": [
|
|
11
11
|
"scope:path",
|
package/{recipes/pipeline-repo-health.json → dist/skills/project-work/recipes/repo-health.json}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"git_status": "
|
|
5
|
-
"git_log": "
|
|
6
|
-
"docs_index": "
|
|
7
|
-
"validation": "
|
|
8
|
-
"normalizer": "subagent-normalize
|
|
9
|
-
"artifact": "
|
|
4
|
+
"git_status": "project-work/git-status",
|
|
5
|
+
"git_log": "project-work/git-log",
|
|
6
|
+
"docs_index": "project-work/markdown-index",
|
|
7
|
+
"validation": "actors/command-validate",
|
|
8
|
+
"normalizer": "swarm/subagent-normalize",
|
|
9
|
+
"artifact": "artifacts/report"
|
|
10
10
|
},
|
|
11
11
|
"args": [
|
|
12
12
|
"repo:path",
|
package/{recipes/pipeline-async-run-ops.json → dist/skills/project-work/recipes/run-ops.json}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"snapshot": "
|
|
5
|
-
"normalizer": "subagent-normalize
|
|
6
|
-
"artifact": "
|
|
4
|
+
"snapshot": "actors/run-ops-snapshot",
|
|
5
|
+
"normalizer": "swarm/subagent-normalize",
|
|
6
|
+
"artifact": "artifacts/report"
|
|
7
7
|
},
|
|
8
8
|
"args": [
|
|
9
9
|
"state_root:path",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/** Project-work metadata and changelog helpers. */
|
|
4
|
+
|
|
5
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
6
|
+
import { resolve } from "node:path";
|
|
7
|
+
|
|
8
|
+
function fail(message) {
|
|
9
|
+
console.error(message);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function pathOf(value) {
|
|
14
|
+
return resolve(String(value).replace(/^~(?=\/|$)/, process.env.HOME ?? "~"));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function readJson(file) {
|
|
18
|
+
if (!existsSync(file)) return undefined;
|
|
19
|
+
try {
|
|
20
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
21
|
+
} catch {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function packageSummary(fileValue = "package.json") {
|
|
27
|
+
const pkg = readJson(pathOf(fileValue));
|
|
28
|
+
if (!pkg) fail(`Package JSON not found or invalid: ${fileValue}`);
|
|
29
|
+
const dependencies = Object.keys(pkg.dependencies ?? {}).sort();
|
|
30
|
+
const devDependencies = Object.keys(pkg.devDependencies ?? {}).sort();
|
|
31
|
+
console.log(JSON.stringify({
|
|
32
|
+
name: pkg.name ?? "",
|
|
33
|
+
version: pkg.version ?? "",
|
|
34
|
+
type: pkg.type ?? "",
|
|
35
|
+
private: Boolean(pkg.private),
|
|
36
|
+
packageManager: pkg.packageManager ?? "",
|
|
37
|
+
files: Array.isArray(pkg.files) ? pkg.files : [],
|
|
38
|
+
bin: pkg.bin ?? null,
|
|
39
|
+
main: pkg.main ?? "",
|
|
40
|
+
exports: pkg.exports ?? null,
|
|
41
|
+
scripts: Object.keys(pkg.scripts ?? {}).sort(),
|
|
42
|
+
dependencyCount: dependencies.length,
|
|
43
|
+
devDependencyCount: devDependencies.length,
|
|
44
|
+
dependencies,
|
|
45
|
+
devDependencies,
|
|
46
|
+
}, null, 2));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function skillSummary(skillValue, packageValue = "package.json") {
|
|
50
|
+
const content = readFileSync(pathOf(skillValue), "utf8");
|
|
51
|
+
const pkg = readJson(pathOf(packageValue)) ?? {};
|
|
52
|
+
const frontmatter = content.match(/^---\r?\n([\s\S]*?)\r?\n---/)?.[1] ?? "";
|
|
53
|
+
const fields = Object.fromEntries(frontmatter.split(/\r?\n/).flatMap((line) => {
|
|
54
|
+
const match = line.match(/^([A-Za-z_][\w-]*):\s*(.*)$/);
|
|
55
|
+
return match ? [[match[1], match[2].trim()]] : [];
|
|
56
|
+
}));
|
|
57
|
+
const version = fields.version ?? frontmatter.match(/^\s+version:\s*([^\n]+)$/m)?.[1]?.trim() ?? "";
|
|
58
|
+
const body = content.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/, "");
|
|
59
|
+
console.log(JSON.stringify({
|
|
60
|
+
path: skillValue,
|
|
61
|
+
name: fields.name ?? "",
|
|
62
|
+
description: fields.description ?? "",
|
|
63
|
+
version,
|
|
64
|
+
packageVersion: pkg.version ?? "",
|
|
65
|
+
versionMatchesPackage: version === pkg.version,
|
|
66
|
+
frontmatterExtraColonLines: frontmatter.split(/\r?\n/).filter((line) =>
|
|
67
|
+
/^\w+:\s*\S/.test(line) && (line.match(/:/g) ?? []).length > 1),
|
|
68
|
+
bodyLineCount: body.split(/\r?\n/).length,
|
|
69
|
+
headings: body.split(/\r?\n/).filter((line) => /^#{1,6}\s/.test(line)),
|
|
70
|
+
}, null, 2));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function changelogSection(fileValue, version) {
|
|
74
|
+
const lines = readFileSync(pathOf(fileValue), "utf8").split(/\r?\n/);
|
|
75
|
+
const start = lines.findIndex((line) => line.startsWith("## ") && line.includes(version));
|
|
76
|
+
if (start < 0) fail(`Version section not found: ${version}`);
|
|
77
|
+
const next = lines.findIndex((line, index) => index > start && line.startsWith("## "));
|
|
78
|
+
console.log(lines.slice(start, next < 0 ? lines.length : next).join("\n").trimEnd());
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const [command, ...args] = process.argv.slice(2);
|
|
82
|
+
try {
|
|
83
|
+
if (command === "package-summary") packageSummary(args[0]);
|
|
84
|
+
else if (command === "skill-summary") skillSummary(args[0], args[1]);
|
|
85
|
+
else if (command === "changelog-section") changelogSection(args[0] ?? "CHANGELOG.md", args[1] ?? "Unreleased");
|
|
86
|
+
else fail(`Unknown project command: ${command ?? ""}`);
|
|
87
|
+
} catch (error) {
|
|
88
|
+
fail(error instanceof Error ? error.message : String(error));
|
|
89
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: recipe-memory
|
|
3
|
+
description: Package-owned structural review components for safe persistent Recipe capability memory.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Recipe Memory
|
|
7
|
+
|
|
8
|
+
Own the executable reviewer components used by automatic draft and active-tool Recipe evolution.
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
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.
|
|
15
|
+
|
|
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.
|
|
@@ -9,7 +9,7 @@ Subagent orchestration: delegated review, quorum consensus, scoped locks, clean-
|
|
|
9
9
|
|
|
10
10
|
## Purpose
|
|
11
11
|
|
|
12
|
-
Run subagents safely and predictably through reusable orchestration contracts.
|
|
12
|
+
Run subagents safely and predictably through reusable orchestration contracts. Skill Recipe identity is `<active Skill name>/<Recipe filename stem>`; Recipe files have no top-level `name`. Components are direct files under `recipes/` and use exact `swarm/<recipe>` identities, including `swarm/lens-review`, `swarm/quorum-review`, `swarm/research-synthesis`, and `swarm/development-tasking`; they remain components rather than automatic tools.
|
|
13
13
|
|
|
14
14
|
Activation rule: load this skill before launching multiple independent actors or subagents, even when the work is creative artifact generation rather than code review. The coordinator owns decomposition, disjoint scopes, launch correctness, result integration, and final validation; participants may choose local content or implementation details independently inside their assigned boundaries.
|
|
15
15
|
|
|
@@ -31,7 +31,7 @@ Maintain this skill as a living orchestration standard. When real swarm work exp
|
|
|
31
31
|
- `Lens`: A deliberately narrow cognitive role assigned to one subagent, such as security, tests, architecture, economics, or operator UX.
|
|
32
32
|
- `Task Card`: A bounded implementation assignment with goal, allowed files, avoided files, expected output, and validation gates.
|
|
33
33
|
- `Component Capability`: An abstract adapter operation such as launcher, reviewer, verifier, merger, quorum, checkpoint, follow-up, judge, or normalizer. Swarm may target these capabilities, but local adapters bind them to concrete tools, recipes, draft recipes, command templates, async runs, or services.
|
|
34
|
-
- `Draft Recipe`: A reusable but non-registered recipe captured from a successful inline actor spawn under `~/.pi/agent/recipes/drafts`. It can be replayed by explicit
|
|
34
|
+
- `Draft Recipe`: A reusable but non-registered recipe captured from a successful inline actor spawn under `~/.pi/agent/recipes/drafts`. It can be replayed by an explicit `.json` / `.md` path (relative entry paths use invocation `cwd`) and later promoted into the active tool Recipe root after enough dogfood.
|
|
35
35
|
- `Coordinator Checkpoint`: A deliberate subagent pause where the subagent preserves its working context, sends a bounded question or status to the orchestrator, receives a coordinator reply, and continues in the same subagent context.
|
|
36
36
|
- `Evidence Checkpoint`: A deliberate stop where a subagent records sources, assumptions, confidence, contradictions, or blocking evidence gaps before synthesis.
|
|
37
37
|
- `Integrator`: The human or agent that merges isolated branches/worktrees into the shared target and owns conflict resolution.
|
|
@@ -162,7 +162,7 @@ Use [`references/development-swarm.md`](./references/development-swarm.md) for c
|
|
|
162
162
|
|
|
163
163
|
Purpose: turn one result into many risk lenses and a decision-grade verdict.
|
|
164
164
|
|
|
165
|
-
Use lens swarm for broad coverage, quorum for confidence on one critical judgement, or both for high-stakes releases. In adapters that expose current session model/thinking policy, default ordinary same-policy review swarms to that current policy and require explicit args only when intentionally varying models or thinking levels. Run a cheap model/tool preflight before launching expensive reviewer fanout; if it fails, use the `ACTOR_PREFLIGHT_FAILED` stage/model/error-class/prompt-file diagnostic to choose explicit override args instead of rerunning blindly. For
|
|
165
|
+
Use lens swarm for broad coverage, quorum for confidence on one critical judgement, or both for high-stakes releases. In adapters that expose current session model/thinking policy, default ordinary same-policy review swarms to that current policy and require explicit args only when intentionally varying models or thinking levels. Run a cheap model/tool preflight before launching expensive reviewer fanout; if it fails, use the `ACTOR_PREFLIGHT_FAILED` stage/model/error-class/prompt-file diagnostic to choose explicit override args instead of rerunning blindly. For Skill-owned review swarms, tune `min_successful_reviewers`, `reviewer_concurrency`, `subagent_ttl_ms`, and `merge_policy` instead of manual reruns; preserve partial reports and label the outcome `complete`, `degraded`, or `insufficient_data`. The final report should separate consensus findings, minority findings, merger findings, risks, and recommended next actions.
|
|
166
166
|
|
|
167
167
|
A review swarm synthesis must not fabricate claims. Every final finding should trace to a reviewer note, checked artifact, command output, source, or explicit merger rationale. Devil's Advocate critical findings must be preserved or explicitly disproved with evidence.
|
|
168
168
|
|
|
@@ -345,7 +345,7 @@ Locks prevent subagents from interfering with shared scopes. Locks are optional
|
|
|
345
345
|
|
|
346
346
|
## Validation
|
|
347
347
|
|
|
348
|
-
After changing Swarm adapter contracts or
|
|
348
|
+
After changing Swarm adapter contracts or Skill documentation, validate the local distribution with whatever checks the host project provides. At minimum, review the text for boundary drift:
|
|
349
349
|
|
|
350
350
|
- no dependency on a specific extension, actor runtime, registry, recipe store, or CLI runner;
|
|
351
351
|
- no bundled broad coordinator or lock runtime as portable Swarm core;
|
package/{recipes/pipeline-architect-coordinator.json → dist/skills/swarm/recipes/architect.json}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"reviewer": "subagent-review
|
|
5
|
-
"critic": "subagent-critic
|
|
6
|
-
"verifier": "subagent-verify
|
|
7
|
-
"merger": "subagent-merge
|
|
8
|
-
"normalizer": "subagent-normalize
|
|
4
|
+
"reviewer": "swarm/subagent-review",
|
|
5
|
+
"critic": "swarm/subagent-critic",
|
|
6
|
+
"verifier": "swarm/subagent-verify",
|
|
7
|
+
"merger": "swarm/subagent-merge",
|
|
8
|
+
"normalizer": "swarm/subagent-normalize"
|
|
9
9
|
},
|
|
10
10
|
"args": [
|
|
11
11
|
"problem:string",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"checkpoint": "subagent-checkpoint
|
|
5
|
-
"followup": "subagent-followup
|
|
6
|
-
"normalizer": "subagent-normalize
|
|
4
|
+
"checkpoint": "swarm/subagent-checkpoint",
|
|
5
|
+
"followup": "swarm/subagent-followup",
|
|
6
|
+
"normalizer": "swarm/subagent-normalize"
|
|
7
7
|
},
|
|
8
8
|
"args": [
|
|
9
9
|
"state:string",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"async": true,
|
|
3
3
|
"imports": {
|
|
4
|
-
"planner": "subagent-plan
|
|
5
|
-
"task_card": "subagent-task-card
|
|
6
|
-
"critic": "subagent-critic
|
|
7
|
-
"normalizer": "subagent-normalize
|
|
4
|
+
"planner": "swarm/subagent-plan",
|
|
5
|
+
"task_card": "swarm/subagent-task-card",
|
|
6
|
+
"critic": "swarm/subagent-critic",
|
|
7
|
+
"normalizer": "swarm/subagent-normalize"
|
|
8
8
|
},
|
|
9
9
|
"args": [
|
|
10
10
|
"goal:string",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"description": "General-purpose multi-lens review swarm. Launches independent reviewers by lens, then verifies, merges, judges, and normalizes the result.",
|
|
3
3
|
"async": true,
|
|
4
4
|
"imports": {
|
|
5
|
-
"coordinator": "subagent-review-coordinator
|
|
5
|
+
"coordinator": "swarm/subagent-review-coordinator"
|
|
6
6
|
},
|
|
7
7
|
"args": [
|
|
8
8
|
"scope:string",
|