sf-plugin-data 0.1.0 → 0.2.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/LICENSE +21 -21
- package/README.md +572 -240
- package/docs/artifact-format.md +527 -633
- package/docs/capabilities.md +1159 -168
- package/docs/git-workflow.md +135 -12
- package/docs/handover.md +7826 -12
- package/lib/api.d.ts +7 -0
- package/lib/api.js +7 -0
- package/lib/artifacts/code-fields.d.ts +49 -0
- package/lib/artifacts/code-fields.js +142 -0
- package/lib/artifacts/data-graph-document.d.ts +29 -0
- package/lib/artifacts/data-graph-document.js +52 -0
- package/lib/artifacts/data-space-field.d.ts +65 -0
- package/lib/artifacts/data-space-field.js +98 -0
- package/lib/artifacts/data-stream-document.d.ts +264 -0
- package/lib/artifacts/data-stream-document.js +680 -0
- package/lib/artifacts/data-transform-document.d.ts +152 -0
- package/lib/artifacts/data-transform-document.js +560 -0
- package/lib/artifacts/dependency-selection.d.ts +51 -0
- package/lib/artifacts/dependency-selection.js +154 -0
- package/lib/artifacts/dlo-document.d.ts +93 -0
- package/lib/artifacts/dlo-document.js +253 -0
- package/lib/artifacts/enum-case.d.ts +39 -0
- package/lib/artifacts/enum-case.js +67 -0
- package/lib/artifacts/git-deploy-selection.d.ts +68 -0
- package/lib/artifacts/git-deploy-selection.js +474 -0
- package/lib/artifacts/identity-resolution-document.d.ts +133 -0
- package/lib/artifacts/identity-resolution-document.js +625 -0
- package/lib/artifacts/mapping-document.d.ts +1 -0
- package/lib/artifacts/mapping-document.js +1 -0
- package/lib/artifacts/native-calculated-insight-document.d.ts +142 -0
- package/lib/artifacts/native-calculated-insight-document.js +321 -0
- package/lib/artifacts/native-data-graph-document.d.ts +124 -0
- package/lib/artifacts/native-data-graph-document.js +780 -0
- package/lib/artifacts/native-dmo-document.d.ts +151 -0
- package/lib/artifacts/native-dmo-document.js +313 -0
- package/lib/artifacts/native-mapping-document.d.ts +67 -0
- package/lib/artifacts/native-mapping-document.js +187 -0
- package/lib/artifacts/native-relationship-document.d.ts +76 -0
- package/lib/artifacts/native-relationship-document.js +232 -0
- package/lib/artifacts/path-selector.d.ts +55 -0
- package/lib/artifacts/path-selector.js +167 -0
- package/lib/artifacts/read-deploy-input.d.ts +222 -6
- package/lib/artifacts/read-deploy-input.js +1213 -53
- package/lib/artifacts/segment-document.d.ts +183 -0
- package/lib/artifacts/segment-document.js +570 -0
- package/lib/artifacts/verbatim-document.d.ts +203 -0
- package/lib/artifacts/verbatim-document.js +339 -0
- package/lib/artifacts/write-data-graph.d.ts +17 -0
- package/lib/artifacts/write-data-graph.js +162 -0
- package/lib/artifacts/write-data-stream.d.ts +11 -0
- package/lib/artifacts/write-data-stream.js +175 -0
- package/lib/artifacts/write-data-transform.d.ts +11 -0
- package/lib/artifacts/write-data-transform.js +180 -0
- package/lib/artifacts/write-dlo.d.ts +11 -0
- package/lib/artifacts/write-dlo.js +158 -0
- package/lib/artifacts/write-identity-resolution.d.ts +18 -0
- package/lib/artifacts/write-identity-resolution.js +165 -0
- package/lib/artifacts/write-mapping-definition.d.ts +17 -0
- package/lib/artifacts/write-mapping-definition.js +127 -0
- package/lib/artifacts/write-member-export.d.ts +88 -0
- package/lib/artifacts/write-member-export.js +199 -0
- package/lib/artifacts/write-native-calculated-insight.d.ts +21 -0
- package/lib/artifacts/write-native-calculated-insight.js +176 -0
- package/lib/artifacts/write-native-dmo.d.ts +11 -0
- package/lib/artifacts/write-native-dmo.js +158 -0
- package/lib/artifacts/write-native-mapping.d.ts +11 -0
- package/lib/artifacts/write-native-mapping.js +157 -0
- package/lib/artifacts/write-native-relationship.d.ts +11 -0
- package/lib/artifacts/write-native-relationship.js +157 -0
- package/lib/artifacts/write-segment.d.ts +26 -0
- package/lib/artifacts/write-segment.js +212 -0
- package/lib/commands/data360/delete.d.ts +280 -0
- package/lib/commands/data360/delete.js +2297 -0
- package/lib/commands/data360/deploy.d.ts +234 -15
- package/lib/commands/data360/deploy.js +2292 -100
- package/lib/commands/data360/publish.d.ts +93 -0
- package/lib/commands/data360/publish.js +292 -0
- package/lib/commands/data360/retrieve.d.ts +260 -13
- package/lib/commands/data360/retrieve.js +1880 -85
- package/lib/commands/data360/segment/members/export.d.ts +101 -0
- package/lib/commands/data360/segment/members/export.js +318 -0
- package/lib/errors/codes/calculated-insight.d.ts +2 -0
- package/lib/errors/codes/calculated-insight.js +25 -0
- package/lib/errors/codes/data-graph.d.ts +2 -0
- package/lib/errors/codes/data-graph.js +22 -0
- package/lib/errors/codes/data-stream.d.ts +2 -0
- package/lib/errors/codes/data-stream.js +70 -0
- package/lib/errors/codes/data-transform.d.ts +2 -0
- package/lib/errors/codes/data-transform.js +35 -0
- package/lib/errors/codes/dependency.d.ts +2 -0
- package/lib/errors/codes/dependency.js +11 -0
- package/lib/errors/codes/dlo.d.ts +2 -0
- package/lib/errors/codes/dlo.js +31 -0
- package/lib/errors/codes/dmo.d.ts +2 -0
- package/lib/errors/codes/dmo.js +28 -0
- package/lib/errors/codes/general.d.ts +2 -0
- package/lib/errors/codes/general.js +57 -0
- package/lib/errors/codes/identity-resolution.d.ts +2 -0
- package/lib/errors/codes/identity-resolution.js +24 -0
- package/lib/errors/codes/mapping.d.ts +2 -0
- package/lib/errors/codes/mapping.js +42 -0
- package/lib/errors/codes/relationship.d.ts +2 -0
- package/lib/errors/codes/relationship.js +21 -0
- package/lib/errors/codes/segment.d.ts +2 -0
- package/lib/errors/codes/segment.js +49 -0
- package/lib/errors/registry.d.ts +60 -0
- package/lib/errors/registry.js +123 -0
- package/lib/plugin.d.ts +1 -0
- package/lib/plugin.js +3 -1
- package/lib/services/acquire-retrieve-selection.d.ts +43 -0
- package/lib/services/acquire-retrieve-selection.js +145 -0
- package/lib/services/bind-identity-resolution-dependencies.d.ts +53 -0
- package/lib/services/bind-identity-resolution-dependencies.js +238 -0
- package/lib/services/bind-segment-dependencies.d.ts +49 -0
- package/lib/services/bind-segment-dependencies.js +115 -0
- package/lib/services/bounded-reads.d.ts +17 -0
- package/lib/services/bounded-reads.js +42 -0
- package/lib/services/calculated-insight-sql-checks.d.ts +33 -0
- package/lib/services/calculated-insight-sql-checks.js +193 -0
- package/lib/services/command-dlo.d.ts +48 -0
- package/lib/services/command-dlo.js +103 -0
- package/lib/services/command-native-data-graph.d.ts +54 -0
- package/lib/services/command-native-data-graph.js +485 -0
- package/lib/services/command-native-data-stream.d.ts +104 -0
- package/lib/services/command-native-data-stream.js +257 -0
- package/lib/services/command-native-dmo.d.ts +124 -0
- package/lib/services/command-native-dmo.js +338 -0
- package/lib/services/command-native-mapping.d.ts +65 -0
- package/lib/services/command-native-mapping.js +129 -0
- package/lib/services/command-native-relationship.d.ts +46 -0
- package/lib/services/command-native-relationship.js +103 -0
- package/lib/services/cross-dataspace-deploy.d.ts +111 -0
- package/lib/services/cross-dataspace-deploy.js +493 -0
- package/lib/services/cross-dataspace-rename.d.ts +74 -0
- package/lib/services/cross-dataspace-rename.js +1314 -0
- package/lib/services/cross-dataspace-sql.d.ts +109 -0
- package/lib/services/cross-dataspace-sql.js +1301 -0
- package/lib/services/cross-space-context.d.ts +23 -0
- package/lib/services/cross-space-context.js +36 -0
- package/lib/services/crud-plan.d.ts +137 -0
- package/lib/services/crud-plan.js +408 -0
- package/lib/services/data-space-check.d.ts +89 -0
- package/lib/services/data-space-check.js +162 -0
- package/lib/services/data-space-prefix.d.ts +77 -0
- package/lib/services/data-space-prefix.js +127 -0
- package/lib/services/data-transform-space.d.ts +31 -0
- package/lib/services/data-transform-space.js +79 -0
- package/lib/services/delete-calculated-insight.d.ts +44 -0
- package/lib/services/delete-calculated-insight.js +101 -0
- package/lib/services/delete-data-transform.d.ts +52 -0
- package/lib/services/delete-data-transform.js +222 -0
- package/lib/services/delete-dmo-field.d.ts +211 -0
- package/lib/services/delete-dmo-field.js +472 -0
- package/lib/services/delete-identity-resolution.d.ts +43 -0
- package/lib/services/delete-identity-resolution.js +295 -0
- package/lib/services/delete-segment.d.ts +42 -0
- package/lib/services/delete-segment.js +248 -0
- package/lib/services/deploy-result.d.ts +54 -0
- package/lib/services/deploy-result.js +60 -0
- package/lib/services/escaped-copy.d.ts +23 -0
- package/lib/services/escaped-copy.js +88 -0
- package/lib/services/execute-calculated-insight-deploy.d.ts +42 -0
- package/lib/services/execute-calculated-insight-deploy.js +96 -0
- package/lib/services/execute-data-transform-deploy.d.ts +56 -0
- package/lib/services/execute-data-transform-deploy.js +168 -0
- package/lib/services/execute-native-identity-resolution-deploy.d.ts +48 -0
- package/lib/services/execute-native-identity-resolution-deploy.js +360 -0
- package/lib/services/execute-segment-deploy.d.ts +45 -0
- package/lib/services/execute-segment-deploy.js +393 -0
- package/lib/services/local-file-removal.d.ts +36 -0
- package/lib/services/local-file-removal.js +103 -0
- package/lib/services/native-calculated-insight.d.ts +87 -0
- package/lib/services/native-calculated-insight.js +164 -0
- package/lib/services/native-crm-data-stream.d.ts +91 -0
- package/lib/services/native-crm-data-stream.js +272 -0
- package/lib/services/native-data-graph-context.d.ts +12 -0
- package/lib/services/native-data-graph-context.js +139 -0
- package/lib/services/native-data-graph-crd.d.ts +261 -0
- package/lib/services/native-data-graph-crd.js +866 -0
- package/lib/services/native-data-stream.d.ts +329 -0
- package/lib/services/native-data-stream.js +1830 -0
- package/lib/services/native-dlo.d.ts +163 -0
- package/lib/services/native-dlo.js +402 -0
- package/lib/services/native-dmo.d.ts +191 -0
- package/lib/services/native-dmo.js +614 -0
- package/lib/services/native-mapping.d.ts +255 -0
- package/lib/services/native-mapping.js +1226 -0
- package/lib/services/native-relationship.d.ts +132 -0
- package/lib/services/native-relationship.js +512 -0
- package/lib/services/operation-diagnostic.d.ts +83 -0
- package/lib/services/operation-diagnostic.js +272 -0
- package/lib/services/preflight-calculated-insight-deploy.d.ts +58 -0
- package/lib/services/preflight-calculated-insight-deploy.js +95 -0
- package/lib/services/preflight-data-transform-deploy.d.ts +33 -0
- package/lib/services/preflight-data-transform-deploy.js +104 -0
- package/lib/services/preflight-identity-resolution-deploy.d.ts +107 -0
- package/lib/services/preflight-identity-resolution-deploy.js +281 -0
- package/lib/services/preflight-segment-deploy.d.ts +31 -0
- package/lib/services/preflight-segment-deploy.js +109 -0
- package/lib/services/publish-calculated-insight.d.ts +40 -0
- package/lib/services/publish-calculated-insight.js +95 -0
- package/lib/services/publish-segment.d.ts +65 -0
- package/lib/services/publish-segment.js +194 -0
- package/lib/services/readback-pace.d.ts +16 -0
- package/lib/services/readback-pace.js +23 -0
- package/lib/services/retrieve-data-transform.d.ts +26 -0
- package/lib/services/retrieve-data-transform.js +65 -0
- package/lib/services/retrieve-identity-resolution.d.ts +40 -0
- package/lib/services/retrieve-identity-resolution.js +87 -0
- package/lib/services/retrieve-inventory.d.ts +32 -0
- package/lib/services/retrieve-inventory.js +151 -0
- package/lib/services/retrieve-segment.d.ts +120 -0
- package/lib/services/retrieve-segment.js +502 -0
- package/lib/services/segment-lookup.d.ts +46 -0
- package/lib/services/segment-lookup.js +108 -0
- package/lib/services/segment-members.d.ts +144 -0
- package/lib/services/segment-members.js +402 -0
- package/lib/services/select-native-retrieve.d.ts +60 -0
- package/lib/services/select-native-retrieve.js +226 -0
- package/lib/services/settle-calculated-insight.d.ts +22 -0
- package/lib/services/settle-calculated-insight.js +53 -0
- package/lib/services/sql-tokens.d.ts +58 -0
- package/lib/services/sql-tokens.js +147 -0
- package/lib/transport/api-version.d.ts +36 -0
- package/lib/transport/api-version.js +89 -0
- package/lib/transport/bound-ssot.d.ts +27 -0
- package/lib/transport/bound-ssot.js +116 -0
- package/lib/transport/calculated-insight-rest.d.ts +28 -0
- package/lib/transport/calculated-insight-rest.js +62 -0
- package/lib/transport/connect-client.d.ts +94 -32
- package/lib/transport/connect-client.js +318 -178
- package/lib/transport/connect-diagnostic.d.ts +89 -0
- package/lib/transport/connect-diagnostic.js +331 -0
- package/lib/transport/data-graph-rest.d.ts +27 -0
- package/lib/transport/data-graph-rest.js +76 -0
- package/lib/transport/data-stream-rest.d.ts +62 -0
- package/lib/transport/data-stream-rest.js +348 -0
- package/lib/transport/data-transform-rest.d.ts +25 -0
- package/lib/transport/data-transform-rest.js +100 -0
- package/lib/transport/dlo-native-rest.d.ts +22 -0
- package/lib/transport/dlo-native-rest.js +89 -0
- package/lib/transport/dlo-rest.d.ts +23 -0
- package/lib/transport/dlo-rest.js +135 -0
- package/lib/transport/dmo-native-rest.d.ts +18 -0
- package/lib/transport/dmo-native-rest.js +55 -0
- package/lib/transport/dmo-rest.d.ts +30 -0
- package/lib/transport/dmo-rest.js +163 -0
- package/lib/transport/mapping-rest.d.ts +63 -0
- package/lib/transport/mapping-rest.js +341 -0
- package/lib/transport/project-metadata.d.ts +36 -0
- package/lib/transport/project-metadata.js +118 -0
- package/lib/transport/relationship-rest.d.ts +43 -0
- package/lib/transport/relationship-rest.js +201 -0
- package/package.json +29 -6
- package/lib/artifacts/dmo-document.d.ts +0 -181
- package/lib/artifacts/dmo-document.js +0 -848
- package/lib/artifacts/dmo-update-delta.d.ts +0 -28
- package/lib/artifacts/dmo-update-delta.js +0 -86
- package/lib/artifacts/write-other-dmo.d.ts +0 -17
- package/lib/artifacts/write-other-dmo.js +0 -140
- package/lib/services/execute-dmo-create.d.ts +0 -24
- package/lib/services/execute-dmo-create.js +0 -118
- package/lib/services/execute-dmo-deploy.d.ts +0 -33
- package/lib/services/execute-dmo-deploy.js +0 -197
- package/lib/services/preflight-dmo-deploy.d.ts +0 -69
- package/lib/services/preflight-dmo-deploy.js +0 -161
- package/lib/services/retrieve-other-dmo.d.ts +0 -46
- package/lib/services/retrieve-other-dmo.js +0 -140
package/docs/git-workflow.md
CHANGED
|
@@ -1,15 +1,138 @@
|
|
|
1
1
|
# Git workflow status
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
## Git selection (`--changed-since`)
|
|
4
|
+
|
|
5
|
+
`sf data360 deploy --changed-since <ref>` selects the plugin files that changed between
|
|
6
|
+
the unique merge base of `<ref>` and HEAD, plus staged, unstaged and untracked changes.
|
|
7
|
+
It resolves the repository root even from a nested directory and is exclusive with
|
|
8
|
+
`--metadata` and `--source-dir`.
|
|
9
|
+
|
|
10
|
+
Selected files, by family (each file's content identity must equal its file name):
|
|
11
|
+
|
|
12
|
+
| Family | Canonical file |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| DLO | `data360/dlo/<Name>__dll.dlo-meta.json` |
|
|
15
|
+
| DMO | `data360/dmo/<Name>__dlm.dmo-meta.json` |
|
|
16
|
+
| Mapping | `data360/mapping/<Name>.mapping-meta.json` |
|
|
17
|
+
| Relationship | `data360/relationship/<Name>.relationship-meta.json` |
|
|
18
|
+
| Data stream | `data360/data-stream/<Name>.data-stream-meta.json` |
|
|
19
|
+
| Data transform | `data360/dataTransforms/<Name>.dataTransform.json` |
|
|
20
|
+
| Calculated insight | `data360/calculatedInsights/<Name>__cio.calculatedInsight-meta.json` and `.calculatedInsight-meta.sql` (a change to either file selects the insight) |
|
|
21
|
+
| Data graph | `data360/dataGraphs/<Name>.native-dataGraph.json` |
|
|
22
|
+
| Identity resolution | `data360/identityResolution/<Name>.identityResolution.json` |
|
|
23
|
+
| Segment | `data360/segments/<Name>.segment.json` and one `<Name>.segment.<model>.sql` per model (a change to any of them selects the segment) |
|
|
24
|
+
|
|
25
|
+
All of them live under `data360/` at the repository root. A changed file of a known
|
|
26
|
+
family in another place, an invalid document or Segment XML refuses the whole selection
|
|
27
|
+
(`INVALID_GIT_SELECTION`). Each admitted file's bytes are captured and checked again
|
|
28
|
+
before the target is read and before each write.
|
|
29
|
+
|
|
30
|
+
The selected files run in phases, like an explicit selection; each phase starts only
|
|
31
|
+
after every item of the previous one settled:
|
|
32
|
+
|
|
33
|
+
1. Data streams.
|
|
34
|
+
2. Native DLO, DMO, mapping and relationship files (the native route when a mapping or
|
|
35
|
+
relationship is in the range; DLO/DMO files beside Segment, calculated insight or
|
|
36
|
+
identity resolution files only join the ordered dependency batch instead).
|
|
37
|
+
3. Identity resolution, calculated insight and Segment files in the ordered dependency
|
|
38
|
+
batch; an identity resolution runs before a calculated insight or Segment on its
|
|
39
|
+
unified DMO, which start only once the ruleset is published.
|
|
40
|
+
4. Data graphs, after the ruleset whose unified DMO they use is published.
|
|
41
|
+
`--wait-timeout` applies to each graph and is refused when the range holds none.
|
|
42
|
+
|
|
43
|
+
A data transform changed in the range is created or updated by name in the transform
|
|
44
|
+
phase. A DLO file named like the
|
|
45
|
+
landing DLO of a stream in the range that does not exist in the target yet is refused
|
|
46
|
+
before any write (`DATA_STREAM_DLO_COLLISION`).
|
|
47
|
+
|
|
48
|
+
### Deleted files
|
|
49
|
+
|
|
50
|
+
A file present at the merge base and absent from the working tree now, with the
|
|
51
|
+
deletion committed or staged (`git rm`), is a delete candidate. An unstaged deletion of a
|
|
52
|
+
plugin file blocks (`BLOCKED_GIT_LIFECYCLE`): Git cannot see where an unstaged file moved. Its family and identity come from the merge-base content (`git show
|
|
53
|
+
<base>:<path>`), not from the file name; a relationship candidate also carries its
|
|
54
|
+
source DMO and a data transform its API name from that content. A path deleted and then
|
|
55
|
+
added again (in the index or working tree) is not a delete. A deleted file of no known
|
|
56
|
+
family in a `data360` folder, the JSON or the SQL file of a calculated insight deleted
|
|
57
|
+
without the other, or a segment JSON deleted while one of its model SQL files stays,
|
|
58
|
+
blocks the selection (`BLOCKED_GIT_LIFECYCLE`). A segment is one delete candidate when its
|
|
59
|
+
JSON and the SQL file of every model it had at the merge base are deleted; a segment SQL
|
|
60
|
+
file deleted while the JSON stays is a change of that segment (a removed model), read from
|
|
61
|
+
its current files. A file added after the merge base
|
|
62
|
+
and deleted again is ignored.
|
|
63
|
+
|
|
64
|
+
Deploy does not delete: candidates are listed in `result.selection.deletions` (family,
|
|
65
|
+
API name, path) and as `Not deleted: <family>:<name>` lines that name the matching
|
|
66
|
+
`sf data360 delete --changed-since <ref> --confirm-delete` command, and nothing is
|
|
67
|
+
written for them.
|
|
68
|
+
|
|
69
|
+
### Deleting with `sf data360 delete --changed-since`
|
|
70
|
+
|
|
71
|
+
`sf data360 delete --changed-since <ref>` takes the same Git selection and deletes the
|
|
72
|
+
components of the files deleted in the range; files changed or added in the range are
|
|
73
|
+
not part of a delete. It is exclusive with `--metadata` and refuses `--delete-dlo`
|
|
74
|
+
(`INVALID_STREAM_DELETE_SELECTION`). Execution always needs `--confirm-delete`
|
|
75
|
+
(`DESTRUCTIVE_CONFIRMATION_REQUIRED` otherwise, before any org call), even for one
|
|
76
|
+
family; `--preview` runs without it. `--confirm-delete` belongs to `--changed-since`
|
|
77
|
+
only: a delete by name with `-m` runs without it.
|
|
78
|
+
|
|
79
|
+
- The candidates run through the same phases as any delete, in reverse order: graphs,
|
|
80
|
+
then identity resolution, calculated insights and Segments (a dependent before what it
|
|
81
|
+
needs), then data transforms, then relationships, mappings, DMOs and DLOs, then data
|
|
82
|
+
streams. Each phase starts only after the previous one settled.
|
|
83
|
+
- Every family runs from its merge-base document (not from an org read by name, as a
|
|
84
|
+
`-m` delete does) with the checks of an explicit delete.
|
|
85
|
+
Right before each phase, and before each write of a source-backed family, every
|
|
86
|
+
candidate path must still be absent; a file present again blocks
|
|
87
|
+
(`BLOCKED_GIT_LIFECYCLE`). Each candidate's data space must equal the requested one
|
|
88
|
+
(`INVALID_SCOPE`).
|
|
89
|
+
- A relationship takes its source DMO from the base content; no local file is read.
|
|
90
|
+
- A data transform has no target ID in the range: its API name from the base content is
|
|
91
|
+
looked up in the complete transform list (ignoring case). No match reports `unchanged`
|
|
92
|
+
/ `not-attempted`, also when the delete is run again after the transform was deleted;
|
|
93
|
+
two or more matches delete nothing (`TRANSFORM_TARGET_NOT_RESOLVED`).
|
|
94
|
+
- A stream file deleted together with the file of its landing DLO is one stream delete
|
|
95
|
+
that also deletes that DLO; the DLO is never deleted on its own. A stream deleted
|
|
96
|
+
alone keeps its DLO.
|
|
97
|
+
- A custom DMO deleted together with its last mapping is deleted alone; Salesforce
|
|
98
|
+
removes the mapping with it and the mapping item reports `removedWith` the DMO.
|
|
99
|
+
- No local file is listed or removed: the files are already gone.
|
|
100
|
+
- A range without deleted plugin files succeeds without any org call.
|
|
101
|
+
|
|
102
|
+
`result.selection.changedSince` and `provenance.git` record the reference and the
|
|
103
|
+
resolved commits.
|
|
104
|
+
|
|
105
|
+
### What blocks
|
|
106
|
+
|
|
107
|
+
Renames, copies and merge conflicts of plugin files block the whole selection
|
|
108
|
+
(`BLOCKED_GIT_LIFECYCLE`). Rename detection is on regardless of `diff.renames`, but
|
|
109
|
+
Git-inferred renames do not prove historical intent. A new untracked plugin file
|
|
110
|
+
combined with **any tracked worktree deletion** also blocks, including an unrelated
|
|
111
|
+
deletion: Git cannot infer an inbound move to an untracked destination. A file of one
|
|
112
|
+
component deleted at one stage (for example committed) while a file of the same
|
|
113
|
+
component is added under a different path at another stage (index, working tree or
|
|
114
|
+
untracked) is a rename Git cannot pair; it blocks too, since it would delete and create
|
|
115
|
+
the same component. Stage intended changes so Git can detect renames.
|
|
116
|
+
|
|
117
|
+
A valid empty selection succeeds without target inspection, preflight or execution
|
|
118
|
+
(existing Salesforce parse-time authentication still applies). Optional
|
|
119
|
+
`provenance.git` records the repository root, requested ref and resolved
|
|
120
|
+
reference/HEAD/merge-base commits. Nonempty selections use the same preflight and
|
|
121
|
+
execution as explicit selections of the same families. Preview remains advisory.
|
|
122
|
+
|
|
123
|
+
## Repository and release
|
|
124
|
+
|
|
125
|
+
Current npm identity and local directory are `sf-plugin-data`; the repository is
|
|
126
|
+
[`JoernBerkefeld/sf-plugin-data`](https://github.com/JoernBerkefeld/sf-plugin-data).
|
|
127
|
+
The `origin` remote points to `https://github.com/JoernBerkefeld/sf-plugin-data.git`.
|
|
128
|
+
The repository/folder rename preserves history, canonical commands and the
|
|
129
|
+
existing `v0.1.0` tag at `8bcbe63`. It does not authorize a commit, push,
|
|
130
|
+
publication or further tag change. Release finalization is paused while npm
|
|
131
|
+
trusted-publisher configuration is updated for the renamed repository.
|
|
132
|
+
|
|
133
|
+
The repository implements native DMO retrieval, read-only deployment preview,
|
|
134
|
+
creation, update and exact-name deletion, with the scope and limits described in
|
|
135
|
+
the [DMO reference](types/dmo.md). Offline CI
|
|
13
136
|
builds, lints, tests and inspects the package allowlist. It does not authenticate
|
|
14
137
|
to Salesforce. No workflow deploys or provisions org resources.
|
|
15
138
|
|
|
@@ -19,8 +142,8 @@ deploy that approved commit with fresh whole-selection preflight. Preview is
|
|
|
19
142
|
advisory, not an executable saved plan or a promise of identical future actions.
|
|
20
143
|
Never expose org credentials to untrusted pull-request code.
|
|
21
144
|
|
|
22
|
-
Deployment jobs,
|
|
23
|
-
|
|
145
|
+
Deployment jobs, report files, approved-commit binding and approval-bound execution
|
|
146
|
+
remain deferred. This implements only the Git-selection portion of roadmap chunk 6. No repository, branch protection, remote or npm publisher is
|
|
24
147
|
configured automatically. Release publication requires separate explicit approval
|
|
25
148
|
and verified hosted trusted-publisher configuration. Hosted publication uses npm
|
|
26
149
|
11.5.1 and an exact `name@version` registry check: an existing matching version
|