Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Agent Playground #41

Merged
merged 53 commits into from
May 27, 2023
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
1dfd8d6
move Icons -> icons
louisgv Apr 19, 2023
7146973
initialize playground
louisgv Apr 19, 2023
a537aa3
feat: playground page
louisgv Apr 20, 2023
1496a8f
refactor web to align up codebase
louisgv Apr 20, 2023
0290902
get it out
louisgv Apr 20, 2023
61cbf3b
Need a debugger or some sort for manual test?
louisgv Apr 21, 2023
75d455e
Initial agent planning ready
louisgv Apr 23, 2023
873282b
move playground to agent
louisgv Apr 23, 2023
9af6618
fix deps
louisgv Apr 23, 2023
7a2f011
Manual agent hring for testing out agent - time to train the monkey
louisgv Apr 24, 2023
f3597d3
some refinement
louisgv Apr 24, 2023
b1d1709
Add some reading on OODA
louisgv Apr 25, 2023
1a3aa6e
Merge branch 'main' into playground
louisgv Apr 25, 2023
3019577
merge with new type
louisgv Apr 25, 2023
00bd825
First step at observing
louisgv Apr 26, 2023
db79da3
Merge branch 'type-infer' into playground
louisgv Apr 26, 2023
9629880
Basic loop kinda running, the reflection phase is still pretty bad
louisgv Apr 26, 2023
5a95eb7
Merge branch 'type-infer' into playground
louisgv Apr 26, 2023
5722a0b
merge with type-infer
louisgv Apr 27, 2023
61a1705
Fix lockfile
louisgv Apr 27, 2023
62df44f
Merge branch 'type-infer' into playground
louisgv Apr 28, 2023
10ab44e
migrate to array of result
louisgv Apr 28, 2023
4fa73c3
adding webcontainer
louisgv Apr 30, 2023
f4017b6
Fix footer color
louisgv Apr 30, 2023
aebdc7f
Merge branch 'playground' of github.com:louisgv/window.ai into playgr…
louisgv Apr 30, 2023
47fdda3
web container added, ready to roll
louisgv Apr 30, 2023
013aa66
vm ai container with interated TTY done
louisgv May 1, 2023
96e300d
save to rebase
louisgv May 1, 2023
d5feb48
merge with external model
louisgv May 1, 2023
b5210db
fix up chat install button
louisgv May 1, 2023
370e804
play around with the cursor a bit
louisgv May 2, 2023
bce9557
Added some fix
louisgv May 2, 2023
e950e5f
add a loop limit when it doesn't add the end segment
louisgv May 2, 2023
f588926
Merge branch 'main' into playground
louisgv May 2, 2023
162d7d0
Merge branch 'main' into playground
louisgv May 3, 2023
afd4204
scaffold whole project working, need to debug the stream buffer it's …
louisgv May 3, 2023
d6b0753
Merge branch 'playground' of github.com:louisgv/window.ai into playgr…
louisgv May 3, 2023
2f615ee
checkpoint, maybe we can leverage the jsh_history file instead of hav…
louisgv May 3, 2023
8841d3f
it's totally working for scaffolding
louisgv May 4, 2023
6fe220b
good to go
louisgv May 4, 2023
04cd48d
bump nextjs version
louisgv May 5, 2023
f096f8a
remove web terminal and web preview from agent demo
louisgv May 6, 2023
3656b3b
fix code editor theme
louisgv May 12, 2023
4cb24d8
fix the UI a bit
louisgv May 12, 2023
4a074a1
Merge branch 'main' into playground
louisgv May 13, 2023
96b6e00
Minor re-org
louisgv May 16, 2023
f1cb732
Merge branch 'playground' of github.com:louisgv/window.ai into playgr…
louisgv May 16, 2023
ed33378
fix nit
louisgv May 16, 2023
22cf3c4
merge
louisgv May 17, 2023
ca1a7af
Merge with main
louisgv May 26, 2023
0db47a9
merge with main
louisgv May 27, 2023
7771534
Move features -> demo
louisgv May 27, 2023
74452ef
bump plasmo to remove the weird log
louisgv May 27, 2023
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
18 changes: 9 additions & 9 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@heroicons/react": "^2.0.16",
"@plasmohq/messaging": "^0.2.1",
"@plasmohq/storage": "^1.3.1",
"@types/chrome": "^0.0.231",
"@types/chrome": "^0.0.235",
"@types/webextension-polyfill": "^0.10.0",
"@vespaiach/axios-fetch-adapter": "github:alexanderatallah/axios-fetch-adapter",
"axios": "^1.3.4",
"axios": "^1.4.0",
"axios-retry": "^3.4.0",
"object-hash": "^3.0.0",
"plasmo": "0.68.3",
"plasmo": "0.70.1",
"puro": "^0.8.3",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -33,15 +33,15 @@
"devDependencies": {
"@plasmohq/prettier-plugin-sort-imports": "3.6.4",
"@plasmohq/rps": "^1.8.4",
"@types/node": "18.15.11",
"@types/node": "20.0.0",
"@types/object-hash": "^3.0.2",
"@types/react": "18.0.35",
"@types/react-dom": "18.0.11",
"@types/react": "18.2.5",
"@types/react-dom": "18.2.4",
"@types/uuid": "^9.0.1",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.22",
"prettier": "2.8.7",
"tailwindcss": "3.3.1",
"postcss": "^8.4.23",
"prettier": "2.8.8",
"tailwindcss": "3.3.2",
"typescript": "5.0.4",
"window.ai": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/core/llm/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class Model {
baseUrl: this.config.defaultBaseUrl,
model: null,
apiKey: null,
timeout: 25000,
timeout: 42000,
user_identifier: null,
frequency_penalty: 0,
presence_penalty: 0,
Expand Down
202 changes: 0 additions & 202 deletions apps/web/components/Chat.tsx

This file was deleted.

63 changes: 63 additions & 0 deletions apps/web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
const securityHeaders = [
{
key: "X-Frame-Options",
value: "SAMEORIGIN"
},
{
key: "X-DNS-Prefetch-Control",
value: "on"
},
{
key: "X-XSS-Protection",
value: "1; mode=block"
},
{
key: "X-Content-Type-Options",
value: "nosniff"
},
{
key: "Referrer-Policy",
value: "origin-when-cross-origin"
}
// {
// key: "Content-Security-Policy",
// value: contentSecurityPolicy.replace(/\s{2,}/g, " ").trim()
// }
]

const webContainerHeaders = [
{
key: "Cross-Origin-Embedder-Policy",
value: "require-corp"
},
{
key: "Cross-Origin-Opener-Policy",
value: "same-origin"
}
]

/**
* @type {import('next').NextConfig}
*/
const baseConfig = {
reactStrictMode: true,
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: "/(.*)",
headers: securityHeaders
},
{
source: "/vm",
headers: [...webContainerHeaders]
},
{
source: "/agent",
headers: [...webContainerHeaders]
}
]
}
}

export default baseConfig
33 changes: 21 additions & 12 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,34 @@
"lint": "next lint"
},
"dependencies": {
"@tabler/icons-react": "^2.13.2",
"@airthium/extract-json-from-string": "1.0.10",
"@tabler/icons-react": "^2.17.0",
"@types/react-syntax-highlighter": "^15.5.6",
"@vercel/analytics": "^0.1.11",
"@vercel/analytics": "^1.0.1",
"@vercel/examples-ui": "^1.0.5",
"@webcontainer/api": "1.1.3",
"clsx": "^1.2.1",
"next": "13.2.4",
"react": "latest",
"nanoid": "4.0.2",
"next": "13.4.1",
"puro": "0.8.4",
"react": "18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "latest",
"react-dom": "18.2.0",
"react-syntax-highlighter": "^15.5.0",
"react-wrap-balancer": "^0.4.0"
"react-wrap-balancer": "^0.4.1",
"xterm": "5.1.0",
"xterm-addon-fit": "0.7.0",
"xterm-addon-webgl": "0.14.0"
},
"devDependencies": {
"window.ai": "workspace:*",
"@types/node": "^18.15.11",
"@types/react": "^18.0.35",
"@radix-ui/colors": "0.1.8",
"@types/node": "^20.0.0",
"@types/react": "^18.2.5",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.22",
"tailwindcss": "3.3.1",
"typescript": "5.0.4"
"postcss": "^8.4.23",
"tailwindcss": "3.3.2",
"typescript": "5.0.4",
"window.ai": "workspace:*",
"windy-radix-palette": "0.6.1"
}
}
Loading