@hermespilot/link 0.7.9-beta.0 → 0.7.9
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/.env.example +27 -0
- package/README.md +2 -0
- package/dist/{chunk-Y5S7U77X.js → chunk-LUGNDJU3.js} +3128 -528
- package/dist/cli/index.js +1 -1
- package/dist/http/app.d.ts +52 -0
- package/dist/http/app.js +1 -1
- package/model-capabilities/catalog.json +1228 -0
- package/package.json +3 -1
package/dist/cli/index.js
CHANGED
package/dist/http/app.d.ts
CHANGED
|
@@ -152,6 +152,29 @@ interface LinkApprovalRequest {
|
|
|
152
152
|
resolution_hint_en?: string;
|
|
153
153
|
config_path?: string;
|
|
154
154
|
}
|
|
155
|
+
type LinkInputRequestKind = "clarify" | "sudo" | "secret";
|
|
156
|
+
type LinkInputRequestStatus = "pending" | "answered" | "cancelled" | "expired";
|
|
157
|
+
interface LinkInputRequest {
|
|
158
|
+
id: string;
|
|
159
|
+
kind: LinkInputRequestKind;
|
|
160
|
+
status: LinkInputRequestStatus;
|
|
161
|
+
conversation_id: string;
|
|
162
|
+
run_id: string;
|
|
163
|
+
message_id?: string;
|
|
164
|
+
hermes_request_id: string;
|
|
165
|
+
hermes_rpc_session_id?: string;
|
|
166
|
+
question?: string;
|
|
167
|
+
choices?: string[];
|
|
168
|
+
allow_free_text?: boolean;
|
|
169
|
+
prompt?: string;
|
|
170
|
+
env_var?: string;
|
|
171
|
+
created_at: string;
|
|
172
|
+
resolved_at?: string;
|
|
173
|
+
raw?: {
|
|
174
|
+
format: string;
|
|
175
|
+
payload: unknown;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
155
178
|
interface LinkMessage {
|
|
156
179
|
id: string;
|
|
157
180
|
schema_version: 1;
|
|
@@ -174,6 +197,7 @@ interface LinkMessage {
|
|
|
174
197
|
blocks?: LinkMessageBlock[];
|
|
175
198
|
agent_events?: LinkMessageAgentEvent[];
|
|
176
199
|
approvals?: LinkApprovalRequest[];
|
|
200
|
+
input_requests?: LinkInputRequest[];
|
|
177
201
|
hermes?: Record<string, unknown>;
|
|
178
202
|
raw?: {
|
|
179
203
|
format: string;
|
|
@@ -302,10 +326,12 @@ interface LinkRun {
|
|
|
302
326
|
language?: string;
|
|
303
327
|
model?: string;
|
|
304
328
|
provider?: string;
|
|
329
|
+
model_override?: boolean;
|
|
305
330
|
base_url?: string;
|
|
306
331
|
api_mode?: string;
|
|
307
332
|
context_window?: number;
|
|
308
333
|
reasoning_effort?: string;
|
|
334
|
+
reasoning_override?: boolean;
|
|
309
335
|
reasoning_support_policy?: string;
|
|
310
336
|
usage?: {
|
|
311
337
|
input_tokens: number;
|
|
@@ -701,6 +727,32 @@ declare class ConversationService {
|
|
|
701
727
|
resume_available: boolean;
|
|
702
728
|
last_event_seq: number;
|
|
703
729
|
}>;
|
|
730
|
+
listInputRequests(conversationId: string): Promise<{
|
|
731
|
+
conversation_id: string;
|
|
732
|
+
input_requests: LinkInputRequest[];
|
|
733
|
+
}>;
|
|
734
|
+
respondInputRequest(input: {
|
|
735
|
+
conversationId: string;
|
|
736
|
+
requestId: string;
|
|
737
|
+
kind: LinkInputRequestKind;
|
|
738
|
+
answer?: string;
|
|
739
|
+
password?: string;
|
|
740
|
+
value?: string;
|
|
741
|
+
}): Promise<{
|
|
742
|
+
conversation_id: string;
|
|
743
|
+
message_id?: string;
|
|
744
|
+
input_request: LinkInputRequest;
|
|
745
|
+
last_event_seq: number;
|
|
746
|
+
}>;
|
|
747
|
+
cancelInputRequest(input: {
|
|
748
|
+
conversationId: string;
|
|
749
|
+
requestId: string;
|
|
750
|
+
}): Promise<{
|
|
751
|
+
conversation_id: string;
|
|
752
|
+
message_id?: string;
|
|
753
|
+
input_request: LinkInputRequest;
|
|
754
|
+
last_event_seq: number;
|
|
755
|
+
}>;
|
|
704
756
|
deleteConversation(conversationId: string): Promise<DeleteConversationResult>;
|
|
705
757
|
archiveConversation(conversationId: string): Promise<ArchiveConversationResult>;
|
|
706
758
|
unarchiveConversation(conversationId: string): Promise<UnarchiveConversationResult>;
|