@akanjs/cli 3.0.0-alpha.10 → 3.0.0-alpha.101
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/.build-stamp +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/{abstractCompactor-e5yq60qz.js → abstractCompactor-byytxs22.js} +3 -5
- package/{agent.command-f0gqkfgz.js → agent.command-v1a4746v.js} +11 -13
- package/{application.command-x903m2qq.js → application.command-fzdcnzhg.js} +65 -38
- package/{applicationBuildRunner-ha3y8ew8.js → applicationBuildRunner-s4gsk728.js} +27 -23
- package/{applicationReleasePackager-gg8ccbeh.js → applicationReleasePackager-28v9vbzk.js} +8 -9
- package/buildBatch.proc.js +12 -14
- package/capacitorApp-8d6d4zkm.js +12 -0
- package/{cloud.command-zs6kyf83.js → cloud.command-wygy2z05.js} +15 -18
- package/commandManifest.json +1 -1
- package/{context.command-fmepgjzg.js → context.command-4vdt1aqq.js} +19 -23
- package/dependencyScanner-shs82ynp.js +8 -0
- package/devTui-qnf1txdz.js +553 -0
- package/devTuiView-yzct2cq6.js +9 -0
- package/getDirname-dr3jz1xg.js +7 -0
- package/{guideline.command-n6sw0a0c.js → guideline.command-p92dq6ts.js} +16 -18
- package/guidelines/agentRule/agentRule.generate.json +31 -0
- package/guidelines/agentRule/agentRule.instruction.md +533 -0
- package/guidelines/conventions/conventions.instruction.md +447 -197
- package/guidelines/cssRule/cssRule.instruction.md +7 -0
- package/guidelines/framework/framework.generate.json +3 -2
- package/guidelines/framework/framework.instruction.md +1 -9
- package/guidelines/mcpRule/mcpRule.generate.json +35 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +366 -0
- package/guidelines/modelStore/modelStore.instruction.md +12 -0
- package/guidelines/modelTemplate/modelTemplate.instruction.md +5 -0
- package/guidelines/queryRule/queryRule.generate.json +31 -0
- package/guidelines/queryRule/queryRule.instruction.md +178 -0
- package/guidelines/runtimeRule/runtimeRule.generate.json +25 -0
- package/guidelines/runtimeRule/runtimeRule.instruction.md +220 -0
- package/guidelines/ssrRule/ssrRule.instruction.md +49 -5
- package/guidelines/transportRule/transportRule.generate.json +31 -0
- package/guidelines/transportRule/transportRule.instruction.md +60 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +51 -760
- package/guidelines/workspaceRecipes/workspaceRecipes.generate.json +33 -0
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +402 -0
- package/incrementalBuilder.proc.js +26 -25
- package/{index-jf2ya7r2.js → index-0amdxycf.js} +8 -8
- package/{index-779ske1y.js → index-1yxtbmbj.js} +27 -27
- package/{index-eyyf2149.js → index-29sxqfaw.js} +36 -37
- package/index-3d9y066c.js +76 -0
- package/{index-76rn3g2c.js → index-47pj3aee.js} +4 -4
- package/index-5svjba73.js +159 -0
- package/{index-1577bej2.js → index-6wwzs1bc.js} +2 -2
- package/{index-gcv8ncfh.js → index-7d6vny25.js} +16 -12
- package/{index-y4vkyhvv.js → index-8p8p0cf8.js} +14 -14
- package/{index-wnp7hwq7.js → index-92zztqy1.js} +7 -7
- package/{index-fgc8r6dj.js → index-a5vmm6x4.js} +3 -1
- package/{index-xys926f2.js → index-by5gpp8x.js} +4 -4
- package/{index-0cj2zxbm.js → index-c69j78kk.js} +12 -11
- package/{index-rxkpk7n4.js → index-fc1bh0a7.js} +4 -4
- package/{index-d43t8af2.js → index-gq44bqjt.js} +58 -25
- package/{index-774gcx29.js → index-gtmz74tj.js} +41 -34
- package/{index-j37qq1f2.js → index-h7yw2z9n.js} +7 -7
- package/{index-bjpxzr6s.js → index-hwkygn9s.js} +51 -3
- package/{index-xmmzf150.js → index-hyywke0f.js} +1 -1
- package/{index-46tjzh6s.js → index-kcxmv48c.js} +29 -29
- package/{index-xjd3rqzj.js → index-n68jx79w.js} +6 -15
- package/{index-qb61h0k7.js → index-p5neav9b.js} +1098 -1360
- package/{index-67546d0j.js → index-q0y2jq9j.js} +14 -2
- package/{index-3vta1tqa.js → index-qkk27bk6.js} +32 -32
- package/{index-z8ptfkzv.js → index-qsq3q8fy.js} +975 -242
- package/{index-qzdjd4ct.js → index-srdssqj7.js} +18 -18
- package/{index-j9cxndc0.js → index-w8kmx1b6.js} +20 -11
- package/{index-82jrh4hj.js → index-yks023mb.js} +13 -13
- package/{index-5sn5w2mt.js → index-yza7zkpt.js} +94 -61
- package/{index-jhpa13zj.js → index-zmjppp25.js} +57 -57
- package/{index-kdh76j26.js → index-znynzt5w.js} +100 -32
- package/{index-4m0bphac.js → index-zxgr3s8s.js} +31 -30
- package/{index-62955kn5.js → index-zz5jyd94.js} +1002 -128
- package/index.js +22 -25
- package/{library.command-cv9gdbmg.js → library.command-s4fszngs.js} +11 -10
- package/{localRegistry.command-d8fg36zc.js → localRegistry.command-gyw4da9z.js} +20 -23
- package/{module.command-qyr1s9cn.js → module.command-6n7dwvav.js} +13 -16
- package/{package.command-wsjx0k47.js → package.command-gr82ypnr.js} +8 -10
- package/package.json +5 -7
- package/{page.command-rdzg65rm.js → page.command-7gvgb3jb.js} +7 -9
- package/{primitive.command-89g38b53.js → primitive.command-tk5ckw38.js} +13 -16
- package/{quality.command-0cs2z92d.js → quality.command-38v81baf.js} +226 -105
- package/recipeScanner-fpagtgc1.js +11 -0
- package/{repair.command-6fphxfwj.js → repair.command-5xbwvsxp.js} +12 -14
- package/{routeSourceValidator-e4jmbfcx.js → routeSourceValidator-ze6x894c.js} +0 -2
- package/{scalar.command-xfer69s6.js → scalar.command-0epwcr5k.js} +11 -14
- package/subspace.command-e2t36xb2.js +755 -0
- package/templates/app/env/env.client.debug.ts.template +1 -5
- package/templates/app/env/env.client.develop.ts.template +1 -5
- package/templates/app/env/env.client.local.ts.template +1 -5
- package/templates/app/env/env.client.main.ts.template +1 -5
- package/templates/app/env/env.client.testing.ts.template +1 -5
- package/templates/app/env/env.client.type.ts +2 -6
- package/templates/app/env/env.server.debug.ts.template +1 -5
- package/templates/app/env/env.server.develop.ts.template +1 -5
- package/templates/app/env/env.server.local.ts.template +1 -5
- package/templates/app/env/env.server.main.ts.template +1 -5
- package/templates/app/main.ts +3 -1
- package/templates/appSample/lib/task/task.signal.ts +11 -6
- package/templates/appSample/srvkit/AuthGuard.ts +9 -5
- package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
- package/templates/crudPages/[__model__Id]/edit/page.tsx +5 -5
- package/templates/crudPages/[__model__Id]/page.tsx +10 -13
- package/templates/crudPages/new/page.tsx +5 -5
- package/templates/crudPages/page.tsx +9 -9
- package/templates/crudSinglePage/page.tsx +11 -7
- package/templates/env/_env.server.type.ts +7 -5
- package/templates/lib/db.ts +1 -1
- package/templates/lib/dict.ts +1 -1
- package/templates/lib/sig.ts +5 -1
- package/templates/lib/srv.ts +6 -2
- package/templates/module/__model__.dictionary.ts +4 -1
- package/templates/module/__model__.signal.ts +2 -3
- package/templates/module/__model__.store.ts +1 -2
- package/templates/workspaceRoot/.gitignore.template +0 -1
- package/templates/workspaceRoot/.husky/pre-commit.template +16 -0
- package/templates/workspaceRoot/.vscode/settings.json.template +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +4 -0
- package/templates/workspaceRoot/CLAUDE.md.template +19 -0
- package/templates/workspaceRoot/biome.json.template +2 -1
- package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +10 -14
- package/templates/workspaceRoot/docs/GENERATED.md.template +12 -10
- package/templates/workspaceRoot/package.json.template +2 -4
- package/typeChecker-3xgrzc2v.js +7 -0
- package/typecheck.proc.js +4 -5
- package/{workflow.command-2ygfqt4f.js → workflow.command-kphbr7eh.js} +22 -25
- package/{workspace.command-vbgpjkf9.js → workspace.command-j1gatz3d.js} +96 -81
- package/capacitorApp-9xswcgx7.js +0 -61
- package/dependencyScanner-f6grrep3.js +0 -9
- package/getDirname-m9s0cmhq.js +0 -8
- package/index-mxvakhsm.js +0 -66
- package/index-r24hmh0q.js +0 -4
- package/recipeScanner-tghkzrrt.js +0 -12
- package/typeChecker-kravn7ns.js +0 -8
- /package/{index-0wae5ebk.js → index-meh558jy.js} +0 -0
- /package/{index-ss469dec.js → index-nz8prx9g.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// pkgs/@akanjs/devkit/fileSys.ts
|
|
3
|
-
import { lstat, stat } from "fs/promises";
|
|
3
|
+
import { lstat, rename, rm, stat } from "fs/promises";
|
|
4
4
|
import { Logger } from "akanjs/common";
|
|
5
5
|
|
|
6
6
|
class FileSys {
|
|
@@ -9,7 +9,7 @@ class FileSys {
|
|
|
9
9
|
return await Bun.file(path).exists();
|
|
10
10
|
}
|
|
11
11
|
static async dirExists(path) {
|
|
12
|
-
return await stat(path).then((
|
|
12
|
+
return await stat(path).then((stat) => stat.isDirectory()).catch(() => false);
|
|
13
13
|
}
|
|
14
14
|
static async exists(path) {
|
|
15
15
|
return await stat(path).then(() => true).catch(() => false);
|
|
@@ -34,6 +34,18 @@ class FileSys {
|
|
|
34
34
|
static async writeText(path, content) {
|
|
35
35
|
return await Bun.file(path).write(content);
|
|
36
36
|
}
|
|
37
|
+
static async writeTextAtomic(filePath, content) {
|
|
38
|
+
const temp = `${filePath}.${process.pid}.${Date.now().toString(36)}.tmp`;
|
|
39
|
+
try {
|
|
40
|
+
await Bun.write(temp, content);
|
|
41
|
+
await rename(temp, filePath);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
await rm(temp, { force: true }).catch(() => {
|
|
44
|
+
return;
|
|
45
|
+
});
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
37
49
|
static async writeJson(path, content) {
|
|
38
50
|
return await Bun.file(path).write(`${JSON.stringify(content, null, 2)}
|
|
39
51
|
`);
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./index-
|
|
3
|
+
script
|
|
4
|
+
} from "./index-znynzt5w.js";
|
|
5
|
+
import {
|
|
6
|
+
AppExecutor,
|
|
7
|
+
LibExecutor,
|
|
8
|
+
ModuleExecutor
|
|
9
|
+
} from "./index-qsq3q8fy.js";
|
|
5
10
|
import {
|
|
6
|
-
addFieldUiPolicyForType,
|
|
7
|
-
coerceFieldDefault,
|
|
8
11
|
compactDiagnostics,
|
|
9
12
|
createPrimitiveWriteReport,
|
|
13
|
+
sourceFile,
|
|
14
|
+
moduleComponentName,
|
|
15
|
+
moduleSourcePaths,
|
|
16
|
+
generatedFilesForSync,
|
|
17
|
+
validationCommandsForTarget,
|
|
18
|
+
nextActionsForTarget,
|
|
19
|
+
lowerlize,
|
|
20
|
+
normalizeFieldType,
|
|
10
21
|
ensureBaseTypeImport,
|
|
11
|
-
|
|
12
|
-
ensureEnumImport,
|
|
22
|
+
coerceFieldDefault,
|
|
13
23
|
fieldExpression,
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
viaBuilderParameterName,
|
|
25
|
+
insertIntoObject,
|
|
26
|
+
insertLightProjectionField,
|
|
27
|
+
insertTemplateField,
|
|
28
|
+
ensureEnumImport,
|
|
29
|
+
insertEnumClass,
|
|
30
|
+
insertDictionaryModelField,
|
|
16
31
|
hasConstantInputField,
|
|
17
32
|
hasDictionaryModelField,
|
|
18
|
-
|
|
33
|
+
ensureConstantTypeImport,
|
|
34
|
+
insertDictionaryEnum,
|
|
35
|
+
parseValues,
|
|
19
36
|
hasSourceParseErrors,
|
|
37
|
+
hasClassMethod,
|
|
20
38
|
insertClassMethod,
|
|
21
|
-
|
|
22
|
-
insertDictionaryModelField,
|
|
23
|
-
insertEnumClass,
|
|
24
|
-
insertIntoObject,
|
|
25
|
-
insertLightProjectionField,
|
|
39
|
+
hasSignalFactoryEntry,
|
|
26
40
|
insertSignalFactoryEntry,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
moduleComponentName,
|
|
30
|
-
moduleSourcePaths,
|
|
31
|
-
nextActionsForTarget,
|
|
32
|
-
normalizeFieldType,
|
|
33
|
-
parseValues,
|
|
34
|
-
sourceFile,
|
|
35
|
-
validationCommandsForTarget,
|
|
36
|
-
viaBuilderParameterName
|
|
37
|
-
} from "./index-rxkpk7n4.js";
|
|
41
|
+
addFieldUiPolicyForType
|
|
42
|
+
} from "./index-fc1bh0a7.js";
|
|
38
43
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./index-
|
|
41
|
-
import {
|
|
42
|
-
AppExecutor,
|
|
43
|
-
LibExecutor,
|
|
44
|
-
ModuleExecutor
|
|
45
|
-
} from "./index-z8ptfkzv.js";
|
|
44
|
+
ModuleScript
|
|
45
|
+
} from "./index-zmjppp25.js";
|
|
46
46
|
|
|
47
47
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
48
48
|
import { capitalize } from "akanjs/common";
|