@gravity-rail/cli 0.4.0 → 0.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/README.md +25 -0
- package/dist/chunk-424PT5DM.js +23 -0
- package/dist/chunk-424PT5DM.js.map +1 -0
- package/dist/{chunk-C6D4FO6A.js → chunk-H62EC2CF.js} +66 -24
- package/dist/{chunk-C6D4FO6A.js.map → chunk-H62EC2CF.js.map} +1 -1
- package/dist/chunk-OPWCTOHP.js +49 -0
- package/dist/chunk-OPWCTOHP.js.map +1 -0
- package/dist/chunk-XRBVAFCB.js +47 -0
- package/dist/chunk-XRBVAFCB.js.map +1 -0
- package/dist/{auth-DBspA1Dh.d.ts → cli-client-context-9KRUt6O-.d.ts} +13 -1
- package/dist/cli-utils.d.ts +26 -5
- package/dist/cli-utils.js +2 -1
- package/dist/errors-4MAJGD3C.js +12 -0
- package/dist/errors-4MAJGD3C.js.map +1 -0
- package/dist/errors-DJILV5RW.js +4 -0
- package/dist/errors-DJILV5RW.js.map +1 -0
- package/dist/gr.js +2218 -351
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +25 -3
- package/dist/lib.js +1472 -258
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
package/dist/cli-utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as ConciergeAppContextPayload } from './cli-client-context-9KRUt6O-.js';
|
|
2
|
+
export { A as AuthResult, c as CALLBACK_PATH, d as CALLBACK_PORT, e as CLICredentials, C as CredentialsManager, f as ENVIRONMENTS, E as EnvironmentConfig, O as OAuthFlowOptions, R as REDIRECT_URI, g as generatePKCE, h as getEnvironmentConfig, o as openBrowser, p as performOAuthFlow, r as refreshAccessToken, s as startCallbackServer } from './cli-client-context-9KRUt6O-.js';
|
|
2
3
|
|
|
3
4
|
interface SelectFromListOptions<T> {
|
|
4
5
|
title?: string;
|
|
@@ -51,6 +52,7 @@ declare function clearScreen(): void;
|
|
|
51
52
|
* Implements the AG-UI (Agent-User Interaction) protocol for streaming
|
|
52
53
|
* chat responses. See: https://docs.ag-ui.com/concepts/events
|
|
53
54
|
*/
|
|
55
|
+
|
|
54
56
|
/**
|
|
55
57
|
* AG-UI event types
|
|
56
58
|
*/
|
|
@@ -78,28 +80,47 @@ interface AGUIClientOptions {
|
|
|
78
80
|
baseUrl: string;
|
|
79
81
|
workspaceUuid?: string;
|
|
80
82
|
chatId?: number;
|
|
81
|
-
/** Full URL override — when provided, baseUrl/workspaceUuid/chatId are ignored */
|
|
83
|
+
/** Full URL override — when provided, baseUrl/workspaceUuid/chatId are ignored for POST */
|
|
82
84
|
endpointUrl?: string;
|
|
83
85
|
accessToken: string;
|
|
84
86
|
debug?: boolean;
|
|
85
87
|
/** Model field sent in request body (default: 'manager'). Set to undefined to omit. */
|
|
86
88
|
model?: string;
|
|
89
|
+
/** Concierge / client context forwarded to the API (e.g. CLI surface hints). */
|
|
90
|
+
appContext?: ConciergeAppContextPayload;
|
|
87
91
|
}
|
|
88
92
|
/**
|
|
89
93
|
* AG-UI Client for streaming chat responses
|
|
90
94
|
*/
|
|
91
95
|
declare class AGUIClient {
|
|
92
96
|
private endpointUrl;
|
|
97
|
+
private baseUrl;
|
|
98
|
+
private workspaceUuid;
|
|
99
|
+
private chatId;
|
|
93
100
|
private accessToken;
|
|
94
101
|
private debug;
|
|
95
102
|
private model;
|
|
103
|
+
private appContext;
|
|
96
104
|
constructor(options: AGUIClientOptions);
|
|
105
|
+
private inferenceStatusUrl;
|
|
106
|
+
private waitForInferenceInactive;
|
|
97
107
|
/**
|
|
98
108
|
* Send messages and stream the response
|
|
99
109
|
*/
|
|
100
|
-
sendMessage(messages: ChatMessage[], onEvent: (event: AGUIEvent) => void, options?:
|
|
101
|
-
|
|
102
|
-
|
|
110
|
+
sendMessage(messages: ChatMessage[], onEvent: (event: AGUIEvent) => void, options?: AguiStreamOptions): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Stream an AG-UI request (initial messages or HITL resume).
|
|
113
|
+
*/
|
|
114
|
+
streamRequest(request: AguiRequestBody, onEvent: (event: AGUIEvent) => void, options?: AguiStreamOptions): Promise<void>;
|
|
115
|
+
private postStream;
|
|
116
|
+
}
|
|
117
|
+
interface AguiStreamOptions {
|
|
118
|
+
autoApprove?: boolean;
|
|
119
|
+
}
|
|
120
|
+
interface AguiRequestBody {
|
|
121
|
+
messages?: ChatMessage[];
|
|
122
|
+
resumeValue?: string;
|
|
123
|
+
resumeInterruptId?: string;
|
|
103
124
|
}
|
|
104
125
|
/**
|
|
105
126
|
* Helper to check if an event is a text content event
|
package/dist/cli-utils.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"errors-DJILV5RW.js"}
|