@akanjs/cli 3.0.0-beta.17 → 3.0.0-beta.18
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/{CodeAgent-gjqnc2mg.js → CodeAgent-0035exh3.js} +2 -2
- package/{CodeTui-nd9hqvrw.js → CodeTui-eweg1hep.js} +205 -34
- package/{agent.command-n664dtcv.js → agent.command-65zqfkg0.js} +6 -6
- package/akanCode.js +5 -3
- package/{application.command-t5542jte.js → application.command-2wcj5da3.js} +18 -11
- package/{applicationBuildRunner-x4gbfn7y.js → applicationBuildRunner-m0hhgwsx.js} +6 -5
- package/{applicationReleasePackager-z61ep017.js → applicationReleasePackager-vykfzgx3.js} +1 -1
- package/buildBatch.proc.js +2 -2
- package/{capacitorApp-shv3ajh5.js → capacitorApp-2daqhb5h.js} +2 -2
- package/{cloud.command-dk5tj39k.js → cloud.command-960bgbf4.js} +8 -8
- package/{cloud.script-ch3xrw3s.js → cloud.script-qhcnqt1n.js} +8 -8
- package/{code.command-88sebgnn.js → code.command-4feh3ef7.js} +6 -6
- package/{context.command-pqsm5jrk.js → context.command-kzehkx48.js} +14 -14
- package/context.runner-z0rrcz7b.js +22 -0
- package/{devTui-gy6mendg.js → devTui-ffjsarqa.js} +3 -3
- package/{devTuiView-y1548wy6.js → devTuiView-1q1mdgrv.js} +1 -1
- package/{guideline.command-rpc2emw8.js → guideline.command-3w2g20x4.js} +8 -13
- package/guidelines/conventions/conventions.instruction.md +37 -22
- package/guidelines/queryRule/queryRule.instruction.md +1 -1
- package/guidelines/ssrRule/ssrRule.instruction.md +4 -2
- package/guidelines/transportRule/transportRule.instruction.md +10 -8
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +4 -3
- package/incrementalBuilder.proc.js +1 -1
- package/{index-bzakk0c2.js → index-14zrtgfa.js} +5 -3
- package/{index-57p9p179.js → index-3hpxeys1.js} +6 -5
- package/{index-sn7dnzq4.js → index-4r42ext5.js} +1 -1
- package/{index-3mg4h788.js → index-6q589y9t.js} +2 -2
- package/index-9dp031by.js +12 -0
- package/{index-p4p9t45x.js → index-bwxpk2cj.js} +4 -18
- package/{index-g9zghs4h.js → index-cjw1sj1x.js} +12 -12
- package/{index-te0y1c0m.js → index-d9fjz06h.js} +12 -7
- package/{index-4n4821gp.js → index-dw943k93.js} +4 -4
- package/{index-4cvpzkq6.js → index-ef228gzf.js} +3 -3
- package/{index-3cymrzsb.js → index-erfc1x40.js} +17 -3
- package/{index-ns128c4q.js → index-h94faz96.js} +13 -20
- package/index-jd01kj5r.js +656 -0
- package/{index-2sq06vv0.js → index-jwexzh42.js} +200 -54
- package/{index-kvzjda3v.js → index-m41ptvat.js} +5 -5
- package/{index-qh7brn20.js → index-mt2154s2.js} +6 -2
- package/{index-xjc7gg65.js → index-pn8mhpps.js} +23 -33
- package/{index-vpx68e4x.js → index-q9c3c0hy.js} +2 -2
- package/{index-v17gj504.js → index-rpgxs245.js} +2 -2
- package/{index-twq9p2sp.js → index-s5rhm04y.js} +0 -6
- package/{index-p0tew3fq.js → index-sbfk9daf.js} +8 -3
- package/{index-n8kt2wh6.js → index-wcg582a8.js} +5 -5
- package/{index-6na0sd2b.js → index-ycy302an.js} +5 -2
- package/{index-qhtj9y6j.js → index-yw6g3bbv.js} +74 -21
- package/{index-2pm1j01n.js → index-zmj143x7.js} +4 -4
- package/{index-zn8qgeqx.js → index-zq0mr3hh.js} +1 -1
- package/index.js +21 -21
- package/{library.command-m8p2r1dh.js → library.command-fp0nhr62.js} +3 -3
- package/{localRegistry.command-yppdqrxv.js → localRegistry.command-8y0ecxb9.js} +7 -7
- package/{module.command-mfzvqt0n.js → module.command-kqkn48t2.js} +5 -5
- package/{package.command-cgp2p2v5.js → package.command-qverjh22.js} +4 -4
- package/package.json +2 -2
- package/{page.command-taenb02b.js → page.command-94bwhd0g.js} +3 -3
- package/{primitive.command-7kpncmkk.js → primitive.command-2ydvtah2.js} +6 -6
- package/{prompter-9mn3kp36.js → prompter-1f8d9pcc.js} +1 -1
- package/{quality.command-1ar94hrw.js → quality.command-fa0gth4p.js} +3 -4
- package/{repair.command-n08t6j8p.js → repair.command-4qng2hpm.js} +5 -5
- package/{routeSourceValidator-apyqw7wk.js → routeSourceValidator-7ycnfz0e.js} +0 -6
- package/{scalar.command-mq8qfp4t.js → scalar.command-pb2y95sh.js} +4 -4
- package/skills/akan-code/SKILL.md +122 -0
- package/skills/akan-module/SKILL.md +2 -2
- package/skills/akan-store/SKILL.md +6 -2
- package/{subspace.command-jqv5n79w.js → subspace.command-vkxmwp74.js} +4 -4
- package/templates/__scalar/__model__/__model__.abstract.md.template +8 -0
- package/templates/appSample/lib/__scalar/workHistory/workHistory.abstract.ts +8 -39
- package/templates/appSample/lib/_noti/noti.abstract.ts +6 -29
- package/templates/appSample/lib/task/task.abstract.ts +12 -32
- package/templates/appSample/lib/task/task.signal.spec.ts +15 -18
- package/templates/appSample/lib/task/task.signal.test.ts +14 -0
- package/templates/appSample/lib/task/task.signal.ts +1 -1
- package/templates/appSample/srvkit/AuthGuard.ts +4 -1
- package/templates/appSample/srvkit/SessionInternalArg.ts +3 -1
- package/templates/crudPages/[__model__Id]/edit/page.tsx +2 -1
- package/templates/crudPages/[__model__Id]/page.tsx +2 -1
- package/templates/crudPages/new/page.tsx +2 -1
- package/templates/crudPages/page.tsx +2 -1
- package/templates/crudSinglePage/page.tsx +2 -1
- package/templates/module/__model__.signal.ts +12 -4
- package/templates/pkgRoot/tsconfig.json.template +2 -7
- package/templates/service/__model__.abstract.md.template +8 -0
- package/{tunnel.command-ht2es78c.js → tunnel.command-02cvp9nf.js} +2 -2
- package/{workflow.command-tvz4nm9n.js → workflow.command-132txnrh.js} +9 -9
- package/{workspace.command-txv1yv5e.js → workspace.command-d5wkswek.js} +21 -21
- package/context.runner-bys6ykcp.js +0 -22
- package/guidelines/agentRule/agentRule.generate.json +0 -31
- package/guidelines/componentRule/componentRule.generate.json +0 -31
- package/guidelines/conventions/conventions.generate.json +0 -25
- package/guidelines/cssRule/cssRule.generate.json +0 -31
- package/guidelines/docPageRule/docPageRule.generate.json +0 -31
- package/guidelines/docPageRule/docPageRule.instruction.md +0 -25
- package/guidelines/docSyncRule/docSyncRule.generate.json +0 -31
- package/guidelines/docSyncRule/docSyncRule.instruction.md +0 -25
- package/guidelines/enumConstant/enumConstant.generate.json +0 -31
- package/guidelines/enumConstant/enumConstant.instruction.md +0 -28
- package/guidelines/fieldRule/fieldRule.generate.json +0 -31
- package/guidelines/framework/framework.generate.json +0 -32
- package/guidelines/mcpRule/mcpRule.generate.json +0 -35
- package/guidelines/modelConstant/modelConstant.generate.json +0 -32
- package/guidelines/modelDictionary/modelDictionary.generate.json +0 -32
- package/guidelines/modelDocument/modelDocument.generate.json +0 -31
- package/guidelines/modelService/modelService.generate.json +0 -31
- package/guidelines/modelSignal/modelSignal.generate.json +0 -31
- package/guidelines/modelStore/modelStore.generate.json +0 -31
- package/guidelines/modelTemplate/modelTemplate.generate.json +0 -31
- package/guidelines/modelUnit/modelUnit.generate.json +0 -31
- package/guidelines/modelUtil/modelUtil.generate.json +0 -31
- package/guidelines/modelView/modelView.generate.json +0 -31
- package/guidelines/modelZone/modelZone.generate.json +0 -31
- package/guidelines/moduleCodegen/moduleCodegen.generate.json +0 -31
- package/guidelines/moduleCodegen/moduleCodegen.instruction.md +0 -28
- package/guidelines/moduleOverview/moduleOverview.generate.json +0 -31
- package/guidelines/queryRule/queryRule.generate.json +0 -31
- package/guidelines/recipeRule/recipeRule.generate.json +0 -31
- package/guidelines/runtimeRule/runtimeRule.generate.json +0 -25
- package/guidelines/scalarConstant/scalarConstant.generate.json +0 -32
- package/guidelines/scalarDictionary/scalarDictionary.generate.json +0 -32
- package/guidelines/scalarModule/scalarModule.generate.json +0 -31
- package/guidelines/sharedUiUsage/sharedUiUsage.generate.json +0 -31
- package/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +0 -25
- package/guidelines/ssrRule/ssrRule.generate.json +0 -31
- package/guidelines/transportRule/transportRule.generate.json +0 -31
- package/guidelines/utilUiUsage/utilUiUsage.generate.json +0 -31
- package/guidelines/utilUiUsage/utilUiUsage.instruction.md +0 -25
- package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +0 -24
- package/guidelines/workspaceRecipes/workspaceRecipes.generate.json +0 -34
- package/index-qt8dqgnf.js +0 -250
- package/templates/__scalar/__model__/__model__.abstract.md +0 -28
- package/templates/module/__model__.abstract.md +0 -28
- package/templates/service/__model__.abstract.md +0 -28
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isScannedRootEntry,
|
|
8
8
|
AppExecutor,
|
|
9
9
|
LibExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-bwxpk2cj.js";
|
|
11
11
|
import {
|
|
12
12
|
FileSys
|
|
13
13
|
} from "./index-q0y2jq9j.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
workflowRunArtifactPath,
|
|
21
21
|
workflowSyncDir
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-yw6g3bbv.js";
|
|
23
23
|
|
|
24
24
|
// pkgs/@akanjs/devkit/akanContext.ts
|
|
25
25
|
import { readdir } from "fs/promises";
|
|
@@ -29,12 +29,6 @@ class Prompter2 {
|
|
|
29
29
|
const guidelineRoot = await Prompter2.#getGuidelineRoot();
|
|
30
30
|
return (await fsPromise.readdir(guidelineRoot)).filter((name) => !name.startsWith("_")).sort();
|
|
31
31
|
}
|
|
32
|
-
static async getGuideJson(guideName) {
|
|
33
|
-
const guidelineRoot = await Prompter2.#getGuidelineRoot();
|
|
34
|
-
const filePath = `${guidelineRoot}/${guideName}/${guideName}.generate.json`;
|
|
35
|
-
const guideJson = await fsPromise.readFile(filePath, "utf-8");
|
|
36
|
-
return JSON.parse(guideJson);
|
|
37
|
-
}
|
|
38
32
|
static async getInstruction(guideName) {
|
|
39
33
|
const guideNames = await Prompter2.listGuidelines();
|
|
40
34
|
if (!guideNames.includes(guideName))
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ycy302an.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys
|
|
8
8
|
} from "./index-q0y2jq9j.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bwxpk2cj.js";
|
|
12
12
|
import {
|
|
13
13
|
TypeScriptDependencyScanner2
|
|
14
14
|
} from "./index-kcxmv48c.js";
|
|
@@ -136,7 +136,12 @@ class PackageRunner extends runner("package") {
|
|
|
136
136
|
throw new Error(`[package] failed to locate akanjs package.json from ${path2.dirname(Bun.main)}`);
|
|
137
137
|
}
|
|
138
138
|
async createPackage(workspace, pkgName) {
|
|
139
|
-
|
|
139
|
+
const workspaceRootPath = ["pkgs", ...pkgName.split("/")].map(() => "..").join("/");
|
|
140
|
+
await workspace.applyTemplate({
|
|
141
|
+
basePath: `pkgs/${pkgName}`,
|
|
142
|
+
template: "pkgRoot",
|
|
143
|
+
dict: { pkgName, workspaceRootPath }
|
|
144
|
+
});
|
|
140
145
|
await workspace.setPkgTsPaths(pkgName);
|
|
141
146
|
}
|
|
142
147
|
async removePackage(pkg) {
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
} from "./index-myj01w9r.js";
|
|
6
6
|
import {
|
|
7
7
|
script
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-ycy302an.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bwxpk2cj.js";
|
|
12
12
|
import {
|
|
13
13
|
ApplicationScript
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-h94faz96.js";
|
|
15
15
|
import {
|
|
16
16
|
PackageScript
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-sbfk9daf.js";
|
|
18
18
|
import {
|
|
19
19
|
CloudRunner
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-3hpxeys1.js";
|
|
21
21
|
|
|
22
22
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
23
23
|
import { Logger } from "akanjs/common";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
LibExecutor,
|
|
10
10
|
PkgExecutor,
|
|
11
11
|
ModuleExecutor
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-bwxpk2cj.js";
|
|
13
13
|
import {
|
|
14
14
|
getDirname2
|
|
15
15
|
} from "./index-6wwzs1bc.js";
|
|
@@ -327,7 +327,8 @@ var formatCommandHelp = (command, key) => {
|
|
|
327
327
|
const opt = arg.argsOption;
|
|
328
328
|
const flag = opt.flag ? `-${opt.flag}, ` : "";
|
|
329
329
|
const kebabName = camelToKebabCase2(arg.name);
|
|
330
|
-
const
|
|
330
|
+
const negation = opt.type === "boolean" && opt.default === true ? `, --no-${kebabName}` : "";
|
|
331
|
+
const optName = `${flag}--${kebabName}${negation}`;
|
|
331
332
|
const optDesc = opt.desc ?? "";
|
|
332
333
|
const defaultVal = opt.default !== undefined ? chalk.gray(` [default: ${String(opt.default)}]`) : "";
|
|
333
334
|
const choices = opt.enum ? chalk.gray(typeof opt.enum === "function" ? " ([dynamic choices])" : ` (${opt.enum.map(formatChoice).join(", ")})`) : "";
|
|
@@ -384,6 +385,8 @@ var handleOption = (programCommand, argMeta) => {
|
|
|
384
385
|
const kebabName = camelToKebabCase3(argMeta.name);
|
|
385
386
|
const choices = enumChoices && typeof enumChoices !== "function" ? normalizeEnumChoices(enumChoices) : null;
|
|
386
387
|
programCommand.option(`-${flag}, --${kebabName}${type === "boolean" ? " [boolean]" : ` <${kebabName}>`}`, `${desc}${ask ? ` (${ask})` : ""}${example ? ` (example: ${example})` : ""}${choices ? ` (choices: ${choices.map((choice) => choice.name).join(", ")})` : ""}`);
|
|
388
|
+
if (type === "boolean" && argMeta.argsOption.default === true)
|
|
389
|
+
programCommand.option(`--no-${kebabName}`, `turn off --${kebabName}`);
|
|
387
390
|
return programCommand;
|
|
388
391
|
};
|
|
389
392
|
var handleArgument = (programCommand, argMeta) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor,
|
|
4
4
|
LibExecutor
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bwxpk2cj.js";
|
|
6
6
|
|
|
7
7
|
// pkgs/@akanjs/devkit/workflow/utils.ts
|
|
8
8
|
var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `
|
|
@@ -416,6 +416,7 @@ var renderPrimitiveWriteReport = (report) => [
|
|
|
416
416
|
`);
|
|
417
417
|
var renderPrimitiveReport = (report, format = "markdown") => format === "json" ? jsonText(report) : renderPrimitiveWriteReport(report);
|
|
418
418
|
// pkgs/@akanjs/devkit/workflow/executor.ts
|
|
419
|
+
import { capitalize } from "akanjs/common";
|
|
419
420
|
import ts3 from "typescript";
|
|
420
421
|
|
|
421
422
|
// pkgs/@akanjs/devkit/workflow/moduleIndex.ts
|
|
@@ -531,20 +532,24 @@ var normalizeFieldType = (typeName) => {
|
|
|
531
532
|
};
|
|
532
533
|
return normalizedTypes[typeName.toLowerCase()] ?? typeName;
|
|
533
534
|
};
|
|
534
|
-
var
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
if (baseImport) {
|
|
540
|
-
if (baseImport.names.includes(typeName))
|
|
535
|
+
var ensureNamedImport = (content, moduleSpecifier, name) => {
|
|
536
|
+
const source = sourceFileFor("source.ts", content);
|
|
537
|
+
const namedImport = findNamedImport(source, moduleSpecifier);
|
|
538
|
+
if (namedImport) {
|
|
539
|
+
if (namedImport.names.includes(name))
|
|
541
540
|
return content;
|
|
542
|
-
const nextNames = [...
|
|
543
|
-
return spliceText(content,
|
|
541
|
+
const nextNames = [...namedImport.names, name].sort();
|
|
542
|
+
return spliceText(content, namedImport.namedBindingsStart, namedImport.namedBindingsEnd, `{ ${nextNames.join(", ")} }`);
|
|
544
543
|
}
|
|
545
|
-
return `import { ${
|
|
544
|
+
return `import { ${name} } from "${moduleSpecifier}";
|
|
546
545
|
${content}`;
|
|
547
546
|
};
|
|
547
|
+
var ensureBaseImport = (content, name) => ensureNamedImport(content, "akanjs/base", name);
|
|
548
|
+
var ensureBaseTypeImport = (content, typeName) => {
|
|
549
|
+
if (typeName !== "Int" && typeName !== "Float")
|
|
550
|
+
return content;
|
|
551
|
+
return ensureBaseImport(content, typeName);
|
|
552
|
+
};
|
|
548
553
|
var numericDefault = (typeName, rawDefault) => {
|
|
549
554
|
if (typeof rawDefault === "number") {
|
|
550
555
|
if (!Number.isFinite(rawDefault))
|
|
@@ -572,16 +577,16 @@ var booleanDefault = (rawDefault) => {
|
|
|
572
577
|
};
|
|
573
578
|
var dateDefault = (rawDefault) => {
|
|
574
579
|
if (typeof rawDefault === "number" && Number.isFinite(rawDefault))
|
|
575
|
-
return `
|
|
580
|
+
return `() => dayjs(${rawDefault})`;
|
|
576
581
|
if (typeof rawDefault !== "string")
|
|
577
582
|
return null;
|
|
578
583
|
const trimmed = rawDefault.trim();
|
|
579
584
|
if (!trimmed)
|
|
580
585
|
return null;
|
|
581
586
|
if (trimmed === "now")
|
|
582
|
-
return "
|
|
587
|
+
return "() => dayjs()";
|
|
583
588
|
if (!Number.isNaN(Date.parse(trimmed)))
|
|
584
|
-
return `
|
|
589
|
+
return `() => dayjs(${JSON.stringify(trimmed)})`;
|
|
585
590
|
return null;
|
|
586
591
|
};
|
|
587
592
|
var coerceFieldDefault = (typeName, defaultValue, options = {}) => {
|
|
@@ -1941,6 +1946,52 @@ var addFieldUiSurfaceInspection = (plan) => {
|
|
|
1941
1946
|
]
|
|
1942
1947
|
};
|
|
1943
1948
|
};
|
|
1949
|
+
var addMutationActionSurfaceInspection = (plan) => {
|
|
1950
|
+
const module = workflowStringInput(plan.inputs.module) ?? "<module>";
|
|
1951
|
+
const mutation = workflowStringInput(plan.inputs.mutation) ?? "<mutation>";
|
|
1952
|
+
const moduleClassName = moduleComponentName(module);
|
|
1953
|
+
return {
|
|
1954
|
+
recommendations: [
|
|
1955
|
+
{
|
|
1956
|
+
code: "add-mutation-action-surface-review",
|
|
1957
|
+
kind: "manual-action",
|
|
1958
|
+
target: `*/${moduleSourcePaths(module).store}`,
|
|
1959
|
+
action: `Name the endpoint's guards and add its dictionary .endpoint() entry with a .desc(). After sync, fetch.${mutation} exists; write a store action only for a toast, an optimistic update, or a multi-field write, and put the control that calls it in ${moduleClassName}.Util.tsx.`,
|
|
1960
|
+
confidence: "medium",
|
|
1961
|
+
message: `Workflow apply does not write store or UI code for ${module}.${mutation}; review whether a screen should call it.`
|
|
1962
|
+
}
|
|
1963
|
+
],
|
|
1964
|
+
nextActions: [
|
|
1965
|
+
{
|
|
1966
|
+
command: `akan workflow explain ${plan.workflow}`,
|
|
1967
|
+
reason: "Review action surface guidance before manually editing store or UI files."
|
|
1968
|
+
}
|
|
1969
|
+
]
|
|
1970
|
+
};
|
|
1971
|
+
};
|
|
1972
|
+
var addSliceViewSurfaceInspection = (plan) => {
|
|
1973
|
+
const module = workflowStringInput(plan.inputs.module) ?? "<module>";
|
|
1974
|
+
const slice = workflowStringInput(plan.inputs.slice) ?? "<slice>";
|
|
1975
|
+
const moduleClassName = moduleComponentName(module);
|
|
1976
|
+
return {
|
|
1977
|
+
recommendations: [
|
|
1978
|
+
{
|
|
1979
|
+
code: "add-slice-view-surface-review",
|
|
1980
|
+
kind: "manual-action",
|
|
1981
|
+
target: `*/${moduleSourcePaths(module).zone}`,
|
|
1982
|
+
action: `Fill in the service query stub and add the dictionary .slice() entry. After sync, load fetch.init${moduleClassName}${capitalize(slice)}() in the page and pass the result to a ${moduleClassName}.Zone as an init prop.`,
|
|
1983
|
+
confidence: "medium",
|
|
1984
|
+
message: `Workflow apply does not write page or Zone code for ${module}.${slice}; review where the list should render.`
|
|
1985
|
+
}
|
|
1986
|
+
],
|
|
1987
|
+
nextActions: [
|
|
1988
|
+
{
|
|
1989
|
+
command: `akan workflow explain ${plan.workflow}`,
|
|
1990
|
+
reason: "Review view surface guidance before manually editing Zone or page files."
|
|
1991
|
+
}
|
|
1992
|
+
]
|
|
1993
|
+
};
|
|
1994
|
+
};
|
|
1944
1995
|
var createWorkflowStepRegistry = ({
|
|
1945
1996
|
workspace,
|
|
1946
1997
|
createModule,
|
|
@@ -2032,12 +2083,14 @@ var createWorkflowStepRegistry = ({
|
|
|
2032
2083
|
mutation: workflowStringInput(plan.inputs.mutation)
|
|
2033
2084
|
})),
|
|
2034
2085
|
[workflowStepKey("add-mutation", "update-signal")]: inspect,
|
|
2086
|
+
[workflowStepKey("add-mutation", "update-action-surfaces")]: async (_step, plan) => addMutationActionSurfaceInspection(plan),
|
|
2035
2087
|
[workflowStepKey("add-slice", "update-service-query")]: async (_step, plan) => primitiveReportToWorkflowStepResult(await addSlice({
|
|
2036
2088
|
app: workflowStringInput(plan.inputs.app),
|
|
2037
2089
|
module: workflowStringInput(plan.inputs.module),
|
|
2038
2090
|
slice: workflowStringInput(plan.inputs.slice)
|
|
2039
2091
|
})),
|
|
2040
|
-
[workflowStepKey("add-slice", "update-signal-slice")]: inspect
|
|
2092
|
+
[workflowStepKey("add-slice", "update-signal-slice")]: inspect,
|
|
2093
|
+
[workflowStepKey("add-slice", "connect-view-surfaces")]: async (_step, plan) => addSliceViewSurfaceInspection(plan)
|
|
2041
2094
|
};
|
|
2042
2095
|
};
|
|
2043
2096
|
class WorkflowExecutor {
|
|
@@ -2126,7 +2179,7 @@ class WorkflowExecutor {
|
|
|
2126
2179
|
}
|
|
2127
2180
|
}
|
|
2128
2181
|
// pkgs/@akanjs/devkit/workflow/plan.ts
|
|
2129
|
-
import { capitalize } from "akanjs/common";
|
|
2182
|
+
import { capitalize as capitalize2 } from "akanjs/common";
|
|
2130
2183
|
var surfaceModes = new Set(["infer", "include", "skip"]);
|
|
2131
2184
|
var parseStringList = (value) => {
|
|
2132
2185
|
if (Array.isArray(value)) {
|
|
@@ -2269,7 +2322,7 @@ var createAddFieldRecommendations = (inputs) => {
|
|
|
2269
2322
|
kind: "placement",
|
|
2270
2323
|
target: paths.constant,
|
|
2271
2324
|
confidence: "high",
|
|
2272
|
-
message: `Insert ${field}: field(${normalizedType}) in ${
|
|
2325
|
+
message: `Insert ${field}: field(${normalizedType}) in ${capitalize2(module)}Input.`
|
|
2273
2326
|
},
|
|
2274
2327
|
{
|
|
2275
2328
|
code: "add-field-placement-dictionary",
|
|
@@ -2301,7 +2354,7 @@ var createAddFieldRecommendations = (inputs) => {
|
|
|
2301
2354
|
code: "add-field-light-projection-choice",
|
|
2302
2355
|
kind: "manual-action",
|
|
2303
2356
|
target: paths.constant,
|
|
2304
|
-
action: `Pass includeInLight=true when users should see ${field} in list/card data. Without it, the field can exist on ${
|
|
2357
|
+
action: `Pass includeInLight=true when users should see ${field} in list/card data. Without it, the field can exist on ${capitalize2(module)}Input but stay absent from Light${capitalize2(module)} projections.`,
|
|
2305
2358
|
confidence: "medium",
|
|
2306
2359
|
message: `${module}.${field} is not selected for list/card projection data.`
|
|
2307
2360
|
}
|
|
@@ -2312,7 +2365,7 @@ var createAddFieldRecommendations = (inputs) => {
|
|
|
2312
2365
|
kind: "placement",
|
|
2313
2366
|
target: paths.constant,
|
|
2314
2367
|
confidence: "high",
|
|
2315
|
-
message: `Add ${field} to Light${
|
|
2368
|
+
message: `Add ${field} to Light${capitalize2(module)} projection fields.`
|
|
2316
2369
|
}
|
|
2317
2370
|
] : [],
|
|
2318
2371
|
...surfaces && !templateRequested ? [
|
|
@@ -2329,7 +2382,7 @@ var createAddFieldRecommendations = (inputs) => {
|
|
|
2329
2382
|
code: "add-field-ui-manual-review",
|
|
2330
2383
|
kind: "manual-action",
|
|
2331
2384
|
target: paths.template,
|
|
2332
|
-
action: `After apply, verify what users can see: Template form auto-edit only runs when a generated ${module}Form hook and Layout.Template field list are present. Unit/View cards are not auto-edited, so ${field} may be stored on ${
|
|
2385
|
+
action: `After apply, verify what users can see: Template form auto-edit only runs when a generated ${module}Form hook and Layout.Template field list are present. Unit/View cards are not auto-edited, so ${field} may be stored on ${capitalize2(module)} but not shown in list/card UI until you place it in the local card layout.`,
|
|
2333
2386
|
confidence: "medium",
|
|
2334
2387
|
message: `${app}:${module}.${field} may need UI review for user-visible Template, Unit, and View behavior.`
|
|
2335
2388
|
},
|
|
@@ -2774,4 +2827,4 @@ for (const candidate of toolingRolloutCandidates) {
|
|
|
2774
2827
|
if (isRestrictedCandidate(candidate))
|
|
2775
2828
|
restrictedCandidates.set(candidate.packageName, candidate);
|
|
2776
2829
|
}
|
|
2777
|
-
export { jsonText, compactDiagnostics, workflowPlanApproval, createWorkflowApplyReport, workflowCommandsForPlan, workflowRunArtifactPath, writeWorkflowRunArtifact, workflowSyncDir, generatedFilePathsForTarget, writeGeneratedSyncState, readWorkflowRunArtifact, createWorkflowBaselineSummary, createWorkflowValidationRunReport, createDryRunWorkflowApplyReport, createRepairReport, createPrimitiveWriteReport, renderPrimitiveReport, sourceFile, moduleComponentName, moduleSourcePaths, generatedFilesForSync, validationCommandsForTarget, nextActionsForTarget, createPassedPrimitiveReport, scalarChangedFiles, lowerlize, bilingualLabelForField, bilingualDescriptionForField, normalizeFieldType, ensureBaseTypeImport, coerceFieldDefault, fieldExpression, viaBuilderParameterName, insertIntoObject, insertLightProjectionField, insertTemplateField, ensureEnumImport, insertEnumClass, insertDictionaryModelField, hasConstantInputField, hasDictionaryModelField, ensureConstantTypeImport, insertDictionaryEnum, parseValues, hasSourceParseErrors, hasClassMethod, insertClassMethod, hasSignalFactoryEntry, insertSignalFactoryEntry, buildAkanModuleContextIndex, addFieldUiPolicyForType, createWorkflowStepRegistry, WorkflowExecutor, listWorkflowSpecs, getWorkflowSpec, compactWorkflowInputs, createWorkflowPlan, renderWorkflowList, renderWorkflowExplain, renderWorkflowPlan, renderWorkflowApply, renderWorkflowValidation, renderRepairReport, renderWorkflowRunArtifact, toolingRolloutGate };
|
|
2830
|
+
export { jsonText, compactDiagnostics, workflowPlanApproval, createWorkflowApplyReport, workflowCommandsForPlan, workflowRunArtifactPath, writeWorkflowRunArtifact, workflowSyncDir, generatedFilePathsForTarget, writeGeneratedSyncState, readWorkflowRunArtifact, createWorkflowBaselineSummary, createWorkflowValidationRunReport, createDryRunWorkflowApplyReport, createRepairReport, createPrimitiveWriteReport, renderPrimitiveReport, sourceFile, moduleComponentName, moduleSourcePaths, generatedFilesForSync, validationCommandsForTarget, nextActionsForTarget, createPassedPrimitiveReport, scalarChangedFiles, lowerlize, bilingualLabelForField, bilingualDescriptionForField, normalizeFieldType, ensureNamedImport, ensureBaseImport, ensureBaseTypeImport, coerceFieldDefault, fieldExpression, viaBuilderParameterName, insertIntoObject, insertLightProjectionField, insertTemplateField, ensureEnumImport, insertEnumClass, insertDictionaryModelField, hasConstantInputField, hasDictionaryModelField, ensureConstantTypeImport, insertDictionaryEnum, parseValues, hasSourceParseErrors, hasClassMethod, insertClassMethod, hasSignalFactoryEntry, insertSignalFactoryEntry, buildAkanModuleContextIndex, addFieldUiPolicyForType, createWorkflowStepRegistry, WorkflowExecutor, listWorkflowSpecs, getWorkflowSpec, compactWorkflowInputs, createWorkflowPlan, renderWorkflowList, renderWorkflowExplain, renderWorkflowPlan, renderWorkflowApply, renderWorkflowValidation, renderRepairReport, renderWorkflowRunArtifact, toolingRolloutGate };
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
renderWorkflowApply,
|
|
21
21
|
renderWorkflowValidation,
|
|
22
22
|
renderWorkflowRunArtifact
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-yw6g3bbv.js";
|
|
24
24
|
import {
|
|
25
25
|
AkanContextAnalyzer
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-rpgxs245.js";
|
|
27
27
|
import {
|
|
28
28
|
runner
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-ycy302an.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/cli/workflow/workflow.runner.ts
|
|
32
32
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
@@ -146,7 +146,7 @@ var addFieldWorkflowSpec = {
|
|
|
146
146
|
values: { type: "string-list", description: "Comma-separated enum values when type is enum." },
|
|
147
147
|
default: {
|
|
148
148
|
type: "string",
|
|
149
|
-
description: "Optional default value. plan/apply coerce by field type: Int/Float to numeric literals, Boolean to true/false, Date to
|
|
149
|
+
description: "Optional default value. plan/apply coerce by field type: Int/Float to numeric literals, Boolean to true/false, Date (now, a timestamp, or a date string) to a () => dayjs(...) thunk, String/scalar to string literals, and enum only when the value is in values."
|
|
150
150
|
},
|
|
151
151
|
surfaces: {
|
|
152
152
|
type: "string-list",
|
package/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ycy302an.js";
|
|
8
8
|
import"./index-q0y2jq9j.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-bwxpk2cj.js";
|
|
10
10
|
import"./index-6wwzs1bc.js";
|
|
11
11
|
|
|
12
12
|
// pkgs/@akanjs/cli/commandManifest.ts
|
|
@@ -14,25 +14,25 @@ import path from "path";
|
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
16
16
|
var commandModules = {
|
|
17
|
-
workspace: async () => (await import("./workspace.command-
|
|
18
|
-
agent: async () => (await import("./agent.command-
|
|
19
|
-
code: async () => (await import("./code.command-
|
|
20
|
-
application: async () => (await import("./application.command-
|
|
21
|
-
library: async () => (await import("./library.command-
|
|
22
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
23
|
-
package: async () => (await import("./package.command-
|
|
24
|
-
module: async () => (await import("./module.command-
|
|
25
|
-
page: async () => (await import("./page.command-
|
|
26
|
-
context: async () => (await import("./context.command-
|
|
27
|
-
cloud: async () => (await import("./cloud.command-
|
|
28
|
-
subspace: async () => (await import("./subspace.command-
|
|
29
|
-
guideline: async () => (await import("./guideline.command-
|
|
30
|
-
scalar: async () => (await import("./scalar.command-
|
|
31
|
-
primitive: async () => (await import("./primitive.command-
|
|
32
|
-
quality: async () => (await import("./quality.command-
|
|
33
|
-
repair: async () => (await import("./repair.command-
|
|
34
|
-
workflow: async () => (await import("./workflow.command-
|
|
35
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
17
|
+
workspace: async () => (await import("./workspace.command-d5wkswek.js")).WorkspaceCommand,
|
|
18
|
+
agent: async () => (await import("./agent.command-65zqfkg0.js")).AgentCommand,
|
|
19
|
+
code: async () => (await import("./code.command-4feh3ef7.js")).CodeCommand,
|
|
20
|
+
application: async () => (await import("./application.command-2wcj5da3.js")).ApplicationCommand,
|
|
21
|
+
library: async () => (await import("./library.command-fp0nhr62.js")).LibraryCommand,
|
|
22
|
+
localRegistry: async () => (await import("./localRegistry.command-8y0ecxb9.js")).LocalRegistryCommand,
|
|
23
|
+
package: async () => (await import("./package.command-qverjh22.js")).PackageCommand,
|
|
24
|
+
module: async () => (await import("./module.command-kqkn48t2.js")).ModuleCommand,
|
|
25
|
+
page: async () => (await import("./page.command-94bwhd0g.js")).PageCommand,
|
|
26
|
+
context: async () => (await import("./context.command-kzehkx48.js")).ContextCommand,
|
|
27
|
+
cloud: async () => (await import("./cloud.command-960bgbf4.js")).CloudCommand,
|
|
28
|
+
subspace: async () => (await import("./subspace.command-vkxmwp74.js")).SubspaceCommand,
|
|
29
|
+
guideline: async () => (await import("./guideline.command-3w2g20x4.js")).GuidelineCommand,
|
|
30
|
+
scalar: async () => (await import("./scalar.command-pb2y95sh.js")).ScalarCommand,
|
|
31
|
+
primitive: async () => (await import("./primitive.command-2ydvtah2.js")).PrimitiveCommand,
|
|
32
|
+
quality: async () => (await import("./quality.command-fa0gth4p.js")).QualityCommand,
|
|
33
|
+
repair: async () => (await import("./repair.command-4qng2hpm.js")).RepairCommand,
|
|
34
|
+
workflow: async () => (await import("./workflow.command-132txnrh.js")).WorkflowCommand,
|
|
35
|
+
tunnel: async () => (await import("./tunnel.command-02cvp9nf.js")).TunnelCommand
|
|
36
36
|
};
|
|
37
37
|
var commandModuleIds = Object.keys(commandModules);
|
|
38
38
|
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ycy302an.js";
|
|
7
7
|
import"./index-q0y2jq9j.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-bwxpk2cj.js";
|
|
9
9
|
import"./index-6wwzs1bc.js";
|
|
10
10
|
import {
|
|
11
11
|
LibraryScript
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-6q589y9t.js";
|
|
13
13
|
|
|
14
14
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
15
15
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ycy302an.js";
|
|
8
8
|
import"./index-q0y2jq9j.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bwxpk2cj.js";
|
|
12
12
|
import"./index-6wwzs1bc.js";
|
|
13
13
|
import {
|
|
14
14
|
ApplicationScript
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-h94faz96.js";
|
|
16
|
+
import"./index-6q589y9t.js";
|
|
17
17
|
import"./index-hwkygn9s.js";
|
|
18
18
|
import"./index-7md2g9vw.js";
|
|
19
19
|
import"./index-myj01w9r.js";
|
|
20
20
|
import {
|
|
21
21
|
getNpmRegistryUrl,
|
|
22
22
|
CloudRunner
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-3hpxeys1.js";
|
|
24
24
|
import"./index-kcxmv48c.js";
|
|
25
25
|
import {
|
|
26
26
|
PackageScript
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
} from "./index-sbfk9daf.js";
|
|
28
|
+
import"./index-4r42ext5.js";
|
|
29
29
|
|
|
30
30
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
31
31
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
Sys,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ycy302an.js";
|
|
7
7
|
import"./index-q0y2jq9j.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-bwxpk2cj.js";
|
|
9
9
|
import"./index-6wwzs1bc.js";
|
|
10
10
|
import {
|
|
11
11
|
renderPrimitiveReport
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-yw6g3bbv.js";
|
|
13
|
+
import"./index-mt2154s2.js";
|
|
14
14
|
import {
|
|
15
15
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-pn8mhpps.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
19
19
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ycy302an.js";
|
|
7
7
|
import"./index-q0y2jq9j.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-bwxpk2cj.js";
|
|
9
9
|
import"./index-6wwzs1bc.js";
|
|
10
10
|
import"./index-kcxmv48c.js";
|
|
11
11
|
import {
|
|
12
12
|
PackageScript
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-sbfk9daf.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
16
16
|
class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
|
|
17
17
|
version: target({ desc: "Show version information for all packages" }).with(Workspace).exec(async function(workspace) {
|
|
18
18
|
await this.packageScript.version(workspace);
|
|
19
19
|
}),
|
|
20
|
-
createPackage: target({ desc: "Create a new package in pkgs
|
|
20
|
+
createPackage: target({ desc: "Create a new package in pkgs/<name>/" }).option("name", String, { desc: "name of package" }).with(Workspace).exec(async function(name, workspace) {
|
|
21
21
|
await this.packageScript.createPackage(workspace, name.toLowerCase().replace(/ /g, "-"));
|
|
22
22
|
}),
|
|
23
23
|
removePackage: target({ desc: "Remove a package from the workspace" }).with(Pkg).exec(async function(pkg) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.18",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@inquirer/prompts": "^8.4.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.0",
|
|
42
42
|
"@trapezedev/project": "^7.1.4",
|
|
43
|
-
"akanjs": "3.0.0-beta.
|
|
43
|
+
"akanjs": "3.0.0-beta.18",
|
|
44
44
|
"chalk": "^5.6.2",
|
|
45
45
|
"commander": "^14.0.3",
|
|
46
46
|
"dayjs": "^1.11.20",
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ycy302an.js";
|
|
7
7
|
import"./index-q0y2jq9j.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-bwxpk2cj.js";
|
|
9
9
|
import"./index-6wwzs1bc.js";
|
|
10
10
|
import {
|
|
11
11
|
PageScript
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-mt2154s2.js";
|
|
13
13
|
|
|
14
14
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
15
15
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ycy302an.js";
|
|
6
6
|
import"./index-q0y2jq9j.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-bwxpk2cj.js";
|
|
8
8
|
import"./index-6wwzs1bc.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-yw6g3bbv.js";
|
|
12
|
+
import"./index-mt2154s2.js";
|
|
13
|
+
import"./index-pn8mhpps.js";
|
|
14
14
|
import {
|
|
15
15
|
PrimitiveScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-d9fjz06h.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
19
19
|
import { Logger } from "akanjs/common";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ycy302an.js";
|
|
8
8
|
import"./index-q0y2jq9j.js";
|
|
9
9
|
import {
|
|
10
10
|
rootAllowedFiles,
|
|
11
11
|
rootAllowedDirs,
|
|
12
12
|
isAllowedLibFacetRootFile
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-bwxpk2cj.js";
|
|
14
14
|
import"./index-6wwzs1bc.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/devkit/qualityScanner.ts
|
|
@@ -28,7 +28,6 @@ class AbstractDoc {
|
|
|
28
28
|
siblingFiles;
|
|
29
29
|
static suffix = ".abstract.md";
|
|
30
30
|
static maxLines = 300;
|
|
31
|
-
static compactMinLines = 40;
|
|
32
31
|
static #facetRoots = "{lib,ui,webkit,srvkit,common,plugin}";
|
|
33
32
|
static isAbstractPath(filePath) {
|
|
34
33
|
return filePath.endsWith(AbstractDoc.suffix);
|
|
@@ -551,7 +550,7 @@ var RULE_FIXES = {
|
|
|
551
550
|
"akan.global.duplicate-exported-function-body": "Extract the shared implementation into a single exported helper and import it, instead of copying the body.",
|
|
552
551
|
"akan.file.recommended-max-lines": "Split the file by responsibility \u2014 move Zones, Utils, or subcomponents into sibling files.",
|
|
553
552
|
"akan.file.max-lines": "Break the file into smaller focused modules; keep one primary responsibility per file.",
|
|
554
|
-
"akan.file.abstract-max-lines": "
|
|
553
|
+
"akan.file.abstract-max-lines": "Trim the abstract by hand to a title, one sentence naming what the module owns, a `## Rules` list of the invariants the source cannot show, and an optional workflow chain.",
|
|
555
554
|
"akan.file.placeholder-export": "Remove the placeholder export; generated indexes should only re-export real modules.",
|
|
556
555
|
"akan.file.bang-comment-in-client": "Rewrite the marker as `// FIXME:` or `// TODO:`. Keep the bang form for server, srvkit, and CLI files.",
|
|
557
556
|
"akan.file.dictionary-stale-text": "Replace the scaffold text with real localized copy for this dictionary entry.",
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ycy302an.js";
|
|
7
7
|
import"./index-q0y2jq9j.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-bwxpk2cj.js";
|
|
9
9
|
import"./index-6wwzs1bc.js";
|
|
10
10
|
import"./index-by5gpp8x.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-yw6g3bbv.js";
|
|
12
|
+
import"./index-rpgxs245.js";
|
|
13
13
|
import {
|
|
14
14
|
RepairRunner
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-ef228gzf.js";
|
|
16
16
|
|
|
17
17
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
18
18
|
import { Logger } from "akanjs/common";
|