asyar-sdk 1.0.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.
- package/LICENSE +661 -0
- package/README.md +165 -0
- package/dist/ExtensionBridge.d.ts +34 -0
- package/dist/ExtensionBridge.d.ts.map +1 -0
- package/dist/ExtensionBridge.js +192 -0
- package/dist/ExtensionBridge.js.map +1 -0
- package/dist/ExtensionContext.d.ts +25 -0
- package/dist/ExtensionContext.d.ts.map +1 -0
- package/dist/ExtensionContext.js +128 -0
- package/dist/ExtensionContext.js.map +1 -0
- package/dist/cli/commands/build.d.ts +5 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/build.js +122 -0
- package/dist/cli/commands/build.js.map +1 -0
- package/dist/cli/commands/dev.d.ts +3 -0
- package/dist/cli/commands/dev.d.ts.map +1 -0
- package/dist/cli/commands/dev.js +85 -0
- package/dist/cli/commands/dev.js.map +1 -0
- package/dist/cli/commands/link.d.ts +6 -0
- package/dist/cli/commands/link.d.ts.map +1 -0
- package/dist/cli/commands/link.js +153 -0
- package/dist/cli/commands/link.js.map +1 -0
- package/dist/cli/commands/publish.d.ts +3 -0
- package/dist/cli/commands/publish.d.ts.map +1 -0
- package/dist/cli/commands/publish.js +344 -0
- package/dist/cli/commands/publish.js.map +1 -0
- package/dist/cli/commands/validate.d.ts +3 -0
- package/dist/cli/commands/validate.d.ts.map +1 -0
- package/dist/cli/commands/validate.js +58 -0
- package/dist/cli/commands/validate.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +20 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/lib/auth.d.ts +16 -0
- package/dist/cli/lib/auth.d.ts.map +1 -0
- package/dist/cli/lib/auth.js +225 -0
- package/dist/cli/lib/auth.js.map +1 -0
- package/dist/cli/lib/config.d.ts +11 -0
- package/dist/cli/lib/config.d.ts.map +1 -0
- package/dist/cli/lib/config.js +77 -0
- package/dist/cli/lib/config.js.map +1 -0
- package/dist/cli/lib/github.d.ts +44 -0
- package/dist/cli/lib/github.d.ts.map +1 -0
- package/dist/cli/lib/github.js +106 -0
- package/dist/cli/lib/github.js.map +1 -0
- package/dist/cli/lib/manifest.d.ts +29 -0
- package/dist/cli/lib/manifest.d.ts.map +1 -0
- package/dist/cli/lib/manifest.js +138 -0
- package/dist/cli/lib/manifest.js.map +1 -0
- package/dist/cli/lib/platform.d.ts +2 -0
- package/dist/cli/lib/platform.d.ts.map +1 -0
- package/dist/cli/lib/platform.js +40 -0
- package/dist/cli/lib/platform.js.map +1 -0
- package/dist/cli/lib/store.d.ts +21 -0
- package/dist/cli/lib/store.d.ts.map +1 -0
- package/dist/cli/lib/store.js +81 -0
- package/dist/cli/lib/store.js.map +1 -0
- package/dist/cli/lib/zip.d.ts +7 -0
- package/dist/cli/lib/zip.d.ts.map +1 -0
- package/dist/cli/lib/zip.js +67 -0
- package/dist/cli/lib/zip.js.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +25 -0
- package/dist/components/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/ipc/MessageBroker.d.ts +30 -0
- package/dist/ipc/MessageBroker.d.ts.map +1 -0
- package/dist/ipc/MessageBroker.js +118 -0
- package/dist/ipc/MessageBroker.js.map +1 -0
- package/dist/services/ActionServiceProxy.d.ts +17 -0
- package/dist/services/ActionServiceProxy.d.ts.map +1 -0
- package/dist/services/ActionServiceProxy.js +60 -0
- package/dist/services/ActionServiceProxy.js.map +1 -0
- package/dist/services/ClipboardHistoryServiceProxy.d.ts +26 -0
- package/dist/services/ClipboardHistoryServiceProxy.d.ts.map +1 -0
- package/dist/services/ClipboardHistoryServiceProxy.js +74 -0
- package/dist/services/ClipboardHistoryServiceProxy.js.map +1 -0
- package/dist/services/CommandServiceProxy.d.ts +15 -0
- package/dist/services/CommandServiceProxy.d.ts.map +1 -0
- package/dist/services/CommandServiceProxy.js +44 -0
- package/dist/services/CommandServiceProxy.js.map +1 -0
- package/dist/services/ExtensionManagerProxy.d.ts +25 -0
- package/dist/services/ExtensionManagerProxy.d.ts.map +1 -0
- package/dist/services/ExtensionManagerProxy.js +78 -0
- package/dist/services/ExtensionManagerProxy.js.map +1 -0
- package/dist/services/IClipboardHistoryService.d.ts +24 -0
- package/dist/services/IClipboardHistoryService.d.ts.map +1 -0
- package/dist/services/IClipboardHistoryService.js +3 -0
- package/dist/services/IClipboardHistoryService.js.map +1 -0
- package/dist/services/ICommandService.d.ts +10 -0
- package/dist/services/ICommandService.d.ts.map +1 -0
- package/dist/services/ICommandService.js +3 -0
- package/dist/services/ICommandService.js.map +1 -0
- package/dist/services/IExtensionManager.d.ts +26 -0
- package/dist/services/IExtensionManager.d.ts.map +1 -0
- package/dist/services/IExtensionManager.js +3 -0
- package/dist/services/IExtensionManager.js.map +1 -0
- package/dist/services/INotificationService.d.ts +15 -0
- package/dist/services/INotificationService.d.ts.map +1 -0
- package/dist/services/INotificationService.js +3 -0
- package/dist/services/INotificationService.js.map +1 -0
- package/dist/services/IStatusBarService.d.ts +11 -0
- package/dist/services/IStatusBarService.d.ts.map +1 -0
- package/dist/services/IStatusBarService.js +3 -0
- package/dist/services/IStatusBarService.js.map +1 -0
- package/dist/services/LogService.d.ts +8 -0
- package/dist/services/LogService.d.ts.map +1 -0
- package/dist/services/LogService.js +3 -0
- package/dist/services/LogService.js.map +1 -0
- package/dist/services/LogServiceProxy.d.ts +13 -0
- package/dist/services/LogServiceProxy.d.ts.map +1 -0
- package/dist/services/LogServiceProxy.js +33 -0
- package/dist/services/LogServiceProxy.js.map +1 -0
- package/dist/services/NetworkServiceProxy.d.ts +9 -0
- package/dist/services/NetworkServiceProxy.d.ts.map +1 -0
- package/dist/services/NetworkServiceProxy.js +37 -0
- package/dist/services/NetworkServiceProxy.js.map +1 -0
- package/dist/services/NotificationServiceProxy.d.ts +17 -0
- package/dist/services/NotificationServiceProxy.d.ts.map +1 -0
- package/dist/services/NotificationServiceProxy.js +42 -0
- package/dist/services/NotificationServiceProxy.js.map +1 -0
- package/dist/services/StatusBarServiceProxy.d.ts +11 -0
- package/dist/services/StatusBarServiceProxy.d.ts.map +1 -0
- package/dist/services/StatusBarServiceProxy.js +28 -0
- package/dist/services/StatusBarServiceProxy.js.map +1 -0
- package/dist/services/index.d.ts +15 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +35 -0
- package/dist/services/index.js.map +1 -0
- package/dist/types/ActionType.d.ts +64 -0
- package/dist/types/ActionType.d.ts.map +1 -0
- package/dist/types/ActionType.js +47 -0
- package/dist/types/ActionType.js.map +1 -0
- package/dist/types/ClipboardType.d.ts +20 -0
- package/dist/types/ClipboardType.d.ts.map +1 -0
- package/dist/types/ClipboardType.js +13 -0
- package/dist/types/ClipboardType.js.map +1 -0
- package/dist/types/CommandType.d.ts +36 -0
- package/dist/types/CommandType.d.ts.map +1 -0
- package/dist/types/CommandType.js +3 -0
- package/dist/types/CommandType.js.map +1 -0
- package/dist/types/ExtensionType.d.ts +50 -0
- package/dist/types/ExtensionType.d.ts.map +1 -0
- package/dist/types/ExtensionType.js +3 -0
- package/dist/types/ExtensionType.js.map +1 -0
- package/dist/types/NetworkType.d.ts +17 -0
- package/dist/types/NetworkType.d.ts.map +1 -0
- package/dist/types/NetworkType.js +3 -0
- package/dist/types/NetworkType.js.map +1 -0
- package/dist/types/NotificationType.d.ts +48 -0
- package/dist/types/NotificationType.d.ts.map +1 -0
- package/dist/types/NotificationType.js +3 -0
- package/dist/types/NotificationType.js.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ExtensionContext } from "../ExtensionContext";
|
|
2
|
+
export interface ExtensionManifest {
|
|
3
|
+
name: string;
|
|
4
|
+
id: string;
|
|
5
|
+
version: string;
|
|
6
|
+
description: string;
|
|
7
|
+
type: "result" | "view";
|
|
8
|
+
defaultView?: string;
|
|
9
|
+
searchable?: boolean;
|
|
10
|
+
icon?: string;
|
|
11
|
+
commands: ExtensionCommand[];
|
|
12
|
+
}
|
|
13
|
+
export interface ExtensionCommand {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
trigger: string;
|
|
17
|
+
id: string;
|
|
18
|
+
resultType?: "no-view" | "view";
|
|
19
|
+
icon?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ExtensionResult {
|
|
22
|
+
score: number;
|
|
23
|
+
title: string;
|
|
24
|
+
subtitle?: string;
|
|
25
|
+
type: "result" | "view";
|
|
26
|
+
action: () => void | Promise<void>;
|
|
27
|
+
viewPath?: string;
|
|
28
|
+
icon?: string;
|
|
29
|
+
style?: "default" | "large";
|
|
30
|
+
}
|
|
31
|
+
export interface Extension {
|
|
32
|
+
initialize(context: ExtensionContext): Promise<void>;
|
|
33
|
+
activate(): Promise<void>;
|
|
34
|
+
deactivate(): Promise<void>;
|
|
35
|
+
onUnload: any;
|
|
36
|
+
viewActivated(viewId: string): Promise<void>;
|
|
37
|
+
viewDeactivated(viewId: string): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Performs a complex search operation.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* The search method should be used with caution due to its potential impact on performance and resource consumption.
|
|
43
|
+
* It's designed for search queries that cannot be implemented using the standard command registration system.
|
|
44
|
+
* For typical search functionalities, please utilize the command registration mechanism for better efficiency.
|
|
45
|
+
*/
|
|
46
|
+
search?: (query: string) => Promise<ExtensionResult[]>;
|
|
47
|
+
onViewSearch?: (query: string) => Promise<void>;
|
|
48
|
+
executeCommand: (commandId: string, args?: Record<string, any>) => Promise<any>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=ExtensionType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionType.d.ts","sourceRoot":"","sources":["../../src/types/ExtensionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC7B;AAGD,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,QAAQ,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAEvD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAGhD,cAAc,EAAE,CACd,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACvB,OAAO,CAAC,GAAG,CAAC,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionType.js","sourceRoot":"","sources":["../../src/types/ExtensionType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface RequestOptions {
|
|
2
|
+
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD';
|
|
3
|
+
headers?: Record<string, string>;
|
|
4
|
+
body?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface NetworkResponse {
|
|
8
|
+
status: number;
|
|
9
|
+
statusText: string;
|
|
10
|
+
headers: Record<string, string>;
|
|
11
|
+
body: string;
|
|
12
|
+
ok: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface INetworkService {
|
|
15
|
+
fetch(url: string, options?: RequestOptions): Promise<NetworkResponse>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=NetworkType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkType.d.ts","sourceRoot":"","sources":["../../src/types/NetworkType.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,OAAO,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkType.js","sourceRoot":"","sources":["../../src/types/NetworkType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare enum Importance {
|
|
2
|
+
None = 0,
|
|
3
|
+
Min = 1,
|
|
4
|
+
Low = 2,
|
|
5
|
+
Default = 3,
|
|
6
|
+
High = 4
|
|
7
|
+
}
|
|
8
|
+
declare enum Visibility {
|
|
9
|
+
Secret = -1,
|
|
10
|
+
Private = 0,
|
|
11
|
+
Public = 1
|
|
12
|
+
}
|
|
13
|
+
export type NotificationOptions = {
|
|
14
|
+
title: string;
|
|
15
|
+
body: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
channelId?: string;
|
|
18
|
+
attachments?: Array<{
|
|
19
|
+
id: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export type NotificationChannel = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
importance?: Importance;
|
|
28
|
+
visibility?: Visibility;
|
|
29
|
+
lights?: boolean;
|
|
30
|
+
lightColor?: string;
|
|
31
|
+
vibration?: boolean;
|
|
32
|
+
sound?: string;
|
|
33
|
+
};
|
|
34
|
+
export type NotificationActionType = {
|
|
35
|
+
id: string;
|
|
36
|
+
actions: Array<{
|
|
37
|
+
id: string;
|
|
38
|
+
title: string;
|
|
39
|
+
requiresAuthentication?: boolean;
|
|
40
|
+
foreground?: boolean;
|
|
41
|
+
destructive?: boolean;
|
|
42
|
+
input?: boolean;
|
|
43
|
+
inputButtonTitle?: string;
|
|
44
|
+
inputPlaceholder?: string;
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=NotificationType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationType.d.ts","sourceRoot":"","sources":["../../src/types/NotificationType.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,UAAU;IACrB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,GAAG,IAAI;IACP,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AAED,OAAO,MAAM,UAAU;IACrB,MAAM,KAAK;IACX,OAAO,IAAI;IACX,MAAM,IAAI;CACX;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;CACJ,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC,CAAC;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationType.js","sourceRoot":"","sources":["../../src/types/NotificationType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,iBAAiB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,eAAe,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ClipboardType"), exports);
|
|
18
|
+
__exportStar(require("./ActionType"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,kDAAgC;AAChC,+CAA6B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "asyar-sdk",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"bin": {
|
|
6
|
+
"asyar": "./dist/cli/index.js"
|
|
7
|
+
},
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"build:cli": "tsc --project tsconfig.cli.json",
|
|
12
|
+
"build:all": "npm run build && npm run build:cli",
|
|
13
|
+
"prepare": "npm run build",
|
|
14
|
+
"test": "jest",
|
|
15
|
+
"lint": "eslint src --ext .ts",
|
|
16
|
+
"watch": "tsc --watch",
|
|
17
|
+
"release": "node scripts/release.js"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"asyar",
|
|
21
|
+
"extension",
|
|
22
|
+
"sdk",
|
|
23
|
+
"bridge"
|
|
24
|
+
],
|
|
25
|
+
"author": "Khoshbin Ali",
|
|
26
|
+
"license": "AGPL-3.0",
|
|
27
|
+
"description": "SDK for Asyar extensions",
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/adm-zip": "^0.5.8",
|
|
30
|
+
"@types/inquirer": "^9.0.9",
|
|
31
|
+
"@types/node": "^25.5.0",
|
|
32
|
+
"@types/semver": "^7.7.1",
|
|
33
|
+
"typescript": "~5.6.2"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"adm-zip": "^0.5.16",
|
|
40
|
+
"chalk": "^5.6.2",
|
|
41
|
+
"chokidar": "^3.6.0",
|
|
42
|
+
"commander": "^12.1.0",
|
|
43
|
+
"inquirer": "^10.2.2",
|
|
44
|
+
"keytar": "^7.9.0",
|
|
45
|
+
"ora": "^8.2.0",
|
|
46
|
+
"semver": "^7.7.4"
|
|
47
|
+
}
|
|
48
|
+
}
|