@kernel.chat/kbot 3.38.0 → 3.39.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/dist/autonomous-contributor.d.ts +88 -0
- package/dist/autonomous-contributor.d.ts.map +1 -0
- package/dist/autonomous-contributor.js +862 -0
- package/dist/autonomous-contributor.js.map +1 -0
- package/dist/collective-network.d.ts +102 -0
- package/dist/collective-network.d.ts.map +1 -0
- package/dist/collective-network.js +634 -0
- package/dist/collective-network.js.map +1 -0
- package/dist/community-autopilot.d.ts +98 -0
- package/dist/community-autopilot.d.ts.map +1 -0
- package/dist/community-autopilot.js +676 -0
- package/dist/community-autopilot.js.map +1 -0
- package/dist/cross-device-sync.d.ts +36 -0
- package/dist/cross-device-sync.d.ts.map +1 -0
- package/dist/cross-device-sync.js +532 -0
- package/dist/cross-device-sync.js.map +1 -0
- package/dist/forge-marketplace-server.d.ts +23 -0
- package/dist/forge-marketplace-server.d.ts.map +1 -0
- package/dist/forge-marketplace-server.js +457 -0
- package/dist/forge-marketplace-server.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export interface AutopilotConfig {
|
|
2
|
+
/** GitHub repo in "owner/repo" format */
|
|
3
|
+
github_repo: string;
|
|
4
|
+
/** Discord webhook URL for notifications */
|
|
5
|
+
discord_webhook?: string;
|
|
6
|
+
/** Check interval in ms (default: 300000 = 5 min) */
|
|
7
|
+
check_interval_ms?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface TriageResult {
|
|
10
|
+
issue: number;
|
|
11
|
+
title: string;
|
|
12
|
+
label: string;
|
|
13
|
+
response: string;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PRReviewResult {
|
|
17
|
+
pr: number;
|
|
18
|
+
title: string;
|
|
19
|
+
author: string;
|
|
20
|
+
status: 'pending-ci' | 'ci-passing' | 'ci-failing' | 'draft' | 'reviewed';
|
|
21
|
+
comment: string;
|
|
22
|
+
url: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FAQMatch {
|
|
25
|
+
question: string;
|
|
26
|
+
answer: string;
|
|
27
|
+
matchedIssue: number;
|
|
28
|
+
confidence: number;
|
|
29
|
+
}
|
|
30
|
+
export interface DigestEntry {
|
|
31
|
+
generatedAt: string;
|
|
32
|
+
repo: string;
|
|
33
|
+
newIssues: number;
|
|
34
|
+
newPRs: number;
|
|
35
|
+
mergedPRs: number;
|
|
36
|
+
welcomed: string[];
|
|
37
|
+
markdown: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AutopilotCycleResult {
|
|
40
|
+
timestamp: string;
|
|
41
|
+
repo: string;
|
|
42
|
+
triaged: TriageResult[];
|
|
43
|
+
reviewed: PRReviewResult[];
|
|
44
|
+
faqAnswered: FAQMatch[];
|
|
45
|
+
welcomed: string[];
|
|
46
|
+
digest: DigestEntry | null;
|
|
47
|
+
errors: string[];
|
|
48
|
+
}
|
|
49
|
+
export interface FAQEntry {
|
|
50
|
+
question: string;
|
|
51
|
+
answer: string;
|
|
52
|
+
keywords: string[];
|
|
53
|
+
}
|
|
54
|
+
interface AutopilotState {
|
|
55
|
+
/** Issue numbers we have already triaged */
|
|
56
|
+
triagedIssues: number[];
|
|
57
|
+
/** PR numbers we have already reviewed */
|
|
58
|
+
reviewedPRs: number[];
|
|
59
|
+
/** Issue numbers where we posted FAQ answers */
|
|
60
|
+
answeredIssues: number[];
|
|
61
|
+
/** Users we have already welcomed */
|
|
62
|
+
welcomedUsers: string[];
|
|
63
|
+
/** ISO string of last digest generation */
|
|
64
|
+
lastDigestDate: string;
|
|
65
|
+
/** All known contributors (for detecting new ones) */
|
|
66
|
+
knownContributors: string[];
|
|
67
|
+
/** Cycle count */
|
|
68
|
+
cycleCount: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Run a single community autopilot cycle.
|
|
72
|
+
*
|
|
73
|
+
* 1. Triage new GitHub issues (label + respond)
|
|
74
|
+
* 2. Review new PRs (check CI, comment)
|
|
75
|
+
* 3. Answer pending questions via FAQ matching
|
|
76
|
+
* 4. Generate daily digest at midnight
|
|
77
|
+
* 5. Welcome new contributors
|
|
78
|
+
*/
|
|
79
|
+
export declare function runCommunityAutopilot(config: AutopilotConfig): Promise<AutopilotCycleResult>;
|
|
80
|
+
/**
|
|
81
|
+
* Start the community autopilot as a background daemon.
|
|
82
|
+
* Runs a cycle immediately, then repeats at the configured interval.
|
|
83
|
+
*/
|
|
84
|
+
export declare function startAutopilot(config: AutopilotConfig): void;
|
|
85
|
+
/**
|
|
86
|
+
* Stop the community autopilot daemon.
|
|
87
|
+
*/
|
|
88
|
+
export declare function stopAutopilot(): void;
|
|
89
|
+
/**
|
|
90
|
+
* Check if the autopilot daemon is currently running.
|
|
91
|
+
*/
|
|
92
|
+
export declare function isAutopilotRunning(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Get the current autopilot state (for debugging / monitoring).
|
|
95
|
+
*/
|
|
96
|
+
export declare function getAutopilotState(): AutopilotState;
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=community-autopilot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"community-autopilot.d.ts","sourceRoot":"","sources":["../src/community-autopilot.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAA;IACnB,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAA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