@akanjs/cli 3.2.0-rc.5 → 3.2.0-rc.6
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-4a2skdph.js → CodeAgent-aq43sq64.js} +2 -2
- package/{CodeTui-enrzsnzc.js → CodeTui-pmychb3m.js} +1 -1
- package/TunnelShare-11a3fqxb.js +14 -0
- package/{agent.command-y22t9x1e.js → agent.command-pdmb75bk.js} +15 -15
- package/akanCode.js +2 -2
- package/{application.command-yhj5arwc.js → application.command-xwch7rww.js} +16 -16
- package/{applicationBuildRunner-6w1fd61b.js → applicationBuildRunner-6yjrxfqs.js} +7 -6
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-bqfh4cnx.js → cloud.command-g9k7zb5s.js} +16 -16
- package/cloud.script-jttgtbch.js +30 -0
- package/{code.command-y94hwxsn.js → code.command-ceyhrgrc.js} +6 -6
- package/{context.command-xz65fhrn.js → context.command-n7dbh0ca.js} +16 -16
- package/context.runner-9d5rbt2p.js +29 -0
- package/{guideline.command-sn843nw6.js → guideline.command-h5dfzrng.js} +2 -2
- package/guidelines/agentRule/agentRule.instruction.md +4 -3
- package/incrementalBuilder.proc.js +4 -4
- package/{index-wfmpxke3.js → index-0fq1b5jp.js} +10 -2
- package/{index-3wen6ddy.js → index-146p5x0r.js} +3 -3
- package/{index-jqsj5wjb.js → index-1xfdzwrt.js} +3 -3
- package/{index-w15hnxmb.js → index-2b3n00gz.js} +6 -6
- package/{index-b9q5aw30.js → index-2m6gaatn.js} +8 -8
- package/{index-jxaq2evq.js → index-36dywqhv.js} +2 -2
- package/{index-kjmrkc45.js → index-3wvc8cfa.js} +4 -4
- package/{index-50mg8bsm.js → index-80yc5q5y.js} +3 -3
- package/{index-49y45vbj.js → index-8bh9en9m.js} +8 -8
- package/{index-vftjqv28.js → index-9km2h20g.js} +2 -2
- package/{index-qrp98bmp.js → index-bza4z89k.js} +4 -4
- package/{index-5hhe0rdd.js → index-df0r4008.js} +1 -1
- package/{index-z9b72teg.js → index-dnqznx16.js} +1 -1
- package/{index-ygrdw6jw.js → index-dtxntsfx.js} +1 -1
- package/{index-fqx74yxn.js → index-fq72hk0a.js} +2 -2
- package/{index-kr8dvqnr.js → index-g6ss1r1w.js} +1 -1
- package/{index-hkq0q73d.js → index-ggzb32a9.js} +1 -1
- package/{index-w88xghey.js → index-h4xv44b2.js} +7 -7
- package/{index-5qq6qky3.js → index-kj7vyjng.js} +8 -8
- package/{index-kgxhwgdk.js → index-mcdezskv.js} +2 -2
- package/{index-ah09graf.js → index-mtxbw4fy.js} +13 -11
- package/{index-jrdp7c4h.js → index-n0vev0fv.js} +2 -2
- package/{index-y725zb1a.js → index-p9f6dsf2.js} +70 -23
- package/{index-5w8amdr7.js → index-qtcm6s8p.js} +22 -8
- package/{index-3rff2c48.js → index-qx12c8k5.js} +1 -1
- package/{index-sjj3ywn5.js → index-t0a5mng5.js} +4 -4
- package/{index-jgj6ajnk.js → index-ttrrm805.js} +4 -4
- package/{index-gsty3pkx.js → index-w0nztbs0.js} +3 -3
- package/{index-8vxdsqra.js → index-wnxc9n5v.js} +25 -9
- package/{index-2rcptfyp.js → index-xzscbgx2.js} +1 -1
- package/{index-8jpc5fqv.js → index-y1a7dc7t.js} +1 -1
- package/{index-g43360sn.js → index-y9xbhs20.js} +3 -3
- package/{index-4mgabs8t.js → index-yp6mpazs.js} +3 -3
- package/{index-02b8qvww.js → index-z0r6bhqe.js} +2 -2
- package/index.js +23 -23
- package/{library.command-6eafevmj.js → library.command-4c2yjfqa.js} +3 -3
- package/{localRegistry.command-9tef2qsj.js → localRegistry.command-ef65g36k.js} +15 -15
- package/{module.command-pn1k7dfk.js → module.command-c6284z1b.js} +5 -5
- package/{package.command-kbg9z7re.js → package.command-3wh1hh2j.js} +4 -4
- package/package.json +2 -2
- package/{page.command-st0y2xg8.js → page.command-sx22j4yv.js} +3 -3
- package/{pipeline.command-76m32y7z.js → pipeline.command-8kdcgy47.js} +2 -2
- package/{primitive.command-ax6wg70s.js → primitive.command-4jaegn0m.js} +6 -6
- package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-t0r9argb.js} +1 -1
- package/{quality.command-0gzskga8.js → quality.command-46jhrbm2.js} +4 -4
- package/{repair.command-g5kc3x89.js → repair.command-dj4ke29k.js} +5 -5
- package/{scalar.command-ck8621dy.js → scalar.command-qwvbhytf.js} +4 -4
- package/{subspace.command-vh6dye0v.js → subspace.command-hg0hqscf.js} +8 -8
- package/{tunnel.command-4mezrypt.js → tunnel.command-00v81x42.js} +7 -7
- package/{verify.command-f2n4bwp7.js → verify.command-sz542tvy.js} +12 -12
- package/{workflow.command-bx9xwgs5.js → workflow.command-0ra9304f.js} +10 -10
- package/{workspace.command-04qgwsst.js → workspace.command-zvnybhr6.js} +29 -29
- package/TunnelShare-xs5rrpf1.js +0 -14
- package/cloud.script-8jvfw1sh.js +0 -30
- package/context.runner-dpt5wjb7.js +0 -29
package/.build-stamp
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
3360dc86ddf11b46d3759f6f3ded8e86c9af2d797c091e1fac2fea9dd390c5f6
|
|
2
|
+
9ced4fc3-11d8-4fa5-8230-53a0bba55c28
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
TunnelShare2
|
|
4
|
+
} from "./index-xzscbgx2.js";
|
|
5
|
+
import"./index-9km2h20g.js";
|
|
6
|
+
import"./index-y9xbhs20.js";
|
|
7
|
+
import"./index-m9jj544v.js";
|
|
8
|
+
import"./index-36dywqhv.js";
|
|
9
|
+
import"./index-qx12c8k5.js";
|
|
10
|
+
import"./index-0fq1b5jp.js";
|
|
11
|
+
import"./index-bns3wcpc.js";
|
|
12
|
+
export {
|
|
13
|
+
TunnelShare2 as TunnelShare
|
|
14
|
+
};
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ggzb32a9.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-0fq1b5jp.js";
|
|
8
8
|
import"./index-35j83zkd.js";
|
|
9
9
|
import"./index-j6eeh5d7.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-fq72hk0a.js";
|
|
11
11
|
import"./index-hj6w4ka1.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-z0r6bhqe.js";
|
|
13
13
|
import"./index-9p260r4e.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
14
|
+
import"./index-kj7vyjng.js";
|
|
15
|
+
import"./index-p9f6dsf2.js";
|
|
16
|
+
import"./index-y9xbhs20.js";
|
|
17
|
+
import"./index-df0r4008.js";
|
|
18
18
|
import"./index-m9jj544v.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
19
|
+
import"./index-qx12c8k5.js";
|
|
20
|
+
import"./index-36dywqhv.js";
|
|
21
|
+
import"./index-1xfdzwrt.js";
|
|
22
|
+
import"./index-dtxntsfx.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-146p5x0r.js";
|
|
28
28
|
import {
|
|
29
29
|
AgentScript
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
} from "./index-2b3n00gz.js";
|
|
31
|
+
import"./index-y1a7dc7t.js";
|
|
32
32
|
|
|
33
33
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
34
34
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
package/akanCode.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
CodeMailbox2,
|
|
35
35
|
CodeSessionFork2,
|
|
36
36
|
CodeAgent2
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-80yc5q5y.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-g6ss1r1w.js";
|
|
49
49
|
import {
|
|
50
50
|
CodeAgentRpcHost2
|
|
51
51
|
} from "./index-s4nvxpzm.js";
|
|
@@ -7,21 +7,23 @@ import {
|
|
|
7
7
|
Exec,
|
|
8
8
|
Workspace,
|
|
9
9
|
command
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-ggzb32a9.js";
|
|
11
11
|
import"./index-bns3wcpc.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
import"./index-0fq1b5jp.js";
|
|
13
|
+
import {
|
|
14
|
+
RouteJsBudget
|
|
15
|
+
} from "./index-p9f6dsf2.js";
|
|
16
|
+
import"./index-y9xbhs20.js";
|
|
17
|
+
import"./index-df0r4008.js";
|
|
16
18
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-qx12c8k5.js";
|
|
20
|
+
import"./index-36dywqhv.js";
|
|
21
|
+
import"./index-n0vev0fv.js";
|
|
22
|
+
import"./index-kj7vyjng.js";
|
|
21
23
|
import"./index-b4qq3rq0.js";
|
|
22
24
|
import {
|
|
23
25
|
ApplicationScript
|
|
24
|
-
} from "./index-
|
|
26
|
+
} from "./index-mtxbw4fy.js";
|
|
25
27
|
import {
|
|
26
28
|
writeOption,
|
|
27
29
|
nativeTargetOption,
|
|
@@ -29,7 +31,7 @@ import {
|
|
|
29
31
|
allowLocalOption,
|
|
30
32
|
publicEnvOption
|
|
31
33
|
} from "./index-mdjc93e1.js";
|
|
32
|
-
import"./index-
|
|
34
|
+
import"./index-y1a7dc7t.js";
|
|
33
35
|
import"./index-9bv479q5.js";
|
|
34
36
|
|
|
35
37
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
@@ -42,6 +44,7 @@ var deviceOption = {
|
|
|
42
44
|
var teamOption = { flag: "T", desc: "Apple team id the signing is narrowed to", default: "" };
|
|
43
45
|
var signDesc = "sign with the identity AKAN_NATIVE_MACOS_* / AKAN_NATIVE_WINDOWS_* names (without it the env signs nothing)";
|
|
44
46
|
var notarizeDesc = "macOS: upload the signed app to Apple's notary service (takes --sign)";
|
|
47
|
+
var checkBudgetDesc = "fail on a route over its akan.budget.json entry or with none, or a missing or unreadable file";
|
|
45
48
|
var devEnvs = ["local", "debug", "develop", "main"];
|
|
46
49
|
var buildEnvOption = { enum: devEnvs, desc: "backend environment", default: "debug" };
|
|
47
50
|
var startEnvOption = {
|
|
@@ -186,17 +189,14 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
186
189
|
enum: devEnvs,
|
|
187
190
|
desc: "environment the server runs in (default: AKAN_PUBLIC_ENV of the shell, else of the workspace .env)",
|
|
188
191
|
nullable: true
|
|
189
|
-
}).option("updateBudget", Boolean, {
|
|
190
|
-
desc: "write akan.budget.json: add each new route's JS and lower an entry a route now fits under, never raise one",
|
|
191
|
-
default: false
|
|
192
|
-
}).exec(async function(app, write, fast, quiet, profile, env, updateBudget) {
|
|
192
|
+
}).option("checkBudget", Boolean, { desc: checkBudgetDesc, default: false }).option("updateBudget", Boolean, { desc: "write akan.budget.json, never raising an entry", default: false }).option("raiseBudget", Boolean, { desc: "rewrite akan.budget.json at each route's measured JS", default: false }).exec(async function(app, write, fast, quiet, profile, env, checkBudget, updateBudget, raiseBudget) {
|
|
193
193
|
await this.applicationScript.build(app, {
|
|
194
194
|
write,
|
|
195
195
|
fast,
|
|
196
196
|
quiet,
|
|
197
197
|
profile: profile ?? undefined,
|
|
198
198
|
env: env ?? undefined,
|
|
199
|
-
updateBudget
|
|
199
|
+
budget: RouteJsBudget.modeOf({ checkBudget, updateBudget, raiseBudget })
|
|
200
200
|
});
|
|
201
201
|
}),
|
|
202
202
|
typecheck: target({ short: true, desc: "Typecheck an app or a library, its tests and specs included" }).with(SysOrOnlyApp).option("write", Boolean, writeOption).option("clean", Boolean, { desc: "clear typecheck cache before running", default: false }).option("incremental", Boolean, { desc: "reuse TypeScript incremental cache", default: true }).option("tests", Boolean, { desc: "check its *.test.ts / *.spec.ts too, which nothing imports", default: true }).exec(async function(sys, write, clean, incremental, tests) {
|
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
ProjectTypecheck2,
|
|
6
6
|
parseEnvFile,
|
|
7
7
|
WorkspaceExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-0fq1b5jp.js";
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
10
|
import {
|
|
11
11
|
NARROWABLE_VENDOR_SPECIFIERS
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-qtcm6s8p.js";
|
|
13
13
|
import {
|
|
14
14
|
FontPruner,
|
|
15
15
|
RouteJsBudget
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-p9f6dsf2.js";
|
|
17
|
+
import"./index-qx12c8k5.js";
|
|
18
18
|
import {
|
|
19
19
|
AllRoutesBuilder,
|
|
20
20
|
precompressArtifacts,
|
|
21
21
|
SsrBaseArtifactBuilder,
|
|
22
22
|
VendorImportScanner
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-wnxc9n5v.js";
|
|
24
24
|
import {
|
|
25
25
|
CsrArtifactBuilder
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-36dywqhv.js";
|
|
27
27
|
import"./index-62md4dwy.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
@@ -408,6 +408,7 @@ void run().catch((error) => {
|
|
|
408
408
|
const budgetPath = path3.join(this.#app.cwdPath, RouteJsBudget.fileName);
|
|
409
409
|
const { summary: status, warnings } = await RouteJsBudget.check(sizes, {
|
|
410
410
|
mode: this.#budget,
|
|
411
|
+
app: this.#app.name,
|
|
411
412
|
budgetPath,
|
|
412
413
|
source: path3.relative(this.#app.workspace.workspaceRoot, budgetPath),
|
|
413
414
|
environment
|
package/buildBatch.proc.js
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FontOptimizer,
|
|
4
4
|
ApplicationBuildReporter
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-p9f6dsf2.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveSsrPageEntriesForApp,
|
|
8
8
|
WorkspaceExecutor,
|
|
9
9
|
AppExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-0fq1b5jp.js";
|
|
11
11
|
import {
|
|
12
12
|
computeRouteSeedIndex,
|
|
13
13
|
saveRouteSeedIndex,
|
|
14
14
|
CsrDevBundler,
|
|
15
15
|
SsrDevBundler
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-qtcm6s8p.js";
|
|
17
17
|
import"./index-bns3wcpc.js";
|
|
18
18
|
import {
|
|
19
19
|
ServerGraphFile,
|
|
20
20
|
PagesBundleBuilder
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-qx12c8k5.js";
|
|
22
22
|
import {
|
|
23
23
|
CssCompiler,
|
|
24
24
|
SsrBaseArtifactBuilder
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-wnxc9n5v.js";
|
|
26
26
|
import {
|
|
27
27
|
CsrArtifactBuilder
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-36dywqhv.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-ggzb32a9.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-0fq1b5jp.js";
|
|
9
|
+
import"./index-9km2h20g.js";
|
|
10
10
|
import {
|
|
11
11
|
PlatformTestRun
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-3wvc8cfa.js";
|
|
13
|
+
import"./index-y9xbhs20.js";
|
|
14
|
+
import"./index-df0r4008.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-qx12c8k5.js";
|
|
17
|
+
import"./index-36dywqhv.js";
|
|
18
18
|
import {
|
|
19
19
|
npmRegistryFromEnv,
|
|
20
20
|
warnIgnoredNpmRegistry
|
|
21
21
|
} from "./index-ny2k80mv.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
import"./index-p9f6dsf2.js";
|
|
23
|
+
import"./index-n0vev0fv.js";
|
|
24
|
+
import"./index-kj7vyjng.js";
|
|
25
25
|
import"./index-b4qq3rq0.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-mtxbw4fy.js";
|
|
27
27
|
import"./index-qd7xn2bk.js";
|
|
28
28
|
import"./index-9p260r4e.js";
|
|
29
29
|
import"./index-cmg5ngqa.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-dtxntsfx.js";
|
|
31
|
+
import"./index-w0nztbs0.js";
|
|
32
32
|
import {
|
|
33
33
|
CloudScript2
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-h4xv44b2.js";
|
|
35
35
|
import {
|
|
36
36
|
writeOption,
|
|
37
37
|
oneNativeTargetOption,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
hostOption,
|
|
43
43
|
subspaceOption
|
|
44
44
|
} from "./index-mdjc93e1.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-y1a7dc7t.js";
|
|
46
46
|
import"./index-9bv479q5.js";
|
|
47
47
|
|
|
48
48
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CloudScript2
|
|
4
|
+
} from "./index-h4xv44b2.js";
|
|
5
|
+
import"./index-3wvc8cfa.js";
|
|
6
|
+
import"./index-mtxbw4fy.js";
|
|
7
|
+
import"./index-n0vev0fv.js";
|
|
8
|
+
import"./index-w0nztbs0.js";
|
|
9
|
+
import"./index-9km2h20g.js";
|
|
10
|
+
import"./index-ny2k80mv.js";
|
|
11
|
+
import"./index-kj7vyjng.js";
|
|
12
|
+
import"./index-y1a7dc7t.js";
|
|
13
|
+
import"./index-dtxntsfx.js";
|
|
14
|
+
import"./index-df0r4008.js";
|
|
15
|
+
import"./index-y9xbhs20.js";
|
|
16
|
+
import"./index-m9jj544v.js";
|
|
17
|
+
import"./index-ggzb32a9.js";
|
|
18
|
+
import"./index-9bv479q5.js";
|
|
19
|
+
import"./index-b4qq3rq0.js";
|
|
20
|
+
import"./index-cmg5ngqa.js";
|
|
21
|
+
import"./index-9p260r4e.js";
|
|
22
|
+
import"./index-36dywqhv.js";
|
|
23
|
+
import"./index-p9f6dsf2.js";
|
|
24
|
+
import"./index-qx12c8k5.js";
|
|
25
|
+
import"./index-0fq1b5jp.js";
|
|
26
|
+
import"./index-qd7xn2bk.js";
|
|
27
|
+
import"./index-bns3wcpc.js";
|
|
28
|
+
export {
|
|
29
|
+
CloudScript2 as CloudScript
|
|
30
|
+
};
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ggzb32a9.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-0fq1b5jp.js";
|
|
10
10
|
import {
|
|
11
11
|
AkanCodeEnv,
|
|
12
12
|
akanCodePaths2
|
|
@@ -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-aq43sq64.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-aq43sq64.js"),
|
|
115
|
+
import("./CodeTui-pmychb3m.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-aq43sq64.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-ggzb32a9.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-0fq1b5jp.js";
|
|
8
|
+
import"./index-fq72hk0a.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-z0r6bhqe.js";
|
|
11
11
|
import"./index-9p260r4e.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-2m6gaatn.js";
|
|
13
|
+
import"./index-y9xbhs20.js";
|
|
14
|
+
import"./index-df0r4008.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-qx12c8k5.js";
|
|
17
|
+
import"./index-36dywqhv.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-yp6mpazs.js";
|
|
22
|
+
import"./index-dnqznx16.js";
|
|
23
|
+
import"./index-ttrrm805.js";
|
|
24
|
+
import"./index-t0a5mng5.js";
|
|
25
|
+
import"./index-mcdezskv.js";
|
|
26
26
|
import"./index-v50xjbbe.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-8bh9en9m.js";
|
|
28
28
|
import {
|
|
29
29
|
ContextScript
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-bza4z89k.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-2m6gaatn.js";
|
|
5
|
+
import"./index-8bh9en9m.js";
|
|
6
|
+
import"./index-mcdezskv.js";
|
|
7
|
+
import"./index-t0a5mng5.js";
|
|
8
|
+
import"./index-yp6mpazs.js";
|
|
9
|
+
import"./index-ttrrm805.js";
|
|
10
|
+
import"./index-dnqznx16.js";
|
|
11
|
+
import"./index-v50xjbbe.js";
|
|
12
|
+
import"./index-fq72hk0a.js";
|
|
13
|
+
import"./index-z0r6bhqe.js";
|
|
14
|
+
import"./index-df0r4008.js";
|
|
15
|
+
import"./index-j6eeh5d7.js";
|
|
16
|
+
import"./index-y9xbhs20.js";
|
|
17
|
+
import"./index-m9jj544v.js";
|
|
18
|
+
import"./index-ggzb32a9.js";
|
|
19
|
+
import"./index-39jz41jb.js";
|
|
20
|
+
import"./index-ygdbn9jn.js";
|
|
21
|
+
import"./index-9p260r4e.js";
|
|
22
|
+
import"./index-36dywqhv.js";
|
|
23
|
+
import"./index-qx12c8k5.js";
|
|
24
|
+
import"./index-0fq1b5jp.js";
|
|
25
|
+
import"./index-hj6w4ka1.js";
|
|
26
|
+
import"./index-bns3wcpc.js";
|
|
27
|
+
export {
|
|
28
|
+
ContextRunner2 as ContextRunner
|
|
29
|
+
};
|
|
@@ -32,9 +32,10 @@ pages declaring one name never clash, and a registry kept outside the surface re
|
|
|
32
32
|
warning. A product with accounts names it in its `option.ts`, `option.setAgentAccess(SignedIn)`, taking the same
|
|
33
33
|
guard classes every endpoint takes (an array is ANDed, `null` clears what a library set); without one the chat
|
|
34
34
|
cannot spend the LLM key. **The guard decides who, not what** — the browser writes the instructions, tools and
|
|
35
|
-
transcript — so `option.setAgentRequestPolicy((request, { account, ip }) => request)` sees each turn
|
|
36
|
-
guard, before the quota and the model (tool names as the page published them), and returns what is
|
|
37
|
-
throws an `Err` (`agent.error.requestRefused`) to refuse it.
|
|
35
|
+
transcript — so `option.setAgentRequestPolicy((request, { id, headers, account, ip }) => request)` sees each turn
|
|
36
|
+
after the guard, before the quota and the model (tool names as the page published them), and returns what is
|
|
37
|
+
sent, or throws an `Err` (`agent.error.requestRefused`) to refuse it. `setAgentQuota` and `setAgentUsage` get that
|
|
38
|
+
same `turn`, and usage comes once per turn the quota passed, `failed` and `aborted` ones too. With no policy set, a turn past
|
|
38
39
|
`AgentRelayPolicy.defaultLimits` (5,000 messages, 512 tools, 256 context entries, 8M characters, 64 MiB of
|
|
39
40
|
attachments) is refused with 413; a policy of the app's own keeps them by returning
|
|
40
41
|
`AgentRelayPolicy.capped(request, limits)`, and `(request) => request` lifts them. An error that is not an `Err`
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
HmrWatcher,
|
|
4
4
|
WatchRootResolver,
|
|
5
5
|
ApplicationBuildReporter
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-p9f6dsf2.js";
|
|
7
7
|
import {
|
|
8
8
|
CodegenLock,
|
|
9
9
|
WorkspaceExecutor,
|
|
10
10
|
AppExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-0fq1b5jp.js";
|
|
12
12
|
import"./index-bns3wcpc.js";
|
|
13
13
|
import {
|
|
14
14
|
GraphClientEntryDiscovery,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
DevChangePlanner,
|
|
20
20
|
DevGeneratedIndexSync,
|
|
21
21
|
SsrDevBundler
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-qtcm6s8p.js";
|
|
23
23
|
import {
|
|
24
24
|
ServerGraphFile
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-qx12c8k5.js";
|
|
26
26
|
import"./index-9p260r4e.js";
|
|
27
27
|
import {
|
|
28
28
|
FrameworkGraph
|
|
@@ -1423,9 +1423,17 @@ function getRootBoundarySegments(key) {
|
|
|
1423
1423
|
return [];
|
|
1424
1424
|
return prefix.split("/").filter(Boolean);
|
|
1425
1425
|
}
|
|
1426
|
+
var ROOT_LAYOUT_SYSTEM = {
|
|
1427
|
+
specifier: "akanjs/ui/System/index.tsx",
|
|
1428
|
+
ssrShell: "akanjs/ui/System/SSR.tsx",
|
|
1429
|
+
importsNoSsrPageRenders: ["./CSR", "./App"]
|
|
1430
|
+
};
|
|
1426
1431
|
function implicitRootLayoutKey(segments) {
|
|
1427
1432
|
return `./${[...segments, "__root_layout"].join("/")}.tsx`;
|
|
1428
1433
|
}
|
|
1434
|
+
function isImplicitRootLayoutKey(key) {
|
|
1435
|
+
return key.endsWith("/__root_layout.tsx");
|
|
1436
|
+
}
|
|
1429
1437
|
function implicitRootLayoutAbsPath(appCwdPath, segments) {
|
|
1430
1438
|
const filename = segments.length ? `${segments.join("__")}__root_layout.tsx` : "__root_layout.tsx";
|
|
1431
1439
|
return path6.join(path6.resolve(appCwdPath), IMPLICIT_LAYOUT_DIR, filename);
|
|
@@ -1535,7 +1543,7 @@ ${layoutBinding} return `;
|
|
|
1535
1543
|
const source = opts.includeSystemProvider ? `import type { LayoutModule, LayoutProps, PageProps } from "akanjs/client";
|
|
1536
1544
|
import { assertGuardOnChain, loadFonts, RouteGuards, resolveRouteModule, RouteHead } from "akanjs/client";
|
|
1537
1545
|
import type { ReactNode } from "react";
|
|
1538
|
-
import { System } from "
|
|
1546
|
+
import { System } from "${ROOT_LAYOUT_SYSTEM.specifier}";
|
|
1539
1547
|
import type { McpAppRootProps } from "akanjs/webkit";
|
|
1540
1548
|
import { env } from "@apps/${opts.appName}/env/env.client";
|
|
1541
1549
|
import { allDictionary } from ${JSON.stringify(dictMacroSpecifier)};
|
|
@@ -4505,4 +4513,4 @@ class ModuleExecutor extends Executor {
|
|
|
4505
4513
|
}
|
|
4506
4514
|
}
|
|
4507
4515
|
|
|
4508
|
-
export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, binPlatforms, ServerEnvProfile, AkanAppConfig, AkanWorkspaceConfig, AsyncDefaultExportDetector, StoreBootstrap, resolveSsrPageEntriesForApp, CodegenLock, JsonFormatter, parseBiomeReport, Linter, LibSource, formatLibStatuses, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, libFacetRootHintOf, barrelFacetDirs, facetIndexShadowOf, rootEntryHintOf, isScannedRootEntry, AppInfo, Spinner, TypecheckFailure, ProjectTypecheck2, CommandExecutionError, parseEnvFile, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
|
|
4516
|
+
export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, binPlatforms, ServerEnvProfile, AkanAppConfig, AkanWorkspaceConfig, AsyncDefaultExportDetector, StoreBootstrap, ROOT_LAYOUT_SYSTEM, isImplicitRootLayoutKey, resolveSsrPageEntriesForApp, CodegenLock, JsonFormatter, parseBiomeReport, Linter, LibSource, formatLibStatuses, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, libFacetRootHintOf, barrelFacetDirs, facetIndexShadowOf, rootEntryHintOf, isScannedRootEntry, AppInfo, Spinner, TypecheckFailure, ProjectTypecheck2, CommandExecutionError, parseEnvFile, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-p9f6dsf2.js";
|
|
5
5
|
import {
|
|
6
6
|
parseBiomeReport,
|
|
7
7
|
Linter,
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
AppExecutor,
|
|
11
11
|
LibExecutor,
|
|
12
12
|
PkgExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-0fq1b5jp.js";
|
|
14
14
|
import {
|
|
15
15
|
WorkspaceRunner,
|
|
16
16
|
AkanQualityScanner
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-1xfdzwrt.js";
|
|
18
18
|
|
|
19
19
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
20
20
|
import { existsSync } from "fs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
camelToKebabCase,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ggzb32a9.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-bns3wcpc.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
SysExecutor,
|
|
22
22
|
LibExecutor,
|
|
23
23
|
PkgExecutor
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-0fq1b5jp.js";
|
|
25
25
|
import {
|
|
26
26
|
countBlocking,
|
|
27
27
|
formatStyleContract,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./index-ygdbn9jn.js";
|
|
33
33
|
import {
|
|
34
34
|
MaintainabilityBaseline
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-dtxntsfx.js";
|
|
36
36
|
import {
|
|
37
37
|
createFactReader,
|
|
38
38
|
createAst
|