steelforesight/graphify-out/cache/ast/v0.9.5/6f0c2882b66de2cc273b7fbfb25...

1 line
16 KiB
JSON

{"nodes": [{"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "label": "detect.py", "file_type": "code", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L1"}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_code_line", "label": "_is_code_line()", "file_type": "code", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L42", "_callable": true}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_json_content", "label": "_is_json_content()", "file_type": "code", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L47", "_callable": true}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "label": "_is_yaml_content()", "file_type": "code", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L56", "_callable": true}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "label": "detect_file_type()", "file_type": "code", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L72", "_callable": true}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py"}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "label": "should_compress()", "file_type": "code", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L118", "_callable": true}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_43", "label": "Check if a line looks like code.", "file_type": "rationale", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L43"}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_48", "label": "Check if content is valid JSON.", "file_type": "rationale", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L48"}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_57", "label": "Heuristic: check if content looks like YAML.", "file_type": "rationale", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L57"}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_73", "label": "Classify a file as 'natural_language', 'code', 'config', or 'unknown'. Re", "file_type": "rationale", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L73"}, {"id": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_119", "label": "Return True if the file is natural language and should be compressed.", "file_type": "rationale", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L119"}], "edges": [{"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L4", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L5", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L6", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_code_line", "relation": "contains", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L42", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_json_content", "relation": "contains", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L47", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "relation": "contains", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L56", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "relation": "contains", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L72", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L72", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "relation": "contains", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L118", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L118", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L129", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_json_content", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L103", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L105", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_code_line", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L108", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L125", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_43", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_code_line", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L43", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_48", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_json_content", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L48", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_57", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L57", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_73", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L73", "weight": 1.0}, {"source": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_rationale_119", "target": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": ".agents/skills/caveman-compress/scripts/detect.py", "source_location": "L119", "weight": 1.0}], "raw_calls": [{"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_code_line", "callee": "match", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L44", "receiver": "p"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_json_content", "callee": "loads", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L50", "receiver": "json"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_json_content", "callee": "ValueError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L52"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "callee": "strip", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L60", "receiver": "line"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "callee": "startswith", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L61", "receiver": "stripped"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "callee": "match", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L63", "receiver": "re"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "callee": "startswith", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L65", "receiver": "stripped"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_is_yaml_content", "callee": "strip", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L68", "receiver": "l"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "lower", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L78", "receiver": null}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "lower", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L81", "receiver": null}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "read_text", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L93", "receiver": "filepath"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "OSError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L94"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "PermissionError", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L94"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "splitlines", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L97", "receiver": "text"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "startswith", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L100", "receiver": "text"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "strip", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L108", "receiver": "l"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_detect_file_type", "callee": "strip", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L109", "receiver": "l"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "callee": "is_file", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L120", "receiver": "filepath"}, {"caller_nid": "c_users_datis_star_andishkade_foolad_agents_skills_caveman_compress_scripts_detect_should_compress", "callee": "endswith", "is_member_call": true, "source_file": "C:\\Users\\DATIS STAR\\andishkade-foolad\\.agents\\skills\\caveman-compress\\scripts\\detect.py", "source_location": "L123", "receiver": null}]}