mulmocast-preprocessor 0.3.0 → 0.4.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.
@@ -1,4 +1,4 @@
1
- import type { ExtendedScript } from "../types/index.js";
1
+ import type { ExtendedScript } from "@mulmocast/extended-types";
2
2
  /**
3
3
  * Check if input is a URL
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ExtendedScript } from "../../../../types/index.js";
1
+ import type { ExtendedScript } from "@mulmocast/extended-types";
2
2
  import type { QueryOptions, QueryResult } from "../../../../types/query.js";
3
3
  /**
4
4
  * Main query function - answers a question based on script content
@@ -1,4 +1,4 @@
1
- import type { ExtendedScript, Reference } from "../../../../types/index.js";
1
+ import type { ExtendedScript, Reference } from "@mulmocast/extended-types";
2
2
  import type { QueryOptions, InteractiveQuerySession, ConversationMessage } from "../../../../types/query.js";
3
3
  import { type FetchedContent } from "../../utils/fetcher.js";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import type { QueryOptions, ConversationMessage } from "../../../../types/query.js";
2
- import type { ExtendedScript } from "../../../../types/index.js";
2
+ import type { ExtendedScript } from "@mulmocast/extended-types";
3
3
  /**
4
4
  * Default system prompt for query
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { ExtendedScript } from "../../../../types/index.js";
1
+ import type { ExtendedScript } from "@mulmocast/extended-types";
2
2
  import type { SummarizeOptions, SummarizeResult } from "../../../../types/summarize.js";
3
3
  /**
4
4
  * Main summarize function - generates a summary of the entire script
@@ -1,5 +1,5 @@
1
1
  import type { SummarizeOptions } from "../../../../types/summarize.js";
2
- import type { ExtendedScript } from "../../../../types/index.js";
2
+ import type { ExtendedScript } from "@mulmocast/extended-types";
3
3
  /**
4
4
  * Default system prompt for text summary
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { ExtendedScript } from "../../types/index.js";
1
+ import type { ExtendedScript } from "@mulmocast/extended-types";
2
2
  import type { LLMProvider } from "../../types/summarize.js";
3
3
  /**
4
4
  * Base options for LLM operations
@@ -1,5 +1,5 @@
1
- import type { MulmoScript } from "mulmocast";
2
- import type { ExtendedScript } from "../../types/index.js";
1
+ import type { MulmoScript } from "@mulmocast/types";
2
+ import type { ExtendedScript } from "@mulmocast/extended-types";
3
3
  /**
4
4
  * Filter beats by section (preserves meta for chaining)
5
5
  */
@@ -1,5 +1,6 @@
1
- import type { MulmoScript } from "mulmocast";
2
- import type { ExtendedScript, ProcessOptions } from "../../types/index.js";
1
+ import type { MulmoScript } from "@mulmocast/types";
2
+ import type { ExtendedScript } from "@mulmocast/extended-types";
3
+ import type { ProcessOptions } from "../../types/index.js";
3
4
  /**
4
5
  * Main processing function
5
6
  * Applies filters first (while meta exists), then profile
@@ -1,4 +1,5 @@
1
- import type { ExtendedScript, ProfileInfo } from "../../types/index.js";
1
+ import type { ExtendedScript } from "@mulmocast/extended-types";
2
+ import type { ProfileInfo } from "../../types/index.js";
2
3
  /**
3
4
  * Get list of available profiles from script
4
5
  */
@@ -1,5 +1,5 @@
1
- import type { MulmoScript } from "mulmocast";
2
- import type { ExtendedScript } from "../../types/index.js";
1
+ import type { MulmoScript } from "@mulmocast/types";
2
+ import type { ExtendedScript } from "@mulmocast/extended-types";
3
3
  /**
4
4
  * Apply profile to script and return standard MulmoScript
5
5
  */
package/lib/index.d.ts CHANGED
@@ -7,9 +7,10 @@ export { queryScript } from "./core/ai/command/query/index.js";
7
7
  export { createInteractiveSession, sendInteractiveQuery, sendInteractiveQueryWithFetch, clearHistory, getHistory, getReferences, findReference, fetchReference, parseSuggestedFetch, removeSuggestFetchMarkers, } from "./core/ai/command/query/interactive.js";
8
8
  export { fetchUrlContent } from "./core/ai/utils/fetcher.js";
9
9
  export type { FetchedContent } from "./core/ai/utils/fetcher.js";
10
- export type { BeatVariant, BeatMeta, ExtendedBeat, ExtendedScript, OutputProfile, ProcessOptions, ProfileInfo, Reference, FAQ, ScriptMeta, } from "./types/index.js";
10
+ export type { BeatVariant, BeatMeta, ExtendedBeat, ExtendedScript, OutputProfile, Reference, FAQ, ScriptMeta, MulmoImageAsset, } from "@mulmocast/extended-types";
11
+ export { beatVariantSchema, beatMetaSchema, extendedBeatSchema, extendedScriptSchema, outputProfileSchema, referenceSchema, faqSchema, scriptMetaSchema, } from "@mulmocast/extended-types";
12
+ export type { ProcessOptions, ProfileInfo } from "./types/index.js";
11
13
  export type { SummarizeOptions, SummarizeResult, LLMProvider, SummarizeFormat, ProviderConfig } from "./types/summarize.js";
12
14
  export type { QueryOptions, QueryResult, ConversationMessage, InteractiveQuerySession } from "./types/query.js";
13
- export { beatVariantSchema, beatMetaSchema, extendedBeatSchema, extendedScriptSchema, outputProfileSchema, referenceSchema, faqSchema, scriptMetaSchema, } from "./types/index.js";
14
15
  export { summarizeOptionsSchema, llmProviderSchema, summarizeFormatSchema } from "./types/summarize.js";
15
16
  export { queryOptionsSchema } from "./types/query.js";
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ export { queryScript } from "./core/ai/command/query/index.js";
9
9
  export { createInteractiveSession, sendInteractiveQuery, sendInteractiveQueryWithFetch, clearHistory, getHistory, getReferences, findReference, fetchReference, parseSuggestedFetch, removeSuggestFetchMarkers, } from "./core/ai/command/query/interactive.js";
10
10
  // Utilities
11
11
  export { fetchUrlContent } from "./core/ai/utils/fetcher.js";
12
- // Schemas (for validation)
13
- export { beatVariantSchema, beatMetaSchema, extendedBeatSchema, extendedScriptSchema, outputProfileSchema, referenceSchema, faqSchema, scriptMetaSchema, } from "./types/index.js";
12
+ export { beatVariantSchema, beatMetaSchema, extendedBeatSchema, extendedScriptSchema, outputProfileSchema, referenceSchema, faqSchema, scriptMetaSchema, } from "@mulmocast/extended-types";
13
+ // Schemas (local)
14
14
  export { summarizeOptionsSchema, llmProviderSchema, summarizeFormatSchema } from "./types/summarize.js";
15
15
  export { queryOptionsSchema } from "./types/query.js";