vscode-pi-companion 0.2.5 → 0.2.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.
@@ -4,13 +4,13 @@
4
4
  * Connects to the VS Code extension via SSE for real-time context updates.
5
5
  */
6
6
 
7
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
7
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
8
8
  import * as fs from "fs";
9
9
  import * as path from "path";
10
10
  import * as os from "os";
11
11
  import * as http from "http";
12
12
  import { execSync } from "child_process";
13
- import { Type } from "@sinclair/typebox";
13
+ import { Type } from "typebox";
14
14
 
15
15
  const CONNECTION_DIR = path.join(os.tmpdir(), "pi-companion");
16
16
  const WIDGET_DEBOUNCE_MS = 50;
@@ -2,8 +2,8 @@
2
2
  "name": "vscode-pi-companion-extension",
3
3
  "version": "0.0.1",
4
4
  "type": "module",
5
- "dependencies": {
6
- "@mariozechner/pi-coding-agent": "*",
7
- "@sinclair/typebox": "*"
5
+ "peerDependencies": {
6
+ "@earendil-works/pi-coding-agent": "*",
7
+ "typebox": "*"
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "PI Companion",
4
4
  "description": "Share VS Code context with pi coding agent",
5
5
  "repository": "https://github.com/ravshansbox/vscode-pi-companion",
6
- "version": "0.2.5",
6
+ "version": "0.2.7",
7
7
  "publisher": "ravshansbox",
8
8
  "keywords": [
9
9
  "pi-package"
@@ -34,7 +34,7 @@
34
34
  "typescript": "^7.0.2"
35
35
  },
36
36
  "dependencies": {
37
- "@modelcontextprotocol/sdk": "^1.32.1",
37
+ "@modelcontextprotocol/sdk": "^1.32.2",
38
38
  "cors": "^2.8.6",
39
39
  "express": "^5.3.0",
40
40
  "ws": "^8.22.0",
@@ -187,10 +187,10 @@ export class OpenFilesManager {
187
187
 
188
188
  // Update selection boundaries
189
189
  if (!editor.selection.isEmpty) {
190
- const startLine = Math.min(editor.selection.anchor.line, editor.selection.active.line) + 1;
191
- const endLine = Math.max(editor.selection.anchor.line, editor.selection.active.line) + 1;
192
- const startChar = Math.min(editor.selection.anchor.character, editor.selection.active.character) + 1;
193
- const endChar = Math.max(editor.selection.anchor.character, editor.selection.active.character) + 1;
190
+ const startLine = editor.selection.start.line + 1;
191
+ const endLine = editor.selection.end.line + 1;
192
+ const startChar = editor.selection.start.character + 1;
193
+ const endChar = editor.selection.end.character + 1;
194
194
 
195
195
  file.selectionStart = { line: startLine, character: startChar };
196
196
  file.selectionEnd = { line: endLine, character: endChar };