@datatechsolutions/ui 3.6.2 → 3.7.0

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.
@@ -90,7 +90,7 @@ declare function useWorkflowExecution(workflowId: string): {
90
90
  execute: (inputVariables?: Record<string, VariableValue>) => Promise<void>;
91
91
  stop: () => void;
92
92
  runId: string | null;
93
- runStatus: "error" | "idle" | "streaming" | "completed" | "failed";
93
+ runStatus: "error" | "idle" | "completed" | "failed" | "streaming";
94
94
  };
95
95
 
96
96
  type RunEventStreamState = {
@@ -90,7 +90,7 @@ declare function useWorkflowExecution(workflowId: string): {
90
90
  execute: (inputVariables?: Record<string, VariableValue>) => Promise<void>;
91
91
  stop: () => void;
92
92
  runId: string | null;
93
- runStatus: "error" | "idle" | "streaming" | "completed" | "failed";
93
+ runStatus: "error" | "idle" | "completed" | "failed" | "streaming";
94
94
  };
95
95
 
96
96
  type RunEventStreamState = {
@@ -438,4 +438,89 @@ type Props = {
438
438
  };
439
439
  declare function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate, onDisable }: Props): react_jsx_runtime.JSX.Element;
440
440
 
441
- export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsIndexLabels, AgentsIndexPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, type ConnectionFormValue, type ConnectionsLabels, ConnectionsPageView, type CreateConnectionInput, type CredentialFormInput, CredentialsPageView, type CredentialsPageViewLabels, type DashboardLabels, DashboardPageView, DatasourceFormData, DatasourcesPageView, type DatasourcesPageViewProps, type PromptFormInput, RolesPageView, type RolesPageViewExtraProps, RuleFormValue, type RulesLabels, RulesPageView, type RunTimelineLabels, RunTimelinePageView, TOOL_TYPES, type ToolDefinitionFormInput, type ToolParameter, type ToolType, type UpdateConnectionInput, UsersPageView, type WorkflowRunsLabels, WorkflowRunsPageView, WorkflowsPageView, jsonSchemaToParameters, parametersToJsonSchema };
441
+ /**
442
+ * All copy the workspace renders. Caller-supplied so the consuming app
443
+ * stays in control of its i18n catalog. Every key must be supplied — no
444
+ * silent fallbacks — so we catch missing translations at type-check time.
445
+ */
446
+ type AgentsWorkspaceLabels = {
447
+ title: string;
448
+ subtitle: string;
449
+ addAgent: string;
450
+ searchPlaceholder: string;
451
+ empty: string;
452
+ emptyMessage: string;
453
+ noSelection: string;
454
+ noSelectionMessage: string;
455
+ generalTab: string;
456
+ promptTab: string;
457
+ toolsTab: string;
458
+ modelTab: string;
459
+ generalSection: string;
460
+ name: string;
461
+ description: string;
462
+ role: string;
463
+ rolePlaceholder: string;
464
+ status: string;
465
+ statusDraft: string;
466
+ statusActive: string;
467
+ statusArchived: string;
468
+ maxTokens: string;
469
+ temperature: string;
470
+ save: string;
471
+ saving: string;
472
+ deleteAgent: string;
473
+ deleteConfirm: string;
474
+ promptSection: string;
475
+ promptCurrent: string;
476
+ promptVersions: string;
477
+ promptVersionsEmpty: string;
478
+ addPrompt: string;
479
+ activate: string;
480
+ activated: string;
481
+ promptLocale: string;
482
+ promptIsActive: string;
483
+ promptText: string;
484
+ promptReason: string;
485
+ promptSystemPrompt: string;
486
+ promptUserTemplate: string;
487
+ toolsSection: string;
488
+ toolsAttached: string;
489
+ toolsAvailable: string;
490
+ toolsEmpty: string;
491
+ attachTool: string;
492
+ detachTool: string;
493
+ modelSection: string;
494
+ model: string;
495
+ connection: string;
496
+ connectionEmpty: string;
497
+ modelEmpty: string;
498
+ createAgentTitle: string;
499
+ };
500
+ type AgentsWorkspacePageViewProps = {
501
+ labels: AgentsWorkspaceLabels;
502
+ agents: AgentWithPrompts[];
503
+ models: AgentModel[];
504
+ tools: AgentTool[];
505
+ connections: ModelProviderConnection[];
506
+ loading?: boolean;
507
+ /**
508
+ * Per-agent prompt rows (system-prompt history). The page itself does
509
+ * not own loading them — the caller resolves them per agent and feeds
510
+ * the slice corresponding to the currently selected agent via this
511
+ * map keyed by agentId. The view falls back to `[]` for unknown ids.
512
+ */
513
+ promptsByAgent?: Record<string, AgentPrompt[]>;
514
+ onSelectAgent?: (agentId: string | null) => void;
515
+ onCreateAgent: (input: AgentConfigFormInput) => Promise<void>;
516
+ onUpdateAgent: (id: string, input: AgentConfigFormInput) => Promise<void>;
517
+ onDeleteAgent: (id: string) => Promise<void>;
518
+ onCreatePrompt: (agentId: string, input: PromptFormInput) => Promise<void>;
519
+ onActivatePrompt: (agentId: string, promptId: string) => Promise<void>;
520
+ onAttachTool: (agentId: string, toolId: string) => Promise<void>;
521
+ onDetachTool: (agentId: string, toolId: string) => Promise<void>;
522
+ onUpdateModel: (agentId: string, modelId: string, connectionId: string) => Promise<void>;
523
+ };
524
+ declare function AgentsWorkspacePageView({ labels, agents, models, tools, connections, loading, promptsByAgent, onSelectAgent, onCreateAgent, onUpdateAgent, onDeleteAgent, onCreatePrompt, onActivatePrompt, onAttachTool, onDetachTool, onUpdateModel, }: AgentsWorkspacePageViewProps): react_jsx_runtime.JSX.Element;
525
+
526
+ export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsIndexLabels, AgentsIndexPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, type AgentsWorkspaceLabels, AgentsWorkspacePageView, type AgentsWorkspacePageViewProps, type ConnectionFormValue, type ConnectionsLabels, ConnectionsPageView, type CreateConnectionInput, type CredentialFormInput, CredentialsPageView, type CredentialsPageViewLabels, type DashboardLabels, DashboardPageView, DatasourceFormData, DatasourcesPageView, type DatasourcesPageViewProps, type PromptFormInput, RolesPageView, type RolesPageViewExtraProps, RuleFormValue, type RulesLabels, RulesPageView, type RunTimelineLabels, RunTimelinePageView, TOOL_TYPES, type ToolDefinitionFormInput, type ToolParameter, type ToolType, type UpdateConnectionInput, UsersPageView, type WorkflowRunsLabels, WorkflowRunsPageView, WorkflowsPageView, jsonSchemaToParameters, parametersToJsonSchema };
@@ -438,4 +438,89 @@ type Props = {
438
438
  };
439
439
  declare function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate, onDisable }: Props): react_jsx_runtime.JSX.Element;
440
440
 
441
- export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsIndexLabels, AgentsIndexPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, type ConnectionFormValue, type ConnectionsLabels, ConnectionsPageView, type CreateConnectionInput, type CredentialFormInput, CredentialsPageView, type CredentialsPageViewLabels, type DashboardLabels, DashboardPageView, DatasourceFormData, DatasourcesPageView, type DatasourcesPageViewProps, type PromptFormInput, RolesPageView, type RolesPageViewExtraProps, RuleFormValue, type RulesLabels, RulesPageView, type RunTimelineLabels, RunTimelinePageView, TOOL_TYPES, type ToolDefinitionFormInput, type ToolParameter, type ToolType, type UpdateConnectionInput, UsersPageView, type WorkflowRunsLabels, WorkflowRunsPageView, WorkflowsPageView, jsonSchemaToParameters, parametersToJsonSchema };
441
+ /**
442
+ * All copy the workspace renders. Caller-supplied so the consuming app
443
+ * stays in control of its i18n catalog. Every key must be supplied — no
444
+ * silent fallbacks — so we catch missing translations at type-check time.
445
+ */
446
+ type AgentsWorkspaceLabels = {
447
+ title: string;
448
+ subtitle: string;
449
+ addAgent: string;
450
+ searchPlaceholder: string;
451
+ empty: string;
452
+ emptyMessage: string;
453
+ noSelection: string;
454
+ noSelectionMessage: string;
455
+ generalTab: string;
456
+ promptTab: string;
457
+ toolsTab: string;
458
+ modelTab: string;
459
+ generalSection: string;
460
+ name: string;
461
+ description: string;
462
+ role: string;
463
+ rolePlaceholder: string;
464
+ status: string;
465
+ statusDraft: string;
466
+ statusActive: string;
467
+ statusArchived: string;
468
+ maxTokens: string;
469
+ temperature: string;
470
+ save: string;
471
+ saving: string;
472
+ deleteAgent: string;
473
+ deleteConfirm: string;
474
+ promptSection: string;
475
+ promptCurrent: string;
476
+ promptVersions: string;
477
+ promptVersionsEmpty: string;
478
+ addPrompt: string;
479
+ activate: string;
480
+ activated: string;
481
+ promptLocale: string;
482
+ promptIsActive: string;
483
+ promptText: string;
484
+ promptReason: string;
485
+ promptSystemPrompt: string;
486
+ promptUserTemplate: string;
487
+ toolsSection: string;
488
+ toolsAttached: string;
489
+ toolsAvailable: string;
490
+ toolsEmpty: string;
491
+ attachTool: string;
492
+ detachTool: string;
493
+ modelSection: string;
494
+ model: string;
495
+ connection: string;
496
+ connectionEmpty: string;
497
+ modelEmpty: string;
498
+ createAgentTitle: string;
499
+ };
500
+ type AgentsWorkspacePageViewProps = {
501
+ labels: AgentsWorkspaceLabels;
502
+ agents: AgentWithPrompts[];
503
+ models: AgentModel[];
504
+ tools: AgentTool[];
505
+ connections: ModelProviderConnection[];
506
+ loading?: boolean;
507
+ /**
508
+ * Per-agent prompt rows (system-prompt history). The page itself does
509
+ * not own loading them — the caller resolves them per agent and feeds
510
+ * the slice corresponding to the currently selected agent via this
511
+ * map keyed by agentId. The view falls back to `[]` for unknown ids.
512
+ */
513
+ promptsByAgent?: Record<string, AgentPrompt[]>;
514
+ onSelectAgent?: (agentId: string | null) => void;
515
+ onCreateAgent: (input: AgentConfigFormInput) => Promise<void>;
516
+ onUpdateAgent: (id: string, input: AgentConfigFormInput) => Promise<void>;
517
+ onDeleteAgent: (id: string) => Promise<void>;
518
+ onCreatePrompt: (agentId: string, input: PromptFormInput) => Promise<void>;
519
+ onActivatePrompt: (agentId: string, promptId: string) => Promise<void>;
520
+ onAttachTool: (agentId: string, toolId: string) => Promise<void>;
521
+ onDetachTool: (agentId: string, toolId: string) => Promise<void>;
522
+ onUpdateModel: (agentId: string, modelId: string, connectionId: string) => Promise<void>;
523
+ };
524
+ declare function AgentsWorkspacePageView({ labels, agents, models, tools, connections, loading, promptsByAgent, onSelectAgent, onCreateAgent, onUpdateAgent, onDeleteAgent, onCreatePrompt, onActivatePrompt, onAttachTool, onDetachTool, onUpdateModel, }: AgentsWorkspacePageViewProps): react_jsx_runtime.JSX.Element;
525
+
526
+ export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsIndexLabels, AgentsIndexPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, type AgentsWorkspaceLabels, AgentsWorkspacePageView, type AgentsWorkspacePageViewProps, type ConnectionFormValue, type ConnectionsLabels, ConnectionsPageView, type CreateConnectionInput, type CredentialFormInput, CredentialsPageView, type CredentialsPageViewLabels, type DashboardLabels, DashboardPageView, DatasourceFormData, DatasourcesPageView, type DatasourcesPageViewProps, type PromptFormInput, RolesPageView, type RolesPageViewExtraProps, RuleFormValue, type RulesLabels, RulesPageView, type RunTimelineLabels, RunTimelinePageView, TOOL_TYPES, type ToolDefinitionFormInput, type ToolParameter, type ToolType, type UpdateConnectionInput, UsersPageView, type WorkflowRunsLabels, WorkflowRunsPageView, WorkflowsPageView, jsonSchemaToParameters, parametersToJsonSchema };