my-homelab-configs/graphify-out/cache/ast/v0.9.64-s4/cfcc6051f4d022f76c4bf91666f...

1 line
22 KiB
JSON

{"nodes": [{"id": "$graphify-root$_scripts_incident_commander", "label": "incident-commander", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L1"}, {"id": "$graphify-root$_scripts_incident_commander_incident", "label": "Incident", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L22", "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_scripts_incident_commander_split_items", "label": "split_items()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L40", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_load_incidents", "label": "load_incidents()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L44", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_fixture_text", "label": "fixture_text()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L61", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_classify", "label": "classify()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L68", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_incident_for_class", "label": "incident_for_class()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L76", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_render_triage", "label": "render_triage()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L83", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_first_evidence_lines", "label": "first_evidence_lines()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L105", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_print_triage", "label": "print_triage()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L110", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_print_list", "label": "print_list()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L132", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_replay", "label": "replay()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L138", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_read_triage_input", "label": "read_triage_input()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L168", "_callable": true}, {"id": "namespace", "label": "Namespace", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/incident-commander"}, {"id": "$graphify-root$_scripts_incident_commander_main", "label": "main()", "file_type": "code", "source_file": "scripts/incident-commander", "source_location": "L178", "_callable": true}, {"id": "$graphify-root$_scripts_incident_commander_rationale_2", "label": "Read-only incident classification and triage for homelab failures.", "file_type": "rationale", "source_file": "scripts/incident-commander", "source_location": "L2"}], "edges": [{"source": "$graphify-root$_scripts_incident_commander", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "csv", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L9", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "dataclasses", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L11", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L12", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L22", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_split_items", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L40", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_load_incidents", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L44", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_load_incidents", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L44", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_fixture_text", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_fixture_text", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_classify", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L68", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_incident_for_class", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_incident_for_class", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_incident_for_class", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_render_triage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L83", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_render_triage", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L83", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_first_evidence_lines", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L105", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_print_triage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L110", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_print_list", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L132", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_print_list", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L132", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_replay", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L138", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_replay", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L138", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_read_triage_input", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L168", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_read_triage_input", "target": "namespace", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L168", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander", "target": "$graphify-root$_scripts_incident_commander_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L178", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_load_incidents", "target": "$graphify-root$_scripts_incident_commander_incident", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L48", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_load_incidents", "target": "$graphify-root$_scripts_incident_commander_split_items", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L54", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_render_triage", "target": "$graphify-root$_scripts_incident_commander_classify", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L84", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_render_triage", "target": "$graphify-root$_scripts_incident_commander_incident_for_class", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L85", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_render_triage", "target": "$graphify-root$_scripts_incident_commander_first_evidence_lines", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L93", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_replay", "target": "$graphify-root$_scripts_incident_commander_fixture_text", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L146", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_replay", "target": "$graphify-root$_scripts_incident_commander_render_triage", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L147", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_main", "target": "$graphify-root$_scripts_incident_commander_load_incidents", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L192", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_main", "target": "$graphify-root$_scripts_incident_commander_print_list", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L194", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_main", "target": "$graphify-root$_scripts_incident_commander_replay", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L196", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_main", "target": "$graphify-root$_scripts_incident_commander_render_triage", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L198", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_main", "target": "$graphify-root$_scripts_incident_commander_read_triage_input", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L198", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_main", "target": "$graphify-root$_scripts_incident_commander_print_triage", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L202", "weight": 1.0}, {"source": "$graphify-root$_scripts_incident_commander_rationale_2", "target": "$graphify-root$_scripts_incident_commander", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "scripts/incident-commander", "source_location": "L2", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_incident_commander_split_items", "callee": "strip", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L41", "receiver": "item"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_split_items", "callee": "split", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L41", "receiver": "value"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_split_items", "callee": "strip", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L41", "receiver": "item"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_load_incidents", "callee": "open", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L45", "receiver": "INCIDENTS_FILE"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_load_incidents", "callee": "DictReader", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L46", "receiver": "csv"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_load_incidents", "callee": "handle", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/incident-commander", "source_location": "L46"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_fixture_text", "callee": "is_file", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L63", "receiver": "path"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_fixture_text", "callee": "SystemExit", "is_member_call": false, "source_file": "scripts/incident-commander", "source_location": "L64", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_incident_commander_fixture_text", "callee": "read_text", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L65", "receiver": "path"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_classify", "callee": "lower", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L69", "receiver": "text"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_classify", "callee": "search", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L71", "receiver": "re"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_first_evidence_lines", "callee": "strip", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L106", "receiver": "line"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_first_evidence_lines", "callee": "splitlines", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L106", "receiver": "text"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_first_evidence_lines", "callee": "strip", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L106", "receiver": "line"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_replay", "callee": "append", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L149", "receiver": "results"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_replay", "callee": "dumps", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L152", "receiver": "json"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_read_triage_input", "callee": "read_text", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L172", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_incident_commander_read_triage_input", "callee": "Path", "is_member_call": false, "source_file": "scripts/incident-commander", "source_location": "L172", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_incident_commander_read_triage_input", "callee": "isatty", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L173", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_incident_commander_read_triage_input", "callee": "read", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L174", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_incident_commander_read_triage_input", "callee": "SystemExit", "is_member_call": false, "source_file": "scripts/incident-commander", "source_location": "L175", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L179", "receiver": "argparse"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "__doc__", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/incident-commander", "source_location": "L179"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_subparsers", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L180", "receiver": "parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_parser", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L181", "receiver": "subparsers"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_parser", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L182", "receiver": "subparsers"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L183", "receiver": "replay_parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L184", "receiver": "replay_parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L185", "receiver": "replay_parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_parser", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L186", "receiver": "subparsers"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L187", "receiver": "triage_parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L188", "receiver": "triage_parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L189", "receiver": "triage_parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "parse_args", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L190", "receiver": "parser"}, {"caller_nid": "$graphify-root$_scripts_incident_commander_main", "callee": "dumps", "is_member_call": true, "source_file": "scripts/incident-commander", "source_location": "L200", "receiver": "json"}]}