@falconwry/creator 0.36.0-alpha.1 → 0.37.0-alpha.1
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/dist/ai-analyzer.d.ts +5 -0
- package/dist/ai-analyzer.d.ts.map +1 -0
- package/dist/ai-analyzer.js +267 -0
- package/dist/ai-analyzer.js.map +1 -0
- package/dist/analyzer.d.ts +3 -0
- package/dist/analyzer.d.ts.map +1 -0
- package/dist/analyzer.js +156 -0
- package/dist/analyzer.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +26 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +9 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +85 -0
- package/dist/logger.js.map +1 -0
- package/dist/pipeline.d.ts +15 -0
- package/dist/pipeline.d.ts.map +1 -0
- package/dist/pipeline.js +142 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/types.d.ts +73 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +8 -8
- package/src/cli.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Analyzer, Scanner } from './types.js';
|
|
2
|
+
import type { Logger } from './logger.js';
|
|
3
|
+
export declare function createOpenCodeAnalyzer(scanner: Scanner, log: Logger): Analyzer;
|
|
4
|
+
export declare const OpenCodeAnalyzer: Analyzer;
|
|
5
|
+
//# sourceMappingURL=ai-analyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-analyzer.d.ts","sourceRoot":"","sources":["../src/ai-analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAwC,OAAO,EAAE,MAAM,YAAY,CAAA;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AA+QzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,QAAQ,CA2C9E;AAGD,eAAO,MAAM,gBAAgB,EAAE,QAY9B,CAAA"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenCodeAnalyzer = void 0;
|
|
4
|
+
exports.createOpenCodeAnalyzer = createOpenCodeAnalyzer;
|
|
5
|
+
const analyzer_js_1 = require("./analyzer.js");
|
|
6
|
+
const MAX_RETRY = 3;
|
|
7
|
+
const BATCH_SIZE = 15;
|
|
8
|
+
const TIMEOUT_MS = 60_000;
|
|
9
|
+
const MAX_FEEDBACK_LEN = 2000;
|
|
10
|
+
function buildBatchPrompt(batch, context, errorFeedback) {
|
|
11
|
+
let prompt = `你是 ${context.projectType} 的一个代码分析助手。
|
|
12
|
+
以下列出了该项目中多个封装好的 ${context.toolConcept},请为每个工具生成分析信息。
|
|
13
|
+
|
|
14
|
+
工具列表:
|
|
15
|
+
---
|
|
16
|
+
`;
|
|
17
|
+
for (let i = 0; i < batch.length; i++) {
|
|
18
|
+
const tool = batch[i];
|
|
19
|
+
prompt += `序号: ${i + 1}
|
|
20
|
+
文件路径: ${tool.src}
|
|
21
|
+
行号: ${tool.startLine}-${tool.endLine}
|
|
22
|
+
代码:
|
|
23
|
+
\`\`\`
|
|
24
|
+
${tool.code}
|
|
25
|
+
\`\`\`
|
|
26
|
+
---
|
|
27
|
+
`;
|
|
28
|
+
}
|
|
29
|
+
prompt += `
|
|
30
|
+
请为每个工具返回一个 JSON 数组,每个元素包含以下字段:
|
|
31
|
+
1. name:工具名称(必须与上面给出的名称一致)
|
|
32
|
+
2. description:一句话概括该工具的功能(中文,50 字左右)
|
|
33
|
+
3. category:分类,必须是以下之一:${context.categories.join(' / ')}
|
|
34
|
+
4. tags:5 个左右的标签,如:${context.exampleTags.join('、')}
|
|
35
|
+
|
|
36
|
+
请严格返回 JSON 数组格式,不要包含任何其他文字。
|
|
37
|
+
`;
|
|
38
|
+
if (errorFeedback) {
|
|
39
|
+
prompt += `\n注意:${errorFeedback}\n`;
|
|
40
|
+
}
|
|
41
|
+
return prompt;
|
|
42
|
+
}
|
|
43
|
+
function tryParseJSON(text) {
|
|
44
|
+
// Try to extract JSON array from the response
|
|
45
|
+
const cleaned = text.trim()
|
|
46
|
+
.replace(/^```json\s*/i, '')
|
|
47
|
+
.replace(/^```\s*/i, '')
|
|
48
|
+
.replace(/\s*```$/, '');
|
|
49
|
+
try {
|
|
50
|
+
return JSON.parse(cleaned);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
// Try to find a JSON array in the text
|
|
54
|
+
const match = cleaned.match(/\[\s*\{[\s\S]*\}\s*\]/);
|
|
55
|
+
if (match) {
|
|
56
|
+
try {
|
|
57
|
+
return JSON.parse(match[0]);
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function validateStructural(output, batch) {
|
|
67
|
+
const errors = [];
|
|
68
|
+
if (!Array.isArray(output)) {
|
|
69
|
+
return ['Response is not a JSON array'];
|
|
70
|
+
}
|
|
71
|
+
if (output.length !== batch.length) {
|
|
72
|
+
errors.push(`Expected ${batch.length} tools in response, got ${output.length}`);
|
|
73
|
+
}
|
|
74
|
+
for (let i = 0; i < Math.min(output.length, batch.length); i++) {
|
|
75
|
+
const item = output[i];
|
|
76
|
+
const prefix = `Tool #${i + 1} ("${batch[i]?.name ?? '?'}"):`;
|
|
77
|
+
if (!item.name) {
|
|
78
|
+
errors.push(`${prefix} missing "name" field`);
|
|
79
|
+
}
|
|
80
|
+
if (!item.description || typeof item.description !== 'string') {
|
|
81
|
+
errors.push(`${prefix} missing or invalid "description" field`);
|
|
82
|
+
}
|
|
83
|
+
if (!item.category || typeof item.category !== 'string') {
|
|
84
|
+
errors.push(`${prefix} missing "category" field`);
|
|
85
|
+
}
|
|
86
|
+
if (!item.tags || !Array.isArray(item.tags)) {
|
|
87
|
+
errors.push(`${prefix} missing or invalid "tags" field`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return errors;
|
|
91
|
+
}
|
|
92
|
+
function truncateFeedback(text) {
|
|
93
|
+
if (text.length <= MAX_FEEDBACK_LEN)
|
|
94
|
+
return text;
|
|
95
|
+
return text.slice(0, MAX_FEEDBACK_LEN - 3) + '...';
|
|
96
|
+
}
|
|
97
|
+
async function analyzeBatch(batch, context, scanner, log, retryCount, errorFeedback) {
|
|
98
|
+
const { createOpencodeClient } = await import('@opencode-ai/sdk');
|
|
99
|
+
const client = createOpencodeClient({ baseUrl: 'http://localhost:4096' });
|
|
100
|
+
const sessionResult = await client.session.create({
|
|
101
|
+
body: { title: 'falconwry-analyze' },
|
|
102
|
+
});
|
|
103
|
+
const sessionId = sessionResult.data?.id;
|
|
104
|
+
if (!sessionId) {
|
|
105
|
+
throw new Error('Failed to create session');
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
const promptText = buildBatchPrompt(batch, context, errorFeedback);
|
|
109
|
+
const controller = new AbortController();
|
|
110
|
+
const timeout = setTimeout(() => controller.abort(), TIMEOUT_MS);
|
|
111
|
+
const result = await client.session.prompt({
|
|
112
|
+
path: { id: sessionId },
|
|
113
|
+
body: {
|
|
114
|
+
model: { providerID: 'deepseek', modelID: 'deepseek-v4-pro' },
|
|
115
|
+
parts: [
|
|
116
|
+
{
|
|
117
|
+
type: 'text',
|
|
118
|
+
text: promptText,
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
clearTimeout(timeout);
|
|
124
|
+
// Extract text from response parts
|
|
125
|
+
const parts = result.data?.parts ?? [];
|
|
126
|
+
const responseText = parts
|
|
127
|
+
.filter((p) => p.type === 'text')
|
|
128
|
+
.map((p) => p.text)
|
|
129
|
+
.join('\n');
|
|
130
|
+
const output = tryParseJSON(responseText);
|
|
131
|
+
if (!output || !Array.isArray(output)) {
|
|
132
|
+
log.warn('AI response was not valid JSON');
|
|
133
|
+
if (retryCount < MAX_RETRY) {
|
|
134
|
+
console.warn(` ⚠️ Batch parse failed, retrying (${retryCount + 1}/${MAX_RETRY})...`);
|
|
135
|
+
return analyzeBatch(batch, context, scanner, log, retryCount + 1, 'Response was not valid JSON. Please return ONLY a JSON array.');
|
|
136
|
+
}
|
|
137
|
+
console.warn(` ❌ Batch failed after ${MAX_RETRY} retries, using rule-based fallback`);
|
|
138
|
+
log.error(`Batch failed after ${MAX_RETRY} retries: not valid JSON`);
|
|
139
|
+
return analyzer_js_1.RuleBasedAnalyzer.analyze(batch, context);
|
|
140
|
+
}
|
|
141
|
+
// Step 1: Structural validation (creator)
|
|
142
|
+
const structuralErrors = validateStructural(output, batch);
|
|
143
|
+
if (structuralErrors.length > 0) {
|
|
144
|
+
console.warn(` ⚠️ ${structuralErrors.length} structural error(s):`);
|
|
145
|
+
for (const e of structuralErrors.slice(0, 3)) {
|
|
146
|
+
console.warn(` - ${e}`);
|
|
147
|
+
}
|
|
148
|
+
log.warn(`Structural validation failed (${structuralErrors.length} errors):`);
|
|
149
|
+
for (const e of structuralErrors) {
|
|
150
|
+
log.warn(` ${e}`);
|
|
151
|
+
}
|
|
152
|
+
if (retryCount < MAX_RETRY) {
|
|
153
|
+
console.warn(` Retrying (${retryCount + 1}/${MAX_RETRY})...`);
|
|
154
|
+
return analyzeBatch(batch, context, scanner, log, retryCount + 1, truncateFeedback(structuralErrors.join('; ')));
|
|
155
|
+
}
|
|
156
|
+
console.warn(` ❌ Structural validation failed after ${MAX_RETRY} retries, using rule-based fallback`);
|
|
157
|
+
log.error(`Structural validation failed after ${MAX_RETRY} retries`);
|
|
158
|
+
return analyzer_js_1.RuleBasedAnalyzer.analyze(batch, context);
|
|
159
|
+
}
|
|
160
|
+
// Step 2: Content validation (scanner per tool, creator iterates)
|
|
161
|
+
const rules = scanner.getValidationRules();
|
|
162
|
+
const contentErrors = [];
|
|
163
|
+
for (const [i, item] of output.entries()) {
|
|
164
|
+
const tool = { ...batch[i], ...item };
|
|
165
|
+
const toolErrors = scanner.validateTool(tool, rules);
|
|
166
|
+
for (const e of toolErrors) {
|
|
167
|
+
contentErrors.push(`Tool #${i + 1} ("${tool.name}"): ${e}`);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (contentErrors.length > 0) {
|
|
171
|
+
// Console: first 3 errors
|
|
172
|
+
console.warn(` ⚠️ ${contentErrors.length} validation error(s):`);
|
|
173
|
+
for (const e of contentErrors.slice(0, 3)) {
|
|
174
|
+
console.warn(` - ${e}`);
|
|
175
|
+
}
|
|
176
|
+
if (contentErrors.length > 3) {
|
|
177
|
+
console.warn(` ... and ${contentErrors.length - 3} more (see .falconry/log/creator.log)`);
|
|
178
|
+
}
|
|
179
|
+
// Log: all errors
|
|
180
|
+
log.warn(`Content validation failed (${contentErrors.length} errors):`);
|
|
181
|
+
for (const e of contentErrors) {
|
|
182
|
+
log.warn(` ${e}`);
|
|
183
|
+
}
|
|
184
|
+
if (retryCount < MAX_RETRY) {
|
|
185
|
+
console.warn(` Retrying (${retryCount + 1}/${MAX_RETRY})...`);
|
|
186
|
+
return analyzeBatch(batch, context, scanner, log, retryCount + 1, truncateFeedback(contentErrors.join('; ')));
|
|
187
|
+
}
|
|
188
|
+
console.warn(` ❌ Validation failed after ${MAX_RETRY} retries, using rule-based fallback`);
|
|
189
|
+
log.error(`Validation failed after ${MAX_RETRY} retries`);
|
|
190
|
+
return analyzer_js_1.RuleBasedAnalyzer.analyze(batch, context);
|
|
191
|
+
}
|
|
192
|
+
return output.map((item, i) => ({
|
|
193
|
+
...batch[i],
|
|
194
|
+
description: item.description,
|
|
195
|
+
category: item.category,
|
|
196
|
+
tags: item.tags,
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
finally {
|
|
200
|
+
// Clean up session
|
|
201
|
+
try {
|
|
202
|
+
await client.session.delete({ path: { id: sessionId } });
|
|
203
|
+
}
|
|
204
|
+
catch {
|
|
205
|
+
// Ignore cleanup errors
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function chunkArray(arr, size) {
|
|
210
|
+
const chunks = [];
|
|
211
|
+
for (let i = 0; i < arr.length; i += size) {
|
|
212
|
+
chunks.push(arr.slice(i, i + size));
|
|
213
|
+
}
|
|
214
|
+
return chunks;
|
|
215
|
+
}
|
|
216
|
+
function createOpenCodeAnalyzer(scanner, log) {
|
|
217
|
+
return {
|
|
218
|
+
async analyze(tools, context) {
|
|
219
|
+
if (tools.length === 0)
|
|
220
|
+
return [];
|
|
221
|
+
// Pre-flight: check if OpenCode server is reachable
|
|
222
|
+
try {
|
|
223
|
+
const { createOpencodeClient } = await import('@opencode-ai/sdk');
|
|
224
|
+
const client = createOpencodeClient({ baseUrl: 'http://localhost:4096' });
|
|
225
|
+
await client.session.list();
|
|
226
|
+
}
|
|
227
|
+
catch {
|
|
228
|
+
throw new Error('OpenCode server not available at localhost:4096. ' +
|
|
229
|
+
'Start the server or the analysis will fall back to rules.');
|
|
230
|
+
}
|
|
231
|
+
const batches = chunkArray(tools, BATCH_SIZE);
|
|
232
|
+
const results = [];
|
|
233
|
+
log.info(`AI analysis started: ${tools.length} tools in ${batches.length} batch(es)`);
|
|
234
|
+
for (let i = 0; i < batches.length; i++) {
|
|
235
|
+
const batch = batches[i];
|
|
236
|
+
console.log(` 🧠 AI analyzing batch ${i + 1}/${batches.length} (${batch.length} tools)...`);
|
|
237
|
+
log.info(`Batch ${i + 1}/${batches.length}: ${batch.length} tools`);
|
|
238
|
+
try {
|
|
239
|
+
const analyzed = await analyzeBatch(batch, context, scanner, log, 0);
|
|
240
|
+
results.push(...analyzed);
|
|
241
|
+
log.info(`Batch ${i + 1} complete: ${analyzed.length} tools analyzed`);
|
|
242
|
+
}
|
|
243
|
+
catch (err) {
|
|
244
|
+
console.warn(` ⚠️ Batch ${i + 1} failed: ${err.message}`);
|
|
245
|
+
console.warn(` ⬇ Falling back to rule-based analysis for this batch`);
|
|
246
|
+
log.warn(`Batch ${i + 1} failed: ${err.message}, falling back to rules`);
|
|
247
|
+
const fallback = await analyzer_js_1.RuleBasedAnalyzer.analyze(batch, context);
|
|
248
|
+
results.push(...fallback);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
log.info(`AI analysis complete: ${results.length} tools`);
|
|
252
|
+
return results;
|
|
253
|
+
},
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
// Legacy static export for compatibility
|
|
257
|
+
exports.OpenCodeAnalyzer = createOpenCodeAnalyzer({
|
|
258
|
+
name: 'noop',
|
|
259
|
+
scanFiles: () => [],
|
|
260
|
+
scanRegistrations: () => [],
|
|
261
|
+
scanDependencies: () => ({}),
|
|
262
|
+
buildRegistry: () => [],
|
|
263
|
+
getPromptContext: () => ({ projectType: '', toolConcept: '', categories: [], exampleTags: [] }),
|
|
264
|
+
getValidationRules: () => ({ description: { minLength: 0, maxLength: 999 }, tags: { minCount: 0, maxCount: 99 }, nameMatch: 'loose', allowedCategories: [] }),
|
|
265
|
+
validateTool: () => [],
|
|
266
|
+
}, { debug: () => { }, info: () => { }, warn: () => { }, error: () => { } });
|
|
267
|
+
//# sourceMappingURL=ai-analyzer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-analyzer.js","sourceRoot":"","sources":["../src/ai-analyzer.ts"],"names":[],"mappings":";;;AAgRA,wDA2CC;AAzTD,+CAAiD;AAEjD,MAAM,SAAS,GAAG,CAAC,CAAA;AACnB,MAAM,UAAU,GAAG,EAAE,CAAA;AACrB,MAAM,UAAU,GAAG,MA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AC;IAC5B,aAAa,EAAE,GAAG,EAAE,CAAC,EAAE;IACvB,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;IAC/F,kBAAkB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC;IAC7J,YAAY,EAAE,GAAG,EAAE,CAAC,EAAE;CACvB,EACD,EAAE,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,CACrE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,QAAQ,EAAiB,MAAM,YAAY,CAAA;AA6IhF,eAAO,MAAM,iBAAiB,EAAE,QAY/B,CAAA"}
|
package/dist/analyzer.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleBasedAnalyzer = void 0;
|
|
4
|
+
const KEYWORD_MAP = {
|
|
5
|
+
date: '日期',
|
|
6
|
+
time: '时间',
|
|
7
|
+
format: '格式化',
|
|
8
|
+
currency: '货币',
|
|
9
|
+
number: '数字',
|
|
10
|
+
button: '按钮',
|
|
11
|
+
table: '表格',
|
|
12
|
+
modal: '弹窗',
|
|
13
|
+
dialog: '弹窗',
|
|
14
|
+
request: '请求',
|
|
15
|
+
fetch: '请求',
|
|
16
|
+
pagination: '分页',
|
|
17
|
+
page: '分页',
|
|
18
|
+
focus: '聚焦',
|
|
19
|
+
badge: '角标',
|
|
20
|
+
icon: '图标',
|
|
21
|
+
data: '数据',
|
|
22
|
+
base: '基础',
|
|
23
|
+
upload: '上传',
|
|
24
|
+
download: '下载',
|
|
25
|
+
select: '选择',
|
|
26
|
+
input: '输入',
|
|
27
|
+
form: '表单',
|
|
28
|
+
validate: '验证',
|
|
29
|
+
toast: '提示',
|
|
30
|
+
loading: '加载',
|
|
31
|
+
error: '错误',
|
|
32
|
+
search: '搜索',
|
|
33
|
+
filter: '过滤',
|
|
34
|
+
sort: '排序',
|
|
35
|
+
copy: '复制',
|
|
36
|
+
clipboard: '剪贴板',
|
|
37
|
+
storage: '存储',
|
|
38
|
+
cookie: 'Cookie',
|
|
39
|
+
router: '路由',
|
|
40
|
+
auth: '认证',
|
|
41
|
+
permission: '权限',
|
|
42
|
+
user: '用户',
|
|
43
|
+
list: '列表',
|
|
44
|
+
card: '卡片',
|
|
45
|
+
avatar: '头像',
|
|
46
|
+
progress: '进度',
|
|
47
|
+
tooltip: '提示',
|
|
48
|
+
dropdown: '下拉',
|
|
49
|
+
menu: '菜单',
|
|
50
|
+
nav: '导航',
|
|
51
|
+
tab: '标签页',
|
|
52
|
+
tree: '树',
|
|
53
|
+
chart: '图表',
|
|
54
|
+
};
|
|
55
|
+
const CATEGORY_SUFFIX = {
|
|
56
|
+
component: '组件',
|
|
57
|
+
composable: '组合式函数',
|
|
58
|
+
function: '工具',
|
|
59
|
+
directive: '指令',
|
|
60
|
+
mixin: '混入',
|
|
61
|
+
plugin: '插件',
|
|
62
|
+
};
|
|
63
|
+
const COMMON_PREFIXES = new Set([
|
|
64
|
+
'use', 'v', 'on', 'handle', 'get', 'set', 'is', 'has', 'create',
|
|
65
|
+
]);
|
|
66
|
+
function splitCamelCase(name) {
|
|
67
|
+
const words = [];
|
|
68
|
+
let current = '';
|
|
69
|
+
for (const ch of name) {
|
|
70
|
+
if (ch >= 'A' && ch <= 'Z') {
|
|
71
|
+
if (current)
|
|
72
|
+
words.push(current);
|
|
73
|
+
current = ch;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
current += ch;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (current)
|
|
80
|
+
words.push(current);
|
|
81
|
+
return words;
|
|
82
|
+
}
|
|
83
|
+
function wordsToChinese(words) {
|
|
84
|
+
const result = [];
|
|
85
|
+
for (const w of words) {
|
|
86
|
+
const lower = w.toLowerCase();
|
|
87
|
+
const cn = KEYWORD_MAP[lower];
|
|
88
|
+
if (cn) {
|
|
89
|
+
// Avoid consecutive duplicates (e.g., "Modal" + "Dialog" → only one "弹窗")
|
|
90
|
+
if (result.length > 0 && result[result.length - 1] === cn)
|
|
91
|
+
continue;
|
|
92
|
+
result.push(cn);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
function generateDescription(name, category, src) {
|
|
98
|
+
const rawWords = splitCamelCase(name);
|
|
99
|
+
const meaningful = rawWords.filter((w) => !COMMON_PREFIXES.has(w));
|
|
100
|
+
const chineseWords = wordsToChinese(meaningful);
|
|
101
|
+
// For components, use the raw words if no Chinese mapping found
|
|
102
|
+
const suffix = CATEGORY_SUFFIX[category] || '';
|
|
103
|
+
if (chineseWords.length === 0) {
|
|
104
|
+
const fallback = meaningful.join('');
|
|
105
|
+
return fallback ? `${fallback}${suffix}` : name;
|
|
106
|
+
}
|
|
107
|
+
return chineseWords.join('') + suffix;
|
|
108
|
+
}
|
|
109
|
+
function generateTags(name, src) {
|
|
110
|
+
const rawWords = splitCamelCase(name);
|
|
111
|
+
const meaningful = rawWords.filter((w) => !COMMON_PREFIXES.has(w));
|
|
112
|
+
const chineseWords = wordsToChinese(meaningful);
|
|
113
|
+
// Also add tags from the directory name
|
|
114
|
+
const dirParts = src.split('/');
|
|
115
|
+
if (dirParts.length >= 2) {
|
|
116
|
+
const parentDir = dirParts[dirParts.length - 2];
|
|
117
|
+
const dirTag = KEYWORD_MAP[parentDir.toLowerCase()];
|
|
118
|
+
if (dirTag && !chineseWords.includes(dirTag)) {
|
|
119
|
+
chineseWords.push(dirTag);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return chineseWords.length > 0 ? chineseWords : [name];
|
|
123
|
+
}
|
|
124
|
+
function inferCategory(name, src) {
|
|
125
|
+
if (src.endsWith('.vue'))
|
|
126
|
+
return 'component';
|
|
127
|
+
if (/^use[A-Z]/.test(name))
|
|
128
|
+
return 'composable';
|
|
129
|
+
if (/^v[A-Z]/.test(name))
|
|
130
|
+
return 'directive';
|
|
131
|
+
if (/mixin$/i.test(name))
|
|
132
|
+
return 'mixin';
|
|
133
|
+
if (src.includes('/directives/'))
|
|
134
|
+
return 'directive';
|
|
135
|
+
if (src.includes('/composables/'))
|
|
136
|
+
return 'composable';
|
|
137
|
+
if (src.includes('/mixins/'))
|
|
138
|
+
return 'mixin';
|
|
139
|
+
if (src.includes('/components/'))
|
|
140
|
+
return 'component';
|
|
141
|
+
return 'function';
|
|
142
|
+
}
|
|
143
|
+
exports.RuleBasedAnalyzer = {
|
|
144
|
+
async analyze(tools, _context) {
|
|
145
|
+
return tools.map((tool) => {
|
|
146
|
+
const category = inferCategory(tool.name, tool.src);
|
|
147
|
+
return {
|
|
148
|
+
...tool,
|
|
149
|
+
category,
|
|
150
|
+
description: generateDescription(tool.name, category, tool.src),
|
|
151
|
+
tags: generateTags(tool.name, tool.src),
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=analyzer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzer.js","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":";;;AAEA,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AAC,GAAG,CAAC,CAAA;YACnD,OAAO;gBACL,GAAG,IAAI;gBACP,QAAQ;gBACR,WAAW,EAAE,mBAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC;gBAC/D,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC;aACxC,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const pipeline_js_1 = require("./pipeline.js");
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
const cwdIndex = args.indexOf('--cwd');
|
|
7
|
+
const cwd = cwdIndex !== -1 ? args[cwdIndex + 1] : process.cwd();
|
|
8
|
+
console.log('🔍 Falconwry Creator v0.37.0-alpha.1');
|
|
9
|
+
console.log(`📦 Scanner: @falconwry/scanner-vue`);
|
|
10
|
+
console.log(`📂 Project: ${cwd}\n`);
|
|
11
|
+
(0, pipeline_js_1.runPipeline)(cwd)
|
|
12
|
+
.then(({ stats }) => {
|
|
13
|
+
console.log(`📂 File scan: ${stats.fileTools} tools`);
|
|
14
|
+
console.log(`🔗 Registrations: ${stats.regTools} tools`);
|
|
15
|
+
console.log(`📎 Dependencies: ${stats.depsEntries} resolved`);
|
|
16
|
+
console.log(`🔀 Merged: ${stats.merged}`);
|
|
17
|
+
console.log(`🔬 Filtered: ${stats.filtered}`);
|
|
18
|
+
console.log(`📝 Registry: ${stats.registry} entries`);
|
|
19
|
+
console.log(`✅ Done in ${stats.elapsed}ms`);
|
|
20
|
+
console.log(`📄 Output: .falconry/map.json`);
|
|
21
|
+
})
|
|
22
|
+
.catch((err) => {
|
|
23
|
+
console.error('❌ Error:', err.message);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAE3C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AACtC,MAAM,GAAG,GAAG,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAA;AAE9D,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAA;AACnD,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAA;AACjD,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,IAAI,CAAC,CAAA;AAEnC,IAAA,yBAAW,EAAC,GAAG,CAAC;KACb,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,CAAC,SAAS,QAAQ,CAAC,CAAA;IACrD,OAAO,CAAC,GAAG,CAAC,qBAAqB,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAA;IACxD,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,CAAC,WAAW,WAAW,CAAC,CAAA;IAC7D,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,CAAC,MAAM,EAAE,CAAC,CAAA;IACzC,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC7C,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAA;IACrD,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,CAAC,OAAO,IAAI,CAAC,CAAA;IAC3C,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA;AAC9C,CAAC,CAAC;KACH,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACb,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { RawTool, AnalyzedTool, BaseRegistry, FrontendRegistry, DependentsMap, ValidationRules, Scanner, Analyzer, PromptContext, } from './types.js';
|
|
2
|
+
export { RuleBasedAnalyzer } from './analyzer.js';
|
|
3
|
+
export { OpenCodeAnalyzer, createOpenCodeAnalyzer } from './ai-analyzer.js';
|
|
4
|
+
export { runPipeline } from './pipeline.js';
|
|
5
|
+
export type { PipelineStats } from './pipeline.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,OAAO,EACP,QAAQ,EACR,aAAa,GACd,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runPipeline = exports.createOpenCodeAnalyzer = exports.OpenCodeAnalyzer = exports.RuleBasedAnalyzer = void 0;
|
|
4
|
+
var analyzer_js_1 = require("./analyzer.js");
|
|
5
|
+
Object.defineProperty(exports, "RuleBasedAnalyzer", { enumerable: true, get: function () { return analyzer_js_1.RuleBasedAnalyzer; } });
|
|
6
|
+
var ai_analyzer_js_1 = require("./ai-analyzer.js");
|
|
7
|
+
Object.defineProperty(exports, "OpenCodeAnalyzer", { enumerable: true, get: function () { return ai_analyzer_js_1.OpenCodeAnalyzer; } });
|
|
8
|
+
Object.defineProperty(exports, "createOpenCodeAnalyzer", { enumerable: true, get: function () { return ai_analyzer_js_1.createOpenCodeAnalyzer; } });
|
|
9
|
+
var pipeline_js_1 = require("./pipeline.js");
|
|
10
|
+
Object.defineProperty(exports, "runPipeline", { enumerable: true, get: function () { return pipeline_js_1.runPipeline; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAYA,6CAAiD;AAAxC,gHAAA,iBAAiB,OAAA;AAC1B,mDAA2E;AAAlE,kHAAA,gBAAgB,OAAA;AAAE,wHAAA,sBAAsB,OAAA;AACjD,6CAA2C;AAAlC,0GAAA,WAAW,OAAA"}
|
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type LogLevel = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR';
|
|
2
|
+
export declare function createLogger(projectRoot: string, minLevel?: LogLevel): {
|
|
3
|
+
debug: (msg: string) => void;
|
|
4
|
+
info: (msg: string) => void;
|
|
5
|
+
warn: (msg: string) => void;
|
|
6
|
+
error: (msg: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export type Logger = ReturnType<typeof createLogger>;
|
|
9
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAiC1D,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ;iBAcpD,MAAM;gBACP,MAAM;gBACN,MAAM;iBACL,MAAM;EAEtB;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
package/dist/logger.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.createLogger = createLogger;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const nodePath = __importStar(require("path"));
|
|
39
|
+
const NAME = 'creator';
|
|
40
|
+
const LEVEL_ORDER = {
|
|
41
|
+
DEBUG: 0,
|
|
42
|
+
INFO: 1,
|
|
43
|
+
WARN: 2,
|
|
44
|
+
ERROR: 3,
|
|
45
|
+
};
|
|
46
|
+
function resolveLevel(minLevel) {
|
|
47
|
+
const env = (process.env.FALCONRY_LOG_LEVEL?.toUpperCase() || 'INFO');
|
|
48
|
+
const threshold = LEVEL_ORDER[minLevel || env];
|
|
49
|
+
return threshold !== undefined ? threshold : LEVEL_ORDER.INFO;
|
|
50
|
+
}
|
|
51
|
+
function ensureLogDir(projectRoot) {
|
|
52
|
+
const dir = nodePath.join(projectRoot, '.falconry', 'log');
|
|
53
|
+
if (!fs.existsSync(dir)) {
|
|
54
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
55
|
+
}
|
|
56
|
+
return dir;
|
|
57
|
+
}
|
|
58
|
+
function writeLine(dir, file, line) {
|
|
59
|
+
try {
|
|
60
|
+
fs.appendFileSync(nodePath.join(dir, file), line + '\n', 'utf-8');
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
// Silently ignore write failures
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function createLogger(projectRoot, minLevel) {
|
|
67
|
+
const dir = ensureLogDir(projectRoot);
|
|
68
|
+
const threshold = resolveLevel(minLevel);
|
|
69
|
+
const levels = Object.keys(LEVEL_ORDER);
|
|
70
|
+
function log(level, msg) {
|
|
71
|
+
if (LEVEL_ORDER[level] < threshold)
|
|
72
|
+
return;
|
|
73
|
+
const ts = new Date().toISOString();
|
|
74
|
+
const line = `${ts} [${level.padEnd(5)}] [${NAME}] ${msg}`;
|
|
75
|
+
writeLine(dir, `${NAME}.log`, line);
|
|
76
|
+
writeLine(dir, 'all.log', line);
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
debug: (msg) => log('DEBUG', msg),
|
|
80
|
+
info: (msg) => log('INFO', msg),
|
|
81
|
+
warn: (msg) => log('WARN', msg),
|
|
82
|
+
error: (msg) => log('ERROR', msg),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,oCAmBC;AAvDD,uCAAwB;AACxB,+CAAgC;AAIhC,MAAM,IAAI,GAAG,SAAS,CAAA;AAEtB,MAAM,WAAW,GAA6B;IAC5C,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;CACT,CAAA;AAED,SAAS,YAAY,CAAC,QAAmB;IACvC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,WAAW,EAAE,IAAI,MAAM,CAAa,CAAA;IACjF,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,IAAI,GAAG,CAAC,CAAA;IAC9C,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAA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AAA;IACjC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC;QACzC,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;QACvC,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;QACvC,KAAK,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC;KAC1C,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BaseRegistry, Scanner } from './types.js';
|
|
2
|
+
export declare function runPipeline(projectRoot: string, scanner?: Scanner): Promise<{
|
|
3
|
+
registry: BaseRegistry[];
|
|
4
|
+
stats: PipelineStats;
|
|
5
|
+
}>;
|
|
6
|
+
export interface PipelineStats {
|
|
7
|
+
fileTools: number;
|
|
8
|
+
regTools: number;
|
|
9
|
+
depsEntries: number;
|
|
10
|
+
merged: number;
|
|
11
|
+
filtered: number;
|
|
12
|
+
registry: number;
|
|
13
|
+
elapsed: number;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAyB,YAAY,EAAiB,OAAO,EAAE,MAAM,YAAY,CAAA;AA2C7F,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,OAAoB,GAC5B,OAAO,CAAC;IAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC,CAmE7D;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
package/dist/pipeline.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.runPipeline = runPipeline;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const nodePath = __importStar(require("path"));
|
|
39
|
+
const scanner_vue_1 = require("@falconwry/scanner-vue");
|
|
40
|
+
const analyzer_js_1 = require("./analyzer.js");
|
|
41
|
+
const ai_analyzer_js_1 = require("./ai-analyzer.js");
|
|
42
|
+
const logger_js_1 = require("./logger.js");
|
|
43
|
+
const EXCLUDE_NAMES = new Set([
|
|
44
|
+
'App',
|
|
45
|
+
'main',
|
|
46
|
+
'createApp',
|
|
47
|
+
'default',
|
|
48
|
+
]);
|
|
49
|
+
function filterNonTools(tools) {
|
|
50
|
+
return tools.filter((tool) => {
|
|
51
|
+
if (EXCLUDE_NAMES.has(tool.name))
|
|
52
|
+
return false;
|
|
53
|
+
// Filter out type-only exports (no real code)
|
|
54
|
+
if (tool.code.trim().startsWith('type ') || tool.code.trim().startsWith('interface '))
|
|
55
|
+
return false;
|
|
56
|
+
// Filter out empty or tiny exports
|
|
57
|
+
if (tool.endLine - tool.startLine < 1)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function mergeAndDedupe(fileTools, regTools) {
|
|
63
|
+
const seen = new Set();
|
|
64
|
+
const merged = [];
|
|
65
|
+
for (const tool of fileTools) {
|
|
66
|
+
const key = `${tool.src}:${tool.name}`;
|
|
67
|
+
if (!seen.has(key)) {
|
|
68
|
+
seen.add(key);
|
|
69
|
+
merged.push(tool);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
for (const tool of regTools) {
|
|
73
|
+
const key = `${tool.src}:${tool.name}`;
|
|
74
|
+
if (!seen.has(key)) {
|
|
75
|
+
seen.add(key);
|
|
76
|
+
merged.push(tool);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return merged;
|
|
80
|
+
}
|
|
81
|
+
async function runPipeline(projectRoot, scanner = scanner_vue_1.VueScanner) {
|
|
82
|
+
const log = (0, logger_js_1.createLogger)(projectRoot);
|
|
83
|
+
const startTime = Date.now();
|
|
84
|
+
log.info('Pipeline started');
|
|
85
|
+
log.info(`Project: ${projectRoot}`);
|
|
86
|
+
log.info(`Scanner: ${scanner.name}`);
|
|
87
|
+
// Step 1+2: Scan files and registrations
|
|
88
|
+
log.info('Step 1: Scanning files...');
|
|
89
|
+
const t1 = Date.now();
|
|
90
|
+
const fileTools = scanner.scanFiles(projectRoot);
|
|
91
|
+
const regTools = scanner.scanRegistrations(projectRoot);
|
|
92
|
+
const deps = scanner.scanDependencies(projectRoot);
|
|
93
|
+
log.info(`File scan complete: ${fileTools.length} tools (${Date.now() - t1}ms)`);
|
|
94
|
+
log.info(`Registration scan complete: ${regTools.length} registrations`);
|
|
95
|
+
log.info(`Dependency scan complete: ${Object.keys(deps).length} resolved`);
|
|
96
|
+
// Step 3: Merge and filter
|
|
97
|
+
const merged = mergeAndDedupe(fileTools, regTools);
|
|
98
|
+
const filtered = filterNonTools(merged);
|
|
99
|
+
log.info(`Merge: ${fileTools.length} + ${regTools.length} → ${merged.length} (filtered to ${filtered.length})`);
|
|
100
|
+
// Step 4: Analyze (AI first, fallback to rule-based)
|
|
101
|
+
const context = scanner.getPromptContext(projectRoot);
|
|
102
|
+
log.info(`Context: ${context.projectType}`);
|
|
103
|
+
let analyzed;
|
|
104
|
+
const t4 = Date.now();
|
|
105
|
+
try {
|
|
106
|
+
log.info('Analysis: trying AI via OpenCode server...');
|
|
107
|
+
analyzed = await (0, ai_analyzer_js_1.createOpenCodeAnalyzer)(scanner, log).analyze(filtered, context);
|
|
108
|
+
log.info(`AI analysis complete: ${analyzed.length} tools (${Date.now() - t4}ms)`);
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
console.warn('⚠️ OpenCode server not available, falling back to rule-based analysis');
|
|
112
|
+
log.warn('OpenCode server not available, falling back to rule-based analysis');
|
|
113
|
+
analyzed = await analyzer_js_1.RuleBasedAnalyzer.analyze(filtered, context);
|
|
114
|
+
log.info(`Rule-based analysis complete: ${analyzed.length} tools (${Date.now() - t4}ms)`);
|
|
115
|
+
}
|
|
116
|
+
// Step 5: Build registry
|
|
117
|
+
const registry = scanner.buildRegistry(analyzed, deps);
|
|
118
|
+
log.info(`Registry built: ${registry.length} entries`);
|
|
119
|
+
// Step 6: Write .falconry/map.json
|
|
120
|
+
const falconryDir = nodePath.join(projectRoot, '.falconry');
|
|
121
|
+
if (!fs.existsSync(falconryDir)) {
|
|
122
|
+
fs.mkdirSync(falconryDir, { recursive: true });
|
|
123
|
+
}
|
|
124
|
+
const mapPath = nodePath.join(falconryDir, 'map.json');
|
|
125
|
+
fs.writeFileSync(mapPath, JSON.stringify(registry, null, 2), 'utf-8');
|
|
126
|
+
log.info(`Registry written to ${mapPath}`);
|
|
127
|
+
const elapsed = Date.now() - startTime;
|
|
128
|
+
log.info(`Pipeline complete: ${registry.length} entries in ${elapsed}ms`);
|
|
129
|
+
return {
|
|
130
|
+
registry,
|
|
131
|
+
stats: {
|
|
132
|
+
fileTools: fileTools.length,
|
|
133
|
+
regTools: regTools.length,
|
|
134
|
+
depsEntries: Object.keys(deps).length,
|
|
135
|
+
merged: merged.length,
|
|
136
|
+
filtered: filtered.length,
|
|
137
|
+
registry: registry.length,
|
|
138
|
+
elapsed,
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=pipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,kCAsEC;AAvHD,uCAAwB;AACxB,+CAAgC;AAChC,wDAAmD;AACnD,+CAAiD;AACjD,qDAAyD;AACzD,2CAA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4
|
+
src: string;
|
|
5
|
+
startLine: number;
|
|
6
|
+
endLine: number;
|
|
7
|
+
code: string;
|
|
8
|
+
};
|
|
9
|
+
/** AI Prompt 上下文,由 Scanner 提供 */
|
|
10
|
+
export type PromptContext = {
|
|
11
|
+
projectType: string;
|
|
12
|
+
toolConcept: string;
|
|
13
|
+
categories: string[];
|
|
14
|
+
exampleTags: string[];
|
|
15
|
+
};
|
|
16
|
+
/** 分析后的工具条目(RawTool + AI/规则分析结果) */
|
|
17
|
+
export type AnalyzedTool = RawTool & {
|
|
18
|
+
description: string;
|
|
19
|
+
category: string;
|
|
20
|
+
tags: string[];
|
|
21
|
+
};
|
|
22
|
+
/** 引用关系映射,key = `${src}:${name}` */
|
|
23
|
+
export type DependentsMap = Record<string, {
|
|
24
|
+
count: number;
|
|
25
|
+
list: string[];
|
|
26
|
+
}>;
|
|
27
|
+
/** 基础注册表字段(所有语言通用) */
|
|
28
|
+
export type BaseRegistry = {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
src: string;
|
|
32
|
+
startLine: number;
|
|
33
|
+
endLine: number;
|
|
34
|
+
category: string;
|
|
35
|
+
tags: string[];
|
|
36
|
+
dependents: {
|
|
37
|
+
count: number;
|
|
38
|
+
list: string[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/** 前端 JS/TS/Vue 注册表扩展 */
|
|
42
|
+
export type FrontendRegistry = BaseRegistry & {
|
|
43
|
+
exportName: string;
|
|
44
|
+
};
|
|
45
|
+
/** 分析器接口 — V0.2 规则引擎,V0.3 替换为 AI */
|
|
46
|
+
export interface Analyzer {
|
|
47
|
+
analyze(tools: RawTool[], context: PromptContext): Promise<AnalyzedTool[]>;
|
|
48
|
+
}
|
|
49
|
+
/** 校验规则 — 类型由 creator 定义,值由各 Scanner 提供 */
|
|
50
|
+
export type ValidationRules = {
|
|
51
|
+
description: {
|
|
52
|
+
minLength: number;
|
|
53
|
+
maxLength: number;
|
|
54
|
+
};
|
|
55
|
+
tags: {
|
|
56
|
+
minCount: number;
|
|
57
|
+
maxCount: number;
|
|
58
|
+
};
|
|
59
|
+
nameMatch: 'strict' | 'loose';
|
|
60
|
+
allowedCategories: string[];
|
|
61
|
+
};
|
|
62
|
+
/** Scanner 插件接口 */
|
|
63
|
+
export interface Scanner {
|
|
64
|
+
name: string;
|
|
65
|
+
scanFiles(projectRoot: string): RawTool[];
|
|
66
|
+
scanRegistrations(projectRoot: string): RawTool[];
|
|
67
|
+
scanDependencies(projectRoot: string): DependentsMap;
|
|
68
|
+
buildRegistry(tools: AnalyzedTool[], deps: DependentsMap): BaseRegistry[];
|
|
69
|
+
getPromptContext(projectRoot: string): PromptContext;
|
|
70
|
+
getValidationRules(): ValidationRules;
|
|
71
|
+
validateTool(tool: AnalyzedTool, rules: ValidationRules): string[];
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,8BAA8B;AAC9B,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,iCAAiC;AACjC,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAED,oCAAoC;AACpC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W,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IACjD,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CAAA;IACpD,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,aAAa,GAAG,YAAY,EAAE,CAAA;IACzE,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CAAA;IACpD,kBAAkB,IAAI,eAAe,CAAA;IACrC,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,GAAG,MAAM,EAAE,CAAA;CACnE"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B,4BAA4B"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falconwry/creator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"typecheck": "tsc --noEmit",
|
|
9
|
-
"dev": "tsx src/cli.ts"
|
|
10
|
-
},
|
|
11
6
|
"dependencies": {
|
|
12
|
-
"@falconwry/scanner-vue": "
|
|
7
|
+
"@falconwry/scanner-vue": "^0.37.0-alpha.1",
|
|
13
8
|
"@opencode-ai/sdk": "^1.17.8"
|
|
14
9
|
},
|
|
15
10
|
"devDependencies": {
|
|
16
11
|
"tsx": "^4.19.0",
|
|
17
12
|
"typescript": "^5.5.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"typecheck": "tsc --noEmit",
|
|
17
|
+
"dev": "tsx src/cli.ts"
|
|
18
18
|
}
|
|
19
|
-
}
|
|
19
|
+
}
|
package/src/cli.ts
CHANGED
|
@@ -5,7 +5,7 @@ const args = process.argv.slice(2)
|
|
|
5
5
|
const cwdIndex = args.indexOf('--cwd')
|
|
6
6
|
const cwd = cwdIndex !== -1 ? args[cwdIndex + 1] : process.cwd()
|
|
7
7
|
|
|
8
|
-
console.log('🔍 Falconwry Creator v0.
|
|
8
|
+
console.log('🔍 Falconwry Creator v0.37.0-alpha.1')
|
|
9
9
|
console.log(`📦 Scanner: @falconwry/scanner-vue`)
|
|
10
10
|
console.log(`📂 Project: ${cwd}\n`)
|
|
11
11
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.full.d.ts","./src/types.ts","./src/analyzer.ts","./src/pipeline.ts","./src/cli.ts","./src/index.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/compatibility/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/web-globals/navigator.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/web-globals/storage.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/sqlite.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@22.19.21/node_modules/@types/node/index.d.ts"],"fileIdsList":[[74,119,120,122,139,140],[74,121,122,139,140],[122,139,140],[74,122,127,139,140,157],[74,122,123,128,133,139,140,142,154,165],[74,122,123,124,133,139,140,142],[74,122,139,140],[69,70,71,74,122,139,140],[74,122,125,139,140,166],[74,122,126,127,134,139,140,143],[74,122,127,139,140,154,162],[74,122,128,130,133,139,140,142],[74,121,122,129,139,140],[74,122,130,131,139,140],[74,122,132,133,139,140],[74,121,122,133,139,140],[74,122,133,134,135,139,140,154,165],[74,122,133,134,135,139,140,149,154,157],[74,115,122,130,133,136,139,140,142,154,165],[74,122,133,134,136,137,139,140,142,154,162,165],[74,122,136,138,139,140,154,162,165],[72,73,74,75,76,77,78,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[74,122,133,139,140],[74,122,139,140,141,165],[74,122,130,133,139,140,142,154],[74,122,139,140,143],[74,122,139,140,144],[74,121,122,139,140,145],[74,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[74,122,139,140,147],[74,122,139,140,148],[74,122,133,139,140,149,150],[74,122,139,140,149,151,166,168],[74,122,134,139,140],[74,122,133,139,140,154,155,157],[74,122,139,140,156,157],[74,122,139,140,154,155],[74,122,139,140,157],[74,122,139,140,158],[74,119,122,139,140,154,159,165],[74,122,133,139,140,160,161],[74,122,139,140,160,161],[74,122,127,139,140,142,154,162],[74,122,139,140,163],[74,122,139,140,142,164],[74,122,136,139,140,148,165],[74,122,127,139,140,166],[74,122,139,140,154,167],[74,122,139,140,141,168],[74,122,139,140,169],[74,115,122,139,140],[74,115,122,133,135,139,140,145,154,157,165,167,168,170],[74,122,139,140,154,171],[74,87,91,122,139,140,165],[74,87,122,139,140,154,165],[74,82,122,139,140],[74,84,87,122,139,140,162,165],[74,122,139,140,142,162],[74,122,139,140,172],[74,82,122,139,140,172],[74,84,87,122,139,140,142,165],[74,79,80,83,86,122,133,139,140,154,165],[74,87,94,122,139,140],[74,79,85,122,139,140],[74,87,108,109,122,139,140],[74,83,87,122,139,140,157,165,172],[74,108,122,139,140,172],[74,81,82,122,139,140,172],[74,87,122,139,140],[74,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,122,139,140],[74,87,102,122,139,140],[74,87,94,95,122,139,140],[74,85,87,95,96,122,139,140],[74,86,122,139,140],[74,79,82,87,122,139,140],[74,87,91,95,96,122,139,140],[74,91,122,139,140],[74,85,87,90,122,139,140,165],[74,79,84,87,94,122,139,140],[74,122,139,140,154],[74,82,87,108,122,139,140,170,172],[64,74,122,139,140],[66,74,122,139,140],[64,65,66,74,122,139,140],[64,65,74,122,134,139,140,144]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},{"version":"3b734e9355a946340abf704402b4f1aec722ac8c03d06879386d35c51ee16b99","signature":"cf325e47a9eae1c635f3e4c6147ebdbf2581dc1e48d58b4333e4fbda4f027c0b"},{"version":"28d4980112863aeb68af2b686603492f849c64b3bbe0e46761535ab3c14b2fbb","signature":"d6bd6467cd3e094a33794fa6105d8b5216c94fd57aeca8505663d069bbc72a0e"},{"version":"493e0040211c9bc11d98cdcd9c3400301a7ce6840eb150c26baf20c008c8501c","signature":"3bafa7e707945665d21d81c6d8e3c461ccb445cc37996874b8f7475bc3897e1c"},{"version":"c2a81f08d6cb32e020efda6bb51e27f9e1844558bf1fee51e2c84903f2cda646","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"5635ab8eff5af3156afb66758fc25e6eedeb7510280eb30012e6386ee75de0f9","signature":"0b141ea5c5bf25a7ceda3e3895ecbf54f90da333a7066181ce7d500de90b4582"},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"9018e9493596e2d041fc531f5101a0d05f9d2e1311f4ae3c74345b1766158c08","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"80523c00b8544a2000ae0143e4a90a00b47f99823eb7926c1e03c494216fc363","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"746911b62b329587939560deb5c036aca48aece03147b021fa680223255d5183","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[[64,68]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[119,1],[120,1],[121,2],[74,3],[122,4],[123,5],[124,6],[69,7],[72,8],[70,7],[71,7],[125,9],[126,10],[127,11],[128,12],[129,13],[130,14],[131,14],[132,15],[133,16],[134,17],[135,18],[75,7],[73,7],[136,19],[137,20],[138,21],[172,22],[139,23],[140,7],[141,24],[142,25],[143,26],[144,27],[145,28],[146,29],[147,30],[148,31],[149,32],[150,32],[151,33],[152,7],[153,34],[154,35],[156,36],[155,37],[157,38],[158,39],[159,40],[160,41],[161,42],[162,43],[163,44],[164,45],[165,46],[166,47],[167,48],[168,49],[169,50],[76,7],[77,7],[78,7],[116,51],[117,7],[118,7],[170,52],[171,53],[61,7],[62,7],[12,7],[10,7],[11,7],[16,7],[15,7],[2,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[23,7],[24,7],[3,7],[25,7],[26,7],[4,7],[27,7],[31,7],[28,7],[29,7],[30,7],[32,7],[33,7],[34,7],[5,7],[35,7],[36,7],[37,7],[38,7],[6,7],[42,7],[39,7],[40,7],[41,7],[43,7],[7,7],[44,7],[49,7],[50,7],[45,7],[46,7],[47,7],[48,7],[8,7],[54,7],[51,7],[52,7],[53,7],[55,7],[9,7],[56,7],[63,7],[57,7],[58,7],[60,7],[59,7],[1,7],[14,7],[13,7],[94,54],[104,55],[93,54],[114,56],[85,57],[84,58],[113,59],[107,60],[112,61],[87,62],[101,63],[86,64],[110,65],[82,66],[81,59],[111,67],[83,68],[88,69],[89,7],[92,69],[79,7],[115,70],[105,71],[96,72],[97,73],[99,74],[95,75],[98,76],[108,59],[90,77],[91,78],[100,79],[80,80],[103,71],[102,69],[106,7],[109,81],[65,82],[67,83],[68,84],[66,85],[64,7]],"semanticDiagnosticsPerFile":[[66,[{"start":85,"length":23,"messageText":"Cannot find module '@falconry/scanner-vue' or its corresponding type declarations.","category":1,"code":2307}]]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}
|