@mengine/medeo-tool 1.0.1-alpha.2 → 1.2.1-alpha.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JournalEntry, MengineDocSession, PartIdFactory, SemanticOpName, VideoDocument, VideoDraft, fromVideoDocument } from "@mengine/medeo-client";
2
- import { AddSpeechesInput, AddVideoClipsInput, AdjustBgmVolumeInput, AdjustSpeechVolumeInput, AdjustVideoClipDurationInput, AdjustVideoClipVolumeInput, ChangeSpeechScriptInput, ChangeSpeechVoiceInput, DeleteBgmInput, DeleteSpeechesInput, DeleteVideoClipsInput, MoveSpeechesInput, MoveVideoClipsInput, ReplaceVideoClipContentInput, SetBgmInput, SetCaptionStyleInput, SetCaptionVisibilityInput, SetVideoClipSpeedShiftInput } from "@mengine/medeo-client/schemas";
2
+ import { AddSpeechesInput, AddVideoClipsInput, AdjustBgmVolumeInput, AdjustSpeechVolumeInput, AdjustVideoClipDurationInput, AdjustVideoClipVolumeInput, ChangeSpeechScriptInput, ChangeSpeechVoiceInput, DeleteBgmInput, DeleteSpeechesInput, DeleteVideoClipsInput, MoveSpeechesInput, MoveVideoClipsByAnchorInput, MoveVideoClipsInput, ReplaceVideoClipContentInput, ReplaceVideoClipSequenceInput, SetBgmInput, SetCaptionStyleInput, SetCaptionVisibilityInput, SetVideoClipSpeedShiftInput } from "@mengine/medeo-client/schemas";
3
3
 
4
4
  //#region src/document/compact-projection.d.ts
5
5
  /**
@@ -123,8 +123,10 @@ interface EditFacade {
123
123
  deleteSpeeches: (input: DeleteSpeechesInput) => Promise<void>;
124
124
  deleteVideoClips: (input: DeleteVideoClipsInput) => Promise<void>;
125
125
  moveSpeeches: (input: MoveSpeechesInput) => Promise<void>;
126
+ moveVideoClipsByAnchor: (input: MoveVideoClipsByAnchorInput) => Promise<void>;
126
127
  moveVideoClips: (input: MoveVideoClipsInput) => Promise<void>;
127
128
  replaceVideoClipContent: (input: ReplaceVideoClipContentInput) => Promise<void>;
129
+ replaceVideoClipSequence: (input: ReplaceVideoClipSequenceInput) => Promise<void>;
128
130
  setBgm: (input: SetBgmInput) => Promise<void>;
129
131
  setCaptionStyle: (input: SetCaptionStyleInput) => Promise<void>;
130
132
  setCaptionVisibility: (input: SetCaptionVisibilityInput) => Promise<void>;
@@ -381,6 +383,20 @@ interface CreateMedeoToolOptions {
381
383
  };
382
384
  /** Maximum cached plans; oldest plans are evicted (default 16). */
383
385
  maxPlans?: number;
386
+ /** Maximum model-call version baselines retained across host contexts (default 128). */
387
+ maxModelContexts?: number;
388
+ }
389
+ interface MedeoModelContextInput {
390
+ /** Internal MEngine document id. This is host-supplied and never model-facing. */
391
+ doc_id: string;
392
+ /** Stable host conversation/session key used to compare consecutive model calls. */
393
+ context_id: string;
394
+ }
395
+ interface MedeoModelContext {
396
+ /** Complete MEngine-owned prompt: workflow, runtime state, and sandbox TypeScript interface. */
397
+ prompt: string;
398
+ document_version: string;
399
+ updated_since_previous_model_call: boolean | null;
384
400
  }
385
401
  type MedeoToolInput = {
386
402
  op: 'snapshot';
@@ -448,6 +464,7 @@ interface MedeoTool {
448
464
  name: typeof MEDEO_TOOL_NAME;
449
465
  description: typeof MEDEO_TOOL_DESCRIPTION;
450
466
  parameters: typeof MEDEO_TOOL_PARAMETERS;
467
+ getModelContext(input: MedeoModelContextInput): Promise<MedeoModelContext>;
451
468
  handle(input: unknown): Promise<MedeoToolResult>;
452
469
  close(): Promise<void>;
453
470
  }
@@ -462,5 +479,5 @@ type MedeoInitialDraft = VideoDraft;
462
479
  */
463
480
  declare function createMedeoTool(options: CreateMedeoToolOptions): MedeoTool;
464
481
  //#endregion
465
- export { type ChangePlan, type CommitPlan, type CommitPlanOptions, type CommitPlanResult, type CompactProjectionOptions, type ConsoleShim, type CreateMedeoToolOptions, type EditFacade, EditSandboxSession, type EditSandboxSessionOptions, type EditScriptResult, MEDEO_TOOL_DESCRIPTION, MEDEO_TOOL_NAME, MEDEO_TOOL_PARAMETERS, type MedeoInitialDraft, type MedeoTool, type MedeoToolInput, type MedeoToolOp, type MedeoToolResult, type RunEditScriptOptions, type SandboxCheckpoint, type TimelineClipDescriptor, type TimelineFacade, type TimelinePartDescriptor, collectAffectedPartIds, commitPlan, createMedeoTool, renderCompactProjection, renderPreview, runEditScript };
482
+ export { type ChangePlan, type CommitPlan, type CommitPlanOptions, type CommitPlanResult, type CompactProjectionOptions, type ConsoleShim, type CreateMedeoToolOptions, type EditFacade, EditSandboxSession, type EditSandboxSessionOptions, type EditScriptResult, MEDEO_TOOL_DESCRIPTION, MEDEO_TOOL_NAME, MEDEO_TOOL_PARAMETERS, type MedeoInitialDraft, type MedeoModelContext, type MedeoModelContextInput, type MedeoTool, type MedeoToolInput, type MedeoToolOp, type MedeoToolResult, type RunEditScriptOptions, type SandboxCheckpoint, type TimelineClipDescriptor, type TimelineFacade, type TimelinePartDescriptor, collectAffectedPartIds, commitPlan, createMedeoTool, renderCompactProjection, renderPreview, runEditScript };
466
483
  //# sourceMappingURL=index.d.mts.map