@vicinae/api 0.16.0 → 0.16.2

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 (43) hide show
  1. package/bin/run.js +1 -1
  2. package/dist/api/ai.d.ts +2 -2
  3. package/dist/api/ai.js +2 -2
  4. package/dist/api/bus.d.ts +7 -2
  5. package/dist/api/cache.js +18 -12
  6. package/dist/api/clipboard.js +2 -2
  7. package/dist/api/command.js +2 -2
  8. package/dist/api/components/action-pannel.js +1 -1
  9. package/dist/api/components/actions.d.ts +21 -0
  10. package/dist/api/components/actions.js +25 -1
  11. package/dist/api/components/dropdown.js +2 -2
  12. package/dist/api/components/form.d.ts +19 -1
  13. package/dist/api/components/form.js +34 -11
  14. package/dist/api/components/grid.d.ts +1 -1
  15. package/dist/api/components/grid.js +11 -11
  16. package/dist/api/context/navigation-provider.js +1 -4
  17. package/dist/api/controls.js +6 -4
  18. package/dist/api/environment.d.ts +4 -0
  19. package/dist/api/file-search.d.ts +18 -18
  20. package/dist/api/file-search.js +18 -19
  21. package/dist/api/keyboard.d.ts +1 -1
  22. package/dist/api/keyboard.js +15 -17
  23. package/dist/api/lib/result.js +7 -1
  24. package/dist/api/oauth.d.ts +3 -8
  25. package/dist/api/oauth.js +51 -21
  26. package/dist/api/preference.js +2 -2
  27. package/dist/api/proto/application.d.ts +10 -0
  28. package/dist/api/proto/application.js +150 -3
  29. package/dist/api/proto/manager.d.ts +2 -0
  30. package/dist/api/proto/manager.js +32 -0
  31. package/dist/api/proto/oauth.d.ts +42 -0
  32. package/dist/api/proto/oauth.js +620 -5
  33. package/dist/api/proto/wm.d.ts +20 -0
  34. package/dist/api/proto/wm.js +291 -7
  35. package/dist/api/utils.d.ts +43 -0
  36. package/dist/api/utils.js +25 -2
  37. package/dist/api/window-management.d.ts +31 -2
  38. package/dist/api/window-management.js +29 -10
  39. package/dist/commands/develop/index.js +13 -11
  40. package/dist/schemas/manifest.d.ts +1 -1
  41. package/dist/schemas/manifest.js +5 -3
  42. package/package.json +73 -76
  43. package/types/jsx.d.ts +189 -170
@@ -23,27 +23,26 @@ const bus_1 = require("./bus");
23
23
  var FileSearch;
24
24
  (function (FileSearch) {
25
25
  /**
26
- * Search for files matching the provided query string.
27
- *
28
- * @param query - Search term (min. 1 character) - the shorter the query the longer the average search takes.
29
- * @param options - Search configuration options
30
- * @returns Promise resolving to array of matching files
31
- *
32
- * @remarks
33
- * Uses prefix matching on filename tokens. For example:
34
- * - File: "invoice-new-motherboard.pdf"
35
- * - Matches: "inv", "new", "mother", "pdf"
36
- * - No match: "board", "oice" (not prefixes)
37
- *
38
- * @example
39
- * ```typescript
40
- * const files = await fileSearch.search('invoice');
41
- * ```
42
- */
26
+ * Search for files matching the provided query string.
27
+ *
28
+ * @param query - Search term (min. 1 character) - the shorter the query the longer the average search takes.
29
+ * @param options - Search configuration options
30
+ * @returns Promise resolving to array of matching files
31
+ *
32
+ * @remarks
33
+ * Uses prefix matching on filename tokens. For example:
34
+ * - File: "invoice-new-motherboard.pdf"
35
+ * - Matches: "inv", "new", "mother", "pdf"
36
+ * - No match: "board", "oice" (not prefixes)
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const files = await fileSearch.search('invoice');
41
+ * ```
42
+ */
43
43
  async function search(query, _ = {}) {
44
- const res = await bus_1.bus.turboRequest('fileSearch.search', { query });
44
+ const res = await bus_1.bus.turboRequest("fileSearch.search", { query });
45
45
  return res.unwrap().files;
46
46
  }
47
47
  FileSearch.search = search;
48
48
  })(FileSearch || (exports.FileSearch = FileSearch = {}));
49
- ;
@@ -2,7 +2,7 @@ export type KeyEquivalent = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i"
2
2
  export type KeyModifier = "cmd" | "ctrl" | "opt" | "shift";
3
3
  export declare namespace Keyboard {
4
4
  namespace Shortcut {
5
- type Common = 'copy' | 'copy-deeplink' | 'copy-name' | 'copy-path' | 'save' | 'duplicate' | 'edit' | 'move-down' | 'move-up' | 'new' | 'open' | 'open-with' | 'pin' | 'refresh' | 'remove' | 'remove-all';
5
+ type Common = "copy" | "copy-deeplink" | "copy-name" | "copy-path" | "save" | "duplicate" | "edit" | "move-down" | "move-up" | "new" | "open" | "open-with" | "pin" | "refresh" | "remove" | "remove-all";
6
6
  const Common: {
7
7
  Copy: string;
8
8
  CopyDeeplink: string;
@@ -7,23 +7,21 @@ var Keyboard;
7
7
  (function (Shortcut) {
8
8
  Shortcut.Common = {
9
9
  Copy: "copy",
10
- CopyDeeplink: 'copy',
11
- CopyName: 'copy',
12
- CopyPath: 'copy',
13
- Save: 'save',
14
- Duplicate: 'duplicate',
15
- Edit: 'edit',
16
- MoveDown: 'move-down',
17
- MoveUp: 'move-up',
18
- New: 'new',
19
- Open: 'open',
20
- OpenWith: 'open-with',
21
- Pin: 'pin',
22
- Refresh: 'refresh',
23
- Remove: 'remove',
24
- RemoveAll: 'remove-all',
10
+ CopyDeeplink: "copy",
11
+ CopyName: "copy",
12
+ CopyPath: "copy",
13
+ Save: "save",
14
+ Duplicate: "duplicate",
15
+ Edit: "edit",
16
+ MoveDown: "move-down",
17
+ MoveUp: "move-up",
18
+ New: "new",
19
+ Open: "open",
20
+ OpenWith: "open-with",
21
+ Pin: "pin",
22
+ Refresh: "refresh",
23
+ Remove: "remove",
24
+ RemoveAll: "remove-all",
25
25
  };
26
26
  })(Shortcut = Keyboard.Shortcut || (Keyboard.Shortcut = {}));
27
- ;
28
27
  })(Keyboard || (exports.Keyboard = Keyboard = {}));
29
- ;
@@ -6,6 +6,12 @@ const Ok = (data) => {
6
6
  };
7
7
  exports.Ok = Ok;
8
8
  const Err = (error) => {
9
- return { ok: false, error, unwrap: () => { throw error; } };
9
+ return {
10
+ ok: false,
11
+ error,
12
+ unwrap: () => {
13
+ throw error;
14
+ },
15
+ };
10
16
  };
11
17
  exports.Err = Err;
@@ -295,25 +295,20 @@ export declare class PKCEClient {
295
295
  getTokens(): Promise<OAuth.TokenSet | undefined>;
296
296
  /**
297
297
  * Removes the stored {@link OAuth.TokenSet} for the client.
298
- *
299
- * @remarks Raycast automatically shows a logout preference that removes the token set.
300
- * Use this method only if you need to provide an additional logout option in your extension or you want to remove the token set because of a migration.
301
- *
302
298
  */
303
299
  removeTokens(): Promise<void>;
304
300
  }
305
- declare class TokenSet {
301
+ export type TokenSet = {
306
302
  accessToken: string;
307
303
  refreshToken?: string;
308
304
  idToken?: string;
309
305
  expiresIn?: number;
310
306
  scope?: string;
311
307
  updatedAt: Date;
312
- isExpired(): boolean;
313
- }
308
+ isExpired: () => boolean;
309
+ };
314
310
  export declare const OAuth: {
315
311
  PKCEClient: typeof PKCEClient;
316
312
  RedirectMethod: typeof OauthRedirectMethod;
317
- TokenSet: typeof TokenSet;
318
313
  };
319
314
  export {};
package/dist/api/oauth.js CHANGED
@@ -76,11 +76,15 @@ class PKCEClient {
76
76
  * @returns A promise for an {@link OAuth.AuthorizationRequest} that you can use as input for {@link OAuth.PKCEClient.authorize}.
77
77
  */
78
78
  async authorizationRequest(options) {
79
- const codeVerifier = (0, node_crypto_1.randomBytes)(128).toString("hex");
79
+ const codeVerifier = (0, node_crypto_1.randomBytes)(32).toString("base64url");
80
80
  const codeChallenge = (0, node_crypto_1.createHash)("sha256")
81
81
  .update(codeVerifier)
82
82
  .digest("base64url");
83
- const state = (0, node_crypto_1.randomBytes)(32).toString("hex");
83
+ const state = Buffer.from(JSON.stringify({
84
+ flavor: "release",
85
+ id: (0, node_crypto_1.randomUUID)(),
86
+ providerName: this.providerName,
87
+ })).toString("base64url");
84
88
  const redirectURI = this.getRedirectURI();
85
89
  return {
86
90
  state,
@@ -130,7 +134,27 @@ class PKCEClient {
130
134
  *
131
135
  * @returns A promise that resolves when the token set has been stored.
132
136
  */
133
- async setTokens(options) { }
137
+ async setTokens(options) {
138
+ const isTokenResponse = (options) => {
139
+ return Object.hasOwn(options, "access_token");
140
+ };
141
+ if (isTokenResponse(options)) {
142
+ await bus_1.bus.turboRequest("oauth.setTokens", {
143
+ accessToken: options.access_token,
144
+ refreshToken: options.refresh_token,
145
+ idToken: options.id_token,
146
+ scope: options.scope,
147
+ expiresIn: options.expires_in,
148
+ providerId: this.providerId,
149
+ });
150
+ }
151
+ else {
152
+ await bus_1.bus.turboRequest("oauth.setTokens", {
153
+ ...options,
154
+ providerId: this.providerId,
155
+ });
156
+ }
157
+ }
134
158
  /**
135
159
  * Retrieves the stored {@link OAuth.TokenSet} for the client.
136
160
  * You can use this to initially check whether the authorization flow should be initiated or
@@ -139,31 +163,37 @@ class PKCEClient {
139
163
  * @returns A promise that resolves when the token set has been retrieved.
140
164
  */
141
165
  async getTokens() {
142
- return undefined;
166
+ const res = await bus_1.bus.turboRequest("oauth.getTokens", {
167
+ providerId: this.providerId,
168
+ });
169
+ const set = res.unwrap().tokenSet;
170
+ if (!set)
171
+ return undefined;
172
+ const tokenSet = {
173
+ accessToken: set.accessToken,
174
+ refreshToken: set.refreshToken,
175
+ scope: set.scope,
176
+ idToken: set.idToken,
177
+ updatedAt: new Date(set.updatedAt * 1000),
178
+ expiresIn: set.expiresIn,
179
+ isExpired: () => {
180
+ return !!(tokenSet.expiresIn &&
181
+ tokenSet.updatedAt.getTime() + tokenSet.expiresIn * 1000 < Date.now());
182
+ },
183
+ };
184
+ return tokenSet;
143
185
  }
144
186
  /**
145
187
  * Removes the stored {@link OAuth.TokenSet} for the client.
146
- *
147
- * @remarks Raycast automatically shows a logout preference that removes the token set.
148
- * Use this method only if you need to provide an additional logout option in your extension or you want to remove the token set because of a migration.
149
- *
150
188
  */
151
- async removeTokens() { }
152
- }
153
- exports.PKCEClient = PKCEClient;
154
- class TokenSet {
155
- accessToken = "";
156
- refreshToken;
157
- idToken;
158
- expiresIn;
159
- scope;
160
- updatedAt = new Date();
161
- isExpired() {
162
- return true;
189
+ async removeTokens() {
190
+ await bus_1.bus.turboRequest("oauth.removeTokens", {
191
+ providerId: this.providerId,
192
+ });
163
193
  }
164
194
  }
195
+ exports.PKCEClient = PKCEClient;
165
196
  exports.OAuth = {
166
197
  PKCEClient,
167
198
  RedirectMethod: OauthRedirectMethod,
168
- TokenSet,
169
199
  };
@@ -8,10 +8,10 @@ const getPreferenceValues = () => {
8
8
  };
9
9
  exports.getPreferenceValues = getPreferenceValues;
10
10
  const openExtensionPreferences = async () => {
11
- console.error('openExtensionPreferences is not implemented');
11
+ console.error("openExtensionPreferences is not implemented");
12
12
  };
13
13
  exports.openExtensionPreferences = openExtensionPreferences;
14
14
  const openCommandPreferences = async () => {
15
- console.error('openCommandPreferences is not implemented');
15
+ console.error("openCommandPreferences is not implemented");
16
16
  };
17
17
  exports.openCommandPreferences = openCommandPreferences;
@@ -5,6 +5,13 @@ export interface OpenApplicationRequest {
5
5
  target: string;
6
6
  appId?: string | undefined;
7
7
  }
8
+ export interface RunInTerminalRequest {
9
+ cmdline: string[];
10
+ appId?: string | undefined;
11
+ workingDirectory?: string | undefined;
12
+ title?: string | undefined;
13
+ hold: boolean;
14
+ }
8
15
  export interface ListApplicationRequest {
9
16
  target?: string | undefined;
10
17
  }
@@ -21,11 +28,13 @@ export interface Request {
21
28
  list?: ListApplicationRequest | undefined;
22
29
  open?: OpenApplicationRequest | undefined;
23
30
  getDefault?: GetDefaultApplicationRequest | undefined;
31
+ runInTerminal?: RunInTerminalRequest | undefined;
24
32
  }
25
33
  export interface Response {
26
34
  list?: ListApplicationResponse | undefined;
27
35
  open?: AckResponse | undefined;
28
36
  getDefault?: GetDefaultApplicationResponse | undefined;
37
+ runInTerminal?: AckResponse | undefined;
29
38
  }
30
39
  export interface Application {
31
40
  id: string;
@@ -34,6 +43,7 @@ export interface Application {
34
43
  path: string;
35
44
  }
36
45
  export declare const OpenApplicationRequest: MessageFns<OpenApplicationRequest>;
46
+ export declare const RunInTerminalRequest: MessageFns<RunInTerminalRequest>;
37
47
  export declare const ListApplicationRequest: MessageFns<ListApplicationRequest>;
38
48
  export declare const ListApplicationResponse: MessageFns<ListApplicationResponse>;
39
49
  export declare const GetDefaultApplicationRequest: MessageFns<GetDefaultApplicationRequest>;
@@ -5,7 +5,7 @@
5
5
  // protoc v6.32.1
6
6
  // source: application.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Application = exports.Response = exports.Request = exports.GetDefaultApplicationResponse = exports.GetDefaultApplicationRequest = exports.ListApplicationResponse = exports.ListApplicationRequest = exports.OpenApplicationRequest = exports.protobufPackage = void 0;
8
+ exports.Application = exports.Response = exports.Request = exports.GetDefaultApplicationResponse = exports.GetDefaultApplicationRequest = exports.ListApplicationResponse = exports.ListApplicationRequest = exports.RunInTerminalRequest = exports.OpenApplicationRequest = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const common_1 = require("./common");
@@ -78,6 +78,119 @@ exports.OpenApplicationRequest = {
78
78
  return message;
79
79
  },
80
80
  };
81
+ function createBaseRunInTerminalRequest() {
82
+ return { cmdline: [], appId: undefined, workingDirectory: undefined, title: undefined, hold: false };
83
+ }
84
+ exports.RunInTerminalRequest = {
85
+ encode(message, writer = new wire_1.BinaryWriter()) {
86
+ for (const v of message.cmdline) {
87
+ writer.uint32(10).string(v);
88
+ }
89
+ if (message.appId !== undefined) {
90
+ writer.uint32(18).string(message.appId);
91
+ }
92
+ if (message.workingDirectory !== undefined) {
93
+ writer.uint32(26).string(message.workingDirectory);
94
+ }
95
+ if (message.title !== undefined) {
96
+ writer.uint32(34).string(message.title);
97
+ }
98
+ if (message.hold !== false) {
99
+ writer.uint32(40).bool(message.hold);
100
+ }
101
+ return writer;
102
+ },
103
+ decode(input, length) {
104
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
105
+ const end = length === undefined ? reader.len : reader.pos + length;
106
+ const message = createBaseRunInTerminalRequest();
107
+ while (reader.pos < end) {
108
+ const tag = reader.uint32();
109
+ switch (tag >>> 3) {
110
+ case 1: {
111
+ if (tag !== 10) {
112
+ break;
113
+ }
114
+ message.cmdline.push(reader.string());
115
+ continue;
116
+ }
117
+ case 2: {
118
+ if (tag !== 18) {
119
+ break;
120
+ }
121
+ message.appId = reader.string();
122
+ continue;
123
+ }
124
+ case 3: {
125
+ if (tag !== 26) {
126
+ break;
127
+ }
128
+ message.workingDirectory = reader.string();
129
+ continue;
130
+ }
131
+ case 4: {
132
+ if (tag !== 34) {
133
+ break;
134
+ }
135
+ message.title = reader.string();
136
+ continue;
137
+ }
138
+ case 5: {
139
+ if (tag !== 40) {
140
+ break;
141
+ }
142
+ message.hold = reader.bool();
143
+ continue;
144
+ }
145
+ }
146
+ if ((tag & 7) === 4 || tag === 0) {
147
+ break;
148
+ }
149
+ reader.skip(tag & 7);
150
+ }
151
+ return message;
152
+ },
153
+ fromJSON(object) {
154
+ return {
155
+ cmdline: globalThis.Array.isArray(object?.cmdline) ? object.cmdline.map((e) => globalThis.String(e)) : [],
156
+ appId: isSet(object.appId) ? globalThis.String(object.appId) : undefined,
157
+ workingDirectory: isSet(object.workingDirectory) ? globalThis.String(object.workingDirectory) : undefined,
158
+ title: isSet(object.title) ? globalThis.String(object.title) : undefined,
159
+ hold: isSet(object.hold) ? globalThis.Boolean(object.hold) : false,
160
+ };
161
+ },
162
+ toJSON(message) {
163
+ const obj = {};
164
+ if (message.cmdline?.length) {
165
+ obj.cmdline = message.cmdline;
166
+ }
167
+ if (message.appId !== undefined) {
168
+ obj.appId = message.appId;
169
+ }
170
+ if (message.workingDirectory !== undefined) {
171
+ obj.workingDirectory = message.workingDirectory;
172
+ }
173
+ if (message.title !== undefined) {
174
+ obj.title = message.title;
175
+ }
176
+ if (message.hold !== false) {
177
+ obj.hold = message.hold;
178
+ }
179
+ return obj;
180
+ },
181
+ create(base) {
182
+ return exports.RunInTerminalRequest.fromPartial(base ?? {});
183
+ },
184
+ fromPartial(object) {
185
+ const message = createBaseRunInTerminalRequest();
186
+ message.cmdline = object.cmdline?.map((e) => e) || [];
187
+ message.appId = object.appId ?? undefined;
188
+ message.workingDirectory = object.workingDirectory ?? undefined;
189
+ message.title = object.title ?? undefined;
190
+ message.hold = object.hold ?? false;
191
+ return message;
192
+ },
193
+ };
81
194
  function createBaseListApplicationRequest() {
82
195
  return { target: undefined };
83
196
  }
@@ -283,7 +396,7 @@ exports.GetDefaultApplicationResponse = {
283
396
  },
284
397
  };
285
398
  function createBaseRequest() {
286
- return { list: undefined, open: undefined, getDefault: undefined };
399
+ return { list: undefined, open: undefined, getDefault: undefined, runInTerminal: undefined };
287
400
  }
288
401
  exports.Request = {
289
402
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -296,6 +409,9 @@ exports.Request = {
296
409
  if (message.getDefault !== undefined) {
297
410
  exports.GetDefaultApplicationRequest.encode(message.getDefault, writer.uint32(26).fork()).join();
298
411
  }
412
+ if (message.runInTerminal !== undefined) {
413
+ exports.RunInTerminalRequest.encode(message.runInTerminal, writer.uint32(34).fork()).join();
414
+ }
299
415
  return writer;
300
416
  },
301
417
  decode(input, length) {
@@ -326,6 +442,13 @@ exports.Request = {
326
442
  message.getDefault = exports.GetDefaultApplicationRequest.decode(reader, reader.uint32());
327
443
  continue;
328
444
  }
445
+ case 4: {
446
+ if (tag !== 34) {
447
+ break;
448
+ }
449
+ message.runInTerminal = exports.RunInTerminalRequest.decode(reader, reader.uint32());
450
+ continue;
451
+ }
329
452
  }
330
453
  if ((tag & 7) === 4 || tag === 0) {
331
454
  break;
@@ -339,6 +462,7 @@ exports.Request = {
339
462
  list: isSet(object.list) ? exports.ListApplicationRequest.fromJSON(object.list) : undefined,
340
463
  open: isSet(object.open) ? exports.OpenApplicationRequest.fromJSON(object.open) : undefined,
341
464
  getDefault: isSet(object.getDefault) ? exports.GetDefaultApplicationRequest.fromJSON(object.getDefault) : undefined,
465
+ runInTerminal: isSet(object.runInTerminal) ? exports.RunInTerminalRequest.fromJSON(object.runInTerminal) : undefined,
342
466
  };
343
467
  },
344
468
  toJSON(message) {
@@ -352,6 +476,9 @@ exports.Request = {
352
476
  if (message.getDefault !== undefined) {
353
477
  obj.getDefault = exports.GetDefaultApplicationRequest.toJSON(message.getDefault);
354
478
  }
479
+ if (message.runInTerminal !== undefined) {
480
+ obj.runInTerminal = exports.RunInTerminalRequest.toJSON(message.runInTerminal);
481
+ }
355
482
  return obj;
356
483
  },
357
484
  create(base) {
@@ -368,11 +495,14 @@ exports.Request = {
368
495
  message.getDefault = (object.getDefault !== undefined && object.getDefault !== null)
369
496
  ? exports.GetDefaultApplicationRequest.fromPartial(object.getDefault)
370
497
  : undefined;
498
+ message.runInTerminal = (object.runInTerminal !== undefined && object.runInTerminal !== null)
499
+ ? exports.RunInTerminalRequest.fromPartial(object.runInTerminal)
500
+ : undefined;
371
501
  return message;
372
502
  },
373
503
  };
374
504
  function createBaseResponse() {
375
- return { list: undefined, open: undefined, getDefault: undefined };
505
+ return { list: undefined, open: undefined, getDefault: undefined, runInTerminal: undefined };
376
506
  }
377
507
  exports.Response = {
378
508
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -385,6 +515,9 @@ exports.Response = {
385
515
  if (message.getDefault !== undefined) {
386
516
  exports.GetDefaultApplicationResponse.encode(message.getDefault, writer.uint32(26).fork()).join();
387
517
  }
518
+ if (message.runInTerminal !== undefined) {
519
+ common_1.AckResponse.encode(message.runInTerminal, writer.uint32(34).fork()).join();
520
+ }
388
521
  return writer;
389
522
  },
390
523
  decode(input, length) {
@@ -415,6 +548,13 @@ exports.Response = {
415
548
  message.getDefault = exports.GetDefaultApplicationResponse.decode(reader, reader.uint32());
416
549
  continue;
417
550
  }
551
+ case 4: {
552
+ if (tag !== 34) {
553
+ break;
554
+ }
555
+ message.runInTerminal = common_1.AckResponse.decode(reader, reader.uint32());
556
+ continue;
557
+ }
418
558
  }
419
559
  if ((tag & 7) === 4 || tag === 0) {
420
560
  break;
@@ -428,6 +568,7 @@ exports.Response = {
428
568
  list: isSet(object.list) ? exports.ListApplicationResponse.fromJSON(object.list) : undefined,
429
569
  open: isSet(object.open) ? common_1.AckResponse.fromJSON(object.open) : undefined,
430
570
  getDefault: isSet(object.getDefault) ? exports.GetDefaultApplicationResponse.fromJSON(object.getDefault) : undefined,
571
+ runInTerminal: isSet(object.runInTerminal) ? common_1.AckResponse.fromJSON(object.runInTerminal) : undefined,
431
572
  };
432
573
  },
433
574
  toJSON(message) {
@@ -441,6 +582,9 @@ exports.Response = {
441
582
  if (message.getDefault !== undefined) {
442
583
  obj.getDefault = exports.GetDefaultApplicationResponse.toJSON(message.getDefault);
443
584
  }
585
+ if (message.runInTerminal !== undefined) {
586
+ obj.runInTerminal = common_1.AckResponse.toJSON(message.runInTerminal);
587
+ }
444
588
  return obj;
445
589
  },
446
590
  create(base) {
@@ -457,6 +601,9 @@ exports.Response = {
457
601
  message.getDefault = (object.getDefault !== undefined && object.getDefault !== null)
458
602
  ? exports.GetDefaultApplicationResponse.fromPartial(object.getDefault)
459
603
  : undefined;
604
+ message.runInTerminal = (object.runInTerminal !== undefined && object.runInTerminal !== null)
605
+ ? common_1.AckResponse.fromPartial(object.runInTerminal)
606
+ : undefined;
460
607
  return message;
461
608
  },
462
609
  };
@@ -41,6 +41,8 @@ export interface ManagerLoadCommand {
41
41
  isRaycast: boolean;
42
42
  commandName: string;
43
43
  extensionId: string;
44
+ extensionName: string;
45
+ ownerOrAuthorName: string;
44
46
  }
45
47
  export interface ManagerLoadCommand_PreferenceValuesEntry {
46
48
  key: string;
@@ -284,6 +284,8 @@ function createBaseManagerLoadCommand() {
284
284
  isRaycast: false,
285
285
  commandName: "",
286
286
  extensionId: "",
287
+ extensionName: "",
288
+ ownerOrAuthorName: "",
287
289
  };
288
290
  }
289
291
  exports.ManagerLoadCommand = {
@@ -319,6 +321,12 @@ exports.ManagerLoadCommand = {
319
321
  if (message.extensionId !== "") {
320
322
  writer.uint32(74).string(message.extensionId);
321
323
  }
324
+ if (message.extensionName !== "") {
325
+ writer.uint32(82).string(message.extensionName);
326
+ }
327
+ if (message.ownerOrAuthorName !== "") {
328
+ writer.uint32(90).string(message.ownerOrAuthorName);
329
+ }
322
330
  return writer;
323
331
  },
324
332
  decode(input, length) {
@@ -397,6 +405,20 @@ exports.ManagerLoadCommand = {
397
405
  message.extensionId = reader.string();
398
406
  continue;
399
407
  }
408
+ case 10: {
409
+ if (tag !== 82) {
410
+ break;
411
+ }
412
+ message.extensionName = reader.string();
413
+ continue;
414
+ }
415
+ case 11: {
416
+ if (tag !== 90) {
417
+ break;
418
+ }
419
+ message.ownerOrAuthorName = reader.string();
420
+ continue;
421
+ }
400
422
  }
401
423
  if ((tag & 7) === 4 || tag === 0) {
402
424
  break;
@@ -426,6 +448,8 @@ exports.ManagerLoadCommand = {
426
448
  isRaycast: isSet(object.isRaycast) ? globalThis.Boolean(object.isRaycast) : false,
427
449
  commandName: isSet(object.commandName) ? globalThis.String(object.commandName) : "",
428
450
  extensionId: isSet(object.extensionId) ? globalThis.String(object.extensionId) : "",
451
+ extensionName: isSet(object.extensionName) ? globalThis.String(object.extensionName) : "",
452
+ ownerOrAuthorName: isSet(object.ownerOrAuthorName) ? globalThis.String(object.ownerOrAuthorName) : "",
429
453
  };
430
454
  },
431
455
  toJSON(message) {
@@ -469,6 +493,12 @@ exports.ManagerLoadCommand = {
469
493
  if (message.extensionId !== "") {
470
494
  obj.extensionId = message.extensionId;
471
495
  }
496
+ if (message.extensionName !== "") {
497
+ obj.extensionName = message.extensionName;
498
+ }
499
+ if (message.ownerOrAuthorName !== "") {
500
+ obj.ownerOrAuthorName = message.ownerOrAuthorName;
501
+ }
472
502
  return obj;
473
503
  },
474
504
  create(base) {
@@ -495,6 +525,8 @@ exports.ManagerLoadCommand = {
495
525
  message.isRaycast = object.isRaycast ?? false;
496
526
  message.commandName = object.commandName ?? "";
497
527
  message.extensionId = object.extensionId ?? "";
528
+ message.extensionName = object.extensionName ?? "";
529
+ message.ownerOrAuthorName = object.ownerOrAuthorName ?? "";
498
530
  return message;
499
531
  },
500
532
  };