@saptools/service-flow 0.1.43 β 0.1.45
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 +14 -1
- package/README.md +9 -1
- package/dist/{chunk-KHQK7CFH.js β chunk-BXSCE5CR.js} +1978 -1510
- package/dist/chunk-BXSCE5CR.js.map +1 -0
- package/dist/cli.js +471 -476
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/doctor.ts +435 -0
- package/src/cli.ts +18 -453
- package/src/index.ts +2 -0
- package/src/indexer/repository-indexer.ts +52 -26
- package/src/indexer/workspace-indexer.ts +17 -5
- package/src/linker/cross-repo-linker.ts +45 -3
- package/src/linker/odata-path-normalizer.ts +4 -1
- package/src/parsers/imported-wrapper-parser.ts +262 -0
- package/src/parsers/outbound-call-parser.ts +17 -5
- package/src/parsers/service-binding-parser-helpers.ts +160 -0
- package/src/parsers/service-binding-parser.ts +57 -242
- package/src/parsers/symbol-parser.ts +25 -10
- package/src/trace/evidence.ts +210 -0
- package/src/trace/implementation-hints.ts +151 -0
- package/src/trace/trace-engine.ts +75 -117
- package/src/types.ts +8 -0
- package/dist/chunk-KHQK7CFH.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.45
|
|
4
|
+
|
|
5
|
+
- Added repeatable scoped implementation hints with explicit selection and mismatch evidence while preserving conservative automatic and legacy repository selection.
|
|
6
|
+
- Propagated proven CAP clients and literal or runtime wrapper paths across relative imports, including object, array, returned-client, and transaction contexts.
|
|
7
|
+
- Kept OData invocation arguments, routing placeholders, and compact candidate scores distinct while preserving terminal entity paths.
|
|
8
|
+
- Added compact strict-doctor summaries with actionable detail mode and expanded publication atomicity recovery coverage.
|
|
9
|
+
|
|
10
|
+
## 0.1.44
|
|
11
|
+
|
|
12
|
+
- Separated trace-time effective resolution evidence from persisted graph resolution, including runtime substitution details and missing `--var` suggestions.
|
|
13
|
+
- Added duplicate package-name implementation ambiguity evidence plus trace-time implementation repo hints for guided traversal.
|
|
14
|
+
- Aggregated strict doctor implementation candidate noise into actionable categories with capped examples.
|
|
15
|
+
- Tightened contextual binding, nested wrapper, OData invocation, and incremental publication atomicity regression coverage.
|
|
16
|
+
|
|
3
17
|
## 0.1.43
|
|
4
18
|
|
|
5
19
|
- Reconciled inherited CDS operation search rows from the exact effective-operation set during extension materialization.
|
|
@@ -288,4 +302,3 @@
|
|
|
288
302
|
## 0.1.0
|
|
289
303
|
|
|
290
304
|
- Initial `@saptools/service-flow` CLI package for indexing and tracing SAP CAP service flows.
|
|
291
|
-
|
package/README.md
CHANGED
|
@@ -169,6 +169,7 @@ service-flow trace --workspace /path/to/workspace --service /FacadeService --pat
|
|
|
169
169
|
service-flow trace --workspace /path/to/workspace --handler EntryHandler --depth 1 --format json
|
|
170
170
|
service-flow trace --workspace /path/to/workspace --service /FacadeService --path /doWork --depth 2
|
|
171
171
|
service-flow trace --workspace /path/to/workspace --repo facade-service --operation doWork --var objectCode=xx --var objectType=Thing
|
|
172
|
+
service-flow trace --workspace /path/to/workspace --service /FacadeService --path /doWork --implementation-hint service=/TargetService,operation=/runTask,repo=target-helper
|
|
172
173
|
```
|
|
173
174
|
|
|
174
175
|
| Flag | Description |
|
|
@@ -184,6 +185,8 @@ service-flow trace --workspace /path/to/workspace --repo facade-service --operat
|
|
|
184
185
|
| `--include-external` | Include external HTTP/destination edges in traversal output |
|
|
185
186
|
| `--include-db` | Include local DB query edges in traversal output |
|
|
186
187
|
| `--include-async` | Include async publish/subscribe edges in traversal output |
|
|
188
|
+
| `--implementation-repo <name>` | Select one implementation repository for every ambiguous hop; retained for backward compatibility |
|
|
189
|
+
| `--implementation-hint <scope>` | Select one implementation for a matching hop; repeatable fields are `service`, `operation`, `package`, `repository`, `family`, and required `repo` |
|
|
187
190
|
| `--var <key=value>` | Apply runtime values to dynamic destinations/service paths; repeatable |
|
|
188
191
|
|
|
189
192
|
### πΊοΈ `service-flow graph`
|
|
@@ -203,6 +206,9 @@ service-flow graph --workspace /path/to/workspace --repo facade-service --operat
|
|
|
203
206
|
| `--service <path>` | Filter/start by service path |
|
|
204
207
|
| `--path <operationPath>` | Filter/start by operation path |
|
|
205
208
|
| `--format <format>` | `mermaid` or `json`; defaults to `mermaid` |
|
|
209
|
+
| `--implementation-repo <name>` | Select one implementation repository for every ambiguous hop |
|
|
210
|
+
| `--implementation-hint <scope>` | Apply a repeatable scoped implementation selection |
|
|
211
|
+
| `--var <key=value>` | Apply repeatable runtime substitutions |
|
|
206
212
|
|
|
207
213
|
### π `service-flow list ...`
|
|
208
214
|
|
|
@@ -276,8 +282,11 @@ Print stored diagnostics. Default output suppresses high-noise entity-only servi
|
|
|
276
282
|
```bash
|
|
277
283
|
service-flow doctor --workspace /path/to/workspace
|
|
278
284
|
service-flow doctor --workspace /path/to/workspace --strict
|
|
285
|
+
service-flow doctor --workspace /path/to/workspace --strict --detail
|
|
279
286
|
```
|
|
280
287
|
|
|
288
|
+
Strict output keeps stable category, count, severity, and capped example fields. Use `--detail` to include full `expandedExamples` for implementation candidate, parameter metadata, and dynamic wrapper categories.
|
|
289
|
+
|
|
281
290
|
### π§Ή `service-flow clean`
|
|
282
291
|
|
|
283
292
|
Remove generated service-flow state.
|
|
@@ -508,4 +517,3 @@ Graph taxonomy now keeps CAP operation candidates separate from external HTTP ta
|
|
|
508
517
|
### Runtime and parser hardening
|
|
509
518
|
|
|
510
519
|
`service-flow` treats URL and destination templates with substitutions as dynamic external targets, preserves operation-path template evidence without promoting unrelated variables, and parses CDS `@(path: ...)` annotations from original source text. Service extension declarations using both `extend Name` and `extend service Name` are recognized for routing provenance.
|
|
511
|
-
|