@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.31
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 +2 -1
- package/CodeAgent-c17abdbf.js +11 -0
- package/{CodeTui-wv9yf7eq.js → CodeTui-jed1nj82.js} +822 -666
- package/README.ko.md +26 -1
- package/README.md +26 -1
- package/TunnelShare-mbfcaqg0.js +18 -0
- package/agent.command-9whnc6vb.js +56 -0
- package/akanCode.js +12 -12
- package/appExecutor-020cyesq.js +11 -0
- package/{application.command-6515t682.js → application.command-4eqvyxkw.js} +77 -36
- package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-frtcrqfd.js} +18 -13
- package/buildBatch.proc.js +26 -11
- package/{cloud.command-32esk0v1.js → cloud.command-hbvmeezn.js} +31 -28
- package/cloud.script-9kmbr3d6.js +35 -0
- package/{code.command-xk7rwq2x.js → code.command-0ayrenk4.js} +14 -9
- package/{context.command-jwenkkf0.js → context.command-php852kf.js} +28 -23
- package/context.runner-nngmn7c0.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-cd03z4mx.js → devTui-rf374y2w.js} +1 -1
- package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
- package/{guideline.command-w6yqpdec.js → guideline.command-w1grfwh7.js} +9 -4
- package/guidelines/agentRule/agentRule.instruction.md +29 -12
- package/guidelines/akanApi/akanApi.instruction.md +6 -4
- package/guidelines/conventions/core.md +23 -5
- package/guidelines/conventions/rules/app.md +4 -1
- package/guidelines/conventions/rules/page.md +5 -0
- package/guidelines/conventions/rules/ts.md +3 -3
- package/guidelines/errorCodes/errorCodes.instruction.md +164 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +171 -2
- package/guidelines/pageRule/pageRule.instruction.md +15 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -6
- package/guidelines/transportRule/transportRule.instruction.md +8 -1
- package/incrementalBuilder.proc.js +574 -410
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-xrmrvafh.js → index-0gaj78wn.js} +808 -694
- package/{index-j1hjb477.js → index-11d7nh8a.js} +1 -1
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
- package/{index-43acpsc7.js → index-28nk8w3j.js} +12 -12
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-8gm4yag8.js → index-42jhx2ya.js} +6 -6
- package/{index-2rqyrvcy.js → index-4st0hq72.js} +62 -33
- package/{index-bak9f2br.js → index-5d57kx0s.js} +15 -11
- package/{index-bdmgqzb5.js → index-6469101k.js} +58 -29
- package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
- package/{index-54s6knqe.js → index-6zb17wcm.js} +12 -10
- package/{index-0ba8nj4d.js → index-7bs463x7.js} +50 -38
- package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
- package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
- package/{index-20wvskt8.js → index-9wab2ngg.js} +1 -1
- package/{index-2eym1yjb.js → index-9wjrwjgz.js} +288 -209
- package/{index-kcpk2d20.js → index-at6haq2x.js} +1474 -1139
- package/{index-6h775rv3.js → index-ba2xd32s.js} +53 -12
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-ngpt3zz3.js → index-bj8s07s7.js} +525 -440
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-vbhx60x5.js → index-cb91b6d8.js} +2140 -2165
- package/index-dss3ds74.js +127 -0
- package/{index-e22zedc2.js → index-f16kr6vj.js} +3 -3
- package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
- package/{index-djc5nxpy.js → index-fp5xf6ef.js} +6 -6
- package/{index-qrk06tfp.js → index-g45y5f3e.js} +2 -2
- package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
- package/index-j4yvgfhr.js +70 -0
- package/{index-ytpmk3pb.js → index-jgj31xvw.js} +18 -11
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-s34v3y28.js → index-m3t28rt3.js} +11 -11
- package/{index-dpgywgeq.js → index-m5gg0wzv.js} +27 -16
- package/index-na8r4a27.js +30 -0
- package/{index-h0p6n4k1.js → index-nm7nt9vm.js} +3 -3
- package/{index-j4hkbzj6.js → index-p06kfhdf.js} +6 -6
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
- package/{index-zhkcab5a.js → index-prgvqqxe.js} +580 -364
- package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
- package/{index-sc0g6zbm.js → index-rwgqba9p.js} +24 -11
- package/{index-zcdmnfrf.js → index-s3m89wt2.js} +9 -9
- package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
- package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
- package/{index-ddk49ypz.js → index-v929w7j7.js} +133 -49
- package/index-va90m8nd.js +25 -0
- package/index-vjbne22r.js +80 -0
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
- package/{index-84c2pgak.js → index-yvzm8mby.js} +94 -82
- package/{index-wr9magsr.js → index-yxkjsyx8.js} +3 -3
- package/index-ze48c0vd.js +788 -0
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +29 -24
- package/libExecutor-tq994592.js +10 -0
- package/{library.command-qs8beggh.js → library.command-x219mhcx.js} +9 -4
- package/{localRegistry.command-hz4ged9n.js → localRegistry.command-zvdcejhn.js} +30 -24
- package/{module.command-z9js77m2.js → module.command-k6cwcm7g.js} +17 -8
- package/{package.command-zqenq8c0.js → package.command-vw7x09f8.js} +13 -8
- package/package.json +2 -2
- package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
- package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
- package/pkgExecutor-stde3yc3.js +10 -0
- package/{primitive.command-v5kypwy4.js → primitive.command-edydvh07.js} +13 -8
- package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-q55j2htd.js → quality.command-mdb45vyr.js} +23 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-7ssbbdq2.js → repair.command-kvtaeecy.js} +13 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-p5jb7z57.js → scalar.command-sjt9p5e1.js} +11 -6
- package/skills/akan-debug/SKILL.md +10 -3
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +17 -2
- package/skills/akan-scaffold/SKILL.md +2 -2
- package/skills/akan-transport/SKILL.md +2 -0
- package/skills/akan-validate/SKILL.md +1 -0
- package/{subspace.command-7wxy6ptj.js → subspace.command-mkkqync4.js} +29 -23
- package/templates/app/page/_layout.tsx +13 -0
- package/templates/app/page/styles.css.template +40 -0
- package/templates/appSample/page/_index.tsx +9 -9
- package/templates/appSample/page/_layout.tsx +1 -0
- package/templates/appSample/page/styles.css.template +40 -5
- package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
- package/templates/biomeForm.ts +1 -1
- package/templates/env/_env.server.type.ts +1 -1
- package/templates/facetIndex/index.ts +2 -37
- package/templates/lib/sig.ts +0 -4
- package/templates/lib/useClient.ts +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +2 -1
- package/{tunnel.command-22g11n0x.js → tunnel.command-tr5b3030.js} +17 -12
- package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
- package/typecheck.proc.js +6 -3
- package/{verify.command-m0wnndd7.js → verify.command-0p9h8tpp.js} +26 -20
- package/{workflow.command-jx8dqs9n.js → workflow.command-9mfcwqzj.js} +37 -19
- package/{workspace.command-ca9kfyt3.js → workspace.command-5hjtmcfs.js} +61 -54
- package/CodeAgent-e9c712an.js +0 -11
- package/TunnelShare-zkfkrw8w.js +0 -14
- package/agent.command-9erafkcb.js +0 -51
- package/cloud.script-arsagnq6.js +0 -30
- package/context.runner-mqpp67br.js +0 -29
- package/index-x3x31df8.js +0 -14
- /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
|
@@ -6,29 +6,31 @@ import {
|
|
|
6
6
|
CloudApi,
|
|
7
7
|
CloudUpdates,
|
|
8
8
|
PipelineSecrets
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-f16kr6vj.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveMobileTargets
|
|
12
12
|
} from "./index-m9jj544v.js";
|
|
13
13
|
import {
|
|
14
|
-
WorkspaceExecutor
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
WorkspaceExecutor
|
|
15
|
+
} from "./index-qssq2d41.js";
|
|
16
|
+
import {
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-ze48c0vd.js";
|
|
17
19
|
import {
|
|
18
20
|
NativeApp
|
|
19
|
-
} from "./index-
|
|
21
|
+
} from "./index-fp5xf6ef.js";
|
|
20
22
|
import {
|
|
21
23
|
runner,
|
|
22
24
|
assertPromptable
|
|
23
|
-
} from "./index-
|
|
25
|
+
} from "./index-9rv2zt48.js";
|
|
24
26
|
import {
|
|
25
27
|
getNpmRegistryUrl,
|
|
26
28
|
getPublishedVersions,
|
|
27
29
|
getLatestPackageVersion
|
|
28
|
-
} from "./index-
|
|
30
|
+
} from "./index-ffa52fwf.js";
|
|
29
31
|
import {
|
|
30
32
|
SubspaceConfig
|
|
31
|
-
} from "./index-
|
|
33
|
+
} from "./index-xczjdng6.js";
|
|
32
34
|
import {
|
|
33
35
|
openBrowser
|
|
34
36
|
} from "./index-9dp031by.js";
|
|
@@ -715,7 +717,7 @@ class EnvArchive {
|
|
|
715
717
|
static async#secretGlobs(workspace) {
|
|
716
718
|
const [appNames] = await workspace.getExecs();
|
|
717
719
|
const entries = await Promise.all(appNames.map(async (appName) => {
|
|
718
|
-
const { secrets = [] } = await
|
|
720
|
+
const { secrets = [] } = await AppExecutor2.from(workspace, appName).getConfig();
|
|
719
721
|
return [appName, secrets.map((pattern) => new Bun.Glob(pattern))];
|
|
720
722
|
}));
|
|
721
723
|
return new Map(entries);
|
|
@@ -1067,6 +1069,7 @@ ${run.format(results)}
|
|
|
1067
1069
|
if (!interactive)
|
|
1068
1070
|
continue;
|
|
1069
1071
|
assertPromptable(`${result.platform} did not pass (${reason}) \u2014 ${run.logDir}`, {
|
|
1072
|
+
code: "failed",
|
|
1070
1073
|
remedy: "leave it out of --platforms to publish without it, or run it in a terminal to be asked"
|
|
1071
1074
|
});
|
|
1072
1075
|
const proceed = await confirm({
|
|
@@ -1169,6 +1172,44 @@ ${run.format(results)}
|
|
|
1169
1172
|
Logger3.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
|
|
1170
1173
|
}
|
|
1171
1174
|
Logger3.info(`All libraries are published to ${registry ?? "npm"}`);
|
|
1175
|
+
if (!registry && isOfficialRelease)
|
|
1176
|
+
await this.releaseEditorExtension(workspace);
|
|
1177
|
+
}
|
|
1178
|
+
async releaseEditorExtension(workspace) {
|
|
1179
|
+
const repo = "akan-team/akanjs";
|
|
1180
|
+
const bundled = [
|
|
1181
|
+
"pkgs/@akanjs/vscode",
|
|
1182
|
+
"pkgs/@akanjs/language",
|
|
1183
|
+
":(exclude)pkgs/@akanjs/language/package.json",
|
|
1184
|
+
":(exclude)pkgs/@akanjs/language/CHANGELOG.md",
|
|
1185
|
+
"pkgs/akanjs/common/akanNames.ts",
|
|
1186
|
+
"pkgs/akanjs/common/akanGraph.ts",
|
|
1187
|
+
"pkgs/akanjs/common/capitalize.ts",
|
|
1188
|
+
"apps/akan/public/icon-512x512.png",
|
|
1189
|
+
"bun.lock"
|
|
1190
|
+
];
|
|
1191
|
+
try {
|
|
1192
|
+
if ((await workspace.spawn("git", ["status", "--porcelain", "--", ...bundled])).trim())
|
|
1193
|
+
throw new Error("files the extension bundles have uncommitted changes, such as the version `changeset version` wrote");
|
|
1194
|
+
const sha = (await workspace.spawn("git", ["rev-parse", "HEAD"])).trim();
|
|
1195
|
+
const onMain = (await workspace.spawn("gh", ["api", `repos/${repo}/compare/${sha}...main`, "--jq", ".status"])).trim();
|
|
1196
|
+
if (onMain !== "identical" && onMain !== "ahead")
|
|
1197
|
+
throw new Error(`${sha.slice(0, 9)} is not on main`);
|
|
1198
|
+
await workspace.spawn("gh", [
|
|
1199
|
+
"workflow",
|
|
1200
|
+
"run",
|
|
1201
|
+
"vscode-publish.yml",
|
|
1202
|
+
"--repo",
|
|
1203
|
+
repo,
|
|
1204
|
+
"--ref",
|
|
1205
|
+
"main",
|
|
1206
|
+
"-f",
|
|
1207
|
+
`sha=${sha}`
|
|
1208
|
+
]);
|
|
1209
|
+
Logger3.info(`CI is releasing the editor extension from ${sha.slice(0, 9)}: https://github.com/${repo}/actions/workflows/vscode-publish.yml`);
|
|
1210
|
+
} catch (error) {
|
|
1211
|
+
Logger3.warn(`The editor extension was not released: ${error instanceof Error ? error.message : String(error)}. Commit and push the release to main, then run from that commit \`gh workflow run vscode-publish.yml --repo ${repo} --ref main -f sha=$(git rev-parse HEAD)\``);
|
|
1212
|
+
}
|
|
1172
1213
|
}
|
|
1173
1214
|
#dependenciesFirst(libraries, dependencies) {
|
|
1174
1215
|
const ordered = [];
|
|
@@ -1244,7 +1285,7 @@ ${run.format(results)}
|
|
|
1244
1285
|
async downloadEnv(cloudApi, workspace, workspaceId) {
|
|
1245
1286
|
await workspace.mkdir("local");
|
|
1246
1287
|
const localPath = await cloudApi.downloadEnv(workspaceId).catch((error) => {
|
|
1247
|
-
throw CloudApi.refusal(error, "
|
|
1288
|
+
throw CloudApi.refusal(error, "only the repository owner, or an owner or operator they allowed on the project's settings page, can download its env archive; sign in as one of them with `akan login`");
|
|
1248
1289
|
});
|
|
1249
1290
|
await EnvArchive.extract(workspace, localPath);
|
|
1250
1291
|
await workspace.remove(localPath);
|
|
@@ -1316,7 +1357,7 @@ ${run.format(results)}
|
|
|
1316
1357
|
}
|
|
1317
1358
|
async#gatherCustomSecretFiles(workspace, appNames) {
|
|
1318
1359
|
const secretPaths = await Promise.all(appNames.map(async (appName) => {
|
|
1319
|
-
const config = await
|
|
1360
|
+
const config = await AppExecutor2.from(workspace, appName).getConfig();
|
|
1320
1361
|
const secretGlobs = config.secrets ?? [];
|
|
1321
1362
|
if (secretGlobs.length === 0)
|
|
1322
1363
|
return [];
|
|
@@ -1400,7 +1441,7 @@ ${run.format(results)}
|
|
|
1400
1441
|
}
|
|
1401
1442
|
async#syncSecretGitignore(workspace, appNames) {
|
|
1402
1443
|
const patterns = (await Promise.all(appNames.map(async (appName) => {
|
|
1403
|
-
const config = await
|
|
1444
|
+
const config = await AppExecutor2.from(workspace, appName).getConfig();
|
|
1404
1445
|
return (config.secrets ?? []).map((pattern) => `apps/${appName}/${pattern.replace(/^\/+/, "")}`);
|
|
1405
1446
|
}))).flat();
|
|
1406
1447
|
const uniquePatterns = [...new Set(patterns)].sort();
|