@causyne/agent 1.20.15 → 1.20.16
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 +7 -4
- package/src/providers/budgetEnforcer.js +1 -1
- package/src/providers/budgetEnforcer.ts +1 -1
- package/src/toolPacks.js +6 -1
- package/src/toolPacks.ts +8 -2
- package/src/tools/registry.js +9 -1
- package/src/tools/reverseEngineering.js +573 -0
- package/src/tools/reverseEngineering.ts +657 -0
- package/src/toolsList.js +4 -1
- package/src/toolsList.ts +5 -2
- package/src/tui/chatRenderer.js +109 -7
- package/src/tui/composerControls.js +6 -0
- package/src/tui/composerControls.ts +6 -0
- package/src/tui/messageInteraction.js +11 -3
- package/src/tui/messageInteraction.ts +12 -2
- package/src/tui/prompt.js +26 -5
- package/src/tui/scrollInteraction.js +7 -0
- package/src/tui/scrollInteraction.ts +9 -0
- package/src/tui/sessionPicker.js +3 -10
- package/src/tui/sessionPicker.ts +3 -10
- package/src/tui/stageSurface.js +22 -10
- package/src/tui/turnRail.js +124 -19
- package/src/tui/turnRail.ts +140 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@causyne/agent",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.16",
|
|
4
4
|
"description": "Agentic AI for software, tools, and computer workflows",
|
|
5
5
|
"main": "bin/causyne.js",
|
|
6
6
|
"type": "module",
|
|
@@ -54,18 +54,21 @@
|
|
|
54
54
|
"url": "https://github.com/ikbal-causyne/causyne-agent/issues"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@modelcontextprotocol/client": "2.
|
|
57
|
+
"@modelcontextprotocol/client": "^2.4.0",
|
|
58
58
|
"acorn-walk": "^8.3.5",
|
|
59
59
|
"commander": "^11.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/parser": "^8.0.7",
|
|
63
|
-
"@modelcontextprotocol/node": "2.1.
|
|
64
|
-
"@modelcontextprotocol/server": "2.
|
|
63
|
+
"@modelcontextprotocol/node": "^2.1.2",
|
|
64
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
65
65
|
"@types/node": "^22.20.2",
|
|
66
66
|
"acorn": "^8.18.0",
|
|
67
67
|
"typescript": "^7.0.2",
|
|
68
68
|
"zod": "4.6.7"
|
|
69
69
|
},
|
|
70
|
+
"overrides": {
|
|
71
|
+
"@hono/node-server": "^2.1.5"
|
|
72
|
+
},
|
|
70
73
|
"private": false
|
|
71
74
|
}
|
|
@@ -92,10 +92,10 @@ export class UnifiedBudgetEnforcer {
|
|
|
92
92
|
}
|
|
93
93
|
recordUsage(usage) {
|
|
94
94
|
const fresh = noncachedTokens(usage);
|
|
95
|
+
this.tokens += fresh;
|
|
95
96
|
if (fresh >= this.maxTurnTokens) {
|
|
96
97
|
throw new EfficiencyCheckpoint('tokens', fresh, this.maxTurnTokens, 'turn');
|
|
97
98
|
}
|
|
98
|
-
this.tokens += fresh;
|
|
99
99
|
if (this.tokens >= this.maxTaskTokens) {
|
|
100
100
|
throw new EfficiencyCheckpoint('tokens', this.tokens, this.maxTaskTokens, 'task');
|
|
101
101
|
}
|
|
@@ -95,10 +95,10 @@ export class UnifiedBudgetEnforcer {
|
|
|
95
95
|
|
|
96
96
|
recordUsage(usage: BudgetUsage): void {
|
|
97
97
|
const fresh = noncachedTokens(usage);
|
|
98
|
+
this.tokens += fresh;
|
|
98
99
|
if (fresh >= this.maxTurnTokens) {
|
|
99
100
|
throw new EfficiencyCheckpoint('tokens', fresh, this.maxTurnTokens, 'turn');
|
|
100
101
|
}
|
|
101
|
-
this.tokens += fresh;
|
|
102
102
|
if (this.tokens >= this.maxTaskTokens) {
|
|
103
103
|
throw new EfficiencyCheckpoint('tokens', this.tokens, this.maxTaskTokens, 'task');
|
|
104
104
|
}
|
package/src/toolPacks.js
CHANGED
|
@@ -112,6 +112,9 @@ export const PACKS = {
|
|
|
112
112
|
'code_search_ast',
|
|
113
113
|
'code_list_symbols',
|
|
114
114
|
'pdf_read'
|
|
115
|
+
],
|
|
116
|
+
reverse_engineering: [
|
|
117
|
+
'reverse_engineering'
|
|
115
118
|
]
|
|
116
119
|
};
|
|
117
120
|
export const PACK_NAMES = Object.keys(PACKS);
|
|
@@ -328,12 +331,14 @@ const WEB_INTENT = /\b(web|webpage|website|frontend|front-end|landing page|homep
|
|
|
328
331
|
const MEDIA_INTENT = /\b(image|images|picture|photo|render|3d model|blender|animation|animate|video|movie|film|audio|sound|sfx|music|song|voice|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b/i;
|
|
329
332
|
const SYSTEM_INTENT = /\b(process|processes|pid|kill|port|zip|unzip|tar|archive|compress|extract|clipboard|copy to clipboard|print|printer|open in browser|launch app|computer use|vision grounding|desktop vision|gui agent|coordinate click|desktop control)\b/i;
|
|
330
333
|
const ADVANCED_INTENT = /\b(pdf|document|proposal|screenplay|shotlist|shot list|voiceover|dubbing|forge a tool|custom tool|new tool|plugin|plugins|custom plugin|subagent|sub-agent|parallel agent|swarm|ast|symbols|refactor across)\b/i;
|
|
334
|
+
const REVERSE_ENGINEERING_INTENT = /\b(decompile|disassemble|binary|binaries|apk|dex|elf|mach-o|pe|coff|reverse engineer|reverse-engineering|reverse_engineering|sourcemap|deobfuscate|asar|symbols|ghidra|rizin|radare|hopper|frida|hook script|mitigations|pie|canary)\b/i;
|
|
331
335
|
const INTENT_MATCHERS = {
|
|
332
336
|
game: GAME_INTENT,
|
|
333
337
|
web: WEB_INTENT,
|
|
334
338
|
media: MEDIA_INTENT,
|
|
335
339
|
system: SYSTEM_INTENT,
|
|
336
|
-
advanced: ADVANCED_INTENT
|
|
340
|
+
advanced: ADVANCED_INTENT,
|
|
341
|
+
reverse_engineering: REVERSE_ENGINEERING_INTENT
|
|
337
342
|
};
|
|
338
343
|
/** True when the prompt genuinely describes game development work. */
|
|
339
344
|
export function isGameIntent(prompt) {
|
package/src/toolPacks.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// already normalised to underscores (see tools/registry.js TOOL_DEFINITIONS).
|
|
18
18
|
// ---------------------------------------------------------------------------
|
|
19
19
|
|
|
20
|
-
export type PackName = 'game' | 'web' | 'media' | 'system' | 'advanced';
|
|
20
|
+
export type PackName = 'game' | 'web' | 'media' | 'system' | 'advanced' | 'reverse_engineering';
|
|
21
21
|
|
|
22
22
|
export interface WorkspaceRoutingContext {
|
|
23
23
|
framework?: string | null | undefined;
|
|
@@ -138,6 +138,9 @@ export const PACKS: Record<PackName, string[]> = {
|
|
|
138
138
|
'code_search_ast',
|
|
139
139
|
'code_list_symbols',
|
|
140
140
|
'pdf_read'
|
|
141
|
+
],
|
|
142
|
+
reverse_engineering: [
|
|
143
|
+
'reverse_engineering'
|
|
141
144
|
]
|
|
142
145
|
};
|
|
143
146
|
|
|
@@ -373,12 +376,15 @@ const SYSTEM_INTENT = /\b(process|processes|pid|kill|port|zip|unzip|tar|archive|
|
|
|
373
376
|
|
|
374
377
|
const ADVANCED_INTENT = /\b(pdf|document|proposal|screenplay|shotlist|shot list|voiceover|dubbing|forge a tool|custom tool|new tool|plugin|plugins|custom plugin|subagent|sub-agent|parallel agent|swarm|ast|symbols|refactor across)\b/i;
|
|
375
378
|
|
|
379
|
+
const REVERSE_ENGINEERING_INTENT = /\b(decompile|disassemble|binary|binaries|apk|dex|elf|mach-o|pe|coff|reverse engineer|reverse-engineering|reverse_engineering|sourcemap|deobfuscate|asar|symbols|ghidra|rizin|radare|hopper|frida|hook script|mitigations|pie|canary)\b/i;
|
|
380
|
+
|
|
376
381
|
const INTENT_MATCHERS: Record<PackName, RegExp> = {
|
|
377
382
|
game: GAME_INTENT,
|
|
378
383
|
web: WEB_INTENT,
|
|
379
384
|
media: MEDIA_INTENT,
|
|
380
385
|
system: SYSTEM_INTENT,
|
|
381
|
-
advanced: ADVANCED_INTENT
|
|
386
|
+
advanced: ADVANCED_INTENT,
|
|
387
|
+
reverse_engineering: REVERSE_ENGINEERING_INTENT
|
|
382
388
|
};
|
|
383
389
|
|
|
384
390
|
/** True when the prompt genuinely describes game development work. */
|
package/src/tools/registry.js
CHANGED
|
@@ -5,6 +5,7 @@ import { documentForgeTool } from './documentForge.js';
|
|
|
5
5
|
import { nativeEngineTool } from './nativeEngine.js';
|
|
6
6
|
import { peerAgentTool } from './peerAgent.js';
|
|
7
7
|
import { openSourceToolProvisioner } from './openSourceToolProvisioner.js';
|
|
8
|
+
import { reverseEngineering } from './reverseEngineering.js';
|
|
8
9
|
import { sysRun, sysRunBg } from './sysRun.js';
|
|
9
10
|
import { fsRead } from './fsRead.js';
|
|
10
11
|
import { fsWrite } from './fsWrite.js';
|
|
@@ -129,7 +130,7 @@ const TOOL_MODULES = [
|
|
|
129
130
|
gameTilemapGenerator, gameUiHudBuilder, gameEconomyBalancer,
|
|
130
131
|
gameDataForge, gameWebRuntimeInspector, gameCanvasAudit, readNativeSkill, createSkill, creativeApps,
|
|
131
132
|
computerUse, uiForge, documentForgeTool, nativeEngineTool, peerAgentTool,
|
|
132
|
-
openSourceToolProvisioner
|
|
133
|
+
openSourceToolProvisioner, reverseEngineering
|
|
133
134
|
];
|
|
134
135
|
|
|
135
136
|
// Base static definitions (backwards compatible). Order is preserved from the
|
|
@@ -161,6 +162,13 @@ const TOOL_ALIASES = {
|
|
|
161
162
|
gitExec: 'gitOp',
|
|
162
163
|
tool_deferred_mcp_search: 'tool_search',
|
|
163
164
|
|
|
165
|
+
// Sovereign Reverse Engineering aliases
|
|
166
|
+
re_inspect_binary: 'reverse_engineering',
|
|
167
|
+
re_decompile: 'reverse_engineering',
|
|
168
|
+
re_unpack_bundle: 'reverse_engineering',
|
|
169
|
+
re_deobfuscate_script: 'reverse_engineering',
|
|
170
|
+
re_trace_runtime: 'reverse_engineering',
|
|
171
|
+
|
|
164
172
|
// Core filesystem aliases
|
|
165
173
|
read_file: 'fs_read',
|
|
166
174
|
readFile: 'fs_read',
|