vivid-editor-core 0.1.0

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.
@@ -0,0 +1,11 @@
1
+ export function isV1Project(p) {
2
+ if (typeof p !== 'object' || p === null)
3
+ return false;
4
+ const schemaVersion = p.schemaVersion;
5
+ return typeof schemaVersion !== 'number' || schemaVersion < 2;
6
+ }
7
+ export function isV2Project(p) {
8
+ if (typeof p !== 'object' || p === null)
9
+ return false;
10
+ return p.schemaVersion === 2;
11
+ }
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "vivid-editor-core",
3
+ "version": "0.1.0",
4
+ "description": "VIVID video editor core: project file schema, editor store and AI command orchestrator — shared by the vividai.tv editor and vivid-mcp.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" } },
9
+ "files": ["dist", "README.md"],
10
+ "engines": { "node": ">=20" },
11
+ "scripts": {
12
+ "build": "rm -rf dist && tsc -p tsconfig.json",
13
+ "test": "vitest run --root . --config ./vitest.config.ts",
14
+ "prepublishOnly": "npm run build"
15
+ },
16
+ "peerDependencies": { "zod": ">=3.23", "zustand": ">=4.5" },
17
+ "repository": { "type": "git", "url": "https://github.com/loopotv/vivid-app.git", "directory": "packages/editor-core" },
18
+ "license": "MIT"
19
+ }