@vibeframe/cli 0.107.1 → 0.108.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,41 @@
1
+ /**
2
+ * @module _shared/scene-submit
3
+ *
4
+ * Host-authored scene submission — the missing half of agent-mode compose
5
+ * for hosts that cannot write files (Claude Desktop and other MCP-only
6
+ * surfaces). `build --mode agent` already returns a `needs-author` plan with
7
+ * per-beat compose prompts; this executor accepts the HTML the host agent
8
+ * authored, validates it with the SAME lint the batch composer uses, and
9
+ * writes `compositions/scene-<id>.html` on pass. On lint errors nothing is
10
+ * written and the findings are returned so the agent can fix and resubmit.
11
+ *
12
+ * Shared by the `vibe scene submit` CLI command and the `scene_submit`
13
+ * MCP/agent tool.
14
+ */
15
+ import { type LintFinding } from "./scene-lint.js";
16
+ export interface SceneSubmitOptions {
17
+ projectDir: string;
18
+ beatId: string;
19
+ /** Scene HTML — a bare `<template>` fragment, optionally ```html-fenced. */
20
+ html: string;
21
+ /** Lint only; never write. */
22
+ validateOnly?: boolean;
23
+ }
24
+ export interface SceneSubmitResult {
25
+ success: boolean;
26
+ beatId: string;
27
+ /** Project-relative path of the scene file. */
28
+ scenePath: string;
29
+ written: boolean;
30
+ /** Lint codes auto-repaired before validation. */
31
+ mechanicalFixes: string[];
32
+ lint: {
33
+ errorCount: number;
34
+ warningCount: number;
35
+ findings: LintFinding[];
36
+ };
37
+ warnings: string[];
38
+ retryWith: string[];
39
+ error?: string;
40
+ }
41
+ export declare function executeSceneSubmit(opts: SceneSubmitOptions): Promise<SceneSubmitResult>;
@@ -0,0 +1 @@
1
+ export {};