claude-use 11.67.2 → 11.67.3
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 +29 -16
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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.67.
|
|
37390
|
+
version: "11.67.3",
|
|
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>",
|
|
@@ -119565,8 +119565,8 @@ function unregisterSupervised(fs31, paths, pool, sessionId) {
|
|
|
119565
119565
|
fs31.removeRecursive(sessionFileOf(paths, pool, sessionId));
|
|
119566
119566
|
fs31.removeRecursive(sessionStatePath(paths, pool, sessionId));
|
|
119567
119567
|
}
|
|
119568
|
-
function
|
|
119569
|
-
const
|
|
119568
|
+
function listSupervised(fs31, paths, pool) {
|
|
119569
|
+
const listed = [];
|
|
119570
119570
|
for (const name of fs31.readdir(sessionsDirOf(paths, pool))) {
|
|
119571
119571
|
const file2 = import_node_path36.default.join(sessionsDirOf(paths, pool), name);
|
|
119572
119572
|
const raw = fs31.readFileUtf8(file2);
|
|
@@ -119580,8 +119580,19 @@ function liveSupervised(fs31, paths, pool, isRunning) {
|
|
|
119580
119580
|
fs31.removeRecursive(file2);
|
|
119581
119581
|
continue;
|
|
119582
119582
|
}
|
|
119583
|
-
if (parsed.success
|
|
119584
|
-
|
|
119583
|
+
if (parsed.success) {
|
|
119584
|
+
listed.push({ file: file2, session: parsed.data });
|
|
119585
|
+
} else {
|
|
119586
|
+
fs31.removeRecursive(file2);
|
|
119587
|
+
}
|
|
119588
|
+
}
|
|
119589
|
+
return listed;
|
|
119590
|
+
}
|
|
119591
|
+
function liveSupervised(fs31, paths, pool, isRunning) {
|
|
119592
|
+
const live = [];
|
|
119593
|
+
for (const { file: file2, session } of listSupervised(fs31, paths, pool)) {
|
|
119594
|
+
if (isRunning(session.pid)) {
|
|
119595
|
+
live.push(session);
|
|
119585
119596
|
} else {
|
|
119586
119597
|
fs31.removeRecursive(file2);
|
|
119587
119598
|
}
|
|
@@ -119631,15 +119642,17 @@ function readModelMove(fs31, paths, sessionId) {
|
|
|
119631
119642
|
function removeModelMove(fs31, paths, sessionId) {
|
|
119632
119643
|
fs31.removeRecursive(import_node_path36.default.join(paths.modelMovesDir, `${sessionId}.json`));
|
|
119633
119644
|
}
|
|
119634
|
-
function supervisedSessionOf(fs31, paths, sessionId,
|
|
119635
|
-
|
|
119636
|
-
|
|
119637
|
-
|
|
119638
|
-
if (
|
|
119639
|
-
return
|
|
119645
|
+
async function supervisedSessionOf(fs31, paths, sessionId, runningAmong) {
|
|
119646
|
+
const listed = fs31.readdir(paths.superviseDir).flatMap((pool) => listSupervised(fs31, paths, pool));
|
|
119647
|
+
const running = await runningAmong(listed.map(({ session }) => session.pid));
|
|
119648
|
+
const live = listed.filter(({ file: file2, session }) => {
|
|
119649
|
+
if (running.has(session.pid)) {
|
|
119650
|
+
return true;
|
|
119640
119651
|
}
|
|
119641
|
-
|
|
119642
|
-
|
|
119652
|
+
fs31.removeRecursive(file2);
|
|
119653
|
+
return false;
|
|
119654
|
+
});
|
|
119655
|
+
return live.find(({ session }) => session.sessionId === sessionId)?.session;
|
|
119643
119656
|
}
|
|
119644
119657
|
|
|
119645
119658
|
// src/selection/targetStore.ts
|
|
@@ -136103,7 +136116,7 @@ function createProviderRouteResolver(deps) {
|
|
|
136103
136116
|
const account = scan2.model === void 0 ? void 0 : resolveAccountTarget(scan2.model, deps.models?.(current.session));
|
|
136104
136117
|
if (account !== void 0) {
|
|
136105
136118
|
const sessionId = current.session.sessionId ?? "";
|
|
136106
|
-
const moved = sessionId !== "" && (deps.accountMoves?.(sessionId, account.identity, account.model) ?? false);
|
|
136119
|
+
const moved = sessionId !== "" && (await deps.accountMoves?.(sessionId, account.identity, account.model) ?? false);
|
|
136107
136120
|
return {
|
|
136108
136121
|
ok: false,
|
|
136109
136122
|
status: HTTP_STATUS.badRequest,
|
|
@@ -139648,8 +139661,8 @@ function realFrontDoorSupervisorPorts(paths, respawnGeneration, lifecycle, track
|
|
|
139648
139661
|
usageSnapshotOf: (identity) => identity === void 0 ? void 0 : routingSnapshots.get(identity) ?? readUsageSnapshot(realFarmFs, paths.usageSnapshotsDir, identity),
|
|
139649
139662
|
// An `acct:` model member is served by relaunch: the door leaves a move request for the session's supervisor (found across every pool's registry, since the door does not know which pool launched the session) and answers the request with what is happening. A session nothing supervises gets the message naming the command to run instead.
|
|
139650
139663
|
observations: (target) => observations.observation(target),
|
|
139651
|
-
accountMoves: (sessionId, to2, model) => {
|
|
139652
|
-
if (supervisedSessionOf(realFarmFs, paths, sessionId,
|
|
139664
|
+
accountMoves: async (sessionId, to2, model) => {
|
|
139665
|
+
if (await supervisedSessionOf(realFarmFs, paths, sessionId, realRunningAmong) === void 0) {
|
|
139653
139666
|
return false;
|
|
139654
139667
|
}
|
|
139655
139668
|
writeModelMove(realFarmFs, paths, { sessionId, to: to2, model, at: (/* @__PURE__ */ new Date()).toISOString() });
|
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.67.
|
|
4765
|
+
version: "11.67.3",
|
|
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.67.
|
|
4741
|
+
version: "11.67.3",
|
|
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.67.
|
|
3
|
+
"version": "11.67.3",
|
|
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>",
|