@akanjs/cli 3.2.0-rc.3 → 3.2.0-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 +2 -1
- package/{CodeAgent-e9c712an.js → CodeAgent-4a2skdph.js} +3 -3
- package/{CodeTui-wv9yf7eq.js → CodeTui-enrzsnzc.js} +1 -1
- package/{TunnelShare-zkfkrw8w.js → TunnelShare-xs5rrpf1.js} +5 -5
- package/{agent.command-9erafkcb.js → agent.command-y22t9x1e.js} +11 -11
- package/akanCode.js +3 -3
- package/{application.command-6515t682.js → application.command-yhj5arwc.js} +10 -10
- package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-6w1fd61b.js} +5 -5
- package/buildBatch.proc.js +4 -4
- package/{cloud.command-32esk0v1.js → cloud.command-bqfh4cnx.js} +13 -13
- package/{cloud.script-arsagnq6.js → cloud.script-8jvfw1sh.js} +13 -13
- package/{code.command-xk7rwq2x.js → code.command-y94hwxsn.js} +5 -5
- package/{context.command-jwenkkf0.js → context.command-xz65fhrn.js} +15 -15
- package/context.runner-dpt5wjb7.js +29 -0
- package/{devTui-cd03z4mx.js → devTui-h77zrjv5.js} +1 -1
- package/{guideline.command-w6yqpdec.js → guideline.command-sn843nw6.js} +1 -1
- package/guidelines/conventions/rules/page.md +4 -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 +2 -2
- package/{index-xrmrvafh.js → index-02b8qvww.js} +2 -2
- package/{index-j1hjb477.js → index-2rcptfyp.js} +1 -1
- package/{index-84c2pgak.js → index-3rff2c48.js} +1 -0
- package/{index-dpgywgeq.js → index-3wen6ddy.js} +1 -1
- package/{index-43acpsc7.js → index-49y45vbj.js} +9 -9
- package/{index-8gm4yag8.js → index-4mgabs8t.js} +4 -4
- package/{index-ytpmk3pb.js → index-50mg8bsm.js} +4 -4
- package/{index-20wvskt8.js → index-5hhe0rdd.js} +1 -1
- package/{index-kcpk2d20.js → index-5qq6qky3.js} +8 -8
- package/{index-vbhx60x5.js → index-5w8amdr7.js} +1 -1
- package/{index-bdmgqzb5.js → index-8vxdsqra.js} +35 -22
- package/{index-ddk49ypz.js → index-ah09graf.js} +53 -26
- package/{index-sc0g6zbm.js → index-b4qq3rq0.js} +23 -10
- package/{index-2eym1yjb.js → index-b9q5aw30.js} +10 -10
- package/{index-ngpt3zz3.js → index-fqx74yxn.js} +11 -8
- package/{index-djc5nxpy.js → index-g43360sn.js} +2 -2
- package/{index-bak9f2br.js → index-gsty3pkx.js} +5 -1
- package/{index-386canwe.js → index-hkq0q73d.js} +44 -25
- package/{index-s34v3y28.js → index-jgj6ajnk.js} +4 -4
- package/{index-zhkcab5a.js → index-jqsj5wjb.js} +1 -1
- package/{index-54s6knqe.js → index-jrdp7c4h.js} +2 -2
- package/{index-wr9magsr.js → index-jxaq2evq.js} +1 -1
- package/{index-h0p6n4k1.js → index-kgxhwgdk.js} +3 -3
- package/{index-6h775rv3.js → index-kjmrkc45.js} +4 -4
- package/{index-qrk06tfp.js → index-kr8dvqnr.js} +1 -1
- package/{index-j4hkbzj6.js → index-qrp98bmp.js} +4 -4
- package/{index-0ba8nj4d.js → index-sjj3ywn5.js} +16 -9
- package/index-va90m8nd.js +25 -0
- package/{index-e22zedc2.js → index-vftjqv28.js} +2 -2
- package/{index-2rqyrvcy.js → index-w15hnxmb.js} +5 -5
- package/{index-zcdmnfrf.js → index-w88xghey.js} +6 -6
- package/{index-7kmbqp0b.js → index-z9b72teg.js} +1 -1
- package/index.js +22 -22
- package/{library.command-qs8beggh.js → library.command-6eafevmj.js} +2 -2
- package/{localRegistry.command-hz4ged9n.js → localRegistry.command-9tef2qsj.js} +12 -12
- package/{module.command-z9js77m2.js → module.command-pn1k7dfk.js} +9 -5
- package/{package.command-zqenq8c0.js → package.command-kbg9z7re.js} +2 -2
- package/package.json +2 -2
- package/{page.command-t0nx1jat.js → page.command-st0y2xg8.js} +2 -2
- package/{pipeline.command-2yjeas7m.js → pipeline.command-76m32y7z.js} +1 -1
- package/{primitive.command-v5kypwy4.js → primitive.command-ax6wg70s.js} +5 -5
- package/{quality.command-q55j2htd.js → quality.command-0gzskga8.js} +2 -2
- package/{repair.command-7ssbbdq2.js → repair.command-g5kc3x89.js} +4 -4
- package/{scalar.command-p5jb7z57.js → scalar.command-ck8621dy.js} +3 -3
- package/skills/akan-debug/SKILL.md +6 -2
- package/skills/akan-transport/SKILL.md +2 -0
- package/{subspace.command-7wxy6ptj.js → subspace.command-vh6dye0v.js} +6 -6
- package/{tunnel.command-22g11n0x.js → tunnel.command-4mezrypt.js} +6 -6
- package/{verify.command-m0wnndd7.js → verify.command-f2n4bwp7.js} +8 -8
- package/{workflow.command-jx8dqs9n.js → workflow.command-bx9xwgs5.js} +9 -9
- package/{workspace.command-ca9kfyt3.js → workspace.command-04qgwsst.js} +27 -27
- package/context.runner-mqpp67br.js +0 -29
- package/index-x3x31df8.js +0 -14
package/.build-stamp
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
66d5154b5e200a71d3b30154410a089b08c638219a9123bddbe4cd7a80143e47
|
|
2
|
+
5d70bd14-96e8-49e8-9e19-cd4dc28b745f
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CodeAgent2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-50mg8bsm.js";
|
|
5
|
+
import"./index-kr8dvqnr.js";
|
|
6
|
+
import"./index-b4qq3rq0.js";
|
|
7
7
|
import"./index-35j83zkd.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
9
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
TunnelShare2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-2rcptfyp.js";
|
|
5
|
+
import"./index-vftjqv28.js";
|
|
6
|
+
import"./index-g43360sn.js";
|
|
7
7
|
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-jxaq2evq.js";
|
|
9
|
+
import"./index-3rff2c48.js";
|
|
10
10
|
import"./index-wfmpxke3.js";
|
|
11
11
|
import"./index-bns3wcpc.js";
|
|
12
12
|
export {
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-hkq0q73d.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
7
|
import"./index-wfmpxke3.js";
|
|
8
8
|
import"./index-35j83zkd.js";
|
|
9
9
|
import"./index-j6eeh5d7.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-fqx74yxn.js";
|
|
11
11
|
import"./index-hj6w4ka1.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-02b8qvww.js";
|
|
13
13
|
import"./index-9p260r4e.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-5qq6qky3.js";
|
|
15
15
|
import"./index-y725zb1a.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-g43360sn.js";
|
|
17
|
+
import"./index-5hhe0rdd.js";
|
|
18
18
|
import"./index-m9jj544v.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-3rff2c48.js";
|
|
20
|
+
import"./index-jxaq2evq.js";
|
|
21
|
+
import"./index-jqsj5wjb.js";
|
|
22
22
|
import"./index-ygrdw6jw.js";
|
|
23
23
|
import"./index-62md4dwy.js";
|
|
24
24
|
import"./index-ygdbn9jn.js";
|
|
25
25
|
import"./index-ny2k80mv.js";
|
|
26
26
|
import"./index-v50xjbbe.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-3wen6ddy.js";
|
|
28
28
|
import {
|
|
29
29
|
AgentScript
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-w15hnxmb.js";
|
|
31
31
|
import"./index-8jpc5fqv.js";
|
|
32
32
|
|
|
33
33
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
package/akanCode.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PreviewChrome2,
|
|
4
4
|
PreviewView2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-b4qq3rq0.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
7
|
import {
|
|
8
8
|
akanCodePaths2
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
CodeMailbox2,
|
|
35
35
|
CodeSessionFork2,
|
|
36
36
|
CodeAgent2
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-50mg8bsm.js";
|
|
38
38
|
import {
|
|
39
39
|
akanCodeDefaultModel2,
|
|
40
40
|
akanCodeModel2,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
SubagentPool2,
|
|
47
47
|
AkanCodeCompaction2
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-kr8dvqnr.js";
|
|
49
49
|
import {
|
|
50
50
|
CodeAgentRpcHost2
|
|
51
51
|
} from "./index-s4nvxpzm.js";
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
Exec,
|
|
8
8
|
Workspace,
|
|
9
9
|
command
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-hkq0q73d.js";
|
|
11
11
|
import"./index-bns3wcpc.js";
|
|
12
12
|
import"./index-wfmpxke3.js";
|
|
13
13
|
import"./index-y725zb1a.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-g43360sn.js";
|
|
15
|
+
import"./index-5hhe0rdd.js";
|
|
16
16
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
17
|
+
import"./index-3rff2c48.js";
|
|
18
|
+
import"./index-jxaq2evq.js";
|
|
19
|
+
import"./index-jrdp7c4h.js";
|
|
20
|
+
import"./index-5qq6qky3.js";
|
|
21
|
+
import"./index-b4qq3rq0.js";
|
|
22
22
|
import {
|
|
23
23
|
ApplicationScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-ah09graf.js";
|
|
25
25
|
import {
|
|
26
26
|
writeOption,
|
|
27
27
|
nativeTargetOption,
|
|
@@ -95,7 +95,7 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
95
95
|
desc: "Open pages of the app's dev server in a headless browser and print what broke, starting a server if none runs",
|
|
96
96
|
stdio: true
|
|
97
97
|
}).with(App).arg("paths", String, {
|
|
98
|
-
desc: "page paths, comma-separated; the default locale is added when missing,
|
|
98
|
+
desc: "page paths, comma-separated; the default locale is added when missing, except to a path the server answers outside a locale (/_akan, the API prefix, /__csr, /__rsc, /.well-known, /openapi.json, the default /mcp, the server's own files, public/ files) or a full URL, which opens as written (default: /)",
|
|
99
99
|
example: "/board,/board/new",
|
|
100
100
|
nullable: true
|
|
101
101
|
}).option("changed", Boolean, {
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
10
|
import {
|
|
11
11
|
NARROWABLE_VENDOR_SPECIFIERS
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-5w8amdr7.js";
|
|
13
13
|
import {
|
|
14
14
|
FontPruner,
|
|
15
15
|
RouteJsBudget
|
|
16
16
|
} from "./index-y725zb1a.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-3rff2c48.js";
|
|
18
18
|
import {
|
|
19
19
|
AllRoutesBuilder,
|
|
20
20
|
precompressArtifacts,
|
|
21
21
|
SsrBaseArtifactBuilder,
|
|
22
22
|
VendorImportScanner
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-8vxdsqra.js";
|
|
24
24
|
import {
|
|
25
25
|
CsrArtifactBuilder
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-jxaq2evq.js";
|
|
27
27
|
import"./index-62md4dwy.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
@@ -393,7 +393,7 @@ void run().catch((error) => {
|
|
|
393
393
|
const { baseDevEnv, branches } = await this.#app.getConfig();
|
|
394
394
|
const routes = new AllRoutesBuilder(this.#app, "build");
|
|
395
395
|
const allRoutes = await routes.build();
|
|
396
|
-
const vendorExports = await VendorImportScanner.exportsUsedIn(path3.join(this.#app.dist.cwdPath, ".akan/artifact/client"), NARROWABLE_VENDOR_SPECIFIERS);
|
|
396
|
+
const vendorExports = await VendorImportScanner.exportsUsedIn(path3.join(this.#app.dist.cwdPath, ".akan/artifact/client"), NARROWABLE_VENDOR_SPECIFIERS, Object.values(allRoutes.manifest.clientManifest).map(({ id }) => id));
|
|
397
397
|
const base = await new SsrBaseArtifactBuilder(this.#app, "build", {
|
|
398
398
|
serverEnv: this.#serverEnvPlugin(baseDevEnv.env, branches),
|
|
399
399
|
vendorExports
|
package/buildBatch.proc.js
CHANGED
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
saveRouteSeedIndex,
|
|
14
14
|
CsrDevBundler,
|
|
15
15
|
SsrDevBundler
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-5w8amdr7.js";
|
|
17
17
|
import"./index-bns3wcpc.js";
|
|
18
18
|
import {
|
|
19
19
|
ServerGraphFile,
|
|
20
20
|
PagesBundleBuilder
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-3rff2c48.js";
|
|
22
22
|
import {
|
|
23
23
|
CssCompiler,
|
|
24
24
|
SsrBaseArtifactBuilder
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-8vxdsqra.js";
|
|
26
26
|
import {
|
|
27
27
|
CsrArtifactBuilder
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-jxaq2evq.js";
|
|
29
29
|
import"./index-62md4dwy.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-hkq0q73d.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
8
|
import"./index-wfmpxke3.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-vftjqv28.js";
|
|
10
10
|
import {
|
|
11
11
|
PlatformTestRun
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-kjmrkc45.js";
|
|
13
|
+
import"./index-g43360sn.js";
|
|
14
|
+
import"./index-5hhe0rdd.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-3rff2c48.js";
|
|
17
|
+
import"./index-jxaq2evq.js";
|
|
18
18
|
import {
|
|
19
19
|
npmRegistryFromEnv,
|
|
20
20
|
warnIgnoredNpmRegistry
|
|
21
21
|
} from "./index-ny2k80mv.js";
|
|
22
22
|
import"./index-y725zb1a.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
23
|
+
import"./index-jrdp7c4h.js";
|
|
24
|
+
import"./index-5qq6qky3.js";
|
|
25
|
+
import"./index-b4qq3rq0.js";
|
|
26
|
+
import"./index-ah09graf.js";
|
|
27
27
|
import"./index-qd7xn2bk.js";
|
|
28
28
|
import"./index-9p260r4e.js";
|
|
29
29
|
import"./index-cmg5ngqa.js";
|
|
30
30
|
import"./index-ygrdw6jw.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-gsty3pkx.js";
|
|
32
32
|
import {
|
|
33
33
|
CloudScript2
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-w88xghey.js";
|
|
35
35
|
import {
|
|
36
36
|
writeOption,
|
|
37
37
|
oneNativeTargetOption,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
4
|
+
} from "./index-w88xghey.js";
|
|
5
|
+
import"./index-kjmrkc45.js";
|
|
6
|
+
import"./index-ah09graf.js";
|
|
7
|
+
import"./index-jrdp7c4h.js";
|
|
8
|
+
import"./index-gsty3pkx.js";
|
|
9
|
+
import"./index-vftjqv28.js";
|
|
10
10
|
import"./index-ny2k80mv.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-5qq6qky3.js";
|
|
12
12
|
import"./index-8jpc5fqv.js";
|
|
13
13
|
import"./index-ygrdw6jw.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-5hhe0rdd.js";
|
|
15
|
+
import"./index-g43360sn.js";
|
|
16
16
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-hkq0q73d.js";
|
|
18
18
|
import"./index-9bv479q5.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-b4qq3rq0.js";
|
|
20
20
|
import"./index-cmg5ngqa.js";
|
|
21
21
|
import"./index-9p260r4e.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-jxaq2evq.js";
|
|
23
23
|
import"./index-y725zb1a.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-3rff2c48.js";
|
|
25
25
|
import"./index-wfmpxke3.js";
|
|
26
26
|
import"./index-qd7xn2bk.js";
|
|
27
27
|
import"./index-bns3wcpc.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-hkq0q73d.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
9
|
import"./index-wfmpxke3.js";
|
|
10
10
|
import {
|
|
@@ -77,7 +77,7 @@ class CodeRunner extends runner("code") {
|
|
|
77
77
|
async serve(options, listen) {
|
|
78
78
|
await import("./consoleToStderr-h5bryj94.js");
|
|
79
79
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
80
|
-
import("./CodeAgent-
|
|
80
|
+
import("./CodeAgent-4a2skdph.js"),
|
|
81
81
|
import("./CodeAgentRpcHost-6dzfkvsc.js"),
|
|
82
82
|
import("./CodeAgentRpcListener-tcwrdvst.js")
|
|
83
83
|
]);
|
|
@@ -111,8 +111,8 @@ class CodeRunner extends runner("code") {
|
|
|
111
111
|
}
|
|
112
112
|
async tui(options, seed) {
|
|
113
113
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
114
|
-
import("./CodeAgent-
|
|
115
|
-
import("./CodeTui-
|
|
114
|
+
import("./CodeAgent-4a2skdph.js"),
|
|
115
|
+
import("./CodeTui-enrzsnzc.js")
|
|
116
116
|
]);
|
|
117
117
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
|
|
118
118
|
const agentOptions = start.agent;
|
|
@@ -148,7 +148,7 @@ class CodeRunner extends runner("code") {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
async run(prompt, options) {
|
|
151
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
151
|
+
const { CodeAgent } = await import("./CodeAgent-4a2skdph.js");
|
|
152
152
|
const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
|
|
153
153
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
|
|
154
154
|
for (const warning of start.warnings)
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-hkq0q73d.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
7
|
import"./index-wfmpxke3.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-fqx74yxn.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-02b8qvww.js";
|
|
11
11
|
import"./index-9p260r4e.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-b9q5aw30.js";
|
|
13
|
+
import"./index-g43360sn.js";
|
|
14
|
+
import"./index-5hhe0rdd.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-3rff2c48.js";
|
|
17
|
+
import"./index-jxaq2evq.js";
|
|
18
18
|
import"./index-j6eeh5d7.js";
|
|
19
19
|
import"./index-ygdbn9jn.js";
|
|
20
20
|
import"./index-39jz41jb.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
21
|
+
import"./index-4mgabs8t.js";
|
|
22
|
+
import"./index-z9b72teg.js";
|
|
23
|
+
import"./index-jgj6ajnk.js";
|
|
24
|
+
import"./index-sjj3ywn5.js";
|
|
25
|
+
import"./index-kgxhwgdk.js";
|
|
26
26
|
import"./index-v50xjbbe.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-49y45vbj.js";
|
|
28
28
|
import {
|
|
29
29
|
ContextScript
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-qrp98bmp.js";
|
|
31
31
|
|
|
32
32
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
33
33
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ContextRunner2
|
|
4
|
+
} from "./index-b9q5aw30.js";
|
|
5
|
+
import"./index-49y45vbj.js";
|
|
6
|
+
import"./index-kgxhwgdk.js";
|
|
7
|
+
import"./index-sjj3ywn5.js";
|
|
8
|
+
import"./index-4mgabs8t.js";
|
|
9
|
+
import"./index-jgj6ajnk.js";
|
|
10
|
+
import"./index-z9b72teg.js";
|
|
11
|
+
import"./index-v50xjbbe.js";
|
|
12
|
+
import"./index-fqx74yxn.js";
|
|
13
|
+
import"./index-02b8qvww.js";
|
|
14
|
+
import"./index-5hhe0rdd.js";
|
|
15
|
+
import"./index-j6eeh5d7.js";
|
|
16
|
+
import"./index-g43360sn.js";
|
|
17
|
+
import"./index-m9jj544v.js";
|
|
18
|
+
import"./index-hkq0q73d.js";
|
|
19
|
+
import"./index-39jz41jb.js";
|
|
20
|
+
import"./index-ygdbn9jn.js";
|
|
21
|
+
import"./index-9p260r4e.js";
|
|
22
|
+
import"./index-jxaq2evq.js";
|
|
23
|
+
import"./index-3rff2c48.js";
|
|
24
|
+
import"./index-wfmpxke3.js";
|
|
25
|
+
import"./index-hj6w4ka1.js";
|
|
26
|
+
import"./index-bns3wcpc.js";
|
|
27
|
+
export {
|
|
28
|
+
ContextRunner2 as ContextRunner
|
|
29
|
+
};
|
|
@@ -43,6 +43,10 @@ export default page()
|
|
|
43
43
|
- `.render()` gets the declared args flat and typed (no `PageProps`, no `loader=` prop). Order: `usePage()`, fetch,
|
|
44
44
|
return; auth is the chain's `.guard()`, which runs before anything renders. Hand `fetch.init*` / `view*` / `edit*` fields to sections unawaited; await only what the shell reads
|
|
45
45
|
(title, redirect, link id) in one `Promise.all`.
|
|
46
|
+
- **A field's refusal belongs to its `Load.*`**, which draws a notice while the page answers 200. So a field reaches
|
|
47
|
+
only a `Load.*`, directly or through a Zone. Awaiting one in a component below the page, rendering it as a child or
|
|
48
|
+
`use()`-ing it outside `Load.*` blanks the page when the server refuses it. Await the handle (`await fetch.initX()`)
|
|
49
|
+
instead, so a refusal takes the layout's `.error()`.
|
|
46
50
|
- **A route never writes while it renders**: a `fetch.<mutation>()` in a stage or a component it renders throws
|
|
47
51
|
`base.error.mutationInRender`, since opening a link would perform it. Send it from a user action;
|
|
48
52
|
`{ duringRender: true }` only for a write harmless to repeat and safe for anyone to trigger (`ssrRule`).
|
|
@@ -48,6 +48,11 @@ body shape — this is the full contract behind them. Before changing route beha
|
|
|
48
48
|
that is harmless to repeat and safe for anyone to trigger (a warm-up) passes `{ duringRender: true }` as the option
|
|
49
49
|
after the endpoint's own arguments (`fetch.updateX(id, data, { duringRender: true })`). `akan quality` flags the call,
|
|
50
50
|
same-file helpers included, as `akan.ssr.render-mutation`.
|
|
51
|
+
- **A `Link` renders its page ahead of the click** — on hover, on keyboard focus, or as it shows with
|
|
52
|
+
`prefetch="viewport"` (production only). A page whose render has an effect one visit should cause once — a view
|
|
53
|
+
counted through `duringRender`, an expensive report — refuses with `.config({ prefetch: false })`; on a `_layout.tsx`
|
|
54
|
+
it covers every page below, and a page there opts back in with `prefetch: true`. Its guards still run for the
|
|
55
|
+
prefetch, so a redirect answers as one, and the click renders the page as usual.
|
|
51
56
|
|
|
52
57
|
## Route Guards — `.guard()`
|
|
53
58
|
|
|
@@ -536,6 +536,10 @@ page API is
|
|
|
536
536
|
`akanjs/client/native/<id>` (`akanjs/client/native/window`, `…/screen`, `…/global-shortcut`), imported in a `webkit/`
|
|
537
537
|
hook; `volume` and `filePicker` also come from `akanjs/client/native` itself. A capability the shell
|
|
538
538
|
lacks is added there: an app's own plugin runs as Bun code in the plugin host and cannot add a native shell op.
|
|
539
|
+
`isNativeApp()`, `isNativeShell()`, `nativePlatform()` and `desktopPlatform()` come from `akanjs/client`, which starts
|
|
540
|
+
the native runtime only inside a shell. A static import of `akanjs/client/native` loads `@akanjs/native/core` on every
|
|
541
|
+
web page that reaches the file, so an app's store, or its own hook a web page also renders, loads the plugin on first
|
|
542
|
+
use behind the check: `if (isNativeApp()) await (await import("akanjs/client/native/push")).push.register()`.
|
|
539
543
|
|
|
540
544
|
**A plugin the app or lib owns lives in `native/<id>/`**, the folder named after the plugin id: `native-plugin.json`
|
|
541
545
|
beside its page API (`src/index.ts`, `definePlugin` from `akanjs/client/native`), its desktop part (`src/desktop.ts`,
|
|
@@ -555,7 +559,7 @@ uses `getCookie` / `setCookie` / `removeCookie`, `storage`, and `secretStorage`
|
|
|
555
559
|
names — pass `sameSite: "none"` only for a cookie a cross-site POST must carry back. `getCookie` reads a name sent
|
|
556
560
|
twice as unset, since a sibling subdomain can plant a second copy; server code reads `cookieJar()` from
|
|
557
561
|
`akanjs/fetch`, or `CookieJar.parse(req.headers.get("cookie"))`, never `req.cookies`. Browser APIs an app WebView lacks
|
|
558
|
-
stay in a `webkit/` hook that branches on `isNativeApp()` from `akanjs/client
|
|
562
|
+
stay in a `webkit/` hook that branches on `isNativeApp()` from `akanjs/client`, which is where the app side goes
|
|
559
563
|
too (`no-web-only-api-outside-webkit`, a warning): `navigator.share` / `canShare` (Android's WebView has none),
|
|
560
564
|
`navigator.serviceWorker` and `Notification.requestPermission` / `.permission` (no app page has them),
|
|
561
565
|
`navigator.geolocation` (use `useGeoLocation` from `akanjs/webkit`) and `navigator.vibrate` (iOS has none; use
|
|
@@ -66,6 +66,11 @@ HTTP verb a mutation is mounted under. `conventions` carries the invariants —
|
|
|
66
66
|
- **A subscribe the client leaves before it finishes joins nothing.** When an `unsubscribe` for the room, or the
|
|
67
67
|
socket's close, arrives while the subscribe is still running, the subscribe answers `subscribe: false` and runs its
|
|
68
68
|
`unsubscribe` cleanup (and its `disconnect` one when the socket closed) instead of joining the room.
|
|
69
|
+
- **A send from the browser drops the reads it may have made stale.** A mutation, an upload or a `message` sent
|
|
70
|
+
through `fetch` ends the sharing of queries already in flight and drops the pages a `Link` prefetched, so the next
|
|
71
|
+
read asks again; only this tab's own sends count. A send that changes nothing anyone reads back — typing status, a
|
|
72
|
+
cursor move — passes `{ keepsReads: true }` after its arguments (`fetch.typing(chatId, { keepsReads: true })`), or
|
|
73
|
+
a chatty endpoint keeps every prefetch from surviving. A read receipt changes an unread count and passes nothing.
|
|
69
74
|
|
|
70
75
|
## Writing A Guard
|
|
71
76
|
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
DevChangePlanner,
|
|
20
20
|
DevGeneratedIndexSync,
|
|
21
21
|
SsrDevBundler
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-5w8amdr7.js";
|
|
23
23
|
import {
|
|
24
24
|
ServerGraphFile
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-3rff2c48.js";
|
|
26
26
|
import"./index-9p260r4e.js";
|
|
27
27
|
import {
|
|
28
28
|
FrameworkGraph
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
sysNamePattern,
|
|
12
12
|
identifierPattern
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-va90m8nd.js";
|
|
14
14
|
import {
|
|
15
15
|
camelToKebabCase
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-hkq0q73d.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/devkit/workflow/artifacts.ts
|
|
19
19
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -576,6 +576,7 @@ var bundleDefine = (app, command, renderEnv) => {
|
|
|
576
576
|
return {
|
|
577
577
|
"process.env.NODE_ENV": JSON.stringify(nodeEnv),
|
|
578
578
|
"process.env.AKAN_PUBLIC_RENDER_ENV": JSON.stringify(renderEnv),
|
|
579
|
+
"process.env.AKAN_BUNDLE_COMMAND": JSON.stringify(command),
|
|
579
580
|
...Object.fromEntries(Object.entries(app.getPublicEnv()).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, value]) => [`process.env.${key}`, JSON.stringify(value)]))
|
|
580
581
|
};
|
|
581
582
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
AkanContextAnalyzer
|
|
4
|
-
} from "./index-ngpt3zz3.js";
|
|
5
2
|
import {
|
|
6
3
|
WorkspaceExecutor
|
|
7
4
|
} from "./index-wfmpxke3.js";
|
|
5
|
+
import {
|
|
6
|
+
AkanContextAnalyzer
|
|
7
|
+
} from "./index-fqx74yxn.js";
|
|
8
8
|
import {
|
|
9
9
|
jsonText,
|
|
10
10
|
workflowPlanApproval,
|
|
@@ -30,24 +30,24 @@ import {
|
|
|
30
30
|
renderWorkflowApply,
|
|
31
31
|
renderWorkflowValidation,
|
|
32
32
|
renderWorkflowRunArtifact
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-02b8qvww.js";
|
|
34
34
|
import {
|
|
35
35
|
CommandContainer,
|
|
36
36
|
runner
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-hkq0q73d.js";
|
|
38
38
|
import {
|
|
39
39
|
ModuleScript
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-jgj6ajnk.js";
|
|
41
41
|
import {
|
|
42
42
|
PrimitiveScript
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-sjj3ywn5.js";
|
|
44
44
|
import {
|
|
45
45
|
spawnAkan,
|
|
46
46
|
isWorkspaceTarget
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-4mgabs8t.js";
|
|
48
48
|
import {
|
|
49
49
|
ScalarScript
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-kgxhwgdk.js";
|
|
51
51
|
import {
|
|
52
52
|
workflowSpecs
|
|
53
53
|
} from "./index-v50xjbbe.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AkanContextAnalyzer
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-fqx74yxn.js";
|
|
5
5
|
import {
|
|
6
6
|
writeWorkflowRunArtifact,
|
|
7
7
|
generatedFilePathsForTarget,
|
|
8
8
|
writeGeneratedSyncState,
|
|
9
9
|
createRepairReport,
|
|
10
10
|
renderRepairReport
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-02b8qvww.js";
|
|
12
12
|
import {
|
|
13
13
|
runner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-hkq0q73d.js";
|
|
15
15
|
import {
|
|
16
16
|
isWorkflowSysName,
|
|
17
17
|
isWorkflowModuleName
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-va90m8nd.js";
|
|
19
19
|
|
|
20
20
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
21
21
|
var akanArgPattern = /^(?:--?[a-z][a-zA-Z0-9-]*|[A-Za-z0-9@_][A-Za-z0-9@._/:,=-]*)$/;
|