apteva 0.90.5 → 0.90.7

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.
Files changed (2) hide show
  1. package/install.js +5 -4
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -46,6 +46,7 @@ const VERSION_DIR = path.join(VERSIONS_DIR, VERSION);
46
46
  const CURRENT_LINK = path.join(BIN_DIR, "current");
47
47
 
48
48
  const BIN_NAMES = ["apteva", "apteva-server", "apteva-core", "apteva-mcp-runner"];
49
+ const availableBins = () => [...BIN_NAMES, ...(fs.existsSync(path.join(VERSION_DIR, "apteva-host")) ? ["apteva-host"] : [])];
49
50
 
50
51
  function download(url) {
51
52
  return new Promise((resolve, reject) => {
@@ -91,7 +92,7 @@ function pointSymlinks() {
91
92
  // Per-binary shims: bin/<name> → current/<name>. Replace if
92
93
  // already present — old shims pointing at a since-deleted version
93
94
  // dir would fail to resolve.
94
- for (const name of BIN_NAMES) {
95
+ for (const name of availableBins()) {
95
96
  const dst = path.join(BIN_DIR, name);
96
97
  try { fs.unlinkSync(dst); } catch {}
97
98
  fs.symlinkSync(path.join("current", name), dst);
@@ -115,7 +116,7 @@ async function main() {
115
116
  if (platform !== "windows") {
116
117
  try { pointSymlinks(); } catch (e) { /* non-fatal */ }
117
118
  }
118
- for (const name of BIN_NAMES) {
119
+ for (const name of availableBins()) {
119
120
  const src = path.join(VERSION_DIR, `${name}${ext}`);
120
121
  const dst = path.join(DIR, `${name}${ext}`);
121
122
  if (fs.existsSync(src)) {
@@ -146,7 +147,7 @@ async function main() {
146
147
  execSync(`tar -xzf "${releasePath}" -C "${VERSION_DIR}"`, { stdio: "pipe" });
147
148
 
148
149
  if (platform !== "windows") {
149
- for (const name of BIN_NAMES) {
150
+ for (const name of availableBins()) {
150
151
  const bin = path.join(VERSION_DIR, name);
151
152
  if (fs.existsSync(bin)) fs.chmodSync(bin, 0o755);
152
153
  }
@@ -164,7 +165,7 @@ async function main() {
164
165
 
165
166
  // Defensive copy into the npm package install dir so cli.js's
166
167
  // fallback path works when ~/.apteva isn't usable.
167
- for (const name of BIN_NAMES) {
168
+ for (const name of availableBins()) {
168
169
  const src = path.join(VERSION_DIR, `${name}${ext}`);
169
170
  const dst = path.join(DIR, `${name}${ext}`);
170
171
  if (fs.existsSync(src)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apteva",
3
- "version": "0.90.5",
3
+ "version": "0.90.7",
4
4
  "description": "The open-source AI operating system for persistent agents, apps, and integrations",
5
5
  "bin": {
6
6
  "apteva": "./cli.js"