 	
 	import avmplus.DescribeType;
 	
+	import weave.api.getSessionState;
 	import weave.api.reportError;
+	import weave.api.setSessionState;
 	import weave.compiler.Compiler;
 	import weave.compiler.GlobalLib;
 	import weave.compiler.ICompiledObject;

	{
		public function ConsoleEngine()
		{
			compiler.includeLibraries(GlobalLib, ObjectUtil, WeaveAPI.SessionManager, DescribeType, DebugUtils);
			compiler.setHashOperator(debugHelper);
			compiler.setEvalFunction(runCommand);
		}

			'chain': methodChainer,
			'display': DebugUtils.debugDisplayList,
			'debugCompiler': function(script:String):String { return ObjectUtil.toString(new Compiler().compileToObject(script), null, 'evaluatedMethod,evaluatedHost,evaluatedMethodName,evaluatedParams,evalIndex,originalTokens'.split(',')); },
			'getState': getSessionState as Function,
			'setState': setSessionState as Function,
			'_': {}
		};
		
