@ouraihub/aether-contracts 0.0.0-stage → 0.1.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/LICENSE +789 -0
- package/package.json +32 -3
- package/src/generated/Ack.ts +10 -0
- package/src/generated/Approval.ts +6 -0
- package/src/generated/ContextRef.ts +14 -0
- package/src/generated/ContextSource.ts +6 -0
- package/src/generated/ContextUsage.ts +27 -0
- package/src/generated/Conversation.ts +16 -0
- package/src/generated/ConversationSummary.ts +30 -0
- package/src/generated/Cost.ts +15 -0
- package/src/generated/Currency.ts +6 -0
- package/src/generated/Details.ts +6 -0
- package/src/generated/EndStatus.ts +6 -0
- package/src/generated/Endpoint.ts +54 -0
- package/src/generated/EndpointKey.ts +34 -0
- package/src/generated/EndpointKeySave.ts +30 -0
- package/src/generated/EndpointSave.ts +45 -0
- package/src/generated/ImagePart.ts +14 -0
- package/src/generated/ImageRef.ts +14 -0
- package/src/generated/IngestBatch.ts +15 -0
- package/src/generated/IngestEntry.ts +19 -0
- package/src/generated/IngestLevel.ts +6 -0
- package/src/generated/IngestReceipt.ts +14 -0
- package/src/generated/IssuedToken.ts +34 -0
- package/src/generated/KeyStrategy.ts +6 -0
- package/src/generated/KitError.ts +21 -0
- package/src/generated/KitErrorCode.ts +6 -0
- package/src/generated/LogEntry.ts +26 -0
- package/src/generated/LogLevel.ts +6 -0
- package/src/generated/LogStatus.ts +15 -0
- package/src/generated/ManualSave.ts +30 -0
- package/src/generated/McpTransport.ts +22 -0
- package/src/generated/Model.ts +58 -0
- package/src/generated/ModelFilter.ts +15 -0
- package/src/generated/ModelOption.ts +44 -0
- package/src/generated/ModelPricing.ts +16 -0
- package/src/generated/ModelRef.ts +14 -0
- package/src/generated/ModelSave.ts +60 -0
- package/src/generated/ModelType.ts +6 -0
- package/src/generated/PermissionMode.ts +7 -0
- package/src/generated/Preview.ts +50 -0
- package/src/generated/PreviewAction.ts +6 -0
- package/src/generated/PreviewCurrent.ts +14 -0
- package/src/generated/PricingTier.ts +26 -0
- package/src/generated/ProbeError.ts +23 -0
- package/src/generated/ProbeErrorKind.ts +6 -0
- package/src/generated/ProbeResult.ts +26 -0
- package/src/generated/ProbeTarget.ts +27 -0
- package/src/generated/ProbedModel.ts +62 -0
- package/src/generated/Protocol.ts +6 -0
- package/src/generated/Provider.ts +31 -0
- package/src/generated/ProviderSave.ts +32 -0
- package/src/generated/ReasoningConfig.ts +20 -0
- package/src/generated/ReasoningDialect.ts +6 -0
- package/src/generated/ReasoningEffort.ts +6 -0
- package/src/generated/RunAccepted.ts +18 -0
- package/src/generated/RunEvent.ts +121 -0
- package/src/generated/RunRequest.ts +84 -0
- package/src/generated/RunSnapshot.ts +36 -0
- package/src/generated/RunStatus.ts +6 -0
- package/src/generated/ScopeState.ts +22 -0
- package/src/generated/SearchHit.ts +18 -0
- package/src/generated/ServerDto.ts +44 -0
- package/src/generated/ServerSave.ts +40 -0
- package/src/generated/ServerSecret.ts +19 -0
- package/src/generated/SkillDto.ts +64 -0
- package/src/generated/SkillFileKind.ts +6 -0
- package/src/generated/SkillFileMeta.ts +19 -0
- package/src/generated/SkillMeta.ts +47 -0
- package/src/generated/SkillOrigin.ts +6 -0
- package/src/generated/SkillRef.ts +14 -0
- package/src/generated/Source.ts +15 -0
- package/src/generated/Status.ts +22 -0
- package/src/generated/TokenRecord.ts +30 -0
- package/src/generated/TokenUsage.ts +26 -0
- package/src/generated/ToolDto.ts +23 -0
- package/src/generated/ToolEffect.ts +6 -0
- package/src/generated/ToolOutcome.ts +6 -0
- package/src/generated/ToolSourceKind.ts +6 -0
- package/src/generated/Turn.ts +84 -0
- package/src/generated/TurnStatus.ts +6 -0
- package/src/generated/TypeSource.ts +6 -0
- package/src/index.ts +82 -0
- package/src/search.ts +50 -0
- package/src/validation.ts +368 -0
- package/src/validators.d.ts +177 -0
- package/src/validators.js +18 -0
- package/README.md +0 -3
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ContextUsage } from "./ContextUsage";
|
|
3
|
+
import type { Cost } from "./Cost";
|
|
4
|
+
import type { EndStatus } from "./EndStatus";
|
|
5
|
+
import type { KitError } from "./KitError";
|
|
6
|
+
import type { SearchHit } from "./SearchHit";
|
|
7
|
+
import type { ToolOutcome } from "./ToolOutcome";
|
|
8
|
+
import type { ToolSourceKind } from "./ToolSourceKind";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Streamed to the UI; every run ends with exactly one `end`.
|
|
12
|
+
*/
|
|
13
|
+
export type RunEvent = { "kind": "search_start" } | { "kind": "search_result",
|
|
14
|
+
/**
|
|
15
|
+
* User query sent to the provider.
|
|
16
|
+
*/
|
|
17
|
+
query: string,
|
|
18
|
+
/**
|
|
19
|
+
* Provider id.
|
|
20
|
+
*/
|
|
21
|
+
provider: string,
|
|
22
|
+
/**
|
|
23
|
+
* Search hits.
|
|
24
|
+
*/
|
|
25
|
+
hits: Array<SearchHit>, } | { "kind": "round_start",
|
|
26
|
+
/**
|
|
27
|
+
* 1-based round number.
|
|
28
|
+
*/
|
|
29
|
+
round: number, } | { "kind": "text_delta",
|
|
30
|
+
/**
|
|
31
|
+
* Text chunk.
|
|
32
|
+
*/
|
|
33
|
+
text: string, } | { "kind": "tool_call",
|
|
34
|
+
/**
|
|
35
|
+
* Call id.
|
|
36
|
+
*/
|
|
37
|
+
callId: string,
|
|
38
|
+
/**
|
|
39
|
+
* Tool name.
|
|
40
|
+
*/
|
|
41
|
+
name: string,
|
|
42
|
+
/**
|
|
43
|
+
* Tool source.
|
|
44
|
+
*/
|
|
45
|
+
source: ToolSourceKind,
|
|
46
|
+
/**
|
|
47
|
+
* MCP server name.
|
|
48
|
+
*/
|
|
49
|
+
server?: string, } | { "kind": "approval_required",
|
|
50
|
+
/**
|
|
51
|
+
* Call id.
|
|
52
|
+
*/
|
|
53
|
+
callId: string,
|
|
54
|
+
/**
|
|
55
|
+
* Tool name.
|
|
56
|
+
*/
|
|
57
|
+
name: string,
|
|
58
|
+
/**
|
|
59
|
+
* Arguments preview, at most 2000 characters.
|
|
60
|
+
*/
|
|
61
|
+
argsPreview: string, } | { "kind": "tool_result",
|
|
62
|
+
/**
|
|
63
|
+
* Call id.
|
|
64
|
+
*/
|
|
65
|
+
callId: string,
|
|
66
|
+
/**
|
|
67
|
+
* Outcome.
|
|
68
|
+
*/
|
|
69
|
+
outcome: ToolOutcome,
|
|
70
|
+
/**
|
|
71
|
+
* One-line summary.
|
|
72
|
+
*/
|
|
73
|
+
summary: string,
|
|
74
|
+
/**
|
|
75
|
+
* Structured data for the host UI.
|
|
76
|
+
*/
|
|
77
|
+
payload?: unknown, } | { "kind": "usage",
|
|
78
|
+
/**
|
|
79
|
+
* Total input tokens.
|
|
80
|
+
*/
|
|
81
|
+
inputTokens: number | null,
|
|
82
|
+
/**
|
|
83
|
+
* Total output tokens.
|
|
84
|
+
*/
|
|
85
|
+
outputTokens: number | null,
|
|
86
|
+
/**
|
|
87
|
+
* Input cache reads.
|
|
88
|
+
*/
|
|
89
|
+
cacheReadTokens: number | null,
|
|
90
|
+
/**
|
|
91
|
+
* Input cache writes.
|
|
92
|
+
*/
|
|
93
|
+
cacheWriteTokens: number | null,
|
|
94
|
+
/**
|
|
95
|
+
* Reasoning output tokens.
|
|
96
|
+
*/
|
|
97
|
+
reasoningTokens: number | null,
|
|
98
|
+
/**
|
|
99
|
+
* Turn cost from the model's pricing; `None` = unknown.
|
|
100
|
+
*/
|
|
101
|
+
cost: Cost | null, } | { "kind": "context",
|
|
102
|
+
/**
|
|
103
|
+
* Last request context report or estimate.
|
|
104
|
+
*/
|
|
105
|
+
usage: ContextUsage, } | { "kind": "reasoning_delta",
|
|
106
|
+
/**
|
|
107
|
+
* Displayable reasoning fragment.
|
|
108
|
+
*/
|
|
109
|
+
text: string, } | { "kind": "end",
|
|
110
|
+
/**
|
|
111
|
+
* Terminal status.
|
|
112
|
+
*/
|
|
113
|
+
status: EndStatus,
|
|
114
|
+
/**
|
|
115
|
+
* Set when `status` is `failed`.
|
|
116
|
+
*/
|
|
117
|
+
error?: KitError,
|
|
118
|
+
/**
|
|
119
|
+
* `true` when the round limit stopped the tool loop.
|
|
120
|
+
*/
|
|
121
|
+
exhausted?: boolean, };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ContextRef } from "./ContextRef";
|
|
3
|
+
import type { ImagePart } from "./ImagePart";
|
|
4
|
+
import type { ModelRef } from "./ModelRef";
|
|
5
|
+
import type { PermissionMode } from "./PermissionMode";
|
|
6
|
+
import type { ReasoningEffort } from "./ReasoningEffort";
|
|
7
|
+
import type { SkillRef } from "./SkillRef";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Business input of a run, with no transport or owner identity.
|
|
11
|
+
*/
|
|
12
|
+
export type RunRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* App-defined purpose.
|
|
15
|
+
*/
|
|
16
|
+
purpose: string,
|
|
17
|
+
/**
|
|
18
|
+
* Explicit model selection.
|
|
19
|
+
*/
|
|
20
|
+
model?: ModelRef | null,
|
|
21
|
+
/**
|
|
22
|
+
* Pinned skills.
|
|
23
|
+
*/
|
|
24
|
+
skills: Array<SkillRef>,
|
|
25
|
+
/**
|
|
26
|
+
* Host context selection.
|
|
27
|
+
*/
|
|
28
|
+
context?: ContextRef | null,
|
|
29
|
+
/**
|
|
30
|
+
* Current input, overridden by an authoritative action source.
|
|
31
|
+
*/
|
|
32
|
+
input: string,
|
|
33
|
+
/**
|
|
34
|
+
* Current attached images.
|
|
35
|
+
*/
|
|
36
|
+
images?: Array<ImagePart>,
|
|
37
|
+
/**
|
|
38
|
+
* Conversation to continue.
|
|
39
|
+
*/
|
|
40
|
+
conversationId?: string | null,
|
|
41
|
+
/**
|
|
42
|
+
* Host-defined history scope.
|
|
43
|
+
*/
|
|
44
|
+
scope?: string | null,
|
|
45
|
+
/**
|
|
46
|
+
* Explicit pre-search intent.
|
|
47
|
+
*/
|
|
48
|
+
webSearch?: boolean,
|
|
49
|
+
/**
|
|
50
|
+
* Retry the selected candidate.
|
|
51
|
+
*/
|
|
52
|
+
regenerate: boolean,
|
|
53
|
+
/**
|
|
54
|
+
* Explicit history head.
|
|
55
|
+
*/
|
|
56
|
+
replyToId?: string | null,
|
|
57
|
+
/**
|
|
58
|
+
* Source candidate to retry.
|
|
59
|
+
*/
|
|
60
|
+
retryTurnId?: string | null,
|
|
61
|
+
/**
|
|
62
|
+
* Source candidate to translate.
|
|
63
|
+
*/
|
|
64
|
+
translateTurnId?: string | null,
|
|
65
|
+
/**
|
|
66
|
+
* Translation target language.
|
|
67
|
+
*/
|
|
68
|
+
targetLanguage?: string | null,
|
|
69
|
+
/**
|
|
70
|
+
* UI language.
|
|
71
|
+
*/
|
|
72
|
+
language: string,
|
|
73
|
+
/**
|
|
74
|
+
* Requested reasoning effort.
|
|
75
|
+
*/
|
|
76
|
+
reasoningEffort?: ReasoningEffort,
|
|
77
|
+
/**
|
|
78
|
+
* Offer image generation.
|
|
79
|
+
*/
|
|
80
|
+
generateImage?: boolean,
|
|
81
|
+
/**
|
|
82
|
+
* Host-authorized permission mode.
|
|
83
|
+
*/
|
|
84
|
+
permissionMode?: PermissionMode, };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { KitError } from "./KitError";
|
|
3
|
+
import type { RunStatus } from "./RunStatus";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Bounded process-local status, never a transcript or credential cache.
|
|
7
|
+
*/
|
|
8
|
+
export type RunSnapshot = {
|
|
9
|
+
/**
|
|
10
|
+
* Service-generated identifier.
|
|
11
|
+
*/
|
|
12
|
+
runId: string,
|
|
13
|
+
/**
|
|
14
|
+
* Persisted conversation, if any.
|
|
15
|
+
*/
|
|
16
|
+
conversationId: string | null,
|
|
17
|
+
/**
|
|
18
|
+
* Persisted candidate, if any.
|
|
19
|
+
*/
|
|
20
|
+
turnId: string | null,
|
|
21
|
+
/**
|
|
22
|
+
* Current lifecycle state.
|
|
23
|
+
*/
|
|
24
|
+
status: RunStatus,
|
|
25
|
+
/**
|
|
26
|
+
* Cancellation was requested; not a side-effect rollback guarantee.
|
|
27
|
+
*/
|
|
28
|
+
cancelRequested: boolean,
|
|
29
|
+
/**
|
|
30
|
+
* Safe terminal error.
|
|
31
|
+
*/
|
|
32
|
+
error?: KitError,
|
|
33
|
+
/**
|
|
34
|
+
* Model round limit reached.
|
|
35
|
+
*/
|
|
36
|
+
exhausted?: boolean, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A declared scope and whether the user's master switch has it on (`mcp_server_scopes`).
|
|
5
|
+
*/
|
|
6
|
+
export type ScopeState = {
|
|
7
|
+
/**
|
|
8
|
+
* Scope id.
|
|
9
|
+
*/
|
|
10
|
+
id: string,
|
|
11
|
+
/**
|
|
12
|
+
* i18n key of the label.
|
|
13
|
+
*/
|
|
14
|
+
labelKey: string,
|
|
15
|
+
/**
|
|
16
|
+
* Needs a second confirmation before enabling.
|
|
17
|
+
*/
|
|
18
|
+
destructive: boolean,
|
|
19
|
+
/**
|
|
20
|
+
* In `enabled_scopes`.
|
|
21
|
+
*/
|
|
22
|
+
enabled: boolean, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A search result source shown in the UI.
|
|
5
|
+
*/
|
|
6
|
+
export type SearchHit = {
|
|
7
|
+
/**
|
|
8
|
+
* Result title.
|
|
9
|
+
*/
|
|
10
|
+
title: string,
|
|
11
|
+
/**
|
|
12
|
+
* Result URL.
|
|
13
|
+
*/
|
|
14
|
+
url: string,
|
|
15
|
+
/**
|
|
16
|
+
* Result summary.
|
|
17
|
+
*/
|
|
18
|
+
snippet: string, };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { McpTransport } from "./McpTransport";
|
|
3
|
+
import type { ToolDto } from "./ToolDto";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A configured server as shown to the UI: credentials only as key names.
|
|
7
|
+
*/
|
|
8
|
+
export type ServerDto = {
|
|
9
|
+
/**
|
|
10
|
+
* Server id.
|
|
11
|
+
*/
|
|
12
|
+
id: string,
|
|
13
|
+
/**
|
|
14
|
+
* `[a-z0-9_]{1,24}`; tool names become `mcp_<slug>_<tool>`.
|
|
15
|
+
*/
|
|
16
|
+
slug: string,
|
|
17
|
+
/**
|
|
18
|
+
* Display name.
|
|
19
|
+
*/
|
|
20
|
+
name: string,
|
|
21
|
+
/**
|
|
22
|
+
* Transport; an http URL is masked.
|
|
23
|
+
*/
|
|
24
|
+
transport: McpTransport,
|
|
25
|
+
/**
|
|
26
|
+
* Names of stored header/query/env credentials, never values.
|
|
27
|
+
*/
|
|
28
|
+
secretKeys: Array<string>,
|
|
29
|
+
/**
|
|
30
|
+
* Enabled by the user.
|
|
31
|
+
*/
|
|
32
|
+
enabled: boolean,
|
|
33
|
+
/**
|
|
34
|
+
* Trusted by the user.
|
|
35
|
+
*/
|
|
36
|
+
trusted: boolean,
|
|
37
|
+
/**
|
|
38
|
+
* The user explicitly allowed a private-network address (http only; always false for stdio).
|
|
39
|
+
*/
|
|
40
|
+
allowPrivate: boolean,
|
|
41
|
+
/**
|
|
42
|
+
* Last successfully discovered tools.
|
|
43
|
+
*/
|
|
44
|
+
tools: Array<ToolDto>, };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { McpTransport } from "./McpTransport";
|
|
3
|
+
import type { ServerSecret } from "./ServerSecret";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Create (no `id`) or update a server.
|
|
7
|
+
*/
|
|
8
|
+
export type ServerSave = {
|
|
9
|
+
/**
|
|
10
|
+
* Existing server id when updating.
|
|
11
|
+
*/
|
|
12
|
+
id?: string,
|
|
13
|
+
/**
|
|
14
|
+
* Slug.
|
|
15
|
+
*/
|
|
16
|
+
slug: string,
|
|
17
|
+
/**
|
|
18
|
+
* Display name.
|
|
19
|
+
*/
|
|
20
|
+
name: string,
|
|
21
|
+
/**
|
|
22
|
+
* Transport; an http URL must carry no credentials.
|
|
23
|
+
*/
|
|
24
|
+
transport: McpTransport,
|
|
25
|
+
/**
|
|
26
|
+
* Absent = keep; `{}` = clear.
|
|
27
|
+
*/
|
|
28
|
+
secret?: ServerSecret,
|
|
29
|
+
/**
|
|
30
|
+
* Enabled.
|
|
31
|
+
*/
|
|
32
|
+
enabled: boolean,
|
|
33
|
+
/**
|
|
34
|
+
* Trusted.
|
|
35
|
+
*/
|
|
36
|
+
trusted: boolean,
|
|
37
|
+
/**
|
|
38
|
+
* Allow a private-network address; ignored (stored as false) for stdio.
|
|
39
|
+
*/
|
|
40
|
+
allowPrivate: boolean, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Credentials, write-only, so no `Debug`/`Serialize`. `headers`/`query` belong to
|
|
5
|
+
* http servers, `env` to stdio servers; the other kind is rejected.
|
|
6
|
+
*/
|
|
7
|
+
export type ServerSecret = {
|
|
8
|
+
/**
|
|
9
|
+
* Request headers such as `Authorization`.
|
|
10
|
+
*/
|
|
11
|
+
headers?: { [key in string]?: string },
|
|
12
|
+
/**
|
|
13
|
+
* Query parameters such as `ak`; never stored in `url`.
|
|
14
|
+
*/
|
|
15
|
+
query?: { [key in string]?: string },
|
|
16
|
+
/**
|
|
17
|
+
* Environment variables for a stdio server, such as `GITHUB_TOKEN`.
|
|
18
|
+
*/
|
|
19
|
+
env?: { [key in string]?: string }, };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { SkillFileMeta } from "./SkillFileMeta";
|
|
3
|
+
import type { SkillOrigin } from "./SkillOrigin";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A skill with its full text.
|
|
7
|
+
*/
|
|
8
|
+
export type SkillDto = {
|
|
9
|
+
/**
|
|
10
|
+
* Body text.
|
|
11
|
+
*/
|
|
12
|
+
body: string,
|
|
13
|
+
/**
|
|
14
|
+
* License text, when packaged.
|
|
15
|
+
*/
|
|
16
|
+
license: string | null,
|
|
17
|
+
/**
|
|
18
|
+
* Uninterpreted frontmatter keys, shown as-is.
|
|
19
|
+
*/
|
|
20
|
+
extra: { [key in string]?: string },
|
|
21
|
+
/**
|
|
22
|
+
* Packaged files, sorted by path; empty for hand-written and built-in skills.
|
|
23
|
+
*/
|
|
24
|
+
files: Array<SkillFileMeta>,
|
|
25
|
+
/**
|
|
26
|
+
* Skill id.
|
|
27
|
+
*/
|
|
28
|
+
id: string,
|
|
29
|
+
/**
|
|
30
|
+
* Frontmatter `name` (unique slug).
|
|
31
|
+
*/
|
|
32
|
+
name: string,
|
|
33
|
+
/**
|
|
34
|
+
* Frontmatter `description`.
|
|
35
|
+
*/
|
|
36
|
+
description: string,
|
|
37
|
+
/**
|
|
38
|
+
* `None` = unversioned; never invented.
|
|
39
|
+
*/
|
|
40
|
+
version: string | null,
|
|
41
|
+
/**
|
|
42
|
+
* Origin.
|
|
43
|
+
*/
|
|
44
|
+
origin: SkillOrigin,
|
|
45
|
+
/**
|
|
46
|
+
* Incremented on every content change.
|
|
47
|
+
*/
|
|
48
|
+
revision: number,
|
|
49
|
+
/**
|
|
50
|
+
* Body length in characters.
|
|
51
|
+
*/
|
|
52
|
+
bodyChars: number,
|
|
53
|
+
/**
|
|
54
|
+
* Unix milliseconds.
|
|
55
|
+
*/
|
|
56
|
+
updatedAt: number,
|
|
57
|
+
/**
|
|
58
|
+
* At least one `scripts/**` file is packaged.
|
|
59
|
+
*/
|
|
60
|
+
hasScripts: boolean,
|
|
61
|
+
/**
|
|
62
|
+
* Number of packaged files (scripts, references, assets).
|
|
63
|
+
*/
|
|
64
|
+
fileCount: number, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { SkillFileKind } from "./SkillFileKind";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A packaged file without its content; read it with `Store::file`.
|
|
6
|
+
*/
|
|
7
|
+
export type SkillFileMeta = {
|
|
8
|
+
/**
|
|
9
|
+
* Package-relative path with `/` separators, e.g. `scripts/run.py`.
|
|
10
|
+
*/
|
|
11
|
+
path: string,
|
|
12
|
+
/**
|
|
13
|
+
* Directory kind.
|
|
14
|
+
*/
|
|
15
|
+
kind: SkillFileKind,
|
|
16
|
+
/**
|
|
17
|
+
* Size in bytes.
|
|
18
|
+
*/
|
|
19
|
+
size: number, };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { SkillOrigin } from "./SkillOrigin";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* List entry: metadata only, never the body.
|
|
6
|
+
*/
|
|
7
|
+
export type SkillMeta = {
|
|
8
|
+
/**
|
|
9
|
+
* Skill id.
|
|
10
|
+
*/
|
|
11
|
+
id: string,
|
|
12
|
+
/**
|
|
13
|
+
* Frontmatter `name` (unique slug).
|
|
14
|
+
*/
|
|
15
|
+
name: string,
|
|
16
|
+
/**
|
|
17
|
+
* Frontmatter `description`.
|
|
18
|
+
*/
|
|
19
|
+
description: string,
|
|
20
|
+
/**
|
|
21
|
+
* `None` = unversioned; never invented.
|
|
22
|
+
*/
|
|
23
|
+
version: string | null,
|
|
24
|
+
/**
|
|
25
|
+
* Origin.
|
|
26
|
+
*/
|
|
27
|
+
origin: SkillOrigin,
|
|
28
|
+
/**
|
|
29
|
+
* Incremented on every content change.
|
|
30
|
+
*/
|
|
31
|
+
revision: number,
|
|
32
|
+
/**
|
|
33
|
+
* Body length in characters.
|
|
34
|
+
*/
|
|
35
|
+
bodyChars: number,
|
|
36
|
+
/**
|
|
37
|
+
* Unix milliseconds.
|
|
38
|
+
*/
|
|
39
|
+
updatedAt: number,
|
|
40
|
+
/**
|
|
41
|
+
* At least one `scripts/**` file is packaged.
|
|
42
|
+
*/
|
|
43
|
+
hasScripts: boolean,
|
|
44
|
+
/**
|
|
45
|
+
* Number of packaged files (scripts, references, assets).
|
|
46
|
+
*/
|
|
47
|
+
fileCount: number, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A skill selected for one run, pinned to the revision the user confirmed.
|
|
5
|
+
*/
|
|
6
|
+
export type SkillRef = {
|
|
7
|
+
/**
|
|
8
|
+
* Skill id.
|
|
9
|
+
*/
|
|
10
|
+
id: string,
|
|
11
|
+
/**
|
|
12
|
+
* Revision the user saw; a mismatch is `conflict{reason:"skill_changed"}`.
|
|
13
|
+
*/
|
|
14
|
+
revision: number, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Where a skill package comes from. JSON: `{ "path": "C:\\…" }` or
|
|
5
|
+
* `{ "bytes": { "fileName": "x.zip", "bytes": [80, 75, …] } }`.
|
|
6
|
+
*/
|
|
7
|
+
export type Source = { "path": string } | { "bytes": {
|
|
8
|
+
/**
|
|
9
|
+
* Original file name.
|
|
10
|
+
*/
|
|
11
|
+
fileName: string,
|
|
12
|
+
/**
|
|
13
|
+
* File content.
|
|
14
|
+
*/
|
|
15
|
+
bytes: Array<number>, } };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Current server state.
|
|
5
|
+
*/
|
|
6
|
+
export type Status = {
|
|
7
|
+
/**
|
|
8
|
+
* Listening.
|
|
9
|
+
*/
|
|
10
|
+
running: boolean,
|
|
11
|
+
/**
|
|
12
|
+
* Configured port.
|
|
13
|
+
*/
|
|
14
|
+
port: number,
|
|
15
|
+
/**
|
|
16
|
+
* `http://127.0.0.1:<port>/mcp` style URL clients connect to.
|
|
17
|
+
*/
|
|
18
|
+
url: string,
|
|
19
|
+
/**
|
|
20
|
+
* Number of registered tools.
|
|
21
|
+
*/
|
|
22
|
+
toolCount: number, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A stored token; the secret itself is never kept.
|
|
5
|
+
*/
|
|
6
|
+
export type TokenRecord = {
|
|
7
|
+
/**
|
|
8
|
+
* Token id.
|
|
9
|
+
*/
|
|
10
|
+
id: string,
|
|
11
|
+
/**
|
|
12
|
+
* User-given name.
|
|
13
|
+
*/
|
|
14
|
+
name: string,
|
|
15
|
+
/**
|
|
16
|
+
* Granted scope ids.
|
|
17
|
+
*/
|
|
18
|
+
scopes: Array<string>,
|
|
19
|
+
/**
|
|
20
|
+
* Unix milliseconds.
|
|
21
|
+
*/
|
|
22
|
+
createdAt: number,
|
|
23
|
+
/**
|
|
24
|
+
* Unix milliseconds, updated at most once a minute.
|
|
25
|
+
*/
|
|
26
|
+
lastUsedAt: number | null,
|
|
27
|
+
/**
|
|
28
|
+
* Unix milliseconds once revoked.
|
|
29
|
+
*/
|
|
30
|
+
revokedAt: number | null, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Known token counts; missing values remain unknown.
|
|
5
|
+
*/
|
|
6
|
+
export type TokenUsage = {
|
|
7
|
+
/**
|
|
8
|
+
* Total input tokens including cache.
|
|
9
|
+
*/
|
|
10
|
+
inputTokens: number | null,
|
|
11
|
+
/**
|
|
12
|
+
* Total output tokens including reasoning.
|
|
13
|
+
*/
|
|
14
|
+
outputTokens: number | null,
|
|
15
|
+
/**
|
|
16
|
+
* Input cache-read detail.
|
|
17
|
+
*/
|
|
18
|
+
cacheReadTokens: number | null,
|
|
19
|
+
/**
|
|
20
|
+
* Input cache-write detail.
|
|
21
|
+
*/
|
|
22
|
+
cacheWriteTokens: number | null,
|
|
23
|
+
/**
|
|
24
|
+
* Reasoning output detail.
|
|
25
|
+
*/
|
|
26
|
+
reasoningTokens: number | null, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { Approval } from "./Approval";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A discovered tool and its per-tool approval default.
|
|
6
|
+
*/
|
|
7
|
+
export type ToolDto = {
|
|
8
|
+
/**
|
|
9
|
+
* Tool name as reported by the server.
|
|
10
|
+
*/
|
|
11
|
+
name: string,
|
|
12
|
+
/**
|
|
13
|
+
* Description, truncated to 1024 characters.
|
|
14
|
+
*/
|
|
15
|
+
description: string,
|
|
16
|
+
/**
|
|
17
|
+
* `annotations.readOnlyHint`; a UI suggestion only, never trusted.
|
|
18
|
+
*/
|
|
19
|
+
readOnly: boolean,
|
|
20
|
+
/**
|
|
21
|
+
* Default `ask`.
|
|
22
|
+
*/
|
|
23
|
+
approval: Approval, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What a tool does, declared by the host; drives the permission mode matrix (docs/12 §5.1).
|
|
5
|
+
*/
|
|
6
|
+
export type ToolEffect = "read" | "edit" | "exec" | "other";
|