Skip to content

Commit 4b9fb7b

Browse files
committed
Initial commit
0 parents  commit 4b9fb7b

82 files changed

Lines changed: 15585 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Bug report
2+
description: Report a problem with TUIKit
3+
labels: ["bug"]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Describe the bug
8+
description: A clear description of what the bug is.
9+
validations:
10+
required: true
11+
- type: textarea
12+
attributes:
13+
label: Steps to reproduce
14+
description: Steps to reproduce the behavior.
15+
placeholder: |
16+
1. Run command ...
17+
2. See error ...
18+
validations:
19+
required: true
20+
- type: textarea
21+
attributes:
22+
label: Expected behavior
23+
description: What you expected to happen.
24+
validations:
25+
required: true
26+
- type: input
27+
attributes:
28+
label: TUIKit version or commit
29+
description: Which version or commit SHA are you using?
30+
validations:
31+
required: false
32+
- type: textarea
33+
attributes:
34+
label: Additional context
35+
description: Any other context, screenshots, or logs.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Feature request
2+
description: Suggest an idea for TUIKit
3+
labels: ["enhancement"]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Describe the feature
8+
description: A clear description of what you would like to happen.
9+
validations:
10+
required: true
11+
- type: textarea
12+
attributes:
13+
label: Use case
14+
description: What problem does this solve? Why is this needed?
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Alternatives considered
20+
description: Any alternative solutions or features you have considered.
21+
validations:
22+
required: false

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bun"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Summary
2+
3+
<!-- Brief description of what this PR does -->
4+
5+
## Changes
6+
7+
<!-- List the key changes -->
8+
9+
## Testing
10+
11+
<!-- How was this tested? -->
12+
13+
## Checklist
14+
15+
- [ ] Specs lint passes (`bun run lint`)
16+
- [ ] Tests updated if applicable
17+
- [ ] Documentation updated if applicable

.github/workflows/specs-ci.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Specs CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
specs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Bun
18+
uses: oven-sh/setup-bun@v2
19+
20+
- name: Install dependencies
21+
run: bun install --frozen-lockfile
22+
23+
- name: Spec lint
24+
run: bun scripts/lint.ts
25+
26+
- name: Discover targets
27+
id: targets
28+
shell: bash
29+
run: |
30+
set -euo pipefail
31+
TARGETS="$(find targets -maxdepth 1 -name '*.md' -type f -exec basename {} .md \; | sort | tr '\n' ' ')"
32+
TARGETS="$(echo "$TARGETS" | xargs)"
33+
if [ -z "$TARGETS" ]; then
34+
echo "No targets found under targets/*.md" >&2
35+
exit 1
36+
fi
37+
echo "targets=$TARGETS" >> "$GITHUB_OUTPUT"
38+
echo "Discovered targets: $TARGETS"
39+
40+
- name: Compiler health (all targets)
41+
shell: bash
42+
run: |
43+
set -euo pipefail
44+
for t in ${{ steps.targets.outputs.targets }}; do
45+
echo "== status: $t =="
46+
bun scripts/compile.ts status --target "$t"
47+
done
48+
49+
- name: Prompt generation smoke test (all targets)
50+
shell: bash
51+
run: |
52+
set -euo pipefail
53+
for t in ${{ steps.targets.outputs.targets }}; do
54+
echo "== prompt: $t =="
55+
bun scripts/compile.ts prompt --target "$t"
56+
done
57+
58+
- name: No generated output committed
59+
shell: bash
60+
run: |
61+
set -euo pipefail
62+
if git ls-files --error-unmatch dist >/dev/null 2>&1; then
63+
echo "dist/ is tracked but must remain generated-only." >&2
64+
exit 1
65+
fi
66+
if git diff --name-only "origin/${{ github.base_ref || 'main' }}"...HEAD | grep -E '^dist/'; then
67+
echo "PR includes files under dist/; remove generated output from commits." >&2
68+
exit 1
69+
fi
70+
71+
- name: Changed-spec completeness
72+
if: github.event_name == 'pull_request'
73+
shell: bash
74+
run: |
75+
set -euo pipefail
76+
BASE="origin/${{ github.base_ref }}"
77+
git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
78+
CHANGED="$(git diff --name-only "$BASE"...HEAD)"
79+
FAIL=0
80+
while IFS= read -r file; do
81+
[ -z "$file" ] && continue
82+
case "$file" in
83+
components/*/*.md)
84+
case "$file" in
85+
*.test.md|*.preview.md) continue ;;
86+
esac
87+
dir="$(dirname "$file")"
88+
name="$(basename "$file" .md)"
89+
test_file="$dir/$name.test.md"
90+
preview_file="$dir/$name.preview.md"
91+
if ! echo "$CHANGED" | grep -Fxq "$test_file"; then
92+
echo "Missing changed test spec: $test_file (required when $file changes)" >&2
93+
FAIL=1
94+
fi
95+
if ! echo "$CHANGED" | grep -Fxq "$preview_file"; then
96+
echo "Missing changed preview spec: $preview_file (required when $file changes)" >&2
97+
FAIL=1
98+
fi
99+
;;
100+
esac
101+
done <<< "$CHANGED"
102+
[ "$FAIL" -eq 0 ]

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
dist/
3+
node_modules/
4+
targets/*.lock.json

CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# For more information, see docs: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax
2+
3+
# This repository is maintained by:
4+
* @github/copilot-cli-design

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at <opensource@github.com>. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Contributing
2+
3+
[fork]: ../../fork
4+
[pr]: ../../compare
5+
6+
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
7+
8+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).
9+
10+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
11+
12+
## Prerequisites
13+
14+
- [Bun](https://bun.sh/) 1.1 or later
15+
16+
## Submitting a pull request
17+
18+
1. [Fork][fork] and clone the repository
19+
1. Install the dependencies: `bun install`
20+
1. Make sure linting passes: `bun run lint`
21+
1. Create a new branch: `git checkout -b my-branch-name`
22+
1. Make your change and make sure linting still passes
23+
1. Push to your fork and [submit a pull request][pr]
24+
1. Pat yourself on the back and wait for your pull request to be reviewed and merged.
25+
26+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
27+
28+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
29+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
30+
31+
## Resources
32+
33+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
34+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
35+
- [GitHub Help](https://help.github.com)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright GitHub, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)