@xpert-ai/plugin-sdk 3.34.0 → 3.35.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.
@@ -8,7 +8,9 @@ require('zod/v3');
8
8
 
9
9
 
10
10
  exports.AGENT_TASK_RESULTS_FEATURE = results.AGENT_TASK_RESULTS_FEATURE;
11
+ exports.AGENT_TASK_RESULT_FILE_MAX_BYTES = results.AGENT_TASK_RESULT_FILE_MAX_BYTES;
11
12
  exports.agentResultItemSchema = results.agentResultItemSchema;
13
+ exports.agentTaskResultFileSchema = results.agentTaskResultFileSchema;
12
14
  exports.agentTaskResultSchema = results.agentTaskResultSchema;
13
15
  Object.defineProperty(exports, "agentOutputDeliverySchema", {
14
16
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { A as AGENT_TASK_RESULTS_FEATURE, a as agentResultItemSchema, b as agentTaskResultSchema } from './results.esm.js';
1
+ export { A as AGENT_TASK_RESULTS_FEATURE, a as AGENT_TASK_RESULT_FILE_MAX_BYTES, b as agentResultItemSchema, c as agentTaskResultFileSchema, d as agentTaskResultSchema } from './results.esm.js';
2
2
  export { agentOutputDeliverySchema, agentResultPathSchema } from '@xpert-ai/contracts';
3
3
  import './_extends.esm.js';
4
4
  import 'zod/v3';
package/index.cjs.js CHANGED
@@ -11058,7 +11058,7 @@ exports.ProjectTaskProviderRegistry = __decorate([
11058
11058
  ])
11059
11059
  ], exports.ProjectTaskProviderRegistry);
11060
11060
  const ProjectTasksRuntimeCapability = modelProvider.createRuntimeCapability('platform.project.tasks', {
11061
- description: 'Read project task graphs, request background synchronization, manage schedules, and resolve exact execution conversations.'
11061
+ description: 'Read project task graphs and acceptance receipts, request background synchronization, manage schedules, and resolve exact execution conversations.'
11062
11062
  });
11063
11063
 
11064
11064
  class UnavailablePipelineContribution {
@@ -11470,7 +11470,9 @@ exports.DefaultAgentMiddlewareRuntimeCapabilityRegistry = modelProvider.DefaultR
11470
11470
  exports.DefaultRuntimeCapabilityRegistry = modelProvider.DefaultRuntimeCapabilityRegistry;
11471
11471
  exports.McpClientRuntimeCapability = modelProvider.McpClientRuntimeCapability;
11472
11472
  exports.ModelProviderBuiltinToolset = modelProvider.ModelProviderBuiltinToolset;
11473
+ exports.PluginTestAccessCapability = modelProvider.PluginTestAccessCapability;
11473
11474
  exports.ProjectAccessRuntimeCapability = modelProvider.ProjectAccessRuntimeCapability;
11475
+ exports.ProjectConfigurationRuntimeCapability = modelProvider.ProjectConfigurationRuntimeCapability;
11474
11476
  exports.ProjectFilesRuntimeCapability = modelProvider.ProjectFilesRuntimeCapability;
11475
11477
  exports.ProjectKnowledgeRuntimeCapability = modelProvider.ProjectKnowledgeRuntimeCapability;
11476
11478
  exports.ProjectProvisioningRuntimeCapability = modelProvider.ProjectProvisioningRuntimeCapability;
@@ -11511,7 +11513,9 @@ exports.validateAnalyticsBinding = analyticsResult.validateAnalyticsBinding;
11511
11513
  exports.ModelProviderHttpClient = modelProviderHttpClient.ModelProviderHttpClient;
11512
11514
  exports.ModelProviderHttpError = modelProviderHttpClient.ModelProviderHttpError;
11513
11515
  exports.AGENT_TASK_RESULTS_FEATURE = results.AGENT_TASK_RESULTS_FEATURE;
11516
+ exports.AGENT_TASK_RESULT_FILE_MAX_BYTES = results.AGENT_TASK_RESULT_FILE_MAX_BYTES;
11514
11517
  exports.agentResultItemSchema = results.agentResultItemSchema;
11518
+ exports.agentTaskResultFileSchema = results.agentTaskResultFileSchema;
11515
11519
  exports.agentTaskResultSchema = results.agentTaskResultSchema;
11516
11520
  exports.CONNECTOR_AUTHORIZATION_MODES = connector.CONNECTOR_AUTHORIZATION_MODES;
11517
11521
  exports.CONNECTOR_SCOPE_TYPES = connector.CONNECTOR_SCOPE_TYPES;
package/index.esm.js CHANGED
@@ -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 ArtifactContentRuntimeCapability, d as ArtifactDraftsRuntimeCapability, e as ArtifactLibraryRuntimeCapability, f as ArtifactUseGrantsRuntimeCapability, g as ArtifactsRuntimeCapability, h as AssistantMiddlewareAccessRuntimeCapability, i as BaseTool, j as BaseToolset, D as DefaultAgentMiddlewareRuntimeCapabilityRegistry, D as DefaultRuntimeCapabilityRegistry, k as McpClientRuntimeCapability, M as ModelProviderBuiltinToolset, P as ProjectAccessRuntimeCapability, l as ProjectFilesRuntimeCapability, m as ProjectKnowledgeRuntimeCapability, n as ProjectProvisioningRuntimeCapability, R as RUNTIME_CAPABILITY_PROVIDER, o as RestClientRuntimeCapability, p as RuntimeCapabilityProvider, S as SANDBOX_JOB_ERROR_CODES, q as SANDBOX_JOB_INVOCATION_PREFIX, r as SANDBOX_JOB_PROGRESS_PREFIX, s as SandboxJobRuntimeError, t as SandboxJobsRuntimeCapability, T as ToolImagesRuntimeCapability, u as WORKSPACE_FILES_SOURCE, X as XPERT_RUNTIME_CAPABILITIES_TOKEN, v as isSandboxJobRuntimeError, w as workspaceFileMutationMetadata, x as workspaceFileMutationPath, y as workspaceRelativeDirectoryPathSchema, z as workspaceRelativeFilePathSchema } from './model-provider.esm.js';
19
+ export { A as ActorTokenRuntimeCapability, a as ActorTokenRuntimeFactoryCapability, b as ArtifactContentRuntimeCapability, d as ArtifactDraftsRuntimeCapability, e as ArtifactLibraryRuntimeCapability, f as ArtifactUseGrantsRuntimeCapability, g as ArtifactsRuntimeCapability, h as AssistantMiddlewareAccessRuntimeCapability, i as BaseTool, j as BaseToolset, D as DefaultAgentMiddlewareRuntimeCapabilityRegistry, D as DefaultRuntimeCapabilityRegistry, k as McpClientRuntimeCapability, M as ModelProviderBuiltinToolset, P as PluginTestAccessCapability, l as ProjectAccessRuntimeCapability, m as ProjectConfigurationRuntimeCapability, n as ProjectFilesRuntimeCapability, o as ProjectKnowledgeRuntimeCapability, p as ProjectProvisioningRuntimeCapability, R as RUNTIME_CAPABILITY_PROVIDER, q as RestClientRuntimeCapability, r as RuntimeCapabilityProvider, S as SANDBOX_JOB_ERROR_CODES, s as SANDBOX_JOB_INVOCATION_PREFIX, t as SANDBOX_JOB_PROGRESS_PREFIX, u as SandboxJobRuntimeError, v as SandboxJobsRuntimeCapability, T as ToolImagesRuntimeCapability, w as WORKSPACE_FILES_SOURCE, X as XPERT_RUNTIME_CAPABILITIES_TOKEN, x as isSandboxJobRuntimeError, y as workspaceFileMutationMetadata, z as workspaceFileMutationPath, C as workspaceRelativeDirectoryPathSchema, E 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';
@@ -40,7 +40,7 @@ import { getEnvironmentVariable } from '@langchain/core/utils/env';
40
40
  export { ModelProviderHttpClient, ModelProviderHttpError } from './model-provider-http-client.esm.js';
41
41
  import { getEncodingNameForModel, encodingForModel, getEncoding } from 'js-tiktoken';
42
42
  import { z as z$1 } from 'zod';
43
- export { A as AGENT_TASK_RESULTS_FEATURE, a as agentResultItemSchema, b as agentTaskResultSchema } from './results.esm.js';
43
+ export { A as AGENT_TASK_RESULTS_FEATURE, a as AGENT_TASK_RESULT_FILE_MAX_BYTES, b as agentResultItemSchema, c as agentTaskResultFileSchema, d 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
46
  import { isAbsolute, relative, resolve, sep } from 'node:path';
@@ -11040,7 +11040,7 @@ ProjectTaskProviderRegistry = __decorate([
11040
11040
  ])
11041
11041
  ], ProjectTaskProviderRegistry);
11042
11042
  const ProjectTasksRuntimeCapability = createRuntimeCapability('platform.project.tasks', {
11043
- description: 'Read project task graphs, request background synchronization, manage schedules, and resolve exact execution conversations.'
11043
+ description: 'Read project task graphs and acceptance receipts, request background synchronization, manage schedules, and resolve exact execution conversations.'
11044
11044
  });
11045
11045
 
11046
11046
  class UnavailablePipelineContribution {
@@ -277,6 +277,8 @@ const ProjectAccessRuntimeCapability = createRuntimeCapability('platform.project
277
277
  description: 'Resolve Project membership and Assistant execution access for platform and plugin operations.'
278
278
  });
279
279
 
280
+ const PluginTestAccessCapability = createRuntimeCapability('platform.plugin.test-access');
281
+
280
282
  const ProjectFilesRuntimeCapability = createRuntimeCapability('platform.project.files', {
281
283
  description: 'Authorized Project file tree and conflict-aware atomic file writes.'
282
284
  });
@@ -301,6 +303,10 @@ const RestClientRuntimeCapability = createRuntimeCapability('platform.rest.clien
301
303
  description: 'Governed JSON access through saved OpenAPI connections and platform-managed authentication.'
302
304
  });
303
305
 
306
+ const ProjectConfigurationRuntimeCapability = createRuntimeCapability('platform.project.configuration', {
307
+ description: 'Authorized Project configuration, membership, skills, connectors and automation operations.'
308
+ });
309
+
304
310
  /** Portable Agent input; filesystem containment and authorization remain with the host. */ const workspaceRelativeFilePathSchema = v3.z.string().min(1).max(1024).refine((value)=>!/[\\\x00-\x1f\x7f]/.test(value) && !/^[A-Za-z]:/.test(value) && value.split('/').every((part)=>part.length > 0 && part === part.trim() && part !== '.' && part !== '..'), 'Use a workspace-relative file path with non-empty segments; no absolute paths, traversal or surrounding whitespace.');
305
311
  /** Directory discovery also accepts the workspace root and a trailing directory slash. */ const workspaceRelativeDirectoryPathSchema = v3.z.string().transform((value)=>value.endsWith('/') ? value.slice(0, -1) : value).pipe(v3.z.union([
306
312
  v3.z.literal('.'),
@@ -453,7 +459,9 @@ exports.BuiltinToolset = BuiltinToolset;
453
459
  exports.DefaultRuntimeCapabilityRegistry = DefaultRuntimeCapabilityRegistry;
454
460
  exports.McpClientRuntimeCapability = McpClientRuntimeCapability;
455
461
  exports.ModelProviderBuiltinToolset = ModelProviderBuiltinToolset;
462
+ exports.PluginTestAccessCapability = PluginTestAccessCapability;
456
463
  exports.ProjectAccessRuntimeCapability = ProjectAccessRuntimeCapability;
464
+ exports.ProjectConfigurationRuntimeCapability = ProjectConfigurationRuntimeCapability;
457
465
  exports.ProjectFilesRuntimeCapability = ProjectFilesRuntimeCapability;
458
466
  exports.ProjectKnowledgeRuntimeCapability = ProjectKnowledgeRuntimeCapability;
459
467
  exports.ProjectProvisioningRuntimeCapability = ProjectProvisioningRuntimeCapability;
@@ -275,6 +275,8 @@ const ProjectAccessRuntimeCapability = createRuntimeCapability('platform.project
275
275
  description: 'Resolve Project membership and Assistant execution access for platform and plugin operations.'
276
276
  });
277
277
 
278
+ const PluginTestAccessCapability = createRuntimeCapability('platform.plugin.test-access');
279
+
278
280
  const ProjectFilesRuntimeCapability = createRuntimeCapability('platform.project.files', {
279
281
  description: 'Authorized Project file tree and conflict-aware atomic file writes.'
280
282
  });
@@ -299,6 +301,10 @@ const RestClientRuntimeCapability = createRuntimeCapability('platform.rest.clien
299
301
  description: 'Governed JSON access through saved OpenAPI connections and platform-managed authentication.'
300
302
  });
301
303
 
304
+ const ProjectConfigurationRuntimeCapability = createRuntimeCapability('platform.project.configuration', {
305
+ description: 'Authorized Project configuration, membership, skills, connectors and automation operations.'
306
+ });
307
+
302
308
  /** Portable Agent input; filesystem containment and authorization remain with the host. */ const workspaceRelativeFilePathSchema = z.string().min(1).max(1024).refine((value)=>!/[\\\x00-\x1f\x7f]/.test(value) && !/^[A-Za-z]:/.test(value) && value.split('/').every((part)=>part.length > 0 && part === part.trim() && part !== '.' && part !== '..'), 'Use a workspace-relative file path with non-empty segments; no absolute paths, traversal or surrounding whitespace.');
303
309
  /** Directory discovery also accepts the workspace root and a trailing directory slash. */ const workspaceRelativeDirectoryPathSchema = z.string().transform((value)=>value.endsWith('/') ? value.slice(0, -1) : value).pipe(z.union([
304
310
  z.literal('.'),
@@ -437,4 +443,4 @@ function normalizeWorkspaceScope(scope) {
437
443
  } : {});
438
444
  }
439
445
 
440
- export { ActorTokenRuntimeCapability as A, BuiltinToolset as B, DefaultRuntimeCapabilityRegistry as D, ModelProviderBuiltinToolset as M, ProjectAccessRuntimeCapability as P, RUNTIME_CAPABILITY_PROVIDER as R, SANDBOX_JOB_ERROR_CODES as S, ToolImagesRuntimeCapability as T, WorkspaceFilesRuntimeCapability as W, XPERT_RUNTIME_CAPABILITIES_TOKEN as X, ActorTokenRuntimeFactoryCapability as a, ArtifactContentRuntimeCapability as b, createRuntimeCapability as c, ArtifactDraftsRuntimeCapability as d, ArtifactLibraryRuntimeCapability as e, ArtifactUseGrantsRuntimeCapability as f, ArtifactsRuntimeCapability as g, AssistantMiddlewareAccessRuntimeCapability as h, BaseTool as i, BaseToolset as j, McpClientRuntimeCapability as k, ProjectFilesRuntimeCapability as l, ProjectKnowledgeRuntimeCapability as m, ProjectProvisioningRuntimeCapability as n, RestClientRuntimeCapability as o, RuntimeCapabilityProvider as p, SANDBOX_JOB_INVOCATION_PREFIX as q, SANDBOX_JOB_PROGRESS_PREFIX as r, SandboxJobRuntimeError as s, SandboxJobsRuntimeCapability as t, WORKSPACE_FILES_SOURCE as u, isSandboxJobRuntimeError as v, workspaceFileMutationMetadata as w, workspaceFileMutationPath as x, workspaceRelativeDirectoryPathSchema as y, workspaceRelativeFilePathSchema as z };
446
+ export { ActorTokenRuntimeCapability as A, BuiltinToolset as B, workspaceRelativeDirectoryPathSchema as C, DefaultRuntimeCapabilityRegistry as D, workspaceRelativeFilePathSchema as E, ModelProviderBuiltinToolset as M, PluginTestAccessCapability as P, RUNTIME_CAPABILITY_PROVIDER as R, SANDBOX_JOB_ERROR_CODES as S, ToolImagesRuntimeCapability as T, WorkspaceFilesRuntimeCapability as W, XPERT_RUNTIME_CAPABILITIES_TOKEN as X, ActorTokenRuntimeFactoryCapability as a, ArtifactContentRuntimeCapability as b, createRuntimeCapability as c, ArtifactDraftsRuntimeCapability as d, ArtifactLibraryRuntimeCapability as e, ArtifactUseGrantsRuntimeCapability as f, ArtifactsRuntimeCapability as g, AssistantMiddlewareAccessRuntimeCapability as h, BaseTool as i, BaseToolset as j, McpClientRuntimeCapability as k, ProjectAccessRuntimeCapability as l, ProjectConfigurationRuntimeCapability as m, ProjectFilesRuntimeCapability as n, ProjectKnowledgeRuntimeCapability as o, ProjectProvisioningRuntimeCapability as p, RestClientRuntimeCapability as q, RuntimeCapabilityProvider as r, SANDBOX_JOB_INVOCATION_PREFIX as s, SANDBOX_JOB_PROGRESS_PREFIX as t, SandboxJobRuntimeError as u, SandboxJobsRuntimeCapability as v, WORKSPACE_FILES_SOURCE as w, isSandboxJobRuntimeError as x, workspaceFileMutationMetadata as y, workspaceFileMutationPath as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-sdk",
3
- "version": "3.34.0",
3
+ "version": "3.35.0",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@langchain/openai": "0.6.9",
77
- "@xpert-ai/contracts": "3.34.0",
77
+ "@xpert-ai/contracts": "3.35.0",
78
78
  "express": "^4.22.1",
79
79
  "js-tiktoken": "^1.0.21"
80
80
  },
package/results.cjs.js CHANGED
@@ -44,7 +44,15 @@ const common = {
44
44
  summary: v3.z.string().max(64000),
45
45
  items: v3.z.array(agentResultItemSchema).max(32)
46
46
  }).strict().refine((value)=>new Set(value.items.map((item)=>item.id)).size === value.items.length, 'Result item IDs must be unique');
47
+ /** Bound structured report transfer independently of the host's artifact-export quota. */ const AGENT_TASK_RESULT_FILE_MAX_BYTES = 4 * 1024 * 1024;
48
+ /** Explicit final submission of an envelope file. Its digest pins bytes, not a business verdict. */ const agentTaskResultFileSchema = v3.z.object({
49
+ version: v3.z.literal(1),
50
+ path: contracts.agentResultPathSchema,
51
+ sha256: v3.z.string().regex(/^[a-f0-9]{64}$/)
52
+ }).strict();
47
53
 
48
54
  exports.AGENT_TASK_RESULTS_FEATURE = AGENT_TASK_RESULTS_FEATURE;
55
+ exports.AGENT_TASK_RESULT_FILE_MAX_BYTES = AGENT_TASK_RESULT_FILE_MAX_BYTES;
49
56
  exports.agentResultItemSchema = agentResultItemSchema;
57
+ exports.agentTaskResultFileSchema = agentTaskResultFileSchema;
50
58
  exports.agentTaskResultSchema = agentTaskResultSchema;
package/results.esm.js CHANGED
@@ -42,5 +42,11 @@ const common = {
42
42
  summary: z.string().max(64000),
43
43
  items: z.array(agentResultItemSchema).max(32)
44
44
  }).strict().refine((value)=>new Set(value.items.map((item)=>item.id)).size === value.items.length, 'Result item IDs must be unique');
45
+ /** Bound structured report transfer independently of the host's artifact-export quota. */ const AGENT_TASK_RESULT_FILE_MAX_BYTES = 4 * 1024 * 1024;
46
+ /** Explicit final submission of an envelope file. Its digest pins bytes, not a business verdict. */ const agentTaskResultFileSchema = z.object({
47
+ version: z.literal(1),
48
+ path: agentResultPathSchema,
49
+ sha256: z.string().regex(/^[a-f0-9]{64}$/)
50
+ }).strict();
45
51
 
46
- export { AGENT_TASK_RESULTS_FEATURE as A, agentResultItemSchema as a, agentTaskResultSchema as b };
52
+ export { AGENT_TASK_RESULTS_FEATURE as A, AGENT_TASK_RESULT_FILE_MAX_BYTES as a, agentResultItemSchema as b, agentTaskResultFileSchema as c, agentTaskResultSchema as d };
@@ -163,15 +163,72 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
163
163
  description?: string | undefined;
164
164
  };
165
165
  }>;
166
- purpose: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
166
+ purpose: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
167
167
  type: z.ZodLiteral<"implementation">;
168
+ reviewer: z.ZodOptional<z.ZodObject<{
169
+ bindingId: z.ZodString;
170
+ mode: z.ZodEnum<["evidence_only", "execution"]>;
171
+ }, "strict", z.ZodTypeAny, {
172
+ mode: "execution" | "evidence_only";
173
+ bindingId: string;
174
+ }, {
175
+ mode: "execution" | "evidence_only";
176
+ bindingId: string;
177
+ }>>;
178
+ coordination: z.ZodOptional<z.ZodObject<{
179
+ taskId: z.ZodString;
180
+ specificationDigest: z.ZodString;
181
+ }, "strict", z.ZodTypeAny, {
182
+ taskId: string;
183
+ specificationDigest: string;
184
+ }, {
185
+ taskId: string;
186
+ specificationDigest: string;
187
+ }>>;
188
+ rework: z.ZodOptional<z.ZodObject<{
189
+ reviewExecutionId: z.ZodString;
190
+ findingIds: z.ZodArray<z.ZodString, "many">;
191
+ }, "strict", z.ZodTypeAny, {
192
+ reviewExecutionId: string;
193
+ findingIds: string[];
194
+ }, {
195
+ reviewExecutionId: string;
196
+ findingIds: string[];
197
+ }>>;
168
198
  }, "strict", z.ZodTypeAny, {
169
199
  type: "implementation";
200
+ reviewer?: {
201
+ mode: "execution" | "evidence_only";
202
+ bindingId: string;
203
+ } | undefined;
204
+ coordination?: {
205
+ taskId: string;
206
+ specificationDigest: string;
207
+ } | undefined;
208
+ rework?: {
209
+ reviewExecutionId: string;
210
+ findingIds: string[];
211
+ } | undefined;
170
212
  }, {
171
213
  type: "implementation";
214
+ reviewer?: {
215
+ mode: "execution" | "evidence_only";
216
+ bindingId: string;
217
+ } | undefined;
218
+ coordination?: {
219
+ taskId: string;
220
+ specificationDigest: string;
221
+ } | undefined;
222
+ rework?: {
223
+ reviewExecutionId: string;
224
+ findingIds: string[];
225
+ } | undefined;
172
226
  }>, z.ZodObject<{
173
227
  type: z.ZodLiteral<"review">;
228
+ mode: z.ZodOptional<z.ZodEnum<["evidence_only", "execution"]>>;
229
+ candidatePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
174
230
  implementationExecutionId: z.ZodString;
231
+ implementationTaskId: z.ZodOptional<z.ZodString>;
175
232
  implementationInvocationId: z.ZodString;
176
233
  specificationDigest: z.ZodString;
177
234
  evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -227,8 +284,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
227
284
  snapshotId: string;
228
285
  })[];
229
286
  implementationExecutionId: string;
230
- implementationInvocationId: string;
231
287
  specificationDigest: string;
288
+ implementationInvocationId: string;
289
+ mode?: "execution" | "evidence_only" | undefined;
290
+ implementationTaskId?: string | undefined;
291
+ candidatePaths?: string[] | undefined;
232
292
  }, {
233
293
  type: "review";
234
294
  evidence: ({
@@ -245,9 +305,82 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
245
305
  snapshotId: string;
246
306
  })[];
247
307
  implementationExecutionId: string;
308
+ specificationDigest: string;
309
+ implementationInvocationId: string;
310
+ mode?: "execution" | "evidence_only" | undefined;
311
+ implementationTaskId?: string | undefined;
312
+ candidatePaths?: string[] | undefined;
313
+ }>]>, {
314
+ type: "implementation";
315
+ reviewer?: {
316
+ mode: "execution" | "evidence_only";
317
+ bindingId: string;
318
+ } | undefined;
319
+ coordination?: {
320
+ taskId: string;
321
+ specificationDigest: string;
322
+ } | undefined;
323
+ rework?: {
324
+ reviewExecutionId: string;
325
+ findingIds: string[];
326
+ } | undefined;
327
+ } | {
328
+ type: "review";
329
+ evidence: ({
330
+ type: "artifact";
331
+ artifactId: string;
332
+ versionId: string;
333
+ } | {
334
+ type: "invocation_result";
335
+ revision: number;
336
+ invocationId: string;
337
+ } | {
338
+ type: "workspace_snapshot";
339
+ digest: string;
340
+ snapshotId: string;
341
+ })[];
342
+ implementationExecutionId: string;
343
+ specificationDigest: string;
248
344
  implementationInvocationId: string;
345
+ mode?: "execution" | "evidence_only" | undefined;
346
+ implementationTaskId?: string | undefined;
347
+ candidatePaths?: string[] | undefined;
348
+ }, {
349
+ type: "implementation";
350
+ reviewer?: {
351
+ mode: "execution" | "evidence_only";
352
+ bindingId: string;
353
+ } | undefined;
354
+ coordination?: {
355
+ taskId: string;
356
+ specificationDigest: string;
357
+ } | undefined;
358
+ rework?: {
359
+ reviewExecutionId: string;
360
+ findingIds: string[];
361
+ } | undefined;
362
+ } | {
363
+ type: "review";
364
+ evidence: ({
365
+ type: "artifact";
366
+ artifactId: string;
367
+ versionId: string;
368
+ } | {
369
+ type: "invocation_result";
370
+ revision: number;
371
+ invocationId: string;
372
+ } | {
373
+ type: "workspace_snapshot";
374
+ digest: string;
375
+ snapshotId: string;
376
+ })[];
377
+ implementationExecutionId: string;
249
378
  specificationDigest: string;
250
- }>]>;
379
+ implementationInvocationId: string;
380
+ mode?: "execution" | "evidence_only" | undefined;
381
+ implementationTaskId?: string | undefined;
382
+ candidatePaths?: string[] | undefined;
383
+ }>;
251
384
  }, "strict", z.ZodTypeAny, {
252
385
  projectId: string;
253
386
  specification: {
@@ -267,6 +400,18 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
267
400
  taskExecutionId: string;
268
401
  purpose: {
269
402
  type: "implementation";
403
+ reviewer?: {
404
+ mode: "execution" | "evidence_only";
405
+ bindingId: string;
406
+ } | undefined;
407
+ coordination?: {
408
+ taskId: string;
409
+ specificationDigest: string;
410
+ } | undefined;
411
+ rework?: {
412
+ reviewExecutionId: string;
413
+ findingIds: string[];
414
+ } | undefined;
270
415
  } | {
271
416
  type: "review";
272
417
  evidence: ({
@@ -283,8 +428,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
283
428
  snapshotId: string;
284
429
  })[];
285
430
  implementationExecutionId: string;
286
- implementationInvocationId: string;
287
431
  specificationDigest: string;
432
+ implementationInvocationId: string;
433
+ mode?: "execution" | "evidence_only" | undefined;
434
+ implementationTaskId?: string | undefined;
435
+ candidatePaths?: string[] | undefined;
288
436
  };
289
437
  }, {
290
438
  projectId: string;
@@ -305,6 +453,18 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
305
453
  taskExecutionId: string;
306
454
  purpose: {
307
455
  type: "implementation";
456
+ reviewer?: {
457
+ mode: "execution" | "evidence_only";
458
+ bindingId: string;
459
+ } | undefined;
460
+ coordination?: {
461
+ taskId: string;
462
+ specificationDigest: string;
463
+ } | undefined;
464
+ rework?: {
465
+ reviewExecutionId: string;
466
+ findingIds: string[];
467
+ } | undefined;
308
468
  } | {
309
469
  type: "review";
310
470
  evidence: ({
@@ -321,8 +481,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
321
481
  snapshotId: string;
322
482
  })[];
323
483
  implementationExecutionId: string;
324
- implementationInvocationId: string;
325
484
  specificationDigest: string;
485
+ implementationInvocationId: string;
486
+ mode?: "execution" | "evidence_only" | undefined;
487
+ implementationTaskId?: string | undefined;
488
+ candidatePaths?: string[] | undefined;
326
489
  };
327
490
  }>, {
328
491
  projectId: string;
@@ -343,6 +506,18 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
343
506
  taskExecutionId: string;
344
507
  purpose: {
345
508
  type: "implementation";
509
+ reviewer?: {
510
+ mode: "execution" | "evidence_only";
511
+ bindingId: string;
512
+ } | undefined;
513
+ coordination?: {
514
+ taskId: string;
515
+ specificationDigest: string;
516
+ } | undefined;
517
+ rework?: {
518
+ reviewExecutionId: string;
519
+ findingIds: string[];
520
+ } | undefined;
346
521
  } | {
347
522
  type: "review";
348
523
  evidence: ({
@@ -359,8 +534,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
359
534
  snapshotId: string;
360
535
  })[];
361
536
  implementationExecutionId: string;
362
- implementationInvocationId: string;
363
537
  specificationDigest: string;
538
+ implementationInvocationId: string;
539
+ mode?: "execution" | "evidence_only" | undefined;
540
+ implementationTaskId?: string | undefined;
541
+ candidatePaths?: string[] | undefined;
364
542
  };
365
543
  }, {
366
544
  projectId: string;
@@ -381,6 +559,18 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
381
559
  taskExecutionId: string;
382
560
  purpose: {
383
561
  type: "implementation";
562
+ reviewer?: {
563
+ mode: "execution" | "evidence_only";
564
+ bindingId: string;
565
+ } | undefined;
566
+ coordination?: {
567
+ taskId: string;
568
+ specificationDigest: string;
569
+ } | undefined;
570
+ rework?: {
571
+ reviewExecutionId: string;
572
+ findingIds: string[];
573
+ } | undefined;
384
574
  } | {
385
575
  type: "review";
386
576
  evidence: ({
@@ -397,8 +587,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
397
587
  snapshotId: string;
398
588
  })[];
399
589
  implementationExecutionId: string;
400
- implementationInvocationId: string;
401
590
  specificationDigest: string;
591
+ implementationInvocationId: string;
592
+ mode?: "execution" | "evidence_only" | undefined;
593
+ implementationTaskId?: string | undefined;
594
+ candidatePaths?: string[] | undefined;
402
595
  };
403
596
  }>>;
404
597
  }, "strict", z.ZodTypeAny, {
@@ -437,6 +630,18 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
437
630
  taskExecutionId: string;
438
631
  purpose: {
439
632
  type: "implementation";
633
+ reviewer?: {
634
+ mode: "execution" | "evidence_only";
635
+ bindingId: string;
636
+ } | undefined;
637
+ coordination?: {
638
+ taskId: string;
639
+ specificationDigest: string;
640
+ } | undefined;
641
+ rework?: {
642
+ reviewExecutionId: string;
643
+ findingIds: string[];
644
+ } | undefined;
440
645
  } | {
441
646
  type: "review";
442
647
  evidence: ({
@@ -453,8 +658,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
453
658
  snapshotId: string;
454
659
  })[];
455
660
  implementationExecutionId: string;
456
- implementationInvocationId: string;
457
661
  specificationDigest: string;
662
+ implementationInvocationId: string;
663
+ mode?: "execution" | "evidence_only" | undefined;
664
+ implementationTaskId?: string | undefined;
665
+ candidatePaths?: string[] | undefined;
458
666
  };
459
667
  };
460
668
  }, {
@@ -493,6 +701,18 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
493
701
  taskExecutionId: string;
494
702
  purpose: {
495
703
  type: "implementation";
704
+ reviewer?: {
705
+ mode: "execution" | "evidence_only";
706
+ bindingId: string;
707
+ } | undefined;
708
+ coordination?: {
709
+ taskId: string;
710
+ specificationDigest: string;
711
+ } | undefined;
712
+ rework?: {
713
+ reviewExecutionId: string;
714
+ findingIds: string[];
715
+ } | undefined;
496
716
  } | {
497
717
  type: "review";
498
718
  evidence: ({
@@ -509,8 +729,11 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
509
729
  snapshotId: string;
510
730
  })[];
511
731
  implementationExecutionId: string;
512
- implementationInvocationId: string;
513
732
  specificationDigest: string;
733
+ implementationInvocationId: string;
734
+ mode?: "execution" | "evidence_only" | undefined;
735
+ implementationTaskId?: string | undefined;
736
+ candidatePaths?: string[] | undefined;
514
737
  };
515
738
  };
516
739
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { CliPermissionMode, ModelExecutionEnvironment } from '@xpert-ai/contracts';
2
2
  import type { AgentInvocationScope, AgentInvocationResult, AgentJson } from './types';
3
- import type { AgentArtifactSelection } from './results';
3
+ import type { AgentArtifactSelection, AgentTaskResult, AgentTaskResultFile } from './results';
4
4
  /** A host-managed process location. Remote service runtimes can use their own session/run handles. */
5
5
  export type AgentRunnerEnvironment = Extract<ModelExecutionEnvironment, {
6
6
  type: 'computer' | 'sandbox';
@@ -26,6 +26,11 @@ interface AgentRunnerReceiptBase {
26
26
  };
27
27
  /** Effective policy pinned when this process started; absent on historical receipts. */
28
28
  permissionMode?: CliPermissionMode;
29
+ executionBudget?: {
30
+ maxDurationSeconds: number;
31
+ deadline: string;
32
+ project?: import('@xpert-ai/contracts').ProjectTaskDurationConfiguration;
33
+ };
29
34
  }
30
35
  /** V1 retains its original cwd; V2 separates per-invocation records from the business cwd. */
31
36
  export type AgentRunnerReceipt = AgentRunnerReceiptBase & ({
@@ -62,6 +67,11 @@ export interface AgentExecutionRunner {
62
67
  }): Promise<unknown>;
63
68
  /** Export only selected files after revalidating the persisted delivery request. No selection means no export. */
64
69
  collectArtifacts(receipt: AgentRunnerReceipt, selection?: AgentArtifactSelection): Promise<NonNullable<AgentInvocationResult['artifacts']>>;
70
+ /** Read a submitted result envelope after checking receipt ownership, instance, byte limit, digest and schema.
71
+ * Adapters call after verified CLI completion and checkpoint the result before cleanup.
72
+ * Absence means file submission is unsupported; reading does not export files or accept the task.
73
+ */
74
+ readTaskResultFile?(receipt: AgentRunnerReceipt, reference: AgentTaskResultFile): Promise<AgentTaskResult>;
65
75
  /** Revoke model access and request process termination. Only exited confirms termination. */
66
76
  stop(receipt: AgentRunnerReceipt): Promise<{
67
77
  state: 'exited' | 'stopping' | 'unknown';
@@ -311,6 +311,23 @@ export declare const agentTaskResultSchema: z.ZodEffects<z.ZodObject<{
311
311
  })[];
312
312
  }>;
313
313
  export type AgentTaskResult = z.output<typeof agentTaskResultSchema>;
314
+ /** Bound structured report transfer independently of the host's artifact-export quota. */
315
+ export declare const AGENT_TASK_RESULT_FILE_MAX_BYTES: number;
316
+ /** Explicit final submission of an envelope file. Its digest pins bytes, not a business verdict. */
317
+ export declare const agentTaskResultFileSchema: z.ZodObject<{
318
+ version: z.ZodLiteral<1>;
319
+ path: z.ZodEffects<z.ZodString, string, string>;
320
+ sha256: z.ZodString;
321
+ }, "strict", z.ZodTypeAny, {
322
+ path?: string;
323
+ version?: 1;
324
+ sha256?: string;
325
+ }, {
326
+ path?: string;
327
+ version?: 1;
328
+ sha256?: string;
329
+ }>;
330
+ export type AgentTaskResultFile = z.output<typeof agentTaskResultFileSchema>;
314
331
  /** Persist only after the platform has committed the artifact; never accept an ID invented by a model. */
315
332
  export interface AgentResultArtifact {
316
333
  id: string;
@@ -1,4 +1,5 @@
1
1
  import { DiscoveryService, Reflector } from '@nestjs/core';
2
+ import type { ProjectTaskExecutionContext } from '@xpert-ai/contracts';
2
3
  import type { RuntimeCapabilityRegistry } from '../../core/runtime-capability';
3
4
  import { BaseStrategyRegistry, type StrategySource } from '../../strategy';
4
5
  import type { AgentActivityRecorder } from './activity';
@@ -15,6 +16,8 @@ export interface AgentRuntimeContext {
15
16
  /** Durable host invocation ID used to correlate provider receipts. */
16
17
  invocationId: string;
17
18
  scope: Readonly<AgentInvocationScope>;
19
+ /** Validated host task snapshot, separate from reply routing; does not grant workspace access. */
20
+ projectTask?: Readonly<ProjectTaskExecutionContext>;
18
21
  /** Cooperative cancellation; abort alone does not confirm remote termination. */
19
22
  signal?: AbortSignal;
20
23
  capabilities: RuntimeCapabilityRegistry;
@@ -173,6 +173,8 @@ export interface AgentInvocation extends AgentRuntimeObservation {
173
173
  activity?: ExecutionActivityCapabilities;
174
174
  /** Host startup fence; intermediate receipts are not inspected until start returns or this deadline expires. */
175
175
  startPendingUntil?: string;
176
+ /** Host-only startup owner; a stale heartbeat cannot renew another launch. */
177
+ startPendingId?: string;
176
178
  /** Host invocation ID used by inspect, cancel and respond. */
177
179
  id: string;
178
180
  /** Host-managed concurrency revision, distinct from the target version. */
@@ -18,21 +18,21 @@ export declare const artifactDocumentDependencyLock: z.ZodEffects<z.ZodObject<{
18
18
  }, "strict", z.ZodTypeAny, {
19
19
  id?: string;
20
20
  version?: string;
21
+ sha256?: string;
21
22
  format?: "classic-script";
22
23
  global?: string;
23
- sha256?: string;
24
24
  }, {
25
25
  id?: string;
26
26
  version?: string;
27
+ sha256?: string;
27
28
  format?: "classic-script";
28
29
  global?: string;
29
- sha256?: string;
30
30
  }>, ArtifactDocumentDependencyLock, {
31
31
  id?: string;
32
32
  version?: string;
33
+ sha256?: string;
33
34
  format?: "classic-script";
34
35
  global?: string;
35
- sha256?: string;
36
36
  }>;
37
37
  export declare const artifactDocumentDependencyLocks: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
38
38
  id: z.ZodString;
@@ -43,27 +43,27 @@ export declare const artifactDocumentDependencyLocks: z.ZodEffects<z.ZodArray<z.
43
43
  }, "strict", z.ZodTypeAny, {
44
44
  id?: string;
45
45
  version?: string;
46
+ sha256?: string;
46
47
  format?: "classic-script";
47
48
  global?: string;
48
- sha256?: string;
49
49
  }, {
50
50
  id?: string;
51
51
  version?: string;
52
+ sha256?: string;
52
53
  format?: "classic-script";
53
54
  global?: string;
54
- sha256?: string;
55
55
  }>, ArtifactDocumentDependencyLock, {
56
56
  id?: string;
57
57
  version?: string;
58
+ sha256?: string;
58
59
  format?: "classic-script";
59
60
  global?: string;
60
- sha256?: string;
61
61
  }>, "many">, ArtifactDocumentDependencyLock[], {
62
62
  id?: string;
63
63
  version?: string;
64
+ sha256?: string;
64
65
  format?: "classic-script";
65
66
  global?: string;
66
- sha256?: string;
67
67
  }[]>;
68
68
  export declare const artifactDocumentDependencyAssets: z.ZodArray<z.ZodEffects<z.ZodObject<{
69
69
  id: z.ZodString;
@@ -76,24 +76,24 @@ export declare const artifactDocumentDependencyAssets: z.ZodArray<z.ZodEffects<z
76
76
  }, "strict", z.ZodTypeAny, {
77
77
  id?: string;
78
78
  version?: string;
79
+ sha256?: string;
79
80
  source?: string;
80
81
  format?: "classic-script";
81
82
  global?: string;
82
- sha256?: string;
83
83
  }, {
84
84
  id?: string;
85
85
  version?: string;
86
+ sha256?: string;
86
87
  source?: string;
87
88
  format?: "classic-script";
88
89
  global?: string;
89
- sha256?: string;
90
90
  }>, ArtifactDocumentDependencyAsset, {
91
91
  id?: string;
92
92
  version?: string;
93
+ sha256?: string;
93
94
  source?: string;
94
95
  format?: "classic-script";
95
96
  global?: string;
96
- sha256?: string;
97
97
  }>, "many">;
98
98
  /** Browser/server identical verification. Integrity is not authorization: the caller owns library admission. */
99
99
  export declare function verifyArtifactDocumentDependencies(input: unknown, expected?: ArtifactDocumentDependencyLock[]): ArtifactDocumentDependencyAsset[];
@@ -0,0 +1,17 @@
1
+ /** Current formal acceptance facts; consumers decide which review mode their workflow requires. */
2
+ export interface ProjectTaskAcceptanceReceipt {
3
+ projectId: string;
4
+ taskId: string;
5
+ taskRevision: number;
6
+ conversationId: string;
7
+ decisionId: string;
8
+ review: {
9
+ executionId: string;
10
+ mode: 'evidence_only' | 'execution';
11
+ verdict: 'pass' | 'changes_required' | 'indeterminate';
12
+ } | null;
13
+ artifacts: Array<{
14
+ artifactId: string;
15
+ versionId: string;
16
+ }>;
17
+ }
@@ -2,6 +2,8 @@ import { DiscoveryService, Reflector } from '@nestjs/core';
2
2
  import type { ProjectTaskGraph, ProjectTaskGraphChange, ProjectTaskExecutionTarget, ProjectTaskTypeDefinition, TXpertProjectTaskStatus } from '@xpert-ai/contracts';
3
3
  import { BaseStrategyRegistry } from '../strategy';
4
4
  import type { ProjectAccessActor } from '../runtime/capabilities/project-access';
5
+ import type { ProjectTaskAcceptanceReceipt } from './acceptance';
6
+ export type { ProjectTaskAcceptanceReceipt } from './acceptance';
5
7
  export interface ProjectTaskContext {
6
8
  actor: ProjectAccessActor;
7
9
  projectId: string;
@@ -60,6 +62,8 @@ export declare class ProjectTaskProviderRegistry extends BaseStrategyRegistry<IP
60
62
  }
61
63
  /** ORM-independent project task management; actor values come from trusted server context. */
62
64
  export interface ProjectTasksApi {
65
+ /** Read current formal acceptance without dispatching or reconciling work; null means no current acceptance. */
66
+ readAcceptance(context: ProjectTaskContext, taskId: string): Promise<ProjectTaskAcceptanceReceipt | null>;
63
67
  /** Read the saved graph and current execution facts. Never invokes provider snapshot/linked callbacks. */
64
68
  graph(context: ProjectTaskContext): Promise<ProjectTaskGraph>;
65
69
  /** After committing domain changes, enqueue a durable coalesced refresh; does not wait for provider callbacks. */
@@ -9,6 +9,7 @@ export * from './workspace-storage';
9
9
  export * from './sandbox-jobs';
10
10
  export * from './project-provisioning';
11
11
  export * from './project-access';
12
+ export * from './plugin-test-access';
12
13
  export * from './project-files';
13
14
  export * from './tool-images';
14
15
  export * from './assistant-middleware-access';
@@ -16,3 +17,4 @@ export * from '../actor';
16
17
  export * from './project-knowledge';
17
18
  export * from './mcp-client-runtime';
18
19
  export * from './rest-client-runtime';
20
+ export * from './project-configuration';
@@ -0,0 +1,14 @@
1
+ import type { ProjectPipelineEvidenceRef } from '@xpert-ai/contracts';
2
+ import type { ProjectPipelineContext } from '../../project-pipeline/capability';
3
+ /** Prepare bounded MCP testing for a host-installed release. This API cannot install plugins. */
4
+ export interface PluginTestAccessApi {
5
+ prepare(context: ProjectPipelineContext, input: {
6
+ deployment: ProjectPipelineEvidenceRef;
7
+ componentKey: string;
8
+ }): Promise<{
9
+ path: string;
10
+ publicationId: string;
11
+ expiresAt: string;
12
+ }>;
13
+ }
14
+ export declare const PluginTestAccessCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<PluginTestAccessApi>;
@@ -0,0 +1,164 @@
1
+ import type { IXpertTask, ProjectConfigurationOverview, ProjectConfigurationUpdate, ProjectConfigurationValues, TXpertTaskScheduleCapabilities, XpertProjectConfigurationView } from '@xpert-ai/contracts';
2
+ import type { ConnectorAuthMethodDefinition, ConnectorBinding, ConnectorRuntimeOptions, ConnectorStrategyDefinition } from '../../connector';
3
+ import type { RuntimeActor } from '../actor';
4
+ /** Supplied by the host from trusted request/execution context, never from an action/tool payload.
5
+ * Background callers restore execution identity before invoking operations that use domain services.
6
+ * assistantId retains the current Assistant-to-Project access check when invoked in its scope. */
7
+ export interface ProjectConfigurationScope {
8
+ actor: RuntimeActor;
9
+ projectId: string;
10
+ assistantId?: string;
11
+ }
12
+ export type ProjectConfigurationMemberRole = 'manager' | 'editor' | 'member';
13
+ export type ProjectConfigurationPageInput = {
14
+ page: number;
15
+ search: string;
16
+ };
17
+ export interface ProjectSkillArchive {
18
+ buffer: Buffer;
19
+ originalname?: string;
20
+ mimetype?: string;
21
+ size?: number;
22
+ }
23
+ export interface ProjectConfigurationPage {
24
+ items: {
25
+ id: string;
26
+ name: string;
27
+ description?: string;
28
+ }[];
29
+ total: number;
30
+ page: number;
31
+ }
32
+ export interface ProjectConfigurationMemberCandidates extends ProjectConfigurationPage {
33
+ canInvite: boolean;
34
+ invitations: {
35
+ id: string;
36
+ email: string;
37
+ role: ProjectConfigurationMemberRole;
38
+ status: string;
39
+ }[];
40
+ }
41
+ export type ProjectConfigurationAutomationInput = Required<Pick<IXpertTask, 'name' | 'prompt' | 'xpertId' | 'options' | 'timeZone'>> & Pick<IXpertTask, 'agentKey'> & {
42
+ taskId?: string;
43
+ runtimeState?: ProjectConfigurationValues;
44
+ };
45
+ export interface ProjectConfigurationAutomationPage {
46
+ items: Pick<IXpertTask, 'id' | 'name' | 'prompt' | 'xpertId' | 'agentKey' | 'options' | 'timeZone' | 'status' | 'scheduleDescription' | 'runAsUserId' | 'pendingRunAsUserId' | 'runtimeState'>[];
47
+ total: number;
48
+ page: number;
49
+ }
50
+ export interface ProjectConfigurationAutomationOptions {
51
+ capabilities: TXpertTaskScheduleCapabilities;
52
+ connectors: ConnectorRuntimeOptions;
53
+ }
54
+ export interface ProjectConfigurationConnectors {
55
+ bindings: ConnectorBinding[];
56
+ definitions: {
57
+ provider: string;
58
+ label: ConnectorStrategyDefinition['label'];
59
+ authMethods: ConnectorAuthMethodDefinition[];
60
+ }[];
61
+ }
62
+ export interface ProjectConfigurationConnectorAuthorization {
63
+ status: string;
64
+ authorizationUrl?: string;
65
+ stateExpiresAt?: string;
66
+ }
67
+ /** Project configuration operations shared by plugins and trusted runtime callers.
68
+ * Each call revalidates identity and domain permissions; this API does not grant machine principals
69
+ * human management or consent authority. Browser OAuth launch still needs an authenticated HTTP origin. */
70
+ export interface ProjectConfigurationApi {
71
+ getOverview(scope: ProjectConfigurationScope): Promise<ProjectConfigurationOverview>;
72
+ get(scope: ProjectConfigurationScope): Promise<XpertProjectConfigurationView>;
73
+ update(scope: ProjectConfigurationScope, input: ProjectConfigurationUpdate): Promise<XpertProjectConfigurationView>;
74
+ listAvailableAssistants(scope: ProjectConfigurationScope, input: ProjectConfigurationPageInput): Promise<ProjectConfigurationPage>;
75
+ addAssistant(scope: ProjectConfigurationScope, input: {
76
+ xpertId: string;
77
+ }): Promise<null>;
78
+ removeAssistant(scope: ProjectConfigurationScope, input: {
79
+ xpertId: string;
80
+ }): Promise<null>;
81
+ listMemberCandidates(scope: ProjectConfigurationScope, input: ProjectConfigurationPageInput): Promise<ProjectConfigurationMemberCandidates>;
82
+ addMember(scope: ProjectConfigurationScope, input: {
83
+ userId: string;
84
+ role?: ProjectConfigurationMemberRole;
85
+ }): Promise<null>;
86
+ updateMemberRole(scope: ProjectConfigurationScope, input: {
87
+ userId: string;
88
+ role: ProjectConfigurationMemberRole;
89
+ }): Promise<null>;
90
+ removeMember(scope: ProjectConfigurationScope, input: {
91
+ userId: string;
92
+ }): Promise<null>;
93
+ transferOwnership(scope: ProjectConfigurationScope, input: {
94
+ userId: string;
95
+ }): Promise<null>;
96
+ inviteMember(scope: ProjectConfigurationScope, input: {
97
+ email: string;
98
+ role: ProjectConfigurationMemberRole;
99
+ }): Promise<null>;
100
+ revokeInvitation(scope: ProjectConfigurationScope, input: {
101
+ invitationId: string;
102
+ }): Promise<null>;
103
+ listSkillCatalog(scope: ProjectConfigurationScope, input: ProjectConfigurationPageInput): Promise<ProjectConfigurationPage>;
104
+ installSkill(scope: ProjectConfigurationScope, input: {
105
+ indexId: string;
106
+ }): Promise<null>;
107
+ setSkillEnabled(scope: ProjectConfigurationScope, input: {
108
+ skillId: string;
109
+ enabled: boolean;
110
+ }): Promise<null>;
111
+ removeSkill(scope: ProjectConfigurationScope, input: {
112
+ skillId: string;
113
+ }): Promise<null>;
114
+ deleteProject(scope: ProjectConfigurationScope, input: {
115
+ name: string;
116
+ }): Promise<null>;
117
+ listAutomations(scope: ProjectConfigurationScope, input: ProjectConfigurationPageInput): Promise<ProjectConfigurationAutomationPage>;
118
+ getAutomationOptions(scope: ProjectConfigurationScope, input: {
119
+ xpertId: string;
120
+ agentKey?: string;
121
+ }): Promise<ProjectConfigurationAutomationOptions>;
122
+ saveAutomation(scope: ProjectConfigurationScope, input: ProjectConfigurationAutomationInput): Promise<null>;
123
+ pauseAutomation(scope: ProjectConfigurationScope, input: {
124
+ taskId: string;
125
+ }): Promise<null>;
126
+ resumeAutomation(scope: ProjectConfigurationScope, input: {
127
+ taskId: string;
128
+ }): Promise<null>;
129
+ deleteAutomation(scope: ProjectConfigurationScope, input: {
130
+ taskId: string;
131
+ }): Promise<null>;
132
+ proposeAutomationRunAs(scope: ProjectConfigurationScope, input: {
133
+ taskId: string;
134
+ userId: string;
135
+ }): Promise<null>;
136
+ acceptAutomationRunAs(scope: ProjectConfigurationScope, input: {
137
+ taskId: string;
138
+ }): Promise<null>;
139
+ updateAutomationConnectors(scope: ProjectConfigurationScope, input: {
140
+ taskId: string;
141
+ runtimeState: ProjectConfigurationValues;
142
+ }): Promise<null>;
143
+ listConnectors(scope: ProjectConfigurationScope): Promise<ProjectConfigurationConnectors>;
144
+ addConnector(scope: ProjectConfigurationScope, input: {
145
+ provider: string;
146
+ }): Promise<null>;
147
+ removeConnector(scope: ProjectConfigurationScope, input: {
148
+ bindingId: string;
149
+ }): Promise<null>;
150
+ getConnectorAuthorizationStatus(scope: ProjectConfigurationScope, input: {
151
+ bindingId: string;
152
+ }): Promise<ProjectConfigurationConnectorAuthorization>;
153
+ cancelConnectorAuthorization(scope: ProjectConfigurationScope, input: {
154
+ bindingId: string;
155
+ }): Promise<null>;
156
+ connectConnector(scope: ProjectConfigurationScope, input: {
157
+ bindingId: string;
158
+ authMethodId?: string;
159
+ values?: Record<string, string>;
160
+ }): Promise<ProjectConfigurationConnectorAuthorization>;
161
+ updateInstructions(scope: ProjectConfigurationScope, content: string): Promise<void>;
162
+ uploadSkill(scope: ProjectConfigurationScope, file: ProjectSkillArchive): Promise<void>;
163
+ }
164
+ export declare const ProjectConfigurationRuntimeCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<ProjectConfigurationApi>;