@akanjs/cli 3.0.0-beta.13 → 3.0.0-beta.15
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-d3wvbq8q.js +9 -0
- package/CodeAgentRpcHost-qvwfv0n9.js +7 -0
- package/CodeTui-6c9a2wtk.js +1103 -0
- package/README.md +3 -0
- package/{TunnelShare-2kwqb1j6.js → TunnelShare-r5tc2qk5.js} +2 -2
- package/{agent.command-7357vxd8.js → agent.command-9cg8m87z.js} +6 -6
- package/akanCode.js +100 -0
- package/{application.command-8s8ns95d.js → application.command-x75men32.js} +6 -15
- package/{applicationBuildRunner-4f1wrba0.js → applicationBuildRunner-d3702f1w.js} +2 -2
- package/{applicationReleasePackager-jkjmy5ee.js → applicationReleasePackager-2kdyj3te.js} +1 -1
- package/buildBatch.proc.js +2 -2
- package/{capacitorApp-hqvsrec4.js → capacitorApp-qk975zyz.js} +2 -2
- package/{cloud.command-p5dnhft9.js → cloud.command-a09wggfq.js} +10 -22
- package/cloud.script-qd3hpybf.js +20 -0
- package/code.command-ca7rpmez.js +147 -0
- package/commandManifest.json +1 -1
- package/consoleToStderr-h5bryj94.js +7 -0
- package/{context.command-wsjt98c1.js → context.command-9kbm0527.js} +14 -15
- package/context.runner-wtqpw7mh.js +22 -0
- package/{devTui-myg3pqeg.js → devTui-v19fbnpk.js} +114 -8
- package/{devTuiView-gz2fbf4v.js → devTuiView-pa63jrjq.js} +1 -1
- package/guideline.command-qvrh5pnx.js +48 -0
- package/guidelines/agentRule/agentRule.instruction.md +46 -15
- package/guidelines/conventions/conventions.instruction.md +9 -4
- package/guidelines/moduleCodegen/moduleCodegen.instruction.md +1 -1
- package/guidelines/workspaceRecipes/workspaceRecipes.generate.json +1 -0
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +62 -0
- package/incrementalBuilder.proc.js +1 -1
- package/{index-bz10w9t2.js → index-0qvq9aeb.js} +6 -16
- package/{index-jwjaf9fy.js → index-1p146w4s.js} +44 -44
- package/{index-7f4dsf9v.js → index-1sggq0m8.js} +1 -1
- package/{index-15r9a10e.js → index-3dmebxnk.js} +2 -2
- package/{index-vrwdx0zx.js → index-3hr7cpy1.js} +1 -1
- package/{index-s3fvrydw.js → index-5hy11qaq.js} +9 -9
- package/{index-8pkvrcv1.js → index-658xafm1.js} +3 -3
- package/index-7md2g9vw.js +6 -0
- package/{index-ys7dvdb3.js → index-84b080zh.js} +1 -1
- package/index-8k16atqy.js +82 -0
- package/{index-t3c045et.js → index-91brpnzb.js} +8 -21
- package/{index-em4swemt.js → index-bchkysja.js} +3 -3
- package/{index-j7rwsd23.js → index-bzjnp9ap.js} +22 -80
- package/{index-cnzm1wn5.js → index-chp5gqmm.js} +88 -169
- package/{index-h3g1152j.js → index-d35a8vc0.js} +4 -4
- package/{index-1nwxbr2y.js → index-ea1smknd.js} +2 -2
- package/index-egt4vfgb.js +69 -0
- package/index-erzcytap.js +2434 -0
- package/{index-sh88vtye.js → index-f4gpcp98.js} +1 -1
- package/{index-b3ae16mg.js → index-gca9y01h.js} +1 -1
- package/{index-wmb05v4q.js → index-gm76f0qb.js} +1 -1
- package/{index-649svkyt.js → index-myj01w9r.js} +8 -15
- package/index-sxg87a8f.js +727 -0
- package/{index-h7yw2z9n.js → index-twq9p2sp.js} +8 -8
- package/index-v156f836.js +234 -0
- package/index-v1y3cx0k.js +61 -0
- package/{index-t8gvwcrx.js → index-va2je2qm.js} +2 -2
- package/index-wfwknnje.js +124 -0
- package/index-x7g1qzpt.js +121 -0
- package/index.js +21 -20
- package/{library.command-1f9h2ex6.js → library.command-n89re6cx.js} +3 -3
- package/{localRegistry.command-w6w35j4r.js → localRegistry.command-1mmnegph.js} +9 -9
- package/{module.command-8zkq0q9q.js → module.command-4m82zgfp.js} +7 -10
- package/{package.command-y2rh4np7.js → package.command-9dv0p6zq.js} +3 -3
- package/package.json +9 -5
- package/{page.command-e5h29fyt.js → page.command-q86b0m0z.js} +3 -3
- package/{primitive.command-qm7tybpn.js → primitive.command-kaneasq6.js} +6 -9
- package/prompter-9mn3kp36.js +8 -0
- package/{quality.command-5evdd263.js → quality.command-sgapx315.js} +65 -5
- package/{repair.command-c2amvt74.js → repair.command-efc5gdbq.js} +5 -5
- package/{scalar.command-a1ewkmab.js → scalar.command-e2rpkhqy.js} +6 -9
- package/skills/akan-debug/SKILL.md +42 -0
- package/skills/akan-deps/SKILL.md +50 -0
- package/skills/akan-err/SKILL.md +39 -0
- package/skills/akan-module/SKILL.md +45 -0
- package/skills/akan-scaffold/SKILL.md +76 -0
- package/skills/akan-scalar/SKILL.md +52 -0
- package/skills/akan-service/SKILL.md +34 -0
- package/skills/akan-store/SKILL.md +63 -0
- package/skills/akan-ui/SKILL.md +63 -0
- package/skills/akan-validate/SKILL.md +44 -0
- package/{subspace.command-3w5x13a1.js → subspace.command-005rz1x6.js} +5 -5
- package/{tunnel.command-09n8h4s1.js → tunnel.command-66j9estx.js} +4 -4
- package/{workflow.command-y3fct1rq.js → workflow.command-z1xcm4c7.js} +9 -12
- package/{workspace.command-p6td4qad.js → workspace.command-4ahrhp3k.js} +23 -22
- package/abstractCompactor-g04vqcff.js +0 -102
- package/cloud.script-gxpbhras.js +0 -20
- package/guideline.command-snqzfyt0.js +0 -360
- package/index-5tw8t1ts.js +0 -338
- package/index-j1tajctp.js +0 -229
- package/index-kpnp2e10.js +0 -841
- package/index-meh558jy.js +0 -65
- /package/{index-5nyznra1.js → index-p1j0cyvd.js} +0 -0
|
@@ -13,8 +13,7 @@ var configPath = `${basePath}/config.json`;
|
|
|
13
13
|
var getDefaultHostConfig = (host = GlobalConfig.akanCloudHost) => ({ host });
|
|
14
14
|
var defaultAkanGlobalConfig = {
|
|
15
15
|
cloudHost: {},
|
|
16
|
-
remoteEnvServers: {}
|
|
17
|
-
llm: null
|
|
16
|
+
remoteEnvServers: {}
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
// pkgs/@akanjs/devkit/cloud/globalConfig.ts
|
|
@@ -44,14 +43,6 @@ class GlobalConfig {
|
|
|
44
43
|
akanConfig.cloudHost[config.host] = GlobalConfig.toHostConfigDto(config);
|
|
45
44
|
await GlobalConfig.#setAkanGlobalConfig(akanConfig);
|
|
46
45
|
}
|
|
47
|
-
static async getLlmConfig() {
|
|
48
|
-
const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
|
|
49
|
-
return akanConfig.llm ?? null;
|
|
50
|
-
}
|
|
51
|
-
static async setLlmConfig(llmConfig) {
|
|
52
|
-
const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
|
|
53
|
-
await GlobalConfig.#setAkanGlobalConfig({ ...akanConfig, llm: llmConfig });
|
|
54
|
-
}
|
|
55
46
|
static async getRemoteEnvServers() {
|
|
56
47
|
const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
|
|
57
48
|
return akanConfig.remoteEnvServers;
|
|
@@ -119,13 +110,14 @@ class HttpClient {
|
|
|
119
110
|
this.baseUrl = baseUrl;
|
|
120
111
|
this.headers = headers;
|
|
121
112
|
}
|
|
122
|
-
async get(url, { headers } = {}) {
|
|
113
|
+
async get(url, { headers, signal } = {}) {
|
|
123
114
|
const response = await fetch(`${this.baseUrl}${url}`, {
|
|
124
115
|
headers: {
|
|
125
116
|
"Content-Type": "application/json",
|
|
126
117
|
...this.headers,
|
|
127
118
|
...headers
|
|
128
|
-
}
|
|
119
|
+
},
|
|
120
|
+
...signal ? { signal } : {}
|
|
129
121
|
});
|
|
130
122
|
return await HttpClient.#body(response, url);
|
|
131
123
|
}
|
|
@@ -137,12 +129,13 @@ class HttpClient {
|
|
|
137
129
|
throw new Error(`Failed to download file: ${response.status} ${response.statusText}`);
|
|
138
130
|
await Bun.write(localPath, response);
|
|
139
131
|
}
|
|
140
|
-
async post(url, data, { headers } = {}) {
|
|
132
|
+
async post(url, data, { headers, signal } = {}) {
|
|
141
133
|
const isFormData = data instanceof FormData;
|
|
142
134
|
const response = await fetch(`${this.baseUrl}${url}`, {
|
|
143
135
|
method: "POST",
|
|
144
136
|
body: isFormData ? data : JSON.stringify(data),
|
|
145
|
-
headers: isFormData ? { ...this.headers, ...headers } : { "Content-Type": "application/json", ...this.headers, ...headers }
|
|
137
|
+
headers: isFormData ? { ...this.headers, ...headers } : { "Content-Type": "application/json", ...this.headers, ...headers },
|
|
138
|
+
...signal ? { signal } : {}
|
|
146
139
|
});
|
|
147
140
|
return await HttpClient.#body(response, url);
|
|
148
141
|
}
|
|
@@ -229,7 +222,7 @@ class CloudApi {
|
|
|
229
222
|
return await this.#api.get(`/tunnel/tunnelListInSelf`);
|
|
230
223
|
}
|
|
231
224
|
async revokeTunnel(code) {
|
|
232
|
-
return await this.#api.post(`/tunnel/revokeTunnel`, { code });
|
|
225
|
+
return await this.#api.post(`/tunnel/revokeTunnel`, { code }, { signal: AbortSignal.timeout(5000) });
|
|
233
226
|
}
|
|
234
227
|
async getRemoteSelf() {
|
|
235
228
|
try {
|