snow-flow 8.35.4 → 8.35.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/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +22 -2
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
- package/scripts/update-version.js +0 -31
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION
|
|
1
|
+
export declare const VERSION: string;
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,OAAO,QAAe,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
//
|
|
5
|
-
|
|
4
|
+
// Dynamically read version from package.json
|
|
5
|
+
// This ensures the version is always up-to-date without manual sync
|
|
6
|
+
const fs_1 = require("fs");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
let cachedVersion = null;
|
|
9
|
+
function getVersion() {
|
|
10
|
+
if (cachedVersion)
|
|
11
|
+
return cachedVersion;
|
|
12
|
+
try {
|
|
13
|
+
// In CommonJS, __dirname is available
|
|
14
|
+
const packageJsonPath = (0, path_1.join)(__dirname, '..', 'package.json');
|
|
15
|
+
const packageJson = JSON.parse((0, fs_1.readFileSync)(packageJsonPath, 'utf-8'));
|
|
16
|
+
cachedVersion = packageJson.version;
|
|
17
|
+
return cachedVersion;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.error('Failed to read version from package.json:', error);
|
|
21
|
+
return '0.0.0'; // Fallback
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
// Export as const for backward compatibility
|
|
25
|
+
exports.VERSION = getVersion();
|
|
6
26
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,oEAAoE;AACpE,2BAAkC;AAClC,+BAA4B;AAE5B,IAAI,aAAa,GAAkB,IAAI,CAAC;AAExC,SAAS,UAAU;IACjB,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IAExC,IAAI,CAAC;QACH,sCAAsC;QACtC,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;QACvE,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC;QACpC,OAAO,aAAa,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,2CAA2C,EAAE,KAAK,CAAC,CAAC;QAClE,OAAO,OAAO,CAAC,CAAC,WAAW;IAC7B,CAAC;AACH,CAAC;AAED,6CAA6C;AAChC,QAAA,OAAO,GAAG,UAAU,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "8.35.
|
|
3
|
+
"version": "8.35.5",
|
|
4
4
|
"description": "ServiceNow development with SnowCode - 75+ LLM providers (Claude, GPT, Gemini, Llama, Mistral, DeepSeek, Groq, Ollama) • 393 Optimized Tools • 2 MCP Servers • Multi-agent orchestration • Use ANY AI coding assistant (ML tools moved to Enterprise)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"check-binaries": "node scripts/check-binary-updates.js",
|
|
59
59
|
"update-binaries": "node scripts/check-binary-updates.js --auto-update",
|
|
60
60
|
"postbuild-disabled": "npm run setup-mcp",
|
|
61
|
-
"version": "
|
|
61
|
+
"version": "npm run build",
|
|
62
62
|
"postversion": "git push origin main && git push origin --tags"
|
|
63
63
|
},
|
|
64
64
|
"keywords": [
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Update version.ts with the current version from package.json
|
|
5
|
-
* This script runs automatically after npm version
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const fs = require('fs');
|
|
9
|
-
const path = require('path');
|
|
10
|
-
|
|
11
|
-
// Read package.json
|
|
12
|
-
const packageJsonPath = path.join(__dirname, '..', 'package.json');
|
|
13
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
14
|
-
const version = packageJson.version;
|
|
15
|
-
|
|
16
|
-
// Path to version.ts
|
|
17
|
-
const versionTsPath = path.join(__dirname, '..', 'src', 'version.ts');
|
|
18
|
-
|
|
19
|
-
// Read current version.ts content
|
|
20
|
-
const versionTsContent = fs.readFileSync(versionTsPath, 'utf8');
|
|
21
|
-
|
|
22
|
-
// Replace the VERSION constant
|
|
23
|
-
const updatedContent = versionTsContent.replace(
|
|
24
|
-
/export const VERSION = '[^']+';/,
|
|
25
|
-
`export const VERSION = '${version}';`
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
// Write updated content back
|
|
29
|
-
fs.writeFileSync(versionTsPath, updatedContent, 'utf8');
|
|
30
|
-
|
|
31
|
-
console.log(`✅ Updated version.ts to ${version}`);
|