surgent 0.7.1-alpha.0 → 0.8.0-alpha.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/README.md +2 -2
- package/bin/surgent.js +4 -3
- package/dist/optimizer/index.js +1046 -75
- package/dist/optimizer/index.js.map +4 -4
- package/dist/optimizer/package.json +1 -1
- package/package.json +7 -6
- package/src/agent/built-in/documenter.md +42 -39
- package/src/agent/built-in/general.md +1 -2
- package/src/agent/built-in/planner.md +56 -45
- package/src/agent/built-in/scout.md +40 -74
- package/src/agent/index.ts +63 -2
- package/src/agent/storage.ts +7 -9
- package/src/checkpoint/index.ts +4 -1
- package/src/cleanup/permission.ts +4 -2
- package/src/commands/helpers.ts +25 -20
- package/src/commands/index.ts +3 -2
- package/src/mcp-client/command.ts +2 -2
- package/src/mcp-client/storage.ts +2 -2
- package/src/optimizer/compactor/grep.ts +72 -4
- package/src/optimizer/compactor/index.ts +38 -30
- package/src/permission/command.ts +2 -20
- package/src/permission/components/prompt.ts +18 -21
- package/src/permission/components/rules-list.ts +8 -15
- package/src/permission/constants.ts +1 -2
- package/src/permission/helpers.ts +22 -33
- package/src/permission/index.ts +67 -107
- package/src/permission/pattern.ts +12 -14
- package/src/permission/piignore.ts +53 -90
- package/src/permission/precedence.ts +67 -33
- package/src/permission/resolution.ts +141 -72
- package/src/permission/storage.ts +57 -8
- package/src/permission/types.ts +39 -12
- package/src/questionnaire/index.ts +51 -57
- package/src/state.ts +64 -0
- package/src/subagent/helpers.ts +1 -38
- package/src/subagent/index.ts +2 -0
- package/src/subagent/sdk.ts +126 -0
- package/src/subagent/subsession.ts +9 -86
- package/src/subagent/types.ts +2 -0
package/README.md
CHANGED
|
@@ -223,7 +223,7 @@ Use `Ctrl+Alt+B` to cycle persistently between prompt input, context-included sh
|
|
|
223
223
|
| ----------------------- | ------------------------------------------------------------- |
|
|
224
224
|
| `/init` | Create or update repository-specific `AGENTS.md` instructions |
|
|
225
225
|
| `/plan [request]` | Start, refine, save, or resume an isolated planning session |
|
|
226
|
-
| `/
|
|
226
|
+
| `/agents` | Select, create, edit, or remove agent profiles |
|
|
227
227
|
| `/permissions` | View and manage file, shell, web, and MCP permission rules |
|
|
228
228
|
| `/mcp` | Add, edit, enable, disable, or remove MCP servers |
|
|
229
229
|
| `/web-login [provider]` | Configure credentials for web search and fetch providers |
|
|
@@ -237,7 +237,7 @@ The bundled agent profiles cover these common roles:
|
|
|
237
237
|
| `scout` | Read-only codebase research and execution tracing |
|
|
238
238
|
| `documenter` | User-facing Markdown and project documentation |
|
|
239
239
|
|
|
240
|
-
Use `/
|
|
240
|
+
Use `/agents` to start a new session with a specialist or create a project-specific or global profile. Profiles can constrain tools, files, shell commands, MCP servers, models, and thinking levels.
|
|
241
241
|
|
|
242
242
|
## Command-line essentials
|
|
243
243
|
|
package/bin/surgent.js
CHANGED
|
@@ -14,16 +14,17 @@ const args = process.argv.slice(2);
|
|
|
14
14
|
const PACKAGE_DIR = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
15
15
|
const AGENT_ENTRY_URL = import.meta.resolve("@earendil-works/pi-coding-agent");
|
|
16
16
|
const LOCAL_PI_SUBDIRS = ["agents", "plans"];
|
|
17
|
+
const BASE_TOOLS = ["ls", "find", "grep", "code_map", "inspect", "read"];
|
|
17
18
|
const BUILT_IN_META = {
|
|
18
19
|
documenter: {
|
|
19
|
-
tools: [
|
|
20
|
+
tools: [...BASE_TOOLS, "edit", "write", "questionnaire"],
|
|
20
21
|
"files.write": ["**/*.md"],
|
|
21
22
|
},
|
|
22
23
|
planner: {
|
|
23
|
-
tools: [
|
|
24
|
+
tools: [...BASE_TOOLS, "web_fetch", "web_search", "questionnaire"],
|
|
24
25
|
},
|
|
25
26
|
scout: {
|
|
26
|
-
tools: [
|
|
27
|
+
tools: [...BASE_TOOLS, "web_fetch", "web_search"],
|
|
27
28
|
},
|
|
28
29
|
};
|
|
29
30
|
|