@pactosigna/trace 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +151 -135
- package/dist/index.js +10 -2
- package/package.json +13 -13
package/dist/cli.js
CHANGED
|
@@ -32,6 +32,7 @@ import { z as z28 } from "zod";
|
|
|
32
32
|
import { z as z29 } from "zod";
|
|
33
33
|
import { z as z30 } from "zod";
|
|
34
34
|
import { z as z31 } from "zod";
|
|
35
|
+
import { z as z32 } from "zod";
|
|
35
36
|
var REQUIRED_SECTIONS = {
|
|
36
37
|
user_need: ["User Story", "Validation Criteria"],
|
|
37
38
|
architecture: ["Purpose", "Architecture Overview", "Interfaces"],
|
|
@@ -2391,7 +2392,12 @@ var AuditActionSchema = z31.enum([
|
|
|
2391
2392
|
"compiled_record_export.requested",
|
|
2392
2393
|
"compiled_record_export.completed",
|
|
2393
2394
|
"compiled_record_export.failed",
|
|
2394
|
-
"compiled_record_export.downloaded"
|
|
2395
|
+
"compiled_record_export.downloaded",
|
|
2396
|
+
// Single Document Export
|
|
2397
|
+
"single_doc_export.requested",
|
|
2398
|
+
"single_doc_export.completed",
|
|
2399
|
+
"single_doc_export.failed",
|
|
2400
|
+
"single_doc_export.downloaded"
|
|
2395
2401
|
]);
|
|
2396
2402
|
var ResourceTypeSchema = z31.enum([
|
|
2397
2403
|
"organization",
|
|
@@ -2424,8 +2430,10 @@ var ResourceTypeSchema = z31.enum([
|
|
|
2424
2430
|
"audit_log",
|
|
2425
2431
|
"risk_matrix",
|
|
2426
2432
|
"component",
|
|
2427
|
-
"compiled_record_export"
|
|
2433
|
+
"compiled_record_export",
|
|
2434
|
+
"single_doc_export"
|
|
2428
2435
|
]);
|
|
2436
|
+
var ExportSignatureModeSchema = z32.enum(["live", "frozen"]);
|
|
2429
2437
|
|
|
2430
2438
|
// src/loaders/filesystem-document-loader.ts
|
|
2431
2439
|
import { readdirSync, readFileSync, statSync } from "fs";
|
|
@@ -4005,8 +4013,8 @@ import { relative as relative3, resolve } from "path";
|
|
|
4005
4013
|
|
|
4006
4014
|
// ../schemas/dist/index.js
|
|
4007
4015
|
import { z as z210 } from "zod";
|
|
4008
|
-
import { z as z32 } from "zod";
|
|
4009
4016
|
import { z as z33 } from "zod";
|
|
4017
|
+
import { z as z34 } from "zod";
|
|
4010
4018
|
import { z as z42 } from "zod";
|
|
4011
4019
|
import { z as z52 } from "zod";
|
|
4012
4020
|
import { z as z72 } from "zod";
|
|
@@ -4035,6 +4043,7 @@ import { z as z282 } from "zod";
|
|
|
4035
4043
|
import { z as z292 } from "zod";
|
|
4036
4044
|
import { z as z302 } from "zod";
|
|
4037
4045
|
import { z as z312 } from "zod";
|
|
4046
|
+
import { z as z322 } from "zod";
|
|
4038
4047
|
import matter2 from "gray-matter";
|
|
4039
4048
|
import path from "path";
|
|
4040
4049
|
import fs from "fs";
|
|
@@ -4067,7 +4076,7 @@ var REQUIRED_SECTIONS2 = {
|
|
|
4067
4076
|
"Training Requirements"
|
|
4068
4077
|
]
|
|
4069
4078
|
};
|
|
4070
|
-
var RiskDocumentStatusSchema2 =
|
|
4079
|
+
var RiskDocumentStatusSchema2 = z33.enum([
|
|
4071
4080
|
"draft",
|
|
4072
4081
|
"in_review",
|
|
4073
4082
|
"approved",
|
|
@@ -4075,13 +4084,13 @@ var RiskDocumentStatusSchema2 = z32.enum([
|
|
|
4075
4084
|
"archived",
|
|
4076
4085
|
"example"
|
|
4077
4086
|
]);
|
|
4078
|
-
var IsoCategorySchema2 =
|
|
4087
|
+
var IsoCategorySchema2 = z33.enum([
|
|
4079
4088
|
"safe_design",
|
|
4080
4089
|
"protective_measure",
|
|
4081
4090
|
"safety_information"
|
|
4082
4091
|
]);
|
|
4083
|
-
var ReducesTargetSchema2 =
|
|
4084
|
-
var RiskGapCodeSchema2 =
|
|
4092
|
+
var ReducesTargetSchema2 = z33.enum(["p1_sequence", "p2_harm", "severity"]);
|
|
4093
|
+
var RiskGapCodeSchema2 = z33.enum([
|
|
4085
4094
|
"hazard_no_situation",
|
|
4086
4095
|
"situation_no_harm",
|
|
4087
4096
|
"hazard_not_analyzed",
|
|
@@ -4114,40 +4123,40 @@ var RiskGapCodeSchema2 = z32.enum([
|
|
|
4114
4123
|
"risk_control_no_verification",
|
|
4115
4124
|
"architecture_no_asset_types"
|
|
4116
4125
|
]);
|
|
4117
|
-
var RiskGapSeveritySchema2 =
|
|
4118
|
-
var MitigationSchema2 =
|
|
4119
|
-
control:
|
|
4126
|
+
var RiskGapSeveritySchema2 = z33.enum(["error", "warning"]);
|
|
4127
|
+
var MitigationSchema2 = z33.object({
|
|
4128
|
+
control: z33.string().min(1),
|
|
4120
4129
|
iso_category: IsoCategorySchema2,
|
|
4121
4130
|
reduces: ReducesTargetSchema2
|
|
4122
4131
|
});
|
|
4123
|
-
var HarmAssessmentSchema2 =
|
|
4124
|
-
harm:
|
|
4125
|
-
inherent_probability:
|
|
4126
|
-
inherent_exploitability:
|
|
4127
|
-
residual_probability:
|
|
4128
|
-
residual_exploitability:
|
|
4129
|
-
harm_severity_override:
|
|
4130
|
-
risk_acceptable:
|
|
4131
|
-
benefit_outweighs_risk:
|
|
4132
|
-
});
|
|
4133
|
-
var HazardousSituationAssessmentSchema2 =
|
|
4134
|
-
hazardous_situation:
|
|
4135
|
-
mitigations:
|
|
4136
|
-
harms:
|
|
4137
|
-
});
|
|
4138
|
-
var RiskEntryFrontmatterSchema2 =
|
|
4139
|
-
type:
|
|
4140
|
-
id:
|
|
4141
|
-
title:
|
|
4132
|
+
var HarmAssessmentSchema2 = z33.object({
|
|
4133
|
+
harm: z33.string().min(1),
|
|
4134
|
+
inherent_probability: z33.number().int().min(1).max(5).optional(),
|
|
4135
|
+
inherent_exploitability: z33.number().int().min(1).max(5).optional(),
|
|
4136
|
+
residual_probability: z33.number().int().min(1).max(5).optional(),
|
|
4137
|
+
residual_exploitability: z33.number().int().min(1).max(5).optional(),
|
|
4138
|
+
harm_severity_override: z33.number().int().min(1).max(5).optional(),
|
|
4139
|
+
risk_acceptable: z33.boolean(),
|
|
4140
|
+
benefit_outweighs_risk: z33.boolean().optional()
|
|
4141
|
+
});
|
|
4142
|
+
var HazardousSituationAssessmentSchema2 = z33.object({
|
|
4143
|
+
hazardous_situation: z33.string().min(1),
|
|
4144
|
+
mitigations: z33.array(MitigationSchema2).optional(),
|
|
4145
|
+
harms: z33.array(HarmAssessmentSchema2).min(1)
|
|
4146
|
+
});
|
|
4147
|
+
var RiskEntryFrontmatterSchema2 = z33.object({
|
|
4148
|
+
type: z33.enum(["software_risk", "usability_risk", "security_risk"]),
|
|
4149
|
+
id: z33.string().min(1),
|
|
4150
|
+
title: z33.string().min(1),
|
|
4142
4151
|
status: RiskDocumentStatusSchema2,
|
|
4143
|
-
author:
|
|
4144
|
-
reviewers:
|
|
4145
|
-
approvers:
|
|
4146
|
-
analyzes:
|
|
4147
|
-
mitigations:
|
|
4148
|
-
hazardous_situation_assessments:
|
|
4149
|
-
cvss_score:
|
|
4150
|
-
cvss_vector:
|
|
4152
|
+
author: z33.string().min(1),
|
|
4153
|
+
reviewers: z33.array(z33.string()).optional(),
|
|
4154
|
+
approvers: z33.array(z33.string()).optional(),
|
|
4155
|
+
analyzes: z33.string().min(1),
|
|
4156
|
+
mitigations: z33.array(MitigationSchema2).optional(),
|
|
4157
|
+
hazardous_situation_assessments: z33.array(HazardousSituationAssessmentSchema2).min(1),
|
|
4158
|
+
cvss_score: z33.number().min(0).max(10).optional(),
|
|
4159
|
+
cvss_vector: z33.string().regex(
|
|
4151
4160
|
/^CVSS:3\.[01]\/AV:[NALP]\/AC:[LH]\/PR:[NLH]\/UI:[NR]\/S:[UC]\/C:[NLH]\/I:[NLH]\/A:[NLH]$/
|
|
4152
4161
|
).optional()
|
|
4153
4162
|
}).refine(
|
|
@@ -4170,77 +4179,77 @@ var RiskEntryFrontmatterSchema2 = z32.object({
|
|
|
4170
4179
|
message: "benefit_outweighs_risk required when risk_acceptable is false"
|
|
4171
4180
|
}
|
|
4172
4181
|
);
|
|
4173
|
-
var HazardSoftwareFrontmatterSchema2 =
|
|
4174
|
-
type:
|
|
4175
|
-
id:
|
|
4176
|
-
title:
|
|
4182
|
+
var HazardSoftwareFrontmatterSchema2 = z33.object({
|
|
4183
|
+
type: z33.literal("haz_soe_software"),
|
|
4184
|
+
id: z33.string().min(1),
|
|
4185
|
+
title: z33.string().min(1),
|
|
4177
4186
|
status: RiskDocumentStatusSchema2,
|
|
4178
|
-
author:
|
|
4179
|
-
reviewers:
|
|
4180
|
-
approvers:
|
|
4181
|
-
preliminary:
|
|
4182
|
-
leads_to:
|
|
4183
|
-
hazard_category:
|
|
4184
|
-
detection_score:
|
|
4185
|
-
detection_method:
|
|
4187
|
+
author: z33.string().min(1),
|
|
4188
|
+
reviewers: z33.array(z33.string()).optional(),
|
|
4189
|
+
approvers: z33.array(z33.string()).optional(),
|
|
4190
|
+
preliminary: z33.boolean().default(false),
|
|
4191
|
+
leads_to: z33.array(z33.string()).optional(),
|
|
4192
|
+
hazard_category: z33.string().optional(),
|
|
4193
|
+
detection_score: z33.number().int().min(1).max(5).optional(),
|
|
4194
|
+
detection_method: z33.string().optional(),
|
|
4186
4195
|
/** Reference to the HLD/SDD software item this hazard applies to (IEC 62304 §7.1) */
|
|
4187
|
-
software_item:
|
|
4196
|
+
software_item: z33.string().min(1).optional()
|
|
4188
4197
|
});
|
|
4189
|
-
var HazardSecurityFrontmatterSchema2 =
|
|
4190
|
-
type:
|
|
4191
|
-
id:
|
|
4192
|
-
title:
|
|
4198
|
+
var HazardSecurityFrontmatterSchema2 = z33.object({
|
|
4199
|
+
type: z33.literal("haz_soe_security"),
|
|
4200
|
+
id: z33.string().min(1),
|
|
4201
|
+
title: z33.string().min(1),
|
|
4193
4202
|
status: RiskDocumentStatusSchema2,
|
|
4194
|
-
author:
|
|
4195
|
-
reviewers:
|
|
4196
|
-
approvers:
|
|
4197
|
-
preliminary:
|
|
4198
|
-
leads_to:
|
|
4199
|
-
hazard_category:
|
|
4203
|
+
author: z33.string().min(1),
|
|
4204
|
+
reviewers: z33.array(z33.string()).optional(),
|
|
4205
|
+
approvers: z33.array(z33.string()).optional(),
|
|
4206
|
+
preliminary: z33.boolean().default(false),
|
|
4207
|
+
leads_to: z33.array(z33.string()).optional(),
|
|
4208
|
+
hazard_category: z33.string().optional(),
|
|
4200
4209
|
/** Reference to the HLD/SDD software item this security hazard applies to (IEC 62304 §7.1, IEC 81001-5-1) */
|
|
4201
|
-
software_item:
|
|
4210
|
+
software_item: z33.string().min(1).optional()
|
|
4202
4211
|
});
|
|
4203
|
-
var HazardFrontmatterSchema2 =
|
|
4212
|
+
var HazardFrontmatterSchema2 = z33.discriminatedUnion("type", [
|
|
4204
4213
|
HazardSoftwareFrontmatterSchema2,
|
|
4205
4214
|
HazardSecurityFrontmatterSchema2
|
|
4206
4215
|
]);
|
|
4207
|
-
var HazardCategoryFrontmatterSchema2 =
|
|
4208
|
-
type:
|
|
4209
|
-
id:
|
|
4210
|
-
title:
|
|
4216
|
+
var HazardCategoryFrontmatterSchema2 = z33.object({
|
|
4217
|
+
type: z33.literal("hazard_category"),
|
|
4218
|
+
id: z33.string().min(1),
|
|
4219
|
+
title: z33.string().min(1),
|
|
4211
4220
|
status: RiskDocumentStatusSchema2,
|
|
4212
|
-
source:
|
|
4221
|
+
source: z33.string().optional()
|
|
4213
4222
|
});
|
|
4214
|
-
var HazardousSituationFrontmatterSchema2 =
|
|
4215
|
-
type:
|
|
4216
|
-
id:
|
|
4217
|
-
title:
|
|
4223
|
+
var HazardousSituationFrontmatterSchema2 = z33.object({
|
|
4224
|
+
type: z33.literal("hazardous_situation"),
|
|
4225
|
+
id: z33.string().min(1),
|
|
4226
|
+
title: z33.string().min(1),
|
|
4218
4227
|
status: RiskDocumentStatusSchema2,
|
|
4219
|
-
results_in:
|
|
4228
|
+
results_in: z33.array(z33.string()).optional()
|
|
4220
4229
|
});
|
|
4221
|
-
var HarmFrontmatterSchema2 =
|
|
4222
|
-
type:
|
|
4223
|
-
id:
|
|
4224
|
-
title:
|
|
4230
|
+
var HarmFrontmatterSchema2 = z33.object({
|
|
4231
|
+
type: z33.literal("harm"),
|
|
4232
|
+
id: z33.string().min(1),
|
|
4233
|
+
title: z33.string().min(1),
|
|
4225
4234
|
status: RiskDocumentStatusSchema2,
|
|
4226
|
-
severity:
|
|
4227
|
-
category:
|
|
4228
|
-
});
|
|
4229
|
-
var RiskMatrixConfigSchema2 =
|
|
4230
|
-
version:
|
|
4231
|
-
labels:
|
|
4232
|
-
severity:
|
|
4233
|
-
probability:
|
|
4234
|
-
exploitability:
|
|
4235
|
+
severity: z33.number().int().min(1).max(5),
|
|
4236
|
+
category: z33.string().optional()
|
|
4237
|
+
});
|
|
4238
|
+
var RiskMatrixConfigSchema2 = z33.object({
|
|
4239
|
+
version: z33.number(),
|
|
4240
|
+
labels: z33.object({
|
|
4241
|
+
severity: z33.array(z33.string()).length(5),
|
|
4242
|
+
probability: z33.array(z33.string()).length(5),
|
|
4243
|
+
exploitability: z33.array(z33.string()).length(5).optional()
|
|
4235
4244
|
}),
|
|
4236
|
-
acceptability:
|
|
4237
|
-
unacceptable:
|
|
4238
|
-
review_required:
|
|
4245
|
+
acceptability: z33.object({
|
|
4246
|
+
unacceptable: z33.array(z33.tuple([z33.number(), z33.number()])),
|
|
4247
|
+
review_required: z33.array(z33.tuple([z33.number(), z33.number()])).optional()
|
|
4239
4248
|
}),
|
|
4240
|
-
overrides:
|
|
4241
|
-
|
|
4242
|
-
unacceptable:
|
|
4243
|
-
review_required:
|
|
4249
|
+
overrides: z33.record(
|
|
4250
|
+
z33.object({
|
|
4251
|
+
unacceptable: z33.array(z33.tuple([z33.number(), z33.number()])),
|
|
4252
|
+
review_required: z33.array(z33.tuple([z33.number(), z33.number()])).optional()
|
|
4244
4253
|
})
|
|
4245
4254
|
).optional()
|
|
4246
4255
|
});
|
|
@@ -4271,50 +4280,50 @@ var AnomalyFrontmatterSchema2 = z210.object({
|
|
|
4271
4280
|
reviewers: z210.array(z210.string()).optional(),
|
|
4272
4281
|
approvers: z210.array(z210.string()).optional()
|
|
4273
4282
|
});
|
|
4274
|
-
var AuditFindingClassificationSchema2 =
|
|
4275
|
-
var AuditStatusSchema2 =
|
|
4276
|
-
var PlannedAuditEntrySchema2 =
|
|
4277
|
-
audit_id:
|
|
4278
|
-
process_area:
|
|
4279
|
-
clause:
|
|
4280
|
-
planned_date:
|
|
4281
|
-
auditor:
|
|
4283
|
+
var AuditFindingClassificationSchema2 = z34.enum(["observation", "minor_nc", "major_nc"]);
|
|
4284
|
+
var AuditStatusSchema2 = z34.enum(["planned", "in_progress", "completed", "cancelled"]);
|
|
4285
|
+
var PlannedAuditEntrySchema2 = z34.object({
|
|
4286
|
+
audit_id: z34.string().min(1),
|
|
4287
|
+
process_area: z34.string().min(1),
|
|
4288
|
+
clause: z34.string().optional(),
|
|
4289
|
+
planned_date: z34.string().min(1),
|
|
4290
|
+
auditor: z34.string().min(1),
|
|
4282
4291
|
status: AuditStatusSchema2
|
|
4283
4292
|
});
|
|
4284
|
-
var AuditScheduleFrontmatterSchema2 =
|
|
4285
|
-
id:
|
|
4286
|
-
title:
|
|
4287
|
-
type:
|
|
4288
|
-
status:
|
|
4289
|
-
author:
|
|
4290
|
-
reviewers:
|
|
4291
|
-
approvers:
|
|
4292
|
-
cycle_year:
|
|
4293
|
-
audits:
|
|
4294
|
-
});
|
|
4295
|
-
var AuditFindingSchema2 =
|
|
4296
|
-
finding_id:
|
|
4293
|
+
var AuditScheduleFrontmatterSchema2 = z34.object({
|
|
4294
|
+
id: z34.string().min(1),
|
|
4295
|
+
title: z34.string().min(1),
|
|
4296
|
+
type: z34.literal("audit_schedule").optional(),
|
|
4297
|
+
status: z34.string().optional(),
|
|
4298
|
+
author: z34.string().optional(),
|
|
4299
|
+
reviewers: z34.array(z34.string()).optional(),
|
|
4300
|
+
approvers: z34.array(z34.string()).optional(),
|
|
4301
|
+
cycle_year: z34.number().int().min(2e3).max(2100),
|
|
4302
|
+
audits: z34.array(PlannedAuditEntrySchema2).min(1)
|
|
4303
|
+
});
|
|
4304
|
+
var AuditFindingSchema2 = z34.object({
|
|
4305
|
+
finding_id: z34.string().min(1),
|
|
4297
4306
|
classification: AuditFindingClassificationSchema2,
|
|
4298
|
-
description:
|
|
4299
|
-
capa_id:
|
|
4300
|
-
});
|
|
4301
|
-
var AuditReportFrontmatterSchema2 =
|
|
4302
|
-
id:
|
|
4303
|
-
title:
|
|
4304
|
-
type:
|
|
4305
|
-
status:
|
|
4306
|
-
author:
|
|
4307
|
-
reviewers:
|
|
4308
|
-
approvers:
|
|
4309
|
-
audit_date:
|
|
4310
|
-
audit_id:
|
|
4311
|
-
process_area:
|
|
4312
|
-
clause:
|
|
4313
|
-
auditor:
|
|
4314
|
-
findings:
|
|
4315
|
-
findings_major:
|
|
4316
|
-
findings_minor:
|
|
4317
|
-
findings_observations:
|
|
4307
|
+
description: z34.string().min(1),
|
|
4308
|
+
capa_id: z34.string().optional()
|
|
4309
|
+
});
|
|
4310
|
+
var AuditReportFrontmatterSchema2 = z34.object({
|
|
4311
|
+
id: z34.string().min(1),
|
|
4312
|
+
title: z34.string().min(1),
|
|
4313
|
+
type: z34.literal("audit_report").optional(),
|
|
4314
|
+
status: z34.string().optional(),
|
|
4315
|
+
author: z34.string().optional(),
|
|
4316
|
+
reviewers: z34.array(z34.string()).optional(),
|
|
4317
|
+
approvers: z34.array(z34.string()).optional(),
|
|
4318
|
+
audit_date: z34.string().min(1),
|
|
4319
|
+
audit_id: z34.string().optional(),
|
|
4320
|
+
process_area: z34.string().min(1),
|
|
4321
|
+
clause: z34.string().optional(),
|
|
4322
|
+
auditor: z34.string().min(1),
|
|
4323
|
+
findings: z34.array(AuditFindingSchema2),
|
|
4324
|
+
findings_major: z34.number().int().min(0).optional(),
|
|
4325
|
+
findings_minor: z34.number().int().min(0).optional(),
|
|
4326
|
+
findings_observations: z34.number().int().min(0).optional()
|
|
4318
4327
|
});
|
|
4319
4328
|
var ClinicalEvaluationPlanFrontmatterSchema2 = z42.object({
|
|
4320
4329
|
type: z42.literal("clinical_evaluation_plan"),
|
|
@@ -5396,7 +5405,12 @@ var AuditActionSchema2 = z312.enum([
|
|
|
5396
5405
|
"compiled_record_export.requested",
|
|
5397
5406
|
"compiled_record_export.completed",
|
|
5398
5407
|
"compiled_record_export.failed",
|
|
5399
|
-
"compiled_record_export.downloaded"
|
|
5408
|
+
"compiled_record_export.downloaded",
|
|
5409
|
+
// Single Document Export
|
|
5410
|
+
"single_doc_export.requested",
|
|
5411
|
+
"single_doc_export.completed",
|
|
5412
|
+
"single_doc_export.failed",
|
|
5413
|
+
"single_doc_export.downloaded"
|
|
5400
5414
|
]);
|
|
5401
5415
|
var ResourceTypeSchema2 = z312.enum([
|
|
5402
5416
|
"organization",
|
|
@@ -5429,8 +5443,10 @@ var ResourceTypeSchema2 = z312.enum([
|
|
|
5429
5443
|
"audit_log",
|
|
5430
5444
|
"risk_matrix",
|
|
5431
5445
|
"component",
|
|
5432
|
-
"compiled_record_export"
|
|
5446
|
+
"compiled_record_export",
|
|
5447
|
+
"single_doc_export"
|
|
5433
5448
|
]);
|
|
5449
|
+
var ExportSignatureModeSchema2 = z322.enum(["live", "frozen"]);
|
|
5434
5450
|
var SCHEMA_MAP = {
|
|
5435
5451
|
// Risk entries
|
|
5436
5452
|
software_risk: RiskEntryFrontmatterSchema2,
|
package/dist/index.js
CHANGED
|
@@ -998,6 +998,7 @@ import { z as z28 } from "zod";
|
|
|
998
998
|
import { z as z29 } from "zod";
|
|
999
999
|
import { z as z30 } from "zod";
|
|
1000
1000
|
import { z as z31 } from "zod";
|
|
1001
|
+
import { z as z32 } from "zod";
|
|
1001
1002
|
var REQUIRED_SECTIONS = {
|
|
1002
1003
|
user_need: ["User Story", "Validation Criteria"],
|
|
1003
1004
|
architecture: ["Purpose", "Architecture Overview", "Interfaces"],
|
|
@@ -3308,7 +3309,12 @@ var AuditActionSchema = z31.enum([
|
|
|
3308
3309
|
"compiled_record_export.requested",
|
|
3309
3310
|
"compiled_record_export.completed",
|
|
3310
3311
|
"compiled_record_export.failed",
|
|
3311
|
-
"compiled_record_export.downloaded"
|
|
3312
|
+
"compiled_record_export.downloaded",
|
|
3313
|
+
// Single Document Export
|
|
3314
|
+
"single_doc_export.requested",
|
|
3315
|
+
"single_doc_export.completed",
|
|
3316
|
+
"single_doc_export.failed",
|
|
3317
|
+
"single_doc_export.downloaded"
|
|
3312
3318
|
]);
|
|
3313
3319
|
var ResourceTypeSchema = z31.enum([
|
|
3314
3320
|
"organization",
|
|
@@ -3341,8 +3347,10 @@ var ResourceTypeSchema = z31.enum([
|
|
|
3341
3347
|
"audit_log",
|
|
3342
3348
|
"risk_matrix",
|
|
3343
3349
|
"component",
|
|
3344
|
-
"compiled_record_export"
|
|
3350
|
+
"compiled_record_export",
|
|
3351
|
+
"single_doc_export"
|
|
3345
3352
|
]);
|
|
3353
|
+
var ExportSignatureModeSchema = z32.enum(["live", "frozen"]);
|
|
3346
3354
|
|
|
3347
3355
|
// src/impact/baseline-scan.ts
|
|
3348
3356
|
function scanBaselineGaps(rootDir, baseBranch, config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactosigna/trace",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "QMS traceability engine — gap detection, risk analysis, impact analysis (IEC 62304, ISO 14971)",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,13 +21,6 @@
|
|
|
21
21
|
"types": "./dist/index.d.ts"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "tsup && tsc -p tsconfig.build.json",
|
|
26
|
-
"test": "vitest run",
|
|
27
|
-
"test:coverage": "vitest run --coverage",
|
|
28
|
-
"typecheck": "tsc --noEmit",
|
|
29
|
-
"clean": "rm -rf dist"
|
|
30
|
-
},
|
|
31
24
|
"dependencies": {
|
|
32
25
|
"gray-matter": "^4.0.3",
|
|
33
26
|
"js-yaml": "^4.1.1",
|
|
@@ -35,14 +28,21 @@
|
|
|
35
28
|
"zod": "^3.24.1"
|
|
36
29
|
},
|
|
37
30
|
"devDependencies": {
|
|
38
|
-
"@pactosigna/domain": "workspace:*",
|
|
39
|
-
"@pactosigna/schemas": "workspace:*",
|
|
40
31
|
"@types/js-yaml": "^4.0.9",
|
|
41
32
|
"@types/minimatch": "^6.0.0",
|
|
42
33
|
"@vitest/coverage-v8": "^3.0.0",
|
|
43
34
|
"tsup": "^8.0.0",
|
|
44
35
|
"typescript": "^5.7.2",
|
|
45
|
-
"vitest": "^3.0.0"
|
|
36
|
+
"vitest": "^3.0.0",
|
|
37
|
+
"@pactosigna/domain": "0.1.0",
|
|
38
|
+
"@pactosigna/schemas": "0.1.0"
|
|
46
39
|
},
|
|
47
|
-
"license": "MIT"
|
|
48
|
-
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsup && tsc -p tsconfig.build.json",
|
|
43
|
+
"test": "vitest run",
|
|
44
|
+
"test:coverage": "vitest run --coverage",
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"clean": "rm -rf dist"
|
|
47
|
+
}
|
|
48
|
+
}
|