@ai-development-environment/control-agent 0.0.120 → 0.0.121

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.
@@ -11022,7 +11022,7 @@ function tailscaleServeRemovePayload(value) {
11022
11022
  // package.json
11023
11023
  var package_default = {
11024
11024
  name: "@ai-development-environment/control-agent",
11025
- version: "0.0.120",
11025
+ version: "0.0.121",
11026
11026
  description: "Control agent for the AI Development Environment",
11027
11027
  license: "MIT",
11028
11028
  repository: {
@@ -53929,12 +53929,15 @@ var OpenCodeRuntime = class {
53929
53929
  throw new Error(
53930
53930
  `OpenCode >=2.1.1 <3 is required; found ${stdout.trim()}`
53931
53931
  );
53932
+ const version = stdout.trim().replace(/^(?:opencode\s+)?v?/, "");
53932
53933
  await mkdir9(dirname12(this.file), { recursive: true, mode: 448 });
53933
53934
  try {
53934
53935
  const endpoint = await Service.ensure({
53935
53936
  file: this.file,
53936
53937
  env: { XDG_STATE_HOME: this.stateDirectory },
53937
- version: supportedOpenCodeVersion,
53938
+ // Replace an older owned service after a CLI upgrade, even when its
53939
+ // API version is still supported.
53940
+ version,
53938
53941
  command: [
53939
53942
  executable,
53940
53943
  "serve",
@@ -53954,6 +53957,10 @@ var OpenCodeRuntime = class {
53954
53957
  });
53955
53958
  if (!supportedOpenCodeVersion(info.version))
53956
53959
  throw new Error(`Unsupported OpenCode server version: ${info.version}`);
53960
+ if (info.version !== version)
53961
+ throw new Error(
53962
+ `OpenCode server version ${info.version} does not match installed CLI ${version}`
53963
+ );
53957
53964
  return { client, version: info.version };
53958
53965
  } catch (error) {
53959
53966
  await Service.stop({ file: this.file }).catch(() => void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-development-environment/control-agent",
3
- "version": "0.0.120",
3
+ "version": "0.0.121",
4
4
  "description": "Control agent for the AI Development Environment",
5
5
  "license": "MIT",
6
6
  "repository": {