@akanjs/devkit 0.0.40 → 0.0.41
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/index.d.ts +1 -24
- package/index.js +1950 -21
- package/package.json +20 -2
- package/src/auth.d.ts +6 -9
- package/src/baseDevEnv.d.ts +4 -6
- package/src/capacitorApp.d.ts +5 -11
- package/src/commandDecorators/argMeta.d.ts +55 -0
- package/src/commandDecorators/command.d.ts +2 -0
- package/src/commandDecorators/commandMeta.d.ts +2 -0
- package/src/commandDecorators/index.d.ts +5 -0
- package/src/commandDecorators/targetMeta.d.ts +18 -0
- package/src/commandDecorators/types.d.ts +1 -0
- package/src/constants.d.ts +9 -11
- package/src/createTunnel.d.ts +2 -3
- package/src/dependencyScanner.d.ts +1 -3
- package/src/executors.d.ts +14 -157
- package/src/extractDeps.d.ts +2 -5
- package/src/getCredentials.d.ts +3 -9
- package/src/getDependencies.d.ts +1 -3
- package/src/getModelFileData.d.ts +2 -3
- package/src/getRelatedCnsts.d.ts +1 -3
- package/src/index.d.ts +18 -101
- package/src/installExternalLib.d.ts +2 -8
- package/src/selectModel.d.ts +1 -3
- package/src/streamAi.d.ts +2 -3
- package/src/types.d.ts +2 -4
- package/src/uploadRelease.d.ts +1 -3
- package/src/aiEditor.d.ts +0 -10
- package/src/aiEditor.js +0 -61
- package/src/auth.js +0 -79
- package/src/baseDevEnv.js +0 -50
- package/src/capacitorApp.js +0 -186
- package/src/constants.js +0 -47
- package/src/createTunnel.js +0 -47
- package/src/dependencyScanner.js +0 -171
- package/src/executors.js +0 -715
- package/src/extractDeps.js +0 -114
- package/src/getCredentials.js +0 -43
- package/src/getDependencies.js +0 -67
- package/src/getModelFileData.js +0 -67
- package/src/getRelatedCnsts.js +0 -145
- package/src/index.js +0 -55
- package/src/installExternalLib.js +0 -34
- package/src/selectModel.js +0 -50
- package/src/streamAi.js +0 -69
- package/src/types.js +0 -15
- package/src/uploadRelease.js +0 -82
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -14,5 +14,23 @@
|
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
17
|
-
"dependencies": {
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@inquirer/prompts": "^7.2.1",
|
|
19
|
+
"@langchain/core": "^0.3.27",
|
|
20
|
+
"@langchain/openai": "^0.3.16",
|
|
21
|
+
"@next/bundle-analyzer": "^15.1.3",
|
|
22
|
+
"@nx/devkit": "^20.7.2",
|
|
23
|
+
"@trapezedev/project": "^7.1.3",
|
|
24
|
+
"axios": "^1.7.9",
|
|
25
|
+
"commander": "^13.1.0",
|
|
26
|
+
"dayjs": "^1.11.13",
|
|
27
|
+
"form-data": "^4.0.1",
|
|
28
|
+
"js-yaml": "^4.1.0",
|
|
29
|
+
"next-pwa": "^5.6.0",
|
|
30
|
+
"ora": "^3.4.0",
|
|
31
|
+
"pluralize": "^8.0.0",
|
|
32
|
+
"reflect-metadata": "^0.2.2",
|
|
33
|
+
"tunnel-ssh": "^5.2.0",
|
|
34
|
+
"typescript": "^5.8.3"
|
|
35
|
+
}
|
|
18
36
|
}
|
package/src/auth.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { AkanGlobalConfig, HostConfig } from
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const getSelf: (token: string) => Promise<{
|
|
1
|
+
import { AkanGlobalConfig, type HostConfig } from "./constants";
|
|
2
|
+
export declare const getAkanGlobalConfig: () => AkanGlobalConfig;
|
|
3
|
+
export declare const setAkanGlobalConfig: (akanConfig: AkanGlobalConfig) => void;
|
|
4
|
+
export declare const getHostConfig: (host?: string) => HostConfig;
|
|
5
|
+
export declare const setHostConfig: (host?: string, config?: HostConfig) => void;
|
|
6
|
+
export declare const getSelf: (token: string) => Promise<{
|
|
8
7
|
id: string;
|
|
9
8
|
nickname: string;
|
|
10
9
|
} | null>;
|
|
11
|
-
|
|
12
|
-
export { getAkanGlobalConfig, getHostConfig, getSelf, setAkanGlobalConfig, setHostConfig };
|
package/src/baseDevEnv.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { SshOptions } from
|
|
2
|
-
|
|
1
|
+
import { SshOptions } from "tunnel-ssh";
|
|
3
2
|
interface BaseDevEnv {
|
|
4
3
|
appName?: string;
|
|
5
4
|
repoName: string;
|
|
6
5
|
serveDomain: string;
|
|
7
6
|
env: "testing" | "debug" | "develop" | "main";
|
|
8
7
|
}
|
|
9
|
-
declare const baseDevEnv: BaseDevEnv;
|
|
10
|
-
declare const getSshTunnelOptions: (appName: string, environment: string) => SshOptions;
|
|
11
|
-
|
|
12
|
-
export { baseDevEnv, getSshTunnelOptions };
|
|
8
|
+
export declare const baseDevEnv: BaseDevEnv;
|
|
9
|
+
export declare const getSshTunnelOptions: (appName: string, environment: string) => SshOptions;
|
|
10
|
+
export {};
|
package/src/capacitorApp.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { AppExecutor } from
|
|
2
|
-
import { MobileProject } from
|
|
3
|
-
import { AndroidProject } from
|
|
4
|
-
import { IosProject } from
|
|
5
|
-
|
|
6
|
-
import 'child_process';
|
|
7
|
-
import './types.js';
|
|
8
|
-
|
|
9
|
-
declare class CapacitorApp {
|
|
1
|
+
import type { AppExecutor } from "@akanjs/devkit";
|
|
2
|
+
import { MobileProject } from "@trapezedev/project";
|
|
3
|
+
import type { AndroidProject } from "@trapezedev/project/dist/android/project";
|
|
4
|
+
import type { IosProject } from "@trapezedev/project/dist/ios/project";
|
|
5
|
+
export declare class CapacitorApp {
|
|
10
6
|
#private;
|
|
11
7
|
private readonly app;
|
|
12
8
|
project: MobileProject & {
|
|
@@ -23,5 +19,3 @@ declare class CapacitorApp {
|
|
|
23
19
|
addContact(): Promise<void>;
|
|
24
20
|
addLocation(): Promise<void>;
|
|
25
21
|
}
|
|
26
|
-
|
|
27
|
-
export { CapacitorApp };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import type { AppExecutor, LibExecutor, PkgExecutor, SysExecutor, WorkspaceExecutor } from "../executors";
|
|
3
|
+
import type { Type } from "./types";
|
|
4
|
+
export declare const argTypes: readonly ["Option"];
|
|
5
|
+
export type ArgType = (typeof argTypes)[number];
|
|
6
|
+
export declare const internalArgTypes: readonly ["Workspace", "App", "Lib", "Sys", "Pkg"];
|
|
7
|
+
export type InternalArgType = (typeof internalArgTypes)[number];
|
|
8
|
+
interface ArgsOption {
|
|
9
|
+
type?: "string" | "number" | "boolean";
|
|
10
|
+
flag?: string;
|
|
11
|
+
desc?: string;
|
|
12
|
+
default?: string | number | boolean;
|
|
13
|
+
nullable?: boolean;
|
|
14
|
+
example?: string | number | boolean;
|
|
15
|
+
enum?: (string | number)[] | readonly (string | number)[];
|
|
16
|
+
ask?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ArgMeta {
|
|
19
|
+
name: string;
|
|
20
|
+
argsOption: ArgsOption;
|
|
21
|
+
key: string;
|
|
22
|
+
idx: number;
|
|
23
|
+
type: ArgType;
|
|
24
|
+
}
|
|
25
|
+
export interface InternalArgMeta {
|
|
26
|
+
key: string;
|
|
27
|
+
idx: number;
|
|
28
|
+
type: InternalArgType;
|
|
29
|
+
option?: {
|
|
30
|
+
nullable?: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare const getArgMetas: (command: Type, key: string) => [(ArgMeta | InternalArgMeta)[], ArgMeta[], InternalArgMeta[]];
|
|
34
|
+
export declare const Option: (name: string, argsOption?: ArgsOption) => (prototype: object, key: string, idx: number) => void;
|
|
35
|
+
export declare const App: (option?: {
|
|
36
|
+
nullable?: boolean;
|
|
37
|
+
}) => (prototype: object, key: string, idx: number) => void;
|
|
38
|
+
export type App = AppExecutor;
|
|
39
|
+
export declare const Lib: (option?: {
|
|
40
|
+
nullable?: boolean;
|
|
41
|
+
}) => (prototype: object, key: string, idx: number) => void;
|
|
42
|
+
export type Lib = LibExecutor;
|
|
43
|
+
export declare const Sys: (option?: {
|
|
44
|
+
nullable?: boolean;
|
|
45
|
+
}) => (prototype: object, key: string, idx: number) => void;
|
|
46
|
+
export type Sys = SysExecutor;
|
|
47
|
+
export declare const Pkg: (option?: {
|
|
48
|
+
nullable?: boolean;
|
|
49
|
+
}) => (prototype: object, key: string, idx: number) => void;
|
|
50
|
+
export type Pkg = PkgExecutor;
|
|
51
|
+
export declare const Workspace: (option?: {
|
|
52
|
+
nullable?: boolean;
|
|
53
|
+
}) => (prototype: object, key: string, idx: number) => void;
|
|
54
|
+
export type Workspace = WorkspaceExecutor;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Type } from "./types";
|
|
2
|
+
interface TargetMeta {
|
|
3
|
+
key: string;
|
|
4
|
+
descriptor: PropertyDescriptor;
|
|
5
|
+
targetOption: TargetOption;
|
|
6
|
+
}
|
|
7
|
+
export declare const getTargetMetas: (command: Type) => TargetMeta[];
|
|
8
|
+
interface TargetOption {
|
|
9
|
+
type: "public" | "cloud" | "dev";
|
|
10
|
+
short?: string | true;
|
|
11
|
+
devOnly?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Target: {
|
|
14
|
+
Public: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
|
|
15
|
+
Cloud: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
|
|
16
|
+
Dev: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Type<T = any> = new (...args: any[]) => T;
|
package/src/constants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const basePath: string;
|
|
2
|
-
declare const configPath: string;
|
|
3
|
-
declare const akanCloudHost: string;
|
|
4
|
-
declare const akanCloudBackendUrl: string;
|
|
5
|
-
declare const akanCloudClientUrl: string;
|
|
6
|
-
interface HostConfig {
|
|
1
|
+
export declare const basePath: string;
|
|
2
|
+
export declare const configPath: string;
|
|
3
|
+
export declare const akanCloudHost: string;
|
|
4
|
+
export declare const akanCloudBackendUrl: string;
|
|
5
|
+
export declare const akanCloudClientUrl: string;
|
|
6
|
+
export interface HostConfig {
|
|
7
7
|
auth?: {
|
|
8
8
|
token: string;
|
|
9
9
|
self: {
|
|
@@ -12,10 +12,8 @@ interface HostConfig {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
declare const defaultHostConfig: HostConfig;
|
|
16
|
-
interface AkanGlobalConfig {
|
|
15
|
+
export declare const defaultHostConfig: HostConfig;
|
|
16
|
+
export interface AkanGlobalConfig {
|
|
17
17
|
[key: string]: HostConfig;
|
|
18
18
|
}
|
|
19
|
-
declare const defaultAkanGlobalConfig: AkanGlobalConfig;
|
|
20
|
-
|
|
21
|
-
export { type AkanGlobalConfig, type HostConfig, akanCloudBackendUrl, akanCloudClientUrl, akanCloudHost, basePath, configPath, defaultAkanGlobalConfig, defaultHostConfig };
|
|
19
|
+
export declare const defaultAkanGlobalConfig: AkanGlobalConfig;
|
package/src/createTunnel.d.ts
CHANGED
|
@@ -3,6 +3,5 @@ interface TunnelOption {
|
|
|
3
3
|
environment: string;
|
|
4
4
|
port?: number;
|
|
5
5
|
}
|
|
6
|
-
declare const createTunnel: ({ appName, environment, port }: TunnelOption) => Promise<string>;
|
|
7
|
-
|
|
8
|
-
export { createTunnel };
|
|
6
|
+
export declare const createTunnel: ({ appName, environment, port }: TunnelOption) => Promise<string>;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
|
-
declare class TypeScriptDependencyScanner {
|
|
2
|
+
export declare class TypeScriptDependencyScanner {
|
|
3
3
|
#private;
|
|
4
4
|
readonly directory: string;
|
|
5
5
|
constructor(directory: string);
|
|
@@ -7,5 +7,3 @@ declare class TypeScriptDependencyScanner {
|
|
|
7
7
|
getDependencies(): Promise<Map<string, string[]>>;
|
|
8
8
|
generateDependencyGraph(): string;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
export { TypeScriptDependencyScanner };
|
package/src/executors.d.ts
CHANGED
|
@@ -1,150 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
declare
|
|
6
|
-
type LogLevel = (typeof logLevels)[number];
|
|
7
|
-
declare class Logger {
|
|
8
|
-
#private;
|
|
9
|
-
static level: LogLevel;
|
|
10
|
-
static setLevel(level: LogLevel): void;
|
|
11
|
-
name?: string;
|
|
12
|
-
constructor(name?: string);
|
|
13
|
-
trace(msg: string, context?: string): void;
|
|
14
|
-
verbose(msg: string, context?: string): void;
|
|
15
|
-
debug(msg: string, context?: string): void;
|
|
16
|
-
log(msg: string, context?: string): void;
|
|
17
|
-
info(msg: string, context?: string): void;
|
|
18
|
-
warn(msg: string, context?: string): void;
|
|
19
|
-
error(msg: string, context?: string): void;
|
|
20
|
-
raw(msg: string, method?: "console" | "process"): void;
|
|
21
|
-
rawLog(msg: string, method?: "console" | "process"): void;
|
|
22
|
-
static trace(msg: string, context?: string): void;
|
|
23
|
-
static verbose(msg: string, context?: string): void;
|
|
24
|
-
static debug(msg: string, context?: string): void;
|
|
25
|
-
static log(msg: string, context?: string): void;
|
|
26
|
-
static info(msg: string, context?: string): void;
|
|
27
|
-
static warn(msg: string, context?: string): void;
|
|
28
|
-
static error(msg: string, context?: string): void;
|
|
29
|
-
static rawLog(msg: string, method?: "console" | "process"): void;
|
|
30
|
-
static raw(msg: string, method?: "console" | "process"): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type Arch = "amd64" | "arm64";
|
|
34
|
-
type ExplicitDependencies = string[] | {
|
|
35
|
-
[key in Arch]: string[];
|
|
36
|
-
};
|
|
37
|
-
interface AppConfigResult {
|
|
38
|
-
rootLib?: string;
|
|
39
|
-
libs: string[];
|
|
40
|
-
backend: {
|
|
41
|
-
dockerfile: string;
|
|
42
|
-
explicitDependencies: ExplicitDependencies;
|
|
43
|
-
};
|
|
44
|
-
frontend: {
|
|
45
|
-
dockerfile: string;
|
|
46
|
-
nextConfig: NextConfig | (() => Promise<NextConfig> | NextConfig);
|
|
47
|
-
routes?: {
|
|
48
|
-
basePath?: string;
|
|
49
|
-
domains: {
|
|
50
|
-
main?: string[];
|
|
51
|
-
develop?: string[];
|
|
52
|
-
debug?: string[];
|
|
53
|
-
};
|
|
54
|
-
}[];
|
|
55
|
-
explicitDependencies: ExplicitDependencies;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
interface LibConfigResult {
|
|
59
|
-
rootLib?: string;
|
|
60
|
-
libs: string[];
|
|
61
|
-
backend: {
|
|
62
|
-
explicitDependencies: ExplicitDependencies;
|
|
63
|
-
};
|
|
64
|
-
frontend: {
|
|
65
|
-
explicitDependencies: ExplicitDependencies;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
interface FileConventionScanResult {
|
|
69
|
-
constants: {
|
|
70
|
-
databases: string[];
|
|
71
|
-
scalars: string[];
|
|
72
|
-
};
|
|
73
|
-
dictionary: {
|
|
74
|
-
databases: string[];
|
|
75
|
-
services: string[];
|
|
76
|
-
scalars: string[];
|
|
77
|
-
};
|
|
78
|
-
documents: {
|
|
79
|
-
databases: string[];
|
|
80
|
-
scalars: string[];
|
|
81
|
-
};
|
|
82
|
-
services: {
|
|
83
|
-
databases: string[];
|
|
84
|
-
services: string[];
|
|
85
|
-
scalars: string[];
|
|
86
|
-
};
|
|
87
|
-
signal: {
|
|
88
|
-
databases: string[];
|
|
89
|
-
services: string[];
|
|
90
|
-
scalars: string[];
|
|
91
|
-
};
|
|
92
|
-
store: {
|
|
93
|
-
databases: string[];
|
|
94
|
-
services: string[];
|
|
95
|
-
scalars: string[];
|
|
96
|
-
};
|
|
97
|
-
components: {
|
|
98
|
-
databases: string[];
|
|
99
|
-
services: string[];
|
|
100
|
-
scalars: string[];
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
interface AppScanResult {
|
|
104
|
-
name: string;
|
|
105
|
-
type: "app" | "lib";
|
|
106
|
-
akanConfig: AppConfigResult;
|
|
107
|
-
files: FileConventionScanResult;
|
|
108
|
-
libDeps: string[];
|
|
109
|
-
pkgDeps: string[];
|
|
110
|
-
dependencies: string[];
|
|
111
|
-
libs: {
|
|
112
|
-
[key: string]: LibScanResult;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
interface LibScanResult {
|
|
116
|
-
name: string;
|
|
117
|
-
type: "app" | "lib";
|
|
118
|
-
akanConfig: LibConfigResult;
|
|
119
|
-
files: FileConventionScanResult;
|
|
120
|
-
libDeps: string[];
|
|
121
|
-
pkgDeps: string[];
|
|
122
|
-
dependencies: string[];
|
|
123
|
-
libs: {
|
|
124
|
-
[key: string]: LibScanResult;
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
interface PkgScanResult {
|
|
128
|
-
name: string;
|
|
129
|
-
pkgDeps: string[];
|
|
130
|
-
dependencies: string[];
|
|
131
|
-
}
|
|
132
|
-
interface WorkspaceScanResult {
|
|
133
|
-
appNames: string[];
|
|
134
|
-
libNames: string[];
|
|
135
|
-
pkgNames: string[];
|
|
136
|
-
apps: {
|
|
137
|
-
[key: string]: AppScanResult;
|
|
138
|
-
};
|
|
139
|
-
libs: {
|
|
140
|
-
[key: string]: LibScanResult;
|
|
141
|
-
};
|
|
142
|
-
pkgs: {
|
|
143
|
-
[key: string]: PkgScanResult;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
declare class Executor {
|
|
1
|
+
import { Logger } from "@akanjs/common";
|
|
2
|
+
import { type AppConfigResult, AppScanResult, type LibConfigResult, LibScanResult, PkgScanResult, WorkspaceScanResult } from "@akanjs/config";
|
|
3
|
+
import { type ExecOptions, type ForkOptions, type SpawnOptions } from "child_process";
|
|
4
|
+
import type { PackageJson, TsConfigJson } from "./types";
|
|
5
|
+
export declare class Executor {
|
|
148
6
|
#private;
|
|
149
7
|
logger: Logger;
|
|
150
8
|
cwdPath: string;
|
|
@@ -177,7 +35,7 @@ interface ExecutorOptions {
|
|
|
177
35
|
workspaceRoot: string;
|
|
178
36
|
repoName: string;
|
|
179
37
|
}
|
|
180
|
-
declare class WorkspaceExecutor extends Executor {
|
|
38
|
+
export declare class WorkspaceExecutor extends Executor {
|
|
181
39
|
#private;
|
|
182
40
|
workspaceRoot: string;
|
|
183
41
|
repoName: string;
|
|
@@ -194,7 +52,7 @@ interface SysExecutorOptions {
|
|
|
194
52
|
name: string;
|
|
195
53
|
type: "app" | "lib";
|
|
196
54
|
}
|
|
197
|
-
declare class SysExecutor extends Executor {
|
|
55
|
+
export declare class SysExecutor extends Executor {
|
|
198
56
|
workspace: WorkspaceExecutor;
|
|
199
57
|
name: string;
|
|
200
58
|
type: "app" | "lib";
|
|
@@ -214,7 +72,7 @@ interface AppExecutorOptions {
|
|
|
214
72
|
workspace?: WorkspaceExecutor;
|
|
215
73
|
name: string;
|
|
216
74
|
}
|
|
217
|
-
declare class AppExecutor extends SysExecutor {
|
|
75
|
+
export declare class AppExecutor extends SysExecutor {
|
|
218
76
|
constructor({ workspace, name }: AppExecutorOptions);
|
|
219
77
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): AppExecutor;
|
|
220
78
|
getConfig(command?: string): Promise<AppConfigResult>;
|
|
@@ -224,7 +82,7 @@ interface DistAppExecutorOptions {
|
|
|
224
82
|
workspace: WorkspaceExecutor;
|
|
225
83
|
name: string;
|
|
226
84
|
}
|
|
227
|
-
declare class DistAppExecutor extends Executor {
|
|
85
|
+
export declare class DistAppExecutor extends Executor {
|
|
228
86
|
name: string;
|
|
229
87
|
constructor({ workspace, name }: DistAppExecutorOptions);
|
|
230
88
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): DistAppExecutor;
|
|
@@ -233,7 +91,7 @@ interface LibExecutorOptions {
|
|
|
233
91
|
workspace?: WorkspaceExecutor;
|
|
234
92
|
name: string;
|
|
235
93
|
}
|
|
236
|
-
declare class LibExecutor extends SysExecutor {
|
|
94
|
+
export declare class LibExecutor extends SysExecutor {
|
|
237
95
|
workspaceRoot: string;
|
|
238
96
|
repoName: string;
|
|
239
97
|
constructor({ workspace, name }: LibExecutorOptions);
|
|
@@ -244,7 +102,7 @@ interface DistLibExecutorOptions {
|
|
|
244
102
|
workspace: WorkspaceExecutor;
|
|
245
103
|
name: string;
|
|
246
104
|
}
|
|
247
|
-
declare class DistLibExecutor extends Executor {
|
|
105
|
+
export declare class DistLibExecutor extends Executor {
|
|
248
106
|
name: string;
|
|
249
107
|
constructor({ workspace, name }: DistLibExecutorOptions);
|
|
250
108
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): DistAppExecutor | DistLibExecutor;
|
|
@@ -253,7 +111,7 @@ interface PkgExecutorOptions {
|
|
|
253
111
|
workspace?: WorkspaceExecutor;
|
|
254
112
|
name: string;
|
|
255
113
|
}
|
|
256
|
-
declare class PkgExecutor extends Executor {
|
|
114
|
+
export declare class PkgExecutor extends Executor {
|
|
257
115
|
workspace: WorkspaceExecutor;
|
|
258
116
|
name: string;
|
|
259
117
|
constructor({ workspace, name }: PkgExecutorOptions);
|
|
@@ -268,12 +126,11 @@ interface DistPkgExecutorOptions {
|
|
|
268
126
|
repoName: string;
|
|
269
127
|
name: string;
|
|
270
128
|
}
|
|
271
|
-
declare class DistPkgExecutor extends Executor {
|
|
129
|
+
export declare class DistPkgExecutor extends Executor {
|
|
272
130
|
workspaceRoot: string;
|
|
273
131
|
repoName: string;
|
|
274
132
|
name: string;
|
|
275
133
|
constructor({ workspaceRoot, repoName, name }: DistPkgExecutorOptions);
|
|
276
134
|
static from(workspaceExecutor: WorkspaceExecutor, name: string): DistPkgExecutor;
|
|
277
135
|
}
|
|
278
|
-
|
|
279
|
-
export { AppExecutor, DistAppExecutor, DistLibExecutor, DistPkgExecutor, Executor, LibExecutor, PkgExecutor, SysExecutor, WorkspaceExecutor };
|
|
136
|
+
export {};
|
package/src/extractDeps.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { PackageJson } from
|
|
2
|
-
|
|
3
|
-
declare const extractDependencies: (bundlePath: string, pacakgeJson: PackageJson, defaultDependencies?: string[]) => {
|
|
1
|
+
import type { PackageJson } from "./types";
|
|
2
|
+
export declare const extractDependencies: (bundlePath: string, pacakgeJson: PackageJson, defaultDependencies?: string[]) => {
|
|
4
3
|
[k: string]: string;
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export { extractDependencies };
|
package/src/getCredentials.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { AppExecutor } from
|
|
2
|
-
|
|
3
|
-
import 'child_process';
|
|
4
|
-
import './types.js';
|
|
5
|
-
|
|
6
|
-
interface AppSecret {
|
|
1
|
+
import type { AppExecutor } from "./executors";
|
|
2
|
+
export interface AppSecret {
|
|
7
3
|
mongo: {
|
|
8
4
|
account: {
|
|
9
5
|
user: {
|
|
@@ -13,6 +9,4 @@ interface AppSecret {
|
|
|
13
9
|
};
|
|
14
10
|
};
|
|
15
11
|
}
|
|
16
|
-
declare const getCredentials: (app: AppExecutor, environment: string) => AppSecret;
|
|
17
|
-
|
|
18
|
-
export { type AppSecret, getCredentials };
|
|
12
|
+
export declare const getCredentials: (app: AppExecutor, environment: string) => AppSecret;
|
package/src/getDependencies.d.ts
CHANGED
|
@@ -12,6 +12,5 @@ interface ModelFileData {
|
|
|
12
12
|
viewFilePath: string;
|
|
13
13
|
viewFileStr: string;
|
|
14
14
|
}
|
|
15
|
-
declare const getModelFileData: (modulePath: string, modelName: string) => ModelFileData;
|
|
16
|
-
|
|
17
|
-
export { getModelFileData };
|
|
15
|
+
export declare const getModelFileData: (modulePath: string, modelName: string) => ModelFileData;
|
|
16
|
+
export {};
|
package/src/getRelatedCnsts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const getRelatedCnsts: (constantFilePath: string) => {
|
|
1
|
+
export declare const getRelatedCnsts: (constantFilePath: string) => {
|
|
2
2
|
paths: Map<string, {
|
|
3
3
|
filePath: string;
|
|
4
4
|
isLibModule: boolean;
|
|
@@ -7,5 +7,3 @@ declare const getRelatedCnsts: (constantFilePath: string) => {
|
|
|
7
7
|
libName?: string;
|
|
8
8
|
}> | null;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
export { getRelatedCnsts };
|
package/src/index.d.ts
CHANGED
|
@@ -1,101 +1,18 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
import 'tunnel-ssh';
|
|
20
|
-
import 'next';
|
|
21
|
-
import 'child_process';
|
|
22
|
-
import '@trapezedev/project';
|
|
23
|
-
import '@trapezedev/project/dist/android/project';
|
|
24
|
-
import '@trapezedev/project/dist/ios/project';
|
|
25
|
-
|
|
26
|
-
type Type<T = any> = new (...args: any[]) => T;
|
|
27
|
-
|
|
28
|
-
declare const argTypes: readonly ["Option"];
|
|
29
|
-
type ArgType = (typeof argTypes)[number];
|
|
30
|
-
declare const internalArgTypes: readonly ["Workspace", "App", "Lib", "Sys", "Pkg"];
|
|
31
|
-
type InternalArgType = (typeof internalArgTypes)[number];
|
|
32
|
-
interface ArgsOption {
|
|
33
|
-
type?: "string" | "number" | "boolean";
|
|
34
|
-
flag?: string;
|
|
35
|
-
desc?: string;
|
|
36
|
-
default?: string | number | boolean;
|
|
37
|
-
nullable?: boolean;
|
|
38
|
-
example?: string | number | boolean;
|
|
39
|
-
enum?: (string | number)[] | readonly (string | number)[];
|
|
40
|
-
ask?: string;
|
|
41
|
-
}
|
|
42
|
-
interface ArgMeta {
|
|
43
|
-
name: string;
|
|
44
|
-
argsOption: ArgsOption;
|
|
45
|
-
key: string;
|
|
46
|
-
idx: number;
|
|
47
|
-
type: ArgType;
|
|
48
|
-
}
|
|
49
|
-
interface InternalArgMeta {
|
|
50
|
-
key: string;
|
|
51
|
-
idx: number;
|
|
52
|
-
type: InternalArgType;
|
|
53
|
-
option?: {
|
|
54
|
-
nullable?: boolean;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
declare const getArgMetas: (command: Type, key: string) => [(ArgMeta | InternalArgMeta)[], ArgMeta[], InternalArgMeta[]];
|
|
58
|
-
declare const Option: (name: string, argsOption?: ArgsOption) => (prototype: object, key: string, idx: number) => void;
|
|
59
|
-
declare const App: (option?: {
|
|
60
|
-
nullable?: boolean;
|
|
61
|
-
}) => (prototype: object, key: string, idx: number) => void;
|
|
62
|
-
type App = AppExecutor;
|
|
63
|
-
declare const Lib: (option?: {
|
|
64
|
-
nullable?: boolean;
|
|
65
|
-
}) => (prototype: object, key: string, idx: number) => void;
|
|
66
|
-
type Lib = LibExecutor;
|
|
67
|
-
declare const Sys: (option?: {
|
|
68
|
-
nullable?: boolean;
|
|
69
|
-
}) => (prototype: object, key: string, idx: number) => void;
|
|
70
|
-
type Sys = SysExecutor;
|
|
71
|
-
declare const Pkg: (option?: {
|
|
72
|
-
nullable?: boolean;
|
|
73
|
-
}) => (prototype: object, key: string, idx: number) => void;
|
|
74
|
-
type Pkg = PkgExecutor;
|
|
75
|
-
declare const Workspace: (option?: {
|
|
76
|
-
nullable?: boolean;
|
|
77
|
-
}) => (prototype: object, key: string, idx: number) => void;
|
|
78
|
-
type Workspace = WorkspaceExecutor;
|
|
79
|
-
|
|
80
|
-
declare const Commands: () => (target: Type) => void;
|
|
81
|
-
|
|
82
|
-
interface TargetMeta {
|
|
83
|
-
key: string;
|
|
84
|
-
descriptor: PropertyDescriptor;
|
|
85
|
-
targetOption: TargetOption;
|
|
86
|
-
}
|
|
87
|
-
declare const getTargetMetas: (command: Type) => TargetMeta[];
|
|
88
|
-
interface TargetOption {
|
|
89
|
-
type: "public" | "cloud" | "dev";
|
|
90
|
-
short?: string | true;
|
|
91
|
-
devOnly?: boolean;
|
|
92
|
-
}
|
|
93
|
-
declare const Target: {
|
|
94
|
-
Public: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
|
|
95
|
-
Cloud: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
|
|
96
|
-
Dev: (targetOption?: Omit<TargetOption, "type">) => (prototype: object, key: string, descriptor: PropertyDescriptor) => void;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
declare const runCommands: (...commands: Type[]) => Promise<void>;
|
|
100
|
-
|
|
101
|
-
export { App, AppExecutor, type ArgMeta, type ArgType, Commands, type InternalArgMeta, type InternalArgType, Lib, LibExecutor, Option, Pkg, PkgExecutor, Sys, SysExecutor, Target, type Type, Workspace, WorkspaceExecutor, argTypes, getArgMetas, getTargetMetas, internalArgTypes, runCommands };
|
|
1
|
+
export * from "./baseDevEnv";
|
|
2
|
+
export * from "./createTunnel";
|
|
3
|
+
export * from "./getCredentials";
|
|
4
|
+
export * from "./getDependencies";
|
|
5
|
+
export * from "./uploadRelease";
|
|
6
|
+
export * from "./getModelFileData";
|
|
7
|
+
export * from "./getRelatedCnsts";
|
|
8
|
+
export * from "./selectModel";
|
|
9
|
+
export * from "./streamAi";
|
|
10
|
+
export * from "./executors";
|
|
11
|
+
export * from "./dependencyScanner";
|
|
12
|
+
export * from "./constants";
|
|
13
|
+
export * from "./auth";
|
|
14
|
+
export * from "./types";
|
|
15
|
+
export * from "./capacitorApp";
|
|
16
|
+
export * from "./extractDeps";
|
|
17
|
+
export * from "./commandDecorators";
|
|
18
|
+
export * from "./installExternalLib";
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import { WorkspaceExecutor } from
|
|
2
|
-
|
|
3
|
-
import 'child_process';
|
|
4
|
-
import './types.js';
|
|
5
|
-
|
|
6
|
-
declare const installExternalLib: (libName: string, workspace: WorkspaceExecutor) => Promise<void>;
|
|
7
|
-
|
|
8
|
-
export { installExternalLib };
|
|
1
|
+
import { type WorkspaceExecutor } from "@akanjs/devkit";
|
|
2
|
+
export declare const installExternalLib: (libName: string, workspace: WorkspaceExecutor) => Promise<void>;
|