Official JavaScript / TypeScript library for the OpenAI API
This report summarizes scanner evidence for openai/openai-node, a TypeScript project with 11,214 GitHub stars. SynthScan examined 381,820 lines of code across 1104 source files, recording 870 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 11.7 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 513 finding(s).
Are imports declared and package/API names verified? 357 finding(s).
Are wrappers, guards, and repeated structures necessary? 430 finding(s).
Which changes need focused human review? 870 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 870 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | MIGRATION.md | 65 | - `client.beta.threads.runs.steps.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 66 | - `client.beta.threads.runs.steps.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 70 | - `client.admin.organization.users.roles.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 71 | - `client.admin.organization.users.roles.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 72 | - `client.admin.organization.groups.users.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 73 | - `client.admin.organization.groups.users.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 74 | - `client.admin.organization.groups.roles.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 75 | - `client.admin.organization.groups.roles.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 76 | - `client.admin.organization.projects.users.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 77 | - `client.admin.organization.projects.users.update()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 78 | - `client.admin.organization.projects.users.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 79 | - `client.admin.organization.projects.users.roles.create()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 80 | - `client.admin.organization.projects.users.roles.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 81 | - `client.admin.organization.projects.users.roles.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 82 | - `client.admin.organization.projects.users.roles.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 83 | - `client.admin.organization.projects.serviceAccounts.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 84 | - `client.admin.organization.projects.serviceAccounts.update()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 85 | - `client.admin.organization.projects.serviceAccounts.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 86 | - `client.admin.organization.projects.serviceAccounts.apiKeys.create()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 87 | - `client.admin.organization.projects.apiKeys.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 88 | - `client.admin.organization.projects.apiKeys.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 89 | - `client.admin.organization.projects.rateLimits.updateRateLimit()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 90 | - `client.admin.organization.projects.groups.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 91 | - `client.admin.organization.projects.groups.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 92 | - `client.admin.organization.projects.groups.roles.create()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 93 | - `client.admin.organization.projects.groups.roles.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 94 | - `client.admin.organization.projects.groups.roles.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 95 | - `client.admin.organization.projects.groups.roles.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 96 | - `client.admin.organization.projects.roles.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 97 | - `client.admin.organization.projects.roles.update()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 98 | - `client.admin.organization.projects.roles.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 99 | - `client.admin.organization.projects.spendAlerts.retrieve()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 100 | - `client.admin.organization.projects.spendAlerts.update()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 101 | - `client.admin.organization.projects.spendAlerts.delete()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 175 | - `client.admin.organization.users.roles.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 177 | - `client.admin.organization.groups.users.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 178 | - `client.admin.organization.groups.roles.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 184 | - `client.admin.organization.projects.users.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 185 | - `client.admin.organization.projects.serviceAccounts.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 186 | - `client.admin.organization.projects.apiKeys.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 187 | - `client.admin.organization.projects.rateLimits.listRateLimits()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 188 | - `client.admin.organization.projects.groups.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 189 | - `client.admin.organization.projects.roles.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 190 | - `client.admin.organization.projects.spendAlerts.list()` | CODE |
| CRITICAL⚡ | MIGRATION.md | 191 | - `client.admin.organization.projects.certificates.list()` | CODE |
| CRITICAL | tests/lib/root-turn-items-pagination.test.ts | 45 | const result = client.beta.agents.sessions.turns.items.list('turn_test', { | CODE |
| CRITICAL | tests/lib/environment-files-legacy-options.test.ts | 20 | client.beta.agents.environments.files.list(...args); | CODE |
| CRITICAL | tests/lib/environment-files-legacy-options.test.ts | 38 | await client.beta.agents.environments.files.list('env_test', query, { | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 166 | const prepared = await client.beta.agents.environments.files.prepare( | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 187 | client.beta.agents.environments.files.prepare({ [path]: new File(['a'], 'a') }), | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 194 | const prepare = client.beta.agents.environments.files.prepare.bind(client.beta.agents.environments.files); | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 207 | client.beta.agents.environments.files.prepare(Object.fromEntries(paths.map((path) => [path, file]))), | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 214 | const prepared = await client.beta.agents.environments.files.prepare( | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 232 | const prepared = await client.beta.agents.environments.files.prepare({ '/workspace/a': stream }); | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 244 | const prepared = await client.beta.agents.environments.files.prepare(files); | CODE |
| CRITICAL⚡ | tests/lib/agent-files.test.ts | 280 | await expect(client.beta.agents.environments.files.prepare(files)).rejects.toThrow('Idempotency-Key'); | CODE |
| CRITICAL⚡ | tests/lib/agent-files.test.ts | 282 | await client.beta.agents.environments.files.prepare(files, { headers: { 'Idempotency-Key': null } }); | CODE |
| CRITICAL⚡ | tests/lib/agent-files.test.ts | 289 | const prepared = client.beta.agents.environments.files.prepare( | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 306 | await client.beta.agents.environments.files.prepare( | CODE |
| CRITICAL | tests/lib/agent-files.test.ts | 336 | const result = await client.beta.agents.environments.files.upload( | CODE |
| 279 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ecosystem-tests/cli.ts | 35 | async function writeCloudflareCredentialFile( | CODE |
| LOW | ecosystem-tests/cli.ts | 51 | async function readCloudflareCredentialSnapshot( | CODE |
| LOW | ecosystem-tests/cli.ts | 82 | function cloudflareCredentialMatchesIdentity( | CODE |
| LOW | ecosystem-tests/cli.ts | 97 | function unlinkCloudflareCredentialArtifact(candidate: string, identity: CloudflareCredentialIdentity): void { | CODE |
| LOW | ecosystem-tests/cli.ts | 104 | async function withCloudflareCredentials(apiKey: string, runLiveTest: () => Promise<void>): Promise<void> { | CODE |
| LOW | …osystem-tests/vercel-edge/src/uploadWebApiTestCases.ts | 147 | async function expectAndDeleteUploadedFile(file: { filename: string; id: string }) { | CODE |
| LOW | tests/responsesItems.test.ts | 12 | function isInputCompatibleOutputItem( | CODE |
| LOW | …ystem-cloudflare-credential-lifecycle-security.test.ts | 179 | function holdOriginalCredentialDescriptor(fixture: Fixture): string { | CODE |
| LOW | …ystem-cloudflare-credential-lifecycle-security.test.ts | 210 | function expectNoCloudflareCredentialArtifacts(fixture: Fixture) { | CODE |
| LOW | tests/bedrock-websocket-security.test.ts | 60 | function expectPrivateBedrockCredentialFailure(failure: unknown, credential: string): void { | CODE |
| LOW | tests/bedrock-websocket-security.test.ts | 96 | function createUnauthenticatedClient(): OpenAI { | CODE |
| LOW | …ts/auth/azure-imds-rejected-response-lifecycle.test.ts | 38 | async function expectPrivateAzureFailure(operation: () => Promise<unknown>, status: number): Promise<void> { | CODE |
| LOW | …uth/workload-identity-success-response-privacy.test.ts | 158 | function withPrototypeTextOverride(response: Response, readText: () => Promise<string>): Response { | CODE |
| LOW | tests/auth/gcp-metadata-token-privacy.test.ts | 38 | function createMetadataFailureResponse(failure: MetadataFailure) { | CODE |
| LOW | tests/auth/gcp-metadata-token-privacy.test.ts | 47 | async function expectPrivateMetadataFailure( | CODE |
| LOW | tests/auth/azure-imds-success-response-privacy.test.ts | 24 | function createCauseFreeJSONFailure(privateValue: string): Error { | CODE |
| LOW | tests/auth/azure-imds-success-response-privacy.test.ts | 35 | function createCrossRealmJSONFailure(privateValue: string, wrapped = false): unknown { | CODE |
| LOW | tests/auth/azure-imds-success-response-privacy.test.ts | 65 | async function expectPrivateParseFailure( | CODE |
| LOW | …s/benchmarks/structured-output-and-embeddings.bench.ts | 241 | function assertEmbeddingDimensions(value: number[] | undefined): void { | CODE |
| LOW | tests/lib/bedrock-provider.test.ts | 119 | function trackedBedrockCredentials(baseURL = TRUSTED_BEDROCK_BASE_URL) { | CODE |
| LOW | tests/lib/ChatCompletionRunFunctions.test.ts | 57 | function mockStreamingChatCompletionFetch() { | CODE |
| LOW | tests/lib/assistant-stream-delta-error-privacy.test.ts | 215 | async function expectPrivateStreamFailure( | CODE |
| LOW | tests/lib/bedrock-provider-bearer-cancellation.test.ts | 90 | async function expectImmediateCancellation( | CODE |
| LOW | tests/lib/structured-output-parse-privacy.test.ts | 202 | function createStreamingToolClient(content: string | readonly string[], tool: ChatCompletionFunctionTool) { | CODE |
| LOW | tests/lib/structured-output-parse-privacy.test.ts | 264 | function createStreamingContentClient( | CODE |
| LOW | …/lib/response-stream-unsupported-event-privacy.test.ts | 256 | const getter = vi.fn(function recordOriginalEventReceiver(this: typeof event) { | CODE |
| LOW | tests/lib/bedrock-bearer-credential-privacy.test.ts | 119 | async function expectPrivateCredentialFailure( | CODE |
| LOW | tests/helpers/standard-schema-security.test.ts | 11 | function strictSchemasForAllHelpers(jsonSchema: Record<string, unknown>) { | CODE |
| LOW | tests/helpers/standard-schema-security.test.ts | 35 | function makePrototypeManipulationSchema(): Record<string, unknown> { | CODE |
| LOW | tests/helpers/standard-schema-security.test.ts | 43 | function expectPrototypeSafeClosedSchema(schema: Record<string, unknown>) { | CODE |
| LOW | tests/helpers/zod.test.ts | 77 | function expectDefinitionRefsToResolve(schema: Record<string, unknown>) { | CODE |
| LOW | tests/helpers/standard-schema.test.ts | 86 | function makeStrictSchemaFactories(jsonSchema: Record<string, unknown>) { | CODE |
| LOW | tests/helpers/standard-schema.test.ts | 105 | function strictSchemasForAllHelpers(jsonSchema: Record<string, unknown>) { | CODE |
| LOW | scripts/mock-server-fetch.ts | 4 | export function bufferSteadyMultipartUploads( | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 60 | def test_trusted_report_recomputes_pr_output_in_a_bare_repository(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 163 | def test_fork_association_fallback_paginates_candidates(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 181 | def test_trusted_report_rejects_invalid_or_stale_association_before_fetch(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 246 | def test_queue_membership_uses_synthetic_commit_not_original_pr_ancestry(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 317 | def test_merge_queue_rule_is_required_before_passing(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 324 | def test_wrong_or_superseded_source_runs_fail_before_fetching(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 338 | def test_reuses_only_matching_main_job_report(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 364 | def test_queue_cannot_reuse_pr_measurement(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 370 | def test_evaluation_error_emits_failure_outputs_and_diagnostic_summary(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 425 | def test_queue_context_refuses_stale_checkout_before_fetching(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 432 | def test_github_uses_fresh_bare_data_repo_and_checks_current_head(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_github.py | 458 | def test_stale_pull_and_wrong_target_fail_before_objects_created(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 19 | def test_git_preserves_authentication_without_inherited_repository_routing(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 48 | def test_rust_and_python_hashes_match(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 72 | def test_reporting_script_can_be_a_mixed_file(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 82 | def test_hash_vector_and_exclusions(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 126 | def test_report_ignores_handwritten_files_and_shows_custom_patch(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 144 | def test_bad_hash_and_lost_checkpoint_fail(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 156 | def test_stats_symlink_is_rejected(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 165 | def test_public_snapshot_rejects_private_governance_and_unpublished_paths(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 196 | def test_zero_new_files_summary_reports_existing_changes(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 211 | def test_new_mixed_file_headline_includes_changed_generated_baselines(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 229 | def test_removals_include_changed_baselines_but_not_handwritten_only_files(self) -> None: | CODE |
| LOW | scripts/castiron/test_custom_code_report.py | 256 | def test_public_snapshot_has_no_private_history_and_reports_without_private_remote( | CODE |
| LOW⚡ | scripts/castiron/test_custom_code_budget.py | 32 | def test_additions_and_deletions_do_not_cancel(self) -> None: | CODE |
| LOW⚡ | scripts/castiron/test_custom_code_budget.py | 38 | def test_below_equal_and_above_limit(self) -> None: | CODE |
| 369 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ecosystem-tests/cloudflare-worker/tsconfig.json | 21 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when tar | COMMENT |
| LOW | ecosystem-tests/cloudflare-worker/tsconfig.json | 41 | "allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from th | COMMENT |
| LOW | ecosystem-tests/cloudflare-worker/tsconfig.json | 61 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output | COMMENT |
| LOW | ecosystem-tests/cloudflare-worker/tsconfig.json | 81 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the r | COMMENT |
| LOW | ecosystem-tests/cloudflare-worker/wrangler.toml | 1 | name = "cfw" | COMMENT |
| LOW | ecosystem-tests/cloudflare-worker/wrangler.toml | 21 | # binding = "MY_BUCKET" | COMMENT |
| LOW | tests/qs/utils.test.ts | 21 | const oneMerged = merge({ foo: 'bar' }, { foo: { first: '123' } }); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 61 | stringify({ 'name.obj': { first: 'John', last: 'Doe' } }, { allowDots: true, encodeDotInKeys: false }), | COMMENT |
| LOW | tests/qs/stringify.test.ts | 81 | // { allowDots: true, encodeDotInKeys: false }, | COMMENT |
| LOW | tests/qs/stringify.test.ts | 141 | ), | COMMENT |
| LOW | tests/qs/stringify.test.ts | 181 | }); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 261 | // st.equal(stringify({ a: { b: 'c' } }, { allowDots: true }), 'a.b=c'); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 281 | // 'comma => comma', | COMMENT |
| LOW | tests/qs/stringify.test.ts | 341 | test('should throw when allowEmptyArrays is not of type boolean', () => { | COMMENT |
| LOW | tests/qs/stringify.test.ts | 401 | }); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 441 | // ); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 541 | COMMENT | |
| LOW | tests/qs/stringify.test.ts | 581 | ).toBe('a=%2C&a=&a=c%2Cd%25'); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 621 | stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'comma' }), | COMMENT |
| LOW | tests/qs/stringify.test.ts | 641 | // st.equal( | COMMENT |
| LOW | tests/qs/stringify.test.ts | 661 | // { a: ',', b: '', c: 'c,d%' }, | COMMENT |
| LOW | tests/qs/stringify.test.ts | 701 | COMMENT | |
| LOW | tests/qs/stringify.test.ts | 761 | // ), | COMMENT |
| LOW | tests/qs/stringify.test.ts | 801 | expect(stringify({ a: { b: ['c', 'd'] } }, { allowDots: true, encodeValuesOnly: true })).toBe( | COMMENT |
| LOW | tests/qs/stringify.test.ts | 821 | // ); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 841 | // st.equal( | COMMENT |
| LOW | tests/qs/stringify.test.ts | 861 | ); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 881 | // '???', | COMMENT |
| LOW | tests/qs/stringify.test.ts | 901 | }); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 921 | // ); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1021 | // ); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1061 | // st.equal( | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1121 | // with skipNulls | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1261 | COMMENT | |
| LOW | tests/qs/stringify.test.ts | 1281 | // }, | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1321 | }; | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1361 | 'filters[$and][function]=gte&filters[$and][arguments][function]=hour_of_day&filters[$and][arguments]=0&filters[$an | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1381 | // { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1461 | }); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1501 | // encoder: function (str) { | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1581 | // st['throws'](function () { | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1661 | }).toThrow(SyntaxError); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1701 | // return d.getTime(); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1801 | // ), | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1841 | // stringify({ a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, { arrayFormat: 'indices' }), | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1961 | expect(stringify({ KeY: 'vAlUe' }, { encoder })).toBe('key=VALUE'); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 1981 | // 'no array, indices', | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2001 | // 'a[b][0][c]=d&a[b][0][e]=f', | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2021 | // '???', | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2061 | // { encodeValuesOnly: true, arrayFormat: 'indices' }, | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2081 | ).toBe('a[1][b][2][c]=1'); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2121 | // stringify( | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2181 | // ); | COMMENT |
| LOW | tests/qs/stringify.test.ts | 2201 | }); | COMMENT |
| LOW | examples/chat-completions/stream-to-client-next.ts | 1 | import OpenAI from 'openai'; | COMMENT |
| LOW | examples/chat-completions/stream-to-client-express.ts | 1 | #!/usr/bin/env -S npm run tsn -- -T | COMMENT |
| LOW | examples/chat-completions/stream-to-client-express.ts | 81 | COMMENT | |
| LOW | examples/chat-completions/stream-to-client-raw.ts | 1 | #!/usr/bin/env -S npm run tsn -- -T | COMMENT |
| LOW | examples/chat-completions/stream-to-client-raw.ts | 81 | app.use(express.text()); | COMMENT |
| LOW | examples/chat-completions/tool-calls-stream.ts | 1 | #!/usr/bin/env -S npm run tsn -- -T | COMMENT |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/resources/content-provenance-checks.ts | 22 | * uploaded file. The content could still have been generated by OpenAI if the | COMMENT |
| HIGH | src/resources/content-provenance-checks.ts | 80 | * file. The content could still have been generated by OpenAI if the metadata was | COMMENT |
| HIGH | src/resources/content-provenance-checks.ts | 114 | * could still have been generated by OpenAI if the metadata was stripped or has | COMMENT |
| HIGH | src/resources/fine-tuning/jobs/jobs.ts | 740 | * through directly to WandB. Some default tags are generated by OpenAI: | COMMENT |
| HIGH | src/resources/fine-tuning/jobs/jobs.ts | 924 | * through directly to WandB. Some default tags are generated by OpenAI: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/castiron/custom_code_report.py | 6 | Hash v1: SHA256(domain || u64(entry count) || entries), where each entry is | STRING |
| HIGH | scripts/castiron/custom_code_report.py | 7 | u64(path length) || path bytes || six ASCII Git mode bytes || u64(blob length) | STRING |
| HIGH | scripts/castiron/test_custom_code_budget.py | 138 | '{"schema_version":1,"max_custom_patch_lines":null}', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/lib/ChatCompletionStream.ts | 1026 | // SAFETY: The fallback is a serialization scaffold: the code below installs the captured wire fields before the tool | COMMENT |
| MEDIUM | src/lib/responses/responses-websocket-accumulator.ts | 153 | // the selected entry. The caller-supplied wire scaffold may not be an array. | COMMENT |
| MEDIUM | src/lib/responses/responses-websocket-accumulator.ts | 228 | // oxlint-disable-next-line anti-slop/no-runtime-typeof -- The server identity on an MCP scaffold is raw data, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/lib/parser.test.ts | 93 | "content": "{"type":"form","label":"User Profile Form","children":[{"type":"field","label":"First Name","child | CODE |
| LOW | tests/lib/parser.test.ts | 108 | "name": "placeholder", | CODE |
| LOW | tests/lib/parser.test.ts | 127 | "name": "placeholder", | CODE |
| LOW | tests/lib/parser.test.ts | 146 | "name": "placeholder", | CODE |
| LOW | tests/lib/parser.test.ts | 630 | "content": "{"person1":{"name":"Jane Doe","phone_number":".","roles":["other"],"description":"Engineer at Open | CODE |
| LOW | tests/lib/parser.test.ts | 634 | "name": "Jane Doe", | CODE |
| LOW | tests/lib/response-accumulator-item-identity.test.ts | 406 | const replacement = makeOutput('message', 'placeholder'); | CODE |
| LOW | tests/lib/response-accumulator-item-identity.test.ts | 557 | const changing = makeOutput('reasoning', 'placeholder'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/castiron/custom_code_budget.py | 9 | CODE | |
| LOW | scripts/castiron/test_custom_code_github.py | 4 | CODE | |
| LOW | scripts/castiron/test_custom_code_report.py | 2 | CODE | |
| LOW | scripts/castiron/custom_code_report.py | 12 | CODE | |
| LOW | scripts/castiron/custom_code_test_support.py | 4 | CODE | |
| LOW | scripts/castiron/test_custom_code_budget.py | 3 | CODE | |
| LOW | scripts/castiron/test_custom_code_publication.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/castiron/test_custom_code_github.py | 60 | CODE | |
| LOW | scripts/castiron/test_custom_code_github.py | 181 | CODE | |
| LOW | scripts/castiron/test_custom_code_github.py | 338 | CODE | |
| LOW | scripts/castiron/custom_code_report.py | 598 | CODE | |
| LOW | scripts/castiron/custom_code_report.py | 950 | CODE | |
| LOW | scripts/castiron/test_custom_code_budget.py | 111 | CODE | |
| LOW | scripts/castiron/test_custom_code_publication.py | 44 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils/mock-fetch.ts | 53 | function handleRequest(handle: typeof fetch): Promise<void> { | CODE |
| LOW | tests/lib/ChatCompletionRunFunctions.test.ts | 34 | function handleRequest( | CODE |
| LOW | tests/lib/ChatCompletionRunFunctions.test.ts | 60 | function handleRequest( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/castiron/test_custom_code_publication.py | 313 | CODE |