circle-ir 3.165.0 → 3.166.0
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/dist/analysis/entry-point-detection.d.ts +28 -1
- package/dist/analysis/entry-point-detection.d.ts.map +1 -1
- package/dist/analysis/entry-point-detection.js +619 -13
- package/dist/analysis/entry-point-detection.js.map +1 -1
- package/dist/analysis/passes/interprocedural-pass.d.ts.map +1 -1
- package/dist/analysis/passes/interprocedural-pass.js +7 -1
- package/dist/analysis/passes/interprocedural-pass.js.map +1 -1
- package/dist/analysis/require-entry-path.d.ts +6 -2
- package/dist/analysis/require-entry-path.d.ts.map +1 -1
- package/dist/analysis/require-entry-path.js +86 -11
- package/dist/analysis/require-entry-path.js.map +1 -1
- package/dist/browser/circle-ir.js +435 -3
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
* - `taint-matcher.ts:218-237` — speculative source emission site.
|
|
97
97
|
* - `interprocedural-pass.ts:137-146` — engine's awareness comment.
|
|
98
98
|
*/
|
|
99
|
-
import type { TypeInfo, MethodInfo } from '../types/index.js';
|
|
99
|
+
import type { TypeInfo, MethodInfo, CallInfo, RuntimeRegistration } from '../types/index.js';
|
|
100
100
|
export type EntryPointTier = 'TIER_1_ENTRY_POINT' | 'TIER_2_REACHABLE' | 'TIER_3_LIBRARY_API' | 'TIER_UNKNOWN';
|
|
101
101
|
export interface EntryPointContext {
|
|
102
102
|
/** All TypeInfo records in this file. */
|
|
@@ -108,6 +108,33 @@ export interface EntryPointContext {
|
|
|
108
108
|
* follow-up; ship 1 classifies every non-Tier-1 method as Tier 3.
|
|
109
109
|
*/
|
|
110
110
|
callGraph?: unknown;
|
|
111
|
+
/**
|
|
112
|
+
* File path (`CircleIR.meta.file`) — used by the polyglot library-
|
|
113
|
+
* facade path heuristic for Python / JS-TS / Go / Bash where package
|
|
114
|
+
* metadata is thin. Java classification does not require this.
|
|
115
|
+
*
|
|
116
|
+
* Added 3.166.0 for cognium-dev #237 polyglot expansion.
|
|
117
|
+
*/
|
|
118
|
+
filePath?: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* All `CallInfo` records for the file (`CircleIR.calls`). Consumed by
|
|
121
|
+
* the Go classifier for the `http.HandleFunc` / gin / chi framework-
|
|
122
|
+
* registration walk (no runtime-registration extractor exists for Go
|
|
123
|
+
* — the classifier walks `ir.calls` inline).
|
|
124
|
+
*
|
|
125
|
+
* Added 3.166.0 for cognium-dev #237.
|
|
126
|
+
*/
|
|
127
|
+
calls?: ReadonlyArray<CallInfo> | null;
|
|
128
|
+
/**
|
|
129
|
+
* `RuntimeRegistration[]` records for the file
|
|
130
|
+
* (`CircleIR.runtime_registrations`). Consumed by the JS/TS and
|
|
131
|
+
* Python classifiers to resolve handler methods registered via
|
|
132
|
+
* Express / Fastify / Flask / FastAPI / Django / Click / Celery
|
|
133
|
+
* calls (already extracted per `core/extractors/runtime-registrations.ts`).
|
|
134
|
+
*
|
|
135
|
+
* Added 3.166.0 for cognium-dev #237.
|
|
136
|
+
*/
|
|
137
|
+
runtimeRegistrations?: ReadonlyArray<RuntimeRegistration> | null;
|
|
111
138
|
}
|
|
112
139
|
/**
|
|
113
140
|
* Classify a method's entry-point tier.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-point-detection.d.ts","sourceRoot":"","sources":["../../src/analysis/entry-point-detection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"entry-point-detection.d.ts","sourceRoot":"","sources":["../../src/analysis/entry-point-detection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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