@alint-js/plugin 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +18 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -710,7 +710,7 @@ interface Config<TIssue extends BaseIssue<unknown>> {
|
|
|
710
710
|
readonly abortPipeEarly?: boolean | undefined;
|
|
711
711
|
}
|
|
712
712
|
//#endregion
|
|
713
|
-
//#region ../core/dist/types-
|
|
713
|
+
//#region ../core/dist/types-DKylUrAn.d.mts
|
|
714
714
|
//#region src/config/types.d.ts
|
|
715
715
|
type ModelSize = 'large' | 'medium' | 'small';
|
|
716
716
|
interface RunnerCacheConfig {
|
|
@@ -853,11 +853,24 @@ interface ProcessorDefinition {
|
|
|
853
853
|
postprocess?: (diagnostics: DiagnosticDescriptor[], context: ProcessorPostprocessContext) => Awaitable<DiagnosticDescriptor[]>;
|
|
854
854
|
preprocess: (file: SourceFile, context: ProcessorContext) => Awaitable<ProcessedSource[]>;
|
|
855
855
|
}
|
|
856
|
+
interface ProjectFileEntry {
|
|
857
|
+
contentHash: string;
|
|
858
|
+
language: string;
|
|
859
|
+
path: string;
|
|
860
|
+
targetCount: number;
|
|
861
|
+
}
|
|
856
862
|
interface ProjectTarget {
|
|
857
|
-
files:
|
|
863
|
+
files: readonly ProjectFileEntry[];
|
|
858
864
|
kind: 'project';
|
|
859
865
|
root: string;
|
|
860
|
-
targets:
|
|
866
|
+
targets: readonly ProjectTargetEntry[];
|
|
867
|
+
}
|
|
868
|
+
interface ProjectTargetEntry {
|
|
869
|
+
filePath: string;
|
|
870
|
+
identity: string;
|
|
871
|
+
kind: string;
|
|
872
|
+
name?: string;
|
|
873
|
+
range?: SourceRange;
|
|
861
874
|
}
|
|
862
875
|
type RuleCacheConfig = boolean | {
|
|
863
876
|
level?: 'target';
|
|
@@ -933,7 +946,7 @@ interface RuleWithHandler {
|
|
|
933
946
|
}
|
|
934
947
|
type Target = DirectoryTarget | ProjectTarget | SourceTarget;
|
|
935
948
|
//#endregion
|
|
936
|
-
//#region ../core/dist/define-
|
|
949
|
+
//#region ../core/dist/define-8BzWDcPs.d.mts
|
|
937
950
|
//#region src/dsl/define.d.ts
|
|
938
951
|
type AnyRuleDefinition = RuleDefinition<any>;
|
|
939
952
|
type ConfigItemWithPluginRules<Plugins, Rules> = Omit<AlintConfigItem, 'plugins' | 'rules'> & {
|
|
@@ -978,4 +991,4 @@ declare function isRetryableAgentError(error: unknown): error is RetryableAgentE
|
|
|
978
991
|
declare function defineTool(tool: AgentTool): AgentTool;
|
|
979
992
|
declare function requireAgent(context: Pick<RuleContext, 'agent' | 'id' | 'signal'>): AgentAdapter;
|
|
980
993
|
//#endregion
|
|
981
|
-
export { type AgentAdapter, type AgentRequest, type AgentResult, type AgentTool, type AgentUsage, type AlintConfig, type AlintConfigExtends, type AlintConfigInput, type AlintConfigItem, type AlintLinterOptions, type Awaitable, type ClassTarget, type DiagnosticDescriptor, type DiagnosticLocation, type DirectoryTarget, type EnabledRule, type FileTarget, type FunctionTarget, type IgnoreConfig, type LanguageContext, type LanguageDefinition, type LineRange, type ModelRequirement, type PluginDefinition, type ProcessedSource, type ProcessedSourceOrigin, type ProcessorContext, type ProcessorDefinition, type ProcessorPostprocessContext, type ProjectTarget, type ResolvedModel, type ResolvedProvider, RetryableAgentError, type RuleCacheConfig, type RuleConfigEntry, type RuleContext, type RuleDefinition, type RuleHandlers, type RuleInferenceUsageRecord, type RuleRegistry, type RuleSeverity, type RuleSpecializedHandlers, type RuleWithHandler, type SourceFile, type SourceLocation, type SourcePosition, type SourceRange, type SourceRuntime, type SourceTarget, type SourceTargetKind, type SourceTargetOfKind, type SourceTargetOrigin, type SourceText, type Target, defineConfig, definePlugin, defineRule, defineTool, isRetryableAgentError, requireAgent };
|
|
994
|
+
export { type AgentAdapter, type AgentRequest, type AgentResult, type AgentTool, type AgentUsage, type AlintConfig, type AlintConfigExtends, type AlintConfigInput, type AlintConfigItem, type AlintLinterOptions, type Awaitable, type ClassTarget, type DiagnosticDescriptor, type DiagnosticLocation, type DirectoryTarget, type EnabledRule, type FileTarget, type FunctionTarget, type IgnoreConfig, type LanguageContext, type LanguageDefinition, type LineRange, type ModelRequirement, type PluginDefinition, type ProcessedSource, type ProcessedSourceOrigin, type ProcessorContext, type ProcessorDefinition, type ProcessorPostprocessContext, type ProjectFileEntry, type ProjectTarget, type ProjectTargetEntry, type ResolvedModel, type ResolvedProvider, RetryableAgentError, type RuleCacheConfig, type RuleConfigEntry, type RuleContext, type RuleDefinition, type RuleHandlers, type RuleInferenceUsageRecord, type RuleRegistry, type RuleSeverity, type RuleSpecializedHandlers, type RuleWithHandler, type SourceFile, type SourceLocation, type SourcePosition, type SourceRange, type SourceRuntime, type SourceTarget, type SourceTargetKind, type SourceTargetOfKind, type SourceTargetOrigin, type SourceText, type Target, defineConfig, definePlugin, defineRule, defineTool, isRetryableAgentError, requireAgent };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"valibot": "^1.4.2",
|
|
17
|
-
"@alint-js/core": "0.1.
|
|
17
|
+
"@alint-js/core": "0.1.2"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsdown",
|