@myrialabs/clopen 0.4.29 → 0.4.31
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/backend/chat/stream-manager.ts +1 -1
- package/backend/database/migrations/067_add_memory_graph_layout.ts +91 -0
- package/backend/database/migrations/index.ts +7 -0
- package/backend/database/queries/graph-queries.ts +417 -32
- package/backend/db-client/drivers/mssql.ts +57 -22
- package/backend/db-client/drivers/mysql.ts +69 -48
- package/backend/db-client/drivers/postgres.ts +65 -53
- package/backend/engine/adapters/claude/stream.ts +81 -15
- package/backend/engine/adapters/codex/stream.ts +6 -3
- package/backend/engine/adapters/opencode/server.ts +13 -4
- package/backend/engine/bootstrap-default-engine.ts +67 -38
- package/backend/engine/docs/artifacts.md +1 -1
- package/backend/engine/docs/quick-reference.md +1 -1
- package/backend/engine/engine-cli.ts +313 -0
- package/backend/engine/engine-setup.ts +40 -3
- package/backend/engine/install-recipes.test.ts +99 -5
- package/backend/engine/install-recipes.ts +47 -11
- package/backend/engine/install-runner.ts +34 -16
- package/backend/engine/stack-project.ts +72 -0
- package/backend/index.ts +5 -0
- package/backend/memory/bootstrap.ts +9 -0
- package/backend/memory/layout.ts +985 -0
- package/backend/memory/notify.ts +33 -7
- package/backend/memory/view.ts +375 -69
- package/backend/permissions/index.ts +4 -2
- package/backend/permissions/resolve.ts +7 -5
- package/backend/utils/path-enrich.ts +2 -0
- package/backend/utils/process-warnings.ts +41 -0
- package/backend/ws/engine/claude/accounts.ts +9 -4
- package/backend/ws/engine/codex/accounts.ts +8 -5
- package/backend/ws/engine/codex/status.ts +10 -17
- package/backend/ws/memory/crud.ts +50 -2
- package/backend/ws/settings/crud.ts +1 -1
- package/backend/ws/stack/access.ts +5 -2
- package/dist/assets/{index-C7e5TWG3.js → index-DUc5T21e.js} +1 -1
- package/dist/assets/{index-Derlqeyy.js → index-DYwQ5bP8.js} +1 -1
- package/dist/assets/main-VgdjTBLR.css +1 -0
- package/dist/assets/{main-OGhsRKU1.js → main-r0iv2PDz.js} +393 -386
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/shared/types/memory.ts +70 -0
- package/dist/assets/main-CqzaPnux.css +0 -1
package/dist/index.html
CHANGED
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
}
|
|
59
59
|
})();
|
|
60
60
|
</script>
|
|
61
|
-
<script type="module" crossorigin src="/assets/main-
|
|
62
|
-
<link rel="stylesheet" crossorigin href="/assets/main-
|
|
61
|
+
<script type="module" crossorigin src="/assets/main-r0iv2PDz.js"></script>
|
|
62
|
+
<link rel="stylesheet" crossorigin href="/assets/main-VgdjTBLR.css">
|
|
63
63
|
</head>
|
|
64
64
|
<body
|
|
65
65
|
class="min-h-dvh bg-white text-slate-900 dark:bg-slate-950 dark:text-slate-100 transition-colors duration-200"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrialabs/clopen",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.31",
|
|
4
4
|
"description": "All-in-one web workspace for AI coding agents — Claude Code, OpenCode, Codex, Copilot, Qwen Code, Pi, Cline, and Cursor — with chat, terminal, git, browser preview, database client, checkpoints, and real-time collaboration",
|
|
5
5
|
"author": "Myria Labs",
|
|
6
6
|
"license": "MIT",
|
package/shared/types/memory.ts
CHANGED
|
@@ -381,6 +381,15 @@ export interface GraphViewNode {
|
|
|
381
381
|
/** Louvain community index — the "lobe" a node belongs to. */
|
|
382
382
|
community: number;
|
|
383
383
|
createdAt: string;
|
|
384
|
+
/**
|
|
385
|
+
* Where the persisted layout put this node, when it has been laid out.
|
|
386
|
+
*
|
|
387
|
+
* Absent means "no position yet" — a memory written since the last layout
|
|
388
|
+
* pass — and the client seeds those from their neighbours rather than
|
|
389
|
+
* re-solving the whole graph. See `backend/memory/layout.ts`.
|
|
390
|
+
*/
|
|
391
|
+
x?: number;
|
|
392
|
+
y?: number;
|
|
384
393
|
}
|
|
385
394
|
|
|
386
395
|
export interface GraphViewEdge {
|
|
@@ -391,9 +400,70 @@ export interface GraphViewEdge {
|
|
|
391
400
|
weight: number;
|
|
392
401
|
}
|
|
393
402
|
|
|
403
|
+
/** A rectangle in layout space — what a zoomed-in view is scoped to. */
|
|
404
|
+
export interface GraphRegion {
|
|
405
|
+
minX: number;
|
|
406
|
+
maxX: number;
|
|
407
|
+
minY: number;
|
|
408
|
+
maxY: number;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Several memories that fell in one cell of the layout grid, drawn as one mark.
|
|
413
|
+
*
|
|
414
|
+
* This is what keeps the view's cost bounded without taking anything out of the
|
|
415
|
+
* picture, and the distinction from the alternative matters. Grouping by
|
|
416
|
+
* COMMUNITY replaces the picture — you see lobes instead of memories, and
|
|
417
|
+
* reaching a memory means opening one. Grouping by POSITION keeps the picture:
|
|
418
|
+
* marks merge only where their dots would have overlapped anyway, so the
|
|
419
|
+
* silhouette, the lobes and the colours are the ones the full graph would have
|
|
420
|
+
* drawn. Below the render budget nothing merges at all and every memory is its
|
|
421
|
+
* own mark, exactly as before.
|
|
422
|
+
*
|
|
423
|
+
* A bin is not a memory — it has no body, no scope and nothing to inspect —
|
|
424
|
+
* which is why it travels in its own array rather than as a node wearing a fake
|
|
425
|
+
* subkind.
|
|
426
|
+
*/
|
|
427
|
+
export interface GraphViewBin {
|
|
428
|
+
/** `bin:<cellX>:<cellY>` — namespaced so it cannot collide with a node id. */
|
|
429
|
+
id: string;
|
|
430
|
+
/** How many memories it stands for; drives its size. */
|
|
431
|
+
members: number;
|
|
432
|
+
/** The most reinforced member's summary, for the hover pill. */
|
|
433
|
+
label: string;
|
|
434
|
+
/** Community of that same member, so the mark keeps its lobe's colour. */
|
|
435
|
+
community: number;
|
|
436
|
+
/** Centroid of its members — not the cell's centre, which would grid the map. */
|
|
437
|
+
x: number;
|
|
438
|
+
y: number;
|
|
439
|
+
/** The cell itself, so opening the mark asks for exactly this rectangle. */
|
|
440
|
+
region: GraphRegion;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/** A connection between two bins, weighted by the edges that cross between them. */
|
|
444
|
+
export interface GraphViewBinEdge {
|
|
445
|
+
source: string;
|
|
446
|
+
target: string;
|
|
447
|
+
weight: number;
|
|
448
|
+
}
|
|
449
|
+
|
|
394
450
|
export interface GraphView {
|
|
451
|
+
/**
|
|
452
|
+
* `flat` when every matching memory is drawn individually — the ordinary case,
|
|
453
|
+
* and the only one below the render budget. `binned` when some marks stand for
|
|
454
|
+
* more than one memory.
|
|
455
|
+
*
|
|
456
|
+
* Both populate `nodes`: a cell holding a single memory returns that memory,
|
|
457
|
+
* not a bin of one. So the two are not alternatives to each other — a binned
|
|
458
|
+
* view is a full-fidelity view everywhere it can afford to be.
|
|
459
|
+
*/
|
|
460
|
+
level: 'flat' | 'binned';
|
|
395
461
|
nodes: GraphViewNode[];
|
|
396
462
|
edges: GraphViewEdge[];
|
|
463
|
+
bins: GraphViewBin[];
|
|
464
|
+
binEdges: GraphViewBinEdge[];
|
|
465
|
+
/** The rectangle this view was scoped to, when the caller zoomed into one. */
|
|
466
|
+
region: GraphRegion | null;
|
|
397
467
|
/** Total nodes matching the filter before any display cap was applied. */
|
|
398
468
|
totalNodes: number;
|
|
399
469
|
/** True when `totalNodes` exceeded the cap and the view was trimmed. */
|