wave-agent-sdk 0.9.4 → 0.9.5

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/bin/rg ADDED
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env dotslash
2
+
3
+ {
4
+ "name": "rg",
5
+ "platforms": {
6
+ "macos-aarch64": {
7
+ "size": 1787248,
8
+ "hash": "blake3",
9
+ "digest": "8d9942032585ea8ee805937634238d9aee7b210069f4703c88fbe568e26fb78a",
10
+ "format": "tar.gz",
11
+ "path": "ripgrep-14.1.1-aarch64-apple-darwin/rg",
12
+ "providers": [
13
+ {
14
+ "url": "https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-aarch64-apple-darwin.tar.gz"
15
+ }
16
+ ]
17
+ },
18
+ "linux-aarch64": {
19
+ "size": 2047405,
20
+ "hash": "blake3",
21
+ "digest": "0b670b8fa0a3df2762af2fc82cc4932f684ca4c02dbd1260d4f3133fd4b2a515",
22
+ "format": "tar.gz",
23
+ "path": "ripgrep-14.1.1-aarch64-unknown-linux-gnu/rg",
24
+ "providers": [
25
+ {
26
+ "url": "https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-aarch64-unknown-linux-gnu.tar.gz"
27
+ }
28
+ ]
29
+ },
30
+ "macos-x86_64": {
31
+ "size": 2082672,
32
+ "hash": "blake3",
33
+ "digest": "e9b862fc8da3127f92791f0ff6a799504154ca9d36c98bf3e60a81c6b1f7289e",
34
+ "format": "tar.gz",
35
+ "path": "ripgrep-14.1.1-x86_64-apple-darwin/rg",
36
+ "providers": [
37
+ {
38
+ "url": "https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-x86_64-apple-darwin.tar.gz"
39
+ }
40
+ ]
41
+ },
42
+ "linux-x86_64": {
43
+ "size": 2566310,
44
+ "hash": "blake3",
45
+ "digest": "f73cca4e54d78c31f832c7f6e2c0b4db8b04fa3eaa747915727d570893dbee76",
46
+ "format": "tar.gz",
47
+ "path": "ripgrep-14.1.1-x86_64-unknown-linux-musl/rg",
48
+ "providers": [
49
+ {
50
+ "url": "https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-x86_64-unknown-linux-musl.tar.gz"
51
+ }
52
+ ]
53
+ },
54
+ "windows-x86_64": {
55
+ "size": 2058893,
56
+ "hash": "blake3",
57
+ "digest": "a8ce1a6fed4f8093ee997e57f33254e94b2cd18e26358b09db599c89882eadbd",
58
+ "format": "zip",
59
+ "path": "ripgrep-14.1.1-x86_64-pc-windows-msvc/rg.exe",
60
+ "providers": [
61
+ {
62
+ "url": "https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-x86_64-pc-windows-msvc.zip"
63
+ }
64
+ ]
65
+ },
66
+ "windows-aarch64": {
67
+ "size": 1667740,
68
+ "hash": "blake3",
69
+ "digest": "47b971a8c4fca1d23a4e7c19bd4d88465ebc395598458133139406d3bf85f3fa",
70
+ "format": "zip",
71
+ "path": "rg.exe",
72
+ "providers": [
73
+ {
74
+ "url": "https://github.com/microsoft/ripgrep-prebuilt/releases/download/v13.0.0-13/ripgrep-v13.0.0-13-aarch64-pc-windows-msvc.zip"
75
+ }
76
+ ]
77
+ }
78
+ }
79
+ }
@@ -1,5 +1,5 @@
1
1
  import { spawn } from "child_process";
2
- import { rgPath } from "@vscode/ripgrep";
2
+ import { rgPath } from "../utils/ripgrep.js";
3
3
  import { stat } from "fs/promises";
4
4
  import { resolvePath, getDisplayPath } from "../utils/path.js";
5
5
  import { getAllIgnorePatterns } from "../utils/fileFilter.js";
@@ -1,6 +1,6 @@
1
1
  import { spawn } from "child_process";
2
2
  import { getAllIgnorePatterns } from "../utils/fileFilter.js";
3
- import { rgPath } from "@vscode/ripgrep";
3
+ import { rgPath } from "../utils/ripgrep.js";
4
4
  import { getDisplayPath } from "../utils/path.js";
5
5
  import { GREP_TOOL_NAME, BASH_TOOL_NAME, AGENT_TOOL_NAME, } from "../constants/tools.js";
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { spawn } from "child_process";
2
- import { rgPath } from "@vscode/ripgrep";
2
+ import { rgPath } from "./ripgrep.js";
3
3
  import fuzzysort from "fuzzysort";
4
4
  import { getAllIgnorePatterns } from "./fileFilter.js";
5
5
  import { logger } from "./globalLogger.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Path to the ripgrep binary bundled in the vendor directory.
3
+ */
4
+ export declare const rgPath: string;
5
+ //# sourceMappingURL=ripgrep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ripgrep.d.ts","sourceRoot":"","sources":["../../src/utils/ripgrep.ts"],"names":[],"mappings":"AA6BA;;GAEG;AACH,eAAO,MAAM,MAAM,QAGlB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { fileURLToPath } from "url";
2
+ import path from "path";
3
+ import process from "process";
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = path.dirname(__filename);
6
+ /**
7
+ * Detect the current platform and architecture to find the correct bundled ripgrep binary.
8
+ */
9
+ function getPlatformKey() {
10
+ const platform = process.platform;
11
+ const arch = process.arch;
12
+ if (platform === "darwin") {
13
+ return arch === "arm64" ? "macos-aarch64" : "macos-x86_64";
14
+ }
15
+ else if (platform === "linux") {
16
+ return arch === "arm64" ? "linux-aarch64" : "linux-x86_64";
17
+ }
18
+ else if (platform === "win32") {
19
+ return arch === "arm64" ? "windows-aarch64" : "windows-x86_64";
20
+ }
21
+ throw new Error(`Unsupported platform: ${platform}-${arch}`);
22
+ }
23
+ const platformKey = getPlatformKey();
24
+ const isWindows = platformKey.startsWith("windows");
25
+ const binaryName = isWindows ? "rg.exe" : "rg";
26
+ /**
27
+ * Path to the ripgrep binary bundled in the vendor directory.
28
+ */
29
+ export const rgPath = path.resolve(__dirname, `../../vendor/ripgrep/${platformKey}/${binaryName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-agent-sdk",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "SDK for building AI-powered development tools and agents",
5
5
  "keywords": [
6
6
  "ai",
@@ -21,11 +21,12 @@
21
21
  "files": [
22
22
  "dist",
23
23
  "src",
24
+ "bin",
25
+ "vendor",
24
26
  "README.md"
25
27
  ],
26
28
  "dependencies": {
27
29
  "@modelcontextprotocol/sdk": "^1.18.2",
28
- "@vscode/ripgrep": "^1.15.14",
29
30
  "chokidar": "^5.0.0",
30
31
  "fuzzysort": "^3.1.0",
31
32
  "glob": "^13.0.0",
@@ -1,5 +1,5 @@
1
1
  import { spawn } from "child_process";
2
- import { rgPath } from "@vscode/ripgrep";
2
+ import { rgPath } from "../utils/ripgrep.js";
3
3
  import { stat } from "fs/promises";
4
4
  import type { ToolPlugin, ToolResult, ToolContext } from "./types.js";
5
5
  import { resolvePath, getDisplayPath } from "../utils/path.js";
@@ -1,7 +1,7 @@
1
1
  import type { ToolPlugin, ToolResult, ToolContext } from "./types.js";
2
2
  import { spawn } from "child_process";
3
3
  import { getAllIgnorePatterns } from "../utils/fileFilter.js";
4
- import { rgPath } from "@vscode/ripgrep";
4
+ import { rgPath } from "../utils/ripgrep.js";
5
5
  import { getDisplayPath } from "../utils/path.js";
6
6
  import {
7
7
  GREP_TOOL_NAME,
@@ -1,5 +1,5 @@
1
1
  import { spawn } from "child_process";
2
- import { rgPath } from "@vscode/ripgrep";
2
+ import { rgPath } from "./ripgrep.js";
3
3
  import fuzzysort from "fuzzysort";
4
4
  import { getAllIgnorePatterns } from "./fileFilter.js";
5
5
  import type { FileItem } from "../types/fileSearch.js";
@@ -0,0 +1,36 @@
1
+ import { fileURLToPath } from "url";
2
+ import path from "path";
3
+ import process from "process";
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ /**
9
+ * Detect the current platform and architecture to find the correct bundled ripgrep binary.
10
+ */
11
+ function getPlatformKey(): string {
12
+ const platform = process.platform;
13
+ const arch = process.arch;
14
+
15
+ if (platform === "darwin") {
16
+ return arch === "arm64" ? "macos-aarch64" : "macos-x86_64";
17
+ } else if (platform === "linux") {
18
+ return arch === "arm64" ? "linux-aarch64" : "linux-x86_64";
19
+ } else if (platform === "win32") {
20
+ return arch === "arm64" ? "windows-aarch64" : "windows-x86_64";
21
+ }
22
+
23
+ throw new Error(`Unsupported platform: ${platform}-${arch}`);
24
+ }
25
+
26
+ const platformKey = getPlatformKey();
27
+ const isWindows = platformKey.startsWith("windows");
28
+ const binaryName = isWindows ? "rg.exe" : "rg";
29
+
30
+ /**
31
+ * Path to the ripgrep binary bundled in the vendor directory.
32
+ */
33
+ export const rgPath = path.resolve(
34
+ __dirname,
35
+ `../../vendor/ripgrep/${platformKey}/${binaryName}`,
36
+ );
Binary file
Binary file
Binary file
Binary file