@xpert-ai/contracts 3.36.0 → 3.37.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 +818 -450
- package/index.esm.js +806 -451
- package/package.json +2 -2
- package/src/ai/agent-runtime.model.d.ts +2 -2
- package/src/ai/assistant-template-manifest.model.d.ts +328 -328
- package/src/ai/assistant-template-setup.model.d.ts +8 -8
- package/src/ai/chat-activity.model.d.ts +5 -0
- package/src/ai/chat.model.d.ts +2 -0
- package/src/ai/conversation-trail.model.d.ts +66 -66
- package/src/ai/execution-activity.model.d.ts +10 -10
- package/src/ai/execution-control-evidence.schema.d.ts +30 -30
- package/src/ai/execution-observability.model.d.ts +96 -96
- package/src/ai/mcp-execution-control.schema.d.ts +2 -2
- package/src/ai/model-replacement.model.d.ts +6 -6
- package/src/ai/project-pipeline/analytics.d.ts +154 -154
- package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
- package/src/ai/project-pipeline/commands.schema.d.ts +68 -68
- package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +215 -215
- package/src/ai/project-pipeline/configuration.schema.d.ts +50 -50
- package/src/ai/project-pipeline/contribution.schema.d.ts +173 -70
- package/src/ai/project-pipeline/definition.schema.d.ts +50 -50
- package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
- package/src/ai/project-pipeline/graph.model.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/node.schema.d.ts +2 -2
- package/src/ai/project-pipeline/operation.schema.d.ts +344 -344
- package/src/ai/project-pipeline/portfolio.schema.d.ts +348 -348
- package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
- package/src/ai/project-pipeline/projection.schema.d.ts +260 -260
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +28 -28
- package/src/ai/project-pipeline/queue-statistics.d.ts +24 -24
- package/src/ai/project-pipeline/runtime.schema.d.ts +50 -50
- package/src/ai/project-pipeline/statistics.d.ts +74 -74
- package/src/ai/project-task-runtime.model.d.ts +23 -23
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +16 -16
- package/src/ai/template-lifecycle.model.d.ts +2 -2
- package/src/ai/thread-control-view.schema.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +29 -0
- package/src/ai/xpert-tool.model.d.ts +12 -0
- package/src/{agent-event.model.d.ts → always-on/agent-event.model.d.ts} +37 -4
- package/src/{agent-event.schema.d.ts → always-on/agent-event.schema.d.ts} +19 -0
- package/src/always-on/agent-output-reference.schema.d.ts +27 -0
- package/src/always-on/agent-output.model.d.ts +411 -0
- package/src/always-on/human-decision.model.d.ts +204 -0
- package/src/always-on/index.d.ts +3 -0
- package/src/always-on/output-workbench.schema.d.ts +154 -0
- package/src/analytics/analytics-diagnostic.d.ts +4 -4
- package/src/app-platform.d.ts +18 -18
- package/src/artifacts/artifact.model.d.ts +2 -0
- package/src/content/content-resource.model.d.ts +2 -1
- package/src/icon-definition.schema.d.ts +6 -10
- package/src/index.d.ts +1 -1
- package/src/secret-token.model.d.ts +4 -4
- package/src/user-notification.schema.d.ts +1290 -479
|
@@ -749,6 +749,7 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
749
749
|
candidatePaths?: string[] | undefined;
|
|
750
750
|
}>;
|
|
751
751
|
}, "strict", z.ZodTypeAny, {
|
|
752
|
+
projectId: string;
|
|
752
753
|
purpose: {
|
|
753
754
|
type: "implementation";
|
|
754
755
|
reviewer?: {
|
|
@@ -785,7 +786,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
785
786
|
implementationTaskId?: string | undefined;
|
|
786
787
|
candidatePaths?: string[] | undefined;
|
|
787
788
|
};
|
|
788
|
-
projectId: string;
|
|
789
789
|
specification: {
|
|
790
790
|
digest: string;
|
|
791
791
|
specification: {
|
|
@@ -802,6 +802,7 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
802
802
|
projectTaskId: string;
|
|
803
803
|
taskExecutionId: string;
|
|
804
804
|
}, {
|
|
805
|
+
projectId: string;
|
|
805
806
|
purpose: {
|
|
806
807
|
type: "implementation";
|
|
807
808
|
reviewer?: {
|
|
@@ -838,7 +839,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
838
839
|
implementationTaskId?: string | undefined;
|
|
839
840
|
candidatePaths?: string[] | undefined;
|
|
840
841
|
};
|
|
841
|
-
projectId: string;
|
|
842
842
|
specification: {
|
|
843
843
|
digest: string;
|
|
844
844
|
specification: {
|
|
@@ -855,6 +855,7 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
855
855
|
projectTaskId: string;
|
|
856
856
|
taskExecutionId: string;
|
|
857
857
|
}>, {
|
|
858
|
+
projectId: string;
|
|
858
859
|
purpose: {
|
|
859
860
|
type: "implementation";
|
|
860
861
|
reviewer?: {
|
|
@@ -891,7 +892,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
891
892
|
implementationTaskId?: string | undefined;
|
|
892
893
|
candidatePaths?: string[] | undefined;
|
|
893
894
|
};
|
|
894
|
-
projectId: string;
|
|
895
895
|
specification: {
|
|
896
896
|
digest: string;
|
|
897
897
|
specification: {
|
|
@@ -908,6 +908,7 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
908
908
|
projectTaskId: string;
|
|
909
909
|
taskExecutionId: string;
|
|
910
910
|
}, {
|
|
911
|
+
projectId: string;
|
|
911
912
|
purpose: {
|
|
912
913
|
type: "implementation";
|
|
913
914
|
reviewer?: {
|
|
@@ -944,7 +945,6 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
|
|
|
944
945
|
implementationTaskId?: string | undefined;
|
|
945
946
|
candidatePaths?: string[] | undefined;
|
|
946
947
|
};
|
|
947
|
-
projectId: string;
|
|
948
948
|
specification: {
|
|
949
949
|
digest: string;
|
|
950
950
|
specification: {
|
|
@@ -971,13 +971,13 @@ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
|
|
|
971
971
|
invocationId: z.ZodString;
|
|
972
972
|
status: z.ZodEnum<["queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
|
|
973
973
|
}, "strict", z.ZodTypeAny, {
|
|
974
|
-
status: "unknown" | "
|
|
974
|
+
status: "unknown" | "failed" | "cancelled" | "running" | "waiting" | "cancelling" | "succeeded" | "queued";
|
|
975
975
|
projectId: string;
|
|
976
976
|
invocationId: string;
|
|
977
977
|
projectTaskId: string;
|
|
978
978
|
taskExecutionId: string;
|
|
979
979
|
}, {
|
|
980
|
-
status: "unknown" | "
|
|
980
|
+
status: "unknown" | "failed" | "cancelled" | "running" | "waiting" | "cancelling" | "succeeded" | "queued";
|
|
981
981
|
projectId: string;
|
|
982
982
|
invocationId: string;
|
|
983
983
|
projectTaskId: string;
|
|
@@ -1254,9 +1254,9 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1254
1254
|
}>]>>;
|
|
1255
1255
|
instructions: z.ZodDefault<z.ZodString>;
|
|
1256
1256
|
}, "strict", z.ZodTypeAny, {
|
|
1257
|
+
taskId: string;
|
|
1257
1258
|
requestId: string;
|
|
1258
1259
|
expectedRevision: number;
|
|
1259
|
-
taskId: string;
|
|
1260
1260
|
instructions: string;
|
|
1261
1261
|
purpose?: {
|
|
1262
1262
|
type: "implementation";
|
|
@@ -1313,9 +1313,9 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1313
1313
|
paths?: string[] | undefined;
|
|
1314
1314
|
} | undefined;
|
|
1315
1315
|
}, {
|
|
1316
|
+
taskId: string;
|
|
1316
1317
|
requestId: string;
|
|
1317
1318
|
expectedRevision: number;
|
|
1318
|
-
taskId: string;
|
|
1319
1319
|
purpose?: {
|
|
1320
1320
|
type: "implementation";
|
|
1321
1321
|
reviewer?: {
|
|
@@ -1372,9 +1372,9 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1372
1372
|
} | undefined;
|
|
1373
1373
|
instructions?: string | undefined;
|
|
1374
1374
|
}>, {
|
|
1375
|
+
taskId: string;
|
|
1375
1376
|
requestId: string;
|
|
1376
1377
|
expectedRevision: number;
|
|
1377
|
-
taskId: string;
|
|
1378
1378
|
instructions: string;
|
|
1379
1379
|
purpose?: {
|
|
1380
1380
|
type: "implementation";
|
|
@@ -1431,9 +1431,9 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1431
1431
|
paths?: string[] | undefined;
|
|
1432
1432
|
} | undefined;
|
|
1433
1433
|
}, {
|
|
1434
|
+
taskId: string;
|
|
1434
1435
|
requestId: string;
|
|
1435
1436
|
expectedRevision: number;
|
|
1436
|
-
taskId: string;
|
|
1437
1437
|
purpose?: {
|
|
1438
1438
|
type: "implementation";
|
|
1439
1439
|
reviewer?: {
|
|
@@ -1491,9 +1491,9 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1491
1491
|
instructions?: string | undefined;
|
|
1492
1492
|
}>;
|
|
1493
1493
|
export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1494
|
+
taskId: z.ZodString;
|
|
1494
1495
|
expectedRevision: z.ZodNumber;
|
|
1495
1496
|
bindingId: z.ZodOptional<z.ZodString>;
|
|
1496
|
-
taskId: z.ZodString;
|
|
1497
1497
|
target: z.ZodOptional<z.ZodObject<{
|
|
1498
1498
|
type: z.ZodLiteral<"group_member">;
|
|
1499
1499
|
participantId: z.ZodString;
|
|
@@ -1740,8 +1740,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1740
1740
|
candidatePaths?: string[] | undefined;
|
|
1741
1741
|
}>>;
|
|
1742
1742
|
}, "strict", z.ZodTypeAny, {
|
|
1743
|
-
expectedRevision: number;
|
|
1744
1743
|
taskId: string;
|
|
1744
|
+
expectedRevision: number;
|
|
1745
1745
|
instructions: string;
|
|
1746
1746
|
purpose?: {
|
|
1747
1747
|
type: "implementation";
|
|
@@ -1793,8 +1793,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1793
1793
|
paths?: string[] | undefined;
|
|
1794
1794
|
} | undefined;
|
|
1795
1795
|
}, {
|
|
1796
|
-
expectedRevision: number;
|
|
1797
1796
|
taskId: string;
|
|
1797
|
+
expectedRevision: number;
|
|
1798
1798
|
purpose?: {
|
|
1799
1799
|
type: "implementation";
|
|
1800
1800
|
reviewer?: {
|
|
@@ -1846,8 +1846,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1846
1846
|
} | undefined;
|
|
1847
1847
|
instructions?: string | undefined;
|
|
1848
1848
|
}>, {
|
|
1849
|
-
expectedRevision: number;
|
|
1850
1849
|
taskId: string;
|
|
1850
|
+
expectedRevision: number;
|
|
1851
1851
|
instructions: string;
|
|
1852
1852
|
purpose?: {
|
|
1853
1853
|
type: "implementation";
|
|
@@ -1899,8 +1899,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
|
|
|
1899
1899
|
paths?: string[] | undefined;
|
|
1900
1900
|
} | undefined;
|
|
1901
1901
|
}, {
|
|
1902
|
-
expectedRevision: number;
|
|
1903
1902
|
taskId: string;
|
|
1903
|
+
expectedRevision: number;
|
|
1904
1904
|
purpose?: {
|
|
1905
1905
|
type: "implementation";
|
|
1906
1906
|
reviewer?: {
|
|
@@ -2030,8 +2030,9 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
|
|
|
2030
2030
|
rationale: z.ZodString;
|
|
2031
2031
|
checks: z.ZodArray<z.ZodString, "many">;
|
|
2032
2032
|
}, "strict", z.ZodTypeAny, {
|
|
2033
|
-
|
|
2033
|
+
taskId: string;
|
|
2034
2034
|
requestId: string;
|
|
2035
|
+
outcome: "accept" | "rework";
|
|
2035
2036
|
expectedRevision: number;
|
|
2036
2037
|
evidence: ({
|
|
2037
2038
|
type: "artifact";
|
|
@@ -2046,15 +2047,15 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
|
|
|
2046
2047
|
digest: string;
|
|
2047
2048
|
snapshotId: string;
|
|
2048
2049
|
})[];
|
|
2049
|
-
taskId: string;
|
|
2050
2050
|
implementationExecutionId: string;
|
|
2051
2051
|
specificationDigest: string;
|
|
2052
2052
|
rationale: string;
|
|
2053
2053
|
checks: string[];
|
|
2054
2054
|
reviewExecutionId?: string | undefined;
|
|
2055
2055
|
}, {
|
|
2056
|
-
|
|
2056
|
+
taskId: string;
|
|
2057
2057
|
requestId: string;
|
|
2058
|
+
outcome: "accept" | "rework";
|
|
2058
2059
|
expectedRevision: number;
|
|
2059
2060
|
evidence: ({
|
|
2060
2061
|
type: "artifact";
|
|
@@ -2069,7 +2070,6 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
|
|
|
2069
2070
|
digest: string;
|
|
2070
2071
|
snapshotId: string;
|
|
2071
2072
|
})[];
|
|
2072
|
-
taskId: string;
|
|
2073
2073
|
implementationExecutionId: string;
|
|
2074
2074
|
specificationDigest: string;
|
|
2075
2075
|
rationale: string;
|
|
@@ -2144,8 +2144,9 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
|
|
|
2144
2144
|
decidedAt: z.ZodString;
|
|
2145
2145
|
taskRevision: z.ZodNumber;
|
|
2146
2146
|
}, "strict", z.ZodTypeAny, {
|
|
2147
|
-
|
|
2147
|
+
taskId: string;
|
|
2148
2148
|
requestId: string;
|
|
2149
|
+
outcome: "accept" | "rework";
|
|
2149
2150
|
expectedRevision: number;
|
|
2150
2151
|
evidence: ({
|
|
2151
2152
|
type: "artifact";
|
|
@@ -2161,7 +2162,6 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
|
|
|
2161
2162
|
snapshotId: string;
|
|
2162
2163
|
})[];
|
|
2163
2164
|
decidedAt: string;
|
|
2164
|
-
taskId: string;
|
|
2165
2165
|
implementationExecutionId: string;
|
|
2166
2166
|
specificationDigest: string;
|
|
2167
2167
|
rationale: string;
|
|
@@ -2177,8 +2177,9 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
|
|
|
2177
2177
|
invocationId: string;
|
|
2178
2178
|
} | undefined;
|
|
2179
2179
|
}, {
|
|
2180
|
-
|
|
2180
|
+
taskId: string;
|
|
2181
2181
|
requestId: string;
|
|
2182
|
+
outcome: "accept" | "rework";
|
|
2182
2183
|
expectedRevision: number;
|
|
2183
2184
|
evidence: ({
|
|
2184
2185
|
type: "artifact";
|
|
@@ -2194,7 +2195,6 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
|
|
|
2194
2195
|
snapshotId: string;
|
|
2195
2196
|
})[];
|
|
2196
2197
|
decidedAt: string;
|
|
2197
|
-
taskId: string;
|
|
2198
2198
|
implementationExecutionId: string;
|
|
2199
2199
|
specificationDigest: string;
|
|
2200
2200
|
rationale: string;
|
|
@@ -9,18 +9,18 @@ export declare const sandboxRuntimeTargetSchema: z.ZodObject<{
|
|
|
9
9
|
environmentId: z.ZodString;
|
|
10
10
|
runtimeRef: z.ZodString;
|
|
11
11
|
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
kind?: "host" | "engine";
|
|
13
12
|
version?: 1;
|
|
14
13
|
provider?: string;
|
|
15
14
|
generation?: string;
|
|
15
|
+
kind?: "host" | "engine";
|
|
16
16
|
environmentId?: string;
|
|
17
17
|
runtimeProfile?: string;
|
|
18
18
|
runtimeRef?: string;
|
|
19
19
|
}, {
|
|
20
|
-
kind?: "host" | "engine";
|
|
21
20
|
version?: 1;
|
|
22
21
|
provider?: string;
|
|
23
22
|
generation?: string;
|
|
23
|
+
kind?: "host" | "engine";
|
|
24
24
|
environmentId?: string;
|
|
25
25
|
runtimeProfile?: string;
|
|
26
26
|
runtimeRef?: string;
|
|
@@ -38,18 +38,18 @@ export declare const sandboxRuntimeEvidenceSchema: z.ZodObject<{
|
|
|
38
38
|
environmentId: z.ZodString;
|
|
39
39
|
runtimeRef: z.ZodString;
|
|
40
40
|
}, "strict", z.ZodTypeAny, {
|
|
41
|
-
kind?: "host" | "engine";
|
|
42
41
|
version?: 1;
|
|
43
42
|
provider?: string;
|
|
44
43
|
generation?: string;
|
|
44
|
+
kind?: "host" | "engine";
|
|
45
45
|
environmentId?: string;
|
|
46
46
|
runtimeProfile?: string;
|
|
47
47
|
runtimeRef?: string;
|
|
48
48
|
}, {
|
|
49
|
-
kind?: "host" | "engine";
|
|
50
49
|
version?: 1;
|
|
51
50
|
provider?: string;
|
|
52
51
|
generation?: string;
|
|
52
|
+
kind?: "host" | "engine";
|
|
53
53
|
environmentId?: string;
|
|
54
54
|
runtimeProfile?: string;
|
|
55
55
|
runtimeRef?: string;
|
|
@@ -59,10 +59,10 @@ export declare const sandboxRuntimeEvidenceSchema: z.ZodObject<{
|
|
|
59
59
|
}, "strict", z.ZodTypeAny, {
|
|
60
60
|
version?: 1;
|
|
61
61
|
target?: {
|
|
62
|
-
kind?: "host" | "engine";
|
|
63
62
|
version?: 1;
|
|
64
63
|
provider?: string;
|
|
65
64
|
generation?: string;
|
|
65
|
+
kind?: "host" | "engine";
|
|
66
66
|
environmentId?: string;
|
|
67
67
|
runtimeProfile?: string;
|
|
68
68
|
runtimeRef?: string;
|
|
@@ -72,10 +72,10 @@ export declare const sandboxRuntimeEvidenceSchema: z.ZodObject<{
|
|
|
72
72
|
}, {
|
|
73
73
|
version?: 1;
|
|
74
74
|
target?: {
|
|
75
|
-
kind?: "host" | "engine";
|
|
76
75
|
version?: 1;
|
|
77
76
|
provider?: string;
|
|
78
77
|
generation?: string;
|
|
78
|
+
kind?: "host" | "engine";
|
|
79
79
|
environmentId?: string;
|
|
80
80
|
runtimeProfile?: string;
|
|
81
81
|
runtimeRef?: string;
|
|
@@ -68,14 +68,14 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
68
68
|
bindingId: z.ZodString;
|
|
69
69
|
bindingVersion: z.ZodString;
|
|
70
70
|
}, "strict", z.ZodTypeAny, {
|
|
71
|
-
kind?: "agent-plugin";
|
|
72
71
|
name?: string;
|
|
72
|
+
kind?: "agent-plugin";
|
|
73
73
|
digest?: string;
|
|
74
74
|
bindingId?: string;
|
|
75
75
|
bindingVersion?: string;
|
|
76
76
|
}, {
|
|
77
|
-
kind?: "agent-plugin";
|
|
78
77
|
name?: string;
|
|
78
|
+
kind?: "agent-plugin";
|
|
79
79
|
digest?: string;
|
|
80
80
|
bindingId?: string;
|
|
81
81
|
bindingVersion?: string;
|
|
@@ -84,30 +84,30 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
84
84
|
kind: z.ZodEnum<["middleware", "sandbox", "toolset"]>;
|
|
85
85
|
key: z.ZodString;
|
|
86
86
|
}, "strict", z.ZodTypeAny, {
|
|
87
|
-
kind?: "toolset" | "sandbox" | "middleware";
|
|
88
87
|
key?: string;
|
|
88
|
+
kind?: "middleware" | "toolset" | "sandbox";
|
|
89
89
|
}, {
|
|
90
|
-
kind?: "toolset" | "sandbox" | "middleware";
|
|
91
90
|
key?: string;
|
|
91
|
+
kind?: "middleware" | "toolset" | "sandbox";
|
|
92
92
|
}>, "many">>;
|
|
93
93
|
components: z.ZodArray<z.ZodObject<{
|
|
94
94
|
type: z.ZodEnum<["skill", "mcp_server", "toolset", "app", "hook", "asset"]>;
|
|
95
95
|
key: z.ZodString;
|
|
96
96
|
hash: z.ZodString;
|
|
97
97
|
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
|
|
99
|
-
type?: "toolset" | "skill" | "app" | "asset" | "mcp_server" | "hook";
|
|
98
|
+
type?: "skill" | "toolset" | "app" | "asset" | "mcp_server" | "hook";
|
|
100
99
|
hash?: string;
|
|
101
|
-
}, {
|
|
102
100
|
key?: string;
|
|
103
|
-
|
|
101
|
+
}, {
|
|
102
|
+
type?: "skill" | "toolset" | "app" | "asset" | "mcp_server" | "hook";
|
|
104
103
|
hash?: string;
|
|
104
|
+
key?: string;
|
|
105
105
|
}>, "many">;
|
|
106
106
|
}, "strict", z.ZodTypeAny, {
|
|
107
107
|
version?: string;
|
|
108
108
|
source?: {
|
|
109
|
-
kind?: "agent-plugin";
|
|
110
109
|
name?: string;
|
|
110
|
+
kind?: "agent-plugin";
|
|
111
111
|
digest?: string;
|
|
112
112
|
bindingId?: string;
|
|
113
113
|
bindingVersion?: string;
|
|
@@ -115,19 +115,19 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
115
115
|
pluginName?: string;
|
|
116
116
|
requiredVersion?: string;
|
|
117
117
|
providers?: {
|
|
118
|
-
kind?: "toolset" | "sandbox" | "middleware";
|
|
119
118
|
key?: string;
|
|
119
|
+
kind?: "middleware" | "toolset" | "sandbox";
|
|
120
120
|
}[];
|
|
121
121
|
components?: {
|
|
122
|
-
|
|
123
|
-
type?: "toolset" | "skill" | "app" | "asset" | "mcp_server" | "hook";
|
|
122
|
+
type?: "skill" | "toolset" | "app" | "asset" | "mcp_server" | "hook";
|
|
124
123
|
hash?: string;
|
|
124
|
+
key?: string;
|
|
125
125
|
}[];
|
|
126
126
|
}, {
|
|
127
127
|
version?: string;
|
|
128
128
|
source?: {
|
|
129
|
-
kind?: "agent-plugin";
|
|
130
129
|
name?: string;
|
|
130
|
+
kind?: "agent-plugin";
|
|
131
131
|
digest?: string;
|
|
132
132
|
bindingId?: string;
|
|
133
133
|
bindingVersion?: string;
|
|
@@ -135,13 +135,13 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
135
135
|
pluginName?: string;
|
|
136
136
|
requiredVersion?: string;
|
|
137
137
|
providers?: {
|
|
138
|
-
kind?: "toolset" | "sandbox" | "middleware";
|
|
139
138
|
key?: string;
|
|
139
|
+
kind?: "middleware" | "toolset" | "sandbox";
|
|
140
140
|
}[];
|
|
141
141
|
components?: {
|
|
142
|
-
|
|
143
|
-
type?: "toolset" | "skill" | "app" | "asset" | "mcp_server" | "hook";
|
|
142
|
+
type?: "skill" | "toolset" | "app" | "asset" | "mcp_server" | "hook";
|
|
144
143
|
hash?: string;
|
|
144
|
+
key?: string;
|
|
145
145
|
}[];
|
|
146
146
|
}>, "many">;
|
|
147
147
|
export type TemplateDependencyLock = z.output<typeof templateDependencyLocksSchema>[number];
|
|
@@ -6,14 +6,14 @@ export declare const templatePublicationInputSchema: z.ZodObject<{
|
|
|
6
6
|
version: z.ZodString;
|
|
7
7
|
releaseNotes: z.ZodDefault<z.ZodString>;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
revision?: string;
|
|
10
9
|
version?: string;
|
|
10
|
+
revision?: string;
|
|
11
11
|
contentHash?: string;
|
|
12
12
|
visibility?: "public" | "team";
|
|
13
13
|
releaseNotes?: string;
|
|
14
14
|
}, {
|
|
15
|
-
revision?: string;
|
|
16
15
|
version?: string;
|
|
16
|
+
revision?: string;
|
|
17
17
|
contentHash?: string;
|
|
18
18
|
visibility?: "public" | "team";
|
|
19
19
|
releaseNotes?: string;
|
|
@@ -58,11 +58,11 @@ export declare const threadControlViewSchema: z.ZodObject<{
|
|
|
58
58
|
}>;
|
|
59
59
|
pauseId: z.ZodOptional<z.ZodString>;
|
|
60
60
|
}, "strict", z.ZodTypeAny, {
|
|
61
|
-
revision?: string;
|
|
62
61
|
version?: 1;
|
|
62
|
+
revision?: string;
|
|
63
63
|
threadId?: string;
|
|
64
64
|
runId?: string;
|
|
65
|
-
state?: "idle" | "
|
|
65
|
+
state?: "idle" | "completed" | "failed" | "pausing" | "paused" | "running" | "stopping" | "input_required" | "settling" | "confirming" | "stopped";
|
|
66
66
|
actions?: {
|
|
67
67
|
canPause?: boolean;
|
|
68
68
|
canResume?: boolean;
|
|
@@ -74,11 +74,11 @@ export declare const threadControlViewSchema: z.ZodObject<{
|
|
|
74
74
|
};
|
|
75
75
|
pauseId?: string;
|
|
76
76
|
}, {
|
|
77
|
-
revision?: string;
|
|
78
77
|
version?: 1;
|
|
78
|
+
revision?: string;
|
|
79
79
|
threadId?: string;
|
|
80
80
|
runId?: string;
|
|
81
|
-
state?: "idle" | "
|
|
81
|
+
state?: "idle" | "completed" | "failed" | "pausing" | "paused" | "running" | "stopping" | "input_required" | "settling" | "confirming" | "stopped";
|
|
82
82
|
actions?: {
|
|
83
83
|
canPause?: boolean;
|
|
84
84
|
canResume?: boolean;
|
|
@@ -115,17 +115,22 @@ export declare enum XpertAgentExecutionStatusEnum {
|
|
|
115
115
|
export type TAgentExecutionMetadata = {
|
|
116
116
|
/** Host-created result continuation; its inbox claim proves the originating execution. */
|
|
117
117
|
runtimeContinuation?: {
|
|
118
|
+
/** Durable runtime inbox entry whose claim identifies this continuation and its source invocation. */
|
|
118
119
|
inboxId: string;
|
|
119
120
|
};
|
|
120
121
|
/** Written atomically with root checkpoints, not by message/execution finalizers. */
|
|
121
122
|
recovery?: import('./chat-recovery.model').TChatExecutionRecovery;
|
|
123
|
+
/** Agent-plugin template provenance retained for the Assistant used by this execution. */
|
|
122
124
|
templateSource?: import('../agent-plugin').TemplateAgentSource;
|
|
125
|
+
/** Reported business outcome, separate from process completion and the execution status. */
|
|
123
126
|
businessOutcome?: import('@xpert-ai/chatkit-types').TAgentExecutionOutcome;
|
|
124
127
|
/** Recorded by the invocation boundary; never inferred from agent names. */
|
|
125
128
|
invocationKind?: 'external_assistant' | 'sub_agent';
|
|
126
129
|
/** Tool call in the parent execution that started this run. Omit for workflow-driven runs. */
|
|
127
130
|
sourceToolCallId?: string;
|
|
131
|
+
/** Assistant display name captured for execution history and live presentation. */
|
|
128
132
|
assistantName?: string;
|
|
133
|
+
/** Assistant avatar captured with the display name; not an identity or authorization source. */
|
|
129
134
|
assistantAvatar?: TAvatar;
|
|
130
135
|
/**
|
|
131
136
|
* AI model provider
|
|
@@ -137,31 +142,55 @@ export type TAgentExecutionMetadata = {
|
|
|
137
142
|
model?: string;
|
|
138
143
|
/** Opaque Assistant model option used by the base and Primary models. */
|
|
139
144
|
primaryModelId?: string;
|
|
145
|
+
/** Whether model selection came from an explicit choice, preference, default, retry or fallback. */
|
|
140
146
|
primaryModelSource?: import('./assistant-model.model').TAssistantPrimaryModelSelectionSource;
|
|
141
147
|
/** Sanitized model snapshot used to keep resume and retry deterministic. */
|
|
142
148
|
primaryModelSnapshot?: Pick<import('./copilot-model.model').TCopilotModel, 'copilotId' | 'modelType' | 'model' | 'options'>;
|
|
149
|
+
/** Audited entry-point category, with adapter-specific values retained for compatibility. */
|
|
143
150
|
triggerSource?: 'integration' | 'channel' | 'api' | 'job' | 'trigger' | string;
|
|
151
|
+
/** Originating integration resolved from the source audit or trusted runtime principal. */
|
|
144
152
|
sourceIntegrationId?: string;
|
|
153
|
+
/** Integration supplied by the caller; defaults to sourceIntegrationId when absent. */
|
|
145
154
|
integrationId?: string;
|
|
155
|
+
/** Source channel type recorded by the channel adapter. */
|
|
146
156
|
channelType?: string;
|
|
157
|
+
/** Adapter-specific channel ingress label, normalized from channelSource or channel_source. */
|
|
147
158
|
channelSource?: string;
|
|
159
|
+
/** Original caller-supplied entry-point label, retained alongside normalized triggerSource. */
|
|
148
160
|
from?: string;
|
|
161
|
+
/** End-user identifier in the originating client or channel, not a platform user grant. */
|
|
149
162
|
fromEndUserId?: string;
|
|
163
|
+
/** User identifier supplied by the channel adapter. */
|
|
150
164
|
channelUserId?: string;
|
|
165
|
+
/** Opaque UUID forwarded by a source adapter; not the platform execution ID. */
|
|
151
166
|
uuid?: string;
|
|
167
|
+
/** WeChat account owner identifier forwarded by a compatible channel adapter. */
|
|
152
168
|
ownerWxid?: string;
|
|
169
|
+
/** Source-channel contact identifier, normalized from contactId or contact_id. */
|
|
153
170
|
contactId?: string;
|
|
171
|
+
/** Source-channel conversation identifier, normalized from chatId or chat_id. */
|
|
154
172
|
chatId?: string;
|
|
173
|
+
/** Source-channel conversation type, normalized from chatType or chat_type. */
|
|
155
174
|
chatType?: string;
|
|
175
|
+
/** Source-channel message sender identifier, normalized from senderId or sender_id. */
|
|
156
176
|
senderId?: string;
|
|
177
|
+
/** Deduplicated inbound message-log identifiers used to trace this execution's source. */
|
|
157
178
|
sourceMessageLogIds?: string[];
|
|
179
|
+
/** Handoff message that dispatched this execution. */
|
|
158
180
|
handoffMessageId?: string;
|
|
181
|
+
/** Trace identifier correlating related handoff messages and executions. */
|
|
159
182
|
handoffTraceId?: string;
|
|
183
|
+
/** Parent handoff message identifier for the dispatch chain. */
|
|
160
184
|
handoffParentMessageId?: string;
|
|
185
|
+
/** Runtime principal type captured for audit; does not itself grant permission. */
|
|
161
186
|
runtimePrincipalType?: string;
|
|
187
|
+
/** Assistant identity from the trusted runtime principal, retained for source auditing. */
|
|
162
188
|
runtimePrincipalXpertId?: string;
|
|
163
189
|
/** Root execution this run continued after a durable thread pause. */
|
|
164
190
|
resumedFromExecutionId?: string;
|
|
191
|
+
/** Host-validated root execution whose original input was retried in this new run. */
|
|
192
|
+
retriedFromExecutionId?: string;
|
|
193
|
+
/** Extension metadata; consumers must validate unknown values before using them. */
|
|
165
194
|
[key: string]: unknown;
|
|
166
195
|
};
|
|
167
196
|
/** Public execution summary shared by live events and conversation history. */
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
import type { JSONValue } from '../core.model';
|
|
1
2
|
import type { JSONSchema4 } from 'json-schema';
|
|
2
3
|
import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
3
4
|
import { I18nObject } from '../types';
|
|
4
5
|
import { DefaultModelRole, LegacyProviderRole } from './default-model-role';
|
|
5
6
|
import { TAvatar } from '../types';
|
|
6
7
|
import { IXpertToolset } from './xpert-toolset.model';
|
|
8
|
+
/**
|
|
9
|
+
* Set metadata.publicToolPresentation on the registered server-side tool.
|
|
10
|
+
* Callbacks return only JSON safe for conversation participants. An omitted
|
|
11
|
+
* phase or undefined return publishes no details. No callback is serialized.
|
|
12
|
+
*/
|
|
13
|
+
export interface PublicToolPresentation {
|
|
14
|
+
tool: string;
|
|
15
|
+
input?: (args: unknown) => JSONValue | undefined;
|
|
16
|
+
output?: (content: unknown) => JSONValue | undefined;
|
|
17
|
+
error?: (error: unknown) => string | undefined;
|
|
18
|
+
}
|
|
7
19
|
/**
|
|
8
20
|
* Tools for Xpert
|
|
9
21
|
*/
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { EventDecision, PluginAgentEvent } from './agent-event.schema';
|
|
2
|
-
import type { I18nObject, IconDefinition } from '
|
|
3
|
-
import type { IBasePerTenantAndOrganizationEntityModel } from '
|
|
2
|
+
import type { I18nObject, IconDefinition } from '../types';
|
|
3
|
+
import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
4
4
|
export * from './agent-event.schema';
|
|
5
|
+
/**
|
|
6
|
+
* Connects a plugin source to a published assistant under one user's workspace and project scope.
|
|
7
|
+
* The host checks this binding when accepting events and again when dispatching work.
|
|
8
|
+
*/
|
|
5
9
|
export interface IAgentEventBinding extends IBasePerTenantAndOrganizationEntityModel {
|
|
6
10
|
id: string;
|
|
7
11
|
tenantId: string;
|
|
@@ -12,8 +16,11 @@ export interface IAgentEventBinding extends IBasePerTenantAndOrganizationEntityM
|
|
|
12
16
|
userId: string;
|
|
13
17
|
plugin: string;
|
|
14
18
|
adapter: string;
|
|
19
|
+
/** Plugin-owned identifier of the configured source, such as a repository or a procurement case. */
|
|
15
20
|
sourceBindingRef: string;
|
|
21
|
+
/** Identifies the assistant publication used to configure the binding. */
|
|
16
22
|
publishedAt: Date;
|
|
23
|
+
/** Configuration generation carried by events so the host can detect a changed binding. */
|
|
17
24
|
revision: number;
|
|
18
25
|
state: 'configuring' | 'enabled' | 'paused' | 'revoked';
|
|
19
26
|
nextScan: Date;
|
|
@@ -21,6 +28,10 @@ export interface IAgentEventBinding extends IBasePerTenantAndOrganizationEntityM
|
|
|
21
28
|
lastScanAt: Date | null;
|
|
22
29
|
lastError: string | null;
|
|
23
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* The host processes receipts in sequence for each subject within a binding. Workers claim a
|
|
33
|
+
* lease on this partition so different subjects can progress independently across instances.
|
|
34
|
+
*/
|
|
24
35
|
export interface IAgentEventPartition extends IBasePerTenantAndOrganizationEntityModel {
|
|
25
36
|
id: string;
|
|
26
37
|
tenantId: string;
|
|
@@ -29,9 +40,14 @@ export interface IAgentEventPartition extends IBasePerTenantAndOrganizationEntit
|
|
|
29
40
|
kind: string;
|
|
30
41
|
subject: string;
|
|
31
42
|
owner: string | null;
|
|
43
|
+
/** Lease generation. Completion is accepted only from the owner of the current, unexpired lease. */
|
|
32
44
|
fence: string;
|
|
33
45
|
expires: Date | null;
|
|
34
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* The host's durable receipt for one accepted source event. Redelivery with the same envelope
|
|
49
|
+
* and sourceEventId in this binding returns this receipt. Processing attempts share its id.
|
|
50
|
+
*/
|
|
35
51
|
export interface IAgentEventInbox extends IBasePerTenantAndOrganizationEntityModel {
|
|
36
52
|
id: string;
|
|
37
53
|
tenantId: string;
|
|
@@ -40,7 +56,9 @@ export interface IAgentEventInbox extends IBasePerTenantAndOrganizationEntityMod
|
|
|
40
56
|
partition: string;
|
|
41
57
|
sourceEventId: string;
|
|
42
58
|
event: PluginAgentEvent;
|
|
59
|
+
/** Digest of the accepted envelope used to detect conflicting reuse of a sourceEventId. */
|
|
43
60
|
fingerprint: string;
|
|
61
|
+
/** Host-assigned sequence that orders receipts for dispatch within a partition. */
|
|
44
62
|
seq: string;
|
|
45
63
|
state: 'pending' | 'processing' | 'retry_wait' | 'isolated' | EventDecision['status'];
|
|
46
64
|
attempt: number;
|
|
@@ -50,6 +68,10 @@ export interface IAgentEventInbox extends IBasePerTenantAndOrganizationEntityMod
|
|
|
50
68
|
decision: EventDecision | null;
|
|
51
69
|
error: string | null;
|
|
52
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Localized identity of an event type in the inbox. Types that should share a navigation
|
|
73
|
+
* filter use the same stable category key across plugins and locales.
|
|
74
|
+
*/
|
|
53
75
|
export interface AgentEventTypeDisplay {
|
|
54
76
|
label: I18nObject;
|
|
55
77
|
icon: IconDefinition;
|
|
@@ -59,16 +81,24 @@ export interface AgentEventTypeDisplay {
|
|
|
59
81
|
icon: IconDefinition;
|
|
60
82
|
};
|
|
61
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Declares an event a source can publish and handle. The host admits a new event only when
|
|
86
|
+
* its type and schemaVersion match a declaration from the bound source.
|
|
87
|
+
*/
|
|
62
88
|
export interface AgentEventTypeDefinition {
|
|
63
89
|
type: string;
|
|
64
90
|
schemaVersion: number;
|
|
65
91
|
display?: AgentEventTypeDisplay;
|
|
66
92
|
}
|
|
67
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Details a source can show the current viewer for a receipt. The source resolves its domain
|
|
95
|
+
* data at read time, so a change in access also changes which details the inbox can show.
|
|
96
|
+
*/
|
|
68
97
|
export interface AgentEventPresentation {
|
|
69
|
-
/**
|
|
98
|
+
/** Originating conversation and optional branch. The host checks access before offering navigation. */
|
|
70
99
|
conversation?: {
|
|
71
100
|
conversationId: string;
|
|
101
|
+
threadId?: string;
|
|
72
102
|
};
|
|
73
103
|
title: string;
|
|
74
104
|
fields?: {
|
|
@@ -83,6 +113,9 @@ export interface AgentEventPresentation {
|
|
|
83
113
|
}[];
|
|
84
114
|
};
|
|
85
115
|
}
|
|
116
|
+
/** Host feature used to activate the assistant workbench inbox. */
|
|
86
117
|
export declare const EVENT_INBOX_FEATURE = "platform.event-inbox";
|
|
118
|
+
/** Personal host slot for a user's inbox across assistants. */
|
|
87
119
|
export declare const USER_EVENT_INBOX_SLOT = "user.event-inbox";
|
|
120
|
+
/** Built-in remote view shared by the assistant workbench and personal inbox entry points. */
|
|
88
121
|
export declare const EVENT_INBOX_VIEW_KEY = "platform.event-inbox__inbox";
|