@gala-chain/launchpad-sdk 3.12.6 → 3.12.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.12.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix SDK version detection by using build-time version injection instead of runtime file reading.
8
+ The SDK now generates a version constant during build, ensuring it works in all environments
9
+ (Node.js, browser, bundled). Additionally, added a `/version` slash command to the MCP server for
10
+ easy version checking.
11
+
12
+ ### Changes:
13
+ - **SDK**: Implement build-time version injection via `scripts/inject-version.ts`, matching the
14
+ MCP server pattern
15
+ - **SDK**: Update `packages/sdk/package.json` to run `build:version` before compilation
16
+ - **MCP Server**: Add new `utility` prompt category with `/version` command to fetch and display
17
+ SDK/MCP server versions
18
+
19
+ ## 3.12.7
20
+
21
+ ### Patch Changes
22
+
23
+ - Fix: Include package.json in published npm package for version detection
24
+
25
+ Resolves SDK version showing as "unknown" in runtime environments. The SDK's version loader uses
26
+ `require('../../package.json')` to read the version at module load time, but package.json was not
27
+ included in the published files array, causing the require to fail silently and return "unknown".
28
+
29
+ This is essential for:
30
+ - MCP server version reporting
31
+ - Runtime version detection in applications
32
+ - Dependency analysis tools
33
+ - Following npm packaging best practices
34
+
35
+ Package.json is now included in the published package files list, ensuring the version loader can
36
+ successfully read and expose the SDK version.
37
+
3
38
  ## 3.12.6
4
39
 
5
40
  ### Patch Changes
@@ -1,2 +1,6 @@
1
- export declare const SDK_VERSION: string;
1
+ /**
2
+ * SDK Version
3
+ * This is imported from the auto-generated version file which is created during build
4
+ */
5
+ export { SDK_VERSION } from './version.generated.js';
2
6
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/constants/version.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,WAAW,QAAyC,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/constants/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * AUTO-GENERATED VERSION FILE
3
+ * This file is generated by scripts/inject-version.ts during build
4
+ * DO NOT EDIT MANUALLY
5
+ */
6
+ export declare const SDK_VERSION = "3.12.8";
7
+ //# sourceMappingURL=version.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.generated.d.ts","sourceRoot":"","sources":["../../src/constants/version.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,WAAW,CAAC"}