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.

fix: repair the comments my alias deletion orphaned, and name the resolver

kashorin999e37bd47b9
diff --git a/packages/core/src/graph.ts b/packages/core/src/graph.ts
index 04e2e1e0..3b92f32d 100644
--- a/packages/core/src/graph.ts
+++ b/packages/core/src/graph.ts
@@ -170,8 +170,16 @@ export function satisfactionForOutput(
return request.satisfactions.find((satisfaction) => satisfaction.output === output);
}
-/** @deprecated Use satisfactionForOutput. */
-export function selectedSatisfaction(
+/**
+ * The Candidate that satisfies one Logical Output, and how faithfully.
+ *
+ * A Satisfaction is the request's choice — an edge from an output to one of its
+ * Candidates. This resolves that edge: it returns the Candidate the edge names,
+ * falling back to the output's primary when the request made no choice. The
+ * distinction is worth keeping in the names, because a Satisfaction is what a
+ * BuildRequest records and a Candidate is what the graph supplies.
+ */
+export function satisfiedCandidate(
graph: CompiledGraph,
request: BuildRequest,
outputId: string,
@@ -182,7 +190,6 @@ export function selectedSatisfaction(
return { candidate, fidelity: satisfaction?.fidelity ?? "exact" };
}
-/** @deprecated Use selectedSatisfaction. */
export function operationResultRecord(operation: OperationNode): string {
return operation.result.record;
}
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index d43a0faf..bd7c5c88 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -24,7 +24,7 @@ export {
resolveOperation,
sealBuildRequest,
sealCompiledGraph,
- selectedSatisfaction,
+ satisfiedCandidate,
satisfactionForOutput,
valueRefKey,
verifyBuildRequest,
diff --git a/packages/core/src/plan.ts b/packages/core/src/plan.ts
index 0b4958f8..ce779ac7 100644
--- a/packages/core/src/plan.ts
+++ b/packages/core/src/plan.ts
@@ -18,7 +18,7 @@ import {
operationResultRecord,
resolveLogicalOutput,
resolveOperation,
- selectedSatisfaction,
+ satisfiedCandidate,
verifyBuildRequest,
} from "./graph.js";
import { resolveProducer, sealRecord, verifyRecord } from "./link.js";
@@ -148,7 +148,7 @@ export function compileBuild(
invariant(!resolvingOutputs.has(id), "SELECTED_GRAPH_CYCLE", `selected graph cycles through ${id}`, id);
resolvingOutputs.add(id);
const output = resolveLogicalOutput(graph, id);
- const selected = selectedSatisfaction(graph, request, id);
+ const selected = satisfiedCandidate(graph, request, id);
const { candidate, fidelity } = selected;
let resolved: ResolvedSource;
if (candidate.root.kind === "value") {
@@ -417,4 +417,3 @@ export function producerStep(plan: BuildPlan, id: string): ProducerStep {
return step;
}
-/** @deprecated Use compileBuild. */
diff --git a/packages/local/src/types.ts b/packages/local/src/types.ts
index 03dbc2bb..5c03b510 100644
--- a/packages/local/src/types.ts
+++ b/packages/local/src/types.ts
@@ -21,8 +21,6 @@ import type {
} from "@narratage/runtime";
import type { TypeValidatorRegistrar, TypeValidatorRegistryLike } from "@narratage/validation";
-/** @deprecated Use the host-neutral ComponentPackage name. */
-export type NodeComponentPackage = ComponentPackage;
export type { ComponentPackage } from "@narratage/component-kit";
export type LocalTypeValidatorRegistry = TypeValidatorRegistryLike & TypeValidatorRegistrar;
diff --git a/packages/local/test/local.test.ts b/packages/local/test/local.test.ts
index 615950df..41ebe18a 100644
--- a/packages/local/test/local.test.ts
+++ b/packages/local/test/local.test.ts
@@ -14,7 +14,7 @@ import { FileArtifactStore } from "@narratage/artifact-store-fs";
import { MemoryArtifactStore } from "@narratage/driver-node";
import type { RecoverableEndpoint } from "@narratage/endpoint-kit";
import type {
- NodeComponentPackage,
+ ComponentPackage,
EndpointPackage,
} from "@narratage/local";
import { createLocalRuntime, createProjectLocalRuntime } from "@narratage/local";
@@ -93,7 +93,7 @@ test("project local runtime resumes durable work while component and endpoint pa
let starts = 0;
let resumes = 0;
let cancels = 0;
- const components: NodeComponentPackage = {
+ const components: ComponentPackage = {
name: "example.components",
producers: [
{
diff --git a/packages/runtime/src/types.ts b/packages/runtime/src/types.ts
index b8b6653f..69665e26 100644
--- a/packages/runtime/src/types.ts
+++ b/packages/runtime/src/types.ts
@@ -147,5 +147,3 @@ export type BuildSchedulerFactory = {
create(executor: RuntimeCommandExecutor, options?: BuildSchedulerOptions): BuildScheduler;
};
-/** @deprecated The options are not specific to the reference local implementation. */
-export type LocalBuildSchedulerOptions = BuildSchedulerOptions;