@xpert-ai/plugin-sdk 3.34.0 → 3.36.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/agent-results.cjs.js +5 -1
- package/agent-results.esm.js +2 -2
- package/analytics-result.cjs.js +64 -27
- package/analytics-result.esm.js +62 -28
- package/analytics.cjs.js +157 -15
- package/analytics.esm.js +154 -17
- package/artifact-document.cjs.js +9 -3
- package/artifact-document.esm.js +9 -3
- package/collaboration-client.cjs.js +274 -140
- package/collaboration-client.esm.js +273 -141
- package/docs/README.md +23 -0
- package/index.cjs.js +214 -9
- package/index.esm.js +193 -15
- package/model-provider.cjs.js +8 -0
- package/model-provider.esm.js +7 -1
- package/package.json +8 -2
- package/remote-component.cjs.default.js +1 -0
- package/remote-component.cjs.js +143 -0
- package/remote-component.cjs.mjs +2 -0
- package/remote-component.d.ts +1 -0
- package/remote-component.esm.js +139 -0
- package/results.cjs.js +2 -6
- package/results.esm.js +2 -6
- package/src/analytics.d.ts +2 -0
- package/src/collaboration-client.d.ts +1 -0
- package/src/index.d.ts +1 -0
- package/src/lib/agent/handoff/agent-runtime-message.contract.d.ts +24 -24
- package/src/lib/agent/middleware/strategy.interface.d.ts +2 -0
- package/src/lib/agent/runtime/capability.d.ts +2 -0
- package/src/lib/agent/runtime/cli-model-profile.d.ts +14 -1
- package/src/lib/agent/runtime/dispatch.d.ts +298 -75
- package/src/lib/agent/runtime/execution-runner.d.ts +24 -5
- package/src/lib/agent/runtime/pipeline-scope.d.ts +4 -4
- package/src/lib/agent/runtime/results.d.ts +16 -219
- package/src/lib/agent/runtime/strategy.d.ts +3 -0
- package/src/lib/agent/runtime/types.d.ts +21 -0
- package/src/lib/agent-event/index.d.ts +55 -0
- package/src/lib/agent-event/journal.d.ts +30 -0
- package/src/lib/artifact-document/dependencies.d.ts +13 -13
- package/src/lib/artifact-document/protocol.d.ts +2 -2
- package/src/lib/artifact-document/scheduler.d.ts +3 -0
- package/src/lib/assistant-capability/middleware.d.ts +2 -1
- package/src/lib/collaboration/client.d.ts +6 -59
- package/src/lib/collaboration/index.d.ts +1 -0
- package/src/lib/collaboration/operations-client.d.ts +23 -0
- package/src/lib/collaboration/presence.d.ts +36 -0
- package/src/lib/collaboration/provider.registry.d.ts +2 -2
- package/src/lib/collaboration/transport.d.ts +24 -0
- package/src/lib/collaboration/types.d.ts +57 -5
- package/src/lib/content-resource/catalog.d.ts +23 -1
- package/src/lib/content-resource/editor.d.ts +36 -1
- package/src/lib/data/analytics/analysis-evidence.d.ts +757 -0
- package/src/lib/data/analytics/analytics-certification.d.ts +64 -0
- package/src/lib/data/analytics/analytics-provider.d.ts +9 -0
- package/src/lib/data/analytics/analytics-value.d.ts +5 -0
- package/src/lib/data/analytics/index.d.ts +1 -0
- package/src/lib/evolution/runtime-capability.d.ts +1 -0
- package/src/lib/project-pipeline/adapters.d.ts +9 -2
- package/src/lib/project-pipeline/registry.d.ts +53 -50
- package/src/lib/project-task/acceptance.d.ts +29 -0
- package/src/lib/project-task/index.d.ts +6 -0
- package/src/lib/runtime/capabilities/index.d.ts +2 -0
- package/src/lib/runtime/capabilities/plugin-test-access.d.ts +14 -0
- package/src/lib/runtime/capabilities/project-configuration.d.ts +166 -0
- package/src/lib/view-extension/provider.interface.d.ts +51 -0
- package/src/remote-component.d.ts +13 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { _ as _extends } from './_extends.esm.js';
|
|
2
|
+
import { viewContextEventSchema } from '@xpert-ai/contracts/context-event';
|
|
3
|
+
import { z } from 'zod/v3';
|
|
4
|
+
|
|
5
|
+
const channel = 'xpertai.remote_component';
|
|
6
|
+
const envelope = z.object({
|
|
7
|
+
channel: z.literal(channel),
|
|
8
|
+
protocolVersion: z.literal(1),
|
|
9
|
+
type: z.string(),
|
|
10
|
+
instanceId: z.string().min(1),
|
|
11
|
+
scopeRevision: z.number().int().nonnegative().optional(),
|
|
12
|
+
event: z.unknown().optional(),
|
|
13
|
+
requestId: z.string().optional(),
|
|
14
|
+
data: z.unknown().optional(),
|
|
15
|
+
result: z.unknown().optional(),
|
|
16
|
+
message: z.string().optional(),
|
|
17
|
+
locale: z.string().optional(),
|
|
18
|
+
theme: z.object({
|
|
19
|
+
mode: z.string().optional(),
|
|
20
|
+
density: z.enum([
|
|
21
|
+
'default',
|
|
22
|
+
'compact'
|
|
23
|
+
]).optional(),
|
|
24
|
+
tokens: z.record(z.union([
|
|
25
|
+
z.string(),
|
|
26
|
+
z.number()
|
|
27
|
+
])).optional()
|
|
28
|
+
}).optional()
|
|
29
|
+
});
|
|
30
|
+
let scope;
|
|
31
|
+
let disconnect;
|
|
32
|
+
const pending = new Map();
|
|
33
|
+
function invalidate(message) {
|
|
34
|
+
for (const call of pending.values()){
|
|
35
|
+
window.clearTimeout(call.timer);
|
|
36
|
+
call.reject(new Error(message));
|
|
37
|
+
}
|
|
38
|
+
pending.clear();
|
|
39
|
+
}
|
|
40
|
+
/** Subscribe before rendering. The returned cleanup releases the listener and all outstanding requests. */ function connect(init, contextChanged) {
|
|
41
|
+
disconnect == null ? void 0 : disconnect();
|
|
42
|
+
const receive = (event)=>{
|
|
43
|
+
if (event.source !== window.parent) return;
|
|
44
|
+
const parsed = envelope.safeParse(event.data);
|
|
45
|
+
if (!parsed.success) return;
|
|
46
|
+
const message = parsed.data;
|
|
47
|
+
if (message.type === 'init') {
|
|
48
|
+
var _message_scopeRevision, _scope_revision;
|
|
49
|
+
if ((scope == null ? void 0 : scope.instanceId) === message.instanceId && ((_message_scopeRevision = message.scopeRevision) != null ? _message_scopeRevision : -1) < ((_scope_revision = scope.revision) != null ? _scope_revision : -1)) return;
|
|
50
|
+
const changed = (scope == null ? void 0 : scope.instanceId) !== message.instanceId || (scope == null ? void 0 : scope.revision) !== message.scopeRevision;
|
|
51
|
+
if (changed) {
|
|
52
|
+
invalidate('View context changed');
|
|
53
|
+
scope = {
|
|
54
|
+
instanceId: message.instanceId,
|
|
55
|
+
revision: message.scopeRevision
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
var _message_locale;
|
|
59
|
+
init({
|
|
60
|
+
locale: (_message_locale = message.locale) != null ? _message_locale : 'en-US',
|
|
61
|
+
theme: message.theme
|
|
62
|
+
}, changed);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (!scope || message.instanceId !== scope.instanceId) return;
|
|
66
|
+
if (message.type === 'hostEvent') {
|
|
67
|
+
const context = viewContextEventSchema.safeParse(message.event);
|
|
68
|
+
var _scope_revision1;
|
|
69
|
+
if (context.success && context.data.data.revision > ((_scope_revision1 = scope.revision) != null ? _scope_revision1 : -1)) {
|
|
70
|
+
invalidate('View context changed');
|
|
71
|
+
scope = {
|
|
72
|
+
instanceId: scope.instanceId,
|
|
73
|
+
revision: context.data.data.revision
|
|
74
|
+
};
|
|
75
|
+
contextChanged();
|
|
76
|
+
}
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (!message.requestId || message.scopeRevision !== undefined && message.scopeRevision !== scope.revision) return;
|
|
80
|
+
const call = pending.get(message.requestId);
|
|
81
|
+
if (!call) return;
|
|
82
|
+
pending.delete(message.requestId);
|
|
83
|
+
window.clearTimeout(call.timer);
|
|
84
|
+
var _message_message;
|
|
85
|
+
if (message.type === 'error') call.reject(new Error((_message_message = message.message) != null ? _message_message : 'Request failed'));
|
|
86
|
+
else call.resolve('data' in message ? message.data : message.result);
|
|
87
|
+
};
|
|
88
|
+
window.addEventListener('message', receive);
|
|
89
|
+
window.parent.postMessage({
|
|
90
|
+
channel,
|
|
91
|
+
protocolVersion: 1,
|
|
92
|
+
type: 'ready'
|
|
93
|
+
}, '*');
|
|
94
|
+
const close = ()=>{
|
|
95
|
+
if (disconnect !== close) return;
|
|
96
|
+
disconnect = undefined;
|
|
97
|
+
window.removeEventListener('message', receive);
|
|
98
|
+
scope = undefined;
|
|
99
|
+
invalidate('View closed');
|
|
100
|
+
};
|
|
101
|
+
disconnect = close;
|
|
102
|
+
return close;
|
|
103
|
+
}
|
|
104
|
+
function request(type, body = {}) {
|
|
105
|
+
if (!scope) return Promise.reject(new Error('View is not connected'));
|
|
106
|
+
const { instanceId, revision } = scope;
|
|
107
|
+
const requestId = crypto.randomUUID();
|
|
108
|
+
return new Promise((resolve, reject)=>{
|
|
109
|
+
const timer = window.setTimeout(()=>{
|
|
110
|
+
pending.delete(requestId);
|
|
111
|
+
reject(new Error('Request timed out'));
|
|
112
|
+
}, 30000);
|
|
113
|
+
pending.set(requestId, {
|
|
114
|
+
resolve,
|
|
115
|
+
reject,
|
|
116
|
+
timer
|
|
117
|
+
});
|
|
118
|
+
try {
|
|
119
|
+
window.parent.postMessage(_extends({}, body, {
|
|
120
|
+
channel,
|
|
121
|
+
protocolVersion: 1,
|
|
122
|
+
instanceId,
|
|
123
|
+
scopeRevision: revision,
|
|
124
|
+
type,
|
|
125
|
+
requestId
|
|
126
|
+
}), '*');
|
|
127
|
+
} catch (error) {
|
|
128
|
+
window.clearTimeout(timer);
|
|
129
|
+
pending.delete(requestId);
|
|
130
|
+
reject(error);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/** Bind a request before asynchronous preparation, so a context switch cannot redirect it. */ function scopedRequest() {
|
|
135
|
+
const captured = scope;
|
|
136
|
+
return (type, body)=>captured && captured === scope ? request(type, body) : Promise.reject(new Error('View context changed'));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export { connect, request, scopedRequest };
|
package/results.cjs.js
CHANGED
|
@@ -39,12 +39,8 @@ const common = {
|
|
|
39
39
|
path: contracts.agentResultPathSchema
|
|
40
40
|
})).strict()
|
|
41
41
|
]);
|
|
42
|
-
/**
|
|
43
|
-
version: v3.z.literal(1),
|
|
44
|
-
summary: v3.z.string().max(64000),
|
|
45
|
-
items: v3.z.array(agentResultItemSchema).max(32)
|
|
46
|
-
}).strict().refine((value)=>new Set(value.items.map((item)=>item.id)).size === value.items.length, 'Result item IDs must be unique');
|
|
42
|
+
/** Report bytes are transported independently of artifact quotas and business acceptance. */ const AGENT_TASK_REPORT_MAX_BYTES = 4 * 1024 * 1024;
|
|
47
43
|
|
|
44
|
+
exports.AGENT_TASK_REPORT_MAX_BYTES = AGENT_TASK_REPORT_MAX_BYTES;
|
|
48
45
|
exports.AGENT_TASK_RESULTS_FEATURE = AGENT_TASK_RESULTS_FEATURE;
|
|
49
46
|
exports.agentResultItemSchema = agentResultItemSchema;
|
|
50
|
-
exports.agentTaskResultSchema = agentTaskResultSchema;
|
package/results.esm.js
CHANGED
|
@@ -37,10 +37,6 @@ const common = {
|
|
|
37
37
|
path: agentResultPathSchema
|
|
38
38
|
})).strict()
|
|
39
39
|
]);
|
|
40
|
-
/**
|
|
41
|
-
version: z.literal(1),
|
|
42
|
-
summary: z.string().max(64000),
|
|
43
|
-
items: z.array(agentResultItemSchema).max(32)
|
|
44
|
-
}).strict().refine((value)=>new Set(value.items.map((item)=>item.id)).size === value.items.length, 'Result item IDs must be unique');
|
|
40
|
+
/** Report bytes are transported independently of artifact quotas and business acceptance. */ const AGENT_TASK_REPORT_MAX_BYTES = 4 * 1024 * 1024;
|
|
45
41
|
|
|
46
|
-
export {
|
|
42
|
+
export { AGENT_TASK_REPORT_MAX_BYTES as A, AGENT_TASK_RESULTS_FEATURE as a, agentResultItemSchema as b };
|
package/src/analytics.d.ts
CHANGED
|
@@ -2,3 +2,5 @@
|
|
|
2
2
|
export * from './lib/data/analytics/analytics.schema';
|
|
3
3
|
export * from './lib/data/analytics/analytics-result';
|
|
4
4
|
export * from './lib/data/analytics/resource-analysis.schema';
|
|
5
|
+
export * from './lib/data/analytics/analytics-certification';
|
|
6
|
+
export * from './lib/data/analytics/analysis-evidence';
|
package/src/index.d.ts
CHANGED
|
@@ -30,22 +30,22 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
30
30
|
source: "executor" | "host";
|
|
31
31
|
observedAt: string;
|
|
32
32
|
startedAt?: string | undefined;
|
|
33
|
-
summary?: string | undefined;
|
|
34
|
-
phase?: string | undefined;
|
|
35
33
|
steps?: {
|
|
36
34
|
completed: number;
|
|
37
35
|
total: number;
|
|
38
36
|
} | undefined;
|
|
37
|
+
summary?: string | undefined;
|
|
38
|
+
phase?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
source: "executor" | "host";
|
|
41
41
|
observedAt: string;
|
|
42
42
|
startedAt?: string | undefined;
|
|
43
|
-
summary?: string | undefined;
|
|
44
|
-
phase?: string | undefined;
|
|
45
43
|
steps?: {
|
|
46
44
|
completed: number;
|
|
47
45
|
total: number;
|
|
48
46
|
} | undefined;
|
|
47
|
+
summary?: string | undefined;
|
|
48
|
+
phase?: string | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
version: z.ZodLiteral<1>;
|
|
51
51
|
invocationId: z.ZodString;
|
|
@@ -65,47 +65,47 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
65
65
|
taskExecutionId: string;
|
|
66
66
|
}>>;
|
|
67
67
|
}, "strict", z.ZodTypeAny, {
|
|
68
|
-
version?: 1;
|
|
69
68
|
kind?: "progress";
|
|
69
|
+
version?: 1;
|
|
70
70
|
progress?: {
|
|
71
71
|
source: "executor" | "host";
|
|
72
72
|
observedAt: string;
|
|
73
73
|
startedAt?: string | undefined;
|
|
74
|
-
summary?: string | undefined;
|
|
75
|
-
phase?: string | undefined;
|
|
76
74
|
steps?: {
|
|
77
75
|
completed: number;
|
|
78
76
|
total: number;
|
|
79
77
|
} | undefined;
|
|
78
|
+
summary?: string | undefined;
|
|
79
|
+
phase?: string | undefined;
|
|
80
80
|
};
|
|
81
|
+
revision?: number;
|
|
81
82
|
projectTask?: {
|
|
82
83
|
projectId: string;
|
|
83
84
|
projectTaskId: string;
|
|
84
85
|
taskExecutionId: string;
|
|
85
86
|
};
|
|
86
87
|
invocationId?: string;
|
|
87
|
-
revision?: number;
|
|
88
88
|
}, {
|
|
89
|
-
version?: 1;
|
|
90
89
|
kind?: "progress";
|
|
90
|
+
version?: 1;
|
|
91
91
|
progress?: {
|
|
92
92
|
source: "executor" | "host";
|
|
93
93
|
observedAt: string;
|
|
94
94
|
startedAt?: string | undefined;
|
|
95
|
-
summary?: string | undefined;
|
|
96
|
-
phase?: string | undefined;
|
|
97
95
|
steps?: {
|
|
98
96
|
completed: number;
|
|
99
97
|
total: number;
|
|
100
98
|
} | undefined;
|
|
99
|
+
summary?: string | undefined;
|
|
100
|
+
phase?: string | undefined;
|
|
101
101
|
};
|
|
102
|
+
revision?: number;
|
|
102
103
|
projectTask?: {
|
|
103
104
|
projectId: string;
|
|
104
105
|
projectTaskId: string;
|
|
105
106
|
taskExecutionId: string;
|
|
106
107
|
};
|
|
107
108
|
invocationId?: string;
|
|
108
|
-
revision?: number;
|
|
109
109
|
}>, z.ZodObject<{
|
|
110
110
|
kind: z.ZodLiteral<"result">;
|
|
111
111
|
status: z.ZodEnum<["succeeded", "failed", "cancelled"]>;
|
|
@@ -128,26 +128,26 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
128
128
|
}>>;
|
|
129
129
|
}, "strict", z.ZodTypeAny, {
|
|
130
130
|
status?: "failed" | "succeeded" | "cancelled";
|
|
131
|
-
version?: 1;
|
|
132
131
|
kind?: "result";
|
|
132
|
+
version?: 1;
|
|
133
|
+
revision?: number;
|
|
133
134
|
projectTask?: {
|
|
134
135
|
projectId: string;
|
|
135
136
|
projectTaskId: string;
|
|
136
137
|
taskExecutionId: string;
|
|
137
138
|
};
|
|
138
139
|
invocationId?: string;
|
|
139
|
-
revision?: number;
|
|
140
140
|
}, {
|
|
141
141
|
status?: "failed" | "succeeded" | "cancelled";
|
|
142
|
-
version?: 1;
|
|
143
142
|
kind?: "result";
|
|
143
|
+
version?: 1;
|
|
144
|
+
revision?: number;
|
|
144
145
|
projectTask?: {
|
|
145
146
|
projectId: string;
|
|
146
147
|
projectTaskId: string;
|
|
147
148
|
taskExecutionId: string;
|
|
148
149
|
};
|
|
149
150
|
invocationId?: string;
|
|
150
|
-
revision?: number;
|
|
151
151
|
}>, z.ZodObject<{
|
|
152
152
|
kind: z.ZodLiteral<"input_request">;
|
|
153
153
|
interactionId: z.ZodString;
|
|
@@ -169,26 +169,26 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
169
169
|
taskExecutionId: string;
|
|
170
170
|
}>>;
|
|
171
171
|
}, "strict", z.ZodTypeAny, {
|
|
172
|
-
version?: 1;
|
|
173
172
|
kind?: "input_request";
|
|
173
|
+
version?: 1;
|
|
174
|
+
revision?: number;
|
|
174
175
|
projectTask?: {
|
|
175
176
|
projectId: string;
|
|
176
177
|
projectTaskId: string;
|
|
177
178
|
taskExecutionId: string;
|
|
178
179
|
};
|
|
179
180
|
invocationId?: string;
|
|
180
|
-
revision?: number;
|
|
181
181
|
interactionId?: string;
|
|
182
182
|
}, {
|
|
183
|
-
version?: 1;
|
|
184
183
|
kind?: "input_request";
|
|
184
|
+
version?: 1;
|
|
185
|
+
revision?: number;
|
|
185
186
|
projectTask?: {
|
|
186
187
|
projectId: string;
|
|
187
188
|
projectTaskId: string;
|
|
188
189
|
taskExecutionId: string;
|
|
189
190
|
};
|
|
190
191
|
invocationId?: string;
|
|
191
|
-
revision?: number;
|
|
192
192
|
interactionId?: string;
|
|
193
193
|
}>]>;
|
|
194
194
|
export type AgentRuntimeEvent = z.output<typeof agentRuntimeEventSchema>;
|
|
@@ -229,15 +229,15 @@ export declare const agentRuntimeResultClaimSchema: z.ZodObject<{
|
|
|
229
229
|
threadId: z.ZodString;
|
|
230
230
|
}, "strict", z.ZodTypeAny, {
|
|
231
231
|
type?: "project_agent";
|
|
232
|
+
projectId?: string;
|
|
232
233
|
threadId?: string;
|
|
233
234
|
conversationId?: string;
|
|
234
|
-
projectId?: string;
|
|
235
235
|
agentKey?: "general_agent";
|
|
236
236
|
}, {
|
|
237
237
|
type?: "project_agent";
|
|
238
|
+
projectId?: string;
|
|
238
239
|
threadId?: string;
|
|
239
240
|
conversationId?: string;
|
|
240
|
-
projectId?: string;
|
|
241
241
|
agentKey?: "general_agent";
|
|
242
242
|
}>]>;
|
|
243
243
|
consumer: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -273,9 +273,9 @@ export declare const agentRuntimeResultClaimSchema: z.ZodObject<{
|
|
|
273
273
|
agentKey?: string;
|
|
274
274
|
} | {
|
|
275
275
|
type?: "project_agent";
|
|
276
|
+
projectId?: string;
|
|
276
277
|
threadId?: string;
|
|
277
278
|
conversationId?: string;
|
|
278
|
-
projectId?: string;
|
|
279
279
|
agentKey?: "general_agent";
|
|
280
280
|
};
|
|
281
281
|
consumer?: {
|
|
@@ -297,9 +297,9 @@ export declare const agentRuntimeResultClaimSchema: z.ZodObject<{
|
|
|
297
297
|
agentKey?: string;
|
|
298
298
|
} | {
|
|
299
299
|
type?: "project_agent";
|
|
300
|
+
projectId?: string;
|
|
300
301
|
threadId?: string;
|
|
301
302
|
conversationId?: string;
|
|
302
|
-
projectId?: string;
|
|
303
303
|
agentKey?: "general_agent";
|
|
304
304
|
};
|
|
305
305
|
consumer?: {
|
|
@@ -13,6 +13,8 @@ export interface IAgentMiddlewareContext {
|
|
|
13
13
|
workspaceId?: string;
|
|
14
14
|
projectId?: string;
|
|
15
15
|
conversationId?: string;
|
|
16
|
+
/** Persisted input message for this turn, when available. */
|
|
17
|
+
inputMessageId?: string;
|
|
16
18
|
executionId?: string;
|
|
17
19
|
/** Omitted for legacy Assistant hosts. Project general agents must explicitly use project_agent. */
|
|
18
20
|
callerType?: AgentInvocationScope['callerType'];
|
|
@@ -16,6 +16,8 @@ export interface AgentInvocationApi {
|
|
|
16
16
|
start(request: AgentInvocationRequest): Promise<AgentInvocation>;
|
|
17
17
|
/** Refresh an existing invocation, possibly persisting provider observations. Never relaunches work. */
|
|
18
18
|
inspect(invocationId: string): Promise<AgentInvocation>;
|
|
19
|
+
/** Retry requested file delivery without starting work; no pending delivery returns the current invocation. */
|
|
20
|
+
recoverDelivery?(invocationId: string, input: import('./results').AgentDeliveryRecovery): Promise<AgentInvocation>;
|
|
19
21
|
/** Request supported cancellation; cancelling does not confirm termination. */
|
|
20
22
|
cancel(invocationId: string): Promise<AgentInvocation>;
|
|
21
23
|
/** Answer the current interaction using its exact ID and provider-defined response schema. */
|
|
@@ -31,6 +31,19 @@ export interface CliModelProfile {
|
|
|
31
31
|
requiredCapabilities: ModelFeature[];
|
|
32
32
|
/** Modes this profile explicitly implements; unsupported modes must not be silently ignored. */
|
|
33
33
|
permissionModes?: readonly CliPermissionMode[];
|
|
34
|
+
/** Native authentication stays in the owner Computer; the host never receives credentials. */
|
|
35
|
+
native?: {
|
|
36
|
+
versions: readonly string[];
|
|
37
|
+
homeDirectory: string;
|
|
38
|
+
statusArguments: readonly string[];
|
|
39
|
+
loginArguments: readonly string[];
|
|
40
|
+
logoutArguments: readonly string[];
|
|
41
|
+
testArguments: readonly string[];
|
|
42
|
+
configure(input: {
|
|
43
|
+
home: string;
|
|
44
|
+
permissionMode: CliPermissionMode;
|
|
45
|
+
}): CliModelConfiguration;
|
|
46
|
+
};
|
|
34
47
|
chatBridge?: {
|
|
35
48
|
versions: readonly string[];
|
|
36
49
|
requiredCapabilities: ModelFeature[];
|
|
@@ -58,5 +71,5 @@ export interface CliModelProfiles {
|
|
|
58
71
|
export declare const CliModelProfilesCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<CliModelProfiles>;
|
|
59
72
|
/** Additional execution sources can validate lifecycle without making OS depend on Pro entities. */
|
|
60
73
|
export declare const ShellModelExecutionSourceCapability: import("../../core/runtime-capability").RuntimeCapabilityKey<{
|
|
61
|
-
assertCurrent(context: import("@xpert-ai/contracts").
|
|
74
|
+
assertCurrent(context: import("@xpert-ai/contracts").ExecutionSourceContext, preparing?: boolean): Promise<void>;
|
|
62
75
|
}>;
|