@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.
- package/CHANGELOG.md +4 -0
- package/README.md +2 -2
- package/TECHNICAL-NOTE.md +4 -0
- package/dist/{chunk-3N3B5KHV.js → chunk-GSLFY6J2.js} +78 -78
- package/dist/chunk-GSLFY6J2.js.map +1 -0
- package/dist/cli.js +19 -19
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/cli/{002-doctor-lifecycle.ts → doctor-lifecycle.ts} +1 -1
- package/src/cli/{001-doctor-projection.ts → doctor-projection.ts} +1 -1
- package/src/cli/doctor.ts +5 -5
- package/src/cli.ts +5 -5
- package/src/db/{009-binding-fact-semantics.ts → binding-fact-semantics.ts} +2 -2
- package/src/db/{000-call-fact-repository.ts → call-fact-repository.ts} +6 -6
- package/src/db/{003-current-fact-semantics.ts → current-fact-semantics.ts} +4 -4
- package/src/db/{001-fact-lifecycle.ts → fact-lifecycle.ts} +3 -3
- package/src/db/{007-package-fact-semantics.ts → package-fact-semantics.ts} +6 -6
- package/src/db/{010-package-symbol-surface-semantics.ts → package-symbol-surface-semantics.ts} +2 -2
- package/src/db/{004-package-target-invalidation.ts → package-target-invalidation.ts} +1 -1
- package/src/db/{008-relative-fact-semantics.ts → relative-fact-semantics.ts} +3 -3
- package/src/db/{006-relative-symbol-resolution.ts → relative-symbol-resolution.ts} +1 -1
- package/src/db/repositories.ts +3 -3
- package/src/db/{011-symbol-call-semantics.ts → symbol-call-semantics.ts} +1 -1
- package/src/index.ts +3 -3
- package/src/indexer/repository-indexer.ts +5 -5
- package/src/indexer/workspace-indexer.ts +3 -3
- package/src/linker/{007-call-edge-insertion.ts → call-edge-insertion.ts} +2 -2
- package/src/linker/{002-call-evidence.ts → call-evidence.ts} +2 -2
- package/src/linker/cross-repo-linker.ts +5 -5
- package/src/linker/dynamic-edge-resolver.ts +1 -1
- package/src/linker/{004-event-subscription-handler-linker.ts → event-subscription-handler-linker.ts} +1 -1
- package/src/linker/external-http-target.ts +1 -1
- package/src/linker/helper-package-linker.ts +1 -1
- package/src/linker/{000-implementation-candidates.ts → implementation-candidates.ts} +1 -1
- package/src/linker/{001-implementation-evidence-projection.ts → implementation-evidence-projection.ts} +1 -1
- package/src/linker/odata-path-normalizer.ts +1 -1
- package/src/linker/{005-odata-path-structure.ts → odata-path-structure.ts} +1 -1
- package/src/linker/{003-package-import-symbol-resolver.ts → package-import-symbol-resolver.ts} +3 -3
- package/src/linker/service-resolver.ts +2 -2
- package/src/output/{001-compact-json-output.ts → compact-json-output.ts} +1 -1
- package/src/parsers/{006-binding-identity.ts → binding-identity.ts} +3 -3
- package/src/parsers/{011-binding-lexical-scope.ts → binding-lexical-scope.ts} +1 -1
- package/src/parsers/{021-binding-visibility.ts → binding-visibility.ts} +1 -1
- package/src/parsers/{005-event-subscription-facts.ts → event-subscription-facts.ts} +2 -2
- package/src/parsers/{016-local-symbol-reference.ts → local-symbol-reference.ts} +2 -2
- package/src/parsers/operation-path-analysis.ts +1 -1
- package/src/parsers/{023-outbound-call-classifier.ts → outbound-call-classifier.ts} +3 -3
- package/src/parsers/outbound-call-parser.ts +2 -2
- package/src/parsers/{022-outbound-expression-analysis.ts → outbound-expression-analysis.ts} +2 -2
- package/src/parsers/{018-package-commonjs-syntax.ts → package-commonjs-syntax.ts} +1 -1
- package/src/parsers/{012-package-fact-contract.ts → package-fact-contract.ts} +3 -3
- package/src/parsers/{010-package-public-surface-analysis.ts → package-public-surface-analysis.ts} +2 -2
- package/src/parsers/{003-package-public-surface.ts → package-public-surface.ts} +3 -3
- package/src/parsers/{008-package-surface-publication.ts → package-surface-publication.ts} +1 -1
- package/src/parsers/{001-query-entity-resolution.ts → query-entity-resolution.ts} +1 -1
- package/src/parsers/{015-service-binding-collector.ts → service-binding-collector.ts} +3 -3
- package/src/parsers/{014-service-binding-helper-flow.ts → service-binding-helper-flow.ts} +2 -2
- package/src/parsers/service-binding-parser-helpers.ts +1 -1
- package/src/parsers/service-binding-parser.ts +2 -2
- package/src/parsers/{007-source-fact-reconciliation.ts → source-fact-reconciliation.ts} +3 -3
- package/src/parsers/{020-stable-local-value.ts → stable-local-value.ts} +2 -2
- package/src/parsers/{009-symbol-call-facts.ts → symbol-call-facts.ts} +3 -3
- package/src/parsers/{017-symbol-derived-contexts.ts → symbol-derived-contexts.ts} +2 -2
- package/src/parsers/symbol-parser.ts +6 -6
- package/src/trace/{021-compact-decision-normalization.ts → compact-decision-normalization.ts} +2 -2
- package/src/trace/{020-compact-field-projection.ts → compact-field-projection.ts} +3 -3
- package/src/trace/{024-compact-observation-decision.ts → compact-observation-decision.ts} +3 -3
- package/src/trace/{016-compact-projector.ts → compact-projector.ts} +4 -4
- package/src/trace/{018-compact-trace.ts → compact-trace.ts} +3 -3
- package/src/trace/{006-contextual-projection.ts → contextual-projection.ts} +1 -1
- package/src/trace/{008-contextual-runtime-state.ts → contextual-runtime-state.ts} +1 -1
- package/src/trace/{001-dynamic-identity.ts → dynamic-identity.ts} +2 -2
- package/src/trace/{003-dynamic-references.ts → dynamic-references.ts} +2 -2
- package/src/trace/dynamic-targets.ts +6 -6
- package/src/trace/{030-event-runtime-resolution.ts → event-runtime-resolution.ts} +2 -2
- package/src/trace/{011-event-subscriber-traversal.ts → event-subscriber-traversal.ts} +1 -1
- package/src/trace/evidence.ts +2 -2
- package/src/trace/implementation-hints.ts +2 -2
- package/src/trace/{005-implementation-selection.ts → implementation-selection.ts} +2 -2
- package/src/trace/{031-local-call-expansion.ts → local-call-expansion.ts} +3 -3
- package/src/trace/{009-selected-handler-provenance.ts → selected-handler-provenance.ts} +1 -1
- package/src/trace/selectors.ts +1 -1
- package/src/trace/{017-trace-context.ts → trace-context.ts} +2 -2
- package/src/trace/{015-trace-edge-recorder.ts → trace-edge-recorder.ts} +2 -2
- package/src/trace/{019-trace-edge-semantics.ts → trace-edge-semantics.ts} +3 -3
- package/src/trace/trace-engine.ts +10 -10
- package/src/trace/{022-trace-fact-preflight.ts → trace-fact-preflight.ts} +2 -2
- package/src/trace/{025-trace-implementation-scope.ts → trace-implementation-scope.ts} +1 -1
- package/src/trace/{028-trace-operation-execution.ts → trace-operation-execution.ts} +10 -10
- package/src/trace/{013-trace-root-scopes.ts → trace-root-scopes.ts} +3 -3
- package/src/trace/{027-trace-scope-execution.ts → trace-scope-execution.ts} +14 -14
- package/src/trace/{029-trace-start-implementation.ts → trace-start-implementation.ts} +7 -7
- package/src/trace/{026-trace-start-scope.ts → trace-start-scope.ts} +5 -5
- package/src/trace/{010-traversal-scope.ts → traversal-scope.ts} +1 -1
- package/dist/chunk-3N3B5KHV.js.map +0 -1
- /package/src/cli/{000-clean.ts → clean.ts} +0 -0
- /package/src/cli/{003-doctor-package-resolution.ts → doctor-package-resolution.ts} +0 -0
- /package/src/cli/{001-index-summary.ts → index-summary.ts} +0 -0
- /package/src/db/{014-binding-helper-provenance.ts → binding-helper-provenance.ts} +0 -0
- /package/src/db/{012-binding-reference-proof.ts → binding-reference-proof.ts} +0 -0
- /package/src/db/{002-fact-json-inventory.ts → fact-json-inventory.ts} +0 -0
- /package/src/db/{013-index-publication-failure.ts → index-publication-failure.ts} +0 -0
- /package/src/db/{005-schema-structure.ts → schema-structure.ts} +0 -0
- /package/src/linker/{006-event-template-link.ts → event-template-link.ts} +0 -0
- /package/src/output/{000-stdout-policy.ts → stdout-policy.ts} +0 -0
- /package/src/parsers/{019-binding-assignment-targets.ts → binding-assignment-targets.ts} +0 -0
- /package/src/parsers/{000-direct-query-execution.ts → direct-query-execution.ts} +0 -0
- /package/src/parsers/{013-executable-body-eligibility.ts → executable-body-eligibility.ts} +0 -0
- /package/src/parsers/{004-fact-identity.ts → fact-identity.ts} +0 -0
- /package/src/parsers/{002-symbol-import-bindings.ts → symbol-import-bindings.ts} +0 -0
- /package/src/trace/{014-compact-contract.ts → compact-contract.ts} +0 -0
- /package/src/trace/{004-dynamic-candidate-sources.ts → dynamic-candidate-sources.ts} +0 -0
- /package/src/trace/{000-dynamic-target-types.ts → dynamic-target-types.ts} +0 -0
- /package/src/trace/{007-implementation-start-diagnostic.ts → implementation-start-diagnostic.ts} +0 -0
- /package/src/trace/{023-nested-event-scopes.ts → nested-event-scopes.ts} +0 -0
- /package/src/trace/{002-trace-diagnostics.ts → trace-diagnostics.ts} +0 -0
- /package/src/trace/{012-trace-graph-lookups.ts → trace-graph-lookups.ts} +0 -0
- /package/src/utils/{000-bounded-projection.ts → bounded-projection.ts} +0 -0
- /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/
|
|
3
|
-
import { resolveTraversalWorkspaceId } from './
|
|
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 './
|
|
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 './
|
|
5
|
-
import type { ContextBinding } from './
|
|
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 './
|
|
11
|
-
import type { TraversalScopeState } from './
|
|
12
|
-
import type { TraceGraphEdgeRow } from './
|
|
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 './
|
|
17
|
-
import { parseTraceEvidence } from './
|
|
16
|
+
} from './trace-root-scopes.js';
|
|
17
|
+
import { parseTraceEvidence } from './trace-context.js';
|
|
18
18
|
import {
|
|
19
19
|
recordCycleObservation,
|
|
20
20
|
recordImplementationObservation,
|
|
21
|
-
} from './
|
|
21
|
+
} from './trace-edge-semantics.js';
|
|
22
22
|
import {
|
|
23
23
|
handlerFilesForOperation,
|
|
24
24
|
handlerScope,
|
|
25
25
|
implementationScope,
|
|
26
|
-
} from './
|
|
26
|
+
} from './trace-implementation-scope.js';
|
|
27
27
|
import type {
|
|
28
28
|
CallRow,
|
|
29
29
|
EffectiveOutbound,
|
|
30
30
|
TraceExecutionRuntime,
|
|
31
|
-
} from './
|
|
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/
|
|
3
|
-
import type { ContextBinding } from './
|
|
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 './
|
|
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 './
|
|
15
|
+
} from './contextual-runtime-state.js';
|
|
16
16
|
import {
|
|
17
17
|
TraversalScopeScheduler,
|
|
18
18
|
type TraversalScopeState,
|
|
19
|
-
} from './
|
|
20
|
-
import type { PlannedEventSubscriberTransition } from './
|
|
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 './
|
|
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 './
|
|
33
|
-
import type { CompactSemanticEndpoint } from './
|
|
34
|
-
import { TraceEdgeRecorder } from './
|
|
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 './
|
|
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 './
|
|
49
|
-
import { outboundScopeSymbolIds } from './
|
|
50
|
-
import type { ImplementationHintOptions } from './
|
|
51
|
-
import { processOperationTarget } from './
|
|
52
|
-
import { runtimeEventResolution, runtimeEventSubscriberPlans } from './
|
|
53
|
-
import { planLocalCallExpansion } from './
|
|
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 './
|
|
3
|
+
import { hintedImplementationSelection } from './implementation-selection.js';
|
|
4
4
|
import {
|
|
5
5
|
handlerMethodNode,
|
|
6
6
|
withSelectedHandlerProvenance,
|
|
7
7
|
type SelectedHandlerEvidence,
|
|
8
|
-
} from './
|
|
8
|
+
} from './selected-handler-provenance.js';
|
|
9
9
|
import {
|
|
10
10
|
operationNode,
|
|
11
11
|
type TraceGraphEdgeRow,
|
|
12
|
-
} from './
|
|
13
|
-
import { parseTraceEvidence } from './
|
|
14
|
-
import { recordImplementationObservation } from './
|
|
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 './
|
|
19
|
-
import type { TraceExecutionRuntime } from './
|
|
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 './
|
|
5
|
-
import { implementationStartDiagnostic } from './
|
|
6
|
-
import { parseTraceEvidence } from './
|
|
7
|
-
import { shouldDeferTraceStartSelection } from './
|
|
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 './
|
|
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 './
|
|
3
|
+
import type { ContextBinding } from './contextual-runtime-state.js';
|
|
4
4
|
|
|
5
5
|
export interface TraversalScopeIdentity {
|
|
6
6
|
workspaceId?: number;
|