mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
- Created a new document for command and skill references, detailing orchestrator commands, workflow session commands, issue workflow commands, IDAW commands, with-file workflows, cycle workflows, CLI commands, memory commands, team skills, workflow skills, utility skills, and Codex capabilities. - Added a comparison table for workflows, outlining their best uses, levels, self-containment, and automatic chaining behavior.
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import App from './App.tsx'
|
|
import './index.css'
|
|
import 'react-grid-layout/css/styles.css'
|
|
import 'react-resizable/css/styles.css'
|
|
import 'xterm/css/xterm.css'
|
|
import { loadMessagesForLocale, getInitialLocale } from './lib/i18n'
|
|
import { logWebVitals } from './lib/webVitals'
|
|
|
|
async function bootstrapApplication() {
|
|
const rootElement = document.getElementById('root')
|
|
if (!rootElement) throw new Error('Failed to find the root element')
|
|
|
|
// CSRF token initialization is deferred to first mutating request
|
|
// This eliminates network RTT from app startup path
|
|
// See: ccw/frontend/src/lib/api.ts - fetchApi handles lazy token fetch
|
|
const locale = await getInitialLocale()
|
|
|
|
// Load only the active locale's messages (lazy load secondary on demand)
|
|
const messages = await loadMessagesForLocale(locale)
|
|
|
|
const root = createRoot(rootElement)
|
|
root.render(
|
|
<StrictMode>
|
|
<App locale={locale} messages={messages} />
|
|
</StrictMode>
|
|
)
|
|
|
|
// Initialize Web Vitals monitoring (LCP, FID, CLS)
|
|
// Logs metrics to console in development; extend to analytics in production
|
|
logWebVitals()
|
|
}
|
|
|
|
bootstrapApplication().catch((error) => {
|
|
console.error('Failed to bootstrap application:', error)
|
|
})
|