@akanjs/cli 2.4.1-rc.3 → 2.4.1-rc.4
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 -0
- package/{agent.command-h4afc69n.js → agent.command-t4346579.js} +6 -6
- package/{application.command-jkmbsd1x.js → application.command-zkmeemdt.js} +5 -4
- package/{applicationBuildRunner-ny84tjhc.js → applicationBuildRunner-5w8j9yp7.js} +2 -1
- package/buildBatch.proc.js +3 -2
- package/{capacitorApp-y0h6cgft.js → capacitorApp-wnxzrppx.js} +2 -2
- package/{cloud.command-53j76grx.js → cloud.command-5ztqxppm.js} +8 -7
- package/{context.command-ds3mka9p.js → context.command-smwxwgwf.js} +13 -13
- package/{guideline.command-ya0dh44f.js → guideline.command-1r0esdjs.js} +3 -3
- package/incrementalBuilder.proc.js +36 -13
- package/index-0fn1r7gg.js +466 -0
- package/{index-1fpjvqhs.js → index-0jwvs8vp.js} +11 -11
- package/{index-a6sbyy0b.js → index-0t7pwff2.js} +3 -0
- package/{index-h6ca6qg0.js → index-2v10yr8g.js} +1 -1
- package/{index-m9pca6jv.js → index-2v6a4wd5.js} +4 -4
- package/{index-45aj5ry0.js → index-3sd2vape.js} +3 -3
- package/{index-gb26e7z0.js → index-ahpcr9ss.js} +3 -3
- package/{index-8rc0bm04.js → index-eay4t1te.js} +2 -2
- package/{index-qaq13qk3.js → index-eqxmxan6.js} +1 -1
- package/{index-pmm9e2jf.js → index-fh990y67.js} +2 -2
- package/{index-dynknvzd.js → index-gr4cjv99.js} +3 -3
- package/{index-1xdrsbry.js → index-hk58kr1m.js} +1 -1
- package/{index-85msc0wg.js → index-jbtn8h1y.js} +3 -3
- package/{index-q7zcac6n.js → index-khzzttv1.js} +108 -191
- package/{index-rgfxj6qc.js → index-n5y2gbf2.js} +307 -15
- package/{index-n6h3482q.js → index-nv7et4t3.js} +2 -2
- package/{index-hwzpw9c1.js → index-pya1h7wx.js} +3 -3
- package/{index-hdqztm58.js → index-qpz4csbs.js} +1 -1
- package/{index-0hjg9qs5.js → index-s9yajzkj.js} +5 -5
- package/{index-fmky5k3p.js → index-wh201a76.js} +5 -5
- package/{index-swf4bmbg.js → index-y4kg682s.js} +1 -1
- package/index.js +18 -18
- package/{library.command-r15zdqvp.js → library.command-jrew04m6.js} +3 -3
- package/{localRegistry.command-25sv5hmt.js → localRegistry.command-m08dkm1b.js} +7 -6
- package/{module.command-tnj2bzst.js → module.command-p98t7522.js} +6 -6
- package/{package.command-5x5m0ej1.js → package.command-57dyrfmn.js} +3 -3
- package/package.json +2 -2
- package/{page.command-c6xdx0xm.js → page.command-tas6f3na.js} +3 -3
- package/{primitive.command-q1ycj5vr.js → primitive.command-bjrbsakw.js} +7 -7
- package/{quality.command-es67wvdp.js → quality.command-zavaafbw.js} +2 -2
- package/{repair.command-677675vw.js → repair.command-je57wx67.js} +5 -5
- package/{scalar.command-bmrmp8n4.js → scalar.command-gqqyy1kr.js} +5 -5
- package/{workflow.command-64550hka.js → workflow.command-d6mrc47s.js} +10 -10
- package/{workspace.command-pmfxxfew.js → workspace.command-bbg96z8k.js} +20 -19
package/.build-stamp
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cf0119c268ffd25d9a5f294b48dd17139368114c7beb2e14d958c18a47442b5f
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AgentScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
4
|
+
} from "./index-pya1h7wx.js";
|
|
5
|
+
import"./index-eay4t1te.js";
|
|
6
|
+
import"./index-2v10yr8g.js";
|
|
7
|
+
import"./index-eqxmxan6.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-qpz4csbs.js";
|
|
12
|
+
import"./index-0t7pwff2.js";
|
|
13
13
|
import"./index-61keag0s.js";
|
|
14
14
|
import"./index-6pz1j0zj.js";
|
|
15
15
|
import"./index-r24hmh0q.js";
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-n5y2gbf2.js";
|
|
5
5
|
import {
|
|
6
6
|
getMobileTargetChoices
|
|
7
7
|
} from "./index-76rn3g2c.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-fh990y67.js";
|
|
9
9
|
import {
|
|
10
10
|
App,
|
|
11
11
|
Exec,
|
|
12
12
|
Sys,
|
|
13
13
|
Workspace,
|
|
14
14
|
command
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-qpz4csbs.js";
|
|
16
16
|
import"./index-fgc8r6dj.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-0t7pwff2.js";
|
|
18
18
|
import"./index-61keag0s.js";
|
|
19
|
+
import"./index-0fn1r7gg.js";
|
|
19
20
|
import"./index-6pz1j0zj.js";
|
|
20
21
|
import"./index-r24hmh0q.js";
|
|
21
22
|
|
package/buildBatch.proc.js
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor,
|
|
4
4
|
WorkspaceExecutor
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-0t7pwff2.js";
|
|
6
6
|
import"./index-61keag0s.js";
|
|
7
7
|
import {
|
|
8
8
|
CsrArtifactBuilder,
|
|
9
9
|
CssCompiler,
|
|
10
10
|
FontOptimizer,
|
|
11
11
|
PagesBundleBuilder
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-khzzttv1.js";
|
|
13
|
+
import"./index-0fn1r7gg.js";
|
|
13
14
|
import"./index-6pz1j0zj.js";
|
|
14
15
|
import"./index-r24hmh0q.js";
|
|
15
16
|
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
selectLocalDevHost,
|
|
25
25
|
sortIosRunTargets,
|
|
26
26
|
writeRootCapacitorConfig
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-hk58kr1m.js";
|
|
28
28
|
import"./index-76rn3g2c.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-0t7pwff2.js";
|
|
30
30
|
import"./index-61keag0s.js";
|
|
31
31
|
import"./index-6pz1j0zj.js";
|
|
32
32
|
import"./index-r24hmh0q.js";
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-s9yajzkj.js";
|
|
5
|
+
import"./index-gr4cjv99.js";
|
|
6
6
|
import {
|
|
7
7
|
GlobalConfig
|
|
8
8
|
} from "./index-5vvwc0cz.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-n5y2gbf2.js";
|
|
10
10
|
import"./index-76rn3g2c.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-fh990y67.js";
|
|
12
|
+
import"./index-nv7et4t3.js";
|
|
13
13
|
import {
|
|
14
14
|
Workspace,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-qpz4csbs.js";
|
|
17
17
|
import"./index-fgc8r6dj.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-0t7pwff2.js";
|
|
19
19
|
import"./index-x53a5nya.js";
|
|
20
20
|
import"./index-61keag0s.js";
|
|
21
|
+
import"./index-0fn1r7gg.js";
|
|
21
22
|
import"./index-6pz1j0zj.js";
|
|
22
23
|
import"./index-r24hmh0q.js";
|
|
23
24
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ContextScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
4
|
+
} from "./index-0jwvs8vp.js";
|
|
5
|
+
import"./index-jbtn8h1y.js";
|
|
6
|
+
import"./index-3sd2vape.js";
|
|
7
|
+
import"./index-ahpcr9ss.js";
|
|
8
|
+
import"./index-2v6a4wd5.js";
|
|
9
|
+
import"./index-wh201a76.js";
|
|
10
|
+
import"./index-y4kg682s.js";
|
|
11
11
|
import"./index-ss469dec.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
import"./index-hk58kr1m.js";
|
|
13
|
+
import"./index-eay4t1te.js";
|
|
14
|
+
import"./index-2v10yr8g.js";
|
|
15
|
+
import"./index-eqxmxan6.js";
|
|
16
16
|
import"./index-5vvwc0cz.js";
|
|
17
17
|
import"./index-76rn3g2c.js";
|
|
18
18
|
import {
|
|
19
19
|
Workspace,
|
|
20
20
|
command
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-qpz4csbs.js";
|
|
22
|
+
import"./index-0t7pwff2.js";
|
|
23
23
|
import"./index-61keag0s.js";
|
|
24
24
|
import"./index-6pz1j0zj.js";
|
|
25
25
|
import"./index-r24hmh0q.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
Prompter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-eqxmxan6.js";
|
|
5
5
|
import {
|
|
6
6
|
AiSession
|
|
7
7
|
} from "./index-5vvwc0cz.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
command,
|
|
11
11
|
runner,
|
|
12
12
|
script
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-qpz4csbs.js";
|
|
14
14
|
import {
|
|
15
15
|
getDirname
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-0t7pwff2.js";
|
|
17
17
|
import {
|
|
18
18
|
FileSys
|
|
19
19
|
} from "./index-61keag0s.js";
|
|
@@ -5,18 +5,20 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
AppExecutor,
|
|
7
7
|
WorkspaceExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-0t7pwff2.js";
|
|
9
9
|
import"./index-61keag0s.js";
|
|
10
10
|
import {
|
|
11
11
|
AutoImportSync,
|
|
12
12
|
DevChangePlanner,
|
|
13
13
|
DevGeneratedIndexSync,
|
|
14
14
|
GraphClientEntryDiscovery,
|
|
15
|
-
HmrWatcher,
|
|
16
15
|
RouteClientBuilder,
|
|
17
|
-
SsrBaseArtifactBuilder
|
|
16
|
+
SsrBaseArtifactBuilder
|
|
17
|
+
} from "./index-khzzttv1.js";
|
|
18
|
+
import {
|
|
19
|
+
HmrWatcher,
|
|
18
20
|
WatchRootResolver
|
|
19
|
-
} from "./index-
|
|
21
|
+
} from "./index-0fn1r7gg.js";
|
|
20
22
|
import"./index-6pz1j0zj.js";
|
|
21
23
|
import"./index-r24hmh0q.js";
|
|
22
24
|
|
|
@@ -90,6 +92,23 @@ class BuildBatchRunner {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
// pkgs/@akanjs/devkit/incrementalBuilder/builderReply.ts
|
|
96
|
+
class BuilderReply {
|
|
97
|
+
static #flushTimeoutMs = 5000;
|
|
98
|
+
static async send(res) {
|
|
99
|
+
const send = process.send;
|
|
100
|
+
if (!send)
|
|
101
|
+
return;
|
|
102
|
+
await new Promise((resolve) => {
|
|
103
|
+
const timer = setTimeout(resolve, BuilderReply.#flushTimeoutMs);
|
|
104
|
+
send.call(process, res, undefined, undefined, () => {
|
|
105
|
+
clearTimeout(timer);
|
|
106
|
+
resolve();
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
93
112
|
// pkgs/@akanjs/devkit/incrementalBuilder/incrementalBuilder.proc.ts
|
|
94
113
|
class IncrementalBuilder {
|
|
95
114
|
#logger = new Logger2("IncrementalBuilder");
|
|
@@ -102,6 +121,7 @@ class IncrementalBuilder {
|
|
|
102
121
|
#changePlanner;
|
|
103
122
|
#generatedIndexSync;
|
|
104
123
|
#autoImportSync;
|
|
124
|
+
#watcher = null;
|
|
105
125
|
#generation = 0;
|
|
106
126
|
#csrActive = IncrementalBuilder.#csrArmedByEnv();
|
|
107
127
|
#workQueue = Promise.resolve();
|
|
@@ -130,7 +150,7 @@ class IncrementalBuilder {
|
|
|
130
150
|
return `${this.#app.cwdPath}/.akan/artifact`;
|
|
131
151
|
}
|
|
132
152
|
async handleBuildRoute(msg) {
|
|
133
|
-
|
|
153
|
+
await this.#enqueueWork(`build-route:${msg.routeId}`, async () => BuilderReply.send(await this.#handleBuildRoute(msg)));
|
|
134
154
|
}
|
|
135
155
|
async#handleBuildRoute(msg) {
|
|
136
156
|
try {
|
|
@@ -300,7 +320,8 @@ class IncrementalBuilder {
|
|
|
300
320
|
await this.#enqueueWork("hmr-batch", async () => this.#handleWatchBatch(appDir, artifactDir, batch));
|
|
301
321
|
}
|
|
302
322
|
});
|
|
303
|
-
watcher.start();
|
|
323
|
+
await watcher.start();
|
|
324
|
+
this.#watcher = watcher;
|
|
304
325
|
this.#logger.verbose(`watching ${roots.length} roots`);
|
|
305
326
|
}
|
|
306
327
|
async#handleWatchBatch(appDir, artifactDir, batch) {
|
|
@@ -314,6 +335,7 @@ class IncrementalBuilder {
|
|
|
314
335
|
if (autoImport.changedFiles.length > 0)
|
|
315
336
|
this.#logger.verbose(`[auto-import] inserted imports into ${autoImport.changedFiles.length} file(s)`);
|
|
316
337
|
const indexSync = await this.#generatedIndexSync.syncForBatch(batch.files);
|
|
338
|
+
await this.#watcher?.absorb([...autoImport.changedFiles, ...indexSync.changedFiles]);
|
|
317
339
|
const { files, kinds, expandedBatch, event, hasSyncErrors } = prepareDevWatchBatch({
|
|
318
340
|
generation,
|
|
319
341
|
batch,
|
|
@@ -442,17 +464,18 @@ class IncrementalBuilder {
|
|
|
442
464
|
this.#logger.verbose(`announced boot state after recycle generation=${generation}`);
|
|
443
465
|
}
|
|
444
466
|
async handleBuildCsr(msg) {
|
|
445
|
-
|
|
467
|
+
await this.#enqueueWork("build-csr", async () => {
|
|
446
468
|
const started = Date.now();
|
|
447
469
|
const result = await this.#batchRunner.run(await this.#batchRequest({ generation: this.#generation, needs: ["csr"], changedFiles: [] }));
|
|
448
470
|
const error = result.errors.csr;
|
|
449
471
|
if (error) {
|
|
450
472
|
this.#logger.error(`csr-build failed: ${error}`);
|
|
451
|
-
|
|
473
|
+
await BuilderReply.send({ type: "build-csr-res", id: msg.id, ok: false, error });
|
|
474
|
+
return;
|
|
452
475
|
}
|
|
453
476
|
this.#csrActive = true;
|
|
454
477
|
this.#logger.info(`csr-build ok on demand (${Date.now() - started}ms); rebuilding CSR on every save now`);
|
|
455
|
-
|
|
478
|
+
await BuilderReply.send({ type: "build-csr-res", id: msg.id, ok: true });
|
|
456
479
|
});
|
|
457
480
|
}
|
|
458
481
|
#shouldRebuildCsr() {
|
|
@@ -514,7 +537,7 @@ class IncrementalBuilder {
|
|
|
514
537
|
}
|
|
515
538
|
}
|
|
516
539
|
});
|
|
517
|
-
watcher.start();
|
|
540
|
+
await watcher.start();
|
|
518
541
|
logger.warn(`[degraded] watching ${roots.length} roots for a fix`);
|
|
519
542
|
})().catch(reject);
|
|
520
543
|
});
|
|
@@ -547,7 +570,7 @@ class IncrementalBuilder {
|
|
|
547
570
|
process.send?.({ type: "build-route-res", id: msg.id, ok: false, error });
|
|
548
571
|
return;
|
|
549
572
|
}
|
|
550
|
-
builder.handleBuildRoute(msg)
|
|
573
|
+
builder.handleBuildRoute(msg);
|
|
551
574
|
return;
|
|
552
575
|
}
|
|
553
576
|
if (msg.type === "build-csr") {
|
|
@@ -556,7 +579,7 @@ class IncrementalBuilder {
|
|
|
556
579
|
process.send?.({ type: "build-csr-res", id: msg.id, ok: false, error });
|
|
557
580
|
return;
|
|
558
581
|
}
|
|
559
|
-
builder.handleBuildCsr(msg)
|
|
582
|
+
builder.handleBuildCsr(msg);
|
|
560
583
|
}
|
|
561
584
|
});
|
|
562
585
|
process.on("disconnect", () => {
|
|
@@ -576,7 +599,7 @@ class IncrementalBuilder {
|
|
|
576
599
|
await builder.boot();
|
|
577
600
|
if (recoveredFiles)
|
|
578
601
|
await builder.announceRecoveredState(recoveredFiles);
|
|
579
|
-
else if (process.env.
|
|
602
|
+
else if (process.env.AKAN_BUILDER_ANNOUNCE_BOOT === "1")
|
|
580
603
|
await builder.announceBootState();
|
|
581
604
|
await builder.rearmCsrFromEnv();
|
|
582
605
|
}
|