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
package/mcp/oauth.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface AuthorizationServerMetadata {
|
|
2
|
+
authorization_endpoint: string;
|
|
3
|
+
token_endpoint: string;
|
|
4
|
+
registration_endpoint?: string;
|
|
5
|
+
scopes_supported?: string[];
|
|
6
|
+
code_challenge_methods_supported?: string[];
|
|
7
|
+
}
|
|
8
|
+
interface TokenResponse {
|
|
9
|
+
access_token: string;
|
|
10
|
+
refresh_token?: string;
|
|
11
|
+
expires_in?: number;
|
|
12
|
+
token_type?: string;
|
|
13
|
+
scope?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function generatePkce(): Promise<{
|
|
16
|
+
verifier: string;
|
|
17
|
+
challenge: string;
|
|
18
|
+
}>;
|
|
19
|
+
declare function generateState(): string;
|
|
20
|
+
declare function discover(serverUrl: string): Promise<AuthorizationServerMetadata>;
|
|
21
|
+
declare function registerClient(registrationEndpoint: string, redirectUri: string): Promise<string>;
|
|
22
|
+
declare function openBrowser(url: string): void;
|
|
23
|
+
declare function captureAuthorizationCode(port: number, expectedState: string, timeoutMs: number): Promise<string>;
|
|
24
|
+
declare function exchangeCode(opts: {
|
|
25
|
+
tokenEndpoint: string;
|
|
26
|
+
code: string;
|
|
27
|
+
clientId: string;
|
|
28
|
+
redirectUri: string;
|
|
29
|
+
verifier: string;
|
|
30
|
+
}): Promise<TokenResponse>;
|
|
31
|
+
declare function refreshTokens(opts: {
|
|
32
|
+
tokenEndpoint: string;
|
|
33
|
+
refreshToken: string;
|
|
34
|
+
clientId: string;
|
|
35
|
+
}): Promise<TokenResponse>;
|
|
36
|
+
export { captureAuthorizationCode, discover, exchangeCode, generatePkce, generateState, openBrowser, refreshTokens, registerClient, type AuthorizationServerMetadata, type TokenResponse, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/mcp/storage.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type TokenSet = {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
refreshToken?: string;
|
|
4
|
+
expiresAt?: number;
|
|
5
|
+
clientId?: string;
|
|
6
|
+
redirectUri?: string;
|
|
7
|
+
};
|
|
8
|
+
interface OAuthStorage {
|
|
9
|
+
load(key: string): Promise<TokenSet | null>;
|
|
10
|
+
save(key: string, tokens: TokenSet): Promise<void>;
|
|
11
|
+
clear(key: string): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
declare class FileStorage implements OAuthStorage {
|
|
14
|
+
private path;
|
|
15
|
+
private cache?;
|
|
16
|
+
constructor(path?: string);
|
|
17
|
+
private read;
|
|
18
|
+
private write;
|
|
19
|
+
load(key: string): Promise<TokenSet | null>;
|
|
20
|
+
save(key: string, tokens: TokenSet): Promise<void>;
|
|
21
|
+
clear(key: string): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
declare class MemoryStorage implements OAuthStorage {
|
|
24
|
+
private data;
|
|
25
|
+
load(key: string): Promise<TokenSet | null>;
|
|
26
|
+
save(key: string, tokens: TokenSet): Promise<void>;
|
|
27
|
+
clear(key: string): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export { FileStorage, MemoryStorage, type OAuthStorage, type TokenSet };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Model, type CreateMessageParams, type LiteralUnion, type ModelStreamEvent, type SearchHit, type SearchOptions, type ThinkingLevel } from '../core';
|
|
2
|
+
declare const ANTHROPIC_MODELS: readonly ["claude-opus-4-8", "claude-opus-4-7", "claude-opus-4-6", "claude-sonnet-4-6", "claude-sonnet-4-5", "claude-haiku-4-5"];
|
|
3
|
+
type AnthropicModelName = LiteralUnion<(typeof ANTHROPIC_MODELS)[number]>;
|
|
4
|
+
declare class AnthropicModel extends Model {
|
|
5
|
+
modelName: string;
|
|
6
|
+
apiKey: string;
|
|
7
|
+
thinking: ThinkingLevel;
|
|
8
|
+
constructor(modelName: AnthropicModelName, options?: {
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
thinking?: ThinkingLevel;
|
|
11
|
+
});
|
|
12
|
+
streamMessage(params: CreateMessageParams): AsyncIterable<ModelStreamEvent>;
|
|
13
|
+
searchWeb(query: string, opts?: SearchOptions): Promise<SearchHit[]>;
|
|
14
|
+
}
|
|
15
|
+
export { AnthropicModel, ANTHROPIC_MODELS };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LiteralUnion, SearchHit, SearchOptions, ThinkingLevel } from '../core';
|
|
2
|
+
import { OpenAICompatibleModel } from './openai-compatible';
|
|
3
|
+
declare const GEMINI_MODELS: readonly ["gemini-3.5-flash", "gemini-3.1-pro", "gemini-3.1-flash-lite", "gemini-3-flash"];
|
|
4
|
+
type GeminiModelName = LiteralUnion<(typeof GEMINI_MODELS)[number]>;
|
|
5
|
+
declare class GeminiModel extends OpenAICompatibleModel {
|
|
6
|
+
constructor(modelName: GeminiModelName, options?: {
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
thinking?: ThinkingLevel;
|
|
10
|
+
});
|
|
11
|
+
protected applyThinking(body: Record<string, unknown>): void;
|
|
12
|
+
searchWeb(query: string, opts?: SearchOptions): Promise<SearchHit[]>;
|
|
13
|
+
}
|
|
14
|
+
export { GeminiModel, GEMINI_MODELS };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ANTHROPIC_MODELS, AnthropicModel } from './anthropic';
|
|
2
|
+
import { GEMINI_MODELS, GeminiModel } from './google';
|
|
3
|
+
import { MOONSHOT_MODELS, MoonshotModel } from './moonshot';
|
|
4
|
+
import { OPENAI_MODELS, OpenAIModel } from './openai';
|
|
5
|
+
import { OpenAICompatibleModel } from './openai-compatible';
|
|
6
|
+
export { AnthropicModel, GeminiModel, MoonshotModel, OpenAIModel, OpenAICompatibleModel, ANTHROPIC_MODELS, GEMINI_MODELS, MOONSHOT_MODELS, OPENAI_MODELS, };
|