ft-scout 9.5.1 → 9.5.4
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 +36 -18
- package/bin/src/commands/agent.d.ts +41 -0
- package/bin/src/commands/agent.js +155 -19
- package/bin/src/commands/audit.d.ts +2 -0
- package/bin/src/commands/authCommand.d.ts +2 -0
- package/bin/src/commands/benchmark.d.ts +20 -0
- package/bin/src/commands/benchmark.js +120 -97
- package/bin/src/commands/brief.d.ts +4 -0
- package/bin/src/commands/checkpoint.d.ts +7 -0
- package/bin/src/commands/configCommand.d.ts +7 -0
- package/bin/src/commands/dashboard.d.ts +5 -0
- package/bin/src/commands/history.d.ts +2 -0
- package/bin/src/commands/init.d.ts +8 -0
- package/bin/src/commands/login.d.ts +10 -0
- package/bin/src/commands/logout.d.ts +6 -0
- package/bin/src/commands/mcp.d.ts +49 -0
- package/bin/src/commands/owners.d.ts +2 -0
- package/bin/src/commands/plan.d.ts +2 -0
- package/bin/src/commands/pr.d.ts +11 -0
- package/bin/src/commands/quota.d.ts +2 -0
- package/bin/src/commands/recommend.d.ts +5 -0
- package/bin/src/commands/risky.d.ts +10 -0
- package/bin/src/commands/setup.d.ts +2 -0
- package/bin/src/commands/signup.d.ts +8 -0
- package/bin/src/commands/switchCommand.d.ts +3 -0
- package/bin/src/commands/undo.d.ts +2 -0
- package/bin/src/commands/watch.d.ts +12 -0
- package/bin/src/commands/web.d.ts +8 -0
- package/bin/src/discovery/config.d.ts +10 -0
- package/bin/src/discovery/display.d.ts +3 -0
- package/bin/src/discovery/messages.d.ts +4 -0
- package/bin/src/discovery/signals.d.ts +16 -0
- package/bin/src/engine/actionVerifier.d.ts +69 -0
- package/bin/src/engine/agentEngine.d.ts +110 -0
- package/bin/src/engine/agentEngine.js +12 -14
- package/bin/src/engine/agentState.d.ts +154 -0
- package/bin/src/engine/browser/browserController.d.ts +155 -0
- package/bin/src/engine/browser/index.d.ts +2 -0
- package/bin/src/engine/checkpoints/checkpointManager.d.ts +48 -0
- package/bin/src/engine/computer/computerController.d.ts +130 -0
- package/bin/src/engine/computer/computerController.js +8 -0
- package/bin/src/engine/computer/computerDiagnostic.d.ts +31 -0
- package/bin/src/engine/computer/index.d.ts +4 -0
- package/bin/src/engine/computer/mockComputer.d.ts +62 -0
- package/bin/src/engine/computer/operatorHud.d.ts +30 -0
- package/bin/src/engine/git.d.ts +20 -0
- package/bin/src/engine/llm.d.ts +92 -0
- package/bin/src/engine/planner.d.ts +21 -0
- package/bin/src/engine/runtime/agentRuntime.d.ts +111 -0
- package/bin/src/engine/runtime/agentRuntime.js +3 -6
- package/bin/src/engine/runtime/index.d.ts +2 -0
- package/bin/src/engine/safety.d.ts +55 -0
- package/bin/src/engine/scanners.d.ts +2 -0
- package/bin/src/engine/subagents/subagentManager.d.ts +106 -0
- package/bin/src/engine/subagents/subagentManager.js +275 -3
- package/bin/src/engine/toolRegistry.d.ts +38 -0
- package/bin/src/engine/verifier.d.ts +47 -0
- package/bin/src/engine/voiceEngine.d.ts +26 -0
- package/bin/src/engine/web.d.ts +22 -0
- package/bin/src/engine/workspace/agentWorkspace.d.ts +112 -0
- package/bin/src/engine/workspace/index.d.ts +2 -0
- package/bin/src/index.d.ts +2 -0
- package/bin/src/index.js +5 -5
- package/bin/src/mcp/client.d.ts +62 -0
- package/bin/src/mcp/client.js +1 -1
- package/bin/src/mcp/cloudSync.d.ts +19 -0
- package/bin/src/mcp/discovery.d.ts +22 -0
- package/bin/src/mcp/health.d.ts +13 -0
- package/bin/src/mcp/index.d.ts +16 -0
- package/bin/src/mcp/manager.d.ts +113 -0
- package/bin/src/mcp/permissions.d.ts +18 -0
- package/bin/src/mcp/persistence.d.ts +44 -0
- package/bin/src/mcp/persistence.js +8 -1
- package/bin/src/mcp/recovery.d.ts +19 -0
- package/bin/src/mcp/telemetry.d.ts +15 -0
- package/bin/src/mcp/toolRouter.d.ts +23 -0
- package/bin/src/mcp/transport.d.ts +60 -0
- package/bin/src/mcp/types.d.ts +130 -0
- package/bin/src/server/server.d.ts +6 -0
- package/bin/src/utils/admin.d.ts +84 -0
- package/bin/src/utils/auditLogger.d.ts +18 -0
- package/bin/src/utils/auth.d.ts +132 -0
- package/bin/src/utils/branding.d.ts +2 -0
- package/bin/src/utils/branding.js +1 -1
- package/bin/src/utils/claudeUI.d.ts +131 -0
- package/bin/src/utils/claudeUI.js +138 -4
- package/bin/src/utils/config.d.ts +46 -0
- package/bin/src/utils/email.d.ts +36 -0
- package/bin/src/utils/firebaseAuth.d.ts +19 -0
- package/bin/src/utils/holoseneAuth.d.ts +18 -0
- package/bin/src/utils/interruptHandler.d.ts +32 -0
- package/bin/src/utils/language.d.ts +13 -0
- package/bin/src/utils/logger.d.ts +2 -0
- package/bin/src/utils/markdown.d.ts +19 -0
- package/bin/src/utils/payment.d.ts +81 -0
- package/bin/src/utils/pricing.d.ts +26 -0
- package/bin/src/utils/pricing.js +0 -1
- package/bin/src/utils/qrBridge.d.ts +33 -0
- package/bin/src/utils/qrBridge.js +1 -1
- package/bin/src/utils/razorpay.d.ts +48 -0
- package/bin/src/utils/rules.d.ts +24 -0
- package/bin/src/utils/session.d.ts +32 -0
- package/bin/src/utils/updateCheck.d.ts +3 -0
- package/package.json +17 -7
- package/.firebase/hosting.d2Vi.cache +0 -16
- package/.firebaserc +0 -14
- package/.mcp-config.json +0 -19
- package/.mft-mcp-config.json +0 -29
- package/.scoutrules +0 -13
- package/.test-ft/mcp_activity.json +0 -23
- package/.test-ft/mcp_credentials.enc +0 -1
- package/.test-ft/mcp_servers.json +0 -1
- package/bin/src/commands/agent.d.ts.map +0 -1
- package/bin/src/commands/agent.js.map +0 -1
- package/bin/src/commands/audit.d.ts.map +0 -1
- package/bin/src/commands/audit.js.map +0 -1
- package/bin/src/commands/authCommand.d.ts.map +0 -1
- package/bin/src/commands/authCommand.js.map +0 -1
- package/bin/src/commands/benchmark.d.ts.map +0 -1
- package/bin/src/commands/benchmark.js.map +0 -1
- package/bin/src/commands/brief.d.ts.map +0 -1
- package/bin/src/commands/brief.js.map +0 -1
- package/bin/src/commands/checkpoint.d.ts.map +0 -1
- package/bin/src/commands/checkpoint.js.map +0 -1
- package/bin/src/commands/configCommand.d.ts.map +0 -1
- package/bin/src/commands/configCommand.js.map +0 -1
- package/bin/src/commands/dashboard.d.ts.map +0 -1
- package/bin/src/commands/dashboard.js.map +0 -1
- package/bin/src/commands/history.d.ts.map +0 -1
- package/bin/src/commands/history.js.map +0 -1
- package/bin/src/commands/init.d.ts.map +0 -1
- package/bin/src/commands/init.js.map +0 -1
- package/bin/src/commands/login.d.ts.map +0 -1
- package/bin/src/commands/login.js.map +0 -1
- package/bin/src/commands/logout.d.ts.map +0 -1
- package/bin/src/commands/logout.js.map +0 -1
- package/bin/src/commands/mcp.d.ts.map +0 -1
- package/bin/src/commands/mcp.js.map +0 -1
- package/bin/src/commands/owners.d.ts.map +0 -1
- package/bin/src/commands/owners.js.map +0 -1
- package/bin/src/commands/plan.d.ts.map +0 -1
- package/bin/src/commands/plan.js.map +0 -1
- package/bin/src/commands/pr.d.ts.map +0 -1
- package/bin/src/commands/pr.js.map +0 -1
- package/bin/src/commands/quota.d.ts.map +0 -1
- package/bin/src/commands/quota.js.map +0 -1
- package/bin/src/commands/recommend.d.ts.map +0 -1
- package/bin/src/commands/recommend.js.map +0 -1
- package/bin/src/commands/risky.d.ts.map +0 -1
- package/bin/src/commands/risky.js.map +0 -1
- package/bin/src/commands/setup.d.ts.map +0 -1
- package/bin/src/commands/setup.js.map +0 -1
- package/bin/src/commands/signup.d.ts.map +0 -1
- package/bin/src/commands/signup.js.map +0 -1
- package/bin/src/commands/switchCommand.d.ts.map +0 -1
- package/bin/src/commands/switchCommand.js.map +0 -1
- package/bin/src/commands/undo.d.ts.map +0 -1
- package/bin/src/commands/undo.js.map +0 -1
- package/bin/src/commands/watch.d.ts.map +0 -1
- package/bin/src/commands/watch.js.map +0 -1
- package/bin/src/commands/web.d.ts.map +0 -1
- package/bin/src/commands/web.js.map +0 -1
- package/bin/src/discovery/config.d.ts.map +0 -1
- package/bin/src/discovery/config.js.map +0 -1
- package/bin/src/discovery/display.d.ts.map +0 -1
- package/bin/src/discovery/display.js.map +0 -1
- package/bin/src/discovery/messages.d.ts.map +0 -1
- package/bin/src/discovery/messages.js.map +0 -1
- package/bin/src/discovery/signals.d.ts.map +0 -1
- package/bin/src/discovery/signals.js.map +0 -1
- package/bin/src/engine/actionVerifier.d.ts.map +0 -1
- package/bin/src/engine/actionVerifier.js.map +0 -1
- package/bin/src/engine/agentEngine.d.ts.map +0 -1
- package/bin/src/engine/agentEngine.js.map +0 -1
- package/bin/src/engine/agentState.d.ts.map +0 -1
- package/bin/src/engine/agentState.js.map +0 -1
- package/bin/src/engine/browser/browserController.d.ts.map +0 -1
- package/bin/src/engine/browser/browserController.js.map +0 -1
- package/bin/src/engine/browser/index.d.ts.map +0 -1
- package/bin/src/engine/browser/index.js.map +0 -1
- package/bin/src/engine/checkpoints/checkpointManager.d.ts.map +0 -1
- package/bin/src/engine/checkpoints/checkpointManager.js.map +0 -1
- package/bin/src/engine/computer/computerController.d.ts.map +0 -1
- package/bin/src/engine/computer/computerController.js.map +0 -1
- package/bin/src/engine/computer/computerDiagnostic.d.ts.map +0 -1
- package/bin/src/engine/computer/computerDiagnostic.js.map +0 -1
- package/bin/src/engine/computer/index.d.ts.map +0 -1
- package/bin/src/engine/computer/index.js.map +0 -1
- package/bin/src/engine/computer/mockComputer.d.ts.map +0 -1
- package/bin/src/engine/computer/mockComputer.js.map +0 -1
- package/bin/src/engine/computer/operatorHud.d.ts.map +0 -1
- package/bin/src/engine/computer/operatorHud.js.map +0 -1
- package/bin/src/engine/computer/scout_driver.exe +0 -0
- package/bin/src/engine/git.d.ts.map +0 -1
- package/bin/src/engine/git.js.map +0 -1
- package/bin/src/engine/llm.d.ts.map +0 -1
- package/bin/src/engine/llm.js.map +0 -1
- package/bin/src/engine/planner.d.ts.map +0 -1
- package/bin/src/engine/planner.js.map +0 -1
- package/bin/src/engine/runtime/agentRuntime.d.ts.map +0 -1
- package/bin/src/engine/runtime/agentRuntime.js.map +0 -1
- package/bin/src/engine/runtime/index.d.ts.map +0 -1
- package/bin/src/engine/runtime/index.js.map +0 -1
- package/bin/src/engine/safety.d.ts.map +0 -1
- package/bin/src/engine/safety.js.map +0 -1
- package/bin/src/engine/scanners.d.ts.map +0 -1
- package/bin/src/engine/scanners.js.map +0 -1
- package/bin/src/engine/scoutAudioRecorder.cs +0 -215
- package/bin/src/engine/scout_audio_recorder.exe +0 -0
- package/bin/src/engine/subagents/subagentManager.d.ts.map +0 -1
- package/bin/src/engine/subagents/subagentManager.js.map +0 -1
- package/bin/src/engine/toolRegistry.d.ts.map +0 -1
- package/bin/src/engine/toolRegistry.js.map +0 -1
- package/bin/src/engine/verifier.d.ts.map +0 -1
- package/bin/src/engine/verifier.js.map +0 -1
- package/bin/src/engine/voiceEngine.d.ts.map +0 -1
- package/bin/src/engine/voiceEngine.js.map +0 -1
- package/bin/src/engine/web.d.ts.map +0 -1
- package/bin/src/engine/web.js.map +0 -1
- package/bin/src/engine/workspace/agentWorkspace.d.ts.map +0 -1
- package/bin/src/engine/workspace/agentWorkspace.js.map +0 -1
- package/bin/src/engine/workspace/index.d.ts.map +0 -1
- package/bin/src/engine/workspace/index.js.map +0 -1
- package/bin/src/index.d.ts.map +0 -1
- package/bin/src/index.js.map +0 -1
- package/bin/src/mcp/client.d.ts.map +0 -1
- package/bin/src/mcp/client.js.map +0 -1
- package/bin/src/mcp/cloudSync.d.ts.map +0 -1
- package/bin/src/mcp/cloudSync.js.map +0 -1
- package/bin/src/mcp/discovery.d.ts.map +0 -1
- package/bin/src/mcp/discovery.js.map +0 -1
- package/bin/src/mcp/health.d.ts.map +0 -1
- package/bin/src/mcp/health.js.map +0 -1
- package/bin/src/mcp/index.d.ts.map +0 -1
- package/bin/src/mcp/index.js.map +0 -1
- package/bin/src/mcp/manager.d.ts.map +0 -1
- package/bin/src/mcp/manager.js.map +0 -1
- package/bin/src/mcp/permissions.d.ts.map +0 -1
- package/bin/src/mcp/permissions.js.map +0 -1
- package/bin/src/mcp/persistence.d.ts.map +0 -1
- package/bin/src/mcp/persistence.js.map +0 -1
- package/bin/src/mcp/recovery.d.ts.map +0 -1
- package/bin/src/mcp/recovery.js.map +0 -1
- package/bin/src/mcp/telemetry.d.ts.map +0 -1
- package/bin/src/mcp/telemetry.js.map +0 -1
- package/bin/src/mcp/toolRouter.d.ts.map +0 -1
- package/bin/src/mcp/toolRouter.js.map +0 -1
- package/bin/src/mcp/transport.d.ts.map +0 -1
- package/bin/src/mcp/transport.js.map +0 -1
- package/bin/src/mcp/types.d.ts.map +0 -1
- package/bin/src/mcp/types.js.map +0 -1
- package/bin/src/server/server.d.ts.map +0 -1
- package/bin/src/server/server.js.map +0 -1
- package/bin/src/utils/admin.d.ts.map +0 -1
- package/bin/src/utils/admin.js.map +0 -1
- package/bin/src/utils/auditLogger.d.ts.map +0 -1
- package/bin/src/utils/auditLogger.js.map +0 -1
- package/bin/src/utils/auth.d.ts.map +0 -1
- package/bin/src/utils/auth.js.map +0 -1
- package/bin/src/utils/branding.d.ts.map +0 -1
- package/bin/src/utils/branding.js.map +0 -1
- package/bin/src/utils/claudeUI.d.ts.map +0 -1
- package/bin/src/utils/claudeUI.js.map +0 -1
- package/bin/src/utils/config.d.ts.map +0 -1
- package/bin/src/utils/config.js.map +0 -1
- package/bin/src/utils/email.d.ts.map +0 -1
- package/bin/src/utils/email.js.map +0 -1
- package/bin/src/utils/firebaseAuth.d.ts.map +0 -1
- package/bin/src/utils/firebaseAuth.js.map +0 -1
- package/bin/src/utils/holoseneAuth.d.ts.map +0 -1
- package/bin/src/utils/holoseneAuth.js.map +0 -1
- package/bin/src/utils/interruptHandler.d.ts.map +0 -1
- package/bin/src/utils/interruptHandler.js.map +0 -1
- package/bin/src/utils/language.d.ts.map +0 -1
- package/bin/src/utils/language.js.map +0 -1
- package/bin/src/utils/logger.d.ts.map +0 -1
- package/bin/src/utils/logger.js.map +0 -1
- package/bin/src/utils/markdown.d.ts.map +0 -1
- package/bin/src/utils/markdown.js.map +0 -1
- package/bin/src/utils/payment.d.ts.map +0 -1
- package/bin/src/utils/payment.js.map +0 -1
- package/bin/src/utils/pricing.d.ts.map +0 -1
- package/bin/src/utils/pricing.js.map +0 -1
- package/bin/src/utils/qrBridge.d.ts.map +0 -1
- package/bin/src/utils/qrBridge.js.map +0 -1
- package/bin/src/utils/razorpay.d.ts.map +0 -1
- package/bin/src/utils/razorpay.js.map +0 -1
- package/bin/src/utils/rules.d.ts.map +0 -1
- package/bin/src/utils/rules.js.map +0 -1
- package/bin/src/utils/session.d.ts.map +0 -1
- package/bin/src/utils/session.js.map +0 -1
- package/bin/src/utils/updateCheck.d.ts.map +0 -1
- package/bin/src/utils/updateCheck.js.map +0 -1
- package/downloads/invoice-2026-03.pdf +0 -1
- package/firebase.json +0 -74
- package/front-terrain-cli-1.0.0.tgz +0 -0
- package/web/ScoutFavicon.png +0 -0
- package/web/ScoutOGImage.png +0 -0
- package/web/app.js +0 -4510
- package/web/ft-logo.png +0 -0
- package/web/og-image.png +0 -0
- package/web/robots.txt +0 -24
- package/web/site.webmanifest +0 -16
- package/web/sitemap-tryscout.xml +0 -47
- package/web/sitemap.xml +0 -47
- package/web/styles.css +0 -3436
|
@@ -10,14 +10,12 @@ function hr(char = '─', len) {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Renders Claude Code-style Step Banner:
|
|
13
|
-
* ╭── ● Step 2
|
|
13
|
+
* ╭── ● Step 2 ── Scout Operating ──────────── ⏱ 1.2s • 3,250 tok • PRO ─╮
|
|
14
14
|
*/
|
|
15
15
|
export function renderStepHeader(telemetry) {
|
|
16
16
|
const width = getTerminalWidth();
|
|
17
17
|
const elapsedSecs = ((Date.now() - telemetry.startTimeMs) / 1000).toFixed(1);
|
|
18
|
-
const stepsText =
|
|
19
|
-
? `Step ${telemetry.step}/${telemetry.maxSteps}`
|
|
20
|
-
: `Step ${telemetry.step}`;
|
|
18
|
+
const stepsText = `Step ${telemetry.step}`;
|
|
21
19
|
const stepBadge = chalk.bold.cyan(`● ${stepsText}`);
|
|
22
20
|
const statusText = chalk.dim('Scout Operating');
|
|
23
21
|
const timeText = chalk.dim(`⏱ ${elapsedSecs}s`);
|
|
@@ -401,4 +399,140 @@ export function renderTaskCompletedCard(params) {
|
|
|
401
399
|
console.log(chalk.cyan('╰' + '─'.repeat(width) + '╯'));
|
|
402
400
|
console.log();
|
|
403
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* Renders Claude Code-style Multi-Agent Swarm Collaborative Completion Card (Grok Bot Relay)
|
|
404
|
+
*/
|
|
405
|
+
export function renderTeamSwarmCard(params) {
|
|
406
|
+
const width = Math.min(getTerminalWidth(), 88);
|
|
407
|
+
const stripAnsi = (str) => str.replace(/\u001B\[\d+m/g, '');
|
|
408
|
+
const padLine = (content, visibleLen) => {
|
|
409
|
+
const spaces = Math.max(0, width - 4 - visibleLen);
|
|
410
|
+
return `${chalk.magenta('│')} ${content}${' '.repeat(spaces)} ${chalk.magenta('│')}`;
|
|
411
|
+
};
|
|
412
|
+
console.log();
|
|
413
|
+
console.log(chalk.magenta('╭' + '─'.repeat(width) + '╮'));
|
|
414
|
+
const header = `${chalk.bold.yellow('🚀')} ${chalk.bold.white('MULTI-AGENT SWARM COMPLETED (TEAM RELAY)')}`;
|
|
415
|
+
console.log(padLine(header, stripAnsi(header).length));
|
|
416
|
+
console.log(chalk.magenta('├' + '─'.repeat(width) + '┤'));
|
|
417
|
+
const objText = `${chalk.bold.cyan('🎯 Objective:')} ${chalk.white(params.objective.slice(0, width - 20))}`;
|
|
418
|
+
console.log(padLine(objText, stripAnsi(objText).length));
|
|
419
|
+
console.log(padLine('', 0));
|
|
420
|
+
if (params.architectSummary) {
|
|
421
|
+
const archTitle = `${chalk.bold.cyan('🏛️ Architect Plan:')}`;
|
|
422
|
+
console.log(padLine(archTitle, stripAnsi(archTitle).length));
|
|
423
|
+
const line = params.architectSummary.split('\n')[0] || 'Architecture plan drafted.';
|
|
424
|
+
const archLine = ` ${chalk.dim(line.slice(0, width - 15))}`;
|
|
425
|
+
console.log(padLine(archLine, stripAnsi(archLine).length));
|
|
426
|
+
}
|
|
427
|
+
if (params.coderSummary) {
|
|
428
|
+
const coderTitle = `${chalk.bold.green('💻 Coder Implementation:')}`;
|
|
429
|
+
console.log(padLine(coderTitle, stripAnsi(coderTitle).length));
|
|
430
|
+
const line = params.coderSummary.split('\n')[0] || 'Changes implemented.';
|
|
431
|
+
const coderLine = ` ${chalk.dim(line.slice(0, width - 15))}`;
|
|
432
|
+
console.log(padLine(coderLine, stripAnsi(coderLine).length));
|
|
433
|
+
}
|
|
434
|
+
if (params.testerSummary) {
|
|
435
|
+
const testTitle = `${chalk.bold.yellow('🧪 Tester Verification:')}`;
|
|
436
|
+
console.log(padLine(testTitle, stripAnsi(testTitle).length));
|
|
437
|
+
const line = params.testerSummary.split('\n')[0] || 'Verification complete.';
|
|
438
|
+
const testLine = ` ${chalk.dim(line.slice(0, width - 15))}`;
|
|
439
|
+
console.log(padLine(testLine, stripAnsi(testLine).length));
|
|
440
|
+
}
|
|
441
|
+
console.log(padLine('', 0));
|
|
442
|
+
const filesTitle = `${chalk.bold.blue('📁 Modified Files')} (${params.modifiedFiles.length}):`;
|
|
443
|
+
console.log(padLine(filesTitle, stripAnsi(filesTitle).length));
|
|
444
|
+
if (params.modifiedFiles.length === 0) {
|
|
445
|
+
const noFiles = chalk.dim(' (No files modified)');
|
|
446
|
+
console.log(padLine(noFiles, stripAnsi(noFiles).length));
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
for (const file of params.modifiedFiles.slice(0, 5)) {
|
|
450
|
+
const fileLine = ` ${chalk.green('•')} ${chalk.cyan(file)}`;
|
|
451
|
+
console.log(padLine(fileLine, stripAnsi(fileLine).length));
|
|
452
|
+
}
|
|
453
|
+
if (params.modifiedFiles.length > 5) {
|
|
454
|
+
const moreFiles = chalk.dim(` ... and ${params.modifiedFiles.length - 5} more files`);
|
|
455
|
+
console.log(padLine(moreFiles, stripAnsi(moreFiles).length));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
console.log(padLine('', 0));
|
|
459
|
+
const durationSec = (params.durationMs / 1000).toFixed(1);
|
|
460
|
+
const metrics = `⏱ ${chalk.yellow(`${durationSec}s`)} • Steps: ${chalk.yellow(params.totalSteps)} • Relay: Architect ➔ Coder ➔ Tester`;
|
|
461
|
+
console.log(padLine(metrics, stripAnsi(metrics).length));
|
|
462
|
+
const tier = (params.tier || 'pro').toUpperCase();
|
|
463
|
+
const tierLine = `🛡️ Tier: ${chalk.bold.magenta(tier)} (Multi-Agent Swarm Swappable)`;
|
|
464
|
+
console.log(padLine(tierLine, stripAnsi(tierLine).length));
|
|
465
|
+
console.log(chalk.magenta('╰' + '─'.repeat(width) + '╯'));
|
|
466
|
+
console.log();
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Renders Claude Code-style Cross-App Multi-Agent Swarm Collaborative Completion Card (Strawberry-style)
|
|
470
|
+
*/
|
|
471
|
+
export function renderCrossAppSwarmCard(params) {
|
|
472
|
+
const width = Math.min(getTerminalWidth(), 88);
|
|
473
|
+
const stripAnsi = (str) => str.replace(/\u001B\[\d+m/g, '');
|
|
474
|
+
const padLine = (content, visibleLen) => {
|
|
475
|
+
const spaces = Math.max(0, width - 4 - visibleLen);
|
|
476
|
+
return `${chalk.cyan('│')} ${content}${' '.repeat(spaces)} ${chalk.cyan('│')}`;
|
|
477
|
+
};
|
|
478
|
+
console.log();
|
|
479
|
+
console.log(chalk.cyan('╭' + '─'.repeat(width) + '╮'));
|
|
480
|
+
const header = `${chalk.bold.yellow('🌐')} ${chalk.bold.white('CROSS-APP MULTI-AGENT SWARM (STRAWBERRY RELAY)')}`;
|
|
481
|
+
console.log(padLine(header, stripAnsi(header).length));
|
|
482
|
+
console.log(chalk.cyan('├' + '─'.repeat(width) + '┤'));
|
|
483
|
+
const objText = `${chalk.bold.cyan('🎯 Objective:')} ${chalk.white(params.objective.slice(0, width - 20))}`;
|
|
484
|
+
console.log(padLine(objText, stripAnsi(objText).length));
|
|
485
|
+
const source = params.sourceApp || 'Browser';
|
|
486
|
+
const target = params.targetApp || 'VS Code';
|
|
487
|
+
const flowText = `${chalk.bold.yellow('🔄 Flow:')} ${chalk.blue(source)} ➔ ${chalk.dim('Data Pipe')} ➔ ${chalk.green(target)} ➔ ${chalk.yellow('Verifier')}`;
|
|
488
|
+
console.log(padLine(flowText, stripAnsi(flowText).length));
|
|
489
|
+
console.log(padLine('', 0));
|
|
490
|
+
if (params.researcherSummary) {
|
|
491
|
+
const title = `${chalk.bold.blue(`🌐 Researcher (${source}):`)}`;
|
|
492
|
+
console.log(padLine(title, stripAnsi(title).length));
|
|
493
|
+
const line = params.researcherSummary.split('\n')[0] || 'Extracted data from source.';
|
|
494
|
+
const subLine = ` ${chalk.dim(line.slice(0, width - 15))}`;
|
|
495
|
+
console.log(padLine(subLine, stripAnsi(subLine).length));
|
|
496
|
+
}
|
|
497
|
+
if (params.operatorSummary) {
|
|
498
|
+
const title = `${chalk.bold.green(`💻 Operator (${target}):`)}`;
|
|
499
|
+
console.log(padLine(title, stripAnsi(title).length));
|
|
500
|
+
const line = params.operatorSummary.split('\n')[0] || 'Injected changes into target.';
|
|
501
|
+
const subLine = ` ${chalk.dim(line.slice(0, width - 15))}`;
|
|
502
|
+
console.log(padLine(subLine, stripAnsi(subLine).length));
|
|
503
|
+
}
|
|
504
|
+
if (params.verifierSummary) {
|
|
505
|
+
const title = `${chalk.bold.yellow('🧪 Verifier:')}`;
|
|
506
|
+
console.log(padLine(title, stripAnsi(title).length));
|
|
507
|
+
const line = params.verifierSummary.split('\n')[0] || 'Verification completed.';
|
|
508
|
+
const subLine = ` ${chalk.dim(line.slice(0, width - 15))}`;
|
|
509
|
+
console.log(padLine(subLine, stripAnsi(subLine).length));
|
|
510
|
+
}
|
|
511
|
+
console.log(padLine('', 0));
|
|
512
|
+
const filesTitle = `${chalk.bold.blue('📁 Modified Files')} (${params.modifiedFiles.length}):`;
|
|
513
|
+
console.log(padLine(filesTitle, stripAnsi(filesTitle).length));
|
|
514
|
+
if (params.modifiedFiles.length === 0) {
|
|
515
|
+
const noFiles = chalk.dim(' (No files modified)');
|
|
516
|
+
console.log(padLine(noFiles, stripAnsi(noFiles).length));
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
for (const file of params.modifiedFiles.slice(0, 5)) {
|
|
520
|
+
const fileLine = ` ${chalk.green('•')} ${chalk.cyan(file)}`;
|
|
521
|
+
console.log(padLine(fileLine, stripAnsi(fileLine).length));
|
|
522
|
+
}
|
|
523
|
+
if (params.modifiedFiles.length > 5) {
|
|
524
|
+
const moreFiles = chalk.dim(` ... and ${params.modifiedFiles.length - 5} more files`);
|
|
525
|
+
console.log(padLine(moreFiles, stripAnsi(moreFiles).length));
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
console.log(padLine('', 0));
|
|
529
|
+
const durationSec = (params.durationMs / 1000).toFixed(1);
|
|
530
|
+
const metrics = `⏱ ${chalk.yellow(`${durationSec}s`)} • Steps: ${chalk.yellow(params.totalSteps)} • Apps: ${chalk.blue(source)} ➔ ${chalk.green(target)}`;
|
|
531
|
+
console.log(padLine(metrics, stripAnsi(metrics).length));
|
|
532
|
+
const tier = (params.tier || 'pro').toUpperCase();
|
|
533
|
+
const tierLine = `🛡️ Tier: ${chalk.bold.magenta(tier)} (Cross-App Multi-Agent Swarm)`;
|
|
534
|
+
console.log(padLine(tierLine, stripAnsi(tierLine).length));
|
|
535
|
+
console.log(chalk.cyan('╰' + '─'.repeat(width) + '╯'));
|
|
536
|
+
console.log();
|
|
537
|
+
}
|
|
404
538
|
//# sourceMappingURL=claudeUI.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface RepoContext {
|
|
2
|
+
projectName: string;
|
|
3
|
+
repoUrl?: string | undefined;
|
|
4
|
+
targetDir?: string | undefined;
|
|
5
|
+
stack: string;
|
|
6
|
+
entryPoint: string;
|
|
7
|
+
painPoints: string[];
|
|
8
|
+
readOrder: string[];
|
|
9
|
+
createdAt: string;
|
|
10
|
+
language?: string | undefined;
|
|
11
|
+
packageManager?: string | undefined;
|
|
12
|
+
isMonorepo?: boolean | undefined;
|
|
13
|
+
workspaces?: string[] | undefined;
|
|
14
|
+
architectureDiagram?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface FileBackup {
|
|
17
|
+
filePath: string;
|
|
18
|
+
originalContent: string;
|
|
19
|
+
}
|
|
20
|
+
export interface HistoryItem {
|
|
21
|
+
id: string;
|
|
22
|
+
command: string;
|
|
23
|
+
description: string;
|
|
24
|
+
timestamp: string;
|
|
25
|
+
branchName?: string | undefined;
|
|
26
|
+
affectedFiles?: string[] | undefined;
|
|
27
|
+
previousBranch?: string | undefined;
|
|
28
|
+
backups?: FileBackup[] | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface FtConfig {
|
|
31
|
+
allowConfidential: boolean;
|
|
32
|
+
maxFilesScanned?: number;
|
|
33
|
+
}
|
|
34
|
+
export declare function saveScanReport(report: any[]): void;
|
|
35
|
+
export declare function loadScanReport(): any[];
|
|
36
|
+
export declare function getDirectoryFiles(dir: string, baseDir?: string, maxFiles?: number): string[];
|
|
37
|
+
export declare function saveContext(data: RepoContext): void;
|
|
38
|
+
export declare function loadContext(): RepoContext | null;
|
|
39
|
+
export declare function loadHistory(): HistoryItem[];
|
|
40
|
+
export declare function recordHistoryAction(action: Omit<HistoryItem, 'id' | 'timestamp'>): HistoryItem;
|
|
41
|
+
export declare function getLastHistoryAction(): HistoryItem | null;
|
|
42
|
+
export declare function popLastHistoryAction(): HistoryItem | null;
|
|
43
|
+
export declare function loadFtConfig(): FtConfig;
|
|
44
|
+
export declare function saveFtConfig(cfg: FtConfig): void;
|
|
45
|
+
export { loadAgentSessions, saveAgentSession, getRecentSessionsSummary, type AgentSessionRecord, type AgentSessionMessage } from './session.js';
|
|
46
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface WelcomeEmailOptions {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
idToken?: string;
|
|
6
|
+
tenantId?: string;
|
|
7
|
+
verificationLink?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EmailDispatchResult {
|
|
10
|
+
id: string;
|
|
11
|
+
recipient: string;
|
|
12
|
+
subject: string;
|
|
13
|
+
status: 'dispatched' | 'failed';
|
|
14
|
+
timestamp: string;
|
|
15
|
+
deliveryChannel: 'ambient';
|
|
16
|
+
provider?: string;
|
|
17
|
+
previewUrl?: string;
|
|
18
|
+
errorDetails?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Generate custom HTML & Plaintext welcome and email verification template
|
|
22
|
+
*/
|
|
23
|
+
export declare function generateWelcomeEmailTemplate(name: string, email: string, userId?: string, tenantId?: string, verificationLink?: string): {
|
|
24
|
+
subject: string;
|
|
25
|
+
textBody: string;
|
|
26
|
+
htmlBody: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Dispatch welcome & verification email using custom HTML template
|
|
30
|
+
*/
|
|
31
|
+
export declare function dispatchAmbientWelcomeEmail(options: WelcomeEmailOptions): Promise<EmailDispatchResult>;
|
|
32
|
+
/**
|
|
33
|
+
* Get history of ambiently dispatched emails
|
|
34
|
+
*/
|
|
35
|
+
export declare function getDispatchedEmails(): readonly EmailDispatchResult[];
|
|
36
|
+
//# sourceMappingURL=email.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { UserProfile } from './auth.js';
|
|
2
|
+
export declare const FIREBASE_API_KEY = "AIzaSyCMVNDgR8EejfXofUy87L7hsKxi3E_C3lg";
|
|
3
|
+
export declare const FIREBASE_PROJECT_ID = "frontterrain";
|
|
4
|
+
export declare const FIREBASE_TENANT_ID = "ft-scout-auth-gc2v5";
|
|
5
|
+
export declare const FIREBASE_TENANT_NAME = "ft-scout-auth";
|
|
6
|
+
export interface FirebaseAuthResult {
|
|
7
|
+
token: string;
|
|
8
|
+
refreshToken: string;
|
|
9
|
+
expiresIn: string;
|
|
10
|
+
user: UserProfile;
|
|
11
|
+
}
|
|
12
|
+
export declare function firebaseSignIn(email: string, password: string): Promise<FirebaseAuthResult>;
|
|
13
|
+
export declare function firebaseSignUp(name: string, email: string, password: string): Promise<FirebaseAuthResult>;
|
|
14
|
+
export declare function firebaseLookupToken(idToken: string): Promise<{
|
|
15
|
+
valid: boolean;
|
|
16
|
+
email?: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function firebaseLookupUser(idToken: string): Promise<UserProfile | null>;
|
|
19
|
+
//# sourceMappingURL=firebaseAuth.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UserProfile } from './auth.js';
|
|
2
|
+
export declare const HOLOSENE_BASE_URL: string;
|
|
3
|
+
export declare const HOLOSENE_OAUTH_AUTHORIZE_URL: string;
|
|
4
|
+
export declare const HOLOSENE_OAUTH_TOKEN_URL: string;
|
|
5
|
+
export declare const HOLOSENE_USERINFO_URL: string;
|
|
6
|
+
export declare const HOLOSENE_CLIENT_ID = "ft-scout-cli";
|
|
7
|
+
export interface HoloseneAuthResult {
|
|
8
|
+
token: string;
|
|
9
|
+
refreshToken?: string;
|
|
10
|
+
user: UserProfile;
|
|
11
|
+
tier?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function holoseneLookupUser(token: string): Promise<(UserProfile & {
|
|
14
|
+
tier?: string;
|
|
15
|
+
}) | null>;
|
|
16
|
+
export declare function holoseneSignInWithCode(code: string, redirectUri: string): Promise<HoloseneAuthResult>;
|
|
17
|
+
export declare function launchHoloseneBrowserOAuth(port?: number): Promise<HoloseneAuthResult>;
|
|
18
|
+
//# sourceMappingURL=holoseneAuth.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type InterruptAction = 'continue' | 'feedback' | 'revert' | 'abort';
|
|
2
|
+
export interface InterruptStepInfo {
|
|
3
|
+
step: number;
|
|
4
|
+
maxSteps: number;
|
|
5
|
+
goal: string;
|
|
6
|
+
modifiedFilesCount: number;
|
|
7
|
+
}
|
|
8
|
+
export interface InterruptManagerOptions {
|
|
9
|
+
getStepInfo: () => InterruptStepInfo;
|
|
10
|
+
onPause?: () => void;
|
|
11
|
+
onResume?: () => void;
|
|
12
|
+
onRevert?: () => Promise<boolean> | boolean;
|
|
13
|
+
onFeedback?: (feedback: string) => void;
|
|
14
|
+
onAbort?: (reason: string) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Claude Code-style interactive interrupt controller.
|
|
18
|
+
* Intercepts Ctrl+C (SIGINT) during agent execution loops to provide a graceful pause
|
|
19
|
+
* and steering menu rather than abruptly killing the Node process and losing context.
|
|
20
|
+
*/
|
|
21
|
+
export declare class InterruptManager {
|
|
22
|
+
private options;
|
|
23
|
+
private attached;
|
|
24
|
+
private isHandling;
|
|
25
|
+
private sigintCount;
|
|
26
|
+
private sigintListener?;
|
|
27
|
+
constructor(options: InterruptManagerOptions);
|
|
28
|
+
isAttached(): boolean;
|
|
29
|
+
attach(): void;
|
|
30
|
+
detach(): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=interruptHandler.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface LanguageSpec {
|
|
2
|
+
name: string;
|
|
3
|
+
romanName: string;
|
|
4
|
+
romanInstruction: string;
|
|
5
|
+
nativeInstruction: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const LANGUAGE_SPECS: Record<string, LanguageSpec>;
|
|
8
|
+
export declare function normalizeLanguage(langInput?: string): string | undefined;
|
|
9
|
+
export declare function getLanguageInstruction(langInput?: string, native?: boolean): {
|
|
10
|
+
displayName: string;
|
|
11
|
+
instruction: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=language.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps long plain text lines at a specified max width to prevent giant full-width text walls in CLI terminals.
|
|
3
|
+
*/
|
|
4
|
+
export declare function wrapText(text: string, maxWidth?: number): string;
|
|
5
|
+
/**
|
|
6
|
+
* Formats inline markdown elements (bold, italic, inline code, links) with ANSI chalk styles.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatInlineMarkdown(text: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Renders full markdown text into rich ANSI formatted terminal output with medium line width.
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderMarkdown(markdown: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Safely renders CLI note cards. For multi-byte/native script characters (Devanagari, Hangul, Tamil, CJK, etc.)
|
|
15
|
+
* that break fixed-width right box borders and ANSI cursor positioning in @clack/prompts, safeNote renders an
|
|
16
|
+
* uncorrupted open-right CLI card frame.
|
|
17
|
+
*/
|
|
18
|
+
export declare function safeNote(content: string, title?: string): void;
|
|
19
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type AuthConfig } from './auth.js';
|
|
2
|
+
export type PlanTier = 'free' | 'pro' | 'team' | 'enterprise';
|
|
3
|
+
export type BillingCycle = 'monthly' | 'annual';
|
|
4
|
+
export type PaymentProvider = 'paypal';
|
|
5
|
+
export interface PlanPricing {
|
|
6
|
+
id: PlanTier;
|
|
7
|
+
name: string;
|
|
8
|
+
monthlyPrice: number;
|
|
9
|
+
annualPrice: number;
|
|
10
|
+
monthlyPriceINR?: number | undefined;
|
|
11
|
+
annualPriceINR?: number | undefined;
|
|
12
|
+
credits: number;
|
|
13
|
+
description: string;
|
|
14
|
+
features: string[];
|
|
15
|
+
offerActive?: boolean | undefined;
|
|
16
|
+
offerBadge?: string | undefined;
|
|
17
|
+
offerBannerText?: string | undefined;
|
|
18
|
+
originalMonthlyPriceINR?: number | undefined;
|
|
19
|
+
originalMonthlyPriceUSD?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare function getActivePlanConfigs(): Record<PlanTier, PlanPricing>;
|
|
22
|
+
export declare const PLAN_CONFIGS: Record<PlanTier, PlanPricing>;
|
|
23
|
+
export interface PaymentConfigResponse {
|
|
24
|
+
provider: PaymentProvider;
|
|
25
|
+
isSandbox: boolean;
|
|
26
|
+
paypalClientId?: string | undefined;
|
|
27
|
+
razorpayKeyId?: string | undefined;
|
|
28
|
+
plans: Record<PlanTier, PlanPricing>;
|
|
29
|
+
}
|
|
30
|
+
export declare function getPayPalBaseUrl(): string;
|
|
31
|
+
export declare function getPayPalAccessToken(): Promise<string>;
|
|
32
|
+
export declare function getPaymentProvider(): PaymentProvider;
|
|
33
|
+
export declare function getPublicPaymentConfig(): PaymentConfigResponse;
|
|
34
|
+
export interface CreateCheckoutParams {
|
|
35
|
+
tier: PlanTier;
|
|
36
|
+
billingCycle?: BillingCycle | undefined;
|
|
37
|
+
returnUrl?: string | undefined;
|
|
38
|
+
cancelUrl?: string | undefined;
|
|
39
|
+
userEmail?: string | undefined;
|
|
40
|
+
}
|
|
41
|
+
export interface CheckoutSessionResult {
|
|
42
|
+
success: boolean;
|
|
43
|
+
provider: PaymentProvider;
|
|
44
|
+
sessionId: string;
|
|
45
|
+
checkoutUrl?: string | undefined;
|
|
46
|
+
orderId?: string | undefined;
|
|
47
|
+
amount: number;
|
|
48
|
+
currency: string;
|
|
49
|
+
tier: PlanTier;
|
|
50
|
+
billingCycle: BillingCycle;
|
|
51
|
+
isSandbox: boolean;
|
|
52
|
+
error?: string | undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates a checkout order strictly with PayPal.
|
|
56
|
+
*/
|
|
57
|
+
export declare function createCheckoutSession(params: CreateCheckoutParams): Promise<CheckoutSessionResult>;
|
|
58
|
+
export interface VerifyPaymentParams {
|
|
59
|
+
sessionId?: string | undefined;
|
|
60
|
+
orderId?: string | undefined;
|
|
61
|
+
token?: string | undefined;
|
|
62
|
+
tier: PlanTier;
|
|
63
|
+
billingCycle?: BillingCycle | undefined;
|
|
64
|
+
}
|
|
65
|
+
export interface VerifyPaymentResult {
|
|
66
|
+
success: boolean;
|
|
67
|
+
tier: PlanTier;
|
|
68
|
+
creditsAdded: number;
|
|
69
|
+
totalCredits: number;
|
|
70
|
+
renewAt: string;
|
|
71
|
+
auth: AuthConfig;
|
|
72
|
+
transactionId: string;
|
|
73
|
+
error?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Strictly verifies the PayPal transaction using PayPal REST API.
|
|
77
|
+
* Validates order status, currency, and paid amount against the requested plan.
|
|
78
|
+
* Absolutely no simulation or fake tokens allowed.
|
|
79
|
+
*/
|
|
80
|
+
export declare function verifyAndApplyUpgrade(params: VerifyPaymentParams): Promise<VerifyPaymentResult>;
|
|
81
|
+
//# sourceMappingURL=payment.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type PlanTier = 'free' | 'pro' | 'team' | 'enterprise';
|
|
2
|
+
export type BillingCycle = 'monthly' | 'annual';
|
|
3
|
+
export interface PricingTierConfig {
|
|
4
|
+
id: PlanTier;
|
|
5
|
+
name: string;
|
|
6
|
+
monthlyPriceINR: number;
|
|
7
|
+
annualPriceINR: number;
|
|
8
|
+
monthlyPriceUSD: number;
|
|
9
|
+
annualPriceUSD: number;
|
|
10
|
+
credits: number;
|
|
11
|
+
description: string;
|
|
12
|
+
features: string[];
|
|
13
|
+
popular?: boolean | undefined;
|
|
14
|
+
badge?: string | undefined;
|
|
15
|
+
offerActive?: boolean | undefined;
|
|
16
|
+
offerPriceINR?: number | undefined;
|
|
17
|
+
offerPriceUSD?: number | undefined;
|
|
18
|
+
offerBadge?: string | undefined;
|
|
19
|
+
offerBannerText?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const DEFAULT_PRICING_CONFIG: Record<PlanTier, PricingTierConfig>;
|
|
22
|
+
export declare function getPricingConfig(): Record<PlanTier, PricingTierConfig>;
|
|
23
|
+
export declare function saveFullPricingConfig(config: Record<PlanTier, PricingTierConfig>): Record<PlanTier, PricingTierConfig>;
|
|
24
|
+
export declare function updatePricingTier(tier: PlanTier, updates: Partial<PricingTierConfig>): PricingTierConfig;
|
|
25
|
+
export declare function resetPricingToDefaults(): Record<PlanTier, PricingTierConfig>;
|
|
26
|
+
//# sourceMappingURL=pricing.d.ts.map
|
package/bin/src/utils/pricing.js
CHANGED
|
@@ -14,7 +14,6 @@ export const DEFAULT_PRICING_CONFIG = {
|
|
|
14
14
|
credits: 100,
|
|
15
15
|
description: 'Essential tools for individual developer workflow & onboarding',
|
|
16
16
|
features: [
|
|
17
|
-
'Unlimited execution steps (No step limits)',
|
|
18
17
|
'100 AI credits / month',
|
|
19
18
|
'Full Scout CLI core features',
|
|
20
19
|
'Workspace rules (.scoutrules / SCOUT.md)',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type AuthConfig } from './auth.js';
|
|
2
|
+
export interface QrBridgeSession {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
code: string;
|
|
5
|
+
hostName: string;
|
|
6
|
+
cliVersion: string;
|
|
7
|
+
startedAt: string;
|
|
8
|
+
status: 'awaiting_pair' | 'paired' | 'expired';
|
|
9
|
+
}
|
|
10
|
+
export interface LiveTelemetryPayload {
|
|
11
|
+
status: 'idle' | 'running' | 'paused' | 'offline';
|
|
12
|
+
currentProject: string;
|
|
13
|
+
activeTask?: string | undefined;
|
|
14
|
+
tokensConsumed: number;
|
|
15
|
+
filesModified: number;
|
|
16
|
+
commandsExecuted: number;
|
|
17
|
+
lastLogSnippet: string;
|
|
18
|
+
lastPing: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Generates a clean, high-contrast monochrome ASCII QR representation for terminal display.
|
|
22
|
+
*/
|
|
23
|
+
export declare function generateAsciiQrPattern(code: string, url: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Saves live telemetry snapshot to ~/.ft/scout_telemetry.json
|
|
26
|
+
*/
|
|
27
|
+
export declare function pushTelemetryToCloud(sessionId: string, telemetry: any): Promise<boolean>;
|
|
28
|
+
export declare function writeTelemetry(telemetry: Partial<LiveTelemetryPayload>): void;
|
|
29
|
+
/**
|
|
30
|
+
* Launches the Scout QR Pairing bridge and awaits Scout Companion authentication.
|
|
31
|
+
*/
|
|
32
|
+
export declare function startQrPairingSession(): Promise<AuthConfig>;
|
|
33
|
+
//# sourceMappingURL=qrBridge.d.ts.map
|
|
@@ -105,7 +105,7 @@ export async function startQrPairingSession() {
|
|
|
105
105
|
const pairingCode = `SCT-${rawNum}`;
|
|
106
106
|
const sessionId = `sct_sess_${Date.now().toString(36)}_${crypto.randomBytes(3).toString('hex')}`;
|
|
107
107
|
const hostName = os.hostname() || 'workstation.local';
|
|
108
|
-
const version = '9.5.
|
|
108
|
+
const version = '9.5.4';
|
|
109
109
|
let localIp = '127.0.0.1';
|
|
110
110
|
try {
|
|
111
111
|
const nets = os.networkInterfaces();
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import Razorpay from 'razorpay';
|
|
2
|
+
import { type AuthConfig } from './auth.js';
|
|
3
|
+
export declare function getRazorpayKeyId(): string;
|
|
4
|
+
export declare function getRazorpayKeySecret(): string;
|
|
5
|
+
export declare function getRazorpayInstance(): Razorpay;
|
|
6
|
+
export interface CreateOrderParams {
|
|
7
|
+
amount: number;
|
|
8
|
+
currency?: string | undefined;
|
|
9
|
+
receipt?: string | undefined;
|
|
10
|
+
notes?: Record<string, any> | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface CreateOrderResult {
|
|
13
|
+
order_id: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
currency: string;
|
|
16
|
+
receipt?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* STEP 1: BACKEND - Create Razorpay Order
|
|
20
|
+
* Endpoint: POST /api/create-order
|
|
21
|
+
* Validates amount >= 100 paise and creates order via Razorpay API.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createRazorpayOrder(params: CreateOrderParams): Promise<CreateOrderResult>;
|
|
24
|
+
export interface VerifyPaymentParams {
|
|
25
|
+
order_id: string;
|
|
26
|
+
payment_id: string;
|
|
27
|
+
signature: string;
|
|
28
|
+
tier?: string | undefined;
|
|
29
|
+
userEmail?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface VerifyPaymentResult {
|
|
32
|
+
success: boolean;
|
|
33
|
+
order_id: string;
|
|
34
|
+
payment_id: string;
|
|
35
|
+
tier?: string | undefined;
|
|
36
|
+
totalCredits?: number | undefined;
|
|
37
|
+
renewAt?: string | undefined;
|
|
38
|
+
auth?: AuthConfig | undefined;
|
|
39
|
+
error?: string | undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* STEP 3: BACKEND - Verify Signature
|
|
43
|
+
* Endpoint: POST /api/verify-payment
|
|
44
|
+
* Algorithm: HMAC-SHA256(order_id + "|" + payment_id, KEY_SECRET)
|
|
45
|
+
* Returns success only if generated signature strictly matches.
|
|
46
|
+
*/
|
|
47
|
+
export declare function verifyRazorpaySignature(params: VerifyPaymentParams): VerifyPaymentResult;
|
|
48
|
+
//# sourceMappingURL=razorpay.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface WorkspaceRulesResult {
|
|
2
|
+
found: boolean;
|
|
3
|
+
filePath?: string;
|
|
4
|
+
fileName?: string;
|
|
5
|
+
content: string;
|
|
6
|
+
formattedPrompt: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Format raw rules content into an authoritative instruction block for the agent's system prompt.
|
|
10
|
+
*/
|
|
11
|
+
export declare function formatRulesForPrompt(content: string, fileName: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Discover and load workspace rules from the current working directory.
|
|
14
|
+
*/
|
|
15
|
+
export declare function loadWorkspaceRules(cwd?: string): WorkspaceRulesResult;
|
|
16
|
+
/**
|
|
17
|
+
* Generate a starter .scoutrules template file for a project repository.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createDefaultScoutRules(cwd?: string, overwrite?: boolean): {
|
|
20
|
+
created: boolean;
|
|
21
|
+
path: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface AgentSessionMessage {
|
|
2
|
+
role: 'user' | 'assistant' | 'system' | string;
|
|
3
|
+
content: string;
|
|
4
|
+
timestamp?: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface AgentSessionRecord {
|
|
7
|
+
id: string;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
goal: string;
|
|
10
|
+
summary: string;
|
|
11
|
+
modifiedFiles: string[];
|
|
12
|
+
keyHighlights?: string[] | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Load all recorded agent sessions from disk.
|
|
16
|
+
* Sorted by timestamp descending (newest first).
|
|
17
|
+
*/
|
|
18
|
+
export declare function loadAgentSessions(limit?: number): AgentSessionRecord[];
|
|
19
|
+
/**
|
|
20
|
+
* Save a new agent session record to disk.
|
|
21
|
+
* Keeps history intact, prepending the latest session.
|
|
22
|
+
*/
|
|
23
|
+
export declare function saveAgentSession(session: Omit<AgentSessionRecord, 'id' | 'timestamp'> & {
|
|
24
|
+
id?: string;
|
|
25
|
+
timestamp?: string;
|
|
26
|
+
}): AgentSessionRecord;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves past session history formatted for the LLM context.
|
|
29
|
+
* Guarantees context from at least the previous minSessions (default: 3 sessions minimum).
|
|
30
|
+
*/
|
|
31
|
+
export declare function getRecentSessionsSummary(minSessions?: number): string;
|
|
32
|
+
//# sourceMappingURL=session.d.ts.map
|