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

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.
@@ -7660,6 +7660,10 @@ function parseLocalBranchInventory(value) {
7660
7660
  branch.lastCommitMessage,
7661
7661
  "local branch.lastCommitMessage"
7662
7662
  ),
7663
+ lastCommitAuthor: branch.lastCommitAuthor == null || branch.lastCommitAuthor === "" ? null : stringValue3(
7664
+ branch.lastCommitAuthor,
7665
+ "local branch.lastCommitAuthor"
7666
+ ),
7663
7667
  current: booleanValue(branch.current, "local branch.current"),
7664
7668
  checkedOutPath: nullableString2(
7665
7669
  branch.checkedOutPath,
@@ -11022,7 +11026,7 @@ function tailscaleServeRemovePayload(value) {
11022
11026
  // package.json
11023
11027
  var package_default = {
11024
11028
  name: "@ai-development-environment/control-agent",
11025
- version: "0.0.120",
11029
+ version: "0.0.122",
11026
11030
  description: "Control agent for the AI Development Environment",
11027
11031
  license: "MIT",
11028
11032
  repository: {
@@ -11566,7 +11570,7 @@ async function scanLocalBranches(folder, timeoutMs, signal2, branch) {
11566
11570
  folder,
11567
11571
  [
11568
11572
  "for-each-ref",
11569
- "--format=%(refname:strip=2)%00%(objectname)%00%(committerdate:iso-strict)%00%(contents:subject)%00%(worktreepath)",
11573
+ "--format=%(refname:strip=2)%00%(objectname)%00%(committerdate:iso-strict)%00%(contents:subject)%00%(worktreepath)%00%(authorname)",
11570
11574
  branch ? `refs/heads/${branch}` : "refs/heads"
11571
11575
  ],
11572
11576
  timeoutMs,
@@ -11580,12 +11584,13 @@ async function scanLocalBranches(folder, timeoutMs, signal2, branch) {
11580
11584
  return parseLocalBranchInventory({
11581
11585
  scannedAt: (/* @__PURE__ */ new Date()).toISOString(),
11582
11586
  branches: refs.stdout.split("\n").filter(Boolean).map((line) => {
11583
- const [name, headSha, date, subject, path] = line.split("\0");
11587
+ const [name, headSha, date, subject, path, author] = line.split("\0");
11584
11588
  return {
11585
11589
  name,
11586
11590
  headSha,
11587
11591
  lastCommitAt: date && Number.isFinite(Date.parse(date)) ? new Date(date).toISOString() : null,
11588
11592
  lastCommitMessage: subject?.slice(0, 2e3) || null,
11593
+ lastCommitAuthor: author || null,
11589
11594
  current: current.exitCode === 0 && name === current.stdout.trim(),
11590
11595
  checkedOutPath: path || null
11591
11596
  };
@@ -53929,12 +53934,15 @@ var OpenCodeRuntime = class {
53929
53934
  throw new Error(
53930
53935
  `OpenCode >=2.1.1 <3 is required; found ${stdout.trim()}`
53931
53936
  );
53937
+ const version = stdout.trim().replace(/^(?:opencode\s+)?v?/, "");
53932
53938
  await mkdir9(dirname12(this.file), { recursive: true, mode: 448 });
53933
53939
  try {
53934
53940
  const endpoint = await Service.ensure({
53935
53941
  file: this.file,
53936
53942
  env: { XDG_STATE_HOME: this.stateDirectory },
53937
- version: supportedOpenCodeVersion,
53943
+ // Replace an older owned service after a CLI upgrade, even when its
53944
+ // API version is still supported.
53945
+ version,
53938
53946
  command: [
53939
53947
  executable,
53940
53948
  "serve",
@@ -53954,6 +53962,10 @@ var OpenCodeRuntime = class {
53954
53962
  });
53955
53963
  if (!supportedOpenCodeVersion(info.version))
53956
53964
  throw new Error(`Unsupported OpenCode server version: ${info.version}`);
53965
+ if (info.version !== version)
53966
+ throw new Error(
53967
+ `OpenCode server version ${info.version} does not match installed CLI ${version}`
53968
+ );
53957
53969
  return { client, version: info.version };
53958
53970
  } catch (error) {
53959
53971
  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.122",
4
4
  "description": "Control agent for the AI Development Environment",
5
5
  "license": "MIT",
6
6
  "repository": {