@contractspec/example.agent-console 1.44.1 → 1.45.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.
Files changed (48) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +26 -26
  2. package/.turbo/turbo-build.log +34 -34
  3. package/CHANGELOG.md +29 -0
  4. package/dist/agent/agent.event.js +4 -4
  5. package/dist/agent/agent.event.js.map +1 -1
  6. package/dist/agent/agent.operation.d.ts +1 -1
  7. package/dist/agent/agent.operation.js +7 -7
  8. package/dist/agent/agent.operation.js.map +1 -1
  9. package/dist/agent/agent.presentation.js +3 -3
  10. package/dist/agent/agent.presentation.js.map +1 -1
  11. package/dist/agent.feature.js +60 -60
  12. package/dist/agent.feature.js.map +1 -1
  13. package/dist/example.d.ts +3 -36
  14. package/dist/example.d.ts.map +1 -1
  15. package/dist/example.js +16 -11
  16. package/dist/example.js.map +1 -1
  17. package/dist/run/run.entity.d.ts +56 -56
  18. package/dist/run/run.enum.d.ts +5 -5
  19. package/dist/run/run.event.d.ts +71 -71
  20. package/dist/run/run.event.js +7 -7
  21. package/dist/run/run.event.js.map +1 -1
  22. package/dist/run/run.operation.d.ts +177 -177
  23. package/dist/run/run.operation.js +9 -9
  24. package/dist/run/run.operation.js.map +1 -1
  25. package/dist/run/run.presentation.js +2 -2
  26. package/dist/run/run.presentation.js.map +1 -1
  27. package/dist/tool/tool.entity.d.ts +24 -24
  28. package/dist/tool/tool.enum.d.ts +4 -4
  29. package/dist/tool/tool.event.js +3 -3
  30. package/dist/tool/tool.event.js.map +1 -1
  31. package/dist/tool/tool.operation.d.ts +2 -2
  32. package/dist/tool/tool.operation.js +7 -7
  33. package/dist/tool/tool.operation.js.map +1 -1
  34. package/dist/tool/tool.presentation.js +2 -2
  35. package/dist/tool/tool.presentation.js.map +1 -1
  36. package/package.json +8 -8
  37. package/src/agent/agent.event.ts +4 -4
  38. package/src/agent/agent.operation.ts +8 -8
  39. package/src/agent/agent.presentation.ts +3 -3
  40. package/src/agent.feature.ts +60 -60
  41. package/src/example.ts +16 -9
  42. package/src/run/run.event.ts +7 -7
  43. package/src/run/run.operation.ts +9 -9
  44. package/src/run/run.presentation.ts +2 -2
  45. package/src/tool/tool.event.ts +3 -3
  46. package/src/tool/tool.operation.ts +7 -7
  47. package/src/tool/tool.presentation.ts +2 -2
  48. package/tsconfig.tsbuildinfo +1 -1
@@ -6,34 +6,34 @@ $ tsdown
6
6
  ℹ tsconfig: tsconfig.json
7
7
  ℹ Build start
8
8
  ℹ Cleaning 130 files
9
- ℹ dist/run/run.operation.js 13.73 kB │ gzip: 2.61 kB
10
- ℹ dist/agent/agent.operation.js 11.72 kB │ gzip: 2.48 kB
11
- ℹ dist/tool/tool.operation.js  9.37 kB │ gzip: 2.17 kB
12
- ℹ dist/run/run.event.js  9.22 kB │ gzip: 1.22 kB
9
+ ℹ dist/run/run.operation.js 13.78 kB │ gzip: 2.62 kB
10
+ ℹ dist/agent/agent.operation.js 11.76 kB │ gzip: 2.48 kB
11
+ ℹ dist/tool/tool.operation.js  9.42 kB │ gzip: 2.17 kB
12
+ ℹ dist/run/run.event.js  9.26 kB │ gzip: 1.22 kB
13
13
  ℹ dist/agent/agent.schema.js  8.28 kB │ gzip: 0.87 kB
14
14
  ℹ dist/run/run.schema.js  6.71 kB │ gzip: 0.98 kB
15
15
  ℹ dist/run/run.entity.js  5.25 kB │ gzip: 1.39 kB
16
16
  ℹ dist/index.js  4.95 kB │ gzip: 1.05 kB
17
17
  ℹ dist/tool/tool.schema.js  4.85 kB │ gzip: 0.70 kB
18
- ℹ dist/agent/agent.event.js  4.61 kB │ gzip: 0.81 kB
19
- ℹ dist/agent.feature.js  4.43 kB │ gzip: 0.82 kB
18
+ ℹ dist/agent.feature.js  4.79 kB │ gzip: 0.83 kB
19
+ ℹ dist/agent/agent.event.js  4.64 kB │ gzip: 0.81 kB
20
20
  ℹ dist/shared/mock-tools.js  4.19 kB │ gzip: 1.21 kB
21
21
  ℹ dist/agent/agent.entity.js  3.96 kB │ gzip: 1.30 kB
22
22
  ℹ dist/docs/agent-console.docblock.js  3.72 kB │ gzip: 1.44 kB
23
- ℹ dist/tool/tool.event.js  3.57 kB │ gzip: 0.73 kB
23
+ ℹ dist/tool/tool.event.js  3.59 kB │ gzip: 0.73 kB
24
24
  ℹ dist/shared/mock-runs.js  3.15 kB │ gzip: 0.88 kB
25
25
  ℹ dist/tool/tool.entity.js  2.77 kB │ gzip: 0.96 kB
26
26
  ℹ dist/shared/mock-agents.js  2.64 kB │ gzip: 0.96 kB
27
+ ℹ dist/agent/agent.presentation.js  2.51 kB │ gzip: 0.80 kB
27
28
  ℹ dist/agent/agent.handler.js  2.50 kB │ gzip: 0.91 kB
28
- ℹ dist/agent/agent.presentation.js  2.49 kB │ gzip: 0.80 kB
29
29
  ℹ dist/tool/tool.handler.js  2.48 kB │ gzip: 0.91 kB
30
30
  ℹ dist/run/run.handler.js  2.37 kB │ gzip: 0.89 kB
31
- ℹ dist/run/run.presentation.js  1.66 kB │ gzip: 0.66 kB
32
- ℹ dist/tool/tool.presentation.js  1.65 kB │ gzip: 0.66 kB
31
+ ℹ dist/run/run.presentation.js  1.67 kB │ gzip: 0.66 kB
32
+ ℹ dist/tool/tool.presentation.js  1.67 kB │ gzip: 0.66 kB
33
33
  ℹ dist/run/index.js  1.58 kB │ gzip: 0.43 kB
34
34
  ℹ dist/agent/index.js  1.54 kB │ gzip: 0.40 kB
35
35
  ℹ dist/tool/index.js  1.30 kB │ gzip: 0.34 kB
36
- ℹ dist/example.js  1.10 kB │ gzip: 0.52 kB
36
+ ℹ dist/example.js  1.21 kB │ gzip: 0.57 kB
37
37
  ℹ dist/run/run.enum.js  0.75 kB │ gzip: 0.39 kB
38
38
  ℹ dist/tool/tool.enum.js  0.65 kB │ gzip: 0.34 kB
39
39
  ℹ dist/agent/agent.enum.js  0.60 kB │ gzip: 0.33 kB
@@ -41,31 +41,31 @@ $ tsdown
41
41
  ℹ dist/handlers/index.js  0.53 kB │ gzip: 0.17 kB
42
42
  ℹ dist/shared/index.js  0.18 kB │ gzip: 0.11 kB
43
43
  ℹ dist/docs/index.js  0.04 kB │ gzip: 0.06 kB
44
- ℹ dist/run/run.operation.js.map 22.56 kB │ gzip: 3.88 kB
45
- ℹ dist/agent/agent.operation.js.map 19.07 kB │ gzip: 3.63 kB
46
- ℹ dist/tool/tool.operation.js.map 15.39 kB │ gzip: 3.13 kB
47
- ℹ dist/run/run.event.js.map 13.94 kB │ gzip: 1.79 kB
44
+ ℹ dist/run/run.operation.js.map 22.61 kB │ gzip: 3.88 kB
45
+ ℹ dist/agent/agent.operation.js.map 19.12 kB │ gzip: 3.63 kB
46
+ ℹ dist/tool/tool.operation.js.map 15.43 kB │ gzip: 3.13 kB
47
+ ℹ dist/run/run.event.js.map 13.98 kB │ gzip: 1.80 kB
48
48
  ℹ dist/agent/agent.schema.js.map 12.73 kB │ gzip: 1.32 kB
49
49
  ℹ dist/run/run.schema.js.map 10.24 kB │ gzip: 1.52 kB
50
50
  ℹ dist/run/run.entity.js.map  8.67 kB │ gzip: 2.11 kB
51
+ ℹ dist/agent.feature.js.map  7.72 kB │ gzip: 1.53 kB
51
52
  ℹ dist/tool/tool.schema.js.map  7.44 kB │ gzip: 1.07 kB
52
- ℹ dist/agent.feature.js.map  7.36 kB │ gzip: 1.52 kB
53
- ℹ dist/agent/agent.event.js.map  6.89 kB │ gzip: 1.18 kB
53
+ ℹ dist/agent/agent.event.js.map  6.91 kB │ gzip: 1.18 kB
54
54
  ℹ dist/shared/mock-tools.js.map  6.68 kB │ gzip: 1.67 kB
55
55
  ℹ dist/agent/agent.entity.js.map  6.34 kB │ gzip: 1.85 kB
56
56
  ℹ dist/agent/agent.handler.js.map  6.21 kB │ gzip: 1.93 kB
57
- ℹ dist/tool/tool.event.js.map  5.45 kB │ gzip: 1.08 kB
57
+ ℹ dist/tool/tool.event.js.map  5.46 kB │ gzip: 1.08 kB
58
58
  ℹ dist/tool/tool.handler.js.map  5.35 kB │ gzip: 1.77 kB
59
59
  ℹ dist/run/run.handler.js.map  4.96 kB │ gzip: 1.68 kB
60
60
  ℹ dist/shared/mock-runs.js.map  4.85 kB │ gzip: 1.14 kB
61
61
  ℹ dist/docs/agent-console.docblock.js.map  4.55 kB │ gzip: 1.64 kB
62
62
  ℹ dist/tool/tool.entity.js.map  4.33 kB │ gzip: 1.37 kB
63
63
  ℹ dist/shared/mock-agents.js.map  3.91 kB │ gzip: 1.15 kB
64
- ℹ dist/agent/agent.presentation.js.map  3.79 kB │ gzip: 1.06 kB
65
- ℹ dist/tool/tool.presentation.js.map  2.56 kB │ gzip: 0.89 kB
66
- ℹ dist/run/run.presentation.js.map  2.55 kB │ gzip: 0.90 kB
64
+ ℹ dist/agent/agent.presentation.js.map  3.81 kB │ gzip: 1.07 kB
65
+ ℹ dist/tool/tool.presentation.js.map  2.57 kB │ gzip: 0.90 kB
66
+ ℹ dist/run/run.presentation.js.map  2.56 kB │ gzip: 0.90 kB
67
67
  ℹ dist/run/run.operation.d.ts.map  1.86 kB │ gzip: 0.51 kB
68
- ℹ dist/example.js.map  1.55 kB │ gzip: 0.73 kB
68
+ ℹ dist/example.js.map  1.83 kB │ gzip: 0.82 kB
69
69
  ℹ dist/agent/agent.operation.d.ts.map  1.54 kB │ gzip: 0.47 kB
70
70
  ℹ dist/tool/tool.operation.d.ts.map  1.41 kB │ gzip: 0.45 kB
71
71
  ℹ dist/run/run.event.d.ts.map  1.31 kB │ gzip: 0.42 kB
@@ -90,10 +90,10 @@ $ tsdown
90
90
  ℹ dist/tool/tool.presentation.d.ts.map  0.20 kB │ gzip: 0.16 kB
91
91
  ℹ dist/run/run.presentation.d.ts.map  0.20 kB │ gzip: 0.16 kB
92
92
  ℹ dist/agent.feature.d.ts.map  0.14 kB │ gzip: 0.13 kB
93
- ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
94
93
  ℹ dist/shared/mock-agents.d.ts.map  0.14 kB │ gzip: 0.13 kB
95
94
  ℹ dist/shared/mock-tools.d.ts.map  0.14 kB │ gzip: 0.13 kB
96
95
  ℹ dist/shared/mock-runs.d.ts.map  0.14 kB │ gzip: 0.13 kB
96
+ ℹ dist/example.d.ts.map  0.12 kB │ gzip: 0.12 kB
97
97
  ℹ dist/run/run.operation.d.ts 21.40 kB │ gzip: 1.56 kB
98
98
  ℹ dist/agent/agent.operation.d.ts 13.78 kB │ gzip: 1.20 kB
99
99
  ℹ dist/tool/tool.operation.d.ts 12.33 kB │ gzip: 1.08 kB
@@ -116,7 +116,6 @@ $ tsdown
116
116
  ℹ dist/shared/mock-agents.d.ts  1.73 kB │ gzip: 0.41 kB
117
117
  ℹ dist/run/index.d.ts  1.68 kB │ gzip: 0.46 kB
118
118
  ℹ dist/tool/index.d.ts  1.41 kB │ gzip: 0.36 kB
119
- ℹ dist/example.d.ts  1.38 kB │ gzip: 0.52 kB
120
119
  ℹ dist/run/run.enum.d.ts  0.78 kB │ gzip: 0.28 kB
121
120
  ℹ dist/tool/tool.enum.d.ts  0.65 kB │ gzip: 0.26 kB
122
121
  ℹ dist/agent/agent.presentation.d.ts  0.64 kB │ gzip: 0.28 kB
@@ -126,8 +125,9 @@ $ tsdown
126
125
  ℹ dist/tool/tool.presentation.d.ts  0.44 kB │ gzip: 0.22 kB
127
126
  ℹ dist/run/run.presentation.d.ts  0.43 kB │ gzip: 0.23 kB
128
127
  ℹ dist/agent.feature.d.ts  0.39 kB │ gzip: 0.24 kB
128
+ ℹ dist/example.d.ts  0.20 kB │ gzip: 0.16 kB
129
129
  ℹ dist/shared/index.d.ts  0.18 kB │ gzip: 0.10 kB
130
130
  ℹ dist/docs/agent-console.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
131
131
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
132
- ℹ 123 files, total: 476.26 kB
133
- ✔ Build complete in 24513ms
132
+ ℹ 123 files, total: 476.71 kB
133
+ ✔ Build complete in 27769ms
@@ -7,34 +7,34 @@ $ tsdown
7
7
  ℹ target: esnext
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/run/run.operation.js 13.73 kB │ gzip: 2.61 kB
11
- ℹ dist/agent/agent.operation.js 11.72 kB │ gzip: 2.48 kB
12
- ℹ dist/tool/tool.operation.js  9.37 kB │ gzip: 2.17 kB
13
- ℹ dist/run/run.event.js  9.22 kB │ gzip: 1.22 kB
10
+ ℹ dist/run/run.operation.js 13.78 kB │ gzip: 2.62 kB
11
+ ℹ dist/agent/agent.operation.js 11.76 kB │ gzip: 2.48 kB
12
+ ℹ dist/tool/tool.operation.js  9.42 kB │ gzip: 2.17 kB
13
+ ℹ dist/run/run.event.js  9.26 kB │ gzip: 1.22 kB
14
14
  ℹ dist/agent/agent.schema.js  8.28 kB │ gzip: 0.87 kB
15
15
  ℹ dist/run/run.schema.js  6.71 kB │ gzip: 0.98 kB
16
16
  ℹ dist/run/run.entity.js  5.25 kB │ gzip: 1.39 kB
17
17
  ℹ dist/index.js  4.95 kB │ gzip: 1.05 kB
18
18
  ℹ dist/tool/tool.schema.js  4.85 kB │ gzip: 0.70 kB
19
- ℹ dist/agent/agent.event.js  4.61 kB │ gzip: 0.81 kB
20
- ℹ dist/agent.feature.js  4.43 kB │ gzip: 0.82 kB
19
+ ℹ dist/agent.feature.js  4.79 kB │ gzip: 0.83 kB
20
+ ℹ dist/agent/agent.event.js  4.64 kB │ gzip: 0.81 kB
21
21
  ℹ dist/shared/mock-tools.js  4.19 kB │ gzip: 1.21 kB
22
22
  ℹ dist/agent/agent.entity.js  3.96 kB │ gzip: 1.30 kB
23
23
  ℹ dist/docs/agent-console.docblock.js  3.72 kB │ gzip: 1.44 kB
24
- ℹ dist/tool/tool.event.js  3.57 kB │ gzip: 0.73 kB
24
+ ℹ dist/tool/tool.event.js  3.59 kB │ gzip: 0.73 kB
25
25
  ℹ dist/shared/mock-runs.js  3.15 kB │ gzip: 0.88 kB
26
26
  ℹ dist/tool/tool.entity.js  2.77 kB │ gzip: 0.96 kB
27
27
  ℹ dist/shared/mock-agents.js  2.64 kB │ gzip: 0.96 kB
28
+ ℹ dist/agent/agent.presentation.js  2.51 kB │ gzip: 0.80 kB
28
29
  ℹ dist/agent/agent.handler.js  2.50 kB │ gzip: 0.91 kB
29
- ℹ dist/agent/agent.presentation.js  2.49 kB │ gzip: 0.80 kB
30
30
  ℹ dist/tool/tool.handler.js  2.48 kB │ gzip: 0.91 kB
31
31
  ℹ dist/run/run.handler.js  2.37 kB │ gzip: 0.89 kB
32
- ℹ dist/run/run.presentation.js  1.66 kB │ gzip: 0.66 kB
33
- ℹ dist/tool/tool.presentation.js  1.65 kB │ gzip: 0.66 kB
32
+ ℹ dist/run/run.presentation.js  1.67 kB │ gzip: 0.66 kB
33
+ ℹ dist/tool/tool.presentation.js  1.67 kB │ gzip: 0.66 kB
34
34
  ℹ dist/run/index.js  1.58 kB │ gzip: 0.43 kB
35
35
  ℹ dist/agent/index.js  1.54 kB │ gzip: 0.40 kB
36
36
  ℹ dist/tool/index.js  1.30 kB │ gzip: 0.34 kB
37
- ℹ dist/example.js  1.10 kB │ gzip: 0.52 kB
37
+ ℹ dist/example.js  1.21 kB │ gzip: 0.57 kB
38
38
  ℹ dist/run/run.enum.js  0.75 kB │ gzip: 0.39 kB
39
39
  ℹ dist/tool/tool.enum.js  0.65 kB │ gzip: 0.34 kB
40
40
  ℹ dist/agent/agent.enum.js  0.60 kB │ gzip: 0.33 kB
@@ -42,31 +42,31 @@ $ tsdown
42
42
  ℹ dist/handlers/index.js  0.53 kB │ gzip: 0.17 kB
43
43
  ℹ dist/shared/index.js  0.18 kB │ gzip: 0.11 kB
44
44
  ℹ dist/docs/index.js  0.04 kB │ gzip: 0.06 kB
45
- ℹ dist/run/run.operation.js.map 22.56 kB │ gzip: 3.88 kB
46
- ℹ dist/agent/agent.operation.js.map 19.07 kB │ gzip: 3.63 kB
47
- ℹ dist/tool/tool.operation.js.map 15.39 kB │ gzip: 3.13 kB
48
- ℹ dist/run/run.event.js.map 13.94 kB │ gzip: 1.79 kB
45
+ ℹ dist/run/run.operation.js.map 22.61 kB │ gzip: 3.88 kB
46
+ ℹ dist/agent/agent.operation.js.map 19.12 kB │ gzip: 3.63 kB
47
+ ℹ dist/tool/tool.operation.js.map 15.43 kB │ gzip: 3.13 kB
48
+ ℹ dist/run/run.event.js.map 13.98 kB │ gzip: 1.80 kB
49
49
  ℹ dist/agent/agent.schema.js.map 12.73 kB │ gzip: 1.32 kB
50
50
  ℹ dist/run/run.schema.js.map 10.24 kB │ gzip: 1.52 kB
51
51
  ℹ dist/run/run.entity.js.map  8.67 kB │ gzip: 2.11 kB
52
+ ℹ dist/agent.feature.js.map  7.72 kB │ gzip: 1.53 kB
52
53
  ℹ dist/tool/tool.schema.js.map  7.44 kB │ gzip: 1.07 kB
53
- ℹ dist/agent.feature.js.map  7.36 kB │ gzip: 1.52 kB
54
- ℹ dist/agent/agent.event.js.map  6.89 kB │ gzip: 1.18 kB
54
+ ℹ dist/agent/agent.event.js.map  6.91 kB │ gzip: 1.18 kB
55
55
  ℹ dist/shared/mock-tools.js.map  6.68 kB │ gzip: 1.67 kB
56
56
  ℹ dist/agent/agent.entity.js.map  6.34 kB │ gzip: 1.85 kB
57
57
  ℹ dist/agent/agent.handler.js.map  6.21 kB │ gzip: 1.93 kB
58
- ℹ dist/tool/tool.event.js.map  5.45 kB │ gzip: 1.08 kB
58
+ ℹ dist/tool/tool.event.js.map  5.46 kB │ gzip: 1.08 kB
59
59
  ℹ dist/tool/tool.handler.js.map  5.35 kB │ gzip: 1.77 kB
60
60
  ℹ dist/run/run.handler.js.map  4.96 kB │ gzip: 1.68 kB
61
61
  ℹ dist/shared/mock-runs.js.map  4.85 kB │ gzip: 1.14 kB
62
62
  ℹ dist/docs/agent-console.docblock.js.map  4.55 kB │ gzip: 1.64 kB
63
63
  ℹ dist/tool/tool.entity.js.map  4.33 kB │ gzip: 1.37 kB
64
64
  ℹ dist/shared/mock-agents.js.map  3.91 kB │ gzip: 1.15 kB
65
- ℹ dist/agent/agent.presentation.js.map  3.79 kB │ gzip: 1.06 kB
66
- ℹ dist/tool/tool.presentation.js.map  2.56 kB │ gzip: 0.89 kB
67
- ℹ dist/run/run.presentation.js.map  2.55 kB │ gzip: 0.90 kB
65
+ ℹ dist/agent/agent.presentation.js.map  3.81 kB │ gzip: 1.07 kB
66
+ ℹ dist/tool/tool.presentation.js.map  2.57 kB │ gzip: 0.90 kB
67
+ ℹ dist/run/run.presentation.js.map  2.56 kB │ gzip: 0.90 kB
68
68
  ℹ dist/run/run.operation.d.ts.map  1.86 kB │ gzip: 0.51 kB
69
- ℹ dist/example.js.map  1.55 kB │ gzip: 0.73 kB
69
+ ℹ dist/example.js.map  1.83 kB │ gzip: 0.82 kB
70
70
  ℹ dist/agent/agent.operation.d.ts.map  1.54 kB │ gzip: 0.47 kB
71
71
  ℹ dist/tool/tool.operation.d.ts.map  1.41 kB │ gzip: 0.45 kB
72
72
  ℹ dist/run/run.event.d.ts.map  1.31 kB │ gzip: 0.42 kB
@@ -91,18 +91,18 @@ $ tsdown
91
91
  ℹ dist/tool/tool.presentation.d.ts.map  0.20 kB │ gzip: 0.16 kB
92
92
  ℹ dist/run/run.presentation.d.ts.map  0.20 kB │ gzip: 0.16 kB
93
93
  ℹ dist/agent.feature.d.ts.map  0.14 kB │ gzip: 0.13 kB
94
- ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
95
94
  ℹ dist/shared/mock-agents.d.ts.map  0.14 kB │ gzip: 0.13 kB
96
95
  ℹ dist/shared/mock-tools.d.ts.map  0.14 kB │ gzip: 0.13 kB
97
96
  ℹ dist/shared/mock-runs.d.ts.map  0.14 kB │ gzip: 0.13 kB
98
- ℹ dist/run/run.operation.d.ts 21.22 kB │ gzip: 1.56 kB
99
- ℹ dist/agent/agent.operation.d.ts 13.78 kB │ gzip: 1.21 kB
100
- ℹ dist/tool/tool.operation.d.ts 12.32 kB │ gzip: 1.08 kB
97
+ ℹ dist/example.d.ts.map  0.12 kB │ gzip: 0.12 kB
98
+ ℹ dist/run/run.operation.d.ts 21.40 kB │ gzip: 1.56 kB
99
+ ℹ dist/agent/agent.operation.d.ts 13.78 kB │ gzip: 1.20 kB
100
+ ℹ dist/tool/tool.operation.d.ts 12.33 kB │ gzip: 1.08 kB
101
101
  ℹ dist/run/run.schema.d.ts 11.87 kB │ gzip: 1.06 kB
102
- ℹ dist/agent/agent.schema.d.ts 11.14 kB │ gzip: 0.83 kB
102
+ ℹ dist/agent/agent.schema.d.ts 11.04 kB │ gzip: 0.83 kB
103
103
  ℹ dist/run/run.event.d.ts  8.44 kB │ gzip: 0.79 kB
104
104
  ℹ dist/tool/tool.handler.d.ts  6.76 kB │ gzip: 1.09 kB
105
- ℹ dist/tool/tool.schema.d.ts  6.38 kB │ gzip: 0.64 kB
105
+ ℹ dist/tool/tool.schema.d.ts  6.28 kB │ gzip: 0.63 kB
106
106
  ℹ dist/index.d.ts  5.26 kB │ gzip: 1.11 kB
107
107
  ℹ dist/shared/mock-tools.d.ts  4.89 kB │ gzip: 0.70 kB
108
108
  ℹ dist/run/run.handler.d.ts  4.51 kB │ gzip: 0.89 kB
@@ -110,25 +110,25 @@ $ tsdown
110
110
  ℹ dist/agent/agent.event.d.ts  3.76 kB │ gzip: 0.51 kB
111
111
  ℹ dist/tool/tool.event.d.ts  3.00 kB │ gzip: 0.46 kB
112
112
  ℹ dist/agent/agent.handler.d.ts  2.67 kB │ gzip: 0.76 kB
113
- ℹ dist/agent/agent.entity.d.ts  2.55 kB │ gzip: 0.54 kB
113
+ ℹ dist/agent/agent.entity.d.ts  2.63 kB │ gzip: 0.54 kB
114
114
  ℹ dist/shared/mock-runs.d.ts  2.41 kB │ gzip: 0.50 kB
115
- ℹ dist/tool/tool.entity.d.ts  1.91 kB │ gzip: 0.46 kB
115
+ ℹ dist/tool/tool.entity.d.ts  1.93 kB │ gzip: 0.46 kB
116
116
  ℹ dist/agent/index.d.ts  1.75 kB │ gzip: 0.44 kB
117
117
  ℹ dist/shared/mock-agents.d.ts  1.73 kB │ gzip: 0.41 kB
118
118
  ℹ dist/run/index.d.ts  1.68 kB │ gzip: 0.46 kB
119
119
  ℹ dist/tool/index.d.ts  1.41 kB │ gzip: 0.36 kB
120
- ℹ dist/example.d.ts  1.38 kB │ gzip: 0.52 kB
121
120
  ℹ dist/run/run.enum.d.ts  0.78 kB │ gzip: 0.28 kB
122
121
  ℹ dist/tool/tool.enum.d.ts  0.65 kB │ gzip: 0.26 kB
123
122
  ℹ dist/agent/agent.presentation.d.ts  0.64 kB │ gzip: 0.28 kB
124
- ℹ dist/agent/agent.enum.d.ts  0.63 kB │ gzip: 0.26 kB
123
+ ℹ dist/agent/agent.enum.d.ts  0.63 kB │ gzip: 0.27 kB
125
124
  ℹ dist/handlers/index.d.ts  0.63 kB │ gzip: 0.20 kB
126
125
  ℹ dist/presentations/index.d.ts  0.60 kB │ gzip: 0.18 kB
127
126
  ℹ dist/tool/tool.presentation.d.ts  0.44 kB │ gzip: 0.22 kB
128
127
  ℹ dist/run/run.presentation.d.ts  0.43 kB │ gzip: 0.23 kB
129
128
  ℹ dist/agent.feature.d.ts  0.39 kB │ gzip: 0.24 kB
129
+ ℹ dist/example.d.ts  0.20 kB │ gzip: 0.16 kB
130
130
  ℹ dist/shared/index.d.ts  0.18 kB │ gzip: 0.10 kB
131
131
  ℹ dist/docs/agent-console.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
132
132
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
133
- ℹ 123 files, total: 476.16 kB
134
- ✔ Build complete in 28318ms
133
+ ℹ 123 files, total: 476.68 kB
134
+ ✔ Build complete in 29705ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @contractspec/example.agent-console
2
2
 
3
+ ## 1.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e73ca1d: feat: improve app config and examples contracts
8
+ feat: Contract layers support (features, examples, app-configs)
9
+
10
+ ### New CLI Commands
11
+ - `contractspec list layers` - List all contract layers with filtering
12
+
13
+ ### Enhanced Commands
14
+ - `contractspec ci` - New `layers` check category validates features/examples/config
15
+ - `contractspec doctor` - New `layers` health checks
16
+ - `contractspec integrity` - Now shows layer statistics
17
+
18
+ ### New APIs
19
+ - `discoverLayers()` - Scan workspace for all layer files
20
+ - `scanExampleSource()` - Parse ExampleSpec from source code
21
+ - `isExampleFile()` - Check if file is an example spec
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [e73ca1d]
26
+ - @contractspec/module.audit-trail@1.45.0
27
+ - @contractspec/lib.identity-rbac@1.45.0
28
+ - @contractspec/lib.contracts@1.45.0
29
+ - @contractspec/lib.schema@1.45.0
30
+ - @contractspec/lib.jobs@1.45.0
31
+
3
32
  ## 1.44.1
4
33
 
5
34
  ### Patch Changes
@@ -54,7 +54,7 @@ const AgentCreatedPayload = defineSchemaModel$1({
54
54
  const AgentCreatedEvent = defineEvent({
55
55
  meta: {
56
56
  key: "agent-console.agent.created",
57
- version: 1,
57
+ version: "1.0.0",
58
58
  description: "A new AI agent was configured.",
59
59
  stability: "stable",
60
60
  owners: [...OWNERS],
@@ -102,7 +102,7 @@ const AgentUpdatedPayload = defineSchemaModel$1({
102
102
  const AgentUpdatedEvent = defineEvent({
103
103
  meta: {
104
104
  key: "agent-console.agent.updated",
105
- version: 1,
105
+ version: "1.0.0",
106
106
  description: "An AI agent configuration was updated.",
107
107
  stability: "stable",
108
108
  owners: [...OWNERS],
@@ -145,7 +145,7 @@ const AgentToolAssignedPayload = defineSchemaModel$1({
145
145
  const AgentToolAssignedEvent = defineEvent({
146
146
  meta: {
147
147
  key: "agent-console.agent.toolAssigned",
148
- version: 1,
148
+ version: "1.0.0",
149
149
  description: "A tool was assigned to an agent.",
150
150
  stability: "stable",
151
151
  owners: [...OWNERS],
@@ -192,7 +192,7 @@ const AgentToolRemovedPayload = defineSchemaModel$1({
192
192
  const AgentToolRemovedEvent = defineEvent({
193
193
  meta: {
194
194
  key: "agent-console.agent.toolRemoved",
195
- version: 1,
195
+ version: "1.0.0",
196
196
  description: "A tool was removed from an agent.",
197
197
  stability: "stable",
198
198
  owners: [...OWNERS],
@@ -1 +1 @@
1
- {"version":3,"file":"agent.event.js","names":["defineSchemaModel"],"sources":["../../src/agent/agent.event.ts"],"sourcesContent":["import { defineEvent, defineSchemaModel } from '@contractspec/lib.contracts';\nimport { ScalarTypeEnum } from '@contractspec/lib.schema';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * Payload for agent created event.\n */\nconst AgentCreatedPayload = defineSchemaModel({\n name: 'AgentCreatedPayload',\n description: 'Payload for agent created event',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n modelProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n modelName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n createdById: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentCreatedEvent - A new agent was created.\n */\nexport const AgentCreatedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.created',\n version: 1,\n description: 'A new AI agent was configured.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'created'],\n },\n payload: AgentCreatedPayload,\n});\n\n/**\n * Payload for agent updated event.\n */\nconst AgentUpdatedPayload = defineSchemaModel({\n name: 'AgentUpdatedPayload',\n description: 'Payload for agent updated event',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n updatedFields: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentUpdatedEvent - An agent was updated.\n */\nexport const AgentUpdatedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.updated',\n version: 1,\n description: 'An AI agent configuration was updated.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'updated'],\n },\n payload: AgentUpdatedPayload,\n});\n\n/**\n * Payload for agent tool assigned event.\n */\nconst AgentToolAssignedPayload = defineSchemaModel({\n name: 'AgentToolAssignedPayload',\n description: 'Payload for agent tool assigned event',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n assignedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentToolAssignedEvent - A tool was assigned to an agent.\n */\nexport const AgentToolAssignedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.toolAssigned',\n version: 1,\n description: 'A tool was assigned to an agent.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assigned'],\n },\n payload: AgentToolAssignedPayload,\n});\n\n/**\n * Payload for agent tool removed event.\n */\nconst AgentToolRemovedPayload = defineSchemaModel({\n name: 'AgentToolRemovedPayload',\n description: 'Payload for agent tool removed event',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n removedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentToolRemovedEvent - A tool was removed from an agent.\n */\nexport const AgentToolRemovedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.toolRemoved',\n version: 1,\n description: 'A tool was removed from an agent.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'removed'],\n },\n payload: AgentToolRemovedPayload,\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAM,sBAAsBA,oBAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,eAAe;GACb,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACrE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,UAAU;EAC3B;CACD,SAAS;CACV,CAAC;;;;AAKF,MAAM,sBAAsBA,oBAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAM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,YAAY;GAAO;EACvE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAQ;GAAU;EACnC;CACD,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"agent.event.js","names":["defineSchemaModel"],"sources":["../../src/agent/agent.event.ts"],"sourcesContent":["import { defineEvent, defineSchemaModel } from '@contractspec/lib.contracts';\nimport { ScalarTypeEnum } from '@contractspec/lib.schema';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * Payload for agent created event.\n */\nconst AgentCreatedPayload = defineSchemaModel({\n name: 'AgentCreatedPayload',\n description: 'Payload for agent created event',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n modelProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n modelName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n createdById: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentCreatedEvent - A new agent was created.\n */\nexport const AgentCreatedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.created',\n version: '1.0.0',\n description: 'A new AI agent was configured.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'created'],\n },\n payload: AgentCreatedPayload,\n});\n\n/**\n * Payload for agent updated event.\n */\nconst AgentUpdatedPayload = defineSchemaModel({\n name: 'AgentUpdatedPayload',\n description: 'Payload for agent updated event',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n updatedFields: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentUpdatedEvent - An agent was updated.\n */\nexport const AgentUpdatedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.updated',\n version: '1.0.0',\n description: 'An AI agent configuration was updated.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'updated'],\n },\n payload: AgentUpdatedPayload,\n});\n\n/**\n * Payload for agent tool assigned event.\n */\nconst AgentToolAssignedPayload = defineSchemaModel({\n name: 'AgentToolAssignedPayload',\n description: 'Payload for agent tool assigned event',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n assignedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentToolAssignedEvent - A tool was assigned to an agent.\n */\nexport const AgentToolAssignedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.toolAssigned',\n version: '1.0.0',\n description: 'A tool was assigned to an agent.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assigned'],\n },\n payload: AgentToolAssignedPayload,\n});\n\n/**\n * Payload for agent tool removed event.\n */\nconst AgentToolRemovedPayload = defineSchemaModel({\n name: 'AgentToolRemovedPayload',\n description: 'Payload for agent tool removed event',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n agentName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n removedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * AgentToolRemovedEvent - A tool was removed from an agent.\n */\nexport const AgentToolRemovedEvent = defineEvent({\n meta: {\n key: 'agent-console.agent.toolRemoved',\n version: '1.0.0',\n description: 'A tool was removed from an agent.',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'removed'],\n },\n payload: AgentToolRemovedPayload,\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAM,sBAAsBA,oBAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,eAAe;GACb,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACrE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,UAAU;EAC3B;CACD,SAAS;CACV,CAAC;;;;AAKF,MAAM,sBAAsBA,oBAAkB;CAC5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;GAAO;EACtE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAQ;GAAU;EACnC;CACD,SAAS;CACV,CAAC"}
@@ -166,7 +166,7 @@ declare const UpdateAgentCommand: _contractspec_lib_contracts3.OperationSpec<_co
166
166
  };
167
167
  }>, {
168
168
  key: string;
169
- version: number;
169
+ version: string;
170
170
  stability: string;
171
171
  owners: "@agent-console-team"[];
172
172
  tags: string[];
@@ -12,7 +12,7 @@ const OWNERS = ["@agent-console-team"];
12
12
  const CreateAgentCommand = defineCommand({
13
13
  meta: {
14
14
  key: "agent-console.agent.create",
15
- version: 1,
15
+ version: "1.0.0",
16
16
  stability: "stable",
17
17
  owners: [...OWNERS],
18
18
  tags: ["agent", "create"],
@@ -93,7 +93,7 @@ const CreateAgentCommand = defineCommand({
93
93
  const UpdateAgentCommand = defineCommand({
94
94
  meta: {
95
95
  key: "agent-console.agent.update",
96
- version: 1,
96
+ version: "1.0.0",
97
97
  stability: "stable",
98
98
  owners: [...OWNERS],
99
99
  tags: ["agent", "update"],
@@ -135,7 +135,7 @@ const UpdateAgentCommand = defineCommand({
135
135
  sideEffects: {
136
136
  emits: [{
137
137
  key: "agent.updated",
138
- version: 1,
138
+ version: "1.0.0",
139
139
  stability: "stable",
140
140
  owners: [...OWNERS],
141
141
  tags: ["agent", "updated"],
@@ -178,7 +178,7 @@ const UpdateAgentCommand = defineCommand({
178
178
  const GetAgentQuery = defineQuery({
179
179
  meta: {
180
180
  key: "agent-console.agent.get",
181
- version: 1,
181
+ version: "1.0.0",
182
182
  stability: "stable",
183
183
  owners: [...OWNERS],
184
184
  tags: ["agent", "get"],
@@ -242,7 +242,7 @@ const GetAgentQuery = defineQuery({
242
242
  const ListAgentsQuery = defineQuery({
243
243
  meta: {
244
244
  key: "agent-console.agent.list",
245
- version: 1,
245
+ version: "1.0.0",
246
246
  stability: "stable",
247
247
  owners: [...OWNERS],
248
248
  tags: ["agent", "list"],
@@ -335,7 +335,7 @@ const ListAgentsQuery = defineQuery({
335
335
  const AssignToolToAgentCommand = defineCommand({
336
336
  meta: {
337
337
  key: "agent-console.agent.assignTool",
338
- version: 1,
338
+ version: "1.0.0",
339
339
  stability: "stable",
340
340
  owners: [...OWNERS],
341
341
  tags: [
@@ -427,7 +427,7 @@ const AssignToolToAgentCommand = defineCommand({
427
427
  const RemoveToolFromAgentCommand = defineCommand({
428
428
  meta: {
429
429
  key: "agent-console.agent.removeTool",
430
- version: 1,
430
+ version: "1.0.0",
431
431
  stability: "stable",
432
432
  owners: [...OWNERS],
433
433
  tags: [
@@ -1 +1 @@
1
- {"version":3,"file":"agent.operation.js","names":[],"sources":["../../src/agent/agent.operation.ts"],"sourcesContent":["import {\n defineCommand,\n defineQuery,\n} from '@contractspec/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport { AgentStatusEnum, ModelProviderEnum } from './agent.enum';\nimport {\n AgentSummaryModel,\n AgentWithToolsModel,\n CreateAgentInputModel,\n UpdateAgentInputModel,\n} from './agent.schema';\nimport { AgentCreatedEvent } from './agent.event';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * CreateAgentCommand - Creates a new agent configuration.\n */\nexport const CreateAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'create'],\n description: 'Creates a new AI agent configuration.',\n goal: 'Allow users to define new AI agents with specific models and tools.',\n context: 'Called from the agent builder UI when creating a new agent.',\n },\n io: {\n input: CreateAgentInputModel,\n output: defineSchemaModel({\n name: 'CreateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description:\n 'An agent with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n // name: 'agent.created',\n // version: 1,\n // payload: AgentSummaryModel,\n ref: AgentCreatedEvent.meta,\n when: 'Agent is successfully created',\n },\n ],\n audit: ['agent-console.agent.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-agent-happy-path',\n given: ['User is authenticated', 'Organization exists'],\n when: ['User submits valid agent configuration'],\n then: [\n 'New agent is created with DRAFT status',\n 'AgentCreated event is emitted',\n ],\n },\n {\n key: 'create-agent-slug-conflict',\n given: ['User is authenticated', 'Agent with same slug exists'],\n when: ['User submits agent with duplicate slug'],\n then: ['SLUG_EXISTS error is returned with 409 status'],\n },\n ],\n examples: [\n {\n key: 'basic-create',\n input: {\n name: 'Support Assistant',\n slug: 'support-assistant',\n modelProvider: 'openai',\n modelId: 'gpt-4',\n },\n output: {\n id: 'agent-123',\n name: 'Support Assistant',\n slug: 'support-assistant',\n status: 'draft',\n },\n },\n ],\n },\n});\n\n/**\n * UpdateAgentCommand - Updates an existing agent.\n */\nexport const UpdateAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'update'],\n description: 'Updates an existing AI agent configuration.',\n goal: 'Allow users to modify agent settings and configuration.',\n context: 'Called from the agent settings UI.',\n },\n io: {\n input: UpdateAgentInputModel,\n output: defineSchemaModel({\n name: 'UpdateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'agent.updated',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'updated'],\n when: 'Agent is updated',\n payload: AgentSummaryModel,\n },\n ],\n audit: ['agent.updated'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'update-agent-happy-path',\n given: ['Agent exists', 'User owns the agent'],\n when: ['User submits updated configuration'],\n then: ['Agent is updated', 'AgentUpdated event is emitted'],\n },\n {\n key: 'update-agent-not-found',\n given: ['Agent does not exist'],\n when: ['User attempts to update'],\n then: ['AGENT_NOT_FOUND error is returned'],\n },\n ],\n examples: [\n {\n key: 'update-name',\n input: {\n agentId: 'agent-123',\n name: 'Updated Assistant',\n systemPrompt: 'You are a helpful assistant.',\n },\n output: {\n id: 'agent-123',\n name: 'Updated Assistant',\n status: 'draft',\n updatedAt: '2025-01-01T00:00:00Z',\n },\n },\n ],\n },\n});\n\n/**\n * GetAgentQuery - Retrieves an agent by ID.\n */\nexport const GetAgentQuery = defineQuery({\n meta: {\n key: 'agent-console.agent.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'get'],\n description: 'Retrieves an agent by its ID.',\n goal: 'View detailed agent configuration.',\n context: 'Called when viewing agent details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeTools: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: AgentWithToolsModel,\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'get-agent-happy-path',\n given: ['Agent exists'],\n when: ['User requests agent by ID'],\n then: ['Agent details are returned'],\n },\n {\n key: 'get-agent-with-tools',\n given: ['Agent exists with assigned tools'],\n when: ['User requests agent with includeTools=true'],\n then: ['Agent details with tools list are returned'],\n },\n ],\n examples: [\n {\n key: 'get-basic',\n input: { agentId: 'agent-123', includeTools: false },\n output: {\n id: 'agent-123',\n name: 'Support Assistant',\n status: 'active',\n tools: [],\n },\n },\n ],\n },\n});\n\n/**\n * ListAgentsQuery - Lists agents for an organization.\n */\nexport const ListAgentsQuery = defineQuery({\n meta: {\n key: 'agent-console.agent.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'list'],\n description: 'Lists agents for an organization with optional filtering.',\n goal: 'Browse and search available agents.',\n context: 'Agent list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListAgentsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n status: { type: AgentStatusEnum, isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListAgentsOutput',\n fields: {\n items: { type: AgentSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-agents-happy-path',\n given: ['Organization has agents'],\n when: ['User lists agents'],\n then: ['Paginated list of agents is returned'],\n },\n {\n key: 'list-agents-filter-by-status',\n given: ['Organization has agents with mixed statuses'],\n when: ['User filters by status=active'],\n then: ['Only active agents are returned'],\n },\n ],\n examples: [\n {\n key: 'list-basic',\n input: { organizationId: 'org-123', limit: 10, offset: 0 },\n output: { items: [], total: 0, hasMore: false },\n },\n ],\n },\n});\n\n/**\n * AssignToolToAgentCommand - Assigns a tool to an agent.\n */\nexport const AssignToolToAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.assignTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assign'],\n description: 'Assigns a tool to an agent with optional configuration.',\n goal: 'Enable agents to use specific tools.',\n context: 'Agent configuration UI - tool selection.',\n },\n io: {\n input: defineSchemaModel({\n name: 'AssignToolToAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'AssignToolToAgentOutput',\n fields: {\n agentToolId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_ALREADY_ASSIGNED: {\n description: 'This tool is already assigned to the agent',\n http: 409,\n gqlCode: 'TOOL_ALREADY_ASSIGNED',\n when: 'Tool assignment already exists',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.assigned'] },\n acceptance: {\n scenarios: [\n {\n key: 'assign-tool-happy-path',\n given: ['Agent exists', 'Tool exists and is not assigned'],\n when: ['User assigns tool to agent'],\n then: ['Tool is assigned', 'Assignment ID is returned'],\n },\n {\n key: 'assign-tool-already-assigned',\n given: ['Tool is already assigned to agent'],\n when: ['User attempts to assign again'],\n then: ['TOOL_ALREADY_ASSIGNED error is returned'],\n },\n ],\n examples: [\n {\n key: 'assign-basic',\n input: { agentId: 'agent-123', toolId: 'tool-456' },\n output: {\n agentToolId: 'at-789',\n agentId: 'agent-123',\n toolId: 'tool-456',\n },\n },\n ],\n },\n});\n\n/**\n * RemoveToolFromAgentCommand - Removes a tool from an agent.\n */\nexport const RemoveToolFromAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.removeTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'remove'],\n description: 'Removes a tool assignment from an agent.',\n goal: 'Disable specific tools for an agent.',\n context: 'Agent configuration UI - tool management.',\n },\n io: {\n input: defineSchemaModel({\n name: 'RemoveToolFromAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'RemoveToolFromAgentOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.removed'] },\n acceptance: {\n scenarios: [\n {\n key: 'remove-tool-happy-path',\n given: ['Agent exists', 'Tool is assigned to agent'],\n when: ['User removes tool from agent'],\n then: ['Tool is unassigned', 'Success is returned'],\n },\n ],\n examples: [\n {\n key: 'remove-basic',\n input: { agentId: 'agent-123', toolId: 'tool-456' },\n output: { success: true },\n },\n ],\n },\n});\n"],"mappings":";;;;;;;AAcA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,SAAS;EACzB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+BAA+B;GACtC,MAAM,CAAC,sBAAsB,sBAAsB;GACpD,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,SAAS;IAAa,QAAQ;IAAY;GACnD,QAAQ,EAAE,SAAS,MAAM;GAC1B,CACF;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"agent.operation.js","names":[],"sources":["../../src/agent/agent.operation.ts"],"sourcesContent":["import {\n defineCommand,\n defineQuery,\n} from '@contractspec/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport { AgentStatusEnum, ModelProviderEnum } from './agent.enum';\nimport {\n AgentSummaryModel,\n AgentWithToolsModel,\n CreateAgentInputModel,\n UpdateAgentInputModel,\n} from './agent.schema';\nimport { AgentCreatedEvent } from './agent.event';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * CreateAgentCommand - Creates a new agent configuration.\n */\nexport const CreateAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.create',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'create'],\n description: 'Creates a new AI agent configuration.',\n goal: 'Allow users to define new AI agents with specific models and tools.',\n context: 'Called from the agent builder UI when creating a new agent.',\n },\n io: {\n input: CreateAgentInputModel,\n output: defineSchemaModel({\n name: 'CreateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description:\n 'An agent with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n // name: 'agent.created',\n // version: '1.0.0',\n // payload: AgentSummaryModel,\n ref: AgentCreatedEvent.meta,\n when: 'Agent is successfully created',\n },\n ],\n audit: ['agent-console.agent.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-agent-happy-path',\n given: ['User is authenticated', 'Organization exists'],\n when: ['User submits valid agent configuration'],\n then: [\n 'New agent is created with DRAFT status',\n 'AgentCreated event is emitted',\n ],\n },\n {\n key: 'create-agent-slug-conflict',\n given: ['User is authenticated', 'Agent with same slug exists'],\n when: ['User submits agent with duplicate slug'],\n then: ['SLUG_EXISTS error is returned with 409 status'],\n },\n ],\n examples: [\n {\n key: 'basic-create',\n input: {\n name: 'Support Assistant',\n slug: 'support-assistant',\n modelProvider: 'openai',\n modelId: 'gpt-4',\n },\n output: {\n id: 'agent-123',\n name: 'Support Assistant',\n slug: 'support-assistant',\n status: 'draft',\n },\n },\n ],\n },\n});\n\n/**\n * UpdateAgentCommand - Updates an existing agent.\n */\nexport const UpdateAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.update',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'update'],\n description: 'Updates an existing AI agent configuration.',\n goal: 'Allow users to modify agent settings and configuration.',\n context: 'Called from the agent settings UI.',\n },\n io: {\n input: UpdateAgentInputModel,\n output: defineSchemaModel({\n name: 'UpdateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'agent.updated',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'updated'],\n when: 'Agent is updated',\n payload: AgentSummaryModel,\n },\n ],\n audit: ['agent.updated'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'update-agent-happy-path',\n given: ['Agent exists', 'User owns the agent'],\n when: ['User submits updated configuration'],\n then: ['Agent is updated', 'AgentUpdated event is emitted'],\n },\n {\n key: 'update-agent-not-found',\n given: ['Agent does not exist'],\n when: ['User attempts to update'],\n then: ['AGENT_NOT_FOUND error is returned'],\n },\n ],\n examples: [\n {\n key: 'update-name',\n input: {\n agentId: 'agent-123',\n name: 'Updated Assistant',\n systemPrompt: 'You are a helpful assistant.',\n },\n output: {\n id: 'agent-123',\n name: 'Updated Assistant',\n status: 'draft',\n updatedAt: '2025-01-01T00:00:00Z',\n },\n },\n ],\n },\n});\n\n/**\n * GetAgentQuery - Retrieves an agent by ID.\n */\nexport const GetAgentQuery = defineQuery({\n meta: {\n key: 'agent-console.agent.get',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'get'],\n description: 'Retrieves an agent by its ID.',\n goal: 'View detailed agent configuration.',\n context: 'Called when viewing agent details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeTools: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: AgentWithToolsModel,\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'get-agent-happy-path',\n given: ['Agent exists'],\n when: ['User requests agent by ID'],\n then: ['Agent details are returned'],\n },\n {\n key: 'get-agent-with-tools',\n given: ['Agent exists with assigned tools'],\n when: ['User requests agent with includeTools=true'],\n then: ['Agent details with tools list are returned'],\n },\n ],\n examples: [\n {\n key: 'get-basic',\n input: { agentId: 'agent-123', includeTools: false },\n output: {\n id: 'agent-123',\n name: 'Support Assistant',\n status: 'active',\n tools: [],\n },\n },\n ],\n },\n});\n\n/**\n * ListAgentsQuery - Lists agents for an organization.\n */\nexport const ListAgentsQuery = defineQuery({\n meta: {\n key: 'agent-console.agent.list',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'list'],\n description: 'Lists agents for an organization with optional filtering.',\n goal: 'Browse and search available agents.',\n context: 'Agent list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListAgentsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n status: { type: AgentStatusEnum, isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListAgentsOutput',\n fields: {\n items: { type: AgentSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-agents-happy-path',\n given: ['Organization has agents'],\n when: ['User lists agents'],\n then: ['Paginated list of agents is returned'],\n },\n {\n key: 'list-agents-filter-by-status',\n given: ['Organization has agents with mixed statuses'],\n when: ['User filters by status=active'],\n then: ['Only active agents are returned'],\n },\n ],\n examples: [\n {\n key: 'list-basic',\n input: { organizationId: 'org-123', limit: 10, offset: 0 },\n output: { items: [], total: 0, hasMore: false },\n },\n ],\n },\n});\n\n/**\n * AssignToolToAgentCommand - Assigns a tool to an agent.\n */\nexport const AssignToolToAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.assignTool',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assign'],\n description: 'Assigns a tool to an agent with optional configuration.',\n goal: 'Enable agents to use specific tools.',\n context: 'Agent configuration UI - tool selection.',\n },\n io: {\n input: defineSchemaModel({\n name: 'AssignToolToAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'AssignToolToAgentOutput',\n fields: {\n agentToolId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_ALREADY_ASSIGNED: {\n description: 'This tool is already assigned to the agent',\n http: 409,\n gqlCode: 'TOOL_ALREADY_ASSIGNED',\n when: 'Tool assignment already exists',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.assigned'] },\n acceptance: {\n scenarios: [\n {\n key: 'assign-tool-happy-path',\n given: ['Agent exists', 'Tool exists and is not assigned'],\n when: ['User assigns tool to agent'],\n then: ['Tool is assigned', 'Assignment ID is returned'],\n },\n {\n key: 'assign-tool-already-assigned',\n given: ['Tool is already assigned to agent'],\n when: ['User attempts to assign again'],\n then: ['TOOL_ALREADY_ASSIGNED error is returned'],\n },\n ],\n examples: [\n {\n key: 'assign-basic',\n input: { agentId: 'agent-123', toolId: 'tool-456' },\n output: {\n agentToolId: 'at-789',\n agentId: 'agent-123',\n toolId: 'tool-456',\n },\n },\n ],\n },\n});\n\n/**\n * RemoveToolFromAgentCommand - Removes a tool from an agent.\n */\nexport const RemoveToolFromAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.removeTool',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'remove'],\n description: 'Removes a tool assignment from an agent.',\n goal: 'Disable specific tools for an agent.',\n context: 'Agent configuration UI - tool management.',\n },\n io: {\n input: defineSchemaModel({\n name: 'RemoveToolFromAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'RemoveToolFromAgentOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.removed'] },\n acceptance: {\n scenarios: [\n {\n key: 'remove-tool-happy-path',\n given: ['Agent exists', 'Tool is assigned to agent'],\n when: ['User removes tool from agent'],\n then: ['Tool is unassigned', 'Success is returned'],\n },\n ],\n examples: [\n {\n key: 'remove-basic',\n input: { agentId: 'agent-123', toolId: 'tool-456' },\n output: { success: true },\n },\n ],\n },\n});\n"],"mappings":";;;;;;;AAcA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,SAAS;EACzB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAM,eAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACnE,QAAQ;KAAE,MAAM;KAAiB,YAAY;KAAO;IACrD;GACF,CAAC;EACF,QAAQ,EACN,aAAa;GACX,aACE;GACF,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GAIE,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E,SAAS;IAAa,QAAQ;IAAY;GACnD,QAAQ;IACN,aAAa;IACb,SAAS;IACT,QAAQ;IACT;GACF,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,6BAA6B,cAAc;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAQ;GAAS;EACjC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO,kBAAkB;GACvB,MAAM;GACN,QAAQ;IACN,SAAS;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE,QAAQ;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE;GACF,CAAC;EACF,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ,EACN,SAAS;IAAE,MAAM,eAAe,SAAS;IAAE,YAAY;IAAO,EAC/D;GACF,CAAC;EACH;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,qBAAqB,EAAE;CAC9C,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,gBAAgB,4BAA4B;GACpD,MAAM,CAAC,+BAA+B;GACtC,MAAM,CAAC,sBAAsB,sBAAsB;GACpD,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,SAAS;IAAa,QAAQ;IAAY;GACnD,QAAQ,EAAE,SAAS,MAAM;GAC1B,CACF;EACF;CACF,CAAC"}
@@ -8,7 +8,7 @@ import { StabilityEnum } from "@contractspec/lib.contracts";
8
8
  const AgentListPresentation = {
9
9
  meta: {
10
10
  key: "agent-console.agent.list",
11
- version: 1,
11
+ version: "1.0.0",
12
12
  title: "Agent List",
13
13
  description: "List view of AI agents with status, model provider, and version info",
14
14
  goal: "Provide an overview of all agents in an organization.",
@@ -41,7 +41,7 @@ const AgentListPresentation = {
41
41
  const AgentDetailPresentation = {
42
42
  meta: {
43
43
  key: "agent-console.agent.detail",
44
- version: 1,
44
+ version: "1.0.0",
45
45
  title: "Agent Details",
46
46
  description: "Detailed view of an AI agent with configuration, tools, and recent runs",
47
47
  goal: "Allow users to inspect and configure a specific agent.",
@@ -65,7 +65,7 @@ const AgentDetailPresentation = {
65
65
  const AgentConsoleDashboardPresentation = {
66
66
  meta: {
67
67
  key: "agent-console.dashboard",
68
- version: 1,
68
+ version: "1.0.0",
69
69
  title: "Agent Console Dashboard",
70
70
  description: "Dashboard overview of AI agents, runs, and tools",
71
71
  goal: "Provide a high-level overview of the AI platform health and usage.",