Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

docs: add author package value examples

rponef7f818966a0a
diff --git a/.agents/skills/hypit/references/local-author-package.md b/.agents/skills/hypit/references/local-author-package.md
index 1808d950..0f3a6836 100644
--- a/.agents/skills/hypit/references/local-author-package.md
+++ b/.agents/skills/hypit/references/local-author-package.md
@@ -181,6 +181,22 @@ to an append/merge Producer (for example `head`, `item`, `tail`). Do not add an
`items[]` input or let a handler consume arbitrary children; every child must be represented by a
sealed operation.
+```typescript
+const childOps = children.map((child, index) => ({
+ id: `child-${index}`, producer: childProducer,
+ inputs: { value: childInput(child) },
+ result: { kind: "output", name: `child-${index}` },
+}));
+const merge = {
+ id: "merge", producer: appendProducer,
+ inputs: { head: childOps[0]!, item: childOps[1]!, tail: childOps[2]! },
+ result: { kind: "output", name: "items" },
+};
+```
+
+The real implementation repeats the fixed operation shape for the actual child count and uses the
+package's documented empty/one/many merge forms; the handler never accepts undeclared variadic input.
+
## The package draws itself
A package is installed vocabulary. `.svml`, `.svs` and `.svrun` are documents that use it. A package
@@ -251,6 +267,14 @@ empty frame/cell when no material is supplied. `hypit image` uses the selected R
image endpoint and is billed; obtain approval before using it and reserve it for package-owned
chrome, never video content or previews.
+```typescript
+handler: ({ inputs }) => {
+ const media = inputs.media?.kind === "blob" ? inputs.media : undefined;
+ const kind = media?.mediaType.startsWith("video/") ? "video" : "image";
+ return { outputs: { track: output(renderSlot(kind, media)) }, needs: {} };
+}
+```
+
## Freeze the Types before writing in parallel
The nominal Types and the Manifest are what every other file agrees with, so write them first and