recker 1.0.15-next.3794a15 → 1.0.15-next.50d74b2
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/dist/bench/generator.d.ts.map +1 -1
- package/dist/bench/generator.js +2 -1
- package/dist/bench/stats.d.ts +15 -1
- package/dist/bench/stats.d.ts.map +1 -1
- package/dist/bench/stats.js +84 -5
- package/dist/cli/index.js +21 -0
- package/dist/cli/tui/load-dashboard.d.ts.map +1 -1
- package/dist/cli/tui/load-dashboard.js +62 -8
- package/dist/cli/tui/scroll-buffer.d.ts +43 -0
- package/dist/cli/tui/scroll-buffer.d.ts.map +1 -0
- package/dist/cli/tui/scroll-buffer.js +162 -0
- package/dist/cli/tui/search-panel.d.ts +41 -0
- package/dist/cli/tui/search-panel.d.ts.map +1 -0
- package/dist/cli/tui/search-panel.js +419 -0
- package/dist/cli/tui/shell.d.ts +11 -0
- package/dist/cli/tui/shell.d.ts.map +1 -1
- package/dist/cli/tui/shell.js +261 -46
- package/dist/contract/index.js +3 -2
- package/dist/dns/index.d.ts +1 -0
- package/dist/dns/index.d.ts.map +1 -1
- package/dist/dns/index.js +1 -0
- package/dist/dns/propagation.d.ts +19 -0
- package/dist/dns/propagation.d.ts.map +1 -0
- package/dist/dns/propagation.js +129 -0
- package/dist/mcp/embeddings-loader.d.ts +18 -0
- package/dist/mcp/embeddings-loader.d.ts.map +1 -0
- package/dist/mcp/embeddings-loader.js +152 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/search/hybrid-search.d.ts.map +1 -1
- package/dist/mcp/search/hybrid-search.js +7 -21
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +8 -1
- package/dist/utils/colors.d.ts +16 -0
- package/dist/utils/colors.d.ts.map +1 -1
- package/dist/utils/colors.js +16 -0
- package/dist/utils/tls-inspector.d.ts +6 -0
- package/dist/utils/tls-inspector.d.ts.map +1 -1
- package/dist/utils/tls-inspector.js +35 -1
- package/package.json +2 -2
- package/dist/mcp/data/embeddings.json +0 -1
package/dist/cli/tui/shell.js
CHANGED
|
@@ -12,6 +12,8 @@ import { rdap } from '../../utils/rdap.js';
|
|
|
12
12
|
import { ScrapeDocument } from '../../scrape/document.js';
|
|
13
13
|
import colors from '../../utils/colors.js';
|
|
14
14
|
import { getShellSearch } from './shell-search.js';
|
|
15
|
+
import { openSearchPanel } from './search-panel.js';
|
|
16
|
+
import { ScrollBuffer, parseScrollKey, parseMouseScroll, enableMouseReporting, disableMouseReporting } from './scroll-buffer.js';
|
|
15
17
|
let highlight;
|
|
16
18
|
async function initDependencies() {
|
|
17
19
|
if (!highlight) {
|
|
@@ -36,11 +38,16 @@ export class RekShell {
|
|
|
36
38
|
initialized = false;
|
|
37
39
|
currentDoc = null;
|
|
38
40
|
currentDocUrl = '';
|
|
41
|
+
scrollBuffer;
|
|
42
|
+
originalStdoutWrite = null;
|
|
43
|
+
inScrollMode = false;
|
|
39
44
|
constructor() {
|
|
40
45
|
this.client = createClient({
|
|
41
46
|
baseUrl: 'http://localhost',
|
|
42
|
-
checkHooks: false
|
|
47
|
+
checkHooks: false,
|
|
48
|
+
http2: true
|
|
43
49
|
});
|
|
50
|
+
this.scrollBuffer = new ScrollBuffer({ maxLines: 10000 });
|
|
44
51
|
}
|
|
45
52
|
async ensureInitialized() {
|
|
46
53
|
if (this.initialized)
|
|
@@ -85,7 +92,7 @@ export class RekShell {
|
|
|
85
92
|
const commands = [
|
|
86
93
|
'get', 'post', 'put', 'delete', 'patch', 'head', 'options',
|
|
87
94
|
'ws', 'udp', 'load', 'chat', 'ai',
|
|
88
|
-
'whois', 'tls', 'ssl', 'dns', 'rdap', 'ping',
|
|
95
|
+
'whois', 'tls', 'ssl', 'dns', 'dns:propagate', 'rdap', 'ping',
|
|
89
96
|
'scrap', '$', '$text', '$attr', '$html', '$links', '$images', '$scripts', '$css', '$sourcemaps', '$unmap', '$unmap:view', '$unmap:save', '$beautify', '$beautify:save', '$table',
|
|
90
97
|
'?', 'search', 'suggest', 'example',
|
|
91
98
|
'help', 'clear', 'exit', 'set', 'url', 'vars', 'env'
|
|
@@ -95,9 +102,11 @@ export class RekShell {
|
|
|
95
102
|
}
|
|
96
103
|
async start() {
|
|
97
104
|
await this.ensureInitialized();
|
|
105
|
+
this.setupScrollCapture();
|
|
98
106
|
console.clear();
|
|
99
107
|
console.log(colors.bold(colors.cyan('Rek Console')));
|
|
100
108
|
console.log(colors.gray('Chat with your APIs. Type "help" for magic.'));
|
|
109
|
+
console.log(colors.gray('Page Up/Down or mouse scroll to view history.'));
|
|
101
110
|
console.log(colors.gray('--------------------------------------------\n'));
|
|
102
111
|
this.prompt();
|
|
103
112
|
this.rl.on('line', async (line) => {
|
|
@@ -112,15 +121,184 @@ export class RekShell {
|
|
|
112
121
|
this.rl.close();
|
|
113
122
|
});
|
|
114
123
|
this.rl.on('close', () => {
|
|
124
|
+
this.cleanupScrollCapture();
|
|
115
125
|
console.log(colors.gray('\nSee ya.'));
|
|
116
126
|
process.exit(0);
|
|
117
127
|
});
|
|
128
|
+
process.stdout.on('resize', () => {
|
|
129
|
+
this.scrollBuffer.updateViewport();
|
|
130
|
+
});
|
|
131
|
+
this.setupScrollKeyHandler();
|
|
132
|
+
}
|
|
133
|
+
setupScrollCapture() {
|
|
134
|
+
this.originalStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
135
|
+
const self = this;
|
|
136
|
+
process.stdout.write = function (chunk, encodingOrCallback, callback) {
|
|
137
|
+
const content = typeof chunk === 'string' ? chunk : chunk.toString();
|
|
138
|
+
self.scrollBuffer.write(content);
|
|
139
|
+
if (!self.inScrollMode && self.originalStdoutWrite) {
|
|
140
|
+
return self.originalStdoutWrite(chunk, encodingOrCallback, callback);
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
cleanupScrollCapture() {
|
|
146
|
+
if (this.originalStdoutWrite) {
|
|
147
|
+
process.stdout.write = this.originalStdoutWrite;
|
|
148
|
+
this.originalStdoutWrite = null;
|
|
149
|
+
}
|
|
150
|
+
disableMouseReporting();
|
|
151
|
+
}
|
|
152
|
+
setupScrollKeyHandler() {
|
|
153
|
+
enableMouseReporting();
|
|
154
|
+
if (process.stdin.isTTY) {
|
|
155
|
+
const originalEmit = process.stdin.emit.bind(process.stdin);
|
|
156
|
+
const self = this;
|
|
157
|
+
process.stdin.emit = function (event, ...args) {
|
|
158
|
+
if (event === 'data') {
|
|
159
|
+
const data = args[0];
|
|
160
|
+
const str = data.toString();
|
|
161
|
+
if (str.includes('\x1b[<')) {
|
|
162
|
+
const mouseScroll = parseMouseScroll(data);
|
|
163
|
+
if (mouseScroll) {
|
|
164
|
+
self.handleScrollKey(mouseScroll);
|
|
165
|
+
}
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
if (data.length >= 6 && data[0] === 0x1b && data[1] === 0x5b && data[2] === 0x4d) {
|
|
169
|
+
const mouseScroll = parseMouseScroll(data);
|
|
170
|
+
if (mouseScroll) {
|
|
171
|
+
self.handleScrollKey(mouseScroll);
|
|
172
|
+
}
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
if (self.inScrollMode) {
|
|
176
|
+
if (str === '\x1b' || str === '\x1b\x1b') {
|
|
177
|
+
self.exitScrollMode();
|
|
178
|
+
}
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
const scrollKey = parseScrollKey(data);
|
|
182
|
+
if (scrollKey) {
|
|
183
|
+
if (scrollKey === 'escape') {
|
|
184
|
+
return originalEmit(event, ...args);
|
|
185
|
+
}
|
|
186
|
+
self.handleScrollKey(scrollKey);
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return originalEmit(event, ...args);
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
handleScrollKey(key) {
|
|
195
|
+
let needsRedraw = false;
|
|
196
|
+
switch (key) {
|
|
197
|
+
case 'pageUp':
|
|
198
|
+
if (!this.inScrollMode) {
|
|
199
|
+
this.enterScrollMode();
|
|
200
|
+
}
|
|
201
|
+
needsRedraw = this.scrollBuffer.pageUp();
|
|
202
|
+
break;
|
|
203
|
+
case 'pageDown':
|
|
204
|
+
needsRedraw = this.scrollBuffer.pageDown();
|
|
205
|
+
if (!this.scrollBuffer.isScrolledUp && this.inScrollMode) {
|
|
206
|
+
this.exitScrollMode();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
break;
|
|
210
|
+
case 'scrollUp':
|
|
211
|
+
if (!this.inScrollMode) {
|
|
212
|
+
this.enterScrollMode();
|
|
213
|
+
}
|
|
214
|
+
needsRedraw = this.scrollBuffer.scrollUp(3);
|
|
215
|
+
break;
|
|
216
|
+
case 'scrollDown':
|
|
217
|
+
needsRedraw = this.scrollBuffer.scrollDown(3);
|
|
218
|
+
if (!this.scrollBuffer.isScrolledUp && this.inScrollMode) {
|
|
219
|
+
this.exitScrollMode();
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
break;
|
|
223
|
+
case 'home':
|
|
224
|
+
if (!this.inScrollMode) {
|
|
225
|
+
this.enterScrollMode();
|
|
226
|
+
}
|
|
227
|
+
this.scrollBuffer.scrollToTop();
|
|
228
|
+
needsRedraw = true;
|
|
229
|
+
break;
|
|
230
|
+
case 'end':
|
|
231
|
+
this.scrollBuffer.scrollToBottom();
|
|
232
|
+
if (this.inScrollMode) {
|
|
233
|
+
this.exitScrollMode();
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
break;
|
|
237
|
+
case 'escape':
|
|
238
|
+
if (this.inScrollMode) {
|
|
239
|
+
this.exitScrollMode();
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
if (needsRedraw && this.inScrollMode) {
|
|
245
|
+
this.renderScrollView();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
enterScrollMode() {
|
|
249
|
+
if (this.inScrollMode)
|
|
250
|
+
return;
|
|
251
|
+
this.inScrollMode = true;
|
|
252
|
+
this.rl.pause();
|
|
253
|
+
if (this.originalStdoutWrite) {
|
|
254
|
+
this.originalStdoutWrite('\x1b[?25l');
|
|
255
|
+
}
|
|
256
|
+
this.renderScrollView();
|
|
257
|
+
}
|
|
258
|
+
exitScrollMode() {
|
|
259
|
+
if (!this.inScrollMode)
|
|
260
|
+
return;
|
|
261
|
+
this.inScrollMode = false;
|
|
262
|
+
if (this.originalStdoutWrite) {
|
|
263
|
+
this.originalStdoutWrite('\x1b[?25h');
|
|
264
|
+
this.originalStdoutWrite('\x1b[2J\x1b[H');
|
|
265
|
+
}
|
|
266
|
+
const recentLines = this.scrollBuffer.getVisibleLines();
|
|
267
|
+
if (this.originalStdoutWrite) {
|
|
268
|
+
this.originalStdoutWrite(recentLines.join('\n') + '\n');
|
|
269
|
+
}
|
|
270
|
+
this.rl.resume();
|
|
271
|
+
this.prompt();
|
|
272
|
+
}
|
|
273
|
+
renderScrollView() {
|
|
274
|
+
if (!this.originalStdoutWrite)
|
|
275
|
+
return;
|
|
276
|
+
const rows = process.stdout.rows || 24;
|
|
277
|
+
const cols = process.stdout.columns || 80;
|
|
278
|
+
const visibleLines = this.scrollBuffer.getVisibleLines();
|
|
279
|
+
const info = this.scrollBuffer.getScrollInfo();
|
|
280
|
+
this.originalStdoutWrite('\x1b[2J\x1b[H');
|
|
281
|
+
for (let i = 0; i < visibleLines.length && i < rows - 1; i++) {
|
|
282
|
+
const line = visibleLines[i] || '';
|
|
283
|
+
const truncated = line.length > cols ? line.slice(0, cols - 1) + '…' : line;
|
|
284
|
+
this.originalStdoutWrite(truncated + '\n');
|
|
285
|
+
}
|
|
286
|
+
const scrollInfo = this.scrollBuffer.isScrolledUp
|
|
287
|
+
? colors.yellow(`↑ ${this.scrollBuffer.position} lines | ${info.percent}% | `)
|
|
288
|
+
: '';
|
|
289
|
+
const helpText = colors.gray('Page Up/Down • Home/End • Esc to exit');
|
|
290
|
+
const statusBar = `\x1b[${rows};1H\x1b[7m ${scrollInfo}${helpText} \x1b[0m`;
|
|
291
|
+
this.originalStdoutWrite(statusBar);
|
|
118
292
|
}
|
|
119
293
|
prompt() {
|
|
120
294
|
this.rl.setPrompt(this.getPrompt());
|
|
121
295
|
this.rl.prompt();
|
|
122
296
|
}
|
|
123
297
|
async handleCommand(input) {
|
|
298
|
+
if (input.endsWith('?') && !input.startsWith('?') && input.length > 1) {
|
|
299
|
+
await this.runSearch(input.slice(0, -1).trim());
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
124
302
|
if (input.includes('=') && !input.includes(' ') && !input.startsWith('http')) {
|
|
125
303
|
}
|
|
126
304
|
const parts = this.parseLine(input);
|
|
@@ -165,6 +343,9 @@ export class RekShell {
|
|
|
165
343
|
case 'dns':
|
|
166
344
|
await this.runDNS(parts[1]);
|
|
167
345
|
return;
|
|
346
|
+
case 'dns:propagate':
|
|
347
|
+
await this.runDNSPropagation(parts[1], parts[2]);
|
|
348
|
+
return;
|
|
168
349
|
case 'rdap':
|
|
169
350
|
await this.runRDAP(parts[1]);
|
|
170
351
|
return;
|
|
@@ -650,25 +831,56 @@ export class RekShell {
|
|
|
650
831
|
const duration = Math.round(performance.now() - startTime);
|
|
651
832
|
const statusIcon = info.valid ? colors.green('✔') : colors.red('✖');
|
|
652
833
|
const statusText = info.valid ? colors.green('Valid') : colors.red('Invalid/Expired');
|
|
653
|
-
console.log(`${statusIcon} Certificate ${statusText}` + colors.gray(` (${duration}ms)\n`));
|
|
654
|
-
console.log(colors.bold(' Certificate:'));
|
|
655
|
-
console.log(` ${colors.cyan('Subject')}: ${info.subject?.CN || info.subject?.O || 'N/A'}`);
|
|
656
|
-
console.log(` ${colors.cyan('Issuer')}: ${info.issuer?.CN || info.issuer?.O || 'N/A'}`);
|
|
657
|
-
console.log(` ${colors.cyan('Valid From')}: ${info.validFrom.toISOString()}`);
|
|
658
|
-
console.log(` ${colors.cyan('Valid To')}: ${info.validTo.toISOString()}`);
|
|
659
834
|
const daysColor = info.daysRemaining < 30 ? colors.red : info.daysRemaining < 90 ? colors.yellow : colors.green;
|
|
660
|
-
console.log(
|
|
661
|
-
console.log(colors.
|
|
662
|
-
console.log(
|
|
663
|
-
console.log(`
|
|
664
|
-
|
|
835
|
+
console.log(`\n${colors.bold(colors.cyan('🔒 TLS/SSL Report'))}`);
|
|
836
|
+
console.log(`${statusIcon} Certificate ${statusText}` + colors.gray(` (${duration}ms)\n`));
|
|
837
|
+
console.log(colors.bold('Certificate:'));
|
|
838
|
+
console.log(` ${colors.gray('Subject:')}`);
|
|
839
|
+
for (const key of Object.keys(info.subject || {})) {
|
|
840
|
+
console.log(` ${colors.gray(key.padEnd(10))}: ${info.subject[key]}`);
|
|
841
|
+
}
|
|
842
|
+
console.log(` ${colors.gray('Issuer:')}`);
|
|
843
|
+
for (const key of Object.keys(info.issuer || {})) {
|
|
844
|
+
console.log(` ${colors.gray(key.padEnd(10))}: ${info.issuer[key]}`);
|
|
845
|
+
}
|
|
846
|
+
console.log(` ${colors.gray('Expires:')} ${daysColor(info.daysRemaining + ' days')} (${info.validTo.toISOString().split('T')[0]})`);
|
|
847
|
+
console.log(` ${colors.gray('Valid From:')} ${info.validFrom.toISOString().split('T')[0]}`);
|
|
848
|
+
console.log(` ${colors.gray('Valid To:')} ${info.validTo.toISOString().split('T')[0]}`);
|
|
849
|
+
console.log(` ${colors.gray('Valid:')} ${info.valid ? colors.green('Yes') : colors.red('No')}`);
|
|
850
|
+
if (info.altNames && info.altNames.length > 0) {
|
|
851
|
+
console.log(colors.bold('\nSubject Alternative Names (SANs):'));
|
|
852
|
+
for (const name of info.altNames) {
|
|
853
|
+
console.log(` ${colors.cyan('→')} ${name}`);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
console.log(colors.bold('\nPublic Key:'));
|
|
857
|
+
if (info.pubkey) {
|
|
858
|
+
console.log(` ${colors.gray('Algorithm:')} ${info.pubkey.algo}`);
|
|
859
|
+
console.log(` ${colors.gray('Size:')} ${info.pubkey.size} bits`);
|
|
860
|
+
}
|
|
861
|
+
else {
|
|
862
|
+
console.log(' Not available');
|
|
863
|
+
}
|
|
864
|
+
console.log(colors.bold('\nExtended Key Usage:'));
|
|
865
|
+
if (info.extKeyUsage && info.extKeyUsage.length > 0) {
|
|
866
|
+
for (const oid of info.extKeyUsage) {
|
|
867
|
+
console.log(` ${colors.cyan('→')} ${oid}`);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
else {
|
|
871
|
+
console.log(' None');
|
|
872
|
+
}
|
|
873
|
+
console.log(colors.bold('\nConnection:'));
|
|
874
|
+
console.log(` ${colors.gray('Protocol:')} ${info.protocol || 'N/A'}`);
|
|
875
|
+
console.log(` ${colors.gray('Cipher:')} ${info.cipher?.name || 'N/A'}`);
|
|
876
|
+
console.log(` ${colors.gray('Auth:')} ${info.authorized ? colors.green('Trusted') : colors.red('Untrusted')}`);
|
|
665
877
|
if (info.authorizationError) {
|
|
666
|
-
console.log(`
|
|
878
|
+
console.log(` ${colors.gray('Auth Error:')} ${colors.red(String(info.authorizationError))}`);
|
|
667
879
|
}
|
|
668
|
-
console.log(colors.bold('\
|
|
669
|
-
console.log(`
|
|
670
|
-
console.log(`
|
|
671
|
-
console.log(`
|
|
880
|
+
console.log(colors.bold('\nFingerprints:'));
|
|
881
|
+
console.log(` ${colors.gray('SHA1:')} ${info.fingerprint}`);
|
|
882
|
+
console.log(` ${colors.gray('SHA256:')} ${info.fingerprint256}`);
|
|
883
|
+
console.log(` ${colors.gray('Serial:')} ${info.serialNumber}`);
|
|
672
884
|
this.lastResponse = info;
|
|
673
885
|
}
|
|
674
886
|
catch (error) {
|
|
@@ -736,6 +948,27 @@ export class RekShell {
|
|
|
736
948
|
}
|
|
737
949
|
console.log('');
|
|
738
950
|
}
|
|
951
|
+
async runDNSPropagation(domain, type = 'A') {
|
|
952
|
+
if (!domain) {
|
|
953
|
+
domain = this.getBaseDomain() || '';
|
|
954
|
+
if (!domain) {
|
|
955
|
+
console.log(colors.yellow('Usage: dns:propagate <domain> [type]'));
|
|
956
|
+
console.log(colors.gray(' Examples: dns:propagate google.com | dns:propagate github.com TXT'));
|
|
957
|
+
console.log(colors.gray(' Or set a base URL first: url https://example.com'));
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
console.log(colors.gray(`Checking DNS propagation for ${domain} (${type})...`));
|
|
962
|
+
try {
|
|
963
|
+
const { checkPropagation, formatPropagationReport } = await import('../../dns/propagation.js');
|
|
964
|
+
const results = await checkPropagation(domain, type);
|
|
965
|
+
console.log(formatPropagationReport(results, domain, type));
|
|
966
|
+
this.lastResponse = results;
|
|
967
|
+
}
|
|
968
|
+
catch (error) {
|
|
969
|
+
console.error(colors.red(`Propagation check failed: ${error.message}`));
|
|
970
|
+
}
|
|
971
|
+
}
|
|
739
972
|
async runRDAP(domain) {
|
|
740
973
|
if (!domain) {
|
|
741
974
|
domain = this.getRootDomain() || '';
|
|
@@ -1660,38 +1893,14 @@ export class RekShell {
|
|
|
1660
1893
|
console.log('');
|
|
1661
1894
|
}
|
|
1662
1895
|
async runSearch(query) {
|
|
1663
|
-
if (!query.trim()) {
|
|
1664
|
-
console.log(colors.yellow('Usage: ? <query> or search <query>'));
|
|
1665
|
-
console.log(colors.gray(' Examples:'));
|
|
1666
|
-
console.log(colors.gray(' ? retry exponential backoff'));
|
|
1667
|
-
console.log(colors.gray(' search cache configuration'));
|
|
1668
|
-
return;
|
|
1669
|
-
}
|
|
1670
|
-
console.log(colors.gray('Searching documentation...'));
|
|
1671
1896
|
try {
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
console.log(colors.yellow(`No results for: "${query}"`));
|
|
1676
|
-
console.log(colors.gray('Try different keywords like: retry, cache, streaming, websocket, pagination'));
|
|
1677
|
-
return;
|
|
1678
|
-
}
|
|
1679
|
-
console.log(colors.bold(colors.cyan(`\nFound ${results.length} results for "${query}":\n`)));
|
|
1680
|
-
for (let i = 0; i < results.length; i++) {
|
|
1681
|
-
const result = results[i];
|
|
1682
|
-
const score = Math.round(result.score * 100);
|
|
1683
|
-
console.log(` ${colors.green(`${i + 1}.`)} ${colors.bold(result.title)} ${colors.gray(`(${score}%)`)}`);
|
|
1684
|
-
console.log(` ${colors.gray(result.path)}`);
|
|
1685
|
-
if (result.snippet) {
|
|
1686
|
-
const snippet = result.snippet.slice(0, 120).replace(/\n/g, ' ');
|
|
1687
|
-
console.log(` ${colors.gray(snippet)}${result.snippet.length > 120 ? '...' : ''}`);
|
|
1688
|
-
}
|
|
1689
|
-
console.log('');
|
|
1690
|
-
}
|
|
1691
|
-
console.log(colors.gray(' Tip: Use "get_doc <path>" to read full documentation'));
|
|
1897
|
+
this.rl.pause();
|
|
1898
|
+
await openSearchPanel(query.trim() || undefined);
|
|
1899
|
+
this.rl.resume();
|
|
1692
1900
|
}
|
|
1693
1901
|
catch (error) {
|
|
1694
1902
|
console.error(colors.red(`Search failed: ${error.message}`));
|
|
1903
|
+
this.rl.resume();
|
|
1695
1904
|
}
|
|
1696
1905
|
}
|
|
1697
1906
|
async runSuggest(useCase) {
|
|
@@ -1834,6 +2043,12 @@ export class RekShell {
|
|
|
1834
2043
|
${colors.green('suggest <use-case>')} Get implementation suggestions.
|
|
1835
2044
|
${colors.green('example <feature>')} Get code examples for a feature.
|
|
1836
2045
|
|
|
2046
|
+
${colors.bold('Navigation:')}
|
|
2047
|
+
${colors.green('Page Up/Down')} Scroll through command history.
|
|
2048
|
+
${colors.green('Home/End')} Jump to top/bottom of history.
|
|
2049
|
+
${colors.green('Mouse Scroll')} Scroll with mouse wheel.
|
|
2050
|
+
${colors.green('Escape')} Exit scroll mode.
|
|
2051
|
+
|
|
1837
2052
|
${colors.bold('Examples:')}
|
|
1838
2053
|
› url httpbin.org
|
|
1839
2054
|
› get /json
|
package/dist/contract/index.js
CHANGED
|
@@ -49,14 +49,15 @@ export function createContract(client, contract) {
|
|
|
49
49
|
if (endpoint.errors && err instanceof HttpError && err.response) {
|
|
50
50
|
const schema = endpoint.errors[err.status];
|
|
51
51
|
if (schema) {
|
|
52
|
+
let parsedError;
|
|
52
53
|
try {
|
|
53
54
|
const errorBody = await err.response.json();
|
|
54
|
-
|
|
55
|
-
throw new ContractError(err.status, parsedError, err);
|
|
55
|
+
parsedError = schema.parse(errorBody);
|
|
56
56
|
}
|
|
57
57
|
catch (parseErr) {
|
|
58
58
|
throw err;
|
|
59
59
|
}
|
|
60
|
+
throw new ContractError(err.status, parsedError, err);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
throw err;
|
package/dist/dns/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type DnsSecurityRecords } from '../utils/dns-toolkit.js';
|
|
|
2
2
|
export { createLookupFunction, customDNSLookup } from '../utils/dns.js';
|
|
3
3
|
export { createDoHLookup } from '../utils/doh.js';
|
|
4
4
|
export { getSecurityRecords, type DnsSecurityRecords } from '../utils/dns-toolkit.js';
|
|
5
|
+
export { checkPropagation, type PropagationResult, type DnsRecord, formatPropagationReport } from './propagation.js';
|
|
5
6
|
export type { DNSOptions } from '../types/index.js';
|
|
6
7
|
export type RecordType = 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SOA' | 'SRV' | 'CAA' | 'PTR';
|
|
7
8
|
export type DoHProvider = 'cloudflare' | 'google' | 'quad9' | 'system';
|
package/dist/dns/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dns/index.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAgD,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGhH,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,i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 import { getSecurityRecords as getSecurityRecordsUtil } from '../utils/dns-toolk
|
|
|
3
3
|
export { createLookupFunction, customDNSLookup } from '../utils/dns.js';
|
|
4
4
|
export { createDoHLookup } from '../utils/doh.js';
|
|
5
5
|
export { getSecurityRecords } from '../utils/dns-toolkit.js';
|
|
6
|
+
export { checkPropagation, formatPropagationReport } from './propagation.js';
|
|
6
7
|
export class DNSClient {
|
|
7
8
|
options;
|
|
8
9
|
constructor(options = {}) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface DnsRecord {
|
|
2
|
+
name: string;
|
|
3
|
+
type: number;
|
|
4
|
+
TTL: number;
|
|
5
|
+
data: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PropagationResult {
|
|
8
|
+
id: string;
|
|
9
|
+
provider: string;
|
|
10
|
+
status: 'ok' | 'error';
|
|
11
|
+
records: string[];
|
|
12
|
+
rawRecords: DnsRecord[];
|
|
13
|
+
latency: number;
|
|
14
|
+
error?: string;
|
|
15
|
+
location?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function checkPropagation(domain: string, type?: string): Promise<PropagationResult[]>;
|
|
18
|
+
export declare function formatPropagationReport(results: PropagationResult[], domain: string, type: string): string;
|
|
19
|
+
//# sourceMappingURL=propagation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propagation.d.ts","sourceRoot":"","sources":["../../src/dns/propagation.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,IAAI,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA8BD,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,MAAY,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAyEvG;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqD1G"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { request } from 'undici';
|
|
2
|
+
import pc from '../utils/colors.js';
|
|
3
|
+
const PROVIDERS = [
|
|
4
|
+
{ id: 'google', name: 'Google DNS', url: 'https://dns.google/resolve' },
|
|
5
|
+
{ id: 'cloudflare', name: 'Cloudflare', url: 'https://cloudflare-dns.com/dns-query' },
|
|
6
|
+
{ id: 'quad9', name: 'Quad9', url: 'https://dns.quad9.net:5053/dns-query' },
|
|
7
|
+
{ id: 'alidns', name: 'AliDNS (China)', url: 'https://dns.alidns.com/resolve' },
|
|
8
|
+
];
|
|
9
|
+
const TYPE_MAP = {
|
|
10
|
+
'A': '1',
|
|
11
|
+
'AAAA': '28',
|
|
12
|
+
'CNAME': '5',
|
|
13
|
+
'MX': '15',
|
|
14
|
+
'NS': '2',
|
|
15
|
+
'TXT': '16',
|
|
16
|
+
'PTR': '12',
|
|
17
|
+
'SRV': '33',
|
|
18
|
+
'SOA': '6',
|
|
19
|
+
'CAA': '257'
|
|
20
|
+
};
|
|
21
|
+
const TYPE_ID_MAP = Object.entries(TYPE_MAP).reduce((acc, [k, v]) => {
|
|
22
|
+
acc[Number(v)] = k;
|
|
23
|
+
return acc;
|
|
24
|
+
}, {});
|
|
25
|
+
export async function checkPropagation(domain, type = 'A') {
|
|
26
|
+
const typeId = TYPE_MAP[type.toUpperCase()] || type;
|
|
27
|
+
const queries = PROVIDERS.map(async (provider) => {
|
|
28
|
+
const start = performance.now();
|
|
29
|
+
try {
|
|
30
|
+
const url = new URL(provider.url);
|
|
31
|
+
url.searchParams.set('name', domain);
|
|
32
|
+
url.searchParams.set('type', typeId);
|
|
33
|
+
const { body, statusCode } = await request(url, {
|
|
34
|
+
method: 'GET',
|
|
35
|
+
headers: { 'Accept': 'application/dns-json' }
|
|
36
|
+
});
|
|
37
|
+
if (statusCode !== 200) {
|
|
38
|
+
throw new Error(`HTTP ${statusCode}`);
|
|
39
|
+
}
|
|
40
|
+
const json = await body.json();
|
|
41
|
+
const duration = performance.now() - start;
|
|
42
|
+
if (json.Status !== 0) {
|
|
43
|
+
const statusMap = {
|
|
44
|
+
1: 'FormErr', 2: 'ServFail', 3: 'NXDomain', 4: 'NotImp', 5: 'Refused'
|
|
45
|
+
};
|
|
46
|
+
const errorName = statusMap[json.Status] || `Code ${json.Status}`;
|
|
47
|
+
return {
|
|
48
|
+
id: provider.id,
|
|
49
|
+
provider: provider.name,
|
|
50
|
+
status: 'error',
|
|
51
|
+
records: [],
|
|
52
|
+
rawRecords: [],
|
|
53
|
+
latency: duration,
|
|
54
|
+
error: errorName
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
const answers = (json.Answer || []);
|
|
58
|
+
const records = answers.map(r => r.data);
|
|
59
|
+
return {
|
|
60
|
+
id: provider.id,
|
|
61
|
+
provider: provider.name,
|
|
62
|
+
status: 'ok',
|
|
63
|
+
records,
|
|
64
|
+
rawRecords: answers,
|
|
65
|
+
latency: duration
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
catch (err) {
|
|
69
|
+
return {
|
|
70
|
+
id: provider.id,
|
|
71
|
+
provider: provider.name,
|
|
72
|
+
status: 'error',
|
|
73
|
+
records: [],
|
|
74
|
+
rawRecords: [],
|
|
75
|
+
latency: performance.now() - start,
|
|
76
|
+
error: err.message
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return Promise.all(queries);
|
|
81
|
+
}
|
|
82
|
+
export function formatPropagationReport(results, domain, type) {
|
|
83
|
+
let output = '';
|
|
84
|
+
output += `
|
|
85
|
+
${pc.bold(pc.cyan('🌍 Global DNS Propagation Check'))}
|
|
86
|
+
`;
|
|
87
|
+
output += `${pc.gray('Domain:')} ${pc.white(domain)} ${pc.gray('Type:')} ${pc.white(type.toUpperCase())}
|
|
88
|
+
|
|
89
|
+
`;
|
|
90
|
+
const consensus = {};
|
|
91
|
+
results.forEach(res => {
|
|
92
|
+
const key = res.status === 'ok' ? res.records.sort().join(', ') : `Error: ${res.error}`;
|
|
93
|
+
consensus[key] = (consensus[key] || 0) + 1;
|
|
94
|
+
const statusIcon = res.status === 'ok' ? pc.green('✔') : pc.red('✖');
|
|
95
|
+
const latencyColor = res.latency < 50 ? pc.green : res.latency < 200 ? pc.yellow : pc.red;
|
|
96
|
+
const latencyText = latencyColor(`${Math.round(res.latency)}ms`.padStart(5));
|
|
97
|
+
const providerName = pc.bold(res.provider.padEnd(15));
|
|
98
|
+
let recordsText = '';
|
|
99
|
+
if (res.status === 'ok') {
|
|
100
|
+
if (res.records.length === 0) {
|
|
101
|
+
recordsText = pc.yellow('(No records)');
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
recordsText = res.records.join(', ');
|
|
105
|
+
if (recordsText.length > 60)
|
|
106
|
+
recordsText = recordsText.substring(0, 57) + '...';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
recordsText = pc.red(res.error || 'Unknown Error');
|
|
111
|
+
}
|
|
112
|
+
output += ` ${statusIcon} ${providerName} ${latencyText} ${recordsText}
|
|
113
|
+
`;
|
|
114
|
+
});
|
|
115
|
+
output += '\n';
|
|
116
|
+
const distinctAnswers = Object.keys(consensus);
|
|
117
|
+
if (distinctAnswers.length === 1) {
|
|
118
|
+
if (distinctAnswers[0].startsWith('Error')) {
|
|
119
|
+
output += pc.red('❌ All providers returned error.\n');
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
output += pc.green('✅ All providers returned the same records. Propagation is complete.\n');
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
else if (distinctAnswers.length > 1) {
|
|
126
|
+
output += pc.yellow('⚠ Inconsistent results detected (Propagation in progress or Split-Horizon DNS).\n');
|
|
127
|
+
}
|
|
128
|
+
return output;
|
|
129
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EmbeddingsData } from './search/types.js';
|
|
2
|
+
declare function getPackageVersion(): string;
|
|
3
|
+
export declare function getEmbeddingsCachePath(version?: string): string;
|
|
4
|
+
export declare function hasLocalEmbeddings(version?: string): boolean;
|
|
5
|
+
export declare function loadLocalEmbeddings(version?: string): EmbeddingsData | null;
|
|
6
|
+
export declare function saveLocalEmbeddings(data: EmbeddingsData, version?: string): void;
|
|
7
|
+
export declare function downloadEmbeddings(version?: string): Promise<EmbeddingsData>;
|
|
8
|
+
export declare function loadBundledEmbeddings(): Promise<EmbeddingsData | null>;
|
|
9
|
+
export interface LoadEmbeddingsOptions {
|
|
10
|
+
forceDownload?: boolean;
|
|
11
|
+
version?: string;
|
|
12
|
+
offline?: boolean;
|
|
13
|
+
debug?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function loadEmbeddings(options?: LoadEmbeddingsOptions): Promise<EmbeddingsData | null>;
|
|
16
|
+
export declare function clearEmbeddingsCache(version?: string): void;
|
|
17
|
+
export { getPackageVersion };
|
|
18
|
+
//# sourceMappingURL=embeddings-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings-loader.d.ts","sourceRoot":"","sources":["../../src/mcp/embeddings-loader.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA+BxD,iBAAS,iBAAiB,IAAI,MAAM,CAKnC;AAyBD,wBAAgB,sBAAsB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/D;AAKD,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5D;AAKD,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAa3E;AAKD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAUhF;AAKD,wBAAsB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAoBlF;AAKD,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAsB5E;AAED,MAAM,WAAW,qBAAqB;IAEpC,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAsBD,wBAAsB,cAAc,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAsCxG;AAKD,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAW3D;AAKD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|