@hermespilot/link 0.2.3 → 0.2.4

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/cli/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  startDaemonProcess,
27
27
  startLinkService,
28
28
  stopDaemonProcess
29
- } from "../chunk-HIQBCPY4.js";
29
+ } from "../chunk-D55DPLGZ.js";
30
30
 
31
31
  // src/cli/index.ts
32
32
  import { Command } from "commander";
@@ -843,4 +843,3 @@ async function waitForPairingOrShutdown(sessionId, paths) {
843
843
  function sleep(ms) {
844
844
  return new Promise((resolve) => setTimeout(resolve, ms));
845
845
  }
846
- //# sourceMappingURL=index.js.map
@@ -9,6 +9,7 @@ interface RuntimePaths {
9
9
  databaseFile: string;
10
10
  conversationsDir: string;
11
11
  blobsDir: string;
12
+ deliveryStagingDir: string;
12
13
  indexesDir: string;
13
14
  logsDir: string;
14
15
  runDir: string;
@@ -153,6 +154,25 @@ interface LinkMessageAgentEvent {
153
154
  payload: unknown;
154
155
  };
155
156
  }
157
+ type LinkApprovalDecisionScope = 'once' | 'session' | 'always';
158
+ type LinkApprovalDecision = LinkApprovalDecisionScope | 'deny';
159
+ type LinkApprovalStatus = 'pending' | 'approved' | 'denied' | 'expired';
160
+ interface LinkApprovalRequest {
161
+ id: string;
162
+ status: LinkApprovalStatus;
163
+ kind: 'terminal_command';
164
+ command: string;
165
+ description?: string;
166
+ pattern_key?: string;
167
+ pattern_keys?: string[];
168
+ choices: LinkApprovalDecision[];
169
+ created_at: string;
170
+ resolved_at?: string;
171
+ decision?: LinkApprovalDecision;
172
+ resume_available: boolean;
173
+ resolution_hint?: string;
174
+ config_path?: string;
175
+ }
156
176
  interface LinkMessage {
157
177
  id: string;
158
178
  schema_version: 1;
@@ -173,6 +193,7 @@ interface LinkMessage {
173
193
  parts: LinkMessagePart[];
174
194
  attachments: unknown[];
175
195
  agent_events?: LinkMessageAgentEvent[];
196
+ approvals?: LinkApprovalRequest[];
176
197
  hermes?: Record<string, unknown>;
177
198
  raw?: {
178
199
  format: string;
@@ -211,6 +232,8 @@ interface LinkRun {
211
232
  id: string;
212
233
  kind?: 'agent' | 'command';
213
234
  hermes_run_id?: string;
235
+ hermes_response_id?: string;
236
+ previous_response_id?: string;
214
237
  conversation_id: string;
215
238
  trigger_message_id: string;
216
239
  assistant_message_id: string;
@@ -348,6 +371,23 @@ declare class ConversationService {
348
371
  sendMessage(input: SendMessageInput): Promise<SendMessageResult>;
349
372
  cancelRun(conversationId: string, runId: string): Promise<CancelRunResult>;
350
373
  cancelRunById(runId: string): Promise<CancelRunResult>;
374
+ resolveApproval(input: {
375
+ conversationId: string;
376
+ approvalId: string;
377
+ decision: LinkApprovalDecision;
378
+ }): Promise<{
379
+ conversation_id: string;
380
+ message_id: string;
381
+ approval: LinkApprovalRequest;
382
+ command_allowlist_updated: boolean;
383
+ config_path?: string;
384
+ requires_gateway_reload: boolean;
385
+ gateway_reloaded?: boolean;
386
+ reload_error?: string;
387
+ restart_hint?: string;
388
+ resume_available: boolean;
389
+ last_event_seq: number;
390
+ }>;
351
391
  deleteConversation(conversationId: string): Promise<DeleteConversationResult>;
352
392
  deleteConversations(conversationIds: string[]): Promise<{
353
393
  deleted_count: number;
package/dist/http/app.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-HIQBCPY4.js";
3
+ } from "../chunk-D55DPLGZ.js";
4
4
  export {
5
5
  createApp
6
6
  };
7
- //# sourceMappingURL=app.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hermespilot/link",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "access": "public"
28
28
  },
29
29
  "scripts": {
30
- "build": "tsup src/cli/index.ts src/http/app.ts --format esm --target node22 --dts --sourcemap --clean",
30
+ "build": "tsup src/cli/index.ts src/http/app.ts --format esm --target node22 --dts --clean",
31
31
  "check": "tsc --noEmit",
32
32
  "dev": "tsx src/cli/index.ts",
33
33
  "preinstall": "node ./scripts/check-node-version.mjs",