@akanjs/cli 3.1.1-rc.6 → 3.1.1-rc.8
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-y6ppa10x.js → CodeAgent-3sy7kjgj.js} +2 -2
- package/{CodeTui-dy37zz3j.js → CodeTui-rqxarxsn.js} +1 -1
- package/{TunnelShare-mnn0jxnp.js → TunnelShare-2ef94kha.js} +3 -3
- package/akanCode.js +2 -2
- package/{application.command-fdghyjfj.js → application.command-14xsthcr.js} +3 -3
- package/{cloud.command-eyxwxnrn.js → cloud.command-rmw1kcf1.js} +15 -10
- package/{cloud.script-c9f92bev.js → cloud.script-v1ysyerg.js} +6 -6
- package/{code.command-4kqbrjt9.js → code.command-719k3e9q.js} +4 -4
- package/{context.command-h56yvjay.js → context.command-c4t4z1vy.js} +4 -4
- package/{context.runner-cf11819z.js → context.runner-qb15sjf8.js} +3 -3
- package/{index-jhbkzc8c.js → index-0p37cz91.js} +42 -1
- package/{index-ds2tmxgx.js → index-5max10jx.js} +533 -137
- package/{index-bksa6cqh.js → index-5phjb48k.js} +3 -3
- package/{index-krz4bcg5.js → index-8ap5z1n5.js} +1 -1
- package/{index-kr9vpvdn.js → index-8w76g4rm.js} +4 -4
- package/{index-zz4vrw85.js → index-hmmv2cah.js} +1 -1
- package/{index-44hh6bx2.js → index-mdqr41sp.js} +53 -6
- package/{index-e9b3zh22.js → index-myc22sgv.js} +65 -18
- package/{index-12ny6e0x.js → index-pa3c2mb8.js} +11 -9
- package/{index-jg2xev75.js → index-qd5km521.js} +3 -97
- package/{index-secyhsjs.js → index-zrte51fn.js} +1 -1
- package/index.js +8 -8
- package/{localRegistry.command-bajag7gm.js → localRegistry.command-2t3fghje.js} +5 -5
- package/package.json +2 -2
- package/{subspace.command-dzpfbc99.js → subspace.command-kvxmyxtf.js} +3 -3
- package/{tunnel.command-cfw6f0vz.js → tunnel.command-kxv0ddmp.js} +3 -3
- package/{workspace.command-5rc8f0wt.js → workspace.command-tsc99yec.js} +8 -8
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5bc34f19ccee615879fdbf1e588c2c52ebd7a1c93f6a04638c896b62af49fe67
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
TunnelShare2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-hmmv2cah.js";
|
|
5
|
+
import"./index-myc22sgv.js";
|
|
6
|
+
import"./index-5max10jx.js";
|
|
7
7
|
import"./index-m9jj544v.js";
|
|
8
8
|
import"./index-xb8809yb.js";
|
|
9
9
|
import"./index-0fz95kxe.js";
|
package/akanCode.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
CodeMailbox2,
|
|
29
29
|
CodeSessionFork2,
|
|
30
30
|
CodeAgent2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-5phjb48k.js";
|
|
32
32
|
import {
|
|
33
33
|
akanCodeDefaultModel2,
|
|
34
34
|
akanCodeModel2,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
SubagentPool2,
|
|
41
41
|
akanCodePaths2,
|
|
42
42
|
AkanCodeCompaction2
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-8ap5z1n5.js";
|
|
44
44
|
import"./index-7md2g9vw.js";
|
|
45
45
|
import {
|
|
46
46
|
CodeAgentRpcHost2
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
import"./index-52w0fvh8.js";
|
|
12
12
|
import"./index-wcej7g4z.js";
|
|
13
13
|
import"./index-5nd1wtkv.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-5max10jx.js";
|
|
15
|
+
import"./index-qd5km521.js";
|
|
15
16
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-ds2tmxgx.js";
|
|
17
17
|
import"./index-xb8809yb.js";
|
|
18
18
|
import"./index-0fz95kxe.js";
|
|
19
19
|
import"./index-2xcc2ax5.js";
|
|
20
20
|
import {
|
|
21
21
|
ApplicationScript
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-pa3c2mb8.js";
|
|
23
23
|
import"./index-7md2g9vw.js";
|
|
24
24
|
import {
|
|
25
25
|
writeOption,
|
|
@@ -6,24 +6,24 @@ import {
|
|
|
6
6
|
} from "./index-3wypz6xj.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
8
|
import"./index-wcej7g4z.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-myc22sgv.js";
|
|
10
10
|
import {
|
|
11
11
|
PlatformTestRun
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-0p37cz91.js";
|
|
13
|
+
import"./index-5max10jx.js";
|
|
14
|
+
import"./index-qd5km521.js";
|
|
14
15
|
import"./index-m9jj544v.js";
|
|
15
|
-
import"./index-ds2tmxgx.js";
|
|
16
16
|
import"./index-xb8809yb.js";
|
|
17
17
|
import"./index-0fz95kxe.js";
|
|
18
18
|
import"./index-5nd1wtkv.js";
|
|
19
19
|
import"./index-2xcc2ax5.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-pa3c2mb8.js";
|
|
21
21
|
import"./index-7md2g9vw.js";
|
|
22
22
|
import"./index-tvehn2sp.js";
|
|
23
23
|
import"./index-42j4a8zq.js";
|
|
24
24
|
import {
|
|
25
25
|
CloudScript2
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-mdqr41sp.js";
|
|
27
27
|
import {
|
|
28
28
|
writeOption,
|
|
29
29
|
oneNativeTargetOption,
|
|
@@ -96,10 +96,14 @@ class CloudCommand extends command("cloud", [CloudScript2], ({ public: target })
|
|
|
96
96
|
await this.cloudScript.update(workspace, tag, { registryUrl: resolveRegistryUrl(registry) });
|
|
97
97
|
}),
|
|
98
98
|
pushUpdate: target({
|
|
99
|
-
desc: "Pack an over-the-air update of a phone's web bundle, or take the folder `akan pack-update` wrote, and upload it to the Akan Cloud project, which signs and publishes it. Exits 2 when the pack needs a new store build or the project rejects it, 1 on any other failure"
|
|
99
|
+
desc: "Pack an over-the-air update of a phone's web bundle, or take the folder `akan pack-update` wrote, and upload it to the Akan Cloud project, which signs and publishes it; or upload the desktop release `akan publish-update` signed, as it is. Exits 2 when the pack needs a new store build or the project rejects it, 1 on any other failure"
|
|
100
100
|
}).with(App).option("platform", String, {
|
|
101
|
-
enum: ["ios", "android"],
|
|
102
|
-
desc: "the app it updates (with --pack, default: the pack's)",
|
|
101
|
+
enum: ["ios", "android", "desktop", "macos", "windows", "linux"],
|
|
102
|
+
desc: "the app it updates; desktop is this computer's OS (with --pack, default: the pack's)",
|
|
103
|
+
nullable: true
|
|
104
|
+
}).option("arch", String, {
|
|
105
|
+
desc: "desktop: the CPU of the release, arm64 or x64 (default this computer's)",
|
|
106
|
+
enum: ["arm64", "x64"],
|
|
103
107
|
nullable: true
|
|
104
108
|
}).option("target", String, {
|
|
105
109
|
desc: "native target name, a key of native.targets (default: the only one; with --pack, the pack's)",
|
|
@@ -116,9 +120,10 @@ class CloudCommand extends command("cloud", [CloudScript2], ({ public: target })
|
|
|
116
120
|
flag: "d",
|
|
117
121
|
desc: "a folder `akan pack-update` wrote, uploaded instead of packing; --platform, --target and --env must match it",
|
|
118
122
|
nullable: true
|
|
119
|
-
}).option("publicEnv", String, publicEnvOption("the update")).with(Workspace).exec(async function(app, platform, target, env, channel, notes, subspace, host, write, allowLocalRelease, pack, publicEnv, workspace) {
|
|
123
|
+
}).option("publicEnv", String, publicEnvOption("the update")).with(Workspace).exec(async function(app, platform, arch, target, env, channel, notes, subspace, host, write, allowLocalRelease, pack, publicEnv, workspace) {
|
|
120
124
|
await this.cloudScript.pushUpdate(workspace, app, {
|
|
121
125
|
platform,
|
|
126
|
+
arch,
|
|
122
127
|
target,
|
|
123
128
|
env,
|
|
124
129
|
channel,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-mdqr41sp.js";
|
|
5
|
+
import"./index-0p37cz91.js";
|
|
6
|
+
import"./index-pa3c2mb8.js";
|
|
7
7
|
import"./index-pcwzkdqb.js";
|
|
8
8
|
import"./index-2xcc2ax5.js";
|
|
9
9
|
import"./index-42j4a8zq.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-qd5km521.js";
|
|
11
|
+
import"./index-myc22sgv.js";
|
|
12
|
+
import"./index-5max10jx.js";
|
|
13
13
|
import"./index-m9jj544v.js";
|
|
14
14
|
import"./index-3wypz6xj.js";
|
|
15
15
|
import"./index-7md2g9vw.js";
|
|
@@ -19,7 +19,7 @@ class CodeRunner extends runner("code") {
|
|
|
19
19
|
async serve(options, listen) {
|
|
20
20
|
await import("./consoleToStderr-h5bryj94.js");
|
|
21
21
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
22
|
-
import("./CodeAgent-
|
|
22
|
+
import("./CodeAgent-3sy7kjgj.js"),
|
|
23
23
|
import("./CodeAgentRpcHost-9g27hmer.js"),
|
|
24
24
|
import("./CodeAgentRpcListener-7p7z5dd7.js")
|
|
25
25
|
]);
|
|
@@ -34,8 +34,8 @@ class CodeRunner extends runner("code") {
|
|
|
34
34
|
}
|
|
35
35
|
async tui(options, seed) {
|
|
36
36
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
37
|
-
import("./CodeAgent-
|
|
38
|
-
import("./CodeTui-
|
|
37
|
+
import("./CodeAgent-3sy7kjgj.js"),
|
|
38
|
+
import("./CodeTui-rqxarxsn.js")
|
|
39
39
|
]);
|
|
40
40
|
const agentOptions = await CodeRunner.#agentOptions(options, false);
|
|
41
41
|
let resume = options.resume;
|
|
@@ -67,7 +67,7 @@ class CodeRunner extends runner("code") {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
async run(prompt, options) {
|
|
70
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
70
|
+
const { CodeAgent } = await import("./CodeAgent-3sy7kjgj.js");
|
|
71
71
|
const agent = await CodeAgent.create(await CodeRunner.#agentOptions(options, false));
|
|
72
72
|
const printer = new CodeAgentStreamPrinter2({ json: options.json, thinking: options.thinking });
|
|
73
73
|
agent.on((event) => printer.print(event));
|
|
@@ -8,10 +8,10 @@ import"./index-wcej7g4z.js";
|
|
|
8
8
|
import"./index-hj6w4ka1.js";
|
|
9
9
|
import"./index-xjf5j657.js";
|
|
10
10
|
import"./index-31es1yev.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-8w76g4rm.js";
|
|
12
|
+
import"./index-5max10jx.js";
|
|
13
|
+
import"./index-qd5km521.js";
|
|
13
14
|
import"./index-m9jj544v.js";
|
|
14
|
-
import"./index-ds2tmxgx.js";
|
|
15
15
|
import"./index-xb8809yb.js";
|
|
16
16
|
import"./index-0fz95kxe.js";
|
|
17
17
|
import"./index-zzvvc845.js";
|
|
@@ -23,7 +23,7 @@ import"./index-skk9zc1x.js";
|
|
|
23
23
|
import"./index-b70zct19.js";
|
|
24
24
|
import {
|
|
25
25
|
ContextScript
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-zrte51fn.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
29
29
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ContextRunner2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-8w76g4rm.js";
|
|
5
5
|
import"./index-b70zct19.js";
|
|
6
6
|
import"./index-skk9zc1x.js";
|
|
7
7
|
import"./index-74tjjsnc.js";
|
|
8
8
|
import"./index-j9vyj3dj.js";
|
|
9
9
|
import"./index-hmt54t45.js";
|
|
10
10
|
import"./index-905qdgqp.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-qd5km521.js";
|
|
12
|
+
import"./index-5max10jx.js";
|
|
13
13
|
import"./index-m9jj544v.js";
|
|
14
14
|
import"./index-31es1yev.js";
|
|
15
15
|
import"./index-xjf5j657.js";
|
|
@@ -6,11 +6,17 @@ import {
|
|
|
6
6
|
CloudApi,
|
|
7
7
|
CloudUpdates,
|
|
8
8
|
PipelineSecrets
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-myc22sgv.js";
|
|
10
|
+
import {
|
|
11
|
+
resolveMobileTargets
|
|
12
|
+
} from "./index-m9jj544v.js";
|
|
10
13
|
import {
|
|
11
14
|
WorkspaceExecutor,
|
|
12
15
|
AppExecutor
|
|
13
16
|
} from "./index-wcej7g4z.js";
|
|
17
|
+
import {
|
|
18
|
+
NativeApp
|
|
19
|
+
} from "./index-5max10jx.js";
|
|
14
20
|
import {
|
|
15
21
|
runner,
|
|
16
22
|
assertPromptable
|
|
@@ -1242,6 +1248,41 @@ ${run.format(results)}
|
|
|
1242
1248
|
async pushUpdate(cloudApi, devProjectId, pack, options) {
|
|
1243
1249
|
return await new CloudUpdates(cloudApi, devProjectId).push(pack, options);
|
|
1244
1250
|
}
|
|
1251
|
+
async readRelease(app, {
|
|
1252
|
+
platform,
|
|
1253
|
+
arch,
|
|
1254
|
+
target,
|
|
1255
|
+
env,
|
|
1256
|
+
channel
|
|
1257
|
+
}) {
|
|
1258
|
+
const targets = await resolveMobileTargets(app, target ?? undefined);
|
|
1259
|
+
const [mobileTarget] = targets;
|
|
1260
|
+
if (!mobileTarget || targets.length > 1)
|
|
1261
|
+
throw new Error("push-update uploads one native target's release at a time; pass --target <name>.");
|
|
1262
|
+
const { release, url, exeName } = await new NativeApp(app, mobileTarget, env).publishedRelease(platform, {
|
|
1263
|
+
arch,
|
|
1264
|
+
channel
|
|
1265
|
+
});
|
|
1266
|
+
const { signer, unread } = await release.signer({ exeName });
|
|
1267
|
+
if (unread)
|
|
1268
|
+
app.logger.warn(`release.json names no signer: ${unread}.`);
|
|
1269
|
+
return { release, url, signer, target: mobileTarget.name };
|
|
1270
|
+
}
|
|
1271
|
+
async pushRelease(cloudApi, devProjectId, app, {
|
|
1272
|
+
release,
|
|
1273
|
+
url,
|
|
1274
|
+
signer,
|
|
1275
|
+
target,
|
|
1276
|
+
notes
|
|
1277
|
+
}) {
|
|
1278
|
+
return await new CloudUpdates(cloudApi, devProjectId).pushRelease(release, {
|
|
1279
|
+
appName: app.name,
|
|
1280
|
+
target,
|
|
1281
|
+
notes,
|
|
1282
|
+
signer,
|
|
1283
|
+
url
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1245
1286
|
async registerBinary(cloudApi, devProjectId, app, pack, options) {
|
|
1246
1287
|
return await new CloudUpdates(cloudApi, devProjectId).registerBinary(app, pack, options);
|
|
1247
1288
|
}
|