@mevdragon/vidfarm-devcli 0.20.6 → 0.20.8
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/skills/editor-capabilities/SKILL.md +15 -1
- package/.agents/skills/vidfarm-director/SKILL.md +106 -0
- package/.agents/skills/vidfarm-director/recipes/find-and-fork-template.md +16 -0
- package/.agents/skills/vidfarm-director/recipes/local-edit-render-approve.md +13 -0
- package/.agents/skills/vidfarm-director/recipes/onboard-a-new-director.md +13 -0
- package/.agents/skills/vidfarm-director/recipes/retheme-template.md +17 -0
- package/.agents/skills/vidfarm-director/references/assets-and-sourcing.md +111 -0
- package/.agents/skills/vidfarm-director/references/automation-and-local-dev.md +243 -0
- package/.agents/skills/vidfarm-director/references/core-workflows.md +273 -0
- package/.agents/skills/vidfarm-director/references/editor-workflows.md +365 -0
- package/.agents/skills/vidfarm-director/references/onboarding.md +28 -0
- package/.agents/skills/vidfarm-director/references/primitives.md +265 -0
- package/SKILL.director.md +476 -260
- package/dist/src/cli.js +362 -96
- package/dist/src/devcli/clips.js +15 -10
- package/dist/src/devcli/doctor.js +2 -2
- package/dist/src/devcli/local-backend.js +46 -2
- package/dist/src/services/clip-curation/cost.js +5 -1
- package/dist/src/services/clip-curation/gemini.js +10 -0
- package/package.json +30 -10
- package/SKILL.platform.md +0 -432
- package/demo/README.md +0 -28
- package/demo/dist/app.css +0 -1
- package/demo/dist/app.js +0 -1850
- package/demo/dist/chunks/chunk-DXB73IDG.js +0 -1
- package/demo/dist/chunks/chunk-S7OWAJDS.js +0 -36
- package/demo/dist/chunks/chunk-VTIBZ6AN.js +0 -1
- package/demo/dist/chunks/dist-ADSJKBVE.js +0 -332
- package/demo/dist/chunks/domEditingLayers-VZMLL4AP-SGHWPND4.js +0 -1
- package/demo/dist/chunks/hyperframes-player-XB65TCD6.js +0 -425
- package/demo/dist/chunks/lib-XAQ37YOE.js +0 -1
- package/demo/dist/chunks/src-TJ2QYA4U.js +0 -207
- package/demo/dist/favicon.ico +0 -0
- package/demo/dist/icons/timeline/audio.svg +0 -7
- package/demo/dist/icons/timeline/captions.svg +0 -5
- package/demo/dist/icons/timeline/composition.svg +0 -12
- package/demo/dist/icons/timeline/image.svg +0 -18
- package/demo/dist/icons/timeline/music.svg +0 -10
- package/demo/dist/icons/timeline/text.svg +0 -3
- package/demo/dist/index.html +0 -15
- package/dist/src/account-pages-legacy.js +0 -9396
- package/dist/src/account-pages.js +0 -61
- package/dist/src/app.js +0 -21603
- package/dist/src/composition-runtime.js +0 -1053
- package/dist/src/config.js +0 -217
- package/dist/src/context.js +0 -447
- package/dist/src/dev-app-legacy.js +0 -739
- package/dist/src/dev-app.js +0 -6
- package/dist/src/devcli/migrate-local.js +0 -140
- package/dist/src/devcli/sync.js +0 -368
- package/dist/src/domain.js +0 -5
- package/dist/src/editor-chat-history.js +0 -82
- package/dist/src/editor-chat.js +0 -828
- package/dist/src/editor-dark-theme.js +0 -1128
- package/dist/src/frontend/debug.js +0 -71
- package/dist/src/frontend/discover-client.js +0 -130
- package/dist/src/frontend/discover-store.js +0 -23
- package/dist/src/frontend/file-directory.js +0 -1018
- package/dist/src/frontend/flockposter-cache-store.js +0 -124
- package/dist/src/frontend/homepage-client.js +0 -446
- package/dist/src/frontend/homepage-shared.js +0 -201
- package/dist/src/frontend/homepage-store.js +0 -66
- package/dist/src/frontend/homepage-view.js +0 -705
- package/dist/src/frontend/page-runtime-client.js +0 -132
- package/dist/src/frontend/page-runtime-store.js +0 -9
- package/dist/src/frontend/sentry.js +0 -42
- package/dist/src/frontend/template-editor-chat.js +0 -4181
- package/dist/src/help-page.js +0 -346
- package/dist/src/homepage.js +0 -1458
- package/dist/src/index.js +0 -16
- package/dist/src/instrument.js +0 -30
- package/dist/src/landing-page.js +0 -384
- package/dist/src/page-runtime.js +0 -2
- package/dist/src/page-shell.js +0 -1452
- package/dist/src/primitive-context.js +0 -416
- package/dist/src/primitive-registry.js +0 -3940
- package/dist/src/primitive-sdk.js +0 -4
- package/dist/src/primitives/hyperframes-media.js +0 -108
- package/dist/src/react-page-shell.js +0 -35
- package/dist/src/ready-post-schedule-component.js +0 -1540
- package/dist/src/registry.js +0 -296
- package/dist/src/reskin/agency-page.js +0 -299
- package/dist/src/reskin/calendar-page.js +0 -568
- package/dist/src/reskin/chat-page.js +0 -942
- package/dist/src/reskin/discover-page.js +0 -1788
- package/dist/src/reskin/document.js +0 -1587
- package/dist/src/reskin/help-page.js +0 -357
- package/dist/src/reskin/index-page.js +0 -62
- package/dist/src/reskin/inpaint-clipper-page.js +0 -890
- package/dist/src/reskin/inpaint-page.js +0 -2554
- package/dist/src/reskin/inpaint-video-page.js +0 -1339
- package/dist/src/reskin/job-runs-page.js +0 -477
- package/dist/src/reskin/library-page.js +0 -1634
- package/dist/src/reskin/login-page.js +0 -262
- package/dist/src/reskin/portfolio-page.js +0 -687
- package/dist/src/reskin/pricing-page.js +0 -390
- package/dist/src/reskin/settings-page.js +0 -732
- package/dist/src/reskin/theme.js +0 -711
- package/dist/src/runtime.js +0 -35
- package/dist/src/services/api-call-history.js +0 -249
- package/dist/src/services/auth.js +0 -152
- package/dist/src/services/billing-pricing.js +0 -39
- package/dist/src/services/billing.js +0 -241
- package/dist/src/services/cast.js +0 -127
- package/dist/src/services/chat-threads.js +0 -92
- package/dist/src/services/clip-records.js +0 -250
- package/dist/src/services/clip-search.js +0 -77
- package/dist/src/services/clip-vectors.js +0 -125
- package/dist/src/services/composition-sanitize.js +0 -124
- package/dist/src/services/composition-watch.js +0 -79
- package/dist/src/services/elevenlabs.js +0 -222
- package/dist/src/services/file-directory.js +0 -117
- package/dist/src/services/fork-access.js +0 -93
- package/dist/src/services/fork-manifest.js +0 -42
- package/dist/src/services/ghostcut.js +0 -179
- package/dist/src/services/hyperframes.js +0 -3654
- package/dist/src/services/job-capacity.js +0 -14
- package/dist/src/services/job-logs.js +0 -197
- package/dist/src/services/jobs.js +0 -136
- package/dist/src/services/local-dynamo.js +0 -0
- package/dist/src/services/media-processing.js +0 -766
- package/dist/src/services/primitive-media-lambda.js +0 -280
- package/dist/src/services/providers.js +0 -2748
- package/dist/src/services/rate-limits.js +0 -262
- package/dist/src/services/scene-annotations.js +0 -32
- package/dist/src/services/serverless-auth.js +0 -382
- package/dist/src/services/serverless-jobs.js +0 -1084
- package/dist/src/services/serverless-provider-keys.js +0 -409
- package/dist/src/services/serverless-records.js +0 -1515
- package/dist/src/services/serverless-template-configs.js +0 -75
- package/dist/src/services/storage.js +0 -461
- package/dist/src/services/swipe-customize.js +0 -437
- package/dist/src/services/template-certification.js +0 -413
- package/dist/src/services/template-loader.js +0 -99
- package/dist/src/services/template-runtime-bundles.js +0 -217
- package/dist/src/services/template-sources.js +0 -1017
- package/dist/src/services/upstream.js +0 -248
- package/dist/src/services/video-normalization.js +0 -2
- package/dist/src/services/webhooks.js +0 -62
- package/dist/src/template-editor-pages.js +0 -2576
- package/dist/src/template-editor-shell.js +0 -2893
- package/dist/src/template-sdk.js +0 -4
- package/dist/src/worker.js +0 -17
- package/public/assets/discover-client-app.js +0 -1
- package/public/assets/file-directory-app.js +0 -3
- package/public/assets/homepage-app.js +0 -54
- package/public/assets/homepage-client-app.js +0 -80
- package/public/assets/page-runtime-client-app.js +0 -94
- package/public/assets/placeholders/scene-placeholder.png +0 -0
- package/src/assets/SELLING_AWARENESS_STAGES.md +0 -579
- package/src/assets/SELLING_WITH_HOOKS.md +0 -377
- package/src/assets/SELLING_WITH_VSLS.md +0 -606
- package/src/assets/favicon.ico +0 -0
- package/src/assets/logo-vidfarm.png +0 -0
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import "./sentry.js";
|
|
3
|
-
import { useEffect, useMemo, useState } from "react";
|
|
4
|
-
import { createPortal } from "react-dom";
|
|
5
|
-
import { createRoot } from "react-dom/client";
|
|
6
|
-
import * as Sentry from "@sentry/react";
|
|
7
|
-
import { useStore } from "zustand";
|
|
8
|
-
import { debugError, debugLog, installGlobalDebugHooks } from "./debug.js";
|
|
9
|
-
import { createFlockPosterCacheStore, readFlockPosterCacheSnapshot } from "./flockposter-cache-store.js";
|
|
10
|
-
import { createPageRuntimeStore } from "./page-runtime-store.js";
|
|
11
|
-
import { TemplateEditorChat } from "./template-editor-chat.js";
|
|
12
|
-
installGlobalDebugHooks();
|
|
13
|
-
function readBoot() {
|
|
14
|
-
const element = document.getElementById("page-runtime-boot");
|
|
15
|
-
if (!element?.textContent) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return JSON.parse(element.textContent);
|
|
19
|
-
}
|
|
20
|
-
function isoDaysFromNow(days) {
|
|
21
|
-
const date = new Date();
|
|
22
|
-
date.setDate(date.getDate() + days);
|
|
23
|
-
return date.toISOString();
|
|
24
|
-
}
|
|
25
|
-
async function hydrateFlockPosterCacheAtStartup(input) {
|
|
26
|
-
if (!input.userId) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const current = input.store.getState();
|
|
30
|
-
if (!input.force && current.channels.length && current.channelsUpdatedAt) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
const params = new URLSearchParams({
|
|
34
|
-
start_date: isoDaysFromNow(-7),
|
|
35
|
-
end_date: isoDaysFromNow(30)
|
|
36
|
-
});
|
|
37
|
-
const response = await fetch(`/u/${encodeURIComponent(input.userId)}/calendar/feed?${params.toString()}`, {
|
|
38
|
-
headers: { accept: "application/json" }
|
|
39
|
-
});
|
|
40
|
-
const payload = await response.json().catch(() => null);
|
|
41
|
-
if (!response.ok || !payload) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
input.store.getState().setCalendarData({
|
|
45
|
-
channels: Array.isArray(payload.channels) ? payload.channels : [],
|
|
46
|
-
posts: Array.isArray(payload.posts) ? payload.posts : [],
|
|
47
|
-
rangeStart: payload.startDate || isoDaysFromNow(-7),
|
|
48
|
-
rangeEnd: payload.endDate || isoDaysFromNow(30),
|
|
49
|
-
replaceRange: true
|
|
50
|
-
});
|
|
51
|
-
window.dispatchEvent(new CustomEvent("vidfarm:flockposter-cache-updated"));
|
|
52
|
-
}
|
|
53
|
-
function PageRuntimeApp({ boot }) {
|
|
54
|
-
const store = useMemo(() => createPageRuntimeStore(boot), [boot]);
|
|
55
|
-
const title = useStore(store, (state) => state.boot.title);
|
|
56
|
-
const [chatRoot, setChatRoot] = useState(null);
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
store.getState().setHydratedAt(new Date().toISOString());
|
|
59
|
-
document.documentElement.dataset.reactRuntime = "true";
|
|
60
|
-
document.documentElement.dataset.reactRuntimePage = boot.pageKind;
|
|
61
|
-
document.title = title;
|
|
62
|
-
}, [boot.pageKind, store, title]);
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
if (!boot.editorChat) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const nextRoot = document.querySelector("[data-template-editor-chat-root]");
|
|
68
|
-
setChatRoot(nextRoot instanceof HTMLElement ? nextRoot : null);
|
|
69
|
-
}, [boot.editorChat]);
|
|
70
|
-
return boot.editorChat && chatRoot
|
|
71
|
-
? createPortal(_jsx(Sentry.ErrorBoundary, { fallback: _jsx(ChatErrorFallback, {}), children: _jsx(TemplateEditorChat, { boot: boot.editorChat }) }), chatRoot)
|
|
72
|
-
: null;
|
|
73
|
-
}
|
|
74
|
-
function ChatErrorFallback() {
|
|
75
|
-
return (_jsxs("div", { style: {
|
|
76
|
-
display: "grid",
|
|
77
|
-
placeItems: "center",
|
|
78
|
-
height: "100%",
|
|
79
|
-
padding: "24px",
|
|
80
|
-
textAlign: "center",
|
|
81
|
-
gap: "12px",
|
|
82
|
-
color: "#5c6a82"
|
|
83
|
-
}, children: [_jsx("div", { style: { fontSize: "0.72rem", fontWeight: 800, letterSpacing: "0.14em", textTransform: "uppercase" }, children: "Chat error" }), _jsx("div", { style: { fontSize: "0.92rem" }, children: "Something went wrong loading the chat. Reload the page to try again." }), _jsx("button", { type: "button", onClick: () => window.location.reload(), style: {
|
|
84
|
-
marginTop: "4px",
|
|
85
|
-
minHeight: "34px",
|
|
86
|
-
padding: "0 16px",
|
|
87
|
-
border: "1px solid rgba(191, 164, 109, 0.34)",
|
|
88
|
-
borderRadius: "999px",
|
|
89
|
-
background: "rgba(255, 255, 255, 0.92)",
|
|
90
|
-
color: "#243041",
|
|
91
|
-
fontWeight: 700,
|
|
92
|
-
cursor: "pointer"
|
|
93
|
-
}, children: "Reload" })] }));
|
|
94
|
-
}
|
|
95
|
-
const boot = readBoot();
|
|
96
|
-
const rootElement = document.getElementById("page-runtime-root");
|
|
97
|
-
const flockPosterCacheStore = createFlockPosterCacheStore(boot?.userId ?? null);
|
|
98
|
-
let flockPosterHydrationPromise = null;
|
|
99
|
-
function ensureFlockPosterCacheHydrated(options = {}) {
|
|
100
|
-
if (!options.force && flockPosterHydrationPromise) {
|
|
101
|
-
return flockPosterHydrationPromise;
|
|
102
|
-
}
|
|
103
|
-
flockPosterHydrationPromise = hydrateFlockPosterCacheAtStartup({
|
|
104
|
-
userId: boot?.userId ?? null,
|
|
105
|
-
store: flockPosterCacheStore,
|
|
106
|
-
force: options.force
|
|
107
|
-
}).catch(() => { });
|
|
108
|
-
return flockPosterHydrationPromise;
|
|
109
|
-
}
|
|
110
|
-
window.__vidfarmFlockPosterCache = {
|
|
111
|
-
readSnapshot: () => readFlockPosterCacheSnapshot(boot?.userId ?? null),
|
|
112
|
-
ensureHydrated: ensureFlockPosterCacheHydrated,
|
|
113
|
-
setChannelsData: (channels) => {
|
|
114
|
-
flockPosterCacheStore.getState().setChannelsData(channels);
|
|
115
|
-
window.dispatchEvent(new CustomEvent("vidfarm:flockposter-cache-updated"));
|
|
116
|
-
},
|
|
117
|
-
setCalendarData: (input) => {
|
|
118
|
-
flockPosterCacheStore.getState().setCalendarData(input);
|
|
119
|
-
window.dispatchEvent(new CustomEvent("vidfarm:flockposter-cache-updated"));
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
void ensureFlockPosterCacheHydrated();
|
|
123
|
-
debugLog("page_runtime.boot", {
|
|
124
|
-
has_boot: Boolean(boot),
|
|
125
|
-
has_root: Boolean(rootElement),
|
|
126
|
-
page_kind: boot?.pageKind ?? null,
|
|
127
|
-
editor_chat_template_id: boot?.editorChat?.template?.templateId ?? null
|
|
128
|
-
});
|
|
129
|
-
if (boot && rootElement) {
|
|
130
|
-
createRoot(rootElement).render((_jsx(Sentry.ErrorBoundary, { fallback: _jsx(_Fragment, {}), onError: (error) => debugError("page_runtime.render_error", { message: error instanceof Error ? error.message : String(error) }), children: _jsx(PageRuntimeApp, { boot: boot }) })));
|
|
131
|
-
}
|
|
132
|
-
//# sourceMappingURL=page-runtime-client.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createStore } from "zustand/vanilla";
|
|
2
|
-
export function createPageRuntimeStore(boot) {
|
|
3
|
-
return createStore((set) => ({
|
|
4
|
-
boot,
|
|
5
|
-
hydratedAt: null,
|
|
6
|
-
setHydratedAt: (hydratedAt) => set({ hydratedAt })
|
|
7
|
-
}));
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=page-runtime-store.js.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as Sentry from "@sentry/react";
|
|
2
|
-
function readSampleRate(raw, defaultValue) {
|
|
3
|
-
if (raw == null || raw === "")
|
|
4
|
-
return defaultValue;
|
|
5
|
-
const parsed = typeof raw === "number" ? raw : Number(raw);
|
|
6
|
-
return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : defaultValue;
|
|
7
|
-
}
|
|
8
|
-
const options = window.__vidfarmSentry;
|
|
9
|
-
const dsn = options?.dsn?.trim() || "";
|
|
10
|
-
if (dsn) {
|
|
11
|
-
const environment = options?.environment?.trim() || "development";
|
|
12
|
-
const defaultTracesSampleRate = environment === "production" ? 0.1 : 1.0;
|
|
13
|
-
const defaultReplaySessionSampleRate = environment === "production" ? 0.1 : 1.0;
|
|
14
|
-
const sameOriginTargets = [
|
|
15
|
-
"localhost",
|
|
16
|
-
window.location.origin,
|
|
17
|
-
`${window.location.origin}/api`
|
|
18
|
-
];
|
|
19
|
-
const tracePropagationTargets = Array.from(new Set([
|
|
20
|
-
...sameOriginTargets,
|
|
21
|
-
...(options?.tracePropagationTargets ?? [])
|
|
22
|
-
].filter(Boolean)));
|
|
23
|
-
Sentry.init({
|
|
24
|
-
dsn,
|
|
25
|
-
environment,
|
|
26
|
-
release: options?.release?.trim() || undefined,
|
|
27
|
-
integrations: [
|
|
28
|
-
Sentry.browserTracingIntegration(),
|
|
29
|
-
Sentry.replayIntegration({
|
|
30
|
-
maskAllText: true,
|
|
31
|
-
blockAllMedia: true
|
|
32
|
-
})
|
|
33
|
-
],
|
|
34
|
-
tracesSampleRate: readSampleRate(options?.tracesSampleRate, defaultTracesSampleRate),
|
|
35
|
-
tracePropagationTargets,
|
|
36
|
-
replaysSessionSampleRate: readSampleRate(options?.replaysSessionSampleRate, defaultReplaySessionSampleRate),
|
|
37
|
-
replaysOnErrorSampleRate: readSampleRate(options?.replaysOnErrorSampleRate, 1.0),
|
|
38
|
-
enableLogs: options?.enableLogs ?? true,
|
|
39
|
-
sendDefaultPii: options?.sendDefaultPii ?? true
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=sentry.js.map
|