@saturn-universe/runtime-host 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 +661 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/README.md +13 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/index.mjs +1473 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/package.json +10 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/board.mjs +321 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/ledger.mjs +1143 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/platform/ctfd.mjs +154 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/platform/ctfplus.mjs +769 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/platform/gzctf.mjs +130 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/platform/http.mjs +336 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/platform/index.mjs +133 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/platform/lease.mjs +153 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/server.mjs +336 -0
- package/dist/builtin-plugins/saturn-plugin-ctf/src/view.mjs +714 -0
- package/dist/command-dispatch.d.ts +10 -0
- package/dist/command-dispatch.js +65 -0
- package/dist/completion-judge.d.ts +10 -0
- package/dist/completion-judge.js +156 -0
- package/dist/composition.d.ts +108 -0
- package/dist/composition.js +1180 -0
- package/dist/configuration.d.ts +49 -0
- package/dist/configuration.js +51 -0
- package/dist/context-extensions.d.ts +681 -0
- package/dist/context-extensions.js +289 -0
- package/dist/cordis/context-core-plugin.d.ts +35 -0
- package/dist/cordis/context-core-plugin.js +296 -0
- package/dist/cordis/env-probe-plugin.d.ts +27 -0
- package/dist/cordis/env-probe-plugin.js +114 -0
- package/dist/cordis/host-context.d.ts +65 -0
- package/dist/cordis/host-context.js +199 -0
- package/dist/cordis/model-responses-plugin.d.ts +81 -0
- package/dist/cordis/model-responses-plugin.js +209 -0
- package/dist/cordis/plugin-contributions.d.ts +47 -0
- package/dist/cordis/plugin-contributions.js +119 -0
- package/dist/cordis/plugin-lifecycle.d.ts +57 -0
- package/dist/cordis/plugin-lifecycle.js +222 -0
- package/dist/cordis/plugin-loader.d.ts +18 -0
- package/dist/cordis/plugin-loader.js +310 -0
- package/dist/cordis/plugin-sdk-adapter.d.ts +17 -0
- package/dist/cordis/plugin-sdk-adapter.js +283 -0
- package/dist/cordis/required-host-plugin.d.ts +6 -0
- package/dist/cordis/required-host-plugin.js +1 -0
- package/dist/cordis/runtime-hooks-plugin.d.ts +23 -0
- package/dist/cordis/runtime-hooks-plugin.js +103 -0
- package/dist/cordis/sandbox-plugin.d.ts +18 -0
- package/dist/cordis/sandbox-plugin.js +21 -0
- package/dist/cordis/scoped-layers.d.ts +63 -0
- package/dist/cordis/scoped-layers.js +170 -0
- package/dist/cordis/tools/builtin-agent-tools-plugin.d.ts +11 -0
- package/dist/cordis/tools/builtin-agent-tools-plugin.js +171 -0
- package/dist/cordis/tools/index.d.ts +17 -0
- package/dist/cordis/tools/index.js +40 -0
- package/dist/cordis/tools/mcp-tools-plugin.d.ts +7 -0
- package/dist/cordis/tools/mcp-tools-plugin.js +116 -0
- package/dist/cordis/tools/process-manager-plugin.d.ts +11 -0
- package/dist/cordis/tools/process-manager-plugin.js +39 -0
- package/dist/cordis/tools/sandbox-target-tools-plugin.d.ts +13 -0
- package/dist/cordis/tools/sandbox-target-tools-plugin.js +255 -0
- package/dist/cordis/tools/tool-guidance.d.ts +4 -0
- package/dist/cordis/tools/tool-guidance.js +30 -0
- package/dist/cordis/tools/tools-core-plugin.d.ts +128 -0
- package/dist/cordis/tools/tools-core-plugin.js +486 -0
- package/dist/cordis/tools/web-fetch.d.ts +17 -0
- package/dist/cordis/tools/web-fetch.js +529 -0
- package/dist/cordis/tools/web-search-tools-plugin.d.ts +10 -0
- package/dist/cordis/tools/web-search-tools-plugin.js +191 -0
- package/dist/cordis/tools/workspace-tools-plugin.d.ts +8 -0
- package/dist/cordis/tools/workspace-tools-plugin.js +145 -0
- package/dist/env-probe.d.ts +8 -0
- package/dist/env-probe.js +172 -0
- package/dist/host-configuration.d.ts +27 -0
- package/dist/host-configuration.js +185 -0
- package/dist/host-tools.d.ts +19 -0
- package/dist/host-tools.js +30 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +140 -0
- package/dist/ipc.d.ts +24 -0
- package/dist/ipc.js +162 -0
- package/dist/logger.d.ts +11 -0
- package/dist/logger.js +84 -0
- package/dist/mcp-configuration.d.ts +17 -0
- package/dist/mcp-configuration.js +50 -0
- package/dist/modes.d.ts +27 -0
- package/dist/modes.js +472 -0
- package/dist/ownership.d.ts +7 -0
- package/dist/ownership.js +100 -0
- package/dist/plugin-configuration.d.ts +9 -0
- package/dist/plugin-configuration.js +21 -0
- package/dist/plugin-tool-grants.d.ts +18 -0
- package/dist/plugin-tool-grants.js +21 -0
- package/dist/process-workspaces.d.ts +4 -0
- package/dist/process-workspaces.js +28 -0
- package/dist/progress.d.ts +30 -0
- package/dist/progress.js +699 -0
- package/dist/provider-catalog.d.ts +754 -0
- package/dist/provider-catalog.js +471 -0
- package/dist/run-budget.d.ts +24 -0
- package/dist/run-budget.js +47 -0
- package/dist/run-checkpoint.d.ts +2 -0
- package/dist/run-checkpoint.js +52 -0
- package/dist/sandbox-manager.d.ts +111 -0
- package/dist/sandbox-manager.js +1519 -0
- package/dist/session-paths.d.ts +15 -0
- package/dist/session-paths.js +40 -0
- package/dist/side-question.d.ts +14 -0
- package/dist/side-question.js +89 -0
- package/dist/skills-runtime.d.ts +13 -0
- package/dist/skills-runtime.js +243 -0
- package/dist/token-estimator.d.ts +3 -0
- package/dist/token-estimator.js +73 -0
- package/dist/tool-result.d.ts +2 -0
- package/dist/tool-result.js +91 -0
- package/dist/user-config.d.ts +23 -0
- package/dist/user-config.js +36 -0
- package/package.json +28 -3
- package/README.md +0 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostProtocolRequest, JsonValue } from '@saturn-universe/core';
|
|
2
|
+
import type { HostStatusSnapshot, ProtocolReply } from '@saturn-universe/protocol';
|
|
3
|
+
export declare function createCommandDispatch({ execute, status, shutdown, }: {
|
|
4
|
+
execute(request: HostProtocolRequest, signal?: AbortSignal): Promise<JsonValue>;
|
|
5
|
+
status(): HostStatusSnapshot;
|
|
6
|
+
shutdown(): void;
|
|
7
|
+
}): {
|
|
8
|
+
submit(request: HostProtocolRequest, connection: AbortSignal): Promise<ProtocolReply>;
|
|
9
|
+
close(): Promise<void>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { RuntimeError } from '@saturn-universe/core';
|
|
2
|
+
import { CommandQueue } from './ipc.js';
|
|
3
|
+
const commandLanes = {
|
|
4
|
+
'context.query': 'reads',
|
|
5
|
+
'run.model': 'reads',
|
|
6
|
+
'run.progress': 'reads',
|
|
7
|
+
'run.query': 'reads',
|
|
8
|
+
'run.timeline': 'reads',
|
|
9
|
+
'session.export': 'reads',
|
|
10
|
+
'session.history': 'reads',
|
|
11
|
+
'session.history.message': 'reads',
|
|
12
|
+
'session.list': 'reads',
|
|
13
|
+
'session.query': 'reads',
|
|
14
|
+
'session.usage': 'reads',
|
|
15
|
+
'surface.query': 'reads',
|
|
16
|
+
'team.inbox': 'reads',
|
|
17
|
+
'team.query': 'reads',
|
|
18
|
+
'workspace.query': 'reads',
|
|
19
|
+
'run.cancel': 'mutations',
|
|
20
|
+
'run.resume': 'mutations',
|
|
21
|
+
'run.steer': 'mutations',
|
|
22
|
+
'run.submit': 'mutations',
|
|
23
|
+
'session.create': 'mutations',
|
|
24
|
+
'surface.compact': 'mutations',
|
|
25
|
+
'tool.approval.resolve': 'mutations',
|
|
26
|
+
'tool.reconcile': 'mutations',
|
|
27
|
+
'workspace.create': 'mutations',
|
|
28
|
+
'session.btw': 'sideQuestions',
|
|
29
|
+
};
|
|
30
|
+
export function createCommandDispatch({ execute, status, shutdown, }) {
|
|
31
|
+
const queues = {
|
|
32
|
+
reads: new CommandQueue(),
|
|
33
|
+
mutations: new CommandQueue(),
|
|
34
|
+
sideQuestions: new CommandQueue(),
|
|
35
|
+
};
|
|
36
|
+
const stop = new AbortController();
|
|
37
|
+
return {
|
|
38
|
+
async submit(request, connection) {
|
|
39
|
+
const { requestId, command } = request;
|
|
40
|
+
if (command.type === 'host.shutdown') {
|
|
41
|
+
setImmediate(shutdown);
|
|
42
|
+
return {
|
|
43
|
+
requestId,
|
|
44
|
+
ok: true,
|
|
45
|
+
result: { stopping: true },
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
stop.signal.throwIfAborted();
|
|
49
|
+
if (command.type === 'host.status') {
|
|
50
|
+
return { requestId, ok: true, result: status() };
|
|
51
|
+
}
|
|
52
|
+
const lane = commandLanes[command.type];
|
|
53
|
+
const signal = lane === 'sideQuestions' ? AbortSignal.any([connection, stop.signal]) : undefined;
|
|
54
|
+
return queues[lane].submit(async () => {
|
|
55
|
+
stop.signal.throwIfAborted();
|
|
56
|
+
signal?.throwIfAborted();
|
|
57
|
+
return { requestId, ok: true, result: await execute(request, signal) };
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
async close() {
|
|
61
|
+
stop.abort(new RuntimeError('HOST_CLOSING', 'Host is shutting down'));
|
|
62
|
+
await Promise.all(Object.values(queues).map((queue) => queue.close()));
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Hash, ModelGateway } from '@saturn-universe/core';
|
|
2
|
+
import type { SemanticCompletionJudge, SemanticCompletionVerdict } from '@saturn-universe/runtime';
|
|
3
|
+
export declare function parseSemanticVerdict(rawText: string): SemanticCompletionVerdict | undefined;
|
|
4
|
+
export declare function createSemanticCompletionJudge(deps: {
|
|
5
|
+
gateway: ModelGateway;
|
|
6
|
+
hash: Hash;
|
|
7
|
+
id: () => string;
|
|
8
|
+
signal: AbortSignal;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
}): SemanticCompletionJudge;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { modelConfiguration } from '@saturn-universe/core';
|
|
2
|
+
const JUDGE_SYSTEM_PROMPT = [
|
|
3
|
+
'You are a strict completion verifier for an autonomous coding/engineering agent.',
|
|
4
|
+
'Given the user goal, checklist status, recent tool calls, and the agent proposed final answer, decide whether the agent genuinely achieved and empirically verified the user goal, or stopped halfway (e.g., only delivered reconnaissance, a partial leak/diagnostic PoC, a workaround, or unverified claims while local tools remain available).',
|
|
5
|
+
'Rules:',
|
|
6
|
+
'1. Missing optional remote host:port, missing source code for a local binary, or a difficult puzzle/bug is NOT a genuine external blocker.',
|
|
7
|
+
'2. Only mark isGenuineExternalBlocker=true if tool evidence shows an unresolvable external failure (permission/approval denied, missing credentials, unreachable required network service).',
|
|
8
|
+
'3. If the agent admits it did not achieve the core objective (e.g., did not achieve code execution/exploit/fix/passing tests), set goalAchieved=false.',
|
|
9
|
+
'4. Output ONLY a single compact JSON object with exact keys: {"goalAchieved": boolean, "isGenuineExternalBlocker": boolean, "missingCriteria": string[], "nextConcreteAction": string}. No markdown fences, no extra prose.',
|
|
10
|
+
].join('\n');
|
|
11
|
+
function bounded(text, maxChars) {
|
|
12
|
+
const trimmed = text.trim();
|
|
13
|
+
if (trimmed.length <= maxChars)
|
|
14
|
+
return trimmed;
|
|
15
|
+
return `${trimmed.slice(0, maxChars)}\n...[truncated]`;
|
|
16
|
+
}
|
|
17
|
+
function buildJudgeUserPrompt(input) {
|
|
18
|
+
const todosText = input.todos.length
|
|
19
|
+
? input.todos.map((t) => `- [${t.status}] ${t.id}: ${t.content}`).join('\n')
|
|
20
|
+
: '(none)';
|
|
21
|
+
return [
|
|
22
|
+
'## Original User Goal',
|
|
23
|
+
bounded(input.userGoal, 1500),
|
|
24
|
+
'',
|
|
25
|
+
'## Latest Todo Checklist',
|
|
26
|
+
bounded(todosText, 1200),
|
|
27
|
+
'',
|
|
28
|
+
'## Recent Tool Calls',
|
|
29
|
+
bounded(input.toolSummary || '(none)', 1800),
|
|
30
|
+
'',
|
|
31
|
+
'## Agent Proposed Final Response',
|
|
32
|
+
bounded(input.finalAssistantText, 2500),
|
|
33
|
+
].join('\n');
|
|
34
|
+
}
|
|
35
|
+
export function parseSemanticVerdict(rawText) {
|
|
36
|
+
const trimmed = rawText.trim();
|
|
37
|
+
if (!trimmed)
|
|
38
|
+
return undefined;
|
|
39
|
+
const fenced = trimmed.match(/```(?:json)?\s*([\s\S]*?)```/i);
|
|
40
|
+
const candidate = (fenced?.[1] ?? trimmed).trim();
|
|
41
|
+
const start = candidate.indexOf('{');
|
|
42
|
+
const end = candidate.lastIndexOf('}');
|
|
43
|
+
if (start < 0 || end <= start)
|
|
44
|
+
return undefined;
|
|
45
|
+
try {
|
|
46
|
+
const parsed = JSON.parse(candidate.slice(start, end + 1));
|
|
47
|
+
if (typeof parsed.goalAchieved !== 'boolean' || typeof parsed.isGenuineExternalBlocker !== 'boolean') {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
const missingCriteria = Array.isArray(parsed.missingCriteria)
|
|
51
|
+
? parsed.missingCriteria
|
|
52
|
+
.filter((item) => typeof item === 'string' && item.trim().length > 0)
|
|
53
|
+
.slice(0, 6)
|
|
54
|
+
: [];
|
|
55
|
+
const nextConcreteAction = typeof parsed.nextConcreteAction === 'string' ? parsed.nextConcreteAction.trim().slice(0, 400) : '';
|
|
56
|
+
return {
|
|
57
|
+
goalAchieved: parsed.goalAchieved,
|
|
58
|
+
isGenuineExternalBlocker: parsed.isGenuineExternalBlocker,
|
|
59
|
+
missingCriteria,
|
|
60
|
+
nextConcreteAction,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export function createSemanticCompletionJudge(deps) {
|
|
68
|
+
const timeoutMs = deps.timeoutMs ?? 25_000;
|
|
69
|
+
return async (input) => {
|
|
70
|
+
if (deps.signal.aborted)
|
|
71
|
+
return undefined;
|
|
72
|
+
const { binding, capabilities } = await deps.gateway.describe(input.config.model);
|
|
73
|
+
const placement = capabilities.responses.instructionPlacement;
|
|
74
|
+
const userPrompt = buildJudgeUserPrompt(input);
|
|
75
|
+
const fullInput = [
|
|
76
|
+
...(placement !== 'instructions'
|
|
77
|
+
? [
|
|
78
|
+
{
|
|
79
|
+
type: 'message',
|
|
80
|
+
role: (placement === 'developer_item' ? 'developer' : 'system'),
|
|
81
|
+
content: [{ type: 'input_text', text: JUDGE_SYSTEM_PROMPT }],
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
: []),
|
|
85
|
+
{
|
|
86
|
+
type: 'message',
|
|
87
|
+
role: 'user',
|
|
88
|
+
content: [{ type: 'input_text', text: userPrompt }],
|
|
89
|
+
},
|
|
90
|
+
];
|
|
91
|
+
const reasoning = capabilities.responses.reasoningModel && capabilities.responses.reasoningEfforts.includes('low')
|
|
92
|
+
? { effort: 'low' }
|
|
93
|
+
: undefined;
|
|
94
|
+
const requestId = deps.id();
|
|
95
|
+
const judgeSessionId = `judge-${input.runId}`;
|
|
96
|
+
const configurationDigest = deps.hash(modelConfiguration({
|
|
97
|
+
binding,
|
|
98
|
+
instructions: JUDGE_SYSTEM_PROMPT,
|
|
99
|
+
placement,
|
|
100
|
+
tools: [],
|
|
101
|
+
output: { kind: 'text' },
|
|
102
|
+
reasoning,
|
|
103
|
+
}));
|
|
104
|
+
const fullInputDigest = deps.hash(fullInput);
|
|
105
|
+
const request = {
|
|
106
|
+
id: requestId,
|
|
107
|
+
callGroupId: requestId,
|
|
108
|
+
attempt: 1,
|
|
109
|
+
agentSessionId: judgeSessionId,
|
|
110
|
+
runId: input.runId,
|
|
111
|
+
turnId: input.turnId,
|
|
112
|
+
model: input.config.model,
|
|
113
|
+
binding,
|
|
114
|
+
messages: [
|
|
115
|
+
{ role: 'system', content: JUDGE_SYSTEM_PROMPT },
|
|
116
|
+
{ role: 'user', content: [{ type: 'text', text: userPrompt }], sourceBackgroundId: 'judge-input' },
|
|
117
|
+
],
|
|
118
|
+
responses: {
|
|
119
|
+
version: 1,
|
|
120
|
+
binding,
|
|
121
|
+
epochId: deps.hash({ judgeSessionId, turnId: input.turnId, configurationDigest, fullInputDigest }),
|
|
122
|
+
decision: { kind: 'new' },
|
|
123
|
+
...(placement === 'instructions' ? { instructions: JUDGE_SYSTEM_PROMPT } : {}),
|
|
124
|
+
fullInput,
|
|
125
|
+
fullInputDigest,
|
|
126
|
+
configurationDigest,
|
|
127
|
+
replaySources: [],
|
|
128
|
+
transport: { kind: 'local_replay' },
|
|
129
|
+
},
|
|
130
|
+
responsesOptions: {
|
|
131
|
+
storage: 'local_stateless',
|
|
132
|
+
...(reasoning ? { reasoning } : {}),
|
|
133
|
+
},
|
|
134
|
+
tools: [],
|
|
135
|
+
output: { kind: 'text' },
|
|
136
|
+
maxOutputTokens: Math.min(512, capabilities.maxOutputTokens),
|
|
137
|
+
budget: {
|
|
138
|
+
estimatedInputTokens: Math.ceil((JUDGE_SYSTEM_PROMPT.length + userPrompt.length) / 3),
|
|
139
|
+
reservedTotalTokens: Math.ceil((JUDGE_SYSTEM_PROMPT.length + userPrompt.length) / 3) + 512,
|
|
140
|
+
accuracy: 'conservative_estimate',
|
|
141
|
+
},
|
|
142
|
+
context: {
|
|
143
|
+
surfaceSeq: 0,
|
|
144
|
+
selectedMessageIds: [],
|
|
145
|
+
assemblyHash: fullInputDigest,
|
|
146
|
+
providerVersions: {},
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
const response = await deps.gateway.generate(request, {
|
|
150
|
+
signal: deps.signal,
|
|
151
|
+
timeoutMs: Math.min(timeoutMs, input.config.limits.modelTimeoutMs),
|
|
152
|
+
});
|
|
153
|
+
const text = response.content.flatMap((part) => (part.type === 'text' ? [part.text] : [])).join('\n');
|
|
154
|
+
return parseSemanticVerdict(text);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { HostProtocolRequest, JsonValue } from '@saturn-universe/core';
|
|
2
|
+
import type { SqliteStore } from '@saturn-universe/storage';
|
|
3
|
+
import type { ContainerRunner } from '@saturn-universe/tools';
|
|
4
|
+
import { createHostLogger } from './logger.js';
|
|
5
|
+
import { startHostContext } from './cordis/host-context.js';
|
|
6
|
+
type RuntimeOptions = {
|
|
7
|
+
configFile?: string;
|
|
8
|
+
profile?: string;
|
|
9
|
+
taskProfile?: string;
|
|
10
|
+
mode?: string;
|
|
11
|
+
allowUnsafeSandboxFallback?: boolean;
|
|
12
|
+
sandboxRunner?: ContainerRunner;
|
|
13
|
+
hostPlugins?: NonNullable<Parameters<typeof startHostContext>[2]>['requiredPlugins'];
|
|
14
|
+
hostPluginTimeoutMs?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare function composeRuntime(store: SqliteStore, root: string, options?: RuntimeOptions, diagnosticDestination?: Parameters<typeof createHostLogger>[1]): Promise<{
|
|
17
|
+
readonly status: {
|
|
18
|
+
runDefaults?: {
|
|
19
|
+
modeRef?: string;
|
|
20
|
+
workerReasoningEffort?: string;
|
|
21
|
+
reasoningEffort?: string;
|
|
22
|
+
permissionMode?: "default" | "strict" | "full";
|
|
23
|
+
};
|
|
24
|
+
taskProfiles?: Readonly<Record<string, string>>;
|
|
25
|
+
driverFailures: {
|
|
26
|
+
runId: string;
|
|
27
|
+
code: string;
|
|
28
|
+
diagnosticId: string;
|
|
29
|
+
}[];
|
|
30
|
+
mcpServers?: import("@saturn-universe/protocol").HostMcpServerSummary[];
|
|
31
|
+
activeMode: {
|
|
32
|
+
ref: string;
|
|
33
|
+
displayName: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
availableModes: {
|
|
37
|
+
ref: string;
|
|
38
|
+
displayName: string;
|
|
39
|
+
description: string;
|
|
40
|
+
}[];
|
|
41
|
+
modes: string[];
|
|
42
|
+
skills: string[];
|
|
43
|
+
discoveredSkills: readonly import("@saturn-universe/protocol").DiscoveredSkillSummary[];
|
|
44
|
+
teamPresets: string[];
|
|
45
|
+
boardUrl?: string;
|
|
46
|
+
sandbox?: import("@saturn-universe/core").HostSandboxStatus;
|
|
47
|
+
configSource: import("./host-configuration.js").ConfigSource;
|
|
48
|
+
plugins: {
|
|
49
|
+
id: string;
|
|
50
|
+
version: string;
|
|
51
|
+
kind: "saturn-registrar" | "cordis";
|
|
52
|
+
status: "active" | "draining";
|
|
53
|
+
}[];
|
|
54
|
+
workspaceTools: boolean;
|
|
55
|
+
profiles?: {
|
|
56
|
+
ready: boolean;
|
|
57
|
+
capabilityDigest: string;
|
|
58
|
+
defaultReasoningEffort: string | null;
|
|
59
|
+
contextWindow: number;
|
|
60
|
+
reasoningModel: boolean;
|
|
61
|
+
reasoningEfforts: string[];
|
|
62
|
+
modelId: string;
|
|
63
|
+
reasoningEffort?: string;
|
|
64
|
+
protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini";
|
|
65
|
+
name: string;
|
|
66
|
+
providerId: string;
|
|
67
|
+
revision: string;
|
|
68
|
+
codecVersion: 1 | 2;
|
|
69
|
+
}[];
|
|
70
|
+
selectedProfile?: string;
|
|
71
|
+
defaultProfile?: string;
|
|
72
|
+
configuredProfiles: number;
|
|
73
|
+
};
|
|
74
|
+
recover(): Promise<void>;
|
|
75
|
+
handle(request: HostProtocolRequest, requestSignal?: AbortSignal): Promise<JsonValue>;
|
|
76
|
+
reloadPlugins: () => Promise<{
|
|
77
|
+
id: string;
|
|
78
|
+
version: string;
|
|
79
|
+
kind: "saturn-registrar" | "cordis";
|
|
80
|
+
status: "active" | "draining";
|
|
81
|
+
}[]>;
|
|
82
|
+
reloadPlugin: (pluginId: string) => Promise<{
|
|
83
|
+
id: string;
|
|
84
|
+
version: string;
|
|
85
|
+
kind: "saturn-registrar" | "cordis";
|
|
86
|
+
status: "active" | "draining";
|
|
87
|
+
}[]>;
|
|
88
|
+
deactivatePlugin: (pluginId: string) => Promise<{
|
|
89
|
+
id: string;
|
|
90
|
+
version: string;
|
|
91
|
+
kind: "saturn-registrar" | "cordis";
|
|
92
|
+
status: "active" | "draining";
|
|
93
|
+
}[]>;
|
|
94
|
+
pluginGenerations: () => {
|
|
95
|
+
id: string;
|
|
96
|
+
version: string;
|
|
97
|
+
kind: "saturn-registrar" | "cordis";
|
|
98
|
+
status: "active" | "draining";
|
|
99
|
+
}[];
|
|
100
|
+
drainPlugins: () => Promise<{
|
|
101
|
+
id: string;
|
|
102
|
+
version: string;
|
|
103
|
+
kind: "saturn-registrar" | "cordis";
|
|
104
|
+
status: "active" | "draining";
|
|
105
|
+
}[]>;
|
|
106
|
+
close: () => Promise<void>;
|
|
107
|
+
}>;
|
|
108
|
+
export {};
|