@vicinae/api 0.16.1 → 0.16.3
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/dist/api/bus.d.ts +5 -0
- package/dist/api/cache.js +5 -4
- package/dist/api/color.d.ts +2 -1
- package/dist/api/color.js +48 -3
- package/dist/api/components/action-pannel.d.ts +3 -3
- package/dist/api/components/action-pannel.js +4 -2
- package/dist/api/components/actions.d.ts +10 -1
- package/dist/api/components/actions.js +13 -1
- package/dist/api/components/dropdown.d.ts +1 -1
- package/dist/api/components/dropdown.js +3 -1
- package/dist/api/components/empty-view.js +4 -2
- package/dist/api/components/form.d.ts +16 -2
- package/dist/api/components/form.js +28 -4
- package/dist/api/components/grid.d.ts +8 -19
- package/dist/api/components/grid.js +32 -2
- package/dist/api/components/list.d.ts +22 -3
- package/dist/api/components/list.js +49 -2
- package/dist/api/components/metadata.d.ts +1 -1
- package/dist/api/components/metadata.js +5 -1
- package/dist/api/components/tag.d.ts +2 -2
- package/dist/api/components/tag.js +4 -3
- package/dist/api/context/navigation-provider.js +1 -4
- package/dist/api/environment.d.ts +4 -0
- package/dist/api/image.d.ts +7 -5
- package/dist/api/image.js +4 -0
- package/dist/api/oauth.d.ts +3 -8
- package/dist/api/oauth.js +51 -21
- package/dist/api/proto/application.d.ts +10 -0
- package/dist/api/proto/application.js +150 -3
- package/dist/api/proto/daemon.d.ts +4 -1
- package/dist/api/proto/daemon.js +71 -16
- package/dist/api/proto/manager.d.ts +2 -0
- package/dist/api/proto/manager.js +32 -0
- package/dist/api/proto/oauth.d.ts +42 -0
- package/dist/api/proto/oauth.js +620 -5
- package/dist/api/proto/ui.d.ts +12 -1
- package/dist/api/proto/ui.js +164 -9
- package/dist/api/proto/wm.d.ts +20 -0
- package/dist/api/proto/wm.js +291 -7
- package/dist/api/utils.d.ts +43 -0
- package/dist/api/utils.js +24 -1
- package/dist/api/window-management.d.ts +29 -0
- package/dist/api/window-management.js +17 -0
- package/dist/commands/build/index.js +5 -2
- package/dist/commands/develop/index.js +7 -2
- package/dist/schemas/manifest.d.ts +255 -5
- package/dist/schemas/manifest.js +202 -4
- package/dist/utils/extension-types.d.ts +14 -0
- package/dist/utils/extension-types.js +162 -0
- package/package.json +1 -1
- package/types/jsx.d.ts +54 -33
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TagList = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const color_1 = require("../color");
|
|
6
|
+
const image_1 = require("../image");
|
|
6
7
|
const TagListRoot = ({ title, children }) => {
|
|
7
8
|
const nativeProps = {
|
|
8
9
|
title,
|
|
@@ -10,12 +11,12 @@ const TagListRoot = ({ title, children }) => {
|
|
|
10
11
|
};
|
|
11
12
|
return (0, jsx_runtime_1.jsx)("tag-list", { ...nativeProps });
|
|
12
13
|
};
|
|
13
|
-
const TagItem = ({ color, ...props }) => {
|
|
14
|
+
const TagItem = ({ color, icon, ...props }) => {
|
|
14
15
|
const nativeProps = {
|
|
15
16
|
...props,
|
|
17
|
+
color: color ? (0, color_1.serializeColorLike)(color) : undefined,
|
|
18
|
+
icon: icon ? (0, image_1.serializeProtoImage)(icon) : undefined,
|
|
16
19
|
};
|
|
17
|
-
if (color)
|
|
18
|
-
nativeProps.color = (0, color_1.serializeColorLike)(color);
|
|
19
20
|
return (0, jsx_runtime_1.jsx)("tag-item", { ...nativeProps });
|
|
20
21
|
};
|
|
21
22
|
exports.TagList = Object.assign(TagListRoot, {
|
|
@@ -9,7 +9,7 @@ const react_1 = require("react");
|
|
|
9
9
|
const navigation_context_1 = __importDefault(require("./navigation-context"));
|
|
10
10
|
const bus_1 = require("../bus");
|
|
11
11
|
const View = ({ children }) => {
|
|
12
|
-
return (0, jsx_runtime_1.jsx)(
|
|
12
|
+
return (0, jsx_runtime_1.jsx)("view", { children: children });
|
|
13
13
|
};
|
|
14
14
|
const NavigationProvider = ({ root }) => {
|
|
15
15
|
const [navStack, setNavStack] = (0, react_1.useState)([root]);
|
|
@@ -24,9 +24,6 @@ const NavigationProvider = ({ root }) => {
|
|
|
24
24
|
setNavStack((cur) => [...cur, node]);
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
(0, react_1.useEffect)(() => {
|
|
28
|
-
//console.log('changed nav stack size', navStack.length);
|
|
29
|
-
}, [navStack]);
|
|
30
27
|
(0, react_1.useEffect)(() => {
|
|
31
28
|
const listener = bus_1.bus.subscribe("pop-view", () => {
|
|
32
29
|
setNavStack((cur) => cur.slice(0, -1));
|
|
@@ -51,6 +51,10 @@ export interface Environment {
|
|
|
51
51
|
* The version of the main Raycast app
|
|
52
52
|
*/
|
|
53
53
|
raycastVersion: string;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the extension owner (if any) or author, as specified in package.json
|
|
56
|
+
*/
|
|
57
|
+
ownerOrAuthorName: string;
|
|
54
58
|
/**
|
|
55
59
|
* The name of the extension, as specified in package.json
|
|
56
60
|
*/
|
package/dist/api/image.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ColorLike } from "./color";
|
|
2
|
+
import type { Icon } from "./icon";
|
|
2
3
|
import * as ui from "./proto/ui";
|
|
3
4
|
export type Image = {
|
|
4
5
|
source: Image.Source;
|
|
5
|
-
fallback?: Image.Fallback;
|
|
6
|
-
tintColor?:
|
|
7
|
-
mask?: Image.Mask;
|
|
6
|
+
fallback?: Image.Fallback | undefined | null;
|
|
7
|
+
tintColor?: ColorLike | undefined | null;
|
|
8
|
+
mask?: Image.Mask | undefined | null;
|
|
8
9
|
};
|
|
9
10
|
export type ImageLike = Image.ImageLike;
|
|
11
|
+
export type SerializedImageLike = URL | Image.Asset | Icon | ui.Image | Image.ThemedImage;
|
|
10
12
|
export declare namespace Image {
|
|
11
13
|
type Asset = string;
|
|
12
14
|
type ThemedSource = {
|
|
@@ -15,7 +17,7 @@ export declare namespace Image {
|
|
|
15
17
|
};
|
|
16
18
|
type Fallback = Source;
|
|
17
19
|
type Source = URL | Asset | ThemedSource;
|
|
18
|
-
type ImageLike = URL | Image.Asset | Image | ThemedImage;
|
|
20
|
+
type ImageLike = URL | Image.Asset | Icon | Image | ThemedImage;
|
|
19
21
|
type ThemedImage = {
|
|
20
22
|
light: URL | Asset;
|
|
21
23
|
dark: URL | Asset;
|
package/dist/api/image.js
CHANGED
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.serializeProtoImage = exports.Image = void 0;
|
|
37
|
+
const color_1 = require("./color");
|
|
37
38
|
const ui = __importStar(require("./proto/ui"));
|
|
38
39
|
var Image;
|
|
39
40
|
(function (Image) {
|
|
@@ -69,6 +70,9 @@ const serializeProtoImage = (image) => {
|
|
|
69
70
|
if (img.mask) {
|
|
70
71
|
proto.mask = maskMap[img.mask];
|
|
71
72
|
}
|
|
73
|
+
if (img.tintColor) {
|
|
74
|
+
proto.tintColor = (0, color_1.serializeColorLike)(img.tintColor);
|
|
75
|
+
}
|
|
72
76
|
return proto;
|
|
73
77
|
};
|
|
74
78
|
exports.serializeProtoImage = serializeProtoImage;
|
package/dist/api/oauth.d.ts
CHANGED
|
@@ -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
|
-
|
|
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()
|
|
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)(
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
154
|
-
|
|
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
|
};
|
|
@@ -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
|
};
|
|
@@ -15,9 +15,12 @@ export interface DmenuRequest {
|
|
|
15
15
|
rawContent: string;
|
|
16
16
|
navigationTitle: string;
|
|
17
17
|
placeholder: string;
|
|
18
|
-
noIcon: boolean;
|
|
19
18
|
sectionTitle: string;
|
|
20
19
|
noSection: boolean;
|
|
20
|
+
noQuickLook: boolean;
|
|
21
|
+
noIcon: boolean;
|
|
22
|
+
noMetadata: boolean;
|
|
23
|
+
query: string;
|
|
21
24
|
}
|
|
22
25
|
export interface LaunchAppRequest {
|
|
23
26
|
appId: string;
|
package/dist/api/proto/daemon.js
CHANGED
|
@@ -186,7 +186,17 @@ exports.PingResponse = {
|
|
|
186
186
|
},
|
|
187
187
|
};
|
|
188
188
|
function createBaseDmenuRequest() {
|
|
189
|
-
return {
|
|
189
|
+
return {
|
|
190
|
+
rawContent: "",
|
|
191
|
+
navigationTitle: "",
|
|
192
|
+
placeholder: "",
|
|
193
|
+
sectionTitle: "",
|
|
194
|
+
noSection: false,
|
|
195
|
+
noQuickLook: false,
|
|
196
|
+
noIcon: false,
|
|
197
|
+
noMetadata: false,
|
|
198
|
+
query: "",
|
|
199
|
+
};
|
|
190
200
|
}
|
|
191
201
|
exports.DmenuRequest = {
|
|
192
202
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -199,14 +209,23 @@ exports.DmenuRequest = {
|
|
|
199
209
|
if (message.placeholder !== "") {
|
|
200
210
|
writer.uint32(26).string(message.placeholder);
|
|
201
211
|
}
|
|
202
|
-
if (message.noIcon !== false) {
|
|
203
|
-
writer.uint32(32).bool(message.noIcon);
|
|
204
|
-
}
|
|
205
212
|
if (message.sectionTitle !== "") {
|
|
206
|
-
writer.uint32(
|
|
213
|
+
writer.uint32(34).string(message.sectionTitle);
|
|
207
214
|
}
|
|
208
215
|
if (message.noSection !== false) {
|
|
209
|
-
writer.uint32(
|
|
216
|
+
writer.uint32(40).bool(message.noSection);
|
|
217
|
+
}
|
|
218
|
+
if (message.noQuickLook !== false) {
|
|
219
|
+
writer.uint32(48).bool(message.noQuickLook);
|
|
220
|
+
}
|
|
221
|
+
if (message.noIcon !== false) {
|
|
222
|
+
writer.uint32(56).bool(message.noIcon);
|
|
223
|
+
}
|
|
224
|
+
if (message.noMetadata !== false) {
|
|
225
|
+
writer.uint32(64).bool(message.noMetadata);
|
|
226
|
+
}
|
|
227
|
+
if (message.query !== "") {
|
|
228
|
+
writer.uint32(74).string(message.query);
|
|
210
229
|
}
|
|
211
230
|
return writer;
|
|
212
231
|
},
|
|
@@ -239,24 +258,45 @@ exports.DmenuRequest = {
|
|
|
239
258
|
continue;
|
|
240
259
|
}
|
|
241
260
|
case 4: {
|
|
242
|
-
if (tag !==
|
|
261
|
+
if (tag !== 34) {
|
|
243
262
|
break;
|
|
244
263
|
}
|
|
245
|
-
message.
|
|
264
|
+
message.sectionTitle = reader.string();
|
|
246
265
|
continue;
|
|
247
266
|
}
|
|
248
267
|
case 5: {
|
|
249
|
-
if (tag !==
|
|
268
|
+
if (tag !== 40) {
|
|
250
269
|
break;
|
|
251
270
|
}
|
|
252
|
-
message.
|
|
271
|
+
message.noSection = reader.bool();
|
|
253
272
|
continue;
|
|
254
273
|
}
|
|
255
274
|
case 6: {
|
|
256
275
|
if (tag !== 48) {
|
|
257
276
|
break;
|
|
258
277
|
}
|
|
259
|
-
message.
|
|
278
|
+
message.noQuickLook = reader.bool();
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
case 7: {
|
|
282
|
+
if (tag !== 56) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
message.noIcon = reader.bool();
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
case 8: {
|
|
289
|
+
if (tag !== 64) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
message.noMetadata = reader.bool();
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
case 9: {
|
|
296
|
+
if (tag !== 74) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
message.query = reader.string();
|
|
260
300
|
continue;
|
|
261
301
|
}
|
|
262
302
|
}
|
|
@@ -272,9 +312,12 @@ exports.DmenuRequest = {
|
|
|
272
312
|
rawContent: isSet(object.rawContent) ? globalThis.String(object.rawContent) : "",
|
|
273
313
|
navigationTitle: isSet(object.navigationTitle) ? globalThis.String(object.navigationTitle) : "",
|
|
274
314
|
placeholder: isSet(object.placeholder) ? globalThis.String(object.placeholder) : "",
|
|
275
|
-
noIcon: isSet(object.noIcon) ? globalThis.Boolean(object.noIcon) : false,
|
|
276
315
|
sectionTitle: isSet(object.sectionTitle) ? globalThis.String(object.sectionTitle) : "",
|
|
277
316
|
noSection: isSet(object.noSection) ? globalThis.Boolean(object.noSection) : false,
|
|
317
|
+
noQuickLook: isSet(object.noQuickLook) ? globalThis.Boolean(object.noQuickLook) : false,
|
|
318
|
+
noIcon: isSet(object.noIcon) ? globalThis.Boolean(object.noIcon) : false,
|
|
319
|
+
noMetadata: isSet(object.noMetadata) ? globalThis.Boolean(object.noMetadata) : false,
|
|
320
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
278
321
|
};
|
|
279
322
|
},
|
|
280
323
|
toJSON(message) {
|
|
@@ -288,15 +331,24 @@ exports.DmenuRequest = {
|
|
|
288
331
|
if (message.placeholder !== "") {
|
|
289
332
|
obj.placeholder = message.placeholder;
|
|
290
333
|
}
|
|
291
|
-
if (message.noIcon !== false) {
|
|
292
|
-
obj.noIcon = message.noIcon;
|
|
293
|
-
}
|
|
294
334
|
if (message.sectionTitle !== "") {
|
|
295
335
|
obj.sectionTitle = message.sectionTitle;
|
|
296
336
|
}
|
|
297
337
|
if (message.noSection !== false) {
|
|
298
338
|
obj.noSection = message.noSection;
|
|
299
339
|
}
|
|
340
|
+
if (message.noQuickLook !== false) {
|
|
341
|
+
obj.noQuickLook = message.noQuickLook;
|
|
342
|
+
}
|
|
343
|
+
if (message.noIcon !== false) {
|
|
344
|
+
obj.noIcon = message.noIcon;
|
|
345
|
+
}
|
|
346
|
+
if (message.noMetadata !== false) {
|
|
347
|
+
obj.noMetadata = message.noMetadata;
|
|
348
|
+
}
|
|
349
|
+
if (message.query !== "") {
|
|
350
|
+
obj.query = message.query;
|
|
351
|
+
}
|
|
300
352
|
return obj;
|
|
301
353
|
},
|
|
302
354
|
create(base) {
|
|
@@ -307,9 +359,12 @@ exports.DmenuRequest = {
|
|
|
307
359
|
message.rawContent = object.rawContent ?? "";
|
|
308
360
|
message.navigationTitle = object.navigationTitle ?? "";
|
|
309
361
|
message.placeholder = object.placeholder ?? "";
|
|
310
|
-
message.noIcon = object.noIcon ?? false;
|
|
311
362
|
message.sectionTitle = object.sectionTitle ?? "";
|
|
312
363
|
message.noSection = object.noSection ?? false;
|
|
364
|
+
message.noQuickLook = object.noQuickLook ?? false;
|
|
365
|
+
message.noIcon = object.noIcon ?? false;
|
|
366
|
+
message.noMetadata = object.noMetadata ?? false;
|
|
367
|
+
message.query = object.query ?? "";
|
|
313
368
|
return message;
|
|
314
369
|
},
|
|
315
370
|
};
|