@akanjs/devkit 1.0.19 → 2.1.0-rc.0
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/aiEditor.ts +304 -0
- package/akanApp/akanApp.host.ts +393 -0
- package/akanApp/index.ts +1 -0
- package/akanConfig/akanConfig.test.ts +236 -0
- package/akanConfig/akanConfig.ts +384 -0
- package/akanConfig/index.ts +2 -0
- package/akanConfig/types.ts +23 -0
- package/applicationBuildReporter.ts +69 -0
- package/applicationBuildRunner.ts +302 -0
- package/applicationReleasePackager.ts +206 -0
- package/artifact/implicitRootLayout.ts +155 -0
- package/artifact/index.ts +1 -0
- package/artifact/routeSeedIndex.test.ts +98 -0
- package/artifact/routeSeedIndex.ts +130 -0
- package/auth.ts +41 -0
- package/builder.ts +164 -0
- package/capacitor.base.config.ts +88 -0
- package/capacitorApp.ts +440 -0
- package/commandDecorators/argMeta.ts +102 -0
- package/commandDecorators/command.ts +343 -0
- package/commandDecorators/commandBuilder.ts +224 -0
- package/commandDecorators/commandDecorators.test.ts +212 -0
- package/commandDecorators/commandMeta.ts +7 -0
- package/commandDecorators/dependencyBuilder.ts +100 -0
- package/{esm/src/commandDecorators/helpFormatter.js → commandDecorators/helpFormatter.ts} +100 -47
- package/{esm/src/commandDecorators/index.js → commandDecorators/index.ts} +4 -2
- package/commandDecorators/targetMeta.ts +31 -0
- package/commandDecorators/types.ts +10 -0
- package/constants.ts +25 -0
- package/createTunnel.ts +36 -0
- package/dependencyScanner.ts +357 -0
- package/devkitUtils.test.ts +259 -0
- package/executors.test.ts +315 -0
- package/executors.ts +1390 -0
- package/{esm/src/extractDeps.js → extractDeps.ts} +26 -20
- package/{esm/src/fileEditor.js → fileEditor.ts} +51 -32
- package/fileSys.ts +39 -0
- package/frontendBuild/allRoutesBuilder.ts +103 -0
- package/frontendBuild/buildRouteClient.test.ts +190 -0
- package/frontendBuild/clientBuildTypes.ts +114 -0
- package/frontendBuild/clientEntriesBundler.ts +303 -0
- package/frontendBuild/clientEntryDiscovery.ts +199 -0
- package/frontendBuild/csrArtifactBuilder.ts +237 -0
- package/frontendBuild/cssCompiler.ts +286 -0
- package/frontendBuild/cssImportResolver.ts +116 -0
- package/frontendBuild/fontOptimizer.ts +427 -0
- package/frontendBuild/frontendBuild.test.ts +204 -0
- package/frontendBuild/hmrChangeClassifier.ts +28 -0
- package/frontendBuild/hmrWatcher.ts +102 -0
- package/frontendBuild/index.ts +18 -0
- package/frontendBuild/pagesBundleBuilder.ts +137 -0
- package/frontendBuild/pagesEntrySourceGenerator.ts +37 -0
- package/frontendBuild/precompressArtifacts.ts +59 -0
- package/frontendBuild/routeClientBuilder.ts +290 -0
- package/frontendBuild/routesManifestArtifactSerializer.ts +62 -0
- package/frontendBuild/ssrBaseArtifactBuilder.ts +139 -0
- package/frontendBuild/vendorSpecifiers.ts +16 -0
- package/frontendBuild/watchRootResolver.ts +28 -0
- package/getCredentials.ts +19 -0
- package/getDirname.ts +3 -0
- package/getModelFileData.ts +59 -0
- package/getRelatedCnsts.ts +313 -0
- package/guideline.ts +19 -0
- package/incrementalBuilder/incrementalBuilder.host.test.ts +51 -0
- package/incrementalBuilder/incrementalBuilder.host.ts +152 -0
- package/incrementalBuilder/incrementalBuilder.proc.ts +331 -0
- package/incrementalBuilder/index.ts +1 -0
- package/{esm/src/index.js → index.ts} +28 -15
- package/lint/no-deep-internal-import.grit +25 -0
- package/lint/no-import-client-functions.grit +32 -0
- package/lint/no-import-external-library.grit +21 -0
- package/lint/no-js-private-class-method.grit +42 -0
- package/lint/no-use-client-in-server.grit +7 -0
- package/lint/non-scalar-props-restricted.grit +13 -0
- package/linter.ts +271 -0
- package/mobile/index.ts +1 -0
- package/mobile/mobileTarget.test.ts +53 -0
- package/mobile/mobileTarget.ts +88 -0
- package/package.json +48 -31
- package/prompter.ts +72 -0
- package/scanInfo.ts +606 -0
- package/selectModel.ts +11 -0
- package/{esm/src/spinner.js → spinner.ts} +22 -28
- package/{esm/src/capacitorApp.js → src/capacitorApp.ts} +82 -81
- package/sshTunnel.ts +152 -0
- package/{esm/src/streamAi.js → streamAi.ts} +18 -12
- package/transforms/barrelAnalyzer.ts +278 -0
- package/transforms/barrelImportsPlugin.ts +504 -0
- package/transforms/externalizeFrameworkPlugin.ts +185 -0
- package/transforms/index.ts +5 -0
- package/transforms/rscUseClientTransform.ts +59 -0
- package/transforms/transforms.test.ts +208 -0
- package/transforms/useClientBundlePlugin.ts +47 -0
- package/tsconfig.json +37 -0
- package/typeChecker.ts +264 -0
- package/types.ts +44 -0
- package/ui/MultiScrollList.tsx +242 -0
- package/ui/ScrollList.tsx +107 -0
- package/ui/index.ts +2 -0
- package/{esm/src/uploadRelease.js → uploadRelease.ts} +50 -34
- package/{esm/src/useStdoutDimensions.js → useStdoutDimensions.ts} +5 -5
- package/README.md +0 -1
- package/cjs/index.js +0 -21
- package/cjs/src/aiEditor.js +0 -311
- package/cjs/src/auth.js +0 -72
- package/cjs/src/builder.js +0 -114
- package/cjs/src/capacitorApp.js +0 -313
- package/cjs/src/commandDecorators/argMeta.js +0 -88
- package/cjs/src/commandDecorators/command.js +0 -324
- package/cjs/src/commandDecorators/commandMeta.js +0 -30
- package/cjs/src/commandDecorators/helpFormatter.js +0 -211
- package/cjs/src/commandDecorators/index.js +0 -31
- package/cjs/src/commandDecorators/targetMeta.js +0 -57
- package/cjs/src/commandDecorators/types.js +0 -15
- package/cjs/src/constants.js +0 -46
- package/cjs/src/createTunnel.js +0 -49
- package/cjs/src/dependencyScanner.js +0 -220
- package/cjs/src/executors.js +0 -964
- package/cjs/src/extractDeps.js +0 -103
- package/cjs/src/fileEditor.js +0 -120
- package/cjs/src/getCredentials.js +0 -44
- package/cjs/src/getDirname.js +0 -38
- package/cjs/src/getModelFileData.js +0 -66
- package/cjs/src/getRelatedCnsts.js +0 -260
- package/cjs/src/guideline.js +0 -15
- package/cjs/src/index.js +0 -65
- package/cjs/src/linter.js +0 -238
- package/cjs/src/prompter.js +0 -85
- package/cjs/src/scanInfo.js +0 -491
- package/cjs/src/selectModel.js +0 -46
- package/cjs/src/spinner.js +0 -93
- package/cjs/src/streamAi.js +0 -62
- package/cjs/src/typeChecker.js +0 -207
- package/cjs/src/types.js +0 -15
- package/cjs/src/uploadRelease.js +0 -112
- package/cjs/src/useStdoutDimensions.js +0 -43
- package/esm/index.js +0 -1
- package/esm/src/aiEditor.js +0 -282
- package/esm/src/auth.js +0 -42
- package/esm/src/builder.js +0 -81
- package/esm/src/commandDecorators/argMeta.js +0 -54
- package/esm/src/commandDecorators/command.js +0 -290
- package/esm/src/commandDecorators/commandMeta.js +0 -7
- package/esm/src/commandDecorators/targetMeta.js +0 -33
- package/esm/src/commandDecorators/types.js +0 -0
- package/esm/src/constants.js +0 -17
- package/esm/src/createTunnel.js +0 -26
- package/esm/src/dependencyScanner.js +0 -187
- package/esm/src/executors.js +0 -928
- package/esm/src/getCredentials.js +0 -11
- package/esm/src/getDirname.js +0 -5
- package/esm/src/getModelFileData.js +0 -33
- package/esm/src/getRelatedCnsts.js +0 -221
- package/esm/src/guideline.js +0 -0
- package/esm/src/linter.js +0 -205
- package/esm/src/prompter.js +0 -51
- package/esm/src/scanInfo.js +0 -455
- package/esm/src/selectModel.js +0 -13
- package/esm/src/typeChecker.js +0 -174
- package/esm/src/types.js +0 -0
- package/index.d.ts +0 -1
- package/src/aiEditor.d.ts +0 -50
- package/src/auth.d.ts +0 -9
- package/src/builder.d.ts +0 -18
- package/src/capacitorApp.d.ts +0 -39
- package/src/commandDecorators/argMeta.d.ts +0 -67
- package/src/commandDecorators/command.d.ts +0 -2
- package/src/commandDecorators/commandMeta.d.ts +0 -2
- package/src/commandDecorators/helpFormatter.d.ts +0 -3
- package/src/commandDecorators/index.d.ts +0 -6
- package/src/commandDecorators/targetMeta.d.ts +0 -19
- package/src/commandDecorators/types.d.ts +0 -1
- package/src/constants.d.ts +0 -26
- package/src/createTunnel.d.ts +0 -8
- package/src/dependencyScanner.d.ts +0 -23
- package/src/executors.d.ts +0 -296
- package/src/extractDeps.d.ts +0 -7
- package/src/fileEditor.d.ts +0 -16
- package/src/getCredentials.d.ts +0 -12
- package/src/getDirname.d.ts +0 -1
- package/src/getModelFileData.d.ts +0 -16
- package/src/getRelatedCnsts.d.ts +0 -53
- package/src/guideline.d.ts +0 -19
- package/src/index.d.ts +0 -23
- package/src/linter.d.ts +0 -109
- package/src/prompter.d.ts +0 -14
- package/src/scanInfo.d.ts +0 -82
- package/src/selectModel.d.ts +0 -1
- package/src/spinner.d.ts +0 -20
- package/src/streamAi.d.ts +0 -6
- package/src/typeChecker.d.ts +0 -52
- package/src/types.d.ts +0 -31
- package/src/uploadRelease.d.ts +0 -10
- package/src/useStdoutDimensions.d.ts +0 -1
package/src/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export * from "./createTunnel";
|
|
2
|
-
export * from "./getCredentials";
|
|
3
|
-
export * from "./uploadRelease";
|
|
4
|
-
export * from "./getModelFileData";
|
|
5
|
-
export * from "./getRelatedCnsts";
|
|
6
|
-
export * from "./selectModel";
|
|
7
|
-
export * from "./streamAi";
|
|
8
|
-
export * from "./executors";
|
|
9
|
-
export * from "./dependencyScanner";
|
|
10
|
-
export * from "./constants";
|
|
11
|
-
export * from "./auth";
|
|
12
|
-
export * from "./types";
|
|
13
|
-
export * from "./capacitorApp";
|
|
14
|
-
export * from "./extractDeps";
|
|
15
|
-
export * from "./commandDecorators";
|
|
16
|
-
export * from "./aiEditor";
|
|
17
|
-
export * from "./builder";
|
|
18
|
-
export * from "./spinner";
|
|
19
|
-
export * from "./prompter";
|
|
20
|
-
export * from "./guideline";
|
|
21
|
-
export * from "./getDirname";
|
|
22
|
-
export * from "./useStdoutDimensions";
|
|
23
|
-
export * from "./scanInfo";
|
package/src/linter.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { ESLint, type Linter as ESLintLinter } from "eslint";
|
|
2
|
-
export declare class Linter {
|
|
3
|
-
#private;
|
|
4
|
-
lintRoot: string;
|
|
5
|
-
constructor(cwdPath: string);
|
|
6
|
-
lint(filePath: string, { fix, dryRun }?: {
|
|
7
|
-
fix?: boolean;
|
|
8
|
-
dryRun?: boolean;
|
|
9
|
-
}): Promise<{
|
|
10
|
-
fixed: boolean;
|
|
11
|
-
output?: string;
|
|
12
|
-
results: ESLint.LintResult[];
|
|
13
|
-
errors: ESLintLinter.LintMessage[];
|
|
14
|
-
warnings: ESLintLinter.LintMessage[];
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* Lint a single file using ESLint
|
|
18
|
-
* @param filePath - Path to the file to lint
|
|
19
|
-
* @returns Array of ESLint results
|
|
20
|
-
*/
|
|
21
|
-
lintFile(filePath: string): Promise<{
|
|
22
|
-
fixed: boolean;
|
|
23
|
-
output?: string;
|
|
24
|
-
results: ESLint.LintResult[];
|
|
25
|
-
errors: ESLintLinter.LintMessage[];
|
|
26
|
-
warnings: ESLintLinter.LintMessage[];
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* Format lint results for console output
|
|
30
|
-
* @param results - Array of ESLint results
|
|
31
|
-
* @returns Formatted string
|
|
32
|
-
*/
|
|
33
|
-
formatLintResults(results: ESLint.LintResult[]): string;
|
|
34
|
-
/**
|
|
35
|
-
* Get detailed lint information
|
|
36
|
-
* @param filePath - Path to the file to lint
|
|
37
|
-
* @returns Object containing detailed lint information
|
|
38
|
-
*/
|
|
39
|
-
getDetailedLintInfo(filePath: string): Promise<{
|
|
40
|
-
results: ESLint.LintResult[];
|
|
41
|
-
details: {
|
|
42
|
-
line: number;
|
|
43
|
-
column: number;
|
|
44
|
-
message: string;
|
|
45
|
-
ruleId: string | null;
|
|
46
|
-
severity: "error" | "warning";
|
|
47
|
-
fix?: {
|
|
48
|
-
range: [number, number];
|
|
49
|
-
text: string;
|
|
50
|
-
};
|
|
51
|
-
suggestions?: {
|
|
52
|
-
desc: string;
|
|
53
|
-
fix: {
|
|
54
|
-
range: [number, number];
|
|
55
|
-
text: string;
|
|
56
|
-
};
|
|
57
|
-
}[];
|
|
58
|
-
}[];
|
|
59
|
-
stats: {
|
|
60
|
-
errorCount: number;
|
|
61
|
-
warningCount: number;
|
|
62
|
-
fixableErrorCount: number;
|
|
63
|
-
fixableWarningCount: number;
|
|
64
|
-
};
|
|
65
|
-
}>;
|
|
66
|
-
/**
|
|
67
|
-
* Check if a file has lint errors
|
|
68
|
-
* @param filePath - Path to the file to check
|
|
69
|
-
* @returns true if there are no errors, false otherwise
|
|
70
|
-
*/
|
|
71
|
-
hasNoLintErrors(filePath: string): Promise<boolean>;
|
|
72
|
-
/**
|
|
73
|
-
* Get only error messages (excluding warnings)
|
|
74
|
-
* @param filePath - Path to the file to lint
|
|
75
|
-
* @returns Array of error messages
|
|
76
|
-
*/
|
|
77
|
-
getErrors(filePath: string): Promise<ESLintLinter.LintMessage[]>;
|
|
78
|
-
/**
|
|
79
|
-
* Get only warning messages
|
|
80
|
-
* @param filePath - Path to the file to lint
|
|
81
|
-
* @returns Array of warning messages
|
|
82
|
-
*/
|
|
83
|
-
getWarnings(filePath: string): Promise<ESLintLinter.LintMessage[]>;
|
|
84
|
-
/**
|
|
85
|
-
* Fix lint errors automatically
|
|
86
|
-
* @param filePath - Path to the file to fix
|
|
87
|
-
* @param dryRun - If true, returns the fixed content without writing to file
|
|
88
|
-
* @returns Fixed content and remaining issues
|
|
89
|
-
*/
|
|
90
|
-
fixFile(filePath: string, dryRun?: boolean): Promise<{
|
|
91
|
-
fixed: boolean;
|
|
92
|
-
output?: string;
|
|
93
|
-
results: ESLint.LintResult[];
|
|
94
|
-
errors: ESLintLinter.LintMessage[];
|
|
95
|
-
warnings: ESLintLinter.LintMessage[];
|
|
96
|
-
}>;
|
|
97
|
-
/**
|
|
98
|
-
* Get ESLint configuration for a file
|
|
99
|
-
* @param filePath - Path to the file
|
|
100
|
-
* @returns ESLint configuration object
|
|
101
|
-
*/
|
|
102
|
-
getConfigForFile(filePath: string): Promise<unknown>;
|
|
103
|
-
/**
|
|
104
|
-
* Get rules that are causing errors in a file
|
|
105
|
-
* @param filePath - Path to the file to check
|
|
106
|
-
* @returns Object mapping rule IDs to their error counts
|
|
107
|
-
*/
|
|
108
|
-
getProblematicRules(filePath: string): Promise<Record<string, number>>;
|
|
109
|
-
}
|
package/src/prompter.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { GuideGenerateJson } from "./guideline";
|
|
2
|
-
interface FileUpdateRequestProps {
|
|
3
|
-
context: string;
|
|
4
|
-
request: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class Prompter {
|
|
7
|
-
static selectGuideline(): Promise<string>;
|
|
8
|
-
static getGuideJson(guideName: string): Promise<GuideGenerateJson>;
|
|
9
|
-
static getInstruction(guideName: string): Promise<string>;
|
|
10
|
-
static getUpdateRequest(guideName: string): Promise<string>;
|
|
11
|
-
makeTsFileUpdatePrompt({ context, request }: FileUpdateRequestProps): Promise<string>;
|
|
12
|
-
getDocumentation(guideName: string): Promise<string>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
package/src/scanInfo.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { type AppConfigResult, type AppScanResult, type LibConfigResult, type LibScanResult, type PkgScanResult, type ScanResult } from "@akanjs/config";
|
|
2
|
-
import { AppExecutor, LibExecutor, PkgExecutor, type WorkspaceExecutor } from "./executors";
|
|
3
|
-
declare const databaseFileTypes: readonly ["constant", "dictionary", "document", "service", "signal", "store", "template", "unit", "util", "view", "zone"];
|
|
4
|
-
type DatabaseFileType = (typeof databaseFileTypes)[number];
|
|
5
|
-
declare class ScanInfo {
|
|
6
|
-
protected scanResult: ScanResult;
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly scalar: Map<string, Set<"constant" | "dictionary" | "document" | "template" | "unit" | "util" | "view" | "zone">>;
|
|
9
|
-
readonly service: Map<string, Set<"dictionary" | "template" | "unit" | "util" | "view" | "zone" | "service" | "signal" | "store">>;
|
|
10
|
-
readonly database: Map<string, Set<"constant" | "dictionary" | "document" | "template" | "unit" | "util" | "view" | "zone" | "service" | "signal" | "store">>;
|
|
11
|
-
readonly file: { [key in DatabaseFileType]: {
|
|
12
|
-
all: Set<string>;
|
|
13
|
-
databases: Set<string>;
|
|
14
|
-
services: Set<string>;
|
|
15
|
-
scalars: Set<string>;
|
|
16
|
-
}; };
|
|
17
|
-
static getScanResult(exec: AppExecutor | LibExecutor): Promise<LibScanResult>;
|
|
18
|
-
constructor(scanResult: ScanResult);
|
|
19
|
-
getScanResult(): ScanResult;
|
|
20
|
-
getDatabaseModules(): string[];
|
|
21
|
-
getServiceModules(): string[];
|
|
22
|
-
getScalarModules(): string[];
|
|
23
|
-
}
|
|
24
|
-
export declare class AppInfo extends ScanInfo {
|
|
25
|
-
#private;
|
|
26
|
-
readonly type = "app";
|
|
27
|
-
readonly exec: AppExecutor;
|
|
28
|
-
readonly akanConfig: AppConfigResult;
|
|
29
|
-
readonly libDeps: string[];
|
|
30
|
-
static appInfos: Map<string, AppInfo>;
|
|
31
|
-
static fromExecutor(exec: AppExecutor, options?: {
|
|
32
|
-
refresh?: boolean;
|
|
33
|
-
}): Promise<AppInfo>;
|
|
34
|
-
constructor(exec: AppExecutor, scanResult: AppScanResult, libDeps: string[]);
|
|
35
|
-
getScanResult(): AppScanResult;
|
|
36
|
-
getLibs(): string[];
|
|
37
|
-
getLibInfos(): Map<string, LibInfo>;
|
|
38
|
-
}
|
|
39
|
-
export declare class LibInfo extends ScanInfo {
|
|
40
|
-
#private;
|
|
41
|
-
readonly type = "lib";
|
|
42
|
-
readonly exec: LibExecutor;
|
|
43
|
-
readonly akanConfig: LibConfigResult;
|
|
44
|
-
static loadedLibs: Set<string>;
|
|
45
|
-
static readonly libInfos: Map<string, LibInfo>;
|
|
46
|
-
static getSortedLibIndices(): Map<string, number>;
|
|
47
|
-
static fromExecutor(exec: LibExecutor, { refresh }?: {
|
|
48
|
-
refresh?: boolean;
|
|
49
|
-
}): Promise<LibInfo>;
|
|
50
|
-
constructor(exec: LibExecutor, scanResult: LibScanResult);
|
|
51
|
-
getScanResult(): LibScanResult;
|
|
52
|
-
getLibs(): string[];
|
|
53
|
-
getLibInfo(libName: string): LibInfo | undefined;
|
|
54
|
-
getLibInfos(): Map<string, LibInfo>;
|
|
55
|
-
}
|
|
56
|
-
export declare class PkgInfo {
|
|
57
|
-
#private;
|
|
58
|
-
readonly exec: PkgExecutor;
|
|
59
|
-
readonly name: string;
|
|
60
|
-
private scanResult;
|
|
61
|
-
static getScanResult(exec: PkgExecutor): Promise<{
|
|
62
|
-
name: string;
|
|
63
|
-
pkgDeps: string[];
|
|
64
|
-
dependencies: string[];
|
|
65
|
-
}>;
|
|
66
|
-
static fromExecutor(exec: PkgExecutor, options?: {
|
|
67
|
-
refresh?: boolean;
|
|
68
|
-
}): Promise<PkgInfo>;
|
|
69
|
-
constructor(exec: PkgExecutor, scanResult: PkgScanResult);
|
|
70
|
-
getScanResult(): PkgScanResult;
|
|
71
|
-
}
|
|
72
|
-
export declare class WorkspaceInfo {
|
|
73
|
-
#private;
|
|
74
|
-
readonly appInfos: Map<string, AppInfo>;
|
|
75
|
-
readonly libInfos: Map<string, LibInfo>;
|
|
76
|
-
readonly pkgInfos: Map<string, PkgInfo>;
|
|
77
|
-
constructor(appInfos?: Map<string, AppInfo>, libInfos?: Map<string, LibInfo>, pkgInfos?: Map<string, PkgInfo>);
|
|
78
|
-
static fromExecutor(exec: WorkspaceExecutor, options?: {
|
|
79
|
-
refresh?: boolean;
|
|
80
|
-
}): Promise<WorkspaceInfo>;
|
|
81
|
-
}
|
|
82
|
-
export {};
|
package/src/selectModel.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const selectModel: (modulePath: string) => Promise<string>;
|
package/src/spinner.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import ora from "ora";
|
|
2
|
-
export declare class Spinner {
|
|
3
|
-
#private;
|
|
4
|
-
static padding: number;
|
|
5
|
-
spinner: ora.Ora;
|
|
6
|
-
stopWatch: NodeJS.Timeout | null;
|
|
7
|
-
startAt: Date;
|
|
8
|
-
prefix: string;
|
|
9
|
-
message: string;
|
|
10
|
-
enableSpin: boolean;
|
|
11
|
-
constructor(message: string, { prefix, indent, enableSpin }?: {
|
|
12
|
-
prefix?: string | undefined;
|
|
13
|
-
indent?: number | undefined;
|
|
14
|
-
enableSpin?: boolean | undefined;
|
|
15
|
-
});
|
|
16
|
-
start(): this;
|
|
17
|
-
succeed(message: string): void;
|
|
18
|
-
fail(message: string): void;
|
|
19
|
-
isSpinning(): boolean;
|
|
20
|
-
}
|
package/src/streamAi.d.ts
DELETED
package/src/typeChecker.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as ts from "typescript";
|
|
2
|
-
import type { Executor } from "./executors";
|
|
3
|
-
export declare class TypeChecker {
|
|
4
|
-
#private;
|
|
5
|
-
readonly configPath: string;
|
|
6
|
-
readonly configFile: {
|
|
7
|
-
config?: any;
|
|
8
|
-
error?: ts.Diagnostic;
|
|
9
|
-
};
|
|
10
|
-
readonly config: ts.ParsedCommandLine;
|
|
11
|
-
constructor(executor: Executor);
|
|
12
|
-
/**
|
|
13
|
-
* Type-check a single TypeScript file
|
|
14
|
-
* @param filePath - Path to the TypeScript file to check
|
|
15
|
-
* @returns Array of diagnostic messages
|
|
16
|
-
*/
|
|
17
|
-
check(filePath: string): {
|
|
18
|
-
diagnostics: ts.Diagnostic[];
|
|
19
|
-
errors: ts.Diagnostic[];
|
|
20
|
-
warnings: ts.Diagnostic[];
|
|
21
|
-
fileDiagnostics: ts.Diagnostic[];
|
|
22
|
-
fileErrors: ts.Diagnostic[];
|
|
23
|
-
fileWarnings: ts.Diagnostic[];
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Format diagnostics for console output
|
|
27
|
-
* @param diagnostics - Array of TypeScript diagnostics
|
|
28
|
-
* @returns Formatted string
|
|
29
|
-
*/
|
|
30
|
-
formatDiagnostics(diagnostics: ts.Diagnostic[]): string;
|
|
31
|
-
/**
|
|
32
|
-
* Get detailed diagnostic information with code snippet
|
|
33
|
-
* @param filePath - Path to the TypeScript file to check
|
|
34
|
-
* @returns Object containing diagnostics and detailed information
|
|
35
|
-
*/
|
|
36
|
-
getDetailedDiagnostics(filePath: string): {
|
|
37
|
-
diagnostics: ts.Diagnostic[];
|
|
38
|
-
details: {
|
|
39
|
-
line: number;
|
|
40
|
-
column: number;
|
|
41
|
-
message: string;
|
|
42
|
-
code: number;
|
|
43
|
-
codeSnippet?: string;
|
|
44
|
-
}[];
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Check if a file has type errors
|
|
48
|
-
* @param filePath - Path to the TypeScript file to check
|
|
49
|
-
* @returns true if there are no type errors, false otherwise
|
|
50
|
-
*/
|
|
51
|
-
hasNoTypeErrors(filePath: string): boolean;
|
|
52
|
-
}
|
package/src/types.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface PackageJson {
|
|
2
|
-
name: string;
|
|
3
|
-
type?: "module" | "commonjs";
|
|
4
|
-
version: string;
|
|
5
|
-
main?: string;
|
|
6
|
-
description: string;
|
|
7
|
-
scripts?: Record<string, string>;
|
|
8
|
-
dependencies?: Record<string, string>;
|
|
9
|
-
devDependencies?: Record<string, string>;
|
|
10
|
-
peerDependencies?: Record<string, string>;
|
|
11
|
-
engines?: Record<string, string>;
|
|
12
|
-
exports?: Record<string, Record<string, string>>;
|
|
13
|
-
esbuild?: {
|
|
14
|
-
platform?: "node" | "browser" | "neutral";
|
|
15
|
-
};
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
export interface TsConfigJson {
|
|
19
|
-
extends?: string;
|
|
20
|
-
compilerOptions: {
|
|
21
|
-
target: string;
|
|
22
|
-
paths?: Record<string, string[]>;
|
|
23
|
-
};
|
|
24
|
-
references?: {
|
|
25
|
-
path: string;
|
|
26
|
-
}[];
|
|
27
|
-
}
|
|
28
|
-
export interface FileContent {
|
|
29
|
-
filePath: string;
|
|
30
|
-
content: string;
|
|
31
|
-
}
|
package/src/uploadRelease.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const uploadRelease: (appName: string, { workspaceRoot, environment, buildNum, platformVersion, os, local, }: {
|
|
2
|
-
workspaceRoot: string;
|
|
3
|
-
environment: string;
|
|
4
|
-
buildNum: number;
|
|
5
|
-
platformVersion?: string;
|
|
6
|
-
os?: "android" | "ios";
|
|
7
|
-
local?: boolean;
|
|
8
|
-
}) => Promise<{
|
|
9
|
-
id: string;
|
|
10
|
-
} | null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStdoutDimensions: () => [number, number];
|