@zibby/skills 0.1.34 → 0.1.35
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 +2 -0
- package/dist/browser.d.ts +19 -0
- package/dist/chat-memory.d.ts +355 -0
- package/dist/chat-notify.d.ts +409 -0
- package/dist/core-tools.d.ts +131 -0
- package/dist/function-skill.d.ts +149 -0
- package/dist/git.d.ts +72 -0
- package/dist/github.d.ts +777 -0
- package/dist/gitlab.d.ts +396 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +43 -43
- package/dist/integrations.d.ts +110 -0
- package/dist/jira.d.ts +547 -0
- package/dist/lark.d.ts +161 -0
- package/dist/linear.d.ts +344 -0
- package/dist/llm-billing.d.ts +294 -0
- package/dist/memory.d.ts +137 -0
- package/dist/package.json +67 -19
- package/dist/plane.d.ts +24 -0
- package/dist/report.d.ts +354 -0
- package/dist/report.js +9 -9
- package/dist/sentry.d.ts +43 -0
- package/dist/skill-installer.d.ts +86 -0
- package/dist/slack.d.ts +284 -0
- package/dist/test-runner.d.ts +220 -0
- package/dist/trackers/github-adapter.d.ts +96 -0
- package/dist/trackers/index.d.ts +27 -0
- package/dist/trackers/jira-adapter.d.ts +90 -0
- package/dist/trackers/linear-adapter.d.ts +89 -0
- package/dist/trackers/plane-adapter.d.ts +101 -0
- package/dist/trackers/types.d.ts +335 -0
- package/dist/workflow-builder.d.ts +245 -0
- package/package.json +67 -19
package/dist/gitlab.d.ts
ADDED
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Low-level GitLab REST helper. Throws on non-2xx, returns parsed JSON
|
|
3
|
+
* (or raw text when opts.raw). Exported so a future gitlabAdapter (neutral
|
|
4
|
+
* tracker layer) can reach endpoints the tools don't cover without
|
|
5
|
+
* re-implementing auth — keep this the single auth chokepoint.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} path API path beginning with `/` (relative to /api/v4),
|
|
8
|
+
* or a full https:// url.
|
|
9
|
+
* @param {{ method?: string, body?: object, raw?: boolean }} [opts]
|
|
10
|
+
*/
|
|
11
|
+
export function glFetch(path: string, opts?: {
|
|
12
|
+
method?: string;
|
|
13
|
+
body?: object;
|
|
14
|
+
raw?: boolean;
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
export namespace gitlabSkill {
|
|
17
|
+
let id: string;
|
|
18
|
+
let serverName: string;
|
|
19
|
+
let allowedTools: string[];
|
|
20
|
+
let requiresIntegration: "gitlab";
|
|
21
|
+
let envKeys: string[];
|
|
22
|
+
let description: string;
|
|
23
|
+
let promptFragment: string;
|
|
24
|
+
function resolve(): {
|
|
25
|
+
command: any;
|
|
26
|
+
args: any[];
|
|
27
|
+
env: {};
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
function handleToolCall(name: any, args: any): Promise<string>;
|
|
31
|
+
let tools: ({
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
input_schema: {
|
|
35
|
+
type: string;
|
|
36
|
+
properties: {
|
|
37
|
+
projectId: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
iid: {
|
|
42
|
+
type: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
state?: undefined;
|
|
46
|
+
targetBranch?: undefined;
|
|
47
|
+
sourceBranch?: undefined;
|
|
48
|
+
authorUsername?: undefined;
|
|
49
|
+
labels?: undefined;
|
|
50
|
+
search?: undefined;
|
|
51
|
+
orderBy?: undefined;
|
|
52
|
+
sort?: undefined;
|
|
53
|
+
limit?: undefined;
|
|
54
|
+
body?: undefined;
|
|
55
|
+
path?: undefined;
|
|
56
|
+
oldPath?: undefined;
|
|
57
|
+
newLine?: undefined;
|
|
58
|
+
oldLine?: undefined;
|
|
59
|
+
diffRefs?: undefined;
|
|
60
|
+
comments?: undefined;
|
|
61
|
+
assigneeUsername?: undefined;
|
|
62
|
+
updatedAfter?: undefined;
|
|
63
|
+
};
|
|
64
|
+
required: string[];
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
description: string;
|
|
69
|
+
input_schema: {
|
|
70
|
+
type: string;
|
|
71
|
+
properties: {
|
|
72
|
+
projectId: {
|
|
73
|
+
type: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
state: {
|
|
77
|
+
type: string;
|
|
78
|
+
enum: string[];
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
targetBranch: {
|
|
82
|
+
type: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
sourceBranch: {
|
|
86
|
+
type: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
authorUsername: {
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
labels: {
|
|
94
|
+
type: string;
|
|
95
|
+
items: {
|
|
96
|
+
type: string;
|
|
97
|
+
};
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
search: {
|
|
101
|
+
type: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
orderBy: {
|
|
105
|
+
type: string;
|
|
106
|
+
enum: string[];
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
sort: {
|
|
110
|
+
type: string;
|
|
111
|
+
enum: string[];
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
limit: {
|
|
115
|
+
type: string;
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
iid?: undefined;
|
|
119
|
+
body?: undefined;
|
|
120
|
+
path?: undefined;
|
|
121
|
+
oldPath?: undefined;
|
|
122
|
+
newLine?: undefined;
|
|
123
|
+
oldLine?: undefined;
|
|
124
|
+
diffRefs?: undefined;
|
|
125
|
+
comments?: undefined;
|
|
126
|
+
assigneeUsername?: undefined;
|
|
127
|
+
updatedAfter?: undefined;
|
|
128
|
+
};
|
|
129
|
+
required: string[];
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
name: string;
|
|
133
|
+
description: string;
|
|
134
|
+
input_schema: {
|
|
135
|
+
type: string;
|
|
136
|
+
properties: {
|
|
137
|
+
projectId: {
|
|
138
|
+
type: string;
|
|
139
|
+
description: string;
|
|
140
|
+
};
|
|
141
|
+
iid: {
|
|
142
|
+
type: string;
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
limit: {
|
|
146
|
+
type: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
state?: undefined;
|
|
150
|
+
targetBranch?: undefined;
|
|
151
|
+
sourceBranch?: undefined;
|
|
152
|
+
authorUsername?: undefined;
|
|
153
|
+
labels?: undefined;
|
|
154
|
+
search?: undefined;
|
|
155
|
+
orderBy?: undefined;
|
|
156
|
+
sort?: undefined;
|
|
157
|
+
body?: undefined;
|
|
158
|
+
path?: undefined;
|
|
159
|
+
oldPath?: undefined;
|
|
160
|
+
newLine?: undefined;
|
|
161
|
+
oldLine?: undefined;
|
|
162
|
+
diffRefs?: undefined;
|
|
163
|
+
comments?: undefined;
|
|
164
|
+
assigneeUsername?: undefined;
|
|
165
|
+
updatedAfter?: undefined;
|
|
166
|
+
};
|
|
167
|
+
required: string[];
|
|
168
|
+
};
|
|
169
|
+
} | {
|
|
170
|
+
name: string;
|
|
171
|
+
description: string;
|
|
172
|
+
input_schema: {
|
|
173
|
+
type: string;
|
|
174
|
+
properties: {
|
|
175
|
+
projectId: {
|
|
176
|
+
type: string;
|
|
177
|
+
description: string;
|
|
178
|
+
};
|
|
179
|
+
iid: {
|
|
180
|
+
type: string;
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
body: {
|
|
184
|
+
type: string;
|
|
185
|
+
description: string;
|
|
186
|
+
};
|
|
187
|
+
state?: undefined;
|
|
188
|
+
targetBranch?: undefined;
|
|
189
|
+
sourceBranch?: undefined;
|
|
190
|
+
authorUsername?: undefined;
|
|
191
|
+
labels?: undefined;
|
|
192
|
+
search?: undefined;
|
|
193
|
+
orderBy?: undefined;
|
|
194
|
+
sort?: undefined;
|
|
195
|
+
limit?: undefined;
|
|
196
|
+
path?: undefined;
|
|
197
|
+
oldPath?: undefined;
|
|
198
|
+
newLine?: undefined;
|
|
199
|
+
oldLine?: undefined;
|
|
200
|
+
diffRefs?: undefined;
|
|
201
|
+
comments?: undefined;
|
|
202
|
+
assigneeUsername?: undefined;
|
|
203
|
+
updatedAfter?: undefined;
|
|
204
|
+
};
|
|
205
|
+
required: string[];
|
|
206
|
+
};
|
|
207
|
+
} | {
|
|
208
|
+
name: string;
|
|
209
|
+
description: string;
|
|
210
|
+
input_schema: {
|
|
211
|
+
type: string;
|
|
212
|
+
properties: {
|
|
213
|
+
projectId: {
|
|
214
|
+
type: string;
|
|
215
|
+
description: string;
|
|
216
|
+
};
|
|
217
|
+
iid: {
|
|
218
|
+
type: string;
|
|
219
|
+
description: string;
|
|
220
|
+
};
|
|
221
|
+
path: {
|
|
222
|
+
type: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
225
|
+
oldPath: {
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
};
|
|
229
|
+
newLine: {
|
|
230
|
+
type: string;
|
|
231
|
+
description: string;
|
|
232
|
+
};
|
|
233
|
+
oldLine: {
|
|
234
|
+
type: string;
|
|
235
|
+
description: string;
|
|
236
|
+
};
|
|
237
|
+
body: {
|
|
238
|
+
type: string;
|
|
239
|
+
description: string;
|
|
240
|
+
};
|
|
241
|
+
diffRefs: {
|
|
242
|
+
type: string;
|
|
243
|
+
description: string;
|
|
244
|
+
};
|
|
245
|
+
state?: undefined;
|
|
246
|
+
targetBranch?: undefined;
|
|
247
|
+
sourceBranch?: undefined;
|
|
248
|
+
authorUsername?: undefined;
|
|
249
|
+
labels?: undefined;
|
|
250
|
+
search?: undefined;
|
|
251
|
+
orderBy?: undefined;
|
|
252
|
+
sort?: undefined;
|
|
253
|
+
limit?: undefined;
|
|
254
|
+
comments?: undefined;
|
|
255
|
+
assigneeUsername?: undefined;
|
|
256
|
+
updatedAfter?: undefined;
|
|
257
|
+
};
|
|
258
|
+
required: string[];
|
|
259
|
+
};
|
|
260
|
+
} | {
|
|
261
|
+
name: string;
|
|
262
|
+
description: string;
|
|
263
|
+
input_schema: {
|
|
264
|
+
type: string;
|
|
265
|
+
properties: {
|
|
266
|
+
projectId: {
|
|
267
|
+
type: string;
|
|
268
|
+
description: string;
|
|
269
|
+
};
|
|
270
|
+
iid: {
|
|
271
|
+
type: string;
|
|
272
|
+
description: string;
|
|
273
|
+
};
|
|
274
|
+
body: {
|
|
275
|
+
type: string;
|
|
276
|
+
description: string;
|
|
277
|
+
};
|
|
278
|
+
diffRefs: {
|
|
279
|
+
type: string;
|
|
280
|
+
description: string;
|
|
281
|
+
};
|
|
282
|
+
comments: {
|
|
283
|
+
type: string;
|
|
284
|
+
description: string;
|
|
285
|
+
items: {
|
|
286
|
+
type: string;
|
|
287
|
+
properties: {
|
|
288
|
+
path: {
|
|
289
|
+
type: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
292
|
+
oldPath: {
|
|
293
|
+
type: string;
|
|
294
|
+
description: string;
|
|
295
|
+
};
|
|
296
|
+
newLine: {
|
|
297
|
+
type: string;
|
|
298
|
+
description: string;
|
|
299
|
+
};
|
|
300
|
+
oldLine: {
|
|
301
|
+
type: string;
|
|
302
|
+
description: string;
|
|
303
|
+
};
|
|
304
|
+
body: {
|
|
305
|
+
type: string;
|
|
306
|
+
description: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
required: string[];
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
state?: undefined;
|
|
313
|
+
targetBranch?: undefined;
|
|
314
|
+
sourceBranch?: undefined;
|
|
315
|
+
authorUsername?: undefined;
|
|
316
|
+
labels?: undefined;
|
|
317
|
+
search?: undefined;
|
|
318
|
+
orderBy?: undefined;
|
|
319
|
+
sort?: undefined;
|
|
320
|
+
limit?: undefined;
|
|
321
|
+
path?: undefined;
|
|
322
|
+
oldPath?: undefined;
|
|
323
|
+
newLine?: undefined;
|
|
324
|
+
oldLine?: undefined;
|
|
325
|
+
assigneeUsername?: undefined;
|
|
326
|
+
updatedAfter?: undefined;
|
|
327
|
+
};
|
|
328
|
+
required: string[];
|
|
329
|
+
};
|
|
330
|
+
} | {
|
|
331
|
+
name: string;
|
|
332
|
+
description: string;
|
|
333
|
+
input_schema: {
|
|
334
|
+
type: string;
|
|
335
|
+
properties: {
|
|
336
|
+
projectId: {
|
|
337
|
+
type: string;
|
|
338
|
+
description: string;
|
|
339
|
+
};
|
|
340
|
+
state: {
|
|
341
|
+
type: string;
|
|
342
|
+
enum: string[];
|
|
343
|
+
description: string;
|
|
344
|
+
};
|
|
345
|
+
labels: {
|
|
346
|
+
type: string;
|
|
347
|
+
items: {
|
|
348
|
+
type: string;
|
|
349
|
+
};
|
|
350
|
+
description: string;
|
|
351
|
+
};
|
|
352
|
+
assigneeUsername: {
|
|
353
|
+
type: string;
|
|
354
|
+
description: string;
|
|
355
|
+
};
|
|
356
|
+
authorUsername: {
|
|
357
|
+
type: string;
|
|
358
|
+
description: string;
|
|
359
|
+
};
|
|
360
|
+
updatedAfter: {
|
|
361
|
+
type: string;
|
|
362
|
+
description: string;
|
|
363
|
+
};
|
|
364
|
+
search: {
|
|
365
|
+
type: string;
|
|
366
|
+
description: string;
|
|
367
|
+
};
|
|
368
|
+
orderBy: {
|
|
369
|
+
type: string;
|
|
370
|
+
enum: string[];
|
|
371
|
+
description: string;
|
|
372
|
+
};
|
|
373
|
+
sort: {
|
|
374
|
+
type: string;
|
|
375
|
+
enum: string[];
|
|
376
|
+
description: string;
|
|
377
|
+
};
|
|
378
|
+
limit: {
|
|
379
|
+
type: string;
|
|
380
|
+
description: string;
|
|
381
|
+
};
|
|
382
|
+
iid?: undefined;
|
|
383
|
+
targetBranch?: undefined;
|
|
384
|
+
sourceBranch?: undefined;
|
|
385
|
+
body?: undefined;
|
|
386
|
+
path?: undefined;
|
|
387
|
+
oldPath?: undefined;
|
|
388
|
+
newLine?: undefined;
|
|
389
|
+
oldLine?: undefined;
|
|
390
|
+
diffRefs?: undefined;
|
|
391
|
+
comments?: undefined;
|
|
392
|
+
};
|
|
393
|
+
required: string[];
|
|
394
|
+
};
|
|
395
|
+
})[];
|
|
396
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export namespace SKILLS {
|
|
2
|
+
let BROWSER: string;
|
|
3
|
+
let JIRA: string;
|
|
4
|
+
let GITHUB: string;
|
|
5
|
+
let GITLAB: string;
|
|
6
|
+
let LINEAR: string;
|
|
7
|
+
let PLANE: string;
|
|
8
|
+
let GIT: string;
|
|
9
|
+
let SLACK: string;
|
|
10
|
+
let LARK: string;
|
|
11
|
+
let CHAT_NOTIFY: string;
|
|
12
|
+
let SENTRY: string;
|
|
13
|
+
let MEMORY: string;
|
|
14
|
+
let RUNNER: string;
|
|
15
|
+
let SKILL_INSTALLER: string;
|
|
16
|
+
let CORE_TOOLS: string;
|
|
17
|
+
let CHAT_MEMORY: string;
|
|
18
|
+
let WORKFLOW_BUILDER: string;
|
|
19
|
+
let OPENAI_BILLING: string;
|
|
20
|
+
let ANTHROPIC_BILLING: string;
|
|
21
|
+
let CURSOR_ADMIN: string;
|
|
22
|
+
}
|
|
23
|
+
import { browserSkill } from './browser.js';
|
|
24
|
+
import { jiraSkill } from './jira.js';
|
|
25
|
+
import { githubSkill } from './github.js';
|
|
26
|
+
import { gitlabSkill } from './gitlab.js';
|
|
27
|
+
import { linearSkill } from './linear.js';
|
|
28
|
+
import { planeSkill } from './plane.js';
|
|
29
|
+
import { gitSkill } from './git.js';
|
|
30
|
+
import { slackSkill } from './slack.js';
|
|
31
|
+
import { larkSkill } from './lark.js';
|
|
32
|
+
import { chatNotifySkill } from './chat-notify.js';
|
|
33
|
+
import { sentrySkill } from './sentry.js';
|
|
34
|
+
import { memorySkill } from './memory.js';
|
|
35
|
+
import { chatMemorySkill } from './chat-memory.js';
|
|
36
|
+
import { testRunnerSkill } from './test-runner.js';
|
|
37
|
+
import { skillInstallerSkill } from './skill-installer.js';
|
|
38
|
+
import { coreToolsSkill } from './core-tools.js';
|
|
39
|
+
import { workflowBuilderSkill } from './workflow-builder.js';
|
|
40
|
+
export { browserSkill, jiraSkill, githubSkill, gitlabSkill, linearSkill, planeSkill, gitSkill, slackSkill, larkSkill, chatNotifySkill, sentrySkill, memorySkill, chatMemorySkill, testRunnerSkill, testRunnerSkill as runnerSkill, skillInstallerSkill, coreToolsSkill, workflowBuilderSkill };
|
|
41
|
+
export { openaiBillingSkill, anthropicBillingSkill, cursorAdminSkill, fetchOpenAICosts, fetchOpenAIProjects, fetchAnthropicCosts, fetchAnthropicWorkspaces, fetchCursorSpend, fetchAllProviders, groupByKey, meanStddev } from "./llm-billing.js";
|
|
42
|
+
export { reportObjectSchema, reportToBlockKit, reportToLarkCard, SEVERITIES as REPORT_SEVERITIES } from "./report.js";
|
|
43
|
+
export { skill, functionSkill } from "./function-skill.js";
|
|
44
|
+
export { registerSkill, getSkill, hasSkill, getAllSkills, listSkillIds } from "@zibby/agent-workflow";
|
|
45
|
+
export { INTEGRATIONS, INTEGRATION_REGISTRY } from "./integrations.js";
|