> ISPO SDK documentation. [HTML](https://ispo.ai/docs/variables/core.chromeAuthor.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Variable chromeAuthor`Const`

```typescript
chromeAuthor: {
    activateTheme(themeId: string): Promise<void>;
    commit(
        paths: string[],
        message?: string,
    ): Promise<{ committed: string[]; sha: string }>;
    list(): Promise<ChromeAuthorViewFile[]>;
    read(path: string): Promise<string>;
    status(): Promise<string[]>;
    typecheck(): Promise<{ ok: boolean; output: string }>;
    write(path: string, content: string, build?: boolean): Promise<void>;
} = ...
```

Types: [ChromeAuthorViewFile](../interfaces/core.ChromeAuthorViewFile.md)

#### Type Declaration

*   ##### <a id="activatetheme"></a>activateTheme: function
    
    *   <a id="activatetheme-1"></a>
        
        ```typescript
        activateTheme(themeId: string): Promise<void>
        ```
        
        Activate a saved theme (or the builtin `ispo`) as the HOST appearance — the same `setThemeId` path Settings → Appearance uses, broadcast to chrome and every project iframe. The host validates the id against the saved-theme list. The active id arrives back via the `ispo:theme` event (`detail.themeId`).
        
        #### Parameters
        
        *   themeId: string
        
        #### Returns Promise<void\>
        
*   ##### <a id="commit"></a>commit: function
    
    *   <a id="commit-1"></a>
        
        ```typescript
        commit(
            paths: string[],
            message?: string,
        ): Promise<{ committed: string[]; sha: string }>
        ```
        
        Typecheck (hard gate), then commit ONLY the given allowlisted view paths (scoped `--only`, so unrelated working-tree changes are never swept in). Returns the short sha + the committed pathspecs.
        
        #### Parameters
        
        *   paths: string\[\]
        *   `Optional`message: string
        
        #### Returns Promise<{ committed: string\[\]; sha: string }\>
        
*   ##### <a id="list"></a>list: function
    
    *   <a id="list-1"></a>
        
        ```typescript
        list(): Promise<ChromeAuthorViewFile[]>
        ```
        
        Types: [ChromeAuthorViewFile](../interfaces/core.ChromeAuthorViewFile.md)
        
        List the editable view files (`.tsx` under modals/ and kit/).
        
        #### Returns Promise<[ChromeAuthorViewFile](../interfaces/core.ChromeAuthorViewFile.md)\[\]\>
        
*   ##### <a id="read"></a>read: function
    
    *   <a id="read-1"></a>
        
        ```typescript
        read(path: string): Promise<string>
        ```
        
        Read a view's current source.
        
        #### Parameters
        
        *   path: string
        
        #### Returns Promise<string\>
        
*   ##### <a id="status"></a>status: function
    
    *   <a id="status-1"></a>
        
        ```typescript
        status(): Promise<string[]>
        ```
        
        Changed (working-tree) view paths, repo-root-relative.
        
        #### Returns Promise<string\[\]\>
        
*   ##### <a id="typecheck"></a>typecheck: function
    
    *   <a id="typecheck-1"></a>
        
        ```typescript
        typecheck(): Promise<{ ok: boolean; output: string }>
        ```
        
        Typecheck the @ispo/chrome package. `ok:false` carries the tsc output.
        
        #### Returns Promise<{ ok: boolean; output: string }\>
        
*   ##### <a id="write"></a>write: function
    
    *   <a id="write-1"></a>
        
        ```typescript
        write(path: string, content: string, build?: boolean): Promise<void>
        ```
        
        Write the edited source to the working tree and fan a demand-build of the themes iframe (so the sandbox can render the REAL rebuilt view). Does NOT commit — call `commit` for that. The change reaches real host chrome on the next host restart.
        
        #### Parameters
        
        *   path: string
        *   content: string
        *   build: boolean = false
        
        #### Returns Promise<void\>
