@akanjs/cli 0.9.60-canary.0 → 0.9.60-canary.11
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/cjs/index.js +126 -110
- package/cjs/src/guidelines/scalarConstant/scalarConstant.generate.json +24 -20
- package/cjs/src/guidelines/scalarConstant/scalarConstant.instruction.md +284 -326
- package/cjs/src/guidelines/scalarDictionary/scalarDictionary.generate.json +32 -32
- package/cjs/src/guidelines/scalarDictionary/scalarDictionary.instruction.md +175 -249
- package/cjs/src/templates/__scalar/__model__/__model__.dictionary.js +6 -13
- package/cjs/src/templates/app/akan.config.js +2 -4
- package/cjs/src/templates/env/{env.server.type.js → _env.server.type.js} +6 -3
- package/cjs/src/templates/lib/__lib/lib.constant.js +1 -1
- package/cjs/src/templates/lib/__lib/lib.dictionary.js +1 -1
- package/cjs/src/templates/libRoot/akan.config.js +1 -3
- package/cjs/src/templates/module/__Model__.Unit.js +1 -1
- package/cjs/src/templates/module/__Model__.View.js +2 -3
- package/cjs/src/templates/module/__model__.constant.js +0 -1
- package/cjs/src/templates/module/__model__.dictionary.js +0 -1
- package/cjs/src/templates/workspaceRoot/package.json.template +5 -5
- package/esm/index.js +126 -110
- package/esm/src/guidelines/scalarConstant/scalarConstant.generate.json +24 -20
- package/esm/src/guidelines/scalarConstant/scalarConstant.instruction.md +284 -326
- package/esm/src/guidelines/scalarDictionary/scalarDictionary.generate.json +32 -32
- package/esm/src/guidelines/scalarDictionary/scalarDictionary.instruction.md +175 -249
- package/esm/src/templates/__scalar/__model__/__model__.dictionary.js +6 -13
- package/esm/src/templates/app/akan.config.js +2 -4
- package/esm/src/templates/env/{env.server.type.js → _env.server.type.js} +6 -3
- package/esm/src/templates/lib/__lib/lib.constant.js +1 -1
- package/esm/src/templates/lib/__lib/lib.dictionary.js +1 -1
- package/esm/src/templates/libRoot/akan.config.js +1 -3
- package/esm/src/templates/module/__Model__.Unit.js +1 -1
- package/esm/src/templates/module/__Model__.View.js +2 -3
- package/esm/src/templates/module/__model__.constant.js +0 -1
- package/esm/src/templates/module/__model__.dictionary.js +0 -1
- package/esm/src/templates/workspaceRoot/package.json.template +5 -5
- package/package.json +5 -4
- package/src/guidelines/scalarConstant/scalarConstant.instruction.md +284 -326
- package/src/guidelines/scalarDictionary/scalarDictionary.instruction.md +175 -249
- package/src/library/library.command.d.ts +0 -2
- package/src/library/library.runner.d.ts +0 -2
- package/src/library/library.script.d.ts +0 -2
- package/src/module/module.runner.d.ts +0 -4
- package/src/scalar/scalar.command.d.ts +2 -2
- package/src/scalar/scalar.runner.d.ts +1 -0
- package/src/scalar/scalar.script.d.ts +1 -0
- package/src/templates/app/akan.config.d.ts +1 -3
- package/src/templates/env/{env.server.type.d.ts → _env.server.type.d.ts} +4 -1
- package/src/workspace/workspace.command.d.ts +1 -1
- package/src/workspace/workspace.runner.d.ts +4 -1
- package/src/workspace/workspace.script.d.ts +5 -1
- package/cjs/src/guidelines/fieldDecorator/fieldDecorator.generate.json +0 -135
- package/cjs/src/guidelines/fieldDecorator/fieldDecorator.instruction.md +0 -606
- package/cjs/src/templates/module/__model__.signal.spec.js +0 -27
- package/cjs/src/templates/module/__model__.signal.test.js +0 -27
- package/esm/src/guidelines/fieldDecorator/fieldDecorator.generate.json +0 -135
- package/esm/src/guidelines/fieldDecorator/fieldDecorator.instruction.md +0 -606
- package/esm/src/templates/module/__model__.signal.spec.js +0 -7
- package/esm/src/templates/module/__model__.signal.test.js +0 -7
- package/src/guidelines/fieldDecorator/fieldDecorator.instruction.md +0 -606
- package/src/templates/module/__model__.signal.spec.d.ts +0 -8
- package/src/templates/module/__model__.signal.test.d.ts +0 -8
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
// pkgs/@akanjs/cli/src/templates/__scalar/__model__/__model__.dictionary.ts
|
|
2
2
|
function getContent(scanInfo, dict) {
|
|
3
3
|
return `
|
|
4
|
-
import {
|
|
4
|
+
import { scalarDictionary } from "@akanjs/dictionary";
|
|
5
5
|
|
|
6
6
|
import type { ${dict.Model} } from "./${dict.model}.constant";
|
|
7
7
|
|
|
8
|
-
export const dictionary =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
field: ["Field", "\uD544\uB4DC"],
|
|
14
|
-
"desc-field": ["Field", "\uD544\uB4DC"],
|
|
15
|
-
// * ==================== Model ==================== * //
|
|
16
|
-
|
|
17
|
-
// * ==================== Etc ==================== * //
|
|
18
|
-
// * ==================== Etc ==================== * //
|
|
19
|
-
} satisfies ModelDictionary<${dict.Model}>;
|
|
8
|
+
export const dictionary = scalarDictionary(["en", "ko"])
|
|
9
|
+
.of((t) => t(["${dict.Model}", "${dict.Model}"]).desc(["${dict.Model} description", "${dict.Model} \uC124\uBA85"]))
|
|
10
|
+
.model<${dict.Model}>((t) => ({
|
|
11
|
+
field: t(["Field", "\uD544\uB4DC"]).desc(["Field Description", "\uD544\uB4DC \uC124\uBA85"]),
|
|
12
|
+
}));
|
|
20
13
|
`;
|
|
21
14
|
}
|
|
22
15
|
export {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// pkgs/@akanjs/cli/src/templates/app/akan.config.ts
|
|
2
|
-
function getContent(scanInfo, dict
|
|
2
|
+
function getContent(scanInfo, dict) {
|
|
3
3
|
return `
|
|
4
4
|
import type { AppConfig } from "@akanjs/config";
|
|
5
5
|
|
|
6
|
-
const config: AppConfig =
|
|
7
|
-
libs: ["util", "shared"],
|
|
8
|
-
}` : "{}"};
|
|
6
|
+
const config: AppConfig = {};
|
|
9
7
|
|
|
10
8
|
export default config;
|
|
11
9
|
`;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
// pkgs/@akanjs/cli/src/templates/env/
|
|
1
|
+
// pkgs/@akanjs/cli/src/templates/env/_env.server.type.ts
|
|
2
2
|
function getContent(scanInfo, dict = {}) {
|
|
3
3
|
if (!scanInfo)
|
|
4
4
|
return null;
|
|
5
5
|
const libs = scanInfo.getLibs();
|
|
6
|
-
return
|
|
6
|
+
return {
|
|
7
|
+
filename: "env.server.type.ts",
|
|
8
|
+
content: `
|
|
7
9
|
${libs.length ? libs.map((lib) => `import { env as ${lib}Option } from "@${lib}/server";`).join("\n") : 'import { baseEnv } from "@akanjs/base";'}
|
|
8
10
|
|
|
9
11
|
export const libEnv = {
|
|
10
12
|
${libs.length ? libs.map((lib) => ` ...${lib}Option,`).join("\n") : " ...baseEnv,"}
|
|
11
13
|
};
|
|
12
|
-
|
|
14
|
+
`
|
|
15
|
+
};
|
|
13
16
|
}
|
|
14
17
|
export {
|
|
15
18
|
getContent as default
|
|
@@ -4,7 +4,7 @@ function getContent(scanInfo, dict = {}) {
|
|
|
4
4
|
if (!scanInfo)
|
|
5
5
|
return null;
|
|
6
6
|
const scanResult = scanInfo.getScanResult();
|
|
7
|
-
const libs = scanResult.
|
|
7
|
+
const libs = scanResult.libDeps;
|
|
8
8
|
const libInfos = scanInfo.getLibInfos();
|
|
9
9
|
const extendedModels = Object.fromEntries(
|
|
10
10
|
[...scanInfo.file.constant.databases].map(
|
|
@@ -3,7 +3,7 @@ function getContent(scanInfo, dict = {}) {
|
|
|
3
3
|
if (!scanInfo)
|
|
4
4
|
return null;
|
|
5
5
|
const scanResult = scanInfo.getScanResult();
|
|
6
|
-
const libs =
|
|
6
|
+
const libs = scanResult.libDeps;
|
|
7
7
|
const libInfos = scanInfo.getLibInfos();
|
|
8
8
|
const extendedModels = Object.fromEntries(
|
|
9
9
|
[...scanInfo.file.dictionary.databases].map(
|
|
@@ -10,7 +10,7 @@ import { Link } from "@akanjs/ui";
|
|
|
10
10
|
export const Card = ({ ${dict.model}, href }: ModelProps<"${dict.model}", cnst.Light${dict.Model}>) => {
|
|
11
11
|
const { l } = usePage();
|
|
12
12
|
return (
|
|
13
|
-
<Link href={href} className="
|
|
13
|
+
<Link href={href} className="w-full">
|
|
14
14
|
<div>{l("${dict.model}.id")}:{${dict.model}.id}</div>
|
|
15
15
|
</Link>
|
|
16
16
|
);
|
|
@@ -6,12 +6,11 @@ function getContent(scanInfo, dict) {
|
|
|
6
6
|
import { clsx } from "@akanjs/client";
|
|
7
7
|
import { cnst, usePage } from "@${dict.sysName}/client";
|
|
8
8
|
|
|
9
|
-
interface
|
|
9
|
+
interface GeneralProps {
|
|
10
10
|
className?: string;
|
|
11
11
|
${dict.model}: cnst.${dict.Model};
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
export const General = ({ className, ${dict.model} }: ${dict.Model}ViewProps) => {
|
|
13
|
+
export const General = ({ className, ${dict.model} }: GeneralProps) => {
|
|
15
14
|
const { l } = usePage();
|
|
16
15
|
return (
|
|
17
16
|
<div className={clsx("w-full", className)}>
|
|
@@ -4,7 +4,6 @@ function getContent(scanInfo, dict) {
|
|
|
4
4
|
import { modelDictionary } from "@akanjs/dictionary";
|
|
5
5
|
|
|
6
6
|
import type { ${dict.Model}, ${dict.Model}Insight } from "./${dict.model}.constant";
|
|
7
|
-
import type { ${dict.Model}Filter } from "./${dict.model}.document";
|
|
8
7
|
import type { ${dict.Model}Endpoint, ${dict.Model}Slice } from "./${dict.model}.signal";
|
|
9
8
|
|
|
10
9
|
export const dictionary = modelDictionary(["en", "ko"])
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"description": "<%= repoName %> workspace",
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"next": "16.0.
|
|
7
|
-
"react": "19.2.
|
|
8
|
-
"react-dom": "19.2.
|
|
6
|
+
"next": "16.0.7",
|
|
7
|
+
"react": "19.2.1",
|
|
8
|
+
"react-dom": "19.2.1",
|
|
9
9
|
"tailwindcss": "^4.1.11",
|
|
10
10
|
"daisyui": "^5.5.5"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "^22.10.4",
|
|
14
14
|
"@tailwindcss/postcss": "^4.1.11",
|
|
15
|
-
"@types/react": "19.2.
|
|
16
|
-
"@types/react-dom": "19.2.
|
|
15
|
+
"@types/react": "19.2.1",
|
|
16
|
+
"@types/react-dom": "19.2.1",
|
|
17
17
|
"crypto-browserify": "^3.12.1",
|
|
18
18
|
"eslint": "^9.19.0",
|
|
19
19
|
"https-browserify": "^1.0.0",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"type": "module",
|
|
3
3
|
"sourceType": "module",
|
|
4
4
|
"name": "@akanjs/cli",
|
|
5
|
-
"version": "0.9.60-canary.
|
|
5
|
+
"version": "0.9.60-canary.11",
|
|
6
6
|
"bin": {
|
|
7
7
|
"akan": "esm/index.js"
|
|
8
8
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@langchain/core": "^0.3.56",
|
|
24
24
|
"@langchain/deepseek": "^0.0.1",
|
|
25
25
|
"@langchain/openai": "^0.5.10",
|
|
26
|
-
"@next/bundle-analyzer": "^16.0.
|
|
26
|
+
"@next/bundle-analyzer": "^16.0.7",
|
|
27
27
|
"@trapezedev/project": "^7.1.3",
|
|
28
28
|
"@vitejs/plugin-react": "^4.7.0",
|
|
29
29
|
"axios": "^1.7.9",
|
|
@@ -36,18 +36,19 @@
|
|
|
36
36
|
"esbuild-plugin-d.ts": "^1.3.1",
|
|
37
37
|
"eslint": "^9.19.0",
|
|
38
38
|
"form-data": "^4.0.1",
|
|
39
|
+
"ignore": "^7.0.5",
|
|
39
40
|
"ink": "^6.1.0",
|
|
40
41
|
"jiti": "^2.4.2",
|
|
41
42
|
"js-yaml": "^4.1.0",
|
|
42
43
|
"latest-version": "^9.0.0",
|
|
43
44
|
"lodash": "^4.17.21",
|
|
44
|
-
"next": "16.0.
|
|
45
|
+
"next": "16.0.7",
|
|
45
46
|
"next-pwa": "5.6.0",
|
|
46
47
|
"open": "^10.1.1",
|
|
47
48
|
"ora": "^3.4.0",
|
|
48
49
|
"pluralize": "^8.0.0",
|
|
49
50
|
"qrcode": "^1.5.4",
|
|
50
|
-
"react": "19.2.
|
|
51
|
+
"react": "19.2.1",
|
|
51
52
|
"react-icons": "^5.4.0",
|
|
52
53
|
"reflect-metadata": "^0.2.2",
|
|
53
54
|
"tsconfig-paths": "^4.2.0",
|