@qontinui/navigation 0.1.1 → 0.1.3
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/index.cjs +254 -224
- package/dist/index.d.cts +63 -12
- package/dist/index.d.ts +63 -12
- package/dist/index.js +242 -214
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/groups.ts
|
|
2
|
-
var
|
|
2
|
+
var WORKSPACE_ITEMS = [
|
|
3
3
|
{
|
|
4
4
|
id: "visual-dashboard",
|
|
5
5
|
label: "Dashboard",
|
|
@@ -8,15 +8,7 @@ var TOP_LEVEL_ITEMS = [
|
|
|
8
8
|
route: "/tools/visual-automation",
|
|
9
9
|
color: "#10B981",
|
|
10
10
|
productMode: "visual"
|
|
11
|
-
}
|
|
12
|
-
];
|
|
13
|
-
var TOP_LEVEL_GROUP = {
|
|
14
|
-
id: "top-level",
|
|
15
|
-
label: "",
|
|
16
|
-
items: TOP_LEVEL_ITEMS,
|
|
17
|
-
defaultExpanded: true
|
|
18
|
-
};
|
|
19
|
-
var RUN_ITEMS = [
|
|
11
|
+
},
|
|
20
12
|
{
|
|
21
13
|
id: "prompt-home",
|
|
22
14
|
label: "Home",
|
|
@@ -35,15 +27,6 @@ var RUN_ITEMS = [
|
|
|
35
27
|
color: "#10B981",
|
|
36
28
|
productMode: "visual"
|
|
37
29
|
},
|
|
38
|
-
{
|
|
39
|
-
id: "active",
|
|
40
|
-
label: "Active",
|
|
41
|
-
icon: "Activity",
|
|
42
|
-
description: "Monitor active executions",
|
|
43
|
-
route: "/runs/active",
|
|
44
|
-
color: "#4A90D9",
|
|
45
|
-
productMode: "ai"
|
|
46
|
-
},
|
|
47
30
|
{
|
|
48
31
|
id: "terminal",
|
|
49
32
|
label: "Terminal",
|
|
@@ -55,13 +38,13 @@ var RUN_ITEMS = [
|
|
|
55
38
|
platforms: ["runner"]
|
|
56
39
|
},
|
|
57
40
|
{
|
|
58
|
-
id: "
|
|
59
|
-
label: "
|
|
60
|
-
icon: "
|
|
61
|
-
description: "
|
|
62
|
-
route: "/
|
|
63
|
-
color: "#
|
|
64
|
-
|
|
41
|
+
id: "active",
|
|
42
|
+
label: "Active",
|
|
43
|
+
icon: "Activity",
|
|
44
|
+
description: "Monitor active executions",
|
|
45
|
+
route: "/runs/active",
|
|
46
|
+
color: "#4A90D9",
|
|
47
|
+
productMode: "ai"
|
|
65
48
|
},
|
|
66
49
|
{
|
|
67
50
|
id: "productivity",
|
|
@@ -71,21 +54,12 @@ var RUN_ITEMS = [
|
|
|
71
54
|
route: "/productivity",
|
|
72
55
|
color: "#F59E0B",
|
|
73
56
|
platforms: ["runner"]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "wrappers",
|
|
77
|
-
label: "Wrappers",
|
|
78
|
-
icon: "Package",
|
|
79
|
-
description: "Wrapper configurations and manifest management",
|
|
80
|
-
route: "/wrappers",
|
|
81
|
-
color: "#F59E0B",
|
|
82
|
-
platforms: ["runner"]
|
|
83
57
|
}
|
|
84
58
|
];
|
|
85
|
-
var
|
|
86
|
-
id: "
|
|
87
|
-
label: "
|
|
88
|
-
items:
|
|
59
|
+
var WORKSPACE_GROUP = {
|
|
60
|
+
id: "workspace",
|
|
61
|
+
label: "WORKSPACE",
|
|
62
|
+
items: WORKSPACE_ITEMS,
|
|
89
63
|
defaultExpanded: true
|
|
90
64
|
};
|
|
91
65
|
var SESSION_ITEMS = [
|
|
@@ -173,7 +147,7 @@ var RUNS_ITEMS = [
|
|
|
173
147
|
platforms: ["web"]
|
|
174
148
|
}
|
|
175
149
|
];
|
|
176
|
-
var
|
|
150
|
+
var REVIEW_ITEMS = [
|
|
177
151
|
{
|
|
178
152
|
id: "runs",
|
|
179
153
|
label: "Runs",
|
|
@@ -195,40 +169,32 @@ var OBSERVE_ITEMS = [
|
|
|
195
169
|
productMode: "ai"
|
|
196
170
|
},
|
|
197
171
|
{
|
|
198
|
-
id: "
|
|
199
|
-
label: "
|
|
200
|
-
icon: "
|
|
201
|
-
description: "
|
|
202
|
-
route: "/
|
|
203
|
-
color: "#
|
|
204
|
-
productMode: "ai"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
id: "processes",
|
|
208
|
-
label: "Processes",
|
|
209
|
-
icon: "Cpu",
|
|
210
|
-
description: "Manage and monitor spawned child processes",
|
|
211
|
-
color: "#06B6D4",
|
|
172
|
+
id: "memory",
|
|
173
|
+
label: "Memory",
|
|
174
|
+
icon: "Brain",
|
|
175
|
+
description: "Cross-session observation memory from past runs",
|
|
176
|
+
route: "/observe/memory",
|
|
177
|
+
color: "#8B5CF6",
|
|
212
178
|
productMode: "ai"
|
|
213
179
|
},
|
|
214
180
|
{
|
|
215
|
-
id: "
|
|
216
|
-
label: "
|
|
217
|
-
icon: "
|
|
218
|
-
description: "
|
|
219
|
-
route: "/observe/
|
|
220
|
-
color: "#
|
|
221
|
-
platforms: ["runner"]
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
id: "automation-health",
|
|
225
|
-
label: "Automation Health",
|
|
226
|
-
icon: "Activity",
|
|
227
|
-
description: "UI Bridge automation quality, selector reliability, and improvement recommendations",
|
|
228
|
-
color: "#10B981",
|
|
181
|
+
id: "knowledge-explorer",
|
|
182
|
+
label: "Knowledge",
|
|
183
|
+
icon: "Globe",
|
|
184
|
+
description: "Search external knowledge sources and view acquisition stats \u2014 web search, vulnerability intelligence, API docs",
|
|
185
|
+
route: "/observe/knowledge",
|
|
186
|
+
color: "#F97316",
|
|
229
187
|
platforms: ["runner"],
|
|
230
188
|
productMode: "ai"
|
|
231
|
-
}
|
|
189
|
+
}
|
|
190
|
+
];
|
|
191
|
+
var REVIEW_GROUP = {
|
|
192
|
+
id: "review",
|
|
193
|
+
label: "REVIEW",
|
|
194
|
+
items: REVIEW_ITEMS,
|
|
195
|
+
defaultExpanded: true
|
|
196
|
+
};
|
|
197
|
+
var SPEND_ITEMS = [
|
|
232
198
|
{
|
|
233
199
|
id: "llm-analytics",
|
|
234
200
|
label: "LLM Analytics",
|
|
@@ -248,98 +214,41 @@ var OBSERVE_ITEMS = [
|
|
|
248
214
|
productMode: "ai"
|
|
249
215
|
}
|
|
250
216
|
];
|
|
251
|
-
var
|
|
252
|
-
id: "
|
|
253
|
-
label: "
|
|
254
|
-
items:
|
|
217
|
+
var SPEND_GROUP = {
|
|
218
|
+
id: "spend",
|
|
219
|
+
label: "SPEND",
|
|
220
|
+
items: SPEND_ITEMS,
|
|
255
221
|
defaultExpanded: false
|
|
256
222
|
};
|
|
257
|
-
var
|
|
223
|
+
var AUTOMATE_ITEMS = [
|
|
258
224
|
{
|
|
259
|
-
id: "
|
|
260
|
-
label: "
|
|
261
|
-
icon: "
|
|
262
|
-
description: "
|
|
263
|
-
route: "/observe/memory",
|
|
264
|
-
color: "#8B5CF6",
|
|
265
|
-
productMode: "ai"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
id: "knowledge-explorer",
|
|
269
|
-
label: "Knowledge",
|
|
270
|
-
icon: "Globe",
|
|
271
|
-
description: "Search external knowledge sources and view acquisition stats \u2014 web search, vulnerability intelligence, API docs",
|
|
272
|
-
route: "/observe/knowledge",
|
|
273
|
-
color: "#F97316",
|
|
274
|
-
platforms: ["runner"],
|
|
275
|
-
productMode: "ai"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
id: "decision-trail",
|
|
279
|
-
label: "Decision Trail",
|
|
280
|
-
icon: "ListChecks",
|
|
281
|
-
description: "Architectural decision history \u2014 what was decided, why, and what alternatives were considered",
|
|
282
|
-
route: "/observe/decision-trail",
|
|
283
|
-
color: "#8B5CF6",
|
|
284
|
-
productMode: "ai",
|
|
285
|
-
platforms: ["runner"]
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
id: "session-recap",
|
|
289
|
-
label: "Session Recap",
|
|
290
|
-
icon: "GitBranch",
|
|
291
|
-
description: "Semantic dependency map of what was built \u2014 files, types, endpoints, and how they connect",
|
|
292
|
-
route: "/observe/session-recap",
|
|
293
|
-
color: "#8B5CF6",
|
|
294
|
-
platforms: ["runner"],
|
|
295
|
-
productMode: "ai"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
id: "reflection",
|
|
299
|
-
label: "Reflection",
|
|
300
|
-
icon: "RotateCcw",
|
|
301
|
-
description: "Reflection fix effectiveness and history",
|
|
302
|
-
productMode: "ai"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
id: "architecture",
|
|
306
|
-
label: "Architecture",
|
|
307
|
-
icon: "GitBranch",
|
|
308
|
-
description: "Component dependency graph and SDK project architecture",
|
|
225
|
+
id: "tasks",
|
|
226
|
+
label: "Scheduled Tasks",
|
|
227
|
+
icon: "Calendar",
|
|
228
|
+
description: "Manage scheduled automation",
|
|
309
229
|
productMode: "ai"
|
|
310
230
|
},
|
|
311
231
|
{
|
|
312
|
-
id: "
|
|
313
|
-
label: "
|
|
314
|
-
icon: "
|
|
315
|
-
description: "
|
|
316
|
-
color: "#06B6D4",
|
|
317
|
-
platforms: ["runner"]
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
id: "development-intelligence",
|
|
321
|
-
label: "Dev Intelligence",
|
|
322
|
-
icon: "Brain",
|
|
323
|
-
description: "Coverage gap analysis, complexity scoring, drift detection, and dead feature identification",
|
|
324
|
-
route: "/observe/development-intelligence",
|
|
325
|
-
color: "#8B5CF6",
|
|
326
|
-
platforms: ["runner"],
|
|
232
|
+
id: "triggers",
|
|
233
|
+
label: "Triggers",
|
|
234
|
+
icon: "Zap",
|
|
235
|
+
description: "Event-driven workflow automation",
|
|
327
236
|
productMode: "ai"
|
|
328
237
|
},
|
|
329
238
|
{
|
|
330
|
-
id: "
|
|
331
|
-
label: "
|
|
332
|
-
icon: "
|
|
333
|
-
description: "
|
|
334
|
-
route: "/observe/
|
|
239
|
+
id: "watchers",
|
|
240
|
+
label: "Watchers",
|
|
241
|
+
icon: "Eye",
|
|
242
|
+
description: "Scheduled reactive agents that monitor the activity timeline",
|
|
243
|
+
route: "/observe/watchers",
|
|
335
244
|
color: "#06B6D4",
|
|
336
245
|
platforms: ["runner"]
|
|
337
246
|
}
|
|
338
247
|
];
|
|
339
|
-
var
|
|
340
|
-
id: "
|
|
341
|
-
label: "
|
|
342
|
-
items:
|
|
248
|
+
var AUTOMATE_GROUP = {
|
|
249
|
+
id: "automate",
|
|
250
|
+
label: "AUTOMATE",
|
|
251
|
+
items: AUTOMATE_ITEMS,
|
|
343
252
|
defaultExpanded: false
|
|
344
253
|
};
|
|
345
254
|
var BUILD_ITEMS = [
|
|
@@ -350,7 +259,11 @@ var BUILD_ITEMS = [
|
|
|
350
259
|
description: "Build phase-based automation workflows",
|
|
351
260
|
route: "/build/workflows",
|
|
352
261
|
color: "var(--brand-secondary)",
|
|
353
|
-
productMode: "ai"
|
|
262
|
+
productMode: "ai",
|
|
263
|
+
// Advanced surface — demoted from the default nav now that the Terminal is
|
|
264
|
+
// the primary entry point. Reached via the Terminal "save as workflow"
|
|
265
|
+
// disclosure or by opting into "Show advanced automation features".
|
|
266
|
+
hidden: true
|
|
354
267
|
},
|
|
355
268
|
{
|
|
356
269
|
id: "dag-workflow-editor",
|
|
@@ -360,7 +273,8 @@ var BUILD_ITEMS = [
|
|
|
360
273
|
route: "/build/dag-editor",
|
|
361
274
|
color: "#6366f1",
|
|
362
275
|
platforms: ["runner"],
|
|
363
|
-
productMode: "ai"
|
|
276
|
+
productMode: "ai",
|
|
277
|
+
hidden: true
|
|
364
278
|
},
|
|
365
279
|
{
|
|
366
280
|
id: "step-builders",
|
|
@@ -369,7 +283,8 @@ var BUILD_ITEMS = [
|
|
|
369
283
|
description: "Build and browse step templates",
|
|
370
284
|
route: "/build/templates",
|
|
371
285
|
color: "var(--brand-secondary)",
|
|
372
|
-
productMode: "ai"
|
|
286
|
+
productMode: "ai",
|
|
287
|
+
hidden: true
|
|
373
288
|
},
|
|
374
289
|
{
|
|
375
290
|
id: "library",
|
|
@@ -398,6 +313,15 @@ var BUILD_ITEMS = [
|
|
|
398
313
|
color: "var(--brand-secondary)",
|
|
399
314
|
productMode: "ai"
|
|
400
315
|
},
|
|
316
|
+
{
|
|
317
|
+
id: "regression",
|
|
318
|
+
label: "Regression",
|
|
319
|
+
icon: "ShieldCheck",
|
|
320
|
+
description: "Run auto-generated regression suites against the live UI Bridge registry; review coverage and self-diagnoses for failures",
|
|
321
|
+
color: "var(--brand-secondary)",
|
|
322
|
+
platforms: ["runner"],
|
|
323
|
+
productMode: "ai"
|
|
324
|
+
},
|
|
401
325
|
{
|
|
402
326
|
id: "vga",
|
|
403
327
|
label: "Visual GUI",
|
|
@@ -407,6 +331,16 @@ var BUILD_ITEMS = [
|
|
|
407
331
|
color: "var(--brand-secondary)",
|
|
408
332
|
productMode: "both"
|
|
409
333
|
},
|
|
334
|
+
{
|
|
335
|
+
id: "orchestration-loop",
|
|
336
|
+
label: "Orchestration",
|
|
337
|
+
icon: "Repeat",
|
|
338
|
+
description: "Iterative workflow loop with pipeline mode (build/reflect/fix)",
|
|
339
|
+
route: "/orchestration-loop",
|
|
340
|
+
color: "#8B5CF6",
|
|
341
|
+
platforms: ["runner"],
|
|
342
|
+
hidden: true
|
|
343
|
+
},
|
|
410
344
|
{
|
|
411
345
|
id: "demo-video",
|
|
412
346
|
label: "Demo Videos",
|
|
@@ -426,6 +360,15 @@ var BUILD_ITEMS = [
|
|
|
426
360
|
color: "var(--brand-secondary)",
|
|
427
361
|
platforms: ["runner"],
|
|
428
362
|
productMode: "ai"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
id: "wrappers",
|
|
366
|
+
label: "Wrappers",
|
|
367
|
+
icon: "Package",
|
|
368
|
+
description: "Install and manage wrapper extensions",
|
|
369
|
+
route: "/wrappers",
|
|
370
|
+
color: "#06B6D4",
|
|
371
|
+
platforms: ["runner"]
|
|
429
372
|
}
|
|
430
373
|
];
|
|
431
374
|
var BUILD_GROUP = {
|
|
@@ -434,22 +377,109 @@ var BUILD_GROUP = {
|
|
|
434
377
|
items: BUILD_ITEMS,
|
|
435
378
|
defaultExpanded: false
|
|
436
379
|
};
|
|
437
|
-
var
|
|
380
|
+
var INSIGHTS_ITEMS = [
|
|
438
381
|
{
|
|
439
|
-
id: "
|
|
440
|
-
label: "
|
|
441
|
-
icon: "
|
|
442
|
-
description: "
|
|
443
|
-
route: "/
|
|
382
|
+
id: "error-monitor",
|
|
383
|
+
label: "Error Monitor",
|
|
384
|
+
icon: "AlertCircle",
|
|
385
|
+
description: "Monitor and fix application errors from log sources",
|
|
386
|
+
route: "/tools/error-monitor",
|
|
387
|
+
color: "#4A90D9",
|
|
388
|
+
productMode: "ai"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
id: "processes",
|
|
392
|
+
label: "Processes",
|
|
393
|
+
icon: "Cpu",
|
|
394
|
+
description: "Manage and monitor spawned child processes",
|
|
395
|
+
color: "#06B6D4",
|
|
396
|
+
productMode: "ai"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
id: "activity-timeline",
|
|
400
|
+
label: "Activity Timeline",
|
|
401
|
+
icon: "Activity",
|
|
402
|
+
description: "Searchable capture history \u2014 everything seen on screen during automation",
|
|
403
|
+
route: "/observe/activity-timeline",
|
|
404
|
+
color: "#06B6D4",
|
|
405
|
+
platforms: ["runner"]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
id: "automation-health",
|
|
409
|
+
label: "Automation Health",
|
|
410
|
+
icon: "Activity",
|
|
411
|
+
description: "UI Bridge automation quality, selector reliability, and improvement recommendations",
|
|
412
|
+
color: "#10B981",
|
|
413
|
+
platforms: ["runner"],
|
|
414
|
+
productMode: "ai"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
id: "reflection",
|
|
418
|
+
label: "Reflection",
|
|
419
|
+
icon: "RotateCcw",
|
|
420
|
+
description: "Reflection fix effectiveness and history",
|
|
421
|
+
productMode: "ai"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
id: "architecture",
|
|
425
|
+
label: "Architecture",
|
|
426
|
+
icon: "GitBranch",
|
|
427
|
+
description: "Component dependency graph and SDK project architecture",
|
|
428
|
+
productMode: "ai"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
id: "api-surface",
|
|
432
|
+
label: "API Surface",
|
|
433
|
+
icon: "Network",
|
|
434
|
+
description: "Interactive map of every endpoint, command, query, and their connections",
|
|
435
|
+
color: "#06B6D4",
|
|
436
|
+
platforms: ["runner"]
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
id: "development-intelligence",
|
|
440
|
+
label: "Dev Intelligence",
|
|
441
|
+
icon: "Brain",
|
|
442
|
+
description: "Coverage gap analysis, complexity scoring, drift detection, and dead feature identification",
|
|
443
|
+
route: "/observe/development-intelligence",
|
|
444
|
+
color: "#8B5CF6",
|
|
445
|
+
platforms: ["runner"],
|
|
446
|
+
productMode: "ai"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
id: "project-explainer",
|
|
450
|
+
label: "Explainer",
|
|
451
|
+
icon: "BookOpen",
|
|
452
|
+
description: "Hierarchical explainer for any project: overview, per-cluster narratives, and per-page deep dives with embedded architecture diagrams. AI side panel for asking questions while reading.",
|
|
453
|
+
route: "/observe/explainer",
|
|
444
454
|
color: "#06B6D4",
|
|
445
455
|
platforms: ["runner"]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: "decision-trail",
|
|
459
|
+
label: "Decision Trail",
|
|
460
|
+
icon: "ListChecks",
|
|
461
|
+
description: "Architectural decision history \u2014 what was decided, why, and what alternatives were considered",
|
|
462
|
+
route: "/observe/decision-trail",
|
|
463
|
+
color: "#8B5CF6",
|
|
464
|
+
productMode: "ai",
|
|
465
|
+
platforms: ["runner"]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
id: "session-recap",
|
|
469
|
+
label: "Session Recap",
|
|
470
|
+
icon: "GitBranch",
|
|
471
|
+
description: "Semantic dependency map of what was built \u2014 files, types, endpoints, and how they connect",
|
|
472
|
+
route: "/observe/session-recap",
|
|
473
|
+
color: "#8B5CF6",
|
|
474
|
+
platforms: ["runner"],
|
|
475
|
+
productMode: "ai"
|
|
446
476
|
}
|
|
447
477
|
];
|
|
448
|
-
var
|
|
449
|
-
id: "
|
|
450
|
-
label: "
|
|
451
|
-
items:
|
|
452
|
-
defaultExpanded:
|
|
478
|
+
var INSIGHTS_GROUP = {
|
|
479
|
+
id: "insights",
|
|
480
|
+
label: "INSIGHTS",
|
|
481
|
+
items: INSIGHTS_ITEMS,
|
|
482
|
+
defaultExpanded: false
|
|
453
483
|
};
|
|
454
484
|
var CONFIGURE_ITEMS = [
|
|
455
485
|
{
|
|
@@ -474,37 +504,6 @@ var CONFIGURE_ITEMS = [
|
|
|
474
504
|
icon: "Plug",
|
|
475
505
|
description: "Manage UI Bridge integrations for external apps",
|
|
476
506
|
productMode: "ai"
|
|
477
|
-
}
|
|
478
|
-
];
|
|
479
|
-
var CONFIGURE_GROUP = {
|
|
480
|
-
id: "configure",
|
|
481
|
-
label: "CONFIGURE",
|
|
482
|
-
items: CONFIGURE_ITEMS,
|
|
483
|
-
defaultExpanded: false
|
|
484
|
-
};
|
|
485
|
-
var SCHEDULE_ITEMS = [
|
|
486
|
-
{
|
|
487
|
-
id: "triggers",
|
|
488
|
-
label: "Triggers",
|
|
489
|
-
icon: "Zap",
|
|
490
|
-
description: "Event-driven workflow automation",
|
|
491
|
-
productMode: "ai"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
id: "tasks",
|
|
495
|
-
label: "Scheduled Tasks",
|
|
496
|
-
icon: "Calendar",
|
|
497
|
-
description: "Manage scheduled automation",
|
|
498
|
-
productMode: "ai"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
id: "watchers",
|
|
502
|
-
label: "Watchers",
|
|
503
|
-
icon: "Eye",
|
|
504
|
-
description: "Scheduled reactive agents that monitor the activity timeline",
|
|
505
|
-
route: "/observe/watchers",
|
|
506
|
-
color: "#06B6D4",
|
|
507
|
-
platforms: ["runner"]
|
|
508
507
|
},
|
|
509
508
|
{
|
|
510
509
|
id: "event-history",
|
|
@@ -515,10 +514,10 @@ var SCHEDULE_ITEMS = [
|
|
|
515
514
|
productMode: "ai"
|
|
516
515
|
}
|
|
517
516
|
];
|
|
518
|
-
var
|
|
519
|
-
id: "
|
|
520
|
-
label: "
|
|
521
|
-
items:
|
|
517
|
+
var CONFIGURE_GROUP = {
|
|
518
|
+
id: "configure",
|
|
519
|
+
label: "CONFIGURE",
|
|
520
|
+
items: CONFIGURE_ITEMS,
|
|
522
521
|
defaultExpanded: false
|
|
523
522
|
};
|
|
524
523
|
var DEV_ITEMS = [
|
|
@@ -727,6 +726,15 @@ var SETTINGS_ITEMS = [
|
|
|
727
726
|
color: "#FFD700",
|
|
728
727
|
platforms: ["runner"]
|
|
729
728
|
},
|
|
729
|
+
{
|
|
730
|
+
id: "settings-repos",
|
|
731
|
+
label: "Repositories",
|
|
732
|
+
icon: "GitBranch",
|
|
733
|
+
description: "Manage coordinated repositories",
|
|
734
|
+
route: "/settings/repos",
|
|
735
|
+
color: "#FFD700",
|
|
736
|
+
platforms: ["web"]
|
|
737
|
+
},
|
|
730
738
|
{
|
|
731
739
|
id: "settings-debug",
|
|
732
740
|
label: "Debug",
|
|
@@ -746,6 +754,15 @@ var SYSTEM_ITEMS = [
|
|
|
746
754
|
route: "/runners",
|
|
747
755
|
color: "#10B981"
|
|
748
756
|
},
|
|
757
|
+
{
|
|
758
|
+
id: "sessions",
|
|
759
|
+
label: "Sessions",
|
|
760
|
+
icon: "Terminal",
|
|
761
|
+
description: "Terminal and agent sessions across machines",
|
|
762
|
+
platforms: ["web"],
|
|
763
|
+
route: "/sessions",
|
|
764
|
+
color: "#10B981"
|
|
765
|
+
},
|
|
749
766
|
{
|
|
750
767
|
id: "settings",
|
|
751
768
|
label: "Settings",
|
|
@@ -772,14 +789,13 @@ var SYSTEM_GROUP = {
|
|
|
772
789
|
defaultExpanded: true
|
|
773
790
|
};
|
|
774
791
|
var NAVIGATION_GROUPS = [
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
792
|
+
WORKSPACE_GROUP,
|
|
793
|
+
REVIEW_GROUP,
|
|
794
|
+
SPEND_GROUP,
|
|
795
|
+
AUTOMATE_GROUP,
|
|
779
796
|
BUILD_GROUP,
|
|
780
|
-
|
|
797
|
+
INSIGHTS_GROUP,
|
|
781
798
|
CONFIGURE_GROUP,
|
|
782
|
-
SCHEDULE_GROUP,
|
|
783
799
|
DEV_GROUP,
|
|
784
800
|
SYSTEM_GROUP
|
|
785
801
|
];
|
|
@@ -919,10 +935,20 @@ function setProductMode(mode) {
|
|
|
919
935
|
function getProductMode() {
|
|
920
936
|
return _productMode;
|
|
921
937
|
}
|
|
938
|
+
var _showHiddenItems = false;
|
|
939
|
+
function setShowHiddenItems(show) {
|
|
940
|
+
_showHiddenItems = show;
|
|
941
|
+
}
|
|
942
|
+
function getShowHiddenItems() {
|
|
943
|
+
return _showHiddenItems;
|
|
944
|
+
}
|
|
922
945
|
function isItemAvailable(item, platform) {
|
|
923
946
|
if (item.hiddenInProd && !isDevelopmentMode()) {
|
|
924
947
|
return false;
|
|
925
948
|
}
|
|
949
|
+
if (item.hidden && !_showHiddenItems) {
|
|
950
|
+
return false;
|
|
951
|
+
}
|
|
926
952
|
if (_productMode && item.productMode && item.productMode !== "both" && item.productMode !== _productMode) {
|
|
927
953
|
return false;
|
|
928
954
|
}
|
|
@@ -964,7 +990,7 @@ function getWebNavigation() {
|
|
|
964
990
|
function createInitialState(options) {
|
|
965
991
|
return {
|
|
966
992
|
activeItemId: options?.activeItemId ?? null,
|
|
967
|
-
expandedGroups: new Set(options?.expandedGroups ?? ["
|
|
993
|
+
expandedGroups: new Set(options?.expandedGroups ?? ["workspace", "review", "system"]),
|
|
968
994
|
expandedItems: new Set(options?.expandedItems ?? []),
|
|
969
995
|
secondarySidebar: {
|
|
970
996
|
isOpen: false,
|
|
@@ -1220,6 +1246,8 @@ function NavigationItemShell({
|
|
|
1220
1246
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1221
1247
|
}
|
|
1222
1248
|
export {
|
|
1249
|
+
AUTOMATE_GROUP,
|
|
1250
|
+
AUTOMATE_ITEMS,
|
|
1223
1251
|
BUILD_GROUP,
|
|
1224
1252
|
BUILD_ITEMS,
|
|
1225
1253
|
CHILDREN_MAP,
|
|
@@ -1228,24 +1256,22 @@ export {
|
|
|
1228
1256
|
DEV_GROUP,
|
|
1229
1257
|
DEV_ITEMS,
|
|
1230
1258
|
ICON_NAMES,
|
|
1231
|
-
|
|
1232
|
-
|
|
1259
|
+
INSIGHTS_GROUP,
|
|
1260
|
+
INSIGHTS_ITEMS,
|
|
1233
1261
|
NAVIGATION_GROUPS,
|
|
1234
1262
|
NavigationItemShell,
|
|
1235
|
-
|
|
1236
|
-
|
|
1263
|
+
REVIEW_GROUP,
|
|
1264
|
+
REVIEW_ITEMS,
|
|
1237
1265
|
RUNS_ITEMS,
|
|
1238
|
-
RUN_GROUP,
|
|
1239
|
-
RUN_ITEMS,
|
|
1240
|
-
SCHEDULE_GROUP,
|
|
1241
|
-
SCHEDULE_ITEMS,
|
|
1242
1266
|
SESSION_ITEMS,
|
|
1243
1267
|
SETTINGS_ITEMS,
|
|
1268
|
+
SPEND_GROUP,
|
|
1269
|
+
SPEND_ITEMS,
|
|
1244
1270
|
STORAGE_KEYS,
|
|
1245
1271
|
SYSTEM_GROUP,
|
|
1246
1272
|
SYSTEM_ITEMS,
|
|
1247
|
-
|
|
1248
|
-
|
|
1273
|
+
WORKSPACE_GROUP,
|
|
1274
|
+
WORKSPACE_ITEMS,
|
|
1249
1275
|
createInitialState,
|
|
1250
1276
|
deserializeState,
|
|
1251
1277
|
filterGroupForPlatform,
|
|
@@ -1259,6 +1285,7 @@ export {
|
|
|
1259
1285
|
getNavigationGroups,
|
|
1260
1286
|
getProductMode,
|
|
1261
1287
|
getRunnerNavigation,
|
|
1288
|
+
getShowHiddenItems,
|
|
1262
1289
|
getWebNavigation,
|
|
1263
1290
|
isDevelopmentMode,
|
|
1264
1291
|
isGroupExpanded,
|
|
@@ -1272,5 +1299,6 @@ export {
|
|
|
1272
1299
|
serializeState,
|
|
1273
1300
|
setDevelopmentMode,
|
|
1274
1301
|
setProductMode,
|
|
1302
|
+
setShowHiddenItems,
|
|
1275
1303
|
useNavigationItem
|
|
1276
1304
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qontinui/navigation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Shared navigation structure for Qontinui applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsup src/index.ts --format cjs,esm --dts &&
|
|
13
|
+
"build": "tsup src/index.ts --format cjs,esm --dts && node -e \"if(!require('fs').statSync('dist/index.d.ts').size)process.exit(1)\"",
|
|
14
14
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
15
15
|
"typecheck": "tsc --noEmit",
|
|
16
16
|
"lint": "eslint src/",
|
|
17
|
-
"clean": "rm -rf dist"
|
|
17
|
+
"clean": "rm -rf dist",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
21
|
"@qontinui/ui-bridge": ">=0.3.0",
|
|
@@ -55,6 +56,6 @@
|
|
|
55
56
|
"react": "^19.0.0",
|
|
56
57
|
"tsup": "^8.0.1",
|
|
57
58
|
"typescript": "^6.0.2",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
59
|
+
"typescript-eslint": "^8.61.0"
|
|
59
60
|
}
|
|
60
61
|
}
|