stego-cli 0.1.4 → 0.1.6
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/.gitignore +1 -0
- package/LICENSE +55 -0
- package/README.md +39 -189
- package/dist/stego-cli.js +13 -15
- package/package.json +11 -2
- package/projects/{plague-demo → fiction-example}/README.md +5 -5
- package/projects/{plague-demo → fiction-example}/manuscript/300-the-hearing.md +1 -13
- package/projects/{plague-demo → fiction-example}/package.json +1 -1
- package/projects/{plague-demo → fiction-example}/stego-project.json +1 -1
- package/projects/stego-docs/README.md +27 -0
- package/projects/stego-docs/manuscript/100-what-stego-is.md +56 -0
- package/projects/stego-docs/manuscript/200-install-and-initialize.md +68 -0
- package/projects/stego-docs/manuscript/300-workspace-layout-and-vscode.md +56 -0
- package/projects/stego-docs/manuscript/400-everyday-workflow-and-commands.md +70 -0
- package/projects/stego-docs/manuscript/500-project-configuration.md +58 -0
- package/projects/stego-docs/manuscript/600-spine-and-browser-workflows.md +55 -0
- package/projects/stego-docs/manuscript/700-validation-and-stage-gates.md +53 -0
- package/projects/stego-docs/manuscript/800-build-export-and-release-outputs.md +53 -0
- package/projects/{docs-demo → stego-docs}/package.json +1 -1
- package/projects/stego-docs/spine/commands.md +55 -0
- package/projects/stego-docs/spine/concepts.md +62 -0
- package/projects/stego-docs/spine/configuration.md +49 -0
- package/projects/stego-docs/spine/integrations.md +37 -0
- package/projects/stego-docs/spine/workflows.md +42 -0
- package/projects/stego-docs/stego-project.json +50 -0
- package/docs/conventions.md +0 -182
- package/docs/workflow.md +0 -78
- package/projects/docs-demo/README.md +0 -20
- package/projects/docs-demo/manuscript/100-what-stego-is.md +0 -37
- package/projects/docs-demo/manuscript/200-writing-workflow.md +0 -69
- package/projects/docs-demo/manuscript/300-quality-gates.md +0 -36
- package/projects/docs-demo/manuscript/400-build-and-export.md +0 -42
- package/projects/docs-demo/stego-project.json +0 -9
- /package/projects/{plague-demo → fiction-example}/.markdownlint.json +0 -0
- /package/projects/{docs-demo → fiction-example}/dist/.gitkeep +0 -0
- /package/projects/{plague-demo → fiction-example}/manuscript/100-the-commission.md +0 -0
- /package/projects/{plague-demo → fiction-example}/manuscript/200-at-the-wards.md +0 -0
- /package/projects/{plague-demo → fiction-example}/manuscript/400-the-final-account.md +0 -0
- /package/projects/{plague-demo → fiction-example}/notes/style-guide.md +0 -0
- /package/projects/{plague-demo → fiction-example}/spine/characters.md +0 -0
- /package/projects/{plague-demo → fiction-example}/spine/locations.md +0 -0
- /package/projects/{plague-demo → fiction-example}/spine/sources.md +0 -0
- /package/projects/{plague-demo → stego-docs}/dist/.gitkeep +0 -0
- /package/projects/{docs-demo → stego-docs}/notes/implementation-notes.md +0 -0
- /package/projects/{docs-demo → stego-docs}/notes/style-guide.md +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
chapter: 3
|
|
4
|
+
chapter_title: Workspace Layout and VS Code
|
|
5
|
+
concepts:
|
|
6
|
+
- CON-WORKSPACE
|
|
7
|
+
- CON-PROJECT
|
|
8
|
+
- CON-MANUSCRIPT
|
|
9
|
+
- CON-NOTES
|
|
10
|
+
- CON-SPINE
|
|
11
|
+
- CON-DIST
|
|
12
|
+
commands:
|
|
13
|
+
- CMD-INIT
|
|
14
|
+
- CMD-NEW-PROJECT
|
|
15
|
+
workflows:
|
|
16
|
+
- FLOW-INIT-WORKSPACE
|
|
17
|
+
- FLOW-NEW-PROJECT
|
|
18
|
+
integrations:
|
|
19
|
+
- INT-VSCODE
|
|
20
|
+
- INT-STEGO-EXTENSION
|
|
21
|
+
- INT-SAURUS-EXTENSION
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Workspace Layout and VS Code
|
|
25
|
+
|
|
26
|
+
## Workspace-level files
|
|
27
|
+
|
|
28
|
+
At the workspace root you will typically see:
|
|
29
|
+
|
|
30
|
+
- `stego.config.json` for shared configuration and stage policies
|
|
31
|
+
- `projects/` for all writing projects
|
|
32
|
+
- `.vscode/tasks.json` for common root tasks
|
|
33
|
+
- `package.json` for root scripts and tool dependencies
|
|
34
|
+
|
|
35
|
+
## Project layout
|
|
36
|
+
|
|
37
|
+
Each project under `projects/<project-id>/` contains its own source and configuration.
|
|
38
|
+
|
|
39
|
+
Typical folders:
|
|
40
|
+
|
|
41
|
+
- `manuscript/` for ordered source chapters or sections
|
|
42
|
+
- `notes/` for planning and references
|
|
43
|
+
- `spine/` for canonical entities (when a project enables Spine categories)
|
|
44
|
+
- `dist/` for generated outputs
|
|
45
|
+
|
|
46
|
+
## Recommended VS Code workflow
|
|
47
|
+
|
|
48
|
+
When actively working on one project, open that project directory directly in VS Code instead of the whole workspace.
|
|
49
|
+
|
|
50
|
+
That keeps editor context focused and ensures project recommendations apply at the project level.
|
|
51
|
+
|
|
52
|
+
## Prose-style editor settings prompt
|
|
53
|
+
|
|
54
|
+
When you run `stego init` or `stego new-project`, Stego can optionally write project-level markdown editor settings for a prose-friendly font and layout.
|
|
55
|
+
|
|
56
|
+
Those settings are written to the project folder only, not the workspace root, so different projects can use different editor preferences.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
chapter: 4
|
|
4
|
+
chapter_title: Everyday Workflow and Commands
|
|
5
|
+
concepts:
|
|
6
|
+
- CON-PROJECT
|
|
7
|
+
- CON-MANUSCRIPT
|
|
8
|
+
- CON-METADATA
|
|
9
|
+
- CON-DIST
|
|
10
|
+
commands:
|
|
11
|
+
- CMD-LIST-PROJECTS
|
|
12
|
+
- CMD-NEW-PROJECT
|
|
13
|
+
- CMD-VALIDATE
|
|
14
|
+
- CMD-BUILD
|
|
15
|
+
- CMD-CHECK-STAGE
|
|
16
|
+
- CMD-EXPORT
|
|
17
|
+
workflows:
|
|
18
|
+
- FLOW-DAILY-WRITING
|
|
19
|
+
- FLOW-NEW-PROJECT
|
|
20
|
+
- FLOW-BUILD-EXPORT
|
|
21
|
+
integrations:
|
|
22
|
+
- INT-VSCODE
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Everyday Workflow and Commands
|
|
26
|
+
|
|
27
|
+
## Daily loop
|
|
28
|
+
|
|
29
|
+
A practical Stego writing loop looks like this:
|
|
30
|
+
|
|
31
|
+
1. Open one project folder in VS Code.
|
|
32
|
+
2. Write or revise files in `manuscript/`.
|
|
33
|
+
3. Run `stego validate` for fast structural feedback.
|
|
34
|
+
4. Run `stego build` to inspect the compiled output.
|
|
35
|
+
5. Run `stego check-stage` before moving to the next editorial milestone.
|
|
36
|
+
6. Export formats as needed for review or delivery.
|
|
37
|
+
|
|
38
|
+
## Root-level command usage
|
|
39
|
+
|
|
40
|
+
From the workspace root, target a project with `--project`.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
stego list-projects
|
|
44
|
+
stego validate --project fiction-example
|
|
45
|
+
stego build --project fiction-example
|
|
46
|
+
stego check-stage --project fiction-example --stage revise
|
|
47
|
+
stego export --project fiction-example --format md
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Project-local scripts
|
|
51
|
+
|
|
52
|
+
Projects also include local npm scripts. These are useful when you want to stay in one project directory.
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
cd projects/fiction-example
|
|
56
|
+
npm run validate
|
|
57
|
+
npm run build
|
|
58
|
+
npm run check-stage -- --stage revise
|
|
59
|
+
npm run export -- --format md
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Create a new project
|
|
63
|
+
|
|
64
|
+
Use `stego new-project` from the workspace root.
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
stego new-project --project my-book --title "My Book"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
This scaffolds manuscript, notes, spine, and dist folders, a project config, local scripts, extension recommendations, and (optionally) project-level prose editor settings.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
chapter: 5
|
|
4
|
+
chapter_title: Project Configuration
|
|
5
|
+
concepts:
|
|
6
|
+
- CON-WORKSPACE
|
|
7
|
+
- CON-PROJECT
|
|
8
|
+
- CON-METADATA
|
|
9
|
+
- CON-COMPILE-STRUCTURE
|
|
10
|
+
- CON-SPINE
|
|
11
|
+
- CON-SPINE-CATEGORY
|
|
12
|
+
commands:
|
|
13
|
+
- CMD-VALIDATE
|
|
14
|
+
- CMD-BUILD
|
|
15
|
+
workflows:
|
|
16
|
+
- FLOW-NEW-PROJECT
|
|
17
|
+
- FLOW-DAILY-WRITING
|
|
18
|
+
configuration:
|
|
19
|
+
- CFG-STEGO-CONFIG
|
|
20
|
+
- CFG-STEGO-PROJECT
|
|
21
|
+
- CFG-REQUIRED-METADATA
|
|
22
|
+
- CFG-COMPILE-STRUCTURE
|
|
23
|
+
- CFG-COMPILE-LEVELS
|
|
24
|
+
- CFG-SPINE-CATEGORIES
|
|
25
|
+
- CFG-STAGE-POLICIES
|
|
26
|
+
- CFG-ALLOWED-STATUSES
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Project Configuration
|
|
30
|
+
|
|
31
|
+
Stego uses two configuration layers:
|
|
32
|
+
|
|
33
|
+
- `stego.config.json` at the workspace root for shared directories and stage policies
|
|
34
|
+
- `stego-project.json` inside each project for project-specific rules
|
|
35
|
+
|
|
36
|
+
## Metadata requirements
|
|
37
|
+
|
|
38
|
+
Projects can declare advisory metadata keys in `requiredMetadata`.
|
|
39
|
+
|
|
40
|
+
Stego reports missing keys as warnings so teams can standardize frontmatter without blocking early drafting.
|
|
41
|
+
|
|
42
|
+
Common keys include `status`, grouping fields such as `chapter`, and project-specific metadata such as point of view or timeline.
|
|
43
|
+
|
|
44
|
+
## Compile structure
|
|
45
|
+
|
|
46
|
+
Projects can define `compileStructure.levels` to group manuscript files during build.
|
|
47
|
+
|
|
48
|
+
This is how Stego inserts structural headings and optional page breaks while still letting authors keep source files small and file-first.
|
|
49
|
+
|
|
50
|
+
Grouping metadata can be repeated at boundaries only, because Stego inherits missing group values and titles from earlier files in order.
|
|
51
|
+
|
|
52
|
+
## Spine categories
|
|
53
|
+
|
|
54
|
+
Projects that use continuity tracking or concept browsing define `spineCategories` in `stego-project.json`.
|
|
55
|
+
|
|
56
|
+
Each category maps a metadata key to an ID prefix and a canonical notes file in `spine/`.
|
|
57
|
+
|
|
58
|
+
This project uses Spine categories to model documentation entities such as commands, concepts, workflows, configuration topics, and integrations.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
chapter: 6
|
|
4
|
+
chapter_title: Spine and Browser Workflows
|
|
5
|
+
concepts:
|
|
6
|
+
- CON-SPINE
|
|
7
|
+
- CON-SPINE-CATEGORY
|
|
8
|
+
- CON-METADATA
|
|
9
|
+
- CON-PROJECT
|
|
10
|
+
commands:
|
|
11
|
+
- CMD-VALIDATE
|
|
12
|
+
workflows:
|
|
13
|
+
- FLOW-DAILY-WRITING
|
|
14
|
+
- FLOW-STAGE-PROMOTION
|
|
15
|
+
configuration:
|
|
16
|
+
- CFG-SPINE-CATEGORIES
|
|
17
|
+
integrations:
|
|
18
|
+
- INT-STEGO-EXTENSION
|
|
19
|
+
- INT-VSCODE
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Spine and Browser Workflows
|
|
23
|
+
|
|
24
|
+
Stego's Spine model is useful beyond fiction. In this project, Spine acts as a canonical graph for documentation topics.
|
|
25
|
+
|
|
26
|
+
## How `stego-docs` uses Spine
|
|
27
|
+
|
|
28
|
+
The documentation project defines categories for:
|
|
29
|
+
|
|
30
|
+
- commands
|
|
31
|
+
- concepts
|
|
32
|
+
- workflows
|
|
33
|
+
- configuration topics
|
|
34
|
+
- integrations
|
|
35
|
+
|
|
36
|
+
Each manuscript chapter references relevant entries in frontmatter metadata. That lets the Stego extension's Spine Browser act as an alternate way to explore the docs.
|
|
37
|
+
|
|
38
|
+
## Why this is useful for documentation teams
|
|
39
|
+
|
|
40
|
+
Using Spine in docs gives you:
|
|
41
|
+
|
|
42
|
+
- a canonical glossary with relationships
|
|
43
|
+
- a browseable map of commands and workflows
|
|
44
|
+
- traceability from a chapter to the concepts it depends on
|
|
45
|
+
- a reusable pattern for internal process documentation
|
|
46
|
+
|
|
47
|
+
## Fiction workflows still use the same model
|
|
48
|
+
|
|
49
|
+
The `fiction-example` project shows the same mechanism applied to story continuity with entities such as characters, locations, and sources.
|
|
50
|
+
|
|
51
|
+
That makes `stego-docs` a good bridge project: it documents the feature while demonstrating a non-fiction use case for the same structure.
|
|
52
|
+
|
|
53
|
+
## Extension workflow
|
|
54
|
+
|
|
55
|
+
When working in VS Code with the Stego extension, open the project folder and use the Spine Browser to inspect categories, entries, and cross-links while editing chapters.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
chapter: 7
|
|
4
|
+
chapter_title: Validation and Stage Gates
|
|
5
|
+
concepts:
|
|
6
|
+
- CON-METADATA
|
|
7
|
+
- CON-STAGE-GATE
|
|
8
|
+
- CON-SPINE
|
|
9
|
+
commands:
|
|
10
|
+
- CMD-VALIDATE
|
|
11
|
+
- CMD-CHECK-STAGE
|
|
12
|
+
workflows:
|
|
13
|
+
- FLOW-STAGE-PROMOTION
|
|
14
|
+
- FLOW-PROOF-RELEASE
|
|
15
|
+
configuration:
|
|
16
|
+
- CFG-REQUIRED-METADATA
|
|
17
|
+
- CFG-STAGE-POLICIES
|
|
18
|
+
- CFG-ALLOWED-STATUSES
|
|
19
|
+
integrations:
|
|
20
|
+
- INT-MARKDOWNLINT
|
|
21
|
+
- INT-CSPELL
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Validation and Stage Gates
|
|
25
|
+
|
|
26
|
+
Stego separates baseline validation from stage-aware enforcement.
|
|
27
|
+
|
|
28
|
+
## `validate`
|
|
29
|
+
|
|
30
|
+
Use `validate` for fast project integrity checks while drafting or restructuring.
|
|
31
|
+
|
|
32
|
+
It checks configuration shape, manuscript ordering, metadata parsing, and continuity reference structure.
|
|
33
|
+
|
|
34
|
+
## `check-stage`
|
|
35
|
+
|
|
36
|
+
Use `check-stage` to ask whether a file or project is ready for a specific editorial stage.
|
|
37
|
+
|
|
38
|
+
Stages typically progress from draft through revise, line edit, proof, and final. Higher stages enable stricter policies.
|
|
39
|
+
|
|
40
|
+
## Blocking vs advisory checks
|
|
41
|
+
|
|
42
|
+
Stego reports a mix of errors and warnings:
|
|
43
|
+
|
|
44
|
+
- errors block the command result
|
|
45
|
+
- warnings highlight issues worth fixing but do not stop work
|
|
46
|
+
|
|
47
|
+
This lets teams keep early drafting fast while tightening quality standards later in the workflow.
|
|
48
|
+
|
|
49
|
+
## Proof and final expectations
|
|
50
|
+
|
|
51
|
+
Proof and final stages commonly enable stricter checks such as markdown linting, spelling checks, local link validation, and resolved comment requirements.
|
|
52
|
+
|
|
53
|
+
Those rules are configured in stage policies at the workspace level.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: draft
|
|
3
|
+
chapter: 8
|
|
4
|
+
chapter_title: Build, Export, and Release Outputs
|
|
5
|
+
concepts:
|
|
6
|
+
- CON-MANUSCRIPT
|
|
7
|
+
- CON-DIST
|
|
8
|
+
- CON-COMPILE-STRUCTURE
|
|
9
|
+
- CON-STAGE-GATE
|
|
10
|
+
commands:
|
|
11
|
+
- CMD-BUILD
|
|
12
|
+
- CMD-EXPORT
|
|
13
|
+
- CMD-CHECK-STAGE
|
|
14
|
+
workflows:
|
|
15
|
+
- FLOW-BUILD-EXPORT
|
|
16
|
+
- FLOW-PROOF-RELEASE
|
|
17
|
+
configuration:
|
|
18
|
+
- CFG-COMPILE-STRUCTURE
|
|
19
|
+
integrations:
|
|
20
|
+
- INT-PANDOC
|
|
21
|
+
- INT-MARKDOWNLINT
|
|
22
|
+
- INT-CSPELL
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Build, Export, and Release Outputs
|
|
26
|
+
|
|
27
|
+
## Build contract
|
|
28
|
+
|
|
29
|
+
`stego build` compiles one project's manuscript files into a single markdown output in `dist/`.
|
|
30
|
+
|
|
31
|
+
The build is deterministic because source ordering comes from filename prefixes and grouping behavior comes from project configuration.
|
|
32
|
+
|
|
33
|
+
Generated files in `dist/` should not be hand-edited.
|
|
34
|
+
|
|
35
|
+
## Export formats
|
|
36
|
+
|
|
37
|
+
`stego export` supports markdown output directly and optional richer formats through Pandoc, including docx, pdf, and epub.
|
|
38
|
+
|
|
39
|
+
If you export pdf through Pandoc, you also need a compatible PDF engine installed on your machine.
|
|
40
|
+
|
|
41
|
+
## Recommended release sequence
|
|
42
|
+
|
|
43
|
+
1. Run `stego validate` during drafting and revision.
|
|
44
|
+
2. Run `stego check-stage` for the intended milestone.
|
|
45
|
+
3. Run `stego build` to produce the compiled manuscript.
|
|
46
|
+
4. Run `stego export` for the delivery format.
|
|
47
|
+
5. Archive exported artifacts from `dist/exports` as release outputs.
|
|
48
|
+
|
|
49
|
+
## Reproducibility rule
|
|
50
|
+
|
|
51
|
+
Treat `manuscript/`, `notes/`, and `spine/` as source of truth.
|
|
52
|
+
|
|
53
|
+
Treat `dist/` as reproducible output that can be rebuilt at any time.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Commands
|
|
2
|
+
|
|
3
|
+
## CMD-INIT
|
|
4
|
+
|
|
5
|
+
- `stego init [--force]`
|
|
6
|
+
- Initialize a Stego workspace in the current directory.
|
|
7
|
+
- Related workflows: FLOW-INIT-WORKSPACE.
|
|
8
|
+
- Related concepts: CON-WORKSPACE, CON-PROJECT.
|
|
9
|
+
- Related integrations: INT-VSCODE.
|
|
10
|
+
|
|
11
|
+
## CMD-LIST-PROJECTS
|
|
12
|
+
|
|
13
|
+
- `stego list-projects [--root <path>]`
|
|
14
|
+
- List projects found in the current workspace.
|
|
15
|
+
- Related workflows: FLOW-INIT-WORKSPACE, FLOW-DAILY-WRITING.
|
|
16
|
+
- Related concepts: CON-WORKSPACE, CON-PROJECT.
|
|
17
|
+
|
|
18
|
+
## CMD-NEW-PROJECT
|
|
19
|
+
|
|
20
|
+
- `stego new-project --project <project-id> [--title <title>] [--root <path>]`
|
|
21
|
+
- Scaffold a new project under `projects/`.
|
|
22
|
+
- Related workflows: FLOW-NEW-PROJECT.
|
|
23
|
+
- Related concepts: CON-PROJECT, CON-MANUSCRIPT, CON-NOTES, CON-DIST.
|
|
24
|
+
|
|
25
|
+
## CMD-VALIDATE
|
|
26
|
+
|
|
27
|
+
- `stego validate --project <project-id> [--file <project-relative-manuscript-path>] [--root <path>]`
|
|
28
|
+
- Validate project configuration, manuscript structure, metadata, and references.
|
|
29
|
+
- Related workflows: FLOW-DAILY-WRITING, FLOW-STAGE-PROMOTION.
|
|
30
|
+
- Related concepts: CON-METADATA, CON-SPINE.
|
|
31
|
+
- Related configuration: CFG-REQUIRED-METADATA, CFG-SPINE-CATEGORIES.
|
|
32
|
+
|
|
33
|
+
## CMD-BUILD
|
|
34
|
+
|
|
35
|
+
- `stego build --project <project-id> [--root <path>]`
|
|
36
|
+
- Compile manuscript files into one generated markdown output.
|
|
37
|
+
- Related workflows: FLOW-BUILD-EXPORT, FLOW-DAILY-WRITING.
|
|
38
|
+
- Related concepts: CON-MANUSCRIPT, CON-DIST, CON-COMPILE-STRUCTURE.
|
|
39
|
+
- Related configuration: CFG-COMPILE-STRUCTURE, CFG-COMPILE-LEVELS.
|
|
40
|
+
|
|
41
|
+
## CMD-CHECK-STAGE
|
|
42
|
+
|
|
43
|
+
- `stego check-stage --project <project-id> --stage <draft|revise|line-edit|proof|final> [--file <project-relative-manuscript-path>] [--root <path>]`
|
|
44
|
+
- Run stage-aware checks for a requested editorial stage.
|
|
45
|
+
- Related workflows: FLOW-STAGE-PROMOTION, FLOW-PROOF-RELEASE.
|
|
46
|
+
- Related concepts: CON-STAGE-GATE, CON-METADATA.
|
|
47
|
+
- Related configuration: CFG-STAGE-POLICIES, CFG-ALLOWED-STATUSES.
|
|
48
|
+
|
|
49
|
+
## CMD-EXPORT
|
|
50
|
+
|
|
51
|
+
- `stego export --project <project-id> --format <md|docx|pdf|epub> [--output <path>] [--root <path>]`
|
|
52
|
+
- Export compiled output to target formats.
|
|
53
|
+
- Related workflows: FLOW-BUILD-EXPORT, FLOW-PROOF-RELEASE.
|
|
54
|
+
- Related concepts: CON-DIST.
|
|
55
|
+
- Related integrations: INT-PANDOC.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Concepts
|
|
2
|
+
|
|
3
|
+
## CON-WORKSPACE
|
|
4
|
+
|
|
5
|
+
- A Stego workspace is the root directory containing `stego.config.json` and `projects/`.
|
|
6
|
+
- Related commands: CMD-INIT, CMD-LIST-PROJECTS.
|
|
7
|
+
- Related workflows: FLOW-INIT-WORKSPACE.
|
|
8
|
+
|
|
9
|
+
## CON-PROJECT
|
|
10
|
+
|
|
11
|
+
- A project is one writing unit inside `projects/<project-id>/` with its own `stego-project.json` and manuscript files in `/projects/<project-id>/manuscripts`.
|
|
12
|
+
- Related commands: CMD-NEW-PROJECT, CMD-VALIDATE, CMD-BUILD.
|
|
13
|
+
- Related workflows: FLOW-NEW-PROJECT, FLOW-DAILY-WRITING.
|
|
14
|
+
|
|
15
|
+
## CON-MANUSCRIPT
|
|
16
|
+
|
|
17
|
+
- `manuscript/` contains canonical source writing files ordered by filename prefix.
|
|
18
|
+
- Related commands: CMD-VALIDATE, CMD-BUILD.
|
|
19
|
+
- Related configuration: CFG-REQUIRED-METADATA, CFG-COMPILE-STRUCTURE.
|
|
20
|
+
|
|
21
|
+
## CON-SPINE
|
|
22
|
+
|
|
23
|
+
- `spine/` stores canonical entities used for continuity and navigation.
|
|
24
|
+
- Related configuration: CFG-SPINE-CATEGORIES.
|
|
25
|
+
- Related integrations: INT-STEGO-EXTENSION.
|
|
26
|
+
|
|
27
|
+
## CON-NOTES
|
|
28
|
+
|
|
29
|
+
- `notes/` contains supporting material that is not part of compiled manuscript output.
|
|
30
|
+
- Related commands: CMD-NEW-PROJECT.
|
|
31
|
+
- Related workflows: FLOW-DAILY-WRITING.
|
|
32
|
+
|
|
33
|
+
## CON-DIST
|
|
34
|
+
|
|
35
|
+
- `dist/` is generated output only and can be rebuilt from sources.
|
|
36
|
+
- Related commands: CMD-BUILD, CMD-EXPORT.
|
|
37
|
+
- Related workflows: FLOW-BUILD-EXPORT, FLOW-PROOF-RELEASE.
|
|
38
|
+
|
|
39
|
+
## CON-METADATA
|
|
40
|
+
|
|
41
|
+
- Frontmatter metadata drives validation, stage checks, grouping, and continuity references.
|
|
42
|
+
- Related commands: CMD-VALIDATE, CMD-CHECK-STAGE.
|
|
43
|
+
- Related configuration: CFG-REQUIRED-METADATA, CFG-ALLOWED-STATUSES.
|
|
44
|
+
|
|
45
|
+
## CON-STAGE-GATE
|
|
46
|
+
|
|
47
|
+
- Stage gates apply stricter checks as work moves from drafting to release.
|
|
48
|
+
- Related commands: CMD-CHECK-STAGE.
|
|
49
|
+
- Related workflows: FLOW-STAGE-PROMOTION, FLOW-PROOF-RELEASE.
|
|
50
|
+
- Related configuration: CFG-STAGE-POLICIES.
|
|
51
|
+
|
|
52
|
+
## CON-COMPILE-STRUCTURE
|
|
53
|
+
|
|
54
|
+
- Compile structure groups ordered files into larger sections during build.
|
|
55
|
+
- Related commands: CMD-BUILD.
|
|
56
|
+
- Related configuration: CFG-COMPILE-STRUCTURE, CFG-COMPILE-LEVELS.
|
|
57
|
+
|
|
58
|
+
## CON-SPINE-CATEGORY
|
|
59
|
+
|
|
60
|
+
- A spine category defines a metadata key, ID prefix, and canonical notes file.
|
|
61
|
+
- Related concepts: CON-SPINE, CON-METADATA.
|
|
62
|
+
- Related configuration: CFG-SPINE-CATEGORIES.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Configuration
|
|
2
|
+
|
|
3
|
+
## CFG-STEGO-CONFIG
|
|
4
|
+
|
|
5
|
+
- Workspace-level configuration in `stego.config.json` defines shared directories and stage policies.
|
|
6
|
+
- Related concepts: CON-WORKSPACE.
|
|
7
|
+
- Related commands: CMD-LIST-PROJECTS, CMD-CHECK-STAGE.
|
|
8
|
+
|
|
9
|
+
## CFG-STEGO-PROJECT
|
|
10
|
+
|
|
11
|
+
- Project-level configuration in `stego-project.json` defines metadata rules, grouping, and spine categories.
|
|
12
|
+
- Related concepts: CON-PROJECT, CON-METADATA, CON-SPINE.
|
|
13
|
+
- Related commands: CMD-VALIDATE, CMD-BUILD.
|
|
14
|
+
|
|
15
|
+
## CFG-REQUIRED-METADATA
|
|
16
|
+
|
|
17
|
+
- Advisory list of frontmatter keys expected in manuscript files.
|
|
18
|
+
- Related concepts: CON-METADATA.
|
|
19
|
+
- Related commands: CMD-VALIDATE.
|
|
20
|
+
|
|
21
|
+
## CFG-COMPILE-STRUCTURE
|
|
22
|
+
|
|
23
|
+
- Build grouping configuration that defines structural levels and heading behavior.
|
|
24
|
+
- Related concepts: CON-COMPILE-STRUCTURE.
|
|
25
|
+
- Related commands: CMD-BUILD.
|
|
26
|
+
|
|
27
|
+
## CFG-COMPILE-LEVELS
|
|
28
|
+
|
|
29
|
+
- The ordered `levels` array inside compile structure, with keys, labels, title keys, and page break options.
|
|
30
|
+
- Related configuration: CFG-COMPILE-STRUCTURE.
|
|
31
|
+
- Related concepts: CON-COMPILE-STRUCTURE.
|
|
32
|
+
|
|
33
|
+
## CFG-SPINE-CATEGORIES
|
|
34
|
+
|
|
35
|
+
- Per-project category definitions mapping metadata keys to ID prefixes and spine files.
|
|
36
|
+
- Related concepts: CON-SPINE, CON-SPINE-CATEGORY.
|
|
37
|
+
- Related commands: CMD-VALIDATE.
|
|
38
|
+
|
|
39
|
+
## CFG-STAGE-POLICIES
|
|
40
|
+
|
|
41
|
+
- Stage policy settings determine which checks are enforced at each stage.
|
|
42
|
+
- Related concepts: CON-STAGE-GATE.
|
|
43
|
+
- Related commands: CMD-CHECK-STAGE.
|
|
44
|
+
|
|
45
|
+
## CFG-ALLOWED-STATUSES
|
|
46
|
+
|
|
47
|
+
- Workspace-level list of allowed manuscript statuses.
|
|
48
|
+
- Related concepts: CON-METADATA, CON-STAGE-GATE.
|
|
49
|
+
- Related commands: CMD-VALIDATE, CMD-CHECK-STAGE.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Integrations
|
|
2
|
+
|
|
3
|
+
## INT-VSCODE
|
|
4
|
+
|
|
5
|
+
- VS Code is the primary editor environment for Stego projects.
|
|
6
|
+
- Related workflows: FLOW-INIT-WORKSPACE, FLOW-DAILY-WRITING.
|
|
7
|
+
- Related commands: CMD-INIT.
|
|
8
|
+
|
|
9
|
+
## INT-STEGO-EXTENSION
|
|
10
|
+
|
|
11
|
+
- The Stego VS Code extension is the official UI for Stego projects, including status controls, checks, and Spine Browser navigation.
|
|
12
|
+
- Related concepts: CON-SPINE, CON-STAGE-GATE.
|
|
13
|
+
- Related workflows: FLOW-DAILY-WRITING, FLOW-STAGE-PROMOTION.
|
|
14
|
+
|
|
15
|
+
## INT-SAURUS-EXTENSION
|
|
16
|
+
|
|
17
|
+
- The Saurus extension complements prose editing and research workflows in project folders.
|
|
18
|
+
- Related integrations: INT-VSCODE.
|
|
19
|
+
- Related workflows: FLOW-DAILY-WRITING.
|
|
20
|
+
|
|
21
|
+
## INT-PANDOC
|
|
22
|
+
|
|
23
|
+
- Pandoc is used for optional export formats such as docx, pdf, and epub.
|
|
24
|
+
- Related commands: CMD-EXPORT.
|
|
25
|
+
- Related workflows: FLOW-BUILD-EXPORT.
|
|
26
|
+
|
|
27
|
+
## INT-MARKDOWNLINT
|
|
28
|
+
|
|
29
|
+
- Markdownlint is used in stricter proofreading and release stages.
|
|
30
|
+
- Related concepts: CON-STAGE-GATE.
|
|
31
|
+
- Related workflows: FLOW-PROOF-RELEASE.
|
|
32
|
+
|
|
33
|
+
## INT-CSPELL
|
|
34
|
+
|
|
35
|
+
- CSpell supports spelling and terminology checks during later-stage quality passes.
|
|
36
|
+
- Related concepts: CON-STAGE-GATE.
|
|
37
|
+
- Related workflows: FLOW-PROOF-RELEASE.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Workflows
|
|
2
|
+
|
|
3
|
+
## FLOW-INIT-WORKSPACE
|
|
4
|
+
|
|
5
|
+
- Install the CLI, initialize a workspace, install local dev tools, and inspect scaffolded projects.
|
|
6
|
+
- Related commands: CMD-INIT, CMD-LIST-PROJECTS.
|
|
7
|
+
- Related concepts: CON-WORKSPACE, CON-PROJECT.
|
|
8
|
+
|
|
9
|
+
## FLOW-DAILY-WRITING
|
|
10
|
+
|
|
11
|
+
- Open one project, write in manuscript files, validate, build, and commit progress.
|
|
12
|
+
- Related commands: CMD-VALIDATE, CMD-BUILD.
|
|
13
|
+
- Related concepts: CON-MANUSCRIPT, CON-METADATA, CON-DIST.
|
|
14
|
+
- Related integrations: INT-VSCODE.
|
|
15
|
+
|
|
16
|
+
## FLOW-NEW-PROJECT
|
|
17
|
+
|
|
18
|
+
- Create a new project, review generated folders, and configure project metadata rules.
|
|
19
|
+
- Related commands: CMD-NEW-PROJECT, CMD-VALIDATE.
|
|
20
|
+
- Related concepts: CON-PROJECT, CON-MANUSCRIPT, CON-SPINE.
|
|
21
|
+
- Related configuration: CFG-STEGO-PROJECT.
|
|
22
|
+
|
|
23
|
+
## FLOW-STAGE-PROMOTION
|
|
24
|
+
|
|
25
|
+
- Move files through statuses and verify readiness with stage checks.
|
|
26
|
+
- Related commands: CMD-CHECK-STAGE, CMD-VALIDATE.
|
|
27
|
+
- Related concepts: CON-STAGE-GATE, CON-METADATA.
|
|
28
|
+
- Related configuration: CFG-STAGE-POLICIES, CFG-ALLOWED-STATUSES.
|
|
29
|
+
|
|
30
|
+
## FLOW-BUILD-EXPORT
|
|
31
|
+
|
|
32
|
+
- Build a compiled markdown manuscript and export distribution formats.
|
|
33
|
+
- Related commands: CMD-BUILD, CMD-EXPORT.
|
|
34
|
+
- Related concepts: CON-DIST, CON-COMPILE-STRUCTURE.
|
|
35
|
+
- Related integrations: INT-PANDOC.
|
|
36
|
+
|
|
37
|
+
## FLOW-PROOF-RELEASE
|
|
38
|
+
|
|
39
|
+
- Run strict checks, build outputs, export artifacts, and archive release files.
|
|
40
|
+
- Related commands: CMD-CHECK-STAGE, CMD-BUILD, CMD-EXPORT.
|
|
41
|
+
- Related concepts: CON-STAGE-GATE, CON-DIST.
|
|
42
|
+
- Related integrations: INT-MARKDOWNLINT, INT-CSPELL.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "stego-docs",
|
|
3
|
+
"title": "Stego Docs",
|
|
4
|
+
"subtitle": "Canonical documentation project for stego-cli and the Stego writing workflow",
|
|
5
|
+
"author": "Matt Gold",
|
|
6
|
+
"requiredMetadata": [
|
|
7
|
+
"status",
|
|
8
|
+
"chapter",
|
|
9
|
+
"concepts"
|
|
10
|
+
],
|
|
11
|
+
"compileStructure": {
|
|
12
|
+
"levels": [
|
|
13
|
+
{
|
|
14
|
+
"key": "chapter",
|
|
15
|
+
"label": "Chapter",
|
|
16
|
+
"titleKey": "chapter_title",
|
|
17
|
+
"injectHeading": true,
|
|
18
|
+
"headingTemplate": "{label} {value}: {title}",
|
|
19
|
+
"pageBreak": "between-groups"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"spineCategories": [
|
|
24
|
+
{
|
|
25
|
+
"key": "commands",
|
|
26
|
+
"prefix": "CMD",
|
|
27
|
+
"notesFile": "commands.md"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "concepts",
|
|
31
|
+
"prefix": "CON",
|
|
32
|
+
"notesFile": "concepts.md"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"key": "workflows",
|
|
36
|
+
"prefix": "FLOW",
|
|
37
|
+
"notesFile": "workflows.md"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "configuration",
|
|
41
|
+
"prefix": "CFG",
|
|
42
|
+
"notesFile": "configuration.md"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"key": "integrations",
|
|
46
|
+
"prefix": "INT",
|
|
47
|
+
"notesFile": "integrations.md"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|