@deepbounty/sdk 1.2.3 → 1.2.5

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Alert, ModuleSetting, TaskContent, TaskResult, Tool, ModuleCallback, CallbackHandler, CreateCallbackOptions, Target } from "./types";
2
2
  import { IEventBus } from "./events";
3
3
  export interface Logger {
4
- info: (...args: any[]) => void;
5
- warn: (...args: any[]) => void;
6
- error: (...args: any[]) => void;
4
+ info: (message: string) => void;
5
+ warn: (message: string) => void;
6
+ error: (message: string, error?: any) => void;
7
7
  }
8
8
  export interface ConfigAPI {
9
9
  /** Get a configuration value by key
@@ -203,6 +203,12 @@ export interface TargetAPI {
203
203
  * @returns Array of all targets with complete information
204
204
  */
205
205
  getTargets(): Promise<Target[]>;
206
+ /**
207
+ * Get target ID by hostname
208
+ * @param hostname The hostname to look up
209
+ * @returns The target ID or null if not found
210
+ */
211
+ getTargetIdByHostname(hostname: string): Promise<number | null>;
206
212
  }
207
213
  export interface ServerAPI {
208
214
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepbounty/sdk",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "DeepBounty SDK for module development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",