@akanjs/cli 3.2.0-rc.12 → 3.2.0-rc.13
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-cr8pvdmv.js → CodeAgent-yd1f54yf.js} +2 -2
- package/{CodeTui-89ssa9rr.js → CodeTui-h7mksphk.js} +1 -1
- package/TunnelShare-hrjed2jf.js +19 -0
- package/{agent.command-rp9hpf0v.js → agent.command-hrc2dfas.js} +19 -15
- package/akanCode.js +2 -2
- package/appExecutor-0ssszyhf.js +11 -0
- package/{application.command-fydjdvce.js → application.command-b2194cpv.js} +15 -11
- package/{applicationBuildRunner-68sph7t4.js → applicationBuildRunner-gg03kydg.js} +12 -8
- package/buildBatch.proc.js +14 -9
- package/{cloud.command-0y1gg3sb.js → cloud.command-d8ps1564.js} +20 -16
- package/cloud.script-7j7w4m0w.js +35 -0
- package/{code.command-63fcz7a3.js → code.command-6h6jr0s7.js} +10 -6
- package/{context.command-pgwcx0na.js → context.command-t8akxhny.js} +20 -16
- package/context.runner-eawk1n8e.js +34 -0
- package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
- package/guidelines/agentRule/agentRule.instruction.md +12 -2
- package/guidelines/akanApi/akanApi.instruction.md +1 -1
- package/guidelines/pageRule/pageRule.instruction.md +6 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
- package/incrementalBuilder.proc.js +12 -7
- package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
- package/index-1jzdengt.js +30 -0
- package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
- package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
- package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
- package/{index-h0s3cjm0.js → index-3fn13v8p.js} +4 -4
- package/{index-axe04yqm.js → index-3fpv5v0t.js} +15 -11
- package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
- package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
- package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
- package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
- package/{index-qwzwzmvf.js → index-71z3pdsn.js} +4 -4
- package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
- package/{index-cqrndcq0.js → index-8rmg8c0y.js} +3 -3
- package/{index-s0w78805.js → index-9w51aevd.js} +1 -1
- package/{index-bmscnt1t.js → index-9yfssbgg.js} +25 -19
- package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
- package/index-b3h37zk3.js +787 -0
- package/{index-wm4385pm.js → index-bb7cm060.js} +10 -10
- package/{index-6r5f768n.js → index-c0rnjeqn.js} +11 -9
- package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
- package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
- package/{index-ahk6rvth.js → index-e599a0e4.js} +1 -1
- package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
- package/{index-3m2cd8mm.js → index-g2ebpf0y.js} +6 -6
- package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
- package/{index-cswgczrv.js → index-hg8s6nae.js} +9 -9
- package/{index-pcprf7ft.js → index-hpe12v1h.js} +1 -1
- package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
- package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
- package/{index-mmgtnh44.js → index-k081wv4r.js} +1428 -1106
- package/{index-bgp0h8rx.js → index-nx4q5rey.js} +3 -3
- package/index-rx8r0cbe.js +18 -0
- package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
- package/{index-6js9ek5c.js → index-vy50ec2q.js} +2 -2
- package/index-x2bj2vyz.js +127 -0
- package/{index-wpgtyek3.js → index-xb1yh9km.js} +1 -1
- package/{index-70jkxbf6.js → index-xjj0h74q.js} +2 -2
- package/index.js +27 -23
- package/libExecutor-ex8jqksz.js +10 -0
- package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
- package/{localRegistry.command-yz150pcw.js → localRegistry.command-zz64k5vy.js} +23 -18
- package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
- package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
- package/package.json +2 -2
- package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
- package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
- package/pkgExecutor-d16x1xcb.js +10 -0
- package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
- package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
- package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
- package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
- package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
- package/{subspace.command-ykxertx8.js → subspace.command-d8t8geyv.js} +17 -12
- package/{tunnel.command-qbcbj0vq.js → tunnel.command-mhm64m9n.js} +15 -11
- package/{verify.command-gvveq05z.js → verify.command-j4he0fbx.js} +16 -12
- package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
- package/{workspace.command-jm7emxjh.js → workspace.command-pkpawft5.js} +47 -41
- package/TunnelShare-ndb5cts1.js +0 -15
- package/cloud.script-ewk72b3g.js +0 -31
- package/context.runner-5s2ytkjj.js +0 -30
package/.build-stamp
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
57a4722999cf64d184715fc3c1e59e0f7201d6c5b4436ff8003c1d031b2585bb
|
|
2
|
+
509e80ff-5ca4-47d2-bc5b-04802e63af41
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
TunnelShare2
|
|
4
|
+
} from "./index-e599a0e4.js";
|
|
5
|
+
import"./index-xjj0h74q.js";
|
|
6
|
+
import"./index-g2ebpf0y.js";
|
|
7
|
+
import"./index-m9jj544v.js";
|
|
8
|
+
import"./index-vy50ec2q.js";
|
|
9
|
+
import"./index-xb1yh9km.js";
|
|
10
|
+
import"./index-rx8r0cbe.js";
|
|
11
|
+
import"./index-b3h37zk3.js";
|
|
12
|
+
import"./index-1jzdengt.js";
|
|
13
|
+
import"./index-x2bj2vyz.js";
|
|
14
|
+
import"./index-crtscw7c.js";
|
|
15
|
+
import"./index-j4yvgfhr.js";
|
|
16
|
+
import"./index-bns3wcpc.js";
|
|
17
|
+
export {
|
|
18
|
+
TunnelShare2 as TunnelShare
|
|
19
|
+
};
|
|
@@ -2,34 +2,38 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-3gmskeq2.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-crtscw7c.js";
|
|
9
|
+
import"./index-b3h37zk3.js";
|
|
10
|
+
import"./index-1jzdengt.js";
|
|
11
|
+
import"./index-x2bj2vyz.js";
|
|
9
12
|
import"./index-35j83zkd.js";
|
|
10
13
|
import"./index-j6eeh5d7.js";
|
|
11
|
-
import"./index-
|
|
14
|
+
import"./index-5np8zpep.js";
|
|
12
15
|
import"./index-hj6w4ka1.js";
|
|
13
|
-
import"./index-
|
|
16
|
+
import"./index-j2me5hm4.js";
|
|
14
17
|
import"./index-nd39rssn.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-k081wv4r.js";
|
|
19
|
+
import"./index-66jt3m30.js";
|
|
20
|
+
import"./index-g2ebpf0y.js";
|
|
21
|
+
import"./index-9w51aevd.js";
|
|
19
22
|
import"./index-m9jj544v.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-xb1yh9km.js";
|
|
24
|
+
import"./index-vy50ec2q.js";
|
|
25
|
+
import"./index-c4k6e098.js";
|
|
26
|
+
import"./index-j33b0n38.js";
|
|
24
27
|
import"./index-62md4dwy.js";
|
|
25
28
|
import"./index-ygdbn9jn.js";
|
|
26
29
|
import"./index-ny2k80mv.js";
|
|
27
30
|
import"./index-t4d0ckde.js";
|
|
28
|
-
import"./index-
|
|
31
|
+
import"./index-vb8gd135.js";
|
|
29
32
|
import {
|
|
30
33
|
AgentScript
|
|
31
|
-
} from "./index-
|
|
32
|
-
import"./index-
|
|
34
|
+
} from "./index-3fpv5v0t.js";
|
|
35
|
+
import"./index-3fbmyb2r.js";
|
|
36
|
+
import"./index-rx8r0cbe.js";
|
|
33
37
|
|
|
34
38
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
35
39
|
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-8rmg8c0y.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-hpe12v1h.js";
|
|
49
49
|
import {
|
|
50
50
|
CodeAgentRpcHost2
|
|
51
51
|
} from "./index-s4nvxpzm.js";
|
|
@@ -7,26 +7,29 @@ import {
|
|
|
7
7
|
Exec,
|
|
8
8
|
Workspace,
|
|
9
9
|
command
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-3gmskeq2.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./index-j4yvgfhr.js";
|
|
14
14
|
import"./index-bns3wcpc.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-crtscw7c.js";
|
|
16
|
+
import"./index-b3h37zk3.js";
|
|
17
|
+
import"./index-1jzdengt.js";
|
|
18
|
+
import"./index-x2bj2vyz.js";
|
|
16
19
|
import {
|
|
17
20
|
RouteJsBudget
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
+
} from "./index-66jt3m30.js";
|
|
22
|
+
import"./index-g2ebpf0y.js";
|
|
23
|
+
import"./index-9w51aevd.js";
|
|
21
24
|
import"./index-m9jj544v.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-xb1yh9km.js";
|
|
26
|
+
import"./index-vy50ec2q.js";
|
|
27
|
+
import"./index-37k5vshx.js";
|
|
28
|
+
import"./index-k081wv4r.js";
|
|
26
29
|
import"./index-b4qq3rq0.js";
|
|
27
30
|
import {
|
|
28
31
|
ApplicationScript
|
|
29
|
-
} from "./index-
|
|
32
|
+
} from "./index-9yfssbgg.js";
|
|
30
33
|
import {
|
|
31
34
|
writeOption,
|
|
32
35
|
nativeTargetOption,
|
|
@@ -34,8 +37,9 @@ import {
|
|
|
34
37
|
allowLocalOption,
|
|
35
38
|
publicEnvOption
|
|
36
39
|
} from "./index-mdjc93e1.js";
|
|
37
|
-
import"./index-
|
|
40
|
+
import"./index-3fbmyb2r.js";
|
|
38
41
|
import"./index-9bv479q5.js";
|
|
42
|
+
import"./index-rx8r0cbe.js";
|
|
39
43
|
|
|
40
44
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
41
45
|
import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
ServerEnvProfile,
|
|
4
3
|
Spinner,
|
|
5
4
|
ProjectTypecheck2,
|
|
6
5
|
parseEnvFile,
|
|
7
|
-
WorkspaceExecutor
|
|
8
|
-
|
|
6
|
+
WorkspaceExecutor,
|
|
7
|
+
ServerEnvProfile
|
|
8
|
+
} from "./index-crtscw7c.js";
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
10
|
import"./index-j4yvgfhr.js";
|
|
11
|
+
import"./index-b3h37zk3.js";
|
|
12
|
+
import"./index-1jzdengt.js";
|
|
13
|
+
import"./index-x2bj2vyz.js";
|
|
11
14
|
import {
|
|
12
15
|
NARROWABLE_VENDOR_SPECIFIERS
|
|
13
|
-
} from "./index-
|
|
16
|
+
} from "./index-nx4q5rey.js";
|
|
14
17
|
import {
|
|
15
18
|
FontPruner,
|
|
16
19
|
RouteJsBudget
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
20
|
+
} from "./index-66jt3m30.js";
|
|
21
|
+
import"./index-xb1yh9km.js";
|
|
19
22
|
import {
|
|
20
23
|
AllRoutesBuilder,
|
|
21
24
|
precompressArtifacts,
|
|
22
25
|
SsrBaseArtifactBuilder,
|
|
23
26
|
VendorImportScanner
|
|
24
|
-
} from "./index-
|
|
27
|
+
} from "./index-71z3pdsn.js";
|
|
25
28
|
import {
|
|
26
29
|
CsrArtifactBuilder
|
|
27
|
-
} from "./index-
|
|
30
|
+
} from "./index-vy50ec2q.js";
|
|
28
31
|
import"./index-62md4dwy.js";
|
|
32
|
+
import"./index-rx8r0cbe.js";
|
|
29
33
|
|
|
30
34
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
31
35
|
import path3 from "path";
|
package/buildBatch.proc.js
CHANGED
|
@@ -2,32 +2,37 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FontOptimizer,
|
|
4
4
|
ApplicationBuildReporter
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-66jt3m30.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveSsrPageEntriesForApp,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./index-sq9d0jhj.js";
|
|
8
|
+
AppExecutor2
|
|
9
|
+
} from "./index-b3h37zk3.js";
|
|
11
10
|
import {
|
|
12
11
|
computeRouteSeedIndex,
|
|
13
12
|
saveRouteSeedIndex,
|
|
14
13
|
CsrDevBundler,
|
|
15
14
|
SsrDevBundler
|
|
16
|
-
} from "./index-
|
|
15
|
+
} from "./index-nx4q5rey.js";
|
|
16
|
+
import {
|
|
17
|
+
WorkspaceExecutor
|
|
18
|
+
} from "./index-crtscw7c.js";
|
|
17
19
|
import"./index-bns3wcpc.js";
|
|
18
20
|
import"./index-j4yvgfhr.js";
|
|
21
|
+
import"./index-1jzdengt.js";
|
|
22
|
+
import"./index-x2bj2vyz.js";
|
|
19
23
|
import {
|
|
20
24
|
ServerGraphFile,
|
|
21
25
|
PagesBundleBuilder
|
|
22
|
-
} from "./index-
|
|
26
|
+
} from "./index-xb1yh9km.js";
|
|
23
27
|
import {
|
|
24
28
|
CssCompiler,
|
|
25
29
|
SsrBaseArtifactBuilder
|
|
26
|
-
} from "./index-
|
|
30
|
+
} from "./index-71z3pdsn.js";
|
|
27
31
|
import {
|
|
28
32
|
CsrArtifactBuilder
|
|
29
|
-
} from "./index-
|
|
33
|
+
} from "./index-vy50ec2q.js";
|
|
30
34
|
import"./index-62md4dwy.js";
|
|
35
|
+
import"./index-rx8r0cbe.js";
|
|
31
36
|
|
|
32
37
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
33
38
|
import path from "path";
|
|
@@ -286,7 +291,7 @@ ${cssText}`).toString(36);
|
|
|
286
291
|
workspaceRoot: request.workspaceRoot,
|
|
287
292
|
repoName: request.repoName
|
|
288
293
|
});
|
|
289
|
-
const app =
|
|
294
|
+
const app = AppExecutor2.from(workspace, request.appName);
|
|
290
295
|
if (request.pageKeys)
|
|
291
296
|
app.setPageKeys(request.pageKeys);
|
|
292
297
|
const orphaned = () => process.exit(1);
|
|
@@ -3,36 +3,39 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-3gmskeq2.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-crtscw7c.js";
|
|
10
|
+
import"./index-b3h37zk3.js";
|
|
11
|
+
import"./index-1jzdengt.js";
|
|
12
|
+
import"./index-x2bj2vyz.js";
|
|
13
|
+
import"./index-xjj0h74q.js";
|
|
11
14
|
import {
|
|
12
15
|
PlatformTestRun
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
+
} from "./index-c0rnjeqn.js";
|
|
17
|
+
import"./index-g2ebpf0y.js";
|
|
18
|
+
import"./index-9w51aevd.js";
|
|
16
19
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
20
|
+
import"./index-xb1yh9km.js";
|
|
21
|
+
import"./index-vy50ec2q.js";
|
|
19
22
|
import {
|
|
20
23
|
npmRegistryFromEnv,
|
|
21
24
|
warnIgnoredNpmRegistry
|
|
22
25
|
} from "./index-ny2k80mv.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
+
import"./index-66jt3m30.js";
|
|
27
|
+
import"./index-37k5vshx.js";
|
|
28
|
+
import"./index-k081wv4r.js";
|
|
26
29
|
import"./index-b4qq3rq0.js";
|
|
27
|
-
import"./index-
|
|
30
|
+
import"./index-9yfssbgg.js";
|
|
28
31
|
import"./index-qd7xn2bk.js";
|
|
29
32
|
import"./index-nd39rssn.js";
|
|
30
33
|
import"./index-grt0e6kk.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
34
|
+
import"./index-j33b0n38.js";
|
|
35
|
+
import"./index-f5j09jnj.js";
|
|
33
36
|
import {
|
|
34
37
|
CloudScript2
|
|
35
|
-
} from "./index-
|
|
38
|
+
} from "./index-hg8s6nae.js";
|
|
36
39
|
import {
|
|
37
40
|
writeOption,
|
|
38
41
|
oneNativeTargetOption,
|
|
@@ -43,8 +46,9 @@ import {
|
|
|
43
46
|
hostOption,
|
|
44
47
|
subspaceOption
|
|
45
48
|
} from "./index-mdjc93e1.js";
|
|
46
|
-
import"./index-
|
|
49
|
+
import"./index-3fbmyb2r.js";
|
|
47
50
|
import"./index-9bv479q5.js";
|
|
51
|
+
import"./index-rx8r0cbe.js";
|
|
48
52
|
|
|
49
53
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
50
54
|
var localRegistryUrl = () => npmRegistryFromEnv() ?? "http://127.0.0.1:4873";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CloudScript2
|
|
4
|
+
} from "./index-hg8s6nae.js";
|
|
5
|
+
import"./index-c0rnjeqn.js";
|
|
6
|
+
import"./index-9yfssbgg.js";
|
|
7
|
+
import"./index-37k5vshx.js";
|
|
8
|
+
import"./index-f5j09jnj.js";
|
|
9
|
+
import"./index-xjj0h74q.js";
|
|
10
|
+
import"./index-ny2k80mv.js";
|
|
11
|
+
import"./index-k081wv4r.js";
|
|
12
|
+
import"./index-3fbmyb2r.js";
|
|
13
|
+
import"./index-j33b0n38.js";
|
|
14
|
+
import"./index-9w51aevd.js";
|
|
15
|
+
import"./index-g2ebpf0y.js";
|
|
16
|
+
import"./index-m9jj544v.js";
|
|
17
|
+
import"./index-qd7xn2bk.js";
|
|
18
|
+
import"./index-3gmskeq2.js";
|
|
19
|
+
import"./index-9bv479q5.js";
|
|
20
|
+
import"./index-b4qq3rq0.js";
|
|
21
|
+
import"./index-grt0e6kk.js";
|
|
22
|
+
import"./index-nd39rssn.js";
|
|
23
|
+
import"./index-vy50ec2q.js";
|
|
24
|
+
import"./index-66jt3m30.js";
|
|
25
|
+
import"./index-xb1yh9km.js";
|
|
26
|
+
import"./index-rx8r0cbe.js";
|
|
27
|
+
import"./index-b3h37zk3.js";
|
|
28
|
+
import"./index-1jzdengt.js";
|
|
29
|
+
import"./index-x2bj2vyz.js";
|
|
30
|
+
import"./index-crtscw7c.js";
|
|
31
|
+
import"./index-j4yvgfhr.js";
|
|
32
|
+
import"./index-bns3wcpc.js";
|
|
33
|
+
export {
|
|
34
|
+
CloudScript2 as CloudScript
|
|
35
|
+
};
|
|
@@ -4,10 +4,13 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3gmskeq2.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-crtscw7c.js";
|
|
11
|
+
import"./index-b3h37zk3.js";
|
|
12
|
+
import"./index-1jzdengt.js";
|
|
13
|
+
import"./index-x2bj2vyz.js";
|
|
11
14
|
import {
|
|
12
15
|
AkanCodeEnv,
|
|
13
16
|
akanCodePaths2
|
|
@@ -17,6 +20,7 @@ import {
|
|
|
17
20
|
CodeAgentStreamPrinter2,
|
|
18
21
|
WorkspaceTrust
|
|
19
22
|
} from "./index-w15mg3km.js";
|
|
23
|
+
import"./index-rx8r0cbe.js";
|
|
20
24
|
|
|
21
25
|
// pkgs/@akanjs/cli/code/code.runner.ts
|
|
22
26
|
import { randomBytes } from "crypto";
|
|
@@ -78,7 +82,7 @@ class CodeRunner extends runner("code") {
|
|
|
78
82
|
async serve(options, listen) {
|
|
79
83
|
await import("./consoleToStderr-h5bryj94.js");
|
|
80
84
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
81
|
-
import("./CodeAgent-
|
|
85
|
+
import("./CodeAgent-yd1f54yf.js"),
|
|
82
86
|
import("./CodeAgentRpcHost-6dzfkvsc.js"),
|
|
83
87
|
import("./CodeAgentRpcListener-tcwrdvst.js")
|
|
84
88
|
]);
|
|
@@ -112,8 +116,8 @@ class CodeRunner extends runner("code") {
|
|
|
112
116
|
}
|
|
113
117
|
async tui(options, seed) {
|
|
114
118
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
115
|
-
import("./CodeAgent-
|
|
116
|
-
import("./CodeTui-
|
|
119
|
+
import("./CodeAgent-yd1f54yf.js"),
|
|
120
|
+
import("./CodeTui-h7mksphk.js")
|
|
117
121
|
]);
|
|
118
122
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
|
|
119
123
|
const agentOptions = start.agent;
|
|
@@ -149,7 +153,7 @@ class CodeRunner extends runner("code") {
|
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
async run(prompt, options) {
|
|
152
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
156
|
+
const { CodeAgent } = await import("./CodeAgent-yd1f54yf.js");
|
|
153
157
|
const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
|
|
154
158
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
|
|
155
159
|
for (const warning of start.warnings)
|
|
@@ -2,33 +2,37 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-3gmskeq2.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-crtscw7c.js";
|
|
9
|
+
import"./index-b3h37zk3.js";
|
|
10
|
+
import"./index-1jzdengt.js";
|
|
11
|
+
import"./index-x2bj2vyz.js";
|
|
12
|
+
import"./index-5np8zpep.js";
|
|
10
13
|
import"./index-hj6w4ka1.js";
|
|
11
|
-
import"./index-
|
|
14
|
+
import"./index-j2me5hm4.js";
|
|
12
15
|
import"./index-nd39rssn.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
+
import"./index-bb7cm060.js";
|
|
17
|
+
import"./index-g2ebpf0y.js";
|
|
18
|
+
import"./index-9w51aevd.js";
|
|
16
19
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
20
|
+
import"./index-xb1yh9km.js";
|
|
21
|
+
import"./index-vy50ec2q.js";
|
|
19
22
|
import"./index-j6eeh5d7.js";
|
|
20
23
|
import"./index-ygdbn9jn.js";
|
|
21
24
|
import"./index-xgqz3kak.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
import"./index-1b1p83vq.js";
|
|
26
|
+
import"./index-8bkbexcy.js";
|
|
27
|
+
import"./index-2z8mxgs7.js";
|
|
28
|
+
import"./index-asfx2dhe.js";
|
|
29
|
+
import"./index-hbc0t3ng.js";
|
|
27
30
|
import"./index-t4d0ckde.js";
|
|
28
|
-
import"./index-
|
|
31
|
+
import"./index-6dwk5aej.js";
|
|
29
32
|
import {
|
|
30
33
|
ContextScript
|
|
31
|
-
} from "./index-
|
|
34
|
+
} from "./index-3fn13v8p.js";
|
|
35
|
+
import"./index-rx8r0cbe.js";
|
|
32
36
|
|
|
33
37
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
34
38
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ContextRunner2
|
|
4
|
+
} from "./index-bb7cm060.js";
|
|
5
|
+
import"./index-6dwk5aej.js";
|
|
6
|
+
import"./index-1b1p83vq.js";
|
|
7
|
+
import"./index-hbc0t3ng.js";
|
|
8
|
+
import"./index-asfx2dhe.js";
|
|
9
|
+
import"./index-2z8mxgs7.js";
|
|
10
|
+
import"./index-8bkbexcy.js";
|
|
11
|
+
import"./index-t4d0ckde.js";
|
|
12
|
+
import"./index-5np8zpep.js";
|
|
13
|
+
import"./index-9w51aevd.js";
|
|
14
|
+
import"./index-j2me5hm4.js";
|
|
15
|
+
import"./index-g2ebpf0y.js";
|
|
16
|
+
import"./index-m9jj544v.js";
|
|
17
|
+
import"./index-j6eeh5d7.js";
|
|
18
|
+
import"./index-3gmskeq2.js";
|
|
19
|
+
import"./index-xgqz3kak.js";
|
|
20
|
+
import"./index-ygdbn9jn.js";
|
|
21
|
+
import"./index-nd39rssn.js";
|
|
22
|
+
import"./index-vy50ec2q.js";
|
|
23
|
+
import"./index-xb1yh9km.js";
|
|
24
|
+
import"./index-rx8r0cbe.js";
|
|
25
|
+
import"./index-b3h37zk3.js";
|
|
26
|
+
import"./index-1jzdengt.js";
|
|
27
|
+
import"./index-x2bj2vyz.js";
|
|
28
|
+
import"./index-crtscw7c.js";
|
|
29
|
+
import"./index-j4yvgfhr.js";
|
|
30
|
+
import"./index-hj6w4ka1.js";
|
|
31
|
+
import"./index-bns3wcpc.js";
|
|
32
|
+
export {
|
|
33
|
+
ContextRunner2 as ContextRunner
|
|
34
|
+
};
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
script,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-3gmskeq2.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-crtscw7c.js";
|
|
9
|
+
import"./index-b3h37zk3.js";
|
|
10
|
+
import"./index-1jzdengt.js";
|
|
11
|
+
import"./index-x2bj2vyz.js";
|
|
9
12
|
import {
|
|
10
13
|
Prompter2
|
|
11
14
|
} from "./index-j6eeh5d7.js";
|
|
15
|
+
import"./index-rx8r0cbe.js";
|
|
12
16
|
|
|
13
17
|
// pkgs/@akanjs/cli/guideline/guideline.script.ts
|
|
14
18
|
import { Logger } from "akanjs/common";
|
|
@@ -60,8 +60,13 @@ pages declaring one name never clash, and a registry kept outside the surface re
|
|
|
60
60
|
and under every menu and modal — `launcherClassName` / `panelClassName` reach one surface each where
|
|
61
61
|
`className` reaches both, `intro`
|
|
62
62
|
replaces the empty-state line — where starter questions go — and `header` adds controls beside the built-in
|
|
63
|
-
clear and close. `
|
|
64
|
-
|
|
63
|
+
clear and close. `title` takes a node (a mark before the name); give `label` then, as the panel's accessible
|
|
64
|
+
name. The header's parts carry `data-slot="agent-header"`, `"agent-title"` and `"agent-running"`, so
|
|
65
|
+
`panelClassName="[&_[data-slot=agent-running]]:bg-accent"` restyles one without leaning on the markup. A modal,
|
|
66
|
+
menu or popconfirm opened from inside the floating panel, `header` included, stacks above the panel, while
|
|
67
|
+
one the page opens stays under it. While the turn waits on an approval, card or question, a scrim the panel
|
|
68
|
+
opened sinks under the panel so the answer stays reachable, and it comes back once answered. `chrome={false}` drops the header bar whole, for an `inline` chat inside a
|
|
69
|
+
panel the app already titles, and `defaultDraft` opens the composer with text in it without sending it. A panel driven by a
|
|
65
70
|
controlled `open` with **no** `onOpenChange` draws no close button at all rather than an inert one. Then the
|
|
66
71
|
slots: `AgentLauncher`, `AgentSteps`, `AgentBubble`, `AgentComposer`, `AgentApproval`,
|
|
67
72
|
`AgentQuestion`, `AgentToolCard`, `AgentQueued`, `AgentMenu`, `AgentMarkdown` and `AgentCode` each replace one part in `_overrides.tsx`, and
|
|
@@ -637,6 +642,11 @@ pages declaring one name never clash, and a registry kept outside the surface re
|
|
|
637
642
|
- **A turn that failed says so on the wire.** `error` is a field only this wire has, so a provider mapping reads
|
|
638
643
|
`text` and drops it; `AgentService.explained` folds it into the text before any adaptor sees it, because an
|
|
639
644
|
assistant turn that says nothing is one the model repeats.
|
|
645
|
+
- **A failed turn keeps its code for the host.** The relay's `error` event carries `code`: the `Err`'s key, else
|
|
646
|
+
an `AkanError`'s own code, else the status's name. A refusal (401/403) is named by its status alone, whether it is
|
|
647
|
+
answered before the stream opens or inside it, unless the server kept it under its own code. The chat keeps it
|
|
648
|
+
on that assistant message as `errorCode` after translating the text, so a host branches on `message.errorCode`,
|
|
649
|
+
never on the sentence. It is never sent back to the relay.
|
|
640
650
|
- **↑ and ↓ in the composer walk what was sent**, seeded from the transcript so a persisted chat does not lose
|
|
641
651
|
only what was just typed. A single-line input has nothing of its own on the vertical arrows, and the
|
|
642
652
|
half-written draft they were walked away from comes back at the bottom of the walk. **The `/` menu takes those
|
|
@@ -112,7 +112,7 @@ Shared by `page()`, `layout()` and `rootLayout()`:
|
|
|
112
112
|
.render(render: (args: RouteBaseArgs) => PromiseOrObject<ReactNode>)
|
|
113
113
|
.config(config: PageConfig)
|
|
114
114
|
.head(head: HeadStage<RouteBaseArgs>)
|
|
115
|
-
.guard(guard: (args: RouteBaseArgs) => void | Promise<void>)
|
|
115
|
+
.guard(guard: (args: RouteBaseArgs, request: RouteGuardRequest) => void | Promise<void>)
|
|
116
116
|
.loading(render: (args: RouteBaseArgs) => PromiseOrObject<ReactNode>)
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -60,7 +60,12 @@ body shape — this is the full contract behind them. Before changing route beha
|
|
|
60
60
|
`.guard()` throws when the module loads. `fn` receives the route's typed arguments and `lang` (a layout's gets no
|
|
61
61
|
`children`) and may be `async`. It refuses by moving the router — `router.redirect(href)`, `router.notFound()` — or
|
|
62
62
|
with `getSelf({ unauthorize })`; `signedIn()` from `@libs/shared/webkit` is that last one, called inside an arrow
|
|
63
|
-
(`.guard(() => signedIn())`), because `.guard(signedIn)` would
|
|
63
|
+
(`.guard(() => signedIn())`), because `.guard(signedIn)` would take the route's arguments as its option.
|
|
64
|
+
- **A guard's second argument `{ path }` is where the visitor was going** — the in-app path with its search, as
|
|
65
|
+
`router.push` takes it (`undefined` while MCP lists the screen): `.guard((_, { path }) => signedIn({ path }))`
|
|
66
|
+
sends a refused visitor to `/signin?redirect=<path>`. Build a redirect target from it, never an admission rule —
|
|
67
|
+
CSR asks a guard again only when the route or an argument it declared moves. Hand it only to `router.push` or
|
|
68
|
+
`router.redirect`: it can be a raw `//host`, which `window.location` would follow off the site.
|
|
64
69
|
- **On the server every guard of the chain runs before any layout body starts**, root layout first and before the
|
|
65
70
|
route's arguments are checked, so a redirect is a real 307 even after an awaited query, and a not-found is a 404 —
|
|
66
71
|
where a `getSelf({ unauthorize })` inside a layout body under a `.loading()` redirects late after I/O, inside the
|
|
@@ -391,7 +391,8 @@ const config: AppConfig = {
|
|
|
391
391
|
was opened for while its frames load web content from anywhere, with an init script that runs in the top document
|
|
392
392
|
only, `evaluate`, a trusted `sendKey`, `capture`, and `loadFailed` / `gone` (it reloads, or is rebuilt, by itself;
|
|
393
393
|
the reason is `terminated` on macOS, and `rebuildFailed` when a rebuild failed and the view is closed, to be opened
|
|
394
|
-
again) / `consoleMessage` events. Every method on Windows;
|
|
394
|
+
again) / `consoleMessage` events. Every method on Windows; Linux lacks `sendKey`, its visible view holding the
|
|
395
|
+
keyboard focus instead, and sends no `consoleMessage`; macOS 14+ lacks `sendKey`, `setMuted` and `capture`.
|
|
395
396
|
|
|
396
397
|
## A Desktop App's Server — `bin` And `trustedDependencies`
|
|
397
398
|
|