@akanjs/cli 3.1.1-rc.15 → 3.1.1-rc.17
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-gtwn7tmb.js → CodeAgent-fbcq8vks.js} +2 -2
- package/{CodeTui-v941fqdh.js → CodeTui-0626gxqd.js} +1 -1
- package/TunnelShare-2p24xxza.js +14 -0
- package/agent.command-hpza0pg9.js +46 -0
- package/akanCode.js +5 -3
- package/{application.command-j1reb9p1.js → application.command-3a7q1hs2.js} +11 -10
- package/{applicationBuildRunner-w20x63mz.js → applicationBuildRunner-s7yt71j4.js} +6 -5
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-zd2mfkm0.js → cloud.command-4vg0pcea.js} +15 -14
- package/cloud.script-nkmeyhet.js +25 -0
- package/{code.command-dyet4xn6.js → code.command-fbntb67p.js} +6 -6
- package/commandManifest.json +1 -1
- package/{context.command-79gxczm4.js → context.command-31rm54v0.js} +18 -17
- package/context.runner-w01a32ph.js +26 -0
- package/{guideline.command-xwkskvky.js → guideline.command-cv3by2ng.js} +3 -3
- package/guidelines/conventions/core.md +104 -0
- package/guidelines/conventions/rules/app.md +83 -0
- package/guidelines/conventions/rules/auth.md +45 -0
- package/guidelines/conventions/rules/config.md +56 -0
- package/guidelines/conventions/rules/constant.md +24 -0
- package/guidelines/conventions/rules/gates.md +31 -0
- package/guidelines/conventions/rules/layer.md +25 -0
- package/guidelines/conventions/rules/migration.md +27 -0
- package/guidelines/conventions/rules/module.md +90 -0
- package/guidelines/conventions/rules/page.md +56 -0
- package/guidelines/conventions/rules/sensitive.md +16 -0
- package/guidelines/conventions/rules/server.md +86 -0
- package/guidelines/conventions/rules/ssr.md +47 -0
- package/guidelines/conventions/rules/style.md +43 -0
- package/guidelines/conventions/rules/test.md +34 -0
- package/guidelines/conventions/rules/ts.md +95 -0
- package/guidelines/conventions/rules/tsx.md +75 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +1 -1
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +3 -3
- package/incrementalBuilder.proc.js +6 -6
- package/{index-pqdz7rat.js → index-05nxx4m5.js} +952 -47
- package/{index-41d3zx66.js → index-0ht91675.js} +37 -59
- package/{index-cz9g85xh.js → index-0zwznvv1.js} +1 -1
- package/{index-7ktk2hnz.js → index-0zyatd10.js} +2 -2
- package/{index-8jb5ep2e.js → index-12kzwak1.js} +3 -3
- package/{index-yknrmkmt.js → index-1dhf8ymv.js} +2 -2
- package/{index-qmeh0s05.js → index-3gccwenr.js} +2 -2
- package/{index-hdzjaq7s.js → index-3txrjt6n.js} +2 -2
- package/{index-tzzs52h0.js → index-57q1ayd2.js} +18 -1240
- package/index-5kh9scvs.js +514 -0
- package/index-5n5hds19.js +1246 -0
- package/{index-pc9ps0hx.js → index-6269mf2s.js} +10 -9
- package/{index-1e2955yd.js → index-64g9fsjy.js} +43 -12
- package/index-7zeb5r1p.js +653 -0
- package/{index-kr62ph5a.js → index-8s8b4eba.js} +45 -4
- package/{index-wvvwdzfw.js → index-922k2zwq.js} +3 -3
- package/{index-brpk7gd8.js → index-9ndw5d8j.js} +7 -7
- package/{index-xeh7m2j5.js → index-et6ce601.js} +1 -1
- package/{index-jtydvvq7.js → index-f5adsa58.js} +4 -4
- package/index-fbewhg4g.js +590 -0
- package/{index-7abjzny1.js → index-hm7x0c11.js} +33 -37
- package/{index-rshwdv9w.js → index-hvv5rnaq.js} +2 -2
- package/index-jje9qzyq.js +27 -0
- package/index-js1gj6f6.js +410 -0
- package/{index-2qzzp0c9.js → index-kjrvwzav.js} +3 -3
- package/index-m5n3ka0p.js +18 -0
- package/index-m6r88hhr.js +3582 -0
- package/{index-4rwfh2de.js → index-mt0wa941.js} +4 -4
- package/{index-553xyb55.js → index-mwj9q2ya.js} +1 -1
- package/{index-5nd1wtkv.js → index-p6x5b7hr.js} +1 -1
- package/index-r2wedvqn.js +138 -0
- package/{index-ygy8c12j.js → index-rvynj5gz.js} +1 -1
- package/{index-nmy1rana.js → index-tdv66eah.js} +4 -4
- package/{index-8rvwgd1r.js → index-w134p86k.js} +1 -1
- package/{index-jjd97ya6.js → index-wfczhj1z.js} +14 -36
- package/{index-dy0jx9ay.js → index-wwe9rsrx.js} +14 -0
- package/{index-kbbyzs6j.js → index-x5ecanqh.js} +2 -2
- package/{index-ch1sv7ke.js → index-zre4m2ce.js} +9 -21
- package/index.js +23 -22
- package/{library.command-td8t85kb.js → library.command-sh70fyvy.js} +3 -3
- package/{localRegistry.command-jx9zkmxf.js → localRegistry.command-2nbyy84d.js} +17 -14
- package/{module.command-j70mqgpp.js → module.command-n0bmtzwy.js} +5 -5
- package/{package.command-1b1v6k5v.js → package.command-7h9r51bz.js} +3 -3
- package/package.json +2 -2
- package/{page.command-m31w2tsz.js → page.command-vjtpfbb1.js} +3 -3
- package/{pipeline.command-q7b8wy55.js → pipeline.command-c93se3ar.js} +2 -2
- package/{primitive.command-4zrbhkb9.js → primitive.command-a3075qp2.js} +6 -6
- package/{projectTypecheck-synx6qff.js → projectTypecheck-sf9xwaga.js} +1 -1
- package/{prompter-76k56b37.js → prompter-hgcta8pb.js} +1 -1
- package/quality.command-dw1y9hmy.js +76 -0
- package/{repair.command-98n6zxg7.js → repair.command-tg57d8yt.js} +5 -5
- package/{scalar.command-rak5pjk3.js → scalar.command-cwzge353.js} +4 -4
- package/skills/akan-agent/SKILL.md +36 -0
- package/skills/akan-debug/SKILL.md +3 -3
- package/skills/akan-deps/SKILL.md +1 -2
- package/skills/akan-mcp/SKILL.md +40 -0
- package/skills/akan-page/SKILL.md +44 -0
- package/skills/akan-query/SKILL.md +38 -0
- package/skills/akan-runtime/SKILL.md +40 -0
- package/skills/akan-scaffold/SKILL.md +16 -6
- package/skills/akan-transport/SKILL.md +40 -0
- package/skills/akan-validate/SKILL.md +13 -11
- package/{subspace.command-ej0rk116.js → subspace.command-3h03c7kc.js} +8 -8
- package/templates/workspaceRoot/.gitignore.template +3 -0
- package/templates/workspaceRoot/AGENTS.md.template +4 -10
- package/{tunnel.command-kdx3amrc.js → tunnel.command-czaz6ys4.js} +7 -7
- package/{typeChecker-px49mezc.js → typeChecker-j2jdnqsr.js} +1 -1
- package/typecheck.proc.js +6 -1
- package/verify.command-nzwhtz71.js +91 -0
- package/{workflow.command-gffk9nj9.js → workflow.command-srhky88x.js} +47 -13
- package/workspace.command-9stchcd2.js +262 -0
- package/TunnelShare-26ty9skr.js +0 -14
- package/agent.command-h82gepwn.js +0 -25
- package/cloud.script-vdj8ymch.js +0 -24
- package/context.runner-ejag7mhr.js +0 -25
- package/guidelines/conventions/conventions.instruction.md +0 -617
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +0 -291
- package/index-6pzt55w3.js +0 -279
- package/index-y5m4j2w6.js +0 -856
- package/index-zzvvc845.js +0 -74
- package/quality.command-cy0pgqjz.js +0 -1478
- package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +0 -69
- package/templates/workspaceRoot/docs/GENERATED.md.template +0 -55
- package/workspace.command-097hv6n1.js +0 -521
package/index-zzvvc845.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getDirname2
|
|
4
|
-
} from "./index-52w0fvh8.js";
|
|
5
|
-
|
|
6
|
-
// pkgs/@akanjs/devkit/prompter.ts
|
|
7
|
-
import fsPromise from "fs/promises";
|
|
8
|
-
import { input, select } from "@inquirer/prompts";
|
|
9
|
-
class Prompter2 {
|
|
10
|
-
static async#getGuidelineRoot() {
|
|
11
|
-
const dirname = getDirname2(import.meta.url);
|
|
12
|
-
const candidates = [`${dirname}/guidelines`, `${dirname}/../cli/guidelines`];
|
|
13
|
-
for (const candidate of candidates) {
|
|
14
|
-
try {
|
|
15
|
-
await fsPromise.access(candidate);
|
|
16
|
-
return candidate;
|
|
17
|
-
} catch {}
|
|
18
|
-
}
|
|
19
|
-
return candidates[0];
|
|
20
|
-
}
|
|
21
|
-
static async selectGuideline() {
|
|
22
|
-
const guideNames = await Prompter2.listGuidelines();
|
|
23
|
-
return await select({
|
|
24
|
-
message: "Select a guideline",
|
|
25
|
-
choices: guideNames.map((name) => ({ name, value: name }))
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
static async listGuidelines() {
|
|
29
|
-
const guidelineRoot = await Prompter2.#getGuidelineRoot();
|
|
30
|
-
return (await fsPromise.readdir(guidelineRoot)).filter((name) => !name.startsWith("_")).sort();
|
|
31
|
-
}
|
|
32
|
-
static async getInstruction(guideName) {
|
|
33
|
-
const guideNames = await Prompter2.listGuidelines();
|
|
34
|
-
if (!guideNames.includes(guideName))
|
|
35
|
-
throw new Error(`Unknown guideline "${guideName}". Available: ${guideNames.join(", ")}`);
|
|
36
|
-
const guidelineRoot = await Prompter2.#getGuidelineRoot();
|
|
37
|
-
return await fsPromise.readFile(`${guidelineRoot}/${guideName}/${guideName}.instruction.md`, "utf-8");
|
|
38
|
-
}
|
|
39
|
-
static async getUpdateRequest(guideName) {
|
|
40
|
-
return await input({
|
|
41
|
-
message: `What do you want to update in ${guideName}?`
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
async makeTsFileUpdatePrompt({ context, request }) {
|
|
45
|
-
return `You are a senior developer writing TypeScript-based programs using Akan.js, an in-house framework. Here's an overview of the Akan.js framework:
|
|
46
|
-
${await this.getDocumentation("framework")}
|
|
47
|
-
Please understand the following background information, write code that meets the requirements, verify that it satisfies the validation conditions, and return the result.
|
|
48
|
-
|
|
49
|
-
# Code Style
|
|
50
|
-
- Use double quotes for all string literals in TypeScript/TSX code. Do not use single quotes.
|
|
51
|
-
|
|
52
|
-
# Background Information
|
|
53
|
-
\`\`\`markdown
|
|
54
|
-
${context}
|
|
55
|
-
\`\`\`
|
|
56
|
-
|
|
57
|
-
# Requirements
|
|
58
|
-
\`\`\`markdown
|
|
59
|
-
${request}
|
|
60
|
-
\`\`\`
|
|
61
|
-
`;
|
|
62
|
-
}
|
|
63
|
-
async getDocumentation(guideName) {
|
|
64
|
-
const guidelineRoot = await Prompter2.#getGuidelineRoot();
|
|
65
|
-
const filePath = `${guidelineRoot}/${guideName}/${guideName}.instruction.md`;
|
|
66
|
-
const document = await fsPromise.readFile(filePath, "utf-8");
|
|
67
|
-
return `\`\`\`markdown
|
|
68
|
-
${document}
|
|
69
|
-
\`\`\`
|
|
70
|
-
`;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export { Prompter2 };
|