@xpert-ai/contracts 3.38.0 → 3.39.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 (39) hide show
  1. package/index.cjs.js +191 -35
  2. package/index.esm.js +168 -37
  3. package/package.json +2 -2
  4. package/src/ai/assistant-capability.model.d.ts +21 -0
  5. package/src/ai/chat-event.model.d.ts +2 -1
  6. package/src/ai/chat-message-envelope.model.d.ts +2 -1
  7. package/src/ai/chat-message.model.d.ts +1 -1
  8. package/src/ai/chat.model.d.ts +14 -3
  9. package/src/ai/conversation-trail.model.d.ts +12 -12
  10. package/src/ai/execution-activity.model.d.ts +10 -10
  11. package/src/ai/index.d.ts +2 -1
  12. package/src/ai/project-pipeline/analytics.d.ts +4 -4
  13. package/src/ai/project-pipeline/commands.schema.d.ts +17 -11
  14. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +6 -6
  15. package/src/ai/project-pipeline/configuration-form.d.ts +47 -47
  16. package/src/ai/project-pipeline/configuration.schema.d.ts +8 -8
  17. package/src/ai/project-pipeline/contribution.schema.d.ts +18 -18
  18. package/src/ai/project-pipeline/index.d.ts +1 -0
  19. package/src/ai/project-pipeline/model-usage-statistics.d.ts +2 -2
  20. package/src/ai/project-pipeline/operation-actions.schema.d.ts +112 -0
  21. package/src/ai/project-pipeline/operation.schema.d.ts +3 -0
  22. package/src/ai/project-pipeline/portfolio.schema.d.ts +8 -8
  23. package/src/ai/project-pipeline/provider-actions.schema.d.ts +74 -74
  24. package/src/ai/project-pipeline/runtime.schema.d.ts +28 -28
  25. package/src/ai/project-task-graph.model.d.ts +2 -0
  26. package/src/ai/project-task-runtime.model.d.ts +39 -35
  27. package/src/ai/template-lifecycle.model.d.ts +2 -2
  28. package/src/ai/xpert-agent-execution.model.d.ts +3 -0
  29. package/src/ai/xpert-tool.model.d.ts +3 -3
  30. package/src/ai/xpert-toolset.model.d.ts +2 -0
  31. package/src/always-on/agent-output.model.d.ts +8 -7
  32. package/src/always-on/output-workbench.schema.d.ts +13 -10
  33. package/src/artifacts/artifact-presentation.model.d.ts +5 -1
  34. package/src/plugin-application.d.ts +83 -0
  35. package/src/user-notification.schema.d.ts +689 -97
  36. package/src/view-extension/index.d.ts +2 -0
  37. package/src/view-extension/project-workbench.d.ts +5 -0
  38. package/src/view-extension/workbench-entry.schema.d.ts +218 -0
  39. package/src/view-extension/workbench.d.ts +2 -0
@@ -5,3 +5,5 @@ export * from './workbench';
5
5
  export * from './workbench-open';
6
6
  export * from './workspace-connector';
7
7
  export * from './context-event';
8
+ export * from './project-workbench';
9
+ export * from './workbench-entry.schema';
@@ -0,0 +1,5 @@
1
+ import type { WorkbenchEntry } from './workbench-entry.schema';
2
+ /** An authorized Assistant destination for a Project's Workbench. This descriptor grants no access. */
3
+ export interface ProjectWorkbenchEntry extends WorkbenchEntry {
4
+ projectId: string;
5
+ }
@@ -0,0 +1,218 @@
1
+ import { z } from 'zod/v3';
2
+ declare const parameters: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>;
3
+ /** A declared View and its bounded, credential-free selection context; it grants no access. */
4
+ export declare const workbenchViewLocationSchema: z.ZodObject<{
5
+ viewKey: z.ZodString;
6
+ selectionId: z.ZodOptional<z.ZodString>;
7
+ parameters: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ viewKey: string;
10
+ selectionId?: string | undefined;
11
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
12
+ }, {
13
+ viewKey: string;
14
+ selectionId?: string | undefined;
15
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
16
+ }>;
17
+ /** A declared View location without identity or authorization policy. */
18
+ export interface WorkbenchViewLocation {
19
+ viewKey: string;
20
+ selectionId?: string;
21
+ parameters?: z.output<typeof parameters>;
22
+ }
23
+ export declare const assistantWorkbenchViewInputSchema: z.ZodObject<{
24
+ viewKey: z.ZodString;
25
+ selectionId: z.ZodOptional<z.ZodString>;
26
+ parameters: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>;
27
+ } & {
28
+ projectId: z.ZodNullable<z.ZodString>;
29
+ }, "strict", z.ZodTypeAny, {
30
+ viewKey: string;
31
+ projectId: string | null;
32
+ selectionId?: string | undefined;
33
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
34
+ }, {
35
+ viewKey: string;
36
+ projectId: string | null;
37
+ selectionId?: string | undefined;
38
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
39
+ }>;
40
+ export type AssistantWorkbenchViewInput = WorkbenchViewLocation & {
41
+ projectId: string | null;
42
+ };
43
+ /** A concrete Assistant View destination. Identity and scope are subject to current host authorization. */
44
+ export declare const assistantWorkbenchTargetSchema: z.ZodObject<{
45
+ viewKey: z.ZodString;
46
+ selectionId: z.ZodOptional<z.ZodString>;
47
+ parameters: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>;
48
+ } & {
49
+ projectId: z.ZodNullable<z.ZodString>;
50
+ } & {
51
+ /** A declared Assistant Workbench View; arbitrary URLs and commands are outside this target. */
52
+ target: z.ZodLiteral<"workbench.view">;
53
+ assistantId: z.ZodString;
54
+ organizationId: z.ZodNullable<z.ZodString>;
55
+ }, "strict", z.ZodTypeAny, {
56
+ viewKey: string;
57
+ projectId: string | null;
58
+ target: "workbench.view";
59
+ assistantId: string;
60
+ organizationId: string | null;
61
+ selectionId?: string | undefined;
62
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
63
+ }, {
64
+ viewKey: string;
65
+ projectId: string | null;
66
+ target: "workbench.view";
67
+ assistantId: string;
68
+ organizationId: string | null;
69
+ selectionId?: string | undefined;
70
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
71
+ }>;
72
+ export type AssistantWorkbenchTarget = AssistantWorkbenchViewInput & {
73
+ /** A declared Assistant Workbench View; the destination grants no resource access. */
74
+ target: 'workbench.view';
75
+ assistantId: string;
76
+ organizationId: string | null;
77
+ };
78
+ /** A domain-owned pipeline location; Assistant selection remains with the Project domain. */
79
+ export declare const projectPipelineWorkbenchTargetSchema: z.ZodObject<{
80
+ /** A Project pipeline location requiring domain resolution before opening a Workbench. */
81
+ target: z.ZodLiteral<"project.pipelines">;
82
+ organizationId: z.ZodNullable<z.ZodString>;
83
+ projectId: z.ZodString;
84
+ pipelineInstanceId: z.ZodString;
85
+ pipelineRoundId: z.ZodString;
86
+ pipelineNodeId: z.ZodString;
87
+ }, "strict", z.ZodTypeAny, {
88
+ projectId: string;
89
+ target: "project.pipelines";
90
+ organizationId: string | null;
91
+ pipelineInstanceId: string;
92
+ pipelineRoundId: string;
93
+ pipelineNodeId: string;
94
+ }, {
95
+ projectId: string;
96
+ target: "project.pipelines";
97
+ organizationId: string | null;
98
+ pipelineInstanceId: string;
99
+ pipelineRoundId: string;
100
+ pipelineNodeId: string;
101
+ }>;
102
+ export type ProjectPipelineWorkbenchTarget = Required<z.output<typeof projectPipelineWorkbenchTargetSchema>>;
103
+ /** Cross-surface navigation intent, independent of notification delivery and business decisions. */
104
+ export declare const workbenchEntryTargetSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
105
+ /** A Project pipeline location requiring domain resolution before opening a Workbench. */
106
+ target: z.ZodLiteral<"project.pipelines">;
107
+ organizationId: z.ZodNullable<z.ZodString>;
108
+ projectId: z.ZodString;
109
+ pipelineInstanceId: z.ZodString;
110
+ pipelineRoundId: z.ZodString;
111
+ pipelineNodeId: z.ZodString;
112
+ }, "strict", z.ZodTypeAny, {
113
+ projectId: string;
114
+ target: "project.pipelines";
115
+ organizationId: string | null;
116
+ pipelineInstanceId: string;
117
+ pipelineRoundId: string;
118
+ pipelineNodeId: string;
119
+ }, {
120
+ projectId: string;
121
+ target: "project.pipelines";
122
+ organizationId: string | null;
123
+ pipelineInstanceId: string;
124
+ pipelineRoundId: string;
125
+ pipelineNodeId: string;
126
+ }>, z.ZodObject<{
127
+ viewKey: z.ZodString;
128
+ selectionId: z.ZodOptional<z.ZodString>;
129
+ parameters: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>;
130
+ } & {
131
+ projectId: z.ZodNullable<z.ZodString>;
132
+ } & {
133
+ /** A declared Assistant Workbench View; arbitrary URLs and commands are outside this target. */
134
+ target: z.ZodLiteral<"workbench.view">;
135
+ assistantId: z.ZodString;
136
+ organizationId: z.ZodNullable<z.ZodString>;
137
+ }, "strict", z.ZodTypeAny, {
138
+ viewKey: string;
139
+ projectId: string | null;
140
+ target: "workbench.view";
141
+ assistantId: string;
142
+ organizationId: string | null;
143
+ selectionId?: string | undefined;
144
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
145
+ }, {
146
+ viewKey: string;
147
+ projectId: string | null;
148
+ target: "workbench.view";
149
+ assistantId: string;
150
+ organizationId: string | null;
151
+ selectionId?: string | undefined;
152
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
153
+ }>]>;
154
+ export type WorkbenchEntryTarget = ProjectPipelineWorkbenchTarget | AssistantWorkbenchTarget;
155
+ /** Current host-authorized Assistant scope and View location; this descriptor contains no credential. */
156
+ export interface WorkbenchEntry {
157
+ projectId: string | null;
158
+ organizationId: string | null;
159
+ assistant: {
160
+ id: string;
161
+ name: string;
162
+ };
163
+ view: WorkbenchViewLocation;
164
+ }
165
+ export declare const workbenchEntrySchema: z.ZodObject<{
166
+ projectId: z.ZodNullable<z.ZodString>;
167
+ organizationId: z.ZodNullable<z.ZodString>;
168
+ assistant: z.ZodObject<{
169
+ id: z.ZodString;
170
+ name: z.ZodString;
171
+ }, "strict", z.ZodTypeAny, {
172
+ id: string;
173
+ name: string;
174
+ }, {
175
+ id: string;
176
+ name: string;
177
+ }>;
178
+ view: z.ZodObject<{
179
+ viewKey: z.ZodString;
180
+ selectionId: z.ZodOptional<z.ZodString>;
181
+ parameters: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>;
182
+ }, "strict", z.ZodTypeAny, {
183
+ viewKey: string;
184
+ selectionId?: string | undefined;
185
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
186
+ }, {
187
+ viewKey: string;
188
+ selectionId?: string | undefined;
189
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
190
+ }>;
191
+ }, "strict", z.ZodTypeAny, {
192
+ projectId: string | null;
193
+ organizationId: string | null;
194
+ assistant: {
195
+ id: string;
196
+ name: string;
197
+ };
198
+ view: {
199
+ viewKey: string;
200
+ selectionId?: string | undefined;
201
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
202
+ };
203
+ }, {
204
+ projectId: string | null;
205
+ organizationId: string | null;
206
+ assistant: {
207
+ id: string;
208
+ name: string;
209
+ };
210
+ view: {
211
+ viewKey: string;
212
+ selectionId?: string | undefined;
213
+ parameters?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
214
+ };
215
+ }>;
216
+ export declare function parseWorkbenchEntry(value: unknown): WorkbenchEntry;
217
+ export declare function parseWorkbenchEntryTarget(value: unknown): WorkbenchEntryTarget;
218
+ export {};
@@ -4,3 +4,5 @@ export declare const AGENT_WORKBENCH_SLOT = "agent.workbench";
4
4
  export declare const LEGACY_AGENT_WORKBENCH_SLOTS: readonly ["agent.workbench.fixed", "agent.workbench.main"];
5
5
  /** Platform-provided navigation, available without Assistant middleware. */
6
6
  export declare const CONVERSATION_MAP_FEATURE = "platform.conversation-map";
7
+ /** Workspace file views are available independently of Assistant tool capabilities. */
8
+ export declare const WORKSPACE_FILES_FEATURE = "platform.workspace-files";