@saptools/service-flow 0.1.69 → 0.1.70

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 (120) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +2 -2
  3. package/TECHNICAL-NOTE.md +4 -0
  4. package/dist/{chunk-3N3B5KHV.js → chunk-GSLFY6J2.js} +78 -78
  5. package/dist/chunk-GSLFY6J2.js.map +1 -0
  6. package/dist/cli.js +19 -19
  7. package/dist/cli.js.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/package.json +1 -1
  10. package/src/cli/{002-doctor-lifecycle.ts → doctor-lifecycle.ts} +1 -1
  11. package/src/cli/{001-doctor-projection.ts → doctor-projection.ts} +1 -1
  12. package/src/cli/doctor.ts +5 -5
  13. package/src/cli.ts +5 -5
  14. package/src/db/{009-binding-fact-semantics.ts → binding-fact-semantics.ts} +2 -2
  15. package/src/db/{000-call-fact-repository.ts → call-fact-repository.ts} +6 -6
  16. package/src/db/{003-current-fact-semantics.ts → current-fact-semantics.ts} +4 -4
  17. package/src/db/{001-fact-lifecycle.ts → fact-lifecycle.ts} +3 -3
  18. package/src/db/{007-package-fact-semantics.ts → package-fact-semantics.ts} +6 -6
  19. package/src/db/{010-package-symbol-surface-semantics.ts → package-symbol-surface-semantics.ts} +2 -2
  20. package/src/db/{004-package-target-invalidation.ts → package-target-invalidation.ts} +1 -1
  21. package/src/db/{008-relative-fact-semantics.ts → relative-fact-semantics.ts} +3 -3
  22. package/src/db/{006-relative-symbol-resolution.ts → relative-symbol-resolution.ts} +1 -1
  23. package/src/db/repositories.ts +3 -3
  24. package/src/db/{011-symbol-call-semantics.ts → symbol-call-semantics.ts} +1 -1
  25. package/src/index.ts +3 -3
  26. package/src/indexer/repository-indexer.ts +5 -5
  27. package/src/indexer/workspace-indexer.ts +3 -3
  28. package/src/linker/{007-call-edge-insertion.ts → call-edge-insertion.ts} +2 -2
  29. package/src/linker/{002-call-evidence.ts → call-evidence.ts} +2 -2
  30. package/src/linker/cross-repo-linker.ts +5 -5
  31. package/src/linker/dynamic-edge-resolver.ts +1 -1
  32. package/src/linker/{004-event-subscription-handler-linker.ts → event-subscription-handler-linker.ts} +1 -1
  33. package/src/linker/external-http-target.ts +1 -1
  34. package/src/linker/helper-package-linker.ts +1 -1
  35. package/src/linker/{000-implementation-candidates.ts → implementation-candidates.ts} +1 -1
  36. package/src/linker/{001-implementation-evidence-projection.ts → implementation-evidence-projection.ts} +1 -1
  37. package/src/linker/odata-path-normalizer.ts +1 -1
  38. package/src/linker/{005-odata-path-structure.ts → odata-path-structure.ts} +1 -1
  39. package/src/linker/{003-package-import-symbol-resolver.ts → package-import-symbol-resolver.ts} +3 -3
  40. package/src/linker/service-resolver.ts +2 -2
  41. package/src/output/{001-compact-json-output.ts → compact-json-output.ts} +1 -1
  42. package/src/parsers/{006-binding-identity.ts → binding-identity.ts} +3 -3
  43. package/src/parsers/{011-binding-lexical-scope.ts → binding-lexical-scope.ts} +1 -1
  44. package/src/parsers/{021-binding-visibility.ts → binding-visibility.ts} +1 -1
  45. package/src/parsers/{005-event-subscription-facts.ts → event-subscription-facts.ts} +2 -2
  46. package/src/parsers/{016-local-symbol-reference.ts → local-symbol-reference.ts} +2 -2
  47. package/src/parsers/operation-path-analysis.ts +1 -1
  48. package/src/parsers/{023-outbound-call-classifier.ts → outbound-call-classifier.ts} +3 -3
  49. package/src/parsers/outbound-call-parser.ts +2 -2
  50. package/src/parsers/{022-outbound-expression-analysis.ts → outbound-expression-analysis.ts} +2 -2
  51. package/src/parsers/{018-package-commonjs-syntax.ts → package-commonjs-syntax.ts} +1 -1
  52. package/src/parsers/{012-package-fact-contract.ts → package-fact-contract.ts} +3 -3
  53. package/src/parsers/{010-package-public-surface-analysis.ts → package-public-surface-analysis.ts} +2 -2
  54. package/src/parsers/{003-package-public-surface.ts → package-public-surface.ts} +3 -3
  55. package/src/parsers/{008-package-surface-publication.ts → package-surface-publication.ts} +1 -1
  56. package/src/parsers/{001-query-entity-resolution.ts → query-entity-resolution.ts} +1 -1
  57. package/src/parsers/{015-service-binding-collector.ts → service-binding-collector.ts} +3 -3
  58. package/src/parsers/{014-service-binding-helper-flow.ts → service-binding-helper-flow.ts} +2 -2
  59. package/src/parsers/service-binding-parser-helpers.ts +1 -1
  60. package/src/parsers/service-binding-parser.ts +2 -2
  61. package/src/parsers/{007-source-fact-reconciliation.ts → source-fact-reconciliation.ts} +3 -3
  62. package/src/parsers/{020-stable-local-value.ts → stable-local-value.ts} +2 -2
  63. package/src/parsers/{009-symbol-call-facts.ts → symbol-call-facts.ts} +3 -3
  64. package/src/parsers/{017-symbol-derived-contexts.ts → symbol-derived-contexts.ts} +2 -2
  65. package/src/parsers/symbol-parser.ts +6 -6
  66. package/src/trace/{021-compact-decision-normalization.ts → compact-decision-normalization.ts} +2 -2
  67. package/src/trace/{020-compact-field-projection.ts → compact-field-projection.ts} +3 -3
  68. package/src/trace/{024-compact-observation-decision.ts → compact-observation-decision.ts} +3 -3
  69. package/src/trace/{016-compact-projector.ts → compact-projector.ts} +4 -4
  70. package/src/trace/{018-compact-trace.ts → compact-trace.ts} +3 -3
  71. package/src/trace/{006-contextual-projection.ts → contextual-projection.ts} +1 -1
  72. package/src/trace/{008-contextual-runtime-state.ts → contextual-runtime-state.ts} +1 -1
  73. package/src/trace/{001-dynamic-identity.ts → dynamic-identity.ts} +2 -2
  74. package/src/trace/{003-dynamic-references.ts → dynamic-references.ts} +2 -2
  75. package/src/trace/dynamic-targets.ts +6 -6
  76. package/src/trace/{030-event-runtime-resolution.ts → event-runtime-resolution.ts} +2 -2
  77. package/src/trace/{011-event-subscriber-traversal.ts → event-subscriber-traversal.ts} +1 -1
  78. package/src/trace/evidence.ts +2 -2
  79. package/src/trace/implementation-hints.ts +2 -2
  80. package/src/trace/{005-implementation-selection.ts → implementation-selection.ts} +2 -2
  81. package/src/trace/{031-local-call-expansion.ts → local-call-expansion.ts} +3 -3
  82. package/src/trace/{009-selected-handler-provenance.ts → selected-handler-provenance.ts} +1 -1
  83. package/src/trace/selectors.ts +1 -1
  84. package/src/trace/{017-trace-context.ts → trace-context.ts} +2 -2
  85. package/src/trace/{015-trace-edge-recorder.ts → trace-edge-recorder.ts} +2 -2
  86. package/src/trace/{019-trace-edge-semantics.ts → trace-edge-semantics.ts} +3 -3
  87. package/src/trace/trace-engine.ts +10 -10
  88. package/src/trace/{022-trace-fact-preflight.ts → trace-fact-preflight.ts} +2 -2
  89. package/src/trace/{025-trace-implementation-scope.ts → trace-implementation-scope.ts} +1 -1
  90. package/src/trace/{028-trace-operation-execution.ts → trace-operation-execution.ts} +10 -10
  91. package/src/trace/{013-trace-root-scopes.ts → trace-root-scopes.ts} +3 -3
  92. package/src/trace/{027-trace-scope-execution.ts → trace-scope-execution.ts} +14 -14
  93. package/src/trace/{029-trace-start-implementation.ts → trace-start-implementation.ts} +7 -7
  94. package/src/trace/{026-trace-start-scope.ts → trace-start-scope.ts} +5 -5
  95. package/src/trace/{010-traversal-scope.ts → traversal-scope.ts} +1 -1
  96. package/dist/chunk-3N3B5KHV.js.map +0 -1
  97. /package/src/cli/{000-clean.ts → clean.ts} +0 -0
  98. /package/src/cli/{003-doctor-package-resolution.ts → doctor-package-resolution.ts} +0 -0
  99. /package/src/cli/{001-index-summary.ts → index-summary.ts} +0 -0
  100. /package/src/db/{014-binding-helper-provenance.ts → binding-helper-provenance.ts} +0 -0
  101. /package/src/db/{012-binding-reference-proof.ts → binding-reference-proof.ts} +0 -0
  102. /package/src/db/{002-fact-json-inventory.ts → fact-json-inventory.ts} +0 -0
  103. /package/src/db/{013-index-publication-failure.ts → index-publication-failure.ts} +0 -0
  104. /package/src/db/{005-schema-structure.ts → schema-structure.ts} +0 -0
  105. /package/src/linker/{006-event-template-link.ts → event-template-link.ts} +0 -0
  106. /package/src/output/{000-stdout-policy.ts → stdout-policy.ts} +0 -0
  107. /package/src/parsers/{019-binding-assignment-targets.ts → binding-assignment-targets.ts} +0 -0
  108. /package/src/parsers/{000-direct-query-execution.ts → direct-query-execution.ts} +0 -0
  109. /package/src/parsers/{013-executable-body-eligibility.ts → executable-body-eligibility.ts} +0 -0
  110. /package/src/parsers/{004-fact-identity.ts → fact-identity.ts} +0 -0
  111. /package/src/parsers/{002-symbol-import-bindings.ts → symbol-import-bindings.ts} +0 -0
  112. /package/src/trace/{014-compact-contract.ts → compact-contract.ts} +0 -0
  113. /package/src/trace/{004-dynamic-candidate-sources.ts → dynamic-candidate-sources.ts} +0 -0
  114. /package/src/trace/{000-dynamic-target-types.ts → dynamic-target-types.ts} +0 -0
  115. /package/src/trace/{007-implementation-start-diagnostic.ts → implementation-start-diagnostic.ts} +0 -0
  116. /package/src/trace/{023-nested-event-scopes.ts → nested-event-scopes.ts} +0 -0
  117. /package/src/trace/{002-trace-diagnostics.ts → trace-diagnostics.ts} +0 -0
  118. /package/src/trace/{012-trace-graph-lookups.ts → trace-graph-lookups.ts} +0 -0
  119. /package/src/utils/{000-bounded-projection.ts → bounded-projection.ts} +0 -0
  120. /package/src/utils/{001-placeholders.ts → placeholders.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import type { Db } from '../db/connection.js';
2
- import { currentFactLifecycleDiagnostic } from '../db/001-fact-lifecycle.js';
3
- import { resolveTraversalWorkspaceId } from './010-traversal-scope.js';
2
+ import { currentFactLifecycleDiagnostic } from '../db/fact-lifecycle.js';
3
+ import { resolveTraversalWorkspaceId } from './traversal-scope.js';
4
4
 
5
5
  function workspaceScopeIsAmbiguous(db: Db): boolean {
6
6
  const rows = db.prepare(`SELECT DISTINCT workspace_id workspaceId
@@ -1,6 +1,6 @@
1
1
  import type { Db } from '../db/connection.js';
2
2
  import type { ImplementationHint } from '../types.js';
3
- import type { TraceGraphEdgeRow } from './012-trace-graph-lookups.js';
3
+ import type { TraceGraphEdgeRow } from './trace-graph-lookups.js';
4
4
 
5
5
  export interface ImplementationHintOptions {
6
6
  implementationRepo?: string;
@@ -1,34 +1,34 @@
1
1
  import type { Db } from '../db/connection.js';
2
2
  import type { TraceEdge } from '../types.js';
3
3
  import { implementationHintDiagnostic } from './implementation-hints.js';
4
- import { contextualImplementationSelection } from './005-implementation-selection.js';
5
- import type { ContextBinding } from './008-contextual-runtime-state.js';
4
+ import { contextualImplementationSelection } from './implementation-selection.js';
5
+ import type { ContextBinding } from './contextual-runtime-state.js';
6
6
  import {
7
7
  handlerMethodNode,
8
8
  withSelectedHandlerProvenance,
9
9
  type SelectedHandlerEvidence,
10
- } from './009-selected-handler-provenance.js';
11
- import type { TraversalScopeState } from './010-traversal-scope.js';
12
- import type { TraceGraphEdgeRow } from './012-trace-graph-lookups.js';
10
+ } from './selected-handler-provenance.js';
11
+ import type { TraversalScopeState } from './traversal-scope.js';
12
+ import type { TraceGraphEdgeRow } from './trace-graph-lookups.js';
13
13
  import {
14
14
  enqueueCausalScope,
15
15
  type TraceQueueScope,
16
- } from './013-trace-root-scopes.js';
17
- import { parseTraceEvidence } from './017-trace-context.js';
16
+ } from './trace-root-scopes.js';
17
+ import { parseTraceEvidence } from './trace-context.js';
18
18
  import {
19
19
  recordCycleObservation,
20
20
  recordImplementationObservation,
21
- } from './019-trace-edge-semantics.js';
21
+ } from './trace-edge-semantics.js';
22
22
  import {
23
23
  handlerFilesForOperation,
24
24
  handlerScope,
25
25
  implementationScope,
26
- } from './025-trace-implementation-scope.js';
26
+ } from './trace-implementation-scope.js';
27
27
  import type {
28
28
  CallRow,
29
29
  EffectiveOutbound,
30
30
  TraceExecutionRuntime,
31
- } from './027-trace-scope-execution.js';
31
+ } from './trace-scope-execution.js';
32
32
 
33
33
  interface OperationSelection {
34
34
  implementation: ReturnType<typeof implementationScope>;
@@ -1,11 +1,11 @@
1
1
  import type { Db } from '../db/connection.js';
2
- import { currentFactLifecycleDiagnostic } from '../db/001-fact-lifecycle.js';
3
- import type { ContextBinding } from './008-contextual-runtime-state.js';
2
+ import { currentFactLifecycleDiagnostic } from '../db/fact-lifecycle.js';
3
+ import type { ContextBinding } from './contextual-runtime-state.js';
4
4
  import {
5
5
  resolveTraversalWorkspaceId,
6
6
  type TraversalScopeScheduler,
7
7
  type TraversalScopeState,
8
- } from './010-traversal-scope.js';
8
+ } from './traversal-scope.js';
9
9
 
10
10
  export interface TraceQueueScope {
11
11
  repoId?: number;
@@ -12,32 +12,32 @@ import {
12
12
  type ContextBinding,
13
13
  type ContextualGraphRow,
14
14
  type ContextualRuntimeResolution,
15
- } from './008-contextual-runtime-state.js';
15
+ } from './contextual-runtime-state.js';
16
16
  import {
17
17
  TraversalScopeScheduler,
18
18
  type TraversalScopeState,
19
- } from './010-traversal-scope.js';
20
- import type { PlannedEventSubscriberTransition } from './011-event-subscriber-traversal.js';
19
+ } from './traversal-scope.js';
20
+ import type { PlannedEventSubscriberTransition } from './event-subscriber-traversal.js';
21
21
  import {
22
22
  graphForCalls,
23
23
  operationNode,
24
24
  symbolNode,
25
25
  type TraceGraphEdgeRow,
26
- } from './012-trace-graph-lookups.js';
26
+ } from './trace-graph-lookups.js';
27
27
  import {
28
28
  enqueueCausalScope,
29
29
  nextPendingRoot,
30
30
  type PendingTraceRootScope,
31
31
  type TraceQueueScope,
32
- } from './013-trace-root-scopes.js';
33
- import type { CompactSemanticEndpoint } from './014-compact-contract.js';
34
- import { TraceEdgeRecorder } from './015-trace-edge-recorder.js';
32
+ } from './trace-root-scopes.js';
33
+ import type { CompactSemanticEndpoint } from './compact-contract.js';
34
+ import { TraceEdgeRecorder } from './trace-edge-recorder.js';
35
35
  import {
36
36
  knownBindingsForCalls,
37
37
  knownBindingsForScope,
38
38
  parseTraceEvidence,
39
39
  receiverFromTraceEvidence,
40
- } from './017-trace-context.js';
40
+ } from './trace-context.js';
41
41
  import {
42
42
  recordCycleObservation,
43
43
  recordDynamicBranchObservation,
@@ -45,12 +45,12 @@ import {
45
45
  recordEventCycleObservation,
46
46
  recordLocalCallObservation,
47
47
  recordOutboundObservation,
48
- } from './019-trace-edge-semantics.js';
49
- import { outboundScopeSymbolIds } from './023-nested-event-scopes.js';
50
- import type { ImplementationHintOptions } from './025-trace-implementation-scope.js';
51
- import { processOperationTarget } from './028-trace-operation-execution.js';
52
- import { runtimeEventResolution, runtimeEventSubscriberPlans } from './030-event-runtime-resolution.js';
53
- import { planLocalCallExpansion } from './031-local-call-expansion.js';
48
+ } from './trace-edge-semantics.js';
49
+ import { outboundScopeSymbolIds } from './nested-event-scopes.js';
50
+ import type { ImplementationHintOptions } from './trace-implementation-scope.js';
51
+ import { processOperationTarget } from './trace-operation-execution.js';
52
+ import { runtimeEventResolution, runtimeEventSubscriberPlans } from './event-runtime-resolution.js';
53
+ import { planLocalCallExpansion } from './local-call-expansion.js';
54
54
 
55
55
  export interface CallRow extends Record<string, unknown> {
56
56
  id: number;
@@ -1,22 +1,22 @@
1
1
  import type { Db } from '../db/connection.js';
2
2
  import type { TraceEdge } from '../types.js';
3
- import { hintedImplementationSelection } from './005-implementation-selection.js';
3
+ import { hintedImplementationSelection } from './implementation-selection.js';
4
4
  import {
5
5
  handlerMethodNode,
6
6
  withSelectedHandlerProvenance,
7
7
  type SelectedHandlerEvidence,
8
- } from './009-selected-handler-provenance.js';
8
+ } from './selected-handler-provenance.js';
9
9
  import {
10
10
  operationNode,
11
11
  type TraceGraphEdgeRow,
12
- } from './012-trace-graph-lookups.js';
13
- import { parseTraceEvidence } from './017-trace-context.js';
14
- import { recordImplementationObservation } from './019-trace-edge-semantics.js';
12
+ } from './trace-graph-lookups.js';
13
+ import { parseTraceEvidence } from './trace-context.js';
14
+ import { recordImplementationObservation } from './trace-edge-semantics.js';
15
15
  import {
16
16
  handlerScope,
17
17
  implementationScope,
18
- } from './025-trace-implementation-scope.js';
19
- import type { TraceExecutionRuntime } from './027-trace-scope-execution.js';
18
+ } from './trace-implementation-scope.js';
19
+ import type { TraceExecutionRuntime } from './trace-scope-execution.js';
20
20
 
21
21
  interface StartImplementationSelection {
22
22
  edge: TraceGraphEdgeRow;
@@ -1,15 +1,15 @@
1
1
  import type { Db } from '../db/connection.js';
2
2
  import type { TraceStart } from '../types.js';
3
3
  import { implementationHintDiagnostic } from './implementation-hints.js';
4
- import { hintedImplementationSelection } from './005-implementation-selection.js';
5
- import { implementationStartDiagnostic } from './007-implementation-start-diagnostic.js';
6
- import { parseTraceEvidence } from './017-trace-context.js';
7
- import { shouldDeferTraceStartSelection } from './022-trace-fact-preflight.js';
4
+ import { hintedImplementationSelection } from './implementation-selection.js';
5
+ import { implementationStartDiagnostic } from './implementation-start-diagnostic.js';
6
+ import { parseTraceEvidence } from './trace-context.js';
7
+ import { shouldDeferTraceStartSelection } from './trace-fact-preflight.js';
8
8
  import {
9
9
  handlerScope,
10
10
  implementationScope,
11
11
  type ImplementationHintOptions,
12
- } from './025-trace-implementation-scope.js';
12
+ } from './trace-implementation-scope.js';
13
13
  import {
14
14
  ambiguousStartDiagnostic,
15
15
  selectorRepoAmbiguousDiagnostic,
@@ -1,6 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import type { Db } from '../db/connection.js';
3
- import type { ContextBinding } from './008-contextual-runtime-state.js';
3
+ import type { ContextBinding } from './contextual-runtime-state.js';
4
4
 
5
5
  export interface TraversalScopeIdentity {
6
6
  workspaceId?: number;