@xpert-ai/contracts 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 (40) hide show
  1. package/index.cjs.js +760 -290
  2. package/index.esm.js +726 -291
  3. package/package.json +2 -2
  4. package/src/agent-plugin.d.ts +2 -0
  5. package/src/ai/chat-recovery.model.d.ts +33 -0
  6. package/src/ai/chat.model.d.ts +16 -1
  7. package/src/ai/computer-codex-isolation.model.d.ts +12 -0
  8. package/src/ai/execution-control-evidence.schema.d.ts +294 -0
  9. package/src/ai/execution-control.model.d.ts +26 -0
  10. package/src/ai/index.d.ts +6 -0
  11. package/src/ai/mcp-execution-control.schema.d.ts +107 -0
  12. package/src/ai/mcp-operation.model.d.ts +60 -0
  13. package/src/ai/mcp-task.schema.d.ts +85 -0
  14. package/src/ai/model-execution-parameters.model.d.ts +46 -0
  15. package/src/ai/model-execution.model.d.ts +3 -0
  16. package/src/ai/project-pipeline/operation.schema.d.ts +1987 -2
  17. package/src/ai/project-task-runtime.model.d.ts +44 -44
  18. package/src/ai/run-display-snapshot.model.d.ts +24 -0
  19. package/src/ai/sandbox-execution-control.schema.d.ts +100 -0
  20. package/src/ai/thread-activity.model.d.ts +1 -0
  21. package/src/ai/thread-control-projection.model.d.ts +9 -0
  22. package/src/ai/thread-control-view.schema.d.ts +97 -0
  23. package/src/ai/xpert-agent-execution.model.d.ts +2 -0
  24. package/src/ai/xpert-project-type.model.d.ts +2 -0
  25. package/src/ai/xpert-template.model.d.ts +2 -0
  26. package/src/ai/xpert-workspace.model.d.ts +1 -0
  27. package/src/ai/xpert.model.d.ts +4 -0
  28. package/src/api-key.model.d.ts +3 -1
  29. package/src/artifact.model.d.ts +3 -0
  30. package/src/content-document.model.d.ts +142 -0
  31. package/src/content-reference.model.d.ts +19 -0
  32. package/src/content-resource.model.d.ts +112 -0
  33. package/src/desktop-shell.model.d.ts +8 -0
  34. package/src/execution-control-admission.schema.d.ts +119 -0
  35. package/src/index.d.ts +12 -1
  36. package/src/plugin-application.d.ts +34 -7
  37. package/src/runtime-control.d.ts +9 -0
  38. package/src/secret-token.model.d.ts +33 -0
  39. package/src/task-control.model.d.ts +45 -0
  40. package/src/view-extension/model.d.ts +14 -0
@@ -1,3 +1,4 @@
1
+ import type { PluginApplicationScope } from '../plugin-application';
1
2
  import type { I18nObject, IconDefinition } from '../types';
2
3
  import type { JsonSchemaObjectType } from '../ai/types';
3
4
  import type { XpertViewAssistantIdentity } from './assistant-profile';
@@ -104,6 +105,13 @@ export interface XpertViewRuntimeScope {
104
105
  }
105
106
  export type XpertViewHostState = Record<string, unknown>;
106
107
  export interface XpertResolvedViewHostContext extends XpertViewHostContext {
108
+ application?: {
109
+ installationId: string;
110
+ pluginName: string;
111
+ appName: string;
112
+ scope: PluginApplicationScope;
113
+ ownerUserId: string | null;
114
+ } | null;
107
115
  assistant?: XpertViewAssistantIdentity;
108
116
  slots: XpertViewSlot[];
109
117
  hostSnapshot?: unknown;
@@ -133,6 +141,10 @@ export interface XpertViewPolling {
133
141
  intervalMs?: number;
134
142
  }
135
143
  export interface XpertViewActivation {
144
+ /** Allow direct document opening in an authorized Project without enabling Assistant tools.
145
+ * Discovery still observes requiredFeatures. Providers must authorize each selected resource
146
+ * and action; this flag grants neither Project membership nor resource write access. */
147
+ projectResource?: boolean;
136
148
  requiredFeatures?: string[];
137
149
  }
138
150
  export interface XpertWorkbenchViewOptions {
@@ -312,6 +324,8 @@ export interface XpertViewActionDefinition {
312
324
  requiredHostAccess?: XpertViewHostAccessLevel;
313
325
  }
314
326
  export interface XpertViewClientCommandDefinition {
327
+ /** A host must implement this command before mounting the view. Optional actions may omit this. */
328
+ required?: boolean;
315
329
  key: string;
316
330
  label?: I18nObject;
317
331
  description?: I18nObject;