claude-use 11.68.3 → 11.69.0

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/dist/cli.cjs CHANGED
@@ -37387,7 +37387,7 @@ var init_package = __esm({
37387
37387
  "package.json"() {
37388
37388
  package_default = {
37389
37389
  name: "claude-use",
37390
- version: "11.68.3",
37390
+ version: "11.69.0",
37391
37391
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
37392
37392
  license: "MIT",
37393
37393
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -140382,6 +140382,7 @@ var import_node_child_process9 = require("node:child_process");
140382
140382
  var import_node_os13 = __toESM(require("node:os"), 1);
140383
140383
  var import_node_path62 = __toESM(require("node:path"), 1);
140384
140384
  init_commandDeps();
140385
+ init_load();
140385
140386
  init_statusline();
140386
140387
  init_providersStore();
140387
140388
  init_realPorts();
@@ -144680,7 +144681,45 @@ function renderStatuslineBlock(input2) {
144680
144681
 
144681
144682
  // src/statusline/commands.ts
144682
144683
  init_keys();
144684
+
144685
+ // src/statusline/liveSettings.ts
144686
+ init_statusline();
144687
+ init_walk();
144688
+ init_flatten();
144689
+ init_cascade();
144690
+ init_identity();
144683
144691
  init_settings2();
144692
+ function statuslineSettingsForRender(inputs) {
144693
+ const fromEnv = inputs.env[STATUSLINE_ENV] === "" ? void 0 : inputs.env[STATUSLINE_ENV];
144694
+ if (fromEnv !== void 0) {
144695
+ return { settings: statuslineSettingsFromEnv(fromEnv, STATUSLINE_ENV) };
144696
+ }
144697
+ try {
144698
+ return { settings: statuslineSettingsFromCascade(inputs) };
144699
+ } catch (error63) {
144700
+ return { settings: void 0, problem: error63 instanceof Error ? error63.message : String(error63) };
144701
+ }
144702
+ }
144703
+ function statuslineSettingsFromCascade(inputs) {
144704
+ const { env, cwd, home, paths, fs: fs31 } = inputs;
144705
+ const loaded = loadCascadeInput({ paths, home, cwd, read: fs31.readConfigFile });
144706
+ const identity = identityOf(env);
144707
+ const identityConfig = identity === void 0 ? void 0 : loadIdentity(paths.identitiesDir, identity, fs31);
144708
+ const configProfile = decideConfigProfile({
144709
+ env,
144710
+ directoryRuleConfigProfile: readDirectorySelections(loaded).configProfile,
144711
+ identityDefaultConfigProfile: identityConfig?.config.defaultConfigProfile,
144712
+ globalDefaultConfigProfile: loaded.globalConfig?.defaultConfigProfile
144713
+ });
144714
+ const cascade = configProfile.name === void 0 ? loaded.input : loadCascadeInput({ paths, home, cwd, read: fs31.readConfigFile, baseConfigProfile: configProfile.name }).input;
144715
+ const assembled = assembleCascade(cascade);
144716
+ const broken = assembled.diagnostics.filter((diagnostic) => diagnostic.severity === "error");
144717
+ if (broken.length > 0) {
144718
+ throw new Error(broken.map((diagnostic) => `${diagnostic.code}: ${diagnostic.message}`).join("; "));
144719
+ }
144720
+ const statusline = flattenLayers(assembled.layers, { home }).launch.statusline;
144721
+ return statusline === void 0 ? void 0 : checkedStatusline(statusline, "launch.statusline");
144722
+ }
144684
144723
 
144685
144724
  // src/statusline/width.ts
144686
144725
  init_statusline();
@@ -144792,8 +144831,12 @@ function registerStatuslineCommand(program2, deps) {
144792
144831
  });
144793
144832
  return;
144794
144833
  }
144795
- const rawSettings = process.env[STATUSLINE_ENV];
144796
- const settings2 = resolveStatusline(rawSettings === void 0 || rawSettings === "" ? void 0 : statuslineSettingsFromEnv(rawSettings, STATUSLINE_ENV));
144834
+ const live = statuslineSettingsForRender({ env: process.env, cwd: process.cwd(), home: import_node_os13.default.homedir(), paths: deps.paths, fs: { ...realFsPort, readConfigFile: cosmiconfigReader() } });
144835
+ if (live.problem !== void 0) {
144836
+ process.stderr.write(`agent-shim: statusline: ${live.problem}. Drawing with the defaults.
144837
+ `);
144838
+ }
144839
+ const settings2 = resolveStatusline(live.settings);
144797
144840
  const conversationId = clientPayload.session_id;
144798
144841
  const prices = settings2.layout.header.some((name) => name === "cost" || name === "dailyCost") ? readModels(deps.paths)?.prices : void 0;
144799
144842
  const doorCostUsd = prices === void 0 || conversationId === void 0 ? void 0 : readDoorCostUsd({ fs: realFarmFs, logDir: deps.paths.usageLogDir, prices, conversationId, nowMs, sessionDurationMs: clientPayload.cost?.total_duration_ms });
package/dist/index.cjs CHANGED
@@ -4762,7 +4762,7 @@ var init_package = __esm({
4762
4762
  "package.json"() {
4763
4763
  package_default = {
4764
4764
  name: "claude-use",
4765
- version: "11.68.3",
4765
+ version: "11.69.0",
4766
4766
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
4767
4767
  license: "MIT",
4768
4768
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.mjs CHANGED
@@ -4738,7 +4738,7 @@ var init_package = __esm({
4738
4738
  "package.json"() {
4739
4739
  package_default = {
4740
4740
  name: "claude-use",
4741
- version: "11.68.3",
4741
+ version: "11.69.0",
4742
4742
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
4743
4743
  license: "MIT",
4744
4744
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "11.68.3",
3
+ "version": "11.69.0",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",