# sergiokapone/tssworkflow architecture

> Architecture diagram of the GitHub repository sergiokapone/tssworkflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sergiokapone/tssworkflow
- Repository: https://github.com/sergiokapone/tssworkflow

## Overview

TSS Workflow is a VS Code extension for authoring and maintaining large LaTeX projects. The principal workflow starts with a user invoking an extension command, then routes through registered features to operations such as compiling a chapter or document and inspecting the resulting build log. Separate branches support project navigation and labels, macro discovery, editing and formatting, previews, and project-wide refactoring. The graph uses README descriptions and SOURCE INDEX references; unsampled implementation details and their internal call paths are not inferred.

Main entry points: [`extension.js`](https://github.com/sergiokapone/tssworkflow/blob/main/extension.js) (Extension activation), [`corePure.js`](https://github.com/sergiokapone/tssworkflow/blob/main/corePure.js) (Shared text logic), [`features.js`](https://github.com/sergiokapone/tssworkflow/blob/main/features.js) (Feature commands), [`authoring.js`](https://github.com/sergiokapone/tssworkflow/blob/main/authoring.js) (Authoring commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Extension entry"]
  node_extension["Extension activation<br/>[extension.js]"]
  node_feature_commands["Feature commands<br/>[features.js]"]
end

subgraph group_build["Build and diagnostics"]
  node_build_runner["Build runner<br/>[build.js]"]
  node_build_log["Build log problems<br/>[buildLog.js]"]
  node_tex_tools["LaTeX toolchain"]
end

subgraph group_project["Project navigation"]
  node_chapters["Chapter panel<br/>[chapters.js]"]
  node_files_labels["Files and labels<br/>[filesAndLabels.js]"]
  node_macro_navigation["Macro navigation<br/>[macros.js]"]
  node_project_info["Project information<br/>[projectInfo.js]"]
  node_refactoring["Project refactoring<br/>[projectRefactor.js]"]
end

subgraph group_editing["Authoring and editing"]
  node_authoring["Authoring commands<br/>[authoring.js]"]
  node_text_formatting["Text formatting<br/>[formatters.js]"]
  node_table_editor["Table editor<br/>[tableEditor.js]"]
  node_selection_preview["Selection preview"]
  node_templates["Document templates<br/>[templates.js]"]
end

subgraph group_support["Project support"]
  node_environment["Environment checks<br/>[environment.js]"]
  node_sidebar["Activity Bar panels<br/>[sidebar.js]"]
  node_shared_logic["Shared text logic<br/>[corePure.js]"]
end

node_user(("LaTeX author"))
node_vscode["VS Code"]

node_user -->|"invokes commands"| node_vscode
node_vscode -->|"activates"| node_extension
node_extension -->|"registers features"| node_feature_commands
node_extension -->|"registers"| node_authoring
node_extension -->|"registers"| node_templates
node_extension -->|"registers"| node_chapters
node_extension -->|"registers"| node_environment
node_extension -->|"registers"| node_refactoring
node_extension -->|"registers"| node_text_formatting
node_extension -->|"registers"| node_table_editor
node_extension -->|"registers"| node_sidebar
node_feature_commands -->|"imports feature"| node_build_log
node_feature_commands -->|"imports feature"| node_files_labels
node_feature_commands -->|"imports feature"| node_macro_navigation
node_feature_commands -->|"imports feature"| node_selection_preview
node_user -->|"requests build"| node_build_runner
node_build_runner -->|"compiles with"| node_tex_tools
node_build_runner -->|"reports problems"| node_build_log
node_user -->|"navigates chapters"| node_chapters
node_user -->|"navigates files"| node_files_labels
node_user -->|"goes to macros"| node_macro_navigation
node_user -->|"inspects project"| node_project_info
node_user -->|"refactors project"| node_refactoring
node_user -->|"runs authoring tools"| node_authoring
node_user -->|"formats text"| node_text_formatting
node_user -->|"edits tables"| node_table_editor
node_user -->|"previews selection"| node_selection_preview
node_user -->|"creates from templates"| node_templates
node_user -->|"checks environment"| node_environment
node_authoring -->|"uses templates"| node_templates
node_authoring -->|"uses text helpers"| node_shared_logic
node_chapters -->|"uses text helpers"| node_shared_logic
node_files_labels -->|"uses text helpers"| node_shared_logic
node_text_formatting -->|"uses text helpers"| node_shared_logic
node_table_editor -->|"uses text helpers"| node_shared_logic
node_selection_preview -->|"uses text helpers"| node_shared_logic
node_environment -->|"checks project files"| node_files_labels
node_project_info -->|"uses text helpers"| node_shared_logic
node_refactoring -->|"uses text helpers"| node_shared_logic

click node_extension "https://github.com/sergiokapone/tssworkflow/blob/main/extension.js"
click node_feature_commands "https://github.com/sergiokapone/tssworkflow/blob/main/features.js"
click node_build_runner "https://github.com/sergiokapone/tssworkflow/blob/main/build.js"
click node_build_log "https://github.com/sergiokapone/tssworkflow/blob/main/buildLog.js"
click node_chapters "https://github.com/sergiokapone/tssworkflow/blob/main/chapters.js"
click node_files_labels "https://github.com/sergiokapone/tssworkflow/blob/main/filesAndLabels.js"
click node_macro_navigation "https://github.com/sergiokapone/tssworkflow/blob/main/macros.js"
click node_project_info "https://github.com/sergiokapone/tssworkflow/blob/main/projectInfo.js"
click node_refactoring "https://github.com/sergiokapone/tssworkflow/blob/main/projectRefactor.js"
click node_authoring "https://github.com/sergiokapone/tssworkflow/blob/main/authoring.js"
click node_text_formatting "https://github.com/sergiokapone/tssworkflow/blob/main/formatters.js"
click node_table_editor "https://github.com/sergiokapone/tssworkflow/blob/main/tableEditor.js"
click node_selection_preview "https://github.com/sergiokapone/tssworkflow/blob/main/selectionPreview.js"
click node_templates "https://github.com/sergiokapone/tssworkflow/blob/main/templates.js"
click node_environment "https://github.com/sergiokapone/tssworkflow/blob/main/environment.js"
click node_sidebar "https://github.com/sergiokapone/tssworkflow/blob/main/sidebar.js"
click node_shared_logic "https://github.com/sergiokapone/tssworkflow/blob/main/corePure.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_extension,node_feature_commands toneBlue
class node_build_runner,node_build_log,node_tex_tools toneAmber
class node_chapters,node_files_labels,node_macro_navigation,node_project_info,node_refactoring toneMint
class node_authoring,node_text_formatting,node_table_editor,node_selection_preview,node_templates toneRose
class node_environment,node_sidebar,node_shared_logic,node_user,node_vscode toneIndigo
```

## Components

### Extension entry

- [Extension activation](https://github.com/sergiokapone/tssworkflow/blob/main/extension.js): `extension.js`
- [Feature commands](https://github.com/sergiokapone/tssworkflow/blob/main/features.js): `features.js`

### Build and diagnostics

- [Build runner](https://github.com/sergiokapone/tssworkflow/blob/main/build.js): `build.js`
- [Build log problems](https://github.com/sergiokapone/tssworkflow/blob/main/buildLog.js): `buildLog.js`
- **LaTeX toolchain**

### Project navigation

- [Chapter panel](https://github.com/sergiokapone/tssworkflow/blob/main/chapters.js): `chapters.js`
- [Files and labels](https://github.com/sergiokapone/tssworkflow/blob/main/filesAndLabels.js): `filesAndLabels.js`
- [Macro navigation](https://github.com/sergiokapone/tssworkflow/blob/main/macros.js): `macros.js`
- [Project information](https://github.com/sergiokapone/tssworkflow/blob/main/projectInfo.js): `projectInfo.js`
- [Project refactoring](https://github.com/sergiokapone/tssworkflow/blob/main/projectRefactor.js): `projectRefactor.js`

### Authoring and editing

- [Authoring commands](https://github.com/sergiokapone/tssworkflow/blob/main/authoring.js): `authoring.js`
- [Text formatting](https://github.com/sergiokapone/tssworkflow/blob/main/formatters.js): `formatters.js`
- [Table editor](https://github.com/sergiokapone/tssworkflow/blob/main/tableEditor.js): `tableEditor.js`
- [Selection preview](https://github.com/sergiokapone/tssworkflow/blob/main/selectionPreview.js): `selectionPreview.js`
- [Document templates](https://github.com/sergiokapone/tssworkflow/blob/main/templates.js): `templates.js`

### Project support

- [Environment checks](https://github.com/sergiokapone/tssworkflow/blob/main/environment.js): `environment.js`
- [Activity Bar panels](https://github.com/sergiokapone/tssworkflow/blob/main/sidebar.js): `sidebar.js`
- [Shared text logic](https://github.com/sergiokapone/tssworkflow/blob/main/corePure.js): `corePure.js`

### Other components

- **LaTeX author**
- **VS Code**

## Connections

- LaTeX author → VS Code: invokes commands
- VS Code → Extension activation: activates
- Extension activation → Feature commands: registers features (evidence: `extension.js`)
- Extension activation → Authoring commands: registers (evidence: `extension.js`)
- Extension activation → Document templates: registers (evidence: `extension.js`)
- Extension activation → Chapter panel: registers (evidence: `extension.js`)
- Extension activation → Environment checks: registers (evidence: `extension.js`)
- Extension activation → Project refactoring: registers (evidence: `extension.js`)
- Extension activation → Text formatting: registers (evidence: `extension.js`)
- Extension activation → Table editor: registers (evidence: `extension.js`)
- Extension activation → Activity Bar panels: registers (evidence: `extension.js`)
- Feature commands → Build log problems: imports feature (evidence: `features.js`)
- Feature commands → Files and labels: imports feature (evidence: `features.js`)
- Feature commands → Macro navigation: imports feature (evidence: `features.js`)
- Feature commands → Selection preview: imports feature (evidence: `features.js`)
- LaTeX author → Build runner: requests build
- Build runner → LaTeX toolchain: compiles with
- Build runner → Build log problems: reports problems
- LaTeX author → Chapter panel: navigates chapters
- LaTeX author → Files and labels: navigates files
- LaTeX author → Macro navigation: goes to macros
- LaTeX author → Project information: inspects project
- LaTeX author → Project refactoring: refactors project
- LaTeX author → Authoring commands: runs authoring tools
- LaTeX author → Text formatting: formats text
- LaTeX author → Table editor: edits tables
- LaTeX author → Selection preview: previews selection
- LaTeX author → Document templates: creates from templates
- LaTeX author → Environment checks: checks environment
- Authoring commands → Document templates: uses templates (evidence: `authoring.js`)
- Authoring commands → Shared text logic: uses text helpers (evidence: `authoring.js`)
- Chapter panel → Shared text logic: uses text helpers (evidence: `chapters.js`)
- Files and labels → Shared text logic: uses text helpers (evidence: `filesAndLabels.js`)
- Text formatting → Shared text logic: uses text helpers (evidence: `formatters.js`)
- Table editor → Shared text logic: uses text helpers (evidence: `tableEditor.js`)
- Selection preview → Shared text logic: uses text helpers (evidence: `selectionPreview.js`)
- Environment checks → Files and labels: checks project files (evidence: `environment.js`)
- Project information → Shared text logic: uses text helpers (evidence: `projectInfo.js`)
- Project refactoring → Shared text logic: uses text helpers (evidence: `projectRefactor.js`)
