@akanjs/cli 3.1.0-rc.2 → 3.1.0-rc.20
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-q50k4s45.js → CodeAgent-n3tzjm91.js} +2 -2
- package/{CodeAgentRpcHost-p7h6n2hp.js → CodeAgentRpcHost-9g27hmer.js} +1 -1
- package/{CodeTui-62g35ztk.js → CodeTui-fnm9ft4d.js} +47 -4
- package/TunnelShare-661cxz5e.js +14 -0
- package/{agent.command-adfd5299.js → agent.command-3qxf4xcj.js} +5 -5
- package/akanCode.js +7 -5
- package/{application.command-hj3gv1rx.js → application.command-zfja7x4r.js} +12 -11
- package/{applicationBuildRunner-by10r9gf.js → applicationBuildRunner-vh4j6vdv.js} +16 -9
- package/buildBatch.proc.js +7 -7
- package/{cloud.command-k2fhaape.js → cloud.command-fcc8e8tp.js} +17 -16
- package/cloud.script-1xt3tnts.js +24 -0
- package/{code.command-kt5zgcc2.js → code.command-130bdmhe.js} +25 -12
- package/{context.command-8fgn42jw.js → context.command-0qx447mb.js} +17 -16
- package/context.runner-1vsjztjg.js +25 -0
- package/{dependencyScanner-06z2dmrr.js → dependencyScanner-3afj2vt1.js} +1 -1
- package/{guideline.command-3yxxr2mm.js → guideline.command-cv5bmrx2.js} +2 -2
- package/guidelines/agentRule/agentRule.instruction.md +25 -10
- package/guidelines/conventions/conventions.instruction.md +463 -1084
- package/guidelines/cssRule/cssRule.instruction.md +16 -1
- package/guidelines/fieldRule/fieldRule.instruction.md +74 -0
- package/guidelines/framework/framework.instruction.md +4 -7
- package/guidelines/mcpRule/mcpRule.instruction.md +16 -9
- package/guidelines/modelConstant/modelConstant.instruction.md +2 -1
- package/guidelines/modelStore/modelStore.instruction.md +16 -0
- package/guidelines/pageRule/pageRule.instruction.md +80 -0
- package/guidelines/queryRule/queryRule.instruction.md +47 -12
- package/guidelines/runtimeRule/runtimeRule.instruction.md +89 -2
- package/guidelines/ssrRule/ssrRule.instruction.md +13 -0
- package/guidelines/transportRule/transportRule.instruction.md +107 -8
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +4 -4
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +70 -7
- package/incrementalBuilder.proc.js +4 -4
- package/{index-nq045px5.js → index-192ha4xh.js} +356 -307
- package/{index-t7nws9mx.js → index-1djcjcre.js} +661 -448
- package/{index-h85cxfkg.js → index-1p98exm2.js} +2 -2
- package/{index-hnby7p9n.js → index-1xj2t7cb.js} +7 -7
- package/{index-wa5jbxj1.js → index-2mrn1mrg.js} +1 -0
- package/{index-58vvz603.js → index-35hc95h5.js} +1 -1
- package/{index-tv8fjaba.js → index-4mhy6qme.js} +4 -4
- package/{index-rk9sdys3.js → index-5edzv8fn.js} +5 -5
- package/{index-k9rrten6.js → index-5nd1wtkv.js} +92 -94
- package/index-62md4dwy.js +260 -0
- package/{index-kc8z134d.js → index-665zp9rs.js} +38 -15
- package/{index-jwqtchha.js → index-86jt2a0e.js} +1 -1
- package/{index-d2242ksy.js → index-at7bz0xq.js} +3 -0
- package/{index-sqfdmb5b.js → index-awbdfcf2.js} +4 -4
- package/{index-azh29dc8.js → index-axs61rna.js} +19 -14
- package/{index-3hx1z96c.js → index-bqbf654f.js} +1 -1
- package/{index-6726qr1m.js → index-cpb3nvma.js} +57 -58
- package/{index-pyxn1b53.js → index-d72hfmdm.js} +13 -13
- package/{index-8zdwpxef.js → index-dye8pnxx.js} +119 -81
- package/{index-z507nzhg.js → index-fmzcs8v6.js} +4 -4
- package/{index-3reaaa1h.js → index-fyq1z6kt.js} +29 -27
- package/{index-0909wckt.js → index-g1mbppa9.js} +238 -236
- package/{index-fjsv10hd.js → index-hsadfb6c.js} +7 -7
- package/{index-tz5evhdr.js → index-j237xtew.js} +6 -6
- package/{index-nq2ja5e0.js → index-j4mkhz93.js} +3 -3
- package/{index-31ce9vhg.js → index-jw1zm273.js} +28 -30
- package/{index-q958tqqg.js → index-m9jj544v.js} +1 -1
- package/{index-8935h3n1.js → index-mdjc93e1.js} +1 -1
- package/{index-bea2gwc6.js → index-pydbnfez.js} +2 -2
- package/{index-20cebtth.js → index-qtfmtcrw.js} +17 -15
- package/{index-sby8fe1p.js → index-qwa5k1j8.js} +1 -1
- package/{index-e9prnmyt.js → index-tamvyvj3.js} +3 -3
- package/{index-rhbabmja.js → index-trpasv9q.js} +260 -259
- package/{index-2ahj896a.js → index-tvehn2sp.js} +1 -1
- package/{index-2etqq75t.js → index-va06nr10.js} +1090 -1078
- package/{index-g0vwzy9m.js → index-vk0pa0mn.js} +20 -21
- package/{index-xpdgxsj5.js → index-w44cy4vs.js} +2216 -2216
- package/index.js +22 -22
- package/{library.command-8tw59xzj.js → library.command-erp2f56n.js} +3 -3
- package/{localRegistry.command-tf3dmznd.js → localRegistry.command-hj3p16p5.js} +15 -14
- package/{module.command-9vm8hffy.js → module.command-gs2r615e.js} +5 -5
- package/{package.command-erbxe2tz.js → package.command-j10r76ax.js} +4 -4
- package/package.json +21 -21
- package/{page.command-jpavcj0p.js → page.command-4h4a8pnh.js} +3 -3
- package/{pipeline.command-b8rzvjvv.js → pipeline.command-a2nrk26m.js} +3 -3
- package/{primitive.command-sm32chzk.js → primitive.command-w6t0asqz.js} +6 -6
- package/{projectTypecheck-jamtx95x.js → projectTypecheck-f534enqj.js} +1 -1
- package/{quality.command-pkd17n6y.js → quality.command-77x7vbbx.js} +4 -4
- package/{repair.command-8y4mq6hs.js → repair.command-y6sstev7.js} +5 -5
- package/{scalar.command-q8khmyx5.js → scalar.command-20b8cy0k.js} +4 -4
- package/skills/akan-code/SKILL.md +4 -0
- package/skills/akan-store/SKILL.md +2 -1
- package/{subspace.command-51n0ykbx.js → subspace.command-baz73jpk.js} +11 -10
- package/templates/appSample/lib/task/Task.Util.tsx +7 -7
- package/templates/appSample/lib/task/Task.Zone.tsx +1 -1
- package/templates/appSample/ui/QuantityControl.tsx +2 -2
- package/templates/crudSinglePage/page.tsx +1 -1
- package/templates/lib/cnst.ts +0 -1
- package/templates/workspaceRoot/.gitignore.template +23 -52
- package/templates/workspaceRoot/biome.json.template +1 -1
- package/{tunnel.command-7820vtxq.js → tunnel.command-2kw8vt9g.js} +8 -7
- package/{workflow.command-n5sv4wqz.js → workflow.command-2djwmpqf.js} +10 -10
- package/{workspace.command-zdy60jh8.js → workspace.command-jqs7vjhe.js} +29 -28
- package/TunnelShare-f1egrktx.js +0 -13
- package/cloud.script-z8p5dz7e.js +0 -23
- package/context.runner-hnh0rg7m.js +0 -24
- package/index-n68jx79w.js +0 -120
|
@@ -2,24 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
DesktopBin,
|
|
4
4
|
UpdatePackFolder
|
|
5
|
-
} from "./index-
|
|
6
|
-
|
|
7
|
-
// pkgs/@akanjs/devkit/mobile/placeholderAppId.ts
|
|
8
|
-
var PLACEHOLDER_APP_IDS = [
|
|
9
|
-
"com.myapp.app",
|
|
10
|
-
"com.myorg.myapp",
|
|
11
|
-
"com.example.app",
|
|
12
|
-
"com.example.myapp"
|
|
13
|
-
];
|
|
14
|
-
var placeholderAppIdSegment = /^(example|examples|myorg|myapp|mycompany|myorganization|changeme|todo|sample|test)$/;
|
|
15
|
-
var isPlaceholderAppId = (appId) => {
|
|
16
|
-
const normalized = appId?.trim().toLowerCase() ?? "";
|
|
17
|
-
if (!normalized)
|
|
18
|
-
return true;
|
|
19
|
-
if (PLACEHOLDER_APP_IDS.includes(normalized))
|
|
20
|
-
return true;
|
|
21
|
-
return normalized.split(".").some((segment) => placeholderAppIdSegment.test(segment));
|
|
22
|
-
};
|
|
5
|
+
} from "./index-g1mbppa9.js";
|
|
23
6
|
// pkgs/@akanjs/devkit/mobile/desktopServerStage.ts
|
|
24
7
|
import { cp, mkdir, readdir, rm, writeFile } from "fs/promises";
|
|
25
8
|
import path from "path";
|
|
@@ -145,19 +128,35 @@ ${toError(error).message}`, { cause: error });
|
|
|
145
128
|
};
|
|
146
129
|
}
|
|
147
130
|
}
|
|
131
|
+
// pkgs/@akanjs/devkit/mobile/placeholderAppId.ts
|
|
132
|
+
var PLACEHOLDER_APP_IDS = [
|
|
133
|
+
"com.myapp.app",
|
|
134
|
+
"com.myorg.myapp",
|
|
135
|
+
"com.example.app",
|
|
136
|
+
"com.example.myapp"
|
|
137
|
+
];
|
|
138
|
+
var placeholderAppIdSegment = /^(example|examples|myorg|myapp|mycompany|myorganization|changeme|todo|sample|test)$/;
|
|
139
|
+
var isPlaceholderAppId = (appId) => {
|
|
140
|
+
const normalized = appId?.trim().toLowerCase() ?? "";
|
|
141
|
+
if (!normalized)
|
|
142
|
+
return true;
|
|
143
|
+
if (PLACEHOLDER_APP_IDS.includes(normalized))
|
|
144
|
+
return true;
|
|
145
|
+
return normalized.split(".").some((segment) => placeholderAppIdSegment.test(segment));
|
|
146
|
+
};
|
|
148
147
|
// pkgs/@akanjs/devkit/mobile/updateUploader.ts
|
|
149
148
|
import { readdir as readdir2 } from "fs/promises";
|
|
150
149
|
import path2 from "path";
|
|
151
|
-
import { isRecord } from "akanjs/common";
|
|
150
|
+
import { isRecord, trimTrailingSlashes } from "akanjs/common";
|
|
152
151
|
class UpdateUploader {
|
|
153
152
|
bucket;
|
|
154
153
|
prefix;
|
|
155
154
|
static #manifest = /\.json(?:\.sig)?$/;
|
|
156
155
|
static parseTarget(target) {
|
|
157
|
-
const match = /^s3:\/\/([^/]+)
|
|
156
|
+
const match = /^s3:\/\/([^/]+)(?:\/(.*))?$/.exec(target.trim());
|
|
158
157
|
if (!match?.[1])
|
|
159
158
|
throw new Error(`--upload takes s3://<bucket>/<prefix>, not ${JSON.stringify(target)}.`);
|
|
160
|
-
return { bucket: match[1], prefix: (match[2] ?? "")
|
|
159
|
+
return { bucket: match[1], prefix: trimTrailingSlashes(match[2] ?? "") };
|
|
161
160
|
}
|
|
162
161
|
static order(files) {
|
|
163
162
|
const manifests = files.filter((file) => UpdateUploader.#manifest.test(file));
|