@akanjs/cli 3.1.2-rc.2 → 3.1.2-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 -1
- package/{CodeAgent-nkk70v5h.js → CodeAgent-z34p8m91.js} +2 -2
- package/{CodeTui-sdqz2gxb.js → CodeTui-nvd9fk3g.js} +1 -1
- package/TunnelShare-jwbb50kz.js +14 -0
- package/{agent.command-5gfrfh8d.js → agent.command-962mp3kg.js} +15 -15
- package/akanCode.js +2 -2
- package/{application.command-nd0fshsk.js → application.command-1nr0bqq1.js} +35 -11
- package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-xy7hnfzq.js} +7 -6
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-8kbddsz9.js → cloud.command-cj7b3m6y.js} +15 -15
- package/cloud.script-8kr7qgfa.js +27 -0
- package/{code.command-5djp5c0n.js → code.command-asq7xrr6.js} +6 -6
- package/commandManifest.json +1 -1
- package/{context.command-5d0bscv6.js → context.command-fw4g2pw1.js} +18 -17
- package/context.runner-p6m5cxk3.js +28 -0
- package/{guideline.command-195g0h9a.js → guideline.command-43gfjsjv.js} +2 -2
- package/guidelines/conventions/rules/page.md +4 -2
- package/guidelines/conventions/rules/server.md +2 -0
- package/guidelines/conventions/rules/style.md +3 -1
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +3 -1
- package/guidelines/pageRule/pageRule.instruction.md +3 -0
- package/incrementalBuilder.proc.js +52 -6
- package/{index-ms1am2wr.js → index-0tkj05cz.js} +3 -3
- package/{index-00a7j05x.js → index-2yan1ajk.js} +7 -7
- package/{index-g500c5j9.js → index-38by07nw.js} +1 -1
- package/{index-zttm13c3.js → index-38patcx6.js} +4 -4
- package/{index-f6zrhcnk.js → index-53h0053j.js} +23 -8
- package/{index-zbrwnmf1.js → index-6t7fkx73.js} +1 -1
- package/{index-pqdyyxz0.js → index-6zgt7zmx.js} +4 -4
- package/{index-y4kcmbt2.js → index-8d9r465x.js} +2 -2
- package/{index-yep9xcz0.js → index-90q0w90q.js} +1 -1
- package/{index-q9q6jjk1.js → index-ampz4vgv.js} +4 -4
- package/{index-chjaw222.js → index-ap6ac70m.js} +3 -3
- package/{index-dbxac7mz.js → index-ck64kxrn.js} +2 -2
- package/{index-p6x5b7hr.js → index-d894868w.js} +3 -0
- package/{index-sveq36gh.js → index-dcm66hss.js} +2 -2
- package/{index-84h43kg6.js → index-demt944k.js} +2 -2
- package/{index-0j1t1h2b.js → index-g0yds382.js} +1 -1
- package/{index-pnk67cqd.js → index-gfh90r3t.js} +2 -2
- package/{index-19cspack.js → index-hmj94es2.js} +4 -4
- package/{index-3q4kkyd4.js → index-jzpeny42.js} +3 -3
- package/{index-tw27n941.js → index-jzz6ye8x.js} +296 -24
- package/{index-2mwjshz5.js → index-kc6ffq0s.js} +16 -13
- package/{index-tp56652m.js → index-kc871vpc.js} +3 -3
- package/{index-1404hqcj.js → index-kdswbvys.js} +3 -3
- package/{index-defp4gmb.js → index-qev8p5wp.js} +1 -1
- package/{index-1h2jc0x3.js → index-qwe079ww.js} +4 -4
- package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
- package/{index-9zy8479y.js → index-r0q2ka2b.js} +1 -1
- package/{index-ewbmfarf.js → index-r8t5sq7z.js} +31 -8
- package/{index-gf4fcw1n.js → index-re2kfscb.js} +495 -8
- package/{index-gr9thy79.js → index-sra1a5f8.js} +2 -2
- package/{index-khk05tsf.js → index-t0hk1kxq.js} +1 -1
- package/index-vkpqe29t.js +267 -0
- package/{index-sp0qsr7a.js → index-w60zxxye.js} +3 -3
- package/{index-mzjwq4dd.js → index-wymcdsas.js} +8 -8
- package/{index-t78230d7.js → index-y0y0pnx8.js} +3 -2
- package/{index-tyt7cw99.js → index-z47rw9ez.js} +6 -6
- package/index.js +23 -23
- package/{library.command-63hgt9te.js → library.command-zh29tjdd.js} +3 -3
- package/{localRegistry.command-g3f8k25t.js → localRegistry.command-k9pn9ahj.js} +14 -14
- package/{module.command-myykfb6s.js → module.command-dgpqs9fz.js} +6 -6
- package/{package.command-96eheyvd.js → package.command-1je4hsca.js} +3 -3
- package/package.json +2 -2
- package/{page.command-gs6d841d.js → page.command-cgsasanh.js} +3 -3
- package/{pipeline.command-wdfvdbfj.js → pipeline.command-tb46sa8v.js} +2 -2
- package/{primitive.command-eg2c3m97.js → primitive.command-bzsy23x5.js} +7 -7
- package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-h8rgaczy.js} +1 -1
- package/{quality.command-b840977n.js → quality.command-120m9h6v.js} +4 -4
- package/{repair.command-r7z709yf.js → repair.command-6m4wd0qv.js} +6 -6
- package/{scalar.command-t6hhty3f.js → scalar.command-3dn5hsc6.js} +5 -5
- package/skills/akan-page/SKILL.md +19 -0
- package/skills/akan-service/SKILL.md +47 -0
- package/{subspace.command-a1sf9n5a.js → subspace.command-s8nyfqbn.js} +8 -8
- package/{tunnel.command-dcb0wg93.js → tunnel.command-8mwrqkr3.js} +7 -7
- package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{verify.command-07fqhpak.js → verify.command-2pspfy7k.js} +12 -12
- package/{workflow.command-c2jhzf7v.js → workflow.command-7sy5vnsj.js} +11 -11
- package/{workspace.command-gv20zq1z.js → workspace.command-x518tdv4.js} +30 -29
- package/TunnelShare-hdq9h1hr.js +0 -14
- package/cloud.script-hgvvajm3.js +0 -27
- package/context.runner-2v5pq18d.js +0 -27
- package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
- package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
HmrWatcher,
|
|
4
4
|
WatchRootResolver,
|
|
5
5
|
ApplicationBuildReporter
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-d894868w.js";
|
|
7
7
|
import {
|
|
8
8
|
CodegenLock,
|
|
9
9
|
WorkspaceExecutor,
|
|
10
10
|
AppExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-38by07nw.js";
|
|
12
12
|
import"./index-bns3wcpc.js";
|
|
13
13
|
import {
|
|
14
14
|
GraphClientEntryDiscovery,
|
|
@@ -19,10 +19,15 @@ import {
|
|
|
19
19
|
DevChangePlanner,
|
|
20
20
|
DevGeneratedIndexSync,
|
|
21
21
|
SsrDevBundler
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-kc871vpc.js";
|
|
23
23
|
import {
|
|
24
24
|
ServerGraphFile
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-6t7fkx73.js";
|
|
26
|
+
import {
|
|
27
|
+
GitRevision,
|
|
28
|
+
WorkspaceGraph
|
|
29
|
+
} from "./index-vkpqe29t.js";
|
|
30
|
+
import"./index-re2kfscb.js";
|
|
26
31
|
import {
|
|
27
32
|
prepareDevWatchBatch
|
|
28
33
|
} from "./index-a5vmm6x4.js";
|
|
@@ -238,6 +243,8 @@ class IncrementalBuilder {
|
|
|
238
243
|
#watcher = null;
|
|
239
244
|
#generation = 0;
|
|
240
245
|
#shellKey = null;
|
|
246
|
+
#graph = null;
|
|
247
|
+
#changes = null;
|
|
241
248
|
#discoveredThrough = 0;
|
|
242
249
|
#csrActive = IncrementalBuilder.#csrArmedByEnv();
|
|
243
250
|
#csrBundler;
|
|
@@ -918,6 +925,45 @@ class IncrementalBuilder {
|
|
|
918
925
|
});
|
|
919
926
|
this.#logger.verbose(`announced boot state after recycle generation=${generation}`);
|
|
920
927
|
}
|
|
928
|
+
async handleBuildGraph(msg) {
|
|
929
|
+
try {
|
|
930
|
+
const data = msg.changes ? await this.#changesPayload(msg.changes.since) : await this.#graphPayload();
|
|
931
|
+
await BuilderChannel.send({ type: "build-graph-res", id: msg.id, ok: true, data });
|
|
932
|
+
} catch (err) {
|
|
933
|
+
const error = ApplicationBuildReporter.formatError(err, this.#app.workspace.workspaceRoot);
|
|
934
|
+
this.#logger.error(`build-graph failed: ${error}`);
|
|
935
|
+
await BuilderChannel.send({ type: "build-graph-res", id: msg.id, ok: false, error });
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
async#graphPayload() {
|
|
939
|
+
const generation = this.#generation;
|
|
940
|
+
if (this.#graph?.generation !== generation) {
|
|
941
|
+
const { workspace } = this.#app;
|
|
942
|
+
const graph = WorkspaceGraph.visibleTo(await WorkspaceGraph.build(workspace), this.#app.name);
|
|
943
|
+
this.#graph = { generation, payload: { workspaceRoot: workspace.workspaceRoot, graph } };
|
|
944
|
+
}
|
|
945
|
+
return this.#graph.payload;
|
|
946
|
+
}
|
|
947
|
+
async#changesPayload(since) {
|
|
948
|
+
const { workspace, name } = this.#app;
|
|
949
|
+
const { workspaceRoot } = workspace;
|
|
950
|
+
const forkPoint = await new GitRevision(workspaceRoot).forkPointOf(since);
|
|
951
|
+
if (forkPoint.error !== undefined)
|
|
952
|
+
return { workspaceRoot, changes: { error: forkPoint.error } };
|
|
953
|
+
const key = `${this.#generation}:${forkPoint.sha}`;
|
|
954
|
+
if (this.#changes?.key !== key) {
|
|
955
|
+
const payload = WorkspaceGraph.changesAt(workspace, forkPoint.sha).then((changes) => ({
|
|
956
|
+
workspaceRoot,
|
|
957
|
+
changes: WorkspaceGraph.changesVisibleTo(changes, name)
|
|
958
|
+
}));
|
|
959
|
+
payload.catch(() => {
|
|
960
|
+
if (this.#changes?.payload === payload)
|
|
961
|
+
this.#changes = null;
|
|
962
|
+
});
|
|
963
|
+
this.#changes = { key, payload };
|
|
964
|
+
}
|
|
965
|
+
return await this.#changes.payload;
|
|
966
|
+
}
|
|
921
967
|
async handleBuildCsr(msg) {
|
|
922
968
|
if (msg.shell) {
|
|
923
969
|
await this.#buildShell(msg);
|
|
@@ -1086,14 +1132,14 @@ class IncrementalBuilder {
|
|
|
1086
1132
|
builder.shutdown(msg.reason);
|
|
1087
1133
|
return;
|
|
1088
1134
|
}
|
|
1089
|
-
if (msg.type !== "build-route" && msg.type !== "build-csr")
|
|
1135
|
+
if (msg.type !== "build-route" && msg.type !== "build-csr" && msg.type !== "build-graph")
|
|
1090
1136
|
return;
|
|
1091
1137
|
if (!builder || builder.shuttingDown) {
|
|
1092
1138
|
const error = builder?.shuttingDown ? recyclingError : bootingError;
|
|
1093
1139
|
BuilderChannel.emit({ type: `${msg.type}-res`, id: msg.id, ok: false, error });
|
|
1094
1140
|
return;
|
|
1095
1141
|
}
|
|
1096
|
-
const handled = msg.type === "build-route" ? builder.handleBuildRoute(msg) : builder.handleBuildCsr(msg);
|
|
1142
|
+
const handled = msg.type === "build-route" ? builder.handleBuildRoute(msg) : msg.type === "build-csr" ? builder.handleBuildCsr(msg) : builder.handleBuildGraph(msg);
|
|
1097
1143
|
handled.catch((err) => logger.error(`${msg.type} failed: ${err instanceof Error ? err.message : String(err)}`));
|
|
1098
1144
|
});
|
|
1099
1145
|
process.on("disconnect", () => {
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
isWorkflowSysName,
|
|
8
8
|
isWorkflowModuleName,
|
|
9
9
|
renderRepairReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-kdswbvys.js";
|
|
11
11
|
import {
|
|
12
12
|
AkanContextAnalyzer
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ck64kxrn.js";
|
|
14
14
|
import {
|
|
15
15
|
runner
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-r0q2ka2b.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
19
19
|
var akanArgPattern = /^(?:--?[a-z][a-zA-Z0-9-]*|[A-Za-z0-9@_][A-Za-z0-9@._/:,=-]*)$/;
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-sra1a5f8.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-38by07nw.js";
|
|
11
11
|
import {
|
|
12
12
|
UpdatePackFolder,
|
|
13
13
|
NativePublicEnv,
|
|
14
14
|
NativeApp
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-w60zxxye.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-r0q2ka2b.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-r8t5sq7z.js";
|
|
22
22
|
import {
|
|
23
23
|
PackageScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-demt944k.js";
|
|
25
25
|
import {
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-qwe079ww.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
30
30
|
import { Logger } from "akanjs/common";
|
|
@@ -3489,7 +3489,7 @@ class Executor {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
async getTypeChecker() {
|
|
3492
|
-
const { TypeChecker } = await import("./typeChecker-
|
|
3492
|
+
const { TypeChecker } = await import("./typeChecker-s640r6c0.js");
|
|
3493
3493
|
this.typeChecker ??= new TypeChecker(this);
|
|
3494
3494
|
return this.typeChecker;
|
|
3495
3495
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-38by07nw.js";
|
|
5
5
|
import {
|
|
6
6
|
computeRouteSeedIndex,
|
|
7
7
|
saveRouteSeedIndex,
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
ClientEntriesBundler,
|
|
10
10
|
VENDOR_SPECIFIERS,
|
|
11
11
|
RouteClientBuilder
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-kc871vpc.js";
|
|
13
13
|
import {
|
|
14
14
|
SOURCE_EXTS
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-d894868w.js";
|
|
16
16
|
import {
|
|
17
17
|
BarrelAnalyzer,
|
|
18
18
|
createTsconfigPackageResolver,
|
|
19
19
|
rewriteBarrelImports,
|
|
20
20
|
CsrEntryFiles,
|
|
21
21
|
PagesBundleBuilder
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-6t7fkx73.js";
|
|
23
23
|
import {
|
|
24
24
|
CssBlockParser
|
|
25
25
|
} from "./index-62md4dwy.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-38by07nw.js";
|
|
5
5
|
import {
|
|
6
6
|
jsonText,
|
|
7
7
|
createWorkflowBaselineSummary,
|
|
8
8
|
buildAkanModuleContextIndex,
|
|
9
9
|
toolingRolloutGate
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-kdswbvys.js";
|
|
11
11
|
import {
|
|
12
12
|
buildResourceList,
|
|
13
13
|
codexMcpConfigPath,
|
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
upsertCodexMcpServerBlock,
|
|
18
18
|
renderDoctorText,
|
|
19
19
|
AkanContextAnalyzer
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-ck64kxrn.js";
|
|
21
21
|
import {
|
|
22
22
|
runner
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-r0q2ka2b.js";
|
|
24
24
|
import {
|
|
25
25
|
NativeApp
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-w60zxxye.js";
|
|
27
27
|
import {
|
|
28
28
|
isPlaceholderAppId
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-g0yds382.js";
|
|
30
30
|
import {
|
|
31
31
|
getMobileTargets,
|
|
32
32
|
appIdsOf
|
|
@@ -34,12 +34,15 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
Prompter2
|
|
36
36
|
} from "./index-j6eeh5d7.js";
|
|
37
|
+
import {
|
|
38
|
+
WorkspaceGraph
|
|
39
|
+
} from "./index-vkpqe29t.js";
|
|
37
40
|
import {
|
|
38
41
|
RepairRunner
|
|
39
|
-
} from "./index-
|
|
42
|
+
} from "./index-0tkj05cz.js";
|
|
40
43
|
import {
|
|
41
44
|
WorkflowRunner
|
|
42
|
-
} from "./index-
|
|
45
|
+
} from "./index-wymcdsas.js";
|
|
43
46
|
|
|
44
47
|
// pkgs/@akanjs/devkit/akanMcpContract.ts
|
|
45
48
|
import { lstatSync, realpathSync } from "fs";
|
|
@@ -294,6 +297,11 @@ var readonlyMcpTools = [
|
|
|
294
297
|
description: "Legacy broad module context. Pass app in monorepos; prefer inspect_akan_context.moduleContext or fieldInsertionContext for typed add-field evidence.",
|
|
295
298
|
inputSchema: { type: "object", properties: { app: stringProperty, module: stringProperty }, required: ["module"] }
|
|
296
299
|
},
|
|
300
|
+
{
|
|
301
|
+
name: "get_graph",
|
|
302
|
+
description: "Read-only Akan Graph from source, no dev server needed: models with their fields and relations, slices and endpoints with guards, the service methods and queries each calls, the store actions that fetch them, and the components and pages that use them. Every node and edge carries its source location. Pass app and/or module to scope a large workspace. Pass since (a git revision such as main, or HEAD for uncommitted work) for the Change Map instead: what changed since HEAD forked from it, working tree included, with each node, field and edge marked added, removed or changed, the unchanged neighbours they call or are called by, and the changed files no node covers, each marked the same way.",
|
|
303
|
+
inputSchema: { type: "object", properties: { app: stringProperty, module: stringProperty, since: stringProperty } }
|
|
304
|
+
},
|
|
297
305
|
{
|
|
298
306
|
name: "get_guideline",
|
|
299
307
|
description: "Return an Akan agent guideline resource by name.",
|
|
@@ -748,6 +756,13 @@ class ContextRunner2 extends runner("context") {
|
|
|
748
756
|
}
|
|
749
757
|
return modules;
|
|
750
758
|
}
|
|
759
|
+
if (name === "get_graph") {
|
|
760
|
+
const scope = {
|
|
761
|
+
app: typeof args.app === "string" ? args.app : null,
|
|
762
|
+
module: typeof args.module === "string" ? args.module : null
|
|
763
|
+
};
|
|
764
|
+
return typeof args.since === "string" ? WorkspaceGraph.answerChanges(await WorkspaceGraph.changes(workspace, args.since), scope) : WorkspaceGraph.answer(await WorkspaceGraph.build(workspace), scope);
|
|
765
|
+
}
|
|
751
766
|
if (name === "get_guideline")
|
|
752
767
|
return await Prompter2.getInstruction(stringArg(args, "name"));
|
|
753
768
|
if (name === "doctor_workspace")
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-r0q2ka2b.js";
|
|
5
5
|
import {
|
|
6
6
|
AppExecutor,
|
|
7
7
|
LibExecutor,
|
|
8
8
|
ModuleExecutor
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-38by07nw.js";
|
|
10
10
|
import {
|
|
11
11
|
InteractionScaffold,
|
|
12
12
|
workflowStatus,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
addFieldUiPolicyForType,
|
|
46
46
|
KeyRename,
|
|
47
47
|
MutationScaffold
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-kdswbvys.js";
|
|
49
49
|
import {
|
|
50
50
|
ModuleScript
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-hmj94es2.js";
|
|
52
52
|
|
|
53
53
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
54
54
|
import { capitalize, lowerlize } from "akanjs/common";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import {
|
|
7
7
|
LibSource,
|
|
8
8
|
formatLibStatuses,
|
|
9
9
|
CommandExecutionError,
|
|
10
10
|
LibExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-38by07nw.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/library/library.script.ts
|
|
14
14
|
import { Logger } from "akanjs/common";
|
|
@@ -157,7 +157,7 @@ class SubagentPool2 {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async#run(id, kind, prompt, signal) {
|
|
160
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
160
|
+
const { CodeAgent } = await import("./CodeAgent-z34p8m91.js");
|
|
161
161
|
const budget = this.#options.parent.tools.subagent;
|
|
162
162
|
const child = SubagentPool2.childOf(this.#options.parent, kind);
|
|
163
163
|
const model = this.#options.model?.();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
jsonText
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-kdswbvys.js";
|
|
5
5
|
import {
|
|
6
6
|
akanMcpInstallTargets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ck64kxrn.js";
|
|
8
8
|
import {
|
|
9
9
|
script
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-r0q2ka2b.js";
|
|
11
11
|
import {
|
|
12
12
|
ContextRunner2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-53h0053j.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
16
16
|
import { Logger } from "akanjs/common";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
camelToKebabCase,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-bns3wcpc.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
WorkspaceExecutor,
|
|
22
22
|
SysExecutor,
|
|
23
23
|
LibExecutor
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-38by07nw.js";
|
|
25
25
|
import {
|
|
26
26
|
countBlocking,
|
|
27
27
|
formatStyleContract,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
createAst,
|
|
32
32
|
createFactReader
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-re2kfscb.js";
|
|
34
34
|
import {
|
|
35
35
|
collectRecipeSources2,
|
|
36
36
|
scanRecipes2
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isScannedRootEntry,
|
|
11
11
|
AppExecutor,
|
|
12
12
|
LibExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-38by07nw.js";
|
|
14
14
|
import {
|
|
15
15
|
FileSys2
|
|
16
16
|
} from "./index-bns3wcpc.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
workflowPathsForPlan,
|
|
24
24
|
workflowRunArtifactPath,
|
|
25
25
|
workflowSyncDir
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-kdswbvys.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/devkit/akanContext.ts
|
|
29
29
|
import { readdir } from "fs/promises";
|
|
@@ -15,7 +15,10 @@ class ApplicationBuildReporter {
|
|
|
15
15
|
Logger.rawLog(`Route artifacts: ${result.artifactDir}`);
|
|
16
16
|
Logger.rawLog(`Server output: ${result.outputDir}`);
|
|
17
17
|
Logger.rawLog(`Done in ${ApplicationBuildReporter.formatDuration(result.durationMs)}`);
|
|
18
|
+
if (result.environment === "local")
|
|
19
|
+
Logger.rawLog(ApplicationBuildReporter.localBuildNotice);
|
|
18
20
|
}
|
|
21
|
+
static localBuildNotice = "Built for local, which serves the dev routes to every caller. For a host others can reach, build with AKAN_PUBLIC_ENV=main, AKAN_PUBLIC_REPO_NAME and AKAN_PUBLIC_SERVE_DOMAIN set.";
|
|
19
22
|
static formatError(error, workspaceRoot = process.cwd()) {
|
|
20
23
|
if (error instanceof AggregateError) {
|
|
21
24
|
const nestedMessages = error.errors.map((nestedError, index) => ApplicationBuildReporter.formatError(nestedError, workspaceRoot).trim() || `Unknown error ${index + 1}`).map((message) => message.replace(/^/gm, " ")).join(`
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-38by07nw.js";
|
|
5
5
|
import {
|
|
6
6
|
createBarrelImportsPlugin,
|
|
7
7
|
bundleDefine,
|
|
8
8
|
CsrEntryFiles,
|
|
9
9
|
PagesEntrySourceGenerator,
|
|
10
10
|
PagesBundleBuilder
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-6t7fkx73.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
|
|
14
14
|
import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-bns3wcpc.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-38by07nw.js";
|
|
12
12
|
import {
|
|
13
13
|
TypeScriptDependencyScanner2
|
|
14
14
|
} from "./index-qd7xn2bk.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import {
|
|
7
7
|
generatedFilesForSync,
|
|
8
8
|
createPassedPrimitiveReport,
|
|
9
9
|
scalarChangedFiles
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-kdswbvys.js";
|
|
11
11
|
import {
|
|
12
12
|
pluralizeName
|
|
13
13
|
} from "./index-nz8prx9g.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import {
|
|
7
7
|
ModuleExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-38by07nw.js";
|
|
9
9
|
import {
|
|
10
10
|
sourceFile,
|
|
11
11
|
moduleSourcePaths,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
createPassedPrimitiveReport,
|
|
14
14
|
bilingualLabelForField,
|
|
15
15
|
bilingualDescriptionForField
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-kdswbvys.js";
|
|
17
17
|
import {
|
|
18
18
|
PageScript
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-t0hk1kxq.js";
|
|
20
20
|
import {
|
|
21
21
|
pluralizeName
|
|
22
22
|
} from "./index-nz8prx9g.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SubagentPool2,
|
|
16
16
|
McpSignIn,
|
|
17
17
|
AkanCodeCompaction2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-90q0w90q.js";
|
|
19
19
|
import {
|
|
20
20
|
PreviewView2,
|
|
21
21
|
stripAnsi
|
|
@@ -659,7 +659,7 @@ class AkanToolPack2 {
|
|
|
659
659
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
660
660
|
}
|
|
661
661
|
async names() {
|
|
662
|
-
const { ContextRunner } = await import("./context.runner-
|
|
662
|
+
const { ContextRunner } = await import("./context.runner-p6m5cxk3.js");
|
|
663
663
|
return [
|
|
664
664
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
665
665
|
AkanToolPack2.verifyToolName
|
|
@@ -667,7 +667,7 @@ class AkanToolPack2 {
|
|
|
667
667
|
}
|
|
668
668
|
static verifyToolName = "akan_verify";
|
|
669
669
|
async#register(pi) {
|
|
670
|
-
const { ContextRunner } = await import("./context.runner-
|
|
670
|
+
const { ContextRunner } = await import("./context.runner-p6m5cxk3.js");
|
|
671
671
|
const runner = new ContextRunner;
|
|
672
672
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
673
673
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|