Claude-Code Web | Professional AI Coding Agent
Claude-Code initialized...
$ Running QueryEngine.ts... success.
// server.ts - The SaaS Bridge
import express from 'express';
import { QueryEngine } from './src/QueryEngine'; // From your code
const app = express();
app.use(express.json());
app.post('/api/execute', async (req, res) => {
const { prompt, context } = req.body;
try {
const engine = new QueryEngine();
// Silently using your cost-tracker.ts logic here
const result = await engine.query(prompt, context);
res.status(200).json({
status: 'success',
output: result,
creditsUsed: 0.05
});
} catch (error) {
res.status(500).json({ error: 'Execution failed' });
}
});
app.listen(3000, () => console.log('SaaS Backend active on port 3000'));
[shou@dev claude-code % ls -alht cli.js.map
-rw-r--r-- 1 shou staff 57M Mar 31 01:16 cli.js.map
[shou@dev claude-code % ls -alht src
total 2304
drwxr-xr-x 8 shou staff 256B Mar 31 01:17 entrypoints
-rw-r--r-- 1 shou staff 785K Mar 31 01:17 main.tsx
drwxr-xr-x 55 shou staff 1.7K Mar 31 01:17 cli
drwxr-xr-x 10 shou staff 320B Mar 31 01:17 commands
drwxr-xr-x 303 shou staff 3.2K Mar 31 01:17 utils
drwxr-xr-x 331 shou staff 10K Mar 31 01:17 components
drwxr-xr-x 146 shou staff 4.6K Mar 31 01:17 config
-rw-r--r-- 1 shou staff 46K Mar 31 01:17 QueryEngine.ts
-rw-r--r-- 1 shou staff 20K Mar 31 01:17 setup.ts
drwxr-xr-x 5 shou staff 160B Mar 31 01:17 server
drwxr-xr-x 13 shou staff 416B Mar 31 01:17 migrations
drwxr-xr-x 16 shou staff 512B Mar 31 01:17 keybindings
drwxr-xr-x 6 shou staff 192B Mar 31 01:17 skills
drwxr-xr-x 4 shou staff 128B Mar 31 01:17 plugins
-rw-r--r-- 1 shou staff 22K Mar 31 01:17 dialogLaunchers.tsx
drwxr-xr-x 5 shou staff 160B Mar 31 01:17 screens
drwxr-xr-x 87 shou staff 2.7K Mar 31 01:17 hooks
-rw-r--r-- 1 shou staff 56K Mar 31 01:17 interactiveHelpers.tsx
drwxr-xr-x 38 shou staff 1.2K Mar 31 01:17 services
-rw-r--r-- 1 shou staff 3.4K Mar 31 01:17 replLauncher.tsx
-rw-r--r-- 1 shou staff 117B Mar 31 01:17 costHook.ts
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 moreRight
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 assistant
drwxr-xr-x 6 shou staff 192B Mar 31 01:17 remote
drwxr-xr-x 7 shou staff 224B Mar 31 01:17 vim
drwxr-xr-x 8 shou staff 256B Mar 31 01:17 buddy
drwxr-xr-x 33 shou staff 1.0K Mar 31 01:17 bridge
drwxr-xr-x 8 shou staff 256B Mar 31 01:17 state
drwxr-xr-x 11 shou staff 352B Mar 31 01:17 context
drwxr-xr-x 4 shou staff 128B Mar 31 01:17 upstreamproxy
drwxr-xr-x 23 shou staff 736B Mar 31 01:17 constants
drwxr-xr-x 10 shou staff 320B Mar 31 01:17 types
-rw-r--r-- 1 shou staff 3.1K Mar 31 01:17 Task.ts
drwxr-xr-x 10 shou staff 320B Mar 31 01:17 memdir
-rw-r--r-- 1 shou staff 25K Mar 31 01:17 commands.ts
drwxr-xr-x 5 shou staff 160B Mar 31 01:17 native-ts
-rw-r--r-- 1 shou staff 14K Mar 31 01:17 history.ts
-rw-r--r-- 1 shou staff 2.3K Mar 31 01:17 projectOnboardingState.ts
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 outputStyles
-rw-r--r-- 1 shou staff 67K Mar 31 01:17 query.ts
drwxr-xr-x 6 shou staff 192B Mar 31 01:17 query
drwxr-xr-x 11 shou staff 352B Mar 31 01:17 tasks
-rw-r--r-- 1 shou staff 17K Mar 31 01:17 tools.ts
drwxr-xr-x 45 shou staff 1.4K Mar 31 01:17 tools
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 voice
-rw-r--r-- 1 shou staff 1.3K Mar 31 01:17 tasks.ts
-rw-r--r-- 1 shou staff 10K Mar 31 01:17 cost-tracker.ts
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 coordinator
-rw-r--r-- 1 shou staff 6.3K Mar 31 01:17 context.ts
-rw-r--r-- 1 shou staff 3.8K Mar 31 01:17 ink.ts
drwxr-xr-x 50 shou staff 1.6K Mar 31 01:17 ink
-rw-r--r-- 1 shou staff 29K Mar 31 01:17 Tool.ts
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 schemas
drwxr-xr-x 3 shou staff 96B Mar 31 01:17 bootstrap
drwxr-xr-x 12 shou staff 384B Mar 31 01:17 ..
Comments
Post a Comment