@akanjs/cli 0.0.57 → 0.0.59

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 (158) hide show
  1. package/index.js +680 -92
  2. package/package.json +3 -4
  3. package/pkgs/@akanjs/cli/src/application/application.runner.d.ts +1 -0
  4. package/pkgs/@akanjs/cli/src/application/application.script.d.ts +2 -1
  5. package/pkgs/@akanjs/cli/src/library/library.command.d.ts +3 -1
  6. package/pkgs/@akanjs/cli/src/library/library.runner.d.ts +4 -1
  7. package/pkgs/@akanjs/cli/src/library/library.script.d.ts +4 -1
  8. package/pkgs/@akanjs/cli/src/module/module.command.d.ts +1 -1
  9. package/pkgs/@akanjs/cli/src/module/module.prompt.d.ts +1 -1
  10. package/pkgs/@akanjs/cli/src/module/module.script.d.ts +1 -1
  11. package/pkgs/@akanjs/cli/src/workspace/workspace.command.d.ts +1 -2
  12. package/pkgs/@akanjs/cli/src/workspace/workspace.runner.d.ts +0 -1
  13. package/pkgs/@akanjs/cli/src/workspace/workspace.script.d.ts +4 -1
  14. package/pkgs/@akanjs/devkit/src/aiEditor.d.ts +17 -0
  15. package/pkgs/@akanjs/devkit/src/executors.d.ts +26 -0
  16. package/pkgs/@akanjs/devkit/src/index.d.ts +1 -0
  17. package/pkgs/@akanjs/devkit/src/streamAi.d.ts +1 -1
  18. package/src/templates/__scalar/__model__/__model__.constant.js +0 -2
  19. package/src/templates/__scalar/__model__/__model__.dictionary.js +0 -2
  20. package/src/templates/__scalar/__model__/__model__.document.js +0 -2
  21. package/src/templates/app/akan.config.js +35 -0
  22. package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/{page.js → page.jsx} +0 -2
  23. package/src/templates/app/app/[lang]/(__appName__)/(public)/{page.js → page.jsx} +0 -2
  24. package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/{page.js → page.jsx} +0 -2
  25. package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/{page.js → page.jsx} +0 -2
  26. package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/{page.js → page.jsx} +0 -2
  27. package/src/templates/app/app/[lang]/(__appName__)/(user)/{layout.js → layout.jsx} +0 -2
  28. package/src/templates/app/app/[lang]/(__appName__)/(user)/self/{page.js → page.jsx} +0 -2
  29. package/src/templates/app/app/[lang]/(__appName__)/{layout.js → layout.jsx} +0 -2
  30. package/src/templates/app/app/[lang]/admin/{layout.js → layout.jsx} +0 -2
  31. package/src/templates/app/app/[lang]/admin/{page.js → page.jsx} +0 -2
  32. package/src/templates/app/app/{csr.js → csr.jsx} +0 -2
  33. package/src/templates/app/app/{layout.js → layout.jsx} +0 -2
  34. package/src/templates/app/app/robots.js +0 -2
  35. package/src/templates/app/app/sitemap.js +0 -2
  36. package/src/templates/app/base/baseLogic.js +0 -2
  37. package/src/templates/app/base/index.js +0 -2
  38. package/src/templates/app/common/commonLogic.js +0 -2
  39. package/src/templates/app/common/index.js +0 -2
  40. package/src/templates/app/env/env.client.debug.ts.template +7 -0
  41. package/src/templates/app/env/env.client.develop.ts.template +7 -0
  42. package/src/templates/app/env/env.client.js +0 -2
  43. package/src/templates/app/env/env.client.main.ts.template +7 -0
  44. package/src/templates/app/env/env.client.testing.ts.template +7 -0
  45. package/src/templates/app/env/env.client.type.js +1 -3
  46. package/src/templates/app/env/env.server.debug.ts.template +15 -0
  47. package/src/templates/app/env/env.server.develop.ts.template +15 -0
  48. package/src/templates/app/env/env.server.js +0 -2
  49. package/src/templates/app/env/env.server.main.ts.template +15 -0
  50. package/src/templates/app/env/env.server.testing.ts.template +7 -0
  51. package/src/templates/app/jest.config.js +0 -2
  52. package/src/templates/app/lib/___appName__/__appName__.dictionary.js +0 -2
  53. package/src/templates/app/lib/___appName__/__appName__.service.js +0 -2
  54. package/src/templates/app/lib/___appName__/__appName__.store.js +0 -2
  55. package/src/templates/app/lib/___appName__/_server.js +0 -2
  56. package/src/templates/app/lib/option.js +0 -2
  57. package/src/templates/app/lib/setting/{Setting.Template.js → Setting.Template.jsx} +0 -2
  58. package/src/templates/app/lib/setting/{Setting.Unit.js → Setting.Unit.jsx} +0 -2
  59. package/src/templates/app/lib/setting/{Setting.Util.js → Setting.Util.jsx} +0 -2
  60. package/src/templates/app/lib/setting/{Setting.View.js → Setting.View.jsx} +0 -2
  61. package/src/templates/app/lib/setting/{Setting.Zone.js → Setting.Zone.jsx} +0 -2
  62. package/src/templates/app/lib/setting/_server.js +0 -2
  63. package/src/templates/app/lib/setting/{index.js → index.jsx} +0 -2
  64. package/src/templates/app/lib/setting/setting.constant.js +0 -2
  65. package/src/templates/app/lib/setting/setting.dictionary.js +0 -2
  66. package/src/templates/app/lib/setting/setting.document.js +0 -2
  67. package/src/templates/app/lib/setting/setting.service.js +0 -2
  68. package/src/templates/app/lib/setting/setting.signal.js +0 -2
  69. package/src/templates/app/lib/setting/setting.store.js +0 -2
  70. package/src/templates/app/lib/summary/{Summary.Template.js → Summary.Template.jsx} +0 -2
  71. package/src/templates/app/lib/summary/{Summary.Unit.js → Summary.Unit.jsx} +0 -2
  72. package/src/templates/app/lib/summary/{Summary.Util.js → Summary.Util.jsx} +0 -2
  73. package/src/templates/app/lib/summary/{Summary.View.js → Summary.View.jsx} +0 -2
  74. package/src/templates/app/lib/summary/{Summary.Zone.js → Summary.Zone.jsx} +0 -2
  75. package/src/templates/app/lib/summary/_server.js +0 -2
  76. package/src/templates/app/lib/summary/{index.js → index.jsx} +0 -2
  77. package/src/templates/app/lib/summary/summary.constant.js +0 -2
  78. package/src/templates/app/lib/summary/summary.dictionary.js +0 -2
  79. package/src/templates/app/lib/summary/summary.document.js +0 -2
  80. package/src/templates/app/lib/summary/summary.service.js +0 -2
  81. package/src/templates/app/lib/summary/summary.signal.js +0 -2
  82. package/src/templates/app/lib/summary/summary.store.js +0 -2
  83. package/src/templates/app/lib/user/{User.Template.js → User.Template.jsx} +0 -2
  84. package/src/templates/app/lib/user/{User.Unit.js → User.Unit.jsx} +0 -2
  85. package/src/templates/app/lib/user/{User.Util.js → User.Util.jsx} +0 -2
  86. package/src/templates/app/lib/user/{User.View.js → User.View.jsx} +0 -2
  87. package/src/templates/app/lib/user/{User.Zone.js → User.Zone.jsx} +0 -2
  88. package/src/templates/app/lib/user/_server.js +0 -2
  89. package/src/templates/app/lib/user/{index.js → index.jsx} +0 -2
  90. package/src/templates/app/lib/user/user.constant.js +0 -2
  91. package/src/templates/app/lib/user/user.dictionary.js +0 -2
  92. package/src/templates/app/lib/user/user.document.js +0 -2
  93. package/src/templates/app/lib/user/user.service.js +0 -2
  94. package/src/templates/app/lib/user/user.signal.js +0 -2
  95. package/src/templates/app/lib/user/user.signal.spec.js +0 -2
  96. package/src/templates/app/lib/user/user.signal.test.js +0 -2
  97. package/src/templates/app/lib/user/user.store.js +0 -2
  98. package/src/templates/app/main.js +0 -2
  99. package/src/templates/app/middleware.js +0 -2
  100. package/src/templates/app/nest/backendLogic.js +0 -2
  101. package/src/templates/app/nest/index.js +0 -2
  102. package/src/templates/app/next/frontendLogic.js +0 -2
  103. package/src/templates/app/next/index.js +0 -2
  104. package/src/templates/app/tsconfig.json.template +6 -6
  105. package/src/templates/app/ui/{Footer.js → Footer.jsx} +0 -2
  106. package/src/templates/app/ui/{MainHeader.js → MainHeader.jsx} +0 -2
  107. package/src/templates/app/ui/index.js +0 -2
  108. package/src/templates/client.js +1 -3
  109. package/src/templates/crudPages/[__model__Id]/edit/{page.js → page.jsx} +0 -2
  110. package/src/templates/crudPages/[__model__Id]/{page.js → page.jsx} +0 -2
  111. package/src/templates/crudPages/new/{page.js → page.jsx} +0 -2
  112. package/src/templates/crudPages/{page.js → page.jsx} +0 -2
  113. package/src/templates/index.js +0 -2
  114. package/src/templates/lib/__lib/extends/summary.constant.js +1 -3
  115. package/src/templates/lib/__lib/lib.constant.js +0 -2
  116. package/src/templates/lib/__lib/lib.dictionary.js +0 -2
  117. package/src/templates/lib/__lib/lib.document.js +0 -2
  118. package/src/templates/lib/__lib/lib.service.js +1 -3
  119. package/src/templates/lib/__lib/lib.signal.js +0 -2
  120. package/src/templates/lib/__lib/lib.store.js +0 -2
  121. package/src/templates/lib/__scalar/_server.js +1 -3
  122. package/src/templates/lib/cnst.js +0 -2
  123. package/src/templates/lib/cnst_.js +0 -2
  124. package/src/templates/lib/db.js +0 -2
  125. package/src/templates/lib/dict.js +0 -2
  126. package/src/templates/lib/fetch.js +1 -3
  127. package/src/templates/lib/sig.js +1 -3
  128. package/src/templates/lib/srv.js +1 -3
  129. package/src/templates/lib/st.js +0 -2
  130. package/src/templates/lib/store.js +1 -3
  131. package/src/templates/lib/usePage.js +0 -2
  132. package/src/templates/libRoot/jest.config.js +0 -2
  133. package/src/templates/module/{__Model__.Template.js → __Model__.Template.jsx} +0 -2
  134. package/src/templates/module/{__Model__.Unit.js → __Model__.Unit.jsx} +0 -2
  135. package/src/templates/module/{__Model__.Util.js → __Model__.Util.jsx} +0 -2
  136. package/src/templates/module/{__Model__.View.js → __Model__.View.jsx} +0 -2
  137. package/src/templates/module/{__Model__.Zone.js → __Model__.Zone.jsx} +0 -2
  138. package/src/templates/module/__model__.constant.js +0 -2
  139. package/src/templates/module/__model__.dictionary.js +0 -2
  140. package/src/templates/module/__model__.document.js +0 -2
  141. package/src/templates/module/__model__.service.js +0 -2
  142. package/src/templates/module/__model__.signal.js +0 -2
  143. package/src/templates/module/__model__.signal.spec.js +0 -2
  144. package/src/templates/module/__model__.signal.test.js +0 -2
  145. package/src/templates/module/__model__.store.js +0 -2
  146. package/src/templates/module/_server.js +0 -2
  147. package/src/templates/module/{index.js → index.jsx} +0 -2
  148. package/src/templates/server.js +1 -3
  149. package/src/templates/workspaceRoot/.gitignore.template +117 -0
  150. package/src/templates/{workplaceRoot/eslint.config.js.template → workspaceRoot/eslint.config.ts.template} +14 -19
  151. package/src/templates/app/akan.config.ts.template +0 -5
  152. package/src/templates/workplaceRoot/.gitignore.template +0 -195
  153. /package/src/templates/{workplaceRoot → workspaceRoot}/.env.template +0 -0
  154. /package/src/templates/{workplaceRoot → workspaceRoot}/.prettierignore.template +0 -0
  155. /package/src/templates/{workplaceRoot → workspaceRoot}/.prettierrc.json.template +0 -0
  156. /package/src/templates/{workplaceRoot → workspaceRoot}/.swcrc.template +0 -0
  157. /package/src/templates/{workplaceRoot → workspaceRoot}/README.md.template +0 -0
  158. /package/src/templates/{workplaceRoot → workspaceRoot}/tsconfig.json.template +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.57",
4
+ "version": "0.0.59",
5
5
  "bin": {
6
6
  "akan": "index.js"
7
7
  },
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@inquirer/prompts": "^7.2.1",
22
- "@langchain/core": "^0.3.27",
23
- "@langchain/openai": "^0.3.16",
22
+ "@langchain/core": "^0.3.56",
23
+ "@langchain/openai": "^0.5.10",
24
24
  "@next/bundle-analyzer": "^15.1.3",
25
25
  "@nx/devkit": "^20.7.2",
26
26
  "@trapezedev/project": "^7.1.3",
@@ -35,7 +35,6 @@
35
35
  "form-data": "^4.0.1",
36
36
  "js-yaml": "^4.1.0",
37
37
  "latest-version": "^9.0.0",
38
- "lodash": "^4.17.21",
39
38
  "next-pwa": "^5.6.0",
40
39
  "open": "^10.1.1",
41
40
  "ora": "^3.4.0",
@@ -7,6 +7,7 @@ export interface ReleaseSourceOptions {
7
7
  }
8
8
  export declare class ApplicationRunner {
9
9
  #private;
10
+ createApplication(appName: string, workspace: Workspace): Promise<void>;
10
11
  scanSync(app: App): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
11
12
  buildBackend(app: App, distApp: DistAppExecutor): Promise<void>;
12
13
  serveBackend(app: App, distApp: DistAppExecutor): Promise<void>;
@@ -1,10 +1,11 @@
1
- import type { App } from "@akanjs/devkit";
1
+ import type { App, Workspace } from "@akanjs/devkit";
2
2
  import { DistAppExecutor } from "@akanjs/devkit";
3
3
  import { LibraryScript } from "../library/library.script";
4
4
  import { type ReleaseSourceOptions } from "./application.runner";
5
5
  export declare class ApplicationScript {
6
6
  #private;
7
7
  libraryScript: LibraryScript;
8
+ createApplication(appName: string, workspace: Workspace): Promise<void>;
8
9
  scanApplication(app: App): Promise<void>;
9
10
  syncApplication(app: App, { recursive }?: {
10
11
  recursive?: boolean;
@@ -6,5 +6,7 @@ export declare class LibraryCommand {
6
6
  removeLibrary(lib: Lib, workspace: Workspace): Promise<void>;
7
7
  scanLibrary(lib: Lib): Promise<void>;
8
8
  buildLibrary(lib: Lib): Promise<void>;
9
- pushLibrary(lib: Lib): Promise<void>;
9
+ installLibrary(name: string, workspace: Workspace): Promise<void>;
10
+ pushLibrary(lib: Lib, branch: string): Promise<void>;
11
+ pullLibrary(lib: Lib, branch: string): Promise<void>;
10
12
  }
@@ -1,4 +1,7 @@
1
- import { Lib } from "@akanjs/devkit";
1
+ import { Lib, Workspace } from "@akanjs/devkit";
2
2
  export declare class LibraryRunner {
3
3
  scanSync(lib: Lib): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
4
+ installLibrary(workspace: Workspace, libName: string): Promise<void>;
5
+ pushLibrary(lib: Lib, branch: string): Promise<void>;
6
+ pullLibrary(lib: Lib, branch: string): Promise<void>;
4
7
  }
@@ -1,8 +1,11 @@
1
- import type { Lib } from "@akanjs/devkit";
1
+ import type { Lib, Workspace } from "@akanjs/devkit";
2
2
  export declare class LibraryScript {
3
3
  #private;
4
4
  scanLibrary(lib: Lib): Promise<void>;
5
5
  syncLibrary(lib: Lib, { recursive }?: {
6
6
  recursive?: boolean;
7
7
  }): Promise<void>;
8
+ installLibrary(workspace: Workspace, libName: string): Promise<void>;
9
+ pushLibrary(lib: Lib, branch: string): Promise<void>;
10
+ pullLibrary(lib: Lib, branch: string): Promise<void>;
8
11
  }
@@ -5,7 +5,7 @@ export declare class ModuleCommand {
5
5
  createModule(name: string, workspace: Workspace): Promise<void>;
6
6
  removeModule(name: string, workspace: Workspace): Promise<void>;
7
7
  scanModule(name: string, workspace: Workspace): Promise<void>;
8
- createScalar(sys: Sys, name: string, workspace: Workspace): Promise<void>;
8
+ createScalar(sys: Sys, name: string, description: string, schemaDescription: string, workspace: Workspace): Promise<void>;
9
9
  createService(name: string, workspace: Workspace): Promise<void>;
10
10
  createTest(name: string, workspace: Workspace): Promise<void>;
11
11
  createView(name: string, workspace: Workspace): Promise<void>;
@@ -7,7 +7,7 @@ interface RequestConstantProps {
7
7
  modelSchemaDesign: string;
8
8
  boilerplate: string;
9
9
  otherConstants: {
10
- path: string;
10
+ filepath: string;
11
11
  content: string;
12
12
  }[];
13
13
  }
@@ -3,7 +3,7 @@ export declare class ModuleScript {
3
3
  #private;
4
4
  createModule(workspace: Workspace, name: string): Promise<void>;
5
5
  removeModule(workspace: Workspace, name: string): Promise<void>;
6
- createScalar(sys: Sys, name: string): Promise<void>;
6
+ createScalar(sys: Sys, name: string, description: string, schemaDescription: string): Promise<void>;
7
7
  createService(workspace: Workspace, name: string): Promise<void>;
8
8
  createTest(workspace: Workspace, name: string): Promise<void>;
9
9
  createUnit(workspace: Workspace, type: "app" | "lib", appOrLibName: string, modelName: string): Promise<void>;
@@ -2,7 +2,6 @@ import { Workspace } from "@akanjs/devkit";
2
2
  import { WorkspaceScript } from "./workspace.script";
3
3
  export declare class WorkspaceCommand {
4
4
  workspaceScript: WorkspaceScript;
5
- createWorkspace(name: string, dir: string, app: string): Promise<void>;
6
- installLibrary(name: string, workspace: Workspace): Promise<void>;
5
+ createWorkspace(name: string, app: string, dir: string): Promise<void>;
7
6
  generateMongo(workspace: Workspace): Promise<void>;
8
7
  }
@@ -2,5 +2,4 @@ import { type Workspace } from "@akanjs/devkit";
2
2
  export declare class WorkspaceRunner {
3
3
  createWorkspace(repoName: string, appName: string, dirname?: string): Promise<void>;
4
4
  generateMongo(workspace: Workspace): Promise<void>;
5
- installLibrary(workspace: Workspace, libName: string): Promise<void>;
6
5
  }
@@ -1,7 +1,10 @@
1
1
  import { WorkspaceExecutor } from "@akanjs/devkit";
2
+ import { ApplicationScript } from "../application/application.script";
3
+ import { LibraryScript } from "../library/library.script";
2
4
  export declare class WorkspaceScript {
3
5
  #private;
6
+ applicationScript: ApplicationScript;
7
+ libraryScript: LibraryScript;
4
8
  createWorkspace(repoName: string, appName: string, dirname?: string): Promise<void>;
5
9
  generateMongo(workspace: WorkspaceExecutor): Promise<void>;
6
- installLibrary(workspace: WorkspaceExecutor, libName: string): Promise<void>;
7
10
  }
@@ -0,0 +1,17 @@
1
+ import { BaseMessage } from "@langchain/core/messages";
2
+ interface EditOptions {
3
+ onChunk?: (chunk: string) => void;
4
+ maxTry?: number;
5
+ }
6
+ export declare class AiSession {
7
+ #private;
8
+ readonly messageHistory: BaseMessage[];
9
+ constructor(messageHistory?: BaseMessage[]);
10
+ ask(question: string, { onChunk, }?: EditOptions): Promise<{
11
+ content: string;
12
+ messageHistory: BaseMessage[];
13
+ }>;
14
+ edit(question: string, { onChunk, maxTry }?: EditOptions): Promise<string>;
15
+ editTypescript(question: string, options?: EditOptions): Promise<string>;
16
+ }
17
+ export {};
@@ -16,6 +16,10 @@ export declare class Executor {
16
16
  mkdir(dirPath: string): this;
17
17
  writeFile(filePath: string, content: string | object): this;
18
18
  writeJson(filePath: string, content: object): this;
19
+ getLocalFile(filePath: string): {
20
+ filepath: string;
21
+ content: string;
22
+ };
19
23
  readFile(filePath: string): string;
20
24
  readJson(filePath: string): object;
21
25
  cp(srcPath: string, destPath: string): Promise<void>;
@@ -46,6 +50,15 @@ export declare class WorkspaceExecutor extends Executor {
46
50
  getLibs(): Promise<string[]>;
47
51
  getSyss(): Promise<[string[], string[]]>;
48
52
  getPkgs(): Promise<string[]>;
53
+ setTsPaths(type: "app" | "lib", name: string): this;
54
+ commit(message: string, { init, add }?: {
55
+ init?: boolean;
56
+ add?: boolean;
57
+ }): Promise<void>;
58
+ getScalarConstantFiles(): Promise<{
59
+ filepath: string;
60
+ content: string;
61
+ }[]>;
49
62
  }
50
63
  interface SysExecutorOptions {
51
64
  workspace?: WorkspaceExecutor;
@@ -64,9 +77,22 @@ export declare class SysExecutor extends Executor {
64
77
  }, libScanResults?: {
65
78
  [key: string]: LibScanResult;
66
79
  }): Promise<AppScanResult | LibScanResult>;
80
+ getLocalFile(filePath: string): {
81
+ filepath: string;
82
+ content: string;
83
+ };
67
84
  getDatabaseModules(): Promise<string[]>;
68
85
  getServiceModules(): Promise<string[]>;
69
86
  getScalarModules(): Promise<string[]>;
87
+ getScalarConstantFiles(): Promise<{
88
+ filepath: string;
89
+ content: string;
90
+ }[]>;
91
+ getScalarDictionaryFiles(): Promise<{
92
+ filepath: string;
93
+ content: string;
94
+ }[]>;
95
+ setTsPaths(): this;
70
96
  }
71
97
  interface AppExecutorOptions {
72
98
  workspace?: WorkspaceExecutor;
@@ -16,3 +16,4 @@ export * from "./capacitorApp";
16
16
  export * from "./extractDeps";
17
17
  export * from "./commandDecorators";
18
18
  export * from "./installExternalLib";
19
+ export * from "./aiEditor";
@@ -2,5 +2,5 @@ interface StreamResponse {
2
2
  content: string;
3
3
  chunk?: string;
4
4
  }
5
- export declare const streamAi: (question: string, callback: (chunk: string) => void) => Promise<StreamResponse>;
5
+ export declare const streamAi: (question: string, callback?: (chunk: string) => void) => Promise<StreamResponse>;
6
6
  export {};
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/__scalar/__model__/__model__.constant.ts
20
18
  var model_constant_exports = {};
21
19
  __export(model_constant_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/__scalar/__model__/__model__.dictionary.ts
20
18
  var model_dictionary_exports = {};
21
19
  __export(model_dictionary_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/__scalar/__model__/__model__.document.ts
20
18
  var model_document_exports = {};
21
19
  __export(model_document_exports, {
22
20
  default: () => getContent
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var akan_config_exports = {};
19
+ __export(akan_config_exports, {
20
+ default: () => getContent
21
+ });
22
+ module.exports = __toCommonJS(akan_config_exports);
23
+ function getContent(scanResult, dict) {
24
+ return `
25
+ import type { AppConfig } from "@akanjs/config";
26
+
27
+ const config: AppConfig = {
28
+ rootLib: "shared",
29
+ libs: ["util", "shared"],
30
+ };
31
+
32
+ export default config;
33
+ `;
34
+ }
35
+ module.exports = module.exports.default;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(public)/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(public)/signin/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(user)/layout.tsx
20
18
  var layout_exports = {};
21
19
  __export(layout_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/(user)/self/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/(__appName__)/layout.tsx
20
18
  var layout_exports = {};
21
19
  __export(layout_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/admin/layout.tsx
20
18
  var layout_exports = {};
21
19
  __export(layout_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/[lang]/admin/page.tsx
20
18
  var page_exports = {};
21
19
  __export(page_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/csr.tsx
20
18
  var csr_exports = {};
21
19
  __export(csr_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/layout.tsx
20
18
  var layout_exports = {};
21
19
  __export(layout_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/robots.ts
20
18
  var robots_exports = {};
21
19
  __export(robots_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/app/sitemap.ts
20
18
  var sitemap_exports = {};
21
19
  __export(sitemap_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/base/baseLogic.ts
20
18
  var baseLogic_exports = {};
21
19
  __export(baseLogic_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/base/index.ts
20
18
  var base_exports = {};
21
19
  __export(base_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/common/commonLogic.ts
20
18
  var commonLogic_exports = {};
21
19
  __export(commonLogic_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/common/index.ts
20
18
  var common_exports = {};
21
19
  __export(common_exports, {
22
20
  default: () => getContent
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/env/env.client.ts
20
18
  var env_client_exports = {};
21
19
  __export(env_client_exports, {
22
20
  default: () => getContent
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/env/env.client.type.ts
20
18
  var env_client_type_exports = {};
21
19
  __export(env_client_type_exports, {
22
20
  default: () => getContent
@@ -27,7 +25,7 @@ function getContent(scanResult, dict = {}) {
27
25
  import type { BaseClientEnv } from "@akanjs/base";
28
26
 
29
27
  export type AppClientEnv = BaseClientEnv & {
30
- cloudflare: {
28
+ cloudflare?: {
31
29
  siteKey: string;
32
30
  };
33
31
  };
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: { password: "S20n-D2bUg" },
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: { password: "S20n-D2VeL0p-0905*" },
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/env/env.server.ts
20
18
  var env_server_exports = {};
21
19
  __export(env_server_exports, {
22
20
  default: () => getContent
@@ -0,0 +1,15 @@
1
+ import { baseEnv } from "@akanjs/base";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...baseEnv,
7
+ hostname: null,
8
+ redis: {},
9
+ mongo: { password: "S20n-m@In-0905*-SEON" },
10
+ security: {
11
+ verifies: [["password", "phone", "naver", "kakao"]],
12
+ sso: {},
13
+ },
14
+ rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
15
+ };
@@ -0,0 +1,7 @@
1
+ import { env as shared } from "@shared/server";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...shared,
7
+ };
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/jest.config.ts
20
18
  var jest_config_exports = {};
21
19
  __export(jest_config_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/app/lib/___appName__/__appName__.dictionary.ts
20
18
  var appName_dictionary_exports = {};
21
19
  __export(appName_dictionary_exports, {
22
20
  default: () => getContent