contextwise 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/LICENSE +21 -0
- package/README.md +333 -0
- package/bin/contextwise.js +17 -0
- package/dist/chunk-P7JW7EPW.js +4383 -0
- package/dist/chunk-P7JW7EPW.js.map +1 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +1116 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +1435 -0
- package/dist/index.js +171 -0
- package/dist/index.js.map +1 -0
- package/package.json +71 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ADD_SERVER_DEFINITION,
|
|
3
|
+
ADD_SERVER_NAME,
|
|
4
|
+
BROWSE_SERVERS_DEFINITION,
|
|
5
|
+
BROWSE_SERVERS_NAME,
|
|
6
|
+
CACHE_TOKENS_PER_HIT,
|
|
7
|
+
ConfigLoader,
|
|
8
|
+
ContextRouter,
|
|
9
|
+
ContextWiseCloudClient,
|
|
10
|
+
ContextWiseConfigSchema,
|
|
11
|
+
ContextWiseProxy,
|
|
12
|
+
EXECUTE_TOOL_DEFINITION,
|
|
13
|
+
EXECUTE_TOOL_NAME,
|
|
14
|
+
EncryptedFileVaultDriver,
|
|
15
|
+
GuardrailsConfigSchema,
|
|
16
|
+
HttpUpstreamConfigSchema,
|
|
17
|
+
HybridSearchEngine,
|
|
18
|
+
KNOWN_SERVERS,
|
|
19
|
+
KnownServerRegistry,
|
|
20
|
+
LLM_PRICING,
|
|
21
|
+
LOOP_PREVENTION_TOKENS_PER_TRIP,
|
|
22
|
+
Logger,
|
|
23
|
+
MetricsCollector,
|
|
24
|
+
OfficialRegistryClient,
|
|
25
|
+
OsKeystoreDriver,
|
|
26
|
+
ProcessSupervisor,
|
|
27
|
+
ProxyConfigSchema,
|
|
28
|
+
RedactionFilter,
|
|
29
|
+
ResponseCache,
|
|
30
|
+
RoutingConfigSchema,
|
|
31
|
+
RunawayLoopBreaker,
|
|
32
|
+
SCHEMA_TOKENS_PER_TOOL,
|
|
33
|
+
SEARCH_TOOLS_DEFINITION,
|
|
34
|
+
SEARCH_TOOLS_NAME,
|
|
35
|
+
SecretResolver,
|
|
36
|
+
SecretVault,
|
|
37
|
+
ServerManager,
|
|
38
|
+
ServerRecommender,
|
|
39
|
+
SmitheryClient,
|
|
40
|
+
StdioUpstreamConfigSchema,
|
|
41
|
+
SyncManager,
|
|
42
|
+
ToolArgumentValidator,
|
|
43
|
+
ToolNormalizer,
|
|
44
|
+
ToolRegistry,
|
|
45
|
+
UnifiedRegistryClient,
|
|
46
|
+
UpstreamMultiplexer,
|
|
47
|
+
UpstreamServerConfigSchema,
|
|
48
|
+
VAULT_PBKDF2_ITERATIONS,
|
|
49
|
+
VaultAuditor,
|
|
50
|
+
WorkspaceContextPrimer,
|
|
51
|
+
argumentValidator,
|
|
52
|
+
calculateDollarSavings,
|
|
53
|
+
canonicalJsonStringify,
|
|
54
|
+
cloudClient,
|
|
55
|
+
contextRouter,
|
|
56
|
+
createEnvelope,
|
|
57
|
+
decryptAesGcm,
|
|
58
|
+
deriveKeyFromPassphrase,
|
|
59
|
+
deriveSharedSecretX25519,
|
|
60
|
+
encryptAesGcm,
|
|
61
|
+
escapeWindowsCmdArg,
|
|
62
|
+
generateKeyPairX25519,
|
|
63
|
+
generateToolCallCacheKey,
|
|
64
|
+
getDefaultMetricsPath,
|
|
65
|
+
getDefaultVaultFilePath,
|
|
66
|
+
getOrCreateDeviceIdentity,
|
|
67
|
+
getOrCreateMachineKey,
|
|
68
|
+
inferToolHints,
|
|
69
|
+
isHttpUpstream,
|
|
70
|
+
isStdioUpstream,
|
|
71
|
+
logger,
|
|
72
|
+
loopBreaker,
|
|
73
|
+
metricsCollector,
|
|
74
|
+
openEnvelope,
|
|
75
|
+
proxy,
|
|
76
|
+
redactionFilter,
|
|
77
|
+
responseCache,
|
|
78
|
+
searchEngine,
|
|
79
|
+
secretVault,
|
|
80
|
+
sha256,
|
|
81
|
+
supervisor,
|
|
82
|
+
syncManager,
|
|
83
|
+
toolRegistry,
|
|
84
|
+
warnIfInsecureHttp
|
|
85
|
+
} from "./chunk-P7JW7EPW.js";
|
|
86
|
+
export {
|
|
87
|
+
ADD_SERVER_DEFINITION,
|
|
88
|
+
ADD_SERVER_NAME,
|
|
89
|
+
BROWSE_SERVERS_DEFINITION,
|
|
90
|
+
BROWSE_SERVERS_NAME,
|
|
91
|
+
CACHE_TOKENS_PER_HIT,
|
|
92
|
+
ConfigLoader,
|
|
93
|
+
ContextRouter,
|
|
94
|
+
ContextWiseCloudClient,
|
|
95
|
+
ContextWiseConfigSchema,
|
|
96
|
+
ContextWiseProxy,
|
|
97
|
+
EXECUTE_TOOL_DEFINITION,
|
|
98
|
+
EXECUTE_TOOL_NAME,
|
|
99
|
+
EncryptedFileVaultDriver,
|
|
100
|
+
GuardrailsConfigSchema,
|
|
101
|
+
HttpUpstreamConfigSchema,
|
|
102
|
+
HybridSearchEngine,
|
|
103
|
+
KNOWN_SERVERS,
|
|
104
|
+
KnownServerRegistry,
|
|
105
|
+
LLM_PRICING,
|
|
106
|
+
LOOP_PREVENTION_TOKENS_PER_TRIP,
|
|
107
|
+
Logger,
|
|
108
|
+
MetricsCollector,
|
|
109
|
+
OfficialRegistryClient,
|
|
110
|
+
OsKeystoreDriver,
|
|
111
|
+
ProcessSupervisor,
|
|
112
|
+
ProxyConfigSchema,
|
|
113
|
+
RedactionFilter,
|
|
114
|
+
ResponseCache,
|
|
115
|
+
RoutingConfigSchema,
|
|
116
|
+
RunawayLoopBreaker,
|
|
117
|
+
SCHEMA_TOKENS_PER_TOOL,
|
|
118
|
+
SEARCH_TOOLS_DEFINITION,
|
|
119
|
+
SEARCH_TOOLS_NAME,
|
|
120
|
+
SecretResolver,
|
|
121
|
+
SecretVault,
|
|
122
|
+
ServerManager,
|
|
123
|
+
ServerRecommender,
|
|
124
|
+
SmitheryClient,
|
|
125
|
+
StdioUpstreamConfigSchema,
|
|
126
|
+
SyncManager,
|
|
127
|
+
ToolArgumentValidator,
|
|
128
|
+
ToolNormalizer,
|
|
129
|
+
ToolRegistry,
|
|
130
|
+
UnifiedRegistryClient,
|
|
131
|
+
UpstreamMultiplexer,
|
|
132
|
+
UpstreamServerConfigSchema,
|
|
133
|
+
VAULT_PBKDF2_ITERATIONS,
|
|
134
|
+
VaultAuditor,
|
|
135
|
+
WorkspaceContextPrimer,
|
|
136
|
+
argumentValidator,
|
|
137
|
+
calculateDollarSavings,
|
|
138
|
+
canonicalJsonStringify,
|
|
139
|
+
cloudClient,
|
|
140
|
+
contextRouter,
|
|
141
|
+
createEnvelope,
|
|
142
|
+
decryptAesGcm,
|
|
143
|
+
deriveKeyFromPassphrase,
|
|
144
|
+
deriveSharedSecretX25519,
|
|
145
|
+
encryptAesGcm,
|
|
146
|
+
escapeWindowsCmdArg,
|
|
147
|
+
generateKeyPairX25519,
|
|
148
|
+
generateToolCallCacheKey,
|
|
149
|
+
getDefaultMetricsPath,
|
|
150
|
+
getDefaultVaultFilePath,
|
|
151
|
+
getOrCreateDeviceIdentity,
|
|
152
|
+
getOrCreateMachineKey,
|
|
153
|
+
inferToolHints,
|
|
154
|
+
isHttpUpstream,
|
|
155
|
+
isStdioUpstream,
|
|
156
|
+
logger,
|
|
157
|
+
loopBreaker,
|
|
158
|
+
metricsCollector,
|
|
159
|
+
openEnvelope,
|
|
160
|
+
proxy,
|
|
161
|
+
redactionFilter,
|
|
162
|
+
responseCache,
|
|
163
|
+
searchEngine,
|
|
164
|
+
secretVault,
|
|
165
|
+
sha256,
|
|
166
|
+
supervisor,
|
|
167
|
+
syncManager,
|
|
168
|
+
toolRegistry,
|
|
169
|
+
warnIfInsecureHttp
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "contextwise",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Dynamic Model Context Protocol (MCP) Tool Routing, Schema Compression & Execution Gateway",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"contextwise": "bin/contextwise.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"bin",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=20.0.0"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/brehnden-daly/contextwise.git"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/brehnden-daly/contextwise#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/brehnden-daly/contextwise/issues"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"dev": "tsx watch src/cli/index.ts",
|
|
31
|
+
"start": "tsx src/cli/index.ts start",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:watch": "vitest",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"prepublishOnly": "npm run build && npm test"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"mcp",
|
|
39
|
+
"model-context-protocol",
|
|
40
|
+
"llm",
|
|
41
|
+
"ai",
|
|
42
|
+
"agent",
|
|
43
|
+
"proxy",
|
|
44
|
+
"routing",
|
|
45
|
+
"tools",
|
|
46
|
+
"token-optimization",
|
|
47
|
+
"claude-code",
|
|
48
|
+
"cursor",
|
|
49
|
+
"antigravity",
|
|
50
|
+
"developer-tools"
|
|
51
|
+
],
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@modelcontextprotocol/sdk": "^1.6.1",
|
|
55
|
+
"ajv": "^8.17.1",
|
|
56
|
+
"ajv-formats": "^3.0.1",
|
|
57
|
+
"chalk": "^5.4.1",
|
|
58
|
+
"commander": "^13.1.0",
|
|
59
|
+
"dotenv": "^16.4.7",
|
|
60
|
+
"minisearch": "^7.1.1",
|
|
61
|
+
"ora": "^8.2.0",
|
|
62
|
+
"zod": "^3.24.2"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/node": "^22.13.10",
|
|
66
|
+
"tsup": "^8.4.0",
|
|
67
|
+
"tsx": "^4.19.3",
|
|
68
|
+
"typescript": "^5.8.2",
|
|
69
|
+
"vitest": "^3.0.8"
|
|
70
|
+
}
|
|
71
|
+
}
|