@ttsc/graph 0.16.5 → 0.16.7
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 +22 -0
- package/lib/TtscGraphApplication.js +58 -22
- package/lib/TtscGraphApplication.js.map +1 -1
- package/lib/model/TtscGraphMemory.js +43 -4
- package/lib/model/TtscGraphMemory.js.map +1 -1
- package/lib/model/loadGraph.js +17 -17
- package/lib/server/accessAliases.js +53 -0
- package/lib/server/accessAliases.js.map +1 -0
- package/lib/server/createServer.js +1490 -657
- package/lib/server/createServer.js.map +1 -1
- package/lib/server/instructions.js +81 -21
- package/lib/server/instructions.js.map +1 -1
- package/lib/server/pathPolicy.js +35 -0
- package/lib/server/pathPolicy.js.map +1 -0
- package/lib/server/resultGuide.js +16 -0
- package/lib/server/resultGuide.js.map +1 -0
- package/lib/server/runDetails.js +474 -0
- package/lib/server/runDetails.js.map +1 -0
- package/lib/server/{runIndex.js → runEntrypoints.js} +92 -28
- package/lib/server/runEntrypoints.js.map +1 -0
- package/lib/server/runLookup.js +246 -0
- package/lib/server/runLookup.js.map +1 -0
- package/lib/server/runOverview.js +44 -27
- package/lib/server/runOverview.js.map +1 -1
- package/lib/server/runTour.js +737 -0
- package/lib/server/runTour.js.map +1 -0
- package/lib/server/runTrace.js +224 -43
- package/lib/server/runTrace.js.map +1 -1
- package/lib/structures/ITtscGraphDetails.js +3 -0
- package/lib/structures/ITtscGraphDetails.js.map +1 -0
- package/lib/structures/ITtscGraphEntrypoints.js +3 -0
- package/lib/structures/ITtscGraphEntrypoints.js.map +1 -0
- package/lib/structures/{ITtscGraphExpand.js → ITtscGraphEscape.js} +1 -1
- package/lib/structures/ITtscGraphEscape.js.map +1 -0
- package/lib/structures/ITtscGraphLookup.js +3 -0
- package/lib/structures/ITtscGraphLookup.js.map +1 -0
- package/lib/structures/{ITtscGraphIndex.js → ITtscGraphNext.js} +1 -1
- package/lib/structures/ITtscGraphNext.js.map +1 -0
- package/lib/structures/{ITtscGraphQuery.js → ITtscGraphTour.js} +1 -1
- package/lib/structures/ITtscGraphTour.js.map +1 -0
- package/lib/structures/index.js +6 -3
- package/lib/structures/index.js.map +1 -1
- package/package.json +2 -2
- package/src/TtscGraphApplication.ts +70 -30
- package/src/model/TtscGraphMemory.ts +46 -4
- package/src/server/accessAliases.ts +55 -0
- package/src/server/createServer.ts +4 -7
- package/src/server/instructions.ts +81 -21
- package/src/server/pathPolicy.ts +43 -0
- package/src/server/resultGuide.ts +20 -0
- package/src/server/runDetails.ts +553 -0
- package/src/server/{runIndex.ts → runEntrypoints.ts} +116 -36
- package/src/server/runLookup.ts +284 -0
- package/src/server/runOverview.ts +59 -31
- package/src/server/runTour.ts +881 -0
- package/src/server/runTrace.ts +299 -45
- package/src/structures/ITtscGraphApplication.ts +75 -56
- package/src/structures/ITtscGraphDecorator.ts +12 -14
- package/src/structures/ITtscGraphDetails.ts +197 -0
- package/src/structures/ITtscGraphEntrypoints.ts +149 -0
- package/src/structures/ITtscGraphEscape.ts +49 -0
- package/src/structures/ITtscGraphEvidence.ts +5 -8
- package/src/structures/ITtscGraphLookup.ts +82 -0
- package/src/structures/ITtscGraphNext.ts +23 -0
- package/src/structures/ITtscGraphNode.ts +10 -4
- package/src/structures/ITtscGraphOverview.ts +41 -18
- package/src/structures/ITtscGraphTour.ts +150 -0
- package/src/structures/ITtscGraphTrace.ts +93 -13
- package/src/structures/TtscGraphNodeKind.ts +2 -2
- package/src/structures/index.ts +6 -3
- package/lib/server/runExpand.js +0 -177
- package/lib/server/runExpand.js.map +0 -1
- package/lib/server/runIndex.js.map +0 -1
- package/lib/server/runQuery.js +0 -147
- package/lib/server/runQuery.js.map +0 -1
- package/lib/structures/ITtscGraphExpand.js.map +0 -1
- package/lib/structures/ITtscGraphIndex.js.map +0 -1
- package/lib/structures/ITtscGraphQuery.js.map +0 -1
- package/src/server/runExpand.ts +0 -186
- package/src/server/runQuery.ts +0 -150
- package/src/structures/ITtscGraphExpand.ts +0 -85
- package/src/structures/ITtscGraphIndex.ts +0 -100
- package/src/structures/ITtscGraphQuery.ts +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** The ranked hits the `graph_query` tool returns for a natural code query. */
|
|
2
|
-
export interface ITtscGraphQuery {
|
|
3
|
-
hits: ITtscGraphQuery.IHit[];
|
|
4
|
-
|
|
5
|
-
/** Follow-up handles for source or member details. */
|
|
6
|
-
next: ITtscGraphQuery.INext;
|
|
7
|
-
}
|
|
8
|
-
export namespace ITtscGraphQuery {
|
|
9
|
-
/** Find the symbols and clusters most relevant to a natural code query. */
|
|
10
|
-
export interface IProps {
|
|
11
|
-
/**
|
|
12
|
-
* What to find, in natural language and code vocabulary mixed freely — a
|
|
13
|
-
* symbol name, a dotted member (`OrderService.create`), or a phrase
|
|
14
|
-
* (`shopping order create`, `repository find relations`). Exact names are
|
|
15
|
-
* not required; subword and CamelCase matches rank too.
|
|
16
|
-
*/
|
|
17
|
-
query: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Maximum hits to return.
|
|
21
|
-
*
|
|
22
|
-
* @default 12
|
|
23
|
-
*/
|
|
24
|
-
limit?: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** One ranked hit with a handle to follow via `graph_expand` or `graph_trace`. */
|
|
28
|
-
export interface IHit {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
kind: string;
|
|
32
|
-
file: string;
|
|
33
|
-
/** 1-based declaration line, when known. */
|
|
34
|
-
line?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The hit's declaration signature, so you can often answer without
|
|
37
|
-
* expanding.
|
|
38
|
-
*/
|
|
39
|
-
signature?: string;
|
|
40
|
-
/** Relative relevance; higher is a better match. */
|
|
41
|
-
score: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** Tool-call handles suggested by this index result. */
|
|
45
|
-
export interface INext {
|
|
46
|
-
/** Pass these ids to `graph_expand`, with `source: true` only when needed. */
|
|
47
|
-
expand: string[];
|
|
48
|
-
}
|
|
49
|
-
}
|