@bamptee/aia-code 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamptee/aia-code",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "AI Architecture Assistant - orchestrate AI-assisted development workflows via CLI tools (Claude, Codex, Gemini)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -4,6 +4,7 @@ import yaml from 'yaml';
4
4
  import { AIA_DIR } from '../constants.js';
5
5
 
6
6
  const DEFAULT_CONFIG = {
7
+ projectName: 'My Project',
7
8
  models: {
8
9
  brief: [
9
10
  { model: 'claude-default', weight: 1 },
@@ -101,10 +101,20 @@ function parseRoute(hash) {
101
101
  function App() {
102
102
  const hash = useHashRoute();
103
103
  const { page, name } = parseRoute(hash);
104
+ const [projectName, setProjectName] = React.useState('');
105
+
106
+ React.useEffect(() => {
107
+ api.get('/config').then(data => {
108
+ if (data.parsed?.projectName) setProjectName(data.parsed.projectName);
109
+ }).catch(() => {});
110
+ }, []);
104
111
 
105
112
  return React.createElement('div', { className: 'min-h-screen' },
106
113
  React.createElement('nav', { className: 'border-b border-aia-border px-6 py-3 flex items-center gap-6' },
107
114
  React.createElement('a', { href: '#/', className: 'text-aia-accent font-bold text-lg hover:text-sky-300' }, 'AIA'),
115
+ projectName && React.createElement('span', {
116
+ className: 'bg-violet-500/20 text-violet-300 border border-violet-500/30 px-2 py-0.5 rounded text-xs font-medium',
117
+ }, projectName),
108
118
  React.createElement('a', { href: '#/', className: 'text-slate-400 hover:text-slate-200 text-sm' }, 'Features'),
109
119
  React.createElement('a', { href: '#/config', className: 'text-slate-400 hover:text-slate-200 text-sm' }, 'Config'),
110
120
  ),