facult 2.3.0 → 2.3.1

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/bin/fclt.cjs +10 -6
  2. package/package.json +1 -1
package/bin/fclt.cjs CHANGED
@@ -39,6 +39,7 @@ async function main() {
39
39
  const binaryName = resolved.platform === "windows" ? "fclt.exe" : "fclt";
40
40
  const binaryPath = path.join(installDir, binaryName);
41
41
  const sourceEntry = path.join(__dirname, "..", "src", "index.ts");
42
+ let installedBinaryThisRun = false;
42
43
 
43
44
  if (!(await fileExists(binaryPath))) {
44
45
  const tag = `v${version}`;
@@ -56,6 +57,7 @@ async function main() {
56
57
  await fsp.chmod(tmpPath, 0o755);
57
58
  }
58
59
  await fsp.rename(tmpPath, binaryPath);
60
+ installedBinaryThisRun = true;
59
61
  } catch (error) {
60
62
  await safeUnlink(tmpPath);
61
63
  if (await canUseSourceFallback(sourceEntry)) {
@@ -84,12 +86,14 @@ async function main() {
84
86
  }
85
87
 
86
88
  const packageManager = detectPackageManager();
87
- await bestEffortWriteInstallState({
88
- method: "npm-binary-cache",
89
- version,
90
- binaryPath,
91
- packageManager,
92
- });
89
+ if (installedBinaryThisRun) {
90
+ await bestEffortWriteInstallState({
91
+ method: "npm-binary-cache",
92
+ version,
93
+ binaryPath,
94
+ packageManager,
95
+ });
96
+ }
93
97
 
94
98
  const args = process.argv.slice(2);
95
99
  const result = spawnSync(binaryPath, args, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "facult",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Manage canonical AI capabilities, sync surfaces, and evolution state.",
5
5
  "type": "module",
6
6
  "license": "MIT",