sphinx-guidestar 0.1.0__tar.gz

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.
Files changed (49) hide show
  1. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/action.yml +63 -0
  2. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/dist/index.js +45277 -0
  3. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/dist/licenses.txt +674 -0
  4. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/dist/sourcemap-register.js +1 -0
  5. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/package-lock.json +2177 -0
  6. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/package.json +25 -0
  7. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/analyze.ts +232 -0
  8. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/artifacts.ts +66 -0
  9. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/comment.ts +286 -0
  10. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/compress.ts +141 -0
  11. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/diff.ts +173 -0
  12. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/discover.ts +401 -0
  13. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/index.ts +332 -0
  14. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/llm.ts +228 -0
  15. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/prompts.ts +125 -0
  16. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/suggestions.ts +229 -0
  17. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/src/validate.ts +355 -0
  18. sphinx_guidestar-0.1.0/.github/actions/wireframe-review/tsconfig.json +18 -0
  19. sphinx_guidestar-0.1.0/.github/workflows/pages.yml +53 -0
  20. sphinx_guidestar-0.1.0/.github/workflows/publish.yml +47 -0
  21. sphinx_guidestar-0.1.0/.gitignore +24 -0
  22. sphinx_guidestar-0.1.0/.readthedocs.yaml +16 -0
  23. sphinx_guidestar-0.1.0/PKG-INFO +259 -0
  24. sphinx_guidestar-0.1.0/README.md +248 -0
  25. sphinx_guidestar-0.1.0/docs/_static/example-wireframe.html +120 -0
  26. sphinx_guidestar-0.1.0/docs/accessibility.rst +163 -0
  27. sphinx_guidestar-0.1.0/docs/ci-integration.rst +442 -0
  28. sphinx_guidestar-0.1.0/docs/conf.py +24 -0
  29. sphinx_guidestar-0.1.0/docs/configuration.rst +416 -0
  30. sphinx_guidestar-0.1.0/docs/embedding.rst +221 -0
  31. sphinx_guidestar-0.1.0/docs/index.rst +32 -0
  32. sphinx_guidestar-0.1.0/docs/quickstart.rst +82 -0
  33. sphinx_guidestar-0.1.0/docs/requirements.txt +1 -0
  34. sphinx_guidestar-0.1.0/docs/sphinx-directive.rst +177 -0
  35. sphinx_guidestar-0.1.0/docs/standalone.rst +118 -0
  36. sphinx_guidestar-0.1.0/docs/styling.rst +255 -0
  37. sphinx_guidestar-0.1.0/examples/build.py +158 -0
  38. sphinx_guidestar-0.1.0/examples/demos/kitchen-sink-full.json +47 -0
  39. sphinx_guidestar-0.1.0/examples/demos/kitchen-sink-short.json +33 -0
  40. sphinx_guidestar-0.1.0/examples/index.html +49 -0
  41. sphinx_guidestar-0.1.0/examples/record.py +182 -0
  42. sphinx_guidestar-0.1.0/examples/wireframes/kitchen-sink.html +366 -0
  43. sphinx_guidestar-0.1.0/pyproject.toml +25 -0
  44. sphinx_guidestar-0.1.0/src/guidestar/__init__.py +15 -0
  45. sphinx_guidestar-0.1.0/src/guidestar/directive.py +186 -0
  46. sphinx_guidestar-0.1.0/src/guidestar/extension.py +34 -0
  47. sphinx_guidestar-0.1.0/src/guidestar/static/guidestar-controller.js +2120 -0
  48. sphinx_guidestar-0.1.0/src/guidestar/static/guidestar-controls.css +368 -0
  49. sphinx_guidestar-0.1.0/src/guidestar/static/guidestar-logo.png +0 -0
@@ -0,0 +1,63 @@
1
+ name: 'Wireframe Demo Review'
2
+ description: >
3
+ Auto-discovers wireframe demos in your docs, analyzes PR diffs for UI-affecting
4
+ changes, and posts a comment with proposed wireframe/step updates using an LLM.
5
+
6
+ inputs:
7
+ docs-root:
8
+ description: 'Path to the documentation root directory to scan for wireframe demos.'
9
+ required: false
10
+ default: 'docs/'
11
+ source-root:
12
+ description: 'Path to the source code root. Only diffs under this path are analyzed.'
13
+ required: false
14
+ default: '.'
15
+ config-path:
16
+ description: >
17
+ Path to an explicit wireframe-review config file (.github/wireframe-review.yml).
18
+ If provided, uses explicit wireframe mappings instead of auto-discovery.
19
+ required: false
20
+ default: ''
21
+ provider:
22
+ description: 'LLM provider: github-models, openai, or anthropic.'
23
+ required: false
24
+ default: 'github-models'
25
+ model:
26
+ description: 'LLM model name. Defaults to a provider-appropriate model if not set.'
27
+ required: false
28
+ default: ''
29
+ api-key:
30
+ description: >
31
+ API key for the LLM provider. Not required for github-models (uses GITHUB_TOKEN).
32
+ For openai/anthropic, provide the appropriate API key.
33
+ required: false
34
+ default: ''
35
+ max-diff-size:
36
+ description: 'Maximum diff size in characters to send to the LLM. Larger diffs are summarized.'
37
+ required: false
38
+ default: '50000'
39
+ max-prompt-tokens:
40
+ description: >
41
+ Maximum total prompt tokens for each LLM request. The diff is truncated to fit
42
+ within this budget after the wireframe content. Lower this for providers with
43
+ small context windows (e.g., 6000 for GitHub Models free tier).
44
+ required: false
45
+ default: '100000'
46
+ fail-on-error:
47
+ description: >
48
+ Whether to fail the action (non-zero exit) when validation errors are found
49
+ or the LLM suggests wireframe updates are needed. Set to 'true' to block
50
+ PR merges via required status checks.
51
+ required: false
52
+ default: 'false'
53
+ auto-apply:
54
+ description: >
55
+ Automatically push suggested wireframe changes directly to the PR branch.
56
+ When 'true', suggestions are applied immediately rather than requiring a
57
+ /wireframe-apply comment. Only works for same-repo PRs (not forks).
58
+ required: false
59
+ default: 'false'
60
+
61
+ runs:
62
+ using: 'node20'
63
+ main: 'dist/index.js'