Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
de53b8e
refactor: agent behaviors, objectives generalized, abstracted + agent…
AshishKumar4 Nov 7, 2025
5685c7d
feat: finish most refactor and get it to build
AshishKumar4 Nov 9, 2025
2aea3c7
feat: add ai-based project type detection and workflow support
AshishKumar4 Nov 10, 2025
e8d07af
fix: template initialization
AshishKumar4 Nov 10, 2025
40ab40e
fix: wire up onConnect to coding agent
AshishKumar4 Nov 10, 2025
740bf1c
feat: improve GitHub Actions workflow reliability
AshishKumar4 Nov 10, 2025
a25e72f
refactor: improve type safety in state migration logic
AshishKumar4 Nov 10, 2025
bb09d92
fix: add optional chaining to prevent runtime errors in blueprint ren…
AshishKumar4 Nov 10, 2025
5e4ebb2
feat: general agent
AshishKumar4 Nov 11, 2025
1faaca1
refactor: reorganize project builder architecture + sandbox templatel…
AshishKumar4 Nov 11, 2025
f5a3be6
feat: add project mode selector with agentic behavior support
AshishKumar4 Nov 11, 2025
feca8ca
fix: files format
AshishKumar4 Nov 11, 2025
bb23e88
fix: ensure workspace directory exists before writing files
AshishKumar4 Nov 11, 2025
234860f
feat: replace template manager with ai template selector
AshishKumar4 Nov 11, 2025
97bc622
refactor: integrate conversation history and sync for agentic builder
AshishKumar4 Nov 12, 2025
060cc9e
fix: template import and state init
AshishKumar4 Nov 12, 2025
5deea6a
fix: template cache clear before import + init meta in behavior const…
AshishKumar4 Nov 12, 2025
bbf1979
fix: ui and convo state management
AshishKumar4 Nov 12, 2025
d45f368
fix: convo id uniqueness and improve message deduplication
AshishKumar4 Nov 12, 2025
868ba34
fix: ui auto focus, preview hiding and blueprints
AshishKumar4 Nov 12, 2025
be72055
feat: add completion detection and dependency-aware tool execution
AshishKumar4 Nov 16, 2025
219d2c7
feat: add completion detection and loop prevention to agentic builder…
AshishKumar4 Nov 16, 2025
51f922f
Merge pull request #238 from cloudflare/feat/tool-calling-revamp
AshishKumar4 Nov 17, 2025
06d9ce9
feat: use agentic builder directly for handling user messages
AshishKumar4 Nov 17, 2025
0bfcdbb
feat: presentation specific prompts + prompts restructuring
AshishKumar4 Nov 17, 2025
c479831
Merge branch 'nightly' of github.com:cloudflare/orange-builds into fe…
AshishKumar4 Nov 17, 2025
08d2fc7
refactor: agent behaviors, objectives generalized, abstracted + agent…
AshishKumar4 Nov 7, 2025
d2a7e02
feat: finish most refactor and get it to build
AshishKumar4 Nov 9, 2025
f753f8b
feat: add ai-based project type detection and workflow support
AshishKumar4 Nov 10, 2025
7db6ca2
fix: template initialization
AshishKumar4 Nov 10, 2025
318f6e2
fix: wire up onConnect to coding agent
AshishKumar4 Nov 10, 2025
1e49bb3
feat: improve GitHub Actions workflow reliability
AshishKumar4 Nov 10, 2025
8210b9f
refactor: improve type safety in state migration logic
AshishKumar4 Nov 10, 2025
2a2d86c
fix: add optional chaining to prevent runtime errors in blueprint ren…
AshishKumar4 Nov 10, 2025
45eb5c0
feat: general agent
AshishKumar4 Nov 11, 2025
7ba6257
refactor: reorganize project builder architecture + sandbox templatel…
AshishKumar4 Nov 11, 2025
b34c707
feat: add project mode selector with agentic behavior support
AshishKumar4 Nov 11, 2025
da31e76
fix: files format
AshishKumar4 Nov 11, 2025
17258f3
fix: ensure workspace directory exists before writing files
AshishKumar4 Nov 11, 2025
ca8e7e4
feat: replace template manager with ai template selector
AshishKumar4 Nov 11, 2025
bb1dc96
refactor: integrate conversation history and sync for agentic builder
AshishKumar4 Nov 12, 2025
9f5f787
fix: template import and state init
AshishKumar4 Nov 12, 2025
c6a329e
fix: template cache clear before import + init meta in behavior const…
AshishKumar4 Nov 12, 2025
0323c7a
fix: ui and convo state management
AshishKumar4 Nov 12, 2025
d4ae61d
fix: convo id uniqueness and improve message deduplication
AshishKumar4 Nov 12, 2025
cfe24e3
fix: ui auto focus, preview hiding and blueprints
AshishKumar4 Nov 12, 2025
0f85a7d
feat: add completion detection and dependency-aware tool execution
AshishKumar4 Nov 16, 2025
e926e18
feat: add completion detection and loop prevention to agentic builder…
AshishKumar4 Nov 16, 2025
681bbbe
feat: use agentic builder directly for handling user messages
AshishKumar4 Nov 17, 2025
b6abaca
feat: presentation specific prompts + prompts restructuring
AshishKumar4 Nov 17, 2025
cca8778
refactor: unify template schemas
AshishKumar4 Nov 21, 2025
a4af6b6
Merge branch 'feat/general-agents' of github.com:cloudflare/orange-bu…
AshishKumar4 Nov 21, 2025
e9a31da
Feat: add presentation and documentation preview modes (#234)
AshishKumar4 Nov 21, 2025
d80c416
fix: cleanup chat.tsx for build
AshishKumar4 Nov 18, 2025
29c890f
Merge branch 'feat/refactor-agents-base' of github.com:cloudflare/ora…
AshishKumar4 Nov 22, 2025
053fe1c
Merge branch 'feat/refactor-agents-base' of github.com:cloudflare/ora…
AshishKumar4 Nov 23, 2025
00fc51c
feat: agentic streaming presentations finally working
AshishKumar4 Nov 24, 2025
5b96591
fix: preview update fixes + navigation
AshishKumar4 Nov 24, 2025
09653ba
feat: rewrite presentation preview system
AshishKumar4 Nov 25, 2025
ff47fc8
feat: bug fixes + save manifest and slides proactively upon generation
AshishKumar4 Nov 25, 2025
7faf0e0
feat: some prompt improvements in agentic project builder
AshishKumar4 Nov 25, 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
65 changes: 27 additions & 38 deletions .github/workflows/claude-reviews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request_review_comment:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
comprehensive-review:
name: PR Description & Code Review
Expand All @@ -30,6 +34,29 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Delete Previous Claude Comments
run: |
echo "🧹 Deleting previous Claude comments from github-actions bot..."

# Get all comments from github-actions bot containing 'Claude'
CLAUDE_COMMENTS=$(gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
--jq '[.[] | select(.user.login == "github-actions[bot]") | select(.body | contains("Claude")) | .id]')

if [ "$CLAUDE_COMMENTS" = "[]" ] || [ -z "$CLAUDE_COMMENTS" ]; then
echo "No previous Claude comments found"
else
echo "Found Claude comments to delete:"
echo "$CLAUDE_COMMENTS" | jq -r '.[]' | while read comment_id; do
echo "Deleting comment $comment_id"
gh api repos/${{ github.repository }}/issues/comments/$comment_id -X DELETE || echo "Failed to delete comment $comment_id"
done
echo "✅ Deleted previous Claude comments"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true

- name: Detect Critical Paths
id: critical_paths
run: |
Expand Down Expand Up @@ -147,41 +174,3 @@ jobs:
--max-turns ${{ steps.critical_paths.outputs.is_critical == 'true' && '90' || '65' }}
--model claude-sonnet-4-5-20250929

- name: Intelligent Comment Cleanup
uses: anthropics/claude-code-action@v1
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Clean up stale bot comments on PR #${{ github.event.pull_request.number }}.

**Task:**
1. Fetch all comments on this PR
2. Identify bot comments (users ending in [bot]) that are stale/outdated:
- Old reviews superseded by newer ones
- Old PR description suggestions
- Previously collapsed/outdated markers
- Progress/status comments from previous workflow runs
3. Keep only the most recent comment per category per bot
4. DELETE all stale comments (do not collapse)

**Get all comments:**
```bash
gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments --jq '.[] | {id, user: .user.login, body, created_at}'
```

**Delete a comment:**
```bash
gh api repos/${{ github.repository }}/issues/comments/COMMENT_ID -X DELETE
```

Be intelligent:
- Preserve the newest useful comment in each category
- Delete everything else that's redundant or stale
- If unsure, keep the comment (conservative approach)

claude_args: |
--allowed-tools "Bash(gh api repos/*/issues/*/comments:*),Bash(gh api repos/*/issues/comments/*:*)"
--max-turns 8
--model claude-haiku-4-5-20251001
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ debug-tools/*.json
# Sentry Config File
.env.sentry-build-plugin
data-dump
debug-tools/extracted
debug-tools/extracted
debug-tools/presentation-tester
633 changes: 585 additions & 48 deletions bun.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default {
'type-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'header-max-length': [2, 'always', 100],
'header-max-length': [2, 'always', 150],
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'body-max-line-length': [2, 'always', 200],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'footer-max-line-length': [2, 'always', 200],
},
};
32 changes: 32 additions & 0 deletions debug-tools/presentation-tester/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "presentation-tester",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"fflate": "^0.8.2",
"reveal.js": "^5.1.0",
"sucrase": "^3.35.0",
"framer-motion": "^11.11.17",
"lucide-react": "^0.344.0",
"clsx": "^2.1.1",
"tailwind-merge": "^2.5.4"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"tailwindcss": "^3.4.15",
"postcss": "^8.4.49",
"autoprefixer": "^10.4.20"
}
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' blob: https://cdnjs.cloudflare.com https://cdn.tailwindcss.com https://esm.sh; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; connect-src 'self' wss: ws: http: https:; frame-src 'self' http://*.localhost:* https://*;" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Caveat:wght@600&display=swap" rel="stylesheet">
Expand Down
29 changes: 26 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"lint": "eslint .",
"preview": "npm run build && vite preview",
"deploy": "bun --env-file .prod.vars scripts/deploy.ts",
"cli": "tsx --tsconfig tsconfig.app.json cli/index.ts",
"tui": "tsx --tsconfig tsconfig.app.json cli/tui.tsx",
"cf-typegen": "wrangler types --include-runtime false",
"test": "vitest run",
"test:watch": "vitest",
Expand All @@ -35,6 +37,8 @@
},
"dependencies": {
"@ashishkumar472/cf-git": "1.0.5",
"@babel/parser": "^7.28.5",
"@babel/traverse": "^7.28.5",
"@cloudflare/containers": "^0.0.28",
"@cloudflare/sandbox": "0.4.14",
"@noble/ciphers": "^1.3.0",
Expand Down Expand Up @@ -69,6 +73,8 @@
"@sentry/cloudflare": "^10.22.0",
"@sentry/react": "^10.22.0",
"@sentry/vite-plugin": "^4.6.0",
"@types/babel__core": "^7.20.5",
"@types/babel__traverse": "^7.28.0",
"@typescript-eslint/eslint-plugin": "^8.46.2",
"@typescript-eslint/parser": "^8.46.2",
"@typescript-eslint/typescript-estree": "^8.46.2",
Expand All @@ -77,6 +83,7 @@
"agents": "^0.2.20",
"chalk": "^5.6.2",
"class-variance-authority": "^0.7.1",
"cli-table3": "^0.6.5",
"cloudflare": "^4.5.0",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
Expand All @@ -90,9 +97,11 @@
"eslint-plugin-import": "^2.32.0",
"fflate": "^0.8.2",
"framer-motion": "^12.23.24",
"highlight.js": "^11.11.1",
"hono": "^4.10.4",
"html2canvas-pro": "^1.5.12",
"html2canvas-pro": "^1.5.13",
"input-otp": "^1.4.2",
"inquirer": "^12.11.0",
"jose": "^5.10.0",
"jsonc-parser": "^3.3.1",
"latest": "^0.2.0",
Expand All @@ -102,6 +111,7 @@
"next-themes": "^0.4.6",
"node-fetch": "^3.3.2",
"openai": "^5.23.2",
"ora": "^9.0.0",
"partysocket": "^1.1.6",
"perfect-arrows": "^0.3.7",
"react": "^19.2.0",
Expand All @@ -115,11 +125,14 @@
"recharts": "^3.3.0",
"rehype-external-links": "^3.0.0",
"remark-gfm": "^4.0.1",
"reveal.js": "^5.2.1",
"sonner": "^2.0.7",
"sucrase": "^3.35.0",
"suffix-array": "^0.1.4",
"tailwind-merge": "^3.3.1",
"vaul": "^1.1.2",
"vite-plugin-svgr": "^4.5.0",
"ws": "^8.18.3",
"zod": "^3.25.76"
},
"devDependencies": {
Expand All @@ -131,10 +144,13 @@
"@eslint/js": "^9.39.0",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.16",
"@types/inquirer": "^9.0.9",
"@types/jest": "^29.5.14",
"@types/node": "^22.18.13",
"@types/react": "^19.2.2",
"@types/react": "^19.2.3",
"@types/react-dom": "^19.2.2",
"@types/reveal.js": "^5.2.1",
"@types/ws": "^8.18.1",
"@vitejs/plugin-react-swc": "^3.11.0",
"drizzle-kit": "^0.31.6",
"eslint": "^9.39.0",
Expand All @@ -143,8 +159,15 @@
"glob": "^11.0.3",
"globals": "^16.5.0",
"husky": "^9.1.7",
"ink": "^6.4.0",
"ink-big-text": "^2.0.0",
"ink-box": "^2.0.0",
"ink-gradient": "^3.0.0",
"ink-spinner": "^5.0.0",
"ink-text-input": "^6.0.0",
"jest": "^29.7.0",
"knip": "^5.66.4",
"open": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"tailwindcss": "^4.1.16",
Expand All @@ -157,7 +180,7 @@
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-node-polyfills": "^0.24.0",
"vitest": "^3.2.4",
"wrangler": "4.45.0"
"wrangler": "4.50.0"
},
"prettier": {
"singleQuote": true,
Expand Down
34 changes: 27 additions & 7 deletions src/api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,19 @@ export type {
SecretTemplatesData
} from 'worker/api/controllers/secrets/types';

// Agent/CodeGen API Types
// Agent/CodeGen API Types
export type {
AgentConnectionData,
} from 'worker/api/controllers/agent/types';

// Template Types
export type {
TemplateDetails,
} from 'worker/services/sandbox/sandboxTypes';

// WebSocket Types
export type {
WebSocketMessage,
export type {
WebSocketMessage,
WebSocketMessageData,
CodeFixEdits,
ModelConfigsInfoMessage,
Expand All @@ -139,17 +144,24 @@ export type {
} from 'worker/database/types';

// Agent/Generator Types
export type {
export type {
Blueprint as BlueprintType,
PhasicBlueprint,
CodeReviewOutputType,
FileConceptType,
FileOutputType as GeneratedFile,
} from 'worker/agents/schemas';

export type {
CodeGenState
export type {
AgentState,
PhasicState
} from 'worker/agents/core/state';

export type {
BehaviorType,
ProjectType
} from 'worker/agents/core/types';

export type {
ConversationMessage,
} from 'worker/agents/inferutils/common';
Expand All @@ -171,7 +183,7 @@ export type {
export type { RateLimitError } from "worker/services/rate-limit/errors";
export type { AgentPreviewResponse, CodeGenArgs } from 'worker/api/controllers/agent/types';
export type { RateLimitErrorResponse } from 'worker/api/responses';
export { RateLimitExceededError, SecurityError, SecurityErrorType } from 'shared/types/errors';
export { RateLimitExceededError, SecurityError, SecurityErrorType } from '../shared/types/errors.js';

export type { AIModels } from 'worker/agents/inferutils/config.types';
// Model selection types
Expand Down Expand Up @@ -246,6 +258,14 @@ export interface CsrfTokenResponseData {
expiresIn?: number;
}

// CLI Token Response - for CLI authentication
export interface CliTokenData {
token: string;
expiresIn: number;
expiresAt: string;
instructions: string;
}

// Active Sessions Response - matches getUserSessions + isCurrent from controller
export interface ActiveSessionsData {
sessions: Array<{
Expand Down
2 changes: 1 addition & 1 deletion src/components/config-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { Card, CardContent, CardHeader } from '@/components/ui/card';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
import type { AgentDisplayConfig, ModelConfig, UserModelConfigWithMetadata } from '@/api-types';
import type { ModelConfig, UserModelConfigWithMetadata, AgentDisplayConfig } from '@/api-types';

interface ConfigCardProps {
agent: AgentDisplayConfig;
Expand Down
8 changes: 4 additions & 4 deletions src/components/config-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import {
import { Alert, AlertDescription } from '@/components/ui/alert';
import { apiClient } from '@/lib/api-client';
import { ByokApiKeysModal } from './byok-api-keys-modal';
import type {
ModelConfig,
UserModelConfigWithMetadata,
ModelConfigUpdate,
import type {
ModelConfig,
UserModelConfigWithMetadata,
ModelConfigUpdate,
AIModels,
ByokProvidersData,
AgentDisplayConfig
Expand Down
7 changes: 6 additions & 1 deletion src/components/model-config-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import { Badge } from '@/components/ui/badge';
import { toast } from 'sonner';
import { ConfigCard } from './config-card';
import { ConfigModal } from './config-modal';
import type { ModelConfig, UserModelConfigWithMetadata, ModelConfigUpdate, AgentDisplayConfig } from '@/api-types';
import type {
ModelConfig,
UserModelConfigWithMetadata,
ModelConfigUpdate,
AgentDisplayConfig
} from '@/api-types';

// Define workflow-based tab structure with dynamic agent categorization
export const WORKFLOW_TABS = {
Expand Down
Loading
Loading