ft-scout 3.0.5 → 3.0.7

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **FrontTerrain (`scout`)** — The Agentic AI Engineering & Onboarding Co-Pilot for Codebases.
4
4
 
5
- Scout works like GitHub Copilot directly inside your terminal — fixing bugs, creating new source code files, executing shell commands with AI failure diagnostics, scanning codebases, and interactive agentic chat.
5
+ Scout works like GitHub Copilot directly inside your terminal — executing autonomous multi-step agentic loops, fixing bugs, creating new source code files, executing shell commands with AI failure diagnostics, scanning codebases, and running interactive AI chat.
6
6
 
7
7
  ---
8
8
 
@@ -23,16 +23,21 @@ Once installed, use `scout` or `ft` in any project directory:
23
23
  ### 🤖 Agentic AI Actions
24
24
 
25
25
  ```bash
26
+ # 🤖 Autonomous Multi-Step AI Agent (Modifies code, verifies tests/build, and self-heals failures)
27
+ scout agent "Add email input validation and ensure npm test passes"
28
+ scout task "Fix typescript build errors in src/utils" -v "npm run build"
29
+ scout goal "Refactor database query logic" -y
30
+
26
31
  # ✨ Generate and create a new source code file
27
32
  scout create src/utils/math.ts "Create helper functions for sum, average, and array chunking"
28
33
  scout gen src/components/Header.tsx "Create a responsive React navigation header"
29
34
 
30
35
  # 🛠️ Auto-fix code using AI based on prompt, target file, or scan issue ID
31
36
  scout fix "Fix null pointer check in calculateTotal function"
32
- scout fix -f src/sampleBug.ts "Handle optional prices defensively"
37
+ scout fix -f src/sampleBug.ts "Handle optional prices defensively" -y
33
38
  scout fix -i 1
34
39
 
35
- # ⚡ Run terminal/shell commands with automated AI error diagnosis
40
+ # ⚡ Run terminal/shell commands with automated AI error diagnosis & self-healing
36
41
  scout run npm test
37
42
  scout exec tsc
38
43
  scout run python main.py
@@ -91,10 +96,12 @@ scout upgrade
91
96
 
92
97
  ## ✨ Key Capabilities
93
98
 
99
+ - 🤖 **Autonomous Multi-Step AI Agent (`scout agent` / `scout task` / `scout goal`)**: Set a high-level engineering goal. Scout identifies target files, applies code changes, executes automated build/test verification scripts, and self-heals any compiler or test errors in a continuous autonomous loop.
94
100
  - ✨ **AI File Generation (`scout create`)**: Specify a file path and a requirement prompt. Scout generates clean, production-ready code, creates missing directories, and provides an interactive review prompt (**Keep** vs **Revert**).
95
101
  - 🛠️ **Prompt-Driven Auto-Fix (`scout fix`)**: Fix bugs and refactor code across single or multiple files. Scout analyzes the root cause, applies code edits, displays a technical explanation, and backs up original code.
96
102
  - ⚡ **Terminal Execution & Failure Diagnosis (`scout run`)**: Run tests, builds, or scripts directly. If execution fails, Scout analyzes stdout/stderr logs with AI, pinpoints the root cause, and offers to auto-fix the failing code automatically.
97
- - 🤖 **Agentic Copilot Chat (`scout chat`)**: An interactive terminal session with Slash Commands (`/create`, `/fix`, `/run`, `/read`, `/scan`, `/undo`, `/help`) and natural language tool execution.
103
+ - 💬 **Agentic Copilot Chat (`scout chat`)**: An interactive terminal session with Slash Commands (`/agent`, `/create`, `/fix`, `/run`, `/read`, `/scan`, `/undo`, `/help`) and natural language tool execution.
104
+ - ⚡ **Non-Interactive / CI Auto-Confirm (`-y`, `--yes`)**: Skip interactive prompts and auto-confirm changes when running inside CI pipelines or scripts.
98
105
  - ↩️ **Safety & Instant Revert (`scout undo`)**: Every code modification or file creation is logged in `.ft/history.json` with file backups, allowing instant restoration anytime.
99
106
  - 🌐 **Multilingual Teardowns & Web Search (`scout search`)**: Access live internet documentation and generate breakdowns in 20+ languages.
100
107
 
package/bin/ft.js CHANGED
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
+ process.env.CHARSET = 'utf8';
2
3
  import('./src/index.js');
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["agent.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IAC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