@contractspec/example.agent-console 1.45.1 → 1.45.2
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/.turbo/turbo-build$colon$bundle.log +1 -1
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +9 -0
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.event.d.ts +25 -25
- package/dist/tool/tool.operation.d.ts +101 -101
- package/package.json +5 -9
- package/tsconfig.tsbuildinfo +1 -1
package/dist/run/run.entity.d.ts
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema325 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/run/run.entity.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Run status enum for entities.
|
|
6
6
|
*/
|
|
7
|
-
declare const RunStatusEntityEnum:
|
|
7
|
+
declare const RunStatusEntityEnum: _contractspec_lib_schema325.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Run step type enum for entities.
|
|
10
10
|
*/
|
|
11
|
-
declare const RunStepTypeEntityEnum:
|
|
11
|
+
declare const RunStepTypeEntityEnum: _contractspec_lib_schema325.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Log level enum for entities.
|
|
14
14
|
*/
|
|
15
|
-
declare const LogLevelEntityEnum:
|
|
15
|
+
declare const LogLevelEntityEnum: _contractspec_lib_schema325.EntityEnumDef;
|
|
16
16
|
/**
|
|
17
17
|
* Run entity - Represents an agent execution.
|
|
18
18
|
*/
|
|
19
|
-
declare const RunEntity:
|
|
20
|
-
id:
|
|
21
|
-
organizationId:
|
|
22
|
-
agentId:
|
|
23
|
-
userId:
|
|
24
|
-
sessionId:
|
|
25
|
-
input:
|
|
26
|
-
output:
|
|
27
|
-
status:
|
|
28
|
-
errorMessage:
|
|
29
|
-
errorCode:
|
|
30
|
-
totalTokens:
|
|
31
|
-
promptTokens:
|
|
32
|
-
completionTokens:
|
|
33
|
-
totalIterations:
|
|
34
|
-
durationMs:
|
|
35
|
-
estimatedCostUsd:
|
|
36
|
-
queuedAt:
|
|
37
|
-
startedAt:
|
|
38
|
-
completedAt:
|
|
39
|
-
metadata:
|
|
40
|
-
agent:
|
|
41
|
-
steps:
|
|
42
|
-
logs:
|
|
19
|
+
declare const RunEntity: _contractspec_lib_schema325.EntitySpec<{
|
|
20
|
+
id: _contractspec_lib_schema325.EntityScalarField;
|
|
21
|
+
organizationId: _contractspec_lib_schema325.EntityScalarField;
|
|
22
|
+
agentId: _contractspec_lib_schema325.EntityScalarField;
|
|
23
|
+
userId: _contractspec_lib_schema325.EntityScalarField;
|
|
24
|
+
sessionId: _contractspec_lib_schema325.EntityScalarField;
|
|
25
|
+
input: _contractspec_lib_schema325.EntityScalarField;
|
|
26
|
+
output: _contractspec_lib_schema325.EntityScalarField;
|
|
27
|
+
status: _contractspec_lib_schema325.EntityEnumField;
|
|
28
|
+
errorMessage: _contractspec_lib_schema325.EntityScalarField;
|
|
29
|
+
errorCode: _contractspec_lib_schema325.EntityScalarField;
|
|
30
|
+
totalTokens: _contractspec_lib_schema325.EntityScalarField;
|
|
31
|
+
promptTokens: _contractspec_lib_schema325.EntityScalarField;
|
|
32
|
+
completionTokens: _contractspec_lib_schema325.EntityScalarField;
|
|
33
|
+
totalIterations: _contractspec_lib_schema325.EntityScalarField;
|
|
34
|
+
durationMs: _contractspec_lib_schema325.EntityScalarField;
|
|
35
|
+
estimatedCostUsd: _contractspec_lib_schema325.EntityScalarField;
|
|
36
|
+
queuedAt: _contractspec_lib_schema325.EntityScalarField;
|
|
37
|
+
startedAt: _contractspec_lib_schema325.EntityScalarField;
|
|
38
|
+
completedAt: _contractspec_lib_schema325.EntityScalarField;
|
|
39
|
+
metadata: _contractspec_lib_schema325.EntityScalarField;
|
|
40
|
+
agent: _contractspec_lib_schema325.EntityRelationField;
|
|
41
|
+
steps: _contractspec_lib_schema325.EntityRelationField;
|
|
42
|
+
logs: _contractspec_lib_schema325.EntityRelationField;
|
|
43
43
|
}>;
|
|
44
44
|
/**
|
|
45
45
|
* RunStep entity - Individual step in a run.
|
|
46
46
|
*/
|
|
47
|
-
declare const RunStepEntity:
|
|
48
|
-
id:
|
|
49
|
-
runId:
|
|
50
|
-
stepNumber:
|
|
51
|
-
type:
|
|
52
|
-
toolId:
|
|
53
|
-
toolName:
|
|
54
|
-
input:
|
|
55
|
-
output:
|
|
56
|
-
status:
|
|
57
|
-
errorMessage:
|
|
58
|
-
tokensUsed:
|
|
59
|
-
durationMs:
|
|
60
|
-
startedAt:
|
|
61
|
-
completedAt:
|
|
62
|
-
run:
|
|
47
|
+
declare const RunStepEntity: _contractspec_lib_schema325.EntitySpec<{
|
|
48
|
+
id: _contractspec_lib_schema325.EntityScalarField;
|
|
49
|
+
runId: _contractspec_lib_schema325.EntityScalarField;
|
|
50
|
+
stepNumber: _contractspec_lib_schema325.EntityScalarField;
|
|
51
|
+
type: _contractspec_lib_schema325.EntityEnumField;
|
|
52
|
+
toolId: _contractspec_lib_schema325.EntityScalarField;
|
|
53
|
+
toolName: _contractspec_lib_schema325.EntityScalarField;
|
|
54
|
+
input: _contractspec_lib_schema325.EntityScalarField;
|
|
55
|
+
output: _contractspec_lib_schema325.EntityScalarField;
|
|
56
|
+
status: _contractspec_lib_schema325.EntityEnumField;
|
|
57
|
+
errorMessage: _contractspec_lib_schema325.EntityScalarField;
|
|
58
|
+
tokensUsed: _contractspec_lib_schema325.EntityScalarField;
|
|
59
|
+
durationMs: _contractspec_lib_schema325.EntityScalarField;
|
|
60
|
+
startedAt: _contractspec_lib_schema325.EntityScalarField;
|
|
61
|
+
completedAt: _contractspec_lib_schema325.EntityScalarField;
|
|
62
|
+
run: _contractspec_lib_schema325.EntityRelationField;
|
|
63
63
|
}>;
|
|
64
64
|
/**
|
|
65
65
|
* RunLog entity - Log entry for a run.
|
|
66
66
|
*/
|
|
67
|
-
declare const RunLogEntity:
|
|
68
|
-
id:
|
|
69
|
-
runId:
|
|
70
|
-
stepId:
|
|
71
|
-
level:
|
|
72
|
-
message:
|
|
73
|
-
data:
|
|
74
|
-
source:
|
|
75
|
-
traceId:
|
|
76
|
-
spanId:
|
|
77
|
-
timestamp:
|
|
78
|
-
run:
|
|
67
|
+
declare const RunLogEntity: _contractspec_lib_schema325.EntitySpec<{
|
|
68
|
+
id: _contractspec_lib_schema325.EntityScalarField;
|
|
69
|
+
runId: _contractspec_lib_schema325.EntityScalarField;
|
|
70
|
+
stepId: _contractspec_lib_schema325.EntityScalarField;
|
|
71
|
+
level: _contractspec_lib_schema325.EntityEnumField;
|
|
72
|
+
message: _contractspec_lib_schema325.EntityScalarField;
|
|
73
|
+
data: _contractspec_lib_schema325.EntityScalarField;
|
|
74
|
+
source: _contractspec_lib_schema325.EntityScalarField;
|
|
75
|
+
traceId: _contractspec_lib_schema325.EntityScalarField;
|
|
76
|
+
spanId: _contractspec_lib_schema325.EntityScalarField;
|
|
77
|
+
timestamp: _contractspec_lib_schema325.EntityScalarField;
|
|
78
|
+
run: _contractspec_lib_schema325.EntityRelationField;
|
|
79
79
|
}>;
|
|
80
80
|
//#endregion
|
|
81
81
|
export { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum };
|
package/dist/run/run.enum.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema380 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/run/run.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Run status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const RunStatusEnum:
|
|
7
|
+
declare const RunStatusEnum: _contractspec_lib_schema380.EnumType<[string, string, string, string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Run step type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const RunStepTypeEnum:
|
|
11
|
+
declare const RunStepTypeEnum: _contractspec_lib_schema380.EnumType<[string, string, string, string]>;
|
|
12
12
|
/**
|
|
13
13
|
* Log level enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const LogLevelEnum:
|
|
15
|
+
declare const LogLevelEnum: _contractspec_lib_schema380.EnumType<[string, string, string, string]>;
|
|
16
16
|
/**
|
|
17
17
|
* Granularity enum for metrics.
|
|
18
18
|
*/
|
|
19
|
-
declare const GranularityEnum:
|
|
19
|
+
declare const GranularityEnum: _contractspec_lib_schema380.EnumType<[string, string, string, string]>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { GranularityEnum, LogLevelEnum, RunStatusEnum, RunStepTypeEnum };
|
|
22
22
|
//# sourceMappingURL=run.enum.d.ts.map
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema724 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.entity.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tool category enum for entities.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolCategoryEntityEnum:
|
|
7
|
+
declare const ToolCategoryEntityEnum: _contractspec_lib_schema724.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Tool status enum for entities.
|
|
10
10
|
*/
|
|
11
|
-
declare const ToolStatusEntityEnum:
|
|
11
|
+
declare const ToolStatusEntityEnum: _contractspec_lib_schema724.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Implementation type enum for entities.
|
|
14
14
|
*/
|
|
15
|
-
declare const ImplementationTypeEntityEnum:
|
|
15
|
+
declare const ImplementationTypeEntityEnum: _contractspec_lib_schema724.EntityEnumDef;
|
|
16
16
|
/**
|
|
17
17
|
* Tool entity - Represents an AI tool definition.
|
|
18
18
|
*/
|
|
19
|
-
declare const ToolEntity:
|
|
20
|
-
id:
|
|
21
|
-
organizationId:
|
|
22
|
-
name:
|
|
23
|
-
slug:
|
|
24
|
-
description:
|
|
25
|
-
category:
|
|
26
|
-
status:
|
|
27
|
-
parametersSchema:
|
|
28
|
-
outputSchema:
|
|
29
|
-
implementationType:
|
|
30
|
-
implementationConfig:
|
|
31
|
-
maxInvocationsPerMinute:
|
|
32
|
-
timeoutMs:
|
|
33
|
-
version:
|
|
34
|
-
tags:
|
|
35
|
-
createdAt:
|
|
36
|
-
updatedAt:
|
|
37
|
-
createdById:
|
|
38
|
-
agents:
|
|
19
|
+
declare const ToolEntity: _contractspec_lib_schema724.EntitySpec<{
|
|
20
|
+
id: _contractspec_lib_schema724.EntityScalarField;
|
|
21
|
+
organizationId: _contractspec_lib_schema724.EntityScalarField;
|
|
22
|
+
name: _contractspec_lib_schema724.EntityScalarField;
|
|
23
|
+
slug: _contractspec_lib_schema724.EntityScalarField;
|
|
24
|
+
description: _contractspec_lib_schema724.EntityScalarField;
|
|
25
|
+
category: _contractspec_lib_schema724.EntityEnumField;
|
|
26
|
+
status: _contractspec_lib_schema724.EntityEnumField;
|
|
27
|
+
parametersSchema: _contractspec_lib_schema724.EntityScalarField;
|
|
28
|
+
outputSchema: _contractspec_lib_schema724.EntityScalarField;
|
|
29
|
+
implementationType: _contractspec_lib_schema724.EntityEnumField;
|
|
30
|
+
implementationConfig: _contractspec_lib_schema724.EntityScalarField;
|
|
31
|
+
maxInvocationsPerMinute: _contractspec_lib_schema724.EntityScalarField;
|
|
32
|
+
timeoutMs: _contractspec_lib_schema724.EntityScalarField;
|
|
33
|
+
version: _contractspec_lib_schema724.EntityScalarField;
|
|
34
|
+
tags: _contractspec_lib_schema724.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema724.EntityScalarField;
|
|
36
|
+
updatedAt: _contractspec_lib_schema724.EntityScalarField;
|
|
37
|
+
createdById: _contractspec_lib_schema724.EntityScalarField;
|
|
38
|
+
agents: _contractspec_lib_schema724.EntityRelationField;
|
|
39
39
|
}>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum };
|
package/dist/tool/tool.enum.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema747 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tool category enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolCategoryEnum:
|
|
7
|
+
declare const ToolCategoryEnum: _contractspec_lib_schema747.EnumType<[string, string, string, string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Tool status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ToolStatusEnum:
|
|
11
|
+
declare const ToolStatusEnum: _contractspec_lib_schema747.EnumType<[string, string, string, string]>;
|
|
12
12
|
/**
|
|
13
13
|
* Implementation type enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const ImplementationTypeEnum:
|
|
15
|
+
declare const ImplementationTypeEnum: _contractspec_lib_schema747.EnumType<[string, string, string]>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum };
|
|
18
18
|
//# sourceMappingURL=tool.enum.d.ts.map
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema849 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts29 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/tool/tool.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* ToolCreatedEvent - A new tool was created.
|
|
7
7
|
*/
|
|
8
|
-
declare const ToolCreatedEvent:
|
|
8
|
+
declare const ToolCreatedEvent: _contractspec_lib_contracts29.EventSpec<_contractspec_lib_schema849.SchemaModel<{
|
|
9
9
|
id: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
organizationId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
name: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
slug: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
category: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
implementationType: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
createdById: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
35
35
|
isOptional: true;
|
|
36
36
|
};
|
|
37
37
|
createdAt: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema849.FieldType<Date, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
}>>;
|
|
42
42
|
/**
|
|
43
43
|
* ToolUpdatedEvent - A tool was updated.
|
|
44
44
|
*/
|
|
45
|
-
declare const ToolUpdatedEvent:
|
|
45
|
+
declare const ToolUpdatedEvent: _contractspec_lib_contracts29.EventSpec<_contractspec_lib_schema849.SchemaModel<{
|
|
46
46
|
id: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
organizationId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
status: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
updatedFields: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
64
64
|
isArray: true;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
updatedAt: {
|
|
68
|
-
type:
|
|
68
|
+
type: _contractspec_lib_schema849.FieldType<Date, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
}>>;
|
|
72
72
|
/**
|
|
73
73
|
* ToolStatusChangedEvent - A tool's status was changed.
|
|
74
74
|
*/
|
|
75
|
-
declare const ToolStatusChangedEvent:
|
|
75
|
+
declare const ToolStatusChangedEvent: _contractspec_lib_contracts29.EventSpec<_contractspec_lib_schema849.SchemaModel<{
|
|
76
76
|
id: {
|
|
77
|
-
type:
|
|
77
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
organizationId: {
|
|
81
|
-
type:
|
|
81
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
name: {
|
|
85
|
-
type:
|
|
85
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
previousStatus: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
newStatus: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema849.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
changedAt: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema849.FieldType<Date, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
}>>;
|