@akanjs/cli 3.1.0-rc.4 → 3.1.0-rc.5
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-ymte1tv8.js → CodeAgent-rkjyxgec.js} +2 -2
- package/{CodeTui-4rhdm1qw.js → CodeTui-h7pyj6xa.js} +1 -1
- package/TunnelShare-661cxz5e.js +14 -0
- package/{agent.command-r5x1mch5.js → agent.command-3qxf4xcj.js} +5 -5
- package/akanCode.js +2 -2
- package/{application.command-3dkr7rdz.js → application.command-m1kcd7jf.js} +12 -11
- package/{applicationBuildRunner-h0j2swx1.js → applicationBuildRunner-dj0xkrep.js} +16 -9
- package/buildBatch.proc.js +7 -7
- package/{cloud.command-4kyxfw0y.js → cloud.command-3jzym8q7.js} +17 -16
- package/cloud.script-r4nskbc6.js +24 -0
- package/{code.command-sjvzt8fc.js → code.command-0ad6gw2a.js} +6 -6
- package/{context.command-j9frz0dz.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-1epw6hey.js → guideline.command-cv5bmrx2.js} +2 -2
- package/guidelines/conventions/conventions.instruction.md +450 -1084
- package/guidelines/cssRule/cssRule.instruction.md +16 -1
- package/guidelines/fieldRule/fieldRule.instruction.md +57 -0
- package/guidelines/framework/framework.instruction.md +4 -7
- package/guidelines/mcpRule/mcpRule.instruction.md +11 -8
- package/guidelines/modelConstant/modelConstant.instruction.md +2 -1
- package/guidelines/modelStore/modelStore.instruction.md +9 -0
- package/guidelines/pageRule/pageRule.instruction.md +80 -0
- package/guidelines/queryRule/queryRule.instruction.md +35 -8
- package/guidelines/runtimeRule/runtimeRule.instruction.md +89 -2
- package/guidelines/ssrRule/ssrRule.instruction.md +13 -0
- package/guidelines/transportRule/transportRule.instruction.md +76 -8
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +4 -4
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +49 -4
- package/incrementalBuilder.proc.js +4 -4
- package/{index-jw6st2rd.js → index-192ha4xh.js} +356 -307
- package/{index-1hkr7mrb.js → index-1p98exm2.js} +2 -2
- package/{index-8byzcvxp.js → index-1xj2t7cb.js} +7 -7
- package/{index-er3hekv9.js → index-20bxxyvn.js} +80 -80
- package/{index-xe3x2kw5.js → index-35hc95h5.js} +1 -1
- package/{index-p5nrc5he.js → index-4mhy6qme.js} +4 -4
- package/{index-0qc5nd61.js → index-5edzv8fn.js} +5 -5
- package/{index-k9rrten6.js → index-5nd1wtkv.js} +92 -94
- package/index-62md4dwy.js +260 -0
- package/{index-z3v7abrk.js → index-665zp9rs.js} +38 -15
- package/{index-1t2xw0p0.js → index-6xn2n442.js} +4 -4
- package/{index-jg3fj8h0.js → index-86jt2a0e.js} +1 -1
- package/{index-k33me5sp.js → index-8fp3b47h.js} +419 -418
- package/{index-shastb7m.js → index-9z426msb.js} +17 -12
- package/{index-gdybjw3x.js → index-awbdfcf2.js} +4 -4
- package/{index-3hx1z96c.js → index-bqbf654f.js} +1 -1
- package/{index-jppthsff.js → index-cpb3nvma.js} +57 -58
- package/{index-b60ccq2s.js → index-d47ypebv.js} +17 -15
- package/{index-gc05vqd2.js → index-d72hfmdm.js} +13 -13
- package/{index-akha197v.js → index-fmzcs8v6.js} +4 -4
- package/{index-28ftaz3d.js → index-fyq1z6kt.js} +29 -27
- package/{index-vwmv64ad.js → index-g1mbppa9.js} +238 -236
- package/{index-hedt951c.js → index-h47cf1gg.js} +7 -7
- package/{index-hfqs9jvc.js → index-j4mkhz93.js} +3 -3
- package/{index-08a5ga6n.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-2wyn17fa.js → index-pydbnfez.js} +2 -2
- package/{index-bjh4wbtk.js → index-qwa5k1j8.js} +1 -1
- package/{index-81a1ywp6.js → index-tamvyvj3.js} +3 -3
- package/{index-dez4t5sd.js → index-trpasv9q.js} +260 -259
- package/{index-2ahj896a.js → index-tvehn2sp.js} +1 -1
- package/{index-2k0t8p3p.js → index-va06nr10.js} +1086 -1075
- package/{index-9c3cd767.js → index-vk0pa0mn.js} +20 -21
- package/{index-qyaqzh8e.js → index-w44cy4vs.js} +2216 -2216
- package/index.js +22 -22
- package/{library.command-n58dgakb.js → library.command-erp2f56n.js} +3 -3
- package/{localRegistry.command-f2768sww.js → localRegistry.command-xxpqgxjw.js} +15 -14
- package/{module.command-xzjg5k7n.js → module.command-gs2r615e.js} +5 -5
- package/{package.command-24sh1j1q.js → package.command-7343f74r.js} +4 -4
- package/package.json +2 -2
- package/{page.command-fqnm88na.js → page.command-4h4a8pnh.js} +3 -3
- package/{pipeline.command-vn6taz75.js → pipeline.command-a2nrk26m.js} +3 -3
- package/{primitive.command-4j1g1a0d.js → primitive.command-w6t0asqz.js} +6 -6
- package/{projectTypecheck-3y7ayty0.js → projectTypecheck-f534enqj.js} +1 -1
- package/{quality.command-5hqmcdwt.js → quality.command-77x7vbbx.js} +4 -4
- package/{repair.command-rw5tk460.js → repair.command-y6sstev7.js} +5 -5
- package/{scalar.command-0jpap45m.js → scalar.command-20b8cy0k.js} +4 -4
- package/{subspace.command-y7n9sghk.js → subspace.command-92xkc0s0.js} +11 -10
- package/templates/lib/cnst.ts +0 -1
- package/templates/workspaceRoot/.gitignore.template +24 -53
- package/{tunnel.command-5gjwh1f8.js → tunnel.command-2kw8vt9g.js} +8 -7
- package/{workflow.command-3t22f7eb.js → workflow.command-2djwmpqf.js} +10 -10
- package/{workspace.command-cq5xg2jq.js → workspace.command-5se6spqb.js} +28 -27
- package/TunnelShare-p8ymkww8.js +0 -13
- package/cloud.script-jc3hc5d9.js +0 -23
- package/context.runner-v0def5my.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));
|