@akanjs/cli 3.1.1-rc.10 → 3.1.1-rc.12
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-8d5qs787.js → CodeAgent-eaazb526.js} +2 -2
- package/{CodeTui-z5vkm9ea.js → CodeTui-e7nh3rv9.js} +1 -1
- package/TunnelShare-26ty9skr.js +14 -0
- package/{agent.command-ydftceda.js → agent.command-h82gepwn.js} +5 -5
- package/akanCode.js +2 -2
- package/{application.command-wthg8nn9.js → application.command-j1reb9p1.js} +9 -9
- package/{applicationBuildRunner-t2r84sz6.js → applicationBuildRunner-w20x63mz.js} +8 -6
- package/buildBatch.proc.js +5 -5
- package/{cloud.command-sz11hpre.js → cloud.command-zd2mfkm0.js} +13 -13
- package/cloud.script-vdj8ymch.js +24 -0
- package/{code.command-9h3yrzhe.js → code.command-at39gpkg.js} +6 -6
- package/{context.command-15j9b7c0.js → context.command-d35ppstw.js} +16 -16
- package/context.runner-azvkkzdr.js +25 -0
- package/{guideline.command-snh85ctf.js → guideline.command-xwkskvky.js} +2 -2
- package/guidelines/pageRule/pageRule.instruction.md +4 -3
- package/incrementalBuilder.proc.js +3 -3
- package/{index-wcej7g4z.js → index-1e2955yd.js} +10 -0
- package/{index-bt438yxm.js → index-2qzzp0c9.js} +5 -4
- package/{index-40brg4px.js → index-4rwfh2de.js} +3 -3
- package/{index-pcwzkdqb.js → index-553xyb55.js} +1 -1
- package/{index-4vgbysa0.js → index-6pzt55w3.js} +3 -3
- package/{index-74tjjsnc.js → index-7abjzny1.js} +4 -4
- package/{index-2azahjaw.js → index-7ktk2hnz.js} +2 -2
- package/{index-a58emady.js → index-7yzcaymm.js} +8 -8
- package/{index-espk51ah.js → index-8jb5ep2e.js} +2 -2
- package/{index-js6geqjn.js → index-8rvwgd1r.js} +1 -1
- package/{index-55j120r8.js → index-8wd5r2xv.js} +3 -1
- package/{index-301pdbzz.js → index-brpk7gd8.js} +7 -7
- package/{index-6txx6a9p.js → index-ch1sv7ke.js} +16 -12
- package/{index-0fz95kxe.js → index-cz9g85xh.js} +1 -1
- package/{index-42j4a8zq.js → index-hdzjaq7s.js} +4 -3
- package/{index-skk9zc1x.js → index-kbbyzs6j.js} +2 -2
- package/{index-31es1yev.js → index-kr62ph5a.js} +2 -2
- package/{index-hmt54t45.js → index-nmy1rana.js} +4 -4
- package/{index-xjf5j657.js → index-pqdz7rat.js} +1 -1
- package/{index-3wypz6xj.js → index-qmeh0s05.js} +6 -2
- package/{index-a5dhqkdr.js → index-qsz6w3d6.js} +8 -3
- package/{index-2xcc2ax5.js → index-rshwdv9w.js} +2 -2
- package/{index-qfp55x1y.js → index-trvk51ht.js} +4 -4
- package/{index-9th4gszy.js → index-tzzs52h0.js} +18 -9
- package/{index-j9vyj3dj.js → index-wvvwdzfw.js} +3 -3
- package/{index-2mwc0g0d.js → index-xeh7m2j5.js} +1 -1
- package/{index-b70zct19.js → index-y5m4j2w6.js} +7 -7
- package/{index-905qdgqp.js → index-ygy8c12j.js} +1 -1
- package/{index-xb8809yb.js → index-yknrmkmt.js} +2 -2
- package/index.js +22 -22
- package/{library.command-gycrwhf1.js → library.command-td8t85kb.js} +3 -3
- package/{localRegistry.command-jtd8gaes.js → localRegistry.command-jx9zkmxf.js} +12 -12
- package/{module.command-v6hgs1bc.js → module.command-j70mqgpp.js} +5 -5
- package/{package.command-shzpcfph.js → package.command-1b1v6k5v.js} +3 -3
- package/package.json +2 -2
- package/{page.command-ptxn5kqk.js → page.command-m31w2tsz.js} +3 -3
- package/{pipeline.command-zz31pgax.js → pipeline.command-q7b8wy55.js} +2 -2
- package/{primitive.command-a1vse91z.js → primitive.command-4zrbhkb9.js} +6 -6
- package/{projectTypecheck-2ztky9cf.js → projectTypecheck-synx6qff.js} +1 -1
- package/{quality.command-ah8qcakd.js → quality.command-cy0pgqjz.js} +3 -3
- package/{repair.command-cvazbz99.js → repair.command-98n6zxg7.js} +5 -5
- package/{scalar.command-0acvyp26.js → scalar.command-rak5pjk3.js} +4 -4
- package/skills/akan-code/SKILL.md +1 -0
- package/{subspace.command-822qx2bx.js → subspace.command-ej0rk116.js} +8 -8
- package/{tunnel.command-ycmja19q.js → tunnel.command-kdx3amrc.js} +7 -7
- package/{workflow.command-abb1d5xy.js → workflow.command-gffk9nj9.js} +10 -10
- package/{workspace.command-qm7cw29v.js → workspace.command-j1680trm.js} +24 -24
- package/TunnelShare-qkm8zp03.js +0 -14
- package/cloud.script-nqevg5qw.js +0 -24
- package/context.runner-8gg030b0.js +0 -25
|
@@ -179,13 +179,15 @@ class SubagentPool2 {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
async#run(id, kind, prompt, signal) {
|
|
182
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
182
|
+
const { CodeAgent } = await import("./CodeAgent-eaazb526.js");
|
|
183
183
|
const budget = this.#options.parent.tools.subagent;
|
|
184
184
|
const child = SubagentPool2.childOf(this.#options.parent, kind);
|
|
185
|
+
const model = this.#options.model?.();
|
|
185
186
|
const agent = await CodeAgent.create({
|
|
186
187
|
workspace: this.#options.workspace,
|
|
187
188
|
cwd: this.#options.cwd,
|
|
188
189
|
profile: child,
|
|
190
|
+
...model ? { model } : {},
|
|
189
191
|
apps: [],
|
|
190
192
|
depth: this.#options.depth + 1,
|
|
191
193
|
subagentSpend: this.#spend
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-7ktk2hnz.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-1e2955yd.js";
|
|
11
11
|
import {
|
|
12
12
|
UpdatePackFolder,
|
|
13
13
|
NativePublicEnv,
|
|
14
14
|
NativeApp
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-2qzzp0c9.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-qmeh0s05.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-tzzs52h0.js";
|
|
22
22
|
import {
|
|
23
23
|
PackageScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-hdzjaq7s.js";
|
|
25
25
|
import {
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-ch1sv7ke.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
30
30
|
import { Logger } from "akanjs/common";
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
CloudApi,
|
|
7
7
|
CloudUpdates,
|
|
8
8
|
PipelineSecrets
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-7ktk2hnz.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveMobileTargets
|
|
12
12
|
} from "./index-m9jj544v.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceExecutor,
|
|
15
15
|
AppExecutor
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-1e2955yd.js";
|
|
17
17
|
import {
|
|
18
18
|
NativeApp
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-2qzzp0c9.js";
|
|
20
20
|
import {
|
|
21
21
|
runner,
|
|
22
22
|
assertPromptable
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-qmeh0s05.js";
|
|
24
24
|
import {
|
|
25
25
|
SubspaceConfig
|
|
26
26
|
} from "./index-4pf8g7ff.js";
|
|
@@ -294,6 +294,7 @@ class LinuxDockerTarget extends PlatformTestTarget {
|
|
|
294
294
|
"run",
|
|
295
295
|
"-d",
|
|
296
296
|
"--rm",
|
|
297
|
+
"--init",
|
|
297
298
|
"--name",
|
|
298
299
|
container,
|
|
299
300
|
"--cpus",
|
|
@@ -743,7 +744,7 @@ ${chalk2.green("\u27A4")} Authentication Required`));
|
|
|
743
744
|
}
|
|
744
745
|
Logger.rawLog(`
|
|
745
746
|
${chalk2.bold("Your code:")} ${chalk2.bold.inverse(` ${await RemoteAuthCode.of(remoteId)} `)}`);
|
|
746
|
-
Logger.rawLog(chalk2.dim(`Enter this code on the sign-in page
|
|
747
|
+
Logger.rawLog(chalk2.dim(`Enter this code on the sign-in page. Never enter a code that did not come from your own terminal.
|
|
747
748
|
`));
|
|
748
749
|
}
|
|
749
750
|
async#awaitApproval(remoteId, loginId) {
|
|
@@ -778,17 +779,20 @@ ${chalk2.bold("Your code:")} ${chalk2.bold.inverse(` ${await RemoteAuthCode.of(r
|
|
|
778
779
|
async#readSelf() {
|
|
779
780
|
let reason = "";
|
|
780
781
|
for (let attempt = 1;attempt <= this.#selfAttempts; attempt++) {
|
|
782
|
+
let self;
|
|
781
783
|
try {
|
|
782
|
-
|
|
783
|
-
if (self)
|
|
784
|
-
return self;
|
|
785
|
-
reason = "the server did not take the new session";
|
|
786
|
-
break;
|
|
784
|
+
self = await this.#api.getRemoteSelf();
|
|
787
785
|
} catch (error) {
|
|
788
786
|
reason = RemoteLogin.#reasonOf(error);
|
|
787
|
+
if (attempt < this.#selfAttempts)
|
|
788
|
+
await this.#wait(Backoff.delay(attempt, { min: 1000, max: 8000 }));
|
|
789
|
+
continue;
|
|
789
790
|
}
|
|
790
|
-
if (
|
|
791
|
-
|
|
791
|
+
if (self)
|
|
792
|
+
return self;
|
|
793
|
+
const { host } = this.#api;
|
|
794
|
+
await GlobalConfig.setHostConfig(getDefaultHostConfig(host));
|
|
795
|
+
throw new Error(chalk2.red(`\u2716 ${host} did not take the session it handed out. Run akan login again.`));
|
|
792
796
|
}
|
|
793
797
|
Logger.rawLog(chalk2.yellow(`Could not read the signed-in account (${reason}).`));
|
|
794
798
|
return null;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qmeh0s05.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-1e2955yd.js";
|
|
12
12
|
import {
|
|
13
13
|
TypeScriptDependencyScanner2
|
|
14
14
|
} from "./index-tvehn2sp.js";
|
|
@@ -233,7 +233,8 @@ class PackageRunner extends runner("package") {
|
|
|
233
233
|
const specifierPattern = new RegExp(`["'](${alternatives.join("|")})((?:/[^"'\\s]*)?)["']`, "g");
|
|
234
234
|
const glob = new Bun.Glob(PackageRunner.#scannableDistFiles);
|
|
235
235
|
const imports = new Map;
|
|
236
|
-
for await (const
|
|
236
|
+
for await (const scanned of glob.scan({ cwd: distPath })) {
|
|
237
|
+
const relative = scanned.split(path2.sep).join("/");
|
|
237
238
|
if (relative.includes("node_modules/") || relative.endsWith(".d.ts"))
|
|
238
239
|
continue;
|
|
239
240
|
if (/\.(test|spec)\.[a-z]+$/.test(relative))
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qmeh0s05.js";
|
|
6
6
|
import {
|
|
7
7
|
generatedFilesForSync,
|
|
8
8
|
createPassedPrimitiveReport,
|
|
9
9
|
scalarChangedFiles
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-pqdz7rat.js";
|
|
11
11
|
import {
|
|
12
12
|
pluralizeName
|
|
13
13
|
} from "./index-nz8prx9g.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isScannedRootEntry,
|
|
11
11
|
AppExecutor,
|
|
12
12
|
LibExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-1e2955yd.js";
|
|
14
14
|
import {
|
|
15
15
|
FileSys2
|
|
16
16
|
} from "./index-52w0fvh8.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
workflowPathsForPlan,
|
|
24
24
|
workflowRunArtifactPath,
|
|
25
25
|
workflowSyncDir
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-pqdz7rat.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/devkit/akanContext.ts
|
|
29
29
|
import { readdir } from "fs/promises";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qmeh0s05.js";
|
|
6
6
|
import {
|
|
7
7
|
ModuleExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-1e2955yd.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-pqdz7rat.js";
|
|
17
17
|
import {
|
|
18
18
|
PageScript
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-ygy8c12j.js";
|
|
20
20
|
import {
|
|
21
21
|
pluralizeName
|
|
22
22
|
} from "./index-nz8prx9g.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
LibExecutor,
|
|
11
11
|
PkgExecutor,
|
|
12
12
|
ModuleExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-1e2955yd.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/devkit/commandDecorators/camelToKebabCase.ts
|
|
16
16
|
var camelToKebabCase = (str) => str.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
@@ -348,7 +348,11 @@ class WorkspaceVersionCheck {
|
|
|
348
348
|
return JSON.parse(readFileSync(packageJsonPath, "utf8")).version ?? null;
|
|
349
349
|
}
|
|
350
350
|
static #quote(arg) {
|
|
351
|
-
|
|
351
|
+
if (/^[\w@%+=:,./-]+$/.test(arg))
|
|
352
|
+
return arg;
|
|
353
|
+
if (process.platform === "win32")
|
|
354
|
+
return `"${arg.replaceAll('"', "\\\"")}"`;
|
|
355
|
+
return `'${arg.replaceAll("'", `'\\''`)}'`;
|
|
352
356
|
}
|
|
353
357
|
}
|
|
354
358
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
McpServerConfig,
|
|
6
6
|
McpSignIn,
|
|
7
7
|
AkanCodeCompaction2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-8wd5r2xv.js";
|
|
9
9
|
import {
|
|
10
10
|
stripAnsi
|
|
11
11
|
} from "./index-7md2g9vw.js";
|
|
@@ -809,7 +809,7 @@ class AkanToolPack2 {
|
|
|
809
809
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
810
810
|
}
|
|
811
811
|
async names() {
|
|
812
|
-
const { ContextRunner } = await import("./context.runner-
|
|
812
|
+
const { ContextRunner } = await import("./context.runner-azvkkzdr.js");
|
|
813
813
|
return [
|
|
814
814
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
815
815
|
AkanToolPack2.verifyToolName
|
|
@@ -817,7 +817,7 @@ class AkanToolPack2 {
|
|
|
817
817
|
}
|
|
818
818
|
static verifyToolName = "akan_verify";
|
|
819
819
|
async#register(pi) {
|
|
820
|
-
const { ContextRunner } = await import("./context.runner-
|
|
820
|
+
const { ContextRunner } = await import("./context.runner-azvkkzdr.js");
|
|
821
821
|
const runner = new ContextRunner;
|
|
822
822
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
823
823
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|
|
@@ -1765,6 +1765,7 @@ class AkanCodePlugins2 {
|
|
|
1765
1765
|
workspace: options.workspace,
|
|
1766
1766
|
cwd: options.cwd,
|
|
1767
1767
|
parent: options.profile,
|
|
1768
|
+
...options.model ? { model: options.model } : {},
|
|
1768
1769
|
depth: options.depth,
|
|
1769
1770
|
...options.subagentSpend ? { spend: options.subagentSpend } : {},
|
|
1770
1771
|
...options.onNotice ? { onNotice: options.onNotice } : {},
|
|
@@ -2529,6 +2530,10 @@ class CodeAgent2 {
|
|
|
2529
2530
|
profile: options.profile,
|
|
2530
2531
|
apps: options.apps ?? [],
|
|
2531
2532
|
canSeeImages: akanCodeModelSupportsImages2(model),
|
|
2533
|
+
model: () => {
|
|
2534
|
+
const current = agent.#session?.model;
|
|
2535
|
+
return current ? { provider: current.provider, id: current.id } : undefined;
|
|
2536
|
+
},
|
|
2532
2537
|
deepseek: await DeepSeekWeb.fromRuntime(modelRuntime, !!proxy),
|
|
2533
2538
|
depth: options.depth ?? 0,
|
|
2534
2539
|
...options.subagentSpend ? { subagentSpend: options.subagentSpend } : {},
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qmeh0s05.js";
|
|
6
6
|
import {
|
|
7
7
|
LibSource,
|
|
8
8
|
formatLibStatuses,
|
|
9
9
|
CommandExecutionError,
|
|
10
10
|
LibExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-1e2955yd.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/library/library.script.ts
|
|
14
14
|
import { Logger } from "akanjs/common";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
jsonText
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-pqdz7rat.js";
|
|
5
5
|
import {
|
|
6
6
|
akanMcpInstallTargets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-kr62ph5a.js";
|
|
8
8
|
import {
|
|
9
9
|
script
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-qmeh0s05.js";
|
|
11
11
|
import {
|
|
12
12
|
ContextRunner2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-7yzcaymm.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
16
16
|
import { Logger } from "akanjs/common";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
script,
|
|
42
42
|
markCliErrorPrinted,
|
|
43
43
|
assertPromptable
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-qmeh0s05.js";
|
|
45
45
|
import {
|
|
46
46
|
AppInfo,
|
|
47
47
|
CommandExecutionError,
|
|
@@ -50,30 +50,30 @@ import {
|
|
|
50
50
|
AppExecutor,
|
|
51
51
|
LibExecutor,
|
|
52
52
|
PkgExecutor
|
|
53
|
-
} from "./index-
|
|
53
|
+
} from "./index-1e2955yd.js";
|
|
54
54
|
import {
|
|
55
55
|
UpdatePackFolder,
|
|
56
56
|
UpdateUploader,
|
|
57
57
|
NativePublicEnv,
|
|
58
58
|
NativeApp
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-2qzzp0c9.js";
|
|
60
60
|
import {
|
|
61
61
|
DesktopServerStage
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-8rvwgd1r.js";
|
|
63
63
|
import {
|
|
64
64
|
resolveMobileTargets,
|
|
65
65
|
resolveAppId
|
|
66
66
|
} from "./index-m9jj544v.js";
|
|
67
67
|
import {
|
|
68
68
|
LibraryScript
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-rshwdv9w.js";
|
|
70
70
|
import {
|
|
71
71
|
stripAnsi
|
|
72
72
|
} from "./index-7md2g9vw.js";
|
|
73
73
|
import {
|
|
74
74
|
SlicePlanner,
|
|
75
75
|
formatSlicePlan
|
|
76
|
-
} from "./index-
|
|
76
|
+
} from "./index-553xyb55.js";
|
|
77
77
|
import {
|
|
78
78
|
openBrowser
|
|
79
79
|
} from "./index-9dp031by.js";
|
|
@@ -1271,6 +1271,11 @@ ${this.#backendStderrTail.join(`
|
|
|
1271
1271
|
static async readProcessRssBytes(pid) {
|
|
1272
1272
|
if (process.platform === "win32")
|
|
1273
1273
|
return await AkanAppHost.#readRssKbVia(["tasklist", "/FI", `PID eq ${pid}`, "/FO", "CSV", "/NH"], AkanAppHost.#tasklistRssKb);
|
|
1274
|
+
if (process.platform === "darwin") {
|
|
1275
|
+
const footprintBytes = await AkanAppHost.#readRssKbVia(["footprint", "-p", String(pid), "-f", "bytes"], AkanAppHost.#footprintKb);
|
|
1276
|
+
if (footprintBytes !== null)
|
|
1277
|
+
return footprintBytes;
|
|
1278
|
+
}
|
|
1274
1279
|
const status = await Bun.file(`/proc/${pid}/status`).text().catch(() => null);
|
|
1275
1280
|
const vmRssKb = status === null ? null : /VmRSS:\s+(\d+) kB/.exec(status)?.[1];
|
|
1276
1281
|
if (vmRssKb)
|
|
@@ -1300,6 +1305,10 @@ ${this.#backendStderrTail.join(`
|
|
|
1300
1305
|
const memUsage = /"([^"]*)"\s*$/m.exec(output)?.[1];
|
|
1301
1306
|
return memUsage ? Number(memUsage.replace(/\D/g, "")) : Number.NaN;
|
|
1302
1307
|
}
|
|
1308
|
+
static #footprintKb(output) {
|
|
1309
|
+
const bytes = /Footprint: (\d+) B\b/.exec(output)?.[1];
|
|
1310
|
+
return bytes ? Number(bytes) / 1024 : Number.NaN;
|
|
1311
|
+
}
|
|
1303
1312
|
#cancelRssRecycle() {
|
|
1304
1313
|
this.#rssRecycleReason = null;
|
|
1305
1314
|
this.#rssRecycleOver = null;
|
|
@@ -1900,7 +1909,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
|
|
|
1900
1909
|
|
|
1901
1910
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
1902
1911
|
import { Logger as Logger3, toError } from "akanjs/common";
|
|
1903
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
1912
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-w20x63mz.js")).ApplicationBuildRunner;
|
|
1904
1913
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
1905
1914
|
|
|
1906
1915
|
class ApplicationRunner extends runner("application") {
|
|
@@ -2101,7 +2110,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
|
|
|
2101
2110
|
await new (await loadBuildRunner())(app).typecheck(options);
|
|
2102
2111
|
}
|
|
2103
2112
|
async typecheckLibrary(lib, options = {}) {
|
|
2104
|
-
const { ProjectTypecheck } = await import("./projectTypecheck-
|
|
2113
|
+
const { ProjectTypecheck } = await import("./projectTypecheck-synx6qff.js");
|
|
2105
2114
|
const root = lib.workspace.workspaceRoot;
|
|
2106
2115
|
await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
|
|
2107
2116
|
"../../server.ts",
|
|
@@ -3708,7 +3717,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
3708
3717
|
await Promise.all(shares.map(async (share) => await share.close()));
|
|
3709
3718
|
}, "Abandoning the tunnel release; the shares expire on their own.");
|
|
3710
3719
|
await Promise.all(apps.map(async (app) => {
|
|
3711
|
-
const { TunnelShare } = await import("./TunnelShare-
|
|
3720
|
+
const { TunnelShare } = await import("./TunnelShare-26ty9skr.js");
|
|
3712
3721
|
const share = await TunnelShare.open(app, { workspace: app.workspace });
|
|
3713
3722
|
shares.push(share);
|
|
3714
3723
|
urls.set(app.name, share.url);
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
writeGeneratedSyncState,
|
|
6
6
|
createRepairReport,
|
|
7
7
|
renderRepairReport
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-pqdz7rat.js";
|
|
9
9
|
import {
|
|
10
10
|
AkanContextAnalyzer
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-kr62ph5a.js";
|
|
12
12
|
import {
|
|
13
13
|
runner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-qmeh0s05.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
17
17
|
var spawnShell = async (workspace, command) => await workspace.spawn("bash", ["-lc", command.startsWith("akan ") ? `bun run ${command}` : command], {
|
|
@@ -22,26 +22,26 @@ import {
|
|
|
22
22
|
renderWorkflowApply,
|
|
23
23
|
renderWorkflowValidation,
|
|
24
24
|
renderWorkflowRunArtifact
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-pqdz7rat.js";
|
|
26
26
|
import {
|
|
27
27
|
AkanContextAnalyzer
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-kr62ph5a.js";
|
|
29
29
|
import {
|
|
30
30
|
CommandContainer,
|
|
31
31
|
runner
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-qmeh0s05.js";
|
|
33
33
|
import {
|
|
34
34
|
ModuleScript
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-nmy1rana.js";
|
|
36
36
|
import {
|
|
37
37
|
PrimitiveScript
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-7abjzny1.js";
|
|
39
39
|
import {
|
|
40
40
|
spawnShell
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-wvvwdzfw.js";
|
|
42
42
|
import {
|
|
43
43
|
ScalarScript
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-kbbyzs6j.js";
|
|
45
45
|
|
|
46
46
|
// pkgs/@akanjs/cli/workflow/workflow.runner.ts
|
|
47
47
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1e2955yd.js";
|
|
5
5
|
import {
|
|
6
6
|
bundleDefine,
|
|
7
7
|
CsrEntryFiles,
|
|
8
8
|
PagesEntrySourceGenerator,
|
|
9
9
|
PagesBundleBuilder
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-cz9g85xh.js";
|
|
11
11
|
|
|
12
12
|
// pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
|
|
13
13
|
import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
|
package/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qmeh0s05.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-1e2955yd.js";
|
|
10
10
|
|
|
11
11
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
12
12
|
class BunVersionGuard {
|
|
@@ -22,26 +22,26 @@ import path from "path";
|
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
24
24
|
var commandModules = {
|
|
25
|
-
workspace: async () => (await import("./workspace.command-
|
|
26
|
-
agent: async () => (await import("./agent.command-
|
|
27
|
-
code: async () => (await import("./code.command-
|
|
28
|
-
application: async () => (await import("./application.command-
|
|
29
|
-
library: async () => (await import("./library.command-
|
|
30
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
31
|
-
package: async () => (await import("./package.command-
|
|
32
|
-
module: async () => (await import("./module.command-
|
|
33
|
-
page: async () => (await import("./page.command-
|
|
34
|
-
context: async () => (await import("./context.command-
|
|
35
|
-
cloud: async () => (await import("./cloud.command-
|
|
36
|
-
subspace: async () => (await import("./subspace.command-
|
|
37
|
-
guideline: async () => (await import("./guideline.command-
|
|
38
|
-
scalar: async () => (await import("./scalar.command-
|
|
39
|
-
primitive: async () => (await import("./primitive.command-
|
|
40
|
-
quality: async () => (await import("./quality.command-
|
|
41
|
-
repair: async () => (await import("./repair.command-
|
|
42
|
-
workflow: async () => (await import("./workflow.command-
|
|
43
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
44
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
25
|
+
workspace: async () => (await import("./workspace.command-j1680trm.js")).WorkspaceCommand,
|
|
26
|
+
agent: async () => (await import("./agent.command-h82gepwn.js")).AgentCommand,
|
|
27
|
+
code: async () => (await import("./code.command-at39gpkg.js")).CodeCommand,
|
|
28
|
+
application: async () => (await import("./application.command-j1reb9p1.js")).ApplicationCommand,
|
|
29
|
+
library: async () => (await import("./library.command-td8t85kb.js")).LibraryCommand,
|
|
30
|
+
localRegistry: async () => (await import("./localRegistry.command-jx9zkmxf.js")).LocalRegistryCommand,
|
|
31
|
+
package: async () => (await import("./package.command-1b1v6k5v.js")).PackageCommand,
|
|
32
|
+
module: async () => (await import("./module.command-j70mqgpp.js")).ModuleCommand,
|
|
33
|
+
page: async () => (await import("./page.command-m31w2tsz.js")).PageCommand,
|
|
34
|
+
context: async () => (await import("./context.command-d35ppstw.js")).ContextCommand,
|
|
35
|
+
cloud: async () => (await import("./cloud.command-zd2mfkm0.js")).CloudCommand,
|
|
36
|
+
subspace: async () => (await import("./subspace.command-ej0rk116.js")).SubspaceCommand,
|
|
37
|
+
guideline: async () => (await import("./guideline.command-xwkskvky.js")).GuidelineCommand,
|
|
38
|
+
scalar: async () => (await import("./scalar.command-rak5pjk3.js")).ScalarCommand,
|
|
39
|
+
primitive: async () => (await import("./primitive.command-4zrbhkb9.js")).PrimitiveCommand,
|
|
40
|
+
quality: async () => (await import("./quality.command-cy0pgqjz.js")).QualityCommand,
|
|
41
|
+
repair: async () => (await import("./repair.command-98n6zxg7.js")).RepairCommand,
|
|
42
|
+
workflow: async () => (await import("./workflow.command-gffk9nj9.js")).WorkflowCommand,
|
|
43
|
+
pipeline: async () => (await import("./pipeline.command-q7b8wy55.js")).PipelineCommand,
|
|
44
|
+
tunnel: async () => (await import("./tunnel.command-kdx3amrc.js")).TunnelCommand
|
|
45
45
|
};
|
|
46
46
|
var commandModuleIds = Object.keys(commandModules);
|
|
47
47
|
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import {
|
|
10
10
|
LibraryScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-rshwdv9w.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
14
14
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -4,32 +4,32 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qmeh0s05.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-1e2955yd.js";
|
|
12
12
|
import"./index-5nd1wtkv.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-2qzzp0c9.js";
|
|
14
|
+
import"./index-8rvwgd1r.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
16
|
+
import"./index-yknrmkmt.js";
|
|
17
|
+
import"./index-cz9g85xh.js";
|
|
18
|
+
import"./index-rshwdv9w.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-tzzs52h0.js";
|
|
22
22
|
import"./index-7md2g9vw.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-7ktk2hnz.js";
|
|
24
24
|
import {
|
|
25
25
|
getNpmRegistryUrl,
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-ch1sv7ke.js";
|
|
28
28
|
import"./index-tvehn2sp.js";
|
|
29
29
|
import {
|
|
30
30
|
PackageScript
|
|
31
|
-
} from "./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
} from "./index-hdzjaq7s.js";
|
|
32
|
+
import"./index-553xyb55.js";
|
|
33
33
|
|
|
34
34
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
35
35
|
import { mkdir, rm } from "fs/promises";
|