@cleocode/contracts 2026.5.61 → 2026.5.63
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/dist/__tests__/llm-config-schema.test.d.ts +20 -0
- package/dist/__tests__/llm-config-schema.test.d.ts.map +1 -0
- package/dist/__tests__/llm-config-schema.test.js +121 -0
- package/dist/__tests__/llm-config-schema.test.js.map +1 -0
- package/dist/__tests__/nexus-scope-map.test.d.ts +8 -0
- package/dist/__tests__/nexus-scope-map.test.d.ts.map +1 -0
- package/dist/__tests__/nexus-scope-map.test.js +145 -0
- package/dist/__tests__/nexus-scope-map.test.js.map +1 -0
- package/dist/branch-lock.d.ts +11 -0
- package/dist/branch-lock.d.ts.map +1 -1
- package/dist/branch-lock.js +11 -0
- package/dist/branch-lock.js.map +1 -1
- package/dist/config.d.ts +116 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/data-accessor.d.ts +2 -0
- package/dist/data-accessor.d.ts.map +1 -1
- package/dist/data-accessor.js.map +1 -1
- package/dist/engine-result.d.ts +170 -0
- package/dist/engine-result.d.ts.map +1 -0
- package/dist/engine-result.js +123 -0
- package/dist/engine-result.js.map +1 -0
- package/dist/errors.d.ts +24 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +31 -0
- package/dist/errors.js.map +1 -1
- package/dist/exit-codes.d.ts +8 -1
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +7 -0
- package/dist/exit-codes.js.map +1 -1
- package/dist/graph.d.ts +88 -0
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +35 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +12 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/operations/llm.d.ts +380 -0
- package/dist/operations/llm.d.ts.map +1 -1
- package/dist/operations/nexus-scope-map.d.ts +540 -0
- package/dist/operations/nexus-scope-map.d.ts.map +1 -0
- package/dist/operations/nexus-scope-map.js +556 -0
- package/dist/operations/nexus-scope-map.js.map +1 -0
- package/dist/operations/nexus-scope.d.ts +185 -0
- package/dist/operations/nexus-scope.d.ts.map +1 -0
- package/dist/operations/nexus-scope.js +9 -0
- package/dist/operations/nexus-scope.js.map +1 -0
- package/dist/operations/session.d.ts +79 -0
- package/dist/operations/session.d.ts.map +1 -1
- package/dist/operations/tasks.d.ts +28 -0
- package/dist/operations/tasks.d.ts.map +1 -1
- package/dist/operations/worktree.d.ts +33 -0
- package/dist/operations/worktree.d.ts.map +1 -1
- package/dist/task.d.ts +17 -2
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +11 -1
- package/dist/task.js.map +1 -1
- package/dist/tasks.d.ts +0 -2
- package/dist/tasks.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/llm-config-schema.test.ts +135 -0
- package/src/__tests__/nexus-scope-map.test.ts +183 -0
- package/src/branch-lock.ts +11 -0
- package/src/config.ts +122 -5
- package/src/data-accessor.ts +3 -0
- package/src/engine-result.ts +220 -0
- package/src/errors.ts +34 -0
- package/src/exit-codes.ts +8 -0
- package/src/graph.ts +112 -0
- package/src/index.ts +82 -2
- package/src/operations/llm.ts +437 -0
- package/src/operations/nexus-scope-map.ts +597 -0
- package/src/operations/nexus-scope.ts +217 -0
- package/src/operations/session.ts +87 -0
- package/src/operations/tasks.ts +30 -0
- package/src/operations/worktree.ts +33 -0
- package/src/task.ts +30 -1
- package/src/tasks.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/operations/llm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,0CAA0C;AAC1C,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE5E,mDAAmD;AACnD,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAE5D,wCAAwC;AACxC,MAAM,W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AA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,QAAQ,EAAE,cAAc,CAAC;IACzB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kFAAkF;IAClF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,+EAA+E;IAC/E,gBAAgB,EAAE,oBAAoB,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,EAAE,cAAc,CAAC;IACzB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,MAAM,EAAE,gBAAgB,CAAC;IACzB,qEAAqE;IACrE,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,0EAA0E;IAC1E,gBAAgB,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACnD,wDAAwD;IACxD,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,wEAAwE;IACxE,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NEXUS_SCOPE_MAP — Single Source of Truth for Nexus operation metadata.
|
|
3
|
+
*
|
|
4
|
+
* Maps every key of {@link NexusOps} to a {@link NexusOperationDescriptor},
|
|
5
|
+
* enabling compile-time exhaustiveness checking (via `_ExhaustivenessCheck`)
|
|
6
|
+
* and runtime helpers (`getNexusDescriptor`, `listOpsByScope`).
|
|
7
|
+
*
|
|
8
|
+
* To add a new Nexus operation:
|
|
9
|
+
* 1. Add the key to `NexusOps` in `nexus.ts`.
|
|
10
|
+
* 2. Add the corresponding entry here — the build will fail until both are present.
|
|
11
|
+
*
|
|
12
|
+
* @task T9145
|
|
13
|
+
* @module operations/nexus-scope-map
|
|
14
|
+
*/
|
|
15
|
+
import type { NexusOps } from './nexus.js';
|
|
16
|
+
import type { NexusOperationDescriptor } from './nexus-scope.js';
|
|
17
|
+
/**
|
|
18
|
+
* Single Source of Truth mapping every NexusOps key to its descriptor.
|
|
19
|
+
*
|
|
20
|
+
* `satisfies Record<keyof NexusOps, NexusOperationDescriptor>` enforces
|
|
21
|
+
* exhaustiveness at compile time — adding a new key to NexusOps without a
|
|
22
|
+
* corresponding entry here is a type error.
|
|
23
|
+
*/
|
|
24
|
+
export declare const NEXUS_SCOPE_MAP: {
|
|
25
|
+
readonly status: {
|
|
26
|
+
readonly op: "status";
|
|
27
|
+
readonly description: "Check whether nexus.db is open and accessible.";
|
|
28
|
+
readonly scope: "project";
|
|
29
|
+
readonly effect: "read";
|
|
30
|
+
readonly stores: readonly ["nexus-graph"];
|
|
31
|
+
readonly requiresProject: true;
|
|
32
|
+
};
|
|
33
|
+
readonly list: {
|
|
34
|
+
readonly op: "list";
|
|
35
|
+
readonly description: "List all registered Nexus projects.";
|
|
36
|
+
readonly scope: "global";
|
|
37
|
+
readonly effect: "read";
|
|
38
|
+
readonly stores: readonly ["nexus-registry"];
|
|
39
|
+
readonly requiresProject: false;
|
|
40
|
+
};
|
|
41
|
+
readonly show: {
|
|
42
|
+
readonly op: "show";
|
|
43
|
+
readonly description: "Show details for a registered project.";
|
|
44
|
+
readonly scope: "global";
|
|
45
|
+
readonly effect: "read";
|
|
46
|
+
readonly stores: readonly ["nexus-registry"];
|
|
47
|
+
readonly requiresProject: false;
|
|
48
|
+
};
|
|
49
|
+
readonly resolve: {
|
|
50
|
+
readonly op: "resolve";
|
|
51
|
+
readonly description: "Resolve a symbol name to its graph node(s).";
|
|
52
|
+
readonly scope: "project";
|
|
53
|
+
readonly effect: "read";
|
|
54
|
+
readonly stores: readonly ["nexus-graph"];
|
|
55
|
+
readonly requiresProject: true;
|
|
56
|
+
};
|
|
57
|
+
readonly deps: {
|
|
58
|
+
readonly op: "deps";
|
|
59
|
+
readonly description: "List dependencies of a symbol (callers or callees).";
|
|
60
|
+
readonly scope: "project";
|
|
61
|
+
readonly effect: "read";
|
|
62
|
+
readonly stores: readonly ["nexus-graph"];
|
|
63
|
+
readonly requiresProject: true;
|
|
64
|
+
};
|
|
65
|
+
readonly graph: {
|
|
66
|
+
readonly op: "graph";
|
|
67
|
+
readonly description: "Return the raw graph (nodes + relations) for a project.";
|
|
68
|
+
readonly scope: "project";
|
|
69
|
+
readonly effect: "read";
|
|
70
|
+
readonly stores: readonly ["nexus-graph"];
|
|
71
|
+
readonly requiresProject: true;
|
|
72
|
+
};
|
|
73
|
+
readonly 'path.show': {
|
|
74
|
+
readonly op: "path.show";
|
|
75
|
+
readonly description: "Show the shortest graph path between two symbols.";
|
|
76
|
+
readonly scope: "project";
|
|
77
|
+
readonly effect: "read";
|
|
78
|
+
readonly stores: readonly ["nexus-graph"];
|
|
79
|
+
readonly requiresProject: true;
|
|
80
|
+
};
|
|
81
|
+
readonly 'blockers.show': {
|
|
82
|
+
readonly op: "blockers.show";
|
|
83
|
+
readonly description: "Show symbols that block a given symbol from being resolved.";
|
|
84
|
+
readonly scope: "project";
|
|
85
|
+
readonly effect: "read";
|
|
86
|
+
readonly stores: readonly ["nexus-graph"];
|
|
87
|
+
readonly requiresProject: true;
|
|
88
|
+
};
|
|
89
|
+
readonly 'orphans.list': {
|
|
90
|
+
readonly op: "orphans.list";
|
|
91
|
+
readonly description: "List graph nodes with no incoming or outgoing edges.";
|
|
92
|
+
readonly scope: "project";
|
|
93
|
+
readonly effect: "read";
|
|
94
|
+
readonly stores: readonly ["nexus-graph"];
|
|
95
|
+
readonly requiresProject: true;
|
|
96
|
+
};
|
|
97
|
+
readonly discover: {
|
|
98
|
+
readonly op: "discover";
|
|
99
|
+
readonly description: "Discover the codebase structure (file tree + symbol counts).";
|
|
100
|
+
readonly scope: "project";
|
|
101
|
+
readonly effect: "read";
|
|
102
|
+
readonly stores: readonly ["nexus-graph", "fs"];
|
|
103
|
+
readonly requiresProject: true;
|
|
104
|
+
};
|
|
105
|
+
readonly search: {
|
|
106
|
+
readonly op: "search";
|
|
107
|
+
readonly description: "Full-text / semantic search over symbol names and docstrings.";
|
|
108
|
+
readonly scope: "project";
|
|
109
|
+
readonly effect: "read";
|
|
110
|
+
readonly stores: readonly ["nexus-graph"];
|
|
111
|
+
readonly requiresProject: true;
|
|
112
|
+
};
|
|
113
|
+
readonly augment: {
|
|
114
|
+
readonly op: "augment";
|
|
115
|
+
readonly description: "Augment the graph with enriched metadata (embeddings, docs).";
|
|
116
|
+
readonly scope: "project";
|
|
117
|
+
readonly effect: "write";
|
|
118
|
+
readonly stores: readonly ["nexus-graph"];
|
|
119
|
+
readonly requiresProject: true;
|
|
120
|
+
};
|
|
121
|
+
readonly 'share.status': {
|
|
122
|
+
readonly op: "share.status";
|
|
123
|
+
readonly description: "Check snapshot sharing status for a project.";
|
|
124
|
+
readonly scope: "project";
|
|
125
|
+
readonly effect: "read";
|
|
126
|
+
readonly stores: readonly ["nexus-graph"];
|
|
127
|
+
readonly requiresProject: true;
|
|
128
|
+
};
|
|
129
|
+
readonly 'transfer.preview': {
|
|
130
|
+
readonly op: "transfer.preview";
|
|
131
|
+
readonly description: "Preview a graph transfer (dry-run diff).";
|
|
132
|
+
readonly scope: "cross";
|
|
133
|
+
readonly effect: "read";
|
|
134
|
+
readonly stores: readonly ["nexus-graph"];
|
|
135
|
+
readonly requiresProject: true;
|
|
136
|
+
};
|
|
137
|
+
readonly 'top-entries': {
|
|
138
|
+
readonly op: "top-entries";
|
|
139
|
+
readonly description: "Return the top-N highest-centrality nodes.";
|
|
140
|
+
readonly scope: "project";
|
|
141
|
+
readonly effect: "read";
|
|
142
|
+
readonly stores: readonly ["nexus-graph"];
|
|
143
|
+
readonly requiresProject: true;
|
|
144
|
+
};
|
|
145
|
+
readonly impact: {
|
|
146
|
+
readonly op: "impact";
|
|
147
|
+
readonly description: "Compute the blast radius (upstream/downstream) of a change.";
|
|
148
|
+
readonly scope: "project";
|
|
149
|
+
readonly effect: "read";
|
|
150
|
+
readonly stores: readonly ["nexus-graph"];
|
|
151
|
+
readonly requiresProject: true;
|
|
152
|
+
readonly indexSensitive: true;
|
|
153
|
+
};
|
|
154
|
+
readonly 'full-context': {
|
|
155
|
+
readonly op: "full-context";
|
|
156
|
+
readonly description: "Return the full 360-degree context for a symbol.";
|
|
157
|
+
readonly scope: "project";
|
|
158
|
+
readonly effect: "read";
|
|
159
|
+
readonly stores: readonly ["nexus-graph"];
|
|
160
|
+
readonly requiresProject: true;
|
|
161
|
+
};
|
|
162
|
+
readonly 'task-footprint': {
|
|
163
|
+
readonly op: "task-footprint";
|
|
164
|
+
readonly description: "Return graph nodes touched by a given task ID.";
|
|
165
|
+
readonly scope: "hybrid";
|
|
166
|
+
readonly effect: "read";
|
|
167
|
+
readonly stores: readonly ["nexus-graph", "tasks"];
|
|
168
|
+
readonly requiresProject: true;
|
|
169
|
+
};
|
|
170
|
+
readonly 'brain-anchors': {
|
|
171
|
+
readonly op: "brain-anchors";
|
|
172
|
+
readonly description: "Return BRAIN memory entries anchored to graph nodes.";
|
|
173
|
+
readonly scope: "hybrid";
|
|
174
|
+
readonly effect: "read";
|
|
175
|
+
readonly stores: readonly ["nexus-graph", "brain"];
|
|
176
|
+
readonly requiresProject: true;
|
|
177
|
+
};
|
|
178
|
+
readonly why: {
|
|
179
|
+
readonly op: "why";
|
|
180
|
+
readonly description: "Explain why a symbol exists (provenance + context).";
|
|
181
|
+
readonly scope: "hybrid";
|
|
182
|
+
readonly effect: "read";
|
|
183
|
+
readonly stores: readonly ["nexus-graph", "brain"];
|
|
184
|
+
readonly requiresProject: true;
|
|
185
|
+
};
|
|
186
|
+
readonly 'impact-full': {
|
|
187
|
+
readonly op: "impact-full";
|
|
188
|
+
readonly description: "Full multi-hop impact analysis with community context.";
|
|
189
|
+
readonly scope: "project";
|
|
190
|
+
readonly effect: "read";
|
|
191
|
+
readonly stores: readonly ["nexus-graph"];
|
|
192
|
+
readonly requiresProject: true;
|
|
193
|
+
readonly indexSensitive: true;
|
|
194
|
+
};
|
|
195
|
+
readonly 'route-map': {
|
|
196
|
+
readonly op: "route-map";
|
|
197
|
+
readonly description: "Generate a route map for execution flow tracing.";
|
|
198
|
+
readonly scope: "project";
|
|
199
|
+
readonly effect: "read";
|
|
200
|
+
readonly stores: readonly ["nexus-graph"];
|
|
201
|
+
readonly requiresProject: true;
|
|
202
|
+
};
|
|
203
|
+
readonly 'shape-check': {
|
|
204
|
+
readonly op: "shape-check";
|
|
205
|
+
readonly description: "Validate that a symbol conforms to a declared contract shape.";
|
|
206
|
+
readonly scope: "project";
|
|
207
|
+
readonly effect: "read";
|
|
208
|
+
readonly stores: readonly ["nexus-graph"];
|
|
209
|
+
readonly requiresProject: true;
|
|
210
|
+
};
|
|
211
|
+
readonly 'search-code': {
|
|
212
|
+
readonly op: "search-code";
|
|
213
|
+
readonly description: "Search code by pattern across the project graph.";
|
|
214
|
+
readonly scope: "project";
|
|
215
|
+
readonly effect: "read";
|
|
216
|
+
readonly stores: readonly ["nexus-graph", "fs"];
|
|
217
|
+
readonly requiresProject: true;
|
|
218
|
+
};
|
|
219
|
+
readonly wiki: {
|
|
220
|
+
readonly op: "wiki";
|
|
221
|
+
readonly description: "Generate a wiki-style description for a symbol or module.";
|
|
222
|
+
readonly scope: "project";
|
|
223
|
+
readonly effect: "read";
|
|
224
|
+
readonly stores: readonly ["nexus-graph"];
|
|
225
|
+
readonly requiresProject: true;
|
|
226
|
+
};
|
|
227
|
+
readonly 'contracts-show': {
|
|
228
|
+
readonly op: "contracts-show";
|
|
229
|
+
readonly description: "Show the contract compliance record for a symbol.";
|
|
230
|
+
readonly scope: "project";
|
|
231
|
+
readonly effect: "read";
|
|
232
|
+
readonly stores: readonly ["nexus-graph"];
|
|
233
|
+
readonly requiresProject: true;
|
|
234
|
+
};
|
|
235
|
+
readonly 'task-symbols': {
|
|
236
|
+
readonly op: "task-symbols";
|
|
237
|
+
readonly description: "List graph symbols associated with a task.";
|
|
238
|
+
readonly scope: "hybrid";
|
|
239
|
+
readonly effect: "read";
|
|
240
|
+
readonly stores: readonly ["nexus-graph", "tasks"];
|
|
241
|
+
readonly requiresProject: true;
|
|
242
|
+
};
|
|
243
|
+
readonly 'profile.view': {
|
|
244
|
+
readonly op: "profile.view";
|
|
245
|
+
readonly description: "View all user profile traits from the living-brain.";
|
|
246
|
+
readonly scope: "living-brain";
|
|
247
|
+
readonly effect: "read";
|
|
248
|
+
readonly stores: readonly ["brain"];
|
|
249
|
+
readonly requiresProject: false;
|
|
250
|
+
};
|
|
251
|
+
readonly 'profile.get': {
|
|
252
|
+
readonly op: "profile.get";
|
|
253
|
+
readonly description: "Get a single user profile trait.";
|
|
254
|
+
readonly scope: "living-brain";
|
|
255
|
+
readonly effect: "read";
|
|
256
|
+
readonly stores: readonly ["brain"];
|
|
257
|
+
readonly requiresProject: false;
|
|
258
|
+
};
|
|
259
|
+
readonly 'profile.import': {
|
|
260
|
+
readonly op: "profile.import";
|
|
261
|
+
readonly description: "Import user profile traits from a JSON file.";
|
|
262
|
+
readonly scope: "living-brain";
|
|
263
|
+
readonly effect: "write";
|
|
264
|
+
readonly stores: readonly ["brain"];
|
|
265
|
+
readonly requiresProject: false;
|
|
266
|
+
};
|
|
267
|
+
readonly 'profile.export': {
|
|
268
|
+
readonly op: "profile.export";
|
|
269
|
+
readonly description: "Export user profile traits to JSON.";
|
|
270
|
+
readonly scope: "living-brain";
|
|
271
|
+
readonly effect: "read";
|
|
272
|
+
readonly stores: readonly ["brain"];
|
|
273
|
+
readonly requiresProject: false;
|
|
274
|
+
};
|
|
275
|
+
readonly 'profile.reinforce': {
|
|
276
|
+
readonly op: "profile.reinforce";
|
|
277
|
+
readonly description: "Reinforce a user profile trait (increase confidence).";
|
|
278
|
+
readonly scope: "living-brain";
|
|
279
|
+
readonly effect: "write";
|
|
280
|
+
readonly stores: readonly ["brain"];
|
|
281
|
+
readonly requiresProject: false;
|
|
282
|
+
};
|
|
283
|
+
readonly 'profile.upsert': {
|
|
284
|
+
readonly op: "profile.upsert";
|
|
285
|
+
readonly description: "Upsert a user profile trait.";
|
|
286
|
+
readonly scope: "living-brain";
|
|
287
|
+
readonly effect: "write";
|
|
288
|
+
readonly stores: readonly ["brain"];
|
|
289
|
+
readonly requiresProject: false;
|
|
290
|
+
};
|
|
291
|
+
readonly 'profile.supersede': {
|
|
292
|
+
readonly op: "profile.supersede";
|
|
293
|
+
readonly description: "Mark a user profile trait as superseded by another.";
|
|
294
|
+
readonly scope: "living-brain";
|
|
295
|
+
readonly effect: "write";
|
|
296
|
+
readonly stores: readonly ["brain"];
|
|
297
|
+
readonly requiresProject: false;
|
|
298
|
+
};
|
|
299
|
+
readonly 'sigil.list': {
|
|
300
|
+
readonly op: "sigil.list";
|
|
301
|
+
readonly description: "List code sigils (bookmarks / anchors) in a project.";
|
|
302
|
+
readonly scope: "project";
|
|
303
|
+
readonly effect: "read";
|
|
304
|
+
readonly stores: readonly ["nexus-graph"];
|
|
305
|
+
readonly requiresProject: true;
|
|
306
|
+
};
|
|
307
|
+
readonly 'sigil.sync': {
|
|
308
|
+
readonly op: "sigil.sync";
|
|
309
|
+
readonly description: "Sync sigils with the current graph state.";
|
|
310
|
+
readonly scope: "project";
|
|
311
|
+
readonly effect: "write";
|
|
312
|
+
readonly stores: readonly ["nexus-graph"];
|
|
313
|
+
readonly requiresProject: true;
|
|
314
|
+
};
|
|
315
|
+
readonly init: {
|
|
316
|
+
readonly op: "init";
|
|
317
|
+
readonly description: "Initialize a new Nexus project database.";
|
|
318
|
+
readonly scope: "project";
|
|
319
|
+
readonly effect: "admin";
|
|
320
|
+
readonly stores: readonly ["nexus-graph", "nexus-registry"];
|
|
321
|
+
readonly requiresProject: true;
|
|
322
|
+
};
|
|
323
|
+
readonly register: {
|
|
324
|
+
readonly op: "register";
|
|
325
|
+
readonly description: "Register a project with the global Nexus registry.";
|
|
326
|
+
readonly scope: "global";
|
|
327
|
+
readonly effect: "admin";
|
|
328
|
+
readonly stores: readonly ["nexus-registry"];
|
|
329
|
+
readonly requiresProject: false;
|
|
330
|
+
};
|
|
331
|
+
readonly unregister: {
|
|
332
|
+
readonly op: "unregister";
|
|
333
|
+
readonly description: "Remove a project from the global Nexus registry.";
|
|
334
|
+
readonly scope: "global";
|
|
335
|
+
readonly effect: "admin";
|
|
336
|
+
readonly stores: readonly ["nexus-registry"];
|
|
337
|
+
readonly requiresProject: false;
|
|
338
|
+
};
|
|
339
|
+
readonly sync: {
|
|
340
|
+
readonly op: "sync";
|
|
341
|
+
readonly description: "Re-analyze and sync the project graph with the codebase.";
|
|
342
|
+
readonly scope: "project";
|
|
343
|
+
readonly effect: "write";
|
|
344
|
+
readonly stores: readonly ["nexus-graph", "fs"];
|
|
345
|
+
readonly requiresProject: true;
|
|
346
|
+
};
|
|
347
|
+
readonly 'permission.set': {
|
|
348
|
+
readonly op: "permission.set";
|
|
349
|
+
readonly description: "Set access permissions for a Nexus project.";
|
|
350
|
+
readonly scope: "global";
|
|
351
|
+
readonly effect: "admin";
|
|
352
|
+
readonly stores: readonly ["nexus-registry"];
|
|
353
|
+
readonly requiresProject: false;
|
|
354
|
+
};
|
|
355
|
+
readonly reconcile: {
|
|
356
|
+
readonly op: "reconcile";
|
|
357
|
+
readonly description: "Reconcile graph state with on-disk source files.";
|
|
358
|
+
readonly scope: "project";
|
|
359
|
+
readonly effect: "write";
|
|
360
|
+
readonly stores: readonly ["nexus-graph", "fs"];
|
|
361
|
+
readonly requiresProject: true;
|
|
362
|
+
};
|
|
363
|
+
readonly 'share.snapshot.export': {
|
|
364
|
+
readonly op: "share.snapshot.export";
|
|
365
|
+
readonly description: "Export a shareable snapshot of the project graph.";
|
|
366
|
+
readonly scope: "project";
|
|
367
|
+
readonly effect: "read";
|
|
368
|
+
readonly stores: readonly ["nexus-graph", "fs"];
|
|
369
|
+
readonly requiresProject: true;
|
|
370
|
+
};
|
|
371
|
+
readonly 'share.snapshot.import': {
|
|
372
|
+
readonly op: "share.snapshot.import";
|
|
373
|
+
readonly description: "Import a shared project graph snapshot.";
|
|
374
|
+
readonly scope: "project";
|
|
375
|
+
readonly effect: "write";
|
|
376
|
+
readonly stores: readonly ["nexus-graph"];
|
|
377
|
+
readonly requiresProject: true;
|
|
378
|
+
};
|
|
379
|
+
readonly transfer: {
|
|
380
|
+
readonly op: "transfer";
|
|
381
|
+
readonly description: "Transfer graph data between projects.";
|
|
382
|
+
readonly scope: "cross";
|
|
383
|
+
readonly effect: "write";
|
|
384
|
+
readonly stores: readonly ["nexus-graph"];
|
|
385
|
+
readonly requiresProject: true;
|
|
386
|
+
};
|
|
387
|
+
readonly 'contracts-sync': {
|
|
388
|
+
readonly op: "contracts-sync";
|
|
389
|
+
readonly description: "Sync contract compliance records with the graph.";
|
|
390
|
+
readonly scope: "project";
|
|
391
|
+
readonly effect: "write";
|
|
392
|
+
readonly stores: readonly ["nexus-graph"];
|
|
393
|
+
readonly requiresProject: true;
|
|
394
|
+
};
|
|
395
|
+
readonly 'contracts-link-tasks': {
|
|
396
|
+
readonly op: "contracts-link-tasks";
|
|
397
|
+
readonly description: "Link contract compliance records to task IDs.";
|
|
398
|
+
readonly scope: "hybrid";
|
|
399
|
+
readonly effect: "write";
|
|
400
|
+
readonly stores: readonly ["nexus-graph", "tasks"];
|
|
401
|
+
readonly requiresProject: true;
|
|
402
|
+
};
|
|
403
|
+
readonly 'conduit-scan': {
|
|
404
|
+
readonly op: "conduit-scan";
|
|
405
|
+
readonly description: "Scan Conduit messaging patterns into the graph.";
|
|
406
|
+
readonly scope: "project";
|
|
407
|
+
readonly effect: "write";
|
|
408
|
+
readonly stores: readonly ["nexus-graph"];
|
|
409
|
+
readonly requiresProject: true;
|
|
410
|
+
};
|
|
411
|
+
readonly clusters: {
|
|
412
|
+
readonly op: "clusters";
|
|
413
|
+
readonly description: "Return detected community clusters in the graph.";
|
|
414
|
+
readonly scope: "project";
|
|
415
|
+
readonly effect: "read";
|
|
416
|
+
readonly stores: readonly ["nexus-graph"];
|
|
417
|
+
readonly requiresProject: true;
|
|
418
|
+
};
|
|
419
|
+
readonly flows: {
|
|
420
|
+
readonly op: "flows";
|
|
421
|
+
readonly description: "Return detected execution flows (process traces).";
|
|
422
|
+
readonly scope: "project";
|
|
423
|
+
readonly effect: "read";
|
|
424
|
+
readonly stores: readonly ["nexus-graph"];
|
|
425
|
+
readonly requiresProject: true;
|
|
426
|
+
};
|
|
427
|
+
readonly context: {
|
|
428
|
+
readonly op: "context";
|
|
429
|
+
readonly description: "Return project context summary (node/relation counts, freshness).";
|
|
430
|
+
readonly scope: "project";
|
|
431
|
+
readonly effect: "read";
|
|
432
|
+
readonly stores: readonly ["nexus-graph"];
|
|
433
|
+
readonly requiresProject: true;
|
|
434
|
+
readonly indexSensitive: true;
|
|
435
|
+
};
|
|
436
|
+
readonly 'projects.list': {
|
|
437
|
+
readonly op: "projects.list";
|
|
438
|
+
readonly description: "List all registered projects (alias: list).";
|
|
439
|
+
readonly scope: "global";
|
|
440
|
+
readonly effect: "read";
|
|
441
|
+
readonly stores: readonly ["nexus-registry"];
|
|
442
|
+
readonly requiresProject: false;
|
|
443
|
+
};
|
|
444
|
+
readonly 'projects.register': {
|
|
445
|
+
readonly op: "projects.register";
|
|
446
|
+
readonly description: "Register a project (alias: register).";
|
|
447
|
+
readonly scope: "global";
|
|
448
|
+
readonly effect: "admin";
|
|
449
|
+
readonly stores: readonly ["nexus-registry"];
|
|
450
|
+
readonly requiresProject: false;
|
|
451
|
+
};
|
|
452
|
+
readonly 'projects.remove': {
|
|
453
|
+
readonly op: "projects.remove";
|
|
454
|
+
readonly description: "Remove a project (alias: unregister).";
|
|
455
|
+
readonly scope: "global";
|
|
456
|
+
readonly effect: "admin";
|
|
457
|
+
readonly stores: readonly ["nexus-registry"];
|
|
458
|
+
readonly requiresProject: false;
|
|
459
|
+
};
|
|
460
|
+
readonly 'projects.scan': {
|
|
461
|
+
readonly op: "projects.scan";
|
|
462
|
+
readonly description: "Scan a project directory and update the registry.";
|
|
463
|
+
readonly scope: "global";
|
|
464
|
+
readonly effect: "admin";
|
|
465
|
+
readonly stores: readonly ["nexus-registry", "fs"];
|
|
466
|
+
readonly requiresProject: false;
|
|
467
|
+
};
|
|
468
|
+
readonly 'projects.clean': {
|
|
469
|
+
readonly op: "projects.clean";
|
|
470
|
+
readonly description: "Remove stale project entries from the registry.";
|
|
471
|
+
readonly scope: "global";
|
|
472
|
+
readonly effect: "admin";
|
|
473
|
+
readonly stores: readonly ["nexus-registry"];
|
|
474
|
+
readonly requiresProject: false;
|
|
475
|
+
};
|
|
476
|
+
readonly 'refresh-bridge': {
|
|
477
|
+
readonly op: "refresh-bridge";
|
|
478
|
+
readonly description: "Refresh the Nexus → BRAIN cross-store bridge.";
|
|
479
|
+
readonly scope: "hybrid";
|
|
480
|
+
readonly effect: "write";
|
|
481
|
+
readonly stores: readonly ["nexus-graph", "brain"];
|
|
482
|
+
readonly requiresProject: true;
|
|
483
|
+
};
|
|
484
|
+
readonly diff: {
|
|
485
|
+
readonly op: "diff";
|
|
486
|
+
readonly description: "Diff the graph between two commits or snapshots.";
|
|
487
|
+
readonly scope: "project";
|
|
488
|
+
readonly effect: "read";
|
|
489
|
+
readonly stores: readonly ["nexus-graph", "fs"];
|
|
490
|
+
readonly requiresProject: true;
|
|
491
|
+
readonly indexSensitive: true;
|
|
492
|
+
};
|
|
493
|
+
readonly 'query-cte': {
|
|
494
|
+
readonly op: "query-cte";
|
|
495
|
+
readonly description: "Execute a raw CTE query against the Nexus graph DB.";
|
|
496
|
+
readonly scope: "project";
|
|
497
|
+
readonly effect: "read";
|
|
498
|
+
readonly stores: readonly ["nexus-graph"];
|
|
499
|
+
readonly requiresProject: true;
|
|
500
|
+
};
|
|
501
|
+
readonly 'hot-paths': {
|
|
502
|
+
readonly op: "hot-paths";
|
|
503
|
+
readonly description: "Return the most frequently traversed call paths.";
|
|
504
|
+
readonly scope: "project";
|
|
505
|
+
readonly effect: "read";
|
|
506
|
+
readonly stores: readonly ["nexus-graph"];
|
|
507
|
+
readonly requiresProject: true;
|
|
508
|
+
};
|
|
509
|
+
readonly 'hot-nodes': {
|
|
510
|
+
readonly op: "hot-nodes";
|
|
511
|
+
readonly description: "Return the highest-degree (most connected) nodes.";
|
|
512
|
+
readonly scope: "project";
|
|
513
|
+
readonly effect: "read";
|
|
514
|
+
readonly stores: readonly ["nexus-graph"];
|
|
515
|
+
readonly requiresProject: true;
|
|
516
|
+
};
|
|
517
|
+
readonly 'cold-symbols': {
|
|
518
|
+
readonly op: "cold-symbols";
|
|
519
|
+
readonly description: "Return low-usage symbols that may be candidates for removal.";
|
|
520
|
+
readonly scope: "project";
|
|
521
|
+
readonly effect: "read";
|
|
522
|
+
readonly stores: readonly ["nexus-graph"];
|
|
523
|
+
readonly requiresProject: true;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Return the {@link NexusOperationDescriptor} for a given Nexus operation key.
|
|
528
|
+
*
|
|
529
|
+
* @param op - Any key of {@link NexusOps}
|
|
530
|
+
* @returns The corresponding descriptor
|
|
531
|
+
*/
|
|
532
|
+
export declare function getNexusDescriptor(op: keyof NexusOps): NexusOperationDescriptor;
|
|
533
|
+
/**
|
|
534
|
+
* Return all Nexus operation keys that match a given {@link NexusScope}.
|
|
535
|
+
*
|
|
536
|
+
* @param scope - The scope to filter by
|
|
537
|
+
* @returns Array of matching operation keys
|
|
538
|
+
*/
|
|
539
|
+
export declare function listOpsByScope(scope: import('./nexus-scope.js').NexusScope): Array<keyof NexusOps>;
|
|
540
|
+
//# sourceMappingURL=nexus-scope-map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nexus-scope-map.d.ts","sourceRoot":"","sources":["../../src/operations/nexus-scope-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAMjE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmgByC,CAAC;AA8BtE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,QAAQ,GAAG,wBAAwB,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,kBAAkB,EAAE,UAAU,GAC3C,KAAK,CAAC,MAAM,QAAQ,CAAC,CAIvB"}
|