@xpert-ai/plugin-sdk 3.36.0 → 3.37.2
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/index.cjs.js +216 -95
- package/index.esm.js +209 -97
- package/package.json +2 -2
- package/src/lib/agent/handoff/agent-runtime-message.contract.d.ts +4 -4
- package/src/lib/agent/middleware/strategy.interface.d.ts +2 -0
- package/src/lib/agent/runtime/dispatch.d.ts +6 -6
- package/src/lib/agent-event/index.d.ts +36 -2
- package/src/lib/artifact-type/definition.schema.d.ts +11 -39
- package/src/lib/channel/strategy.interface.d.ts +20 -0
- package/src/lib/content-resource/catalog.d.ts +17 -1
- package/src/lib/project-pipeline/registry.d.ts +13 -5
- package/src/lib/sandbox/file-edit-command.d.ts +2 -1
- package/src/lib/sandbox/file-edits.d.ts +1 -0
- package/src/lib/sandbox/protocol.d.ts +7 -1
- package/src/lib/view-extension/index.d.ts +1 -0
- package/src/lib/view-extension/workbench-decision.d.ts +10 -0
package/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ 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
5
|
import { ChatMessageEventTypeEnum, createResourceCardContent, LanguagesEnum, parseAnalyticsDiagnostic, ParameterType, AiModelTypeEnum, PriceType, FetchFrom, ModelPropertyKey, readModelConfiguration, ModelFeature, isDiscoverableModelType, configurationFromModel, SecretTokenBindingType, projectTaskExecutionContextSchema, projectTaskExecutionReferenceSchema, agentRuntimeProgressSchema, agentInvocationTerminalStatusSchema, projectPipelineWorkContextSchema, WorkflowNodeTypeEnum, iconDefinitionSchema, 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, pluginAgentEventSchema, agentEventDecisionSchema } from '@xpert-ai/contracts';
|
|
6
|
-
export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, agentDeliveryRecoverySchema, agentEventDecisionSchema, agentEventRefSchema, agentOutputDeliverySchema, agentResultPathSchema, configurationFromModel, createResourceCardContent, parseResourceCard, pluginAgentEventSchema, projectPipelineContributionSchema, resourceCardId } from '@xpert-ai/contracts';
|
|
6
|
+
export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, agentDeliveryRecoverySchema, agentEventDecisionSchema, agentEventRefSchema, agentOutputDeliverySchema, agentResultPathSchema, configurationFromModel, createResourceCardContent, humanDecisionInputSchema, humanDecisionSchema, parseResourceCard, pluginAgentEventSchema, projectPipelineContributionSchema, resourceCardId } from '@xpert-ai/contracts';
|
|
7
7
|
import { DiscoveryService, Reflector } from '@nestjs/core';
|
|
8
8
|
import { Subject, filter } from 'rxjs';
|
|
9
9
|
import { _ as _extends } from './_extends.esm.js';
|
|
@@ -5206,6 +5206,105 @@ function resolveSandboxBackend(sandbox) {
|
|
|
5206
5206
|
return isSandboxBackend(candidate) ? candidate : null;
|
|
5207
5207
|
}
|
|
5208
5208
|
|
|
5209
|
+
// Embedded in the existing sandbox Node process; no Git, subprocess, or temporary files.
|
|
5210
|
+
const FILE_EDIT_DIFF_SCRIPT = String.raw`
|
|
5211
|
+
function inspectLineDiff(before, after) {
|
|
5212
|
+
if (before === after) return { diff: { removed: 0, added: 0 } };
|
|
5213
|
+
// Include line terminators so a missing final newline is an actual line change.
|
|
5214
|
+
const oldLines = before.match(/[^\n]*\n|[^\n]+$/g) || [];
|
|
5215
|
+
const newLines = after.match(/[^\n]*\n|[^\n]+$/g) || [];
|
|
5216
|
+
let start = 0, oldEnd = oldLines.length, newEnd = newLines.length;
|
|
5217
|
+
while (start < oldEnd && start < newEnd && oldLines[start] === newLines[start]) start++;
|
|
5218
|
+
while (oldEnd > start && newEnd > start && oldLines[oldEnd - 1] === newLines[newEnd - 1]) {
|
|
5219
|
+
oldEnd--;
|
|
5220
|
+
newEnd--;
|
|
5221
|
+
}
|
|
5222
|
+
const removed = oldEnd - start, added = newEnd - start;
|
|
5223
|
+
if (!removed || !added) return { diff: { removed, added } };
|
|
5224
|
+
|
|
5225
|
+
// Myers shortest edit distance needs only a frontier when reporting counts, not a patch.
|
|
5226
|
+
// Bound the optional quadratic search on broad rewrites; never limit the edit itself.
|
|
5227
|
+
const maxDistance = Math.min(removed + added, 2000);
|
|
5228
|
+
const offset = maxDistance + 1;
|
|
5229
|
+
const frontier = new Int32Array(2 * maxDistance + 3);
|
|
5230
|
+
let work = 0;
|
|
5231
|
+
for (let distance = 0; distance <= maxDistance; distance++) {
|
|
5232
|
+
for (let diagonal = -distance; diagonal <= distance; diagonal += 2) {
|
|
5233
|
+
if (++work > 1000000) return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5234
|
+
const index = offset + diagonal;
|
|
5235
|
+
let x = diagonal === -distance || (diagonal !== distance && frontier[index - 1] < frontier[index + 1])
|
|
5236
|
+
? frontier[index + 1]
|
|
5237
|
+
: frontier[index - 1] + 1;
|
|
5238
|
+
let y = x - diagonal;
|
|
5239
|
+
while (x < removed && y < added && oldLines[start + x] === newLines[start + y]) {
|
|
5240
|
+
if (++work > 1000000) return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5241
|
+
x++;
|
|
5242
|
+
y++;
|
|
5243
|
+
}
|
|
5244
|
+
if (x >= removed && y >= added) {
|
|
5245
|
+
return { diff: { removed: (distance + removed - added) / 2, added: (distance + added - removed) / 2 } };
|
|
5246
|
+
}
|
|
5247
|
+
frontier[index] = x;
|
|
5248
|
+
}
|
|
5249
|
+
}
|
|
5250
|
+
return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5251
|
+
}
|
|
5252
|
+
`;
|
|
5253
|
+
|
|
5254
|
+
// The same comparison runs for single and grouped edits. Only values encoded as
|
|
5255
|
+
// JSON/base64 enter the shell, never literal paths or replacement strings.
|
|
5256
|
+
function command(filePath, edits, batch) {
|
|
5257
|
+
const encoded = Buffer.from(JSON.stringify({
|
|
5258
|
+
filePath,
|
|
5259
|
+
edits,
|
|
5260
|
+
batch
|
|
5261
|
+
})).toString('base64');
|
|
5262
|
+
const script = `
|
|
5263
|
+
const fs = require('node:fs');
|
|
5264
|
+
const input = JSON.parse(Buffer.from('${encoded}', 'base64').toString('utf8'));
|
|
5265
|
+
const lines = text => text.length ? text.split('\\n').length - Number(text.endsWith('\\n')) : 0;
|
|
5266
|
+
${FILE_EDIT_DIFF_SCRIPT}
|
|
5267
|
+
let source;
|
|
5268
|
+
try { source = fs.readFileSync(input.filePath, 'utf8'); } catch {}
|
|
5269
|
+
let content = source;
|
|
5270
|
+
const steps = [];
|
|
5271
|
+
for (const edit of input.edits) {
|
|
5272
|
+
const metrics = { oldLines: lines(edit.oldString), newLines: lines(edit.newString) };
|
|
5273
|
+
const parts = content === undefined ? [] : content.split(edit.oldString);
|
|
5274
|
+
const count = parts.length - 1;
|
|
5275
|
+
const code = content === undefined ? 3 : count === 0 ? 1 : count > 1 && !edit.replaceAll ? 2 : 0;
|
|
5276
|
+
if (code) {
|
|
5277
|
+
steps.push({ code, metrics: { ...metrics, occurrences: 0, changed: false, diff: { removed: 0, added: 0 } } });
|
|
5278
|
+
break;
|
|
5279
|
+
}
|
|
5280
|
+
const after = parts.join(edit.newString);
|
|
5281
|
+
try { Object.assign(metrics, inspectLineDiff(content, after)); } catch { metrics.diffUnavailable = 'diff_unavailable'; }
|
|
5282
|
+
// A direct SDK edit of empty search text in an empty file historically reports one no-op.
|
|
5283
|
+
const occurrences = input.batch && count < 0 ? 1 : count;
|
|
5284
|
+
steps.push({ code, metrics: { ...metrics, occurrences, changed: content !== after } });
|
|
5285
|
+
content = after;
|
|
5286
|
+
}
|
|
5287
|
+
// A logical mismatch commits its valid prefix. An I/O failure must never emit
|
|
5288
|
+
// a successful receipt (or cause the host to replay a possibly committed edit).
|
|
5289
|
+
if (source !== content) fs.writeFileSync(input.filePath, content, 'utf8');
|
|
5290
|
+
if (input.batch) console.log(JSON.stringify(steps));
|
|
5291
|
+
else { console.log(JSON.stringify(steps[0].metrics)); process.exitCode = steps[0].code; }
|
|
5292
|
+
`;
|
|
5293
|
+
return `node -e '${script.replace(/'/g, "'\\''")}'`;
|
|
5294
|
+
}
|
|
5295
|
+
function buildEditCommand(filePath, oldString, newString, replaceAll) {
|
|
5296
|
+
return command(filePath, [
|
|
5297
|
+
{
|
|
5298
|
+
oldString,
|
|
5299
|
+
newString,
|
|
5300
|
+
replaceAll
|
|
5301
|
+
}
|
|
5302
|
+
], false);
|
|
5303
|
+
}
|
|
5304
|
+
function buildBatchEditCommand(filePath, edits) {
|
|
5305
|
+
return command(filePath, edits, true);
|
|
5306
|
+
}
|
|
5307
|
+
|
|
5209
5308
|
const editMetricsSchema = z.object({
|
|
5210
5309
|
occurrences: z.number().int().nonnegative(),
|
|
5211
5310
|
oldLines: z.number().int().nonnegative(),
|
|
@@ -5265,121 +5364,124 @@ function editCommandResult(filePath, result) {
|
|
|
5265
5364
|
};
|
|
5266
5365
|
}
|
|
5267
5366
|
}
|
|
5268
|
-
|
|
5269
|
-
const
|
|
5270
|
-
if (!
|
|
5367
|
+
function sequenceResult(path, results) {
|
|
5368
|
+
const count = results.length;
|
|
5369
|
+
if (!count) return {
|
|
5271
5370
|
error: 'No edits provided',
|
|
5272
5371
|
progress: {
|
|
5273
5372
|
mode: 'sequential',
|
|
5274
5373
|
appliedEdits: 0
|
|
5275
5374
|
}
|
|
5276
5375
|
};
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
error: `Multi-edit failed at edit ${results.length}: ${result.error}`,
|
|
5282
|
-
path: filePath,
|
|
5376
|
+
const last = results[count - 1];
|
|
5377
|
+
if (last.error) {
|
|
5378
|
+
return {
|
|
5379
|
+
path,
|
|
5283
5380
|
filesUpdate: null,
|
|
5284
5381
|
results,
|
|
5382
|
+
error: `Multi-edit failed at edit ${count}: ${last.error}`,
|
|
5285
5383
|
progress: {
|
|
5286
5384
|
mode: 'sequential',
|
|
5287
|
-
appliedEdits:
|
|
5288
|
-
failedEdit:
|
|
5385
|
+
appliedEdits: count - 1,
|
|
5386
|
+
failedEdit: count
|
|
5289
5387
|
}
|
|
5290
5388
|
};
|
|
5291
5389
|
}
|
|
5292
5390
|
return {
|
|
5293
|
-
path
|
|
5391
|
+
path,
|
|
5294
5392
|
filesUpdate: null,
|
|
5295
5393
|
results,
|
|
5296
5394
|
progress: {
|
|
5297
5395
|
mode: 'sequential',
|
|
5298
|
-
appliedEdits:
|
|
5396
|
+
appliedEdits: count
|
|
5299
5397
|
}
|
|
5300
5398
|
};
|
|
5301
5399
|
}
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
const
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
for (let diagonal = -distance; diagonal <= distance; diagonal += 2) {
|
|
5327
|
-
if (++work > 1000000) return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5328
|
-
const index = offset + diagonal;
|
|
5329
|
-
let x = diagonal === -distance || (diagonal !== distance && frontier[index - 1] < frontier[index + 1])
|
|
5330
|
-
? frontier[index + 1]
|
|
5331
|
-
: frontier[index - 1] + 1;
|
|
5332
|
-
let y = x - diagonal;
|
|
5333
|
-
while (x < removed && y < added && oldLines[start + x] === newLines[start + y]) {
|
|
5334
|
-
if (++work > 1000000) return { diffUnavailable: 'comparison_budget_exceeded' };
|
|
5335
|
-
x++;
|
|
5336
|
-
y++;
|
|
5337
|
-
}
|
|
5338
|
-
if (x >= removed && y >= added) {
|
|
5339
|
-
return { diff: { removed: (distance + removed - added) / 2, added: (distance + added - removed) / 2 } };
|
|
5340
|
-
}
|
|
5341
|
-
frontier[index] = x;
|
|
5400
|
+
/** Stops on failure; never promises rollback or silently reapplies completed edits. */ async function sequentialFileEdits(filePath, edits, apply) {
|
|
5401
|
+
const results = [];
|
|
5402
|
+
for (const edit of edits != null ? edits : []){
|
|
5403
|
+
const result = await apply(edit);
|
|
5404
|
+
results.push(result);
|
|
5405
|
+
if (result.error) break;
|
|
5406
|
+
}
|
|
5407
|
+
return sequenceResult(filePath, results);
|
|
5408
|
+
}
|
|
5409
|
+
const batchReceiptSchema = z.array(z.object({
|
|
5410
|
+
code: z.union([
|
|
5411
|
+
z.literal(0),
|
|
5412
|
+
z.literal(1),
|
|
5413
|
+
z.literal(2),
|
|
5414
|
+
z.literal(3)
|
|
5415
|
+
]),
|
|
5416
|
+
metrics: editMetricsSchema
|
|
5417
|
+
}));
|
|
5418
|
+
function batchSteps(output, count) {
|
|
5419
|
+
let raw;
|
|
5420
|
+
try {
|
|
5421
|
+
raw = JSON.parse(output);
|
|
5422
|
+
} catch (e) {
|
|
5423
|
+
return undefined;
|
|
5342
5424
|
}
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
}
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5425
|
+
const parsed = batchReceiptSchema.safeParse(raw);
|
|
5426
|
+
if (!parsed.success) return undefined;
|
|
5427
|
+
const steps = parsed.data;
|
|
5428
|
+
const failure = steps.findIndex((step)=>step.code !== 0);
|
|
5429
|
+
if (!steps.length || steps.length > count) return undefined;
|
|
5430
|
+
if (steps.some(({ code, metrics })=>code === 0 ? metrics.occurrences === 0 : metrics.changed || metrics.occurrences !== 0)) return undefined;
|
|
5431
|
+
if (failure < 0 ? steps.length !== count : failure !== steps.length - 1) return undefined;
|
|
5432
|
+
return steps;
|
|
5433
|
+
}
|
|
5434
|
+
/** Keep the encoded shell argument bounded. An oversized edit runs alone. */ function batchEnd(path, edits, start) {
|
|
5435
|
+
let bytes = Buffer.byteLength(JSON.stringify(path));
|
|
5436
|
+
let end = start;
|
|
5437
|
+
while(end < edits.length && end - start < 32){
|
|
5438
|
+
bytes += Buffer.byteLength(JSON.stringify(edits[end])) + 1;
|
|
5439
|
+
if (bytes > 64 * 1024) break;
|
|
5440
|
+
end++;
|
|
5441
|
+
}
|
|
5442
|
+
return Math.max(start + 1, end);
|
|
5443
|
+
}
|
|
5444
|
+
async function groupedFileEdits(path, edits, execute) {
|
|
5445
|
+
const results = [];
|
|
5446
|
+
var _edits_length;
|
|
5447
|
+
while(results.length < ((_edits_length = edits == null ? void 0 : edits.length) != null ? _edits_length : 0)){
|
|
5448
|
+
const start = results.length;
|
|
5449
|
+
const end = batchEnd(path, edits, start);
|
|
5450
|
+
const unconfirmed = (reason)=>({
|
|
5451
|
+
path,
|
|
5452
|
+
filesUpdate: null,
|
|
5453
|
+
results,
|
|
5454
|
+
error: `Sandbox multi-edit: ${reason}. Read the current file before retrying edits ${start + 1}–${end}.`,
|
|
5455
|
+
progress: {
|
|
5456
|
+
mode: 'sequential',
|
|
5457
|
+
appliedEdits: start,
|
|
5458
|
+
unconfirmedEdits: {
|
|
5459
|
+
from: start + 1,
|
|
5460
|
+
to: end
|
|
5461
|
+
}
|
|
5462
|
+
}
|
|
5463
|
+
});
|
|
5464
|
+
const command = buildBatchEditCommand(path, edits.slice(start, end));
|
|
5465
|
+
let response;
|
|
5466
|
+
try {
|
|
5467
|
+
response = await execute(command);
|
|
5468
|
+
} catch (e) {
|
|
5469
|
+
return unconfirmed('execution receipt unavailable');
|
|
5470
|
+
}
|
|
5471
|
+
if (response.timedOut) return unconfirmed('execution timed out');
|
|
5472
|
+
if (response.terminationReason) return unconfirmed(`execution terminated (${response.terminationReason})`);
|
|
5473
|
+
if (response.exitCode !== 0) return unconfirmed('execution did not exit successfully');
|
|
5474
|
+
if (response.truncated) return unconfirmed('truncated execution receipt');
|
|
5475
|
+
const steps = batchSteps(response.output, end - start);
|
|
5476
|
+
if (!steps) return unconfirmed('invalid execution receipt');
|
|
5477
|
+
for (const step of steps){
|
|
5478
|
+
results.push(editCommandResult(path, {
|
|
5479
|
+
output: JSON.stringify(step.metrics),
|
|
5480
|
+
exitCode: step.code}));
|
|
5481
|
+
}
|
|
5482
|
+
if (results[results.length - 1].error) break;
|
|
5483
|
+
}
|
|
5484
|
+
return sequenceResult(path, results);
|
|
5383
5485
|
}
|
|
5384
5486
|
|
|
5385
5487
|
const INDENTATION_SPACES = 2;
|
|
@@ -6208,10 +6310,13 @@ try {
|
|
|
6208
6310
|
return editCommandResult(filePath, result);
|
|
6209
6311
|
}
|
|
6210
6312
|
/** Earlier successful edits remain persisted if a later edit fails. */ multiEdit(filePath, edits) {
|
|
6211
|
-
|
|
6313
|
+
const single = (edit)=>{
|
|
6212
6314
|
var _edit_replaceAll;
|
|
6213
6315
|
return this.edit(filePath, edit.oldString, edit.newString, (_edit_replaceAll = edit.replaceAll) != null ? _edit_replaceAll : false);
|
|
6214
|
-
}
|
|
6316
|
+
};
|
|
6317
|
+
// Backends with their own edit storage/authorization semantics retain that implementation.
|
|
6318
|
+
if (this.edit !== BaseSandbox.prototype.edit) return sequentialFileEdits(filePath, edits, single);
|
|
6319
|
+
return groupedFileEdits(filePath, edits, (command)=>this.executeOperation(command, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS));
|
|
6215
6320
|
}
|
|
6216
6321
|
}
|
|
6217
6322
|
|
|
@@ -6886,6 +6991,13 @@ const ViewMiddlewareRuntimeCapability = createRuntimeCapability('platform.view.m
|
|
|
6886
6991
|
description: 'Resolve a View capability through its authorized Assistant middleware and scoped runtime.'
|
|
6887
6992
|
});
|
|
6888
6993
|
|
|
6994
|
+
/**
|
|
6995
|
+
* Lets a plugin's server-side View provider submit a human decision during an authorized
|
|
6996
|
+
* assistant or project workbench action. The host takes the actor and plugin identity from
|
|
6997
|
+
* the current action and routes the submission to their active source binding.
|
|
6998
|
+
* The event source checks who can decide the business matter and records the choice.
|
|
6999
|
+
*/ const WorkbenchDecisionCapability = createRuntimeCapability('platform.view.workbench-decision');
|
|
7000
|
+
|
|
6889
7001
|
const ARTIFACT_PRESENTATION_PROVIDER = 'ARTIFACT_PRESENTATION_PROVIDER';
|
|
6890
7002
|
const artifactPresentationKey = (source)=>`${source.pluginName}:${source.resourceType}`;
|
|
6891
7003
|
/** Registers a read-only renderer for an explicit Artifact source, independently of Workbench actions. */ const ArtifactPresentationProvider = (source)=>applyDecorators(SetMetadata(ARTIFACT_PRESENTATION_PROVIDER, artifactPresentationKey(source)), SetMetadata(STRATEGY_META_KEY, ARTIFACT_PRESENTATION_PROVIDER));
|
|
@@ -11579,4 +11691,4 @@ function agentEventDigest(value) {
|
|
|
11579
11691
|
const AGENT_EVENT_SOURCE = 'XPERT_AGENT_EVENT_SOURCE_V1';
|
|
11580
11692
|
const AgentEventSourceStrategy = (key)=>applyDecorators(SetMetadata(AGENT_EVENT_SOURCE, key), SetMetadata(STRATEGY_META_KEY, AGENT_EVENT_SOURCE));
|
|
11581
11693
|
|
|
11582
|
-
export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_EVENT_SOURCE, 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, ARTIFACT_TYPE_PROVIDER, ASSISTANT_CAPABILITY_PROVIDER, AdapterDataSourceStrategy, AgentEventSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderError, AnalyticsProviderRegistry, AnalyticsRuntimeCapability, ArtifactPresentationProvider, ArtifactPresentationRegistry, ArtifactTypeProvider, ArtifactTypeRegistry, 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, ExecutionObservabilityRuntimeCapability, ExecutionReviewRuntimeCapability, FILE_ARTIFACT_TYPE, 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, OpenAICompatibleEmbeddings, 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, PluginEventJournal, 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, agentEventDigest, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, artifactTypeKey, assertConnectorDefinition, assertXpertToolProviderClaims, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, canonicalEvolutionJson, 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, hashEvolutionValue, isAgentInvocationTerminal, isDevelopmentSandboxRuntimeEnvironment, isExecutionObservationSession, 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, readAnalyticsProviderDiagnostic, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
|
|
11694
|
+
export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_EVENT_SOURCE, 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, ARTIFACT_TYPE_PROVIDER, ASSISTANT_CAPABILITY_PROVIDER, AdapterDataSourceStrategy, AgentEventSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderError, AnalyticsProviderRegistry, AnalyticsRuntimeCapability, ArtifactPresentationProvider, ArtifactPresentationRegistry, ArtifactTypeProvider, ArtifactTypeRegistry, 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, ExecutionObservabilityRuntimeCapability, ExecutionReviewRuntimeCapability, FILE_ARTIFACT_TYPE, 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, OpenAICompatibleEmbeddings, 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, PluginEventJournal, 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, WorkbenchDecisionCapability, 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, agentEventDigest, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, artifactTypeKey, assertConnectorDefinition, assertXpertToolProviderClaims, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, canonicalEvolutionJson, 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, hashEvolutionValue, isAgentInvocationTerminal, isDevelopmentSandboxRuntimeEnvironment, isExecutionObservationSession, 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, readAnalyticsProviderDiagnostic, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/plugin-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.2",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@langchain/openai": "0.6.9",
|
|
83
|
-
"@xpert-ai/contracts": "3.
|
|
83
|
+
"@xpert-ai/contracts": "3.37.2",
|
|
84
84
|
"express": "^4.22.1",
|
|
85
85
|
"js-tiktoken": "^1.0.21"
|
|
86
86
|
},
|
|
@@ -29,23 +29,23 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
29
29
|
}, "strict", z.ZodTypeAny, {
|
|
30
30
|
source: "executor" | "host";
|
|
31
31
|
observedAt: string;
|
|
32
|
+
phase?: string | undefined;
|
|
32
33
|
startedAt?: string | undefined;
|
|
33
34
|
steps?: {
|
|
34
35
|
completed: number;
|
|
35
36
|
total: number;
|
|
36
37
|
} | undefined;
|
|
37
38
|
summary?: string | undefined;
|
|
38
|
-
phase?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
source: "executor" | "host";
|
|
41
41
|
observedAt: string;
|
|
42
|
+
phase?: string | undefined;
|
|
42
43
|
startedAt?: string | undefined;
|
|
43
44
|
steps?: {
|
|
44
45
|
completed: number;
|
|
45
46
|
total: number;
|
|
46
47
|
} | undefined;
|
|
47
48
|
summary?: string | undefined;
|
|
48
|
-
phase?: string | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
version: z.ZodLiteral<1>;
|
|
51
51
|
invocationId: z.ZodString;
|
|
@@ -70,13 +70,13 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
70
70
|
progress?: {
|
|
71
71
|
source: "executor" | "host";
|
|
72
72
|
observedAt: string;
|
|
73
|
+
phase?: string | undefined;
|
|
73
74
|
startedAt?: string | undefined;
|
|
74
75
|
steps?: {
|
|
75
76
|
completed: number;
|
|
76
77
|
total: number;
|
|
77
78
|
} | undefined;
|
|
78
79
|
summary?: string | undefined;
|
|
79
|
-
phase?: string | undefined;
|
|
80
80
|
};
|
|
81
81
|
revision?: number;
|
|
82
82
|
projectTask?: {
|
|
@@ -91,13 +91,13 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
91
91
|
progress?: {
|
|
92
92
|
source: "executor" | "host";
|
|
93
93
|
observedAt: string;
|
|
94
|
+
phase?: string | undefined;
|
|
94
95
|
startedAt?: string | undefined;
|
|
95
96
|
steps?: {
|
|
96
97
|
completed: number;
|
|
97
98
|
total: number;
|
|
98
99
|
} | undefined;
|
|
99
100
|
summary?: string | undefined;
|
|
100
|
-
phase?: string | undefined;
|
|
101
101
|
};
|
|
102
102
|
revision?: number;
|
|
103
103
|
projectTask?: {
|
|
@@ -16,6 +16,8 @@ export interface IAgentMiddlewareContext {
|
|
|
16
16
|
/** Persisted input message for this turn, when available. */
|
|
17
17
|
inputMessageId?: string;
|
|
18
18
|
executionId?: string;
|
|
19
|
+
/** Originating Event Inbox receipt of this authorized wake, including same-scope child agents. */
|
|
20
|
+
readonly eventReceiptId?: string;
|
|
19
21
|
/** Omitted for legacy Assistant hosts. Project general agents must explicitly use project_agent. */
|
|
20
22
|
callerType?: AgentInvocationScope['callerType'];
|
|
21
23
|
threadId?: string;
|
|
@@ -382,6 +382,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
382
382
|
candidatePaths?: string[] | undefined;
|
|
383
383
|
}>;
|
|
384
384
|
}, "strict", z.ZodTypeAny, {
|
|
385
|
+
projectId: string;
|
|
385
386
|
purpose: {
|
|
386
387
|
type: "implementation";
|
|
387
388
|
reviewer?: {
|
|
@@ -418,7 +419,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
418
419
|
implementationTaskId?: string | undefined;
|
|
419
420
|
candidatePaths?: string[] | undefined;
|
|
420
421
|
};
|
|
421
|
-
projectId: string;
|
|
422
422
|
specification: {
|
|
423
423
|
digest: string;
|
|
424
424
|
specification: {
|
|
@@ -435,6 +435,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
435
435
|
projectTaskId: string;
|
|
436
436
|
taskExecutionId: string;
|
|
437
437
|
}, {
|
|
438
|
+
projectId: string;
|
|
438
439
|
purpose: {
|
|
439
440
|
type: "implementation";
|
|
440
441
|
reviewer?: {
|
|
@@ -471,7 +472,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
471
472
|
implementationTaskId?: string | undefined;
|
|
472
473
|
candidatePaths?: string[] | undefined;
|
|
473
474
|
};
|
|
474
|
-
projectId: string;
|
|
475
475
|
specification: {
|
|
476
476
|
digest: string;
|
|
477
477
|
specification: {
|
|
@@ -488,6 +488,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
488
488
|
projectTaskId: string;
|
|
489
489
|
taskExecutionId: string;
|
|
490
490
|
}>, {
|
|
491
|
+
projectId: string;
|
|
491
492
|
purpose: {
|
|
492
493
|
type: "implementation";
|
|
493
494
|
reviewer?: {
|
|
@@ -524,7 +525,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
524
525
|
implementationTaskId?: string | undefined;
|
|
525
526
|
candidatePaths?: string[] | undefined;
|
|
526
527
|
};
|
|
527
|
-
projectId: string;
|
|
528
528
|
specification: {
|
|
529
529
|
digest: string;
|
|
530
530
|
specification: {
|
|
@@ -541,6 +541,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
541
541
|
projectTaskId: string;
|
|
542
542
|
taskExecutionId: string;
|
|
543
543
|
}, {
|
|
544
|
+
projectId: string;
|
|
544
545
|
purpose: {
|
|
545
546
|
type: "implementation";
|
|
546
547
|
reviewer?: {
|
|
@@ -577,7 +578,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
577
578
|
implementationTaskId?: string | undefined;
|
|
578
579
|
candidatePaths?: string[] | undefined;
|
|
579
580
|
};
|
|
580
|
-
projectId: string;
|
|
581
581
|
specification: {
|
|
582
582
|
digest: string;
|
|
583
583
|
specification: {
|
|
@@ -612,6 +612,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
612
612
|
agentKey?: "general_agent";
|
|
613
613
|
};
|
|
614
614
|
projectTask?: {
|
|
615
|
+
projectId: string;
|
|
615
616
|
purpose: {
|
|
616
617
|
type: "implementation";
|
|
617
618
|
reviewer?: {
|
|
@@ -648,7 +649,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
648
649
|
implementationTaskId?: string | undefined;
|
|
649
650
|
candidatePaths?: string[] | undefined;
|
|
650
651
|
};
|
|
651
|
-
projectId: string;
|
|
652
652
|
specification: {
|
|
653
653
|
digest: string;
|
|
654
654
|
specification: {
|
|
@@ -683,6 +683,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
683
683
|
agentKey?: "general_agent";
|
|
684
684
|
};
|
|
685
685
|
projectTask?: {
|
|
686
|
+
projectId: string;
|
|
686
687
|
purpose: {
|
|
687
688
|
type: "implementation";
|
|
688
689
|
reviewer?: {
|
|
@@ -719,7 +720,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
719
720
|
implementationTaskId?: string | undefined;
|
|
720
721
|
candidatePaths?: string[] | undefined;
|
|
721
722
|
};
|
|
722
|
-
projectId: string;
|
|
723
723
|
specification: {
|
|
724
724
|
digest: string;
|
|
725
725
|
specification: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentEventPresentation, AgentEventTypeDefinition, EventDecision, PluginAgentEvent } from '@xpert-ai/contracts';
|
|
1
|
+
import type { HumanDecisionInput, HumanDecisionResult, PrivateDecisionReply, AgentOutputPresentation, AgentOutputReference, AgentEventPresentation, AgentEventTypeDefinition, EventDecision, PluginAgentEvent } from '@xpert-ai/contracts';
|
|
2
2
|
export declare const AGENT_EVENT_SOURCE = "XPERT_AGENT_EVENT_SOURCE_V1";
|
|
3
3
|
export declare const AgentEventSourceStrategy: (key: string) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
|
|
4
4
|
export { agentEventRefSchema, pluginAgentEventSchema, agentEventDecisionSchema, type AgentEventPresentation, type AgentEventTypeDefinition, type AgentEventTypeDisplay, type AgentEventRef, type PluginAgentEvent, type EventDecision } from '@xpert-ai/contracts';
|
|
@@ -29,7 +29,40 @@ export interface AgentEventDelivery {
|
|
|
29
29
|
fence: string;
|
|
30
30
|
event: PluginAgentEvent;
|
|
31
31
|
}
|
|
32
|
+
export interface AgentEventFollowUp {
|
|
33
|
+
submitPrivateDecision?(reply: PrivateDecisionReply): Promise<HumanDecisionResult | {
|
|
34
|
+
status: 'unrelated';
|
|
35
|
+
}>;
|
|
36
|
+
wake(input: {
|
|
37
|
+
conversationId: string;
|
|
38
|
+
prompt: string;
|
|
39
|
+
threadId?: string;
|
|
40
|
+
agentKey?: string;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
/** A bound source hands off committed domain outputs and resolves them for the original recipient. */
|
|
44
|
+
export interface AgentOutputSource {
|
|
45
|
+
submitDecision?(context: AgentEventContext, input: HumanDecisionInput, origin: 'workbench' | 'lark'): Promise<HumanDecisionResult>;
|
|
46
|
+
readonly kinds: readonly {
|
|
47
|
+
key: string;
|
|
48
|
+
label: {
|
|
49
|
+
en_US: string;
|
|
50
|
+
zh_Hans: string;
|
|
51
|
+
};
|
|
52
|
+
}[];
|
|
53
|
+
/** Return due, unacknowledged references belonging to this binding and recipient, up to the requested limit. */
|
|
54
|
+
listPending(context: AgentEventContext, limit: number): Promise<AgentOutputReference[]>;
|
|
55
|
+
/** Confirm the host's committed message ID idempotently. A different ID for the same result is a conflict. */
|
|
56
|
+
acknowledge(context: AgentEventContext, ref: AgentOutputReference, messageId: string): Promise<void | 'conflict'>;
|
|
57
|
+
/** Keep the reference pending. A timestamp postpones this item; null isolates an immutable conflict. */
|
|
58
|
+
defer(context: AgentEventContext, ref: AgentOutputReference, retryAt: string | null): Promise<void>;
|
|
59
|
+
/** Recheck current domain access and relevance before returning any recipient-visible content. */
|
|
60
|
+
resolveForRecipient(context: AgentEventContext, ref: AgentOutputReference): Promise<AgentOutputPresentation>;
|
|
61
|
+
}
|
|
62
|
+
export { humanDecisionInputSchema, humanDecisionSchema, type HumanDecisionInput, type HumanDecisionResult, type HumanDecision, type PrivateDecisionCard, type PrivateDecisionReply } from '@xpert-ai/contracts';
|
|
63
|
+
export type { AgentOutputReference, AgentOutputPresentation } from '@xpert-ai/contracts';
|
|
32
64
|
export interface PluginAgentEventSource {
|
|
65
|
+
readonly outputs?: AgentOutputSource;
|
|
33
66
|
readonly key: string;
|
|
34
67
|
readonly protocolVersion: 1;
|
|
35
68
|
readonly eventTypes: readonly AgentEventTypeDefinition[];
|
|
@@ -50,6 +83,7 @@ export interface PluginAgentEventSource {
|
|
|
50
83
|
drain(context: AgentEventContext, publisher: AgentEventPublisher, limit: number): Promise<{
|
|
51
84
|
more: boolean;
|
|
52
85
|
}>;
|
|
53
|
-
|
|
86
|
+
/** The host binds the wake to this receipt and actor. Call only for a committed, still applicable follow-up. */
|
|
87
|
+
handle(context: AgentEventContext, delivery: AgentEventDelivery, followUp?: AgentEventFollowUp): Promise<EventDecision>;
|
|
54
88
|
}
|
|
55
89
|
export * from './journal';
|