@xpert-ai/contracts 3.21.2 → 3.22.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 +569 -96
- package/index.esm.js +553 -97
- package/package.json +2 -2
- package/src/agent-plugin-maintenance.d.ts +24 -0
- package/src/agent-plugin.d.ts +55 -5
- package/src/ai/agent-runtime.model.d.ts +6 -6
- package/src/ai/assistant-capability.model.d.ts +24 -0
- package/src/ai/assistant-template-dependencies.model.d.ts +51 -0
- package/src/ai/assistant-template-manifest.model.d.ts +1826 -0
- package/src/ai/assistant-template-overview.model.d.ts +44 -0
- package/src/ai/assistant-template-setup.model.d.ts +193 -0
- package/src/ai/assistant-template.model.d.ts +16 -0
- package/src/ai/assistant-user-preference.model.d.ts +4 -0
- package/src/ai/execution-activity.model.d.ts +10 -10
- package/src/ai/index.d.ts +9 -0
- package/src/ai/project-task-runtime.model.d.ts +31 -31
- package/src/ai/template-activity.model.d.ts +24 -0
- package/src/ai/template-installation.model.d.ts +131 -0
- package/src/ai/template-lifecycle.model.d.ts +89 -0
- package/src/ai/template-manifest.model.d.ts +3 -0
- package/src/ai/xpert-agent-execution.model.d.ts +1 -0
- package/src/ai/xpert-template.model.d.ts +12 -8
- package/src/ai/xpert.model.d.ts +8 -0
- package/src/api-key.model.d.ts +12 -5
- package/src/default-agent-plugins.d.ts +12 -1
- package/src/index.d.ts +4 -1
- package/src/personal-api-key.model.d.ts +21 -0
- package/src/plugin-application.d.ts +8 -0
- package/src/plugin.d.ts +2 -37
- package/src/role-permission-modules.d.ts +3 -0
- package/src/view-extension/model.d.ts +2 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AssistantCapabilitySummary } from './assistant-capability.model';
|
|
2
|
+
import type { AssistantOperationPolicy } from './assistant-template-setup.model';
|
|
3
|
+
import type { AssistantTemplateManifest } from './assistant-template-manifest.model';
|
|
4
|
+
/** Catalog content only: never installed Assistant memories, credentials or runtime bindings. */
|
|
5
|
+
export interface AssistantTemplateOverview {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
publisher: string;
|
|
10
|
+
version?: string;
|
|
11
|
+
instructions: string;
|
|
12
|
+
memories: {
|
|
13
|
+
title: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
}[];
|
|
16
|
+
skills: AssistantCapabilitySummary['skills'];
|
|
17
|
+
agents: AssistantCapabilitySummary['agents'];
|
|
18
|
+
onboarding?: Required<NonNullable<AssistantTemplateManifest['onboarding']>>;
|
|
19
|
+
routines: Required<NonNullable<AssistantTemplateManifest['routines']>[number]>[];
|
|
20
|
+
integrations: {
|
|
21
|
+
key: string;
|
|
22
|
+
kind: 'connector' | 'mcp' | 'app' | 'toolset';
|
|
23
|
+
label: string;
|
|
24
|
+
description: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
permissions: string[];
|
|
27
|
+
}[];
|
|
28
|
+
files?: {
|
|
29
|
+
scope: 'shared' | 'user';
|
|
30
|
+
paths: string[];
|
|
31
|
+
};
|
|
32
|
+
operationPolicy?: {
|
|
33
|
+
default: NonNullable<AssistantOperationPolicy['default']>;
|
|
34
|
+
rules: {
|
|
35
|
+
tool: string;
|
|
36
|
+
decision: 'allow' | 'approve' | 'deny';
|
|
37
|
+
reason?: string;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
application?: {
|
|
41
|
+
appName: string;
|
|
42
|
+
pluginName: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { TemplateManifest } from './assistant-template-manifest.model';
|
|
3
|
+
export declare const templatePreferenceValuesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
4
|
+
export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
|
|
5
|
+
revision: z.ZodNumber;
|
|
6
|
+
preferences: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
7
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
firstResult: z.ZodOptional<z.ZodString>;
|
|
9
|
+
connectors: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"choice", [z.ZodObject<{
|
|
10
|
+
choice: z.ZodLiteral<"binding">;
|
|
11
|
+
bindingId: z.ZodString;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
bindingId?: string;
|
|
14
|
+
choice?: "binding";
|
|
15
|
+
}, {
|
|
16
|
+
bindingId?: string;
|
|
17
|
+
choice?: "binding";
|
|
18
|
+
}>, z.ZodObject<{
|
|
19
|
+
choice: z.ZodLiteral<"skip">;
|
|
20
|
+
}, "strict", z.ZodTypeAny, {
|
|
21
|
+
choice?: "skip";
|
|
22
|
+
}, {
|
|
23
|
+
choice?: "skip";
|
|
24
|
+
}>]>>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
preferences?: Record<string, string>;
|
|
27
|
+
connectors?: Record<string, {
|
|
28
|
+
bindingId?: string;
|
|
29
|
+
choice?: "binding";
|
|
30
|
+
} | {
|
|
31
|
+
choice?: "skip";
|
|
32
|
+
}>;
|
|
33
|
+
completedAt?: string;
|
|
34
|
+
revision?: number;
|
|
35
|
+
firstResult?: string;
|
|
36
|
+
}, {
|
|
37
|
+
preferences?: Record<string, string>;
|
|
38
|
+
connectors?: Record<string, {
|
|
39
|
+
bindingId?: string;
|
|
40
|
+
choice?: "binding";
|
|
41
|
+
} | {
|
|
42
|
+
choice?: "skip";
|
|
43
|
+
}>;
|
|
44
|
+
completedAt?: string;
|
|
45
|
+
revision?: number;
|
|
46
|
+
firstResult?: string;
|
|
47
|
+
}>;
|
|
48
|
+
export type AssistantTemplateSetupState = z.output<typeof assistantTemplateSetupStateSchema>;
|
|
49
|
+
export declare const templateSetupUpdateSchema: z.ZodObject<{
|
|
50
|
+
revision: z.ZodNumber;
|
|
51
|
+
preferences: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
52
|
+
firstResult: z.ZodOptional<z.ZodString>;
|
|
53
|
+
connector: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
key: z.ZodString;
|
|
55
|
+
selection: z.ZodDiscriminatedUnion<"choice", [z.ZodObject<{
|
|
56
|
+
choice: z.ZodLiteral<"binding">;
|
|
57
|
+
bindingId: z.ZodString;
|
|
58
|
+
}, "strict", z.ZodTypeAny, {
|
|
59
|
+
bindingId?: string;
|
|
60
|
+
choice?: "binding";
|
|
61
|
+
}, {
|
|
62
|
+
bindingId?: string;
|
|
63
|
+
choice?: "binding";
|
|
64
|
+
}>, z.ZodObject<{
|
|
65
|
+
choice: z.ZodLiteral<"skip">;
|
|
66
|
+
}, "strict", z.ZodTypeAny, {
|
|
67
|
+
choice?: "skip";
|
|
68
|
+
}, {
|
|
69
|
+
choice?: "skip";
|
|
70
|
+
}>]>;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
selection?: {
|
|
73
|
+
bindingId?: string;
|
|
74
|
+
choice?: "binding";
|
|
75
|
+
} | {
|
|
76
|
+
choice?: "skip";
|
|
77
|
+
};
|
|
78
|
+
key?: string;
|
|
79
|
+
}, {
|
|
80
|
+
selection?: {
|
|
81
|
+
bindingId?: string;
|
|
82
|
+
choice?: "binding";
|
|
83
|
+
} | {
|
|
84
|
+
choice?: "skip";
|
|
85
|
+
};
|
|
86
|
+
key?: string;
|
|
87
|
+
}>>;
|
|
88
|
+
}, "strict", z.ZodTypeAny, {
|
|
89
|
+
preferences?: Record<string, string>;
|
|
90
|
+
revision?: number;
|
|
91
|
+
connector?: {
|
|
92
|
+
selection?: {
|
|
93
|
+
bindingId?: string;
|
|
94
|
+
choice?: "binding";
|
|
95
|
+
} | {
|
|
96
|
+
choice?: "skip";
|
|
97
|
+
};
|
|
98
|
+
key?: string;
|
|
99
|
+
};
|
|
100
|
+
firstResult?: string;
|
|
101
|
+
}, {
|
|
102
|
+
preferences?: Record<string, string>;
|
|
103
|
+
revision?: number;
|
|
104
|
+
connector?: {
|
|
105
|
+
selection?: {
|
|
106
|
+
bindingId?: string;
|
|
107
|
+
choice?: "binding";
|
|
108
|
+
} | {
|
|
109
|
+
choice?: "skip";
|
|
110
|
+
};
|
|
111
|
+
key?: string;
|
|
112
|
+
};
|
|
113
|
+
firstResult?: string;
|
|
114
|
+
}>;
|
|
115
|
+
export type TemplateSetupUpdate = z.output<typeof templateSetupUpdateSchema>;
|
|
116
|
+
export interface AssistantTemplateSetup {
|
|
117
|
+
assistantId: string;
|
|
118
|
+
state: AssistantTemplateSetupState;
|
|
119
|
+
onboarding?: TemplateManifest['onboarding'];
|
|
120
|
+
connectors: {
|
|
121
|
+
key: string;
|
|
122
|
+
provider: string;
|
|
123
|
+
required: boolean;
|
|
124
|
+
purpose: string;
|
|
125
|
+
permissions: string[];
|
|
126
|
+
status: 'ready' | 'skipped' | 'requires_auth' | 'expired' | 'unavailable';
|
|
127
|
+
options: {
|
|
128
|
+
bindingId: string;
|
|
129
|
+
label: string;
|
|
130
|
+
status: string;
|
|
131
|
+
runtimeUsage?: 'middleware' | 'credential';
|
|
132
|
+
}[];
|
|
133
|
+
}[];
|
|
134
|
+
managementUrl?: string;
|
|
135
|
+
routines: TemplateRoutineStatus[];
|
|
136
|
+
}
|
|
137
|
+
export interface TemplateRoutineStatus {
|
|
138
|
+
key: string;
|
|
139
|
+
supported: boolean;
|
|
140
|
+
skill: string;
|
|
141
|
+
output: string;
|
|
142
|
+
taskId?: string;
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
expression: string;
|
|
145
|
+
timeZone?: string;
|
|
146
|
+
nextRunAt?: string;
|
|
147
|
+
}
|
|
148
|
+
/** Assistant execution policy, independent of template delivery metadata. Exact tool names only. */
|
|
149
|
+
export declare const assistantOperationPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
150
|
+
default: z.ZodEnum<["allow", "approve", "deny"]>;
|
|
151
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
152
|
+
tool: z.ZodString;
|
|
153
|
+
decision: z.ZodEnum<["allow", "approve", "deny"]>;
|
|
154
|
+
reason: z.ZodString;
|
|
155
|
+
}, "strict", z.ZodTypeAny, {
|
|
156
|
+
reason?: string;
|
|
157
|
+
tool?: string;
|
|
158
|
+
decision?: "allow" | "deny" | "approve";
|
|
159
|
+
}, {
|
|
160
|
+
reason?: string;
|
|
161
|
+
tool?: string;
|
|
162
|
+
decision?: "allow" | "deny" | "approve";
|
|
163
|
+
}>, "many">;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
default?: "allow" | "deny" | "approve";
|
|
166
|
+
rules?: {
|
|
167
|
+
reason?: string;
|
|
168
|
+
tool?: string;
|
|
169
|
+
decision?: "allow" | "deny" | "approve";
|
|
170
|
+
}[];
|
|
171
|
+
}, {
|
|
172
|
+
default?: "allow" | "deny" | "approve";
|
|
173
|
+
rules?: {
|
|
174
|
+
reason?: string;
|
|
175
|
+
tool?: string;
|
|
176
|
+
decision?: "allow" | "deny" | "approve";
|
|
177
|
+
}[];
|
|
178
|
+
}>, {
|
|
179
|
+
default?: "allow" | "deny" | "approve";
|
|
180
|
+
rules?: {
|
|
181
|
+
reason?: string;
|
|
182
|
+
tool?: string;
|
|
183
|
+
decision?: "allow" | "deny" | "approve";
|
|
184
|
+
}[];
|
|
185
|
+
}, {
|
|
186
|
+
default?: "allow" | "deny" | "approve";
|
|
187
|
+
rules?: {
|
|
188
|
+
reason?: string;
|
|
189
|
+
tool?: string;
|
|
190
|
+
decision?: "allow" | "deny" | "approve";
|
|
191
|
+
}[];
|
|
192
|
+
}>;
|
|
193
|
+
export type AssistantOperationPolicy = z.output<typeof assistantOperationPolicySchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TXpertTeamDraft } from './xpert.model';
|
|
2
|
+
import type { AssistantTemplateDependencies } from './assistant-template-dependencies.model';
|
|
3
|
+
import type { AssistantTemplateManifest } from './assistant-template-manifest.model';
|
|
4
|
+
/** Portable metadata carried by both ordinary DSL exports and plugin distribution. */
|
|
5
|
+
export interface AssistantTemplateMetadata {
|
|
6
|
+
schemaVersion: 2;
|
|
7
|
+
dependencies?: AssistantTemplateDependencies;
|
|
8
|
+
manifest?: AssistantTemplateManifest;
|
|
9
|
+
}
|
|
10
|
+
export type AssistantTemplateDefinition = TXpertTeamDraft & {
|
|
11
|
+
template?: AssistantTemplateMetadata;
|
|
12
|
+
memories?: {
|
|
13
|
+
prefix: string;
|
|
14
|
+
value: unknown;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
@@ -12,6 +12,10 @@ export type TAssistantModelSelectionPreference = {
|
|
|
12
12
|
* another single-purpose preference entity.
|
|
13
13
|
*/
|
|
14
14
|
export type TAssistantUserPreferenceDomainMap = {
|
|
15
|
+
templateActivity: {
|
|
16
|
+
read: string[];
|
|
17
|
+
};
|
|
18
|
+
templateSetup: import('./assistant-template-setup.model').AssistantTemplateSetupState;
|
|
15
19
|
modelSelection: TAssistantModelSelectionPreference;
|
|
16
20
|
conversationSidebar: Record<string, TChatConversationSidebarState>;
|
|
17
21
|
};
|
|
@@ -89,7 +89,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
89
89
|
}[];
|
|
90
90
|
}>]>>;
|
|
91
91
|
}, "strict", z.ZodTypeAny, {
|
|
92
|
-
status?: "
|
|
92
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
93
93
|
name?: string;
|
|
94
94
|
input?: string;
|
|
95
95
|
output?: string;
|
|
@@ -114,7 +114,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
114
114
|
key?: string;
|
|
115
115
|
};
|
|
116
116
|
}, {
|
|
117
|
-
status?: "
|
|
117
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
118
118
|
name?: string;
|
|
119
119
|
input?: string;
|
|
120
120
|
output?: string;
|
|
@@ -157,7 +157,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
157
157
|
text?: string;
|
|
158
158
|
kind?: "message";
|
|
159
159
|
} | {
|
|
160
|
-
status?: "
|
|
160
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
161
161
|
name?: string;
|
|
162
162
|
input?: string;
|
|
163
163
|
output?: string;
|
|
@@ -193,7 +193,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
193
193
|
text?: string;
|
|
194
194
|
kind?: "message";
|
|
195
195
|
} | {
|
|
196
|
-
status?: "
|
|
196
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
197
197
|
name?: string;
|
|
198
198
|
input?: string;
|
|
199
199
|
output?: string;
|
|
@@ -304,7 +304,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
304
304
|
}[];
|
|
305
305
|
}>]>>;
|
|
306
306
|
}, "strict", z.ZodTypeAny, {
|
|
307
|
-
status?: "
|
|
307
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
308
308
|
name?: string;
|
|
309
309
|
input?: string;
|
|
310
310
|
output?: string;
|
|
@@ -329,7 +329,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
329
329
|
key?: string;
|
|
330
330
|
};
|
|
331
331
|
}, {
|
|
332
|
-
status?: "
|
|
332
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
333
333
|
name?: string;
|
|
334
334
|
input?: string;
|
|
335
335
|
output?: string;
|
|
@@ -372,7 +372,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
372
372
|
text?: string;
|
|
373
373
|
kind?: "message";
|
|
374
374
|
} | {
|
|
375
|
-
status?: "
|
|
375
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
376
376
|
name?: string;
|
|
377
377
|
input?: string;
|
|
378
378
|
output?: string;
|
|
@@ -408,7 +408,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
408
408
|
text?: string;
|
|
409
409
|
kind?: "message";
|
|
410
410
|
} | {
|
|
411
|
-
status?: "
|
|
411
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
412
412
|
name?: string;
|
|
413
413
|
input?: string;
|
|
414
414
|
output?: string;
|
|
@@ -451,7 +451,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
451
451
|
text?: string;
|
|
452
452
|
kind?: "message";
|
|
453
453
|
} | {
|
|
454
|
-
status?: "
|
|
454
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
455
455
|
name?: string;
|
|
456
456
|
input?: string;
|
|
457
457
|
output?: string;
|
|
@@ -493,7 +493,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
493
493
|
text?: string;
|
|
494
494
|
kind?: "message";
|
|
495
495
|
} | {
|
|
496
|
-
status?: "
|
|
496
|
+
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
497
497
|
name?: string;
|
|
498
498
|
input?: string;
|
|
499
499
|
output?: string;
|
package/src/ai/index.d.ts
CHANGED
|
@@ -109,3 +109,12 @@ export * from './chat-group.model';
|
|
|
109
109
|
export * from './chat-group-entity.model';
|
|
110
110
|
export * from './conversation-entry.model';
|
|
111
111
|
export type { ThreadActivitySnapshot } from './thread-activity.model';
|
|
112
|
+
export * from './template-installation.model';
|
|
113
|
+
export * from './template-manifest.model';
|
|
114
|
+
export * from './assistant-template.model';
|
|
115
|
+
export * from './assistant-template-dependencies.model';
|
|
116
|
+
export type { AssistantCapabilitySummary } from './assistant-capability.model';
|
|
117
|
+
export * from './assistant-template-setup.model';
|
|
118
|
+
export * from './template-activity.model';
|
|
119
|
+
export * from './template-lifecycle.model';
|
|
120
|
+
export * from './assistant-template-overview.model';
|
|
@@ -446,21 +446,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
446
446
|
}>]>;
|
|
447
447
|
}, "strict", z.ZodTypeAny, {
|
|
448
448
|
projectId?: string;
|
|
449
|
-
specification?: {
|
|
450
|
-
digest?: string;
|
|
451
|
-
specification?: {
|
|
452
|
-
description?: string;
|
|
453
|
-
version?: 1;
|
|
454
|
-
title?: string;
|
|
455
|
-
steps?: {
|
|
456
|
-
description?: string;
|
|
457
|
-
stepIndex?: number;
|
|
458
|
-
}[];
|
|
459
|
-
requirements?: string[];
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
projectTaskId?: string;
|
|
463
|
-
taskExecutionId?: string;
|
|
464
449
|
purpose?: {
|
|
465
450
|
type?: "implementation";
|
|
466
451
|
} | {
|
|
@@ -482,8 +467,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
482
467
|
snapshotId?: string;
|
|
483
468
|
})[];
|
|
484
469
|
};
|
|
485
|
-
}, {
|
|
486
|
-
projectId?: string;
|
|
487
470
|
specification?: {
|
|
488
471
|
digest?: string;
|
|
489
472
|
specification?: {
|
|
@@ -499,6 +482,8 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
499
482
|
};
|
|
500
483
|
projectTaskId?: string;
|
|
501
484
|
taskExecutionId?: string;
|
|
485
|
+
}, {
|
|
486
|
+
projectId?: string;
|
|
502
487
|
purpose?: {
|
|
503
488
|
type?: "implementation";
|
|
504
489
|
} | {
|
|
@@ -520,8 +505,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
520
505
|
snapshotId?: string;
|
|
521
506
|
})[];
|
|
522
507
|
};
|
|
523
|
-
}>, {
|
|
524
|
-
projectId?: string;
|
|
525
508
|
specification?: {
|
|
526
509
|
digest?: string;
|
|
527
510
|
specification?: {
|
|
@@ -537,6 +520,8 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
537
520
|
};
|
|
538
521
|
projectTaskId?: string;
|
|
539
522
|
taskExecutionId?: string;
|
|
523
|
+
}>, {
|
|
524
|
+
projectId?: string;
|
|
540
525
|
purpose?: {
|
|
541
526
|
type?: "implementation";
|
|
542
527
|
} | {
|
|
@@ -558,8 +543,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
558
543
|
snapshotId?: string;
|
|
559
544
|
})[];
|
|
560
545
|
};
|
|
561
|
-
}, {
|
|
562
|
-
projectId?: string;
|
|
563
546
|
specification?: {
|
|
564
547
|
digest?: string;
|
|
565
548
|
specification?: {
|
|
@@ -575,6 +558,8 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
575
558
|
};
|
|
576
559
|
projectTaskId?: string;
|
|
577
560
|
taskExecutionId?: string;
|
|
561
|
+
}, {
|
|
562
|
+
projectId?: string;
|
|
578
563
|
purpose?: {
|
|
579
564
|
type?: "implementation";
|
|
580
565
|
} | {
|
|
@@ -596,6 +581,21 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
596
581
|
snapshotId?: string;
|
|
597
582
|
})[];
|
|
598
583
|
};
|
|
584
|
+
specification?: {
|
|
585
|
+
digest?: string;
|
|
586
|
+
specification?: {
|
|
587
|
+
description?: string;
|
|
588
|
+
version?: 1;
|
|
589
|
+
title?: string;
|
|
590
|
+
steps?: {
|
|
591
|
+
description?: string;
|
|
592
|
+
stepIndex?: number;
|
|
593
|
+
}[];
|
|
594
|
+
requirements?: string[];
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
projectTaskId?: string;
|
|
598
|
+
taskExecutionId?: string;
|
|
599
599
|
}>;
|
|
600
600
|
export type ProjectTaskExecutionContext = z.output<typeof projectTaskExecutionContextSchema>;
|
|
601
601
|
/** A receipt is neither a business completion decision nor proof that the process has started. */
|
|
@@ -607,13 +607,13 @@ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
|
|
|
607
607
|
invocationId: z.ZodString;
|
|
608
608
|
status: z.ZodEnum<["queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
|
|
609
609
|
}, "strict", z.ZodTypeAny, {
|
|
610
|
-
status?: "
|
|
610
|
+
status?: "failed" | "unknown" | "succeeded" | "running" | "queued" | "waiting" | "cancelled" | "cancelling";
|
|
611
611
|
projectId?: string;
|
|
612
612
|
invocationId?: string;
|
|
613
613
|
projectTaskId?: string;
|
|
614
614
|
taskExecutionId?: string;
|
|
615
615
|
}, {
|
|
616
|
-
status?: "
|
|
616
|
+
status?: "failed" | "unknown" | "succeeded" | "running" | "queued" | "waiting" | "cancelled" | "cancelling";
|
|
617
617
|
projectId?: string;
|
|
618
618
|
invocationId?: string;
|
|
619
619
|
projectTaskId?: string;
|
|
@@ -754,6 +754,7 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
754
754
|
};
|
|
755
755
|
instructions?: string;
|
|
756
756
|
taskId?: string;
|
|
757
|
+
bindingId?: string;
|
|
757
758
|
purpose?: {
|
|
758
759
|
type?: "implementation";
|
|
759
760
|
} | {
|
|
@@ -776,7 +777,6 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
776
777
|
})[];
|
|
777
778
|
};
|
|
778
779
|
expectedRevision?: number;
|
|
779
|
-
bindingId?: string;
|
|
780
780
|
delivery?: {
|
|
781
781
|
mode?: "none";
|
|
782
782
|
} | {
|
|
@@ -794,6 +794,7 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
794
794
|
};
|
|
795
795
|
instructions?: string;
|
|
796
796
|
taskId?: string;
|
|
797
|
+
bindingId?: string;
|
|
797
798
|
purpose?: {
|
|
798
799
|
type?: "implementation";
|
|
799
800
|
} | {
|
|
@@ -816,7 +817,6 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
816
817
|
})[];
|
|
817
818
|
};
|
|
818
819
|
expectedRevision?: number;
|
|
819
|
-
bindingId?: string;
|
|
820
820
|
delivery?: {
|
|
821
821
|
mode?: "none";
|
|
822
822
|
} | {
|
|
@@ -834,6 +834,7 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
834
834
|
};
|
|
835
835
|
instructions?: string;
|
|
836
836
|
taskId?: string;
|
|
837
|
+
bindingId?: string;
|
|
837
838
|
purpose?: {
|
|
838
839
|
type?: "implementation";
|
|
839
840
|
} | {
|
|
@@ -856,7 +857,6 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
856
857
|
})[];
|
|
857
858
|
};
|
|
858
859
|
expectedRevision?: number;
|
|
859
|
-
bindingId?: string;
|
|
860
860
|
delivery?: {
|
|
861
861
|
mode?: "none";
|
|
862
862
|
} | {
|
|
@@ -874,6 +874,7 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
874
874
|
};
|
|
875
875
|
instructions?: string;
|
|
876
876
|
taskId?: string;
|
|
877
|
+
bindingId?: string;
|
|
877
878
|
purpose?: {
|
|
878
879
|
type?: "implementation";
|
|
879
880
|
} | {
|
|
@@ -896,7 +897,6 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
896
897
|
})[];
|
|
897
898
|
};
|
|
898
899
|
expectedRevision?: number;
|
|
899
|
-
bindingId?: string;
|
|
900
900
|
delivery?: {
|
|
901
901
|
mode?: "none";
|
|
902
902
|
} | {
|
|
@@ -1040,6 +1040,7 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1040
1040
|
};
|
|
1041
1041
|
instructions?: string;
|
|
1042
1042
|
taskId?: string;
|
|
1043
|
+
bindingId?: string;
|
|
1043
1044
|
purpose?: {
|
|
1044
1045
|
type?: "implementation";
|
|
1045
1046
|
} | {
|
|
@@ -1062,7 +1063,6 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1062
1063
|
})[];
|
|
1063
1064
|
};
|
|
1064
1065
|
expectedRevision?: number;
|
|
1065
|
-
bindingId?: string;
|
|
1066
1066
|
delivery?: {
|
|
1067
1067
|
mode?: "none";
|
|
1068
1068
|
} | {
|
|
@@ -1079,6 +1079,7 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1079
1079
|
};
|
|
1080
1080
|
instructions?: string;
|
|
1081
1081
|
taskId?: string;
|
|
1082
|
+
bindingId?: string;
|
|
1082
1083
|
purpose?: {
|
|
1083
1084
|
type?: "implementation";
|
|
1084
1085
|
} | {
|
|
@@ -1101,7 +1102,6 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1101
1102
|
})[];
|
|
1102
1103
|
};
|
|
1103
1104
|
expectedRevision?: number;
|
|
1104
|
-
bindingId?: string;
|
|
1105
1105
|
delivery?: {
|
|
1106
1106
|
mode?: "none";
|
|
1107
1107
|
} | {
|
|
@@ -1118,6 +1118,7 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1118
1118
|
};
|
|
1119
1119
|
instructions?: string;
|
|
1120
1120
|
taskId?: string;
|
|
1121
|
+
bindingId?: string;
|
|
1121
1122
|
purpose?: {
|
|
1122
1123
|
type?: "implementation";
|
|
1123
1124
|
} | {
|
|
@@ -1140,7 +1141,6 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1140
1141
|
})[];
|
|
1141
1142
|
};
|
|
1142
1143
|
expectedRevision?: number;
|
|
1143
|
-
bindingId?: string;
|
|
1144
1144
|
delivery?: {
|
|
1145
1145
|
mode?: "none";
|
|
1146
1146
|
} | {
|
|
@@ -1157,6 +1157,7 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1157
1157
|
};
|
|
1158
1158
|
instructions?: string;
|
|
1159
1159
|
taskId?: string;
|
|
1160
|
+
bindingId?: string;
|
|
1160
1161
|
purpose?: {
|
|
1161
1162
|
type?: "implementation";
|
|
1162
1163
|
} | {
|
|
@@ -1179,7 +1180,6 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1179
1180
|
})[];
|
|
1180
1181
|
};
|
|
1181
1182
|
expectedRevision?: number;
|
|
1182
|
-
bindingId?: string;
|
|
1183
1183
|
delivery?: {
|
|
1184
1184
|
mode?: "none";
|
|
1185
1185
|
} | {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const templateActivityReadSchema: z.ZodObject<{
|
|
3
|
+
keys: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
}, "strict", z.ZodTypeAny, {
|
|
5
|
+
keys?: string[];
|
|
6
|
+
}, {
|
|
7
|
+
keys?: string[];
|
|
8
|
+
}>;
|
|
9
|
+
export type TemplateActivityRead = z.output<typeof templateActivityReadSchema>;
|
|
10
|
+
export interface TemplateActivity {
|
|
11
|
+
assistantName: string;
|
|
12
|
+
items: {
|
|
13
|
+
id: string;
|
|
14
|
+
key: string;
|
|
15
|
+
routine: string;
|
|
16
|
+
status: 'pending' | 'running' | 'awaiting_approval' | 'paused' | 'succeeded' | 'failed';
|
|
17
|
+
scheduledAt: string;
|
|
18
|
+
conversationId?: string;
|
|
19
|
+
threadId?: string;
|
|
20
|
+
unread: boolean;
|
|
21
|
+
reason?: string;
|
|
22
|
+
}[];
|
|
23
|
+
unread: number;
|
|
24
|
+
}
|