@sailfish-ai/sf-veritas 0.2.5 → 0.2.6

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.
@@ -20,6 +20,26 @@ export interface FuncspanWebpackPluginOptions extends Omit<TransformOptions, "pr
20
20
  * Enable the plugin (default: true)
21
21
  */
22
22
  enabled?: boolean;
23
+ /**
24
+ * Enable worker pool tracking (default: false)
25
+ */
26
+ enableWorkerPoolTracking?: boolean;
27
+ /**
28
+ * Track DNS operations (default: false)
29
+ */
30
+ workerPoolTrackDns?: boolean;
31
+ /**
32
+ * Track File System operations (default: false)
33
+ */
34
+ workerPoolTrackFs?: boolean;
35
+ /**
36
+ * Track Crypto operations (default: false)
37
+ */
38
+ workerPoolTrackCrypto?: boolean;
39
+ /**
40
+ * Track Zlib operations (default: false)
41
+ */
42
+ workerPoolTrackZlib?: boolean;
23
43
  }
24
44
  /**
25
45
  * Webpack plugin for automatic function span instrumentation
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Worker Pool AST Transformer
3
+ *
4
+ * Transforms JavaScript/TypeScript code to wrap DNS/fs/crypto/zlib calls
5
+ * with captureWorkerPoolOperation() for automatic instrumentation at build time.
6
+ */
7
+ export interface WorkerPoolTransformOptions {
8
+ /**
9
+ * Project root directory for resolving relative paths
10
+ */
11
+ projectRoot?: string;
12
+ /**
13
+ * Track DNS operations
14
+ */
15
+ trackDns?: boolean;
16
+ /**
17
+ * Track File System operations
18
+ */
19
+ trackFs?: boolean;
20
+ /**
21
+ * Track Crypto operations
22
+ */
23
+ trackCrypto?: boolean;
24
+ /**
25
+ * Track Zlib operations
26
+ */
27
+ trackZlib?: boolean;
28
+ /**
29
+ * Enable debug logging
30
+ */
31
+ debug?: boolean;
32
+ }
33
+ export interface TransformResult {
34
+ code: string;
35
+ map?: any;
36
+ modified: boolean;
37
+ callsWrapped: number;
38
+ }
39
+ /**
40
+ * Transform JavaScript/TypeScript source code to wrap worker pool calls
41
+ */
42
+ export declare function transformWorkerPoolCalls(source: string, filePath: string, options?: WorkerPoolTransformOptions): Promise<TransformResult>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Worker Pool Capture Export
3
+ *
4
+ * Re-exports captureWorkerPoolOperation for build-time instrumented code.
5
+ * This allows transformed code to import the capture function directly:
6
+ *
7
+ * const { captureWorkerPoolOperation } = require('@sailfish-ai/sf-veritas/worker-pool-capture');
8
+ */
9
+ export { captureWorkerPoolOperation } from './workerPoolSpanCapture';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./workerPoolSpanCapture-CNEouInA.cjs");exports.captureWorkerPoolOperation=e.captureWorkerPoolOperation;
@@ -0,0 +1,4 @@
1
+ import { c as e } from "./workerPoolSpanCapture-BOnYC4s3.js";
2
+ export {
3
+ e as captureWorkerPoolOperation
4
+ };