Skip to content

Commit ea118b8

Browse files
committed
Revert "chore: Remove autocomplete (#1931)"
This reverts commit 98dad52.
1 parent 01c0144 commit ea118b8

File tree

1,469 files changed

+256806
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,469 files changed

+256806
-454
lines changed

.github/ISSUE_TEMPLATE/1_bug_report_template.yml

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,50 @@ title: "bug: "
55
labels: ["NEED_TO_LABEL"]
66

77
body:
8-
- type: checkboxes
9-
id: "checks"
10-
attributes:
11-
label: "Checks"
12-
options:
13-
- label: "I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue"
14-
required: true
15-
16-
- type: input
17-
id: "os"
18-
attributes:
19-
label: "Operating system"
20-
validations:
8+
- type: checkboxes
9+
id: "checks"
10+
attributes:
11+
label: "Checks"
12+
options:
13+
- label: "I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue"
2114
required: true
22-
23-
- type: textarea
24-
id: "expected"
25-
attributes:
26-
label: "Expected behaviour"
27-
description: "What did you expect to happen?"
28-
validations:
15+
- label: "I have run `q doctor` in the affected terminal session"
2916
required: true
30-
31-
- type: textarea
32-
id: "actual"
33-
attributes:
34-
label: "Actual behaviour"
35-
description: "What actually happened? Please provide a screenshot or video if possible."
36-
validations:
17+
- label: "I have run `q restart` and replicated the issue again"
3718
required: true
3819

39-
- type: textarea
40-
id: "reproduce"
41-
attributes:
42-
label: "Steps to reproduce"
43-
description: "Are you able to reproduce this issue? If so, how?"
20+
- type: input
21+
id: "os"
22+
attributes:
23+
label: "Operating system"
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: "expected"
29+
attributes:
30+
label: "Expected behaviour"
31+
description: "What did you expect to happen?"
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: "actual"
37+
attributes:
38+
label: "Actual behaviour"
39+
description: "What actually happened? Please provide a screenshot or video if possible."
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: "reproduce"
45+
attributes:
46+
label: "Steps to reproduce"
47+
description: "Are you able to reproduce this issue? If so, how?"
48+
49+
- type: textarea
50+
id: "environment"
51+
attributes:
52+
label: "Environment"
53+
description: "If possible, run `q diagnostic` and paste the output below."
54+
render: yaml

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ updates:
1212
open-pull-requests-limit: 100
1313
commit-message:
1414
prefix: ci
15+
- package-ecosystem: "npm"
16+
directory: "/"
17+
schedule:
18+
interval: "daily"
19+
assignees:
20+
- "chaynabors"
21+
commit-message:
22+
prefix: fix
23+
prefix-development: chore
24+
include: scope
25+
open-pull-requests-limit: 100
26+
groups:
27+
eslint:
28+
patterns: ["eslint", "@eslint/*"]
29+
typescript-eslint:
30+
patterns: ["typescript-eslint", "@typescript-eslint/*"]
31+
vitest:
32+
patterns: ["vitest", "@vitest/*"]
33+
radix-ui:
34+
patterns: ["@radix-ui/*"]
1535
- package-ecosystem: "cargo"
1636
directory: "/"
1737
schedule:

.github/workflows/npm-publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: npm publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
jobs:
11+
publish:
12+
name: Publish
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install protobuf compiler and libglib2.0
18+
run: sudo apt-get update && sudo apt-get install -y -qq protobuf-compiler libglib2.0-dev-bin
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
run_install: false
23+
- name: Install Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version-file: package.json
27+
cache: "pnpm"
28+
registry-url: "https://registry.npmjs.org"
29+
- name: Install npm dependencies
30+
run: pnpm install --frozen-lockfile
31+
- run: pnpm build
32+
- run: pnpm publish --recursive --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
35+
NPM_CONFIG_PROVENANCE: true

.github/workflows/rust.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,19 @@ jobs:
7676
~/.cargo/git/db/
7777
target/
7878
key: cargo-test-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
79-
- name: Generate code coverage
80-
run: cargo +nightly llvm-cov --locked --workspace --codecov --output-path lcov.info
81-
- name: Upload coverage to Codecov
82-
uses: codecov/codecov-action@v5
83-
if: github.event.repository.fork == false
84-
with:
85-
token: ${{ secrets.CODECOV_TOKEN }}
86-
files: lcov.info
87-
fail_ci_if_error: true
88-
env_vars: OS
79+
# TODO: Coverage fails with `error: unnecessary transmute` in `appkit-nsworkspace-bindings`
80+
# - name: Generate code coverage
81+
# run: cargo +nightly llvm-cov --locked --workspace --codecov --output-path lcov.info
82+
# - name: Upload coverage to Codecov
83+
# uses: codecov/codecov-action@v5
84+
# if: github.event.repository.fork == false
85+
# with:
86+
# token: ${{ secrets.CODECOV_TOKEN }}
87+
# files: lcov.info
88+
# fail_ci_if_error: true
89+
# env_vars: OS
8990
- name: Run tests
90-
run: cargo test --locked --workspace --lib --bins --tests --exclude fig_desktop-fuzz
91+
run: cargo test --locked --workspace --lib --bins --test '*' --exclude fig_desktop-fuzz
9192

9293
cargo-fmt:
9394
name: Fmt

.github/workflows/typescript.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Typescript
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
run-test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install protobuf compiler and libglib2.0
19+
run: sudo apt-get update && sudo apt-get install -y -qq protobuf-compiler libglib2.0-dev-bin
20+
- name: Cache .turbo folder
21+
uses: actions/cache@v4
22+
with:
23+
path: .turbo
24+
key: turbo-test-${{ runner.os }}-${{ github.sha }}
25+
restore-keys: turbo-test-${{ runner.os }}-
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
run_install: false
30+
- name: Install Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version-file: package.json
34+
cache: "pnpm"
35+
- name: Install npm dependencies
36+
run: pnpm install --frozen-lockfile
37+
- run: pnpm run build
38+
- run: pnpm run test:ci
39+
- name: Upload coverage to Codecov
40+
uses: codecov/codecov-action@v5
41+
if: github.event.repository.fork == false
42+
with:
43+
token: ${{ secrets.CODECOV_TOKEN }}
44+
files: coverage/lcov.info
45+
fail_ci_if_error: true
46+
47+
run-lint:
48+
name: Lint
49+
runs-on: ubuntu-latest
50+
timeout-minutes: 30
51+
steps:
52+
- uses: actions/checkout@v4
53+
- name: Install protobuf compiler
54+
run: sudo apt-get update && sudo apt-get install -y -qq protobuf-compiler
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
with:
58+
run_install: false
59+
- name: Install Node.js
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version-file: package.json
63+
cache: "pnpm"
64+
- name: Install npm dependencies
65+
run: pnpm install --frozen-lockfile
66+
- run: pnpm run lint
67+
68+
audit:
69+
name: Audit
70+
runs-on: ubuntu-latest
71+
timeout-minutes: 5
72+
steps:
73+
- uses: actions/checkout@v4
74+
- name: Install pnpm
75+
uses: pnpm/action-setup@v4
76+
with:
77+
run_install: false

.github/workflows/typos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ jobs:
1818
uses: actions/checkout@v4
1919
- name: Check spelling
2020
uses: crate-ci/typos@master
21+
with:
22+
config: .typos.toml

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,16 @@ book/
3636
.vscode/
3737
.fleet/
3838
.idea/
39+
40+
# yarn v2
41+
.pnp.*
42+
.yarn/*
43+
!.yarn/patches
44+
!.yarn/plugins
45+
!.yarn/releases
46+
!.yarn/sdks
47+
!.yarn/versions
48+
49+
.env*
50+
51+
run-build.sh

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pnpm run precommit
2+
pnpm run -r precommit

.lintstagedrc.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default {
2+
"*.{rs,toml}": () => [
3+
"cargo +nightly fmt --check -- --color always",
4+
"cargo clippy --locked --color always -- -D warnings",
5+
],
6+
"*.proto": () => [
7+
"cd proto && buf lint && buf format --exit-code > /dev/null",
8+
],
9+
"*.py": ["ruff format --check", "ruff check"],
10+
"*.{ts,js,tsx,jsx,mjs}": "prettier --check",
11+
"!(*test*)*": "typos --config .typos.toml",
12+
};

.mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
node = "22"
3+
python = "3.11"

0 commit comments

Comments
 (0)