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,16 @@
|
|
|
1
|
+
import type { LiteralUnion, SearchHit, SearchOptions, ThinkingLevel } from '../core';
|
|
2
|
+
import { OpenAICompatibleModel, type OpenAIAssistantWireMessage } from './openai-compatible';
|
|
3
|
+
declare const MOONSHOT_MODELS: readonly ["kimi-k2.6", "kimi-k2.5"];
|
|
4
|
+
type MoonshotModelName = LiteralUnion<(typeof MOONSHOT_MODELS)[number]>;
|
|
5
|
+
declare class MoonshotModel extends OpenAICompatibleModel {
|
|
6
|
+
constructor(modelName: MoonshotModelName, options?: {
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
thinking?: ThinkingLevel;
|
|
10
|
+
});
|
|
11
|
+
protected adaptAssistantWire(msg: OpenAIAssistantWireMessage): OpenAIAssistantWireMessage;
|
|
12
|
+
protected applyThinking(body: Record<string, unknown>): void;
|
|
13
|
+
searchWeb(query: string, opts?: SearchOptions): Promise<SearchHit[]>;
|
|
14
|
+
private chat;
|
|
15
|
+
}
|
|
16
|
+
export { MoonshotModel, MOONSHOT_MODELS };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type OpenAICodexAuthOptions = {
|
|
2
|
+
type: 'codex';
|
|
3
|
+
authFile?: string;
|
|
4
|
+
baseUrl?: string;
|
|
5
|
+
};
|
|
6
|
+
type CodexAuthHeaders = {
|
|
7
|
+
authorization: string;
|
|
8
|
+
accountId: string;
|
|
9
|
+
isFedrampAccount: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare class OpenAICodexAuth {
|
|
12
|
+
private authFile?;
|
|
13
|
+
readonly baseUrl: string;
|
|
14
|
+
constructor(options: OpenAICodexAuthOptions);
|
|
15
|
+
getHeaders(): Promise<CodexAuthHeaders>;
|
|
16
|
+
}
|
|
17
|
+
export { OpenAICodexAuth, type CodexAuthHeaders, type OpenAICodexAuthOptions };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Model, type CreateMessageParams, type Message, type ModelStreamEvent, type ThinkingLevel } from '../core';
|
|
2
|
+
interface OpenAIToolCall {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'function';
|
|
5
|
+
function: {
|
|
6
|
+
name: string;
|
|
7
|
+
arguments: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface OpenAIAssistantWireMessage {
|
|
11
|
+
role: 'assistant';
|
|
12
|
+
content: string | null;
|
|
13
|
+
tool_calls?: OpenAIToolCall[];
|
|
14
|
+
}
|
|
15
|
+
type OpenAIWireMessage = {
|
|
16
|
+
role: 'system';
|
|
17
|
+
content: string;
|
|
18
|
+
} | {
|
|
19
|
+
role: 'user';
|
|
20
|
+
content: string;
|
|
21
|
+
} | OpenAIAssistantWireMessage | {
|
|
22
|
+
role: 'tool';
|
|
23
|
+
tool_call_id: string;
|
|
24
|
+
content: string;
|
|
25
|
+
};
|
|
26
|
+
declare abstract class OpenAICompatibleModel extends Model {
|
|
27
|
+
modelName: string;
|
|
28
|
+
apiKey: string;
|
|
29
|
+
baseUrl: string;
|
|
30
|
+
thinking: ThinkingLevel;
|
|
31
|
+
protected constructor(modelName: string, options: {
|
|
32
|
+
apiKey: string;
|
|
33
|
+
baseUrl: string;
|
|
34
|
+
thinking?: ThinkingLevel;
|
|
35
|
+
});
|
|
36
|
+
streamMessage(params: CreateMessageParams): AsyncIterable<ModelStreamEvent>;
|
|
37
|
+
protected serializeMessages(messages: Message[]): OpenAIWireMessage[];
|
|
38
|
+
protected adaptAssistantWire(msg: OpenAIAssistantWireMessage): OpenAIAssistantWireMessage;
|
|
39
|
+
protected applyThinking(body: Record<string, unknown>): void;
|
|
40
|
+
}
|
|
41
|
+
export { OpenAICompatibleModel, type OpenAIAssistantWireMessage };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CreateMessageParams, LiteralUnion, ModelStreamEvent, SearchHit, SearchOptions, ThinkingLevel } from '../core';
|
|
2
|
+
import { OpenAICompatibleModel } from './openai-compatible';
|
|
3
|
+
declare const OPENAI_MODELS: readonly ["gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.3-codex"];
|
|
4
|
+
type OpenAIModelName = LiteralUnion<(typeof OPENAI_MODELS)[number]>;
|
|
5
|
+
type OpenAIApiKeyAuthOptions = {
|
|
6
|
+
type: 'apiKey';
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
};
|
|
9
|
+
type OpenAICodexAuthModelOptions = {
|
|
10
|
+
type: 'codex';
|
|
11
|
+
authFile?: string;
|
|
12
|
+
};
|
|
13
|
+
type OpenAIAuthOptions = OpenAIApiKeyAuthOptions | OpenAICodexAuthModelOptions;
|
|
14
|
+
type OpenAIModelOptions = {
|
|
15
|
+
auth?: OpenAIAuthOptions;
|
|
16
|
+
baseUrl?: string;
|
|
17
|
+
thinking?: ThinkingLevel;
|
|
18
|
+
};
|
|
19
|
+
declare class OpenAIModel extends OpenAICompatibleModel {
|
|
20
|
+
private codexAuth?;
|
|
21
|
+
constructor(modelName: OpenAIModelName, options?: OpenAIModelOptions);
|
|
22
|
+
streamMessage(params: CreateMessageParams): AsyncIterable<ModelStreamEvent>;
|
|
23
|
+
protected applyThinking(body: Record<string, unknown>): void;
|
|
24
|
+
searchWeb(query: string, opts?: SearchOptions): Promise<SearchHit[]>;
|
|
25
|
+
private streamResponses;
|
|
26
|
+
private fetchResponsesBuffered;
|
|
27
|
+
private responsesEndpoint;
|
|
28
|
+
}
|
|
29
|
+
export { OpenAIModel, OPENAI_MODELS, type OpenAIAuthOptions, type OpenAIModelOptions, };
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "roboport",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Minimal TypeScript framework for building LLM agents.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Timur Badretdinov",
|
|
7
|
+
"url": "https://github.com/Destiner"
|
|
8
|
+
},
|
|
9
|
+
"license": "UNLICENSED",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Destiner/roboport.git",
|
|
13
|
+
"directory": "packages/roboport"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/Destiner/roboport#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/Destiner/roboport/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"llm",
|
|
21
|
+
"agent",
|
|
22
|
+
"ai",
|
|
23
|
+
"mcp",
|
|
24
|
+
"anthropic",
|
|
25
|
+
"openai",
|
|
26
|
+
"typescript"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"main": "./index.js",
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./index.d.ts",
|
|
34
|
+
"import": "./index.js"
|
|
35
|
+
},
|
|
36
|
+
"./harness": {
|
|
37
|
+
"types": "./harness/index.d.ts",
|
|
38
|
+
"import": "./harness/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./mcp": {
|
|
41
|
+
"types": "./mcp/index.d.ts",
|
|
42
|
+
"import": "./mcp/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./models": {
|
|
45
|
+
"types": "./models/index.d.ts",
|
|
46
|
+
"import": "./models/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./skills": {
|
|
49
|
+
"types": "./skills/index.d.ts",
|
|
50
|
+
"import": "./skills/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./triggers": {
|
|
53
|
+
"types": "./triggers/index.d.ts",
|
|
54
|
+
"import": "./triggers/index.js"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"zod": "^4.0.0"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Skill } from '../core';
|
|
2
|
+
declare const prReview: Skill;
|
|
3
|
+
declare const docsUpdate: Skill;
|
|
4
|
+
declare const publicDocs: Skill;
|
|
5
|
+
declare const developerExperience: Skill;
|
|
6
|
+
declare const codeSimplifier: Skill;
|
|
7
|
+
export { prReview, docsUpdate, publicDocs, developerExperience, codeSimplifier, };
|