paseo-acp-agy 1.1.0 → 1.1.2

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.js CHANGED
File without changes
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SEMVER_VERSION = "1.1.0";
1
+ export declare const SEMVER_VERSION: string;
2
2
  export interface BuildMetadata {
3
3
  version: string;
4
4
  gitCommit: string;
package/dist/version.js CHANGED
@@ -3,7 +3,21 @@ import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
- export const SEMVER_VERSION = "1.1.0";
6
+ function getPackageVersion() {
7
+ try {
8
+ const pkgPath = path.resolve(__dirname, "..", "package.json");
9
+ if (fs.existsSync(pkgPath)) {
10
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
11
+ if (pkg.version)
12
+ return pkg.version;
13
+ }
14
+ }
15
+ catch {
16
+ // ignore
17
+ }
18
+ return "1.1.0";
19
+ }
20
+ export const SEMVER_VERSION = getPackageVersion();
7
21
  let cachedBuildMetadata = null;
8
22
  function safeGit(cmd, cwd) {
9
23
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paseo-acp-agy",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "ACP (Agent Client Protocol) provider for Google Antigravity in Paseo and Zed",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "build": "tsc",
23
23
  "typecheck": "tsc --noEmit",
24
- "test": "vitest run",
24
+ "test": "vitest run --test-timeout 15000",
25
25
  "start": "node dist/index.js"
26
26
  },
27
27
  "keywords": [