@mux/ai 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,59 +1,132 @@
1
1
  {
2
2
  "name": "@mux/ai",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "AI library for Mux",
5
- "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
14
- }
5
+ "author": "Mux",
6
+ "license": "Apache-2.0",
7
+ "homepage": "https://github.com/muxinc/ai#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/muxinc/ai.git"
15
11
  },
16
- "scripts": {
17
- "build": "tsup",
18
- "dev": "tsup --watch",
19
- "test": "jest",
20
- "lint": "eslint src/**/*.ts",
21
- "typecheck": "tsc --noEmit",
22
- "chapters:basic": "npx ts-node examples/chapters/basic-example.ts",
23
- "burned-in:basic": "npx ts-node examples/burned-in-captions/basic-example.ts"
12
+ "bugs": {
13
+ "url": "https://github.com/muxinc/ai/issues"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "registry": "https://registry.npmjs.org/"
24
18
  },
25
19
  "keywords": [
26
20
  "mux",
21
+ "video",
27
22
  "ai",
23
+ "llm",
24
+ "openai",
25
+ "anthropic",
26
+ "google",
27
+ "gemini",
28
+ "multimodal",
29
+ "video-analysis",
30
+ "summarization",
31
+ "moderation",
32
+ "captions",
33
+ "translation",
34
+ "dubbing",
35
+ "chapters",
36
+ "embeddings",
28
37
  "typescript"
29
38
  ],
30
- "author": "Mux",
31
- "license": "MIT",
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/muxinc/mux-ai.git"
39
+ "exports": {
40
+ ".": {
41
+ "types": {
42
+ "import": "./dist/index.d.mts",
43
+ "require": "./dist/index.d.ts"
44
+ },
45
+ "import": "./dist/index.mjs",
46
+ "require": "./dist/index.js"
47
+ },
48
+ "./primitives": {
49
+ "types": {
50
+ "import": "./dist/primitives/index.d.mts",
51
+ "require": "./dist/primitives/index.d.ts"
52
+ },
53
+ "import": "./dist/primitives/index.mjs",
54
+ "require": "./dist/primitives/index.js"
55
+ },
56
+ "./workflows": {
57
+ "types": {
58
+ "import": "./dist/workflows/index.d.mts",
59
+ "require": "./dist/workflows/index.d.ts"
60
+ },
61
+ "import": "./dist/workflows/index.mjs",
62
+ "require": "./dist/workflows/index.js"
63
+ }
35
64
  },
65
+ "main": "./dist/index.js",
66
+ "module": "./dist/index.mjs",
67
+ "types": "./dist/index.d.ts",
36
68
  "files": [
37
69
  "dist"
38
70
  ],
71
+ "engines": {
72
+ "node": ">=20.0.0"
73
+ },
74
+ "scripts": {
75
+ "build": "tsup",
76
+ "dev": "tsup --watch",
77
+ "test": "vitest run",
78
+ "test:watch": "vitest",
79
+ "test:ui": "vitest --ui",
80
+ "test:integration": "vitest run tests/integration",
81
+ "test:unit": "vitest run tests/unit",
82
+ "test:eval": "evalite serve tests/eval",
83
+ "lint": "eslint .",
84
+ "lint:fix": "eslint . --fix",
85
+ "typecheck": "tsc --noEmit",
86
+ "prepublishOnly": "npm run build && npm run typecheck && npm run lint",
87
+ "example:chapters": "npx ts-node --transpile-only --require tsconfig-paths/register examples/chapters/basic-example.ts",
88
+ "example:chapters:compare": "npx ts-node --transpile-only --require tsconfig-paths/register examples/chapters/provider-comparison.ts",
89
+ "example:burned-in": "npx ts-node --transpile-only --require tsconfig-paths/register examples/burned-in-captions/basic-example.ts",
90
+ "example:burned-in:compare": "npx ts-node --transpile-only --require tsconfig-paths/register examples/burned-in-captions/provider-comparison.ts",
91
+ "example:summarization": "npx ts-node --transpile-only --require tsconfig-paths/register examples/summarization/basic-example.ts",
92
+ "example:summarization:compare": "npx ts-node --transpile-only --require tsconfig-paths/register examples/summarization/provider-comparison.ts",
93
+ "example:signed-playback": "npx ts-node --transpile-only --require tsconfig-paths/register examples/signed-playback/signed-playback.ts",
94
+ "example:signed-playback:summarization": "npx ts-node --transpile-only --require tsconfig-paths/register examples/signed-playback/signed-summarization.ts",
95
+ "example:moderation": "npx ts-node --transpile-only --require tsconfig-paths/register examples/moderation/basic-example.ts",
96
+ "example:moderation:compare": "npx ts-node --transpile-only --require tsconfig-paths/register examples/moderation/provider-comparison.ts",
97
+ "example:embeddings": "npx ts-node --transpile-only --require tsconfig-paths/register examples/embeddings/basic-example.ts",
98
+ "example:translate-captions": "npx ts-node --transpile-only --require tsconfig-paths/register examples/translate-captions/basic-example.ts",
99
+ "example:translate-audio": "npx ts-node --transpile-only --require tsconfig-paths/register examples/translate-audio/basic-example.ts",
100
+ "prepare": "husky"
101
+ },
39
102
  "dependencies": {
40
- "@anthropic-ai/sdk": "^0.28.0",
103
+ "@ai-sdk/anthropic": "^2.0.45",
104
+ "@ai-sdk/google": "^2.0.40",
105
+ "@ai-sdk/openai": "^2.0.71",
41
106
  "@aws-sdk/client-s3": "^3.0.0",
42
107
  "@aws-sdk/lib-storage": "^3.0.0",
43
108
  "@aws-sdk/s3-request-presigner": "^3.0.0",
44
109
  "@mux/mux-node": "^12.5.0",
110
+ "ai": "^5.0.98",
45
111
  "dotenv": "^17.2.2",
46
- "openai": "^5.13.1",
112
+ "dotenv-expand": "^12.0.3",
47
113
  "p-retry": "^7.0.0",
48
114
  "zod": "^3.25.76"
49
115
  },
50
116
  "devDependencies": {
117
+ "@antfu/eslint-config": "^6.2.0",
51
118
  "@types/node": "^20.0.0",
52
- "@typescript-eslint/eslint-plugin": "^6.0.0",
53
- "@typescript-eslint/parser": "^6.0.0",
54
- "eslint": "^8.0.0",
119
+ "@vitest/ui": "^4.0.13",
120
+ "commander": "^14.0.2",
121
+ "eslint": "^9.39.1",
122
+ "eslint-plugin-format": "^1.0.2",
123
+ "evalite": "1.0.0-beta.2",
124
+ "husky": "^9.1.7",
55
125
  "jest": "^29.0.0",
126
+ "ts-node": "^10.9.2",
127
+ "tsconfig-paths": "^4.2.0",
56
128
  "tsup": "^8.5.0",
57
- "typescript": "^5.0.0"
129
+ "typescript": "^5.0.0",
130
+ "vitest": "^4.0.13"
58
131
  }
59
132
  }