Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .changeset/custom-graph-renderer.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/honest-graph-performance-hud.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/remove-3d-graph.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/remove-layout-and-uniform-controls.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/remove-timeline-view.md

This file was deleted.

8 changes: 4 additions & 4 deletions docs/PLUGINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Plugin packages declare package-level CodeGraphy metadata in `package.json` so r
},
"codegraphy": {
"type": "plugin",
"apiVersion": "^2.0.0",
"apiVersion": "^3.0.0",
"defaultOptions": {
"includeTests": true
},
Expand All @@ -85,7 +85,7 @@ The same package must also include a static `codegraphy.json` descriptor. Core r
"id": "codegraphy.vue",
"name": "Vue",
"version": "1.0.0",
"apiVersion": "^2.0.0",
"apiVersion": "^3.0.0",
"supportedExtensions": [".vue"],
"defaultFilters": []
}
Expand Down Expand Up @@ -122,7 +122,7 @@ const createPlugin: IPluginFactory = ({ dataHost, options } = {}) => ({
id: 'acme.graph-tools',
name: 'Acme Graph Tools',
version: '1.0.0',
apiVersion: '^2.0.0',
apiVersion: '^3.0.0',
supportedExtensions: [],
async initialize() {
await dataHost?.saveData({ mode: options?.mode ?? 'default' });
Expand All @@ -140,7 +140,7 @@ Default options are copied into workspace settings when the plugin is enabled so
{
"codegraphy": {
"type": "plugin",
"apiVersion": "^2.0.0",
"apiVersion": "^3.0.0",
"defaultOptions": {
"includeSceneResources": true,
"includeAutoloads": true,
Expand Down
8 changes: 4 additions & 4 deletions docs/plugin-api/LIFECYCLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Registration reads global package metadata without importing plugin runtime code
},
"codegraphy": {
"type": "plugin",
"apiVersion": "^2.0.0",
"apiVersion": "^3.0.0",
"defaultOptions": {
"includeTests": true
},
Expand All @@ -40,7 +40,7 @@ The same package declares its static Plugin ID and display metadata in `codegrap
"id": "acme.plugin",
"name": "Acme Plugin",
"version": "1.0.0",
"apiVersion": "^2.0.0",
"apiVersion": "^3.0.0",
"supportedExtensions": [".ts"]
}
```
Expand All @@ -58,7 +58,7 @@ const plugin: IPlugin = {
id: 'acme.plugin',
name: 'Acme Plugin',
version: '1.0.0',
apiVersion: '^2.0.0',
apiVersion: '^3.0.0',
supportedExtensions: ['.ts'],
};
```
Expand Down Expand Up @@ -165,7 +165,7 @@ export function createMetricsPlugin(): IPlugin {
id: 'codegraphy-metrics',
name: 'Metrics',
version: '1.0.0',
apiVersion: '^2.0.0',
apiVersion: '^3.0.0',
supportedExtensions: ['*'],

async initialize(workspaceRoot, context) {
Expand Down
2 changes: 1 addition & 1 deletion docs/plugin-api/TYPES.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The public package is host-agnostic. VS Code-specific bridge types, decorations,
Defined in `plugin.ts`.

Key points:
- `apiVersion: string` is required (for example `'^2.0.0'`).
- `apiVersion: string` is required (for example `'^3.0.0'`).
- `sources?: IConnectionSource[]` declares the plugin's Relationship Source families.
- `fileColors?: Record<string, string | IPluginFileColorDefinition>` lets plugins provide default color/shape/imagePath styling by pattern.
- `analyzeFile(filePath, content, workspaceRoot, context?)` is the plugin analysis hook for returning relationships, symbols, and contributed Node Types or Edge Types.
Expand Down
20 changes: 20 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @codegraphy-dev/core

## 2.0.0

### Major Changes

- Advance the host runtime compatibility protocol to Plugin API 3. Plugins must declare `apiVersion: '^3.0.0'`; plugins targeting the removed v2 contracts are rejected before registration.

- [#308](https://github.com/joesobo/CodeGraphyV4/pull/308) [`b744f20`](https://github.com/joesobo/CodeGraphyV4/commit/b744f20bb1391e9a0c40d3e448a4f3f78bde4974) Thanks [@joesobo](https://github.com/joesobo)! - CodeGraphy now provides one supported 2D Relationship Graph and removes the 3D graph mode, its toolbar toggle, 3D node shapes, 3D camera state, and Three.js renderer settings. Existing workspaces open directly in the 2D graph; saved 3D preferences are ignored.

This is a breaking Plugin API change. Plugin authors must remove `GraphNodeShape3D`, `shape3D`, `graphMode`, three-dimensional node coordinates (`z`, `fz`, and `vz`), and 3D values in selected-node position payloads. Graph View contributions, drag callbacks, context-menu selectors, and viewport adapters now receive only two-dimensional graph state. The Unity plugin continues to contribute Unity graph data but no longer supplies 3D presentation metadata.

- [#308](https://github.com/joesobo/CodeGraphyV4/pull/308) [`5a65047`](https://github.com/joesobo/CodeGraphyV4/commit/5a65047d1a715f005760ace0ebf0f550a16efa2e) Thanks [@joesobo](https://github.com/joesobo)! - CodeGraphy now opens one current-workspace Relationship Graph and removes the Timeline panel, commit-by-commit Graph Revision playback, revision controls, and Git-history Churn node sizing. Existing workspaces keep their current graph settings, but saved Timeline state and Churn sizing selections no longer affect the graph. Choose Connections or File Size for semantic node sizing.

This is a breaking Plugin API and Core package change. Plugin authors must remove the `timeline-panel` slot, Timeline lifecycle events and payloads, `timelineActive` contribution/context fields, Timeline analysis mode and `commitSha`, and the optional `churn` graph-node field. Core callers must stop passing churn counts into graph construction. Plugins should analyze the current CodeGraphy Workspace and contribute to the normal Graph View instead of branching on Timeline state.

### Patch Changes

- Updated dependencies [[`b744f20`](https://github.com/joesobo/CodeGraphyV4/commit/b744f20bb1391e9a0c40d3e448a4f3f78bde4974), [`5a65047`](https://github.com/joesobo/CodeGraphyV4/commit/5a65047d1a715f005760ace0ebf0f550a16efa2e)]:
- @codegraphy-dev/plugin-api@6.0.0
- @codegraphy-dev/plugin-markdown@1.1.9

## 1.7.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Plugin npm packages identify themselves with package metadata:
"version": "1.2.3",
"codegraphy": {
"type": "plugin",
"apiVersion": "^2.0.0",
"apiVersion": "^3.0.0",
"defaultOptions": {
"includeTests": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codegraphy-dev/core",
"version": "1.7.2",
"version": "2.0.0",
"description": "CodeGraphy core indexing and graph query engine",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/api.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CORE_PLUGIN_API_VERSION = '2.0.0';
export const CORE_PLUGIN_API_VERSION = '3.0.0';
2 changes: 1 addition & 1 deletion packages/core/src/plugins/markdown/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const CODEGRAPHY_MARKDOWN_PLUGIN_METADATA = {
id: CODEGRAPHY_MARKDOWN_PLUGIN_ID,
name: 'Markdown',
version: '1.0.0',
apiVersion: '^2.0.0',
apiVersion: '^3.0.0',
supportedExtensions: ['*'],
updateImpact: {
toggle: 'reanalyze-plugin-files',
Expand Down
Loading