@xpert-ai/plugin-sdk 3.26.2 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifact-document.cjs.js +55 -16
- package/artifact-document.esm.js +53 -17
- package/collaboration-client.cjs.js +31 -5
- package/collaboration-client.esm.js +31 -5
- package/data-workbench.cjs.js +4 -2
- package/data-workbench.esm.js +4 -2
- package/docs/artifact-documents.md +8 -2
- package/docs/en/runtime-capabilities.md +103 -0
- package/index.cjs.js +479 -70
- package/index.esm.js +461 -73
- package/model-provider.cjs.js +17 -1
- package/model-provider.esm.js +15 -2
- package/package.json +2 -2
- package/src/artifact-document.d.ts +1 -0
- package/src/index.d.ts +2 -0
- package/src/lib/agent/handoff/types.d.ts +5 -0
- package/src/lib/agent/middleware/capabilities/assistant-task.d.ts +6 -1
- package/src/lib/agent/middleware/runtime.d.ts +2 -0
- package/src/lib/agent/runtime/capability.d.ts +4 -0
- package/src/lib/agent/runtime/cli-model-profile.d.ts +1 -1
- package/src/lib/agent/runtime/execution-runner.d.ts +11 -0
- package/src/lib/agent/runtime/index.d.ts +2 -0
- package/src/lib/agent/runtime/managed.d.ts +94 -0
- package/src/lib/agent/runtime/process-supervisor.d.ts +1 -0
- package/src/lib/agent/runtime/strategy.d.ts +14 -0
- package/src/lib/agent/runtime/types.d.ts +30 -1
- package/src/lib/ai-model/native-model.d.ts +5 -1
- package/src/lib/artifact-document/host.d.ts +3 -0
- package/src/lib/artifact-document/network.d.ts +21 -0
- package/src/lib/artifact-document/runtime.d.ts +2 -1
- package/src/lib/assistant-capability/index.d.ts +3 -0
- package/src/lib/assistant-capability/middleware.d.ts +10 -0
- package/src/lib/collaboration/types.d.ts +12 -1
- package/src/lib/connector/document-source.d.ts +31 -0
- package/src/lib/connector/documents.d.ts +38 -0
- package/src/lib/connector/index.d.ts +1 -0
- package/src/lib/connector/strategy.interface.d.ts +3 -0
- package/src/lib/content-resource/catalog.d.ts +88 -0
- package/src/lib/content-resource/document.d.ts +142 -0
- package/src/lib/content-resource/editor-compatibility.d.ts +3 -0
- package/src/lib/content-resource/editor.d.ts +105 -0
- package/src/lib/content-resource/index.d.ts +94 -0
- package/src/lib/content-resource/reference.d.ts +38 -0
- package/src/lib/data/datasource/workbench-adapter.d.ts +5 -3
- package/src/lib/data/datasource/workbench-sql.d.ts +0 -4
- package/src/lib/execution-control/context.d.ts +7 -0
- package/src/lib/execution-control/index.d.ts +2 -0
- package/src/lib/managed-queue/index.d.ts +12 -0
- package/src/lib/project-pipeline/contribution-failure.d.ts +17 -0
- package/src/lib/project-pipeline/registry.d.ts +16 -1
- package/src/lib/runtime/actor.d.ts +10 -0
- package/src/lib/runtime/capabilities/artifact-drafts.d.ts +10 -1
- package/src/lib/runtime/capabilities/artifacts.d.ts +5 -0
- package/src/lib/runtime/capabilities/assistant-middleware-access.d.ts +28 -0
- package/src/lib/runtime/capabilities/index.d.ts +4 -0
- package/src/lib/runtime/capabilities/mcp-client-runtime.d.ts +2 -0
- package/src/lib/runtime/capabilities/project-access.d.ts +10 -7
- package/src/lib/runtime/capabilities/project-files.d.ts +40 -0
- package/src/lib/runtime/capabilities/project-knowledge.d.ts +14 -0
- package/src/lib/runtime/capabilities/project-provisioning.d.ts +6 -0
- package/src/lib/runtime/capabilities/sandbox-jobs.d.ts +12 -3
- package/src/lib/runtime/capabilities/workspace-files.d.ts +2 -0
- package/src/lib/sandbox/file-edit-command.d.ts +2 -0
- package/src/lib/sandbox/file-edit-diff.d.ts +1 -0
- package/src/lib/sandbox/protocol.d.ts +13 -1
- package/src/lib/sandbox/runtime-provider.d.ts +12 -0
- package/src/lib/view-extension/middleware-runtime.d.ts +2 -3
package/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Module, applyDecorators, SetMetadata, HttpException, HttpStatus, BadReq
|
|
|
2
2
|
import { MODULE_METADATA } from '@nestjs/common/constants.js';
|
|
3
3
|
import { pick } from 'lodash-es';
|
|
4
4
|
import { dispatchCustomEvent } from '@langchain/core/callbacks/dispatch';
|
|
5
|
-
import { ChatMessageEventTypeEnum, createResourceCardContent, LanguagesEnum, ParameterType, AiModelTypeEnum, PriceType, FetchFrom, ModelPropertyKey, readModelConfiguration, ModelFeature, isDiscoverableModelType, configurationFromModel, projectTaskExecutionContextSchema, projectTaskExecutionReferenceSchema, agentRuntimeProgressSchema, agentInvocationTerminalStatusSchema, projectPipelineWorkContextSchema, MCP_REQUIRED_CONTEXTS, MCP_CAPABILITY_APPROVAL_MODES, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MCP_TOOL_IDEMPOTENCY, MCP_CAPABILITY_VISIBILITIES, PLUGIN_COMPONENT_TYPE, projectPipelineContributionSchema, projectPipelineRefSchema } from '@xpert-ai/contracts';
|
|
5
|
+
import { ChatMessageEventTypeEnum, createResourceCardContent, LanguagesEnum, ParameterType, AiModelTypeEnum, PriceType, FetchFrom, ModelPropertyKey, readModelConfiguration, ModelFeature, isDiscoverableModelType, configurationFromModel, projectTaskExecutionContextSchema, projectTaskExecutionReferenceSchema, agentRuntimeProgressSchema, agentInvocationTerminalStatusSchema, projectPipelineWorkContextSchema, WorkflowNodeTypeEnum, MCP_REQUIRED_CONTEXTS, MCP_CAPABILITY_APPROVAL_MODES, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MCP_TOOL_IDEMPOTENCY, MCP_CAPABILITY_VISIBILITIES, PLUGIN_COMPONENT_TYPE, projectPipelineContributionSchema, projectPipelineRefSchema } from '@xpert-ai/contracts';
|
|
6
6
|
export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, agentOutputDeliverySchema, agentResultPathSchema, configurationFromModel, createResourceCardContent, parseResourceCard, projectPipelineContributionSchema, resourceCardId } from '@xpert-ai/contracts';
|
|
7
7
|
import { DiscoveryService, Reflector } from '@nestjs/core';
|
|
8
8
|
import { Subject, filter } from 'rxjs';
|
|
@@ -16,7 +16,7 @@ import fs__default from 'fs';
|
|
|
16
16
|
import http from 'http';
|
|
17
17
|
import https from 'https';
|
|
18
18
|
import { c as createRuntimeCapability, B as BuiltinToolset, W as WorkspaceFilesRuntimeCapability } from './model-provider.esm.js';
|
|
19
|
-
export { A as ActorTokenRuntimeCapability, a as ActorTokenRuntimeFactoryCapability, b as ArtifactDraftsRuntimeCapability, d as ArtifactsRuntimeCapability, e as
|
|
19
|
+
export { A as ActorTokenRuntimeCapability, a as ActorTokenRuntimeFactoryCapability, b as ArtifactDraftsRuntimeCapability, d as ArtifactsRuntimeCapability, e as AssistantMiddlewareAccessRuntimeCapability, f as BaseTool, g as BaseToolset, D as DefaultAgentMiddlewareRuntimeCapabilityRegistry, D as DefaultRuntimeCapabilityRegistry, h as McpClientRuntimeCapability, M as ModelProviderBuiltinToolset, P as ProjectAccessRuntimeCapability, i as ProjectFilesRuntimeCapability, j as ProjectKnowledgeRuntimeCapability, k as ProjectProvisioningRuntimeCapability, R as RUNTIME_CAPABILITY_PROVIDER, l as RestClientRuntimeCapability, m as RuntimeCapabilityProvider, S as SANDBOX_JOB_ERROR_CODES, n as SANDBOX_JOB_INVOCATION_PREFIX, o as SANDBOX_JOB_PROGRESS_PREFIX, p as SandboxJobRuntimeError, q as SandboxJobsRuntimeCapability, T as ToolImagesRuntimeCapability, r as WORKSPACE_FILES_SOURCE, X as XPERT_RUNTIME_CAPABILITIES_TOKEN, s as isSandboxJobRuntimeError, w as workspaceFileMutationMetadata, t as workspaceFileMutationPath, u as workspaceRelativeFilePathSchema } from './model-provider.esm.js';
|
|
20
20
|
import fsPromises from 'fs/promises';
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import path__default, { join } from 'path';
|
|
@@ -43,8 +43,8 @@ import { z as z$1 } from 'zod';
|
|
|
43
43
|
export { A as AGENT_TASK_RESULTS_FEATURE, a as agentResultItemSchema, b as agentTaskResultSchema } from './results.esm.js';
|
|
44
44
|
import { assertConnectorDefinition } from './connector.esm.js';
|
|
45
45
|
export { CONNECTOR_AUTHORIZATION_MODES, CONNECTOR_SCOPE_TYPES, getConnectorAuthMethods, getConnectorAuthorizationModes } from './connector.esm.js';
|
|
46
|
-
export { base64ToBytes, bytesToBase64, createCollaborationClient, createCollaborationPresenceStore, createSocketIoTransportAdapter, createYjsDocumentAdapter } from './collaboration-client.esm.js';
|
|
47
46
|
import { _ as _object_without_properties_loose$2 } from './_object_without_properties_loose.esm.js';
|
|
47
|
+
export { base64ToBytes, bytesToBase64, createCollaborationClient, createCollaborationPresenceStore, createSocketIoTransportAdapter, createYjsDocumentAdapter } from './collaboration-client.esm.js';
|
|
48
48
|
import { tool } from '@langchain/core/tools';
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -3289,30 +3289,22 @@ class LargeLanguageModel extends AIModel {
|
|
|
3289
3289
|
const promptRate = (_promptBreakdown_find = promptBreakdown.find((item)=>item.component === 'input')) != null ? _promptBreakdown_find : promptBreakdown[0];
|
|
3290
3290
|
const completionRate = completionBreakdown[0];
|
|
3291
3291
|
var _promptRate_unitPrice, _promptRate_unit, _completionRate_unitPrice, _completionRate_unit;
|
|
3292
|
-
return _extends({
|
|
3293
|
-
promptTokens,
|
|
3292
|
+
return _extends({}, resolvedTokenUsage, {
|
|
3294
3293
|
promptUnitPrice: (_promptRate_unitPrice = promptRate == null ? void 0 : promptRate.unitPrice) != null ? _promptRate_unitPrice : 0,
|
|
3295
3294
|
promptPriceUnit: (_promptRate_unit = promptRate == null ? void 0 : promptRate.unit) != null ? _promptRate_unit : 0,
|
|
3296
3295
|
promptPrice: Number(promptBreakdown.reduce((total, item)=>{
|
|
3297
3296
|
var _item_amount;
|
|
3298
3297
|
return total + ((_item_amount = item.amount) != null ? _item_amount : 0);
|
|
3299
3298
|
}, 0).toFixed(7)),
|
|
3300
|
-
completionTokens,
|
|
3301
3299
|
completionUnitPrice: (_completionRate_unitPrice = completionRate == null ? void 0 : completionRate.unitPrice) != null ? _completionRate_unitPrice : 0,
|
|
3302
3300
|
completionPriceUnit: (_completionRate_unit = completionRate == null ? void 0 : completionRate.unit) != null ? _completionRate_unit : 0,
|
|
3303
3301
|
completionPrice: Number(completionBreakdown.reduce((total, item)=>{
|
|
3304
3302
|
var _item_amount;
|
|
3305
3303
|
return total + ((_item_amount = item.amount) != null ? _item_amount : 0);
|
|
3306
3304
|
}, 0).toFixed(7)),
|
|
3307
|
-
totalTokens: resolvedTokenUsage.totalTokens,
|
|
3308
3305
|
totalPrice: calculation.totalAmount,
|
|
3309
3306
|
currency: calculation.currency,
|
|
3310
|
-
latency: performance.now() - startedAt
|
|
3311
|
-
}, resolvedTokenUsage.cacheReadInputTokens ? {
|
|
3312
|
-
cacheReadInputTokens: resolvedTokenUsage.cacheReadInputTokens
|
|
3313
|
-
} : {}, resolvedTokenUsage.cacheWriteInputTokens ? {
|
|
3314
|
-
cacheWriteInputTokens: resolvedTokenUsage.cacheWriteInputTokens
|
|
3315
|
-
} : {}, {
|
|
3307
|
+
latency: performance.now() - startedAt,
|
|
3316
3308
|
pricingStatus: calculation.pricingStatus,
|
|
3317
3309
|
priceAuthority: 'catalog',
|
|
3318
3310
|
pricingBreakdown: calculation.breakdown
|
|
@@ -3322,22 +3314,19 @@ class LargeLanguageModel extends AIModel {
|
|
|
3322
3314
|
const completionPriceInfo = this.getPrice(model, credentials, PriceType.OUTPUT, completionTokens, promptTokens);
|
|
3323
3315
|
const totalPrice = Number((promptPriceInfo.totalAmount + completionPriceInfo.totalAmount).toFixed(7));
|
|
3324
3316
|
// Conversion usage
|
|
3325
|
-
const usage = {
|
|
3326
|
-
promptTokens: promptTokens,
|
|
3317
|
+
const usage = _extends({}, resolvedTokenUsage, {
|
|
3327
3318
|
promptUnitPrice: promptPriceInfo.unitPrice,
|
|
3328
3319
|
promptPriceUnit: promptPriceInfo.unit,
|
|
3329
3320
|
promptPrice: promptPriceInfo.totalAmount,
|
|
3330
|
-
completionTokens: completionTokens,
|
|
3331
3321
|
completionUnitPrice: completionPriceInfo.unitPrice,
|
|
3332
3322
|
completionPriceUnit: completionPriceInfo.unit,
|
|
3333
3323
|
completionPrice: completionPriceInfo.totalAmount,
|
|
3334
|
-
totalTokens: promptTokens + completionTokens,
|
|
3335
3324
|
totalPrice,
|
|
3336
3325
|
currency: promptPriceInfo.currency,
|
|
3337
3326
|
latency: performance.now() - startedAt,
|
|
3338
3327
|
pricingStatus: totalPrice === 0 ? 'free' : 'priced',
|
|
3339
3328
|
priceAuthority: 'catalog'
|
|
3340
|
-
};
|
|
3329
|
+
});
|
|
3341
3330
|
return usage;
|
|
3342
3331
|
}
|
|
3343
3332
|
createHandleUsageCallbacks(copilot, model, credentials, handleLLMTokens, pricingConfiguration = {}) {
|
|
@@ -3355,7 +3344,7 @@ class LargeLanguageModel extends AIModel {
|
|
|
3355
3344
|
}
|
|
3356
3345
|
let usage = _extends({}, this.calcResponseUsage(model, credentials, normalizedTokenUsage.promptTokens, normalizedTokenUsage.completionTokens, startedAt, normalizedTokenUsage, _extends({}, pricingContext, {
|
|
3357
3346
|
inputTokensIncludeCache: true
|
|
3358
|
-
})), type ? {
|
|
3347
|
+
})), normalizedTokenUsage, type ? {
|
|
3359
3348
|
type
|
|
3360
3349
|
} : {});
|
|
3361
3350
|
const reportedPrice = output ? pricingOptions.resolveReportedPrice == null ? void 0 : pricingOptions.resolveReportedPrice.call(pricingOptions, output) : undefined;
|
|
@@ -3364,7 +3353,6 @@ class LargeLanguageModel extends AIModel {
|
|
|
3364
3353
|
} else if (pricingOptions.reportedPriceRequired) {
|
|
3365
3354
|
usage = markUsagePriceUnpriced(usage, 'provider');
|
|
3366
3355
|
}
|
|
3367
|
-
usage.totalTokens = normalizedTokenUsage.totalTokens;
|
|
3368
3356
|
await handleLLMTokens({
|
|
3369
3357
|
copilot,
|
|
3370
3358
|
model,
|
|
@@ -4568,6 +4556,107 @@ function taskWaitReason(states, mode) {
|
|
|
4568
4556
|
const AgentExecutionRunnerCapability = createRuntimeCapability('platform.agent_execution.runner');
|
|
4569
4557
|
const AgentExecutionRunnerFactoryCapability = createRuntimeCapability('platform.agent_execution.runner.factory');
|
|
4570
4558
|
|
|
4559
|
+
// Invariants: this payload has no runtime imports; protocol streams are not exit evidence.
|
|
4560
|
+
// The device supervisor regression test enforces identical process supervision semantics.
|
|
4561
|
+
const AGENT_PROCESS_SUPERVISOR = String.raw`
|
|
4562
|
+
import ctypes, errno, json, os, signal, subprocess, sys, time
|
|
4563
|
+
owner = int(sys.argv[1])
|
|
4564
|
+
stopping = False
|
|
4565
|
+
strong = False
|
|
4566
|
+
if sys.platform.startswith('linux'):
|
|
4567
|
+
strong = ctypes.CDLL(None, use_errno=True).prctl(36, 1, 0, 0, 0) == 0
|
|
4568
|
+
def stop(*args):
|
|
4569
|
+
global stopping
|
|
4570
|
+
stopping = True
|
|
4571
|
+
signal.signal(signal.SIGTERM, stop)
|
|
4572
|
+
signal.signal(signal.SIGINT, stop)
|
|
4573
|
+
# The supervisor is the process-group leader. Its live PID reserves the group identity.
|
|
4574
|
+
os.write(3, b'{"ready":true}\n')
|
|
4575
|
+
try:
|
|
4576
|
+
if os.getppid() != owner: raise OSError('Original host exited before admission')
|
|
4577
|
+
child = subprocess.Popen(sys.argv[2:], close_fds=True)
|
|
4578
|
+
except OSError:
|
|
4579
|
+
os.write(3, json.dumps({'version': 1, 'state': 'not_started', 'coverage': 'descendants', 'exitCode': 127}).encode())
|
|
4580
|
+
sys.exit(0)
|
|
4581
|
+
# Only the protocol child owns stdin, so a closed transport still produces EPIPE.
|
|
4582
|
+
os.close(0)
|
|
4583
|
+
code = None
|
|
4584
|
+
deadline = None
|
|
4585
|
+
while True:
|
|
4586
|
+
if os.getppid() != owner: stopping = True
|
|
4587
|
+
if code is None:
|
|
4588
|
+
value = child.poll()
|
|
4589
|
+
if value is not None: code = value; stopping = True
|
|
4590
|
+
if stopping and deadline is None:
|
|
4591
|
+
deadline = time.monotonic() + 2
|
|
4592
|
+
os.killpg(os.getpgrp(), signal.SIGTERM)
|
|
4593
|
+
if deadline is not None and time.monotonic() >= deadline:
|
|
4594
|
+
if not strong:
|
|
4595
|
+
# No subreaper means escaped descendants cannot be certified. No receipt is emitted.
|
|
4596
|
+
os.killpg(os.getpgrp(), signal.SIGKILL)
|
|
4597
|
+
# Kill only still-waitable direct children. Orphans are adopted by this subreaper;
|
|
4598
|
+
# holding them until waitpid prevents PID reuse between selection and signalling.
|
|
4599
|
+
try:
|
|
4600
|
+
ids = open('/proc/self/task/' + str(os.getpid()) + '/children').read().split()
|
|
4601
|
+
for value in ids:
|
|
4602
|
+
try: os.kill(int(value), signal.SIGKILL)
|
|
4603
|
+
except ProcessLookupError: pass
|
|
4604
|
+
except OSError:
|
|
4605
|
+
os.killpg(os.getpgrp(), signal.SIGKILL)
|
|
4606
|
+
if stopping and strong:
|
|
4607
|
+
empty = False
|
|
4608
|
+
while True:
|
|
4609
|
+
try:
|
|
4610
|
+
pid, status = os.waitpid(-1, os.WNOHANG)
|
|
4611
|
+
if pid == 0: break
|
|
4612
|
+
if pid == child.pid and code is None: code = os.waitstatus_to_exitcode(status)
|
|
4613
|
+
except ChildProcessError:
|
|
4614
|
+
empty = True
|
|
4615
|
+
break
|
|
4616
|
+
if empty:
|
|
4617
|
+
os.write(3, json.dumps({'version': 1, 'state': 'exited', 'coverage': 'descendants', 'exitCode': code}).encode())
|
|
4618
|
+
sys.exit(0)
|
|
4619
|
+
time.sleep(.02)
|
|
4620
|
+
`;
|
|
4621
|
+
|
|
4622
|
+
/** Persisted host ownership marker. Only built-in presets are supported. */ const managedAgentRuntimeSchema = z.object({
|
|
4623
|
+
type: z.literal('builtin'),
|
|
4624
|
+
version: z.string().min(1)
|
|
4625
|
+
}).strict();
|
|
4626
|
+
/** Launch settings supplied by the installed strategy, never by tool input or host provider lists. */ const agentRuntimeDeploymentSpecSchema = z.discriminatedUnion('type', [
|
|
4627
|
+
z.object({
|
|
4628
|
+
type: z.literal('process'),
|
|
4629
|
+
command: z.string().min(1).refine((value)=>!value.includes('\0')),
|
|
4630
|
+
args: z.array(z.string().refine((value)=>!value.includes('\0'))),
|
|
4631
|
+
environment: z.record(z.string(), z.string()),
|
|
4632
|
+
model: z.string().min(1).optional(),
|
|
4633
|
+
timeoutMs: z.number().int().min(1000).max(3600000)
|
|
4634
|
+
}).strict(),
|
|
4635
|
+
z.object({
|
|
4636
|
+
type: z.literal('sdk'),
|
|
4637
|
+
environment: z.record(z.string(), z.string()),
|
|
4638
|
+
model: z.string().min(1).optional(),
|
|
4639
|
+
timeoutMs: z.number().int().min(1000).max(3600000)
|
|
4640
|
+
}).strict(),
|
|
4641
|
+
z.object({
|
|
4642
|
+
type: z.literal('service'),
|
|
4643
|
+
serverUrl: z.string().url().refine((value)=>{
|
|
4644
|
+
try {
|
|
4645
|
+
const url = new URL(value);
|
|
4646
|
+
return [
|
|
4647
|
+
'http:',
|
|
4648
|
+
'https:'
|
|
4649
|
+
].includes(url.protocol) && !url.username && !url.password && !url.search && !url.hash;
|
|
4650
|
+
} catch (e) {
|
|
4651
|
+
return false;
|
|
4652
|
+
}
|
|
4653
|
+
}),
|
|
4654
|
+
authorization: z.string().optional(),
|
|
4655
|
+
timeoutMs: z.number().int().min(1000).max(3600000)
|
|
4656
|
+
}).strict()
|
|
4657
|
+
]);
|
|
4658
|
+
/** Used by SDK/process/service adapters. The host pins the target and rechecks access; no caller-selected scope. */ const AgentRuntimeDeploymentCapability = createRuntimeCapability('platform.agent_runtime.deployment');
|
|
4659
|
+
|
|
4571
4660
|
/** Host-only provenance. This describes a saved operation; it never grants access by itself. */ const projectPipelineInvocationScopeSchema = z.object({
|
|
4572
4661
|
tenantId: z.string().uuid(),
|
|
4573
4662
|
organizationId: z.string().uuid(),
|
|
@@ -4587,6 +4676,69 @@ const AgentExecutionRunnerFactoryCapability = createRuntimeCapability('platform.
|
|
|
4587
4676
|
|
|
4588
4677
|
/** Older runtime plugins can still send this event; new emissions use ON_CHAT_EVENT. */ const RESOURCE_CARD_EVENT = 'xpert.resource_card';
|
|
4589
4678
|
|
|
4679
|
+
function middleware(node) {
|
|
4680
|
+
return node.type === 'workflow' && node.entity.type === WorkflowNodeTypeEnum.MIDDLEWARE;
|
|
4681
|
+
}
|
|
4682
|
+
function hasAssistantMiddleware(draft, provider) {
|
|
4683
|
+
return draft.nodes.some((node)=>middleware(node) && node.entity.provider === provider && draft.connections.some((edge)=>{
|
|
4684
|
+
var _draft_team_agent;
|
|
4685
|
+
return edge.type === 'workflow' && edge.from === ((_draft_team_agent = draft.team.agent) == null ? void 0 : _draft_team_agent.key) && edge.to.split('/')[0] === node.key;
|
|
4686
|
+
}));
|
|
4687
|
+
}
|
|
4688
|
+
/** Compose only the draft graph. The platform records the contribution for safe removal.
|
|
4689
|
+
* No Project, permission, external resource or implicit replacement is created here. */ function applyAssistantMiddleware(draft, input) {
|
|
4690
|
+
var _agent_entity_prompt;
|
|
4691
|
+
const agent = draft.nodes.find((node)=>{
|
|
4692
|
+
var _draft_team_agent;
|
|
4693
|
+
return node.type === 'agent' && node.key === ((_draft_team_agent = draft.team.agent) == null ? void 0 : _draft_team_agent.key);
|
|
4694
|
+
});
|
|
4695
|
+
if ((agent == null ? void 0 : agent.type) !== 'agent') throw new BadRequestException('assistant.invalid_draft');
|
|
4696
|
+
if (!hasAssistantMiddleware(draft, input.provider)) {
|
|
4697
|
+
var _agent_entity_options, _agent_entity_options_middlewares, _agent_entity_options1;
|
|
4698
|
+
let key = input.key;
|
|
4699
|
+
for(let suffix = 2; draft.nodes.some((node)=>node.key === key) || draft.connections.some((edge)=>edge.key === `${agent.key}/${key}`); suffix++)key = `${input.key}_${suffix}`;
|
|
4700
|
+
const entity = {
|
|
4701
|
+
id: key,
|
|
4702
|
+
key,
|
|
4703
|
+
type: WorkflowNodeTypeEnum.MIDDLEWARE,
|
|
4704
|
+
title: input.title,
|
|
4705
|
+
provider: input.provider,
|
|
4706
|
+
required: true,
|
|
4707
|
+
options: {}
|
|
4708
|
+
};
|
|
4709
|
+
draft.nodes.push({
|
|
4710
|
+
type: 'workflow',
|
|
4711
|
+
key,
|
|
4712
|
+
position: {
|
|
4713
|
+
x: 620,
|
|
4714
|
+
y: 160 * (draft.nodes.length - 1)
|
|
4715
|
+
},
|
|
4716
|
+
entity
|
|
4717
|
+
});
|
|
4718
|
+
draft.connections.push({
|
|
4719
|
+
key: `${agent.key}/${key}`,
|
|
4720
|
+
type: 'workflow',
|
|
4721
|
+
from: agent.key,
|
|
4722
|
+
to: key,
|
|
4723
|
+
required: true
|
|
4724
|
+
});
|
|
4725
|
+
var _agent_entity_options_middlewares_order;
|
|
4726
|
+
agent.entity.options = _extends({}, agent.entity.options, {
|
|
4727
|
+
parallelToolCalls: false,
|
|
4728
|
+
middlewares: _extends({}, (_agent_entity_options = agent.entity.options) == null ? void 0 : _agent_entity_options.middlewares, {
|
|
4729
|
+
order: [
|
|
4730
|
+
...(_agent_entity_options_middlewares_order = (_agent_entity_options1 = agent.entity.options) == null ? void 0 : (_agent_entity_options_middlewares = _agent_entity_options1.middlewares) == null ? void 0 : _agent_entity_options_middlewares.order) != null ? _agent_entity_options_middlewares_order : [],
|
|
4731
|
+
key
|
|
4732
|
+
]
|
|
4733
|
+
})
|
|
4734
|
+
});
|
|
4735
|
+
}
|
|
4736
|
+
if (!((_agent_entity_prompt = agent.entity.prompt) == null ? void 0 : _agent_entity_prompt.includes(input.instructions))) agent.entity.prompt = [
|
|
4737
|
+
agent.entity.prompt,
|
|
4738
|
+
input.instructions
|
|
4739
|
+
].filter(Boolean).join('\n\n');
|
|
4740
|
+
}
|
|
4741
|
+
|
|
4590
4742
|
const ASSISTANT_CAPABILITY_PROVIDER = 'ASSISTANT_CAPABILITY_PROVIDER';
|
|
4591
4743
|
const AssistantCapabilityProvider = (key)=>applyDecorators(SetMetadata(ASSISTANT_CAPABILITY_PROVIDER, key), SetMetadata(STRATEGY_META_KEY, ASSISTANT_CAPABILITY_PROVIDER));
|
|
4592
4744
|
let AssistantCapabilityProviderRegistry = class AssistantCapabilityProviderRegistry extends BaseStrategyRegistry {
|
|
@@ -4856,6 +5008,10 @@ function isLegacyConnectorStrategy(strategy) {
|
|
|
4856
5008
|
return 'auth' in strategy.definition && ((_strategy_definition_auth = strategy.definition.auth) == null ? void 0 : _strategy_definition_auth.type) === 'oauth2' && typeof strategy.buildAuthorizationUrl === 'function' && typeof strategy.exchangeOAuthCode === 'function';
|
|
4857
5009
|
}
|
|
4858
5010
|
|
|
5011
|
+
const ConnectorDocumentsRuntimeCapability = createRuntimeCapability('platform.connector.documents', {
|
|
5012
|
+
description: 'Read authorized connector documents for explicit project imports; never exposes credentials or writes remote content.'
|
|
5013
|
+
});
|
|
5014
|
+
|
|
4859
5015
|
const SANDBOX_SHELL_TIMEOUT_LIMITS_SEC = {
|
|
4860
5016
|
min: 1,
|
|
4861
5017
|
max: 3600
|
|
@@ -4949,26 +5105,59 @@ function resolveSandboxBackend(sandbox) {
|
|
|
4949
5105
|
return isSandboxBackend(candidate) ? candidate : null;
|
|
4950
5106
|
}
|
|
4951
5107
|
|
|
5108
|
+
const editMetricsSchema = z.object({
|
|
5109
|
+
occurrences: z.number().int().nonnegative(),
|
|
5110
|
+
oldLines: z.number().int().nonnegative(),
|
|
5111
|
+
newLines: z.number().int().nonnegative(),
|
|
5112
|
+
changed: z.boolean(),
|
|
5113
|
+
diff: z.object({
|
|
5114
|
+
removed: z.number().int().nonnegative(),
|
|
5115
|
+
added: z.number().int().nonnegative()
|
|
5116
|
+
}).optional(),
|
|
5117
|
+
diffUnavailable: z.enum([
|
|
5118
|
+
'comparison_budget_exceeded',
|
|
5119
|
+
'diff_unavailable'
|
|
5120
|
+
]).optional()
|
|
5121
|
+
});
|
|
5122
|
+
function editMetrics(output) {
|
|
5123
|
+
try {
|
|
5124
|
+
const result = editMetricsSchema.safeParse(JSON.parse(output));
|
|
5125
|
+
if (!result.success) return undefined;
|
|
5126
|
+
const _result_data = result.data, { diff } = _result_data, metrics = _object_without_properties_loose$2(_result_data, [
|
|
5127
|
+
"diff"
|
|
5128
|
+
]);
|
|
5129
|
+
return _extends({}, metrics, diff ? {
|
|
5130
|
+
diff: {
|
|
5131
|
+
removed: diff.removed,
|
|
5132
|
+
added: diff.added
|
|
5133
|
+
}
|
|
5134
|
+
} : {});
|
|
5135
|
+
} catch (e) {
|
|
5136
|
+
return undefined;
|
|
5137
|
+
}
|
|
5138
|
+
}
|
|
4952
5139
|
function editCommandResult(filePath, result) {
|
|
5140
|
+
const metrics = editMetrics(result.output);
|
|
4953
5141
|
switch(result.exitCode){
|
|
4954
5142
|
case 0:
|
|
4955
|
-
return {
|
|
5143
|
+
return _extends({
|
|
4956
5144
|
path: filePath,
|
|
4957
|
-
filesUpdate: null
|
|
5145
|
+
filesUpdate: null
|
|
5146
|
+
}, metrics != null ? metrics : {
|
|
4958
5147
|
occurrences: parseInt(result.output.trim(), 10) || 1
|
|
4959
|
-
};
|
|
5148
|
+
});
|
|
4960
5149
|
case 1:
|
|
4961
|
-
return {
|
|
5150
|
+
return _extends({}, metrics, {
|
|
4962
5151
|
error: `String not found in file '${filePath}'`
|
|
4963
|
-
};
|
|
5152
|
+
});
|
|
4964
5153
|
case 2:
|
|
4965
|
-
return {
|
|
5154
|
+
return _extends({}, metrics, {
|
|
4966
5155
|
error: `Multiple occurrences found in '${filePath}'. Use replaceAll=true to replace all.`
|
|
4967
|
-
};
|
|
5156
|
+
});
|
|
4968
5157
|
case 3:
|
|
4969
|
-
return {
|
|
5158
|
+
return _extends({}, metrics, {
|
|
4970
5159
|
error: `Error: File '${filePath}' not found`
|
|
4971
|
-
};
|
|
5160
|
+
});
|
|
4972
5161
|
default:
|
|
4973
5162
|
return {
|
|
4974
5163
|
error: `Unknown error editing file '${filePath}'`
|
|
@@ -5010,6 +5199,88 @@ function editCommandResult(filePath, result) {
|
|
|
5010
5199
|
};
|
|
5011
5200
|
}
|
|
5012
5201
|
|
|
5202
|
+
// Embedded in the existing sandbox Node process; no Git, subprocess, or temporary files.
|
|
5203
|
+
const FILE_EDIT_DIFF_SCRIPT = String.raw`
|
|
5204
|
+
function inspectLineDiff(before, after) {
|
|
5205
|
+
if (before === after) return { diff: { removed: 0, added: 0 } };
|
|
5206
|
+
// Include line terminators so a missing final newline is an actual line change.
|
|
5207
|
+
const oldLines = before.match(/[^\n]*\n|[^\n]+$/g) || [];
|
|
5208
|
+
const newLines = after.match(/[^\n]*\n|[^\n]+$/g) || [];
|
|
5209
|
+
let start = 0, oldEnd = oldLines.length, newEnd = newLines.length;
|
|
5210
|
+
while (start < oldEnd && start < newEnd && oldLines[start] === newLines[start]) start++;
|
|
5211
|
+
while (oldEnd > start && newEnd > start && oldLines[oldEnd - 1] === newLines[newEnd - 1]) {
|
|
5212
|
+
oldEnd--;
|
|
5213
|
+
newEnd--;
|
|
5214
|
+
}
|
|
5215
|
+
const removed = oldEnd - start, added = newEnd - start;
|
|
5216
|
+
if (!removed || !added) return { diff: { removed, added } };
|
|
5217
|
+
|
|
5218
|
+
// Myers shortest edit distance needs only a frontier when reporting counts, not a patch.
|
|
5219
|
+
// Bound the optional quadratic search on broad rewrites; never limit the edit itself.
|
|
5220
|
+
const maxDistance = Math.min(removed + added, 2000);
|
|
5221
|
+
const offset = maxDistance + 1;
|
|
5222
|
+
const frontier = new Int32Array(2 * maxDistance + 3);
|
|
5223
|
+
let work = 0;
|
|
5224
|
+
for (let distance = 0; distance <= maxDistance; distance++) {
|
|
5225
|
+
for (let diagonal = -distance; diagonal <= distance; diagonal += 2) {
|
|
5226
|
+
if (++work > 1000000) return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5227
|
+
const index = offset + diagonal;
|
|
5228
|
+
let x = diagonal === -distance || (diagonal !== distance && frontier[index - 1] < frontier[index + 1])
|
|
5229
|
+
? frontier[index + 1]
|
|
5230
|
+
: frontier[index - 1] + 1;
|
|
5231
|
+
let y = x - diagonal;
|
|
5232
|
+
while (x < removed && y < added && oldLines[start + x] === newLines[start + y]) {
|
|
5233
|
+
if (++work > 1000000) return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5234
|
+
x++;
|
|
5235
|
+
y++;
|
|
5236
|
+
}
|
|
5237
|
+
if (x >= removed && y >= added) {
|
|
5238
|
+
return { diff: { removed: (distance + removed - added) / 2, added: (distance + added - removed) / 2 } };
|
|
5239
|
+
}
|
|
5240
|
+
frontier[index] = x;
|
|
5241
|
+
}
|
|
5242
|
+
}
|
|
5243
|
+
return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5244
|
+
}
|
|
5245
|
+
`;
|
|
5246
|
+
|
|
5247
|
+
/** Compare actual file contents inside the sandbox; reporting must never prevent an edit. */ function buildEditCommand(filePath, oldString, newString, replaceAll) {
|
|
5248
|
+
const encoded = Buffer.from(JSON.stringify({
|
|
5249
|
+
filePath,
|
|
5250
|
+
oldString,
|
|
5251
|
+
newString,
|
|
5252
|
+
replaceAll
|
|
5253
|
+
})).toString('base64');
|
|
5254
|
+
const script = `
|
|
5255
|
+
const fs = require('node:fs');
|
|
5256
|
+
const input = JSON.parse(Buffer.from('${encoded}', 'base64').toString('utf8'));
|
|
5257
|
+
const lines = text => text.length ? text.split('\\n').length - Number(text.endsWith('\\n')) : 0;
|
|
5258
|
+
const metrics = { oldLines: lines(input.oldString), newLines: lines(input.newString) };
|
|
5259
|
+
|
|
5260
|
+
${FILE_EDIT_DIFF_SCRIPT}
|
|
5261
|
+
|
|
5262
|
+
function unchanged(exitCode) {
|
|
5263
|
+
console.log(JSON.stringify({ ...metrics, occurrences: 0, changed: false, diff: { removed: 0, added: 0 } }));
|
|
5264
|
+
process.exit(exitCode);
|
|
5265
|
+
}
|
|
5266
|
+
let before;
|
|
5267
|
+
try { before = fs.readFileSync(input.filePath, 'utf8'); } catch { unchanged(3); }
|
|
5268
|
+
const occurrences = before.split(input.oldString).length - 1;
|
|
5269
|
+
if (occurrences === 0) unchanged(1);
|
|
5270
|
+
if (occurrences > 1 && !input.replaceAll) unchanged(2);
|
|
5271
|
+
const after = before.split(input.oldString).join(input.newString);
|
|
5272
|
+
const changed = before !== after;
|
|
5273
|
+
if (changed) fs.writeFileSync(input.filePath, after, 'utf8');
|
|
5274
|
+
try {
|
|
5275
|
+
Object.assign(metrics, inspectLineDiff(before, after));
|
|
5276
|
+
} catch {
|
|
5277
|
+
metrics.diffUnavailable = 'diff_unavailable';
|
|
5278
|
+
}
|
|
5279
|
+
console.log(JSON.stringify({ ...metrics, occurrences, changed }));
|
|
5280
|
+
`;
|
|
5281
|
+
return `node -e '${script.replace(/'/g, "'\\''")}'`;
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5013
5284
|
const MAX_LINE_LENGTH = 500;
|
|
5014
5285
|
const MAX_GREP_LINE_LENGTH = 2000;
|
|
5015
5286
|
const GREP_RESULT_LIMIT = 100;
|
|
@@ -5509,41 +5780,6 @@ fs.appendFileSync(filePath, content, 'utf-8');
|
|
|
5509
5780
|
console.log('OK');
|
|
5510
5781
|
"`;
|
|
5511
5782
|
}
|
|
5512
|
-
/**
|
|
5513
|
-
* Node.js command template for editing files.
|
|
5514
|
-
*/ function buildEditCommand(filePath, oldStr, newStr, replaceAll) {
|
|
5515
|
-
const pathB64 = utf8ToBase64(filePath);
|
|
5516
|
-
const oldB64 = utf8ToBase64(oldStr);
|
|
5517
|
-
const newB64 = utf8ToBase64(newStr);
|
|
5518
|
-
return `node -e "
|
|
5519
|
-
const fs = require('fs');
|
|
5520
|
-
|
|
5521
|
-
const filePath = Buffer.from('${pathB64}', 'base64').toString('utf-8');
|
|
5522
|
-
const oldStr = Buffer.from('${oldB64}', 'base64').toString('utf-8');
|
|
5523
|
-
const newStr = Buffer.from('${newB64}', 'base64').toString('utf-8');
|
|
5524
|
-
const replaceAll = ${Boolean(replaceAll)};
|
|
5525
|
-
|
|
5526
|
-
let text;
|
|
5527
|
-
try {
|
|
5528
|
-
text = fs.readFileSync(filePath, 'utf-8');
|
|
5529
|
-
} catch (e) {
|
|
5530
|
-
process.exit(3);
|
|
5531
|
-
}
|
|
5532
|
-
|
|
5533
|
-
const count = text.split(oldStr).length - 1;
|
|
5534
|
-
|
|
5535
|
-
if (count === 0) {
|
|
5536
|
-
process.exit(1);
|
|
5537
|
-
}
|
|
5538
|
-
if (count > 1 && !replaceAll) {
|
|
5539
|
-
process.exit(2);
|
|
5540
|
-
}
|
|
5541
|
-
|
|
5542
|
-
const result = text.split(oldStr).join(newStr);
|
|
5543
|
-
fs.writeFileSync(filePath, result, 'utf-8');
|
|
5544
|
-
console.log(count);
|
|
5545
|
-
"`;
|
|
5546
|
-
}
|
|
5547
5783
|
/**
|
|
5548
5784
|
* Node.js command template for grep operations.
|
|
5549
5785
|
*/ function buildGrepCommand(pattern, searchPath, globPattern) {
|
|
@@ -6003,6 +6239,8 @@ function normalizePluginJobProcessorMetadata(options) {
|
|
|
6003
6239
|
pluginName,
|
|
6004
6240
|
queueName,
|
|
6005
6241
|
jobName
|
|
6242
|
+
}, options.controlContract === undefined ? {} : {
|
|
6243
|
+
controlContract: requireManagedQueueDecoratorValue(options.controlContract, 'controlContract')
|
|
6006
6244
|
}, concurrency === undefined ? {} : {
|
|
6007
6245
|
concurrency: Math.trunc(concurrency)
|
|
6008
6246
|
});
|
|
@@ -6567,6 +6805,68 @@ CollaborationDocumentProviderRegistry = __decorate([
|
|
|
6567
6805
|
])
|
|
6568
6806
|
], CollaborationDocumentProviderRegistry);
|
|
6569
6807
|
|
|
6808
|
+
const ContentDocumentsRuntimeCapability = createRuntimeCapability('platform.content.documents', {
|
|
6809
|
+
description: 'Project file-backed editor sessions, versioned publication and Assistant review.'
|
|
6810
|
+
});
|
|
6811
|
+
|
|
6812
|
+
const ContentReferencesRuntimeCapability = createRuntimeCapability('platform.content.references', {
|
|
6813
|
+
description: 'Authorized durable document references; plugins provide source-specific listing and files.'
|
|
6814
|
+
});
|
|
6815
|
+
|
|
6816
|
+
/** Matching semantic type alone never grants a writer access to an incompatible native model. */ function supportsContentModel(editor, model, access) {
|
|
6817
|
+
return editor.supports.some((item)=>item.typeId === model.typeId && item.modelId === model.modelId && item.schemaVersion === model.schemaVersion && item.editProtocol.id === model.editProtocol.id && item.editProtocol.version === model.editProtocol.version && item.access.includes(access));
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6820
|
+
function isTextContentEditor(provider) {
|
|
6821
|
+
return provider.descriptor.kind === 'text-document';
|
|
6822
|
+
}
|
|
6823
|
+
function isFileContentEditor(provider) {
|
|
6824
|
+
return provider.descriptor.kind === 'file';
|
|
6825
|
+
}
|
|
6826
|
+
function isResourceContentEditor(provider) {
|
|
6827
|
+
return provider.descriptor.kind === 'resource';
|
|
6828
|
+
}
|
|
6829
|
+
const EDITOR_PROVIDER = 'XPERT_CONTENT_EDITOR_PROVIDER';
|
|
6830
|
+
const ContentEditorProvider = (key)=>applyDecorators(SetMetadata(EDITOR_PROVIDER, key), SetMetadata(STRATEGY_META_KEY, EDITOR_PROVIDER));
|
|
6831
|
+
let ContentEditorRegistry = class ContentEditorRegistry extends BaseStrategyRegistry {
|
|
6832
|
+
getTextModel(key, organizationId) {
|
|
6833
|
+
const provider = this.get(key, organizationId);
|
|
6834
|
+
if (!isTextContentEditor(provider)) throw new Error('Editor does not implement the text document protocol');
|
|
6835
|
+
return provider;
|
|
6836
|
+
}
|
|
6837
|
+
constructor(discovery, reflector){
|
|
6838
|
+
super(EDITOR_PROVIDER, discovery, reflector);
|
|
6839
|
+
}
|
|
6840
|
+
};
|
|
6841
|
+
ContentEditorRegistry = __decorate([
|
|
6842
|
+
Injectable(),
|
|
6843
|
+
__metadata("design:paramtypes", [
|
|
6844
|
+
DiscoveryService,
|
|
6845
|
+
Reflector
|
|
6846
|
+
])
|
|
6847
|
+
], ContentEditorRegistry);
|
|
6848
|
+
const ContentEditorsRuntimeCapability = createRuntimeCapability('platform.content.editors', {
|
|
6849
|
+
description: 'Discover editors, resolve authorized resources and exchange versioned file bytes without format-specific models.'
|
|
6850
|
+
});
|
|
6851
|
+
|
|
6852
|
+
const CONTENT_RESOURCE_PROVIDER = 'XPERT_CONTENT_RESOURCE_PROVIDER';
|
|
6853
|
+
const ContentResourceProvider = (key)=>applyDecorators(SetMetadata(CONTENT_RESOURCE_PROVIDER, key), SetMetadata(STRATEGY_META_KEY, CONTENT_RESOURCE_PROVIDER));
|
|
6854
|
+
let ContentResourceProviderRegistry = class ContentResourceProviderRegistry extends BaseStrategyRegistry {
|
|
6855
|
+
constructor(discovery, reflector){
|
|
6856
|
+
super(CONTENT_RESOURCE_PROVIDER, discovery, reflector);
|
|
6857
|
+
}
|
|
6858
|
+
};
|
|
6859
|
+
ContentResourceProviderRegistry = __decorate([
|
|
6860
|
+
Injectable(),
|
|
6861
|
+
__metadata("design:paramtypes", [
|
|
6862
|
+
DiscoveryService,
|
|
6863
|
+
Reflector
|
|
6864
|
+
])
|
|
6865
|
+
], ContentResourceProviderRegistry);
|
|
6866
|
+
const ContentResourcesRuntimeCapability = createRuntimeCapability('platform.content.resources', {
|
|
6867
|
+
description: 'Current organization identities and plugin-owned content authorization.'
|
|
6868
|
+
});
|
|
6869
|
+
|
|
6570
6870
|
const EVOLUTION_TARGET_PROVIDER = 'EVOLUTION_TARGET_PROVIDER';
|
|
6571
6871
|
const EvolutionTargetProviderStrategy = (providerKey)=>applyDecorators(SetMetadata(EVOLUTION_TARGET_PROVIDER, providerKey), SetMetadata(STRATEGY_META_KEY, EVOLUTION_TARGET_PROVIDER));
|
|
6572
6872
|
|
|
@@ -10426,18 +10726,104 @@ const ProjectTasksRuntimeCapability = createRuntimeCapability('platform.project.
|
|
|
10426
10726
|
description: 'Read project task graphs, request background synchronization, manage schedules, and resolve exact execution conversations.'
|
|
10427
10727
|
});
|
|
10428
10728
|
|
|
10729
|
+
class UnavailablePipelineContribution {
|
|
10730
|
+
constructor(metatype, issues){
|
|
10731
|
+
this.metatype = metatype;
|
|
10732
|
+
this.issues = issues;
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10735
|
+
function pipelineContributionIssues(error) {
|
|
10736
|
+
// Do not log schema messages or input values, which may contain plugin configuration secrets.
|
|
10737
|
+
return error.issues.slice(0, 20).map(({ path, code })=>({
|
|
10738
|
+
path,
|
|
10739
|
+
code
|
|
10740
|
+
}));
|
|
10741
|
+
}
|
|
10742
|
+
function isolatePipelineContribution(target) {
|
|
10743
|
+
function IsolatedContribution(...args) {
|
|
10744
|
+
try {
|
|
10745
|
+
return Reflect.construct(target, args, new.target);
|
|
10746
|
+
} catch (error) {
|
|
10747
|
+
if (!Reflect.getMetadata(PLUGIN_METADATA_KEY, new.target) || !(error instanceof z.ZodError)) throw error;
|
|
10748
|
+
return new UnavailablePipelineContribution(new.target, pipelineContributionIssues(error));
|
|
10749
|
+
}
|
|
10750
|
+
}
|
|
10751
|
+
Object.setPrototypeOf(IsolatedContribution, target);
|
|
10752
|
+
IsolatedContribution.prototype = Object.create(target.prototype, {
|
|
10753
|
+
constructor: {
|
|
10754
|
+
value: IsolatedContribution,
|
|
10755
|
+
writable: true,
|
|
10756
|
+
configurable: true
|
|
10757
|
+
}
|
|
10758
|
+
});
|
|
10759
|
+
Object.defineProperty(IsolatedContribution, 'name', {
|
|
10760
|
+
value: target.name
|
|
10761
|
+
});
|
|
10762
|
+
// A class decorator must preserve the caller's constructor type; Reflect.construct preserves its arguments.
|
|
10763
|
+
return IsolatedContribution;
|
|
10764
|
+
}
|
|
10765
|
+
|
|
10766
|
+
var ProjectPipelineContributionRegistry_1;
|
|
10429
10767
|
const PROJECT_PIPELINE_CONTRIBUTION = 'PROJECT_PIPELINE_CONTRIBUTION';
|
|
10430
|
-
const ProjectPipelineContributor = (key)=>
|
|
10431
|
-
|
|
10768
|
+
const ProjectPipelineContributor = (key)=>(target)=>{
|
|
10769
|
+
applyDecorators(SetMetadata(PROJECT_PIPELINE_CONTRIBUTION, key), SetMetadata(STRATEGY_META_KEY, PROJECT_PIPELINE_CONTRIBUTION))(target);
|
|
10770
|
+
return isolatePipelineContribution(target);
|
|
10771
|
+
};
|
|
10772
|
+
let ProjectPipelineContributionRegistry = ProjectPipelineContributionRegistry_1 = class ProjectPipelineContributionRegistry extends BaseStrategyRegistry {
|
|
10432
10773
|
upsert(instance) {
|
|
10433
10774
|
const target = resolveStrategyMetadataTarget(instance);
|
|
10434
10775
|
const key = target ? this.reflector.get(PROJECT_PIPELINE_CONTRIBUTION, target) : undefined;
|
|
10435
10776
|
if (!key) return;
|
|
10436
|
-
const
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10777
|
+
const source = this.getSource(instance);
|
|
10778
|
+
try {
|
|
10779
|
+
if (instance instanceof UnavailablePipelineContribution) {
|
|
10780
|
+
this.rejectContribution(key, source, instance.issues);
|
|
10781
|
+
return;
|
|
10782
|
+
}
|
|
10783
|
+
const contribution = projectPipelineContributionSchema.parse(instance);
|
|
10784
|
+
if (key !== contribution.key) throw new Error('PIPELINE_CONTRIBUTION_KEY_MISMATCH');
|
|
10785
|
+
// Parsing validates public fields before preserving loader provenance.
|
|
10786
|
+
this.registerParsed(key, instance, contribution, source);
|
|
10787
|
+
this.failures.delete(this.failureIdentity(key, source));
|
|
10788
|
+
} catch (error) {
|
|
10789
|
+
if (source.kind !== 'plugin' || !(error instanceof z.ZodError)) throw error;
|
|
10790
|
+
this.rejectContribution(key, source, pipelineContributionIssues(error));
|
|
10791
|
+
}
|
|
10792
|
+
}
|
|
10793
|
+
getRegistrationFailures() {
|
|
10794
|
+
return structuredClone([
|
|
10795
|
+
...this.failures.values()
|
|
10796
|
+
]);
|
|
10797
|
+
}
|
|
10798
|
+
remove(scopeKey, pluginName) {
|
|
10799
|
+
super.remove(scopeKey, pluginName);
|
|
10800
|
+
for (const [identity, failure] of this.failures){
|
|
10801
|
+
if (failure.source.scopeKey === scopeKey && failure.source.pluginName === pluginName) this.failures.delete(identity);
|
|
10802
|
+
}
|
|
10803
|
+
}
|
|
10804
|
+
failureIdentity(key, source) {
|
|
10805
|
+
return JSON.stringify([
|
|
10806
|
+
source.scopeKey,
|
|
10807
|
+
source.kind === 'plugin' ? source.pluginName : null,
|
|
10808
|
+
key
|
|
10809
|
+
]);
|
|
10810
|
+
}
|
|
10811
|
+
rejectContribution(key, source, issues) {
|
|
10812
|
+
var _this_strategies_get;
|
|
10813
|
+
if (source.kind !== 'plugin') throw new Error('PIPELINE_CONTRIBUTION_INVALID');
|
|
10814
|
+
const previous = (_this_strategies_get = this.strategies.get(source.scopeKey)) == null ? void 0 : _this_strategies_get.get(key);
|
|
10815
|
+
if (previous) {
|
|
10816
|
+
const owner = this.getSource(previous);
|
|
10817
|
+
if (owner.kind === 'plugin' && owner.pluginName === source.pluginName) this.unregister(key, source, previous);
|
|
10818
|
+
}
|
|
10819
|
+
const failure = {
|
|
10820
|
+
key,
|
|
10821
|
+
source,
|
|
10822
|
+
code: 'PIPELINE_CONTRIBUTION_INVALID',
|
|
10823
|
+
issues
|
|
10824
|
+
};
|
|
10825
|
+
this.failures.set(this.failureIdentity(key, source), failure);
|
|
10826
|
+
this.failureLogger.error(failure);
|
|
10441
10827
|
}
|
|
10442
10828
|
register(key, contribution, source) {
|
|
10443
10829
|
return this.registerParsed(key, contribution, projectPipelineContributionSchema.parse(contribution), source);
|
|
@@ -10501,9 +10887,11 @@ let ProjectPipelineContributionRegistry = class ProjectPipelineContributionRegis
|
|
|
10501
10887
|
constructor(discovery, reflector){
|
|
10502
10888
|
super(PROJECT_PIPELINE_CONTRIBUTION, discovery, reflector);
|
|
10503
10889
|
this.parsedContributions = new WeakMap();
|
|
10890
|
+
this.failures = new Map();
|
|
10891
|
+
this.failureLogger = new Logger(ProjectPipelineContributionRegistry_1.name);
|
|
10504
10892
|
}
|
|
10505
10893
|
};
|
|
10506
|
-
ProjectPipelineContributionRegistry = __decorate([
|
|
10894
|
+
ProjectPipelineContributionRegistry = ProjectPipelineContributionRegistry_1 = __decorate([
|
|
10507
10895
|
Injectable(),
|
|
10508
10896
|
__metadata("design:paramtypes", [
|
|
10509
10897
|
DiscoveryService,
|
|
@@ -10696,4 +11084,4 @@ Reflect.defineMetadata('__command__', {
|
|
|
10696
11084
|
id: ImportDefaultAgentPluginsCommand.type
|
|
10697
11085
|
}, ImportDefaultAgentPluginsCommand);
|
|
10698
11086
|
|
|
10699
|
-
export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_MIDDLEWARE_STRATEGY, AGENT_RUNTIME_EVENT_MESSAGE_TYPE, AGENT_RUNTIME_STRATEGY, AIModel, AIModelProviderNotFoundException, AIModelProviderRegistry, AIModelProviderStrategy, AI_MODEL_PROVIDER, ANALYTICS_PROVIDER, ARTIFACT_PRESENTATION_PROVIDER, ASSISTANT_CAPABILITY_PROVIDER, AdapterDataSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderRegistry, AnalyticsRuntimeCapability, ArtifactPresentationProvider, ArtifactPresentationRegistry, AssistantCapabilityProvider, AssistantCapabilityProviderRegistry, AssistantTaskRuntimeCapability, BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN, BUILTIN_GLOBAL_SCOPE, BaseHTTPQueryRunner, BaseQueryRunner, BaseSQLQueryRunner, BaseSandbox, BaseStrategyRegistry, BuiltinToolset, CHAT_CHANNEL, CHAT_CHANNEL_TEXT_LIMITS, CLI_MODEL_TOKEN_REFERENCE, COLLABORATION_DOCUMENT_PROVIDER, CONNECTION_COMMAND_ROUTER_TOKEN, CONNECTOR_STRATEGY, CancelConversationCommand, ChatChannel, ChatChannelRegistry, ChatOAICompatReasoningModel, CliModelProfilesCapability, CollaborationDocumentProvider, CollaborationDocumentProviderRegistry, CollaborationRuntimeCapability, CommonParameterRules, ConnectorRuntimeCapability, ConnectorRuntimeFactoryCapability, ConnectorStrategyKey, ConnectorStrategyRegistry, CreateModelClientCommand, CredentialsValidateFailedError, DATASOURCE_STRATEGY, DBCreateTableMode, DBProtocolEnum, DBSyntaxEnum, DBTableAction, DBTableDataAction, DEFAULT_EXECUTION_CONFIG, DEFAULT_SANDBOX_EXECUTION_MAX_OUTPUT_BYTES, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_SEC, DEFAULT_SANDBOX_FILE_SEARCH_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_SEC, DEFAULT_SANDBOX_SHELL_EXECUTION_OPTIONS, DEFAULT_SANDBOX_SHELL_TIMEOUT_MS, DEFAULT_SANDBOX_SHELL_TIMEOUT_SEC, DOCUMENT_SOURCE_STRATEGY, DOCUMENT_TRANSFORMER_STRATEGY, DataSourceStrategy, DataSourceStrategyRegistry, DecoratedAgentMiddlewareStrategy, DecoratedToolsetStrategy, DocumentSourceRegistry, DocumentSourceStrategy, DocumentTransformerRegistry, DocumentTransformerStrategy, EVOLUTION_RUNTIME_SERVICE_TOKEN, EVOLUTION_TARGET_PROVIDER, EvolutionBaselineRuntimeCapability, EvolutionChangeRuntimeCapability, EvolutionRuntimeCapability, EvolutionTargetProviderRegistry, EvolutionTargetProviderStrategy, FILE_STORAGE_PROVIDER, FILE_UPLOAD_TARGET_STRATEGY, FileRuntimeCapability, FileStorageProvider, FileStorageProviderRegistry, FileUploadTargetRegistry, FileUploadTargetStrategy, GLOBAL_ORGANIZATION_SCOPE, HANDOFF_PERMISSION_SERVICE_TOKEN, HANDOFF_PROCESSOR_STRATEGY, HANDOFF_QUEUE_SERVICE_TOKEN, HandoffProcessorRegistry, HandoffProcessorStrategy, IMAGE_UNDERSTANDING_STRATEGY, INTEGRATION_PERMISSION_SERVICE_TOKEN, INTEGRATION_STRATEGY, ImageGenerationModel, ImageUnderstandingRegistry, ImageUnderstandingStrategy, ImportDefaultAgentPluginsCommand, IntegrationStrategyKey, IntegrationStrategyRegistry, JUMP_TO_TARGETS, JsonSchemaValidator, KEYWORD_ANALYZER_STRATEGY, KNOWLEDGE_STRATEGY, KeywordAnalyzerRegistry, KeywordAnalyzerStrategy, KnowledgeDocumentVisualAssetsRuntimeCapability, KnowledgeDocumentVisualAssetsRuntimeFactoryCapability, KnowledgeGraphRuntimeCapability, KnowledgeStrategyKey, KnowledgeStrategyRegistry, KnowledgebaseDocumentsRuntimeCapability, KnowledgebaseProvisioningRuntimeCapability, KnowledgebaseRuntimeCapability, LLMUsage, LargeLanguageModel, ListAnalyticsSourcesCommand, MANAGED_CONNECTION_REGISTRY_TOKEN, MANAGED_QUEUE_HANDLER_REGISTRY_TOKEN, MANAGED_QUEUE_SERVICE_TOKEN, MCP_CAPABILITY_CHANGE_EVENT_TYPES, MODEL_OUTPUT_VALIDATION_ERROR_CODE, ModelExecutionEnvironmentCapability, ModelOutputValidationError, ModelProvider, ORGANIZATION_METADATA_KEY, OpenAICompatibleReranker, PERMISSION_OPERATION_METADATA_KEY, PLUGIN_CONFIG_RESOLVER_TOKEN, PLUGIN_JOB_PROCESSOR_METADATA, PLUGIN_METADATA, PLUGIN_METADATA_KEY, PLUGIN_VERSION_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_SERVICE_TOKEN, PROJECT_PIPELINE_CONTRIBUTION, PROJECT_PIPELINE_PROJECTION_PROVIDER, PROJECT_PIPELINE_RUNTIME_ADAPTER, PROJECT_TASK_PROVIDER, PROJECT_TYPE_PROVIDER, PROVIDE_AI_MODEL_LLM, PROVIDE_AI_MODEL_MODERATION, PROVIDE_AI_MODEL_RERANK, PROVIDE_AI_MODEL_SPEECH2TEXT, PROVIDE_AI_MODEL_TEXT_EMBEDDING, PROVIDE_AI_MODEL_TTS, PluginJobProcessor, PluginWebhookAuth, PluginWebhookAuthGuard, ProjectPipelineAnalyticsRuntimeCapability, ProjectPipelineCatalogRuntimeCapability, ProjectPipelineCommandsRuntimeCapability, ProjectPipelineConfigurationRuntimeCapability, ProjectPipelineContributionRegistry, ProjectPipelineContributor, ProjectPipelineEvidenceRuntimeCapability, ProjectPipelinePortfolioRuntimeCapability, ProjectPipelineProjectionProvider, ProjectPipelineProjectionProviderRegistry, ProjectPipelineProviderActionsRuntimeCapability, ProjectPipelineRuntimeAdapterProvider, ProjectPipelineRuntimeAdapterRegistry, ProjectPipelinesRuntimeCapability, ProjectTaskProvider, ProjectTaskProviderRegistry, ProjectTasksRuntimeCapability, ProjectTypeProvider, ProjectTypeProviderRegistry, RESOURCE_CARD_EVENT, RESOURCE_CARD_PROVIDER, RETRIEVER_STRATEGY, RequestContext, RequestContextMiddleware, RequirePermissionOperation, RerankModel, ResolveAnalyticsSourceCommand, ResolveConnectorIntegrationQuery, ResourceCardProvider, ResourceCardProviderRegistry, RetrieverRegistry, RetrieverStrategy, SANDBOX_PROVIDER, SANDBOX_RUNTIME_PROVIDER, SANDBOX_SHELL_TIMEOUT_LIMITS_SEC, SANDBOX_WORKSPACE_MAPPER, SKILL_SOURCE_PROVIDER, SPEECH_TO_TEXT_PERMISSION_SERVICE_TOKEN, SPEECH_TO_TEXT_SERVICE_TOKEN, SSOProviderRegistry, SSOProviderStrategyKey, SSO_BINDING_PERMISSION_SERVICE_TOKEN, SSO_PROVIDER, STRATEGY_META_KEY, SYSTEM_GLOBAL_SCOPE, SandboxProviderRegistry, SandboxProviderStrategy, SandboxRuntimeProviderRegistry, SandboxRuntimeProviderStrategy, SandboxWorkspaceMapperRegistry, SandboxWorkspaceMapperStrategy, ShellModelExecutionSourceCapability, SkillSourceProviderRegistry, SkillSourceProviderStrategy, Speech2TextChatModel, SpeechToTextModel, StrategyBus, TENANT_GLOBAL_SCOPE_PREFIX, TENANT_GLOBAL_SCOPE_SUFFIX, TEXT_SPLITTER_STRATEGY, TOOLSET_STRATEGY, TextEmbeddingModelManager, TextSplitterRegistry, TextSplitterStrategy, TextToSpeechModel, ToolsetRegistry, ToolsetStrategy, USER_PERMISSION_SERVICE_TOKEN, VECTOR_STORE_STRATEGY, VIDEO_GENERATION_PERMISSION_SERVICE_TOKEN, VIDEO_GENERATION_SERVICE_TOKEN, VIDEO_GENERATOR_FAMILIES, VIEW_EXTENSION_CACHE_SERVICE_TOKEN, VIEW_EXTENSION_PROVIDER, VectorStoreRegistry, VectorStoreStrategy, VideoGenerationModel, ViewExtensionProvider, ViewExtensionProviderRegistry, ViewMiddlewareRuntimeCapability, WORKFLOW_NODE_STRATEGY, WORKFLOW_TRIGGER_STRATEGY, WorkflowNodeRegistry, WorkflowNodeStrategy, WorkflowTriggerRegistry, WorkflowTriggerStrategy, WorkspaceFilesRuntimeCapability, WrapWorkflowNodeExecutionCommand, XPERT_AGENT_MIDDLEWARE_RUNTIME_TOKEN, XPERT_TOOL_METHOD_METADATA, XPERT_TOOL_PROVIDER, XPERT_TOOL_PROVIDER_METADATA, XPERT_TOOL_RESULT_FORMAT_VERSION, XpFileSystem, XpertPrompt, XpertResource, XpertResourceTemplate, XpertServerPlugin, XpertTool, XpertToolProvider, XpertToolProviderCoordinator, XpertToolProviderRegistry, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, assertConnectorDefinition, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, chunkText, countTextTokens, countTokensSafe, createI18nInstance, createMutationEvidence, createPluginLogger, createRuntimeCapability, defineAgentMessageType, defineChannelMessageType, defineMcpApp, defineMcpCapabilities, defineMcpPrompt, defineMcpResource, defineMcpResourceTemplate, defineXpertTool, derivePluginArtifactNamespace, describeXpertToolProvider, discoverOpenAIModels, downloadRemoteFile, emitResourceCard, formatSandboxTimeout, getDefaultTenantId, getErrorMessage, getModelContextSize, getPermissionOperationMetadata, getPositionList, getPositionMap, getRequestContext, getRequiredPermissionOperation, getTenantGlobalScopeKey, getXpertToolMethod, isAgentInvocationTerminal, isDevelopmentSandboxRuntimeEnvironment, isModelOutputValidationError, isModelUsagePricingConfig, isPluginArtifactNamespace, isRemoteFile, isSandboxBackend, isSandboxManagedServiceAdapter, isSandboxServiceProxyAdapter, isSandboxTerminalAdapter, isStrategyInstance, isStructuredMessageType, isTenantGlobalScopeKey, jsonEncodedSchema, knowledgebaseActions, loadYamlFile, mergeCredentials, mergeModelRequirements, mergeParentChildChunks, nativeModelTransport, normalizeContextSize, normalizeTokenUsage, pluginArtifactTableName, prepareToolResult, processAsyncAIGCManagedJob, projectPipelineInvocationScopeSchema, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
|
|
11087
|
+
export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_MIDDLEWARE_STRATEGY, AGENT_PROCESS_SUPERVISOR, AGENT_RUNTIME_EVENT_MESSAGE_TYPE, AGENT_RUNTIME_STRATEGY, AIModel, AIModelProviderNotFoundException, AIModelProviderRegistry, AIModelProviderStrategy, AI_MODEL_PROVIDER, ANALYTICS_PROVIDER, ARTIFACT_PRESENTATION_PROVIDER, ASSISTANT_CAPABILITY_PROVIDER, AdapterDataSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderRegistry, AnalyticsRuntimeCapability, ArtifactPresentationProvider, ArtifactPresentationRegistry, AssistantCapabilityProvider, AssistantCapabilityProviderRegistry, AssistantTaskRuntimeCapability, BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN, BUILTIN_GLOBAL_SCOPE, BaseHTTPQueryRunner, BaseQueryRunner, BaseSQLQueryRunner, BaseSandbox, BaseStrategyRegistry, BuiltinToolset, CHAT_CHANNEL, CHAT_CHANNEL_TEXT_LIMITS, CLI_MODEL_TOKEN_REFERENCE, COLLABORATION_DOCUMENT_PROVIDER, CONNECTION_COMMAND_ROUTER_TOKEN, CONNECTOR_STRATEGY, CONTENT_RESOURCE_PROVIDER, CancelConversationCommand, ChatChannel, ChatChannelRegistry, ChatOAICompatReasoningModel, CliModelProfilesCapability, CollaborationDocumentProvider, CollaborationDocumentProviderRegistry, CollaborationRuntimeCapability, CommonParameterRules, ConnectorDocumentsRuntimeCapability, ConnectorRuntimeCapability, ConnectorRuntimeFactoryCapability, ConnectorStrategyKey, ConnectorStrategyRegistry, ContentDocumentsRuntimeCapability, ContentEditorProvider, ContentEditorRegistry, ContentEditorsRuntimeCapability, ContentReferencesRuntimeCapability, ContentResourceProvider, ContentResourceProviderRegistry, ContentResourcesRuntimeCapability, CreateModelClientCommand, CredentialsValidateFailedError, DATASOURCE_STRATEGY, DBCreateTableMode, DBProtocolEnum, DBSyntaxEnum, DBTableAction, DBTableDataAction, DEFAULT_EXECUTION_CONFIG, DEFAULT_SANDBOX_EXECUTION_MAX_OUTPUT_BYTES, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_SEC, DEFAULT_SANDBOX_FILE_SEARCH_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_SEC, DEFAULT_SANDBOX_SHELL_EXECUTION_OPTIONS, DEFAULT_SANDBOX_SHELL_TIMEOUT_MS, DEFAULT_SANDBOX_SHELL_TIMEOUT_SEC, DOCUMENT_SOURCE_STRATEGY, DOCUMENT_TRANSFORMER_STRATEGY, DataSourceStrategy, DataSourceStrategyRegistry, DecoratedAgentMiddlewareStrategy, DecoratedToolsetStrategy, DocumentSourceRegistry, DocumentSourceStrategy, DocumentTransformerRegistry, DocumentTransformerStrategy, EVOLUTION_RUNTIME_SERVICE_TOKEN, EVOLUTION_TARGET_PROVIDER, EvolutionBaselineRuntimeCapability, EvolutionChangeRuntimeCapability, EvolutionRuntimeCapability, EvolutionTargetProviderRegistry, EvolutionTargetProviderStrategy, FILE_STORAGE_PROVIDER, FILE_UPLOAD_TARGET_STRATEGY, FileRuntimeCapability, FileStorageProvider, FileStorageProviderRegistry, FileUploadTargetRegistry, FileUploadTargetStrategy, GLOBAL_ORGANIZATION_SCOPE, HANDOFF_PERMISSION_SERVICE_TOKEN, HANDOFF_PROCESSOR_STRATEGY, HANDOFF_QUEUE_SERVICE_TOKEN, HandoffProcessorRegistry, HandoffProcessorStrategy, IMAGE_UNDERSTANDING_STRATEGY, INTEGRATION_PERMISSION_SERVICE_TOKEN, INTEGRATION_STRATEGY, ImageGenerationModel, ImageUnderstandingRegistry, ImageUnderstandingStrategy, ImportDefaultAgentPluginsCommand, IntegrationStrategyKey, IntegrationStrategyRegistry, JUMP_TO_TARGETS, JsonSchemaValidator, KEYWORD_ANALYZER_STRATEGY, KNOWLEDGE_STRATEGY, KeywordAnalyzerRegistry, KeywordAnalyzerStrategy, KnowledgeDocumentVisualAssetsRuntimeCapability, KnowledgeDocumentVisualAssetsRuntimeFactoryCapability, KnowledgeGraphRuntimeCapability, KnowledgeStrategyKey, KnowledgeStrategyRegistry, KnowledgebaseDocumentsRuntimeCapability, KnowledgebaseProvisioningRuntimeCapability, KnowledgebaseRuntimeCapability, LLMUsage, LargeLanguageModel, ListAnalyticsSourcesCommand, MANAGED_CONNECTION_REGISTRY_TOKEN, MANAGED_QUEUE_HANDLER_REGISTRY_TOKEN, MANAGED_QUEUE_SERVICE_TOKEN, MCP_CAPABILITY_CHANGE_EVENT_TYPES, MODEL_OUTPUT_VALIDATION_ERROR_CODE, ModelExecutionEnvironmentCapability, ModelOutputValidationError, ModelProvider, ORGANIZATION_METADATA_KEY, OpenAICompatibleReranker, PERMISSION_OPERATION_METADATA_KEY, PLUGIN_CONFIG_RESOLVER_TOKEN, PLUGIN_JOB_PROCESSOR_METADATA, PLUGIN_METADATA, PLUGIN_METADATA_KEY, PLUGIN_VERSION_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_SERVICE_TOKEN, PROJECT_PIPELINE_CONTRIBUTION, PROJECT_PIPELINE_PROJECTION_PROVIDER, PROJECT_PIPELINE_RUNTIME_ADAPTER, PROJECT_TASK_PROVIDER, PROJECT_TYPE_PROVIDER, PROVIDE_AI_MODEL_LLM, PROVIDE_AI_MODEL_MODERATION, PROVIDE_AI_MODEL_RERANK, PROVIDE_AI_MODEL_SPEECH2TEXT, PROVIDE_AI_MODEL_TEXT_EMBEDDING, PROVIDE_AI_MODEL_TTS, PluginJobProcessor, PluginWebhookAuth, PluginWebhookAuthGuard, ProjectPipelineAnalyticsRuntimeCapability, ProjectPipelineCatalogRuntimeCapability, ProjectPipelineCommandsRuntimeCapability, ProjectPipelineConfigurationRuntimeCapability, ProjectPipelineContributionRegistry, ProjectPipelineContributor, ProjectPipelineEvidenceRuntimeCapability, ProjectPipelinePortfolioRuntimeCapability, ProjectPipelineProjectionProvider, ProjectPipelineProjectionProviderRegistry, ProjectPipelineProviderActionsRuntimeCapability, ProjectPipelineRuntimeAdapterProvider, ProjectPipelineRuntimeAdapterRegistry, ProjectPipelinesRuntimeCapability, ProjectTaskProvider, ProjectTaskProviderRegistry, ProjectTasksRuntimeCapability, ProjectTypeProvider, ProjectTypeProviderRegistry, RESOURCE_CARD_EVENT, RESOURCE_CARD_PROVIDER, RETRIEVER_STRATEGY, RequestContext, RequestContextMiddleware, RequirePermissionOperation, RerankModel, ResolveAnalyticsSourceCommand, ResolveConnectorIntegrationQuery, ResourceCardProvider, ResourceCardProviderRegistry, RetrieverRegistry, RetrieverStrategy, SANDBOX_PROVIDER, SANDBOX_RUNTIME_PROVIDER, SANDBOX_SHELL_TIMEOUT_LIMITS_SEC, SANDBOX_WORKSPACE_MAPPER, SKILL_SOURCE_PROVIDER, SPEECH_TO_TEXT_PERMISSION_SERVICE_TOKEN, SPEECH_TO_TEXT_SERVICE_TOKEN, SSOProviderRegistry, SSOProviderStrategyKey, SSO_BINDING_PERMISSION_SERVICE_TOKEN, SSO_PROVIDER, STRATEGY_META_KEY, SYSTEM_GLOBAL_SCOPE, SandboxProviderRegistry, SandboxProviderStrategy, SandboxRuntimeProviderRegistry, SandboxRuntimeProviderStrategy, SandboxWorkspaceMapperRegistry, SandboxWorkspaceMapperStrategy, ShellModelExecutionSourceCapability, SkillSourceProviderRegistry, SkillSourceProviderStrategy, Speech2TextChatModel, SpeechToTextModel, StrategyBus, TENANT_GLOBAL_SCOPE_PREFIX, TENANT_GLOBAL_SCOPE_SUFFIX, TEXT_SPLITTER_STRATEGY, TOOLSET_STRATEGY, TextEmbeddingModelManager, TextSplitterRegistry, TextSplitterStrategy, TextToSpeechModel, ToolsetRegistry, ToolsetStrategy, USER_PERMISSION_SERVICE_TOKEN, VECTOR_STORE_STRATEGY, VIDEO_GENERATION_PERMISSION_SERVICE_TOKEN, VIDEO_GENERATION_SERVICE_TOKEN, VIDEO_GENERATOR_FAMILIES, VIEW_EXTENSION_CACHE_SERVICE_TOKEN, VIEW_EXTENSION_PROVIDER, VectorStoreRegistry, VectorStoreStrategy, VideoGenerationModel, ViewExtensionProvider, ViewExtensionProviderRegistry, ViewMiddlewareRuntimeCapability, WORKFLOW_NODE_STRATEGY, WORKFLOW_TRIGGER_STRATEGY, WorkflowNodeRegistry, WorkflowNodeStrategy, WorkflowTriggerRegistry, WorkflowTriggerStrategy, WorkspaceFilesRuntimeCapability, WrapWorkflowNodeExecutionCommand, XPERT_AGENT_MIDDLEWARE_RUNTIME_TOKEN, XPERT_TOOL_METHOD_METADATA, XPERT_TOOL_PROVIDER, XPERT_TOOL_PROVIDER_METADATA, XPERT_TOOL_RESULT_FORMAT_VERSION, XpFileSystem, XpertPrompt, XpertResource, XpertResourceTemplate, XpertServerPlugin, XpertTool, XpertToolProvider, XpertToolProviderCoordinator, XpertToolProviderRegistry, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, assertConnectorDefinition, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, chunkText, countTextTokens, countTokensSafe, createI18nInstance, createMutationEvidence, createPluginLogger, createRuntimeCapability, defineAgentMessageType, defineChannelMessageType, defineMcpApp, defineMcpCapabilities, defineMcpPrompt, defineMcpResource, defineMcpResourceTemplate, defineXpertTool, derivePluginArtifactNamespace, describeXpertToolProvider, discoverOpenAIModels, downloadRemoteFile, emitResourceCard, formatSandboxTimeout, getDefaultTenantId, getErrorMessage, getModelContextSize, getPermissionOperationMetadata, getPositionList, getPositionMap, getRequestContext, getRequiredPermissionOperation, getTenantGlobalScopeKey, getXpertToolMethod, hasAssistantMiddleware, isAgentInvocationTerminal, isDevelopmentSandboxRuntimeEnvironment, isFileContentEditor, isModelOutputValidationError, isModelUsagePricingConfig, isPluginArtifactNamespace, isRemoteFile, isResourceContentEditor, isSandboxBackend, isSandboxManagedServiceAdapter, isSandboxServiceProxyAdapter, isSandboxTerminalAdapter, isStrategyInstance, isStructuredMessageType, isTenantGlobalScopeKey, isTextContentEditor, jsonEncodedSchema, knowledgebaseActions, loadYamlFile, managedAgentRuntimeSchema, mergeCredentials, mergeModelRequirements, mergeParentChildChunks, nativeModelTransport, normalizeContextSize, normalizeTokenUsage, pluginArtifactTableName, prepareToolResult, processAsyncAIGCManagedJob, projectPipelineInvocationScopeSchema, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
|