@xpert-ai/plugin-sdk 3.26.2 → 3.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/artifact-document.cjs.js +55 -16
  2. package/artifact-document.esm.js +53 -17
  3. package/collaboration-client.cjs.js +31 -5
  4. package/collaboration-client.esm.js +31 -5
  5. package/data-workbench.cjs.js +4 -2
  6. package/data-workbench.esm.js +4 -2
  7. package/docs/artifact-documents.md +8 -2
  8. package/docs/en/runtime-capabilities.md +103 -0
  9. package/index.cjs.js +479 -70
  10. package/index.esm.js +461 -73
  11. package/model-provider.cjs.js +17 -1
  12. package/model-provider.esm.js +15 -2
  13. package/package.json +2 -2
  14. package/src/artifact-document.d.ts +1 -0
  15. package/src/index.d.ts +2 -0
  16. package/src/lib/agent/handoff/types.d.ts +5 -0
  17. package/src/lib/agent/middleware/capabilities/assistant-task.d.ts +6 -1
  18. package/src/lib/agent/middleware/runtime.d.ts +2 -0
  19. package/src/lib/agent/runtime/capability.d.ts +4 -0
  20. package/src/lib/agent/runtime/cli-model-profile.d.ts +1 -1
  21. package/src/lib/agent/runtime/execution-runner.d.ts +11 -0
  22. package/src/lib/agent/runtime/index.d.ts +2 -0
  23. package/src/lib/agent/runtime/managed.d.ts +94 -0
  24. package/src/lib/agent/runtime/process-supervisor.d.ts +1 -0
  25. package/src/lib/agent/runtime/strategy.d.ts +14 -0
  26. package/src/lib/agent/runtime/types.d.ts +30 -1
  27. package/src/lib/ai-model/native-model.d.ts +5 -1
  28. package/src/lib/artifact-document/host.d.ts +3 -0
  29. package/src/lib/artifact-document/network.d.ts +21 -0
  30. package/src/lib/artifact-document/runtime.d.ts +2 -1
  31. package/src/lib/assistant-capability/index.d.ts +3 -0
  32. package/src/lib/assistant-capability/middleware.d.ts +10 -0
  33. package/src/lib/collaboration/types.d.ts +12 -1
  34. package/src/lib/connector/document-source.d.ts +31 -0
  35. package/src/lib/connector/documents.d.ts +38 -0
  36. package/src/lib/connector/index.d.ts +1 -0
  37. package/src/lib/connector/strategy.interface.d.ts +3 -0
  38. package/src/lib/content-resource/catalog.d.ts +88 -0
  39. package/src/lib/content-resource/document.d.ts +142 -0
  40. package/src/lib/content-resource/editor-compatibility.d.ts +3 -0
  41. package/src/lib/content-resource/editor.d.ts +105 -0
  42. package/src/lib/content-resource/index.d.ts +94 -0
  43. package/src/lib/content-resource/reference.d.ts +38 -0
  44. package/src/lib/data/datasource/workbench-adapter.d.ts +5 -3
  45. package/src/lib/data/datasource/workbench-sql.d.ts +0 -4
  46. package/src/lib/execution-control/context.d.ts +7 -0
  47. package/src/lib/execution-control/index.d.ts +2 -0
  48. package/src/lib/managed-queue/index.d.ts +12 -0
  49. package/src/lib/project-pipeline/contribution-failure.d.ts +17 -0
  50. package/src/lib/project-pipeline/registry.d.ts +16 -1
  51. package/src/lib/runtime/actor.d.ts +10 -0
  52. package/src/lib/runtime/capabilities/artifact-drafts.d.ts +10 -1
  53. package/src/lib/runtime/capabilities/artifacts.d.ts +5 -0
  54. package/src/lib/runtime/capabilities/assistant-middleware-access.d.ts +28 -0
  55. package/src/lib/runtime/capabilities/index.d.ts +4 -0
  56. package/src/lib/runtime/capabilities/mcp-client-runtime.d.ts +2 -0
  57. package/src/lib/runtime/capabilities/project-access.d.ts +10 -7
  58. package/src/lib/runtime/capabilities/project-files.d.ts +40 -0
  59. package/src/lib/runtime/capabilities/project-knowledge.d.ts +14 -0
  60. package/src/lib/runtime/capabilities/project-provisioning.d.ts +6 -0
  61. package/src/lib/runtime/capabilities/sandbox-jobs.d.ts +12 -3
  62. package/src/lib/runtime/capabilities/workspace-files.d.ts +2 -0
  63. package/src/lib/sandbox/file-edit-command.d.ts +2 -0
  64. package/src/lib/sandbox/file-edit-diff.d.ts +1 -0
  65. package/src/lib/sandbox/protocol.d.ts +13 -1
  66. package/src/lib/sandbox/runtime-provider.d.ts +12 -0
  67. package/src/lib/view-extension/middleware-runtime.d.ts +2 -3
@@ -5,6 +5,7 @@ export type { ArtifactAccessMode, ArtifactKind, ArtifactLinkDisposition, Artifac
5
5
  export type ArtifactScopeInput = {
6
6
  tenantId?: string | null;
7
7
  organizationId?: string | null;
8
+ /** Omit to use the runtime user. Explicit null on creation shares ownership with projectId; the caller remains the actor. */
8
9
  userId?: string | null;
9
10
  workspaceId?: string | null;
10
11
  projectId?: string | null;
@@ -19,6 +20,8 @@ export type ArtifactSourceInput = {
19
20
  };
20
21
  /** Creates or locates an Artifact container without uploading content bytes. */
21
22
  export type CreateArtifactInput = {
23
+ /** Optional explicit provider key; authorizes source.resourceId without changing ownership or list visibility. */
24
+ authorizationProviderKey?: string | null;
22
25
  source: ArtifactSourceInput;
23
26
  kind?: ArtifactKind | null;
24
27
  title?: string | null;
@@ -107,6 +110,8 @@ export type ArtifactVersionRecord = {
107
110
  };
108
111
  /** Durable Artifact container returned to plugins. */
109
112
  export type ArtifactRecord = ArtifactScopeInput & {
113
+ /** Additional resource ACL, evaluated against this record's resourceId. */
114
+ authorizationProviderKey?: string | null;
110
115
  id: string;
111
116
  pluginName: string;
112
117
  resourceType: string;
@@ -0,0 +1,28 @@
1
+ import type { OrganizationRuntimeActor } from '../actor';
2
+ /** Match a specific connected middleware, not another provider advertising the same feature. */
3
+ export interface AssistantMiddlewareRequirement {
4
+ provider: string;
5
+ requiredFeature: string;
6
+ }
7
+ /** Chosen by trusted server context, never by tool arguments or iframe payloads. */
8
+ export type AssistantMiddlewareAccessScope = {
9
+ type: 'assistant';
10
+ } | {
11
+ type: 'project';
12
+ projectId: string;
13
+ };
14
+ export interface AssistantMiddlewareAccessApi {
15
+ /** Authorize an Assistant capability entry on every invocation, without caching grants.
16
+ * Standalone access uses the Assistant catalog policy; Project use requires current
17
+ * membership and an Assistant binding instead. Both require active organization membership.
18
+ * View providers needing configuration/runtime should use ViewMiddlewareRuntimeCapability.
19
+ * This does not grant file/resource operations. Resource ACLs and collaboration delivery
20
+ * retain their own checks and must not depend on this middleware feature remaining installed.
21
+ */
22
+ assertAccess(input: AssistantMiddlewareRequirement & {
23
+ actor: OrganizationRuntimeActor;
24
+ assistantId: string;
25
+ scope: AssistantMiddlewareAccessScope;
26
+ }): Promise<void>;
27
+ }
28
+ export declare const AssistantMiddlewareAccessRuntimeCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<AssistantMiddlewareAccessApi>;
@@ -6,6 +6,10 @@ export * from './workspace-storage';
6
6
  export * from './sandbox-jobs';
7
7
  export * from './project-provisioning';
8
8
  export * from './project-access';
9
+ export * from './project-files';
9
10
  export * from './tool-images';
11
+ export * from './assistant-middleware-access';
12
+ export * from '../actor';
13
+ export * from './project-knowledge';
10
14
  export * from './mcp-client-runtime';
11
15
  export * from './rest-client-runtime';
@@ -23,6 +23,8 @@ export interface McpClientToolResult {
23
23
  text: string[];
24
24
  }
25
25
  export interface McpClientToolCall {
26
+ /** Stable host call identity; required inside a controlled execution to prevent replay. */
27
+ operationKey?: string;
26
28
  toolName: string;
27
29
  contractHash: string;
28
30
  arguments: Record<string, JSONValue>;
@@ -1,19 +1,16 @@
1
1
  import type { XpertProjectClassification } from '@xpert-ai/contracts';
2
- /** Trusted server actor. View providers derive this from host context; jobs persist that actor. */
3
- export interface ProjectAccessActor {
4
- tenantId: string;
5
- organizationId?: string | null;
6
- userId: string;
7
- }
2
+ import type { RuntimeActor } from '../actor';
3
+ export type ProjectAccessActor = RuntimeActor;
8
4
  export interface ProjectHumanAccess extends XpertProjectClassification {
9
5
  projectId: string;
6
+ name?: string;
10
7
  role: 'owner' | 'manager' | 'editor' | 'member';
11
8
  canManage: boolean;
12
9
  archived: boolean;
13
10
  /** Explicit Project bindings, for plugins that choose to use assignment as business policy. */
14
11
  assistantIds?: string[];
15
12
  }
16
- /** Human membership only. Assistant assignment and business authorization remain plugin-owned. */
13
+ /** Project membership and explicit Assistant bindings. Feature activation remains Assistant-owned. */
17
14
  export interface ProjectAccessApi {
18
15
  listReadable(input: {
19
16
  actor: ProjectAccessActor;
@@ -27,5 +24,11 @@ export interface ProjectAccessApi {
27
24
  actor: ProjectAccessActor;
28
25
  projectId: string;
29
26
  }): Promise<ProjectHumanAccess>;
27
+ /** Validate an explicit Assistant connection, including published/root identity normalization. */
28
+ assertAssistant(input: {
29
+ actor: ProjectAccessActor;
30
+ projectId: string;
31
+ assistantId: string;
32
+ }): Promise<ProjectHumanAccess>;
30
33
  }
31
34
  export declare const ProjectAccessRuntimeCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<ProjectAccessApi>;
@@ -0,0 +1,40 @@
1
+ import type { ProjectAccessActor } from './project-access';
2
+ export type ProjectFileScope = {
3
+ actor: ProjectAccessActor;
4
+ projectId: string;
5
+ };
6
+ export type ProjectFileEntry = {
7
+ path: string;
8
+ kind: 'file' | 'directory';
9
+ size: number;
10
+ updatedAt: string;
11
+ };
12
+ export interface ProjectFilesApi {
13
+ list(input: ProjectFileScope & {
14
+ path?: string;
15
+ depth?: number;
16
+ }): Promise<ProjectFileEntry[]>;
17
+ read(input: ProjectFileScope & {
18
+ path: string;
19
+ }): Promise<{
20
+ buffer: Buffer;
21
+ sha256: string;
22
+ }>;
23
+ /** null means create-only. A hash mismatch preserves the current file and rejects. */
24
+ write(input: ProjectFileScope & {
25
+ path: string;
26
+ buffer: Buffer;
27
+ expectedHash: string | null;
28
+ }): Promise<{
29
+ sha256: string;
30
+ }>;
31
+ mkdir(input: ProjectFileScope & {
32
+ path: string;
33
+ }): Promise<void>;
34
+ /** Destination must not exist. Governed Project instructions and skills cannot be moved. */
35
+ move(input: ProjectFileScope & {
36
+ path: string;
37
+ destination: string;
38
+ }): Promise<void>;
39
+ }
40
+ export declare const ProjectFilesRuntimeCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<ProjectFilesApi>;
@@ -0,0 +1,14 @@
1
+ import type { OrganizationRuntimeActor } from '../actor';
2
+ export interface ProjectKnowledgeApi {
3
+ /** One built-in library per Project. Uses current Project ACL, independent of a Space or Assistant.
4
+ * Provisioning calls the existing knowledge service; its request/job context must match actor.
5
+ */
6
+ ensureBinding(input: {
7
+ actor: OrganizationRuntimeActor;
8
+ projectId: string;
9
+ title: string;
10
+ }): Promise<{
11
+ knowledgebaseId: string;
12
+ }>;
13
+ }
14
+ export declare const ProjectKnowledgeRuntimeCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<ProjectKnowledgeApi>;
@@ -7,6 +7,10 @@ export type ProjectExternalAssistantExpectation = {
7
7
  templateKey: string;
8
8
  agentKey: string;
9
9
  };
10
+ /** A requested portable role resolved to an authorized Assistant; not proof of Project membership. */
11
+ export type ProjectAssistantBinding = ProjectExternalAssistantExpectation & {
12
+ xpertId: string;
13
+ };
10
14
  /** Stable identity and desired state for an idempotently provisioned Chat Project. */
11
15
  export type ProjectEnsureInput = {
12
16
  /** Registered application type. Omission preserves legacy unclassified callers. */
@@ -33,6 +37,8 @@ export type ProjectEnsureResult = {
33
37
  workspaceId?: string;
34
38
  /** Persisted Assistant members; ensure never restores removed members or adds new graph dependencies to an existing Project. */
35
39
  xpertIds: string[];
40
+ /** Bindings for the requested role expectations, not all members. Check xpertIds before assigning an executor. */
41
+ assistantBindings: ProjectAssistantBinding[];
36
42
  /** Whether this call inserted the Project or reconciled an existing one. */
37
43
  operation: 'created' | 'updated';
38
44
  };
@@ -1,10 +1,12 @@
1
+ import type { SandboxJobRetryReference } from '@xpert-ai/contracts';
1
2
  import type { JSONValue } from '@xpert-ai/contracts';
2
3
  import type { WorkspaceFileScope, WorkspacePortableFileReference } from './workspace-files';
4
+ import type { TaskControlPolicy } from '../../execution-control';
3
5
  /** Stable machine-readable failures emitted by the Sandbox Jobs capability. */
4
- export declare const SANDBOX_JOB_ERROR_CODES: readonly ["SANDBOX_ACTION_UNAVAILABLE", "SANDBOX_ACTION_INVALID", "SANDBOX_PROFILE_UNAVAILABLE", "SANDBOX_RUNTIME_UNAVAILABLE", "SANDBOX_VERSION_MISMATCH", "SANDBOX_CAPACITY_UNAVAILABLE", "SANDBOX_START_FAILED", "SANDBOX_DEPENDENCY_MISSING", "EXPORT_CONVERSION_FAILED", "EXPORT_TEXT_EXTRACTION_FAILED", "SANDBOX_INVOCATION_FAILED", "BROWSER_LAUNCH_FAILED", "EXPORT_TIMEOUT", "EXPORT_OOM", "EXPORT_MEDIA_FAILED", "EXPORT_INPUT_INVALID", "EXPORT_OUTPUT_INVALID", "SANDBOX_CANCELLED"];
6
+ export declare const SANDBOX_JOB_ERROR_CODES: readonly ["SANDBOX_ACTION_UNAVAILABLE", "SANDBOX_ACTION_INVALID", "SANDBOX_PROFILE_UNAVAILABLE", "SANDBOX_RUNTIME_UNAVAILABLE", "SANDBOX_VERSION_MISMATCH", "SANDBOX_CAPACITY_UNAVAILABLE", "SANDBOX_START_FAILED", "SANDBOX_DEPENDENCY_MISSING", "EXPORT_CONVERSION_FAILED", "EXPORT_TEXT_EXTRACTION_FAILED", "SANDBOX_INVOCATION_FAILED", "BROWSER_LAUNCH_FAILED", "EXPORT_TIMEOUT", "EXPORT_OOM", "EXPORT_MEDIA_FAILED", "EXPORT_INPUT_INVALID", "EXPORT_OUTPUT_INVALID", "SANDBOX_CANCELLED", "SANDBOX_CONTROL_UNCONFIRMED"];
5
7
  export type SandboxJobErrorCode = (typeof SANDBOX_JOB_ERROR_CODES)[number];
6
8
  /** Persisted lifecycle states for a generic isolated background execution. */
7
- export type SandboxJobStatus = 'waiting' | 'starting' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'lost';
9
+ export type SandboxJobStatus = 'waiting' | 'starting' | 'running' | 'settling' | 'cancelling' | 'unknown' | 'succeeded' | 'failed' | 'cancelled' | 'lost';
8
10
  /** Line prefix used by trusted Actions to report structured, provider-neutral progress. */
9
11
  export declare const SANDBOX_JOB_PROGRESS_PREFIX = "XPERT_SANDBOX_PROGRESS ";
10
12
  /** Latest structured progress reported by a Sandbox Action or Core lifecycle stage. */
@@ -68,6 +70,8 @@ export type SandboxJobRunInput = {
68
70
  actionVersion: string;
69
71
  /** Stable tenant-scoped key combining business identity and immutable input checksum. */
70
72
  idempotencyKey: string;
73
+ /** A new call identity that explicitly retries a settled original generation. */
74
+ retryOf?: SandboxJobRetryReference;
71
75
  scope: SandboxJobScope;
72
76
  /** Small structured request; file bytes must be supplied through `files`. */
73
77
  payload: JSONValue;
@@ -89,6 +93,9 @@ export type SandboxJobOutput = {
89
93
  };
90
94
  /** Provider-neutral persisted view of a Sandbox Job and its runtime evidence. */
91
95
  export type SandboxJobSnapshot = {
96
+ /** Business result and physical completion are independent facts. */
97
+ controlState?: 'pending' | 'settled' | 'unknown';
98
+ generation?: string;
92
99
  id: string;
93
100
  runtimeProfile: string;
94
101
  sandboxRuntimeVersion: string;
@@ -137,6 +144,8 @@ export type SandboxJobInvocation = {
137
144
  };
138
145
  /** Live execution controls; kept separate from the persisted, JSON-only RunInput. */
139
146
  export type SandboxJobRunOptions = {
147
+ /** Trusted host ownership; independent/shared work must not inherit caller termination. */
148
+ controlPolicy?: TaskControlPolicy;
140
149
  /** Cancels an owned attempt; on reattachment, cancels only this caller's wait. */
141
150
  signal?: AbortSignal;
142
151
  invocation?: SandboxJobInvocation;
@@ -176,7 +185,7 @@ export type SandboxJobActionHealth = {
176
185
  export interface SandboxJobsApi {
177
186
  /** Starts, reattaches, or reuses a successful execution by tenant-scoped idempotency key. */
178
187
  run(input: SandboxJobRunInput, options?: SandboxJobRunOptions): Promise<SandboxJobRunResult>;
179
- /** Cancels the logical Job and terminates its active Runtime when one exists. */
188
+ /** Persists stop intent; terminal status is returned only after actual execution and host settlement. */
180
189
  cancel(input: {
181
190
  jobId: string;
182
191
  }): Promise<SandboxJobSnapshot>;
@@ -5,6 +5,8 @@ export type WorkspaceFileCatalog = 'projects' | 'users' | 'knowledges' | 'skills
5
5
  export declare const WORKSPACE_FILES_SOURCE: "platform.workspace.files";
6
6
  /**
7
7
  * Scope fields used to resolve a workspace Volume.
8
+ * Project types (including Spaces) share the projects catalog and projectId;
9
+ * plugin resource IDs belong to content-resource metadata, not storage scope.
8
10
  *
9
11
  * Explicit APIs can provide catalog plus the matching id directly. Runtime-aware
10
12
  * APIs usually receive these fields from the current Agent execution context.
@@ -0,0 +1,2 @@
1
+ /** Compare actual file contents inside the sandbox; reporting must never prevent an edit. */
2
+ export declare function buildEditCommand(filePath: string, oldString: string, newString: string, replaceAll: boolean): string;
@@ -0,0 +1 @@
1
+ export declare const FILE_EDIT_DIFF_SCRIPT: string;
@@ -104,8 +104,20 @@ export interface EditResult {
104
104
  * External backends set null (already persisted to disk/S3/database/etc).
105
105
  */
106
106
  filesUpdate?: Record<string, FileData> | null;
107
- /** Number of replacements made, undefined on failure */
107
+ /** Number of matched replacements processed, including unchanged replacements. */
108
108
  occurrences?: number;
109
+ /** Lines in the old/new arguments, before multiplying by occurrences. Empty text has zero lines. */
110
+ oldLines?: number;
111
+ newLines?: number;
112
+ /** Whether this edit changed the file's text. */
113
+ changed?: boolean;
114
+ /** Whole-file line additions/deletions computed in memory, independently of argument sizes. */
115
+ diff?: {
116
+ removed: number;
117
+ added: number;
118
+ };
119
+ /** Missing statistics do not turn a successful write into an error. */
120
+ diffUnavailable?: 'comparison_budget_exceeded' | 'diff_unavailable';
109
121
  /** Metadata for the edit operation, attached to the ToolMessage */
110
122
  metadata?: Record<string, unknown>;
111
123
  }
@@ -1,3 +1,5 @@
1
+ import type { SandboxRuntimeTarget, SandboxRuntimeEvidence } from '@xpert-ai/contracts';
2
+ export type { SandboxRuntimeTarget, SandboxRuntimeEvidence } from '@xpert-ai/contracts';
1
3
  /** Per-execution limits applied to the Runtime Definition's fixed Runner command. */
2
4
  export type SandboxRuntimeExecutionOptions = {
3
5
  timeoutMs?: number;
@@ -81,6 +83,8 @@ export type SandboxRuntimeSecurity = {
81
83
  };
82
84
  /** Isolation guarantees a Provider advertises before it can be selected. */
83
85
  export type SandboxRuntimeProviderCapabilities = {
86
+ /** Versioned original-target control and actual execution receipts. */
87
+ executionControl?: 1;
84
88
  isolation: 'process' | 'hardened';
85
89
  ephemeral: boolean;
86
90
  resourceLimits: boolean;
@@ -156,6 +160,8 @@ export type SandboxRuntimeVolume = {
156
160
  };
157
161
  /** Fully resolved policy used to create or reattach one ephemeral Job Runtime. */
158
162
  export type SandboxRuntimeCreateOptions = {
163
+ /** Host-persisted identity, prepared before create; never replace it with a new target. */
164
+ controlTarget?: SandboxRuntimeTarget;
159
165
  tenantId: string;
160
166
  workFor: {
161
167
  type: 'job';
@@ -178,6 +184,7 @@ export type SandboxRuntimeCreateOptions = {
178
184
  };
179
185
  /** Persisted evidence required to destroy a Runtime even after Provider reload. */
180
186
  export type SandboxRuntimeDestroyOptions = {
187
+ controlTarget?: SandboxRuntimeTarget;
181
188
  tenantId: string;
182
189
  workFor: {
183
190
  type: 'job';
@@ -229,4 +236,9 @@ export interface ISandboxRuntimeProvider {
229
236
  create(options: SandboxRuntimeCreateOptions): Promise<SandboxRuntimeInstance>;
230
237
  /** Idempotently reclaims a Runtime by persisted scope, Binding, and runtimeRef evidence. */
231
238
  destroy(options: SandboxRuntimeDestroyOptions): Promise<void>;
239
+ /** Resolve identity without starting business work; control never calls create/execute. */
240
+ prepareControl?(options: SandboxRuntimeDestroyOptions & {
241
+ generation: string;
242
+ }): Promise<SandboxRuntimeTarget>;
243
+ control?(target: SandboxRuntimeTarget, action: 'inspect' | 'stop'): Promise<SandboxRuntimeEvidence>;
232
244
  }
@@ -1,10 +1,9 @@
1
1
  import type { IWFNMiddleware, XpertResolvedViewHostContext } from '@xpert-ai/contracts';
2
2
  import type { IAgentMiddlewareContext } from '../agent/middleware/strategy.interface';
3
+ import type { AssistantMiddlewareRequirement } from '../runtime/capabilities/assistant-middleware-access';
3
4
  /** Server-only input: use the authorized context received by a View provider, never iframe input. */
4
- export interface ViewMiddlewareRuntimeInput {
5
+ export interface ViewMiddlewareRuntimeInput extends AssistantMiddlewareRequirement {
5
6
  context: XpertResolvedViewHostContext;
6
- provider: string;
7
- requiredFeature: string;
8
7
  /** Authoring requires the same draft access policy as the Agent View host. Defaults to published. */
9
8
  isDraft?: boolean;
10
9
  }