deploy: current vibn theia state
Made-with: Cursor
This commit is contained in:
7
examples/browser/.theia/settings.json
Normal file
7
examples/browser/.theia/settings.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"files.autoSave": "afterDelay",
|
||||
"workbench.editor.closeOnFileDelete": true,
|
||||
"git.autoRepositoryDetection": true,
|
||||
"git.openRepositoryInParentFolders": "always"
|
||||
}
|
||||
|
||||
3
examples/browser/.theia/tasks.json
Normal file
3
examples/browser/.theia/tasks.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"tasks": []
|
||||
}
|
||||
120
examples/browser/package.json
Normal file
120
examples/browser/package.json
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "@theia/example-browser",
|
||||
"version": "1.68.0",
|
||||
"license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
|
||||
"theia": {
|
||||
"frontend": {
|
||||
"config": {
|
||||
"applicationName": "Vibn IDE",
|
||||
"preferences": {
|
||||
"files.enableTrash": false,
|
||||
"security.workspace.trust.enabled": false
|
||||
},
|
||||
"reloadOnReconnect": true
|
||||
}
|
||||
},
|
||||
"backend": {
|
||||
"config": {
|
||||
"frontendConnectionTimeout": 30000
|
||||
}
|
||||
}
|
||||
},
|
||||
"theiaPluginsDir": "../../plugins",
|
||||
"dependencies": {
|
||||
"@theia/ai-anthropic": "1.68.0",
|
||||
"@theia/ai-chat": "1.68.0",
|
||||
"@theia/ai-chat-ui": "1.68.0",
|
||||
"@theia/ai-claude-code": "1.68.0",
|
||||
"@theia/ai-code-completion": "1.68.0",
|
||||
"@theia/ai-codex": "1.68.0",
|
||||
"@theia/ai-copilot": "1.68.0",
|
||||
"@theia/ai-core": "1.68.0",
|
||||
"@theia/ai-core-ui": "1.68.0",
|
||||
"@theia/ai-editor": "1.68.0",
|
||||
"@theia/ai-google": "1.68.0",
|
||||
"@theia/ai-history": "1.68.0",
|
||||
"@theia/ai-ide": "1.68.0",
|
||||
"@theia/ai-huggingface": "1.68.0",
|
||||
"@theia/ai-llamafile": "1.68.0",
|
||||
"@theia/ai-ollama": "1.68.0",
|
||||
"@theia/ai-openai": "1.68.0",
|
||||
"@theia/ai-scanoss": "1.68.0",
|
||||
"@theia/ai-terminal": "1.68.0",
|
||||
"@theia/api-provider-sample": "1.68.0",
|
||||
"@theia/bulk-edit": "1.68.0",
|
||||
"@theia/callhierarchy": "1.68.0",
|
||||
"@theia/collaboration": "1.68.0",
|
||||
"@theia/console": "1.68.0",
|
||||
"@theia/core": "1.68.0",
|
||||
"@theia/debug": "1.68.0",
|
||||
"@theia/design-panel": "1.68.0",
|
||||
"@theia/dev-container": "1.68.0",
|
||||
"@theia/editor": "1.68.0",
|
||||
"@theia/editor-preview": "1.68.0",
|
||||
"@theia/file-search": "1.68.0",
|
||||
"@theia/filesystem": "1.68.0",
|
||||
"@theia/getting-started": "1.68.0",
|
||||
"@theia/keymaps": "1.68.0",
|
||||
"@theia/markers": "1.68.0",
|
||||
"@theia/memory-inspector": "1.68.0",
|
||||
"@theia/messages": "1.68.0",
|
||||
"@theia/metrics": "1.68.0",
|
||||
"@theia/mini-browser": "1.68.0",
|
||||
"@theia/monaco": "1.68.0",
|
||||
"@theia/navigator": "1.68.0",
|
||||
"@theia/notebook": "1.68.0",
|
||||
"@theia/outline-view": "1.68.0",
|
||||
"@theia/output": "1.68.0",
|
||||
"@theia/plugin-dev": "1.68.0",
|
||||
"@theia/plugin-ext": "1.68.0",
|
||||
"@theia/plugin-ext-headless": "1.68.0",
|
||||
"@theia/plugin-ext-vscode": "1.68.0",
|
||||
"@theia/plugin-metrics": "1.68.0",
|
||||
"@theia/preferences": "1.68.0",
|
||||
"@theia/preview": "1.68.0",
|
||||
"@theia/process": "1.68.0",
|
||||
"@theia/property-view": "1.68.0",
|
||||
"@theia/remote": "1.68.0",
|
||||
"@theia/scanoss": "1.68.0",
|
||||
"@theia/scm": "1.68.0",
|
||||
"@theia/scm-extra": "1.68.0",
|
||||
"@theia/search-in-workspace": "1.68.0",
|
||||
"@theia/secondary-window": "1.68.0",
|
||||
"@theia/task": "1.68.0",
|
||||
"@theia/terminal": "1.68.0",
|
||||
"@theia/terminal-manager": "1.68.0",
|
||||
"@theia/test": "1.68.0",
|
||||
"@theia/timeline": "1.68.0",
|
||||
"@theia/toolbar": "1.68.0",
|
||||
"@theia/typehierarchy": "1.68.0",
|
||||
"@theia/userstorage": "1.68.0",
|
||||
"@theia/variable-resolver": "1.68.0",
|
||||
"@theia/vsx-registry": "1.68.0",
|
||||
"@theia/workspace": "1.68.0"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "theiaext clean",
|
||||
"build": "theiaext build && npm run -s bundle",
|
||||
"build:production": "theiaext build && npm run -s bundle:production",
|
||||
"bundle": "npm run rebuild && theia build --mode development",
|
||||
"bundle:production": "npm run rebuild && theia build --mode production",
|
||||
"compile": "tsc -b",
|
||||
"coverage": "npm run -s test -- --test-coverage && npm run -s coverage:report",
|
||||
"coverage:clean": "rimraf .nyc_output && rimraf coverage",
|
||||
"coverage:report": "nyc report --reporter=html",
|
||||
"rebuild": "theia rebuild:browser --cacheRoot ../..",
|
||||
"start": "theia start --plugins=local-dir:../../plugins --ovsx-router-config=../ovsx-router-config.json",
|
||||
"start:debug": "npm run -s start -- --log-level=debug",
|
||||
"start:watch": "concurrently --kill-others -n tsc,bundle,run -c red,yellow,green \"tsc -b -w --preserveWatchOutput\" \"npm run -s watch:bundle\" \"npm run -s start\"",
|
||||
"test": "theia test . --plugins=local-dir:../../plugins --test-spec=../api-tests/**/*.spec.js",
|
||||
"test:debug": "npm run -s test -- --test-inspect",
|
||||
"watch": "concurrently --kill-others -n tsc,bundle -c red,yellow \"tsc -b -w --preserveWatchOutput\" \"npm run -s watch:bundle\"",
|
||||
"watch:bundle": "theia build --watch --mode development",
|
||||
"watch:compile": "tsc -b -w"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@theia/cli": "1.68.0",
|
||||
"@theia/native-webpack-plugin": "1.68.0"
|
||||
}
|
||||
}
|
||||
225
examples/browser/tsconfig.json
Normal file
225
examples/browser/tsconfig.json
Normal file
@@ -0,0 +1,225 @@
|
||||
{
|
||||
"extends": "../../configs/base.tsconfig",
|
||||
"include": [],
|
||||
"compilerOptions": {
|
||||
"composite": true
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../../dev-packages/cli"
|
||||
},
|
||||
{
|
||||
"path": "../../dev-packages/native-webpack-plugin"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-anthropic"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-chat"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-chat-ui"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-claude-code"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-code-completion"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-codex"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-copilot"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-core"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-core-ui"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-editor"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-google"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-history"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-hugging-face"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-ide"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-llamafile"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-ollama"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-openai"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-scanoss"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/ai-terminal"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/bulk-edit"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/callhierarchy"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/collaboration"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/console"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/core"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/debug"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/design-panel"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/dev-container"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/editor"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/editor-preview"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/file-search"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/filesystem"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/getting-started"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/keymaps"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/markers"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/memory-inspector"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/messages"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/metrics"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/mini-browser"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/monaco"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/navigator"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/notebook"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/outline-view"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/output"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/plugin-dev"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/plugin-ext"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/plugin-ext-headless"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/plugin-ext-vscode"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/plugin-metrics"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/preferences"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/preview"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/process"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/property-view"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/remote"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/scanoss"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/scm"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/scm-extra"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/search-in-workspace"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/secondary-window"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/task"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/terminal"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/terminal-manager"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/test"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/timeline"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/toolbar"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/typehierarchy"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/userstorage"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/variable-resolver"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/vsx-registry"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/workspace"
|
||||
},
|
||||
{
|
||||
"path": "../api-provider-sample"
|
||||
}
|
||||
]
|
||||
}
|
||||
44
examples/browser/vibn.css
Normal file
44
examples/browser/vibn.css
Normal file
@@ -0,0 +1,44 @@
|
||||
/* ============================================================
|
||||
vibn.css — custom UI overrides for Vibn IDE
|
||||
Loaded via <link> in index.html. Edit here; hard-refresh
|
||||
(Cmd+Shift+R) to see changes without a webpack rebuild.
|
||||
============================================================ */
|
||||
|
||||
/* Hide the right sidebar icon strip (tab bar + sidebar menu)
|
||||
but keep the chat panel itself visible */
|
||||
#theia-right-content-panel > .theia-app-sidebar-container {
|
||||
display: none !important;
|
||||
width: 0 !important;
|
||||
min-width: 0 !important;
|
||||
}
|
||||
|
||||
/* Default right panel open width */
|
||||
#theia-right-content-panel {
|
||||
width: 300px !important;
|
||||
min-width: 300px !important;
|
||||
}
|
||||
|
||||
/* Hide the chat welcome screen content */
|
||||
.theia-WelcomeMessage-Logo,
|
||||
.theia-WelcomeMessage-Content,
|
||||
.theia-WelcomeMessage-RecommendedNote,
|
||||
.theia-WelcomeMessage-AgentButtons,
|
||||
.theia-WelcomeMessage-AlternativeOptions,
|
||||
.theia-WelcomeMessage-OrDivider,
|
||||
.theia-WelcomeMessage-AgentSelection,
|
||||
.theia-alert-message-container {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Hide the "Keep chats short and focused" suggestion banner */
|
||||
.chat-agent-suggestion {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Hide specific chat toolbar buttons */
|
||||
#chat-view\.ai-chat-summary-current-session,
|
||||
#extract-widget,
|
||||
#chat\:widget\:lock,
|
||||
#chat\:widget\:session-settings {
|
||||
display: none !important;
|
||||
}
|
||||
67
examples/browser/webpack.config.js
Normal file
67
examples/browser/webpack.config.js
Normal file
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* This file can be edited to customize webpack configuration.
|
||||
* To reset delete this file and rerun theia build again.
|
||||
*/
|
||||
// @ts-check
|
||||
const path = require('path');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const configs = require('./gen-webpack.config.js');
|
||||
const nodeConfig = require('./gen-webpack.node.config.js');
|
||||
const webpack = require('webpack');
|
||||
|
||||
/**
|
||||
* Expose bundled modules on window.theia.moduleName namespace, e.g.
|
||||
* window['theia']['@theia/core/lib/common/uri'].
|
||||
* Such syntax can be used by external code, for instance, for testing.
|
||||
*/
|
||||
configs[0].module.rules.push({
|
||||
test: /\.js$/,
|
||||
loader: require.resolve('@theia/application-manager/lib/expose-loader')
|
||||
});
|
||||
|
||||
/**
|
||||
* Inject environment variables into the browser bundle
|
||||
* These are needed by ai-ide preferences to read default values
|
||||
*/
|
||||
configs[0].plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.GITEA_API_URL': JSON.stringify(process.env.GITEA_API_URL || ''),
|
||||
'process.env.GITEA_API_TOKEN': JSON.stringify(process.env.GITEA_API_TOKEN || ''),
|
||||
'process.env.GITEA_USERNAME': JSON.stringify(process.env.GITEA_USERNAME || ''),
|
||||
'process.env.COOLIFY_API_URL': JSON.stringify(process.env.COOLIFY_API_URL || ''),
|
||||
'process.env.COOLIFY_API_TOKEN': JSON.stringify(process.env.COOLIFY_API_TOKEN || ''),
|
||||
'process.env.GOOGLE_API_KEY': JSON.stringify(process.env.GOOGLE_API_KEY || ''),
|
||||
})
|
||||
);
|
||||
|
||||
// Copy vibn.css and the customised index.html into lib/frontend/ on every build
|
||||
configs[0].plugins.push(
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: path.resolve(__dirname, 'vibn.css'),
|
||||
to: path.resolve(__dirname, 'lib', 'frontend', 'vibn.css'),
|
||||
},
|
||||
{
|
||||
from: path.resolve(__dirname, 'src-gen/frontend/index.html'),
|
||||
to: path.resolve(__dirname, 'lib', 'frontend', 'index.html'),
|
||||
},
|
||||
]
|
||||
})
|
||||
);
|
||||
|
||||
// Disable source maps and compression to keep memory under 2GB for local builds
|
||||
// Source maps alone can double webpack's peak memory usage
|
||||
if (process.env.THEIA_LOCAL_BUILD) {
|
||||
configs[0].devtool = false;
|
||||
configs[0].cache = false;
|
||||
// Remove CompressionPlugin — it holds all output in memory to gzip it
|
||||
configs[0].plugins = configs[0].plugins.filter(
|
||||
p => p.constructor.name !== 'CompressionPlugin'
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = [
|
||||
...configs,
|
||||
nodeConfig.config
|
||||
];
|
||||
Reference in New Issue
Block a user