codeam-cli 2.61.75 → 2.61.76

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.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to `codeam-cli` are documented here.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.61.75] — 2026-07-29
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Stop misclassifying house-agent 403 usage-ceiling as an auth failure (#568)
12
+
7
13
  ## [2.61.74] — 2026-07-29
8
14
 
9
15
  ### Fixed
package/dist/index.js CHANGED
@@ -1830,11 +1830,110 @@ var specDrivenDevelopmentSkill = {
1830
1830
  }
1831
1831
  };
1832
1832
 
1833
+ // ../../packages/shared/src/skills/code-naming.ts
1834
+ var CODE_NAMING_BODY = `Use this skill when NAMING or RENAMING code \u2014 variables, functions, classes,
1835
+ interfaces, types, files, modules, components, hooks, constants \u2014 while writing
1836
+ new code, refactoring, or reviewing a diff. A name should reveal intent and
1837
+ domain meaning so a reader understands the code without translating it in their
1838
+ head, and so it needs fewer comments.
1839
+
1840
+ ## The five core rules (name the concept, not the implementation)
1841
+
1842
+ 1. **Don't abbreviate, and don't use single letters for meaningful values.**
1843
+ \`usr\`/\`cfg\`/\`authReq\` \u2192 \`user\`/\`config\`/\`authRequest\`; \`u\`/\`p\` \u2192 \`user\`/\`project\`.
1844
+ Abbreviations rely on context the next reader may not have. Allowed: standard
1845
+ acronyms the domain already uses (API, URL, HTTP, ID, UUID, CLI, SDK, PR, OAuth),
1846
+ loop indices \`i\`/\`j\`, coordinates \`x\`/\`y\`, and generic type params \`T\`/\`K\`/\`V\`.
1847
+
1848
+ 2. **Don't put the data TYPE in a variable name.** \`userList\` \u2192 \`users\`,
1849
+ \`nameString\` \u2192 \`displayName\`, \`isActiveBool\` \u2192 \`isActive\`, \`invoiceMap\` \u2192
1850
+ \`invoicesById\`. The type system and editor already show the type; the name
1851
+ should carry the meaning.
1852
+
1853
+ 3. **Include the UNIT when a number has one** (unless the type makes it
1854
+ unmistakable). \`timeout\` \u2192 \`timeoutMs\`, \`delay\` \u2192 \`retryDelaySeconds\`,
1855
+ \`size\` \u2192 \`fileSizeBytes\`, \`price\` \u2192 \`priceUsd\`. Especially time, distance,
1856
+ money, bytes, rates, percentages, token/rate limits.
1857
+
1858
+ 4. **Don't put the type CONSTRUCT in a type's name.** \`UserClass\` \u2192 \`User\`,
1859
+ \`PaymentInterface\`/\`IPayment\` \u2192 \`Payment\` (or a role like \`PaymentGateway\`),
1860
+ \`ConfigType\` \u2192 \`Config\`, \`StatusEnum\` \u2192 \`Status\`. Name the concept, not
1861
+ "what kind of programming thing it is."
1862
+
1863
+ 5. **Refactor when you're reaching for \`Utils\`/\`Helpers\`/\`Common\`.** A generic
1864
+ bucket usually hides a missing concept. Group by domain instead:
1865
+ \`utils/parseCookie\` \u2192 a \`cookies/\` module or a \`CookieStore\`/\`CookieJar\` class;
1866
+ \`utils/formatDate\` \u2192 \`dates/\` or a \`DateRangeFormatter\`. Same for vague
1867
+ \`Base\`/\`Abstract\`/\`Manager\`/\`Helper\` class names \u2014 prefer the role
1868
+ (\`Repository\`, \`BillingService\`, \`UserProvisioner\`) unless the project
1869
+ convention explicitly requires \`Base\`/\`Abstract\`.
1870
+
1871
+ ## Shape rules
1872
+
1873
+ - **Functions are verbs / verb phrases:** \`createInvoice()\`, \`sendPasswordResetEmail()\`,
1874
+ \`findRepositoryById()\`. Booleans read like a question in an \`if\`:
1875
+ \`isActive\`, \`hasAccess\`, \`canDeploy\`, \`shouldRetry\` (prefix \`is/has/can/should/needs\`).
1876
+ - **Classes / interfaces / types are nouns or roles:** \`Invoice\`, \`PaymentGateway\`,
1877
+ \`AgentSession\` \u2014 not \`InvoiceData\`, \`SubscriptionThing\`, \`AgentSessionType\`.
1878
+ - **Collections are plural, or \`\u2026ById\`/\`\u2026ByX\` when indexed:** \`users\`,
1879
+ \`activeSessions\`, \`invoicesByCustomerId\`.
1880
+ - **Don't encode a temporary implementation in a name that may change:**
1881
+ \`postgresUserRepository\` \u2192 \`userRepository\`, \`redisCache\` \u2192 \`cache\` \u2014 unless the
1882
+ implementation IS the meaningful distinction. Name the role, not today's backend.
1883
+ - **Follow the project's existing conventions** (casing, file naming, \`useX\`
1884
+ hooks, \`handleX\` handlers). Match the surrounding code; don't introduce a new
1885
+ style without a strong reason.
1886
+
1887
+ ## Words to distrust (infer the real role, then name it)
1888
+
1889
+ \`data\`, \`info\`, \`item\`, \`obj\`, \`temp\`, \`result\`, \`value\`, \`thing\`, \`stuff\`,
1890
+ \`manager\`, \`helper\`, \`utils\`, \`common\`, \`base\`, \`abstract\`, \`processor\`,
1891
+ \`handler\`, \`payload\`. They're acceptable only when the surrounding context makes
1892
+ them precise (e.g. \`config\` inside one \`DatabaseConnection\`); vague when passed
1893
+ across many layers.
1894
+
1895
+ ## Guardrails \u2014 this is a review/refactor guide, NOT a mass-rename mandate
1896
+
1897
+ - Names that are already clear and idiomatic are DONE \u2014 leave them.
1898
+ - Before renaming: read how the identifier is used and infer the real domain
1899
+ concept. Prefer the **smallest** clear rename.
1900
+ - Do NOT do large unrelated renames, and do NOT rename purely for personal
1901
+ preference. Stay inside the change you were asked to make.
1902
+ - Preserve public API / exported names unless the task explicitly allows a break;
1903
+ when you do rename, update every reference, tests, and docs in the same change.
1904
+ - No clever names, jokes, or metaphors in production code; don't make names
1905
+ needlessly long either.
1906
+
1907
+ When reviewing, raise a naming issue only when a clearer name would materially
1908
+ help a reader \u2014 one suggestion per finding: \`current \u2192 suggested \u2014 why\`.`;
1909
+ var CODE_NAMING_INSTRUCTION = `When naming or renaming code, name the domain concept, not the implementation:
1910
+ no abbreviations or single-letter names for meaningful values (standard acronyms
1911
+ like API/URL/ID/OAuth are fine); don't put the data type in a variable name
1912
+ (userList \u2192 users); include the unit when a number has one (timeout \u2192 timeoutMs);
1913
+ don't put the type construct in a type's name (IPayment \u2192 Payment); and refactor
1914
+ generic Utils/Helper/Manager/Base buckets into a domain module or a role-named
1915
+ class. Functions are verbs (createInvoice), booleans read like questions
1916
+ (isActive/hasAccess), classes/types are nouns/roles, collections are plural or
1917
+ \u2026ById. This is a review/refactor guide, not a mandate to mass-rename: leave
1918
+ already-clear names alone, prefer the smallest clear rename, don't rename
1919
+ unrelated code, and preserve public/exported names unless the task allows a break.`;
1920
+ var codeNamingSkill = {
1921
+ id: "code-naming",
1922
+ name: "Code Naming",
1923
+ description: `Naming review & refactor: name the domain concept, not the implementation \u2014 no abbreviations, no type-in-name, units when they matter, no Utils/Manager/Base buckets; rename minimally, never mass-rename.`,
1924
+ source: "curated",
1925
+ delivery: {
1926
+ skillFile: { body: CODE_NAMING_BODY },
1927
+ instruction: { body: CODE_NAMING_INSTRUCTION }
1928
+ }
1929
+ };
1930
+
1833
1931
  // ../../packages/shared/src/skills/registry.ts
1834
1932
  var SKILL_REGISTRY = {
1835
1933
  "code-review": codeReviewSkill,
1836
1934
  "resolve-conflicts": resolveConflictsSkill,
1837
- "spec-driven-development": specDrivenDevelopmentSkill
1935
+ "spec-driven-development": specDrivenDevelopmentSkill,
1936
+ "code-naming": codeNamingSkill
1838
1937
  };
1839
1938
  function isSkillId(id) {
1840
1939
  return Object.prototype.hasOwnProperty.call(SKILL_REGISTRY, id);
@@ -7074,7 +7173,7 @@ function readAnonId() {
7074
7173
  }
7075
7174
  function superProperties() {
7076
7175
  return {
7077
- cliVersion: true ? "2.61.75" : "0.0.0-dev",
7176
+ cliVersion: true ? "2.61.76" : "0.0.0-dev",
7078
7177
  nodeVersion: process.version,
7079
7178
  platform: process.platform,
7080
7179
  arch: process.arch,
@@ -7255,7 +7354,7 @@ var os4 = __toESM(require("os"));
7255
7354
  // package.json
7256
7355
  var package_default = {
7257
7356
  name: "codeam-cli",
7258
- version: "2.61.75",
7357
+ version: "2.61.76",
7259
7358
  description: "Workflow-continuity bridge for AI coding agents. Wrap Claude Code or Codex in a PTY and supervise, approve, and redirect the session from any device \u2014 async. The terminal companion for CodeAgent Mobile.",
7260
7359
  type: "commonjs",
7261
7360
  main: "dist/index.js",
@@ -8487,7 +8586,7 @@ var CommandRelayService = class _CommandRelayService {
8487
8586
  // fresh + clear the "CLI update available" banner after a self-update
8488
8587
  // (a codespace that reinstalls @latest reconnects via heartbeat, not
8489
8588
  // pair/reconnect). Older backends ignore the extra field.
8490
- ..."2.61.75" ? { ideVersion: "2.61.75" } : {}
8589
+ ..."2.61.76" ? { ideVersion: "2.61.76" } : {}
8491
8590
  }).then(() => log.trace("relay", `heartbeat ok online=${online}`)).catch((err) => log.trace("relay", `heartbeat failed online=${online}`, err));
8492
8591
  }
8493
8592
  /**
@@ -19601,7 +19700,7 @@ async function autoUpgradeBeforeCriticalCommand() {
19601
19700
  if (process.env.NODE_ENV === "test") return;
19602
19701
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
19603
19702
  if (process.env.CI) return;
19604
- const current = true ? "2.61.75" : null;
19703
+ const current = true ? "2.61.76" : null;
19605
19704
  if (!current) return;
19606
19705
  const cache = readCache();
19607
19706
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -19618,7 +19717,7 @@ function checkForUpdates() {
19618
19717
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
19619
19718
  if (process.env.CI) return;
19620
19719
  if (!process.stdout.isTTY) return;
19621
- const current = true ? "2.61.75" : null;
19720
+ const current = true ? "2.61.76" : null;
19622
19721
  if (!current) return;
19623
19722
  const cache = readCache();
19624
19723
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -19638,7 +19737,7 @@ var SELF_UPDATE_INTERVAL_MS = 60 * 60 * 1e3;
19638
19737
  var SELF_UPDATE_VIEW_TIMEOUT_MS = 3e4;
19639
19738
  var SELF_UPDATE_INSTALL_TIMEOUT_MS = 18e4;
19640
19739
  function currentCliVersion() {
19641
- return true ? "2.61.75" : null;
19740
+ return true ? "2.61.76" : null;
19642
19741
  }
19643
19742
  function runCmd(cmd, args2, timeoutMs) {
19644
19743
  return new Promise((resolve9) => {
@@ -40121,7 +40220,7 @@ function checkChokidar() {
40121
40220
  }
40122
40221
  async function doctor(args2 = []) {
40123
40222
  const json = args2.includes("--json");
40124
- const cliVersion = true ? "2.61.75" : "0.0.0-dev";
40223
+ const cliVersion = true ? "2.61.76" : "0.0.0-dev";
40125
40224
  const apiBase2 = resolveApiBaseUrl();
40126
40225
  const diagnosticId = (0, import_node_crypto13.randomUUID)();
40127
40226
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -40643,7 +40742,7 @@ async function mcpRun(args2) {
40643
40742
  // src/commands/version.ts
40644
40743
  var import_picocolors15 = __toESM(require("picocolors"));
40645
40744
  function version2() {
40646
- const v = true ? "2.61.75" : "unknown";
40745
+ const v = true ? "2.61.76" : "unknown";
40647
40746
  console.log(`${import_picocolors15.default.bold("codeam-cli")} ${import_picocolors15.default.cyan(v)}`);
40648
40747
  }
40649
40748
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.61.75",
3
+ "version": "2.61.76",
4
4
  "description": "Workflow-continuity bridge for AI coding agents. Wrap Claude Code or Codex in a PTY and supervise, approve, and redirect the session from any device — async. The terminal companion for CodeAgent Mobile.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",