@principal-ai/subsystems-core 0.51.3 → 0.51.5
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/README.md +21 -0
- package/dist/audit/boundary.d.ts +104 -0
- package/dist/audit/boundary.d.ts.map +1 -0
- package/dist/audit/boundary.js +363 -0
- package/dist/audit/boundary.js.map +1 -0
- package/dist/audit/c4.d.ts +41 -0
- package/dist/audit/c4.d.ts.map +1 -0
- package/dist/audit/c4.js +41 -0
- package/dist/audit/c4.js.map +1 -0
- package/dist/audit/engine.d.ts +135 -0
- package/dist/audit/engine.d.ts.map +1 -0
- package/dist/audit/engine.js +828 -0
- package/dist/audit/engine.js.map +1 -0
- package/dist/audit/fixes.d.ts +80 -0
- package/dist/audit/fixes.d.ts.map +1 -0
- package/dist/audit/fixes.js +162 -0
- package/dist/audit/fixes.js.map +1 -0
- package/dist/audit/graphify-provider.d.ts +51 -0
- package/dist/audit/graphify-provider.d.ts.map +1 -0
- package/dist/audit/graphify-provider.js +36 -0
- package/dist/audit/graphify-provider.js.map +1 -0
- package/dist/audit/hash.d.ts +25 -0
- package/dist/audit/hash.d.ts.map +1 -0
- package/dist/audit/hash.js +53 -0
- package/dist/audit/hash.js.map +1 -0
- package/dist/audit/index.d.ts +12 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +40 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/local-graphify.d.ts +75 -0
- package/dist/audit/local-graphify.d.ts.map +1 -0
- package/dist/audit/local-graphify.js +283 -0
- package/dist/audit/local-graphify.js.map +1 -0
- package/dist/audit/paths.d.ts +16 -0
- package/dist/audit/paths.d.ts.map +1 -0
- package/dist/audit/paths.js +31 -0
- package/dist/audit/paths.js.map +1 -0
- package/dist/audit/pure.d.ts +18 -0
- package/dist/audit/pure.d.ts.map +1 -0
- package/dist/audit/pure.js +50 -0
- package/dist/audit/pure.js.map +1 -0
- package/dist/audit/report-logic.d.ts +17 -0
- package/dist/audit/report-logic.d.ts.map +1 -0
- package/dist/audit/report-logic.js +206 -0
- package/dist/audit/report-logic.js.map +1 -0
- package/dist/audit/report.d.ts +136 -0
- package/dist/audit/report.d.ts.map +1 -0
- package/dist/audit/report.js +3 -0
- package/dist/audit/report.js.map +1 -0
- package/dist/audit/trail.d.ts +29 -0
- package/dist/audit/trail.d.ts.map +1 -0
- package/dist/audit/trail.js +59 -0
- package/dist/audit/trail.js.map +1 -0
- package/dist/audit/verification.d.ts +98 -0
- package/dist/audit/verification.d.ts.map +1 -0
- package/dist/audit/verification.js +11 -0
- package/dist/audit/verification.js.map +1 -0
- package/dist/audit/verify/component.d.ts +68 -0
- package/dist/audit/verify/component.d.ts.map +1 -0
- package/dist/audit/verify/component.js +500 -0
- package/dist/audit/verify/component.js.map +1 -0
- package/dist/audit/verify/declarations.d.ts +58 -0
- package/dist/audit/verify/declarations.d.ts.map +1 -0
- package/dist/audit/verify/declarations.js +227 -0
- package/dist/audit/verify/declarations.js.map +1 -0
- package/dist/audit/verify/grammar.d.ts +12 -0
- package/dist/audit/verify/grammar.d.ts.map +1 -0
- package/dist/audit/verify/grammar.js +57 -0
- package/dist/audit/verify/grammar.js.map +1 -0
- package/dist/audit/verify/index.d.ts +12 -0
- package/dist/audit/verify/index.d.ts.map +1 -0
- package/dist/audit/verify/index.js +31 -0
- package/dist/audit/verify/index.js.map +1 -0
- package/dist/audit/verify/parser.d.ts +19 -0
- package/dist/audit/verify/parser.d.ts.map +1 -0
- package/dist/audit/verify/parser.js +122 -0
- package/dist/audit/verify/parser.js.map +1 -0
- package/dist/audit/verify/span.d.ts +49 -0
- package/dist/audit/verify/span.d.ts.map +1 -0
- package/dist/audit/verify/span.js +377 -0
- package/dist/audit/verify/span.js.map +1 -0
- package/dist/graphify/anchor.d.ts +45 -0
- package/dist/graphify/anchor.d.ts.map +1 -0
- package/dist/graphify/anchor.js +179 -0
- package/dist/graphify/anchor.js.map +1 -0
- package/dist/graphify/consolidated.d.ts +259 -0
- package/dist/graphify/consolidated.d.ts.map +1 -0
- package/dist/graphify/consolidated.js +12 -0
- package/dist/graphify/consolidated.js.map +1 -0
- package/dist/graphify/construct.d.ts +41 -0
- package/dist/graphify/construct.d.ts.map +1 -0
- package/dist/graphify/construct.js +106 -0
- package/dist/graphify/construct.js.map +1 -0
- package/dist/graphify/ids.d.ts +19 -0
- package/dist/graphify/ids.d.ts.map +1 -0
- package/dist/graphify/ids.js +53 -0
- package/dist/graphify/ids.js.map +1 -0
- package/dist/graphify/index.d.ts +16 -0
- package/dist/graphify/index.d.ts.map +1 -0
- package/dist/graphify/index.js +32 -0
- package/dist/graphify/index.js.map +1 -0
- package/dist/graphify/resolve.d.ts +48 -0
- package/dist/graphify/resolve.d.ts.map +1 -0
- package/dist/graphify/resolve.js +89 -0
- package/dist/graphify/resolve.js.map +1 -0
- package/dist/graphify/signature.d.ts +87 -0
- package/dist/graphify/signature.d.ts.map +1 -0
- package/dist/graphify/signature.js +282 -0
- package/dist/graphify/signature.js.map +1 -0
- package/dist/graphify/types.d.ts +141 -0
- package/dist/graphify/types.d.ts.map +1 -0
- package/dist/graphify/types.js +9 -0
- package/dist/graphify/types.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +1 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +1 -0
- package/dist/node.js.map +1 -1
- package/package.json +22 -2
- package/src/audit/boundary.ts +447 -0
- package/src/audit/c4.ts +70 -0
- package/src/audit/engine.ts +1058 -0
- package/src/audit/fixes.ts +192 -0
- package/src/audit/graphify-provider.test.ts +58 -0
- package/src/audit/graphify-provider.ts +77 -0
- package/src/audit/hash.ts +58 -0
- package/src/audit/index.ts +34 -0
- package/src/audit/local-graphify.test.ts +163 -0
- package/src/audit/local-graphify.ts +354 -0
- package/src/audit/paths.ts +25 -0
- package/src/audit/pure.ts +91 -0
- package/src/audit/report-logic.test.ts +145 -0
- package/src/audit/report-logic.ts +245 -0
- package/src/audit/report.ts +203 -0
- package/src/audit/trail.ts +77 -0
- package/src/audit/verification.ts +104 -0
- package/src/audit/verify/component.ts +760 -0
- package/src/audit/verify/declarations.ts +284 -0
- package/src/audit/verify/grammar.ts +57 -0
- package/src/audit/verify/index.ts +41 -0
- package/src/audit/verify/parser.ts +124 -0
- package/src/audit/verify/span.ts +478 -0
- package/src/graphify/anchor.ts +206 -0
- package/src/graphify/consolidated.ts +298 -0
- package/src/graphify/construct.ts +153 -0
- package/src/graphify/ids.ts +48 -0
- package/src/graphify/index.ts +16 -0
- package/src/graphify/resolve.ts +115 -0
- package/src/graphify/signature.ts +354 -0
- package/src/graphify/types.ts +164 -0
- package/src/index.ts +4 -0
- package/src/node.ts +1 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Graphify consolidated / drill-down types.
|
|
3
|
+
*
|
|
4
|
+
* graphify stores the graph in flat, normalized form — class vs function vs
|
|
5
|
+
* type is NOT a node attribute (every code node is `file_type: "code"`); it is
|
|
6
|
+
* derived from graph structure. These types rebuild that structure from the raw
|
|
7
|
+
* edges so a UI can show a drill-down modal for a subsystem component or jump
|
|
8
|
+
* to its definition file.
|
|
9
|
+
*/
|
|
10
|
+
import type { GraphifyConfidence, GraphifyFileType, GraphifyRelation } from './types';
|
|
11
|
+
/** How a subsystem component resolved to a graphify node. */
|
|
12
|
+
export type GraphifyAnchorResolution = 'exact' | 'file-only' | 'ambiguous' | 'missing';
|
|
13
|
+
/**
|
|
14
|
+
* The bridge between a facet component and the graphify graph.
|
|
15
|
+
*
|
|
16
|
+
* `nodeId` is reconstructed from the component's `file` + `symbol` via the id
|
|
17
|
+
* slug scheme; `resolution` says how confident that reconstruction is.
|
|
18
|
+
* `source_file` + `source_location` are the "open the definition" primitive.
|
|
19
|
+
*/
|
|
20
|
+
export interface SubsystemGraphifyAnchor {
|
|
21
|
+
/** Resolved graphify node id. */
|
|
22
|
+
nodeId: string;
|
|
23
|
+
/** PURL of the repo the node lives in (pkg:github/owner/repo). */
|
|
24
|
+
purl: string;
|
|
25
|
+
/** How the anchor resolved — the honesty signal for verification. */
|
|
26
|
+
resolution: GraphifyAnchorResolution;
|
|
27
|
+
/** Human-readable node label from the graph. */
|
|
28
|
+
label: string;
|
|
29
|
+
/** Repo-relative path of the node's source file. */
|
|
30
|
+
source_file: string;
|
|
31
|
+
/** `L<line>` — the line of the definition for a file-open jump. */
|
|
32
|
+
source_location?: string;
|
|
33
|
+
/** Node classification from the graph. */
|
|
34
|
+
file_type: GraphifyFileType;
|
|
35
|
+
/** Leiden community id. */
|
|
36
|
+
community?: number | null;
|
|
37
|
+
/** Human-readable community label. */
|
|
38
|
+
community_name?: string;
|
|
39
|
+
}
|
|
40
|
+
/** A method on a class-like node (`method` edge from the class). */
|
|
41
|
+
export interface GraphifyMethodInfo {
|
|
42
|
+
/** The method's own node id. */
|
|
43
|
+
nodeId: string;
|
|
44
|
+
/** Display name from the label (`.get()` → `get`). */
|
|
45
|
+
name: string;
|
|
46
|
+
/** Typed parameters from `references` edges with context `parameter_type`. */
|
|
47
|
+
parameters?: GraphifyParamInfo[];
|
|
48
|
+
/** Return type from a `references` edge with context `return_type`. */
|
|
49
|
+
returnType?: string;
|
|
50
|
+
/** Backing edge target for `returnType`, when the graph had one. */
|
|
51
|
+
returnTypeRef?: GraphifyReferenceInfo;
|
|
52
|
+
}
|
|
53
|
+
/** A property/field on a class- or type-like node. */
|
|
54
|
+
export interface GraphifyPropertyInfo {
|
|
55
|
+
/** Field name — present when graphify emits a `defines` node (C++). */
|
|
56
|
+
name: string;
|
|
57
|
+
/** Field type from a `references` edge with context `field`. */
|
|
58
|
+
type?: string;
|
|
59
|
+
/** Backing edge target for `type`, when the graph had one. */
|
|
60
|
+
typeRef?: GraphifyReferenceInfo;
|
|
61
|
+
/** The field's own node id when it exists (e.g. C++ `defines` nodes). */
|
|
62
|
+
nodeId?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A single typed parameter of a function (`references` context `parameter_type`).
|
|
66
|
+
*
|
|
67
|
+
* `ref.nodeId` is the resolvable half: it targets the type's definition node
|
|
68
|
+
* when graphify resolved the reference, or a sourceless stub node when the
|
|
69
|
+
* name was ambiguous / external (see `resolveGraphifyTypeRef`).
|
|
70
|
+
*/
|
|
71
|
+
export interface GraphifyParamInfo {
|
|
72
|
+
/** Parameter name — not captured by graphify; left undefined. */
|
|
73
|
+
name?: string;
|
|
74
|
+
/** Parameter type. */
|
|
75
|
+
type: string;
|
|
76
|
+
/** Backing `references[parameter_type|generic_arg]` edge target. */
|
|
77
|
+
ref?: GraphifyReferenceInfo;
|
|
78
|
+
}
|
|
79
|
+
/** One call relationship, in either direction. */
|
|
80
|
+
export interface GraphifyCallInfo {
|
|
81
|
+
/** The other endpoint's node id (caller for `callers`, callee for `callees`). */
|
|
82
|
+
nodeId: string;
|
|
83
|
+
/** The other endpoint's display label. */
|
|
84
|
+
name: string;
|
|
85
|
+
/** `L<line>` of the call site. */
|
|
86
|
+
source_location?: string;
|
|
87
|
+
}
|
|
88
|
+
/** A type-name reference to a node (`references` edge with a context). */
|
|
89
|
+
export interface GraphifyReferenceInfo {
|
|
90
|
+
/** The referenced node id. */
|
|
91
|
+
nodeId: string;
|
|
92
|
+
/** The referenced node's display label. */
|
|
93
|
+
name: string;
|
|
94
|
+
/** Reference context (e.g. `type`, `field`, `generic_arg`, `attribute`). */
|
|
95
|
+
context?: string;
|
|
96
|
+
/** `L<line>` of the reference site. */
|
|
97
|
+
source_location?: string;
|
|
98
|
+
}
|
|
99
|
+
/** A class-like node: owns outgoing `method` edges. */
|
|
100
|
+
export interface GraphifyClassDetail {
|
|
101
|
+
kind: 'class';
|
|
102
|
+
/** Methods connected via `method` edges. */
|
|
103
|
+
methods: GraphifyMethodInfo[];
|
|
104
|
+
/** Fields from `defines`/`references` context `field`. */
|
|
105
|
+
properties: GraphifyPropertyInfo[];
|
|
106
|
+
/** `inherits` edge targets. */
|
|
107
|
+
extends: string[];
|
|
108
|
+
/** `implements` edge targets. */
|
|
109
|
+
implements: string[];
|
|
110
|
+
/** Incoming `calls` — graphify models constructor calls as calls into the class. */
|
|
111
|
+
instantiations: GraphifyCallInfo[];
|
|
112
|
+
/** Everywhere the type name is referenced (`references` edges). */
|
|
113
|
+
references: GraphifyReferenceInfo[];
|
|
114
|
+
}
|
|
115
|
+
/** A function-like node: label ends `name()` with no `method` edges. */
|
|
116
|
+
export interface GraphifyFunctionDetail {
|
|
117
|
+
kind: 'function';
|
|
118
|
+
/** Parameter types from `references` context `parameter_type`. */
|
|
119
|
+
parameters: GraphifyParamInfo[];
|
|
120
|
+
/** Return type from `references` context `return_type`. */
|
|
121
|
+
returnType?: string;
|
|
122
|
+
/** Backing edge target for `returnType`, when the graph had one. */
|
|
123
|
+
returnTypeRef?: GraphifyReferenceInfo;
|
|
124
|
+
/** Incoming `calls` edges. */
|
|
125
|
+
callers: GraphifyCallInfo[];
|
|
126
|
+
/** Outgoing `calls` edges. */
|
|
127
|
+
callees: GraphifyCallInfo[];
|
|
128
|
+
}
|
|
129
|
+
/** One generic type parameter, e.g. `T` or `K extends keyof StudioMessages`. */
|
|
130
|
+
export interface GraphifyTypeParamInfo {
|
|
131
|
+
name: string;
|
|
132
|
+
/** Constraint written after `extends` (or language equivalent). */
|
|
133
|
+
constraint?: string;
|
|
134
|
+
}
|
|
135
|
+
/** A callable/function type: `(params) => returnType`. */
|
|
136
|
+
export interface GraphifyCallableTypeInfo {
|
|
137
|
+
parameters?: GraphifyParamInfo[];
|
|
138
|
+
returnType?: string;
|
|
139
|
+
}
|
|
140
|
+
/** One enum member, with its optional literal value. */
|
|
141
|
+
export interface GraphifyEnumMemberInfo {
|
|
142
|
+
name: string;
|
|
143
|
+
value?: string;
|
|
144
|
+
}
|
|
145
|
+
/** A type-like node (interface/struct): revealed by incoming `implements` edges. */
|
|
146
|
+
export interface GraphifyTypeDetail {
|
|
147
|
+
kind: 'type';
|
|
148
|
+
/** Struct/interface fields. */
|
|
149
|
+
properties: GraphifyPropertyInfo[];
|
|
150
|
+
/** Nodes referencing this type name. */
|
|
151
|
+
usedBy: GraphifyReferenceInfo[];
|
|
152
|
+
/** Nodes that `inherits`/`implements` this type. */
|
|
153
|
+
implementors: string[];
|
|
154
|
+
/** Generic type parameters, e.g. `<K extends keyof StudioMessages>`. */
|
|
155
|
+
generics?: GraphifyTypeParamInfo[];
|
|
156
|
+
/** Callable type — `(params) => returnType` (TS/Go/Rust fn, Java lambda). */
|
|
157
|
+
signature?: GraphifyCallableTypeInfo;
|
|
158
|
+
/** Enum members (name, optional literal value). */
|
|
159
|
+
enumMembers?: GraphifyEnumMemberInfo[];
|
|
160
|
+
/** Alias whose RHS is a plain reference, e.g. `StudioMessages[K]`. */
|
|
161
|
+
aliasOf?: string;
|
|
162
|
+
/** Simple union of alternatives, e.g. `'started' | 'stopped'`. */
|
|
163
|
+
unionOf?: string[];
|
|
164
|
+
/**
|
|
165
|
+
* Verbatim RHS — the escape hatch for shapes the structured fields can't
|
|
166
|
+
* express (mapped/conditional/template-literal/infer types, `typeof`/utility
|
|
167
|
+
* compositions, C pointers, Rust trait objects). Wins over every shape above.
|
|
168
|
+
*/
|
|
169
|
+
rhs?: string;
|
|
170
|
+
}
|
|
171
|
+
/** A facet-only component with no graphify node (external consumer stub). */
|
|
172
|
+
export interface GraphifyExternalDetail {
|
|
173
|
+
kind: 'external';
|
|
174
|
+
/** Facet-only label; there is no backing graph data. */
|
|
175
|
+
label?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Authored key/value facts about the dependency (endpoints, install command,
|
|
178
|
+
* db path). Mirrors the model document's `external.attributes`; graphify never
|
|
179
|
+
* populates it, it is authored alongside the facet.
|
|
180
|
+
*/
|
|
181
|
+
attributes?: GraphifyCustomEntityAttribute[];
|
|
182
|
+
}
|
|
183
|
+
/** A single authored attribute on a custom entity — free-form key/value. */
|
|
184
|
+
export interface GraphifyCustomEntityAttribute {
|
|
185
|
+
key: string;
|
|
186
|
+
value: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* A custom-entity (actor — Person/agent/queue) declaration. Authored, never
|
|
190
|
+
* extracted: there is no graphify node for a Person. `attributes` are
|
|
191
|
+
* free-form key/value pairs surfaced in the declaration panel; the base
|
|
192
|
+
* component fields carry the node identity (`entityKind`, `color`, `purpose`).
|
|
193
|
+
*/
|
|
194
|
+
export interface GraphifyCustomEntityDetail {
|
|
195
|
+
kind: 'custom_entity';
|
|
196
|
+
attributes: GraphifyCustomEntityAttribute[];
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* A retained-state node (`kind: 'store'`): state and its contract, no
|
|
200
|
+
* behavior. `kind` is the node's verifiable anchor — a store anchors to a
|
|
201
|
+
* *state location* (module consts, a file or db), not to a declaration.
|
|
202
|
+
* When a class manages the store's access, that is a SEPARATE node
|
|
203
|
+
* (`kind: 'class'`, methods = the access mechanism) joined by
|
|
204
|
+
* `writes`/`reads` — never merged into one hybrid node. This payload
|
|
205
|
+
* renders as state declarations (`declare const …`), never as a class
|
|
206
|
+
* stub.
|
|
207
|
+
*/
|
|
208
|
+
export interface GraphifyStoreDetail {
|
|
209
|
+
kind: 'store';
|
|
210
|
+
/** The retained state members (module-level consts or class fields). */
|
|
211
|
+
properties: GraphifyPropertyInfo[];
|
|
212
|
+
/**
|
|
213
|
+
* Where the retained state physically lives / who mediates access. Authored
|
|
214
|
+
* — graphify cannot infer it: `memory` = process-lifetime RAM, `disk` =
|
|
215
|
+
* this process reads/writes the filesystem, `external` = mediated by another
|
|
216
|
+
* system (db/service; carries no `process`).
|
|
217
|
+
*/
|
|
218
|
+
storage?: 'memory' | 'disk' | 'external';
|
|
219
|
+
/**
|
|
220
|
+
* The type of the retained state itself — a store declares its type the way
|
|
221
|
+
* every other declaration does (`Map<string, FeedState>`, `Set<Listener>`,
|
|
222
|
+
* a table's row type). Orthogonal to `storage`.
|
|
223
|
+
*/
|
|
224
|
+
valueType?: string;
|
|
225
|
+
/** Backing edge target for `valueType`, when the graph has one. */
|
|
226
|
+
valueTypeRef?: GraphifyReferenceInfo;
|
|
227
|
+
}
|
|
228
|
+
/** A standalone method selected from its owning class. */
|
|
229
|
+
export interface GraphifyMethodDetail {
|
|
230
|
+
kind: 'method';
|
|
231
|
+
/** The class that owns this method. */
|
|
232
|
+
hostClass: string;
|
|
233
|
+
/** Parameter types from `references` context `parameter_type`. */
|
|
234
|
+
parameters?: GraphifyParamInfo[];
|
|
235
|
+
/** Return type from `references` context `return_type`. */
|
|
236
|
+
returnType?: string;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The structured declaration payload for a subsystem component (click panel).
|
|
240
|
+
*
|
|
241
|
+
* The discriminant is derived from graph structure, not read off the node:
|
|
242
|
+
* method edges → class; `()` label + no method edges → function; incoming
|
|
243
|
+
* `implements` → type. File/module Graphify nodes are not subsystem
|
|
244
|
+
* declaration kinds — anchor to a concrete export instead. `external`
|
|
245
|
+
* covers consumer stubs. `method` covers standalone method components
|
|
246
|
+
* selected from a class.
|
|
247
|
+
*/
|
|
248
|
+
export type GraphifyComponentDetail = GraphifyClassDetail | GraphifyFunctionDetail | GraphifyMethodDetail | GraphifyTypeDetail | GraphifyExternalDetail | GraphifyCustomEntityDetail | GraphifyStoreDetail;
|
|
249
|
+
/** A raw graphify edge backing a facet claim (verification + provenance). */
|
|
250
|
+
export interface GraphifyEdgeRef {
|
|
251
|
+
source: string;
|
|
252
|
+
target: string;
|
|
253
|
+
relation: GraphifyRelation;
|
|
254
|
+
confidence: GraphifyConfidence;
|
|
255
|
+
confidence_score?: number;
|
|
256
|
+
source_file: string;
|
|
257
|
+
source_location?: string;
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=consolidated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consolidated.d.ts","sourceRoot":"","sources":["../../src/graphify/consolidated.ts"],"names":[],"mappings":"AAAA;;;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1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Graphify consolidated / drill-down types.
|
|
4
|
+
*
|
|
5
|
+
* graphify stores the graph in flat, normalized form — class vs function vs
|
|
6
|
+
* type is NOT a node attribute (every code node is `file_type: "code"`); it is
|
|
7
|
+
* derived from graph structure. These types rebuild that structure from the raw
|
|
8
|
+
* edges so a UI can show a drill-down modal for a subsystem component or jump
|
|
9
|
+
* to its definition file.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=consolidated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consolidated.js","sourceRoot":"","sources":["../../src/graphify/consolidated.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infer a subsystem-style construct from a graphify node + edges.
|
|
3
|
+
*
|
|
4
|
+
* Graphify does not store construct on nodes (everything is `file_type: "code"`).
|
|
5
|
+
* Class vs function vs type is derived from structure — same rules as
|
|
6
|
+
* `GraphifyComponentDetail` in consolidated.ts.
|
|
7
|
+
*/
|
|
8
|
+
import type { GraphifyEdge, GraphifyNode } from './types';
|
|
9
|
+
/** Construct inferred from graph structure (never read off the node). */
|
|
10
|
+
export type InferredGraphifyConstruct = 'class' | 'function' | 'method' | 'type' | 'module' | 'unknown';
|
|
11
|
+
export interface InferConstructFromGraphifyResult {
|
|
12
|
+
construct: InferredGraphifyConstruct;
|
|
13
|
+
evidence: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Infer construct for a definition node from its label and incident edges.
|
|
17
|
+
*
|
|
18
|
+
* Priority: class → method → function → type → module → unknown.
|
|
19
|
+
*/
|
|
20
|
+
export declare function inferConstructFromGraphify(node: GraphifyNode, edges: readonly GraphifyEdge[]): InferConstructFromGraphifyResult;
|
|
21
|
+
/** Strict claimed-vs-inferred check, with type-family compatibility. */
|
|
22
|
+
export declare function constructsMatch(claimed: string | undefined, inferred: InferredGraphifyConstruct): boolean;
|
|
23
|
+
export interface ConstructCheckOutcome {
|
|
24
|
+
/** true = confirmed, false = known mismatch, null = unconfirmed (needs agent). */
|
|
25
|
+
match: boolean | null;
|
|
26
|
+
/** Confirming construct from an accepted augmentation, when that is what confirmed it. */
|
|
27
|
+
augmentedBy?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Resolve a claimed construct against Graphify's inferred construct, allowing an
|
|
31
|
+
* accepted, agent-confirmed augmentation to stand in for Graphify when it is
|
|
32
|
+
* silent (`unknown`) or when it disagrees.
|
|
33
|
+
*
|
|
34
|
+
* Graphify's inferred construct is a *structural hint*, never ground truth: its
|
|
35
|
+
* vocabulary (`class | function | method | type | module | unknown`) has no
|
|
36
|
+
* `store` or `custom_entity`, and a call-style accessor label biases it to
|
|
37
|
+
* `function`. When source-reading confirms the model's claim, that confirmation
|
|
38
|
+
* (recorded as an accepted augmentation) wins over the hint.
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveConstructMatch(claimed: string | undefined, inferred: InferredGraphifyConstruct, augmentedConstruct?: string | null): ConstructCheckOutcome;
|
|
41
|
+
//# sourceMappingURL=construct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construct.d.ts","sourceRoot":"","sources":["../../src/graphify/construct.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,yEAAyE;AACzE,MAAM,MAAM,yBAAyB,GAClC,OAAO,GACP,UAAU,GACV,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;AAEb,MAAM,WAAW,gCAAgC;IAChD,SAAS,EAAE,yBAAyB,CAAC;IACrC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAqBD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,YAAY,EAAE,GAC5B,gCAAgC,CAqDlC;AAOD,wEAAwE;AACxE,wBAAgB,eAAe,CAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,QAAQ,EAAE,yBAAyB,GACjC,OAAO,CAIT;AAED,MAAM,WAAW,qBAAqB;IACrC,kFAAkF;IAClF,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,QAAQ,EAAE,yBAAyB,EACnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAChC,qBAAqB,CASvB"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Infer a subsystem-style construct from a graphify node + edges.
|
|
4
|
+
*
|
|
5
|
+
* Graphify does not store construct on nodes (everything is `file_type: "code"`).
|
|
6
|
+
* Class vs function vs type is derived from structure — same rules as
|
|
7
|
+
* `GraphifyComponentDetail` in consolidated.ts.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.resolveConstructMatch = exports.constructsMatch = exports.inferConstructFromGraphify = void 0;
|
|
11
|
+
const FILE_LABEL_RE = /\.(py|js|jsx|ts|tsx|mjs|cjs|java|go|rs|rb|php|cs|cpp|cc|c|h|hpp|pas|pp|dpr|swift|kt|scala|dart|lua|pl|pm|ex|exs|zig|vue|svelte)$/i;
|
|
12
|
+
function isMethodStyleLabel(label) {
|
|
13
|
+
return label.trim().startsWith('.');
|
|
14
|
+
}
|
|
15
|
+
function isCallStyleLabel(label) {
|
|
16
|
+
return label.trim().endsWith('()');
|
|
17
|
+
}
|
|
18
|
+
function isFilenameLabel(label, sourceFile) {
|
|
19
|
+
const trimmed = label.trim();
|
|
20
|
+
if (FILE_LABEL_RE.test(trimmed))
|
|
21
|
+
return true;
|
|
22
|
+
if (!sourceFile)
|
|
23
|
+
return false;
|
|
24
|
+
const base = sourceFile.replace(/\\/g, '/').split('/').pop() ?? '';
|
|
25
|
+
return !!base && trimmed === base;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Infer construct for a definition node from its label and incident edges.
|
|
29
|
+
*
|
|
30
|
+
* Priority: class → method → function → type → module → unknown.
|
|
31
|
+
*/
|
|
32
|
+
function inferConstructFromGraphify(node, edges) {
|
|
33
|
+
const id = String(node.id);
|
|
34
|
+
const label = String(node.label ?? '').trim();
|
|
35
|
+
const sourceFile = typeof node.source_file === 'string' ? node.source_file : '';
|
|
36
|
+
const evidence = [];
|
|
37
|
+
const outgoingMethod = edges.filter((e) => String(e.source) === id && e.relation === 'method');
|
|
38
|
+
if (outgoingMethod.length > 0) {
|
|
39
|
+
evidence.push(`${outgoingMethod.length} outgoing method edge(s)`);
|
|
40
|
+
return { construct: 'class', evidence };
|
|
41
|
+
}
|
|
42
|
+
const incomingMethod = edges.filter((e) => String(e.target) === id && e.relation === 'method');
|
|
43
|
+
if (incomingMethod.length > 0 && isMethodStyleLabel(label)) {
|
|
44
|
+
evidence.push(`incoming method edge from ${String(incomingMethod[0].source)}`, `label ${label}`);
|
|
45
|
+
return { construct: 'method', evidence };
|
|
46
|
+
}
|
|
47
|
+
if (isCallStyleLabel(label)) {
|
|
48
|
+
evidence.push(`call-style label ${label}`);
|
|
49
|
+
return { construct: 'function', evidence };
|
|
50
|
+
}
|
|
51
|
+
const incomingImplements = edges.filter((e) => String(e.target) === id && e.relation === 'implements');
|
|
52
|
+
if (incomingImplements.length > 0) {
|
|
53
|
+
evidence.push(`${incomingImplements.length} incoming implements edge(s)`);
|
|
54
|
+
return { construct: 'type', evidence };
|
|
55
|
+
}
|
|
56
|
+
if (node.type === 'module' || isFilenameLabel(label, sourceFile)) {
|
|
57
|
+
evidence.push(node.type === 'module'
|
|
58
|
+
? 'node.type=module'
|
|
59
|
+
: `filename label ${label}`);
|
|
60
|
+
return { construct: 'module', evidence };
|
|
61
|
+
}
|
|
62
|
+
if (label)
|
|
63
|
+
evidence.push(`unclassified label ${label}`);
|
|
64
|
+
else
|
|
65
|
+
evidence.push('no classifying signals');
|
|
66
|
+
return { construct: 'unknown', evidence };
|
|
67
|
+
}
|
|
68
|
+
exports.inferConstructFromGraphify = inferConstructFromGraphify;
|
|
69
|
+
/** Type-family constructs all infer as the coarse 'type' — graph structure
|
|
70
|
+
* (implements/references edges) cannot sub-classify interface vs alias vs
|
|
71
|
+
* enum vs variable; only the source declaration can. */
|
|
72
|
+
const TYPE_FAMILY = new Set(['interface', 'type_alias', 'enum']);
|
|
73
|
+
/** Strict claimed-vs-inferred check, with type-family compatibility. */
|
|
74
|
+
function constructsMatch(claimed, inferred) {
|
|
75
|
+
if (!claimed || claimed === 'external')
|
|
76
|
+
return true;
|
|
77
|
+
if (TYPE_FAMILY.has(claimed))
|
|
78
|
+
return inferred === 'type';
|
|
79
|
+
return claimed === inferred;
|
|
80
|
+
}
|
|
81
|
+
exports.constructsMatch = constructsMatch;
|
|
82
|
+
/**
|
|
83
|
+
* Resolve a claimed construct against Graphify's inferred construct, allowing an
|
|
84
|
+
* accepted, agent-confirmed augmentation to stand in for Graphify when it is
|
|
85
|
+
* silent (`unknown`) or when it disagrees.
|
|
86
|
+
*
|
|
87
|
+
* Graphify's inferred construct is a *structural hint*, never ground truth: its
|
|
88
|
+
* vocabulary (`class | function | method | type | module | unknown`) has no
|
|
89
|
+
* `store` or `custom_entity`, and a call-style accessor label biases it to
|
|
90
|
+
* `function`. When source-reading confirms the model's claim, that confirmation
|
|
91
|
+
* (recorded as an accepted augmentation) wins over the hint.
|
|
92
|
+
*/
|
|
93
|
+
function resolveConstructMatch(claimed, inferred, augmentedConstruct) {
|
|
94
|
+
const aug = augmentedConstruct?.trim();
|
|
95
|
+
if (!claimed || claimed === 'external')
|
|
96
|
+
return { match: true };
|
|
97
|
+
const augConfirms = !!aug && aug === claimed;
|
|
98
|
+
if (inferred === 'unknown') {
|
|
99
|
+
return augConfirms ? { match: true, augmentedBy: aug } : { match: null };
|
|
100
|
+
}
|
|
101
|
+
if (constructsMatch(claimed, inferred))
|
|
102
|
+
return { match: true };
|
|
103
|
+
return augConfirms ? { match: true, augmentedBy: aug } : { match: false };
|
|
104
|
+
}
|
|
105
|
+
exports.resolveConstructMatch = resolveConstructMatch;
|
|
106
|
+
//# sourceMappingURL=construct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construct.js","sourceRoot":"","sources":["../../src/graphify/construct.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkBH,MAAM,aAAa,GAClB,mIAAmI,CAAC;AAErI,SAAS,kBAAkB,CAAC,KAAa;IACxC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa;IACtC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,eAAe,CAAC,KAAa,EAAE,UAAkB;IACzD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7C,IAAI,CAAC,UAAU;QAAE,OAAO,KAAK,CAAC;IAC9B,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;IACnE,OAAO,CAAC,CAAC,IAAI,IAAI,OAAO,KAAK,IAAI,CAAC;AACnC,CAAC;AAED;;;;GAIG;AACH,SAAgB,0BAA0B,CACzC,IAAkB,EAClB,KAA8B;IAE9B,MA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AI,CAAC;IACpD,IAAI,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;QAAE,OAAO,QAAQ,KAAK,MAAM,CAAC;IACzD,OAAO,OAAO,KAAK,QAAQ,CAAC;AAC7B,CAAC;AAPD,0CAOC;AASD;;;;;;;;;;GAUG;AACH,SAAgB,qBAAqB,CACpC,OAA2B,EAC3B,QAAmC,EACnC,kBAAkC;IAElC,MAAM,GAAG,GAAG,kBAAkB,EAAE,IAAI,EAAE,CAAC;IACvC,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,UAAU;QAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/D,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,OAAO,CAAC;IAC7C,IAAI,QAAQ,KAAK,SAAS,EAAE;QAC3B,OAAO,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;KACzE;IACD,IAAI,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC;QAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/D,OAAO,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC3E,CAAC;AAbD,sDAaC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirror of graphify/ids.py — NFKC + casefold-ish + non-word → `_`.
|
|
3
|
+
*
|
|
4
|
+
* Definition node ids are `makeId(fileStem, ...symbolParts)`. Stub ids are
|
|
5
|
+
* intentionally different (name-only / `ref_…`); this module is for the
|
|
6
|
+
* definition path used by component anchoring.
|
|
7
|
+
*/
|
|
8
|
+
/** Normalize one id string to graphify's canonical form. */
|
|
9
|
+
export declare function normalizeGraphifyId(s: string): string;
|
|
10
|
+
/** Build a canonical node id from path/symbol parts (graphify `make_id`). */
|
|
11
|
+
export declare function makeGraphifyId(...parts: string[]): string;
|
|
12
|
+
/**
|
|
13
|
+
* File stem used as the node-id prefix (graphify `_file_stem`):
|
|
14
|
+
* full path with extension dropped, posix separators.
|
|
15
|
+
*/
|
|
16
|
+
export declare function graphifyFileStem(file: string): string;
|
|
17
|
+
/** Normalize a repo-relative path for source_file comparison. */
|
|
18
|
+
export declare function normalizeSourcePath(file: string): string;
|
|
19
|
+
//# sourceMappingURL=ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../src/graphify/ids.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4DAA4D;AAC5D,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAOzD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASrD;AAED,iEAAiE;AACjE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Mirror of graphify/ids.py — NFKC + casefold-ish + non-word → `_`.
|
|
4
|
+
*
|
|
5
|
+
* Definition node ids are `makeId(fileStem, ...symbolParts)`. Stub ids are
|
|
6
|
+
* intentionally different (name-only / `ref_…`); this module is for the
|
|
7
|
+
* definition path used by component anchoring.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.normalizeSourcePath = exports.graphifyFileStem = exports.makeGraphifyId = exports.normalizeGraphifyId = void 0;
|
|
11
|
+
/** Normalize one id string to graphify's canonical form. */
|
|
12
|
+
function normalizeGraphifyId(s) {
|
|
13
|
+
let out = s.normalize("NFKC");
|
|
14
|
+
// JS has no Unicode casefold; lowercasing + second NFKC is close enough
|
|
15
|
+
// for the Latin/ASCII identifiers we resolve in practice.
|
|
16
|
+
out = out.toLowerCase().normalize("NFKC");
|
|
17
|
+
out = out.replace(/[^\w]+/gu, "_");
|
|
18
|
+
out = out.replace(/_+/g, "_");
|
|
19
|
+
return out.replace(/^_|_$/g, "");
|
|
20
|
+
}
|
|
21
|
+
exports.normalizeGraphifyId = normalizeGraphifyId;
|
|
22
|
+
/** Build a canonical node id from path/symbol parts (graphify `make_id`). */
|
|
23
|
+
function makeGraphifyId(...parts) {
|
|
24
|
+
const joined = parts
|
|
25
|
+
.filter((p) => typeof p === "string" && p.length > 0)
|
|
26
|
+
.map((p) => p.replace(/^[_.]+|[_.]+$/g, ""))
|
|
27
|
+
.filter(Boolean)
|
|
28
|
+
.join("_");
|
|
29
|
+
return normalizeGraphifyId(joined);
|
|
30
|
+
}
|
|
31
|
+
exports.makeGraphifyId = makeGraphifyId;
|
|
32
|
+
/**
|
|
33
|
+
* File stem used as the node-id prefix (graphify `_file_stem`):
|
|
34
|
+
* full path with extension dropped, posix separators.
|
|
35
|
+
*/
|
|
36
|
+
function graphifyFileStem(file) {
|
|
37
|
+
const posix = file.replace(/\\/g, "/").replace(/^\.\//, "");
|
|
38
|
+
const lastSlash = posix.lastIndexOf("/");
|
|
39
|
+
const base = lastSlash >= 0 ? posix.slice(lastSlash + 1) : posix;
|
|
40
|
+
const dir = lastSlash >= 0 ? posix.slice(0, lastSlash + 1) : "";
|
|
41
|
+
if (!base || base === ".")
|
|
42
|
+
return "";
|
|
43
|
+
const dot = base.lastIndexOf(".");
|
|
44
|
+
const stemBase = dot > 0 ? base.slice(0, dot) : base;
|
|
45
|
+
return `${dir}${stemBase}`;
|
|
46
|
+
}
|
|
47
|
+
exports.graphifyFileStem = graphifyFileStem;
|
|
48
|
+
/** Normalize a repo-relative path for source_file comparison. */
|
|
49
|
+
function normalizeSourcePath(file) {
|
|
50
|
+
return file.replace(/\\/g, "/").replace(/^\.\//, "").replace(/\/+/g, "/");
|
|
51
|
+
}
|
|
52
|
+
exports.normalizeSourcePath = normalizeSourcePath;
|
|
53
|
+
//# sourceMappingURL=ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../../src/graphify/ids.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,4DAA4D;AAC5D,SAAgB,mBAAmB,CAAC,CAAS;IAC5C,IAAI,GAAG,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,wEAAwE;IACxE,0DAA0D;IAC1D,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC1C,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACnC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9B,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AARD,kDAQC;AAED,6EAA6E;AAC7E,SAAgB,cAAc,CAAC,GAAG,KAAe;IAChD,MAAM,MAAM,GAAG,KAAK;SAClB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;SACpD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;SAC3C,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACZ,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC;AAPD,wCAOC;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
|
|
5
|
+
* deterministic anchor / construct / signature rules the audit uses. These are
|
|
6
|
+
* runtime-neutral (no filesystem, no React) so the browser-safe package entry
|
|
7
|
+
* and Node hosts can share them.
|
|
8
|
+
*/
|
|
9
|
+
export * from './types';
|
|
10
|
+
export * from './consolidated';
|
|
11
|
+
export * from './resolve';
|
|
12
|
+
export * from './ids';
|
|
13
|
+
export * from './anchor';
|
|
14
|
+
export * from './construct';
|
|
15
|
+
export * from './signature';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphify/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Graphify integration types and pure resolution helpers.
|
|
4
|
+
*
|
|
5
|
+
* Type-compatible view of graphify's graph.json data model plus the
|
|
6
|
+
* deterministic anchor / construct / signature rules the audit uses. These are
|
|
7
|
+
* runtime-neutral (no filesystem, no React) so the browser-safe package entry
|
|
8
|
+
* and Node hosts can share them.
|
|
9
|
+
*/
|
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
__exportStar(require("./types"), exports);
|
|
26
|
+
__exportStar(require("./consolidated"), exports);
|
|
27
|
+
__exportStar(require("./resolve"), exports);
|
|
28
|
+
__exportStar(require("./ids"), exports);
|
|
29
|
+
__exportStar(require("./anchor"), exports);
|
|
30
|
+
__exportStar(require("./construct"), exports);
|
|
31
|
+
__exportStar(require("./signature"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graphify/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;AAEH,0CAAuB;AACvB,iDAA8B;AAC9B,4CAAyB;AACzB,wCAAqB;AACrB,2CAAwB;AACxB,8CAA2B;AAC3B,8CAA2B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve graphify type-name references to their defining nodes.
|
|
3
|
+
*
|
|
4
|
+
* A `references` edge (`parameter_type`, `return_type`, `field`,
|
|
5
|
+
* `generic_arg`) targets either the type's real definition node or a
|
|
6
|
+
* *sourceless stub* graphify left behind when the name could not be uniquely
|
|
7
|
+
* resolved at extraction time (mirrors `_rewire_unique_stub_nodes` there:
|
|
8
|
+
* ambiguous same-label definitions and never-defined names stay stubs).
|
|
9
|
+
*
|
|
10
|
+
* This module applies the same conservative matching from the consumer side so
|
|
11
|
+
* UI click targets can distinguish "jump to definition" from "N candidates"
|
|
12
|
+
* from "not in this corpus".
|
|
13
|
+
*/
|
|
14
|
+
import type { GraphifyNode } from './types';
|
|
15
|
+
import type { GraphifyReferenceInfo } from './consolidated';
|
|
16
|
+
/** Outcome of resolving one type reference. */
|
|
17
|
+
export type GraphifyTypeRefStatus =
|
|
18
|
+
/** Target node is a real definition — jump to its `source_file`. */
|
|
19
|
+
'resolved'
|
|
20
|
+
/** Target was a stub and multiple same-label definitions exist. */
|
|
21
|
+
| 'ambiguous'
|
|
22
|
+
/** Target was a stub and nothing in the corpus defines the name. */
|
|
23
|
+
| 'unresolved'
|
|
24
|
+
/** No nodeId on the ref, or the id is not in the graph. */
|
|
25
|
+
| 'missing';
|
|
26
|
+
export interface GraphifyTypeRefResolution {
|
|
27
|
+
status: GraphifyTypeRefStatus;
|
|
28
|
+
/** The definition node when resolved; the stub itself otherwise. */
|
|
29
|
+
node: GraphifyNode | null;
|
|
30
|
+
/** Same-label definitions when the target was an unresolved stub. */
|
|
31
|
+
candidates: GraphifyNode[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Mirror graphify's `normalise_callable_label`: trim, strip surrounding
|
|
35
|
+
* parens/leading dots, lowercase. `SessionReader()` and `sessionreader`
|
|
36
|
+
* collapse to the same key.
|
|
37
|
+
*/
|
|
38
|
+
export declare function normalizeGraphifyLabel(label: string): string;
|
|
39
|
+
/** Prebuilt lookup state — build once per graph, resolve many refs. */
|
|
40
|
+
export interface GraphifyTypeResolver {
|
|
41
|
+
resolve(nodeId: string | undefined, fallbackLabel?: string): GraphifyTypeRefResolution;
|
|
42
|
+
}
|
|
43
|
+
export declare function createGraphifyTypeResolver(nodes: readonly GraphifyNode[]): GraphifyTypeResolver;
|
|
44
|
+
/** One-shot convenience over {@link createGraphifyTypeResolver}. */
|
|
45
|
+
export declare function resolveGraphifyTypeRef(nodes: readonly GraphifyNode[], ref: Pick<GraphifyReferenceInfo, 'nodeId'> | {
|
|
46
|
+
nodeId?: string;
|
|
47
|
+
} | undefined, fallbackLabel?: string): GraphifyTypeRefResolution;
|
|
48
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/graphify/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,+CAA+C;AAC/C,MAAM,MAAM,qBAAqB;AAC/B,oEAAoE;AAClE,UAAU;AACZ,mEAAmE;GACjE,WAAW;AACb,oEAAoE;GAClE,YAAY;AACd,2DAA2D;GACzD,SAAS,CAAC;AAEd,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,oEAAoE;IACpE,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,qEAAqE;IACrE,UAAU,EAAE,YAAY,EAAE,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM5D;AAaD,uEAAuE;AACvE,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAC;CACxF;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,GAAG,oBAAoB,CAwC/F;AAED,oEAAoE;AACpE,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,GAAG,EAAE,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC5E,aAAa,CAAC,EAAE,MAAM,GACrB,yBAAyB,CAE3B"}
|