@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.
- package/index.cjs.js +760 -290
- package/index.esm.js +726 -291
- package/package.json +2 -2
- package/src/agent-plugin.d.ts +2 -0
- package/src/ai/chat-recovery.model.d.ts +33 -0
- package/src/ai/chat.model.d.ts +16 -1
- package/src/ai/computer-codex-isolation.model.d.ts +12 -0
- package/src/ai/execution-control-evidence.schema.d.ts +294 -0
- package/src/ai/execution-control.model.d.ts +26 -0
- package/src/ai/index.d.ts +6 -0
- package/src/ai/mcp-execution-control.schema.d.ts +107 -0
- package/src/ai/mcp-operation.model.d.ts +60 -0
- package/src/ai/mcp-task.schema.d.ts +85 -0
- package/src/ai/model-execution-parameters.model.d.ts +46 -0
- package/src/ai/model-execution.model.d.ts +3 -0
- package/src/ai/project-pipeline/operation.schema.d.ts +1987 -2
- package/src/ai/project-task-runtime.model.d.ts +44 -44
- package/src/ai/run-display-snapshot.model.d.ts +24 -0
- package/src/ai/sandbox-execution-control.schema.d.ts +100 -0
- package/src/ai/thread-activity.model.d.ts +1 -0
- package/src/ai/thread-control-projection.model.d.ts +9 -0
- package/src/ai/thread-control-view.schema.d.ts +97 -0
- package/src/ai/xpert-agent-execution.model.d.ts +2 -0
- package/src/ai/xpert-project-type.model.d.ts +2 -0
- package/src/ai/xpert-template.model.d.ts +2 -0
- package/src/ai/xpert-workspace.model.d.ts +1 -0
- package/src/ai/xpert.model.d.ts +4 -0
- package/src/api-key.model.d.ts +3 -1
- package/src/artifact.model.d.ts +3 -0
- package/src/content-document.model.d.ts +142 -0
- package/src/content-reference.model.d.ts +19 -0
- package/src/content-resource.model.d.ts +112 -0
- package/src/desktop-shell.model.d.ts +8 -0
- package/src/execution-control-admission.schema.d.ts +119 -0
- package/src/index.d.ts +12 -1
- package/src/plugin-application.d.ts +34 -7
- package/src/runtime-control.d.ts +9 -0
- package/src/secret-token.model.d.ts +33 -0
- package/src/task-control.model.d.ts +45 -0
- 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;
|