@openlatch/client 0.11.6 → 0.11.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.
@@ -67,9 +67,9 @@ function downloadBinaries() {
67
67
  const binDir = path.join(__dirname, "..", "bin");
68
68
  fs.mkdirSync(binDir, { recursive: true });
69
69
 
70
+ // Two binaries on every OS (AGT-12): the Cline runtime launcher is a mode of the hook and the
71
+ // launch-point launcher a command of openlatch.
70
72
  const binaries = ["openlatch", "openlatch-hook"];
71
- // The Cline runtime launcher (Cline I-5, D-06) ships on Windows only.
72
- if (os.platform() === "win32") binaries.push("openlatch-cline-runtime");
73
73
 
74
74
  for (const binaryName of binaries) {
75
75
  const assetName = `${binaryName}-${rustTarget}${ext}`;
@@ -45,15 +45,6 @@ function resolveCandidate(baseName) {
45
45
  }
46
46
  }
47
47
 
48
- // The Cline runtime launcher (Cline I-5, D-06) ships in the win32 package only. `openlatch`
49
- // copies it into <ol_dir>/bin from its OWN directory, so it must travel beside the pair
50
- // wherever this file moves the pair. Absent from an older package, it is simply not copied.
51
- const LAUNCHER = "openlatch-cline-runtime";
52
-
53
- function launcherName() {
54
- return os.platform() === "win32" ? `${LAUNCHER}.exe` : null;
55
- }
56
-
57
48
  function openlatchDir() {
58
49
  return process.env.OPENLATCH_DIR || path.join(os.homedir(), ".openlatch");
59
50
  }
@@ -113,10 +104,6 @@ function preservePreGuardEvaluator(state) {
113
104
  fs.copyFileSync(runningHook, path.join(root, `openlatch-hook${ext}`));
114
105
  fs.chmodSync(path.join(root, `openlatch${ext}`), 0o755);
115
106
  fs.chmodSync(path.join(root, `openlatch-hook${ext}`), 0o755);
116
- const launcher = launcherName();
117
- if (launcher && fs.existsSync(path.join(runningDir, launcher))) {
118
- fs.copyFileSync(path.join(runningDir, launcher), path.join(root, launcher));
119
- }
120
107
  const preserved = { ...state, current: root, previous: null };
121
108
  writeState(preserved);
122
109
  return preserved;
@@ -139,10 +126,6 @@ function replacePairAtRecordedPaths(executable, hook, state) {
139
126
  [`openlatch${ext}`, executable],
140
127
  [`openlatch-hook${ext}`, hook],
141
128
  ];
142
- const launcher = launcherName();
143
- if (launcher && fs.existsSync(path.join(state.current, launcher))) {
144
- pairs.push([launcher, path.join(path.dirname(executable), launcher)]);
145
- }
146
129
  for (const [sourceName, destination] of pairs) {
147
130
  const source = path.join(state.current, sourceName);
148
131
  const temporary = `${destination}.reader-restore`;
@@ -177,22 +160,17 @@ function activateCandidate() {
177
160
  const ext = os.platform() === "win32" ? ".exe" : "";
178
161
  const stagedExe = path.join(root, `openlatch${ext}`);
179
162
  const stagedHook = path.join(root, `openlatch-hook${ext}`);
180
- const launcher = launcherName() ? resolveCandidate(LAUNCHER) : null;
181
- const hasLauncher = Boolean(launcher && fs.existsSync(launcher));
182
- const stagedLauncher = hasLauncher ? path.join(root, launcherName()) : null;
183
163
  const existing = readState();
184
164
  if (
185
165
  existing.current === root &&
186
166
  fs.existsSync(stagedExe) &&
187
- fs.existsSync(stagedHook) &&
188
- (!hasLauncher || fs.existsSync(stagedLauncher))
167
+ fs.existsSync(stagedHook)
189
168
  ) {
190
169
  return existing;
191
170
  }
192
171
  fs.mkdirSync(root, { recursive: true });
193
172
  fs.copyFileSync(executable, stagedExe);
194
173
  fs.copyFileSync(hook, stagedHook);
195
- if (hasLauncher) fs.copyFileSync(launcher, stagedLauncher);
196
174
  if (os.platform() !== "win32") {
197
175
  fs.chmodSync(stagedExe, 0o755);
198
176
  fs.chmodSync(stagedHook, 0o755);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openlatch/client",
3
- "version": "0.11.6",
3
+ "version": "0.11.8",
4
4
  "description": "OpenLatch runtime enforcement node — the capture-and-enforce adapter that evaluates every covered action against a coding agent's Autonomy Zone before it runs",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -20,10 +20,10 @@
20
20
  "postinstall": "node lib/postinstall.js"
21
21
  },
22
22
  "optionalDependencies": {
23
- "@openlatch/client-darwin-arm64": "0.11.6",
24
- "@openlatch/client-darwin-x64": "0.11.6",
25
- "@openlatch/client-linux-x64": "0.11.6",
26
- "@openlatch/client-linux-arm64": "0.11.6",
27
- "@openlatch/client-win32-x64": "0.11.6"
23
+ "@openlatch/client-darwin-arm64": "0.11.8",
24
+ "@openlatch/client-darwin-x64": "0.11.8",
25
+ "@openlatch/client-linux-x64": "0.11.8",
26
+ "@openlatch/client-linux-arm64": "0.11.8",
27
+ "@openlatch/client-win32-x64": "0.11.8"
28
28
  }
29
29
  }