mulmocast-preprocessor 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,42 @@
1
+ import { z } from "zod";
2
+ import { mulmoBeatSchema, mulmoScriptSchema, mulmoImageAssetSchema } from "mulmocast";
3
+ /**
4
+ * Beat Variant - profile-specific content overrides
5
+ */
6
+ export const beatVariantSchema = z.object({
7
+ text: z.string().optional(),
8
+ skip: z.boolean().optional(),
9
+ image: mulmoImageAssetSchema.optional(),
10
+ imagePrompt: z.string().optional(),
11
+ });
12
+ /**
13
+ * Beat Meta - metadata for filtering and context
14
+ */
15
+ export const beatMetaSchema = z.object({
16
+ tags: z.array(z.string()).optional(),
17
+ section: z.string().optional(),
18
+ context: z.string().optional(),
19
+ keywords: z.array(z.string()).optional(),
20
+ expectedQuestions: z.array(z.string()).optional(),
21
+ });
22
+ /**
23
+ * Extended Beat - beat with variants and meta fields
24
+ */
25
+ export const extendedBeatSchema = mulmoBeatSchema.extend({
26
+ variants: z.record(z.string(), beatVariantSchema).optional(),
27
+ meta: beatMetaSchema.optional(),
28
+ });
29
+ /**
30
+ * Output Profile - profile display information
31
+ */
32
+ export const outputProfileSchema = z.object({
33
+ name: z.string(),
34
+ description: z.string().optional(),
35
+ });
36
+ /**
37
+ * Extended Script - script with variants, meta, and outputProfiles
38
+ */
39
+ export const extendedScriptSchema = mulmoScriptSchema.extend({
40
+ beats: z.array(extendedBeatSchema),
41
+ outputProfiles: z.record(z.string(), outputProfileSchema).optional(),
42
+ });
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "mulmocast-preprocessor",
3
+ "version": "0.1.0",
4
+ "description": "Preprocessor for MulmoScript",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "bin": {
9
+ "mulmocast-preprocessor": "./lib/cli/index.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./lib/index.d.ts",
14
+ "default": "./lib/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "./lib"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "lint": "eslint src",
23
+ "format": "prettier --write 'src/**/*.ts'",
24
+ "test": "node --import tsx --test test/*.ts"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/receptron/mulmocast-plus.git"
29
+ },
30
+ "author": "receptron",
31
+ "license": "MIT",
32
+ "bugs": {
33
+ "url": "https://github.com/receptron/mulmocast-plus/issues"
34
+ },
35
+ "homepage": "https://github.com/receptron/mulmocast-plus#readme",
36
+ "dependencies": {
37
+ "graphai": "^2.0.16",
38
+ "mulmocast": "^2.1.35",
39
+ "yargs": "^18.0.0",
40
+ "zod": "^4.3.6"
41
+ },
42
+ "devDependencies": {
43
+ "@types/yargs": "^17.0.35"
44
+ }
45
+ }