@gravity-rail/cli 4.0.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.
- package/README.md +65 -32
- package/dist/{account-verify-phone-VZYUPN64.js → account-verify-phone-IC7FNUQE.js} +5 -5
- package/dist/chunk-LQLGLI4Q.js +128 -0
- package/dist/chunk-LQLGLI4Q.js.map +1 -0
- package/dist/{chunk-KDWGBYCM.js → chunk-VA6G6IBW.js} +922 -13
- package/dist/chunk-VA6G6IBW.js.map +1 -0
- package/dist/cli-utils.d.ts +20 -0
- package/dist/cli-utils.js +1 -1
- package/dist/errors-YBSCLOHE.js +13 -0
- package/dist/gr.js +8753 -5082
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +91 -6
- package/dist/lib.js +4609 -2354
- package/dist/lib.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-3T7A5PSF.js +0 -59
- package/dist/chunk-3T7A5PSF.js.map +0 -1
- package/dist/chunk-JOXB4Y4Q.js +0 -861
- package/dist/chunk-JOXB4Y4Q.js.map +0 -1
- package/dist/chunk-KDWGBYCM.js.map +0 -1
- package/dist/errors-CFRLSAGA.js +0 -11
- /package/dist/{account-verify-phone-VZYUPN64.js.map → account-verify-phone-IC7FNUQE.js.map} +0 -0
- /package/dist/{errors-CFRLSAGA.js.map → errors-YBSCLOHE.js.map} +0 -0
package/dist/cli-utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
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
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