plugin-agent-orchestrator 1.1.8 → 1.2.1
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/LICENSE +201 -0
- package/README.md +207 -204
- package/client-v2.d.ts +2 -2
- package/client-v2.js +1 -1
- package/client.d.ts +2 -2
- package/client.js +1 -1
- package/dist/client/117.6c69b6a87751dd18.js +10 -0
- package/dist/client/253.52f62e1bc0e9520a.js +10 -0
- package/dist/client/325.8f7f509bdb35e142.js +10 -0
- package/dist/client/404.86593f98c9768ed5.js +10 -0
- package/dist/client/453.fa2d169576262213.js +10 -0
- package/dist/client/53.567db3ae078650c6.js +10 -0
- package/dist/client/619.01713281e5e951d3.js +10 -0
- package/dist/client/652.69da1598312b3a3f.js +10 -0
- package/dist/client/773.648965568ff476f9.js +10 -0
- package/dist/client/981.37e7aeecdb1ef6fa.js +10 -0
- package/dist/client/993.ac89f3852990918d.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/117.c982d79ff68738f5.js +10 -0
- package/dist/client-v2/214.94c4257bf2838577.js +10 -0
- package/dist/client-v2/253.8e19956d2a44dfb8.js +10 -0
- package/dist/client-v2/264.80e8e358c8c6c2e5.js +10 -0
- package/dist/client-v2/325.fafe5a6e83ba9cb3.js +10 -0
- package/dist/client-v2/404.ab032b79c95dab6f.js +10 -0
- package/dist/client-v2/{41.3deb9e57a0f64fc4.js → 41.cd5610fcf7446127.js} +1 -1
- package/dist/client-v2/453.42c6d70628d56cc2.js +10 -0
- package/dist/client-v2/{53.349fff8db80b19d4.js → 53.37c08089a648f89a.js} +1 -1
- package/dist/client-v2/{619.0a2144aaffefe018.js → 619.6e9618550101e819.js} +1 -1
- package/dist/client-v2/652.eeba4e0c38367321.js +10 -0
- package/dist/client-v2/{70.ffff2997c10fd4b0.js → 70.332698e53eb59677.js} +1 -1
- package/dist/client-v2/773.4de2ba5acb07318c.js +10 -0
- package/dist/client-v2/981.76060f466e6f7c11.js +10 -0
- package/dist/client-v2/993.f8cdb5172566ce75.js +10 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +13 -7
- package/dist/locale/en-US.json +308 -1
- package/dist/locale/vi-VN.json +5 -1
- package/dist/locale/zh-CN.json +308 -1
- package/dist/node_modules/acorn/LICENSE +21 -0
- package/dist/node_modules/acorn/bin/acorn +4 -0
- package/dist/node_modules/acorn/dist/acorn.d.mts +857 -0
- package/dist/node_modules/acorn/dist/acorn.d.ts +857 -0
- package/dist/node_modules/acorn/dist/acorn.js +1 -0
- package/dist/node_modules/acorn/dist/bin.js +90 -0
- package/dist/node_modules/acorn/package.json +1 -0
- package/dist/node_modules/acorn-walk/LICENSE +21 -0
- package/dist/node_modules/acorn-walk/dist/walk.d.mts +177 -0
- package/dist/node_modules/acorn-walk/dist/walk.d.ts +177 -0
- package/dist/node_modules/acorn-walk/dist/walk.js +1 -0
- package/dist/node_modules/acorn-walk/node_modules/.bin/acorn +15 -0
- package/dist/node_modules/acorn-walk/node_modules/.bin/acorn.cmd +7 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/bin/acorn +4 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.mts +866 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.ts +866 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.js +6174 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/bin.js +90 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/package.json +50 -0
- package/dist/node_modules/acorn-walk/package.json +1 -0
- package/dist/node_modules/adm-zip/adm-zip.js +1 -1
- package/dist/node_modules/adm-zip/package.json +1 -1
- package/dist/node_modules/ajv/package.json +1 -1
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/collections/agent-auto-approval-checkpoints.js +47 -0
- package/dist/server/collections/agent-execution-spans.js +148 -9
- package/dist/server/collections/agent-governance-audit-events.js +47 -0
- package/dist/server/collections/agent-governance-policies.js +47 -0
- package/dist/server/collections/agent-governance-policy-versions.js +48 -0
- package/dist/server/collections/agent-governance-prompt-bindings.js +50 -0
- package/dist/server/collections/agent-hierarchy-invocations.js +59 -0
- package/dist/server/collections/agent-loop-runs.js +23 -5
- package/dist/server/collections/agent-routing-graph-locks.js +40 -0
- package/dist/server/collections/agent-session-auto-approvals.js +45 -0
- package/dist/server/collections/orchestrator-config.js +17 -0
- package/dist/server/migrations/20261110000000-add-usage-pricing-snapshots.js +117 -0
- package/dist/server/migrations/20261110010000-add-usage-department-attribution.js +54 -0
- package/dist/server/migrations/20261119000000-widen-native-employee-identifiers.js +59 -0
- package/dist/server/plugin.js +169 -33
- package/dist/server/resources/agent-auto-approval.js +80 -0
- package/dist/server/resources/agent-governance.js +192 -0
- package/dist/server/resources/agent-harness-profile.js +11 -3
- package/dist/server/resources/agent-monitor.js +109 -339
- package/dist/server/resources/agent-usage.js +423 -0
- package/dist/server/resources/hierarchical-routing.js +60 -0
- package/dist/server/resources/native-monitor-format.js +179 -0
- package/dist/server/resources/tracing.js +35 -12
- package/dist/server/services/AgentGovernanceService.js +500 -0
- package/dist/server/services/AutoApprovalCheckpoint.js +133 -0
- package/dist/server/services/CodeValidator.js +8 -4
- package/dist/server/services/DepartmentAttribution.js +65 -0
- package/dist/server/services/ExecutionSpanService.js +96 -3
- package/dist/server/services/GovernanceAdmission.js +271 -0
- package/dist/server/services/HarnessCapabilities.js +118 -0
- package/dist/server/services/HarnessCompiler.js +3 -0
- package/dist/server/services/HarnessSchema.js +13 -1
- package/dist/server/services/HierarchicalAgentRuntime.js +925 -0
- package/dist/server/services/HierarchyEnrollmentGuard.js +216 -0
- package/dist/server/services/HierarchyInvocationJournal.js +157 -0
- package/dist/server/services/HierarchyRequestCancellation.js +150 -0
- package/dist/server/services/LoopBudgetService.js +29 -11
- package/dist/server/services/LoopRunRepository.js +16 -7
- package/dist/server/services/LoopRunStateMachine.js +20 -9
- package/dist/server/services/LoopTriggerService.js +1 -1
- package/dist/server/services/LoopWorkerService.js +71 -37
- package/dist/server/services/ManagedPromptProtection.js +99 -0
- package/dist/server/services/NativeAgentMonitorSyncService.js +584 -0
- package/dist/server/services/NativeSubAgentObserver.js +141 -508
- package/dist/server/services/NativeUsageAttribution.js +97 -0
- package/dist/server/services/PluginAiRuntimeAdapter.js +107 -9
- package/dist/server/services/RoutingBindingRepository.js +156 -0
- package/dist/server/services/RoutingBindingValidation.js +161 -0
- package/dist/server/services/SandboxRunner.js +19 -0
- package/dist/server/services/SessionAutoApproval.js +173 -0
- package/dist/server/services/TokenTracker.js +787 -104
- package/dist/server/services/TracingRetentionPolicy.js +66 -0
- package/dist/server/services/VerificationService.js +20 -10
- package/dist/server/skill-hub/plugin.js +17 -0
- package/dist/server/skill-hub/sandbox-config.json +6 -6
- package/dist/server/skill-hub/services/RegistrySkillInstallationService.js +2 -2
- package/dist/server/skill-hub/services/registry-node-package.js +191 -0
- package/dist/server/skill-hub/tasks/SkillExecutionTask.js +21 -6
- package/dist/server/tools/skill-execute.js +1 -0
- package/dist/server/utils/ensure-indexes.js +15 -5
- package/package.json +66 -53
- package/server.d.ts +2 -2
- package/server.js +1 -1
- package/src/client/AgentRunsTab.tsx +2 -2
- package/src/client/ApprovalsTab.tsx +2 -2
- package/src/client/HarnessProfilesTab.tsx +2 -2
- package/src/client/OrchestratorSettings.tsx +152 -152
- package/src/client/SkillPages.tsx +34 -0
- package/src/client/__tests__/embedded-settings.test.tsx +225 -0
- package/src/client/hooks/useRunEventStream.ts +76 -76
- package/src/client/index.tsx +2 -2
- package/src/client/plugin.tsx +71 -33
- package/src/client/skill-hub/components/ExecutionHistory.tsx +200 -200
- package/src/client/skill-hub/components/GitSkillImport.tsx +562 -562
- package/src/client/skill-hub/components/LoopSettings.tsx +331 -331
- package/src/client/skill-hub/components/SkillEditor.tsx +460 -460
- package/src/client/skill-hub/components/SkillManager.tsx +194 -194
- package/src/client/skill-hub/components/SkillMetrics.tsx +162 -162
- package/src/client/skill-hub/components/SkillTestPanel.tsx +141 -141
- package/src/client/skill-hub/index.tsx +6 -6
- package/src/client/skill-hub/locale.ts +16 -16
- package/src/client/skill-hub/tools/InteractionSchemasProvider.tsx +147 -132
- package/src/client/skill-hub/tools/SkillHubCard.tsx +110 -104
- package/src/client/skill-hub/tools/__tests__/skill-hub-card.test.tsx +255 -0
- package/src/client/skill-hub/tools/loopTemplates.ts +52 -52
- package/src/client/skill-hub/tools/registerSkillLoopCards.ts +80 -71
- package/src/client/skill-hub/utils/jsonFields.ts +41 -41
- package/src/client-v2/__tests__/embedded-settings.test.tsx +202 -0
- package/src/client-v2/__tests__/hierarchical-routing-settings.test.tsx +350 -0
- package/src/client-v2/auto-approval/AutoApprovalBridge.tsx +513 -0
- package/src/client-v2/auto-approval/AutoApprovalProvider.tsx +399 -0
- package/src/client-v2/auto-approval/__tests__/session-auto-approval.test.tsx +1676 -0
- package/src/client-v2/components/AIEmployeeSelect.tsx +47 -47
- package/src/client-v2/components/AIEmployeesContext.tsx +97 -97
- package/src/client-v2/components/AgentBindingsTab.tsx +541 -269
- package/src/client-v2/components/AgentRunsTab.tsx +85 -83
- package/src/client-v2/components/ApprovalsTab.tsx +337 -337
- package/src/client-v2/components/EmployeeGovernanceTab.tsx +695 -0
- package/src/client-v2/components/HarnessProfilesTab.tsx +700 -541
- package/src/client-v2/components/HarnessSettingsForm.tsx +221 -0
- package/src/client-v2/components/KnowledgeAccessTab.tsx +116 -116
- package/src/client-v2/components/RetrievalTraceTab.tsx +162 -162
- package/src/client-v2/components/UsageGovernanceTab.tsx +379 -0
- package/src/client-v2/index.tsx +1 -1
- package/src/client-v2/pages/AgentBindingsPage.tsx +15 -13
- package/src/client-v2/pages/ApprovalsPage.tsx +12 -10
- package/src/client-v2/pages/EmployeeGovernancePage.tsx +15 -0
- package/src/client-v2/pages/ExecutionHistoryPage.tsx +12 -10
- package/src/client-v2/pages/HarnessProfilesPage.tsx +12 -10
- package/src/client-v2/pages/KnowledgeAccessPage.tsx +12 -10
- package/src/client-v2/pages/LoopSettingsPage.tsx +12 -10
- package/src/client-v2/pages/MemoryInspectorPage.tsx +15 -13
- package/src/client-v2/pages/RetrievalTracePage.tsx +12 -10
- package/src/client-v2/pages/RulesPage.tsx +15 -13
- package/src/client-v2/pages/SkillDefinitionsPage.tsx +12 -10
- package/src/client-v2/pages/SkillMetricsPage.tsx +12 -10
- package/src/client-v2/pages/TracingPage.tsx +15 -13
- package/src/client-v2/pages/UsageGovernancePage.tsx +15 -0
- package/src/client-v2/plugin.tsx +134 -111
- package/src/client-v2/skill-hub/components/ExecutionHistory.tsx +196 -196
- package/src/client-v2/skill-hub/components/FileLinkList.tsx +37 -37
- package/src/client-v2/skill-hub/components/GitSkillImport.tsx +539 -539
- package/src/client-v2/skill-hub/components/LoopSettings.tsx +331 -331
- package/src/client-v2/skill-hub/components/SkillEditor.tsx +453 -453
- package/src/client-v2/skill-hub/components/SkillManager.tsx +191 -174
- package/src/client-v2/skill-hub/components/SkillMetrics.tsx +162 -162
- package/src/client-v2/skill-hub/components/SkillTestPanel.tsx +135 -135
- package/src/client-v2/skill-hub/locale.ts +13 -13
- package/src/client-v2/skill-hub/tools/InteractionSchemasProvider.tsx +62 -0
- package/src/client-v2/skill-hub/tools/SkillHubCard.tsx +104 -0
- package/src/client-v2/skill-hub/tools/__tests__/interactions.test.ts +126 -0
- package/src/client-v2/skill-hub/tools/interactions.ts +137 -0
- package/src/client-v2/skill-hub/tools/loopTemplates.ts +52 -52
- package/src/client-v2/skill-hub/utils/jsonFields.ts +41 -41
- package/src/client-v2/utils/jsonFields.ts +41 -41
- package/src/index.ts +2 -2
- package/src/locale/en-US.json +308 -1
- package/src/locale/vi-VN.json +5 -1
- package/src/locale/zh-CN.json +308 -1
- package/src/server/__tests__/agent-execution-context.test.ts +18 -18
- package/src/server/__tests__/agent-governance.integration.test.ts +385 -0
- package/src/server/__tests__/agent-knowledge-insights.test.ts +123 -123
- package/src/server/__tests__/agent-monitor-acl.integration.test.ts +267 -0
- package/src/server/__tests__/agent-registry-service.test.ts +147 -147
- package/src/server/__tests__/agent-runtime-lifecycle.test.ts +46 -46
- package/src/server/__tests__/agent-usage-report.integration.test.ts +335 -0
- package/src/server/__tests__/auto-approval-checkpoint.integration.test.ts +295 -0
- package/src/server/__tests__/code-validator.test.ts +63 -63
- package/src/server/__tests__/external-rag-search.test.ts +107 -107
- package/src/server/__tests__/harness-capabilities.test.ts +88 -0
- package/src/server/__tests__/harness-compiler.test.ts +278 -214
- package/src/server/__tests__/harness-profile-service.test.ts +167 -167
- package/src/server/__tests__/harness-runtime-policy.test.ts +293 -293
- package/src/server/__tests__/harness-tool-plan.test.ts +175 -172
- package/src/server/__tests__/hierarchical-routing.integration.test.ts +2318 -0
- package/src/server/__tests__/hierarchy-invocation-journal.integration.test.ts +119 -0
- package/src/server/__tests__/input-schema-validator.test.ts +26 -26
- package/src/server/__tests__/loop-approval-decision.test.ts +624 -512
- package/src/server/__tests__/loop-approval-expiry.test.ts +258 -258
- package/src/server/__tests__/loop-budget-service.test.ts +29 -0
- package/src/server/__tests__/loop-pattern-schema.test.ts +73 -73
- package/src/server/__tests__/loop-run-repository.test.ts +25 -0
- package/src/server/__tests__/loop-run-state-machine.test.ts +101 -101
- package/src/server/__tests__/loop-trigger-service.test.ts +185 -148
- package/src/server/__tests__/loop-worker-claim.test.ts +110 -10
- package/src/server/__tests__/loop-worker-execution.test.ts +375 -317
- package/src/server/__tests__/native-agent-monitor-sync.test.ts +343 -0
- package/src/server/__tests__/native-hierarchy-probe.integration.test.ts +527 -0
- package/src/server/__tests__/native-sub-agent-observer.test.ts +463 -662
- package/src/server/__tests__/native-usage-attribution.integration.test.ts +168 -0
- package/src/server/__tests__/plugin-ai-runtime-adapter.test.ts +403 -0
- package/src/server/__tests__/registry-node-package.test.ts +299 -0
- package/src/server/__tests__/routing-binding-graph.integration.test.ts +217 -0
- package/src/server/__tests__/routing-binding-validation.test.ts +256 -0
- package/src/server/__tests__/session-auto-approval.integration.test.ts +329 -0
- package/src/server/__tests__/skill-access-service.test.ts +64 -64
- package/src/server/__tests__/skill-execute.test.ts +81 -70
- package/src/server/__tests__/skill-execution-task-policy.test.ts +140 -140
- package/src/server/__tests__/skill-review-guard.test.ts +171 -0
- package/src/server/__tests__/skill-sandbox-worker-mode.test.ts +15 -15
- package/src/server/__tests__/skill-settings.test.ts +63 -63
- package/src/server/__tests__/skill-tool-name.test.ts +23 -23
- package/src/server/__tests__/token-tracker.test.ts +632 -0
- package/src/server/__tests__/tool-loop-detection.test.ts +276 -276
- package/src/server/__tests__/tracing-retention-policy.test.ts +30 -0
- package/src/server/__tests__/usage-ledger.integration.test.ts +187 -0
- package/src/server/collections/agent-auto-approval-checkpoints.ts +18 -0
- package/src/server/collections/agent-execution-spans.ts +386 -245
- package/src/server/collections/agent-governance-audit-events.ts +19 -0
- package/src/server/collections/agent-governance-policies.ts +19 -0
- package/src/server/collections/agent-governance-policy-versions.ts +20 -0
- package/src/server/collections/agent-governance-prompt-bindings.ts +22 -0
- package/src/server/collections/agent-hierarchy-invocations.ts +30 -0
- package/src/server/collections/agent-loop-action-approvals.ts +39 -39
- package/src/server/collections/agent-loop-runs.ts +389 -369
- package/src/server/collections/agent-loop-steps.ts +220 -220
- package/src/server/collections/agent-memory-contexts.ts +95 -95
- package/src/server/collections/agent-routing-graph-locks.ts +11 -0
- package/src/server/collections/agent-session-auto-approvals.ts +16 -0
- package/src/server/collections/orchestrator-config.ts +113 -87
- package/src/server/collections/orchestrator-logs.ts +116 -116
- package/src/server/collections/skill-definitions.ts +159 -159
- package/src/server/collections/skill-executions.ts +154 -154
- package/src/server/collections/skill-loop-configs.ts +65 -65
- package/src/server/collections/skill-metrics.ts +36 -36
- package/src/server/collections/skill-registry-installations.ts +41 -41
- package/src/server/collections/skill-worker-configs.ts +86 -86
- package/src/server/index.ts +1 -1
- package/src/server/migrations/20260423000000-add-progress-fields.ts +50 -50
- package/src/server/migrations/20260425000000-add-interaction-schema.ts +37 -37
- package/src/server/migrations/20260427000000-add-tracing-detail-fields.ts +41 -41
- package/src/server/migrations/20260427000001-change-other-json-to-text.ts +61 -61
- package/src/server/migrations/20260524001000-add-plan-approval-and-harness-profiles.ts +145 -145
- package/src/server/migrations/20260601000000-add-token-fields.ts +89 -89
- package/src/server/migrations/20260615000000-normalize-ai-employee-tool-bindings.ts +39 -39
- package/src/server/migrations/20260621000000-native-policy-profile-defaults.ts +190 -190
- package/src/server/migrations/20260727000000-remove-unused-knowledge-scopes.ts +25 -25
- package/src/server/migrations/20260727010000-backfill-skill-tool-names.ts +45 -45
- package/src/server/migrations/20261110000000-add-usage-pricing-snapshots.ts +110 -0
- package/src/server/migrations/20261110010000-add-usage-department-attribution.ts +28 -0
- package/src/server/migrations/20261119000000-widen-native-employee-identifiers.ts +37 -0
- package/src/server/plugin.ts +724 -573
- package/src/server/resources/agent-auto-approval.ts +51 -0
- package/src/server/resources/agent-governance.ts +161 -0
- package/src/server/resources/agent-harness-profile.ts +103 -94
- package/src/server/resources/agent-knowledge-insights.ts +306 -306
- package/src/server/resources/agent-loop-approval.ts +84 -84
- package/src/server/resources/agent-loop-events-stream.ts +108 -108
- package/src/server/resources/agent-loop.ts +252 -252
- package/src/server/resources/agent-monitor.ts +208 -482
- package/src/server/resources/agent-usage.ts +413 -0
- package/src/server/resources/hierarchical-routing.ts +39 -0
- package/src/server/resources/native-monitor-format.ts +150 -0
- package/src/server/resources/tracing.ts +296 -267
- package/src/server/services/AgentExecutionContext.ts +23 -23
- package/src/server/services/AgentGovernanceService.ts +541 -0
- package/src/server/services/AgentMemoryContextService.ts +344 -344
- package/src/server/services/AgentRegistryService.ts +220 -220
- package/src/server/services/AgentRuntimeLifecycle.ts +64 -64
- package/src/server/services/AutoApprovalCheckpoint.ts +140 -0
- package/src/server/services/CodeValidator.ts +257 -238
- package/src/server/services/DepartmentAttribution.ts +47 -0
- package/src/server/services/DurableCircuitBreakerService.ts +235 -235
- package/src/server/services/ExecutionSpanService.ts +271 -146
- package/src/server/services/FileManager.ts +159 -159
- package/src/server/services/GovernanceAdmission.ts +314 -0
- package/src/server/services/HarnessCapabilities.ts +112 -0
- package/src/server/services/HarnessCompiler.ts +182 -170
- package/src/server/services/HarnessProfileService.ts +235 -235
- package/src/server/services/HarnessSchema.ts +224 -194
- package/src/server/services/HierarchicalAgentRuntime.ts +1052 -0
- package/src/server/services/HierarchyEnrollmentGuard.ts +211 -0
- package/src/server/services/HierarchyInvocationJournal.ts +172 -0
- package/src/server/services/HierarchyRequestCancellation.ts +132 -0
- package/src/server/services/InputSchemaValidator.ts +44 -44
- package/src/server/services/LoopBudgetService.ts +325 -271
- package/src/server/services/LoopControlService.ts +120 -120
- package/src/server/services/LoopPatternSchema.ts +231 -231
- package/src/server/services/LoopPatternService.ts +171 -171
- package/src/server/services/LoopRunRepository.ts +343 -332
- package/src/server/services/LoopRunStateMachine.ts +538 -525
- package/src/server/services/LoopSchedulerService.ts +195 -195
- package/src/server/services/LoopTriggerService.ts +162 -159
- package/src/server/services/LoopWorkerService.ts +975 -912
- package/src/server/services/ManagedPromptProtection.ts +81 -0
- package/src/server/services/NativeAgentMonitorSyncService.ts +684 -0
- package/src/server/services/NativeSubAgentObserver.ts +324 -757
- package/src/server/services/NativeUsageAttribution.ts +91 -0
- package/src/server/services/PathLockService.ts +317 -317
- package/src/server/services/PluginAiRuntimeAdapter.ts +518 -387
- package/src/server/services/RoutingBindingRepository.ts +146 -0
- package/src/server/services/RoutingBindingValidation.ts +161 -0
- package/src/server/services/RunEventBus.ts +58 -58
- package/src/server/services/SandboxRunner.ts +526 -492
- package/src/server/services/SessionAutoApproval.ts +167 -0
- package/src/server/services/SkillAccessService.ts +175 -175
- package/src/server/services/SkillManager.ts +585 -585
- package/src/server/services/SkillRepositoryService.ts +236 -236
- package/src/server/services/TokenTracker.ts +1151 -287
- package/src/server/services/ToolLoopDetectionService.ts +210 -210
- package/src/server/services/TracingRetentionPolicy.ts +49 -0
- package/src/server/services/VerificationSchema.ts +31 -31
- package/src/server/services/VerificationService.ts +325 -313
- package/src/server/services/WorkerEnvManager.ts +198 -198
- package/src/server/services/__tests__/SkillRepositoryService.test.ts +33 -33
- package/src/server/services/harness-runtime-policy.ts +134 -134
- package/src/server/services/pythonGuardTemplate.ts +87 -87
- package/src/server/services/sandboxCapabilities.ts +348 -348
- package/src/server/skill-hub/actions/__tests__/git-import.test.ts +563 -563
- package/src/server/skill-hub/actions/git-import.ts +936 -936
- package/src/server/skill-hub/mcp/McpController.ts +107 -107
- package/src/server/skill-hub/middlewares/git-import-request-method-policy.ts +51 -51
- package/src/server/skill-hub/plugin.ts +1272 -1232
- package/src/server/skill-hub/sandbox-config.json +6 -6
- package/src/server/skill-hub/services/RegistrySkillInstallationService.ts +291 -281
- package/src/server/skill-hub/services/__tests__/RegistrySkillInstallationService.test.ts +295 -295
- package/src/server/skill-hub/services/registry-node-package.ts +191 -0
- package/src/server/skill-hub/tasks/SkillExecutionTask.ts +597 -568
- package/src/server/skill-hub/utils/json-fields.ts +57 -57
- package/src/server/tools/delegate-task.ts +30 -30
- package/src/server/tools/external-rag-search.ts +329 -329
- package/src/server/tools/skill-execute.ts +226 -216
- package/src/server/types.ts +21 -21
- package/src/server/utils/ai-manager.ts +24 -24
- package/src/server/utils/ctx-utils.ts +132 -132
- package/src/server/utils/ensure-indexes.ts +113 -96
- package/src/server/utils/ha-lock.ts +80 -80
- package/src/server/utils/loop-pattern-context.ts +84 -84
- package/src/server/utils/record-utils.ts +19 -19
- package/src/server/utils/skill-settings.ts +135 -135
- package/src/server/utils/skill-tool-name.ts +58 -58
- package/dist/client-v2/117.7565cff57c39318a.js +0 -10
- package/dist/client-v2/214.106635011859dede.js +0 -10
- package/dist/client-v2/253.59577b40d9875be0.js +0 -10
- package/dist/client-v2/264.7ed8bee71fa5935c.js +0 -10
- package/dist/client-v2/418.41ed200e7d6da332.js +0 -10
- package/dist/client-v2/794.a67a2614405ba627.js +0 -10
- package/dist/client-v2/981.e4a1f41cfc94a856.js +0 -10
- package/dist/client-v2/993.b0688fdc5ccb000a.js +0 -10
- package/dist/node_modules/simple-git/dist/cjs/index.js +0 -7399
- package/dist/node_modules/simple-git/dist/esm/index.js +0 -4745
- package/dist/node_modules/simple-git/dist/esm/package.json +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/api.d.ts +0 -13
- package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +0 -15
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +0 -30
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +0 -7
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +0 -32
- package/dist/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +0 -12
- package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +0 -15
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +0 -21
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +0 -6
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +0 -11
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +0 -6
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +0 -4
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +0 -7
- package/dist/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +0 -11
- package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +0 -11
- package/dist/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +0 -48
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +0 -12
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +0 -14
- package/dist/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +0 -4
- package/dist/node_modules/simple-git/dist/src/lib/responses/CleanSummary.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +0 -13
- package/dist/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +0 -10
- package/dist/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +0 -11
- package/dist/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +0 -16
- package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +0 -25
- package/dist/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +0 -19
- package/dist/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +0 -7
- package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +0 -25
- package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +0 -14
- package/dist/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +0 -11
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +0 -23
- package/dist/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +0 -20
- package/dist/node_modules/simple-git/dist/src/lib/task-callback.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +0 -7
- package/dist/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +0 -25
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +0 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +0 -8
- package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +0 -12
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +0 -12
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +0 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +0 -12
- package/dist/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +0 -32
- package/dist/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +0 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +0 -8
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +0 -11
- package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +0 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +0 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +0 -18
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +0 -14
- package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +0 -9
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +0 -21
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +0 -136
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +0 -19
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +0 -14
- package/dist/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +0 -10
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -7
- package/dist/node_modules/simple-git/dist/src/lib/utils/index.d.ts +0 -8
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +0 -15
- package/dist/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +0 -2
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +0 -13
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +0 -47
- package/dist/node_modules/simple-git/dist/typings/errors.d.ts +0 -5
- package/dist/node_modules/simple-git/dist/typings/index.d.ts +0 -14
- package/dist/node_modules/simple-git/dist/typings/response.d.ts +0 -556
- package/dist/node_modules/simple-git/dist/typings/simple-git.d.ts +0 -1033
- package/dist/node_modules/simple-git/dist/typings/types.d.ts +0 -22
- package/dist/node_modules/simple-git/node_modules/debug/package.json +0 -64
- package/dist/node_modules/simple-git/node_modules/debug/src/browser.js +0 -272
- package/dist/node_modules/simple-git/node_modules/debug/src/common.js +0 -292
- package/dist/node_modules/simple-git/node_modules/debug/src/index.js +0 -10
- package/dist/node_modules/simple-git/node_modules/debug/src/node.js +0 -263
- package/dist/node_modules/simple-git/package.json +0 -1
- package/dist/node_modules/simple-git/promise.js +0 -17
package/dist/client-v2/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):"function"==typeof define&&define.amd?define("plugin-agent-orchestrator/client-v2",["@nocobase/client-v2","react","antd","@ant-design/icons"],t):"object"==typeof exports?exports["plugin-agent-orchestrator/client-v2"]=t(require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):e["plugin-agent-orchestrator/client-v2"]=t(e["@nocobase/client-v2"],e.react,e.antd,e["@ant-design/icons"])}(self,function(e,t,n,r){return function(){"use strict";var o,i,a,c={375:function(e){e.exports=r},485:function(t){t.exports=e},59:function(e){e.exports=n},155:function(e){e.exports=t}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return c[e](n,n.exports,l),n.exports}l.m=c,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce(function(t,n){return l.f[n](e,t),t},[]))},l.u=function(e){return""+e+"."+({117:"7565cff57c39318a",214:"106635011859dede",253:"59577b40d9875be0",264:"7ed8bee71fa5935c",41:"3deb9e57a0f64fc4",418:"41ed200e7d6da332",53:"349fff8db80b19d4",619:"0a2144aaffefe018",70:"ffff2997c10fd4b0",794:"a67a2614405ba627",981:"e4a1f41cfc94a856",993:"b0688fdc5ccb000a"})[e]+".js"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s={},l.l=function(e,t,n,r){if(s[e])return void s[e].push(t);if(void 0!==n)for(var o,i,a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var u=a[c];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="plugin-agent-orchestrator/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,l.nc&&o.setAttribute("nonce",l.nc),o.setAttribute("data-rspack","plugin-agent-orchestrator/client-v2:"+n),o.src=e),s[e]=[t];var p=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=s[e];if(delete s[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),i&&document.head.appendChild(o)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(p=l.g.location+"");var s,p,f=l.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var d=f.getElementsByTagName("script");if(d.length)for(var g=d.length-1;g>-1&&(!p||!/^http(s?):/.test(p));)p=d[g--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");l.p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o={889:0},l.f.j=function(e,t){var n=l.o(o,e)?o[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=o[e]=[t,r]});t.push(n[2]=r);var i=l.p+l.u(e),a=Error();l.l(i,function(t){if(l.o(o,e)&&(0!==(n=o[e])&&(o[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,n[1](a)}},"chunk-"+e,e)}},i=function(e,t){var n,r,i=t[0],a=t[1],c=t[2],u=0;if(i.some(function(e){return 0!==o[e]})){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);c&&c(l)}for(e&&e(t);u<i.length;u++)r=i[u],l.o(o,r)&&o[r]&&o[r][0](),o[r]=0},(a=self.webpackChunkplugin_agent_orchestrator_client_v2=self.webpackChunkplugin_agent_orchestrator_client_v2||[]).forEach(i.bind(null,0)),a.push=i.bind(null,a.push.bind(a));var h={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/plugin-agent-orchestrator/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/plugin-agent-orchestrator/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",c=a.indexOf(i);e=c>=0?a.slice(0,c+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/plugin-agent-orchestrator/dist/client-v2/"}l.p=e}(),!function(){l.r(h),l.d(h,{default:function(){return c}});var e=l(485);function t(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){n(e);return}c.done?t(u):Promise.resolve(u).then(r,o)}function n(e,t,r){return(n=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return n(e,arguments,r(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var c=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,t=arguments,e=r(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],r(this).constructor):e.apply(this,t))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&o(i,e),n=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:u(0)}),c(a,"throw",{value:u(1)}),c(a,"return",{value:u(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function u(c){return function(u){var l=[c,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return this.pluginSettingsManager.addMenuItem({key:"ai-orchestrator",title:this.t("Agent Orchestrator"),icon:"ApartmentOutlined",aclSnippet:"pm.plugin-agent-orchestrator"}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"index",title:this.t("Native Monitor"),componentLoader:function(){return l.e("117").then(l.bind(l,524))},sort:-1}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"tracing",title:this.t("Execution Tracing"),componentLoader:function(){return l.e("619").then(l.bind(l,230))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"harness-profiles",title:this.t("Policy Profiles"),componentLoader:function(){return l.e("418").then(l.bind(l,393))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"approvals",title:this.t("Approvals"),componentLoader:function(){return l.e("981").then(l.bind(l,396))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"agent-bindings",title:this.t("Agent Bindings"),componentLoader:function(){return l.e("794").then(l.bind(l,913))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"knowledge-access",title:this.t("Knowledge Access"),componentLoader:function(){return l.e("253").then(l.bind(l,740))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"retrieval-trace",title:this.t("Retrieval Trace"),componentLoader:function(){return l.e("993").then(l.bind(l,928))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"memory-inspector",title:this.t("Memory Inspector"),componentLoader:function(){return l.e("53").then(l.bind(l,676))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-definitions",title:this.t("Skill Hub Definitions"),componentLoader:function(){return l.e("41").then(l.bind(l,224))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-executions",title:this.t("Execution History"),componentLoader:function(){return l.e("264").then(l.bind(l,715))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-loop-settings",title:this.t("Skill Review Settings"),componentLoader:function(){return l.e("70").then(l.bind(l,581))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-metrics",title:this.t("Metrics"),componentLoader:function(){return l.e("214").then(l.bind(l,349))}}),[2]})},function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function c(e){t(a,o,i,c,u,"next",e)}function u(e){t(a,o,i,c,u,"throw",e)}c(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,n),i}(i(e.Plugin))}(),h}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ahooks"),require("react-i18next"),require("react-dom"),require("@nocobase/client-v2"),require("dayjs"),require("@nocobase/plugin-ai/client-v2"),require("react"),require("antd"),require("@ant-design/icons"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("plugin-agent-orchestrator/client-v2",["ahooks","react-i18next","react-dom","@nocobase/client-v2","dayjs","@nocobase/plugin-ai/client-v2","react","antd","@ant-design/icons","@nocobase/flow-engine"],t):"object"==typeof exports?exports["plugin-agent-orchestrator/client-v2"]=t(require("ahooks"),require("react-i18next"),require("react-dom"),require("@nocobase/client-v2"),require("dayjs"),require("@nocobase/plugin-ai/client-v2"),require("react"),require("antd"),require("@ant-design/icons"),require("@nocobase/flow-engine")):e["plugin-agent-orchestrator/client-v2"]=t(e.ahooks,e["react-i18next"],e["react-dom"],e["@nocobase/client-v2"],e.dayjs,e["@nocobase/plugin-ai/client-v2"],e.react,e.antd,e["@ant-design/icons"],e["@nocobase/flow-engine"])}(self,function(e,t,n,r,o,i,a,u,l,s){return function(){"use strict";var c,f,d,p={603:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(485),o=n(155);function i(){var e=(0,r.useApp)();return(0,o.useCallback)(function(t,n){return e.i18n.t(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ns:["plugin-agent-orchestrator","client"]},n))},[e.i18n])}},204:function(e,t,n){function r(e,t){if(null==e||""===e)return t;if("string"!=typeof e)return e;var n=e.trim(),r=n.match(/^```(?:json)?\s*([\s\S]*?)\s*```$/i),o=r?r[1].trim():n;try{var i=JSON.parse(o);if("string"==typeof i){var a=i.trim(),u=a.match(/^```(?:json)?\s*([\s\S]*?)\s*```$/i),l=u?u[1].trim():a;try{i=JSON.parse(l)}catch(e){}}return i}catch(e){return t}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=r(e,void 0),o=void 0===n?null==e||""===e?t:e:n;return null==o?"":"string"==typeof o?o:JSON.stringify(o,null,2)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=r(e,void 0),o=void 0===n?null==e||""===e?t:e:n;return"```json\n".concat(JSON.stringify(o,null,2),"\n```")}n.d(t,{Bz:function(){return o},Nx:function(){return i},lk:function(){return r}})},375:function(e){e.exports=l},485:function(e){e.exports=r},694:function(e){e.exports=s},550:function(e){e.exports=i},625:function(t){t.exports=e},59:function(e){e.exports=u},185:function(e){e.exports=o},155:function(e){e.exports=a},514:function(e){e.exports=n},953:function(e){e.exports=t}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return p[e](n,n.exports,y),n.exports}y.m=p,y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce(function(t,n){return y.f[n](e,t),t},[]))},y.u=function(e){return""+e+"."+({117:"c982d79ff68738f5",214:"94c4257bf2838577",253:"8e19956d2a44dfb8",264:"80e8e358c8c6c2e5",325:"fafe5a6e83ba9cb3",404:"ab032b79c95dab6f",41:"cd5610fcf7446127",453:"42c6d70628d56cc2",53:"37c08089a648f89a",619:"6e9618550101e819",652:"eeba4e0c38367321",70:"332698e53eb59677",773:"4de2ba5acb07318c",981:"76060f466e6f7c11",993:"f8cdb5172566ce75"})[e]+".js"},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m={},y.l=function(e,t,n,r){if(m[e])return void m[e].push(t);if(void 0!==n)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var l=a[u];if(l.getAttribute("src")==e||l.getAttribute("data-rspack")=="plugin-agent-orchestrator/client-v2:"+n){o=l;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,y.nc&&o.setAttribute("nonce",y.nc),o.setAttribute("data-rspack","plugin-agent-orchestrator/client-v2:"+n),o.src=e),m[e]=[t];var s=function(t,n){o.onerror=o.onload=null,clearTimeout(c);var r=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},c=setTimeout(s.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),i&&document.head.appendChild(o)},y.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.g.importScripts&&(h=y.g.location+"");var m,h,g=y.g.document;if(!h&&g&&(g.currentScript&&"SCRIPT"===g.currentScript.tagName.toUpperCase()&&(h=g.currentScript.src),!h)){var b=g.getElementsByTagName("script");if(b.length)for(var w=b.length-1;w>-1&&(!h||!/^http(s?):/.test(h));)h=b[w--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");y.p=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c={889:0},y.f.j=function(e,t){var n=y.o(c,e)?c[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=c[e]=[t,r]});t.push(n[2]=r);var o=y.p+y.u(e),i=Error();y.l(o,function(t){if(y.o(c,e)&&(0!==(n=c[e])&&(c[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},f=function(e,t){var n,r,o=t[0],i=t[1],a=t[2],u=0;if(o.some(function(e){return 0!==c[e]})){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);a&&a(y)}for(e&&e(t);u<o.length;u++)r=o[u],y.o(c,r)&&c[r]&&c[r][0](),c[r]=0},(d=self.webpackChunkplugin_agent_orchestrator_client_v2=self.webpackChunkplugin_agent_orchestrator_client_v2||[]).forEach(f.bind(null,0)),d.push=f.bind(null,d.push.bind(d));var S={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/plugin-agent-orchestrator/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/plugin-agent-orchestrator/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",u=a.indexOf(i);e=u>=0?a.slice(0,u+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/plugin-agent-orchestrator/dist/client-v2/"}y.p=e}(),!function(){y.r(S),y.d(S,{default:function(){return eu}});var e=y(485),t=y(155),n=y.n(t),r=y(204);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){n(e);return}u.done?t(l):Promise.resolve(l).then(r,o)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||c(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function c(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}function f(e){return e&&(void 0===e?"undefined":s(e))==="object"&&!Array.isArray(e)?e:{}}function d(e){var t=f((0,r.lk)(e,null));if(["form","select","confirm"].includes(String(t.type))){var n=Array.isArray(t.options)?t.options.flatMap(function(e){var t=f(e);return"string"==typeof t.label&&("string"==typeof t.value||"number"==typeof t.value)?[{label:t.label,value:t.value}]:[]}):void 0,o=Object.fromEntries(Object.entries(f(t.fields)).map(function(e){var t=l(e,2),n=t[0],r=f(t[1]);return[n,{type:"string"==typeof r.type?r.type:void 0,title:"string"==typeof r.title?r.title:void 0,required:!0===r.required,enum:Array.isArray(r.enum)?r.enum.filter(function(e){return["string","number","boolean"].includes(void 0===e?"undefined":s(e))}):void 0}]}));return{type:t.type,prompt:"string"==typeof t.prompt?t.prompt:void 0,options:n,fields:o}}}var p=y(625),v=y(59),m=y(953);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){n(e);return}u.done?t(l):Promise.resolve(l).then(r,o)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){var r,i,l,s,d,y,h,w=e.toolCall,S=e.decisions,k=(0,m.useTranslation)(["plugin-agent-orchestrator","client"]).t,I=v.App.useApp().message,O=(r=j(),i=w.name,y=f(w.args),"skill_hub_execute"!==i?null==(s=r.get(i))?void 0:s.schema:"execute"===y.action?null==(d=((function(e){if(Array.isArray(e))return o(e)})(l=r.values())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||c(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).find(function(e){return e.skillName===y.skillName}))?void 0:d.schema:void 0),C=b(v.Form.useForm(),1)[0],E=(0,t.useRef)(!1),M="skill_hub_execute"===w.name,x=["init","interrupted","waiting"].includes(w.invokeStatus);(0,t.useEffect)(function(){if(x){C.resetFields();var e=f(w.args);C.setFieldsValue(M?f(e.input):e)}},[C,w.id,w.args,O,M,x]);var A=(0,p.useRequest)(function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:l(0)}),u(a,"throw",{value:l(1)}),u(a,"return",{value:l(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function l(u){return function(l){var s=[u,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(E.current)return[2];E.current=!0,n.label=1;case 1:if(n.trys.push([1,,11,12]),!t)return[3,3];return[4,S.reject("user_cancel")];case 2:case 4:return n.sent(),[3,10];case 3:if(!(!O||"confirm"===O.type))return[3,5];return[4,S.approve()];case 5:return n.trys.push([5,7,,8]),[4,C.validateFields()];case 6:return e=n.sent(),[3,8];case 7:return n.sent(),[2];case 8:var r,o,i,l;return[4,S.edit((r=w.name,o=w.args,i=e,l=f(o),"skill_hub_execute"===r?u(a({},l),{input:a({},f(l.input),i)}):a({},l,i)))];case 9:n.sent(),n.label=10;case 10:return[3,12];case 11:return E.current=!1,[7];case 12:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){g(i,r,o,a,u,"next",e)}function u(e){g(i,r,o,a,u,"throw",e)}a(void 0)})})()},{manual:!0,onError:function(){return I.error(k("Failed to submit skill decision"))}});return x?n().createElement(v.Card,{size:"small",style:{marginTop:8}},n().createElement(v.Typography.Paragraph,null,(null==O?void 0:O.prompt)||k("Review this Skill Hub tool call before execution.")),n().createElement(v.Form,{form:C,layout:"vertical",disabled:A.loading,style:{marginBottom:8}},(null==O?void 0:O.type)==="select"&&n().createElement(v.Form.Item,{name:"choice",label:k("Choice"),rules:[{required:!0}]},n().createElement(v.Radio.Group,null,null==(h=O.options)?void 0:h.map(function(e){return n().createElement(v.Radio,{key:String(e.value),value:e.value},e.label)}))),(null==O?void 0:O.type)==="form"&&Object.entries(O.fields||{}).map(function(e){var t,r=b(e,2),o=r[0],i=r[1];return n().createElement(v.Form.Item,{key:o,name:o,label:i.title||o,valuePropName:"boolean"!==i.type||i.enum?"value":"checked",rules:[{required:i.required}]},(null==(t=i.enum)?void 0:t.some(function(e){return"boolean"==typeof e}))?n().createElement(v.Radio.Group,{options:i.enum.map(function(e){return{value:e,label:String(e)}})}):i.enum?n().createElement(v.Select,{options:i.enum.filter(function(e){return"boolean"!=typeof e}).map(function(e){return{value:e,label:String(e)}})}):"number"===i.type||"integer"===i.type?n().createElement(v.InputNumber,{precision:"integer"===i.type?0:void 0,style:{width:"100%"}}):"boolean"===i.type?n().createElement(v.Checkbox,null):n().createElement(v.Input,null))})),n().createElement(v.Space,null,n().createElement(v.Button,{type:"primary",loading:A.loading,onClick:function(){return A.run(!1)}},k("Run")),n().createElement(v.Button,{disabled:A.loading,onClick:function(){return A.run(!0)}},k("Cancel")))):null}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var O=(0,t.createContext)(new Map),C=new WeakMap,j=function(){return(0,t.useContext)(O)};function E(e,t){var n=C.get(e);n||C.set(e,n=new Set),n.has(t)||(e.registerTools(t,{ui:{card:w}}),n.add(t))}function M(r){var o=r.children,s=(0,e.useApp)(),c=s.apiClient,f=I((0,t.useState)(function(){return c.auth.getToken()}),2),p=f[0],v=f[1],y=I((0,t.useState)(0),2),m=y[0],h=y[1],g=I((0,t.useState)(new Map),2),b=g[0],w=g[1];return(0,t.useEffect)(function(){var e=function(){return h(function(e){return e+1})},t=function(t){var n=t.detail;v(n&&"token"in n?n.token||"":c.auth.getToken()),e()};return window.addEventListener("skill-hub-loop-settings-changed",e),s.eventBus.addEventListener("auth:tokenChanged",t),s.eventBus.addEventListener("auth:roleChanged",e),function(){window.removeEventListener("skill-hub-loop-settings-changed",e),s.eventBus.removeEventListener("auth:tokenChanged",t),s.eventBus.removeEventListener("auth:roleChanged",e)}},[s,c.auth]),(0,t.useEffect)(function(){var e,t=!1;return w(new Map),p&&(e=function(){var e,t,n;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:l(0)}),u(a,"throw",{value:l(1)}),u(a,"return",{value:l(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function l(u){return function(l){var s=[u,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:return[4,Promise.all([c.request({url:"skillDefinitions:list",skipNotify:!0,params:{filter:{enabled:!0},fields:["id","name","toolName","interactionSchema"],paginate:!1}}),c.request({url:"skillLoopConfigs:list",skipNotify:!0,params:{filter:{enabled:!0},fields:["skillId","schema","prompt"],sort:["-updatedAt"],paginate:!1}}).catch(function(){return{data:{data:[]}}})])];case 1:return t=(e=l.apply(void 0,[r.sent(),2]))[0],n=e[1],[2,function(e,t){var n=new Map,r=!0,o=!1,i=void 0;try{for(var l,s=t[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var c=l.value;n.has(String(c.skillId))||n.set(String(c.skillId),c)}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}var f=new Map,p=!0,v=!1,y=void 0;try{for(var m,h=e[Symbol.iterator]();!(p=(m=h.next()).done);p=!0){var g,b=m.value,w=b.name.trim().toLowerCase().replace(/[^a-z0-9_]/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""),S=(null==(g=b.toolName)?void 0:g.trim())||(w?"skill_hub_".concat(w):void 0);if(S){var k=n.get(String(b.id)),I=d(null==k?void 0:k.schema),O=I?u(a({},I),{prompt:I.prompt||(null==k?void 0:k.prompt)}):(null==k?void 0:k.prompt)?{type:"confirm",prompt:k.prompt}:d(b.interactionSchema);f.set(S,{skillName:b.name,toolName:S,schema:O})}}}catch(e){v=!0,y=e}finally{try{p||null==h.return||h.return()}finally{if(v)throw y}}return f}(t.data.data,n.data.data)]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,l,"next",e)}function l(e){i(a,r,o,u,l,"throw",e)}u(void 0)})})().then(function(e){if(!t){var n=!0,r=!1,o=void 0;try{for(var i,a=e.values()[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value;E(s.aiManager.toolsManager,u.toolName)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}w(e)}}).catch(function(){}),function(){t=!0}},[s,c,p,m]),n().createElement(O.Provider,{value:b},o)}var x=y(514),A=y(375),P=y(694),_=y(550),T=y(603);function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){R(e,t,n[t])})}return e}function N(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||F(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function F(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}}var $=function(e){return JSON.stringify(Object.values(e))},z=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");R(this,"pending",new Map),R(this,"groups",new Map),R(this,"listeners",new Set),R(this,"runtimes",new Map),R(this,"checkpoints",new Map),R(this,"inFlight",new Map)}return e=[{key:"groupKey",value:function(e){return JSON.stringify([e.sessionId,e.messageId])}},{key:"reserve",value:function(e,t){var n=this.groupKey(e);return!this.groups.has(n)&&(this.groups.set(n,{key:$(e),owner:t}),!0)}},{key:"release",value:function(e,t){var n=this.groupKey(e),r=this.groups.get(n);if(r&&r.key===$(e)&&r.owner===t){this.groups.delete(n);var o=!0,i=!1,a=void 0;try{for(var u,l=this.listeners[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)(0,u.value)()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}}},{key:"subscribe",value:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}}},{key:"registerRuntime",value:function(e){var t,n=this;return this.runtimes.set(e,(null!=(t=this.runtimes.get(e))?t:0)+1),function(){var t,r=null!=(t=n.runtimes.get(e))?t:0;r<=1?n.runtimes.delete(e):n.runtimes.set(e,r-1)}}},{key:"matchingRuntimes",value:function(e){return D(this.runtimes.keys()).filter(function(t){if(t.chatConversationModel.currentConversation!==e.sessionId)return!1;var n,r,o=null==(n=t.chatMessageModel.sessions[e.sessionId])?void 0:n.messages,i=null==o?void 0:o.find(function(t){var n;return String(null==(n=t.content)?void 0:n.messageId)===e.messageId});return null==i||null==(r=i.content.tool_calls)?void 0:r.some(function(t){return t.id===e.toolCallId})})}},{key:"beginRequest",value:function(e){var t,n=this.groupKey(e);this.inFlight.set(n,(null!=(t=this.inFlight.get(n))?t:0)+1)}},{key:"endRequest",value:function(e){var t,n=this.groupKey(e),r=null!=(t=this.inFlight.get(n))?t:0;r<=1?(this.inFlight.delete(n),this.checkpoints.delete(n)):this.inFlight.set(n,r-1)}},{key:"rememberCheckpoint",value:function(e,t,n){this.checkpoints.set(this.groupKey(e),{interruptId:t,callIds:new Set(n.map(function(e){return e.id}))})}},{key:"hasCheckpoint",value:function(e,t){var n=this.checkpoints.get(this.groupKey(e));return!!n&&n.callIds.size===t.length&&t.every(function(e){return n.callIds.has(e.id)})}},{key:"synchronize",value:function(e,t,n){var r=new Set(n.map(function(e){return e.id})),o=n.filter(function(e){return e.willInterrupt&&"waiting"===e.invokeStatus}),i=new Set,a=!0,u=!1,l=void 0;try{for(var s,c=this.runtimes.keys()[Symbol.iterator]();!(a=(s=c.next()).done);a=!0)!function(){var n=s.value;if(n.chatConversationModel.currentConversation!==e.sessionId)return;var a=null==(v=n.chatMessageModel.sessions[e.sessionId])?void 0:v.messages,u=null==a?void 0:a.find(function(t){var n;return String(null==(n=t.content)?void 0:n.messageId)===e.messageId}),l=null==u?void 0:u.content.tool_calls,c=null==u?void 0:u.content.metadata;if(!(!l||l.length!==r.size||l.some(function(e){return!r.has(e.id)})||"string"==typeof t&&"string"==typeof(null==c?void 0:c.interruptId)&&c.interruptId!==t||o.some(function(t){var r=n.chatToolCallModel.getInvokeStatus(e.sessionId,e.messageId,t.id);return void 0!==r&&"interrupted"!==r&&"waiting"!==r}))){i.add(n);var f=!0,d=!1,p=void 0;try{for(var v,y,m=o[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var h=y.value,g=n.chatToolCallModel.getInvokeStatus(e.sessionId,e.messageId,h.id);(void 0===g||"interrupted"===g)&&n.chatToolCallModel.updateToolCallInvokeStatus(e.sessionId,e.messageId,h.id,"waiting")}}catch(e){d=!0,p=e}finally{try{f||null==m.return||m.return()}finally{if(d)throw p}}n.chatMessageModel.setSessionMessages(e.sessionId,function(t){return t.map(function(t){var n,r;return String(null==(n=t.content)?void 0:n.messageId)!==e.messageId?t:N(L({},t),{content:N(L({},t.content),{tool_calls:null==(r=t.content.tool_calls)?void 0:r.map(function(e){var t=o.find(function(t){return t.id===e.id});return t&&"interrupted"===e.invokeStatus?N(L({},e),{invokeStatus:"waiting",userDecision:t.userDecision}):e})})})})})}}()}catch(e){u=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(u)throw l}}return i}},{key:"mark",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4?arguments[4]:void 0,i=$(e),a=this.pending.get(i);a||(a={identity:e,owners:new Map},this.pending.set(i,a)),a.owners.set(n,{rejected:t,active:r,runtime:o})}},{key:"has",value:function(e){var t,n;return D(null!=(t=null==(n=this.pending.get($(e)))?void 0:n.owners.values())?t:[]).some(function(e){return e.active()})}},{key:"automaticRuntime",value:function(e){var t,n,r;return null==(r=D(null!=(t=null==(n=this.pending.get($(e)))?void 0:n.owners.values())?t:[]).find(function(e){return e.active()}))?void 0:r.runtime}},{key:"reject",value:function(e){var t=!0,n=!1,r=void 0;try{for(var o,i,a,u=(null!=(o=null==(i=this.pending.get($(e)))?void 0:i.owners.values())?o:[])[Symbol.iterator]();!(t=(a=u.next()).done);t=!0)a.value.rejected()}catch(e){n=!0,r=e}finally{try{t||null==u.return||u.return()}finally{if(n)throw r}}}},{key:"clear",value:function(e,t){var n=$(e),r=this.pending.get(n);t?r&&(r.owners.delete(t),r.owners.size||this.pending.delete(n)):this.pending.delete(n),t&&this.release(e,t)}},{key:"identities",value:function(e){return D(this.pending.values()).filter(function(t){return!e||t.owners.has(e)}).map(function(e){return e.identity})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}(),U=(0,t.createContext)(null),G=(0,P.observer)(function(n){var r,o,i=n.runtime,a=n.enabled,u=(0,e.useApp)().apiClient,l=(0,t.useContext)(U),s=i.chatConversationModel.currentConversation,c=null==(r=i.chatMessageModel.sessions[s||"__draft__"])?void 0:r.messages,f=null==(o=i.chatToolCallModel.sessions[s||"__draft__"])?void 0:o.toolCalls,d=(0,t.useRef)(new Set),p=(0,t.useRef)(new Map),v=(0,t.useRef)(new Map),y=(0,t.useRef)({}),m=B((0,t.useState)(0),2),h=m[0],g=m[1],b=(0,t.useRef)(a);b.current=a,(0,t.useEffect)(function(){return null==l?void 0:l.registerRuntime(i)},[l,i]),(0,t.useEffect)(function(){return null==l?void 0:l.subscribe(function(){return g(function(e){return e+1})})},[l]);var w=(0,t.useCallback)(function(e){i.chatMessageModel.setSessionMessages(e.sessionId,function(t){return t.map(function(t){var n,r;return String(null==(n=t.content)?void 0:n.messageId)!==e.messageId?t:N(L({},t),{content:N(L({},t.content),{tool_calls:null==(r=t.content.tool_calls)?void 0:r.map(function(t){return t.id===e.toolCallId?N(L({},t),{auto:!1}):t})})})})})},[i]),S=(0,t.useMemo)(function(){return s&&c&&f&&a?c.flatMap(function(e){var t,n=e.content,r=null==n?void 0:n.messageId;return(null==n?void 0:n.from)==="sub-agent"||!r||(null==(t=n.tool_calls)?void 0:t.some(function(e){return"interrupted"===e.invokeStatus&&!0===e.auto}))?[]:(n.tool_calls||[]).filter(function(e){return"interrupted"===e.invokeStatus&&!1===e.auto&&i.chatToolCallModel.isInterrupted(s,r,e.id)}).map(function(e){return{sessionId:s,messageId:String(r),toolCallId:e.id}})}):[]},[a,c,i,s,f]);return(0,t.useEffect)(function(){if(a&&s&&l){var e=!0,t=!1,n=void 0;try{for(var r,o=S[Symbol.iterator]();!(e=(r=o.next()).done);e=!0)!function(){var e=r.value,t=$(e);d.current.has(t)||!l.reserve(e,y.current)||(d.current.add(t),v.current.set(t,e),u.request({url:"agentAutoApproval:eligible",method:"post",data:e,skipNotify:!0}).then(function(n){var r,o,a,u,s=null==(r=i.chatMessageModel.sessions[e.sessionId])?void 0:r.messages.find(function(t){var n,r;return String(null==(n=t.content)?void 0:n.messageId)===e.messageId&&(null==(r=t.content)?void 0:r.from)!=="sub-agent"}),c=null==s||null==(o=s.content)?void 0:o.tool_calls,f=null==c?void 0:c.find(function(t){return t.id===e.toolCallId});if((null==(u=n.data)||null==(a=u.data)?void 0:a.eligible)!==!0||!b.current||i.chatConversationModel.currentConversation!==e.sessionId||!i.chatToolCallModel.isInterrupted(e.sessionId,e.messageId,e.toolCallId)||!f||!1!==f.auto||"interrupted"!==f.invokeStatus||(null==c?void 0:c.some(function(e){return"interrupted"===e.invokeStatus&&!0===e.auto}))){l.release(e,y.current),v.current.delete(t);return}l.mark(e,function(){b.current=!1,w(e),window.dispatchEvent(new CustomEvent("agent-auto-approval-stale",{detail:e.sessionId}))},y.current,function(){return b.current},i),p.current.set(t,e),i.chatMessageModel.setSessionMessages(e.sessionId,function(t){return t.map(function(t){var n,r,o;return String(null==(n=t.content)?void 0:n.messageId)!==e.messageId||(null==(r=t.content)?void 0:r.from)==="sub-agent"?t:N(L({},t),{content:N(L({},t.content),{tool_calls:null==(o=t.content.tool_calls)?void 0:o.map(function(t){if(t.id!==e.toolCallId||"interrupted"!==t.invokeStatus)return t;var n=L({},t);return Object.defineProperty(n,"auto",{enumerable:!0,configurable:!0,get:function(){return b.current&&i.chatConversationModel.currentConversation===e.sessionId&&i.chatToolCallModel.isInterrupted(e.sessionId,e.messageId,e.toolCallId)}}),n})})})})})}).catch(function(){l.release(e,y.current),v.current.delete(t)}))}()}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}},[u,S,a,h,l,w,i,s]),(0,t.useEffect)(function(){if(!a){var e=!0,t=!1,n=void 0;try{for(var r,o=p.current.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value;w(i)}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}d.current.clear()}},[a,w]),(0,t.useEffect)(function(){var e=!0,t=!1,n=void 0;try{for(var r,o,a=(null!=(r=null==l?void 0:l.identities(y.current))?r:[])[Symbol.iterator]();!(e=(o=a.next()).done);e=!0)!function(){var e,t,n,r,a=o.value;if(a.sessionId===s){var u=null==(e=i.chatMessageModel.sessions[a.sessionId])?void 0:e.messages.find(function(e){var t;return String(null==(t=e.content)?void 0:t.messageId)===a.messageId}),c=null==u||null==(n=u.content)||null==(t=n.tool_calls)?void 0:t.find(function(e){return e.id===a.toolCallId});c&&(null==(r=Object.getOwnPropertyDescriptor(c,"auto"))?void 0:r.get)&&!i.chatToolCallModel.isInterrupted(a.sessionId,a.messageId,a.toolCallId)?w(a):c&&!0===c.auto&&"interrupted"===c.invokeStatus||(null==l||l.clear(a,y.current),p.current.delete($(a)),v.current.delete($(a)))}}()}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}},[c,l,w,i,s,f]),(0,t.useEffect)(function(){return function(){b.current=!1;var e=!0,t=!1,n=void 0;try{for(var r,o=p.current.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0)!function(){var e=r.value;w(e),setTimeout(function(){return null==l?void 0:l.clear(e,y.current)},0)}()}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}var i=!0,a=!1,u=void 0;try{for(var s,c=v.current[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var f=B(s.value,2),d=f[0],m=f[1];p.current.has(d)||null==l||l.release(m,y.current)}}catch(e){a=!0,u=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw u}}p.current.clear(),v.current.clear()}},[l,w]),null});function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){n(e);return}u.done?t(l):Promise.resolve(l).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){W(i,r,o,a,u,"next",e)}function u(e){W(i,r,o,a,u,"throw",e)}a(void 0)})}}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||X(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}}function Y(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:l(0)}),u(a,"throw",{value:l(1)}),u(a,"return",{value:l(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function l(u){return function(l){var s=[u,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function Z(r){var o,i=r.children,a=(0,e.useApp)(),u=V((0,t.useState)([]),2),l=u[0],s=u[1],c=(0,t.useMemo)(function(){return new z},[]);return o=(0,e.useApp)().apiClient,(0,t.useEffect)(function(){var e=new WeakMap,t=o.axios.interceptors.request.use(function(t){if(!(null==(n=t.url)?void 0:n.split("?")[0].endsWith("aiConversations:updateUserDecision")))return t;var n,r=t.data;if(!r||(void 0===r?"undefined":K(r))!=="object"||Array.isArray(r))return t;var o=r.sessionId,i=r.messageId,a=r.toolCallId,u=r.userDecision;if("string"!=typeof o||"string"!=typeof i&&"number"!=typeof i||"string"!=typeof a||!u||(void 0===u?"undefined":K(u))!=="object")return t;var l={sessionId:o,messageId:String(i),toolCallId:a},s="approve"===u.type&&c.has(l);return s&&(t.data=N(L({},r),{agentAutoApproval:!0})),c.beginRequest(l),e.set(t,{identity:l,automatic:s,origin:s?c.automaticRuntime(l):void 0,runtimes:c.matchingRuntimes(l)}),t}),n=o.axios.interceptors.response.use(function(t){var n=e.get(t.config);if(!n)return t;var r=n.identity,o=n.automatic;try{var i,a=null==(i=t.data)?void 0:i.data,u=null==a?void 0:a.agentAutoApprovalCheckpoint,l=u&&(void 0===u?"undefined":K(u))==="object"?u:void 0,s=function(e){if(!Array.isArray(e))return null;var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value;if(!u||(void 0===u?"undefined":K(u))!=="object"||Array.isArray(u)||"string"!=typeof u.id||"boolean"!=typeof u.willInterrupt)return null;t.push({id:u.id,willInterrupt:u.willInterrupt,invokeStatus:"string"==typeof u.invokeStatus?u.invokeStatus:void 0,userDecision:u.userDecision})}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}(null==a?void 0:a.toolCalls);if(l&&"string"==typeof l.interruptId&&!0===l.validSnapshot&&s){c.rememberCheckpoint(r,l.interruptId,s);var f=c.synchronize(r,l.interruptId,s);if(!0===l.canFinalize&&(o?n.origin&&f.has(n.origin):n.runtimes.some(function(e){return f.has(e)}))||!a||(a.updated=0),o&&!0!==l.decisionRecorded){var d=s.find(function(e){return e.id===r.toolCallId});(null==d?void 0:d.invokeStatus)!=="waiting"&&c.reject(r)}}else if(!l&&s&&(n.runtimes.length>0||o&&n.origin||c.hasCheckpoint(r,s))&&s.length>1&&new Set(s.map(function(e){return e.id})).size===s.length&&s.some(function(e){return e.id===r.toolCallId&&e.willInterrupt})&&s.some(function(e){return e.willInterrupt&&"waiting"!==e.invokeStatus})){if(c.synchronize(r,void 0,s),o&&(null==a?void 0:a.updated)===0){var p=s.find(function(e){return e.id===r.toolCallId});(null==p?void 0:p.invokeStatus)!=="waiting"&&c.reject(r)}a&&(a.updated=0)}else!l&&s&&c.hasCheckpoint(r,s)?a&&(a.updated=0):o&&(null==a?void 0:a.updated)===0&&c.reject(r)}finally{c.endRequest(r)}return t},function(t){var n=(null==t?void 0:t.config)&&e.get(t.config);return n&&(n.automatic&&c.reject(n.identity),c.endRequest(n.identity)),Promise.reject(t)});return function(){o.axios.interceptors.request.eject(t),o.axios.interceptors.response.eject(n)}},[o,c]),(0,t.useEffect)(function(){var e,t=new Map,n=0,r=".ai-chat-sender-tools, .ai-chat-sender-compact-toolbar",o=function(){e=void 0;for(var i=new Map([[(0,_.getGlobalChatBoxRuntime)(),void 0]]),u=a.flowEngine,l=new Set;u&&!l.has(u);)l.add(u),u.forEachModel(function(e){e.chatBoxRuntime&&i.set(e.chatBoxRuntime,function(){var t;return null==(t=e.props)?void 0:t.systemPrompt})}),u=u.nextEngine;var c=new Map,f=Q(i).map(function(e){var t,n=V(e,2),r=n[0],o=n[1];return{root:null==(t=r.chatBoxModel.chatBoxRef)?void 0:t.current,runtime:r,defaultSystemMessage:o}}).filter(function(e){var t;return!!(null==(t=e.root)?void 0:t.isConnected)}),d=!0,p=!1,v=void 0;try{for(var y,m=f[Symbol.iterator]();!(d=(y=m.next()).done);d=!0)!function(){var e=y.value,t=e.root,n=e.runtime,o=e.defaultSystemMessage,i=!0,a=!1,u=void 0;try{for(var l,s=t.querySelectorAll(r)[Symbol.iterator]();!(i=(l=s.next()).done);i=!0)!function(){var e=l.value;f.some(function(n){return n.root!==t&&t.contains(n.root)&&n.root.contains(e)})||c.set(e,{runtime:n,defaultSystemMessage:o})}()}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}}()}catch(e){p=!0,v=e}finally{try{d||null==m.return||m.return()}finally{if(p)throw v}}var h=!1,g=!0,b=!1,w=void 0;try{for(var S,k=t[Symbol.iterator]();!(g=(S=k.next()).done);g=!0){var I,O=V(S.value,2),C=O[0],j=O[1];(null==(I=c.get(C))?void 0:I.runtime)===j.runtime&&j.element.isConnected||(j.element.remove(),t.delete(C),h=!0)}}catch(e){b=!0,w=e}finally{try{g||null==k.return||k.return()}finally{if(b)throw w}}var E=!0,M=!1,x=void 0;try{for(var A,P=c[Symbol.iterator]();!(E=(A=P.next()).done);E=!0){var T,q=V(A.value,2),R=q[0],L=q[1],N=L.runtime,B=L.defaultSystemMessage;if(!(t.has(R)||R.querySelector("[data-agent-auto-approval]"))){var D=document.createElement("span");D.dataset.agentAutoApproval="true";var K=null==(T=R.querySelector(".anticon-global"))?void 0:T.closest("button"),F=R.querySelector(".ai-chat-sender-submit");(null==K?void 0:K.parentElement)===R?K.after(D):(null==F?void 0:F.parentElement)===R?R.insertBefore(D,F):R.append(D),t.set(R,{element:D,runtime:N,defaultSystemMessage:B}),h=!0}}}catch(e){M=!0,x=e}finally{try{E||null==P.return||P.return()}finally{if(M)throw x}}h&&s(Q(t.values())),document.querySelectorAll(r).length>c.size&&n<5&&(n+=1,e=setTimeout(o,50))},i=function(){e||(e=setTimeout(o,40))},u=function(e){var t;return(null!=(t=Element)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&(e.matches(r)||!!e.querySelector(r))},l=new MutationObserver(function(e){e.some(function(e){return Q(e.addedNodes).concat(Q(e.removedNodes)).some(u)})&&(n=0,i())});return l.observe(document.body,{childList:!0,subtree:!0}),i(),function(){l.disconnect(),e&&clearTimeout(e);var n=!0,r=!1,o=void 0;try{for(var i,a=t.values()[Symbol.iterator]();!(n=(i=a.next()).done);n=!0)i.value.element.remove()}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}},[a]),n().createElement(U.Provider,{value:c},i,l.map(function(e){var t=e.element,r=e.runtime,o=e.defaultSystemMessage;return(0,x.createPortal)(n().createElement(ee,{runtime:r,defaultSystemMessage:o}),t)}))}var ee=(0,P.observer)(function(r){var o=r.runtime,i=r.defaultSystemMessage,a=(0,e.useApp)(),u=(0,T.k)(),l=o.chatBoxModel,s=o.chatConversationModel,c=o.chatMessageModel,f=o.chatToolCallModel,d=s.currentConversation,p=V((0,t.useState)({enabled:!1}),2),y=p[0],m=p[1],h=!!d&&y.sessionId===d&&y.enabled,g=V((0,t.useState)(!1),2),b=g[0],w=g[1],S=V((0,t.useState)(!0),2),k=S[0],I=S[1],O=(0,t.useRef)(),C=(0,t.useRef)(0),j="".concat(a.apiClient.appName||"",":").concat(a.apiClient.storagePrefix),E=function(e){if(window.dispatchEvent(new CustomEvent("agent-auto-approval-changed",{detail:{scope:j,sessionId:e}})),"u">typeof BroadcastChannel)try{var t=new BroadcastChannel("agent-auto-approval:".concat(j,":").concat(e));t.postMessage(null),t.close()}catch(e){}};(0,t.useEffect)(function(){var e=++C.current;if(m({sessionId:d,enabled:!1}),!d){w(!1),I(!0);return}if(O.current!==d)return w(!0),H(function(){var t,n,r;return Y(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),[4,a.apiClient.request({url:"agentAutoApproval:get",method:"post",data:{sessionId:d}})];case 1:return t=o.sent(),e===C.current&&s.currentConversation===d&&(m({sessionId:d,enabled:(null==(r=t.data)||null==(n=r.data)?void 0:n.enabled)===!0}),I(!0)),[3,4];case 2:return o.sent(),e===C.current&&I(!1),[3,4];case 3:return e===C.current&&w(!1),[7];case 4:return[2]}})})(),function(){C.current+=1}},[a.apiClient,s,d]),(0,t.useEffect)(function(){var e=function(){if(m({sessionId:d,enabled:!1}),d){I(!1),w(!0);var e=++C.current;a.apiClient.request({url:"agentAutoApproval:get",method:"post",data:{sessionId:d},skipNotify:!0}).then(function(t){if(e===C.current&&s.currentConversation===d){var n,r;m({sessionId:d,enabled:(null==(r=t.data)||null==(n=r.data)?void 0:n.enabled)===!0}),I(!0),w(!1)}}).catch(function(){e===C.current&&(I(!1),w(!1))})}};return a.eventBus.addEventListener("auth:tokenChanged",e),a.eventBus.addEventListener("auth:roleChanged",e),function(){a.eventBus.removeEventListener("auth:tokenChanged",e),a.eventBus.removeEventListener("auth:roleChanged",e)}},[a.apiClient,a.eventBus,s,d]),(0,t.useEffect)(function(){var e=function(e){if(d&&e.detail===d){var t=++C.current;w(!0),a.apiClient.request({url:"agentAutoApproval:get",method:"post",data:{sessionId:d},skipNotify:!0}).then(function(e){if(t===C.current&&s.currentConversation===d){var n,r;m({sessionId:d,enabled:(null==(r=e.data)||null==(n=r.data)?void 0:n.enabled)===!0}),I(!0),w(!1)}}).catch(function(){t===C.current&&(I(!1),w(!1))})}};return window.addEventListener("agent-auto-approval-stale",e),function(){return window.removeEventListener("agent-auto-approval-stale",e)}},[a.apiClient,s,d]),(0,t.useEffect)(function(){if(d){var e,t=function(){if(O.current!==d&&s.currentConversation===d){var e=++C.current;w(!0),a.apiClient.request({url:"agentAutoApproval:get",method:"post",data:{sessionId:d},skipNotify:!0}).then(function(t){if(e===C.current&&s.currentConversation===d){var n,r;m({sessionId:d,enabled:(null==(r=t.data)||null==(n=r.data)?void 0:n.enabled)===!0}),I(!0),w(!1)}}).catch(function(){e===C.current&&(I(!1),w(!1))})}},n=function(e){var n=e.detail;(null==n?void 0:n.scope)===j&&n.sessionId===d&&t()};if("u">typeof BroadcastChannel)try{(e=new BroadcastChannel("agent-auto-approval:".concat(j,":").concat(d))).onmessage=t}catch(e){}return window.addEventListener("agent-auto-approval-changed",n),window.addEventListener("focus",t),function(){null==e||e.close(),window.removeEventListener("agent-auto-approval-changed",n),window.removeEventListener("focus",t)}}},[a.apiClient,s,d,j]);var M=u(k?h?"Disable automatic approval":"Enable automatic approval":"Automatic approval unavailable");return n().createElement(n().Fragment,null,n().createElement(G,{runtime:o,enabled:h}),n().createElement(v.Tooltip,{title:M,arrow:!1},n().createElement(v.Button,{type:h?"default":"text",color:h?"primary":void 0,variant:h?"filled":void 0,icon:n().createElement(A.CheckCircleOutlined,null),"aria-label":M,"aria-pressed":h,onClick:function(){return H(function(){var e,t,n,r,p,y,g,S,j,M,x,A,P,_,T,q,R,L,N;return Y(this,function(B){switch(B.label){case 0:if(b||!k||l.readonly||!l.currentEmployee)return[2];e=d,t=l.currentEmployee,n=c.sessions.__draft__,(r=!h)||m({sessionId:d,enabled:!1}),w(!0),C.current+=1,B.label=1;case 1:if(B.trys.push([1,9,14,15]),e)return[3,6];if(l.setReadonly(!0),S=c.getSessionState(),"block"!==o.mode)return[3,3];return[4,null==(p=o.getScope)?void 0:p.call(o,{operation:"create"})];case 2:return M=B.sent(),[3,4];case 3:M=void 0,B.label=4;case 4:return j=M,x=l.model,[4,a.apiClient.resource("aiConversations").create({values:{aiEmployee:t,systemMessage:S.systemMessage||(null==i?void 0:i()),skillSettings:S.skillSettings,scope:j,modelSettings:x?{llmService:x.llmService,model:x.model}:void 0}})];case 5:if("string"!=typeof(P=null==(A=null==(y=B.sent().data)?void 0:y.data)?void 0:A.sessionId)||!P)throw Error("Conversation creation failed.");if(s.currentConversation||(null==(g=l.currentEmployee)?void 0:g.username)!==t.username||c.sessions.__draft__!==n)return[2];return O.current=e=P,c.migrateSessionState(void 0,e),f.migrateSessionState("__draft__",e),s.keyword||s.setConversations(function(n){var r,o;return[(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},A),o=o={sessionId:e,aiEmployee:t,read:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r)].concat(Q(n.filter(function(t){return t.sessionId!==e})))}),s.setCurrentConversation(e),[3,7];case 6:O.current=e,B.label=7;case 7:return[4,a.apiClient.request({url:"agentAutoApproval:set",method:"post",data:{sessionId:e,enabled:r}})];case 8:return _=B.sent(),s.currentConversation===e&&(m({sessionId:e,enabled:(null==(q=_.data)||null==(T=q.data)?void 0:T.enabled)===!0}),I(!0)),E(e),[3,15];case 9:if(B.sent(),v.message.error(u("Could not update automatic approval")),!(e&&s.currentConversation===e))return[3,13];B.label=10;case 10:return B.trys.push([10,12,,13]),[4,a.apiClient.request({url:"agentAutoApproval:get",method:"post",data:{sessionId:e},skipNotify:!0})];case 11:return R=B.sent(),s.currentConversation===e&&(m({sessionId:e,enabled:(null==(N=R.data)||null==(L=N.data)?void 0:L.enabled)===!0}),I(!0)),[3,13];case 12:return B.sent(),s.currentConversation===e&&I(!1),[3,13];case 13:return[3,15];case 14:return d||o.workflowTaskModel.currentWorkflowTask||l.setReadonly(!1),O.current=void 0,s.currentConversation!==e&&s.currentConversation||w(!1),[7];case 15:return[2]}})})()},disabled:b||!k||!l.currentEmployee||l.readonly})))});function et(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){n(e);return}u.done?t(l):Promise.resolve(l).then(r,o)}function en(e,t,n){return(en=ea()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&eo(o,n.prototype),o}).apply(null,arguments)}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eo(e,t){return(eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ei(e){var t="function"==typeof Map?new Map:void 0;return(ei=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return en(e,arguments,er(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),eo(n,e)})(e)}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ea=function(){return!!e})()}var eu=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=er(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,ea()?Reflect.construct(e,t||[],er(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&eo(n,e),t=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:l(0)}),u(a,"throw",{value:l(1)}),u(a,"return",{value:l(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function l(u){return function(l){var s=[u,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(e){return this.app.use(M),this.app.use(Z),E(this.ai.toolsManager,"skill_hub_execute"),this.pluginSettingsManager.addMenuItem({key:"ai-orchestrator",title:this.t("Agent Orchestrator"),icon:"ApartmentOutlined",aclSnippet:"pm.plugin-agent-orchestrator"}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"index",title:this.t("Native Monitor"),componentLoader:function(){return y.e("117").then(y.bind(y,524))},sort:-1}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"tracing",title:this.t("Execution Tracing"),componentLoader:function(){return y.e("619").then(y.bind(y,230))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"usage-governance",title:this.t("Usage and cost"),componentLoader:function(){return Promise.all([y.e("453"),y.e("325")]).then(y.bind(y,660))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"employee-governance",title:this.t("Employee governance"),componentLoader:function(){return y.e("404").then(y.bind(y,623))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"harness-profiles",title:this.t("Policy Profiles"),componentLoader:function(){return y.e("773").then(y.bind(y,76))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"approvals",title:this.t("Approvals"),componentLoader:function(){return y.e("981").then(y.bind(y,396))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"agent-bindings",title:this.t("Agent Bindings"),componentLoader:function(){return Promise.all([y.e("453"),y.e("652")]).then(y.bind(y,327))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"knowledge-access",title:this.t("Knowledge Access"),componentLoader:function(){return y.e("253").then(y.bind(y,740))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"retrieval-trace",title:this.t("Retrieval Trace"),componentLoader:function(){return y.e("993").then(y.bind(y,928))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"memory-inspector",title:this.t("Memory Inspector"),componentLoader:function(){return y.e("53").then(y.bind(y,676))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-definitions",title:this.t("Skill Hub Definitions"),componentLoader:function(){return y.e("41").then(y.bind(y,224))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-executions",title:this.t("Execution History"),componentLoader:function(){return y.e("264").then(y.bind(y,715))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-loop-settings",title:this.t("Skill Review Settings"),componentLoader:function(){return y.e("70").then(y.bind(y,581))}}),this.pluginSettingsManager.addPageTabItem({menuKey:"ai-orchestrator",aclSnippet:"pm.plugin-agent-orchestrator",key:"skill-metrics",title:this.t("Metrics"),componentLoader:function(){return y.e("214").then(y.bind(y,349))}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){et(i,r,o,a,u,"next",e)}function u(e){et(i,r,o,a,u,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(ei(e.Plugin))}(),S}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,12 +11,18 @@ module.exports = {
|
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"antd": "5.24.2",
|
|
13
13
|
"@ant-design/icons": "5.6.1",
|
|
14
|
-
"@nocobase/client": "2.2.
|
|
15
|
-
"@nocobase/client-v2": "2.2.
|
|
16
|
-
"@nocobase/server": "2.2.
|
|
14
|
+
"@nocobase/client": "2.2.40",
|
|
15
|
+
"@nocobase/client-v2": "2.2.40",
|
|
16
|
+
"@nocobase/server": "2.2.40",
|
|
17
|
+
"@nocobase/actions": "2.2.40",
|
|
18
|
+
"@nocobase/flow-engine": "2.2.40",
|
|
19
|
+
"@nocobase/plugin-ai": "2.2.40",
|
|
20
|
+
"react-dom": "18.2.0",
|
|
17
21
|
"dayjs": "1.11.13",
|
|
18
|
-
"@nocobase/database": "2.2.
|
|
19
|
-
"
|
|
20
|
-
"@nocobase/
|
|
21
|
-
"
|
|
22
|
+
"@nocobase/database": "2.2.40",
|
|
23
|
+
"sequelize": "6.35.2",
|
|
24
|
+
"@nocobase/ai": "2.2.40",
|
|
25
|
+
"langchain": "1.2.39",
|
|
26
|
+
"ahooks": "3.7.8",
|
|
27
|
+
"react-i18next": "11.18.6"
|
|
22
28
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -222,5 +222,312 @@
|
|
|
222
222
|
"Metrics by Skill (Recent)": "Metrics by Skill (Recent)",
|
|
223
223
|
"Total Executions (Recent)": "Total Executions (Recent)",
|
|
224
224
|
"Succeeded": "Succeeded",
|
|
225
|
-
"Timeout/Canceled": "Timeout/Canceled"
|
|
225
|
+
"Timeout/Canceled": "Timeout/Canceled",
|
|
226
|
+
"Choice": "Choice",
|
|
227
|
+
"Review this Skill Hub tool call before execution.": "Review this Skill Hub tool call before execution.",
|
|
228
|
+
"Failed to submit skill decision": "Failed to submit skill decision",
|
|
229
|
+
"Native harness support": "Native harness support",
|
|
230
|
+
"Native harness capability matrix": "Native harness capability matrix",
|
|
231
|
+
"Native chat": "Native chat",
|
|
232
|
+
"Native api": "Native API",
|
|
233
|
+
"Native workflow": "Native workflow",
|
|
234
|
+
"Native sub-agent": "Native sub-agent",
|
|
235
|
+
"Harness capability": "Harness capability",
|
|
236
|
+
"Enforced": "Enforced",
|
|
237
|
+
"Observe only": "Observe only",
|
|
238
|
+
"Unsupported": "Unsupported",
|
|
239
|
+
"Scoped plugin-owned enforcement": "Scoped plugin-owned enforcement",
|
|
240
|
+
"Plugin-owned harness capabilities": "Plugin-owned harness capabilities",
|
|
241
|
+
"Enforcement scope": "Enforcement scope",
|
|
242
|
+
"Telemetry settings are plugin-local": "Telemetry settings are plugin-local",
|
|
243
|
+
"Harness profiles keep versioned settings; native runtime support is shown above by capability.": "Harness profiles keep versioned settings; native runtime support is shown above by capability.",
|
|
244
|
+
"Native tool access and approval": "Native tool access and approval",
|
|
245
|
+
"Native runtime limits": "Native runtime limits",
|
|
246
|
+
"Native delegation controls": "Native delegation controls",
|
|
247
|
+
"Native memory and context controls": "Native memory and context controls",
|
|
248
|
+
"Native worktree and network isolation": "Native worktree and network isolation",
|
|
249
|
+
"Native execution flow monitoring": "Native execution flow monitoring",
|
|
250
|
+
"Harness capability: no native tool gate": "plugin-ai can register additional plugin tools, but it has no supported global interceptor that applies these profile decisions to native tools.",
|
|
251
|
+
"Harness capability: no native runtime limit gate": "No supported native invocation gate enforces harness timeouts, token or cost budgets, invocation counts, or tool-call caps. Telemetry and post-call usage are not admission control.",
|
|
252
|
+
"Harness capability: core owns delegation": "Core owns native loop and sub-agent dispatch. The plugin observer does not block or rewrite dispatch, and lifecycle hooks are best-effort.",
|
|
253
|
+
"Harness capability: no native context extension": "Native prompt, memory, and context behavior has no verified shared extension contract. These values are preserved for compatibility but are not applied to native runs.",
|
|
254
|
+
"Harness capability: native isolation unsupported": "Harness isolation settings do not create native worktrees or restrict network access for core-managed calls.",
|
|
255
|
+
"Harness capability: chat monitoring scope": "Monitoring reads available persisted conversation data. It does not change execution; coverage depends on native records being persisted and reconciled.",
|
|
256
|
+
"Harness capability: API monitoring scope": "AgentRuntimeLifecycle hooks are used only on the plugin-ai-api route and swallow hook errors. They are best-effort observation, not a policy gate.",
|
|
257
|
+
"Harness capability: workflow monitoring scope": "No shared native workflow harness hook is verified. Monitoring is read-only and depends on available persisted records.",
|
|
258
|
+
"Harness capability: sub-agent monitoring scope": "The plugin observer records sub-agent and tool flow without changing dispatch or results; it is not a supported policy extension point.",
|
|
259
|
+
"Skill Hub sandbox execution": "Skill Hub sandbox execution",
|
|
260
|
+
"Skill Hub sandbox timeout cap": "Skill Hub sandbox timeout cap",
|
|
261
|
+
"Skill Hub inline output spill": "Skill Hub inline output spill",
|
|
262
|
+
"Harness capability: Skill Hub timeout behavior": "When the profile resolves, the configured timeout caps the Skill Hub skill timeout in its sandbox after rounding milliseconds up to whole seconds (1500 ms becomes 2 seconds). If profile resolution fails, Skill Hub uses the skill's own timeout.",
|
|
263
|
+
"Harness capability: Skill Hub output spill behavior": "When the profile resolves, stdout larger than maxInlineBytes is replaced inline with a preview and locator. This is best-effort: if writing the spill file fails, full stdout stays inline, and the preview plus locator can exceed very small byte caps. Other native tools are not covered.",
|
|
264
|
+
"Harness capability: telemetry settings scope": "Capture, redaction, and sharing configure plugin-owned telemetry. Native records reconciled later may lack an invocation-time profile snapshot, so the current profile cannot guarantee their historical handling. Global cleanup uses ORCHESTRATOR_LOG_RETENTION_DAYS first, then the enabled default profile's observability.tracingRetentionDays (with legacy top-level tracingRetentionDays fallback), then 30 days. It does not guarantee per-profile retention for every span.",
|
|
265
|
+
"Harness capability: native enforcement boundary": "Core owns native chat, API, workflow, and sub-agent execution. No shared injectable middleware or tool-call interceptor is available, so unsupported profile settings are preserved but do not act as mandatory native controls.",
|
|
266
|
+
"Native monitor coverage description": "Native agent sessions and persisted calls are reconciled in bounded passes. Repeat full passes to capture later updates. Session roots do not represent individual requests.",
|
|
267
|
+
"Continue sync": "Continue sync",
|
|
268
|
+
"Native sync pass completed ({{count}} records in this page)": "Native sync pass completed ({{count}} records in this page)",
|
|
269
|
+
"Synced {{count}} records; continue to finish this pass": "Synced {{count}} records; continue to finish this pass",
|
|
270
|
+
"Model usage": "Model usage",
|
|
271
|
+
"Model calls": "Model calls",
|
|
272
|
+
"Input tokens": "Input tokens",
|
|
273
|
+
"Output tokens": "Output tokens",
|
|
274
|
+
"Incomplete": "Incomplete",
|
|
275
|
+
"Calculated cost": "Calculated cost",
|
|
276
|
+
"Unpriced or incomplete": "Unpriced or incomplete",
|
|
277
|
+
"Estimated calls": "Estimated calls",
|
|
278
|
+
"Missing usage calls": "Missing usage calls",
|
|
279
|
+
"Unpriced calls": "Unpriced calls",
|
|
280
|
+
"Trace detail truncated; usage totals are incomplete": "Trace detail truncated; usage totals are incomplete",
|
|
281
|
+
"Native content omitted without capture snapshot": "Native message and tool content is omitted because no invocation-time capture policy snapshot is available.",
|
|
282
|
+
"actual": "Actual usage",
|
|
283
|
+
"estimated": "Estimated usage",
|
|
284
|
+
"missing": "Missing usage",
|
|
285
|
+
"Monitor descendant filters follow up to 32 levels": "Descendant filters follow up to 32 levels.",
|
|
286
|
+
"Usage and cost": "Usage and cost",
|
|
287
|
+
"Employee governance": "Employee governance",
|
|
288
|
+
"All employees": "All employees",
|
|
289
|
+
"Allowed model format hint": "Enter each LLM service and model as service:model. An enabled restriction with no models blocks every model.",
|
|
290
|
+
"Allowed models": "Allowed models",
|
|
291
|
+
"Apply filters": "Apply filters",
|
|
292
|
+
"Apply managed instruction": "Apply managed instruction",
|
|
293
|
+
"Apply managed instruction to this user?": "Apply managed instruction to this user?",
|
|
294
|
+
"Cached input tokens": "Cached input tokens",
|
|
295
|
+
"Close": "Close",
|
|
296
|
+
"Cost": "Cost",
|
|
297
|
+
"Create policy": "Create policy",
|
|
298
|
+
"Date range": "Date range",
|
|
299
|
+
"Department": "Department",
|
|
300
|
+
"Department ID": "Department ID",
|
|
301
|
+
"Department attribution": "Department attribution",
|
|
302
|
+
"Details": "Details",
|
|
303
|
+
"Edit governance policy": "Edit governance policy",
|
|
304
|
+
"Effective instruction": "Effective instruction",
|
|
305
|
+
"Effective policies": "Effective policies",
|
|
306
|
+
"Employee": "Employee",
|
|
307
|
+
"Employee system prompt": "Employee system prompt",
|
|
308
|
+
"Employee system prompt scope hint": "Publishing affects all users of this AI employee.",
|
|
309
|
+
"Enter a scope ID": "Enter a scope ID",
|
|
310
|
+
"Enter a user ID": "Enter a user ID",
|
|
311
|
+
"Governance capability scope": "Governance capability scope",
|
|
312
|
+
"Governance capability scope description": "Quota and model checks run at supported native chat request entries against recorded model calls directly owned by the user and session. Sub-agent, workflow, and unattributed calls are outside exact department budgets. No allowance is reserved for future calls, and in-flight or concurrent calls can exceed the limit.",
|
|
313
|
+
"Governance policies": "Governance policies",
|
|
314
|
+
"Governance scope: department": "Governance scope: department",
|
|
315
|
+
"Governance scope: employee": "Governance scope: employee",
|
|
316
|
+
"Governance scope: user": "Governance scope: user",
|
|
317
|
+
"Group": "Group",
|
|
318
|
+
"Group by": "Group by",
|
|
319
|
+
"Include inferred departments": "Include inferred departments",
|
|
320
|
+
"Inferred departments are current membership only": "Inferred departments use current membership. They are not historical attribution or quota accounting.",
|
|
321
|
+
"LLM service": "LLM service",
|
|
322
|
+
"Leave empty to apply to all employees": "Leave empty to apply to all AI employees.",
|
|
323
|
+
"Limit policy to employee": "Limit policy to employee",
|
|
324
|
+
"Managed": "Managed",
|
|
325
|
+
"Managed instruction": "Managed instruction",
|
|
326
|
+
"Managed instruction applied": "Managed instruction applied",
|
|
327
|
+
"Managed instruction content hint": "This is added to the employee system prompt. Users can see it, so do not include secrets.",
|
|
328
|
+
"Managed instruction visibility": "Managed instruction visibility",
|
|
329
|
+
"Managed instruction visibility description": "This instruction is stored in the user’s AI employee settings and may be viewed by the user. Raw and none prompt modes do not apply it.",
|
|
330
|
+
"Model": "Model",
|
|
331
|
+
"Model call details": "Model call details",
|
|
332
|
+
"Monthly cost limit (USD)": "Monthly cost limit (USD)",
|
|
333
|
+
"Monthly token limit": "Monthly token limit",
|
|
334
|
+
"No": "No",
|
|
335
|
+
"Operation failed: {{message}}": "Operation failed: {{message}}",
|
|
336
|
+
"Original user instruction restored": "Original user instruction restored",
|
|
337
|
+
"Override employee system prompt": "Override employee system prompt",
|
|
338
|
+
"Policy version restored": "Policy version restored",
|
|
339
|
+
"Preview and apply managed instruction": "Preview and apply managed instruction",
|
|
340
|
+
"Preview effective policy": "Preview effective policy",
|
|
341
|
+
"Price version": "Price version",
|
|
342
|
+
"Priced subtotal": "Priced subtotal",
|
|
343
|
+
"Pricing status": "Pricing status",
|
|
344
|
+
"Projected native prompt": "Projected native prompt",
|
|
345
|
+
"Prompt mode": "Prompt mode",
|
|
346
|
+
"Provider": "Provider",
|
|
347
|
+
"Publish a copy of this version?": "Publish a copy of this version?",
|
|
348
|
+
"Publish this governance draft?": "Publish this governance draft?",
|
|
349
|
+
"Published version": "Published version",
|
|
350
|
+
"Reasoning tokens": "Reasoning tokens",
|
|
351
|
+
"Restore original instruction": "Restore original instruction",
|
|
352
|
+
"Restore original user instruction?": "Restore original user instruction?",
|
|
353
|
+
"Restore version": "Restore version",
|
|
354
|
+
"Restrict allowed models": "Restrict allowed models",
|
|
355
|
+
"Scope": "Scope",
|
|
356
|
+
"Scope ID": "Scope ID",
|
|
357
|
+
"Select a date range": "Select a date range",
|
|
358
|
+
"Select an employee": "Select an employee",
|
|
359
|
+
"Unable to load governance policies": "Unable to load governance policies",
|
|
360
|
+
"Unable to load policy versions": "Unable to load policy versions",
|
|
361
|
+
"Unable to load usage data": "Unable to load usage data",
|
|
362
|
+
"Unknown": "Unknown",
|
|
363
|
+
"Usage breakdown": "Usage breakdown",
|
|
364
|
+
"Usage filters": "Usage filters",
|
|
365
|
+
"Usage ledger coverage": "Usage ledger coverage",
|
|
366
|
+
"Usage ledger coverage description": "Reports use persisted model-call records. Department attribution can be missing, and priced subtotals only include priced calls. They are not provider invoices.",
|
|
367
|
+
"Usage source": "Usage source",
|
|
368
|
+
"Usage summary": "Usage summary",
|
|
369
|
+
"Warnings": "Warnings",
|
|
370
|
+
"Yes": "Yes",
|
|
371
|
+
"Usage attribution: snapshot": "Invocation snapshot",
|
|
372
|
+
"Usage attribution: inferred": "Inferred from current department",
|
|
373
|
+
"Usage attribution: unknown": "Unknown",
|
|
374
|
+
"Invalid usage report filters": "Invalid usage report filters",
|
|
375
|
+
"Admin role is required to view agent usage": "Admin role is required to view agent usage",
|
|
376
|
+
"governance.promptModeUnsupported": "This employee prompt mode does not support managed personal instructions.",
|
|
377
|
+
"governance.departmentUnavailable": "The user’s main department could not be verified.",
|
|
378
|
+
"governance.noInstruction": "There is no published managed instruction to apply.",
|
|
379
|
+
"governance.observedQuotaOnly": "Quota checks use recorded calls directly owned by the user and session at supported native chat entries. Sub-agent, workflow, and unattributed calls are outside exact department budgets, and in-flight or concurrent calls can exceed the limit.",
|
|
380
|
+
"Employee system prompt action": "Employee system prompt action",
|
|
381
|
+
"Keep current system prompt": "Keep current system prompt",
|
|
382
|
+
"Set employee system prompt": "Set employee system prompt",
|
|
383
|
+
"Use employee default system prompt": "Use employee default system prompt",
|
|
384
|
+
"Model selector": "Model selector",
|
|
385
|
+
"All models": "All models",
|
|
386
|
+
"Model selector format hint": "Optional. Use service:model. Model-specific policies do not include managed instructions or system prompts.",
|
|
387
|
+
"Actual usage calls": "Actual usage calls",
|
|
388
|
+
"Department snapshot calls": "Department snapshot calls",
|
|
389
|
+
"Department inferred calls": "Department inferred calls",
|
|
390
|
+
"Department unattributed calls": "Department unattributed calls",
|
|
391
|
+
"Calls without usage identity": "Calls without usage identity",
|
|
392
|
+
"Original employee prompt": "Original employee prompt",
|
|
393
|
+
"Preview model selector hint": "For preview only, use service:model. Managed instructions do not depend on the model.",
|
|
394
|
+
"No models allowed": "No models allowed",
|
|
395
|
+
"Policy access": "Policy access",
|
|
396
|
+
"Policy access: inherit": "Policy access: inherit",
|
|
397
|
+
"Policy access: allow": "Policy access: allow",
|
|
398
|
+
"Policy access: deny": "Policy access: deny",
|
|
399
|
+
"Policy access hint": "Deny blocks requests. Allow does not override other policies or native ACL.",
|
|
400
|
+
"Conflict": "Conflict",
|
|
401
|
+
"Managed prompt conflict": "The native instruction has changed or its association is missing. Review it before restoring or releasing management.",
|
|
402
|
+
"Release instruction management?": "Release instruction management?",
|
|
403
|
+
"Release instruction management description": "Release keeps the current native instruction and discards the saved original instruction backup. Preview the current state before confirming.",
|
|
404
|
+
"Release instruction management": "Release instruction management",
|
|
405
|
+
"Instruction management released": "Instruction management released",
|
|
406
|
+
"Orphaned instruction binding removed": "Orphaned instruction binding removed",
|
|
407
|
+
"No managed instruction found": "No managed instruction found",
|
|
408
|
+
"Preview the current conflict before releasing": "Preview the current conflict before releasing",
|
|
409
|
+
"Governance audit": "Governance audit",
|
|
410
|
+
"Unable to load governance audit": "Unable to load governance audit",
|
|
411
|
+
"Administrator ID": "Administrator ID",
|
|
412
|
+
"Policy ID": "Policy ID",
|
|
413
|
+
"Version ID": "Version ID",
|
|
414
|
+
"Governance audit: saveDraft": "Governance audit: saveDraft",
|
|
415
|
+
"Governance audit: publish": "Governance audit: publish",
|
|
416
|
+
"Governance audit: rollback": "Governance audit: rollback",
|
|
417
|
+
"Governance audit: apply": "Governance audit: apply",
|
|
418
|
+
"Governance audit: restore": "Governance audit: restore",
|
|
419
|
+
"Governance audit: restoreOrphan": "Governance audit: restoreOrphan",
|
|
420
|
+
"Governance audit: release": "Governance audit: release",
|
|
421
|
+
"This AI employee instruction is managed by an administrator.": "This AI employee instruction is managed by an administrator.",
|
|
422
|
+
"AI governance requires an assigned primary department.": "AI governance requires an assigned primary department.",
|
|
423
|
+
"AI quota cannot be checked because usage coverage is incomplete.": "AI quota cannot be checked because usage coverage is incomplete.",
|
|
424
|
+
"AI quota cannot be checked because cost is incomplete or unpriced.": "AI quota cannot be checked because cost is incomplete or unpriced.",
|
|
425
|
+
"AI token quota reached.": "AI token quota reached.",
|
|
426
|
+
"AI cost quota reached.": "AI cost quota reached.",
|
|
427
|
+
"The AI employee must match the conversation for managed usage.": "The AI employee must match the conversation for managed usage.",
|
|
428
|
+
"AI governance could not resolve the model.": "AI governance could not resolve the model.",
|
|
429
|
+
"The managed AI employee prompt changed and needs administrator review.": "The managed AI employee prompt changed and needs administrator review.",
|
|
430
|
+
"Your AI employee or model is not allowed by governance policy.": "Your AI employee or model is not allowed by governance policy.",
|
|
431
|
+
"Managed AI instructions need to be applied by an administrator.": "Managed AI instructions need to be applied by an administrator.",
|
|
432
|
+
"A system prompt can only be configured for an employee policy.": "A system prompt can only be configured for an employee policy.",
|
|
433
|
+
"Policy scope is invalid.": "Policy scope is invalid.",
|
|
434
|
+
"Department id is invalid.": "Department id is invalid.",
|
|
435
|
+
"Employee policy scope does not match its employee selector.": "Employee policy scope does not match its employee selector.",
|
|
436
|
+
"Model key must include the LLM service and model.": "Model key must include the LLM service and model.",
|
|
437
|
+
"A model-specific policy cannot change a persistent prompt.": "A model-specific policy cannot change a persistent prompt.",
|
|
438
|
+
"Policy scope is unavailable.": "Policy scope is unavailable.",
|
|
439
|
+
"Policy scope does not exist.": "Policy scope does not exist.",
|
|
440
|
+
"Policy does not exist.": "Policy does not exist.",
|
|
441
|
+
"Published policy version does not exist.": "Published policy version does not exist.",
|
|
442
|
+
"Policy has no draft to publish.": "Policy has no draft to publish.",
|
|
443
|
+
"The policy draft changed. Refresh it before publishing.": "The policy draft changed. Refresh it before publishing.",
|
|
444
|
+
"AI employee does not exist.": "AI employee does not exist.",
|
|
445
|
+
"User does not exist.": "User does not exist.",
|
|
446
|
+
"Published governance policy is unavailable.": "Published governance policy is unavailable.",
|
|
447
|
+
"Managed instructions require the default system prompt mode.": "Managed instructions require the default system prompt mode.",
|
|
448
|
+
"No published instruction applies to this user and employee.": "No published instruction applies to this user and employee.",
|
|
449
|
+
"Managed prompt changed outside governance. Review it before applying.": "Managed prompt changed outside governance. Review it before applying.",
|
|
450
|
+
"Managed prompt changed outside governance. Review it before restoring.": "Managed prompt changed outside governance. Review it before restoring.",
|
|
451
|
+
"The native instruction changed. Refresh before releasing it.": "The native instruction changed. Refresh before releasing it.",
|
|
452
|
+
"Policy version is required.": "Policy version is required.",
|
|
453
|
+
"Governance records must be changed using the governance actions.": "Governance records must be changed using the governance actions.",
|
|
454
|
+
"Human review is required for this skill. Disable Auto call and approve the tool call before execution.": "Human review is required for this skill. Disable Auto call and approve the tool call before execution.",
|
|
455
|
+
"Invalid AI tool interruption payload.": "Invalid AI tool interruption payload.",
|
|
456
|
+
"Registry Node package requires must stay inside the package.": "Registry Node package requires must stay inside the package.",
|
|
457
|
+
"Registry Node packages cannot contain symbolic links or bundled node_modules.": "Registry Node packages cannot contain symbolic links or bundled node_modules.",
|
|
458
|
+
"Registry Node packages must use valid CommonJS code and cannot load native modules.": "Registry Node packages must use valid CommonJS code and cannot load native modules.",
|
|
459
|
+
"Registry Node packages must use direct require calls with literal, unescaped paths.": "Registry Node packages must use direct require calls with literal, unescaped paths.",
|
|
460
|
+
"Registry Node package contains a missing local module.": "Registry Node package contains a missing local module.",
|
|
461
|
+
"Invalid skill package snapshot path.": "Invalid skill package snapshot path.",
|
|
462
|
+
"Hierarchical routing": "Hierarchical routing",
|
|
463
|
+
"Disabled": "Disabled",
|
|
464
|
+
"Enable hierarchical routing": "Enable hierarchical routing",
|
|
465
|
+
"Applies to delegation through the hierarchical routing tool.": "Applies to delegation through the hierarchical routing tool.",
|
|
466
|
+
"Target role": "Target role",
|
|
467
|
+
"Specialist": "Specialist",
|
|
468
|
+
"Worker": "Worker",
|
|
469
|
+
"When to delegate": "When to delegate",
|
|
470
|
+
"Describe the tasks this employee is suited to handle.": "Describe the tasks this employee is suited to handle.",
|
|
471
|
+
"LLM service override": "LLM service override",
|
|
472
|
+
"Model override": "Model override",
|
|
473
|
+
"Leave both model fields empty to use the target employee model.": "Leave both model fields empty to use the target employee model.",
|
|
474
|
+
"Unable to load enabled models.": "Unable to load enabled models.",
|
|
475
|
+
"Routing requires a parent and a target employee.": "Routing requires a parent and a target employee.",
|
|
476
|
+
"An employee cannot delegate to itself.": "An employee cannot delegate to itself.",
|
|
477
|
+
"Choose a routing role for the target employee.": "Choose a routing role for the target employee.",
|
|
478
|
+
"Select both an LLM service and a model, or leave both empty.": "Select both an LLM service and a model, or leave both empty.",
|
|
479
|
+
"The routing description must be 4000 characters or fewer.": "The routing description must be 4000 characters or fewer.",
|
|
480
|
+
"Routing enabled must be a boolean.": "Routing enabled must be a boolean.",
|
|
481
|
+
"Update routing settings for one binding at a time.": "Update routing settings for one binding at a time.",
|
|
482
|
+
"These settings apply only where the capability matrix shows support.": "These settings apply only where the capability matrix shows support.",
|
|
483
|
+
"Allowed tools": "Allowed tools",
|
|
484
|
+
"Tools requiring approval": "Tools requiring approval",
|
|
485
|
+
"Denied tools": "Denied tools",
|
|
486
|
+
"Maximum tool calls": "Maximum tool calls",
|
|
487
|
+
"Advanced settings JSON": "Advanced settings JSON",
|
|
488
|
+
"Read-only tools": "Read-only tools",
|
|
489
|
+
"Classify a tool as read-only only after verifying its behavior and permissions.": "Classify a tool as read-only only after verifying its behavior and permissions.",
|
|
490
|
+
"Profile model": "Profile model",
|
|
491
|
+
"A binding model override takes precedence. An empty profile model uses the employee model.": "A binding model override takes precedence. An empty profile model uses the employee model.",
|
|
492
|
+
"Fallback models": "Fallback models",
|
|
493
|
+
"Checked in order before execution when a configured model is unavailable.": "Checked in order before execution when a configured model is unavailable.",
|
|
494
|
+
"A conversation and target employee are required.": "A conversation and target employee are required.",
|
|
495
|
+
"Preview effective routing": "Preview effective routing",
|
|
496
|
+
"Preview uses the saved binding, published profile and a conversation owned by your user.": "Preview uses the saved binding, published profile and a conversation owned by your user.",
|
|
497
|
+
"Preview failed: {{message}}": "Preview failed: {{message}}",
|
|
498
|
+
"Conversation ID": "Conversation ID",
|
|
499
|
+
"Effective model": "Effective model",
|
|
500
|
+
"Fallback model selected": "Fallback model selected",
|
|
501
|
+
"List delegated AI employees": "List delegated AI employees",
|
|
502
|
+
"Delegate to an AI employee": "Delegate to an AI employee",
|
|
503
|
+
"Move up": "Move up",
|
|
504
|
+
"Move down": "Move down",
|
|
505
|
+
"Move {{model}} up": "Move {{model}} up",
|
|
506
|
+
"Move {{model}} down": "Move {{model}} down",
|
|
507
|
+
"Hierarchy invocation records are not directly accessible.": "Hierarchy invocation records are not directly accessible.",
|
|
508
|
+
"Managed child conversations cannot be modified directly.": "Managed child conversations cannot be modified directly.",
|
|
509
|
+
"The managed request was cancelled.": "The managed request was cancelled.",
|
|
510
|
+
"This binding would create a delegation cycle.": "This binding would create a delegation cycle.",
|
|
511
|
+
"Hierarchical chat does not yet support this limit and rejects profiles that set it.": "Hierarchical chat does not yet support this limit and rejects profiles that set it.",
|
|
512
|
+
"Bind employees to profiles and opt in to hierarchical delegation.": "Bind employees to profiles and opt in to hierarchical delegation.",
|
|
513
|
+
"The conversation must belong to an orchestrator bound to this worker’s specialist.": "The conversation must belong to an orchestrator bound to this worker’s specialist.",
|
|
514
|
+
"The AI employee is unavailable.": "The AI employee is unavailable.",
|
|
515
|
+
"Disable native AI employee dispatch before using managed hierarchy routing.": "Disable native AI employee dispatch before using managed hierarchy routing.",
|
|
516
|
+
"The delegation policy profile is unavailable.": "The delegation policy profile is unavailable.",
|
|
517
|
+
"The AI employee skills are unavailable.": "The AI employee skills are unavailable.",
|
|
518
|
+
"Remove managed worker tools from the parent employee before using hierarchy routing.": "Remove managed worker tools from the parent employee before using hierarchy routing.",
|
|
519
|
+
"The employee does not match the conversation.": "The employee does not match the conversation.",
|
|
520
|
+
"The intermediate employee is not a specialist.": "The intermediate employee is not a specialist.",
|
|
521
|
+
"The delegation limit has been reached.": "The delegation limit has been reached.",
|
|
522
|
+
"The delegation profile does not provide the required allowed tools.": "The delegation profile does not provide the required allowed tools.",
|
|
523
|
+
"The requested delegation is unavailable.": "The requested delegation is unavailable.",
|
|
524
|
+
"Preview does not check worker tools that depend on a child session.": "Preview does not check worker tools that depend on a child session.",
|
|
525
|
+
"Invalid conversation action input.": "Invalid conversation action input.",
|
|
526
|
+
"A single conversation identifier is required.": "A single conversation identifier is required.",
|
|
527
|
+
"A single message identifier is required.": "A single message identifier is required.",
|
|
528
|
+
"A single tool call identifier is required.": "A single tool call identifier is required.",
|
|
529
|
+
"Enable automatic approval": "Enable automatic approval",
|
|
530
|
+
"Disable automatic approval": "Disable automatic approval",
|
|
531
|
+
"Could not update automatic approval": "Could not update automatic approval",
|
|
532
|
+
"Automatic approval unavailable": "Automatic approval unavailable"
|
|
226
533
|
}
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -222,5 +222,9 @@
|
|
|
222
222
|
"Metrics by Skill (Recent)": "Chỉ số theo kỹ năng (gần đây)",
|
|
223
223
|
"Total Executions (Recent)": "Tổng số lần thực thi (gần đây)",
|
|
224
224
|
"Succeeded": "Thành công",
|
|
225
|
-
"Timeout/Canceled": "Hết thời gian/Đã hủy"
|
|
225
|
+
"Timeout/Canceled": "Hết thời gian/Đã hủy",
|
|
226
|
+
"Enable automatic approval": "Bật tự động phê duyệt",
|
|
227
|
+
"Disable automatic approval": "Tắt tự động phê duyệt",
|
|
228
|
+
"Could not update automatic approval": "Không thể cập nhật tự động phê duyệt",
|
|
229
|
+
"Automatic approval unavailable": "Không thể lấy trạng thái tự động phê duyệt"
|
|
226
230
|
}
|