@tangle-network/agent-app 0.58.15 → 0.58.16
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/VaultPane-RIJM452Y.js +7 -0
- package/dist/assistant/index.js +13 -11
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +4 -4
- package/dist/chat-routes/index.js +4 -4
- package/dist/chat-store/index.js +2 -2
- package/dist/chunk-B7CL7ENS.js +118 -0
- package/dist/chunk-B7CL7ENS.js.map +1 -0
- package/dist/{chunk-POE5UUUT.js → chunk-BDCATWBV.js} +3 -3
- package/dist/{chunk-NWR5CERQ.js → chunk-FNRUXPXE.js} +2 -2
- package/dist/{chunk-57TTYY6T.js → chunk-GEGCSRYQ.js} +2 -2
- package/dist/{chunk-WTGSLW5X.js → chunk-HTAFI247.js} +4 -4
- package/dist/{chunk-MLG7YSTS.js → chunk-KSLVMA2D.js} +3 -3
- package/dist/{chunk-T5U7LDQW.js → chunk-OFQUM5FP.js} +52 -15
- package/dist/chunk-OFQUM5FP.js.map +1 -0
- package/dist/chunk-PV33JZKV.js +115 -0
- package/dist/chunk-PV33JZKV.js.map +1 -0
- package/dist/{chunk-TUNRLEDH.js → chunk-Q3BLSWYP.js} +2 -2
- package/dist/{chunk-GIBNG64C.js → chunk-S5MKEU2E.js} +2607 -1438
- package/dist/chunk-S5MKEU2E.js.map +1 -0
- package/dist/{chunk-EN5CP7T7.js → chunk-T5PPQPOD.js} +5 -111
- package/dist/chunk-T5PPQPOD.js.map +1 -0
- package/dist/{chunk-DWUBICLW.js → chunk-UGPV7VEW.js} +569 -236
- package/dist/chunk-UGPV7VEW.js.map +1 -0
- package/dist/{chunk-EXBAVMMK.js → chunk-XOBVWCOA.js} +347 -311
- package/dist/chunk-XOBVWCOA.js.map +1 -0
- package/dist/{mention-editor-W2GG2NZ7.js → mention-editor-4D32JTDS.js} +2 -2
- package/dist/preset-cloudflare/index.js +3 -3
- package/dist/profile/index.js +4 -2
- package/dist/profile/index.js.map +1 -1
- package/dist/profile-editor/index.d.ts +185 -0
- package/dist/profile-editor/index.js +18 -0
- package/dist/profile-editor/index.js.map +1 -0
- package/dist/profile-editor/server.d.ts +112 -0
- package/dist/profile-editor/server.js +635 -0
- package/dist/profile-editor/server.js.map +1 -0
- package/dist/public-consultation/index.js +4 -4
- package/dist/skills/frontmatter.d.ts +43 -0
- package/dist/skills/index.d.ts +1 -38
- package/dist/skills/index.js +4 -2
- package/dist/skills-placement/index.js +2 -1
- package/dist/skills-placement/index.js.map +1 -1
- package/dist/stories/fixtures/profile-editor.d.ts +17 -0
- package/dist/studio-react/index.js +3 -3
- package/dist/teams/invitations-api.js +3 -3
- package/dist/vault/VaultPane.d.ts +4 -4
- package/dist/vault/VaultTree.d.ts +39 -0
- package/dist/vault/contracts.d.ts +17 -7
- package/dist/vault/index.d.ts +5 -4
- package/dist/vault/index.js +7 -3
- package/dist/vault/lazy.js +1 -1
- package/dist/web-react/agent-profile-editor.d.ts +63 -1
- package/dist/web-react/agent-profile-files.d.ts +38 -0
- package/dist/web-react/agent-profile-form-kit.d.ts +87 -0
- package/dist/web-react/agent-profile-github-source.d.ts +35 -0
- package/dist/web-react/agent-profile-mcp-servers.d.ts +20 -0
- package/dist/web-react/agent-profile-suggest-input.d.ts +31 -0
- package/dist/web-react/agent-session-controls.d.ts +51 -0
- package/dist/web-react/controls.d.ts +29 -3
- package/dist/web-react/index.d.ts +3 -2
- package/dist/web-react/index.js +23 -15
- package/dist/workspace-react/index.js +4 -4
- package/package.json +11 -1
- package/dist/VaultPane-SPXE7XAC.js +0 -7
- package/dist/chunk-DWUBICLW.js.map +0 -1
- package/dist/chunk-EN5CP7T7.js.map +0 -1
- package/dist/chunk-EXBAVMMK.js.map +0 -1
- package/dist/chunk-GIBNG64C.js.map +0 -1
- package/dist/chunk-T5U7LDQW.js.map +0 -1
- /package/dist/{VaultPane-SPXE7XAC.js.map → VaultPane-RIJM452Y.js.map} +0 -0
- /package/dist/{chunk-POE5UUUT.js.map → chunk-BDCATWBV.js.map} +0 -0
- /package/dist/{chunk-NWR5CERQ.js.map → chunk-FNRUXPXE.js.map} +0 -0
- /package/dist/{chunk-57TTYY6T.js.map → chunk-GEGCSRYQ.js.map} +0 -0
- /package/dist/{chunk-WTGSLW5X.js.map → chunk-HTAFI247.js.map} +0 -0
- /package/dist/{chunk-MLG7YSTS.js.map → chunk-KSLVMA2D.js.map} +0 -0
- /package/dist/{chunk-TUNRLEDH.js.map → chunk-Q3BLSWYP.js.map} +0 -0
- /package/dist/{mention-editor-W2GG2NZ7.js.map → mention-editor-4D32JTDS.js.map} +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared contract between the profile editor and the product server that
|
|
3
|
+
* checks what an edit points at: GitHub skill and file sources, and MCP
|
|
4
|
+
* servers. The editor never talks to GitHub or an MCP server itself; the
|
|
5
|
+
* product authenticates the request, picks the credential, and answers through
|
|
6
|
+
* `./profile-editor/server`. This module is browser-safe: types, the wire
|
|
7
|
+
* format, and a fetch client for the product's route.
|
|
8
|
+
*/
|
|
9
|
+
import type { AgentProfileMcpServer } from '@tangle-network/agent-interface/profile';
|
|
10
|
+
/** Why a GitHub source cannot be used. Each one renders its own message and next step. */
|
|
11
|
+
export type GitHubSourceProblem =
|
|
12
|
+
/** The workspace has no usable GitHub connection. */
|
|
13
|
+
'not-connected'
|
|
14
|
+
/** GitHub answered 404 for the repository: it does not exist, or this connection cannot see it. */
|
|
15
|
+
| 'repository-not-found'
|
|
16
|
+
/** GitHub refused the connection (401/403), for example an expired token or SSO enforcement. */
|
|
17
|
+
| 'no-access'
|
|
18
|
+
/** The commit or branch does not exist in the repository. */
|
|
19
|
+
| 'ref-not-found'
|
|
20
|
+
/** No file exists at the path in the chosen commit. */
|
|
21
|
+
| 'path-not-found'
|
|
22
|
+
/** The path names a folder without a skill file in it. */
|
|
23
|
+
| 'not-a-file'
|
|
24
|
+
/** The file is not an Agent Skill: it lacks `name` and `description` frontmatter. */
|
|
25
|
+
| 'not-a-skill'
|
|
26
|
+
/** The file is larger than the product accepts, or is not UTF-8 text. */
|
|
27
|
+
| 'unsupported-file' | 'rate-limited'
|
|
28
|
+
/** GitHub or the product's connection service did not answer, or the operation is not offered. */
|
|
29
|
+
| 'unavailable';
|
|
30
|
+
export interface GitHubSourceFailure {
|
|
31
|
+
ok: false;
|
|
32
|
+
problem: GitHubSourceProblem;
|
|
33
|
+
/** User-facing explanation with the next step. */
|
|
34
|
+
message: string;
|
|
35
|
+
}
|
|
36
|
+
export type GitHubSourceOutcome<T> = {
|
|
37
|
+
ok: true;
|
|
38
|
+
value: T;
|
|
39
|
+
} | GitHubSourceFailure;
|
|
40
|
+
export interface GitHubRepositorySummary {
|
|
41
|
+
/** `owner/repo`. */
|
|
42
|
+
fullName: string;
|
|
43
|
+
private: boolean;
|
|
44
|
+
defaultBranch: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface GitHubCommitSummary {
|
|
48
|
+
/** Full 40-character commit SHA. */
|
|
49
|
+
sha: string;
|
|
50
|
+
/** The branch the commit was resolved from, when it was resolved from one. */
|
|
51
|
+
branch?: string;
|
|
52
|
+
committedAt?: string;
|
|
53
|
+
message?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface GitHubFileEntry {
|
|
56
|
+
path: string;
|
|
57
|
+
size?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface GitHubFileList {
|
|
60
|
+
commit: GitHubCommitSummary;
|
|
61
|
+
files: GitHubFileEntry[];
|
|
62
|
+
/** GitHub truncated the listing; paths not listed can still be typed. */
|
|
63
|
+
truncated: boolean;
|
|
64
|
+
}
|
|
65
|
+
export type GitHubSourcePurpose = 'skill' | 'file';
|
|
66
|
+
export interface GitHubSourceRequest {
|
|
67
|
+
repository: string;
|
|
68
|
+
path: string;
|
|
69
|
+
/** Full commit SHA the source is pinned to. */
|
|
70
|
+
commit: string;
|
|
71
|
+
purpose: GitHubSourcePurpose;
|
|
72
|
+
}
|
|
73
|
+
export interface GitHubSourceCheck {
|
|
74
|
+
repository: string;
|
|
75
|
+
/** The checked path. A skill folder resolves to its `SKILL.md`. */
|
|
76
|
+
path: string;
|
|
77
|
+
commit: GitHubCommitSummary;
|
|
78
|
+
size: number;
|
|
79
|
+
/** The file's UTF-8 text, for products that store sources inline. */
|
|
80
|
+
content: string;
|
|
81
|
+
/** Frontmatter of a skill file. */
|
|
82
|
+
skill?: {
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** GitHub lookups the editor needs, answered by the product with the workspace's connection. */
|
|
88
|
+
export interface ProfileEditorGitHubPort {
|
|
89
|
+
/** Repositories the connection can read, most recently updated first. */
|
|
90
|
+
repositories(signal?: AbortSignal): Promise<GitHubSourceOutcome<{
|
|
91
|
+
repositories: GitHubRepositorySummary[];
|
|
92
|
+
}>>;
|
|
93
|
+
/** The repository and the head commit of its default branch. */
|
|
94
|
+
latest(repository: string, signal?: AbortSignal): Promise<GitHubSourceOutcome<{
|
|
95
|
+
repository: GitHubRepositorySummary;
|
|
96
|
+
commit: GitHubCommitSummary;
|
|
97
|
+
}>>;
|
|
98
|
+
/** Confirm a commit SHA exists in the repository. */
|
|
99
|
+
commit(repository: string, sha: string, signal?: AbortSignal): Promise<GitHubSourceOutcome<GitHubCommitSummary>>;
|
|
100
|
+
/** Files in the repository at a commit, for path suggestions. */
|
|
101
|
+
files(repository: string, commit: string, signal?: AbortSignal): Promise<GitHubSourceOutcome<GitHubFileList>>;
|
|
102
|
+
/** Read and validate the source the editor is about to add. */
|
|
103
|
+
check(request: GitHubSourceRequest, signal?: AbortSignal): Promise<GitHubSourceOutcome<GitHubSourceCheck>>;
|
|
104
|
+
}
|
|
105
|
+
/** Why an MCP server check failed. */
|
|
106
|
+
export type McpHealthProblem =
|
|
107
|
+
/** The URL is malformed or uses a scheme the product does not accept. */
|
|
108
|
+
'invalid-url'
|
|
109
|
+
/** The product does not connect to this address, for example a private network or plain HTTP. */
|
|
110
|
+
| 'blocked-url'
|
|
111
|
+
/** This product checks remote servers only; a local command is checked when the agent starts it. */
|
|
112
|
+
| 'not-checkable' | 'unreachable' | 'timeout'
|
|
113
|
+
/** The server asked for credentials the check does not send. */
|
|
114
|
+
| 'auth-required'
|
|
115
|
+
/** The server answered, but not with the MCP protocol. */
|
|
116
|
+
| 'protocol-error' | 'unavailable';
|
|
117
|
+
export interface McpTool {
|
|
118
|
+
name: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
}
|
|
121
|
+
export type McpHealth = {
|
|
122
|
+
ok: true;
|
|
123
|
+
tools: McpTool[];
|
|
124
|
+
serverName?: string;
|
|
125
|
+
serverVersion?: string;
|
|
126
|
+
latencyMs: number;
|
|
127
|
+
checkedAt: string;
|
|
128
|
+
} | {
|
|
129
|
+
ok: false;
|
|
130
|
+
problem: McpHealthProblem;
|
|
131
|
+
message: string;
|
|
132
|
+
status?: number;
|
|
133
|
+
checkedAt: string;
|
|
134
|
+
};
|
|
135
|
+
/** Connects to an MCP server and lists its tools. The product decides which addresses it will reach. */
|
|
136
|
+
export interface ProfileEditorMcpPort {
|
|
137
|
+
check(server: AgentProfileMcpServer, signal?: AbortSignal): Promise<McpHealth>;
|
|
138
|
+
}
|
|
139
|
+
/** The product route's subpaths, relative to the endpoint passed to {@link createProfileEditorClient}. */
|
|
140
|
+
export declare const PROFILE_EDITOR_ROUTES: {
|
|
141
|
+
readonly repositories: 'github/repositories';
|
|
142
|
+
readonly latest: 'github/latest';
|
|
143
|
+
readonly commit: 'github/commit';
|
|
144
|
+
readonly files: 'github/files';
|
|
145
|
+
readonly check: 'github/check';
|
|
146
|
+
readonly mcpCheck: 'mcp/check';
|
|
147
|
+
};
|
|
148
|
+
export interface ProfileEditorClient {
|
|
149
|
+
github: ProfileEditorGitHubPort;
|
|
150
|
+
mcp: ProfileEditorMcpPort;
|
|
151
|
+
}
|
|
152
|
+
export interface ProfileEditorClientOptions {
|
|
153
|
+
/** The product route that serves `./profile-editor/server`, for example `/api/workspaces/w1/profile-editor`. */
|
|
154
|
+
endpoint: string;
|
|
155
|
+
fetch?: typeof fetch;
|
|
156
|
+
}
|
|
157
|
+
/** Ports backed by the product route. A transport failure becomes an `unavailable` outcome, never a throw. */
|
|
158
|
+
export declare function createProfileEditorClient({ endpoint, fetch: fetchImpl }: ProfileEditorClientOptions): ProfileEditorClient;
|
|
159
|
+
/**
|
|
160
|
+
* Normalize what a person types or pastes into `owner/repo`: a bare name pair,
|
|
161
|
+
* a `github.com` URL (including `/tree/` and `/blob/` links), or an SSH remote.
|
|
162
|
+
* Returns the path and commit-ish a link carries too, so pasting a file link
|
|
163
|
+
* fills every field. Null when the text names no repository.
|
|
164
|
+
*/
|
|
165
|
+
export declare function parseGitHubLocation(input: string): {
|
|
166
|
+
repository: string;
|
|
167
|
+
ref?: string;
|
|
168
|
+
path?: string;
|
|
169
|
+
} | null;
|
|
170
|
+
export declare function isCommitSha(value: string): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* The address policy for products that connect only to public HTTPS servers:
|
|
173
|
+
* no credentials in the URL, no IP literals, and no single-label, `.local` or
|
|
174
|
+
* `.internal` hosts. Returns the reason an address is refused, or null.
|
|
175
|
+
*/
|
|
176
|
+
export declare function publicHttpsUrlProblem(value: string): string | null;
|
|
177
|
+
/** Frontmatter `name` and `description` of an Agent Skill, or the reason the text is not one. */
|
|
178
|
+
export declare function readSkillFrontmatter(content: string): {
|
|
179
|
+
ok: true;
|
|
180
|
+
name: string;
|
|
181
|
+
description: string;
|
|
182
|
+
} | {
|
|
183
|
+
ok: false;
|
|
184
|
+
message: string;
|
|
185
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PROFILE_EDITOR_ROUTES,
|
|
3
|
+
createProfileEditorClient,
|
|
4
|
+
isCommitSha,
|
|
5
|
+
parseGitHubLocation,
|
|
6
|
+
publicHttpsUrlProblem,
|
|
7
|
+
readSkillFrontmatter
|
|
8
|
+
} from "../chunk-B7CL7ENS.js";
|
|
9
|
+
import "../chunk-PV33JZKV.js";
|
|
10
|
+
export {
|
|
11
|
+
PROFILE_EDITOR_ROUTES,
|
|
12
|
+
createProfileEditorClient,
|
|
13
|
+
isCommitSha,
|
|
14
|
+
parseGitHubLocation,
|
|
15
|
+
publicHttpsUrlProblem,
|
|
16
|
+
readSkillFrontmatter
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { AgentProfileMcpServer } from '@tangle-network/agent-interface/profile';
|
|
2
|
+
import { type McpHealth, type ProfileEditorGitHubPort, type ProfileEditorMcpPort } from './index';
|
|
3
|
+
export * from './index';
|
|
4
|
+
/**
|
|
5
|
+
* A GitHub read failure. `status` is the HTTP status GitHub returned, or
|
|
6
|
+
* `not-connected` when the workspace has no usable connection, or
|
|
7
|
+
* `unsupported` when the transport cannot perform the operation.
|
|
8
|
+
*/
|
|
9
|
+
export declare class GitHubReadError extends Error {
|
|
10
|
+
readonly status: number | 'not-connected' | 'unsupported';
|
|
11
|
+
readonly rateLimited: boolean;
|
|
12
|
+
constructor(status: number | 'not-connected' | 'unsupported', message: string, rateLimited?: boolean);
|
|
13
|
+
}
|
|
14
|
+
export interface GitHubRepositoryRecord {
|
|
15
|
+
fullName: string;
|
|
16
|
+
private: boolean;
|
|
17
|
+
defaultBranch: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface GitHubCommitRecord {
|
|
21
|
+
sha: string;
|
|
22
|
+
treeSha: string;
|
|
23
|
+
committedAt?: string;
|
|
24
|
+
message?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GitHubTreeRecord {
|
|
27
|
+
entries: {
|
|
28
|
+
path: string;
|
|
29
|
+
type: 'blob' | 'tree' | 'commit';
|
|
30
|
+
sha: string;
|
|
31
|
+
size?: number;
|
|
32
|
+
}[];
|
|
33
|
+
truncated: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The GitHub operations the source service needs. Implementations throw
|
|
37
|
+
* {@link GitHubReadError} for GitHub refusals so the service can explain them.
|
|
38
|
+
*/
|
|
39
|
+
export interface GitHubSourceReader {
|
|
40
|
+
/** Repositories the credential can read, most recently pushed first. Omit when the transport cannot list them. */
|
|
41
|
+
listRepositories?(signal?: AbortSignal): Promise<GitHubRepositoryRecord[]>;
|
|
42
|
+
getRepository(owner: string, repo: string, signal?: AbortSignal): Promise<GitHubRepositoryRecord>;
|
|
43
|
+
getBranchHead(owner: string, repo: string, branch: string, signal?: AbortSignal): Promise<GitHubCommitRecord>;
|
|
44
|
+
/** Resolve a full commit SHA, throwing a 404 or 422 when it is absent. */
|
|
45
|
+
getCommit(owner: string, repo: string, sha: string, signal?: AbortSignal): Promise<GitHubCommitRecord>;
|
|
46
|
+
/** The recursive tree of a commit or tree SHA. */
|
|
47
|
+
getTree(owner: string, repo: string, sha: string, signal?: AbortSignal): Promise<GitHubTreeRecord>;
|
|
48
|
+
/** A blob's bytes. */
|
|
49
|
+
getBlob(owner: string, repo: string, sha: string, signal?: AbortSignal): Promise<Uint8Array>;
|
|
50
|
+
}
|
|
51
|
+
export interface GitHubRestReaderOptions {
|
|
52
|
+
/** A token for the person or installation. Without one, only public repositories resolve and listing is unavailable. */
|
|
53
|
+
token?: string;
|
|
54
|
+
fetch?: typeof fetch;
|
|
55
|
+
baseUrl?: string;
|
|
56
|
+
timeoutMs?: number;
|
|
57
|
+
}
|
|
58
|
+
/** Parse GitHub REST payloads shared by the REST reader and other transports that relay GitHub's JSON. */
|
|
59
|
+
export declare const githubPayload: {
|
|
60
|
+
repository(value: unknown): GitHubRepositoryRecord;
|
|
61
|
+
repositories(value: unknown): GitHubRepositoryRecord[];
|
|
62
|
+
branch(value: unknown): GitHubCommitRecord;
|
|
63
|
+
commit(value: unknown): GitHubCommitRecord;
|
|
64
|
+
tree(value: unknown): GitHubTreeRecord;
|
|
65
|
+
blob(value: unknown): Uint8Array;
|
|
66
|
+
};
|
|
67
|
+
/** A reader over GitHub's REST API with a person or installation token. */
|
|
68
|
+
export declare function createGitHubRestReader(options?: GitHubRestReaderOptions): GitHubSourceReader;
|
|
69
|
+
export interface GitHubSourceServiceOptions {
|
|
70
|
+
/** Largest file the product stores or fetches, in bytes. Defaults to 256 KiB. */
|
|
71
|
+
maxFileBytes?: number;
|
|
72
|
+
/** Most paths returned for suggestions. Defaults to 5,000. */
|
|
73
|
+
maxFiles?: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The editor's GitHub port, computed from a reader. Lookups are typed
|
|
77
|
+
* outcomes; nothing here throws for a GitHub refusal.
|
|
78
|
+
*/
|
|
79
|
+
export declare function createGitHubSourceService(reader: GitHubSourceReader, options?: GitHubSourceServiceOptions): ProfileEditorGitHubPort;
|
|
80
|
+
export declare function formatBytes(bytes: number): string;
|
|
81
|
+
export interface McpHealthCheckOptions {
|
|
82
|
+
fetch?: typeof fetch;
|
|
83
|
+
/** Total time for the whole check. Defaults to 8 seconds. */
|
|
84
|
+
timeoutMs?: number;
|
|
85
|
+
/** The address policy. Return the reason an address is refused, or null. Defaults to {@link publicHttpsUrlProblem}. */
|
|
86
|
+
urlProblem?: (url: string) => string | null;
|
|
87
|
+
clientInfo?: {
|
|
88
|
+
name: string;
|
|
89
|
+
version: string;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Connect to a remote MCP server, initialize a session, and list its tools.
|
|
94
|
+
* Speaks Streamable HTTP, and the HTTP+SSE transport when the server declares
|
|
95
|
+
* `transport: 'sse'`. Public header values are sent; secret references are not
|
|
96
|
+
* resolved here, so a server that requires them reports `auth-required`.
|
|
97
|
+
*/
|
|
98
|
+
export declare function checkMcpServer(server: AgentProfileMcpServer, options?: McpHealthCheckOptions): Promise<McpHealth>;
|
|
99
|
+
/** The editor's MCP port, running checks in this process with the given address policy. */
|
|
100
|
+
export declare function createMcpHealthChecker(options?: McpHealthCheckOptions): ProfileEditorMcpPort;
|
|
101
|
+
export interface ProfileEditorHandlerOptions {
|
|
102
|
+
/** GitHub lookups for this workspace. Null when the product offers no GitHub sources. */
|
|
103
|
+
github: ProfileEditorGitHubPort | null;
|
|
104
|
+
/** MCP checks. Null when the product offers no MCP servers. */
|
|
105
|
+
mcp: ProfileEditorMcpPort | null;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Serve the editor's checks. Call it after authenticating the user and
|
|
109
|
+
* authorizing the workspace, with the path below the editor endpoint
|
|
110
|
+
* (for example `github/files`). Unknown paths answer 404.
|
|
111
|
+
*/
|
|
112
|
+
export declare function handleProfileEditorRequest(request: Request, path: string, options: ProfileEditorHandlerOptions): Promise<Response>;
|