464 lines
15 KiB
JSON
464 lines
15 KiB
JSON
{
|
|
"directed": false,
|
|
"multigraph": false,
|
|
"graph": {},
|
|
"nodes": [
|
|
{
|
|
"label": "nextcloud-talk-bot.py",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L1",
|
|
"id": "nextcloud_talk_bot_py",
|
|
"community": 0,
|
|
"norm_label": "nextcloud-talk-bot.py"
|
|
},
|
|
{
|
|
"label": "load_knowledge_base()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L34",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_load_knowledge_base",
|
|
"community": 2,
|
|
"norm_label": "load_knowledge_base()"
|
|
},
|
|
{
|
|
"label": "build_system_prompt()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L70",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_build_system_prompt",
|
|
"community": 2,
|
|
"norm_label": "build_system_prompt()"
|
|
},
|
|
{
|
|
"label": "nc_request()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L92",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"community": 1,
|
|
"norm_label": "nc_request()"
|
|
},
|
|
{
|
|
"label": "get_last_message_id()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L106",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_get_last_message_id",
|
|
"community": 3,
|
|
"norm_label": "get_last_message_id()"
|
|
},
|
|
{
|
|
"label": "poll_new_messages()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L113",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_poll_new_messages",
|
|
"community": 0,
|
|
"norm_label": "poll_new_messages()"
|
|
},
|
|
{
|
|
"label": "join_room()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L129",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_join_room",
|
|
"community": 1,
|
|
"norm_label": "join_room()"
|
|
},
|
|
{
|
|
"label": "send_message()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L140",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_send_message",
|
|
"community": 1,
|
|
"norm_label": "send_message()"
|
|
},
|
|
{
|
|
"label": "get_ai_reply()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L152",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_get_ai_reply",
|
|
"community": 0,
|
|
"norm_label": "get_ai_reply()"
|
|
},
|
|
{
|
|
"label": "main()",
|
|
"file_type": "code",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L196",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"community": 0,
|
|
"norm_label": "main()"
|
|
},
|
|
{
|
|
"label": "Load all .md files from knowledge-base repo into context string",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L35",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_35",
|
|
"community": 2,
|
|
"norm_label": "load all .md files from knowledge-base repo into context string"
|
|
},
|
|
{
|
|
"label": "Build system prompt with knowledge base",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L71",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_71",
|
|
"community": 2,
|
|
"norm_label": "build system prompt with knowledge base"
|
|
},
|
|
{
|
|
"label": "Nextcloud OCS API request",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L93",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_93",
|
|
"community": 1,
|
|
"norm_label": "nextcloud ocs api request"
|
|
},
|
|
{
|
|
"label": "Get the highest message ID in the conversation",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L107",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_107",
|
|
"community": 3,
|
|
"norm_label": "get the highest message id in the conversation"
|
|
},
|
|
{
|
|
"label": "Long-poll for new messages after last_id",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L114",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_114",
|
|
"community": 0,
|
|
"norm_label": "long-poll for new messages after last_id"
|
|
},
|
|
{
|
|
"label": "Join conversation as bot user",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L130",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_130",
|
|
"community": 1,
|
|
"norm_label": "join conversation as bot user"
|
|
},
|
|
{
|
|
"label": "Send message as bot user",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L141",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_141",
|
|
"community": 1,
|
|
"norm_label": "send message as bot user"
|
|
},
|
|
{
|
|
"label": "Get reply from Claude via cliproxy",
|
|
"file_type": "rationale",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L153",
|
|
"id": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_153",
|
|
"community": 0,
|
|
"norm_label": "get reply from claude via cliproxy"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L34",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_load_knowledge_base",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L70",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_build_system_prompt",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L92",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L106",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_get_last_message_id",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L113",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_poll_new_messages",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L129",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_join_room",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L140",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_send_message",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L152",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_get_ai_reply",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "contains",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L196",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_py",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L72",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_build_system_prompt",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_load_knowledge_base",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L35",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_35",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_load_knowledge_base",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L204",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_build_system_prompt",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L71",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_71",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_build_system_prompt",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L108",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_get_last_message_id",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L116",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_poll_new_messages",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L132",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_join_room",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L146",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_send_message",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L93",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_93",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_nc_request",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L208",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_get_last_message_id",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L107",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_107",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_get_last_message_id",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L214",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_poll_new_messages",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L114",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_114",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_poll_new_messages",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L142",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_send_message",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_join_room",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L130",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_130",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_join_room",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L242",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_send_message",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L141",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_141",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_send_message",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "calls",
|
|
"context": "call",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L249",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_main",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_get_ai_reply",
|
|
"confidence_score": 1.0
|
|
},
|
|
{
|
|
"relation": "rationale_for",
|
|
"confidence": "EXTRACTED",
|
|
"source_file": "nextcloud-talk-bot.py",
|
|
"source_location": "L153",
|
|
"weight": 1.0,
|
|
"source": "nextcloud_talk_bot_nextcloud_talk_bot_rationale_153",
|
|
"target": "nextcloud_talk_bot_nextcloud_talk_bot_get_ai_reply",
|
|
"confidence_score": 1.0
|
|
}
|
|
],
|
|
"hyperedges": [],
|
|
"built_at_commit": "3220238c67f7f80ed7bf630e3aeb019d872a67da"
|
|
} |