Skip to content
Closed

Ignore #1708

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
04facd6
feat: basic ai assistant setup and ui
bajrangCoder May 11, 2025
ab8c589
Merge remote-tracking branch 'origin/main' into ai-agent
bajrangCoder May 13, 2025
2be29a2
feat: profile selection dialog
bajrangCoder May 17, 2025
69e4170
toggle able history panel
bajrangCoder May 20, 2025
6c399c8
feat: basic ai assistant chat feature
bajrangCoder May 24, 2025
c103c75
Merge remote-tracking branch 'origin/main' into ai-agent
bajrangCoder May 29, 2025
d890d91
feat: improved code block and fix highlighting
bajrangCoder May 29, 2025
3758122
feat: show loader before ai response stream
bajrangCoder May 30, 2025
6ae8cea
feat: AI assistant with streaming chat,in memory context with agentch…
vizzyfreezy Jun 1, 2025
2d536be
fix: formatting
bajrangCoder Jun 1, 2025
b831048
fix: highlighting, message sync, searchTool
bajrangCoder Jun 1, 2025
863382b
feat: add delete history button and improved few ui styling
bajrangCoder Jun 1, 2025
7884868
Merge branch 'main' into ai-agent
bajrangCoder Jun 1, 2025
4dbb288
feat: system prompt and fix html rendering in codeblock
bajrangCoder Jun 1, 2025
a1d34ce
add edit ui(not the edit functionality)
bajrangCoder Jun 2, 2025
7715ae6
fix: handle error message case and add workspace info in prompt
bajrangCoder Jun 2, 2025
71a33a2
Merge branch 'main' into ai-agent
bajrangCoder Jun 3, 2025
672fbbd
feat: add readFile tool
bajrangCoder Jun 3, 2025
53e1a20
Ai agent in- Memory saver to custom sqlite saver(#3)
vizzyfreezy Jun 3, 2025
3adf208
fix: checkpointers , db issue and tool resp
bajrangCoder Jun 4, 2025
79a229b
feat: add fetch tool
bajrangCoder Jun 4, 2025
086bc2d
Merge remote-tracking branch 'origin/main' into ai-agent
bajrangCoder Jun 6, 2025
40da706
Merge branch 'main' into ai-agent
bajrangCoder Jun 23, 2025
0ec7f37
Merge branch 'main' into ai-agent
bajrangCoder Jun 28, 2025
c53a941
Merge branch 'main' into ai-agent
bajrangCoder Jun 29, 2025
70ced55
Merge branch 'main' into ai-agent
bajrangCoder Jun 29, 2025
71d57fc
feat: add listDirectory tool
bajrangCoder Jun 29, 2025
f9290d2
Merge branch 'main' into ai-agent
bajrangCoder Jul 1, 2025
ad7a427
fix: handle different types of saf uri format in readFile tool
bajrangCoder Jul 1, 2025
f4ff306
resolve conflicts
bajrangCoder Aug 16, 2025
81811cf
Merge branch 'main' into ai-agent
bajrangCoder Aug 17, 2025
949a0e4
fix
bajrangCoder Aug 17, 2025
1a4d4de
fix formatting
bajrangCoder Aug 17, 2025
c047ada
update stuff
bajrangCoder Aug 17, 2025
3a33bf0
feat: add createDir and editFile tool
bajrangCoder Aug 20, 2025
cabe7b2
Add build workflow
Sohil876 Aug 24, 2025
bbd6e67
Create build.json, build apk instead of bundle [skip ci]
Sohil876 Sep 2, 2022
0f8c0f6
Merge branch 'ai-agent' of github.com:bajrangCoder/Acode into bajrang…
Sohil876 Aug 24, 2025
466772e
Merge branch 'bajrangCoder-ai-agent' into ai-test
Sohil876 Aug 24, 2025
e75ba0c
Update build workflow
Sohil876 Aug 24, 2025
9b0fc86
Fix hidealert reference before declaration
Sohil876 Aug 24, 2025
a93c9c2
Add api key and model to settings
Sohil876 Aug 24, 2025
cd6a607
Add missing alert import to ai assistant
Sohil876 Aug 24, 2025
373f3d5
Fix ai assistant settings, fix formatting issues
Sohil876 Aug 24, 2025
a1752db
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Aug 25, 2025
8283659
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Aug 26, 2025
b73113f
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Aug 27, 2025
6d80cd3
Move ai assistant settings to its own section
Sohil876 Aug 28, 2025
1b5c838
Merge branch 'Acode-Foundation:main' into ai-test [skip ci]
Sohil876 Aug 29, 2025
51f5040
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Sep 13, 2025
2177f89
Remove build.json
Sohil876 Sep 13, 2025
dd428d9
Merge branch 'main' into ai-agent
bajrangCoder Sep 18, 2025
772b70e
feat: add terminal, searchCode, openUrl tool
bajrangCoder Sep 18, 2025
5aad9bb
refactor: ai agent behaviour and logic with lots of fixes
bajrangCoder Sep 18, 2025
71afb21
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Sep 23, 2025
e1b952e
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Sep 25, 2025
f0845b4
Merge branch 'ai-agent' of github.com:bajrangCoder/Acode into bajrang…
Sohil876 Sep 25, 2025
b7e449a
Merge branch 'bajrangCoder-ai-agent' into ai-test
Sohil876 Sep 25, 2025
5e3282e
Fix formatting issues for biome, fix missing import
Sohil876 Sep 25, 2025
d8c3e62
Add back gemini support, add provider selector in ai assistant setting
Sohil876 Sep 25, 2025
9a96af4
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 1, 2025
5509eb2
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 3, 2025
4e7bc0f
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 9, 2025
efd4bfb
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 12, 2025
4949ce3
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 14, 2025
5714afa
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 16, 2025
fa65877
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 22, 2025
4e8da1b
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 26, 2025
1479866
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Oct 28, 2025
6b6841a
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Nov 7, 2025
e20a469
Merge branch 'Acode-Foundation:main' into ai-test
Sohil876 Nov 9, 2025
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
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: CI

on:
push:
branches: [ai-test]
pull_request:
branches: [ai-test]
env:
ANDROID_SDK_ROOT: /usr/local/lib/android/sdk

jobs:
spell-check:
Expand Down Expand Up @@ -33,3 +37,58 @@ jobs:

- name: Run Biome
run: biome ci .

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Setup java
uses: actions/setup-java@v4
with:
distribution: "adopt" # See 'Supported distributions' for available options
java-version: "21"

# - name: Workaround for "Build-tool 33.0.0 is missing DX at ..." error
# run: |
# ln -s $ANDROID_SDK_ROOT/build-tools/33.0.0/d8 $ANDROID_SDK_ROOT/build-tools/33.0.0/dx
# ln -s $ANDROID_SDK_ROOT/build-tools/33.0.0/lib/d8.jar $ANDROID_SDK_ROOT/build-tools/33.0.0/lib/dx.jar

- name: Add android sdk tools to path
run: |
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools/
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator/

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install cordova
run: npm install -g cordova

- name: Install yarn
run: npm install -g yarn

- name: Setup project, install app plugins and deps
run: yarn setup

- name: Configure the platform
run: yarn clean

- name: Build Android prod
run: yarn build paid prod

- name: Sign apk
run: |
apksigner="$(find $ANDROID_SDK_ROOT/build-tools -name apksigner | sort -r | head -n 1)"
${apksigner} sign --ks public.jks --ks-key-alias public --ks-pass pass:public --key-pass pass:public --in ./platforms/android/app/build/outputs/apk/release/*.apk --out ./platforms/android/app/build/outputs/apk/release/app-release-signed.apk

- name: Upload apk
uses: actions/upload-artifact@v4
with:
name: app-release-signed
path: ./platforms/android/app/build/outputs/apk/release/app-release-signed.apk
if-no-files-found: error
30 changes: 15 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/node_modules
/build.json
/www/build
/plugins
/platforms
/keystore.jks
/platforms/android/debug-signing.properties
/platforms/android/release-signing.properties
**/*/.DS_Store
.DS_Store
pnpm-lock.yaml
.zed
.idea
ace-builds
fdroid.bool
/node_modules
/www/build
/www/js/build
/www/css/build
/plugins
/platforms
/platforms/android/debug-signing.properties
/platforms/android/release-signing.properties
**/*/.DS_Store
.DS_Store
pnpm-lock.yaml
.zed
.idea
ace-builds
fdroid.bool
40 changes: 40 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Repository Guidelines

## Project Structure & Module Organization
- Source: `src/` (ES modules, SCSS). Key areas: `src/components/`, `src/pages/`, `src/lib/`, `src/plugins/` (Cordova plugins), `src/styles/`.
- Web assets: `www/` (entry `index.html`, build output in `www/build/`, css/js subfolders).
- Config: `webpack.config.js`, `.babelrc`, `biome.json`, `config.xml`.
- Utilities: `utils/` (build, start, setup scripts; language and tooling helpers).

## Build, Test, and Development Commands
- `pnpm run setup`: Install deps, add Android platform, create build dirs, add plugins.
- `pnpm run start -- android d`: Build and run on device/emulator (default dev). For release-like: `pnpm run start -- android p`.
- `pnpm run build`: Build app (defaults to dev). Production example: `pnpm run build -- paid prod`. F-Droid variant: `pnpm run build -- paid prod fdroid`.
- `pnpm run clean -- android android`: Recreate Android platform.
- `pnpm run plugin -- <id> [path]`: Reinstall a Cordova plugin.
- Linting/format: `pnpm run lint`, `pnpm run format`, `pnpm run check` (Biome).

## Coding Style & Naming Conventions
- Formatting: Biome enforced; indent with tabs (`biome.json`). Run `npm run format` before commits.
- Language: ESM JavaScript, SCSS; prefer imports from `src` root (webpack `resolve.modules: ["node_modules", "src"]`).
- Naming: camelCase for files/dirs (e.g., `fileSystem`, `quickTools`), PascalCase for classes/components, kebab-case for SCSS partials when applicable.

## Testing Guidelines
- No formal test runner configured. Provide clear manual verification steps for Android (device/emulator), including affected screens, repro steps, and expected/actual behavior.
- Attach logs when relevant (see issue templates mention of `Acode.log`). Screenshots or screen recordings are encouraged for UI changes.

## Commit & Pull Request Guidelines
- Commits: Follow conventional style when possible (`feat:`, `fix:`, `chore(scope):`, etc.), reference issues (`(#123)`).
- PRs: Include a concise summary, linked issues, screenshots for UI, and test/verification steps. Note any Cordova plugin or config changes.
- Keep diffs focused; run `npm run lint` and ensure `www/build/` is generated by the pipeline, not committed.

## Security & Configuration Tips
- Building for F-Droid: pass `fdroid` as the third arg to `build` to toggle plugin set.
- Do not commit secrets/keystores. Android signing is handled outside the repo; keep `keystore.jks` private.

# When you need to call tools from the shell, use this rubric:

- Find Files: `fd`
- Find Text: `rg` (ripgrep)
- Select among matches: pipe to `fzf`
- JSON: `jq`
Loading