@dependabit/detector 0.1.16 → 0.1.17
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/CHANGELOG.md +10 -0
- package/dist/detector.d.ts +179 -12
- package/dist/detector.d.ts.map +1 -1
- package/dist/detector.js +121 -12
- package/dist/detector.js.map +1 -1
- package/dist/diff-parser.js.map +1 -1
- package/dist/llm/client.d.ts +111 -2
- package/dist/llm/client.d.ts.map +1 -1
- package/dist/llm/client.js +33 -1
- package/dist/llm/client.js.map +1 -1
- package/dist/llm/copilot.d.ts.map +1 -1
- package/dist/llm/copilot.js +1 -7
- package/dist/llm/copilot.js.map +1 -1
- package/dist/llm/prompts.d.ts +42 -2
- package/dist/llm/prompts.d.ts.map +1 -1
- package/dist/llm/prompts.js +42 -2
- package/dist/llm/prompts.js.map +1 -1
- package/dist/parsers/code-comments.js.map +1 -1
- package/dist/parsers/package-files.js.map +1 -1
- package/dist/parsers/readme.js.map +1 -1
- package/package.json +26 -9
- package/src/detector.ts +0 -1043
- package/src/diff-parser.ts +0 -257
- package/src/index.ts +0 -43
- package/src/llm/client.ts +0 -85
- package/src/llm/copilot.ts +0 -150
- package/src/llm/prompts.ts +0 -111
- package/src/parsers/code-comments.ts +0 -178
- package/src/parsers/package-files.ts +0 -156
- package/src/parsers/readme.ts +0 -191
- package/test/detector.test.ts +0 -169
- package/test/diff-parser.test.ts +0 -187
- package/test/llm/client.test.ts +0 -31
- package/test/llm/copilot.test.ts +0 -334
- package/test/parsers/code-comments.test.ts +0 -98
- package/test/parsers/package-files.test.ts +0 -52
- package/test/parsers/readme.test.ts +0 -52
- package/tsconfig.json +0 -10
- package/tsconfig.tsbuildinfo +0 -1
package/dist/llm/client.d.ts
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* LLM Provider Interface
|
|
3
3
|
* Abstraction layer for different LLM providers (GitHub Copilot, Claude, OpenAI, etc.)
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* All providers must implement this interface. The detector relies on the
|
|
7
|
+
* `analyze` method to parse raw LLM JSON output; provider implementations are
|
|
8
|
+
* responsible for extracting the `dependencies` array from the model response.
|
|
9
|
+
*
|
|
10
|
+
* @never
|
|
11
|
+
* - **Output format instability**: the schema of `LLMResponse` (specifically
|
|
12
|
+
* the `dependencies` array) may silently break when the underlying model
|
|
13
|
+
* is updated. Pin the model version in `LLMProviderConfig.model` and
|
|
14
|
+
* run integration tests after upgrades.
|
|
15
|
+
* - **Non-determinism**: even at `temperature: 0` some providers do not
|
|
16
|
+
* guarantee identical outputs across calls. Never cache results and
|
|
17
|
+
* compare them across model versions.
|
|
18
|
+
* - **Token budget**: providers that truncate the prompt silently return
|
|
19
|
+
* fewer dependencies without raising an error. Check `LLMUsageMetadata`
|
|
20
|
+
* for unusually low `promptTokens` values.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Rate limit information returned by {@link LLMProvider.getRateLimit}.
|
|
24
|
+
*
|
|
25
|
+
* @category Detector
|
|
4
26
|
*/
|
|
5
27
|
export interface RateLimitInfo {
|
|
6
28
|
remaining: number;
|
|
7
29
|
limit: number;
|
|
8
30
|
resetAt: Date;
|
|
9
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Token usage and latency metadata included in every {@link LLMResponse}.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* `totalTokens` is the sum of `promptTokens` and `completionTokens`.
|
|
37
|
+
* Unusually low `promptTokens` may indicate the provider silently truncated
|
|
38
|
+
* the input, which can produce incomplete dependency lists.
|
|
39
|
+
*
|
|
40
|
+
* @category Detector
|
|
41
|
+
*/
|
|
10
42
|
export interface LLMUsageMetadata {
|
|
11
43
|
promptTokens: number;
|
|
12
44
|
completionTokens: number;
|
|
@@ -14,28 +46,90 @@ export interface LLMUsageMetadata {
|
|
|
14
46
|
model: string;
|
|
15
47
|
latencyMs: number;
|
|
16
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* A single dependency detected by the LLM.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* `confidence` is provider-supplied and not independently validated — treat
|
|
54
|
+
* values below `0.7` as low-quality detections that should be reviewed
|
|
55
|
+
* manually. The detector filters entries with `confidence < 0.5`.
|
|
56
|
+
*
|
|
57
|
+
* @category Detector
|
|
58
|
+
*/
|
|
17
59
|
export interface DetectedDependency {
|
|
18
60
|
url: string;
|
|
19
61
|
name: string;
|
|
20
62
|
description?: string;
|
|
21
63
|
type: 'reference-implementation' | 'schema' | 'documentation' | 'research-paper' | 'api-example' | 'other';
|
|
64
|
+
/** Detection confidence in the range [0.0, 1.0]. */
|
|
22
65
|
confidence: number;
|
|
66
|
+
/** LLM's explanation of why this was classified as a dependency. */
|
|
23
67
|
reasoning?: string;
|
|
24
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* The structured response returned by {@link LLMProvider.analyze}.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* `rawResponse` is preserved for debugging purposes. When the LLM returns
|
|
74
|
+
* malformed JSON, provider implementations typically return an empty
|
|
75
|
+
* `dependencies` array rather than throwing, so callers should not assume
|
|
76
|
+
* an empty array means the LLM was not called.
|
|
77
|
+
*
|
|
78
|
+
* @category Detector
|
|
79
|
+
*/
|
|
25
80
|
export interface LLMResponse {
|
|
26
81
|
dependencies: DetectedDependency[];
|
|
27
82
|
usage: LLMUsageMetadata;
|
|
83
|
+
/** Raw model output; present only when the provider preserves it. */
|
|
28
84
|
rawResponse?: string;
|
|
29
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Configuration passed to an LLM provider at construction time.
|
|
88
|
+
*
|
|
89
|
+
* @config
|
|
90
|
+
* @category Detector
|
|
91
|
+
*
|
|
92
|
+
* @never
|
|
93
|
+
* - `model` controls which checkpoint is used. Leaving it `undefined` causes
|
|
94
|
+
* the provider to select its default, which can change between SDK
|
|
95
|
+
* versions — pin the model to avoid silent classification drift.
|
|
96
|
+
* - `maxTokens` caps the completion, not the prompt. Very large repository
|
|
97
|
+
* files will still consume prompt budget; use `Detector.ignorePatterns`
|
|
98
|
+
* to exclude large generated files.
|
|
99
|
+
*/
|
|
30
100
|
export interface LLMProviderConfig {
|
|
31
101
|
apiKey?: string;
|
|
32
102
|
endpoint?: string;
|
|
103
|
+
/** Model identifier; pin this value to avoid classification drift. */
|
|
33
104
|
model?: string;
|
|
34
105
|
maxTokens?: number;
|
|
35
106
|
temperature?: number;
|
|
36
107
|
}
|
|
37
108
|
/**
|
|
38
|
-
*
|
|
109
|
+
* Contract that all LLM provider implementations must satisfy.
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* The only method called by the {@link Detector} is `analyze`.
|
|
113
|
+
* `getSupportedModels`, `getRateLimit`, and `validateConfig` exist for
|
|
114
|
+
* diagnostic and health-check purposes.
|
|
115
|
+
*
|
|
116
|
+
* @category Detector
|
|
117
|
+
*
|
|
118
|
+
* @useWhen
|
|
119
|
+
* You need to plug in a custom or self-hosted language model as the
|
|
120
|
+
* classification backend for the detector.
|
|
121
|
+
*
|
|
122
|
+
* @avoidWhen
|
|
123
|
+
* You only need programmatic heuristics — constructing a stub provider that
|
|
124
|
+
* always returns an empty `dependencies` array has a small overhead but is
|
|
125
|
+
* safe.
|
|
126
|
+
*
|
|
127
|
+
* @never
|
|
128
|
+
* - Provider implementations must return valid JSON matching the
|
|
129
|
+
* `LLMResponse` shape. Returning plain text causes the detector to
|
|
130
|
+
* silently produce zero LLM-sourced results.
|
|
131
|
+
* - Do NOT cache the `analyze` response across different `model` values —
|
|
132
|
+
* classification schemes differ between model versions.
|
|
39
133
|
*/
|
|
40
134
|
export interface LLMProvider {
|
|
41
135
|
/**
|
|
@@ -59,7 +153,22 @@ export interface LLMProvider {
|
|
|
59
153
|
validateConfig(): boolean;
|
|
60
154
|
}
|
|
61
155
|
/**
|
|
62
|
-
*
|
|
156
|
+
* Factory stub — instantiate a named LLM provider.
|
|
157
|
+
*
|
|
158
|
+
* @remarks
|
|
159
|
+
* This function is currently a placeholder and always throws. Use the
|
|
160
|
+
* concrete provider class directly (e.g., {@link GitHubCopilotProvider})
|
|
161
|
+
* instead.
|
|
162
|
+
*
|
|
163
|
+
* @param providerName - Name of the provider (e.g. `'github-copilot'`).
|
|
164
|
+
* @param config - Provider configuration.
|
|
165
|
+
*
|
|
166
|
+
* @throws {Error} Always — concrete providers are not yet wired here.
|
|
167
|
+
*
|
|
168
|
+
* @category Detector
|
|
169
|
+
*
|
|
170
|
+
* @deprecated Use the concrete provider classes exported from
|
|
171
|
+
* `@dependabit/detector` (e.g. `GitHubCopilotProvider`) directly.
|
|
63
172
|
*/
|
|
64
173
|
export declare function createLLMProvider(providerName: string, config: LLMProviderConfig): LLMProvider;
|
|
65
174
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/llm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/llm/client.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/llm/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EACA,0BAA0B,GAC1B,QAAQ,GACR,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,OAAO,CAAC;IACZ,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,KAAK,EAAE,gBAAgB,CAAC;IACxB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/D;;OAEG;IACH,kBAAkB,IAAI,MAAM,EAAE,CAAC;IAE/B;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAEvC;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,GAAG,WAAW,CAG9F"}
|
package/dist/llm/client.js
CHANGED
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* LLM Provider Interface
|
|
3
3
|
* Abstraction layer for different LLM providers (GitHub Copilot, Claude, OpenAI, etc.)
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* All providers must implement this interface. The detector relies on the
|
|
7
|
+
* `analyze` method to parse raw LLM JSON output; provider implementations are
|
|
8
|
+
* responsible for extracting the `dependencies` array from the model response.
|
|
9
|
+
*
|
|
10
|
+
* @never
|
|
11
|
+
* - **Output format instability**: the schema of `LLMResponse` (specifically
|
|
12
|
+
* the `dependencies` array) may silently break when the underlying model
|
|
13
|
+
* is updated. Pin the model version in `LLMProviderConfig.model` and
|
|
14
|
+
* run integration tests after upgrades.
|
|
15
|
+
* - **Non-determinism**: even at `temperature: 0` some providers do not
|
|
16
|
+
* guarantee identical outputs across calls. Never cache results and
|
|
17
|
+
* compare them across model versions.
|
|
18
|
+
* - **Token budget**: providers that truncate the prompt silently return
|
|
19
|
+
* fewer dependencies without raising an error. Check `LLMUsageMetadata`
|
|
20
|
+
* for unusually low `promptTokens` values.
|
|
4
21
|
*/
|
|
5
22
|
/**
|
|
6
|
-
*
|
|
23
|
+
* Factory stub — instantiate a named LLM provider.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This function is currently a placeholder and always throws. Use the
|
|
27
|
+
* concrete provider class directly (e.g., {@link GitHubCopilotProvider})
|
|
28
|
+
* instead.
|
|
29
|
+
*
|
|
30
|
+
* @param providerName - Name of the provider (e.g. `'github-copilot'`).
|
|
31
|
+
* @param config - Provider configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {Error} Always — concrete providers are not yet wired here.
|
|
34
|
+
*
|
|
35
|
+
* @category Detector
|
|
36
|
+
*
|
|
37
|
+
* @deprecated Use the concrete provider classes exported from
|
|
38
|
+
* `@dependabit/detector` (e.g. `GitHubCopilotProvider`) directly.
|
|
7
39
|
*/
|
|
8
40
|
export function createLLMProvider(providerName, config) {
|
|
9
41
|
// Implementation will be in specific provider files
|
package/dist/llm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/llm/client.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/llm/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAwJH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,iBAAiB,CAAC,YAAoB,EAAE,MAAyB;IAC/E,oDAAoD;IACpD,MAAM,IAAI,KAAK,CAAC,YAAY,YAAY,sBAAsB,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/llm/copilot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EAGd,MAAM,aAAa,CAAC;AAKrB,qBAAa,qBAAsB,YAAW,WAAW;IACvD,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,KAAK,CAAS;IAEtB,YAAY,MAAM,GAAE,iBAAsB,EAczC;IAEK,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/llm/copilot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EAGd,MAAM,aAAa,CAAC;AAKrB,qBAAa,qBAAsB,YAAW,WAAW;IACvD,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,KAAK,CAAS;IAEtB,YAAY,MAAM,GAAE,iBAAsB,EAczC;IAEK,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAkFnE;IAED,kBAAkB,IAAI,MAAM,EAAE,CAG7B;IAEK,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC,CAQ3C;IAED,cAAc,IAAI,OAAO,CAIxB;CACF"}
|
package/dist/llm/copilot.js
CHANGED
|
@@ -29,13 +29,7 @@ export class GitHubCopilotProvider {
|
|
|
29
29
|
const fullPrompt = `${SYSTEM_PROMPT}\n\n${prompt}`;
|
|
30
30
|
// Use execFile to avoid shell escaping issues and command injection
|
|
31
31
|
// Pass prompt directly as an argument without manual escaping
|
|
32
|
-
const args = [
|
|
33
|
-
'copilot',
|
|
34
|
-
'-p',
|
|
35
|
-
fullPrompt,
|
|
36
|
-
'--silent',
|
|
37
|
-
'--allow-all-tools'
|
|
38
|
-
];
|
|
32
|
+
const args = ['copilot', '-p', fullPrompt, '--silent', '--allow-all-tools'];
|
|
39
33
|
const { stdout, stderr } = await execFileAsync('gh', args, {
|
|
40
34
|
maxBuffer: 10 * 1024 * 1024, // 10MB buffer for large responses
|
|
41
35
|
timeout: 60000 // 60 second timeout
|
package/dist/llm/copilot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/llm/copilot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAStC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAE1C,MAAM,OAAO,qBAAqB;IACxB,MAAM,CAA8B;IACpC,KAAK,CAAS;IAEtB,YAAY,MAAM,GAAsB,EAAE
|
|
1
|
+
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/llm/copilot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAA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EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU;SAChC,CAAC;IACJ,CAAC;IAED,cAAc;QACZ,wDAAwD;QACxD,iDAAiD;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/dist/llm/prompts.d.ts
CHANGED
|
@@ -1,10 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Detection prompts for LLM-based dependency analysis
|
|
3
|
-
*
|
|
2
|
+
* Detection prompts for LLM-based dependency analysis.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* All exported constants and functions in this module are the source of truth
|
|
6
|
+
* for what the LLM is instructed to do. Changing them changes detection
|
|
7
|
+
* behaviour globally — run the full detector integration tests before
|
|
8
|
+
* modifying prompt templates in production.
|
|
9
|
+
*
|
|
10
|
+
* @never
|
|
11
|
+
* - Editing prompt templates can silently break the JSON parsing in the
|
|
12
|
+
* detector; always verify that the LLM still returns a
|
|
13
|
+
* `{ "dependencies": [...] }` top-level key after changes.
|
|
14
|
+
* - The `{content}` placeholder in `DETECTION_PROMPT_TEMPLATE` is replaced
|
|
15
|
+
* with raw file content. Content containing curly braces can confuse
|
|
16
|
+
* naive `String.replace` substitution — the current implementation uses
|
|
17
|
+
* a single-pass replace, which is safe but will break if additional
|
|
18
|
+
* `{...}` placeholders are introduced.
|
|
19
|
+
*
|
|
20
|
+
* @category Detector
|
|
4
21
|
*/
|
|
5
22
|
export declare const SYSTEM_PROMPT = "You are an expert at analyzing code repositories to identify external informational dependencies.\n\nYour task is to identify external resources that developers reference but are NOT tracked by package managers (npm, PyPI, Cargo, etc.).\n\nINCLUDE these types of dependencies:\n- GitHub repositories referenced but not declared in package files\n- Documentation sites and API references\n- OpenAPI/GraphQL schemas\n- Research papers and arXiv preprints\n- Reference implementations and code examples\n- Technical specifications and RFCs\n\nEXCLUDE these (handled by dependabot):\n- NPM packages in package.json\n- Python packages in requirements.txt\n- Rust crates in Cargo.toml\n- Docker images in Dockerfile\n- Any declared package manager dependencies\n\nALSO EXCLUDE (false positives):\n- URLs that reference the repository itself (self-references)\n- Relative file paths (e.g., CONTRIBUTING.md, docs/guide.md, ./src/utils)\n- Placeholder URLs used in documentation examples (example.com, example.org, localhost)\n- Internal documentation links within the same repository\n- URLs with template variables or placeholders (e.g., issues/[NUMBER], user/repo)\n\nOnly return dependencies with confidence >= 0.7.\n\nFor each dependency found, provide:\n1. url: The complete URL\n2. name: A descriptive name\n3. description: What this dependency is used for\n4. type: One of [reference-implementation, schema, documentation, research-paper, api-example, other]\n5. confidence: A score from 0.0 to 1.0 indicating detection confidence\n6. reasoning: Brief explanation of why this is a dependency\n\nReturn ONLY valid JSON in this format:\n{\n \"dependencies\": [\n {\n \"url\": \"https://example.com/resource\",\n \"name\": \"Resource Name\",\n \"description\": \"Purpose in the project\",\n \"type\": \"documentation\",\n \"confidence\": 0.95,\n \"reasoning\": \"Referenced in README as API documentation\"\n }\n ]\n}";
|
|
6
23
|
export declare const DETECTION_PROMPT_TEMPLATE = "Analyze the following content from a code repository and identify external informational dependencies:\n\n## Content Type: {contentType}\n## File Path: {filePath}\n\n## Content:\n{content}\n\nRemember:\n- Focus on external resources NOT in package managers\n- Provide confidence scores based on clarity of references\n- Include context about how each dependency is used\n- Return valid JSON only\n\nAnalyze and respond:";
|
|
24
|
+
/**
|
|
25
|
+
* Renders a detection prompt by substituting the content-type, file path,
|
|
26
|
+
* and raw content into `DETECTION_PROMPT_TEMPLATE`.
|
|
27
|
+
*
|
|
28
|
+
* @param contentType - Human-readable label for the content (e.g. `"README"`).
|
|
29
|
+
* @param filePath - Repository-relative file path for context.
|
|
30
|
+
* @param content - Raw file content to analyze (not truncated here — callers
|
|
31
|
+
* should truncate before passing to stay within token budgets).
|
|
32
|
+
* @returns Rendered prompt string ready to send to an LLM provider.
|
|
33
|
+
*
|
|
34
|
+
* @category Detector
|
|
35
|
+
*/
|
|
7
36
|
export declare function createDetectionPrompt(contentType: string, filePath: string, content: string): string;
|
|
8
37
|
export declare const CLASSIFICATION_PROMPT_TEMPLATE = "Given this URL, classify its dependency type and suggest the best access method:\n\nURL: {url}\nContext: {context}\n\nClassify as one of:\n- reference-implementation: Example code demonstrating usage\n- schema: OpenAPI, JSON Schema, GraphQL, Protocol Buffers \n- documentation: API docs, tutorials, guides\n- research-paper: Academic papers, arXiv preprints\n- api-example: Code snippets from documentation\n- other: If none of the above fit\n\nAlso determine the best access method:\n- github-api: For GitHub repositories\n- arxiv: For arXiv papers\n- openapi: For OpenAPI specifications\n- http: For generic web content\n\nReturn JSON:\n{\n \"type\": \"documentation\",\n \"accessMethod\": \"http\",\n \"confidence\": 0.9,\n \"reasoning\": \"URL structure suggests API documentation\"\n}";
|
|
38
|
+
/**
|
|
39
|
+
* Renders a classification prompt for a single URL, asking the LLM to
|
|
40
|
+
* determine the dependency type and best access method.
|
|
41
|
+
*
|
|
42
|
+
* @param url - The URL to classify.
|
|
43
|
+
* @param context - Surrounding text or code comments that mention the URL,
|
|
44
|
+
* used to improve classification accuracy.
|
|
45
|
+
* @returns Rendered prompt string.
|
|
46
|
+
*
|
|
47
|
+
* @category Detector
|
|
48
|
+
*/
|
|
9
49
|
export declare function createClassificationPrompt(url: string, context: string): string;
|
|
10
50
|
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/llm/prompts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/llm/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,aAAa,o6DAgDxB,CAAC;AAEH,eAAO,MAAM,yBAAyB,waAcjB,CAAC;AAEtB;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,MAAM,CAIR;AAED,eAAO,MAAM,8BAA8B,+xBAyBzC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/E"}
|
package/dist/llm/prompts.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Detection prompts for LLM-based dependency analysis
|
|
3
|
-
*
|
|
2
|
+
* Detection prompts for LLM-based dependency analysis.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* All exported constants and functions in this module are the source of truth
|
|
6
|
+
* for what the LLM is instructed to do. Changing them changes detection
|
|
7
|
+
* behaviour globally — run the full detector integration tests before
|
|
8
|
+
* modifying prompt templates in production.
|
|
9
|
+
*
|
|
10
|
+
* @never
|
|
11
|
+
* - Editing prompt templates can silently break the JSON parsing in the
|
|
12
|
+
* detector; always verify that the LLM still returns a
|
|
13
|
+
* `{ "dependencies": [...] }` top-level key after changes.
|
|
14
|
+
* - The `{content}` placeholder in `DETECTION_PROMPT_TEMPLATE` is replaced
|
|
15
|
+
* with raw file content. Content containing curly braces can confuse
|
|
16
|
+
* naive `String.replace` substitution — the current implementation uses
|
|
17
|
+
* a single-pass replace, which is safe but will break if additional
|
|
18
|
+
* `{...}` placeholders are introduced.
|
|
19
|
+
*
|
|
20
|
+
* @category Detector
|
|
4
21
|
*/
|
|
5
22
|
export const SYSTEM_PROMPT = `You are an expert at analyzing code repositories to identify external informational dependencies.
|
|
6
23
|
|
|
@@ -66,6 +83,18 @@ Remember:
|
|
|
66
83
|
- Return valid JSON only
|
|
67
84
|
|
|
68
85
|
Analyze and respond:`;
|
|
86
|
+
/**
|
|
87
|
+
* Renders a detection prompt by substituting the content-type, file path,
|
|
88
|
+
* and raw content into `DETECTION_PROMPT_TEMPLATE`.
|
|
89
|
+
*
|
|
90
|
+
* @param contentType - Human-readable label for the content (e.g. `"README"`).
|
|
91
|
+
* @param filePath - Repository-relative file path for context.
|
|
92
|
+
* @param content - Raw file content to analyze (not truncated here — callers
|
|
93
|
+
* should truncate before passing to stay within token budgets).
|
|
94
|
+
* @returns Rendered prompt string ready to send to an LLM provider.
|
|
95
|
+
*
|
|
96
|
+
* @category Detector
|
|
97
|
+
*/
|
|
69
98
|
export function createDetectionPrompt(contentType, filePath, content) {
|
|
70
99
|
return DETECTION_PROMPT_TEMPLATE.replace('{contentType}', contentType)
|
|
71
100
|
.replace('{filePath}', filePath)
|
|
@@ -97,6 +126,17 @@ Return JSON:
|
|
|
97
126
|
"confidence": 0.9,
|
|
98
127
|
"reasoning": "URL structure suggests API documentation"
|
|
99
128
|
}`;
|
|
129
|
+
/**
|
|
130
|
+
* Renders a classification prompt for a single URL, asking the LLM to
|
|
131
|
+
* determine the dependency type and best access method.
|
|
132
|
+
*
|
|
133
|
+
* @param url - The URL to classify.
|
|
134
|
+
* @param context - Surrounding text or code comments that mention the URL,
|
|
135
|
+
* used to improve classification accuracy.
|
|
136
|
+
* @returns Rendered prompt string.
|
|
137
|
+
*
|
|
138
|
+
* @category Detector
|
|
139
|
+
*/
|
|
100
140
|
export function createClassificationPrompt(url, context) {
|
|
101
141
|
return CLASSIFICATION_PROMPT_TEMPLATE.replace('{url}', url).replace('{context}', context);
|
|
102
142
|
}
|
package/dist/llm/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/llm/prompts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/llm/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD3B,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;qBAcpB,CAAC;AAEtB;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,qBAAqB,CACnC,WAAmB,EACnB,QAAgB,EAChB,OAAe;IAEf,OAAO,yBAAyB,CAAC,OAAO,CAAC,eAAe,EAAE,WAAW,CAAC;SACnE,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC;SAC/B,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;EAyB5C,CAAC;AAEH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,0BAA0B,CAAC,GAAW,EAAE,OAAe;IACrE,OAAO,8BAA8B,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-comments.js","sourceRoot":"","sources":["../../src/parsers/code-comments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAe,EAAE,QAAgB
|
|
1
|
+
{"version":3,"file":"code-comments.js","sourceRoot":"","sources":["../../src/parsers/code-comments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAe,EAAE,QAAgB;IACjE,MAAM,UAAU,GAAuB,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,YAAY,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IAEhD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,UAAU,CAAC,CAAC,wBAAwB;IAC7C,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,kBAAkB,GAAG,KAAK,CAAC;IAE/B,KAAK,IAA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G,6CAA6C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/E,IAAI,aAAa,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC;gBACd,IAAI,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,EAAE;gBAC/C,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE;aACrB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-files.js","sourceRoot":"","sources":["../../src/parsers/package-files.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe
|
|
1
|
+
{"version":3,"file":"package-files.js","sourceRoot":"","sources":["../../src/parsers/package-files.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChC,MAAM,IAAI,GAAa,EAAE,CAAC;QAE1B,yBAAyB;QACzB,IAAI,UAAU,GAAuB,SAAS,CAAC;QAC/C,IAAI,OAAO,GAAG,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;YACvC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;QAC9B,CAAC;aAAM,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;YAChD,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC;QAClC,CAAC;QAED,mBAAmB;QACnB,MAAM,QAAQ,GAAuB,GAAG,CAAC,QAAQ,CAAC;QAElD,6DAA6D;QAC7D,MAAM,aAAa,GAAuB,GAAG,CAAC,aAAa,IAAI,GAAG,CAAC,IAAI,CAAC;QAExE,gCAAgC;QACh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;gBACnC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBAEtB,IACE,KAAK;oBACL,IAAI;oBACJ,KAAK,CAAC,MAAM,IAAI,CAAC;oBACjB,IAAI,CAAC,MAAM,IAAI,CAAC;oBAChB,KAAK,KAAK,OAAO;oBACjB,IAAI,KAAK,MAAM;oBACf,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAC5C,CAAC;oBACD,UAAU,CAAC,IAAI,CAAC;wBACd,KAAK;wBACL,IAAI;wBACJ,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE;qBACrB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dependabit/detector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "https://github.com/pradeepmouli/dependabit",
|
|
6
|
+
"url": "https://github.com/pradeepmouli/dependabit.git",
|
|
7
7
|
"directory": "packages/detector"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"homepage": "https://pradeepmouli.github.io/dependabit/",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/pradeepmouli/dependabit/issues"
|
|
12
|
+
},
|
|
13
|
+
"description": "Detect external dependencies from READMEs, code comments, diffs, and package files using LLM-assisted parsing.",
|
|
10
14
|
"type": "module",
|
|
11
15
|
"main": "dist/index.js",
|
|
12
16
|
"types": "dist/index.d.ts",
|
|
@@ -20,22 +24,35 @@
|
|
|
20
24
|
"@actions/core": "^3.0.0",
|
|
21
25
|
"ignore": "^7.0.5",
|
|
22
26
|
"zod": "^4.3.6",
|
|
23
|
-
"@dependabit/github-client": "0.1.
|
|
24
|
-
"@dependabit/manifest": "0.1.
|
|
27
|
+
"@dependabit/github-client": "0.1.15",
|
|
28
|
+
"@dependabit/manifest": "0.1.15"
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
27
|
-
"@types/node": "^25.
|
|
31
|
+
"@types/node": "^25.6.0",
|
|
28
32
|
"tsx": "^4.21.0",
|
|
29
|
-
"typescript": "^
|
|
30
|
-
"vitest": "^4.
|
|
33
|
+
"typescript": "^6.0.3",
|
|
34
|
+
"vitest": "^4.1.5"
|
|
31
35
|
},
|
|
32
36
|
"keywords": [
|
|
37
|
+
"dependabit",
|
|
33
38
|
"dependency",
|
|
34
39
|
"detection",
|
|
35
40
|
"llm",
|
|
36
|
-
"ai"
|
|
41
|
+
"ai",
|
|
42
|
+
"copilot",
|
|
43
|
+
"parser"
|
|
37
44
|
],
|
|
38
45
|
"license": "MIT",
|
|
46
|
+
"author": "Pradeep Mouli <pmouli@mac.com> (https://github.com/pradeepmouli)",
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"README.md",
|
|
53
|
+
"CHANGELOG.md",
|
|
54
|
+
"LICENSE"
|
|
55
|
+
],
|
|
39
56
|
"scripts": {
|
|
40
57
|
"build": "tsgo -p tsconfig.json",
|
|
41
58
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|