@akanjs/cli 3.3.0-rc.2 → 3.3.0-rc.3
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 -2
- package/{CodeAgent-xdw73nbz.js → CodeAgent-0r05qa30.js} +2 -2
- package/{CodeTui-0gewm71c.js → CodeTui-brryts78.js} +1 -1
- package/TunnelShare-dcx5j51j.js +16 -0
- package/{agent.command-g1mj34wz.js → agent.command-xn4maemk.js} +17 -17
- package/akanCode.js +2 -2
- package/{appExecutor-rrx10jya.js → appExecutor-qt1nm242.js} +3 -3
- package/{application.command-3w4v7t40.js → application.command-rv2n5bw8.js} +13 -13
- package/{applicationBuildRunner-y5xbetyz.js → applicationBuildRunner-ggkd5qgy.js} +13 -10
- package/buildBatch.proc.js +10 -10
- package/{cloud.command-ph0rz6sw.js → cloud.command-hgnbps4n.js} +18 -18
- package/cloud.script-rzsnzjsg.js +30 -0
- package/{code.command-9b967qpg.js → code.command-9gfph3t3.js} +10 -10
- package/{context.command-ndzs5rbf.js → context.command-dwhz1fwq.js} +18 -18
- package/context.runner-gh9rr71p.js +32 -0
- package/{csrArtifactBuilder-gtvff6k7.js → csrArtifactBuilder-zawt8knq.js} +2 -3
- package/{guideline.command-y8qz9kxy.js → guideline.command-v2daz21k.js} +6 -6
- package/guidelines/akanApi/akanApi.instruction.md +7 -2
- package/guidelines/conventions/core.md +6 -11
- package/guidelines/conventions/rules/app.md +1 -2
- package/guidelines/conventions/rules/auth.md +18 -27
- package/guidelines/conventions/rules/config.md +14 -46
- package/guidelines/conventions/rules/page.md +19 -34
- package/guidelines/conventions/rules/server.md +1 -4
- package/guidelines/conventions/rules/ssr.md +3 -4
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +1 -0
- package/guidelines/pageRule/pageRule.instruction.md +6 -53
- package/incrementalBuilder.proc.js +8 -8
- package/{index-6gepp8yn.js → index-0k64a38w.js} +60 -19
- package/{index-cm9rb480.js → index-0vtpxfx6.js} +5 -6
- package/{index-1p9bxjmt.js → index-0vv0a5h8.js} +2 -2
- package/{index-qh81drde.js → index-1v5eghaa.js} +8 -8
- package/{index-2vn0m9z5.js → index-2ktpwjgf.js} +3 -3
- package/{index-mnhrqjjq.js → index-2t7jnfg5.js} +1 -1
- package/{index-02v45hh9.js → index-58ck1gsm.js} +3 -3
- package/{index-twjgmryg.js → index-5cpjkfhk.js} +4 -4
- package/{index-pc42gxa5.js → index-609zbjve.js} +5 -5
- package/{index-0z8sbdme.js → index-66b1hrxh.js} +1 -1
- package/{index-dr1carpr.js → index-6yefp97x.js} +4 -4
- package/{index-2kh4xj3m.js → index-8fg1hvj5.js} +1 -1
- package/{index-b0t92k71.js → index-91bcfjej.js} +11 -11
- package/{index-ankyx6dj.js → index-999e5kp4.js} +3 -3
- package/{index-45aprybg.js → index-arcdcexp.js} +2 -2
- package/{index-scfsqen7.js → index-b3kjr19v.js} +3 -3
- package/{index-y2g0s9tn.js → index-bjg9thz8.js} +1 -1
- package/{index-ktxdfqg5.js → index-bsew0a12.js} +1 -1
- package/{index-f2arv0mv.js → index-c67vjafa.js} +1 -1
- package/{index-b372rck5.js → index-cfzqdsam.js} +14 -7
- package/{index-jg5rwrf7.js → index-dy5reyet.js} +226 -21
- package/{index-gtydr9qc.js → index-fqhr7j56.js} +8 -8
- package/{index-1c2807kg.js → index-g7hm77j6.js} +3 -3
- package/{index-jdw9m5c4.js → index-ghs8gtvp.js} +4 -4
- package/{index-4a1n0nym.js → index-h1k3zyyb.js} +1 -1
- package/{index-q8h4eg5y.js → index-jzwdwse0.js} +6 -6
- package/{index-0csk6jqm.js → index-m4s4tzjr.js} +3 -3
- package/{index-3569fr49.js → index-ndfxse05.js} +5 -5
- package/{index-d0n78fzc.js → index-rd669r6x.js} +11 -11
- package/{index-82cmbpxc.js → index-rnhbh45p.js} +7 -7
- package/{index-4zgm54wf.js → index-rwhdcnr8.js} +7 -7
- package/{index-38x8ynrx.js → index-sn5cka91.js} +2 -2
- package/{index-ymgsvhc5.js → index-v0gt5ryd.js} +18 -14
- package/{index-652f3bs8.js → index-vznyyaf8.js} +5 -5
- package/{index-6j351de4.js → index-w18qdjyf.js} +2 -2
- package/{index-0wa5z6rm.js → index-yejf6fth.js} +1 -1
- package/{index-whvhsb5f.js → index-zfmc4380.js} +1 -1
- package/{index-9rymt8d6.js → index-zx3bv21b.js} +1 -1
- package/index.js +27 -27
- package/{libExecutor-nstr00s7.js → libExecutor-p21kkayq.js} +2 -2
- package/{library.command-b02aw1hm.js → library.command-m4gw18qq.js} +7 -7
- package/{localRegistry.command-3hg1p4aj.js → localRegistry.command-3yq90wgp.js} +17 -17
- package/{module.command-bd9gz6cv.js → module.command-9vfdxapr.js} +9 -9
- package/{package.command-xmr0mxze.js → package.command-rt4y8xaf.js} +8 -8
- package/package.json +3 -2
- package/{page.command-x94qf58g.js → page.command-4zc20rnv.js} +7 -7
- package/{pipeline.command-n2843k6t.js → pipeline.command-4ekd9xgb.js} +6 -6
- package/{pkgExecutor-cka27e3c.js → pkgExecutor-mh903rz9.js} +2 -2
- package/{primitive.command-cs7v376h.js → primitive.command-5g3xe4mf.js} +10 -10
- package/{projectTypecheck-za2n3nbr.js → projectTypecheck-bz6smek9.js} +1 -1
- package/{quality.command-nqngh1jd.js → quality.command-zf8dyc9w.js} +8 -8
- package/{repair.command-v2medwsm.js → repair.command-sx0eyq4w.js} +9 -9
- package/{scalar.command-61cjmxn1.js → scalar.command-4bvzmbbh.js} +8 -8
- package/skills/akan-page/SKILL.md +18 -13
- package/skills/akan-runtime/SKILL.md +21 -16
- package/skills/akan-service/SKILL.md +2 -2
- package/{subspace.command-dtv8nfh7.js → subspace.command-cxyej1an.js} +10 -10
- package/{tunnel.command-fmwm5fgb.js → tunnel.command-gvnv36yf.js} +9 -9
- package/{verify.command-4f260t53.js → verify.command-yj2mngs0.js} +14 -14
- package/{workflow.command-tm5q9xsm.js → workflow.command-42p9g0w8.js} +14 -14
- package/{workspace.command-75gc280j.js → workspace.command-91wx03de.js} +31 -31
- package/TunnelShare-cccfdgbm.js +0 -16
- package/cloud.script-8bs9tp4j.js +0 -30
- package/context.runner-bmstpng2.js +0 -32
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ROOT_LAYOUT_SYSTEM,
|
|
4
4
|
isImplicitRootLayoutKey,
|
|
5
5
|
resolveSsrPageEntriesForApp
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-cfzqdsam.js";
|
|
7
7
|
import {
|
|
8
8
|
computeRouteSeedIndex,
|
|
9
9
|
saveRouteSeedIndex,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
ClientEntriesBundler,
|
|
12
12
|
VENDOR_SPECIFIERS,
|
|
13
13
|
RouteClientBuilder
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-b3kjr19v.js";
|
|
15
15
|
import {
|
|
16
16
|
SOURCE_EXTS,
|
|
17
17
|
buildCacheStamp,
|
|
18
18
|
isBuildCacheStamp,
|
|
19
19
|
FontOptimizer
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-w18qdjyf.js";
|
|
21
21
|
import {
|
|
22
22
|
BarrelAnalyzer,
|
|
23
23
|
createTsconfigPackageResolver,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
CsrEntryFiles,
|
|
26
26
|
toClientReferencePath,
|
|
27
27
|
PagesBundleBuilder
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-66b1hrxh.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSys2
|
|
31
31
|
} from "./index-zyjztrvc.js";
|
|
@@ -406,6 +406,200 @@ class CssImportResolver {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
+
// pkgs/@akanjs/devkit/frontendBuild/plainStylesheet.ts
|
|
410
|
+
var TAILWIND_AT_RULES = new Set([
|
|
411
|
+
"@tailwind",
|
|
412
|
+
"@apply",
|
|
413
|
+
"@plugin",
|
|
414
|
+
"@config",
|
|
415
|
+
"@theme",
|
|
416
|
+
"@utility",
|
|
417
|
+
"@variant",
|
|
418
|
+
"@custom-variant",
|
|
419
|
+
"@slot",
|
|
420
|
+
"@source",
|
|
421
|
+
"@reference"
|
|
422
|
+
]);
|
|
423
|
+
var TAILWIND_FUNCTION_RE = /(?:--alpha|--spacing|theme)\(/;
|
|
424
|
+
var TAILWIND_CONDITION_RE = /\b(?:source|prefix|theme)\(|(?:^|\s)(?:important|reference)(?=\s|$)/i;
|
|
425
|
+
var TAILWIND_PACKAGE_RE = /^tailwindcss(?:\/|$)/;
|
|
426
|
+
var REMOTE_URI_RE = /^(?:data:|https?:\/\/)/i;
|
|
427
|
+
var COMMENT_RE = /\/\*[\s\S]*?\*\//g;
|
|
428
|
+
var AT_KEYWORD_RE = /@[\w-]+/y;
|
|
429
|
+
var QUOTED_IMPORT_RE = /^\s*(["'])((?:\\[\s\S]|(?!\1)[^\\\n])*)\1([\s\S]*)$/;
|
|
430
|
+
var LAYER_RE = /^layer(?:\(\s*([^()]*?)\s*\))?(?![\w(-])/i;
|
|
431
|
+
var MAX_IMPORT_DEPTH = 100;
|
|
432
|
+
|
|
433
|
+
class PlainStylesheet {
|
|
434
|
+
static async bundle(css, base, load, depth = 0) {
|
|
435
|
+
if (depth > MAX_IMPORT_DEPTH)
|
|
436
|
+
return null;
|
|
437
|
+
const imports = PlainStylesheet.scan(css);
|
|
438
|
+
if (!imports)
|
|
439
|
+
return null;
|
|
440
|
+
const parts = [];
|
|
441
|
+
let cursor = 0;
|
|
442
|
+
for (const rule of imports) {
|
|
443
|
+
const loaded = await load(rule.uri, base);
|
|
444
|
+
const inner = await PlainStylesheet.bundle(loaded.content, loaded.base, load, depth + 1);
|
|
445
|
+
if (inner === null)
|
|
446
|
+
return null;
|
|
447
|
+
parts.push(css.slice(cursor, rule.start), PlainStylesheet.#wrap(inner, rule));
|
|
448
|
+
cursor = rule.end;
|
|
449
|
+
}
|
|
450
|
+
parts.push(css.slice(cursor));
|
|
451
|
+
return parts.join("");
|
|
452
|
+
}
|
|
453
|
+
static scan(css) {
|
|
454
|
+
const imports = [];
|
|
455
|
+
const code = [];
|
|
456
|
+
let segmentStart = 0;
|
|
457
|
+
let parenDepth = 0;
|
|
458
|
+
let braceDepth = 0;
|
|
459
|
+
let atRule = null;
|
|
460
|
+
let idx = 0;
|
|
461
|
+
while (idx < css.length) {
|
|
462
|
+
const char = css[idx];
|
|
463
|
+
if (char === "/" && css[idx + 1] === "*") {
|
|
464
|
+
const end = css.indexOf("*/", idx + 2);
|
|
465
|
+
if (end === -1)
|
|
466
|
+
return null;
|
|
467
|
+
code.push(css.slice(segmentStart, idx));
|
|
468
|
+
idx = segmentStart = end + 2;
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
if (char === "\\") {
|
|
472
|
+
idx += 2;
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
if (char === '"' || char === "'") {
|
|
476
|
+
code.push(css.slice(segmentStart, idx));
|
|
477
|
+
idx = segmentStart = PlainStylesheet.#skipString(css, idx);
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
480
|
+
if (char === "@" && !atRule && parenDepth === 0) {
|
|
481
|
+
AT_KEYWORD_RE.lastIndex = idx;
|
|
482
|
+
const keyword = AT_KEYWORD_RE.exec(css);
|
|
483
|
+
if (keyword) {
|
|
484
|
+
const name = keyword[0].toLowerCase();
|
|
485
|
+
if (TAILWIND_AT_RULES.has(name))
|
|
486
|
+
return null;
|
|
487
|
+
atRule = { name, start: idx, preludeStart: idx + keyword[0].length };
|
|
488
|
+
idx += keyword[0].length;
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
if (char === "(")
|
|
493
|
+
parenDepth += 1;
|
|
494
|
+
else if (char === ")")
|
|
495
|
+
parenDepth = Math.max(0, parenDepth - 1);
|
|
496
|
+
else if (parenDepth === 0 && (char === ";" || char === "{" || char === "}")) {
|
|
497
|
+
if (atRule && !PlainStylesheet.#closeAtRule(css, atRule, idx, char, imports))
|
|
498
|
+
return null;
|
|
499
|
+
atRule = null;
|
|
500
|
+
braceDepth += char === "{" ? 1 : char === "}" ? -1 : 0;
|
|
501
|
+
if (braceDepth < 0)
|
|
502
|
+
return null;
|
|
503
|
+
}
|
|
504
|
+
idx += 1;
|
|
505
|
+
}
|
|
506
|
+
if (atRule && !PlainStylesheet.#closeAtRule(css, atRule, css.length, "", imports))
|
|
507
|
+
return null;
|
|
508
|
+
if (braceDepth !== 0 || parenDepth !== 0)
|
|
509
|
+
return null;
|
|
510
|
+
code.push(css.slice(segmentStart));
|
|
511
|
+
return TAILWIND_FUNCTION_RE.test(code.join(" ")) ? null : imports;
|
|
512
|
+
}
|
|
513
|
+
static #closeAtRule(css, atRule, end, terminator, imports) {
|
|
514
|
+
const prelude = css.slice(atRule.preludeStart, end).replace(COMMENT_RE, " ");
|
|
515
|
+
const verdict = PlainStylesheet.#readAtRule(atRule.name, prelude, terminator === "{");
|
|
516
|
+
if (verdict === "tailwind")
|
|
517
|
+
return false;
|
|
518
|
+
if (verdict !== "plain")
|
|
519
|
+
imports.push({ ...verdict, start: atRule.start, end: terminator === ";" ? end + 1 : end });
|
|
520
|
+
return true;
|
|
521
|
+
}
|
|
522
|
+
static #readAtRule(name, prelude, opensBlock) {
|
|
523
|
+
if (name === "@media")
|
|
524
|
+
return TAILWIND_CONDITION_RE.test(prelude) ? "tailwind" : "plain";
|
|
525
|
+
if (name !== "@import")
|
|
526
|
+
return "plain";
|
|
527
|
+
const match = QUOTED_IMPORT_RE.exec(prelude);
|
|
528
|
+
if (!match)
|
|
529
|
+
return "plain";
|
|
530
|
+
const [, , uri = "", rest = ""] = match;
|
|
531
|
+
if (TAILWIND_PACKAGE_RE.test(uri) || TAILWIND_CONDITION_RE.test(rest) || opensBlock)
|
|
532
|
+
return "tailwind";
|
|
533
|
+
if (REMOTE_URI_RE.test(uri))
|
|
534
|
+
return "plain";
|
|
535
|
+
const conditions = PlainStylesheet.#parseConditions(rest.trim());
|
|
536
|
+
return conditions ? { uri, ...conditions } : "tailwind";
|
|
537
|
+
}
|
|
538
|
+
static #parseConditions(text) {
|
|
539
|
+
let rest = text;
|
|
540
|
+
let layer = null;
|
|
541
|
+
let supports = null;
|
|
542
|
+
const layerMatch = LAYER_RE.exec(rest);
|
|
543
|
+
if (layerMatch) {
|
|
544
|
+
layer = layerMatch[1] ?? "";
|
|
545
|
+
rest = rest.slice(layerMatch[0].length).trim();
|
|
546
|
+
}
|
|
547
|
+
if (/^supports\(/i.test(rest)) {
|
|
548
|
+
const close = PlainStylesheet.#closingParen(rest, "supports".length);
|
|
549
|
+
if (close === -1)
|
|
550
|
+
return null;
|
|
551
|
+
supports = rest.slice("supports(".length, close).trim();
|
|
552
|
+
rest = rest.slice(close + 1).trim();
|
|
553
|
+
}
|
|
554
|
+
if (/["']|\burl\(|\blayer\b|\bsupports\(/i.test(rest))
|
|
555
|
+
return null;
|
|
556
|
+
return { layer, supports, media: rest || null };
|
|
557
|
+
}
|
|
558
|
+
static #closingParen(text, open) {
|
|
559
|
+
let depth = 0;
|
|
560
|
+
for (let idx = open;idx < text.length; idx++) {
|
|
561
|
+
if (text[idx] === "(")
|
|
562
|
+
depth += 1;
|
|
563
|
+
else if (text[idx] === ")" && --depth === 0)
|
|
564
|
+
return idx;
|
|
565
|
+
}
|
|
566
|
+
return -1;
|
|
567
|
+
}
|
|
568
|
+
static #wrap(css, { layer, media, supports }) {
|
|
569
|
+
let wrapped = css;
|
|
570
|
+
if (layer !== null)
|
|
571
|
+
wrapped = `@layer${layer ? ` ${layer}` : ""} {
|
|
572
|
+
${wrapped}
|
|
573
|
+
}`;
|
|
574
|
+
if (media !== null)
|
|
575
|
+
wrapped = `@media ${media} {
|
|
576
|
+
${wrapped}
|
|
577
|
+
}`;
|
|
578
|
+
if (supports !== null)
|
|
579
|
+
wrapped = `@supports ${supports.startsWith("(") ? supports : `(${supports})`} {
|
|
580
|
+
${wrapped}
|
|
581
|
+
}`;
|
|
582
|
+
return wrapped;
|
|
583
|
+
}
|
|
584
|
+
static #skipString(css, start) {
|
|
585
|
+
const quote = css[start];
|
|
586
|
+
let idx = start + 1;
|
|
587
|
+
while (idx < css.length) {
|
|
588
|
+
const char = css[idx];
|
|
589
|
+
if (char === "\\")
|
|
590
|
+
idx += 2;
|
|
591
|
+
else if (char === quote)
|
|
592
|
+
return idx + 1;
|
|
593
|
+
else if (char === `
|
|
594
|
+
`)
|
|
595
|
+
return idx;
|
|
596
|
+
else
|
|
597
|
+
idx += 1;
|
|
598
|
+
}
|
|
599
|
+
return css.length;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
409
603
|
// pkgs/@akanjs/devkit/frontendBuild/cssCompiler.ts
|
|
410
604
|
var NON_SOURCE_EXT_RE = /\.(json|svg|png|jpe?g|webp|gif|avif|ico|woff2?|ttf|otf|mp3|mp4|wav)$/i;
|
|
411
605
|
var NODE_MODULES_RE = /[\\/]node_modules[\\/]/;
|
|
@@ -599,34 +793,27 @@ class CssCompiler {
|
|
|
599
793
|
if (cssPaths.length === 0)
|
|
600
794
|
return { css: "", imported: [] };
|
|
601
795
|
const compileStarted = Date.now();
|
|
602
|
-
const compilers = await Promise.all(cssPaths.map(
|
|
603
|
-
const css = await Bun.file(cssPath).text();
|
|
604
|
-
const base = path3.dirname(cssPath);
|
|
605
|
-
const imported = new Map;
|
|
606
|
-
const compiler = await compile(css, {
|
|
607
|
-
base,
|
|
608
|
-
loadStylesheet: (id, fromBase) => this.#loadStylesheet(id, fromBase, imported),
|
|
609
|
-
loadModule: (id, fromBase) => this.#loadModule(id, fromBase)
|
|
610
|
-
});
|
|
611
|
-
return { cssPath, compiler, imported };
|
|
612
|
-
}));
|
|
796
|
+
const compilers = await Promise.all(cssPaths.map((cssPath) => this.#compileStylesheet(cssPath)));
|
|
613
797
|
const sourceDirs = new Set;
|
|
614
798
|
for (const entry of compilers) {
|
|
615
|
-
for (const s of entry.compiler
|
|
799
|
+
for (const s of entry.compiler?.sources ?? [])
|
|
616
800
|
sourceDirs.add(s.base);
|
|
617
801
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
802
|
+
let candidates = [];
|
|
803
|
+
if (compilers.some((entry) => entry.compiler)) {
|
|
804
|
+
const scanStarted = Date.now();
|
|
805
|
+
candidates = await this.#scanCandidates(sourcePaths, [...sourceDirs]);
|
|
806
|
+
this.#logger.verbose(`css candidates scanned count=${candidates.length} sources=${sourcePaths.length} dirs=${sourceDirs.size} in ${Date.now() - scanStarted}ms`);
|
|
807
|
+
}
|
|
621
808
|
const parts = [];
|
|
622
809
|
const imported = [];
|
|
623
810
|
for (const entry of compilers) {
|
|
624
|
-
const part = entry.compiler.build(candidates);
|
|
811
|
+
const part = entry.compiler ? entry.compiler.build(candidates) : entry.plainCss;
|
|
625
812
|
parts.push(part);
|
|
626
813
|
for (const [cssPath, content] of entry.imported) {
|
|
627
814
|
const declaredNames = declaredCustomProperties(content);
|
|
628
815
|
imported.push({ cssPath, declaredNames });
|
|
629
|
-
if (declaredNames.length === 0 || declaredNames.some((name) => part.includes(`${name}:`)))
|
|
816
|
+
if (!entry.compiler || declaredNames.length === 0 || declaredNames.some((name) => part.includes(`${name}:`)))
|
|
630
817
|
continue;
|
|
631
818
|
this.#logger.warn(`css @import ${cssPath} was loaded by ${entry.cssPath} but none of its ${declaredNames.length} declaration(s) reached the compiled CSS`);
|
|
632
819
|
}
|
|
@@ -635,6 +822,24 @@ class CssCompiler {
|
|
|
635
822
|
return { css: parts.join(`
|
|
636
823
|
`), imported };
|
|
637
824
|
}
|
|
825
|
+
async#compileStylesheet(cssPath) {
|
|
826
|
+
const css = await Bun.file(cssPath).text();
|
|
827
|
+
const base = path3.dirname(cssPath);
|
|
828
|
+
const imported = new Map;
|
|
829
|
+
const loadStylesheet = (id, fromBase) => this.#loadStylesheet(id, fromBase, imported);
|
|
830
|
+
const plainCss = await PlainStylesheet.bundle(css, base, loadStylesheet);
|
|
831
|
+
if (plainCss !== null) {
|
|
832
|
+
this.#logger.verbose(`css ${cssPath} uses no Tailwind; passed through with ${imported.size} import(s) inlined`);
|
|
833
|
+
return { cssPath, compiler: null, plainCss, imported };
|
|
834
|
+
}
|
|
835
|
+
imported.clear();
|
|
836
|
+
const compiler = await compile(css, {
|
|
837
|
+
base,
|
|
838
|
+
loadStylesheet,
|
|
839
|
+
loadModule: (id, fromBase) => this.#loadModule(id, fromBase)
|
|
840
|
+
});
|
|
841
|
+
return { cssPath, compiler, plainCss: "", imported };
|
|
842
|
+
}
|
|
638
843
|
async#loadStylesheet(id, fromBase, imported) {
|
|
639
844
|
const p = await this.#resolveCssImport(id, fromBase);
|
|
640
845
|
this.#discoveredCssPaths.add(p);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CommandContainer,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vznyyaf8.js";
|
|
6
6
|
import {
|
|
7
7
|
WorkspaceExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-609zbjve.js";
|
|
9
9
|
import {
|
|
10
10
|
jsonText,
|
|
11
11
|
workflowPlanApproval,
|
|
@@ -31,23 +31,23 @@ import {
|
|
|
31
31
|
renderWorkflowApply,
|
|
32
32
|
renderWorkflowValidation,
|
|
33
33
|
renderWorkflowRunArtifact
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-g7hm77j6.js";
|
|
35
35
|
import {
|
|
36
36
|
AkanContextAnalyzer
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-ghs8gtvp.js";
|
|
38
38
|
import {
|
|
39
39
|
ModuleScript
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-6yefp97x.js";
|
|
41
41
|
import {
|
|
42
42
|
PrimitiveScript
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-jzwdwse0.js";
|
|
44
44
|
import {
|
|
45
45
|
spawnAkan,
|
|
46
46
|
isWorkspaceTarget
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-2ktpwjgf.js";
|
|
48
48
|
import {
|
|
49
49
|
ScalarScript
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-0vv0a5h8.js";
|
|
51
51
|
import {
|
|
52
52
|
workflowSpecs
|
|
53
53
|
} from "./index-t4d0ckde.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-cfzqdsam.js";
|
|
5
5
|
import {
|
|
6
6
|
LibExecutor2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-c67vjafa.js";
|
|
8
8
|
import {
|
|
9
9
|
createAst,
|
|
10
10
|
AkanIndex
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./index-va90m8nd.js";
|
|
16
16
|
import {
|
|
17
17
|
camelToKebabCase
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-vznyyaf8.js";
|
|
19
19
|
|
|
20
20
|
// pkgs/@akanjs/devkit/workflow/artifacts.ts
|
|
21
21
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
isScannedRootEntry,
|
|
9
9
|
extractBlockVersion,
|
|
10
10
|
readDevkitVersion
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-609zbjve.js";
|
|
12
12
|
import {
|
|
13
13
|
FileSys2
|
|
14
14
|
} from "./index-zyjztrvc.js";
|
|
15
15
|
import {
|
|
16
16
|
AppExecutor2
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-cfzqdsam.js";
|
|
18
18
|
import {
|
|
19
19
|
LibExecutor2
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-c67vjafa.js";
|
|
21
21
|
import {
|
|
22
22
|
workflowPathsForPlan,
|
|
23
23
|
workflowRunArtifactPath,
|
|
24
24
|
workflowSyncDir
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-g7hm77j6.js";
|
|
26
26
|
import {
|
|
27
27
|
collectRecipeSources2,
|
|
28
28
|
scanRecipes2,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vznyyaf8.js";
|
|
5
5
|
import {
|
|
6
6
|
AppExecutor2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-cfzqdsam.js";
|
|
8
8
|
import {
|
|
9
9
|
LibExecutor2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-c67vjafa.js";
|
|
11
11
|
import {
|
|
12
12
|
InteractionScaffold,
|
|
13
13
|
workflowStatus,
|
|
@@ -46,16 +46,16 @@ import {
|
|
|
46
46
|
nextActionsForTarget,
|
|
47
47
|
createPrimitiveWriteReport,
|
|
48
48
|
insertTemplateField
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-g7hm77j6.js";
|
|
50
50
|
import {
|
|
51
51
|
ModuleScript
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-6yefp97x.js";
|
|
53
53
|
import {
|
|
54
54
|
plainNameProblem
|
|
55
55
|
} from "./index-va90m8nd.js";
|
|
56
56
|
import {
|
|
57
57
|
ModuleExecutor
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-zfmc4380.js";
|
|
59
59
|
|
|
60
60
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
61
61
|
import { capitalize, lowerlize } from "akanjs/common";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vznyyaf8.js";
|
|
6
6
|
import {
|
|
7
7
|
CommandExecutionError,
|
|
8
8
|
LibSource,
|
|
9
9
|
formatLibStatuses
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-609zbjve.js";
|
|
11
11
|
import {
|
|
12
12
|
LibExecutor2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-c67vjafa.js";
|
|
14
14
|
import {
|
|
15
15
|
assertPlainName
|
|
16
16
|
} from "./index-va90m8nd.js";
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
CloudApi,
|
|
7
7
|
CloudUpdates,
|
|
8
8
|
PipelineSecrets
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-arcdcexp.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveMobileTargets
|
|
12
12
|
} from "./index-m9jj544v.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-609zbjve.js";
|
|
16
16
|
import {
|
|
17
17
|
AppExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-cfzqdsam.js";
|
|
19
19
|
import {
|
|
20
20
|
NativeApp
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-v0gt5ryd.js";
|
|
22
22
|
import {
|
|
23
23
|
runner,
|
|
24
24
|
assertPromptable
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-vznyyaf8.js";
|
|
26
26
|
import {
|
|
27
27
|
getNpmRegistryUrl,
|
|
28
28
|
getPublishedVersions,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SysExecutor,
|
|
5
5
|
AppInfo,
|
|
6
6
|
WorkspaceExecutor
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-609zbjve.js";
|
|
8
8
|
import {
|
|
9
9
|
FileSys2
|
|
10
10
|
} from "./index-zyjztrvc.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from "./index-j4yvgfhr.js";
|
|
14
14
|
import {
|
|
15
15
|
AppExecutor2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-cfzqdsam.js";
|
|
17
17
|
import {
|
|
18
18
|
LibExecutor2
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-c67vjafa.js";
|
|
20
20
|
import {
|
|
21
21
|
PkgExecutor2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-2t7jnfg5.js";
|
|
23
23
|
import {
|
|
24
24
|
UNAVAILABLE_REDIS_HOST,
|
|
25
25
|
redisTunnelPolicy,
|
|
@@ -55,27 +55,27 @@ import {
|
|
|
55
55
|
filesChangedSince,
|
|
56
56
|
HmrWatcher,
|
|
57
57
|
WatchRootResolver
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-w18qdjyf.js";
|
|
59
59
|
import {
|
|
60
60
|
runner,
|
|
61
61
|
assertPromptable
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-vznyyaf8.js";
|
|
63
63
|
import {
|
|
64
64
|
UpdatePackFolder,
|
|
65
65
|
UpdateUploader,
|
|
66
66
|
NativePublicEnv,
|
|
67
67
|
NativeApp
|
|
68
|
-
} from "./index-
|
|
68
|
+
} from "./index-v0gt5ryd.js";
|
|
69
69
|
import {
|
|
70
70
|
DesktopServerStage
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-8fg1hvj5.js";
|
|
72
72
|
import {
|
|
73
73
|
resolveMobileTargets,
|
|
74
74
|
resolveAppId
|
|
75
75
|
} from "./index-m9jj544v.js";
|
|
76
76
|
import {
|
|
77
77
|
SlicePlanner
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-zx3bv21b.js";
|
|
79
79
|
import {
|
|
80
80
|
openBrowser
|
|
81
81
|
} from "./index-9dp031by.js";
|
|
@@ -2481,7 +2481,7 @@ var reportsNoTestFile = (exec) => {
|
|
|
2481
2481
|
};
|
|
2482
2482
|
|
|
2483
2483
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
2484
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
2484
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-ggkd5qgy.js")).ApplicationBuildRunner;
|
|
2485
2485
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
2486
2486
|
|
|
2487
2487
|
class ApplicationRunner extends runner("application") {
|
|
@@ -2682,7 +2682,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
|
|
|
2682
2682
|
await new (await loadBuildRunner())(app).typecheck(options);
|
|
2683
2683
|
}
|
|
2684
2684
|
async typecheckLibrary(lib, options = {}) {
|
|
2685
|
-
const { ProjectTypecheck } = await import("./projectTypecheck-
|
|
2685
|
+
const { ProjectTypecheck } = await import("./projectTypecheck-bz6smek9.js");
|
|
2686
2686
|
const root = lib.workspace.workspaceRoot;
|
|
2687
2687
|
await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
|
|
2688
2688
|
"../../server.ts",
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-arcdcexp.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-2t7jnfg5.js";
|
|
11
11
|
import {
|
|
12
12
|
UpdatePackFolder,
|
|
13
13
|
NativePublicEnv,
|
|
14
14
|
NativeApp
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-v0gt5ryd.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-vznyyaf8.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-91bcfjej.js";
|
|
22
22
|
import {
|
|
23
23
|
PackageScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-999e5kp4.js";
|
|
25
25
|
import {
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-ndfxse05.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
30
30
|
import { Logger } from "akanjs/common";
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
parseBiomeReport,
|
|
4
4
|
Linter,
|
|
5
5
|
ProjectTypecheck2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-609zbjve.js";
|
|
7
7
|
import {
|
|
8
8
|
TypecheckFailure
|
|
9
9
|
} from "./index-j4yvgfhr.js";
|
|
10
10
|
import {
|
|
11
11
|
ApplicationBuildReporter
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-w18qdjyf.js";
|
|
13
13
|
import {
|
|
14
14
|
AppExecutor2
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-cfzqdsam.js";
|
|
16
16
|
import {
|
|
17
17
|
LibExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-c67vjafa.js";
|
|
19
19
|
import {
|
|
20
20
|
PkgExecutor2
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-2t7jnfg5.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkspaceRunner,
|
|
24
24
|
AkanQualityScanner
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-0vtpxfx6.js";
|
|
26
26
|
import {
|
|
27
27
|
VerifyScope
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-rd669r6x.js";
|
|
29
29
|
|
|
30
30
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
31
31
|
import { existsSync } from "fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-cfzqdsam.js";
|
|
5
5
|
import {
|
|
6
6
|
createBarrelImportsPlugin,
|
|
7
7
|
workspaceBarrels,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CsrEntryFiles,
|
|
11
11
|
PagesEntrySourceGenerator,
|
|
12
12
|
PagesBundleBuilder
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-66b1hrxh.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
|
|
16
16
|
import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
|