UNPKG

@gaiaverse/semantic-turning-point-detector

Version:

Detects key semantic turning points in conversations using recursive semantic distance analysis. Ideal for conversation analysis, dialogue segmentation, insight detection, and AI-assisted reasoning tasks.

362 lines (361 loc) 9.86 kB
[ { "id": "tp-0-2-3+tp-0-3-4+tp-0-4-5+tp-0-5-6", "label": "adaptive behavior hypothesis Discussion", "category": "Insight", "span": { "startId": "msg-2", "endId": "msg-6", "startIndex": 2, "endIndex": 6 }, "best_start_id": "msg-2", "best_end_id": "msg-3", "best_id": "msg-3", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.8618415597901317, "keywords": [ "phase shifting", "temporal stabilization", "chronomantic interventions", "temporal synchronization", "internal management" ], "quotes": [ "Exactly! It appears more like phase shifting than mechanical wear. My attempts at temporal stabilization caused a violent backlash.", "Backlash registered as chroniton shear. Perhaps the gear’s 'temporal synchronization' is internally managed rather than externally imposed?" ], "emotionalTone": "surprise", "detectionLevel": 0, "significance": 0.91795, "complexityScore": 4.418580058452593 }, { "id": "tp-0-7-8+tp-0-8-9+tp-0-9-10", "label": "recognition Discussion", "category": "Insight", "span": { "startId": "msg-7", "endId": "msg-10", "startIndex": 7, "endIndex": 10 }, "best_start_id": "msg-7", "best_end_id": "msg-8", "best_id": "msg-9", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.8352754511361362, "keywords": [ "memory", "mnemonic alloy", "cognition", "recognition", "temporal stresses" ], "quotes": [ "Analyzing Artificer log 77.4—fracture patterns match mnemonic alloy memory-etching effects with 92% certainty.", "It's memory, not wear! CRG-007 is recording temporal stresses into its alloy, actively consuming itself through cognition." ], "emotionalTone": "surprise", "detectionLevel": 0, "significance": 0.9845000000000002, "complexityScore": 4.790669009085827 }, { "id": "tp-0-10-11+tp-0-10-11+tp-0-11-12", "label": "Shift to Codex Consultation and Shift to Action and Urgency", "category": "Action", "span": { "startId": "msg-10", "endId": "msg-12", "startIndex": 10, "endIndex": 12 }, "best_start_id": "msg-10", "best_end_id": "msg-11", "best_id": "msg-11", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.9406419363121324, "keywords": [ "Codex", "consultation", "stress", "absorption", "Codex access" ], "quotes": [ "Consulting the Codex of Whispering Metals is essential.", "Initiating formal request protocols for Codex access in Noctua Vault, Level 12-Delta." ], "emotionalTone": "anticipation", "detectionLevel": 0, "significance": 0.9240000000000002, "complexityScore": 4.437718851763751 }, { "id": "tp-1-12-16", "label": "Security Protocol Objection", "category": "Objection", "span": { "startId": "msg-12", "endId": "msg-16", "startIndex": 12, "endIndex": 16 }, "best_start_id": "msg-12", "best_end_id": "msg-16", "best_id": "msg-14", "deprecatedSpan": { "startIndex": 12, "endIndex": 16, "startMessageId": "msg-12-msg", "endMessageId": "16" }, "semanticShiftMagnitude": 0.37675618282307427, "keywords": [ "security", "protocol", "breach", "objection", "risk" ], "quotes": [ "Unauthorized Vault access breaches critical security protocols. I must formally object.", "Risks understood, but Orrery collapse is worse." ], "emotionalTone": "fear", "detectionLevel": 1, "significance": 1, "complexityScore": 4.418378091411538 }, { "id": "tp-0-18-19+tp-0-19-20+tp-0-19-20", "label": "identification critical issue Discussion", "category": "Problem", "span": { "startId": "msg-18", "endId": "msg-20", "startIndex": 18, "endIndex": 20 }, "best_start_id": "msg-18", "best_end_id": "msg-19", "best_id": "msg-20", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.8821343047258929, "keywords": [ "anomaly", "sensors", "issue", "surge", "anomalous" ], "quotes": [ "Wait—your sensors pulsed oddly. What's happening?", "Anomalous negative entropy surge detected in Orrery core—Omega sector. Separate critical issue emerging." ], "emotionalTone": "surprise", "detectionLevel": 0, "significance": 0.9790000000000002, "complexityScore": 4.788929424717492 }, { "id": "tp-0-22-23+tp-0-23-24+tp-0-24-25", "label": "gear's Discussion", "category": "Insight", "span": { "startId": "msg-22", "endId": "msg-25", "startIndex": 22, "endIndex": 25 }, "best_start_id": "msg-22", "best_end_id": "msg-23", "best_id": "msg-23", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.8981610093379835, "keywords": [ "confirmation", "correlation", "echo frequencies", "memory-etching", "gear" ], "quotes": [ "Confirmed—echo frequencies precisely match CRG-007’s memory-etching resonance.", "The gear actively absorbs harmful temporal echoes. It's protecting the Orrery internally!" ], "emotionalTone": "trust", "detectionLevel": 0, "significance": 0.9240000000000002, "complexityScore": 4.442235369837094 }, { "id": "tp-0-29-30+tp-0-30-31+tp-0-31-32", "label": "Ethical Implications of Orrery and Hypothesis on Safeguards and Shift to Restoration Risks", "category": "Insight", "span": { "startId": "msg-29", "endId": "msg-32", "startIndex": 29, "endIndex": 32 }, "best_start_id": "msg-29", "best_end_id": "msg-30", "best_id": "msg-30", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.9684148939297835, "keywords": [ "Orrery", "curating timelines", "ethics", "implications", "CRG-007" ], "quotes": [ "Could the Orrery itself be curating timelines?", "Implications immense; restoration ethics uncertain." ], "emotionalTone": "surprise", "detectionLevel": 0, "significance": 0.9542500000000003, "complexityScore": 4.8397583607791255 }, { "id": "tp-0-32-33+tp-0-33-34", "label": "mission revision Discussion", "category": "Decision", "span": { "startId": "msg-32", "endId": "msg-34", "startIndex": 32, "endIndex": 34 }, "best_start_id": "msg-32", "best_end_id": "msg-33", "best_id": "msg-33", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.8825092632650101, "keywords": [ "revision", "objective", "restoration", "understanding", "mission" ], "quotes": [ "Our objective needs revision—no blind restoration without understanding.", "Revised mission: prioritize comprehensive understanding through the Codex first." ], "emotionalTone": "neutral", "detectionLevel": 0, "significance": 0.9350000000000002, "complexityScore": 4.779694117890095 }, { "id": "tp-0-37-38+tp-0-37-38+tp-0-38-39", "label": "action execution Discussion and Vault Access Achieved", "category": "Action", "span": { "startId": "msg-37", "endId": "msg-39", "startIndex": 37, "endIndex": 39 }, "best_start_id": "msg-37", "best_end_id": "msg-38", "best_id": "msg-38", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.9302303850887768, "keywords": [ "insertion", "key", "execution", "action", "timing" ], "quotes": [ "Optimal insertion timing now. Insert key precisely three centimeters, rotate 90 degrees counter-clockwise.", "Insert key precisely three centimeters, rotate 90 degrees counter-clockwise." ], "emotionalTone": "anticipation", "detectionLevel": 0, "significance": 0.9790000000000002, "complexityScore": 4.781996514278627 }, { "id": "tp-0-46-47+tp-0-46-47+tp-0-47-48", "label": "ethical Discussion", "category": "Question", "span": { "startId": "msg-46", "endId": "msg-48", "startIndex": 46, "endIndex": 48 }, "best_start_id": "msg-46", "best_end_id": "msg-47", "best_id": "msg-47", "deprecatedSpan": { "startIndex": 0, "endIndex": 0, "startMessageId": "", "endMessageId": "" }, "semanticShiftMagnitude": 0.9747897735434965, "keywords": [ "sentient system", "ethical dilemma", "self-restriction", "right to alter", "sentience" ], "quotes": [ "Do we have the right to alter or repair a potentially sentient system that intentionally self-restricts?" ], "emotionalTone": "pessimism", "detectionLevel": 0, "significance": 0.9542500000000003, "complexityScore": 4.838524658869058 } ]