pty-manager 1.9.1 → 1.9.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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/pty-worker.js +7 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -112,7 +112,7 @@ interface ParsedOutput {
|
|
|
112
112
|
*/
|
|
113
113
|
interface LoginDetection {
|
|
114
114
|
required: boolean;
|
|
115
|
-
type?: 'api_key' | 'oauth' | 'browser' | 'device_code';
|
|
115
|
+
type?: 'api_key' | 'oauth' | 'browser' | 'device_code' | 'cli_auth';
|
|
116
116
|
url?: string;
|
|
117
117
|
deviceCode?: string;
|
|
118
118
|
instructions?: string;
|
|
@@ -120,7 +120,7 @@ interface LoginDetection {
|
|
|
120
120
|
/**
|
|
121
121
|
* Normalized authentication methods for runtime event consumers.
|
|
122
122
|
*/
|
|
123
|
-
type AuthRequiredMethod = 'api_key' | 'oauth_browser' | 'device_code' | 'unknown';
|
|
123
|
+
type AuthRequiredMethod = 'api_key' | 'cli_auth' | 'oauth_browser' | 'device_code' | 'unknown';
|
|
124
124
|
/**
|
|
125
125
|
* Structured authentication-required payload emitted by PTY session/manager.
|
|
126
126
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ interface ParsedOutput {
|
|
|
112
112
|
*/
|
|
113
113
|
interface LoginDetection {
|
|
114
114
|
required: boolean;
|
|
115
|
-
type?: 'api_key' | 'oauth' | 'browser' | 'device_code';
|
|
115
|
+
type?: 'api_key' | 'oauth' | 'browser' | 'device_code' | 'cli_auth';
|
|
116
116
|
url?: string;
|
|
117
117
|
deviceCode?: string;
|
|
118
118
|
instructions?: string;
|
|
@@ -120,7 +120,7 @@ interface LoginDetection {
|
|
|
120
120
|
/**
|
|
121
121
|
* Normalized authentication methods for runtime event consumers.
|
|
122
122
|
*/
|
|
123
|
-
type AuthRequiredMethod = 'api_key' | 'oauth_browser' | 'device_code' | 'unknown';
|
|
123
|
+
type AuthRequiredMethod = 'api_key' | 'cli_auth' | 'oauth_browser' | 'device_code' | 'unknown';
|
|
124
124
|
/**
|
|
125
125
|
* Structured authentication-required payload emitted by PTY session/manager.
|
|
126
126
|
*/
|
package/dist/index.js
CHANGED
|
@@ -601,6 +601,8 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
|
|
|
601
601
|
switch (type) {
|
|
602
602
|
case "api_key":
|
|
603
603
|
return "api_key";
|
|
604
|
+
case "cli_auth":
|
|
605
|
+
return "cli_auth";
|
|
604
606
|
case "device_code":
|
|
605
607
|
return "device_code";
|
|
606
608
|
case "oauth":
|
|
@@ -996,9 +998,11 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
|
|
|
996
998
|
this.scheduleTaskComplete();
|
|
997
999
|
}
|
|
998
1000
|
}
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1001
|
+
if (this._status !== "stopping" && this._status !== "stopped") {
|
|
1002
|
+
const blockingPrompt = this.detectAndHandleBlockingPrompt();
|
|
1003
|
+
if (blockingPrompt) {
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1002
1006
|
}
|
|
1003
1007
|
if (this._status !== "ready" && this._status !== "busy") {
|
|
1004
1008
|
const loginDetection = this.adapter.detectLogin(this.outputBuffer);
|