@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.
- package/dist/{dom-sync-L5KIP45X.mjs → dom-sync-GABDEODR.mjs} +0 -1
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +271 -123
- package/dist/index.mjs +275 -126
- package/package.json +1 -1
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
|
-
/**
|
|
349
|
+
/** Internal reasoning is intentionally stripped from customer-visible traces */
|
|
350
350
|
reasoning?: string;
|
|
351
351
|
llmInput?: AgentTraceLlmInput;
|
|
352
|
-
llmOutput
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
349
|
+
/** Internal reasoning is intentionally stripped from customer-visible traces */
|
|
350
350
|
reasoning?: string;
|
|
351
351
|
llmInput?: AgentTraceLlmInput;
|
|
352
|
-
llmOutput
|
|
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
|
-
/**
|
|
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
|
|