claude-use 5.1.1 → 5.2.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/README.md +2 -0
- package/dist/cli.cjs +2350 -1142
- package/dist/types/launcher/ports.d.ts +2 -0
- package/dist/types/paths.d.ts +6 -0
- package/package.json +1 -1
|
@@ -46,6 +46,8 @@ export interface FarmFs {
|
|
|
46
46
|
readonly mkdirPrivate: (path: string) => void;
|
|
47
47
|
/** Writes a file's full contents as UTF-8 text readable only by its owner (mode 0600), atomically: a temporary sibling is written at that mode and renamed into place, so no reader ever sees a partial file or a wider mode. */
|
|
48
48
|
readonly writeFilePrivate: (path: string, contents: string) => void;
|
|
49
|
+
/** Appends UTF-8 text to a file readable only by its owner (mode 0600), creating it at that mode when it is missing and narrowing an existing wider mode. The file is opened in append mode, so the text always lands at the end however the file grew; a reader running at the same moment can still see a trailing partial write. It is the primitive an append-only log with one writer per file is built on. */
|
|
50
|
+
readonly appendFilePrivate: (path: string, contents: string) => void;
|
|
49
51
|
/** Creates a file only if it does not already exist, returning false when it does. This is the exclusive-create the identity lock depends on for its mutual exclusion — a read-then-write pair would race. */
|
|
50
52
|
readonly writeFileExclusive: (path: string, contents: string) => boolean;
|
|
51
53
|
/** A stable content hash of one file, or undefined when it is missing or is not a regular file. Used only to recognise farm data that has already been adopted into the canonical tree. */
|
package/dist/types/paths.d.ts
CHANGED
|
@@ -52,6 +52,12 @@ export interface LayoutPaths {
|
|
|
52
52
|
readonly frontdoorSessionsDir: string;
|
|
53
53
|
/** Path to the front door's log: one line per lifecycle event and routed failure, never a token. */
|
|
54
54
|
readonly frontdoorLogPath: string;
|
|
55
|
+
/** Directory holding the usage store, mode 0700: the request log and the per-identity snapshots. Metadata only, never content or credentials. */
|
|
56
|
+
readonly usageDir: string;
|
|
57
|
+
/** Directory of the append-only usage log: one `<YYYY-MM-DD>.<writer-pid>.jsonl` segment per writing process per UTC day. */
|
|
58
|
+
readonly usageLogDir: string;
|
|
59
|
+
/** Directory of the latest-state snapshots, one `<identity>.json` per identity: the stable file other tools read. */
|
|
60
|
+
readonly usageSnapshotsDir: string;
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
63
|
* Resolves the current CLAUDE_USE_HOME root: the environment variable when set to a non-empty string, otherwise `~/.claude-use`. An empty string counts as unset, consistent with how this project treats empty-string environment variables elsewhere (see the ambient-credential guard).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.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": "Apache-2.0",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|