@triedotdev/mcp 1.0.149 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +116 -30
- package/dist/{autonomy-config-ZCOSTMPD.js → autonomy-config-3APNC6QF.js} +3 -3
- package/dist/{chat-store-OJLJCJFI.js → chat-store-HMTDL7I2.js} +3 -3
- package/dist/{chunk-LD7ZEFNY.js → chunk-3KZBC3RJ.js} +2 -2
- package/dist/{chunk-SH7H3WRU.js → chunk-4TQQP7JD.js} +3 -3
- package/dist/{chunk-SH7H3WRU.js.map → chunk-4TQQP7JD.js.map} +1 -1
- package/dist/{chunk-GAL7OIYU.js → chunk-4UDBGYI3.js} +15 -15
- package/dist/{chunk-72KSLD7A.js → chunk-74R4XSFB.js} +5 -5
- package/dist/{chunk-ZDDE442Q.js → chunk-7HYOJ4Q7.js} +8 -8
- package/dist/{chunk-ZDDE442Q.js.map → chunk-7HYOJ4Q7.js.map} +1 -1
- package/dist/{chunk-OTQEFXHU.js → chunk-ABY2R7OK.js} +2 -2
- package/dist/{chunk-QH77RQB3.js → chunk-ED7PLRQA.js} +5 -6
- package/dist/chunk-ED7PLRQA.js.map +1 -0
- package/dist/{chunk-23RJT5WT.js → chunk-F7BMFOZ6.js} +2 -2
- package/dist/{chunk-53KUI7RQ.js → chunk-G7Q23IGF.js} +35 -10
- package/dist/{chunk-53KUI7RQ.js.map → chunk-G7Q23IGF.js.map} +1 -1
- package/dist/{chunk-CU5VDH6F.js → chunk-GLY76TSI.js} +2 -2
- package/dist/{chunk-B2AHQ2IR.js → chunk-IFBEAOHH.js} +12 -12
- package/dist/{chunk-ILGMFND2.js → chunk-JIS2OCZR.js} +4 -4
- package/dist/{chunk-FG467PDD.js → chunk-LNUMECBJ.js} +2 -2
- package/dist/{chunk-FPEMP54L.js → chunk-OJXFQRUE.js} +2 -2
- package/dist/{chunk-5KJ4UJOY.js → chunk-QQG42HCI.js} +2 -2
- package/dist/{chunk-7OJ6JIPL.js → chunk-REHKDCI6.js} +7 -150
- package/dist/chunk-REHKDCI6.js.map +1 -0
- package/dist/{chunk-HYNDXZAU.js → chunk-SU3WCAC4.js} +103 -75
- package/dist/chunk-SU3WCAC4.js.map +1 -0
- package/dist/{chunk-4C67GV3O.js → chunk-TCNCNWGV.js} +2 -2
- package/dist/{chunk-NKHO34UZ.js → chunk-TU7D5DEW.js} +2 -2
- package/dist/{chunk-ZUEAHFSY.js → chunk-TWPX6PHF.js} +313 -61
- package/dist/chunk-TWPX6PHF.js.map +1 -0
- package/dist/{chunk-FH335WL5.js → chunk-TWQPOVRA.js} +2 -2
- package/dist/{chunk-YOJGSRZK.js → chunk-V3O7C2LY.js} +2 -2
- package/dist/{chunk-V7AY2EJO.js → chunk-WOTLY5NA.js} +2 -2
- package/dist/cli/create-agent.js +8 -40
- package/dist/cli/create-agent.js.map +1 -1
- package/dist/cli/main.js +55 -93
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +20 -20
- package/dist/{client-INNE2GGZ.js → client-5L64D5SQ.js} +3 -3
- package/dist/{codebase-index-FMIULFZQ.js → codebase-index-OOE7OAHP.js} +3 -3
- package/dist/{fast-analyzer-CTT3MCPE.js → fast-analyzer-FMU3X4AZ.js} +5 -5
- package/dist/github-ingester-C66ZRUYC.js +11 -0
- package/dist/{goal-manager-IGUMDGCA.js → goal-manager-VTBFFYN4.js} +7 -7
- package/dist/{goal-validator-DV6DRSGF.js → goal-validator-EM5XVWVC.js} +6 -6
- package/dist/{graph-J4OGTYCO.js → graph-26JPZ3DF.js} +3 -3
- package/dist/{hypothesis-O72ZLVOW.js → hypothesis-4UPE7KXU.js} +7 -7
- package/dist/{incident-index-BWW2UEY7.js → incident-index-H6APJ4S3.js} +3 -3
- package/dist/index.js +118 -313
- package/dist/index.js.map +1 -1
- package/dist/{insight-store-Q62UGMTF.js → insight-store-QEEUQR5L.js} +3 -3
- package/dist/{issue-store-4FPABLC6.js → issue-store-C6XYENE5.js} +4 -4
- package/dist/{ledger-43SIVE7X.js → ledger-VNA4DX3Z.js} +13 -5
- package/dist/linear-ingester-WIUBWF55.js +11 -0
- package/dist/{tiered-storage-VZL7KK64.js → tiered-storage-P6Z3NV2Q.js} +3 -3
- package/dist/trie-agent-GJJJCL6P.js +27 -0
- package/package.json +4 -6
- package/dist/chunk-7OJ6JIPL.js.map +0 -1
- package/dist/chunk-G76DYVGX.js +0 -136
- package/dist/chunk-G76DYVGX.js.map +0 -1
- package/dist/chunk-HYNDXZAU.js.map +0 -1
- package/dist/chunk-QH77RQB3.js.map +0 -1
- package/dist/chunk-ZUEAHFSY.js.map +0 -1
- package/dist/comprehension-46F7ZNKL.js +0 -821
- package/dist/comprehension-46F7ZNKL.js.map +0 -1
- package/dist/github-ingester-J2ZFYXVE.js +0 -11
- package/dist/linear-ingester-JRDQAIAA.js +0 -11
- package/dist/trie-agent-ET3DAP5Y.js +0 -27
- package/dist/workers/agent-worker.d.ts +0 -2
- package/dist/workers/agent-worker.js +0 -28
- package/dist/workers/agent-worker.js.map +0 -1
- /package/dist/{autonomy-config-ZCOSTMPD.js.map → autonomy-config-3APNC6QF.js.map} +0 -0
- /package/dist/{chat-store-OJLJCJFI.js.map → chat-store-HMTDL7I2.js.map} +0 -0
- /package/dist/{chunk-LD7ZEFNY.js.map → chunk-3KZBC3RJ.js.map} +0 -0
- /package/dist/{chunk-GAL7OIYU.js.map → chunk-4UDBGYI3.js.map} +0 -0
- /package/dist/{chunk-72KSLD7A.js.map → chunk-74R4XSFB.js.map} +0 -0
- /package/dist/{chunk-OTQEFXHU.js.map → chunk-ABY2R7OK.js.map} +0 -0
- /package/dist/{chunk-23RJT5WT.js.map → chunk-F7BMFOZ6.js.map} +0 -0
- /package/dist/{chunk-CU5VDH6F.js.map → chunk-GLY76TSI.js.map} +0 -0
- /package/dist/{chunk-B2AHQ2IR.js.map → chunk-IFBEAOHH.js.map} +0 -0
- /package/dist/{chunk-ILGMFND2.js.map → chunk-JIS2OCZR.js.map} +0 -0
- /package/dist/{chunk-FG467PDD.js.map → chunk-LNUMECBJ.js.map} +0 -0
- /package/dist/{chunk-FPEMP54L.js.map → chunk-OJXFQRUE.js.map} +0 -0
- /package/dist/{chunk-5KJ4UJOY.js.map → chunk-QQG42HCI.js.map} +0 -0
- /package/dist/{chunk-4C67GV3O.js.map → chunk-TCNCNWGV.js.map} +0 -0
- /package/dist/{chunk-NKHO34UZ.js.map → chunk-TU7D5DEW.js.map} +0 -0
- /package/dist/{chunk-FH335WL5.js.map → chunk-TWQPOVRA.js.map} +0 -0
- /package/dist/{chunk-YOJGSRZK.js.map → chunk-V3O7C2LY.js.map} +0 -0
- /package/dist/{chunk-V7AY2EJO.js.map → chunk-WOTLY5NA.js.map} +0 -0
- /package/dist/{client-INNE2GGZ.js.map → client-5L64D5SQ.js.map} +0 -0
- /package/dist/{codebase-index-FMIULFZQ.js.map → codebase-index-OOE7OAHP.js.map} +0 -0
- /package/dist/{fast-analyzer-CTT3MCPE.js.map → fast-analyzer-FMU3X4AZ.js.map} +0 -0
- /package/dist/{github-ingester-J2ZFYXVE.js.map → github-ingester-C66ZRUYC.js.map} +0 -0
- /package/dist/{goal-manager-IGUMDGCA.js.map → goal-manager-VTBFFYN4.js.map} +0 -0
- /package/dist/{goal-validator-DV6DRSGF.js.map → goal-validator-EM5XVWVC.js.map} +0 -0
- /package/dist/{graph-J4OGTYCO.js.map → graph-26JPZ3DF.js.map} +0 -0
- /package/dist/{hypothesis-O72ZLVOW.js.map → hypothesis-4UPE7KXU.js.map} +0 -0
- /package/dist/{incident-index-BWW2UEY7.js.map → incident-index-H6APJ4S3.js.map} +0 -0
- /package/dist/{insight-store-Q62UGMTF.js.map → insight-store-QEEUQR5L.js.map} +0 -0
- /package/dist/{issue-store-4FPABLC6.js.map → issue-store-C6XYENE5.js.map} +0 -0
- /package/dist/{ledger-43SIVE7X.js.map → ledger-VNA4DX3Z.js.map} +0 -0
- /package/dist/{linear-ingester-JRDQAIAA.js.map → linear-ingester-WIUBWF55.js.map} +0 -0
- /package/dist/{tiered-storage-VZL7KK64.js.map → tiered-storage-P6Z3NV2Q.js.map} +0 -0
- /package/dist/{trie-agent-ET3DAP5Y.js.map → trie-agent-GJJJCL6P.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/comprehension/glossary.ts","../src/comprehension/templates.ts","../src/comprehension/evidence.ts","../src/comprehension/translator.ts","../src/comprehension/index.ts"],"sourcesContent":["// Plain-English glossary for common technical and risk terms.\n// Keep definitions short, clear, and non-technical.\n\nexport const GLOSSARY: Record<string, string> = {\n // Security - Attacks & Vulnerabilities\n 'sql injection': 'A trick that lets attackers run their own database commands.',\n 'xss': 'Code that runs in the user\\'s browser without permission.',\n 'csrf': 'Forcing a user\\'s browser to make a request they did not intend.',\n 'rce': 'Remote code execution; attacker can run code on your server.',\n 'dos': 'Denial of service; overloads a system so it stops responding.',\n 'ddos': 'A large-scale denial of service using many machines.',\n 'mitm': 'Man-in-the-middle; intercepting traffic between two systems.',\n 'session fixation': 'Attacker sets or steals a session token to impersonate.',\n 'backdoor': 'Hidden way to bypass normal security.',\n 'supply chain attack': 'Compromise through dependencies or build systems.',\n 'dependency confusion': 'Using a malicious package with the same name as a private one.',\n 'typosquatting': 'Malicious package with a name that is a common typo.',\n 'injection': 'Putting untrusted input into commands or queries.',\n 'path traversal': 'Tricking code to read files outside allowed folders.',\n 'clickjacking': 'Tricking users into clicking hidden elements.',\n 'vulnerability': 'A weakness an attacker can exploit.',\n 'exploit': 'Taking advantage of a vulnerability to cause harm.',\n 'zero-day': 'New vulnerability with no patch yet.',\n 'threat model': 'Analysis of what could go wrong and who might attack.',\n 'attack surface': 'All the ways an attacker could interact with the system.',\n 'privilege escalation': 'Gaining higher permissions than you should have.',\n 'brute force': 'Trying every possible password or key until one works.',\n 'dictionary attack': 'Trying common passwords from a list.',\n 'rainbow table': 'Precomputed hashes to quickly crack passwords.',\n 'credential stuffing': 'Using stolen passwords to try logging into other sites.',\n 'session hijacking': 'Stealing a user\\'s session to act as them.',\n 'replay attack': 'Reusing captured data to repeat a valid request.',\n 'spoofing': 'Pretending to be someone or something else.',\n 'phishing': 'Tricking users into giving up sensitive information.',\n 'spear phishing': 'Targeted phishing aimed at specific people.',\n 'social engineering': 'Manipulating people to bypass security.',\n 'watering hole attack': 'Infecting sites the target is likely to visit.',\n 'drive-by download': 'Malware installed just by visiting a site.',\n 'malware': 'Software designed to harm or exploit systems.',\n 'ransomware': 'Malware that locks data until you pay.',\n 'trojan': 'Malware disguised as legitimate software.',\n 'worm': 'Malware that spreads by itself across networks.',\n 'rootkit': 'Hidden malware that gives deep system access.',\n 'keylogger': 'Software that records everything you type.',\n 'botnet': 'Network of infected computers controlled by an attacker.',\n 'command and control': 'Server that sends orders to compromised machines.',\n 'exfiltration': 'Stealing data and sending it out of the network.',\n 'lateral movement': 'Moving through a network after initial break-in.',\n 'persistence': 'Attacker\\'s ability to stay in a system after reboot.',\n 'indicator of compromise': 'Evidence that a system may be breached.',\n 'advanced persistent threat': 'Long-term targeted attack by skilled adversaries.',\n 'insecure direct object reference': 'Accessing data by guessing IDs in URLs.',\n 'open redirect': 'Sending users to malicious sites via trusted URLs.',\n 'xml external entity': 'Attack using XML to read files or make requests.',\n 'ssrf': 'Server-side request forgery; tricking servers to make internal requests.',\n 'ldap injection': 'Injecting commands into directory service queries.',\n 'command injection': 'Running system commands through user input.',\n 'deserialization attack': 'Exploiting how data is converted back to objects.',\n 'prototype pollution': 'Modifying JavaScript object prototypes maliciously.',\n 'subdomain takeover': 'Claiming an abandoned subdomain to serve malicious content.',\n 'dns rebinding': 'Tricking browsers into accessing internal networks.',\n 'timing attack': 'Learning secrets by measuring how long operations take.',\n 'side channel attack': 'Extracting info from power use, timing, or other signals.',\n\n // Security - Defenses & Authentication\n 'jwt': 'JSON Web Token; a signed token that proves identity.',\n 'csrf token': 'A secret token to stop cross-site request forgery.',\n 'csp': 'Content Security Policy; browser rules to block risky content.',\n 'cors': 'Cross-Origin Resource Sharing; controls which sites can call APIs.',\n 'samesite cookie': 'Cookie flag to limit when cookies are sent cross-site.',\n 'secure cookie': 'Cookie flag to send only over HTTPS.',\n 'httponly cookie': 'Cookie flag to block JavaScript access.',\n 'tls': 'Encryption for data in transit (HTTPS).',\n 'mfa': 'Multi-factor authentication; adds a second proof of identity.',\n 'least privilege': 'Give only the minimum access needed.',\n 'role-based access control': 'Permissions tied to roles instead of individuals.',\n 'principle of least privilege': 'Limit access to only what is necessary.',\n 'secrets': 'Passwords, keys, or tokens that must stay private.',\n 'api key': 'A secret token that authorizes API calls.',\n 'access token': 'Short-lived token proving identity to services.',\n 'refresh token': 'Token that can get new access tokens.',\n 'oauth': 'Standard for delegating access without sharing passwords.',\n 'oidc': 'OpenID Connect; identity layer on top of OAuth.',\n 'sso': 'Single sign-on; one login works for many services.',\n 'sandbox': 'Isolated environment to limit damage.',\n 'cross-tenant access': 'One customer seeing another customer\\'s data.',\n 'multi-tenant': 'Many customers share the same system safely.',\n 'pii scanner': 'Tool that finds personal data in code or configs.',\n 'secret scanner': 'Tool that finds credentials in code or history.',\n 'patch': 'Fix for a vulnerability or bug.',\n 'penetration test': 'Authorized attack simulation to find weaknesses.',\n 'input validation': 'Checking user input before using it.',\n 'output encoding': 'Escaping data before displaying to prevent XSS.',\n 'parameterized query': 'Query that safely separates code from data.',\n 'prepared statement': 'Database query compiled before adding user data.',\n 'escaping': 'Making special characters safe by adding prefixes.',\n 'sanitization': 'Cleaning input to remove dangerous content.',\n 'allowlist': 'List of things that are permitted; block everything else.',\n 'denylist': 'List of things that are blocked; allow everything else.',\n 'captcha': 'Test to tell humans apart from bots.',\n 'rate limiting': 'Cap requests to prevent abuse or overload.',\n 'account lockout': 'Temporarily blocking login after too many failures.',\n 'password hashing': 'Storing passwords as irreversible scrambled text.',\n 'salt': 'Random data added to passwords before hashing.',\n 'pepper': 'Secret key added to passwords for extra security.',\n 'bcrypt': 'Slow password hashing algorithm to resist cracking.',\n 'argon2': 'Modern password hashing designed to resist attacks.',\n 'key derivation function': 'Turns passwords into strong encryption keys.',\n 'encryption at rest': 'Data is encrypted when stored on disk.',\n 'encryption in transit': 'Data is encrypted while moving over networks.',\n 'end-to-end encryption': 'Only sender and receiver can read the message.',\n 'hsts': 'Forces browsers to always use HTTPS for a site.',\n 'certificate pinning': 'App only trusts specific certificates.',\n 'certificate transparency': 'Public log of all issued certificates.',\n 'web application firewall': 'Filter that blocks malicious web requests.',\n 'intrusion detection': 'System that spots suspicious activity.',\n 'intrusion prevention': 'System that blocks attacks in real time.',\n 'honeypot': 'Fake system designed to attract and study attackers.',\n 'security headers': 'HTTP headers that enable browser security features.',\n 'subresource integrity': 'Hash to verify external scripts are unchanged.',\n 'content security policy': 'Rules for what content a page can load.',\n 'permissions policy': 'Controls which browser features a page can use.',\n 'referrer policy': 'Controls what URL info is sent with requests.',\n\n // Compliance & Privacy\n 'audit log': 'Record of important actions for review later.',\n 'pii': 'Personally identifiable information about a user.',\n 'phi': 'Protected health information covered by HIPAA.',\n 'gdpr': 'EU privacy rules about personal data.',\n 'hipaa': 'US rules protecting health information.',\n 'pci': 'Payment Card Industry rules for handling card data.',\n 'pseudonymization': 'Replacing real data with tokens to protect identities.',\n 'anonymization': 'Removing identifiers so data cannot be tied to a person.',\n 'data minimization': 'Collect only the data you truly need.',\n 'retention policy': 'How long data is kept before deletion.',\n 'pii in logs': 'Personal data accidentally written to logs.',\n 'data subject request': 'User asking to see or delete their data.',\n 'right to be forgotten': 'User\\'s right to have their data deleted.',\n 'data breach': 'Unauthorized access to sensitive information.',\n 'breach notification': 'Required alert when data is compromised.',\n 'soc 2': 'Audit standard for service organization security.',\n 'iso 27001': 'International standard for security management.',\n 'compliance': 'Following required rules and standards.',\n 'due diligence': 'Careful investigation before making decisions.',\n 'risk assessment': 'Evaluating what could go wrong and how likely it is.',\n 'security policy': 'Rules for how to keep systems safe.',\n 'acceptable use policy': 'Rules for how employees can use systems.',\n 'incident response plan': 'Steps to follow when a security event happens.',\n 'business continuity': 'Keeping operations running during disruptions.',\n\n // Cryptography\n 'encryption': 'Scrambling data so only authorized parties can read it.',\n 'decryption': 'Unscrambling encrypted data back to readable form.',\n 'symmetric encryption': 'Same key encrypts and decrypts.',\n 'asymmetric encryption': 'Public key encrypts, private key decrypts.',\n 'public key': 'Key that can be shared; used to encrypt or verify.',\n 'private key': 'Key that must stay secret; used to decrypt or sign.',\n 'key pair': 'A public and private key that work together.',\n 'digital signature': 'Proof that data came from the key holder.',\n 'certificate': 'Document proving a public key belongs to someone.',\n 'certificate authority': 'Trusted organization that issues certificates.',\n 'hash': 'Fixed-size fingerprint of data; changes if data changes.',\n 'checksum': 'Simple hash to detect accidental changes.',\n 'hmac': 'Hash with a secret key to verify authenticity.',\n 'sha256': 'Common secure hashing algorithm.',\n 'md5': 'Old hashing algorithm; no longer secure.',\n 'aes': 'Standard symmetric encryption algorithm.',\n 'rsa': 'Common asymmetric encryption algorithm.',\n 'elliptic curve': 'Modern cryptography with shorter keys.',\n 'key exchange': 'Safely sharing a secret key over insecure channels.',\n 'diffie-hellman': 'Algorithm for secure key exchange.',\n 'nonce': 'Number used once to prevent replay attacks.',\n 'initialization vector': 'Random value to make encryption unique.',\n 'cipher': 'Algorithm for encrypting and decrypting.',\n 'plaintext': 'Data before encryption.',\n 'ciphertext': 'Data after encryption.',\n 'key rotation': 'Regularly changing keys to limit exposure.',\n 'key management': 'Storing and handling encryption keys safely.',\n 'hardware security module': 'Physical device that protects keys.',\n 'secure enclave': 'Isolated processor area for sensitive operations.',\n 'trusted platform module': 'Chip that stores secrets and measures boot.',\n 'entropy': 'Randomness quality; high entropy means unpredictable.',\n 'random number generator': 'Creates unpredictable values for security.',\n 'cryptographic agility': 'Ability to switch algorithms when needed.',\n\n // Programming Bugs & Errors\n 'race condition': 'Behavior changes depending on timing, causing flaky bugs.',\n 'memory leak': 'The app keeps using more memory over time and never frees it.',\n 'null pointer': 'Using a missing value as if it were real, causing crashes.',\n 'buffer overflow': 'Writing past the end of a buffer, corrupting memory.',\n 'off-by-one': 'Index error that is one too high or too low.',\n 'overflow': 'A number becomes too large and wraps or corrupts calculations.',\n 'underflow': 'A number becomes too small, losing precision.',\n 'deadlock': 'Two processes wait on each other forever.',\n 'livelock': 'Processes keep working but make no progress.',\n 'data race': 'Two threads touching data at once without coordination.',\n 'segmentation fault': 'Accessing memory that is not allowed.',\n 'stack overflow': 'Too many nested calls exhaust available memory.',\n 'heap corruption': 'Memory management errors that corrupt data.',\n 'dangling pointer': 'Pointer to memory that has been freed.',\n 'double free': 'Freeing the same memory twice, causing crashes.',\n 'use after free': 'Using memory after it has been released.',\n 'uninitialized variable': 'Using a variable before setting its value.',\n 'type confusion': 'Treating data as the wrong type.',\n 'integer overflow': 'Number exceeds maximum and wraps around.',\n 'floating point error': 'Imprecise math with decimal numbers.',\n 'infinite loop': 'Loop that never ends.',\n 'infinite recursion': 'Function calls itself forever.',\n 'logic error': 'Code runs but produces wrong results.',\n 'syntax error': 'Code that does not follow language rules.',\n 'runtime error': 'Error that happens while code is running.',\n 'compile error': 'Error caught before code can run.',\n 'exception': 'Error condition that interrupts normal flow.',\n 'unhandled exception': 'Error that crashes because nothing caught it.',\n 'assertion failure': 'Code assumption turned out to be false.',\n 'edge case': 'Unusual input that might not be handled.',\n 'corner case': 'Very rare situation combining multiple edge cases.',\n 'regression': 'Bug that reappears after being fixed.',\n 'heisenbug': 'Bug that changes behavior when you try to debug it.',\n 'bohrbug': 'Bug that appears consistently and is easy to find.',\n 'mandelbug': 'Bug with complex causes that is hard to reproduce.',\n 'schroedinbug': 'Bug that only appears after someone reads the code.',\n\n // Concurrency & Threading\n 'thread safety': 'Code works correctly when many threads run at once.',\n 'lock contention': 'Threads waiting on the same lock, slowing progress.',\n 'mutex': 'Lock that only one thread can hold at a time.',\n 'semaphore': 'Counter that limits how many threads can proceed.',\n 'spinlock': 'Lock that keeps checking instead of sleeping.',\n 'read-write lock': 'Many readers or one writer at a time.',\n 'atomic operation': 'Operation that completes without interruption.',\n 'compare and swap': 'Atomic check-and-update operation.',\n 'thread pool': 'Reusable set of worker threads.',\n 'worker thread': 'Background thread that processes tasks.',\n 'main thread': 'Primary thread that handles the user interface.',\n 'blocking call': 'Call that waits until the operation finishes.',\n 'non-blocking call': 'Call that returns immediately without waiting.',\n 'asynchronous': 'Work that continues without blocking the caller.',\n 'synchronous': 'Work that completes before returning.',\n 'callback': 'Function called when an async operation completes.',\n 'promise': 'Object representing a future result.',\n 'future': 'Placeholder for a value that will be computed later.',\n 'async await': 'Syntax for writing async code that looks synchronous.',\n 'event loop': 'Mechanism that processes events and callbacks.',\n 'coroutine': 'Function that can pause and resume.',\n 'green thread': 'Lightweight thread managed by the runtime.',\n 'fiber': 'Lightweight thread with cooperative scheduling.',\n 'actor model': 'Concurrency using message-passing between actors.',\n 'channel': 'Pipe for sending messages between threads.',\n 'message queue': 'Buffer that holds messages for processing.',\n 'producer consumer': 'Pattern where one side creates and another processes.',\n 'fork join': 'Split work into parallel tasks then combine results.',\n 'barrier': 'Point where all threads must arrive before continuing.',\n 'condition variable': 'Signal that wakes waiting threads.',\n 'volatile': 'Variable that might change unexpectedly.',\n\n // Performance\n 'latency': 'The time it takes for a request to get a response.',\n 'throughput': 'How many operations a system can handle over time.',\n 'bandwidth': 'How much data can move through a network at once.',\n 'cache hit': 'Data came from a fast cache, not the slow source.',\n 'cache miss': 'Data was not in cache and had to be fetched slowly.',\n 'cold start': 'First request after idle; slower because nothing is warmed up.',\n 'hot path': 'Code that runs very often and must be efficient.',\n 'n+1 query': 'Repeated queries inside a loop, causing slowdowns.',\n 'profiling': 'Measuring where time is spent in code.',\n 'benchmarking': 'Testing speed under controlled conditions.',\n 'bottleneck': 'The slowest part limiting overall performance.',\n 'optimization': 'Making code faster or use less resources.',\n 'premature optimization': 'Optimizing before knowing what is slow.',\n 'big o notation': 'Describes how performance scales with input size.',\n 'time complexity': 'How runtime grows with more data.',\n 'space complexity': 'How memory usage grows with more data.',\n 'constant time': 'Operation speed does not change with input size.',\n 'linear time': 'Speed grows proportionally with input size.',\n 'logarithmic time': 'Speed grows slowly as input size increases.',\n 'quadratic time': 'Speed degrades quickly with more input.',\n 'exponential time': 'Speed becomes impractical with larger input.',\n 'memoization': 'Caching function results to avoid recalculation.',\n 'lazy evaluation': 'Delaying computation until the result is needed.',\n 'eager evaluation': 'Computing results immediately.',\n 'connection pooling': 'Reusing database connections to avoid setup cost.',\n 'object pooling': 'Reusing objects to avoid allocation cost.',\n 'garbage collection': 'Automatic cleanup of unused memory.',\n 'gc pause': 'Brief freeze while garbage collector runs.',\n 'memory pressure': 'System running low on available memory.',\n 'cpu bound': 'Performance limited by processor speed.',\n 'io bound': 'Performance limited by disk or network speed.',\n 'memory bound': 'Performance limited by memory access speed.',\n 'cache locality': 'Accessing data close together in memory is faster.',\n 'branch prediction': 'CPU guessing which way code will branch.',\n 'pipeline stall': 'CPU waiting because a prediction was wrong.',\n 'vectorization': 'Processing multiple values in one instruction.',\n 'jit compilation': 'Compiling code while it runs for speed.',\n 'aot compilation': 'Compiling all code before running.',\n 'tail call optimization': 'Reusing stack space for recursive calls.',\n\n // Databases\n 'acid': 'Properties ensuring reliable database transactions.',\n 'atomicity': 'Transaction is all-or-nothing.',\n 'consistency': 'Database stays valid after transactions.',\n 'isolation': 'Transactions do not interfere with each other.',\n 'durability': 'Committed data survives crashes.',\n 'eventual consistency': 'Replicas catch up over time, not instantly.',\n 'strong consistency': 'All nodes agree immediately after a write.',\n 'sharding': 'Splitting data across databases to scale.',\n 'replication': 'Keeping copies of data on multiple nodes for safety.',\n 'primary replica': 'Main database that handles writes.',\n 'secondary replica': 'Copy that handles reads or takes over if primary fails.',\n 'failover': 'Switching to a backup when the primary fails.',\n 'partition': 'Dividing data into separate pieces.',\n 'index': 'Structure that speeds up finding rows.',\n 'primary key': 'Unique identifier for each row.',\n 'foreign key': 'Column that references another table.',\n 'join': 'Combining rows from multiple tables.',\n 'normalization': 'Organizing data to reduce redundancy.',\n 'denormalization': 'Adding redundancy for faster reads.',\n 'query plan': 'Database\\'s strategy for running a query.',\n 'explain plan': 'Details about how a query will execute.',\n 'full table scan': 'Reading every row; usually slow.',\n 'index scan': 'Reading just the index; usually fast.',\n 'deadlock detection': 'Finding and breaking database deadlocks.',\n 'optimistic locking': 'Assume no conflict; check before committing.',\n 'pessimistic locking': 'Lock rows before making changes.',\n 'transaction': 'Group of operations that succeed or fail together.',\n 'commit': 'Save all changes in a transaction.',\n 'rollback': 'Undo all changes in a transaction.',\n 'savepoint': 'Marker to roll back to within a transaction.',\n 'two-phase commit': 'Protocol for distributed transaction agreement.',\n 'write-ahead log': 'Recording changes before applying them.',\n 'snapshot isolation': 'Each transaction sees a consistent snapshot.',\n 'materialized view': 'Precomputed query results stored as a table.',\n 'cursor': 'Pointer for iterating through query results.',\n 'stored procedure': 'Database code that runs on the server.',\n 'trigger': 'Code that runs automatically on data changes.',\n 'nosql': 'Databases that are not strictly relational.',\n 'document database': 'Stores data as flexible documents.',\n 'key-value store': 'Simple storage mapping keys to values.',\n 'column store': 'Optimized for reading columns, not rows.',\n 'graph database': 'Stores nodes and relationships.',\n 'time series database': 'Optimized for timestamped data.',\n 'in-memory database': 'Stores everything in RAM for speed.',\n\n // Architecture Patterns\n 'microservices': 'Many small services instead of one big application.',\n 'monolith': 'Single application containing all features.',\n 'modular monolith': 'Monolith organized into clear modules.',\n 'service oriented architecture': 'Loosely coupled services that communicate.',\n 'event-driven architecture': 'Components communicate through events.',\n 'message-driven architecture': 'Communication through asynchronous messages.',\n 'cqrs': 'Separate models for reading and writing data.',\n 'event sourcing': 'Storing changes as a sequence of events.',\n 'saga': 'A set of steps with compensating actions to undo failures.',\n 'domain-driven design': 'Modeling code around business concepts.',\n 'bounded context': 'Clear boundary around a domain model.',\n 'aggregate': 'Cluster of objects treated as a unit.',\n 'repository pattern': 'Abstracting data access behind a collection-like interface.',\n 'unit of work': 'Tracking changes to commit together.',\n 'dependency injection': 'Passing dependencies instead of creating them.',\n 'inversion of control': 'Framework calls your code instead of the reverse.',\n 'service locator': 'Registry that finds dependencies at runtime.',\n 'singleton': 'Only one instance of a class exists.',\n 'factory': 'Creates objects without specifying exact classes.',\n 'builder': 'Constructs complex objects step by step.',\n 'adapter': 'Converts one interface to another.',\n 'facade': 'Simple interface to a complex subsystem.',\n 'proxy': 'Placeholder that controls access to another object.',\n 'decorator': 'Adds behavior to an object dynamically.',\n 'observer': 'Objects subscribe to be notified of changes.',\n 'strategy': 'Swappable algorithms behind a common interface.',\n 'command pattern': 'Encapsulates a request as an object.',\n 'state pattern': 'Object behavior changes based on internal state.',\n 'template method': 'Defines algorithm skeleton; subclasses fill in steps.',\n 'chain of responsibility': 'Passes request along a chain of handlers.',\n 'mediator': 'Centralizes communication between objects.',\n 'memento': 'Captures object state for later restoration.',\n 'visitor': 'Adds operations without changing classes.',\n 'hexagonal architecture': 'Isolates core logic from external systems.',\n 'clean architecture': 'Layers with dependencies pointing inward.',\n 'layered architecture': 'Organizing code into horizontal layers.',\n 'vertical slice': 'Organizing code by feature instead of layer.',\n 'ports and adapters': 'Core logic connected through pluggable interfaces.',\n 'strangler fig': 'Gradually replacing legacy with new system.',\n\n // API & Web\n 'rest': 'Stateless web services using standard HTTP methods.',\n 'graphql': 'Query language that lets clients ask for specific data.',\n 'grpc': 'Fast binary protocol for service communication.',\n 'websocket': 'Persistent connection for real-time two-way data.',\n 'server-sent events': 'Server pushes updates to the browser.',\n 'long polling': 'Client waits for server to have new data.',\n 'webhook': 'Server calls your URL when something happens.',\n 'api gateway': 'Entry point that routes and manages API traffic.',\n 'reverse proxy': 'Server that forwards requests to backends.',\n 'load balancer': 'Distributes traffic across multiple servers.',\n 'content delivery network': 'Servers around the world for faster content.',\n 'edge computing': 'Processing data close to where it is created.',\n 'serverless': 'Running code without managing servers.',\n 'function as a service': 'Running small functions on demand.',\n 'container': 'Lightweight isolated environment for applications.',\n 'orchestration': 'Managing containers across many machines.',\n 'service mesh': 'Infrastructure layer for service-to-service communication.',\n 'sidecar': 'Helper container that runs alongside the main one.',\n 'api versioning': 'Managing changes to an API over time.',\n 'backward compatibility': 'New versions work with old clients.',\n 'breaking change': 'Change that stops old clients from working.',\n 'deprecation': 'Marking features for future removal.',\n 'openapi': 'Standard for describing REST APIs.',\n 'swagger': 'Tools for designing and documenting APIs.',\n 'postman': 'Tool for testing and exploring APIs.',\n 'curl': 'Command-line tool for making HTTP requests.',\n 'http status codes': 'Numbers that describe request outcomes.',\n 'pagination': 'Splitting results into pages to avoid huge responses.',\n 'cursor pagination': 'Using a marker to fetch the next page.',\n 'offset pagination': 'Using skip and limit to fetch pages.',\n 'hateoas': 'Including links to related resources in responses.',\n 'content negotiation': 'Client and server agree on data format.',\n 'etag': 'Hash for caching and detecting changes.',\n 'conditional request': 'Request that only proceeds if conditions are met.',\n 'idempotent': 'Running the same request twice has the same effect as once.',\n 'stateless': 'Each request stands alone; no server memory between them.',\n 'stateful': 'The server remembers things between requests.',\n\n // DevOps & Infrastructure\n 'disaster recovery': 'Plan to restore service after a serious outage.',\n 'rpo': 'Recovery Point Objective; how much data loss is acceptable.',\n 'rto': 'Recovery Time Objective; how long downtime is acceptable.',\n 'blue-green deploy': 'Two environments; switch traffic to the new one safely.',\n 'canary deploy': 'Send a small percent of traffic to new code first.',\n 'roll back': 'Revert to a previous version when something breaks.',\n 'feature flag': 'Switch to turn features on/off without redeploying.',\n 'circuit breaker': 'Stop calling a failing service to prevent cascades.',\n 'throttling': 'Slow down requests when limits are near.',\n 'backpressure': 'Signal senders to slow down when overwhelmed.',\n 'retry with jitter': 'Retry failed calls after random delays to avoid spikes.',\n 'graceful degradation': 'Service reduces features instead of failing completely.',\n 'fallback': 'Backup behavior when the main path fails.',\n 'health check': 'Simple test to confirm a service is alive.',\n 'synthetic monitoring': 'Scripted tests that run like a user to catch issues.',\n 'observability': 'Ability to understand system state from logs/metrics/traces.',\n 'telemetry': 'Measurements about system behavior (metrics, logs, traces).',\n 'tracing': 'Following a request across services to see where time is spent.',\n 'log redaction': 'Removing sensitive info before storing logs.',\n 'autoscaling': 'System adds or removes servers based on load.',\n 'idempotency key': 'Token to make sure duplicate requests are ignored.',\n 'drift': 'Configuration or data no longer matches the expected state.',\n 'idempotent retry': 'Retrying safely because the operation can run multiple times.',\n 'continuous integration': 'Automatically building and testing code changes.',\n 'continuous delivery': 'Keeping code always ready to deploy.',\n 'continuous deployment': 'Automatically deploying every passing change.',\n 'pipeline': 'Sequence of automated steps to build and deploy.',\n 'artifact': 'File produced by a build, like a compiled binary.',\n 'container registry': 'Storage for container images.',\n 'infrastructure as code': 'Managing servers through configuration files.',\n 'configuration management': 'Keeping system settings consistent.',\n 'immutable infrastructure': 'Replace servers instead of modifying them.',\n 'pet vs cattle': 'Unique servers vs interchangeable ones.',\n 'golden image': 'Pre-configured template for new servers.',\n 'provisioning': 'Setting up new servers or resources.',\n 'deprovisioning': 'Removing servers or resources.',\n 'horizontal scaling': 'Adding more servers to handle load.',\n 'vertical scaling': 'Making existing servers bigger.',\n 'elasticity': 'Automatically scaling with demand.',\n 'spot instance': 'Cheap cloud server that can be reclaimed.',\n 'reserved instance': 'Discounted server with upfront commitment.',\n 'on-demand': 'Pay as you go without commitment.',\n 'multi-region': 'Deploying across geographic regions.',\n 'availability zone': 'Isolated location within a region.',\n 'high availability': 'System stays up even when parts fail.',\n 'fault tolerance': 'System continues working despite failures.',\n 'chaos engineering': 'Breaking things on purpose to find weaknesses.',\n 'game day': 'Practicing incident response with simulations.',\n 'runbook': 'Step-by-step instructions for common tasks.',\n 'playbook': 'Guide for responding to incidents.',\n 'on-call': 'Being available to respond to alerts.',\n 'pager duty': 'Service for alerting on-call engineers.',\n 'mean time to recovery': 'Average time to fix an incident.',\n 'mean time between failures': 'Average time between incidents.',\n 'service level objective': 'Target for how well a service should perform.',\n 'service level agreement': 'Promise to customers about service quality.',\n 'service level indicator': 'Metric that measures service performance.',\n 'error budget': 'Allowed amount of downtime or errors.',\n 'toil': 'Repetitive manual work that should be automated.',\n 'gitops': 'Using git as the source of truth for deployments.',\n 'trunk-based development': 'Everyone commits to main branch frequently.',\n 'feature branch': 'Separate branch for developing a feature.',\n 'pull request': 'Proposal to merge code changes.',\n 'code review': 'Examining code before accepting changes.',\n 'merge conflict': 'Overlapping changes that cannot be combined automatically.',\n 'rebase': 'Replaying commits on top of a new base.',\n 'squash': 'Combining multiple commits into one.',\n 'cherry pick': 'Applying a specific commit to another branch.',\n 'bisect': 'Binary search through commits to find a bug.',\n 'blame': 'Showing who last changed each line.',\n 'stash': 'Temporarily saving uncommitted changes.',\n\n // Testing\n 'test coverage': 'How much code is exercised by tests.',\n 'flaky test': 'Test that sometimes fails for non-code reasons.',\n 'staging': 'Environment that mirrors production for safe tests.',\n 'prod parity': 'Staging matches production closely.',\n 'unit test': 'Testing a single function or class in isolation.',\n 'integration test': 'Testing how components work together.',\n 'end-to-end test': 'Testing the full system like a user would.',\n 'acceptance test': 'Verifying the system meets requirements.',\n 'regression test': 'Checking that old features still work.',\n 'smoke test': 'Quick test to verify basic functionality.',\n 'sanity test': 'Quick check that the system is reasonable.',\n 'load test': 'Measuring performance under expected load.',\n 'stress test': 'Pushing the system beyond normal limits.',\n 'soak test': 'Running for a long time to find slow leaks.',\n 'spike test': 'Sudden surge of traffic to test resilience.',\n 'chaos test': 'Randomly breaking things to test recovery.',\n 'fuzz test': 'Random input to find crashes and errors.',\n 'property-based test': 'Testing with randomly generated inputs.',\n 'snapshot test': 'Comparing output to a saved baseline.',\n 'golden master': 'Approved output used for comparison.',\n 'test double': 'Fake object used in place of a real one.',\n 'mock': 'Fake that verifies how it was called.',\n 'stub': 'Fake that returns predetermined values.',\n 'spy': 'Records calls for later verification.',\n 'fake': 'Working implementation for testing.',\n 'fixture': 'Setup data for tests.',\n 'test isolation': 'Tests do not affect each other.',\n 'test pyramid': 'Many unit tests, fewer integration, fewest e2e.',\n 'test diamond': 'More integration tests than unit or e2e.',\n 'test trophy': 'Prioritizing integration tests.',\n 'arrange act assert': 'Common pattern for structuring tests.',\n 'given when then': 'BDD pattern for describing behavior.',\n 'test driven development': 'Writing tests before code.',\n 'behavior driven development': 'Tests describe desired behavior.',\n 'mutation testing': 'Changing code to verify tests catch it.',\n 'static analysis': 'Examining code without running it to find issues.',\n 'dynamic analysis': 'Analyzing code while it runs to find issues.',\n 'fuzzing': 'Sending random inputs to crash or confuse software.',\n 'linter': 'Tool that checks code for style and errors.',\n 'formatter': 'Tool that automatically fixes code style.',\n 'type checker': 'Tool that verifies type correctness.',\n 'code smell': 'Sign that code might have deeper problems.',\n 'technical debt': 'Shortcuts that will cost time later.',\n 'refactoring': 'Improving code without changing behavior.',\n 'dead code': 'Code that is never executed.',\n 'unreachable code': 'Code that cannot possibly run.',\n 'cyclomatic complexity': 'Measure of code path complexity.',\n 'cognitive complexity': 'How hard code is to understand.',\n 'code coverage': 'Percentage of code exercised by tests.',\n 'branch coverage': 'Percentage of branches tested.',\n 'line coverage': 'Percentage of lines executed by tests.',\n 'path coverage': 'Percentage of execution paths tested.',\n\n // Programming Concepts\n 'immutability': 'Once created, data is not changed in place.',\n 'side effect': 'State change outside a function\\'s main purpose.',\n 'pure function': 'No side effects; same input gives same output.',\n 'serialization': 'Turning data into a format for storage or sending.',\n 'deserialization': 'Turning stored data back into objects.',\n 'least astonishment': 'Design so behavior matches user expectations.',\n 'abstraction': 'Hiding complexity behind a simple interface.',\n 'encapsulation': 'Bundling data with methods that access it.',\n 'inheritance': 'Creating new classes based on existing ones.',\n 'polymorphism': 'Same interface for different types.',\n 'composition': 'Building objects from smaller pieces.',\n 'composition over inheritance': 'Prefer combining objects over extending classes.',\n 'interface': 'Contract defining what an object can do.',\n 'abstract class': 'Class that cannot be instantiated directly.',\n 'concrete class': 'Class that can be instantiated.',\n 'mixin': 'Reusable class that adds functionality.',\n 'trait': 'Collection of methods to share across classes.',\n 'closure': 'Function that remembers variables from its scope.',\n 'higher-order function': 'Function that takes or returns functions.',\n 'first-class function': 'Functions treated as values.',\n 'currying': 'Converting multi-argument function to a chain.',\n 'partial application': 'Fixing some arguments to create a new function.',\n 'recursion': 'Function that calls itself.',\n 'tail recursion': 'Recursive call is the last operation.',\n 'iteration': 'Repeating code with loops.',\n 'generator': 'Function that yields values one at a time.',\n 'iterator': 'Object that produces a sequence of values.',\n 'iterable': 'Object that can be looped over.',\n 'comprehension': 'Compact syntax for creating collections.',\n 'map function': 'Apply a function to each element.',\n 'filter function': 'Keep elements that pass a test.',\n 'reduce function': 'Combine elements into a single value.',\n 'fold': 'Process elements left to right or right to left.',\n 'zip': 'Combine elements from multiple lists.',\n 'flatmap': 'Map then flatten nested results.',\n 'optional': 'Container that might be empty.',\n 'null safety': 'Language features to prevent null errors.',\n 'monad': 'Container type with chaining rules.',\n 'functor': 'Container type that can be mapped over.',\n 'lens': 'Composable getter and setter.',\n 'pattern matching': 'Checking data against patterns.',\n 'destructuring': 'Extracting values from structures.',\n 'spread operator': 'Expanding an array or object.',\n 'rest parameters': 'Collecting extra arguments into an array.',\n 'variadic function': 'Function accepting any number of arguments.',\n 'overloading': 'Same name for functions with different parameters.',\n 'operator overloading': 'Custom meaning for operators.',\n 'reflection': 'Code examining or modifying itself at runtime.',\n 'introspection': 'Examining object properties at runtime.',\n 'metaprogramming': 'Code that writes or modifies code.',\n 'macro': 'Code that generates code at compile time.',\n 'annotation': 'Metadata attached to code elements.',\n 'decorator pattern': 'Wrapping objects to add behavior.',\n 'aspect-oriented programming': 'Separating cross-cutting concerns.',\n 'duck typing': 'If it quacks like a duck, treat it as one.',\n 'structural typing': 'Types based on shape, not name.',\n 'nominal typing': 'Types based on declared name.',\n 'covariance': 'Subtype can be used where supertype expected.',\n 'contravariance': 'Supertype can be used where subtype expected.',\n 'invariance': 'Type must match exactly.',\n 'generics': 'Types parameterized by other types.',\n 'type erasure': 'Generic type info removed at runtime.',\n 'reification': 'Type info kept at runtime.',\n 'type inference': 'Compiler figures out types automatically.',\n 'type alias': 'New name for an existing type.',\n 'union type': 'Value can be one of several types.',\n 'intersection type': 'Value has all properties of multiple types.',\n 'literal type': 'Type that is a specific value.',\n 'branded type': 'Type distinguished by a tag.',\n 'opaque type': 'Type whose internals are hidden.',\n 'escape hatch': 'Way to bypass normal restrictions.',\n 'shadow it': 'Teams using tools without IT approval.',\n 'heap dump': 'Snapshot of memory for debugging leaks.',\n 'core dump': 'Snapshot of a crashed process for debugging.',\n\n // Data Structures\n 'array': 'Indexed collection of elements.',\n 'linked list': 'Elements connected by pointers.',\n 'doubly linked list': 'Links point forward and backward.',\n 'stack': 'Last in, first out collection.',\n 'queue': 'First in, first out collection.',\n 'deque': 'Double-ended queue.',\n 'priority queue': 'Elements sorted by priority.',\n 'heap data structure': 'Tree where parent is always greater or less than children.',\n 'binary tree': 'Each node has at most two children.',\n 'binary search tree': 'Binary tree where left is less, right is greater.',\n 'balanced tree': 'Tree that stays roughly symmetric.',\n 'avl tree': 'Self-balancing binary search tree.',\n 'red-black tree': 'Self-balancing tree with color rules.',\n 'b-tree': 'Tree optimized for disk access.',\n 'trie': 'Tree for storing strings by prefix.',\n 'suffix tree': 'Tree of all suffixes for fast searching.',\n 'hash table': 'Fast lookup by computing a key\\'s hash.',\n 'hash collision': 'Two keys produce the same hash.',\n 'open addressing': 'Finding another slot when collision occurs.',\n 'chaining': 'Storing collisions in a linked list.',\n 'bloom filter': 'Compact structure to test membership with false positives.',\n 'set': 'Collection of unique elements.',\n 'multiset': 'Set that allows duplicates.',\n 'map data structure': 'Collection of key-value pairs.',\n 'multimap': 'Map with multiple values per key.',\n 'graph': 'Nodes connected by edges.',\n 'directed graph': 'Edges have a direction.',\n 'undirected graph': 'Edges go both ways.',\n 'weighted graph': 'Edges have values.',\n 'adjacency list': 'Graph stored as lists of neighbors.',\n 'adjacency matrix': 'Graph stored as a 2D array.',\n 'spanning tree': 'Tree that connects all graph nodes.',\n 'topological sort': 'Ordering respecting dependencies.',\n 'cycle detection': 'Finding loops in a graph.',\n 'shortest path': 'Finding the minimum distance between nodes.',\n 'ring buffer': 'Fixed-size circular queue.',\n 'skip list': 'Layered linked list for fast search.',\n 'lru cache': 'Discards least recently used items.',\n 'lfu cache': 'Discards least frequently used items.',\n 'consistent hashing': 'Distributes data with minimal remapping.',\n 'merkle tree': 'Tree of hashes for verifying data.',\n 'dag': 'Directed acyclic graph; no cycles.',\n 'sparse array': 'Array with mostly empty slots.',\n 'bit array': 'Compact array of boolean values.',\n 'bitmap index': 'Fast lookups using bit arrays.',\n 'inverted index': 'Maps words to documents containing them.',\n 'rope': 'Efficient string for edits in the middle.',\n 'gap buffer': 'Efficient string storage for editing.',\n 'immutable data structure': 'Data structure that cannot be changed.',\n 'persistent data structure': 'Old versions remain after updates.',\n 'concurrent data structure': 'Safe for multiple threads.',\n 'lock-free data structure': 'Works without locks.',\n};\n\nexport function lookupTerm(term: string): string | null {\n const key = term.toLowerCase().trim();\n return GLOSSARY[key] ?? null;\n}\n\nexport function hasMinimumTerms(min = 100): boolean {\n return Object.keys(GLOSSARY).length >= min;\n}\n","export interface RiskTemplateData {\n file?: string;\n riskLevel: string;\n reasons: string[];\n}\n\nexport interface PatternTemplateData {\n file: string;\n pattern: string;\n confidence?: number;\n}\n\nexport interface IncidentTemplateData {\n description: string;\n severity: string;\n when: string;\n}\n\nexport interface RecommendationData {\n recommendation: string;\n}\n\nfunction joinReasons(reasons: string[]): string {\n if (!reasons.length) return 'No specific reasons provided.';\n if (reasons.length === 1) return reasons[0] ?? 'No specific reasons provided.';\n const last = reasons.pop();\n return `${reasons.join(', ')} and ${last}`;\n}\n\nexport function riskWarningTemplate(data: RiskTemplateData): string {\n const filePart = data.file ? ` for ${data.file}` : '';\n return `Risk ${data.riskLevel}${filePart}: ${joinReasons(data.reasons)}.`;\n}\n\nexport function patternWarningTemplate(data: PatternTemplateData): string {\n const confidence = data.confidence !== undefined ? ` (confidence ${Math.round(data.confidence)}%)` : '';\n return `Pattern match${confidence} in ${data.file}: ${data.pattern}.`;\n}\n\nexport function incidentReferenceTemplate(data: IncidentTemplateData): string {\n return `Previous incident (${data.severity}) on ${data.when}: ${data.description}.`;\n}\n\nexport function recommendationTemplate(data: RecommendationData): string {\n return `Next step: ${data.recommendation}`;\n}\n","import type { IncidentNode } from '../context/nodes.js';\n\nfunction formatDate(dateIso: string): string {\n try {\n const d = new Date(dateIso);\n return d.toLocaleDateString(undefined, { month: 'short', day: 'numeric' });\n } catch {\n return dateIso;\n }\n}\n\nexport function formatIncidentEvidence(incidents: IncidentNode[], limit = 3): string {\n if (!incidents.length) return '';\n const sorted = [...incidents].sort(\n (a, b) => new Date(b.data.timestamp).getTime() - new Date(a.data.timestamp).getTime()\n );\n const items = sorted.slice(0, limit).map((inc) => {\n const when = formatDate(inc.data.timestamp);\n return `• ${when}: ${inc.data.description}`;\n });\n return items.join('\\n');\n}\n","import type { IncidentNode, PatternNode } from '../context/nodes.js';\nimport type { Reasoning } from '../agent/reason.js';\nimport { lookupTerm, GLOSSARY } from './glossary.js';\nimport {\n incidentReferenceTemplate,\n patternWarningTemplate,\n recommendationTemplate,\n riskWarningTemplate\n} from './templates.js';\nimport { formatIncidentEvidence } from './evidence.js';\n\nexport interface TranslationContext {\n file?: string;\n incidents?: IncidentNode[];\n patterns?: PatternNode[];\n riskLevel?: string;\n reasons?: string[];\n}\n\nexport interface TranslationResult {\n summary: string;\n whatIFound: string;\n howBad: string;\n whatToDo: string;\n}\n\nfunction replaceGlossaryTerms(text: string): string {\n let result = text;\n for (const term of Object.keys(GLOSSARY)) {\n const definition = lookupTerm(term);\n if (!definition) continue;\n const regex = new RegExp(`\\\\b${term}\\\\b`, 'ig');\n result = result.replace(regex, `${term} (${definition})`);\n }\n return result;\n}\n\nfunction buildSummary(ctx: TranslationContext): string {\n const risk = ctx.riskLevel ?? 'unknown';\n return riskWarningTemplate({\n file: ctx.file ?? 'your changes',\n riskLevel: risk,\n reasons: ctx.reasons ?? []\n });\n}\n\nfunction buildWhatIFound(ctx: TranslationContext): string {\n const parts: string[] = [];\n const first = ctx.patterns?.[0];\n if (first) {\n parts.push(\n patternWarningTemplate({\n file: ctx.file ?? 'the change',\n pattern: first.data.description,\n confidence: first.data.confidence\n })\n );\n } else {\n parts.push('I saw changes that may affect important code paths.');\n }\n return parts.join(' ');\n}\n\nfunction buildHowBad(ctx: TranslationContext): string {\n const parts: string[] = [];\n const level = ctx.riskLevel ?? 'unknown';\n parts.push(`Overall risk is ${level}.`);\n\n const incident = ctx.incidents?.[0];\n if (incident) {\n parts.push(\n incidentReferenceTemplate({\n description: incident.data.description,\n severity: incident.data.severity,\n when: incident.data.timestamp\n })\n );\n\n const evidence = formatIncidentEvidence(ctx.incidents ?? []);\n if (evidence) {\n parts.push('What happened before:\\n' + evidence);\n }\n }\n\n return parts.join(' ');\n}\n\nfunction buildWhatToDo(recommendation: string): string {\n return recommendationTemplate({ recommendation });\n}\n\nexport function translateTechnicalMessage(message: string, ctx: TranslationContext = {}): TranslationResult {\n // Apply glossary term replacements to the message for context\n void replaceGlossaryTerms(message);\n return {\n summary: buildSummary(ctx),\n whatIFound: buildWhatIFound(ctx),\n howBad: buildHowBad(ctx),\n whatToDo: buildWhatToDo(ctx.reasons?.[0] ?? 'Follow the recommended mitigation.')\n };\n}\n\nexport function translateReasoning(reasoning: Reasoning): TranslationResult & { original: Reasoning } {\n const firstFile = reasoning.files[0];\n const ctx: TranslationContext = {\n incidents: reasoning.relevantIncidents,\n patterns: reasoning.matchedPatterns,\n riskLevel: reasoning.riskLevel,\n reasons: firstFile?.reasons ?? []\n };\n if (firstFile?.file) ctx.file = firstFile.file;\n\n const translated = translateTechnicalMessage(reasoning.explanation, ctx);\n return {\n ...translated,\n howBad: `${translated.howBad} ${replaceGlossaryTerms(reasoning.explanation)}`,\n whatToDo: buildWhatToDo(reasoning.recommendation),\n original: reasoning\n };\n}\n","import type { Reasoning } from '../agent/reason.js';\nimport { translateReasoning, type TranslationResult } from './translator.js';\n\nexport { GLOSSARY, lookupTerm, hasMinimumTerms } from './glossary.js';\nexport {\n riskWarningTemplate,\n patternWarningTemplate,\n incidentReferenceTemplate,\n recommendationTemplate\n} from './templates.js';\nexport { translateReasoning, translateTechnicalMessage } from './translator.js';\nexport { formatIncidentEvidence } from './evidence.js';\n\nexport interface HumanizedReasoning extends TranslationResult {\n original: Reasoning;\n}\n\nexport function humanizeReasoning(reasoning: Reasoning): HumanizedReasoning {\n return translateReasoning(reasoning);\n}\n"],"mappings":";;;AAGO,IAAM,WAAmC;AAAA;AAAA,EAE9C,iBAAiB;AAAA,EACjB,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,aAAa;AAAA,EACb,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,2BAA2B;AAAA,EAC3B,8BAA8B;AAAA,EAC9B,oCAAoC;AAAA,EACpC,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB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U;AAAA,IACpB,WAAW,UAAU;AAAA,IACrB,SAAS,WAAW,WAAW,CAAC;AAAA,EAClC;AACA,MAAI,WAAW,KAAM,KAAI,OAAO,UAAU;AAE1C,QAAM,aAAa,0BAA0B,UAAU,aAAa,GAAG;AACvE,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,GAAG,WAAW,MAAM,IAAI,qBAAqB,UAAU,WAAW,CAAC;AAAA,IAC3E,UAAU,cAAc,UAAU,cAAc;AAAA,IAChD,UAAU;AAAA,EACZ;AACF;;;ACtGO,SAAS,kBAAkB,WAA0C;AAC1E,SAAO,mBAAmB,SAAS;AACrC;","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GitHubIngester
|
|
3
|
-
} from "./chunk-YOJGSRZK.js";
|
|
4
|
-
import "./chunk-NKHO34UZ.js";
|
|
5
|
-
import "./chunk-SH7H3WRU.js";
|
|
6
|
-
import "./chunk-APMV77PU.js";
|
|
7
|
-
import "./chunk-DGUM43GV.js";
|
|
8
|
-
export {
|
|
9
|
-
GitHubIngester
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=github-ingester-J2ZFYXVE.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LinearIngester
|
|
3
|
-
} from "./chunk-LD7ZEFNY.js";
|
|
4
|
-
import "./chunk-NKHO34UZ.js";
|
|
5
|
-
import "./chunk-SH7H3WRU.js";
|
|
6
|
-
import "./chunk-APMV77PU.js";
|
|
7
|
-
import "./chunk-DGUM43GV.js";
|
|
8
|
-
export {
|
|
9
|
-
LinearIngester
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=linear-ingester-JRDQAIAA.js.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TrieAgent,
|
|
3
|
-
getTrieAgent
|
|
4
|
-
} from "./chunk-GAL7OIYU.js";
|
|
5
|
-
import "./chunk-ILGMFND2.js";
|
|
6
|
-
import "./chunk-72KSLD7A.js";
|
|
7
|
-
import "./chunk-OTQEFXHU.js";
|
|
8
|
-
import "./chunk-B2AHQ2IR.js";
|
|
9
|
-
import "./chunk-FG467PDD.js";
|
|
10
|
-
import "./chunk-FH335WL5.js";
|
|
11
|
-
import "./chunk-FPEMP54L.js";
|
|
12
|
-
import "./chunk-CU5VDH6F.js";
|
|
13
|
-
import "./chunk-QH77RQB3.js";
|
|
14
|
-
import "./chunk-EFWVF6TI.js";
|
|
15
|
-
import "./chunk-F4NJ4CBP.js";
|
|
16
|
-
import "./chunk-IXO4G4D3.js";
|
|
17
|
-
import "./chunk-6NLHFIYA.js";
|
|
18
|
-
import "./chunk-ZUEAHFSY.js";
|
|
19
|
-
import "./chunk-43X6JBEM.js";
|
|
20
|
-
import "./chunk-SH7H3WRU.js";
|
|
21
|
-
import "./chunk-APMV77PU.js";
|
|
22
|
-
import "./chunk-DGUM43GV.js";
|
|
23
|
-
export {
|
|
24
|
-
TrieAgent,
|
|
25
|
-
getTrieAgent
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=trie-agent-ET3DAP5Y.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getSkillRegistry
|
|
3
|
-
} from "../chunk-G76DYVGX.js";
|
|
4
|
-
import "../chunk-APMV77PU.js";
|
|
5
|
-
import "../chunk-DGUM43GV.js";
|
|
6
|
-
|
|
7
|
-
// src/workers/agent-worker.ts
|
|
8
|
-
import { parentPort, workerData } from "worker_threads";
|
|
9
|
-
process.env.TRIE_WORKER = "true";
|
|
10
|
-
var data = workerData;
|
|
11
|
-
async function run() {
|
|
12
|
-
try {
|
|
13
|
-
const registry = getSkillRegistry();
|
|
14
|
-
const skill = registry.getSkill(data.agentName);
|
|
15
|
-
if (!skill) {
|
|
16
|
-
throw new Error(`Skill not found: ${data.agentName}`);
|
|
17
|
-
}
|
|
18
|
-
const result = await skill.scan(data.files, data.context);
|
|
19
|
-
parentPort?.postMessage({ type: "result", result });
|
|
20
|
-
} catch (error) {
|
|
21
|
-
parentPort?.postMessage({
|
|
22
|
-
type: "error",
|
|
23
|
-
error: error instanceof Error ? error.message : String(error)
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
run();
|
|
28
|
-
//# sourceMappingURL=agent-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/workers/agent-worker.ts"],"sourcesContent":["import { parentPort, workerData } from 'worker_threads';\nimport { getSkillRegistry } from '../skills/built-in/registry.js';\n\n// Mark this as a worker thread to suppress duplicate logging\nprocess.env.TRIE_WORKER = 'true';\n\ntype WorkerPayload = {\n agentName: string;\n files: string[];\n context: {\n workingDir: string;\n projectType?: string;\n framework?: string;\n language?: string;\n configPath?: string;\n config?: {\n timeoutMs?: number;\n };\n };\n};\n\nconst data = workerData as WorkerPayload;\n\nasync function run() {\n try {\n const registry = getSkillRegistry();\n // Custom skills have been removed - registry is now empty\n\n const skill = registry.getSkill(data.agentName);\n if (!skill) {\n throw new Error(`Skill not found: ${data.agentName}`);\n }\n\n const result = await skill.scan(data.files, data.context);\n parentPort?.postMessage({ type: 'result', result });\n } catch (error) {\n parentPort?.postMessage({\n type: 'error',\n error: error instanceof Error ? error.message : String(error)\n });\n }\n}\n\nrun();\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY,kBAAkB;AAIvC,QAAQ,IAAI,cAAc;AAiB1B,IAAM,OAAO;AAEb,eAAe,MAAM;AACnB,MAAI;AACF,UAAM,WAAW,iBAAiB;AAGlC,UAAM,QAAQ,SAAS,SAAS,KAAK,SAAS;AAC9C,QAAI,CAAC,OAAO;AACV,YAAM,IAAI,MAAM,oBAAoB,KAAK,SAAS,EAAE;AAAA,IACtD;AAEA,UAAM,SAAS,MAAM,MAAM,KAAK,KAAK,OAAO,KAAK,OAAO;AACxD,gBAAY,YAAY,EAAE,MAAM,UAAU,OAAO,CAAC;AAAA,EACpD,SAAS,OAAO;AACd,gBAAY,YAAY;AAAA,MACtB,MAAM;AAAA,MACN,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAAA,IAC9D,CAAC;AAAA,EACH;AACF;AAEA,IAAI;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|