openai / openai-agents-js
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
mdx
mjs
npmrc
prisma
jsonc
prettierignore
  • 22 extensions are included in analyses: ts, mdx, json, md, tsx, mjs, yaml, svg, npmrc, gitignore, sh, css, cjs, txt, js, html, ps1, prisma, dockerfile, toml, jsonc, prettierignore
  • 2 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (6 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (293 files).
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main84004 LOC (39%) 304 files
test102944 LOC (48%) 212 files
generated0 LOC (0%) 0 files
build and deployment618 LOC (<1%) 9 files
other23924 LOC (11%) 378 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 304 files match defined criteria (84,004 LOC, 100.0% vs. main code):
    • 277 *.ts files (81,169 LOC)
    • 13 *.mjs files (2,757 LOC)
    • 11 *.yaml files (46 LOC)
    • 1 *.js files (24 LOC)
    • 1 *.ps1 files (5 LOC)
    • 1 *.toml files (3 LOC)
  • " *.ts" is biggest, containing 96.63% of LOC.
  • " *.toml" is smallest, containing 0% of LOC.


*.ts81169 LOC (96%) 277 files
*.mjs2757 LOC (3%) 13 files
*.yaml46 LOC (<1%) 11 files
*.js24 LOC (<1%) 1 file
*.ps15 LOC (<1%) 1 file
*.toml3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
jsonc
npmrc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/vitest[.].*".
  • 212 files match defined criteria (102,944 LOC, 122.5% vs. main code):
    • 184 *.ts files (102,046 LOC)
    • 7 *.mjs files (641 LOC)
    • 4 *.cjs files (92 LOC)
    • 2 *.gitignore files (49 LOC)
    • 1 *.jsonc files (44 LOC)
    • 2 *.tsx files (37 LOC)
    • 10 *.npmrc files (20 LOC)
    • 1 *.html files (11 LOC)
    • 1 *.yaml files (4 LOC)
  • " *.ts" is biggest, containing 99.13% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.ts102046 LOC (99%) 184 files
*.mjs641 LOC (<1%) 7 files
*.cjs92 LOC (<1%) 4 files
*.gitignore49 LOC (<1%) 2 files
*.jsonc44 LOC (<1%) 1 file
*.tsx37 LOC (<1%) 2 files
*.npmrc20 LOC (<1%) 10 files
*.html11 LOC (<1%) 1 file
*.yaml4 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
npmrc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 9 files match defined criteria (618 LOC, 0.7% vs. main code):
    • 4 *.sh files (476 LOC)
    • 1 *.gitignore files (115 LOC)
    • 2 *.yaml files (23 LOC)
    • 1 *.prettierignore files (3 LOC)
    • 1 *.npmrc files (1 LOC)
  • " *.sh" is biggest, containing 77.02% of LOC.
  • " *.npmrc" is smallest, containing 0.16% of LOC.


*.sh476 LOC (77%) 4 files
*.gitignore115 LOC (18%) 1 file
*.yaml23 LOC (3%) 2 files
*.prettierignore3 LOC (<1%) 1 file
*.npmrc1 LOC (<1%) 1 file
Other Code
prisma
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]mdx".
  • 378 files match defined criteria (23,924 LOC, 28.5% vs. main code):
    • 148 *.ts files (12,757 LOC)
    • 86 *.md files (6,548 LOC)
    • 30 *.tsx files (2,175 LOC)
    • 92 *.json files (2,081 LOC)
    • 3 *.css files (140 LOC)
    • 5 *.gitignore files (90 LOC)
    • 1 *.html files (45 LOC)
    • 2 *.txt files (30 LOC)
    • 1 *.prisma files (29 LOC)
    • 2 *.sh files (15 LOC)
    • 2 *.mjs files (8 LOC)
    • 6 *.svg files (6 LOC)
  • " *.ts" is biggest, containing 53.32% of LOC.
  • " *.svg" is smallest, containing 0.03% of LOC.


*.ts12757 LOC (53%) 148 files
*.md6548 LOC (27%) 86 files
*.tsx2175 LOC (9%) 30 files
*.json2081 LOC (8%) 92 files
*.css140 LOC (<1%) 3 files
*.gitignore90 LOC (<1%) 5 files
*.html45 LOC (<1%) 1 file
*.txt30 LOC (<1%) 2 files
*.prisma29 LOC (<1%) 1 file
*.sh15 LOC (<1%) 2 files
*.mjs8 LOC (<1%) 2 files
*.svg6 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.mjs files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.ps1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.toml files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2026-06-24 10:39