paperclip-github-plugin 0.19.0 → 0.20.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/README.md +84 -520
- package/dist/manifest.js +23 -303
- package/dist/ui/index.js +2540 -37008
- package/dist/ui/index.js.map +4 -4
- package/dist/worker.js +1453 -16588
- package/package.json +5 -12
package/dist/manifest.js
CHANGED
|
@@ -4,20 +4,12 @@ import { createRequire } from "node:module";
|
|
|
4
4
|
// src/github-agent-tools.ts
|
|
5
5
|
var repositoryProperty = {
|
|
6
6
|
type: "string",
|
|
7
|
-
description: "GitHub repository as owner/repo or https://github.com/owner/repo.
|
|
7
|
+
description: "GitHub repository as owner/repo or https://github.com/owner/repo."
|
|
8
8
|
};
|
|
9
9
|
var organizationProperty = {
|
|
10
10
|
type: "string",
|
|
11
11
|
description: "GitHub organization login that owns the Projects."
|
|
12
12
|
};
|
|
13
|
-
var paperclipIssueIdProperty = {
|
|
14
|
-
type: "string",
|
|
15
|
-
description: "Paperclip issue id used to infer the linked GitHub issue and repository when available."
|
|
16
|
-
};
|
|
17
|
-
var followThroughAssigneeAgentIdProperty = {
|
|
18
|
-
type: ["string", "null"],
|
|
19
|
-
description: "Optional durable Paperclip agent owner for actionable follow-through on this linked pull request. The agent must belong to the authenticated company. Pass null to clear an existing owner."
|
|
20
|
-
};
|
|
21
13
|
var issueNumberProperty = {
|
|
22
14
|
type: "integer",
|
|
23
15
|
minimum: 1,
|
|
@@ -42,22 +34,16 @@ var llmModelProperty = {
|
|
|
42
34
|
description: "Exact LLM name used to draft the GitHub content. When provided, the plugin includes it in the mandatory AI-authorship footer."
|
|
43
35
|
};
|
|
44
36
|
var issueTargetSchema = {
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
required: ["paperclipIssueId"]
|
|
48
|
-
},
|
|
37
|
+
allOf: [
|
|
49
38
|
{
|
|
50
|
-
required: ["issueNumber"]
|
|
39
|
+
required: ["repository", "issueNumber"]
|
|
51
40
|
}
|
|
52
41
|
]
|
|
53
42
|
};
|
|
54
43
|
var pullRequestTargetSchema = {
|
|
55
|
-
|
|
44
|
+
allOf: [
|
|
56
45
|
{
|
|
57
|
-
required: ["
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
required: ["pullRequestNumber"]
|
|
46
|
+
required: ["repository", "pullRequestNumber"]
|
|
61
47
|
}
|
|
62
48
|
]
|
|
63
49
|
};
|
|
@@ -86,7 +72,7 @@ var checkRunUpdateProperties = {
|
|
|
86
72
|
},
|
|
87
73
|
detailsUrl: {
|
|
88
74
|
type: "string",
|
|
89
|
-
description: "Optional link shown as the check details
|
|
75
|
+
description: "Optional link shown as the check details."
|
|
90
76
|
},
|
|
91
77
|
externalId: {
|
|
92
78
|
type: "string",
|
|
@@ -171,8 +157,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
171
157
|
...issueTargetSchema,
|
|
172
158
|
properties: {
|
|
173
159
|
repository: repositoryProperty,
|
|
174
|
-
issueNumber: issueNumberProperty
|
|
175
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
160
|
+
issueNumber: issueNumberProperty
|
|
176
161
|
}
|
|
177
162
|
}
|
|
178
163
|
},
|
|
@@ -186,8 +171,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
186
171
|
...issueTargetSchema,
|
|
187
172
|
properties: {
|
|
188
173
|
repository: repositoryProperty,
|
|
189
|
-
issueNumber: issueNumberProperty
|
|
190
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
174
|
+
issueNumber: issueNumberProperty
|
|
191
175
|
}
|
|
192
176
|
}
|
|
193
177
|
},
|
|
@@ -202,7 +186,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
202
186
|
properties: {
|
|
203
187
|
repository: repositoryProperty,
|
|
204
188
|
issueNumber: issueNumberProperty,
|
|
205
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
206
189
|
title: {
|
|
207
190
|
type: "string"
|
|
208
191
|
},
|
|
@@ -279,8 +262,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
279
262
|
...issueTargetSchema,
|
|
280
263
|
properties: {
|
|
281
264
|
repository: repositoryProperty,
|
|
282
|
-
issueNumber: issueNumberProperty
|
|
283
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
265
|
+
issueNumber: issueNumberProperty
|
|
284
266
|
}
|
|
285
267
|
}
|
|
286
268
|
},
|
|
@@ -296,7 +278,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
296
278
|
properties: {
|
|
297
279
|
repository: repositoryProperty,
|
|
298
280
|
issueNumber: issueNumberProperty,
|
|
299
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
300
281
|
body: {
|
|
301
282
|
type: "string",
|
|
302
283
|
minLength: 1,
|
|
@@ -306,88 +287,17 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
306
287
|
}
|
|
307
288
|
}
|
|
308
289
|
},
|
|
309
|
-
{
|
|
310
|
-
name: "create_pull_request",
|
|
311
|
-
displayName: "Create Pull Request",
|
|
312
|
-
description: "Publish the local branch at the exact requested commit, verify the remote branch, then create and link a GitHub pull request in one operation. Optional labels and reviewer requests are applied right after creation and reported back; a failure in those follow-up steps does not undo the pull request. The GitHub credential remains inside the trusted plugin worker. When a non-empty body is provided, the plugin appends an AI-authorship footer and includes llmModel when supplied.",
|
|
313
|
-
parametersSchema: {
|
|
314
|
-
type: "object",
|
|
315
|
-
additionalProperties: false,
|
|
316
|
-
required: ["paperclipIssueId", "head", "headCommitSha", "base", "title"],
|
|
317
|
-
properties: {
|
|
318
|
-
repository: {
|
|
319
|
-
type: "string",
|
|
320
|
-
description: "Target GitHub repository as owner/repo or https://github.com/owner/repo. It may be outside Paperclip repository mappings. Omit only when the issue project has exactly one mapped repository."
|
|
321
|
-
},
|
|
322
|
-
workspaceRelativePath: {
|
|
323
|
-
type: "string",
|
|
324
|
-
description: "Optional path to the local Git checkout, relative to the trusted issue execution workspace. Use this when a general-purpose workspace contains the target repository in a subdirectory."
|
|
325
|
-
},
|
|
326
|
-
paperclipIssueId: {
|
|
327
|
-
type: "string",
|
|
328
|
-
description: "Paperclip issue id used to resolve the trusted execution workspace and durable pull-request link."
|
|
329
|
-
},
|
|
330
|
-
followThroughAssigneeAgentId: followThroughAssigneeAgentIdProperty,
|
|
331
|
-
head: {
|
|
332
|
-
type: "string",
|
|
333
|
-
description: "Plain local branch name to publish. Owner-qualified branches and arbitrary refspecs are rejected."
|
|
334
|
-
},
|
|
335
|
-
headCommitSha: {
|
|
336
|
-
type: "string",
|
|
337
|
-
pattern: "^[0-9a-fA-F]{40}$",
|
|
338
|
-
description: "Full 40-character commit SHA that must equal the exact local branch tip and the verified remote branch tip."
|
|
339
|
-
},
|
|
340
|
-
base: {
|
|
341
|
-
type: "string",
|
|
342
|
-
description: "Base branch name."
|
|
343
|
-
},
|
|
344
|
-
title: {
|
|
345
|
-
type: "string"
|
|
346
|
-
},
|
|
347
|
-
body: {
|
|
348
|
-
type: "string",
|
|
349
|
-
description: "Optional human-facing pull request description. If provided, it must remain non-empty after trimming and removing any existing AI footer."
|
|
350
|
-
},
|
|
351
|
-
llmModel: llmModelProperty,
|
|
352
|
-
draft: {
|
|
353
|
-
type: "boolean"
|
|
354
|
-
},
|
|
355
|
-
labels: {
|
|
356
|
-
type: "array",
|
|
357
|
-
items: {
|
|
358
|
-
type: "string"
|
|
359
|
-
},
|
|
360
|
-
description: "Optional GitHub labels to add to the new pull request, for example the approved `type:` label. Labels are applied after the pull request is created; failures are returned as warnings."
|
|
361
|
-
},
|
|
362
|
-
userReviewers: {
|
|
363
|
-
type: "array",
|
|
364
|
-
items: {
|
|
365
|
-
type: "string"
|
|
366
|
-
},
|
|
367
|
-
description: "Optional GitHub user logins to request as reviewers right after creation, for example the linked issue author when they are not the pull request author. Failures are returned as warnings."
|
|
368
|
-
},
|
|
369
|
-
teamReviewers: {
|
|
370
|
-
type: "array",
|
|
371
|
-
items: {
|
|
372
|
-
type: "string"
|
|
373
|
-
},
|
|
374
|
-
description: "Optional GitHub team slugs to request as reviewers right after creation. Failures are returned as warnings."
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
290
|
{
|
|
380
291
|
name: "get_pull_request",
|
|
381
292
|
displayName: "Get Pull Request",
|
|
382
|
-
description: "Read one pull request with branch metadata, review summary, and merge readiness.",
|
|
293
|
+
description: "Read one pull request with branch metadata, labels, review summary, and merge readiness.",
|
|
383
294
|
parametersSchema: {
|
|
384
295
|
type: "object",
|
|
385
296
|
additionalProperties: false,
|
|
386
297
|
...pullRequestTargetSchema,
|
|
387
298
|
properties: {
|
|
388
299
|
repository: repositoryProperty,
|
|
389
|
-
pullRequestNumber: pullRequestNumberProperty
|
|
390
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
300
|
+
pullRequestNumber: pullRequestNumberProperty
|
|
391
301
|
}
|
|
392
302
|
}
|
|
393
303
|
},
|
|
@@ -402,7 +312,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
402
312
|
properties: {
|
|
403
313
|
repository: repositoryProperty,
|
|
404
314
|
pullRequestNumber: pullRequestNumberProperty,
|
|
405
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
406
315
|
title: {
|
|
407
316
|
type: "string"
|
|
408
317
|
},
|
|
@@ -442,8 +351,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
442
351
|
...pullRequestTargetSchema,
|
|
443
352
|
properties: {
|
|
444
353
|
repository: repositoryProperty,
|
|
445
|
-
pullRequestNumber: pullRequestNumberProperty
|
|
446
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
354
|
+
pullRequestNumber: pullRequestNumberProperty
|
|
447
355
|
}
|
|
448
356
|
}
|
|
449
357
|
},
|
|
@@ -457,8 +365,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
457
365
|
...pullRequestTargetSchema,
|
|
458
366
|
properties: {
|
|
459
367
|
repository: repositoryProperty,
|
|
460
|
-
pullRequestNumber: pullRequestNumberProperty
|
|
461
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
368
|
+
pullRequestNumber: pullRequestNumberProperty
|
|
462
369
|
}
|
|
463
370
|
}
|
|
464
371
|
},
|
|
@@ -472,8 +379,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
472
379
|
...pullRequestTargetSchema,
|
|
473
380
|
properties: {
|
|
474
381
|
repository: repositoryProperty,
|
|
475
|
-
pullRequestNumber: pullRequestNumberProperty
|
|
476
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
382
|
+
pullRequestNumber: pullRequestNumberProperty
|
|
477
383
|
}
|
|
478
384
|
}
|
|
479
385
|
},
|
|
@@ -495,8 +401,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
495
401
|
minLength: 1,
|
|
496
402
|
description: "Human-facing reply body without the AI footer. It must remain non-empty after trimming and removing any existing AI footer."
|
|
497
403
|
},
|
|
498
|
-
llmModel: llmModelProperty
|
|
499
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
404
|
+
llmModel: llmModelProperty
|
|
500
405
|
}
|
|
501
406
|
}
|
|
502
407
|
},
|
|
@@ -512,8 +417,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
512
417
|
threadId: {
|
|
513
418
|
type: "string",
|
|
514
419
|
description: "GitHub pull request review thread node id."
|
|
515
|
-
}
|
|
516
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
420
|
+
}
|
|
517
421
|
}
|
|
518
422
|
}
|
|
519
423
|
},
|
|
@@ -529,8 +433,7 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
529
433
|
threadId: {
|
|
530
434
|
type: "string",
|
|
531
435
|
description: "GitHub pull request review thread node id."
|
|
532
|
-
}
|
|
533
|
-
paperclipIssueId: paperclipIssueIdProperty
|
|
436
|
+
}
|
|
534
437
|
}
|
|
535
438
|
}
|
|
536
439
|
},
|
|
@@ -545,7 +448,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
545
448
|
properties: {
|
|
546
449
|
repository: repositoryProperty,
|
|
547
450
|
pullRequestNumber: pullRequestNumberProperty,
|
|
548
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
549
451
|
userReviewers: {
|
|
550
452
|
type: "array",
|
|
551
453
|
minItems: 1,
|
|
@@ -562,12 +464,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
562
464
|
}
|
|
563
465
|
},
|
|
564
466
|
anyOf: [
|
|
565
|
-
{
|
|
566
|
-
required: ["paperclipIssueId", "userReviewers"]
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
required: ["paperclipIssueId", "teamReviewers"]
|
|
570
|
-
},
|
|
571
467
|
{
|
|
572
468
|
required: ["pullRequestNumber", "userReviewers"]
|
|
573
469
|
},
|
|
@@ -589,7 +485,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
589
485
|
properties: {
|
|
590
486
|
repository: repositoryProperty,
|
|
591
487
|
pullRequestNumber: pullRequestNumberProperty,
|
|
592
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
593
488
|
event: {
|
|
594
489
|
type: "string",
|
|
595
490
|
enum: ["COMMENT", "REQUEST_CHANGES"],
|
|
@@ -658,14 +553,12 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
658
553
|
additionalProperties: false,
|
|
659
554
|
required: ["name"],
|
|
660
555
|
anyOf: [
|
|
661
|
-
{ required: ["paperclipIssueId"] },
|
|
662
556
|
{ required: ["pullRequestNumber"] },
|
|
663
557
|
{ required: ["headSha"] }
|
|
664
558
|
],
|
|
665
559
|
properties: {
|
|
666
560
|
repository: repositoryProperty,
|
|
667
561
|
pullRequestNumber: pullRequestNumberProperty,
|
|
668
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
669
562
|
headSha: {
|
|
670
563
|
type: "string",
|
|
671
564
|
description: "Commit SHA to attach the check to. Defaults to the pull request head commit."
|
|
@@ -689,7 +582,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
689
582
|
required: ["checkRunId"],
|
|
690
583
|
properties: {
|
|
691
584
|
repository: repositoryProperty,
|
|
692
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
693
585
|
checkRunId: {
|
|
694
586
|
type: "integer",
|
|
695
587
|
minimum: 1,
|
|
@@ -711,7 +603,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
711
603
|
properties: {
|
|
712
604
|
repository: repositoryProperty,
|
|
713
605
|
pullRequestNumber: pullRequestNumberProperty,
|
|
714
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
715
606
|
labels: pullRequestLabelsProperty
|
|
716
607
|
}
|
|
717
608
|
}
|
|
@@ -728,7 +619,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
728
619
|
properties: {
|
|
729
620
|
repository: repositoryProperty,
|
|
730
621
|
pullRequestNumber: pullRequestNumberProperty,
|
|
731
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
732
622
|
labels: pullRequestLabelsProperty
|
|
733
623
|
}
|
|
734
624
|
}
|
|
@@ -771,7 +661,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
771
661
|
properties: {
|
|
772
662
|
repository: repositoryProperty,
|
|
773
663
|
pullRequestNumber: pullRequestNumberProperty,
|
|
774
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
775
664
|
projectId: projectIdProperty,
|
|
776
665
|
organization: organizationProperty,
|
|
777
666
|
projectNumber: projectNumberProperty
|
|
@@ -794,7 +683,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
794
683
|
properties: {
|
|
795
684
|
repository: repositoryProperty,
|
|
796
685
|
pullRequestNumber: pullRequestNumberProperty,
|
|
797
|
-
paperclipIssueId: paperclipIssueIdProperty,
|
|
798
686
|
fileName: {
|
|
799
687
|
type: "string",
|
|
800
688
|
description: "Asset filename. The plugin sanitizes it and preserves a safe extension."
|
|
@@ -830,56 +718,6 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
830
718
|
}
|
|
831
719
|
}
|
|
832
720
|
},
|
|
833
|
-
{
|
|
834
|
-
name: "link_github_item",
|
|
835
|
-
displayName: "Link GitHub Item",
|
|
836
|
-
description: "Link a Paperclip issue to a GitHub issue or pull request so GitHub Sync can monitor status even when the repository is not mapped to a Paperclip project.",
|
|
837
|
-
parametersSchema: {
|
|
838
|
-
type: "object",
|
|
839
|
-
additionalProperties: false,
|
|
840
|
-
required: ["kind", "paperclipIssueId"],
|
|
841
|
-
anyOf: [
|
|
842
|
-
{
|
|
843
|
-
required: ["reference"]
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
required: ["issueNumber"]
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
required: ["pullRequestNumber"]
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
required: ["pullRequestUrl"]
|
|
853
|
-
}
|
|
854
|
-
],
|
|
855
|
-
properties: {
|
|
856
|
-
kind: {
|
|
857
|
-
type: "string",
|
|
858
|
-
enum: ["issue", "pull_request"],
|
|
859
|
-
description: "Whether to link a GitHub issue or pull request."
|
|
860
|
-
},
|
|
861
|
-
paperclipIssueId: {
|
|
862
|
-
type: "string",
|
|
863
|
-
description: "Paperclip issue id that should receive the GitHub link."
|
|
864
|
-
},
|
|
865
|
-
repository: {
|
|
866
|
-
type: "string",
|
|
867
|
-
description: "GitHub repository as owner/repo or https://github.com/owner/repo. Required when using a number instead of a full GitHub URL and the Paperclip issue project is not mapped to that repository."
|
|
868
|
-
},
|
|
869
|
-
reference: {
|
|
870
|
-
type: "string",
|
|
871
|
-
description: "GitHub issue or pull request number, or a full GitHub issue or pull request URL."
|
|
872
|
-
},
|
|
873
|
-
issueNumber: issueNumberProperty,
|
|
874
|
-
pullRequestNumber: pullRequestNumberProperty,
|
|
875
|
-
pullRequestUrl: {
|
|
876
|
-
type: "string",
|
|
877
|
-
description: "Full GitHub pull request URL."
|
|
878
|
-
},
|
|
879
|
-
followThroughAssigneeAgentId: followThroughAssigneeAgentIdProperty
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
},
|
|
883
721
|
{
|
|
884
722
|
name: "remember_memory",
|
|
885
723
|
displayName: "Remember",
|
|
@@ -965,47 +803,19 @@ var GITHUB_AGENT_TOOLS = [
|
|
|
965
803
|
}
|
|
966
804
|
}
|
|
967
805
|
}
|
|
968
|
-
},
|
|
969
|
-
{
|
|
970
|
-
name: "get_issue_interaction_summary",
|
|
971
|
-
displayName: "Get Issue Interaction Summary",
|
|
972
|
-
description: "Return a deterministic, sanitized interaction summary for one Paperclip issue over a maximum 30-day [from,to) UTC range.",
|
|
973
|
-
parametersSchema: {
|
|
974
|
-
type: "object",
|
|
975
|
-
additionalProperties: false,
|
|
976
|
-
required: ["paperclipIssueId"],
|
|
977
|
-
properties: {
|
|
978
|
-
paperclipIssueId: {
|
|
979
|
-
type: "string",
|
|
980
|
-
description: "Paperclip issue id in the authenticated tool run company."
|
|
981
|
-
},
|
|
982
|
-
from: {
|
|
983
|
-
type: "string",
|
|
984
|
-
description: "Optional inclusive ISO timestamp. Defaults to 30 days before to."
|
|
985
|
-
},
|
|
986
|
-
to: {
|
|
987
|
-
type: "string",
|
|
988
|
-
description: "Optional exclusive ISO timestamp. Defaults to the current time."
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
806
|
}
|
|
993
807
|
];
|
|
994
808
|
|
|
995
809
|
// src/github-webhooks.ts
|
|
996
810
|
var GITHUB_WEBHOOK_ENDPOINT_KEY = "github";
|
|
997
811
|
|
|
998
|
-
// src/
|
|
812
|
+
// src/plugin-id.ts
|
|
999
813
|
var GITHUB_SYNC_PLUGIN_ID = "paperclip-github-plugin";
|
|
1000
|
-
var COMPANY_METRIC_API_ROUTE_KEY = "record-company-metric-event";
|
|
1001
|
-
var COMPANY_METRIC_API_ROUTE_PATH = "/company-metrics/events";
|
|
1002
|
-
var COMPANY_METRIC_API_ROUTE_URL_PATH = `/api/plugins/${GITHUB_SYNC_PLUGIN_ID}/api${COMPANY_METRIC_API_ROUTE_PATH}`;
|
|
1003
814
|
|
|
1004
815
|
// src/manifest.ts
|
|
1005
816
|
var require2 = createRequire(import.meta.url);
|
|
1006
817
|
var packageJson = require2("../package.json");
|
|
1007
|
-
var
|
|
1008
|
-
var MANIFEST_VERSION = "0.19.0"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
|
|
818
|
+
var MANIFEST_VERSION = "0.20.1"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
|
|
1009
819
|
var COMPANY_SECRET_REF_VALUE_SCHEMA = {
|
|
1010
820
|
anyOf: [
|
|
1011
821
|
{ type: "string" },
|
|
@@ -1024,33 +834,17 @@ var manifest = {
|
|
|
1024
834
|
id: GITHUB_SYNC_PLUGIN_ID,
|
|
1025
835
|
apiVersion: 1,
|
|
1026
836
|
version: MANIFEST_VERSION,
|
|
1027
|
-
displayName: "GitHub
|
|
1028
|
-
description: "
|
|
837
|
+
displayName: "GitHub",
|
|
838
|
+
description: "GitHub App identity, webhook wakes, GitHub tools and shared memory for Paperclip agents.",
|
|
1029
839
|
author: "\xC1lvaro S\xE1nchez-Mariscal",
|
|
1030
840
|
categories: ["connector", "ui"],
|
|
1031
841
|
capabilities: [
|
|
1032
|
-
"ui.sidebar.register",
|
|
1033
|
-
"ui.page.register",
|
|
1034
|
-
"ui.dashboardWidget.register",
|
|
1035
|
-
"ui.detailTab.register",
|
|
1036
|
-
"ui.action.register",
|
|
1037
842
|
"plugin.state.read",
|
|
1038
843
|
"plugin.state.write",
|
|
1039
844
|
"instance.settings.register",
|
|
1040
|
-
"
|
|
1041
|
-
"execution.workspaces.read",
|
|
1042
|
-
"issues.read",
|
|
1043
|
-
"issues.checkout",
|
|
1044
|
-
"issues.create",
|
|
1045
|
-
"issues.update",
|
|
1046
|
-
"issues.wakeup",
|
|
1047
|
-
"issue.relations.read",
|
|
1048
|
-
"issue.comments.read",
|
|
1049
|
-
"issue.comments.create",
|
|
845
|
+
"companies.read",
|
|
1050
846
|
"agents.read",
|
|
1051
847
|
"agents.invoke",
|
|
1052
|
-
"jobs.schedule",
|
|
1053
|
-
"api.routes.register",
|
|
1054
848
|
"http.outbound",
|
|
1055
849
|
"secrets.read-ref",
|
|
1056
850
|
"agent.tools.register",
|
|
@@ -1065,12 +859,6 @@ var manifest = {
|
|
|
1065
859
|
description: "Company id to Paperclip secret reference for the GitHub token.",
|
|
1066
860
|
additionalProperties: COMPANY_SECRET_REF_VALUE_SCHEMA
|
|
1067
861
|
},
|
|
1068
|
-
paperclipBoardApiTokenRefs: {
|
|
1069
|
-
type: "object",
|
|
1070
|
-
title: "Paperclip Board Token Secrets",
|
|
1071
|
-
description: "Company id to Paperclip secret reference for the board access token.",
|
|
1072
|
-
additionalProperties: COMPANY_SECRET_REF_VALUE_SCHEMA
|
|
1073
|
-
},
|
|
1074
862
|
githubAppsByCompanyId: {
|
|
1075
863
|
type: "object",
|
|
1076
864
|
title: "GitHub App Authentication",
|
|
@@ -1105,30 +893,9 @@ var manifest = {
|
|
|
1105
893
|
type: "array",
|
|
1106
894
|
items: { type: "object" }
|
|
1107
895
|
}
|
|
1108
|
-
},
|
|
1109
|
-
paperclipApiBaseUrl: {
|
|
1110
|
-
type: "string",
|
|
1111
|
-
title: "Trusted Paperclip API Origin"
|
|
1112
896
|
}
|
|
1113
897
|
}
|
|
1114
898
|
},
|
|
1115
|
-
jobs: [
|
|
1116
|
-
{
|
|
1117
|
-
jobKey: "sync.github-issues",
|
|
1118
|
-
displayName: "Sync GitHub issues",
|
|
1119
|
-
description: "Checks for GitHub issue updates and syncs them on the configured cadence.",
|
|
1120
|
-
schedule: SCHEDULE_TICK_CRON
|
|
1121
|
-
}
|
|
1122
|
-
],
|
|
1123
|
-
apiRoutes: [
|
|
1124
|
-
{
|
|
1125
|
-
routeKey: COMPANY_METRIC_API_ROUTE_KEY,
|
|
1126
|
-
method: "POST",
|
|
1127
|
-
path: COMPANY_METRIC_API_ROUTE_PATH,
|
|
1128
|
-
auth: "agent",
|
|
1129
|
-
capability: "api.routes.register"
|
|
1130
|
-
}
|
|
1131
|
-
],
|
|
1132
899
|
webhooks: [
|
|
1133
900
|
{
|
|
1134
901
|
endpointKey: GITHUB_WEBHOOK_ENDPOINT_KEY,
|
|
@@ -1143,57 +910,10 @@ var manifest = {
|
|
|
1143
910
|
},
|
|
1144
911
|
ui: {
|
|
1145
912
|
slots: [
|
|
1146
|
-
{
|
|
1147
|
-
type: "page",
|
|
1148
|
-
id: "paperclip-github-plugin-project-pull-requests-page",
|
|
1149
|
-
displayName: "Pull Requests",
|
|
1150
|
-
exportName: "GitHubSyncProjectPullRequestsPage",
|
|
1151
|
-
routePath: "github-pull-requests"
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
type: "projectSidebarItem",
|
|
1155
|
-
id: "paperclip-github-plugin-project-pull-requests-sidebar-item",
|
|
1156
|
-
displayName: "Pull Requests",
|
|
1157
|
-
exportName: "GitHubSyncProjectPullRequestsSidebarItem",
|
|
1158
|
-
entityTypes: ["project"],
|
|
1159
|
-
order: 40
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
type: "dashboardWidget",
|
|
1163
|
-
id: "paperclip-github-plugin-dashboard-widget",
|
|
1164
|
-
displayName: "GitHub Sync",
|
|
1165
|
-
exportName: "GitHubSyncDashboardWidget"
|
|
1166
|
-
},
|
|
1167
|
-
{
|
|
1168
|
-
type: "dashboardWidget",
|
|
1169
|
-
id: "paperclip-github-plugin-kpi-dashboard-widget",
|
|
1170
|
-
displayName: "GitHub KPIs",
|
|
1171
|
-
exportName: "GitHubSyncKpiDashboardWidget"
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
type: "taskDetailView",
|
|
1175
|
-
id: "paperclip-github-plugin-issue-detail-tab",
|
|
1176
|
-
displayName: "GitHub",
|
|
1177
|
-
exportName: "GitHubSyncIssueTaskDetailView",
|
|
1178
|
-
entityTypes: ["issue"]
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
type: "globalToolbarButton",
|
|
1182
|
-
id: "paperclip-github-plugin-global-toolbar-button",
|
|
1183
|
-
displayName: "GitHub Sync",
|
|
1184
|
-
exportName: "GitHubSyncGlobalToolbarButton"
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
type: "toolbarButton",
|
|
1188
|
-
id: "paperclip-github-plugin-toolbar-button",
|
|
1189
|
-
displayName: "GitHub Sync",
|
|
1190
|
-
exportName: "GitHubSyncEntityToolbarButton",
|
|
1191
|
-
entityTypes: ["project"]
|
|
1192
|
-
},
|
|
1193
913
|
{
|
|
1194
914
|
type: "settingsPage",
|
|
1195
915
|
id: "paperclip-github-plugin-settings-page",
|
|
1196
|
-
displayName: "GitHub
|
|
916
|
+
displayName: "GitHub",
|
|
1197
917
|
exportName: "GitHubSyncSettingsPage"
|
|
1198
918
|
}
|
|
1199
919
|
]
|