anymous 1.1.5 → 1.2.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/package.json +1 -1
- package/src/agent/prompt/pentest-critic.txt +22 -0
- package/src/agent/prompt/pentest-enumerator.txt +21 -0
- package/src/agent/prompt/pentest-exploiter.txt +22 -0
- package/src/agent/prompt/pentest-identity.txt +21 -0
- package/src/agent/prompt/pentest-lead.txt +23 -0
- package/src/agent/prompt/pentest-postexploit.txt +25 -0
- package/src/agent/prompt/pentest-recon.txt +25 -0
- package/src/agent/prompt/pentest-reporter.txt +25 -0
- package/src/agent/prompt/pentest-scanner.txt +26 -0
- package/src/agent/prompt/pentest-webapp.txt +25 -0
- package/src/agent/prompt/reverser-automator.txt +96 -38
- package/src/agent/prompt/reverser-binary.txt +62 -39
- package/src/agent/prompt/reverser-dynamic.txt +76 -36
- package/src/agent/prompt/reverser-source.txt +93 -38
- package/src/agent/prompt/reverser-static.txt +76 -35
- package/src/cli/cmd/run/runtime.ts +8 -1
- package/src/cli/cmd/run/splash.ts +1 -1
- package/src/cli/ui.ts +2 -2
- package/src/effect/runtime-flags.ts +1 -0
- package/src/memory/memory.ts +108 -0
- package/src/plugin/index.ts +63 -71
- package/src/session/prompt.ts +6 -1
- package/src/tool/computer.ts +417 -0
- package/src/tool/computer.txt +16 -0
- package/src/tool/memory.ts +59 -0
- package/src/tool/memory.txt +14 -0
- package/src/tool/registry.ts +8 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Persistent shared context memory that persists across sessions. Use this to remember important information about the project, user preferences, architecture decisions, credentials, or any context you want to carry between sessions.
|
|
2
|
+
|
|
3
|
+
Actions:
|
|
4
|
+
- read (key): Read a specific memory
|
|
5
|
+
- write (key, value): Save or update a memory
|
|
6
|
+
- delete (key): Remove a memory
|
|
7
|
+
- list: List all memories
|
|
8
|
+
|
|
9
|
+
Memories are automatically injected into the system prompt at the start of every session as shared context. Use this for:
|
|
10
|
+
- Project architecture decisions
|
|
11
|
+
- Coding conventions and preferences
|
|
12
|
+
- Authentication tokens or API keys
|
|
13
|
+
- Important findings or TODOs
|
|
14
|
+
- User preferences for how you should behave
|
package/src/tool/registry.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
|
2
2
|
import { httpClient } from "@anymous-ai/core/effect/app-node-platform"
|
|
3
3
|
import { Ripgrep } from "@anymous-ai/core/ripgrep"
|
|
4
4
|
import { PlanExitTool } from "./plan"
|
|
5
|
+
import { ComputerTool } from "./computer"
|
|
6
|
+
import { MemoryTool } from "./memory"
|
|
5
7
|
import { Session } from "@/session/session"
|
|
6
8
|
import { QuestionTool } from "./question"
|
|
7
9
|
import { ShellTool } from "./shell"
|
|
@@ -100,6 +102,8 @@ const layer = Layer.effect(
|
|
|
100
102
|
const todo = yield* TodoWriteTool
|
|
101
103
|
const lsptool = yield* LspTool
|
|
102
104
|
const plan = yield* PlanExitTool
|
|
105
|
+
const computer = yield* ComputerTool
|
|
106
|
+
const memorytool = yield* MemoryTool
|
|
103
107
|
const webfetch = yield* WebFetchTool
|
|
104
108
|
const websearch = yield* WebSearchTool
|
|
105
109
|
const shell = yield* ShellTool
|
|
@@ -218,6 +222,8 @@ const layer = Layer.effect(
|
|
|
218
222
|
question: Tool.init(question),
|
|
219
223
|
lsp: Tool.init(lsptool),
|
|
220
224
|
plan: Tool.init(plan),
|
|
225
|
+
computer: Tool.init(computer),
|
|
226
|
+
memory: Tool.init(memorytool),
|
|
221
227
|
...(codeModeTool ? { execute: Tool.init(codeModeTool) } : {}),
|
|
222
228
|
})
|
|
223
229
|
|
|
@@ -240,6 +246,8 @@ const layer = Layer.effect(
|
|
|
240
246
|
tool.patch,
|
|
241
247
|
...(tool.execute ? [tool.execute] : []),
|
|
242
248
|
...(flags.experimentalLspTool ? [tool.lsp] : []),
|
|
249
|
+
tool.computer,
|
|
250
|
+
tool.memory,
|
|
243
251
|
...(flags.experimentalPlanMode && flags.client === "cli" ? [tool.plan] : []),
|
|
244
252
|
],
|
|
245
253
|
task: tool.task,
|