Skip to content

Commit 14c1e20

Browse files
authored
Merge pull request #28 from gitbito/release/1.8.4
release/1.8.4
2 parents b02da38 + 5ffd18d commit 14c1e20

5 files changed

Lines changed: 184 additions & 11 deletions

File tree

README.md

Lines changed: 117 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,22 @@
6262
<a href="#6-sso-authentication">SSO Authentication</a>
6363
</li>
6464
<li>
65-
<a href="#7-configuring-ai-architect-for-bito-ai-code-review-agent">Configuring AI Architect for Bito AI Code Review Agent</a>
65+
<a href="#7-insights">Insights</a>
6666
</li>
6767
<li>
68-
<a href="#8-command-reference">Command reference</a>
68+
<a href="#8-configuring-ai-architect-for-bito-ai-code-review-agent">Configuring AI Architect for Bito AI Code Review Agent</a>
6969
</li>
7070
<li>
71-
<a href="#9-troubleshooting-guide">Troubleshooting guide</a>
71+
<a href="#9-command-reference">Command reference</a>
7272
</li>
7373
<li>
74-
<a href="#10-upgrading-ai-architect">Upgrading AI Architect</a>
74+
<a href="#10-troubleshooting-guide">Troubleshooting guide</a>
7575
</li>
7676
<li>
77-
<a href="#11-support--contact">Support & contact</a>
77+
<a href="#11-upgrading-ai-architect">Upgrading AI Architect</a>
78+
</li>
79+
<li>
80+
<a href="#12-support--contact">Support & contact</a>
7881
</li>
7982
</ol>
8083
</details>
@@ -546,9 +549,97 @@ SSO sessions are configurable with the following defaults:
546549

547550
<br />
548551

552+
<!-- Insights -->
553+
554+
## 7. Insights
555+
556+
AI Architect optionally enriches the knowledge graph with context from Jira, and Confluence giving coding agents deeper understanding of project activity, planned work, and documentation.
557+
558+
> **Note:** Insights is an optional feature. Repository indexing and MCP functionality work without it.
559+
560+
---
561+
562+
### Enabling and disabling features
563+
564+
Enable one or more insights sources during installation (when prompted) or at any time post-install:
565+
566+
```bash
567+
bitoarch insights enable git
568+
bitoarch insights enable ticket-tracker
569+
bitoarch insights enable docs
570+
```
571+
572+
Each `enable` command runs an interactive setup that collects the required credentials.
573+
574+
To disable a feature:
575+
576+
```bash
577+
bitoarch insights disable git
578+
bitoarch insights disable ticket-tracker
579+
bitoarch insights disable docs
580+
```
581+
582+
---
583+
584+
### Running insights
585+
586+
```bash
587+
bitoarch insights run
588+
bitoarch insights run --force # Force a full refresh
589+
```
590+
591+
---
592+
593+
### Checking status
594+
595+
```bash
596+
bitoarch insights status
597+
```
598+
599+
---
600+
601+
### Managing Jira project keys
602+
603+
```bash
604+
bitoarch insights tracker-projects list
605+
bitoarch insights tracker-projects add KEY1 KEY2
606+
bitoarch insights tracker-projects remove KEY1
607+
bitoarch insights discover-tracker-projects
608+
```
609+
610+
---
611+
612+
### Updating credentials
613+
614+
```bash
615+
bitoarch insights update-ticket-tracker
616+
bitoarch insights update-doc-config
617+
```
618+
619+
---
620+
621+
### Viewing configuration
622+
623+
```bash
624+
bitoarch insights config
625+
```
626+
627+
---
628+
629+
### Configuring lookback period
630+
631+
```bash
632+
bitoarch insights set-lookback git 90
633+
bitoarch insights set-lookback ticket-tracker 180
634+
```
635+
636+
---
637+
638+
<br />
639+
549640
<!-- Configuring AI Architect for Bito AI Code Review Agent -->
550641

551-
## 7. Configuring AI Architect for Bito AI Code Review Agent
642+
## 8. Configuring AI Architect for Bito AI Code Review Agent
552643

553644
Now that you have **AI Architect** set up, you can take your code quality to the next level by integrating it with **[Bito's AI Code Review Agent](https://bito.ai/product/ai-code-review-agent/)**. This powerful combination delivers significantly more accurate and context-aware code reviews by leveraging the deep codebase knowledge graph that AI Architect has built.
554645

@@ -579,7 +670,7 @@ This enables the AI Code Review Agent to:
579670

580671
<!-- Command reference -->
581672

582-
## 8. Command reference
673+
## 9. Command reference
583674

584675
Quick reference to CLI commands for managing Bito's AI Architect.
585676

@@ -659,6 +750,21 @@ Quick reference to CLI commands for managing Bito's AI Architect.
659750
| `bitoarch sso disable` | Disable SSO (temporary or permanent) | `bitoarch sso disable` |
660751
| `bitoarch sso rotate-key` | Rotate SSO tenant management key | `bitoarch sso rotate-key` |
661752

753+
### Insights
754+
755+
| Command | Description | Example |
756+
|---------|-------------|---------|
757+
| `bitoarch insights enable [feature]` | Enable an insights feature (`git`, `ticket-tracker`, or `docs`) | `bitoarch insights enable git` |
758+
| `bitoarch insights disable [feature]` | Disable an insights feature | `bitoarch insights disable ticket-tracker` |
759+
| `bitoarch insights run [--force]` | Run insights. `--force` forces a full refresh | `bitoarch insights run` |
760+
| `bitoarch insights status` | Show insights progress | `bitoarch insights status` |
761+
| `bitoarch insights config` | Show insights configuration | `bitoarch insights config` |
762+
| `bitoarch insights set-lookback [feature] [days]` | Set lookback period for a feature | `bitoarch insights set-lookback git 90` |
763+
| `bitoarch insights tracker-projects [action]` | Manage Jira project keys (`list`, `add`, `remove`, `set`) | `bitoarch insights tracker-projects add PROJ` |
764+
| `bitoarch insights discover-tracker-projects` | List accessible Jira projects | `bitoarch insights discover-tracker-projects` |
765+
| `bitoarch insights update-ticket-tracker` | Update ticket-tracker credentials | `bitoarch insights update-ticket-tracker` |
766+
| `bitoarch insights update-doc-config` | Update Confluence credentials | `bitoarch insights update-doc-config` |
767+
662768
### Output options
663769

664770
Add these flags to any command:
@@ -691,7 +797,7 @@ bitoarch --version
691797

692798
<!-- Troubleshooting guide -->
693799

694-
## 9. Troubleshooting guide
800+
## 10. Troubleshooting guide
695801

696802
```bash
697803
# Check all services
@@ -736,7 +842,7 @@ bitoarch update
736842
---
737843

738844

739-
## 10. Upgrading AI Architect
845+
## 11. Upgrading AI Architect
740846

741847
[](#overview)
742848

@@ -830,7 +936,7 @@ curl -fsSL https://aiarchitect.bito.ai/install.sh | bash
830936

831937
<!-- Support & contact -->
832938

833-
## 11. Support & contact
939+
## 12. Support & contact
834940

835941
For comprehensive information and guidance on the AI Architect, including installation and configuration instructions, please refer to our detailed **[documentation available here](https://docs.bito.ai/ai-architect/overview)**. Should you require further assistance or have any inquiries, our support team is readily available to assist you.
836942

@@ -850,4 +956,4 @@ Feel free to reach out to us via email at: **[support@bito.ai](mailto:support@bi
850956
[issues-shield]: https://img.shields.io/github/issues/gitbito/ai-architect.svg?style=for-the-badge
851957
[issues-url]: https://github.com/gitbito/ai-architect/issues
852958
[license-shield]: https://img.shields.io/github/license/gitbito/ai-architect.svg?style=for-the-badge
853-
[license-url]: https://github.com/gitbito/ai-architect?tab=MIT-1-ov-file#readme
959+
[license-url]: https://github.com/gitbito/ai-architect?tab=MIT-1-ov-file#readme

bito-ai-architect-1.8.2.tar.gz

-256 KB
Binary file not shown.

bito-ai-architect-1.8.4.tar.gz

285 KB
Binary file not shown.

install.default.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,27 @@ resources:
7474
# cis_config: 5003
7575
# mysql: 5004
7676
# cis_tracker: 5005
77+
78+
# OPTIONAL: Insights features. Run independently; both work better together.
79+
# Set "true" to enable a feature; leave empty to be prompted during install.
80+
insights:
81+
git: "" # set to true to enable commit-history insights (reuses git creds above)
82+
83+
ticket_tracker:
84+
enabled: "" # set to true to enable Jira ticket insights
85+
provider: jira # jira (only supported provider today)
86+
base_url: "" # e.g. https://acme.atlassian.net
87+
email: ""
88+
api_token: "" # Atlassian → security → API tokens
89+
host_type: cloud # cloud | self
90+
project_keys: "" # comma-separated string ONLY (e.g. "PROJ,INFRA") — YAML list will fail
91+
92+
docs:
93+
enabled: "" # set to true to enable Confluence docs insights
94+
provider: confluence # confluence (only supported provider today)
95+
url: "" # e.g. https://acme.atlassian.net (with or without /wiki — we normalize)
96+
email: "" # defaults to ticket_tracker.email
97+
api_token: ""
98+
99+
git_lookback_days: "" # git insights lookback (days, default: 180, max: 730)
100+
jira_lookback_days: "" # jira insights lookback (days, default: 180, max: 730)

upgrade.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,21 @@ migrate_config() {
768768
merge_new_env_configs "$NEW_ENV"
769769
fi
770770

771+
# Migrate legacy unified lookback to per-feature keys (pre-1.8.4).
772+
if [[ -f "$NEW_ENV" ]] && grep -qE '^INSIGHTS_LOOKBACK_DAYS=' "$NEW_ENV"; then
773+
local _legacy_lb
774+
_legacy_lb=$(grep -E '^INSIGHTS_LOOKBACK_DAYS=' "$NEW_ENV" | cut -d= -f2- | tr -d '"' | tr -d "'")
775+
if [ -n "$_legacy_lb" ]; then
776+
grep -qE '^INSIGHTS_GIT_LOOKBACK_DAYS=.+' "$NEW_ENV" \
777+
|| sed -i.bak "s|^INSIGHTS_GIT_LOOKBACK_DAYS=.*|INSIGHTS_GIT_LOOKBACK_DAYS=${_legacy_lb}|" "$NEW_ENV"
778+
grep -qE '^INSIGHTS_JIRA_LOOKBACK_DAYS=.+' "$NEW_ENV" \
779+
|| sed -i.bak "s|^INSIGHTS_JIRA_LOOKBACK_DAYS=.*|INSIGHTS_JIRA_LOOKBACK_DAYS=${_legacy_lb}|" "$NEW_ENV"
780+
fi
781+
sed -i.bak '/^INSIGHTS_LOOKBACK_DAYS=/d' "$NEW_ENV"
782+
rm -f "${NEW_ENV}.bak"
783+
log_silent "Migrated INSIGHTS_LOOKBACK_DAYS to per-feature keys"
784+
fi
785+
771786
# Replace TEMPORAL_MYSQL_PASSWORD placeholder with a real random secret.
772787
# The default template ships CHANGE_THIS_PASSWORD so every install would
773788
# otherwise end up with the same well-known password for temporal_user.
@@ -932,6 +947,8 @@ volumes:
932947
ai_architect_temp:
933948
external: true
934949
name: ${old_volumes_project}_ai_architect_temp
950+
ai_architect_insights:
951+
driver: local
935952
EOF
936953
log_silent "Volume config: external (from $old_volumes_project)"
937954
else
@@ -946,6 +963,8 @@ volumes:
946963
driver: local
947964
ai_architect_temp:
948965
driver: local
966+
ai_architect_insights:
967+
driver: local
949968
EOF
950969
log_silent "Volume config: fresh local volumes"
951970
fi
@@ -1661,6 +1680,17 @@ run_database_migrations() {
16611680
return 0
16621681
}
16631682

1683+
_version_lt() {
1684+
local IFS='.'
1685+
local i v1=($1) v2=($2)
1686+
for ((i=0; i<3; i++)); do
1687+
local a=${v1[i]:-0} b=${v2[i]:-0}
1688+
(( a < b )) && return 0
1689+
(( a > b )) && return 1
1690+
done
1691+
return 1
1692+
}
1693+
16641694
_resolve_new_version() {
16651695
local v=""
16661696
if [[ -f "${NEW_DIR}/versions/service-versions.json" ]]; then
@@ -1670,6 +1700,17 @@ _resolve_new_version() {
16701700
echo "$v"
16711701
}
16721702

1703+
_print_insights_announcement() {
1704+
if _version_lt "${CURRENT_VERSION:-0.0.0}" "1.8.4"; then
1705+
echo ""
1706+
echo -e " ${GREEN}──────────────────────────────────────────────────────${NC}"
1707+
echo -e " ${GREEN}NEW:${NC} Insights — enrich the knowledge graph with context from Git history, Jira, and Confluence."
1708+
echo -e " Run ${YELLOW}bitoarch insights --help${NC} to get started."
1709+
echo -e " ${GREEN}──────────────────────────────────────────────────────${NC}"
1710+
echo ""
1711+
fi
1712+
}
1713+
16731714
print_kubernetes_success() {
16741715
local new_version
16751716
new_version=$(_resolve_new_version)
@@ -1682,6 +1723,7 @@ print_kubernetes_success() {
16821723
echo -e " ${YELLOW}bitoarch status${NC}"
16831724
echo -e " ${YELLOW}bitoarch index-status${NC}"
16841725
echo ""
1726+
_print_insights_announcement
16851727
echo -e "Log: ${LOG_FILE}"
16861728
echo -e "Cleanup: ${YELLOW}rm -rf ${OLD_DIR}${NC} (after verifying new version)"
16871729
echo ""
@@ -1707,6 +1749,7 @@ print_success() {
17071749
echo -e " ${BLUE}cd ${NEW_DIR}${NC}"
17081750
echo -e " ${YELLOW}bitoarch status${NC}"
17091751
echo ""
1752+
_print_insights_announcement
17101753
echo -e "Log: ${LOG_FILE}"
17111754
echo -e "Cleanup: ${YELLOW}rm -rf ${OLD_DIR}${NC} (after verifying new version)"
17121755
echo ""

0 commit comments

Comments
 (0)