@lssm/lib.contracts 0.0.0-canary-20251221132705 → 0.0.0-canary-20251221144710
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/app-config/contracts.d.ts +56 -55
- package/dist/app-config/contracts.js +5 -4
- package/dist/app-config/docs/app-config.docblock.js +0 -1
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +83 -82
- package/dist/app-config/lifecycle-contracts.js +2 -1
- package/dist/app-config/runtime.d.ts +4 -2
- package/dist/app-config/spec.d.ts +2 -1
- package/dist/app-config/validation.d.ts +4 -2
- package/dist/{capabilities.d.ts → capabilities/capabilities.d.ts} +3 -3
- package/dist/{capabilities.js → capabilities/capabilities.js} +1 -1
- package/dist/capabilities/docs/capabilities.docblock.js +0 -1
- package/dist/capabilities/index.d.ts +3 -0
- package/dist/capabilities/index.js +4 -0
- package/dist/capabilities/openbanking.d.ts +2 -1
- package/dist/client/react/feature-render.d.ts +3 -1
- package/dist/client/react/feature-render.js +2 -1
- package/dist/client/react/form-render.d.ts +1 -1
- package/dist/client/react/form-render.js +1 -1
- package/dist/{data-views.d.ts → data-views/data-views.d.ts} +5 -5
- package/dist/{data-views.js → data-views/data-views.js} +3 -3
- package/dist/data-views/docs/data-views.docblock.js +0 -1
- package/dist/data-views/index.d.ts +4 -0
- package/dist/data-views/index.js +5 -0
- package/dist/data-views/query-generator.d.ts +2 -1
- package/dist/data-views/runtime.d.ts +2 -1
- package/dist/docs/presentations.d.ts +3 -2
- package/dist/docs/registry.d.ts +3 -2
- package/dist/docs/tech/llm/llm-integration.docblock.js +2 -2
- package/dist/experiments/docs/experiments.docblock.js +0 -1
- package/dist/experiments/spec-resolver.d.ts +2 -1
- package/dist/features.d.ts +8 -5
- package/dist/forms/docs/forms.docblock.js +0 -1
- package/dist/{forms.d.ts → forms/forms.d.ts} +3 -3
- package/dist/{forms.js → forms/forms.js} +3 -3
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.js +3 -0
- package/dist/index.d.ts +19 -12
- package/dist/index.js +20 -15
- package/dist/install.d.ts +3 -2
- package/dist/install.js +1 -1
- package/dist/integrations/docs/integrations.docblock.js +0 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +69 -68
- package/dist/integrations/openbanking/contracts/accounts.js +2 -1
- package/dist/integrations/openbanking/contracts/balances.d.ts +37 -36
- package/dist/integrations/openbanking/contracts/balances.js +2 -1
- package/dist/integrations/openbanking/contracts/index.d.ts +1 -1
- package/dist/integrations/openbanking/contracts/transactions.d.ts +51 -50
- package/dist/integrations/openbanking/contracts/transactions.js +2 -1
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +437 -0
- package/dist/integrations/{contracts.js → operations.js} +3 -2
- package/dist/integrations/spec.d.ts +2 -1
- package/dist/jsonschema.d.ts +5 -4
- package/dist/knowledge/docs/knowledge.docblock.js +0 -1
- package/dist/knowledge/{contracts.d.ts → operations.d.ts} +70 -69
- package/dist/knowledge/{contracts.js → operations.js} +3 -2
- package/dist/llm/exporters.d.ts +10 -8
- package/dist/llm/exporters.js +11 -10
- package/dist/llm/index.d.ts +2 -2
- package/dist/llm/index.js +2 -2
- package/dist/llm/prompts.d.ts +2 -1
- package/dist/llm/prompts.js +8 -8
- package/dist/llm/types.d.ts +3 -2
- package/dist/markdown.d.ts +5 -4
- package/dist/markdown.js +6 -5
- package/dist/onboarding-base.d.ts +31 -30
- package/dist/onboarding-base.js +2 -1
- package/dist/openapi.d.ts +1 -1
- package/dist/operations/index.d.ts +3 -0
- package/dist/operations/index.js +4 -0
- package/dist/{operation.d.ts → operations/operation.d.ts} +7 -7
- package/dist/{operation.js → operations/operation.js} +1 -1
- package/dist/{registry.d.ts → operations/registry.d.ts} +6 -7
- package/dist/{registry.js → operations/registry.js} +5 -6
- package/dist/policy/docs/policy.docblock.js +0 -1
- package/dist/presentations/docs/presentations-conventions.docblock.js +0 -1
- package/dist/presentations/index.d.ts +4 -0
- package/dist/presentations/index.js +4 -0
- package/dist/{presentations.d.ts → presentations/presentations.d.ts} +6 -6
- package/dist/{presentations.js → presentations/presentations.js} +3 -3
- package/dist/presentations/presentations.v2.d.ts +54 -0
- package/dist/presentations/presentations.v2.js +0 -0
- package/dist/{presentations.v2.d.ts → presentations/transform-engine.d.ts} +3 -51
- package/dist/{presentations.v2.js → presentations/transform-engine.js} +2 -2
- package/dist/regenerator/docs/regenerator.docblock.js +0 -1
- package/dist/{contracts-adapter-hydration.d.ts → server/contracts-adapter-hydration.d.ts} +2 -2
- package/dist/{contracts-adapter-hydration.js → server/contracts-adapter-hydration.js} +1 -1
- package/dist/{contracts-adapter-input.d.ts → server/contracts-adapter-input.d.ts} +2 -3
- package/dist/{contracts-adapter-input.js → server/contracts-adapter-input.js} +2 -2
- package/dist/server/graphql-pothos.d.ts +1 -1
- package/dist/server/graphql-pothos.js +2 -2
- package/dist/server/mcp/createMcpServer.d.ts +1 -1
- package/dist/server/mcp/mcpTypes.d.ts +3 -2
- package/dist/server/mcp/registerPresentations.js +3 -2
- package/dist/server/mcp/registerTools.d.ts +1 -1
- package/dist/server/rest-elysia.d.ts +1 -1
- package/dist/server/rest-express.d.ts +1 -1
- package/dist/server/rest-generic.d.ts +1 -1
- package/dist/server/rest-next-app.d.ts +1 -1
- package/dist/server/rest-next-mcp.d.ts +1 -1
- package/dist/server/rest-next-pages.d.ts +1 -1
- package/dist/telemetry/docs/telemetry.docblock.js +0 -1
- package/dist/tests/runner.d.ts +1 -1
- package/dist/workflow/spec.d.ts +2 -1
- package/dist/workflow/validation.d.ts +2 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +1 -1
- package/package.json +22 -17
- package/dist/integrations/contracts.d.ts +0 -436
- package/dist/openbanking/docs/openbanking.docblock.d.ts +0 -6
- package/dist/openbanking/docs/openbanking.docblock.js +0 -22
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { AnyOperationSpec, OperationSpec } from "../operation.js";
|
|
2
|
-
import
|
|
1
|
+
import { AnyOperationSpec, OperationSpec } from "../operations/operation.js";
|
|
2
|
+
import "../operations/index.js";
|
|
3
|
+
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
3
4
|
import "../index.js";
|
|
4
|
-
import * as
|
|
5
|
+
import * as _lssm_lib_schema89 from "@lssm/lib.schema";
|
|
5
6
|
import { SchemaModel } from "@lssm/lib.schema";
|
|
6
7
|
|
|
7
|
-
//#region src/knowledge/
|
|
8
|
+
//#region src/knowledge/operations.d.ts
|
|
8
9
|
declare const CreateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
9
10
|
tenantId: {
|
|
10
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
11
12
|
isOptional: false;
|
|
12
13
|
};
|
|
13
14
|
spaceKey: {
|
|
14
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
15
16
|
isOptional: false;
|
|
16
17
|
};
|
|
17
18
|
spaceVersion: {
|
|
18
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
19
20
|
isOptional: false;
|
|
20
21
|
};
|
|
21
22
|
label: {
|
|
22
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
23
24
|
isOptional: false;
|
|
24
25
|
};
|
|
25
26
|
sourceType: {
|
|
26
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
27
28
|
isOptional: false;
|
|
28
29
|
};
|
|
29
30
|
config: {
|
|
30
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema89.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
31
32
|
isOptional: false;
|
|
32
33
|
};
|
|
33
34
|
syncSchedule: {
|
|
34
35
|
type: SchemaModel<{
|
|
35
36
|
enabled: {
|
|
36
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
37
38
|
isOptional: false;
|
|
38
39
|
};
|
|
39
40
|
cron: {
|
|
40
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
41
42
|
isOptional: true;
|
|
42
43
|
};
|
|
43
44
|
intervalMs: {
|
|
44
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
45
46
|
isOptional: true;
|
|
46
47
|
};
|
|
47
48
|
}>;
|
|
@@ -49,92 +50,92 @@ declare const CreateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
|
49
50
|
};
|
|
50
51
|
}>, SchemaModel<{
|
|
51
52
|
id: {
|
|
52
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
53
54
|
isOptional: false;
|
|
54
55
|
};
|
|
55
56
|
tenantId: {
|
|
56
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
57
58
|
isOptional: false;
|
|
58
59
|
};
|
|
59
60
|
spaceKey: {
|
|
60
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
61
62
|
isOptional: false;
|
|
62
63
|
};
|
|
63
64
|
spaceVersion: {
|
|
64
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
65
66
|
isOptional: false;
|
|
66
67
|
};
|
|
67
68
|
label: {
|
|
68
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
69
70
|
isOptional: false;
|
|
70
71
|
};
|
|
71
72
|
sourceType: {
|
|
72
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
73
74
|
isOptional: false;
|
|
74
75
|
};
|
|
75
76
|
syncSchedule: {
|
|
76
77
|
type: SchemaModel<{
|
|
77
78
|
enabled: {
|
|
78
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
79
80
|
isOptional: false;
|
|
80
81
|
};
|
|
81
82
|
cron: {
|
|
82
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
83
84
|
isOptional: true;
|
|
84
85
|
};
|
|
85
86
|
intervalMs: {
|
|
86
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
87
88
|
isOptional: true;
|
|
88
89
|
};
|
|
89
90
|
}>;
|
|
90
91
|
isOptional: true;
|
|
91
92
|
};
|
|
92
93
|
lastSyncStatus: {
|
|
93
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
94
95
|
isOptional: true;
|
|
95
96
|
};
|
|
96
97
|
lastSyncAt: {
|
|
97
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
98
99
|
isOptional: true;
|
|
99
100
|
};
|
|
100
101
|
itemsProcessed: {
|
|
101
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
102
103
|
isOptional: true;
|
|
103
104
|
};
|
|
104
105
|
createdAt: {
|
|
105
|
-
type:
|
|
106
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
106
107
|
isOptional: true;
|
|
107
108
|
};
|
|
108
109
|
updatedAt: {
|
|
109
|
-
type:
|
|
110
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
110
111
|
isOptional: true;
|
|
111
112
|
};
|
|
112
113
|
}>, undefined>;
|
|
113
114
|
declare const UpdateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
114
115
|
sourceId: {
|
|
115
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
116
117
|
isOptional: false;
|
|
117
118
|
};
|
|
118
119
|
label: {
|
|
119
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
120
121
|
isOptional: true;
|
|
121
122
|
};
|
|
122
123
|
config: {
|
|
123
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema89.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
124
125
|
isOptional: true;
|
|
125
126
|
};
|
|
126
127
|
syncSchedule: {
|
|
127
128
|
type: SchemaModel<{
|
|
128
129
|
enabled: {
|
|
129
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
130
131
|
isOptional: false;
|
|
131
132
|
};
|
|
132
133
|
cron: {
|
|
133
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
134
135
|
isOptional: true;
|
|
135
136
|
};
|
|
136
137
|
intervalMs: {
|
|
137
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
138
139
|
isOptional: true;
|
|
139
140
|
};
|
|
140
141
|
}>;
|
|
@@ -142,149 +143,149 @@ declare const UpdateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
|
142
143
|
};
|
|
143
144
|
}>, SchemaModel<{
|
|
144
145
|
id: {
|
|
145
|
-
type:
|
|
146
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
146
147
|
isOptional: false;
|
|
147
148
|
};
|
|
148
149
|
tenantId: {
|
|
149
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
150
151
|
isOptional: false;
|
|
151
152
|
};
|
|
152
153
|
spaceKey: {
|
|
153
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
154
155
|
isOptional: false;
|
|
155
156
|
};
|
|
156
157
|
spaceVersion: {
|
|
157
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
158
159
|
isOptional: false;
|
|
159
160
|
};
|
|
160
161
|
label: {
|
|
161
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
162
163
|
isOptional: false;
|
|
163
164
|
};
|
|
164
165
|
sourceType: {
|
|
165
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
166
167
|
isOptional: false;
|
|
167
168
|
};
|
|
168
169
|
syncSchedule: {
|
|
169
170
|
type: SchemaModel<{
|
|
170
171
|
enabled: {
|
|
171
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
172
173
|
isOptional: false;
|
|
173
174
|
};
|
|
174
175
|
cron: {
|
|
175
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
176
177
|
isOptional: true;
|
|
177
178
|
};
|
|
178
179
|
intervalMs: {
|
|
179
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
180
181
|
isOptional: true;
|
|
181
182
|
};
|
|
182
183
|
}>;
|
|
183
184
|
isOptional: true;
|
|
184
185
|
};
|
|
185
186
|
lastSyncStatus: {
|
|
186
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
187
188
|
isOptional: true;
|
|
188
189
|
};
|
|
189
190
|
lastSyncAt: {
|
|
190
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
191
192
|
isOptional: true;
|
|
192
193
|
};
|
|
193
194
|
itemsProcessed: {
|
|
194
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
195
196
|
isOptional: true;
|
|
196
197
|
};
|
|
197
198
|
createdAt: {
|
|
198
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
199
200
|
isOptional: true;
|
|
200
201
|
};
|
|
201
202
|
updatedAt: {
|
|
202
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
203
204
|
isOptional: true;
|
|
204
205
|
};
|
|
205
206
|
}>, undefined>;
|
|
206
207
|
declare const DeleteKnowledgeSource: OperationSpec<SchemaModel<{
|
|
207
208
|
sourceId: {
|
|
208
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
209
210
|
isOptional: false;
|
|
210
211
|
};
|
|
211
212
|
}>, SchemaModel<{
|
|
212
213
|
success: {
|
|
213
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
214
215
|
isOptional: false;
|
|
215
216
|
};
|
|
216
217
|
}>, undefined>;
|
|
217
218
|
declare const ListKnowledgeSources: OperationSpec<SchemaModel<{
|
|
218
219
|
tenantId: {
|
|
219
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
220
221
|
isOptional: false;
|
|
221
222
|
};
|
|
222
223
|
spaceKey: {
|
|
223
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
224
225
|
isOptional: true;
|
|
225
226
|
};
|
|
226
227
|
}>, SchemaModel<{
|
|
227
228
|
sources: {
|
|
228
229
|
type: SchemaModel<{
|
|
229
230
|
id: {
|
|
230
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
231
232
|
isOptional: false;
|
|
232
233
|
};
|
|
233
234
|
tenantId: {
|
|
234
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
235
236
|
isOptional: false;
|
|
236
237
|
};
|
|
237
238
|
spaceKey: {
|
|
238
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
239
240
|
isOptional: false;
|
|
240
241
|
};
|
|
241
242
|
spaceVersion: {
|
|
242
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
243
244
|
isOptional: false;
|
|
244
245
|
};
|
|
245
246
|
label: {
|
|
246
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
247
248
|
isOptional: false;
|
|
248
249
|
};
|
|
249
250
|
sourceType: {
|
|
250
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
251
252
|
isOptional: false;
|
|
252
253
|
};
|
|
253
254
|
syncSchedule: {
|
|
254
255
|
type: SchemaModel<{
|
|
255
256
|
enabled: {
|
|
256
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
257
258
|
isOptional: false;
|
|
258
259
|
};
|
|
259
260
|
cron: {
|
|
260
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
261
262
|
isOptional: true;
|
|
262
263
|
};
|
|
263
264
|
intervalMs: {
|
|
264
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
265
266
|
isOptional: true;
|
|
266
267
|
};
|
|
267
268
|
}>;
|
|
268
269
|
isOptional: true;
|
|
269
270
|
};
|
|
270
271
|
lastSyncStatus: {
|
|
271
|
-
type:
|
|
272
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
272
273
|
isOptional: true;
|
|
273
274
|
};
|
|
274
275
|
lastSyncAt: {
|
|
275
|
-
type:
|
|
276
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
276
277
|
isOptional: true;
|
|
277
278
|
};
|
|
278
279
|
itemsProcessed: {
|
|
279
|
-
type:
|
|
280
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
280
281
|
isOptional: true;
|
|
281
282
|
};
|
|
282
283
|
createdAt: {
|
|
283
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
284
285
|
isOptional: true;
|
|
285
286
|
};
|
|
286
287
|
updatedAt: {
|
|
287
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
288
289
|
isOptional: true;
|
|
289
290
|
};
|
|
290
291
|
}>;
|
|
@@ -294,20 +295,20 @@ declare const ListKnowledgeSources: OperationSpec<SchemaModel<{
|
|
|
294
295
|
}>, undefined>;
|
|
295
296
|
declare const TriggerKnowledgeSourceSync: OperationSpec<SchemaModel<{
|
|
296
297
|
sourceId: {
|
|
297
|
-
type:
|
|
298
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
298
299
|
isOptional: false;
|
|
299
300
|
};
|
|
300
301
|
}>, SchemaModel<{
|
|
301
302
|
success: {
|
|
302
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
303
304
|
isOptional: false;
|
|
304
305
|
};
|
|
305
306
|
itemsProcessed: {
|
|
306
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
307
308
|
isOptional: true;
|
|
308
309
|
};
|
|
309
310
|
error: {
|
|
310
|
-
type:
|
|
311
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
311
312
|
isOptional: true;
|
|
312
313
|
};
|
|
313
314
|
}>, undefined>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { E5, x8 } from "../schema/dist/index.js";
|
|
2
|
-
import { defineCommand, defineQuery } from "../operation.js";
|
|
2
|
+
import { defineCommand, defineQuery } from "../operations/operation.js";
|
|
3
|
+
import "../operations/index.js";
|
|
3
4
|
|
|
4
|
-
//#region src/knowledge/
|
|
5
|
+
//#region src/knowledge/operations.ts
|
|
5
6
|
const KnowledgeSyncSchedule = new x8({
|
|
6
7
|
name: "KnowledgeSyncSchedule",
|
|
7
8
|
fields: {
|
package/dist/llm/exporters.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { PresentationDescriptorV2 } from "../presentations.v2.js";
|
|
2
|
-
import { PresentationRegistry } from "../presentations.js";
|
|
1
|
+
import { PresentationDescriptorV2 } from "../presentations/presentations.v2.js";
|
|
2
|
+
import { PresentationRegistry } from "../presentations/presentations.js";
|
|
3
|
+
import "../presentations/index.js";
|
|
3
4
|
import { DocBlock } from "../docs/types.js";
|
|
4
5
|
import { EventSpec } from "../events.js";
|
|
5
|
-
import { AnyOperationSpec } from "../operation.js";
|
|
6
|
-
import
|
|
6
|
+
import { AnyOperationSpec } from "../operations/operation.js";
|
|
7
|
+
import "../operations/index.js";
|
|
8
|
+
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
7
9
|
import { FeatureModuleSpec } from "../features.js";
|
|
8
10
|
import { FeatureExportOptions, FeatureExportResult, SpecExportOptions, SpecExportResult } from "./types.js";
|
|
9
11
|
import { AnySchemaModel } from "@lssm/lib.schema";
|
|
@@ -15,19 +17,19 @@ import { AnySchemaModel } from "@lssm/lib.schema";
|
|
|
15
17
|
* Includes: goal, context, description, acceptance scenarios.
|
|
16
18
|
* Best for: Understanding what the spec does, providing context to LLMs.
|
|
17
19
|
*/
|
|
18
|
-
declare function
|
|
20
|
+
declare function operationSpecToContextMarkdown(spec: AnyOperationSpec): string;
|
|
19
21
|
/**
|
|
20
22
|
* Export a single spec to full markdown with all details.
|
|
21
23
|
* Includes: all fields, I/O schemas, policy, events, examples.
|
|
22
24
|
* Best for: Complete documentation, implementation reference.
|
|
23
25
|
*/
|
|
24
|
-
declare function
|
|
26
|
+
declare function operationSpecToFullMarkdown(spec: AnyOperationSpec, options?: Partial<SpecExportOptions>): string;
|
|
25
27
|
/**
|
|
26
28
|
* Export a single spec as an actionable agent prompt.
|
|
27
29
|
* Includes: instructions, full spec, expected output format.
|
|
28
30
|
* Best for: Directly feeding to coding agents for implementation.
|
|
29
31
|
*/
|
|
30
|
-
declare function
|
|
32
|
+
declare function operationSpecToAgentPrompt(spec: AnyOperationSpec, options?: {
|
|
31
33
|
taskType?: 'implement' | 'test' | 'refactor' | 'review';
|
|
32
34
|
existingCode?: string;
|
|
33
35
|
}): string;
|
|
@@ -64,4 +66,4 @@ declare function exportFeature(feature: FeatureModuleSpec, deps?: {
|
|
|
64
66
|
presentations?: PresentationRegistry;
|
|
65
67
|
}, options?: Partial<FeatureExportOptions>): FeatureExportResult;
|
|
66
68
|
//#endregion
|
|
67
|
-
export { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown,
|
|
69
|
+
export { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown };
|
package/dist/llm/exporters.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsonSchemaForSpec } from "../jsonschema.js";
|
|
2
|
-
import { isEmitDeclRef } from "../operation.js";
|
|
2
|
+
import { isEmitDeclRef } from "../operations/operation.js";
|
|
3
|
+
import "../operations/index.js";
|
|
3
4
|
|
|
4
5
|
//#region src/llm/exporters.ts
|
|
5
6
|
const DEFAULT_SPEC_OPTIONS = {
|
|
@@ -21,7 +22,7 @@ const DEFAULT_FEATURE_OPTIONS = {
|
|
|
21
22
|
* Includes: goal, context, description, acceptance scenarios.
|
|
22
23
|
* Best for: Understanding what the spec does, providing context to LLMs.
|
|
23
24
|
*/
|
|
24
|
-
function
|
|
25
|
+
function operationSpecToContextMarkdown(spec) {
|
|
25
26
|
const m = spec.meta;
|
|
26
27
|
const lines = [];
|
|
27
28
|
lines.push(`# ${m.name} (v${m.version})`);
|
|
@@ -62,7 +63,7 @@ function specToContextMarkdown(spec) {
|
|
|
62
63
|
* Includes: all fields, I/O schemas, policy, events, examples.
|
|
63
64
|
* Best for: Complete documentation, implementation reference.
|
|
64
65
|
*/
|
|
65
|
-
function
|
|
66
|
+
function operationSpecToFullMarkdown(spec, options = {}) {
|
|
66
67
|
const opts = {
|
|
67
68
|
...DEFAULT_SPEC_OPTIONS,
|
|
68
69
|
...options
|
|
@@ -202,7 +203,7 @@ function specToFullMarkdown(spec, options = {}) {
|
|
|
202
203
|
* Includes: instructions, full spec, expected output format.
|
|
203
204
|
* Best for: Directly feeding to coding agents for implementation.
|
|
204
205
|
*/
|
|
205
|
-
function
|
|
206
|
+
function operationSpecToAgentPrompt(spec, options) {
|
|
206
207
|
const taskType = options?.taskType ?? "implement";
|
|
207
208
|
const m = spec.meta;
|
|
208
209
|
const lines = [];
|
|
@@ -224,7 +225,7 @@ function specToAgentPrompt(spec, options) {
|
|
|
224
225
|
lines.push("");
|
|
225
226
|
lines.push("## Specification");
|
|
226
227
|
lines.push("");
|
|
227
|
-
lines.push(
|
|
228
|
+
lines.push(operationSpecToFullMarkdown(spec));
|
|
228
229
|
lines.push("");
|
|
229
230
|
lines.push("## Instructions");
|
|
230
231
|
lines.push("");
|
|
@@ -337,7 +338,7 @@ function featureToMarkdown(feature, deps, options = {}) {
|
|
|
337
338
|
if (spec) {
|
|
338
339
|
lines.push(`---`);
|
|
339
340
|
lines.push("");
|
|
340
|
-
lines.push(
|
|
341
|
+
lines.push(operationSpecToFullMarkdown(spec, opts));
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
344
|
}
|
|
@@ -500,14 +501,14 @@ function exportSpec(spec, options = {}) {
|
|
|
500
501
|
let markdown;
|
|
501
502
|
switch (format) {
|
|
502
503
|
case "context":
|
|
503
|
-
markdown =
|
|
504
|
+
markdown = operationSpecToContextMarkdown(spec);
|
|
504
505
|
break;
|
|
505
506
|
case "prompt":
|
|
506
|
-
markdown =
|
|
507
|
+
markdown = operationSpecToAgentPrompt(spec);
|
|
507
508
|
break;
|
|
508
509
|
case "full":
|
|
509
510
|
default:
|
|
510
|
-
markdown =
|
|
511
|
+
markdown = operationSpecToFullMarkdown(spec, options);
|
|
511
512
|
break;
|
|
512
513
|
}
|
|
513
514
|
return {
|
|
@@ -538,4 +539,4 @@ function exportFeature(feature, deps, options = {}) {
|
|
|
538
539
|
}
|
|
539
540
|
|
|
540
541
|
//#endregion
|
|
541
|
-
export { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown,
|
|
542
|
+
export { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown };
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AgentPrompt, AgentType, BatchExportOptions, ExportableItem, FeatureExportOptions, FeatureExportResult, FeatureLookup, ImplementationPlan, LLMExportFormat, SpecExportOptions, SpecExportResult, SpecLookup, VerificationIssue, VerificationReport, VerificationTier } from "./types.js";
|
|
2
|
-
import { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown,
|
|
2
|
+
import { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown } from "./exporters.js";
|
|
3
3
|
import { AGENT_SYSTEM_PROMPTS, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt } from "./prompts.js";
|
|
4
|
-
export { AGENT_SYSTEM_PROMPTS, type AgentPrompt, type AgentType, type BatchExportOptions, type ExportableItem, type FeatureExportOptions, type FeatureExportResult, type FeatureLookup, type ImplementationPlan, type LLMExportFormat, type SpecExportOptions, type SpecExportResult, type SpecLookup, type VerificationIssue, type VerificationReport, type VerificationTier, docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt,
|
|
4
|
+
export { AGENT_SYSTEM_PROMPTS, type AgentPrompt, type AgentType, type BatchExportOptions, type ExportableItem, type FeatureExportOptions, type FeatureExportResult, type FeatureLookup, type ImplementationPlan, type LLMExportFormat, type SpecExportOptions, type SpecExportResult, type SpecLookup, type VerificationIssue, type VerificationReport, type VerificationTier, docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown };
|
package/dist/llm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown,
|
|
1
|
+
import { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown } from "./exporters.js";
|
|
2
2
|
import { AGENT_SYSTEM_PROMPTS, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt } from "./prompts.js";
|
|
3
3
|
|
|
4
|
-
export { AGENT_SYSTEM_PROMPTS, docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt,
|
|
4
|
+
export { AGENT_SYSTEM_PROMPTS, docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown };
|
package/dist/llm/prompts.d.ts
CHANGED
package/dist/llm/prompts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { operationSpecToAgentPrompt, operationSpecToFullMarkdown } from "./exporters.js";
|
|
2
2
|
|
|
3
3
|
//#region src/llm/prompts.ts
|
|
4
4
|
/**
|
|
@@ -55,7 +55,7 @@ Follow the spec exactly and handle all defined cases.`
|
|
|
55
55
|
*/
|
|
56
56
|
function generateImplementationPrompt(spec, agent, options) {
|
|
57
57
|
const systemPrompt = AGENT_SYSTEM_PROMPTS[agent];
|
|
58
|
-
const specMarkdown =
|
|
58
|
+
const specMarkdown = operationSpecToFullMarkdown(spec);
|
|
59
59
|
let taskPrompt;
|
|
60
60
|
if (agent === "claude-code") taskPrompt = `## Implementation Task
|
|
61
61
|
|
|
@@ -85,7 +85,7 @@ Requirements:
|
|
|
85
85
|
- Handle all error cases
|
|
86
86
|
- Emit specified events
|
|
87
87
|
- Follow acceptance scenarios`;
|
|
88
|
-
else taskPrompt =
|
|
88
|
+
else taskPrompt = operationSpecToAgentPrompt(spec, {
|
|
89
89
|
taskType: "implement",
|
|
90
90
|
existingCode: options?.existingCode
|
|
91
91
|
});
|
|
@@ -104,7 +104,7 @@ function generateTestPrompt(spec, agent, options) {
|
|
|
104
104
|
|
|
105
105
|
Generate comprehensive tests for this specification:
|
|
106
106
|
|
|
107
|
-
${
|
|
107
|
+
${operationSpecToFullMarkdown(spec)}
|
|
108
108
|
|
|
109
109
|
${options?.implementationCode ? `**Implementation:**\n\`\`\`typescript\n${options.implementationCode}\n\`\`\`\n` : ""}
|
|
110
110
|
|
|
@@ -135,7 +135,7 @@ function generateReviewPrompt(spec, agent, implementationCode) {
|
|
|
135
135
|
Review this implementation against its specification:
|
|
136
136
|
|
|
137
137
|
**Specification:**
|
|
138
|
-
${
|
|
138
|
+
${operationSpecToFullMarkdown(spec)}
|
|
139
139
|
|
|
140
140
|
**Implementation:**
|
|
141
141
|
\`\`\`typescript
|
|
@@ -175,7 +175,7 @@ function generateVerificationPrompt(spec, implementationCode) {
|
|
|
175
175
|
Verify that this implementation fulfills the specification's intent.
|
|
176
176
|
|
|
177
177
|
**Specification:**
|
|
178
|
-
${
|
|
178
|
+
${operationSpecToFullMarkdown(spec)}
|
|
179
179
|
|
|
180
180
|
**Implementation:**
|
|
181
181
|
\`\`\`typescript
|
|
@@ -303,7 +303,7 @@ function generateImplementationPlan(spec, options) {
|
|
|
303
303
|
description: m.description,
|
|
304
304
|
background: m.context
|
|
305
305
|
},
|
|
306
|
-
specMarkdown:
|
|
306
|
+
specMarkdown: operationSpecToFullMarkdown(spec),
|
|
307
307
|
fileStructure,
|
|
308
308
|
steps,
|
|
309
309
|
constraints,
|
|
@@ -391,7 +391,7 @@ function generateFixViolationsPrompt(spec, implementationCode, violations) {
|
|
|
391
391
|
The following implementation has violations against its specification:
|
|
392
392
|
|
|
393
393
|
**Specification:**
|
|
394
|
-
${
|
|
394
|
+
${operationSpecToFullMarkdown(spec)}
|
|
395
395
|
|
|
396
396
|
**Current Implementation:**
|
|
397
397
|
\`\`\`typescript
|
package/dist/llm/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { PresentationDescriptorV2 } from "../presentations.v2.js";
|
|
1
|
+
import { PresentationDescriptorV2 } from "../presentations/presentations.v2.js";
|
|
2
2
|
import { DocBlock } from "../docs/types.js";
|
|
3
3
|
import { EventSpec } from "../events.js";
|
|
4
|
-
import { AnyOperationSpec } from "../operation.js";
|
|
4
|
+
import { AnyOperationSpec } from "../operations/operation.js";
|
|
5
|
+
import "../operations/index.js";
|
|
5
6
|
import { FeatureModuleSpec } from "../features.js";
|
|
6
7
|
import { AnySchemaModel } from "@lssm/lib.schema";
|
|
7
8
|
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PresentationRegistry } from "./presentations.js";
|
|
2
|
-
import
|
|
1
|
+
import { PresentationRegistry } from "./presentations/presentations.js";
|
|
2
|
+
import "./presentations/index.js";
|
|
3
|
+
import { OperationSpecRegistry } from "./operations/registry.js";
|
|
3
4
|
import { FeatureRegistry } from "./features.js";
|
|
4
5
|
|
|
5
6
|
//#region src/markdown.d.ts
|
|
@@ -8,7 +9,7 @@ import { FeatureRegistry } from "./features.js";
|
|
|
8
9
|
* Render simple Markdown docs for each spec.
|
|
9
10
|
* Useful for dev portals and repo docs generation.
|
|
10
11
|
*/
|
|
11
|
-
declare function
|
|
12
|
+
declare function operationsToMarkdown(registry: OperationSpecRegistry, _extras?: {
|
|
12
13
|
presentations?: PresentationRegistry;
|
|
13
14
|
features?: FeatureRegistry;
|
|
14
15
|
}): string;
|
|
@@ -18,4 +19,4 @@ declare function docsToMarkdown(reg: OperationSpecRegistry, extras: {
|
|
|
18
19
|
features?: FeatureRegistry;
|
|
19
20
|
}): string;
|
|
20
21
|
//#endregion
|
|
21
|
-
export { docsToMarkdown,
|
|
22
|
+
export { docsToMarkdown, operationsToMarkdown };
|