@ouro.bot/cli 0.1.0-alpha.1031 → 0.1.0-alpha.1034

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.
package/changelog.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1034",
6
+ "changes": [
7
+ "Account pool: the fleet burn file uses the machine name this Mac's quota balancer uses (for example laptop), before LocalHostName."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1031",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1031",
2
+ "runtimeVersion": "0.1.0-alpha.1034",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1031</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1034</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -61,13 +61,22 @@ const fleet_readings_1 = require("../quota/fleet-readings");
61
61
  const accountKey = (account) => `${account.login}@${account.host}`;
62
62
  exports.accountKey = accountKey;
63
63
  /**
64
- * This Mac's name for the fleet gist: macOS's LocalHostName (unique on the network, and what the fleet tooling
65
- * keys Macs by), else the host name, lowercased with no dots. Generic host names such as "Mac" would make two
66
- * machines write one file.
64
+ * This Mac's name for the fleet gist. First the name the Mac's own quota balancer uses (`last.machine` in
65
+ * `~/.config/mac-fleet/quota-balance.json`, from the fleet's machines.json, e.g. "laptop"), so the agent's file sits
66
+ * beside that Mac's `<machine>.quota.txt`. Else macOS's LocalHostName (unique on the network), else the host name.
67
+ * Lowercased with no dots: a generic host name such as "Mac" would make two machines write one file.
67
68
  */
68
69
  function defaultMachineName(deps = {}) {
69
70
  let name = "";
70
- if ((deps.platform ?? process.platform) === "darwin") {
71
+ try {
72
+ const state = JSON.parse((deps.readFile ?? ((file) => fs.readFileSync(file, "utf8")))(path.join(deps.homeDir ?? os.homedir(), fleet_readings_1.LOCAL_BALANCER_STATE)));
73
+ if (typeof state?.last?.machine === "string")
74
+ name = state.last.machine.trim();
75
+ }
76
+ catch {
77
+ // no balancer on this Mac
78
+ }
79
+ if (!name && (deps.platform ?? process.platform) === "darwin") {
71
80
  const result = spawnOf(deps)("/usr/sbin/scutil", ["--get", "LocalHostName"], { encoding: "utf8", timeout: 3000 });
72
81
  name = result.status === 0 ? String(result.stdout ?? "").trim() : "";
73
82
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1031",
3
+ "version": "0.1.0-alpha.1034",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1031",
9
+ "version": "0.1.0-alpha.1034",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.78.0",
12
12
  "@ouro.bot/friends": "0.1.0-alpha.18",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1031",
3
+ "version": "0.1.0-alpha.1034",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },