plugin-agent-orchestrator 1.0.19 → 1.0.21

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/dist/client/hooks/useRunEventStream.d.ts +22 -0
  2. package/dist/client/index.d.ts +1 -0
  3. package/dist/client/index.js +1 -1
  4. package/dist/externalVersion.js +6 -6
  5. package/dist/server/collections/agent-execution-spans.js +24 -0
  6. package/dist/server/collections/agent-loop-runs.js +36 -0
  7. package/dist/server/collections/orchestrator-config.js +14 -0
  8. package/dist/server/migrations/20260601000000-add-token-fields.d.ts +7 -0
  9. package/dist/server/migrations/20260601000000-add-token-fields.js +101 -0
  10. package/dist/server/plugin.js +47 -0
  11. package/dist/server/resources/agent-loop.js +33 -25
  12. package/dist/server/resources/tracing.js +5 -8
  13. package/dist/server/services/AgentHarness.d.ts +2 -0
  14. package/dist/server/services/AgentHarness.js +56 -90
  15. package/dist/server/services/AgentLoopController.d.ts +33 -20
  16. package/dist/server/services/AgentLoopController.js +164 -125
  17. package/dist/server/services/AgentLoopRepository.js +16 -34
  18. package/dist/server/services/AgentLoopService.d.ts +28 -18
  19. package/dist/server/services/AgentLoopService.js +7 -1
  20. package/dist/server/services/AgentPlannerService.js +5 -25
  21. package/dist/server/services/AgentRegistryService.d.ts +8 -0
  22. package/dist/server/services/AgentRegistryService.js +34 -24
  23. package/dist/server/services/CircuitBreaker.d.ts +40 -0
  24. package/dist/server/services/CircuitBreaker.js +120 -0
  25. package/dist/server/services/ContextAggregator.d.ts +45 -0
  26. package/dist/server/services/ContextAggregator.js +201 -0
  27. package/dist/server/services/ExecutionSpanService.js +2 -5
  28. package/dist/server/services/RunEventBus.d.ts +9 -0
  29. package/dist/server/services/RunEventBus.js +73 -0
  30. package/dist/server/services/TokenTracker.d.ts +62 -0
  31. package/dist/server/services/TokenTracker.js +173 -0
  32. package/dist/server/skill-hub/plugin.js +6 -6
  33. package/dist/server/skill-hub/tasks/SkillExecutionTask.js +6 -6
  34. package/dist/server/tools/agent-loop.d.ts +8 -8
  35. package/dist/server/tools/agent-loop.js +30 -63
  36. package/dist/server/tools/delegate-task.js +14 -72
  37. package/dist/server/tools/orchestrator-plan.d.ts +6 -6
  38. package/dist/server/tools/orchestrator-plan.js +10 -47
  39. package/dist/server/types.d.ts +47 -0
  40. package/dist/server/types.js +24 -0
  41. package/dist/server/utils/ctx-utils.d.ts +30 -0
  42. package/dist/server/utils/ctx-utils.js +152 -0
  43. package/dist/server/utils/logging.d.ts +6 -0
  44. package/dist/server/utils/logging.js +86 -0
  45. package/package.json +44 -44
  46. package/src/client/AgentRunsTab.tsx +764 -764
  47. package/src/client/HarnessProfilesTab.tsx +247 -247
  48. package/src/client/OrchestratorSettings.tsx +106 -106
  49. package/src/client/RulesTab.tsx +716 -716
  50. package/src/client/hooks/useRunEventStream.ts +76 -0
  51. package/src/client/index.tsx +2 -1
  52. package/src/client/plugin.tsx +27 -27
  53. package/src/client/skill-hub/components/LoopSettings.tsx +331 -331
  54. package/src/client/skill-hub/index.tsx +51 -51
  55. package/src/client/skill-hub/tools/InteractionSchemasProvider.tsx +99 -99
  56. package/src/client/skill-hub/tools/SkillHubCard.tsx +109 -109
  57. package/src/client/skill-hub/tools/loopTemplates.ts +52 -52
  58. package/src/client/skill-hub/tools/registerSkillLoopCards.ts +58 -58
  59. package/src/client/tools/PlanApprovalCard.tsx +175 -175
  60. package/src/client/tools/registerOrchestratorCards.ts +7 -7
  61. package/src/server/__tests__/agent-loop-controller.test.ts +375 -0
  62. package/src/server/__tests__/circuit-breaker.test.ts +169 -0
  63. package/src/server/__tests__/context-aggregator.test.ts +222 -0
  64. package/src/server/__tests__/parallel-execution.test.ts +318 -0
  65. package/src/server/__tests__/smoke.test.ts +120 -0
  66. package/src/server/collections/agent-execution-spans.ts +24 -0
  67. package/src/server/collections/agent-harness-profiles.ts +59 -59
  68. package/src/server/collections/agent-loop-events.ts +71 -71
  69. package/src/server/collections/agent-loop-runs.ts +38 -1
  70. package/src/server/collections/agent-loop-steps.ts +144 -144
  71. package/src/server/collections/orchestrator-config.ts +14 -0
  72. package/src/server/collections/skill-executions.ts +106 -106
  73. package/src/server/collections/skill-loop-configs.ts +65 -65
  74. package/src/server/migrations/20260524000000-add-agent-loop-fields-to-skill-executions.ts +30 -30
  75. package/src/server/migrations/20260524001000-add-plan-approval-and-harness-profiles.ts +142 -142
  76. package/src/server/migrations/20260601000000-add-token-fields.ts +89 -0
  77. package/src/server/plugin.ts +53 -0
  78. package/src/server/resources/agent-loop.ts +21 -12
  79. package/src/server/resources/tracing.ts +3 -7
  80. package/src/server/services/AgentHarness.ts +78 -116
  81. package/src/server/services/AgentLoopController.ts +197 -122
  82. package/src/server/services/AgentLoopRepository.ts +9 -25
  83. package/src/server/services/AgentLoopService.ts +13 -1
  84. package/src/server/services/AgentPlanValidator.ts +73 -73
  85. package/src/server/services/AgentPlannerService.ts +2 -25
  86. package/src/server/services/AgentRegistryService.ts +40 -31
  87. package/src/server/services/CircuitBreaker.ts +116 -0
  88. package/src/server/services/ContextAggregator.ts +239 -0
  89. package/src/server/services/ExecutionSpanService.ts +2 -4
  90. package/src/server/services/RunEventBus.ts +45 -0
  91. package/src/server/services/TokenTracker.ts +209 -0
  92. package/src/server/skill-hub/plugin.ts +898 -897
  93. package/src/server/skill-hub/tasks/SkillExecutionTask.ts +460 -458
  94. package/src/server/tools/agent-loop.ts +18 -57
  95. package/src/server/tools/delegate-task.ts +11 -93
  96. package/src/server/tools/orchestrator-plan.ts +26 -50
  97. package/src/server/tools/skill-execute.ts +160 -160
  98. package/src/server/types.ts +55 -0
  99. package/src/server/utils/ctx-utils.ts +118 -0
  100. package/src/server/utils/logging.ts +63 -0
@@ -1,106 +1,106 @@
1
- import React from 'react';
2
- import { Tabs } from 'antd';
3
- import {
4
- ApartmentOutlined,
5
- BarChartOutlined,
6
- CheckCircleOutlined,
7
- CodeOutlined,
8
- HistoryOutlined,
9
- MonitorOutlined,
10
- ProfileOutlined,
11
- SettingOutlined,
12
- } from '@ant-design/icons';
13
- import { RulesTab } from './RulesTab';
14
- import { TracingTab } from './TracingTab';
15
- import { AgentRunsTab } from './AgentRunsTab';
16
- import { HarnessProfilesTab } from './HarnessProfilesTab';
17
- import { AIEmployeesProvider } from './AIEmployeesContext';
18
- import { SkillManager, ExecutionHistory, SkillMetrics, LoopSettings } from './skill-hub';
19
-
20
- const OrchestratorSettings: React.FC = () => {
21
- return (
22
- <AIEmployeesProvider>
23
- <div style={{ padding: '0 24px 24px' }}>
24
- <Tabs
25
- defaultActiveKey="rules"
26
- items={[
27
- {
28
- key: 'rules',
29
- label: (
30
- <span>
31
- <ApartmentOutlined /> Orchestration Rules
32
- </span>
33
- ),
34
- children: <RulesTab />,
35
- },
36
- {
37
- key: 'tracing',
38
- label: (
39
- <span>
40
- <MonitorOutlined /> Execution Tracing
41
- </span>
42
- ),
43
- children: <TracingTab />,
44
- },
45
- {
46
- key: 'agent-runs',
47
- label: (
48
- <span>
49
- <ProfileOutlined /> Agent Runs
50
- </span>
51
- ),
52
- children: <AgentRunsTab />,
53
- },
54
- {
55
- key: 'harness-profiles',
56
- label: (
57
- <span>
58
- <SettingOutlined /> Harness Profiles
59
- </span>
60
- ),
61
- children: <HarnessProfilesTab />,
62
- },
63
- {
64
- key: 'skill-definitions',
65
- label: (
66
- <span>
67
- <CodeOutlined /> Skill Hub Definitions
68
- </span>
69
- ),
70
- children: <SkillManager />,
71
- },
72
- {
73
- key: 'skill-executions',
74
- label: (
75
- <span>
76
- <HistoryOutlined /> Execution History
77
- </span>
78
- ),
79
- children: <ExecutionHistory />,
80
- },
81
- {
82
- key: 'skill-loop-settings',
83
- label: (
84
- <span>
85
- <CheckCircleOutlined /> Skill Review Settings
86
- </span>
87
- ),
88
- children: <LoopSettings />,
89
- },
90
- {
91
- key: 'skill-metrics',
92
- label: (
93
- <span>
94
- <BarChartOutlined /> Metrics
95
- </span>
96
- ),
97
- children: <SkillMetrics />,
98
- },
99
- ]}
100
- />
101
- </div>
102
- </AIEmployeesProvider>
103
- );
104
- };
105
-
106
- export { OrchestratorSettings };
1
+ import React from 'react';
2
+ import { Tabs } from 'antd';
3
+ import {
4
+ ApartmentOutlined,
5
+ BarChartOutlined,
6
+ CheckCircleOutlined,
7
+ CodeOutlined,
8
+ HistoryOutlined,
9
+ MonitorOutlined,
10
+ ProfileOutlined,
11
+ SettingOutlined,
12
+ } from '@ant-design/icons';
13
+ import { RulesTab } from './RulesTab';
14
+ import { TracingTab } from './TracingTab';
15
+ import { AgentRunsTab } from './AgentRunsTab';
16
+ import { HarnessProfilesTab } from './HarnessProfilesTab';
17
+ import { AIEmployeesProvider } from './AIEmployeesContext';
18
+ import { SkillManager, ExecutionHistory, SkillMetrics, LoopSettings } from './skill-hub';
19
+
20
+ const OrchestratorSettings: React.FC = () => {
21
+ return (
22
+ <AIEmployeesProvider>
23
+ <div style={{ padding: '0 24px 24px' }}>
24
+ <Tabs
25
+ defaultActiveKey="rules"
26
+ items={[
27
+ {
28
+ key: 'rules',
29
+ label: (
30
+ <span>
31
+ <ApartmentOutlined /> Orchestration Rules
32
+ </span>
33
+ ),
34
+ children: <RulesTab />,
35
+ },
36
+ {
37
+ key: 'tracing',
38
+ label: (
39
+ <span>
40
+ <MonitorOutlined /> Execution Tracing
41
+ </span>
42
+ ),
43
+ children: <TracingTab />,
44
+ },
45
+ {
46
+ key: 'agent-runs',
47
+ label: (
48
+ <span>
49
+ <ProfileOutlined /> Agent Runs
50
+ </span>
51
+ ),
52
+ children: <AgentRunsTab />,
53
+ },
54
+ {
55
+ key: 'harness-profiles',
56
+ label: (
57
+ <span>
58
+ <SettingOutlined /> Harness Profiles
59
+ </span>
60
+ ),
61
+ children: <HarnessProfilesTab />,
62
+ },
63
+ {
64
+ key: 'skill-definitions',
65
+ label: (
66
+ <span>
67
+ <CodeOutlined /> Skill Hub Definitions
68
+ </span>
69
+ ),
70
+ children: <SkillManager />,
71
+ },
72
+ {
73
+ key: 'skill-executions',
74
+ label: (
75
+ <span>
76
+ <HistoryOutlined /> Execution History
77
+ </span>
78
+ ),
79
+ children: <ExecutionHistory />,
80
+ },
81
+ {
82
+ key: 'skill-loop-settings',
83
+ label: (
84
+ <span>
85
+ <CheckCircleOutlined /> Skill Review Settings
86
+ </span>
87
+ ),
88
+ children: <LoopSettings />,
89
+ },
90
+ {
91
+ key: 'skill-metrics',
92
+ label: (
93
+ <span>
94
+ <BarChartOutlined /> Metrics
95
+ </span>
96
+ ),
97
+ children: <SkillMetrics />,
98
+ },
99
+ ]}
100
+ />
101
+ </div>
102
+ </AIEmployeesProvider>
103
+ );
104
+ };
105
+
106
+ export { OrchestratorSettings };