@neta-art/cohub-cli 1.6.2 → 1.6.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/auth.d.ts CHANGED
@@ -28,7 +28,6 @@ export declare class AuthRequiredError extends Error {
28
28
  constructor(message?: string);
29
29
  }
30
30
  export declare const readAuthSession: () => AuthSession | null;
31
- export declare const clearDeviceCode: () => void;
32
31
  export declare const clearAuthSession: () => void;
33
32
  export declare const authSource: () => AuthSource;
34
33
  export declare function resolveAccessToken(): Promise<string | null>;
package/dist/auth.js CHANGED
@@ -110,7 +110,7 @@ const toSession = (token, config, env, previous) => {
110
110
  };
111
111
  };
112
112
  export const readAuthSession = () => readJson(sessionPath());
113
- export const clearDeviceCode = () => {
113
+ const clearDeviceCode = () => {
114
114
  removeIfExists(deviceCodePath());
115
115
  };
116
116
  export const clearAuthSession = () => {
package/dist/client.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { CohubHttpClient } from "@neta-art/cohub";
2
- import { clearDeviceCode, resolveAccessToken } from "./auth.js";
2
+ import { clearAuthSession, resolveAccessToken } from "./auth.js";
3
3
  export function createClient() {
4
4
  return new CohubHttpClient({
5
5
  getAccessToken: resolveAccessToken,
6
- onUnauthorized: clearDeviceCode,
6
+ onUnauthorized: clearAuthSession,
7
7
  });
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub-cli",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "commander": "^13.1.0",
17
- "@neta-art/cohub": "1.13.1"
17
+ "@neta-art/cohub": "1.14.0"
18
18
  },
19
19
  "publishConfig": {
20
20
  "access": "public"