@lssm/example.team-hub 0.0.0-canary-20251221132705 → 0.0.0-canary-20251221153314
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/dist/announcement/announcement.contracts.d.ts +16 -16
- package/dist/announcement/announcement.contracts.d.ts.map +1 -1
- package/dist/announcement/announcement.contracts.js +1 -1
- package/dist/announcement/announcement.schema.d.ts +15 -15
- package/dist/announcement/announcement.schema.d.ts.map +1 -1
- package/dist/entities/index.d.ts +137 -137
- package/dist/events.d.ts +78 -78
- package/dist/events.d.ts.map +1 -1
- package/dist/libs/contracts/dist/capabilities/index.js +1 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -1
- package/dist/libs/contracts/dist/data-views/data-views.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -2
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -1
- package/dist/libs/contracts/dist/forms/forms.js +1 -0
- package/dist/libs/contracts/dist/index.js +15 -12
- package/dist/libs/contracts/dist/index.js.map +1 -1
- package/dist/libs/contracts/dist/install.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/{contracts.js → operations.js} +4 -3
- package/dist/libs/contracts/dist/integrations/operations.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/{contracts.js → operations.js} +4 -3
- package/dist/libs/contracts/dist/knowledge/operations.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +2 -1
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/contracts/dist/operations/index.js +2 -0
- package/dist/libs/contracts/dist/{operation.js → operations/operation.js} +1 -1
- package/dist/libs/contracts/dist/operations/operation.js.map +1 -0
- package/dist/libs/contracts/dist/operations/registry.js +2 -0
- package/dist/libs/contracts/dist/presentations/index.js +2 -0
- package/dist/libs/contracts/dist/presentations/presentations.js +2 -0
- package/dist/libs/contracts/dist/{presentations.v2.js → presentations/transform-engine.js} +2 -2
- package/dist/libs/contracts/dist/presentations/transform-engine.js.map +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +3 -2
- package/dist/ritual/ritual.contracts.d.ts +28 -28
- package/dist/ritual/ritual.contracts.d.ts.map +1 -1
- package/dist/ritual/ritual.contracts.js +1 -1
- package/dist/ritual/ritual.schema.d.ts +20 -20
- package/dist/space/space.contracts.d.ts +13 -13
- package/dist/space/space.contracts.d.ts.map +1 -1
- package/dist/space/space.contracts.js +1 -1
- package/dist/space/space.schema.d.ts +12 -12
- package/dist/task/task.contracts.d.ts +60 -60
- package/dist/task/task.contracts.d.ts.map +1 -1
- package/dist/task/task.contracts.js +1 -1
- package/package.json +10 -10
- package/dist/libs/contracts/dist/data-views.js +0 -1
- package/dist/libs/contracts/dist/forms.js +0 -1
- package/dist/libs/contracts/dist/integrations/contracts.js.map +0 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +0 -1
- package/dist/libs/contracts/dist/operation.js.map +0 -1
- package/dist/libs/contracts/dist/presentations.js +0 -2
- package/dist/libs/contracts/dist/presentations.v2.js.map +0 -1
- package/dist/libs/contracts/dist/registry.js +0 -3
package/dist/events.d.ts
CHANGED
|
@@ -1,285 +1,285 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema306 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts6 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const SpaceCreatedEvent:
|
|
5
|
+
declare const SpaceCreatedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
6
6
|
spaceId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
orgId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
ownerId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
timestamp: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
}>>;
|
|
23
|
-
declare const TaskCreatedEvent:
|
|
23
|
+
declare const TaskCreatedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
24
24
|
taskId: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
spaceId: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
status: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
assigneeId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
orgId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
timestamp: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
}>>;
|
|
49
|
-
declare const TaskStatusChangedEvent:
|
|
49
|
+
declare const TaskStatusChangedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
50
50
|
taskId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
spaceId: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
status: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
assigneeId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
orgId: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
timestamp: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
}>>;
|
|
75
|
-
declare const RitualScheduledEvent:
|
|
75
|
+
declare const RitualScheduledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
76
76
|
ritualId: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
spaceId: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
scheduledFor: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
status: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
orgId: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
}>>;
|
|
97
|
-
declare const RitualOccurredEvent:
|
|
97
|
+
declare const RitualOccurredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
98
98
|
ritualId: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
100
100
|
isOptional: false;
|
|
101
101
|
};
|
|
102
102
|
spaceId: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
104
104
|
isOptional: false;
|
|
105
105
|
};
|
|
106
106
|
scheduledFor: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
status: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
orgId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
}>>;
|
|
119
|
-
declare const AnnouncementPostedEvent:
|
|
119
|
+
declare const AnnouncementPostedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
120
120
|
announcementId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
spaceId: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
126
126
|
isOptional: true;
|
|
127
127
|
};
|
|
128
128
|
audience: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
orgId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
createdBy: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
createdAt: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
}>>;
|
|
145
145
|
declare const TeamHubEvents: {
|
|
146
|
-
SpaceCreatedEvent:
|
|
146
|
+
SpaceCreatedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
147
147
|
spaceId: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
149
149
|
isOptional: false;
|
|
150
150
|
};
|
|
151
151
|
orgId: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
ownerId: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
timestamp: {
|
|
160
|
-
type:
|
|
160
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
}>>;
|
|
164
|
-
TaskCreatedEvent:
|
|
164
|
+
TaskCreatedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
165
165
|
taskId: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
spaceId: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
status: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
175
175
|
isOptional: false;
|
|
176
176
|
};
|
|
177
177
|
assigneeId: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
orgId: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
183
183
|
isOptional: false;
|
|
184
184
|
};
|
|
185
185
|
timestamp: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
187
187
|
isOptional: false;
|
|
188
188
|
};
|
|
189
189
|
}>>;
|
|
190
|
-
TaskStatusChangedEvent:
|
|
190
|
+
TaskStatusChangedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
191
191
|
taskId: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
spaceId: {
|
|
196
|
-
type:
|
|
196
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
197
197
|
isOptional: false;
|
|
198
198
|
};
|
|
199
199
|
status: {
|
|
200
|
-
type:
|
|
200
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
201
201
|
isOptional: false;
|
|
202
202
|
};
|
|
203
203
|
assigneeId: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
205
205
|
isOptional: true;
|
|
206
206
|
};
|
|
207
207
|
orgId: {
|
|
208
|
-
type:
|
|
208
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
209
209
|
isOptional: false;
|
|
210
210
|
};
|
|
211
211
|
timestamp: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
}>>;
|
|
216
|
-
RitualScheduledEvent:
|
|
216
|
+
RitualScheduledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
217
217
|
ritualId: {
|
|
218
|
-
type:
|
|
218
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
spaceId: {
|
|
222
|
-
type:
|
|
222
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
223
223
|
isOptional: false;
|
|
224
224
|
};
|
|
225
225
|
scheduledFor: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
227
227
|
isOptional: false;
|
|
228
228
|
};
|
|
229
229
|
status: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
231
231
|
isOptional: false;
|
|
232
232
|
};
|
|
233
233
|
orgId: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
235
235
|
isOptional: false;
|
|
236
236
|
};
|
|
237
237
|
}>>;
|
|
238
|
-
RitualOccurredEvent:
|
|
238
|
+
RitualOccurredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
239
239
|
ritualId: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
spaceId: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
scheduledFor: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
status: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
253
253
|
isOptional: false;
|
|
254
254
|
};
|
|
255
255
|
orgId: {
|
|
256
|
-
type:
|
|
256
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
257
257
|
isOptional: false;
|
|
258
258
|
};
|
|
259
259
|
}>>;
|
|
260
|
-
AnnouncementPostedEvent:
|
|
260
|
+
AnnouncementPostedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema306.SchemaModel<{
|
|
261
261
|
announcementId: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
spaceId: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
267
267
|
isOptional: true;
|
|
268
268
|
};
|
|
269
269
|
audience: {
|
|
270
|
-
type:
|
|
270
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
271
271
|
isOptional: false;
|
|
272
272
|
};
|
|
273
273
|
orgId: {
|
|
274
|
-
type:
|
|
274
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
createdBy: {
|
|
278
|
-
type:
|
|
278
|
+
type: _lssm_lib_schema306.FieldType<string, string>;
|
|
279
279
|
isOptional: false;
|
|
280
280
|
};
|
|
281
281
|
createdAt: {
|
|
282
|
-
type:
|
|
282
|
+
type: _lssm_lib_schema306.FieldType<Date, string>;
|
|
283
283
|
isOptional: false;
|
|
284
284
|
};
|
|
285
285
|
}>>;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAuDa,mBAAiB,oBAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAuDa,mBAAiB,oBAAA,CAAA,8BAAA;;UAK5B,mBAAA,CAAA;;EALW,CAAA;EAKX,KAAA,EAAA;;;;;uCAL4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAOjB,SAAA,EAAA;IAKX,IAAA,+BAAA,KAAA,EAAA,MAAA,CAAA;;;;cALW,kBAAgB,oBAAA,CAAA,8BAAA;;UAK3B,mBAAA,CAAA;qBAL2B;EAAA,CAAA;EAAA,OAAA,EAAA;IAOhB,IAAA,+BAKX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;uCALiC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAAA,CAAA;EAOtB,KAAA,EAAA;IAKX,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;CAL+B,CAAA,CAAA;AAAA,cAPpB,sBAOoB,EAPE,oBAAA,CAAA,SAOF,qBAPE,WAOF,CAAA;EAOpB,MAAA,EAAA;IAKX,IAAA,EAdA,mBAAA,CAAA,SAcA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAL8B,MAAA,EAAA;IAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAOnB,UAAA,EAAA,KAAA;EAKX,CAAA;;;;;;;qBALkC;EAAA,CAAA;EAAA,SAAA,EAAA;IAOvB,IAAA,+BAOZ,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;cA5BY,sBAAoB,oBAAA,CAAA,8BAAA;;UAK/B,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;cAEW,qBAAmB,oBAAA,CAAA,8BAAA;;UAK9B,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;cAEW,yBAAuB,oBAAA,CAAA,8BAAA;;UAKlC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW;;;YAOZ,mBAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./openbanking.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../registry-utils.js";
|
|
@@ -88,11 +88,11 @@ llm.verify { specPath: "path/to/my.spec.ts", implementationPath: "path/to/impl.t
|
|
|
88
88
|
### Programmatic Usage
|
|
89
89
|
|
|
90
90
|
\`\`\`typescript
|
|
91
|
-
import {
|
|
91
|
+
import { operationSpecToFullMarkdown, operationSpecToAgentPrompt } from '@lssm/lib.contracts/llm';
|
|
92
92
|
import { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';
|
|
93
93
|
|
|
94
94
|
// Export
|
|
95
|
-
const markdown =
|
|
95
|
+
const markdown = operationSpecToFullMarkdown(mySpec);
|
|
96
96
|
|
|
97
97
|
// Generate guide
|
|
98
98
|
const guideService = createAgentGuideService({ defaultAgent: 'claude-code' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-integration.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/llm/llm-integration.docblock.ts\nconst tech_llm_integration_DocBlocks = [\n\t{\n\t\tid: \"docs.tech.llm.overview\",\n\t\ttitle: \"LLM Integration Overview\",\n\t\tsummary: \"Export specs to LLM-friendly formats, generate implementation guides, and verify implementations.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/overview\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"ai\",\n\t\t\t\"export\",\n\t\t\t\"guide\",\n\t\t\t\"verify\"\n\t\t],\n\t\tbody: `# LLM Integration\n\nContractSpec provides first-class LLM integration to bridge specifications and AI coding agents.\n\n## Core Features\n\n### 1. Multi-Format Export\n\nExport specs to markdown in formats optimized for LLM consumption:\n\n- **Context format**: Summary for understanding (goal, context, acceptance criteria)\n- **Full format**: Complete spec with all details (I/O schemas, policy, events)\n- **Prompt format**: Actionable prompt with implementation instructions\n\n### 2. Implementation Guidance\n\nGenerate agent-specific implementation plans:\n\n- **Claude Code**: Extended thinking mode with structured prompts\n- **Cursor CLI**: Background/composer mode with .mdc rules generation\n- **Generic MCP**: Standard format for any MCP-compatible agent\n\n### 3. Tiered Verification\n\nVerify implementations against specs:\n\n- **Tier 1 (Structure)**: Types, exports, imports validation\n- **Tier 2 (Behavior)**: Scenario coverage, error handling, events\n- **Tier 3 (AI Review)**: Semantic compliance analysis via LLM\n\n## Access Points\n\n| Surface | Commands/Tools |\n|---------|---------------|\n| CLI | \\`contractspec llm export\\`, \\`guide\\`, \\`verify\\`, \\`copy\\` |\n| MCP | \\`llm.export\\`, \\`llm.guide\\`, \\`llm.verify\\` tools |\n| VSCode | Export to LLM, Generate Guide, Verify, Copy commands |\n\n## Quick Start\n\n### CLI Usage\n\n\\`\\`\\`bash\n# Export spec as markdown\ncontractspec llm export path/to/my.spec.ts --format full\n\n# Generate implementation guide\ncontractspec llm guide path/to/my.spec.ts --agent claude-code\n\n# Verify implementation\ncontractspec llm verify path/to/my.spec.ts path/to/impl.ts --tier 2\n\n# Copy spec to clipboard\ncontractspec llm copy path/to/my.spec.ts --format context\n\\`\\`\\`\n\n### MCP Usage\n\n\\`\\`\\`\n# Export spec\nllm.export { specPath: \"path/to/my.spec.ts\", format: \"full\" }\n\n# Generate guide\nllm.guide { specPath: \"path/to/my.spec.ts\", agent: \"cursor-cli\" }\n\n# Verify implementation\nllm.verify { specPath: \"path/to/my.spec.ts\", implementationPath: \"path/to/impl.ts\", tier: \"2\" }\n\\`\\`\\`\n\n### Programmatic Usage\n\n\\`\\`\\`typescript\nimport { specToFullMarkdown, specToAgentPrompt } from '@lssm/lib.contracts/llm';\nimport { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';\n\n// Export\nconst markdown = specToFullMarkdown(mySpec);\n\n// Generate guide\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst guide = guideService.generateGuide(mySpec);\n\n// Verify\nconst verifyService = createVerifyService();\nconst result = await verifyService.verify(mySpec, implementationCode, {\n tiers: ['structure', 'behavior']\n});\n\\`\\`\\`\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.export-formats\",\n\t\ttitle: \"LLM Export Formats\",\n\t\tsummary: \"Detailed explanation of the three export formats for LLM consumption.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/export-formats\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"export\",\n\t\t\t\"markdown\"\n\t\t],\n\t\tbody: `# LLM Export Formats\n\nContractSpec provides three export formats optimized for different LLM use cases.\n\n## Context Format\n\nBest for: Understanding what a spec does, providing background to LLMs.\n\nIncludes:\n- Spec name, version, type\n- Goal and context\n- Description\n- Acceptance scenarios\n\nExample:\n\n\\`\\`\\`markdown\n# users.createUser (v1)\n\n> Create a new user account with email verification.\n\n**Type:** command | **Stability:** stable\n\n## Goal\nCreate a new user in the system and trigger email verification.\n\n## Context\nPart of the user onboarding flow. Called after signup form submission.\n\n## Acceptance Criteria\n### Happy path\n**Given:** Valid email and password\n**When:** User submits registration\n**Then:** Account is created, verification email is sent\n\\`\\`\\`\n\n## Full Format\n\nBest for: Complete documentation, implementation reference.\n\nIncludes everything:\n- All metadata\n- JSON schemas for I/O\n- Error definitions\n- Policy (auth, rate limits, PII)\n- Events emitted\n- Examples\n- Transport configuration\n\n## Prompt Format\n\nBest for: Feeding directly to coding agents.\n\nIncludes:\n- Task header with clear instructions\n- Full spec context\n- Implementation requirements\n- Task-specific guidance (implement/test/refactor/review)\n- Expected output format\n\nThe prompt format adapts based on task type:\n- **implement**: Full implementation with tests\n- **test**: Test generation for existing code\n- **refactor**: Refactoring while maintaining behavior\n- **review**: Code review against spec\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.agent-adapters\",\n\t\ttitle: \"Agent Adapters\",\n\t\tsummary: \"Adapters for different AI coding agents (Claude, Cursor, MCP).\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/agent-adapters\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"agents\",\n\t\t\t\"claude\",\n\t\t\t\"cursor\",\n\t\t\t\"mcp\"\n\t\t],\n\t\tbody: `# Agent Adapters\n\nContractSpec provides specialized adapters for different AI coding agents.\n\n## Claude Code Adapter\n\nOptimized for Anthropic Claude's extended thinking and code generation.\n\nFeatures:\n- Structured markdown with clear sections\n- Checklists for steps and verification\n- Icons for file operations (📝 create, ✏️ modify)\n- System prompt for ContractSpec context\n\nUsage:\n\\`\\`\\`typescript\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst result = guideService.generateGuide(spec, { agent: 'claude-code' });\n// result.prompt.systemPrompt - Claude system context\n// result.prompt.taskPrompt - Task-specific instructions\n\\`\\`\\`\n\n## Cursor CLI Adapter\n\nOptimized for Cursor's background/composer mode.\n\nFeatures:\n- Compact format for context efficiency\n- .mdc cursor rules generation\n- Integration with Cursor's file system\n- Concise step lists\n\nGenerate Cursor Rules:\n\\`\\`\\`typescript\nconst cursorRules = guideService.generateAgentConfig(spec, 'cursor-cli');\n// Save to .cursor/rules/my-spec.mdc\n\\`\\`\\`\n\n## Generic MCP Adapter\n\nWorks with any MCP-compatible agent (Cline, Aider, etc.).\n\nFeatures:\n- Standard markdown format\n- Table-based metadata\n- JSON resource format support\n- Prompt message format\n\nThe generic adapter is the default and works across all agents.\n\n## Choosing an Adapter\n\n| Agent | Best For | Key Features |\n|-------|----------|--------------|\n| Claude Code | Complex implementations | Extended thinking, detailed steps |\n| Cursor CLI | IDE-integrated work | Cursor rules, compact format |\n| Generic MCP | Any MCP agent | Universal compatibility |\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.verification\",\n\t\ttitle: \"Implementation Verification\",\n\t\tsummary: \"Tiered verification of implementations against specifications.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/verification\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"verify\",\n\t\t\t\"validation\",\n\t\t\t\"testing\"\n\t\t],\n\t\tbody: `# Implementation Verification\n\nContractSpec provides tiered verification to check if implementations comply with specs.\n\n## Verification Tiers\n\n### Tier 1: Structure (Fast)\n\nChecks TypeScript structure against spec requirements:\n\n| Check | What it validates |\n|-------|------------------|\n| Handler export | Function is properly exported |\n| Contracts import | Imports from @lssm/lib.contracts |\n| Schema import | Imports from @lssm/lib.schema |\n| No \\`any\\` type | TypeScript strict compliance |\n| Error handling | Error codes are referenced |\n| Event emission | Event patterns exist |\n| Input validation | Validation patterns used |\n| Async patterns | Async/await for commands |\n\n### Tier 2: Behavior (Comprehensive)\n\nChecks implementation coverage of spec behaviors:\n\n| Check | What it validates |\n|-------|------------------|\n| Scenario coverage | Acceptance scenarios implemented |\n| Example coverage | Example I/O values referenced |\n| Error cases | All error conditions handled |\n| Event conditions | Events emitted correctly |\n| Idempotency | Idempotent patterns (if required) |\n\n### Tier 3: AI Review (Deep)\n\nUses LLM for semantic analysis:\n\n- Does the implementation fulfill the spec's intent?\n- Are edge cases properly handled?\n- Is the code quality acceptable?\n- Are there any subtle violations?\n\nRequires AI API key configuration.\n\n## Running Verification\n\n\\`\\`\\`typescript\nconst verifyService = createVerifyService({\n aiApiKey: process.env.ANTHROPIC_API_KEY, // Optional, for Tier 3\n aiProvider: 'anthropic',\n});\n\nconst result = await verifyService.verify(spec, implementationCode, {\n tiers: ['structure', 'behavior'],\n failFast: false,\n includeSuggestions: true,\n});\n\nconsole.log(result.passed); // true/false\nconsole.log(result.score); // 0-100\nconsole.log(result.summary); // Human-readable summary\n\\`\\`\\`\n\n## Verification Report\n\nThe report includes:\n\n- **passed**: Overall compliance\n- **score**: 0-100 score\n- **issues**: Array of problems found\n- **suggestions**: Recommended fixes\n- **coverage**: Metrics on scenario/error/field coverage\n\nEach issue has:\n- **severity**: error, warning, or info\n- **category**: type, export, import, scenario, error_handling, semantic\n- **message**: Description of the issue\n- **suggestion**: How to fix it\n`\n\t}\n];\nregisterDocBlocks(tech_llm_integration_DocBlocks);\n\n//#endregion\nexport { tech_llm_integration_DocBlocks };"],"mappings":";;;AAGA,MAAM,iCAAiC;CACtC;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EN;CACD;AACD,kBAAkB,+BAA+B"}
|
|
1
|
+
{"version":3,"file":"llm-integration.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/llm/llm-integration.docblock.ts\nconst tech_llm_integration_DocBlocks = [\n\t{\n\t\tid: \"docs.tech.llm.overview\",\n\t\ttitle: \"LLM Integration Overview\",\n\t\tsummary: \"Export specs to LLM-friendly formats, generate implementation guides, and verify implementations.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/overview\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"ai\",\n\t\t\t\"export\",\n\t\t\t\"guide\",\n\t\t\t\"verify\"\n\t\t],\n\t\tbody: `# LLM Integration\n\nContractSpec provides first-class LLM integration to bridge specifications and AI coding agents.\n\n## Core Features\n\n### 1. Multi-Format Export\n\nExport specs to markdown in formats optimized for LLM consumption:\n\n- **Context format**: Summary for understanding (goal, context, acceptance criteria)\n- **Full format**: Complete spec with all details (I/O schemas, policy, events)\n- **Prompt format**: Actionable prompt with implementation instructions\n\n### 2. Implementation Guidance\n\nGenerate agent-specific implementation plans:\n\n- **Claude Code**: Extended thinking mode with structured prompts\n- **Cursor CLI**: Background/composer mode with .mdc rules generation\n- **Generic MCP**: Standard format for any MCP-compatible agent\n\n### 3. Tiered Verification\n\nVerify implementations against specs:\n\n- **Tier 1 (Structure)**: Types, exports, imports validation\n- **Tier 2 (Behavior)**: Scenario coverage, error handling, events\n- **Tier 3 (AI Review)**: Semantic compliance analysis via LLM\n\n## Access Points\n\n| Surface | Commands/Tools |\n|---------|---------------|\n| CLI | \\`contractspec llm export\\`, \\`guide\\`, \\`verify\\`, \\`copy\\` |\n| MCP | \\`llm.export\\`, \\`llm.guide\\`, \\`llm.verify\\` tools |\n| VSCode | Export to LLM, Generate Guide, Verify, Copy commands |\n\n## Quick Start\n\n### CLI Usage\n\n\\`\\`\\`bash\n# Export spec as markdown\ncontractspec llm export path/to/my.spec.ts --format full\n\n# Generate implementation guide\ncontractspec llm guide path/to/my.spec.ts --agent claude-code\n\n# Verify implementation\ncontractspec llm verify path/to/my.spec.ts path/to/impl.ts --tier 2\n\n# Copy spec to clipboard\ncontractspec llm copy path/to/my.spec.ts --format context\n\\`\\`\\`\n\n### MCP Usage\n\n\\`\\`\\`\n# Export spec\nllm.export { specPath: \"path/to/my.spec.ts\", format: \"full\" }\n\n# Generate guide\nllm.guide { specPath: \"path/to/my.spec.ts\", agent: \"cursor-cli\" }\n\n# Verify implementation\nllm.verify { specPath: \"path/to/my.spec.ts\", implementationPath: \"path/to/impl.ts\", tier: \"2\" }\n\\`\\`\\`\n\n### Programmatic Usage\n\n\\`\\`\\`typescript\nimport { operationSpecToFullMarkdown, operationSpecToAgentPrompt } from '@lssm/lib.contracts/llm';\nimport { createAgentGuideService, createVerifyService } from '@lssm/bundle.contractspec-workspace';\n\n// Export\nconst markdown = operationSpecToFullMarkdown(mySpec);\n\n// Generate guide\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst guide = guideService.generateGuide(mySpec);\n\n// Verify\nconst verifyService = createVerifyService();\nconst result = await verifyService.verify(mySpec, implementationCode, {\n tiers: ['structure', 'behavior']\n});\n\\`\\`\\`\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.export-formats\",\n\t\ttitle: \"LLM Export Formats\",\n\t\tsummary: \"Detailed explanation of the three export formats for LLM consumption.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/export-formats\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"export\",\n\t\t\t\"markdown\"\n\t\t],\n\t\tbody: `# LLM Export Formats\n\nContractSpec provides three export formats optimized for different LLM use cases.\n\n## Context Format\n\nBest for: Understanding what a spec does, providing background to LLMs.\n\nIncludes:\n- Spec name, version, type\n- Goal and context\n- Description\n- Acceptance scenarios\n\nExample:\n\n\\`\\`\\`markdown\n# users.createUser (v1)\n\n> Create a new user account with email verification.\n\n**Type:** command | **Stability:** stable\n\n## Goal\nCreate a new user in the system and trigger email verification.\n\n## Context\nPart of the user onboarding flow. Called after signup form submission.\n\n## Acceptance Criteria\n### Happy path\n**Given:** Valid email and password\n**When:** User submits registration\n**Then:** Account is created, verification email is sent\n\\`\\`\\`\n\n## Full Format\n\nBest for: Complete documentation, implementation reference.\n\nIncludes everything:\n- All metadata\n- JSON schemas for I/O\n- Error definitions\n- Policy (auth, rate limits, PII)\n- Events emitted\n- Examples\n- Transport configuration\n\n## Prompt Format\n\nBest for: Feeding directly to coding agents.\n\nIncludes:\n- Task header with clear instructions\n- Full spec context\n- Implementation requirements\n- Task-specific guidance (implement/test/refactor/review)\n- Expected output format\n\nThe prompt format adapts based on task type:\n- **implement**: Full implementation with tests\n- **test**: Test generation for existing code\n- **refactor**: Refactoring while maintaining behavior\n- **review**: Code review against spec\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.agent-adapters\",\n\t\ttitle: \"Agent Adapters\",\n\t\tsummary: \"Adapters for different AI coding agents (Claude, Cursor, MCP).\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/agent-adapters\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"agents\",\n\t\t\t\"claude\",\n\t\t\t\"cursor\",\n\t\t\t\"mcp\"\n\t\t],\n\t\tbody: `# Agent Adapters\n\nContractSpec provides specialized adapters for different AI coding agents.\n\n## Claude Code Adapter\n\nOptimized for Anthropic Claude's extended thinking and code generation.\n\nFeatures:\n- Structured markdown with clear sections\n- Checklists for steps and verification\n- Icons for file operations (📝 create, ✏️ modify)\n- System prompt for ContractSpec context\n\nUsage:\n\\`\\`\\`typescript\nconst guideService = createAgentGuideService({ defaultAgent: 'claude-code' });\nconst result = guideService.generateGuide(spec, { agent: 'claude-code' });\n// result.prompt.systemPrompt - Claude system context\n// result.prompt.taskPrompt - Task-specific instructions\n\\`\\`\\`\n\n## Cursor CLI Adapter\n\nOptimized for Cursor's background/composer mode.\n\nFeatures:\n- Compact format for context efficiency\n- .mdc cursor rules generation\n- Integration with Cursor's file system\n- Concise step lists\n\nGenerate Cursor Rules:\n\\`\\`\\`typescript\nconst cursorRules = guideService.generateAgentConfig(spec, 'cursor-cli');\n// Save to .cursor/rules/my-spec.mdc\n\\`\\`\\`\n\n## Generic MCP Adapter\n\nWorks with any MCP-compatible agent (Cline, Aider, etc.).\n\nFeatures:\n- Standard markdown format\n- Table-based metadata\n- JSON resource format support\n- Prompt message format\n\nThe generic adapter is the default and works across all agents.\n\n## Choosing an Adapter\n\n| Agent | Best For | Key Features |\n|-------|----------|--------------|\n| Claude Code | Complex implementations | Extended thinking, detailed steps |\n| Cursor CLI | IDE-integrated work | Cursor rules, compact format |\n| Generic MCP | Any MCP agent | Universal compatibility |\n`\n\t},\n\t{\n\t\tid: \"docs.tech.llm.verification\",\n\t\ttitle: \"Implementation Verification\",\n\t\tsummary: \"Tiered verification of implementations against specifications.\",\n\t\tkind: \"reference\",\n\t\tvisibility: \"public\",\n\t\troute: \"/docs/tech/llm/verification\",\n\t\ttags: [\n\t\t\t\"llm\",\n\t\t\t\"verify\",\n\t\t\t\"validation\",\n\t\t\t\"testing\"\n\t\t],\n\t\tbody: `# Implementation Verification\n\nContractSpec provides tiered verification to check if implementations comply with specs.\n\n## Verification Tiers\n\n### Tier 1: Structure (Fast)\n\nChecks TypeScript structure against spec requirements:\n\n| Check | What it validates |\n|-------|------------------|\n| Handler export | Function is properly exported |\n| Contracts import | Imports from @lssm/lib.contracts |\n| Schema import | Imports from @lssm/lib.schema |\n| No \\`any\\` type | TypeScript strict compliance |\n| Error handling | Error codes are referenced |\n| Event emission | Event patterns exist |\n| Input validation | Validation patterns used |\n| Async patterns | Async/await for commands |\n\n### Tier 2: Behavior (Comprehensive)\n\nChecks implementation coverage of spec behaviors:\n\n| Check | What it validates |\n|-------|------------------|\n| Scenario coverage | Acceptance scenarios implemented |\n| Example coverage | Example I/O values referenced |\n| Error cases | All error conditions handled |\n| Event conditions | Events emitted correctly |\n| Idempotency | Idempotent patterns (if required) |\n\n### Tier 3: AI Review (Deep)\n\nUses LLM for semantic analysis:\n\n- Does the implementation fulfill the spec's intent?\n- Are edge cases properly handled?\n- Is the code quality acceptable?\n- Are there any subtle violations?\n\nRequires AI API key configuration.\n\n## Running Verification\n\n\\`\\`\\`typescript\nconst verifyService = createVerifyService({\n aiApiKey: process.env.ANTHROPIC_API_KEY, // Optional, for Tier 3\n aiProvider: 'anthropic',\n});\n\nconst result = await verifyService.verify(spec, implementationCode, {\n tiers: ['structure', 'behavior'],\n failFast: false,\n includeSuggestions: true,\n});\n\nconsole.log(result.passed); // true/false\nconsole.log(result.score); // 0-100\nconsole.log(result.summary); // Human-readable summary\n\\`\\`\\`\n\n## Verification Report\n\nThe report includes:\n\n- **passed**: Overall compliance\n- **score**: 0-100 score\n- **issues**: Array of problems found\n- **suggestions**: Recommended fixes\n- **coverage**: Metrics on scenario/error/field coverage\n\nEach issue has:\n- **severity**: error, warning, or info\n- **category**: type, export, import, scenario, error_handling, semantic\n- **message**: Description of the issue\n- **suggestion**: How to fix it\n`\n\t}\n];\nregisterDocBlocks(tech_llm_integration_DocBlocks);\n\n//#endregion\nexport { tech_llm_integration_DocBlocks };"],"mappings":";;;AAGA,MAAM,iCAAiC;CACtC;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DN;CACD;EACC,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GACL;GACA;GACA;GACA;GACA;EACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EN;CACD;AACD,kBAAkB,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../registry-utils.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { GroupingStrategies, init_registry_utils } from "./registry-utils.js";
|
|
2
|
-
import "./data-views.js";
|
|
3
1
|
import "./schema/dist/index.js";
|
|
4
2
|
import { defineEvent } from "./events.js";
|
|
3
|
+
import { GroupingStrategies, init_registry_utils } from "./registry-utils.js";
|
|
5
4
|
import "./features.js";
|
|
6
|
-
import "./
|
|
7
|
-
import "./presentations.
|
|
5
|
+
import "./presentations/transform-engine.js";
|
|
6
|
+
import "./presentations/presentations.js";
|
|
7
|
+
import "./presentations/index.js";
|
|
8
8
|
import "./client/react/feature-render.js";
|
|
9
|
+
import "./forms/forms.js";
|
|
9
10
|
import "./client/react/form-render.js";
|
|
10
11
|
import "./client/index.js";
|
|
11
12
|
import "./jsonschema.js";
|
|
12
13
|
import "./server/graphql-pothos.js";
|
|
13
|
-
import "./presentations.js";
|
|
14
14
|
import "./server/mcp/createMcpServer.js";
|
|
15
15
|
import "./server/rest-generic.js";
|
|
16
16
|
import "./server/rest-elysia.js";
|
|
@@ -18,20 +18,21 @@ import "./server/rest-express.js";
|
|
|
18
18
|
import "./server/rest-next-app.js";
|
|
19
19
|
import "./server/rest-next-pages.js";
|
|
20
20
|
import "./server/index.js";
|
|
21
|
-
import { defineCommand, defineQuery } from "./operation.js";
|
|
22
|
-
import { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes } from "./docs/presentations.js";
|
|
23
|
-
import { DocRegistry, defaultDocRegistry, registerDocBlocks } from "./docs/registry.js";
|
|
24
|
-
import "./registry.js";
|
|
25
21
|
import { OwnersEnum, StabilityEnum } from "./ownership.js";
|
|
22
|
+
import "./capabilities/openbanking.js";
|
|
23
|
+
import "./capabilities/index.js";
|
|
26
24
|
import { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema } from "./contract-registry/schemas.js";
|
|
27
25
|
import "./contract-registry/index.js";
|
|
26
|
+
import { defineCommand, defineQuery } from "./operations/operation.js";
|
|
27
|
+
import "./operations/registry.js";
|
|
28
28
|
import "./install.js";
|
|
29
29
|
import "./openapi.js";
|
|
30
30
|
import "./prompt.js";
|
|
31
31
|
import "./promptRegistry.js";
|
|
32
|
+
import "./operations/index.js";
|
|
32
33
|
import "./resources.js";
|
|
33
34
|
import { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, DeleteOnboardingDraftOutput, GetOnboardingDraftOutput, SaveOnboardingDraftInput, SaveOnboardingDraftOutput } from "./onboarding-base.js";
|
|
34
|
-
import "./
|
|
35
|
+
import "./data-views/data-views.js";
|
|
35
36
|
import "./telemetry/tracker.js";
|
|
36
37
|
import "./telemetry/index.js";
|
|
37
38
|
import "./tests/runner.js";
|
|
@@ -62,8 +63,8 @@ import "./knowledge/spaces/uploaded-docs.js";
|
|
|
62
63
|
import "./knowledge/spaces/financial-docs.js";
|
|
63
64
|
import "./knowledge/spaces/financial-overview.js";
|
|
64
65
|
import "./knowledge/index.js";
|
|
65
|
-
import "./integrations/
|
|
66
|
-
import "./knowledge/
|
|
66
|
+
import "./integrations/operations.js";
|
|
67
|
+
import "./knowledge/operations.js";
|
|
67
68
|
import "./regenerator/service.js";
|
|
68
69
|
import "./regenerator/index.js";
|
|
69
70
|
import { FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from "./workspace-config/contractsrc-schema.js";
|
|
@@ -71,6 +72,8 @@ import "./workspace-config/index.js";
|
|
|
71
72
|
import "./workflow/spec.js";
|
|
72
73
|
import "./workflow/runner.js";
|
|
73
74
|
import "./workflow/index.js";
|
|
75
|
+
import { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes } from "./docs/presentations.js";
|
|
76
|
+
import { DocRegistry, defaultDocRegistry, registerDocBlocks } from "./docs/registry.js";
|
|
74
77
|
import { techContractsDocs } from "./docs/tech-contracts.docs.js";
|
|
75
78
|
import { metaDocs } from "./docs/meta.docs.js";
|
|
76
79
|
import "./docs/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../libs/contracts/dist/index.js"],"sourcesContent":["import { CapabilityRegistry, capabilityKey, defineCapability } from \"./capabilities.js\";\nimport { GroupingStrategies, filterBy, getUniqueDomains, getUniqueOwners, getUniqueTags, groupBy, groupByMultiple, groupByToArray, init_registry_utils } from \"./registry-utils.js\";\nimport { DataViewRegistry, dataViewKey } from \"./data-views.js\";\nimport { K5 } from \"./schema/dist/index.js\";\nimport { defineEvent, eventKey } from \"./events.js\";\nimport { FeatureRegistry, installFeature, validateFeatureTargetsV2 } from \"./features.js\";\nimport { FormRegistry, buildZodWithRelations, defineFormSpec, evalPredicate } from \"./forms.js\";\nimport { schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable } from \"./schema-to-markdown.js\";\nimport { TransformEngine, createDefaultTransformEngine, registerBasicValidation, registerDefaultReactRenderer, registerReactToMarkdownRenderer } from \"./presentations.v2.js\";\nimport { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from \"./client/react/feature-render.js\";\nimport { createFormRenderer } from \"./client/react/form-render.js\";\nimport { shadcnDriver } from \"./client/react/drivers/shadcn.js\";\nimport { rnReusablesDriver } from \"./client/react/drivers/rn-reusables.js\";\nimport \"./client/index.js\";\nimport { defaultGqlField, defaultMcpTool, defaultRestPath, jsonSchemaForSpec } from \"./jsonschema.js\";\nimport { registerContractsOnBuilder } from \"./server/graphql-pothos.js\";\nimport { PresentationRegistry, jsonSchemaForPresentation } from \"./presentations.js\";\nimport { createMcpServer } from \"./server/mcp/createMcpServer.js\";\nimport { createFetchHandler } from \"./server/rest-generic.js\";\nimport { elysiaPlugin } from \"./server/rest-elysia.js\";\nimport { expressRouter } from \"./server/rest-express.js\";\nimport { makeNextAppHandler } from \"./server/rest-next-app.js\";\nimport { makeNextPagesHandler } from \"./server/rest-next-pages.js\";\nimport \"./server/index.js\";\nimport { defineCommand, defineQuery, isEmitDeclRef } from \"./operation.js\";\nimport { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from \"./docs/presentations.js\";\nimport { DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from \"./docs/registry.js\";\nimport { OperationSpecRegistry, opKey } from \"./registry.js\";\nimport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum } from \"./ownership.js\";\nimport { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema } from \"./contract-registry/schemas.js\";\nimport \"./contract-registry/index.js\";\nimport { installOp, makeEmit, op } from \"./install.js\";\nimport { openApiForRegistry } from \"./openapi.js\";\nimport { definePrompt } from \"./prompt.js\";\nimport { PromptRegistry } from \"./promptRegistry.js\";\nimport { ResourceRegistry, defineResourceTemplate, isResourceRef, resourceRef } from \"./resources.js\";\nimport { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput } from \"./onboarding-base.js\";\nimport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities } from \"./capabilities/openbanking.js\";\nimport { PolicyRegistry, makePolicyKey } from \"./policy/spec.js\";\nimport { PolicyEngine } from \"./policy/engine.js\";\nimport { OPAPolicyAdapter, buildOPAInput } from \"./policy/opa-adapter.js\";\nimport { ThemeRegistry, makeThemeRef } from \"./themes.js\";\nimport { MigrationRegistry } from \"./migrations.js\";\nimport { TelemetryRegistry, makeTelemetryKey } from \"./telemetry/spec.js\";\nimport { TelemetryTracker } from \"./telemetry/tracker.js\";\nimport { TelemetryAnomalyMonitor } from \"./telemetry/anomaly.js\";\nimport \"./telemetry/index.js\";\nimport { TestRegistry, makeTestKey } from \"./tests/spec.js\";\nimport { TestRunner } from \"./tests/runner.js\";\nimport \"./tests/index.js\";\nimport { ExperimentRegistry, makeExperimentKey } from \"./experiments/spec.js\";\nimport { ExperimentEvaluator } from \"./experiments/evaluator.js\";\nimport { AppBlueprintRegistry, makeAppBlueprintKey } from \"./app-config/spec.js\";\nimport { composeAppConfig, resolveAppConfig } from \"./app-config/runtime.js\";\nimport { IntegrationSpecRegistry, makeIntegrationSpecKey } from \"./integrations/spec.js\";\nimport { registerStripeIntegration, stripeIntegrationSpec } from \"./integrations/providers/stripe.js\";\nimport { postmarkIntegrationSpec, registerPostmarkIntegration } from \"./integrations/providers/postmark.js\";\nimport { qdrantIntegrationSpec, registerQdrantIntegration } from \"./integrations/providers/qdrant.js\";\nimport { mistralIntegrationSpec, registerMistralIntegration } from \"./integrations/providers/mistral.js\";\nimport { elevenLabsIntegrationSpec, registerElevenLabsIntegration } from \"./integrations/providers/elevenlabs.js\";\nimport { gmailIntegrationSpec, registerGmailIntegration } from \"./integrations/providers/gmail.js\";\nimport { googleCalendarIntegrationSpec, registerGoogleCalendarIntegration } from \"./integrations/providers/google-calendar.js\";\nimport { registerTwilioSmsIntegration, twilioSmsIntegrationSpec } from \"./integrations/providers/twilio-sms.js\";\nimport { gcsStorageIntegrationSpec, registerGcsStorageIntegration } from \"./integrations/providers/gcs-storage.js\";\nimport { powensIntegrationSpec, registerPowensIntegration } from \"./integrations/providers/powens.js\";\nimport { createDefaultIntegrationSpecRegistry } from \"./integrations/providers/registry.js\";\nimport { AccountBalanceRecord, BankAccountRecord, BankTransactionRecord } from \"./integrations/openbanking/models.js\";\nimport { OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, redactOpenBankingTelemetryPayload } from \"./integrations/openbanking/telemetry.js\";\nimport { OpenBankingGetAccount, OpenBankingListAccounts, OpenBankingSyncAccounts } from \"./integrations/openbanking/contracts/accounts.js\";\nimport { OpenBankingListTransactions, OpenBankingSyncTransactions } from \"./integrations/openbanking/contracts/transactions.js\";\nimport { OpenBankingGetBalances, OpenBankingRefreshBalances } from \"./integrations/openbanking/contracts/balances.js\";\nimport { OpenBankingFeature } from \"./integrations/openbanking/openbanking.feature.js\";\nimport { registerOpenBankingContracts } from \"./integrations/openbanking/contracts/index.js\";\nimport { assertPrimaryOpenBankingReady, ensurePrimaryOpenBankingIntegration } from \"./integrations/openbanking/guards.js\";\nimport \"./integrations/index.js\";\nimport { KnowledgeSpaceRegistry, makeKnowledgeSpaceKey } from \"./knowledge/spec.js\";\nimport { productCanonKnowledgeSpace, registerProductCanonKnowledgeSpace } from \"./knowledge/spaces/product-canon.js\";\nimport { registerSupportFaqKnowledgeSpace, supportFaqKnowledgeSpace } from \"./knowledge/spaces/support-faq.js\";\nimport { emailThreadsKnowledgeSpace, registerEmailThreadsKnowledgeSpace } from \"./knowledge/spaces/email-threads.js\";\nimport { registerUploadedDocsKnowledgeSpace, uploadedDocsKnowledgeSpace } from \"./knowledge/spaces/uploaded-docs.js\";\nimport { financialDocsKnowledgeSpace, registerFinancialDocsKnowledgeSpace } from \"./knowledge/spaces/financial-docs.js\";\nimport { financialOverviewKnowledgeSpace, registerFinancialOverviewKnowledgeSpace } from \"./knowledge/spaces/financial-overview.js\";\nimport \"./knowledge/index.js\";\nimport { CreateIntegrationConnection, DeleteIntegrationConnection, ListIntegrationConnections, TestIntegrationConnection, UpdateIntegrationConnection, integrationContracts, registerIntegrationContracts } from \"./integrations/contracts.js\";\nimport { CreateKnowledgeSource, DeleteKnowledgeSource, ListKnowledgeSources, TriggerKnowledgeSourceSync, UpdateKnowledgeSource, knowledgeContracts, registerKnowledgeContracts } from \"./knowledge/contracts.js\";\nimport { behaviorToEnvelope, errorToEnvelope, telemetryToEnvelope } from \"./regenerator/utils.js\";\nimport { RegeneratorService } from \"./regenerator/service.js\";\nimport { ProposalExecutor } from \"./regenerator/executor.js\";\nimport { ExecutorProposalSink } from \"./regenerator/sinks.js\";\nimport \"./regenerator/index.js\";\nimport { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from \"./workspace-config/contractsrc-schema.js\";\nimport \"./workspace-config/index.js\";\nimport { WorkflowRegistry } from \"./workflow/spec.js\";\nimport { WorkflowValidationError, assertWorkflowSpecValid, validateWorkflowSpec } from \"./workflow/validation.js\";\nimport { evaluateExpression } from \"./workflow/expression.js\";\nimport { WorkflowPreFlightError, WorkflowRunner } from \"./workflow/runner.js\";\nimport { InMemoryStateStore } from \"./workflow/adapters/memory-store.js\";\nimport { PrismaStateStore } from \"./workflow/adapters/db-adapter.js\";\nimport { createFileStateStore } from \"./workflow/adapters/file-adapter.js\";\nimport \"./workflow/index.js\";\nimport { techContractsDocs } from \"./docs/tech-contracts.docs.js\";\nimport { metaDocs } from \"./docs/meta.docs.js\";\nimport \"./docs/index.js\";\nimport { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, presentationToMarkdown, specToAgentPrompt, specToContextMarkdown, specToFullMarkdown } from \"./llm/exporters.js\";\nimport { AGENT_SYSTEM_PROMPTS, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt } from \"./llm/prompts.js\";\nimport \"./llm/index.js\";\n\n//#region src/index.ts\ninit_registry_utils();\n\n//#endregion\nexport { AGENT_SYSTEM_PROMPTS, AccountBalanceRecord, AppBlueprintRegistry, BankAccountRecord, BankTransactionRecord, CapabilityRegistry, CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema, ContractsrcSchema, CreateIntegrationConnection, CreateKnowledgeSource, DEFAULT_CONTRACTSRC, DataViewRegistry, DeleteIntegrationConnection, DeleteKnowledgeSource, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, DocRegistry, ExecutorProposalSink, ExperimentEvaluator, ExperimentRegistry, FeatureRegistry, FolderConventionsSchema, FormRegistry, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, GroupingStrategies, InMemoryStateStore, IntegrationSpecRegistry, KnowledgeSpaceRegistry, ListIntegrationConnections, ListKnowledgeSources, MigrationRegistry, OPAPolicyAdapter, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OperationSpecRegistry, Owners, OwnersEnum, PolicyEngine, PolicyRegistry, PresentationRegistry, PrismaStateStore, PromptRegistry, ProposalExecutor, RegeneratorService, ResourceRegistry, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput, StabilityEnum, Tags, TagsEnum, TelemetryAnomalyMonitor, TelemetryRegistry, TelemetryTracker, TestIntegrationConnection, TestRegistry, TestRunner, ThemeRegistry, TransformEngine, TriggerKnowledgeSourceSync, UpdateIntegrationConnection, UpdateKnowledgeSource, WorkflowPreFlightError, WorkflowRegistry, WorkflowRunner, WorkflowValidationError, assertPrimaryOpenBankingReady, assertWorkflowSpecValid, behaviorToEnvelope, buildOPAInput, buildZodWithRelations, capabilityKey, composeAppConfig, createDefaultIntegrationSpecRegistry, createDefaultTransformEngine, createEngineWithDefaults, createFeatureModule, createFetchHandler, createFileStateStore, createFormRenderer, createMcpServer, dataViewKey, defaultDocRegistry, defaultGqlField, defaultMcpTool, defaultRestPath, defineCapability, defineCommand, defineEvent, defineFormSpec, definePrompt, defineQuery, defineResourceTemplate, K5 as defineSchemaModel, docBlockToMarkdown, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, elevenLabsIntegrationSpec, elysiaPlugin, emailThreadsKnowledgeSpace, ensurePrimaryOpenBankingIntegration, errorToEnvelope, evalPredicate, evaluateExpression, eventKey, eventToMarkdown, exportFeature, exportSpec, expressRouter, featureToMarkdown, filterBy, financialDocsKnowledgeSpace, financialOverviewKnowledgeSpace, formatPlanForAgent, gcsStorageIntegrationSpec, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, getUniqueDomains, getUniqueOwners, getUniqueTags, gmailIntegrationSpec, googleCalendarIntegrationSpec, groupBy, groupByMultiple, groupByToArray, installFeature, installOp, integrationContracts, isEmitDeclRef, isResourceRef, jsonSchemaForPresentation, jsonSchemaForSpec, knowledgeContracts, listRegisteredDocBlocks, makeAppBlueprintKey, makeEmit, makeExperimentKey, makeIntegrationSpecKey, makeKnowledgeSpaceKey, makeNextAppHandler, makeNextPagesHandler, makePolicyKey, makeTelemetryKey, makeTestKey, makeThemeRef, mapDocRoutes, metaDocs, mistralIntegrationSpec, op, opKey, openApiForRegistry, openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, postmarkIntegrationSpec, powensIntegrationSpec, presentationToMarkdown, productCanonKnowledgeSpace, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerBasicValidation, registerContractsOnBuilder, registerDefaultReactRenderer, registerDocBlocks, registerElevenLabsIntegration, registerEmailThreadsKnowledgeSpace, registerFeature, registerFinancialDocsKnowledgeSpace, registerFinancialOverviewKnowledgeSpace, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerIntegrationContracts, registerKnowledgeContracts, registerMistralIntegration, registerOpenBankingCapabilities, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerProductCanonKnowledgeSpace, registerQdrantIntegration, registerReactToMarkdownRenderer, registerStripeIntegration, registerSupportFaqKnowledgeSpace, registerTwilioSmsIntegration, registerUploadedDocsKnowledgeSpace, renderFeaturePresentation, resolveAppConfig, resourceRef, rnReusablesDriver, schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable, shadcnDriver, specToAgentPrompt, specToContextMarkdown, specToFullMarkdown, stripeIntegrationSpec, supportFaqKnowledgeSpace, techContractsDocs, telemetryToEnvelope, twilioSmsIntegrationSpec, uploadedDocsKnowledgeSpace, validateFeatureTargetsV2, validateWorkflowSpec };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GA,qBAAqB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../libs/contracts/dist/index.js"],"sourcesContent":["import { K5 } from \"./schema/dist/index.js\";\nimport { defineEvent, eventKey } from \"./events.js\";\nimport { GroupingStrategies, filterBy, getUniqueDomains, getUniqueOwners, getUniqueTags, groupBy, groupByMultiple, groupByToArray, init_registry_utils } from \"./registry-utils.js\";\nimport { FeatureRegistry, installFeature, validateFeatureTargetsV2 } from \"./features.js\";\nimport { schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable } from \"./schema-to-markdown.js\";\nimport { TransformEngine, createDefaultTransformEngine, registerBasicValidation, registerDefaultReactRenderer, registerReactToMarkdownRenderer } from \"./presentations/transform-engine.js\";\nimport { PresentationRegistry, jsonSchemaForPresentation } from \"./presentations/presentations.js\";\nimport \"./presentations/index.js\";\nimport { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from \"./client/react/feature-render.js\";\nimport { FormRegistry, buildZodWithRelations, defineFormSpec, evalPredicate } from \"./forms/forms.js\";\nimport { createFormRenderer } from \"./client/react/form-render.js\";\nimport { shadcnDriver } from \"./client/react/drivers/shadcn.js\";\nimport { rnReusablesDriver } from \"./client/react/drivers/rn-reusables.js\";\nimport \"./client/index.js\";\nimport { defaultGqlField, defaultMcpTool, defaultRestPath, jsonSchemaForSpec } from \"./jsonschema.js\";\nimport { registerContractsOnBuilder } from \"./server/graphql-pothos.js\";\nimport { createMcpServer } from \"./server/mcp/createMcpServer.js\";\nimport { createFetchHandler } from \"./server/rest-generic.js\";\nimport { elysiaPlugin } from \"./server/rest-elysia.js\";\nimport { expressRouter } from \"./server/rest-express.js\";\nimport { makeNextAppHandler } from \"./server/rest-next-app.js\";\nimport { makeNextPagesHandler } from \"./server/rest-next-pages.js\";\nimport \"./server/index.js\";\nimport { CapabilityRegistry, capabilityKey, defineCapability } from \"./capabilities/capabilities.js\";\nimport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum } from \"./ownership.js\";\nimport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities } from \"./capabilities/openbanking.js\";\nimport \"./capabilities/index.js\";\nimport { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema } from \"./contract-registry/schemas.js\";\nimport \"./contract-registry/index.js\";\nimport { defineCommand, defineQuery, isEmitDeclRef } from \"./operations/operation.js\";\nimport { OperationSpecRegistry, opKey } from \"./operations/registry.js\";\nimport { installOp, makeEmit, op } from \"./install.js\";\nimport { openApiForRegistry } from \"./openapi.js\";\nimport { definePrompt } from \"./prompt.js\";\nimport { PromptRegistry } from \"./promptRegistry.js\";\nimport \"./operations/index.js\";\nimport { ResourceRegistry, defineResourceTemplate, isResourceRef, resourceRef } from \"./resources.js\";\nimport { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput } from \"./onboarding-base.js\";\nimport { DataViewRegistry, dataViewKey } from \"./data-views/data-views.js\";\nimport { DataViewQueryGenerator } from \"./data-views/query-generator.js\";\nimport { DataViewRuntime } from \"./data-views/runtime.js\";\nimport { PolicyRegistry, makePolicyKey } from \"./policy/spec.js\";\nimport { PolicyEngine } from \"./policy/engine.js\";\nimport { OPAPolicyAdapter, buildOPAInput } from \"./policy/opa-adapter.js\";\nimport { ThemeRegistry, makeThemeRef } from \"./themes.js\";\nimport { MigrationRegistry } from \"./migrations.js\";\nimport { TelemetryRegistry, makeTelemetryKey } from \"./telemetry/spec.js\";\nimport { TelemetryTracker } from \"./telemetry/tracker.js\";\nimport { TelemetryAnomalyMonitor } from \"./telemetry/anomaly.js\";\nimport \"./telemetry/index.js\";\nimport { TestRegistry, makeTestKey } from \"./tests/spec.js\";\nimport { TestRunner } from \"./tests/runner.js\";\nimport \"./tests/index.js\";\nimport { ExperimentRegistry, makeExperimentKey } from \"./experiments/spec.js\";\nimport { ExperimentEvaluator } from \"./experiments/evaluator.js\";\nimport { AppBlueprintRegistry, makeAppBlueprintKey } from \"./app-config/spec.js\";\nimport { composeAppConfig, resolveAppConfig } from \"./app-config/runtime.js\";\nimport { IntegrationSpecRegistry, makeIntegrationSpecKey } from \"./integrations/spec.js\";\nimport { registerStripeIntegration, stripeIntegrationSpec } from \"./integrations/providers/stripe.js\";\nimport { postmarkIntegrationSpec, registerPostmarkIntegration } from \"./integrations/providers/postmark.js\";\nimport { qdrantIntegrationSpec, registerQdrantIntegration } from \"./integrations/providers/qdrant.js\";\nimport { mistralIntegrationSpec, registerMistralIntegration } from \"./integrations/providers/mistral.js\";\nimport { elevenLabsIntegrationSpec, registerElevenLabsIntegration } from \"./integrations/providers/elevenlabs.js\";\nimport { gmailIntegrationSpec, registerGmailIntegration } from \"./integrations/providers/gmail.js\";\nimport { googleCalendarIntegrationSpec, registerGoogleCalendarIntegration } from \"./integrations/providers/google-calendar.js\";\nimport { registerTwilioSmsIntegration, twilioSmsIntegrationSpec } from \"./integrations/providers/twilio-sms.js\";\nimport { gcsStorageIntegrationSpec, registerGcsStorageIntegration } from \"./integrations/providers/gcs-storage.js\";\nimport { powensIntegrationSpec, registerPowensIntegration } from \"./integrations/providers/powens.js\";\nimport { createDefaultIntegrationSpecRegistry } from \"./integrations/providers/registry.js\";\nimport { AccountBalanceRecord, BankAccountRecord, BankTransactionRecord } from \"./integrations/openbanking/models.js\";\nimport { OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, redactOpenBankingTelemetryPayload } from \"./integrations/openbanking/telemetry.js\";\nimport { OpenBankingGetAccount, OpenBankingListAccounts, OpenBankingSyncAccounts } from \"./integrations/openbanking/contracts/accounts.js\";\nimport { OpenBankingListTransactions, OpenBankingSyncTransactions } from \"./integrations/openbanking/contracts/transactions.js\";\nimport { OpenBankingGetBalances, OpenBankingRefreshBalances } from \"./integrations/openbanking/contracts/balances.js\";\nimport { OpenBankingFeature } from \"./integrations/openbanking/openbanking.feature.js\";\nimport { registerOpenBankingContracts } from \"./integrations/openbanking/contracts/index.js\";\nimport { assertPrimaryOpenBankingReady, ensurePrimaryOpenBankingIntegration } from \"./integrations/openbanking/guards.js\";\nimport \"./integrations/index.js\";\nimport { KnowledgeSpaceRegistry, makeKnowledgeSpaceKey } from \"./knowledge/spec.js\";\nimport { productCanonKnowledgeSpace, registerProductCanonKnowledgeSpace } from \"./knowledge/spaces/product-canon.js\";\nimport { registerSupportFaqKnowledgeSpace, supportFaqKnowledgeSpace } from \"./knowledge/spaces/support-faq.js\";\nimport { emailThreadsKnowledgeSpace, registerEmailThreadsKnowledgeSpace } from \"./knowledge/spaces/email-threads.js\";\nimport { registerUploadedDocsKnowledgeSpace, uploadedDocsKnowledgeSpace } from \"./knowledge/spaces/uploaded-docs.js\";\nimport { financialDocsKnowledgeSpace, registerFinancialDocsKnowledgeSpace } from \"./knowledge/spaces/financial-docs.js\";\nimport { financialOverviewKnowledgeSpace, registerFinancialOverviewKnowledgeSpace } from \"./knowledge/spaces/financial-overview.js\";\nimport \"./knowledge/index.js\";\nimport { CreateIntegrationConnection, DeleteIntegrationConnection, ListIntegrationConnections, TestIntegrationConnection, UpdateIntegrationConnection, integrationContracts, registerIntegrationContracts } from \"./integrations/operations.js\";\nimport { CreateKnowledgeSource, DeleteKnowledgeSource, ListKnowledgeSources, TriggerKnowledgeSourceSync, UpdateKnowledgeSource, knowledgeContracts, registerKnowledgeContracts } from \"./knowledge/operations.js\";\nimport { behaviorToEnvelope, errorToEnvelope, telemetryToEnvelope } from \"./regenerator/utils.js\";\nimport { RegeneratorService } from \"./regenerator/service.js\";\nimport { ProposalExecutor } from \"./regenerator/executor.js\";\nimport { ExecutorProposalSink } from \"./regenerator/sinks.js\";\nimport \"./regenerator/index.js\";\nimport { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from \"./workspace-config/contractsrc-schema.js\";\nimport \"./workspace-config/index.js\";\nimport { WorkflowRegistry } from \"./workflow/spec.js\";\nimport { WorkflowValidationError, assertWorkflowSpecValid, validateWorkflowSpec } from \"./workflow/validation.js\";\nimport { evaluateExpression } from \"./workflow/expression.js\";\nimport { WorkflowPreFlightError, WorkflowRunner } from \"./workflow/runner.js\";\nimport { InMemoryStateStore } from \"./workflow/adapters/memory-store.js\";\nimport { PrismaStateStore } from \"./workflow/adapters/db-adapter.js\";\nimport { createFileStateStore } from \"./workflow/adapters/file-adapter.js\";\nimport \"./workflow/index.js\";\nimport { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from \"./docs/presentations.js\";\nimport { DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from \"./docs/registry.js\";\nimport { techContractsDocs } from \"./docs/tech-contracts.docs.js\";\nimport { metaDocs } from \"./docs/meta.docs.js\";\nimport \"./docs/index.js\";\nimport { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown } from \"./llm/exporters.js\";\nimport { AGENT_SYSTEM_PROMPTS, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt } from \"./llm/prompts.js\";\nimport \"./llm/index.js\";\n\n//#region src/index.ts\ninit_registry_utils();\n\n//#endregion\nexport { AGENT_SYSTEM_PROMPTS, AccountBalanceRecord, AppBlueprintRegistry, BankAccountRecord, BankTransactionRecord, CapabilityRegistry, CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema, ContractsrcSchema, CreateIntegrationConnection, CreateKnowledgeSource, DEFAULT_CONTRACTSRC, DataViewQueryGenerator, DataViewRegistry, DataViewRuntime, DeleteIntegrationConnection, DeleteKnowledgeSource, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, DocRegistry, ExecutorProposalSink, ExperimentEvaluator, ExperimentRegistry, FeatureRegistry, FolderConventionsSchema, FormRegistry, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, GroupingStrategies, InMemoryStateStore, IntegrationSpecRegistry, KnowledgeSpaceRegistry, ListIntegrationConnections, ListKnowledgeSources, MigrationRegistry, OPAPolicyAdapter, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OperationSpecRegistry, Owners, OwnersEnum, PolicyEngine, PolicyRegistry, PresentationRegistry, PrismaStateStore, PromptRegistry, ProposalExecutor, RegeneratorService, ResourceRegistry, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput, StabilityEnum, Tags, TagsEnum, TelemetryAnomalyMonitor, TelemetryRegistry, TelemetryTracker, TestIntegrationConnection, TestRegistry, TestRunner, ThemeRegistry, TransformEngine, TriggerKnowledgeSourceSync, UpdateIntegrationConnection, UpdateKnowledgeSource, WorkflowPreFlightError, WorkflowRegistry, WorkflowRunner, WorkflowValidationError, assertPrimaryOpenBankingReady, assertWorkflowSpecValid, behaviorToEnvelope, buildOPAInput, buildZodWithRelations, capabilityKey, composeAppConfig, createDefaultIntegrationSpecRegistry, createDefaultTransformEngine, createEngineWithDefaults, createFeatureModule, createFetchHandler, createFileStateStore, createFormRenderer, createMcpServer, dataViewKey, defaultDocRegistry, defaultGqlField, defaultMcpTool, defaultRestPath, defineCapability, defineCommand, defineEvent, defineFormSpec, definePrompt, defineQuery, defineResourceTemplate, K5 as defineSchemaModel, docBlockToMarkdown, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, elevenLabsIntegrationSpec, elysiaPlugin, emailThreadsKnowledgeSpace, ensurePrimaryOpenBankingIntegration, errorToEnvelope, evalPredicate, evaluateExpression, eventKey, eventToMarkdown, exportFeature, exportSpec, expressRouter, featureToMarkdown, filterBy, financialDocsKnowledgeSpace, financialOverviewKnowledgeSpace, formatPlanForAgent, gcsStorageIntegrationSpec, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, getUniqueDomains, getUniqueOwners, getUniqueTags, gmailIntegrationSpec, googleCalendarIntegrationSpec, groupBy, groupByMultiple, groupByToArray, installFeature, installOp, integrationContracts, isEmitDeclRef, isResourceRef, jsonSchemaForPresentation, jsonSchemaForSpec, knowledgeContracts, listRegisteredDocBlocks, makeAppBlueprintKey, makeEmit, makeExperimentKey, makeIntegrationSpecKey, makeKnowledgeSpaceKey, makeNextAppHandler, makeNextPagesHandler, makePolicyKey, makeTelemetryKey, makeTestKey, makeThemeRef, mapDocRoutes, metaDocs, mistralIntegrationSpec, op, opKey, openApiForRegistry, openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, postmarkIntegrationSpec, powensIntegrationSpec, presentationToMarkdown, productCanonKnowledgeSpace, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerBasicValidation, registerContractsOnBuilder, registerDefaultReactRenderer, registerDocBlocks, registerElevenLabsIntegration, registerEmailThreadsKnowledgeSpace, registerFeature, registerFinancialDocsKnowledgeSpace, registerFinancialOverviewKnowledgeSpace, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerIntegrationContracts, registerKnowledgeContracts, registerMistralIntegration, registerOpenBankingCapabilities, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerProductCanonKnowledgeSpace, registerQdrantIntegration, registerReactToMarkdownRenderer, registerStripeIntegration, registerSupportFaqKnowledgeSpace, registerTwilioSmsIntegration, registerUploadedDocsKnowledgeSpace, renderFeaturePresentation, resolveAppConfig, resourceRef, rnReusablesDriver, schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable, shadcnDriver, stripeIntegrationSpec, supportFaqKnowledgeSpace, techContractsDocs, telemetryToEnvelope, twilioSmsIntegrationSpec, uploadedDocsKnowledgeSpace, validateFeatureTargetsV2, validateWorkflowSpec };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA,qBAAqB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./registry.js";
|
|
1
|
+
import "./operations/registry.js";
|
|
2
2
|
import "zod";
|