xyne-plugin 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/hooks.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyne-plugin",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "SDK for writing Xyne plugins — define custom tools, hooks, and extensions",
5
5
  "type": "module",
6
6
  "exports": {
package/src/hooks.ts CHANGED
@@ -204,8 +204,12 @@ export type AuthMethod =
204
204
  | {
205
205
  type: "custom"
206
206
  label: string
207
+ /** Message shown in the TUI while authorize() runs (default: "Connecting..."). */
208
+ pendingMessage?: string
209
+ /** Hint shown below the pending message. */
210
+ pendingHint?: string
207
211
  prompts?: AuthPrompt[]
208
- /** Plugin handles the entire auth flow. UI shows "Connecting..." while this runs. */
212
+ /** Plugin handles the entire auth flow. UI shows pendingMessage while this runs. */
209
213
  authorize(inputs?: Record<string, string>): Promise<
210
214
  | { type: "success"; data: Record<string, unknown> }
211
215
  | { type: "failed" }