@modelnex/sdk 0.5.28 → 0.5.29

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.
@@ -8,7 +8,6 @@ function waitForDomSettle(options = {}) {
8
8
  if (!resolved) {
9
9
  resolved = true;
10
10
  cleanup();
11
- console.log("[DOM Sync] Forced resolution by max timeout");
12
11
  resolve();
13
12
  }
14
13
  }, Math.max(timeoutMs, minWaitMs));
package/dist/index.d.mts CHANGED
@@ -284,7 +284,7 @@ declare function extractInteractiveElements(): ExtractedElement[];
284
284
  * Hook that automatically extracts all interactive DOM elements and keeps
285
285
  * the list up-to-date via MutationObserver (debounced at 500ms).
286
286
  */
287
- declare function useAutoExtract(): ExtractedElement[];
287
+ declare function useAutoExtract(devMode?: boolean): ExtractedElement[];
288
288
 
289
289
  /**
290
290
  * Tag store for human-in-the-loop tagging.
@@ -346,10 +346,10 @@ interface AgentTraceLlmInput {
346
346
  /** Single step in agent execution trace */
347
347
  interface AgentTraceStep {
348
348
  step: number;
349
- /** Chain-of-thought reasoning from the agent */
349
+ /** Internal reasoning is intentionally stripped from customer-visible traces */
350
350
  reasoning?: string;
351
351
  llmInput?: AgentTraceLlmInput;
352
- llmOutput: string;
352
+ llmOutput?: string;
353
353
  actions: Array<{
354
354
  actionId: string;
355
355
  params?: Record<string, unknown>;
@@ -361,7 +361,7 @@ interface AgentTraceStep {
361
361
  error?: string;
362
362
  }>;
363
363
  }
364
- /** Debug payload from /agent/command */
364
+ /** Sanitized debug payload from /agent/command */
365
365
  interface AgentDebug {
366
366
  actions?: Array<{
367
367
  actionId: string;
@@ -849,6 +849,11 @@ interface ModelNexProviderProps {
849
849
  * Enable SDK dev tools unconditionally (tour recording, studio mode)
850
850
  */
851
851
  devMode?: boolean;
852
+ /**
853
+ * Optional dev mode key. When present, the SDK validates it with the backend
854
+ * and enables dev tooling when the key matches the project configuration.
855
+ */
856
+ devModeKey?: string;
852
857
  }
853
858
  declare const ModelNexProvider: React$1.FC<ModelNexProviderProps>;
854
859
 
package/dist/index.d.ts CHANGED
@@ -284,7 +284,7 @@ declare function extractInteractiveElements(): ExtractedElement[];
284
284
  * Hook that automatically extracts all interactive DOM elements and keeps
285
285
  * the list up-to-date via MutationObserver (debounced at 500ms).
286
286
  */
287
- declare function useAutoExtract(): ExtractedElement[];
287
+ declare function useAutoExtract(devMode?: boolean): ExtractedElement[];
288
288
 
289
289
  /**
290
290
  * Tag store for human-in-the-loop tagging.
@@ -346,10 +346,10 @@ interface AgentTraceLlmInput {
346
346
  /** Single step in agent execution trace */
347
347
  interface AgentTraceStep {
348
348
  step: number;
349
- /** Chain-of-thought reasoning from the agent */
349
+ /** Internal reasoning is intentionally stripped from customer-visible traces */
350
350
  reasoning?: string;
351
351
  llmInput?: AgentTraceLlmInput;
352
- llmOutput: string;
352
+ llmOutput?: string;
353
353
  actions: Array<{
354
354
  actionId: string;
355
355
  params?: Record<string, unknown>;
@@ -361,7 +361,7 @@ interface AgentTraceStep {
361
361
  error?: string;
362
362
  }>;
363
363
  }
364
- /** Debug payload from /agent/command */
364
+ /** Sanitized debug payload from /agent/command */
365
365
  interface AgentDebug {
366
366
  actions?: Array<{
367
367
  actionId: string;
@@ -849,6 +849,11 @@ interface ModelNexProviderProps {
849
849
  * Enable SDK dev tools unconditionally (tour recording, studio mode)
850
850
  */
851
851
  devMode?: boolean;
852
+ /**
853
+ * Optional dev mode key. When present, the SDK validates it with the backend
854
+ * and enables dev tooling when the key matches the project configuration.
855
+ */
856
+ devModeKey?: string;
852
857
  }
853
858
  declare const ModelNexProvider: React$1.FC<ModelNexProviderProps>;
854
859