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.

chore: trim declaration comments

rponeab04fec783aa
diff --git a/packages/gpt-image/src/index.ts b/packages/gpt-image/src/index.ts
index 58f208c9..5dff94f9 100644
--- a/packages/gpt-image/src/index.ts
+++ b/packages/gpt-image/src/index.ts
@@ -58,10 +58,6 @@ const gptImageBaseDefinition = defineExactModelModule({
export const gptImageEndpoints = gptImageBaseDefinition.endpoints;
export const gptImageComponent = gptImageBaseDefinition.component;
-/**
- * Both modules author the same element, so one description of the shape serves both and neither
- * can drift into teaching a syntax the shared handler would reject.
- */
const gptImageAttributes: readonly SurfaceAttributeVocabulary[] = [
{
name: "id",
diff --git a/packages/markup/src/types.ts b/packages/markup/src/types.ts
index fb876638..866f37b3 100644
--- a/packages/markup/src/types.ts
+++ b/packages/markup/src/types.ts
@@ -118,10 +118,8 @@ export type SurfaceResolvedReference = {
export type RawSurfaceHandler = (input: RawSurfaceInput) => Awaitable<RawSurfaceOutput>;
export type StructuredSurfaceHandler = (input: StructuredSurfaceInput) => Awaitable<SurfaceDecodeOutput>;
-/** How an attribute's authored value is interpreted. */
export type SurfaceAttributeKind = "identifier" | "literal" | "reference" | "expression";
-/** One property accepted by an SVS Recipe selected by an element attribute. */
export type SurfaceRecipePropertyVocabulary = {
readonly name: string;
readonly required: boolean;
@@ -154,14 +152,12 @@ export type SurfacePortVocabulary = {
readonly summary: string;
};
-/** A package-owned rendered still of the visual output produced by an element. */
export type SurfacePreview = {
readonly mediaType: string;
readonly path: string;
readonly open: () => Promise<Uint8Array>;
};
-/** A package's own declaration of one element's authoring vocabulary. */
export type SurfaceVocabulary = {
readonly summary: string;
readonly appearance?: string;
diff --git a/packages/media-track/src/manifest.ts b/packages/media-track/src/manifest.ts
index fda3b04b..12cb8c54 100644
--- a/packages/media-track/src/manifest.ts
+++ b/packages/media-track/src/manifest.ts
@@ -293,10 +293,6 @@ const sequenceInputs = [
{ name: "sounds", type: mediaTrackTypes.soundSet },
] as const;
-/**
- * Every property an `appearance` Recipe may carry: the shared spatial fit, the sampling of the
- * material behind it, and the Frame the unit is drawn in.
- */
const appearanceRecipeProperties = [
{ name: "fit", required: false, fallback: "contain",
values: ["contain", "cover", "fit-width", "fit-height", "native", "scale-down", "stretch"],
@@ -352,7 +348,6 @@ const appearanceRecipeProperties = [
summary: "Fills the whole Frame behind every layer with a color, `linear(angle;stops)` or `radial(x,y;stops)`." },
] as const;
-/** Every property a `motion` Recipe may carry: how a unit enters, how it lives, and how it leaves. */
const motionRecipeProperties = [
{ name: "enter", required: false, fallback: "none",
values: ["none", "fade", "slide", "scale", "pop", "bounce", "blur-reveal", "wipe", "flip", "spin"],
diff --git a/packages/mimo-tts/src/index.ts b/packages/mimo-tts/src/index.ts
index 5a3cd3e6..0f9d617e 100644
--- a/packages/mimo-tts/src/index.ts
+++ b/packages/mimo-tts/src/index.ts
@@ -93,7 +93,6 @@ const base = defineExactModelModule({
export const mimoTtsEndpoints = base.endpoints;
-/** The three models differ in how the voice is chosen; everything else about the element is shared. */
const mimoSpokenAttributes: readonly SurfaceAttributeVocabulary[] = [
{
name: "id",
diff --git a/packages/nano-banana/src/index.ts b/packages/nano-banana/src/index.ts
index 416a33bb..2e6c24d1 100644
--- a/packages/nano-banana/src/index.ts
+++ b/packages/nano-banana/src/index.ts
@@ -57,10 +57,6 @@ const nanoBananaBaseDefinition = defineExactModelModule({
export const nanoBananaEndpoints = nanoBananaBaseDefinition.endpoints;
export const nanoBananaComponent = nanoBananaBaseDefinition.component;
-/**
- * Both model variants author the same element through one handler, so one description of the shape
- * serves both and neither can drift into teaching a syntax the handler would reject.
- */
const nanoBananaAttributes: readonly SurfaceAttributeVocabulary[] = [
{
name: "id",
diff --git a/packages/screen-overlay/src/manifest.ts b/packages/screen-overlay/src/manifest.ts
index 64eb8cab..307452e1 100644
--- a/packages/screen-overlay/src/manifest.ts
+++ b/packages/screen-overlay/src/manifest.ts
@@ -78,7 +78,6 @@ export const screenOverlaySetSchema: ValueSchema = object({ items: { schema: { k
export const screenOverlayProgramSchema: ValueSchema = object({ id: { schema: string }, items: { schema: { kind: "array", minItems: 1, items: item } } });
const appendInputs = [{ name: "set", type: screenOverlayTypes.set }, { name: "header", type: screenOverlayTypes.header }, { name: "space", type: programSpaceTypes.programSpace }, { name: "spec", type: screenOverlayTypes.itemSpec }] as const;
-/** Every component child carries its own identity, its stacking order and one temporal form. */
const itemAttributes = [
{ name: "id", kind: "identifier", required: false,
summary: "Names this item; the overlay numbers the item after its kind when it is omitted." },
diff --git a/packages/seedance/src/index.ts b/packages/seedance/src/index.ts
index f20faac7..df337273 100644
--- a/packages/seedance/src/index.ts
+++ b/packages/seedance/src/index.ts
@@ -194,11 +194,6 @@ export const seedanceEndpointsByModel = {
"seedance-2.5": seedanceEndpoints.v25!,
} as const;
-/**
- * The three invocation shapes differ only in how media reaches the model, so one description of the
- * shared request settings serves all of them and none can drift into teaching a syntax the handlers
- * would reject.
- */
const seedanceCommonAttributes: readonly SurfaceAttributeVocabulary[] = [
{
name: "id",
diff --git a/packages/seedream/src/index.ts b/packages/seedream/src/index.ts
index d1300e41..b19a87df 100644
--- a/packages/seedream/src/index.ts
+++ b/packages/seedream/src/index.ts
@@ -48,10 +48,6 @@ export const seedreamEndpoints = seedreamBaseDefinition.endpoints;
export const seedreamComponent = seedreamBaseDefinition.component;
const endpoint = seedreamEndpoints.image!;
-/**
- * Both modes are decoded by one handler, so one description of the request shape serves both and
- * neither element can teach a spelling the shared handler would reject.
- */
const seedreamAttributes: readonly SurfaceAttributeVocabulary[] = [
{
name: "id",
diff --git a/packages/speech-spine/src/manifest.ts b/packages/speech-spine/src/manifest.ts
index a7ea8033..65a0d370 100644
--- a/packages/speech-spine/src/manifest.ts
+++ b/packages/speech-spine/src/manifest.ts
@@ -73,10 +73,6 @@ export const speechSpineVisualSpecSchema: ValueSchema = object({
stackingOrder: { schema: { kind: "number", integer: true } },
});
-/**
- * The spatial fit vocabulary `decodeContentFitProperties` reads out of a visual Recipe. Both the
- * Spine's base appearance and a Take's override are decoded by that one reader, so both declare it.
- */
const visualRecipeProperties = [
{ name: "fit", required: false, fallback: "contain",
values: ["contain", "cover", "fit-width", "fit-height", "native", "scale-down", "stretch"],