@phantomcodes/cli 1.5.0 → 1.5.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.
package/dist/core/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This release of phantom. `npm version` keeps it equal to the version in package.json. */
|
|
2
|
-
export declare const VERSION = "1.5.
|
|
2
|
+
export declare const VERSION = "1.5.1";
|
package/dist/core/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This release of phantom. `npm version` keeps it equal to the version in package.json. */
|
|
2
|
-
export const VERSION = '1.5.
|
|
2
|
+
export const VERSION = '1.5.1';
|
|
@@ -529,7 +529,10 @@ export async function forgetWorkspace(env, baseUrl) {
|
|
|
529
529
|
{
|
|
530
530
|
try {
|
|
531
531
|
const saved = JSON.parse(readSecret(env, file));
|
|
532
|
-
|
|
532
|
+
// `workspace import` saves the recovery file's own credential as the sign-in. Revoking that on the
|
|
533
|
+
// server would kill the recovery file, so a sign-in that is the recovery credential is only forgotten here.
|
|
534
|
+
const isRecoveryFile = saved?.recovery?.management_credential === saved?.management_credential;
|
|
535
|
+
if (saved?.workspace_id && saved?.management_credential && !isRecoveryFile) {
|
|
533
536
|
const url = httpsOnly(baseUrl || env.PHANTOM_BASE_URL || saved.base_url || DEFAULT_BASE_URL).replace(/\/$/, '');
|
|
534
537
|
await wire(url, 'POST', '/workspaces/' + encodeURIComponent(saved.workspace_id) + '/logout', {}, saved.management_credential).catch(() => { });
|
|
535
538
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phantomcodes/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Connects Claude Code, Codex, pi and other coding agents to Phantom AI, an OpenAI-compatible API, and manages your keys, credit and spending caps from the terminal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"phantom",
|