@lssm/lib.contracts 0.0.0-canary-20251221185840 → 0.0.0-canary-20251222120211

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.
@@ -25,9 +25,9 @@ declare const OpenApiSourceConfigSchema: z$1.ZodObject<{
25
25
  deprecated: "deprecated";
26
26
  }>>;
27
27
  defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
28
- admin: "admin";
29
- anonymous: "anonymous";
30
28
  user: "user";
29
+ anonymous: "anonymous";
30
+ admin: "admin";
31
31
  }>>;
32
32
  defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
33
33
  }, z$1.core.$strip>;
@@ -69,9 +69,9 @@ declare const OpenApiConfigSchema: z$1.ZodObject<{
69
69
  deprecated: "deprecated";
70
70
  }>>;
71
71
  defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
72
- admin: "admin";
73
- anonymous: "anonymous";
74
72
  user: "user";
73
+ anonymous: "anonymous";
74
+ admin: "admin";
75
75
  }>>;
76
76
  defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
77
77
  }, z$1.core.$strip>>>;
@@ -168,6 +168,62 @@ declare const FolderConventionsSchema: z$1.ZodObject<{
168
168
  pattern: z$1.ZodOptional<z$1.ZodString>;
169
169
  }, z$1.core.$strip>>;
170
170
  }, z$1.core.$strip>;
171
+ /**
172
+ * PR comment configuration for CI/CD.
173
+ */
174
+ declare const PrCommentConfigSchema: z$1.ZodObject<{
175
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
176
+ template: z$1.ZodDefault<z$1.ZodEnum<{
177
+ minimal: "minimal";
178
+ detailed: "detailed";
179
+ }>>;
180
+ updateExisting: z$1.ZodDefault<z$1.ZodBoolean>;
181
+ }, z$1.core.$strip>;
182
+ /**
183
+ * GitHub check run configuration for CI/CD.
184
+ */
185
+ declare const CheckRunConfigSchema: z$1.ZodObject<{
186
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
187
+ name: z$1.ZodDefault<z$1.ZodString>;
188
+ failOnBreaking: z$1.ZodDefault<z$1.ZodBoolean>;
189
+ failOnChanges: z$1.ZodDefault<z$1.ZodBoolean>;
190
+ }, z$1.core.$strip>;
191
+ /**
192
+ * Impact detection configuration for CI/CD.
193
+ */
194
+ declare const ImpactConfigSchema: z$1.ZodObject<{
195
+ baseline: z$1.ZodDefault<z$1.ZodString>;
196
+ include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
197
+ exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
198
+ }, z$1.core.$strip>;
199
+ /**
200
+ * CI/CD configuration section.
201
+ */
202
+ declare const CiConfigSchema: z$1.ZodObject<{
203
+ checks: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
204
+ skipChecks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
205
+ failOnWarnings: z$1.ZodDefault<z$1.ZodBoolean>;
206
+ uploadSarif: z$1.ZodDefault<z$1.ZodBoolean>;
207
+ prComment: z$1.ZodOptional<z$1.ZodObject<{
208
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
209
+ template: z$1.ZodDefault<z$1.ZodEnum<{
210
+ minimal: "minimal";
211
+ detailed: "detailed";
212
+ }>>;
213
+ updateExisting: z$1.ZodDefault<z$1.ZodBoolean>;
214
+ }, z$1.core.$strip>>;
215
+ checkRun: z$1.ZodOptional<z$1.ZodObject<{
216
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
217
+ name: z$1.ZodDefault<z$1.ZodString>;
218
+ failOnBreaking: z$1.ZodDefault<z$1.ZodBoolean>;
219
+ failOnChanges: z$1.ZodDefault<z$1.ZodBoolean>;
220
+ }, z$1.core.$strip>>;
221
+ impact: z$1.ZodOptional<z$1.ZodObject<{
222
+ baseline: z$1.ZodDefault<z$1.ZodString>;
223
+ include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
224
+ exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
225
+ }, z$1.core.$strip>>;
226
+ }, z$1.core.$strip>;
171
227
  /**
172
228
  * Full ContractSpec configuration schema (.contractsrc.json).
173
229
  */
@@ -261,9 +317,9 @@ declare const ContractsrcSchema: z$1.ZodObject<{
261
317
  deprecated: "deprecated";
262
318
  }>>;
263
319
  defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
264
- admin: "admin";
265
- anonymous: "anonymous";
266
320
  user: "user";
321
+ anonymous: "anonymous";
322
+ admin: "admin";
267
323
  }>>;
268
324
  defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
269
325
  }, z$1.core.$strip>>>;
@@ -282,6 +338,31 @@ declare const ContractsrcSchema: z$1.ZodObject<{
282
338
  }, z$1.core.$strip>>>;
283
339
  }, z$1.core.$strip>>;
284
340
  }, z$1.core.$strip>>;
341
+ ci: z$1.ZodOptional<z$1.ZodObject<{
342
+ checks: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
343
+ skipChecks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
344
+ failOnWarnings: z$1.ZodDefault<z$1.ZodBoolean>;
345
+ uploadSarif: z$1.ZodDefault<z$1.ZodBoolean>;
346
+ prComment: z$1.ZodOptional<z$1.ZodObject<{
347
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
348
+ template: z$1.ZodDefault<z$1.ZodEnum<{
349
+ minimal: "minimal";
350
+ detailed: "detailed";
351
+ }>>;
352
+ updateExisting: z$1.ZodDefault<z$1.ZodBoolean>;
353
+ }, z$1.core.$strip>>;
354
+ checkRun: z$1.ZodOptional<z$1.ZodObject<{
355
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
356
+ name: z$1.ZodDefault<z$1.ZodString>;
357
+ failOnBreaking: z$1.ZodDefault<z$1.ZodBoolean>;
358
+ failOnChanges: z$1.ZodDefault<z$1.ZodBoolean>;
359
+ }, z$1.core.$strip>>;
360
+ impact: z$1.ZodOptional<z$1.ZodObject<{
361
+ baseline: z$1.ZodDefault<z$1.ZodString>;
362
+ include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
363
+ exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
364
+ }, z$1.core.$strip>>;
365
+ }, z$1.core.$strip>>;
285
366
  }, z$1.core.$strip>;
286
367
  type OpenApiSourceConfig = z$1.infer<typeof OpenApiSourceConfigSchema>;
287
368
  type OpenApiExportConfig = z$1.infer<typeof OpenApiExportConfigSchema>;
@@ -290,9 +371,13 @@ type FolderConventions = z$1.infer<typeof FolderConventionsSchema>;
290
371
  type ContractsrcConfig = z$1.infer<typeof ContractsrcSchema>;
291
372
  type GroupingStrategy = z$1.infer<typeof GroupingStrategySchema>;
292
373
  type GroupingRule = z$1.infer<typeof GroupingRuleSchema>;
374
+ type PrCommentConfig = z$1.infer<typeof PrCommentConfigSchema>;
375
+ type CheckRunConfig = z$1.infer<typeof CheckRunConfigSchema>;
376
+ type ImpactConfig = z$1.infer<typeof ImpactConfigSchema>;
377
+ type CiConfig = z$1.infer<typeof CiConfigSchema>;
293
378
  /**
294
379
  * Default configuration values.
295
380
  */
296
381
  declare const DEFAULT_CONTRACTSRC: ContractsrcConfig;
297
382
  //#endregion
298
- export { ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, GroupingRule, GroupingRuleSchema, GroupingStrategy, GroupingStrategySchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema };
383
+ export { CheckRunConfig, CheckRunConfigSchema, CiConfig, CiConfigSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, GroupingRule, GroupingRuleSchema, GroupingStrategy, GroupingStrategySchema, ImpactConfig, ImpactConfigSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, PrCommentConfig, PrCommentConfigSchema };
@@ -89,6 +89,47 @@ const FolderConventionsSchema = z$1.object({
89
89
  eventsGrouping: GroupingRuleSchema.optional()
90
90
  });
91
91
  /**
92
+ * PR comment configuration for CI/CD.
93
+ */
94
+ const PrCommentConfigSchema = z$1.object({
95
+ enabled: z$1.boolean().default(true),
96
+ template: z$1.enum(["minimal", "detailed"]).default("detailed"),
97
+ updateExisting: z$1.boolean().default(true)
98
+ });
99
+ /**
100
+ * GitHub check run configuration for CI/CD.
101
+ */
102
+ const CheckRunConfigSchema = z$1.object({
103
+ enabled: z$1.boolean().default(true),
104
+ name: z$1.string().default("ContractSpec Impact"),
105
+ failOnBreaking: z$1.boolean().default(true),
106
+ failOnChanges: z$1.boolean().default(false)
107
+ });
108
+ /**
109
+ * Impact detection configuration for CI/CD.
110
+ */
111
+ const ImpactConfigSchema = z$1.object({
112
+ baseline: z$1.string().default("default-branch"),
113
+ include: z$1.array(z$1.string()).optional(),
114
+ exclude: z$1.array(z$1.string()).optional()
115
+ });
116
+ /**
117
+ * CI/CD configuration section.
118
+ */
119
+ const CiConfigSchema = z$1.object({
120
+ checks: z$1.array(z$1.string()).default([
121
+ "structure",
122
+ "integrity",
123
+ "deps"
124
+ ]),
125
+ skipChecks: z$1.array(z$1.string()).optional(),
126
+ failOnWarnings: z$1.boolean().default(false),
127
+ uploadSarif: z$1.boolean().default(true),
128
+ prComment: PrCommentConfigSchema.optional(),
129
+ checkRun: CheckRunConfigSchema.optional(),
130
+ impact: ImpactConfigSchema.optional()
131
+ });
132
+ /**
92
133
  * Full ContractSpec configuration schema (.contractsrc.json).
93
134
  */
94
135
  const ContractsrcSchema = z$1.object({
@@ -114,7 +155,8 @@ const ContractsrcSchema = z$1.object({
114
155
  packages: z$1.array(z$1.string()).optional(),
115
156
  excludePackages: z$1.array(z$1.string()).optional(),
116
157
  recursive: z$1.boolean().optional(),
117
- openapi: OpenApiConfigSchema.optional()
158
+ openapi: OpenApiConfigSchema.optional(),
159
+ ci: CiConfigSchema.optional()
118
160
  });
119
161
  /**
120
162
  * Default configuration values.
@@ -136,4 +178,4 @@ const DEFAULT_CONTRACTSRC = {
136
178
  };
137
179
 
138
180
  //#endregion
139
- export { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, GroupingRuleSchema, GroupingStrategySchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema };
181
+ export { CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, GroupingRuleSchema, GroupingStrategySchema, ImpactConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.contracts",
3
- "version": "0.0.0-canary-20251221185840",
3
+ "version": "0.0.0-canary-20251222120211",
4
4
  "scripts": {
5
5
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
6
6
  "publish:pkg:canary": "bun publish:pkg --tag canary",
@@ -16,8 +16,8 @@
16
16
  "test": "bun run"
17
17
  },
18
18
  "devDependencies": {
19
- "@lssm/tool.tsdown": "0.0.0-canary-20251221185840",
20
- "@lssm/tool.typescript": "0.0.0-canary-20251221185840",
19
+ "@lssm/tool.tsdown": "0.0.0-canary-20251222120211",
20
+ "@lssm/tool.typescript": "0.0.0-canary-20251222120211",
21
21
  "@types/express": "^5.0.3",
22
22
  "@types/turndown": "^5.0.6",
23
23
  "tsdown": "^0.18.1",
@@ -35,8 +35,8 @@
35
35
  "@elevenlabs/elevenlabs-js": "^2.27.0",
36
36
  "@google-cloud/secret-manager": "^6.1.1",
37
37
  "@google-cloud/storage": "^7.18.0",
38
- "@lssm/lib.logger": "0.0.0-canary-20251221185840",
39
- "@lssm/lib.schema": "0.0.0-canary-20251221185840",
38
+ "@lssm/lib.logger": "0.0.0-canary-20251222120211",
39
+ "@lssm/lib.schema": "0.0.0-canary-20251222120211",
40
40
  "@mistralai/mistralai": "^1.11.0",
41
41
  "@modelcontextprotocol/sdk": "^1.24.3",
42
42
  "@qdrant/js-client-rest": "^1.16.2",
@@ -200,6 +200,7 @@
200
200
  "./integrations/providers/voice": "./dist/integrations/providers/voice.js",
201
201
  "./integrations/runtime": "./dist/integrations/runtime.js",
202
202
  "./integrations/secrets": "./dist/integrations/secrets/index.js",
203
+ "./integrations/secrets-types": "./dist/integrations/secrets-types.js",
203
204
  "./integrations/secrets/aws-secret-manager": "./dist/integrations/secrets/aws-secret-manager.js",
204
205
  "./integrations/secrets/env-secret-provider": "./dist/integrations/secrets/env-secret-provider.js",
205
206
  "./integrations/secrets/gcp-secret-manager": "./dist/integrations/secrets/gcp-secret-manager.js",