@cclabsnz/sf-core 0.5.0 → 0.6.0
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/CHANGELOG.md +33 -0
- package/lib/graph/kinds.d.ts +15 -0
- package/lib/graph/kinds.js +3 -0
- package/lib/graph/validate.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,39 @@ CycloneDX SBOM for the build.
|
|
|
12
12
|
|
|
13
13
|
Nothing yet.
|
|
14
14
|
|
|
15
|
+
## [0.6.0] — 2026-09-10
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **Three node kinds for the things `intel anatomy` collects**: `site` (a channel an org
|
|
20
|
+
publishes), `product` (mined from component name prefixes) and `ssoConfig` (an identity
|
|
21
|
+
provider). All three are owned by `orgintel` and sit on the `landscape` layer.
|
|
22
|
+
|
|
23
|
+
That combination is the point. `landscape` is otherwise `sf-orgviz`'s territory, and a layer
|
|
24
|
+
is not what ownership is keyed on — a kind is. Deciding it that way in 0.5.0 is what lets a
|
|
25
|
+
second tool contribute to a layer the first one dominates without either emitting the other's
|
|
26
|
+
entities, and this is the first release where that flexibility is actually spent. A merge
|
|
27
|
+
rejects a fragment emitting a kind it does not own, and `layerOfKind`/`levelOfKind` read from
|
|
28
|
+
`GRAPH_KIND_TABLE`, so nothing could emit these until they were declared here.
|
|
29
|
+
|
|
30
|
+
## [0.5.1] — 2026-09-09
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **The unsupported-schema-version finding offered a remedy that does not exist.** Its `fix` read
|
|
35
|
+
"Re-extract the graph with this version of the tool, or run the migration to 1.2.0", and no
|
|
36
|
+
migration was ever written — `docs/` in the consuming repo explicitly declines to write one. A
|
|
37
|
+
reader hitting it went looking for a command that is not there, unsure whether they had missed a
|
|
38
|
+
step or the tool was wrong.
|
|
39
|
+
|
|
40
|
+
It survived because it was unreachable. `SUPPORTED_GRAPH_SCHEMA_VERSION` was set once and never
|
|
41
|
+
moved, so no document could disagree with it and the finding could not fire; 0.5.0's bump to
|
|
42
|
+
`1.2.0` was the first thing that made it reachable, in the same release that first published it
|
|
43
|
+
to a second consumer. The existing test asserted only that `fix` was non-empty, which is the
|
|
44
|
+
letter of that field's contract — "a finding a reader cannot act on is a bug report" — and could
|
|
45
|
+
not tell an action apart from a promise. A test now pins that the fix does not direct anyone to
|
|
46
|
+
run a migration, while still allowing it to say that none exists, which is worth saying.
|
|
47
|
+
|
|
15
48
|
## [0.5.0] — 2026-09-09
|
|
16
49
|
|
|
17
50
|
**The canonical org graph, and a merge that refuses to state something false.**
|
package/lib/graph/kinds.d.ts
CHANGED
|
@@ -40,6 +40,21 @@ export declare const GRAPH_KIND_TABLE: {
|
|
|
40
40
|
readonly level: 2;
|
|
41
41
|
readonly owner: "orgviz";
|
|
42
42
|
};
|
|
43
|
+
readonly site: {
|
|
44
|
+
readonly layer: "landscape";
|
|
45
|
+
readonly level: 2;
|
|
46
|
+
readonly owner: "orgintel";
|
|
47
|
+
};
|
|
48
|
+
readonly product: {
|
|
49
|
+
readonly layer: "landscape";
|
|
50
|
+
readonly level: 2;
|
|
51
|
+
readonly owner: "orgintel";
|
|
52
|
+
};
|
|
53
|
+
readonly ssoConfig: {
|
|
54
|
+
readonly layer: "landscape";
|
|
55
|
+
readonly level: 2;
|
|
56
|
+
readonly owner: "orgintel";
|
|
57
|
+
};
|
|
43
58
|
readonly sobject: {
|
|
44
59
|
readonly layer: "data";
|
|
45
60
|
readonly level: 2;
|
package/lib/graph/kinds.js
CHANGED
|
@@ -10,6 +10,9 @@ export const GRAPH_KIND_TABLE = {
|
|
|
10
10
|
connectedApp: { layer: 'landscape', level: 2, owner: 'orgviz' },
|
|
11
11
|
namedCredential: { layer: 'landscape', level: 2, owner: 'orgviz' },
|
|
12
12
|
integration: { layer: 'landscape', level: 2, owner: 'orgviz' },
|
|
13
|
+
site: { layer: 'landscape', level: 2, owner: 'orgintel' },
|
|
14
|
+
product: { layer: 'landscape', level: 2, owner: 'orgintel' },
|
|
15
|
+
ssoConfig: { layer: 'landscape', level: 2, owner: 'orgintel' },
|
|
13
16
|
sobject: { layer: 'data', level: 2, owner: 'orgviz' },
|
|
14
17
|
profile: { layer: 'access', level: 2, owner: 'orgviz' },
|
|
15
18
|
permissionSet: { layer: 'access', level: 2, owner: 'orgviz' },
|
package/lib/graph/validate.js
CHANGED
|
@@ -48,7 +48,10 @@ export function validateGraph(doc) {
|
|
|
48
48
|
id: 'document',
|
|
49
49
|
message: `schemaVersion is ${String(candidate.schemaVersion)}; this build supports ` +
|
|
50
50
|
`${SUPPORTED_GRAPH_SCHEMA_VERSION}.`,
|
|
51
|
-
|
|
51
|
+
// Re-extraction is the only remedy, so it is the only one offered. This previously also
|
|
52
|
+
// promised a migration, which was never written -- and the promise went unnoticed because
|
|
53
|
+
// the finding was unreachable until the schema version first moved.
|
|
54
|
+
fix: `Re-extract the graph with a build that writes ${SUPPORTED_GRAPH_SCHEMA_VERSION}. There is no in-place migration between schema versions.`,
|
|
52
55
|
},
|
|
53
56
|
];
|
|
54
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cclabsnz/sf-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Shared platform layer for CloudCounsel Salesforce sf plugins — API clients, org context, event log pull, report shell, and versioned IR schemas.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|