ft-scout 9.5.6 → 9.5.8

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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/bin/src/commands/benchmark.d.ts +1 -1
  3. package/bin/src/commands/benchmark.js +4 -1
  4. package/bin/src/commands/replay.d.ts +6 -0
  5. package/bin/src/commands/replay.js +64 -0
  6. package/bin/src/engine/agentEngine.d.ts +2 -0
  7. package/bin/src/engine/agentEngine.js +409 -55
  8. package/bin/src/engine/browser/actions/actionEngine.js +1 -1
  9. package/bin/src/engine/browser/observer/browserObserver.js +1 -1
  10. package/bin/src/engine/checkpoints/checkpointManager.js +9 -0
  11. package/bin/src/engine/computer/computerController.d.ts +8 -2
  12. package/bin/src/engine/computer/computerController.js +172 -38
  13. package/bin/src/engine/computer/mockComputer.d.ts +1 -1
  14. package/bin/src/engine/computer/mockComputer.js +1 -1
  15. package/bin/src/engine/computer/scoutDriver.cs +310 -63
  16. package/bin/src/engine/llm.js +37 -17
  17. package/bin/src/engine/models/harpProvider.js +48 -0
  18. package/bin/src/engine/production/taskReplay.d.ts +24 -5
  19. package/bin/src/engine/production/taskReplay.js +158 -11
  20. package/bin/src/engine/runtime/agentRuntime.js +35 -7
  21. package/bin/src/engine/tools/domainHandlers.js +44 -7
  22. package/bin/src/engine/workspace/agentWorkspace.js +11 -2
  23. package/bin/src/index.js +17 -6
  24. package/bin/src/mcp/client.js +1 -1
  25. package/bin/src/server/server.js +57 -18
  26. package/bin/src/utils/branding.js +1 -1
  27. package/bin/src/utils/claudeUI.d.ts +10 -1
  28. package/bin/src/utils/claudeUI.js +136 -6
  29. package/bin/src/utils/config.d.ts +9 -0
  30. package/bin/src/utils/config.js +39 -1
  31. package/bin/src/utils/qrBridge.js +1 -1
  32. package/bin/src/utils/support.js +1 -1
  33. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # scout (FrontTerrain CLI v9.5.6)
1
+ # scout (FrontTerrain CLI v9.5.8)
2
2
 
3
3
  **FrontTerrain (`scout`)** The Autonomous AI Principal Software Engineer & Codebase Co-Pilot in your terminal.
4
4
 
@@ -1,7 +1,7 @@
1
1
  export interface BenchmarkTarget {
2
2
  id: string;
3
3
  label: string;
4
- provider: 'NVIDIA' | 'Google' | 'OpenAI' | 'BYOK';
4
+ provider: 'FrontTerrain' | 'NVIDIA' | 'Google' | 'OpenAI' | 'BYOK';
5
5
  apiKeyEnv: string;
6
6
  }
7
7
  export declare const BENCHMARK_MODELS: BenchmarkTarget[];
@@ -8,6 +8,8 @@ const FT_DIR = path.join(process.cwd(), '.ft', 'scout');
8
8
  const BENCHMARK_DIR = path.join(FT_DIR);
9
9
  const BENCHMARK_FILE = path.join(BENCHMARK_DIR, 'benchmark.json');
10
10
  export const BENCHMARK_MODELS = [
11
+ { id: 'frontterrain/harp-1.5b-coder', label: 'HARP 1.5B Coder (Aligned)', provider: 'FrontTerrain', apiKeyEnv: 'HARP_API_URL' },
12
+ { id: 'frontterrain/HARP-1B-Instruct', label: 'HARP 1B (Original TensorLib)', provider: 'FrontTerrain', apiKeyEnv: 'HARP_API_URL' },
11
13
  { id: 'nvidia/nemotron-3.5-bolt-e4b', label: 'Nemotron 3.5 Bolt (Primary)', provider: 'NVIDIA', apiKeyEnv: 'NVIDIA_API_KEY' },
12
14
  { id: 'nvidia/nemotron-3.5-lightning-30b-a3b', label: 'Nemotron 3.5 Lightning 30B', provider: 'NVIDIA', apiKeyEnv: 'NVIDIA_API_KEY' },
13
15
  { id: 'nvidia/nemotron-3-ultra-550b-a55b', label: 'Nemotron 3 Ultra 550B', provider: 'NVIDIA', apiKeyEnv: 'NVIDIA_API_KEY' },
@@ -16,7 +18,8 @@ export const BENCHMARK_MODELS = [
16
18
  ];
17
19
  async function measureModelPerformance(target) {
18
20
  const auth = loadAuthConfig();
19
- const hasKey = Boolean(process.env[target.apiKeyEnv] ||
21
+ const hasKey = Boolean(target.provider === 'FrontTerrain' ||
22
+ process.env[target.apiKeyEnv] ||
20
23
  process.env.NVCF_API_KEY ||
21
24
  (auth.byokEnabled && auth.customApiKey));
22
25
  if (!hasKey) {
@@ -0,0 +1,6 @@
1
+ export interface ReplayCommandOptions {
2
+ list?: boolean;
3
+ export?: boolean;
4
+ }
5
+ export declare function handleReplay(taskId?: string, options?: ReplayCommandOptions): Promise<void>;
6
+ //# sourceMappingURL=replay.d.ts.map
@@ -0,0 +1,64 @@
1
+ import chalk from 'chalk';
2
+ import { intro, outro, spinner } from '@clack/prompts';
3
+ import { defaultTaskReplayManager } from '../engine/production/index.js';
4
+ export async function handleReplay(taskId, options) {
5
+ intro(chalk.bold.cyan('šŸŽ¬ FrontTerrain Scout — Task Replay & Telemetry Engine'));
6
+ if (options?.list || !taskId) {
7
+ const traces = defaultTaskReplayManager.listDiskTraces();
8
+ if (traces.length === 0) {
9
+ console.log(chalk.yellow('\nā„¹ļø No recorded task traces found in .ft/traces/ or memory.'));
10
+ console.log(chalk.gray('Run any autonomous agent task (e.g. `scout agent "fix bug"`) to record a trace.\n'));
11
+ outro(chalk.cyan('Replay session complete.'));
12
+ return;
13
+ }
14
+ console.log(chalk.bold(`\nAvailable Task Traces (${traces.length}):`));
15
+ for (const id of traces) {
16
+ const trace = defaultTaskReplayManager.getTrace(id);
17
+ if (trace) {
18
+ const statusColor = trace.finalStatus === 'completed' ? chalk.green : chalk.red;
19
+ console.log(` • ${chalk.bold.cyan(id)}: "${trace.objective.slice(0, 45)}" ` +
20
+ `(${trace.steps.length} steps, ${statusColor(trace.finalStatus)}, ${(trace.totalDurationMs / 1000).toFixed(1)}s)`);
21
+ }
22
+ else {
23
+ console.log(` • ${chalk.bold.cyan(id)}`);
24
+ }
25
+ }
26
+ console.log(chalk.gray(`\nTo replay a trace: scout replay <taskId>`));
27
+ console.log(chalk.gray(`To export a trace JSON: scout replay <taskId> --export\n`));
28
+ outro(chalk.cyan('Replay trace index complete.'));
29
+ return;
30
+ }
31
+ const trace = defaultTaskReplayManager.getTrace(taskId);
32
+ if (!trace) {
33
+ console.error(chalk.red(`\nāŒ Trace not found for task ID: "${taskId}".`));
34
+ console.log(chalk.yellow(`Use \`scout replay --list\` to view available task traces.\n`));
35
+ process.exit(1);
36
+ }
37
+ if (options?.export) {
38
+ const json = defaultTaskReplayManager.exportTraceJson(taskId);
39
+ console.log(json);
40
+ return;
41
+ }
42
+ console.log(chalk.bold(`\nTask ID: ${chalk.cyan(trace.taskId)}`));
43
+ console.log(chalk.bold(`Objective: ${trace.objective}`));
44
+ console.log(chalk.bold(`Recorded: ${trace.startTime} (${trace.steps.length} steps, status: ${trace.finalStatus})\n`));
45
+ const s = spinner();
46
+ s.start(`Replaying ${trace.steps.length} steps deterministically...`);
47
+ const result = await defaultTaskReplayManager.replay(taskId, async (step) => {
48
+ // Step execution verification
49
+ return step.success;
50
+ });
51
+ s.stop(chalk.green(`Replay completed in ${(result.durationMs / 1000).toFixed(2)}s.`));
52
+ console.log(chalk.bold('\nStep Replay Breakdown:'));
53
+ for (const stepRes of result.stepResults) {
54
+ const icon = stepRes.success ? chalk.green('āœ”') : chalk.red('āœ–');
55
+ const desc = `${stepRes.action}${stepRes.tool && stepRes.tool !== stepRes.action ? ` (${stepRes.tool})` : ''}`;
56
+ console.log(` ${icon} Step ${stepRes.stepIndex}: ${chalk.bold(desc)} [${stepRes.durationMs}ms]`);
57
+ if (stepRes.error) {
58
+ console.log(chalk.red(` ↳ Error: ${stepRes.error}`));
59
+ }
60
+ }
61
+ console.log(chalk.bold(`\nResults: ${chalk.green(`${result.matches} matched`)}, ${result.failures > 0 ? chalk.red(`${result.failures} failures`) : chalk.gray('0 failures')} (Total: ${result.totalReplayed})\n`));
62
+ outro(chalk.cyan('Task replay complete.'));
63
+ }
64
+ //# sourceMappingURL=replay.js.map
@@ -106,6 +106,8 @@ export declare class AgentExecutionLoop {
106
106
  summary: string;
107
107
  }>;
108
108
  private extractJsonToolCall;
109
+ private extractCleanReasoning;
109
110
  private dispatchToolCall;
111
+ private executeToolCallInternal;
110
112
  }
111
113
  //# sourceMappingURL=agentEngine.d.ts.map