@akanjs/cli 0.9.60-canary.1 → 0.9.60-canary.12
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 +35 -60
- 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/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 +35 -60
- 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/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 +4 -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/cjs/src/guidelines/fieldDecorator/fieldDecorator.generate.json +0 -135
- package/cjs/src/guidelines/fieldDecorator/fieldDecorator.instruction.md +0 -606
- package/esm/src/guidelines/fieldDecorator/fieldDecorator.generate.json +0 -135
- package/esm/src/guidelines/fieldDecorator/fieldDecorator.instruction.md +0 -606
- package/src/guidelines/fieldDecorator/fieldDecorator.instruction.md +0 -606
|
@@ -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 {
|
|
@@ -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.12",
|
|
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",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"js-yaml": "^4.1.0",
|
|
43
43
|
"latest-version": "^9.0.0",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
|
-
"next": "16.0.
|
|
45
|
+
"next": "16.0.7",
|
|
46
46
|
"next-pwa": "5.6.0",
|
|
47
47
|
"open": "^10.1.1",
|
|
48
48
|
"ora": "^3.4.0",
|
|
49
49
|
"pluralize": "^8.0.0",
|
|
50
50
|
"qrcode": "^1.5.4",
|
|
51
|
-
"react": "19.2.
|
|
51
|
+
"react": "19.2.1",
|
|
52
52
|
"react-icons": "^5.4.0",
|
|
53
53
|
"reflect-metadata": "^0.2.2",
|
|
54
54
|
"tsconfig-paths": "^4.2.0",
|