@lssm/example.agent-console 0.0.0-canary-20251215234340 → 0.0.0-canary-20251216024228

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 (100) hide show
  1. package/.turbo/turbo-build.log +38 -28
  2. package/CHANGELOG.md +6 -6
  3. package/dist/agent/agent.contracts.js +1 -0
  4. package/dist/{entities/agent.js → agent/agent.entity.js} +1 -1
  5. package/dist/agent/agent.enum.js +1 -0
  6. package/dist/agent/agent.event.js +1 -0
  7. package/dist/agent/agent.handler.js +1 -0
  8. package/dist/agent/agent.presentation.js +1 -0
  9. package/dist/agent/agent.schema.js +1 -0
  10. package/dist/agent/index.js +1 -0
  11. package/dist/handlers/index.js +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/presentations/index.js +1 -1
  14. package/dist/run/index.js +1 -0
  15. package/dist/run/run.contracts.js +1 -0
  16. package/dist/run/run.entity.js +1 -0
  17. package/dist/run/run.enum.js +1 -0
  18. package/dist/run/run.event.js +1 -0
  19. package/dist/run/run.handler.js +1 -0
  20. package/dist/run/run.presentation.js +1 -0
  21. package/dist/run/run.schema.js +1 -0
  22. package/dist/shared/index.js +1 -0
  23. package/dist/shared/mock-agents.js +1 -0
  24. package/dist/shared/mock-runs.js +1 -0
  25. package/dist/shared/mock-tools.js +1 -0
  26. package/dist/tool/index.js +1 -0
  27. package/dist/tool/tool.contracts.js +1 -0
  28. package/dist/tool/tool.entity.js +1 -0
  29. package/dist/tool/tool.enum.js +1 -0
  30. package/dist/tool/tool.event.js +1 -0
  31. package/dist/tool/tool.handler.js +1 -0
  32. package/dist/tool/tool.presentation.js +1 -0
  33. package/dist/tool/tool.schema.js +1 -0
  34. package/package.json +59 -39
  35. package/src/agent/agent.contracts.ts +275 -0
  36. package/src/agent/agent.entity.ts +84 -0
  37. package/src/agent/agent.enum.ts +31 -0
  38. package/src/agent/agent.event.ts +109 -0
  39. package/src/{handlers/agent.handlers.ts → agent/agent.handler.ts} +23 -78
  40. package/src/{presentations/agent-list.ts → agent/agent.presentation.ts} +26 -14
  41. package/src/agent/agent.schema.ts +147 -0
  42. package/src/agent/index.ts +65 -0
  43. package/src/handlers/index.ts +17 -44
  44. package/src/index.ts +6 -15
  45. package/src/presentations/index.ts +13 -34
  46. package/src/run/index.ts +65 -0
  47. package/src/run/run.contracts.ts +266 -0
  48. package/src/run/run.entity.ts +126 -0
  49. package/src/run/run.enum.ts +45 -0
  50. package/src/run/run.event.ts +211 -0
  51. package/src/run/run.handler.ts +103 -0
  52. package/src/run/run.presentation.ts +47 -0
  53. package/src/run/run.schema.ts +139 -0
  54. package/src/shared/index.ts +6 -0
  55. package/src/shared/mock-agents.ts +83 -0
  56. package/src/shared/mock-runs.ts +108 -0
  57. package/src/shared/mock-tools.ts +146 -0
  58. package/src/tool/index.ts +35 -0
  59. package/src/tool/tool.contracts.ts +180 -0
  60. package/src/tool/tool.entity.ts +66 -0
  61. package/src/tool/tool.enum.ts +34 -0
  62. package/src/tool/tool.event.ts +84 -0
  63. package/src/tool/tool.handler.ts +107 -0
  64. package/src/{presentations/tool-registry.ts → tool/tool.presentation.ts} +12 -17
  65. package/src/tool/tool.schema.ts +134 -0
  66. package/tsconfig.tsbuildinfo +1 -1
  67. package/dist/contracts/agent.js +0 -1
  68. package/dist/contracts/index.js +0 -1
  69. package/dist/contracts/run.js +0 -1
  70. package/dist/contracts/tool.js +0 -1
  71. package/dist/entities/index.js +0 -1
  72. package/dist/entities/log.js +0 -1
  73. package/dist/entities/run.js +0 -1
  74. package/dist/entities/tool.js +0 -1
  75. package/dist/events.js +0 -1
  76. package/dist/handlers/agent.handlers.js +0 -1
  77. package/dist/handlers/mock-data.js +0 -1
  78. package/dist/handlers/run.handlers.js +0 -1
  79. package/dist/handlers/tool.handlers.js +0 -1
  80. package/dist/presentations/agent-list.js +0 -1
  81. package/dist/presentations/dashboard.js +0 -1
  82. package/dist/presentations/run-list.js +0 -1
  83. package/dist/presentations/tool-registry.js +0 -1
  84. package/src/contracts/agent.ts +0 -501
  85. package/src/contracts/index.ts +0 -29
  86. package/src/contracts/run.ts +0 -561
  87. package/src/contracts/tool.ts +0 -392
  88. package/src/entities/agent.ts +0 -151
  89. package/src/entities/index.ts +0 -20
  90. package/src/entities/log.ts +0 -76
  91. package/src/entities/run.ts +0 -240
  92. package/src/entities/tool.ts +0 -105
  93. package/src/events.ts +0 -419
  94. package/src/handlers/mock-data.ts +0 -413
  95. package/src/handlers/run.handlers.ts +0 -331
  96. package/src/handlers/tool.handlers.ts +0 -188
  97. package/src/presentations/dashboard.ts +0 -29
  98. package/src/presentations/run-list.ts +0 -76
  99. /package/dist/{feature.js → agent.feature.js} +0 -0
  100. /package/src/{feature.ts → agent.feature.ts} +0 -0
@@ -1,19 +1,14 @@
1
- /**
2
- * Agent List Presentation Descriptor
3
- */
4
1
  import type { PresentationDescriptorV2 } from '@lssm/lib.contracts';
5
- import { AgentSummaryModel } from '../contracts/agent';
2
+ import { AgentSummaryModel } from './agent.schema';
6
3
 
7
4
  /**
8
5
  * Presentation for displaying a list of AI agents.
9
- * Supports both React (DataTable) and Markdown (list) rendering.
10
6
  */
11
7
  export const AgentListPresentation: PresentationDescriptorV2 = {
12
8
  meta: {
13
9
  name: 'agent-console.agent.list',
14
10
  version: 1,
15
- description:
16
- 'List view of AI agents with status, model provider, and version info',
11
+ description: 'List view of AI agents with status, model provider, and version info',
17
12
  domain: 'agent-console',
18
13
  owners: ['agent-console-team'],
19
14
  tags: ['agent', 'list', 'dashboard'],
@@ -25,9 +20,7 @@ export const AgentListPresentation: PresentationDescriptorV2 = {
25
20
  props: AgentSummaryModel,
26
21
  },
27
22
  targets: ['react', 'markdown', 'application/json'],
28
- policy: {
29
- flags: ['agent-console.enabled'],
30
- },
23
+ policy: { flags: ['agent-console.enabled'] },
31
24
  };
32
25
 
33
26
  /**
@@ -37,8 +30,7 @@ export const AgentDetailPresentation: PresentationDescriptorV2 = {
37
30
  meta: {
38
31
  name: 'agent-console.agent.detail',
39
32
  version: 1,
40
- description:
41
- 'Detailed view of an AI agent with configuration, tools, and recent runs',
33
+ description: 'Detailed view of an AI agent with configuration, tools, and recent runs',
42
34
  domain: 'agent-console',
43
35
  owners: ['agent-console-team'],
44
36
  tags: ['agent', 'detail'],
@@ -49,7 +41,27 @@ export const AgentDetailPresentation: PresentationDescriptorV2 = {
49
41
  componentKey: 'AgentDetailView',
50
42
  },
51
43
  targets: ['react', 'markdown'],
52
- policy: {
53
- flags: ['agent-console.enabled'],
44
+ policy: { flags: ['agent-console.enabled'] },
45
+ };
46
+
47
+ /**
48
+ * Dashboard presentation for Agent Console - overview of agents, runs, and tools.
49
+ */
50
+ export const AgentConsoleDashboardPresentation: PresentationDescriptorV2 = {
51
+ meta: {
52
+ name: 'agent-console.dashboard',
53
+ version: 1,
54
+ description: 'Dashboard overview of AI agents, runs, and tools',
55
+ domain: 'agent-console',
56
+ owners: ['agent-console-team'],
57
+ tags: ['dashboard', 'overview'],
58
+ },
59
+ source: {
60
+ type: 'component',
61
+ framework: 'react',
62
+ componentKey: 'AgentConsoleDashboard',
54
63
  },
64
+ targets: ['react', 'markdown'],
65
+ policy: { flags: ['agent-console.enabled'] },
55
66
  };
67
+
@@ -0,0 +1,147 @@
1
+ import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';
2
+ import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from './agent.enum';
3
+
4
+ /**
5
+ * AI agent configuration schema.
6
+ */
7
+ export const AgentModel = defineSchemaModel({
8
+ name: 'Agent',
9
+ description: 'AI agent configuration',
10
+ fields: {
11
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
12
+ organizationId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
13
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
14
+ slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
15
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
16
+ status: { type: AgentStatusEnum, isOptional: false },
17
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
18
+ modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
19
+ modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
20
+ systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
21
+ userPromptTemplate: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
22
+ toolIds: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
23
+ toolChoice: { type: ToolChoiceEnum, isOptional: false, defaultValue: 'auto' },
24
+ maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false, defaultValue: 10 },
25
+ maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
26
+ timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false, defaultValue: 120000 },
27
+ version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
28
+ tags: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
29
+ createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
30
+ updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
31
+ },
32
+ });
33
+
34
+ /**
35
+ * Summary of an agent for list views.
36
+ */
37
+ export const AgentSummaryModel = defineSchemaModel({
38
+ name: 'AgentSummary',
39
+ description: 'Summary of an agent for list views',
40
+ fields: {
41
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
42
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
43
+ slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
44
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
45
+ status: { type: AgentStatusEnum, isOptional: false },
46
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
47
+ modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
48
+ version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
49
+ createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
50
+ },
51
+ });
52
+
53
+ /**
54
+ * Tool reference in agent context.
55
+ */
56
+ export const AgentToolRefModel = defineSchemaModel({
57
+ name: 'AgentToolRef',
58
+ description: 'Tool reference in agent context',
59
+ fields: {
60
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
61
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
62
+ slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
63
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
64
+ category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
65
+ },
66
+ });
67
+
68
+ /**
69
+ * Agent with associated tools.
70
+ */
71
+ export const AgentWithToolsModel = defineSchemaModel({
72
+ name: 'AgentWithTools',
73
+ description: 'Agent with associated tools',
74
+ fields: {
75
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
76
+ organizationId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
77
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
78
+ slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
79
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
80
+ status: { type: AgentStatusEnum, isOptional: false },
81
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
82
+ modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
83
+ modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
84
+ systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
85
+ userPromptTemplate: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
86
+ toolIds: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
87
+ toolChoice: { type: ToolChoiceEnum, isOptional: false },
88
+ maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
89
+ maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
90
+ timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
91
+ version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
92
+ tags: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
93
+ createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
94
+ updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
95
+ tools: { type: AgentToolRefModel, isArray: true, isOptional: true },
96
+ },
97
+ });
98
+
99
+ /**
100
+ * Input for creating an agent.
101
+ */
102
+ export const CreateAgentInputModel = defineSchemaModel({
103
+ name: 'CreateAgentInput',
104
+ description: 'Input for creating an agent',
105
+ fields: {
106
+ organizationId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
107
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
108
+ slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
109
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
110
+ modelProvider: { type: ModelProviderEnum, isOptional: false },
111
+ modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
112
+ modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
113
+ systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
114
+ userPromptTemplate: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
115
+ toolIds: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
116
+ toolChoice: { type: ToolChoiceEnum, isOptional: true },
117
+ maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
118
+ maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
119
+ timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
120
+ tags: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
121
+ },
122
+ });
123
+
124
+ /**
125
+ * Input for updating an agent.
126
+ */
127
+ export const UpdateAgentInputModel = defineSchemaModel({
128
+ name: 'UpdateAgentInput',
129
+ description: 'Input for updating an agent',
130
+ fields: {
131
+ agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
132
+ name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },
133
+ description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
134
+ status: { type: AgentStatusEnum, isOptional: true },
135
+ modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
136
+ systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
137
+ userPromptTemplate: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
138
+ toolIds: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
139
+ toolChoice: { type: ToolChoiceEnum, isOptional: true },
140
+ maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
141
+ maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
142
+ timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
143
+ tags: { type: ScalarTypeEnum.String_unsecure(), isArray: true, isOptional: true },
144
+ },
145
+ });
146
+
147
+
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Agent domain - AI agent configuration and management.
3
+ */
4
+
5
+ // Enums
6
+ export { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from './agent.enum';
7
+
8
+ // Schema models
9
+ export {
10
+ AgentModel,
11
+ AgentSummaryModel,
12
+ AgentToolRefModel,
13
+ AgentWithToolsModel,
14
+ CreateAgentInputModel,
15
+ UpdateAgentInputModel,
16
+ } from './agent.schema';
17
+
18
+ // Contracts
19
+ export {
20
+ CreateAgentCommand,
21
+ UpdateAgentCommand,
22
+ GetAgentQuery,
23
+ ListAgentsQuery,
24
+ AssignToolToAgentCommand,
25
+ RemoveToolFromAgentCommand,
26
+ } from './agent.contracts';
27
+
28
+ // Events
29
+ export {
30
+ AgentCreatedEvent,
31
+ AgentUpdatedEvent,
32
+ AgentToolAssignedEvent,
33
+ AgentToolRemovedEvent,
34
+ } from './agent.event';
35
+
36
+ // Entities
37
+ export {
38
+ AgentStatusEntityEnum,
39
+ ModelProviderEntityEnum,
40
+ AgentEntity,
41
+ AgentToolEntity,
42
+ } from './agent.entity';
43
+
44
+ // Presentations
45
+ export {
46
+ AgentListPresentation,
47
+ AgentDetailPresentation,
48
+ AgentConsoleDashboardPresentation,
49
+ } from './agent.presentation';
50
+
51
+ // Handlers
52
+ export {
53
+ mockListAgentsHandler,
54
+ mockGetAgentHandler,
55
+ mockCreateAgentHandler,
56
+ mockUpdateAgentHandler,
57
+ type ListAgentsInput,
58
+ type AgentSummary,
59
+ type ListAgentsOutput,
60
+ type GetAgentInput,
61
+ type AgentToolRef,
62
+ type AgentWithTools,
63
+ } from './agent.handler';
64
+
65
+
@@ -1,55 +1,28 @@
1
1
  /**
2
- * Mock handlers for agent-console example
3
- *
4
- * These handlers provide mock implementations of all contracts
5
- * for use in demos, tests, and the sandbox environment.
2
+ * Agent Console Handlers - re-exports from domain modules for backward compatibility.
6
3
  */
7
4
 
8
- // Mock data
9
- export * from './mock-data';
10
-
11
- // Agent handlers
5
+ // Agent handlers and types
12
6
  export {
13
- mockListAgentsHandler,
14
- mockGetAgentHandler,
15
7
  mockCreateAgentHandler,
16
- mockUpdateAgentHandler,
17
- type ListAgentsInput,
18
- type ListAgentsOutput,
8
+ mockGetAgentHandler,
9
+ mockListAgentsHandler,
19
10
  type AgentSummary,
20
- type GetAgentInput,
21
- type AgentWithTools,
22
- type AgentToolRef,
23
- } from './agent.handlers';
11
+ } from '../agent/agent.handler';
24
12
 
25
- // Tool handlers
13
+ // Run handlers and types
14
+ export {
15
+ mockExecuteAgentHandler,
16
+ mockGetRunHandler,
17
+ mockListRunsHandler,
18
+ type RunSummary,
19
+ } from '../run/run.handler';
20
+
21
+ // Tool handlers and types
26
22
  export {
27
- mockListToolsHandler,
28
- mockGetToolHandler,
29
23
  mockCreateToolHandler,
30
- mockTestToolHandler,
31
- type ListToolsInput,
32
- type ListToolsOutput,
24
+ mockGetToolHandler,
25
+ mockListToolsHandler,
33
26
  type ToolSummary,
34
- type GetToolInput,
35
- type Tool,
36
- } from './tool.handlers';
27
+ } from '../tool/tool.handler';
37
28
 
38
- // Run handlers
39
- export {
40
- mockListRunsHandler,
41
- mockGetRunHandler,
42
- mockGetRunMetricsHandler,
43
- mockExecuteAgentHandler,
44
- mockCancelRunHandler,
45
- type ListRunsInput,
46
- type ListRunsOutput,
47
- type RunSummary,
48
- type GetRunInput,
49
- type Run,
50
- type RunStep,
51
- type RunLog,
52
- type GetRunMetricsInput,
53
- type RunMetrics,
54
- type TimelineDataPoint,
55
- } from './run.handlers';
package/src/index.ts CHANGED
@@ -15,22 +15,13 @@
15
15
  * ```
16
16
  */
17
17
 
18
- // Entity exports
19
- export * from './entities';
20
-
21
- // Contract exports
22
- export * from './contracts';
23
-
24
- // Event exports
25
- export * from './events';
26
-
27
- // Handler exports (for sandbox/demo use)
28
- export * from './handlers';
29
-
30
- // Presentation exports
31
- export * from './presentations';
18
+ // Domain exports
19
+ export * from './agent';
20
+ export * from './run';
21
+ export * from './tool';
22
+ export * from './shared';
32
23
 
33
24
  // Feature spec export
34
- export * from './feature';
25
+ export * from './agent.feature';
35
26
  export { default as example } from './example';
36
27
  import './docs';
@@ -1,48 +1,27 @@
1
1
  /**
2
- * Presentation descriptors for agent-console
3
- *
4
- * These define how data can be rendered across different targets (React, Markdown, JSON).
2
+ * Agent Console Presentations - re-exports from domain modules for backward compatibility.
5
3
  */
6
4
 
7
5
  // Agent presentations
8
- export { AgentListPresentation, AgentDetailPresentation } from './agent-list';
6
+ export {
7
+ AgentListPresentation,
8
+ AgentDetailPresentation,
9
+ AgentConsoleDashboardPresentation,
10
+ } from '../agent/agent.presentation';
9
11
 
10
12
  // Run presentations
11
13
  export {
12
14
  RunListPresentation,
13
15
  RunDetailPresentation,
14
- RunMetricsPresentation,
15
- } from './run-list';
16
+ } from '../run/run.presentation';
17
+ // Alias: RunMetricsPresentation -> RunDetailPresentation (for backward compatibility)
18
+ export { RunDetailPresentation as RunMetricsPresentation } from '../run/run.presentation';
16
19
 
17
20
  // Tool presentations
18
21
  export {
19
- ToolRegistryPresentation,
22
+ ToolListPresentation,
20
23
  ToolDetailPresentation,
21
- } from './tool-registry';
24
+ } from '../tool/tool.presentation';
25
+ // Alias: ToolRegistryPresentation -> ToolListPresentation (for backward compatibility)
26
+ export { ToolListPresentation as ToolRegistryPresentation } from '../tool/tool.presentation';
22
27
 
23
- // Dashboard
24
- export { AgentConsoleDashboardPresentation } from './dashboard';
25
-
26
- // Re-export all presentations as an array for easy registration
27
- import { AgentListPresentation, AgentDetailPresentation } from './agent-list';
28
- import {
29
- RunListPresentation,
30
- RunDetailPresentation,
31
- RunMetricsPresentation,
32
- } from './run-list';
33
- import {
34
- ToolRegistryPresentation,
35
- ToolDetailPresentation,
36
- } from './tool-registry';
37
- import { AgentConsoleDashboardPresentation } from './dashboard';
38
-
39
- export const AgentConsolePresentations = [
40
- AgentConsoleDashboardPresentation,
41
- AgentListPresentation,
42
- AgentDetailPresentation,
43
- RunListPresentation,
44
- RunDetailPresentation,
45
- RunMetricsPresentation,
46
- ToolRegistryPresentation,
47
- ToolDetailPresentation,
48
- ];
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Run domain - Agent execution and monitoring.
3
+ */
4
+
5
+ // Enums
6
+ export { RunStatusEnum, RunStepTypeEnum, LogLevelEnum, GranularityEnum } from './run.enum';
7
+
8
+ // Schema models
9
+ export {
10
+ RunInputModel,
11
+ RunStepModel,
12
+ RunLogModel,
13
+ RunAgentRefModel,
14
+ RunModel,
15
+ RunSummaryModel,
16
+ TimelineDataPointModel,
17
+ } from './run.schema';
18
+
19
+ // Contracts
20
+ export {
21
+ ExecuteAgentCommand,
22
+ CancelRunCommand,
23
+ GetRunQuery,
24
+ ListRunsQuery,
25
+ GetRunStepsQuery,
26
+ GetRunLogsQuery,
27
+ GetRunMetricsQuery,
28
+ } from './run.contracts';
29
+
30
+ // Events
31
+ export {
32
+ RunStartedEvent,
33
+ RunCompletedEvent,
34
+ RunFailedEvent,
35
+ RunCancelledEvent,
36
+ ToolInvokedEvent,
37
+ ToolCompletedEvent,
38
+ MessageGeneratedEvent,
39
+ } from './run.event';
40
+
41
+ // Entities
42
+ export {
43
+ RunStatusEntityEnum,
44
+ RunStepTypeEntityEnum,
45
+ LogLevelEntityEnum,
46
+ RunEntity,
47
+ RunStepEntity,
48
+ RunLogEntity,
49
+ } from './run.entity';
50
+
51
+ // Presentations
52
+ export { RunListPresentation, RunDetailPresentation } from './run.presentation';
53
+
54
+ // Handlers
55
+ export {
56
+ mockListRunsHandler,
57
+ mockGetRunHandler,
58
+ mockExecuteAgentHandler,
59
+ mockCancelRunHandler,
60
+ type ListRunsInput,
61
+ type RunSummary,
62
+ type ListRunsOutput,
63
+ } from './run.handler';
64
+
65
+