@mulmoclaude/core 0.21.0 → 0.22.1

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.
@@ -1,5 +1,13 @@
1
1
  import { Credentials } from 'google-auth-library';
2
- export declare function mergeGoogleTokens(existing: Credentials | null, incoming: Credentials): Credentials;
3
- export declare function loadGoogleTokens(home?: string): Promise<Credentials | null>;
4
- export declare function saveGoogleTokens(incoming: Credentials, home?: string): Promise<Credentials>;
2
+ /** Which client minted the grant: `local` = the user's own client JSON in
3
+ * `~/.secrets/`, `broker` = the mulmoserver broker. Renewal must use the same
4
+ * path, since only that client's secret can refresh its tokens. Absent on
5
+ * tokens written before the broker existed — those are all `local`. */
6
+ export type IssuedVia = "local" | "broker";
7
+ export interface StoredGoogleTokens extends Credentials {
8
+ issuedVia?: IssuedVia;
9
+ }
10
+ export declare function mergeGoogleTokens(existing: StoredGoogleTokens | null, incoming: StoredGoogleTokens): StoredGoogleTokens;
11
+ export declare function loadGoogleTokens(home?: string): Promise<StoredGoogleTokens | null>;
12
+ export declare function saveGoogleTokens(incoming: StoredGoogleTokens, home?: string): Promise<StoredGoogleTokens>;
5
13
  export declare function deleteGoogleTokens(home?: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulmoclaude/core",
3
- "version": "0.21.0",
3
+ "version": "0.22.1",
4
4
  "description": "Shared server-side core for MulmoClaude and MulmoTerminal — the always-shipped-together subsystems consolidated behind subpath exports so the two hosts can't drift. Server-only except the browser-safe ./whisper/client, ./workspace-setup/slug, ./translation/client, ./remote-view and ./remote-host entries. All host specifics are injected.",
5
5
  "type": "module",
6
6
  "exports": {