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.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix(credentials): declare the platform Store in the distribution manifest
Mikee Ai917da83b7226
diff --git a/package.json b/package.jsonindex 8488c370..0f543c1d 100644--- a/package.json+++ b/package.json@@ -205,6 +205,7 @@"@hypit/credential-store-env": "workspace:*","@hypit/credential-store-file": "workspace:*","@hypit/credential-store-os": "workspace:*",+ "@hypit/credential-store-platform": "workspace:*","@hypit/deck-track": "workspace:*","@hypit/deck-track-studio": "workspace:*","@hypit/elevenlabs-speech": "workspace:*",diff --git a/packages/credential-store-platform/src/index.ts b/packages/credential-store-platform/src/index.tsindex aac0559f..eb9028e5 100644--- a/packages/credential-store-platform/src/index.ts+++ b/packages/credential-store-platform/src/index.ts@@ -1,2 +1 @@export { PlatformCredentialStore } from "./store.js";-export type { PlatformCredentialStoreOptions } from "./store.js";diff --git a/packages/credential-store-platform/src/store.ts b/packages/credential-store-platform/src/store.tsindex 9e413bde..3963b216 100644--- a/packages/credential-store-platform/src/store.ts+++ b/packages/credential-store-platform/src/store.ts@@ -60,11 +60,6 @@ export class PlatformCredentialStore implements WritableCredentialStore {}}- /** The Store this one delegates to here: the platform locker, or the file Store where there is none. */- get backing(): "os" | "file" {- return this.#backing;- }-owns(ref: CredentialRef): boolean {return ref.store === "platform";}diff --git a/packages/credential-store-platform/test/store.test.ts b/packages/credential-store-platform/test/store.test.tsindex 255dc182..60d8cb20 100644--- a/packages/credential-store-platform/test/store.test.ts+++ b/packages/credential-store-platform/test/store.test.ts@@ -6,7 +6,7 @@ import test from "node:test";import { credentialRef } from "@hypit/runtime";import { FileCredentialStore } from "@hypit/credential-store-file";import { OsCredentialStore } from "@hypit/credential-store-os";-import { PlatformCredentialStore } from "../src/store.js";+import { PlatformCredentialStore } from "@hypit/credential-store-platform";/** A locker that keeps entries in memory, so a platform's locker is exercised without touching one. */function memoryLocker(entries: Readonly<Record<string, string>> = {}) {@@ -29,7 +29,6 @@ test("a platform with a locker stores there and never creates a file", async ()const directory = join(root, "credentials");const locker = memoryLocker();const store = new PlatformCredentialStore({ directory, platform: "darwin", locker });- assert.equal(store.backing, "os");const ref = credentialRef("platform", "hypihub.oauth");assert.equal(await store.resolve(ref), undefined);await store.put(ref, { secret: "locker-secret" });@@ -44,10 +43,13 @@ test("a platform with a locker stores there and never creates a file", async ()test("Windows selects the locker as well", async () => {const root = await scratch("hypit-platform-credentials-");try {+ const locker = memoryLocker();const store = new PlatformCredentialStore({- directory: join(root, "credentials"), platform: "win32", locker: memoryLocker(),+ directory: join(root, "credentials"), platform: "win32", locker,});- assert.equal(store.backing, "os");+ await store.put(credentialRef("platform", "hypihub.oauth"), { secret: "locker-secret" });+ assert.equal(locker.entries.get("hypihub.oauth"), "locker-secret");+ assert.deepEqual(await readdir(root), [], "the file fallback stays untouched where a locker exists");} finally { await rm(root, { recursive: true, force: true }); }});@@ -56,7 +58,6 @@ test("a platform without a locker stores owner-private documents in the file Stotry {const directory = join(root, "credentials");const store = new PlatformCredentialStore({ directory, platform: "linux" });- assert.equal(store.backing, "file");const ref = credentialRef("platform", "hypihub.oauth");await store.put(ref, { secret: "file-secret", expiresAt: 42 });assert.deepEqual(await store.resolve(ref), { secret: "file-secret", expiresAt: 42 });diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6d313caf..847dd3c2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -93,6 +93,9 @@ importers:'@hypit/credential-store-os':specifier: workspace:*version: link:packages/credential-store-os+ '@hypit/credential-store-platform':+ specifier: workspace:*+ version: link:packages/credential-store-platform'@hypit/deck-track':specifier: workspace:*version: link:packages/deck-track