roboport 0.0.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 +25 -0
- package/core/agent.d.ts +35 -0
- package/core/index.d.ts +9 -0
- package/core/mcp.d.ts +6 -0
- package/core/message.d.ts +36 -0
- package/core/model.d.ts +10 -0
- package/core/session.d.ts +75 -0
- package/core/skill.d.ts +11 -0
- package/core/stream.d.ts +33 -0
- package/core/tool.d.ts +77 -0
- package/env.d.ts +8 -0
- package/harness/claudeCode.d.ts +3 -0
- package/harness/codex.d.ts +3 -0
- package/harness/core.d.ts +7 -0
- package/harness/index.d.ts +5 -0
- package/harness/index.js +1512 -0
- package/harness/pi.d.ts +3 -0
- package/harness/shared.d.ts +33 -0
- package/harness/tools.d.ts +33 -0
- package/index.d.ts +2 -0
- package/index.js +537 -0
- package/mcp/auth.d.ts +40 -0
- package/mcp/clients/grafana.d.ts +17 -0
- package/mcp/clients/linear.d.ts +9 -0
- package/mcp/clients/tenderly.d.ts +11 -0
- package/mcp/core.d.ts +30 -0
- package/mcp/index.d.ts +4 -0
- package/mcp/index.js +1356 -0
- package/mcp/oauth.d.ts +36 -0
- package/mcp/servers/calculator.d.ts +1 -0
- package/mcp/storage.d.ts +29 -0
- package/models/anthropic.d.ts +15 -0
- package/models/google.d.ts +14 -0
- package/models/index.d.ts +6 -0
- package/models/index.js +2039 -0
- package/models/moonshot.d.ts +16 -0
- package/models/openai-codex-auth.d.ts +17 -0
- package/models/openai-compatible.d.ts +41 -0
- package/models/openai.d.ts +29 -0
- package/package.json +60 -0
- package/skills/index.d.ts +7 -0
- package/skills/index.js +1007 -0
- package/triggers/bus.d.ts +8 -0
- package/triggers/core.d.ts +14 -0
- package/triggers/index.d.ts +7 -0
- package/triggers/index.js +588 -0
- package/triggers/sources/cron.d.ts +29 -0
- package/triggers/sources/github.d.ts +148 -0
- package/triggers/sources/grafana.d.ts +37 -0
- package/triggers/sources/linear.d.ts +39 -0
- package/triggers/sources/telegram.d.ts +85 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { Trigger } from '../core';
|
|
2
|
+
interface GithubUser {
|
|
3
|
+
login: string;
|
|
4
|
+
id: number;
|
|
5
|
+
type: 'User' | 'Bot' | 'Organization' | string;
|
|
6
|
+
}
|
|
7
|
+
interface GithubRepository {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
full_name: string;
|
|
11
|
+
owner: GithubUser;
|
|
12
|
+
default_branch: string;
|
|
13
|
+
private: boolean;
|
|
14
|
+
html_url: string;
|
|
15
|
+
}
|
|
16
|
+
interface GithubLabel {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
}
|
|
21
|
+
interface GithubPullRef {
|
|
22
|
+
ref: string;
|
|
23
|
+
sha: string;
|
|
24
|
+
repo: GithubRepository | null;
|
|
25
|
+
}
|
|
26
|
+
interface GithubPullRequest {
|
|
27
|
+
number: number;
|
|
28
|
+
state: 'open' | 'closed';
|
|
29
|
+
title: string;
|
|
30
|
+
body: string | null;
|
|
31
|
+
draft: boolean;
|
|
32
|
+
merged: boolean;
|
|
33
|
+
head: GithubPullRef;
|
|
34
|
+
base: GithubPullRef;
|
|
35
|
+
user: GithubUser;
|
|
36
|
+
labels: GithubLabel[];
|
|
37
|
+
html_url: string;
|
|
38
|
+
}
|
|
39
|
+
interface GithubIssue {
|
|
40
|
+
number: number;
|
|
41
|
+
state: 'open' | 'closed';
|
|
42
|
+
title: string;
|
|
43
|
+
body: string | null;
|
|
44
|
+
user: GithubUser;
|
|
45
|
+
labels: GithubLabel[];
|
|
46
|
+
pull_request?: {
|
|
47
|
+
url: string;
|
|
48
|
+
};
|
|
49
|
+
html_url: string;
|
|
50
|
+
}
|
|
51
|
+
interface GithubComment {
|
|
52
|
+
id: number;
|
|
53
|
+
body: string;
|
|
54
|
+
user: GithubUser;
|
|
55
|
+
html_url: string;
|
|
56
|
+
}
|
|
57
|
+
interface GithubReviewComment extends GithubComment {
|
|
58
|
+
path: string;
|
|
59
|
+
line: number | null;
|
|
60
|
+
start_line: number | null;
|
|
61
|
+
commit_id: string;
|
|
62
|
+
diff_hunk: string;
|
|
63
|
+
pull_request_review_id: number | null;
|
|
64
|
+
in_reply_to_id?: number;
|
|
65
|
+
}
|
|
66
|
+
interface GithubPushCommit {
|
|
67
|
+
id: string;
|
|
68
|
+
message: string;
|
|
69
|
+
url: string;
|
|
70
|
+
author: {
|
|
71
|
+
name: string;
|
|
72
|
+
email: string;
|
|
73
|
+
username?: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
interface PullRequestEvent {
|
|
77
|
+
action: string;
|
|
78
|
+
number: number;
|
|
79
|
+
pull_request: GithubPullRequest;
|
|
80
|
+
repository: GithubRepository;
|
|
81
|
+
sender: GithubUser;
|
|
82
|
+
}
|
|
83
|
+
interface IssuesEvent {
|
|
84
|
+
action: string;
|
|
85
|
+
issue: GithubIssue;
|
|
86
|
+
repository: GithubRepository;
|
|
87
|
+
sender: GithubUser;
|
|
88
|
+
}
|
|
89
|
+
interface IssueCommentEvent {
|
|
90
|
+
action: string;
|
|
91
|
+
issue: GithubIssue;
|
|
92
|
+
comment: GithubComment;
|
|
93
|
+
repository: GithubRepository;
|
|
94
|
+
sender: GithubUser;
|
|
95
|
+
}
|
|
96
|
+
interface PullRequestReviewCommentEvent {
|
|
97
|
+
action: string;
|
|
98
|
+
comment: GithubReviewComment;
|
|
99
|
+
pull_request: GithubPullRequest;
|
|
100
|
+
repository: GithubRepository;
|
|
101
|
+
sender: GithubUser;
|
|
102
|
+
}
|
|
103
|
+
interface PushEvent {
|
|
104
|
+
ref: string;
|
|
105
|
+
before: string;
|
|
106
|
+
after: string;
|
|
107
|
+
created: boolean;
|
|
108
|
+
deleted: boolean;
|
|
109
|
+
forced: boolean;
|
|
110
|
+
commits: GithubPushCommit[];
|
|
111
|
+
head_commit: GithubPushCommit | null;
|
|
112
|
+
repository: GithubRepository;
|
|
113
|
+
sender: GithubUser;
|
|
114
|
+
pusher: {
|
|
115
|
+
name: string;
|
|
116
|
+
email: string;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
interface GithubReceiverOptions {
|
|
120
|
+
secret: string;
|
|
121
|
+
deliveryCacheSize?: number;
|
|
122
|
+
}
|
|
123
|
+
declare class GithubReceiver {
|
|
124
|
+
private prBus;
|
|
125
|
+
private issueCommentBus;
|
|
126
|
+
private reviewCommentBus;
|
|
127
|
+
private issuesBus;
|
|
128
|
+
private pushBus;
|
|
129
|
+
private readonly secret;
|
|
130
|
+
private readonly deliveries;
|
|
131
|
+
constructor(options: GithubReceiverOptions);
|
|
132
|
+
pullRequest(opts?: {
|
|
133
|
+
actions?: string[];
|
|
134
|
+
}): Trigger<PullRequestEvent>;
|
|
135
|
+
issueComment(opts?: {
|
|
136
|
+
actions?: string[];
|
|
137
|
+
}): Trigger<IssueCommentEvent>;
|
|
138
|
+
pullRequestReviewComment(opts?: {
|
|
139
|
+
actions?: string[];
|
|
140
|
+
}): Trigger<PullRequestReviewCommentEvent>;
|
|
141
|
+
issues(opts?: {
|
|
142
|
+
actions?: string[];
|
|
143
|
+
}): Trigger<IssuesEvent>;
|
|
144
|
+
push(): Trigger<PushEvent>;
|
|
145
|
+
handle: (req: Request) => Promise<Response>;
|
|
146
|
+
}
|
|
147
|
+
declare function github(options: GithubReceiverOptions): GithubReceiver;
|
|
148
|
+
export { github, GithubReceiver, type GithubComment, type GithubIssue, type GithubLabel, type GithubPullRef, type GithubPullRequest, type GithubPushCommit, type GithubReceiverOptions, type GithubRepository, type GithubReviewComment, type GithubUser, type IssueCommentEvent, type IssuesEvent, type PullRequestEvent, type PullRequestReviewCommentEvent, type PushEvent, };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Trigger } from '../core';
|
|
2
|
+
type Json = Record<string, unknown>;
|
|
3
|
+
type AlertStatus = 'firing' | 'resolved';
|
|
4
|
+
interface GrafanaAlert {
|
|
5
|
+
status: AlertStatus;
|
|
6
|
+
labels: Record<string, string>;
|
|
7
|
+
annotations: Record<string, string>;
|
|
8
|
+
startsAt: string;
|
|
9
|
+
endsAt: string;
|
|
10
|
+
generatorURL?: string;
|
|
11
|
+
fingerprint?: string;
|
|
12
|
+
values?: Json;
|
|
13
|
+
}
|
|
14
|
+
interface GrafanaAlertEvent extends GrafanaAlert {
|
|
15
|
+
groupKey?: string;
|
|
16
|
+
externalURL?: string;
|
|
17
|
+
}
|
|
18
|
+
interface GrafanaWebhookPayload {
|
|
19
|
+
receiver?: string;
|
|
20
|
+
status?: AlertStatus;
|
|
21
|
+
alerts?: GrafanaAlert[];
|
|
22
|
+
groupLabels?: Record<string, string>;
|
|
23
|
+
commonLabels?: Record<string, string>;
|
|
24
|
+
commonAnnotations?: Record<string, string>;
|
|
25
|
+
externalURL?: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
groupKey?: string;
|
|
28
|
+
}
|
|
29
|
+
declare class GrafanaReceiver {
|
|
30
|
+
private alertBus;
|
|
31
|
+
alert(opts?: {
|
|
32
|
+
status?: AlertStatus;
|
|
33
|
+
}): Trigger<GrafanaAlertEvent>;
|
|
34
|
+
handle: (req: Request) => Promise<Response>;
|
|
35
|
+
}
|
|
36
|
+
declare function grafana(): GrafanaReceiver;
|
|
37
|
+
export { grafana, GrafanaReceiver, type AlertStatus, type GrafanaAlert, type GrafanaAlertEvent, type GrafanaWebhookPayload, };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Trigger } from '../core';
|
|
2
|
+
type Json = Record<string, unknown>;
|
|
3
|
+
type LinearAction = 'create' | 'update' | 'remove';
|
|
4
|
+
interface LinearWebhook {
|
|
5
|
+
action: LinearAction;
|
|
6
|
+
type: string;
|
|
7
|
+
data: Json;
|
|
8
|
+
url?: string;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
organizationId?: string;
|
|
11
|
+
webhookId?: string;
|
|
12
|
+
webhookTimestamp?: number;
|
|
13
|
+
}
|
|
14
|
+
interface LinearIssueEvent extends LinearWebhook {
|
|
15
|
+
type: 'Issue';
|
|
16
|
+
}
|
|
17
|
+
interface LinearCommentEvent extends LinearWebhook {
|
|
18
|
+
type: 'Comment';
|
|
19
|
+
}
|
|
20
|
+
interface LinearProjectEvent extends LinearWebhook {
|
|
21
|
+
type: 'Project';
|
|
22
|
+
}
|
|
23
|
+
declare class LinearReceiver {
|
|
24
|
+
private issueBus;
|
|
25
|
+
private commentBus;
|
|
26
|
+
private projectBus;
|
|
27
|
+
issue(opts?: {
|
|
28
|
+
actions?: LinearAction[];
|
|
29
|
+
}): Trigger<LinearIssueEvent>;
|
|
30
|
+
comment(opts?: {
|
|
31
|
+
actions?: LinearAction[];
|
|
32
|
+
}): Trigger<LinearCommentEvent>;
|
|
33
|
+
project(opts?: {
|
|
34
|
+
actions?: LinearAction[];
|
|
35
|
+
}): Trigger<LinearProjectEvent>;
|
|
36
|
+
handle: (req: Request) => Promise<Response>;
|
|
37
|
+
}
|
|
38
|
+
declare function linear(): LinearReceiver;
|
|
39
|
+
export { linear, LinearReceiver, type LinearAction, type LinearCommentEvent, type LinearIssueEvent, type LinearProjectEvent, type LinearWebhook, };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { Trigger } from '../core';
|
|
2
|
+
interface TelegramUser {
|
|
3
|
+
id: number;
|
|
4
|
+
is_bot: boolean;
|
|
5
|
+
first_name: string;
|
|
6
|
+
last_name?: string;
|
|
7
|
+
username?: string;
|
|
8
|
+
language_code?: string;
|
|
9
|
+
}
|
|
10
|
+
interface TelegramChat {
|
|
11
|
+
id: number;
|
|
12
|
+
type: 'private' | 'group' | 'supergroup' | 'channel';
|
|
13
|
+
title?: string;
|
|
14
|
+
username?: string;
|
|
15
|
+
first_name?: string;
|
|
16
|
+
last_name?: string;
|
|
17
|
+
}
|
|
18
|
+
interface TelegramMessage {
|
|
19
|
+
message_id: number;
|
|
20
|
+
from?: TelegramUser;
|
|
21
|
+
chat: TelegramChat;
|
|
22
|
+
date: number;
|
|
23
|
+
text?: string;
|
|
24
|
+
caption?: string;
|
|
25
|
+
reply_to_message?: TelegramMessage;
|
|
26
|
+
}
|
|
27
|
+
interface TelegramUpdate {
|
|
28
|
+
update_id: number;
|
|
29
|
+
message?: TelegramMessage;
|
|
30
|
+
edited_message?: TelegramMessage;
|
|
31
|
+
}
|
|
32
|
+
type TelegramChatAction = 'typing' | 'upload_photo' | 'record_video' | 'upload_video' | 'record_voice' | 'upload_voice' | 'upload_document' | 'choose_sticker' | 'find_location';
|
|
33
|
+
interface SendMessageOptions {
|
|
34
|
+
parseMode?: 'MarkdownV2' | 'HTML';
|
|
35
|
+
replyToMessageId?: number;
|
|
36
|
+
disableNotification?: boolean;
|
|
37
|
+
messageThreadId?: number;
|
|
38
|
+
linkPreview?: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface SendMessageDraftOptions {
|
|
41
|
+
parseMode?: 'MarkdownV2' | 'HTML';
|
|
42
|
+
messageThreadId?: number;
|
|
43
|
+
}
|
|
44
|
+
interface TelegramReceiverOptions {
|
|
45
|
+
secretToken: string;
|
|
46
|
+
updateCacheSize?: number;
|
|
47
|
+
}
|
|
48
|
+
declare class TelegramReceiver {
|
|
49
|
+
private messageBus;
|
|
50
|
+
private editedMessageBus;
|
|
51
|
+
private readonly secretToken;
|
|
52
|
+
private readonly updates;
|
|
53
|
+
constructor(options: TelegramReceiverOptions);
|
|
54
|
+
message(opts?: {
|
|
55
|
+
commands?: string[];
|
|
56
|
+
botUsername?: string;
|
|
57
|
+
}): Trigger<TelegramMessage>;
|
|
58
|
+
editedMessage(): Trigger<TelegramMessage>;
|
|
59
|
+
handle: (req: Request) => Promise<Response>;
|
|
60
|
+
}
|
|
61
|
+
declare function splitMessage(text: string, max?: number): string[];
|
|
62
|
+
declare class TelegramClient {
|
|
63
|
+
private readonly token;
|
|
64
|
+
private readonly baseUrl;
|
|
65
|
+
constructor(token: string, opts?: {
|
|
66
|
+
baseUrl?: string;
|
|
67
|
+
});
|
|
68
|
+
private call;
|
|
69
|
+
getMe(): Promise<TelegramUser>;
|
|
70
|
+
sendChatAction(chatId: number | string, action?: TelegramChatAction): Promise<boolean>;
|
|
71
|
+
sendMessage(chatId: number | string, text: string, opts?: SendMessageOptions): Promise<TelegramMessage[]>;
|
|
72
|
+
editMessageText(chatId: number | string, messageId: number, text: string, opts?: {
|
|
73
|
+
parseMode?: 'MarkdownV2' | 'HTML';
|
|
74
|
+
}): Promise<TelegramMessage | boolean>;
|
|
75
|
+
sendMessageDraft(chatId: number, draftId: number, text: string, opts?: SendMessageDraftOptions): Promise<boolean>;
|
|
76
|
+
setWebhook(url: string, opts?: {
|
|
77
|
+
secretToken?: string;
|
|
78
|
+
allowedUpdates?: string[];
|
|
79
|
+
}): Promise<boolean>;
|
|
80
|
+
deleteWebhook(opts?: {
|
|
81
|
+
dropPendingUpdates?: boolean;
|
|
82
|
+
}): Promise<boolean>;
|
|
83
|
+
}
|
|
84
|
+
declare function telegram(options: TelegramReceiverOptions): TelegramReceiver;
|
|
85
|
+
export { telegram, TelegramClient, TelegramReceiver, splitMessage, type SendMessageDraftOptions, type SendMessageOptions, type TelegramChat, type TelegramChatAction, type TelegramMessage, type TelegramReceiverOptions, type TelegramUpdate, type TelegramUser, };
|