@akanjs/cli 3.0.0-beta.21 → 3.0.0-beta.23
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-q2m47rqp.js → CodeAgent-0dh9fzzg.js} +2 -2
- package/{CodeTui-pdqhc3sn.js → CodeTui-drwdvwg9.js} +1 -1
- package/akanCode.js +2 -2
- package/{application.command-7gweenv7.js → application.command-b6rck8d6.js} +2 -2
- package/{applicationBuildRunner-38exmejd.js → applicationBuildRunner-vh74vrhg.js} +1 -1
- package/buildBatch.proc.js +1 -1
- package/{cloud.command-bhztw7c2.js → cloud.command-gwdypy7k.js} +3 -3
- package/{cloud.script-aabyhgba.js → cloud.script-at2beffs.js} +3 -3
- package/{code.command-6s8c0k91.js → code.command-1jgk14tc.js} +4 -4
- package/{context.command-phmgywt2.js → context.command-4vpjmg22.js} +3 -3
- package/{context.runner-yvyw5g2d.js → context.runner-ehjs419v.js} +2 -2
- package/guidelines/queryRule/queryRule.instruction.md +4 -0
- package/{index-7cqjvraf.js → index-2gh9sndr.js} +1 -1
- package/{index-aadpbnt2.js → index-776sswhv.js} +4 -1
- package/{index-v5eayqqw.js → index-aaz7n8s2.js} +3 -3
- package/{index-d0arnrm8.js → index-hb8sgepf.js} +1 -1
- package/{index-z50k041j.js → index-jg5e15db.js} +2 -2
- package/{index-8kb5p54p.js → index-jn07hxrr.js} +1 -1
- package/{index-dg97qp24.js → index-vj1cwwy5.js} +1 -1
- package/{index-hr5n7t4x.js → index-ys6f0bvh.js} +7 -1
- package/index.js +7 -7
- package/{localRegistry.command-ajb9n87j.js → localRegistry.command-cxvgn7fr.js} +2 -2
- package/package.json +2 -2
- package/{subspace.command-ps71ynp6.js → subspace.command-0cep72ce.js} +1 -1
- package/{workspace.command-tmdqkrh0.js → workspace.command-axwscbnn.js} +5 -5
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6c23abacd61473a71e06be68f20bc1c445facb2e3b329397668341f7273c928c
|
package/akanCode.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
CodeMailbox2,
|
|
29
29
|
CodeSessionFork2,
|
|
30
30
|
CodeAgent2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-aaz7n8s2.js";
|
|
32
32
|
import {
|
|
33
33
|
akanCodeDefaultModel2,
|
|
34
34
|
akanCodeModel2,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
SubagentPool2,
|
|
41
41
|
akanCodePaths2
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-hb8sgepf.js";
|
|
43
43
|
import"./index-7md2g9vw.js";
|
|
44
44
|
import {
|
|
45
45
|
CodeAgentRpcHost2
|
|
@@ -11,12 +11,12 @@ import"./index-5b6tavv3.js";
|
|
|
11
11
|
import"./index-ga6hygxr.js";
|
|
12
12
|
import {
|
|
13
13
|
getMobileTargetChoices
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-ys6f0bvh.js";
|
|
15
15
|
import"./index-khpfpcsd.js";
|
|
16
16
|
import"./index-1db2cw0y.js";
|
|
17
17
|
import {
|
|
18
18
|
ApplicationScript
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-jg5e15db.js";
|
|
20
20
|
import"./index-7md2g9vw.js";
|
|
21
21
|
import"./index-q44jbw48.js";
|
|
22
22
|
|
package/buildBatch.proc.js
CHANGED
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "./index-yjkte9aj.js";
|
|
14
14
|
import"./index-khpfpcsd.js";
|
|
15
15
|
import"./index-1db2cw0y.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-jg5e15db.js";
|
|
17
|
+
import"./index-ys6f0bvh.js";
|
|
18
18
|
import"./index-7md2g9vw.js";
|
|
19
19
|
import"./index-3t7g9e4r.js";
|
|
20
20
|
import"./index-mgfx3mfs.js";
|
|
21
21
|
import {
|
|
22
22
|
CloudScript2
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-jn07hxrr.js";
|
|
24
24
|
import"./index-q44jbw48.js";
|
|
25
25
|
|
|
26
26
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-jn07hxrr.js";
|
|
5
5
|
import"./index-yjkte9aj.js";
|
|
6
6
|
import"./index-mgfx3mfs.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-jg5e15db.js";
|
|
8
8
|
import"./index-q44jbw48.js";
|
|
9
9
|
import"./index-1db2cw0y.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-ys6f0bvh.js";
|
|
11
11
|
import"./index-22d57v4c.js";
|
|
12
12
|
import"./index-rmcw8yc8.js";
|
|
13
13
|
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-0dh9fzzg.js"),
|
|
23
23
|
import("./CodeAgentRpcHost-p7h6n2hp.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-0dh9fzzg.js"),
|
|
38
|
+
import("./CodeTui-drwdvwg9.js")
|
|
39
39
|
]);
|
|
40
40
|
const agentOptions = await CodeRunner.#agentOptions(options, false);
|
|
41
41
|
let resume = options.resume;
|
|
@@ -60,7 +60,7 @@ class CodeRunner extends runner("code") {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
async run(prompt, options) {
|
|
63
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
63
|
+
const { CodeAgent } = await import("./CodeAgent-0dh9fzzg.js");
|
|
64
64
|
const agent = await CodeAgent.create(await CodeRunner.#agentOptions(options, false));
|
|
65
65
|
const printer = new CodeAgentStreamPrinter2({ json: options.json, thinking: options.thinking });
|
|
66
66
|
agent.on((event) => printer.print(event));
|
|
@@ -8,8 +8,8 @@ import"./index-ga6hygxr.js";
|
|
|
8
8
|
import"./index-hj6w4ka1.js";
|
|
9
9
|
import"./index-yy4s1j72.js";
|
|
10
10
|
import"./index-9629w7ns.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-vj1cwwy5.js";
|
|
12
|
+
import"./index-ys6f0bvh.js";
|
|
13
13
|
import"./index-0bq14vr1.js";
|
|
14
14
|
import"./index-ya5qbmyg.js";
|
|
15
15
|
import"./index-rnt66vym.js";
|
|
@@ -19,7 +19,7 @@ import"./index-pp54p5zk.js";
|
|
|
19
19
|
import"./index-m0ms3n1c.js";
|
|
20
20
|
import {
|
|
21
21
|
ContextScript
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-2gh9sndr.js";
|
|
23
23
|
|
|
24
24
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
25
25
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ContextRunner2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vj1cwwy5.js";
|
|
5
5
|
import"./index-m0ms3n1c.js";
|
|
6
6
|
import"./index-pp54p5zk.js";
|
|
7
7
|
import"./index-wp43xrjv.js";
|
|
8
8
|
import"./index-ya5qbmyg.js";
|
|
9
9
|
import"./index-tgjy8xf3.js";
|
|
10
10
|
import"./index-rnt66vym.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-ys6f0bvh.js";
|
|
12
12
|
import"./index-9629w7ns.js";
|
|
13
13
|
import"./index-yy4s1j72.js";
|
|
14
14
|
import"./index-0bq14vr1.js";
|
|
@@ -31,6 +31,10 @@ with it. `conventions` carries the invariants — this is the full contract behi
|
|
|
31
31
|
A model with none renders ids and says so in the picker.
|
|
32
32
|
- A slice's `exec` returns a `QueryOf` (an opaque query descriptor, `pkgs/akanjs/constant/types.ts`); you **cannot** chain `.sort()`/`.limit()` on it.
|
|
33
33
|
- Apply ordering/paging via the store `init` fetch option instead: `initX(..., { sort, page, limit })` (`pkgs/akanjs/fetch/fetchType/sliceFetch.type.ts`).
|
|
34
|
+
- **Every sort ends with `id`, in the direction of its last key, and a missing value sorts below every other** —
|
|
35
|
+
first ascending, last descending, in every database mode and in the client placing a live row. Rows the declared
|
|
36
|
+
keys tie on (a midpoint priority dragged into one gap until the float runs out, two rows saved in one millisecond)
|
|
37
|
+
therefore keep one order across `loadMoreOf<Model>()` pages and live insertions.
|
|
34
38
|
- **A slice list is either one window or an accumulated one, and the store says which.** `setPageOf<Model>` swaps
|
|
35
39
|
the window and `pageOf<Model>` names it; `loadMoreOf<Model>()` appends the rows *after* the ones already loaded
|
|
36
40
|
and takes no page number, because in an accumulated list no page number names anything. It skips by
|
|
@@ -1976,6 +1976,9 @@ class SsrBaseArtifactBuilder {
|
|
|
1976
1976
|
this.#artifactDir = `${command === "build" ? app.dist.cwdPath : app.cwdPath}/.akan/artifact`;
|
|
1977
1977
|
this.#absArtifactDir = path12.resolve(this.#artifactDir);
|
|
1978
1978
|
}
|
|
1979
|
+
static servedWeb(command, web) {
|
|
1980
|
+
return command === "start" ? { ssr: true, csr: true } : web;
|
|
1981
|
+
}
|
|
1979
1982
|
async build() {
|
|
1980
1983
|
const akanConfig = await this.#app.getConfig();
|
|
1981
1984
|
const { rscClientUrl, rscRuntimeClientManifest, rscRuntimeSsrManifest, vendorMap } = await this.#buildRuntimeClientEntries();
|
|
@@ -2004,7 +2007,7 @@ class SsrBaseArtifactBuilder {
|
|
|
2004
2007
|
branches: [...akanConfig.branches],
|
|
2005
2008
|
i18n: akanConfig.i18n,
|
|
2006
2009
|
imageConfig: akanConfig.images,
|
|
2007
|
-
web: akanConfig.web,
|
|
2010
|
+
web: SsrBaseArtifactBuilder.servedWeb(this.#command, akanConfig.web),
|
|
2008
2011
|
deepLinkAssociations: Object.values(akanConfig.mobile.targets).filter((target) => (target.deepLinks?.domains?.length ?? 0) > 0).map((target) => ({
|
|
2009
2012
|
targetName: target.name,
|
|
2010
2013
|
appId: target.appId,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
akanCodePaths2,
|
|
5
5
|
McpServerConfig,
|
|
6
6
|
McpSignIn
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-hb8sgepf.js";
|
|
8
8
|
import {
|
|
9
9
|
stripAnsi
|
|
10
10
|
} from "./index-7md2g9vw.js";
|
|
@@ -511,7 +511,7 @@ class AkanToolPack2 {
|
|
|
511
511
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
512
512
|
}
|
|
513
513
|
async names() {
|
|
514
|
-
const { ContextRunner } = await import("./context.runner-
|
|
514
|
+
const { ContextRunner } = await import("./context.runner-ehjs419v.js");
|
|
515
515
|
return [
|
|
516
516
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
517
517
|
AkanToolPack2.verifyToolName
|
|
@@ -519,7 +519,7 @@ class AkanToolPack2 {
|
|
|
519
519
|
}
|
|
520
520
|
static verifyToolName = "akan_verify";
|
|
521
521
|
async#register(pi) {
|
|
522
|
-
const { ContextRunner } = await import("./context.runner-
|
|
522
|
+
const { ContextRunner } = await import("./context.runner-ehjs419v.js");
|
|
523
523
|
const runner = new ContextRunner;
|
|
524
524
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
525
525
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|
|
@@ -116,7 +116,7 @@ class SubagentPool2 {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
async#run(id, kind, prompt, signal) {
|
|
119
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
119
|
+
const { CodeAgent } = await import("./CodeAgent-0dh9fzzg.js");
|
|
120
120
|
const budget = this.#options.parent.tools.subagent;
|
|
121
121
|
const child = SubagentPool2.childOf(this.#options.parent, kind);
|
|
122
122
|
const agent = await CodeAgent.create({
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
resolveMobileTargets,
|
|
51
51
|
NativeApp
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-ys6f0bvh.js";
|
|
53
53
|
import {
|
|
54
54
|
stripAnsi
|
|
55
55
|
} from "./index-7md2g9vw.js";
|
|
@@ -1696,7 +1696,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
|
|
|
1696
1696
|
|
|
1697
1697
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
1698
1698
|
import { Logger as Logger3 } from "akanjs/common";
|
|
1699
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
1699
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-vh74vrhg.js")).ApplicationBuildRunner;
|
|
1700
1700
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
1701
1701
|
|
|
1702
1702
|
class ApplicationRunner extends runner("application") {
|
|
@@ -146,7 +146,13 @@ class NativeConfig {
|
|
|
146
146
|
photoUsageDescription: "$(PRODUCT_NAME) requires access to the photo library to take photos."
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
contacts: {
|
|
149
|
+
contacts: {
|
|
150
|
+
permission: "contacts",
|
|
151
|
+
plugins: ["contacts"],
|
|
152
|
+
usageDescriptions: {
|
|
153
|
+
contactsUsageDescription: "$(PRODUCT_NAME) requires access to the contacts to find people you know."
|
|
154
|
+
}
|
|
155
|
+
},
|
|
150
156
|
location: {
|
|
151
157
|
permission: "location",
|
|
152
158
|
plugins: ["geolocation"],
|
package/index.js
CHANGED
|
@@ -13,18 +13,18 @@ import path from "path";
|
|
|
13
13
|
|
|
14
14
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
15
15
|
var commandModules = {
|
|
16
|
-
workspace: async () => (await import("./workspace.command-
|
|
16
|
+
workspace: async () => (await import("./workspace.command-axwscbnn.js")).WorkspaceCommand,
|
|
17
17
|
agent: async () => (await import("./agent.command-ttn09rx3.js")).AgentCommand,
|
|
18
|
-
code: async () => (await import("./code.command-
|
|
19
|
-
application: async () => (await import("./application.command-
|
|
18
|
+
code: async () => (await import("./code.command-1jgk14tc.js")).CodeCommand,
|
|
19
|
+
application: async () => (await import("./application.command-b6rck8d6.js")).ApplicationCommand,
|
|
20
20
|
library: async () => (await import("./library.command-ccb1cp92.js")).LibraryCommand,
|
|
21
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
21
|
+
localRegistry: async () => (await import("./localRegistry.command-cxvgn7fr.js")).LocalRegistryCommand,
|
|
22
22
|
package: async () => (await import("./package.command-e6ntvpez.js")).PackageCommand,
|
|
23
23
|
module: async () => (await import("./module.command-5k6h407d.js")).ModuleCommand,
|
|
24
24
|
page: async () => (await import("./page.command-v4f90wb8.js")).PageCommand,
|
|
25
|
-
context: async () => (await import("./context.command-
|
|
26
|
-
cloud: async () => (await import("./cloud.command-
|
|
27
|
-
subspace: async () => (await import("./subspace.command-
|
|
25
|
+
context: async () => (await import("./context.command-4vpjmg22.js")).ContextCommand,
|
|
26
|
+
cloud: async () => (await import("./cloud.command-gwdypy7k.js")).CloudCommand,
|
|
27
|
+
subspace: async () => (await import("./subspace.command-0cep72ce.js")).SubspaceCommand,
|
|
28
28
|
guideline: async () => (await import("./guideline.command-7jk47fgq.js")).GuidelineCommand,
|
|
29
29
|
scalar: async () => (await import("./scalar.command-7ezrac2b.js")).ScalarCommand,
|
|
30
30
|
primitive: async () => (await import("./primitive.command-g6km57q5.js")).PrimitiveCommand,
|
|
@@ -13,8 +13,8 @@ import"./index-khpfpcsd.js";
|
|
|
13
13
|
import"./index-1db2cw0y.js";
|
|
14
14
|
import {
|
|
15
15
|
ApplicationScript
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-jg5e15db.js";
|
|
17
|
+
import"./index-ys6f0bvh.js";
|
|
18
18
|
import"./index-7md2g9vw.js";
|
|
19
19
|
import"./index-22d57v4c.js";
|
|
20
20
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.23",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "0.86.1",
|
|
40
40
|
"@inquirer/prompts": "^8.4.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.0",
|
|
42
|
-
"akanjs": "3.0.0-beta.
|
|
42
|
+
"akanjs": "3.0.0-beta.23",
|
|
43
43
|
"chalk": "^5.6.2",
|
|
44
44
|
"commander": "^14.0.3",
|
|
45
45
|
"dayjs": "^1.11.20",
|
|
@@ -716,7 +716,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
716
716
|
if (!asked)
|
|
717
717
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
718
718
|
const { libs } = await subspace.slice();
|
|
719
|
-
const { CloudScript } = await import("./cloud.script-
|
|
719
|
+
const { CloudScript } = await import("./cloud.script-at2beffs.js");
|
|
720
720
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
721
721
|
host,
|
|
722
722
|
workspaceId,
|
|
@@ -44,8 +44,8 @@ import {
|
|
|
44
44
|
} from "./index-1db2cw0y.js";
|
|
45
45
|
import {
|
|
46
46
|
ApplicationScript
|
|
47
|
-
} from "./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
} from "./index-jg5e15db.js";
|
|
48
|
+
import"./index-ys6f0bvh.js";
|
|
49
49
|
import"./index-7md2g9vw.js";
|
|
50
50
|
import"./index-3t7g9e4r.js";
|
|
51
51
|
import {
|
|
@@ -57,8 +57,8 @@ import {
|
|
|
57
57
|
} from "./index-yjkte9aj.js";
|
|
58
58
|
import {
|
|
59
59
|
CloudScript2
|
|
60
|
-
} from "./index-
|
|
61
|
-
import"./index-
|
|
60
|
+
} from "./index-jn07hxrr.js";
|
|
61
|
+
import"./index-vj1cwwy5.js";
|
|
62
62
|
import"./index-ya5qbmyg.js";
|
|
63
63
|
import"./index-rnt66vym.js";
|
|
64
64
|
import"./index-tgjy8xf3.js";
|
|
@@ -67,7 +67,7 @@ import"./index-pp54p5zk.js";
|
|
|
67
67
|
import"./index-m0ms3n1c.js";
|
|
68
68
|
import {
|
|
69
69
|
ContextScript
|
|
70
|
-
} from "./index-
|
|
70
|
+
} from "./index-2gh9sndr.js";
|
|
71
71
|
import"./index-q44jbw48.js";
|
|
72
72
|
|
|
73
73
|
// pkgs/@akanjs/cli/workspace/workspace.runner.ts
|