@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
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const mcpTaskStartResultSchema: z.ZodObject<{
|
|
3
|
+
resultType: z.ZodLiteral<"task">;
|
|
4
|
+
taskId: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<["working", "input_required", "completed", "failed", "cancelled"]>;
|
|
6
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
7
|
+
createdAt: z.ZodString;
|
|
8
|
+
lastUpdatedAt: z.ZodString;
|
|
9
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
content: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
13
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14
|
+
resultType: z.ZodLiteral<"task">;
|
|
15
|
+
taskId: z.ZodString;
|
|
16
|
+
status: z.ZodEnum<["working", "input_required", "completed", "failed", "cancelled"]>;
|
|
17
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
18
|
+
createdAt: z.ZodString;
|
|
19
|
+
lastUpdatedAt: z.ZodString;
|
|
20
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
content: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
24
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
25
|
+
resultType: z.ZodLiteral<"task">;
|
|
26
|
+
taskId: z.ZodString;
|
|
27
|
+
status: z.ZodEnum<["working", "input_required", "completed", "failed", "cancelled"]>;
|
|
28
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
lastUpdatedAt: z.ZodString;
|
|
31
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
content: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
35
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
36
|
+
export declare const mcpTaskResultSchema: z.ZodObject<{
|
|
37
|
+
resultType: z.ZodLiteral<"complete">;
|
|
38
|
+
taskId: z.ZodString;
|
|
39
|
+
status: z.ZodEnum<["working", "input_required", "completed", "failed", "cancelled"]>;
|
|
40
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
lastUpdatedAt: z.ZodString;
|
|
43
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
+
inputRequests: z.ZodOptional<z.ZodUnknown>;
|
|
47
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
48
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
49
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
50
|
+
resultType: z.ZodLiteral<"complete">;
|
|
51
|
+
taskId: z.ZodString;
|
|
52
|
+
status: z.ZodEnum<["working", "input_required", "completed", "failed", "cancelled"]>;
|
|
53
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
54
|
+
createdAt: z.ZodString;
|
|
55
|
+
lastUpdatedAt: z.ZodString;
|
|
56
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
inputRequests: z.ZodOptional<z.ZodUnknown>;
|
|
60
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
61
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
62
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
63
|
+
resultType: z.ZodLiteral<"complete">;
|
|
64
|
+
taskId: z.ZodString;
|
|
65
|
+
status: z.ZodEnum<["working", "input_required", "completed", "failed", "cancelled"]>;
|
|
66
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
67
|
+
createdAt: z.ZodString;
|
|
68
|
+
lastUpdatedAt: z.ZodString;
|
|
69
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
|
+
inputRequests: z.ZodOptional<z.ZodUnknown>;
|
|
73
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
74
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
75
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
76
|
+
export declare const mcpTaskAcknowledgementSchema: z.ZodObject<{
|
|
77
|
+
resultType: z.ZodLiteral<"complete">;
|
|
78
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
79
|
+
resultType: z.ZodLiteral<"complete">;
|
|
80
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
81
|
+
resultType: z.ZodLiteral<"complete">;
|
|
82
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
83
|
+
export type McpConsumerTaskStart = z.infer<typeof mcpTaskStartResultSchema>;
|
|
84
|
+
export type McpConsumerTask = z.infer<typeof mcpTaskResultSchema>;
|
|
85
|
+
export type McpConsumerTaskAcknowledgement = z.infer<typeof mcpTaskAcknowledgementSchema>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
/** Credential-free tuning snapshot. Output aliases are canonicalized to max_tokens at issuance. */
|
|
3
|
+
export declare const modelExecutionParametersSchema: z.ZodObject<{
|
|
4
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
top_k: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
repetition_penalty: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
enable_thinking: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
thinking_budget: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max"]>>;
|
|
15
|
+
thinking: z.ZodOptional<z.ZodEnum<["enabled", "disabled", "adaptive"]>>;
|
|
16
|
+
budget_tokens: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
max_tokens?: number;
|
|
19
|
+
temperature?: number;
|
|
20
|
+
top_p?: number;
|
|
21
|
+
top_k?: number;
|
|
22
|
+
presence_penalty?: number;
|
|
23
|
+
frequency_penalty?: number;
|
|
24
|
+
repetition_penalty?: number;
|
|
25
|
+
seed?: number;
|
|
26
|
+
enable_thinking?: boolean;
|
|
27
|
+
thinking_budget?: number;
|
|
28
|
+
reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
29
|
+
thinking?: "disabled" | "enabled" | "adaptive";
|
|
30
|
+
budget_tokens?: number;
|
|
31
|
+
}, {
|
|
32
|
+
max_tokens?: number;
|
|
33
|
+
temperature?: number;
|
|
34
|
+
top_p?: number;
|
|
35
|
+
top_k?: number;
|
|
36
|
+
presence_penalty?: number;
|
|
37
|
+
frequency_penalty?: number;
|
|
38
|
+
repetition_penalty?: number;
|
|
39
|
+
seed?: number;
|
|
40
|
+
enable_thinking?: boolean;
|
|
41
|
+
thinking_budget?: number;
|
|
42
|
+
reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
43
|
+
thinking?: "disabled" | "enabled" | "adaptive";
|
|
44
|
+
budget_tokens?: number;
|
|
45
|
+
}>;
|
|
46
|
+
export type ModelExecutionParameters = z.output<typeof modelExecutionParametersSchema>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import type { AiModelTypeEnum } from '../agent';
|
|
3
3
|
import type { ModelFeature } from './ai-model.model';
|
|
4
|
+
import type { ModelExecutionParameters } from './model-execution-parameters.model';
|
|
4
5
|
/** Entry point and execution location are independent dimensions. */
|
|
5
6
|
export type ModelExecutionEntry = 'cli' | 'agent_runtime' | 'shell';
|
|
6
7
|
export type ModelExecutionProtocol = 'openai_chat' | 'openai_responses' | 'anthropic_messages' | 'openai_responses_chat' | 'anthropic_messages_chat';
|
|
@@ -43,6 +44,8 @@ export interface ModelExecutionModel {
|
|
|
43
44
|
model: string;
|
|
44
45
|
modelType: AiModelTypeEnum.LLM;
|
|
45
46
|
capabilities: ModelFeature[];
|
|
47
|
+
/** Validated non-secret Assistant parameters frozen at grant issuance; absent on legacy grants. */
|
|
48
|
+
parameters?: ModelExecutionParameters;
|
|
46
49
|
/** Provider catalog context window; a CLI hint, not an execution policy limit. */
|
|
47
50
|
contextWindow?: number;
|
|
48
51
|
/** Provider catalog maximum output; a CLI hint, never an additional execution cap. */
|