@elliotsystems/eai 0.1.4 → 0.1.5
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 +84 -4
- package/bin/eai +133 -0
- package/lib/connect.js +205 -0
- package/lib/gdrive.js +238 -0
- package/lib/logout.js +73 -0
- package/lib/setup.js +392 -23
- package/lib/stage.js +45 -4
- package/lib/status.js +133 -0
- package/lib/token-env.js +53 -17
- package/lib/update-check.js +27 -0
- package/lib/update.js +303 -0
- package/package.json +2 -1
- package/plugin/opencode-plugin/src/classifier.ts +2 -1
- package/plugin/opencode-plugin/src/elliot-auth.ts +56 -104
- package/plugin/opencode-plugin/src/index.ts +1 -28
- package/plugin/opencode-plugin/src/mcp-keys.ts +128 -1
- package/plugin/opencode-plugin/src/policy.ts +36 -4
- package/plugin/opencode-plugin/src/proxy-provider.ts +124 -72
- package/plugin/opencode-plugin/src/scope.ts +2 -1
- package/plugin/opencode-plugin/src/tui/knowledge.ts +9 -3
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* proven from session state or not shown.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { KNOWLEDGE_TOOL, toCanonicalToolUnderAnyGateway } from "../mcp-keys.js"
|
|
18
18
|
|
|
19
19
|
// ------------------------------------------------------------- host shapes --
|
|
20
20
|
|
|
@@ -106,9 +106,15 @@ export function elliotServerNames(items: readonly McpItem[]): string[] {
|
|
|
106
106
|
* reasoning applies to a panel that would otherwise attribute a third party's
|
|
107
107
|
* results to Elliot.
|
|
108
108
|
*/
|
|
109
|
-
export function isKnowledgeTool(
|
|
109
|
+
export function isKnowledgeTool(
|
|
110
|
+
tool: string | undefined,
|
|
111
|
+
serverNames: readonly string[],
|
|
112
|
+
): boolean {
|
|
110
113
|
if (typeof tool !== "string") return false
|
|
111
|
-
|
|
114
|
+
// Alias-agnostic BY NECESSITY, not by preference — see
|
|
115
|
+
// `toCanonicalToolUnderAnyGateway` for why the TUI cannot know the
|
|
116
|
+
// configured alias, and why that is safe for a display surface.
|
|
117
|
+
return toCanonicalToolUnderAnyGateway(tool, serverNames) === KNOWLEDGE_TOOL
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
/**
|