@gravity-rail/cli 3.2.0 → 6.0.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.
@@ -183,6 +183,8 @@ declare class CredentialsManager {
183
183
  * logged-in account profile (never create a token-less profile row).
184
184
  */
185
185
  setOrgSession(env: string, profile: string | undefined, orgUuid: string, session: string, expiresAt?: string): void;
186
+ /** Remove the entry only when its currently stored token matches the rejected one. */
187
+ removeOrgSession(env: string, profile: string | undefined, orgUuid: string, expectedSession: string): void;
186
188
  getCacheDir(): string;
187
189
  /** Absolute path of the credentials file for `env` (for docs / `auth list`). */
188
190
  getCredentialsFilePath(env: string): string;
@@ -1,6 +1,7 @@
1
- import { C as CLICredentials, E as EnvironmentConfig, a as CredentialsManager } from './cli-client-context-NJgZhyfd.js';
1
+ import { C as CLICredentials, E as EnvironmentConfig, a as CredentialsManager } from './cli-client-context-BVZdWMkY.js';
2
2
  import { ConciergeAppContextPayload } from './lib.js';
3
- export { c as CALLBACK_PATH, d as CALLBACK_PORT, e as CheckoutClassification, D as DEFAULT_PROFILE, f as ENVIRONMENTS, g as EnvironmentConfigOptions, P as ProfileSummary, R as REDIRECT_URI, W as WorktreeConfigError, h as classifyCheckout, i as getEnvironmentConfig, p as parsePublishedTarget } from './cli-client-context-NJgZhyfd.js';
3
+ export { c as CALLBACK_PATH, d as CALLBACK_PORT, e as CheckoutClassification, D as DEFAULT_PROFILE, f as ENVIRONMENTS, g as EnvironmentConfigOptions, P as ProfileSummary, R as REDIRECT_URI, W as WorktreeConfigError, h as classifyCheckout, i as getEnvironmentConfig, p as parsePublishedTarget } from './cli-client-context-BVZdWMkY.js';
4
+ import { ProposedMessageSettlementStatus } from '@gravity-rail/sdk';
4
5
 
5
6
  /**
6
7
  * CLI OAuth2 authentication utilities
@@ -209,6 +210,17 @@ declare function clearScreen(): void;
209
210
  * chat responses. See: https://docs.ag-ui.com/concepts/events
210
211
  */
211
212
 
213
+ /** How asking the server to send or discard a drafted message ended. */
214
+ type ProposedMessageSettleResult = {
215
+ kind: 'settled';
216
+ status: ProposedMessageSettlementStatus;
217
+ detail?: string | null;
218
+ } | {
219
+ kind: 'refused';
220
+ status: number;
221
+ } | {
222
+ kind: 'transport';
223
+ };
212
224
  /**
213
225
  * AG-UI event types
214
226
  */
@@ -269,6 +281,14 @@ declare class AGUIClient {
269
281
  connectUrl: string;
270
282
  expiresInMinutes: number;
271
283
  } | null>;
284
+ /**
285
+ * Send or discard a message the Manager proposed as a draft. The three
286
+ * results are different things to tell the operator: `settled` carries how
287
+ * it ended, `refused` is the server saying no (a 409 is a draft settled
288
+ * elsewhere), and `transport` is not knowing — the draft is unchanged as
289
+ * far as this client can tell.
290
+ */
291
+ settleProposedMessage(promptId: string, decision: 'send' | 'discard'): Promise<ProposedMessageSettleResult>;
272
292
  private inferenceStatusUrl;
273
293
  private waitForInferenceInactive;
274
294
  /**
package/dist/cli-utils.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  selectFromList,
31
31
  startCallbackServer,
32
32
  wrapText
33
- } from "./chunk-INGVO35B.js";
33
+ } from "./chunk-VA6G6IBW.js";
34
34
  export {
35
35
  AGUIClient,
36
36
  CALLBACK_PATH,
@@ -0,0 +1,13 @@
1
+ import {
2
+ AuthRequiredError,
3
+ CLIError,
4
+ handleError,
5
+ unauthorizedHint
6
+ } from "./chunk-VA6G6IBW.js";
7
+ export {
8
+ AuthRequiredError,
9
+ CLIError,
10
+ handleError,
11
+ unauthorizedHint
12
+ };
13
+ //# sourceMappingURL=errors-YBSCLOHE.js.map