plugin-agent-orchestrator 1.1.2 → 1.1.4
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/client/index.js +1 -1
- package/dist/client-v2/214.b063f33ba044a808.js +10 -0
- package/dist/client-v2/253.59577b40d9875be0.js +10 -0
- package/dist/client-v2/264.7ed8bee71fa5935c.js +10 -0
- package/dist/client-v2/{41.ba6e080cc0488143.js → 41.3deb9e57a0f64fc4.js} +1 -1
- package/dist/client-v2/418.58fa350f5496efd3.js +10 -0
- package/dist/client-v2/{53.7c29c28043e9112d.js → 53.9a10455323390f14.js} +1 -1
- package/dist/client-v2/619.0a2144aaffefe018.js +10 -0
- package/dist/client-v2/{70.bda9518881c05360.js → 70.ffff2997c10fd4b0.js} +1 -1
- package/dist/client-v2/{794.9bbb8d3a61b2bdf2.js → 794.a67a2614405ba627.js} +1 -1
- package/dist/client-v2/925.e5925bf21ed68e7a.js +10 -0
- package/dist/client-v2/{993.82778b6fd6db3cb1.js → 993.b0688fdc5ccb000a.js} +1 -1
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +8 -6
- package/dist/locale/en-US.json +48 -28
- package/dist/locale/vi-VN.json +48 -28
- package/dist/locale/zh-CN.json +48 -28
- package/dist/server/collections/agent-execution-spans.js +47 -0
- package/dist/server/collections/agent-harness-profile-versions.js +56 -0
- package/dist/server/collections/agent-harness-profiles.js +12 -0
- package/dist/server/collections/agent-loop-action-approvals.js +68 -0
- package/dist/server/collections/agent-loop-artifacts.js +55 -0
- package/dist/server/collections/agent-loop-circuit-states.js +53 -0
- package/dist/server/collections/agent-loop-control-settings.js +51 -0
- package/dist/server/collections/agent-loop-events.js +27 -0
- package/dist/server/collections/agent-loop-path-locks.js +57 -0
- package/dist/server/collections/agent-loop-patterns.js +72 -0
- package/dist/server/collections/agent-loop-runs.js +163 -2
- package/dist/server/collections/agent-loop-steps.js +69 -0
- package/dist/server/collections/agent-loop-usage-buckets.js +52 -0
- package/dist/server/collections/agent-loop-worktrees.js +55 -0
- package/dist/server/migrations/{20260427000000-change-packages-to-text.js → 20260427000002-change-packages-to-text.js} +2 -0
- package/dist/server/migrations/20260429000000-add-llm-fields.js +3 -2
- package/dist/server/migrations/{20260429000000-fix-inputargs-json-to-text.js → 20260429000001-fix-inputargs-json-to-text.js} +14 -6
- package/dist/server/migrations/20260503000000-add-orchestrator-trace-fields.js +2 -1
- package/dist/server/migrations/20260524000000-add-agent-loop-fields-to-skill-executions.js +2 -1
- package/dist/server/migrations/20260803010000-backfill-loop-control-plane-data.js +262 -0
- package/dist/server/plugin.js +52 -150
- package/dist/server/resources/agent-loop-approval.js +83 -0
- package/dist/server/resources/agent-loop-artifact.js +86 -0
- package/dist/server/resources/agent-loop-events-stream.js +130 -0
- package/dist/server/resources/agent-loop.js +181 -139
- package/dist/server/resources/resource-helpers.js +63 -0
- package/dist/server/resources/tracing.js +121 -107
- package/dist/server/services/DurableCircuitBreakerService.js +229 -0
- package/dist/server/services/HarnessCompiler.js +142 -0
- package/dist/server/services/HarnessProfileService.js +168 -0
- package/dist/server/services/HarnessSchema.js +167 -0
- package/dist/server/services/LoopBudgetService.js +269 -0
- package/dist/server/services/LoopControlService.js +139 -0
- package/dist/server/services/LoopPatternSchema.js +180 -0
- package/dist/server/services/LoopPatternService.js +132 -0
- package/dist/server/services/LoopRunRepository.js +205 -0
- package/dist/server/services/LoopRunStateMachine.js +389 -0
- package/dist/server/services/LoopSchedulerService.js +193 -0
- package/dist/server/services/LoopTriggerService.js +128 -0
- package/dist/server/services/LoopWorkerService.js +461 -0
- package/dist/server/services/PathLockService.js +288 -0
- package/dist/server/services/PluginAiRuntimeAdapter.js +215 -0
- package/dist/server/services/VerificationSchema.js +59 -0
- package/dist/server/services/VerificationService.js +169 -0
- package/dist/server/skill-hub/actions/git-import.js +13 -7
- package/dist/server/skill-hub/services/RegistrySkillSnapshotService.js +1 -5
- package/dist/server/utils/ensure-indexes.js +111 -0
- package/dist/server/utils/loop-pattern-context.js +56 -0
- package/package.json +2 -2
- package/src/client/OrchestratorSettings.tsx +44 -0
- package/src/client-v2/components/AgentRunsTab.tsx +576 -494
- package/src/client-v2/components/HarnessProfilesTab.tsx +13 -8
- package/src/client-v2/components/MemoryInspectorTab.tsx +19 -3
- package/src/client-v2/components/TracingTab.tsx +515 -432
- package/src/client-v2/hooks/useApiRequest.ts +141 -121
- package/src/client-v2/skill-hub/components/SkillMetrics.tsx +8 -6
- package/src/locale/en-US.json +52 -28
- package/src/locale/vi-VN.json +52 -28
- package/src/locale/zh-CN.json +52 -28
- package/src/server/__tests__/circuit-breaker.test.ts +225 -146
- package/src/server/__tests__/harness-compiler.test.ts +131 -0
- package/src/server/__tests__/harness-profile-service.test.ts +116 -0
- package/src/server/__tests__/harness-tool-plan.test.ts +148 -0
- package/src/server/__tests__/loop-budget-service.test.ts +255 -0
- package/src/server/__tests__/loop-control-plane-backfill.test.ts +266 -0
- package/src/server/__tests__/loop-pattern-schema.test.ts +56 -0
- package/src/server/__tests__/loop-pattern-service.test.ts +148 -0
- package/src/server/__tests__/loop-run-state-machine.test.ts +90 -0
- package/src/server/__tests__/loop-worker-claim.test.ts +341 -0
- package/src/server/__tests__/loop-worker-execution.test.ts +236 -0
- package/src/server/__tests__/path-lock-service.test.ts +254 -0
- package/src/server/__tests__/smoke.test.ts +62 -21
- package/src/server/collections/agent-execution-spans.ts +47 -0
- package/src/server/collections/agent-harness-profile-versions.ts +26 -0
- package/src/server/collections/agent-harness-profiles.ts +12 -0
- package/src/server/collections/agent-loop-action-approvals.ts +38 -0
- package/src/server/collections/agent-loop-artifacts.ts +25 -0
- package/src/server/collections/agent-loop-circuit-states.ts +23 -0
- package/src/server/collections/agent-loop-control-settings.ts +21 -0
- package/src/server/collections/agent-loop-events.ts +27 -0
- package/src/server/collections/agent-loop-path-locks.ts +27 -0
- package/src/server/collections/agent-loop-patterns.ts +42 -0
- package/src/server/collections/agent-loop-runs.ts +163 -2
- package/src/server/collections/agent-loop-steps.ts +69 -0
- package/src/server/collections/agent-loop-usage-buckets.ts +22 -0
- package/src/server/collections/agent-loop-worktrees.ts +25 -0
- package/src/server/migrations/{20260427000000-change-packages-to-text.ts → 20260427000002-change-packages-to-text.ts} +3 -0
- package/src/server/migrations/20260429000000-add-llm-fields.ts +3 -2
- package/src/server/migrations/{20260429000000-fix-inputargs-json-to-text.ts → 20260429000001-fix-inputargs-json-to-text.ts} +13 -6
- package/src/server/migrations/20260503000000-add-orchestrator-trace-fields.ts +2 -1
- package/src/server/migrations/20260524000000-add-agent-loop-fields-to-skill-executions.ts +2 -1
- package/src/server/migrations/20260803010000-backfill-loop-control-plane-data.ts +293 -0
- package/src/server/plugin.ts +53 -167
- package/src/server/resources/agent-loop-approval.ts +52 -0
- package/src/server/resources/agent-loop-artifact.ts +56 -0
- package/src/server/resources/agent-loop-events-stream.ts +105 -0
- package/src/server/resources/agent-loop.ts +202 -143
- package/src/server/resources/agent-monitor.ts +482 -482
- package/src/server/resources/resource-helpers.ts +33 -0
- package/src/server/resources/tracing.ts +145 -137
- package/src/server/services/DurableCircuitBreakerService.ts +239 -0
- package/src/server/services/HarnessCompiler.ts +133 -0
- package/src/server/services/HarnessProfileService.ts +157 -0
- package/src/server/services/HarnessSchema.ts +163 -0
- package/src/server/services/LoopBudgetService.ts +275 -0
- package/src/server/services/LoopControlService.ts +124 -0
- package/src/server/services/LoopPatternSchema.ts +167 -0
- package/src/server/services/LoopPatternService.ts +143 -0
- package/src/server/services/LoopRunRepository.ts +237 -0
- package/src/server/services/LoopRunStateMachine.ts +432 -0
- package/src/server/services/LoopSchedulerService.ts +199 -0
- package/src/server/services/LoopTriggerService.ts +115 -0
- package/src/server/services/LoopWorkerService.ts +522 -0
- package/src/server/services/PathLockService.ts +321 -0
- package/src/server/services/PluginAiRuntimeAdapter.ts +315 -0
- package/src/server/services/VerificationSchema.ts +31 -0
- package/src/server/services/VerificationService.ts +185 -0
- package/src/server/skill-hub/actions/__tests__/git-import.test.ts +62 -0
- package/src/server/skill-hub/actions/git-import.ts +9 -3
- package/src/server/skill-hub/services/RegistrySkillSnapshotService.ts +1 -5
- package/src/server/skill-hub/services/__tests__/RegistrySkillSnapshotService.test.ts +1 -3
- package/src/server/utils/ensure-indexes.ts +96 -0
- package/src/server/utils/logging.ts +0 -1
- package/src/server/utils/loop-pattern-context.ts +20 -0
- package/dist/client-v2/214.79650a549273f163.js +0 -10
- package/dist/client-v2/253.9f0537713cee9e6c.js +0 -10
- package/dist/client-v2/264.718a107e43fc163c.js +0 -10
- package/dist/client-v2/418.ce8f5b2b8a229d1d.js +0 -10
- package/dist/client-v2/619.bd3c5698b40705c3.js +0 -10
- package/dist/client-v2/925.f5370de8f6632d65.js +0 -10
- package/dist/server/services/AgentHarness.js +0 -81
- package/dist/server/services/AgentLoopController.js +0 -1023
- package/dist/server/services/AgentLoopRepository.js +0 -192
- package/dist/server/services/AgentLoopService.js +0 -142
- package/dist/server/services/AgentPlanValidator.js +0 -99
- package/dist/server/services/AgentPlannerService.js +0 -99
- package/dist/server/services/CircuitBreaker.js +0 -125
- package/dist/server/services/ContextAggregator.js +0 -201
- package/dist/server/services/PlanningPromptService.js +0 -95
- package/dist/server/tools/agent-loop.js +0 -373
- package/dist/server/tools/orchestrator-plan.js +0 -254
- package/src/server/__tests__/agent-loop-controller.test.ts +0 -375
- package/src/server/__tests__/context-aggregator.test.ts +0 -222
- package/src/server/__tests__/parallel-execution.test.ts +0 -318
- package/src/server/__tests__/planning-prompt-service.test.ts +0 -23
- package/src/server/services/AgentHarness.ts +0 -67
- package/src/server/services/AgentLoopController.ts +0 -1263
- package/src/server/services/AgentLoopRepository.ts +0 -178
- package/src/server/services/AgentLoopService.ts +0 -177
- package/src/server/services/AgentPlanValidator.ts +0 -73
- package/src/server/services/AgentPlannerService.ts +0 -80
- package/src/server/services/CircuitBreaker.ts +0 -126
- package/src/server/services/ContextAggregator.ts +0 -239
- package/src/server/services/PlanningPromptService.ts +0 -72
- package/src/server/tools/agent-loop.ts +0 -360
- package/src/server/tools/orchestrator-plan.ts +0 -255
|
@@ -1,121 +1,141 @@
|
|
|
1
|
-
import { useApp } from '@nocobase/client-v2';
|
|
2
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* client-v2 adapters for the two data-layer hooks the v1 admin tabs relied on
|
|
6
|
-
* (`useAPIClient` and `useRequest` from `@nocobase/client`). client-v2 exposes
|
|
7
|
-
* neither, so these reimplement just the slice the orchestrator UI uses on top
|
|
8
|
-
* of `useApp().apiClient`, keeping the call sites unchanged.
|
|
9
|
-
*
|
|
10
|
-
* v1 contract preserved here:
|
|
11
|
-
* - `useRequest` resolves `data` to the response BODY (`response.data`), so a
|
|
12
|
-
* list endpoint returning `{ data: rows, meta }` is read as `result.data.data`
|
|
13
|
-
* / `result.data.meta` — identical to the v1 tabs.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
export type ApiRequestService =
|
|
17
|
-
| {
|
|
18
|
-
url: string;
|
|
19
|
-
method?: string;
|
|
20
|
-
params?: Record<string, unknown>;
|
|
21
|
-
data?: unknown;
|
|
22
|
-
}
|
|
23
|
-
| (() => Promise<unknown>);
|
|
24
|
-
|
|
25
|
-
export type ApiRequestOptions = {
|
|
26
|
-
/** Do not fire on mount; caller triggers via `run`. */
|
|
27
|
-
manual?: boolean;
|
|
28
|
-
/** Re-run whenever any dependency changes (mirrors ahooks refreshDeps). */
|
|
29
|
-
refreshDeps?: unknown[];
|
|
30
|
-
onSuccess?: (data: unknown) => void;
|
|
31
|
-
onError?: (error: unknown) => void;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export type ApiRequestResult<TData = unknown> = {
|
|
35
|
-
data: TData | undefined;
|
|
36
|
-
loading: boolean;
|
|
37
|
-
error: unknown;
|
|
38
|
-
refresh: () => void;
|
|
39
|
-
run: (overrideParams?: Record<string, unknown>) => Promise<TData | undefined>;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** Returns the v2 application's API client (replacement for v1 `useAPIClient`). */
|
|
43
|
-
export function useApiClient() {
|
|
44
|
-
return useApp().apiClient;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Minimal `useRequest` replacement. Supports object services
|
|
49
|
-
* (`{ url, method, params }`) and function services, plus `manual`,
|
|
50
|
-
* `refreshDeps`, and `onSuccess`/`onError` — the only options the tabs use.
|
|
51
|
-
*/
|
|
52
|
-
export function useRequest<TData = unknown>(
|
|
53
|
-
service: ApiRequestService,
|
|
54
|
-
options: ApiRequestOptions = {},
|
|
55
|
-
): ApiRequestResult<TData> {
|
|
56
|
-
const api = useApiClient();
|
|
57
|
-
const { manual = false, refreshDeps = [], onSuccess, onError } = options;
|
|
58
|
-
|
|
59
|
-
const [data, setData] = useState<TData | undefined>(undefined);
|
|
60
|
-
const [loading, setLoading] = useState<boolean>(!manual);
|
|
61
|
-
const [error, setError] = useState<unknown>(undefined);
|
|
62
|
-
|
|
63
|
-
// Keep the latest service/callbacks without forcing them into refreshDeps.
|
|
64
|
-
const serviceRef = useRef(service);
|
|
65
|
-
serviceRef.current = service;
|
|
66
|
-
const onSuccessRef = useRef(onSuccess);
|
|
67
|
-
onSuccessRef.current = onSuccess;
|
|
68
|
-
const onErrorRef = useRef(onError);
|
|
69
|
-
onErrorRef.current = onError;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
1
|
+
import { useApp } from '@nocobase/client-v2';
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* client-v2 adapters for the two data-layer hooks the v1 admin tabs relied on
|
|
6
|
+
* (`useAPIClient` and `useRequest` from `@nocobase/client`). client-v2 exposes
|
|
7
|
+
* neither, so these reimplement just the slice the orchestrator UI uses on top
|
|
8
|
+
* of `useApp().apiClient`, keeping the call sites unchanged.
|
|
9
|
+
*
|
|
10
|
+
* v1 contract preserved here:
|
|
11
|
+
* - `useRequest` resolves `data` to the response BODY (`response.data`), so a
|
|
12
|
+
* list endpoint returning `{ data: rows, meta }` is read as `result.data.data`
|
|
13
|
+
* / `result.data.meta` — identical to the v1 tabs.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
export type ApiRequestService =
|
|
17
|
+
| {
|
|
18
|
+
url: string;
|
|
19
|
+
method?: string;
|
|
20
|
+
params?: Record<string, unknown>;
|
|
21
|
+
data?: unknown;
|
|
22
|
+
}
|
|
23
|
+
| (() => Promise<unknown>);
|
|
24
|
+
|
|
25
|
+
export type ApiRequestOptions = {
|
|
26
|
+
/** Do not fire on mount; caller triggers via `run`. */
|
|
27
|
+
manual?: boolean;
|
|
28
|
+
/** Re-run whenever any dependency changes (mirrors ahooks refreshDeps). */
|
|
29
|
+
refreshDeps?: unknown[];
|
|
30
|
+
onSuccess?: (data: unknown) => void;
|
|
31
|
+
onError?: (error: unknown) => void;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type ApiRequestResult<TData = unknown> = {
|
|
35
|
+
data: TData | undefined;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
error: unknown;
|
|
38
|
+
refresh: () => void;
|
|
39
|
+
run: (overrideParams?: Record<string, unknown>) => Promise<TData | undefined>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** Returns the v2 application's API client (replacement for v1 `useAPIClient`). */
|
|
43
|
+
export function useApiClient() {
|
|
44
|
+
return useApp().apiClient;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Minimal `useRequest` replacement. Supports object services
|
|
49
|
+
* (`{ url, method, params }`) and function services, plus `manual`,
|
|
50
|
+
* `refreshDeps`, and `onSuccess`/`onError` — the only options the tabs use.
|
|
51
|
+
*/
|
|
52
|
+
export function useRequest<TData = unknown>(
|
|
53
|
+
service: ApiRequestService,
|
|
54
|
+
options: ApiRequestOptions = {},
|
|
55
|
+
): ApiRequestResult<TData> {
|
|
56
|
+
const api = useApiClient();
|
|
57
|
+
const { manual = false, refreshDeps = [], onSuccess, onError } = options;
|
|
58
|
+
|
|
59
|
+
const [data, setData] = useState<TData | undefined>(undefined);
|
|
60
|
+
const [loading, setLoading] = useState<boolean>(!manual);
|
|
61
|
+
const [error, setError] = useState<unknown>(undefined);
|
|
62
|
+
|
|
63
|
+
// Keep the latest service/callbacks without forcing them into refreshDeps.
|
|
64
|
+
const serviceRef = useRef(service);
|
|
65
|
+
serviceRef.current = service;
|
|
66
|
+
const onSuccessRef = useRef(onSuccess);
|
|
67
|
+
onSuccessRef.current = onSuccess;
|
|
68
|
+
const onErrorRef = useRef(onError);
|
|
69
|
+
onErrorRef.current = onError;
|
|
70
|
+
|
|
71
|
+
// Guards against out-of-order responses and post-unmount state writes.
|
|
72
|
+
// Each `run` claims a monotonically increasing id; only the newest in-flight
|
|
73
|
+
// request is allowed to commit results, and none may commit after unmount.
|
|
74
|
+
const mountedRef = useRef(true);
|
|
75
|
+
const latestRequestId = useRef(0);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
mountedRef.current = true;
|
|
78
|
+
return () => {
|
|
79
|
+
mountedRef.current = false;
|
|
80
|
+
};
|
|
81
|
+
}, []);
|
|
82
|
+
|
|
83
|
+
const run = useCallback(
|
|
84
|
+
async (overrideParams?: Record<string, unknown>): Promise<TData | undefined> => {
|
|
85
|
+
const current = serviceRef.current;
|
|
86
|
+
const requestId = ++latestRequestId.current;
|
|
87
|
+
const isCurrent = () => mountedRef.current && requestId === latestRequestId.current;
|
|
88
|
+
setLoading(true);
|
|
89
|
+
setError(undefined);
|
|
90
|
+
try {
|
|
91
|
+
let body: TData;
|
|
92
|
+
if (typeof current === 'function') {
|
|
93
|
+
body = (await current()) as TData;
|
|
94
|
+
} else {
|
|
95
|
+
const response = await api.request({
|
|
96
|
+
url: current.url,
|
|
97
|
+
method: current.method || 'get',
|
|
98
|
+
params: { ...(current.params || {}), ...(overrideParams || {}) },
|
|
99
|
+
data: current.data,
|
|
100
|
+
});
|
|
101
|
+
const rawData = response?.data;
|
|
102
|
+
body = (
|
|
103
|
+
rawData &&
|
|
104
|
+
typeof rawData === 'object' &&
|
|
105
|
+
rawData.data &&
|
|
106
|
+
typeof rawData.data === 'object' &&
|
|
107
|
+
'data' in rawData.data
|
|
108
|
+
? rawData.data
|
|
109
|
+
: rawData
|
|
110
|
+
) as TData;
|
|
111
|
+
}
|
|
112
|
+
if (!isCurrent()) return undefined;
|
|
113
|
+
setData(body);
|
|
114
|
+
onSuccessRef.current?.(body);
|
|
115
|
+
return body;
|
|
116
|
+
} catch (err) {
|
|
117
|
+
if (!isCurrent()) return undefined;
|
|
118
|
+
setError(err);
|
|
119
|
+
onErrorRef.current?.(err);
|
|
120
|
+
return undefined;
|
|
121
|
+
} finally {
|
|
122
|
+
if (isCurrent()) {
|
|
123
|
+
setLoading(false);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[api],
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
const refresh = useCallback(() => {
|
|
131
|
+
run();
|
|
132
|
+
}, [run]);
|
|
133
|
+
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
if (manual) return;
|
|
136
|
+
run();
|
|
137
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
138
|
+
}, refreshDeps);
|
|
139
|
+
|
|
140
|
+
return { data, loading, error, refresh, run };
|
|
141
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
-
import { Card, Table,
|
|
2
|
+
import { Alert, Card, Table, Space, Row, Col, Statistic, Progress } from 'antd';
|
|
3
3
|
import { SyncOutlined, CheckCircleOutlined, CloseCircleOutlined, ClockCircleOutlined } from '@ant-design/icons';
|
|
4
4
|
import { useApiClient as useAPIClient } from '../../hooks/useApiRequest';
|
|
5
5
|
import { useT } from '../locale';
|
|
6
6
|
|
|
7
|
-
const { Title, Text } = Typography;
|
|
8
|
-
|
|
9
7
|
export const SkillMetrics: React.FC = () => {
|
|
10
8
|
const api = useAPIClient();
|
|
11
9
|
const t = useT();
|
|
12
10
|
const [executions, setExecutions] = useState<any[]>([]);
|
|
13
11
|
const [loading, setLoading] = useState(false);
|
|
12
|
+
const [error, setError] = useState<string | null>(null);
|
|
14
13
|
|
|
15
14
|
const fetchExecutions = useCallback(async () => {
|
|
16
15
|
setLoading(true);
|
|
16
|
+
setError(null);
|
|
17
17
|
try {
|
|
18
18
|
// Fetch up to 1000 recent executions to calculate basic metrics
|
|
19
19
|
const { data } = await api.request({
|
|
@@ -26,12 +26,13 @@ export const SkillMetrics: React.FC = () => {
|
|
|
26
26
|
});
|
|
27
27
|
const rawData = data?.data?.data ?? data?.data ?? [];
|
|
28
28
|
setExecutions(Array.isArray(rawData) ? rawData : []);
|
|
29
|
-
} catch {
|
|
30
|
-
|
|
29
|
+
} catch (err: any) {
|
|
30
|
+
setExecutions([]);
|
|
31
|
+
setError(err?.response?.data?.errors?.[0]?.message || err?.message || t('Failed to load metrics'));
|
|
31
32
|
} finally {
|
|
32
33
|
setLoading(false);
|
|
33
34
|
}
|
|
34
|
-
}, [api]);
|
|
35
|
+
}, [api, t]);
|
|
35
36
|
|
|
36
37
|
useEffect(() => {
|
|
37
38
|
fetchExecutions();
|
|
@@ -103,6 +104,7 @@ export const SkillMetrics: React.FC = () => {
|
|
|
103
104
|
|
|
104
105
|
return (
|
|
105
106
|
<Space direction="vertical" size="large" style={{ width: '100%', padding: '0 16px' }}>
|
|
107
|
+
{error && <Alert type="error" showIcon message={error} />}
|
|
106
108
|
<Row gutter={16}>
|
|
107
109
|
<Col span={6}>
|
|
108
110
|
<Card size="small">
|
package/src/locale/en-US.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Agent Orchestrator": "Agent Orchestrator",
|
|
3
|
-
"Orchestration Rules": "Orchestration Rules",
|
|
4
|
-
"Native Monitor": "Native Monitor",
|
|
5
|
-
"Execution Tracing": "Execution Tracing",
|
|
6
|
-
"Agent Runs": "Agent Runs",
|
|
7
|
-
"Native Agent Runs": "Native Agent Runs",
|
|
8
|
-
"Harness Profiles": "Harness Profiles",
|
|
9
|
-
"Policy Profiles": "Policy Profiles",
|
|
10
|
-
"Skill Hub Definitions": "Skill Hub Definitions",
|
|
11
|
-
"Execution History": "Execution History",
|
|
12
|
-
"Skill Review Settings": "Skill Review Settings",
|
|
13
|
-
"Metrics": "Metrics",
|
|
14
|
-
"Swarm Tracing": "Swarm Tracing",
|
|
15
|
-
"Leader (Orchestrator)": "Leader (Orchestrator)",
|
|
16
|
-
"Sub-Agent": "Sub-Agent",
|
|
17
|
-
"Max Delegation Depth": "Max Delegation Depth",
|
|
18
|
-
"Timeout (ms)": "Timeout (ms)",
|
|
19
|
-
"Enabled": "Enabled",
|
|
20
|
-
"New Rule": "New Rule",
|
|
21
|
-
"Edit Orchestration Rule": "Edit Orchestration Rule",
|
|
22
|
-
"New Orchestration Rule": "New Orchestration Rule",
|
|
23
|
-
"Rule created": "Rule created",
|
|
24
|
-
"Rule updated": "Rule updated",
|
|
25
|
-
"Rule deleted": "Rule deleted",
|
|
26
|
-
"Sub-Agent Conversation": "Sub-Agent Conversation",
|
|
27
|
-
"Task Summary": "Task Summary",
|
|
1
|
+
{
|
|
2
|
+
"Agent Orchestrator": "Agent Orchestrator",
|
|
3
|
+
"Orchestration Rules": "Orchestration Rules",
|
|
4
|
+
"Native Monitor": "Native Monitor",
|
|
5
|
+
"Execution Tracing": "Execution Tracing",
|
|
6
|
+
"Agent Runs": "Agent Runs",
|
|
7
|
+
"Native Agent Runs": "Native Agent Runs",
|
|
8
|
+
"Harness Profiles": "Harness Profiles",
|
|
9
|
+
"Policy Profiles": "Policy Profiles",
|
|
10
|
+
"Skill Hub Definitions": "Skill Hub Definitions",
|
|
11
|
+
"Execution History": "Execution History",
|
|
12
|
+
"Skill Review Settings": "Skill Review Settings",
|
|
13
|
+
"Metrics": "Metrics",
|
|
14
|
+
"Swarm Tracing": "Swarm Tracing",
|
|
15
|
+
"Leader (Orchestrator)": "Leader (Orchestrator)",
|
|
16
|
+
"Sub-Agent": "Sub-Agent",
|
|
17
|
+
"Max Delegation Depth": "Max Delegation Depth",
|
|
18
|
+
"Timeout (ms)": "Timeout (ms)",
|
|
19
|
+
"Enabled": "Enabled",
|
|
20
|
+
"New Rule": "New Rule",
|
|
21
|
+
"Edit Orchestration Rule": "Edit Orchestration Rule",
|
|
22
|
+
"New Orchestration Rule": "New Orchestration Rule",
|
|
23
|
+
"Rule created": "Rule created",
|
|
24
|
+
"Rule updated": "Rule updated",
|
|
25
|
+
"Rule deleted": "Rule deleted",
|
|
26
|
+
"Sub-Agent Conversation": "Sub-Agent Conversation",
|
|
27
|
+
"Task Summary": "Task Summary",
|
|
28
28
|
"Parent Session": "Parent Session",
|
|
29
29
|
"No sub-agent executions yet": "No sub-agent executions yet",
|
|
30
30
|
"Synced {{count}} native runs": "Synced {{count}} native runs",
|
|
@@ -134,17 +134,41 @@
|
|
|
134
134
|
"Memory preview failed": "Memory preview failed",
|
|
135
135
|
"Preview the exact memory context for a user and selected sub-agent before a run. Memory is marked as data, not executable instructions.": "Preview the exact memory context for a user and selected sub-agent before a run. Memory is marked as data, not executable instructions.",
|
|
136
136
|
"User ID": "User ID",
|
|
137
|
+
"User": "User",
|
|
138
|
+
"User is required": "User is required",
|
|
139
|
+
"Select a user": "Select a user",
|
|
137
140
|
"User ID is required": "User ID is required",
|
|
138
141
|
"Build memory preview": "Build memory preview",
|
|
139
142
|
"Final memory context": "Final memory context",
|
|
140
143
|
"Character budget": "Character budget",
|
|
141
144
|
"Applied scopes": "Applied scopes",
|
|
142
145
|
"None": "None",
|
|
146
|
+
"Failed to load metrics": "Failed to load metrics",
|
|
143
147
|
"No memory context matched this preview.": "No memory context matched this preview.",
|
|
144
148
|
"This Skill Hub Git import action does not allow the request method.": "This Skill Hub Git import action does not allow the request method.",
|
|
149
|
+
"repositoryId and rootFolder are required": "repositoryId and rootFolder are required",
|
|
150
|
+
"repositoryId, rootFolder and skills[] are required": "repositoryId, rootFolder and skills[] are required",
|
|
145
151
|
"skills[] must contain non-empty string keys": "skills[] must contain non-empty string keys",
|
|
152
|
+
"Git Manager is not enabled for Skill Hub imports.": "Git Manager is not enabled for Skill Hub imports.",
|
|
153
|
+
"Git Manager must support actor-aware content reads for Skill Hub imports.": "Git Manager must support actor-aware content reads for Skill Hub imports.",
|
|
154
|
+
"A valid user role context is required to import skills from Git Manager.": "A valid user role context is required to import skills from Git Manager.",
|
|
155
|
+
"Git Manager could not read the requested repository content.": "Git Manager could not read the requested repository content.",
|
|
146
156
|
"Selected skills are not listed in the explicit skills.json manifest: {{skills}}": "Selected skills are not listed in the explicit skills.json manifest: {{skills}}",
|
|
147
157
|
"Git skill contains more than {{count}} supplemental Markdown files.": "Git skill contains more than {{count}} supplemental Markdown files.",
|
|
148
158
|
"Git skill contains a supplemental Markdown file with an invalid size.": "Git skill contains a supplemental Markdown file with an invalid size.",
|
|
149
|
-
"Git skill supplemental Markdown exceeds {{maxBytes}} bytes.": "Git skill supplemental Markdown exceeds {{maxBytes}} bytes."
|
|
159
|
+
"Git skill supplemental Markdown exceeds {{maxBytes}} bytes.": "Git skill supplemental Markdown exceeds {{maxBytes}} bytes.",
|
|
160
|
+
"Depth": "Depth",
|
|
161
|
+
"{{count}} executions": "{{count}} executions",
|
|
162
|
+
"No executions match the current filters": "No executions match the current filters",
|
|
163
|
+
"No delegation executions yet": "No delegation executions yet",
|
|
164
|
+
"Execution Detail": "Execution Detail",
|
|
165
|
+
"No task description": "No task description",
|
|
166
|
+
"No result": "No result",
|
|
167
|
+
"Skill execution #{{id}}": "Skill execution #{{id}}",
|
|
168
|
+
"Raw messages ({{count}})": "Raw messages ({{count}})",
|
|
169
|
+
"Failed to load execution detail": "Failed to load execution detail",
|
|
170
|
+
"success": "Success",
|
|
171
|
+
"error": "Error",
|
|
172
|
+
"running": "Running",
|
|
173
|
+
"Failed to load run detail": "Failed to load run detail"
|
|
150
174
|
}
|
package/src/locale/vi-VN.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Agent Orchestrator": "Điều phối Agent",
|
|
3
|
-
"Orchestration Rules": "Quy tắc điều phối",
|
|
4
|
-
"Native Monitor": "Giám sát native",
|
|
5
|
-
"Execution Tracing": "Truy vết thực thi",
|
|
6
|
-
"Agent Runs": "Lượt chạy Agent",
|
|
7
|
-
"Native Agent Runs": "Lượt chạy Agent native",
|
|
8
|
-
"Harness Profiles": "Hồ sơ Harness",
|
|
9
|
-
"Policy Profiles": "Hồ sơ chính sách",
|
|
10
|
-
"Skill Hub Definitions": "Định nghĩa Skill Hub",
|
|
11
|
-
"Execution History": "Lịch sử thực thi",
|
|
12
|
-
"Skill Review Settings": "Cài đặt duyệt Skill",
|
|
13
|
-
"Metrics": "Số liệu",
|
|
14
|
-
"Swarm Tracing": "Truy vết Swarm",
|
|
15
|
-
"Leader (Orchestrator)": "Leader (Điều phối viên)",
|
|
16
|
-
"Sub-Agent": "Agent con",
|
|
17
|
-
"Max Delegation Depth": "Độ sâu ủy quyền tối đa",
|
|
18
|
-
"Timeout (ms)": "Thời gian chờ (ms)",
|
|
19
|
-
"Enabled": "Bật",
|
|
20
|
-
"New Rule": "Quy tắc mới",
|
|
21
|
-
"Edit Orchestration Rule": "Sửa quy tắc điều phối",
|
|
22
|
-
"New Orchestration Rule": "Quy tắc điều phối mới",
|
|
23
|
-
"Rule created": "Đã tạo quy tắc",
|
|
24
|
-
"Rule updated": "Đã cập nhật quy tắc",
|
|
25
|
-
"Rule deleted": "Đã xóa quy tắc",
|
|
26
|
-
"Sub-Agent Conversation": "Hội thoại Agent con",
|
|
27
|
-
"Task Summary": "Tóm tắt nhiệm vụ",
|
|
1
|
+
{
|
|
2
|
+
"Agent Orchestrator": "Điều phối Agent",
|
|
3
|
+
"Orchestration Rules": "Quy tắc điều phối",
|
|
4
|
+
"Native Monitor": "Giám sát native",
|
|
5
|
+
"Execution Tracing": "Truy vết thực thi",
|
|
6
|
+
"Agent Runs": "Lượt chạy Agent",
|
|
7
|
+
"Native Agent Runs": "Lượt chạy Agent native",
|
|
8
|
+
"Harness Profiles": "Hồ sơ Harness",
|
|
9
|
+
"Policy Profiles": "Hồ sơ chính sách",
|
|
10
|
+
"Skill Hub Definitions": "Định nghĩa Skill Hub",
|
|
11
|
+
"Execution History": "Lịch sử thực thi",
|
|
12
|
+
"Skill Review Settings": "Cài đặt duyệt Skill",
|
|
13
|
+
"Metrics": "Số liệu",
|
|
14
|
+
"Swarm Tracing": "Truy vết Swarm",
|
|
15
|
+
"Leader (Orchestrator)": "Leader (Điều phối viên)",
|
|
16
|
+
"Sub-Agent": "Agent con",
|
|
17
|
+
"Max Delegation Depth": "Độ sâu ủy quyền tối đa",
|
|
18
|
+
"Timeout (ms)": "Thời gian chờ (ms)",
|
|
19
|
+
"Enabled": "Bật",
|
|
20
|
+
"New Rule": "Quy tắc mới",
|
|
21
|
+
"Edit Orchestration Rule": "Sửa quy tắc điều phối",
|
|
22
|
+
"New Orchestration Rule": "Quy tắc điều phối mới",
|
|
23
|
+
"Rule created": "Đã tạo quy tắc",
|
|
24
|
+
"Rule updated": "Đã cập nhật quy tắc",
|
|
25
|
+
"Rule deleted": "Đã xóa quy tắc",
|
|
26
|
+
"Sub-Agent Conversation": "Hội thoại Agent con",
|
|
27
|
+
"Task Summary": "Tóm tắt nhiệm vụ",
|
|
28
28
|
"Parent Session": "Phiên gốc",
|
|
29
29
|
"No sub-agent executions yet": "Chưa có lượt thực thi agent con nào",
|
|
30
30
|
"Synced {{count}} native runs": "Đã đồng bộ {{count}} lượt chạy native",
|
|
@@ -134,17 +134,41 @@
|
|
|
134
134
|
"Memory preview failed": "Tạo bản xem trước bộ nhớ thất bại",
|
|
135
135
|
"Preview the exact memory context for a user and selected sub-agent before a run. Memory is marked as data, not executable instructions.": "Xem trước đúng context bộ nhớ cho người dùng và agent con trước khi chạy. Bộ nhớ được đánh dấu là dữ liệu, không phải chỉ dẫn có thể thực thi.",
|
|
136
136
|
"User ID": "ID người dùng",
|
|
137
|
+
"User": "Người dùng",
|
|
138
|
+
"User is required": "Bắt buộc chọn người dùng",
|
|
139
|
+
"Select a user": "Chọn người dùng",
|
|
137
140
|
"User ID is required": "Bắt buộc nhập ID người dùng",
|
|
138
141
|
"Build memory preview": "Tạo xem trước bộ nhớ",
|
|
139
142
|
"Final memory context": "Context bộ nhớ cuối cùng",
|
|
140
143
|
"Character budget": "Ngân sách ký tự",
|
|
141
144
|
"Applied scopes": "Phạm vi đã áp dụng",
|
|
142
145
|
"None": "Không có",
|
|
146
|
+
"Failed to load metrics": "Không tải được số liệu",
|
|
143
147
|
"No memory context matched this preview.": "Không có context bộ nhớ phù hợp với bản xem trước này.",
|
|
144
148
|
"This Skill Hub Git import action does not allow the request method.": "Thao tác nhập Git của Skill Hub không cho phép phương thức yêu cầu này.",
|
|
149
|
+
"repositoryId and rootFolder are required": "Cần có repositoryId và rootFolder.",
|
|
150
|
+
"repositoryId, rootFolder and skills[] are required": "Cần có repositoryId, rootFolder và skills[].",
|
|
145
151
|
"skills[] must contain non-empty string keys": "skills[] chỉ được chứa các khóa chuỗi không rỗng.",
|
|
152
|
+
"Git Manager is not enabled for Skill Hub imports.": "Git Manager chưa được bật cho việc nhập Skill Hub.",
|
|
153
|
+
"Git Manager must support actor-aware content reads for Skill Hub imports.": "Git Manager phải hỗ trợ đọc nội dung theo ngữ cảnh người dùng để nhập Skill Hub.",
|
|
154
|
+
"A valid user role context is required to import skills from Git Manager.": "Cần ngữ cảnh vai trò người dùng hợp lệ để nhập skill từ Git Manager.",
|
|
155
|
+
"Git Manager could not read the requested repository content.": "Git Manager không thể đọc nội dung repository được yêu cầu.",
|
|
146
156
|
"Selected skills are not listed in the explicit skills.json manifest: {{skills}}": "Các skill được chọn không có trong manifest skills.json tường minh: {{skills}}",
|
|
147
157
|
"Git skill contains more than {{count}} supplemental Markdown files.": "Skill Git chứa hơn {{count}} tệp Markdown bổ sung.",
|
|
148
158
|
"Git skill contains a supplemental Markdown file with an invalid size.": "Skill Git có một tệp Markdown bổ sung với kích thước không hợp lệ.",
|
|
149
|
-
"Git skill supplemental Markdown exceeds {{maxBytes}} bytes.": "Markdown bổ sung của skill Git vượt quá {{maxBytes}} byte."
|
|
159
|
+
"Git skill supplemental Markdown exceeds {{maxBytes}} bytes.": "Markdown bổ sung của skill Git vượt quá {{maxBytes}} byte.",
|
|
160
|
+
"Depth": "Độ sâu",
|
|
161
|
+
"{{count}} executions": "{{count}} lần thực thi",
|
|
162
|
+
"No executions match the current filters": "Không có lần thực thi nào khớp với bộ lọc hiện tại",
|
|
163
|
+
"No delegation executions yet": "Chưa có lần thực thi ủy quyền nào",
|
|
164
|
+
"Execution Detail": "Chi tiết thực thi",
|
|
165
|
+
"No task description": "Không có mô tả nhiệm vụ",
|
|
166
|
+
"No result": "Không có kết quả",
|
|
167
|
+
"Skill execution #{{id}}": "Thực thi kỹ năng #{{id}}",
|
|
168
|
+
"Raw messages ({{count}})": "Tin nhắn thô ({{count}})",
|
|
169
|
+
"Failed to load execution detail": "Không thể tải chi tiết thực thi",
|
|
170
|
+
"success": "Thành công",
|
|
171
|
+
"error": "Lỗi",
|
|
172
|
+
"running": "Đang chạy",
|
|
173
|
+
"Failed to load run detail": "Không thể tải chi tiết lần chạy"
|
|
150
174
|
}
|
package/src/locale/zh-CN.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Agent Orchestrator": "智能体编排",
|
|
3
|
-
"Orchestration Rules": "编排规则",
|
|
4
|
-
"Native Monitor": "原生监控",
|
|
5
|
-
"Execution Tracing": "执行追踪",
|
|
6
|
-
"Agent Runs": "智能体运行",
|
|
7
|
-
"Native Agent Runs": "原生智能体运行",
|
|
8
|
-
"Harness Profiles": "Harness 配置",
|
|
9
|
-
"Policy Profiles": "策略配置",
|
|
10
|
-
"Skill Hub Definitions": "技能中心定义",
|
|
11
|
-
"Execution History": "执行历史",
|
|
12
|
-
"Skill Review Settings": "技能审核设置",
|
|
13
|
-
"Metrics": "指标",
|
|
14
|
-
"Swarm Tracing": "集群追踪",
|
|
15
|
-
"Leader (Orchestrator)": "主控(编排者)",
|
|
16
|
-
"Sub-Agent": "子智能体",
|
|
17
|
-
"Max Delegation Depth": "最大委派深度",
|
|
18
|
-
"Timeout (ms)": "超时时间(毫秒)",
|
|
19
|
-
"Enabled": "已启用",
|
|
20
|
-
"New Rule": "新建规则",
|
|
21
|
-
"Edit Orchestration Rule": "编辑编排规则",
|
|
22
|
-
"New Orchestration Rule": "新建编排规则",
|
|
23
|
-
"Rule created": "规则已创建",
|
|
24
|
-
"Rule updated": "规则已更新",
|
|
25
|
-
"Rule deleted": "规则已删除",
|
|
26
|
-
"Sub-Agent Conversation": "子智能体对话",
|
|
27
|
-
"Task Summary": "任务摘要",
|
|
1
|
+
{
|
|
2
|
+
"Agent Orchestrator": "智能体编排",
|
|
3
|
+
"Orchestration Rules": "编排规则",
|
|
4
|
+
"Native Monitor": "原生监控",
|
|
5
|
+
"Execution Tracing": "执行追踪",
|
|
6
|
+
"Agent Runs": "智能体运行",
|
|
7
|
+
"Native Agent Runs": "原生智能体运行",
|
|
8
|
+
"Harness Profiles": "Harness 配置",
|
|
9
|
+
"Policy Profiles": "策略配置",
|
|
10
|
+
"Skill Hub Definitions": "技能中心定义",
|
|
11
|
+
"Execution History": "执行历史",
|
|
12
|
+
"Skill Review Settings": "技能审核设置",
|
|
13
|
+
"Metrics": "指标",
|
|
14
|
+
"Swarm Tracing": "集群追踪",
|
|
15
|
+
"Leader (Orchestrator)": "主控(编排者)",
|
|
16
|
+
"Sub-Agent": "子智能体",
|
|
17
|
+
"Max Delegation Depth": "最大委派深度",
|
|
18
|
+
"Timeout (ms)": "超时时间(毫秒)",
|
|
19
|
+
"Enabled": "已启用",
|
|
20
|
+
"New Rule": "新建规则",
|
|
21
|
+
"Edit Orchestration Rule": "编辑编排规则",
|
|
22
|
+
"New Orchestration Rule": "新建编排规则",
|
|
23
|
+
"Rule created": "规则已创建",
|
|
24
|
+
"Rule updated": "规则已更新",
|
|
25
|
+
"Rule deleted": "规则已删除",
|
|
26
|
+
"Sub-Agent Conversation": "子智能体对话",
|
|
27
|
+
"Task Summary": "任务摘要",
|
|
28
28
|
"Parent Session": "父会话",
|
|
29
29
|
"No sub-agent executions yet": "暂无子智能体执行记录",
|
|
30
30
|
"Synced {{count}} native runs": "已同步 {{count}} 条原生运行",
|
|
@@ -134,17 +134,41 @@
|
|
|
134
134
|
"Memory preview failed": "记忆预览失败",
|
|
135
135
|
"Preview the exact memory context for a user and selected sub-agent before a run. Memory is marked as data, not executable instructions.": "在运行前预览用户和所选子智能体的准确记忆上下文。记忆被标记为数据,而非可执行指令。",
|
|
136
136
|
"User ID": "用户 ID",
|
|
137
|
+
"User": "用户",
|
|
138
|
+
"User is required": "必须选择用户",
|
|
139
|
+
"Select a user": "选择用户",
|
|
137
140
|
"User ID is required": "必须填写用户 ID",
|
|
138
141
|
"Build memory preview": "生成记忆预览",
|
|
139
142
|
"Final memory context": "最终记忆上下文",
|
|
140
143
|
"Character budget": "字符预算",
|
|
141
144
|
"Applied scopes": "已应用范围",
|
|
142
145
|
"None": "无",
|
|
146
|
+
"Failed to load metrics": "加载指标失败",
|
|
143
147
|
"No memory context matched this preview.": "没有匹配此预览的记忆上下文。",
|
|
144
148
|
"This Skill Hub Git import action does not allow the request method.": "此 Skill Hub Git 导入操作不允许该请求方法。",
|
|
149
|
+
"repositoryId and rootFolder are required": "必须提供 repositoryId 和 rootFolder。",
|
|
150
|
+
"repositoryId, rootFolder and skills[] are required": "必须提供 repositoryId、rootFolder 和 skills[]。",
|
|
145
151
|
"skills[] must contain non-empty string keys": "skills[] 必须只包含非空字符串键。",
|
|
152
|
+
"Git Manager is not enabled for Skill Hub imports.": "Git Manager 未启用,无法导入 Skill Hub。",
|
|
153
|
+
"Git Manager must support actor-aware content reads for Skill Hub imports.": "Git Manager 必须支持基于用户身份读取内容,才能导入 Skill Hub。",
|
|
154
|
+
"A valid user role context is required to import skills from Git Manager.": "从 Git Manager 导入技能需要有效的用户角色上下文。",
|
|
155
|
+
"Git Manager could not read the requested repository content.": "Git Manager 无法读取请求的仓库内容。",
|
|
146
156
|
"Selected skills are not listed in the explicit skills.json manifest: {{skills}}": "所选技能不在显式 skills.json 清单中:{{skills}}",
|
|
147
157
|
"Git skill contains more than {{count}} supplemental Markdown files.": "Git 技能包含超过 {{count}} 个补充 Markdown 文件。",
|
|
148
158
|
"Git skill contains a supplemental Markdown file with an invalid size.": "Git 技能包含大小无效的补充 Markdown 文件。",
|
|
149
|
-
"Git skill supplemental Markdown exceeds {{maxBytes}} bytes.": "Git 技能的补充 Markdown 超过 {{maxBytes}} 字节。"
|
|
159
|
+
"Git skill supplemental Markdown exceeds {{maxBytes}} bytes.": "Git 技能的补充 Markdown 超过 {{maxBytes}} 字节。",
|
|
160
|
+
"Depth": "深度",
|
|
161
|
+
"{{count}} executions": "{{count}} 次执行",
|
|
162
|
+
"No executions match the current filters": "没有符合当前筛选条件的执行记录",
|
|
163
|
+
"No delegation executions yet": "暂无委派执行记录",
|
|
164
|
+
"Execution Detail": "执行详情",
|
|
165
|
+
"No task description": "无任务描述",
|
|
166
|
+
"No result": "无结果",
|
|
167
|
+
"Skill execution #{{id}}": "技能执行 #{{id}}",
|
|
168
|
+
"Raw messages ({{count}})": "原始消息({{count}})",
|
|
169
|
+
"Failed to load execution detail": "加载执行详情失败",
|
|
170
|
+
"success": "成功",
|
|
171
|
+
"error": "错误",
|
|
172
|
+
"running": "运行中",
|
|
173
|
+
"Failed to load run detail": "加载运行详情失败"
|
|
150
174
|
}
|