@jshookmcp/jshook 0.2.8 → 0.3.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 +36 -5
- package/README.zh.md +36 -5
- package/dist/{AntiCheatDetector-S8VRj-dD.mjs → AntiCheatDetector-CqGDXmfc.mjs} +160 -54
- package/dist/{CodeInjector-4Z3ngPoX.mjs → CodeInjector-BdjRfNx7.mjs} +5 -5
- package/dist/ConsoleMonitor-DykL3IAw.mjs +2269 -0
- package/dist/{DarwinAPI-B8hg_yhz.mjs → DarwinAPI-ETyy0xyo.mjs} +1 -1
- package/dist/DetailedDataManager-HT49OrvF.mjs +217 -0
- package/dist/EventBus-DFKvADm3.mjs +141 -0
- package/dist/EvidenceGraphBridge-318Oi0Lf.mjs +153 -0
- package/dist/{ExtensionManager-D5-bO9D8.mjs → ExtensionManager-BDMsY2Dz.mjs} +27 -13
- package/dist/{FingerprintManager-BVxFJL2-.mjs → FingerprintManager-BN4UQWnX.mjs} +1 -1
- package/dist/{HardwareBreakpoint-DK1yjWkV.mjs → HardwareBreakpoint-Cc2AFq1Y.mjs} +3 -3
- package/dist/{HeapAnalyzer-CEbo10xU.mjs → HeapAnalyzer-DruMgsgj.mjs} +21 -21
- package/dist/HookGeneratorBuilders.core.generators.storage-CTbB4Lcx.mjs +566 -0
- package/dist/InstrumentationSession-DLH0vd-z.mjs +244 -0
- package/dist/{MemoryController-DdtnBdD4.mjs → MemoryController-CMtviNW_.mjs} +3 -3
- package/dist/{MemoryScanSession-RMixN3bX.mjs → MemoryScanSession-ITgb_NMi.mjs} +81 -78
- package/dist/{MemoryScanner-QjK4ld0B.mjs → MemoryScanner-CiL7Z3ey.mjs} +50 -21
- package/dist/{NativeMemoryManager.impl-CB6gJ0NM.mjs → NativeMemoryManager.impl-D9Lkovvn.mjs} +20 -56
- package/dist/{NativeMemoryManager.utils-BML4q1ry.mjs → NativeMemoryManager.utils-BBlAixF5.mjs} +1 -1
- package/dist/{PEAnalyzer-CK0xe0Fs.mjs → PEAnalyzer-DMQ44gen.mjs} +16 -16
- package/dist/PageController-BPJNqqBN.mjs +431 -0
- package/dist/{PointerChainEngine-Cd73qu5b.mjs → PointerChainEngine-K7wN8Z-w.mjs} +10 -7
- package/dist/PrerequisiteError-TuyZIs6n.mjs +20 -0
- package/dist/ProcessRegistry-zGg12QbE.mjs +74 -0
- package/dist/ResponseBuilder-CJXWmWNw.mjs +143 -0
- package/dist/ReverseEvidenceGraph-C02-gXOh.mjs +269 -0
- package/dist/ScriptManager-ZuWD-0Jg.mjs +3003 -0
- package/dist/{Speedhack-CeF0XmEz.mjs → Speedhack-D-z0umeT.mjs} +2 -2
- package/dist/{StructureAnalyzer-D4GkMduU.mjs → StructureAnalyzer-Cav5AVSL.mjs} +9 -6
- package/dist/ToolCatalog-5OJdMiF0.mjs +582 -0
- package/dist/ToolError-jh9whhMd.mjs +15 -0
- package/dist/ToolProbe-DbCFGyrg.mjs +45 -0
- package/dist/ToolRegistry-B9krbTtI.mjs +180 -0
- package/dist/ToolRouter.policy-BGDAGyeH.mjs +344 -0
- package/dist/TraceRecorder-B41Z5XBj.mjs +1286 -0
- package/dist/{Win32API-Bc0QnQsN.mjs → Win32API-C2kjj0ze.mjs} +19 -13
- package/dist/{Win32Debug-DUHt9XUn.mjs → Win32Debug-CKrGOTpo.mjs} +3 -3
- package/dist/WorkflowEngine-DJ6M4opp.mjs +569 -0
- package/dist/analysis-BHeJW2Nb.mjs +1234 -0
- package/dist/antidebug-BRKeyt27.mjs +1081 -0
- package/dist/artifactRetention-CPXkUJXp.mjs +598 -0
- package/dist/artifacts-DkfosXH3.mjs +59 -0
- package/dist/authorization-schema-DRqyJMSk.mjs +31 -0
- package/dist/betterSqlite3-DLSBZodi.mjs +74 -0
- package/dist/binary-instrument--V3MAhJ4.mjs +971 -0
- package/dist/bind-helpers-ClV34xdn.mjs +42 -0
- package/dist/boringssl-inspector-Bo_LOLaS.mjs +180 -0
- package/dist/browser-Dx3_S2cG.mjs +4369 -0
- package/dist/capabilities-CcHlvWgK.mjs +33 -0
- package/dist/concurrency-Drev_Vz9.mjs +41 -0
- package/dist/{constants-CCvsN80K.mjs → constants-CDZLOoVv.mjs} +105 -48
- package/dist/coordination-DgItD9DL.mjs +259 -0
- package/dist/debugger-RS3RSAqs.mjs +1288 -0
- package/dist/definitions-BEoYofW5.mjs +47 -0
- package/dist/definitions-BRaefg3u.mjs +365 -0
- package/dist/definitions-BbkvZkiv.mjs +96 -0
- package/dist/definitions-BtWSHJ3o.mjs +17 -0
- package/dist/definitions-C1gCHO0i.mjs +43 -0
- package/dist/definitions-CDOg_b-l.mjs +138 -0
- package/dist/definitions-CVPD9hzZ.mjs +54 -0
- package/dist/definitions-Cea8Lgl7.mjs +94 -0
- package/dist/definitions-DAgIyjxM.mjs +10 -0
- package/dist/definitions-DJA27nsL.mjs +66 -0
- package/dist/definitions-DKPFU3LW.mjs +25 -0
- package/dist/definitions-DPRpZQ96.mjs +47 -0
- package/dist/definitions-DUE5gmdn.mjs +18 -0
- package/dist/definitions-DYVjOtxa.mjs +26 -0
- package/dist/definitions-DcYLVLCo.mjs +37 -0
- package/dist/definitions-Pp5LI2H4.mjs +27 -0
- package/dist/definitions-j9KdHVNR.mjs +14 -0
- package/dist/definitions-uzkjBwa7.mjs +258 -0
- package/dist/definitions-va-AnLuQ.mjs +28 -0
- package/dist/encoding-DJeqHmpd.mjs +1079 -0
- package/dist/evidence-graph-bridge-DcYizFk2.mjs +136 -0
- package/dist/{factory-CibqTNC8.mjs → factory-C90tBff6.mjs} +41 -56
- package/dist/flat-target-session-Dgax2Cy3.mjs +29 -0
- package/dist/graphql-CoHrhweh.mjs +1197 -0
- package/dist/handlers-4jmR0nMs.mjs +898 -0
- package/dist/handlers-BAHPxcch.mjs +789 -0
- package/dist/handlers-BOs9b907.mjs +2600 -0
- package/dist/handlers-BWXEy6ef.mjs +917 -0
- package/dist/handlers-Bndn6QvE.mjs +111 -0
- package/dist/handlers-BqC4bD4s.mjs +681 -0
- package/dist/handlers-BtYq60bM2.mjs +276 -0
- package/dist/handlers-BzgcB4iv.mjs +799 -0
- package/dist/handlers-CRyRWj2b.mjs +859 -0
- package/dist/handlers-CVv2H1uq.mjs +592 -0
- package/dist/handlers-Dl5a7JS4.mjs +572 -0
- package/dist/handlers-Dx2d7jt7.mjs +2537 -0
- package/dist/handlers-Dz9PYsCa.mjs +2805 -0
- package/dist/handlers-HujRKC3b.mjs +661 -0
- package/dist/handlers.impl-XWXkQfyi.mjs +807 -0
- package/dist/hooks-B1B8NRHL.mjs +898 -0
- package/dist/index.mjs +491 -259
- package/dist/{logger-BmWzC2lM.mjs → logger-Dh_xb7_2.mjs} +14 -6
- package/dist/maintenance-PRMkLVRW.mjs +835 -0
- package/dist/manifest-67Bok-Si.mjs +58 -0
- package/dist/manifest-6lNTMZAB2.mjs +87 -0
- package/dist/manifest-B2duEHiH.mjs +90 -0
- package/dist/manifest-B6EY9Vm8.mjs +57 -0
- package/dist/manifest-B6nKSbyY.mjs +95 -0
- package/dist/manifest-BL8AQNPF.mjs +106 -0
- package/dist/manifest-BSZvJJmV.mjs +47 -0
- package/dist/manifest-BU7qzUyX.mjs +418 -0
- package/dist/manifest-Bl62e8WK.mjs +49 -0
- package/dist/manifest-Bo5cXjdt.mjs +82 -0
- package/dist/manifest-BpS4gtUK.mjs +1347 -0
- package/dist/manifest-Bv65_e2W.mjs +101 -0
- package/dist/manifest-BytNIF4Z.mjs +117 -0
- package/dist/manifest-C-xtsjS3.mjs +81 -0
- package/dist/manifest-CDYl7OhA.mjs +66 -0
- package/dist/manifest-CRZ3xmkD.mjs +61 -0
- package/dist/manifest-CoW6u4Tp.mjs +132 -0
- package/dist/manifest-Cq5zN_8A.mjs +50 -0
- package/dist/manifest-D7YZM_2e.mjs +194 -0
- package/dist/manifest-DE_VrAeQ.mjs +314 -0
- package/dist/manifest-DGsXSCpT.mjs +39 -0
- package/dist/manifest-DJ2vfEuW.mjs +156 -0
- package/dist/manifest-DPXDYhEu.mjs +80 -0
- package/dist/manifest-Dd4fQb0a.mjs +322 -0
- package/dist/manifest-Deq6opGg.mjs +223 -0
- package/dist/manifest-DfJTafJK.mjs +37 -0
- package/dist/manifest-DgOdgN_j.mjs +50 -0
- package/dist/manifest-DlbMW4v4.mjs +47 -0
- package/dist/manifest-DmVfbH0w.mjs +374 -0
- package/dist/manifest-Dog6Ddjr.mjs +109 -0
- package/dist/manifest-DvgU5FWb.mjs +58 -0
- package/dist/manifest-HsfDBs7j.mjs +50 -0
- package/dist/manifest-I8oQHvCG.mjs +186 -0
- package/dist/manifest-NvH_a-av.mjs +786 -0
- package/dist/manifest-cEJU1v0Z.mjs +129 -0
- package/dist/manifest-wOl5XLB12.mjs +112 -0
- package/dist/modules-tZozf0LQ.mjs +10635 -0
- package/dist/mojo-ipc-DXNEXEqb.mjs +640 -0
- package/dist/network-CPVvwvFg.mjs +3852 -0
- package/dist/{artifacts-BbdOMET5.mjs → outputPaths-um7lCRY3.mjs} +219 -216
- package/dist/parse-args-B4cY5Vx5.mjs +39 -0
- package/dist/platform-CYeFoTWp.mjs +2161 -0
- package/dist/process-BTbgcVc6.mjs +1306 -0
- package/dist/proxy-r8YN6nP1.mjs +192 -0
- package/dist/registry-Bl8ZQW61.mjs +34 -0
- package/dist/response-CWhh2aLo.mjs +34 -0
- package/dist/server/plugin-api.mjs +2 -2
- package/dist/shared-state-board-BoZnSoj-.mjs +586 -0
- package/dist/sourcemap-BIDHUVXy.mjs +934 -0
- package/dist/ssrf-policy-Dsqd-DTX.mjs +166 -0
- package/dist/streaming-Dal6utPp.mjs +725 -0
- package/dist/tool-builder-BHJp32mV.mjs +186 -0
- package/dist/transform-DRVgGG90.mjs +1011 -0
- package/dist/types-Bx92KJfT.mjs +4 -0
- package/dist/wasm-BYx5UOeG.mjs +1044 -0
- package/dist/webcrack-Be0_FccV.mjs +747 -0
- package/dist/workflow-BpuKEtvn.mjs +725 -0
- package/package.json +82 -49
- package/dist/ExtensionManager-CPTJhHFg.mjs +0 -2
- package/dist/ToolCatalog-Bq4V2sbJ.mjs +0 -67201
- package/dist/{CacheAdapters-CzFNpD9a.mjs → CacheAdapters-jJFy20G-.mjs} +0 -0
- package/dist/{StealthVerifier-BzBCFiwx.mjs → StealthVerifier-BWmPgQsv.mjs} +0 -0
- package/dist/{VersionDetector-CNXcvD46.mjs → VersionDetector-K3V4vGsw.mjs} +0 -0
- package/dist/{formatAddress-ChCSIRWT.mjs → formatAddress-nnMvEohD.mjs} +0 -0
- package/dist/{types-BBjOqye-.mjs → types-DDBWs9UP.mjs} +1 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { n as toolLookup } from "./registry-Bl8ZQW61.mjs";
|
|
2
|
+
import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
|
|
3
|
+
import { t as tool } from "./tool-builder-BHJp32mV.mjs";
|
|
4
|
+
//#region src/server/domains/cross-domain/definitions.ts
|
|
5
|
+
const crossDomainToolDefinitions = [
|
|
6
|
+
tool("cross_domain_capabilities", (t) => t.desc("List cross-domain capabilities and workflows.").query()),
|
|
7
|
+
tool("cross_domain_suggest_workflow", (t) => t.desc("Suggest a cross-domain workflow for a goal.").string("goal", "High-level task goal or problem statement to classify").boolean("preferAvailableOnly", "Prefer workflows whose dependent domains are currently enabled", { default: true }).required("goal").query()),
|
|
8
|
+
tool("cross_domain_health", (t) => t.desc("Report cross-domain health.").query()),
|
|
9
|
+
tool("cross_domain_correlate_all", (t) => t.desc("Run the built-in skia, mojo, syscall, and binary correlators and merge the results into the shared evidence graph.").prop("sceneTree", {
|
|
10
|
+
type: "object",
|
|
11
|
+
description: "Skia scene tree with layers and drawCommands",
|
|
12
|
+
additionalProperties: true
|
|
13
|
+
}).array("jsObjects", {
|
|
14
|
+
type: "object",
|
|
15
|
+
additionalProperties: true
|
|
16
|
+
}, "JS object descriptors for Skia correlation").array("mojoMessages", {
|
|
17
|
+
type: "object",
|
|
18
|
+
properties: {
|
|
19
|
+
interface: { type: "string" },
|
|
20
|
+
method: { type: "string" },
|
|
21
|
+
timestamp: { type: "number" },
|
|
22
|
+
messageId: { type: "string" }
|
|
23
|
+
},
|
|
24
|
+
required: [
|
|
25
|
+
"interface",
|
|
26
|
+
"method",
|
|
27
|
+
"timestamp",
|
|
28
|
+
"messageId"
|
|
29
|
+
]
|
|
30
|
+
}, "Mojo messages for MOJO-03 correlation").array("cdpEvents", {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
eventType: { type: "string" },
|
|
34
|
+
timestamp: { type: "number" },
|
|
35
|
+
url: { type: "string" }
|
|
36
|
+
},
|
|
37
|
+
required: ["eventType", "timestamp"]
|
|
38
|
+
}, "CDP events for MOJO-03 correlation").array("networkRequests", {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
requestId: { type: "string" },
|
|
42
|
+
url: { type: "string" },
|
|
43
|
+
timestamp: { type: "number" }
|
|
44
|
+
},
|
|
45
|
+
required: [
|
|
46
|
+
"requestId",
|
|
47
|
+
"url",
|
|
48
|
+
"timestamp"
|
|
49
|
+
]
|
|
50
|
+
}, "Network requests for MOJO-03 correlation").array("syscallEvents", {
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {
|
|
53
|
+
pid: { type: "number" },
|
|
54
|
+
tid: { type: "number" },
|
|
55
|
+
syscallName: { type: "string" },
|
|
56
|
+
timestamp: { type: "number" }
|
|
57
|
+
},
|
|
58
|
+
required: [
|
|
59
|
+
"pid",
|
|
60
|
+
"tid",
|
|
61
|
+
"syscallName",
|
|
62
|
+
"timestamp"
|
|
63
|
+
]
|
|
64
|
+
}, "Syscall events for SYSCALL-02 correlation").array("jsStacks", {
|
|
65
|
+
type: "object",
|
|
66
|
+
properties: {
|
|
67
|
+
threadId: { type: "number" },
|
|
68
|
+
timestamp: { type: "number" },
|
|
69
|
+
frames: {
|
|
70
|
+
type: "array",
|
|
71
|
+
items: {
|
|
72
|
+
type: "object",
|
|
73
|
+
properties: { functionName: { type: "string" } },
|
|
74
|
+
required: ["functionName"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
required: [
|
|
79
|
+
"threadId",
|
|
80
|
+
"timestamp",
|
|
81
|
+
"frames"
|
|
82
|
+
]
|
|
83
|
+
}, "JS stacks for SYSCALL-02 correlation").prop("ghidraOutput", {
|
|
84
|
+
type: "object",
|
|
85
|
+
description: "Binary analysis output with moduleName and functions",
|
|
86
|
+
additionalProperties: true
|
|
87
|
+
})),
|
|
88
|
+
tool("cross_domain_evidence_export", (t) => t.desc("Export the shared cross-domain evidence graph as JSON.").query()),
|
|
89
|
+
tool("cross_domain_evidence_stats", (t) => t.desc("Get node and edge statistics for the shared cross-domain evidence graph.").query())
|
|
90
|
+
];
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/server/domains/cross-domain/manifest.ts
|
|
93
|
+
const DOMAIN = "cross-domain";
|
|
94
|
+
const DEP_KEY = "crossDomainHandlers";
|
|
95
|
+
const registrations = defineMethodRegistrations({
|
|
96
|
+
domain: DOMAIN,
|
|
97
|
+
depKey: DEP_KEY,
|
|
98
|
+
lookup: toolLookup(crossDomainToolDefinitions),
|
|
99
|
+
entries: [
|
|
100
|
+
{
|
|
101
|
+
tool: "cross_domain_capabilities",
|
|
102
|
+
method: "handleCapabilities"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
tool: "cross_domain_suggest_workflow",
|
|
106
|
+
method: "handleSuggestWorkflow"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
tool: "cross_domain_health",
|
|
110
|
+
method: "handleHealth"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
tool: "cross_domain_correlate_all",
|
|
114
|
+
method: "handleCorrelateAll"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
tool: "cross_domain_evidence_export",
|
|
118
|
+
method: "handleEvidenceExport"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
tool: "cross_domain_evidence_stats",
|
|
122
|
+
method: "handleEvidenceStats"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
});
|
|
126
|
+
async function ensure(ctx) {
|
|
127
|
+
const { ReverseEvidenceGraph } = await import("./ReverseEvidenceGraph-C02-gXOh.mjs").then((n) => n.t);
|
|
128
|
+
const { CrossDomainEvidenceBridge } = await import("./evidence-graph-bridge-DcYizFk2.mjs");
|
|
129
|
+
const { CrossDomainWorkflowClassifier, CrossDomainHandlers } = await import("./handlers-BAHPxcch.mjs");
|
|
130
|
+
const existing = ctx.getDomainInstance(DEP_KEY);
|
|
131
|
+
if (existing) return existing;
|
|
132
|
+
let graph = ctx.getDomainInstance("evidenceGraph");
|
|
133
|
+
if (!graph) {
|
|
134
|
+
graph = new ReverseEvidenceGraph();
|
|
135
|
+
graph.setEventBus(ctx.eventBus);
|
|
136
|
+
ctx.setDomainInstance("evidenceGraph", graph);
|
|
137
|
+
}
|
|
138
|
+
let bridge = ctx.getDomainInstance("crossDomainEvidenceBridge");
|
|
139
|
+
if (!bridge) {
|
|
140
|
+
bridge = new CrossDomainEvidenceBridge(graph);
|
|
141
|
+
ctx.setDomainInstance("crossDomainEvidenceBridge", bridge);
|
|
142
|
+
}
|
|
143
|
+
let workflowClassifier = ctx.getDomainInstance("crossDomainWorkflowClassifier");
|
|
144
|
+
if (!workflowClassifier) {
|
|
145
|
+
workflowClassifier = new CrossDomainWorkflowClassifier(ctx, true);
|
|
146
|
+
ctx.setDomainInstance("crossDomainWorkflowClassifier", workflowClassifier);
|
|
147
|
+
}
|
|
148
|
+
const handlers = new CrossDomainHandlers(bridge, workflowClassifier);
|
|
149
|
+
ctx.setDomainInstance(DEP_KEY, handlers);
|
|
150
|
+
return handlers;
|
|
151
|
+
}
|
|
152
|
+
const manifest = {
|
|
153
|
+
kind: "domain-manifest",
|
|
154
|
+
version: 1,
|
|
155
|
+
domain: DOMAIN,
|
|
156
|
+
depKey: DEP_KEY,
|
|
157
|
+
profiles: ["full"],
|
|
158
|
+
ensure,
|
|
159
|
+
workflowRule: {
|
|
160
|
+
patterns: [/(cross[- ]domain|multi[- ]domain|evidence graph|correlate).*(v8|network|canvas|syscall|mojo|binary)/i, /(跨域|多域|证据图|关联).*(v8|网络|canvas|syscall|mojo|binary)/i],
|
|
161
|
+
priority: 98,
|
|
162
|
+
tools: [
|
|
163
|
+
"cross_domain_capabilities",
|
|
164
|
+
"cross_domain_suggest_workflow",
|
|
165
|
+
"cross_domain_correlate_all",
|
|
166
|
+
"cross_domain_evidence_stats"
|
|
167
|
+
],
|
|
168
|
+
hint: "Cross-domain reverse workflow: inspect capabilities → suggest mission workflow → correlate evidence from all v5.0 domains → export evidence graph"
|
|
169
|
+
},
|
|
170
|
+
toolDependencies: [
|
|
171
|
+
{
|
|
172
|
+
from: "cross_domain_suggest_workflow",
|
|
173
|
+
to: "deobfuscate",
|
|
174
|
+
relation: "suggests",
|
|
175
|
+
weight: .6
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
from: "cross_domain_suggest_workflow",
|
|
179
|
+
to: "js_heap_search",
|
|
180
|
+
relation: "suggests",
|
|
181
|
+
weight: .6
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
from: "cross_domain_suggest_workflow",
|
|
185
|
+
to: "network_enable",
|
|
186
|
+
relation: "suggests",
|
|
187
|
+
weight: .5
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
from: "cross_domain_suggest_workflow",
|
|
191
|
+
to: "canvas_scene_dump",
|
|
192
|
+
relation: "suggests",
|
|
193
|
+
weight: .5
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
from: "cross_domain_suggest_workflow",
|
|
197
|
+
to: "skia_correlate_objects",
|
|
198
|
+
relation: "suggests",
|
|
199
|
+
weight: .5
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
from: "cross_domain_suggest_workflow",
|
|
203
|
+
to: "syscall_correlate_js",
|
|
204
|
+
relation: "suggests",
|
|
205
|
+
weight: .5
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
from: "cross_domain_suggest_workflow",
|
|
209
|
+
to: "ghidra_analyze",
|
|
210
|
+
relation: "suggests",
|
|
211
|
+
weight: .5
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
from: "cross_domain_correlate_all",
|
|
215
|
+
to: "evidence_export",
|
|
216
|
+
relation: "precedes",
|
|
217
|
+
weight: .7
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
registrations
|
|
221
|
+
};
|
|
222
|
+
//#endregion
|
|
223
|
+
export { manifest as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as toolLookup } from "./registry-Bl8ZQW61.mjs";
|
|
2
|
+
import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
|
|
3
|
+
import { t as tool } from "./tool-builder-BHJp32mV.mjs";
|
|
4
|
+
//#region src/server/domains/sandbox/definitions.ts
|
|
5
|
+
const sandboxTools = [tool("execute_sandbox_script", (t) => t.desc("Execute JavaScript in a WASM-isolated QuickJS sandbox with optional tool brid...").string("code", "JavaScript source code to execute inside the sandbox").string("sessionId", "Session ID for scratchpad persistence across executions").number("timeoutMs", "Execution timeout in ms", { default: 1e3 }).boolean("autoCorrect", "Retry failed scripts up to 2 times with error context", { default: false }).required("code"))];
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/server/domains/sandbox/manifest.ts
|
|
8
|
+
const DOMAIN = "sandbox";
|
|
9
|
+
const DEP_KEY = "sandboxHandlers";
|
|
10
|
+
const registrations = defineMethodRegistrations({
|
|
11
|
+
domain: DOMAIN,
|
|
12
|
+
depKey: DEP_KEY,
|
|
13
|
+
lookup: toolLookup(sandboxTools),
|
|
14
|
+
entries: [{
|
|
15
|
+
tool: "execute_sandbox_script",
|
|
16
|
+
method: "handleExecuteSandboxScript"
|
|
17
|
+
}]
|
|
18
|
+
});
|
|
19
|
+
async function ensure(ctx) {
|
|
20
|
+
const { SandboxToolHandlers } = await import("./handlers-BWXEy6ef.mjs");
|
|
21
|
+
const existing = ctx.getDomainInstance(DEP_KEY);
|
|
22
|
+
if (existing) return existing;
|
|
23
|
+
const handlers = new SandboxToolHandlers(ctx);
|
|
24
|
+
ctx.setDomainInstance(DEP_KEY, handlers);
|
|
25
|
+
return handlers;
|
|
26
|
+
}
|
|
27
|
+
const manifest = {
|
|
28
|
+
kind: "domain-manifest",
|
|
29
|
+
version: 1,
|
|
30
|
+
domain: DOMAIN,
|
|
31
|
+
depKey: DEP_KEY,
|
|
32
|
+
profiles: ["full"],
|
|
33
|
+
ensure,
|
|
34
|
+
registrations
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { manifest as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { n as toolLookup, t as ensureBrowserCore } from "./registry-Bl8ZQW61.mjs";
|
|
2
|
+
import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
|
|
3
|
+
import { t as streamingTools } from "./definitions-DcYLVLCo.mjs";
|
|
4
|
+
//#region src/server/domains/streaming/manifest.ts
|
|
5
|
+
const DOMAIN = "streaming";
|
|
6
|
+
const DEP_KEY = "streamingHandlers";
|
|
7
|
+
const registrations = defineMethodRegistrations({
|
|
8
|
+
domain: DOMAIN,
|
|
9
|
+
depKey: DEP_KEY,
|
|
10
|
+
lookup: toolLookup(streamingTools),
|
|
11
|
+
entries: [
|
|
12
|
+
{
|
|
13
|
+
tool: "ws_monitor",
|
|
14
|
+
method: "handleWsMonitorDispatch"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
tool: "ws_get_frames",
|
|
18
|
+
method: "handleWsGetFrames"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
tool: "ws_get_connections",
|
|
22
|
+
method: "handleWsGetConnections"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
tool: "sse_monitor_enable",
|
|
26
|
+
method: "handleSseMonitorEnable"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
tool: "sse_get_events",
|
|
30
|
+
method: "handleSseGetEvents"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
async function ensure(ctx) {
|
|
35
|
+
const { StreamingToolHandlers } = await import("./streaming-Dal6utPp.mjs");
|
|
36
|
+
await ensureBrowserCore(ctx);
|
|
37
|
+
if (!ctx.streamingHandlers) ctx.streamingHandlers = new StreamingToolHandlers(ctx.collector);
|
|
38
|
+
return ctx.streamingHandlers;
|
|
39
|
+
}
|
|
40
|
+
const manifest = {
|
|
41
|
+
kind: "domain-manifest",
|
|
42
|
+
version: 1,
|
|
43
|
+
domain: DOMAIN,
|
|
44
|
+
depKey: DEP_KEY,
|
|
45
|
+
profiles: ["workflow", "full"],
|
|
46
|
+
ensure,
|
|
47
|
+
registrations
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { manifest as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { n as toolLookup } from "./registry-Bl8ZQW61.mjs";
|
|
2
|
+
import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
|
|
3
|
+
import { t as tool } from "./tool-builder-BHJp32mV.mjs";
|
|
4
|
+
//#region src/server/domains/macro/definitions.ts
|
|
5
|
+
const macroTools = [tool("run_macro", (t) => t.desc("Execute a registered macro by ID with inline progress and atomic bailout").string("macroId", "Macro ID to execute").prop("inputOverrides", {
|
|
6
|
+
type: "object",
|
|
7
|
+
description: "Per-step input overrides keyed by step ID",
|
|
8
|
+
additionalProperties: {
|
|
9
|
+
type: "object",
|
|
10
|
+
additionalProperties: true
|
|
11
|
+
}
|
|
12
|
+
}).required("macroId")), tool("list_macros", (t) => t.desc("List all available macros (built-in + user-defined)").query())];
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/server/domains/macro/manifest.ts
|
|
15
|
+
const DOMAIN = "macro";
|
|
16
|
+
const DEP_KEY = "macroHandlers";
|
|
17
|
+
const registrations = defineMethodRegistrations({
|
|
18
|
+
domain: DOMAIN,
|
|
19
|
+
depKey: DEP_KEY,
|
|
20
|
+
lookup: toolLookup(macroTools),
|
|
21
|
+
entries: [{
|
|
22
|
+
tool: "run_macro",
|
|
23
|
+
method: "handleRunMacro"
|
|
24
|
+
}, {
|
|
25
|
+
tool: "list_macros",
|
|
26
|
+
method: "handleListMacros"
|
|
27
|
+
}]
|
|
28
|
+
});
|
|
29
|
+
async function ensure(ctx) {
|
|
30
|
+
const { MacroToolHandlers } = await import("./handlers-CVv2H1uq.mjs");
|
|
31
|
+
const existing = ctx.getDomainInstance(DEP_KEY);
|
|
32
|
+
if (existing) return existing;
|
|
33
|
+
const handlers = new MacroToolHandlers(ctx);
|
|
34
|
+
ctx.setDomainInstance(DEP_KEY, handlers);
|
|
35
|
+
return handlers;
|
|
36
|
+
}
|
|
37
|
+
const manifest = {
|
|
38
|
+
kind: "domain-manifest",
|
|
39
|
+
version: 1,
|
|
40
|
+
domain: DOMAIN,
|
|
41
|
+
depKey: DEP_KEY,
|
|
42
|
+
profiles: ["full"],
|
|
43
|
+
ensure,
|
|
44
|
+
registrations
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { manifest as default };
|