Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/content/docs/cli/state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ A single lexicon may emit both resources (entity-keyed) and artifacts (context-k
| Docker | | ✅ |
| Flyway | | ✅ |
| Slurm | | ✅ |
| GitHub / GitLab | | N/A — see #56 |
| GitHub / GitLab | | N/A — see lexicon READMEs |

Lexicons that implement neither method are warn-skipped — `--live` doesn't fail the whole command for them.

Expand Down
21 changes: 21 additions & 0 deletions lexicons/github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# @intentius/chant-lexicon-github

GitHub Actions lexicon for [chant](https://intentius.io/chant/) — declare workflow definitions as typed TypeScript that serializes to `.github/workflows/*.yml`.

```bash
npm install --save-dev @intentius/chant @intentius/chant-lexicon-github
```

## Runtime observation: N/A

`chant state snapshot` and `chant state diff --live` operate by querying a runtime equivalent of each declared resource. The GitHub lexicon doesn't fit that model:

- The lexicon's chant entities describe **GitHub Actions workflow definitions**, which are git-tracked. Drift in the definition itself is just `git diff` — no observation surface needed.
- Workflow **runs** are events (per-execution), not declared state. They're observable via the GitHub API but the abstraction is `listRecentRuns()`, not `describeResources()` or `listArtifacts()`. That's a separate plugin contract if/when it's needed.
- "Is this workflow enabled in the GitHub UI?" is theoretically observable but a marginal use case.

If a concrete observation use case surfaces, file a focused issue rather than retrofitting `listArtifacts()` to fit.

## License

See the main project LICENSE file.
10 changes: 10 additions & 0 deletions lexicons/gitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ npm install --save-dev @intentius/chant @intentius/chant-lexicon-gitlab
| [@intentius/chant](https://www.npmjs.com/package/@intentius/chant) | Core type system, CLI, build pipeline |
| [@intentius/chant-lexicon-aws](https://www.npmjs.com/package/@intentius/chant-lexicon-aws) | AWS CloudFormation lexicon |

## Runtime observation: N/A

`chant state snapshot` and `chant state diff --live` operate by querying a runtime equivalent of each declared resource. The GitLab lexicon doesn't fit that model:

- The lexicon's chant entities (`Job`, `Workflow`, `Default`, `Image`, `Rule`, etc.) describe **CI pipeline definitions**, which are git-tracked. Drift in the definition itself is just `git diff` — no observation surface needed.
- Pipeline **runs** are events (per-execution), not declared state. They're observable via the GitLab API but the abstraction is `listRecentRuns()`, not `describeResources()` or `listArtifacts()`. That's a separate plugin contract if/when it's needed.
- "Is this workflow enabled in the GitLab UI?" is theoretically observable but a marginal use case.

If a concrete observation use case surfaces, file a focused issue rather than retrofitting `listArtifacts()` to fit.

## License

See the main project LICENSE file.
Loading