@structured-world/gitlab-mcp 13.3.0 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/README.md.in +3 -2
- package/dist/src/configuration/call-scope.d.ts +3 -0
- package/dist/src/configuration/call-scope.js +27 -0
- package/dist/src/configuration/call-scope.js.map +1 -0
- package/dist/src/configuration/operator-projects.js +1 -0
- package/dist/src/configuration/operator-projects.js.map +1 -1
- package/dist/src/configuration/policy.d.ts +1 -0
- package/dist/src/configuration/policy.js.map +1 -1
- package/dist/src/entities/pipelines/job-log-sections.d.ts +36 -0
- package/dist/src/entities/pipelines/job-log-sections.js +79 -0
- package/dist/src/entities/pipelines/job-log-sections.js.map +1 -0
- package/dist/src/entities/pipelines/line-grep-worker.d.ts +18 -0
- package/dist/src/entities/pipelines/line-grep-worker.js +296 -0
- package/dist/src/entities/pipelines/line-grep-worker.js.map +1 -0
- package/dist/src/entities/pipelines/line-grep.d.ts +165 -0
- package/dist/src/entities/pipelines/line-grep.js +785 -0
- package/dist/src/entities/pipelines/line-grep.js.map +1 -0
- package/dist/src/entities/pipelines/log-sections.d.ts +57 -0
- package/dist/src/entities/pipelines/log-sections.js +156 -0
- package/dist/src/entities/pipelines/log-sections.js.map +1 -0
- package/dist/src/entities/pipelines/pipeline-grep.d.ts +49 -0
- package/dist/src/entities/pipelines/pipeline-grep.js +327 -0
- package/dist/src/entities/pipelines/pipeline-grep.js.map +1 -0
- package/dist/src/entities/pipelines/registry.js +31 -15
- package/dist/src/entities/pipelines/registry.js.map +1 -1
- package/dist/src/entities/pipelines/schema-readonly.d.ts +55 -0
- package/dist/src/entities/pipelines/schema-readonly.js +152 -5
- package/dist/src/entities/pipelines/schema-readonly.js.map +1 -1
- package/dist/src/entities/pipelines/section-markers.d.ts +89 -0
- package/dist/src/entities/pipelines/section-markers.js +491 -0
- package/dist/src/entities/pipelines/section-markers.js.map +1 -0
- package/dist/src/entities/pipelines/trace-open.d.ts +1 -0
- package/dist/src/entities/pipelines/trace-open.js +23 -0
- package/dist/src/entities/pipelines/trace-open.js.map +1 -0
- package/dist/src/entities/pipelines/trace.d.ts +6 -1
- package/dist/src/entities/pipelines/trace.js +14 -11
- package/dist/src/entities/pipelines/trace.js.map +1 -1
- package/dist/src/handlers.js +3 -1
- package/dist/src/handlers.js.map +1 -1
- package/dist/src/server.js +7 -0
- package/dist/src/server.js.map +1 -1
- package/dist/src/utils/re2-compile.d.ts +4 -0
- package/dist/src/utils/re2-compile.js +58 -0
- package/dist/src/utils/re2-compile.js.map +1 -0
- package/dist/src/utils/re2-pattern.d.ts +7 -0
- package/dist/src/utils/re2-pattern.js +16 -0
- package/dist/src/utils/re2-pattern.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +16 -16
- package/skills/gitlab-ci/SKILL.md +2 -2
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import type { MessagePort } from 'node:worker_threads';
|
|
2
|
+
import { type SectionBounds, type SectionListing, type SectionTarget } from './log-sections';
|
|
3
|
+
export interface LineGrepOptions {
|
|
4
|
+
patterns: readonly string[];
|
|
5
|
+
preset?: 'failures';
|
|
6
|
+
before: number;
|
|
7
|
+
after: number;
|
|
8
|
+
maxMatches: number;
|
|
9
|
+
invert: boolean;
|
|
10
|
+
startLine: number;
|
|
11
|
+
normalize: boolean;
|
|
12
|
+
budgetMs: number;
|
|
13
|
+
spent?: Int32Array;
|
|
14
|
+
outputBytes: number;
|
|
15
|
+
section?: SectionTarget;
|
|
16
|
+
listSections?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface GrepMatch {
|
|
19
|
+
line: number;
|
|
20
|
+
patterns: readonly number[];
|
|
21
|
+
}
|
|
22
|
+
export interface GrepHunk {
|
|
23
|
+
start_line: number;
|
|
24
|
+
lines: string[];
|
|
25
|
+
matches: GrepMatch[];
|
|
26
|
+
timestamps?: Array<string | null>;
|
|
27
|
+
clipped?: Array<{
|
|
28
|
+
line: number;
|
|
29
|
+
omitted_bytes: number;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export type GrepTruncation = 'max_matches' | 'budget' | 'output_limit' | 'worker_timeout';
|
|
33
|
+
export interface LineGrepResult {
|
|
34
|
+
hunks: GrepHunk[];
|
|
35
|
+
match_count: number;
|
|
36
|
+
match_count_complete: boolean;
|
|
37
|
+
scanned_lines: number;
|
|
38
|
+
total_lines: number | null;
|
|
39
|
+
truncated: GrepTruncation | null;
|
|
40
|
+
resume_from: number | null;
|
|
41
|
+
preset_index?: number;
|
|
42
|
+
section?: SectionBounds | null;
|
|
43
|
+
sections?: SectionListing;
|
|
44
|
+
}
|
|
45
|
+
export interface LineGrepProgress {
|
|
46
|
+
hunks: GrepHunk[];
|
|
47
|
+
match_count: number;
|
|
48
|
+
scanned_lines: number;
|
|
49
|
+
safe_resume: number;
|
|
50
|
+
exhausted: boolean;
|
|
51
|
+
section?: SectionBounds | null;
|
|
52
|
+
}
|
|
53
|
+
export declare class LineGrepScanner {
|
|
54
|
+
private readonly matcher;
|
|
55
|
+
private readonly sections;
|
|
56
|
+
private readonly searchesSection;
|
|
57
|
+
private readonly listsSections;
|
|
58
|
+
private readonly stream;
|
|
59
|
+
private readonly presetIndex;
|
|
60
|
+
private readonly before;
|
|
61
|
+
private readonly after;
|
|
62
|
+
private readonly maxMatches;
|
|
63
|
+
private readonly invert;
|
|
64
|
+
private readonly startLine;
|
|
65
|
+
private readonly firstKept;
|
|
66
|
+
private readonly firstStored;
|
|
67
|
+
private readonly normalize;
|
|
68
|
+
private readonly budgetMs;
|
|
69
|
+
private readonly outputLimit;
|
|
70
|
+
private ringSize;
|
|
71
|
+
private ring;
|
|
72
|
+
private ringLength;
|
|
73
|
+
private ringOmitted;
|
|
74
|
+
private ringStamp;
|
|
75
|
+
private ringHasStamp;
|
|
76
|
+
private readonly carry;
|
|
77
|
+
private readonly decoder;
|
|
78
|
+
private carryLength;
|
|
79
|
+
private lineBytes;
|
|
80
|
+
private line;
|
|
81
|
+
private chainLength;
|
|
82
|
+
private groupOpen;
|
|
83
|
+
private groupFirst;
|
|
84
|
+
private groupEnd;
|
|
85
|
+
private groupMatchable;
|
|
86
|
+
private logical;
|
|
87
|
+
private outbox;
|
|
88
|
+
private pending;
|
|
89
|
+
private closedHunks;
|
|
90
|
+
private outputBytes;
|
|
91
|
+
private lastEmitted;
|
|
92
|
+
private afterRemaining;
|
|
93
|
+
private recorded;
|
|
94
|
+
private lastRecorded;
|
|
95
|
+
private matchCount;
|
|
96
|
+
private draining;
|
|
97
|
+
private stop;
|
|
98
|
+
private stopLine;
|
|
99
|
+
private outputResume;
|
|
100
|
+
private readonly spent;
|
|
101
|
+
private charged;
|
|
102
|
+
private sinceCheck;
|
|
103
|
+
constructor(options: LineGrepOptions);
|
|
104
|
+
private growRing;
|
|
105
|
+
get exhausted(): boolean;
|
|
106
|
+
push(chunk: Uint8Array): void;
|
|
107
|
+
private charge;
|
|
108
|
+
private collect;
|
|
109
|
+
private endLine;
|
|
110
|
+
progress(): LineGrepProgress;
|
|
111
|
+
finish(): LineGrepResult;
|
|
112
|
+
private applyMarkers;
|
|
113
|
+
private takeHidden;
|
|
114
|
+
private resumePoint;
|
|
115
|
+
private halt;
|
|
116
|
+
private overBudget;
|
|
117
|
+
private chain;
|
|
118
|
+
private finishLine;
|
|
119
|
+
private store;
|
|
120
|
+
private openGroup;
|
|
121
|
+
private renderGroup;
|
|
122
|
+
private clearHidden;
|
|
123
|
+
private joinGroup;
|
|
124
|
+
private splitGroup;
|
|
125
|
+
private static fragmentOffset;
|
|
126
|
+
private matchFragments;
|
|
127
|
+
private closeGroup;
|
|
128
|
+
private place;
|
|
129
|
+
private record;
|
|
130
|
+
private emit;
|
|
131
|
+
private restartAtMatch;
|
|
132
|
+
private stopForOutput;
|
|
133
|
+
private closePending;
|
|
134
|
+
}
|
|
135
|
+
export type GrepRequest = {
|
|
136
|
+
type: 'start';
|
|
137
|
+
options: LineGrepOptions;
|
|
138
|
+
} | {
|
|
139
|
+
type: 'chunk';
|
|
140
|
+
buffer: ArrayBuffer;
|
|
141
|
+
offset: number;
|
|
142
|
+
length: number;
|
|
143
|
+
} | {
|
|
144
|
+
type: 'end';
|
|
145
|
+
} | {
|
|
146
|
+
type: 'reset';
|
|
147
|
+
};
|
|
148
|
+
export type GrepReply = {
|
|
149
|
+
type: 'ready';
|
|
150
|
+
} | {
|
|
151
|
+
type: 'invalid';
|
|
152
|
+
message: string;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'progress';
|
|
155
|
+
progress: LineGrepProgress;
|
|
156
|
+
buffer: ArrayBuffer;
|
|
157
|
+
} | {
|
|
158
|
+
type: 'done';
|
|
159
|
+
result: LineGrepResult;
|
|
160
|
+
} | {
|
|
161
|
+
type: 'failed';
|
|
162
|
+
message: string;
|
|
163
|
+
};
|
|
164
|
+
export type GrepPort = Pick<MessagePort, 'on' | 'postMessage'>;
|
|
165
|
+
export declare function serveLineGrep(port: GrepPort): void;
|