@akanjs/cli 3.2.0-rc.11 → 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-fk66n37w.js → CodeAgent-yd1f54yf.js} +2 -2
- package/{CodeTui-4rf1mqmv.js → CodeTui-h7mksphk.js} +1 -1
- package/TunnelShare-hrjed2jf.js +19 -0
- package/{agent.command-7g9czkkd.js → agent.command-hrc2dfas.js} +19 -15
- package/akanCode.js +2 -2
- package/appExecutor-0ssszyhf.js +11 -0
- package/{application.command-00spg55s.js → application.command-b2194cpv.js} +15 -11
- package/{applicationBuildRunner-f4yf0qyc.js → applicationBuildRunner-gg03kydg.js} +12 -8
- package/buildBatch.proc.js +14 -9
- package/{cloud.command-ab704p0g.js → cloud.command-d8ps1564.js} +20 -16
- package/cloud.script-7j7w4m0w.js +35 -0
- package/{code.command-m6c9xk56.js → code.command-6h6jr0s7.js} +10 -6
- package/{context.command-hgcgxtdk.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/errorCodes/errorCodes.instruction.md +3 -0
- 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-6qtxs86x.js → index-3fn13v8p.js} +4 -4
- package/{index-6eptmk8z.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-849qvd7t.js → index-71z3pdsn.js} +4 -4
- package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
- package/{index-bxkx0x03.js → index-8rmg8c0y.js} +3 -3
- package/{index-6z57w95f.js → index-9w51aevd.js} +1 -1
- package/{index-5jwx4bf2.js → index-9yfssbgg.js} +25 -19
- package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
- package/index-b3h37zk3.js +787 -0
- package/{index-xfv2p7b5.js → index-bb7cm060.js} +10 -10
- package/{index-p4htjyvk.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-xy70tcv4.js → index-e599a0e4.js} +1 -1
- package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
- package/{index-dsg50er9.js → index-g2ebpf0y.js} +6 -6
- package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
- package/{index-hhagjhkh.js → index-hg8s6nae.js} +9 -9
- package/{index-b3pr4ee6.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-4k9nv4m3.js → index-k081wv4r.js} +1428 -1106
- package/{index-rdx8cyv2.js → index-nx4q5rey.js} +3 -3
- package/index-rx8r0cbe.js +18 -0
- package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
- package/{index-z43wddce.js → index-vy50ec2q.js} +2 -2
- package/index-x2bj2vyz.js +127 -0
- package/{index-9xh4zvw3.js → index-xb1yh9km.js} +21 -11
- package/{index-7ky4brfy.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-bz2df40m.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-0970n7kd.js → subspace.command-d8t8geyv.js} +17 -12
- package/templates/lib/sig.ts +0 -4
- package/templates/lib/useClient.ts +1 -1
- package/{tunnel.command-bcy0rtmh.js → tunnel.command-mhm64m9n.js} +15 -11
- package/{verify.command-ynaztxr2.js → verify.command-j4he0fbx.js} +16 -12
- package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
- package/{workspace.command-e4wfxm86.js → workspace.command-pkpawft5.js} +47 -41
- package/TunnelShare-44er4e29.js +0 -15
- package/cloud.script-4p4y0s7e.js +0 -31
- package/context.runner-w071gmc3.js +0 -30
|
@@ -4,19 +4,24 @@ 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 {
|
|
10
10
|
FileSys2
|
|
11
11
|
} from "./index-bns3wcpc.js";
|
|
12
12
|
import {
|
|
13
13
|
AkanAppConfig,
|
|
14
|
-
AkanWorkspaceConfig
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
AkanWorkspaceConfig
|
|
15
|
+
} from "./index-crtscw7c.js";
|
|
16
|
+
import {
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-b3h37zk3.js";
|
|
19
|
+
import"./index-1jzdengt.js";
|
|
20
|
+
import"./index-x2bj2vyz.js";
|
|
17
21
|
import {
|
|
18
22
|
resolveMobileTargets
|
|
19
23
|
} from "./index-m9jj544v.js";
|
|
24
|
+
import"./index-rx8r0cbe.js";
|
|
20
25
|
|
|
21
26
|
// pkgs/@akanjs/cli/pipeline/pipeline.command.ts
|
|
22
27
|
import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
|
|
@@ -1099,7 +1104,7 @@ class PipelineDefinition {
|
|
|
1099
1104
|
}
|
|
1100
1105
|
async#loadNativeTargets(app) {
|
|
1101
1106
|
try {
|
|
1102
|
-
const targets = await resolveMobileTargets(
|
|
1107
|
+
const targets = await resolveMobileTargets(AppExecutor2.from(this.#workspace, app), "all");
|
|
1103
1108
|
return { targets: targets.map(({ name, config }) => ({ name, updates: !!config.updates })) };
|
|
1104
1109
|
} catch (error) {
|
|
1105
1110
|
return { error: toError2(error).message };
|
|
@@ -1119,7 +1124,7 @@ class PipelineDefinition {
|
|
|
1119
1124
|
}
|
|
1120
1125
|
}
|
|
1121
1126
|
async#loadApp(app) {
|
|
1122
|
-
const executor =
|
|
1127
|
+
const executor = AppExecutor2.from(this.#workspace, app);
|
|
1123
1128
|
const file = `apps/${app}/akan.config.ts`;
|
|
1124
1129
|
const sha256 = await PipelineDefinition.#sha256(path.join(executor.cwdPath, "akan.config.ts"));
|
|
1125
1130
|
try {
|
|
@@ -2,19 +2,23 @@
|
|
|
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 {
|
|
10
13
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
14
|
+
} from "./index-j2me5hm4.js";
|
|
12
15
|
import"./index-nd39rssn.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
16
|
+
import"./index-8bkbexcy.js";
|
|
17
|
+
import"./index-2z8mxgs7.js";
|
|
15
18
|
import {
|
|
16
19
|
PrimitiveScript
|
|
17
|
-
} from "./index-
|
|
20
|
+
} from "./index-asfx2dhe.js";
|
|
21
|
+
import"./index-rx8r0cbe.js";
|
|
18
22
|
|
|
19
23
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
20
24
|
import { Logger } from "akanjs/common";
|
|
@@ -3,29 +3,35 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
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-crtscw7c.js";
|
|
9
10
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
AppExecutor2
|
|
12
|
+
} from "./index-b3h37zk3.js";
|
|
13
|
+
import {
|
|
14
|
+
LibExecutor2
|
|
15
|
+
} from "./index-1jzdengt.js";
|
|
16
|
+
import {
|
|
17
|
+
PkgExecutor2
|
|
18
|
+
} from "./index-x2bj2vyz.js";
|
|
14
19
|
import {
|
|
15
20
|
MaintainabilityBaseline
|
|
16
|
-
} from "./index-
|
|
21
|
+
} from "./index-j33b0n38.js";
|
|
17
22
|
import {
|
|
18
23
|
WorkspaceRunner,
|
|
19
24
|
AkanQualityScanner,
|
|
20
25
|
formatQualityScanResult,
|
|
21
26
|
formatSsrScanResult
|
|
22
|
-
} from "./index-
|
|
27
|
+
} from "./index-c4k6e098.js";
|
|
23
28
|
import"./index-nd39rssn.js";
|
|
24
29
|
import"./index-62md4dwy.js";
|
|
25
30
|
import"./index-ygdbn9jn.js";
|
|
26
31
|
import"./index-hj6w4ka1.js";
|
|
27
32
|
import"./index-ny2k80mv.js";
|
|
28
33
|
import"./index-t4d0ckde.js";
|
|
34
|
+
import"./index-rx8r0cbe.js";
|
|
29
35
|
|
|
30
36
|
// pkgs/@akanjs/cli/quality/quality.script.ts
|
|
31
37
|
import { Logger } from "akanjs/common";
|
|
@@ -46,9 +52,9 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
|
|
|
46
52
|
async baseline(workspace, { force = false } = {}) {
|
|
47
53
|
const [appNames, libNames, pkgNames] = await workspace.getExecs();
|
|
48
54
|
const execs = [
|
|
49
|
-
...appNames.map((appName) =>
|
|
50
|
-
...libNames.map((libName) =>
|
|
51
|
-
...pkgNames.map((pkgName) =>
|
|
55
|
+
...appNames.map((appName) => AppExecutor2.from(workspace, appName)),
|
|
56
|
+
...libNames.map((libName) => LibExecutor2.from(workspace, libName)),
|
|
57
|
+
...pkgNames.map((pkgName) => PkgExecutor2.from(workspace, pkgName))
|
|
52
58
|
];
|
|
53
59
|
const { fileName } = MaintainabilityBaseline;
|
|
54
60
|
for (const exec of execs) {
|
|
@@ -3,17 +3,21 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
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-5np8zpep.js";
|
|
11
14
|
import"./index-hj6w4ka1.js";
|
|
12
|
-
import"./index-
|
|
15
|
+
import"./index-j2me5hm4.js";
|
|
13
16
|
import"./index-nd39rssn.js";
|
|
14
17
|
import {
|
|
15
18
|
RepairRunner
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-1b1p83vq.js";
|
|
20
|
+
import"./index-rx8r0cbe.js";
|
|
17
21
|
|
|
18
22
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
19
23
|
import { Logger } from "akanjs/common";
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
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
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
14
|
+
} from "./index-j2me5hm4.js";
|
|
12
15
|
import"./index-nd39rssn.js";
|
|
13
16
|
import {
|
|
14
17
|
ScalarScript
|
|
15
|
-
} from "./index-
|
|
18
|
+
} from "./index-hbc0t3ng.js";
|
|
19
|
+
import"./index-rx8r0cbe.js";
|
|
16
20
|
|
|
17
21
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
18
22
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -5,30 +5,35 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-3gmskeq2.js";
|
|
9
9
|
import"./index-j4yvgfhr.js";
|
|
10
10
|
import {
|
|
11
11
|
FileSys2
|
|
12
12
|
} from "./index-bns3wcpc.js";
|
|
13
13
|
import {
|
|
14
|
-
LibSource,
|
|
15
14
|
Executor,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./index-
|
|
15
|
+
LibSource,
|
|
16
|
+
WorkspaceExecutor
|
|
17
|
+
} from "./index-crtscw7c.js";
|
|
18
|
+
import {
|
|
19
|
+
AppExecutor2
|
|
20
|
+
} from "./index-b3h37zk3.js";
|
|
21
|
+
import"./index-1jzdengt.js";
|
|
22
|
+
import"./index-x2bj2vyz.js";
|
|
19
23
|
import {
|
|
20
24
|
GlobalConfig
|
|
21
|
-
} from "./index-
|
|
25
|
+
} from "./index-xjj0h74q.js";
|
|
22
26
|
import"./index-m9jj544v.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
27
|
+
import"./index-g2ebpf0y.js";
|
|
28
|
+
import"./index-xb1yh9km.js";
|
|
29
|
+
import"./index-vy50ec2q.js";
|
|
26
30
|
import {
|
|
27
31
|
SubspaceConfig
|
|
28
32
|
} from "./index-h7hehkw6.js";
|
|
29
33
|
import {
|
|
30
34
|
SlicePlanner
|
|
31
|
-
} from "./index-
|
|
35
|
+
} from "./index-3fbmyb2r.js";
|
|
36
|
+
import"./index-rx8r0cbe.js";
|
|
32
37
|
|
|
33
38
|
// pkgs/@akanjs/devkit/subspace.ts
|
|
34
39
|
import { mkdir as mkdir2 } from "fs/promises";
|
|
@@ -392,7 +397,7 @@ class Subspace {
|
|
|
392
397
|
return { commit, incoming };
|
|
393
398
|
}
|
|
394
399
|
async slice() {
|
|
395
|
-
const plans = await Promise.all(this.#declaration.apps.map(async (appName) => await new SlicePlanner(
|
|
400
|
+
const plans = await Promise.all(this.#declaration.apps.map(async (appName) => await new SlicePlanner(AppExecutor2.from(this.#workspace, appName)).plan()));
|
|
396
401
|
const libs = [...new Set(plans.flatMap((plan) => plan.libs))].sort();
|
|
397
402
|
const paths = [...this.#declaration.apps.map((app) => `apps/${app}`), ...libs.map((lib) => `libs/${lib}`)];
|
|
398
403
|
return { plans, libs, paths };
|
|
@@ -819,7 +824,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
819
824
|
if (!asked)
|
|
820
825
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
821
826
|
const { libs } = await subspace.slice();
|
|
822
|
-
const { CloudScript } = await import("./cloud.script-
|
|
827
|
+
const { CloudScript } = await import("./cloud.script-7j7w4m0w.js");
|
|
823
828
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
824
829
|
host,
|
|
825
830
|
workspaceId,
|
package/templates/lib/sig.ts
CHANGED
|
@@ -19,7 +19,6 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
|
|
|
19
19
|
return `
|
|
20
20
|
import { FetchClient, type FetchClientType } from "akanjs/fetch";
|
|
21
21
|
import { SignalRegistry, serverSignal${libs.length === 0 ? ", fetch as base" : ""} } from "akanjs/signal";
|
|
22
|
-
import { Err } from "./dict";
|
|
23
22
|
${libs.map((lib) => `import { fetch as ${lib} } from "@libs/${lib}/lib/sig";`).join("\n")}
|
|
24
23
|
|
|
25
24
|
${databaseModules.map((module) => `import * as ${module}Sig from "./${module}/${module}.signal";`).join("\n")}
|
|
@@ -37,9 +36,6 @@ ${serviceModules.map((module) => `export const ${module} = SignalRegistry.regist
|
|
|
37
36
|
export const fetchSignals = [${signalNames.join(", ")}] as const;
|
|
38
37
|
export type Fetch = FetchClientType<typeof fetchSignals>;
|
|
39
38
|
export const fetch = FetchClient.from(...fetchSignals) as unknown as Fetch;
|
|
40
|
-
// A failure restored from another process is this scope's own Err, so a server hop that rethrows one keeps its
|
|
41
|
-
// dictionary key and data instead of answering the original caller with Internal Server Error.
|
|
42
|
-
fetch.setErrorConstructor(Err);
|
|
43
39
|
|
|
44
40
|
export const getSerializedSignal = () => fetch.ownSerializedSignal
|
|
45
41
|
`;
|
|
@@ -18,7 +18,7 @@ ${
|
|
|
18
18
|
const dictionary = {};`
|
|
19
19
|
}
|
|
20
20
|
const pageProto = makePageProto<typeof dict>(dictionary);
|
|
21
|
-
const fetchProto = FetchClient.build<typeof signal>(cnst, getSerializedSignal()
|
|
21
|
+
const fetchProto = FetchClient.build<typeof signal>(cnst, getSerializedSignal());
|
|
22
22
|
export const runtime = registerClientRuntime({ ...pageProto, ...fetchProto }, { scope: ${JSON.stringify(scanInfo?.type ?? "lib")} });
|
|
23
23
|
|
|
24
24
|
export const { msg, Err, usePage, sig, fetch } = runtime;
|
|
@@ -4,26 +4,30 @@ 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-crtscw7c.js";
|
|
10
11
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./index-
|
|
12
|
+
AppExecutor2
|
|
13
|
+
} from "./index-b3h37zk3.js";
|
|
14
|
+
import"./index-1jzdengt.js";
|
|
15
|
+
import"./index-x2bj2vyz.js";
|
|
13
16
|
import {
|
|
14
17
|
GlobalConfig,
|
|
15
18
|
CloudApi
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-xjj0h74q.js";
|
|
17
20
|
import"./index-m9jj544v.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
+
import"./index-g2ebpf0y.js";
|
|
22
|
+
import"./index-xb1yh9km.js";
|
|
23
|
+
import"./index-vy50ec2q.js";
|
|
21
24
|
import {
|
|
22
25
|
TunnelShare2
|
|
23
|
-
} from "./index-
|
|
26
|
+
} from "./index-e599a0e4.js";
|
|
24
27
|
import {
|
|
25
28
|
writeClipboard
|
|
26
29
|
} from "./index-p6pbz9n5.js";
|
|
30
|
+
import"./index-rx8r0cbe.js";
|
|
27
31
|
|
|
28
32
|
// pkgs/@akanjs/cli/tunnel/tunnel.script.ts
|
|
29
33
|
import { select } from "@inquirer/prompts";
|
|
@@ -96,11 +100,11 @@ class TunnelScript extends script("tunnel", [TunnelRunner]) {
|
|
|
96
100
|
if (name && !appNames.includes(name))
|
|
97
101
|
throw new Error(`Unknown app: ${name}. Available: ${appNames.join(", ")}`);
|
|
98
102
|
if (name)
|
|
99
|
-
return
|
|
103
|
+
return AppExecutor2.from(workspace, name);
|
|
100
104
|
const only = appNames.length === 1 ? appNames[0] : null;
|
|
101
105
|
if (only)
|
|
102
|
-
return
|
|
103
|
-
return
|
|
106
|
+
return AppExecutor2.from(workspace, only);
|
|
107
|
+
return AppExecutor2.from(workspace, await select({ message: "Select the app to share", choices: appNames }));
|
|
104
108
|
}
|
|
105
109
|
async share(name, { workspace, host, port, ttl, devRoutes }) {
|
|
106
110
|
const app = await TunnelScript.resolveApp(workspace, name);
|
|
@@ -4,28 +4,31 @@ import {
|
|
|
4
4
|
script,
|
|
5
5
|
markCliErrorPrinted,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3gmskeq2.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./index-j4yvgfhr.js";
|
|
11
11
|
import"./index-bns3wcpc.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-crtscw7c.js";
|
|
13
|
+
import"./index-b3h37zk3.js";
|
|
14
|
+
import"./index-1jzdengt.js";
|
|
15
|
+
import"./index-x2bj2vyz.js";
|
|
13
16
|
import {
|
|
14
17
|
ApplicationRunner,
|
|
15
18
|
VerifyScope
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
19
|
+
} from "./index-k081wv4r.js";
|
|
20
|
+
import"./index-66jt3m30.js";
|
|
21
|
+
import"./index-g2ebpf0y.js";
|
|
22
|
+
import"./index-9w51aevd.js";
|
|
20
23
|
import"./index-m9jj544v.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
24
|
+
import"./index-xb1yh9km.js";
|
|
25
|
+
import"./index-vy50ec2q.js";
|
|
23
26
|
import"./index-62md4dwy.js";
|
|
24
27
|
import {
|
|
25
28
|
WorkspaceRunner
|
|
26
|
-
} from "./index-
|
|
29
|
+
} from "./index-c4k6e098.js";
|
|
27
30
|
import"./index-ygdbn9jn.js";
|
|
28
|
-
import"./index-
|
|
31
|
+
import"./index-j33b0n38.js";
|
|
29
32
|
import"./index-nd39rssn.js";
|
|
30
33
|
import"./index-hj6w4ka1.js";
|
|
31
34
|
import"./index-ny2k80mv.js";
|
|
@@ -33,8 +36,9 @@ import"./index-t4d0ckde.js";
|
|
|
33
36
|
import {
|
|
34
37
|
VerifyPipeline,
|
|
35
38
|
VerifyReport
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
39
|
+
} from "./index-vb8gd135.js";
|
|
40
|
+
import"./index-3fbmyb2r.js";
|
|
41
|
+
import"./index-rx8r0cbe.js";
|
|
38
42
|
|
|
39
43
|
// pkgs/@akanjs/cli/verify/verify.script.ts
|
|
40
44
|
import path from "path";
|
|
@@ -3,29 +3,33 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
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-
|
|
9
|
+
import"./index-crtscw7c.js";
|
|
10
|
+
import"./index-b3h37zk3.js";
|
|
11
|
+
import"./index-1jzdengt.js";
|
|
12
|
+
import"./index-x2bj2vyz.js";
|
|
10
13
|
import {
|
|
11
14
|
jsonText,
|
|
12
15
|
workflowStatus,
|
|
13
16
|
renderWorkflowPlan,
|
|
14
17
|
renderWorkflowApply,
|
|
15
18
|
renderWorkflowValidation
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-j2me5hm4.js";
|
|
17
20
|
import"./index-nd39rssn.js";
|
|
18
|
-
import"./index-
|
|
21
|
+
import"./index-5np8zpep.js";
|
|
19
22
|
import"./index-hj6w4ka1.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-8bkbexcy.js";
|
|
24
|
+
import"./index-2z8mxgs7.js";
|
|
25
|
+
import"./index-asfx2dhe.js";
|
|
26
|
+
import"./index-1b1p83vq.js";
|
|
27
|
+
import"./index-hbc0t3ng.js";
|
|
25
28
|
import"./index-t4d0ckde.js";
|
|
26
29
|
import {
|
|
27
30
|
WorkflowRunner
|
|
28
|
-
} from "./index-
|
|
31
|
+
} from "./index-6dwk5aej.js";
|
|
32
|
+
import"./index-rx8r0cbe.js";
|
|
29
33
|
|
|
30
34
|
// pkgs/@akanjs/cli/workflow/workflow.script.ts
|
|
31
35
|
import { Logger } from "akanjs/common";
|
|
@@ -4,14 +4,19 @@ import {
|
|
|
4
4
|
Workspace,
|
|
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-crtscw7c.js";
|
|
10
11
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
AppExecutor2
|
|
13
|
+
} from "./index-b3h37zk3.js";
|
|
14
|
+
import {
|
|
15
|
+
LibExecutor2
|
|
16
|
+
} from "./index-1jzdengt.js";
|
|
17
|
+
import {
|
|
18
|
+
PkgExecutor2
|
|
19
|
+
} from "./index-x2bj2vyz.js";
|
|
15
20
|
import {
|
|
16
21
|
npmRegistryFromEnv,
|
|
17
22
|
warnIgnoredNpmRegistry
|
|
@@ -20,60 +25,61 @@ import"./index-62md4dwy.js";
|
|
|
20
25
|
import {
|
|
21
26
|
defaultMaxDiagnostics,
|
|
22
27
|
WorkspaceRunner
|
|
23
|
-
} from "./index-
|
|
28
|
+
} from "./index-c4k6e098.js";
|
|
24
29
|
import"./index-ygdbn9jn.js";
|
|
25
|
-
import"./index-
|
|
30
|
+
import"./index-j33b0n38.js";
|
|
26
31
|
import"./index-nd39rssn.js";
|
|
27
32
|
import"./index-hj6w4ka1.js";
|
|
28
33
|
import"./index-t4d0ckde.js";
|
|
29
34
|
import"./index-35j83zkd.js";
|
|
30
35
|
import"./index-j6eeh5d7.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-5np8zpep.js";
|
|
37
|
+
import"./index-j2me5hm4.js";
|
|
38
|
+
import"./index-k081wv4r.js";
|
|
39
|
+
import"./index-66jt3m30.js";
|
|
40
|
+
import"./index-g2ebpf0y.js";
|
|
41
|
+
import"./index-9w51aevd.js";
|
|
37
42
|
import"./index-m9jj544v.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
43
|
+
import"./index-xb1yh9km.js";
|
|
44
|
+
import"./index-vy50ec2q.js";
|
|
45
|
+
import"./index-vb8gd135.js";
|
|
41
46
|
import {
|
|
42
47
|
AgentScript
|
|
43
|
-
} from "./index-
|
|
48
|
+
} from "./index-3fpv5v0t.js";
|
|
44
49
|
import {
|
|
45
50
|
LibraryScript
|
|
46
|
-
} from "./index-
|
|
51
|
+
} from "./index-37k5vshx.js";
|
|
47
52
|
import"./index-b4qq3rq0.js";
|
|
48
53
|
import {
|
|
49
54
|
ApplicationScript
|
|
50
|
-
} from "./index-
|
|
51
|
-
import"./index-
|
|
55
|
+
} from "./index-9yfssbgg.js";
|
|
56
|
+
import"./index-xjj0h74q.js";
|
|
52
57
|
import"./index-qd7xn2bk.js";
|
|
53
58
|
import"./index-grt0e6kk.js";
|
|
54
59
|
import {
|
|
55
60
|
PackageScript
|
|
56
|
-
} from "./index-
|
|
57
|
-
import"./index-
|
|
61
|
+
} from "./index-f5j09jnj.js";
|
|
62
|
+
import"./index-c0rnjeqn.js";
|
|
58
63
|
import {
|
|
59
64
|
CloudScript2
|
|
60
|
-
} from "./index-
|
|
61
|
-
import"./index-
|
|
65
|
+
} from "./index-hg8s6nae.js";
|
|
66
|
+
import"./index-bb7cm060.js";
|
|
62
67
|
import"./index-xgqz3kak.js";
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
68
|
+
import"./index-1b1p83vq.js";
|
|
69
|
+
import"./index-8bkbexcy.js";
|
|
70
|
+
import"./index-2z8mxgs7.js";
|
|
71
|
+
import"./index-asfx2dhe.js";
|
|
72
|
+
import"./index-hbc0t3ng.js";
|
|
73
|
+
import"./index-6dwk5aej.js";
|
|
69
74
|
import {
|
|
70
75
|
ContextScript
|
|
71
|
-
} from "./index-
|
|
72
|
-
import"./index-
|
|
76
|
+
} from "./index-3fn13v8p.js";
|
|
77
|
+
import"./index-3fbmyb2r.js";
|
|
73
78
|
import {
|
|
74
79
|
assertPlainName
|
|
75
80
|
} from "./index-va90m8nd.js";
|
|
76
81
|
import"./index-9bv479q5.js";
|
|
82
|
+
import"./index-rx8r0cbe.js";
|
|
77
83
|
|
|
78
84
|
// pkgs/@akanjs/cli/workspace/workspace.command.ts
|
|
79
85
|
import path from "path";
|
|
@@ -166,9 +172,9 @@ class WorkspaceScript extends script("workspace", [
|
|
|
166
172
|
AKAN_MACHINE_PUBLIC_KEY=${publicKey}`);
|
|
167
173
|
}
|
|
168
174
|
async lint(exec, workspace, { fix = true, maxDiagnostics } = {}) {
|
|
169
|
-
if (exec instanceof
|
|
175
|
+
if (exec instanceof AppExecutor2)
|
|
170
176
|
await this.applicationScript.sync(exec);
|
|
171
|
-
else if (exec instanceof
|
|
177
|
+
else if (exec instanceof LibExecutor2)
|
|
172
178
|
await this.libraryScript.syncLibrary(exec);
|
|
173
179
|
const spinner = workspace.spinning(`Linting${fix ? " with fix" : ""}...`);
|
|
174
180
|
try {
|
|
@@ -182,20 +188,20 @@ AKAN_MACHINE_PUBLIC_KEY=${publicKey}`);
|
|
|
182
188
|
async lintAll(workspace, { fix = true, maxDiagnostics } = {}) {
|
|
183
189
|
const [appNames, libNames, pkgNames] = await workspace.getExecs();
|
|
184
190
|
const options = { fix, maxDiagnostics };
|
|
185
|
-
await Promise.all(appNames.map((appName) => this.applicationScript.sync(
|
|
186
|
-
await Promise.all(libNames.map((libName) => this.libraryScript.syncLibrary(
|
|
191
|
+
await Promise.all(appNames.map((appName) => this.applicationScript.sync(AppExecutor2.from(workspace, appName))));
|
|
192
|
+
await Promise.all(libNames.map((libName) => this.libraryScript.syncLibrary(LibExecutor2.from(workspace, libName))));
|
|
187
193
|
await Promise.all([
|
|
188
|
-
...appNames.map((appName) => this.workspaceRunner.lint(
|
|
189
|
-
...libNames.map((libName) => this.workspaceRunner.lint(
|
|
190
|
-
...pkgNames.filter((pkgName) => pkgName !== "contract").map((pkgName) => this.workspaceRunner.lint(
|
|
194
|
+
...appNames.map((appName) => this.workspaceRunner.lint(AppExecutor2.from(workspace, appName), workspace, options)),
|
|
195
|
+
...libNames.map((libName) => this.workspaceRunner.lint(LibExecutor2.from(workspace, libName), workspace, options)),
|
|
196
|
+
...pkgNames.filter((pkgName) => pkgName !== "contract").map((pkgName) => this.workspaceRunner.lint(PkgExecutor2.from(workspace, pkgName), workspace, options))
|
|
191
197
|
]);
|
|
192
198
|
}
|
|
193
199
|
async syncAll(workspace) {
|
|
194
200
|
const [appNames, libNames] = await workspace.getExecs();
|
|
195
201
|
for (const libName of libNames)
|
|
196
|
-
await this.libraryScript.syncLibrary(
|
|
202
|
+
await this.libraryScript.syncLibrary(LibExecutor2.from(workspace, libName));
|
|
197
203
|
for (const appName of appNames)
|
|
198
|
-
await this.applicationScript.sync(
|
|
204
|
+
await this.applicationScript.sync(AppExecutor2.from(workspace, appName));
|
|
199
205
|
}
|
|
200
206
|
async init(devProjectId, workspace, { host } = {}) {
|
|
201
207
|
const [bunfigExists, packageJsonExists, tsconfigExists] = await Promise.all([
|
package/TunnelShare-44er4e29.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
TunnelShare2
|
|
4
|
-
} from "./index-xy70tcv4.js";
|
|
5
|
-
import"./index-7ky4brfy.js";
|
|
6
|
-
import"./index-dsg50er9.js";
|
|
7
|
-
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-z43wddce.js";
|
|
9
|
-
import"./index-9xh4zvw3.js";
|
|
10
|
-
import"./index-sq9d0jhj.js";
|
|
11
|
-
import"./index-j4yvgfhr.js";
|
|
12
|
-
import"./index-bns3wcpc.js";
|
|
13
|
-
export {
|
|
14
|
-
TunnelShare2 as TunnelShare
|
|
15
|
-
};
|
package/cloud.script-4p4y0s7e.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CloudScript2
|
|
4
|
-
} from "./index-hhagjhkh.js";
|
|
5
|
-
import"./index-p4htjyvk.js";
|
|
6
|
-
import"./index-5jwx4bf2.js";
|
|
7
|
-
import"./index-t8h09yjs.js";
|
|
8
|
-
import"./index-6fnrhpn1.js";
|
|
9
|
-
import"./index-7ky4brfy.js";
|
|
10
|
-
import"./index-ny2k80mv.js";
|
|
11
|
-
import"./index-4k9nv4m3.js";
|
|
12
|
-
import"./index-frvjq1rd.js";
|
|
13
|
-
import"./index-e5f6czck.js";
|
|
14
|
-
import"./index-6z57w95f.js";
|
|
15
|
-
import"./index-dsg50er9.js";
|
|
16
|
-
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-23d8gw08.js";
|
|
18
|
-
import"./index-9bv479q5.js";
|
|
19
|
-
import"./index-b4qq3rq0.js";
|
|
20
|
-
import"./index-grt0e6kk.js";
|
|
21
|
-
import"./index-nd39rssn.js";
|
|
22
|
-
import"./index-z43wddce.js";
|
|
23
|
-
import"./index-41mfhgq0.js";
|
|
24
|
-
import"./index-9xh4zvw3.js";
|
|
25
|
-
import"./index-sq9d0jhj.js";
|
|
26
|
-
import"./index-j4yvgfhr.js";
|
|
27
|
-
import"./index-qd7xn2bk.js";
|
|
28
|
-
import"./index-bns3wcpc.js";
|
|
29
|
-
export {
|
|
30
|
-
CloudScript2 as CloudScript
|
|
31
|
-
};
|