antigravity-mobile-proxy 0.1.0
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/README.md +362 -0
- package/app/api/v1/artifacts/[convId]/[filename]/route.ts +75 -0
- package/app/api/v1/artifacts/[convId]/route.ts +47 -0
- package/app/api/v1/artifacts/active/[filename]/route.ts +50 -0
- package/app/api/v1/artifacts/active/route.ts +89 -0
- package/app/api/v1/artifacts/route.ts +43 -0
- package/app/api/v1/chat/action/route.ts +30 -0
- package/app/api/v1/chat/approve/route.ts +21 -0
- package/app/api/v1/chat/history/route.ts +23 -0
- package/app/api/v1/chat/mode/route.ts +59 -0
- package/app/api/v1/chat/new/route.ts +21 -0
- package/app/api/v1/chat/reject/route.ts +21 -0
- package/app/api/v1/chat/route.ts +105 -0
- package/app/api/v1/chat/state/route.ts +23 -0
- package/app/api/v1/chat/stream/route.ts +258 -0
- package/app/api/v1/conversations/active/route.ts +117 -0
- package/app/api/v1/conversations/route.ts +189 -0
- package/app/api/v1/conversations/select/route.ts +114 -0
- package/app/api/v1/debug/dom/route.ts +30 -0
- package/app/api/v1/debug/scrape/route.ts +56 -0
- package/app/api/v1/health/route.ts +13 -0
- package/app/api/v1/windows/cdp-start/route.ts +32 -0
- package/app/api/v1/windows/cdp-status/route.ts +32 -0
- package/app/api/v1/windows/close/route.ts +67 -0
- package/app/api/v1/windows/open/route.ts +49 -0
- package/app/api/v1/windows/recent/route.ts +25 -0
- package/app/api/v1/windows/route.ts +27 -0
- package/app/api/v1/windows/select/route.ts +35 -0
- package/app/debug/page.tsx +228 -0
- package/app/favicon.ico +0 -0
- package/app/globals.css +1234 -0
- package/app/layout.tsx +42 -0
- package/app/page.tsx +10 -0
- package/bin/cli.js +698 -0
- package/components/agent-message.tsx +63 -0
- package/components/artifact-panel.tsx +133 -0
- package/components/chat-container.tsx +82 -0
- package/components/chat-input.tsx +92 -0
- package/components/conversation-selector.tsx +97 -0
- package/components/header.tsx +302 -0
- package/components/hitl-dialog.tsx +23 -0
- package/components/message-list.tsx +41 -0
- package/components/thinking-block.tsx +14 -0
- package/components/tool-call-card.tsx +75 -0
- package/components/typing-indicator.tsx +11 -0
- package/components/user-message.tsx +13 -0
- package/components/welcome-screen.tsx +38 -0
- package/hooks/use-artifacts.ts +85 -0
- package/hooks/use-chat.ts +278 -0
- package/hooks/use-conversations.ts +190 -0
- package/lib/actions/hitl.ts +113 -0
- package/lib/actions/new-chat.ts +116 -0
- package/lib/actions/send-message.ts +31 -0
- package/lib/actions/switch-conversation.ts +92 -0
- package/lib/cdp/connection.ts +95 -0
- package/lib/cdp/process-manager.ts +327 -0
- package/lib/cdp/recent-projects.ts +137 -0
- package/lib/cdp/selectors.ts +11 -0
- package/lib/context.ts +38 -0
- package/lib/init.ts +48 -0
- package/lib/logger.ts +32 -0
- package/lib/scraper/agent-mode.ts +122 -0
- package/lib/scraper/agent-state.ts +756 -0
- package/lib/scraper/chat-history.ts +138 -0
- package/lib/scraper/ide-conversations.ts +124 -0
- package/lib/sse/diff-states.ts +141 -0
- package/lib/types.ts +146 -0
- package/lib/utils.ts +7 -0
- package/next.config.ts +7 -0
- package/package.json +50 -0
- package/public/file.svg +1 -0
- package/public/globe.svg +1 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
- package/tsconfig.json +34 -0
package/app/layout.tsx
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Metadata } from 'next';
|
|
2
|
+
import { Inter, JetBrains_Mono } from 'next/font/google';
|
|
3
|
+
import './globals.css';
|
|
4
|
+
|
|
5
|
+
const inter = Inter({
|
|
6
|
+
subsets: ['latin'],
|
|
7
|
+
variable: '--font-inter',
|
|
8
|
+
display: 'swap',
|
|
9
|
+
weight: ['300', '400', '500', '600', '700'],
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const jetbrainsMono = JetBrains_Mono({
|
|
13
|
+
subsets: ['latin'],
|
|
14
|
+
variable: '--font-jetbrains',
|
|
15
|
+
display: 'swap',
|
|
16
|
+
weight: ['400', '500'],
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const metadata: Metadata = {
|
|
20
|
+
title: 'Antigravity Agent',
|
|
21
|
+
description: 'Chat with the Antigravity AI Agent from any browser',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const viewport = {
|
|
25
|
+
width: 'device-width',
|
|
26
|
+
initialScale: 1,
|
|
27
|
+
maximumScale: 1,
|
|
28
|
+
viewportFit: 'cover' as const,
|
|
29
|
+
themeColor: '#0a0a0f',
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
33
|
+
return (
|
|
34
|
+
<html lang="en" className={`${inter.variable} ${jetbrainsMono.variable}`}>
|
|
35
|
+
<head>
|
|
36
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
37
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
38
|
+
</head>
|
|
39
|
+
<body>{children}</body>
|
|
40
|
+
</html>
|
|
41
|
+
);
|
|
42
|
+
}
|
package/app/page.tsx
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ChatContainer from '@/components/chat-container';
|
|
2
|
+
import { Suspense } from 'react';
|
|
3
|
+
|
|
4
|
+
export default function ChatPage() {
|
|
5
|
+
return (
|
|
6
|
+
<Suspense fallback={<div className="p-8 text-center text-gray-500">Loading Chat Interface...</div>}>
|
|
7
|
+
<ChatContainer />
|
|
8
|
+
</Suspense>
|
|
9
|
+
);
|
|
10
|
+
}
|