@xpert-ai/contracts 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/context-event.cjs.default.js +1 -0
- package/context-event.cjs.js +26 -0
- package/context-event.cjs.mjs +2 -0
- package/context-event.d.ts +1 -0
- package/context-event.esm.js +24 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +670 -319
- package/index.cjs.mjs +2 -0
- package/index.esm.js +637 -318
- package/package.json +18 -2
- package/src/agent-event.model.d.ts +88 -0
- package/src/agent-event.schema.d.ts +120 -0
- package/src/agent-plugin.d.ts +4 -29
- package/src/ai/agent-output-delivery.model.d.ts +22 -1
- package/src/ai/agent-runtime.model.d.ts +4 -4
- package/src/ai/assistant-capability.model.d.ts +0 -1
- package/src/ai/assistant-template-manifest.model.d.ts +316 -352
- package/src/ai/assistant-template-overview.model.d.ts +0 -4
- package/src/ai/assistant-template-setup.model.d.ts +8 -8
- package/src/ai/assistant-template.model.d.ts +0 -4
- package/src/ai/bosi.model.d.ts +1 -1
- package/src/ai/chat-activity.model.d.ts +8 -0
- package/src/ai/chat-message.model.d.ts +0 -11
- package/src/ai/chat.model.d.ts +1 -0
- package/src/ai/cli-execution.model.d.ts +88 -0
- package/src/ai/conversation-trail.model.d.ts +274 -274
- package/src/ai/copilot-store.model.d.ts +0 -13
- package/src/ai/evolution/entities.d.ts +164 -0
- package/src/ai/evolution/evaluation.d.ts +7 -0
- package/src/ai/evolution/execution-review.d.ts +68 -0
- package/src/ai/evolution/index.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -0
- package/src/ai/evolution/target.d.ts +5 -0
- package/src/ai/execution-activity.model.d.ts +362 -362
- package/src/ai/execution-control-evidence.schema.d.ts +22 -22
- package/src/ai/execution-observability.model.d.ts +196 -196
- package/src/ai/execution-source.model.d.ts +45 -0
- package/src/ai/index.d.ts +4 -0
- package/src/ai/mcp-execution-control.schema.d.ts +2 -2
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/model-execution.model.d.ts +7 -108
- package/src/ai/model-replacement.model.d.ts +18 -18
- package/src/ai/project-configuration-view.model.d.ts +78 -0
- package/src/ai/project-pipeline/analytics.d.ts +192 -192
- package/src/ai/project-pipeline/budget.schema.d.ts +38 -0
- package/src/ai/project-pipeline/commands.schema.d.ts +543 -500
- package/src/ai/project-pipeline/configuration-form.d.ts +1980 -1836
- package/src/ai/project-pipeline/configuration.schema.d.ts +450 -413
- package/src/ai/project-pipeline/contribution.schema.d.ts +688 -639
- package/src/ai/project-pipeline/definition.schema.d.ts +400 -356
- package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
- package/src/ai/project-pipeline/graph.model.d.ts +5 -0
- package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -6
- package/src/ai/project-pipeline/node.schema.d.ts +57 -44
- package/src/ai/project-pipeline/operation.schema.d.ts +338 -338
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +152 -0
- package/src/ai/project-pipeline/portfolio.schema.d.ts +468 -468
- package/src/ai/project-pipeline/primitives.schema.d.ts +6 -6
- package/src/ai/project-pipeline/projection.schema.d.ts +609 -572
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +112 -112
- package/src/ai/project-pipeline/queue-statistics.d.ts +10 -10
- package/src/ai/project-pipeline/runtime.schema.d.ts +62 -62
- package/src/ai/project-pipeline/statistics.d.ts +100 -100
- package/src/ai/project-task-runtime.model.d.ts +969 -242
- package/src/ai/project-type-configuration.model.d.ts +48 -0
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +18 -18
- package/src/ai/template-lifecycle.model.d.ts +6 -6
- package/src/ai/thread-control-view.schema.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +4 -0
- package/src/ai/xpert-project-type.model.d.ts +3 -0
- package/src/ai/xpert-project.model.d.ts +4 -1
- package/src/ai/xpert-task.model.d.ts +16 -0
- package/src/ai/xpert.model.d.ts +0 -34
- package/src/ai/xpert.utils.d.ts +0 -1
- package/src/analytics/analysis-evidence.model.d.ts +29 -0
- package/src/analytics/analytics-certification.model.d.ts +17 -0
- package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
- package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
- package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
- package/src/analytics/index.d.ts +7 -0
- package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
- package/src/app-platform.d.ts +16 -16
- package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
- package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
- package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
- package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
- package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +2 -2
- package/src/artifacts/index.d.ts +5 -0
- package/src/collaboration.model.d.ts +31 -11
- package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
- package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +6 -3
- package/src/content/content-transfer.model.d.ts +21 -0
- package/src/content/index.d.ts +4 -0
- package/src/execution-control-admission.schema.d.ts +2 -2
- package/src/index.d.ts +5 -14
- package/src/plugin-management.d.ts +13 -0
- package/src/plugin.d.ts +2 -0
- package/src/user-notification.schema.d.ts +75 -28
- package/src/view-extension/client-commands.d.ts +24 -0
- package/src/view-extension/context-event.d.ts +66 -0
- package/src/view-extension/index.d.ts +1 -0
- /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
- /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Execution ownership and location are independent of model access and billing. */
|
|
2
|
+
export type ExecutionEnvironment = {
|
|
3
|
+
type: 'computer' | 'sandbox';
|
|
4
|
+
environmentId: string;
|
|
5
|
+
instanceId: string;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'remote';
|
|
8
|
+
bindingId: string;
|
|
9
|
+
revision: string;
|
|
10
|
+
};
|
|
11
|
+
export type ExecutionSource = {
|
|
12
|
+
type: 'cli_session';
|
|
13
|
+
cliSessionId: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'agent_invocation';
|
|
16
|
+
invocationId: string;
|
|
17
|
+
bindingId: string;
|
|
18
|
+
bindingRevision: string;
|
|
19
|
+
}
|
|
20
|
+
/** One CLI child, not the containing shell; IDs and revision are resolved by the trusted host. */
|
|
21
|
+
| {
|
|
22
|
+
type: 'shell_execution';
|
|
23
|
+
executionId: string;
|
|
24
|
+
shellExecutionId: string;
|
|
25
|
+
parentExecutionId: string;
|
|
26
|
+
generation: number;
|
|
27
|
+
profileRevision: string;
|
|
28
|
+
};
|
|
29
|
+
export interface ExecutionSourceContext {
|
|
30
|
+
tenantId: string;
|
|
31
|
+
runtimeOrganizationId: string;
|
|
32
|
+
actorUserId: string;
|
|
33
|
+
xpertId: string;
|
|
34
|
+
/** Display snapshot; historical grants may only have the immutable ID. */
|
|
35
|
+
assistantName?: string;
|
|
36
|
+
assistantVersion: string;
|
|
37
|
+
conversationId: string;
|
|
38
|
+
threadId?: string;
|
|
39
|
+
source: ExecutionSource;
|
|
40
|
+
environment: ExecutionEnvironment;
|
|
41
|
+
tool: {
|
|
42
|
+
id: string;
|
|
43
|
+
version: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
package/src/ai/index.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ export * from './xpert-workflow-task.prompt';
|
|
|
76
76
|
export * from './xpert-tool-mcp.model';
|
|
77
77
|
export * from './xpert-project.model';
|
|
78
78
|
export * from './xpert-project-type.model';
|
|
79
|
+
export * from './project-type-configuration.model';
|
|
80
|
+
export * from './project-configuration-view.model';
|
|
79
81
|
export * from './environment.model';
|
|
80
82
|
export * from './knowledgebase-task.model';
|
|
81
83
|
export * from './knowledge-pipeline';
|
|
@@ -106,6 +108,8 @@ export * from './clawxpert-conversation-scope.model';
|
|
|
106
108
|
export * from './knowledge-keyword-analyzer.model';
|
|
107
109
|
export * from './assistant-configuration.model';
|
|
108
110
|
export * from './assistant-trigger.model';
|
|
111
|
+
export * from './execution-source.model';
|
|
112
|
+
export * from './cli-execution.model';
|
|
109
113
|
export * from './model-execution.model';
|
|
110
114
|
export * from './model-execution-parameters.model';
|
|
111
115
|
export * from './computer-codex-isolation.model';
|
|
@@ -72,9 +72,9 @@ export declare const mcpExecutionReceiptSchema: z.ZodObject<{
|
|
|
72
72
|
handlerExited: z.ZodBoolean;
|
|
73
73
|
descendantsSettled: z.ZodBoolean;
|
|
74
74
|
}, "strict", z.ZodTypeAny, {
|
|
75
|
+
revision?: number;
|
|
75
76
|
version?: 1;
|
|
76
77
|
generation?: string;
|
|
77
|
-
revision?: number;
|
|
78
78
|
taskId?: string;
|
|
79
79
|
operationId?: string;
|
|
80
80
|
state?: "unknown" | "pending" | "settled";
|
|
@@ -83,9 +83,9 @@ export declare const mcpExecutionReceiptSchema: z.ZodObject<{
|
|
|
83
83
|
handlerExited?: boolean;
|
|
84
84
|
descendantsSettled?: boolean;
|
|
85
85
|
}, {
|
|
86
|
+
revision?: number;
|
|
86
87
|
version?: 1;
|
|
87
88
|
generation?: string;
|
|
88
|
-
revision?: number;
|
|
89
89
|
taskId?: string;
|
|
90
90
|
operationId?: string;
|
|
91
91
|
state?: "unknown" | "pending" | "settled";
|
|
@@ -5,6 +5,7 @@ import { JsonSchemaObjectType } from './types';
|
|
|
5
5
|
import type { SkillSlashCommand } from './skill.model';
|
|
6
6
|
export declare const LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
7
7
|
export declare const CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
8
|
+
export declare const XPERT_FILE_MEMORY_MIDDLEWARE_NAME = "XpertFileMemoryMiddleware";
|
|
8
9
|
export declare const SKILLS_MIDDLEWARE_NAME = "skillsMiddleware";
|
|
9
10
|
export interface IWFNMiddleware extends IWorkflowNode {
|
|
10
11
|
type: WorkflowNodeTypeEnum.MIDDLEWARE;
|
|
@@ -2,36 +2,12 @@ import { z } from 'zod/v3';
|
|
|
2
2
|
import type { AiModelTypeEnum } from '../agent';
|
|
3
3
|
import type { ModelFeature } from './ai-model.model';
|
|
4
4
|
import type { ModelExecutionParameters } from './model-execution-parameters.model';
|
|
5
|
+
import type { CliPermissionMode } from './cli-execution.model';
|
|
6
|
+
import type { ExecutionSourceContext, ExecutionSource as ModelExecutionSource, ExecutionEnvironment as ModelExecutionEnvironment } from './execution-source.model';
|
|
7
|
+
export type { ExecutionSource as ModelExecutionSource, ExecutionEnvironment as ModelExecutionEnvironment } from './execution-source.model';
|
|
5
8
|
/** Entry point and execution location are independent dimensions. */
|
|
6
9
|
export type ModelExecutionEntry = 'cli' | 'agent_runtime' | 'shell';
|
|
7
10
|
export type ModelExecutionProtocol = 'openai_chat' | 'openai_responses' | 'anthropic_messages' | 'openai_responses_chat' | 'anthropic_messages_chat';
|
|
8
|
-
export type ModelExecutionEnvironment = {
|
|
9
|
-
type: 'computer' | 'sandbox';
|
|
10
|
-
environmentId: string;
|
|
11
|
-
instanceId: string;
|
|
12
|
-
} | {
|
|
13
|
-
type: 'remote';
|
|
14
|
-
bindingId: string;
|
|
15
|
-
revision: string;
|
|
16
|
-
};
|
|
17
|
-
export type ModelExecutionSource = {
|
|
18
|
-
type: 'cli_session';
|
|
19
|
-
cliSessionId: string;
|
|
20
|
-
} | {
|
|
21
|
-
type: 'agent_invocation';
|
|
22
|
-
invocationId: string;
|
|
23
|
-
bindingId: string;
|
|
24
|
-
bindingRevision: string;
|
|
25
|
-
}
|
|
26
|
-
/** One CLI child, not the containing shell; IDs and revision are resolved by the trusted host. */
|
|
27
|
-
| {
|
|
28
|
-
type: 'shell_execution';
|
|
29
|
-
executionId: string;
|
|
30
|
-
shellExecutionId: string;
|
|
31
|
-
parentExecutionId: string;
|
|
32
|
-
generation: number;
|
|
33
|
-
profileRevision: string;
|
|
34
|
-
};
|
|
35
11
|
/** Exhaustive attribution shared by queries, ledger export and UI. */
|
|
36
12
|
export declare function modelExecutionEntry(source: ModelExecutionSource): ModelExecutionEntry;
|
|
37
13
|
export declare function modelExecutionSourceId(source: ModelExecutionSource): string;
|
|
@@ -52,23 +28,9 @@ export interface ModelExecutionModel {
|
|
|
52
28
|
outputTokenLimit?: number;
|
|
53
29
|
protocols: ModelExecutionProtocol[];
|
|
54
30
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
runtimeOrganizationId: string;
|
|
58
|
-
actorUserId: string;
|
|
31
|
+
/** Platform model calls add billing to the shared execution identity. */
|
|
32
|
+
export interface ModelExecutionContext extends ExecutionSourceContext {
|
|
59
33
|
billableUserId: string;
|
|
60
|
-
xpertId: string;
|
|
61
|
-
/** Display snapshot; historical grants may only have the immutable ID. */
|
|
62
|
-
assistantName?: string;
|
|
63
|
-
assistantVersion: string;
|
|
64
|
-
conversationId: string;
|
|
65
|
-
threadId?: string;
|
|
66
|
-
source: ModelExecutionSource;
|
|
67
|
-
environment: ModelExecutionEnvironment;
|
|
68
|
-
tool: {
|
|
69
|
-
id: string;
|
|
70
|
-
version: string;
|
|
71
|
-
};
|
|
72
34
|
}
|
|
73
35
|
/** Money limits require proven provider-specific bounds; v1 admits token budgets only. */
|
|
74
36
|
export interface ModelExecutionLimits {
|
|
@@ -82,8 +44,6 @@ export interface ModelExecutionLimits {
|
|
|
82
44
|
leaseSeconds: number;
|
|
83
45
|
maxDurationSeconds: number;
|
|
84
46
|
}
|
|
85
|
-
/** CLI tool approvals inside the already authorized Computer environment. */
|
|
86
|
-
export type CliPermissionMode = 'allow' | 'restricted';
|
|
87
47
|
/** Resolved execution policy; default enablement does not bypass model, tool or budget checks. */
|
|
88
48
|
export type ModelExecutionPolicy = {
|
|
89
49
|
/** @deprecated Compatibility field, always true; no longer a tenant opt-in switch. */
|
|
@@ -94,6 +54,8 @@ export type ModelExecutionPolicy = {
|
|
|
94
54
|
/** Explicit, limited Chat Completions translations; never advertised as native support. */
|
|
95
55
|
chatBridgeProtocols?: Array<'openai_responses' | 'anthropic_messages'>;
|
|
96
56
|
limits: ModelExecutionLimits;
|
|
57
|
+
/** Default for new executions without a host override; limits.maxDurationSeconds remains the ceiling. */
|
|
58
|
+
defaultDurationSeconds?: number;
|
|
97
59
|
/** Background Coding and Computer Codex launches; evidence-only reviews remain restricted. */
|
|
98
60
|
cliPermissions?: {
|
|
99
61
|
defaultMode: CliPermissionMode;
|
|
@@ -106,70 +68,7 @@ export type ModelExecutionPolicy = {
|
|
|
106
68
|
executable: string;
|
|
107
69
|
}>;
|
|
108
70
|
};
|
|
109
|
-
export type CliSessionStatus = 'starting' | 'running' | 'stopping' | 'exited' | 'unknown';
|
|
110
|
-
/** Guest executable/version probe result; unknown means the installation could not be confirmed. */
|
|
111
|
-
export type ComputerCliInstallation = 'installed' | 'missing' | 'version_mismatch' | 'unknown';
|
|
112
71
|
export declare const MODEL_EXECUTION_POLICY_SETTING = "modelExecutionPolicy";
|
|
113
|
-
/** Authorized Computer tool inventory; installation, model support and managed execution are independent. */
|
|
114
|
-
export interface ComputerCliToolsView {
|
|
115
|
-
/** A conversation is required to resolve the Assistant's available models. */
|
|
116
|
-
state: 'ready' | 'conversation_required';
|
|
117
|
-
tools: Array<{
|
|
118
|
-
/** Policy-approved executable identifier and pinned version. */
|
|
119
|
-
id: string;
|
|
120
|
-
version: string;
|
|
121
|
-
/** Installed at the required version and compatible with the selected model. */
|
|
122
|
-
available: boolean;
|
|
123
|
-
/** Probe of the current container; unknown must not be treated as installed. */
|
|
124
|
-
installation: ComputerCliInstallation;
|
|
125
|
-
/** The Assistant's selected model supports this tool's approved protocol. */
|
|
126
|
-
modelCompatible: boolean;
|
|
127
|
-
/** A registered background runtime supports this tool, version and Computer environment. */
|
|
128
|
-
managed: boolean;
|
|
129
|
-
}>;
|
|
130
|
-
/** Current launch defaults; existing sessions retain their own issuance snapshot. */
|
|
131
|
-
launch?: {
|
|
132
|
-
assistant: string;
|
|
133
|
-
model: string;
|
|
134
|
-
/** Server-resolved path inside the mounted Computer workspace. */
|
|
135
|
-
workingDirectory: string;
|
|
136
|
-
/** Maximum token budget for a newly issued session. */
|
|
137
|
-
tokenBudget?: number;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
/** Owned interactive CLI session summary; excludes execution credentials and Docker connection details. */
|
|
141
|
-
export interface CliSessionView {
|
|
142
|
-
/** Session identity, distinct from a model call or desktop control ticket. */
|
|
143
|
-
id: string;
|
|
144
|
-
/** Immutable conversation and Assistant bindings. */
|
|
145
|
-
conversationId: string;
|
|
146
|
-
xpertId: string;
|
|
147
|
-
/** Policy-approved tool/version recorded at creation. */
|
|
148
|
-
tool: {
|
|
149
|
-
id: string;
|
|
150
|
-
version: string;
|
|
151
|
-
};
|
|
152
|
-
/** Host-observed lifecycle; unknown never implies completion or permission to relaunch. */
|
|
153
|
-
status: CliSessionStatus;
|
|
154
|
-
/** Platform model identifier captured at issuance; empty if no grant was issued. */
|
|
155
|
-
defaultModelId: string;
|
|
156
|
-
/** Original Assistant display snapshot; historical records may fall back to its ID. */
|
|
157
|
-
assistantName: string;
|
|
158
|
-
/** Original default model name; empty if no grant was issued. */
|
|
159
|
-
model: string;
|
|
160
|
-
/** Server-resolved session workspace path inside Computer. */
|
|
161
|
-
workingDirectory: string;
|
|
162
|
-
/** Explicit session budget; omitted when none is configured. */
|
|
163
|
-
tokenBudget?: number;
|
|
164
|
-
/** Recorded actual tokens across this grant's attempts, excluding estimates. */
|
|
165
|
-
usedTokens: number;
|
|
166
|
-
/** Tokens still reserved for attempts whose usage is not confirmed. */
|
|
167
|
-
reservedTokens: number;
|
|
168
|
-
/** ISO absolute execution deadline, not the renewable lease expiry; creation time without a grant. */
|
|
169
|
-
expiresAt: string;
|
|
170
|
-
/** Supervisor exit code when observed; null or absent if not known. */
|
|
171
|
-
exitCode?: number | null;
|
|
172
|
-
}
|
|
173
72
|
/** Attribution snapshot persisted with execution usage; contains no authorization credentials. */
|
|
174
73
|
export interface ModelExecutionUsageContext {
|
|
175
74
|
/** CLI or managed runtime entry point, independent of the execution environment. */
|
|
@@ -45,12 +45,12 @@ export declare const modelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
45
45
|
policy: z.ZodEnum<["reset", "compatible"]>;
|
|
46
46
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
47
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
workspaceId?: string;
|
|
48
49
|
source?: {
|
|
49
50
|
copilotId?: string;
|
|
50
51
|
modelType?: AiModelTypeEnum.LLM;
|
|
51
52
|
model?: string;
|
|
52
53
|
};
|
|
53
|
-
workspaceId?: string;
|
|
54
54
|
target?: {
|
|
55
55
|
copilotId?: string;
|
|
56
56
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -58,12 +58,12 @@ export declare const modelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
58
58
|
};
|
|
59
59
|
policy?: "reset" | "compatible";
|
|
60
60
|
}, {
|
|
61
|
+
workspaceId?: string;
|
|
61
62
|
source?: {
|
|
62
63
|
copilotId?: string;
|
|
63
64
|
modelType?: AiModelTypeEnum.LLM;
|
|
64
65
|
model?: string;
|
|
65
66
|
};
|
|
66
|
-
workspaceId?: string;
|
|
67
67
|
target?: {
|
|
68
68
|
copilotId?: string;
|
|
69
69
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -71,12 +71,12 @@ export declare const modelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
71
71
|
};
|
|
72
72
|
policy?: "reset" | "compatible";
|
|
73
73
|
}>, {
|
|
74
|
+
workspaceId?: string;
|
|
74
75
|
source?: {
|
|
75
76
|
copilotId?: string;
|
|
76
77
|
modelType?: AiModelTypeEnum.LLM;
|
|
77
78
|
model?: string;
|
|
78
79
|
};
|
|
79
|
-
workspaceId?: string;
|
|
80
80
|
target?: {
|
|
81
81
|
copilotId?: string;
|
|
82
82
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -84,12 +84,12 @@ export declare const modelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
84
84
|
};
|
|
85
85
|
policy?: "reset" | "compatible";
|
|
86
86
|
}, {
|
|
87
|
+
workspaceId?: string;
|
|
87
88
|
source?: {
|
|
88
89
|
copilotId?: string;
|
|
89
90
|
modelType?: AiModelTypeEnum.LLM;
|
|
90
91
|
model?: string;
|
|
91
92
|
};
|
|
92
|
-
workspaceId?: string;
|
|
93
93
|
target?: {
|
|
94
94
|
copilotId?: string;
|
|
95
95
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -131,12 +131,12 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
131
131
|
policy: z.ZodEnum<["reset", "compatible"]>;
|
|
132
132
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
133
133
|
}, "strict", z.ZodTypeAny, {
|
|
134
|
+
workspaceId?: string;
|
|
134
135
|
source?: {
|
|
135
136
|
copilotId?: string;
|
|
136
137
|
modelType?: AiModelTypeEnum.LLM;
|
|
137
138
|
model?: string;
|
|
138
139
|
};
|
|
139
|
-
workspaceId?: string;
|
|
140
140
|
target?: {
|
|
141
141
|
copilotId?: string;
|
|
142
142
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -144,12 +144,12 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
144
144
|
};
|
|
145
145
|
policy?: "reset" | "compatible";
|
|
146
146
|
}, {
|
|
147
|
+
workspaceId?: string;
|
|
147
148
|
source?: {
|
|
148
149
|
copilotId?: string;
|
|
149
150
|
modelType?: AiModelTypeEnum.LLM;
|
|
150
151
|
model?: string;
|
|
151
152
|
};
|
|
152
|
-
workspaceId?: string;
|
|
153
153
|
target?: {
|
|
154
154
|
copilotId?: string;
|
|
155
155
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -157,12 +157,12 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
157
157
|
};
|
|
158
158
|
policy?: "reset" | "compatible";
|
|
159
159
|
}>, {
|
|
160
|
+
workspaceId?: string;
|
|
160
161
|
source?: {
|
|
161
162
|
copilotId?: string;
|
|
162
163
|
modelType?: AiModelTypeEnum.LLM;
|
|
163
164
|
model?: string;
|
|
164
165
|
};
|
|
165
|
-
workspaceId?: string;
|
|
166
166
|
target?: {
|
|
167
167
|
copilotId?: string;
|
|
168
168
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -170,12 +170,12 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
170
170
|
};
|
|
171
171
|
policy?: "reset" | "compatible";
|
|
172
172
|
}, {
|
|
173
|
+
workspaceId?: string;
|
|
173
174
|
source?: {
|
|
174
175
|
copilotId?: string;
|
|
175
176
|
modelType?: AiModelTypeEnum.LLM;
|
|
176
177
|
model?: string;
|
|
177
178
|
};
|
|
178
|
-
workspaceId?: string;
|
|
179
179
|
target?: {
|
|
180
180
|
copilotId?: string;
|
|
181
181
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -187,20 +187,20 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
187
187
|
id: z.ZodString;
|
|
188
188
|
revision: z.ZodString;
|
|
189
189
|
}, "strict", z.ZodTypeAny, {
|
|
190
|
-
id?: string;
|
|
191
190
|
revision?: string;
|
|
192
|
-
}, {
|
|
193
191
|
id?: string;
|
|
192
|
+
}, {
|
|
194
193
|
revision?: string;
|
|
194
|
+
id?: string;
|
|
195
195
|
}>, "many">;
|
|
196
196
|
}, "strict", z.ZodTypeAny, {
|
|
197
197
|
input?: {
|
|
198
|
+
workspaceId?: string;
|
|
198
199
|
source?: {
|
|
199
200
|
copilotId?: string;
|
|
200
201
|
modelType?: AiModelTypeEnum.LLM;
|
|
201
202
|
model?: string;
|
|
202
203
|
};
|
|
203
|
-
workspaceId?: string;
|
|
204
204
|
target?: {
|
|
205
205
|
copilotId?: string;
|
|
206
206
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -209,17 +209,17 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
209
209
|
policy?: "reset" | "compatible";
|
|
210
210
|
};
|
|
211
211
|
selections?: {
|
|
212
|
-
id?: string;
|
|
213
212
|
revision?: string;
|
|
213
|
+
id?: string;
|
|
214
214
|
}[];
|
|
215
215
|
}, {
|
|
216
216
|
input?: {
|
|
217
|
+
workspaceId?: string;
|
|
217
218
|
source?: {
|
|
218
219
|
copilotId?: string;
|
|
219
220
|
modelType?: AiModelTypeEnum.LLM;
|
|
220
221
|
model?: string;
|
|
221
222
|
};
|
|
222
|
-
workspaceId?: string;
|
|
223
223
|
target?: {
|
|
224
224
|
copilotId?: string;
|
|
225
225
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -228,17 +228,17 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
228
228
|
policy?: "reset" | "compatible";
|
|
229
229
|
};
|
|
230
230
|
selections?: {
|
|
231
|
-
id?: string;
|
|
232
231
|
revision?: string;
|
|
232
|
+
id?: string;
|
|
233
233
|
}[];
|
|
234
234
|
}>, {
|
|
235
235
|
input?: {
|
|
236
|
+
workspaceId?: string;
|
|
236
237
|
source?: {
|
|
237
238
|
copilotId?: string;
|
|
238
239
|
modelType?: AiModelTypeEnum.LLM;
|
|
239
240
|
model?: string;
|
|
240
241
|
};
|
|
241
|
-
workspaceId?: string;
|
|
242
242
|
target?: {
|
|
243
243
|
copilotId?: string;
|
|
244
244
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -247,17 +247,17 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
policy?: "reset" | "compatible";
|
|
248
248
|
};
|
|
249
249
|
selections?: {
|
|
250
|
-
id?: string;
|
|
251
250
|
revision?: string;
|
|
251
|
+
id?: string;
|
|
252
252
|
}[];
|
|
253
253
|
}, {
|
|
254
254
|
input?: {
|
|
255
|
+
workspaceId?: string;
|
|
255
256
|
source?: {
|
|
256
257
|
copilotId?: string;
|
|
257
258
|
modelType?: AiModelTypeEnum.LLM;
|
|
258
259
|
model?: string;
|
|
259
260
|
};
|
|
260
|
-
workspaceId?: string;
|
|
261
261
|
target?: {
|
|
262
262
|
copilotId?: string;
|
|
263
263
|
modelType?: AiModelTypeEnum.LLM;
|
|
@@ -266,8 +266,8 @@ export declare const executeModelReplacementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
266
266
|
policy?: "reset" | "compatible";
|
|
267
267
|
};
|
|
268
268
|
selections?: {
|
|
269
|
-
id?: string;
|
|
270
269
|
revision?: string;
|
|
270
|
+
id?: string;
|
|
271
271
|
}[];
|
|
272
272
|
}>;
|
|
273
273
|
export type ExecuteModelReplacementInput = z.output<typeof executeModelReplacementSchema>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
export declare const PROJECT_CONFIGURATION_PROVIDER = "platform.project-configuration";
|
|
3
|
+
export declare const PROJECT_CONFIGURATION_VIEW = "platform.project-configuration__configuration";
|
|
4
|
+
export declare const projectConfigurationSectionSchema: z.ZodEnum<["type", "experts", "members", "skills", "connectors", "automations", "delete"]>;
|
|
5
|
+
export type ProjectConfigurationSection = z.infer<typeof projectConfigurationSectionSchema>;
|
|
6
|
+
export declare const PROJECT_CONFIGURATION_ACTION_HANDLERS: {
|
|
7
|
+
readonly type: "editors";
|
|
8
|
+
readonly 'type-save': "editors";
|
|
9
|
+
readonly experts: "editors";
|
|
10
|
+
readonly 'expert-add': "editors";
|
|
11
|
+
readonly 'expert-remove': "editors";
|
|
12
|
+
readonly members: "editors";
|
|
13
|
+
readonly 'member-add': "editors";
|
|
14
|
+
readonly 'member-role': "editors";
|
|
15
|
+
readonly 'member-remove': "editors";
|
|
16
|
+
readonly 'member-owner': "editors";
|
|
17
|
+
readonly 'member-invite': "editors";
|
|
18
|
+
readonly 'invitation-revoke': "editors";
|
|
19
|
+
readonly 'skill-catalog': "editors";
|
|
20
|
+
readonly 'skill-install': "editors";
|
|
21
|
+
readonly 'skill-toggle': "editors";
|
|
22
|
+
readonly 'skill-remove': "editors";
|
|
23
|
+
readonly connectors: "connectors";
|
|
24
|
+
readonly 'connector-add': "connectors";
|
|
25
|
+
readonly 'connector-remove': "connectors";
|
|
26
|
+
readonly 'connector-connect': "connectors";
|
|
27
|
+
readonly 'connector-status': "connectors";
|
|
28
|
+
readonly 'connector-cancel': "connectors";
|
|
29
|
+
readonly automations: "automations";
|
|
30
|
+
readonly 'automation-save': "automations";
|
|
31
|
+
readonly 'automation-options': "automations";
|
|
32
|
+
readonly 'automation-pause': "automations";
|
|
33
|
+
readonly 'automation-resume': "automations";
|
|
34
|
+
readonly 'automation-delete': "automations";
|
|
35
|
+
readonly 'automation-propose': "automations";
|
|
36
|
+
readonly 'automation-accept': "automations";
|
|
37
|
+
readonly 'automation-connectors': "automations";
|
|
38
|
+
readonly delete: "editors";
|
|
39
|
+
};
|
|
40
|
+
export type ProjectConfigurationAction = keyof typeof PROJECT_CONFIGURATION_ACTION_HANDLERS;
|
|
41
|
+
export declare const projectConfigurationActionSchema: z.ZodType<"type" | "connectors" | "experts" | "members" | "delete" | "automations" | "type-save" | "expert-add" | "expert-remove" | "member-add" | "member-role" | "member-remove" | "member-owner" | "member-invite" | "invitation-revoke" | "skill-catalog" | "skill-install" | "skill-toggle" | "skill-remove" | "connector-add" | "connector-remove" | "connector-connect" | "connector-status" | "connector-cancel" | "automation-save" | "automation-options" | "automation-pause" | "automation-resume" | "automation-delete" | "automation-propose" | "automation-accept" | "automation-connectors", z.ZodTypeDef, "type" | "connectors" | "experts" | "members" | "delete" | "automations" | "type-save" | "expert-add" | "expert-remove" | "member-add" | "member-role" | "member-remove" | "member-owner" | "member-invite" | "invitation-revoke" | "skill-catalog" | "skill-install" | "skill-toggle" | "skill-remove" | "connector-add" | "connector-remove" | "connector-connect" | "connector-status" | "connector-cancel" | "automation-save" | "automation-options" | "automation-pause" | "automation-resume" | "automation-delete" | "automation-propose" | "automation-accept" | "automation-connectors">;
|
|
42
|
+
export declare const PROJECT_CONFIGURATION_ACTIONS: ("type" | "connectors" | "experts" | "members" | "delete" | "automations" | "type-save" | "expert-add" | "expert-remove" | "member-add" | "member-role" | "member-remove" | "member-owner" | "member-invite" | "invitation-revoke" | "skill-catalog" | "skill-install" | "skill-toggle" | "skill-remove" | "connector-add" | "connector-remove" | "connector-connect" | "connector-status" | "connector-cancel" | "automation-save" | "automation-options" | "automation-pause" | "automation-resume" | "automation-delete" | "automation-propose" | "automation-accept" | "automation-connectors")[];
|
|
43
|
+
/** Compact public projection; credentials and authoring Assistant graphs never enter the iframe. */
|
|
44
|
+
export interface ProjectConfigurationOverview {
|
|
45
|
+
projectId: string;
|
|
46
|
+
name: string;
|
|
47
|
+
userId: string;
|
|
48
|
+
canEdit: boolean;
|
|
49
|
+
canManage: boolean;
|
|
50
|
+
isOwner: boolean;
|
|
51
|
+
applicationManaged: boolean;
|
|
52
|
+
instruction: string;
|
|
53
|
+
effectiveMaxDurationSeconds: number;
|
|
54
|
+
tenantMaxDurationSeconds: number;
|
|
55
|
+
experts: {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
}[];
|
|
59
|
+
members: {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
role: 'owner' | 'manager' | 'editor' | 'member';
|
|
63
|
+
}[];
|
|
64
|
+
skills: {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
description?: string;
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
skillIndexId?: string;
|
|
70
|
+
}[];
|
|
71
|
+
automations: {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
schedule: string;
|
|
75
|
+
status: string;
|
|
76
|
+
}[];
|
|
77
|
+
automationTotal: number;
|
|
78
|
+
}
|