@mmerterden/multi-agent-pipeline 23.4.0 → 23.6.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 (56) hide show
  1. package/CHANGELOG.md +47 -6
  2. package/README.md +4 -4
  3. package/README.tr.md +4 -4
  4. package/SECURITY.md +16 -0
  5. package/docs/architecture.md +1 -1
  6. package/docs/ecosystem.md +9 -9
  7. package/docs/facts.json +10 -10
  8. package/docs/features.md +1 -1
  9. package/install/_platform-filter.mjs +2 -55
  10. package/install/codex.mjs +1 -3
  11. package/install/copilot.mjs +4 -8
  12. package/package.json +2 -2
  13. package/pipeline/commands/multi-agent/design-check/SKILL.md +1 -0
  14. package/pipeline/contract/CHANGELOG.md +14 -0
  15. package/pipeline/contract/README.md +1 -0
  16. package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
  17. package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
  18. package/pipeline/contract/manifest.json +14 -1
  19. package/pipeline/contract/types/index.d.ts +28 -2
  20. package/pipeline/lib/stack-detect.sh +1 -1
  21. package/pipeline/lib/usage-names.generated.mjs +9 -1
  22. package/pipeline/multi-agent-refs/design-check/init-inventory.md +11 -1
  23. package/pipeline/multi-agent-refs/features/remote-control.md +2 -1
  24. package/pipeline/multi-agent-refs/features/usage-reporting.md +5 -5
  25. package/pipeline/multi-agent-refs/help/en.md +1 -1
  26. package/pipeline/multi-agent-refs/help/tr.md +1 -1
  27. package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +1 -1
  28. package/pipeline/multi-agent-refs/outside-the-pipeline.md +2 -1
  29. package/pipeline/multi-agent-refs/toolkit-tools.md +1 -0
  30. package/pipeline/office/index.html +104 -5
  31. package/pipeline/office/toolkit.json +1 -1
  32. package/pipeline/rules/outside-the-pipeline.md +1 -1
  33. package/pipeline/schemas/mcp-health.schema.json +96 -0
  34. package/pipeline/schemas/toolkit-path-params.json +40 -7
  35. package/pipeline/scripts/_contract-core.mjs +1 -1
  36. package/pipeline/scripts/_contract-routes-office.mjs +12 -0
  37. package/pipeline/scripts/_stack-routing.mjs +1 -0
  38. package/pipeline/scripts/build-stack-plugins.mjs +1 -47
  39. package/pipeline/scripts/contract-server.mjs +2 -0
  40. package/pipeline/scripts/design-check-config.mjs +205 -0
  41. package/pipeline/scripts/gen-facts.mjs +1 -2
  42. package/pipeline/scripts/health-report.mjs +35 -8
  43. package/pipeline/scripts/mcp-health.mjs +309 -0
  44. package/pipeline/scripts/remote/handler.mjs +19 -6
  45. package/pipeline/scripts/remote/store.mjs +8 -5
  46. package/pipeline/scripts/skill-usage.mjs +16 -5
  47. package/pipeline/scripts/usage-health.mjs +10 -1
  48. package/pipeline/skills/.skill-manifest.json +6 -2
  49. package/pipeline/skills/.skills-index.json +12 -1
  50. package/pipeline/skills/shared/README.md +4 -3
  51. package/pipeline/skills/shared/external/ink-animation/SKILL.md +230 -0
  52. package/pipeline/skills/shared/external/ink-animation/evals/evals.json +41 -0
  53. package/pipeline/skills/skills-index.md +2 -1
  54. package/manifest.json +0 -2055
  55. package/pipeline/scripts/_renamed-skills.mjs +0 -164
  56. package/pipeline/skills/renamed.json +0 -30
@@ -0,0 +1,230 @@
1
+ ---
2
+ name: ink-animation
3
+ description: "Builds a hand-inked procedural line animation from a scene description: walking or running figures, trees, houses, lamps, clouds, birds, a sun or moon and a day cycle, as one self-contained animated SVG or HTML file or an MP4. Use when a small looping line-art scene is wanted. Not for tracing a photo into line art, charts, UI mockups or narrated videos."
4
+ metadata:
5
+ source: multi-agent-pipeline
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Ink animation
10
+
11
+ Draws a small looping pen-on-paper scene from numbers. The engine solves
12
+ the motion itself (planted feet stay fixed in the world, trees sway, clouds
13
+ drift) and writes a file that animates without script. It draws from a scene
14
+ description only: it does not vectorise a photo or an existing image, and it
15
+ makes no charts or UI mockups. For a narrated video use `release-video` and
16
+ `short-video-craft`.
17
+
18
+ The tools are `mcp__multi-agent__media_ink_plan`,
19
+ `mcp__multi-agent__media_ink_check` and
20
+ `mcp__multi-agent__media_ink_render`. Everything runs on this machine.
21
+
22
+ ## Contents
23
+
24
+ - 1. The scene object
25
+ - 2. Approve one figure first
26
+ - 3. Plan
27
+ - 4. Check
28
+ - 5. Render
29
+ - 6. Errors
30
+ - Practical guidance
31
+ - Worked example
32
+ - What it never does
33
+
34
+ ## 1. The scene object
35
+
36
+ Unknown keys are refused. Every default below is written back by the plan.
37
+
38
+ | Field | Required | Bounds | Default |
39
+ |---|---|---|---|
40
+ | `width`, `height` | yes | integer, 64 to 3840 | none |
41
+ | `duration_s` | yes | 0.5 to 60 seconds | none |
42
+ | `fps` | yes | integer, 1 to 60 | none |
43
+ | `seed` | no | integer, 0 to 4294967295 | 1 |
44
+ | `dayFraction` | no | 0 to 1: 0 midnight, 0.25 dawn, 0.5 noon, 0.75 dusk | 0.5 |
45
+ | `dayCycle` | no | true runs one full day over `duration_s`, starting at `dayFraction` | false |
46
+ | `title` | no | text, at most 120 characters, the accessible title | "Ink animation" |
47
+ | `ground` | no | `{ "y": 1 to height }`, pixels from the top | 78% of the height |
48
+ | `figures` | no | at most 12 | none |
49
+ | `props` | no | at most 40 | none |
50
+
51
+ `duration_s` times `fps`, rounded up, is the frame count and is capped at
52
+ 1800. The `seed` fixes every random choice, so the same scene draws the same
53
+ picture.
54
+
55
+ Each figure:
56
+
57
+ | Field | Bounds | Default |
58
+ |---|---|---|
59
+ | `kind` | `walker` or `runner` (required) | none |
60
+ | `x0` | starting x of the hip, from minus width to twice the width | the middle |
61
+ | `direction` | `right` or `left` | `right` |
62
+ | `speed` | 1 to 4000 pixels per second | 0.8 figure heights per second for a walker, 2.2 for a runner |
63
+ | `scale` | 0.2 to 3; 1 is 30% of the canvas height | 1 |
64
+ | `hat`, `scarf`, `bag` | true or false | false |
65
+ | `depth` | 0 to 1 | 0.5 |
66
+
67
+ A figure leaves the canvas on one side and re-enters on the other.
68
+
69
+ Each prop:
70
+
71
+ | Field | Bounds | Default |
72
+ |---|---|---|
73
+ | `kind` | `tree`, `house`, `lamp`, `cloud`, `bird`, `sun`, `moon` (required) | none |
74
+ | `x` | from minus width to twice the width (required) | none |
75
+ | `y` | sky props only (`cloud`, `bird`, `sun`, `moon`): from minus height to twice the height | cloud 15%, bird 28%, sun and moon 17% of the height |
76
+ | `scale` | 0.1 to 4 | 1 |
77
+ | `depth` | tree, house and lamp only, 0 to 1 | house 0.2, tree 0.35, lamp 0.4 |
78
+
79
+ Trees, houses and lamps always stand on the ground line: leave `y` out. A
80
+ `depth` on a sky prop is refused.
81
+
82
+ ## 2. Approve one figure first
83
+
84
+ Before the full scene, build a scene with the same canvas and fps, one
85
+ figure, a ground line and nothing else, and 2 to 4 seconds long. Plan it,
86
+ render it to a throwaway `.mp4` through `video` (or to `.html`), and look at
87
+ it: `mcp__multi-agent__media_frames` on the `.mp4` with `sheet: true` shows
88
+ the stride, the lean and the accessories. Change `scale`, `speed` or the
89
+ accessories until the figure reads well, then build the full scene with those
90
+ values. An existing file is never replaced, so use a new name per attempt.
91
+
92
+ ## 3. Plan
93
+
94
+ `mcp__multi-agent__media_ink_plan` with `scene`. It is read-only.
95
+
96
+ - `valid: false` with `errors[]` names every wrong field. Fix them all, then
97
+ plan again.
98
+ - `valid: true` returns `frames`, `figures`, `props` and `estimates`:
99
+ `animated_svg_bytes`, `animated_html_bytes` and `frame_swap_bytes` (what a
100
+ file that swaps frames would weigh, for comparison).
101
+ - `warnings[]` says when a file is over 2 MiB, over the 3 MiB (3145728 byte)
102
+ limit, a video is over the pixel budget, a video has more than 900 frames
103
+ (slow: each frame is drawn in a browser), or a figure finishes a step cycle
104
+ in under 4 frames (too fast to read at that fps: lower its `speed` or raise
105
+ `fps`).
106
+
107
+ ## 4. Check
108
+
109
+ `mcp__multi-agent__media_ink_check` with `scene` measures the motion and
110
+ returns `pass` and `metrics`, each with `value`, `threshold` (or `min` and
111
+ `max`), `unit`, `applicable` and `pass`.
112
+
113
+ - Pass or fail, a value at or under its threshold: `plantedFootDrift` (a
114
+ planted foot moving in the world, 0 means no skating), `limbStretch`,
115
+ `reachViolation`, `loopContinuity` (the pose repeating after one cycle),
116
+ `footBelowGround`, `kneeBackward`, `headToNeck`, `propBaseOffset` (a tree,
117
+ house or lamp off the ground line), `outputBytes` (the animated SVG
118
+ against 3 MiB), and the walker metrics `walkerStanceKneeFlexion` (15
119
+ degrees), `walkerTorsoLean` (5), `walkerArmSwing` (25) and
120
+ `walkerHandAboveShoulder` (0).
121
+ - Pass or fail, a value inside a range: `walkerPeakKneeFlexion` (35 to 75
122
+ degrees) and `walkerStepLengthRatio` (0.7 to 0.85 of leg length).
123
+ - Informational: `frameCount` (`pass: null`).
124
+ - `applicable: false`, `value: null`, `pass: null`: there was nothing to
125
+ measure (no figures, no walker, no tree, house or lamp). It is left out of
126
+ the overall `pass`; it is not a failure.
127
+
128
+ When a metric fails: a walker metric (knee flexion, step length ratio, lean,
129
+ arm swing) follows `speed` against the figure's size, so move `speed` back
130
+ toward the default and check again. `outputBytes` is size: see the guidance
131
+ below. When the foot, limb, loop or ground metrics fail at the default speed
132
+ and scale, the fault is in the engine and no scene edit tunes it: report it
133
+ and do not loop.
134
+
135
+ ## 5. Render
136
+
137
+ `mcp__multi-agent__media_ink_render` with `scene`, `outputPath` (an absolute
138
+ path ending in `.svg` or `.html`) and optionally `video: { outputPath }`
139
+ (absolute, ending in `.mp4`).
140
+
141
+ - `.svg` is one self-contained file that animates without script. `.html`
142
+ wraps it in a page whose `?t=SECONDS` freezes the picture at that time.
143
+ - The animated file is limited to 3 MiB (3145728 bytes).
144
+ - A video whose frames times width times height exceed 250000000 pixels is
145
+ refused before anything is written. At 960x540 that is 482 frames, at
146
+ 1920x1080 it is 120 frames.
147
+ - An existing file is never replaced: pick a new name.
148
+ - The video needs a local Chrome or Chromium (Playwright) and `ffmpeg` with
149
+ libx264. When one is missing the answer is `NEED_SETUP` for the video, and
150
+ the `.svg` or `.html` is already written.
151
+ - The result lists `output`, `format`, `bytes`, `frames` and, with a video,
152
+ the `video` entry.
153
+
154
+ ## 6. Errors
155
+
156
+ | Code | Meaning | Do |
157
+ |---|---|---|
158
+ | `BAD_INPUT` | invalid scene, bad or existing path, file over the size cap, video over the pixel budget | change the scene or the path, then plan again |
159
+ | `NEED_SETUP` | Playwright, a browser or ffmpeg is missing | tell the user what to install; the animated file is already written; do not retry |
160
+ | `UPSTREAM_BROKEN` on a drawing fault ("internal error while drawing the scene") | the engine cannot draw this scene | do not retry the same scene; change it or report it |
161
+ | `UPSTREAM_BROKEN` on a write or encode failure | the disk or ffmpeg failed | read the message; retry once only if it names no permanent cause |
162
+ | `TIMEOUT` | a capture or the encode ran out of time | shorten the clip or shrink the canvas |
163
+
164
+ ## Practical guidance
165
+
166
+ - Speed and scale. A figure is 30% of the canvas height times `scale`. The
167
+ defaults are a good start: a walker covers 0.8 figure heights a second, a
168
+ runner 2.2. Stay near them (roughly 0.5 to 1.2 for walkers, 1.8 to 3 for
169
+ runners; this range is a judgement, not a limit). A fast `speed` at a low
170
+ `fps` makes steps too quick to read: the plan warns under 4 frames per
171
+ step cycle.
172
+ - Depth. Things on the ground are drawn from low `depth` to high, so a high
173
+ depth is in front; equal depths keep the list order, props before figures.
174
+ Sky props are drawn behind the ground in a fixed order: sun, moon, cloud,
175
+ bird. Give a figure a depth above a lamp (0.4) to walk in front of it, below
176
+ a tree (0.35) to pass behind it.
177
+ - Day cycle. With `dayCycle: true` the ink, paper, sky and window glow retint
178
+ over the whole clip, the sun fades out toward night and the moon in. It
179
+ loops, so end where you started: one full day over `duration_s`. A fixed
180
+ `dayFraction` without `dayCycle` is a still time of day.
181
+ - Reduced motion. The animated file shows one still frame (at time 0) for
182
+ viewers who ask for reduced motion.
183
+ - Accuracy. The animated SVG interpolates linearly between keyed poses, so it
184
+ approximates the per-frame drawing: path coordinates within 2% of the
185
+ figure height, placements within 0.5 px, rotations within 0.2 degrees. The
186
+ MP4 frames are drawn exactly, one by one.
187
+ - Size. A figure costs about 260 KB and a prop 1 to 7 KB (measured at
188
+ 960x540: no figures 15 KB, one walker 276 KB, twelve walkers 3.1 MB, over
189
+ the cap). Clip length and canvas size barely matter. What reduces size is
190
+ fewer figures and fewer props; a lower `fps` helps only above 24 keys per
191
+ cycle (at 60 fps one walker is 583 KB, at 24 fps and below 276 KB), and
192
+ the plan says when it would not help.
193
+
194
+ ## Worked example
195
+
196
+ Valid against the schema; its plan is 240 frames, 2 figures, 8 props,
197
+ about 613 KB as `.svg`, no warnings, and its check passes.
198
+
199
+ ```json
200
+ {
201
+ "width": 960, "height": 540, "duration_s": 10, "fps": 24, "seed": 7,
202
+ "dayFraction": 0.35, "dayCycle": true, "title": "A walk home at dusk",
203
+ "ground": { "y": 420 },
204
+ "figures": [
205
+ { "kind": "walker", "x0": 150, "direction": "right", "hat": true, "scarf": true },
206
+ { "kind": "runner", "x0": 700, "direction": "left", "scale": 0.8, "bag": true, "depth": 0.6 }
207
+ ],
208
+ "props": [
209
+ { "kind": "house", "x": 760, "scale": 1.2 },
210
+ { "kind": "tree", "x": 100 },
211
+ { "kind": "tree", "x": 470, "scale": 0.8, "depth": 0.3 },
212
+ { "kind": "lamp", "x": 330 },
213
+ { "kind": "cloud", "x": 230, "y": 80 },
214
+ { "kind": "bird", "x": 600, "y": 150, "scale": 0.8 },
215
+ { "kind": "sun", "x": 800, "y": 100 },
216
+ { "kind": "moon", "x": 160, "y": 100 }
217
+ ]
218
+ }
219
+ ```
220
+
221
+ Plan it, check it, then render it with
222
+ `outputPath: "<dir>/walk.svg"` and, for a video,
223
+ `video: { "outputPath": "<dir>/walk.mp4" }` (240 frames of 960x540 is 124
224
+ million pixels, inside the budget).
225
+
226
+ ## What it never does
227
+
228
+ - Trace or vectorise a photo or any existing image.
229
+ - Replace a file that exists.
230
+ - Upload or publish the result; it ends with files on disk.
@@ -0,0 +1,41 @@
1
+ {
2
+ "skill_name": "ink-animation",
3
+ "evals": [
4
+ {
5
+ "id": 0,
6
+ "prompt": "Make me a small looping animated SVG for my site: two people walking along a street with a couple of trees and a lamp, going from afternoon into night.",
7
+ "expected_output": "Builds a scene with two walkers, trees, a lamp and dayCycle true, approves one figure first, plans, checks, then renders an .svg to a new path.",
8
+ "files": [],
9
+ "expectations": [
10
+ "Builds a scene object within the documented bounds with dayCycle true",
11
+ "Renders a single-figure test scene and looks at it before the full scene",
12
+ "Calls mcp__multi-agent__media_ink_plan before media_ink_render",
13
+ "Calls mcp__multi-agent__media_ink_check and reads applicable false as not a failure",
14
+ "Writes to a path that does not exist yet"
15
+ ]
16
+ },
17
+ {
18
+ "id": 1,
19
+ "prompt": "Turn this photo of my street into an animated line drawing.",
20
+ "expected_output": "Declines: the engine draws from a scene description and does not vectorise images; offers to build a scene of figures and props instead.",
21
+ "files": [],
22
+ "expectations": [
23
+ "Says the tools do not trace or vectorise a photo",
24
+ "Offers to describe a scene with figures and props instead",
25
+ "Does not call mcp__multi-agent__media_ink_render with the photo"
26
+ ]
27
+ },
28
+ {
29
+ "id": 2,
30
+ "prompt": "Render the walking scene to an mp4 as well as the svg. The machine has no ffmpeg.",
31
+ "expected_output": "Renders with video, gets NEED_SETUP for the video only, reports that the svg was written and tells the user to install ffmpeg without retrying.",
32
+ "files": [],
33
+ "expectations": [
34
+ "Passes video with an absolute .mp4 path",
35
+ "Reports that the .svg was still written",
36
+ "Tells the user to install ffmpeg and does not retry",
37
+ "Does not replace an existing file"
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -3,7 +3,7 @@
3
3
  > Auto-generated by `pipeline/scripts/build-skills-index.mjs` - do not hand-edit.
4
4
  > Regenerate with `node pipeline/scripts/build-skills-index.mjs`.
5
5
 
6
- **256 skills** across 2 groups.
6
+ **257 skills** across 2 groups.
7
7
 
8
8
  | Group | Name | Platform | Description |
9
9
  |-------|------|----------|-------------|
@@ -86,6 +86,7 @@
86
86
  | external | `homekit-matter` | - | HomeKit and MatterSupport: managing homes, rooms, zones and accessories, reading characteristics, action sets and triggers, Matter commissio |
87
87
  | external | `html-semantic` | - | Semantic HTML5: elements, forms with validation and accessibility, SEO best practices, structured data, Open Graph, Twitter Cards. Use when |
88
88
  | external | `humanizer` | - | Removes AI writing patterns so text reads as human-written: inflated language, filler phrases, AI vocabulary, mechanical structure, sycophan |
89
+ | external | `ink-animation` | - | Builds a hand-inked procedural line animation from a scene description: walking or running figures, trees, houses, lamps, clouds, birds, a s |
89
90
  | external | `ios-accessibility` | - | VoiceOver, Voice Control, Switch Control and Full Keyboard Access in SwiftUI, UIKit and AppKit: labels, traits, grouping, focus restore, Dyn |
90
91
  | external | `ios-coding-standard` | - | The iOS coding-standard rule registry: stable-ID rules across readability, security, service layer, business rules, concurrency, testing, mo |
91
92
  | external | `ios-design-review` | - | Design critique and screenshot-based visual QA of iOS screens against the HIG, checked across light and dark, Dynamic Type, RTL, contrast an |