@akanjs/cli 0.0.91 → 0.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +24 -0
  2. package/index.js +101 -86
  3. package/package.json +1 -1
  4. package/{pkgs/@akanjs/cli/src → src}/application/application.command.d.ts +7 -7
  5. package/{pkgs/@akanjs/cli/src → src}/application/application.runner.d.ts +5 -5
  6. package/{pkgs/@akanjs/cli/src → src}/application/application.script.d.ts +8 -8
  7. package/pkgs/@akanjs/common/Logger.d.ts +0 -28
  8. package/pkgs/@akanjs/common/applyMixins.d.ts +0 -3
  9. package/pkgs/@akanjs/common/capitalize.d.ts +0 -1
  10. package/pkgs/@akanjs/common/deepObjectify.d.ts +0 -4
  11. package/pkgs/@akanjs/common/index.d.ts +0 -18
  12. package/pkgs/@akanjs/common/isDayjs.d.ts +0 -2
  13. package/pkgs/@akanjs/common/isQueryEqual.d.ts +0 -1
  14. package/pkgs/@akanjs/common/isValidDate.d.ts +0 -2
  15. package/pkgs/@akanjs/common/lowerlize.d.ts +0 -1
  16. package/pkgs/@akanjs/common/mergeVersion.d.ts +0 -10
  17. package/pkgs/@akanjs/common/objectify.d.ts +0 -1
  18. package/pkgs/@akanjs/common/pathGet.d.ts +0 -1
  19. package/pkgs/@akanjs/common/pathSet.d.ts +0 -1
  20. package/pkgs/@akanjs/common/pluralize.d.ts +0 -2
  21. package/pkgs/@akanjs/common/randomPick.d.ts +0 -1
  22. package/pkgs/@akanjs/common/randomPicks.d.ts +0 -1
  23. package/pkgs/@akanjs/common/sleep.d.ts +0 -1
  24. package/pkgs/@akanjs/common/splitVersion.d.ts +0 -11
  25. package/pkgs/@akanjs/common/types.d.ts +0 -15
  26. package/pkgs/@akanjs/config/index.d.ts +0 -3
  27. package/pkgs/@akanjs/config/src/akanConfig.d.ts +0 -7
  28. package/pkgs/@akanjs/config/src/nextConfig.d.ts +0 -14
  29. package/pkgs/@akanjs/config/src/types.d.ts +0 -135
  30. package/pkgs/@akanjs/devkit/index.d.ts +0 -1
  31. package/pkgs/@akanjs/devkit/src/aiEditor.d.ts +0 -31
  32. package/pkgs/@akanjs/devkit/src/auth.d.ts +0 -9
  33. package/pkgs/@akanjs/devkit/src/capacitorApp.d.ts +0 -21
  34. package/pkgs/@akanjs/devkit/src/commandDecorators/argMeta.d.ts +0 -55
  35. package/pkgs/@akanjs/devkit/src/commandDecorators/command.d.ts +0 -2
  36. package/pkgs/@akanjs/devkit/src/commandDecorators/commandMeta.d.ts +0 -2
  37. package/pkgs/@akanjs/devkit/src/commandDecorators/index.d.ts +0 -5
  38. package/pkgs/@akanjs/devkit/src/commandDecorators/targetMeta.d.ts +0 -18
  39. package/pkgs/@akanjs/devkit/src/commandDecorators/types.d.ts +0 -1
  40. package/pkgs/@akanjs/devkit/src/constants.d.ts +0 -26
  41. package/pkgs/@akanjs/devkit/src/createTunnel.d.ts +0 -8
  42. package/pkgs/@akanjs/devkit/src/dependencyScanner.d.ts +0 -8
  43. package/pkgs/@akanjs/devkit/src/executors.d.ts +0 -166
  44. package/pkgs/@akanjs/devkit/src/extractDeps.d.ts +0 -6
  45. package/pkgs/@akanjs/devkit/src/getCredentials.d.ts +0 -12
  46. package/pkgs/@akanjs/devkit/src/getModelFileData.d.ts +0 -16
  47. package/pkgs/@akanjs/devkit/src/getRelatedCnsts.d.ts +0 -53
  48. package/pkgs/@akanjs/devkit/src/index.d.ts +0 -16
  49. package/pkgs/@akanjs/devkit/src/selectModel.d.ts +0 -1
  50. package/pkgs/@akanjs/devkit/src/streamAi.d.ts +0 -6
  51. package/pkgs/@akanjs/devkit/src/types.d.ts +0 -20
  52. package/pkgs/@akanjs/devkit/src/uploadRelease.d.ts +0 -9
  53. /package/{pkgs/@akanjs/cli/index.d.ts → index.d.ts} +0 -0
  54. /package/{pkgs/@akanjs/cli/src → src}/application/application.prompt.d.ts +0 -0
  55. /package/{pkgs/@akanjs/cli/src → src}/cloud/cloud.command.d.ts +0 -0
  56. /package/{pkgs/@akanjs/cli/src → src}/cloud/cloud.runner.d.ts +0 -0
  57. /package/{pkgs/@akanjs/cli/src → src}/cloud/cloud.script.d.ts +0 -0
  58. /package/{pkgs/@akanjs/cli/src → src}/library/library.command.d.ts +0 -0
  59. /package/{pkgs/@akanjs/cli/src → src}/library/library.runner.d.ts +0 -0
  60. /package/{pkgs/@akanjs/cli/src → src}/library/library.script.d.ts +0 -0
  61. /package/{pkgs/@akanjs/cli/src → src}/module/module.command.d.ts +0 -0
  62. /package/{pkgs/@akanjs/cli/src → src}/module/module.prompt.d.ts +0 -0
  63. /package/{pkgs/@akanjs/cli/src → src}/module/module.runner.d.ts +0 -0
  64. /package/{pkgs/@akanjs/cli/src → src}/module/module.script.d.ts +0 -0
  65. /package/{pkgs/@akanjs/cli/src → src}/package/package.command.d.ts +0 -0
  66. /package/{pkgs/@akanjs/cli/src → src}/package/package.runner.d.ts +0 -0
  67. /package/{pkgs/@akanjs/cli/src → src}/package/package.script.d.ts +0 -0
  68. /package/{pkgs/@akanjs/cli/src → src}/page/page.command.d.ts +0 -0
  69. /package/{pkgs/@akanjs/cli/src → src}/page/page.runner.d.ts +0 -0
  70. /package/{pkgs/@akanjs/cli/src → src}/page/page.script.d.ts +0 -0
  71. /package/{pkgs/@akanjs/cli/src → src}/workspace/workspace.command.d.ts +0 -0
  72. /package/{pkgs/@akanjs/cli/src → src}/workspace/workspace.runner.d.ts +0 -0
  73. /package/{pkgs/@akanjs/cli/src → src}/workspace/workspace.script.d.ts +0 -0
@@ -4,8 +4,8 @@ import { type ReleaseSourceOptions } from "./application.runner";
4
4
  export declare class ApplicationScript {
5
5
  #private;
6
6
  libraryScript: LibraryScript;
7
- createApplication(appName: string, workspace: Workspace, { serve }?: {
8
- serve?: boolean;
7
+ createApplication(appName: string, workspace: Workspace, { start }?: {
8
+ start?: boolean;
9
9
  }): Promise<void>;
10
10
  removeApplication(app: App): Promise<void>;
11
11
  scanApplication(app: App, verbose?: boolean): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
@@ -13,20 +13,20 @@ export declare class ApplicationScript {
13
13
  recursive?: boolean;
14
14
  }): Promise<void>;
15
15
  build(app: App): Promise<void>;
16
- serve(app: App, { open }?: {
16
+ start(app: App, { open }?: {
17
17
  open?: boolean;
18
18
  }): Promise<void>;
19
19
  buildBackend(app: App, { sync }?: {
20
20
  sync?: boolean;
21
21
  }): Promise<void>;
22
- serveBackend(app: App, { open, sync }?: {
22
+ startBackend(app: App, { open, sync }?: {
23
23
  open?: boolean;
24
24
  sync?: boolean;
25
25
  }): Promise<void>;
26
26
  buildFrontend(app: App, { sync }?: {
27
27
  sync?: boolean;
28
28
  }): Promise<void>;
29
- serveFrontend(app: App, { open, turbo, sync }?: {
29
+ startFrontend(app: App, { open, turbo, sync }?: {
30
30
  open?: boolean;
31
31
  turbo?: boolean;
32
32
  sync?: boolean;
@@ -34,14 +34,14 @@ export declare class ApplicationScript {
34
34
  buildCsr(app: App, { sync }?: {
35
35
  sync?: boolean;
36
36
  }): Promise<void>;
37
- serveCsr(app: App, { open, sync }?: {
37
+ startCsr(app: App, { open, sync }?: {
38
38
  open?: boolean;
39
39
  sync?: boolean;
40
40
  }): Promise<void>;
41
41
  buildIos(app: App, { sync }?: {
42
42
  sync?: boolean;
43
43
  }): Promise<void>;
44
- serveIos(app: App, { open, operation, sync, }?: {
44
+ startIos(app: App, { open, operation, sync, }?: {
45
45
  open?: boolean;
46
46
  operation?: "local" | "release";
47
47
  sync?: boolean;
@@ -52,7 +52,7 @@ export declare class ApplicationScript {
52
52
  buildAndroid(app: App, { sync }?: {
53
53
  sync?: boolean;
54
54
  }): Promise<void>;
55
- serveAndroid(app: App, { open, operation, sync, }?: {
55
+ startAndroid(app: App, { open, operation, sync, }?: {
56
56
  open?: boolean;
57
57
  operation?: "local" | "release";
58
58
  sync?: boolean;
@@ -1,28 +0,0 @@
1
- declare const logLevels: readonly ["trace", "verbose", "debug", "log", "info", "warn", "error"];
2
- type LogLevel = (typeof logLevels)[number];
3
- export declare class Logger {
4
- #private;
5
- static level: LogLevel;
6
- static setLevel(level: LogLevel): void;
7
- name?: string;
8
- constructor(name?: string);
9
- trace(msg: string, context?: string): void;
10
- verbose(msg: string, context?: string): void;
11
- debug(msg: string, context?: string): void;
12
- log(msg: string, context?: string): void;
13
- info(msg: string, context?: string): void;
14
- warn(msg: string, context?: string): void;
15
- error(msg: string, context?: string): void;
16
- raw(msg: string, method?: "console" | "process"): void;
17
- rawLog(msg: string, method?: "console" | "process"): void;
18
- static trace(msg: string, context?: string): void;
19
- static verbose(msg: string, context?: string): void;
20
- static debug(msg: string, context?: string): void;
21
- static log(msg: string, context?: string): void;
22
- static info(msg: string, context?: string): void;
23
- static warn(msg: string, context?: string): void;
24
- static error(msg: string, context?: string): void;
25
- static rawLog(msg: string, method?: "console" | "process"): void;
26
- static raw(msg: string, method?: "console" | "process"): void;
27
- }
28
- export {};
@@ -1,3 +0,0 @@
1
- type Type<T = any> = new (...args: any[]) => T;
2
- export declare const applyMixins: (derivedCtor: Type, constructors: (Type | undefined)[], avoidKeys?: Set<string>) => void;
3
- export {};
@@ -1 +0,0 @@
1
- export declare const capitalize: (str: string) => string;
@@ -1,4 +0,0 @@
1
- export declare const deepObjectify: <T = any>(obj: T | null | undefined, option?: {
2
- serializable?: boolean;
3
- convertDate?: "string" | "number";
4
- }) => T;
@@ -1,18 +0,0 @@
1
- export type * from "./types";
2
- export { splitVersion } from "./splitVersion";
3
- export { deepObjectify } from "./deepObjectify";
4
- export { pathGet } from "./pathGet";
5
- export { isQueryEqual } from "./isQueryEqual";
6
- export { isValidDate } from "./isValidDate";
7
- export { objectify } from "./objectify";
8
- export { randomPick } from "./randomPick";
9
- export { randomPicks } from "./randomPicks";
10
- export { pathSet } from "./pathSet";
11
- export { isDayjs } from "./isDayjs";
12
- export { mergeVersion } from "./mergeVersion";
13
- export { pluralize } from "./pluralize";
14
- export { applyMixins } from "./applyMixins";
15
- export { capitalize } from "./capitalize";
16
- export { Logger } from "./Logger";
17
- export { lowerlize } from "./lowerlize";
18
- export { sleep } from "./sleep";
@@ -1,2 +0,0 @@
1
- import { isDayjs } from "dayjs";
2
- export { isDayjs };
@@ -1 +0,0 @@
1
- export declare const isQueryEqual: (value1: object | null, value2: object | null) => boolean;
@@ -1,2 +0,0 @@
1
- import { Dayjs } from "dayjs";
2
- export declare const isValidDate: (d: string | Date | Dayjs) => boolean;
@@ -1 +0,0 @@
1
- export declare const lowerlize: (str: string) => string;
@@ -1,10 +0,0 @@
1
- /**
2
- *
3
- * semantic version 규격에 맞게 조합하는 함수
4
- * https://semver.org/
5
- * @param major 릴리즈(플랫폼(google,apple,etc...)에 올라가 있는) 버전
6
- * @param minor 릴리즈(플랫폼(google,apple,etc...)에 올라가 있는) 버전
7
- * @param patch 코드푸시 (Framework 자체 버전)
8
- * @returns `major.minor.patch` 형식으로 조합된 버전
9
- */
10
- export declare const mergeVersion: (major: number, minor: number, patch: number) => string;
@@ -1 +0,0 @@
1
- export declare const objectify: (obj: any, keys?: string[]) => any;
@@ -1 +0,0 @@
1
- export declare const pathGet: (path: string | (string | number)[], obj: any, separator?: string) => unknown;
@@ -1 +0,0 @@
1
- export declare const pathSet: (obj: any, path: any, value: any) => any;
@@ -1,2 +0,0 @@
1
- import pluralize from "pluralize";
2
- export { pluralize };
@@ -1 +0,0 @@
1
- export declare const randomPick: <T = any>(arr: T[] | readonly T[]) => T;
@@ -1 +0,0 @@
1
- export declare const randomPicks: <T>(arr: T[] | readonly T[], count?: number, allowDuplicate?: boolean) => T[];
@@ -1 +0,0 @@
1
- export declare const sleep: (ms: number) => Promise<unknown>;
@@ -1,11 +0,0 @@
1
- /**
2
- *
3
- * semantic version 규격에 맞게 major, minor, patch로 나누는 함수
4
- * https://semver.org/
5
- * @params version `major.minor.patch` 형식으로 조합된 버전
6
- */
7
- export declare const splitVersion: (version: string) => {
8
- major: string;
9
- minor: string;
10
- patch: string;
11
- };
@@ -1,15 +0,0 @@
1
- import type { RequestPolicy } from "@urql/core";
2
- export interface FetchPolicy<Returns = any> {
3
- cache?: boolean | number | RequestPolicy;
4
- crystalize?: boolean;
5
- url?: string;
6
- onError?: (error: string) => void;
7
- token?: string;
8
- partial?: string[];
9
- transport?: "udp" | "websocket" | "graphql" | "restapi";
10
- }
11
- export type SnakeCase<S extends string> = S extends `${infer T}_${infer U}` ? `${Lowercase<T>}_${SnakeCase<U>}` : S;
12
- export type SnakeCaseObj<T> = {
13
- [K in keyof T as SnakeCase<K & string>]: T[K] extends object ? SnakeCaseObj<T[K]> : T[K];
14
- };
15
- export type SnakeMsg<Msg> = SnakeCaseObj<Msg>;
@@ -1,3 +0,0 @@
1
- export * from "./src/akanConfig";
2
- export * from "./src/nextConfig";
3
- export * from "./src/types";
@@ -1,7 +0,0 @@
1
- import type { AppConfig, AppConfigResult, DeepPartial, LibConfigResult, RunnerProps } from "@akanjs/config";
2
- import type { NextConfig } from "next";
3
- export declare const makeAppConfig: (config: DeepPartial<AppConfigResult>, props: RunnerProps) => AppConfigResult;
4
- export declare const getAppConfig: (appRoot: string, props: RunnerProps) => Promise<AppConfigResult>;
5
- export declare const makeLibConfig: (config: DeepPartial<LibConfigResult>, props: RunnerProps) => LibConfigResult;
6
- export declare const getLibConfig: (libRoot: string, props: RunnerProps) => Promise<LibConfigResult>;
7
- export declare const getNextConfig: (configImp: AppConfig, appData: any) => NextConfig | (() => Promise<NextConfig> | NextConfig);
@@ -1,14 +0,0 @@
1
- import type { NextConfig } from "next";
2
- export type NextConfigFn = (phase: string, context?: any) => Promise<NextConfig> | NextConfig;
3
- export type NextPlugin = (config: NextConfig) => NextConfig;
4
- export type NextPluginThatReturnsConfigFn = (config: NextConfig) => NextConfigFn;
5
- export declare const composePlugins: (...plugins: (NextPlugin | NextPluginThatReturnsConfigFn)[]) => ((baseConfig: NextConfig) => NextConfigFn);
6
- export declare const withBase: (appName: string, config: NextConfig, libs: string[], routes?: {
7
- basePath?: string;
8
- domains: {
9
- main?: string[];
10
- develop?: string[];
11
- debug?: string[];
12
- };
13
- }[]) => NextConfigFn;
14
- export declare const defaultNextConfigFile = "import \"tsconfig-paths/register\";\n\nimport { getNextConfig } from \"@akanjs/config\";\n\nimport appInfo from \"./akan.app.json\";\nimport config from \"./akan.config\";\n\nexport default getNextConfig(config, appInfo);\n";
@@ -1,135 +0,0 @@
1
- import type { NextConfig } from "next";
2
- export interface RunnerProps {
3
- type: "app" | "lib";
4
- name: string;
5
- repoName: string;
6
- serveDomain: string;
7
- env: "testing" | "local" | "debug" | "develop" | "main";
8
- command?: string;
9
- }
10
- export type Arch = "amd64" | "arm64";
11
- export type ExplicitDependencies = string[] | {
12
- [key in Arch]: string[];
13
- };
14
- export interface AppConfigResult {
15
- rootLib?: string;
16
- libs: string[];
17
- backend: {
18
- dockerfile: string;
19
- explicitDependencies: ExplicitDependencies;
20
- };
21
- frontend: {
22
- dockerfile: string;
23
- nextConfig: NextConfig | (() => Promise<NextConfig> | NextConfig);
24
- routes?: {
25
- basePath?: string;
26
- domains: {
27
- main?: string[];
28
- develop?: string[];
29
- debug?: string[];
30
- };
31
- }[];
32
- explicitDependencies: ExplicitDependencies;
33
- };
34
- }
35
- export interface LibConfigResult {
36
- rootLib?: string;
37
- libs: string[];
38
- backend: {
39
- explicitDependencies: ExplicitDependencies;
40
- };
41
- frontend: {
42
- explicitDependencies: ExplicitDependencies;
43
- };
44
- }
45
- export type DeepPartial<T> = {
46
- [P in keyof T]?: T[P] extends any[] ? T[P] : T[P] extends object ? DeepPartial<T[P]> : T[P];
47
- };
48
- export type AppConfig = DeepPartial<AppConfigResult> | ((props: RunnerProps) => DeepPartial<AppConfigResult>);
49
- export type LibConfig = DeepPartial<LibConfigResult> | ((props: RunnerProps) => DeepPartial<LibConfigResult>);
50
- export interface AkanConfigFile {
51
- default: NextConfig;
52
- }
53
- export interface FileConventionScanResult {
54
- constants: {
55
- databases: string[];
56
- scalars: string[];
57
- };
58
- dictionary: {
59
- databases: string[];
60
- services: string[];
61
- scalars: string[];
62
- };
63
- documents: {
64
- databases: string[];
65
- scalars: string[];
66
- };
67
- services: {
68
- databases: string[];
69
- services: string[];
70
- scalars: string[];
71
- };
72
- signal: {
73
- databases: string[];
74
- services: string[];
75
- scalars: string[];
76
- };
77
- store: {
78
- databases: string[];
79
- services: string[];
80
- scalars: string[];
81
- };
82
- components: {
83
- databases: string[];
84
- services: string[];
85
- scalars: string[];
86
- };
87
- }
88
- export declare const getDefaultFileScan: () => FileConventionScanResult;
89
- export interface AppScanResult {
90
- name: string;
91
- type: "app" | "lib";
92
- repoName: string;
93
- serveDomain: string;
94
- akanConfig: AppConfigResult;
95
- files: FileConventionScanResult;
96
- libDeps: string[];
97
- pkgDeps: string[];
98
- dependencies: string[];
99
- libs: {
100
- [key: string]: LibScanResult;
101
- };
102
- }
103
- export interface LibScanResult {
104
- name: string;
105
- type: "app" | "lib";
106
- repoName: string;
107
- serveDomain: string;
108
- akanConfig: LibConfigResult;
109
- files: FileConventionScanResult;
110
- libDeps: string[];
111
- pkgDeps: string[];
112
- dependencies: string[];
113
- libs: {
114
- [key: string]: LibScanResult;
115
- };
116
- }
117
- export interface PkgScanResult {
118
- name: string;
119
- pkgDeps: string[];
120
- dependencies: string[];
121
- }
122
- export interface WorkspaceScanResult {
123
- appNames: string[];
124
- libNames: string[];
125
- pkgNames: string[];
126
- apps: {
127
- [key: string]: AppScanResult;
128
- };
129
- libs: {
130
- [key: string]: LibScanResult;
131
- };
132
- pkgs: {
133
- [key: string]: PkgScanResult;
134
- };
135
- }
@@ -1 +0,0 @@
1
- export * from "./src";
@@ -1,31 +0,0 @@
1
- import { BaseMessage } from "@langchain/core/messages";
2
- export declare const supportedLlmModels: readonly ["deepseek-chat", "deepseek-reasoner"];
3
- export type SupportedLlmModel = (typeof supportedLlmModels)[number];
4
- interface EditOptions {
5
- onChunk?: (chunk: string) => void;
6
- maxTry?: number;
7
- }
8
- export declare class AiSession {
9
- #private;
10
- static init({ temperature, useExisting }?: {
11
- temperature?: number;
12
- useExisting?: boolean;
13
- }): Promise<typeof AiSession>;
14
- static getLlmConfig(): {
15
- model: SupportedLlmModel;
16
- apiKey: string;
17
- } | null;
18
- static setLlmConfig(llmConfig: {
19
- model: SupportedLlmModel;
20
- apiKey: string;
21
- } | null): typeof AiSession;
22
- readonly messageHistory: BaseMessage[];
23
- constructor(messageHistory?: BaseMessage[]);
24
- ask(question: string, { onChunk, }?: EditOptions): Promise<{
25
- content: string;
26
- messageHistory: BaseMessage[];
27
- }>;
28
- edit(question: string, { onChunk, maxTry }?: EditOptions): Promise<string>;
29
- editTypescript(question: string, options?: EditOptions): Promise<string>;
30
- }
31
- export {};
@@ -1,9 +0,0 @@
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<{
7
- id: string;
8
- nickname: string;
9
- } | null>;
@@ -1,21 +0,0 @@
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 {
6
- #private;
7
- private readonly app;
8
- project: MobileProject & {
9
- ios: IosProject;
10
- android: AndroidProject;
11
- };
12
- iosTargetName: string;
13
- constructor(app: AppExecutor);
14
- init(): Promise<this>;
15
- save(): Promise<void>;
16
- releaseIos(): Promise<void>;
17
- releaseAndroid(): Promise<void>;
18
- addCamera(): Promise<void>;
19
- addContact(): Promise<void>;
20
- addLocation(): Promise<void>;
21
- }
@@ -1,55 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- import type { Type } from "./types";
2
- export declare const runCommands: (...commands: Type[]) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { Type } from "./types";
2
- export declare const Commands: () => (target: Type) => void;
@@ -1,5 +0,0 @@
1
- export * from "./argMeta";
2
- export * from "./commandMeta";
3
- export * from "./targetMeta";
4
- export * from "./types";
5
- export * from "./command";
@@ -1,18 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export type Type<T = any> = new (...args: any[]) => T;
@@ -1,26 +0,0 @@
1
- import type { SupportedLlmModel } from "./aiEditor";
2
- export declare const basePath: string;
3
- export declare const configPath: string;
4
- export declare const akanCloudHost: string;
5
- export declare const akanCloudBackendUrl: string;
6
- export declare const akanCloudClientUrl: string;
7
- export interface HostConfig {
8
- auth?: {
9
- token: string;
10
- self: {
11
- id: string;
12
- nickname: string;
13
- };
14
- };
15
- }
16
- export declare const defaultHostConfig: HostConfig;
17
- export interface AkanGlobalConfig {
18
- cloudHost: {
19
- [key: string]: HostConfig;
20
- };
21
- llm: {
22
- model: SupportedLlmModel;
23
- apiKey: string;
24
- } | null;
25
- }
26
- export declare const defaultAkanGlobalConfig: AkanGlobalConfig;
@@ -1,8 +0,0 @@
1
- import type { AppExecutor } from "./executors";
2
- interface TunnelOption {
3
- app: AppExecutor;
4
- environment: string;
5
- port?: number;
6
- }
7
- export declare const createTunnel: ({ app, environment, port }: TunnelOption) => Promise<string>;
8
- export {};
@@ -1,8 +0,0 @@
1
- export declare class TypeScriptDependencyScanner {
2
- #private;
3
- readonly directory: string;
4
- constructor(directory: string);
5
- getImportSets(depSets: Set<string>[]): Promise<Set<string>[]>;
6
- getDependencies(): Promise<Map<string, string[]>>;
7
- generateDependencyGraph(): string;
8
- }