@akanjs/cli 3.2.0-rc.1 → 3.2.0-rc.10
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-vmd9k4ak.js → CodeAgent-fk66n37w.js} +3 -3
- package/{CodeTui-zka44v52.js → CodeTui-4rf1mqmv.js} +1 -1
- package/README.ko.md +26 -1
- package/README.md +26 -1
- package/TunnelShare-44er4e29.js +15 -0
- package/{agent.command-2f657613.js → agent.command-7g9czkkd.js} +20 -19
- package/akanCode.js +3 -3
- package/{application.command-q6skd3am.js → application.command-00spg55s.js} +31 -24
- package/{applicationBuildRunner-sctcmkyx.js → applicationBuildRunner-f4yf0qyc.js} +9 -7
- package/buildBatch.proc.js +7 -6
- package/{cloud.command-7642pks6.js → cloud.command-ab704p0g.js} +24 -25
- package/cloud.script-4p4y0s7e.js +31 -0
- package/{code.command-7s4ndq2k.js → code.command-m6c9xk56.js} +7 -6
- package/{context.command-569z0rqf.js → context.command-hgcgxtdk.js} +20 -19
- package/context.runner-w071gmc3.js +30 -0
- package/{devTui-w38ch13a.js → devTui-h77zrjv5.js} +1 -1
- package/{guideline.command-gnv3e8p8.js → guideline.command-6yz6d4hf.js} +3 -2
- package/guidelines/agentRule/agentRule.instruction.md +4 -3
- package/guidelines/conventions/core.md +1 -1
- package/guidelines/conventions/rules/app.md +3 -0
- package/guidelines/conventions/rules/page.md +5 -0
- package/guidelines/errorCodes/errorCodes.instruction.md +140 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +28 -0
- package/guidelines/pageRule/pageRule.instruction.md +5 -0
- package/guidelines/runtimeRule/runtimeRule.instruction.md +5 -1
- package/guidelines/transportRule/transportRule.instruction.md +5 -0
- package/incrementalBuilder.proc.js +8 -7
- package/{index-vkzfk7qt.js → index-097bjwvm.js} +40 -30
- package/{index-93ewzmp6.js → index-23d8gw08.js} +165 -102
- package/{index-p6hjwt2d.js → index-41mfhgq0.js} +72 -26
- package/{index-ktb3wcqz.js → index-4k9nv4m3.js} +71 -81
- package/{index-vr68mxj5.js → index-5jwx4bf2.js} +69 -33
- package/{index-5w9my9qe.js → index-6eptmk8z.js} +30 -20
- package/{index-d4n1wmrz.js → index-6fnrhpn1.js} +8 -4
- package/{index-kpdv34rq.js → index-6qtxs86x.js} +10 -7
- package/{index-ed6ea0qp.js → index-6z57w95f.js} +1 -1
- package/{index-drz9e84d.js → index-7ky4brfy.js} +2 -2
- package/{index-8g7tdsk4.js → index-849qvd7t.js} +58 -29
- package/{index-1q1cjn8s.js → index-9xh4zvw3.js} +94 -53
- package/{index-48d5qsj3.js → index-adj7qmz9.js} +23 -15
- package/{index-fjr4d6yd.js → index-apcr1qgk.js} +458 -304
- package/{index-8ts9774g.js → index-aybfcx58.js} +9 -4
- package/{index-8kczhnmv.js → index-b3pr4ee6.js} +1 -1
- package/{index-23860fej.js → index-b4qq3rq0.js} +23 -8
- package/{index-thckcabc.js → index-bper31wr.js} +24 -6
- package/{index-a8a9ede9.js → index-bxkx0x03.js} +14 -7
- package/{index-0fb3cpbt.js → index-c3r23w24.js} +9 -7
- package/{index-8pb9yvp8.js → index-dfsa009c.js} +148 -31
- package/{index-zpv14wpy.js → index-dsg50er9.js} +3 -3
- package/{index-hqrkqxx2.js → index-e5f6czck.js} +46 -7
- package/{index-sy481q2x.js → index-frvjq1rd.js} +1 -1
- package/{index-abgh0jve.js → index-grt0e6kk.js} +1 -1
- package/{index-e3vmjtph.js → index-hf9nvwam.js} +7 -2
- package/{index-v4p1zye8.js → index-hhagjhkh.js} +7 -7
- package/index-j4yvgfhr.js +70 -0
- package/{index-s2grpzef.js → index-k2r3hmbz.js} +6 -4
- package/{index-7y5yghjg.js → index-nd39rssn.js} +1162 -435
- package/{index-6wpaq392.js → index-p4htjyvk.js} +44 -5
- package/{index-aj3ehkcx.js → index-p54s83sz.js} +1 -1
- package/{index-7xdpww43.js → index-rdx8cyv2.js} +342 -134
- package/{index-sr5da35e.js → index-sq9d0jhj.js} +21 -18
- package/{index-eajbmk10.js → index-t4d0ckde.js} +2 -2
- package/{index-mqntfzv5.js → index-t8h09yjs.js} +7 -2
- package/index-va90m8nd.js +25 -0
- package/{index-rc5fvqj2.js → index-xfv2p7b5.js} +95 -58
- package/{index-w639tvkd.js → index-xgqz3kak.js} +29 -8
- package/{index-9tbgb4d8.js → index-xy70tcv4.js} +1 -1
- package/{index-mmym5xmb.js → index-z43wddce.js} +5 -3
- package/index.js +24 -23
- package/{library.command-1gp5qe3r.js → library.command-kc1zahcg.js} +5 -4
- package/{localRegistry.command-x7jptkd3.js → localRegistry.command-bz2df40m.js} +19 -18
- package/{module.command-4xz9he6h.js → module.command-cchwzz9r.js} +12 -7
- package/{package.command-s7qpnn1g.js → package.command-qcjajpv8.js} +8 -7
- package/package.json +2 -2
- package/{page.command-fan34c49.js → page.command-1t86dx8a.js} +4 -3
- package/{pipeline.command-ph4fnn9w.js → pipeline.command-2xx9z3d0.js} +3 -2
- package/{primitive.command-3fqh8emf.js → primitive.command-mc0x8txr.js} +8 -7
- package/{projectTypecheck-vkb40hjc.js → projectTypecheck-tz497yx7.js} +2 -1
- package/{quality.command-ecj6exsh.js → quality.command-11rayf5c.js} +7 -6
- package/{repair.command-fe9jw719.js → repair.command-8w41vy78.js} +7 -6
- package/{scalar.command-cnvfhk0n.js → scalar.command-rvwh98ny.js} +7 -6
- package/skills/akan-debug/SKILL.md +7 -3
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +7 -1
- package/skills/akan-scaffold/SKILL.md +3 -2
- package/skills/akan-transport/SKILL.md +2 -0
- package/skills/akan-validate/SKILL.md +1 -0
- package/{subspace.command-qw5ddd6y.js → subspace.command-0970n7kd.js} +9 -8
- package/{tunnel.command-ggj38mqf.js → tunnel.command-bcy0rtmh.js} +8 -7
- package/typecheck.proc.js +5 -2
- package/{verify.command-w9ttxkdz.js → verify.command-ynaztxr2.js} +18 -16
- package/{workflow.command-ss8devj0.js → workflow.command-yp9ajthb.js} +45 -16
- package/{workspace.command-6z2rh8ze.js → workspace.command-e4wfxm86.js} +39 -34
- package/TunnelShare-k3ja4w9x.js +0 -14
- package/cloud.script-1sfseznn.js +0 -30
- package/context.runner-ms8v1rxy.js +0 -29
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
CloudApi,
|
|
7
7
|
CloudUpdates,
|
|
8
8
|
PipelineSecrets
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-7ky4brfy.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveMobileTargets
|
|
12
12
|
} from "./index-m9jj544v.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceExecutor,
|
|
15
15
|
AppExecutor
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-sq9d0jhj.js";
|
|
17
17
|
import {
|
|
18
18
|
NativeApp
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-dsg50er9.js";
|
|
20
20
|
import {
|
|
21
21
|
runner,
|
|
22
22
|
assertPromptable
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-23d8gw08.js";
|
|
24
24
|
import {
|
|
25
25
|
getNpmRegistryUrl,
|
|
26
26
|
getPublishedVersions,
|
|
@@ -1067,6 +1067,7 @@ ${run.format(results)}
|
|
|
1067
1067
|
if (!interactive)
|
|
1068
1068
|
continue;
|
|
1069
1069
|
assertPromptable(`${result.platform} did not pass (${reason}) \u2014 ${run.logDir}`, {
|
|
1070
|
+
code: "failed",
|
|
1070
1071
|
remedy: "leave it out of --platforms to publish without it, or run it in a terminal to be asked"
|
|
1071
1072
|
});
|
|
1072
1073
|
const proceed = await confirm({
|
|
@@ -1169,6 +1170,44 @@ ${run.format(results)}
|
|
|
1169
1170
|
Logger3.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
|
|
1170
1171
|
}
|
|
1171
1172
|
Logger3.info(`All libraries are published to ${registry ?? "npm"}`);
|
|
1173
|
+
if (!registry && isOfficialRelease)
|
|
1174
|
+
await this.releaseEditorExtension(workspace);
|
|
1175
|
+
}
|
|
1176
|
+
async releaseEditorExtension(workspace) {
|
|
1177
|
+
const repo = "akan-team/akanjs";
|
|
1178
|
+
const bundled = [
|
|
1179
|
+
"pkgs/@akanjs/vscode",
|
|
1180
|
+
"pkgs/@akanjs/language",
|
|
1181
|
+
":(exclude)pkgs/@akanjs/language/package.json",
|
|
1182
|
+
":(exclude)pkgs/@akanjs/language/CHANGELOG.md",
|
|
1183
|
+
"pkgs/akanjs/common/akanNames.ts",
|
|
1184
|
+
"pkgs/akanjs/common/akanGraph.ts",
|
|
1185
|
+
"pkgs/akanjs/common/capitalize.ts",
|
|
1186
|
+
"apps/akan/public/icon-512x512.png",
|
|
1187
|
+
"bun.lock"
|
|
1188
|
+
];
|
|
1189
|
+
try {
|
|
1190
|
+
if ((await workspace.spawn("git", ["status", "--porcelain", "--", ...bundled])).trim())
|
|
1191
|
+
throw new Error("files the extension bundles have uncommitted changes, such as the version `changeset version` wrote");
|
|
1192
|
+
const sha = (await workspace.spawn("git", ["rev-parse", "HEAD"])).trim();
|
|
1193
|
+
const onMain = (await workspace.spawn("gh", ["api", `repos/${repo}/compare/${sha}...main`, "--jq", ".status"])).trim();
|
|
1194
|
+
if (onMain !== "identical" && onMain !== "ahead")
|
|
1195
|
+
throw new Error(`${sha.slice(0, 9)} is not on main`);
|
|
1196
|
+
await workspace.spawn("gh", [
|
|
1197
|
+
"workflow",
|
|
1198
|
+
"run",
|
|
1199
|
+
"vscode-publish.yml",
|
|
1200
|
+
"--repo",
|
|
1201
|
+
repo,
|
|
1202
|
+
"--ref",
|
|
1203
|
+
"main",
|
|
1204
|
+
"-f",
|
|
1205
|
+
`sha=${sha}`
|
|
1206
|
+
]);
|
|
1207
|
+
Logger3.info(`CI is releasing the editor extension from ${sha.slice(0, 9)}: https://github.com/${repo}/actions/workflows/vscode-publish.yml`);
|
|
1208
|
+
} catch (error) {
|
|
1209
|
+
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)\``);
|
|
1210
|
+
}
|
|
1172
1211
|
}
|
|
1173
1212
|
#dependenciesFirst(libraries, dependencies) {
|
|
1174
1213
|
const ordered = [];
|
|
@@ -1244,7 +1283,7 @@ ${run.format(results)}
|
|
|
1244
1283
|
async downloadEnv(cloudApi, workspace, workspaceId) {
|
|
1245
1284
|
await workspace.mkdir("local");
|
|
1246
1285
|
const localPath = await cloudApi.downloadEnv(workspaceId).catch((error) => {
|
|
1247
|
-
throw CloudApi.refusal(error, "
|
|
1286
|
+
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
1287
|
});
|
|
1249
1288
|
await EnvArchive.extract(workspace, localPath);
|
|
1250
1289
|
await workspace.remove(localPath);
|