@dataparade/cli 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +56 -1
  2. package/dist/package.json +4 -3
  3. package/dist/src/cli.js +47 -4
  4. package/dist/src/diff/register-diff-command.d.ts +4 -0
  5. package/dist/src/diff/register-diff-command.js +79 -0
  6. package/dist/src/diff/run-diff.d.ts +80 -0
  7. package/dist/src/diff/run-diff.js +206 -0
  8. package/dist/src/diff/upload-diff.d.ts +26 -0
  9. package/dist/src/diff/upload-diff.js +69 -0
  10. package/dist/src/facts/apply-answers.js +1 -1
  11. package/dist/src/facts/build-facts.d.ts +3 -1
  12. package/dist/src/facts/build-facts.js +10 -1
  13. package/dist/src/facts/identity.d.ts +27 -0
  14. package/dist/src/facts/identity.js +203 -0
  15. package/dist/src/facts/io.d.ts +2 -0
  16. package/dist/src/facts/io.js +7 -0
  17. package/dist/src/facts/scan-stamps.d.ts +55 -0
  18. package/dist/src/facts/scan-stamps.js +165 -0
  19. package/dist/src/facts/schema.d.ts +243 -7
  20. package/dist/src/facts/schema.js +71 -1
  21. package/dist/src/kb/answer-fingerprint.d.ts +44 -0
  22. package/dist/src/kb/answer-fingerprint.js +173 -0
  23. package/dist/src/kb/brief.d.ts +8 -1
  24. package/dist/src/kb/brief.js +18 -2
  25. package/dist/src/kb/land.js +3 -0
  26. package/dist/src/kb/register-kb-commands.js +7 -1
  27. package/dist/src/output/git-context.d.ts +8 -0
  28. package/dist/src/output/git-context.js +18 -0
  29. package/dist/src/output/scan-output-excludes.js +5 -1
  30. package/dist/src/output/write-scan-knowledge.d.ts +2 -0
  31. package/dist/src/output/write-scan-knowledge.js +1 -0
  32. package/dist/src/platform-api/dataparade-app-base-url.d.ts +8 -4
  33. package/dist/src/platform-api/dataparade-app-base-url.js +10 -5
  34. package/dist/src/platform-api/upload-client.d.ts +1 -1
  35. package/dist/src/platform-api/upload-client.js +32 -1
  36. package/dist/src/platform-api/upload.types.d.ts +55 -0
  37. package/dist/src/sensitive-scan/process.d.ts +5 -0
  38. package/dist/src/sensitive-scan/process.js +48 -0
  39. package/dist/src/sensitive-scan/project.d.ts +12 -0
  40. package/dist/src/sensitive-scan/project.js +177 -0
  41. package/dist/src/sensitive-scan/report.d.ts +50 -0
  42. package/dist/src/sensitive-scan/report.js +32 -0
  43. package/dist/src/sensitive-scan/sessions.d.ts +2 -0
  44. package/dist/src/sensitive-scan/sessions.js +120 -0
  45. package/dist/src/ui/scan-progress-renderer.d.ts +1 -0
  46. package/dist/src/ui/scan-progress-renderer.js +8 -0
  47. package/dist/src/upload/build-preview-url.d.ts +2 -2
  48. package/dist/src/upload/build-preview-url.js +4 -4
  49. package/dist/src/upload/run-upload.js +6 -2
  50. package/dist/src/upload/types.d.ts +2 -0
  51. package/dist/tests/unit/diff/run-diff.spec.d.ts +1 -0
  52. package/dist/tests/unit/diff/run-diff.spec.js +189 -0
  53. package/dist/tests/unit/diff/upload-diff.spec.d.ts +1 -0
  54. package/dist/tests/unit/diff/upload-diff.spec.js +81 -0
  55. package/dist/tests/unit/facts/apply-answers.spec.js +1 -1
  56. package/dist/tests/unit/facts/build-facts.spec.js +67 -1
  57. package/dist/tests/unit/facts/identity.spec.d.ts +1 -0
  58. package/dist/tests/unit/facts/identity.spec.js +148 -0
  59. package/dist/tests/unit/facts/scan-stamps.spec.d.ts +1 -0
  60. package/dist/tests/unit/facts/scan-stamps.spec.js +95 -0
  61. package/dist/tests/unit/kb/answer-fingerprint.spec.d.ts +1 -0
  62. package/dist/tests/unit/kb/answer-fingerprint.spec.js +157 -0
  63. package/dist/tests/unit/kb/kb-interview-loop.spec.js +16 -0
  64. package/dist/tests/unit/output/git-context.spec.js +19 -0
  65. package/dist/tests/unit/platform-api/dataparade-app-base-url.spec.js +9 -0
  66. package/dist/tests/unit/platform-api/upload-client.spec.js +101 -1
  67. package/dist/tests/unit/sensitive-scan/project.spec.d.ts +1 -0
  68. package/dist/tests/unit/sensitive-scan/project.spec.js +98 -0
  69. package/dist/tests/unit/upload/build-preview-url.spec.js +4 -0
  70. package/dist/tests/unit/upload/collect-scan-sidecars.spec.js +1 -0
  71. package/dist/tests/unit/upload/run-upload.spec.js +32 -0
  72. package/dist/vendor/kb-compare/dist/src/canonical.d.ts +80 -0
  73. package/dist/vendor/kb-compare/dist/src/canonical.js +119 -0
  74. package/dist/vendor/kb-compare/dist/src/change-set.d.ts +144 -0
  75. package/dist/vendor/kb-compare/dist/src/change-set.js +80 -0
  76. package/dist/vendor/kb-compare/dist/src/comparable.d.ts +23 -0
  77. package/dist/vendor/kb-compare/dist/src/comparable.js +48 -0
  78. package/dist/vendor/kb-compare/dist/src/compare.d.ts +52 -0
  79. package/dist/vendor/kb-compare/dist/src/compare.js +370 -0
  80. package/dist/vendor/kb-compare/dist/src/fingerprint.d.ts +40 -0
  81. package/dist/vendor/kb-compare/dist/src/fingerprint.js +88 -0
  82. package/dist/vendor/kb-compare/dist/src/index.d.ts +15 -0
  83. package/dist/vendor/kb-compare/dist/src/index.js +34 -0
  84. package/dist/vendor/kb-compare/dist/src/input.d.ts +128 -0
  85. package/dist/vendor/kb-compare/dist/src/input.js +75 -0
  86. package/dist/vendor/kb-compare/dist/src/slot-rules.d.ts +69 -0
  87. package/dist/vendor/kb-compare/dist/src/slot-rules.js +203 -0
  88. package/dist/vendor/kb-compare/dist/src/summary.d.ts +3 -0
  89. package/dist/vendor/kb-compare/dist/src/summary.js +47 -0
  90. package/dist/vendor/kb-compare/package.json +6 -0
  91. package/dist/vendor/scanner/dist/src/classifier/application-injection.js +5 -0
  92. package/dist/vendor/scanner/dist/src/core/pipeline/stable-component-ids.d.ts +8 -0
  93. package/dist/vendor/scanner/dist/src/core/pipeline/stable-component-ids.js +11 -1
  94. package/dist/vendor/scanner/dist/src/index.d.ts +1 -1
  95. package/dist/vendor/scanner/dist/src/index.js +4 -2
  96. package/dist/vendor/scanner/package.json +3 -1
  97. package/dist/vendor/scanner/patterns/classifier/third-party.classifier.yaml +10 -0
  98. package/dist/vendor/scanner/patterns/component-taxonomy.yaml +1 -1
  99. package/dist/vendor/scanner/patterns/third-party.patterns.yaml +25 -0
  100. package/package.json +4 -3
@@ -0,0 +1,128 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * The parts of a scan's `facts.json` that a comparison reads. The CLI owns the full schema
4
+ * (`cli/src/facts/schema.ts`); this package declares only what it needs, so it does not depend
5
+ * on the CLI. Unknown fields are ignored.
6
+ */
7
+ export declare const identityInputSchema: z.ZodObject<{
8
+ kind: z.ZodEnum<{
9
+ component: "component";
10
+ dataFlow: "dataFlow";
11
+ dataItem: "dataItem";
12
+ group: "group";
13
+ }>;
14
+ key: z.ZodString;
15
+ parts: z.ZodRecord<z.ZodString, z.ZodString>;
16
+ duplicateIndex: z.ZodOptional<z.ZodNumber>;
17
+ }, z.core.$strip>;
18
+ /** `facts.scan.stamps` (DATAP-876); see cli/src/facts/schema.ts. */
19
+ export declare const stampsInputSchema: z.ZodObject<{
20
+ scannerCommit: z.ZodString;
21
+ cliVersion: z.ZodString;
22
+ catalogHash: z.ZodString;
23
+ configHash: z.ZodString;
24
+ aiInference: z.ZodBoolean;
25
+ structureGraph: z.ZodBoolean;
26
+ commitSha: z.ZodNullable<z.ZodString>;
27
+ dirty: z.ZodNullable<z.ZodBoolean>;
28
+ rootCommitSha: z.ZodNullable<z.ZodString>;
29
+ scanRoot: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>;
31
+ export declare const factsInputSchema: z.ZodObject<{
32
+ schemaVersion: z.ZodLiteral<1>;
33
+ scan: z.ZodOptional<z.ZodObject<{
34
+ stamps: z.ZodOptional<z.ZodObject<{
35
+ scannerCommit: z.ZodString;
36
+ cliVersion: z.ZodString;
37
+ catalogHash: z.ZodString;
38
+ configHash: z.ZodString;
39
+ aiInference: z.ZodBoolean;
40
+ structureGraph: z.ZodBoolean;
41
+ commitSha: z.ZodNullable<z.ZodString>;
42
+ dirty: z.ZodNullable<z.ZodBoolean>;
43
+ rootCommitSha: z.ZodNullable<z.ZodString>;
44
+ scanRoot: z.ZodNullable<z.ZodString>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>>;
47
+ components: z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ identity: z.ZodOptional<z.ZodObject<{
50
+ kind: z.ZodEnum<{
51
+ component: "component";
52
+ dataFlow: "dataFlow";
53
+ dataItem: "dataItem";
54
+ group: "group";
55
+ }>;
56
+ key: z.ZodString;
57
+ parts: z.ZodRecord<z.ZodString, z.ZodString>;
58
+ duplicateIndex: z.ZodOptional<z.ZodNumber>;
59
+ }, z.core.$strip>>;
60
+ sourceLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ filePath: z.ZodString;
62
+ }, z.core.$strip>>>;
63
+ name: z.ZodString;
64
+ type: z.ZodString;
65
+ subType: z.ZodString;
66
+ confidence: z.ZodNumber;
67
+ }, z.core.$strip>>;
68
+ dataFlows: z.ZodArray<z.ZodObject<{
69
+ id: z.ZodString;
70
+ identity: z.ZodOptional<z.ZodObject<{
71
+ kind: z.ZodEnum<{
72
+ component: "component";
73
+ dataFlow: "dataFlow";
74
+ dataItem: "dataItem";
75
+ group: "group";
76
+ }>;
77
+ key: z.ZodString;
78
+ parts: z.ZodRecord<z.ZodString, z.ZodString>;
79
+ duplicateIndex: z.ZodOptional<z.ZodNumber>;
80
+ }, z.core.$strip>>;
81
+ sourceLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ filePath: z.ZodString;
83
+ }, z.core.$strip>>>;
84
+ sourceComponentId: z.ZodString;
85
+ targetComponentId: z.ZodString;
86
+ type: z.ZodString;
87
+ targetScope: z.ZodOptional<z.ZodString>;
88
+ confidence: z.ZodNumber;
89
+ }, z.core.$strip>>;
90
+ dataItems: z.ZodArray<z.ZodObject<{
91
+ id: z.ZodString;
92
+ identity: z.ZodOptional<z.ZodObject<{
93
+ kind: z.ZodEnum<{
94
+ component: "component";
95
+ dataFlow: "dataFlow";
96
+ dataItem: "dataItem";
97
+ group: "group";
98
+ }>;
99
+ key: z.ZodString;
100
+ parts: z.ZodRecord<z.ZodString, z.ZodString>;
101
+ duplicateIndex: z.ZodOptional<z.ZodNumber>;
102
+ }, z.core.$strip>>;
103
+ name: z.ZodString;
104
+ labels: z.ZodArray<z.ZodString>;
105
+ groups: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodString;
107
+ identity: z.ZodOptional<z.ZodObject<{
108
+ kind: z.ZodEnum<{
109
+ component: "component";
110
+ dataFlow: "dataFlow";
111
+ dataItem: "dataItem";
112
+ group: "group";
113
+ }>;
114
+ key: z.ZodString;
115
+ parts: z.ZodRecord<z.ZodString, z.ZodString>;
116
+ duplicateIndex: z.ZodOptional<z.ZodNumber>;
117
+ }, z.core.$strip>>;
118
+ label: z.ZodString;
119
+ basis: z.ZodOptional<z.ZodString>;
120
+ handledBy: z.ZodArray<z.ZodString>;
121
+ }, z.core.$strip>>;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
124
+ export type IdentityInput = z.infer<typeof identityInputSchema>;
125
+ export type FactsInput = z.infer<typeof factsInputSchema>;
126
+ export type StampsInput = z.infer<typeof stampsInputSchema>;
127
+ /** Parses a `facts.json` value. Throws a ZodError that names the bad field. */
128
+ export declare function parseFacts(value: unknown): FactsInput;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.factsInputSchema = exports.stampsInputSchema = exports.identityInputSchema = void 0;
4
+ exports.parseFacts = parseFacts;
5
+ const zod_1 = require("zod");
6
+ /**
7
+ * The parts of a scan's `facts.json` that a comparison reads. The CLI owns the full schema
8
+ * (`cli/src/facts/schema.ts`); this package declares only what it needs, so it does not depend
9
+ * on the CLI. Unknown fields are ignored.
10
+ */
11
+ exports.identityInputSchema = zod_1.z.object({
12
+ kind: zod_1.z.enum(["component", "dataFlow", "dataItem", "group"]),
13
+ key: zod_1.z.string(),
14
+ parts: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
15
+ duplicateIndex: zod_1.z.number().int().min(2).optional(),
16
+ });
17
+ /** Only the file paths are read (for rename matching, DATAP-866). */
18
+ const sourceLocationsInputSchema = zod_1.z.array(zod_1.z.object({ filePath: zod_1.z.string() })).optional();
19
+ const componentInputSchema = zod_1.z.object({
20
+ id: zod_1.z.string(),
21
+ identity: exports.identityInputSchema.optional(),
22
+ sourceLocations: sourceLocationsInputSchema,
23
+ name: zod_1.z.string(),
24
+ type: zod_1.z.string(),
25
+ subType: zod_1.z.string(),
26
+ confidence: zod_1.z.number(),
27
+ });
28
+ const dataFlowInputSchema = zod_1.z.object({
29
+ id: zod_1.z.string(),
30
+ identity: exports.identityInputSchema.optional(),
31
+ sourceLocations: sourceLocationsInputSchema,
32
+ sourceComponentId: zod_1.z.string(),
33
+ targetComponentId: zod_1.z.string(),
34
+ type: zod_1.z.string(),
35
+ targetScope: zod_1.z.string().optional(),
36
+ confidence: zod_1.z.number(),
37
+ });
38
+ const groupInputSchema = zod_1.z.object({
39
+ id: zod_1.z.string(),
40
+ identity: exports.identityInputSchema.optional(),
41
+ label: zod_1.z.string(),
42
+ basis: zod_1.z.string().optional(),
43
+ handledBy: zod_1.z.array(zod_1.z.string()),
44
+ });
45
+ const dataItemInputSchema = zod_1.z.object({
46
+ id: zod_1.z.string(),
47
+ identity: exports.identityInputSchema.optional(),
48
+ name: zod_1.z.string(),
49
+ labels: zod_1.z.array(zod_1.z.string()),
50
+ groups: zod_1.z.array(groupInputSchema),
51
+ });
52
+ /** `facts.scan.stamps` (DATAP-876); see cli/src/facts/schema.ts. */
53
+ exports.stampsInputSchema = zod_1.z.object({
54
+ scannerCommit: zod_1.z.string(),
55
+ cliVersion: zod_1.z.string(),
56
+ catalogHash: zod_1.z.string(),
57
+ configHash: zod_1.z.string(),
58
+ aiInference: zod_1.z.boolean(),
59
+ structureGraph: zod_1.z.boolean(),
60
+ commitSha: zod_1.z.string().nullable(),
61
+ dirty: zod_1.z.boolean().nullable(),
62
+ rootCommitSha: zod_1.z.string().nullable(),
63
+ scanRoot: zod_1.z.string().nullable(),
64
+ });
65
+ exports.factsInputSchema = zod_1.z.object({
66
+ schemaVersion: zod_1.z.literal(1),
67
+ scan: zod_1.z.object({ stamps: exports.stampsInputSchema.optional() }).optional(),
68
+ components: zod_1.z.array(componentInputSchema),
69
+ dataFlows: zod_1.z.array(dataFlowInputSchema),
70
+ dataItems: zod_1.z.array(dataItemInputSchema),
71
+ });
72
+ /** Parses a `facts.json` value. Throws a ZodError that names the bad field. */
73
+ function parseFacts(value) {
74
+ return exports.factsInputSchema.parse(value);
75
+ }
@@ -0,0 +1,69 @@
1
+ import { z } from "zod";
2
+ import type { ChangeSet } from "./change-set";
3
+ import { type Fingerprint } from "./fingerprint";
4
+ /**
5
+ * The slot rules (DATAP-874): whether an answer given at a base revision still holds at a head
6
+ * revision. Each answer is carried (still holds), reopened (the question must be asked again) or
7
+ * retired (its element is gone). A reopened answer becomes the prior answer of the new question.
8
+ *
9
+ * | Slot | Carry when | Reopen when | Retire when |
10
+ * | ----------------- | --------------------------------------------- | --------------------------------------------- | ----------- |
11
+ * | `in_scope` | element corresponds | type or subType changed, or split or merge | removed |
12
+ * | `actor_kind` | element corresponds | subType changed | removed |
13
+ * | `data_categories` | element corresponds, neighbours unchanged | neighbours changed | removed |
14
+ * | `purpose` | element corresponds, neighbours and type same | neighbours or type changed, or split or merge | removed |
15
+ * | any other slot | element corresponds | (never) | removed |
16
+ *
17
+ * "Corresponds" means the element is in the head under its key, under the key it was renamed
18
+ * to, or under the key it got when only its type, subtype or (for a flow) endpoints changed, all of
19
+ * which are part of the key. A code-hash change alone never reopens an answer: the fingerprint holds no code hash.
20
+ * `data_categories` uses neighbours only until flows carry observed data categories (DATAP-856);
21
+ * then "gained a category" reopens it too. Answers about the whole system (`dp:a0/system`) are
22
+ * always carried. A retired answer is re-attached (carried) when its key reappears with the same
23
+ * fingerprint. Answers on occurrences are not carried (DATAP-862).
24
+ */
25
+ export declare const SYSTEM_KEY = "dp:a0/system";
26
+ export declare const carryInputSchema: z.ZodObject<{
27
+ id: z.ZodString;
28
+ slot: z.ZodString;
29
+ identityKey: z.ZodString;
30
+ fingerprint: z.ZodNullable<z.ZodObject<{
31
+ version: z.ZodLiteral<1>;
32
+ subject: z.ZodEnum<{
33
+ component: "component";
34
+ dataFlow: "dataFlow";
35
+ dataItem: "dataItem";
36
+ group: "group";
37
+ }>;
38
+ key: z.ZodString;
39
+ shape: z.ZodObject<{
40
+ type: z.ZodNullable<z.ZodString>;
41
+ subType: z.ZodNullable<z.ZodString>;
42
+ targetScope: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ neighbours: z.ZodNullable<z.ZodObject<{
45
+ source: z.ZodString;
46
+ target: z.ZodString;
47
+ }, z.core.$strip>>;
48
+ handledGroups: z.ZodArray<z.ZodString>;
49
+ }, z.core.$strip>>;
50
+ retired: z.ZodOptional<z.ZodBoolean>;
51
+ }, z.core.$strip>;
52
+ export type CarryInput = z.infer<typeof carryInputSchema>;
53
+ export type CarryReason = "system" | "unchanged" | "renamed" | "rekeyed" | "reattached" | "type_changed" | "subtype_changed" | "neighbours_changed" | "split" | "merge" | "removed" | "no_fingerprint";
54
+ export interface CarryDecision {
55
+ answerId: string;
56
+ decision: "carry" | "reopen" | "retire";
57
+ reason: CarryReason;
58
+ /** The element's key at the head (after a rename); the base key for a retired answer. */
59
+ headKey: string;
60
+ /** The element's fingerprint at the head, to store with the carried answer. Null when retired or system. */
61
+ headFingerprint: Fingerprint | null;
62
+ /** For a reopened answer: the answer the new question replaces (`prior_answer_id`). */
63
+ priorAnswerId?: string;
64
+ }
65
+ /**
66
+ * Decide each answer at the head of a comparison. `changeSet` is the comparison of the base scan
67
+ * (where the answers' keys and fingerprints were taken) with `head`, a parsed `facts.json`.
68
+ */
69
+ export declare function applySlotRules(changeSet: ChangeSet, head: unknown, answers: CarryInput[]): CarryDecision[];
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.carryInputSchema = exports.SYSTEM_KEY = void 0;
4
+ exports.applySlotRules = applySlotRules;
5
+ const zod_1 = require("zod");
6
+ const canonical_1 = require("./canonical");
7
+ const fingerprint_1 = require("./fingerprint");
8
+ const input_1 = require("./input");
9
+ /**
10
+ * The slot rules (DATAP-874): whether an answer given at a base revision still holds at a head
11
+ * revision. Each answer is carried (still holds), reopened (the question must be asked again) or
12
+ * retired (its element is gone). A reopened answer becomes the prior answer of the new question.
13
+ *
14
+ * | Slot | Carry when | Reopen when | Retire when |
15
+ * | ----------------- | --------------------------------------------- | --------------------------------------------- | ----------- |
16
+ * | `in_scope` | element corresponds | type or subType changed, or split or merge | removed |
17
+ * | `actor_kind` | element corresponds | subType changed | removed |
18
+ * | `data_categories` | element corresponds, neighbours unchanged | neighbours changed | removed |
19
+ * | `purpose` | element corresponds, neighbours and type same | neighbours or type changed, or split or merge | removed |
20
+ * | any other slot | element corresponds | (never) | removed |
21
+ *
22
+ * "Corresponds" means the element is in the head under its key, under the key it was renamed
23
+ * to, or under the key it got when only its type, subtype or (for a flow) endpoints changed, all of
24
+ * which are part of the key. A code-hash change alone never reopens an answer: the fingerprint holds no code hash.
25
+ * `data_categories` uses neighbours only until flows carry observed data categories (DATAP-856);
26
+ * then "gained a category" reopens it too. Answers about the whole system (`dp:a0/system`) are
27
+ * always carried. A retired answer is re-attached (carried) when its key reappears with the same
28
+ * fingerprint. Answers on occurrences are not carried (DATAP-862).
29
+ */
30
+ exports.SYSTEM_KEY = "dp:a0/system";
31
+ exports.carryInputSchema = zod_1.z.object({
32
+ /** The answer's id. */
33
+ id: zod_1.z.string(),
34
+ /** The slot or property the answer sets. */
35
+ slot: zod_1.z.string(),
36
+ /** `identityKey` of the answer at the base revision: an element key, or `dp:a0/system`. */
37
+ identityKey: zod_1.z.string(),
38
+ /** The element's fingerprint at the base revision. Null for system answers or when unknown. */
39
+ fingerprint: fingerprint_1.fingerprintSchema.nullable(),
40
+ /** True when the answer was retired at an earlier revision. */
41
+ retired: zod_1.z.boolean().optional(),
42
+ });
43
+ const SPLIT_REOPENS = new Set(["in_scope", "purpose"]);
44
+ function fpKey(subject, key) {
45
+ return `${subject}\u0000${key}`;
46
+ }
47
+ /**
48
+ * Looser forms of a key, so an element that changed in a way that changes its key can still be
49
+ * found: `retype` blanks the type fields (an `app:` key's type and subtype, a flow key's type),
50
+ * `rewire` blanks a flow key's endpoints (the same call now reaches another component).
51
+ */
52
+ const LOOSE_KEYS = [
53
+ {
54
+ name: "retype",
55
+ apply: (subject, key) => {
56
+ if (subject === "component" && key.startsWith("app:")) {
57
+ const parts = key.split("|");
58
+ return parts.length < 5 ? null : [parts[0], "", "", ...parts.slice(3)].join("|");
59
+ }
60
+ const flow = subject === "dataFlow" ? flowParts(key) : null;
61
+ return flow ? JSON.stringify([...flow.slice(0, 3), "", ...flow.slice(4)]) : null;
62
+ },
63
+ },
64
+ {
65
+ name: "rewire",
66
+ apply: (subject, key) => {
67
+ const flow = subject === "dataFlow" ? flowParts(key) : null;
68
+ return flow ? JSON.stringify([flow[0], "", "", ...flow.slice(3)]) : null;
69
+ },
70
+ },
71
+ ];
72
+ function flowParts(key) {
73
+ if (!key.startsWith("["))
74
+ return null;
75
+ try {
76
+ const parts = JSON.parse(key);
77
+ return Array.isArray(parts) && parts[0] === "flow/v1" ? parts : null;
78
+ }
79
+ catch {
80
+ return null;
81
+ }
82
+ }
83
+ function sameFingerprint(a, b) {
84
+ return JSON.stringify(a) === JSON.stringify(b);
85
+ }
86
+ /**
87
+ * Decide each answer at the head of a comparison. `changeSet` is the comparison of the base scan
88
+ * (where the answers' keys and fingerprints were taken) with `head`, a parsed `facts.json`.
89
+ */
90
+ function applySlotRules(changeSet, head, answers) {
91
+ const headPrints = (0, fingerprint_1.fingerprintsOfScan)((0, canonical_1.canonicalize)((0, input_1.parseFacts)(head)));
92
+ const renamedTo = new Map();
93
+ const removed = new Set();
94
+ for (const change of changeSet.changes) {
95
+ if (change.change === "renamed" && change.previousKey) {
96
+ renamedTo.set(fpKey(change.subject, change.previousKey), change.key);
97
+ }
98
+ else if (change.change === "removed") {
99
+ removed.add(fpKey(change.subject, change.key));
100
+ }
101
+ }
102
+ const componentKeyAtHead = (key) => renamedTo.get(fpKey("component", key)) ?? key;
103
+ // Added elements by each loose key: where a removed element reappears changed.
104
+ const addedLoose = new Map();
105
+ for (const change of changeSet.changes) {
106
+ if (change.change !== "added")
107
+ continue;
108
+ for (const loose of LOOSE_KEYS) {
109
+ const value = loose.apply(change.subject, change.key);
110
+ if (!value)
111
+ continue;
112
+ const id = `${loose.name}\u0000${fpKey(change.subject, value)}`;
113
+ addedLoose.set(id, [...(addedLoose.get(id) ?? []), change.key]);
114
+ }
115
+ }
116
+ const changedTo = (subject, key) => {
117
+ for (const loose of LOOSE_KEYS) {
118
+ const value = loose.apply(subject, key);
119
+ if (!value)
120
+ continue;
121
+ const found = addedLoose.get(`${loose.name}\u0000${fpKey(subject, value)}`) ?? [];
122
+ if (found.length === 1)
123
+ return found[0];
124
+ }
125
+ return undefined;
126
+ };
127
+ const splitOf = new Map();
128
+ for (const split of changeSet.splits) {
129
+ for (const key of split.base)
130
+ splitOf.set(key, split.kind);
131
+ }
132
+ return answers.map((answer) => {
133
+ const base = { answerId: answer.id };
134
+ if (answer.identityKey === exports.SYSTEM_KEY) {
135
+ return { ...base, decision: "carry", reason: "system", headKey: exports.SYSTEM_KEY, headFingerprint: null };
136
+ }
137
+ const fp = answer.fingerprint;
138
+ if (!fp) {
139
+ // Without a fingerprint the subject is unknown; the answer cannot be judged, so it is reopened.
140
+ return { ...base, decision: "reopen", reason: "no_fingerprint", headKey: answer.identityKey, headFingerprint: null, priorAnswerId: answer.id };
141
+ }
142
+ if (answer.retired) {
143
+ const back = headPrints.get(fpKey(fp.subject, fp.key));
144
+ return back && sameFingerprint(back, fp)
145
+ ? { ...base, decision: "carry", reason: "reattached", headKey: fp.key, headFingerprint: back }
146
+ : { ...base, decision: "retire", reason: "removed", headKey: fp.key, headFingerprint: null };
147
+ }
148
+ const isRemoved = removed.has(fpKey(fp.subject, fp.key));
149
+ const byRename = renamedTo.get(fpKey(fp.subject, fp.key));
150
+ const renamed = byRename ?? (isRemoved ? changedTo(fp.subject, fp.key) : undefined);
151
+ const headKey = renamed ?? fp.key;
152
+ const now = headPrints.get(fpKey(fp.subject, headKey));
153
+ const split = fp.subject === "component" ? splitOf.get(fp.key) : undefined;
154
+ if (!now || (isRemoved && !renamed)) {
155
+ if (split) {
156
+ // The element was split or merged into others: ask again rather than drop the answer.
157
+ return { ...base, decision: "reopen", reason: split, headKey: fp.key, headFingerprint: null, priorAnswerId: answer.id };
158
+ }
159
+ return { ...base, decision: "retire", reason: "removed", headKey: fp.key, headFingerprint: null };
160
+ }
161
+ const reopen = (reason) => ({
162
+ ...base,
163
+ decision: "reopen",
164
+ reason,
165
+ headKey,
166
+ headFingerprint: now,
167
+ priorAnswerId: answer.id,
168
+ });
169
+ if (split && SPLIT_REOPENS.has(answer.slot))
170
+ return reopen(split);
171
+ const neighboursChanged = () => {
172
+ if (!fp.neighbours || !now.neighbours)
173
+ return fp.neighbours !== now.neighbours;
174
+ return (componentKeyAtHead(fp.neighbours.source) !== now.neighbours.source ||
175
+ componentKeyAtHead(fp.neighbours.target) !== now.neighbours.target);
176
+ };
177
+ switch (answer.slot) {
178
+ case "in_scope":
179
+ if (fp.shape.type !== now.shape.type)
180
+ return reopen("type_changed");
181
+ if (fp.shape.subType !== now.shape.subType)
182
+ return reopen("subtype_changed");
183
+ break;
184
+ case "actor_kind":
185
+ if (fp.shape.subType !== now.shape.subType)
186
+ return reopen("subtype_changed");
187
+ break;
188
+ case "data_categories":
189
+ if (neighboursChanged())
190
+ return reopen("neighbours_changed");
191
+ break;
192
+ case "purpose":
193
+ if (neighboursChanged())
194
+ return reopen("neighbours_changed");
195
+ if (fp.shape.type !== now.shape.type)
196
+ return reopen("type_changed");
197
+ break;
198
+ default:
199
+ break;
200
+ }
201
+ return { ...base, decision: "carry", reason: byRename ? "renamed" : renamed ? "rekeyed" : "unchanged", headKey, headFingerprint: now };
202
+ });
203
+ }
@@ -0,0 +1,3 @@
1
+ import type { ChangeSet } from "./change-set";
2
+ /** A short text summary of a change set, for the terminal. */
3
+ export declare function summarizeChangeSet(changeSet: ChangeSet): string;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.summarizeChangeSet = summarizeChangeSet;
4
+ const NOUNS = {
5
+ component: ["component", "components"],
6
+ dataFlow: ["flow", "flows"],
7
+ dataItem: ["data item", "data items"],
8
+ group: ["group", "groups"],
9
+ };
10
+ function count(n, subject) {
11
+ return `${n} ${NOUNS[subject][n === 1 ? 0 : 1]}`;
12
+ }
13
+ function line(change) {
14
+ const sign = change.change === "added" ? "+" : change.change === "removed" ? "-" : change.change === "renamed" ? ">" : "~";
15
+ const what = change.subject === "group" ? `${change.parent} / ${change.name}` : change.name;
16
+ const ends = change.source && change.target ? ` (${change.source} → ${change.target})` : "";
17
+ const props = change.properties?.length ? `: ${change.properties.map((p) => p.property).join(", ")}` : "";
18
+ return ` ${sign} ${NOUNS[change.subject][0]} ${what}${ends}${props}`;
19
+ }
20
+ /** A short text summary of a change set, for the terminal. */
21
+ function summarizeChangeSet(changeSet) {
22
+ if (changeSet.unchanged)
23
+ return "No changes.";
24
+ if (changeSet.changes.length === 0) {
25
+ return `No changes among the Facts that have an identity. ${changeSet.unmatched.length} Facts have no identity and were not compared, so the scans may still differ.`;
26
+ }
27
+ const totals = ["added", "removed", "renamed", "modified"]
28
+ .map((kind) => {
29
+ const of = changeSet.changes.filter((c) => c.change === kind);
30
+ if (of.length === 0)
31
+ return null;
32
+ const bySubject = ["component", "dataFlow", "dataItem", "group"]
33
+ .map((s) => [s, of.filter((c) => c.subject === s).length])
34
+ .filter(([, n]) => n > 0)
35
+ .map(([s, n]) => count(n, s));
36
+ return `${kind}: ${bySubject.join(", ")}`;
37
+ })
38
+ .filter((t) => t !== null);
39
+ const lines = [totals.join("; "), ...changeSet.changes.map(line)];
40
+ for (const s of changeSet.splits)
41
+ lines.push(` * ${s.kind} ${s.name}: ${s.base.length} base → ${s.head.length} head components`);
42
+ if (changeSet.unmatched.length > 0)
43
+ lines.push(`${changeSet.unmatched.length} Facts have no identity and were not compared.`);
44
+ if (changeSet.configChanged)
45
+ lines.push("The scan configuration changed; both revisions were scanned with the head's configuration.");
46
+ return lines.join("\n");
47
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "@dataparade/kb-compare",
3
+ "version": "0.0.1",
4
+ "description": "Vendored build of @dataparade/kb-compare bundled into @dataparade/cli",
5
+ "main": "dist/src/index.js"
6
+ }
@@ -11,6 +11,7 @@ const main_application_selection_1 = require("./main-application-selection");
11
11
  const section_runtime_1 = require("../core/sectioning/section-runtime");
12
12
  const sectioning_1 = require("./sectioning");
13
13
  const postprocessing_1 = require("./postprocessing");
14
+ const stable_component_ids_1 = require("../core/pipeline/stable-component-ids");
14
15
  /** Synthetic main app created when no code hub exists (e.g. IaC-only scan). */
15
16
  exports.INJECTED_PROJECT_PLACEHOLDER_SOURCE_CONTEXT = "injected_project_placeholder";
16
17
  function isLikelyUserEntrypoint(mainApp) {
@@ -280,6 +281,8 @@ function injectApplicationAssetIfMissing(components, opts) {
280
281
  cloned[appIndex] = {
281
282
  ...app,
282
283
  name: projectName,
284
+ // The name comes from the project or the scan folder; keep it out of the stable id (KDATAP-296090).
285
+ properties: { ...app.properties, [stable_component_ids_1.NAME_FROM_PROJECT_PROPERTY]: true },
283
286
  };
284
287
  }
285
288
  return cloned;
@@ -314,6 +317,8 @@ function injectApplicationAssetIfMissing(components, opts) {
314
317
  section_id: defaultSectionId,
315
318
  section_role: defaultSectionRole,
316
319
  sourceContext: exports.INJECTED_PROJECT_PLACEHOLDER_SOURCE_CONTEXT,
320
+ // The name comes from the project or the scan folder; keep it out of the stable id (KDATAP-296090).
321
+ [stable_component_ids_1.NAME_FROM_PROJECT_PROPERTY]: true,
317
322
  },
318
323
  };
319
324
  return [...components, synthetic];
@@ -7,4 +7,12 @@ import type { DetectedComponent } from "../types/component";
7
7
  * The managed tuple embeds `managed_by_provider`, which is a component id; the
8
8
  * id assigners resolve it to the provider's own key so the result is stable.
9
9
  */
10
+ /**
11
+ * Set on a component whose name is the project name, or the scan folder's name when no project
12
+ * name is configured (the root Application component). Its stable key uses
13
+ * {@link PROJECT_NAME_KEY_TOKEN} instead of the name, so the id does not depend on the folder the
14
+ * repository was checked out into (KDATAP-296090, DATAP-858).
15
+ */
16
+ export declare const NAME_FROM_PROJECT_PROPERTY = "name_from_project";
17
+ export declare const PROJECT_NAME_KEY_TOKEN = "<project>";
10
18
  export declare function stableComponentKey(component: DetectedComponent): string;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROJECT_NAME_KEY_TOKEN = exports.NAME_FROM_PROJECT_PROPERTY = void 0;
3
4
  exports.stableComponentKey = stableComponentKey;
4
5
  const sectioning_1 = require("../../classifier/sectioning");
5
6
  function normalizeName(name) {
@@ -19,6 +20,14 @@ function firstSourceFilePath(component) {
19
20
  * The managed tuple embeds `managed_by_provider`, which is a component id; the
20
21
  * id assigners resolve it to the provider's own key so the result is stable.
21
22
  */
23
+ /**
24
+ * Set on a component whose name is the project name, or the scan folder's name when no project
25
+ * name is configured (the root Application component). Its stable key uses
26
+ * {@link PROJECT_NAME_KEY_TOKEN} instead of the name, so the id does not depend on the folder the
27
+ * repository was checked out into (KDATAP-296090, DATAP-858).
28
+ */
29
+ exports.NAME_FROM_PROJECT_PROPERTY = "name_from_project";
30
+ exports.PROJECT_NAME_KEY_TOKEN = "<project>";
22
31
  function stableComponentKey(component) {
23
32
  const addr = component.properties?.terraform_address;
24
33
  if (typeof addr === "string" && addr.trim()) {
@@ -36,5 +45,6 @@ function stableComponentKey(component) {
36
45
  const sid = (0, sectioning_1.getSectionIdFromProperties)(component.properties);
37
46
  const subType = component.subType ?? "";
38
47
  const filePath = firstSourceFilePath(component);
39
- return `app:${sid}|${component.type}|${subType}|${filePath}|${normalizeName(component.name)}`;
48
+ const name = component.properties?.[exports.NAME_FROM_PROJECT_PROPERTY] === true ? exports.PROJECT_NAME_KEY_TOKEN : normalizeName(component.name);
49
+ return `app:${sid}|${component.type}|${subType}|${filePath}|${name}`;
40
50
  }
@@ -8,7 +8,7 @@ export { buildDiagramGraphFromScanResult, selectPrimaryDataAction } from "./core
8
8
  export { runGraphify, loadGraphifyGraph, type GraphifyGraph, type GraphifyNode, type GraphifyLink, type StructureGraphConfig, type StructureGraphInfo, } from "./structure/graphify";
9
9
  export { buildDataParadeGraph, writeKnowledgeGraph, DATAPARADE_GRAPH_FILE, DATAPARADE_GRAPH_SCHEMA, type DataParadeGraph, type DataParadeNode, type DataParadeLink, } from "./graph/build-dataparade-graph";
10
10
  export { collectEvalFindings } from "./core/pipeline/collect-eval-findings";
11
- export { stableComponentKey } from "./core/pipeline/stable-component-ids";
11
+ export { NAME_FROM_PROJECT_PROPERTY, PROJECT_NAME_KEY_TOKEN, stableComponentKey } from "./core/pipeline/stable-component-ids";
12
12
  export { assignStableComponentIds, assignStableEntityIds, assignStableEntityIdsWithMaps, buildComponentKeyById, normalizeFlowEndpoint, resolvedStableComponentKey, stableComponentId, stableFlowId, stableFlowKey, STABLE_COMPONENT_ID_PATTERN, STABLE_COMPONENT_ID_PREFIX, STABLE_FLOW_ID_PATTERN, STABLE_FLOW_ID_PREFIX, } from "./core/pipeline/stable-entity-ids";
13
13
  export type { ComponentKeyLookup, StableEntityIdAssignment, } from "./core/pipeline/stable-entity-ids";
14
14
  export { sortDataFlowsDeterministically } from "./core/pipeline/sorting";
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.runAnalyzers = exports.toDisplayName = exports.frameworkDisplayName = exports.canonicalFrameworkId = exports.DETECTABLE_PROPERTY_KEYS = exports.normalizeOrganizationDomains = exports.hostMatchesOrganizationDomains = exports.loadClassifierConfig = exports.dedupeDataFlows = exports.appendTerraformBareProviderAttachmentFlows = exports.shouldSkipDirectoryName = exports.DEFAULT_EXCLUDED_FILE_GLOBS = exports.toPosixPath = exports.isPathIgnored = exports.gitignoreRulesForDir = exports.gitignorePatternToRegex = exports.isSensitiveEnvPath = exports.resolveScanFilesystemEntry = exports.ingestFileSystem = exports.sortDataFlowsDeterministically = exports.STABLE_FLOW_ID_PREFIX = exports.STABLE_FLOW_ID_PATTERN = exports.STABLE_COMPONENT_ID_PREFIX = exports.STABLE_COMPONENT_ID_PATTERN = exports.stableFlowKey = exports.stableFlowId = exports.stableComponentId = exports.resolvedStableComponentKey = exports.normalizeFlowEndpoint = exports.buildComponentKeyById = exports.assignStableEntityIdsWithMaps = exports.assignStableEntityIds = exports.assignStableComponentIds = exports.stableComponentKey = exports.collectEvalFindings = exports.DATAPARADE_GRAPH_SCHEMA = exports.DATAPARADE_GRAPH_FILE = exports.writeKnowledgeGraph = exports.buildDataParadeGraph = exports.loadGraphifyGraph = exports.runGraphify = exports.selectPrimaryDataAction = exports.buildDiagramGraphFromScanResult = exports.buildScanPersonalDataLayers = exports.enrichOrchestratorResultWithPersonalDataLayers = exports.runDeterministicScanPhases = exports.finalizeDeterministicScanResult = exports.emitScanProgress = exports.scan = exports.createDefaultScanConfiguration = void 0;
18
- exports.runDataActionPhase = exports.hasVerb = exports.readDataActions = exports.mergeOneAssignment = exports.mergeAssignmentsOntoComponents = exports.DATA_ACTION_RULE_LANGUAGES = exports.ruleAppliesToLanguage = exports.clearDataActionRulesCacheForTest = exports.loadDataActionRules = exports.loadDataActionRuleCatalog = exports.TERRAFORM_GATEWAY_SUBTYPES = exports.SUBTYPE_STORE_SUBTYPES = exports.deriveFromSubtypes = exports.pathsReferToSameFile = exports.deriveFromPatterns = exports.STORAGE_SUBTYPES = exports.deriveFromTopology = exports.normalizeDataActionToken = exports.normalizeDataAction = exports.isDataAction = exports.DATA_ACTION_SET = exports.DATA_ACTION_FRAMEWORK_ANCHORS = exports.DATA_ACTION_ALIASES = exports.DATA_ACTIONS = exports.tagFindingsWithServiceSections = exports.discoverServiceSections = void 0;
17
+ exports.frameworkDisplayName = exports.canonicalFrameworkId = exports.DETECTABLE_PROPERTY_KEYS = exports.normalizeOrganizationDomains = exports.hostMatchesOrganizationDomains = exports.loadClassifierConfig = exports.dedupeDataFlows = exports.appendTerraformBareProviderAttachmentFlows = exports.shouldSkipDirectoryName = exports.DEFAULT_EXCLUDED_FILE_GLOBS = exports.toPosixPath = exports.isPathIgnored = exports.gitignoreRulesForDir = exports.gitignorePatternToRegex = exports.isSensitiveEnvPath = exports.resolveScanFilesystemEntry = exports.ingestFileSystem = exports.sortDataFlowsDeterministically = exports.STABLE_FLOW_ID_PREFIX = exports.STABLE_FLOW_ID_PATTERN = exports.STABLE_COMPONENT_ID_PREFIX = exports.STABLE_COMPONENT_ID_PATTERN = exports.stableFlowKey = exports.stableFlowId = exports.stableComponentId = exports.resolvedStableComponentKey = exports.normalizeFlowEndpoint = exports.buildComponentKeyById = exports.assignStableEntityIdsWithMaps = exports.assignStableEntityIds = exports.assignStableComponentIds = exports.stableComponentKey = exports.PROJECT_NAME_KEY_TOKEN = exports.NAME_FROM_PROJECT_PROPERTY = exports.collectEvalFindings = exports.DATAPARADE_GRAPH_SCHEMA = exports.DATAPARADE_GRAPH_FILE = exports.writeKnowledgeGraph = exports.buildDataParadeGraph = exports.loadGraphifyGraph = exports.runGraphify = exports.selectPrimaryDataAction = exports.buildDiagramGraphFromScanResult = exports.buildScanPersonalDataLayers = exports.enrichOrchestratorResultWithPersonalDataLayers = exports.runDeterministicScanPhases = exports.finalizeDeterministicScanResult = exports.emitScanProgress = exports.scan = exports.createDefaultScanConfiguration = void 0;
18
+ exports.runDataActionPhase = exports.hasVerb = exports.readDataActions = exports.mergeOneAssignment = exports.mergeAssignmentsOntoComponents = exports.DATA_ACTION_RULE_LANGUAGES = exports.ruleAppliesToLanguage = exports.clearDataActionRulesCacheForTest = exports.loadDataActionRules = exports.loadDataActionRuleCatalog = exports.TERRAFORM_GATEWAY_SUBTYPES = exports.SUBTYPE_STORE_SUBTYPES = exports.deriveFromSubtypes = exports.pathsReferToSameFile = exports.deriveFromPatterns = exports.STORAGE_SUBTYPES = exports.deriveFromTopology = exports.normalizeDataActionToken = exports.normalizeDataAction = exports.isDataAction = exports.DATA_ACTION_SET = exports.DATA_ACTION_FRAMEWORK_ANCHORS = exports.DATA_ACTION_ALIASES = exports.DATA_ACTIONS = exports.tagFindingsWithServiceSections = exports.discoverServiceSections = exports.runAnalyzers = exports.toDisplayName = void 0;
19
19
  var orchestrator_1 = require("./core/pipeline/orchestrator");
20
20
  Object.defineProperty(exports, "createDefaultScanConfiguration", { enumerable: true, get: function () { return orchestrator_1.createDefaultScanConfiguration; } });
21
21
  Object.defineProperty(exports, "scan", { enumerable: true, get: function () { return orchestrator_1.scan; } });
@@ -41,6 +41,8 @@ Object.defineProperty(exports, "DATAPARADE_GRAPH_SCHEMA", { enumerable: true, ge
41
41
  var collect_eval_findings_1 = require("./core/pipeline/collect-eval-findings");
42
42
  Object.defineProperty(exports, "collectEvalFindings", { enumerable: true, get: function () { return collect_eval_findings_1.collectEvalFindings; } });
43
43
  var stable_component_ids_1 = require("./core/pipeline/stable-component-ids");
44
+ Object.defineProperty(exports, "NAME_FROM_PROJECT_PROPERTY", { enumerable: true, get: function () { return stable_component_ids_1.NAME_FROM_PROJECT_PROPERTY; } });
45
+ Object.defineProperty(exports, "PROJECT_NAME_KEY_TOKEN", { enumerable: true, get: function () { return stable_component_ids_1.PROJECT_NAME_KEY_TOKEN; } });
44
46
  Object.defineProperty(exports, "stableComponentKey", { enumerable: true, get: function () { return stable_component_ids_1.stableComponentKey; } });
45
47
  var stable_entity_ids_1 = require("./core/pipeline/stable-entity-ids");
46
48
  Object.defineProperty(exports, "assignStableComponentIds", { enumerable: true, get: function () { return stable_entity_ids_1.assignStableComponentIds; } });
@@ -3,5 +3,7 @@
3
3
  "version": "0.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Vendored build of @dataparade/scanner bundled into @dataparade/cli",
6
- "main": "dist/src/index.js"
6
+ "main": "dist/src/index.js",
7
+ "gitHead": "175f7366ab54b8bf8c56998a21198d9aaa6858e0",
8
+ "catalogHash": "sha256:409e000237d3d332"
7
9
  }