@cclabsnz/sf-core 0.1.0 → 0.1.1

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.
@@ -6,7 +6,14 @@ export interface CouplingGraphProvenance {
6
6
  toolVersion: string;
7
7
  generatedAt: string;
8
8
  orgId: string;
9
- evidenceTier: EvidenceTier;
9
+ /**
10
+ * Tier measured by `intel probe`, or null when no probe has graded this org.
11
+ *
12
+ * Nullable rather than optional on purpose: a reader that forgets null gets a loud
13
+ * undefined, whereas an absent key reads as "no tier information" — the same ambiguity
14
+ * that let `intel map` stamp a fabricated 'C' into published IR.
15
+ */
16
+ evidenceTier: EvidenceTier | null;
10
17
  }
11
18
  export interface CouplingGraphNode {
12
19
  object: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cclabsnz/sf-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared platform layer for CloudCounsel Salesforce sf plugins \u2014 API clients, org context, event log pull, report shell, and versioned IR schemas.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -68,5 +68,14 @@
68
68
  "access": "public",
69
69
  "provenance": true
70
70
  },
71
- "packageManager": "pnpm@10.33.0"
71
+ "packageManager": "pnpm@10.33.0",
72
+ "pnpm": {
73
+ "overrides": {
74
+ "form-data": "^4.0.6",
75
+ "js-yaml@3": "^3.15.0",
76
+ "handlebars": "^4.7.9",
77
+ "brace-expansion": "^5.0.8",
78
+ "fast-uri@3": "^3.1.4"
79
+ }
80
+ }
72
81
  }
@@ -5,19 +5,54 @@
5
5
  "description": "Object-pair coupling graph emitted by `sf intel map`. Nodes are Salesforce objects; edges are aggregated cross-object couplings derived from flows, triggers, and Apex.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
- "required": ["version", "provenance", "nodes", "edges"],
8
+ "required": [
9
+ "version",
10
+ "provenance",
11
+ "nodes",
12
+ "edges"
13
+ ],
9
14
  "properties": {
10
- "version": { "const": 1 },
15
+ "version": {
16
+ "const": 1
17
+ },
11
18
  "provenance": {
12
19
  "type": "object",
13
20
  "additionalProperties": false,
14
- "required": ["tool", "toolVersion", "generatedAt", "orgId", "evidenceTier"],
21
+ "required": [
22
+ "tool",
23
+ "toolVersion",
24
+ "generatedAt",
25
+ "orgId",
26
+ "evidenceTier"
27
+ ],
15
28
  "properties": {
16
- "tool": { "const": "orgintel" },
17
- "toolVersion": { "type": "string" },
18
- "generatedAt": { "type": "string", "format": "date-time" },
19
- "orgId": { "type": "string" },
20
- "evidenceTier": { "type": "string", "enum": ["A", "B", "C", "D"] }
29
+ "tool": {
30
+ "const": "orgintel"
31
+ },
32
+ "toolVersion": {
33
+ "type": "string"
34
+ },
35
+ "generatedAt": {
36
+ "type": "string",
37
+ "format": "date-time"
38
+ },
39
+ "orgId": {
40
+ "type": "string"
41
+ },
42
+ "evidenceTier": {
43
+ "type": [
44
+ "string",
45
+ "null"
46
+ ],
47
+ "enum": [
48
+ "A",
49
+ "B",
50
+ "C",
51
+ "D",
52
+ null
53
+ ],
54
+ "description": "Evidence tier measured by `intel probe`, or null when no probe has graded this org. Null means not measured \u2014 never assume a default."
55
+ }
21
56
  }
22
57
  },
23
58
  "nodes": {
@@ -25,21 +60,46 @@
25
60
  "items": {
26
61
  "type": "object",
27
62
  "additionalProperties": false,
28
- "required": ["object", "custom", "automationCounts", "recordCount90d"],
63
+ "required": [
64
+ "object",
65
+ "custom",
66
+ "automationCounts",
67
+ "recordCount90d"
68
+ ],
29
69
  "properties": {
30
- "object": { "type": "string" },
31
- "custom": { "type": "boolean" },
70
+ "object": {
71
+ "type": "string"
72
+ },
73
+ "custom": {
74
+ "type": "boolean"
75
+ },
32
76
  "automationCounts": {
33
77
  "type": "object",
34
78
  "additionalProperties": false,
35
- "required": ["flows", "triggers", "approvals"],
79
+ "required": [
80
+ "flows",
81
+ "triggers",
82
+ "approvals"
83
+ ],
36
84
  "properties": {
37
- "flows": { "type": "integer", "minimum": 0 },
38
- "triggers": { "type": "integer", "minimum": 0 },
39
- "approvals": { "type": "integer", "minimum": 0 }
85
+ "flows": {
86
+ "type": "integer",
87
+ "minimum": 0
88
+ },
89
+ "triggers": {
90
+ "type": "integer",
91
+ "minimum": 0
92
+ },
93
+ "approvals": {
94
+ "type": "integer",
95
+ "minimum": 0
96
+ }
40
97
  }
41
98
  },
42
- "recordCount90d": { "type": "integer", "minimum": 0 }
99
+ "recordCount90d": {
100
+ "type": "integer",
101
+ "minimum": 0
102
+ }
43
103
  }
44
104
  }
45
105
  },
@@ -48,25 +108,60 @@
48
108
  "items": {
49
109
  "type": "object",
50
110
  "additionalProperties": false,
51
- "required": ["from", "to", "weight", "operations", "components"],
111
+ "required": [
112
+ "from",
113
+ "to",
114
+ "weight",
115
+ "operations",
116
+ "components"
117
+ ],
52
118
  "properties": {
53
- "from": { "type": "string" },
54
- "to": { "type": "string" },
55
- "weight": { "type": "integer", "minimum": 0 },
119
+ "from": {
120
+ "type": "string"
121
+ },
122
+ "to": {
123
+ "type": "string"
124
+ },
125
+ "weight": {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ },
56
129
  "operations": {
57
130
  "type": "array",
58
- "items": { "type": "string", "enum": ["read", "create", "update", "delete"] }
131
+ "items": {
132
+ "type": "string",
133
+ "enum": [
134
+ "read",
135
+ "create",
136
+ "update",
137
+ "delete"
138
+ ]
139
+ }
59
140
  },
60
141
  "components": {
61
142
  "type": "array",
62
143
  "items": {
63
144
  "type": "object",
64
145
  "additionalProperties": false,
65
- "required": ["type", "name", "confidence"],
146
+ "required": [
147
+ "type",
148
+ "name",
149
+ "confidence"
150
+ ],
66
151
  "properties": {
67
- "type": { "type": "string" },
68
- "name": { "type": "string" },
69
- "confidence": { "type": "string", "enum": ["high", "approximate"] }
152
+ "type": {
153
+ "type": "string"
154
+ },
155
+ "name": {
156
+ "type": "string"
157
+ },
158
+ "confidence": {
159
+ "type": "string",
160
+ "enum": [
161
+ "high",
162
+ "approximate"
163
+ ]
164
+ }
70
165
  }
71
166
  }
72
167
  }