Skip to content

Commit e5fe3fb

Browse files
Restore executable bit on scripts lost in an external checkout round-trip
0 parents  commit e5fe3fb

150 files changed

Lines changed: 42913 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Bug report
3+
about: Something does not work the way it is documented
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## What happened
10+
11+
<!-- What you observed. One or two sentences. -->
12+
13+
## What you expected
14+
15+
<!-- What the documentation or the UI led you to expect instead. -->
16+
17+
## Steps to reproduce
18+
19+
1.
20+
2.
21+
3.
22+
23+
## Environment
24+
25+
| | |
26+
|---|---|
27+
| Editor + version | <!-- e.g. VS Code 1.9x, or IntelliJ IDEA 2026.1 --> |
28+
| Extension / plugin version | |
29+
| `ainxt --version` | |
30+
| Operating system | |
31+
32+
## Log output
33+
34+
Open **AiNxt: Show Log** (`Ctrl+Shift+A` → log icon) and paste the relevant portion.
35+
Redact any tokens, hostnames or file paths you do not want to publish — issues are public.
36+
37+
```
38+
(log output)
39+
```
40+
41+
## Anything else
42+
43+
<!-- Screenshots, a minimal project that reproduces it, related issues. -->
44+
45+
---
46+
47+
**Do not use this template for security vulnerabilities.** Report those privately as
48+
described in [SECURITY.md](../../SECURITY.md).
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Feature request
3+
about: Suggest a capability or a change in behaviour
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## The problem
10+
11+
<!-- Describe the problem you are trying to solve, not just the solution you have in
12+
mind. What are you unable to do today, and what does that cost you? -->
13+
14+
## Who this affects
15+
16+
<!-- Just you, your team, or anyone using the extension in a particular way? -->
17+
18+
## What you have tried
19+
20+
<!-- Existing settings, profiles, or workarounds, and why they fall short. -->
21+
22+
## A possible approach
23+
24+
<!-- Optional. If you have a design in mind, sketch it — but the problem statement
25+
above is the part maintainers need most. -->
26+
27+
## Scope check
28+
29+
- [ ] This belongs in the editor integration (this repository), not in the CLI or the runtime
30+
- [ ] It does not require behaviour specific to one organisation (see the configurability
31+
guidance in [CONTRIBUTING.md](../../CONTRIBUTING.md))

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## What this changes
2+
3+
<!-- One paragraph. What behaviour is different after this PR? -->
4+
5+
## Why
6+
7+
<!-- Link the issue this closes, e.g. `Closes #123`. If there is no issue, explain the
8+
motivation here. -->
9+
10+
## How it was verified
11+
12+
<!-- Commands you ran and what they reported. "Tests pass" on its own is not verification —
13+
say which tests, on which platform. -->
14+
15+
```
16+
(commands and output)
17+
```
18+
19+
## Checklist
20+
21+
- [ ] Branched from `develop` and targets `develop`
22+
- [ ] Commit messages follow [Conventional Commits](https://www.conventionalcommits.org/)
23+
- [ ] **Every commit is signed off** (`git commit -s`) — see the DCO section of
24+
[CONTRIBUTING.md](../CONTRIBUTING.md)
25+
- [ ] Tests added or updated for the behaviour that changed
26+
- [ ] Documentation updated if user-facing behaviour or a setting changed
27+
- [ ] No hardcoded organisation-specific values, hostnames, credentials, or model
28+
identifiers — anything deployment-specific is configurable with a sane default
29+
- [ ] No new dependency, or a new dependency with a permissive licence and a note below
30+
31+
## Notes for reviewers
32+
33+
<!-- Anything that would be hard to see from the diff: a decision you made and rejected
34+
alternatives, a known limitation, follow-up work. -->

‎.github/workflows/ci.yml‎

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ci-${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-test-package:
18+
name: Lint, build, test, package
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
24+
- name: Set up Node
25+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
26+
with:
27+
node-version-file: .nvmrc
28+
cache: npm
29+
30+
- name: Install root/extension dependencies (exact, from lockfile)
31+
run: npm ci
32+
33+
- name: Install webview dependencies (exact, from lockfile)
34+
run: npm ci
35+
working-directory: vscode-acp/webview-ui
36+
37+
- name: Release invariants (SETUP-*, DOC-*, FINAL-*)
38+
run: bash scripts/check-release-invariants.sh
39+
40+
- name: Lint
41+
run: npm run lint
42+
working-directory: vscode-acp
43+
44+
- name: Compile test harness
45+
run: npm run compile-tests
46+
working-directory: vscode-acp
47+
48+
- name: Compile extension
49+
run: npm run compile
50+
working-directory: vscode-acp
51+
52+
- name: Build webview bundle
53+
run: npm run build
54+
working-directory: vscode-acp/webview-ui
55+
56+
- name: Extension tests (VS Code, headless via xvfb)
57+
run: xvfb-run -a npm test
58+
working-directory: vscode-acp
59+
60+
- name: npm audit — extension host (production dependencies)
61+
run: npm audit --omit=dev
62+
63+
- name: npm audit — webview (production dependencies)
64+
run: npm audit --omit=dev
65+
working-directory: vscode-acp/webview-ui
66+
67+
- name: THIRD-PARTY-NOTICES is up to date with the installed tree
68+
run: node ../scripts/generate-third-party-notices.mjs --check
69+
working-directory: vscode-acp
70+
71+
- name: Package .vsix
72+
run: npm run copy:profiles && npm run copy:legal && npm run package:ext && npx vsce package --no-dependencies
73+
working-directory: vscode-acp
74+
75+
- name: Upload .vsix artifact
76+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
77+
with:
78+
name: ainxt-vscode-extension
79+
path: vscode-acp/*.vsix
80+
if-no-files-found: error
81+
82+
mermaid-render-check:
83+
name: Mermaid diagrams render (DOC-021)
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
88+
89+
- name: Set up Node
90+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
91+
with:
92+
node-version-file: .nvmrc
93+
94+
# mermaid and puppeteer are deliberately not repository dependencies (see
95+
# scripts/check-mermaid-renders.mjs) — install them into a scratch directory
96+
# instead of the tracked node_modules tree.
97+
- name: Install mermaid + puppeteer into a scratch directory
98+
run: |
99+
mkdir -p /tmp/mermaid-scratch
100+
cd /tmp/mermaid-scratch
101+
npm init -y >/dev/null
102+
npm install mermaid puppeteer
103+
104+
- name: Render every mermaid block in tracked markdown
105+
run: node scripts/check-mermaid-renders.mjs --mermaid /tmp/mermaid-scratch/node_modules/mermaid/dist/mermaid.min.js

‎.gitignore‎

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# ─── Node / npm ───────────────────────────────────────────────────────────────
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
.pnpm-debug.log*
7+
# package-lock.json (root) and vscode-acp/webview-ui/package-lock.json are
8+
# intentionally tracked (OSSAUDIT-2026-09-05 / SETUP-041): committing them is
9+
# what makes `npm ci` reproducible for a fresh external clone.
10+
11+
# ─── Build outputs ────────────────────────────────────────────────────────────
12+
dist/
13+
out/
14+
build/
15+
16+
# VS Code extension packages
17+
*.vsix
18+
19+
# Webview React bundle (built by `npm run build` in webview-ui/)
20+
vscode-acp/webview-ui/dist/
21+
22+
# ─── IntelliJ / Gradle ────────────────────────────────────────────────────────
23+
.gradle/
24+
hosts/intellij/build/
25+
hosts/intellij/.idea/
26+
hosts/intellij/.intellijPlatform/
27+
hosts/intellij/.kotlin/
28+
*.class
29+
*.jar
30+
*.zip
31+
local.properties
32+
33+
# The Gradle wrapper jar is not a build output — it is the bootstrap mechanism
34+
# `./gradlew` needs to run at all. Without it committed, a fresh clone cannot
35+
# build the plugin (no jar to invoke, and no Gradle installed to regenerate
36+
# one). Force-include it despite the blanket *.jar rule above.
37+
!hosts/intellij/gradle/wrapper/gradle-wrapper.jar
38+
39+
# ─── Secrets & credentials ────────────────────────────────────────────────────
40+
.env
41+
.env.*
42+
*.env
43+
credentials.json
44+
secrets.json
45+
# Keep .env.example if it ever exists
46+
!.env.example
47+
48+
# ─── Cryptographic material (never commit keys or certificates) ───────────────
49+
*.pem
50+
*.key
51+
*.p12
52+
*.pfx
53+
*.crt
54+
*.cer
55+
*.jks
56+
*.keystore
57+
58+
# ─── OS files ─────────────────────────────────────────────────────────────────
59+
.DS_Store
60+
Thumbs.db
61+
desktop.ini
62+
63+
# ─── Temp / lock files ────────────────────────────────────────────────────────
64+
# Excel/Office lock files (e.g. ~$OSS_IDE_Daily_Status_Report.xlsx)
65+
~$*
66+
*.tmp
67+
*.temp
68+
69+
# ─── Editor files ─────────────────────────────────────────────────────────────
70+
# Keep .vscode/extensions.json (recommended extensions) but ignore personal settings
71+
.vscode/settings.json
72+
.vscode/launch.json
73+
.vscode/tasks.json
74+
.vscode/*.code-workspace
75+
76+
# ─── Configuration profiles (personal overrides) ─────────────────────────────
77+
# Track only the shipped profiles; ignore any personal/local profiles a developer
78+
# might create (e.g. dev.ainxtprofile.json with a real API key or internal URL).
79+
# Organisation-specific profiles are deliberately NOT force-included: they belong
80+
# in the operator's own private configuration, not in the public distribution.
81+
config/*.ainxtprofile.json
82+
!config/oss.ainxtprofile.json
83+
!config/standalone.ainxtprofile.json
84+
85+
# ─── TypeScript ───────────────────────────────────────────────────────────────
86+
*.tsbuildinfo
87+
88+
# ─── Test output ──────────────────────────────────────────────────────────────
89+
coverage/
90+
.nyc_output/
91+
92+
# ---------------------------------------------------------------------------
93+
# Release-audit output. Written into the repository by the OSS compliance
94+
# auditor (`python3 -m ossaudit release --repo .`) and never part of the
95+
# distribution: it contains this tool's own findings, its SBOMs and its
96+
# evidence quotes. Publishing it would ship an internal review artefact, and
97+
# leaving it tracked also means the next audit run scans its own output.
98+
# ---------------------------------------------------------------------------
99+
compliance/
100+
101+
# Copies made at package time by `npm run copy:legal` so the .vsix carries the
102+
# licence and NOTICE (Apache-2.0 s4(a), s4(d)). The root files are the source
103+
# of truth; these copies must not drift from them.
104+
vscode-acp/LICENSE
105+
vscode-acp/NOTICE

‎.nvmrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

‎AUTHORS‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Authors
2+
3+
AiNxt Code is developed and maintained by the AiNxt team.
4+
5+
## Copyright holders
6+
7+
Copyright 2026 AiNxt
8+
9+
## Acknowledgements
10+
11+
This project was originally derived from vscode-acp by Jun Han (formulahendry).
12+
https://github.com/formulahendry/vscode-acp
13+
License: MIT
14+
15+
See NOTICE for full third-party attribution.
16+
17+
## Contributors
18+
19+
Contributors are tracked via git history and GitHub pull requests.
20+
See https://github.com/npci/ainxt-code/graphs/contributors

‎CODEOWNERS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# CODEOWNERS — AiNxt Code
2+
#
3+
# opensource[@]npci.org.in

‎CODE_OF_CONDUCT.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, colour, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

0 commit comments

Comments
 (0)