@ace3-memory/ace 3.0.7 ā 3.0.9
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/README.md +2 -2
- package/download-binary.js +17 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
> ACE gives your AI tools (Claude, ChatGPT, Gemini) a persistent, shared memory that lives on **your** infrastructure, not the cloud.
|
|
6
6
|
|
|
7
7
|
[](https://ace3-ai.com/license)
|
|
8
|
-
[](https://www.python.org/downloads/)
|
|
9
|
+
[](https://github.com/AdyBrooks46/AutonomousContextEngine/releases)
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
package/download-binary.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* ACE Binary Downloader (npm postinstall script)
|
|
4
|
-
* Downloads platform-specific ACE binary from
|
|
5
|
-
*
|
|
4
|
+
* Downloads platform-specific ACE binary from GCP Cloud Storage
|
|
5
|
+
* Binaries hosted publicly for all users
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const https = require('https');
|
|
9
9
|
const fs = require('fs');
|
|
10
10
|
const path = require('path');
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const GCP_BUCKET = 'ace3-releases';
|
|
13
13
|
const BINARY_DIR = path.join(__dirname, 'bin');
|
|
14
14
|
|
|
15
15
|
// Detect platform and architecture
|
|
@@ -24,28 +24,14 @@ const BINARY_MAP = {
|
|
|
24
24
|
'win32-x64': 'ace-windows-x64.exe'
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
//
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
https.get(options, (res) => {
|
|
37
|
-
let data = '';
|
|
38
|
-
res.on('data', chunk => data += chunk);
|
|
39
|
-
res.on('end', () => {
|
|
40
|
-
try {
|
|
41
|
-
const release = JSON.parse(data);
|
|
42
|
-
resolve(release.tag_name);
|
|
43
|
-
} catch {
|
|
44
|
-
resolve(null);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}).on('error', () => resolve(null));
|
|
48
|
-
});
|
|
27
|
+
// Get version from package.json
|
|
28
|
+
function getPackageVersion() {
|
|
29
|
+
try {
|
|
30
|
+
const pkg = require('./package.json');
|
|
31
|
+
return `v${pkg.version}`;
|
|
32
|
+
} catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
49
35
|
}
|
|
50
36
|
|
|
51
37
|
// Download file with redirect support
|
|
@@ -102,19 +88,19 @@ async function install() {
|
|
|
102
88
|
process.exit(1);
|
|
103
89
|
}
|
|
104
90
|
|
|
105
|
-
// Get
|
|
106
|
-
|
|
107
|
-
const version = process.env.ACE_VERSION || await getLatestVersion();
|
|
91
|
+
// Get version from package.json (matches npm package version)
|
|
92
|
+
const version = process.env.ACE_VERSION || getPackageVersion();
|
|
108
93
|
|
|
109
94
|
if (!version) {
|
|
110
|
-
console.error('ā Could not determine
|
|
95
|
+
console.error('ā Could not determine version from package.json');
|
|
111
96
|
process.exit(1);
|
|
112
97
|
}
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
// Download from GCP Cloud Storage (public bucket)
|
|
100
|
+
const downloadUrl = `https://storage.googleapis.com/${GCP_BUCKET}/${version}/${binaryName}`;
|
|
115
101
|
const binaryPath = path.join(BINARY_DIR, 'ace' + (platform === 'win32' ? '.exe' : ''));
|
|
116
102
|
|
|
117
|
-
console.log(
|
|
103
|
+
console.log(`\nš¦ Installing ACE ${version} for ${platform} ${arch}...`);
|
|
118
104
|
console.log(`š„ Downloading: ${binaryName}`);
|
|
119
105
|
|
|
120
106
|
// Create bin directory
|