@elliotsystems/eai 0.1.1 → 0.1.3
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 +51 -5
- package/bin/eai +32 -3
- package/config/opencode.json +4 -0
- package/config/themes/elliot.json +105 -0
- package/config/tui.json +9 -0
- package/lib/resolve.js +42 -4
- package/lib/stage.js +116 -0
- package/package.json +9 -8
- package/plugin/opencode-plugin/README.md +64 -0
- package/plugin/opencode-plugin/package.json +32 -0
- package/plugin/opencode-plugin/src/classifier.ts +238 -0
- package/plugin/opencode-plugin/src/elliot-auth.ts +133 -0
- package/plugin/opencode-plugin/src/index.ts +199 -0
- package/plugin/opencode-plugin/src/mcp-keys.ts +30 -0
- package/plugin/opencode-plugin/src/policy.ts +122 -0
- package/plugin/opencode-plugin/src/proxy-provider.ts +96 -0
- package/plugin/opencode-plugin/src/scope.ts +78 -0
- package/plugin/opencode-plugin/src/tui/api.ts +117 -0
- package/plugin/opencode-plugin/src/tui/format.ts +73 -0
- package/plugin/opencode-plugin/src/tui/home.tsx +88 -0
- package/plugin/opencode-plugin/src/tui/host.d.ts +95 -0
- package/plugin/opencode-plugin/src/tui/index.tsx +99 -0
- package/plugin/opencode-plugin/src/tui/knowledge.ts +243 -0
- package/plugin/opencode-plugin/src/tui/prompt.tsx +62 -0
- package/plugin/opencode-plugin/src/tui/sidebar.tsx +184 -0
- package/plugin/opencode-plugin/src/tui/wordmark.tsx +109 -0
- package/plugin/opencode-plugin/themes/elliot.json +105 -0
- package/plugin/opencode-plugin/tsconfig.json +19 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/theme.json",
|
|
3
|
+
"defs": {
|
|
4
|
+
"brandOrange": "#FF6600",
|
|
5
|
+
"accentOrange": "#FF7A2E",
|
|
6
|
+
"accentOrangeLit": "#FF9354",
|
|
7
|
+
"accentOrangeSoft": "#FFB07A",
|
|
8
|
+
"accentOrangeDeep": "#C2410C",
|
|
9
|
+
"accentOrangeInk": "#7C2D12",
|
|
10
|
+
|
|
11
|
+
"ground": "#0B0C0E",
|
|
12
|
+
"panel": "#121315",
|
|
13
|
+
"elevated": "#191B1D",
|
|
14
|
+
"elevated2": "#212325",
|
|
15
|
+
"border": "#262829",
|
|
16
|
+
"borderSoft": "#1C1E20",
|
|
17
|
+
|
|
18
|
+
"text": "#F5F6F8",
|
|
19
|
+
"textFaint": "#A0A3A8",
|
|
20
|
+
"textDim": "#8E9297",
|
|
21
|
+
"textGhost": "#3A3D3F",
|
|
22
|
+
|
|
23
|
+
"success": "#5DD89B",
|
|
24
|
+
"warning": "#E8C33A",
|
|
25
|
+
"error": "#F7768E",
|
|
26
|
+
"teal": "#5EEAD4",
|
|
27
|
+
|
|
28
|
+
"lightGround": "#FFFFFF",
|
|
29
|
+
"lightPanel": "#FAFAFA",
|
|
30
|
+
"lightElevated": "#F2F2F4",
|
|
31
|
+
"lightElevated2": "#E9E9EC",
|
|
32
|
+
"lightBorder": "#D9D9DE",
|
|
33
|
+
"lightBorderSoft": "#EDEDF0",
|
|
34
|
+
"lightText": "#0B0C0E",
|
|
35
|
+
"lightTextDim": "#6B6E73",
|
|
36
|
+
"lightTextFaint": "#8E9297",
|
|
37
|
+
"lightTextGhost": "#C4C6CA",
|
|
38
|
+
"lightSuccess": "#1B7F4F",
|
|
39
|
+
"lightWarning": "#8A6D0B",
|
|
40
|
+
"lightError": "#C2334C",
|
|
41
|
+
"lightTeal": "#0F766E"
|
|
42
|
+
},
|
|
43
|
+
"theme": {
|
|
44
|
+
"primary": { "dark": "brandOrange", "light": "brandOrange" },
|
|
45
|
+
"accent": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
46
|
+
"secondary": { "dark": "teal", "light": "lightTeal" },
|
|
47
|
+
"info": { "dark": "accentOrangeSoft", "light": "accentOrangeDeep" },
|
|
48
|
+
|
|
49
|
+
"error": { "dark": "error", "light": "lightError" },
|
|
50
|
+
"warning": { "dark": "warning", "light": "lightWarning" },
|
|
51
|
+
"success": { "dark": "success", "light": "lightSuccess" },
|
|
52
|
+
|
|
53
|
+
"text": { "dark": "text", "light": "lightText" },
|
|
54
|
+
"textMuted": { "dark": "textDim", "light": "lightTextDim" },
|
|
55
|
+
|
|
56
|
+
"selectedListItemText": { "dark": "ground", "light": "lightGround" },
|
|
57
|
+
|
|
58
|
+
"background": { "dark": "ground", "light": "lightGround" },
|
|
59
|
+
"backgroundPanel": { "dark": "panel", "light": "lightPanel" },
|
|
60
|
+
"backgroundElement": { "dark": "elevated", "light": "lightElevated" },
|
|
61
|
+
"backgroundMenu": { "dark": "elevated2", "light": "lightElevated2" },
|
|
62
|
+
|
|
63
|
+
"border": { "dark": "border", "light": "lightBorder" },
|
|
64
|
+
"borderActive": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
65
|
+
"borderSubtle": { "dark": "borderSoft", "light": "lightBorderSoft" },
|
|
66
|
+
|
|
67
|
+
"diffAdded": { "dark": "success", "light": "lightSuccess" },
|
|
68
|
+
"diffRemoved": { "dark": "error", "light": "lightError" },
|
|
69
|
+
"diffContext": { "dark": "textDim", "light": "lightTextDim" },
|
|
70
|
+
"diffHunkHeader": { "dark": "textFaint", "light": "lightTextFaint" },
|
|
71
|
+
"diffHighlightAdded": { "dark": "#8DE8B8", "light": "#12603B" },
|
|
72
|
+
"diffHighlightRemoved": { "dark": "#FF9BAC", "light": "#A62740" },
|
|
73
|
+
"diffAddedBg": { "dark": "#0F2018", "light": "#E4F5EB" },
|
|
74
|
+
"diffRemovedBg": { "dark": "#241318", "light": "#FBE4E9" },
|
|
75
|
+
"diffContextBg": { "dark": "panel", "light": "lightPanel" },
|
|
76
|
+
"diffLineNumber": { "dark": "textGhost", "light": "lightTextGhost" },
|
|
77
|
+
"diffAddedLineNumberBg": { "dark": "#0C1913", "light": "#D6EDDF" },
|
|
78
|
+
"diffRemovedLineNumberBg": { "dark": "#1D0F13", "light": "#F6D8DF" },
|
|
79
|
+
|
|
80
|
+
"markdownText": { "dark": "text", "light": "lightText" },
|
|
81
|
+
"markdownHeading": { "dark": "brandOrange", "light": "accentOrangeDeep" },
|
|
82
|
+
"markdownLink": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
83
|
+
"markdownLinkText": { "dark": "accentOrangeSoft", "light": "accentOrangeDeep" },
|
|
84
|
+
"markdownCode": { "dark": "accentOrangeSoft", "light": "accentOrangeDeep" },
|
|
85
|
+
"markdownBlockQuote": { "dark": "textFaint", "light": "lightTextFaint" },
|
|
86
|
+
"markdownEmph": { "dark": "accentOrangeLit", "light": "accentOrangeDeep" },
|
|
87
|
+
"markdownStrong": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
88
|
+
"markdownHorizontalRule": { "dark": "borderSoft", "light": "lightBorderSoft" },
|
|
89
|
+
"markdownListItem": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
90
|
+
"markdownListEnumeration": { "dark": "accentOrangeLit", "light": "accentOrangeDeep" },
|
|
91
|
+
"markdownImage": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
92
|
+
"markdownImageText": { "dark": "textFaint", "light": "lightTextFaint" },
|
|
93
|
+
"markdownCodeBlock": { "dark": "text", "light": "lightText" },
|
|
94
|
+
|
|
95
|
+
"syntaxComment": { "dark": "textGhost", "light": "lightTextGhost" },
|
|
96
|
+
"syntaxKeyword": { "dark": "accentOrange", "light": "accentOrangeDeep" },
|
|
97
|
+
"syntaxFunction": { "dark": "accentOrangeLit", "light": "accentOrangeInk" },
|
|
98
|
+
"syntaxVariable": { "dark": "text", "light": "lightText" },
|
|
99
|
+
"syntaxString": { "dark": "success", "light": "lightSuccess" },
|
|
100
|
+
"syntaxNumber": { "dark": "accentOrangeSoft", "light": "accentOrangeDeep" },
|
|
101
|
+
"syntaxType": { "dark": "teal", "light": "lightTeal" },
|
|
102
|
+
"syntaxOperator": { "dark": "textFaint", "light": "lightTextFaint" },
|
|
103
|
+
"syntaxPunctuation": { "dark": "textDim", "light": "lightTextDim" }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"lib": [
|
|
6
|
+
"ES2022"
|
|
7
|
+
],
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"noEmit": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"jsx": "preserve"
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"src/**/*",
|
|
17
|
+
"test/**/*"
|
|
18
|
+
]
|
|
19
|
+
}
|